intl-tel-input 23.0.4 → 23.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +6 -3
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +131 -247
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +15 -15
- package/package.json +4 -4
- package/react/build/IntlTelInput.cjs +2845 -1
- package/react/build/IntlTelInput.d.ts +6 -4
- package/react/build/IntlTelInput.js +2813 -1
- package/react/build/IntlTelInputWithUtils.cjs +9043 -1
- package/react/build/IntlTelInputWithUtils.js +9011 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v23.0.
|
|
2
|
+
* International Telephone Input v23.0.6
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -2741,7 +2741,10 @@ var factoryOutput = (() => {
|
|
|
2741
2741
|
if (!intlTelInput.utils && !intlTelInput.startedLoadingUtilsScript) {
|
|
2742
2742
|
intlTelInput.startedLoadingUtilsScript = true;
|
|
2743
2743
|
return new Promise((resolve, reject) => {
|
|
2744
|
-
import(
|
|
2744
|
+
import(
|
|
2745
|
+
/* webpackIgnore: true */
|
|
2746
|
+
path
|
|
2747
|
+
).then(({ default: utils2 }) => {
|
|
2745
2748
|
intlTelInput.utils = utils2;
|
|
2746
2749
|
forEachInstance("handleUtils");
|
|
2747
2750
|
resolve(true);
|
|
@@ -2775,7 +2778,7 @@ var factoryOutput = (() => {
|
|
|
2775
2778
|
//* A map from instance ID to instance object.
|
|
2776
2779
|
instances: {},
|
|
2777
2780
|
loadUtils,
|
|
2778
|
-
version: "23.0.
|
|
2781
|
+
version: "23.0.6"
|
|
2779
2782
|
}
|
|
2780
2783
|
);
|
|
2781
2784
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2787,8 +2790,7 @@ var factoryOutput = (() => {
|
|
|
2787
2790
|
a = a.split(".");
|
|
2788
2791
|
var c = k;
|
|
2789
2792
|
a[0] in c || "undefined" == typeof c.execScript || c.execScript("var " + a[0]);
|
|
2790
|
-
for (var d; a.length && (d = a.shift()); )
|
|
2791
|
-
a.length || void 0 === b ? c[d] && c[d] !== Object.prototype[d] ? c = c[d] : c = c[d] = {} : c[d] = b;
|
|
2793
|
+
for (var d; a.length && (d = a.shift()); ) a.length || void 0 === b ? c[d] && c[d] !== Object.prototype[d] ? c = c[d] : c = c[d] = {} : c[d] = b;
|
|
2792
2794
|
}
|
|
2793
2795
|
function n(a, b) {
|
|
2794
2796
|
function c() {
|
|
@@ -2798,8 +2800,7 @@ var factoryOutput = (() => {
|
|
|
2798
2800
|
a.prototype = new c();
|
|
2799
2801
|
a.prototype.constructor = a;
|
|
2800
2802
|
a.sa = function(d, e, f) {
|
|
2801
|
-
for (var g = Array(arguments.length - 2), h = 2; h < arguments.length; h++)
|
|
2802
|
-
g[h - 2] = arguments[h];
|
|
2803
|
+
for (var g = Array(arguments.length - 2), h = 2; h < arguments.length; h++) g[h - 2] = arguments[h];
|
|
2803
2804
|
return b.prototype[e].apply(d, g);
|
|
2804
2805
|
};
|
|
2805
2806
|
}
|
|
@@ -2807,15 +2808,13 @@ var factoryOutput = (() => {
|
|
|
2807
2808
|
function aa(a) {
|
|
2808
2809
|
const b = [];
|
|
2809
2810
|
let c = 0;
|
|
2810
|
-
for (const d in a)
|
|
2811
|
-
b[c++] = a[d];
|
|
2811
|
+
for (const d in a) b[c++] = a[d];
|
|
2812
2812
|
return b;
|
|
2813
2813
|
}
|
|
2814
2814
|
;
|
|
2815
2815
|
var da = class {
|
|
2816
2816
|
constructor(a) {
|
|
2817
|
-
if (ba !== ba)
|
|
2818
|
-
throw Error("SafeUrl is not meant to be built directly");
|
|
2817
|
+
if (ba !== ba) throw Error("SafeUrl is not meant to be built directly");
|
|
2819
2818
|
this.g = a;
|
|
2820
2819
|
}
|
|
2821
2820
|
toString() {
|
|
@@ -2827,8 +2826,7 @@ var factoryOutput = (() => {
|
|
|
2827
2826
|
const ea = {};
|
|
2828
2827
|
class fa {
|
|
2829
2828
|
constructor() {
|
|
2830
|
-
if (ea !== ea)
|
|
2831
|
-
throw Error("SafeStyle is not meant to be built directly");
|
|
2829
|
+
if (ea !== ea) throw Error("SafeStyle is not meant to be built directly");
|
|
2832
2830
|
}
|
|
2833
2831
|
toString() {
|
|
2834
2832
|
return "".toString();
|
|
@@ -2838,8 +2836,7 @@ var factoryOutput = (() => {
|
|
|
2838
2836
|
const ha = {};
|
|
2839
2837
|
class ia {
|
|
2840
2838
|
constructor() {
|
|
2841
|
-
if (ha !== ha)
|
|
2842
|
-
throw Error("SafeStyleSheet is not meant to be built directly");
|
|
2839
|
+
if (ha !== ha) throw Error("SafeStyleSheet is not meant to be built directly");
|
|
2843
2840
|
}
|
|
2844
2841
|
toString() {
|
|
2845
2842
|
return "".toString();
|
|
@@ -2850,8 +2847,7 @@ var factoryOutput = (() => {
|
|
|
2850
2847
|
class ka {
|
|
2851
2848
|
constructor() {
|
|
2852
2849
|
var a = k.trustedTypes && k.trustedTypes.emptyHTML || "";
|
|
2853
|
-
if (ja !== ja)
|
|
2854
|
-
throw Error("SafeHtml is not meant to be built directly");
|
|
2850
|
+
if (ja !== ja) throw Error("SafeHtml is not meant to be built directly");
|
|
2855
2851
|
this.g = a;
|
|
2856
2852
|
}
|
|
2857
2853
|
toString() {
|
|
@@ -2919,10 +2915,8 @@ var factoryOutput = (() => {
|
|
|
2919
2915
|
var g = 11 == e.h || 10 == e.h;
|
|
2920
2916
|
if (e.l) {
|
|
2921
2917
|
e = u(b, f);
|
|
2922
|
-
for (var h = 0; h < e.length; h++)
|
|
2923
|
-
|
|
2924
|
-
} else
|
|
2925
|
-
e = v(b, f), g ? (g = v(a, f)) ? wa(g, e) : t(a, f, e.clone()) : t(a, f, e);
|
|
2918
|
+
for (var h = 0; h < e.length; h++) va(a, f, g ? e[h].clone() : e[h]);
|
|
2919
|
+
} else e = v(b, f), g ? (g = v(a, f)) ? wa(g, e) : t(a, f, e.clone()) : t(a, f, e);
|
|
2926
2920
|
}
|
|
2927
2921
|
}
|
|
2928
2922
|
}
|
|
@@ -2936,18 +2930,14 @@ var factoryOutput = (() => {
|
|
|
2936
2930
|
}
|
|
2937
2931
|
function v(a, b) {
|
|
2938
2932
|
var c = a.h[b];
|
|
2939
|
-
if (null == c)
|
|
2940
|
-
return null;
|
|
2933
|
+
if (null == c) return null;
|
|
2941
2934
|
if (a.l) {
|
|
2942
2935
|
if (!(b in a.g)) {
|
|
2943
2936
|
var d = a.l, e = a.j[b];
|
|
2944
|
-
if (null != c)
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
c = f;
|
|
2949
|
-
} else
|
|
2950
|
-
c = d.h(e, c);
|
|
2937
|
+
if (null != c) if (e.l) {
|
|
2938
|
+
for (var f = [], g = 0; g < c.length; g++) f[g] = d.h(e, c[g]);
|
|
2939
|
+
c = f;
|
|
2940
|
+
} else c = d.h(e, c);
|
|
2951
2941
|
return a.g[b] = c;
|
|
2952
2942
|
}
|
|
2953
2943
|
return a.g[b];
|
|
@@ -2959,24 +2949,18 @@ var factoryOutput = (() => {
|
|
|
2959
2949
|
return a.j[b].l ? d[c || 0] : d;
|
|
2960
2950
|
}
|
|
2961
2951
|
function w(a, b) {
|
|
2962
|
-
if (q(a, b))
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
a
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
a.j = 0;
|
|
2972
|
-
else if (b === String)
|
|
2973
|
-
a.j = a.o ? "0" : "";
|
|
2974
|
-
else {
|
|
2975
|
-
a = new b();
|
|
2976
|
-
break a;
|
|
2977
|
-
}
|
|
2978
|
-
a = a.j;
|
|
2952
|
+
if (q(a, b)) a = r(a, b);
|
|
2953
|
+
else a: {
|
|
2954
|
+
a = a.j[b];
|
|
2955
|
+
if (void 0 === a.j) if (b = a.s, b === Boolean) a.j = false;
|
|
2956
|
+
else if (b === Number) a.j = 0;
|
|
2957
|
+
else if (b === String) a.j = a.o ? "0" : "";
|
|
2958
|
+
else {
|
|
2959
|
+
a = new b();
|
|
2960
|
+
break a;
|
|
2979
2961
|
}
|
|
2962
|
+
a = a.j;
|
|
2963
|
+
}
|
|
2980
2964
|
return a;
|
|
2981
2965
|
}
|
|
2982
2966
|
function u(a, b) {
|
|
@@ -2996,8 +2980,7 @@ var factoryOutput = (() => {
|
|
|
2996
2980
|
}
|
|
2997
2981
|
function y(a, b) {
|
|
2998
2982
|
var c = [], d;
|
|
2999
|
-
for (d in b)
|
|
3000
|
-
0 != d && c.push(new la(d, b[d]));
|
|
2983
|
+
for (d in b) 0 != d && c.push(new la(d, b[d]));
|
|
3001
2984
|
return new ta(a, c);
|
|
3002
2985
|
}
|
|
3003
2986
|
;
|
|
@@ -3008,18 +2991,13 @@ var factoryOutput = (() => {
|
|
|
3008
2991
|
throw Error("Unimplemented");
|
|
3009
2992
|
};
|
|
3010
2993
|
z.prototype.h = function(a, b) {
|
|
3011
|
-
if (11 == a.h || 10 == a.h)
|
|
3012
|
-
|
|
3013
|
-
if (
|
|
3014
|
-
return "string" === typeof b && xa.test(b) && (a = Number(b), 0 < a) ? a : b;
|
|
3015
|
-
if (!a.o)
|
|
3016
|
-
return b;
|
|
2994
|
+
if (11 == a.h || 10 == a.h) return b instanceof p ? b : this.g(a.s.prototype.m(), b);
|
|
2995
|
+
if (14 == a.h) return "string" === typeof b && xa.test(b) && (a = Number(b), 0 < a) ? a : b;
|
|
2996
|
+
if (!a.o) return b;
|
|
3017
2997
|
a = a.s;
|
|
3018
2998
|
if (a === String) {
|
|
3019
|
-
if ("number" === typeof b)
|
|
3020
|
-
|
|
3021
|
-
} else if (a === Number && "string" === typeof b && ("Infinity" === b || "-Infinity" === b || "NaN" === b || xa.test(b)))
|
|
3022
|
-
return Number(b);
|
|
2999
|
+
if ("number" === typeof b) return String(b);
|
|
3000
|
+
} else if (a === Number && "string" === typeof b && ("Infinity" === b || "-Infinity" === b || "NaN" === b || xa.test(b))) return Number(b);
|
|
3023
3001
|
return b;
|
|
3024
3002
|
};
|
|
3025
3003
|
var xa = /^-?[0-9]+$/;
|
|
@@ -3051,9 +3029,7 @@ var factoryOutput = (() => {
|
|
|
3051
3029
|
};
|
|
3052
3030
|
D.prototype.g = function(a, b, c) {
|
|
3053
3031
|
this.h += String(a);
|
|
3054
|
-
if (null != b)
|
|
3055
|
-
for (let d = 1; d < arguments.length; d++)
|
|
3056
|
-
this.h += arguments[d];
|
|
3032
|
+
if (null != b) for (let d = 1; d < arguments.length; d++) this.h += arguments[d];
|
|
3057
3033
|
return this;
|
|
3058
3034
|
};
|
|
3059
3035
|
function E(a) {
|
|
@@ -3738,7 +3714,7 @@ var factoryOutput = (() => {
|
|
|
3738
3714
|
[9],
|
|
3739
3715
|
[8]
|
|
3740
3716
|
],
|
|
3741
|
-
[, , "4(?:
|
|
3717
|
+
[, , "4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", , , , "412345678", , , [9]],
|
|
3742
3718
|
[, , "180(?:0\\d{3}|2)\\d{3}", , , , "1800123456", , , [7, 10]],
|
|
3743
3719
|
[, , "190[0-26]\\d{6}", , , , "1900123456", , , [10]],
|
|
3744
3720
|
[, , "13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", , , , "1300123456", , , [6, 8, 10, 12]],
|
|
@@ -3870,7 +3846,7 @@ var factoryOutput = (() => {
|
|
|
3870
3846
|
BD: [, [, , "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", , , , , , , [6, 7, 8, 9, 10]], [
|
|
3871
3847
|
,
|
|
3872
3848
|
,
|
|
3873
|
-
"(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:
|
|
3849
|
+
"(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:2\\d|[45])\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}",
|
|
3874
3850
|
,
|
|
3875
3851
|
,
|
|
3876
3852
|
,
|
|
@@ -4214,7 +4190,7 @@ var factoryOutput = (() => {
|
|
|
4214
4190
|
CC: [, [, , "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", , , , , , , [6, 7, 8, 9, 10, 12]], [, , "8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", , , , "891621234", , , [9], [8]], [
|
|
4215
4191
|
,
|
|
4216
4192
|
,
|
|
4217
|
-
"4(?:
|
|
4193
|
+
"4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",
|
|
4218
4194
|
,
|
|
4219
4195
|
,
|
|
4220
4196
|
,
|
|
@@ -4500,7 +4476,7 @@ var factoryOutput = (() => {
|
|
|
4500
4476
|
[9],
|
|
4501
4477
|
[8]
|
|
4502
4478
|
],
|
|
4503
|
-
[, , "4(?:
|
|
4479
|
+
[, , "4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", , , , "412345678", , , [9]],
|
|
4504
4480
|
[, , "180(?:0\\d{3}|2)\\d{3}", , , , "1800123456", , , [7, 10]],
|
|
4505
4481
|
[, , "190[0-26]\\d{6}", , , , "1900123456", , , [10]],
|
|
4506
4482
|
[, , "13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", , , , "1300123456", , , [6, 8, 10, 12]],
|
|
@@ -4527,43 +4503,13 @@ var factoryOutput = (() => {
|
|
|
4527
4503
|
,
|
|
4528
4504
|
[, , , , , , , , , [-1]]
|
|
4529
4505
|
],
|
|
4530
|
-
CY: [
|
|
4531
|
-
|
|
4532
|
-
[,
|
|
4533
|
-
[,
|
|
4534
|
-
[,
|
|
4535
|
-
[,
|
|
4536
|
-
|
|
4537
|
-
[, , "80[1-9]\\d{5}", , , , "80112345"],
|
|
4538
|
-
[, , "700\\d{5}", , , , "70012345"],
|
|
4539
|
-
[, , , , , , , , , [-1]],
|
|
4540
|
-
"CY",
|
|
4541
|
-
357,
|
|
4542
|
-
"00",
|
|
4543
|
-
,
|
|
4544
|
-
,
|
|
4545
|
-
,
|
|
4546
|
-
,
|
|
4547
|
-
,
|
|
4548
|
-
,
|
|
4549
|
-
,
|
|
4550
|
-
[[, "(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]],
|
|
4551
|
-
,
|
|
4552
|
-
[, , , , , , , , , [-1]],
|
|
4553
|
-
,
|
|
4554
|
-
,
|
|
4555
|
-
[, , , , , , , , , [-1]],
|
|
4556
|
-
[, , "(?:50|77)\\d{6}", , , , "77123456"],
|
|
4557
|
-
,
|
|
4558
|
-
,
|
|
4559
|
-
[, , , , , , , , , [-1]]
|
|
4560
|
-
],
|
|
4561
|
-
CZ: [, [, , "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", , , , , , , [9, 10, 11, 12]], [, , "(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}", , , , "212345678", , , [9]], [, , "(?:60[1-8]\\d|7(?:0(?:[2-5]\\d|60)|190|[2379]\\d\\d))\\d{5}", , , , "601123456", , , [9]], [, , "800\\d{6}", , , , "800123456", , , [9]], [, , "9(?:0[05689]|76)\\d{6}", , , , "900123456", , , [9]], [, , "8[134]\\d{7}", , , , "811234567", , , [9]], [, , "70[01]\\d{6}", , , , "700123456", , , [9]], [, , "9[17]0\\d{6}", , , , "910123456", , , [9]], "CZ", 420, "00", , , , , , , , [[
|
|
4562
|
-
,
|
|
4563
|
-
"(\\d{3})(\\d{3})(\\d{3})",
|
|
4564
|
-
"$1 $2 $3",
|
|
4565
|
-
["[2-8]|9[015-7]"]
|
|
4566
|
-
], [, "(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], [, "(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], [, "(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "9(?:5\\d|7[2-4])\\d{6}", , , , "972123456", , , [9]], , , [, , "9(?:3\\d{9}|6\\d{7,10})", , , , "93123456789"]],
|
|
4506
|
+
CY: [, [, , "(?:[279]\\d|[58]0)\\d{6}", , , , , , , [8]], [, , "2[2-6]\\d{6}", , , , "22345678"], [, , "9(?:10|[4-79]\\d)\\d{5}", , , , "96123456"], [, , "800\\d{5}", , , , "80001234"], [, , "90[09]\\d{5}", , , , "90012345"], [, , "80[1-9]\\d{5}", , , , "80112345"], [, , "700\\d{5}", , , , "70012345"], [, , , , , , , , , [-1]], "CY", 357, "00", , , , , , , , [[, "(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "(?:50|77)\\d{6}", , , , "77123456"], , , [, , , , , , , , , [-1]]],
|
|
4507
|
+
CZ: [, [, , "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", , , , , , , [9, 10, 11, 12]], [, , "(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}", , , , "212345678", , , [9]], [, , "(?:60[1-8]\\d|7(?:0(?:[2-5]\\d|60)|190|[2379]\\d\\d))\\d{5}", , , , "601123456", , , [9]], [, , "800\\d{6}", , , , "800123456", , , [9]], [, , "9(?:0[05689]|76)\\d{6}", , , , "900123456", , , [9]], [, , "8[134]\\d{7}", , , , "811234567", , , [9]], [, , "70[01]\\d{6}", , , , "700123456", , , [9]], [, , "9[17]0\\d{6}", , , , "910123456", , , [9]], "CZ", 420, "00", , , , , , , , [
|
|
4508
|
+
[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]],
|
|
4509
|
+
[, "(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]],
|
|
4510
|
+
[, "(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]],
|
|
4511
|
+
[, "(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]
|
|
4512
|
+
], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "9(?:5\\d|7[2-4])\\d{6}", , , , "972123456", , , [9]], , , [, , "9(?:3\\d{9}|6\\d{7,10})", , , , "93123456789"]],
|
|
4567
4513
|
DE: [, [
|
|
4568
4514
|
,
|
|
4569
4515
|
,
|
|
@@ -4981,7 +4927,7 @@ var factoryOutput = (() => {
|
|
|
4981
4927
|
,
|
|
4982
4928
|
,
|
|
4983
4929
|
"06031234"
|
|
4984
|
-
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GA", 241, "00",
|
|
4930
|
+
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GA", 241, "00", , , , "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1", , , [[, "(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], [, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], [, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4985
4931
|
GB: [, [
|
|
4986
4932
|
,
|
|
4987
4933
|
,
|
|
@@ -5277,7 +5223,7 @@ var factoryOutput = (() => {
|
|
|
5277
5223
|
,
|
|
5278
5224
|
,
|
|
5279
5225
|
"2201234"
|
|
5280
|
-
], [, , "(?:510|6\\d\\d|7(?:[
|
|
5226
|
+
], [, , "(?:510|6\\d\\d|7(?:[013]\\d|2[0-25-8]|4[0-29]))\\d{4}", , , , "6091234"], [, , "(?:289|8(?:00|6[28]|88|99))\\d{4}", , , , "2891234"], [, , "9008\\d{3}", , , , "9008123"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "515\\d{4}", , , , "5151234"], "GY", 592, "001", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
5281
5227
|
HK: [, [, , "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", , , , , , , [5, 6, 7, 8, 9, 11]], [
|
|
5282
5228
|
,
|
|
5283
5229
|
,
|
|
@@ -6655,7 +6601,7 @@ var factoryOutput = (() => {
|
|
|
6655
6601
|
,
|
|
6656
6602
|
,
|
|
6657
6603
|
"20201234"
|
|
6658
|
-
], [, , "(?:23|7[
|
|
6604
|
+
], [, , "(?:23|7[0467]|[89]\\d)\\d{6}", , , , "93123456"], [, , "08\\d{6}", , , , "08123456"], [, , "09\\d{6}", , , , "09123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "NE", 227, "00", , , , , , , , [[, "(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], [, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
6659
6605
|
NF: [, [, , "[13]\\d{5}", , , , , , , [6], [5]], [, , "(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}", , , , "106609", , , , [5]], [
|
|
6660
6606
|
,
|
|
6661
6607
|
,
|
|
@@ -7155,7 +7101,7 @@ var factoryOutput = (() => {
|
|
|
7155
7101
|
,
|
|
7156
7102
|
,
|
|
7157
7103
|
"692123456"
|
|
7158
|
-
], [, , "80\\d{7}", , , , "801234567"], [, , "89[1-37-9]\\d{6}", , , , "891123456"], [, , "8(?:1[019]|2[0156]|84|90)\\d{6}", , , , "810123456"], [, , , , , , , , , [-1]], [, , "9(?:399[0-3]|479[0-5]|76(?:2[
|
|
7104
|
+
], [, , "80\\d{7}", , , , "801234567"], [, , "89[1-37-9]\\d{6}", , , , "891123456"], [, , "8(?:1[019]|2[0156]|84|90)\\d{6}", , , , "810123456"], [, , , , , , , , , [-1]], [, , "9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}", , , , "939901234"], "RE", 262, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "0$1"]], , [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7159
7105
|
RO: [, [, , "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", , , , , , , [6, 9]], [
|
|
7160
7106
|
,
|
|
7161
7107
|
,
|
|
@@ -7164,7 +7110,7 @@ var factoryOutput = (() => {
|
|
|
7164
7110
|
,
|
|
7165
7111
|
,
|
|
7166
7112
|
"211234567"
|
|
7167
|
-
], [, , "
|
|
7113
|
+
], [, , "(?:630|702)0\\d{5}|(?:6(?:[04]0|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}", , , , "712034567", , , [9]], [, , "800\\d{6}", , , , "800123456", , , [9]], [, , "90[0136]\\d{6}", , , , "900123456", , , [9]], [, , "801\\d{6}", , , , "801123456", , , [9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "RO", 40, "00", "0", " int ", , "0", , , , [[, "(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], [, "(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], [
|
|
7168
7114
|
,
|
|
7169
7115
|
"(\\d{3})(\\d{3})(\\d{3})",
|
|
7170
7116
|
"$1 $2 $3",
|
|
@@ -7927,7 +7873,7 @@ var factoryOutput = (() => {
|
|
|
7927
7873
|
,
|
|
7928
7874
|
,
|
|
7929
7875
|
"912345678"
|
|
7930
|
-
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "UZ", 998, "
|
|
7876
|
+
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "UZ", 998, "00", , , , , , , , [[, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7931
7877
|
VA: [, [, , "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", , , , , , , [6, 7, 8, 9, 10, 11, 12]], [, , "06698\\d{1,6}", , , , "0669812345", , , [6, 7, 8, 9, 10, 11]], [, , "3[1-9]\\d{8}|3[2-9]\\d{7}", , , , "3123456789", , , [9, 10]], [
|
|
7932
7878
|
,
|
|
7933
7879
|
,
|
|
@@ -8469,8 +8415,7 @@ var factoryOutput = (() => {
|
|
|
8469
8415
|
return null != a && (1 != x(a, 9) || -1 != u(a, 9)[0]);
|
|
8470
8416
|
}
|
|
8471
8417
|
function O(a, b) {
|
|
8472
|
-
for (var c = new D(), d, e = a.length, f = 0; f < e; ++f)
|
|
8473
|
-
d = a.charAt(f), d = b[d.toUpperCase()], null != d && c.g(d);
|
|
8418
|
+
for (var c = new D(), d, e = a.length, f = 0; f < e; ++f) d = a.charAt(f), d = b[d.toUpperCase()], null != d && c.g(d);
|
|
8474
8419
|
return c.toString();
|
|
8475
8420
|
}
|
|
8476
8421
|
function Ya(a) {
|
|
@@ -8482,15 +8427,12 @@ var factoryOutput = (() => {
|
|
|
8482
8427
|
K.prototype.format = function(a, b) {
|
|
8483
8428
|
if (0 == r(a, 2) && q(a, 5)) {
|
|
8484
8429
|
var c = w(a, 5);
|
|
8485
|
-
if (0 < c.length)
|
|
8486
|
-
return c;
|
|
8430
|
+
if (0 < c.length) return c;
|
|
8487
8431
|
}
|
|
8488
8432
|
c = w(a, 1);
|
|
8489
8433
|
var d = Q(a);
|
|
8490
|
-
if (0 == b)
|
|
8491
|
-
|
|
8492
|
-
if (!(c in J))
|
|
8493
|
-
return d;
|
|
8434
|
+
if (0 == b) return Za(c, 0, d, "");
|
|
8435
|
+
if (!(c in J)) return d;
|
|
8494
8436
|
var e = R(this, c, S(c));
|
|
8495
8437
|
a = q(a, 3) && 0 != r(a, 3).length ? 3 == b ? ";ext=" + r(a, 3) : q(e, 13) ? r(e, 13) + w(a, 3) : " ext. " + w(a, 3) : "";
|
|
8496
8438
|
a: {
|
|
@@ -8517,8 +8459,7 @@ var factoryOutput = (() => {
|
|
|
8517
8459
|
return "001" == c ? T(a, "" + b) : T(a, c);
|
|
8518
8460
|
}
|
|
8519
8461
|
function Q(a) {
|
|
8520
|
-
if (!q(a, 2))
|
|
8521
|
-
return "";
|
|
8462
|
+
if (!q(a, 2)) return "";
|
|
8522
8463
|
var b = "" + r(a, 2);
|
|
8523
8464
|
return q(a, 4) && r(a, 4) && 0 < w(a, 8) ? Array(w(a, 8) + 1).join("0") + b : b;
|
|
8524
8465
|
}
|
|
@@ -8565,14 +8506,12 @@ var factoryOutput = (() => {
|
|
|
8565
8506
|
return V(a, r(b, 1)) ? V(a, r(b, 5)) ? 4 : V(a, r(b, 4)) ? 3 : V(a, r(b, 6)) ? 5 : V(a, r(b, 8)) ? 6 : V(a, r(b, 7)) ? 7 : V(a, r(b, 21)) ? 8 : V(a, r(b, 25)) ? 9 : V(a, r(b, 28)) ? 10 : V(a, r(b, 2)) ? r(b, 18) || V(a, r(b, 3)) ? 2 : 0 : !r(b, 18) && V(a, r(b, 3)) ? 1 : -1 : -1;
|
|
8566
8507
|
}
|
|
8567
8508
|
function T(a, b) {
|
|
8568
|
-
if (null == b)
|
|
8569
|
-
return null;
|
|
8509
|
+
if (null == b) return null;
|
|
8570
8510
|
b = b.toUpperCase();
|
|
8571
8511
|
var c = a.g[b];
|
|
8572
8512
|
if (null == c) {
|
|
8573
8513
|
c = Da[b];
|
|
8574
|
-
if (null == c)
|
|
8575
|
-
return null;
|
|
8514
|
+
if (null == c) return null;
|
|
8576
8515
|
c = new C().g(H.m(), c);
|
|
8577
8516
|
a.g[b] = c;
|
|
8578
8517
|
}
|
|
@@ -8583,32 +8522,28 @@ var factoryOutput = (() => {
|
|
|
8583
8522
|
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false : N(w(b, 2), a);
|
|
8584
8523
|
}
|
|
8585
8524
|
function ab(a, b) {
|
|
8586
|
-
if (null == b)
|
|
8587
|
-
return null;
|
|
8525
|
+
if (null == b) return null;
|
|
8588
8526
|
var c = w(b, 1);
|
|
8589
8527
|
c = J[c];
|
|
8590
|
-
if (null == c)
|
|
8591
|
-
|
|
8592
|
-
else
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
var g = T(a, d);
|
|
8600
|
-
if (q(g, 23)) {
|
|
8601
|
-
if (0 == b.search(r(g, 23))) {
|
|
8602
|
-
a = d;
|
|
8603
|
-
break a;
|
|
8604
|
-
}
|
|
8605
|
-
} else if (-1 != $a(b, g)) {
|
|
8528
|
+
if (null == c) a = null;
|
|
8529
|
+
else if (1 == c.length) a = c[0];
|
|
8530
|
+
else a: {
|
|
8531
|
+
b = Q(b);
|
|
8532
|
+
for (var d, e = c.length, f = 0; f < e; f++) {
|
|
8533
|
+
d = c[f];
|
|
8534
|
+
var g = T(a, d);
|
|
8535
|
+
if (q(g, 23)) {
|
|
8536
|
+
if (0 == b.search(r(g, 23))) {
|
|
8606
8537
|
a = d;
|
|
8607
8538
|
break a;
|
|
8608
8539
|
}
|
|
8540
|
+
} else if (-1 != $a(b, g)) {
|
|
8541
|
+
a = d;
|
|
8542
|
+
break a;
|
|
8609
8543
|
}
|
|
8610
|
-
a = null;
|
|
8611
8544
|
}
|
|
8545
|
+
a = null;
|
|
8546
|
+
}
|
|
8612
8547
|
return a;
|
|
8613
8548
|
}
|
|
8614
8549
|
function S(a) {
|
|
@@ -8617,55 +8552,42 @@ var factoryOutput = (() => {
|
|
|
8617
8552
|
}
|
|
8618
8553
|
function bb(a, b) {
|
|
8619
8554
|
a = T(a, b);
|
|
8620
|
-
if (null == a)
|
|
8621
|
-
throw Error("Invalid region code: " + b);
|
|
8555
|
+
if (null == a) throw Error("Invalid region code: " + b);
|
|
8622
8556
|
return w(a, 10);
|
|
8623
8557
|
}
|
|
8624
8558
|
function W(a, b, c, d) {
|
|
8625
8559
|
var e = U(c, d), f = 0 == x(e, 9) ? u(r(c, 1), 9) : u(e, 9);
|
|
8626
8560
|
e = u(e, 10);
|
|
8627
|
-
if (2 == d)
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
else
|
|
8631
|
-
return W(a, b, c, 1);
|
|
8632
|
-
if (-1 == f[0])
|
|
8633
|
-
return 5;
|
|
8561
|
+
if (2 == d) if (Xa(U(c, 0))) a = U(c, 1), Xa(a) && (f = f.concat(0 == x(a, 9) ? u(r(c, 1), 9) : u(a, 9)), f.sort(), 0 == e.length ? e = u(a, 10) : (e = e.concat(u(a, 10)), e.sort()));
|
|
8562
|
+
else return W(a, b, c, 1);
|
|
8563
|
+
if (-1 == f[0]) return 5;
|
|
8634
8564
|
b = b.length;
|
|
8635
|
-
if (-1 < e.indexOf(b))
|
|
8636
|
-
return 4;
|
|
8565
|
+
if (-1 < e.indexOf(b)) return 4;
|
|
8637
8566
|
c = f[0];
|
|
8638
8567
|
return c == b ? 0 : c > b ? 2 : f[f.length - 1] < b ? 3 : -1 < f.indexOf(b, 1) ? 0 : 5;
|
|
8639
8568
|
}
|
|
8640
8569
|
function X(a, b, c) {
|
|
8641
8570
|
var d = Q(b);
|
|
8642
8571
|
b = w(b, 1);
|
|
8643
|
-
if (!(b in J))
|
|
8644
|
-
return 1;
|
|
8572
|
+
if (!(b in J)) return 1;
|
|
8645
8573
|
b = R(a, b, S(b));
|
|
8646
8574
|
return W(a, d, b, c);
|
|
8647
8575
|
}
|
|
8648
8576
|
function cb(a, b) {
|
|
8649
8577
|
a = a.toString();
|
|
8650
|
-
if (0 == a.length || "0" == a.charAt(0))
|
|
8651
|
-
|
|
8652
|
-
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e)
|
|
8653
|
-
if (c = parseInt(a.substring(0, e), 10), c in J)
|
|
8654
|
-
return b.g(a.substring(e)), c;
|
|
8578
|
+
if (0 == a.length || "0" == a.charAt(0)) return 0;
|
|
8579
|
+
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in J) return b.g(a.substring(e)), c;
|
|
8655
8580
|
return 0;
|
|
8656
8581
|
}
|
|
8657
8582
|
function db(a, b, c, d, e, f) {
|
|
8658
|
-
if (0 == b.length)
|
|
8659
|
-
return 0;
|
|
8583
|
+
if (0 == b.length) return 0;
|
|
8660
8584
|
b = new D(b);
|
|
8661
8585
|
var g;
|
|
8662
8586
|
null != c && (g = r(c, 11));
|
|
8663
8587
|
null == g && (g = "NonMatch");
|
|
8664
8588
|
var h = b.toString();
|
|
8665
|
-
if (0 == h.length)
|
|
8666
|
-
|
|
8667
|
-
else if (L.test(h))
|
|
8668
|
-
h = h.replace(L, ""), E(b), b.g(Va(h)), g = 1;
|
|
8589
|
+
if (0 == h.length) g = 20;
|
|
8590
|
+
else if (L.test(h)) h = h.replace(L, ""), E(b), b.g(Va(h)), g = 1;
|
|
8669
8591
|
else {
|
|
8670
8592
|
h = new RegExp(g);
|
|
8671
8593
|
Wa(b);
|
|
@@ -8674,21 +8596,17 @@ var factoryOutput = (() => {
|
|
|
8674
8596
|
h = g.match(h)[0].length;
|
|
8675
8597
|
var l = g.substring(h).match(Ia);
|
|
8676
8598
|
l && null != l[1] && 0 < l[1].length && "0" == O(l[1], Ea) ? g = false : (E(b), b.g(g.substring(h)), g = true);
|
|
8677
|
-
} else
|
|
8678
|
-
g = false;
|
|
8599
|
+
} else g = false;
|
|
8679
8600
|
g = g ? 5 : 20;
|
|
8680
8601
|
}
|
|
8681
8602
|
e && t(f, 6, g);
|
|
8682
8603
|
if (20 != g) {
|
|
8683
|
-
if (2 >= b.h.length)
|
|
8684
|
-
throw Error("Phone number too short after IDD");
|
|
8604
|
+
if (2 >= b.h.length) throw Error("Phone number too short after IDD");
|
|
8685
8605
|
a = cb(b, d);
|
|
8686
|
-
if (0 != a)
|
|
8687
|
-
return t(f, 1, a), a;
|
|
8606
|
+
if (0 != a) return t(f, 1, a), a;
|
|
8688
8607
|
throw Error("Invalid country calling code");
|
|
8689
8608
|
}
|
|
8690
|
-
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new D(l.substring(h.length)), l = r(c, 1), l = new RegExp(w(l, 2)), eb(h, c, null), h = h.toString(), !N(l, b.toString()) && N(l, h) || 3 == W(a, b.toString(), c, -1))))
|
|
8691
|
-
return d.g(h), e && t(f, 6, 10), t(f, 1, g), g;
|
|
8609
|
+
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new D(l.substring(h.length)), l = r(c, 1), l = new RegExp(w(l, 2)), eb(h, c, null), h = h.toString(), !N(l, b.toString()) && N(l, h) || 3 == W(a, b.toString(), c, -1)))) return d.g(h), e && t(f, 6, 10), t(f, 1, g), g;
|
|
8692
8610
|
t(f, 1, 0);
|
|
8693
8611
|
return 0;
|
|
8694
8612
|
}
|
|
@@ -8701,46 +8619,36 @@ var factoryOutput = (() => {
|
|
|
8701
8619
|
var h = N(f, d), l = e.length - 1;
|
|
8702
8620
|
b = r(b, 16);
|
|
8703
8621
|
if (null == b || 0 == b.length || null == e[l] || 0 == e[l].length) {
|
|
8704
|
-
if (!h || N(f, d.substring(e[0].length)))
|
|
8705
|
-
|
|
8706
|
-
} else if (d = d.replace(g, b), !h || N(f, d))
|
|
8707
|
-
null != c && 0 < l && c.g(e[1]), a.set(d);
|
|
8622
|
+
if (!h || N(f, d.substring(e[0].length))) null != c && 0 < l && null != e[l] && c.g(e[1]), a.set(d.substring(e[0].length));
|
|
8623
|
+
} else if (d = d.replace(g, b), !h || N(f, d)) null != c && 0 < l && c.g(e[1]), a.set(d);
|
|
8708
8624
|
}
|
|
8709
8625
|
}
|
|
8710
8626
|
}
|
|
8711
8627
|
function Y(a, b, c) {
|
|
8712
|
-
if (!P(c) && 0 < b.length && "+" != b.charAt(0))
|
|
8713
|
-
throw Error("Invalid country calling code");
|
|
8628
|
+
if (!P(c) && 0 < b.length && "+" != b.charAt(0)) throw Error("Invalid country calling code");
|
|
8714
8629
|
return fb(a, b, c, true);
|
|
8715
8630
|
}
|
|
8716
8631
|
function fb(a, b, c, d) {
|
|
8717
|
-
if (null == b)
|
|
8718
|
-
|
|
8719
|
-
if (250 < b.length)
|
|
8720
|
-
throw Error("The string supplied is too long to be a phone number");
|
|
8632
|
+
if (null == b) throw Error("The string supplied did not seem to be a phone number");
|
|
8633
|
+
if (250 < b.length) throw Error("The string supplied is too long to be a phone number");
|
|
8721
8634
|
var e = new D();
|
|
8722
8635
|
var f = b.indexOf(";phone-context=");
|
|
8723
|
-
if (-1 === f)
|
|
8724
|
-
|
|
8725
|
-
else if (f += 15, f >= b.length)
|
|
8726
|
-
f = "";
|
|
8636
|
+
if (-1 === f) f = null;
|
|
8637
|
+
else if (f += 15, f >= b.length) f = "";
|
|
8727
8638
|
else {
|
|
8728
8639
|
var g = b.indexOf(";", f);
|
|
8729
8640
|
f = -1 !== g ? b.substring(f, g) : b.substring(f);
|
|
8730
8641
|
}
|
|
8731
8642
|
var h = f;
|
|
8732
8643
|
null == h ? g = true : 0 === h.length ? g = false : (g = Na.exec(h), h = Oa.exec(h), g = null !== g || null !== h);
|
|
8733
|
-
if (!g)
|
|
8734
|
-
throw Error("The string supplied did not seem to be a phone number");
|
|
8644
|
+
if (!g) throw Error("The string supplied did not seem to be a phone number");
|
|
8735
8645
|
null != f ? ("+" === f.charAt(0) && e.g(f), f = b.indexOf("tel:"), e.g(b.substring(0 <= f ? f + 4 : 0, b.indexOf(";phone-context=")))) : (f = e.g, g = b ?? "", h = g.search(Ja), 0 <= h ? (g = g.substring(h), g = g.replace(La, ""), h = g.search(Ka), 0 <= h && (g = g.substring(0, h))) : g = "", f.call(e, g));
|
|
8736
8646
|
f = e.toString();
|
|
8737
8647
|
g = f.indexOf(";isub=");
|
|
8738
8648
|
0 < g && (E(e), e.g(f.substring(0, g)));
|
|
8739
|
-
if (!Ua(e.toString()))
|
|
8740
|
-
throw Error("The string supplied did not seem to be a phone number");
|
|
8649
|
+
if (!Ua(e.toString())) throw Error("The string supplied did not seem to be a phone number");
|
|
8741
8650
|
f = e.toString();
|
|
8742
|
-
if (!(P(c) || null != f && 0 < f.length && L.test(f)))
|
|
8743
|
-
throw Error("Invalid country calling code");
|
|
8651
|
+
if (!(P(c) || null != f && 0 < f.length && L.test(f))) throw Error("Invalid country calling code");
|
|
8744
8652
|
f = new I();
|
|
8745
8653
|
d && t(f, 5, b);
|
|
8746
8654
|
a: {
|
|
@@ -8748,13 +8656,12 @@ var factoryOutput = (() => {
|
|
|
8748
8656
|
g = b.search(Qa);
|
|
8749
8657
|
if (0 <= g && Ua(b.substring(0, g))) {
|
|
8750
8658
|
h = b.match(Qa);
|
|
8751
|
-
for (var l = h.length, A = 1; A < l; ++A)
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
}
|
|
8659
|
+
for (var l = h.length, A = 1; A < l; ++A) if (null != h[A] && 0 < h[A].length) {
|
|
8660
|
+
E(e);
|
|
8661
|
+
e.g(b.substring(0, g));
|
|
8662
|
+
b = h[A];
|
|
8663
|
+
break a;
|
|
8664
|
+
}
|
|
8758
8665
|
}
|
|
8759
8666
|
b = "";
|
|
8760
8667
|
}
|
|
@@ -8767,29 +8674,23 @@ var factoryOutput = (() => {
|
|
|
8767
8674
|
h = db(a, l, g, b, d, f);
|
|
8768
8675
|
} catch (ca) {
|
|
8769
8676
|
if ("Invalid country calling code" == ca.message && L.test(l)) {
|
|
8770
|
-
if (l = l.replace(L, ""), h = db(a, l, g, b, d, f), 0 == h)
|
|
8771
|
-
|
|
8772
|
-
} else
|
|
8773
|
-
throw ca;
|
|
8677
|
+
if (l = l.replace(L, ""), h = db(a, l, g, b, d, f), 0 == h) throw ca;
|
|
8678
|
+
} else throw ca;
|
|
8774
8679
|
}
|
|
8775
8680
|
0 != h ? (e = S(h), e != c && (g = R(a, h, e))) : (Wa(e), b.g(e.toString()), null != c ? (h = w(g, 10), t(
|
|
8776
8681
|
f,
|
|
8777
8682
|
1,
|
|
8778
8683
|
h
|
|
8779
8684
|
)) : d && (delete f.h[6], f.g && delete f.g[6]));
|
|
8780
|
-
if (2 > b.h.length)
|
|
8781
|
-
throw Error("The string supplied is too short to be a phone number");
|
|
8685
|
+
if (2 > b.h.length) throw Error("The string supplied is too short to be a phone number");
|
|
8782
8686
|
null != g && (c = new D(), e = new D(b.toString()), eb(e, g, c), a = W(a, e.toString(), g, -1), 2 != a && 4 != a && 5 != a && (b = e, d && 0 < c.toString().length && t(f, 7, c.toString())));
|
|
8783
8687
|
d = b.toString();
|
|
8784
8688
|
a = d.length;
|
|
8785
|
-
if (2 > a)
|
|
8786
|
-
|
|
8787
|
-
if (17 < a)
|
|
8788
|
-
throw Error("The string supplied is too long to be a phone number");
|
|
8689
|
+
if (2 > a) throw Error("The string supplied is too short to be a phone number");
|
|
8690
|
+
if (17 < a) throw Error("The string supplied is too long to be a phone number");
|
|
8789
8691
|
if (1 < d.length && "0" == d.charAt(0)) {
|
|
8790
8692
|
t(f, 4, true);
|
|
8791
|
-
for (a = 1; a < d.length - 1 && "0" == d.charAt(a); )
|
|
8792
|
-
a++;
|
|
8693
|
+
for (a = 1; a < d.length - 1 && "0" == d.charAt(a); ) a++;
|
|
8793
8694
|
1 != a && t(f, 8, a);
|
|
8794
8695
|
}
|
|
8795
8696
|
t(f, 2, parseInt(d, 10));
|
|
@@ -8830,8 +8731,7 @@ var factoryOutput = (() => {
|
|
|
8830
8731
|
function lb(a) {
|
|
8831
8732
|
for (var b = a.j.length, c = 0; c < b; ++c) {
|
|
8832
8733
|
var d = a.j[c], e = w(d, 1);
|
|
8833
|
-
if (a.da == e)
|
|
8834
|
-
return false;
|
|
8734
|
+
if (a.da == e) return false;
|
|
8835
8735
|
var f = a;
|
|
8836
8736
|
var g = d, h = w(g, 1);
|
|
8837
8737
|
E(f.v);
|
|
@@ -8840,8 +8740,7 @@ var factoryOutput = (() => {
|
|
|
8840
8740
|
var A = "999999999999999".match(h)[0];
|
|
8841
8741
|
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "\u2008"));
|
|
8842
8742
|
0 < l.length ? (f.v.g(l), f = true) : f = false;
|
|
8843
|
-
if (f)
|
|
8844
|
-
return a.da = e, a.ha = kb.test(r(d, 4)), a.$ = 0, true;
|
|
8743
|
+
if (f) return a.da = e, a.ha = kb.test(r(d, 4)), a.$ = 0, true;
|
|
8845
8744
|
}
|
|
8846
8745
|
return a.u = false;
|
|
8847
8746
|
}
|
|
@@ -8859,10 +8758,8 @@ var factoryOutput = (() => {
|
|
|
8859
8758
|
if (!a.u) {
|
|
8860
8759
|
if (!a.la) {
|
|
8861
8760
|
if (ob(a)) {
|
|
8862
|
-
if (pb(a))
|
|
8863
|
-
|
|
8864
|
-
} else if (0 < a.o.length && (b = a.g.toString(), E(a.g), a.g.g(a.o), a.g.g(b), b = a.h.toString(), c = b.lastIndexOf(a.o), E(a.h), a.h.g(b.substring(0, c))), a.o != rb(a))
|
|
8865
|
-
return a.h.g(" "), qb(a);
|
|
8761
|
+
if (pb(a)) return qb(a);
|
|
8762
|
+
} else if (0 < a.o.length && (b = a.g.toString(), E(a.g), a.g.g(a.o), a.g.g(b), b = a.h.toString(), c = b.lastIndexOf(a.o), E(a.h), a.h.g(b.substring(0, c))), a.o != rb(a)) return a.h.g(" "), qb(a);
|
|
8866
8763
|
}
|
|
8867
8764
|
return a.s.toString();
|
|
8868
8765
|
}
|
|
@@ -8872,18 +8769,14 @@ var factoryOutput = (() => {
|
|
|
8872
8769
|
case 2:
|
|
8873
8770
|
return a.s.toString();
|
|
8874
8771
|
case 3:
|
|
8875
|
-
if (ob(a))
|
|
8876
|
-
|
|
8877
|
-
else
|
|
8878
|
-
return a.o = rb(a), sb(a);
|
|
8772
|
+
if (ob(a)) a.ea = true;
|
|
8773
|
+
else return a.o = rb(a), sb(a);
|
|
8879
8774
|
default:
|
|
8880
|
-
if (a.ea)
|
|
8881
|
-
return pb(a) && (a.ea = false), a.h.toString() + a.g.toString();
|
|
8775
|
+
if (a.ea) return pb(a) && (a.ea = false), a.h.toString() + a.g.toString();
|
|
8882
8776
|
if (0 < a.j.length) {
|
|
8883
8777
|
b = tb(a, b);
|
|
8884
8778
|
c = ub(a);
|
|
8885
|
-
if (0 < c.length)
|
|
8886
|
-
return c;
|
|
8779
|
+
if (0 < c.length) return c;
|
|
8887
8780
|
mb(a, a.g.toString());
|
|
8888
8781
|
return lb(a) ? vb(a) : a.u ? Z(a, b) : a.s.toString();
|
|
8889
8782
|
}
|
|
@@ -8902,8 +8795,7 @@ var factoryOutput = (() => {
|
|
|
8902
8795
|
function ub(a) {
|
|
8903
8796
|
for (var b = a.g.toString(), c = a.j.length, d = 0; d < c; ++d) {
|
|
8904
8797
|
var e = a.j[d], f = w(e, 1);
|
|
8905
|
-
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha = kb.test(r(e, 4)), e = b.replace(new RegExp(f, "g"), r(e, 2)), e = Z(a, e), O(e, Fa) == a.ba))
|
|
8906
|
-
return e;
|
|
8798
|
+
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha = kb.test(r(e, 4)), e = b.replace(new RegExp(f, "g"), r(e, 2)), e = Z(a, e), O(e, Fa) == a.ba)) return e;
|
|
8907
8799
|
}
|
|
8908
8800
|
return "";
|
|
8909
8801
|
}
|
|
@@ -8927,18 +8819,15 @@ var factoryOutput = (() => {
|
|
|
8927
8819
|
function vb(a) {
|
|
8928
8820
|
var b = a.g.toString(), c = b.length;
|
|
8929
8821
|
if (0 < c) {
|
|
8930
|
-
for (var d = "", e = 0; e < c; e++)
|
|
8931
|
-
d = tb(a, b.charAt(e));
|
|
8822
|
+
for (var d = "", e = 0; e < c; e++) d = tb(a, b.charAt(e));
|
|
8932
8823
|
return a.u ? Z(a, d) : a.s.toString();
|
|
8933
8824
|
}
|
|
8934
8825
|
return a.h.toString();
|
|
8935
8826
|
}
|
|
8936
8827
|
function rb(a) {
|
|
8937
8828
|
var b = a.g.toString(), c = 0;
|
|
8938
|
-
if (1 != r(a.l, 10))
|
|
8939
|
-
|
|
8940
|
-
else
|
|
8941
|
-
d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
|
|
8829
|
+
if (1 != r(a.l, 10)) var d = false;
|
|
8830
|
+
else d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
|
|
8942
8831
|
d ? (c = 1, a.h.g("1").g(" "), a.ca = true) : q(a.l, 15) && (d = new RegExp("^(?:" + r(a.l, 15) + ")"), d = b.match(d), null != d && null != d[0] && 0 < d[0].length && (a.ca = true, c = d[0].length, a.h.g(b.substring(0, c))));
|
|
8943
8832
|
E(a.g);
|
|
8944
8833
|
a.g.g(b.substring(c));
|
|
@@ -8950,11 +8839,9 @@ var factoryOutput = (() => {
|
|
|
8950
8839
|
return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length, E(a.g), a.g.g(b.substring(c)), E(a.h), a.h.g(b.substring(0, c)), "+" != b.charAt(0) && a.h.g(" "), true) : false;
|
|
8951
8840
|
}
|
|
8952
8841
|
function pb(a) {
|
|
8953
|
-
if (0 == a.g.h.length)
|
|
8954
|
-
return false;
|
|
8842
|
+
if (0 == a.g.h.length) return false;
|
|
8955
8843
|
var b = new D(), c = cb(a.g, b);
|
|
8956
|
-
if (0 == c)
|
|
8957
|
-
return false;
|
|
8844
|
+
if (0 == c) return false;
|
|
8958
8845
|
E(a.g);
|
|
8959
8846
|
a.g.g(b.toString());
|
|
8960
8847
|
b = S(c);
|
|
@@ -8984,8 +8871,7 @@ var factoryOutput = (() => {
|
|
|
8984
8871
|
try {
|
|
8985
8872
|
const c = a.replace(/[^+0-9]/g, ""), d = new gb(b);
|
|
8986
8873
|
b = "";
|
|
8987
|
-
for (let e = 0; e < c.length; e++)
|
|
8988
|
-
d.ja = nb(d, c.charAt(e)), b = d.ja;
|
|
8874
|
+
for (let e = 0; e < c.length; e++) d.ja = nb(d, c.charAt(e)), b = d.ja;
|
|
8989
8875
|
return b;
|
|
8990
8876
|
} catch (c) {
|
|
8991
8877
|
return a;
|
|
@@ -9034,8 +8920,7 @@ var factoryOutput = (() => {
|
|
|
9034
8920
|
try {
|
|
9035
8921
|
const g = K.g(), h = Y(g, a, b);
|
|
9036
8922
|
var c = ab(g, h), d = R(g, w(h, 1), c);
|
|
9037
|
-
if (null == d)
|
|
9038
|
-
var e = -1;
|
|
8923
|
+
if (null == d) var e = -1;
|
|
9039
8924
|
else {
|
|
9040
8925
|
var f = Q(h);
|
|
9041
8926
|
e = $a(f, d);
|
|
@@ -9059,8 +8944,7 @@ var factoryOutput = (() => {
|
|
|
9059
8944
|
var c = Y(l, a, b), d = ab(l, c);
|
|
9060
8945
|
a = l;
|
|
9061
8946
|
var e = w(c, 1), f = R(a, e, d);
|
|
9062
|
-
if (null == f || "001" != d && e != bb(a, d))
|
|
9063
|
-
var g = false;
|
|
8947
|
+
if (null == f || "001" != d && e != bb(a, d)) var g = false;
|
|
9064
8948
|
else {
|
|
9065
8949
|
var h = Q(c);
|
|
9066
8950
|
g = -1 != $a(h, f);
|