doct-ui-auth-kit 1.0.16 → 1.0.18
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/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-form-state-persistence.d.ts +20 -0
- package/dist/index.js +675 -672
- package/dist/pages.js +1 -1
- package/dist/{signup-page-DlKFcIGU.js → signup-page-C4ccMx69.js} +528 -470
- package/dist/utils/form-state-storage.d.ts +27 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as V, Fragment as Kt } from "react/jsx-runtime";
|
|
3
|
-
import { f as fe, A as Qr, g as ei, u as ti, h as ni, d as ri, e as ii, c as ai, b as oi, a as Yt, i as qt, O as
|
|
4
|
-
import { B as
|
|
5
|
-
import E, { createContext as
|
|
6
|
-
import { DoctCircularProgress as
|
|
3
|
+
import { f as fe, A as Qr, g as ei, u as ti, h as ni, d as ri, e as ii, c as ai, b as oi, a as Yt, i as di, j as qt, O as ui, S as li } from "./signup-page-C4ccMx69.js";
|
|
4
|
+
import { B as g1, D as v1, k as b1, E as C1, I as P1, L as N1, l as S1, M as E1, m as O1, n as T1, o as I1, R as A1, p as _1, q as w1, r as R1, s as x1, t as F1, v as M1 } from "./signup-page-C4ccMx69.js";
|
|
5
|
+
import E, { createContext as si, useContext as ar, useRef as se, useEffect as He, useCallback as ue, useMemo as Ve, useReducer as ci } from "react";
|
|
6
|
+
import { DoctCircularProgress as fi } from "docthub-core-components";
|
|
7
7
|
import "react-icons/md";
|
|
8
8
|
import "react-hook-form";
|
|
9
9
|
function Ft(e) {
|
|
@@ -27,7 +27,7 @@ async function de(e, t, n, r = !1) {
|
|
|
27
27
|
}
|
|
28
28
|
return a.json();
|
|
29
29
|
}
|
|
30
|
-
async function
|
|
30
|
+
async function $i(e, t) {
|
|
31
31
|
const n = `${Ft(e)}${t}`, r = await fetch(n, {
|
|
32
32
|
method: "GET",
|
|
33
33
|
credentials: "include"
|
|
@@ -38,7 +38,7 @@ async function fi(e, t) {
|
|
|
38
38
|
}
|
|
39
39
|
return r.json();
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function c1(e) {
|
|
42
42
|
const t = Ft(e), r = `${t.endsWith("/api") ? t : `${t}/api`}/auth`;
|
|
43
43
|
return {
|
|
44
44
|
async sendOtp(i) {
|
|
@@ -59,7 +59,7 @@ function s1(e) {
|
|
|
59
59
|
});
|
|
60
60
|
},
|
|
61
61
|
async validateSessionFromCookie() {
|
|
62
|
-
return
|
|
62
|
+
return $i(r, "/validate-session");
|
|
63
63
|
},
|
|
64
64
|
async refreshSession(i) {
|
|
65
65
|
return de(r, "/refresh-session", {
|
|
@@ -77,7 +77,7 @@ function s1(e) {
|
|
|
77
77
|
function or(e) {
|
|
78
78
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const pi = {
|
|
81
81
|
login: {
|
|
82
82
|
layoutType: "withSlider",
|
|
83
83
|
variant: "desktop",
|
|
@@ -100,11 +100,11 @@ const $i = {
|
|
|
100
100
|
align: "left"
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
-
function
|
|
103
|
+
function yi(e) {
|
|
104
104
|
if (e !== "")
|
|
105
|
-
return
|
|
105
|
+
return pi[e];
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function hi(e) {
|
|
108
108
|
const t = fe.c(22), {
|
|
109
109
|
preset: n,
|
|
110
110
|
children: r,
|
|
@@ -121,7 +121,7 @@ function yi(e) {
|
|
|
121
121
|
return t[0] !== r ? (v = /* @__PURE__ */ V(Kt, { children: r }), t[0] = r, t[1] = v) : v = t[1], v;
|
|
122
122
|
}
|
|
123
123
|
let f;
|
|
124
|
-
t[2] !== n ? (f =
|
|
124
|
+
t[2] !== n ? (f = yi(n), t[2] = n, t[3] = f) : f = t[3];
|
|
125
125
|
const c = f;
|
|
126
126
|
if (!c) {
|
|
127
127
|
let v;
|
|
@@ -136,15 +136,15 @@ function yi(e) {
|
|
|
136
136
|
}
|
|
137
137
|
const dr = {
|
|
138
138
|
...ei,
|
|
139
|
-
Preset:
|
|
140
|
-
}, Mt =
|
|
139
|
+
Preset: hi
|
|
140
|
+
}, Mt = si(null);
|
|
141
141
|
function ur() {
|
|
142
142
|
const e = ar(Mt);
|
|
143
143
|
if (!e)
|
|
144
144
|
throw new Error("useAuthFlow must be used within SSOAuthProvider");
|
|
145
145
|
return e;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function f1() {
|
|
148
148
|
const e = fe.c(6), t = ar(Mt);
|
|
149
149
|
if (!t)
|
|
150
150
|
throw new Error("useAuthSession must be used within SSOAuthProvider");
|
|
@@ -158,13 +158,13 @@ function c1() {
|
|
|
158
158
|
authMethod: i
|
|
159
159
|
}, e[0] = t.actions.signOut, e[1] = t.isLoading, e[2] = n, e[3] = r, e[4] = i, e[5] = a) : a = e[5], a;
|
|
160
160
|
}
|
|
161
|
-
const Zt = /* @__PURE__ */ new Set(["METHOD_SELECT", "PHONE_ENTRY", "EMAIL_ENTRY"]),
|
|
161
|
+
const Zt = /* @__PURE__ */ new Set(["METHOD_SELECT", "PHONE_ENTRY", "EMAIL_ENTRY"]), mi = {
|
|
162
162
|
METHOD_SELECT: ["PHONE_ENTRY", "EMAIL_ENTRY", "OTP_VERIFICATION", "SIGNUP_DETAILS", "REPEAT_LOGIN"],
|
|
163
163
|
PHONE_ENTRY: ["OTP_VERIFICATION", "SIGNUP_DETAILS"],
|
|
164
164
|
EMAIL_ENTRY: ["OTP_VERIFICATION", "SIGNUP_DETAILS"]
|
|
165
165
|
};
|
|
166
|
-
function
|
|
167
|
-
return
|
|
166
|
+
function gi(e, t) {
|
|
167
|
+
return mi[t]?.includes(e) ?? !1;
|
|
168
168
|
}
|
|
169
169
|
function Xt(e, t) {
|
|
170
170
|
for (const n of Object.keys(e))
|
|
@@ -185,7 +185,7 @@ function Jt(e, t) {
|
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function vi(e, t) {
|
|
189
189
|
const {
|
|
190
190
|
state: n,
|
|
191
191
|
actions: r
|
|
@@ -194,7 +194,7 @@ function gi(e, t) {
|
|
|
194
194
|
const a = se(r);
|
|
195
195
|
a.current = r;
|
|
196
196
|
const o = se(!1), d = se(null), u = se(!1);
|
|
197
|
-
|
|
197
|
+
He(() => {
|
|
198
198
|
if (!e || !t || n.step === "CHECKING_SESSION") return;
|
|
199
199
|
const l = t[n.step];
|
|
200
200
|
if (l == null) return;
|
|
@@ -217,8 +217,8 @@ function gi(e, t) {
|
|
|
217
217
|
return;
|
|
218
218
|
}
|
|
219
219
|
const f = d.current;
|
|
220
|
-
f != null &&
|
|
221
|
-
}, [e, t, n.step]),
|
|
220
|
+
f != null && gi(f, n.step) ? e.replace(l) : e.push(l), d.current = n.step;
|
|
221
|
+
}, [e, t, n.step]), He(() => {
|
|
222
222
|
if (!(!e || !t))
|
|
223
223
|
return e.subscribe((l) => {
|
|
224
224
|
const s = i.current;
|
|
@@ -238,9 +238,9 @@ function gi(e, t) {
|
|
|
238
238
|
function zt() {
|
|
239
239
|
const e = fe.c(1);
|
|
240
240
|
let t;
|
|
241
|
-
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ V("div", { className: "flex min-h-svh w-full items-center justify-center", children: /* @__PURE__ */ V(
|
|
241
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ V("div", { className: "flex min-h-svh w-full items-center justify-center", children: /* @__PURE__ */ V(fi, { size: 32 }) }), e[0] = t) : t = e[0], t;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function bi(e) {
|
|
244
244
|
const t = fe.c(66);
|
|
245
245
|
let n;
|
|
246
246
|
t[0] !== e ? (n = e === void 0 ? {} : e, t[0] = e, t[1] = n) : n = t[1];
|
|
@@ -254,7 +254,7 @@ function vi(e) {
|
|
|
254
254
|
actions: u,
|
|
255
255
|
providerConfig: l
|
|
256
256
|
} = ur();
|
|
257
|
-
|
|
257
|
+
vi(r, i);
|
|
258
258
|
const s = l?.google, f = l?.apple, c = d.step === "METHOD_SELECT" && !!s?.clientId && s.enableOneTap !== !1, $ = s?.clientId ?? "";
|
|
259
259
|
let g;
|
|
260
260
|
t[2] !== u ? (g = (b) => u.providerCallback({
|
|
@@ -294,9 +294,9 @@ function vi(e) {
|
|
|
294
294
|
let F, G;
|
|
295
295
|
t[15] !== u ? (G = () => u.selectMethod("phone"), F = () => u.selectMethod("email"), t[15] = u, t[16] = F, t[17] = G) : (F = t[16], G = t[17]);
|
|
296
296
|
let U;
|
|
297
|
-
t[18] !== b || t[19] !== y ? (U = b ? y :
|
|
297
|
+
t[18] !== b || t[19] !== y ? (U = b ? y : Pi, t[18] = b, t[19] = y, t[20] = U) : U = t[20];
|
|
298
298
|
let W;
|
|
299
|
-
t[21] !== A || t[22] !== h ? (W = A ? h :
|
|
299
|
+
t[21] !== A || t[22] !== h ? (W = A ? h : Ci, t[21] = A, t[22] = h, t[23] = W) : W = t[23];
|
|
300
300
|
let K;
|
|
301
301
|
t[24] !== o ? (K = o != null && {
|
|
302
302
|
onEnterpriseLogin: o
|
|
@@ -341,14 +341,14 @@ function vi(e) {
|
|
|
341
341
|
return null;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
function bi() {
|
|
345
|
-
}
|
|
346
344
|
function Ci() {
|
|
347
345
|
}
|
|
346
|
+
function Pi() {
|
|
347
|
+
}
|
|
348
348
|
const lr = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[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], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "(?:[025-7]\\d|44)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "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], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["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}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "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], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\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"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, 0, [["528[89]\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\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"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, "0|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0|180020", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[06]0"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33622|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["3"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{4})(\\d{5})", "$1-$2", ["892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8(?:0[0-7]|9)"], "0$1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[5-8]"], "0$1"]], "0", 0, 0, 0, 0, "[5-8]"], MC: ["377", "00", "(?:[3489]|[67]\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\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]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["3[289]|4[246-8]|61|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\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"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, 0, [["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]], ["9\\d{9}", [10]], ["8(?:0[04]|108\\d{3})\\d{7}"], ["80[39]\\d{7}", [10]], ["808\\d{7}", [10]]], "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|30|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], VA: ["39", "00", "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], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
|
|
349
349
|
var je = { exports: {} }, ke = { exports: {} }, j = {};
|
|
350
350
|
var Qt;
|
|
351
|
-
function
|
|
351
|
+
function Ni() {
|
|
352
352
|
if (Qt) return j;
|
|
353
353
|
Qt = 1;
|
|
354
354
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, O = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
@@ -415,7 +415,7 @@ function Pi() {
|
|
|
415
415
|
}
|
|
416
416
|
var k = {};
|
|
417
417
|
var en;
|
|
418
|
-
function
|
|
418
|
+
function Si() {
|
|
419
419
|
return en || (en = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
420
420
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, O = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
421
421
|
function S(C) {
|
|
@@ -499,11 +499,11 @@ function Ni() {
|
|
|
499
499
|
}
|
|
500
500
|
var tn;
|
|
501
501
|
function sr() {
|
|
502
|
-
return tn || (tn = 1, process.env.NODE_ENV === "production" ? ke.exports =
|
|
502
|
+
return tn || (tn = 1, process.env.NODE_ENV === "production" ? ke.exports = Ni() : ke.exports = Si()), ke.exports;
|
|
503
503
|
}
|
|
504
|
-
var
|
|
505
|
-
function
|
|
506
|
-
if (nn) return
|
|
504
|
+
var at, nn;
|
|
505
|
+
function Ei() {
|
|
506
|
+
if (nn) return at;
|
|
507
507
|
nn = 1;
|
|
508
508
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
509
509
|
function r(a) {
|
|
@@ -533,7 +533,7 @@ function Si() {
|
|
|
533
533
|
return !1;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
return
|
|
536
|
+
return at = i() ? Object.assign : function(a, o) {
|
|
537
537
|
for (var d, u = r(a), l, s = 1; s < arguments.length; s++) {
|
|
538
538
|
d = Object(arguments[s]);
|
|
539
539
|
for (var f in d)
|
|
@@ -545,22 +545,22 @@ function Si() {
|
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
return u;
|
|
548
|
-
},
|
|
548
|
+
}, at;
|
|
549
549
|
}
|
|
550
|
-
var
|
|
550
|
+
var ot, rn;
|
|
551
551
|
function Dt() {
|
|
552
|
-
if (rn) return
|
|
552
|
+
if (rn) return ot;
|
|
553
553
|
rn = 1;
|
|
554
554
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
555
|
-
return
|
|
555
|
+
return ot = e, ot;
|
|
556
556
|
}
|
|
557
|
-
var
|
|
557
|
+
var dt, an;
|
|
558
558
|
function cr() {
|
|
559
|
-
return an || (an = 1,
|
|
559
|
+
return an || (an = 1, dt = Function.call.bind(Object.prototype.hasOwnProperty)), dt;
|
|
560
560
|
}
|
|
561
|
-
var
|
|
562
|
-
function
|
|
563
|
-
if (on) return
|
|
561
|
+
var ut, on;
|
|
562
|
+
function Oi() {
|
|
563
|
+
if (on) return ut;
|
|
564
564
|
on = 1;
|
|
565
565
|
var e = function() {
|
|
566
566
|
};
|
|
@@ -605,13 +605,13 @@ function Ei() {
|
|
|
605
605
|
}
|
|
606
606
|
return i.resetWarningCache = function() {
|
|
607
607
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
608
|
-
},
|
|
608
|
+
}, ut = i, ut;
|
|
609
609
|
}
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
if (dn) return
|
|
610
|
+
var lt, dn;
|
|
611
|
+
function Ti() {
|
|
612
|
+
if (dn) return lt;
|
|
613
613
|
dn = 1;
|
|
614
|
-
var e = sr(), t =
|
|
614
|
+
var e = sr(), t = Ei(), n = /* @__PURE__ */ Dt(), r = /* @__PURE__ */ cr(), i = /* @__PURE__ */ Oi(), a = function() {
|
|
615
615
|
};
|
|
616
616
|
process.env.NODE_ENV !== "production" && (a = function(d) {
|
|
617
617
|
var u = "Warning: " + d;
|
|
@@ -624,7 +624,7 @@ function Oi() {
|
|
|
624
624
|
function o() {
|
|
625
625
|
return null;
|
|
626
626
|
}
|
|
627
|
-
return
|
|
627
|
+
return lt = function(d, u) {
|
|
628
628
|
var l = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
|
|
629
629
|
function f(m) {
|
|
630
630
|
var N = m && (l && m[l] || m[s]);
|
|
@@ -926,18 +926,18 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
926
926
|
return !m.constructor || !m.constructor.name ? c : m.constructor.name;
|
|
927
927
|
}
|
|
928
928
|
return $.checkPropTypes = i, $.resetWarningCache = i.resetWarningCache, $.PropTypes = $, $;
|
|
929
|
-
},
|
|
929
|
+
}, lt;
|
|
930
930
|
}
|
|
931
|
-
var
|
|
932
|
-
function
|
|
933
|
-
if (un) return
|
|
931
|
+
var st, un;
|
|
932
|
+
function Ii() {
|
|
933
|
+
if (un) return st;
|
|
934
934
|
un = 1;
|
|
935
935
|
var e = /* @__PURE__ */ Dt();
|
|
936
936
|
function t() {
|
|
937
937
|
}
|
|
938
938
|
function n() {
|
|
939
939
|
}
|
|
940
|
-
return n.resetWarningCache = t,
|
|
940
|
+
return n.resetWarningCache = t, st = function() {
|
|
941
941
|
function r(o, d, u, l, s, f) {
|
|
942
942
|
if (f !== e) {
|
|
943
943
|
var c = new Error(
|
|
@@ -974,23 +974,23 @@ function Ti() {
|
|
|
974
974
|
resetWarningCache: t
|
|
975
975
|
};
|
|
976
976
|
return a.PropTypes = a, a;
|
|
977
|
-
},
|
|
977
|
+
}, st;
|
|
978
978
|
}
|
|
979
979
|
var ln;
|
|
980
|
-
function
|
|
980
|
+
function Ai() {
|
|
981
981
|
if (ln) return je.exports;
|
|
982
982
|
if (ln = 1, process.env.NODE_ENV !== "production") {
|
|
983
983
|
var e = sr(), t = !0;
|
|
984
|
-
je.exports = /* @__PURE__ */
|
|
984
|
+
je.exports = /* @__PURE__ */ Ti()(e.isElement, t);
|
|
985
985
|
} else
|
|
986
|
-
je.exports = /* @__PURE__ */
|
|
986
|
+
je.exports = /* @__PURE__ */ Ii()();
|
|
987
987
|
return je.exports;
|
|
988
988
|
}
|
|
989
|
-
var
|
|
990
|
-
const p = /* @__PURE__ */ or(
|
|
991
|
-
var
|
|
989
|
+
var _i = /* @__PURE__ */ Ai();
|
|
990
|
+
const p = /* @__PURE__ */ or(_i);
|
|
991
|
+
var ct = { exports: {} };
|
|
992
992
|
var sn;
|
|
993
|
-
function
|
|
993
|
+
function wi() {
|
|
994
994
|
return sn || (sn = 1, (function(e) {
|
|
995
995
|
(function() {
|
|
996
996
|
var t = {}.hasOwnProperty;
|
|
@@ -1020,11 +1020,11 @@ function _i() {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
1022
1022
|
})();
|
|
1023
|
-
})(
|
|
1023
|
+
})(ct)), ct.exports;
|
|
1024
1024
|
}
|
|
1025
|
-
var
|
|
1026
|
-
const
|
|
1027
|
-
function
|
|
1025
|
+
var Ri = wi();
|
|
1026
|
+
const Ke = /* @__PURE__ */ or(Ri);
|
|
1027
|
+
function xi(e, t, n) {
|
|
1028
1028
|
switch (n) {
|
|
1029
1029
|
case "Backspace":
|
|
1030
1030
|
t > 0 && (e = e.slice(0, t - 1) + e.slice(t), t--);
|
|
@@ -1038,7 +1038,7 @@ function Ri(e, t, n) {
|
|
|
1038
1038
|
caret: t
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function Fi(e, t, n) {
|
|
1042
1042
|
for (var r = {}, i = "", a = 0, o = 0; o < e.length; ) {
|
|
1043
1043
|
var d = n(e[o], i, r);
|
|
1044
1044
|
d !== void 0 && (i += d, t !== void 0 && (t === o ? a = i.length - 1 : t > o && (a = i.length))), o++;
|
|
@@ -1050,10 +1050,10 @@ function xi(e, t, n) {
|
|
|
1050
1050
|
};
|
|
1051
1051
|
return u;
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function Mi(e, t) {
|
|
1054
1054
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1055
1055
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
1056
|
-
if (Array.isArray(e) || (n =
|
|
1056
|
+
if (Array.isArray(e) || (n = Di(e)) || t) {
|
|
1057
1057
|
n && (e = n);
|
|
1058
1058
|
var r = 0;
|
|
1059
1059
|
return function() {
|
|
@@ -1063,7 +1063,7 @@ function Fi(e, t) {
|
|
|
1063
1063
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1064
1064
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Di(e, t) {
|
|
1067
1067
|
if (e) {
|
|
1068
1068
|
if (typeof e == "string") return cn(e, t);
|
|
1069
1069
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -1078,21 +1078,21 @@ function cn(e, t) {
|
|
|
1078
1078
|
return r;
|
|
1079
1079
|
}
|
|
1080
1080
|
function ht(e, t) {
|
|
1081
|
-
for (var n = 0, r =
|
|
1081
|
+
for (var n = 0, r = Mi(t.split("")), i; !(i = r()).done; ) {
|
|
1082
1082
|
var a = i.value;
|
|
1083
1083
|
a === e && n++;
|
|
1084
1084
|
}
|
|
1085
1085
|
return n;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function Li(e, t) {
|
|
1088
1088
|
for (var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "x", r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : " ", i = e.length, a = ht("(", e), o = ht(")", e), d = a - o; d > 0 && i < t.length; )
|
|
1089
1089
|
e += t[i].replace(n, r), t[i] === ")" && d--, i++;
|
|
1090
1090
|
return e;
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function ji(e, t) {
|
|
1093
1093
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1094
1094
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
1095
|
-
if (Array.isArray(e) || (n =
|
|
1095
|
+
if (Array.isArray(e) || (n = ki(e)) || t) {
|
|
1096
1096
|
n && (e = n);
|
|
1097
1097
|
var r = 0;
|
|
1098
1098
|
return function() {
|
|
@@ -1102,7 +1102,7 @@ function Li(e, t) {
|
|
|
1102
1102
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1103
1103
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function ki(e, t) {
|
|
1106
1106
|
if (e) {
|
|
1107
1107
|
if (typeof e == "string") return fn(e, t);
|
|
1108
1108
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -1116,7 +1116,7 @@ function fn(e, t) {
|
|
|
1116
1116
|
r[n] = e[n];
|
|
1117
1117
|
return r;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function Gi(e) {
|
|
1120
1120
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "x", n = arguments.length > 2 ? arguments[2] : void 0;
|
|
1121
1121
|
if (!e)
|
|
1122
1122
|
return function(i) {
|
|
@@ -1131,7 +1131,7 @@ function ki(e) {
|
|
|
1131
1131
|
text: "",
|
|
1132
1132
|
template: e
|
|
1133
1133
|
};
|
|
1134
|
-
for (var a = 0, o = "", d =
|
|
1134
|
+
for (var a = 0, o = "", d = ji(e.split("")), u; !(u = d()).done; ) {
|
|
1135
1135
|
var l = u.value;
|
|
1136
1136
|
if (l !== t) {
|
|
1137
1137
|
o += l;
|
|
@@ -1140,14 +1140,14 @@ function ki(e) {
|
|
|
1140
1140
|
if (o += i[a], a++, a === i.length && i.length < r)
|
|
1141
1141
|
break;
|
|
1142
1142
|
}
|
|
1143
|
-
return n && (o =
|
|
1143
|
+
return n && (o = Li(o, e)), {
|
|
1144
1144
|
text: o,
|
|
1145
1145
|
template: e
|
|
1146
1146
|
};
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
typeof n == "string" && (n =
|
|
1149
|
+
function Bi(e, t, n) {
|
|
1150
|
+
typeof n == "string" && (n = Gi(n));
|
|
1151
1151
|
var r = n(e) || {}, i = r.text, a = r.template;
|
|
1152
1152
|
if (i === void 0 && (i = e), a)
|
|
1153
1153
|
if (t === void 0)
|
|
@@ -1170,10 +1170,10 @@ function Gi(e, t, n) {
|
|
|
1170
1170
|
caret: t
|
|
1171
1171
|
};
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function Ui(e) {
|
|
1174
1174
|
return e.hasAttribute("readonly");
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function Wi(e) {
|
|
1177
1177
|
if (e.selectionStart !== e.selectionEnd)
|
|
1178
1178
|
return {
|
|
1179
1179
|
start: e.selectionStart,
|
|
@@ -1184,7 +1184,7 @@ var $n = {
|
|
|
1184
1184
|
Backspace: 8,
|
|
1185
1185
|
Delete: 46
|
|
1186
1186
|
};
|
|
1187
|
-
function
|
|
1187
|
+
function Hi(e) {
|
|
1188
1188
|
switch (e.keyCode) {
|
|
1189
1189
|
case $n.Backspace:
|
|
1190
1190
|
return "Backspace";
|
|
@@ -1192,48 +1192,48 @@ function Wi(e) {
|
|
|
1192
1192
|
return "Delete";
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Vi(e) {
|
|
1196
1196
|
return e.selectionStart;
|
|
1197
1197
|
}
|
|
1198
1198
|
function fr(e, t) {
|
|
1199
|
-
t !== void 0 && (
|
|
1199
|
+
t !== void 0 && (Ki() ? setTimeout(function() {
|
|
1200
1200
|
return e.setSelectionRange(t, t);
|
|
1201
1201
|
}, 0) : e.setSelectionRange(t, t));
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function Ki() {
|
|
1204
1204
|
if (typeof navigator < "u")
|
|
1205
|
-
return
|
|
1205
|
+
return Yi.test(navigator.userAgent);
|
|
1206
1206
|
}
|
|
1207
|
-
var
|
|
1208
|
-
function
|
|
1207
|
+
var Yi = /Android/i;
|
|
1208
|
+
function qi(e, t, n, r, i) {
|
|
1209
1209
|
mt(t, n, r, void 0, i);
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1212
|
-
if (!
|
|
1213
|
-
var a =
|
|
1211
|
+
function Zi(e, t, n, r, i) {
|
|
1212
|
+
if (!Ui(t)) {
|
|
1213
|
+
var a = Hi(e);
|
|
1214
1214
|
switch (a) {
|
|
1215
1215
|
case "Delete":
|
|
1216
1216
|
case "Backspace":
|
|
1217
1217
|
e.preventDefault();
|
|
1218
|
-
var o =
|
|
1219
|
-
return o ? (
|
|
1218
|
+
var o = Wi(t);
|
|
1219
|
+
return o ? (Xi(t, o), mt(t, n, r, void 0, i)) : mt(t, n, r, a, i);
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function Xi(e, t) {
|
|
1224
1224
|
var n = e.value;
|
|
1225
1225
|
n = n.slice(0, t.start) + n.slice(t.end), e.value = n, fr(e, t.start);
|
|
1226
1226
|
}
|
|
1227
1227
|
function mt(e, t, n, r, i) {
|
|
1228
|
-
var a =
|
|
1228
|
+
var a = Fi(e.value, Vi(e), t), o = a.value, d = a.caret;
|
|
1229
1229
|
if (r) {
|
|
1230
|
-
var u =
|
|
1230
|
+
var u = xi(o, d, r);
|
|
1231
1231
|
o = u.value, d = u.caret;
|
|
1232
1232
|
}
|
|
1233
|
-
var l =
|
|
1233
|
+
var l = Bi(o, d, n), s = l.text;
|
|
1234
1234
|
d = l.caret, e.value = s, fr(e, d), i && i(o);
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1236
|
+
var Ji = ["ref", "parse", "format", "value", "defaultValue", "controlled", "onChange", "onKeyDown"];
|
|
1237
1237
|
function pn(e, t) {
|
|
1238
1238
|
var n = Object.keys(e);
|
|
1239
1239
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1248,19 +1248,19 @@ function pe(e) {
|
|
|
1248
1248
|
for (var t = 1; t < arguments.length; t++) {
|
|
1249
1249
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1250
1250
|
t % 2 ? pn(Object(n), !0).forEach(function(r) {
|
|
1251
|
-
|
|
1251
|
+
zi(e, r, n[r]);
|
|
1252
1252
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pn(Object(n)).forEach(function(r) {
|
|
1253
1253
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
1256
|
return e;
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function zi(e, t, n) {
|
|
1259
1259
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function Qi(e, t) {
|
|
1262
1262
|
if (e == null) return {};
|
|
1263
|
-
var n =
|
|
1263
|
+
var n = ea(e, t), r, i;
|
|
1264
1264
|
if (Object.getOwnPropertySymbols) {
|
|
1265
1265
|
var a = Object.getOwnPropertySymbols(e);
|
|
1266
1266
|
for (i = 0; i < a.length; i++)
|
|
@@ -1268,21 +1268,21 @@ function zi(e, t) {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
return n;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function ea(e, t) {
|
|
1272
1272
|
if (e == null) return {};
|
|
1273
1273
|
var n = {}, r = Object.keys(e), i, a;
|
|
1274
1274
|
for (a = 0; a < r.length; a++)
|
|
1275
1275
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
1276
1276
|
return n;
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1279
|
-
var t = e.ref, n = e.parse, r = e.format, i = e.value, a = e.defaultValue, o = e.controlled, d = o === void 0 ? !0 : o, u = e.onChange, l = e.onKeyDown, s =
|
|
1278
|
+
function ta(e) {
|
|
1279
|
+
var t = e.ref, n = e.parse, r = e.format, i = e.value, a = e.defaultValue, o = e.controlled, d = o === void 0 ? !0 : o, u = e.onChange, l = e.onKeyDown, s = Qi(e, Ji), f = se(), c = ue(function(y) {
|
|
1280
1280
|
f.current = y, t && (typeof t == "function" ? t(y) : t.current = y);
|
|
1281
1281
|
}, [t]), $ = ue(function(y) {
|
|
1282
|
-
return
|
|
1282
|
+
return qi(y, f.current, n, r, u);
|
|
1283
1283
|
}, [f, n, r, u]), g = ue(function(y) {
|
|
1284
1284
|
if (l && l(y), !y.defaultPrevented)
|
|
1285
|
-
return
|
|
1285
|
+
return Zi(y, f.current, n, r, u);
|
|
1286
1286
|
}, [f, n, r, u, l]), v = pe(pe({}, s), {}, {
|
|
1287
1287
|
ref: c,
|
|
1288
1288
|
onChange: $,
|
|
@@ -1297,7 +1297,7 @@ function ea(e) {
|
|
|
1297
1297
|
function yn(e) {
|
|
1298
1298
|
return e == null;
|
|
1299
1299
|
}
|
|
1300
|
-
var
|
|
1300
|
+
var na = ["inputComponent", "parse", "format", "value", "defaultValue", "onChange", "controlled", "onKeyDown", "type"];
|
|
1301
1301
|
function hn(e, t) {
|
|
1302
1302
|
var n = Object.keys(e);
|
|
1303
1303
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1308,23 +1308,23 @@ function hn(e, t) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
return n;
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1311
|
+
function ra(e) {
|
|
1312
1312
|
for (var t = 1; t < arguments.length; t++) {
|
|
1313
1313
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1314
1314
|
t % 2 ? hn(Object(n), !0).forEach(function(r) {
|
|
1315
|
-
|
|
1315
|
+
ia(e, r, n[r]);
|
|
1316
1316
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hn(Object(n)).forEach(function(r) {
|
|
1317
1317
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
1318
1318
|
});
|
|
1319
1319
|
}
|
|
1320
1320
|
return e;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function ia(e, t, n) {
|
|
1323
1323
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function aa(e, t) {
|
|
1326
1326
|
if (e == null) return {};
|
|
1327
|
-
var n =
|
|
1327
|
+
var n = oa(e, t), r, i;
|
|
1328
1328
|
if (Object.getOwnPropertySymbols) {
|
|
1329
1329
|
var a = Object.getOwnPropertySymbols(e);
|
|
1330
1330
|
for (i = 0; i < a.length; i++)
|
|
@@ -1332,15 +1332,15 @@ function ia(e, t) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
return n;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function oa(e, t) {
|
|
1336
1336
|
if (e == null) return {};
|
|
1337
1337
|
var n = {}, r = Object.keys(e), i, a;
|
|
1338
1338
|
for (a = 0; a < r.length; a++)
|
|
1339
1339
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
1340
1340
|
return n;
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1343
|
-
var n = e.inputComponent, r = n === void 0 ? "input" : n, i = e.parse, a = e.format, o = e.value, d = e.defaultValue, u = e.onChange, l = e.controlled, s = e.onKeyDown, f = e.type, c = f === void 0 ? "text" : f, $ =
|
|
1342
|
+
function Ye(e, t) {
|
|
1343
|
+
var n = e.inputComponent, r = n === void 0 ? "input" : n, i = e.parse, a = e.format, o = e.value, d = e.defaultValue, u = e.onChange, l = e.controlled, s = e.onKeyDown, f = e.type, c = f === void 0 ? "text" : f, $ = aa(e, na), g = ta(ra({
|
|
1344
1344
|
ref: t,
|
|
1345
1345
|
parse: i,
|
|
1346
1346
|
format: a,
|
|
@@ -1353,8 +1353,8 @@ function Ke(e, t) {
|
|
|
1353
1353
|
}, $));
|
|
1354
1354
|
return /* @__PURE__ */ E.createElement(r, g);
|
|
1355
1355
|
}
|
|
1356
|
-
|
|
1357
|
-
|
|
1356
|
+
Ye = /* @__PURE__ */ E.forwardRef(Ye);
|
|
1357
|
+
Ye.propTypes = {
|
|
1358
1358
|
// Parses a single characher of `<input/>` text.
|
|
1359
1359
|
parse: p.func.isRequired,
|
|
1360
1360
|
// Formats `value` into `<input/>` text.
|
|
@@ -1388,9 +1388,9 @@ function mn(e, t) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
|
|
1390
1390
|
}
|
|
1391
|
-
var
|
|
1391
|
+
var da = {}.constructor;
|
|
1392
1392
|
function ce(e) {
|
|
1393
|
-
return e != null && e.constructor ===
|
|
1393
|
+
return e != null && e.constructor === da;
|
|
1394
1394
|
}
|
|
1395
1395
|
function ve(e) {
|
|
1396
1396
|
"@babel/helpers - typeof";
|
|
@@ -1400,23 +1400,23 @@ function ve(e) {
|
|
|
1400
1400
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1401
1401
|
}, ve(e);
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function Qe(e, t) {
|
|
1404
1404
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function ua(e, t) {
|
|
1407
1407
|
for (var n = 0; n < t.length; n++) {
|
|
1408
1408
|
var r = t[n];
|
|
1409
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
1409
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, la(r.key), r);
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1413
|
-
return t &&
|
|
1412
|
+
function et(e, t, n) {
|
|
1413
|
+
return t && ua(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1416
|
-
var t =
|
|
1415
|
+
function la(e) {
|
|
1416
|
+
var t = sa(e, "string");
|
|
1417
1417
|
return ve(t) == "symbol" ? t : t + "";
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function sa(e, t) {
|
|
1420
1420
|
if (ve(e) != "object" || !e) return e;
|
|
1421
1421
|
var n = e[Symbol.toPrimitive];
|
|
1422
1422
|
if (n !== void 0) {
|
|
@@ -1426,11 +1426,11 @@ function la(e, t) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
return String(e);
|
|
1428
1428
|
}
|
|
1429
|
-
var
|
|
1429
|
+
var ca = "1.2.0", fa = "1.7.35", gn = " ext. ", $a = /^\d+$/, H = /* @__PURE__ */ (function() {
|
|
1430
1430
|
function e(t) {
|
|
1431
|
-
|
|
1431
|
+
Qe(this, e), $r(t), this.metadata = t, yr.call(this, t);
|
|
1432
1432
|
}
|
|
1433
|
-
return
|
|
1433
|
+
return et(e, [{
|
|
1434
1434
|
key: "getCountries",
|
|
1435
1435
|
value: function() {
|
|
1436
1436
|
return Object.keys(this.metadata.countries).filter(function(n) {
|
|
@@ -1481,7 +1481,7 @@ var sa = "1.2.0", ca = "1.7.35", gn = " ext. ", fa = /^\d+$/, H = /* @__PURE__ *
|
|
|
1481
1481
|
}, {
|
|
1482
1482
|
key: "selectNumberingPlan",
|
|
1483
1483
|
value: function(n, r) {
|
|
1484
|
-
if (n &&
|
|
1484
|
+
if (n && $a.test(n) && (r = n, n = null), n && n !== "001") {
|
|
1485
1485
|
if (!this.hasCountry(n))
|
|
1486
1486
|
throw new Error("Unknown country: ".concat(n));
|
|
1487
1487
|
this.numberingPlan = new vn(this.getCountryMetadata(n), this);
|
|
@@ -1614,9 +1614,9 @@ var sa = "1.2.0", ca = "1.7.35", gn = " ext. ", fa = /^\d+$/, H = /* @__PURE__ *
|
|
|
1614
1614
|
}]);
|
|
1615
1615
|
})(), vn = /* @__PURE__ */ (function() {
|
|
1616
1616
|
function e(t, n) {
|
|
1617
|
-
|
|
1617
|
+
Qe(this, e), this.globalMetadataObject = n, this.metadata = t, yr.call(this, n.metadata);
|
|
1618
1618
|
}
|
|
1619
|
-
return
|
|
1619
|
+
return et(e, [{
|
|
1620
1620
|
key: "callingCode",
|
|
1621
1621
|
value: function() {
|
|
1622
1622
|
return this.metadata[0];
|
|
@@ -1671,7 +1671,7 @@ var sa = "1.2.0", ca = "1.7.35", gn = " ext. ", fa = /^\d+$/, H = /* @__PURE__ *
|
|
|
1671
1671
|
value: function() {
|
|
1672
1672
|
var n = this, r = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
1673
1673
|
return r.map(function(i) {
|
|
1674
|
-
return new
|
|
1674
|
+
return new pa(i, n);
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
}, {
|
|
@@ -1740,7 +1740,7 @@ var sa = "1.2.0", ca = "1.7.35", gn = " ext. ", fa = /^\d+$/, H = /* @__PURE__ *
|
|
|
1740
1740
|
key: "type",
|
|
1741
1741
|
value: function(n) {
|
|
1742
1742
|
if (this.hasTypes() && bn(this.types(), n))
|
|
1743
|
-
return new
|
|
1743
|
+
return new ha(bn(this.types(), n), this);
|
|
1744
1744
|
}
|
|
1745
1745
|
}, {
|
|
1746
1746
|
key: "ext",
|
|
@@ -1748,11 +1748,11 @@ var sa = "1.2.0", ca = "1.7.35", gn = " ext. ", fa = /^\d+$/, H = /* @__PURE__ *
|
|
|
1748
1748
|
return this.v1 || this.v2 ? gn : this.metadata[13] || gn;
|
|
1749
1749
|
}
|
|
1750
1750
|
}]);
|
|
1751
|
-
})(),
|
|
1751
|
+
})(), pa = /* @__PURE__ */ (function() {
|
|
1752
1752
|
function e(t, n) {
|
|
1753
|
-
|
|
1753
|
+
Qe(this, e), this._format = t, this.metadata = n;
|
|
1754
1754
|
}
|
|
1755
|
-
return
|
|
1755
|
+
return et(e, [{
|
|
1756
1756
|
key: "pattern",
|
|
1757
1757
|
value: function() {
|
|
1758
1758
|
return this._format[0];
|
|
@@ -1787,7 +1787,7 @@ var sa = "1.2.0", ca = "1.7.35", gn = " ext. ", fa = /^\d+$/, H = /* @__PURE__ *
|
|
|
1787
1787
|
key: "usesNationalPrefix",
|
|
1788
1788
|
value: function() {
|
|
1789
1789
|
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
|
1790
|
-
!
|
|
1790
|
+
!ya.test(this.nationalPrefixFormattingRule()));
|
|
1791
1791
|
}
|
|
1792
1792
|
}, {
|
|
1793
1793
|
key: "internationalFormat",
|
|
@@ -1795,11 +1795,11 @@ var sa = "1.2.0", ca = "1.7.35", gn = " ext. ", fa = /^\d+$/, H = /* @__PURE__ *
|
|
|
1795
1795
|
return this._format[5] || this.format();
|
|
1796
1796
|
}
|
|
1797
1797
|
}]);
|
|
1798
|
-
})(),
|
|
1798
|
+
})(), ya = /^\(?\$1\)?$/, ha = /* @__PURE__ */ (function() {
|
|
1799
1799
|
function e(t, n) {
|
|
1800
|
-
|
|
1800
|
+
Qe(this, e), this.type = t, this.metadata = n;
|
|
1801
1801
|
}
|
|
1802
|
-
return
|
|
1802
|
+
return et(e, [{
|
|
1803
1803
|
key: "pattern",
|
|
1804
1804
|
value: function() {
|
|
1805
1805
|
return this.metadata.v1 ? this.type : this.type[0];
|
|
@@ -1840,9 +1840,9 @@ function $r(e) {
|
|
|
1840
1840
|
if (!e)
|
|
1841
1841
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
1842
1842
|
if (!ce(e) || !ce(e.countries))
|
|
1843
|
-
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(ce(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " +
|
|
1843
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(ce(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + ma(e) + ": " + e, "."));
|
|
1844
1844
|
}
|
|
1845
|
-
var
|
|
1845
|
+
var ma = function(t) {
|
|
1846
1846
|
return ve(t);
|
|
1847
1847
|
};
|
|
1848
1848
|
function le(e, t) {
|
|
@@ -1855,12 +1855,12 @@ function pr(e, t) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
function yr(e) {
|
|
1857
1857
|
var t = e.version;
|
|
1858
|
-
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? mn(t,
|
|
1858
|
+
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? mn(t, ca) === -1 ? this.v2 = !0 : mn(t, fa) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1861
|
-
return
|
|
1860
|
+
function tt(e, t, n) {
|
|
1861
|
+
return ga(e, t, void 0, n);
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function ga(e, t, n, r) {
|
|
1864
1864
|
t && (r = new H(r.metadata), r.selectNumberingPlan(t));
|
|
1865
1865
|
var i = r.type(n), a = i && i.possibleLengths() || r.possibleLengths();
|
|
1866
1866
|
if (!a)
|
|
@@ -1868,7 +1868,7 @@ function ma(e, t, n, r) {
|
|
|
1868
1868
|
var o = e.length, d = a[0];
|
|
1869
1869
|
return d === o ? "IS_POSSIBLE" : d > o ? "TOO_SHORT" : a[a.length - 1] < o ? "TOO_LONG" : a.indexOf(o, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function va(e, t, n) {
|
|
1872
1872
|
if (t === void 0 && (t = {}), n = new H(n), t.v2) {
|
|
1873
1873
|
if (!e.countryCallingCode)
|
|
1874
1874
|
throw new Error("Invalid phone number object passed");
|
|
@@ -1893,15 +1893,15 @@ function ga(e, t, n) {
|
|
|
1893
1893
|
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
1894
1894
|
}
|
|
1895
1895
|
function hr(e, t, n) {
|
|
1896
|
-
return
|
|
1896
|
+
return tt(e, t, n) === "IS_POSSIBLE";
|
|
1897
1897
|
}
|
|
1898
1898
|
function ae(e, t) {
|
|
1899
1899
|
return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function ba(e, t) {
|
|
1902
1902
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1903
1903
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
1904
|
-
if (Array.isArray(e) || (n =
|
|
1904
|
+
if (Array.isArray(e) || (n = Ca(e)) || t) {
|
|
1905
1905
|
n && (e = n);
|
|
1906
1906
|
var r = 0;
|
|
1907
1907
|
return function() {
|
|
@@ -1911,7 +1911,7 @@ function va(e, t) {
|
|
|
1911
1911
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1912
1912
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function Ca(e, t) {
|
|
1915
1915
|
if (e) {
|
|
1916
1916
|
if (typeof e == "string") return Cn(e, t);
|
|
1917
1917
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -1923,42 +1923,42 @@ function Cn(e, t) {
|
|
|
1923
1923
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
1924
1924
|
return r;
|
|
1925
1925
|
}
|
|
1926
|
-
var
|
|
1926
|
+
var Pa = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
1927
1927
|
function Lt(e, t, n) {
|
|
1928
1928
|
if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
|
|
1929
1929
|
n = new H(n), n.selectNumberingPlan(e.country, e.countryCallingCode);
|
|
1930
1930
|
var r = t.v2 ? e.nationalNumber : e.phone;
|
|
1931
1931
|
if (ae(r, n.nationalNumberPattern())) {
|
|
1932
|
-
if (
|
|
1933
|
-
return n.type("MOBILE") && n.type("MOBILE").pattern() === "" || !n.type("MOBILE") ||
|
|
1934
|
-
for (var i =
|
|
1932
|
+
if (ft(r, "FIXED_LINE", n))
|
|
1933
|
+
return n.type("MOBILE") && n.type("MOBILE").pattern() === "" || !n.type("MOBILE") || ft(r, "MOBILE", n) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
1934
|
+
for (var i = ba(Pa), a; !(a = i()).done; ) {
|
|
1935
1935
|
var o = a.value;
|
|
1936
|
-
if (
|
|
1936
|
+
if (ft(r, o, n))
|
|
1937
1937
|
return o;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function ft(e, t, n) {
|
|
1943
1943
|
return t = n.type(t), !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : ae(e, t.pattern());
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function Na(e, t, n) {
|
|
1946
1946
|
if (t = t || {}, n = new H(n), n.selectNumberingPlan(e.country, e.countryCallingCode), n.hasTypes())
|
|
1947
1947
|
return Lt(e, t, n.metadata) !== void 0;
|
|
1948
1948
|
var r = t.v2 ? e.nationalNumber : e.phone;
|
|
1949
1949
|
return ae(r, n.nationalNumberPattern());
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function Sa(e, t, n) {
|
|
1952
1952
|
var r = new H(n), i = r.getCountryCodesForCallingCode(e);
|
|
1953
1953
|
return i ? i.filter(function(a) {
|
|
1954
|
-
return
|
|
1954
|
+
return Ea(t, a, n);
|
|
1955
1955
|
}) : [];
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1957
|
+
function Ea(e, t, n) {
|
|
1958
1958
|
var r = new H(n);
|
|
1959
1959
|
return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
1960
1960
|
}
|
|
1961
|
-
var jt = 2,
|
|
1961
|
+
var jt = 2, Oa = 17, Ta = 3, Y = "0-90-9٠-٩۰-۹", Ia = "-‐-―−ー-", Aa = "//", _a = "..", wa = " ", Ra = "()()[]\\[\\]", xa = "~⁓∼~", ee = "".concat(Ia).concat(Aa).concat(_a).concat(wa).concat(Ra).concat(xa), nt = "++", Fa = new RegExp("([" + Y + "])");
|
|
1962
1962
|
function mr(e, t, n, r) {
|
|
1963
1963
|
if (t) {
|
|
1964
1964
|
var i = new H(r);
|
|
@@ -1966,7 +1966,7 @@ function mr(e, t, n, r) {
|
|
|
1966
1966
|
var a = new RegExp(i.IDDPrefix());
|
|
1967
1967
|
if (e.search(a) === 0) {
|
|
1968
1968
|
e = e.slice(e.match(a)[0].length);
|
|
1969
|
-
var o = e.match(
|
|
1969
|
+
var o = e.match(Fa);
|
|
1970
1970
|
if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0"))
|
|
1971
1971
|
return e;
|
|
1972
1972
|
}
|
|
@@ -2000,10 +2000,10 @@ function gt(e, t) {
|
|
|
2000
2000
|
nationalNumber: e
|
|
2001
2001
|
};
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2003
|
+
function Ma(e, t) {
|
|
2004
2004
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2005
2005
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
2006
|
-
if (Array.isArray(e) || (n =
|
|
2006
|
+
if (Array.isArray(e) || (n = Da(e)) || t) {
|
|
2007
2007
|
n && (e = n);
|
|
2008
2008
|
var r = 0;
|
|
2009
2009
|
return function() {
|
|
@@ -2013,7 +2013,7 @@ function Fa(e, t) {
|
|
|
2013
2013
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2014
2014
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function Da(e, t) {
|
|
2017
2017
|
if (e) {
|
|
2018
2018
|
if (typeof e == "string") return Pn(e, t);
|
|
2019
2019
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -2028,7 +2028,7 @@ function Pn(e, t) {
|
|
|
2028
2028
|
function gr(e, t) {
|
|
2029
2029
|
var n = t.countries, r = t.metadata;
|
|
2030
2030
|
r = new H(r);
|
|
2031
|
-
for (var i =
|
|
2031
|
+
for (var i = Ma(n), a; !(a = i()).done; ) {
|
|
2032
2032
|
var o = a.value;
|
|
2033
2033
|
if (r.selectNumberingPlan(o), r.leadingDigits()) {
|
|
2034
2034
|
if (e && e.search(r.leadingDigits()) === 0)
|
|
@@ -2051,14 +2051,14 @@ function kt(e, t) {
|
|
|
2051
2051
|
function vt(e, t, n) {
|
|
2052
2052
|
var r = gt(e, n), i = r.carrierCode, a = r.nationalNumber;
|
|
2053
2053
|
if (a !== e) {
|
|
2054
|
-
if (!
|
|
2054
|
+
if (!La(e, a, n))
|
|
2055
2055
|
return {
|
|
2056
2056
|
nationalNumber: e
|
|
2057
2057
|
};
|
|
2058
2058
|
if (n.numberingPlan.possibleLengths() && (t || (t = kt(n.numberingPlan.callingCode(), {
|
|
2059
2059
|
nationalNumber: a,
|
|
2060
2060
|
metadata: n
|
|
2061
|
-
})), !
|
|
2061
|
+
})), !ja(a, t, n)))
|
|
2062
2062
|
return {
|
|
2063
2063
|
nationalNumber: e
|
|
2064
2064
|
};
|
|
@@ -2068,11 +2068,11 @@ function vt(e, t, n) {
|
|
|
2068
2068
|
carrierCode: i
|
|
2069
2069
|
};
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2071
|
+
function La(e, t, n) {
|
|
2072
2072
|
return !(ae(e, n.nationalNumberPattern()) && !ae(t, n.nationalNumberPattern()));
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2075
|
-
switch (
|
|
2074
|
+
function ja(e, t, n) {
|
|
2075
|
+
switch (tt(e, t, n)) {
|
|
2076
2076
|
case "TOO_SHORT":
|
|
2077
2077
|
case "INVALID_LENGTH":
|
|
2078
2078
|
return !1;
|
|
@@ -2085,7 +2085,7 @@ function vr(e, t, n, r, i) {
|
|
|
2085
2085
|
if (e.indexOf(a) === 0) {
|
|
2086
2086
|
i = new H(i), i.selectNumberingPlan(t || n, a);
|
|
2087
2087
|
var o = e.slice(a.length), d = vt(o, t, i), u = d.nationalNumber, l = vt(e, t, i), s = l.nationalNumber;
|
|
2088
|
-
if (!ae(s, i.nationalNumberPattern()) && ae(u, i.nationalNumberPattern()) ||
|
|
2088
|
+
if (!ae(s, i.nationalNumberPattern()) && ae(u, i.nationalNumberPattern()) || tt(s, t, i) === "TOO_LONG")
|
|
2089
2089
|
return {
|
|
2090
2090
|
countryCallingCode: a,
|
|
2091
2091
|
number: o
|
|
@@ -2123,7 +2123,7 @@ function Gt(e, t, n, r, i) {
|
|
|
2123
2123
|
if (e[1] === "0")
|
|
2124
2124
|
return {};
|
|
2125
2125
|
i = new H(i);
|
|
2126
|
-
for (var s = 2; s - 1 <=
|
|
2126
|
+
for (var s = 2; s - 1 <= Ta && s <= e.length; ) {
|
|
2127
2127
|
var f = e.slice(1, s);
|
|
2128
2128
|
if (i.hasCallingCode(f))
|
|
2129
2129
|
return i.selectNumberingPlan(f), {
|
|
@@ -2160,34 +2160,34 @@ function Pr(e, t, n) {
|
|
|
2160
2160
|
));
|
|
2161
2161
|
return r ? br(a) : a;
|
|
2162
2162
|
}
|
|
2163
|
-
var
|
|
2164
|
-
function
|
|
2163
|
+
var ka = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
2164
|
+
function Ga(e, t, n) {
|
|
2165
2165
|
var r = new H(n);
|
|
2166
2166
|
if (r.selectNumberingPlan(e, t), r.defaultIDDPrefix())
|
|
2167
2167
|
return r.defaultIDDPrefix();
|
|
2168
|
-
if (
|
|
2168
|
+
if (ka.test(r.IDDPrefix()))
|
|
2169
2169
|
return r.IDDPrefix();
|
|
2170
2170
|
}
|
|
2171
|
-
var
|
|
2171
|
+
var Ba = ";ext=", ye = function(t) {
|
|
2172
2172
|
return "([".concat(Y, "]{1,").concat(t, "})");
|
|
2173
2173
|
};
|
|
2174
2174
|
function Nr(e) {
|
|
2175
|
-
var t = "20", n = "15", r = "9", i = "6", a = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", d = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", s = "[- ]+", f = "[ \\t]*", c = "(?:,{2}|;)", $ =
|
|
2175
|
+
var t = "20", n = "15", r = "9", i = "6", a = "[ \\t,]*", o = "[:\\..]?[ \\t,-]*", d = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", s = "[- ]+", f = "[ \\t]*", c = "(?:,{2}|;)", $ = Ba + ye(t), g = a + u + o + ye(t) + d, v = a + l + o + ye(r) + d, y = s + ye(i) + "#", P = f + c + o + ye(n) + d, O = f + "(?:,)+" + o + ye(r) + d;
|
|
2176
2176
|
return $ + "|" + g + "|" + v + "|" + y + "|" + P + "|" + O;
|
|
2177
2177
|
}
|
|
2178
|
-
var
|
|
2179
|
-
"(?:" + Nr() + ")?",
|
|
2178
|
+
var Ua = "[" + Y + "]{" + jt + "}", Wa = "[" + nt + "]{0,1}(?:[" + ee + "]*[" + Y + "]){3,}[" + ee + Y + "]*", Ha = new RegExp("^[" + nt + "]{0,1}(?:[" + ee + "]*[" + Y + "]){1,2}$", "i"), Va = Wa + // Phone number extensions
|
|
2179
|
+
"(?:" + Nr() + ")?", Ka = new RegExp(
|
|
2180
2180
|
// Either a short two-digit-only phone number
|
|
2181
|
-
"^" +
|
|
2181
|
+
"^" + Ua + "$|^" + Va + "$",
|
|
2182
2182
|
"i"
|
|
2183
2183
|
);
|
|
2184
|
-
function Ka(e) {
|
|
2185
|
-
return e.length >= jt && Va.test(e);
|
|
2186
|
-
}
|
|
2187
2184
|
function Ya(e) {
|
|
2188
|
-
return
|
|
2185
|
+
return e.length >= jt && Ka.test(e);
|
|
2189
2186
|
}
|
|
2190
2187
|
function qa(e) {
|
|
2188
|
+
return Ha.test(e);
|
|
2189
|
+
}
|
|
2190
|
+
function Za(e) {
|
|
2191
2191
|
var t = e.number, n = e.ext;
|
|
2192
2192
|
if (!t)
|
|
2193
2193
|
return "";
|
|
@@ -2200,8 +2200,8 @@ var Nn = {
|
|
|
2200
2200
|
return "".concat(t).concat(r.ext()).concat(n);
|
|
2201
2201
|
}
|
|
2202
2202
|
};
|
|
2203
|
-
function
|
|
2204
|
-
if (n ? n =
|
|
2203
|
+
function Xa(e, t, n, r) {
|
|
2204
|
+
if (n ? n = Qa({}, Nn, n) : n = Nn, r = new H(r), e.country && e.country !== "001") {
|
|
2205
2205
|
if (!r.hasCountry(e.country))
|
|
2206
2206
|
throw new Error("Unknown country: ".concat(e.country));
|
|
2207
2207
|
r.selectNumberingPlan(e.country);
|
|
@@ -2211,13 +2211,13 @@ function Za(e, t, n, r) {
|
|
|
2211
2211
|
var i = r.countryCallingCode(), a = n.v2 ? e.nationalNumber : e.phone, o;
|
|
2212
2212
|
switch (t) {
|
|
2213
2213
|
case "NATIONAL":
|
|
2214
|
-
return a ? (o =
|
|
2214
|
+
return a ? (o = qe(a, e.carrierCode, "NATIONAL", r, n), $t(o, e.ext, r, n.formatExtension)) : "";
|
|
2215
2215
|
case "INTERNATIONAL":
|
|
2216
|
-
return a ? (o =
|
|
2216
|
+
return a ? (o = qe(a, null, "INTERNATIONAL", r, n), o = "+".concat(i, " ").concat(o), $t(o, e.ext, r, n.formatExtension)) : "+".concat(i);
|
|
2217
2217
|
case "E.164":
|
|
2218
2218
|
return "+".concat(i).concat(a);
|
|
2219
2219
|
case "RFC3966":
|
|
2220
|
-
return
|
|
2220
|
+
return Za({
|
|
2221
2221
|
number: "+".concat(i).concat(a),
|
|
2222
2222
|
ext: e.ext
|
|
2223
2223
|
});
|
|
@@ -2228,14 +2228,14 @@ function Za(e, t, n, r) {
|
|
|
2228
2228
|
case "IDD":
|
|
2229
2229
|
if (!n.fromCountry)
|
|
2230
2230
|
return;
|
|
2231
|
-
var d =
|
|
2232
|
-
return d ?
|
|
2231
|
+
var d = za(a, e.carrierCode, i, n.fromCountry, r);
|
|
2232
|
+
return d ? $t(d, e.ext, r, n.formatExtension) : void 0;
|
|
2233
2233
|
default:
|
|
2234
2234
|
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
function
|
|
2238
|
-
var a =
|
|
2237
|
+
function qe(e, t, n, r, i) {
|
|
2238
|
+
var a = Ja(r.formats(), e);
|
|
2239
2239
|
return a ? Pr(e, a, {
|
|
2240
2240
|
useInternationalFormat: n === "INTERNATIONAL",
|
|
2241
2241
|
withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
|
|
@@ -2243,8 +2243,8 @@ function Ye(e, t, n, r, i) {
|
|
|
2243
2243
|
metadata: r
|
|
2244
2244
|
}) : e;
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2247
|
-
return
|
|
2246
|
+
function Ja(e, t) {
|
|
2247
|
+
return eo(e, function(n) {
|
|
2248
2248
|
if (n.leadingDigitsPatterns().length > 0) {
|
|
2249
2249
|
var r = n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length - 1];
|
|
2250
2250
|
if (t.search(r) !== 0)
|
|
@@ -2253,20 +2253,20 @@ function Xa(e, t) {
|
|
|
2253
2253
|
return ae(t, n.pattern());
|
|
2254
2254
|
});
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function $t(e, t, n, r) {
|
|
2257
2257
|
return t ? r(e, t, n) : e;
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function za(e, t, n, r, i) {
|
|
2260
2260
|
var a = le(r, i.metadata);
|
|
2261
2261
|
if (a === n) {
|
|
2262
|
-
var o =
|
|
2262
|
+
var o = qe(e, t, "NATIONAL", i);
|
|
2263
2263
|
return n === "1" ? n + " " + o : o;
|
|
2264
2264
|
}
|
|
2265
|
-
var d =
|
|
2265
|
+
var d = Ga(r, void 0, i.metadata);
|
|
2266
2266
|
if (d)
|
|
2267
|
-
return "".concat(d, " ").concat(n, " ").concat(
|
|
2267
|
+
return "".concat(d, " ").concat(n, " ").concat(qe(e, null, "INTERNATIONAL", i));
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function Qa() {
|
|
2270
2270
|
for (var e = 1, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
2271
2271
|
n[r] = arguments[r];
|
|
2272
2272
|
for (; e < n.length; ) {
|
|
@@ -2277,7 +2277,7 @@ function za() {
|
|
|
2277
2277
|
}
|
|
2278
2278
|
return n[0];
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function eo(e, t) {
|
|
2281
2281
|
for (var n = 0; n < e.length; ) {
|
|
2282
2282
|
if (t(e[n]))
|
|
2283
2283
|
return e[n];
|
|
@@ -2306,33 +2306,33 @@ function En(e) {
|
|
|
2306
2306
|
for (var t = 1; t < arguments.length; t++) {
|
|
2307
2307
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2308
2308
|
t % 2 ? Sn(Object(n), !0).forEach(function(r) {
|
|
2309
|
-
|
|
2309
|
+
to(e, r, n[r]);
|
|
2310
2310
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sn(Object(n)).forEach(function(r) {
|
|
2311
2311
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
2312
2312
|
});
|
|
2313
2313
|
}
|
|
2314
2314
|
return e;
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function to(e, t, n) {
|
|
2317
2317
|
return (t = Sr(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function no(e, t) {
|
|
2320
2320
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function ro(e, t) {
|
|
2323
2323
|
for (var n = 0; n < t.length; n++) {
|
|
2324
2324
|
var r = t[n];
|
|
2325
2325
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Sr(r.key), r);
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2329
|
-
return t &&
|
|
2328
|
+
function io(e, t, n) {
|
|
2329
|
+
return t && ro(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2330
2330
|
}
|
|
2331
2331
|
function Sr(e) {
|
|
2332
|
-
var t =
|
|
2332
|
+
var t = ao(e, "string");
|
|
2333
2333
|
return Ne(t) == "symbol" ? t : t + "";
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function ao(e, t) {
|
|
2336
2336
|
if (Ne(e) != "object" || !e) return e;
|
|
2337
2337
|
var n = e[Symbol.toPrimitive];
|
|
2338
2338
|
if (n !== void 0) {
|
|
@@ -2344,7 +2344,7 @@ function io(e, t) {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
var Er = /* @__PURE__ */ (function() {
|
|
2346
2346
|
function e(t, n, r) {
|
|
2347
|
-
if (
|
|
2347
|
+
if (no(this, e), !t)
|
|
2348
2348
|
throw new TypeError("First argument is required");
|
|
2349
2349
|
if (typeof t != "string")
|
|
2350
2350
|
throw new TypeError("First argument must be a string");
|
|
@@ -2353,7 +2353,7 @@ var Er = /* @__PURE__ */ (function() {
|
|
|
2353
2353
|
if (ce(n) && ce(n.countries)) {
|
|
2354
2354
|
r = n;
|
|
2355
2355
|
var i = t;
|
|
2356
|
-
if (!
|
|
2356
|
+
if (!lo.test(i))
|
|
2357
2357
|
throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
|
|
2358
2358
|
var a = Gt(i, void 0, void 0, void 0, r), o = a.countryCallingCode, d = a.number;
|
|
2359
2359
|
if (n = d, t = o, !n)
|
|
@@ -2364,12 +2364,12 @@ var Er = /* @__PURE__ */ (function() {
|
|
|
2364
2364
|
if (typeof n != "string")
|
|
2365
2365
|
throw new TypeError("`nationalNumber` argument must be a string");
|
|
2366
2366
|
$r(r);
|
|
2367
|
-
var u =
|
|
2367
|
+
var u = uo(t, r), l = u.country, s = u.countryCallingCode;
|
|
2368
2368
|
this.country = l, this.countryCallingCode = s, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
2369
2369
|
return r;
|
|
2370
2370
|
};
|
|
2371
2371
|
}
|
|
2372
|
-
return
|
|
2372
|
+
return io(e, [{
|
|
2373
2373
|
key: "setExt",
|
|
2374
2374
|
value: function(n) {
|
|
2375
2375
|
this.ext = n;
|
|
@@ -2377,19 +2377,19 @@ var Er = /* @__PURE__ */ (function() {
|
|
|
2377
2377
|
}, {
|
|
2378
2378
|
key: "getPossibleCountries",
|
|
2379
2379
|
value: function() {
|
|
2380
|
-
return this.country ? [this.country] :
|
|
2380
|
+
return this.country ? [this.country] : Sa(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
2381
2381
|
}
|
|
2382
2382
|
}, {
|
|
2383
2383
|
key: "isPossible",
|
|
2384
2384
|
value: function() {
|
|
2385
|
-
return
|
|
2385
|
+
return va(this, {
|
|
2386
2386
|
v2: !0
|
|
2387
2387
|
}, this.getMetadata());
|
|
2388
2388
|
}
|
|
2389
2389
|
}, {
|
|
2390
2390
|
key: "isValid",
|
|
2391
2391
|
value: function() {
|
|
2392
|
-
return
|
|
2392
|
+
return Na(this, {
|
|
2393
2393
|
v2: !0
|
|
2394
2394
|
}, this.getMetadata());
|
|
2395
2395
|
}
|
|
@@ -2428,7 +2428,7 @@ var Er = /* @__PURE__ */ (function() {
|
|
|
2428
2428
|
}, {
|
|
2429
2429
|
key: "format",
|
|
2430
2430
|
value: function(n, r) {
|
|
2431
|
-
return
|
|
2431
|
+
return Xa(this, n, r ? En(En({}, r), {}, {
|
|
2432
2432
|
v2: !0
|
|
2433
2433
|
}) : {
|
|
2434
2434
|
v2: !0
|
|
@@ -2450,17 +2450,17 @@ var Er = /* @__PURE__ */ (function() {
|
|
|
2450
2450
|
return this.format("RFC3966", n);
|
|
2451
2451
|
}
|
|
2452
2452
|
}]);
|
|
2453
|
-
})(),
|
|
2453
|
+
})(), oo = function(t) {
|
|
2454
2454
|
return /^[A-Z]{2}$/.test(t);
|
|
2455
2455
|
};
|
|
2456
|
-
function
|
|
2456
|
+
function uo(e, t) {
|
|
2457
2457
|
var n, r, i = new H(t);
|
|
2458
|
-
return
|
|
2458
|
+
return oo(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : r = e, {
|
|
2459
2459
|
country: n,
|
|
2460
2460
|
countryCallingCode: r
|
|
2461
2461
|
};
|
|
2462
2462
|
}
|
|
2463
|
-
var
|
|
2463
|
+
var lo = /^\+\d+$/;
|
|
2464
2464
|
function bt(e) {
|
|
2465
2465
|
"@babel/helpers - typeof";
|
|
2466
2466
|
return bt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -2469,44 +2469,44 @@ function bt(e) {
|
|
|
2469
2469
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2470
2470
|
}, bt(e);
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function so(e, t, n) {
|
|
2473
2473
|
return Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function co(e, t) {
|
|
2476
2476
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2479
|
-
return t = Ee(t),
|
|
2478
|
+
function fo(e, t, n) {
|
|
2479
|
+
return t = Ee(t), $o(e, Bt() ? Reflect.construct(t, n || [], Ee(e).constructor) : t.apply(e, n));
|
|
2480
2480
|
}
|
|
2481
|
-
function
|
|
2481
|
+
function $o(e, t) {
|
|
2482
2482
|
if (t && (bt(t) == "object" || typeof t == "function")) return t;
|
|
2483
2483
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2484
|
-
return
|
|
2484
|
+
return po(e);
|
|
2485
2485
|
}
|
|
2486
|
-
function
|
|
2486
|
+
function po(e) {
|
|
2487
2487
|
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2488
2488
|
return e;
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function yo(e, t) {
|
|
2491
2491
|
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2492
2492
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Se(e, t);
|
|
2493
2493
|
}
|
|
2494
2494
|
function Ct(e) {
|
|
2495
2495
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
2496
2496
|
return Ct = function(r) {
|
|
2497
|
-
if (r === null || !
|
|
2497
|
+
if (r === null || !mo(r)) return r;
|
|
2498
2498
|
if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
|
|
2499
2499
|
if (t !== void 0) {
|
|
2500
2500
|
if (t.has(r)) return t.get(r);
|
|
2501
2501
|
t.set(r, i);
|
|
2502
2502
|
}
|
|
2503
2503
|
function i() {
|
|
2504
|
-
return
|
|
2504
|
+
return ho(r, arguments, Ee(this).constructor);
|
|
2505
2505
|
}
|
|
2506
2506
|
return i.prototype = Object.create(r.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), Se(i, r);
|
|
2507
2507
|
}, Ct(e);
|
|
2508
2508
|
}
|
|
2509
|
-
function
|
|
2509
|
+
function ho(e, t, n) {
|
|
2510
2510
|
if (Bt()) return Reflect.construct.apply(null, arguments);
|
|
2511
2511
|
var r = [null];
|
|
2512
2512
|
r.push.apply(r, t);
|
|
@@ -2523,7 +2523,7 @@ function Bt() {
|
|
|
2523
2523
|
return !!e;
|
|
2524
2524
|
})();
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2526
|
+
function mo(e) {
|
|
2527
2527
|
try {
|
|
2528
2528
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
2529
2529
|
} catch {
|
|
@@ -2543,11 +2543,11 @@ function Ee(e) {
|
|
|
2543
2543
|
var re = /* @__PURE__ */ (function(e) {
|
|
2544
2544
|
function t(n) {
|
|
2545
2545
|
var r;
|
|
2546
|
-
return
|
|
2546
|
+
return co(this, t), r = fo(this, t, [n]), Object.setPrototypeOf(r, t.prototype), r.name = r.constructor.name, r;
|
|
2547
2547
|
}
|
|
2548
|
-
return
|
|
2548
|
+
return yo(t, e), so(t);
|
|
2549
2549
|
})(/* @__PURE__ */ Ct(Error)), On = new RegExp("(?:" + Nr() + ")$", "i");
|
|
2550
|
-
function
|
|
2550
|
+
function go(e) {
|
|
2551
2551
|
var t = e.search(On);
|
|
2552
2552
|
if (t < 0)
|
|
2553
2553
|
return {};
|
|
@@ -2560,10 +2560,10 @@ function mo(e) {
|
|
|
2560
2560
|
i++;
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function vo(e, t) {
|
|
2564
2564
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2565
2565
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
2566
|
-
if (Array.isArray(e) || (n =
|
|
2566
|
+
if (Array.isArray(e) || (n = bo(e)) || t) {
|
|
2567
2567
|
n && (e = n);
|
|
2568
2568
|
var r = 0;
|
|
2569
2569
|
return function() {
|
|
@@ -2573,7 +2573,7 @@ function go(e, t) {
|
|
|
2573
2573
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2574
2574
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2575
2575
|
}
|
|
2576
|
-
function
|
|
2576
|
+
function bo(e, t) {
|
|
2577
2577
|
if (e) {
|
|
2578
2578
|
if (typeof e == "string") return Tn(e, t);
|
|
2579
2579
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -2585,7 +2585,7 @@ function Tn(e, t) {
|
|
|
2585
2585
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2586
2586
|
return r;
|
|
2587
2587
|
}
|
|
2588
|
-
var
|
|
2588
|
+
var Co = {
|
|
2589
2589
|
0: "0",
|
|
2590
2590
|
1: "1",
|
|
2591
2591
|
2: "2",
|
|
@@ -2658,19 +2658,19 @@ var bo = {
|
|
|
2658
2658
|
// Eastern-Arabic digit 9
|
|
2659
2659
|
};
|
|
2660
2660
|
function Or(e) {
|
|
2661
|
-
return
|
|
2661
|
+
return Co[e];
|
|
2662
2662
|
}
|
|
2663
|
-
function
|
|
2664
|
-
for (var t = "", n =
|
|
2663
|
+
function Ze(e) {
|
|
2664
|
+
for (var t = "", n = vo(e.split("")), r; !(r = n()).done; ) {
|
|
2665
2665
|
var i = r.value, a = Or(i);
|
|
2666
2666
|
a && (t += a);
|
|
2667
2667
|
}
|
|
2668
2668
|
return t;
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2670
|
+
function Po(e, t) {
|
|
2671
2671
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2672
2672
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
2673
|
-
if (Array.isArray(e) || (n =
|
|
2673
|
+
if (Array.isArray(e) || (n = No(e)) || t) {
|
|
2674
2674
|
n && (e = n);
|
|
2675
2675
|
var r = 0;
|
|
2676
2676
|
return function() {
|
|
@@ -2680,7 +2680,7 @@ function Co(e, t) {
|
|
|
2680
2680
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2681
2681
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2682
2682
|
}
|
|
2683
|
-
function
|
|
2683
|
+
function No(e, t) {
|
|
2684
2684
|
if (e) {
|
|
2685
2685
|
if (typeof e == "string") return In(e, t);
|
|
2686
2686
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -2693,7 +2693,7 @@ function In(e, t) {
|
|
|
2693
2693
|
return r;
|
|
2694
2694
|
}
|
|
2695
2695
|
function Pt(e) {
|
|
2696
|
-
for (var t = "", n =
|
|
2696
|
+
for (var t = "", n = Po(e.split("")), r; !(r = n()).done; ) {
|
|
2697
2697
|
var i = r.value;
|
|
2698
2698
|
t += Tr(i, t) || "";
|
|
2699
2699
|
}
|
|
@@ -2709,8 +2709,8 @@ function Tr(e, t, n) {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
return Or(e);
|
|
2711
2711
|
}
|
|
2712
|
-
var Ir = "+",
|
|
2713
|
-
function
|
|
2712
|
+
var Ir = "+", So = "[\\-\\.\\(\\)]?", An = "([" + Y + "]|" + So + ")", Eo = "^\\" + Ir + An + "*[" + Y + "]" + An + "*$", Oo = new RegExp(Eo, "g"), Nt = Y, To = "[" + Nt + "]+((\\-)*[" + Nt + "])*", Io = "a-zA-Z", Ao = "[" + Io + "]+((\\-)*[" + Nt + "])*", _o = "^(" + To + "\\.)*" + Ao + "\\.?$", wo = new RegExp(_o, "g"), _n = "tel:", St = ";phone-context=", Ro = ";isub=";
|
|
2713
|
+
function xo(e) {
|
|
2714
2714
|
var t = e.indexOf(St);
|
|
2715
2715
|
if (t < 0)
|
|
2716
2716
|
return null;
|
|
@@ -2720,12 +2720,12 @@ function Ro(e) {
|
|
|
2720
2720
|
var r = e.indexOf(";", n);
|
|
2721
2721
|
return r >= 0 ? e.substring(n, r) : e.substring(n);
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2724
|
-
return e === null ? !0 : e.length === 0 ? !1 :
|
|
2723
|
+
function Fo(e) {
|
|
2724
|
+
return e === null ? !0 : e.length === 0 ? !1 : Oo.test(e) || wo.test(e);
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2727
|
-
var n = t.extractFormattedPhoneNumber, r =
|
|
2728
|
-
if (!
|
|
2726
|
+
function Mo(e, t) {
|
|
2727
|
+
var n = t.extractFormattedPhoneNumber, r = xo(e);
|
|
2728
|
+
if (!Fo(r))
|
|
2729
2729
|
throw new re("NOT_A_NUMBER");
|
|
2730
2730
|
var i;
|
|
2731
2731
|
if (r === null)
|
|
@@ -2737,21 +2737,21 @@ function Fo(e, t) {
|
|
|
2737
2737
|
var d = e.indexOf(St);
|
|
2738
2738
|
i += e.substring(o, d);
|
|
2739
2739
|
}
|
|
2740
|
-
var u = i.indexOf(
|
|
2740
|
+
var u = i.indexOf(Ro);
|
|
2741
2741
|
if (u > 0 && (i = i.substring(0, u)), i !== "")
|
|
2742
2742
|
return i;
|
|
2743
2743
|
}
|
|
2744
|
-
var
|
|
2745
|
-
function
|
|
2744
|
+
var Do = 250, Lo = new RegExp("[" + nt + Y + "]"), jo = new RegExp("[^" + Y + "#]+$");
|
|
2745
|
+
function ko(e, t, n) {
|
|
2746
2746
|
if (t = t || {}, n = new H(n), t.defaultCountry && !n.hasCountry(t.defaultCountry))
|
|
2747
2747
|
throw t.v2 ? new re("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
|
|
2748
|
-
var r =
|
|
2748
|
+
var r = Bo(e, t.v2, t.extract), i = r.number, a = r.ext, o = r.error;
|
|
2749
2749
|
if (!i) {
|
|
2750
2750
|
if (t.v2)
|
|
2751
2751
|
throw o === "TOO_SHORT" ? new re("TOO_SHORT") : new re("NOT_A_NUMBER");
|
|
2752
2752
|
return {};
|
|
2753
2753
|
}
|
|
2754
|
-
var d =
|
|
2754
|
+
var d = Wo(i, t.defaultCountry, t.defaultCallingCode, n), u = d.country, l = d.nationalNumber, s = d.countryCallingCode, f = d.countryCallingCodeSource, c = d.carrierCode;
|
|
2755
2755
|
if (!n.hasSelectedNumberingPlan()) {
|
|
2756
2756
|
if (t.v2)
|
|
2757
2757
|
throw new re("INVALID_COUNTRY");
|
|
@@ -2762,7 +2762,7 @@ function jo(e, t, n) {
|
|
|
2762
2762
|
throw new re("TOO_SHORT");
|
|
2763
2763
|
return {};
|
|
2764
2764
|
}
|
|
2765
|
-
if (l.length >
|
|
2765
|
+
if (l.length > Oa) {
|
|
2766
2766
|
if (t.v2)
|
|
2767
2767
|
throw new re("TOO_LONG");
|
|
2768
2768
|
return {};
|
|
@@ -2780,47 +2780,47 @@ function jo(e, t, n) {
|
|
|
2780
2780
|
possible: g ? !0 : !!(t.extended === !0 && n.possibleLengths() && hr(l, u, n)),
|
|
2781
2781
|
phone: l,
|
|
2782
2782
|
ext: a
|
|
2783
|
-
} : g ?
|
|
2783
|
+
} : g ? Uo(u, l, a) : {};
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function Go(e, t, n) {
|
|
2786
2786
|
if (e) {
|
|
2787
|
-
if (e.length >
|
|
2787
|
+
if (e.length > Do) {
|
|
2788
2788
|
if (n)
|
|
2789
2789
|
throw new re("TOO_LONG");
|
|
2790
2790
|
return;
|
|
2791
2791
|
}
|
|
2792
2792
|
if (t === !1)
|
|
2793
2793
|
return e;
|
|
2794
|
-
var r = e.search(
|
|
2794
|
+
var r = e.search(Lo);
|
|
2795
2795
|
if (!(r < 0))
|
|
2796
|
-
return e.slice(r).replace(
|
|
2796
|
+
return e.slice(r).replace(jo, "");
|
|
2797
2797
|
}
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2800
|
-
var r =
|
|
2799
|
+
function Bo(e, t, n) {
|
|
2800
|
+
var r = Mo(e, {
|
|
2801
2801
|
extractFormattedPhoneNumber: function(o) {
|
|
2802
|
-
return
|
|
2802
|
+
return Go(o, n, t);
|
|
2803
2803
|
}
|
|
2804
2804
|
});
|
|
2805
2805
|
if (!r)
|
|
2806
2806
|
return {};
|
|
2807
|
-
if (!
|
|
2808
|
-
return
|
|
2807
|
+
if (!Ya(r))
|
|
2808
|
+
return qa(r) ? {
|
|
2809
2809
|
error: "TOO_SHORT"
|
|
2810
2810
|
} : {};
|
|
2811
|
-
var i =
|
|
2811
|
+
var i = go(r);
|
|
2812
2812
|
return i.ext ? i : {
|
|
2813
2813
|
number: r
|
|
2814
2814
|
};
|
|
2815
2815
|
}
|
|
2816
|
-
function
|
|
2816
|
+
function Uo(e, t, n) {
|
|
2817
2817
|
var r = {
|
|
2818
2818
|
country: e,
|
|
2819
2819
|
phone: t
|
|
2820
2820
|
};
|
|
2821
2821
|
return n && (r.ext = n), r;
|
|
2822
2822
|
}
|
|
2823
|
-
function
|
|
2823
|
+
function Wo(e, t, n, r) {
|
|
2824
2824
|
var i = Gt(Pt(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, d = i.number, u;
|
|
2825
2825
|
if (o)
|
|
2826
2826
|
r.selectNumberingPlan(o);
|
|
@@ -2866,21 +2866,21 @@ function Rn(e) {
|
|
|
2866
2866
|
for (var t = 1; t < arguments.length; t++) {
|
|
2867
2867
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2868
2868
|
t % 2 ? wn(Object(n), !0).forEach(function(r) {
|
|
2869
|
-
|
|
2869
|
+
Ho(e, r, n[r]);
|
|
2870
2870
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wn(Object(n)).forEach(function(r) {
|
|
2871
2871
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
2872
2872
|
});
|
|
2873
2873
|
}
|
|
2874
2874
|
return e;
|
|
2875
2875
|
}
|
|
2876
|
-
function
|
|
2877
|
-
return (t =
|
|
2876
|
+
function Ho(e, t, n) {
|
|
2877
|
+
return (t = Vo(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2880
|
-
var t =
|
|
2879
|
+
function Vo(e) {
|
|
2880
|
+
var t = Ko(e, "string");
|
|
2881
2881
|
return Oe(t) == "symbol" ? t : t + "";
|
|
2882
2882
|
}
|
|
2883
|
-
function
|
|
2883
|
+
function Ko(e, t) {
|
|
2884
2884
|
if (Oe(e) != "object" || !e) return e;
|
|
2885
2885
|
var n = e[Symbol.toPrimitive];
|
|
2886
2886
|
if (n !== void 0) {
|
|
@@ -2890,8 +2890,8 @@ function Vo(e, t) {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
return (t === "string" ? String : Number)(e);
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2894
|
-
return
|
|
2893
|
+
function Yo(e, t, n) {
|
|
2894
|
+
return ko(e, Rn(Rn({}, t), {}, {
|
|
2895
2895
|
v2: !0
|
|
2896
2896
|
}), n);
|
|
2897
2897
|
}
|
|
@@ -2913,25 +2913,25 @@ function xn(e, t) {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
return n;
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function qo(e) {
|
|
2917
2917
|
for (var t = 1; t < arguments.length; t++) {
|
|
2918
2918
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2919
2919
|
t % 2 ? xn(Object(n), !0).forEach(function(r) {
|
|
2920
|
-
|
|
2920
|
+
Zo(e, r, n[r]);
|
|
2921
2921
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xn(Object(n)).forEach(function(r) {
|
|
2922
2922
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
2923
2923
|
});
|
|
2924
2924
|
}
|
|
2925
2925
|
return e;
|
|
2926
2926
|
}
|
|
2927
|
-
function
|
|
2928
|
-
return (t =
|
|
2927
|
+
function Zo(e, t, n) {
|
|
2928
|
+
return (t = Xo(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
2929
2929
|
}
|
|
2930
|
-
function
|
|
2931
|
-
var t =
|
|
2930
|
+
function Xo(e) {
|
|
2931
|
+
var t = Jo(e, "string");
|
|
2932
2932
|
return Te(t) == "symbol" ? t : t + "";
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function Jo(e, t) {
|
|
2935
2935
|
if (Te(e) != "object" || !e) return e;
|
|
2936
2936
|
var n = e[Symbol.toPrimitive];
|
|
2937
2937
|
if (n !== void 0) {
|
|
@@ -2941,14 +2941,14 @@ function Xo(e, t) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
return (t === "string" ? String : Number)(e);
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2945
|
-
return
|
|
2944
|
+
function zo(e, t) {
|
|
2945
|
+
return nd(e) || td(e, t) || ed(e, t) || Qo();
|
|
2946
2946
|
}
|
|
2947
|
-
function
|
|
2947
|
+
function Qo() {
|
|
2948
2948
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2949
2949
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function ed(e, t) {
|
|
2952
2952
|
if (e) {
|
|
2953
2953
|
if (typeof e == "string") return Fn(e, t);
|
|
2954
2954
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -2960,7 +2960,7 @@ function Fn(e, t) {
|
|
|
2960
2960
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2961
2961
|
return r;
|
|
2962
2962
|
}
|
|
2963
|
-
function
|
|
2963
|
+
function td(e, t) {
|
|
2964
2964
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2965
2965
|
if (n != null) {
|
|
2966
2966
|
var r, i, a, o, d = [], u = !0, l = !1;
|
|
@@ -2978,16 +2978,16 @@ function ed(e, t) {
|
|
|
2978
2978
|
return d;
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
|
-
function
|
|
2981
|
+
function nd(e) {
|
|
2982
2982
|
if (Array.isArray(e)) return e;
|
|
2983
2983
|
}
|
|
2984
|
-
function
|
|
2985
|
-
var t = Array.prototype.slice.call(e), n =
|
|
2984
|
+
function rd(e) {
|
|
2985
|
+
var t = Array.prototype.slice.call(e), n = zo(t, 4), r = n[0], i = n[1], a = n[2], o = n[3], d, u, l;
|
|
2986
2986
|
if (typeof r == "string")
|
|
2987
2987
|
d = r;
|
|
2988
2988
|
else throw new TypeError("A text for parsing must be a string.");
|
|
2989
2989
|
if (!i || typeof i == "string")
|
|
2990
|
-
o ? (u = a, l = o) : (u = void 0, l = a), i && (u =
|
|
2990
|
+
o ? (u = a, l = o) : (u = void 0, l = a), i && (u = qo({
|
|
2991
2991
|
defaultCountry: i
|
|
2992
2992
|
}, u));
|
|
2993
2993
|
else if (ce(i))
|
|
@@ -3021,21 +3021,21 @@ function Dn(e) {
|
|
|
3021
3021
|
for (var t = 1; t < arguments.length; t++) {
|
|
3022
3022
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3023
3023
|
t % 2 ? Mn(Object(n), !0).forEach(function(r) {
|
|
3024
|
-
|
|
3024
|
+
id(e, r, n[r]);
|
|
3025
3025
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Mn(Object(n)).forEach(function(r) {
|
|
3026
3026
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
3027
3027
|
});
|
|
3028
3028
|
}
|
|
3029
3029
|
return e;
|
|
3030
3030
|
}
|
|
3031
|
-
function
|
|
3032
|
-
return (t =
|
|
3031
|
+
function id(e, t, n) {
|
|
3032
|
+
return (t = ad(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3035
|
-
var t =
|
|
3034
|
+
function ad(e) {
|
|
3035
|
+
var t = od(e, "string");
|
|
3036
3036
|
return Ie(t) == "symbol" ? t : t + "";
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3038
|
+
function od(e, t) {
|
|
3039
3039
|
if (Ie(e) != "object" || !e) return e;
|
|
3040
3040
|
var n = e[Symbol.toPrimitive];
|
|
3041
3041
|
if (n !== void 0) {
|
|
@@ -3045,19 +3045,19 @@ function ad(e, t) {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
return (t === "string" ? String : Number)(e);
|
|
3047
3047
|
}
|
|
3048
|
-
function
|
|
3048
|
+
function dd(e, t, n) {
|
|
3049
3049
|
t && t.defaultCountry && !pr(t.defaultCountry, n) && (t = Dn(Dn({}, t), {}, {
|
|
3050
3050
|
defaultCountry: void 0
|
|
3051
3051
|
}));
|
|
3052
3052
|
try {
|
|
3053
|
-
return
|
|
3053
|
+
return Yo(e, t, n);
|
|
3054
3054
|
} catch (r) {
|
|
3055
3055
|
if (!(r instanceof re)) throw r;
|
|
3056
3056
|
}
|
|
3057
3057
|
}
|
|
3058
3058
|
function Ar() {
|
|
3059
|
-
var e =
|
|
3060
|
-
return
|
|
3059
|
+
var e = rd(arguments), t = e.text, n = e.options, r = e.metadata;
|
|
3060
|
+
return dd(t, n, r);
|
|
3061
3061
|
}
|
|
3062
3062
|
function Ae(e) {
|
|
3063
3063
|
"@babel/helpers - typeof";
|
|
@@ -3067,23 +3067,23 @@ function Ae(e) {
|
|
|
3067
3067
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3068
3068
|
}, Ae(e);
|
|
3069
3069
|
}
|
|
3070
|
-
function
|
|
3070
|
+
function ud(e, t) {
|
|
3071
3071
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3073
|
+
function ld(e, t) {
|
|
3074
3074
|
for (var n = 0; n < t.length; n++) {
|
|
3075
3075
|
var r = t[n];
|
|
3076
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
3076
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, cd(r.key), r);
|
|
3077
3077
|
}
|
|
3078
3078
|
}
|
|
3079
|
-
function
|
|
3080
|
-
return t &&
|
|
3079
|
+
function sd(e, t, n) {
|
|
3080
|
+
return t && ld(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3081
3081
|
}
|
|
3082
|
-
function
|
|
3083
|
-
var t =
|
|
3082
|
+
function cd(e) {
|
|
3083
|
+
var t = fd(e, "string");
|
|
3084
3084
|
return Ae(t) == "symbol" ? t : t + "";
|
|
3085
3085
|
}
|
|
3086
|
-
function
|
|
3086
|
+
function fd(e, t) {
|
|
3087
3087
|
if (Ae(e) != "object" || !e) return e;
|
|
3088
3088
|
var n = e[Symbol.toPrimitive];
|
|
3089
3089
|
if (n !== void 0) {
|
|
@@ -3093,12 +3093,12 @@ function cd(e, t) {
|
|
|
3093
3093
|
}
|
|
3094
3094
|
return String(e);
|
|
3095
3095
|
}
|
|
3096
|
-
var
|
|
3096
|
+
var $d = /* @__PURE__ */ (function() {
|
|
3097
3097
|
function e(t) {
|
|
3098
3098
|
var n = t.onCountryChange, r = t.onCallingCodeChange;
|
|
3099
|
-
|
|
3099
|
+
ud(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
|
|
3100
3100
|
}
|
|
3101
|
-
return
|
|
3101
|
+
return sd(e, [{
|
|
3102
3102
|
key: "reset",
|
|
3103
3103
|
value: function(n) {
|
|
3104
3104
|
var r = n.country, i = n.callingCode;
|
|
@@ -3166,10 +3166,10 @@ var fd = /* @__PURE__ */ (function() {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
}]);
|
|
3168
3168
|
})();
|
|
3169
|
-
function
|
|
3169
|
+
function pd(e, t) {
|
|
3170
3170
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3171
3171
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
3172
|
-
if (Array.isArray(e) || (n =
|
|
3172
|
+
if (Array.isArray(e) || (n = yd(e)) || t) {
|
|
3173
3173
|
n && (e = n);
|
|
3174
3174
|
var r = 0;
|
|
3175
3175
|
return function() {
|
|
@@ -3179,7 +3179,7 @@ function $d(e, t) {
|
|
|
3179
3179
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3180
3180
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3182
|
+
function yd(e, t) {
|
|
3183
3183
|
if (e) {
|
|
3184
3184
|
if (typeof e == "string") return Ln(e, t);
|
|
3185
3185
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -3191,7 +3191,7 @@ function Ln(e, t) {
|
|
|
3191
3191
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
3192
3192
|
return r;
|
|
3193
3193
|
}
|
|
3194
|
-
var Q = "x",
|
|
3194
|
+
var Q = "x", pt = new RegExp(Q);
|
|
3195
3195
|
function We(e, t) {
|
|
3196
3196
|
if (t < 1)
|
|
3197
3197
|
return "";
|
|
@@ -3200,9 +3200,9 @@ function We(e, t) {
|
|
|
3200
3200
|
return n + e;
|
|
3201
3201
|
}
|
|
3202
3202
|
function jn(e, t) {
|
|
3203
|
-
return e[t] === ")" && t++,
|
|
3203
|
+
return e[t] === ")" && t++, hd(e.slice(0, t));
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
function hd(e) {
|
|
3206
3206
|
for (var t = [], n = 0; n < e.length; )
|
|
3207
3207
|
e[n] === "(" ? t.push(n) : e[n] === ")" && t.pop(), n++;
|
|
3208
3208
|
var r = 0, i = "";
|
|
@@ -3213,28 +3213,28 @@ function yd(e) {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
return i;
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3217
|
-
for (var r =
|
|
3216
|
+
function md(e, t, n) {
|
|
3217
|
+
for (var r = pd(n.split("")), i; !(i = r()).done; ) {
|
|
3218
3218
|
var a = i.value;
|
|
3219
|
-
if (e.slice(t + 1).search(
|
|
3219
|
+
if (e.slice(t + 1).search(pt) < 0)
|
|
3220
3220
|
return;
|
|
3221
|
-
t = e.search(
|
|
3221
|
+
t = e.search(pt), e = e.replace(pt, a);
|
|
3222
3222
|
}
|
|
3223
3223
|
return [e, t];
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3225
|
+
function gd(e, t, n) {
|
|
3226
3226
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o = new RegExp("^(?:".concat(t.pattern(), ")$"));
|
|
3227
3227
|
if (o.test(e.nationalSignificantNumber))
|
|
3228
|
-
return
|
|
3228
|
+
return bd(e, t, {
|
|
3229
3229
|
metadata: r,
|
|
3230
3230
|
shouldTryNationalPrefixFormattingRule: i,
|
|
3231
3231
|
getSeparatorAfterNationalPrefix: a
|
|
3232
3232
|
});
|
|
3233
3233
|
}
|
|
3234
|
-
function gd(e, t, n) {
|
|
3235
|
-
return et(e, t, n) === "IS_POSSIBLE";
|
|
3236
|
-
}
|
|
3237
3234
|
function vd(e, t, n) {
|
|
3235
|
+
return tt(e, t, n) === "IS_POSSIBLE";
|
|
3236
|
+
}
|
|
3237
|
+
function bd(e, t, n) {
|
|
3238
3238
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
3239
3239
|
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
|
|
3240
3240
|
var o = kn(e, t, {
|
|
@@ -3258,11 +3258,11 @@ function kn(e, t, n) {
|
|
|
3258
3258
|
withNationalPrefix: i,
|
|
3259
3259
|
metadata: r
|
|
3260
3260
|
});
|
|
3261
|
-
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)),
|
|
3261
|
+
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), Cd(o, e))
|
|
3262
3262
|
return o;
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3265
|
-
return
|
|
3264
|
+
function Cd(e, t) {
|
|
3265
|
+
return Ze(e) === t.getNationalDigits();
|
|
3266
3266
|
}
|
|
3267
3267
|
function _e(e) {
|
|
3268
3268
|
"@babel/helpers - typeof";
|
|
@@ -3272,23 +3272,23 @@ function _e(e) {
|
|
|
3272
3272
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3273
3273
|
}, _e(e);
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3275
|
+
function Pd(e, t) {
|
|
3276
3276
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3277
3277
|
}
|
|
3278
|
-
function
|
|
3278
|
+
function Nd(e, t) {
|
|
3279
3279
|
for (var n = 0; n < t.length; n++) {
|
|
3280
3280
|
var r = t[n];
|
|
3281
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
3281
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ed(r.key), r);
|
|
3282
3282
|
}
|
|
3283
3283
|
}
|
|
3284
|
-
function
|
|
3285
|
-
return t &&
|
|
3284
|
+
function Sd(e, t, n) {
|
|
3285
|
+
return t && Nd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3286
3286
|
}
|
|
3287
|
-
function
|
|
3288
|
-
var t =
|
|
3287
|
+
function Ed(e) {
|
|
3288
|
+
var t = Od(e, "string");
|
|
3289
3289
|
return _e(t) == "symbol" ? t : t + "";
|
|
3290
3290
|
}
|
|
3291
|
-
function
|
|
3291
|
+
function Od(e, t) {
|
|
3292
3292
|
if (_e(e) != "object" || !e) return e;
|
|
3293
3293
|
var n = e[Symbol.toPrimitive];
|
|
3294
3294
|
if (n !== void 0) {
|
|
@@ -3298,11 +3298,11 @@ function Ed(e, t) {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
return String(e);
|
|
3300
3300
|
}
|
|
3301
|
-
var
|
|
3301
|
+
var Td = /* @__PURE__ */ (function() {
|
|
3302
3302
|
function e() {
|
|
3303
|
-
|
|
3303
|
+
Pd(this, e);
|
|
3304
3304
|
}
|
|
3305
|
-
return
|
|
3305
|
+
return Sd(e, [{
|
|
3306
3306
|
key: "parse",
|
|
3307
3307
|
value: function(n) {
|
|
3308
3308
|
if (this.context = [{
|
|
@@ -3314,7 +3314,7 @@ var Od = /* @__PURE__ */ (function() {
|
|
|
3314
3314
|
if (i)
|
|
3315
3315
|
return {
|
|
3316
3316
|
op: "|",
|
|
3317
|
-
args: i.concat([
|
|
3317
|
+
args: i.concat([yt(a)])
|
|
3318
3318
|
};
|
|
3319
3319
|
if (a.length === 0)
|
|
3320
3320
|
throw new Error("Pattern is required");
|
|
@@ -3340,9 +3340,9 @@ var Od = /* @__PURE__ */ (function() {
|
|
|
3340
3340
|
value: function(n) {
|
|
3341
3341
|
if (!n)
|
|
3342
3342
|
throw new Error("Pattern is required");
|
|
3343
|
-
var r = n.match(
|
|
3343
|
+
var r = n.match(_d);
|
|
3344
3344
|
if (!r) {
|
|
3345
|
-
if (
|
|
3345
|
+
if (Ad.test(n))
|
|
3346
3346
|
throw new Error("Illegal characters found in a pattern: ".concat(n));
|
|
3347
3347
|
this.getContext().instructions = this.getContext().instructions.concat(n.split(""));
|
|
3348
3348
|
return;
|
|
@@ -3362,7 +3362,7 @@ var Od = /* @__PURE__ */ (function() {
|
|
|
3362
3362
|
if (a && this.parsePattern(a), this.getContext().instructions.length === 0)
|
|
3363
3363
|
throw new Error('No instructions found after "|" operator in an "or" group');
|
|
3364
3364
|
var d = this.getContext(), u = d.branches;
|
|
3365
|
-
u.push(
|
|
3365
|
+
u.push(yt(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
3366
3366
|
op: "|",
|
|
3367
3367
|
args: u
|
|
3368
3368
|
});
|
|
@@ -3375,7 +3375,7 @@ var Od = /* @__PURE__ */ (function() {
|
|
|
3375
3375
|
this.getContext().branches = [];
|
|
3376
3376
|
else
|
|
3377
3377
|
throw new Error('"branches" not found in an "or" group context');
|
|
3378
|
-
this.getContext().branches.push(
|
|
3378
|
+
this.getContext().branches.push(yt(this.getContext().instructions)), this.getContext().instructions = [];
|
|
3379
3379
|
break;
|
|
3380
3380
|
case "[":
|
|
3381
3381
|
a && this.parsePattern(a), this.startContext({
|
|
@@ -3387,7 +3387,7 @@ var Od = /* @__PURE__ */ (function() {
|
|
|
3387
3387
|
throw new Error('"]" operator must be preceded by "[" operator');
|
|
3388
3388
|
this.endContext(), this.getContext().instructions.push({
|
|
3389
3389
|
op: "[]",
|
|
3390
|
-
args:
|
|
3390
|
+
args: Id(a)
|
|
3391
3391
|
});
|
|
3392
3392
|
break;
|
|
3393
3393
|
/* istanbul ignore next */
|
|
@@ -3398,7 +3398,7 @@ var Od = /* @__PURE__ */ (function() {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
}]);
|
|
3400
3400
|
})();
|
|
3401
|
-
function
|
|
3401
|
+
function Id(e) {
|
|
3402
3402
|
for (var t = [], n = 0; n < e.length; ) {
|
|
3403
3403
|
if (e[n] === "-") {
|
|
3404
3404
|
if (n === 0 || n === e.length - 1)
|
|
@@ -3411,17 +3411,17 @@ function Td(e) {
|
|
|
3411
3411
|
}
|
|
3412
3412
|
return t;
|
|
3413
3413
|
}
|
|
3414
|
-
var
|
|
3414
|
+
var Ad = /[\(\)\[\]\?\:\|]/, _d = new RegExp(
|
|
3415
3415
|
// any of:
|
|
3416
3416
|
"(\\||\\(\\?\\:|\\)|\\[|\\])"
|
|
3417
3417
|
);
|
|
3418
|
-
function
|
|
3418
|
+
function yt(e) {
|
|
3419
3419
|
return e.length === 1 ? e[0] : e;
|
|
3420
3420
|
}
|
|
3421
3421
|
function Gn(e, t) {
|
|
3422
3422
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3423
3423
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
3424
|
-
if (Array.isArray(e) || (n =
|
|
3424
|
+
if (Array.isArray(e) || (n = wd(e)) || t) {
|
|
3425
3425
|
n && (e = n);
|
|
3426
3426
|
var r = 0;
|
|
3427
3427
|
return function() {
|
|
@@ -3431,7 +3431,7 @@ function Gn(e, t) {
|
|
|
3431
3431
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3432
3432
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3433
3433
|
}
|
|
3434
|
-
function
|
|
3434
|
+
function wd(e, t) {
|
|
3435
3435
|
if (e) {
|
|
3436
3436
|
if (typeof e == "string") return Bn(e, t);
|
|
3437
3437
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -3451,23 +3451,23 @@ function we(e) {
|
|
|
3451
3451
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3452
3452
|
}, we(e);
|
|
3453
3453
|
}
|
|
3454
|
-
function
|
|
3454
|
+
function Rd(e, t) {
|
|
3455
3455
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3457
|
+
function xd(e, t) {
|
|
3458
3458
|
for (var n = 0; n < t.length; n++) {
|
|
3459
3459
|
var r = t[n];
|
|
3460
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
3460
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Md(r.key), r);
|
|
3461
3461
|
}
|
|
3462
3462
|
}
|
|
3463
|
-
function
|
|
3464
|
-
return t &&
|
|
3463
|
+
function Fd(e, t, n) {
|
|
3464
|
+
return t && xd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3465
3465
|
}
|
|
3466
|
-
function
|
|
3467
|
-
var t =
|
|
3466
|
+
function Md(e) {
|
|
3467
|
+
var t = Dd(e, "string");
|
|
3468
3468
|
return we(t) == "symbol" ? t : t + "";
|
|
3469
3469
|
}
|
|
3470
|
-
function
|
|
3470
|
+
function Dd(e, t) {
|
|
3471
3471
|
if (we(e) != "object" || !e) return e;
|
|
3472
3472
|
var n = e[Symbol.toPrimitive];
|
|
3473
3473
|
if (n !== void 0) {
|
|
@@ -3477,11 +3477,11 @@ function Md(e, t) {
|
|
|
3477
3477
|
}
|
|
3478
3478
|
return String(e);
|
|
3479
3479
|
}
|
|
3480
|
-
var
|
|
3480
|
+
var Ld = /* @__PURE__ */ (function() {
|
|
3481
3481
|
function e(t) {
|
|
3482
|
-
|
|
3482
|
+
Rd(this, e), this.matchTree = new Td().parse(t);
|
|
3483
3483
|
}
|
|
3484
|
-
return
|
|
3484
|
+
return Fd(e, [{
|
|
3485
3485
|
key: "match",
|
|
3486
3486
|
value: function(n) {
|
|
3487
3487
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.allowOverflow;
|
|
@@ -3597,7 +3597,7 @@ function Re(e) {
|
|
|
3597
3597
|
function Un(e, t) {
|
|
3598
3598
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3599
3599
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
3600
|
-
if (Array.isArray(e) || (n =
|
|
3600
|
+
if (Array.isArray(e) || (n = jd(e)) || t) {
|
|
3601
3601
|
n && (e = n);
|
|
3602
3602
|
var r = 0;
|
|
3603
3603
|
return function() {
|
|
@@ -3607,7 +3607,7 @@ function Un(e, t) {
|
|
|
3607
3607
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3608
3608
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3610
|
+
function jd(e, t) {
|
|
3611
3611
|
if (e) {
|
|
3612
3612
|
if (typeof e == "string") return Wn(e, t);
|
|
3613
3613
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -3619,23 +3619,23 @@ function Wn(e, t) {
|
|
|
3619
3619
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
3620
3620
|
return r;
|
|
3621
3621
|
}
|
|
3622
|
-
function
|
|
3622
|
+
function kd(e, t) {
|
|
3623
3623
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3624
3624
|
}
|
|
3625
|
-
function
|
|
3625
|
+
function Gd(e, t) {
|
|
3626
3626
|
for (var n = 0; n < t.length; n++) {
|
|
3627
3627
|
var r = t[n];
|
|
3628
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
3628
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ud(r.key), r);
|
|
3629
3629
|
}
|
|
3630
3630
|
}
|
|
3631
|
-
function
|
|
3632
|
-
return t &&
|
|
3631
|
+
function Bd(e, t, n) {
|
|
3632
|
+
return t && Gd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3633
3633
|
}
|
|
3634
|
-
function
|
|
3635
|
-
var t =
|
|
3634
|
+
function Ud(e) {
|
|
3635
|
+
var t = Wd(e, "string");
|
|
3636
3636
|
return Re(t) == "symbol" ? t : t + "";
|
|
3637
3637
|
}
|
|
3638
|
-
function
|
|
3638
|
+
function Wd(e, t) {
|
|
3639
3639
|
if (Re(e) != "object" || !e) return e;
|
|
3640
3640
|
var n = e[Symbol.toPrimitive];
|
|
3641
3641
|
if (n !== void 0) {
|
|
@@ -3645,17 +3645,17 @@ function Ud(e, t) {
|
|
|
3645
3645
|
}
|
|
3646
3646
|
return String(e);
|
|
3647
3647
|
}
|
|
3648
|
-
var Ot = "9",
|
|
3648
|
+
var Ot = "9", Hd = 15, Vd = We(Ot, Hd), Kd = /[- ]/, Yd = function() {
|
|
3649
3649
|
return /\[([^\[\]])*\]/g;
|
|
3650
|
-
},
|
|
3650
|
+
}, qd = function() {
|
|
3651
3651
|
return /\d(?=[^,}][^,}])/g;
|
|
3652
|
-
},
|
|
3652
|
+
}, Zd = new RegExp("[" + ee + "]*\\$1[" + ee + "]*(\\$\\d[" + ee + "]*)*$"), Hn = 3, Xd = /* @__PURE__ */ (function() {
|
|
3653
3653
|
function e(t) {
|
|
3654
3654
|
t.state;
|
|
3655
3655
|
var n = t.metadata;
|
|
3656
|
-
|
|
3656
|
+
kd(this, e), this.metadata = n, this.resetFormat();
|
|
3657
3657
|
}
|
|
3658
|
-
return
|
|
3658
|
+
return Bd(e, [{
|
|
3659
3659
|
key: "resetFormat",
|
|
3660
3660
|
value: function() {
|
|
3661
3661
|
this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
|
|
@@ -3675,9 +3675,9 @@ var Ot = "9", Wd = 15, Hd = We(Ot, Wd), Vd = /[- ]/, Kd = function() {
|
|
|
3675
3675
|
key: "format",
|
|
3676
3676
|
value: function(n, r) {
|
|
3677
3677
|
var i = this;
|
|
3678
|
-
if (
|
|
3678
|
+
if (vd(r.nationalSignificantNumber, r.country, this.metadata))
|
|
3679
3679
|
for (var a = Un(this.matchingFormats), o; !(o = a()).done; ) {
|
|
3680
|
-
var d = o.value, u =
|
|
3680
|
+
var d = o.value, u = gd(r, d, {
|
|
3681
3681
|
metadata: this.metadata,
|
|
3682
3682
|
shouldTryNationalPrefixFormattingRule: function(s) {
|
|
3683
3683
|
return i.shouldTryNationalPrefixFormattingRule(s, {
|
|
@@ -3726,7 +3726,7 @@ var Ot = "9", Wd = 15, Hd = We(Ot, Wd), Vd = /[- ]/, Kd = function() {
|
|
|
3726
3726
|
var o = n.leadingDigitsPatterns()[i];
|
|
3727
3727
|
if (r.length < Hn)
|
|
3728
3728
|
try {
|
|
3729
|
-
return new
|
|
3729
|
+
return new Ld(o).match(r, {
|
|
3730
3730
|
allowOverflow: !0
|
|
3731
3731
|
}) !== void 0;
|
|
3732
3732
|
} catch (d) {
|
|
@@ -3744,7 +3744,7 @@ var Ot = "9", Wd = 15, Hd = We(Ot, Wd), Vd = /[- ]/, Kd = function() {
|
|
|
3744
3744
|
value: function(n) {
|
|
3745
3745
|
for (var r = this, i = function() {
|
|
3746
3746
|
var l = d.value;
|
|
3747
|
-
return r.chosenFormat === l ? 0 :
|
|
3747
|
+
return r.chosenFormat === l ? 0 : Zd.test(r.getFormatFormat(l, n.international)) ? r.createTemplateForFormat(l, n) ? (r.chosenFormat = l, 0) : (r.matchingFormats = r.matchingFormats.filter(function(s) {
|
|
3748
3748
|
return s !== l;
|
|
3749
3749
|
}), 1) : 1;
|
|
3750
3750
|
}, a, o = Un(this.matchingFormats.slice()), d; !(d = o()).done && (a = i(), a !== 0); )
|
|
@@ -3763,7 +3763,7 @@ var Ot = "9", Wd = 15, Hd = We(Ot, Wd), Vd = /[- ]/, Kd = function() {
|
|
|
3763
3763
|
}, {
|
|
3764
3764
|
key: "getSeparatorAfterNationalPrefix",
|
|
3765
3765
|
value: function(n) {
|
|
3766
|
-
return this.isNANP || n && n.nationalPrefixFormattingRule() &&
|
|
3766
|
+
return this.isNANP || n && n.nationalPrefixFormattingRule() && Kd.test(n.nationalPrefixFormattingRule()) ? " " : "";
|
|
3767
3767
|
}
|
|
3768
3768
|
}, {
|
|
3769
3769
|
key: "getInternationalPrefixBeforeCountryCallingCode",
|
|
@@ -3798,8 +3798,8 @@ var Ot = "9", Wd = 15, Hd = We(Ot, Wd), Vd = /[- ]/, Kd = function() {
|
|
|
3798
3798
|
key: "getTemplateForFormat",
|
|
3799
3799
|
value: function(n, r) {
|
|
3800
3800
|
var i = r.nationalSignificantNumber, a = r.international, o = r.nationalPrefix, d = r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, u = n.pattern();
|
|
3801
|
-
u = u.replace(
|
|
3802
|
-
var l =
|
|
3801
|
+
u = u.replace(Yd(), "\\d").replace(qd(), "\\d");
|
|
3802
|
+
var l = Vd.match(u)[0];
|
|
3803
3803
|
if (!(i.length > l.length)) {
|
|
3804
3804
|
var s = new RegExp("^" + u + "$"), f = i.replace(/\d/g, Ot);
|
|
3805
3805
|
s.test(f) && (l = f);
|
|
@@ -3809,7 +3809,7 @@ var Ot = "9", Wd = 15, Hd = We(Ot, Wd), Vd = /[- ]/, Kd = function() {
|
|
|
3809
3809
|
nationalPrefix: o
|
|
3810
3810
|
})) {
|
|
3811
3811
|
var g = c.replace(Cr, n.nationalPrefixFormattingRule());
|
|
3812
|
-
if (
|
|
3812
|
+
if (Ze(n.nationalPrefixFormattingRule()) === (o || "") + Ze("$1") && (c = g, $ = !0, o))
|
|
3813
3813
|
for (var v = o.length; v > 0; )
|
|
3814
3814
|
c = c.replace(/\d/, Q), v--;
|
|
3815
3815
|
}
|
|
@@ -3820,7 +3820,7 @@ var Ot = "9", Wd = 15, Hd = We(Ot, Wd), Vd = /[- ]/, Kd = function() {
|
|
|
3820
3820
|
}, {
|
|
3821
3821
|
key: "formatNextNationalNumberDigits",
|
|
3822
3822
|
value: function(n) {
|
|
3823
|
-
var r =
|
|
3823
|
+
var r = md(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, n);
|
|
3824
3824
|
if (!r) {
|
|
3825
3825
|
this.resetFormat();
|
|
3826
3826
|
return;
|
|
@@ -3848,13 +3848,13 @@ function xe(e) {
|
|
|
3848
3848
|
}, xe(e);
|
|
3849
3849
|
}
|
|
3850
3850
|
function _r(e, t) {
|
|
3851
|
-
return
|
|
3851
|
+
return eu(e) || Qd(e, t) || zd(e, t) || Jd();
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function Jd() {
|
|
3854
3854
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3855
3855
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3856
3856
|
}
|
|
3857
|
-
function
|
|
3857
|
+
function zd(e, t) {
|
|
3858
3858
|
if (e) {
|
|
3859
3859
|
if (typeof e == "string") return Vn(e, t);
|
|
3860
3860
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -3866,7 +3866,7 @@ function Vn(e, t) {
|
|
|
3866
3866
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
3867
3867
|
return r;
|
|
3868
3868
|
}
|
|
3869
|
-
function
|
|
3869
|
+
function Qd(e, t) {
|
|
3870
3870
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3871
3871
|
if (n != null) {
|
|
3872
3872
|
var r, i, a, o, d = [], u = !0, l = !1;
|
|
@@ -3884,26 +3884,26 @@ function zd(e, t) {
|
|
|
3884
3884
|
return d;
|
|
3885
3885
|
}
|
|
3886
3886
|
}
|
|
3887
|
-
function
|
|
3887
|
+
function eu(e) {
|
|
3888
3888
|
if (Array.isArray(e)) return e;
|
|
3889
3889
|
}
|
|
3890
|
-
function
|
|
3890
|
+
function tu(e, t) {
|
|
3891
3891
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function nu(e, t) {
|
|
3894
3894
|
for (var n = 0; n < t.length; n++) {
|
|
3895
3895
|
var r = t[n];
|
|
3896
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
3896
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, iu(r.key), r);
|
|
3897
3897
|
}
|
|
3898
3898
|
}
|
|
3899
|
-
function
|
|
3900
|
-
return t &&
|
|
3899
|
+
function ru(e, t, n) {
|
|
3900
|
+
return t && nu(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3901
3901
|
}
|
|
3902
|
-
function
|
|
3903
|
-
var t =
|
|
3902
|
+
function iu(e) {
|
|
3903
|
+
var t = au(e, "string");
|
|
3904
3904
|
return xe(t) == "symbol" ? t : t + "";
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3906
|
+
function au(e, t) {
|
|
3907
3907
|
if (xe(e) != "object" || !e) return e;
|
|
3908
3908
|
var n = e[Symbol.toPrimitive];
|
|
3909
3909
|
if (n !== void 0) {
|
|
@@ -3913,15 +3913,15 @@ function iu(e, t) {
|
|
|
3913
3913
|
}
|
|
3914
3914
|
return String(e);
|
|
3915
3915
|
}
|
|
3916
|
-
var
|
|
3916
|
+
var ou = "[" + ee + Y + "]+", du = new RegExp("^" + ou + "$", "i"), uu = "(?:[" + nt + "][" + ee + Y + "]*|[" + ee + Y + "]+)", lu = new RegExp("[^" + ee + Y + "]+.*$"), su = /[^\d\[\]]/, cu = /* @__PURE__ */ (function() {
|
|
3917
3917
|
function e(t) {
|
|
3918
3918
|
var n = t.defaultCountry, r = t.defaultCallingCode, i = t.metadata, a = t.onNationalSignificantNumberChange;
|
|
3919
|
-
|
|
3919
|
+
tu(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = i, this.onNationalSignificantNumberChange = a;
|
|
3920
3920
|
}
|
|
3921
|
-
return
|
|
3921
|
+
return ru(e, [{
|
|
3922
3922
|
key: "input",
|
|
3923
3923
|
value: function(n, r) {
|
|
3924
|
-
var i =
|
|
3924
|
+
var i = pu(n), a = _r(i, 2), o = a[0], d = a[1], u = Ze(o), l;
|
|
3925
3925
|
return d && (r.digits || (r.startInternationalNumber(void 0, void 0), u || (l = !0))), u && this.inputDigits(u, r), {
|
|
3926
3926
|
digits: u,
|
|
3927
3927
|
justLeadingPlus: l
|
|
@@ -3968,7 +3968,7 @@ var au = "[" + ee + Y + "]+", ou = new RegExp("^" + au + "$", "i"), du = "(?:["
|
|
|
3968
3968
|
if (n) {
|
|
3969
3969
|
this.hasSelectedNumberingPlan = !0;
|
|
3970
3970
|
var r = n._nationalPrefixForParsing();
|
|
3971
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = r &&
|
|
3971
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = r && su.test(r);
|
|
3972
3972
|
} else
|
|
3973
3973
|
this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
3974
3974
|
}
|
|
@@ -4078,21 +4078,21 @@ var au = "[" + ee + Y + "]+", ou = new RegExp("^" + au + "$", "i"), du = "(?:["
|
|
|
4078
4078
|
}
|
|
4079
4079
|
}]);
|
|
4080
4080
|
})();
|
|
4081
|
-
function
|
|
4082
|
-
var t = e.search(
|
|
4081
|
+
function fu(e) {
|
|
4082
|
+
var t = e.search(uu);
|
|
4083
4083
|
if (!(t < 0)) {
|
|
4084
4084
|
e = e.slice(t);
|
|
4085
4085
|
var n;
|
|
4086
|
-
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(
|
|
4086
|
+
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(lu, ""), n && (e = "+" + e), e;
|
|
4087
4087
|
}
|
|
4088
4088
|
}
|
|
4089
|
-
function
|
|
4090
|
-
var t =
|
|
4089
|
+
function $u(e) {
|
|
4090
|
+
var t = fu(e) || "";
|
|
4091
4091
|
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
4092
4092
|
}
|
|
4093
|
-
function
|
|
4094
|
-
var t =
|
|
4095
|
-
return
|
|
4093
|
+
function pu(e) {
|
|
4094
|
+
var t = $u(e), n = _r(t, 2), r = n[0], i = n[1];
|
|
4095
|
+
return du.test(r) || (r = ""), [r, i];
|
|
4096
4096
|
}
|
|
4097
4097
|
function Fe(e) {
|
|
4098
4098
|
"@babel/helpers - typeof";
|
|
@@ -4102,14 +4102,14 @@ function Fe(e) {
|
|
|
4102
4102
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4103
4103
|
}, Fe(e);
|
|
4104
4104
|
}
|
|
4105
|
-
function
|
|
4106
|
-
return
|
|
4105
|
+
function yu(e, t) {
|
|
4106
|
+
return vu(e) || gu(e, t) || mu(e, t) || hu();
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4108
|
+
function hu() {
|
|
4109
4109
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4110
4110
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4111
4111
|
}
|
|
4112
|
-
function
|
|
4112
|
+
function mu(e, t) {
|
|
4113
4113
|
if (e) {
|
|
4114
4114
|
if (typeof e == "string") return Kn(e, t);
|
|
4115
4115
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -4121,7 +4121,7 @@ function Kn(e, t) {
|
|
|
4121
4121
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
4122
4122
|
return r;
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function gu(e, t) {
|
|
4125
4125
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4126
4126
|
if (n != null) {
|
|
4127
4127
|
var r, i, a, o, d = [], u = !0, l = !1;
|
|
@@ -4139,26 +4139,26 @@ function mu(e, t) {
|
|
|
4139
4139
|
return d;
|
|
4140
4140
|
}
|
|
4141
4141
|
}
|
|
4142
|
-
function
|
|
4142
|
+
function vu(e) {
|
|
4143
4143
|
if (Array.isArray(e)) return e;
|
|
4144
4144
|
}
|
|
4145
|
-
function
|
|
4145
|
+
function bu(e, t) {
|
|
4146
4146
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
4147
4147
|
}
|
|
4148
|
-
function
|
|
4148
|
+
function Cu(e, t) {
|
|
4149
4149
|
for (var n = 0; n < t.length; n++) {
|
|
4150
4150
|
var r = t[n];
|
|
4151
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
4151
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Nu(r.key), r);
|
|
4152
4152
|
}
|
|
4153
4153
|
}
|
|
4154
|
-
function
|
|
4155
|
-
return t &&
|
|
4154
|
+
function Pu(e, t, n) {
|
|
4155
|
+
return t && Cu(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4158
|
-
var t =
|
|
4157
|
+
function Nu(e) {
|
|
4158
|
+
var t = Su(e, "string");
|
|
4159
4159
|
return Fe(t) == "symbol" ? t : t + "";
|
|
4160
4160
|
}
|
|
4161
|
-
function
|
|
4161
|
+
function Su(e, t) {
|
|
4162
4162
|
if (Fe(e) != "object" || !e) return e;
|
|
4163
4163
|
var n = e[Symbol.toPrimitive];
|
|
4164
4164
|
if (n !== void 0) {
|
|
@@ -4170,11 +4170,11 @@ function Nu(e, t) {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
var Ce = /* @__PURE__ */ (function() {
|
|
4172
4172
|
function e(t, n) {
|
|
4173
|
-
|
|
4174
|
-
var r = this.getCountryAndCallingCode(t), i =
|
|
4173
|
+
bu(this, e), this.metadata = new H(n);
|
|
4174
|
+
var r = this.getCountryAndCallingCode(t), i = yu(r, 2), a = i[0], o = i[1];
|
|
4175
4175
|
this.defaultCountry = a, this.defaultCallingCode = o, this.reset();
|
|
4176
4176
|
}
|
|
4177
|
-
return
|
|
4177
|
+
return Pu(e, [{
|
|
4178
4178
|
key: "getCountryAndCallingCode",
|
|
4179
4179
|
value: function(n) {
|
|
4180
4180
|
var r, i;
|
|
@@ -4207,17 +4207,17 @@ var Ce = /* @__PURE__ */ (function() {
|
|
|
4207
4207
|
key: "reset",
|
|
4208
4208
|
value: function() {
|
|
4209
4209
|
var n = this;
|
|
4210
|
-
return this.state = new
|
|
4210
|
+
return this.state = new $d({
|
|
4211
4211
|
onCountryChange: function(i) {
|
|
4212
4212
|
n.country = i;
|
|
4213
4213
|
},
|
|
4214
4214
|
onCallingCodeChange: function(i, a) {
|
|
4215
4215
|
n.metadata.selectNumberingPlan(a, i), n.formatter.reset(n.metadata.numberingPlan, n.state), n.parser.reset(n.metadata.numberingPlan);
|
|
4216
4216
|
}
|
|
4217
|
-
}), this.formatter = new
|
|
4217
|
+
}), this.formatter = new Xd({
|
|
4218
4218
|
state: this.state,
|
|
4219
4219
|
metadata: this.metadata
|
|
4220
|
-
}), this.parser = new
|
|
4220
|
+
}), this.parser = new cu({
|
|
4221
4221
|
defaultCountry: this.defaultCountry,
|
|
4222
4222
|
defaultCallingCode: this.defaultCallingCode,
|
|
4223
4223
|
metadata: this.metadata,
|
|
@@ -4451,7 +4451,7 @@ var Ce = /* @__PURE__ */ (function() {
|
|
|
4451
4451
|
function Yn(e) {
|
|
4452
4452
|
return new H(e).getCountries();
|
|
4453
4453
|
}
|
|
4454
|
-
function
|
|
4454
|
+
function Eu(e, t, n) {
|
|
4455
4455
|
return n || (n = t, t = void 0), new Ce(t, n).input(e);
|
|
4456
4456
|
}
|
|
4457
4457
|
function wr(e) {
|
|
@@ -4461,7 +4461,7 @@ function wr(e) {
|
|
|
4461
4461
|
function Tt(e, t) {
|
|
4462
4462
|
return t && (e = e.slice(t.length), e[0] === " " && (e = e.slice(1))), e;
|
|
4463
4463
|
}
|
|
4464
|
-
function
|
|
4464
|
+
function Ou(e, t, n) {
|
|
4465
4465
|
if (!(n && n.ignoreRest)) {
|
|
4466
4466
|
var r = function(a) {
|
|
4467
4467
|
n && a === "end" && (n.ignoreRest = !0);
|
|
@@ -4472,17 +4472,17 @@ function Eu(e, t, n) {
|
|
|
4472
4472
|
function Rr(e) {
|
|
4473
4473
|
var t = e.onKeyDown, n = e.inputFormat;
|
|
4474
4474
|
return ue(function(r) {
|
|
4475
|
-
if (r.keyCode ===
|
|
4475
|
+
if (r.keyCode === Iu && n === "INTERNATIONAL" && r.target instanceof HTMLInputElement && Tu(r.target) === Au.length) {
|
|
4476
4476
|
r.preventDefault();
|
|
4477
4477
|
return;
|
|
4478
4478
|
}
|
|
4479
4479
|
t && t(r);
|
|
4480
4480
|
}, [t, n]);
|
|
4481
4481
|
}
|
|
4482
|
-
function
|
|
4482
|
+
function Tu(e) {
|
|
4483
4483
|
return e.selectionStart;
|
|
4484
4484
|
}
|
|
4485
|
-
var
|
|
4485
|
+
var Iu = 8, Au = "+", _u = ["onKeyDown", "country", "inputFormat", "metadata", "international", "withCountryCallingCode"];
|
|
4486
4486
|
function It() {
|
|
4487
4487
|
return It = Object.assign ? Object.assign.bind() : function(e) {
|
|
4488
4488
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -4493,9 +4493,9 @@ function It() {
|
|
|
4493
4493
|
return e;
|
|
4494
4494
|
}, It.apply(this, arguments);
|
|
4495
4495
|
}
|
|
4496
|
-
function
|
|
4496
|
+
function wu(e, t) {
|
|
4497
4497
|
if (e == null) return {};
|
|
4498
|
-
var n =
|
|
4498
|
+
var n = Ru(e, t), r, i;
|
|
4499
4499
|
if (Object.getOwnPropertySymbols) {
|
|
4500
4500
|
var a = Object.getOwnPropertySymbols(e);
|
|
4501
4501
|
for (i = 0; i < a.length; i++)
|
|
@@ -4503,18 +4503,18 @@ function _u(e, t) {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
return n;
|
|
4505
4505
|
}
|
|
4506
|
-
function
|
|
4506
|
+
function Ru(e, t) {
|
|
4507
4507
|
if (e == null) return {};
|
|
4508
4508
|
var n = {}, r = Object.keys(e), i, a;
|
|
4509
4509
|
for (a = 0; a < r.length; a++)
|
|
4510
4510
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
4511
4511
|
return n;
|
|
4512
4512
|
}
|
|
4513
|
-
function
|
|
4513
|
+
function xu(e) {
|
|
4514
4514
|
function t(n, r) {
|
|
4515
4515
|
var i = n.onKeyDown, a = n.country, o = n.inputFormat, d = n.metadata, u = d === void 0 ? e : d;
|
|
4516
4516
|
n.international, n.withCountryCallingCode;
|
|
4517
|
-
var l =
|
|
4517
|
+
var l = wu(n, _u), s = ue(function(c) {
|
|
4518
4518
|
var $ = new Ce(a, u), g = wr({
|
|
4519
4519
|
inputFormat: o,
|
|
4520
4520
|
country: a,
|
|
@@ -4528,9 +4528,9 @@ function Ru(e) {
|
|
|
4528
4528
|
onKeyDown: i,
|
|
4529
4529
|
inputFormat: o
|
|
4530
4530
|
});
|
|
4531
|
-
return /* @__PURE__ */ E.createElement(
|
|
4531
|
+
return /* @__PURE__ */ E.createElement(Ye, It({}, l, {
|
|
4532
4532
|
ref: r,
|
|
4533
|
-
parse:
|
|
4533
|
+
parse: Ou,
|
|
4534
4534
|
format: s,
|
|
4535
4535
|
onKeyDown: f
|
|
4536
4536
|
}));
|
|
@@ -4576,8 +4576,8 @@ function Ru(e) {
|
|
|
4576
4576
|
metadata: p.object
|
|
4577
4577
|
}, t;
|
|
4578
4578
|
}
|
|
4579
|
-
const
|
|
4580
|
-
var
|
|
4579
|
+
const Fu = xu();
|
|
4580
|
+
var Mu = ["value", "onChange", "onKeyDown", "country", "inputFormat", "metadata", "inputComponent", "international", "withCountryCallingCode"];
|
|
4581
4581
|
function At() {
|
|
4582
4582
|
return At = Object.assign ? Object.assign.bind() : function(e) {
|
|
4583
4583
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -4588,9 +4588,9 @@ function At() {
|
|
|
4588
4588
|
return e;
|
|
4589
4589
|
}, At.apply(this, arguments);
|
|
4590
4590
|
}
|
|
4591
|
-
function
|
|
4591
|
+
function Du(e, t) {
|
|
4592
4592
|
if (e == null) return {};
|
|
4593
|
-
var n =
|
|
4593
|
+
var n = Lu(e, t), r, i;
|
|
4594
4594
|
if (Object.getOwnPropertySymbols) {
|
|
4595
4595
|
var a = Object.getOwnPropertySymbols(e);
|
|
4596
4596
|
for (i = 0; i < a.length; i++)
|
|
@@ -4598,18 +4598,18 @@ function Mu(e, t) {
|
|
|
4598
4598
|
}
|
|
4599
4599
|
return n;
|
|
4600
4600
|
}
|
|
4601
|
-
function
|
|
4601
|
+
function Lu(e, t) {
|
|
4602
4602
|
if (e == null) return {};
|
|
4603
4603
|
var n = {}, r = Object.keys(e), i, a;
|
|
4604
4604
|
for (a = 0; a < r.length; a++)
|
|
4605
4605
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
4606
4606
|
return n;
|
|
4607
4607
|
}
|
|
4608
|
-
function
|
|
4608
|
+
function ju(e) {
|
|
4609
4609
|
function t(n, r) {
|
|
4610
4610
|
var i = n.value, a = n.onChange, o = n.onKeyDown, d = n.country, u = n.inputFormat, l = n.metadata, s = l === void 0 ? e : l, f = n.inputComponent, c = f === void 0 ? "input" : f;
|
|
4611
4611
|
n.international, n.withCountryCallingCode;
|
|
4612
|
-
var $ =
|
|
4612
|
+
var $ = Du(n, Mu), g = wr({
|
|
4613
4613
|
inputFormat: u,
|
|
4614
4614
|
country: d,
|
|
4615
4615
|
metadata: s
|
|
@@ -4676,21 +4676,21 @@ function Lu(e) {
|
|
|
4676
4676
|
inputComponent: p.elementType
|
|
4677
4677
|
}, t;
|
|
4678
4678
|
}
|
|
4679
|
-
const
|
|
4679
|
+
const ku = ju();
|
|
4680
4680
|
function qn(e, t, n, r) {
|
|
4681
|
-
return Tt(
|
|
4681
|
+
return Tt(Eu(e + t, n, r), e);
|
|
4682
4682
|
}
|
|
4683
|
-
function
|
|
4683
|
+
function Gu(e) {
|
|
4684
4684
|
return Zn(e[0]) + Zn(e[1]);
|
|
4685
4685
|
}
|
|
4686
4686
|
function Zn(e) {
|
|
4687
4687
|
return String.fromCodePoint(127397 + e.toUpperCase().charCodeAt(0));
|
|
4688
4688
|
}
|
|
4689
|
-
var
|
|
4690
|
-
function
|
|
4689
|
+
var Bu = ["value", "onChange", "options", "disabled", "readOnly"], Uu = ["value", "options", "className", "iconComponent", "getIconAspectRatio", "arrowComponent", "unicodeFlags"];
|
|
4690
|
+
function Wu(e, t) {
|
|
4691
4691
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4692
4692
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
4693
|
-
if (Array.isArray(e) || (n =
|
|
4693
|
+
if (Array.isArray(e) || (n = Hu(e)) || t) {
|
|
4694
4694
|
n && (e = n);
|
|
4695
4695
|
var r = 0;
|
|
4696
4696
|
return function() {
|
|
@@ -4700,7 +4700,7 @@ function Uu(e, t) {
|
|
|
4700
4700
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4701
4701
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4702
4702
|
}
|
|
4703
|
-
function
|
|
4703
|
+
function Hu(e, t) {
|
|
4704
4704
|
if (e) {
|
|
4705
4705
|
if (typeof e == "string") return Xn(e, t);
|
|
4706
4706
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -4713,19 +4713,19 @@ function Xn(e, t) {
|
|
|
4713
4713
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
4714
4714
|
return r;
|
|
4715
4715
|
}
|
|
4716
|
-
function
|
|
4717
|
-
return
|
|
4716
|
+
function Xe() {
|
|
4717
|
+
return Xe = Object.assign ? Object.assign.bind() : function(e) {
|
|
4718
4718
|
for (var t = 1; t < arguments.length; t++) {
|
|
4719
4719
|
var n = arguments[t];
|
|
4720
4720
|
for (var r in n)
|
|
4721
4721
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4722
4722
|
}
|
|
4723
4723
|
return e;
|
|
4724
|
-
},
|
|
4724
|
+
}, Xe.apply(this, arguments);
|
|
4725
4725
|
}
|
|
4726
4726
|
function xr(e, t) {
|
|
4727
4727
|
if (e == null) return {};
|
|
4728
|
-
var n =
|
|
4728
|
+
var n = Vu(e, t), r, i;
|
|
4729
4729
|
if (Object.getOwnPropertySymbols) {
|
|
4730
4730
|
var a = Object.getOwnPropertySymbols(e);
|
|
4731
4731
|
for (i = 0; i < a.length; i++)
|
|
@@ -4733,7 +4733,7 @@ function xr(e, t) {
|
|
|
4733
4733
|
}
|
|
4734
4734
|
return n;
|
|
4735
4735
|
}
|
|
4736
|
-
function
|
|
4736
|
+
function Vu(e, t) {
|
|
4737
4737
|
if (e == null) return {};
|
|
4738
4738
|
var n = {}, r = Object.keys(e), i, a;
|
|
4739
4739
|
for (a = 0; a < r.length; a++)
|
|
@@ -4741,13 +4741,13 @@ function Hu(e, t) {
|
|
|
4741
4741
|
return n;
|
|
4742
4742
|
}
|
|
4743
4743
|
function Fr(e) {
|
|
4744
|
-
var t = e.value, n = e.onChange, r = e.options, i = e.disabled, a = e.readOnly, o = xr(e,
|
|
4744
|
+
var t = e.value, n = e.onChange, r = e.options, i = e.disabled, a = e.readOnly, o = xr(e, Bu), d = ue(function(u) {
|
|
4745
4745
|
var l = u.target.value;
|
|
4746
4746
|
n(l === "ZZ" ? void 0 : l);
|
|
4747
4747
|
}, [n]);
|
|
4748
|
-
return
|
|
4748
|
+
return Ve(function() {
|
|
4749
4749
|
return Dr(r, t);
|
|
4750
|
-
}, [r, t]), /* @__PURE__ */ E.createElement("select",
|
|
4750
|
+
}, [r, t]), /* @__PURE__ */ E.createElement("select", Xe({}, o, {
|
|
4751
4751
|
disabled: i || a,
|
|
4752
4752
|
readOnly: a,
|
|
4753
4753
|
value: t || "ZZ",
|
|
@@ -4758,7 +4758,7 @@ function Fr(e) {
|
|
|
4758
4758
|
key: f ? "|" : l || "ZZ",
|
|
4759
4759
|
value: f ? "|" : l || "ZZ",
|
|
4760
4760
|
disabled: !!f,
|
|
4761
|
-
style: f ?
|
|
4761
|
+
style: f ? Ku : void 0
|
|
4762
4762
|
}, s);
|
|
4763
4763
|
}));
|
|
4764
4764
|
}
|
|
@@ -4787,7 +4787,7 @@ Fr.propTypes = {
|
|
|
4787
4787
|
disabled: p.bool,
|
|
4788
4788
|
readOnly: p.bool
|
|
4789
4789
|
};
|
|
4790
|
-
var
|
|
4790
|
+
var Ku = {
|
|
4791
4791
|
fontSize: "1px",
|
|
4792
4792
|
backgroundColor: "currentColor",
|
|
4793
4793
|
color: "inherit"
|
|
@@ -4795,18 +4795,18 @@ var Vu = {
|
|
|
4795
4795
|
function Mr(e) {
|
|
4796
4796
|
var t = e.value, n = e.options, r = e.className, i = e.iconComponent;
|
|
4797
4797
|
e.getIconAspectRatio;
|
|
4798
|
-
var a = e.arrowComponent, o = a === void 0 ?
|
|
4798
|
+
var a = e.arrowComponent, o = a === void 0 ? Yu : a, d = e.unicodeFlags, u = xr(e, Uu), l = Ve(function() {
|
|
4799
4799
|
return Dr(n, t);
|
|
4800
4800
|
}, [n, t]);
|
|
4801
4801
|
return /* @__PURE__ */ E.createElement("div", {
|
|
4802
4802
|
className: "PhoneInputCountry"
|
|
4803
|
-
}, /* @__PURE__ */ E.createElement(Fr,
|
|
4803
|
+
}, /* @__PURE__ */ E.createElement(Fr, Xe({}, u, {
|
|
4804
4804
|
value: t,
|
|
4805
4805
|
options: n,
|
|
4806
|
-
className:
|
|
4806
|
+
className: Ke("PhoneInputCountrySelect", r)
|
|
4807
4807
|
})), l && (d && t ? /* @__PURE__ */ E.createElement("div", {
|
|
4808
4808
|
className: "PhoneInputCountryIconUnicode"
|
|
4809
|
-
},
|
|
4809
|
+
}, Gu(t)) : /* @__PURE__ */ E.createElement(i, {
|
|
4810
4810
|
"aria-hidden": !0,
|
|
4811
4811
|
country: t,
|
|
4812
4812
|
label: l.label,
|
|
@@ -4821,22 +4821,22 @@ Mr.propTypes = {
|
|
|
4821
4821
|
// Set to `true` to render Unicode flag icons instead of SVG images.
|
|
4822
4822
|
unicodeFlags: p.bool
|
|
4823
4823
|
};
|
|
4824
|
-
function
|
|
4824
|
+
function Yu() {
|
|
4825
4825
|
return /* @__PURE__ */ E.createElement("div", {
|
|
4826
4826
|
className: "PhoneInputCountrySelectArrow"
|
|
4827
4827
|
});
|
|
4828
4828
|
}
|
|
4829
4829
|
function Dr(e, t) {
|
|
4830
|
-
for (var n =
|
|
4830
|
+
for (var n = Wu(e), r; !(r = n()).done; ) {
|
|
4831
4831
|
var i = r.value;
|
|
4832
|
-
if (!i.divider &&
|
|
4832
|
+
if (!i.divider && qu(i.value, t))
|
|
4833
4833
|
return i;
|
|
4834
4834
|
}
|
|
4835
4835
|
}
|
|
4836
|
-
function
|
|
4836
|
+
function qu(e, t) {
|
|
4837
4837
|
return e == null ? t == null : e === t;
|
|
4838
4838
|
}
|
|
4839
|
-
var
|
|
4839
|
+
var Zu = ["country", "countryName", "flags", "flagUrl"];
|
|
4840
4840
|
function _t() {
|
|
4841
4841
|
return _t = Object.assign ? Object.assign.bind() : function(e) {
|
|
4842
4842
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -4847,9 +4847,9 @@ function _t() {
|
|
|
4847
4847
|
return e;
|
|
4848
4848
|
}, _t.apply(this, arguments);
|
|
4849
4849
|
}
|
|
4850
|
-
function
|
|
4850
|
+
function Xu(e, t) {
|
|
4851
4851
|
if (e == null) return {};
|
|
4852
|
-
var n =
|
|
4852
|
+
var n = Ju(e, t), r, i;
|
|
4853
4853
|
if (Object.getOwnPropertySymbols) {
|
|
4854
4854
|
var a = Object.getOwnPropertySymbols(e);
|
|
4855
4855
|
for (i = 0; i < a.length; i++)
|
|
@@ -4857,7 +4857,7 @@ function Zu(e, t) {
|
|
|
4857
4857
|
}
|
|
4858
4858
|
return n;
|
|
4859
4859
|
}
|
|
4860
|
-
function
|
|
4860
|
+
function Ju(e, t) {
|
|
4861
4861
|
if (e == null) return {};
|
|
4862
4862
|
var n = {}, r = Object.keys(e), i, a;
|
|
4863
4863
|
for (a = 0; a < r.length; a++)
|
|
@@ -4865,7 +4865,7 @@ function Xu(e, t) {
|
|
|
4865
4865
|
return n;
|
|
4866
4866
|
}
|
|
4867
4867
|
function Ut(e) {
|
|
4868
|
-
var t = e.country, n = e.countryName, r = e.flags, i = e.flagUrl, a =
|
|
4868
|
+
var t = e.country, n = e.countryName, r = e.flags, i = e.flagUrl, a = Xu(e, Zu);
|
|
4869
4869
|
return r && r[t] ? r[t]({
|
|
4870
4870
|
title: n
|
|
4871
4871
|
}) : /* @__PURE__ */ E.createElement("img", _t({}, a, {
|
|
@@ -4892,20 +4892,20 @@ Ut.propTypes = {
|
|
|
4892
4892
|
// By default it points to `country-flag-icons` gitlab pages website.
|
|
4893
4893
|
flagUrl: p.string.isRequired
|
|
4894
4894
|
};
|
|
4895
|
-
var
|
|
4896
|
-
function
|
|
4897
|
-
return
|
|
4895
|
+
var zu = ["aspectRatio"], Qu = ["title"], el = ["title"];
|
|
4896
|
+
function Je() {
|
|
4897
|
+
return Je = Object.assign ? Object.assign.bind() : function(e) {
|
|
4898
4898
|
for (var t = 1; t < arguments.length; t++) {
|
|
4899
4899
|
var n = arguments[t];
|
|
4900
4900
|
for (var r in n)
|
|
4901
4901
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4902
4902
|
}
|
|
4903
4903
|
return e;
|
|
4904
|
-
},
|
|
4904
|
+
}, Je.apply(this, arguments);
|
|
4905
4905
|
}
|
|
4906
4906
|
function Wt(e, t) {
|
|
4907
4907
|
if (e == null) return {};
|
|
4908
|
-
var n =
|
|
4908
|
+
var n = tl(e, t), r, i;
|
|
4909
4909
|
if (Object.getOwnPropertySymbols) {
|
|
4910
4910
|
var a = Object.getOwnPropertySymbols(e);
|
|
4911
4911
|
for (i = 0; i < a.length; i++)
|
|
@@ -4913,24 +4913,24 @@ function Wt(e, t) {
|
|
|
4913
4913
|
}
|
|
4914
4914
|
return n;
|
|
4915
4915
|
}
|
|
4916
|
-
function
|
|
4916
|
+
function tl(e, t) {
|
|
4917
4917
|
if (e == null) return {};
|
|
4918
4918
|
var n = {}, r = Object.keys(e), i, a;
|
|
4919
4919
|
for (a = 0; a < r.length; a++)
|
|
4920
4920
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
4921
4921
|
return n;
|
|
4922
4922
|
}
|
|
4923
|
-
function
|
|
4924
|
-
var t = e.aspectRatio, n = Wt(e,
|
|
4923
|
+
function rt(e) {
|
|
4924
|
+
var t = e.aspectRatio, n = Wt(e, zu);
|
|
4925
4925
|
return t === 1 ? /* @__PURE__ */ E.createElement(jr, n) : /* @__PURE__ */ E.createElement(Lr, n);
|
|
4926
4926
|
}
|
|
4927
|
-
|
|
4927
|
+
rt.propTypes = {
|
|
4928
4928
|
title: p.string.isRequired,
|
|
4929
4929
|
aspectRatio: p.number
|
|
4930
4930
|
};
|
|
4931
4931
|
function Lr(e) {
|
|
4932
|
-
var t = e.title, n = Wt(e,
|
|
4933
|
-
return /* @__PURE__ */ E.createElement("svg",
|
|
4932
|
+
var t = e.title, n = Wt(e, Qu);
|
|
4933
|
+
return /* @__PURE__ */ E.createElement("svg", Je({}, n, {
|
|
4934
4934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4935
4935
|
viewBox: "0 0 75 50"
|
|
4936
4936
|
}), /* @__PURE__ */ E.createElement("title", null, t), /* @__PURE__ */ E.createElement("g", {
|
|
@@ -4971,8 +4971,8 @@ Lr.propTypes = {
|
|
|
4971
4971
|
title: p.string.isRequired
|
|
4972
4972
|
};
|
|
4973
4973
|
function jr(e) {
|
|
4974
|
-
var t = e.title, n = Wt(e,
|
|
4975
|
-
return /* @__PURE__ */ E.createElement("svg",
|
|
4974
|
+
var t = e.title, n = Wt(e, el);
|
|
4975
|
+
return /* @__PURE__ */ E.createElement("svg", Je({}, n, {
|
|
4976
4976
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4977
4977
|
viewBox: "0 0 50 50"
|
|
4978
4978
|
}), /* @__PURE__ */ E.createElement("title", null, t), /* @__PURE__ */ E.createElement("g", {
|
|
@@ -5009,7 +5009,7 @@ function jr(e) {
|
|
|
5009
5009
|
jr.propTypes = {
|
|
5010
5010
|
title: p.string.isRequired
|
|
5011
5011
|
};
|
|
5012
|
-
function
|
|
5012
|
+
function nl(e) {
|
|
5013
5013
|
if (e.length < 2 || e[0] !== "+")
|
|
5014
5014
|
return !1;
|
|
5015
5015
|
for (var t = 1; t < e.length; ) {
|
|
@@ -5020,12 +5020,12 @@ function tl(e) {
|
|
|
5020
5020
|
return !0;
|
|
5021
5021
|
}
|
|
5022
5022
|
function kr(e) {
|
|
5023
|
-
|
|
5023
|
+
nl(e) || console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got", e);
|
|
5024
5024
|
}
|
|
5025
|
-
function
|
|
5025
|
+
function rl(e, t) {
|
|
5026
5026
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5027
5027
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
5028
|
-
if (Array.isArray(e) || (n =
|
|
5028
|
+
if (Array.isArray(e) || (n = il(e)) || t) {
|
|
5029
5029
|
n && (e = n);
|
|
5030
5030
|
var r = 0;
|
|
5031
5031
|
return function() {
|
|
@@ -5035,7 +5035,7 @@ function nl(e, t) {
|
|
|
5035
5035
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5036
5036
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
5037
5037
|
}
|
|
5038
|
-
function
|
|
5038
|
+
function il(e, t) {
|
|
5039
5039
|
if (e) {
|
|
5040
5040
|
if (typeof e == "string") return Jn(e, t);
|
|
5041
5041
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -5048,7 +5048,7 @@ function Jn(e, t) {
|
|
|
5048
5048
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
5049
5049
|
return r;
|
|
5050
5050
|
}
|
|
5051
|
-
function
|
|
5051
|
+
function al(e, t) {
|
|
5052
5052
|
if (!t)
|
|
5053
5053
|
return e;
|
|
5054
5054
|
for (var n = [], r = [], i = n, a = function() {
|
|
@@ -5067,11 +5067,11 @@ function il(e, t) {
|
|
|
5067
5067
|
})[0]), c = e[f];
|
|
5068
5068
|
e.splice(f, 1), i.push(c);
|
|
5069
5069
|
}
|
|
5070
|
-
}, o =
|
|
5070
|
+
}, o = rl(t), d; !(d = o()).done; )
|
|
5071
5071
|
a();
|
|
5072
5072
|
return n.concat(e).concat(r);
|
|
5073
5073
|
}
|
|
5074
|
-
function
|
|
5074
|
+
function ol(e, t) {
|
|
5075
5075
|
if (e && (e = e.filter(function(n) {
|
|
5076
5076
|
switch (n) {
|
|
5077
5077
|
case "🌐":
|
|
@@ -5080,20 +5080,20 @@ function al(e, t) {
|
|
|
5080
5080
|
case "…":
|
|
5081
5081
|
return !0;
|
|
5082
5082
|
default:
|
|
5083
|
-
return
|
|
5083
|
+
return it(n, t);
|
|
5084
5084
|
}
|
|
5085
5085
|
}), e.length > 0))
|
|
5086
5086
|
return e;
|
|
5087
5087
|
}
|
|
5088
|
-
function
|
|
5088
|
+
function it(e, t) {
|
|
5089
5089
|
return pr(e, t) ? !0 : (console.error("Country not found: ".concat(e)), !1);
|
|
5090
5090
|
}
|
|
5091
5091
|
function Gr(e, t) {
|
|
5092
5092
|
return e && (e = e.filter(function(n) {
|
|
5093
|
-
return
|
|
5093
|
+
return it(n, t);
|
|
5094
5094
|
}), e.length === 0 && (e = void 0)), e;
|
|
5095
5095
|
}
|
|
5096
|
-
var
|
|
5096
|
+
var dl = ["country", "label", "aspectRatio"];
|
|
5097
5097
|
function wt() {
|
|
5098
5098
|
return wt = Object.assign ? Object.assign.bind() : function(e) {
|
|
5099
5099
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -5104,9 +5104,9 @@ function wt() {
|
|
|
5104
5104
|
return e;
|
|
5105
5105
|
}, wt.apply(this, arguments);
|
|
5106
5106
|
}
|
|
5107
|
-
function
|
|
5107
|
+
function ul(e, t) {
|
|
5108
5108
|
if (e == null) return {};
|
|
5109
|
-
var n =
|
|
5109
|
+
var n = ll(e, t), r, i;
|
|
5110
5110
|
if (Object.getOwnPropertySymbols) {
|
|
5111
5111
|
var a = Object.getOwnPropertySymbols(e);
|
|
5112
5112
|
for (i = 0; i < a.length; i++)
|
|
@@ -5114,7 +5114,7 @@ function dl(e, t) {
|
|
|
5114
5114
|
}
|
|
5115
5115
|
return n;
|
|
5116
5116
|
}
|
|
5117
|
-
function
|
|
5117
|
+
function ll(e, t) {
|
|
5118
5118
|
if (e == null) return {};
|
|
5119
5119
|
var n = {}, r = Object.keys(e), i, a;
|
|
5120
5120
|
for (a = 0; a < r.length; a++)
|
|
@@ -5124,9 +5124,9 @@ function ul(e, t) {
|
|
|
5124
5124
|
function Br(e) {
|
|
5125
5125
|
var t = e.flags, n = e.flagUrl, r = e.flagComponent, i = e.internationalIcon;
|
|
5126
5126
|
function a(o) {
|
|
5127
|
-
var d = o.country, u = o.label, l = o.aspectRatio, s =
|
|
5127
|
+
var d = o.country, u = o.label, l = o.aspectRatio, s = ul(o, dl), f = i === rt ? l : void 0;
|
|
5128
5128
|
return /* @__PURE__ */ E.createElement("div", wt({}, s, {
|
|
5129
|
-
className:
|
|
5129
|
+
className: Ke("PhoneInputCountryIcon", {
|
|
5130
5130
|
"PhoneInputCountryIcon--square": f === 1,
|
|
5131
5131
|
"PhoneInputCountryIcon--border": d
|
|
5132
5132
|
})
|
|
@@ -5152,12 +5152,12 @@ Br({
|
|
|
5152
5152
|
// Must be equal to `defaultProps.flagUrl` in `./PhoneInputWithCountry.js`.
|
|
5153
5153
|
flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
|
|
5154
5154
|
flagComponent: Ut,
|
|
5155
|
-
internationalIcon:
|
|
5155
|
+
internationalIcon: rt
|
|
5156
5156
|
});
|
|
5157
|
-
function
|
|
5157
|
+
function sl(e, t) {
|
|
5158
5158
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5159
5159
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
5160
|
-
if (Array.isArray(e) || (n =
|
|
5160
|
+
if (Array.isArray(e) || (n = cl(e)) || t) {
|
|
5161
5161
|
n && (e = n);
|
|
5162
5162
|
var r = 0;
|
|
5163
5163
|
return function() {
|
|
@@ -5167,7 +5167,7 @@ function ll(e, t) {
|
|
|
5167
5167
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5168
5168
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
5169
5169
|
}
|
|
5170
|
-
function
|
|
5170
|
+
function cl(e, t) {
|
|
5171
5171
|
if (e) {
|
|
5172
5172
|
if (typeof e == "string") return zn(e, t);
|
|
5173
5173
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -5180,13 +5180,13 @@ function zn(e, t) {
|
|
|
5180
5180
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
5181
5181
|
return r;
|
|
5182
5182
|
}
|
|
5183
|
-
function
|
|
5184
|
-
for (var n =
|
|
5183
|
+
function fl(e, t) {
|
|
5184
|
+
for (var n = sl(e), r; !(r = n()).done; ) {
|
|
5185
5185
|
var i = r.value;
|
|
5186
|
-
i &&
|
|
5186
|
+
i && $l(i, t);
|
|
5187
5187
|
}
|
|
5188
5188
|
}
|
|
5189
|
-
function
|
|
5189
|
+
function $l(e, t) {
|
|
5190
5190
|
typeof e == "function" ? e(t) : e.current = t;
|
|
5191
5191
|
}
|
|
5192
5192
|
var Ur = p.shape({
|
|
@@ -5197,13 +5197,13 @@ function ie(e, t) {
|
|
|
5197
5197
|
var n = "+" + le(e, t);
|
|
5198
5198
|
return n;
|
|
5199
5199
|
}
|
|
5200
|
-
function
|
|
5200
|
+
function pl(e) {
|
|
5201
5201
|
var t = e.value, n = e.phoneNumber, r = e.defaultCountry, i = e.getAnyCountry, a = e.countries, o = e.required, d = e.metadata, u;
|
|
5202
5202
|
return n && n.country ? u = n.country : r && (!t || me(t, r, d)) && (u = r), a && a.indexOf(u) < 0 && (u = void 0), !u && o && a && a.length > 0 && (u = i()), u;
|
|
5203
5203
|
}
|
|
5204
|
-
function
|
|
5204
|
+
function yl(e) {
|
|
5205
5205
|
var t = e.countries, n = e.countryNames, r = e.addInternationalOption, i = e.compareStringsLocales, a = e.compareStrings;
|
|
5206
|
-
a || (a =
|
|
5206
|
+
a || (a = Pl);
|
|
5207
5207
|
var o = t.map(function(d) {
|
|
5208
5208
|
return {
|
|
5209
5209
|
value: d,
|
|
@@ -5225,10 +5225,10 @@ function pl(e) {
|
|
|
5225
5225
|
function Hr(e, t) {
|
|
5226
5226
|
return Ar(e || "", t);
|
|
5227
5227
|
}
|
|
5228
|
-
function
|
|
5228
|
+
function hl(e) {
|
|
5229
5229
|
return e.formatNational().replace(/\D/g, "");
|
|
5230
5230
|
}
|
|
5231
|
-
function
|
|
5231
|
+
function ml(e, t) {
|
|
5232
5232
|
var n = t.prevCountry, r = t.newCountry, i = t.metadata, a = t.useNationalFormat;
|
|
5233
5233
|
if (n === r)
|
|
5234
5234
|
return e;
|
|
@@ -5237,7 +5237,7 @@ function hl(e, t) {
|
|
|
5237
5237
|
if (r) {
|
|
5238
5238
|
if (e[0] === "+") {
|
|
5239
5239
|
if (a)
|
|
5240
|
-
return e.indexOf("+" + le(r, i)) === 0 ?
|
|
5240
|
+
return e.indexOf("+" + le(r, i)) === 0 ? Nl(e, r, i) : "";
|
|
5241
5241
|
if (n) {
|
|
5242
5242
|
var o = ie(r, i);
|
|
5243
5243
|
return e.indexOf(o) === 0 ? e : o;
|
|
@@ -5264,23 +5264,23 @@ function he(e, t, n) {
|
|
|
5264
5264
|
}
|
|
5265
5265
|
}
|
|
5266
5266
|
}
|
|
5267
|
-
function
|
|
5267
|
+
function gl(e, t, n) {
|
|
5268
5268
|
var r = Kr(e, t, n);
|
|
5269
5269
|
if (r) {
|
|
5270
|
-
var i = r.length -
|
|
5270
|
+
var i = r.length - vl(t, n);
|
|
5271
5271
|
if (i > 0)
|
|
5272
5272
|
return e.slice(0, e.length - i);
|
|
5273
5273
|
}
|
|
5274
5274
|
return e;
|
|
5275
5275
|
}
|
|
5276
|
-
function
|
|
5276
|
+
function vl(e, t) {
|
|
5277
5277
|
return t = new H(t), t.selectNumberingPlan(e), t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length - 1];
|
|
5278
5278
|
}
|
|
5279
5279
|
function Vr(e, t) {
|
|
5280
5280
|
var n = t.country, r = t.countries, i = t.defaultCountry, a = t.latestCountrySelectedByUser, o = t.required, d = t.metadata;
|
|
5281
5281
|
if (e === "+")
|
|
5282
5282
|
return n;
|
|
5283
|
-
var u =
|
|
5283
|
+
var u = Cl(e, d);
|
|
5284
5284
|
if (u)
|
|
5285
5285
|
return !r || r.indexOf(u) >= 0 ? u : void 0;
|
|
5286
5286
|
if (n) {
|
|
@@ -5296,7 +5296,7 @@ function Vr(e, t) {
|
|
|
5296
5296
|
}
|
|
5297
5297
|
return n;
|
|
5298
5298
|
}
|
|
5299
|
-
function
|
|
5299
|
+
function bl(e, t) {
|
|
5300
5300
|
var n = t.prevPhoneDigits, r = t.country, i = t.defaultCountry, a = t.latestCountrySelectedByUser, o = t.countryRequired, d = t.getAnyCountry, u = t.countries, l = t.international, s = t.limitMaxLength, f = t.countryCallingCodeEditable, c = t.metadata;
|
|
5301
5301
|
if (l && f === !1 && r) {
|
|
5302
5302
|
var $ = ie(r, c);
|
|
@@ -5309,7 +5309,7 @@ function vl(e, t) {
|
|
|
5309
5309
|
};
|
|
5310
5310
|
}
|
|
5311
5311
|
}
|
|
5312
|
-
l === !1 && r && e && e[0] === "+" && (e = Qn(e, r, c)), e && r && s && (e =
|
|
5312
|
+
l === !1 && r && e && e[0] === "+" && (e = Qn(e, r, c)), e && r && s && (e = gl(e, r, c)), e && e[0] !== "+" && (!r || l) && (e = "+" + e), !e && n && n[0] === "+" && (l ? r = void 0 : r = i), e === "+" && n && n[0] === "+" && n.length > 1 && (r = void 0);
|
|
5313
5313
|
var y;
|
|
5314
5314
|
return e && (e[0] === "+" && (e === "+" || r && ie(r, c).indexOf(e) === 0) ? y = void 0 : y = he(e, r, c)), y && (r = Vr(y, {
|
|
5315
5315
|
country: r,
|
|
@@ -5338,14 +5338,14 @@ function Qn(e, t, n) {
|
|
|
5338
5338
|
} else
|
|
5339
5339
|
return e.replace(/\D/g, "");
|
|
5340
5340
|
}
|
|
5341
|
-
function
|
|
5341
|
+
function Cl(e, t) {
|
|
5342
5342
|
var n = new Ce(null, t);
|
|
5343
5343
|
return n.input(e), n.getCountry();
|
|
5344
5344
|
}
|
|
5345
|
-
function
|
|
5345
|
+
function Pl(e, t, n) {
|
|
5346
5346
|
return String.prototype.localeCompare ? e.localeCompare(t, n) : e < t ? -1 : e > t ? 1 : 0;
|
|
5347
5347
|
}
|
|
5348
|
-
function
|
|
5348
|
+
function Nl(e, t, n) {
|
|
5349
5349
|
if (t) {
|
|
5350
5350
|
var r = "+" + le(t, n);
|
|
5351
5351
|
if (e.length < r.length) {
|
|
@@ -5377,7 +5377,7 @@ function me(e, t, n) {
|
|
|
5377
5377
|
}
|
|
5378
5378
|
function Yr(e) {
|
|
5379
5379
|
var t = e.value, n = e.phoneNumber, r = e.defaultCountry, i = e.international, a = e.useNationalFormat, o = e.metadata;
|
|
5380
|
-
return (i === !1 || a) && n && n.country ?
|
|
5380
|
+
return (i === !1 || a) && n && n.country ? hl(n) : !t && i && r ? ie(r, o) : t;
|
|
5381
5381
|
}
|
|
5382
5382
|
function Me(e) {
|
|
5383
5383
|
"@babel/helpers - typeof";
|
|
@@ -5401,21 +5401,21 @@ function Ge(e) {
|
|
|
5401
5401
|
for (var t = 1; t < arguments.length; t++) {
|
|
5402
5402
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
5403
5403
|
t % 2 ? er(Object(n), !0).forEach(function(r) {
|
|
5404
|
-
|
|
5404
|
+
Sl(e, r, n[r]);
|
|
5405
5405
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : er(Object(n)).forEach(function(r) {
|
|
5406
5406
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
5407
5407
|
});
|
|
5408
5408
|
}
|
|
5409
5409
|
return e;
|
|
5410
5410
|
}
|
|
5411
|
-
function
|
|
5412
|
-
return t =
|
|
5411
|
+
function Sl(e, t, n) {
|
|
5412
|
+
return t = El(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
5413
5413
|
}
|
|
5414
|
-
function
|
|
5415
|
-
var t =
|
|
5414
|
+
function El(e) {
|
|
5415
|
+
var t = Ol(e, "string");
|
|
5416
5416
|
return Me(t) == "symbol" ? t : t + "";
|
|
5417
5417
|
}
|
|
5418
|
-
function
|
|
5418
|
+
function Ol(e, t) {
|
|
5419
5419
|
if (Me(e) != "object" || !e) return e;
|
|
5420
5420
|
var n = e[Symbol.toPrimitive];
|
|
5421
5421
|
if (n !== void 0) {
|
|
@@ -5425,7 +5425,7 @@ function El(e, t) {
|
|
|
5425
5425
|
}
|
|
5426
5426
|
return (t === "string" ? String : Number)(e);
|
|
5427
5427
|
}
|
|
5428
|
-
function
|
|
5428
|
+
function Tl(e, t, n) {
|
|
5429
5429
|
var r = e.metadata, i = e.countries, a = e.defaultCountry, o = e.value, d = e.reset, u = e.international, l = e.displayInitialValueAsLocalNumber, s = e.initialValueFormat, f = t.defaultCountry, c = t.value, $ = t.reset;
|
|
5430
5430
|
n.country;
|
|
5431
5431
|
var g = n.value, v = n.hasUserSelectedACountry, y = n.latestCountrySelectedByUser, P = function(W) {
|
|
@@ -5447,7 +5447,7 @@ function Ol(e, t, n) {
|
|
|
5447
5447
|
hasUserSelectedACountry: void 0
|
|
5448
5448
|
};
|
|
5449
5449
|
if (a !== f) {
|
|
5450
|
-
var O = !a ||
|
|
5450
|
+
var O = !a || it(a, r), S = (
|
|
5451
5451
|
// By default, "no value has been entered" means `value` is `undefined`.
|
|
5452
5452
|
!g || // When `international` is `true`, and some country has been pre-selected,
|
|
5453
5453
|
// then the `<input/>` contains a pre-filled value of `+${countryCallingCode}${leadingDigits}`,
|
|
@@ -5512,7 +5512,7 @@ function Ol(e, t, n) {
|
|
|
5512
5512
|
function tr(e, t) {
|
|
5513
5513
|
return e === null && (e = void 0), t === null && (t = void 0), e === t;
|
|
5514
5514
|
}
|
|
5515
|
-
var
|
|
5515
|
+
var Il = ["name", "disabled", "readOnly", "autoComplete", "style", "className", "inputRef", "inputComponent", "numberInputProps", "smartCaret", "countrySelectComponent", "countrySelectProps", "containerComponent", "containerComponentProps", "defaultCountry", "countries", "countryOptionsOrder", "labels", "flags", "flagComponent", "flagUrl", "addInternationalOption", "internationalIcon", "displayInitialValueAsLocalNumber", "initialValueFormat", "onCountryChange", "limitMaxLength", "countryCallingCodeEditable", "focusInputOnCountrySelection", "reset", "metadata", "international", "locales"];
|
|
5516
5516
|
function be(e) {
|
|
5517
5517
|
"@babel/helpers - typeof";
|
|
5518
5518
|
return be = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -5552,9 +5552,9 @@ function ge() {
|
|
|
5552
5552
|
return e;
|
|
5553
5553
|
}, ge.apply(this, arguments);
|
|
5554
5554
|
}
|
|
5555
|
-
function
|
|
5555
|
+
function Al(e, t) {
|
|
5556
5556
|
if (e == null) return {};
|
|
5557
|
-
var n =
|
|
5557
|
+
var n = _l(e, t), r, i;
|
|
5558
5558
|
if (Object.getOwnPropertySymbols) {
|
|
5559
5559
|
var a = Object.getOwnPropertySymbols(e);
|
|
5560
5560
|
for (i = 0; i < a.length; i++)
|
|
@@ -5562,14 +5562,14 @@ function Il(e, t) {
|
|
|
5562
5562
|
}
|
|
5563
5563
|
return n;
|
|
5564
5564
|
}
|
|
5565
|
-
function
|
|
5565
|
+
function _l(e, t) {
|
|
5566
5566
|
if (e == null) return {};
|
|
5567
5567
|
var n = {}, r = Object.keys(e), i, a;
|
|
5568
5568
|
for (a = 0; a < r.length; a++)
|
|
5569
5569
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
5570
5570
|
return n;
|
|
5571
5571
|
}
|
|
5572
|
-
function
|
|
5572
|
+
function wl(e, t) {
|
|
5573
5573
|
if (!(e instanceof t))
|
|
5574
5574
|
throw new TypeError("Cannot call a class as a function");
|
|
5575
5575
|
}
|
|
@@ -5579,20 +5579,20 @@ function rr(e, t) {
|
|
|
5579
5579
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Xr(r.key), r);
|
|
5580
5580
|
}
|
|
5581
5581
|
}
|
|
5582
|
-
function
|
|
5582
|
+
function Rl(e, t, n) {
|
|
5583
5583
|
return t && rr(e.prototype, t), n && rr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
5584
5584
|
}
|
|
5585
|
-
function
|
|
5586
|
-
return t =
|
|
5585
|
+
function xl(e, t, n) {
|
|
5586
|
+
return t = ze(t), Fl(e, Zr() ? Reflect.construct(t, n || [], ze(e).constructor) : t.apply(e, n));
|
|
5587
5587
|
}
|
|
5588
|
-
function
|
|
5588
|
+
function Fl(e, t) {
|
|
5589
5589
|
if (t && (be(t) === "object" || typeof t == "function"))
|
|
5590
5590
|
return t;
|
|
5591
5591
|
if (t !== void 0)
|
|
5592
5592
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
5593
|
-
return
|
|
5593
|
+
return Ml(e);
|
|
5594
5594
|
}
|
|
5595
|
-
function
|
|
5595
|
+
function Ml(e) {
|
|
5596
5596
|
if (e === void 0)
|
|
5597
5597
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5598
5598
|
return e;
|
|
@@ -5607,12 +5607,12 @@ function Zr() {
|
|
|
5607
5607
|
return !!e;
|
|
5608
5608
|
})();
|
|
5609
5609
|
}
|
|
5610
|
-
function
|
|
5611
|
-
return
|
|
5610
|
+
function ze(e) {
|
|
5611
|
+
return ze = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
5612
5612
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
5613
|
-
},
|
|
5613
|
+
}, ze(e);
|
|
5614
5614
|
}
|
|
5615
|
-
function
|
|
5615
|
+
function Dl(e, t) {
|
|
5616
5616
|
if (typeof t != "function" && t !== null)
|
|
5617
5617
|
throw new TypeError("Super expression must either be null or a function");
|
|
5618
5618
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Rt(e, t);
|
|
@@ -5626,10 +5626,10 @@ function z(e, t, n) {
|
|
|
5626
5626
|
return t = Xr(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
5627
5627
|
}
|
|
5628
5628
|
function Xr(e) {
|
|
5629
|
-
var t =
|
|
5629
|
+
var t = Ll(e, "string");
|
|
5630
5630
|
return be(t) == "symbol" ? t : t + "";
|
|
5631
5631
|
}
|
|
5632
|
-
function
|
|
5632
|
+
function Ll(e, t) {
|
|
5633
5633
|
if (be(e) != "object" || !e) return e;
|
|
5634
5634
|
var n = e[Symbol.toPrimitive];
|
|
5635
5635
|
if (n !== void 0) {
|
|
@@ -5639,16 +5639,16 @@ function Dl(e, t) {
|
|
|
5639
5639
|
}
|
|
5640
5640
|
return (t === "string" ? String : Number)(e);
|
|
5641
5641
|
}
|
|
5642
|
-
var
|
|
5642
|
+
var jl = /* @__PURE__ */ (function(e) {
|
|
5643
5643
|
function t(n) {
|
|
5644
5644
|
var r;
|
|
5645
|
-
|
|
5646
|
-
|
|
5645
|
+
wl(this, t), r = xl(this, t, [n]), z(r, "setInputRef", function(y) {
|
|
5646
|
+
fl([r.props.inputRef, r.inputRef], y);
|
|
5647
5647
|
}), z(r, "isCountrySupportedWithError", function(y) {
|
|
5648
5648
|
var P = r.props.metadata;
|
|
5649
|
-
return
|
|
5649
|
+
return it(y, P);
|
|
5650
5650
|
}), z(r, "onCountryChange", function(y) {
|
|
5651
|
-
var P = r.props, O = P.international, S = P.metadata, I = P.onChange, h = P.focusInputOnCountrySelection, b = r.state, A = b.phoneDigits, F = b.country, G =
|
|
5651
|
+
var P = r.props, O = P.international, S = P.metadata, I = P.onChange, h = P.focusInputOnCountrySelection, b = r.state, A = b.phoneDigits, F = b.country, G = ml(A, {
|
|
5652
5652
|
prevCountry: F,
|
|
5653
5653
|
newCountry: y,
|
|
5654
5654
|
metadata: S,
|
|
@@ -5666,7 +5666,7 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5666
5666
|
I(U);
|
|
5667
5667
|
});
|
|
5668
5668
|
}), z(r, "onChange", function(y) {
|
|
5669
|
-
var P = r.props, O = P.defaultCountry, S = P.onChange, I = P.addInternationalOption, h = P.international, b = P.limitMaxLength, A = P.countryCallingCodeEditable, F = P.metadata, G = r.state, U = G.countries, W = G.phoneDigits, K = G.country, q = G.latestCountrySelectedByUser, te =
|
|
5669
|
+
var P = r.props, O = P.defaultCountry, S = P.onChange, I = P.addInternationalOption, h = P.international, b = P.limitMaxLength, A = P.countryCallingCodeEditable, F = P.metadata, G = r.state, U = G.countries, W = G.phoneDigits, K = G.country, q = G.latestCountrySelectedByUser, te = bl(y, {
|
|
5670
5670
|
prevPhoneDigits: W,
|
|
5671
5671
|
country: K,
|
|
5672
5672
|
countryRequired: !I,
|
|
@@ -5733,7 +5733,7 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5733
5733
|
c && (r.isCountrySupportedWithError(c) || (c = void 0)), a && kr(a), $ = Gr($, s);
|
|
5734
5734
|
var g = Hr(a, s);
|
|
5735
5735
|
r.CountryIcon = Br(r.props);
|
|
5736
|
-
var v =
|
|
5736
|
+
var v = pl({
|
|
5737
5737
|
value: a,
|
|
5738
5738
|
phoneNumber: g,
|
|
5739
5739
|
defaultCountry: c,
|
|
@@ -5786,7 +5786,7 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5786
5786
|
value: a
|
|
5787
5787
|
}, r;
|
|
5788
5788
|
}
|
|
5789
|
-
return
|
|
5789
|
+
return Dl(t, e), Rl(t, [{
|
|
5790
5790
|
key: "componentDidMount",
|
|
5791
5791
|
value: function() {
|
|
5792
5792
|
var r = this.props.onCountryChange, i = this.props.defaultCountry, a = this.state.country;
|
|
@@ -5803,19 +5803,19 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5803
5803
|
value: function(r) {
|
|
5804
5804
|
var i = r.countries, a = this.props, o = a.international, d = a.countryCallingCodeEditable, u = a.countryOptionsOrder, l = a.addInternationalOption, s = a.labels, f = a.locales, c = a.metadata;
|
|
5805
5805
|
return this.useMemoCountrySelectOptions(function() {
|
|
5806
|
-
return
|
|
5806
|
+
return al(yl({
|
|
5807
5807
|
countries: i || Yn(c),
|
|
5808
5808
|
countryNames: s,
|
|
5809
5809
|
addInternationalOption: o && d === !1 ? !1 : l,
|
|
5810
5810
|
compareStringsLocales: f
|
|
5811
5811
|
// compareStrings
|
|
5812
|
-
}),
|
|
5812
|
+
}), ol(u, c));
|
|
5813
5813
|
}, [i, u, l, s, c]);
|
|
5814
5814
|
}
|
|
5815
5815
|
}, {
|
|
5816
5816
|
key: "useMemoCountrySelectOptions",
|
|
5817
5817
|
value: function(r, i) {
|
|
5818
|
-
return (!this.countrySelectOptionsMemoDependencies || !
|
|
5818
|
+
return (!this.countrySelectOptionsMemoDependencies || !Gl(i, this.countrySelectOptionsMemoDependencies)) && (this.countrySelectOptionsMemo = r(), this.countrySelectOptionsMemoDependencies = i), this.countrySelectOptionsMemo;
|
|
5819
5819
|
}
|
|
5820
5820
|
}, {
|
|
5821
5821
|
key: "getFirstSupportedCountry",
|
|
@@ -5836,12 +5836,12 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5836
5836
|
r.flags, r.flagComponent, r.flagUrl, r.addInternationalOption, r.internationalIcon, r.displayInitialValueAsLocalNumber, r.initialValueFormat, r.onCountryChange, r.limitMaxLength, r.countryCallingCodeEditable, r.focusInputOnCountrySelection, r.reset;
|
|
5837
5837
|
var O = r.metadata, S = r.international;
|
|
5838
5838
|
r.locales;
|
|
5839
|
-
var I =
|
|
5839
|
+
var I = Al(r, Il), h = this.state, b = h.country, A = h.countries, F = h.phoneDigits, G = h.isFocused, U = c ? Fu : ku, W = this.getCountrySelectOptions({
|
|
5840
5840
|
countries: A
|
|
5841
5841
|
});
|
|
5842
5842
|
return /* @__PURE__ */ E.createElement(v, ge({
|
|
5843
5843
|
style: u,
|
|
5844
|
-
className:
|
|
5844
|
+
className: Ke(l, "PhoneInput", {
|
|
5845
5845
|
"PhoneInput--focus": G,
|
|
5846
5846
|
"PhoneInput--disabled": a,
|
|
5847
5847
|
"PhoneInput--readOnly": o
|
|
@@ -5876,7 +5876,7 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5876
5876
|
disabled: a,
|
|
5877
5877
|
readOnly: o,
|
|
5878
5878
|
inputComponent: s,
|
|
5879
|
-
className:
|
|
5879
|
+
className: Ke("PhoneInputInput", f && f.className, I.className)
|
|
5880
5880
|
})));
|
|
5881
5881
|
}
|
|
5882
5882
|
}], [{
|
|
@@ -5891,12 +5891,12 @@ var Ll = /* @__PURE__ */ (function(e) {
|
|
|
5891
5891
|
return qr({
|
|
5892
5892
|
// Emulate `prevProps` via `state.props`.
|
|
5893
5893
|
props: r
|
|
5894
|
-
},
|
|
5894
|
+
}, Tl(r, i.props, i));
|
|
5895
5895
|
}
|
|
5896
5896
|
)
|
|
5897
5897
|
}]);
|
|
5898
5898
|
})(E.PureComponent), Jr = /* @__PURE__ */ E.forwardRef(function(e, t) {
|
|
5899
|
-
return /* @__PURE__ */ E.createElement(
|
|
5899
|
+
return /* @__PURE__ */ E.createElement(jl, ge({}, kl(e), {
|
|
5900
5900
|
inputRef: t
|
|
5901
5901
|
}));
|
|
5902
5902
|
});
|
|
@@ -6255,7 +6255,7 @@ var ir = {
|
|
|
6255
6255
|
/**
|
|
6256
6256
|
* Default "International" country `<select/>` option icon.
|
|
6257
6257
|
*/
|
|
6258
|
-
internationalIcon:
|
|
6258
|
+
internationalIcon: rt,
|
|
6259
6259
|
/**
|
|
6260
6260
|
* Phone number `<input/>` component.
|
|
6261
6261
|
*/
|
|
@@ -6307,13 +6307,13 @@ var ir = {
|
|
|
6307
6307
|
*/
|
|
6308
6308
|
focusInputOnCountrySelection: !0
|
|
6309
6309
|
};
|
|
6310
|
-
function
|
|
6310
|
+
function kl(e) {
|
|
6311
6311
|
e = qr({}, e);
|
|
6312
6312
|
for (var t in ir)
|
|
6313
6313
|
e[t] === void 0 && (e[t] = ir[t]);
|
|
6314
6314
|
return e;
|
|
6315
6315
|
}
|
|
6316
|
-
function
|
|
6316
|
+
function Gl(e, t) {
|
|
6317
6317
|
if (e.length !== t.length)
|
|
6318
6318
|
return !1;
|
|
6319
6319
|
for (var n = 0; n < e.length; ) {
|
|
@@ -6323,7 +6323,7 @@ function kl(e, t) {
|
|
|
6323
6323
|
}
|
|
6324
6324
|
return !0;
|
|
6325
6325
|
}
|
|
6326
|
-
const
|
|
6326
|
+
const Bl = {
|
|
6327
6327
|
ext: "ext.",
|
|
6328
6328
|
country: "Phone number country",
|
|
6329
6329
|
phone: "Phone",
|
|
@@ -6583,7 +6583,7 @@ const Gl = {
|
|
|
6583
6583
|
ZW: "Zimbabwe",
|
|
6584
6584
|
ZZ: "International"
|
|
6585
6585
|
};
|
|
6586
|
-
var
|
|
6586
|
+
var Ul = ["metadata", "labels"];
|
|
6587
6587
|
function xt() {
|
|
6588
6588
|
return xt = Object.assign ? Object.assign.bind() : function(e) {
|
|
6589
6589
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -6594,9 +6594,9 @@ function xt() {
|
|
|
6594
6594
|
return e;
|
|
6595
6595
|
}, xt.apply(this, arguments);
|
|
6596
6596
|
}
|
|
6597
|
-
function
|
|
6597
|
+
function Wl(e, t) {
|
|
6598
6598
|
if (e == null) return {};
|
|
6599
|
-
var n =
|
|
6599
|
+
var n = Hl(e, t), r, i;
|
|
6600
6600
|
if (Object.getOwnPropertySymbols) {
|
|
6601
6601
|
var a = Object.getOwnPropertySymbols(e);
|
|
6602
6602
|
for (i = 0; i < a.length; i++)
|
|
@@ -6604,7 +6604,7 @@ function Ul(e, t) {
|
|
|
6604
6604
|
}
|
|
6605
6605
|
return n;
|
|
6606
6606
|
}
|
|
6607
|
-
function
|
|
6607
|
+
function Hl(e, t) {
|
|
6608
6608
|
if (e == null) return {};
|
|
6609
6609
|
var n = {}, r = Object.keys(e), i, a;
|
|
6610
6610
|
for (a = 0; a < r.length; a++)
|
|
@@ -6613,7 +6613,7 @@ function Wl(e, t) {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
function zr(e) {
|
|
6615
6615
|
var t = /* @__PURE__ */ E.forwardRef(function(n, r) {
|
|
6616
|
-
var i = n.metadata, a = i === void 0 ? e : i, o = n.labels, d = o === void 0 ?
|
|
6616
|
+
var i = n.metadata, a = i === void 0 ? e : i, o = n.labels, d = o === void 0 ? Bl : o, u = Wl(n, Ul);
|
|
6617
6617
|
return /* @__PURE__ */ E.createElement(Jr, xt({}, u, {
|
|
6618
6618
|
ref: r,
|
|
6619
6619
|
metadata: a,
|
|
@@ -6626,16 +6626,16 @@ function zr(e) {
|
|
|
6626
6626
|
}, t;
|
|
6627
6627
|
}
|
|
6628
6628
|
zr();
|
|
6629
|
-
function
|
|
6629
|
+
function Vl(e, t) {
|
|
6630
6630
|
var n = Array.prototype.slice.call(t);
|
|
6631
6631
|
return n.push(lr), e.apply(this, n);
|
|
6632
6632
|
}
|
|
6633
6633
|
zr(lr);
|
|
6634
|
-
function
|
|
6635
|
-
return
|
|
6634
|
+
function Kl() {
|
|
6635
|
+
return Vl(Ar, arguments);
|
|
6636
6636
|
}
|
|
6637
6637
|
const Ht = "doct-auth-last-login";
|
|
6638
|
-
function
|
|
6638
|
+
function Yl() {
|
|
6639
6639
|
if (typeof window > "u") return null;
|
|
6640
6640
|
try {
|
|
6641
6641
|
const e = window.localStorage.getItem(Ht);
|
|
@@ -6647,14 +6647,14 @@ function Kl() {
|
|
|
6647
6647
|
}
|
|
6648
6648
|
return null;
|
|
6649
6649
|
}
|
|
6650
|
-
function
|
|
6650
|
+
function ql(e) {
|
|
6651
6651
|
if (!(typeof window > "u"))
|
|
6652
6652
|
try {
|
|
6653
6653
|
window.localStorage.setItem(Ht, JSON.stringify(e));
|
|
6654
6654
|
} catch {
|
|
6655
6655
|
}
|
|
6656
6656
|
}
|
|
6657
|
-
function
|
|
6657
|
+
function Zl() {
|
|
6658
6658
|
if (!(typeof window > "u"))
|
|
6659
6659
|
try {
|
|
6660
6660
|
window.localStorage.removeItem(Ht);
|
|
@@ -6662,7 +6662,7 @@ function ql() {
|
|
|
6662
6662
|
}
|
|
6663
6663
|
}
|
|
6664
6664
|
const Be = "doct-sso-token", Ue = "doct-sso-expires";
|
|
6665
|
-
function
|
|
6665
|
+
function Xl() {
|
|
6666
6666
|
return {
|
|
6667
6667
|
get() {
|
|
6668
6668
|
if (typeof window > "u") return null;
|
|
@@ -6689,7 +6689,7 @@ function Zl() {
|
|
|
6689
6689
|
}
|
|
6690
6690
|
};
|
|
6691
6691
|
}
|
|
6692
|
-
function
|
|
6692
|
+
function $1() {
|
|
6693
6693
|
return {
|
|
6694
6694
|
get() {
|
|
6695
6695
|
return null;
|
|
@@ -6700,7 +6700,7 @@ function f1() {
|
|
|
6700
6700
|
}
|
|
6701
6701
|
};
|
|
6702
6702
|
}
|
|
6703
|
-
function
|
|
6703
|
+
function p1(e, t) {
|
|
6704
6704
|
e.defaults.withCredentials = !0, e.interceptors.request.use((n) => {
|
|
6705
6705
|
const r = {
|
|
6706
6706
|
...n
|
|
@@ -6708,7 +6708,7 @@ function $1(e, t) {
|
|
|
6708
6708
|
return r.withCredentials = !0, r;
|
|
6709
6709
|
}), e.interceptors.response.use((n) => n, (n) => ((typeof n == "object" && n !== null && "response" in n && typeof n.response?.status == "number" ? n.response.status : void 0) === 401 && t && t(), Promise.reject(n)));
|
|
6710
6710
|
}
|
|
6711
|
-
const
|
|
6711
|
+
const Jl = "CHECKING_SESSION";
|
|
6712
6712
|
function Pe(e, t = "INDIAN") {
|
|
6713
6713
|
return {
|
|
6714
6714
|
step: e,
|
|
@@ -6725,10 +6725,10 @@ function Pe(e, t = "INDIAN") {
|
|
|
6725
6725
|
pendingEmail: ""
|
|
6726
6726
|
};
|
|
6727
6727
|
}
|
|
6728
|
-
function
|
|
6729
|
-
return Pe(
|
|
6728
|
+
function zl() {
|
|
6729
|
+
return Pe(Jl);
|
|
6730
6730
|
}
|
|
6731
|
-
function
|
|
6731
|
+
function Ql(e, t) {
|
|
6732
6732
|
switch (t.type) {
|
|
6733
6733
|
case "SET_SESSION":
|
|
6734
6734
|
return {
|
|
@@ -6828,7 +6828,7 @@ function zl(e, t) {
|
|
|
6828
6828
|
return e;
|
|
6829
6829
|
}
|
|
6830
6830
|
}
|
|
6831
|
-
function
|
|
6831
|
+
function e1(e) {
|
|
6832
6832
|
switch (e) {
|
|
6833
6833
|
case "email":
|
|
6834
6834
|
return "Email";
|
|
@@ -6840,26 +6840,28 @@ function Ql(e) {
|
|
|
6840
6840
|
return "Mobile";
|
|
6841
6841
|
}
|
|
6842
6842
|
}
|
|
6843
|
-
function
|
|
6843
|
+
function t1({
|
|
6844
6844
|
config: e,
|
|
6845
6845
|
children: t
|
|
6846
6846
|
}) {
|
|
6847
6847
|
const n = se(e);
|
|
6848
6848
|
n.current = e;
|
|
6849
|
-
const r = e.tokenStorage ??
|
|
6850
|
-
r.set(l.accessToken, l.expiresAt),
|
|
6849
|
+
const r = e.tokenStorage ?? Xl(), [i, a] = ci(Ql, zl()), o = ue((l) => {
|
|
6850
|
+
r.set(l.accessToken, l.expiresAt), ql({
|
|
6851
6851
|
method: l.authMethod,
|
|
6852
6852
|
maskedIdentifier: l.authMethod === "phone" ? l.user.phone ?? "***" : l.user.email ?? "***",
|
|
6853
6853
|
timestamp: Date.now()
|
|
6854
6854
|
}), n.current.onAuthSuccess(l);
|
|
6855
6855
|
}, [r]);
|
|
6856
|
-
|
|
6856
|
+
He(() => {
|
|
6857
|
+
i.step === "AUTHENTICATED" && di();
|
|
6858
|
+
}, [i.step]), He(() => {
|
|
6857
6859
|
if (i.step !== "CHECKING_SESSION") return;
|
|
6858
6860
|
const l = n.current.apiAdapter, s = r.get(), f = () => {
|
|
6859
|
-
const c =
|
|
6861
|
+
const c = Yl();
|
|
6860
6862
|
a(c ? {
|
|
6861
6863
|
type: "SET_STEP_REPEAT_LOGIN",
|
|
6862
|
-
lastMethod:
|
|
6864
|
+
lastMethod: e1(c.method),
|
|
6863
6865
|
maskedIdentifier: c.maskedIdentifier
|
|
6864
6866
|
} : {
|
|
6865
6867
|
type: "SET_STEP_METHOD_SELECT"
|
|
@@ -6894,7 +6896,7 @@ function e1({
|
|
|
6894
6896
|
});
|
|
6895
6897
|
});
|
|
6896
6898
|
}, [i.step, r]);
|
|
6897
|
-
const d =
|
|
6899
|
+
const d = Ve(() => {
|
|
6898
6900
|
const l = () => n.current.apiAdapter, s = (f) => n.current.onAuthError?.(f);
|
|
6899
6901
|
return {
|
|
6900
6902
|
selectMethod(f) {
|
|
@@ -6909,7 +6911,7 @@ function e1({
|
|
|
6909
6911
|
submitIdentifier(f) {
|
|
6910
6912
|
const c = f.phone != null ? "phone" : "email", $ = c === "phone" ? qt(f.phone, f.countryCode) : (f.email ?? "").trim();
|
|
6911
6913
|
if (c === "phone" && $) {
|
|
6912
|
-
const v =
|
|
6914
|
+
const v = Kl($)?.country;
|
|
6913
6915
|
if ((v && v !== "IN" ? "FOREIGN" : "INDIAN") === "FOREIGN") {
|
|
6914
6916
|
const P = $.length > 4 ? `+** ***${$.replaceAll(/\D/g, "").slice(-4)}` : "+** ***", O = l().checkIdentifier;
|
|
6915
6917
|
if (O) {
|
|
@@ -7017,7 +7019,7 @@ function e1({
|
|
|
7017
7019
|
if (i.userType === "FOREIGN") {
|
|
7018
7020
|
const c = (f.email ?? "").trim(), $ = qt(f.phone, f.countryCode);
|
|
7019
7021
|
if ($) {
|
|
7020
|
-
const g = i.pendingEmail || i.identifierValue || "";
|
|
7022
|
+
const g = c || i.pendingEmail || (i.identifierType === "email" ? i.identifierValue : "") || "";
|
|
7021
7023
|
if (!g) {
|
|
7022
7024
|
s({
|
|
7023
7025
|
code: "UNKNOWN",
|
|
@@ -7220,7 +7222,7 @@ function e1({
|
|
|
7220
7222
|
},
|
|
7221
7223
|
signOut() {
|
|
7222
7224
|
l().logout?.().catch(() => {
|
|
7223
|
-
}), r.remove(),
|
|
7225
|
+
}), r.remove(), Zl(), n.current.onSignOut?.(), a({
|
|
7224
7226
|
type: "SIGN_OUT"
|
|
7225
7227
|
});
|
|
7226
7228
|
},
|
|
@@ -7237,7 +7239,7 @@ function e1({
|
|
|
7237
7239
|
});
|
|
7238
7240
|
}
|
|
7239
7241
|
};
|
|
7240
|
-
}, [i.identifierType, i.identifierValue, i.step, i.lastMethod, i.userType, i.pendingFullName, i.pendingEmail, i.pendingPhone, o]), u =
|
|
7242
|
+
}, [i.identifierType, i.identifierValue, i.step, i.lastMethod, i.userType, i.pendingFullName, i.pendingEmail, i.pendingPhone, o]), u = Ve(() => ({
|
|
7241
7243
|
state: i,
|
|
7242
7244
|
actions: d,
|
|
7243
7245
|
session: i.step === "AUTHENTICATED" ? i.session : null,
|
|
@@ -7246,72 +7248,73 @@ function e1({
|
|
|
7246
7248
|
}), [i, d, e.providers]);
|
|
7247
7249
|
return /* @__PURE__ */ V(Mt.Provider, { value: u, children: t });
|
|
7248
7250
|
}
|
|
7249
|
-
function
|
|
7251
|
+
function n1() {
|
|
7250
7252
|
const e = fe.c(1);
|
|
7251
7253
|
let t;
|
|
7252
|
-
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ V(
|
|
7254
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ V(bi, {}), e[0] = t) : t = e[0], t;
|
|
7253
7255
|
}
|
|
7254
|
-
function
|
|
7256
|
+
function r1(e) {
|
|
7255
7257
|
const t = fe.c(2);
|
|
7256
7258
|
let n;
|
|
7257
|
-
return t[0] !== e ? (n = /* @__PURE__ */ V(dr.Preset, { preset: "signup", children: /* @__PURE__ */ V(
|
|
7259
|
+
return t[0] !== e ? (n = /* @__PURE__ */ V(dr.Preset, { preset: "signup", children: /* @__PURE__ */ V(li, { ...e }) }), t[0] = e, t[1] = n) : n = t[1], n;
|
|
7258
7260
|
}
|
|
7259
|
-
function
|
|
7261
|
+
function i1(e) {
|
|
7260
7262
|
const t = fe.c(2);
|
|
7261
7263
|
let n;
|
|
7262
|
-
return t[0] !== e ? (n = /* @__PURE__ */ V(dr.Preset, { preset: "verification", children: /* @__PURE__ */ V(
|
|
7264
|
+
return t[0] !== e ? (n = /* @__PURE__ */ V(dr.Preset, { preset: "verification", children: /* @__PURE__ */ V(ui, { ...e }) }), t[0] = e, t[1] = n) : n = t[1], n;
|
|
7263
7265
|
}
|
|
7264
|
-
const
|
|
7265
|
-
Provider:
|
|
7266
|
-
Login:
|
|
7267
|
-
Signup:
|
|
7268
|
-
Otp:
|
|
7266
|
+
const y1 = {
|
|
7267
|
+
Provider: t1,
|
|
7268
|
+
Login: n1,
|
|
7269
|
+
Signup: r1,
|
|
7270
|
+
Otp: i1
|
|
7269
7271
|
};
|
|
7270
7272
|
export {
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
+
y1 as Auth,
|
|
7274
|
+
bi as AuthFlow,
|
|
7273
7275
|
Mt as AuthFlowContext,
|
|
7274
7276
|
dr as AuthLayout,
|
|
7275
|
-
|
|
7277
|
+
hi as AuthLayoutPreset,
|
|
7276
7278
|
Qr as AuthLayoutWrapper,
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7279
|
+
g1 as BackButton,
|
|
7280
|
+
v1 as DEFAULT_OTP_TITLES,
|
|
7281
|
+
b1 as DefaultFooter,
|
|
7282
|
+
C1 as EnterpriseHeader,
|
|
7283
|
+
Jl as INITIAL_STEP,
|
|
7284
|
+
P1 as ImageSlider,
|
|
7285
|
+
N1 as LoginEntry,
|
|
7284
7286
|
Yt as LoginEntryPage,
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
+
S1 as MainLayout,
|
|
7288
|
+
E1 as MainLogin,
|
|
7287
7289
|
oi as MainLoginPage,
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
+
O1 as OTP_LENGTH,
|
|
7291
|
+
ui as OtpVerification,
|
|
7290
7292
|
ai as OtpVerificationPage,
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7293
|
+
T1 as RESEND_COOLDOWN_EMAIL_SECONDS,
|
|
7294
|
+
I1 as RESEND_COOLDOWN_PHONE_SECONDS,
|
|
7295
|
+
A1 as RepeatLogin,
|
|
7294
7296
|
ri as RepeatLoginPage,
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
+
t1 as SSOAuthProvider,
|
|
7298
|
+
li as Signup,
|
|
7297
7299
|
ii as SignupPage,
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7300
|
+
Ql as authFlowReducer,
|
|
7301
|
+
Zl as clearRepeatLoginInfo,
|
|
7302
|
+
p1 as createAxiosAuthInterceptors,
|
|
7303
|
+
c1 as createHttpAuthAdapter,
|
|
7304
|
+
zl as getInitialAuthFlowState,
|
|
7305
|
+
Yl as getRepeatLoginInfo,
|
|
7306
|
+
Xl as localStorageTokenStorage,
|
|
7307
|
+
$1 as serverCookieTokenStorage,
|
|
7308
|
+
ql as setRepeatLoginInfo,
|
|
7307
7309
|
ni as useAppleSignIn,
|
|
7308
7310
|
ur as useAuthFlow,
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
+
vi as useAuthFlowRouterSync,
|
|
7312
|
+
f1 as useAuthSession,
|
|
7313
|
+
_1 as useFormStatePersistence,
|
|
7311
7314
|
ti as useGoogleAuth,
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7315
|
+
w1 as useLoginEntryForm,
|
|
7316
|
+
R1 as useMainAuthPageHandlers,
|
|
7317
|
+
x1 as useOtpVerification,
|
|
7318
|
+
F1 as useRepeatLogin,
|
|
7319
|
+
M1 as useSignupForm
|
|
7317
7320
|
};
|