(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var aa=this||self;function ba(a){a.fa=void 0;a.ea=function(){return a.fa?a.fa:a.fa=new a}}function k(a,b){function c(){}c.prototype=b.prototype;a.ga=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.qa=function(d,e,f){for(var g=Array(arguments.length-2),h=2;hc?Math.max(0,a.length+c):c;if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,c);for(;cb?1:aa.length?!1:L(Va,a)}function cb(a){return L(Sa,a)?M(a,La):M(a,I)}function db(a){var b=cb(a.toString());n(a);a.a(b)}function eb(a){return null!=a&&(1!=A(a,9)||-1!=y(a,9)[0])} function M(a,b){for(var c=new l,d,e=a.length,f=0;f=e?c=b:(d=d.substring(0,e),d=M(d,I),0==d.length?c=b:(g=g.clone(),za(g,4),d=[g],g=z(a,1),b=P(a),g in E?(c=R(c,g,S(g)),e=nb(d,b),null!=e&&(d=e.clone(),e=z(e,4),0b?2:f[f.length-1]=e&&e<=d;++e)if(c=parseInt(a.substring(0,e),10),c in E)return b.a(a.substring(e)),c;return 0} function zb(a,b,c,d,e,f){if(0==b.length)return 0;b=new l(b);var g;null!=c&&(g=w(c,11));null==g&&(g="NonMatch");var h=b.toString();if(0==h.length)g=20;else if(J.test(h))h=h.replace(J,""),n(b),b.a(cb(h)),g=1;else{h=new RegExp(g);db(b);g=b.toString();if(0==g.search(h)){h=g.match(h)[0].length;var m=g.substring(h).match(Oa);m&&null!=m[1]&&0=b.b.length)throw Error("Phone number too short after IDD"); a=yb(b,d);if(0!=a)return x(f,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(g=z(c,10),h=""+g,m=b.toString(),0==m.lastIndexOf(h,0)&&(h=new l(m.substring(h.length)),m=w(c,1),m=new RegExp(z(m,2)),Ab(h,c,null),h=h.toString(),!L(m,b.toString())&&L(m,h)||3==wb(a,b.toString(),c,-1))))return d.a(h),e&&x(f,6,10),x(f,1,g),g;x(f,1,0);return 0} function Ab(a,b,c){var d=a.toString(),e=d.length,f=w(b,15);if(0!=e&&null!=f&&0!=f.length){var g=new RegExp("^(?:"+f+")");if(e=g.exec(d)){f=new RegExp(z(w(b,1),2));var h=L(f,d),m=e.length-1;b=w(b,16);if(null==b||0==b.length||null==e[m]||0==e[m].length){if(!h||L(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 l,e=new l(b.toString()),Ab(e,g,c),a=wb(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(17