lizaui 6.0.4 → 6.0.5

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.
Files changed (32) hide show
  1. package/dist/chunks/chevron-down-BJdjIpSS.js +2 -0
  2. package/dist/chunks/chevron-down-BJdjIpSS.js.map +1 -0
  3. package/dist/chunks/chevron-down-BarFwo2L.js +75 -0
  4. package/dist/chunks/chevron-down-BarFwo2L.js.map +1 -0
  5. package/dist/chunks/search-BUtVV_ij.js +2 -0
  6. package/dist/chunks/search-BUtVV_ij.js.map +1 -0
  7. package/dist/chunks/search-YTvzxtJf.js +9 -0
  8. package/dist/chunks/search-YTvzxtJf.js.map +1 -0
  9. package/dist/chunks/select-BBV4-uzN.js +2 -0
  10. package/dist/chunks/select-BBV4-uzN.js.map +1 -0
  11. package/dist/chunks/select-KroYdQPb.js +1251 -0
  12. package/dist/chunks/select-KroYdQPb.js.map +1 -0
  13. package/dist/components/phone-input/index.d.ts +2 -0
  14. package/dist/components/phone-input/index.d.ts.map +1 -0
  15. package/dist/components/phone-input/phone-input.d.ts +28 -0
  16. package/dist/components/phone-input/phone-input.d.ts.map +1 -0
  17. package/dist/pagination/index.cjs.js +1 -1
  18. package/dist/pagination/index.es.js +1 -1
  19. package/dist/phone-input/index.cjs.js +15 -0
  20. package/dist/phone-input/index.cjs.js.map +1 -0
  21. package/dist/phone-input/index.es.js +3402 -0
  22. package/dist/phone-input/index.es.js.map +1 -0
  23. package/dist/phone-input.d.ts +2 -0
  24. package/dist/ui/index.cjs.js +4 -4
  25. package/dist/ui/index.cjs.js.map +1 -1
  26. package/dist/ui/index.es.js +743 -745
  27. package/dist/ui/index.es.js.map +1 -1
  28. package/package.json +7 -1
  29. package/dist/chunks/select-C25qmFpo.js +0 -1321
  30. package/dist/chunks/select-C25qmFpo.js.map +0 -1
  31. package/dist/chunks/select-DW1tRhcQ.js +0 -2
  32. package/dist/chunks/select-DW1tRhcQ.js.map +0 -1
@@ -0,0 +1,3402 @@
1
+ import { j as c } from "../chunks/jsx-runtime-Cl_4eDuT.js";
2
+ import { useState as w, useRef as ht, useId as qe, useEffect as tt } from "react";
3
+ import { twMerge as k } from "../chunks/bundle-mjs-BcJXDvon.js";
4
+ import { c as ze } from "../chunks/utils-BFAOD39w.js";
5
+ import "../chunks/textarea-ClUh9LtQ.js";
6
+ import { L as tr } from "../chunks/label-error-Vg0P1jJJ.js";
7
+ import "../chunks/button-wlPPnoey.js";
8
+ import { a as er, C as rr } from "../chunks/chevron-down-BarFwo2L.js";
9
+ import { S as nr } from "../chunks/search-YTvzxtJf.js";
10
+ const xe = { 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, [["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\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)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[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}", [9]], ["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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|[24-689])\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]], ["(\\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]|33|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-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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, "528[89]"], 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-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\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|83)|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]|8[124-6])\\d|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", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[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,10}|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", ["3"]]], 0, 0, 0, 0, 0, 0, [["0669[0-79]\\d{1,6}|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[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}", [6, 7, 8, 9, 10, 11]], ["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|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", ["7"], "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|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|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{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-5]|8[0-7]))\\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}"]]], MC: ["377", "00", "(?:[3489]|6\\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", ["6"], "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", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,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", ["[26]1|3[289]|4[1246-8]|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", "[267]\\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", ["[267]"]], ["(\\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{8}", [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", ["[0-57-9]"]]], 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, [["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-68]))\\d{4}|(?:2742|305[3-9]|(?:472|983)[2-47-9]|505[2-57-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-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|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-47-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-29])|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]|33|44|66|77|88)[2-9]\\d{6}"], 0, 0, 0, ["305209\\d{4}"]]], 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}"]]] } };
11
+ function Ee(t, e) {
12
+ var r = Array.prototype.slice.call(e);
13
+ return r.push(xe), t.apply(this, r);
14
+ }
15
+ function Ut(t, e) {
16
+ t = t.split("-"), e = e.split("-");
17
+ for (var r = t[0].split("."), n = e[0].split("."), d = 0; d < 3; d++) {
18
+ var i = Number(r[d]), a = Number(n[d]);
19
+ if (i > a) return 1;
20
+ if (a > i) return -1;
21
+ if (!isNaN(i) && isNaN(a)) return 1;
22
+ if (isNaN(i) && !isNaN(a)) return -1;
23
+ }
24
+ return t[1] && e[1] ? t[1] > e[1] ? 1 : t[1] < e[1] ? -1 : 0 : !t[1] && e[1] ? 1 : t[1] && !e[1] ? -1 : 0;
25
+ }
26
+ var dr = {}.constructor;
27
+ function F(t) {
28
+ return t != null && t.constructor === dr;
29
+ }
30
+ function D(t) {
31
+ "@babel/helpers - typeof";
32
+ return D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
33
+ return typeof e;
34
+ } : function(e) {
35
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
36
+ }, D(t);
37
+ }
38
+ function it(t, e) {
39
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
40
+ }
41
+ function ir(t, e) {
42
+ for (var r = 0; r < e.length; r++) {
43
+ var n = e[r];
44
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, ar(n.key), n);
45
+ }
46
+ }
47
+ function at(t, e, r) {
48
+ return e && ir(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
49
+ }
50
+ function ar(t) {
51
+ var e = or(t, "string");
52
+ return D(e) == "symbol" ? e : e + "";
53
+ }
54
+ function or(t, e) {
55
+ if (D(t) != "object" || !t) return t;
56
+ var r = t[Symbol.toPrimitive];
57
+ if (r !== void 0) {
58
+ var n = r.call(t, e);
59
+ if (D(n) != "object") return n;
60
+ throw new TypeError("@@toPrimitive must return a primitive value.");
61
+ }
62
+ return String(t);
63
+ }
64
+ var ur = "1.2.0", $r = "1.7.35", Ht = " ext. ", lr = /^\d+$/, y = /* @__PURE__ */ (function() {
65
+ function t(e) {
66
+ it(this, t), we(e), this.metadata = e, _e.call(this, e);
67
+ }
68
+ return at(t, [{
69
+ key: "getCountries",
70
+ value: function() {
71
+ return Object.keys(this.metadata.countries).filter(function(r) {
72
+ return r !== "001";
73
+ });
74
+ }
75
+ }, {
76
+ key: "getCountryMetadata",
77
+ value: function(r) {
78
+ return this.metadata.countries[r];
79
+ }
80
+ }, {
81
+ key: "nonGeographic",
82
+ value: function() {
83
+ if (!(this.v1 || this.v2 || this.v3))
84
+ return this.metadata.nonGeographic || this.metadata.nonGeographical;
85
+ }
86
+ }, {
87
+ key: "hasCountry",
88
+ value: function(r) {
89
+ return this.getCountryMetadata(r) !== void 0;
90
+ }
91
+ }, {
92
+ key: "hasCallingCode",
93
+ value: function(r) {
94
+ if (this.getCountryCodesForCallingCode(r))
95
+ return !0;
96
+ if (this.nonGeographic()) {
97
+ if (this.nonGeographic()[r])
98
+ return !0;
99
+ } else {
100
+ var n = this.countryCallingCodes()[r];
101
+ if (n && n.length === 1 && n[0] === "001")
102
+ return !0;
103
+ }
104
+ }
105
+ }, {
106
+ key: "isNonGeographicCallingCode",
107
+ value: function(r) {
108
+ return this.nonGeographic() ? !!this.nonGeographic()[r] : !this.getCountryCodesForCallingCode(r);
109
+ }
110
+ // Deprecated.
111
+ }, {
112
+ key: "country",
113
+ value: function(r) {
114
+ return this.selectNumberingPlan(r);
115
+ }
116
+ }, {
117
+ key: "selectNumberingPlan",
118
+ value: function(r, n) {
119
+ if (r && lr.test(r) && (n = r, r = null), r && r !== "001") {
120
+ if (!this.hasCountry(r))
121
+ throw new Error("Unknown country: ".concat(r));
122
+ this.numberingPlan = new Wt(this.getCountryMetadata(r), this);
123
+ } else if (n) {
124
+ if (!this.hasCallingCode(n))
125
+ throw new Error("Unknown calling code: ".concat(n));
126
+ this.numberingPlan = new Wt(this.getNumberingPlanMetadata(n), this);
127
+ } else
128
+ this.numberingPlan = void 0;
129
+ return this;
130
+ }
131
+ }, {
132
+ key: "getCountryCodesForCallingCode",
133
+ value: function(r) {
134
+ var n = this.countryCallingCodes()[r];
135
+ if (n)
136
+ return n.length === 1 && n[0].length === 3 ? void 0 : n;
137
+ }
138
+ }, {
139
+ key: "getCountryCodeForCallingCode",
140
+ value: function(r) {
141
+ var n = this.getCountryCodesForCallingCode(r);
142
+ if (n)
143
+ return n[0];
144
+ }
145
+ }, {
146
+ key: "getNumberingPlanMetadata",
147
+ value: function(r) {
148
+ var n = this.getCountryCodeForCallingCode(r);
149
+ if (n)
150
+ return this.getCountryMetadata(n);
151
+ if (this.nonGeographic()) {
152
+ var d = this.nonGeographic()[r];
153
+ if (d)
154
+ return d;
155
+ } else {
156
+ var i = this.countryCallingCodes()[r];
157
+ if (i && i.length === 1 && i[0] === "001")
158
+ return this.metadata.countries["001"];
159
+ }
160
+ }
161
+ // Deprecated.
162
+ }, {
163
+ key: "countryCallingCode",
164
+ value: function() {
165
+ return this.numberingPlan.callingCode();
166
+ }
167
+ // Deprecated.
168
+ }, {
169
+ key: "IDDPrefix",
170
+ value: function() {
171
+ return this.numberingPlan.IDDPrefix();
172
+ }
173
+ // Deprecated.
174
+ }, {
175
+ key: "defaultIDDPrefix",
176
+ value: function() {
177
+ return this.numberingPlan.defaultIDDPrefix();
178
+ }
179
+ // Deprecated.
180
+ }, {
181
+ key: "nationalNumberPattern",
182
+ value: function() {
183
+ return this.numberingPlan.nationalNumberPattern();
184
+ }
185
+ // Deprecated.
186
+ }, {
187
+ key: "possibleLengths",
188
+ value: function() {
189
+ return this.numberingPlan.possibleLengths();
190
+ }
191
+ // Deprecated.
192
+ }, {
193
+ key: "formats",
194
+ value: function() {
195
+ return this.numberingPlan.formats();
196
+ }
197
+ // Deprecated.
198
+ }, {
199
+ key: "nationalPrefixForParsing",
200
+ value: function() {
201
+ return this.numberingPlan.nationalPrefixForParsing();
202
+ }
203
+ // Deprecated.
204
+ }, {
205
+ key: "nationalPrefixTransformRule",
206
+ value: function() {
207
+ return this.numberingPlan.nationalPrefixTransformRule();
208
+ }
209
+ // Deprecated.
210
+ }, {
211
+ key: "leadingDigits",
212
+ value: function() {
213
+ return this.numberingPlan.leadingDigits();
214
+ }
215
+ // Deprecated.
216
+ }, {
217
+ key: "hasTypes",
218
+ value: function() {
219
+ return this.numberingPlan.hasTypes();
220
+ }
221
+ // Deprecated.
222
+ }, {
223
+ key: "type",
224
+ value: function(r) {
225
+ return this.numberingPlan.type(r);
226
+ }
227
+ // Deprecated.
228
+ }, {
229
+ key: "ext",
230
+ value: function() {
231
+ return this.numberingPlan.ext();
232
+ }
233
+ }, {
234
+ key: "countryCallingCodes",
235
+ value: function() {
236
+ return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
237
+ }
238
+ // Deprecated.
239
+ }, {
240
+ key: "chooseCountryByCountryCallingCode",
241
+ value: function(r) {
242
+ return this.selectNumberingPlan(r);
243
+ }
244
+ }, {
245
+ key: "hasSelectedNumberingPlan",
246
+ value: function() {
247
+ return this.numberingPlan !== void 0;
248
+ }
249
+ }]);
250
+ })(), Wt = /* @__PURE__ */ (function() {
251
+ function t(e, r) {
252
+ it(this, t), this.globalMetadataObject = r, this.metadata = e, _e.call(this, r.metadata);
253
+ }
254
+ return at(t, [{
255
+ key: "callingCode",
256
+ value: function() {
257
+ return this.metadata[0];
258
+ }
259
+ // Formatting information for regions which share
260
+ // a country calling code is contained by only one region
261
+ // for performance reasons. For example, for NANPA region
262
+ // ("North American Numbering Plan Administration",
263
+ // which includes USA, Canada, Cayman Islands, Bahamas, etc)
264
+ // it will be contained in the metadata for `US`.
265
+ }, {
266
+ key: "getDefaultCountryMetadataForRegion",
267
+ value: function() {
268
+ return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
269
+ }
270
+ // Is always present.
271
+ }, {
272
+ key: "IDDPrefix",
273
+ value: function() {
274
+ if (!(this.v1 || this.v2))
275
+ return this.metadata[1];
276
+ }
277
+ // Is only present when a country supports multiple IDD prefixes.
278
+ }, {
279
+ key: "defaultIDDPrefix",
280
+ value: function() {
281
+ if (!(this.v1 || this.v2))
282
+ return this.metadata[12];
283
+ }
284
+ }, {
285
+ key: "nationalNumberPattern",
286
+ value: function() {
287
+ return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
288
+ }
289
+ // "possible length" data is always present in Google's metadata.
290
+ }, {
291
+ key: "possibleLengths",
292
+ value: function() {
293
+ if (!this.v1)
294
+ return this.metadata[this.v2 ? 2 : 3];
295
+ }
296
+ }, {
297
+ key: "_getFormats",
298
+ value: function(r) {
299
+ return r[this.v1 ? 2 : this.v2 ? 3 : 4];
300
+ }
301
+ // For countries of the same region (e.g. NANPA)
302
+ // formats are all stored in the "main" country for that region.
303
+ // E.g. "RU" and "KZ", "US" and "CA".
304
+ }, {
305
+ key: "formats",
306
+ value: function() {
307
+ var r = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
308
+ return n.map(function(d) {
309
+ return new sr(d, r);
310
+ });
311
+ }
312
+ }, {
313
+ key: "nationalPrefix",
314
+ value: function() {
315
+ return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
316
+ }
317
+ }, {
318
+ key: "_getNationalPrefixFormattingRule",
319
+ value: function(r) {
320
+ return r[this.v1 ? 4 : this.v2 ? 5 : 6];
321
+ }
322
+ // For countries of the same region (e.g. NANPA)
323
+ // national prefix formatting rule is stored in the "main" country for that region.
324
+ // E.g. "RU" and "KZ", "US" and "CA".
325
+ }, {
326
+ key: "nationalPrefixFormattingRule",
327
+ value: function() {
328
+ return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
329
+ }
330
+ }, {
331
+ key: "_nationalPrefixForParsing",
332
+ value: function() {
333
+ return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
334
+ }
335
+ }, {
336
+ key: "nationalPrefixForParsing",
337
+ value: function() {
338
+ return this._nationalPrefixForParsing() || this.nationalPrefix();
339
+ }
340
+ }, {
341
+ key: "nationalPrefixTransformRule",
342
+ value: function() {
343
+ return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
344
+ }
345
+ }, {
346
+ key: "_getNationalPrefixIsOptionalWhenFormatting",
347
+ value: function() {
348
+ return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
349
+ }
350
+ // For countries of the same region (e.g. NANPA)
351
+ // "national prefix is optional when formatting" flag is
352
+ // stored in the "main" country for that region.
353
+ // E.g. "RU" and "KZ", "US" and "CA".
354
+ }, {
355
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
356
+ value: function() {
357
+ return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
358
+ }
359
+ }, {
360
+ key: "leadingDigits",
361
+ value: function() {
362
+ return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
363
+ }
364
+ }, {
365
+ key: "types",
366
+ value: function() {
367
+ return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
368
+ }
369
+ }, {
370
+ key: "hasTypes",
371
+ value: function() {
372
+ return this.types() && this.types().length === 0 ? !1 : !!this.types();
373
+ }
374
+ }, {
375
+ key: "type",
376
+ value: function(r) {
377
+ if (this.hasTypes() && Vt(this.types(), r))
378
+ return new cr(Vt(this.types(), r), this);
379
+ }
380
+ }, {
381
+ key: "ext",
382
+ value: function() {
383
+ return this.v1 || this.v2 ? Ht : this.metadata[13] || Ht;
384
+ }
385
+ }]);
386
+ })(), sr = /* @__PURE__ */ (function() {
387
+ function t(e, r) {
388
+ it(this, t), this._format = e, this.metadata = r;
389
+ }
390
+ return at(t, [{
391
+ key: "pattern",
392
+ value: function() {
393
+ return this._format[0];
394
+ }
395
+ }, {
396
+ key: "format",
397
+ value: function() {
398
+ return this._format[1];
399
+ }
400
+ }, {
401
+ key: "leadingDigitsPatterns",
402
+ value: function() {
403
+ return this._format[2] || [];
404
+ }
405
+ }, {
406
+ key: "nationalPrefixFormattingRule",
407
+ value: function() {
408
+ return this._format[3] || this.metadata.nationalPrefixFormattingRule();
409
+ }
410
+ }, {
411
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
412
+ value: function() {
413
+ return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
414
+ }
415
+ }, {
416
+ key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
417
+ value: function() {
418
+ return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
419
+ }
420
+ // Checks whether national prefix formatting rule contains national prefix.
421
+ }, {
422
+ key: "usesNationalPrefix",
423
+ value: function() {
424
+ return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
425
+ !fr.test(this.nationalPrefixFormattingRule()));
426
+ }
427
+ }, {
428
+ key: "internationalFormat",
429
+ value: function() {
430
+ return this._format[5] || this.format();
431
+ }
432
+ }]);
433
+ })(), fr = /^\(?\$1\)?$/, cr = /* @__PURE__ */ (function() {
434
+ function t(e, r) {
435
+ it(this, t), this.type = e, this.metadata = r;
436
+ }
437
+ return at(t, [{
438
+ key: "pattern",
439
+ value: function() {
440
+ return this.metadata.v1 ? this.type : this.type[0];
441
+ }
442
+ }, {
443
+ key: "possibleLengths",
444
+ value: function() {
445
+ if (!this.metadata.v1)
446
+ return this.type[1] || this.metadata.possibleLengths();
447
+ }
448
+ }]);
449
+ })();
450
+ function Vt(t, e) {
451
+ switch (e) {
452
+ case "FIXED_LINE":
453
+ return t[0];
454
+ case "MOBILE":
455
+ return t[1];
456
+ case "TOLL_FREE":
457
+ return t[2];
458
+ case "PREMIUM_RATE":
459
+ return t[3];
460
+ case "PERSONAL_NUMBER":
461
+ return t[4];
462
+ case "VOICEMAIL":
463
+ return t[5];
464
+ case "UAN":
465
+ return t[6];
466
+ case "PAGER":
467
+ return t[7];
468
+ case "VOIP":
469
+ return t[8];
470
+ case "SHARED_COST":
471
+ return t[9];
472
+ }
473
+ }
474
+ function we(t) {
475
+ if (!t)
476
+ throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
477
+ if (!F(t) || !F(t.countries))
478
+ throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(F(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + hr(t) + ": " + t, "."));
479
+ }
480
+ var hr = function(e) {
481
+ return D(e);
482
+ };
483
+ function ot(t, e) {
484
+ if (e = new y(e), e.hasCountry(t))
485
+ return e.country(t).countryCallingCode();
486
+ throw new Error("Unknown country: ".concat(t));
487
+ }
488
+ function mr(t, e) {
489
+ return e.countries.hasOwnProperty(t);
490
+ }
491
+ function _e(t) {
492
+ var e = t.version;
493
+ typeof e == "number" ? (this.v1 = e === 1, this.v2 = e === 2, this.v3 = e === 3, this.v4 = e === 4) : e ? Ut(e, ur) === -1 ? this.v2 = !0 : Ut(e, $r) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
494
+ }
495
+ function ut(t, e) {
496
+ return gr(t, void 0, e);
497
+ }
498
+ function gr(t, e, r) {
499
+ var n = r.type(e), d = n && n.possibleLengths() || r.possibleLengths();
500
+ if (!d)
501
+ return "IS_POSSIBLE";
502
+ var i = t.length, a = d[0];
503
+ return a === i ? "IS_POSSIBLE" : a > i ? "TOO_SHORT" : d[d.length - 1] < i ? "TOO_LONG" : d.indexOf(i, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
504
+ }
505
+ function yr(t, e, r) {
506
+ if (e === void 0 && (e = {}), r = new y(r), e.v2) {
507
+ if (!t.countryCallingCode)
508
+ throw new Error("Invalid phone number object passed");
509
+ r.selectNumberingPlan(t.countryCallingCode);
510
+ } else {
511
+ if (!t.phone)
512
+ return !1;
513
+ if (t.country) {
514
+ if (!r.hasCountry(t.country))
515
+ throw new Error("Unknown country: ".concat(t.country));
516
+ r.country(t.country);
517
+ } else {
518
+ if (!t.countryCallingCode)
519
+ throw new Error("Invalid phone number object passed");
520
+ r.selectNumberingPlan(t.countryCallingCode);
521
+ }
522
+ }
523
+ if (r.possibleLengths())
524
+ return Fe(t.phone || t.nationalNumber, r);
525
+ if (t.countryCallingCode && r.isNonGeographicCallingCode(t.countryCallingCode))
526
+ return !0;
527
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
528
+ }
529
+ function Fe(t, e) {
530
+ switch (ut(t, e)) {
531
+ case "IS_POSSIBLE":
532
+ return !0;
533
+ // This library ignores "local-only" phone numbers (for simplicity).
534
+ // See the readme for more info on what are "local-only" phone numbers.
535
+ // case 'IS_POSSIBLE_LOCAL_ONLY':
536
+ // return !isInternational
537
+ default:
538
+ return !1;
539
+ }
540
+ }
541
+ function E(t, e) {
542
+ return t = t || "", new RegExp("^(?:" + e + ")$").test(t);
543
+ }
544
+ function pr(t, e) {
545
+ var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
546
+ if (r) return (r = r.call(t)).next.bind(r);
547
+ if (Array.isArray(t) || (r = vr(t)) || e) {
548
+ r && (t = r);
549
+ var n = 0;
550
+ return function() {
551
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
552
+ };
553
+ }
554
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
555
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
556
+ }
557
+ function vr(t, e) {
558
+ if (t) {
559
+ if (typeof t == "string") return Kt(t, e);
560
+ var r = {}.toString.call(t).slice(8, -1);
561
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Kt(t, e) : void 0;
562
+ }
563
+ }
564
+ function Kt(t, e) {
565
+ (e == null || e > t.length) && (e = t.length);
566
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
567
+ return n;
568
+ }
569
+ var br = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
570
+ function _t(t, e, r) {
571
+ if (e = e || {}, !(!t.country && !t.countryCallingCode)) {
572
+ r = new y(r), r.selectNumberingPlan(t.country, t.countryCallingCode);
573
+ var n = e.v2 ? t.nationalNumber : t.phone;
574
+ if (E(n, r.nationalNumberPattern())) {
575
+ if (mt(n, "FIXED_LINE", r))
576
+ return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || mt(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
577
+ for (var d = pr(br), i; !(i = d()).done; ) {
578
+ var a = i.value;
579
+ if (mt(n, a, r))
580
+ return a;
581
+ }
582
+ }
583
+ }
584
+ }
585
+ function mt(t, e, r) {
586
+ return e = r.type(e), !e || !e.pattern() || e.possibleLengths() && e.possibleLengths().indexOf(t.length) < 0 ? !1 : E(t, e.pattern());
587
+ }
588
+ function Nr(t, e, r) {
589
+ if (e = e || {}, r = new y(r), r.selectNumberingPlan(t.country, t.countryCallingCode), r.hasTypes())
590
+ return _t(t, e, r.metadata) !== void 0;
591
+ var n = e.v2 ? t.nationalNumber : t.phone;
592
+ return E(n, r.nationalNumberPattern());
593
+ }
594
+ function Cr(t, e, r) {
595
+ var n = new y(r), d = n.getCountryCodesForCallingCode(t);
596
+ return d ? d.filter(function(i) {
597
+ return Pr(e, i, r);
598
+ }) : [];
599
+ }
600
+ function Pr(t, e, r) {
601
+ var n = new y(r);
602
+ return n.selectNumberingPlan(e), n.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
603
+ }
604
+ var Ft = 2, Sr = 17, xr = 3, p = "0-90-9٠-٩۰-۹", Er = "-‐-―−ー-", wr = "//", _r = "..", Fr = "  ­​⁠ ", Ar = "()()[]\\[\\]", Tr = "~⁓∼~", P = "".concat(Er).concat(wr).concat(_r).concat(Fr).concat(Ar).concat(Tr), $t = "++", Ir = new RegExp("([" + p + "])");
605
+ function Ae(t, e, r, n) {
606
+ if (e) {
607
+ var d = new y(n);
608
+ d.selectNumberingPlan(e, r);
609
+ var i = new RegExp(d.IDDPrefix());
610
+ if (t.search(i) === 0) {
611
+ t = t.slice(t.match(i)[0].length);
612
+ var a = t.match(Ir);
613
+ if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
614
+ return t;
615
+ }
616
+ }
617
+ }
618
+ function bt(t, e) {
619
+ if (t && e.numberingPlan.nationalPrefixForParsing()) {
620
+ var r = new RegExp("^(?:" + e.numberingPlan.nationalPrefixForParsing() + ")"), n = r.exec(t);
621
+ if (n) {
622
+ var d, i, a = n.length - 1, o = a > 0 && n[a];
623
+ if (e.nationalPrefixTransformRule() && o)
624
+ d = t.replace(r, e.nationalPrefixTransformRule()), a > 1 && (i = n[1]);
625
+ else {
626
+ var u = n[0];
627
+ d = t.slice(u.length), o && (i = n[1]);
628
+ }
629
+ var $;
630
+ if (o) {
631
+ var l = t.indexOf(n[1]), h = t.slice(0, l);
632
+ h === e.numberingPlan.nationalPrefix() && ($ = e.numberingPlan.nationalPrefix());
633
+ } else
634
+ $ = n[0];
635
+ return {
636
+ nationalNumber: d,
637
+ nationalPrefix: $,
638
+ carrierCode: i
639
+ };
640
+ }
641
+ }
642
+ return {
643
+ nationalNumber: t
644
+ };
645
+ }
646
+ function Nt(t, e) {
647
+ var r = bt(t, e), n = r.carrierCode, d = r.nationalNumber;
648
+ if (d !== t) {
649
+ if (!Or(t, d, e))
650
+ return {
651
+ nationalNumber: t
652
+ };
653
+ if (e.possibleLengths() && !Rr(d, e))
654
+ return {
655
+ nationalNumber: t
656
+ };
657
+ }
658
+ return {
659
+ nationalNumber: d,
660
+ carrierCode: n
661
+ };
662
+ }
663
+ function Or(t, e, r) {
664
+ return !(E(t, r.nationalNumberPattern()) && !E(e, r.nationalNumberPattern()));
665
+ }
666
+ function Rr(t, e) {
667
+ switch (ut(t, e)) {
668
+ case "TOO_SHORT":
669
+ case "INVALID_LENGTH":
670
+ return !1;
671
+ default:
672
+ return !0;
673
+ }
674
+ }
675
+ function Te(t, e, r, n) {
676
+ var d = e ? ot(e, n) : r;
677
+ if (t.indexOf(d) === 0) {
678
+ n = new y(n), n.selectNumberingPlan(e, r);
679
+ var i = t.slice(d.length), a = Nt(i, n), o = a.nationalNumber, u = Nt(t, n), $ = u.nationalNumber;
680
+ if (!E($, n.nationalNumberPattern()) && E(o, n.nationalNumberPattern()) || ut($, n) === "TOO_LONG")
681
+ return {
682
+ countryCallingCode: d,
683
+ number: i
684
+ };
685
+ }
686
+ return {
687
+ number: t
688
+ };
689
+ }
690
+ function At(t, e, r, n) {
691
+ if (!t)
692
+ return {};
693
+ var d;
694
+ if (t[0] !== "+") {
695
+ var i = Ae(t, e, r, n);
696
+ if (i && i !== t)
697
+ d = !0, t = "+" + i;
698
+ else {
699
+ if (e || r) {
700
+ var a = Te(t, e, r, n), o = a.countryCallingCode, u = a.number;
701
+ if (o)
702
+ return {
703
+ countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
704
+ countryCallingCode: o,
705
+ number: u
706
+ };
707
+ }
708
+ return {
709
+ // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
710
+ // countryCallingCodeSource: 'UNSPECIFIED',
711
+ number: t
712
+ };
713
+ }
714
+ }
715
+ if (t[1] === "0")
716
+ return {};
717
+ n = new y(n);
718
+ for (var $ = 2; $ - 1 <= xr && $ <= t.length; ) {
719
+ var l = t.slice(1, $);
720
+ if (n.hasCallingCode(l))
721
+ return n.selectNumberingPlan(l), {
722
+ countryCallingCodeSource: d ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
723
+ countryCallingCode: l,
724
+ number: t.slice($)
725
+ };
726
+ $++;
727
+ }
728
+ return {};
729
+ }
730
+ function Ie(t) {
731
+ return t.replace(new RegExp("[".concat(P, "]+"), "g"), " ").trim();
732
+ }
733
+ var Oe = /(\$\d)/;
734
+ function Re(t, e, r) {
735
+ var n = r.useInternationalFormat, d = r.withNationalPrefix;
736
+ r.carrierCode, r.metadata;
737
+ var i = t.replace(new RegExp(e.pattern()), n ? e.internationalFormat() : (
738
+ // This library doesn't use `domestic_carrier_code_formatting_rule`,
739
+ // because that one is only used when formatting phone numbers
740
+ // for dialing from a mobile phone, and this is not a dialing library.
741
+ // carrierCode && format.domesticCarrierCodeFormattingRule()
742
+ // // First, replace the $CC in the formatting rule with the desired carrier code.
743
+ // // Then, replace the $FG in the formatting rule with the first group
744
+ // // and the carrier code combined in the appropriate way.
745
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
746
+ // : (
747
+ // withNationalPrefix && format.nationalPrefixFormattingRule()
748
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
749
+ // : format.format()
750
+ // )
751
+ d && e.nationalPrefixFormattingRule() ? e.format().replace(Oe, e.nationalPrefixFormattingRule()) : e.format()
752
+ ));
753
+ return n ? Ie(i) : i;
754
+ }
755
+ var Dr = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
756
+ function Lr(t, e, r) {
757
+ var n = new y(r);
758
+ if (n.selectNumberingPlan(t, e), n.defaultIDDPrefix())
759
+ return n.defaultIDDPrefix();
760
+ if (Dr.test(n.IDDPrefix()))
761
+ return n.IDDPrefix();
762
+ }
763
+ var Mr = ";ext=", O = function(e) {
764
+ return "([".concat(p, "]{1,").concat(e, "})");
765
+ };
766
+ function De(t) {
767
+ var e = "20", r = "15", n = "9", d = "6", i = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", $ = "(?:[xx##~~]|int|int)", l = "[- ]+", h = "[  \\t]*", f = "(?:,{2}|;)", m = Mr + O(e), b = i + u + a + O(e) + o, v = i + $ + a + O(n) + o, N = l + O(d) + "#", A = h + f + a + O(r) + o, L = h + "(?:,)+" + a + O(n) + o;
768
+ return m + "|" + b + "|" + v + "|" + N + "|" + A + "|" + L;
769
+ }
770
+ var jr = "[" + p + "]{" + Ft + "}", kr = "[" + $t + "]{0,1}(?:[" + P + "]*[" + p + "]){3,}[" + P + p + "]*", Gr = new RegExp("^[" + $t + "]{0,1}(?:[" + P + "]*[" + p + "]){1,2}$", "i"), Br = kr + // Phone number extensions
771
+ "(?:" + De() + ")?", Ur = new RegExp(
772
+ // Either a short two-digit-only phone number
773
+ "^" + jr + "$|^" + Br + "$",
774
+ "i"
775
+ );
776
+ function Hr(t) {
777
+ return t.length >= Ft && Ur.test(t);
778
+ }
779
+ function Wr(t) {
780
+ return Gr.test(t);
781
+ }
782
+ function Vr(t) {
783
+ var e = t.number, r = t.ext;
784
+ if (!e)
785
+ return "";
786
+ if (e[0] !== "+")
787
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
788
+ return "tel:".concat(e).concat(r ? ";ext=" + r : "");
789
+ }
790
+ function G(t) {
791
+ "@babel/helpers - typeof";
792
+ return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
793
+ return typeof e;
794
+ } : function(e) {
795
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
796
+ }, G(t);
797
+ }
798
+ function Kr(t, e) {
799
+ var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
800
+ if (r) return (r = r.call(t)).next.bind(r);
801
+ if (Array.isArray(t) || (r = Xr(t)) || e) {
802
+ r && (t = r);
803
+ var n = 0;
804
+ return function() {
805
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
806
+ };
807
+ }
808
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
809
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
810
+ }
811
+ function Xr(t, e) {
812
+ if (t) {
813
+ if (typeof t == "string") return Xt(t, e);
814
+ var r = {}.toString.call(t).slice(8, -1);
815
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Xt(t, e) : void 0;
816
+ }
817
+ }
818
+ function Xt(t, e) {
819
+ (e == null || e > t.length) && (e = t.length);
820
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
821
+ return n;
822
+ }
823
+ function Yt(t, e) {
824
+ var r = Object.keys(t);
825
+ if (Object.getOwnPropertySymbols) {
826
+ var n = Object.getOwnPropertySymbols(t);
827
+ e && (n = n.filter(function(d) {
828
+ return Object.getOwnPropertyDescriptor(t, d).enumerable;
829
+ })), r.push.apply(r, n);
830
+ }
831
+ return r;
832
+ }
833
+ function Zt(t) {
834
+ for (var e = 1; e < arguments.length; e++) {
835
+ var r = arguments[e] != null ? arguments[e] : {};
836
+ e % 2 ? Yt(Object(r), !0).forEach(function(n) {
837
+ Yr(t, n, r[n]);
838
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Yt(Object(r)).forEach(function(n) {
839
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
840
+ });
841
+ }
842
+ return t;
843
+ }
844
+ function Yr(t, e, r) {
845
+ return (e = Zr(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
846
+ }
847
+ function Zr(t) {
848
+ var e = Jr(t, "string");
849
+ return G(e) == "symbol" ? e : e + "";
850
+ }
851
+ function Jr(t, e) {
852
+ if (G(t) != "object" || !t) return t;
853
+ var r = t[Symbol.toPrimitive];
854
+ if (r !== void 0) {
855
+ var n = r.call(t, e);
856
+ if (G(n) != "object") return n;
857
+ throw new TypeError("@@toPrimitive must return a primitive value.");
858
+ }
859
+ return (e === "string" ? String : Number)(t);
860
+ }
861
+ var Jt = {
862
+ formatExtension: function(e, r, n) {
863
+ return "".concat(e).concat(n.ext()).concat(r);
864
+ }
865
+ };
866
+ function Qr(t, e, r, n) {
867
+ if (r ? r = Zt(Zt({}, Jt), r) : r = Jt, n = new y(n), t.country && t.country !== "001") {
868
+ if (!n.hasCountry(t.country))
869
+ throw new Error("Unknown country: ".concat(t.country));
870
+ n.country(t.country);
871
+ } else if (t.countryCallingCode)
872
+ n.selectNumberingPlan(t.countryCallingCode);
873
+ else return t.phone || "";
874
+ var d = n.countryCallingCode(), i = r.v2 ? t.nationalNumber : t.phone, a;
875
+ switch (e) {
876
+ case "NATIONAL":
877
+ return i ? (a = nt(i, t.carrierCode, "NATIONAL", n, r), gt(a, t.ext, n, r.formatExtension)) : "";
878
+ case "INTERNATIONAL":
879
+ return i ? (a = nt(i, null, "INTERNATIONAL", n, r), a = "+".concat(d, " ").concat(a), gt(a, t.ext, n, r.formatExtension)) : "+".concat(d);
880
+ case "E.164":
881
+ return "+".concat(d).concat(i);
882
+ case "RFC3966":
883
+ return Vr({
884
+ number: "+".concat(d).concat(i),
885
+ ext: t.ext
886
+ });
887
+ // For reference, here's Google's IDD formatter:
888
+ // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
889
+ // Not saying that this IDD formatter replicates it 1:1, but it seems to work.
890
+ // Who would even need to format phone numbers in IDD format anyway?
891
+ case "IDD":
892
+ if (!r.fromCountry)
893
+ return;
894
+ var o = zr(i, t.carrierCode, d, r.fromCountry, n);
895
+ return gt(o, t.ext, n, r.formatExtension);
896
+ default:
897
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e, '"'));
898
+ }
899
+ }
900
+ function nt(t, e, r, n, d) {
901
+ var i = qr(n.formats(), t);
902
+ return i ? Re(t, i, {
903
+ useInternationalFormat: r === "INTERNATIONAL",
904
+ withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
905
+ carrierCode: e,
906
+ metadata: n
907
+ }) : t;
908
+ }
909
+ function qr(t, e) {
910
+ for (var r = Kr(t), n; !(n = r()).done; ) {
911
+ var d = n.value;
912
+ if (d.leadingDigitsPatterns().length > 0) {
913
+ var i = d.leadingDigitsPatterns()[d.leadingDigitsPatterns().length - 1];
914
+ if (e.search(i) !== 0)
915
+ continue;
916
+ }
917
+ if (E(e, d.pattern()))
918
+ return d;
919
+ }
920
+ }
921
+ function gt(t, e, r, n) {
922
+ return e ? n(t, e, r) : t;
923
+ }
924
+ function zr(t, e, r, n, d) {
925
+ var i = ot(n, d.metadata);
926
+ if (i === r) {
927
+ var a = nt(t, e, "NATIONAL", d);
928
+ return r === "1" ? r + " " + a : a;
929
+ }
930
+ var o = Lr(n, void 0, d.metadata);
931
+ if (o)
932
+ return "".concat(o, " ").concat(r, " ").concat(nt(t, null, "INTERNATIONAL", d));
933
+ }
934
+ function B(t) {
935
+ "@babel/helpers - typeof";
936
+ return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
937
+ return typeof e;
938
+ } : function(e) {
939
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
940
+ }, B(t);
941
+ }
942
+ function Qt(t, e) {
943
+ var r = Object.keys(t);
944
+ if (Object.getOwnPropertySymbols) {
945
+ var n = Object.getOwnPropertySymbols(t);
946
+ e && (n = n.filter(function(d) {
947
+ return Object.getOwnPropertyDescriptor(t, d).enumerable;
948
+ })), r.push.apply(r, n);
949
+ }
950
+ return r;
951
+ }
952
+ function qt(t) {
953
+ for (var e = 1; e < arguments.length; e++) {
954
+ var r = arguments[e] != null ? arguments[e] : {};
955
+ e % 2 ? Qt(Object(r), !0).forEach(function(n) {
956
+ tn(t, n, r[n]);
957
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Qt(Object(r)).forEach(function(n) {
958
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
959
+ });
960
+ }
961
+ return t;
962
+ }
963
+ function tn(t, e, r) {
964
+ return (e = Le(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
965
+ }
966
+ function en(t, e) {
967
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
968
+ }
969
+ function rn(t, e) {
970
+ for (var r = 0; r < e.length; r++) {
971
+ var n = e[r];
972
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Le(n.key), n);
973
+ }
974
+ }
975
+ function nn(t, e, r) {
976
+ return e && rn(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
977
+ }
978
+ function Le(t) {
979
+ var e = dn(t, "string");
980
+ return B(e) == "symbol" ? e : e + "";
981
+ }
982
+ function dn(t, e) {
983
+ if (B(t) != "object" || !t) return t;
984
+ var r = t[Symbol.toPrimitive];
985
+ if (r !== void 0) {
986
+ var n = r.call(t, e);
987
+ if (B(n) != "object") return n;
988
+ throw new TypeError("@@toPrimitive must return a primitive value.");
989
+ }
990
+ return String(t);
991
+ }
992
+ var Me = /* @__PURE__ */ (function() {
993
+ function t(e, r, n) {
994
+ if (en(this, t), !e)
995
+ throw new TypeError("First argument is required");
996
+ if (typeof e != "string")
997
+ throw new TypeError("First argument must be a string");
998
+ if (e[0] === "+" && !r)
999
+ throw new TypeError("`metadata` argument not passed");
1000
+ if (F(r) && F(r.countries)) {
1001
+ n = r;
1002
+ var d = e;
1003
+ if (!un.test(d))
1004
+ throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
1005
+ var i = At(d, void 0, void 0, n), a = i.countryCallingCode, o = i.number;
1006
+ if (r = o, e = a, !r)
1007
+ throw new Error("Invalid `number` argument passed: too short");
1008
+ }
1009
+ if (!r)
1010
+ throw new TypeError("`nationalNumber` argument is required");
1011
+ if (typeof r != "string")
1012
+ throw new TypeError("`nationalNumber` argument must be a string");
1013
+ we(n);
1014
+ var u = on(e, n), $ = u.country, l = u.countryCallingCode;
1015
+ this.country = $, this.countryCallingCode = l, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1016
+ return n;
1017
+ };
1018
+ }
1019
+ return nn(t, [{
1020
+ key: "setExt",
1021
+ value: function(r) {
1022
+ this.ext = r;
1023
+ }
1024
+ }, {
1025
+ key: "getPossibleCountries",
1026
+ value: function() {
1027
+ return this.country ? [this.country] : Cr(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1028
+ }
1029
+ }, {
1030
+ key: "isPossible",
1031
+ value: function() {
1032
+ return yr(this, {
1033
+ v2: !0
1034
+ }, this.getMetadata());
1035
+ }
1036
+ }, {
1037
+ key: "isValid",
1038
+ value: function() {
1039
+ return Nr(this, {
1040
+ v2: !0
1041
+ }, this.getMetadata());
1042
+ }
1043
+ }, {
1044
+ key: "isNonGeographic",
1045
+ value: function() {
1046
+ var r = new y(this.getMetadata());
1047
+ return r.isNonGeographicCallingCode(this.countryCallingCode);
1048
+ }
1049
+ }, {
1050
+ key: "isEqual",
1051
+ value: function(r) {
1052
+ return this.number === r.number && this.ext === r.ext;
1053
+ }
1054
+ // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1055
+ // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1056
+ // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1057
+ // so eventually I simply commented out this method from the `PhoneNumber` class
1058
+ // and just left the `validatePhoneNumberLength()` function, even though that one would require
1059
+ // and additional step to also validate the actual country / calling code of the phone number.
1060
+ // validateLength() {
1061
+ // const metadata = new Metadata(this.getMetadata())
1062
+ // metadata.selectNumberingPlan(this.countryCallingCode)
1063
+ // const result = checkNumberLength(this.nationalNumber, metadata)
1064
+ // if (result !== 'IS_POSSIBLE') {
1065
+ // return result
1066
+ // }
1067
+ // }
1068
+ }, {
1069
+ key: "getType",
1070
+ value: function() {
1071
+ return _t(this, {
1072
+ v2: !0
1073
+ }, this.getMetadata());
1074
+ }
1075
+ }, {
1076
+ key: "format",
1077
+ value: function(r, n) {
1078
+ return Qr(this, r, n ? qt(qt({}, n), {}, {
1079
+ v2: !0
1080
+ }) : {
1081
+ v2: !0
1082
+ }, this.getMetadata());
1083
+ }
1084
+ }, {
1085
+ key: "formatNational",
1086
+ value: function(r) {
1087
+ return this.format("NATIONAL", r);
1088
+ }
1089
+ }, {
1090
+ key: "formatInternational",
1091
+ value: function(r) {
1092
+ return this.format("INTERNATIONAL", r);
1093
+ }
1094
+ }, {
1095
+ key: "getURI",
1096
+ value: function(r) {
1097
+ return this.format("RFC3966", r);
1098
+ }
1099
+ }]);
1100
+ })(), an = function(e) {
1101
+ return /^[A-Z]{2}$/.test(e);
1102
+ };
1103
+ function on(t, e) {
1104
+ var r, n, d = new y(e);
1105
+ return an(t) ? (r = t, d.selectNumberingPlan(r), n = d.countryCallingCode()) : n = t, {
1106
+ country: r,
1107
+ countryCallingCode: n
1108
+ };
1109
+ }
1110
+ var un = /^\+\d+$/;
1111
+ function Ct(t) {
1112
+ "@babel/helpers - typeof";
1113
+ return Ct = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1114
+ return typeof e;
1115
+ } : function(e) {
1116
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1117
+ }, Ct(t);
1118
+ }
1119
+ function $n(t, e, r) {
1120
+ return Object.defineProperty(t, "prototype", { writable: !1 }), t;
1121
+ }
1122
+ function ln(t, e) {
1123
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1124
+ }
1125
+ function sn(t, e, r) {
1126
+ return e = H(e), fn(t, Tt() ? Reflect.construct(e, r || [], H(t).constructor) : e.apply(t, r));
1127
+ }
1128
+ function fn(t, e) {
1129
+ if (e && (Ct(e) == "object" || typeof e == "function")) return e;
1130
+ if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1131
+ return cn(t);
1132
+ }
1133
+ function cn(t) {
1134
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1135
+ return t;
1136
+ }
1137
+ function hn(t, e) {
1138
+ if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
1139
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && U(t, e);
1140
+ }
1141
+ function Pt(t) {
1142
+ var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1143
+ return Pt = function(n) {
1144
+ if (n === null || !gn(n)) return n;
1145
+ if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
1146
+ if (e !== void 0) {
1147
+ if (e.has(n)) return e.get(n);
1148
+ e.set(n, d);
1149
+ }
1150
+ function d() {
1151
+ return mn(n, arguments, H(this).constructor);
1152
+ }
1153
+ return d.prototype = Object.create(n.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), U(d, n);
1154
+ }, Pt(t);
1155
+ }
1156
+ function mn(t, e, r) {
1157
+ if (Tt()) return Reflect.construct.apply(null, arguments);
1158
+ var n = [null];
1159
+ n.push.apply(n, e);
1160
+ var d = new (t.bind.apply(t, n))();
1161
+ return r && U(d, r.prototype), d;
1162
+ }
1163
+ function Tt() {
1164
+ try {
1165
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1166
+ }));
1167
+ } catch {
1168
+ }
1169
+ return (Tt = function() {
1170
+ return !!t;
1171
+ })();
1172
+ }
1173
+ function gn(t) {
1174
+ try {
1175
+ return Function.toString.call(t).indexOf("[native code]") !== -1;
1176
+ } catch {
1177
+ return typeof t == "function";
1178
+ }
1179
+ }
1180
+ function U(t, e) {
1181
+ return U = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
1182
+ return r.__proto__ = n, r;
1183
+ }, U(t, e);
1184
+ }
1185
+ function H(t) {
1186
+ return H = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
1187
+ return e.__proto__ || Object.getPrototypeOf(e);
1188
+ }, H(t);
1189
+ }
1190
+ var x = /* @__PURE__ */ (function(t) {
1191
+ function e(r) {
1192
+ var n;
1193
+ return ln(this, e), n = sn(this, e, [r]), Object.setPrototypeOf(n, e.prototype), n.name = n.constructor.name, n;
1194
+ }
1195
+ return hn(e, t), $n(e);
1196
+ })(/* @__PURE__ */ Pt(Error)), zt = new RegExp("(?:" + De() + ")$", "i");
1197
+ function yn(t) {
1198
+ var e = t.search(zt);
1199
+ if (e < 0)
1200
+ return {};
1201
+ for (var r = t.slice(0, e), n = t.match(zt), d = 1; d < n.length; ) {
1202
+ if (n[d])
1203
+ return {
1204
+ number: r,
1205
+ ext: n[d]
1206
+ };
1207
+ d++;
1208
+ }
1209
+ }
1210
+ function pn(t, e) {
1211
+ var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1212
+ if (r) return (r = r.call(t)).next.bind(r);
1213
+ if (Array.isArray(t) || (r = vn(t)) || e) {
1214
+ r && (t = r);
1215
+ var n = 0;
1216
+ return function() {
1217
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
1218
+ };
1219
+ }
1220
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1221
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1222
+ }
1223
+ function vn(t, e) {
1224
+ if (t) {
1225
+ if (typeof t == "string") return te(t, e);
1226
+ var r = {}.toString.call(t).slice(8, -1);
1227
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? te(t, e) : void 0;
1228
+ }
1229
+ }
1230
+ function te(t, e) {
1231
+ (e == null || e > t.length) && (e = t.length);
1232
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
1233
+ return n;
1234
+ }
1235
+ var bn = {
1236
+ 0: "0",
1237
+ 1: "1",
1238
+ 2: "2",
1239
+ 3: "3",
1240
+ 4: "4",
1241
+ 5: "5",
1242
+ 6: "6",
1243
+ 7: "7",
1244
+ 8: "8",
1245
+ 9: "9",
1246
+ "0": "0",
1247
+ // Fullwidth digit 0
1248
+ "1": "1",
1249
+ // Fullwidth digit 1
1250
+ "2": "2",
1251
+ // Fullwidth digit 2
1252
+ "3": "3",
1253
+ // Fullwidth digit 3
1254
+ "4": "4",
1255
+ // Fullwidth digit 4
1256
+ "5": "5",
1257
+ // Fullwidth digit 5
1258
+ "6": "6",
1259
+ // Fullwidth digit 6
1260
+ "7": "7",
1261
+ // Fullwidth digit 7
1262
+ "8": "8",
1263
+ // Fullwidth digit 8
1264
+ "9": "9",
1265
+ // Fullwidth digit 9
1266
+ "٠": "0",
1267
+ // Arabic-indic digit 0
1268
+ "١": "1",
1269
+ // Arabic-indic digit 1
1270
+ "٢": "2",
1271
+ // Arabic-indic digit 2
1272
+ "٣": "3",
1273
+ // Arabic-indic digit 3
1274
+ "٤": "4",
1275
+ // Arabic-indic digit 4
1276
+ "٥": "5",
1277
+ // Arabic-indic digit 5
1278
+ "٦": "6",
1279
+ // Arabic-indic digit 6
1280
+ "٧": "7",
1281
+ // Arabic-indic digit 7
1282
+ "٨": "8",
1283
+ // Arabic-indic digit 8
1284
+ "٩": "9",
1285
+ // Arabic-indic digit 9
1286
+ "۰": "0",
1287
+ // Eastern-Arabic digit 0
1288
+ "۱": "1",
1289
+ // Eastern-Arabic digit 1
1290
+ "۲": "2",
1291
+ // Eastern-Arabic digit 2
1292
+ "۳": "3",
1293
+ // Eastern-Arabic digit 3
1294
+ "۴": "4",
1295
+ // Eastern-Arabic digit 4
1296
+ "۵": "5",
1297
+ // Eastern-Arabic digit 5
1298
+ "۶": "6",
1299
+ // Eastern-Arabic digit 6
1300
+ "۷": "7",
1301
+ // Eastern-Arabic digit 7
1302
+ "۸": "8",
1303
+ // Eastern-Arabic digit 8
1304
+ "۹": "9"
1305
+ // Eastern-Arabic digit 9
1306
+ };
1307
+ function je(t) {
1308
+ return bn[t];
1309
+ }
1310
+ function dt(t) {
1311
+ for (var e = "", r = pn(t.split("")), n; !(n = r()).done; ) {
1312
+ var d = n.value, i = je(d);
1313
+ i && (e += i);
1314
+ }
1315
+ return e;
1316
+ }
1317
+ function Nn(t, e) {
1318
+ var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1319
+ if (r) return (r = r.call(t)).next.bind(r);
1320
+ if (Array.isArray(t) || (r = Cn(t)) || e) {
1321
+ r && (t = r);
1322
+ var n = 0;
1323
+ return function() {
1324
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
1325
+ };
1326
+ }
1327
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1328
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1329
+ }
1330
+ function Cn(t, e) {
1331
+ if (t) {
1332
+ if (typeof t == "string") return ee(t, e);
1333
+ var r = {}.toString.call(t).slice(8, -1);
1334
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ee(t, e) : void 0;
1335
+ }
1336
+ }
1337
+ function ee(t, e) {
1338
+ (e == null || e > t.length) && (e = t.length);
1339
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
1340
+ return n;
1341
+ }
1342
+ function re(t) {
1343
+ for (var e = "", r = Nn(t.split("")), n; !(n = r()).done; ) {
1344
+ var d = n.value;
1345
+ e += Pn(d, e) || "";
1346
+ }
1347
+ return e;
1348
+ }
1349
+ function Pn(t, e, r) {
1350
+ return t === "+" ? e ? void 0 : "+" : je(t);
1351
+ }
1352
+ function Sn(t, e) {
1353
+ var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1354
+ if (r) return (r = r.call(t)).next.bind(r);
1355
+ if (Array.isArray(t) || (r = xn(t)) || e) {
1356
+ r && (t = r);
1357
+ var n = 0;
1358
+ return function() {
1359
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
1360
+ };
1361
+ }
1362
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1363
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1364
+ }
1365
+ function xn(t, e) {
1366
+ if (t) {
1367
+ if (typeof t == "string") return ne(t, e);
1368
+ var r = {}.toString.call(t).slice(8, -1);
1369
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ne(t, e) : void 0;
1370
+ }
1371
+ }
1372
+ function ne(t, e) {
1373
+ (e == null || e > t.length) && (e = t.length);
1374
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
1375
+ return n;
1376
+ }
1377
+ function ke(t, e) {
1378
+ var r = e.countries;
1379
+ e.defaultCountry;
1380
+ var n = e.metadata;
1381
+ n = new y(n);
1382
+ for (var d = Sn(r), i; !(i = d()).done; ) {
1383
+ var a = i.value;
1384
+ if (n.country(a), n.leadingDigits()) {
1385
+ if (t && t.search(n.leadingDigits()) === 0)
1386
+ return a;
1387
+ } else if (_t({
1388
+ phone: t,
1389
+ country: a
1390
+ }, void 0, n.metadata))
1391
+ return a;
1392
+ }
1393
+ }
1394
+ function Ge(t, e) {
1395
+ var r = e.nationalNumber, n = e.defaultCountry, d = e.metadata, i = d.getCountryCodesForCallingCode(t);
1396
+ if (i)
1397
+ return i.length === 1 ? i[0] : ke(r, {
1398
+ countries: i,
1399
+ defaultCountry: n,
1400
+ metadata: d.metadata
1401
+ });
1402
+ }
1403
+ var Be = "+", En = "[\\-\\.\\(\\)]?", de = "([" + p + "]|" + En + ")", wn = "^\\" + Be + de + "*[" + p + "]" + de + "*$", _n = new RegExp(wn, "g"), St = p, Fn = "[" + St + "]+((\\-)*[" + St + "])*", An = "a-zA-Z", Tn = "[" + An + "]+((\\-)*[" + St + "])*", In = "^(" + Fn + "\\.)*" + Tn + "\\.?$", On = new RegExp(In, "g"), ie = "tel:", xt = ";phone-context=", Rn = ";isub=";
1404
+ function Dn(t) {
1405
+ var e = t.indexOf(xt);
1406
+ if (e < 0)
1407
+ return null;
1408
+ var r = e + xt.length;
1409
+ if (r >= t.length)
1410
+ return "";
1411
+ var n = t.indexOf(";", r);
1412
+ return n >= 0 ? t.substring(r, n) : t.substring(r);
1413
+ }
1414
+ function Ln(t) {
1415
+ return t === null ? !0 : t.length === 0 ? !1 : _n.test(t) || On.test(t);
1416
+ }
1417
+ function Mn(t, e) {
1418
+ var r = e.extractFormattedPhoneNumber, n = Dn(t);
1419
+ if (!Ln(n))
1420
+ throw new x("NOT_A_NUMBER");
1421
+ var d;
1422
+ if (n === null)
1423
+ d = r(t) || "";
1424
+ else {
1425
+ d = "", n.charAt(0) === Be && (d += n);
1426
+ var i = t.indexOf(ie), a;
1427
+ i >= 0 ? a = i + ie.length : a = 0;
1428
+ var o = t.indexOf(xt);
1429
+ d += t.substring(a, o);
1430
+ }
1431
+ var u = d.indexOf(Rn);
1432
+ if (u > 0 && (d = d.substring(0, u)), d !== "")
1433
+ return d;
1434
+ }
1435
+ var jn = 250, kn = new RegExp("[" + $t + p + "]"), Gn = new RegExp("[^" + p + "#]+$");
1436
+ function Bn(t, e, r) {
1437
+ if (e = e || {}, r = new y(r), e.defaultCountry && !r.hasCountry(e.defaultCountry))
1438
+ throw e.v2 ? new x("INVALID_COUNTRY") : new Error("Unknown country: ".concat(e.defaultCountry));
1439
+ var n = Hn(t, e.v2, e.extract), d = n.number, i = n.ext, a = n.error;
1440
+ if (!d) {
1441
+ if (e.v2)
1442
+ throw a === "TOO_SHORT" ? new x("TOO_SHORT") : new x("NOT_A_NUMBER");
1443
+ return {};
1444
+ }
1445
+ var o = Vn(d, e.defaultCountry, e.defaultCallingCode, r), u = o.country, $ = o.nationalNumber, l = o.countryCallingCode, h = o.countryCallingCodeSource, f = o.carrierCode;
1446
+ if (!r.hasSelectedNumberingPlan()) {
1447
+ if (e.v2)
1448
+ throw new x("INVALID_COUNTRY");
1449
+ return {};
1450
+ }
1451
+ if (!$ || $.length < Ft) {
1452
+ if (e.v2)
1453
+ throw new x("TOO_SHORT");
1454
+ return {};
1455
+ }
1456
+ if ($.length > Sr) {
1457
+ if (e.v2)
1458
+ throw new x("TOO_LONG");
1459
+ return {};
1460
+ }
1461
+ if (e.v2) {
1462
+ var m = new Me(l, $, r.metadata);
1463
+ return u && (m.country = u), f && (m.carrierCode = f), i && (m.ext = i), m.__countryCallingCodeSource = h, m;
1464
+ }
1465
+ var b = (e.extended ? r.hasSelectedNumberingPlan() : u) ? E($, r.nationalNumberPattern()) : !1;
1466
+ return e.extended ? {
1467
+ country: u,
1468
+ countryCallingCode: l,
1469
+ carrierCode: f,
1470
+ valid: b,
1471
+ possible: b ? !0 : !!(e.extended === !0 && r.possibleLengths() && Fe($, r)),
1472
+ phone: $,
1473
+ ext: i
1474
+ } : b ? Wn(u, $, i) : {};
1475
+ }
1476
+ function Un(t, e, r) {
1477
+ if (t) {
1478
+ if (t.length > jn) {
1479
+ if (r)
1480
+ throw new x("TOO_LONG");
1481
+ return;
1482
+ }
1483
+ if (e === !1)
1484
+ return t;
1485
+ var n = t.search(kn);
1486
+ if (!(n < 0))
1487
+ return t.slice(n).replace(Gn, "");
1488
+ }
1489
+ }
1490
+ function Hn(t, e, r) {
1491
+ var n = Mn(t, {
1492
+ extractFormattedPhoneNumber: function(a) {
1493
+ return Un(a, r, e);
1494
+ }
1495
+ });
1496
+ if (!n)
1497
+ return {};
1498
+ if (!Hr(n))
1499
+ return Wr(n) ? {
1500
+ error: "TOO_SHORT"
1501
+ } : {};
1502
+ var d = yn(n);
1503
+ return d.ext ? d : {
1504
+ number: n
1505
+ };
1506
+ }
1507
+ function Wn(t, e, r) {
1508
+ var n = {
1509
+ country: t,
1510
+ phone: e
1511
+ };
1512
+ return r && (n.ext = r), n;
1513
+ }
1514
+ function Vn(t, e, r, n) {
1515
+ var d = At(re(t), e, r, n.metadata), i = d.countryCallingCodeSource, a = d.countryCallingCode, o = d.number, u;
1516
+ if (a)
1517
+ n.selectNumberingPlan(a);
1518
+ else if (o && (e || r))
1519
+ n.selectNumberingPlan(e, r), e && (u = e), a = r || ot(e, n.metadata);
1520
+ else return {};
1521
+ if (!o)
1522
+ return {
1523
+ countryCallingCodeSource: i,
1524
+ countryCallingCode: a
1525
+ };
1526
+ var $ = Nt(re(o), n), l = $.nationalNumber, h = $.carrierCode, f = Ge(a, {
1527
+ nationalNumber: l,
1528
+ defaultCountry: e,
1529
+ metadata: n
1530
+ });
1531
+ return f && (u = f, f === "001" || n.country(u)), {
1532
+ country: u,
1533
+ countryCallingCode: a,
1534
+ countryCallingCodeSource: i,
1535
+ nationalNumber: l,
1536
+ carrierCode: h
1537
+ };
1538
+ }
1539
+ function W(t) {
1540
+ "@babel/helpers - typeof";
1541
+ return W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1542
+ return typeof e;
1543
+ } : function(e) {
1544
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1545
+ }, W(t);
1546
+ }
1547
+ function ae(t, e) {
1548
+ var r = Object.keys(t);
1549
+ if (Object.getOwnPropertySymbols) {
1550
+ var n = Object.getOwnPropertySymbols(t);
1551
+ e && (n = n.filter(function(d) {
1552
+ return Object.getOwnPropertyDescriptor(t, d).enumerable;
1553
+ })), r.push.apply(r, n);
1554
+ }
1555
+ return r;
1556
+ }
1557
+ function oe(t) {
1558
+ for (var e = 1; e < arguments.length; e++) {
1559
+ var r = arguments[e] != null ? arguments[e] : {};
1560
+ e % 2 ? ae(Object(r), !0).forEach(function(n) {
1561
+ Kn(t, n, r[n]);
1562
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : ae(Object(r)).forEach(function(n) {
1563
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
1564
+ });
1565
+ }
1566
+ return t;
1567
+ }
1568
+ function Kn(t, e, r) {
1569
+ return (e = Xn(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1570
+ }
1571
+ function Xn(t) {
1572
+ var e = Yn(t, "string");
1573
+ return W(e) == "symbol" ? e : e + "";
1574
+ }
1575
+ function Yn(t, e) {
1576
+ if (W(t) != "object" || !t) return t;
1577
+ var r = t[Symbol.toPrimitive];
1578
+ if (r !== void 0) {
1579
+ var n = r.call(t, e);
1580
+ if (W(n) != "object") return n;
1581
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1582
+ }
1583
+ return (e === "string" ? String : Number)(t);
1584
+ }
1585
+ function Zn(t, e, r) {
1586
+ return Bn(t, oe(oe({}, e), {}, {
1587
+ v2: !0
1588
+ }), r);
1589
+ }
1590
+ function V(t) {
1591
+ "@babel/helpers - typeof";
1592
+ return V = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1593
+ return typeof e;
1594
+ } : function(e) {
1595
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1596
+ }, V(t);
1597
+ }
1598
+ function ue(t, e) {
1599
+ var r = Object.keys(t);
1600
+ if (Object.getOwnPropertySymbols) {
1601
+ var n = Object.getOwnPropertySymbols(t);
1602
+ e && (n = n.filter(function(d) {
1603
+ return Object.getOwnPropertyDescriptor(t, d).enumerable;
1604
+ })), r.push.apply(r, n);
1605
+ }
1606
+ return r;
1607
+ }
1608
+ function Jn(t) {
1609
+ for (var e = 1; e < arguments.length; e++) {
1610
+ var r = arguments[e] != null ? arguments[e] : {};
1611
+ e % 2 ? ue(Object(r), !0).forEach(function(n) {
1612
+ Qn(t, n, r[n]);
1613
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : ue(Object(r)).forEach(function(n) {
1614
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
1615
+ });
1616
+ }
1617
+ return t;
1618
+ }
1619
+ function Qn(t, e, r) {
1620
+ return (e = qn(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1621
+ }
1622
+ function qn(t) {
1623
+ var e = zn(t, "string");
1624
+ return V(e) == "symbol" ? e : e + "";
1625
+ }
1626
+ function zn(t, e) {
1627
+ if (V(t) != "object" || !t) return t;
1628
+ var r = t[Symbol.toPrimitive];
1629
+ if (r !== void 0) {
1630
+ var n = r.call(t, e);
1631
+ if (V(n) != "object") return n;
1632
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1633
+ }
1634
+ return (e === "string" ? String : Number)(t);
1635
+ }
1636
+ function td(t, e) {
1637
+ return dd(t) || nd(t, e) || rd(t, e) || ed();
1638
+ }
1639
+ function ed() {
1640
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1641
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1642
+ }
1643
+ function rd(t, e) {
1644
+ if (t) {
1645
+ if (typeof t == "string") return $e(t, e);
1646
+ var r = {}.toString.call(t).slice(8, -1);
1647
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? $e(t, e) : void 0;
1648
+ }
1649
+ }
1650
+ function $e(t, e) {
1651
+ (e == null || e > t.length) && (e = t.length);
1652
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
1653
+ return n;
1654
+ }
1655
+ function nd(t, e) {
1656
+ var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1657
+ if (r != null) {
1658
+ var n, d, i, a, o = [], u = !0, $ = !1;
1659
+ try {
1660
+ if (i = (r = r.call(t)).next, e !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== e); u = !0) ;
1661
+ } catch (l) {
1662
+ $ = !0, d = l;
1663
+ } finally {
1664
+ try {
1665
+ if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
1666
+ } finally {
1667
+ if ($) throw d;
1668
+ }
1669
+ }
1670
+ return o;
1671
+ }
1672
+ }
1673
+ function dd(t) {
1674
+ if (Array.isArray(t)) return t;
1675
+ }
1676
+ function id(t) {
1677
+ var e = Array.prototype.slice.call(t), r = td(e, 4), n = r[0], d = r[1], i = r[2], a = r[3], o, u, $;
1678
+ if (typeof n == "string")
1679
+ o = n;
1680
+ else throw new TypeError("A text for parsing must be a string.");
1681
+ if (!d || typeof d == "string")
1682
+ a ? (u = i, $ = a) : (u = void 0, $ = i), d && (u = Jn({
1683
+ defaultCountry: d
1684
+ }, u));
1685
+ else if (F(d))
1686
+ i ? (u = d, $ = i) : $ = d;
1687
+ else throw new Error("Invalid second argument: ".concat(d));
1688
+ return {
1689
+ text: o,
1690
+ options: u,
1691
+ metadata: $
1692
+ };
1693
+ }
1694
+ function K(t) {
1695
+ "@babel/helpers - typeof";
1696
+ return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1697
+ return typeof e;
1698
+ } : function(e) {
1699
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1700
+ }, K(t);
1701
+ }
1702
+ function le(t, e) {
1703
+ var r = Object.keys(t);
1704
+ if (Object.getOwnPropertySymbols) {
1705
+ var n = Object.getOwnPropertySymbols(t);
1706
+ e && (n = n.filter(function(d) {
1707
+ return Object.getOwnPropertyDescriptor(t, d).enumerable;
1708
+ })), r.push.apply(r, n);
1709
+ }
1710
+ return r;
1711
+ }
1712
+ function se(t) {
1713
+ for (var e = 1; e < arguments.length; e++) {
1714
+ var r = arguments[e] != null ? arguments[e] : {};
1715
+ e % 2 ? le(Object(r), !0).forEach(function(n) {
1716
+ ad(t, n, r[n]);
1717
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : le(Object(r)).forEach(function(n) {
1718
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
1719
+ });
1720
+ }
1721
+ return t;
1722
+ }
1723
+ function ad(t, e, r) {
1724
+ return (e = od(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1725
+ }
1726
+ function od(t) {
1727
+ var e = ud(t, "string");
1728
+ return K(e) == "symbol" ? e : e + "";
1729
+ }
1730
+ function ud(t, e) {
1731
+ if (K(t) != "object" || !t) return t;
1732
+ var r = t[Symbol.toPrimitive];
1733
+ if (r !== void 0) {
1734
+ var n = r.call(t, e);
1735
+ if (K(n) != "object") return n;
1736
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1737
+ }
1738
+ return (e === "string" ? String : Number)(t);
1739
+ }
1740
+ function $d(t, e, r) {
1741
+ e && e.defaultCountry && !mr(e.defaultCountry, r) && (e = se(se({}, e), {}, {
1742
+ defaultCountry: void 0
1743
+ }));
1744
+ try {
1745
+ return Zn(t, e, r);
1746
+ } catch (n) {
1747
+ if (!(n instanceof x)) throw n;
1748
+ }
1749
+ }
1750
+ function X(t) {
1751
+ "@babel/helpers - typeof";
1752
+ return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1753
+ return typeof e;
1754
+ } : function(e) {
1755
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1756
+ }, X(t);
1757
+ }
1758
+ function fe(t, e) {
1759
+ var r = Object.keys(t);
1760
+ if (Object.getOwnPropertySymbols) {
1761
+ var n = Object.getOwnPropertySymbols(t);
1762
+ e && (n = n.filter(function(d) {
1763
+ return Object.getOwnPropertyDescriptor(t, d).enumerable;
1764
+ })), r.push.apply(r, n);
1765
+ }
1766
+ return r;
1767
+ }
1768
+ function ce(t) {
1769
+ for (var e = 1; e < arguments.length; e++) {
1770
+ var r = arguments[e] != null ? arguments[e] : {};
1771
+ e % 2 ? fe(Object(r), !0).forEach(function(n) {
1772
+ ld(t, n, r[n]);
1773
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : fe(Object(r)).forEach(function(n) {
1774
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
1775
+ });
1776
+ }
1777
+ return t;
1778
+ }
1779
+ function ld(t, e, r) {
1780
+ return (e = sd(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1781
+ }
1782
+ function sd(t) {
1783
+ var e = fd(t, "string");
1784
+ return X(e) == "symbol" ? e : e + "";
1785
+ }
1786
+ function fd(t, e) {
1787
+ if (X(t) != "object" || !t) return t;
1788
+ var r = t[Symbol.toPrimitive];
1789
+ if (r !== void 0) {
1790
+ var n = r.call(t, e);
1791
+ if (X(n) != "object") return n;
1792
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1793
+ }
1794
+ return (e === "string" ? String : Number)(t);
1795
+ }
1796
+ function cd() {
1797
+ var t = id(arguments), e = t.text, r = t.options, n = t.metadata;
1798
+ r = ce(ce({}, r), {}, {
1799
+ extract: !1
1800
+ });
1801
+ var d = $d(e, r, n);
1802
+ return d && d.isValid() || !1;
1803
+ }
1804
+ function Y(t) {
1805
+ "@babel/helpers - typeof";
1806
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1807
+ return typeof e;
1808
+ } : function(e) {
1809
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1810
+ }, Y(t);
1811
+ }
1812
+ function hd(t, e) {
1813
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1814
+ }
1815
+ function md(t, e) {
1816
+ for (var r = 0; r < e.length; r++) {
1817
+ var n = e[r];
1818
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, yd(n.key), n);
1819
+ }
1820
+ }
1821
+ function gd(t, e, r) {
1822
+ return e && md(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
1823
+ }
1824
+ function yd(t) {
1825
+ var e = pd(t, "string");
1826
+ return Y(e) == "symbol" ? e : e + "";
1827
+ }
1828
+ function pd(t, e) {
1829
+ if (Y(t) != "object" || !t) return t;
1830
+ var r = t[Symbol.toPrimitive];
1831
+ if (r !== void 0) {
1832
+ var n = r.call(t, e);
1833
+ if (Y(n) != "object") return n;
1834
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1835
+ }
1836
+ return String(t);
1837
+ }
1838
+ var vd = /* @__PURE__ */ (function() {
1839
+ function t(e) {
1840
+ var r = e.onCountryChange, n = e.onCallingCodeChange;
1841
+ hd(this, t), this.onCountryChange = r, this.onCallingCodeChange = n;
1842
+ }
1843
+ return gd(t, [{
1844
+ key: "reset",
1845
+ value: function(r) {
1846
+ var n = r.country, d = r.callingCode;
1847
+ this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(n, d);
1848
+ }
1849
+ }, {
1850
+ key: "resetNationalSignificantNumber",
1851
+ value: function() {
1852
+ this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberMatchesInput = !0, this.nationalPrefix = void 0, this.carrierCode = void 0, this.complexPrefixBeforeNationalSignificantNumber = void 0;
1853
+ }
1854
+ }, {
1855
+ key: "update",
1856
+ value: function(r) {
1857
+ for (var n = 0, d = Object.keys(r); n < d.length; n++) {
1858
+ var i = d[n];
1859
+ this[i] = r[i];
1860
+ }
1861
+ }
1862
+ }, {
1863
+ key: "initCountryAndCallingCode",
1864
+ value: function(r, n) {
1865
+ this.setCountry(r), this.setCallingCode(n);
1866
+ }
1867
+ }, {
1868
+ key: "setCountry",
1869
+ value: function(r) {
1870
+ this.country = r, this.onCountryChange(r);
1871
+ }
1872
+ }, {
1873
+ key: "setCallingCode",
1874
+ value: function(r) {
1875
+ this.callingCode = r, this.onCallingCodeChange(r, this.country);
1876
+ }
1877
+ }, {
1878
+ key: "startInternationalNumber",
1879
+ value: function(r, n) {
1880
+ this.international = !0, this.initCountryAndCallingCode(r, n);
1881
+ }
1882
+ }, {
1883
+ key: "appendDigits",
1884
+ value: function(r) {
1885
+ this.digits += r;
1886
+ }
1887
+ }, {
1888
+ key: "appendNationalSignificantNumberDigits",
1889
+ value: function(r) {
1890
+ this.nationalSignificantNumber += r;
1891
+ }
1892
+ /**
1893
+ * Returns the part of `this.digits` that corresponds to the national number.
1894
+ * Basically, all digits that have been input by the user, except for the
1895
+ * international prefix and the country calling code part
1896
+ * (if the number is an international one).
1897
+ * @return {string}
1898
+ */
1899
+ }, {
1900
+ key: "getNationalDigits",
1901
+ value: function() {
1902
+ return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
1903
+ }
1904
+ }, {
1905
+ key: "getDigitsWithoutInternationalPrefix",
1906
+ value: function() {
1907
+ return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
1908
+ }
1909
+ }]);
1910
+ })();
1911
+ function bd(t, e) {
1912
+ var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1913
+ if (r) return (r = r.call(t)).next.bind(r);
1914
+ if (Array.isArray(t) || (r = Nd(t)) || e) {
1915
+ r && (t = r);
1916
+ var n = 0;
1917
+ return function() {
1918
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
1919
+ };
1920
+ }
1921
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1922
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1923
+ }
1924
+ function Nd(t, e) {
1925
+ if (t) {
1926
+ if (typeof t == "string") return he(t, e);
1927
+ var r = {}.toString.call(t).slice(8, -1);
1928
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? he(t, e) : void 0;
1929
+ }
1930
+ }
1931
+ function he(t, e) {
1932
+ (e == null || e > t.length) && (e = t.length);
1933
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
1934
+ return n;
1935
+ }
1936
+ var C = "x", yt = new RegExp(C);
1937
+ function rt(t, e) {
1938
+ if (e < 1)
1939
+ return "";
1940
+ for (var r = ""; e > 1; )
1941
+ e & 1 && (r += t), e >>= 1, t += t;
1942
+ return r + t;
1943
+ }
1944
+ function me(t, e) {
1945
+ return t[e] === ")" && e++, Cd(t.slice(0, e));
1946
+ }
1947
+ function Cd(t) {
1948
+ for (var e = [], r = 0; r < t.length; )
1949
+ t[r] === "(" ? e.push(r) : t[r] === ")" && e.pop(), r++;
1950
+ var n = 0, d = "";
1951
+ e.push(t.length);
1952
+ for (var i = 0, a = e; i < a.length; i++) {
1953
+ var o = a[i];
1954
+ d += t.slice(n, o), n = o + 1;
1955
+ }
1956
+ return d;
1957
+ }
1958
+ function Pd(t, e, r) {
1959
+ for (var n = bd(r.split("")), d; !(d = n()).done; ) {
1960
+ var i = d.value;
1961
+ if (t.slice(e + 1).search(yt) < 0)
1962
+ return;
1963
+ e = t.search(yt), t = t.replace(yt, i);
1964
+ }
1965
+ return [t, e];
1966
+ }
1967
+ function Sd(t, e, r) {
1968
+ var n = r.metadata, d = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(e.pattern(), ")$"));
1969
+ if (a.test(t.nationalSignificantNumber))
1970
+ return Ed(t, e, {
1971
+ metadata: n,
1972
+ shouldTryNationalPrefixFormattingRule: d,
1973
+ getSeparatorAfterNationalPrefix: i
1974
+ });
1975
+ }
1976
+ function xd(t, e) {
1977
+ return ut(t, e) === "IS_POSSIBLE";
1978
+ }
1979
+ function Ed(t, e, r) {
1980
+ var n = r.metadata, d = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix;
1981
+ if (t.nationalSignificantNumber, t.international, t.nationalPrefix, t.carrierCode, d(e)) {
1982
+ var a = ge(t, e, {
1983
+ useNationalPrefixFormattingRule: !0,
1984
+ getSeparatorAfterNationalPrefix: i,
1985
+ metadata: n
1986
+ });
1987
+ if (a)
1988
+ return a;
1989
+ }
1990
+ return ge(t, e, {
1991
+ useNationalPrefixFormattingRule: !1,
1992
+ getSeparatorAfterNationalPrefix: i,
1993
+ metadata: n
1994
+ });
1995
+ }
1996
+ function ge(t, e, r) {
1997
+ var n = r.metadata, d = r.useNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix, a = Re(t.nationalSignificantNumber, e, {
1998
+ carrierCode: t.carrierCode,
1999
+ useInternationalFormat: t.international,
2000
+ withNationalPrefix: d,
2001
+ metadata: n
2002
+ });
2003
+ if (d || (t.nationalPrefix ? a = t.nationalPrefix + i(e) + a : t.complexPrefixBeforeNationalSignificantNumber && (a = t.complexPrefixBeforeNationalSignificantNumber + " " + a)), wd(a, t))
2004
+ return a;
2005
+ }
2006
+ function wd(t, e) {
2007
+ return dt(t) === e.getNationalDigits();
2008
+ }
2009
+ function Z(t) {
2010
+ "@babel/helpers - typeof";
2011
+ return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2012
+ return typeof e;
2013
+ } : function(e) {
2014
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2015
+ }, Z(t);
2016
+ }
2017
+ function _d(t, e) {
2018
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
2019
+ }
2020
+ function Fd(t, e) {
2021
+ for (var r = 0; r < e.length; r++) {
2022
+ var n = e[r];
2023
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Td(n.key), n);
2024
+ }
2025
+ }
2026
+ function Ad(t, e, r) {
2027
+ return e && Fd(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
2028
+ }
2029
+ function Td(t) {
2030
+ var e = Id(t, "string");
2031
+ return Z(e) == "symbol" ? e : e + "";
2032
+ }
2033
+ function Id(t, e) {
2034
+ if (Z(t) != "object" || !t) return t;
2035
+ var r = t[Symbol.toPrimitive];
2036
+ if (r !== void 0) {
2037
+ var n = r.call(t, e);
2038
+ if (Z(n) != "object") return n;
2039
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2040
+ }
2041
+ return String(t);
2042
+ }
2043
+ var Od = /* @__PURE__ */ (function() {
2044
+ function t() {
2045
+ _d(this, t);
2046
+ }
2047
+ return Ad(t, [{
2048
+ key: "parse",
2049
+ value: function(r) {
2050
+ if (this.context = [{
2051
+ or: !0,
2052
+ instructions: []
2053
+ }], this.parsePattern(r), this.context.length !== 1)
2054
+ throw new Error("Non-finalized contexts left when pattern parse ended");
2055
+ var n = this.context[0], d = n.branches, i = n.instructions;
2056
+ if (d)
2057
+ return {
2058
+ op: "|",
2059
+ args: d.concat([pt(i)])
2060
+ };
2061
+ if (i.length === 0)
2062
+ throw new Error("Pattern is required");
2063
+ return i.length === 1 ? i[0] : i;
2064
+ }
2065
+ }, {
2066
+ key: "startContext",
2067
+ value: function(r) {
2068
+ this.context.push(r);
2069
+ }
2070
+ }, {
2071
+ key: "endContext",
2072
+ value: function() {
2073
+ this.context.pop();
2074
+ }
2075
+ }, {
2076
+ key: "getContext",
2077
+ value: function() {
2078
+ return this.context[this.context.length - 1];
2079
+ }
2080
+ }, {
2081
+ key: "parsePattern",
2082
+ value: function(r) {
2083
+ if (!r)
2084
+ throw new Error("Pattern is required");
2085
+ var n = r.match(Ld);
2086
+ if (!n) {
2087
+ if (Dd.test(r))
2088
+ throw new Error("Illegal characters found in a pattern: ".concat(r));
2089
+ this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
2090
+ return;
2091
+ }
2092
+ var d = n[1], i = r.slice(0, n.index), a = r.slice(n.index + d.length);
2093
+ switch (d) {
2094
+ case "(?:":
2095
+ i && this.parsePattern(i), this.startContext({
2096
+ or: !0,
2097
+ instructions: [],
2098
+ branches: []
2099
+ });
2100
+ break;
2101
+ case ")":
2102
+ if (!this.getContext().or)
2103
+ throw new Error('")" operator must be preceded by "(?:" operator');
2104
+ if (i && this.parsePattern(i), this.getContext().instructions.length === 0)
2105
+ throw new Error('No instructions found after "|" operator in an "or" group');
2106
+ var o = this.getContext(), u = o.branches;
2107
+ u.push(pt(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
2108
+ op: "|",
2109
+ args: u
2110
+ });
2111
+ break;
2112
+ case "|":
2113
+ if (!this.getContext().or)
2114
+ throw new Error('"|" operator can only be used inside "or" groups');
2115
+ if (i && this.parsePattern(i), !this.getContext().branches)
2116
+ if (this.context.length === 1)
2117
+ this.getContext().branches = [];
2118
+ else
2119
+ throw new Error('"branches" not found in an "or" group context');
2120
+ this.getContext().branches.push(pt(this.getContext().instructions)), this.getContext().instructions = [];
2121
+ break;
2122
+ case "[":
2123
+ i && this.parsePattern(i), this.startContext({
2124
+ oneOfSet: !0
2125
+ });
2126
+ break;
2127
+ case "]":
2128
+ if (!this.getContext().oneOfSet)
2129
+ throw new Error('"]" operator must be preceded by "[" operator');
2130
+ this.endContext(), this.getContext().instructions.push({
2131
+ op: "[]",
2132
+ args: Rd(i)
2133
+ });
2134
+ break;
2135
+ /* istanbul ignore next */
2136
+ default:
2137
+ throw new Error("Unknown operator: ".concat(d));
2138
+ }
2139
+ a && this.parsePattern(a);
2140
+ }
2141
+ }]);
2142
+ })();
2143
+ function Rd(t) {
2144
+ for (var e = [], r = 0; r < t.length; ) {
2145
+ if (t[r] === "-") {
2146
+ if (r === 0 || r === t.length - 1)
2147
+ throw new Error("Couldn't parse a one-of set pattern: ".concat(t));
2148
+ for (var n = t[r - 1].charCodeAt(0) + 1, d = t[r + 1].charCodeAt(0) - 1, i = n; i <= d; )
2149
+ e.push(String.fromCharCode(i)), i++;
2150
+ } else
2151
+ e.push(t[r]);
2152
+ r++;
2153
+ }
2154
+ return e;
2155
+ }
2156
+ var Dd = /[\(\)\[\]\?\:\|]/, Ld = new RegExp(
2157
+ // any of:
2158
+ "(\\||\\(\\?\\:|\\)|\\[|\\])"
2159
+ );
2160
+ function pt(t) {
2161
+ return t.length === 1 ? t[0] : t;
2162
+ }
2163
+ function ye(t, e) {
2164
+ var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2165
+ if (r) return (r = r.call(t)).next.bind(r);
2166
+ if (Array.isArray(t) || (r = Md(t)) || e) {
2167
+ r && (t = r);
2168
+ var n = 0;
2169
+ return function() {
2170
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
2171
+ };
2172
+ }
2173
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2174
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2175
+ }
2176
+ function Md(t, e) {
2177
+ if (t) {
2178
+ if (typeof t == "string") return pe(t, e);
2179
+ var r = {}.toString.call(t).slice(8, -1);
2180
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? pe(t, e) : void 0;
2181
+ }
2182
+ }
2183
+ function pe(t, e) {
2184
+ (e == null || e > t.length) && (e = t.length);
2185
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
2186
+ return n;
2187
+ }
2188
+ function J(t) {
2189
+ "@babel/helpers - typeof";
2190
+ return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2191
+ return typeof e;
2192
+ } : function(e) {
2193
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2194
+ }, J(t);
2195
+ }
2196
+ function jd(t, e) {
2197
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
2198
+ }
2199
+ function kd(t, e) {
2200
+ for (var r = 0; r < e.length; r++) {
2201
+ var n = e[r];
2202
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Bd(n.key), n);
2203
+ }
2204
+ }
2205
+ function Gd(t, e, r) {
2206
+ return e && kd(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
2207
+ }
2208
+ function Bd(t) {
2209
+ var e = Ud(t, "string");
2210
+ return J(e) == "symbol" ? e : e + "";
2211
+ }
2212
+ function Ud(t, e) {
2213
+ if (J(t) != "object" || !t) return t;
2214
+ var r = t[Symbol.toPrimitive];
2215
+ if (r !== void 0) {
2216
+ var n = r.call(t, e);
2217
+ if (J(n) != "object") return n;
2218
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2219
+ }
2220
+ return String(t);
2221
+ }
2222
+ var Hd = /* @__PURE__ */ (function() {
2223
+ function t(e) {
2224
+ jd(this, t), this.matchTree = new Od().parse(e);
2225
+ }
2226
+ return Gd(t, [{
2227
+ key: "match",
2228
+ value: function(r) {
2229
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = n.allowOverflow;
2230
+ if (!r)
2231
+ throw new Error("String is required");
2232
+ var i = Et(r.split(""), this.matchTree, !0);
2233
+ if (i && i.match && delete i.matchedChars, !(i && i.overflow && !d))
2234
+ return i;
2235
+ }
2236
+ }]);
2237
+ })();
2238
+ function Et(t, e, r) {
2239
+ if (typeof e == "string") {
2240
+ var n = t.join("");
2241
+ return e.indexOf(n) === 0 ? t.length === e.length ? {
2242
+ match: !0,
2243
+ matchedChars: t
2244
+ } : {
2245
+ partialMatch: !0
2246
+ // matchedChars: characters
2247
+ } : n.indexOf(e) === 0 ? r && t.length > e.length ? {
2248
+ overflow: !0
2249
+ } : {
2250
+ match: !0,
2251
+ matchedChars: t.slice(0, e.length)
2252
+ } : void 0;
2253
+ }
2254
+ if (Array.isArray(e)) {
2255
+ for (var d = t.slice(), i = 0; i < e.length; ) {
2256
+ var a = e[i], o = Et(d, a, r && i === e.length - 1);
2257
+ if (o) {
2258
+ if (o.overflow)
2259
+ return o;
2260
+ if (o.match) {
2261
+ if (d = d.slice(o.matchedChars.length), d.length === 0)
2262
+ return i === e.length - 1 ? {
2263
+ match: !0,
2264
+ matchedChars: t
2265
+ } : {
2266
+ partialMatch: !0
2267
+ // matchedChars: characters
2268
+ };
2269
+ } else {
2270
+ if (o.partialMatch)
2271
+ return {
2272
+ partialMatch: !0
2273
+ // matchedChars: characters
2274
+ };
2275
+ throw new Error(`Unsupported match result:
2276
+ `.concat(JSON.stringify(o, null, 2)));
2277
+ }
2278
+ } else return;
2279
+ i++;
2280
+ }
2281
+ return r ? {
2282
+ overflow: !0
2283
+ } : {
2284
+ match: !0,
2285
+ matchedChars: t.slice(0, t.length - d.length)
2286
+ };
2287
+ }
2288
+ switch (e.op) {
2289
+ case "|":
2290
+ for (var u, $ = ye(e.args), l; !(l = $()).done; ) {
2291
+ var h = l.value, f = Et(t, h, r);
2292
+ if (f) {
2293
+ if (f.overflow)
2294
+ return f;
2295
+ if (f.match)
2296
+ return {
2297
+ match: !0,
2298
+ matchedChars: f.matchedChars
2299
+ };
2300
+ if (f.partialMatch)
2301
+ u = !0;
2302
+ else
2303
+ throw new Error(`Unsupported match result:
2304
+ `.concat(JSON.stringify(f, null, 2)));
2305
+ }
2306
+ }
2307
+ return u ? {
2308
+ partialMatch: !0
2309
+ // matchedChars: ...
2310
+ } : void 0;
2311
+ case "[]":
2312
+ for (var m = ye(e.args), b; !(b = m()).done; ) {
2313
+ var v = b.value;
2314
+ if (t[0] === v)
2315
+ return t.length === 1 ? {
2316
+ match: !0,
2317
+ matchedChars: t
2318
+ } : r ? {
2319
+ overflow: !0
2320
+ } : {
2321
+ match: !0,
2322
+ matchedChars: [v]
2323
+ };
2324
+ }
2325
+ return;
2326
+ /* istanbul ignore next */
2327
+ default:
2328
+ throw new Error("Unsupported instruction tree: ".concat(e));
2329
+ }
2330
+ }
2331
+ function Q(t) {
2332
+ "@babel/helpers - typeof";
2333
+ return Q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2334
+ return typeof e;
2335
+ } : function(e) {
2336
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2337
+ }, Q(t);
2338
+ }
2339
+ function ve(t, e) {
2340
+ var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2341
+ if (r) return (r = r.call(t)).next.bind(r);
2342
+ if (Array.isArray(t) || (r = Wd(t)) || e) {
2343
+ r && (t = r);
2344
+ var n = 0;
2345
+ return function() {
2346
+ return n >= t.length ? { done: !0 } : { done: !1, value: t[n++] };
2347
+ };
2348
+ }
2349
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2350
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2351
+ }
2352
+ function Wd(t, e) {
2353
+ if (t) {
2354
+ if (typeof t == "string") return be(t, e);
2355
+ var r = {}.toString.call(t).slice(8, -1);
2356
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? be(t, e) : void 0;
2357
+ }
2358
+ }
2359
+ function be(t, e) {
2360
+ (e == null || e > t.length) && (e = t.length);
2361
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
2362
+ return n;
2363
+ }
2364
+ function Vd(t, e) {
2365
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
2366
+ }
2367
+ function Kd(t, e) {
2368
+ for (var r = 0; r < e.length; r++) {
2369
+ var n = e[r];
2370
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Yd(n.key), n);
2371
+ }
2372
+ }
2373
+ function Xd(t, e, r) {
2374
+ return e && Kd(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
2375
+ }
2376
+ function Yd(t) {
2377
+ var e = Zd(t, "string");
2378
+ return Q(e) == "symbol" ? e : e + "";
2379
+ }
2380
+ function Zd(t, e) {
2381
+ if (Q(t) != "object" || !t) return t;
2382
+ var r = t[Symbol.toPrimitive];
2383
+ if (r !== void 0) {
2384
+ var n = r.call(t, e);
2385
+ if (Q(n) != "object") return n;
2386
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2387
+ }
2388
+ return String(t);
2389
+ }
2390
+ var wt = "9", Jd = 15, Qd = rt(wt, Jd), qd = /[- ]/, zd = function() {
2391
+ return /\[([^\[\]])*\]/g;
2392
+ }, ti = function() {
2393
+ return /\d(?=[^,}][^,}])/g;
2394
+ }, ei = new RegExp("[" + P + "]*\\$1[" + P + "]*(\\$\\d[" + P + "]*)*$"), Ne = 3, ri = /* @__PURE__ */ (function() {
2395
+ function t(e) {
2396
+ e.state;
2397
+ var r = e.metadata;
2398
+ Vd(this, t), this.metadata = r, this.resetFormat();
2399
+ }
2400
+ return Xd(t, [{
2401
+ key: "resetFormat",
2402
+ value: function() {
2403
+ this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
2404
+ }
2405
+ }, {
2406
+ key: "reset",
2407
+ value: function(r, n) {
2408
+ this.resetFormat(), r ? (this.isNANP = r.callingCode() === "1", this.matchingFormats = r.formats(), n.nationalSignificantNumber && this.narrowDownMatchingFormats(n)) : (this.isNANP = void 0, this.matchingFormats = []);
2409
+ }
2410
+ /**
2411
+ * Formats an updated phone number.
2412
+ * @param {string} nextDigits — Additional phone number digits.
2413
+ * @param {object} state — `AsYouType` state.
2414
+ * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
2415
+ */
2416
+ }, {
2417
+ key: "format",
2418
+ value: function(r, n) {
2419
+ var d = this;
2420
+ if (xd(n.nationalSignificantNumber, this.metadata))
2421
+ for (var i = ve(this.matchingFormats), a; !(a = i()).done; ) {
2422
+ var o = a.value, u = Sd(n, o, {
2423
+ metadata: this.metadata,
2424
+ shouldTryNationalPrefixFormattingRule: function(l) {
2425
+ return d.shouldTryNationalPrefixFormattingRule(l, {
2426
+ international: n.international,
2427
+ nationalPrefix: n.nationalPrefix
2428
+ });
2429
+ },
2430
+ getSeparatorAfterNationalPrefix: function(l) {
2431
+ return d.getSeparatorAfterNationalPrefix(l);
2432
+ }
2433
+ });
2434
+ if (u)
2435
+ return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate(u.replace(/\d/g, C), n), this.populatedNationalNumberTemplate = u, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(C), u;
2436
+ }
2437
+ return this.formatNationalNumberWithNextDigits(r, n);
2438
+ }
2439
+ // Formats the next phone number digits.
2440
+ }, {
2441
+ key: "formatNationalNumberWithNextDigits",
2442
+ value: function(r, n) {
2443
+ var d = this.chosenFormat, i = this.chooseFormat(n);
2444
+ if (i)
2445
+ return i === d ? this.formatNextNationalNumberDigits(r) : this.formatNextNationalNumberDigits(n.getNationalDigits());
2446
+ }
2447
+ }, {
2448
+ key: "narrowDownMatchingFormats",
2449
+ value: function(r) {
2450
+ var n = this, d = r.nationalSignificantNumber, i = r.nationalPrefix, a = r.international, o = d, u = o.length - Ne;
2451
+ u < 0 && (u = 0), this.matchingFormats = this.matchingFormats.filter(function($) {
2452
+ return n.formatSuits($, a, i) && n.formatMatches($, o, u);
2453
+ }), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
2454
+ }
2455
+ }, {
2456
+ key: "formatSuits",
2457
+ value: function(r, n, d) {
2458
+ return !(d && !r.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
2459
+ !r.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !n && !d && r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
2460
+ }
2461
+ }, {
2462
+ key: "formatMatches",
2463
+ value: function(r, n, d) {
2464
+ var i = r.leadingDigitsPatterns().length;
2465
+ if (i === 0)
2466
+ return !0;
2467
+ d = Math.min(d, i - 1);
2468
+ var a = r.leadingDigitsPatterns()[d];
2469
+ if (n.length < Ne)
2470
+ try {
2471
+ return new Hd(a).match(n, {
2472
+ allowOverflow: !0
2473
+ }) !== void 0;
2474
+ } catch {
2475
+ return !0;
2476
+ }
2477
+ return new RegExp("^(".concat(a, ")")).test(n);
2478
+ }
2479
+ }, {
2480
+ key: "getFormatFormat",
2481
+ value: function(r, n) {
2482
+ return n ? r.internationalFormat() : r.format();
2483
+ }
2484
+ }, {
2485
+ key: "chooseFormat",
2486
+ value: function(r) {
2487
+ for (var n = this, d = function() {
2488
+ var $ = o.value;
2489
+ return n.chosenFormat === $ ? 0 : ei.test(n.getFormatFormat($, r.international)) ? n.createTemplateForFormat($, r) ? (n.chosenFormat = $, 0) : (n.matchingFormats = n.matchingFormats.filter(function(l) {
2490
+ return l !== $;
2491
+ }), 1) : 1;
2492
+ }, i, a = ve(this.matchingFormats.slice()), o; !(o = a()).done && (i = d(), i !== 0); )
2493
+ ;
2494
+ return this.chosenFormat || this.resetFormat(), this.chosenFormat;
2495
+ }
2496
+ }, {
2497
+ key: "createTemplateForFormat",
2498
+ value: function(r, n) {
2499
+ if (!(r.pattern().indexOf("|") >= 0)) {
2500
+ var d = this.getTemplateForFormat(r, n);
2501
+ if (d)
2502
+ return this.setNationalNumberTemplate(d, n), !0;
2503
+ }
2504
+ }
2505
+ }, {
2506
+ key: "getSeparatorAfterNationalPrefix",
2507
+ value: function(r) {
2508
+ return this.isNANP || r && r.nationalPrefixFormattingRule() && qd.test(r.nationalPrefixFormattingRule()) ? " " : "";
2509
+ }
2510
+ }, {
2511
+ key: "getInternationalPrefixBeforeCountryCallingCode",
2512
+ value: function(r, n) {
2513
+ var d = r.IDDPrefix, i = r.missingPlus;
2514
+ return d ? n && n.spacing === !1 ? d : d + " " : i ? "" : "+";
2515
+ }
2516
+ }, {
2517
+ key: "getTemplate",
2518
+ value: function(r) {
2519
+ if (this.template) {
2520
+ for (var n = -1, d = 0, i = r.international ? this.getInternationalPrefixBeforeCountryCallingCode(r, {
2521
+ spacing: !1
2522
+ }) : ""; d < i.length + r.getDigitsWithoutInternationalPrefix().length; )
2523
+ n = this.template.indexOf(C, n + 1), d++;
2524
+ return me(this.template, n + 1);
2525
+ }
2526
+ }
2527
+ }, {
2528
+ key: "setNationalNumberTemplate",
2529
+ value: function(r, n) {
2530
+ this.nationalNumberTemplate = r, this.populatedNationalNumberTemplate = r, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, C) + rt(C, n.callingCode.length) + " " + r : this.template = r;
2531
+ }
2532
+ /**
2533
+ * Generates formatting template for a national phone number,
2534
+ * optionally containing a national prefix, for a format.
2535
+ * @param {Format} format
2536
+ * @param {string} nationalPrefix
2537
+ * @return {string}
2538
+ */
2539
+ }, {
2540
+ key: "getTemplateForFormat",
2541
+ value: function(r, n) {
2542
+ var d = n.nationalSignificantNumber, i = n.international, a = n.nationalPrefix, o = n.complexPrefixBeforeNationalSignificantNumber, u = r.pattern();
2543
+ u = u.replace(zd(), "\\d").replace(ti(), "\\d");
2544
+ var $ = Qd.match(u)[0];
2545
+ if (!(d.length > $.length)) {
2546
+ var l = new RegExp("^" + u + "$"), h = d.replace(/\d/g, wt);
2547
+ l.test(h) && ($ = h);
2548
+ var f = this.getFormatFormat(r, i), m;
2549
+ if (this.shouldTryNationalPrefixFormattingRule(r, {
2550
+ international: i,
2551
+ nationalPrefix: a
2552
+ })) {
2553
+ var b = f.replace(Oe, r.nationalPrefixFormattingRule());
2554
+ if (dt(r.nationalPrefixFormattingRule()) === (a || "") + dt("$1") && (f = b, m = !0, a))
2555
+ for (var v = a.length; v > 0; )
2556
+ f = f.replace(/\d/, C), v--;
2557
+ }
2558
+ var N = $.replace(new RegExp(u), f).replace(new RegExp(wt, "g"), C);
2559
+ return m || (o ? N = rt(C, o.length) + " " + N : a && (N = rt(C, a.length) + this.getSeparatorAfterNationalPrefix(r) + N)), i && (N = Ie(N)), N;
2560
+ }
2561
+ }
2562
+ }, {
2563
+ key: "formatNextNationalNumberDigits",
2564
+ value: function(r) {
2565
+ var n = Pd(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
2566
+ if (!n) {
2567
+ this.resetFormat();
2568
+ return;
2569
+ }
2570
+ return this.populatedNationalNumberTemplate = n[0], this.populatedNationalNumberTemplatePosition = n[1], me(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
2571
+ }
2572
+ }, {
2573
+ key: "shouldTryNationalPrefixFormattingRule",
2574
+ value: function(r, n) {
2575
+ var d = n.international, i = n.nationalPrefix;
2576
+ if (r.nationalPrefixFormattingRule()) {
2577
+ var a = r.usesNationalPrefix();
2578
+ if (a && i || !a && !d)
2579
+ return !0;
2580
+ }
2581
+ }
2582
+ }]);
2583
+ })();
2584
+ function q(t) {
2585
+ "@babel/helpers - typeof";
2586
+ return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2587
+ return typeof e;
2588
+ } : function(e) {
2589
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2590
+ }, q(t);
2591
+ }
2592
+ function Ue(t, e) {
2593
+ return ai(t) || ii(t, e) || di(t, e) || ni();
2594
+ }
2595
+ function ni() {
2596
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2597
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2598
+ }
2599
+ function di(t, e) {
2600
+ if (t) {
2601
+ if (typeof t == "string") return Ce(t, e);
2602
+ var r = {}.toString.call(t).slice(8, -1);
2603
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ce(t, e) : void 0;
2604
+ }
2605
+ }
2606
+ function Ce(t, e) {
2607
+ (e == null || e > t.length) && (e = t.length);
2608
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
2609
+ return n;
2610
+ }
2611
+ function ii(t, e) {
2612
+ var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2613
+ if (r != null) {
2614
+ var n, d, i, a, o = [], u = !0, $ = !1;
2615
+ try {
2616
+ if (i = (r = r.call(t)).next, e !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== e); u = !0) ;
2617
+ } catch (l) {
2618
+ $ = !0, d = l;
2619
+ } finally {
2620
+ try {
2621
+ if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
2622
+ } finally {
2623
+ if ($) throw d;
2624
+ }
2625
+ }
2626
+ return o;
2627
+ }
2628
+ }
2629
+ function ai(t) {
2630
+ if (Array.isArray(t)) return t;
2631
+ }
2632
+ function oi(t, e) {
2633
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
2634
+ }
2635
+ function ui(t, e) {
2636
+ for (var r = 0; r < e.length; r++) {
2637
+ var n = e[r];
2638
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, li(n.key), n);
2639
+ }
2640
+ }
2641
+ function $i(t, e, r) {
2642
+ return e && ui(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
2643
+ }
2644
+ function li(t) {
2645
+ var e = si(t, "string");
2646
+ return q(e) == "symbol" ? e : e + "";
2647
+ }
2648
+ function si(t, e) {
2649
+ if (q(t) != "object" || !t) return t;
2650
+ var r = t[Symbol.toPrimitive];
2651
+ if (r !== void 0) {
2652
+ var n = r.call(t, e);
2653
+ if (q(n) != "object") return n;
2654
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2655
+ }
2656
+ return String(t);
2657
+ }
2658
+ var fi = "[" + P + p + "]+", ci = new RegExp("^" + fi + "$", "i"), hi = "(?:[" + $t + "][" + P + p + "]*|[" + P + p + "]+)", mi = new RegExp("[^" + P + p + "]+.*$"), gi = /[^\d\[\]]/, yi = /* @__PURE__ */ (function() {
2659
+ function t(e) {
2660
+ var r = e.defaultCountry, n = e.defaultCallingCode, d = e.metadata, i = e.onNationalSignificantNumberChange;
2661
+ oi(this, t), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = d, this.onNationalSignificantNumberChange = i;
2662
+ }
2663
+ return $i(t, [{
2664
+ key: "input",
2665
+ value: function(r, n) {
2666
+ var d = bi(r), i = Ue(d, 2), a = i[0], o = i[1], u = dt(a), $;
2667
+ return o && (n.digits || (n.startInternationalNumber(), u || ($ = !0))), u && this.inputDigits(u, n), {
2668
+ digits: u,
2669
+ justLeadingPlus: $
2670
+ };
2671
+ }
2672
+ /**
2673
+ * Inputs "next" phone number digits.
2674
+ * @param {string} digits
2675
+ * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means "don't format the national phone number at this stage".
2676
+ */
2677
+ }, {
2678
+ key: "inputDigits",
2679
+ value: function(r, n) {
2680
+ var d = n.digits, i = d.length < 3 && d.length + r.length >= 3;
2681
+ if (n.appendDigits(r), i && this.extractIddPrefix(n), this.isWaitingForCountryCallingCode(n)) {
2682
+ if (!this.extractCountryCallingCode(n))
2683
+ return;
2684
+ } else
2685
+ n.appendNationalSignificantNumberDigits(r);
2686
+ n.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(n.getNationalDigits(), function(a) {
2687
+ return n.update(a);
2688
+ });
2689
+ }
2690
+ }, {
2691
+ key: "isWaitingForCountryCallingCode",
2692
+ value: function(r) {
2693
+ var n = r.international, d = r.callingCode;
2694
+ return n && !d;
2695
+ }
2696
+ // Extracts a country calling code from a number
2697
+ // being entered in internatonal format.
2698
+ }, {
2699
+ key: "extractCountryCallingCode",
2700
+ value: function(r) {
2701
+ var n = At("+" + r.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode, i = n.number;
2702
+ if (d)
2703
+ return r.setCallingCode(d), r.update({
2704
+ nationalSignificantNumber: i
2705
+ }), !0;
2706
+ }
2707
+ }, {
2708
+ key: "reset",
2709
+ value: function(r) {
2710
+ if (r) {
2711
+ this.hasSelectedNumberingPlan = !0;
2712
+ var n = r._nationalPrefixForParsing();
2713
+ this.couldPossiblyExtractAnotherNationalSignificantNumber = n && gi.test(n);
2714
+ } else
2715
+ this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
2716
+ }
2717
+ /**
2718
+ * Extracts a national (significant) number from user input.
2719
+ * Google's library is different in that it only applies `national_prefix_for_parsing`
2720
+ * and doesn't apply `national_prefix_transform_rule` after that.
2721
+ * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
2722
+ * @return {boolean} [extracted]
2723
+ */
2724
+ }, {
2725
+ key: "extractNationalSignificantNumber",
2726
+ value: function(r, n) {
2727
+ if (this.hasSelectedNumberingPlan) {
2728
+ var d = bt(r, this.metadata), i = d.nationalPrefix, a = d.nationalNumber, o = d.carrierCode;
2729
+ if (a !== r)
2730
+ return this.onExtractedNationalNumber(i, o, a, r, n), !0;
2731
+ }
2732
+ }
2733
+ /**
2734
+ * In Google's code this function is called "attempt to extract longer NDD".
2735
+ * "Some national prefixes are a substring of others", they say.
2736
+ * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
2737
+ */
2738
+ }, {
2739
+ key: "extractAnotherNationalSignificantNumber",
2740
+ value: function(r, n, d) {
2741
+ if (!this.hasExtractedNationalSignificantNumber)
2742
+ return this.extractNationalSignificantNumber(r, d);
2743
+ if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
2744
+ var i = bt(r, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, u = i.carrierCode;
2745
+ if (o !== n)
2746
+ return this.onExtractedNationalNumber(a, u, o, r, d), !0;
2747
+ }
2748
+ }
2749
+ }, {
2750
+ key: "onExtractedNationalNumber",
2751
+ value: function(r, n, d, i, a) {
2752
+ var o, u, $ = i.lastIndexOf(d);
2753
+ if ($ >= 0 && $ === i.length - d.length) {
2754
+ u = !0;
2755
+ var l = i.slice(0, $);
2756
+ l !== r && (o = l);
2757
+ }
2758
+ a({
2759
+ nationalPrefix: r,
2760
+ carrierCode: n,
2761
+ nationalSignificantNumber: d,
2762
+ nationalSignificantNumberMatchesInput: u,
2763
+ complexPrefixBeforeNationalSignificantNumber: o
2764
+ }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
2765
+ }
2766
+ }, {
2767
+ key: "reExtractNationalSignificantNumber",
2768
+ value: function(r) {
2769
+ if (this.extractAnotherNationalSignificantNumber(r.getNationalDigits(), r.nationalSignificantNumber, function(n) {
2770
+ return r.update(n);
2771
+ }))
2772
+ return !0;
2773
+ if (this.extractIddPrefix(r))
2774
+ return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
2775
+ if (this.fixMissingPlus(r))
2776
+ return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
2777
+ }
2778
+ }, {
2779
+ key: "extractIddPrefix",
2780
+ value: function(r) {
2781
+ var n = r.international, d = r.IDDPrefix, i = r.digits;
2782
+ if (r.nationalSignificantNumber, !(n || d)) {
2783
+ var a = Ae(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
2784
+ if (a !== void 0 && a !== i)
2785
+ return r.update({
2786
+ IDDPrefix: i.slice(0, i.length - a.length)
2787
+ }), this.startInternationalNumber(r, {
2788
+ country: void 0,
2789
+ callingCode: void 0
2790
+ }), !0;
2791
+ }
2792
+ }
2793
+ }, {
2794
+ key: "fixMissingPlus",
2795
+ value: function(r) {
2796
+ if (!r.international) {
2797
+ var n = Te(r.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode;
2798
+ if (n.number, d)
2799
+ return r.update({
2800
+ missingPlus: !0
2801
+ }), this.startInternationalNumber(r, {
2802
+ country: r.country,
2803
+ callingCode: d
2804
+ }), !0;
2805
+ }
2806
+ }
2807
+ }, {
2808
+ key: "startInternationalNumber",
2809
+ value: function(r, n) {
2810
+ var d = n.country, i = n.callingCode;
2811
+ r.startInternationalNumber(d, i), r.nationalSignificantNumber && (r.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
2812
+ }
2813
+ }, {
2814
+ key: "extractCallingCodeAndNationalSignificantNumber",
2815
+ value: function(r) {
2816
+ this.extractCountryCallingCode(r) && this.extractNationalSignificantNumber(r.getNationalDigits(), function(n) {
2817
+ return r.update(n);
2818
+ });
2819
+ }
2820
+ }]);
2821
+ })();
2822
+ function pi(t) {
2823
+ var e = t.search(hi);
2824
+ if (!(e < 0)) {
2825
+ t = t.slice(e);
2826
+ var r;
2827
+ return t[0] === "+" && (r = !0, t = t.slice(1)), t = t.replace(mi, ""), r && (t = "+" + t), t;
2828
+ }
2829
+ }
2830
+ function vi(t) {
2831
+ var e = pi(t) || "";
2832
+ return e[0] === "+" ? [e.slice(1), !0] : [e];
2833
+ }
2834
+ function bi(t) {
2835
+ var e = vi(t), r = Ue(e, 2), n = r[0], d = r[1];
2836
+ return ci.test(n) || (n = ""), [n, d];
2837
+ }
2838
+ function z(t) {
2839
+ "@babel/helpers - typeof";
2840
+ return z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2841
+ return typeof e;
2842
+ } : function(e) {
2843
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2844
+ }, z(t);
2845
+ }
2846
+ function Ni(t, e) {
2847
+ return xi(t) || Si(t, e) || Pi(t, e) || Ci();
2848
+ }
2849
+ function Ci() {
2850
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2851
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2852
+ }
2853
+ function Pi(t, e) {
2854
+ if (t) {
2855
+ if (typeof t == "string") return Pe(t, e);
2856
+ var r = {}.toString.call(t).slice(8, -1);
2857
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Pe(t, e) : void 0;
2858
+ }
2859
+ }
2860
+ function Pe(t, e) {
2861
+ (e == null || e > t.length) && (e = t.length);
2862
+ for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
2863
+ return n;
2864
+ }
2865
+ function Si(t, e) {
2866
+ var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2867
+ if (r != null) {
2868
+ var n, d, i, a, o = [], u = !0, $ = !1;
2869
+ try {
2870
+ if (i = (r = r.call(t)).next, e !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== e); u = !0) ;
2871
+ } catch (l) {
2872
+ $ = !0, d = l;
2873
+ } finally {
2874
+ try {
2875
+ if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
2876
+ } finally {
2877
+ if ($) throw d;
2878
+ }
2879
+ }
2880
+ return o;
2881
+ }
2882
+ }
2883
+ function xi(t) {
2884
+ if (Array.isArray(t)) return t;
2885
+ }
2886
+ function Ei(t, e) {
2887
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
2888
+ }
2889
+ function wi(t, e) {
2890
+ for (var r = 0; r < e.length; r++) {
2891
+ var n = e[r];
2892
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, Fi(n.key), n);
2893
+ }
2894
+ }
2895
+ function _i(t, e, r) {
2896
+ return e && wi(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
2897
+ }
2898
+ function Fi(t) {
2899
+ var e = Ai(t, "string");
2900
+ return z(e) == "symbol" ? e : e + "";
2901
+ }
2902
+ function Ai(t, e) {
2903
+ if (z(t) != "object" || !t) return t;
2904
+ var r = t[Symbol.toPrimitive];
2905
+ if (r !== void 0) {
2906
+ var n = r.call(t, e);
2907
+ if (z(n) != "object") return n;
2908
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2909
+ }
2910
+ return String(t);
2911
+ }
2912
+ var He = /* @__PURE__ */ (function() {
2913
+ function t(e, r) {
2914
+ Ei(this, t), this.metadata = new y(r);
2915
+ var n = this.getCountryAndCallingCode(e), d = Ni(n, 2), i = d[0], a = d[1];
2916
+ this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
2917
+ }
2918
+ return _i(t, [{
2919
+ key: "getCountryAndCallingCode",
2920
+ value: function(r) {
2921
+ var n, d;
2922
+ return r && (F(r) ? (n = r.defaultCountry, d = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), [n, d];
2923
+ }
2924
+ /**
2925
+ * Inputs "next" phone number characters.
2926
+ * @param {string} text
2927
+ * @return {string} Formatted phone number characters that have been input so far.
2928
+ */
2929
+ }, {
2930
+ key: "input",
2931
+ value: function(r) {
2932
+ var n = this.parser.input(r, this.state), d = n.digits, i = n.justLeadingPlus;
2933
+ if (i)
2934
+ this.formattedOutput = "+";
2935
+ else if (d) {
2936
+ this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
2937
+ var a;
2938
+ if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(d, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
2939
+ this.determineTheCountryIfNeeded();
2940
+ var o = this.state.getNationalDigits();
2941
+ o && (a = this.formatter.format(o, this.state));
2942
+ }
2943
+ this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
2944
+ }
2945
+ return this.formattedOutput;
2946
+ }
2947
+ }, {
2948
+ key: "reset",
2949
+ value: function() {
2950
+ var r = this;
2951
+ return this.state = new vd({
2952
+ onCountryChange: function(d) {
2953
+ r.country = d;
2954
+ },
2955
+ onCallingCodeChange: function(d, i) {
2956
+ r.metadata.selectNumberingPlan(i, d), r.formatter.reset(r.metadata.numberingPlan, r.state), r.parser.reset(r.metadata.numberingPlan);
2957
+ }
2958
+ }), this.formatter = new ri({
2959
+ state: this.state,
2960
+ metadata: this.metadata
2961
+ }), this.parser = new yi({
2962
+ defaultCountry: this.defaultCountry,
2963
+ defaultCallingCode: this.defaultCallingCode,
2964
+ metadata: this.metadata,
2965
+ state: this.state,
2966
+ onNationalSignificantNumberChange: function() {
2967
+ r.determineTheCountryIfNeeded(), r.formatter.reset(r.metadata.numberingPlan, r.state);
2968
+ }
2969
+ }), this.state.reset({
2970
+ country: this.defaultCountry,
2971
+ callingCode: this.defaultCallingCode
2972
+ }), this.formattedOutput = "", this;
2973
+ }
2974
+ /**
2975
+ * Returns `true` if the phone number is being input in international format.
2976
+ * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
2977
+ * @return {boolean}
2978
+ */
2979
+ }, {
2980
+ key: "isInternational",
2981
+ value: function() {
2982
+ return this.state.international;
2983
+ }
2984
+ /**
2985
+ * Returns the "calling code" part of the phone number when it's being input
2986
+ * in an international format.
2987
+ * If no valid calling code has been entered so far, returns `undefined`.
2988
+ * @return {string} [callingCode]
2989
+ */
2990
+ }, {
2991
+ key: "getCallingCode",
2992
+ value: function() {
2993
+ if (this.isInternational())
2994
+ return this.state.callingCode;
2995
+ }
2996
+ // A legacy alias.
2997
+ }, {
2998
+ key: "getCountryCallingCode",
2999
+ value: function() {
3000
+ return this.getCallingCode();
3001
+ }
3002
+ /**
3003
+ * Returns a two-letter country code of the phone number.
3004
+ * Returns `undefined` for "non-geographic" phone numbering plans.
3005
+ * Returns `undefined` if no phone number has been input yet.
3006
+ * @return {string} [country]
3007
+ */
3008
+ }, {
3009
+ key: "getCountry",
3010
+ value: function() {
3011
+ var r = this.state.digits;
3012
+ if (r)
3013
+ return this._getCountry();
3014
+ }
3015
+ /**
3016
+ * Returns a two-letter country code of the phone number.
3017
+ * Returns `undefined` for "non-geographic" phone numbering plans.
3018
+ * @return {string} [country]
3019
+ */
3020
+ }, {
3021
+ key: "_getCountry",
3022
+ value: function() {
3023
+ var r = this.state.country;
3024
+ return r;
3025
+ }
3026
+ }, {
3027
+ key: "determineTheCountryIfNeeded",
3028
+ value: function() {
3029
+ (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
3030
+ }
3031
+ // Prepends `+CountryCode ` in case of an international phone number
3032
+ }, {
3033
+ key: "getFullNumber",
3034
+ value: function(r) {
3035
+ var n = this;
3036
+ if (this.isInternational()) {
3037
+ var d = function(o) {
3038
+ return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state, {
3039
+ spacing: !!o
3040
+ }) + o;
3041
+ }, i = this.state.callingCode;
3042
+ return d(i ? r ? "".concat(i, " ").concat(r) : i : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
3043
+ }
3044
+ return r;
3045
+ }
3046
+ }, {
3047
+ key: "getNonFormattedNationalNumberWithPrefix",
3048
+ value: function() {
3049
+ var r = this.state, n = r.nationalSignificantNumber, d = r.complexPrefixBeforeNationalSignificantNumber, i = r.nationalPrefix, a = n, o = d || i;
3050
+ return o && (a = o + a), a;
3051
+ }
3052
+ }, {
3053
+ key: "getNonFormattedNumber",
3054
+ value: function() {
3055
+ var r = this.state.nationalSignificantNumberMatchesInput;
3056
+ return this.getFullNumber(r ? this.getNonFormattedNationalNumberWithPrefix() : this.state.getNationalDigits());
3057
+ }
3058
+ }, {
3059
+ key: "getNonFormattedTemplate",
3060
+ value: function() {
3061
+ var r = this.getNonFormattedNumber();
3062
+ if (r)
3063
+ return r.replace(/[\+\d]/g, C);
3064
+ }
3065
+ }, {
3066
+ key: "isCountryCallingCodeAmbiguous",
3067
+ value: function() {
3068
+ var r = this.state.callingCode, n = this.metadata.getCountryCodesForCallingCode(r);
3069
+ return n && n.length > 1;
3070
+ }
3071
+ // Determines the country of the phone number
3072
+ // entered so far based on the country phone code
3073
+ // and the national phone number.
3074
+ }, {
3075
+ key: "determineTheCountry",
3076
+ value: function() {
3077
+ this.state.setCountry(Ge(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
3078
+ nationalNumber: this.state.nationalSignificantNumber,
3079
+ defaultCountry: this.defaultCountry,
3080
+ metadata: this.metadata
3081
+ }));
3082
+ }
3083
+ /**
3084
+ * Returns a E.164 phone number value for the user's input.
3085
+ *
3086
+ * For example, for country `"US"` and input `"(222) 333-4444"`
3087
+ * it will return `"+12223334444"`.
3088
+ *
3089
+ * For international phone number input, it will also auto-correct
3090
+ * some minor errors such as using a national prefix when writing
3091
+ * an international phone number. For example, if the user inputs
3092
+ * `"+44 0 7400 000000"` then it will return an auto-corrected
3093
+ * `"+447400000000"` phone number value.
3094
+ *
3095
+ * Will return `undefined` if no digits have been input,
3096
+ * or when inputting a phone number in national format and no
3097
+ * default country or default "country calling code" have been set.
3098
+ *
3099
+ * @return {string} [value]
3100
+ */
3101
+ }, {
3102
+ key: "getNumberValue",
3103
+ value: function() {
3104
+ var r = this.state, n = r.digits, d = r.callingCode, i = r.country, a = r.nationalSignificantNumber;
3105
+ if (n) {
3106
+ if (this.isInternational())
3107
+ return d ? "+" + d + a : "+" + n;
3108
+ if (i || d) {
3109
+ var o = i ? this.metadata.countryCallingCode() : d;
3110
+ return "+" + o + a;
3111
+ }
3112
+ }
3113
+ }
3114
+ /**
3115
+ * Returns an instance of `PhoneNumber` class.
3116
+ * Will return `undefined` if no national (significant) number
3117
+ * digits have been entered so far, or if no `defaultCountry` has been
3118
+ * set and the user enters a phone number not in international format.
3119
+ */
3120
+ }, {
3121
+ key: "getNumber",
3122
+ value: function() {
3123
+ var r = this.state, n = r.nationalSignificantNumber, d = r.carrierCode, i = r.callingCode, a = this._getCountry();
3124
+ if (n && !(!a && !i)) {
3125
+ if (a && a === this.defaultCountry) {
3126
+ var o = new y(this.metadata.metadata);
3127
+ o.selectNumberingPlan(a);
3128
+ var u = o.numberingPlan.callingCode(), $ = this.metadata.getCountryCodesForCallingCode(u);
3129
+ if ($.length > 1) {
3130
+ var l = ke(n, {
3131
+ countries: $,
3132
+ defaultCountry: this.defaultCountry,
3133
+ metadata: this.metadata.metadata
3134
+ });
3135
+ l && (a = l);
3136
+ }
3137
+ }
3138
+ var h = new Me(a || i, n, this.metadata.metadata);
3139
+ return d && (h.carrierCode = d), h;
3140
+ }
3141
+ }
3142
+ /**
3143
+ * Returns `true` if the phone number is "possible".
3144
+ * Is just a shortcut for `PhoneNumber.isPossible()`.
3145
+ * @return {boolean}
3146
+ */
3147
+ }, {
3148
+ key: "isPossible",
3149
+ value: function() {
3150
+ var r = this.getNumber();
3151
+ return r ? r.isPossible() : !1;
3152
+ }
3153
+ /**
3154
+ * Returns `true` if the phone number is "valid".
3155
+ * Is just a shortcut for `PhoneNumber.isValid()`.
3156
+ * @return {boolean}
3157
+ */
3158
+ }, {
3159
+ key: "isValid",
3160
+ value: function() {
3161
+ var r = this.getNumber();
3162
+ return r ? r.isValid() : !1;
3163
+ }
3164
+ /**
3165
+ * @deprecated
3166
+ * This method is used in `react-phone-number-input/source/input-control.js`
3167
+ * in versions before `3.0.16`.
3168
+ */
3169
+ }, {
3170
+ key: "getNationalNumber",
3171
+ value: function() {
3172
+ return this.state.nationalSignificantNumber;
3173
+ }
3174
+ /**
3175
+ * Returns the phone number characters entered by the user.
3176
+ * @return {string}
3177
+ */
3178
+ }, {
3179
+ key: "getChars",
3180
+ value: function() {
3181
+ return (this.state.international ? "+" : "") + this.state.digits;
3182
+ }
3183
+ /**
3184
+ * Returns the template for the formatted phone number.
3185
+ * @return {string}
3186
+ */
3187
+ }, {
3188
+ key: "getTemplate",
3189
+ value: function() {
3190
+ return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
3191
+ }
3192
+ }]);
3193
+ })();
3194
+ function vt() {
3195
+ return Ee(cd, arguments);
3196
+ }
3197
+ function R(t) {
3198
+ return He.call(this, t, xe);
3199
+ }
3200
+ R.prototype = Object.create(He.prototype, {});
3201
+ R.prototype.constructor = R;
3202
+ function Se() {
3203
+ return Ee(ot, arguments);
3204
+ }
3205
+ const et = {
3206
+ PE: { name: "Perú", flag: "🇵🇪" },
3207
+ US: { name: "Estados Unidos", flag: "🇺🇸" },
3208
+ MX: { name: "México", flag: "🇲🇽" },
3209
+ AR: { name: "Argentina", flag: "🇦🇷" },
3210
+ CO: { name: "Colombia", flag: "🇨🇴" },
3211
+ CL: { name: "Chile", flag: "🇨🇱" },
3212
+ BR: { name: "Brasil", flag: "🇧🇷" },
3213
+ BO: { name: "Bolivia", flag: "🇧🇴" },
3214
+ VE: { name: "Venezuela", flag: "🇻🇪" }
3215
+ }, Gi = ({
3216
+ id: t,
3217
+ name: e,
3218
+ label: r = "Teléfono",
3219
+ placeholder: n = "Ingrese un número de teléfono",
3220
+ required: d = !1,
3221
+ className: i = "",
3222
+ classNameContainer: a = "",
3223
+ onCountryChange: o,
3224
+ onPhoneChange: u,
3225
+ touched: $,
3226
+ onBlur: l,
3227
+ error: h,
3228
+ value: f,
3229
+ defaultCountry: m = "PE",
3230
+ disabled: b = !1
3231
+ }) => {
3232
+ const [v, N] = w({
3233
+ code: m,
3234
+ name: et[m].name,
3235
+ flag: et[m].flag,
3236
+ callingCode: `+${Se(m)}`
3237
+ }), [A, L] = w(!1), [M, It] = w(""), [We, lt] = w(""), [Ot, st] = w(!1), [T, Ve] = w([]), [j, Rt] = w(""), [Ke, ft] = w([]), ct = ht(null), Dt = ht(null), Lt = ht(null), Xe = qe(), Mt = t || Xe, jt = f !== void 0;
3238
+ tt(() => {
3239
+ const s = Object.keys(et).map((g) => {
3240
+ const S = et[g];
3241
+ return {
3242
+ code: g,
3243
+ name: S.name,
3244
+ flag: S.flag,
3245
+ callingCode: `+${Se(g)}`
3246
+ };
3247
+ });
3248
+ Ve(s), ft(s);
3249
+ }, []), tt(() => {
3250
+ const s = (g) => {
3251
+ ct.current && !ct.current.contains(g.target) && L(!1);
3252
+ };
3253
+ return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
3254
+ }, []), tt(() => {
3255
+ if (jt && f && T.length > 0) {
3256
+ const s = T.find((g) => f.startsWith(g.callingCode));
3257
+ if (s) {
3258
+ N(s);
3259
+ const g = f.replace(s.callingCode, "").replace(/[^\d]/g, "");
3260
+ It(g);
3261
+ const I = new R(s.code).input(g);
3262
+ lt(I);
3263
+ const _ = vt(f);
3264
+ st(_);
3265
+ }
3266
+ }
3267
+ }, [f, T, jt]);
3268
+ const Ye = (s) => {
3269
+ const g = s.replace(/[^\d]/g, ""), I = new R(v.code).input(g);
3270
+ It(g), lt(I);
3271
+ const _ = v.callingCode + g, Bt = vt(_);
3272
+ st(Bt), u?.(_, Bt);
3273
+ }, Ze = (s) => {
3274
+ if (N(s), L(!1), Rt(""), M) {
3275
+ const S = new R(s.code).input(M);
3276
+ lt(S);
3277
+ const I = s.callingCode + M, _ = vt(I);
3278
+ st(_), u?.(I, _);
3279
+ }
3280
+ o?.(s), setTimeout(() => Dt.current?.focus(), 100);
3281
+ }, Je = () => {
3282
+ L(!A), A || setTimeout(() => Lt.current?.focus(), 100);
3283
+ };
3284
+ tt(() => {
3285
+ if (!j.trim())
3286
+ ft(T);
3287
+ else {
3288
+ const s = j.toLowerCase(), g = T.filter(
3289
+ (S) => S.name.toLowerCase().includes(s) || S.callingCode.includes(j) || S.code.toLowerCase().includes(s)
3290
+ );
3291
+ ft(g);
3292
+ }
3293
+ }, [j, T]);
3294
+ const Qe = $, kt = h, Gt = Qe && kt;
3295
+ return /* @__PURE__ */ c.jsxs("div", { className: k("w-full relative flex flex-col", a), children: [
3296
+ r && /* @__PURE__ */ c.jsxs(
3297
+ "label",
3298
+ {
3299
+ htmlFor: Mt,
3300
+ className: ze("form-control-label block font-normal text-sm text-foreground mb-1", {
3301
+ "text-danger": Gt
3302
+ }),
3303
+ children: [
3304
+ r,
3305
+ " ",
3306
+ d && /* @__PURE__ */ c.jsx("span", { className: "text-danger", children: "*" })
3307
+ ]
3308
+ }
3309
+ ),
3310
+ /* @__PURE__ */ c.jsxs(
3311
+ "div",
3312
+ {
3313
+ className: k(
3314
+ "flex w-full min-w-0 transition-[color,box-shadow] outline-none rounded-md h-input-default",
3315
+ "bg-white border border-input",
3316
+ "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
3317
+ Gt ? "border-danger aria-invalid:ring-danger/20" : "focus-within:border-primary focus-within:ring-primary/20",
3318
+ "focus-within:ring-[3px]"
3319
+ ),
3320
+ children: [
3321
+ /* @__PURE__ */ c.jsxs("div", { className: "relative", ref: ct, children: [
3322
+ /* @__PURE__ */ c.jsxs(
3323
+ "button",
3324
+ {
3325
+ type: "button",
3326
+ onClick: Je,
3327
+ className: k(
3328
+ "flex items-center gap-2 px-3 border-r border-input h-input-default",
3329
+ "hover:bg-muted/20 focus:outline-none rounded-l-md"
3330
+ ),
3331
+ children: [
3332
+ /* @__PURE__ */ c.jsx("span", { className: "text-lg", children: v.flag }),
3333
+ /* @__PURE__ */ c.jsx("span", { className: "text-sm font-medium text-foreground", children: v.callingCode }),
3334
+ /* @__PURE__ */ c.jsx(er, { className: `w-4 h-4 text-muted-foreground transition-transform ${A ? "rotate-180" : ""}` })
3335
+ ]
3336
+ }
3337
+ ),
3338
+ A && /* @__PURE__ */ c.jsxs("div", { className: "absolute top-full left-0 z-50 w-60 mt-1 bg-white border border-input rounded-md shadow-lg max-h-60 overflow-hidden", children: [
3339
+ /* @__PURE__ */ c.jsx("div", { className: "sticky top-0 bg-white border-b border-input p-3", children: /* @__PURE__ */ c.jsxs("div", { className: "relative", children: [
3340
+ /* @__PURE__ */ c.jsx(nr, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground" }),
3341
+ /* @__PURE__ */ c.jsx(
3342
+ "input",
3343
+ {
3344
+ ref: Lt,
3345
+ type: "text",
3346
+ value: j,
3347
+ onChange: (s) => Rt(s.target.value),
3348
+ placeholder: "Buscar país o código...",
3349
+ className: "w-full pl-10 pr-3 py-2 h-9 border border-input rounded-md text-sm focus:outline-none focus:border-primary focus:ring-[3px] focus:ring-primary/20"
3350
+ }
3351
+ )
3352
+ ] }) }),
3353
+ /* @__PURE__ */ c.jsx("div", { className: "max-h-48 overflow-y-auto", children: Ke.map((s) => /* @__PURE__ */ c.jsxs(
3354
+ "button",
3355
+ {
3356
+ type: "button",
3357
+ onClick: () => Ze(s),
3358
+ className: k(
3359
+ "w-full flex items-center gap-3 px-3 py-1 text-sm transition",
3360
+ v.code === s.code ? "bg-primary/5 border-l-2 border-primary" : "hover:bg-muted/20"
3361
+ ),
3362
+ children: [
3363
+ /* @__PURE__ */ c.jsx("span", { className: "text-lg", children: s.flag }),
3364
+ /* @__PURE__ */ c.jsx("span", { className: "flex-1 text-left", children: s.name }),
3365
+ /* @__PURE__ */ c.jsx("span", { className: "text-muted-foreground", children: s.callingCode }),
3366
+ v.code === s.code && /* @__PURE__ */ c.jsx(rr, { className: "w-4 h-4 text-primary" })
3367
+ ]
3368
+ },
3369
+ s.code
3370
+ )) })
3371
+ ] })
3372
+ ] }),
3373
+ /* @__PURE__ */ c.jsx(
3374
+ "input",
3375
+ {
3376
+ ref: Dt,
3377
+ id: Mt,
3378
+ type: "tel",
3379
+ name: e,
3380
+ value: We,
3381
+ onChange: (s) => Ye(s.target.value),
3382
+ onBlur: l,
3383
+ placeholder: n,
3384
+ disabled: b,
3385
+ className: k(
3386
+ "flex-1 px-3 py-1 h-input-default border-0 rounded-r-md bg-transparent focus:outline-none text-foreground text-sm",
3387
+ i
3388
+ ),
3389
+ autoComplete: "tel"
3390
+ }
3391
+ ),
3392
+ M && /* @__PURE__ */ c.jsx("div", { className: "flex items-center pr-3", children: /* @__PURE__ */ c.jsx("div", { className: `w-2 h-2 rounded-full ${Ot ? "bg-green-500" : "bg-danger"}` }) })
3393
+ ]
3394
+ }
3395
+ ),
3396
+ !b && h && $ && /* @__PURE__ */ c.jsx(tr, { text: h || kt || "" })
3397
+ ] });
3398
+ };
3399
+ export {
3400
+ Gi as PhoneInput
3401
+ };
3402
+ //# sourceMappingURL=index.es.js.map