(function(){/* 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+f,0));cb?1:aa.length?!1:K(wb,a)}function Db(a){return K(tb,a)?M(a,lb):M(a,jb)}function Eb(a){var b=Db(a.toString());C(a);a.g(b)}function Fb(a){return null!=a&&(1!=x(a,9)||-1!=t(a,9)[0])}function M(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 sc(a,b,c,d,f,e){if(0==b.length)return 0;b=new B(b);var g;null!=c&&(g=q(c,11));null==g&&(g="NonMatch");var h=b.toString();if(0==h.length)g=20;else if(ob.test(h))h=h.replace(ob,""),C(b),b.g(Db(h)),g=1;else{h=new RegExp(g);Eb(b);g=b.toString();if(0==g.search(h)){h=g.match(h)[0].length;var m=g.substring(h).match(pb);m&&null!=m[1]&&0=b.h.length)throw Error("Phone number too short after IDD"); a=rc(b,d);if(0!=a)return r(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=q(c,1),m=new RegExp(w(m,2)),tc(h,c,null),h=h.toString(),!K(m,b.toString())&&K(m,h)||3==pc(a,b.toString(),c,-1))))return d.g(h),f&&r(e,6,10),r(e,1,g),g;r(e,1,0);return 0} function tc(a,b,c){var d=a.toString(),f=d.length,e=q(b,15);if(0!=f&&null!=e&&0!=e.length){var g=new RegExp("^(?:"+e+")");if(f=g.exec(d)){e=new RegExp(w(q(b,1),2));var h=K(e,d),m=f.length-1;b=q(b,16);if(null==b||0==b.length||null==f[m]||0==f[m].length){if(!h||K(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()),tc(f,g,c),a=pc(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=ac)z=ia;else if(Y=Y.substring(0,ac),Y=M(Y,jb),0==Y.length)z=ia;else{var bc=Sa.clone();Za(bc,4);fa=[bc];var va=w(e,1),wa=O(e);if(va in I){var cc=P(u,va,Q(va)),Ta=Nb(fa,wa);if(null==Ta)var dc=wa;else{var Ua=Ta.clone(), xa=w(Ta,4);if(0