doct-ui-auth-kit 1.0.21 → 1.0.23
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/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as H, Fragment as
|
|
3
|
-
import { g as fe, A as ii, h as ai, u as oi, i as di, e as ui, L as li, f as si, d as ci, c as fi, b as
|
|
4
|
-
import { B as A1, D as _1, l as w1, E as R1, I as x1, a as F1, m as M1, M as L1, n as D1, o as k1, p as j1, R as G1, q as U1, r as B1, s as W1, t as H1, v as V1, w as K1 } from "./signup-page-
|
|
5
|
-
import
|
|
6
|
-
import { DoctCircularProgress as
|
|
2
|
+
import { jsx as H, Fragment as Xt } from "react/jsx-runtime";
|
|
3
|
+
import { g as fe, A as ii, h as ai, u as oi, i as di, e as ui, L as li, f as si, d as ci, c as fi, b as Jt, j as $i, k as at, O as pi, S as yi } from "./signup-page-26HKuY80.js";
|
|
4
|
+
import { B as A1, D as _1, l as w1, E as R1, I as x1, a as F1, m as M1, M as L1, n as D1, o as k1, p as j1, R as G1, q as U1, r as B1, s as W1, t as H1, v as V1, w as K1 } from "./signup-page-26HKuY80.js";
|
|
5
|
+
import O, { createContext as hi, useContext as ur, useRef as se, useEffect as Ee, useCallback as ue, useMemo as Ve, useReducer as gi } from "react";
|
|
6
|
+
import { DoctCircularProgress as mi } from "docthub-core-components";
|
|
7
7
|
import "react-icons/md";
|
|
8
8
|
import "react-hook-form";
|
|
9
|
-
function
|
|
9
|
+
function Lt(e) {
|
|
10
10
|
return e.replace(/\/+$/, "");
|
|
11
11
|
}
|
|
12
12
|
async function de(e, t, n, r = !1) {
|
|
13
|
-
const i = `${
|
|
13
|
+
const i = `${Lt(e)}${t}`, a = await fetch(i, {
|
|
14
14
|
method: "POST",
|
|
15
15
|
headers: {
|
|
16
16
|
"Content-Type": "application/json"
|
|
@@ -28,7 +28,7 @@ async function de(e, t, n, r = !1) {
|
|
|
28
28
|
return a.json();
|
|
29
29
|
}
|
|
30
30
|
async function vi(e, t) {
|
|
31
|
-
const n = `${
|
|
31
|
+
const n = `${Lt(e)}${t}`, r = await fetch(n, {
|
|
32
32
|
method: "GET",
|
|
33
33
|
credentials: "include"
|
|
34
34
|
});
|
|
@@ -39,7 +39,7 @@ async function vi(e, t) {
|
|
|
39
39
|
return r.json();
|
|
40
40
|
}
|
|
41
41
|
function P1(e) {
|
|
42
|
-
const t =
|
|
42
|
+
const t = Lt(e), r = `${t.endsWith("/api") ? t : `${t}/api`}/auth`;
|
|
43
43
|
return {
|
|
44
44
|
async sendOtp(i) {
|
|
45
45
|
return de(r, "/send-otp", i);
|
|
@@ -117,15 +117,15 @@ function Pi(e) {
|
|
|
117
117
|
className: c
|
|
118
118
|
} = e;
|
|
119
119
|
if (n === "") {
|
|
120
|
-
let
|
|
121
|
-
return t[0] !== r ? (
|
|
120
|
+
let m;
|
|
121
|
+
return t[0] !== r ? (m = /* @__PURE__ */ H(Xt, { children: r }), t[0] = r, t[1] = m) : m = t[1], m;
|
|
122
122
|
}
|
|
123
|
-
let
|
|
124
|
-
t[2] !== n ? (
|
|
125
|
-
const s =
|
|
123
|
+
let p;
|
|
124
|
+
t[2] !== n ? (p = Ci(n), t[2] = n, t[3] = p) : p = t[3];
|
|
125
|
+
const s = p;
|
|
126
126
|
if (!s) {
|
|
127
|
-
let
|
|
128
|
-
return t[4] !== r ? (
|
|
127
|
+
let m;
|
|
128
|
+
return t[4] !== r ? (m = /* @__PURE__ */ H(Xt, { children: r }), t[4] = r, t[5] = m) : m = t[5], m;
|
|
129
129
|
}
|
|
130
130
|
let f;
|
|
131
131
|
t[6] !== c ? (f = c != null && {
|
|
@@ -137,7 +137,7 @@ function Pi(e) {
|
|
|
137
137
|
const sr = {
|
|
138
138
|
...ai,
|
|
139
139
|
Preset: Pi
|
|
140
|
-
},
|
|
140
|
+
}, Ei = "CHECKING_SESSION";
|
|
141
141
|
function he(e, t = "INDIAN") {
|
|
142
142
|
return {
|
|
143
143
|
step: e,
|
|
@@ -155,8 +155,8 @@ function he(e, t = "INDIAN") {
|
|
|
155
155
|
linkOrMerge: null
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
return he(
|
|
158
|
+
function Ni() {
|
|
159
|
+
return he(Ei);
|
|
160
160
|
}
|
|
161
161
|
function Si(e, t) {
|
|
162
162
|
switch (t.type) {
|
|
@@ -232,15 +232,35 @@ function Si(e, t) {
|
|
|
232
232
|
step: "LINK_OR_MERGE",
|
|
233
233
|
lastStep: e.step,
|
|
234
234
|
linkOrMerge: t.conflictField === "email" ? {
|
|
235
|
+
stage: t.stage ?? "summary",
|
|
235
236
|
conflictField: "email",
|
|
236
237
|
name: t.name,
|
|
238
|
+
...t.existingEmail && {
|
|
239
|
+
existingEmail: t.existingEmail
|
|
240
|
+
},
|
|
241
|
+
...t.existingCountryCode && {
|
|
242
|
+
existingCountryCode: t.existingCountryCode
|
|
243
|
+
},
|
|
244
|
+
...t.existingPhone && {
|
|
245
|
+
existingPhone: t.existingPhone
|
|
246
|
+
},
|
|
237
247
|
...t.oldEmail && {
|
|
238
248
|
oldEmail: t.oldEmail
|
|
239
249
|
},
|
|
240
250
|
newEmail: t.newEmail
|
|
241
251
|
} : {
|
|
252
|
+
stage: t.stage ?? "summary",
|
|
242
253
|
conflictField: "phone",
|
|
243
254
|
name: t.name,
|
|
255
|
+
...t.existingEmail && {
|
|
256
|
+
existingEmail: t.existingEmail
|
|
257
|
+
},
|
|
258
|
+
...t.existingCountryCode && {
|
|
259
|
+
existingCountryCode: t.existingCountryCode
|
|
260
|
+
},
|
|
261
|
+
...t.existingPhone && {
|
|
262
|
+
existingPhone: t.existingPhone
|
|
263
|
+
},
|
|
244
264
|
...t.oldCountryCode && {
|
|
245
265
|
oldCountryCode: t.oldCountryCode
|
|
246
266
|
},
|
|
@@ -251,6 +271,14 @@ function Si(e, t) {
|
|
|
251
271
|
newPhone: t.newPhone
|
|
252
272
|
}
|
|
253
273
|
};
|
|
274
|
+
case "SET_LINK_OR_MERGE_VERIFICATION_STAGE":
|
|
275
|
+
return {
|
|
276
|
+
...e,
|
|
277
|
+
linkOrMerge: e.linkOrMerge ? {
|
|
278
|
+
...e.linkOrMerge,
|
|
279
|
+
stage: "verification"
|
|
280
|
+
} : null
|
|
281
|
+
};
|
|
254
282
|
case "SET_STEP_PROVIDER_PENDING":
|
|
255
283
|
return {
|
|
256
284
|
...e,
|
|
@@ -264,7 +292,13 @@ function Si(e, t) {
|
|
|
264
292
|
session: t.session
|
|
265
293
|
};
|
|
266
294
|
case "GO_BACK":
|
|
267
|
-
return {
|
|
295
|
+
return e.step === "LINK_OR_MERGE" && e.linkOrMerge?.stage === "verification" ? {
|
|
296
|
+
...e,
|
|
297
|
+
linkOrMerge: {
|
|
298
|
+
...e.linkOrMerge,
|
|
299
|
+
stage: "summary"
|
|
300
|
+
}
|
|
301
|
+
} : {
|
|
268
302
|
...e,
|
|
269
303
|
step: e.lastStep,
|
|
270
304
|
lastStep: e.step === "METHOD_SELECT" ? "METHOD_SELECT" : e.lastStep
|
|
@@ -285,8 +319,8 @@ function Si(e, t) {
|
|
|
285
319
|
return e;
|
|
286
320
|
}
|
|
287
321
|
}
|
|
288
|
-
const
|
|
289
|
-
function
|
|
322
|
+
const Dt = "doct-auth-kit:flow-state", Oi = /* @__PURE__ */ new Set(["CHECKING_SESSION", "METHOD_SELECT", "PHONE_ENTRY", "EMAIL_ENTRY", "OTP_VERIFICATION", "SIGNUP_DETAILS", "REPEAT_LOGIN", "PROVIDER_PENDING", "AUTHENTICATED"]);
|
|
323
|
+
function kt() {
|
|
290
324
|
if (typeof window > "u") return null;
|
|
291
325
|
try {
|
|
292
326
|
return window.sessionStorage;
|
|
@@ -294,19 +328,19 @@ function Dt() {
|
|
|
294
328
|
return null;
|
|
295
329
|
}
|
|
296
330
|
}
|
|
297
|
-
function
|
|
331
|
+
function Ti(e) {
|
|
298
332
|
if (!e || typeof e != "object") return !1;
|
|
299
333
|
const t = e.step;
|
|
300
|
-
return typeof t == "string" &&
|
|
334
|
+
return typeof t == "string" && Oi.has(t);
|
|
301
335
|
}
|
|
302
336
|
function Ii() {
|
|
303
|
-
const e =
|
|
337
|
+
const e = kt();
|
|
304
338
|
if (!e) return null;
|
|
305
339
|
try {
|
|
306
|
-
const t = e.getItem(
|
|
340
|
+
const t = e.getItem(Dt);
|
|
307
341
|
if (!t) return null;
|
|
308
342
|
const n = JSON.parse(t);
|
|
309
|
-
return
|
|
343
|
+
return Ti(n) ? {
|
|
310
344
|
...he(n.step),
|
|
311
345
|
...n
|
|
312
346
|
} : null;
|
|
@@ -315,30 +349,30 @@ function Ii() {
|
|
|
315
349
|
}
|
|
316
350
|
}
|
|
317
351
|
function Ai(e) {
|
|
318
|
-
const t =
|
|
352
|
+
const t = kt();
|
|
319
353
|
if (t)
|
|
320
354
|
try {
|
|
321
|
-
t.setItem(
|
|
355
|
+
t.setItem(Dt, JSON.stringify(e));
|
|
322
356
|
} catch {
|
|
323
357
|
}
|
|
324
358
|
}
|
|
325
359
|
function _i() {
|
|
326
|
-
const e =
|
|
360
|
+
const e = kt();
|
|
327
361
|
if (e)
|
|
328
362
|
try {
|
|
329
|
-
e.removeItem(
|
|
363
|
+
e.removeItem(Dt);
|
|
330
364
|
} catch {
|
|
331
365
|
}
|
|
332
366
|
}
|
|
333
|
-
const
|
|
367
|
+
const jt = hi(null);
|
|
334
368
|
function cr() {
|
|
335
|
-
const e = ur(
|
|
369
|
+
const e = ur(jt);
|
|
336
370
|
if (!e)
|
|
337
371
|
throw new Error("useAuthFlow must be used within SSOAuthProvider");
|
|
338
372
|
return e;
|
|
339
373
|
}
|
|
340
|
-
function
|
|
341
|
-
const e = fe.c(6), t = ur(
|
|
374
|
+
function E1() {
|
|
375
|
+
const e = fe.c(6), t = ur(jt);
|
|
342
376
|
if (!t)
|
|
343
377
|
throw new Error("useAuthSession must be used within SSOAuthProvider");
|
|
344
378
|
const n = t.session, r = n != null, i = n?.authMethod ?? null;
|
|
@@ -351,7 +385,7 @@ function N1() {
|
|
|
351
385
|
authMethod: i
|
|
352
386
|
}, 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;
|
|
353
387
|
}
|
|
354
|
-
const
|
|
388
|
+
const zt = /* @__PURE__ */ new Set(["METHOD_SELECT", "PHONE_ENTRY", "EMAIL_ENTRY"]), wi = {
|
|
355
389
|
METHOD_SELECT: ["PHONE_ENTRY", "EMAIL_ENTRY", "OTP_VERIFICATION", "SIGNUP_DETAILS", "REPEAT_LOGIN"],
|
|
356
390
|
PHONE_ENTRY: ["OTP_VERIFICATION", "SIGNUP_DETAILS"],
|
|
357
391
|
EMAIL_ENTRY: ["OTP_VERIFICATION", "SIGNUP_DETAILS"]
|
|
@@ -359,11 +393,11 @@ const Jt = /* @__PURE__ */ new Set(["METHOD_SELECT", "PHONE_ENTRY", "EMAIL_ENTRY
|
|
|
359
393
|
function Ri(e, t) {
|
|
360
394
|
return wi[t]?.includes(e) ?? !1;
|
|
361
395
|
}
|
|
362
|
-
function
|
|
396
|
+
function Qt(e, t) {
|
|
363
397
|
for (const n of Object.keys(e))
|
|
364
398
|
if (e[n] === t) return n;
|
|
365
399
|
}
|
|
366
|
-
function
|
|
400
|
+
function en(e, t) {
|
|
367
401
|
switch (t) {
|
|
368
402
|
case "METHOD_SELECT":
|
|
369
403
|
e.reset();
|
|
@@ -387,7 +421,7 @@ function xi(e, t) {
|
|
|
387
421
|
const a = se(r);
|
|
388
422
|
a.current = r;
|
|
389
423
|
const o = se(!1), d = se(null), u = se(!1);
|
|
390
|
-
|
|
424
|
+
Ee(() => {
|
|
391
425
|
if (!e || !t || n.step === "CHECKING_SESSION") return;
|
|
392
426
|
const l = t[n.step];
|
|
393
427
|
if (l == null) return;
|
|
@@ -397,9 +431,9 @@ function xi(e, t) {
|
|
|
397
431
|
return;
|
|
398
432
|
}
|
|
399
433
|
if (!o.current) {
|
|
400
|
-
const f =
|
|
401
|
-
if (f &&
|
|
402
|
-
o.current = !0,
|
|
434
|
+
const f = Qt(t, c);
|
|
435
|
+
if (f && zt.has(f)) {
|
|
436
|
+
o.current = !0, en(a.current, f);
|
|
403
437
|
return;
|
|
404
438
|
}
|
|
405
439
|
e.replace(l), o.current = !0, d.current = n.step;
|
|
@@ -409,29 +443,29 @@ function xi(e, t) {
|
|
|
409
443
|
u.current = !1, d.current = n.step;
|
|
410
444
|
return;
|
|
411
445
|
}
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
}, [e, t, n.step]),
|
|
446
|
+
const p = d.current;
|
|
447
|
+
p != null && Ri(p, n.step) ? e.replace(l) : e.push(l), d.current = n.step;
|
|
448
|
+
}, [e, t, n.step]), Ee(() => {
|
|
415
449
|
if (!(!e || !t))
|
|
416
450
|
return e.subscribe((l) => {
|
|
417
451
|
const c = i.current;
|
|
418
452
|
if (t[c.step] === l) return;
|
|
419
|
-
const
|
|
420
|
-
if (
|
|
421
|
-
if (!
|
|
453
|
+
const p = Qt(t, l);
|
|
454
|
+
if (p && p !== c.step) {
|
|
455
|
+
if (!zt.has(p)) {
|
|
422
456
|
const s = t[c.step];
|
|
423
457
|
s && s !== l && e.replace(s);
|
|
424
458
|
return;
|
|
425
459
|
}
|
|
426
|
-
u.current = !0,
|
|
460
|
+
u.current = !0, en(a.current, p);
|
|
427
461
|
}
|
|
428
462
|
});
|
|
429
463
|
}, [e, t]);
|
|
430
464
|
}
|
|
431
|
-
function
|
|
465
|
+
function tn() {
|
|
432
466
|
const e = fe.c(1);
|
|
433
467
|
let t;
|
|
434
|
-
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ H("div", { className: "flex min-h-svh w-full items-center justify-center", children: /* @__PURE__ */ H(
|
|
468
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ H("div", { className: "flex min-h-svh w-full items-center justify-center", children: /* @__PURE__ */ H(mi, { size: 32 }) }), e[0] = t) : t = e[0], t;
|
|
435
469
|
}
|
|
436
470
|
function Fi(e) {
|
|
437
471
|
const t = fe.c(69);
|
|
@@ -448,48 +482,48 @@ function Fi(e) {
|
|
|
448
482
|
providerConfig: l
|
|
449
483
|
} = cr();
|
|
450
484
|
xi(r, i);
|
|
451
|
-
const c = l?.google,
|
|
485
|
+
const c = l?.google, p = l?.apple, s = d.step === "METHOD_SELECT" && !!c?.clientId && c.enableOneTap !== !1, f = c?.clientId ?? "";
|
|
452
486
|
let y;
|
|
453
|
-
t[2] !== u ? (y = (
|
|
487
|
+
t[2] !== u ? (y = (v) => u.providerCallback({
|
|
454
488
|
provider: "google",
|
|
455
|
-
credential:
|
|
489
|
+
credential: v
|
|
456
490
|
}), t[2] = u, t[3] = y) : y = t[3];
|
|
457
|
-
let
|
|
458
|
-
t[4] !== s || t[5] !== f || t[6] !== y ? (
|
|
491
|
+
let m;
|
|
492
|
+
t[4] !== s || t[5] !== f || t[6] !== y ? (m = {
|
|
459
493
|
clientId: f,
|
|
460
494
|
onCredential: y,
|
|
461
495
|
enableOneTap: s
|
|
462
|
-
}, t[4] = s, t[5] = f, t[6] = y, t[7] =
|
|
496
|
+
}, t[4] = s, t[5] = f, t[6] = y, t[7] = m) : m = t[7];
|
|
463
497
|
const {
|
|
464
|
-
loginWithGoogle:
|
|
465
|
-
} = oi(
|
|
466
|
-
let
|
|
467
|
-
t[8] !== u ? (
|
|
498
|
+
loginWithGoogle: $
|
|
499
|
+
} = oi(m), C = p?.clientId ?? "", T = p?.redirectUri ?? "";
|
|
500
|
+
let N;
|
|
501
|
+
t[8] !== u ? (N = (v) => u.providerCallback({
|
|
468
502
|
provider: "apple",
|
|
469
|
-
credential:
|
|
470
|
-
}), t[8] = u, t[9] =
|
|
471
|
-
let
|
|
472
|
-
t[10] !==
|
|
473
|
-
clientId:
|
|
503
|
+
credential: v
|
|
504
|
+
}), t[8] = u, t[9] = N) : N = t[9];
|
|
505
|
+
let S;
|
|
506
|
+
t[10] !== C || t[11] !== T || t[12] !== N ? (S = {
|
|
507
|
+
clientId: C,
|
|
474
508
|
redirectUri: T,
|
|
475
|
-
onCredential:
|
|
476
|
-
}, t[10] =
|
|
509
|
+
onCredential: N
|
|
510
|
+
}, t[10] = C, t[11] = T, t[12] = N, t[13] = S) : S = t[13];
|
|
477
511
|
const {
|
|
478
|
-
triggerSignIn:
|
|
512
|
+
triggerSignIn: h
|
|
479
513
|
} = di();
|
|
480
514
|
switch (d.step) {
|
|
481
515
|
case "CHECKING_SESSION": {
|
|
482
|
-
let
|
|
483
|
-
return t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
516
|
+
let v;
|
|
517
|
+
return t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ H(tn, {}), t[14] = v) : v = t[14], v;
|
|
484
518
|
}
|
|
485
519
|
case "METHOD_SELECT": {
|
|
486
|
-
const
|
|
520
|
+
const v = l?.google?.clientId, I = l?.apple?.clientId;
|
|
487
521
|
let F, G;
|
|
488
522
|
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]);
|
|
489
523
|
let B;
|
|
490
|
-
t[18] !==
|
|
524
|
+
t[18] !== v || t[19] !== $ ? (B = v ? $ : Li, t[18] = v, t[19] = $, t[20] = B) : B = t[20];
|
|
491
525
|
let W;
|
|
492
|
-
t[21] !==
|
|
526
|
+
t[21] !== I || t[22] !== h ? (W = I ? h : Mi, t[21] = I, t[22] = h, t[23] = W) : W = t[23];
|
|
493
527
|
let K;
|
|
494
528
|
t[24] !== o ? (K = o != null && {
|
|
495
529
|
onEnterpriseLogin: o
|
|
@@ -498,39 +532,39 @@ function Fi(e) {
|
|
|
498
532
|
return t[26] !== F || t[27] !== B || t[28] !== W || t[29] !== K || t[30] !== G ? (q = /* @__PURE__ */ H(fi, { onContinueWithMobile: G, onContinueWithEmail: F, onContinueWithGoogle: B, onContinueWithApple: W, ...K }), t[26] = F, t[27] = B, t[28] = W, t[29] = K, t[30] = G, t[31] = q) : q = t[31], q;
|
|
499
533
|
}
|
|
500
534
|
case "PHONE_ENTRY": {
|
|
501
|
-
let
|
|
502
|
-
return t[32] !== u ? (
|
|
535
|
+
let v;
|
|
536
|
+
return t[32] !== u ? (v = /* @__PURE__ */ H(Jt, { mode: "phone", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (I) => u.submitIdentifier(I) }), t[32] = u, t[33] = v) : v = t[33], v;
|
|
503
537
|
}
|
|
504
538
|
case "EMAIL_ENTRY": {
|
|
505
|
-
let
|
|
506
|
-
return t[34] !== u ? (
|
|
539
|
+
let v;
|
|
540
|
+
return t[34] !== u ? (v = /* @__PURE__ */ H(Jt, { mode: "email", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (I) => u.submitIdentifier(I) }), t[34] = u, t[35] = v) : v = t[35], v;
|
|
507
541
|
}
|
|
508
542
|
case "OTP_VERIFICATION": {
|
|
509
|
-
const
|
|
543
|
+
const v = d.userType === "FOREIGN", I = v ? "standalone" : "withSlider", F = v ? "mobile" : "desktop";
|
|
510
544
|
let G, B, W;
|
|
511
545
|
t[36] !== u ? (W = () => u.goBack(), G = (q) => u.verifyOtp(q), B = () => u.resendOtp(), t[36] = u, t[37] = G, t[38] = B, t[39] = W) : (G = t[37], B = t[38], W = t[39]);
|
|
512
546
|
let K;
|
|
513
|
-
return t[40] !==
|
|
547
|
+
return t[40] !== v || t[41] !== I || t[42] !== d.identifierType || t[43] !== d.maskedRecipient || t[44] !== G || t[45] !== B || t[46] !== W || t[47] !== a || t[48] !== F ? (K = /* @__PURE__ */ H(ci, { mode: d.identifierType, recipientDisplay: d.maskedRecipient, isForeignUser: v, layoutType: I, variant: F, onBack: W, submitApi: G, onResendCode: B, validate: a }), t[40] = v, t[41] = I, t[42] = d.identifierType, t[43] = d.maskedRecipient, t[44] = G, t[45] = B, t[46] = W, t[47] = a, t[48] = F, t[49] = K) : K = t[49], K;
|
|
514
548
|
}
|
|
515
549
|
case "SIGNUP_DETAILS": {
|
|
516
|
-
let
|
|
517
|
-
t[50] !== u ? (
|
|
518
|
-
let
|
|
519
|
-
return t[52] !== d.identifierType || t[53] !== d.pendingPhone || t[54] !== d.signupCollectField || t[55] !== d.userType || t[56] !==
|
|
550
|
+
let v;
|
|
551
|
+
t[50] !== u ? (v = (F) => u.submitSignupDetails(F), t[50] = u, t[51] = v) : v = t[51];
|
|
552
|
+
let I;
|
|
553
|
+
return t[52] !== d.identifierType || t[53] !== d.pendingPhone || t[54] !== d.signupCollectField || t[55] !== d.userType || t[56] !== v ? (I = /* @__PURE__ */ H(si, { userType: d.userType, loginMethod: d.identifierType, signupCollectField: d.signupCollectField, pendingPhone: d.pendingPhone, layoutType: "standalone", variant: "mobile", onSubmit: v }), t[52] = d.identifierType, t[53] = d.pendingPhone, t[54] = d.signupCollectField, t[55] = d.userType, t[56] = v, t[57] = I) : I = t[57], I;
|
|
520
554
|
}
|
|
521
555
|
case "LINK_OR_MERGE": {
|
|
522
|
-
let
|
|
523
|
-
return t[58] !== u || t[59] !== d.linkOrMerge ? (
|
|
556
|
+
let v;
|
|
557
|
+
return t[58] !== u || t[59] !== d.linkOrMerge ? (v = d.linkOrMerge ? /* @__PURE__ */ H(li, { details: d.linkOrMerge, onBack: () => u.goBack(), onContinue: () => u.continueLinkOrMerge(), onVerify: (I) => u.verifyLinkOrMerge(I) }) : null, t[58] = u, t[59] = d.linkOrMerge, t[60] = v) : v = t[60], v;
|
|
524
558
|
}
|
|
525
559
|
case "REPEAT_LOGIN": {
|
|
526
|
-
let
|
|
527
|
-
t[61] !== u ? (
|
|
560
|
+
let v, I;
|
|
561
|
+
t[61] !== u ? (I = () => u.continueWithLastMethod(), v = () => u.reset(), t[61] = u, t[62] = v, t[63] = I) : (v = t[62], I = t[63]);
|
|
528
562
|
let F;
|
|
529
|
-
return t[64] !== d.lastMethod || t[65] !==
|
|
563
|
+
return t[64] !== d.lastMethod || t[65] !== v || t[66] !== I ? (F = /* @__PURE__ */ H(ui, { lastUsedMethod: d.lastMethod, layoutType: "withSlider", variant: "desktop", onContinueWithLastMethod: I, onUseAnotherMethod: v }), t[64] = d.lastMethod, t[65] = v, t[66] = I, t[67] = F) : F = t[67], F;
|
|
530
564
|
}
|
|
531
565
|
case "PROVIDER_PENDING": {
|
|
532
|
-
let
|
|
533
|
-
return t[68] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
566
|
+
let v;
|
|
567
|
+
return t[68] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ H(tn, {}), t[68] = v) : v = t[68], v;
|
|
534
568
|
}
|
|
535
569
|
case "AUTHENTICATED":
|
|
536
570
|
return null;
|
|
@@ -544,104 +578,104 @@ function Li() {
|
|
|
544
578
|
}
|
|
545
579
|
const fr = { 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}"]]] } };
|
|
546
580
|
var je = { exports: {} }, Ge = { exports: {} }, k = {};
|
|
547
|
-
var
|
|
581
|
+
var nn;
|
|
548
582
|
function Di() {
|
|
549
|
-
if (
|
|
550
|
-
|
|
551
|
-
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, c = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112,
|
|
552
|
-
function
|
|
553
|
-
if (typeof
|
|
554
|
-
var
|
|
555
|
-
switch (
|
|
583
|
+
if (nn) return k;
|
|
584
|
+
nn = 1;
|
|
585
|
+
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, c = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, s = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, f = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
586
|
+
function N(h) {
|
|
587
|
+
if (typeof h == "object" && h !== null) {
|
|
588
|
+
var v = h.$$typeof;
|
|
589
|
+
switch (v) {
|
|
556
590
|
case t:
|
|
557
|
-
switch (
|
|
591
|
+
switch (h = h.type, h) {
|
|
558
592
|
case u:
|
|
559
593
|
case l:
|
|
560
594
|
case r:
|
|
561
595
|
case a:
|
|
562
596
|
case i:
|
|
563
|
-
case
|
|
564
|
-
return
|
|
597
|
+
case p:
|
|
598
|
+
return h;
|
|
565
599
|
default:
|
|
566
|
-
switch (
|
|
600
|
+
switch (h = h && h.$$typeof, h) {
|
|
567
601
|
case d:
|
|
568
602
|
case c:
|
|
569
603
|
case y:
|
|
570
604
|
case f:
|
|
571
605
|
case o:
|
|
572
|
-
return
|
|
606
|
+
return h;
|
|
573
607
|
default:
|
|
574
|
-
return
|
|
608
|
+
return v;
|
|
575
609
|
}
|
|
576
610
|
}
|
|
577
611
|
case n:
|
|
578
|
-
return
|
|
612
|
+
return v;
|
|
579
613
|
}
|
|
580
614
|
}
|
|
581
615
|
}
|
|
582
|
-
function
|
|
583
|
-
return
|
|
584
|
-
}
|
|
585
|
-
return k.AsyncMode = u, k.ConcurrentMode = l, k.ContextConsumer = d, k.ContextProvider = o, k.Element = t, k.ForwardRef = c, k.Fragment = r, k.Lazy = y, k.Memo = f, k.Portal = n, k.Profiler = a, k.StrictMode = i, k.Suspense =
|
|
586
|
-
return
|
|
587
|
-
}, k.isConcurrentMode =
|
|
588
|
-
return
|
|
589
|
-
}, k.isContextProvider = function(
|
|
590
|
-
return
|
|
591
|
-
}, k.isElement = function(
|
|
592
|
-
return typeof
|
|
593
|
-
}, k.isForwardRef = function(
|
|
594
|
-
return
|
|
595
|
-
}, k.isFragment = function(
|
|
596
|
-
return
|
|
597
|
-
}, k.isLazy = function(
|
|
598
|
-
return
|
|
599
|
-
}, k.isMemo = function(
|
|
600
|
-
return
|
|
601
|
-
}, k.isPortal = function(
|
|
602
|
-
return
|
|
603
|
-
}, k.isProfiler = function(
|
|
604
|
-
return
|
|
605
|
-
}, k.isStrictMode = function(
|
|
606
|
-
return
|
|
607
|
-
}, k.isSuspense = function(
|
|
608
|
-
return
|
|
609
|
-
}, k.isValidElementType = function(
|
|
610
|
-
return typeof
|
|
611
|
-
}, k.typeOf =
|
|
616
|
+
function S(h) {
|
|
617
|
+
return N(h) === l;
|
|
618
|
+
}
|
|
619
|
+
return k.AsyncMode = u, k.ConcurrentMode = l, k.ContextConsumer = d, k.ContextProvider = o, k.Element = t, k.ForwardRef = c, k.Fragment = r, k.Lazy = y, k.Memo = f, k.Portal = n, k.Profiler = a, k.StrictMode = i, k.Suspense = p, k.isAsyncMode = function(h) {
|
|
620
|
+
return S(h) || N(h) === u;
|
|
621
|
+
}, k.isConcurrentMode = S, k.isContextConsumer = function(h) {
|
|
622
|
+
return N(h) === d;
|
|
623
|
+
}, k.isContextProvider = function(h) {
|
|
624
|
+
return N(h) === o;
|
|
625
|
+
}, k.isElement = function(h) {
|
|
626
|
+
return typeof h == "object" && h !== null && h.$$typeof === t;
|
|
627
|
+
}, k.isForwardRef = function(h) {
|
|
628
|
+
return N(h) === c;
|
|
629
|
+
}, k.isFragment = function(h) {
|
|
630
|
+
return N(h) === r;
|
|
631
|
+
}, k.isLazy = function(h) {
|
|
632
|
+
return N(h) === y;
|
|
633
|
+
}, k.isMemo = function(h) {
|
|
634
|
+
return N(h) === f;
|
|
635
|
+
}, k.isPortal = function(h) {
|
|
636
|
+
return N(h) === n;
|
|
637
|
+
}, k.isProfiler = function(h) {
|
|
638
|
+
return N(h) === a;
|
|
639
|
+
}, k.isStrictMode = function(h) {
|
|
640
|
+
return N(h) === i;
|
|
641
|
+
}, k.isSuspense = function(h) {
|
|
642
|
+
return N(h) === p;
|
|
643
|
+
}, k.isValidElementType = function(h) {
|
|
644
|
+
return typeof h == "string" || typeof h == "function" || h === r || h === l || h === a || h === i || h === p || h === s || typeof h == "object" && h !== null && (h.$$typeof === y || h.$$typeof === f || h.$$typeof === o || h.$$typeof === d || h.$$typeof === c || h.$$typeof === $ || h.$$typeof === C || h.$$typeof === T || h.$$typeof === m);
|
|
645
|
+
}, k.typeOf = N, k;
|
|
612
646
|
}
|
|
613
647
|
var j = {};
|
|
614
|
-
var
|
|
648
|
+
var rn;
|
|
615
649
|
function ki() {
|
|
616
|
-
return
|
|
617
|
-
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, c = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112,
|
|
618
|
-
function
|
|
619
|
-
return typeof
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
function
|
|
623
|
-
if (typeof
|
|
624
|
-
var ne =
|
|
650
|
+
return rn || (rn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
651
|
+
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, c = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, s = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, f = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, y = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, m = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
652
|
+
function N(P) {
|
|
653
|
+
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
654
|
+
P === r || P === l || P === a || P === i || P === p || P === s || typeof P == "object" && P !== null && (P.$$typeof === y || P.$$typeof === f || P.$$typeof === o || P.$$typeof === d || P.$$typeof === c || P.$$typeof === $ || P.$$typeof === C || P.$$typeof === T || P.$$typeof === m);
|
|
655
|
+
}
|
|
656
|
+
function S(P) {
|
|
657
|
+
if (typeof P == "object" && P !== null) {
|
|
658
|
+
var ne = P.$$typeof;
|
|
625
659
|
switch (ne) {
|
|
626
660
|
case t:
|
|
627
|
-
var ke =
|
|
661
|
+
var ke = P.type;
|
|
628
662
|
switch (ke) {
|
|
629
663
|
case u:
|
|
630
664
|
case l:
|
|
631
665
|
case r:
|
|
632
666
|
case a:
|
|
633
667
|
case i:
|
|
634
|
-
case
|
|
668
|
+
case p:
|
|
635
669
|
return ke;
|
|
636
670
|
default:
|
|
637
|
-
var
|
|
638
|
-
switch (
|
|
671
|
+
var Zt = ke && ke.$$typeof;
|
|
672
|
+
switch (Zt) {
|
|
639
673
|
case d:
|
|
640
674
|
case c:
|
|
641
675
|
case y:
|
|
642
676
|
case f:
|
|
643
677
|
case o:
|
|
644
|
-
return
|
|
678
|
+
return Zt;
|
|
645
679
|
default:
|
|
646
680
|
return ne;
|
|
647
681
|
}
|
|
@@ -651,57 +685,57 @@ function ki() {
|
|
|
651
685
|
}
|
|
652
686
|
}
|
|
653
687
|
}
|
|
654
|
-
var
|
|
655
|
-
function De(
|
|
656
|
-
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
688
|
+
var h = u, v = l, I = d, F = o, G = t, B = c, W = r, K = y, q = f, te = n, $e = a, J = i, X = p, oe = !1;
|
|
689
|
+
function De(P) {
|
|
690
|
+
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), b(P) || S(P) === u;
|
|
657
691
|
}
|
|
658
|
-
function
|
|
659
|
-
return
|
|
692
|
+
function b(P) {
|
|
693
|
+
return S(P) === l;
|
|
660
694
|
}
|
|
661
|
-
function
|
|
662
|
-
return
|
|
695
|
+
function E(P) {
|
|
696
|
+
return S(P) === d;
|
|
663
697
|
}
|
|
664
|
-
function x(
|
|
665
|
-
return
|
|
698
|
+
function x(P) {
|
|
699
|
+
return S(P) === o;
|
|
666
700
|
}
|
|
667
|
-
function w(
|
|
668
|
-
return typeof
|
|
701
|
+
function w(P) {
|
|
702
|
+
return typeof P == "object" && P !== null && P.$$typeof === t;
|
|
669
703
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
704
|
+
function A(P) {
|
|
705
|
+
return S(P) === c;
|
|
672
706
|
}
|
|
673
|
-
function M(
|
|
674
|
-
return
|
|
707
|
+
function M(P) {
|
|
708
|
+
return S(P) === r;
|
|
675
709
|
}
|
|
676
|
-
function _(
|
|
677
|
-
return
|
|
710
|
+
function _(P) {
|
|
711
|
+
return S(P) === y;
|
|
678
712
|
}
|
|
679
|
-
function R(
|
|
680
|
-
return
|
|
713
|
+
function R(P) {
|
|
714
|
+
return S(P) === f;
|
|
681
715
|
}
|
|
682
|
-
function L(
|
|
683
|
-
return
|
|
716
|
+
function L(P) {
|
|
717
|
+
return S(P) === n;
|
|
684
718
|
}
|
|
685
|
-
function U(
|
|
686
|
-
return
|
|
719
|
+
function U(P) {
|
|
720
|
+
return S(P) === a;
|
|
687
721
|
}
|
|
688
|
-
function D(
|
|
689
|
-
return
|
|
722
|
+
function D(P) {
|
|
723
|
+
return S(P) === i;
|
|
690
724
|
}
|
|
691
|
-
function Z(
|
|
692
|
-
return
|
|
725
|
+
function Z(P) {
|
|
726
|
+
return S(P) === p;
|
|
693
727
|
}
|
|
694
|
-
j.AsyncMode =
|
|
728
|
+
j.AsyncMode = h, j.ConcurrentMode = v, j.ContextConsumer = I, j.ContextProvider = F, j.Element = G, j.ForwardRef = B, j.Fragment = W, j.Lazy = K, j.Memo = q, j.Portal = te, j.Profiler = $e, j.StrictMode = J, j.Suspense = X, j.isAsyncMode = De, j.isConcurrentMode = b, j.isContextConsumer = E, j.isContextProvider = x, j.isElement = w, j.isForwardRef = A, j.isFragment = M, j.isLazy = _, j.isMemo = R, j.isPortal = L, j.isProfiler = U, j.isStrictMode = D, j.isSuspense = Z, j.isValidElementType = N, j.typeOf = S;
|
|
695
729
|
})()), j;
|
|
696
730
|
}
|
|
697
|
-
var
|
|
731
|
+
var an;
|
|
698
732
|
function $r() {
|
|
699
|
-
return
|
|
733
|
+
return an || (an = 1, process.env.NODE_ENV === "production" ? Ge.exports = Di() : Ge.exports = ki()), Ge.exports;
|
|
700
734
|
}
|
|
701
|
-
var ot,
|
|
735
|
+
var ot, on;
|
|
702
736
|
function ji() {
|
|
703
|
-
if (
|
|
704
|
-
|
|
737
|
+
if (on) return ot;
|
|
738
|
+
on = 1;
|
|
705
739
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
706
740
|
function r(a) {
|
|
707
741
|
if (a == null)
|
|
@@ -733,8 +767,8 @@ function ji() {
|
|
|
733
767
|
return ot = i() ? Object.assign : function(a, o) {
|
|
734
768
|
for (var d, u = r(a), l, c = 1; c < arguments.length; c++) {
|
|
735
769
|
d = Object(arguments[c]);
|
|
736
|
-
for (var
|
|
737
|
-
t.call(d,
|
|
770
|
+
for (var p in d)
|
|
771
|
+
t.call(d, p) && (u[p] = d[p]);
|
|
738
772
|
if (e) {
|
|
739
773
|
l = e(d);
|
|
740
774
|
for (var s = 0; s < l.length; s++)
|
|
@@ -744,25 +778,25 @@ function ji() {
|
|
|
744
778
|
return u;
|
|
745
779
|
}, ot;
|
|
746
780
|
}
|
|
747
|
-
var dt,
|
|
748
|
-
function
|
|
749
|
-
if (
|
|
750
|
-
|
|
781
|
+
var dt, dn;
|
|
782
|
+
function Gt() {
|
|
783
|
+
if (dn) return dt;
|
|
784
|
+
dn = 1;
|
|
751
785
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
752
786
|
return dt = e, dt;
|
|
753
787
|
}
|
|
754
|
-
var ut,
|
|
788
|
+
var ut, un;
|
|
755
789
|
function pr() {
|
|
756
|
-
return
|
|
790
|
+
return un || (un = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
|
|
757
791
|
}
|
|
758
|
-
var lt,
|
|
792
|
+
var lt, ln;
|
|
759
793
|
function Gi() {
|
|
760
|
-
if (
|
|
761
|
-
|
|
794
|
+
if (ln) return lt;
|
|
795
|
+
ln = 1;
|
|
762
796
|
var e = function() {
|
|
763
797
|
};
|
|
764
798
|
if (process.env.NODE_ENV !== "production") {
|
|
765
|
-
var t = /* @__PURE__ */
|
|
799
|
+
var t = /* @__PURE__ */ Gt(), n = {}, r = /* @__PURE__ */ pr();
|
|
766
800
|
e = function(a) {
|
|
767
801
|
var o = "Warning: " + a;
|
|
768
802
|
typeof console < "u" && console.error(o);
|
|
@@ -776,7 +810,7 @@ function Gi() {
|
|
|
776
810
|
if (process.env.NODE_ENV !== "production") {
|
|
777
811
|
for (var c in a)
|
|
778
812
|
if (r(a, c)) {
|
|
779
|
-
var
|
|
813
|
+
var p;
|
|
780
814
|
try {
|
|
781
815
|
if (typeof a[c] != "function") {
|
|
782
816
|
var s = Error(
|
|
@@ -784,17 +818,17 @@ function Gi() {
|
|
|
784
818
|
);
|
|
785
819
|
throw s.name = "Invariant Violation", s;
|
|
786
820
|
}
|
|
787
|
-
|
|
821
|
+
p = a[c](o, c, u, d, null, t);
|
|
788
822
|
} catch (y) {
|
|
789
|
-
|
|
823
|
+
p = y;
|
|
790
824
|
}
|
|
791
|
-
if (
|
|
792
|
-
(u || "React class") + ": type specification of " + d + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
793
|
-
),
|
|
794
|
-
n[
|
|
825
|
+
if (p && !(p instanceof Error) && e(
|
|
826
|
+
(u || "React class") + ": type specification of " + d + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
827
|
+
), p instanceof Error && !(p.message in n)) {
|
|
828
|
+
n[p.message] = !0;
|
|
795
829
|
var f = l ? l() : "";
|
|
796
830
|
e(
|
|
797
|
-
"Failed " + d + " type: " +
|
|
831
|
+
"Failed " + d + " type: " + p.message + (f ?? "")
|
|
798
832
|
);
|
|
799
833
|
}
|
|
800
834
|
}
|
|
@@ -804,11 +838,11 @@ function Gi() {
|
|
|
804
838
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
805
839
|
}, lt = i, lt;
|
|
806
840
|
}
|
|
807
|
-
var st,
|
|
841
|
+
var st, sn;
|
|
808
842
|
function Ui() {
|
|
809
|
-
if (
|
|
810
|
-
|
|
811
|
-
var e = $r(), t = ji(), n = /* @__PURE__ */
|
|
843
|
+
if (sn) return st;
|
|
844
|
+
sn = 1;
|
|
845
|
+
var e = $r(), t = ji(), n = /* @__PURE__ */ Gt(), r = /* @__PURE__ */ pr(), i = /* @__PURE__ */ Gi(), a = function() {
|
|
812
846
|
};
|
|
813
847
|
process.env.NODE_ENV !== "production" && (a = function(d) {
|
|
814
848
|
var u = "Warning: " + d;
|
|
@@ -823,260 +857,260 @@ function Ui() {
|
|
|
823
857
|
}
|
|
824
858
|
return st = function(d, u) {
|
|
825
859
|
var l = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
|
|
826
|
-
function
|
|
827
|
-
var
|
|
828
|
-
if (typeof
|
|
829
|
-
return
|
|
860
|
+
function p(b) {
|
|
861
|
+
var E = b && (l && b[l] || b[c]);
|
|
862
|
+
if (typeof E == "function")
|
|
863
|
+
return E;
|
|
830
864
|
}
|
|
831
865
|
var s = "<<anonymous>>", f = {
|
|
832
|
-
array:
|
|
833
|
-
bigint:
|
|
834
|
-
bool:
|
|
835
|
-
func:
|
|
836
|
-
number:
|
|
837
|
-
object:
|
|
838
|
-
string:
|
|
839
|
-
symbol:
|
|
866
|
+
array: C("array"),
|
|
867
|
+
bigint: C("bigint"),
|
|
868
|
+
bool: C("boolean"),
|
|
869
|
+
func: C("function"),
|
|
870
|
+
number: C("number"),
|
|
871
|
+
object: C("object"),
|
|
872
|
+
string: C("string"),
|
|
873
|
+
symbol: C("symbol"),
|
|
840
874
|
any: T(),
|
|
841
|
-
arrayOf:
|
|
842
|
-
element:
|
|
843
|
-
elementType:
|
|
844
|
-
instanceOf:
|
|
875
|
+
arrayOf: N,
|
|
876
|
+
element: S(),
|
|
877
|
+
elementType: h(),
|
|
878
|
+
instanceOf: v,
|
|
845
879
|
node: B(),
|
|
846
880
|
objectOf: F,
|
|
847
|
-
oneOf:
|
|
881
|
+
oneOf: I,
|
|
848
882
|
oneOfType: G,
|
|
849
883
|
shape: K,
|
|
850
884
|
exact: q
|
|
851
885
|
};
|
|
852
|
-
function y(
|
|
853
|
-
return
|
|
886
|
+
function y(b, E) {
|
|
887
|
+
return b === E ? b !== 0 || 1 / b === 1 / E : b !== b && E !== E;
|
|
854
888
|
}
|
|
855
|
-
function
|
|
856
|
-
this.message =
|
|
889
|
+
function m(b, E) {
|
|
890
|
+
this.message = b, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
|
|
857
891
|
}
|
|
858
|
-
|
|
859
|
-
function
|
|
892
|
+
m.prototype = Error.prototype;
|
|
893
|
+
function $(b) {
|
|
860
894
|
if (process.env.NODE_ENV !== "production")
|
|
861
|
-
var
|
|
895
|
+
var E = {}, x = 0;
|
|
862
896
|
function w(M, _, R, L, U, D, Z) {
|
|
863
897
|
if (L = L || s, D = D || R, Z !== n) {
|
|
864
898
|
if (u) {
|
|
865
|
-
var
|
|
899
|
+
var P = new Error(
|
|
866
900
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
867
901
|
);
|
|
868
|
-
throw
|
|
902
|
+
throw P.name = "Invariant Violation", P;
|
|
869
903
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
870
904
|
var ne = L + ":" + R;
|
|
871
|
-
!
|
|
905
|
+
!E[ne] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
872
906
|
x < 3 && (a(
|
|
873
907
|
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
874
|
-
),
|
|
908
|
+
), E[ne] = !0, x++);
|
|
875
909
|
}
|
|
876
910
|
}
|
|
877
|
-
return _[R] == null ? M ? _[R] === null ? new
|
|
911
|
+
return _[R] == null ? M ? _[R] === null ? new m("The " + U + " `" + D + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new m("The " + U + " `" + D + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : b(_, R, L, U, D);
|
|
878
912
|
}
|
|
879
|
-
var
|
|
880
|
-
return
|
|
913
|
+
var A = w.bind(null, !1);
|
|
914
|
+
return A.isRequired = w.bind(null, !0), A;
|
|
881
915
|
}
|
|
882
|
-
function
|
|
883
|
-
function
|
|
916
|
+
function C(b) {
|
|
917
|
+
function E(x, w, A, M, _, R) {
|
|
884
918
|
var L = x[w], U = J(L);
|
|
885
|
-
if (U !==
|
|
919
|
+
if (U !== b) {
|
|
886
920
|
var D = X(L);
|
|
887
|
-
return new
|
|
888
|
-
"Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" +
|
|
889
|
-
{ expectedType:
|
|
921
|
+
return new m(
|
|
922
|
+
"Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + A + "`, expected ") + ("`" + b + "`."),
|
|
923
|
+
{ expectedType: b }
|
|
890
924
|
);
|
|
891
925
|
}
|
|
892
926
|
return null;
|
|
893
927
|
}
|
|
894
|
-
return
|
|
928
|
+
return $(E);
|
|
895
929
|
}
|
|
896
930
|
function T() {
|
|
897
|
-
return
|
|
931
|
+
return $(o);
|
|
898
932
|
}
|
|
899
|
-
function
|
|
900
|
-
function
|
|
901
|
-
if (typeof
|
|
902
|
-
return new
|
|
933
|
+
function N(b) {
|
|
934
|
+
function E(x, w, A, M, _) {
|
|
935
|
+
if (typeof b != "function")
|
|
936
|
+
return new m("Property `" + _ + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
903
937
|
var R = x[w];
|
|
904
938
|
if (!Array.isArray(R)) {
|
|
905
939
|
var L = J(R);
|
|
906
|
-
return new
|
|
940
|
+
return new m("Invalid " + M + " `" + _ + "` of type " + ("`" + L + "` supplied to `" + A + "`, expected an array."));
|
|
907
941
|
}
|
|
908
942
|
for (var U = 0; U < R.length; U++) {
|
|
909
|
-
var D =
|
|
943
|
+
var D = b(R, U, A, M, _ + "[" + U + "]", n);
|
|
910
944
|
if (D instanceof Error)
|
|
911
945
|
return D;
|
|
912
946
|
}
|
|
913
947
|
return null;
|
|
914
948
|
}
|
|
915
|
-
return
|
|
949
|
+
return $(E);
|
|
916
950
|
}
|
|
917
|
-
function
|
|
918
|
-
function
|
|
919
|
-
var _ =
|
|
951
|
+
function S() {
|
|
952
|
+
function b(E, x, w, A, M) {
|
|
953
|
+
var _ = E[x];
|
|
920
954
|
if (!d(_)) {
|
|
921
955
|
var R = J(_);
|
|
922
|
-
return new
|
|
956
|
+
return new m("Invalid " + A + " `" + M + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected a single ReactElement."));
|
|
923
957
|
}
|
|
924
958
|
return null;
|
|
925
959
|
}
|
|
926
|
-
return
|
|
960
|
+
return $(b);
|
|
927
961
|
}
|
|
928
|
-
function
|
|
929
|
-
function
|
|
930
|
-
var _ =
|
|
962
|
+
function h() {
|
|
963
|
+
function b(E, x, w, A, M) {
|
|
964
|
+
var _ = E[x];
|
|
931
965
|
if (!e.isValidElementType(_)) {
|
|
932
966
|
var R = J(_);
|
|
933
|
-
return new
|
|
967
|
+
return new m("Invalid " + A + " `" + M + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected a single ReactElement type."));
|
|
934
968
|
}
|
|
935
969
|
return null;
|
|
936
970
|
}
|
|
937
|
-
return
|
|
971
|
+
return $(b);
|
|
938
972
|
}
|
|
939
|
-
function b
|
|
940
|
-
function
|
|
941
|
-
if (!(x[w] instanceof
|
|
942
|
-
var R =
|
|
943
|
-
return new
|
|
973
|
+
function v(b) {
|
|
974
|
+
function E(x, w, A, M, _) {
|
|
975
|
+
if (!(x[w] instanceof b)) {
|
|
976
|
+
var R = b.name || s, L = De(x[w]);
|
|
977
|
+
return new m("Invalid " + M + " `" + _ + "` of type " + ("`" + L + "` supplied to `" + A + "`, expected ") + ("instance of `" + R + "`."));
|
|
944
978
|
}
|
|
945
979
|
return null;
|
|
946
980
|
}
|
|
947
|
-
return
|
|
981
|
+
return $(E);
|
|
948
982
|
}
|
|
949
|
-
function
|
|
950
|
-
if (!Array.isArray(
|
|
983
|
+
function I(b) {
|
|
984
|
+
if (!Array.isArray(b))
|
|
951
985
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
952
986
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
953
987
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
954
|
-
function
|
|
955
|
-
for (var R = x[w], L = 0; L <
|
|
956
|
-
if (y(R,
|
|
988
|
+
function E(x, w, A, M, _) {
|
|
989
|
+
for (var R = x[w], L = 0; L < b.length; L++)
|
|
990
|
+
if (y(R, b[L]))
|
|
957
991
|
return null;
|
|
958
|
-
var U = JSON.stringify(
|
|
959
|
-
var ne = X(
|
|
960
|
-
return ne === "symbol" ? String(
|
|
992
|
+
var U = JSON.stringify(b, function(Z, P) {
|
|
993
|
+
var ne = X(P);
|
|
994
|
+
return ne === "symbol" ? String(P) : P;
|
|
961
995
|
});
|
|
962
|
-
return new
|
|
996
|
+
return new m("Invalid " + M + " `" + _ + "` of value `" + String(R) + "` " + ("supplied to `" + A + "`, expected one of " + U + "."));
|
|
963
997
|
}
|
|
964
|
-
return
|
|
998
|
+
return $(E);
|
|
965
999
|
}
|
|
966
|
-
function F(
|
|
967
|
-
function
|
|
968
|
-
if (typeof
|
|
969
|
-
return new
|
|
1000
|
+
function F(b) {
|
|
1001
|
+
function E(x, w, A, M, _) {
|
|
1002
|
+
if (typeof b != "function")
|
|
1003
|
+
return new m("Property `" + _ + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
|
|
970
1004
|
var R = x[w], L = J(R);
|
|
971
1005
|
if (L !== "object")
|
|
972
|
-
return new
|
|
1006
|
+
return new m("Invalid " + M + " `" + _ + "` of type " + ("`" + L + "` supplied to `" + A + "`, expected an object."));
|
|
973
1007
|
for (var U in R)
|
|
974
1008
|
if (r(R, U)) {
|
|
975
|
-
var D =
|
|
1009
|
+
var D = b(R, U, A, M, _ + "." + U, n);
|
|
976
1010
|
if (D instanceof Error)
|
|
977
1011
|
return D;
|
|
978
1012
|
}
|
|
979
1013
|
return null;
|
|
980
1014
|
}
|
|
981
|
-
return
|
|
1015
|
+
return $(E);
|
|
982
1016
|
}
|
|
983
|
-
function G(
|
|
984
|
-
if (!Array.isArray(
|
|
1017
|
+
function G(b) {
|
|
1018
|
+
if (!Array.isArray(b))
|
|
985
1019
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
986
|
-
for (var
|
|
987
|
-
var x =
|
|
1020
|
+
for (var E = 0; E < b.length; E++) {
|
|
1021
|
+
var x = b[E];
|
|
988
1022
|
if (typeof x != "function")
|
|
989
1023
|
return a(
|
|
990
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(x) + " at index " +
|
|
1024
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(x) + " at index " + E + "."
|
|
991
1025
|
), o;
|
|
992
1026
|
}
|
|
993
|
-
function w(
|
|
994
|
-
for (var U = [], D = 0; D <
|
|
995
|
-
var Z =
|
|
996
|
-
if (
|
|
1027
|
+
function w(A, M, _, R, L) {
|
|
1028
|
+
for (var U = [], D = 0; D < b.length; D++) {
|
|
1029
|
+
var Z = b[D], P = Z(A, M, _, R, L, n);
|
|
1030
|
+
if (P == null)
|
|
997
1031
|
return null;
|
|
998
|
-
|
|
1032
|
+
P.data && r(P.data, "expectedType") && U.push(P.data.expectedType);
|
|
999
1033
|
}
|
|
1000
1034
|
var ne = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
|
|
1001
|
-
return new
|
|
1035
|
+
return new m("Invalid " + R + " `" + L + "` supplied to " + ("`" + _ + "`" + ne + "."));
|
|
1002
1036
|
}
|
|
1003
|
-
return
|
|
1037
|
+
return $(w);
|
|
1004
1038
|
}
|
|
1005
1039
|
function B() {
|
|
1006
|
-
function
|
|
1007
|
-
return te(
|
|
1040
|
+
function b(E, x, w, A, M) {
|
|
1041
|
+
return te(E[x]) ? null : new m("Invalid " + A + " `" + M + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
|
|
1008
1042
|
}
|
|
1009
|
-
return
|
|
1043
|
+
return $(b);
|
|
1010
1044
|
}
|
|
1011
|
-
function W(
|
|
1012
|
-
return new
|
|
1013
|
-
(
|
|
1045
|
+
function W(b, E, x, w, A) {
|
|
1046
|
+
return new m(
|
|
1047
|
+
(b || "React class") + ": " + E + " type `" + x + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
1014
1048
|
);
|
|
1015
1049
|
}
|
|
1016
|
-
function K(
|
|
1017
|
-
function
|
|
1050
|
+
function K(b) {
|
|
1051
|
+
function E(x, w, A, M, _) {
|
|
1018
1052
|
var R = x[w], L = J(R);
|
|
1019
1053
|
if (L !== "object")
|
|
1020
|
-
return new
|
|
1021
|
-
for (var U in
|
|
1022
|
-
var D =
|
|
1054
|
+
return new m("Invalid " + M + " `" + _ + "` of type `" + L + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
1055
|
+
for (var U in b) {
|
|
1056
|
+
var D = b[U];
|
|
1023
1057
|
if (typeof D != "function")
|
|
1024
|
-
return W(
|
|
1025
|
-
var Z = D(R, U,
|
|
1058
|
+
return W(A, M, _, U, X(D));
|
|
1059
|
+
var Z = D(R, U, A, M, _ + "." + U, n);
|
|
1026
1060
|
if (Z)
|
|
1027
1061
|
return Z;
|
|
1028
1062
|
}
|
|
1029
1063
|
return null;
|
|
1030
1064
|
}
|
|
1031
|
-
return
|
|
1065
|
+
return $(E);
|
|
1032
1066
|
}
|
|
1033
|
-
function q(
|
|
1034
|
-
function
|
|
1067
|
+
function q(b) {
|
|
1068
|
+
function E(x, w, A, M, _) {
|
|
1035
1069
|
var R = x[w], L = J(R);
|
|
1036
1070
|
if (L !== "object")
|
|
1037
|
-
return new
|
|
1038
|
-
var U = t({}, x[w],
|
|
1071
|
+
return new m("Invalid " + M + " `" + _ + "` of type `" + L + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
1072
|
+
var U = t({}, x[w], b);
|
|
1039
1073
|
for (var D in U) {
|
|
1040
|
-
var Z =
|
|
1041
|
-
if (r(
|
|
1042
|
-
return W(
|
|
1074
|
+
var Z = b[D];
|
|
1075
|
+
if (r(b, D) && typeof Z != "function")
|
|
1076
|
+
return W(A, M, _, D, X(Z));
|
|
1043
1077
|
if (!Z)
|
|
1044
|
-
return new
|
|
1045
|
-
"Invalid " + M + " `" + _ + "` key `" + D + "` supplied to `" +
|
|
1046
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1078
|
+
return new m(
|
|
1079
|
+
"Invalid " + M + " `" + _ + "` key `" + D + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(x[w], null, " ") + `
|
|
1080
|
+
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
1047
1081
|
);
|
|
1048
|
-
var
|
|
1049
|
-
if (
|
|
1050
|
-
return
|
|
1082
|
+
var P = Z(R, D, A, M, _ + "." + D, n);
|
|
1083
|
+
if (P)
|
|
1084
|
+
return P;
|
|
1051
1085
|
}
|
|
1052
1086
|
return null;
|
|
1053
1087
|
}
|
|
1054
|
-
return
|
|
1088
|
+
return $(E);
|
|
1055
1089
|
}
|
|
1056
|
-
function te(
|
|
1057
|
-
switch (typeof
|
|
1090
|
+
function te(b) {
|
|
1091
|
+
switch (typeof b) {
|
|
1058
1092
|
case "number":
|
|
1059
1093
|
case "string":
|
|
1060
1094
|
case "undefined":
|
|
1061
1095
|
return !0;
|
|
1062
1096
|
case "boolean":
|
|
1063
|
-
return !
|
|
1097
|
+
return !b;
|
|
1064
1098
|
case "object":
|
|
1065
|
-
if (Array.isArray(
|
|
1066
|
-
return
|
|
1067
|
-
if (
|
|
1099
|
+
if (Array.isArray(b))
|
|
1100
|
+
return b.every(te);
|
|
1101
|
+
if (b === null || d(b))
|
|
1068
1102
|
return !0;
|
|
1069
|
-
var
|
|
1070
|
-
if (
|
|
1071
|
-
var x =
|
|
1072
|
-
if (
|
|
1103
|
+
var E = p(b);
|
|
1104
|
+
if (E) {
|
|
1105
|
+
var x = E.call(b), w;
|
|
1106
|
+
if (E !== b.entries) {
|
|
1073
1107
|
for (; !(w = x.next()).done; )
|
|
1074
1108
|
if (!te(w.value))
|
|
1075
1109
|
return !1;
|
|
1076
1110
|
} else
|
|
1077
1111
|
for (; !(w = x.next()).done; ) {
|
|
1078
|
-
var
|
|
1079
|
-
if (
|
|
1112
|
+
var A = w.value;
|
|
1113
|
+
if (A && !te(A[1]))
|
|
1080
1114
|
return !1;
|
|
1081
1115
|
}
|
|
1082
1116
|
} else
|
|
@@ -1086,57 +1120,57 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
|
1086
1120
|
return !1;
|
|
1087
1121
|
}
|
|
1088
1122
|
}
|
|
1089
|
-
function $e(
|
|
1090
|
-
return
|
|
1123
|
+
function $e(b, E) {
|
|
1124
|
+
return b === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
|
|
1091
1125
|
}
|
|
1092
|
-
function J(
|
|
1093
|
-
var
|
|
1094
|
-
return Array.isArray(
|
|
1126
|
+
function J(b) {
|
|
1127
|
+
var E = typeof b;
|
|
1128
|
+
return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" : $e(E, b) ? "symbol" : E;
|
|
1095
1129
|
}
|
|
1096
|
-
function X(
|
|
1097
|
-
if (typeof
|
|
1098
|
-
return "" +
|
|
1099
|
-
var
|
|
1100
|
-
if (
|
|
1101
|
-
if (
|
|
1130
|
+
function X(b) {
|
|
1131
|
+
if (typeof b > "u" || b === null)
|
|
1132
|
+
return "" + b;
|
|
1133
|
+
var E = J(b);
|
|
1134
|
+
if (E === "object") {
|
|
1135
|
+
if (b instanceof Date)
|
|
1102
1136
|
return "date";
|
|
1103
|
-
if (
|
|
1137
|
+
if (b instanceof RegExp)
|
|
1104
1138
|
return "regexp";
|
|
1105
1139
|
}
|
|
1106
|
-
return
|
|
1140
|
+
return E;
|
|
1107
1141
|
}
|
|
1108
|
-
function oe(
|
|
1109
|
-
var
|
|
1110
|
-
switch (
|
|
1142
|
+
function oe(b) {
|
|
1143
|
+
var E = X(b);
|
|
1144
|
+
switch (E) {
|
|
1111
1145
|
case "array":
|
|
1112
1146
|
case "object":
|
|
1113
|
-
return "an " +
|
|
1147
|
+
return "an " + E;
|
|
1114
1148
|
case "boolean":
|
|
1115
1149
|
case "date":
|
|
1116
1150
|
case "regexp":
|
|
1117
|
-
return "a " +
|
|
1151
|
+
return "a " + E;
|
|
1118
1152
|
default:
|
|
1119
|
-
return
|
|
1153
|
+
return E;
|
|
1120
1154
|
}
|
|
1121
1155
|
}
|
|
1122
|
-
function De(
|
|
1123
|
-
return !
|
|
1156
|
+
function De(b) {
|
|
1157
|
+
return !b.constructor || !b.constructor.name ? s : b.constructor.name;
|
|
1124
1158
|
}
|
|
1125
1159
|
return f.checkPropTypes = i, f.resetWarningCache = i.resetWarningCache, f.PropTypes = f, f;
|
|
1126
1160
|
}, st;
|
|
1127
1161
|
}
|
|
1128
|
-
var ct,
|
|
1162
|
+
var ct, cn;
|
|
1129
1163
|
function Bi() {
|
|
1130
|
-
if (
|
|
1131
|
-
|
|
1132
|
-
var e = /* @__PURE__ */
|
|
1164
|
+
if (cn) return ct;
|
|
1165
|
+
cn = 1;
|
|
1166
|
+
var e = /* @__PURE__ */ Gt();
|
|
1133
1167
|
function t() {
|
|
1134
1168
|
}
|
|
1135
1169
|
function n() {
|
|
1136
1170
|
}
|
|
1137
1171
|
return n.resetWarningCache = t, ct = function() {
|
|
1138
|
-
function r(o, d, u, l, c,
|
|
1139
|
-
if (
|
|
1172
|
+
function r(o, d, u, l, c, p) {
|
|
1173
|
+
if (p !== e) {
|
|
1140
1174
|
var s = new Error(
|
|
1141
1175
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1142
1176
|
);
|
|
@@ -1173,10 +1207,10 @@ function Bi() {
|
|
|
1173
1207
|
return a.PropTypes = a, a;
|
|
1174
1208
|
}, ct;
|
|
1175
1209
|
}
|
|
1176
|
-
var
|
|
1210
|
+
var fn;
|
|
1177
1211
|
function Wi() {
|
|
1178
|
-
if (
|
|
1179
|
-
if (
|
|
1212
|
+
if (fn) return je.exports;
|
|
1213
|
+
if (fn = 1, process.env.NODE_ENV !== "production") {
|
|
1180
1214
|
var e = $r(), t = !0;
|
|
1181
1215
|
je.exports = /* @__PURE__ */ Ui()(e.isElement, t);
|
|
1182
1216
|
} else
|
|
@@ -1186,9 +1220,9 @@ function Wi() {
|
|
|
1186
1220
|
var Hi = /* @__PURE__ */ Wi();
|
|
1187
1221
|
const g = /* @__PURE__ */ lr(Hi);
|
|
1188
1222
|
var ft = { exports: {} };
|
|
1189
|
-
var
|
|
1223
|
+
var $n;
|
|
1190
1224
|
function Vi() {
|
|
1191
|
-
return
|
|
1225
|
+
return $n || ($n = 1, (function(e) {
|
|
1192
1226
|
(function() {
|
|
1193
1227
|
var t = {}.hasOwnProperty;
|
|
1194
1228
|
function n() {
|
|
@@ -1262,13 +1296,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1262
1296
|
}
|
|
1263
1297
|
function Xi(e, t) {
|
|
1264
1298
|
if (e) {
|
|
1265
|
-
if (typeof e == "string") return
|
|
1299
|
+
if (typeof e == "string") return pn(e, t);
|
|
1266
1300
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1267
1301
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
1268
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
1302
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return pn(e, t);
|
|
1269
1303
|
}
|
|
1270
1304
|
}
|
|
1271
|
-
function
|
|
1305
|
+
function pn(e, t) {
|
|
1272
1306
|
(t == null || t > e.length) && (t = e.length);
|
|
1273
1307
|
for (var n = 0, r = new Array(t); n < t; n++)
|
|
1274
1308
|
r[n] = e[n];
|
|
@@ -1301,13 +1335,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1301
1335
|
}
|
|
1302
1336
|
function Qi(e, t) {
|
|
1303
1337
|
if (e) {
|
|
1304
|
-
if (typeof e == "string") return
|
|
1338
|
+
if (typeof e == "string") return yn(e, t);
|
|
1305
1339
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1306
1340
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
1307
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
1341
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return yn(e, t);
|
|
1308
1342
|
}
|
|
1309
1343
|
}
|
|
1310
|
-
function
|
|
1344
|
+
function yn(e, t) {
|
|
1311
1345
|
(t == null || t > e.length) && (t = e.length);
|
|
1312
1346
|
for (var n = 0, r = new Array(t); n < t; n++)
|
|
1313
1347
|
r[n] = e[n];
|
|
@@ -1377,15 +1411,15 @@ function ra(e) {
|
|
|
1377
1411
|
end: e.selectionEnd
|
|
1378
1412
|
};
|
|
1379
1413
|
}
|
|
1380
|
-
var
|
|
1414
|
+
var hn = {
|
|
1381
1415
|
Backspace: 8,
|
|
1382
1416
|
Delete: 46
|
|
1383
1417
|
};
|
|
1384
1418
|
function ia(e) {
|
|
1385
1419
|
switch (e.keyCode) {
|
|
1386
|
-
case
|
|
1420
|
+
case hn.Backspace:
|
|
1387
1421
|
return "Backspace";
|
|
1388
|
-
case
|
|
1422
|
+
case hn.Delete:
|
|
1389
1423
|
return "Delete";
|
|
1390
1424
|
}
|
|
1391
1425
|
}
|
|
@@ -1403,7 +1437,7 @@ function oa() {
|
|
|
1403
1437
|
}
|
|
1404
1438
|
var da = /Android/i;
|
|
1405
1439
|
function ua(e, t, n, r, i) {
|
|
1406
|
-
|
|
1440
|
+
vt(t, n, r, void 0, i);
|
|
1407
1441
|
}
|
|
1408
1442
|
function la(e, t, n, r, i) {
|
|
1409
1443
|
if (!na(t)) {
|
|
@@ -1413,7 +1447,7 @@ function la(e, t, n, r, i) {
|
|
|
1413
1447
|
case "Backspace":
|
|
1414
1448
|
e.preventDefault();
|
|
1415
1449
|
var o = ra(t);
|
|
1416
|
-
return o ? (sa(t, o),
|
|
1450
|
+
return o ? (sa(t, o), vt(t, n, r, void 0, i)) : vt(t, n, r, a, i);
|
|
1417
1451
|
}
|
|
1418
1452
|
}
|
|
1419
1453
|
}
|
|
@@ -1421,7 +1455,7 @@ function sa(e, t) {
|
|
|
1421
1455
|
var n = e.value;
|
|
1422
1456
|
n = n.slice(0, t.start) + n.slice(t.end), e.value = n, yr(e, t.start);
|
|
1423
1457
|
}
|
|
1424
|
-
function
|
|
1458
|
+
function vt(e, t, n, r, i) {
|
|
1425
1459
|
var a = qi(e.value, aa(e), t), o = a.value, d = a.caret;
|
|
1426
1460
|
if (r) {
|
|
1427
1461
|
var u = Yi(o, d, r);
|
|
@@ -1431,7 +1465,7 @@ function gt(e, t, n, r, i) {
|
|
|
1431
1465
|
d = l.caret, e.value = c, yr(e, d), i && i(o);
|
|
1432
1466
|
}
|
|
1433
1467
|
var ca = ["ref", "parse", "format", "value", "defaultValue", "controlled", "onChange", "onKeyDown"];
|
|
1434
|
-
function
|
|
1468
|
+
function gn(e, t) {
|
|
1435
1469
|
var n = Object.keys(e);
|
|
1436
1470
|
if (Object.getOwnPropertySymbols) {
|
|
1437
1471
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1444,9 +1478,9 @@ function hn(e, t) {
|
|
|
1444
1478
|
function pe(e) {
|
|
1445
1479
|
for (var t = 1; t < arguments.length; t++) {
|
|
1446
1480
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1447
|
-
t % 2 ?
|
|
1481
|
+
t % 2 ? gn(Object(n), !0).forEach(function(r) {
|
|
1448
1482
|
fa(e, r, n[r]);
|
|
1449
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1483
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gn(Object(n)).forEach(function(r) {
|
|
1450
1484
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
1451
1485
|
});
|
|
1452
1486
|
}
|
|
@@ -1473,21 +1507,21 @@ function pa(e, t) {
|
|
|
1473
1507
|
return n;
|
|
1474
1508
|
}
|
|
1475
1509
|
function ya(e) {
|
|
1476
|
-
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, c = $a(e, ca),
|
|
1477
|
-
|
|
1478
|
-
}, [t]), f = ue(function(
|
|
1479
|
-
return ua(p
|
|
1480
|
-
}, [
|
|
1481
|
-
if (l && l(
|
|
1482
|
-
return la(p
|
|
1483
|
-
}, [
|
|
1510
|
+
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, c = $a(e, ca), p = se(), s = ue(function($) {
|
|
1511
|
+
p.current = $, t && (typeof t == "function" ? t($) : t.current = $);
|
|
1512
|
+
}, [t]), f = ue(function($) {
|
|
1513
|
+
return ua($, p.current, n, r, u);
|
|
1514
|
+
}, [p, n, r, u]), y = ue(function($) {
|
|
1515
|
+
if (l && l($), !$.defaultPrevented)
|
|
1516
|
+
return la($, p.current, n, r, u);
|
|
1517
|
+
}, [p, n, r, u, l]), m = pe(pe({}, c), {}, {
|
|
1484
1518
|
ref: s,
|
|
1485
1519
|
onChange: f,
|
|
1486
1520
|
onKeyDown: y
|
|
1487
1521
|
});
|
|
1488
|
-
return d ? pe(pe({},
|
|
1522
|
+
return d ? pe(pe({}, m), {}, {
|
|
1489
1523
|
value: r(mn(i) ? "" : i).text
|
|
1490
|
-
}) : pe(pe({},
|
|
1524
|
+
}) : pe(pe({}, m), {}, {
|
|
1491
1525
|
defaultValue: r(mn(a) ? "" : a).text
|
|
1492
1526
|
});
|
|
1493
1527
|
}
|
|
@@ -1495,7 +1529,7 @@ function mn(e) {
|
|
|
1495
1529
|
return e == null;
|
|
1496
1530
|
}
|
|
1497
1531
|
var ha = ["inputComponent", "parse", "format", "value", "defaultValue", "onChange", "controlled", "onKeyDown", "type"];
|
|
1498
|
-
function
|
|
1532
|
+
function vn(e, t) {
|
|
1499
1533
|
var n = Object.keys(e);
|
|
1500
1534
|
if (Object.getOwnPropertySymbols) {
|
|
1501
1535
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1505,18 +1539,18 @@ function gn(e, t) {
|
|
|
1505
1539
|
}
|
|
1506
1540
|
return n;
|
|
1507
1541
|
}
|
|
1508
|
-
function
|
|
1542
|
+
function ga(e) {
|
|
1509
1543
|
for (var t = 1; t < arguments.length; t++) {
|
|
1510
1544
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1511
|
-
t % 2 ?
|
|
1512
|
-
|
|
1513
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1545
|
+
t % 2 ? vn(Object(n), !0).forEach(function(r) {
|
|
1546
|
+
ma(e, r, n[r]);
|
|
1547
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vn(Object(n)).forEach(function(r) {
|
|
1514
1548
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
1515
1549
|
});
|
|
1516
1550
|
}
|
|
1517
1551
|
return e;
|
|
1518
1552
|
}
|
|
1519
|
-
function
|
|
1553
|
+
function ma(e, t, n) {
|
|
1520
1554
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
1521
1555
|
}
|
|
1522
1556
|
function va(e, t) {
|
|
@@ -1537,7 +1571,7 @@ function ba(e, t) {
|
|
|
1537
1571
|
return n;
|
|
1538
1572
|
}
|
|
1539
1573
|
function Ye(e, t) {
|
|
1540
|
-
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, c = e.onKeyDown,
|
|
1574
|
+
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, c = e.onKeyDown, p = e.type, s = p === void 0 ? "text" : p, f = va(e, ha), y = ya(ga({
|
|
1541
1575
|
ref: t,
|
|
1542
1576
|
parse: i,
|
|
1543
1577
|
format: a,
|
|
@@ -1548,9 +1582,9 @@ function Ye(e, t) {
|
|
|
1548
1582
|
onKeyDown: c,
|
|
1549
1583
|
type: s
|
|
1550
1584
|
}, f));
|
|
1551
|
-
return /* @__PURE__ */
|
|
1585
|
+
return /* @__PURE__ */ O.createElement(r, y);
|
|
1552
1586
|
}
|
|
1553
|
-
Ye = /* @__PURE__ */
|
|
1587
|
+
Ye = /* @__PURE__ */ O.forwardRef(Ye);
|
|
1554
1588
|
Ye.propTypes = {
|
|
1555
1589
|
// Parses a single characher of `<input/>` text.
|
|
1556
1590
|
parse: g.func.isRequired,
|
|
@@ -1574,7 +1608,7 @@ Ye.propTypes = {
|
|
|
1574
1608
|
onCut: g.func,
|
|
1575
1609
|
onPaste: g.func
|
|
1576
1610
|
};
|
|
1577
|
-
function
|
|
1611
|
+
function bn(e, t) {
|
|
1578
1612
|
e = e.split("-"), t = t.split("-");
|
|
1579
1613
|
for (var n = e[0].split("."), r = t[0].split("."), i = 0; i < 3; i++) {
|
|
1580
1614
|
var a = Number(n[i]), o = Number(r[i]);
|
|
@@ -1603,17 +1637,17 @@ function Qe(e, t) {
|
|
|
1603
1637
|
function Pa(e, t) {
|
|
1604
1638
|
for (var n = 0; n < t.length; n++) {
|
|
1605
1639
|
var r = t[n];
|
|
1606
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
1640
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ea(r.key), r);
|
|
1607
1641
|
}
|
|
1608
1642
|
}
|
|
1609
1643
|
function et(e, t, n) {
|
|
1610
1644
|
return t && Pa(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1611
1645
|
}
|
|
1612
|
-
function
|
|
1613
|
-
var t =
|
|
1646
|
+
function Ea(e) {
|
|
1647
|
+
var t = Na(e, "string");
|
|
1614
1648
|
return be(t) == "symbol" ? t : t + "";
|
|
1615
1649
|
}
|
|
1616
|
-
function
|
|
1650
|
+
function Na(e, t) {
|
|
1617
1651
|
if (be(e) != "object" || !e) return e;
|
|
1618
1652
|
var n = e[Symbol.toPrimitive];
|
|
1619
1653
|
if (n !== void 0) {
|
|
@@ -1623,9 +1657,9 @@ function Ea(e, t) {
|
|
|
1623
1657
|
}
|
|
1624
1658
|
return String(e);
|
|
1625
1659
|
}
|
|
1626
|
-
var Sa = "1.2.0",
|
|
1660
|
+
var Sa = "1.2.0", Oa = "1.7.35", Cn = " ext. ", Ta = /^\d+$/, V = /* @__PURE__ */ (function() {
|
|
1627
1661
|
function e(t) {
|
|
1628
|
-
Qe(this, e), hr(t), this.metadata = t,
|
|
1662
|
+
Qe(this, e), hr(t), this.metadata = t, mr.call(this, t);
|
|
1629
1663
|
}
|
|
1630
1664
|
return et(e, [{
|
|
1631
1665
|
key: "getCountries",
|
|
@@ -1678,14 +1712,14 @@ var Sa = "1.2.0", Ta = "1.7.35", bn = " ext. ", Oa = /^\d+$/, V = /* @__PURE__ *
|
|
|
1678
1712
|
}, {
|
|
1679
1713
|
key: "selectNumberingPlan",
|
|
1680
1714
|
value: function(n, r) {
|
|
1681
|
-
if (n &&
|
|
1715
|
+
if (n && Ta.test(n) && (r = n, n = null), n && n !== "001") {
|
|
1682
1716
|
if (!this.hasCountry(n))
|
|
1683
1717
|
throw new Error("Unknown country: ".concat(n));
|
|
1684
|
-
this.numberingPlan = new
|
|
1718
|
+
this.numberingPlan = new Pn(this.getCountryMetadata(n), this);
|
|
1685
1719
|
} else if (r) {
|
|
1686
1720
|
if (!this.hasCallingCode(r))
|
|
1687
1721
|
throw new Error("Unknown calling code: ".concat(r));
|
|
1688
|
-
this.numberingPlan = new
|
|
1722
|
+
this.numberingPlan = new Pn(this.getNumberingPlanMetadata(r), this);
|
|
1689
1723
|
} else
|
|
1690
1724
|
this.numberingPlan = void 0;
|
|
1691
1725
|
return this;
|
|
@@ -1809,9 +1843,9 @@ var Sa = "1.2.0", Ta = "1.7.35", bn = " ext. ", Oa = /^\d+$/, V = /* @__PURE__ *
|
|
|
1809
1843
|
return this.numberingPlan !== void 0;
|
|
1810
1844
|
}
|
|
1811
1845
|
}]);
|
|
1812
|
-
})(),
|
|
1846
|
+
})(), Pn = /* @__PURE__ */ (function() {
|
|
1813
1847
|
function e(t, n) {
|
|
1814
|
-
Qe(this, e), this.globalMetadataObject = n, this.metadata = t,
|
|
1848
|
+
Qe(this, e), this.globalMetadataObject = n, this.metadata = t, mr.call(this, n.metadata);
|
|
1815
1849
|
}
|
|
1816
1850
|
return et(e, [{
|
|
1817
1851
|
key: "callingCode",
|
|
@@ -1936,13 +1970,13 @@ var Sa = "1.2.0", Ta = "1.7.35", bn = " ext. ", Oa = /^\d+$/, V = /* @__PURE__ *
|
|
|
1936
1970
|
}, {
|
|
1937
1971
|
key: "type",
|
|
1938
1972
|
value: function(n) {
|
|
1939
|
-
if (this.hasTypes() &&
|
|
1940
|
-
return new _a(
|
|
1973
|
+
if (this.hasTypes() && En(this.types(), n))
|
|
1974
|
+
return new _a(En(this.types(), n), this);
|
|
1941
1975
|
}
|
|
1942
1976
|
}, {
|
|
1943
1977
|
key: "ext",
|
|
1944
1978
|
value: function() {
|
|
1945
|
-
return this.v1 || this.v2 ?
|
|
1979
|
+
return this.v1 || this.v2 ? Cn : this.metadata[13] || Cn;
|
|
1946
1980
|
}
|
|
1947
1981
|
}]);
|
|
1948
1982
|
})(), Ia = /* @__PURE__ */ (function() {
|
|
@@ -2009,7 +2043,7 @@ var Sa = "1.2.0", Ta = "1.7.35", bn = " ext. ", Oa = /^\d+$/, V = /* @__PURE__ *
|
|
|
2009
2043
|
}
|
|
2010
2044
|
}]);
|
|
2011
2045
|
})();
|
|
2012
|
-
function
|
|
2046
|
+
function En(e, t) {
|
|
2013
2047
|
switch (t) {
|
|
2014
2048
|
case "FIXED_LINE":
|
|
2015
2049
|
return e[0];
|
|
@@ -2047,12 +2081,12 @@ function le(e, t) {
|
|
|
2047
2081
|
return t.selectNumberingPlan(e).countryCallingCode();
|
|
2048
2082
|
throw new Error("Unknown country: ".concat(e));
|
|
2049
2083
|
}
|
|
2050
|
-
function
|
|
2084
|
+
function gr(e, t) {
|
|
2051
2085
|
return t.countries.hasOwnProperty(e);
|
|
2052
2086
|
}
|
|
2053
|
-
function
|
|
2087
|
+
function mr(e) {
|
|
2054
2088
|
var t = e.version;
|
|
2055
|
-
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ?
|
|
2089
|
+
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? bn(t, Sa) === -1 ? this.v2 = !0 : bn(t, Oa) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
2056
2090
|
}
|
|
2057
2091
|
function tt(e, t, n) {
|
|
2058
2092
|
return Ra(e, t, void 0, n);
|
|
@@ -2121,7 +2155,7 @@ function Nn(e, t) {
|
|
|
2121
2155
|
return r;
|
|
2122
2156
|
}
|
|
2123
2157
|
var La = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
2124
|
-
function
|
|
2158
|
+
function Ut(e, t, n) {
|
|
2125
2159
|
if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
|
|
2126
2160
|
n = new V(n), n.selectNumberingPlan(e.country, e.countryCallingCode);
|
|
2127
2161
|
var r = t.v2 ? e.nationalNumber : e.phone;
|
|
@@ -2141,7 +2175,7 @@ function $t(e, t, n) {
|
|
|
2141
2175
|
}
|
|
2142
2176
|
function Da(e, t, n) {
|
|
2143
2177
|
if (t = t || {}, n = new V(n), n.selectNumberingPlan(e.country, e.countryCallingCode), n.hasTypes())
|
|
2144
|
-
return
|
|
2178
|
+
return Ut(e, t, n.metadata) !== void 0;
|
|
2145
2179
|
var r = t.v2 ? e.nationalNumber : e.phone;
|
|
2146
2180
|
return ae(r, n.nationalNumberPattern());
|
|
2147
2181
|
}
|
|
@@ -2155,7 +2189,7 @@ function ja(e, t, n) {
|
|
|
2155
2189
|
var r = new V(n);
|
|
2156
2190
|
return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
2157
2191
|
}
|
|
2158
|
-
var
|
|
2192
|
+
var Bt = 2, Ga = 17, Ua = 3, Y = "0-90-9٠-٩۰-۹", Ba = "-‐-―−ー-", Wa = "//", Ha = "..", Va = " ", Ka = "()()[]\\[\\]", Ya = "~⁓∼~", ee = "".concat(Ba).concat(Wa).concat(Ha).concat(Va).concat(Ka).concat(Ya), nt = "++", qa = new RegExp("([" + Y + "])");
|
|
2159
2193
|
function br(e, t, n, r) {
|
|
2160
2194
|
if (t) {
|
|
2161
2195
|
var i = new V(r);
|
|
@@ -2169,7 +2203,7 @@ function br(e, t, n, r) {
|
|
|
2169
2203
|
}
|
|
2170
2204
|
}
|
|
2171
2205
|
}
|
|
2172
|
-
function
|
|
2206
|
+
function bt(e, t) {
|
|
2173
2207
|
if (e && t.numberingPlan.nationalPrefixForParsing()) {
|
|
2174
2208
|
var n = new RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
|
|
2175
2209
|
if (r) {
|
|
@@ -2182,8 +2216,8 @@ function vt(e, t) {
|
|
|
2182
2216
|
}
|
|
2183
2217
|
var l;
|
|
2184
2218
|
if (d) {
|
|
2185
|
-
var c = e.indexOf(r[1]),
|
|
2186
|
-
|
|
2219
|
+
var c = e.indexOf(r[1]), p = e.slice(0, c);
|
|
2220
|
+
p === t.numberingPlan.nationalPrefix() && (l = t.numberingPlan.nationalPrefix());
|
|
2187
2221
|
} else
|
|
2188
2222
|
l = r[0];
|
|
2189
2223
|
return {
|
|
@@ -2212,12 +2246,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2212
2246
|
}
|
|
2213
2247
|
function Xa(e, t) {
|
|
2214
2248
|
if (e) {
|
|
2215
|
-
if (typeof e == "string") return
|
|
2249
|
+
if (typeof e == "string") return Sn(e, t);
|
|
2216
2250
|
var n = {}.toString.call(e).slice(8, -1);
|
|
2217
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
2251
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Sn(e, t) : void 0;
|
|
2218
2252
|
}
|
|
2219
2253
|
}
|
|
2220
|
-
function
|
|
2254
|
+
function Sn(e, t) {
|
|
2221
2255
|
(t == null || t > e.length) && (t = e.length);
|
|
2222
2256
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2223
2257
|
return r;
|
|
@@ -2230,14 +2264,14 @@ function Cr(e, t) {
|
|
|
2230
2264
|
if (r.selectNumberingPlan(o), r.leadingDigits()) {
|
|
2231
2265
|
if (e && e.search(r.leadingDigits()) === 0)
|
|
2232
2266
|
return o;
|
|
2233
|
-
} else if (
|
|
2267
|
+
} else if (Ut({
|
|
2234
2268
|
phone: e,
|
|
2235
2269
|
country: o
|
|
2236
2270
|
}, void 0, r.metadata))
|
|
2237
2271
|
return o;
|
|
2238
2272
|
}
|
|
2239
2273
|
}
|
|
2240
|
-
function
|
|
2274
|
+
function Wt(e, t) {
|
|
2241
2275
|
var n = t.nationalNumber, r = t.metadata, i = r.getCountryCodesForCallingCode(e);
|
|
2242
2276
|
if (i)
|
|
2243
2277
|
return i.length === 1 ? i[0] : Cr(n, {
|
|
@@ -2245,14 +2279,14 @@ function Bt(e, t) {
|
|
|
2245
2279
|
metadata: r.metadata
|
|
2246
2280
|
});
|
|
2247
2281
|
}
|
|
2248
|
-
function
|
|
2249
|
-
var r =
|
|
2282
|
+
function Ct(e, t, n) {
|
|
2283
|
+
var r = bt(e, n), i = r.carrierCode, a = r.nationalNumber;
|
|
2250
2284
|
if (a !== e) {
|
|
2251
2285
|
if (!Ja(e, a, n))
|
|
2252
2286
|
return {
|
|
2253
2287
|
nationalNumber: e
|
|
2254
2288
|
};
|
|
2255
|
-
if (n.numberingPlan.possibleLengths() && (t || (t =
|
|
2289
|
+
if (n.numberingPlan.possibleLengths() && (t || (t = Wt(n.numberingPlan.callingCode(), {
|
|
2256
2290
|
nationalNumber: a,
|
|
2257
2291
|
metadata: n
|
|
2258
2292
|
})), !za(a, t, n)))
|
|
@@ -2281,7 +2315,7 @@ function Pr(e, t, n, r, i) {
|
|
|
2281
2315
|
var a = t || n ? le(t || n, i) : r;
|
|
2282
2316
|
if (e.indexOf(a) === 0) {
|
|
2283
2317
|
i = new V(i), i.selectNumberingPlan(t || n, a);
|
|
2284
|
-
var o = e.slice(a.length), d =
|
|
2318
|
+
var o = e.slice(a.length), d = Ct(o, t, i), u = d.nationalNumber, l = Ct(e, t, i), c = l.nationalNumber;
|
|
2285
2319
|
if (!ae(c, i.nationalNumberPattern()) && ae(u, i.nationalNumberPattern()) || tt(c, t, i) === "TOO_LONG")
|
|
2286
2320
|
return {
|
|
2287
2321
|
countryCallingCode: a,
|
|
@@ -2292,7 +2326,7 @@ function Pr(e, t, n, r, i) {
|
|
|
2292
2326
|
number: e
|
|
2293
2327
|
};
|
|
2294
2328
|
}
|
|
2295
|
-
function
|
|
2329
|
+
function Ht(e, t, n, r, i) {
|
|
2296
2330
|
if (!e)
|
|
2297
2331
|
return {};
|
|
2298
2332
|
var a;
|
|
@@ -2321,21 +2355,21 @@ function Wt(e, t, n, r, i) {
|
|
|
2321
2355
|
return {};
|
|
2322
2356
|
i = new V(i);
|
|
2323
2357
|
for (var c = 2; c - 1 <= Ua && c <= e.length; ) {
|
|
2324
|
-
var
|
|
2325
|
-
if (i.hasCallingCode(
|
|
2326
|
-
return i.selectNumberingPlan(
|
|
2358
|
+
var p = e.slice(1, c);
|
|
2359
|
+
if (i.hasCallingCode(p))
|
|
2360
|
+
return i.selectNumberingPlan(p), {
|
|
2327
2361
|
countryCallingCodeSource: a ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
|
2328
|
-
countryCallingCode:
|
|
2362
|
+
countryCallingCode: p,
|
|
2329
2363
|
number: e.slice(c)
|
|
2330
2364
|
};
|
|
2331
2365
|
c++;
|
|
2332
2366
|
}
|
|
2333
2367
|
return {};
|
|
2334
2368
|
}
|
|
2335
|
-
function
|
|
2369
|
+
function Er(e) {
|
|
2336
2370
|
return e.replace(new RegExp("[".concat(ee, "]+"), "g"), " ").trim();
|
|
2337
2371
|
}
|
|
2338
|
-
var
|
|
2372
|
+
var Nr = /(\$\d)/;
|
|
2339
2373
|
function Sr(e, t, n) {
|
|
2340
2374
|
var r = n.useInternationalFormat, i = n.withNationalPrefix;
|
|
2341
2375
|
n.carrierCode, n.metadata;
|
|
@@ -2353,9 +2387,9 @@ function Sr(e, t, n) {
|
|
|
2353
2387
|
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
|
2354
2388
|
// : format.format()
|
|
2355
2389
|
// )
|
|
2356
|
-
i && t.nationalPrefixFormattingRule() ? t.format().replace(
|
|
2390
|
+
i && t.nationalPrefixFormattingRule() ? t.format().replace(Nr, t.nationalPrefixFormattingRule()) : t.format()
|
|
2357
2391
|
));
|
|
2358
|
-
return r ?
|
|
2392
|
+
return r ? Er(a) : a;
|
|
2359
2393
|
}
|
|
2360
2394
|
var Qa = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
2361
2395
|
function eo(e, t, n) {
|
|
@@ -2368,18 +2402,18 @@ function eo(e, t, n) {
|
|
|
2368
2402
|
var to = ";ext=", ye = function(t) {
|
|
2369
2403
|
return "([".concat(Y, "]{1,").concat(t, "})");
|
|
2370
2404
|
};
|
|
2371
|
-
function
|
|
2372
|
-
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)", c = "[- ]+",
|
|
2373
|
-
return f + "|" + y + "|" +
|
|
2405
|
+
function Or(e) {
|
|
2406
|
+
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)", c = "[- ]+", p = "[ \\t]*", s = "(?:,{2}|;)", f = to + ye(t), y = a + u + o + ye(t) + d, m = a + l + o + ye(r) + d, $ = c + ye(i) + "#", C = p + s + o + ye(n) + d, T = p + "(?:,)+" + o + ye(r) + d;
|
|
2407
|
+
return f + "|" + y + "|" + m + "|" + $ + "|" + C + "|" + T;
|
|
2374
2408
|
}
|
|
2375
|
-
var no = "[" + Y + "]{" +
|
|
2376
|
-
"(?:" +
|
|
2409
|
+
var no = "[" + Y + "]{" + Bt + "}", ro = "[" + nt + "]{0,1}(?:[" + ee + "]*[" + Y + "]){3,}[" + ee + Y + "]*", io = new RegExp("^[" + nt + "]{0,1}(?:[" + ee + "]*[" + Y + "]){1,2}$", "i"), ao = ro + // Phone number extensions
|
|
2410
|
+
"(?:" + Or() + ")?", oo = new RegExp(
|
|
2377
2411
|
// Either a short two-digit-only phone number
|
|
2378
2412
|
"^" + no + "$|^" + ao + "$",
|
|
2379
2413
|
"i"
|
|
2380
2414
|
);
|
|
2381
2415
|
function uo(e) {
|
|
2382
|
-
return e.length >=
|
|
2416
|
+
return e.length >= Bt && oo.test(e);
|
|
2383
2417
|
}
|
|
2384
2418
|
function lo(e) {
|
|
2385
2419
|
return io.test(e);
|
|
@@ -2392,13 +2426,13 @@ function so(e) {
|
|
|
2392
2426
|
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
|
2393
2427
|
return "tel:".concat(t).concat(n ? ";ext=" + n : "");
|
|
2394
2428
|
}
|
|
2395
|
-
var
|
|
2429
|
+
var On = {
|
|
2396
2430
|
formatExtension: function(t, n, r) {
|
|
2397
2431
|
return "".concat(t).concat(r.ext()).concat(n);
|
|
2398
2432
|
}
|
|
2399
2433
|
};
|
|
2400
2434
|
function co(e, t, n, r) {
|
|
2401
|
-
if (n ? n = po({},
|
|
2435
|
+
if (n ? n = po({}, On, n) : n = On, r = new V(r), e.country && e.country !== "001") {
|
|
2402
2436
|
if (!r.hasCountry(e.country))
|
|
2403
2437
|
throw new Error("Unknown country: ".concat(e.country));
|
|
2404
2438
|
r.selectNumberingPlan(e.country);
|
|
@@ -2481,13 +2515,13 @@ function yo(e, t) {
|
|
|
2481
2515
|
n++;
|
|
2482
2516
|
}
|
|
2483
2517
|
}
|
|
2484
|
-
function
|
|
2518
|
+
function Ne(e) {
|
|
2485
2519
|
"@babel/helpers - typeof";
|
|
2486
|
-
return
|
|
2520
|
+
return Ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2487
2521
|
return typeof t;
|
|
2488
2522
|
} : function(t) {
|
|
2489
2523
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2490
|
-
},
|
|
2524
|
+
}, Ne(e);
|
|
2491
2525
|
}
|
|
2492
2526
|
function Tn(e, t) {
|
|
2493
2527
|
var n = Object.keys(e);
|
|
@@ -2499,7 +2533,7 @@ function Tn(e, t) {
|
|
|
2499
2533
|
}
|
|
2500
2534
|
return n;
|
|
2501
2535
|
}
|
|
2502
|
-
function
|
|
2536
|
+
function In(e) {
|
|
2503
2537
|
for (var t = 1; t < arguments.length; t++) {
|
|
2504
2538
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2505
2539
|
t % 2 ? Tn(Object(n), !0).forEach(function(r) {
|
|
@@ -2511,37 +2545,37 @@ function On(e) {
|
|
|
2511
2545
|
return e;
|
|
2512
2546
|
}
|
|
2513
2547
|
function ho(e, t, n) {
|
|
2514
|
-
return (t =
|
|
2548
|
+
return (t = Tr(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
2515
2549
|
}
|
|
2516
|
-
function
|
|
2550
|
+
function go(e, t) {
|
|
2517
2551
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2518
2552
|
}
|
|
2519
|
-
function
|
|
2553
|
+
function mo(e, t) {
|
|
2520
2554
|
for (var n = 0; n < t.length; n++) {
|
|
2521
2555
|
var r = t[n];
|
|
2522
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
2556
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Tr(r.key), r);
|
|
2523
2557
|
}
|
|
2524
2558
|
}
|
|
2525
2559
|
function vo(e, t, n) {
|
|
2526
|
-
return t &&
|
|
2560
|
+
return t && mo(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2527
2561
|
}
|
|
2528
|
-
function
|
|
2562
|
+
function Tr(e) {
|
|
2529
2563
|
var t = bo(e, "string");
|
|
2530
|
-
return
|
|
2564
|
+
return Ne(t) == "symbol" ? t : t + "";
|
|
2531
2565
|
}
|
|
2532
2566
|
function bo(e, t) {
|
|
2533
|
-
if (
|
|
2567
|
+
if (Ne(e) != "object" || !e) return e;
|
|
2534
2568
|
var n = e[Symbol.toPrimitive];
|
|
2535
2569
|
if (n !== void 0) {
|
|
2536
2570
|
var r = n.call(e, t);
|
|
2537
|
-
if (
|
|
2571
|
+
if (Ne(r) != "object") return r;
|
|
2538
2572
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2539
2573
|
}
|
|
2540
2574
|
return String(e);
|
|
2541
2575
|
}
|
|
2542
2576
|
var Ir = /* @__PURE__ */ (function() {
|
|
2543
2577
|
function e(t, n, r) {
|
|
2544
|
-
if (
|
|
2578
|
+
if (go(this, e), !t)
|
|
2545
2579
|
throw new TypeError("First argument is required");
|
|
2546
2580
|
if (typeof t != "string")
|
|
2547
2581
|
throw new TypeError("First argument must be a string");
|
|
@@ -2550,9 +2584,9 @@ var Ir = /* @__PURE__ */ (function() {
|
|
|
2550
2584
|
if (ce(n) && ce(n.countries)) {
|
|
2551
2585
|
r = n;
|
|
2552
2586
|
var i = t;
|
|
2553
|
-
if (!
|
|
2587
|
+
if (!Eo.test(i))
|
|
2554
2588
|
throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
|
|
2555
|
-
var a =
|
|
2589
|
+
var a = Ht(i, void 0, void 0, void 0, r), o = a.countryCallingCode, d = a.number;
|
|
2556
2590
|
if (n = d, t = o, !n)
|
|
2557
2591
|
throw new Error("Invalid `number` argument passed: too short");
|
|
2558
2592
|
}
|
|
@@ -2618,14 +2652,14 @@ var Ir = /* @__PURE__ */ (function() {
|
|
|
2618
2652
|
}, {
|
|
2619
2653
|
key: "getType",
|
|
2620
2654
|
value: function() {
|
|
2621
|
-
return
|
|
2655
|
+
return Ut(this, {
|
|
2622
2656
|
v2: !0
|
|
2623
2657
|
}, this.getMetadata());
|
|
2624
2658
|
}
|
|
2625
2659
|
}, {
|
|
2626
2660
|
key: "format",
|
|
2627
2661
|
value: function(n, r) {
|
|
2628
|
-
return co(this, n, r ?
|
|
2662
|
+
return co(this, n, r ? In(In({}, r), {}, {
|
|
2629
2663
|
v2: !0
|
|
2630
2664
|
}) : {
|
|
2631
2665
|
v2: !0
|
|
@@ -2657,26 +2691,26 @@ function Po(e, t) {
|
|
|
2657
2691
|
countryCallingCode: r
|
|
2658
2692
|
};
|
|
2659
2693
|
}
|
|
2660
|
-
var
|
|
2661
|
-
function
|
|
2694
|
+
var Eo = /^\+\d+$/;
|
|
2695
|
+
function Pt(e) {
|
|
2662
2696
|
"@babel/helpers - typeof";
|
|
2663
|
-
return
|
|
2697
|
+
return Pt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2664
2698
|
return typeof t;
|
|
2665
2699
|
} : function(t) {
|
|
2666
2700
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2667
|
-
},
|
|
2701
|
+
}, Pt(e);
|
|
2668
2702
|
}
|
|
2669
|
-
function
|
|
2703
|
+
function No(e, t, n) {
|
|
2670
2704
|
return Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2671
2705
|
}
|
|
2672
2706
|
function So(e, t) {
|
|
2673
2707
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2674
2708
|
}
|
|
2675
|
-
function
|
|
2676
|
-
return t =
|
|
2709
|
+
function Oo(e, t, n) {
|
|
2710
|
+
return t = Oe(t), To(e, Vt() ? Reflect.construct(t, n || [], Oe(e).constructor) : t.apply(e, n));
|
|
2677
2711
|
}
|
|
2678
|
-
function
|
|
2679
|
-
if (t && (
|
|
2712
|
+
function To(e, t) {
|
|
2713
|
+
if (t && (Pt(t) == "object" || typeof t == "function")) return t;
|
|
2680
2714
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2681
2715
|
return Io(e);
|
|
2682
2716
|
}
|
|
@@ -2688,9 +2722,9 @@ function Ao(e, t) {
|
|
|
2688
2722
|
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2689
2723
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Se(e, t);
|
|
2690
2724
|
}
|
|
2691
|
-
function
|
|
2725
|
+
function Et(e) {
|
|
2692
2726
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
2693
|
-
return
|
|
2727
|
+
return Et = function(r) {
|
|
2694
2728
|
if (r === null || !wo(r)) return r;
|
|
2695
2729
|
if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
|
|
2696
2730
|
if (t !== void 0) {
|
|
@@ -2698,25 +2732,25 @@ function Pt(e) {
|
|
|
2698
2732
|
t.set(r, i);
|
|
2699
2733
|
}
|
|
2700
2734
|
function i() {
|
|
2701
|
-
return _o(r, arguments,
|
|
2735
|
+
return _o(r, arguments, Oe(this).constructor);
|
|
2702
2736
|
}
|
|
2703
2737
|
return i.prototype = Object.create(r.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), Se(i, r);
|
|
2704
|
-
},
|
|
2738
|
+
}, Et(e);
|
|
2705
2739
|
}
|
|
2706
2740
|
function _o(e, t, n) {
|
|
2707
|
-
if (
|
|
2741
|
+
if (Vt()) return Reflect.construct.apply(null, arguments);
|
|
2708
2742
|
var r = [null];
|
|
2709
2743
|
r.push.apply(r, t);
|
|
2710
2744
|
var i = new (e.bind.apply(e, r))();
|
|
2711
2745
|
return n && Se(i, n.prototype), i;
|
|
2712
2746
|
}
|
|
2713
|
-
function
|
|
2747
|
+
function Vt() {
|
|
2714
2748
|
try {
|
|
2715
2749
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2716
2750
|
}));
|
|
2717
2751
|
} catch {
|
|
2718
2752
|
}
|
|
2719
|
-
return (
|
|
2753
|
+
return (Vt = function() {
|
|
2720
2754
|
return !!e;
|
|
2721
2755
|
})();
|
|
2722
2756
|
}
|
|
@@ -2732,23 +2766,23 @@ function Se(e, t) {
|
|
|
2732
2766
|
return n.__proto__ = r, n;
|
|
2733
2767
|
}, Se(e, t);
|
|
2734
2768
|
}
|
|
2735
|
-
function
|
|
2736
|
-
return
|
|
2769
|
+
function Oe(e) {
|
|
2770
|
+
return Oe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
2737
2771
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
2738
|
-
},
|
|
2772
|
+
}, Oe(e);
|
|
2739
2773
|
}
|
|
2740
2774
|
var re = /* @__PURE__ */ (function(e) {
|
|
2741
2775
|
function t(n) {
|
|
2742
2776
|
var r;
|
|
2743
|
-
return So(this, t), r =
|
|
2777
|
+
return So(this, t), r = Oo(this, t, [n]), Object.setPrototypeOf(r, t.prototype), r.name = r.constructor.name, r;
|
|
2744
2778
|
}
|
|
2745
|
-
return Ao(t, e),
|
|
2746
|
-
})(/* @__PURE__ */
|
|
2779
|
+
return Ao(t, e), No(t);
|
|
2780
|
+
})(/* @__PURE__ */ Et(Error)), An = new RegExp("(?:" + Or() + ")$", "i");
|
|
2747
2781
|
function Ro(e) {
|
|
2748
|
-
var t = e.search(
|
|
2782
|
+
var t = e.search(An);
|
|
2749
2783
|
if (t < 0)
|
|
2750
2784
|
return {};
|
|
2751
|
-
for (var n = e.slice(0, t), r = e.match(
|
|
2785
|
+
for (var n = e.slice(0, t), r = e.match(An), i = 1; i < r.length; ) {
|
|
2752
2786
|
if (r[i])
|
|
2753
2787
|
return {
|
|
2754
2788
|
number: n,
|
|
@@ -2772,12 +2806,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2772
2806
|
}
|
|
2773
2807
|
function Fo(e, t) {
|
|
2774
2808
|
if (e) {
|
|
2775
|
-
if (typeof e == "string") return
|
|
2809
|
+
if (typeof e == "string") return _n(e, t);
|
|
2776
2810
|
var n = {}.toString.call(e).slice(8, -1);
|
|
2777
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
2811
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? _n(e, t) : void 0;
|
|
2778
2812
|
}
|
|
2779
2813
|
}
|
|
2780
|
-
function
|
|
2814
|
+
function _n(e, t) {
|
|
2781
2815
|
(t == null || t > e.length) && (t = e.length);
|
|
2782
2816
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2783
2817
|
return r;
|
|
@@ -2879,12 +2913,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2879
2913
|
}
|
|
2880
2914
|
function Do(e, t) {
|
|
2881
2915
|
if (e) {
|
|
2882
|
-
if (typeof e == "string") return
|
|
2916
|
+
if (typeof e == "string") return wn(e, t);
|
|
2883
2917
|
var n = {}.toString.call(e).slice(8, -1);
|
|
2884
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
2918
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? wn(e, t) : void 0;
|
|
2885
2919
|
}
|
|
2886
2920
|
}
|
|
2887
|
-
function
|
|
2921
|
+
function wn(e, t) {
|
|
2888
2922
|
(t == null || t > e.length) && (t = e.length);
|
|
2889
2923
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2890
2924
|
return r;
|
|
@@ -2906,12 +2940,12 @@ function _r(e, t, n) {
|
|
|
2906
2940
|
}
|
|
2907
2941
|
return Ar(e);
|
|
2908
2942
|
}
|
|
2909
|
-
var wr = "+", ko = "[\\-\\.\\(\\)]?",
|
|
2943
|
+
var wr = "+", ko = "[\\-\\.\\(\\)]?", Rn = "([" + Y + "]|" + ko + ")", jo = "^\\" + wr + Rn + "*[" + Y + "]" + Rn + "*$", Go = new RegExp(jo, "g"), St = Y, Uo = "[" + St + "]+((\\-)*[" + St + "])*", Bo = "a-zA-Z", Wo = "[" + Bo + "]+((\\-)*[" + St + "])*", Ho = "^(" + Uo + "\\.)*" + Wo + "\\.?$", Vo = new RegExp(Ho, "g"), xn = "tel:", Ot = ";phone-context=", Ko = ";isub=";
|
|
2910
2944
|
function Yo(e) {
|
|
2911
|
-
var t = e.indexOf(
|
|
2945
|
+
var t = e.indexOf(Ot);
|
|
2912
2946
|
if (t < 0)
|
|
2913
2947
|
return null;
|
|
2914
|
-
var n = t +
|
|
2948
|
+
var n = t + Ot.length;
|
|
2915
2949
|
if (n >= e.length)
|
|
2916
2950
|
return "";
|
|
2917
2951
|
var r = e.indexOf(";", n);
|
|
@@ -2929,9 +2963,9 @@ function Zo(e, t) {
|
|
|
2929
2963
|
i = n(e) || "";
|
|
2930
2964
|
else {
|
|
2931
2965
|
i = "", r.charAt(0) === wr && (i += r);
|
|
2932
|
-
var a = e.indexOf(
|
|
2933
|
-
a >= 0 ? o = a +
|
|
2934
|
-
var d = e.indexOf(
|
|
2966
|
+
var a = e.indexOf(xn), o;
|
|
2967
|
+
a >= 0 ? o = a + xn.length : o = 0;
|
|
2968
|
+
var d = e.indexOf(Ot);
|
|
2935
2969
|
i += e.substring(o, d);
|
|
2936
2970
|
}
|
|
2937
2971
|
var u = i.indexOf(Ko);
|
|
@@ -2948,13 +2982,13 @@ function Qo(e, t, n) {
|
|
|
2948
2982
|
throw o === "TOO_SHORT" ? new re("TOO_SHORT") : new re("NOT_A_NUMBER");
|
|
2949
2983
|
return {};
|
|
2950
2984
|
}
|
|
2951
|
-
var d = rd(i, t.defaultCountry, t.defaultCallingCode, n), u = d.country, l = d.nationalNumber, c = d.countryCallingCode,
|
|
2985
|
+
var d = rd(i, t.defaultCountry, t.defaultCallingCode, n), u = d.country, l = d.nationalNumber, c = d.countryCallingCode, p = d.countryCallingCodeSource, s = d.carrierCode;
|
|
2952
2986
|
if (!n.hasSelectedNumberingPlan()) {
|
|
2953
2987
|
if (t.v2)
|
|
2954
2988
|
throw new re("INVALID_COUNTRY");
|
|
2955
2989
|
return {};
|
|
2956
2990
|
}
|
|
2957
|
-
if (!l || l.length <
|
|
2991
|
+
if (!l || l.length < Bt) {
|
|
2958
2992
|
if (t.v2)
|
|
2959
2993
|
throw new re("TOO_SHORT");
|
|
2960
2994
|
return {};
|
|
@@ -2966,7 +3000,7 @@ function Qo(e, t, n) {
|
|
|
2966
3000
|
}
|
|
2967
3001
|
if (t.v2) {
|
|
2968
3002
|
var f = new Ir(c, l, n.metadata);
|
|
2969
|
-
return u && (f.country = u), s && (f.carrierCode = s), a && (f.ext = a), f.__countryCallingCodeSource =
|
|
3003
|
+
return u && (f.country = u), s && (f.carrierCode = s), a && (f.ext = a), f.__countryCallingCodeSource = p, f;
|
|
2970
3004
|
}
|
|
2971
3005
|
var y = (t.extended ? n.hasSelectedNumberingPlan() : u) ? ae(l, n.nationalNumberPattern()) : !1;
|
|
2972
3006
|
return t.extended ? {
|
|
@@ -3018,7 +3052,7 @@ function nd(e, t, n) {
|
|
|
3018
3052
|
return n && (r.ext = n), r;
|
|
3019
3053
|
}
|
|
3020
3054
|
function rd(e, t, n, r) {
|
|
3021
|
-
var i =
|
|
3055
|
+
var i = Ht(Nt(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, d = i.number, u;
|
|
3022
3056
|
if (o)
|
|
3023
3057
|
r.selectNumberingPlan(o);
|
|
3024
3058
|
else if (d && (t || n))
|
|
@@ -3029,7 +3063,7 @@ function rd(e, t, n, r) {
|
|
|
3029
3063
|
countryCallingCodeSource: a,
|
|
3030
3064
|
countryCallingCode: o
|
|
3031
3065
|
};
|
|
3032
|
-
var l =
|
|
3066
|
+
var l = Ct(Nt(d), u, r), c = l.nationalNumber, p = l.carrierCode, s = Wt(o, {
|
|
3033
3067
|
nationalNumber: c,
|
|
3034
3068
|
metadata: r
|
|
3035
3069
|
});
|
|
@@ -3038,18 +3072,18 @@ function rd(e, t, n, r) {
|
|
|
3038
3072
|
countryCallingCode: o,
|
|
3039
3073
|
countryCallingCodeSource: a,
|
|
3040
3074
|
nationalNumber: c,
|
|
3041
|
-
carrierCode:
|
|
3075
|
+
carrierCode: p
|
|
3042
3076
|
};
|
|
3043
3077
|
}
|
|
3044
|
-
function
|
|
3078
|
+
function Te(e) {
|
|
3045
3079
|
"@babel/helpers - typeof";
|
|
3046
|
-
return
|
|
3080
|
+
return Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3047
3081
|
return typeof t;
|
|
3048
3082
|
} : function(t) {
|
|
3049
3083
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3050
|
-
},
|
|
3084
|
+
}, Te(e);
|
|
3051
3085
|
}
|
|
3052
|
-
function
|
|
3086
|
+
function Fn(e, t) {
|
|
3053
3087
|
var n = Object.keys(e);
|
|
3054
3088
|
if (Object.getOwnPropertySymbols) {
|
|
3055
3089
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -3059,12 +3093,12 @@ function xn(e, t) {
|
|
|
3059
3093
|
}
|
|
3060
3094
|
return n;
|
|
3061
3095
|
}
|
|
3062
|
-
function
|
|
3096
|
+
function Mn(e) {
|
|
3063
3097
|
for (var t = 1; t < arguments.length; t++) {
|
|
3064
3098
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3065
|
-
t % 2 ?
|
|
3099
|
+
t % 2 ? Fn(Object(n), !0).forEach(function(r) {
|
|
3066
3100
|
id(e, r, n[r]);
|
|
3067
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
3101
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Fn(Object(n)).forEach(function(r) {
|
|
3068
3102
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
3069
3103
|
});
|
|
3070
3104
|
}
|
|
@@ -3075,20 +3109,20 @@ function id(e, t, n) {
|
|
|
3075
3109
|
}
|
|
3076
3110
|
function ad(e) {
|
|
3077
3111
|
var t = od(e, "string");
|
|
3078
|
-
return
|
|
3112
|
+
return Te(t) == "symbol" ? t : t + "";
|
|
3079
3113
|
}
|
|
3080
3114
|
function od(e, t) {
|
|
3081
|
-
if (
|
|
3115
|
+
if (Te(e) != "object" || !e) return e;
|
|
3082
3116
|
var n = e[Symbol.toPrimitive];
|
|
3083
3117
|
if (n !== void 0) {
|
|
3084
3118
|
var r = n.call(e, t);
|
|
3085
|
-
if (
|
|
3119
|
+
if (Te(r) != "object") return r;
|
|
3086
3120
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3087
3121
|
}
|
|
3088
3122
|
return (t === "string" ? String : Number)(e);
|
|
3089
3123
|
}
|
|
3090
3124
|
function dd(e, t, n) {
|
|
3091
|
-
return Qo(e,
|
|
3125
|
+
return Qo(e, Mn(Mn({}, t), {}, {
|
|
3092
3126
|
v2: !0
|
|
3093
3127
|
}), n);
|
|
3094
3128
|
}
|
|
@@ -3100,7 +3134,7 @@ function Ie(e) {
|
|
|
3100
3134
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3101
3135
|
}, Ie(e);
|
|
3102
3136
|
}
|
|
3103
|
-
function
|
|
3137
|
+
function Ln(e, t) {
|
|
3104
3138
|
var n = Object.keys(e);
|
|
3105
3139
|
if (Object.getOwnPropertySymbols) {
|
|
3106
3140
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -3113,9 +3147,9 @@ function Mn(e, t) {
|
|
|
3113
3147
|
function ud(e) {
|
|
3114
3148
|
for (var t = 1; t < arguments.length; t++) {
|
|
3115
3149
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3116
|
-
t % 2 ?
|
|
3150
|
+
t % 2 ? Ln(Object(n), !0).forEach(function(r) {
|
|
3117
3151
|
ld(e, r, n[r]);
|
|
3118
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
3152
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ln(Object(n)).forEach(function(r) {
|
|
3119
3153
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
3120
3154
|
});
|
|
3121
3155
|
}
|
|
@@ -3147,12 +3181,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3147
3181
|
}
|
|
3148
3182
|
function pd(e, t) {
|
|
3149
3183
|
if (e) {
|
|
3150
|
-
if (typeof e == "string") return
|
|
3184
|
+
if (typeof e == "string") return Dn(e, t);
|
|
3151
3185
|
var n = {}.toString.call(e).slice(8, -1);
|
|
3152
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
3186
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Dn(e, t) : void 0;
|
|
3153
3187
|
}
|
|
3154
3188
|
}
|
|
3155
|
-
function
|
|
3189
|
+
function Dn(e, t) {
|
|
3156
3190
|
(t == null || t > e.length) && (t = e.length);
|
|
3157
3191
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
3158
3192
|
return r;
|
|
@@ -3178,7 +3212,7 @@ function yd(e, t) {
|
|
|
3178
3212
|
function hd(e) {
|
|
3179
3213
|
if (Array.isArray(e)) return e;
|
|
3180
3214
|
}
|
|
3181
|
-
function
|
|
3215
|
+
function gd(e) {
|
|
3182
3216
|
var t = Array.prototype.slice.call(e), n = fd(t, 4), r = n[0], i = n[1], a = n[2], o = n[3], d, u, l;
|
|
3183
3217
|
if (typeof r == "string")
|
|
3184
3218
|
d = r;
|
|
@@ -3204,7 +3238,7 @@ function Ae(e) {
|
|
|
3204
3238
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3205
3239
|
}, Ae(e);
|
|
3206
3240
|
}
|
|
3207
|
-
function
|
|
3241
|
+
function kn(e, t) {
|
|
3208
3242
|
var n = Object.keys(e);
|
|
3209
3243
|
if (Object.getOwnPropertySymbols) {
|
|
3210
3244
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -3214,18 +3248,18 @@ function Dn(e, t) {
|
|
|
3214
3248
|
}
|
|
3215
3249
|
return n;
|
|
3216
3250
|
}
|
|
3217
|
-
function
|
|
3251
|
+
function jn(e) {
|
|
3218
3252
|
for (var t = 1; t < arguments.length; t++) {
|
|
3219
3253
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3220
|
-
t % 2 ?
|
|
3221
|
-
|
|
3222
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
3254
|
+
t % 2 ? kn(Object(n), !0).forEach(function(r) {
|
|
3255
|
+
md(e, r, n[r]);
|
|
3256
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kn(Object(n)).forEach(function(r) {
|
|
3223
3257
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
3224
3258
|
});
|
|
3225
3259
|
}
|
|
3226
3260
|
return e;
|
|
3227
3261
|
}
|
|
3228
|
-
function
|
|
3262
|
+
function md(e, t, n) {
|
|
3229
3263
|
return (t = vd(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
3230
3264
|
}
|
|
3231
3265
|
function vd(e) {
|
|
@@ -3243,7 +3277,7 @@ function bd(e, t) {
|
|
|
3243
3277
|
return (t === "string" ? String : Number)(e);
|
|
3244
3278
|
}
|
|
3245
3279
|
function Cd(e, t, n) {
|
|
3246
|
-
t && t.defaultCountry && !
|
|
3280
|
+
t && t.defaultCountry && !gr(t.defaultCountry, n) && (t = jn(jn({}, t), {}, {
|
|
3247
3281
|
defaultCountry: void 0
|
|
3248
3282
|
}));
|
|
3249
3283
|
try {
|
|
@@ -3253,7 +3287,7 @@ function Cd(e, t, n) {
|
|
|
3253
3287
|
}
|
|
3254
3288
|
}
|
|
3255
3289
|
function Rr() {
|
|
3256
|
-
var e =
|
|
3290
|
+
var e = gd(arguments), t = e.text, n = e.options, r = e.metadata;
|
|
3257
3291
|
return Cd(t, n, r);
|
|
3258
3292
|
}
|
|
3259
3293
|
function _e(e) {
|
|
@@ -3267,20 +3301,20 @@ function _e(e) {
|
|
|
3267
3301
|
function Pd(e, t) {
|
|
3268
3302
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
3269
3303
|
}
|
|
3270
|
-
function
|
|
3304
|
+
function Ed(e, t) {
|
|
3271
3305
|
for (var n = 0; n < t.length; n++) {
|
|
3272
3306
|
var r = t[n];
|
|
3273
3307
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Sd(r.key), r);
|
|
3274
3308
|
}
|
|
3275
3309
|
}
|
|
3276
|
-
function
|
|
3277
|
-
return t &&
|
|
3310
|
+
function Nd(e, t, n) {
|
|
3311
|
+
return t && Ed(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
3278
3312
|
}
|
|
3279
3313
|
function Sd(e) {
|
|
3280
|
-
var t =
|
|
3314
|
+
var t = Od(e, "string");
|
|
3281
3315
|
return _e(t) == "symbol" ? t : t + "";
|
|
3282
3316
|
}
|
|
3283
|
-
function
|
|
3317
|
+
function Od(e, t) {
|
|
3284
3318
|
if (_e(e) != "object" || !e) return e;
|
|
3285
3319
|
var n = e[Symbol.toPrimitive];
|
|
3286
3320
|
if (n !== void 0) {
|
|
@@ -3290,12 +3324,12 @@ function Td(e, t) {
|
|
|
3290
3324
|
}
|
|
3291
3325
|
return String(e);
|
|
3292
3326
|
}
|
|
3293
|
-
var
|
|
3327
|
+
var Td = /* @__PURE__ */ (function() {
|
|
3294
3328
|
function e(t) {
|
|
3295
3329
|
var n = t.onCountryChange, r = t.onCallingCodeChange;
|
|
3296
3330
|
Pd(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
|
|
3297
3331
|
}
|
|
3298
|
-
return
|
|
3332
|
+
return Nd(e, [{
|
|
3299
3333
|
key: "reset",
|
|
3300
3334
|
value: function(n) {
|
|
3301
3335
|
var r = n.country, i = n.callingCode;
|
|
@@ -3378,12 +3412,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3378
3412
|
}
|
|
3379
3413
|
function Ad(e, t) {
|
|
3380
3414
|
if (e) {
|
|
3381
|
-
if (typeof e == "string") return
|
|
3415
|
+
if (typeof e == "string") return Gn(e, t);
|
|
3382
3416
|
var n = {}.toString.call(e).slice(8, -1);
|
|
3383
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
3417
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Gn(e, t) : void 0;
|
|
3384
3418
|
}
|
|
3385
3419
|
}
|
|
3386
|
-
function
|
|
3420
|
+
function Gn(e, t) {
|
|
3387
3421
|
(t == null || t > e.length) && (t = e.length);
|
|
3388
3422
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
3389
3423
|
return r;
|
|
@@ -3396,7 +3430,7 @@ function He(e, t) {
|
|
|
3396
3430
|
t & 1 && (n += e), t >>= 1, e += e;
|
|
3397
3431
|
return n + e;
|
|
3398
3432
|
}
|
|
3399
|
-
function
|
|
3433
|
+
function Un(e, t) {
|
|
3400
3434
|
return e[t] === ")" && t++, _d(e.slice(0, t));
|
|
3401
3435
|
}
|
|
3402
3436
|
function _d(e) {
|
|
@@ -3434,7 +3468,7 @@ function xd(e, t, n) {
|
|
|
3434
3468
|
function Fd(e, t, n) {
|
|
3435
3469
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
3436
3470
|
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
|
|
3437
|
-
var o =
|
|
3471
|
+
var o = Bn(e, t, {
|
|
3438
3472
|
useNationalPrefixFormattingRule: !0,
|
|
3439
3473
|
getSeparatorAfterNationalPrefix: a,
|
|
3440
3474
|
metadata: r
|
|
@@ -3442,13 +3476,13 @@ function Fd(e, t, n) {
|
|
|
3442
3476
|
if (o)
|
|
3443
3477
|
return o;
|
|
3444
3478
|
}
|
|
3445
|
-
return
|
|
3479
|
+
return Bn(e, t, {
|
|
3446
3480
|
useNationalPrefixFormattingRule: !1,
|
|
3447
3481
|
getSeparatorAfterNationalPrefix: a,
|
|
3448
3482
|
metadata: r
|
|
3449
3483
|
});
|
|
3450
3484
|
}
|
|
3451
|
-
function
|
|
3485
|
+
function Bn(e, t, n) {
|
|
3452
3486
|
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o = Sr(e.nationalSignificantNumber, t, {
|
|
3453
3487
|
carrierCode: e.carrierCode,
|
|
3454
3488
|
useInternationalFormat: e.international,
|
|
@@ -3615,7 +3649,7 @@ var Wd = /[\(\)\[\]\?\:\|]/, Hd = new RegExp(
|
|
|
3615
3649
|
function ht(e) {
|
|
3616
3650
|
return e.length === 1 ? e[0] : e;
|
|
3617
3651
|
}
|
|
3618
|
-
function
|
|
3652
|
+
function Wn(e, t) {
|
|
3619
3653
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3620
3654
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
3621
3655
|
if (Array.isArray(e) || (n = Vd(e)) || t) {
|
|
@@ -3630,12 +3664,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3630
3664
|
}
|
|
3631
3665
|
function Vd(e, t) {
|
|
3632
3666
|
if (e) {
|
|
3633
|
-
if (typeof e == "string") return
|
|
3667
|
+
if (typeof e == "string") return Hn(e, t);
|
|
3634
3668
|
var n = {}.toString.call(e).slice(8, -1);
|
|
3635
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
3669
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Hn(e, t) : void 0;
|
|
3636
3670
|
}
|
|
3637
3671
|
}
|
|
3638
|
-
function
|
|
3672
|
+
function Hn(e, t) {
|
|
3639
3673
|
(t == null || t > e.length) && (t = e.length);
|
|
3640
3674
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
3641
3675
|
return r;
|
|
@@ -3742,8 +3776,8 @@ function Tt(e, t, n) {
|
|
|
3742
3776
|
}
|
|
3743
3777
|
switch (t.op) {
|
|
3744
3778
|
case "|":
|
|
3745
|
-
for (var u, l =
|
|
3746
|
-
var
|
|
3779
|
+
for (var u, l = Wn(t.args), c; !(c = l()).done; ) {
|
|
3780
|
+
var p = c.value, s = Tt(e, p, n);
|
|
3747
3781
|
if (s) {
|
|
3748
3782
|
if (s.overflow)
|
|
3749
3783
|
return s;
|
|
@@ -3764,9 +3798,9 @@ function Tt(e, t, n) {
|
|
|
3764
3798
|
// matchedChars: ...
|
|
3765
3799
|
} : void 0;
|
|
3766
3800
|
case "[]":
|
|
3767
|
-
for (var f =
|
|
3768
|
-
var
|
|
3769
|
-
if (e[0] ===
|
|
3801
|
+
for (var f = Wn(t.args), y; !(y = f()).done; ) {
|
|
3802
|
+
var m = y.value;
|
|
3803
|
+
if (e[0] === m)
|
|
3770
3804
|
return e.length === 1 ? {
|
|
3771
3805
|
match: !0,
|
|
3772
3806
|
matchedChars: e
|
|
@@ -3774,7 +3808,7 @@ function Tt(e, t, n) {
|
|
|
3774
3808
|
overflow: !0
|
|
3775
3809
|
} : {
|
|
3776
3810
|
match: !0,
|
|
3777
|
-
matchedChars: [
|
|
3811
|
+
matchedChars: [m]
|
|
3778
3812
|
};
|
|
3779
3813
|
}
|
|
3780
3814
|
return;
|
|
@@ -3791,7 +3825,7 @@ function xe(e) {
|
|
|
3791
3825
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3792
3826
|
}, xe(e);
|
|
3793
3827
|
}
|
|
3794
|
-
function
|
|
3828
|
+
function Vn(e, t) {
|
|
3795
3829
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3796
3830
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
3797
3831
|
if (Array.isArray(e) || (n = zd(e)) || t) {
|
|
@@ -3806,12 +3840,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3806
3840
|
}
|
|
3807
3841
|
function zd(e, t) {
|
|
3808
3842
|
if (e) {
|
|
3809
|
-
if (typeof e == "string") return
|
|
3843
|
+
if (typeof e == "string") return Kn(e, t);
|
|
3810
3844
|
var n = {}.toString.call(e).slice(8, -1);
|
|
3811
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
3845
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Kn(e, t) : void 0;
|
|
3812
3846
|
}
|
|
3813
3847
|
}
|
|
3814
|
-
function
|
|
3848
|
+
function Kn(e, t) {
|
|
3815
3849
|
(t == null || t > e.length) && (t = e.length);
|
|
3816
3850
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
3817
3851
|
return r;
|
|
@@ -3842,11 +3876,11 @@ function ru(e, t) {
|
|
|
3842
3876
|
}
|
|
3843
3877
|
return String(e);
|
|
3844
3878
|
}
|
|
3845
|
-
var
|
|
3879
|
+
var It = "9", iu = 15, au = He(It, iu), ou = /[- ]/, du = function() {
|
|
3846
3880
|
return /\[([^\[\]])*\]/g;
|
|
3847
3881
|
}, uu = function() {
|
|
3848
3882
|
return /\d(?=[^,}][^,}])/g;
|
|
3849
|
-
}, lu = new RegExp("[" + ee + "]*\\$1[" + ee + "]*(\\$\\d[" + ee + "]*)*$"),
|
|
3883
|
+
}, lu = new RegExp("[" + ee + "]*\\$1[" + ee + "]*(\\$\\d[" + ee + "]*)*$"), Yn = 3, su = /* @__PURE__ */ (function() {
|
|
3850
3884
|
function e(t) {
|
|
3851
3885
|
t.state;
|
|
3852
3886
|
var n = t.metadata;
|
|
@@ -3873,7 +3907,7 @@ var Ot = "9", iu = 15, au = He(Ot, iu), ou = /[- ]/, du = function() {
|
|
|
3873
3907
|
value: function(n, r) {
|
|
3874
3908
|
var i = this;
|
|
3875
3909
|
if (xd(r.nationalSignificantNumber, r.country, this.metadata))
|
|
3876
|
-
for (var a =
|
|
3910
|
+
for (var a = Vn(this.matchingFormats), o; !(o = a()).done; ) {
|
|
3877
3911
|
var d = o.value, u = Rd(r, d, {
|
|
3878
3912
|
metadata: this.metadata,
|
|
3879
3913
|
shouldTryNationalPrefixFormattingRule: function(c) {
|
|
@@ -3902,7 +3936,7 @@ var Ot = "9", iu = 15, au = He(Ot, iu), ou = /[- ]/, du = function() {
|
|
|
3902
3936
|
}, {
|
|
3903
3937
|
key: "narrowDownMatchingFormats",
|
|
3904
3938
|
value: function(n) {
|
|
3905
|
-
var r = this, i = n.nationalSignificantNumber, a = n.nationalPrefix, o = n.international, d = i, u = d.length -
|
|
3939
|
+
var r = this, i = n.nationalSignificantNumber, a = n.nationalPrefix, o = n.international, d = i, u = d.length - Yn;
|
|
3906
3940
|
u < 0 && (u = 0), this.matchingFormats = this.matchingFormats.filter(function(l) {
|
|
3907
3941
|
return r.formatSuits(l, o, a) && r.formatMatches(l, d, u);
|
|
3908
3942
|
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
@@ -3921,7 +3955,7 @@ var Ot = "9", iu = 15, au = He(Ot, iu), ou = /[- ]/, du = function() {
|
|
|
3921
3955
|
return !0;
|
|
3922
3956
|
i = Math.min(i, a - 1);
|
|
3923
3957
|
var o = n.leadingDigitsPatterns()[i];
|
|
3924
|
-
if (r.length <
|
|
3958
|
+
if (r.length < Yn)
|
|
3925
3959
|
try {
|
|
3926
3960
|
return new Jd(o).match(r, {
|
|
3927
3961
|
allowOverflow: !0
|
|
@@ -3944,7 +3978,7 @@ var Ot = "9", iu = 15, au = He(Ot, iu), ou = /[- ]/, du = function() {
|
|
|
3944
3978
|
return r.chosenFormat === l ? 0 : lu.test(r.getFormatFormat(l, n.international)) ? r.createTemplateForFormat(l, n) ? (r.chosenFormat = l, 0) : (r.matchingFormats = r.matchingFormats.filter(function(c) {
|
|
3945
3979
|
return c !== l;
|
|
3946
3980
|
}), 1) : 1;
|
|
3947
|
-
}, a, o =
|
|
3981
|
+
}, a, o = Vn(this.matchingFormats.slice()), d; !(d = o()).done && (a = i(), a !== 0); )
|
|
3948
3982
|
;
|
|
3949
3983
|
return this.chosenFormat || this.resetFormat(), this.chosenFormat;
|
|
3950
3984
|
}
|
|
@@ -3976,7 +4010,7 @@ var Ot = "9", iu = 15, au = He(Ot, iu), ou = /[- ]/, du = function() {
|
|
|
3976
4010
|
spacing: !1
|
|
3977
4011
|
}) : ""; i < a.length + n.getDigitsWithoutInternationalPrefix().length; )
|
|
3978
4012
|
r = this.template.indexOf(Q, r + 1), i++;
|
|
3979
|
-
return
|
|
4013
|
+
return Un(this.template, r + 1);
|
|
3980
4014
|
}
|
|
3981
4015
|
}
|
|
3982
4016
|
}, {
|
|
@@ -3998,20 +4032,20 @@ var Ot = "9", iu = 15, au = He(Ot, iu), ou = /[- ]/, du = function() {
|
|
|
3998
4032
|
u = u.replace(du(), "\\d").replace(uu(), "\\d");
|
|
3999
4033
|
var l = au.match(u)[0];
|
|
4000
4034
|
if (!(i.length > l.length)) {
|
|
4001
|
-
var c = new RegExp("^" + u + "$"),
|
|
4002
|
-
c.test(
|
|
4035
|
+
var c = new RegExp("^" + u + "$"), p = i.replace(/\d/g, It);
|
|
4036
|
+
c.test(p) && (l = p);
|
|
4003
4037
|
var s = this.getFormatFormat(n, a), f;
|
|
4004
4038
|
if (this.shouldTryNationalPrefixFormattingRule(n, {
|
|
4005
4039
|
international: a,
|
|
4006
4040
|
nationalPrefix: o
|
|
4007
4041
|
})) {
|
|
4008
|
-
var y = s.replace(
|
|
4042
|
+
var y = s.replace(Nr, n.nationalPrefixFormattingRule());
|
|
4009
4043
|
if (Ze(n.nationalPrefixFormattingRule()) === (o || "") + Ze("$1") && (s = y, f = !0, o))
|
|
4010
|
-
for (var
|
|
4011
|
-
s = s.replace(/\d/, Q),
|
|
4044
|
+
for (var m = o.length; m > 0; )
|
|
4045
|
+
s = s.replace(/\d/, Q), m--;
|
|
4012
4046
|
}
|
|
4013
|
-
var
|
|
4014
|
-
return f || (d ?
|
|
4047
|
+
var $ = l.replace(new RegExp(u), s).replace(new RegExp(It, "g"), Q);
|
|
4048
|
+
return f || (d ? $ = He(Q, d.length) + " " + $ : o && ($ = He(Q, o.length) + this.getSeparatorAfterNationalPrefix(n) + $)), a && ($ = Er($)), $;
|
|
4015
4049
|
}
|
|
4016
4050
|
}
|
|
4017
4051
|
}, {
|
|
@@ -4022,7 +4056,7 @@ var Ot = "9", iu = 15, au = He(Ot, iu), ou = /[- ]/, du = function() {
|
|
|
4022
4056
|
this.resetFormat();
|
|
4023
4057
|
return;
|
|
4024
4058
|
}
|
|
4025
|
-
return this.populatedNationalNumberTemplate = r[0], this.populatedNationalNumberTemplatePosition = r[1],
|
|
4059
|
+
return this.populatedNationalNumberTemplate = r[0], this.populatedNationalNumberTemplatePosition = r[1], Un(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
4026
4060
|
}
|
|
4027
4061
|
}, {
|
|
4028
4062
|
key: "shouldTryNationalPrefixFormattingRule",
|
|
@@ -4053,12 +4087,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4053
4087
|
}
|
|
4054
4088
|
function fu(e, t) {
|
|
4055
4089
|
if (e) {
|
|
4056
|
-
if (typeof e == "string") return
|
|
4090
|
+
if (typeof e == "string") return qn(e, t);
|
|
4057
4091
|
var n = {}.toString.call(e).slice(8, -1);
|
|
4058
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
4092
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? qn(e, t) : void 0;
|
|
4059
4093
|
}
|
|
4060
4094
|
}
|
|
4061
|
-
function
|
|
4095
|
+
function qn(e, t) {
|
|
4062
4096
|
(t == null || t > e.length) && (t = e.length);
|
|
4063
4097
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
4064
4098
|
return r;
|
|
@@ -4090,13 +4124,13 @@ function yu(e, t) {
|
|
|
4090
4124
|
function hu(e, t) {
|
|
4091
4125
|
for (var n = 0; n < t.length; n++) {
|
|
4092
4126
|
var r = t[n];
|
|
4093
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
4127
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, mu(r.key), r);
|
|
4094
4128
|
}
|
|
4095
4129
|
}
|
|
4096
|
-
function
|
|
4130
|
+
function gu(e, t, n) {
|
|
4097
4131
|
return t && hu(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
4098
4132
|
}
|
|
4099
|
-
function
|
|
4133
|
+
function mu(e) {
|
|
4100
4134
|
var t = vu(e, "string");
|
|
4101
4135
|
return Fe(t) == "symbol" ? t : t + "";
|
|
4102
4136
|
}
|
|
@@ -4110,12 +4144,12 @@ function vu(e, t) {
|
|
|
4110
4144
|
}
|
|
4111
4145
|
return String(e);
|
|
4112
4146
|
}
|
|
4113
|
-
var bu = "[" + ee + Y + "]+", Cu = new RegExp("^" + bu + "$", "i"), Pu = "(?:[" + nt + "][" + ee + Y + "]*|[" + ee + Y + "]+)",
|
|
4147
|
+
var bu = "[" + ee + Y + "]+", Cu = new RegExp("^" + bu + "$", "i"), Pu = "(?:[" + nt + "][" + ee + Y + "]*|[" + ee + Y + "]+)", Eu = new RegExp("[^" + ee + Y + "]+.*$"), Nu = /[^\d\[\]]/, Su = /* @__PURE__ */ (function() {
|
|
4114
4148
|
function e(t) {
|
|
4115
4149
|
var n = t.defaultCountry, r = t.defaultCallingCode, i = t.metadata, a = t.onNationalSignificantNumberChange;
|
|
4116
4150
|
yu(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = i, this.onNationalSignificantNumberChange = a;
|
|
4117
4151
|
}
|
|
4118
|
-
return
|
|
4152
|
+
return gu(e, [{
|
|
4119
4153
|
key: "input",
|
|
4120
4154
|
value: function(n, r) {
|
|
4121
4155
|
var i = Iu(n), a = xr(i, 2), o = a[0], d = a[1], u = Ze(o), l;
|
|
@@ -4153,7 +4187,7 @@ var bu = "[" + ee + Y + "]+", Cu = new RegExp("^" + bu + "$", "i"), Pu = "(?:["
|
|
|
4153
4187
|
}, {
|
|
4154
4188
|
key: "extractCountryCallingCode",
|
|
4155
4189
|
value: function(n) {
|
|
4156
|
-
var r =
|
|
4190
|
+
var r = Ht("+" + n.getDigitsWithoutInternationalPrefix(), n.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), i = r.countryCallingCode, a = r.number;
|
|
4157
4191
|
if (i)
|
|
4158
4192
|
return n.setCallingCode(i), n.update({
|
|
4159
4193
|
nationalSignificantNumber: a
|
|
@@ -4165,7 +4199,7 @@ var bu = "[" + ee + Y + "]+", Cu = new RegExp("^" + bu + "$", "i"), Pu = "(?:["
|
|
|
4165
4199
|
if (n) {
|
|
4166
4200
|
this.hasSelectedNumberingPlan = !0;
|
|
4167
4201
|
var r = n._nationalPrefixForParsing();
|
|
4168
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = r &&
|
|
4202
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = r && Nu.test(r);
|
|
4169
4203
|
} else
|
|
4170
4204
|
this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
4171
4205
|
}
|
|
@@ -4180,7 +4214,7 @@ var bu = "[" + ee + Y + "]+", Cu = new RegExp("^" + bu + "$", "i"), Pu = "(?:["
|
|
|
4180
4214
|
key: "extractNationalSignificantNumber",
|
|
4181
4215
|
value: function(n, r) {
|
|
4182
4216
|
if (this.hasSelectedNumberingPlan) {
|
|
4183
|
-
var i =
|
|
4217
|
+
var i = bt(n, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, d = i.carrierCode;
|
|
4184
4218
|
if (o !== n)
|
|
4185
4219
|
return this.onExtractedNationalNumber(a, d, o, n, r), !0;
|
|
4186
4220
|
}
|
|
@@ -4196,7 +4230,7 @@ var bu = "[" + ee + Y + "]+", Cu = new RegExp("^" + bu + "$", "i"), Pu = "(?:["
|
|
|
4196
4230
|
if (!this.hasExtractedNationalSignificantNumber)
|
|
4197
4231
|
return this.extractNationalSignificantNumber(n, i);
|
|
4198
4232
|
if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
4199
|
-
var a =
|
|
4233
|
+
var a = bt(n, this.metadata), o = a.nationalPrefix, d = a.nationalNumber, u = a.carrierCode;
|
|
4200
4234
|
if (d !== r)
|
|
4201
4235
|
return this.onExtractedNationalNumber(o, u, d, n, i), !0;
|
|
4202
4236
|
}
|
|
@@ -4275,20 +4309,20 @@ var bu = "[" + ee + Y + "]+", Cu = new RegExp("^" + bu + "$", "i"), Pu = "(?:["
|
|
|
4275
4309
|
}
|
|
4276
4310
|
}]);
|
|
4277
4311
|
})();
|
|
4278
|
-
function
|
|
4312
|
+
function Ou(e) {
|
|
4279
4313
|
var t = e.search(Pu);
|
|
4280
4314
|
if (!(t < 0)) {
|
|
4281
4315
|
e = e.slice(t);
|
|
4282
4316
|
var n;
|
|
4283
|
-
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(
|
|
4317
|
+
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(Eu, ""), n && (e = "+" + e), e;
|
|
4284
4318
|
}
|
|
4285
4319
|
}
|
|
4286
|
-
function
|
|
4287
|
-
var t =
|
|
4320
|
+
function Tu(e) {
|
|
4321
|
+
var t = Ou(e) || "";
|
|
4288
4322
|
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
4289
4323
|
}
|
|
4290
4324
|
function Iu(e) {
|
|
4291
|
-
var t =
|
|
4325
|
+
var t = Tu(e), n = xr(t, 2), r = n[0], i = n[1];
|
|
4292
4326
|
return Cu.test(r) || (r = ""), [r, i];
|
|
4293
4327
|
}
|
|
4294
4328
|
function Me(e) {
|
|
@@ -4308,12 +4342,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4308
4342
|
}
|
|
4309
4343
|
function wu(e, t) {
|
|
4310
4344
|
if (e) {
|
|
4311
|
-
if (typeof e == "string") return
|
|
4345
|
+
if (typeof e == "string") return Zn(e, t);
|
|
4312
4346
|
var n = {}.toString.call(e).slice(8, -1);
|
|
4313
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
4347
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Zn(e, t) : void 0;
|
|
4314
4348
|
}
|
|
4315
4349
|
}
|
|
4316
|
-
function
|
|
4350
|
+
function Zn(e, t) {
|
|
4317
4351
|
(t == null || t > e.length) && (t = e.length);
|
|
4318
4352
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
4319
4353
|
return r;
|
|
@@ -4404,7 +4438,7 @@ var Pe = /* @__PURE__ */ (function() {
|
|
|
4404
4438
|
key: "reset",
|
|
4405
4439
|
value: function() {
|
|
4406
4440
|
var n = this;
|
|
4407
|
-
return this.state = new
|
|
4441
|
+
return this.state = new Td({
|
|
4408
4442
|
onCountryChange: function(i) {
|
|
4409
4443
|
n.country = i;
|
|
4410
4444
|
},
|
|
@@ -4530,7 +4564,7 @@ var Pe = /* @__PURE__ */ (function() {
|
|
|
4530
4564
|
}, {
|
|
4531
4565
|
key: "determineTheCountry",
|
|
4532
4566
|
value: function() {
|
|
4533
|
-
this.state.setCountry(
|
|
4567
|
+
this.state.setCountry(Wt(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
|
|
4534
4568
|
nationalNumber: this.state.nationalSignificantNumber,
|
|
4535
4569
|
metadata: this.metadata
|
|
4536
4570
|
}));
|
|
@@ -4589,8 +4623,8 @@ var Pe = /* @__PURE__ */ (function() {
|
|
|
4589
4623
|
c && (o = c);
|
|
4590
4624
|
}
|
|
4591
4625
|
}
|
|
4592
|
-
var
|
|
4593
|
-
return i && (
|
|
4626
|
+
var p = new Ir(o || a, r, this.metadata.metadata);
|
|
4627
|
+
return i && (p.carrierCode = i), p;
|
|
4594
4628
|
}
|
|
4595
4629
|
}
|
|
4596
4630
|
/**
|
|
@@ -4645,7 +4679,7 @@ var Pe = /* @__PURE__ */ (function() {
|
|
|
4645
4679
|
}
|
|
4646
4680
|
}]);
|
|
4647
4681
|
})();
|
|
4648
|
-
function
|
|
4682
|
+
function Xn(e) {
|
|
4649
4683
|
return new V(e).getCountries();
|
|
4650
4684
|
}
|
|
4651
4685
|
function ju(e, t, n) {
|
|
@@ -4655,7 +4689,7 @@ function Fr(e) {
|
|
|
4655
4689
|
var t = e.inputFormat, n = e.country, r = e.metadata;
|
|
4656
4690
|
return t === "NATIONAL_PART_OF_INTERNATIONAL" ? "+".concat(le(n, r)) : "";
|
|
4657
4691
|
}
|
|
4658
|
-
function
|
|
4692
|
+
function At(e, t) {
|
|
4659
4693
|
return t && (e = e.slice(t.length), e[0] === " " && (e = e.slice(1))), e;
|
|
4660
4694
|
}
|
|
4661
4695
|
function Gu(e, t, n) {
|
|
@@ -4680,15 +4714,15 @@ function Uu(e) {
|
|
|
4680
4714
|
return e.selectionStart;
|
|
4681
4715
|
}
|
|
4682
4716
|
var Bu = 8, Wu = "+", Hu = ["onKeyDown", "country", "inputFormat", "metadata", "international", "withCountryCallingCode"];
|
|
4683
|
-
function
|
|
4684
|
-
return
|
|
4717
|
+
function _t() {
|
|
4718
|
+
return _t = Object.assign ? Object.assign.bind() : function(e) {
|
|
4685
4719
|
for (var t = 1; t < arguments.length; t++) {
|
|
4686
4720
|
var n = arguments[t];
|
|
4687
4721
|
for (var r in n)
|
|
4688
4722
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4689
4723
|
}
|
|
4690
4724
|
return e;
|
|
4691
|
-
},
|
|
4725
|
+
}, _t.apply(this, arguments);
|
|
4692
4726
|
}
|
|
4693
4727
|
function Vu(e, t) {
|
|
4694
4728
|
if (e == null) return {};
|
|
@@ -4716,23 +4750,23 @@ function Yu(e) {
|
|
|
4716
4750
|
inputFormat: o,
|
|
4717
4751
|
country: a,
|
|
4718
4752
|
metadata: u
|
|
4719
|
-
}),
|
|
4720
|
-
return y && (
|
|
4721
|
-
text:
|
|
4722
|
-
template:
|
|
4753
|
+
}), m = f.input(y + s), $ = f.getTemplate();
|
|
4754
|
+
return y && (m = At(m, y), $ && ($ = At($, y))), {
|
|
4755
|
+
text: m,
|
|
4756
|
+
template: $
|
|
4723
4757
|
};
|
|
4724
|
-
}, [a, u]),
|
|
4758
|
+
}, [a, u]), p = Mr({
|
|
4725
4759
|
onKeyDown: i,
|
|
4726
4760
|
inputFormat: o
|
|
4727
4761
|
});
|
|
4728
|
-
return /* @__PURE__ */
|
|
4762
|
+
return /* @__PURE__ */ O.createElement(Ye, _t({}, l, {
|
|
4729
4763
|
ref: r,
|
|
4730
4764
|
parse: Gu,
|
|
4731
4765
|
format: c,
|
|
4732
|
-
onKeyDown:
|
|
4766
|
+
onKeyDown: p
|
|
4733
4767
|
}));
|
|
4734
4768
|
}
|
|
4735
|
-
return t = /* @__PURE__ */
|
|
4769
|
+
return t = /* @__PURE__ */ O.forwardRef(t), t.propTypes = {
|
|
4736
4770
|
/**
|
|
4737
4771
|
* The parsed phone number.
|
|
4738
4772
|
* "Parsed" not in a sense of "E.164"
|
|
@@ -4775,15 +4809,15 @@ function Yu(e) {
|
|
|
4775
4809
|
}
|
|
4776
4810
|
const qu = Yu();
|
|
4777
4811
|
var Zu = ["value", "onChange", "onKeyDown", "country", "inputFormat", "metadata", "inputComponent", "international", "withCountryCallingCode"];
|
|
4778
|
-
function
|
|
4779
|
-
return
|
|
4812
|
+
function wt() {
|
|
4813
|
+
return wt = Object.assign ? Object.assign.bind() : function(e) {
|
|
4780
4814
|
for (var t = 1; t < arguments.length; t++) {
|
|
4781
4815
|
var n = arguments[t];
|
|
4782
4816
|
for (var r in n)
|
|
4783
4817
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4784
4818
|
}
|
|
4785
4819
|
return e;
|
|
4786
|
-
},
|
|
4820
|
+
}, wt.apply(this, arguments);
|
|
4787
4821
|
}
|
|
4788
4822
|
function Xu(e, t) {
|
|
4789
4823
|
if (e == null) return {};
|
|
@@ -4804,31 +4838,31 @@ function Ju(e, t) {
|
|
|
4804
4838
|
}
|
|
4805
4839
|
function zu(e) {
|
|
4806
4840
|
function t(n, r) {
|
|
4807
|
-
var i = n.value, a = n.onChange, o = n.onKeyDown, d = n.country, u = n.inputFormat, l = n.metadata, c = l === void 0 ? e : l,
|
|
4841
|
+
var i = n.value, a = n.onChange, o = n.onKeyDown, d = n.country, u = n.inputFormat, l = n.metadata, c = l === void 0 ? e : l, p = n.inputComponent, s = p === void 0 ? "input" : p;
|
|
4808
4842
|
n.international, n.withCountryCallingCode;
|
|
4809
4843
|
var f = Xu(n, Zu), y = Fr({
|
|
4810
4844
|
inputFormat: u,
|
|
4811
4845
|
country: d,
|
|
4812
4846
|
metadata: c
|
|
4813
|
-
}),
|
|
4814
|
-
var T = Nt(
|
|
4847
|
+
}), m = ue(function(C) {
|
|
4848
|
+
var T = Nt(C.target.value);
|
|
4815
4849
|
if (T === i) {
|
|
4816
|
-
var
|
|
4817
|
-
|
|
4850
|
+
var N = Jn(y, T, d, c);
|
|
4851
|
+
N.indexOf(C.target.value) === 0 && (T = T.slice(0, -1));
|
|
4818
4852
|
}
|
|
4819
4853
|
a(T);
|
|
4820
|
-
}, [y, i, a, d, c]),
|
|
4854
|
+
}, [y, i, a, d, c]), $ = Mr({
|
|
4821
4855
|
onKeyDown: o,
|
|
4822
4856
|
inputFormat: u
|
|
4823
4857
|
});
|
|
4824
|
-
return /* @__PURE__ */
|
|
4858
|
+
return /* @__PURE__ */ O.createElement(s, wt({}, f, {
|
|
4825
4859
|
ref: r,
|
|
4826
|
-
value:
|
|
4827
|
-
onChange:
|
|
4828
|
-
onKeyDown:
|
|
4860
|
+
value: Jn(y, i, d, c),
|
|
4861
|
+
onChange: m,
|
|
4862
|
+
onKeyDown: $
|
|
4829
4863
|
}));
|
|
4830
4864
|
}
|
|
4831
|
-
return t = /* @__PURE__ */
|
|
4865
|
+
return t = /* @__PURE__ */ O.forwardRef(t), t.propTypes = {
|
|
4832
4866
|
/**
|
|
4833
4867
|
* The parsed phone number.
|
|
4834
4868
|
* "Parsed" not in a sense of "E.164"
|
|
@@ -4874,13 +4908,13 @@ function zu(e) {
|
|
|
4874
4908
|
}, t;
|
|
4875
4909
|
}
|
|
4876
4910
|
const Qu = zu();
|
|
4877
|
-
function
|
|
4878
|
-
return
|
|
4911
|
+
function Jn(e, t, n, r) {
|
|
4912
|
+
return At(ju(e + t, n, r), e);
|
|
4879
4913
|
}
|
|
4880
4914
|
function el(e) {
|
|
4881
|
-
return
|
|
4915
|
+
return zn(e[0]) + zn(e[1]);
|
|
4882
4916
|
}
|
|
4883
|
-
function
|
|
4917
|
+
function zn(e) {
|
|
4884
4918
|
return String.fromCodePoint(127397 + e.toUpperCase().charCodeAt(0));
|
|
4885
4919
|
}
|
|
4886
4920
|
var tl = ["value", "onChange", "options", "disabled", "readOnly"], nl = ["value", "options", "className", "iconComponent", "getIconAspectRatio", "arrowComponent", "unicodeFlags"];
|
|
@@ -4899,13 +4933,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4899
4933
|
}
|
|
4900
4934
|
function il(e, t) {
|
|
4901
4935
|
if (e) {
|
|
4902
|
-
if (typeof e == "string") return
|
|
4936
|
+
if (typeof e == "string") return Qn(e, t);
|
|
4903
4937
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
4904
4938
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
4905
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
4939
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Qn(e, t);
|
|
4906
4940
|
}
|
|
4907
4941
|
}
|
|
4908
|
-
function
|
|
4942
|
+
function Qn(e, t) {
|
|
4909
4943
|
(t == null || t > e.length) && (t = e.length);
|
|
4910
4944
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
4911
4945
|
return r;
|
|
@@ -4944,18 +4978,18 @@ function Dr(e) {
|
|
|
4944
4978
|
}, [n]);
|
|
4945
4979
|
return Ve(function() {
|
|
4946
4980
|
return jr(r, t);
|
|
4947
|
-
}, [r, t]), /* @__PURE__ */
|
|
4981
|
+
}, [r, t]), /* @__PURE__ */ O.createElement("select", Xe({}, o, {
|
|
4948
4982
|
disabled: i || a,
|
|
4949
4983
|
readOnly: a,
|
|
4950
4984
|
value: t || "ZZ",
|
|
4951
4985
|
onChange: d
|
|
4952
4986
|
}), r.map(function(u) {
|
|
4953
|
-
var l = u.value, c = u.label,
|
|
4954
|
-
return /* @__PURE__ */
|
|
4955
|
-
key:
|
|
4956
|
-
value:
|
|
4957
|
-
disabled:
|
|
4958
|
-
style:
|
|
4987
|
+
var l = u.value, c = u.label, p = u.divider;
|
|
4988
|
+
return /* @__PURE__ */ O.createElement("option", {
|
|
4989
|
+
key: p ? "|" : l || "ZZ",
|
|
4990
|
+
value: p ? "|" : l || "ZZ",
|
|
4991
|
+
disabled: !!p,
|
|
4992
|
+
style: p ? ol : void 0
|
|
4959
4993
|
}, c);
|
|
4960
4994
|
}));
|
|
4961
4995
|
}
|
|
@@ -4995,20 +5029,20 @@ function kr(e) {
|
|
|
4995
5029
|
var a = e.arrowComponent, o = a === void 0 ? dl : a, d = e.unicodeFlags, u = Lr(e, nl), l = Ve(function() {
|
|
4996
5030
|
return jr(n, t);
|
|
4997
5031
|
}, [n, t]);
|
|
4998
|
-
return /* @__PURE__ */
|
|
5032
|
+
return /* @__PURE__ */ O.createElement("div", {
|
|
4999
5033
|
className: "PhoneInputCountry"
|
|
5000
|
-
}, /* @__PURE__ */
|
|
5034
|
+
}, /* @__PURE__ */ O.createElement(Dr, Xe({}, u, {
|
|
5001
5035
|
value: t,
|
|
5002
5036
|
options: n,
|
|
5003
5037
|
className: Ke("PhoneInputCountrySelect", r)
|
|
5004
|
-
})), l && (d && t ? /* @__PURE__ */
|
|
5038
|
+
})), l && (d && t ? /* @__PURE__ */ O.createElement("div", {
|
|
5005
5039
|
className: "PhoneInputCountryIconUnicode"
|
|
5006
|
-
}, el(t)) : /* @__PURE__ */
|
|
5040
|
+
}, el(t)) : /* @__PURE__ */ O.createElement(i, {
|
|
5007
5041
|
"aria-hidden": !0,
|
|
5008
5042
|
country: t,
|
|
5009
5043
|
label: l.label,
|
|
5010
5044
|
aspectRatio: d ? 1 : void 0
|
|
5011
|
-
})), /* @__PURE__ */
|
|
5045
|
+
})), /* @__PURE__ */ O.createElement(o, null));
|
|
5012
5046
|
}
|
|
5013
5047
|
kr.propTypes = {
|
|
5014
5048
|
// Country flag component.
|
|
@@ -5019,7 +5053,7 @@ kr.propTypes = {
|
|
|
5019
5053
|
unicodeFlags: g.bool
|
|
5020
5054
|
};
|
|
5021
5055
|
function dl() {
|
|
5022
|
-
return /* @__PURE__ */
|
|
5056
|
+
return /* @__PURE__ */ O.createElement("div", {
|
|
5023
5057
|
className: "PhoneInputCountrySelectArrow"
|
|
5024
5058
|
});
|
|
5025
5059
|
}
|
|
@@ -5034,15 +5068,15 @@ function ul(e, t) {
|
|
|
5034
5068
|
return e == null ? t == null : e === t;
|
|
5035
5069
|
}
|
|
5036
5070
|
var ll = ["country", "countryName", "flags", "flagUrl"];
|
|
5037
|
-
function
|
|
5038
|
-
return
|
|
5071
|
+
function Rt() {
|
|
5072
|
+
return Rt = Object.assign ? Object.assign.bind() : function(e) {
|
|
5039
5073
|
for (var t = 1; t < arguments.length; t++) {
|
|
5040
5074
|
var n = arguments[t];
|
|
5041
5075
|
for (var r in n)
|
|
5042
5076
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
5043
5077
|
}
|
|
5044
5078
|
return e;
|
|
5045
|
-
},
|
|
5079
|
+
}, Rt.apply(this, arguments);
|
|
5046
5080
|
}
|
|
5047
5081
|
function sl(e, t) {
|
|
5048
5082
|
if (e == null) return {};
|
|
@@ -5061,17 +5095,17 @@ function cl(e, t) {
|
|
|
5061
5095
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
5062
5096
|
return n;
|
|
5063
5097
|
}
|
|
5064
|
-
function
|
|
5098
|
+
function Kt(e) {
|
|
5065
5099
|
var t = e.country, n = e.countryName, r = e.flags, i = e.flagUrl, a = sl(e, ll);
|
|
5066
5100
|
return r && r[t] ? r[t]({
|
|
5067
5101
|
title: n
|
|
5068
|
-
}) : /* @__PURE__ */
|
|
5102
|
+
}) : /* @__PURE__ */ O.createElement("img", Rt({}, a, {
|
|
5069
5103
|
alt: n,
|
|
5070
5104
|
role: n ? void 0 : "presentation",
|
|
5071
5105
|
src: i.replace("{XX}", t).replace("{xx}", t.toLowerCase())
|
|
5072
5106
|
}));
|
|
5073
5107
|
}
|
|
5074
|
-
|
|
5108
|
+
Kt.propTypes = {
|
|
5075
5109
|
// The country to be selected by default.
|
|
5076
5110
|
// Two-letter country code ("ISO 3166-1 alpha-2").
|
|
5077
5111
|
country: g.string.isRequired,
|
|
@@ -5100,7 +5134,7 @@ function Je() {
|
|
|
5100
5134
|
return e;
|
|
5101
5135
|
}, Je.apply(this, arguments);
|
|
5102
5136
|
}
|
|
5103
|
-
function
|
|
5137
|
+
function Yt(e, t) {
|
|
5104
5138
|
if (e == null) return {};
|
|
5105
5139
|
var n = yl(e, t), r, i;
|
|
5106
5140
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -5118,46 +5152,46 @@ function yl(e, t) {
|
|
|
5118
5152
|
return n;
|
|
5119
5153
|
}
|
|
5120
5154
|
function rt(e) {
|
|
5121
|
-
var t = e.aspectRatio, n =
|
|
5122
|
-
return t === 1 ? /* @__PURE__ */
|
|
5155
|
+
var t = e.aspectRatio, n = Yt(e, fl);
|
|
5156
|
+
return t === 1 ? /* @__PURE__ */ O.createElement(Ur, n) : /* @__PURE__ */ O.createElement(Gr, n);
|
|
5123
5157
|
}
|
|
5124
5158
|
rt.propTypes = {
|
|
5125
5159
|
title: g.string.isRequired,
|
|
5126
5160
|
aspectRatio: g.number
|
|
5127
5161
|
};
|
|
5128
5162
|
function Gr(e) {
|
|
5129
|
-
var t = e.title, n =
|
|
5130
|
-
return /* @__PURE__ */
|
|
5163
|
+
var t = e.title, n = Yt(e, $l);
|
|
5164
|
+
return /* @__PURE__ */ O.createElement("svg", Je({}, n, {
|
|
5131
5165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5132
5166
|
viewBox: "0 0 75 50"
|
|
5133
|
-
}), /* @__PURE__ */
|
|
5167
|
+
}), /* @__PURE__ */ O.createElement("title", null, t), /* @__PURE__ */ O.createElement("g", {
|
|
5134
5168
|
className: "PhoneInputInternationalIconGlobe",
|
|
5135
5169
|
stroke: "currentColor",
|
|
5136
5170
|
fill: "none",
|
|
5137
5171
|
strokeWidth: "2",
|
|
5138
5172
|
strokeMiterlimit: "10"
|
|
5139
|
-
}, /* @__PURE__ */
|
|
5173
|
+
}, /* @__PURE__ */ O.createElement("path", {
|
|
5140
5174
|
strokeLinecap: "round",
|
|
5141
5175
|
d: "M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"
|
|
5142
|
-
}), /* @__PURE__ */
|
|
5176
|
+
}), /* @__PURE__ */ O.createElement("path", {
|
|
5143
5177
|
d: "M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"
|
|
5144
|
-
}), /* @__PURE__ */
|
|
5178
|
+
}), /* @__PURE__ */ O.createElement("line", {
|
|
5145
5179
|
x1: "26",
|
|
5146
5180
|
y1: "25",
|
|
5147
5181
|
x2: "74",
|
|
5148
5182
|
y2: "25"
|
|
5149
|
-
}), /* @__PURE__ */
|
|
5183
|
+
}), /* @__PURE__ */ O.createElement("line", {
|
|
5150
5184
|
x1: "50",
|
|
5151
5185
|
y1: "1",
|
|
5152
5186
|
x2: "50",
|
|
5153
5187
|
y2: "49"
|
|
5154
|
-
}), /* @__PURE__ */
|
|
5188
|
+
}), /* @__PURE__ */ O.createElement("path", {
|
|
5155
5189
|
strokeLinecap: "round",
|
|
5156
5190
|
d: "M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"
|
|
5157
|
-
}), /* @__PURE__ */
|
|
5191
|
+
}), /* @__PURE__ */ O.createElement("path", {
|
|
5158
5192
|
strokeLinecap: "round",
|
|
5159
5193
|
d: "M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"
|
|
5160
|
-
})), /* @__PURE__ */
|
|
5194
|
+
})), /* @__PURE__ */ O.createElement("path", {
|
|
5161
5195
|
className: "PhoneInputInternationalIconPhone",
|
|
5162
5196
|
stroke: "none",
|
|
5163
5197
|
fill: "currentColor",
|
|
@@ -5168,35 +5202,35 @@ Gr.propTypes = {
|
|
|
5168
5202
|
title: g.string.isRequired
|
|
5169
5203
|
};
|
|
5170
5204
|
function Ur(e) {
|
|
5171
|
-
var t = e.title, n =
|
|
5172
|
-
return /* @__PURE__ */
|
|
5205
|
+
var t = e.title, n = Yt(e, pl);
|
|
5206
|
+
return /* @__PURE__ */ O.createElement("svg", Je({}, n, {
|
|
5173
5207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5174
5208
|
viewBox: "0 0 50 50"
|
|
5175
|
-
}), /* @__PURE__ */
|
|
5209
|
+
}), /* @__PURE__ */ O.createElement("title", null, t), /* @__PURE__ */ O.createElement("g", {
|
|
5176
5210
|
className: "PhoneInputInternationalIconGlobe",
|
|
5177
5211
|
stroke: "currentColor",
|
|
5178
5212
|
fill: "none",
|
|
5179
5213
|
strokeWidth: "2",
|
|
5180
5214
|
strokeLinecap: "round"
|
|
5181
|
-
}, /* @__PURE__ */
|
|
5215
|
+
}, /* @__PURE__ */ O.createElement("path", {
|
|
5182
5216
|
d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
|
|
5183
|
-
}), /* @__PURE__ */
|
|
5217
|
+
}), /* @__PURE__ */ O.createElement("path", {
|
|
5184
5218
|
d: "M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"
|
|
5185
|
-
}), /* @__PURE__ */
|
|
5219
|
+
}), /* @__PURE__ */ O.createElement("path", {
|
|
5186
5220
|
d: "M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"
|
|
5187
|
-
}), /* @__PURE__ */
|
|
5221
|
+
}), /* @__PURE__ */ O.createElement("path", {
|
|
5188
5222
|
d: "M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"
|
|
5189
|
-
}), /* @__PURE__ */
|
|
5223
|
+
}), /* @__PURE__ */ O.createElement("line", {
|
|
5190
5224
|
x1: "27.8",
|
|
5191
5225
|
y1: "0.85",
|
|
5192
5226
|
x2: "27.8",
|
|
5193
5227
|
y2: "34.61"
|
|
5194
|
-
}), /* @__PURE__ */
|
|
5228
|
+
}), /* @__PURE__ */ O.createElement("line", {
|
|
5195
5229
|
x1: "15.2",
|
|
5196
5230
|
y1: "22.23",
|
|
5197
5231
|
x2: "49.15",
|
|
5198
5232
|
y2: "22.23"
|
|
5199
|
-
})), /* @__PURE__ */
|
|
5233
|
+
})), /* @__PURE__ */ O.createElement("path", {
|
|
5200
5234
|
className: "PhoneInputInternationalIconPhone",
|
|
5201
5235
|
stroke: "transparent",
|
|
5202
5236
|
fill: "currentColor",
|
|
@@ -5219,10 +5253,10 @@ function hl(e) {
|
|
|
5219
5253
|
function Br(e) {
|
|
5220
5254
|
hl(e) || console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got", e);
|
|
5221
5255
|
}
|
|
5222
|
-
function
|
|
5256
|
+
function gl(e, t) {
|
|
5223
5257
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5224
5258
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
5225
|
-
if (Array.isArray(e) || (n =
|
|
5259
|
+
if (Array.isArray(e) || (n = ml(e)) || t) {
|
|
5226
5260
|
n && (e = n);
|
|
5227
5261
|
var r = 0;
|
|
5228
5262
|
return function() {
|
|
@@ -5232,15 +5266,15 @@ function ml(e, t) {
|
|
|
5232
5266
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5233
5267
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
5234
5268
|
}
|
|
5235
|
-
function
|
|
5269
|
+
function ml(e, t) {
|
|
5236
5270
|
if (e) {
|
|
5237
|
-
if (typeof e == "string") return
|
|
5271
|
+
if (typeof e == "string") return er(e, t);
|
|
5238
5272
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
5239
5273
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
5240
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
5274
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return er(e, t);
|
|
5241
5275
|
}
|
|
5242
5276
|
}
|
|
5243
|
-
function
|
|
5277
|
+
function er(e, t) {
|
|
5244
5278
|
(t == null || t > e.length) && (t = e.length);
|
|
5245
5279
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
5246
5280
|
return r;
|
|
@@ -5259,12 +5293,12 @@ function vl(e, t) {
|
|
|
5259
5293
|
else {
|
|
5260
5294
|
var c;
|
|
5261
5295
|
l === "🌐" ? c = void 0 : c = l;
|
|
5262
|
-
var
|
|
5296
|
+
var p = e.indexOf(e.filter(function(f) {
|
|
5263
5297
|
return f.value === c;
|
|
5264
|
-
})[0]), s = e[
|
|
5265
|
-
e.splice(
|
|
5298
|
+
})[0]), s = e[p];
|
|
5299
|
+
e.splice(p, 1), i.push(s);
|
|
5266
5300
|
}
|
|
5267
|
-
}, o =
|
|
5301
|
+
}, o = gl(t), d; !(d = o()).done; )
|
|
5268
5302
|
a();
|
|
5269
5303
|
return n.concat(e).concat(r);
|
|
5270
5304
|
}
|
|
@@ -5283,7 +5317,7 @@ function bl(e, t) {
|
|
|
5283
5317
|
return e;
|
|
5284
5318
|
}
|
|
5285
5319
|
function it(e, t) {
|
|
5286
|
-
return
|
|
5320
|
+
return gr(e, t) ? !0 : (console.error("Country not found: ".concat(e)), !1);
|
|
5287
5321
|
}
|
|
5288
5322
|
function Wr(e, t) {
|
|
5289
5323
|
return e && (e = e.filter(function(n) {
|
|
@@ -5291,19 +5325,19 @@ function Wr(e, t) {
|
|
|
5291
5325
|
}), e.length === 0 && (e = void 0)), e;
|
|
5292
5326
|
}
|
|
5293
5327
|
var Cl = ["country", "label", "aspectRatio"];
|
|
5294
|
-
function
|
|
5295
|
-
return
|
|
5328
|
+
function xt() {
|
|
5329
|
+
return xt = Object.assign ? Object.assign.bind() : function(e) {
|
|
5296
5330
|
for (var t = 1; t < arguments.length; t++) {
|
|
5297
5331
|
var n = arguments[t];
|
|
5298
5332
|
for (var r in n)
|
|
5299
5333
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
5300
5334
|
}
|
|
5301
5335
|
return e;
|
|
5302
|
-
},
|
|
5336
|
+
}, xt.apply(this, arguments);
|
|
5303
5337
|
}
|
|
5304
5338
|
function Pl(e, t) {
|
|
5305
5339
|
if (e == null) return {};
|
|
5306
|
-
var n =
|
|
5340
|
+
var n = El(e, t), r, i;
|
|
5307
5341
|
if (Object.getOwnPropertySymbols) {
|
|
5308
5342
|
var a = Object.getOwnPropertySymbols(e);
|
|
5309
5343
|
for (i = 0; i < a.length; i++)
|
|
@@ -5311,7 +5345,7 @@ function Pl(e, t) {
|
|
|
5311
5345
|
}
|
|
5312
5346
|
return n;
|
|
5313
5347
|
}
|
|
5314
|
-
function
|
|
5348
|
+
function El(e, t) {
|
|
5315
5349
|
if (e == null) return {};
|
|
5316
5350
|
var n = {}, r = Object.keys(e), i, a;
|
|
5317
5351
|
for (a = 0; a < r.length; a++)
|
|
@@ -5321,21 +5355,21 @@ function Nl(e, t) {
|
|
|
5321
5355
|
function Hr(e) {
|
|
5322
5356
|
var t = e.flags, n = e.flagUrl, r = e.flagComponent, i = e.internationalIcon;
|
|
5323
5357
|
function a(o) {
|
|
5324
|
-
var d = o.country, u = o.label, l = o.aspectRatio, c = Pl(o, Cl),
|
|
5325
|
-
return /* @__PURE__ */
|
|
5358
|
+
var d = o.country, u = o.label, l = o.aspectRatio, c = Pl(o, Cl), p = i === rt ? l : void 0;
|
|
5359
|
+
return /* @__PURE__ */ O.createElement("div", xt({}, c, {
|
|
5326
5360
|
className: Ke("PhoneInputCountryIcon", {
|
|
5327
|
-
"PhoneInputCountryIcon--square":
|
|
5361
|
+
"PhoneInputCountryIcon--square": p === 1,
|
|
5328
5362
|
"PhoneInputCountryIcon--border": d
|
|
5329
5363
|
})
|
|
5330
|
-
}), d ? /* @__PURE__ */
|
|
5364
|
+
}), d ? /* @__PURE__ */ O.createElement(r, {
|
|
5331
5365
|
country: d,
|
|
5332
5366
|
countryName: u,
|
|
5333
5367
|
flags: t,
|
|
5334
5368
|
flagUrl: n,
|
|
5335
5369
|
className: "PhoneInputCountryIconImg"
|
|
5336
|
-
}) : /* @__PURE__ */
|
|
5370
|
+
}) : /* @__PURE__ */ O.createElement(i, {
|
|
5337
5371
|
title: u,
|
|
5338
|
-
aspectRatio:
|
|
5372
|
+
aspectRatio: p,
|
|
5339
5373
|
className: "PhoneInputCountryIconImg"
|
|
5340
5374
|
}));
|
|
5341
5375
|
}
|
|
@@ -5348,10 +5382,10 @@ function Hr(e) {
|
|
|
5348
5382
|
Hr({
|
|
5349
5383
|
// Must be equal to `defaultProps.flagUrl` in `./PhoneInputWithCountry.js`.
|
|
5350
5384
|
flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
|
|
5351
|
-
flagComponent:
|
|
5385
|
+
flagComponent: Kt,
|
|
5352
5386
|
internationalIcon: rt
|
|
5353
5387
|
});
|
|
5354
|
-
function
|
|
5388
|
+
function Nl(e, t) {
|
|
5355
5389
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5356
5390
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
5357
5391
|
if (Array.isArray(e) || (n = Sl(e)) || t) {
|
|
@@ -5366,24 +5400,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5366
5400
|
}
|
|
5367
5401
|
function Sl(e, t) {
|
|
5368
5402
|
if (e) {
|
|
5369
|
-
if (typeof e == "string") return
|
|
5403
|
+
if (typeof e == "string") return tr(e, t);
|
|
5370
5404
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
5371
5405
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
5372
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
5406
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return tr(e, t);
|
|
5373
5407
|
}
|
|
5374
5408
|
}
|
|
5375
|
-
function
|
|
5409
|
+
function tr(e, t) {
|
|
5376
5410
|
(t == null || t > e.length) && (t = e.length);
|
|
5377
5411
|
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
|
|
5378
5412
|
return r;
|
|
5379
5413
|
}
|
|
5380
|
-
function
|
|
5381
|
-
for (var n =
|
|
5414
|
+
function Ol(e, t) {
|
|
5415
|
+
for (var n = Nl(e), r; !(r = n()).done; ) {
|
|
5382
5416
|
var i = r.value;
|
|
5383
|
-
i &&
|
|
5417
|
+
i && Tl(i, t);
|
|
5384
5418
|
}
|
|
5385
5419
|
}
|
|
5386
|
-
function
|
|
5420
|
+
function Tl(e, t) {
|
|
5387
5421
|
typeof e == "function" ? e(t) : e.current = t;
|
|
5388
5422
|
}
|
|
5389
5423
|
var Vr = g.shape({
|
|
@@ -5396,7 +5430,7 @@ function ie(e, t) {
|
|
|
5396
5430
|
}
|
|
5397
5431
|
function Il(e) {
|
|
5398
5432
|
var t = e.value, n = e.phoneNumber, r = e.defaultCountry, i = e.getAnyCountry, a = e.countries, o = e.required, d = e.metadata, u;
|
|
5399
|
-
return n && n.country ? u = n.country : r && (!t ||
|
|
5433
|
+
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;
|
|
5400
5434
|
}
|
|
5401
5435
|
function Al(e) {
|
|
5402
5436
|
var t = e.countries, n = e.countryNames, r = e.addInternationalOption, i = e.compareStringsLocales, a = e.compareStrings;
|
|
@@ -5444,10 +5478,10 @@ function wl(e, t) {
|
|
|
5444
5478
|
}
|
|
5445
5479
|
}
|
|
5446
5480
|
} else if (e[0] !== "+")
|
|
5447
|
-
return
|
|
5481
|
+
return ge(e, n, i) || "";
|
|
5448
5482
|
return e;
|
|
5449
5483
|
}
|
|
5450
|
-
function
|
|
5484
|
+
function ge(e, t, n) {
|
|
5451
5485
|
if (e) {
|
|
5452
5486
|
if (e[0] === "+") {
|
|
5453
5487
|
if (e === "+")
|
|
@@ -5481,10 +5515,10 @@ function qr(e, t) {
|
|
|
5481
5515
|
if (u)
|
|
5482
5516
|
return !r || r.indexOf(u) >= 0 ? u : void 0;
|
|
5483
5517
|
if (n) {
|
|
5484
|
-
if (
|
|
5485
|
-
if (a &&
|
|
5518
|
+
if (me(e, n, d)) {
|
|
5519
|
+
if (a && me(e, a, d))
|
|
5486
5520
|
return a;
|
|
5487
|
-
if (i &&
|
|
5521
|
+
if (i && me(e, i, d))
|
|
5488
5522
|
return i;
|
|
5489
5523
|
if (!o)
|
|
5490
5524
|
return;
|
|
@@ -5494,21 +5528,21 @@ function qr(e, t) {
|
|
|
5494
5528
|
return n;
|
|
5495
5529
|
}
|
|
5496
5530
|
function Fl(e, t) {
|
|
5497
|
-
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, c = t.limitMaxLength,
|
|
5498
|
-
if (l &&
|
|
5531
|
+
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, c = t.limitMaxLength, p = t.countryCallingCodeEditable, s = t.metadata;
|
|
5532
|
+
if (l && p === !1 && r) {
|
|
5499
5533
|
var f = ie(r, s);
|
|
5500
5534
|
if (e.indexOf(f) !== 0) {
|
|
5501
|
-
var y,
|
|
5502
|
-
return
|
|
5535
|
+
var y, m = e && e[0] !== "+";
|
|
5536
|
+
return m ? (e = f + e, y = ge(e, r, s)) : e = f, {
|
|
5503
5537
|
phoneDigits: e,
|
|
5504
5538
|
value: y,
|
|
5505
5539
|
country: r
|
|
5506
5540
|
};
|
|
5507
5541
|
}
|
|
5508
5542
|
}
|
|
5509
|
-
l === !1 && r && e && e[0] === "+" && (e =
|
|
5510
|
-
var
|
|
5511
|
-
return e && (e[0] === "+" && (e === "+" || r && ie(r, s).indexOf(e) === 0) ?
|
|
5543
|
+
l === !1 && r && e && e[0] === "+" && (e = nr(e, r, s)), e && r && c && (e = Rl(e, r, s)), 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);
|
|
5544
|
+
var $;
|
|
5545
|
+
return e && (e[0] === "+" && (e === "+" || r && ie(r, s).indexOf(e) === 0) ? $ = void 0 : $ = ge(e, r, s)), $ && (r = qr($, {
|
|
5512
5546
|
country: r,
|
|
5513
5547
|
countries: u,
|
|
5514
5548
|
defaultCountry: i,
|
|
@@ -5517,16 +5551,16 @@ function Fl(e, t) {
|
|
|
5517
5551
|
// Instead, it's explicitly checked a bit later in the code.
|
|
5518
5552
|
required: !1,
|
|
5519
5553
|
metadata: s
|
|
5520
|
-
}), l === !1 && r && e && e[0] === "+" && (e =
|
|
5554
|
+
}), l === !1 && r && e && e[0] === "+" && (e = nr(e, r, s), $ = ge(e, r, s))), !r && o && (r = i || d()), {
|
|
5521
5555
|
// `phoneDigits` returned here are a "normalized" version of the original `phoneDigits`.
|
|
5522
5556
|
// The returned `phoneDigits` shouldn't be used anywhere except for passing it as
|
|
5523
5557
|
// `prevPhoneDigits` parameter to this same function on next input change event.
|
|
5524
5558
|
phoneDigits: e,
|
|
5525
5559
|
country: r,
|
|
5526
|
-
value:
|
|
5560
|
+
value: $
|
|
5527
5561
|
};
|
|
5528
5562
|
}
|
|
5529
|
-
function
|
|
5563
|
+
function nr(e, t, n) {
|
|
5530
5564
|
if (e.indexOf(ie(t, n)) === 0) {
|
|
5531
5565
|
var r = new Pe(t, n);
|
|
5532
5566
|
r.input(e);
|
|
@@ -5564,7 +5598,7 @@ function Zr(e, t, n) {
|
|
|
5564
5598
|
var i = r.getNumber();
|
|
5565
5599
|
return i && i.nationalNumber;
|
|
5566
5600
|
}
|
|
5567
|
-
function
|
|
5601
|
+
function me(e, t, n) {
|
|
5568
5602
|
for (var r = ie(t, n), i = 0; i < e.length && i < r.length; ) {
|
|
5569
5603
|
if (e[i] !== r[i])
|
|
5570
5604
|
return !1;
|
|
@@ -5584,7 +5618,7 @@ function Le(e) {
|
|
|
5584
5618
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5585
5619
|
}, Le(e);
|
|
5586
5620
|
}
|
|
5587
|
-
function
|
|
5621
|
+
function rr(e, t) {
|
|
5588
5622
|
var n = Object.keys(e);
|
|
5589
5623
|
if (Object.getOwnPropertySymbols) {
|
|
5590
5624
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -5597,9 +5631,9 @@ function nr(e, t) {
|
|
|
5597
5631
|
function Ue(e) {
|
|
5598
5632
|
for (var t = 1; t < arguments.length; t++) {
|
|
5599
5633
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
5600
|
-
t % 2 ?
|
|
5634
|
+
t % 2 ? rr(Object(n), !0).forEach(function(r) {
|
|
5601
5635
|
kl(e, r, n[r]);
|
|
5602
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
5636
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rr(Object(n)).forEach(function(r) {
|
|
5603
5637
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
5604
5638
|
});
|
|
5605
5639
|
}
|
|
@@ -5623,9 +5657,9 @@ function Gl(e, t) {
|
|
|
5623
5657
|
return (t === "string" ? String : Number)(e);
|
|
5624
5658
|
}
|
|
5625
5659
|
function Ul(e, t, n) {
|
|
5626
|
-
var r = e.metadata, i = e.countries, a = e.defaultCountry, o = e.value, d = e.reset, u = e.international, l = e.displayInitialValueAsLocalNumber, c = e.initialValueFormat,
|
|
5660
|
+
var r = e.metadata, i = e.countries, a = e.defaultCountry, o = e.value, d = e.reset, u = e.international, l = e.displayInitialValueAsLocalNumber, c = e.initialValueFormat, p = t.defaultCountry, s = t.value, f = t.reset;
|
|
5627
5661
|
n.country;
|
|
5628
|
-
var y = n.value,
|
|
5662
|
+
var y = n.value, m = n.hasUserSelectedACountry, $ = n.latestCountrySelectedByUser, C = function(W) {
|
|
5629
5663
|
return Xr(Ue(Ue({}, W), {}, {
|
|
5630
5664
|
international: u,
|
|
5631
5665
|
useNationalFormat: l || c === "national",
|
|
@@ -5634,7 +5668,7 @@ function Ul(e, t, n) {
|
|
|
5634
5668
|
};
|
|
5635
5669
|
if (d !== f)
|
|
5636
5670
|
return {
|
|
5637
|
-
phoneDigits:
|
|
5671
|
+
phoneDigits: C({
|
|
5638
5672
|
value: void 0,
|
|
5639
5673
|
defaultCountry: a
|
|
5640
5674
|
}),
|
|
@@ -5643,19 +5677,19 @@ function Ul(e, t, n) {
|
|
|
5643
5677
|
latestCountrySelectedByUser: void 0,
|
|
5644
5678
|
hasUserSelectedACountry: void 0
|
|
5645
5679
|
};
|
|
5646
|
-
if (a !==
|
|
5647
|
-
var T = !a || it(a, r),
|
|
5680
|
+
if (a !== p) {
|
|
5681
|
+
var T = !a || it(a, r), N = (
|
|
5648
5682
|
// By default, "no value has been entered" means `value` is `undefined`.
|
|
5649
5683
|
!y || // When `international` is `true`, and some country has been pre-selected,
|
|
5650
5684
|
// then the `<input/>` contains a pre-filled value of `+${countryCallingCode}${leadingDigits}`,
|
|
5651
5685
|
// so in case of `international` being `true`, "the user hasn't entered anything" situation
|
|
5652
5686
|
// doesn't just mean `value` is `undefined`, but could also mean `value` is `+${countryCallingCode}`.
|
|
5653
|
-
u && y ===
|
|
5687
|
+
u && y === C({
|
|
5654
5688
|
value: void 0,
|
|
5655
|
-
defaultCountry:
|
|
5689
|
+
defaultCountry: p
|
|
5656
5690
|
})
|
|
5657
|
-
),
|
|
5658
|
-
if (!
|
|
5691
|
+
), S = !o && N;
|
|
5692
|
+
if (!m && T && S)
|
|
5659
5693
|
return {
|
|
5660
5694
|
country: a,
|
|
5661
5695
|
// If `phoneDigits` is empty, then automatically select the new `country`
|
|
@@ -5663,7 +5697,7 @@ function Ul(e, t, n) {
|
|
|
5663
5697
|
// The code assumes that "no phone number has been entered by the user",
|
|
5664
5698
|
// and no `value` property has been passed, so the `phoneNumber` parameter
|
|
5665
5699
|
// of `_getInitialPhoneDigits({ value, phoneNumber, ... })` is `undefined`.
|
|
5666
|
-
phoneDigits:
|
|
5700
|
+
phoneDigits: C({
|
|
5667
5701
|
value: void 0,
|
|
5668
5702
|
defaultCountry: a
|
|
5669
5703
|
}),
|
|
@@ -5671,22 +5705,22 @@ function Ul(e, t, n) {
|
|
|
5671
5705
|
value: void 0
|
|
5672
5706
|
};
|
|
5673
5707
|
}
|
|
5674
|
-
if (!
|
|
5675
|
-
var
|
|
5708
|
+
if (!ir(o, s) && !ir(o, y)) {
|
|
5709
|
+
var h, v;
|
|
5676
5710
|
if (o) {
|
|
5677
|
-
o && Br(o),
|
|
5678
|
-
var
|
|
5679
|
-
|
|
5711
|
+
o && Br(o), h = Yr(o, r);
|
|
5712
|
+
var I = Wr(i, r);
|
|
5713
|
+
h && h.country ? (!I || I.indexOf(h.country) >= 0) && (v = h.country) : (v = qr(o, {
|
|
5680
5714
|
country: void 0,
|
|
5681
|
-
countries:
|
|
5715
|
+
countries: I,
|
|
5682
5716
|
metadata: r
|
|
5683
|
-
}),
|
|
5717
|
+
}), v || a && o.indexOf(ie(a, r)) === 0 && (v = a));
|
|
5684
5718
|
}
|
|
5685
5719
|
var F;
|
|
5686
5720
|
if (o) {
|
|
5687
|
-
if (
|
|
5688
|
-
var G =
|
|
5689
|
-
G ?
|
|
5721
|
+
if ($) {
|
|
5722
|
+
var G = v ? $ === v : me(o, $, r);
|
|
5723
|
+
G ? v || (v = $) : F = {
|
|
5690
5724
|
latestCountrySelectedByUser: void 0
|
|
5691
5725
|
};
|
|
5692
5726
|
}
|
|
@@ -5696,17 +5730,17 @@ function Ul(e, t, n) {
|
|
|
5696
5730
|
hasUserSelectedACountry: void 0
|
|
5697
5731
|
};
|
|
5698
5732
|
return Ue(Ue({}, F), {}, {
|
|
5699
|
-
phoneDigits:
|
|
5700
|
-
phoneNumber:
|
|
5733
|
+
phoneDigits: C({
|
|
5734
|
+
phoneNumber: h,
|
|
5701
5735
|
value: o,
|
|
5702
5736
|
defaultCountry: a
|
|
5703
5737
|
}),
|
|
5704
5738
|
value: o,
|
|
5705
|
-
country: o ?
|
|
5739
|
+
country: o ? v : a
|
|
5706
5740
|
});
|
|
5707
5741
|
}
|
|
5708
5742
|
}
|
|
5709
|
-
function
|
|
5743
|
+
function ir(e, t) {
|
|
5710
5744
|
return e === null && (e = void 0), t === null && (t = void 0), e === t;
|
|
5711
5745
|
}
|
|
5712
5746
|
var Bl = ["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"];
|
|
@@ -5718,7 +5752,7 @@ function Ce(e) {
|
|
|
5718
5752
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
5719
5753
|
}, Ce(e);
|
|
5720
5754
|
}
|
|
5721
|
-
function
|
|
5755
|
+
function ar(e, t) {
|
|
5722
5756
|
var n = Object.keys(e);
|
|
5723
5757
|
if (Object.getOwnPropertySymbols) {
|
|
5724
5758
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -5731,9 +5765,9 @@ function ir(e, t) {
|
|
|
5731
5765
|
function Jr(e) {
|
|
5732
5766
|
for (var t = 1; t < arguments.length; t++) {
|
|
5733
5767
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
5734
|
-
t % 2 ?
|
|
5768
|
+
t % 2 ? ar(Object(n), !0).forEach(function(r) {
|
|
5735
5769
|
z(e, r, n[r]);
|
|
5736
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
5770
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ar(Object(n)).forEach(function(r) {
|
|
5737
5771
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
5738
5772
|
});
|
|
5739
5773
|
}
|
|
@@ -5770,14 +5804,14 @@ function Vl(e, t) {
|
|
|
5770
5804
|
if (!(e instanceof t))
|
|
5771
5805
|
throw new TypeError("Cannot call a class as a function");
|
|
5772
5806
|
}
|
|
5773
|
-
function
|
|
5807
|
+
function or(e, t) {
|
|
5774
5808
|
for (var n = 0; n < t.length; n++) {
|
|
5775
5809
|
var r = t[n];
|
|
5776
5810
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Qr(r.key), r);
|
|
5777
5811
|
}
|
|
5778
5812
|
}
|
|
5779
5813
|
function Kl(e, t, n) {
|
|
5780
|
-
return t &&
|
|
5814
|
+
return t && or(e.prototype, t), n && or(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
5781
5815
|
}
|
|
5782
5816
|
function Yl(e, t, n) {
|
|
5783
5817
|
return t = ze(t), ql(e, zr() ? Reflect.construct(t, n || [], ze(e).constructor) : t.apply(e, n));
|
|
@@ -5812,12 +5846,12 @@ function ze(e) {
|
|
|
5812
5846
|
function Xl(e, t) {
|
|
5813
5847
|
if (typeof t != "function" && t !== null)
|
|
5814
5848
|
throw new TypeError("Super expression must either be null or a function");
|
|
5815
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
5849
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Ft(e, t);
|
|
5816
5850
|
}
|
|
5817
|
-
function
|
|
5818
|
-
return
|
|
5851
|
+
function Ft(e, t) {
|
|
5852
|
+
return Ft = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
5819
5853
|
return r.__proto__ = i, r;
|
|
5820
|
-
},
|
|
5854
|
+
}, Ft(e, t);
|
|
5821
5855
|
}
|
|
5822
5856
|
function z(e, t, n) {
|
|
5823
5857
|
return t = Qr(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
@@ -5839,34 +5873,34 @@ function Jl(e, t) {
|
|
|
5839
5873
|
var zl = /* @__PURE__ */ (function(e) {
|
|
5840
5874
|
function t(n) {
|
|
5841
5875
|
var r;
|
|
5842
|
-
Vl(this, t), r = Yl(this, t, [n]), z(r, "setInputRef", function(
|
|
5843
|
-
|
|
5844
|
-
}), z(r, "isCountrySupportedWithError", function(
|
|
5845
|
-
var
|
|
5846
|
-
return it(
|
|
5847
|
-
}), z(r, "onCountryChange", function(
|
|
5848
|
-
var
|
|
5876
|
+
Vl(this, t), r = Yl(this, t, [n]), z(r, "setInputRef", function($) {
|
|
5877
|
+
Ol([r.props.inputRef, r.inputRef], $);
|
|
5878
|
+
}), z(r, "isCountrySupportedWithError", function($) {
|
|
5879
|
+
var C = r.props.metadata;
|
|
5880
|
+
return it($, C);
|
|
5881
|
+
}), z(r, "onCountryChange", function($) {
|
|
5882
|
+
var C = r.props, T = C.international, N = C.metadata, S = C.onChange, h = C.focusInputOnCountrySelection, v = r.state, I = v.phoneDigits, F = v.country, G = wl(I, {
|
|
5849
5883
|
prevCountry: F,
|
|
5850
|
-
newCountry:
|
|
5851
|
-
metadata:
|
|
5884
|
+
newCountry: $,
|
|
5885
|
+
metadata: N,
|
|
5852
5886
|
// Convert the phone number to "national" format
|
|
5853
5887
|
// when the user changes the selected country by hand.
|
|
5854
5888
|
useNationalFormat: !T
|
|
5855
|
-
}), B =
|
|
5856
|
-
|
|
5857
|
-
country:
|
|
5858
|
-
latestCountrySelectedByUser:
|
|
5889
|
+
}), B = ge(G, $, N);
|
|
5890
|
+
h && r.inputRef.current.focus(), r.setState({
|
|
5891
|
+
country: $,
|
|
5892
|
+
latestCountrySelectedByUser: $,
|
|
5859
5893
|
hasUserSelectedACountry: !0,
|
|
5860
5894
|
phoneDigits: G,
|
|
5861
5895
|
value: B
|
|
5862
5896
|
}, function() {
|
|
5863
|
-
|
|
5897
|
+
S(B);
|
|
5864
5898
|
});
|
|
5865
|
-
}), z(r, "onChange", function(
|
|
5866
|
-
var
|
|
5899
|
+
}), z(r, "onChange", function($) {
|
|
5900
|
+
var C = r.props, T = C.defaultCountry, N = C.onChange, S = C.addInternationalOption, h = C.international, v = C.limitMaxLength, I = C.countryCallingCodeEditable, F = C.metadata, G = r.state, B = G.countries, W = G.phoneDigits, K = G.country, q = G.latestCountrySelectedByUser, te = Fl($, {
|
|
5867
5901
|
prevPhoneDigits: W,
|
|
5868
5902
|
country: K,
|
|
5869
|
-
countryRequired: !
|
|
5903
|
+
countryRequired: !S,
|
|
5870
5904
|
defaultCountry: T,
|
|
5871
5905
|
latestCountrySelectedByUser: q,
|
|
5872
5906
|
getAnyCountry: function() {
|
|
@@ -5875,23 +5909,23 @@ var zl = /* @__PURE__ */ (function(e) {
|
|
|
5875
5909
|
});
|
|
5876
5910
|
},
|
|
5877
5911
|
countries: B,
|
|
5878
|
-
international:
|
|
5879
|
-
limitMaxLength:
|
|
5880
|
-
countryCallingCodeEditable:
|
|
5912
|
+
international: h,
|
|
5913
|
+
limitMaxLength: v,
|
|
5914
|
+
countryCallingCodeEditable: I,
|
|
5881
5915
|
metadata: F
|
|
5882
5916
|
}), $e = te.phoneDigits, J = te.country, X = te.value, oe = {
|
|
5883
5917
|
phoneDigits: $e,
|
|
5884
5918
|
value: X,
|
|
5885
5919
|
country: J
|
|
5886
5920
|
};
|
|
5887
|
-
q && X && !
|
|
5921
|
+
q && X && !me(X, q, F) && (oe.latestCountrySelectedByUser = void 0), I === !1 && !X && $e === r.state.phoneDigits && (oe.forceRerender = {}), r.setState(
|
|
5888
5922
|
oe,
|
|
5889
5923
|
// Update the new `value` property.
|
|
5890
5924
|
// Doing it after the `state` has been updated
|
|
5891
5925
|
// because `onChange()` will trigger `getDerivedStateFromProps()`
|
|
5892
5926
|
// with the new `value` which will be compared to `state.value` there.
|
|
5893
5927
|
function() {
|
|
5894
|
-
return
|
|
5928
|
+
return N(X);
|
|
5895
5929
|
}
|
|
5896
5930
|
);
|
|
5897
5931
|
}), z(r, "_onFocus", function() {
|
|
@@ -5902,40 +5936,40 @@ var zl = /* @__PURE__ */ (function(e) {
|
|
|
5902
5936
|
return r.setState({
|
|
5903
5937
|
isFocused: !1
|
|
5904
5938
|
});
|
|
5905
|
-
}), z(r, "onFocus", function(
|
|
5939
|
+
}), z(r, "onFocus", function($) {
|
|
5906
5940
|
r._onFocus();
|
|
5907
|
-
var
|
|
5908
|
-
|
|
5909
|
-
}), z(r, "onBlur", function(
|
|
5910
|
-
var
|
|
5911
|
-
r._onBlur(),
|
|
5912
|
-
}), z(r, "onCountryFocus", function(
|
|
5941
|
+
var C = r.props.onFocus;
|
|
5942
|
+
C && C($);
|
|
5943
|
+
}), z(r, "onBlur", function($) {
|
|
5944
|
+
var C = r.props.onBlur;
|
|
5945
|
+
r._onBlur(), C && C($);
|
|
5946
|
+
}), z(r, "onCountryFocus", function($) {
|
|
5913
5947
|
r._onFocus();
|
|
5914
|
-
var
|
|
5915
|
-
if (
|
|
5916
|
-
var T =
|
|
5917
|
-
T && T(
|
|
5948
|
+
var C = r.props.countrySelectProps;
|
|
5949
|
+
if (C) {
|
|
5950
|
+
var T = C.onFocus;
|
|
5951
|
+
T && T($);
|
|
5918
5952
|
}
|
|
5919
|
-
}), z(r, "onCountryBlur", function(
|
|
5953
|
+
}), z(r, "onCountryBlur", function($) {
|
|
5920
5954
|
r._onBlur();
|
|
5921
|
-
var
|
|
5922
|
-
if (
|
|
5923
|
-
var T =
|
|
5924
|
-
T && T(
|
|
5955
|
+
var C = r.props.countrySelectProps;
|
|
5956
|
+
if (C) {
|
|
5957
|
+
var T = C.onBlur;
|
|
5958
|
+
T && T($);
|
|
5925
5959
|
}
|
|
5926
|
-
}), r.inputRef = /* @__PURE__ */
|
|
5960
|
+
}), r.inputRef = /* @__PURE__ */ O.createRef();
|
|
5927
5961
|
var i = r.props, a = i.value;
|
|
5928
5962
|
i.labels;
|
|
5929
|
-
var o = i.international, d = i.addInternationalOption, u = i.displayInitialValueAsLocalNumber, l = i.initialValueFormat, c = i.metadata,
|
|
5963
|
+
var o = i.international, d = i.addInternationalOption, u = i.displayInitialValueAsLocalNumber, l = i.initialValueFormat, c = i.metadata, p = r.props, s = p.defaultCountry, f = p.countries;
|
|
5930
5964
|
s && (r.isCountrySupportedWithError(s) || (s = void 0)), a && Br(a), f = Wr(f, c);
|
|
5931
5965
|
var y = Yr(a, c);
|
|
5932
5966
|
r.CountryIcon = Hr(r.props);
|
|
5933
|
-
var
|
|
5967
|
+
var m = Il({
|
|
5934
5968
|
value: a,
|
|
5935
5969
|
phoneNumber: y,
|
|
5936
5970
|
defaultCountry: s,
|
|
5937
5971
|
required: !d,
|
|
5938
|
-
countries: f ||
|
|
5972
|
+
countries: f || Xn(c),
|
|
5939
5973
|
getAnyCountry: function() {
|
|
5940
5974
|
return r.getFirstSupportedCountry({
|
|
5941
5975
|
countries: f
|
|
@@ -5947,7 +5981,7 @@ var zl = /* @__PURE__ */ (function(e) {
|
|
|
5947
5981
|
// Workaround for `this.props` inside `getDerivedStateFromProps()`.
|
|
5948
5982
|
props: r.props,
|
|
5949
5983
|
// The country selected.
|
|
5950
|
-
country:
|
|
5984
|
+
country: m,
|
|
5951
5985
|
// `countries` are stored in `this.state` because they're filtered.
|
|
5952
5986
|
// For example, a developer might theoretically pass some unsupported
|
|
5953
5987
|
// countries as part of the `countries` property, and because of that
|
|
@@ -5998,13 +6032,13 @@ var zl = /* @__PURE__ */ (function(e) {
|
|
|
5998
6032
|
}, {
|
|
5999
6033
|
key: "getCountrySelectOptions",
|
|
6000
6034
|
value: function(r) {
|
|
6001
|
-
var i = r.countries, a = this.props, o = a.international, d = a.countryCallingCodeEditable, u = a.countryOptionsOrder, l = a.addInternationalOption, c = a.labels,
|
|
6035
|
+
var i = r.countries, a = this.props, o = a.international, d = a.countryCallingCodeEditable, u = a.countryOptionsOrder, l = a.addInternationalOption, c = a.labels, p = a.locales, s = a.metadata;
|
|
6002
6036
|
return this.useMemoCountrySelectOptions(function() {
|
|
6003
6037
|
return vl(Al({
|
|
6004
|
-
countries: i ||
|
|
6038
|
+
countries: i || Xn(s),
|
|
6005
6039
|
countryNames: c,
|
|
6006
6040
|
addInternationalOption: o && d === !1 ? !1 : l,
|
|
6007
|
-
compareStringsLocales:
|
|
6041
|
+
compareStringsLocales: p
|
|
6008
6042
|
// compareStrings
|
|
6009
6043
|
}), bl(u, s));
|
|
6010
6044
|
}, [i, u, l, c, s]);
|
|
@@ -6027,27 +6061,27 @@ var zl = /* @__PURE__ */ (function(e) {
|
|
|
6027
6061
|
value: function() {
|
|
6028
6062
|
var r = this.props, i = r.name, a = r.disabled, o = r.readOnly, d = r.autoComplete, u = r.style, l = r.className;
|
|
6029
6063
|
r.inputRef;
|
|
6030
|
-
var c = r.inputComponent,
|
|
6064
|
+
var c = r.inputComponent, p = r.numberInputProps, s = r.smartCaret, f = r.countrySelectComponent, y = r.countrySelectProps, m = r.containerComponent, $ = r.containerComponentProps;
|
|
6031
6065
|
r.defaultCountry, r.countries, r.countryOptionsOrder;
|
|
6032
|
-
var
|
|
6066
|
+
var C = r.labels;
|
|
6033
6067
|
r.flags, r.flagComponent, r.flagUrl, r.addInternationalOption, r.internationalIcon, r.displayInitialValueAsLocalNumber, r.initialValueFormat, r.onCountryChange, r.limitMaxLength, r.countryCallingCodeEditable, r.focusInputOnCountrySelection, r.reset;
|
|
6034
|
-
var T = r.metadata,
|
|
6068
|
+
var T = r.metadata, N = r.international;
|
|
6035
6069
|
r.locales;
|
|
6036
|
-
var
|
|
6037
|
-
countries:
|
|
6070
|
+
var S = Wl(r, Bl), h = this.state, v = h.country, I = h.countries, F = h.phoneDigits, G = h.isFocused, B = s ? qu : Qu, W = this.getCountrySelectOptions({
|
|
6071
|
+
countries: I
|
|
6038
6072
|
});
|
|
6039
|
-
return /* @__PURE__ */
|
|
6073
|
+
return /* @__PURE__ */ O.createElement(m, ve({
|
|
6040
6074
|
style: u,
|
|
6041
6075
|
className: Ke(l, "PhoneInput", {
|
|
6042
6076
|
"PhoneInput--focus": G,
|
|
6043
6077
|
"PhoneInput--disabled": a,
|
|
6044
6078
|
"PhoneInput--readOnly": o
|
|
6045
6079
|
})
|
|
6046
|
-
},
|
|
6080
|
+
}, $), /* @__PURE__ */ O.createElement(f, ve({
|
|
6047
6081
|
name: i ? "".concat(i, "Country") : void 0,
|
|
6048
|
-
"aria-label":
|
|
6082
|
+
"aria-label": C.country
|
|
6049
6083
|
}, y, {
|
|
6050
|
-
value:
|
|
6084
|
+
value: v,
|
|
6051
6085
|
options: W,
|
|
6052
6086
|
onChange: this.onCountryChange,
|
|
6053
6087
|
onFocus: this.onCountryFocus,
|
|
@@ -6055,17 +6089,17 @@ var zl = /* @__PURE__ */ (function(e) {
|
|
|
6055
6089
|
disabled: a || y && y.disabled,
|
|
6056
6090
|
readOnly: o || y && y.readOnly,
|
|
6057
6091
|
iconComponent: this.CountryIcon
|
|
6058
|
-
})), /* @__PURE__ */
|
|
6092
|
+
})), /* @__PURE__ */ O.createElement(B, ve({
|
|
6059
6093
|
ref: this.setInputRef,
|
|
6060
6094
|
type: "tel",
|
|
6061
6095
|
autoComplete: d
|
|
6062
|
-
},
|
|
6063
|
-
inputFormat:
|
|
6064
|
-
international:
|
|
6065
|
-
withCountryCallingCode:
|
|
6096
|
+
}, p, S, {
|
|
6097
|
+
inputFormat: N === !0 ? "INTERNATIONAL" : N === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
|
|
6098
|
+
international: N ? !0 : void 0,
|
|
6099
|
+
withCountryCallingCode: N ? !0 : void 0,
|
|
6066
6100
|
name: i,
|
|
6067
6101
|
metadata: T,
|
|
6068
|
-
country:
|
|
6102
|
+
country: v,
|
|
6069
6103
|
value: F || "",
|
|
6070
6104
|
onChange: this.onChange,
|
|
6071
6105
|
onFocus: this.onFocus,
|
|
@@ -6073,7 +6107,7 @@ var zl = /* @__PURE__ */ (function(e) {
|
|
|
6073
6107
|
disabled: a,
|
|
6074
6108
|
readOnly: o,
|
|
6075
6109
|
inputComponent: c,
|
|
6076
|
-
className: Ke("PhoneInputInput",
|
|
6110
|
+
className: Ke("PhoneInputInput", p && p.className, S.className)
|
|
6077
6111
|
})));
|
|
6078
6112
|
}
|
|
6079
6113
|
}], [{
|
|
@@ -6092,8 +6126,8 @@ var zl = /* @__PURE__ */ (function(e) {
|
|
|
6092
6126
|
}
|
|
6093
6127
|
)
|
|
6094
6128
|
}]);
|
|
6095
|
-
})(
|
|
6096
|
-
return /* @__PURE__ */
|
|
6129
|
+
})(O.PureComponent), ei = /* @__PURE__ */ O.forwardRef(function(e, t) {
|
|
6130
|
+
return /* @__PURE__ */ O.createElement(zl, ve({}, Ql(e), {
|
|
6097
6131
|
inputRef: t
|
|
6098
6132
|
}));
|
|
6099
6133
|
});
|
|
@@ -6431,7 +6465,7 @@ ei.propTypes = {
|
|
|
6431
6465
|
*/
|
|
6432
6466
|
focusInputOnCountrySelection: g.bool
|
|
6433
6467
|
};
|
|
6434
|
-
var
|
|
6468
|
+
var dr = {
|
|
6435
6469
|
/**
|
|
6436
6470
|
* Remember (and autofill) the value as a phone number.
|
|
6437
6471
|
*/
|
|
@@ -6443,7 +6477,7 @@ var or = {
|
|
|
6443
6477
|
/**
|
|
6444
6478
|
* Flag icon component.
|
|
6445
6479
|
*/
|
|
6446
|
-
flagComponent:
|
|
6480
|
+
flagComponent: Kt,
|
|
6447
6481
|
/**
|
|
6448
6482
|
* By default, uses icons from `country-flag-icons` gitlab pages website.
|
|
6449
6483
|
*/
|
|
@@ -6506,8 +6540,8 @@ var or = {
|
|
|
6506
6540
|
};
|
|
6507
6541
|
function Ql(e) {
|
|
6508
6542
|
e = Jr({}, e);
|
|
6509
|
-
for (var t in
|
|
6510
|
-
e[t] === void 0 && (e[t] =
|
|
6543
|
+
for (var t in dr)
|
|
6544
|
+
e[t] === void 0 && (e[t] = dr[t]);
|
|
6511
6545
|
return e;
|
|
6512
6546
|
}
|
|
6513
6547
|
function e1(e, t) {
|
|
@@ -6781,15 +6815,15 @@ const t1 = {
|
|
|
6781
6815
|
ZZ: "International"
|
|
6782
6816
|
};
|
|
6783
6817
|
var n1 = ["metadata", "labels"];
|
|
6784
|
-
function
|
|
6785
|
-
return
|
|
6818
|
+
function Mt() {
|
|
6819
|
+
return Mt = Object.assign ? Object.assign.bind() : function(e) {
|
|
6786
6820
|
for (var t = 1; t < arguments.length; t++) {
|
|
6787
6821
|
var n = arguments[t];
|
|
6788
6822
|
for (var r in n)
|
|
6789
6823
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
6790
6824
|
}
|
|
6791
6825
|
return e;
|
|
6792
|
-
},
|
|
6826
|
+
}, Mt.apply(this, arguments);
|
|
6793
6827
|
}
|
|
6794
6828
|
function r1(e, t) {
|
|
6795
6829
|
if (e == null) return {};
|
|
@@ -6809,9 +6843,9 @@ function i1(e, t) {
|
|
|
6809
6843
|
return n;
|
|
6810
6844
|
}
|
|
6811
6845
|
function ti(e) {
|
|
6812
|
-
var t = /* @__PURE__ */
|
|
6846
|
+
var t = /* @__PURE__ */ O.forwardRef(function(n, r) {
|
|
6813
6847
|
var i = n.metadata, a = i === void 0 ? e : i, o = n.labels, d = o === void 0 ? t1 : o, u = r1(n, n1);
|
|
6814
|
-
return /* @__PURE__ */
|
|
6848
|
+
return /* @__PURE__ */ O.createElement(ei, Mt({}, u, {
|
|
6815
6849
|
ref: r,
|
|
6816
6850
|
metadata: a,
|
|
6817
6851
|
labels: d
|
|
@@ -6831,11 +6865,11 @@ ti(fr);
|
|
|
6831
6865
|
function ni() {
|
|
6832
6866
|
return a1(Rr, arguments);
|
|
6833
6867
|
}
|
|
6834
|
-
const
|
|
6868
|
+
const qt = "doct-auth-last-login";
|
|
6835
6869
|
function o1() {
|
|
6836
6870
|
if (typeof window > "u") return null;
|
|
6837
6871
|
try {
|
|
6838
|
-
const e = window.localStorage.getItem(
|
|
6872
|
+
const e = window.localStorage.getItem(qt);
|
|
6839
6873
|
if (!e) return null;
|
|
6840
6874
|
const t = JSON.parse(e);
|
|
6841
6875
|
if (t && typeof t.method == "string" && typeof t.maskedIdentifier == "string" && typeof t.timestamp == "number")
|
|
@@ -6847,14 +6881,14 @@ function o1() {
|
|
|
6847
6881
|
function d1(e) {
|
|
6848
6882
|
if (!(typeof window > "u"))
|
|
6849
6883
|
try {
|
|
6850
|
-
window.localStorage.setItem(
|
|
6884
|
+
window.localStorage.setItem(qt, JSON.stringify(e));
|
|
6851
6885
|
} catch {
|
|
6852
6886
|
}
|
|
6853
6887
|
}
|
|
6854
6888
|
function u1() {
|
|
6855
6889
|
if (!(typeof window > "u"))
|
|
6856
6890
|
try {
|
|
6857
|
-
window.localStorage.removeItem(
|
|
6891
|
+
window.localStorage.removeItem(qt);
|
|
6858
6892
|
} catch {
|
|
6859
6893
|
}
|
|
6860
6894
|
}
|
|
@@ -6886,7 +6920,7 @@ function l1() {
|
|
|
6886
6920
|
}
|
|
6887
6921
|
};
|
|
6888
6922
|
}
|
|
6889
|
-
function
|
|
6923
|
+
function N1() {
|
|
6890
6924
|
return {
|
|
6891
6925
|
get() {
|
|
6892
6926
|
return null;
|
|
@@ -6924,7 +6958,7 @@ function c1(e, t) {
|
|
|
6924
6958
|
const n = e?.code, r = ri(e).toLowerCase();
|
|
6925
6959
|
return n === "IDENTIFIER_CONFLICT" && t.email || t.email && r.includes("email") && r.includes("exists") ? "email" : n === "IDENTIFIER_CONFLICT" && t.phone || t.phone && (r.includes("mobile") || r.includes("phone")) && r.includes("exists") ? "phone" : null;
|
|
6926
6960
|
}
|
|
6927
|
-
function
|
|
6961
|
+
function gt(e) {
|
|
6928
6962
|
const t = ni(e);
|
|
6929
6963
|
return t ? {
|
|
6930
6964
|
countryCode: t.countryCallingCode,
|
|
@@ -6940,20 +6974,20 @@ function f1({
|
|
|
6940
6974
|
}) {
|
|
6941
6975
|
const n = se(e);
|
|
6942
6976
|
n.current = e;
|
|
6943
|
-
const r = e.tokenStorage ?? l1(), [i, a] =
|
|
6977
|
+
const r = e.tokenStorage ?? l1(), [i, a] = gi(Si, Ni()), o = ue((l) => {
|
|
6944
6978
|
r.set(l.accessToken, l.expiresAt), d1({
|
|
6945
6979
|
method: l.authMethod,
|
|
6946
6980
|
maskedIdentifier: l.authMethod === "phone" ? l.user.phone ?? "***" : l.user.email ?? "***",
|
|
6947
6981
|
timestamp: Date.now()
|
|
6948
6982
|
}), n.current.onAuthSuccess(l);
|
|
6949
6983
|
}, [r]);
|
|
6950
|
-
|
|
6984
|
+
Ee(() => {
|
|
6951
6985
|
i.step === "AUTHENTICATED" && ($i(), _i());
|
|
6952
|
-
}, [i.step]),
|
|
6986
|
+
}, [i.step]), Ee(() => {
|
|
6953
6987
|
i.step === "CHECKING_SESSION" || i.step === "AUTHENTICATED" || Ai(i);
|
|
6954
|
-
}, [i]),
|
|
6988
|
+
}, [i]), Ee(() => {
|
|
6955
6989
|
if (i.step !== "CHECKING_SESSION") return;
|
|
6956
|
-
const l = n.current.apiAdapter, c = r.get(),
|
|
6990
|
+
const l = n.current.apiAdapter, c = r.get(), p = () => {
|
|
6957
6991
|
const s = Ii();
|
|
6958
6992
|
if (s && s.step !== "CHECKING_SESSION" && s.step !== "AUTHENTICATED") {
|
|
6959
6993
|
a({
|
|
@@ -6978,7 +7012,7 @@ function f1({
|
|
|
6978
7012
|
f ? a({
|
|
6979
7013
|
type: "SET_SESSION",
|
|
6980
7014
|
session: f
|
|
6981
|
-
}) :
|
|
7015
|
+
}) : p();
|
|
6982
7016
|
}).catch(() => {
|
|
6983
7017
|
a({
|
|
6984
7018
|
type: "SET_STEP_METHOD_SELECT"
|
|
@@ -6986,14 +7020,14 @@ function f1({
|
|
|
6986
7020
|
});
|
|
6987
7021
|
return;
|
|
6988
7022
|
}
|
|
6989
|
-
|
|
7023
|
+
p();
|
|
6990
7024
|
return;
|
|
6991
7025
|
}
|
|
6992
7026
|
l.validateSession(c).then((s) => {
|
|
6993
7027
|
s ? a({
|
|
6994
7028
|
type: "SET_SESSION",
|
|
6995
7029
|
session: s
|
|
6996
|
-
}) : (r.remove(),
|
|
7030
|
+
}) : (r.remove(), p());
|
|
6997
7031
|
}).catch(() => {
|
|
6998
7032
|
r.remove(), a({
|
|
6999
7033
|
type: "SET_STEP_METHOD_SELECT"
|
|
@@ -7001,38 +7035,50 @@ function f1({
|
|
|
7001
7035
|
});
|
|
7002
7036
|
}, [i.step, r]);
|
|
7003
7037
|
const d = Ve(() => {
|
|
7004
|
-
const l = () => n.current.apiAdapter, c = (s) => n.current.onAuthError?.(s),
|
|
7038
|
+
const l = () => n.current.apiAdapter, c = (s) => n.current.onAuthError?.(s), p = (s, f) => {
|
|
7005
7039
|
const y = c1(s, f);
|
|
7006
7040
|
if (!y) return !1;
|
|
7007
7041
|
if (y === "email") {
|
|
7008
|
-
const
|
|
7009
|
-
if (!
|
|
7010
|
-
const
|
|
7042
|
+
const N = (f.email ?? "").trim();
|
|
7043
|
+
if (!N) return !1;
|
|
7044
|
+
const S = i.identifierType === "email" ? i.identifierValue : i.pendingEmail, h = i.identifierType === "phone" ? i.identifierValue : i.pendingPhone, v = h ? gt(h) : null;
|
|
7011
7045
|
return a({
|
|
7012
7046
|
type: "SET_STEP_LINK_OR_MERGE",
|
|
7013
7047
|
conflictField: "email",
|
|
7014
7048
|
name: f.fullName,
|
|
7015
|
-
...
|
|
7016
|
-
|
|
7049
|
+
...S && S !== N && {
|
|
7050
|
+
existingEmail: S,
|
|
7051
|
+
oldEmail: S
|
|
7052
|
+
},
|
|
7053
|
+
...v?.countryCode && {
|
|
7054
|
+
existingCountryCode: v.countryCode
|
|
7055
|
+
},
|
|
7056
|
+
...v?.phone && {
|
|
7057
|
+
existingPhone: v.phone
|
|
7017
7058
|
},
|
|
7018
|
-
newEmail:
|
|
7059
|
+
newEmail: N
|
|
7019
7060
|
}), !0;
|
|
7020
7061
|
}
|
|
7021
|
-
const
|
|
7022
|
-
if (!
|
|
7023
|
-
const
|
|
7062
|
+
const m = at(f.phone, f.countryCode);
|
|
7063
|
+
if (!m) return !1;
|
|
7064
|
+
const $ = gt(m), C = i.identifierType === "phone" && i.identifierValue ? gt(i.identifierValue) : null, T = i.identifierType === "email" ? i.identifierValue : i.pendingEmail;
|
|
7024
7065
|
return a({
|
|
7025
7066
|
type: "SET_STEP_LINK_OR_MERGE",
|
|
7026
7067
|
conflictField: "phone",
|
|
7027
7068
|
name: f.fullName,
|
|
7028
|
-
...
|
|
7029
|
-
|
|
7069
|
+
...T && {
|
|
7070
|
+
existingEmail: T
|
|
7030
7071
|
},
|
|
7031
|
-
...
|
|
7032
|
-
|
|
7072
|
+
...C?.countryCode && {
|
|
7073
|
+
existingCountryCode: C.countryCode,
|
|
7074
|
+
oldCountryCode: C.countryCode
|
|
7033
7075
|
},
|
|
7034
|
-
|
|
7035
|
-
|
|
7076
|
+
...C?.phone && {
|
|
7077
|
+
existingPhone: C.phone,
|
|
7078
|
+
oldPhone: C.phone
|
|
7079
|
+
},
|
|
7080
|
+
newCountryCode: $.countryCode,
|
|
7081
|
+
newPhone: $.phone
|
|
7036
7082
|
}), !0;
|
|
7037
7083
|
};
|
|
7038
7084
|
return {
|
|
@@ -7048,15 +7094,15 @@ function f1({
|
|
|
7048
7094
|
submitIdentifier(s) {
|
|
7049
7095
|
const f = s.phone != null ? "phone" : "email", y = f === "phone" ? at(s.phone, s.countryCode) : (s.email ?? "").trim();
|
|
7050
7096
|
if (f === "phone" && y) {
|
|
7051
|
-
const
|
|
7052
|
-
if ((
|
|
7053
|
-
const T = y.length > 4 ? `+** ***${y.replaceAll(/\D/g, "").slice(-4)}` : "+** ***",
|
|
7054
|
-
if (
|
|
7055
|
-
|
|
7097
|
+
const $ = ni(y)?.country;
|
|
7098
|
+
if (($ && $ !== "IN" ? "FOREIGN" : "INDIAN") === "FOREIGN") {
|
|
7099
|
+
const T = y.length > 4 ? `+** ***${y.replaceAll(/\D/g, "").slice(-4)}` : "+** ***", N = l().checkIdentifier;
|
|
7100
|
+
if (N) {
|
|
7101
|
+
N({
|
|
7056
7102
|
type: "phone",
|
|
7057
7103
|
value: y
|
|
7058
|
-
}).then((
|
|
7059
|
-
if (!
|
|
7104
|
+
}).then((S) => {
|
|
7105
|
+
if (!S.exists) {
|
|
7060
7106
|
a({
|
|
7061
7107
|
type: "SET_STEP_SIGNUP_DETAILS",
|
|
7062
7108
|
userType: "FOREIGN",
|
|
@@ -7071,9 +7117,9 @@ function f1({
|
|
|
7071
7117
|
l().sendOtp({
|
|
7072
7118
|
type: "phone",
|
|
7073
7119
|
value: y
|
|
7074
|
-
}).then((
|
|
7075
|
-
if (!
|
|
7076
|
-
c(
|
|
7120
|
+
}).then((h) => {
|
|
7121
|
+
if (!h.success) {
|
|
7122
|
+
c(h.error ?? {
|
|
7077
7123
|
code: "UNKNOWN"
|
|
7078
7124
|
});
|
|
7079
7125
|
return;
|
|
@@ -7083,7 +7129,7 @@ function f1({
|
|
|
7083
7129
|
userType: "FOREIGN",
|
|
7084
7130
|
identifierType: "phone",
|
|
7085
7131
|
value: y,
|
|
7086
|
-
maskedValue:
|
|
7132
|
+
maskedValue: h.maskedValue ?? T
|
|
7087
7133
|
});
|
|
7088
7134
|
}).catch(() => c({
|
|
7089
7135
|
code: "NETWORK_ERROR"
|
|
@@ -7109,20 +7155,20 @@ function f1({
|
|
|
7109
7155
|
l().sendOtp({
|
|
7110
7156
|
type: "email",
|
|
7111
7157
|
value: y
|
|
7112
|
-
}).then((
|
|
7113
|
-
if (!
|
|
7114
|
-
c(
|
|
7158
|
+
}).then((m) => {
|
|
7159
|
+
if (!m.success) {
|
|
7160
|
+
c(m.error ?? {
|
|
7115
7161
|
code: "UNKNOWN"
|
|
7116
7162
|
});
|
|
7117
7163
|
return;
|
|
7118
7164
|
}
|
|
7119
|
-
const
|
|
7165
|
+
const $ = m.maskedValue ?? "*@*";
|
|
7120
7166
|
a({
|
|
7121
7167
|
type: "SET_STEP_OTP_VERIFICATION",
|
|
7122
7168
|
userType: "INDIAN",
|
|
7123
7169
|
identifierType: "email",
|
|
7124
7170
|
value: y,
|
|
7125
|
-
maskedValue:
|
|
7171
|
+
maskedValue: $
|
|
7126
7172
|
});
|
|
7127
7173
|
}).catch(() => c({
|
|
7128
7174
|
code: "NETWORK_ERROR"
|
|
@@ -7132,20 +7178,20 @@ function f1({
|
|
|
7132
7178
|
l().sendOtp({
|
|
7133
7179
|
type: f,
|
|
7134
7180
|
value: y
|
|
7135
|
-
}).then((
|
|
7136
|
-
if (!
|
|
7137
|
-
c(
|
|
7181
|
+
}).then((m) => {
|
|
7182
|
+
if (!m.success) {
|
|
7183
|
+
c(m.error ?? {
|
|
7138
7184
|
code: "UNKNOWN"
|
|
7139
7185
|
});
|
|
7140
7186
|
return;
|
|
7141
7187
|
}
|
|
7142
|
-
const
|
|
7188
|
+
const $ = m.maskedValue ?? (f === "phone" ? "+** ***" : "*@*");
|
|
7143
7189
|
a({
|
|
7144
7190
|
type: "SET_STEP_OTP_VERIFICATION",
|
|
7145
7191
|
userType: "INDIAN",
|
|
7146
7192
|
identifierType: f,
|
|
7147
7193
|
value: y,
|
|
7148
|
-
maskedValue:
|
|
7194
|
+
maskedValue: $
|
|
7149
7195
|
});
|
|
7150
7196
|
}).catch(() => c({
|
|
7151
7197
|
code: "NETWORK_ERROR"
|
|
@@ -7156,8 +7202,8 @@ function f1({
|
|
|
7156
7202
|
if (i.userType === "FOREIGN") {
|
|
7157
7203
|
const f = (s.email ?? "").trim(), y = at(s.phone, s.countryCode);
|
|
7158
7204
|
if (y) {
|
|
7159
|
-
const
|
|
7160
|
-
if (!
|
|
7205
|
+
const m = f || i.pendingEmail || (i.identifierType === "email" ? i.identifierValue : "") || "";
|
|
7206
|
+
if (!m) {
|
|
7161
7207
|
c({
|
|
7162
7208
|
code: "UNKNOWN",
|
|
7163
7209
|
message: "Email is required"
|
|
@@ -7167,22 +7213,22 @@ function f1({
|
|
|
7167
7213
|
l().sendOtp({
|
|
7168
7214
|
type: "phone",
|
|
7169
7215
|
value: y
|
|
7170
|
-
}).then((
|
|
7171
|
-
if (
|
|
7172
|
-
c(
|
|
7216
|
+
}).then(($) => {
|
|
7217
|
+
if (!$.success) {
|
|
7218
|
+
c($.error ?? {
|
|
7173
7219
|
code: "UNKNOWN"
|
|
7174
7220
|
});
|
|
7175
7221
|
return;
|
|
7176
7222
|
}
|
|
7177
|
-
const
|
|
7223
|
+
const C = $.maskedValue ?? "+** ***";
|
|
7178
7224
|
a({
|
|
7179
7225
|
type: "SET_STEP_OTP_VERIFICATION",
|
|
7180
7226
|
userType: "FOREIGN",
|
|
7181
7227
|
identifierType: "phone",
|
|
7182
7228
|
value: y,
|
|
7183
|
-
maskedValue:
|
|
7229
|
+
maskedValue: C,
|
|
7184
7230
|
pendingFullName: s.fullName,
|
|
7185
|
-
pendingEmail:
|
|
7231
|
+
pendingEmail: m,
|
|
7186
7232
|
pendingPhone: y
|
|
7187
7233
|
});
|
|
7188
7234
|
}).catch(() => c({
|
|
@@ -7200,20 +7246,20 @@ function f1({
|
|
|
7200
7246
|
l().sendOtp({
|
|
7201
7247
|
type: "email",
|
|
7202
7248
|
value: f
|
|
7203
|
-
}).then((
|
|
7204
|
-
if (!
|
|
7205
|
-
c(
|
|
7249
|
+
}).then((m) => {
|
|
7250
|
+
if (!m.success) {
|
|
7251
|
+
c(m.error ?? {
|
|
7206
7252
|
code: "UNKNOWN"
|
|
7207
7253
|
});
|
|
7208
7254
|
return;
|
|
7209
7255
|
}
|
|
7210
|
-
const
|
|
7256
|
+
const $ = m.maskedValue ?? "*@*";
|
|
7211
7257
|
a({
|
|
7212
7258
|
type: "SET_STEP_OTP_VERIFICATION",
|
|
7213
7259
|
userType: "FOREIGN",
|
|
7214
7260
|
identifierType: "email",
|
|
7215
7261
|
value: f,
|
|
7216
|
-
maskedValue:
|
|
7262
|
+
maskedValue: $,
|
|
7217
7263
|
pendingFullName: s.fullName,
|
|
7218
7264
|
pendingEmail: f,
|
|
7219
7265
|
pendingPhone: s.phone ?? i.pendingPhone
|
|
@@ -7229,7 +7275,7 @@ function f1({
|
|
|
7229
7275
|
session: f
|
|
7230
7276
|
});
|
|
7231
7277
|
}).catch((f) => {
|
|
7232
|
-
if (
|
|
7278
|
+
if (p(f, s)) return;
|
|
7233
7279
|
const y = f?.code != null ? f : {
|
|
7234
7280
|
code: "UNKNOWN",
|
|
7235
7281
|
message: f?.message
|
|
@@ -7242,58 +7288,58 @@ function f1({
|
|
|
7242
7288
|
const {
|
|
7243
7289
|
identifierType: f,
|
|
7244
7290
|
identifierValue: y,
|
|
7245
|
-
userType:
|
|
7246
|
-
pendingFullName:
|
|
7247
|
-
pendingEmail:
|
|
7291
|
+
userType: m,
|
|
7292
|
+
pendingFullName: $,
|
|
7293
|
+
pendingEmail: C,
|
|
7248
7294
|
pendingPhone: T
|
|
7249
7295
|
} = i;
|
|
7250
7296
|
try {
|
|
7251
|
-
const
|
|
7297
|
+
const N = await l().verifyOtp({
|
|
7252
7298
|
type: f,
|
|
7253
7299
|
value: y,
|
|
7254
7300
|
otp: s
|
|
7255
7301
|
});
|
|
7256
|
-
if (
|
|
7257
|
-
o(
|
|
7302
|
+
if (N.session) {
|
|
7303
|
+
o(N.session), a({
|
|
7258
7304
|
type: "SET_STEP_AUTHENTICATED",
|
|
7259
|
-
session:
|
|
7305
|
+
session: N.session
|
|
7260
7306
|
});
|
|
7261
7307
|
return;
|
|
7262
7308
|
}
|
|
7263
|
-
if (
|
|
7264
|
-
if (
|
|
7309
|
+
if (N.isNewUser) {
|
|
7310
|
+
if (m === "FOREIGN" && $ && C) {
|
|
7265
7311
|
try {
|
|
7266
|
-
const
|
|
7267
|
-
fullName:
|
|
7268
|
-
email:
|
|
7312
|
+
const S = await l().completeProfile({
|
|
7313
|
+
fullName: $,
|
|
7314
|
+
email: C,
|
|
7269
7315
|
...T && {
|
|
7270
7316
|
phone: T
|
|
7271
7317
|
}
|
|
7272
7318
|
});
|
|
7273
|
-
o(
|
|
7319
|
+
o(S), a({
|
|
7274
7320
|
type: "SET_STEP_AUTHENTICATED",
|
|
7275
|
-
session:
|
|
7321
|
+
session: S
|
|
7276
7322
|
});
|
|
7277
|
-
} catch (
|
|
7278
|
-
if (
|
|
7279
|
-
fullName:
|
|
7280
|
-
email:
|
|
7323
|
+
} catch (S) {
|
|
7324
|
+
if (p(S, {
|
|
7325
|
+
fullName: $,
|
|
7326
|
+
email: C,
|
|
7281
7327
|
...T && {
|
|
7282
7328
|
phone: T
|
|
7283
7329
|
}
|
|
7284
7330
|
}))
|
|
7285
7331
|
return;
|
|
7286
|
-
const
|
|
7332
|
+
const h = S?.message, v = S?.code != null ? S : {
|
|
7287
7333
|
code: "UNKNOWN",
|
|
7288
|
-
...
|
|
7289
|
-
message:
|
|
7334
|
+
...h && {
|
|
7335
|
+
message: h
|
|
7290
7336
|
}
|
|
7291
7337
|
};
|
|
7292
|
-
throw c(
|
|
7338
|
+
throw c(v), v;
|
|
7293
7339
|
}
|
|
7294
7340
|
return;
|
|
7295
7341
|
}
|
|
7296
|
-
if (
|
|
7342
|
+
if (m === "FOREIGN") {
|
|
7297
7343
|
a({
|
|
7298
7344
|
type: "SET_STEP_SIGNUP_DETAILS",
|
|
7299
7345
|
userType: "FOREIGN",
|
|
@@ -7310,12 +7356,12 @@ function f1({
|
|
|
7310
7356
|
signupCollectField: f === "phone" ? "email" : "phone"
|
|
7311
7357
|
});
|
|
7312
7358
|
}
|
|
7313
|
-
} catch (
|
|
7314
|
-
const
|
|
7359
|
+
} catch (N) {
|
|
7360
|
+
const S = N?.code != null ? N : {
|
|
7315
7361
|
code: "OTP_INVALID",
|
|
7316
|
-
message:
|
|
7362
|
+
message: N?.message ?? "Invalid OTP"
|
|
7317
7363
|
};
|
|
7318
|
-
throw c(
|
|
7364
|
+
throw c(S), S;
|
|
7319
7365
|
}
|
|
7320
7366
|
},
|
|
7321
7367
|
resendOtp() {
|
|
@@ -7356,54 +7402,60 @@ function f1({
|
|
|
7356
7402
|
code: "PROVIDER_AUTH_FAILED"
|
|
7357
7403
|
}));
|
|
7358
7404
|
},
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7405
|
+
continueLinkOrMerge() {
|
|
7406
|
+
a({
|
|
7407
|
+
type: "SET_LINK_OR_MERGE_VERIFICATION_STAGE"
|
|
7408
|
+
});
|
|
7409
|
+
},
|
|
7410
|
+
async verifyLinkOrMerge(s) {
|
|
7411
|
+
const f = i.linkOrMerge, y = l().linkOrMergeAccount;
|
|
7412
|
+
if (!f || !y) {
|
|
7413
|
+
const $ = {
|
|
7363
7414
|
code: "UNKNOWN",
|
|
7364
7415
|
message: "Link or merge is not configured"
|
|
7365
7416
|
};
|
|
7366
|
-
throw c(
|
|
7417
|
+
throw c($), $;
|
|
7418
|
+
}
|
|
7419
|
+
if (f.conflictField !== s.conflictField) {
|
|
7420
|
+
const $ = {
|
|
7421
|
+
code: "UNKNOWN",
|
|
7422
|
+
message: "Link or merge details changed"
|
|
7423
|
+
};
|
|
7424
|
+
throw c($), $;
|
|
7367
7425
|
}
|
|
7368
|
-
const
|
|
7426
|
+
const m = s.conflictField === "email" ? {
|
|
7369
7427
|
isLinking: !0,
|
|
7370
|
-
name:
|
|
7428
|
+
name: f.name,
|
|
7371
7429
|
conflictField: "email",
|
|
7372
|
-
|
|
7373
|
-
oldEmail: s.oldEmail
|
|
7374
|
-
},
|
|
7430
|
+
oldEmail: s.oldEmail,
|
|
7375
7431
|
newEmail: s.newEmail
|
|
7376
7432
|
} : {
|
|
7377
7433
|
isLinking: !0,
|
|
7378
|
-
name:
|
|
7434
|
+
name: f.name,
|
|
7379
7435
|
conflictField: "phone",
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
},
|
|
7383
|
-
...s.oldPhone && {
|
|
7384
|
-
oldPhone: s.oldPhone
|
|
7385
|
-
},
|
|
7436
|
+
oldCountryCode: s.oldCountryCode,
|
|
7437
|
+
oldPhone: s.oldPhone,
|
|
7386
7438
|
newCountryCode: s.newCountryCode,
|
|
7387
7439
|
newPhone: s.newPhone
|
|
7388
7440
|
};
|
|
7389
7441
|
try {
|
|
7390
|
-
const
|
|
7391
|
-
if (
|
|
7392
|
-
o(
|
|
7442
|
+
const $ = await y(m);
|
|
7443
|
+
if ($) {
|
|
7444
|
+
o($), a({
|
|
7393
7445
|
type: "SET_STEP_AUTHENTICATED",
|
|
7394
|
-
session:
|
|
7446
|
+
session: $
|
|
7395
7447
|
});
|
|
7396
7448
|
return;
|
|
7397
7449
|
}
|
|
7398
7450
|
a({
|
|
7399
7451
|
type: "SET_STEP_METHOD_SELECT"
|
|
7400
7452
|
});
|
|
7401
|
-
} catch (
|
|
7402
|
-
const
|
|
7453
|
+
} catch ($) {
|
|
7454
|
+
const C = $?.code != null ? $ : {
|
|
7403
7455
|
code: "UNKNOWN",
|
|
7404
|
-
message: ri(
|
|
7456
|
+
message: ri($) || "Link or merge failed"
|
|
7405
7457
|
};
|
|
7406
|
-
throw c(
|
|
7458
|
+
throw c(C), C;
|
|
7407
7459
|
}
|
|
7408
7460
|
},
|
|
7409
7461
|
goBack() {
|
|
@@ -7442,7 +7494,7 @@ function f1({
|
|
|
7442
7494
|
isLoading: i.step === "CHECKING_SESSION",
|
|
7443
7495
|
providerConfig: e.providers
|
|
7444
7496
|
}), [i, d, e.providers]);
|
|
7445
|
-
return /* @__PURE__ */ H(
|
|
7497
|
+
return /* @__PURE__ */ H(jt.Provider, { value: u, children: t });
|
|
7446
7498
|
}
|
|
7447
7499
|
function $1() {
|
|
7448
7500
|
const e = fe.c(1);
|
|
@@ -7459,16 +7511,16 @@ function y1(e) {
|
|
|
7459
7511
|
let n;
|
|
7460
7512
|
return t[0] !== e ? (n = /* @__PURE__ */ H(sr.Preset, { preset: "verification", children: /* @__PURE__ */ H(pi, { ...e }) }), t[0] = e, t[1] = n) : n = t[1], n;
|
|
7461
7513
|
}
|
|
7462
|
-
const
|
|
7514
|
+
const O1 = {
|
|
7463
7515
|
Provider: f1,
|
|
7464
7516
|
Login: $1,
|
|
7465
7517
|
Signup: p1,
|
|
7466
7518
|
Otp: y1
|
|
7467
7519
|
};
|
|
7468
7520
|
export {
|
|
7469
|
-
|
|
7521
|
+
O1 as Auth,
|
|
7470
7522
|
Fi as AuthFlow,
|
|
7471
|
-
|
|
7523
|
+
jt as AuthFlowContext,
|
|
7472
7524
|
sr as AuthLayout,
|
|
7473
7525
|
Pi as AuthLayoutPreset,
|
|
7474
7526
|
ii as AuthLayoutWrapper,
|
|
@@ -7476,11 +7528,11 @@ export {
|
|
|
7476
7528
|
_1 as DEFAULT_OTP_TITLES,
|
|
7477
7529
|
w1 as DefaultFooter,
|
|
7478
7530
|
R1 as EnterpriseHeader,
|
|
7479
|
-
|
|
7531
|
+
Ei as INITIAL_STEP,
|
|
7480
7532
|
x1 as ImageSlider,
|
|
7481
7533
|
li as LinkOrMergePage,
|
|
7482
7534
|
F1 as LoginEntry,
|
|
7483
|
-
|
|
7535
|
+
Jt as LoginEntryPage,
|
|
7484
7536
|
M1 as MainLayout,
|
|
7485
7537
|
L1 as MainLogin,
|
|
7486
7538
|
fi as MainLoginPage,
|
|
@@ -7499,15 +7551,15 @@ export {
|
|
|
7499
7551
|
S1 as createAxiosAuthInterceptors,
|
|
7500
7552
|
P1 as createHttpAuthAdapter,
|
|
7501
7553
|
he as defaultState,
|
|
7502
|
-
|
|
7554
|
+
Ni as getInitialAuthFlowState,
|
|
7503
7555
|
o1 as getRepeatLoginInfo,
|
|
7504
7556
|
l1 as localStorageTokenStorage,
|
|
7505
|
-
|
|
7557
|
+
N1 as serverCookieTokenStorage,
|
|
7506
7558
|
d1 as setRepeatLoginInfo,
|
|
7507
7559
|
di as useAppleSignIn,
|
|
7508
7560
|
cr as useAuthFlow,
|
|
7509
7561
|
xi as useAuthFlowRouterSync,
|
|
7510
|
-
|
|
7562
|
+
E1 as useAuthSession,
|
|
7511
7563
|
U1 as useFormStatePersistence,
|
|
7512
7564
|
oi as useGoogleAuth,
|
|
7513
7565
|
B1 as useLoginEntryForm,
|