@feedmepos/mf-connect 0.1.98-beta.40 → 0.1.98-beta.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/App-C6JJ9uQ8.js +4785 -0
  2. package/dist/AuditLogs-CAlgtDgx.js +2014 -0
  3. package/dist/Bin-D8jwhwER.js +166 -0
  4. package/dist/Broadcast-CP8DRfkT.js +269 -0
  5. package/dist/CampaignAnalytic-MVjYBFvu.js +1826 -0
  6. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DeLURz87.js +122 -0
  7. package/dist/Card-QribXJwZ.js +911 -0
  8. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
  9. package/dist/Collections-X9xbt43V.js +541 -0
  10. package/dist/Credit-QmbsW1eb.js +286 -0
  11. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  12. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +58 -0
  13. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-ClNieHSo.js +3382 -0
  14. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CrGHTNhg.js +351 -0
  15. package/dist/Experience-CPGMg847.js +285 -0
  16. package/dist/FileSaver.min-CK67LsPG.js +74 -0
  17. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  18. package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
  19. package/dist/Game-BrkiEFCS.js +356 -0
  20. package/dist/GiftCardSetup-DXNBHF1A.js +542 -0
  21. package/dist/Grab-BgtDzK1B.js +301 -0
  22. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-Dzv2AkKN.js +145 -0
  23. package/dist/Index-KJgzalOd.js +259 -0
  24. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  25. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-C6SBLJGQ.js +48 -0
  26. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-Dj74lJ7b.js +18737 -0
  27. package/dist/LoyaltyDashboard-B2JpbC01.js +1345 -0
  28. package/dist/MainLayout-DlfTKHQ-.js +143 -0
  29. package/dist/Marketing-Crx_JQpi.js +236 -0
  30. package/dist/MarketingMaterialEdit-BfsdcMXJ.js +1036 -0
  31. package/dist/Member-C50Nrsko.js +281 -0
  32. package/dist/MemberList-C9uUKw1o.js +1603 -0
  33. package/dist/MemberOverview-wL_ailso.js +58 -0
  34. package/dist/MemberTransactions-DZ7zPOHX.js +45 -0
  35. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Du_ZGsbX.js +60957 -0
  36. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
  37. package/dist/Mission-D_km8zi6.js +360 -0
  38. package/dist/Overview-BBieK6qQ.js +1080 -0
  39. package/dist/Overview-B_kmLOcc.js +1316 -0
  40. package/dist/Point-D0q9N7f9.js +288 -0
  41. package/dist/Promotion-DoFTy-NK.js +423 -0
  42. package/dist/Queue-Dh5sDRHW.js +261 -0
  43. package/dist/Record-0owEBKqN.js +342 -0
  44. package/dist/Review-DV2fnpOH.js +45 -0
  45. package/dist/ReviewFacebookCallback-D8mnAPzR.js +238 -0
  46. package/dist/ReviewGoogleCallback-CLzt_ox2.js +213 -0
  47. package/dist/Reward-Co20Xrss.js +442 -0
  48. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-0qU49c47.js +150 -0
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-qdvaXPhJ.js +1913 -0
  50. package/dist/Segment-7dQKeHWK.js +1017 -0
  51. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BUVrUifO.js +181 -0
  52. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDsV9TD9.js +189 -0
  53. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DqPZpddc.js +226 -0
  54. package/dist/Setting-Bvahxs-y.js +2047 -0
  55. package/dist/SettingAdvertisements-fbXLRwfb.js +264 -0
  56. package/dist/Settings-C_HWDFN8.js +179 -0
  57. package/dist/Store-8yBKDR1b.js +2413 -0
  58. package/dist/StoreRewards-DKaJvoJs.js +540 -0
  59. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-D23XzJD7.js +1075 -0
  60. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-JaFhCK_L.js +7007 -0
  61. package/dist/Tier-CD-CjXC3.js +972 -0
  62. package/dist/Title-C_lcgye8.js +569 -0
  63. package/dist/Transaction-BvUYm-rT.js +39 -0
  64. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-C3Yacz7K.js +130 -0
  65. package/dist/Voucher-CYaG0GLU.js +444 -0
  66. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DF2JqzRe.js +421 -0
  67. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-B4UPqSNc.js +56 -0
  68. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  69. package/dist/app-CE5hQ4Uq.js +60740 -0
  70. package/dist/app-wDQR6dpb.js +39 -0
  71. package/dist/app.js +7 -0
  72. package/dist/business-CE_4siXc.js +82 -0
  73. package/dist/campaign-BP6rvSpg.js +255 -0
  74. package/dist/campaign-CXQtKpeb.js +100 -0
  75. package/dist/campaign-CpzFl8Vr.js +4 -0
  76. package/dist/campaign.enum-Dx-Zo68Q.js +26 -0
  77. package/dist/campaign.fn-DKnBpE1N.js +776 -0
  78. package/dist/collectible.enum-Liy2wH3s.js +19 -0
  79. package/dist/collection.fn-Cg16QZSp.js +26 -0
  80. package/dist/duplicateCampaign-DbtVAGsT.js +51 -0
  81. package/dist/effect-CLI8NI4O.js +89 -0
  82. package/dist/email-addresses-DlLiZ1io.js +705 -0
  83. package/dist/export-6Hr34dBU.js +97 -0
  84. package/dist/feedme.ico +0 -0
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/helper-vkjFqj70.js +86 -0
  87. package/dist/index-BIyKgw4m.js +72 -0
  88. package/dist/index-BLQJ-rv3.js +31 -0
  89. package/dist/index-BbTIqReL.js +67 -0
  90. package/dist/index-BuMfQxMf.js +897 -0
  91. package/dist/index-C8cXXcLk.js +45 -0
  92. package/dist/index-CSVhIZSY.js +8919 -0
  93. package/dist/index-CVHacTbc.js +151 -0
  94. package/dist/index-C_H8jFYf.js +2743 -0
  95. package/dist/index-CmNsGhDf.js +2706 -0
  96. package/dist/index-CnTeeRyJ.js +53 -0
  97. package/dist/index-CuvNtC_M.js +61 -0
  98. package/dist/index-CzbNobLv.js +1139 -0
  99. package/dist/index-D06n1h1b.js +146 -0
  100. package/dist/index-D4SDAfbP.js +27550 -0
  101. package/dist/index-DVnYQ3Hs.js +85 -0
  102. package/dist/index-DcjnS5Sv.js +28900 -0
  103. package/dist/index-Dx9h0FNH.js +3 -0
  104. package/dist/index-YgP4ihQL.js +32 -0
  105. package/dist/index-kedErkLZ.js +2963 -0
  106. package/dist/index-lnQT4P3d.js +55 -0
  107. package/dist/index-vh86FiIQ.js +10 -0
  108. package/dist/index.esm2017-Jhv2lkrq.js +3069 -0
  109. package/dist/loading-NY-FPxVY.js +72 -0
  110. package/dist/lodash-BC_P6kLg.js +3678 -0
  111. package/dist/membership-BWaK-9FY.js +255 -0
  112. package/dist/moment-D7p2TMB-.js +2583 -0
  113. package/dist/money-COoh4GXK.js +15 -0
  114. package/dist/number-BX5OEXgq.js +12 -0
  115. package/dist/object-BYyQ0PZp.js +18 -0
  116. package/dist/objectId-dwaoBfJX.js +7 -0
  117. package/dist/objectid-1SUSRtmY.js +145 -0
  118. package/dist/plugins-ur-FAoye.js +1788 -0
  119. package/dist/remy-Qz_pNsUS.js +13 -0
  120. package/dist/reward-DSsylZ22.js +36 -0
  121. package/dist/rule-BM9GUd1C.js +1969 -0
  122. package/dist/rule-builder-gC9LH2AC.js +126 -0
  123. package/dist/string-Gcy5IM_H.js +32 -0
  124. package/dist/style.css +4 -0
  125. package/dist/template-CUV3AMFI.js +188 -0
  126. package/dist/tier-BJDhpH6X.js +4 -0
  127. package/dist/tiers/tier=1.png +0 -0
  128. package/dist/tiers/tier=2.png +0 -0
  129. package/dist/tiers/tier=3.png +0 -0
  130. package/dist/tiers/tier=4.png +0 -0
  131. package/dist/timezone-BFZhekOU.js +20 -0
  132. package/dist/titles/type=diamond.png +0 -0
  133. package/dist/titles/type=drinks.png +0 -0
  134. package/dist/titles/type=food.png +0 -0
  135. package/dist/titles/type=heart.png +0 -0
  136. package/dist/titles/type=medal.png +0 -0
  137. package/dist/titles/type=spend.png +0 -0
  138. package/dist/titles/type=thank-you.png +0 -0
  139. package/dist/titles/type=thumbs-up.png +0 -0
  140. package/dist/titles/type=years.png +0 -0
  141. package/dist/transaction.fn-C5MlkEIC.js +64 -0
  142. package/dist/trigger-CbjiuoSo.js +213 -0
  143. package/dist/tslib.es6-BCqqvLQ_.js +44 -0
  144. package/dist/type_drinks-D6jnpvwV.js +4 -0
  145. package/dist/useMarketingMaterialActions-BLisTieA.js +96 -0
  146. package/dist/usePagination-Caah4sJr.js +220 -0
  147. package/dist/user-BZC4P_jL.js +55 -0
  148. package/dist/vue-i18n-BYz7XAr_.js +2365 -0
  149. package/dist/xlsx-Bn7BqUFA.js +15491 -0
  150. package/dist/zod-DHH42rXG.js +91 -0
  151. package/package.json +1 -1
@@ -0,0 +1,2963 @@
1
+ import { a as Y, h as yd, i as hd, g as ae } from "./index-CSVhIZSY.js";
2
+ import { F as a, m as _, d as vd, a as U, c as de } from "./index-D4SDAfbP.js";
3
+ import { z as t } from "./index-C_H8jFYf.js";
4
+ import "vue";
5
+ import { F as He } from "./collectible.enum-Liy2wH3s.js";
6
+ const Ed = { 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", "[024-7]\\d{7}", [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", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\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}"], ["8[129]\\d{7}"], 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", "8776\\d{4}|(?:[27]\\d|61)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-8]"]]]], 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", "(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|80[6-9]|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{8}|800\\d{5,6}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2358]"], "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", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|80[6-9]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\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}"], ["8[129]\\d{7}"], 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", "8\\d{13}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "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", ["20"]], ["(\\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]"]], ["(\\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", ["20"]]], 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", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\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}"], ["8[129]\\d{7}"], 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", "7091\\d{5}|(?:[56]9|[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", ["30|(?: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", "30|(?: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", "[78]\\d{8}|[2-9]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-9]"], "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, "[3489]", 0, "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|[3689]\\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-579]|61)", "5(?:[0-579]|61[06])", "5(?:[0-579]|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-2478]|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|5[12]"]], ["(\\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})|5(?:0\\d{3}|2[0-2]))\\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}"]]] } };
7
+ function Cd(e, d) {
8
+ var n = Array.prototype.slice.call(d);
9
+ return n.push(Ed), e.apply(this, n);
10
+ }
11
+ function ye(e, d) {
12
+ e = e.split("-"), d = d.split("-");
13
+ for (var n = e[0].split("."), r = d[0].split("."), i = 0; i < 3; i++) {
14
+ var o = Number(n[i]), $ = Number(r[i]);
15
+ if (o > $) return 1;
16
+ if ($ > o) return -1;
17
+ if (!isNaN(o) && isNaN($)) return 1;
18
+ if (isNaN(o) && !isNaN($)) return -1;
19
+ }
20
+ return e[1] && d[1] ? e[1] > d[1] ? 1 : e[1] < d[1] ? -1 : 0 : !e[1] && d[1] ? 1 : e[1] && !d[1] ? -1 : 0;
21
+ }
22
+ var Pd = {}.constructor;
23
+ function F(e) {
24
+ return e != null && e.constructor === Pd;
25
+ }
26
+ function T(e) {
27
+ "@babel/helpers - typeof";
28
+ return T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
29
+ return typeof d;
30
+ } : function(d) {
31
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
32
+ }, T(e);
33
+ }
34
+ function X(e, d) {
35
+ if (!(e instanceof d)) throw new TypeError("Cannot call a class as a function");
36
+ }
37
+ function Nd(e, d) {
38
+ for (var n = 0; n < d.length; n++) {
39
+ var r = d[n];
40
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ad(r.key), r);
41
+ }
42
+ }
43
+ function q(e, d, n) {
44
+ return d && Nd(e.prototype, d), Object.defineProperty(e, "prototype", { writable: !1 }), e;
45
+ }
46
+ function Ad(e) {
47
+ var d = Sd(e, "string");
48
+ return T(d) == "symbol" ? d : d + "";
49
+ }
50
+ function Sd(e, d) {
51
+ if (T(e) != "object" || !e) return e;
52
+ var n = e[Symbol.toPrimitive];
53
+ if (n !== void 0) {
54
+ var r = n.call(e, d);
55
+ if (T(r) != "object") return r;
56
+ throw new TypeError("@@toPrimitive must return a primitive value.");
57
+ }
58
+ return String(e);
59
+ }
60
+ var Fd = "1.2.0", Td = "1.7.35", he = " ext. ", Id = /^\d+$/, g = /* @__PURE__ */ function() {
61
+ function e(d) {
62
+ X(this, e), Ke(d), this.metadata = d, We.call(this, d);
63
+ }
64
+ return q(e, [{
65
+ key: "getCountries",
66
+ value: function() {
67
+ return Object.keys(this.metadata.countries).filter(function(n) {
68
+ return n !== "001";
69
+ });
70
+ }
71
+ }, {
72
+ key: "getCountryMetadata",
73
+ value: function(n) {
74
+ return this.metadata.countries[n];
75
+ }
76
+ }, {
77
+ key: "nonGeographic",
78
+ value: function() {
79
+ if (!(this.v1 || this.v2 || this.v3))
80
+ return this.metadata.nonGeographic || this.metadata.nonGeographical;
81
+ }
82
+ }, {
83
+ key: "hasCountry",
84
+ value: function(n) {
85
+ return this.getCountryMetadata(n) !== void 0;
86
+ }
87
+ }, {
88
+ key: "hasCallingCode",
89
+ value: function(n) {
90
+ if (this.getCountryCodesForCallingCode(n))
91
+ return !0;
92
+ if (this.nonGeographic()) {
93
+ if (this.nonGeographic()[n])
94
+ return !0;
95
+ } else {
96
+ var r = this.countryCallingCodes()[n];
97
+ if (r && r.length === 1 && r[0] === "001")
98
+ return !0;
99
+ }
100
+ }
101
+ }, {
102
+ key: "isNonGeographicCallingCode",
103
+ value: function(n) {
104
+ return this.nonGeographic() ? !!this.nonGeographic()[n] : !this.getCountryCodesForCallingCode(n);
105
+ }
106
+ // Deprecated.
107
+ }, {
108
+ key: "country",
109
+ value: function(n) {
110
+ return this.selectNumberingPlan(n);
111
+ }
112
+ }, {
113
+ key: "selectNumberingPlan",
114
+ value: function(n, r) {
115
+ if (n && Id.test(n) && (r = n, n = null), n && n !== "001") {
116
+ if (!this.hasCountry(n))
117
+ throw new Error("Unknown country: ".concat(n));
118
+ this.numberingPlan = new ve(this.getCountryMetadata(n), this);
119
+ } else if (r) {
120
+ if (!this.hasCallingCode(r))
121
+ throw new Error("Unknown calling code: ".concat(r));
122
+ this.numberingPlan = new ve(this.getNumberingPlanMetadata(r), this);
123
+ } else
124
+ this.numberingPlan = void 0;
125
+ return this;
126
+ }
127
+ }, {
128
+ key: "getCountryCodesForCallingCode",
129
+ value: function(n) {
130
+ var r = this.countryCallingCodes()[n];
131
+ if (r)
132
+ return r.length === 1 && r[0].length === 3 ? void 0 : r;
133
+ }
134
+ }, {
135
+ key: "getCountryCodeForCallingCode",
136
+ value: function(n) {
137
+ var r = this.getCountryCodesForCallingCode(n);
138
+ if (r)
139
+ return r[0];
140
+ }
141
+ }, {
142
+ key: "getNumberingPlanMetadata",
143
+ value: function(n) {
144
+ var r = this.getCountryCodeForCallingCode(n);
145
+ if (r)
146
+ return this.getCountryMetadata(r);
147
+ if (this.nonGeographic()) {
148
+ var i = this.nonGeographic()[n];
149
+ if (i)
150
+ return i;
151
+ } else {
152
+ var o = this.countryCallingCodes()[n];
153
+ if (o && o.length === 1 && o[0] === "001")
154
+ return this.metadata.countries["001"];
155
+ }
156
+ }
157
+ // Deprecated.
158
+ }, {
159
+ key: "countryCallingCode",
160
+ value: function() {
161
+ return this.numberingPlan.callingCode();
162
+ }
163
+ // Deprecated.
164
+ }, {
165
+ key: "IDDPrefix",
166
+ value: function() {
167
+ return this.numberingPlan.IDDPrefix();
168
+ }
169
+ // Deprecated.
170
+ }, {
171
+ key: "defaultIDDPrefix",
172
+ value: function() {
173
+ return this.numberingPlan.defaultIDDPrefix();
174
+ }
175
+ // Deprecated.
176
+ }, {
177
+ key: "nationalNumberPattern",
178
+ value: function() {
179
+ return this.numberingPlan.nationalNumberPattern();
180
+ }
181
+ // Deprecated.
182
+ }, {
183
+ key: "possibleLengths",
184
+ value: function() {
185
+ return this.numberingPlan.possibleLengths();
186
+ }
187
+ // Deprecated.
188
+ }, {
189
+ key: "formats",
190
+ value: function() {
191
+ return this.numberingPlan.formats();
192
+ }
193
+ // Deprecated.
194
+ }, {
195
+ key: "nationalPrefixForParsing",
196
+ value: function() {
197
+ return this.numberingPlan.nationalPrefixForParsing();
198
+ }
199
+ // Deprecated.
200
+ }, {
201
+ key: "nationalPrefixTransformRule",
202
+ value: function() {
203
+ return this.numberingPlan.nationalPrefixTransformRule();
204
+ }
205
+ // Deprecated.
206
+ }, {
207
+ key: "leadingDigits",
208
+ value: function() {
209
+ return this.numberingPlan.leadingDigits();
210
+ }
211
+ // Deprecated.
212
+ }, {
213
+ key: "hasTypes",
214
+ value: function() {
215
+ return this.numberingPlan.hasTypes();
216
+ }
217
+ // Deprecated.
218
+ }, {
219
+ key: "type",
220
+ value: function(n) {
221
+ return this.numberingPlan.type(n);
222
+ }
223
+ // Deprecated.
224
+ }, {
225
+ key: "ext",
226
+ value: function() {
227
+ return this.numberingPlan.ext();
228
+ }
229
+ }, {
230
+ key: "countryCallingCodes",
231
+ value: function() {
232
+ return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
233
+ }
234
+ // Deprecated.
235
+ }, {
236
+ key: "chooseCountryByCountryCallingCode",
237
+ value: function(n) {
238
+ return this.selectNumberingPlan(n);
239
+ }
240
+ }, {
241
+ key: "hasSelectedNumberingPlan",
242
+ value: function() {
243
+ return this.numberingPlan !== void 0;
244
+ }
245
+ }]);
246
+ }(), ve = /* @__PURE__ */ function() {
247
+ function e(d, n) {
248
+ X(this, e), this.globalMetadataObject = n, this.metadata = d, We.call(this, n.metadata);
249
+ }
250
+ return q(e, [{
251
+ key: "callingCode",
252
+ value: function() {
253
+ return this.metadata[0];
254
+ }
255
+ // Formatting information for regions which share
256
+ // a country calling code is contained by only one region
257
+ // for performance reasons. For example, for NANPA region
258
+ // ("North American Numbering Plan Administration",
259
+ // which includes USA, Canada, Cayman Islands, Bahamas, etc)
260
+ // it will be contained in the metadata for `US`.
261
+ }, {
262
+ key: "getDefaultCountryMetadataForRegion",
263
+ value: function() {
264
+ return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
265
+ }
266
+ // Is always present.
267
+ }, {
268
+ key: "IDDPrefix",
269
+ value: function() {
270
+ if (!(this.v1 || this.v2))
271
+ return this.metadata[1];
272
+ }
273
+ // Is only present when a country supports multiple IDD prefixes.
274
+ }, {
275
+ key: "defaultIDDPrefix",
276
+ value: function() {
277
+ if (!(this.v1 || this.v2))
278
+ return this.metadata[12];
279
+ }
280
+ }, {
281
+ key: "nationalNumberPattern",
282
+ value: function() {
283
+ return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
284
+ }
285
+ // "possible length" data is always present in Google's metadata.
286
+ }, {
287
+ key: "possibleLengths",
288
+ value: function() {
289
+ if (!this.v1)
290
+ return this.metadata[this.v2 ? 2 : 3];
291
+ }
292
+ }, {
293
+ key: "_getFormats",
294
+ value: function(n) {
295
+ return n[this.v1 ? 2 : this.v2 ? 3 : 4];
296
+ }
297
+ // For countries of the same region (e.g. NANPA)
298
+ // formats are all stored in the "main" country for that region.
299
+ // E.g. "RU" and "KZ", "US" and "CA".
300
+ }, {
301
+ key: "formats",
302
+ value: function() {
303
+ var n = this, r = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
304
+ return r.map(function(i) {
305
+ return new Rd(i, n);
306
+ });
307
+ }
308
+ }, {
309
+ key: "nationalPrefix",
310
+ value: function() {
311
+ return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
312
+ }
313
+ }, {
314
+ key: "_getNationalPrefixFormattingRule",
315
+ value: function(n) {
316
+ return n[this.v1 ? 4 : this.v2 ? 5 : 6];
317
+ }
318
+ // For countries of the same region (e.g. NANPA)
319
+ // national prefix formatting rule is stored in the "main" country for that region.
320
+ // E.g. "RU" and "KZ", "US" and "CA".
321
+ }, {
322
+ key: "nationalPrefixFormattingRule",
323
+ value: function() {
324
+ return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
325
+ }
326
+ }, {
327
+ key: "_nationalPrefixForParsing",
328
+ value: function() {
329
+ return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
330
+ }
331
+ }, {
332
+ key: "nationalPrefixForParsing",
333
+ value: function() {
334
+ return this._nationalPrefixForParsing() || this.nationalPrefix();
335
+ }
336
+ }, {
337
+ key: "nationalPrefixTransformRule",
338
+ value: function() {
339
+ return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
340
+ }
341
+ }, {
342
+ key: "_getNationalPrefixIsOptionalWhenFormatting",
343
+ value: function() {
344
+ return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
345
+ }
346
+ // For countries of the same region (e.g. NANPA)
347
+ // "national prefix is optional when formatting" flag is
348
+ // stored in the "main" country for that region.
349
+ // E.g. "RU" and "KZ", "US" and "CA".
350
+ }, {
351
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
352
+ value: function() {
353
+ return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
354
+ }
355
+ }, {
356
+ key: "leadingDigits",
357
+ value: function() {
358
+ return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
359
+ }
360
+ }, {
361
+ key: "types",
362
+ value: function() {
363
+ return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
364
+ }
365
+ }, {
366
+ key: "hasTypes",
367
+ value: function() {
368
+ return this.types() && this.types().length === 0 ? !1 : !!this.types();
369
+ }
370
+ }, {
371
+ key: "type",
372
+ value: function(n) {
373
+ if (this.hasTypes() && Ee(this.types(), n))
374
+ return new Md(Ee(this.types(), n), this);
375
+ }
376
+ }, {
377
+ key: "ext",
378
+ value: function() {
379
+ return this.v1 || this.v2 ? he : this.metadata[13] || he;
380
+ }
381
+ }]);
382
+ }(), Rd = /* @__PURE__ */ function() {
383
+ function e(d, n) {
384
+ X(this, e), this._format = d, this.metadata = n;
385
+ }
386
+ return q(e, [{
387
+ key: "pattern",
388
+ value: function() {
389
+ return this._format[0];
390
+ }
391
+ }, {
392
+ key: "format",
393
+ value: function() {
394
+ return this._format[1];
395
+ }
396
+ }, {
397
+ key: "leadingDigitsPatterns",
398
+ value: function() {
399
+ return this._format[2] || [];
400
+ }
401
+ }, {
402
+ key: "nationalPrefixFormattingRule",
403
+ value: function() {
404
+ return this._format[3] || this.metadata.nationalPrefixFormattingRule();
405
+ }
406
+ }, {
407
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
408
+ value: function() {
409
+ return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
410
+ }
411
+ }, {
412
+ key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
413
+ value: function() {
414
+ return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
415
+ }
416
+ // Checks whether national prefix formatting rule contains national prefix.
417
+ }, {
418
+ key: "usesNationalPrefix",
419
+ value: function() {
420
+ return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
421
+ !Od.test(this.nationalPrefixFormattingRule()));
422
+ }
423
+ }, {
424
+ key: "internationalFormat",
425
+ value: function() {
426
+ return this._format[5] || this.format();
427
+ }
428
+ }]);
429
+ }(), Od = /^\(?\$1\)?$/, Md = /* @__PURE__ */ function() {
430
+ function e(d, n) {
431
+ X(this, e), this.type = d, this.metadata = n;
432
+ }
433
+ return q(e, [{
434
+ key: "pattern",
435
+ value: function() {
436
+ return this.metadata.v1 ? this.type : this.type[0];
437
+ }
438
+ }, {
439
+ key: "possibleLengths",
440
+ value: function() {
441
+ if (!this.metadata.v1)
442
+ return this.type[1] || this.metadata.possibleLengths();
443
+ }
444
+ }]);
445
+ }();
446
+ function Ee(e, d) {
447
+ switch (d) {
448
+ case "FIXED_LINE":
449
+ return e[0];
450
+ case "MOBILE":
451
+ return e[1];
452
+ case "TOLL_FREE":
453
+ return e[2];
454
+ case "PREMIUM_RATE":
455
+ return e[3];
456
+ case "PERSONAL_NUMBER":
457
+ return e[4];
458
+ case "VOICEMAIL":
459
+ return e[5];
460
+ case "UAN":
461
+ return e[6];
462
+ case "PAGER":
463
+ return e[7];
464
+ case "VOIP":
465
+ return e[8];
466
+ case "SHARED_COST":
467
+ return e[9];
468
+ }
469
+ }
470
+ function Ke(e) {
471
+ if (!e)
472
+ throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
473
+ if (!F(e) || !F(e.countries))
474
+ throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(F(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + xd(e) + ": " + e, "."));
475
+ }
476
+ var xd = function(d) {
477
+ return T(d);
478
+ };
479
+ function se(e, d) {
480
+ if (d = new g(d), d.hasCountry(e))
481
+ return d.selectNumberingPlan(e).countryCallingCode();
482
+ throw new Error("Unknown country: ".concat(e));
483
+ }
484
+ function wd(e, d) {
485
+ return d.countries.hasOwnProperty(e);
486
+ }
487
+ function We(e) {
488
+ var d = e.version;
489
+ typeof d == "number" ? (this.v1 = d === 1, this.v2 = d === 2, this.v3 = d === 3, this.v4 = d === 4) : d ? ye(d, Fd) === -1 ? this.v2 = !0 : ye(d, Td) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
490
+ }
491
+ function ue(e, d, n) {
492
+ return Dd(e, d, void 0, n);
493
+ }
494
+ function Dd(e, d, n, r) {
495
+ d && (r = new g(r.metadata), r.selectNumberingPlan(d));
496
+ var i = r.type(n), o = i && i.possibleLengths() || r.possibleLengths();
497
+ if (!o)
498
+ return "IS_POSSIBLE";
499
+ var $ = e.length, s = o[0];
500
+ return s === $ ? "IS_POSSIBLE" : s > $ ? "TOO_SHORT" : o[o.length - 1] < $ ? "TOO_LONG" : o.indexOf($, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
501
+ }
502
+ function Ld(e, d, n) {
503
+ if (d === void 0 && (d = {}), n = new g(n), d.v2) {
504
+ if (!e.countryCallingCode)
505
+ throw new Error("Invalid phone number object passed");
506
+ n.selectNumberingPlan(e.countryCallingCode);
507
+ } else {
508
+ if (!e.phone)
509
+ return !1;
510
+ if (e.country) {
511
+ if (!n.hasCountry(e.country))
512
+ throw new Error("Unknown country: ".concat(e.country));
513
+ n.selectNumberingPlan(e.country);
514
+ } else {
515
+ if (!e.countryCallingCode)
516
+ throw new Error("Invalid phone number object passed");
517
+ n.selectNumberingPlan(e.countryCallingCode);
518
+ }
519
+ }
520
+ if (n.possibleLengths())
521
+ return Ye(e.phone || e.nationalNumber, e.country, n);
522
+ if (e.countryCallingCode && n.isNonGeographicCallingCode(e.countryCallingCode))
523
+ return !0;
524
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
525
+ }
526
+ function Ye(e, d, n) {
527
+ switch (ue(e, d, n)) {
528
+ case "IS_POSSIBLE":
529
+ return !0;
530
+ default:
531
+ return !1;
532
+ }
533
+ }
534
+ function C(e, d) {
535
+ return e = e || "", new RegExp("^(?:" + d + ")$").test(e);
536
+ }
537
+ function jd(e, d) {
538
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
539
+ if (n) return (n = n.call(e)).next.bind(n);
540
+ if (Array.isArray(e) || (n = Bd(e)) || d) {
541
+ n && (e = n);
542
+ var r = 0;
543
+ return function() {
544
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
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 Bd(e, d) {
551
+ if (e) {
552
+ if (typeof e == "string") return Ce(e, d);
553
+ var n = {}.toString.call(e).slice(8, -1);
554
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ce(e, d) : void 0;
555
+ }
556
+ }
557
+ function Ce(e, d) {
558
+ (d == null || d > e.length) && (d = e.length);
559
+ for (var n = 0, r = Array(d); n < d; n++) r[n] = e[n];
560
+ return r;
561
+ }
562
+ var Gd = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
563
+ function le(e, d, n) {
564
+ if (d = d || {}, !(!e.country && !e.countryCallingCode)) {
565
+ n = new g(n), n.selectNumberingPlan(e.country, e.countryCallingCode);
566
+ var r = d.v2 ? e.nationalNumber : e.phone;
567
+ if (C(r, n.nationalNumberPattern())) {
568
+ if (J(r, "FIXED_LINE", n))
569
+ return n.type("MOBILE") && n.type("MOBILE").pattern() === "" || !n.type("MOBILE") || J(r, "MOBILE", n) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
570
+ for (var i = jd(Gd), o; !(o = i()).done; ) {
571
+ var $ = o.value;
572
+ if (J(r, $, n))
573
+ return $;
574
+ }
575
+ }
576
+ }
577
+ }
578
+ function J(e, d, n) {
579
+ var r = n.type(d);
580
+ return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 : C(e, r.pattern());
581
+ }
582
+ function kd(e, d, n) {
583
+ if (d = d || {}, n = new g(n), n.selectNumberingPlan(e.country, e.countryCallingCode), n.hasTypes())
584
+ return le(e, d, n.metadata) !== void 0;
585
+ var r = d.v2 ? e.nationalNumber : e.phone;
586
+ return C(r, n.nationalNumberPattern());
587
+ }
588
+ function Ud(e, d, n) {
589
+ var r = new g(n), i = r.getCountryCodesForCallingCode(e);
590
+ return i ? i.filter(function(o) {
591
+ return Vd(d, o, n);
592
+ }) : [];
593
+ }
594
+ function Vd(e, d, n) {
595
+ var r = new g(n);
596
+ return r.selectNumberingPlan(d), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
597
+ }
598
+ var ce = 2, Hd = 17, Kd = 3, b = "0-90-9٠-٩۰-۹", Wd = "-‐-―−ー-", Yd = "//", Xd = "..", qd = "  ­​⁠ ", zd = "()()[]\\[\\]", Zd = "~⁓∼~", V = "".concat(Wd).concat(Yd).concat(Xd).concat(qd).concat(zd).concat(Zd), fe = "++", Jd = new RegExp("([" + b + "])");
599
+ function Qd(e, d, n, r) {
600
+ if (d) {
601
+ var i = new g(r);
602
+ i.selectNumberingPlan(d, n);
603
+ var o = new RegExp(i.IDDPrefix());
604
+ if (e.search(o) === 0) {
605
+ e = e.slice(e.match(o)[0].length);
606
+ var $ = e.match(Jd);
607
+ if (!($ && $[1] != null && $[1].length > 0 && $[1] === "0"))
608
+ return e;
609
+ }
610
+ }
611
+ }
612
+ function et(e, d) {
613
+ if (e && d.numberingPlan.nationalPrefixForParsing()) {
614
+ var n = new RegExp("^(?:" + d.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
615
+ if (r) {
616
+ var i, o, $ = r.length - 1, s = $ > 0 && r[$];
617
+ if (d.nationalPrefixTransformRule() && s)
618
+ i = e.replace(n, d.nationalPrefixTransformRule()), $ > 1 && (o = r[1]);
619
+ else {
620
+ var u = r[0];
621
+ i = e.slice(u.length), s && (o = r[1]);
622
+ }
623
+ var l;
624
+ if (s) {
625
+ var f = e.indexOf(r[1]), p = e.slice(0, f);
626
+ p === d.numberingPlan.nationalPrefix() && (l = d.numberingPlan.nationalPrefix());
627
+ } else
628
+ l = r[0];
629
+ return {
630
+ nationalNumber: i,
631
+ nationalPrefix: l,
632
+ carrierCode: o
633
+ };
634
+ }
635
+ }
636
+ return {
637
+ nationalNumber: e
638
+ };
639
+ }
640
+ function dt(e, d) {
641
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
642
+ if (n) return (n = n.call(e)).next.bind(n);
643
+ if (Array.isArray(e) || (n = tt(e)) || d) {
644
+ n && (e = n);
645
+ var r = 0;
646
+ return function() {
647
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
648
+ };
649
+ }
650
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
651
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
652
+ }
653
+ function tt(e, d) {
654
+ if (e) {
655
+ if (typeof e == "string") return Pe(e, d);
656
+ var n = {}.toString.call(e).slice(8, -1);
657
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Pe(e, d) : void 0;
658
+ }
659
+ }
660
+ function Pe(e, d) {
661
+ (d == null || d > e.length) && (d = e.length);
662
+ for (var n = 0, r = Array(d); n < d; n++) r[n] = e[n];
663
+ return r;
664
+ }
665
+ function nt(e, d) {
666
+ var n = d.countries, r = d.metadata;
667
+ r = new g(r);
668
+ for (var i = dt(n), o; !(o = i()).done; ) {
669
+ var $ = o.value;
670
+ if (r.selectNumberingPlan($), r.leadingDigits()) {
671
+ if (e && e.search(r.leadingDigits()) === 0)
672
+ return $;
673
+ } else if (le({
674
+ phone: e,
675
+ country: $
676
+ }, void 0, r.metadata))
677
+ return $;
678
+ }
679
+ }
680
+ function Xe(e, d) {
681
+ var n = d.nationalNumber, r = d.metadata, i = r.getCountryCodesForCallingCode(e);
682
+ if (i)
683
+ return i.length === 1 ? i[0] : nt(n, {
684
+ countries: i,
685
+ metadata: r.metadata
686
+ });
687
+ }
688
+ function te(e, d, n) {
689
+ var r = et(e, n), i = r.carrierCode, o = r.nationalNumber;
690
+ if (o !== e) {
691
+ if (!rt(e, o, n))
692
+ return {
693
+ nationalNumber: e
694
+ };
695
+ if (n.numberingPlan.possibleLengths() && (d || (d = Xe(n.numberingPlan.callingCode(), {
696
+ nationalNumber: o,
697
+ metadata: n
698
+ })), !it(o, d, n)))
699
+ return {
700
+ nationalNumber: e
701
+ };
702
+ }
703
+ return {
704
+ nationalNumber: o,
705
+ carrierCode: i
706
+ };
707
+ }
708
+ function rt(e, d, n) {
709
+ return !(C(e, n.nationalNumberPattern()) && !C(d, n.nationalNumberPattern()));
710
+ }
711
+ function it(e, d, n) {
712
+ switch (ue(e, d, n)) {
713
+ case "TOO_SHORT":
714
+ case "INVALID_LENGTH":
715
+ return !1;
716
+ default:
717
+ return !0;
718
+ }
719
+ }
720
+ function ot(e, d, n, r, i) {
721
+ var o = n ? se(n, i) : r;
722
+ if (e.indexOf(o) === 0) {
723
+ i = new g(i), i.selectNumberingPlan(n, o);
724
+ var $ = e.slice(o.length), s = te($, d, i), u = s.nationalNumber, l = te(e, d, i), f = l.nationalNumber;
725
+ if (!C(f, i.nationalNumberPattern()) && C(u, i.nationalNumberPattern()) || ue(f, d, i) === "TOO_LONG")
726
+ return {
727
+ countryCallingCode: o,
728
+ number: $
729
+ };
730
+ }
731
+ return {
732
+ number: e
733
+ };
734
+ }
735
+ function qe(e, d, n, r, i) {
736
+ if (!e)
737
+ return {};
738
+ var o;
739
+ if (e[0] !== "+") {
740
+ var $ = Qd(e, n, r, i);
741
+ if ($ && $ !== e)
742
+ o = !0, e = "+" + $;
743
+ else {
744
+ if (n || r) {
745
+ var s = ot(e, d, n, r, i), u = s.countryCallingCode, l = s.number;
746
+ if (u)
747
+ return {
748
+ countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
749
+ countryCallingCode: u,
750
+ number: l
751
+ };
752
+ }
753
+ return {
754
+ // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
755
+ // countryCallingCodeSource: 'UNSPECIFIED',
756
+ number: e
757
+ };
758
+ }
759
+ }
760
+ if (e[1] === "0")
761
+ return {};
762
+ i = new g(i);
763
+ for (var f = 2; f - 1 <= Kd && f <= e.length; ) {
764
+ var p = e.slice(1, f);
765
+ if (i.hasCallingCode(p))
766
+ return i.selectNumberingPlan(p), {
767
+ countryCallingCodeSource: o ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
768
+ countryCallingCode: p,
769
+ number: e.slice(f)
770
+ };
771
+ f++;
772
+ }
773
+ return {};
774
+ }
775
+ function $t(e) {
776
+ return e.replace(new RegExp("[".concat(V, "]+"), "g"), " ").trim();
777
+ }
778
+ var at = /(\$\d)/;
779
+ function st(e, d, n) {
780
+ var r = n.useInternationalFormat, i = n.withNationalPrefix, o = e.replace(new RegExp(d.pattern()), r ? d.internationalFormat() : (
781
+ // This library doesn't use `domestic_carrier_code_formatting_rule`,
782
+ // because that one is only used when formatting phone numbers
783
+ // for dialing from a mobile phone, and this is not a dialing library.
784
+ // carrierCode && format.domesticCarrierCodeFormattingRule()
785
+ // // First, replace the $CC in the formatting rule with the desired carrier code.
786
+ // // Then, replace the $FG in the formatting rule with the first group
787
+ // // and the carrier code combined in the appropriate way.
788
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
789
+ // : (
790
+ // withNationalPrefix && format.nationalPrefixFormattingRule()
791
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
792
+ // : format.format()
793
+ // )
794
+ i && d.nationalPrefixFormattingRule() ? d.format().replace(at, d.nationalPrefixFormattingRule()) : d.format()
795
+ ));
796
+ return r ? $t(o) : o;
797
+ }
798
+ var ut = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
799
+ function lt(e, d, n) {
800
+ var r = new g(n);
801
+ if (r.selectNumberingPlan(e, d), r.defaultIDDPrefix())
802
+ return r.defaultIDDPrefix();
803
+ if (ut.test(r.IDDPrefix()))
804
+ return r.IDDPrefix();
805
+ }
806
+ var ct = ";ext=", S = function(d) {
807
+ return "([".concat(b, "]{1,").concat(d, "})");
808
+ };
809
+ function ze(e) {
810
+ var d = "20", n = "15", r = "9", i = "6", o = "[  \\t,]*", $ = "[:\\..]?[  \\t,-]*", s = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", f = "[- ]+", p = "[  \\t]*", y = "(?:,{2}|;)", N = ct + S(d), R = o + u + $ + S(d) + s, gd = o + l + $ + S(r) + s, pd = f + S(i) + "#", bd = p + y + $ + S(n) + s, _d = p + "(?:,)+" + $ + S(r) + s;
811
+ return N + "|" + R + "|" + gd + "|" + pd + "|" + bd + "|" + _d;
812
+ }
813
+ var ft = "[" + b + "]{" + ce + "}", mt = "[" + fe + "]{0,1}(?:[" + V + "]*[" + b + "]){3,}[" + V + b + "]*", gt = new RegExp("^[" + fe + "]{0,1}(?:[" + V + "]*[" + b + "]){1,2}$", "i"), pt = mt + // Phone number extensions
814
+ "(?:" + ze() + ")?", bt = new RegExp(
815
+ // Either a short two-digit-only phone number
816
+ "^" + ft + "$|^" + pt + "$",
817
+ "i"
818
+ );
819
+ function _t(e) {
820
+ return e.length >= ce && bt.test(e);
821
+ }
822
+ function yt(e) {
823
+ return gt.test(e);
824
+ }
825
+ function ht(e) {
826
+ var d = e.number, n = e.ext;
827
+ if (!d)
828
+ return "";
829
+ if (d[0] !== "+")
830
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
831
+ return "tel:".concat(d).concat(n ? ";ext=" + n : "");
832
+ }
833
+ var Ne = {
834
+ formatExtension: function(d, n, r) {
835
+ return "".concat(d).concat(r.ext()).concat(n);
836
+ }
837
+ };
838
+ function vt(e, d, n, r) {
839
+ if (n ? n = Pt({}, Ne, n) : n = Ne, r = new g(r), e.country && e.country !== "001") {
840
+ if (!r.hasCountry(e.country))
841
+ throw new Error("Unknown country: ".concat(e.country));
842
+ r.selectNumberingPlan(e.country);
843
+ } else if (e.countryCallingCode)
844
+ r.selectNumberingPlan(e.countryCallingCode);
845
+ else return e.phone || "";
846
+ var i = r.countryCallingCode(), o = n.v2 ? e.nationalNumber : e.phone, $;
847
+ switch (d) {
848
+ case "NATIONAL":
849
+ return o ? ($ = H(o, e.carrierCode, "NATIONAL", r, n), Q($, e.ext, r, n.formatExtension)) : "";
850
+ case "INTERNATIONAL":
851
+ return o ? ($ = H(o, null, "INTERNATIONAL", r, n), $ = "+".concat(i, " ").concat($), Q($, e.ext, r, n.formatExtension)) : "+".concat(i);
852
+ case "E.164":
853
+ return "+".concat(i).concat(o);
854
+ case "RFC3966":
855
+ return ht({
856
+ number: "+".concat(i).concat(o),
857
+ ext: e.ext
858
+ });
859
+ case "IDD":
860
+ if (!n.fromCountry)
861
+ return;
862
+ var s = Ct(o, e.carrierCode, i, n.fromCountry, r);
863
+ return s ? Q(s, e.ext, r, n.formatExtension) : void 0;
864
+ default:
865
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(d, '"'));
866
+ }
867
+ }
868
+ function H(e, d, n, r, i) {
869
+ var o = Et(r.formats(), e);
870
+ return o ? st(e, o, {
871
+ useInternationalFormat: n === "INTERNATIONAL",
872
+ withNationalPrefix: !(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
873
+ carrierCode: d,
874
+ metadata: r
875
+ }) : e;
876
+ }
877
+ function Et(e, d) {
878
+ return Nt(e, function(n) {
879
+ if (n.leadingDigitsPatterns().length > 0) {
880
+ var r = n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length - 1];
881
+ if (d.search(r) !== 0)
882
+ return !1;
883
+ }
884
+ return C(d, n.pattern());
885
+ });
886
+ }
887
+ function Q(e, d, n, r) {
888
+ return d ? r(e, d, n) : e;
889
+ }
890
+ function Ct(e, d, n, r, i) {
891
+ var o = se(r, i.metadata);
892
+ if (o === n) {
893
+ var $ = H(e, d, "NATIONAL", i);
894
+ return n === "1" ? n + " " + $ : $;
895
+ }
896
+ var s = lt(r, void 0, i.metadata);
897
+ if (s)
898
+ return "".concat(s, " ").concat(n, " ").concat(H(e, null, "INTERNATIONAL", i));
899
+ }
900
+ function Pt() {
901
+ for (var e = 1, d = arguments.length, n = new Array(d), r = 0; r < d; r++)
902
+ n[r] = arguments[r];
903
+ for (; e < n.length; ) {
904
+ if (n[e])
905
+ for (var i in n[e])
906
+ n[0][i] = n[e][i];
907
+ e++;
908
+ }
909
+ return n[0];
910
+ }
911
+ function Nt(e, d) {
912
+ for (var n = 0; n < e.length; ) {
913
+ if (d(e[n]))
914
+ return e[n];
915
+ n++;
916
+ }
917
+ }
918
+ function O(e) {
919
+ "@babel/helpers - typeof";
920
+ return O = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
921
+ return typeof d;
922
+ } : function(d) {
923
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
924
+ }, O(e);
925
+ }
926
+ function Ae(e, d) {
927
+ var n = Object.keys(e);
928
+ if (Object.getOwnPropertySymbols) {
929
+ var r = Object.getOwnPropertySymbols(e);
930
+ d && (r = r.filter(function(i) {
931
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
932
+ })), n.push.apply(n, r);
933
+ }
934
+ return n;
935
+ }
936
+ function Se(e) {
937
+ for (var d = 1; d < arguments.length; d++) {
938
+ var n = arguments[d] != null ? arguments[d] : {};
939
+ d % 2 ? Ae(Object(n), !0).forEach(function(r) {
940
+ At(e, r, n[r]);
941
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ae(Object(n)).forEach(function(r) {
942
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
943
+ });
944
+ }
945
+ return e;
946
+ }
947
+ function At(e, d, n) {
948
+ return (d = Ze(d)) in e ? Object.defineProperty(e, d, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = n, e;
949
+ }
950
+ function St(e, d) {
951
+ if (!(e instanceof d)) throw new TypeError("Cannot call a class as a function");
952
+ }
953
+ function Ft(e, d) {
954
+ for (var n = 0; n < d.length; n++) {
955
+ var r = d[n];
956
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ze(r.key), r);
957
+ }
958
+ }
959
+ function Tt(e, d, n) {
960
+ return d && Ft(e.prototype, d), Object.defineProperty(e, "prototype", { writable: !1 }), e;
961
+ }
962
+ function Ze(e) {
963
+ var d = It(e, "string");
964
+ return O(d) == "symbol" ? d : d + "";
965
+ }
966
+ function It(e, d) {
967
+ if (O(e) != "object" || !e) return e;
968
+ var n = e[Symbol.toPrimitive];
969
+ if (n !== void 0) {
970
+ var r = n.call(e, d || "default");
971
+ if (O(r) != "object") return r;
972
+ throw new TypeError("@@toPrimitive must return a primitive value.");
973
+ }
974
+ return (d === "string" ? String : Number)(e);
975
+ }
976
+ var Rt = /* @__PURE__ */ function() {
977
+ function e(d, n, r) {
978
+ if (St(this, e), !d)
979
+ throw new TypeError("First argument is required");
980
+ if (typeof d != "string")
981
+ throw new TypeError("First argument must be a string");
982
+ if (d[0] === "+" && !n)
983
+ throw new TypeError("`metadata` argument not passed");
984
+ if (F(n) && F(n.countries)) {
985
+ r = n;
986
+ var i = d;
987
+ if (!xt.test(i))
988
+ throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
989
+ var o = qe(i, void 0, void 0, void 0, r), $ = o.countryCallingCode, s = o.number;
990
+ if (n = s, d = $, !n)
991
+ throw new Error("Invalid `number` argument passed: too short");
992
+ }
993
+ if (!n)
994
+ throw new TypeError("`nationalNumber` argument is required");
995
+ if (typeof n != "string")
996
+ throw new TypeError("`nationalNumber` argument must be a string");
997
+ Ke(r);
998
+ var u = Mt(d, r), l = u.country, f = u.countryCallingCode;
999
+ this.country = l, this.countryCallingCode = f, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1000
+ return r;
1001
+ };
1002
+ }
1003
+ return Tt(e, [{
1004
+ key: "setExt",
1005
+ value: function(n) {
1006
+ this.ext = n;
1007
+ }
1008
+ }, {
1009
+ key: "getPossibleCountries",
1010
+ value: function() {
1011
+ return this.country ? [this.country] : Ud(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1012
+ }
1013
+ }, {
1014
+ key: "isPossible",
1015
+ value: function() {
1016
+ return Ld(this, {
1017
+ v2: !0
1018
+ }, this.getMetadata());
1019
+ }
1020
+ }, {
1021
+ key: "isValid",
1022
+ value: function() {
1023
+ return kd(this, {
1024
+ v2: !0
1025
+ }, this.getMetadata());
1026
+ }
1027
+ }, {
1028
+ key: "isNonGeographic",
1029
+ value: function() {
1030
+ var n = new g(this.getMetadata());
1031
+ return n.isNonGeographicCallingCode(this.countryCallingCode);
1032
+ }
1033
+ }, {
1034
+ key: "isEqual",
1035
+ value: function(n) {
1036
+ return this.number === n.number && this.ext === n.ext;
1037
+ }
1038
+ // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1039
+ // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1040
+ // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1041
+ // so eventually I simply commented out this method from the `PhoneNumber` class
1042
+ // and just left the `validatePhoneNumberLength()` function, even though that one would require
1043
+ // and additional step to also validate the actual country / calling code of the phone number.
1044
+ // validateLength() {
1045
+ // const metadata = new Metadata(this.getMetadata())
1046
+ // metadata.selectNumberingPlan(this.countryCallingCode)
1047
+ // const result = checkNumberLength(this.nationalNumber, metadata)
1048
+ // if (result !== 'IS_POSSIBLE') {
1049
+ // return result
1050
+ // }
1051
+ // }
1052
+ }, {
1053
+ key: "getType",
1054
+ value: function() {
1055
+ return le(this, {
1056
+ v2: !0
1057
+ }, this.getMetadata());
1058
+ }
1059
+ }, {
1060
+ key: "format",
1061
+ value: function(n, r) {
1062
+ return vt(this, n, r ? Se(Se({}, r), {}, {
1063
+ v2: !0
1064
+ }) : {
1065
+ v2: !0
1066
+ }, this.getMetadata());
1067
+ }
1068
+ }, {
1069
+ key: "formatNational",
1070
+ value: function(n) {
1071
+ return this.format("NATIONAL", n);
1072
+ }
1073
+ }, {
1074
+ key: "formatInternational",
1075
+ value: function(n) {
1076
+ return this.format("INTERNATIONAL", n);
1077
+ }
1078
+ }, {
1079
+ key: "getURI",
1080
+ value: function(n) {
1081
+ return this.format("RFC3966", n);
1082
+ }
1083
+ }]);
1084
+ }(), Ot = function(d) {
1085
+ return /^[A-Z]{2}$/.test(d);
1086
+ };
1087
+ function Mt(e, d) {
1088
+ var n, r, i = new g(d);
1089
+ return Ot(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : r = e, {
1090
+ country: n,
1091
+ countryCallingCode: r
1092
+ };
1093
+ }
1094
+ var xt = /^\+\d+$/;
1095
+ function ne(e) {
1096
+ "@babel/helpers - typeof";
1097
+ return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
1098
+ return typeof d;
1099
+ } : function(d) {
1100
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
1101
+ }, ne(e);
1102
+ }
1103
+ function wt(e, d, n) {
1104
+ return Object.defineProperty(e, "prototype", { writable: !1 }), e;
1105
+ }
1106
+ function Dt(e, d) {
1107
+ if (!(e instanceof d)) throw new TypeError("Cannot call a class as a function");
1108
+ }
1109
+ function Lt(e, d, n) {
1110
+ return d = x(d), jt(e, me() ? Reflect.construct(d, n || [], x(e).constructor) : d.apply(e, n));
1111
+ }
1112
+ function jt(e, d) {
1113
+ if (d && (ne(d) == "object" || typeof d == "function")) return d;
1114
+ if (d !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1115
+ return Bt(e);
1116
+ }
1117
+ function Bt(e) {
1118
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1119
+ return e;
1120
+ }
1121
+ function Gt(e, d) {
1122
+ if (typeof d != "function" && d !== null) throw new TypeError("Super expression must either be null or a function");
1123
+ e.prototype = Object.create(d && d.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), d && M(e, d);
1124
+ }
1125
+ function re(e) {
1126
+ var d = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1127
+ return re = function(r) {
1128
+ if (r === null || !Ut(r)) return r;
1129
+ if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
1130
+ if (d !== void 0) {
1131
+ if (d.has(r)) return d.get(r);
1132
+ d.set(r, i);
1133
+ }
1134
+ function i() {
1135
+ return kt(r, arguments, x(this).constructor);
1136
+ }
1137
+ return i.prototype = Object.create(r.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), M(i, r);
1138
+ }, re(e);
1139
+ }
1140
+ function kt(e, d, n) {
1141
+ if (me()) return Reflect.construct.apply(null, arguments);
1142
+ var r = [null];
1143
+ r.push.apply(r, d);
1144
+ var i = new (e.bind.apply(e, r))();
1145
+ return n && M(i, n.prototype), i;
1146
+ }
1147
+ function me() {
1148
+ try {
1149
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1150
+ }));
1151
+ } catch {
1152
+ }
1153
+ return (me = function() {
1154
+ return !!e;
1155
+ })();
1156
+ }
1157
+ function Ut(e) {
1158
+ try {
1159
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
1160
+ } catch {
1161
+ return typeof e == "function";
1162
+ }
1163
+ }
1164
+ function M(e, d) {
1165
+ return M = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1166
+ return n.__proto__ = r, n;
1167
+ }, M(e, d);
1168
+ }
1169
+ function x(e) {
1170
+ return x = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(d) {
1171
+ return d.__proto__ || Object.getPrototypeOf(d);
1172
+ }, x(e);
1173
+ }
1174
+ var h = /* @__PURE__ */ function(e) {
1175
+ function d(n) {
1176
+ var r;
1177
+ return Dt(this, d), r = Lt(this, d, [n]), Object.setPrototypeOf(r, d.prototype), r.name = r.constructor.name, r;
1178
+ }
1179
+ return Gt(d, e), wt(d);
1180
+ }(/* @__PURE__ */ re(Error)), Fe = new RegExp("(?:" + ze() + ")$", "i");
1181
+ function Vt(e) {
1182
+ var d = e.search(Fe);
1183
+ if (d < 0)
1184
+ return {};
1185
+ for (var n = e.slice(0, d), r = e.match(Fe), i = 1; i < r.length; ) {
1186
+ if (r[i])
1187
+ return {
1188
+ number: n,
1189
+ ext: r[i]
1190
+ };
1191
+ i++;
1192
+ }
1193
+ }
1194
+ var Ht = {
1195
+ 0: "0",
1196
+ 1: "1",
1197
+ 2: "2",
1198
+ 3: "3",
1199
+ 4: "4",
1200
+ 5: "5",
1201
+ 6: "6",
1202
+ 7: "7",
1203
+ 8: "8",
1204
+ 9: "9",
1205
+ "0": "0",
1206
+ // Fullwidth digit 0
1207
+ "1": "1",
1208
+ // Fullwidth digit 1
1209
+ "2": "2",
1210
+ // Fullwidth digit 2
1211
+ "3": "3",
1212
+ // Fullwidth digit 3
1213
+ "4": "4",
1214
+ // Fullwidth digit 4
1215
+ "5": "5",
1216
+ // Fullwidth digit 5
1217
+ "6": "6",
1218
+ // Fullwidth digit 6
1219
+ "7": "7",
1220
+ // Fullwidth digit 7
1221
+ "8": "8",
1222
+ // Fullwidth digit 8
1223
+ "9": "9",
1224
+ // Fullwidth digit 9
1225
+ "٠": "0",
1226
+ // Arabic-indic digit 0
1227
+ "١": "1",
1228
+ // Arabic-indic digit 1
1229
+ "٢": "2",
1230
+ // Arabic-indic digit 2
1231
+ "٣": "3",
1232
+ // Arabic-indic digit 3
1233
+ "٤": "4",
1234
+ // Arabic-indic digit 4
1235
+ "٥": "5",
1236
+ // Arabic-indic digit 5
1237
+ "٦": "6",
1238
+ // Arabic-indic digit 6
1239
+ "٧": "7",
1240
+ // Arabic-indic digit 7
1241
+ "٨": "8",
1242
+ // Arabic-indic digit 8
1243
+ "٩": "9",
1244
+ // Arabic-indic digit 9
1245
+ "۰": "0",
1246
+ // Eastern-Arabic digit 0
1247
+ "۱": "1",
1248
+ // Eastern-Arabic digit 1
1249
+ "۲": "2",
1250
+ // Eastern-Arabic digit 2
1251
+ "۳": "3",
1252
+ // Eastern-Arabic digit 3
1253
+ "۴": "4",
1254
+ // Eastern-Arabic digit 4
1255
+ "۵": "5",
1256
+ // Eastern-Arabic digit 5
1257
+ "۶": "6",
1258
+ // Eastern-Arabic digit 6
1259
+ "۷": "7",
1260
+ // Eastern-Arabic digit 7
1261
+ "۸": "8",
1262
+ // Eastern-Arabic digit 8
1263
+ "۹": "9"
1264
+ // Eastern-Arabic digit 9
1265
+ };
1266
+ function Kt(e) {
1267
+ return Ht[e];
1268
+ }
1269
+ function Wt(e, d) {
1270
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1271
+ if (n) return (n = n.call(e)).next.bind(n);
1272
+ if (Array.isArray(e) || (n = Yt(e)) || d) {
1273
+ n && (e = n);
1274
+ var r = 0;
1275
+ return function() {
1276
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
1277
+ };
1278
+ }
1279
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1280
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1281
+ }
1282
+ function Yt(e, d) {
1283
+ if (e) {
1284
+ if (typeof e == "string") return Te(e, d);
1285
+ var n = {}.toString.call(e).slice(8, -1);
1286
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Te(e, d) : void 0;
1287
+ }
1288
+ }
1289
+ function Te(e, d) {
1290
+ (d == null || d > e.length) && (d = e.length);
1291
+ for (var n = 0, r = Array(d); n < d; n++) r[n] = e[n];
1292
+ return r;
1293
+ }
1294
+ function Ie(e) {
1295
+ for (var d = "", n = Wt(e.split("")), r; !(r = n()).done; ) {
1296
+ var i = r.value;
1297
+ d += Xt(i, d) || "";
1298
+ }
1299
+ return d;
1300
+ }
1301
+ function Xt(e, d, n) {
1302
+ return e === "+" ? d ? void 0 : "+" : Kt(e);
1303
+ }
1304
+ var Je = "+", qt = "[\\-\\.\\(\\)]?", Re = "([" + b + "]|" + qt + ")", zt = "^\\" + Je + Re + "*[" + b + "]" + Re + "*$", Zt = new RegExp(zt, "g"), ie = b, Jt = "[" + ie + "]+((\\-)*[" + ie + "])*", Qt = "a-zA-Z", en = "[" + Qt + "]+((\\-)*[" + ie + "])*", dn = "^(" + Jt + "\\.)*" + en + "\\.?$", tn = new RegExp(dn, "g"), Oe = "tel:", oe = ";phone-context=", nn = ";isub=";
1305
+ function rn(e) {
1306
+ var d = e.indexOf(oe);
1307
+ if (d < 0)
1308
+ return null;
1309
+ var n = d + oe.length;
1310
+ if (n >= e.length)
1311
+ return "";
1312
+ var r = e.indexOf(";", n);
1313
+ return r >= 0 ? e.substring(n, r) : e.substring(n);
1314
+ }
1315
+ function on(e) {
1316
+ return e === null ? !0 : e.length === 0 ? !1 : Zt.test(e) || tn.test(e);
1317
+ }
1318
+ function $n(e, d) {
1319
+ var n = d.extractFormattedPhoneNumber, r = rn(e);
1320
+ if (!on(r))
1321
+ throw new h("NOT_A_NUMBER");
1322
+ var i;
1323
+ if (r === null)
1324
+ i = n(e) || "";
1325
+ else {
1326
+ i = "", r.charAt(0) === Je && (i += r);
1327
+ var o = e.indexOf(Oe), $;
1328
+ o >= 0 ? $ = o + Oe.length : $ = 0;
1329
+ var s = e.indexOf(oe);
1330
+ i += e.substring($, s);
1331
+ }
1332
+ var u = i.indexOf(nn);
1333
+ if (u > 0 && (i = i.substring(0, u)), i !== "")
1334
+ return i;
1335
+ }
1336
+ var an = 250, sn = new RegExp("[" + fe + b + "]"), un = new RegExp("[^" + b + "#]+$");
1337
+ function ln(e, d, n) {
1338
+ if (d = d || {}, n = new g(n), d.defaultCountry && !n.hasCountry(d.defaultCountry))
1339
+ throw d.v2 ? new h("INVALID_COUNTRY") : new Error("Unknown country: ".concat(d.defaultCountry));
1340
+ var r = fn(e, d.v2, d.extract), i = r.number, o = r.ext, $ = r.error;
1341
+ if (!i) {
1342
+ if (d.v2)
1343
+ throw $ === "TOO_SHORT" ? new h("TOO_SHORT") : new h("NOT_A_NUMBER");
1344
+ return {};
1345
+ }
1346
+ var s = gn(i, d.defaultCountry, d.defaultCallingCode, n), u = s.country, l = s.nationalNumber, f = s.countryCallingCode, p = s.countryCallingCodeSource, y = s.carrierCode;
1347
+ if (!n.hasSelectedNumberingPlan()) {
1348
+ if (d.v2)
1349
+ throw new h("INVALID_COUNTRY");
1350
+ return {};
1351
+ }
1352
+ if (!l || l.length < ce) {
1353
+ if (d.v2)
1354
+ throw new h("TOO_SHORT");
1355
+ return {};
1356
+ }
1357
+ if (l.length > Hd) {
1358
+ if (d.v2)
1359
+ throw new h("TOO_LONG");
1360
+ return {};
1361
+ }
1362
+ if (d.v2) {
1363
+ var N = new Rt(f, l, n.metadata);
1364
+ return u && (N.country = u), y && (N.carrierCode = y), o && (N.ext = o), N.__countryCallingCodeSource = p, N;
1365
+ }
1366
+ var R = (d.extended ? n.hasSelectedNumberingPlan() : u) ? C(l, n.nationalNumberPattern()) : !1;
1367
+ return d.extended ? {
1368
+ country: u,
1369
+ countryCallingCode: f,
1370
+ carrierCode: y,
1371
+ valid: R,
1372
+ possible: R ? !0 : !!(d.extended === !0 && n.possibleLengths() && Ye(l, u, n)),
1373
+ phone: l,
1374
+ ext: o
1375
+ } : R ? mn(u, l, o) : {};
1376
+ }
1377
+ function cn(e, d, n) {
1378
+ if (e) {
1379
+ if (e.length > an) {
1380
+ if (n)
1381
+ throw new h("TOO_LONG");
1382
+ return;
1383
+ }
1384
+ if (d === !1)
1385
+ return e;
1386
+ var r = e.search(sn);
1387
+ if (!(r < 0))
1388
+ return e.slice(r).replace(un, "");
1389
+ }
1390
+ }
1391
+ function fn(e, d, n) {
1392
+ var r = $n(e, {
1393
+ extractFormattedPhoneNumber: function($) {
1394
+ return cn($, n, d);
1395
+ }
1396
+ });
1397
+ if (!r)
1398
+ return {};
1399
+ if (!_t(r))
1400
+ return yt(r) ? {
1401
+ error: "TOO_SHORT"
1402
+ } : {};
1403
+ var i = Vt(r);
1404
+ return i.ext ? i : {
1405
+ number: r
1406
+ };
1407
+ }
1408
+ function mn(e, d, n) {
1409
+ var r = {
1410
+ country: e,
1411
+ phone: d
1412
+ };
1413
+ return n && (r.ext = n), r;
1414
+ }
1415
+ function gn(e, d, n, r) {
1416
+ var i = qe(Ie(e), void 0, d, n, r.metadata), o = i.countryCallingCodeSource, $ = i.countryCallingCode, s = i.number, u;
1417
+ if ($)
1418
+ r.selectNumberingPlan($);
1419
+ else if (s && (d || n))
1420
+ r.selectNumberingPlan(d, n), d && (u = d), $ = n || se(d, r.metadata);
1421
+ else return {};
1422
+ if (!s)
1423
+ return {
1424
+ countryCallingCodeSource: o,
1425
+ countryCallingCode: $
1426
+ };
1427
+ var l = te(Ie(s), u, r), f = l.nationalNumber, p = l.carrierCode, y = Xe($, {
1428
+ nationalNumber: f,
1429
+ metadata: r
1430
+ });
1431
+ return y && (u = y, y === "001" || r.selectNumberingPlan(u)), {
1432
+ country: u,
1433
+ countryCallingCode: $,
1434
+ countryCallingCodeSource: o,
1435
+ nationalNumber: f,
1436
+ carrierCode: p
1437
+ };
1438
+ }
1439
+ function w(e) {
1440
+ "@babel/helpers - typeof";
1441
+ return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
1442
+ return typeof d;
1443
+ } : function(d) {
1444
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
1445
+ }, w(e);
1446
+ }
1447
+ function Me(e, d) {
1448
+ var n = Object.keys(e);
1449
+ if (Object.getOwnPropertySymbols) {
1450
+ var r = Object.getOwnPropertySymbols(e);
1451
+ d && (r = r.filter(function(i) {
1452
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
1453
+ })), n.push.apply(n, r);
1454
+ }
1455
+ return n;
1456
+ }
1457
+ function xe(e) {
1458
+ for (var d = 1; d < arguments.length; d++) {
1459
+ var n = arguments[d] != null ? arguments[d] : {};
1460
+ d % 2 ? Me(Object(n), !0).forEach(function(r) {
1461
+ pn(e, r, n[r]);
1462
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Me(Object(n)).forEach(function(r) {
1463
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1464
+ });
1465
+ }
1466
+ return e;
1467
+ }
1468
+ function pn(e, d, n) {
1469
+ return (d = bn(d)) in e ? Object.defineProperty(e, d, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = n, e;
1470
+ }
1471
+ function bn(e) {
1472
+ var d = _n(e, "string");
1473
+ return w(d) == "symbol" ? d : d + "";
1474
+ }
1475
+ function _n(e, d) {
1476
+ if (w(e) != "object" || !e) return e;
1477
+ var n = e[Symbol.toPrimitive];
1478
+ if (n !== void 0) {
1479
+ var r = n.call(e, d || "default");
1480
+ if (w(r) != "object") return r;
1481
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1482
+ }
1483
+ return (d === "string" ? String : Number)(e);
1484
+ }
1485
+ function yn(e, d, n) {
1486
+ return ln(e, xe(xe({}, d), {}, {
1487
+ v2: !0
1488
+ }), n);
1489
+ }
1490
+ function D(e) {
1491
+ "@babel/helpers - typeof";
1492
+ return D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
1493
+ return typeof d;
1494
+ } : function(d) {
1495
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
1496
+ }, D(e);
1497
+ }
1498
+ function we(e, d) {
1499
+ var n = Object.keys(e);
1500
+ if (Object.getOwnPropertySymbols) {
1501
+ var r = Object.getOwnPropertySymbols(e);
1502
+ d && (r = r.filter(function(i) {
1503
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
1504
+ })), n.push.apply(n, r);
1505
+ }
1506
+ return n;
1507
+ }
1508
+ function hn(e) {
1509
+ for (var d = 1; d < arguments.length; d++) {
1510
+ var n = arguments[d] != null ? arguments[d] : {};
1511
+ d % 2 ? we(Object(n), !0).forEach(function(r) {
1512
+ vn(e, r, n[r]);
1513
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : we(Object(n)).forEach(function(r) {
1514
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1515
+ });
1516
+ }
1517
+ return e;
1518
+ }
1519
+ function vn(e, d, n) {
1520
+ return (d = En(d)) in e ? Object.defineProperty(e, d, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = n, e;
1521
+ }
1522
+ function En(e) {
1523
+ var d = Cn(e, "string");
1524
+ return D(d) == "symbol" ? d : d + "";
1525
+ }
1526
+ function Cn(e, d) {
1527
+ if (D(e) != "object" || !e) return e;
1528
+ var n = e[Symbol.toPrimitive];
1529
+ if (n !== void 0) {
1530
+ var r = n.call(e, d || "default");
1531
+ if (D(r) != "object") return r;
1532
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1533
+ }
1534
+ return (d === "string" ? String : Number)(e);
1535
+ }
1536
+ function Pn(e, d) {
1537
+ return Fn(e) || Sn(e, d) || An(e, d) || Nn();
1538
+ }
1539
+ function Nn() {
1540
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1541
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1542
+ }
1543
+ function An(e, d) {
1544
+ if (e) {
1545
+ if (typeof e == "string") return De(e, d);
1546
+ var n = {}.toString.call(e).slice(8, -1);
1547
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? De(e, d) : void 0;
1548
+ }
1549
+ }
1550
+ function De(e, d) {
1551
+ (d == null || d > e.length) && (d = e.length);
1552
+ for (var n = 0, r = Array(d); n < d; n++) r[n] = e[n];
1553
+ return r;
1554
+ }
1555
+ function Sn(e, d) {
1556
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1557
+ if (n != null) {
1558
+ var r, i, o, $, s = [], u = !0, l = !1;
1559
+ try {
1560
+ if (o = (n = n.call(e)).next, d !== 0) for (; !(u = (r = o.call(n)).done) && (s.push(r.value), s.length !== d); u = !0) ;
1561
+ } catch (f) {
1562
+ l = !0, i = f;
1563
+ } finally {
1564
+ try {
1565
+ if (!u && n.return != null && ($ = n.return(), Object($) !== $)) return;
1566
+ } finally {
1567
+ if (l) throw i;
1568
+ }
1569
+ }
1570
+ return s;
1571
+ }
1572
+ }
1573
+ function Fn(e) {
1574
+ if (Array.isArray(e)) return e;
1575
+ }
1576
+ function Tn(e) {
1577
+ var d = Array.prototype.slice.call(e), n = Pn(d, 4), r = n[0], i = n[1], o = n[2], $ = n[3], s, u, l;
1578
+ if (typeof r == "string")
1579
+ s = r;
1580
+ else throw new TypeError("A text for parsing must be a string.");
1581
+ if (!i || typeof i == "string")
1582
+ $ ? (u = o, l = $) : (u = void 0, l = o), i && (u = hn({
1583
+ defaultCountry: i
1584
+ }, u));
1585
+ else if (F(i))
1586
+ o ? (u = i, l = o) : l = i;
1587
+ else throw new Error("Invalid second argument: ".concat(i));
1588
+ return {
1589
+ text: s,
1590
+ options: u,
1591
+ metadata: l
1592
+ };
1593
+ }
1594
+ function L(e) {
1595
+ "@babel/helpers - typeof";
1596
+ return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
1597
+ return typeof d;
1598
+ } : function(d) {
1599
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
1600
+ }, L(e);
1601
+ }
1602
+ function Le(e, d) {
1603
+ var n = Object.keys(e);
1604
+ if (Object.getOwnPropertySymbols) {
1605
+ var r = Object.getOwnPropertySymbols(e);
1606
+ d && (r = r.filter(function(i) {
1607
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
1608
+ })), n.push.apply(n, r);
1609
+ }
1610
+ return n;
1611
+ }
1612
+ function je(e) {
1613
+ for (var d = 1; d < arguments.length; d++) {
1614
+ var n = arguments[d] != null ? arguments[d] : {};
1615
+ d % 2 ? Le(Object(n), !0).forEach(function(r) {
1616
+ In(e, r, n[r]);
1617
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Le(Object(n)).forEach(function(r) {
1618
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1619
+ });
1620
+ }
1621
+ return e;
1622
+ }
1623
+ function In(e, d, n) {
1624
+ return (d = Rn(d)) in e ? Object.defineProperty(e, d, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = n, e;
1625
+ }
1626
+ function Rn(e) {
1627
+ var d = On(e, "string");
1628
+ return L(d) == "symbol" ? d : d + "";
1629
+ }
1630
+ function On(e, d) {
1631
+ if (L(e) != "object" || !e) return e;
1632
+ var n = e[Symbol.toPrimitive];
1633
+ if (n !== void 0) {
1634
+ var r = n.call(e, d || "default");
1635
+ if (L(r) != "object") return r;
1636
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1637
+ }
1638
+ return (d === "string" ? String : Number)(e);
1639
+ }
1640
+ function Mn(e, d, n) {
1641
+ d && d.defaultCountry && !wd(d.defaultCountry, n) && (d = je(je({}, d), {}, {
1642
+ defaultCountry: void 0
1643
+ }));
1644
+ try {
1645
+ return yn(e, d, n);
1646
+ } catch (r) {
1647
+ if (!(r instanceof h)) throw r;
1648
+ }
1649
+ }
1650
+ function j(e) {
1651
+ "@babel/helpers - typeof";
1652
+ return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
1653
+ return typeof d;
1654
+ } : function(d) {
1655
+ return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
1656
+ }, j(e);
1657
+ }
1658
+ function Be(e, d) {
1659
+ var n = Object.keys(e);
1660
+ if (Object.getOwnPropertySymbols) {
1661
+ var r = Object.getOwnPropertySymbols(e);
1662
+ d && (r = r.filter(function(i) {
1663
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
1664
+ })), n.push.apply(n, r);
1665
+ }
1666
+ return n;
1667
+ }
1668
+ function Ge(e) {
1669
+ for (var d = 1; d < arguments.length; d++) {
1670
+ var n = arguments[d] != null ? arguments[d] : {};
1671
+ d % 2 ? Be(Object(n), !0).forEach(function(r) {
1672
+ xn(e, r, n[r]);
1673
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Be(Object(n)).forEach(function(r) {
1674
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1675
+ });
1676
+ }
1677
+ return e;
1678
+ }
1679
+ function xn(e, d, n) {
1680
+ return (d = wn(d)) in e ? Object.defineProperty(e, d, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = n, e;
1681
+ }
1682
+ function wn(e) {
1683
+ var d = Dn(e, "string");
1684
+ return j(d) == "symbol" ? d : d + "";
1685
+ }
1686
+ function Dn(e, d) {
1687
+ if (j(e) != "object" || !e) return e;
1688
+ var n = e[Symbol.toPrimitive];
1689
+ if (n !== void 0) {
1690
+ var r = n.call(e, d || "default");
1691
+ if (j(r) != "object") return r;
1692
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1693
+ }
1694
+ return (d === "string" ? String : Number)(e);
1695
+ }
1696
+ function Ln() {
1697
+ var e = Tn(arguments), d = e.text, n = e.options, r = e.metadata;
1698
+ n = Ge(Ge({}, n), {}, {
1699
+ extract: !1
1700
+ });
1701
+ var i = Mn(d, n, r);
1702
+ return i && i.isValid() || !1;
1703
+ }
1704
+ function Qe() {
1705
+ return Cd(Ln, arguments);
1706
+ }
1707
+ const c = t.enum([
1708
+ "NEW_MEMBERS",
1709
+ "AT_RISK_MEMBERS",
1710
+ "TOP_MEMBERS",
1711
+ "ACTIVE_MEMBERS"
1712
+ ]);
1713
+ c.options;
1714
+ const B0 = [
1715
+ c.enum.NEW_MEMBERS,
1716
+ c.enum.AT_RISK_MEMBERS,
1717
+ c.enum.TOP_MEMBERS,
1718
+ c.enum.ACTIVE_MEMBERS
1719
+ ], G = {
1720
+ [c.enum.NEW_MEMBERS]: "New Members",
1721
+ [c.enum.AT_RISK_MEMBERS]: "At-Risk Members",
1722
+ [c.enum.TOP_MEMBERS]: "Top Members",
1723
+ [c.enum.ACTIVE_MEMBERS]: "Active Members"
1724
+ }, k = {
1725
+ [c.enum.NEW_MEMBERS]: "connect.loyalty.segment.default_segments.new_members.description",
1726
+ [c.enum.AT_RISK_MEMBERS]: "connect.loyalty.segment.default_segments.at_risk_members.description",
1727
+ [c.enum.TOP_MEMBERS]: "connect.loyalty.segment.default_segments.top_members.description",
1728
+ [c.enum.ACTIVE_MEMBERS]: "connect.loyalty.segment.default_segments.active_members.description"
1729
+ }, P = {
1730
+ newJoinDays: 30,
1731
+ atRiskMinVisitCount: 2,
1732
+ atRiskLastVisitDays: 60,
1733
+ topMinVisitCount: 3,
1734
+ topMinAvgBillSize: 50,
1735
+ topMaxAvgVisitFrequencyDays: 14,
1736
+ activeMinVisitCount: 2,
1737
+ activeLastVisitDays: 30
1738
+ };
1739
+ function A(e, d, n) {
1740
+ return {
1741
+ name: e,
1742
+ property: d,
1743
+ conditions: n,
1744
+ negated: !1
1745
+ };
1746
+ }
1747
+ function v(e, d, n) {
1748
+ return {
1749
+ name: e,
1750
+ rules: n,
1751
+ logic: d
1752
+ };
1753
+ }
1754
+ function ee(e, d, n) {
1755
+ const r = `${e}_today`, i = `${e}_within_last_${n}_days`;
1756
+ return v(e, `${r} || ${i}`, {
1757
+ [r]: A(r, d, {
1758
+ _isRange: {
1759
+ op: "this",
1760
+ unit: "day",
1761
+ ignoreYear: !1
1762
+ }
1763
+ }),
1764
+ [i]: A(i, d, {
1765
+ _isRange: {
1766
+ op: "last",
1767
+ unit: "day",
1768
+ x: n,
1769
+ ignoreYear: !1
1770
+ }
1771
+ })
1772
+ });
1773
+ }
1774
+ const m = {
1775
+ g_join_recent_30: ee(
1776
+ "g_join_recent_30",
1777
+ "user.joinAt",
1778
+ P.newJoinDays
1779
+ ),
1780
+ r_at_risk_visit_count_min: A(
1781
+ "r_at_risk_visit_count_min",
1782
+ "user.stats.visitCount",
1783
+ { _moreThanOrEqual: P.atRiskMinVisitCount }
1784
+ ),
1785
+ g_last_visit_recent_60: ee(
1786
+ "g_last_visit_recent_60",
1787
+ "user.stats.lastVisit",
1788
+ P.atRiskLastVisitDays
1789
+ ),
1790
+ r_top_visit_count_min: A(
1791
+ "r_top_visit_count_min",
1792
+ "user.stats.visitCount",
1793
+ { _moreThanOrEqual: P.topMinVisitCount }
1794
+ ),
1795
+ r_avg_bill_top: A("r_avg_bill_top", "user.stats.avgBillSize", {
1796
+ _moreThanOrEqual: P.topMinAvgBillSize
1797
+ }),
1798
+ r_avg_visit_frequency_top: A(
1799
+ "r_avg_visit_frequency_top",
1800
+ "user.stats.avgVisitFrequency",
1801
+ {
1802
+ _lessThanOrEqual: P.topMaxAvgVisitFrequencyDays
1803
+ }
1804
+ ),
1805
+ r_active_visit_count_min: A(
1806
+ "r_active_visit_count_min",
1807
+ "user.stats.visitCount",
1808
+ { _moreThanOrEqual: P.activeMinVisitCount }
1809
+ ),
1810
+ g_last_visit_recent_30: ee(
1811
+ "g_last_visit_recent_30",
1812
+ "user.stats.lastVisit",
1813
+ P.activeLastVisitDays
1814
+ )
1815
+ }, ke = v(
1816
+ "g_not_at_risk",
1817
+ "!r_at_risk_visit_count_min || g_last_visit_recent_60",
1818
+ {
1819
+ r_at_risk_visit_count_min: m.r_at_risk_visit_count_min,
1820
+ g_last_visit_recent_60: m.g_last_visit_recent_60
1821
+ }
1822
+ ), jn = v(
1823
+ "g_top_value",
1824
+ "r_avg_bill_top || r_avg_visit_frequency_top",
1825
+ {
1826
+ r_avg_bill_top: m.r_avg_bill_top,
1827
+ r_avg_visit_frequency_top: m.r_avg_visit_frequency_top
1828
+ }
1829
+ ), Bn = v(
1830
+ "g_not_top",
1831
+ "!r_top_visit_count_min || g_not_top_value",
1832
+ {
1833
+ r_top_visit_count_min: m.r_top_visit_count_min,
1834
+ g_not_top_value: v(
1835
+ "g_not_top_value",
1836
+ "!r_avg_bill_top && !r_avg_visit_frequency_top",
1837
+ {
1838
+ r_avg_bill_top: m.r_avg_bill_top,
1839
+ r_avg_visit_frequency_top: m.r_avg_visit_frequency_top
1840
+ }
1841
+ )
1842
+ }
1843
+ );
1844
+ c.enum.NEW_MEMBERS + "", c.enum.NEW_MEMBERS, G[c.enum.NEW_MEMBERS], k[c.enum.NEW_MEMBERS], v("g_default_new_members", "g_join_recent_30", {
1845
+ g_join_recent_30: m.g_join_recent_30
1846
+ }), c.enum.AT_RISK_MEMBERS + "", c.enum.AT_RISK_MEMBERS, G[c.enum.AT_RISK_MEMBERS], k[c.enum.AT_RISK_MEMBERS], v(
1847
+ "g_default_at_risk_members",
1848
+ "!g_join_recent_30 && r_at_risk_visit_count_min && !g_last_visit_recent_60",
1849
+ {
1850
+ g_join_recent_30: m.g_join_recent_30,
1851
+ r_at_risk_visit_count_min: m.r_at_risk_visit_count_min,
1852
+ g_last_visit_recent_60: m.g_last_visit_recent_60
1853
+ }
1854
+ ), c.enum.TOP_MEMBERS + "", c.enum.TOP_MEMBERS, G[c.enum.TOP_MEMBERS], k[c.enum.TOP_MEMBERS], v(
1855
+ "g_default_top_members",
1856
+ "!g_join_recent_30 && g_not_at_risk && r_top_visit_count_min && g_top_value",
1857
+ {
1858
+ g_join_recent_30: m.g_join_recent_30,
1859
+ g_not_at_risk: ke,
1860
+ r_top_visit_count_min: m.r_top_visit_count_min,
1861
+ g_top_value: jn
1862
+ }
1863
+ ), c.enum.ACTIVE_MEMBERS + "", c.enum.ACTIVE_MEMBERS, G[c.enum.ACTIVE_MEMBERS], k[c.enum.ACTIVE_MEMBERS], v(
1864
+ "g_default_active_members",
1865
+ "!g_join_recent_30 && g_not_at_risk && g_not_top && r_active_visit_count_min && g_last_visit_recent_30",
1866
+ {
1867
+ g_join_recent_30: m.g_join_recent_30,
1868
+ g_not_at_risk: ke,
1869
+ g_not_top: Bn,
1870
+ r_active_visit_count_min: m.r_active_visit_count_min,
1871
+ g_last_visit_recent_30: m.g_last_visit_recent_30
1872
+ }
1873
+ );
1874
+ const Gn = {
1875
+ collectionName: "Segmentations",
1876
+ transform: {
1877
+ _id: "oid",
1878
+ business: "oid"
1879
+ }
1880
+ }, kn = {
1881
+ collectionName: "SegmentRefreshRuns",
1882
+ transform: {
1883
+ _id: "oid",
1884
+ business: "oid",
1885
+ segmentId: "oid",
1886
+ upperBoundCursor: "oid",
1887
+ lastCursor: "oid"
1888
+ }
1889
+ }, Un = t.enum(["DYNAMIC", "STATIC"]), Vn = t.enum([
1890
+ "ACTIVE",
1891
+ "COMPLETED",
1892
+ "FAILED"
1893
+ ]), Hn = t.enum([
1894
+ "MANUAL",
1895
+ "SCHEDULED"
1896
+ ]), Kn = t.enum(["userId"]), G0 = t.object({
1897
+ _id: a,
1898
+ rule: Y,
1899
+ name: t.string().min(1),
1900
+ description: t.string().nullish(),
1901
+ business: a,
1902
+ members: t.array(a),
1903
+ memberCount: t.number().optional(),
1904
+ lastUpdated: t.coerce.date().nullish(),
1905
+ type: Un.nullish(),
1906
+ isActive: t.boolean().nullish(),
1907
+ importFile: t.string().nullish(),
1908
+ defaultKey: c.nullish()
1909
+ }).describe(_.describe(Gn));
1910
+ t.object({
1911
+ _id: a,
1912
+ business: a,
1913
+ segmentId: a.nullish(),
1914
+ triggerType: Hn,
1915
+ queueName: t.string(),
1916
+ status: Vn,
1917
+ active: t.boolean(),
1918
+ cursorType: Kn,
1919
+ batchSize: t.number(),
1920
+ fanoutWindowSize: t.number(),
1921
+ maxOutstandingChunks: t.number(),
1922
+ upperBoundCursor: a.nullish(),
1923
+ lastCursor: a.nullish(),
1924
+ nextChunkIndex: t.number(),
1925
+ dispatchedChunks: t.number(),
1926
+ dispatchDone: t.boolean(),
1927
+ fanoutSeq: t.number(),
1928
+ requestedBy: t.string().nullish(),
1929
+ triggeredAt: t.coerce.date().nullish(),
1930
+ startedAt: t.coerce.date(),
1931
+ updatedAt: t.coerce.date(),
1932
+ completedAt: t.coerce.date().nullish(),
1933
+ failedAt: t.coerce.date().nullish(),
1934
+ error: t.string().nullish()
1935
+ }).describe(_.describe(kn));
1936
+ t.object({
1937
+ businessId: t.string(),
1938
+ segmentId: t.string().optional(),
1939
+ queueName: t.string(),
1940
+ runId: t.string(),
1941
+ queued: t.boolean(),
1942
+ reason: t.literal("in-progress").optional()
1943
+ });
1944
+ const Wn = t.object({
1945
+ id: t.union([t.string(), t.number()]),
1946
+ businessId: t.string(),
1947
+ segmentId: t.string().optional(),
1948
+ queueName: t.string(),
1949
+ state: t.string(),
1950
+ runId: t.string().optional(),
1951
+ createdAt: t.coerce.date(),
1952
+ dispatchedChunks: t.number().optional(),
1953
+ completedChunks: t.number().optional(),
1954
+ failedChunks: t.number().optional(),
1955
+ dispatchDone: t.boolean().optional(),
1956
+ progress: t.number().optional()
1957
+ });
1958
+ t.object({
1959
+ businessId: t.string(),
1960
+ inProgress: t.boolean(),
1961
+ jobs: t.array(Wn)
1962
+ });
1963
+ const Yn = t.enum([
1964
+ "PORTAL",
1965
+ "BENEFIT",
1966
+ "STORE",
1967
+ "ORDER",
1968
+ "BILL",
1969
+ "BILL_DISCOUNT",
1970
+ "CASHBACK",
1971
+ "FEEDBACK",
1972
+ "CYCLE",
1973
+ "COUNTER",
1974
+ "GAME",
1975
+ "COUNTER_CONSUME",
1976
+ "STAMP_REWARD",
1977
+ "STAMP_CARRY_FORWARD",
1978
+ "STAMP_MAX_REACHED",
1979
+ "POS_CLAIM",
1980
+ "MEMBER_APP-CLAIM",
1981
+ "MEMBER_APP-TRANSFER",
1982
+ "FEEDVIBE_APP-CLAIM",
1983
+ "REFERRAL",
1984
+ "REFERRAL_REWARD",
1985
+ "ORDER_APP-CLAIM",
1986
+ "ORDER_APP-APPLY",
1987
+ "INTEGRATION"
1988
+ ]), z = t.string(), Z = t.record(t.string(), t.any()).nullish(), Xn = {
1989
+ collectionName: "Transactions",
1990
+ transform: {
1991
+ _id: "oid",
1992
+ user: "oid",
1993
+ collectible: "oid",
1994
+ collection: "oid",
1995
+ business: "oid",
1996
+ refundedFrom: "oid",
1997
+ createdAt: "date"
1998
+ },
1999
+ lookups: {
2000
+ user: {
2001
+ fromCollection: "UsersV2",
2002
+ as: "pf_user"
2003
+ },
2004
+ collectible: {
2005
+ fromCollection: "CollectibleConfigs",
2006
+ as: "pf_collectible"
2007
+ },
2008
+ collection: {
2009
+ fromCollection: "Collections",
2010
+ as: "pf_collection"
2011
+ }
2012
+ }
2013
+ }, k0 = t.object({
2014
+ _id: a,
2015
+ user: a.nullable(),
2016
+ collectible: a,
2017
+ collection: a,
2018
+ business: a,
2019
+ amount: t.number(),
2020
+ expiryAmount: t.array(t.lazy(() => ge)),
2021
+ from: t.lazy(() => E),
2022
+ to: t.lazy(() => E),
2023
+ source: z,
2024
+ ref: t.string(),
2025
+ refunded: t.boolean().optional(),
2026
+ refundedFrom: a.optional(),
2027
+ metadata: Z,
2028
+ createdAt: t.coerce.date().optional(),
2029
+ pf_user: t.any().optional(),
2030
+ pf_collectible: t.any().optional(),
2031
+ pf_collection: t.any().optional(),
2032
+ totalAmount: t.number().optional()
2033
+ }).describe(_.describe(Xn));
2034
+ t.object({
2035
+ amount: t.number(),
2036
+ expiryAmount: t.array(t.lazy(() => ge)),
2037
+ collection: t.lazy(() => $e),
2038
+ source: z,
2039
+ ref: t.string(),
2040
+ from: t.lazy(() => E).optional(),
2041
+ to: t.lazy(() => E),
2042
+ metadata: Z,
2043
+ refunded: t.boolean().optional(),
2044
+ refundedFrom: a.optional()
2045
+ });
2046
+ t.object({
2047
+ id: t.string(),
2048
+ // When set, revert() only reverses transactions owned by this business —
2049
+ // used by the Partner API to prevent cross-tenant refunds.
2050
+ businessId: t.string().optional()
2051
+ });
2052
+ Yn.options;
2053
+ const W = class W {
2054
+ constructor(d) {
2055
+ this.redemptionCode = d.generate(), this.expiredAt = new Date(Date.now() + W.EXPIRY_TIME);
2056
+ }
2057
+ };
2058
+ W.EXPIRY_TIME = 5 * 60 * 1e3;
2059
+ let Ue = W;
2060
+ const ed = t.enum(["NORMAL", "EXPIRABLE"]), ge = t.object({
2061
+ _id: a,
2062
+ amount: t.number(),
2063
+ expiredAt: t.coerce.date()
2064
+ }), E = t.object({
2065
+ balance: t.number(),
2066
+ expiryBalance: t.array(ge).optional()
2067
+ }), qn = {
2068
+ collectionName: "Collections",
2069
+ transform: {
2070
+ _id: "oid",
2071
+ business: "oid",
2072
+ collectible: "oid",
2073
+ user: "oid",
2074
+ deactivatedAt: "date"
2075
+ },
2076
+ lookups: {
2077
+ user: {
2078
+ as: "pf_user",
2079
+ fromCollection: "UsersV2"
2080
+ },
2081
+ collectible: {
2082
+ as: "pf_collectible",
2083
+ fromCollection: "CollectibleConfigs"
2084
+ }
2085
+ }
2086
+ }, zn = t.object({
2087
+ redemptionCode: t.string(),
2088
+ expiredAt: t.coerce.date()
2089
+ }), $e = t.object({
2090
+ _id: a,
2091
+ business: a,
2092
+ user: a.nullish(),
2093
+ code: t.string().optional(),
2094
+ collectible: a,
2095
+ type: He,
2096
+ extras: yd.nullish(),
2097
+ options: hd,
2098
+ ref: t.string().nullish(),
2099
+ deactivatedAt: t.date().nullish(),
2100
+ redemption: zn.optional(),
2101
+ pf_user: t.any().optional(),
2102
+ pf_collectible: t.any().optional(),
2103
+ pf_campaign: t.any().optional()
2104
+ }).merge(E).describe(_.describe(qn)), I = t.object({
2105
+ amount: t.number(),
2106
+ ref: t.string(),
2107
+ source: z,
2108
+ metadata: Z
2109
+ });
2110
+ I.extend({
2111
+ code: t.string().optional(),
2112
+ collectible: a,
2113
+ channelConfig: ae.nullish(),
2114
+ business: a,
2115
+ user: a.nullable()
2116
+ });
2117
+ I.extend({
2118
+ codes: t.array(t.string()),
2119
+ collectible: a,
2120
+ channelConfig: ae.nullish(),
2121
+ business: a,
2122
+ user: a.nullable()
2123
+ });
2124
+ I.extend({
2125
+ user: a,
2126
+ business: a,
2127
+ collectible: a,
2128
+ expiredAt: t.date({ coerce: !0 }).nullish()
2129
+ });
2130
+ I.extend({
2131
+ id: a,
2132
+ code: t.string().optional(),
2133
+ type: ed.optional(),
2134
+ skipValidateOption: t.boolean().optional()
2135
+ });
2136
+ t.object({
2137
+ collection: a,
2138
+ to: a,
2139
+ ref: t.string(),
2140
+ source: z,
2141
+ metadata: Z
2142
+ });
2143
+ const Zn = t.object({
2144
+ length: t.coerce.number().optional(),
2145
+ charset: t.string(),
2146
+ prefix: t.string().optional(),
2147
+ suffix: t.string().optional(),
2148
+ pattern: t.string().optional()
2149
+ });
2150
+ t.object({
2151
+ quantity: t.number(),
2152
+ code: t.string(),
2153
+ codeConfig: Zn
2154
+ });
2155
+ const U0 = t.object({
2156
+ amount: t.coerce.number().min(1).max(1e7).multipleOf(0.01, "Amount must be maximum of two decimal places (0.00)"),
2157
+ day: t.coerce.number().min(1).max(9999),
2158
+ remark: t.string().optional()
2159
+ }), V0 = t.object({
2160
+ amount: t.coerce.number().min(1),
2161
+ remark: t.string().optional()
2162
+ }), H0 = t.object({
2163
+ amount: t.coerce.number().min(1),
2164
+ day: t.coerce.number().min(1).max(9999).optional(),
2165
+ remark: t.string().optional()
2166
+ }), K0 = t.object({
2167
+ amount: t.coerce.number().min(1),
2168
+ remark: t.string().optional()
2169
+ });
2170
+ I.extend({
2171
+ business: t.string(),
2172
+ user: t.string(),
2173
+ type: ed.optional()
2174
+ });
2175
+ I.extend({
2176
+ business: t.string(),
2177
+ user: t.string(),
2178
+ channelConfig: ae.nullish()
2179
+ });
2180
+ const W0 = t.object({
2181
+ memberId: t.array(a).min(1),
2182
+ amount: t.coerce.number().min(1).max(9999).optional(),
2183
+ ref: t.string().optional()
2184
+ });
2185
+ t.object({
2186
+ userId: a
2187
+ });
2188
+ t.lazy(
2189
+ () => td.omit({ password: !0 }).extend({
2190
+ coin: t.lazy(() => E),
2191
+ point: t.lazy(() => E),
2192
+ credit: t.lazy(() => E),
2193
+ voucherCount: t.number(),
2194
+ gameCount: t.number(),
2195
+ tier: t.lazy(() => E),
2196
+ titles: t.lazy(() => t.array($e)),
2197
+ collection: t.record(He, t.array($e)).nullish()
2198
+ })
2199
+ );
2200
+ t.object({
2201
+ userId: a
2202
+ });
2203
+ const Jn = t.enum([
2204
+ "REGISTER",
2205
+ "UPDATE_PHONE"
2206
+ ]), Qn = t.object({
2207
+ name: t.string(),
2208
+ id: t.string()
2209
+ }), e0 = t.object({
2210
+ lastVisit: t.coerce.date(),
2211
+ topupCount: t.number(),
2212
+ // { [productId]: count }
2213
+ products: t.record(t.string(), t.number()),
2214
+ visitCount: t.number(),
2215
+ avgVisitFrequency: t.number(),
2216
+ avgBillSize: t.number(),
2217
+ feedbackCount: t.number(),
2218
+ lastSeasonTierEarned: t.number().optional(),
2219
+ lastSeasonPointEarned: t.number().optional()
2220
+ }), dd = t.object({
2221
+ name: t.string(),
2222
+ address: t.string(),
2223
+ coordinates: t.array(t.number())
2224
+ }), d0 = {
2225
+ collectionName: "UsersV2",
2226
+ transform: {
2227
+ _id: "oid",
2228
+ business: "oid"
2229
+ },
2230
+ lookups: {
2231
+ segment: {
2232
+ as: "pf_segment",
2233
+ fromCollection: "Segments"
2234
+ }
2235
+ }
2236
+ }, td = t.object({
2237
+ // user meta
2238
+ _id: a,
2239
+ name: t.string(),
2240
+ birthday: t.coerce.date().nullish(),
2241
+ gender: t.enum(["MALE", "FEMALE"]).nullish(),
2242
+ address: t.array(dd).nullish(),
2243
+ email: t.string().email().nullish(),
2244
+ phoneNumber: t.string().refine((e) => Qe(e)),
2245
+ externalMemberId: t.string().optional(),
2246
+ cardNo: t.string().optional(),
2247
+ joinAt: t.coerce.date().nullish(),
2248
+ photoUrl: t.string().nullish(),
2249
+ location: a.nullish(),
2250
+ // member meta
2251
+ business: a,
2252
+ stats: e0,
2253
+ // segment
2254
+ segment: t.array(a),
2255
+ member: t.boolean(),
2256
+ // pf_segment: z
2257
+ // .array(z.lazy(() => FdoSegment))
2258
+ // .describe(
2259
+ // zm
2260
+ // .mongo()
2261
+ // .populate({
2262
+ // fromCollection: 'Segment',
2263
+ // localField: 'segment',
2264
+ // as: 'pf_segment',
2265
+ // })
2266
+ // .build(),
2267
+ // )
2268
+ // .optional(),
2269
+ expiringVouchers: t.object({
2270
+ days7: t.number(),
2271
+ days30: t.number(),
2272
+ days90: t.number()
2273
+ }).and(t.record(t.string(), t.number())).optional(),
2274
+ lastReadAt: t.coerce.date().nullish(),
2275
+ importCollection: t.record(t.string(), t.any()).optional(),
2276
+ // referral feature
2277
+ referralCode: t.string().optional(),
2278
+ parentReferralCode: t.string().optional(),
2279
+ password: t.string().optional(),
2280
+ birthdayUpdateCount: t.number().optional(),
2281
+ authProvider: t.array(Qn).optional(),
2282
+ // arbitrary caller-supplied info (e.g. app language, app version)
2283
+ metadata: t.record(t.string(), t.any()).optional()
2284
+ }).describe(_.describe(d0)), t0 = t.object({
2285
+ id: a,
2286
+ expiredAt: t.coerce.number().min(0, "Expire in days must be greater than 0").max(9999, "Expire in days must not exceed 9999")
2287
+ }), Y0 = t.object({
2288
+ titles: t.array(t0).optional(),
2289
+ tier: t.number().optional(),
2290
+ experience: t.number().optional(),
2291
+ cardNo: t.string().optional(),
2292
+ name: t.string().optional(),
2293
+ email: t.string().email().optional(),
2294
+ birthday: t.coerce.date().optional(),
2295
+ gender: t.enum(["MALE", "FEMALE"]).optional(),
2296
+ address: t.array(dd).optional(),
2297
+ photoUrl: t.string().optional()
2298
+ });
2299
+ t.object({
2300
+ phoneNumber: t.string(),
2301
+ password: t.string(),
2302
+ business: t.string()
2303
+ });
2304
+ t.object({
2305
+ _id: a,
2306
+ name: t.string().optional(),
2307
+ birthday: t.coerce.date().optional(),
2308
+ gender: t.enum(["MALE", "FEMALE"]).optional(),
2309
+ email: t.string().email().optional()
2310
+ });
2311
+ t.object({
2312
+ phoneNumber: t.string(),
2313
+ newPhoneNumber: t.string()
2314
+ });
2315
+ t.object({
2316
+ token: t.string(),
2317
+ password: t.string(),
2318
+ business: t.string()
2319
+ });
2320
+ t.object({
2321
+ id: t.string(),
2322
+ password: t.string(),
2323
+ business: t.string()
2324
+ });
2325
+ t.object({
2326
+ phoneNumber: t.string(),
2327
+ business: t.string()
2328
+ });
2329
+ t.object({
2330
+ phoneNumber: t.string(),
2331
+ otp: t.string(),
2332
+ business: t.string(),
2333
+ type: Jn
2334
+ });
2335
+ t.object({
2336
+ provider: t.string(),
2337
+ oauthToken: t.string(),
2338
+ business: t.string()
2339
+ });
2340
+ const n0 = t.object({
2341
+ from: t.coerce.number(),
2342
+ to: t.coerce.number().optional()
2343
+ }).superRefine((e, d) => {
2344
+ e.from && e.to && e.from > e.to && d.addIssue({
2345
+ code: "custom",
2346
+ message: "Max experience must be more than min experience"
2347
+ });
2348
+ }), r0 = t.enum(["MULTIPLIER", "FIXED"]);
2349
+ t.object({
2350
+ type: r0
2351
+ });
2352
+ const i0 = t.object({
2353
+ _id: a.optional(),
2354
+ rule: Y,
2355
+ tierExpression: t.string().nullish(),
2356
+ expExpression: t.string().nullish()
2357
+ }), nd = t.object({
2358
+ _id: a,
2359
+ name: t.string().min(1),
2360
+ image: t.string().nullish(),
2361
+ option: n0,
2362
+ cycleOptions: t.array(t.lazy(() => i0)).nullish(),
2363
+ member_count: t.number().optional()
2364
+ });
2365
+ nd.partial({
2366
+ _id: !0
2367
+ });
2368
+ const X0 = nd.partial({
2369
+ _id: !0
2370
+ }), o0 = t.object({
2371
+ icon: t.string(),
2372
+ label: t.string(),
2373
+ value: t.string()
2374
+ }), $0 = t.object({
2375
+ gatewayKey: t.enum([
2376
+ "REVENUE_MONSTER",
2377
+ "FEEDME",
2378
+ "FEEDME_MEMBER_CREDIT",
2379
+ "RAZER_MERCHANT_SERVICE",
2380
+ "E_GHL",
2381
+ "FEEDME_TERMINAL",
2382
+ "MACAU_PASS",
2383
+ "NETS",
2384
+ "FEEDME_CARD"
2385
+ ]),
2386
+ checkoutUrl: t.string().optional(),
2387
+ checkoutId: t.string().optional(),
2388
+ callbackUrl: t.string().optional(),
2389
+ vcode: t.string().optional(),
2390
+ merchantId: t.string().optional(),
2391
+ amount: t.string().optional(),
2392
+ currency: t.string().optional(),
2393
+ returnUrl: t.string().optional(),
2394
+ notifyUrl: t.string().optional(),
2395
+ url: t.string().optional(),
2396
+ channels: t.array(o0).optional(),
2397
+ transactionId: t.string().optional()
2398
+ }), a0 = t.object({
2399
+ url: t.string(),
2400
+ transactionId: t.string()
2401
+ });
2402
+ t.object({
2403
+ trx: t.lazy(() => ud),
2404
+ onlineTrx: $0.optional().or(a0),
2405
+ url: t.string().optional()
2406
+ });
2407
+ t.object({
2408
+ remaining: t.number().nullish(),
2409
+ isSoldOut: t.boolean()
2410
+ });
2411
+ const rd = t.enum(["POS", "APP", "ADMIN", "PARTNER"]), id = t.enum(["topupCount"]), s0 = t.object({
2412
+ line1: t.string(),
2413
+ line2: t.string().optional(),
2414
+ state: t.string(),
2415
+ city: t.string(),
2416
+ postcode: t.string(),
2417
+ country: t.string()
2418
+ }), od = t.object({
2419
+ name: t.string(),
2420
+ regNo: t.string(),
2421
+ address: s0,
2422
+ phoneNo: t.string(),
2423
+ sstRegNo: t.string().optional()
2424
+ }), $d = t.object({
2425
+ systemCode: t.string(),
2426
+ inclusive: t.boolean()
2427
+ }), u0 = t.object({
2428
+ id: a,
2429
+ dayToExpire: t.number().max(9999, "Max expiry is 9999 days")
2430
+ }), l0 = t.object({
2431
+ normal: t.coerce.number(),
2432
+ free: t.object({
2433
+ day: t.coerce.number(),
2434
+ amount: t.coerce.number(),
2435
+ remark: t.string().nullish()
2436
+ }).nullish()
2437
+ }), c0 = t.object({
2438
+ systemCode: t.string(),
2439
+ taxCode: t.string()
2440
+ }), f0 = t.object({
2441
+ name: t.string(),
2442
+ systemCode: t.string(),
2443
+ taxCode: t.string(),
2444
+ rate: vd,
2445
+ total: U
2446
+ });
2447
+ t.object({
2448
+ canPurchase: t.boolean(),
2449
+ reason: t.string()
2450
+ });
2451
+ t.object({
2452
+ type: id
2453
+ });
2454
+ t.object({
2455
+ type: id,
2456
+ min: t.number().nullish(),
2457
+ max: t.number().nullish()
2458
+ });
2459
+ const m0 = t.object({
2460
+ options: t.object({
2461
+ maxReceive: t.number().min(1).nullish(),
2462
+ maxPerUser: t.number().min(1).nullish()
2463
+ }),
2464
+ rule: Y.nullish()
2465
+ }), g0 = (e, d) => {
2466
+ const n = e;
2467
+ n.isFeedvibe && de.Dinero.fromFdoDinero(n.price).toUnit() < 1 && d.addIssue({
2468
+ code: "custom",
2469
+ path: ["price"],
2470
+ message: "Price must be at least RM1"
2471
+ });
2472
+ }, pe = t.object({
2473
+ _id: t.string(),
2474
+ isFeedvibe: t.boolean().nullish(),
2475
+ // conditions: z.array(FdoTopupCountCondition),
2476
+ image: t.string().nullish(),
2477
+ rule: Y.nullish(),
2478
+ name: t.string().min(1, "Name is required"),
2479
+ price: U,
2480
+ originalPrice: U.nullish(),
2481
+ // new field to indicate coinPrice
2482
+ coinPrice: t.number().nullish(),
2483
+ titles: t.array(u0),
2484
+ credit: l0,
2485
+ taxes: t.array(c0),
2486
+ taxTotals: t.array(f0),
2487
+ priceWithTaxes: U.nullish(),
2488
+ vouchers: t.array(a),
2489
+ _inclusiveTaxes: t.array($d).nullish(),
2490
+ _taxSystem: t.array(t.string()).nullish(),
2491
+ stripePriceId: t.string().nullish(),
2492
+ subscriptionValidity: t.number().min(1, "Must be at least 1 day").max(365, "Maximum is 365").nullish(),
2493
+ redeemWithCode: t.boolean().nullish(),
2494
+ internal: t.boolean().optional(),
2495
+ hideInPos: t.boolean().optional(),
2496
+ // Distribution tracking: running counter of units purchased
2497
+ distributed: t.coerce.number().optional(),
2498
+ config: m0.optional(),
2499
+ pf_titles: t.array(t.any()).optional(),
2500
+ pf_vouchers: t.array(t.any()).optional(),
2501
+ pf_credit: t.number().optional()
2502
+ }).superRefine((e, d) => {
2503
+ var n, r;
2504
+ e.stripePriceId && !e.subscriptionValidity && d.addIssue({
2505
+ code: "custom",
2506
+ message: "Validity is required when stripePriceId is provided",
2507
+ path: ["subscriptionValidity"]
2508
+ }), e.originalPrice && e.originalPrice.amount && e.originalPrice.amount < e.price.amount && d.addIssue({
2509
+ code: "custom",
2510
+ message: "Original price must be greater than price",
2511
+ path: ["originalPrice"]
2512
+ }), e.price.amount < 0 && d.addIssue({
2513
+ code: "custom",
2514
+ path: ["price"],
2515
+ message: "Price cannot be less than 0"
2516
+ }), e.coinPrice && e.coinPrice < 0 && d.addIssue({
2517
+ code: "custom",
2518
+ path: ["coinPrice"],
2519
+ message: "Point price cannot be less than 0"
2520
+ }), e.credit.normal < 0 && d.addIssue({
2521
+ code: "custom",
2522
+ path: ["credit", "normal"],
2523
+ message: "Normal credit cannot be less than 0"
2524
+ }), e.credit.free && (e.credit.free.amount < 0 && d.addIssue({
2525
+ code: "custom",
2526
+ path: ["credit", "free", "amount"],
2527
+ message: "Free credit cannot be less than 0"
2528
+ }), e.credit.free.amount && e.credit.free.day < 0 && d.addIssue({
2529
+ code: "custom",
2530
+ path: ["credit", "free", "day"],
2531
+ message: "Expiry must be at least 0 (expire same day)"
2532
+ })), e.credit.normal && e.coinPrice && d.addIssue({
2533
+ code: "custom",
2534
+ message: "Bundle redeem with point cannot set normal credit.",
2535
+ path: ["credit", "normal"]
2536
+ }), e.credit.normal > de.Dinero.fromFdoDinero(e.price).toUnit() && d.addIssue({
2537
+ code: "custom",
2538
+ message: `Normal credit cannot be more than price. Max: ${de.Dinero.fromFdoDinero(
2539
+ e.price
2540
+ ).toUnit()}`,
2541
+ path: ["credit", "normal"]
2542
+ }), e.titles.length > 0 && e.titles.some((i) => i.dayToExpire < 0) && d.addIssue({
2543
+ code: "custom",
2544
+ path: ["titles"],
2545
+ message: "Title expiry must be at least 0 day (expire same day)"
2546
+ }), (((r = (n = e.config) == null ? void 0 : n.options) == null ? void 0 : r.maxPerUser) || 0) < 0 && d.addIssue({
2547
+ code: "custom",
2548
+ path: ["config.options.maxPerUser"],
2549
+ message: "Max purchase per user cannot be negative"
2550
+ });
2551
+ }).superRefine(g0), ad = t.object({
2552
+ name: t.string(),
2553
+ bundles: t.array(pe)
2554
+ });
2555
+ t.object({
2556
+ _id: t.string(),
2557
+ name: t.string(),
2558
+ expiredAt: t.string()
2559
+ });
2560
+ const p0 = t.object({
2561
+ apiKey: t.string(),
2562
+ webhookSecret: t.string()
2563
+ }), b0 = t.object({
2564
+ company: od.nullish(),
2565
+ inclusiveTaxes: t.array($d).nullish(),
2566
+ stripe: p0.nullable().optional()
2567
+ }), _0 = {
2568
+ collectionName: "Stores",
2569
+ transform: {
2570
+ _id: "oid",
2571
+ business: "oid"
2572
+ }
2573
+ };
2574
+ b0.extend({
2575
+ _id: a,
2576
+ business: a,
2577
+ categories: t.array(ad),
2578
+ priorityBundleIds: t.array(t.string()).optional()
2579
+ }).describe(_.describe(_0));
2580
+ const y0 = t.object({
2581
+ refundedAt: t.coerce.date(),
2582
+ reason: t.string(),
2583
+ transactions: t.array(a)
2584
+ }), be = t.object({
2585
+ type: t.enum([
2586
+ "ONLINE",
2587
+ "OFFLINE",
2588
+ "COIN",
2589
+ "STRIPE",
2590
+ "CARD",
2591
+ "FEEDVIBE",
2592
+ "ADMIN"
2593
+ ]),
2594
+ extra: t.string().nullish(),
2595
+ gateway: t.string().nullish(),
2596
+ method: t.string().nullish()
2597
+ }), h0 = {
2598
+ collectionName: "StoreTransactions",
2599
+ transform: {
2600
+ _id: "oid",
2601
+ business: "oid",
2602
+ location: "oid",
2603
+ member: "oid",
2604
+ transactions: "oid"
2605
+ },
2606
+ lookups: {
2607
+ member: {
2608
+ fromCollection: "UsersV2",
2609
+ as: "pf_member"
2610
+ }
2611
+ }
2612
+ }, v0 = t.enum([
2613
+ "PENDING_PAYMENT",
2614
+ "PENDING_TRANSACTION",
2615
+ "COMPLETED",
2616
+ "REFUNDED",
2617
+ "PAYMENT_EXPIRED",
2618
+ "PAYMENT_CANCEL"
2619
+ ]), E0 = t.enum(["PURCHASE", "REDEMPTION", "VOID"]), sd = t.object({
2620
+ name: t.string().nullish(),
2621
+ phone: t.string().nullish(),
2622
+ email: t.string().nullish()
2623
+ }), C0 = t.object({
2624
+ movement: E0,
2625
+ program: a,
2626
+ programName: t.string().nullish(),
2627
+ serialNumber: t.string().nullish(),
2628
+ card: a.nullish(),
2629
+ design: t.string().nullish(),
2630
+ recipient: sd.nullish(),
2631
+ personalMessage: t.string().nullish()
2632
+ }), ud = t.object({
2633
+ _id: a,
2634
+ source: rd,
2635
+ // can be memberStorePurchase
2636
+ ref: t.string(),
2637
+ business: a,
2638
+ company: od,
2639
+ location: a.optional(),
2640
+ member: a,
2641
+ // createdAt: z.coerce.date(),
2642
+ bundle: pe,
2643
+ transactions: t.array(a),
2644
+ // array of transaction id (voucher, credit, title)
2645
+ status: v0,
2646
+ refund: y0.nullish(),
2647
+ giftCard: C0.nullish(),
2648
+ paymentType: be.nullish(),
2649
+ paymentRef: t.string().nullish(),
2650
+ previousPaymentRefs: t.array(t.string()).optional(),
2651
+ paymentUrl: t.string().optional(),
2652
+ webhookUrl: t.string().optional(),
2653
+ webhookSent: t.boolean().optional(),
2654
+ quantity: t.number().optional(),
2655
+ pf_transactions: t.array(t.any()).optional(),
2656
+ pf_member: t.any().optional(),
2657
+ pf_location: t.any().optional(),
2658
+ pf_ref: t.any().optional()
2659
+ }).describe(_.describe(h0));
2660
+ t.object({
2661
+ bundle: a.or(t.string()),
2662
+ member: t.string(),
2663
+ ref: t.string(),
2664
+ paymentType: be.nullish(),
2665
+ withCoin: t.boolean().optional(),
2666
+ card: t.string().optional(),
2667
+ location: a.optional(),
2668
+ source: rd,
2669
+ webhookUrl: t.string().optional(),
2670
+ quantity: t.coerce.number().int().min(1).max(10).optional()
2671
+ });
2672
+ t.object({
2673
+ transactionId: t.string()
2674
+ });
2675
+ t.object({
2676
+ transactionId: t.string(),
2677
+ paymentType: be
2678
+ });
2679
+ t.object({
2680
+ categories: t.array(ad)
2681
+ });
2682
+ t.object({
2683
+ id: a,
2684
+ reason: t.string(),
2685
+ location: a.optional()
2686
+ });
2687
+ t.object({
2688
+ _id: a,
2689
+ business: a,
2690
+ user: a,
2691
+ bundleId: t.string(),
2692
+ transaction: t.array(a),
2693
+ subscriptionId: t.string(),
2694
+ expiredAt: t.coerce.date()
2695
+ }).describe(
2696
+ _.describe({
2697
+ collectionName: "StoreSubscriptions",
2698
+ transform: {
2699
+ _id: "oid",
2700
+ business: "oid",
2701
+ user: "oid",
2702
+ transaction: "oid",
2703
+ expiredAt: "date"
2704
+ }
2705
+ })
2706
+ );
2707
+ t.object({
2708
+ member: t.string(),
2709
+ subscriptionId: t.string()
2710
+ });
2711
+ const P0 = {
2712
+ collectionName: "Cards",
2713
+ transform: {
2714
+ _id: "oid",
2715
+ business: "oid",
2716
+ member: "oid",
2717
+ redeemedAt: "date"
2718
+ },
2719
+ lookups: {
2720
+ business: {
2721
+ as: "business",
2722
+ fromCollection: "Business"
2723
+ },
2724
+ member: {
2725
+ as: "pf_member",
2726
+ fromCollection: "UsersV2"
2727
+ }
2728
+ }
2729
+ }, N0 = t.enum([
2730
+ "PENDING",
2731
+ "SENT",
2732
+ "FAILED"
2733
+ ]), A0 = t.enum(["SMS", "EMAIL"]), S0 = t.object({
2734
+ status: N0,
2735
+ channel: A0.nullish(),
2736
+ attemptedAt: t.coerce.date().nullish(),
2737
+ error: t.string().nullish()
2738
+ }), F0 = t.object({
2739
+ program: a,
2740
+ programName: t.string(),
2741
+ bundle: pe,
2742
+ amount: t.coerce.number(),
2743
+ sender: a.nullish(),
2744
+ senderName: t.string().nullish(),
2745
+ senderPhone: t.string().nullish(),
2746
+ recipient: sd,
2747
+ personalMessage: t.string().nullish(),
2748
+ notification: S0.nullish(),
2749
+ purchaseTransaction: a.nullish(),
2750
+ /**
2751
+ * Set by the atomic claim that guards activation. Exactly one caller can set
2752
+ * it on an unclaimed, unvoided card, which is what prevents two concurrent
2753
+ * activations from both being granted the face value. Cleared again if the
2754
+ * grant fails.
2755
+ */
2756
+ redemptionClaimedAt: t.coerce.date().nullish(),
2757
+ redemptionTransaction: a.nullish(),
2758
+ voidedAt: t.coerce.date().nullish(),
2759
+ voidedBy: t.string().nullish(),
2760
+ voidReason: t.string().nullish()
2761
+ });
2762
+ t.object({
2763
+ _id: a,
2764
+ business: a,
2765
+ serialNumber: t.string(),
2766
+ setCardOnBind: t.boolean().nullish(),
2767
+ redeemedAt: t.date().nullish(),
2768
+ member: a.nullish(),
2769
+ design: t.string().nullish(),
2770
+ bundle: t.string().nullish(),
2771
+ subscriptionBundle: t.string().nullish(),
2772
+ giftCard: F0.nullish(),
2773
+ pf_member: t.lazy(() => td).nullish(),
2774
+ pf_transaction: t.lazy(() => ud).nullish()
2775
+ }).describe(_.describe(P0));
2776
+ const _e = t.object({
2777
+ length: t.coerce.number().optional(),
2778
+ charset: t.string(),
2779
+ prefix: t.string().optional(),
2780
+ suffix: t.string().optional(),
2781
+ pattern: t.string().optional()
2782
+ });
2783
+ t.object({
2784
+ quantity: t.number(),
2785
+ code: t.string(),
2786
+ codeConfig: _e,
2787
+ setCardOnBind: t.boolean().optional(),
2788
+ design: t.string().nullish(),
2789
+ bundle: t.string().optional(),
2790
+ subscriptionBundle: t.string().optional()
2791
+ });
2792
+ const Ve = 1e3, K = 5, T0 = "GC";
2793
+ function I0(e) {
2794
+ var i;
2795
+ const d = e.denominations ?? [], n = !!((i = e.anyAmount) != null && i.enabled);
2796
+ if (d.length > K)
2797
+ return {
2798
+ path: ["denominations"],
2799
+ message: `At most ${K} fixed amounts`
2800
+ };
2801
+ if (d.length === 0 && !n)
2802
+ return {
2803
+ path: ["denominations"],
2804
+ message: 'Configure at least one fixed amount, or enable "Any amount"'
2805
+ };
2806
+ if (new Set(d).size !== d.length)
2807
+ return {
2808
+ path: ["denominations"],
2809
+ message: "Fixed amounts must be unique"
2810
+ };
2811
+ if (n && e.anyAmount && e.anyAmount.min > e.anyAmount.max)
2812
+ return {
2813
+ path: ["anyAmount", "min"],
2814
+ message: "Minimum cannot be greater than maximum"
2815
+ };
2816
+ const r = R0(
2817
+ e.numberFormat ?? ld()
2818
+ );
2819
+ return r ? {
2820
+ path: ["numberFormat"],
2821
+ message: r
2822
+ } : null;
2823
+ }
2824
+ function R0(e) {
2825
+ const d = cd(e), n = new Set(d.charset).size, o = [...d.pattern || "#".repeat(d.length ?? 0)].filter(($) => $ === "#").length * Math.log2(n);
2826
+ return n < 2 || o < 64 ? "Card number format must provide at least 64 bits of randomness" : null;
2827
+ }
2828
+ function ld() {
2829
+ return {
2830
+ // 16 characters, per the "Default — 16 random characters" option in the
2831
+ // portal's Add gift card design.
2832
+ length: 16,
2833
+ // Excludes I, O, 0, 1 — a card number gets read aloud and retyped.
2834
+ charset: "ABCDEFGHJKLMNPQRSTUVWXYZ23456789",
2835
+ prefix: T0,
2836
+ suffix: "",
2837
+ pattern: ""
2838
+ };
2839
+ }
2840
+ function cd(e) {
2841
+ return {
2842
+ ...e,
2843
+ prefix: e.prefix ?? "",
2844
+ suffix: e.suffix ?? "",
2845
+ pattern: e.pattern ?? ""
2846
+ };
2847
+ }
2848
+ function q0(e) {
2849
+ const { charset: d, prefix: n, suffix: r, length: i } = cd(e), o = d || ld().charset, $ = Math.max(1, Math.min(Number(i) || 16, 32));
2850
+ let s = "";
2851
+ for (let u = 0; u < $; u++)
2852
+ s += o.charAt(Math.floor(Math.random() * o.length));
2853
+ return `${n}${s}${r}`;
2854
+ }
2855
+ function z0(e) {
2856
+ var d;
2857
+ return {
2858
+ denominations: [...e.denominations ?? []].sort((n, r) => n - r),
2859
+ anyAmount: (d = e.anyAmount) != null && d.enabled ? { min: e.anyAmount.min, max: e.anyAmount.max } : null
2860
+ };
2861
+ }
2862
+ const fd = t.enum([
2863
+ "EMAIL",
2864
+ "PHONE",
2865
+ "EMAIL_OR_PHONE"
2866
+ ]), B = t.coerce.number().int("Amount must be a whole number").positive("Amount must be greater than 0").max(Ve, `Amount cannot exceed ${Ve}`), md = t.object({
2867
+ enabled: t.boolean(),
2868
+ min: B,
2869
+ max: B
2870
+ }), O0 = {
2871
+ collectionName: "GiftCardPrograms",
2872
+ transform: {
2873
+ _id: "oid",
2874
+ business: "oid",
2875
+ createdAt: "date",
2876
+ updatedAt: "date"
2877
+ }
2878
+ };
2879
+ t.object({
2880
+ _id: a,
2881
+ business: a,
2882
+ name: t.string().min(1, "Name is required"),
2883
+ designs: t.array(t.string()),
2884
+ numberFormat: _e,
2885
+ denominations: t.array(B),
2886
+ anyAmount: md.nullish(),
2887
+ recipientContactMethod: fd,
2888
+ allowPersonalMessage: t.boolean(),
2889
+ termsAndConditions: t.string().nullish(),
2890
+ /** Set when the merchant uploads a T&C document instead of typing text. */
2891
+ termsDocumentUrl: t.string().nullish(),
2892
+ active: t.boolean(),
2893
+ createdAt: t.coerce.date(),
2894
+ updatedAt: t.coerce.date()
2895
+ }).describe(_.describe(O0));
2896
+ const M0 = {
2897
+ name: t.string().min(1, "Name is required"),
2898
+ designs: t.array(t.string()),
2899
+ termsDocumentUrl: t.string().nullish(),
2900
+ numberFormat: _e.nullish(),
2901
+ denominations: t.array(B).max(
2902
+ K,
2903
+ `At most ${K} fixed amounts`
2904
+ ),
2905
+ anyAmount: md.nullish(),
2906
+ recipientContactMethod: fd,
2907
+ allowPersonalMessage: t.boolean().optional(),
2908
+ termsAndConditions: t.string().nullish()
2909
+ };
2910
+ t.object(M0).superRefine((e, d) => {
2911
+ const n = I0(e);
2912
+ n && d.addIssue({
2913
+ code: "custom",
2914
+ path: n.path,
2915
+ message: n.message
2916
+ });
2917
+ });
2918
+ t.object({
2919
+ amount: B,
2920
+ design: t.string().nullish(),
2921
+ recipientName: t.string().min(1, "Recipient name is required"),
2922
+ /**
2923
+ * Validated with the same rule as `FdoUserV2.phoneNumber`: this value is sent
2924
+ * verbatim to the SMS provider as the delivery target, so it is a trust
2925
+ * boundary, not just a display field.
2926
+ */
2927
+ recipientPhone: t.string().refine((e) => Qe(e), "Invalid phone number").nullish(),
2928
+ recipientEmail: t.string().email("Invalid email").nullish(),
2929
+ personalMessage: t.string().max(500).nullish()
2930
+ });
2931
+ t.object({
2932
+ serialNumber: t.string().min(1),
2933
+ reason: t.string().nullish()
2934
+ });
2935
+ export {
2936
+ k as D,
2937
+ X0 as F,
2938
+ K as G,
2939
+ W0 as a,
2940
+ Y0 as b,
2941
+ H0 as c,
2942
+ U0 as d,
2943
+ K0 as e,
2944
+ V0 as f,
2945
+ G0 as g,
2946
+ Un as h,
2947
+ B0 as i,
2948
+ b0 as j,
2949
+ od as k,
2950
+ s0 as l,
2951
+ pe as m,
2952
+ rd as n,
2953
+ z0 as o,
2954
+ ld as p,
2955
+ q0 as q,
2956
+ Ve as r,
2957
+ Yn as s,
2958
+ td as t,
2959
+ k0 as u,
2960
+ $e as v,
2961
+ nd as w,
2962
+ Qe as x
2963
+ };