diff --git a/src/demo-compiled.js b/src/demo-compiled.js index fafa639..1ca4eb1 100644 --- a/src/demo-compiled.js +++ b/src/demo-compiled.js @@ -3,16 +3,16 @@ Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ -var aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;bc&&(c=Math.max(c+e,0));cb?1:ac&&(c=Math.max(c+f,0));cb?1:aa.length?!1:M(Ya,a)}function fb(a){return M(Va,a)?N(a,Oa):N(a,J)}function gb(a){var b=fb(a.toString());C(a);a.a(b)}function hb(a){return null!=a&&(1!=y(a,9)||-1!=v(a,9)[0])} -function N(a,b){for(var c=new B,d,e=a.length,f=0;f=e?c=b:(d=d.substring(0,e),d=N(d,J),0==d.length?c=b:(g=g.clone(),Ca(g,4),d=[g],g=x(a,1),b=Q(a),g in I?(c=S(c,g,T(g)),e=rb(d,b),null!=e&&(d=e.clone(),e=x(e,4),0b?2:f[f.length-1]=e&&e<=d;++e)if(c=parseInt(a.substring(0,e),10),c in I)return b.a(a.substring(e)),c;return 0} -function Cb(a,b,c,d,e,f){if(0==b.length)return 0;b=new B(b);var g;null!=c&&(g=r(c,11));null==g&&(g="NonMatch");var h=b.toString();if(0==h.length)g=20;else if(K.test(h))h=h.replace(K,""),C(b),b.a(fb(h)),g=1;else{h=new RegExp(g);gb(b);g=b.toString();if(0==g.search(h)){h=g.match(h)[0].length;var m=g.substring(h).match(Ra);m&&null!=m[1]&&0=b.b.length)throw Error("Phone number too short after IDD"); -a=Bb(b,d);if(0!=a)return t(f,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(g=x(c,10),h=""+g,m=b.toString(),0==m.lastIndexOf(h,0)&&(h=new B(m.substring(h.length)),m=r(c,1),m=new RegExp(x(m,2)),Db(h,c,null),h=h.toString(),!M(m,b.toString())&&M(m,h)||3==zb(a,b.toString(),c,-1))))return d.a(h),e&&t(f,6,10),t(f,1,g),g;t(f,1,0);return 0} -function Db(a,b,c){var d=a.toString(),e=d.length,f=r(b,15);if(0!=e&&null!=f&&0!=f.length){var g=new RegExp("^(?:"+f+")");if(e=g.exec(d)){f=new RegExp(x(r(b,1),2));var h=M(f,d),m=e.length-1;b=r(b,16);if(null==b||0==b.length||null==e[m]||0==e[m].length){if(!h||M(f,d.substring(e[0].length)))null!=c&&0b.b.length)throw Error("The string supplied is too short to be a phone number");null!=g&&(c=new B,e=new B(b.toString()),Db(e,g,c),a=zb(a,e.toString(),g,-1),2!=a&&4!=a&&5!=a&&(b=e,d&&0a)throw Error("The string supplied is too short to be a phone number");if(17a.length?!1:M(pb,a)}function wb(a){return M(mb,a)?N(a,fb):N(a,J)}function xb(a){var b=wb(a.toString());C(a);a.g(b)}function yb(a){return null!=a&&(1!=x(a,9)||-1!=v(a,9)[0])}function N(a,b){for(var c=new B,d,f=a.length,e=0;eb?2:e[e.length-1]=f&&f<=d;++f)if(c=parseInt(a.substring(0,f),10),c in I)return b.g(a.substring(f)),c;return 0} +function lc(a,b,c,d,f,e){if(0==b.length)return 0;b=new B(b);var g;null!=c&&(g=r(c,11));null==g&&(g="NonMatch");var h=b.toString();if(0==h.length)g=20;else if(K.test(h))h=h.replace(K,""),C(b),b.g(wb(h)),g=1;else{h=new RegExp(g);xb(b);g=b.toString();if(0==g.search(h)){h=g.match(h)[0].length;var m=g.substring(h).match(ib);m&&null!=m[1]&&0=b.h.length)throw Error("Phone number too short after IDD"); +a=kc(b,d);if(0!=a)return t(e,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(g=w(c,10),h=""+g,m=b.toString(),0==m.lastIndexOf(h,0)&&(h=new B(m.substring(h.length)),m=r(c,1),m=new RegExp(w(m,2)),mc(h,c,null),h=h.toString(),!M(m,b.toString())&&M(m,h)||3==ic(a,b.toString(),c,-1))))return d.g(h),f&&t(e,6,10),t(e,1,g),g;t(e,1,0);return 0} +function mc(a,b,c){var d=a.toString(),f=d.length,e=r(b,15);if(0!=f&&null!=e&&0!=e.length){var g=new RegExp("^(?:"+e+")");if(f=g.exec(d)){e=new RegExp(w(r(b,1),2));var h=M(e,d),m=f.length-1;b=r(b,16);if(null==b||0==b.length||null==f[m]||0==f[m].length){if(!h||M(e,d.substring(f[0].length)))null!=c&&0b.h.length)throw Error("The string supplied is too short to be a phone number");null!=g&&(c=new B,f=new B(b.toString()),mc(f,g,c),a=ic(a,f.toString(),g,-1),2!=a&&4!=a&&5!=a&&(b=f,d&&0a)throw Error("The string supplied is too short to be a phone number");if(17=Wb)z=fa;else if(W=W.substring(0,Wb),W=N(W,J),0==W.length)z=fa;else{var Xb=Pa.clone();Ua(Xb,4);da=[Xb];var ta=w(e,1),ua=P(e);if(ta in I){var Yb=Q(q,ta,R(ta)),Qa=Gb(da,ua);if(null==Qa)var Zb=ua;else{var Ra=Qa.clone(), +va=w(Qa,4);if(0