JS: Re-compiled demo after code update.
authorlararennie@google.com <lararennie@google.com@ee073f10-1060-11df-b6a4-87a95322a99c>
Mon, 30 Jun 2014 11:11:16 +0000 (11:11 +0000)
committerlararennie@google.com <lararennie@google.com@ee073f10-1060-11df-b6a4-87a95322a99c>
Mon, 30 Jun 2014 11:11:16 +0000 (11:11 +0000)
git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@675 ee073f10-1060-11df-b6a4-87a95322a99c

javascript/i18n/phonenumbers/demo-compiled.js

index 9fb4252..93a108a 100644 (file)
@@ -457,9 +457,9 @@ function Jb(a,b){var c=S(b),d=b.g();if(!(d in L))return 1;d=U(a,d,V(d));d=A(d,1)
 function Lb(a,b,c,d,e){if(0==a.length)return 0;a=new G(a);var f;b!=l&&(f=A(b,11));f==l&&(f="NonMatch");var g=a.toString();if(0==g.length)f=20;else if(O.test(g))g=g.replace(O,""),a.clear(),a.append(P(jb,g)?Q(g,cb):Q(g,N)),f=1;else{g=RegExp(f);tb(a);f=a.toString();if(0==f.search(g)){var g=f.match(g)[0].length,h=f.substring(g).match(fb);h&&(h[1]!=l&&0<h[1].length)&&"0"==Q(h[1],N)?f=m:(a.clear(),a.append(f.substring(g)),f=k)}else f=m;f=f?5:20}d&&B(e,6,f);if(20!=f){2>=a.h.length&&i("Phone number too short after IDD");
 f=Kb(a,c);if(0!=f)return e.da(f),f;i("Invalid country calling code")}if(b!=l&&(f=b.g(),g=""+f,h=a.toString(),0==h.lastIndexOf(g,0))){var n=new G(h.substring(g.length)),h=A(b,1),g=RegExp(D(h,2));Mb(n,b,l);b=n.toString();h=D(h,3);if(!P(g,a.toString())&&P(g,b)||3==Ib(h,a.toString()))return c.append(b),d&&B(e,6,10),e.da(f),f}e.da(0);return 0}
 function Mb(a,b,c){var d=a.toString(),e=d.length,f=A(b,15);if(!(0==e||f==l||0==f.length))if(f=RegExp("^(?:"+f+")"),e=f.exec(d)){var g=RegExp,h;h=A(b,1);h=D(h,2);g=g(h);h=P(g,d);var n=e.length-1;b=A(b,16);if(b==l||0==b.length||e[n]==l||0==e[n].length){if(!h||P(g,d.substring(e[0].length)))c!=l&&(0<n&&e[n]!=l)&&c.append(e[1]),a.set(d.substring(e[0].length))}else if(d=d.replace(f,b),!h||P(g,d))c!=l&&0<n&&c.append(e[1]),a.set(d)}}M.prototype.parse=function(a,b){return Nb(this,a,b,m)};
-function Nb(a,b,c,d){b==l&&i("The string supplied did not seem to be a phone number");250<b.length&&i("The string supplied is too long to be a phone number");var e=new G,f=b.indexOf(";phone-context=");if(0<f){var g=f+15;if("+"==b.charAt(g)){var h=b.indexOf(";",g);0<h?e.append(b.substring(g,h)):e.append(b.substring(g))}e.append(b.substring(b.indexOf("tel:")+4,f))}else e.append(sb(b));f=e.toString();g=f.indexOf(";isub=");0<g&&(e.clear(),e.append(f.substring(0,g)));(2>e.toString().length?0:P(lb,e.toString()))||
-i("The string supplied did not seem to be a phone number");ub(c)||e.toString()!=l&&0<e.toString().length&&O.test(e.toString())||i("Invalid country calling code");f=new J;d&&B(f,5,b);a:{b=e.toString();g=b.search(kb);if(0<=g&&(2>b.substring(0,g).length?0:P(lb,b.substring(0,g))))for(var h=b.match(kb),n=h.length,x=1;x<n;++x)if(h[x]!=l&&0<h[x].length){e.clear();e.append(b.substring(0,g));b=h[x];break a}b=""}0<b.length&&B(f,3,b);g=W(a,c);b=new G;h=0;n=e.toString();try{h=Lb(n,g,b,d,f)}catch(r){"Invalid country calling code"==
-r&&O.test(n)?(n=n.replace(O,""),h=Lb(n,g,b,d,f),0==h&&i(r)):i(r)}0!=h?(e=V(h),e!=c&&(g=U(a,h,e))):(tb(e),b.append(e.toString()),c!=l?(h=g.g(),f.da(h)):d&&Ta(f,6));2>b.h.length&&i("The string supplied is too short to be a phone number");g!=l&&(a=new G,c=new G(b.toString()),Mb(c,g,a),e=c.toString(),g=A(g,1),g=D(g,3),2!=Ib(g,e)&&(b=c,d&&B(f,7,a.toString())));d=b.toString();a=d.length;2>a&&i("The string supplied is too short to be a phone number");17<a&&i("The string supplied is too long to be a phone number");
+function Nb(a,b,c,d){b==l&&i("The string supplied did not seem to be a phone number");250<b.length&&i("The string supplied is too long to be a phone number");var e=new G,f=b.indexOf(";phone-context=");if(0<f){var g=f+15;if("+"==b.charAt(g)){var h=b.indexOf(";",g);0<h?e.append(b.substring(g,h)):e.append(b.substring(g))}g=b.indexOf("tel:");e.append(b.substring(0<=g?g+4:0,f))}else e.append(sb(b));f=e.toString();g=f.indexOf(";isub=");0<g&&(e.clear(),e.append(f.substring(0,g)));(2>e.toString().length?
+0:P(lb,e.toString()))||i("The string supplied did not seem to be a phone number");ub(c)||e.toString()!=l&&0<e.toString().length&&O.test(e.toString())||i("Invalid country calling code");f=new J;d&&B(f,5,b);a:{b=e.toString();g=b.search(kb);if(0<=g&&(2>b.substring(0,g).length?0:P(lb,b.substring(0,g))))for(var h=b.match(kb),n=h.length,x=1;x<n;++x)if(h[x]!=l&&0<h[x].length){e.clear();e.append(b.substring(0,g));b=h[x];break a}b=""}0<b.length&&B(f,3,b);g=W(a,c);b=new G;h=0;n=e.toString();try{h=Lb(n,g,b,
+d,f)}catch(r){"Invalid country calling code"==r&&O.test(n)?(n=n.replace(O,""),h=Lb(n,g,b,d,f),0==h&&i(r)):i(r)}0!=h?(e=V(h),e!=c&&(g=U(a,h,e))):(tb(e),b.append(e.toString()),c!=l?(h=g.g(),f.da(h)):d&&Ta(f,6));2>b.h.length&&i("The string supplied is too short to be a phone number");g!=l&&(a=new G,c=new G(b.toString()),Mb(c,g,a),e=c.toString(),g=A(g,1),g=D(g,3),2!=Ib(g,e)&&(b=c,d&&B(f,7,a.toString())));d=b.toString();a=d.length;2>a&&i("The string supplied is too short to be a phone number");17<a&&i("The string supplied is too long to be a phone number");
 if(1<d.length&&"0"==d.charAt(0)){B(f,4,k);for(a=1;a<d.length-1&&"0"==d.charAt(a);)a++;1!=a&&B(f,8,a)}B(f,2,parseInt(d,10));return f}function P(a,b){var c="string"==typeof a?b.match("^(?:"+a+")$"):b.match(a);return c&&c[0].length==b.length?k:m};/*
 
  Copyright (C) 2010 The Libphonenumber Authors.