@odus/checkout 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/phone.js ADDED
@@ -0,0 +1,3433 @@
1
+ import { x as Ne, y as re, C as E, z as Pe, e as Et, H as Ee } from "./shared.js";
2
+ const ne = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "(?:[025-7]\\d|44)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, 0, [["528[89]\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, "0|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0|180020", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[06]0"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33622|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["3"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{4})(\\d{5})", "$1-$2", ["892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8(?:0[0-7]|9)"], "0$1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[5-8]"], "0$1"]], "0", 0, 0, 0, 0, "[5-8]"], MC: ["377", "00", "(?:[3489]|[67]\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["3[289]|4[246-8]|61|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, 0, [["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]], ["9\\d{9}", [10]], ["8(?:0[04]|108\\d{3})\\d{7}"], ["80[39]\\d{7}", [10]], ["808\\d{7}", [10]]], "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|30|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
3
+ function yt(e, t) {
4
+ var r = Array.prototype.slice.call(t);
5
+ return r.push(ne), e.apply(this, r);
6
+ }
7
+ function St(e, t) {
8
+ e = e.split("-"), t = t.split("-");
9
+ for (var r = e[0].split("."), n = t[0].split("."), d = 0; d < 3; d++) {
10
+ var i = Number(r[d]), a = Number(n[d]);
11
+ if (i > a) return 1;
12
+ if (a > i) return -1;
13
+ if (!isNaN(i) && isNaN(a)) return 1;
14
+ if (isNaN(i) && !isNaN(a)) return -1;
15
+ }
16
+ return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
17
+ }
18
+ var Se = {}.constructor;
19
+ function S(e) {
20
+ return e != null && e.constructor === Se;
21
+ }
22
+ function I(e) {
23
+ "@babel/helpers - typeof";
24
+ return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
25
+ return typeof t;
26
+ } : function(t) {
27
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
28
+ }, I(e);
29
+ }
30
+ function J(e, t) {
31
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
32
+ }
33
+ function xe(e, t) {
34
+ for (var r = 0; r < t.length; r++) {
35
+ var n = t[r];
36
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Te(n.key), n);
37
+ }
38
+ }
39
+ function Q(e, t, r) {
40
+ return t && xe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
41
+ }
42
+ function Te(e) {
43
+ var t = Fe(e, "string");
44
+ return I(t) == "symbol" ? t : t + "";
45
+ }
46
+ function Fe(e, t) {
47
+ if (I(e) != "object" || !e) return e;
48
+ var r = e[Symbol.toPrimitive];
49
+ if (r !== void 0) {
50
+ var n = r.call(e, t);
51
+ if (I(n) != "object") return n;
52
+ throw new TypeError("@@toPrimitive must return a primitive value.");
53
+ }
54
+ return String(e);
55
+ }
56
+ var Ie = "1.2.0", Ae = "1.7.35", xt = " ext. ", _e = /^\d+$/, c = /* @__PURE__ */ function() {
57
+ function e(t) {
58
+ J(this, e), de(t), this.metadata = t, ie.call(this, t);
59
+ }
60
+ return Q(e, [{
61
+ key: "getCountries",
62
+ value: function() {
63
+ return Object.keys(this.metadata.countries).filter(function(r) {
64
+ return r !== "001";
65
+ });
66
+ }
67
+ }, {
68
+ key: "getCountryMetadata",
69
+ value: function(r) {
70
+ return this.metadata.countries[r];
71
+ }
72
+ }, {
73
+ key: "nonGeographic",
74
+ value: function() {
75
+ if (!(this.v1 || this.v2 || this.v3))
76
+ return this.metadata.nonGeographic || this.metadata.nonGeographical;
77
+ }
78
+ }, {
79
+ key: "hasCountry",
80
+ value: function(r) {
81
+ return this.getCountryMetadata(r) !== void 0;
82
+ }
83
+ }, {
84
+ key: "hasCallingCode",
85
+ value: function(r) {
86
+ if (this.getCountryCodesForCallingCode(r))
87
+ return !0;
88
+ if (this.nonGeographic()) {
89
+ if (this.nonGeographic()[r])
90
+ return !0;
91
+ } else {
92
+ var n = this.countryCallingCodes()[r];
93
+ if (n && n.length === 1 && n[0] === "001")
94
+ return !0;
95
+ }
96
+ }
97
+ }, {
98
+ key: "isNonGeographicCallingCode",
99
+ value: function(r) {
100
+ return this.nonGeographic() ? !!this.nonGeographic()[r] : !this.getCountryCodesForCallingCode(r);
101
+ }
102
+ // Deprecated.
103
+ }, {
104
+ key: "country",
105
+ value: function(r) {
106
+ return this.selectNumberingPlan(r);
107
+ }
108
+ }, {
109
+ key: "selectNumberingPlan",
110
+ value: function(r, n) {
111
+ if (r && _e.test(r) && (n = r, r = null), r && r !== "001") {
112
+ if (!this.hasCountry(r))
113
+ throw new Error("Unknown country: ".concat(r));
114
+ this.numberingPlan = new Tt(this.getCountryMetadata(r), this);
115
+ } else if (n) {
116
+ if (!this.hasCallingCode(n))
117
+ throw new Error("Unknown calling code: ".concat(n));
118
+ this.numberingPlan = new Tt(this.getNumberingPlanMetadata(n), this);
119
+ } else
120
+ this.numberingPlan = void 0;
121
+ return this;
122
+ }
123
+ }, {
124
+ key: "getCountryCodesForCallingCode",
125
+ value: function(r) {
126
+ var n = this.countryCallingCodes()[r];
127
+ if (n)
128
+ return n.length === 1 && n[0].length === 3 ? void 0 : n;
129
+ }
130
+ }, {
131
+ key: "getCountryCodeForCallingCode",
132
+ value: function(r) {
133
+ var n = this.getCountryCodesForCallingCode(r);
134
+ if (n)
135
+ return n[0];
136
+ }
137
+ }, {
138
+ key: "getNumberingPlanMetadata",
139
+ value: function(r) {
140
+ var n = this.getCountryCodeForCallingCode(r);
141
+ if (n)
142
+ return this.getCountryMetadata(n);
143
+ if (this.nonGeographic()) {
144
+ var d = this.nonGeographic()[r];
145
+ if (d)
146
+ return d;
147
+ } else {
148
+ var i = this.countryCallingCodes()[r];
149
+ if (i && i.length === 1 && i[0] === "001")
150
+ return this.metadata.countries["001"];
151
+ }
152
+ }
153
+ // Deprecated.
154
+ }, {
155
+ key: "countryCallingCode",
156
+ value: function() {
157
+ return this.numberingPlan.callingCode();
158
+ }
159
+ // Deprecated.
160
+ }, {
161
+ key: "IDDPrefix",
162
+ value: function() {
163
+ return this.numberingPlan.IDDPrefix();
164
+ }
165
+ // Deprecated.
166
+ }, {
167
+ key: "defaultIDDPrefix",
168
+ value: function() {
169
+ return this.numberingPlan.defaultIDDPrefix();
170
+ }
171
+ // Deprecated.
172
+ }, {
173
+ key: "nationalNumberPattern",
174
+ value: function() {
175
+ return this.numberingPlan.nationalNumberPattern();
176
+ }
177
+ // Deprecated.
178
+ }, {
179
+ key: "possibleLengths",
180
+ value: function() {
181
+ return this.numberingPlan.possibleLengths();
182
+ }
183
+ // Deprecated.
184
+ }, {
185
+ key: "formats",
186
+ value: function() {
187
+ return this.numberingPlan.formats();
188
+ }
189
+ // Deprecated.
190
+ }, {
191
+ key: "nationalPrefixForParsing",
192
+ value: function() {
193
+ return this.numberingPlan.nationalPrefixForParsing();
194
+ }
195
+ // Deprecated.
196
+ }, {
197
+ key: "nationalPrefixTransformRule",
198
+ value: function() {
199
+ return this.numberingPlan.nationalPrefixTransformRule();
200
+ }
201
+ // Deprecated.
202
+ }, {
203
+ key: "leadingDigits",
204
+ value: function() {
205
+ return this.numberingPlan.leadingDigits();
206
+ }
207
+ // Deprecated.
208
+ }, {
209
+ key: "hasTypes",
210
+ value: function() {
211
+ return this.numberingPlan.hasTypes();
212
+ }
213
+ // Deprecated.
214
+ }, {
215
+ key: "type",
216
+ value: function(r) {
217
+ return this.numberingPlan.type(r);
218
+ }
219
+ // Deprecated.
220
+ }, {
221
+ key: "ext",
222
+ value: function() {
223
+ return this.numberingPlan.ext();
224
+ }
225
+ }, {
226
+ key: "countryCallingCodes",
227
+ value: function() {
228
+ return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
229
+ }
230
+ // Deprecated.
231
+ }, {
232
+ key: "chooseCountryByCountryCallingCode",
233
+ value: function(r) {
234
+ return this.selectNumberingPlan(r);
235
+ }
236
+ }, {
237
+ key: "hasSelectedNumberingPlan",
238
+ value: function() {
239
+ return this.numberingPlan !== void 0;
240
+ }
241
+ }]);
242
+ }(), Tt = /* @__PURE__ */ function() {
243
+ function e(t, r) {
244
+ J(this, e), this.globalMetadataObject = r, this.metadata = t, ie.call(this, r.metadata);
245
+ }
246
+ return Q(e, [{
247
+ key: "callingCode",
248
+ value: function() {
249
+ return this.metadata[0];
250
+ }
251
+ // Formatting information for regions which share
252
+ // a country calling code is contained by only one region
253
+ // for performance reasons. For example, for NANPA region
254
+ // ("North American Numbering Plan Administration",
255
+ // which includes USA, Canada, Cayman Islands, Bahamas, etc)
256
+ // it will be contained in the metadata for `US`.
257
+ }, {
258
+ key: "getDefaultCountryMetadataForRegion",
259
+ value: function() {
260
+ return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
261
+ }
262
+ // Is always present.
263
+ }, {
264
+ key: "IDDPrefix",
265
+ value: function() {
266
+ if (!(this.v1 || this.v2))
267
+ return this.metadata[1];
268
+ }
269
+ // Is only present when a country supports multiple IDD prefixes.
270
+ }, {
271
+ key: "defaultIDDPrefix",
272
+ value: function() {
273
+ if (!(this.v1 || this.v2))
274
+ return this.metadata[12];
275
+ }
276
+ }, {
277
+ key: "nationalNumberPattern",
278
+ value: function() {
279
+ return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
280
+ }
281
+ // "possible length" data is always present in Google's metadata.
282
+ }, {
283
+ key: "possibleLengths",
284
+ value: function() {
285
+ if (!this.v1)
286
+ return this.metadata[this.v2 ? 2 : 3];
287
+ }
288
+ }, {
289
+ key: "_getFormats",
290
+ value: function(r) {
291
+ return r[this.v1 ? 2 : this.v2 ? 3 : 4];
292
+ }
293
+ // For countries of the same region (e.g. NANPA)
294
+ // formats are all stored in the "main" country for that region.
295
+ // E.g. "RU" and "KZ", "US" and "CA".
296
+ }, {
297
+ key: "formats",
298
+ value: function() {
299
+ var r = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
300
+ return n.map(function(d) {
301
+ return new we(d, r);
302
+ });
303
+ }
304
+ }, {
305
+ key: "nationalPrefix",
306
+ value: function() {
307
+ return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
308
+ }
309
+ }, {
310
+ key: "_getNationalPrefixFormattingRule",
311
+ value: function(r) {
312
+ return r[this.v1 ? 4 : this.v2 ? 5 : 6];
313
+ }
314
+ // For countries of the same region (e.g. NANPA)
315
+ // national prefix formatting rule is stored in the "main" country for that region.
316
+ // E.g. "RU" and "KZ", "US" and "CA".
317
+ }, {
318
+ key: "nationalPrefixFormattingRule",
319
+ value: function() {
320
+ return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
321
+ }
322
+ }, {
323
+ key: "_nationalPrefixForParsing",
324
+ value: function() {
325
+ return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
326
+ }
327
+ }, {
328
+ key: "nationalPrefixForParsing",
329
+ value: function() {
330
+ return this._nationalPrefixForParsing() || this.nationalPrefix();
331
+ }
332
+ }, {
333
+ key: "nationalPrefixTransformRule",
334
+ value: function() {
335
+ return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
336
+ }
337
+ }, {
338
+ key: "_getNationalPrefixIsOptionalWhenFormatting",
339
+ value: function() {
340
+ return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
341
+ }
342
+ // For countries of the same region (e.g. NANPA)
343
+ // "national prefix is optional when formatting" flag is
344
+ // stored in the "main" country for that region.
345
+ // E.g. "RU" and "KZ", "US" and "CA".
346
+ }, {
347
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
348
+ value: function() {
349
+ return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
350
+ }
351
+ }, {
352
+ key: "leadingDigits",
353
+ value: function() {
354
+ return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
355
+ }
356
+ }, {
357
+ key: "types",
358
+ value: function() {
359
+ return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
360
+ }
361
+ }, {
362
+ key: "hasTypes",
363
+ value: function() {
364
+ return this.types() && this.types().length === 0 ? !1 : !!this.types();
365
+ }
366
+ }, {
367
+ key: "type",
368
+ value: function(r) {
369
+ if (this.hasTypes() && Ft(this.types(), r))
370
+ return new Re(Ft(this.types(), r), this);
371
+ }
372
+ }, {
373
+ key: "ext",
374
+ value: function() {
375
+ return this.v1 || this.v2 ? xt : this.metadata[13] || xt;
376
+ }
377
+ }]);
378
+ }(), we = /* @__PURE__ */ function() {
379
+ function e(t, r) {
380
+ J(this, e), this._format = t, this.metadata = r;
381
+ }
382
+ return Q(e, [{
383
+ key: "pattern",
384
+ value: function() {
385
+ return this._format[0];
386
+ }
387
+ }, {
388
+ key: "format",
389
+ value: function() {
390
+ return this._format[1];
391
+ }
392
+ }, {
393
+ key: "leadingDigitsPatterns",
394
+ value: function() {
395
+ return this._format[2] || [];
396
+ }
397
+ }, {
398
+ key: "nationalPrefixFormattingRule",
399
+ value: function() {
400
+ return this._format[3] || this.metadata.nationalPrefixFormattingRule();
401
+ }
402
+ }, {
403
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
404
+ value: function() {
405
+ return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
406
+ }
407
+ }, {
408
+ key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
409
+ value: function() {
410
+ return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
411
+ }
412
+ // Checks whether national prefix formatting rule contains national prefix.
413
+ }, {
414
+ key: "usesNationalPrefix",
415
+ value: function() {
416
+ return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
417
+ !Oe.test(this.nationalPrefixFormattingRule()));
418
+ }
419
+ }, {
420
+ key: "internationalFormat",
421
+ value: function() {
422
+ return this._format[5] || this.format();
423
+ }
424
+ }]);
425
+ }(), Oe = /^\(?\$1\)?$/, Re = /* @__PURE__ */ function() {
426
+ function e(t, r) {
427
+ J(this, e), this.type = t, this.metadata = r;
428
+ }
429
+ return Q(e, [{
430
+ key: "pattern",
431
+ value: function() {
432
+ return this.metadata.v1 ? this.type : this.type[0];
433
+ }
434
+ }, {
435
+ key: "possibleLengths",
436
+ value: function() {
437
+ if (!this.metadata.v1)
438
+ return this.type[1] || this.metadata.possibleLengths();
439
+ }
440
+ }]);
441
+ }();
442
+ function Ft(e, t) {
443
+ switch (t) {
444
+ case "FIXED_LINE":
445
+ return e[0];
446
+ case "MOBILE":
447
+ return e[1];
448
+ case "TOLL_FREE":
449
+ return e[2];
450
+ case "PREMIUM_RATE":
451
+ return e[3];
452
+ case "PERSONAL_NUMBER":
453
+ return e[4];
454
+ case "VOICEMAIL":
455
+ return e[5];
456
+ case "UAN":
457
+ return e[6];
458
+ case "PAGER":
459
+ return e[7];
460
+ case "VOIP":
461
+ return e[8];
462
+ case "SHARED_COST":
463
+ return e[9];
464
+ }
465
+ }
466
+ function de(e) {
467
+ if (!e)
468
+ throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
469
+ if (!S(e) || !S(e.countries))
470
+ 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(S(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + De(e) + ": " + e, "."));
471
+ }
472
+ var De = function(t) {
473
+ return I(t);
474
+ };
475
+ function z(e, t) {
476
+ if (t = new c(t), t.hasCountry(e))
477
+ return t.selectNumberingPlan(e).countryCallingCode();
478
+ throw new Error("Unknown country: ".concat(e));
479
+ }
480
+ function Me(e, t) {
481
+ return t.countries.hasOwnProperty(e);
482
+ }
483
+ function ie(e) {
484
+ var t = e.version;
485
+ typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? St(t, Ie) === -1 ? this.v2 = !0 : St(t, Ae) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
486
+ }
487
+ function q(e, t, r) {
488
+ return Le(e, t, void 0, r);
489
+ }
490
+ function Le(e, t, r, n) {
491
+ t && (n = new c(n.metadata), n.selectNumberingPlan(t));
492
+ var d = n.type(r), i = d && d.possibleLengths() || n.possibleLengths();
493
+ if (!i)
494
+ return "IS_POSSIBLE";
495
+ var a = e.length, o = i[0];
496
+ return o === a ? "IS_POSSIBLE" : o > a ? "TOO_SHORT" : i[i.length - 1] < a ? "TOO_LONG" : i.indexOf(a, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
497
+ }
498
+ function ke(e, t, r) {
499
+ if (t === void 0 && (t = {}), r = new c(r), t.v2) {
500
+ if (!e.countryCallingCode)
501
+ throw new Error("Invalid phone number object passed");
502
+ r.selectNumberingPlan(e.countryCallingCode);
503
+ } else {
504
+ if (!e.phone)
505
+ return !1;
506
+ if (e.country) {
507
+ if (!r.hasCountry(e.country))
508
+ throw new Error("Unknown country: ".concat(e.country));
509
+ r.selectNumberingPlan(e.country);
510
+ } else {
511
+ if (!e.countryCallingCode)
512
+ throw new Error("Invalid phone number object passed");
513
+ r.selectNumberingPlan(e.countryCallingCode);
514
+ }
515
+ }
516
+ if (r.possibleLengths())
517
+ return ae(e.phone || e.nationalNumber, e.country, r);
518
+ if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
519
+ return !0;
520
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
521
+ }
522
+ function ae(e, t, r) {
523
+ switch (q(e, t, r)) {
524
+ case "IS_POSSIBLE":
525
+ return !0;
526
+ // This library ignores "local-only" phone numbers (for simplicity).
527
+ // See the readme for more info on what are "local-only" phone numbers.
528
+ // case 'IS_POSSIBLE_LOCAL_ONLY':
529
+ // return !isInternational
530
+ default:
531
+ return !1;
532
+ }
533
+ }
534
+ function P(e, t) {
535
+ return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
536
+ }
537
+ function Ge(e, t) {
538
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
539
+ if (r) return (r = r.call(e)).next.bind(r);
540
+ if (Array.isArray(e) || (r = Be(e)) || t) {
541
+ r && (e = r);
542
+ var n = 0;
543
+ return function() {
544
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
545
+ };
546
+ }
547
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
548
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
549
+ }
550
+ function Be(e, t) {
551
+ if (e) {
552
+ if (typeof e == "string") return It(e, t);
553
+ var r = {}.toString.call(e).slice(8, -1);
554
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? It(e, t) : void 0;
555
+ }
556
+ }
557
+ function It(e, t) {
558
+ (t == null || t > e.length) && (t = e.length);
559
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
560
+ return n;
561
+ }
562
+ var je = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
563
+ function mt(e, t, r) {
564
+ if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
565
+ r = new c(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
566
+ var n = t.v2 ? e.nationalNumber : e.phone;
567
+ if (P(n, r.nationalNumberPattern())) {
568
+ if (nt(n, "FIXED_LINE", r))
569
+ return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || nt(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
570
+ for (var d = Ge(je), i; !(i = d()).done; ) {
571
+ var a = i.value;
572
+ if (nt(n, a, r))
573
+ return a;
574
+ }
575
+ }
576
+ }
577
+ }
578
+ function nt(e, t, r) {
579
+ return t = r.type(t), !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : P(e, t.pattern());
580
+ }
581
+ function Ue(e, t, r) {
582
+ if (t = t || {}, r = new c(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
583
+ return mt(e, t, r.metadata) !== void 0;
584
+ var n = t.v2 ? e.nationalNumber : e.phone;
585
+ return P(n, r.nationalNumberPattern());
586
+ }
587
+ function He(e, t, r) {
588
+ var n = new c(r), d = n.getCountryCodesForCallingCode(e);
589
+ return d ? d.filter(function(i) {
590
+ return Ve(t, i, r);
591
+ }) : [];
592
+ }
593
+ function Ve(e, t, r) {
594
+ var n = new c(r);
595
+ return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
596
+ }
597
+ var pt = 2, We = 17, Ke = 3, g = "0-90-9٠-٩۰-۹", Ye = "-‐-―−ー-", Xe = "//", Ze = "..", Je = "  ­​⁠ ", Qe = "()()[]\\[\\]", ze = "~⁓∼~", C = "".concat(Ye).concat(Xe).concat(Ze).concat(Je).concat(Qe).concat(ze), tt = "++", qe = new RegExp("([" + g + "])");
598
+ function oe(e, t, r, n) {
599
+ if (t) {
600
+ var d = new c(n);
601
+ d.selectNumberingPlan(t, r);
602
+ var i = new RegExp(d.IDDPrefix());
603
+ if (e.search(i) === 0) {
604
+ e = e.slice(e.match(i)[0].length);
605
+ var a = e.match(qe);
606
+ if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
607
+ return e;
608
+ }
609
+ }
610
+ }
611
+ function ut(e, t) {
612
+ if (e && t.numberingPlan.nationalPrefixForParsing()) {
613
+ var r = new RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), n = r.exec(e);
614
+ if (n) {
615
+ var d, i, a = n.length - 1, o = a > 0 && n[a];
616
+ if (t.nationalPrefixTransformRule() && o)
617
+ d = e.replace(r, t.nationalPrefixTransformRule()), a > 1 && (i = n[1]);
618
+ else {
619
+ var u = n[0];
620
+ d = e.slice(u.length), o && (i = n[1]);
621
+ }
622
+ var $;
623
+ if (o) {
624
+ var l = e.indexOf(n[1]), s = e.slice(0, l);
625
+ s === t.numberingPlan.nationalPrefix() && ($ = t.numberingPlan.nationalPrefix());
626
+ } else
627
+ $ = n[0];
628
+ return {
629
+ nationalNumber: d,
630
+ nationalPrefix: $,
631
+ carrierCode: i
632
+ };
633
+ }
634
+ }
635
+ return {
636
+ nationalNumber: e
637
+ };
638
+ }
639
+ function tr(e, t) {
640
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
641
+ if (r) return (r = r.call(e)).next.bind(r);
642
+ if (Array.isArray(e) || (r = er(e)) || t) {
643
+ r && (e = r);
644
+ var n = 0;
645
+ return function() {
646
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
647
+ };
648
+ }
649
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
650
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
651
+ }
652
+ function er(e, t) {
653
+ if (e) {
654
+ if (typeof e == "string") return At(e, t);
655
+ var r = {}.toString.call(e).slice(8, -1);
656
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? At(e, t) : void 0;
657
+ }
658
+ }
659
+ function At(e, t) {
660
+ (t == null || t > e.length) && (t = e.length);
661
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
662
+ return n;
663
+ }
664
+ function ue(e, t) {
665
+ var r = t.countries, n = t.metadata;
666
+ n = new c(n);
667
+ for (var d = tr(r), i; !(i = d()).done; ) {
668
+ var a = i.value;
669
+ if (n.selectNumberingPlan(a), n.leadingDigits()) {
670
+ if (e && e.search(n.leadingDigits()) === 0)
671
+ return a;
672
+ } else if (mt({
673
+ phone: e,
674
+ country: a
675
+ }, void 0, n.metadata))
676
+ return a;
677
+ }
678
+ }
679
+ function vt(e, t) {
680
+ var r = t.nationalNumber, n = t.metadata, d = n.getCountryCodesForCallingCode(e);
681
+ if (d)
682
+ return d.length === 1 ? d[0] : ue(r, {
683
+ countries: d,
684
+ metadata: n.metadata
685
+ });
686
+ }
687
+ function $t(e, t, r) {
688
+ var n = ut(e, r), d = n.carrierCode, i = n.nationalNumber;
689
+ if (i !== e) {
690
+ if (!rr(e, i, r))
691
+ return {
692
+ nationalNumber: e
693
+ };
694
+ if (r.numberingPlan.possibleLengths() && (t || (t = vt(r.numberingPlan.callingCode(), {
695
+ nationalNumber: i,
696
+ metadata: r
697
+ })), !nr(i, t, r)))
698
+ return {
699
+ nationalNumber: e
700
+ };
701
+ }
702
+ return {
703
+ nationalNumber: i,
704
+ carrierCode: d
705
+ };
706
+ }
707
+ function rr(e, t, r) {
708
+ return !(P(e, r.nationalNumberPattern()) && !P(t, r.nationalNumberPattern()));
709
+ }
710
+ function nr(e, t, r) {
711
+ switch (q(e, t, r)) {
712
+ case "TOO_SHORT":
713
+ case "INVALID_LENGTH":
714
+ return !1;
715
+ default:
716
+ return !0;
717
+ }
718
+ }
719
+ function $e(e, t, r, n, d) {
720
+ var i = t || r ? z(t || r, d) : n;
721
+ if (e.indexOf(i) === 0) {
722
+ d = new c(d), d.selectNumberingPlan(t || r, i);
723
+ var a = e.slice(i.length), o = $t(a, t, d), u = o.nationalNumber, $ = $t(e, t, d), l = $.nationalNumber;
724
+ if (!P(l, d.nationalNumberPattern()) && P(u, d.nationalNumberPattern()) || q(l, t, d) === "TOO_LONG")
725
+ return {
726
+ countryCallingCode: i,
727
+ number: a
728
+ };
729
+ }
730
+ return {
731
+ number: e
732
+ };
733
+ }
734
+ function bt(e, t, r, n, d) {
735
+ if (!e)
736
+ return {};
737
+ var i;
738
+ if (e[0] !== "+") {
739
+ var a = oe(e, t || r, n, d);
740
+ if (a && a !== e)
741
+ i = !0, e = "+" + a;
742
+ else {
743
+ if (t || r || n) {
744
+ var o = $e(e, t, r, n, d), u = o.countryCallingCode, $ = o.number;
745
+ if (u)
746
+ return {
747
+ countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
748
+ countryCallingCode: u,
749
+ number: $
750
+ };
751
+ }
752
+ return {
753
+ // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
754
+ // countryCallingCodeSource: 'UNSPECIFIED',
755
+ number: e
756
+ };
757
+ }
758
+ }
759
+ if (e[1] === "0")
760
+ return {};
761
+ d = new c(d);
762
+ for (var l = 2; l - 1 <= Ke && l <= e.length; ) {
763
+ var s = e.slice(1, l);
764
+ if (d.hasCallingCode(s))
765
+ return d.selectNumberingPlan(s), {
766
+ countryCallingCodeSource: i ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
767
+ countryCallingCode: s,
768
+ number: e.slice(l)
769
+ };
770
+ l++;
771
+ }
772
+ return {};
773
+ }
774
+ function le(e) {
775
+ return e.replace(new RegExp("[".concat(C, "]+"), "g"), " ").trim();
776
+ }
777
+ var se = /(\$\d)/;
778
+ function fe(e, t, r) {
779
+ var n = r.useInternationalFormat, d = r.withNationalPrefix;
780
+ r.carrierCode, r.metadata;
781
+ var i = e.replace(new RegExp(t.pattern()), n ? t.internationalFormat() : (
782
+ // This library doesn't use `domestic_carrier_code_formatting_rule`,
783
+ // because that one is only used when formatting phone numbers
784
+ // for dialing from a mobile phone, and this is not a dialing library.
785
+ // carrierCode && format.domesticCarrierCodeFormattingRule()
786
+ // // First, replace the $CC in the formatting rule with the desired carrier code.
787
+ // // Then, replace the $FG in the formatting rule with the first group
788
+ // // and the carrier code combined in the appropriate way.
789
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
790
+ // : (
791
+ // withNationalPrefix && format.nationalPrefixFormattingRule()
792
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
793
+ // : format.format()
794
+ // )
795
+ d && t.nationalPrefixFormattingRule() ? t.format().replace(se, t.nationalPrefixFormattingRule()) : t.format()
796
+ ));
797
+ return n ? le(i) : i;
798
+ }
799
+ var dr = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
800
+ function ir(e, t, r) {
801
+ var n = new c(r);
802
+ if (n.selectNumberingPlan(e, t), n.defaultIDDPrefix())
803
+ return n.defaultIDDPrefix();
804
+ if (dr.test(n.IDDPrefix()))
805
+ return n.IDDPrefix();
806
+ }
807
+ var ar = ";ext=", x = function(t) {
808
+ return "([".concat(g, "]{1,").concat(t, "})");
809
+ };
810
+ function ce(e) {
811
+ var t = "20", r = "15", n = "9", d = "6", i = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", $ = "(?:[xx##~~]|int|int)", l = "[- ]+", s = "[  \\t]*", f = "(?:,{2}|;)", h = ar + x(t), m = i + u + a + x(t) + o, p = i + $ + a + x(n) + o, y = l + x(d) + "#", V = s + f + a + x(r) + o, W = s + "(?:,)+" + a + x(n) + o;
812
+ return h + "|" + m + "|" + p + "|" + y + "|" + V + "|" + W;
813
+ }
814
+ var or = "[" + g + "]{" + pt + "}", ur = "[" + tt + "]{0,1}(?:[" + C + "]*[" + g + "]){3,}[" + C + g + "]*", $r = new RegExp("^[" + tt + "]{0,1}(?:[" + C + "]*[" + g + "]){1,2}$", "i"), lr = ur + // Phone number extensions
815
+ "(?:" + ce() + ")?", sr = new RegExp(
816
+ // Either a short two-digit-only phone number
817
+ "^" + or + "$|^" + lr + "$",
818
+ "i"
819
+ );
820
+ function fr(e) {
821
+ return e.length >= pt && sr.test(e);
822
+ }
823
+ function cr(e) {
824
+ return $r.test(e);
825
+ }
826
+ function hr(e) {
827
+ var t = e.number, r = e.ext;
828
+ if (!t)
829
+ return "";
830
+ if (t[0] !== "+")
831
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
832
+ return "tel:".concat(t).concat(r ? ";ext=" + r : "");
833
+ }
834
+ var _t = {
835
+ formatExtension: function(t, r, n) {
836
+ return "".concat(t).concat(n.ext()).concat(r);
837
+ }
838
+ };
839
+ function gr(e, t, r, n) {
840
+ if (r ? r = pr({}, _t, r) : r = _t, n = new c(n), e.country && e.country !== "001") {
841
+ if (!n.hasCountry(e.country))
842
+ throw new Error("Unknown country: ".concat(e.country));
843
+ n.selectNumberingPlan(e.country);
844
+ } else if (e.countryCallingCode)
845
+ n.selectNumberingPlan(e.countryCallingCode);
846
+ else return e.phone || "";
847
+ var d = n.countryCallingCode(), i = r.v2 ? e.nationalNumber : e.phone, a;
848
+ switch (t) {
849
+ case "NATIONAL":
850
+ return i ? (a = Y(i, e.carrierCode, "NATIONAL", n, r), dt(a, e.ext, n, r.formatExtension)) : "";
851
+ case "INTERNATIONAL":
852
+ return i ? (a = Y(i, null, "INTERNATIONAL", n, r), a = "+".concat(d, " ").concat(a), dt(a, e.ext, n, r.formatExtension)) : "+".concat(d);
853
+ case "E.164":
854
+ return "+".concat(d).concat(i);
855
+ case "RFC3966":
856
+ return hr({
857
+ number: "+".concat(d).concat(i),
858
+ ext: e.ext
859
+ });
860
+ // For reference, here's Google's IDD formatter:
861
+ // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
862
+ // Not saying that this IDD formatter replicates it 1:1, but it seems to work.
863
+ // Who would even need to format phone numbers in IDD format anyway?
864
+ case "IDD":
865
+ if (!r.fromCountry)
866
+ return;
867
+ var o = mr(i, e.carrierCode, d, r.fromCountry, n);
868
+ return o ? dt(o, e.ext, n, r.formatExtension) : void 0;
869
+ default:
870
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
871
+ }
872
+ }
873
+ function Y(e, t, r, n, d) {
874
+ var i = yr(n.formats(), e);
875
+ return i ? fe(e, i, {
876
+ useInternationalFormat: r === "INTERNATIONAL",
877
+ withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
878
+ carrierCode: t,
879
+ metadata: n
880
+ }) : e;
881
+ }
882
+ function yr(e, t) {
883
+ return vr(e, function(r) {
884
+ if (r.leadingDigitsPatterns().length > 0) {
885
+ var n = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
886
+ if (t.search(n) !== 0)
887
+ return !1;
888
+ }
889
+ return P(t, r.pattern());
890
+ });
891
+ }
892
+ function dt(e, t, r, n) {
893
+ return t ? n(e, t, r) : e;
894
+ }
895
+ function mr(e, t, r, n, d) {
896
+ var i = z(n, d.metadata);
897
+ if (i === r) {
898
+ var a = Y(e, t, "NATIONAL", d);
899
+ return r === "1" ? r + " " + a : a;
900
+ }
901
+ var o = ir(n, void 0, d.metadata);
902
+ if (o)
903
+ return "".concat(o, " ").concat(r, " ").concat(Y(e, null, "INTERNATIONAL", d));
904
+ }
905
+ function pr() {
906
+ for (var e = 1, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
907
+ r[n] = arguments[n];
908
+ for (; e < r.length; ) {
909
+ if (r[e])
910
+ for (var d in r[e])
911
+ r[0][d] = r[e][d];
912
+ e++;
913
+ }
914
+ return r[0];
915
+ }
916
+ function vr(e, t) {
917
+ for (var r = 0; r < e.length; ) {
918
+ if (t(e[r]))
919
+ return e[r];
920
+ r++;
921
+ }
922
+ }
923
+ function _(e) {
924
+ "@babel/helpers - typeof";
925
+ return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
926
+ return typeof t;
927
+ } : function(t) {
928
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
929
+ }, _(e);
930
+ }
931
+ function wt(e, t) {
932
+ var r = Object.keys(e);
933
+ if (Object.getOwnPropertySymbols) {
934
+ var n = Object.getOwnPropertySymbols(e);
935
+ t && (n = n.filter(function(d) {
936
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
937
+ })), r.push.apply(r, n);
938
+ }
939
+ return r;
940
+ }
941
+ function Ot(e) {
942
+ for (var t = 1; t < arguments.length; t++) {
943
+ var r = arguments[t] != null ? arguments[t] : {};
944
+ t % 2 ? wt(Object(r), !0).forEach(function(n) {
945
+ br(e, n, r[n]);
946
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : wt(Object(r)).forEach(function(n) {
947
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
948
+ });
949
+ }
950
+ return e;
951
+ }
952
+ function br(e, t, r) {
953
+ return (t = he(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
954
+ }
955
+ function Cr(e, t) {
956
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
957
+ }
958
+ function Nr(e, t) {
959
+ for (var r = 0; r < t.length; r++) {
960
+ var n = t[r];
961
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, he(n.key), n);
962
+ }
963
+ }
964
+ function Pr(e, t, r) {
965
+ return t && Nr(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
966
+ }
967
+ function he(e) {
968
+ var t = Er(e, "string");
969
+ return _(t) == "symbol" ? t : t + "";
970
+ }
971
+ function Er(e, t) {
972
+ if (_(e) != "object" || !e) return e;
973
+ var r = e[Symbol.toPrimitive];
974
+ if (r !== void 0) {
975
+ var n = r.call(e, t);
976
+ if (_(n) != "object") return n;
977
+ throw new TypeError("@@toPrimitive must return a primitive value.");
978
+ }
979
+ return String(e);
980
+ }
981
+ var Ct = /* @__PURE__ */ function() {
982
+ function e(t, r, n) {
983
+ if (Cr(this, e), !t)
984
+ throw new TypeError("First argument is required");
985
+ if (typeof t != "string")
986
+ throw new TypeError("First argument must be a string");
987
+ if (t[0] === "+" && !r)
988
+ throw new TypeError("`metadata` argument not passed");
989
+ if (S(r) && S(r.countries)) {
990
+ n = r;
991
+ var d = t;
992
+ if (!Tr.test(d))
993
+ throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
994
+ var i = bt(d, void 0, void 0, void 0, n), a = i.countryCallingCode, o = i.number;
995
+ if (r = o, t = a, !r)
996
+ throw new Error("Invalid `number` argument passed: too short");
997
+ }
998
+ if (!r)
999
+ throw new TypeError("`nationalNumber` argument is required");
1000
+ if (typeof r != "string")
1001
+ throw new TypeError("`nationalNumber` argument must be a string");
1002
+ de(n);
1003
+ var u = xr(t, n), $ = u.country, l = u.countryCallingCode;
1004
+ this.country = $, this.countryCallingCode = l, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1005
+ return n;
1006
+ };
1007
+ }
1008
+ return Pr(e, [{
1009
+ key: "setExt",
1010
+ value: function(r) {
1011
+ this.ext = r;
1012
+ }
1013
+ }, {
1014
+ key: "getPossibleCountries",
1015
+ value: function() {
1016
+ return this.country ? [this.country] : He(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1017
+ }
1018
+ }, {
1019
+ key: "isPossible",
1020
+ value: function() {
1021
+ return ke(this, {
1022
+ v2: !0
1023
+ }, this.getMetadata());
1024
+ }
1025
+ }, {
1026
+ key: "isValid",
1027
+ value: function() {
1028
+ return Ue(this, {
1029
+ v2: !0
1030
+ }, this.getMetadata());
1031
+ }
1032
+ }, {
1033
+ key: "isNonGeographic",
1034
+ value: function() {
1035
+ var r = new c(this.getMetadata());
1036
+ return r.isNonGeographicCallingCode(this.countryCallingCode);
1037
+ }
1038
+ }, {
1039
+ key: "isEqual",
1040
+ value: function(r) {
1041
+ return this.number === r.number && this.ext === r.ext;
1042
+ }
1043
+ // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1044
+ // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1045
+ // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1046
+ // so eventually I simply commented out this method from the `PhoneNumber` class
1047
+ // and just left the `validatePhoneNumberLength()` function, even though that one would require
1048
+ // and additional step to also validate the actual country / calling code of the phone number.
1049
+ // validateLength() {
1050
+ // const metadata = new Metadata(this.getMetadata())
1051
+ // metadata.selectNumberingPlan(this.countryCallingCode)
1052
+ // const result = checkNumberLength(this.nationalNumber, metadata)
1053
+ // if (result !== 'IS_POSSIBLE') {
1054
+ // return result
1055
+ // }
1056
+ // }
1057
+ }, {
1058
+ key: "getType",
1059
+ value: function() {
1060
+ return mt(this, {
1061
+ v2: !0
1062
+ }, this.getMetadata());
1063
+ }
1064
+ }, {
1065
+ key: "format",
1066
+ value: function(r, n) {
1067
+ return gr(this, r, n ? Ot(Ot({}, n), {}, {
1068
+ v2: !0
1069
+ }) : {
1070
+ v2: !0
1071
+ }, this.getMetadata());
1072
+ }
1073
+ }, {
1074
+ key: "formatNational",
1075
+ value: function(r) {
1076
+ return this.format("NATIONAL", r);
1077
+ }
1078
+ }, {
1079
+ key: "formatInternational",
1080
+ value: function(r) {
1081
+ return this.format("INTERNATIONAL", r);
1082
+ }
1083
+ }, {
1084
+ key: "getURI",
1085
+ value: function(r) {
1086
+ return this.format("RFC3966", r);
1087
+ }
1088
+ }]);
1089
+ }(), Sr = function(t) {
1090
+ return /^[A-Z]{2}$/.test(t);
1091
+ };
1092
+ function xr(e, t) {
1093
+ var r, n, d = new c(t);
1094
+ return Sr(e) ? (r = e, d.selectNumberingPlan(r), n = d.countryCallingCode()) : n = e, {
1095
+ country: r,
1096
+ countryCallingCode: n
1097
+ };
1098
+ }
1099
+ var Tr = /^\+\d+$/;
1100
+ function lt(e) {
1101
+ "@babel/helpers - typeof";
1102
+ return lt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1103
+ return typeof t;
1104
+ } : function(t) {
1105
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1106
+ }, lt(e);
1107
+ }
1108
+ function Fr(e, t, r) {
1109
+ return Object.defineProperty(e, "prototype", { writable: !1 }), e;
1110
+ }
1111
+ function Ir(e, t) {
1112
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1113
+ }
1114
+ function Ar(e, t, r) {
1115
+ return t = O(t), _r(e, Nt() ? Reflect.construct(t, r || [], O(e).constructor) : t.apply(e, r));
1116
+ }
1117
+ function _r(e, t) {
1118
+ if (t && (lt(t) == "object" || typeof t == "function")) return t;
1119
+ if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1120
+ return wr(e);
1121
+ }
1122
+ function wr(e) {
1123
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1124
+ return e;
1125
+ }
1126
+ function Or(e, t) {
1127
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
1128
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && w(e, t);
1129
+ }
1130
+ function st(e) {
1131
+ var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1132
+ return st = function(n) {
1133
+ if (n === null || !Dr(n)) return n;
1134
+ if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
1135
+ if (t !== void 0) {
1136
+ if (t.has(n)) return t.get(n);
1137
+ t.set(n, d);
1138
+ }
1139
+ function d() {
1140
+ return Rr(n, arguments, O(this).constructor);
1141
+ }
1142
+ return d.prototype = Object.create(n.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), w(d, n);
1143
+ }, st(e);
1144
+ }
1145
+ function Rr(e, t, r) {
1146
+ if (Nt()) return Reflect.construct.apply(null, arguments);
1147
+ var n = [null];
1148
+ n.push.apply(n, t);
1149
+ var d = new (e.bind.apply(e, n))();
1150
+ return r && w(d, r.prototype), d;
1151
+ }
1152
+ function Nt() {
1153
+ try {
1154
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1155
+ }));
1156
+ } catch {
1157
+ }
1158
+ return (Nt = function() {
1159
+ return !!e;
1160
+ })();
1161
+ }
1162
+ function Dr(e) {
1163
+ try {
1164
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
1165
+ } catch {
1166
+ return typeof e == "function";
1167
+ }
1168
+ }
1169
+ function w(e, t) {
1170
+ return w = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
1171
+ return r.__proto__ = n, r;
1172
+ }, w(e, t);
1173
+ }
1174
+ function O(e) {
1175
+ return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1176
+ return t.__proto__ || Object.getPrototypeOf(t);
1177
+ }, O(e);
1178
+ }
1179
+ var N = /* @__PURE__ */ function(e) {
1180
+ function t(r) {
1181
+ var n;
1182
+ return Ir(this, t), n = Ar(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
1183
+ }
1184
+ return Or(t, e), Fr(t);
1185
+ }(/* @__PURE__ */ st(Error)), Rt = new RegExp("(?:" + ce() + ")$", "i");
1186
+ function Mr(e) {
1187
+ var t = e.search(Rt);
1188
+ if (t < 0)
1189
+ return {};
1190
+ for (var r = e.slice(0, t), n = e.match(Rt), d = 1; d < n.length; ) {
1191
+ if (n[d])
1192
+ return {
1193
+ number: r,
1194
+ ext: n[d]
1195
+ };
1196
+ d++;
1197
+ }
1198
+ }
1199
+ function Lr(e, t) {
1200
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1201
+ if (r) return (r = r.call(e)).next.bind(r);
1202
+ if (Array.isArray(e) || (r = kr(e)) || t) {
1203
+ r && (e = r);
1204
+ var n = 0;
1205
+ return function() {
1206
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1207
+ };
1208
+ }
1209
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1210
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1211
+ }
1212
+ function kr(e, t) {
1213
+ if (e) {
1214
+ if (typeof e == "string") return Dt(e, t);
1215
+ var r = {}.toString.call(e).slice(8, -1);
1216
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Dt(e, t) : void 0;
1217
+ }
1218
+ }
1219
+ function Dt(e, t) {
1220
+ (t == null || t > e.length) && (t = e.length);
1221
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1222
+ return n;
1223
+ }
1224
+ var Gr = {
1225
+ 0: "0",
1226
+ 1: "1",
1227
+ 2: "2",
1228
+ 3: "3",
1229
+ 4: "4",
1230
+ 5: "5",
1231
+ 6: "6",
1232
+ 7: "7",
1233
+ 8: "8",
1234
+ 9: "9",
1235
+ "0": "0",
1236
+ // Fullwidth digit 0
1237
+ "1": "1",
1238
+ // Fullwidth digit 1
1239
+ "2": "2",
1240
+ // Fullwidth digit 2
1241
+ "3": "3",
1242
+ // Fullwidth digit 3
1243
+ "4": "4",
1244
+ // Fullwidth digit 4
1245
+ "5": "5",
1246
+ // Fullwidth digit 5
1247
+ "6": "6",
1248
+ // Fullwidth digit 6
1249
+ "7": "7",
1250
+ // Fullwidth digit 7
1251
+ "8": "8",
1252
+ // Fullwidth digit 8
1253
+ "9": "9",
1254
+ // Fullwidth digit 9
1255
+ "٠": "0",
1256
+ // Arabic-indic digit 0
1257
+ "١": "1",
1258
+ // Arabic-indic digit 1
1259
+ "٢": "2",
1260
+ // Arabic-indic digit 2
1261
+ "٣": "3",
1262
+ // Arabic-indic digit 3
1263
+ "٤": "4",
1264
+ // Arabic-indic digit 4
1265
+ "٥": "5",
1266
+ // Arabic-indic digit 5
1267
+ "٦": "6",
1268
+ // Arabic-indic digit 6
1269
+ "٧": "7",
1270
+ // Arabic-indic digit 7
1271
+ "٨": "8",
1272
+ // Arabic-indic digit 8
1273
+ "٩": "9",
1274
+ // Arabic-indic digit 9
1275
+ "۰": "0",
1276
+ // Eastern-Arabic digit 0
1277
+ "۱": "1",
1278
+ // Eastern-Arabic digit 1
1279
+ "۲": "2",
1280
+ // Eastern-Arabic digit 2
1281
+ "۳": "3",
1282
+ // Eastern-Arabic digit 3
1283
+ "۴": "4",
1284
+ // Eastern-Arabic digit 4
1285
+ "۵": "5",
1286
+ // Eastern-Arabic digit 5
1287
+ "۶": "6",
1288
+ // Eastern-Arabic digit 6
1289
+ "۷": "7",
1290
+ // Eastern-Arabic digit 7
1291
+ "۸": "8",
1292
+ // Eastern-Arabic digit 8
1293
+ "۹": "9"
1294
+ // Eastern-Arabic digit 9
1295
+ };
1296
+ function ge(e) {
1297
+ return Gr[e];
1298
+ }
1299
+ function X(e) {
1300
+ for (var t = "", r = Lr(e.split("")), n; !(n = r()).done; ) {
1301
+ var d = n.value, i = ge(d);
1302
+ i && (t += i);
1303
+ }
1304
+ return t;
1305
+ }
1306
+ function Br(e, t) {
1307
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1308
+ if (r) return (r = r.call(e)).next.bind(r);
1309
+ if (Array.isArray(e) || (r = jr(e)) || t) {
1310
+ r && (e = r);
1311
+ var n = 0;
1312
+ return function() {
1313
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1314
+ };
1315
+ }
1316
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1317
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1318
+ }
1319
+ function jr(e, t) {
1320
+ if (e) {
1321
+ if (typeof e == "string") return Mt(e, t);
1322
+ var r = {}.toString.call(e).slice(8, -1);
1323
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Mt(e, t) : void 0;
1324
+ }
1325
+ }
1326
+ function Mt(e, t) {
1327
+ (t == null || t > e.length) && (t = e.length);
1328
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1329
+ return n;
1330
+ }
1331
+ function Lt(e) {
1332
+ for (var t = "", r = Br(e.split("")), n; !(n = r()).done; ) {
1333
+ var d = n.value;
1334
+ t += Ur(d, t) || "";
1335
+ }
1336
+ return t;
1337
+ }
1338
+ function Ur(e, t, r) {
1339
+ return e === "+" ? t ? void 0 : "+" : ge(e);
1340
+ }
1341
+ var ye = "+", Hr = "[\\-\\.\\(\\)]?", kt = "([" + g + "]|" + Hr + ")", Vr = "^\\" + ye + kt + "*[" + g + "]" + kt + "*$", Wr = new RegExp(Vr, "g"), ft = g, Kr = "[" + ft + "]+((\\-)*[" + ft + "])*", Yr = "a-zA-Z", Xr = "[" + Yr + "]+((\\-)*[" + ft + "])*", Zr = "^(" + Kr + "\\.)*" + Xr + "\\.?$", Jr = new RegExp(Zr, "g"), Gt = "tel:", ct = ";phone-context=", Qr = ";isub=";
1342
+ function zr(e) {
1343
+ var t = e.indexOf(ct);
1344
+ if (t < 0)
1345
+ return null;
1346
+ var r = t + ct.length;
1347
+ if (r >= e.length)
1348
+ return "";
1349
+ var n = e.indexOf(";", r);
1350
+ return n >= 0 ? e.substring(r, n) : e.substring(r);
1351
+ }
1352
+ function qr(e) {
1353
+ return e === null ? !0 : e.length === 0 ? !1 : Wr.test(e) || Jr.test(e);
1354
+ }
1355
+ function tn(e, t) {
1356
+ var r = t.extractFormattedPhoneNumber, n = zr(e);
1357
+ if (!qr(n))
1358
+ throw new N("NOT_A_NUMBER");
1359
+ var d;
1360
+ if (n === null)
1361
+ d = r(e) || "";
1362
+ else {
1363
+ d = "", n.charAt(0) === ye && (d += n);
1364
+ var i = e.indexOf(Gt), a;
1365
+ i >= 0 ? a = i + Gt.length : a = 0;
1366
+ var o = e.indexOf(ct);
1367
+ d += e.substring(a, o);
1368
+ }
1369
+ var u = d.indexOf(Qr);
1370
+ if (u > 0 && (d = d.substring(0, u)), d !== "")
1371
+ return d;
1372
+ }
1373
+ var en = 250, rn = new RegExp("[" + tt + g + "]"), nn = new RegExp("[^" + g + "#]+$");
1374
+ function dn(e, t, r) {
1375
+ if (t = t || {}, r = new c(r), t.defaultCountry && !r.hasCountry(t.defaultCountry))
1376
+ throw t.v2 ? new N("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
1377
+ var n = on(e, t.v2, t.extract), d = n.number, i = n.ext, a = n.error;
1378
+ if (!d) {
1379
+ if (t.v2)
1380
+ throw a === "TOO_SHORT" ? new N("TOO_SHORT") : new N("NOT_A_NUMBER");
1381
+ return {};
1382
+ }
1383
+ var o = $n(d, t.defaultCountry, t.defaultCallingCode, r), u = o.country, $ = o.nationalNumber, l = o.countryCallingCode, s = o.countryCallingCodeSource, f = o.carrierCode;
1384
+ if (!r.hasSelectedNumberingPlan()) {
1385
+ if (t.v2)
1386
+ throw new N("INVALID_COUNTRY");
1387
+ return {};
1388
+ }
1389
+ if (!$ || $.length < pt) {
1390
+ if (t.v2)
1391
+ throw new N("TOO_SHORT");
1392
+ return {};
1393
+ }
1394
+ if ($.length > We) {
1395
+ if (t.v2)
1396
+ throw new N("TOO_LONG");
1397
+ return {};
1398
+ }
1399
+ if (t.v2) {
1400
+ var h = new Ct(l, $, r.metadata);
1401
+ return u && (h.country = u), f && (h.carrierCode = f), i && (h.ext = i), h.__countryCallingCodeSource = s, h;
1402
+ }
1403
+ var m = (t.extended ? r.hasSelectedNumberingPlan() : u) ? P($, r.nationalNumberPattern()) : !1;
1404
+ return t.extended ? {
1405
+ country: u,
1406
+ countryCallingCode: l,
1407
+ carrierCode: f,
1408
+ valid: m,
1409
+ possible: m ? !0 : !!(t.extended === !0 && r.possibleLengths() && ae($, u, r)),
1410
+ phone: $,
1411
+ ext: i
1412
+ } : m ? un(u, $, i) : {};
1413
+ }
1414
+ function an(e, t, r) {
1415
+ if (e) {
1416
+ if (e.length > en) {
1417
+ if (r)
1418
+ throw new N("TOO_LONG");
1419
+ return;
1420
+ }
1421
+ if (t === !1)
1422
+ return e;
1423
+ var n = e.search(rn);
1424
+ if (!(n < 0))
1425
+ return e.slice(n).replace(nn, "");
1426
+ }
1427
+ }
1428
+ function on(e, t, r) {
1429
+ var n = tn(e, {
1430
+ extractFormattedPhoneNumber: function(a) {
1431
+ return an(a, r, t);
1432
+ }
1433
+ });
1434
+ if (!n)
1435
+ return {};
1436
+ if (!fr(n))
1437
+ return cr(n) ? {
1438
+ error: "TOO_SHORT"
1439
+ } : {};
1440
+ var d = Mr(n);
1441
+ return d.ext ? d : {
1442
+ number: n
1443
+ };
1444
+ }
1445
+ function un(e, t, r) {
1446
+ var n = {
1447
+ country: e,
1448
+ phone: t
1449
+ };
1450
+ return r && (n.ext = r), n;
1451
+ }
1452
+ function $n(e, t, r, n) {
1453
+ var d = bt(Lt(e), void 0, t, r, n.metadata), i = d.countryCallingCodeSource, a = d.countryCallingCode, o = d.number, u;
1454
+ if (a)
1455
+ n.selectNumberingPlan(a);
1456
+ else if (o && (t || r))
1457
+ n.selectNumberingPlan(t, r), t && (u = t), a = r || z(t, n.metadata);
1458
+ else return {};
1459
+ if (!o)
1460
+ return {
1461
+ countryCallingCodeSource: i,
1462
+ countryCallingCode: a
1463
+ };
1464
+ var $ = $t(Lt(o), u, n), l = $.nationalNumber, s = $.carrierCode, f = vt(a, {
1465
+ nationalNumber: l,
1466
+ metadata: n
1467
+ });
1468
+ return f && (u = f, f === "001" || n.selectNumberingPlan(u)), {
1469
+ country: u,
1470
+ countryCallingCode: a,
1471
+ countryCallingCodeSource: i,
1472
+ nationalNumber: l,
1473
+ carrierCode: s
1474
+ };
1475
+ }
1476
+ function R(e) {
1477
+ "@babel/helpers - typeof";
1478
+ return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1479
+ return typeof t;
1480
+ } : function(t) {
1481
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1482
+ }, R(e);
1483
+ }
1484
+ function Bt(e, t) {
1485
+ var r = Object.keys(e);
1486
+ if (Object.getOwnPropertySymbols) {
1487
+ var n = Object.getOwnPropertySymbols(e);
1488
+ t && (n = n.filter(function(d) {
1489
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1490
+ })), r.push.apply(r, n);
1491
+ }
1492
+ return r;
1493
+ }
1494
+ function jt(e) {
1495
+ for (var t = 1; t < arguments.length; t++) {
1496
+ var r = arguments[t] != null ? arguments[t] : {};
1497
+ t % 2 ? Bt(Object(r), !0).forEach(function(n) {
1498
+ ln(e, n, r[n]);
1499
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Bt(Object(r)).forEach(function(n) {
1500
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1501
+ });
1502
+ }
1503
+ return e;
1504
+ }
1505
+ function ln(e, t, r) {
1506
+ return (t = sn(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1507
+ }
1508
+ function sn(e) {
1509
+ var t = fn(e, "string");
1510
+ return R(t) == "symbol" ? t : t + "";
1511
+ }
1512
+ function fn(e, t) {
1513
+ if (R(e) != "object" || !e) return e;
1514
+ var r = e[Symbol.toPrimitive];
1515
+ if (r !== void 0) {
1516
+ var n = r.call(e, t);
1517
+ if (R(n) != "object") return n;
1518
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1519
+ }
1520
+ return (t === "string" ? String : Number)(e);
1521
+ }
1522
+ function cn(e, t, r) {
1523
+ return dn(e, jt(jt({}, t), {}, {
1524
+ v2: !0
1525
+ }), r);
1526
+ }
1527
+ function D(e) {
1528
+ "@babel/helpers - typeof";
1529
+ return D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1530
+ return typeof t;
1531
+ } : function(t) {
1532
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1533
+ }, D(e);
1534
+ }
1535
+ function Ut(e, t) {
1536
+ var r = Object.keys(e);
1537
+ if (Object.getOwnPropertySymbols) {
1538
+ var n = Object.getOwnPropertySymbols(e);
1539
+ t && (n = n.filter(function(d) {
1540
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1541
+ })), r.push.apply(r, n);
1542
+ }
1543
+ return r;
1544
+ }
1545
+ function hn(e) {
1546
+ for (var t = 1; t < arguments.length; t++) {
1547
+ var r = arguments[t] != null ? arguments[t] : {};
1548
+ t % 2 ? Ut(Object(r), !0).forEach(function(n) {
1549
+ gn(e, n, r[n]);
1550
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ut(Object(r)).forEach(function(n) {
1551
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1552
+ });
1553
+ }
1554
+ return e;
1555
+ }
1556
+ function gn(e, t, r) {
1557
+ return (t = yn(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1558
+ }
1559
+ function yn(e) {
1560
+ var t = mn(e, "string");
1561
+ return D(t) == "symbol" ? t : t + "";
1562
+ }
1563
+ function mn(e, t) {
1564
+ if (D(e) != "object" || !e) return e;
1565
+ var r = e[Symbol.toPrimitive];
1566
+ if (r !== void 0) {
1567
+ var n = r.call(e, t);
1568
+ if (D(n) != "object") return n;
1569
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1570
+ }
1571
+ return (t === "string" ? String : Number)(e);
1572
+ }
1573
+ function pn(e, t) {
1574
+ return Nn(e) || Cn(e, t) || bn(e, t) || vn();
1575
+ }
1576
+ function vn() {
1577
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1578
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1579
+ }
1580
+ function bn(e, t) {
1581
+ if (e) {
1582
+ if (typeof e == "string") return Ht(e, t);
1583
+ var r = {}.toString.call(e).slice(8, -1);
1584
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ht(e, t) : void 0;
1585
+ }
1586
+ }
1587
+ function Ht(e, t) {
1588
+ (t == null || t > e.length) && (t = e.length);
1589
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1590
+ return n;
1591
+ }
1592
+ function Cn(e, t) {
1593
+ var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1594
+ if (r != null) {
1595
+ var n, d, i, a, o = [], u = !0, $ = !1;
1596
+ try {
1597
+ if (i = (r = r.call(e)).next, t !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
1598
+ } catch (l) {
1599
+ $ = !0, d = l;
1600
+ } finally {
1601
+ try {
1602
+ if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
1603
+ } finally {
1604
+ if ($) throw d;
1605
+ }
1606
+ }
1607
+ return o;
1608
+ }
1609
+ }
1610
+ function Nn(e) {
1611
+ if (Array.isArray(e)) return e;
1612
+ }
1613
+ function Pn(e) {
1614
+ var t = Array.prototype.slice.call(e), r = pn(t, 4), n = r[0], d = r[1], i = r[2], a = r[3], o, u, $;
1615
+ if (typeof n == "string")
1616
+ o = n;
1617
+ else throw new TypeError("A text for parsing must be a string.");
1618
+ if (!d || typeof d == "string")
1619
+ a ? (u = i, $ = a) : (u = void 0, $ = i), d && (u = hn({
1620
+ defaultCountry: d
1621
+ }, u));
1622
+ else if (S(d))
1623
+ i ? (u = d, $ = i) : $ = d;
1624
+ else throw new Error("Invalid second argument: ".concat(d));
1625
+ return {
1626
+ text: o,
1627
+ options: u,
1628
+ metadata: $
1629
+ };
1630
+ }
1631
+ function M(e) {
1632
+ "@babel/helpers - typeof";
1633
+ return M = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1634
+ return typeof t;
1635
+ } : function(t) {
1636
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1637
+ }, M(e);
1638
+ }
1639
+ function Vt(e, t) {
1640
+ var r = Object.keys(e);
1641
+ if (Object.getOwnPropertySymbols) {
1642
+ var n = Object.getOwnPropertySymbols(e);
1643
+ t && (n = n.filter(function(d) {
1644
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1645
+ })), r.push.apply(r, n);
1646
+ }
1647
+ return r;
1648
+ }
1649
+ function Wt(e) {
1650
+ for (var t = 1; t < arguments.length; t++) {
1651
+ var r = arguments[t] != null ? arguments[t] : {};
1652
+ t % 2 ? Vt(Object(r), !0).forEach(function(n) {
1653
+ En(e, n, r[n]);
1654
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Vt(Object(r)).forEach(function(n) {
1655
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1656
+ });
1657
+ }
1658
+ return e;
1659
+ }
1660
+ function En(e, t, r) {
1661
+ return (t = Sn(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1662
+ }
1663
+ function Sn(e) {
1664
+ var t = xn(e, "string");
1665
+ return M(t) == "symbol" ? t : t + "";
1666
+ }
1667
+ function xn(e, t) {
1668
+ if (M(e) != "object" || !e) return e;
1669
+ var r = e[Symbol.toPrimitive];
1670
+ if (r !== void 0) {
1671
+ var n = r.call(e, t);
1672
+ if (M(n) != "object") return n;
1673
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1674
+ }
1675
+ return (t === "string" ? String : Number)(e);
1676
+ }
1677
+ function Tn(e, t, r) {
1678
+ t && t.defaultCountry && !Me(t.defaultCountry, r) && (t = Wt(Wt({}, t), {}, {
1679
+ defaultCountry: void 0
1680
+ }));
1681
+ try {
1682
+ return cn(e, t, r);
1683
+ } catch (n) {
1684
+ if (!(n instanceof N)) throw n;
1685
+ }
1686
+ }
1687
+ function Fn() {
1688
+ var e = Pn(arguments), t = e.text, r = e.options, n = e.metadata;
1689
+ return Tn(t, r, n);
1690
+ }
1691
+ function L(e) {
1692
+ "@babel/helpers - typeof";
1693
+ return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1694
+ return typeof t;
1695
+ } : function(t) {
1696
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1697
+ }, L(e);
1698
+ }
1699
+ function In(e, t) {
1700
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1701
+ }
1702
+ function An(e, t) {
1703
+ for (var r = 0; r < t.length; r++) {
1704
+ var n = t[r];
1705
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, wn(n.key), n);
1706
+ }
1707
+ }
1708
+ function _n(e, t, r) {
1709
+ return t && An(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1710
+ }
1711
+ function wn(e) {
1712
+ var t = On(e, "string");
1713
+ return L(t) == "symbol" ? t : t + "";
1714
+ }
1715
+ function On(e, t) {
1716
+ if (L(e) != "object" || !e) return e;
1717
+ var r = e[Symbol.toPrimitive];
1718
+ if (r !== void 0) {
1719
+ var n = r.call(e, t);
1720
+ if (L(n) != "object") return n;
1721
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1722
+ }
1723
+ return String(e);
1724
+ }
1725
+ var Rn = /* @__PURE__ */ function() {
1726
+ function e(t) {
1727
+ var r = t.onCountryChange, n = t.onCallingCodeChange;
1728
+ In(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
1729
+ }
1730
+ return _n(e, [{
1731
+ key: "reset",
1732
+ value: function(r) {
1733
+ var n = r.country, d = r.callingCode;
1734
+ this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(n, d);
1735
+ }
1736
+ }, {
1737
+ key: "resetNationalSignificantNumber",
1738
+ value: function() {
1739
+ this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberIsModified = !1, this.nationalPrefix = void 0, this.carrierCode = void 0, this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
1740
+ }
1741
+ }, {
1742
+ key: "update",
1743
+ value: function(r) {
1744
+ for (var n = 0, d = Object.keys(r); n < d.length; n++) {
1745
+ var i = d[n];
1746
+ this[i] = r[i];
1747
+ }
1748
+ }
1749
+ }, {
1750
+ key: "initCountryAndCallingCode",
1751
+ value: function(r, n) {
1752
+ this.setCountry(r), this.setCallingCode(n);
1753
+ }
1754
+ }, {
1755
+ key: "setCountry",
1756
+ value: function(r) {
1757
+ this.country = r, this.onCountryChange(r);
1758
+ }
1759
+ }, {
1760
+ key: "setCallingCode",
1761
+ value: function(r) {
1762
+ this.callingCode = r, this.onCallingCodeChange(r, this.country);
1763
+ }
1764
+ }, {
1765
+ key: "startInternationalNumber",
1766
+ value: function(r, n) {
1767
+ this.international = !0, this.initCountryAndCallingCode(r, n);
1768
+ }
1769
+ }, {
1770
+ key: "appendDigits",
1771
+ value: function(r) {
1772
+ this.digits += r;
1773
+ }
1774
+ }, {
1775
+ key: "appendNationalSignificantNumberDigits",
1776
+ value: function(r) {
1777
+ this.nationalSignificantNumber += r;
1778
+ }
1779
+ /**
1780
+ * Returns the part of `this.digits` that corresponds to the national number.
1781
+ * Basically, all digits that have been input by the user, except for the
1782
+ * international prefix and the country calling code part
1783
+ * (if the number is an international one).
1784
+ * @return {string}
1785
+ */
1786
+ }, {
1787
+ key: "getNationalDigits",
1788
+ value: function() {
1789
+ return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
1790
+ }
1791
+ }, {
1792
+ key: "getDigitsWithoutInternationalPrefix",
1793
+ value: function() {
1794
+ return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
1795
+ }
1796
+ }]);
1797
+ }();
1798
+ function Dn(e, t) {
1799
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1800
+ if (r) return (r = r.call(e)).next.bind(r);
1801
+ if (Array.isArray(e) || (r = Mn(e)) || t) {
1802
+ r && (e = r);
1803
+ var n = 0;
1804
+ return function() {
1805
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1806
+ };
1807
+ }
1808
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1809
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1810
+ }
1811
+ function Mn(e, t) {
1812
+ if (e) {
1813
+ if (typeof e == "string") return Kt(e, t);
1814
+ var r = {}.toString.call(e).slice(8, -1);
1815
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Kt(e, t) : void 0;
1816
+ }
1817
+ }
1818
+ function Kt(e, t) {
1819
+ (t == null || t > e.length) && (t = e.length);
1820
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1821
+ return n;
1822
+ }
1823
+ var b = "x", it = new RegExp(b);
1824
+ function K(e, t) {
1825
+ if (t < 1)
1826
+ return "";
1827
+ for (var r = ""; t > 1; )
1828
+ t & 1 && (r += e), t >>= 1, e += e;
1829
+ return r + e;
1830
+ }
1831
+ function Yt(e, t) {
1832
+ return e[t] === ")" && t++, Ln(e.slice(0, t));
1833
+ }
1834
+ function Ln(e) {
1835
+ for (var t = [], r = 0; r < e.length; )
1836
+ e[r] === "(" ? t.push(r) : e[r] === ")" && t.pop(), r++;
1837
+ var n = 0, d = "";
1838
+ t.push(e.length);
1839
+ for (var i = 0, a = t; i < a.length; i++) {
1840
+ var o = a[i];
1841
+ d += e.slice(n, o), n = o + 1;
1842
+ }
1843
+ return d;
1844
+ }
1845
+ function kn(e, t, r) {
1846
+ for (var n = Dn(r.split("")), d; !(d = n()).done; ) {
1847
+ var i = d.value;
1848
+ if (e.slice(t + 1).search(it) < 0)
1849
+ return;
1850
+ t = e.search(it), e = e.replace(it, i);
1851
+ }
1852
+ return [e, t];
1853
+ }
1854
+ function Gn(e, t, r) {
1855
+ var n = r.metadata, d = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(t.pattern(), ")$"));
1856
+ if (a.test(e.nationalSignificantNumber))
1857
+ return jn(e, t, {
1858
+ metadata: n,
1859
+ shouldTryNationalPrefixFormattingRule: d,
1860
+ getSeparatorAfterNationalPrefix: i
1861
+ });
1862
+ }
1863
+ function Bn(e, t, r) {
1864
+ return q(e, t, r) === "IS_POSSIBLE";
1865
+ }
1866
+ function jn(e, t, r) {
1867
+ var n = r.metadata, d = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix;
1868
+ if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, d(t)) {
1869
+ var a = Xt(e, t, {
1870
+ useNationalPrefixFormattingRule: !0,
1871
+ getSeparatorAfterNationalPrefix: i,
1872
+ metadata: n
1873
+ });
1874
+ if (a)
1875
+ return a;
1876
+ }
1877
+ return Xt(e, t, {
1878
+ useNationalPrefixFormattingRule: !1,
1879
+ getSeparatorAfterNationalPrefix: i,
1880
+ metadata: n
1881
+ });
1882
+ }
1883
+ function Xt(e, t, r) {
1884
+ var n = r.metadata, d = r.useNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix, a = fe(e.nationalSignificantNumber, t, {
1885
+ carrierCode: e.carrierCode,
1886
+ useInternationalFormat: e.international,
1887
+ withNationalPrefix: d,
1888
+ metadata: n
1889
+ });
1890
+ if (d || (e.nationalPrefix ? a = e.nationalPrefix + i(t) + a : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (a = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + a)), Un(a, e))
1891
+ return a;
1892
+ }
1893
+ function Un(e, t) {
1894
+ return X(e) === t.getNationalDigits();
1895
+ }
1896
+ function k(e) {
1897
+ "@babel/helpers - typeof";
1898
+ return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1899
+ return typeof t;
1900
+ } : function(t) {
1901
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1902
+ }, k(e);
1903
+ }
1904
+ function Hn(e, t) {
1905
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1906
+ }
1907
+ function Vn(e, t) {
1908
+ for (var r = 0; r < t.length; r++) {
1909
+ var n = t[r];
1910
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Kn(n.key), n);
1911
+ }
1912
+ }
1913
+ function Wn(e, t, r) {
1914
+ return t && Vn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1915
+ }
1916
+ function Kn(e) {
1917
+ var t = Yn(e, "string");
1918
+ return k(t) == "symbol" ? t : t + "";
1919
+ }
1920
+ function Yn(e, t) {
1921
+ if (k(e) != "object" || !e) return e;
1922
+ var r = e[Symbol.toPrimitive];
1923
+ if (r !== void 0) {
1924
+ var n = r.call(e, t);
1925
+ if (k(n) != "object") return n;
1926
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1927
+ }
1928
+ return String(e);
1929
+ }
1930
+ var Xn = /* @__PURE__ */ function() {
1931
+ function e() {
1932
+ Hn(this, e);
1933
+ }
1934
+ return Wn(e, [{
1935
+ key: "parse",
1936
+ value: function(r) {
1937
+ if (this.context = [{
1938
+ or: !0,
1939
+ instructions: []
1940
+ }], this.parsePattern(r), this.context.length !== 1)
1941
+ throw new Error("Non-finalized contexts left when pattern parse ended");
1942
+ var n = this.context[0], d = n.branches, i = n.instructions;
1943
+ if (d)
1944
+ return {
1945
+ op: "|",
1946
+ args: d.concat([at(i)])
1947
+ };
1948
+ if (i.length === 0)
1949
+ throw new Error("Pattern is required");
1950
+ return i.length === 1 ? i[0] : i;
1951
+ }
1952
+ }, {
1953
+ key: "startContext",
1954
+ value: function(r) {
1955
+ this.context.push(r);
1956
+ }
1957
+ }, {
1958
+ key: "endContext",
1959
+ value: function() {
1960
+ this.context.pop();
1961
+ }
1962
+ }, {
1963
+ key: "getContext",
1964
+ value: function() {
1965
+ return this.context[this.context.length - 1];
1966
+ }
1967
+ }, {
1968
+ key: "parsePattern",
1969
+ value: function(r) {
1970
+ if (!r)
1971
+ throw new Error("Pattern is required");
1972
+ var n = r.match(Qn);
1973
+ if (!n) {
1974
+ if (Jn.test(r))
1975
+ throw new Error("Illegal characters found in a pattern: ".concat(r));
1976
+ this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
1977
+ return;
1978
+ }
1979
+ var d = n[1], i = r.slice(0, n.index), a = r.slice(n.index + d.length);
1980
+ switch (d) {
1981
+ case "(?:":
1982
+ i && this.parsePattern(i), this.startContext({
1983
+ or: !0,
1984
+ instructions: [],
1985
+ branches: []
1986
+ });
1987
+ break;
1988
+ case ")":
1989
+ if (!this.getContext().or)
1990
+ throw new Error('")" operator must be preceded by "(?:" operator');
1991
+ if (i && this.parsePattern(i), this.getContext().instructions.length === 0)
1992
+ throw new Error('No instructions found after "|" operator in an "or" group');
1993
+ var o = this.getContext(), u = o.branches;
1994
+ u.push(at(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
1995
+ op: "|",
1996
+ args: u
1997
+ });
1998
+ break;
1999
+ case "|":
2000
+ if (!this.getContext().or)
2001
+ throw new Error('"|" operator can only be used inside "or" groups');
2002
+ if (i && this.parsePattern(i), !this.getContext().branches)
2003
+ if (this.context.length === 1)
2004
+ this.getContext().branches = [];
2005
+ else
2006
+ throw new Error('"branches" not found in an "or" group context');
2007
+ this.getContext().branches.push(at(this.getContext().instructions)), this.getContext().instructions = [];
2008
+ break;
2009
+ case "[":
2010
+ i && this.parsePattern(i), this.startContext({
2011
+ oneOfSet: !0
2012
+ });
2013
+ break;
2014
+ case "]":
2015
+ if (!this.getContext().oneOfSet)
2016
+ throw new Error('"]" operator must be preceded by "[" operator');
2017
+ this.endContext(), this.getContext().instructions.push({
2018
+ op: "[]",
2019
+ args: Zn(i)
2020
+ });
2021
+ break;
2022
+ /* istanbul ignore next */
2023
+ default:
2024
+ throw new Error("Unknown operator: ".concat(d));
2025
+ }
2026
+ a && this.parsePattern(a);
2027
+ }
2028
+ }]);
2029
+ }();
2030
+ function Zn(e) {
2031
+ for (var t = [], r = 0; r < e.length; ) {
2032
+ if (e[r] === "-") {
2033
+ if (r === 0 || r === e.length - 1)
2034
+ throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
2035
+ for (var n = e[r - 1].charCodeAt(0) + 1, d = e[r + 1].charCodeAt(0) - 1, i = n; i <= d; )
2036
+ t.push(String.fromCharCode(i)), i++;
2037
+ } else
2038
+ t.push(e[r]);
2039
+ r++;
2040
+ }
2041
+ return t;
2042
+ }
2043
+ var Jn = /[\(\)\[\]\?\:\|]/, Qn = new RegExp(
2044
+ // any of:
2045
+ "(\\||\\(\\?\\:|\\)|\\[|\\])"
2046
+ );
2047
+ function at(e) {
2048
+ return e.length === 1 ? e[0] : e;
2049
+ }
2050
+ function Zt(e, t) {
2051
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2052
+ if (r) return (r = r.call(e)).next.bind(r);
2053
+ if (Array.isArray(e) || (r = zn(e)) || t) {
2054
+ r && (e = r);
2055
+ var n = 0;
2056
+ return function() {
2057
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
2058
+ };
2059
+ }
2060
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2061
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2062
+ }
2063
+ function zn(e, t) {
2064
+ if (e) {
2065
+ if (typeof e == "string") return Jt(e, t);
2066
+ var r = {}.toString.call(e).slice(8, -1);
2067
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Jt(e, t) : void 0;
2068
+ }
2069
+ }
2070
+ function Jt(e, t) {
2071
+ (t == null || t > e.length) && (t = e.length);
2072
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2073
+ return n;
2074
+ }
2075
+ function G(e) {
2076
+ "@babel/helpers - typeof";
2077
+ return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2078
+ return typeof t;
2079
+ } : function(t) {
2080
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2081
+ }, G(e);
2082
+ }
2083
+ function qn(e, t) {
2084
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2085
+ }
2086
+ function td(e, t) {
2087
+ for (var r = 0; r < t.length; r++) {
2088
+ var n = t[r];
2089
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, rd(n.key), n);
2090
+ }
2091
+ }
2092
+ function ed(e, t, r) {
2093
+ return t && td(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2094
+ }
2095
+ function rd(e) {
2096
+ var t = nd(e, "string");
2097
+ return G(t) == "symbol" ? t : t + "";
2098
+ }
2099
+ function nd(e, t) {
2100
+ if (G(e) != "object" || !e) return e;
2101
+ var r = e[Symbol.toPrimitive];
2102
+ if (r !== void 0) {
2103
+ var n = r.call(e, t);
2104
+ if (G(n) != "object") return n;
2105
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2106
+ }
2107
+ return String(e);
2108
+ }
2109
+ var dd = /* @__PURE__ */ function() {
2110
+ function e(t) {
2111
+ qn(this, e), this.matchTree = new Xn().parse(t);
2112
+ }
2113
+ return ed(e, [{
2114
+ key: "match",
2115
+ value: function(r) {
2116
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = n.allowOverflow;
2117
+ if (!r)
2118
+ throw new Error("String is required");
2119
+ var i = ht(r.split(""), this.matchTree, !0);
2120
+ if (i && i.match && delete i.matchedChars, !(i && i.overflow && !d))
2121
+ return i;
2122
+ }
2123
+ }]);
2124
+ }();
2125
+ function ht(e, t, r) {
2126
+ if (typeof t == "string") {
2127
+ var n = e.join("");
2128
+ return t.indexOf(n) === 0 ? e.length === t.length ? {
2129
+ match: !0,
2130
+ matchedChars: e
2131
+ } : {
2132
+ partialMatch: !0
2133
+ // matchedChars: characters
2134
+ } : n.indexOf(t) === 0 ? r && e.length > t.length ? {
2135
+ overflow: !0
2136
+ } : {
2137
+ match: !0,
2138
+ matchedChars: e.slice(0, t.length)
2139
+ } : void 0;
2140
+ }
2141
+ if (Array.isArray(t)) {
2142
+ for (var d = e.slice(), i = 0; i < t.length; ) {
2143
+ var a = t[i], o = ht(d, a, r && i === t.length - 1);
2144
+ if (o) {
2145
+ if (o.overflow)
2146
+ return o;
2147
+ if (o.match) {
2148
+ if (d = d.slice(o.matchedChars.length), d.length === 0)
2149
+ return i === t.length - 1 ? {
2150
+ match: !0,
2151
+ matchedChars: e
2152
+ } : {
2153
+ partialMatch: !0
2154
+ // matchedChars: characters
2155
+ };
2156
+ } else {
2157
+ if (o.partialMatch)
2158
+ return {
2159
+ partialMatch: !0
2160
+ // matchedChars: characters
2161
+ };
2162
+ throw new Error(`Unsupported match result:
2163
+ `.concat(JSON.stringify(o, null, 2)));
2164
+ }
2165
+ } else return;
2166
+ i++;
2167
+ }
2168
+ return r ? {
2169
+ overflow: !0
2170
+ } : {
2171
+ match: !0,
2172
+ matchedChars: e.slice(0, e.length - d.length)
2173
+ };
2174
+ }
2175
+ switch (t.op) {
2176
+ case "|":
2177
+ for (var u, $ = Zt(t.args), l; !(l = $()).done; ) {
2178
+ var s = l.value, f = ht(e, s, r);
2179
+ if (f) {
2180
+ if (f.overflow)
2181
+ return f;
2182
+ if (f.match)
2183
+ return {
2184
+ match: !0,
2185
+ matchedChars: f.matchedChars
2186
+ };
2187
+ if (f.partialMatch)
2188
+ u = !0;
2189
+ else
2190
+ throw new Error(`Unsupported match result:
2191
+ `.concat(JSON.stringify(f, null, 2)));
2192
+ }
2193
+ }
2194
+ return u ? {
2195
+ partialMatch: !0
2196
+ // matchedChars: ...
2197
+ } : void 0;
2198
+ case "[]":
2199
+ for (var h = Zt(t.args), m; !(m = h()).done; ) {
2200
+ var p = m.value;
2201
+ if (e[0] === p)
2202
+ return e.length === 1 ? {
2203
+ match: !0,
2204
+ matchedChars: e
2205
+ } : r ? {
2206
+ overflow: !0
2207
+ } : {
2208
+ match: !0,
2209
+ matchedChars: [p]
2210
+ };
2211
+ }
2212
+ return;
2213
+ /* istanbul ignore next */
2214
+ default:
2215
+ throw new Error("Unsupported instruction tree: ".concat(t));
2216
+ }
2217
+ }
2218
+ function B(e) {
2219
+ "@babel/helpers - typeof";
2220
+ return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2221
+ return typeof t;
2222
+ } : function(t) {
2223
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2224
+ }, B(e);
2225
+ }
2226
+ function Qt(e, t) {
2227
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2228
+ if (r) return (r = r.call(e)).next.bind(r);
2229
+ if (Array.isArray(e) || (r = id(e)) || t) {
2230
+ r && (e = r);
2231
+ var n = 0;
2232
+ return function() {
2233
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
2234
+ };
2235
+ }
2236
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2237
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2238
+ }
2239
+ function id(e, t) {
2240
+ if (e) {
2241
+ if (typeof e == "string") return zt(e, t);
2242
+ var r = {}.toString.call(e).slice(8, -1);
2243
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? zt(e, t) : void 0;
2244
+ }
2245
+ }
2246
+ function zt(e, t) {
2247
+ (t == null || t > e.length) && (t = e.length);
2248
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2249
+ return n;
2250
+ }
2251
+ function ad(e, t) {
2252
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2253
+ }
2254
+ function od(e, t) {
2255
+ for (var r = 0; r < t.length; r++) {
2256
+ var n = t[r];
2257
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, $d(n.key), n);
2258
+ }
2259
+ }
2260
+ function ud(e, t, r) {
2261
+ return t && od(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2262
+ }
2263
+ function $d(e) {
2264
+ var t = ld(e, "string");
2265
+ return B(t) == "symbol" ? t : t + "";
2266
+ }
2267
+ function ld(e, t) {
2268
+ if (B(e) != "object" || !e) return e;
2269
+ var r = e[Symbol.toPrimitive];
2270
+ if (r !== void 0) {
2271
+ var n = r.call(e, t);
2272
+ if (B(n) != "object") return n;
2273
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2274
+ }
2275
+ return String(e);
2276
+ }
2277
+ var gt = "9", sd = 15, fd = K(gt, sd), cd = /[- ]/, hd = function() {
2278
+ return /\[([^\[\]])*\]/g;
2279
+ }, gd = function() {
2280
+ return /\d(?=[^,}][^,}])/g;
2281
+ }, yd = new RegExp("[" + C + "]*\\$1[" + C + "]*(\\$\\d[" + C + "]*)*$"), qt = 3, md = /* @__PURE__ */ function() {
2282
+ function e(t) {
2283
+ t.state;
2284
+ var r = t.metadata;
2285
+ ad(this, e), this.metadata = r, this.resetFormat();
2286
+ }
2287
+ return ud(e, [{
2288
+ key: "resetFormat",
2289
+ value: function() {
2290
+ this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
2291
+ }
2292
+ }, {
2293
+ key: "reset",
2294
+ value: function(r, n) {
2295
+ this.resetFormat(), r ? (this.isNANP = r.callingCode() === "1", this.matchingFormats = r.formats(), n.nationalSignificantNumber && this.narrowDownMatchingFormats(n)) : (this.isNANP = void 0, this.matchingFormats = []);
2296
+ }
2297
+ /**
2298
+ * Formats an updated phone number.
2299
+ * @param {string} nextDigits — Additional phone number digits.
2300
+ * @param {object} state — `AsYouType` state.
2301
+ * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
2302
+ */
2303
+ }, {
2304
+ key: "format",
2305
+ value: function(r, n) {
2306
+ var d = this;
2307
+ if (Bn(n.nationalSignificantNumber, n.country, this.metadata))
2308
+ for (var i = Qt(this.matchingFormats), a; !(a = i()).done; ) {
2309
+ var o = a.value, u = Gn(n, o, {
2310
+ metadata: this.metadata,
2311
+ shouldTryNationalPrefixFormattingRule: function(l) {
2312
+ return d.shouldTryNationalPrefixFormattingRule(l, {
2313
+ international: n.international,
2314
+ nationalPrefix: n.nationalPrefix
2315
+ });
2316
+ },
2317
+ getSeparatorAfterNationalPrefix: function(l) {
2318
+ return d.getSeparatorAfterNationalPrefix(l);
2319
+ }
2320
+ });
2321
+ if (u)
2322
+ return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate(u.replace(/\d/g, b), n), this.populatedNationalNumberTemplate = u, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(b), u;
2323
+ }
2324
+ return this.formatNationalNumberWithNextDigits(r, n);
2325
+ }
2326
+ // Formats the next phone number digits.
2327
+ }, {
2328
+ key: "formatNationalNumberWithNextDigits",
2329
+ value: function(r, n) {
2330
+ var d = this.chosenFormat, i = this.chooseFormat(n);
2331
+ if (i)
2332
+ return i === d ? this.formatNextNationalNumberDigits(r) : this.formatNextNationalNumberDigits(n.getNationalDigits());
2333
+ }
2334
+ }, {
2335
+ key: "narrowDownMatchingFormats",
2336
+ value: function(r) {
2337
+ var n = this, d = r.nationalSignificantNumber, i = r.nationalPrefix, a = r.international, o = d, u = o.length - qt;
2338
+ u < 0 && (u = 0), this.matchingFormats = this.matchingFormats.filter(function($) {
2339
+ return n.formatSuits($, a, i) && n.formatMatches($, o, u);
2340
+ }), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
2341
+ }
2342
+ }, {
2343
+ key: "formatSuits",
2344
+ value: function(r, n, d) {
2345
+ return !(d && !r.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
2346
+ !r.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !n && !d && r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
2347
+ }
2348
+ }, {
2349
+ key: "formatMatches",
2350
+ value: function(r, n, d) {
2351
+ var i = r.leadingDigitsPatterns().length;
2352
+ if (i === 0)
2353
+ return !0;
2354
+ d = Math.min(d, i - 1);
2355
+ var a = r.leadingDigitsPatterns()[d];
2356
+ if (n.length < qt)
2357
+ try {
2358
+ return new dd(a).match(n, {
2359
+ allowOverflow: !0
2360
+ }) !== void 0;
2361
+ } catch (o) {
2362
+ return console.error(o), !0;
2363
+ }
2364
+ return new RegExp("^(".concat(a, ")")).test(n);
2365
+ }
2366
+ }, {
2367
+ key: "getFormatFormat",
2368
+ value: function(r, n) {
2369
+ return n ? r.internationalFormat() : r.format();
2370
+ }
2371
+ }, {
2372
+ key: "chooseFormat",
2373
+ value: function(r) {
2374
+ for (var n = this, d = function() {
2375
+ var $ = o.value;
2376
+ return n.chosenFormat === $ ? 0 : yd.test(n.getFormatFormat($, r.international)) ? n.createTemplateForFormat($, r) ? (n.chosenFormat = $, 0) : (n.matchingFormats = n.matchingFormats.filter(function(l) {
2377
+ return l !== $;
2378
+ }), 1) : 1;
2379
+ }, i, a = Qt(this.matchingFormats.slice()), o; !(o = a()).done && (i = d(), i !== 0); )
2380
+ ;
2381
+ return this.chosenFormat || this.resetFormat(), this.chosenFormat;
2382
+ }
2383
+ }, {
2384
+ key: "createTemplateForFormat",
2385
+ value: function(r, n) {
2386
+ if (!(r.pattern().indexOf("|") >= 0)) {
2387
+ var d = this.getTemplateForFormat(r, n);
2388
+ if (d)
2389
+ return this.setNationalNumberTemplate(d, n), !0;
2390
+ }
2391
+ }
2392
+ }, {
2393
+ key: "getSeparatorAfterNationalPrefix",
2394
+ value: function(r) {
2395
+ return this.isNANP || r && r.nationalPrefixFormattingRule() && cd.test(r.nationalPrefixFormattingRule()) ? " " : "";
2396
+ }
2397
+ }, {
2398
+ key: "getInternationalPrefixBeforeCountryCallingCode",
2399
+ value: function(r, n) {
2400
+ var d = r.IDDPrefix, i = r.missingPlus;
2401
+ return d ? n && n.spacing === !1 ? d : d + " " : i ? "" : "+";
2402
+ }
2403
+ }, {
2404
+ key: "getTemplate",
2405
+ value: function(r) {
2406
+ if (this.template) {
2407
+ for (var n = -1, d = 0, i = r.international ? this.getInternationalPrefixBeforeCountryCallingCode(r, {
2408
+ spacing: !1
2409
+ }) : ""; d < i.length + r.getDigitsWithoutInternationalPrefix().length; )
2410
+ n = this.template.indexOf(b, n + 1), d++;
2411
+ return Yt(this.template, n + 1);
2412
+ }
2413
+ }
2414
+ }, {
2415
+ key: "setNationalNumberTemplate",
2416
+ value: function(r, n) {
2417
+ this.nationalNumberTemplate = r, this.populatedNationalNumberTemplate = r, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, b) + K(b, n.callingCode.length) + " " + r : this.template = r;
2418
+ }
2419
+ /**
2420
+ * Generates formatting template for a national phone number,
2421
+ * optionally containing a national prefix, for a format.
2422
+ * @param {Format} format
2423
+ * @param {string} nationalPrefix
2424
+ * @return {string}
2425
+ */
2426
+ }, {
2427
+ key: "getTemplateForFormat",
2428
+ value: function(r, n) {
2429
+ var d = n.nationalSignificantNumber, i = n.international, a = n.nationalPrefix, o = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, u = r.pattern();
2430
+ u = u.replace(hd(), "\\d").replace(gd(), "\\d");
2431
+ var $ = fd.match(u)[0];
2432
+ if (!(d.length > $.length)) {
2433
+ var l = new RegExp("^" + u + "$"), s = d.replace(/\d/g, gt);
2434
+ l.test(s) && ($ = s);
2435
+ var f = this.getFormatFormat(r, i), h;
2436
+ if (this.shouldTryNationalPrefixFormattingRule(r, {
2437
+ international: i,
2438
+ nationalPrefix: a
2439
+ })) {
2440
+ var m = f.replace(se, r.nationalPrefixFormattingRule());
2441
+ if (X(r.nationalPrefixFormattingRule()) === (a || "") + X("$1") && (f = m, h = !0, a))
2442
+ for (var p = a.length; p > 0; )
2443
+ f = f.replace(/\d/, b), p--;
2444
+ }
2445
+ var y = $.replace(new RegExp(u), f).replace(new RegExp(gt, "g"), b);
2446
+ return h || (o ? y = K(b, o.length) + " " + y : a && (y = K(b, a.length) + this.getSeparatorAfterNationalPrefix(r) + y)), i && (y = le(y)), y;
2447
+ }
2448
+ }
2449
+ }, {
2450
+ key: "formatNextNationalNumberDigits",
2451
+ value: function(r) {
2452
+ var n = kn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
2453
+ if (!n) {
2454
+ this.resetFormat();
2455
+ return;
2456
+ }
2457
+ return this.populatedNationalNumberTemplate = n[0], this.populatedNationalNumberTemplatePosition = n[1], Yt(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
2458
+ }
2459
+ }, {
2460
+ key: "shouldTryNationalPrefixFormattingRule",
2461
+ value: function(r, n) {
2462
+ var d = n.international, i = n.nationalPrefix;
2463
+ if (r.nationalPrefixFormattingRule()) {
2464
+ var a = r.usesNationalPrefix();
2465
+ if (a && i || !a && !d)
2466
+ return !0;
2467
+ }
2468
+ }
2469
+ }]);
2470
+ }();
2471
+ function j(e) {
2472
+ "@babel/helpers - typeof";
2473
+ return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2474
+ return typeof t;
2475
+ } : function(t) {
2476
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2477
+ }, j(e);
2478
+ }
2479
+ function me(e, t) {
2480
+ return Cd(e) || bd(e, t) || vd(e, t) || pd();
2481
+ }
2482
+ function pd() {
2483
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2484
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2485
+ }
2486
+ function vd(e, t) {
2487
+ if (e) {
2488
+ if (typeof e == "string") return te(e, t);
2489
+ var r = {}.toString.call(e).slice(8, -1);
2490
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? te(e, t) : void 0;
2491
+ }
2492
+ }
2493
+ function te(e, t) {
2494
+ (t == null || t > e.length) && (t = e.length);
2495
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2496
+ return n;
2497
+ }
2498
+ function bd(e, t) {
2499
+ var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2500
+ if (r != null) {
2501
+ var n, d, i, a, o = [], u = !0, $ = !1;
2502
+ try {
2503
+ if (i = (r = r.call(e)).next, t !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
2504
+ } catch (l) {
2505
+ $ = !0, d = l;
2506
+ } finally {
2507
+ try {
2508
+ if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
2509
+ } finally {
2510
+ if ($) throw d;
2511
+ }
2512
+ }
2513
+ return o;
2514
+ }
2515
+ }
2516
+ function Cd(e) {
2517
+ if (Array.isArray(e)) return e;
2518
+ }
2519
+ function Nd(e, t) {
2520
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2521
+ }
2522
+ function Pd(e, t) {
2523
+ for (var r = 0; r < t.length; r++) {
2524
+ var n = t[r];
2525
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Sd(n.key), n);
2526
+ }
2527
+ }
2528
+ function Ed(e, t, r) {
2529
+ return t && Pd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2530
+ }
2531
+ function Sd(e) {
2532
+ var t = xd(e, "string");
2533
+ return j(t) == "symbol" ? t : t + "";
2534
+ }
2535
+ function xd(e, t) {
2536
+ if (j(e) != "object" || !e) return e;
2537
+ var r = e[Symbol.toPrimitive];
2538
+ if (r !== void 0) {
2539
+ var n = r.call(e, t);
2540
+ if (j(n) != "object") return n;
2541
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2542
+ }
2543
+ return String(e);
2544
+ }
2545
+ var Td = "[" + C + g + "]+", Fd = new RegExp("^" + Td + "$", "i"), Id = "(?:[" + tt + "][" + C + g + "]*|[" + C + g + "]+)", Ad = new RegExp("[^" + C + g + "]+.*$"), _d = /[^\d\[\]]/, wd = /* @__PURE__ */ function() {
2546
+ function e(t) {
2547
+ var r = t.defaultCountry, n = t.defaultCallingCode, d = t.metadata, i = t.onNationalSignificantNumberChange;
2548
+ Nd(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = d, this.onNationalSignificantNumberChange = i;
2549
+ }
2550
+ return Ed(e, [{
2551
+ key: "input",
2552
+ value: function(r, n) {
2553
+ var d = Dd(r), i = me(d, 2), a = i[0], o = i[1], u = X(a), $;
2554
+ return o && (n.digits || (n.startInternationalNumber(void 0, void 0), u || ($ = !0))), u && this.inputDigits(u, n), {
2555
+ digits: u,
2556
+ justLeadingPlus: $
2557
+ };
2558
+ }
2559
+ /**
2560
+ * Inputs "next" phone number digits.
2561
+ * @param {string} digits
2562
+ * @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".
2563
+ */
2564
+ }, {
2565
+ key: "inputDigits",
2566
+ value: function(r, n) {
2567
+ var d = n.digits, i = d.length < 3 && d.length + r.length >= 3;
2568
+ if (n.appendDigits(r), i && this.extractIddPrefix(n), this.isWaitingForCountryCallingCode(n)) {
2569
+ if (!this.extractCountryCallingCode(n))
2570
+ return;
2571
+ } else
2572
+ n.appendNationalSignificantNumberDigits(r);
2573
+ n.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(n.getNationalDigits(), function(a) {
2574
+ return n.update(a);
2575
+ });
2576
+ }
2577
+ }, {
2578
+ key: "isWaitingForCountryCallingCode",
2579
+ value: function(r) {
2580
+ var n = r.international, d = r.callingCode;
2581
+ return n && !d;
2582
+ }
2583
+ // Extracts a country calling code from a number
2584
+ // being entered in internatonal format.
2585
+ }, {
2586
+ key: "extractCountryCallingCode",
2587
+ value: function(r) {
2588
+ var n = bt("+" + r.getDigitsWithoutInternationalPrefix(), r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode, i = n.number;
2589
+ if (d)
2590
+ return r.setCallingCode(d), r.update({
2591
+ nationalSignificantNumber: i
2592
+ }), !0;
2593
+ }
2594
+ }, {
2595
+ key: "reset",
2596
+ value: function(r) {
2597
+ if (r) {
2598
+ this.hasSelectedNumberingPlan = !0;
2599
+ var n = r._nationalPrefixForParsing();
2600
+ this.couldPossiblyExtractAnotherNationalSignificantNumber = n && _d.test(n);
2601
+ } else
2602
+ this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
2603
+ }
2604
+ /**
2605
+ * Extracts a national (significant) number from user input.
2606
+ * Google's library is different in that it only applies `national_prefix_for_parsing`
2607
+ * and doesn't apply `national_prefix_transform_rule` after that.
2608
+ * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
2609
+ * @return {boolean} [extracted]
2610
+ */
2611
+ }, {
2612
+ key: "extractNationalSignificantNumber",
2613
+ value: function(r, n) {
2614
+ if (this.hasSelectedNumberingPlan) {
2615
+ var d = ut(r, this.metadata), i = d.nationalPrefix, a = d.nationalNumber, o = d.carrierCode;
2616
+ if (a !== r)
2617
+ return this.onExtractedNationalNumber(i, o, a, r, n), !0;
2618
+ }
2619
+ }
2620
+ /**
2621
+ * In Google's code this function is called "attempt to extract longer NDD".
2622
+ * "Some national prefixes are a substring of others", they say.
2623
+ * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
2624
+ */
2625
+ }, {
2626
+ key: "extractAnotherNationalSignificantNumber",
2627
+ value: function(r, n, d) {
2628
+ if (!this.hasExtractedNationalSignificantNumber)
2629
+ return this.extractNationalSignificantNumber(r, d);
2630
+ if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
2631
+ var i = ut(r, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, u = i.carrierCode;
2632
+ if (o !== n)
2633
+ return this.onExtractedNationalNumber(a, u, o, r, d), !0;
2634
+ }
2635
+ }
2636
+ }, {
2637
+ key: "onExtractedNationalNumber",
2638
+ value: function(r, n, d, i, a) {
2639
+ var o = !1, u, $ = i.lastIndexOf(d);
2640
+ if ($ < 0 || $ !== i.length - d.length)
2641
+ o = !0;
2642
+ else {
2643
+ var l = i.slice(0, $);
2644
+ l && l !== r && (u = l);
2645
+ }
2646
+ a({
2647
+ nationalPrefix: r,
2648
+ carrierCode: n,
2649
+ nationalSignificantNumber: d,
2650
+ nationalSignificantNumberIsModified: o,
2651
+ prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: u
2652
+ }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
2653
+ }
2654
+ }, {
2655
+ key: "reExtractNationalSignificantNumber",
2656
+ value: function(r) {
2657
+ if (this.extractAnotherNationalSignificantNumber(r.getNationalDigits(), r.nationalSignificantNumber, function(n) {
2658
+ return r.update(n);
2659
+ }))
2660
+ return !0;
2661
+ if (this.extractIddPrefix(r))
2662
+ return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
2663
+ if (this.fixMissingPlus(r))
2664
+ return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
2665
+ }
2666
+ }, {
2667
+ key: "extractIddPrefix",
2668
+ value: function(r) {
2669
+ var n = r.international, d = r.IDDPrefix, i = r.digits;
2670
+ if (r.nationalSignificantNumber, !(n || d)) {
2671
+ var a = oe(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
2672
+ if (a !== void 0 && a !== i)
2673
+ return r.update({
2674
+ IDDPrefix: i.slice(0, i.length - a.length)
2675
+ }), this.startInternationalNumber(r, {
2676
+ country: void 0,
2677
+ callingCode: void 0
2678
+ }), !0;
2679
+ }
2680
+ }
2681
+ }, {
2682
+ key: "fixMissingPlus",
2683
+ value: function(r) {
2684
+ if (!r.international) {
2685
+ var n = $e(r.digits, r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode;
2686
+ if (d)
2687
+ return r.update({
2688
+ missingPlus: !0
2689
+ }), this.startInternationalNumber(r, {
2690
+ country: r.country,
2691
+ callingCode: d
2692
+ }), !0;
2693
+ }
2694
+ }
2695
+ }, {
2696
+ key: "startInternationalNumber",
2697
+ value: function(r, n) {
2698
+ var d = n.country, i = n.callingCode;
2699
+ r.startInternationalNumber(d, i), r.nationalSignificantNumber && (r.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
2700
+ }
2701
+ }, {
2702
+ key: "extractCallingCodeAndNationalSignificantNumber",
2703
+ value: function(r) {
2704
+ this.extractCountryCallingCode(r) && this.extractNationalSignificantNumber(r.getNationalDigits(), function(n) {
2705
+ return r.update(n);
2706
+ });
2707
+ }
2708
+ }]);
2709
+ }();
2710
+ function Od(e) {
2711
+ var t = e.search(Id);
2712
+ if (!(t < 0)) {
2713
+ e = e.slice(t);
2714
+ var r;
2715
+ return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(Ad, ""), r && (e = "+" + e), e;
2716
+ }
2717
+ }
2718
+ function Rd(e) {
2719
+ var t = Od(e) || "";
2720
+ return t[0] === "+" ? [t.slice(1), !0] : [t];
2721
+ }
2722
+ function Dd(e) {
2723
+ var t = Rd(e), r = me(t, 2), n = r[0], d = r[1];
2724
+ return Fd.test(n) || (n = ""), [n, d];
2725
+ }
2726
+ function U(e) {
2727
+ "@babel/helpers - typeof";
2728
+ return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2729
+ return typeof t;
2730
+ } : function(t) {
2731
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2732
+ }, U(e);
2733
+ }
2734
+ function Md(e, t) {
2735
+ return Bd(e) || Gd(e, t) || kd(e, t) || Ld();
2736
+ }
2737
+ function Ld() {
2738
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2739
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2740
+ }
2741
+ function kd(e, t) {
2742
+ if (e) {
2743
+ if (typeof e == "string") return ee(e, t);
2744
+ var r = {}.toString.call(e).slice(8, -1);
2745
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ee(e, t) : void 0;
2746
+ }
2747
+ }
2748
+ function ee(e, t) {
2749
+ (t == null || t > e.length) && (t = e.length);
2750
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2751
+ return n;
2752
+ }
2753
+ function Gd(e, t) {
2754
+ var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2755
+ if (r != null) {
2756
+ var n, d, i, a, o = [], u = !0, $ = !1;
2757
+ try {
2758
+ if (i = (r = r.call(e)).next, t !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
2759
+ } catch (l) {
2760
+ $ = !0, d = l;
2761
+ } finally {
2762
+ try {
2763
+ if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
2764
+ } finally {
2765
+ if ($) throw d;
2766
+ }
2767
+ }
2768
+ return o;
2769
+ }
2770
+ }
2771
+ function Bd(e) {
2772
+ if (Array.isArray(e)) return e;
2773
+ }
2774
+ function jd(e, t) {
2775
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2776
+ }
2777
+ function Ud(e, t) {
2778
+ for (var r = 0; r < t.length; r++) {
2779
+ var n = t[r];
2780
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Vd(n.key), n);
2781
+ }
2782
+ }
2783
+ function Hd(e, t, r) {
2784
+ return t && Ud(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2785
+ }
2786
+ function Vd(e) {
2787
+ var t = Wd(e, "string");
2788
+ return U(t) == "symbol" ? t : t + "";
2789
+ }
2790
+ function Wd(e, t) {
2791
+ if (U(e) != "object" || !e) return e;
2792
+ var r = e[Symbol.toPrimitive];
2793
+ if (r !== void 0) {
2794
+ var n = r.call(e, t);
2795
+ if (U(n) != "object") return n;
2796
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2797
+ }
2798
+ return String(e);
2799
+ }
2800
+ var pe = /* @__PURE__ */ function() {
2801
+ function e(t, r) {
2802
+ jd(this, e), this.metadata = new c(r);
2803
+ var n = this.getCountryAndCallingCode(t), d = Md(n, 2), i = d[0], a = d[1];
2804
+ this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
2805
+ }
2806
+ return Hd(e, [{
2807
+ key: "getCountryAndCallingCode",
2808
+ value: function(r) {
2809
+ var n, d;
2810
+ return r && (S(r) ? (n = r.defaultCountry, d = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), [n, d];
2811
+ }
2812
+ /**
2813
+ * Inputs "next" phone number characters.
2814
+ * @param {string} text
2815
+ * @return {string} Formatted phone number characters that have been input so far.
2816
+ */
2817
+ }, {
2818
+ key: "input",
2819
+ value: function(r) {
2820
+ var n = this.parser.input(r, this.state), d = n.digits, i = n.justLeadingPlus;
2821
+ if (i)
2822
+ this.formattedOutput = "+";
2823
+ else if (d) {
2824
+ this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
2825
+ var a;
2826
+ if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(d, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
2827
+ this.determineTheCountryIfNeeded();
2828
+ var o = this.state.getNationalDigits();
2829
+ o && (a = this.formatter.format(o, this.state));
2830
+ }
2831
+ this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
2832
+ }
2833
+ return this.formattedOutput;
2834
+ }
2835
+ }, {
2836
+ key: "reset",
2837
+ value: function() {
2838
+ var r = this;
2839
+ return this.state = new Rn({
2840
+ onCountryChange: function(d) {
2841
+ r.country = d;
2842
+ },
2843
+ onCallingCodeChange: function(d, i) {
2844
+ r.metadata.selectNumberingPlan(i, d), r.formatter.reset(r.metadata.numberingPlan, r.state), r.parser.reset(r.metadata.numberingPlan);
2845
+ }
2846
+ }), this.formatter = new md({
2847
+ state: this.state,
2848
+ metadata: this.metadata
2849
+ }), this.parser = new wd({
2850
+ defaultCountry: this.defaultCountry,
2851
+ defaultCallingCode: this.defaultCallingCode,
2852
+ metadata: this.metadata,
2853
+ state: this.state,
2854
+ onNationalSignificantNumberChange: function() {
2855
+ r.determineTheCountryIfNeeded(), r.formatter.reset(r.metadata.numberingPlan, r.state);
2856
+ }
2857
+ }), this.state.reset({
2858
+ country: this.defaultCountry,
2859
+ callingCode: this.defaultCallingCode
2860
+ }), this.formattedOutput = "", this;
2861
+ }
2862
+ /**
2863
+ * Returns `true` if the phone number is being input in international format.
2864
+ * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
2865
+ * @return {boolean}
2866
+ */
2867
+ }, {
2868
+ key: "isInternational",
2869
+ value: function() {
2870
+ return this.state.international;
2871
+ }
2872
+ /**
2873
+ * Returns the "calling code" part of the phone number when it's being input
2874
+ * in an international format.
2875
+ * If no valid calling code has been entered so far, returns `undefined`.
2876
+ * @return {string} [callingCode]
2877
+ */
2878
+ }, {
2879
+ key: "getCallingCode",
2880
+ value: function() {
2881
+ if (this.isInternational())
2882
+ return this.state.callingCode;
2883
+ }
2884
+ // A legacy alias.
2885
+ }, {
2886
+ key: "getCountryCallingCode",
2887
+ value: function() {
2888
+ return this.getCallingCode();
2889
+ }
2890
+ /**
2891
+ * Returns a two-letter country code of the phone number.
2892
+ * Returns `undefined` for "non-geographic" phone numbering plans.
2893
+ * Returns `undefined` if no phone number has been input yet.
2894
+ * @return {string} [country]
2895
+ */
2896
+ }, {
2897
+ key: "getCountry",
2898
+ value: function() {
2899
+ var r = this.state.digits;
2900
+ if (r)
2901
+ return this._getCountry();
2902
+ }
2903
+ /**
2904
+ * Returns a two-letter country code of the phone number.
2905
+ * Returns `undefined` for "non-geographic" phone numbering plans.
2906
+ * @return {string} [country]
2907
+ */
2908
+ }, {
2909
+ key: "_getCountry",
2910
+ value: function() {
2911
+ var r = this.state.country;
2912
+ return r;
2913
+ }
2914
+ }, {
2915
+ key: "determineTheCountryIfNeeded",
2916
+ value: function() {
2917
+ (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
2918
+ }
2919
+ // Prepends `+CountryCode ` in case of an international phone number
2920
+ }, {
2921
+ key: "getFullNumber",
2922
+ value: function(r) {
2923
+ var n = this;
2924
+ if (this.isInternational()) {
2925
+ var d = function(o) {
2926
+ return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state, {
2927
+ spacing: !!o
2928
+ }) + o;
2929
+ }, i = this.state.callingCode;
2930
+ return d(i ? r ? "".concat(i, " ").concat(r) : i : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
2931
+ }
2932
+ return r;
2933
+ }
2934
+ }, {
2935
+ key: "getNonFormattedNationalNumberWithPrefix",
2936
+ value: function() {
2937
+ var r = this.state, n = r.nationalSignificantNumber, d = r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, i = r.nationalPrefix, a = n, o = d || i;
2938
+ return o && (a = o + a), a;
2939
+ }
2940
+ }, {
2941
+ key: "getNonFormattedNumber",
2942
+ value: function() {
2943
+ var r = this.state.nationalSignificantNumberIsModified;
2944
+ return this.getFullNumber(r ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
2945
+ }
2946
+ }, {
2947
+ key: "getNonFormattedTemplate",
2948
+ value: function() {
2949
+ var r = this.getNonFormattedNumber();
2950
+ if (r)
2951
+ return r.replace(/[\+\d]/g, b);
2952
+ }
2953
+ }, {
2954
+ key: "isCountryCallingCodeAmbiguous",
2955
+ value: function() {
2956
+ var r = this.state.callingCode, n = this.metadata.getCountryCodesForCallingCode(r);
2957
+ return n && n.length > 1;
2958
+ }
2959
+ // Determines the exact country of the phone number
2960
+ // entered so far based on the country phone code
2961
+ // and the national phone number.
2962
+ }, {
2963
+ key: "determineTheCountry",
2964
+ value: function() {
2965
+ this.state.setCountry(vt(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
2966
+ nationalNumber: this.state.nationalSignificantNumber,
2967
+ metadata: this.metadata
2968
+ }));
2969
+ }
2970
+ /**
2971
+ * Returns a E.164 phone number value for the user's input.
2972
+ *
2973
+ * For example, for country `"US"` and input `"(222) 333-4444"`
2974
+ * it will return `"+12223334444"`.
2975
+ *
2976
+ * For international phone number input, it will also auto-correct
2977
+ * some minor errors such as using a national prefix when writing
2978
+ * an international phone number. For example, if the user inputs
2979
+ * `"+44 0 7400 000000"` then it will return an auto-corrected
2980
+ * `"+447400000000"` phone number value.
2981
+ *
2982
+ * Will return `undefined` if no digits have been input,
2983
+ * or when inputting a phone number in national format and no
2984
+ * default country or default "country calling code" have been set.
2985
+ *
2986
+ * @return {string} [value]
2987
+ */
2988
+ }, {
2989
+ key: "getNumberValue",
2990
+ value: function() {
2991
+ var r = this.state, n = r.digits, d = r.callingCode, i = r.country, a = r.nationalSignificantNumber;
2992
+ if (n) {
2993
+ if (this.isInternational())
2994
+ return d ? "+" + d + a : "+" + n;
2995
+ if (i || d) {
2996
+ var o = i ? this.metadata.countryCallingCode() : d;
2997
+ return "+" + o + a;
2998
+ }
2999
+ }
3000
+ }
3001
+ /**
3002
+ * Returns an instance of `PhoneNumber` class.
3003
+ * Will return `undefined` if no national (significant) number
3004
+ * digits have been entered so far, or if no `defaultCountry` has been
3005
+ * set and the user enters a phone number not in international format.
3006
+ */
3007
+ }, {
3008
+ key: "getNumber",
3009
+ value: function() {
3010
+ var r = this.state, n = r.nationalSignificantNumber, d = r.carrierCode, i = r.callingCode, a = this._getCountry();
3011
+ if (n && !(!a && !i)) {
3012
+ if (a && a === this.defaultCountry) {
3013
+ var o = new c(this.metadata.metadata);
3014
+ o.selectNumberingPlan(a);
3015
+ var u = o.numberingPlan.callingCode(), $ = this.metadata.getCountryCodesForCallingCode(u);
3016
+ if ($.length > 1) {
3017
+ var l = ue(n, {
3018
+ countries: $,
3019
+ metadata: this.metadata.metadata
3020
+ });
3021
+ l && (a = l);
3022
+ }
3023
+ }
3024
+ var s = new Ct(a || i, n, this.metadata.metadata);
3025
+ return d && (s.carrierCode = d), s;
3026
+ }
3027
+ }
3028
+ /**
3029
+ * Returns `true` if the phone number is "possible".
3030
+ * Is just a shortcut for `PhoneNumber.isPossible()`.
3031
+ * @return {boolean}
3032
+ */
3033
+ }, {
3034
+ key: "isPossible",
3035
+ value: function() {
3036
+ var r = this.getNumber();
3037
+ return r ? r.isPossible() : !1;
3038
+ }
3039
+ /**
3040
+ * Returns `true` if the phone number is "valid".
3041
+ * Is just a shortcut for `PhoneNumber.isValid()`.
3042
+ * @return {boolean}
3043
+ */
3044
+ }, {
3045
+ key: "isValid",
3046
+ value: function() {
3047
+ var r = this.getNumber();
3048
+ return r ? r.isValid() : !1;
3049
+ }
3050
+ /**
3051
+ * @deprecated
3052
+ * This method is used in `react-phone-number-input/source/input-control.js`
3053
+ * in versions before `3.0.16`.
3054
+ */
3055
+ }, {
3056
+ key: "getNationalNumber",
3057
+ value: function() {
3058
+ return this.state.nationalSignificantNumber;
3059
+ }
3060
+ /**
3061
+ * Returns the phone number characters entered by the user.
3062
+ * @return {string}
3063
+ */
3064
+ }, {
3065
+ key: "getChars",
3066
+ value: function() {
3067
+ return (this.state.international ? "+" : "") + this.state.digits;
3068
+ }
3069
+ /**
3070
+ * Returns the template for the formatted phone number.
3071
+ * @return {string}
3072
+ */
3073
+ }, {
3074
+ key: "getTemplate",
3075
+ value: function() {
3076
+ return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
3077
+ }
3078
+ }]);
3079
+ }();
3080
+ function Kd(e, t, r) {
3081
+ if (t[e])
3082
+ return new Ct(e, t[e], r);
3083
+ }
3084
+ function Z() {
3085
+ return yt(Fn, arguments);
3086
+ }
3087
+ function H(e) {
3088
+ return pe.call(this, e, ne);
3089
+ }
3090
+ H.prototype = Object.create(pe.prototype, {});
3091
+ H.prototype.constructor = H;
3092
+ function ve() {
3093
+ return yt(z, arguments);
3094
+ }
3095
+ function be() {
3096
+ return yt(Kd, arguments);
3097
+ }
3098
+ const F = (e) => {
3099
+ const t = e.toUpperCase().split("").map((r) => 127397 + r.charCodeAt(0));
3100
+ return String.fromCodePoint(...t);
3101
+ }, Yd = (e, t) => {
3102
+ const r = Object.values(Ne);
3103
+ return (e?.length ? r.filter(
3104
+ (i) => e.includes(i.toUpperCase())
3105
+ ) : r).map((i) => {
3106
+ try {
3107
+ const a = ve(i);
3108
+ return {
3109
+ code: i.toUpperCase(),
3110
+ name: re(i, t),
3111
+ dialCode: `+${a}`,
3112
+ flag: F(i)
3113
+ };
3114
+ } catch {
3115
+ return null;
3116
+ }
3117
+ }).filter((i) => i !== null).sort((i, a) => i.name.localeCompare(a.name, t));
3118
+ }, zd = (e) => {
3119
+ try {
3120
+ const t = e.toUpperCase(), r = ve(t);
3121
+ return {
3122
+ code: t,
3123
+ name: re(t),
3124
+ dialCode: `+${r}`,
3125
+ flag: F(t)
3126
+ };
3127
+ } catch {
3128
+ return null;
3129
+ }
3130
+ }, Ce = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2684641234", AI: "2642351234", AL: "672123456", AM: "77123456", AO: "923123456", AR: "91123456789", AS: "6847331234", AT: "664123456", AU: "412345678", AW: "5601234", AX: "412345678", AZ: "401234567", BA: "61123456", BB: "2462501234", BD: "1812345678", BE: "450001234", BF: "70123456", BG: "43012345", BH: "36001234", BI: "79561234", BJ: "0195123456", BL: "690001234", BM: "4413701234", BN: "7123456", BO: "71234567", BQ: "3181234", BR: "11961234567", BS: "2423591234", BT: "17123456", BW: "71123456", BY: "294911911", BZ: "6221234", CA: "5062345678", CC: "412345678", CD: "991234567", CF: "70012345", CG: "061234567", CH: "781234567", CI: "0123456789", CK: "71234", CL: "221234567", CM: "671234567", CN: "13123456789", CO: "3211234567", CR: "83123456", CU: "51234567", CV: "9911234", CW: "95181234", CX: "412345678", CY: "96123456", CZ: "601123456", DE: "15123456789", DJ: "77831001", DK: "34412345", DM: "7672251234", DO: "8092345678", DZ: "551234567", EC: "991234567", EE: "51234567", EG: "1001234567", EH: "650123456", ER: "7123456", ES: "612345678", ET: "911234567", FI: "412345678", FJ: "7012345", FK: "51234", FM: "3501234", FO: "211234", FR: "612345678", GA: "06031234", GB: "7400123456", GD: "4734031234", GE: "555123456", GF: "694201234", GG: "7781123456", GH: "231234567", GI: "57123456", GL: "221234", GM: "3012345", GN: "601123456", GP: "690001234", GQ: "222123456", GR: "6912345678", GT: "51234567", GU: "6713001234", GW: "955012345", GY: "6091234", HK: "51234567", HN: "91234567", HR: "921234567", HT: "34101234", HU: "201234567", ID: "812345678", IE: "850123456", IL: "502345678", IM: "7924123456", IN: "8123456789", IO: "3801234", IQ: "7912345678", IR: "9123456789", IS: "6111234", IT: "3123456789", JE: "7797712345", JM: "8762101234", JO: "790123456", JP: "9012345678", KE: "712123456", KG: "700123456", KH: "91234567", KI: "72001234", KM: "3212345", KN: "8697652917", KP: "1921234567", KR: "1020000000", KW: "50012345", KY: "3453231234", KZ: "7710009998", LA: "2023123456", LB: "71123456", LC: "7582845678", LI: "660234567", LK: "712345678", LR: "770123456", LS: "50123456", LT: "61234567", LU: "628123456", LV: "21234567", LY: "912345678", MA: "650123456", MC: "612345678", MD: "62112345", ME: "60123456", MF: "690001234", MG: "321234567", MH: "2351234", MK: "72345678", ML: "65012345", MM: "92123456", MN: "88123456", MO: "66123456", MP: "6702345678", MQ: "696201234", MR: "22123456", MS: "6644923456", MT: "96961234", MU: "52512345", MV: "7712345", MW: "991234567", MX: "2221234567", MY: "123456789", MZ: "821234567", NA: "811234567", NC: "751234", NE: "93123456", NF: "381234", NG: "8021234567", NI: "81234567", NL: "612345678", NO: "40612345", NP: "9841234567", NR: "5551234", NU: "8884012", NZ: "211234567", OM: "92123456", PA: "61234567", PE: "912345678", PF: "87123456", PG: "70123456", PH: "9051234567", PK: "3012345678", PL: "512345678", PM: "551234", PR: "7872345678", PS: "599123456", PT: "912345678", PW: "6201234", PY: "961456789", QA: "33123456", RE: "692123456", RO: "712034567", RS: "601234567", RU: "9123456789", RW: "720123456", SA: "512345678", SB: "7421234", SC: "2510123", SD: "911231234", SE: "701234567", SG: "81234567", SH: "51234", SI: "31234567", SJ: "41234567", SK: "912123456", SL: "25123456", SM: "66661212", SN: "701234567", SO: "71123456", SR: "7412345", SS: "977123456", ST: "9812345", SV: "70123456", SX: "7215205678", SY: "944567890", SZ: "76123456", TA: "8999", TC: "6492311234", TD: "63012345", TG: "90112345", TH: "812345678", TJ: "917123456", TK: "7290", TL: "77212345", TM: "66123456", TN: "20123456", TO: "7715123", TR: "5012345678", TT: "8682911234", TV: "901234", TW: "912345678", TZ: "621234567", UA: "501234567", UG: "712345678", US: "2015550123", UY: "94231234", UZ: "912345678", VA: "3123456789", VC: "7844301234", VE: "4121234567", VG: "2843001234", VI: "3406421234", VN: "912345678", VU: "5912345", WF: "821234", WS: "7212345", XK: "43201234", YE: "712345678", YT: "639012345", ZA: "711234567", ZM: "955123456", ZW: "712345678" }, ot = (e, t) => {
3131
+ try {
3132
+ return e.startsWith("+") ? new H().input(e) : new H(t).input(e);
3133
+ } catch {
3134
+ return e;
3135
+ }
3136
+ }, Xd = (e, t) => {
3137
+ try {
3138
+ return Z(
3139
+ e,
3140
+ t
3141
+ )?.number || null;
3142
+ } catch {
3143
+ return null;
3144
+ }
3145
+ }, A = (e) => {
3146
+ try {
3147
+ const t = Z(e);
3148
+ return t ? {
3149
+ countryCode: t.country || "",
3150
+ nationalNumber: t.nationalNumber
3151
+ } : null;
3152
+ } catch {
3153
+ return null;
3154
+ }
3155
+ }, T = (e) => {
3156
+ try {
3157
+ const t = be(
3158
+ e,
3159
+ Ce
3160
+ );
3161
+ return t ? t.formatNational() : "";
3162
+ } catch {
3163
+ return "";
3164
+ }
3165
+ }, Zd = (e, t) => {
3166
+ try {
3167
+ if (e.startsWith("+")) {
3168
+ const n = Z(e);
3169
+ return n?.isValid() ? n.country === t : !1;
3170
+ }
3171
+ return Z(
3172
+ e,
3173
+ t
3174
+ )?.isValid() || !1;
3175
+ } catch {
3176
+ return !1;
3177
+ }
3178
+ }, Jd = (e) => {
3179
+ try {
3180
+ const t = be(
3181
+ e,
3182
+ Ce
3183
+ );
3184
+ return t ? t.nationalNumber.length : 1 / 0;
3185
+ } catch {
3186
+ return 1 / 0;
3187
+ }
3188
+ };
3189
+ class qd extends E {
3190
+ countryFlagDisplay;
3191
+ countrySelect;
3192
+ inputElement;
3193
+ countryCodeInput;
3194
+ containerElement;
3195
+ helperText = null;
3196
+ currentCountryCode;
3197
+ userSelectedCountry = !1;
3198
+ locale;
3199
+ onChange;
3200
+ onBlur;
3201
+ translationFunc;
3202
+ constructor(t) {
3203
+ super("div", ["input-wrapper", "phone-number-field-wrapper"]);
3204
+ const {
3205
+ value: r,
3206
+ onChange: n,
3207
+ onBlur: d,
3208
+ onTab: i,
3209
+ errorMsg: a,
3210
+ checkoutProfile: o,
3211
+ translationFunc: u,
3212
+ defaultCountry: $,
3213
+ allowedCountries: l,
3214
+ locale: s
3215
+ } = t;
3216
+ this.onChange = n, this.onBlur = d, this.translationFunc = u, this.locale = t.locale;
3217
+ const f = new Pe({
3218
+ styles: {
3219
+ color: o.styles.textColor,
3220
+ fontSize: o.styles.fontSize
3221
+ },
3222
+ label: u("phoneNumber"),
3223
+ id: "phoneNumber"
3224
+ });
3225
+ this.appendChild(f), this.containerElement = new E("div", [
3226
+ "phone-number-field-container"
3227
+ ]);
3228
+ const h = this.containerElement.getElement();
3229
+ h.style.borderRadius = `${o.styles.borderRadius}px`, h.style.setProperty(
3230
+ "--phone-border-radius",
3231
+ `${o.styles.borderRadius}px`
3232
+ ), this.currentCountryCode = $?.toUpperCase() || "US";
3233
+ const m = Yd(l, s), p = new E("div", ["country-select-wrapper"]);
3234
+ this.countryFlagDisplay = new E("span", [
3235
+ "country-flag"
3236
+ ]), this.countryFlagDisplay.setText(F(this.currentCountryCode)), this.countrySelect = new E("select", [
3237
+ "country-select"
3238
+ ]), this.countrySelect.setAttribute(
3239
+ "aria-label",
3240
+ u("countryCode") || "Country code"
3241
+ );
3242
+ const y = this.countrySelect.getElement();
3243
+ y.style.fontFamily = `"${o.styles.fontFamily}", sans-serif`, y.style.color = o.styles.textColor, y.style.fontSize = `${o.styles.fontSize}px`, this.buildSelectOptions(m, this.currentCountryCode), this.countrySelect.addEventListener("change", (v) => {
3244
+ this.handleCountryChange(v.target.value);
3245
+ });
3246
+ const V = new E("span", ["country-chevron"]);
3247
+ V.getElement().innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none" aria-hidden="true"><path d="M2 3.5L5 6.5L8 3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>', p.appendChild(this.countryFlagDisplay), p.appendChild(V), p.appendChild(this.countrySelect), this.containerElement.appendChild(p);
3248
+ const W = new E("div", ["phone-input-wrapper"]);
3249
+ let Pt = r;
3250
+ if (r && r.startsWith("+")) {
3251
+ const v = A(r);
3252
+ v && (this.currentCountryCode = v.countryCode, this.updateSelectAndFlag(v.countryCode), Pt = ot(r, v.countryCode));
3253
+ }
3254
+ this.countryCodeInput = Et.createInput("hidden", [], {
3255
+ name: "phoneCountryCode",
3256
+ value: this.currentCountryCode
3257
+ }), this.appendChild(this.countryCodeInput), this.inputElement = Et.createInput("tel", ["form-input"], {
3258
+ id: "phoneNumber",
3259
+ name: "phoneNumber",
3260
+ placeholder: T(this.currentCountryCode),
3261
+ value: Pt,
3262
+ autocomplete: "tel",
3263
+ maxlength: "30"
3264
+ });
3265
+ const et = this.inputElement.getElement();
3266
+ et.style.fontFamily = `"${o.styles.fontFamily}", sans-serif`, et.style.color = o.styles.textColor, et.style.fontSize = `${o.styles.fontSize}px`, this.inputElement.addEventListener("input", (v) => {
3267
+ this.handleInput(v);
3268
+ }), this.inputElement.addEventListener("focus", () => {
3269
+ this.containerElement.addClass("focused");
3270
+ }), this.inputElement.addEventListener("blur", (v) => {
3271
+ this.containerElement.removeClass("focused"), this.validateInput(this.inputElement.getElement().value, !0), this.onBlur(v);
3272
+ }), i && this.inputElement.addEventListener("keydown", (v) => {
3273
+ const rt = v;
3274
+ rt.key === "Tab" && !rt.shiftKey && (rt.preventDefault(), i());
3275
+ }), W.appendChild(this.inputElement), this.containerElement.appendChild(W), this.appendChild(this.containerElement), this.helperText = new Ee({
3276
+ text: a || "",
3277
+ visible: t.error
3278
+ }), this.appendChild(this.helperText), t.error && this.containerElement.addClass("error");
3279
+ }
3280
+ handleInput(t) {
3281
+ const r = this.inputElement.getElement(), n = r.value;
3282
+ let d = r.selectionStart || 0;
3283
+ const i = n.replace(/[^\d\s\-+()]/g, "");
3284
+ if (i !== n) {
3285
+ const a = n.length - i.length;
3286
+ r.value = i, d = Math.max(0, d - a), r.setSelectionRange(d, d);
3287
+ }
3288
+ if (i.startsWith("+")) {
3289
+ const a = A(i);
3290
+ if (a?.countryCode && a.countryCode !== this.currentCountryCode) {
3291
+ this.currentCountryCode = a.countryCode, this.updateSelectAndFlag(a.countryCode), r.placeholder = T(a.countryCode);
3292
+ const o = this.countryCodeInput.getElement();
3293
+ o.value = a.countryCode, o.dispatchEvent(new Event("input", { bubbles: !0 }));
3294
+ }
3295
+ } else {
3296
+ const a = this.countrySelect.getElement().value;
3297
+ if (a && a !== this.currentCountryCode && (this.currentCountryCode = a, this.countryFlagDisplay.setText(F(a)), r.placeholder = T(a)), i) {
3298
+ const o = i.slice(0, d).replace(/\D/g, "").length, u = ot(
3299
+ i,
3300
+ this.currentCountryCode
3301
+ );
3302
+ if (u !== i) {
3303
+ r.value = u;
3304
+ let $ = 0, l = u.length;
3305
+ for (let s = 0; s < u.length; s++)
3306
+ if (/\d/.test(u[s]) && $++, $ === o) {
3307
+ l = s + 1;
3308
+ break;
3309
+ }
3310
+ r.setSelectionRange(l, l);
3311
+ }
3312
+ }
3313
+ }
3314
+ this.validateInput(i), this.onChange(t);
3315
+ }
3316
+ handleCountryChange(t) {
3317
+ const r = this.inputElement.getElement(), n = r.value;
3318
+ this.userSelectedCountry = !0, this.currentCountryCode = t, this.countryFlagDisplay.setText(F(t));
3319
+ const d = this.countryCodeInput.getElement();
3320
+ d.value = t;
3321
+ const i = new Event("input", { bubbles: !0 });
3322
+ if (d.dispatchEvent(i), this.onChange(i), n.startsWith("+")) {
3323
+ const a = A(n);
3324
+ !a || a.countryCode !== t ? this.showValidationError() : this.clearValidationError();
3325
+ return;
3326
+ }
3327
+ r.placeholder = T(t), n && this.validateInput(n);
3328
+ }
3329
+ /**
3330
+ * Validate the current input value with smart length-awareness.
3331
+ *
3332
+ * - While the typed digit count is within the expected national number length,
3333
+ * errors are suppressed so the user can finish typing.
3334
+ * - Once the user exceeds that length with an invalid number, the error is shown.
3335
+ * - On blur (`isBlur = true`) the error is always shown when the number is invalid.
3336
+ */
3337
+ validateInput(t, r = !1) {
3338
+ if (!t) {
3339
+ this.clearValidationError();
3340
+ return;
3341
+ }
3342
+ if (Zd(t, this.currentCountryCode)) {
3343
+ this.clearValidationError();
3344
+ return;
3345
+ }
3346
+ if (!r) {
3347
+ const n = Jd(this.currentCountryCode);
3348
+ let d;
3349
+ if (t.startsWith("+")) {
3350
+ const i = A(t);
3351
+ d = i ? i.nationalNumber.replace(/\D/g, "").length : 0;
3352
+ } else
3353
+ d = t.replace(/\D/g, "").length;
3354
+ if (d <= n) {
3355
+ this.clearValidationError();
3356
+ return;
3357
+ }
3358
+ }
3359
+ this.showValidationError();
3360
+ }
3361
+ showValidationError() {
3362
+ this.containerElement.addClass("error");
3363
+ const t = this.translationFunc("validation.phoneNumberInvalid");
3364
+ this.helperText && this.helperText.setText(t).toggleVisibility(!0);
3365
+ }
3366
+ clearValidationError() {
3367
+ this.containerElement.removeClass("error"), this.helperText && this.helperText.toggleVisibility(!1);
3368
+ }
3369
+ getValue() {
3370
+ const t = this.inputElement.getElement().value;
3371
+ return t ? Xd(t, this.currentCountryCode) || t : "";
3372
+ }
3373
+ setValue(t) {
3374
+ if (!t)
3375
+ return this.inputElement.getElement().value = "", this.userSelectedCountry = !1, this;
3376
+ if (t.startsWith("+")) {
3377
+ const r = A(t);
3378
+ if (r) {
3379
+ const n = ot(t, r.countryCode);
3380
+ return this.inputElement.getElement().value = n, this.userSelectedCountry || (this.currentCountryCode = r.countryCode, this.updateSelectAndFlag(r.countryCode)), this.inputElement.getElement().placeholder = T(
3381
+ this.currentCountryCode
3382
+ ), this;
3383
+ }
3384
+ }
3385
+ return this.inputElement.getElement().value = t, this;
3386
+ }
3387
+ setCountry(t) {
3388
+ return this.currentCountryCode = t, this.updateSelectAndFlag(t), this.inputElement.getElement().placeholder = T(t), this;
3389
+ }
3390
+ getCountry() {
3391
+ return this.currentCountryCode;
3392
+ }
3393
+ setError(t, r) {
3394
+ const n = this.inputElement.getElement();
3395
+ return document.activeElement !== n && (t ? (this.containerElement.addClass("error"), this.helperText && r ? this.helperText.setText(r).toggleVisibility(!0) : this.helperText && this.helperText.toggleVisibility(!0)) : (this.containerElement.removeClass("error"), this.helperText && this.helperText.toggleVisibility(!1))), this;
3396
+ }
3397
+ focus() {
3398
+ this.inputElement.getElement().focus();
3399
+ }
3400
+ buildSelectOptions(t, r) {
3401
+ const n = this.countrySelect.getElement();
3402
+ n.innerHTML = "";
3403
+ const d = t.reduce(
3404
+ (i, a) => {
3405
+ const o = a.name.normalize("NFD")[0].toUpperCase();
3406
+ return i[o] || (i[o] = []), i[o].push(a), i;
3407
+ },
3408
+ {}
3409
+ );
3410
+ Object.keys(d).sort((i, a) => i.localeCompare(a, this.locale)).forEach((i) => {
3411
+ const a = document.createElement("optgroup");
3412
+ a.label = i, d[i].forEach((o) => {
3413
+ const u = document.createElement("option");
3414
+ u.value = o.code, u.textContent = `${o.name} (${o.dialCode})`, u.selected = o.code === r, a.appendChild(u);
3415
+ }), n.appendChild(a);
3416
+ });
3417
+ }
3418
+ updateSelectAndFlag(t) {
3419
+ this.countrySelect.getElement().value = t, this.countryFlagDisplay.setText(F(t));
3420
+ }
3421
+ }
3422
+ export {
3423
+ qd as PhoneNumberField,
3424
+ ot as formatPhoneAsYouType,
3425
+ Yd as getCountriesForDialSelector,
3426
+ zd as getCountryDialCodeInfo,
3427
+ Jd as getExpectedDigitLength,
3428
+ F as getFlagEmoji,
3429
+ T as getPlaceholder,
3430
+ Zd as isValidPhoneNumber,
3431
+ A as parseE164,
3432
+ Xd as toE164
3433
+ };