@wisemen/wise-crm-web 0.2.2 → 0.2.4

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 (87) hide show
  1. package/dist/{BusinessDetailSidebarProvider-BQMRbGHQ.js → BusinessDetailSidebarProvider-CXG99iHk.js} +24 -30
  2. package/dist/{BusinessDetailView-BxGxWOme.js → BusinessDetailView-BZpocob4.js} +5 -5
  3. package/dist/{CrmDetailHeaderCard-CCNJpMAK.js → CrmDetailHeaderCard-Jo2OteBb.js} +2 -2
  4. package/dist/{CrmDetailView-ozCpuaX2.js → CrmDetailView-DKHX-JEl.js} +1 -1
  5. package/dist/{DealCommunicationTabView-Df5EeolN.js → DealCommunicationTabView-ClflVxHJ.js} +2 -2
  6. package/dist/{DealDetailView-DdWHqaBr.js → DealDetailView-ChAFvBBK.js} +5 -5
  7. package/dist/{DealExternalAttachment-qHdh4yMI.js → DealExternalAttachment-ClwtFzpQ.js} +1 -1
  8. package/dist/{DealSendMailDialog-BaYcWZP-.js → DealSendMailDialog-SWWyaxq8.js} +3 -3
  9. package/dist/{Error-BArv9rNb.js → Error-CX6APxDX.js} +410 -389
  10. package/dist/{IndividualDetailSidebarProvider-BXZH951l.js → IndividualDetailSidebarProvider-BJgxw1Jd.js} +3 -3
  11. package/dist/{IndividualDetailView-DfYS31-e.js → IndividualDetailView-CvGUCWPY.js} +5 -5
  12. package/dist/client/apiErrorCode.gen.d.ts +2 -2
  13. package/dist/client/sdk.gen.d.ts +2 -1
  14. package/dist/client/types.gen.d.ts +405 -351
  15. package/dist/client/zod.gen.d.ts +7527 -7342
  16. package/dist/{client-pCaNxE3C.js → client-CpsHjr8V.js} +327 -294
  17. package/dist/components/action-tooltip/ActionTooltip.vue.d.ts +2 -2
  18. package/dist/components/animation/AnimateHeight.vue.d.ts +2 -2
  19. package/dist/components/animation/AnimateWidth.vue.d.ts +2 -2
  20. package/dist/components/animation/FormCardSubmitButtonTransition.vue.d.ts +2 -2
  21. package/dist/components/animation/OpenCrmDetailTransition.vue.d.ts +2 -2
  22. package/dist/components/app/AppForm.vue.d.ts +9 -5
  23. package/dist/components/app/AppGlobalFormError.vue.d.ts +9 -5
  24. package/dist/components/app/dialog/AppDialog.vue.d.ts +2 -2
  25. package/dist/components/app/dialog/AppDialogHeader.vue.d.ts +2 -2
  26. package/dist/components/app/dialog/AppDialogStepper.vue.d.ts +9 -5
  27. package/dist/components/app/dialog/AppEntityDialog.vue.d.ts +2 -2
  28. package/dist/components/app/drawer/AppDrawer.vue.d.ts +2 -2
  29. package/dist/components/app/height-transition/AppHeightTransition.vue.d.ts +2 -2
  30. package/dist/components/app/rich-text-field/AppRichTextField.vue.d.ts +2 -2
  31. package/dist/components/app/tags-input-field/AppTagsInputField.vue.d.ts +2 -2
  32. package/dist/components/base/fieldset/BaseFieldsetLegend.vue.d.ts +2 -2
  33. package/dist/components/button-tooltip/ButtonTooltip.vue.d.ts +2 -2
  34. package/dist/components/clickable-element/ClickableElement.vue.d.ts +2 -2
  35. package/dist/components/color-provider/AppColorProvider.vue.d.ts +2 -2
  36. package/dist/components/column-layout/ColumnLayout.vue.d.ts +2 -2
  37. package/dist/components/crm-detail/CrmDetailAccordionRoot.vue.d.ts +2 -2
  38. package/dist/components/crm-detail/CrmDetailContent.vue.d.ts +2 -2
  39. package/dist/components/crm-detail/CrmDetailSidebarAccordionItem.vue.d.ts +3 -3
  40. package/dist/components/crm-detail/CrmDetailSidebarTabs.vue.d.ts +2 -2
  41. package/dist/components/custom-field/CustomFieldDefinitionForm.vue.d.ts +9 -5
  42. package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +3 -3
  43. package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts +2 -2
  44. package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +10 -6
  45. package/dist/components/entity-autocomplete/EntityAutocomplete.vue.d.ts +10 -6
  46. package/dist/components/file-upload/components/FormFileUpload.vue.d.ts +10 -6
  47. package/dist/components/filters/active/FiltersActiveFilterPopover.vue.d.ts +3 -3
  48. package/dist/components/filters/active/FiltersActiveValue.vue.d.ts +2 -2
  49. package/dist/components/focusable-element/FocusableElement.vue.d.ts +2 -2
  50. package/dist/components/form/FormFieldset.vue.d.ts +2 -2
  51. package/dist/components/open-entity-button/AppOpenEntityButton.vue.d.ts +2 -2
  52. package/dist/components/reveal-on-hover-or-focus/RevealOnHoverOrFocus.vue.d.ts +2 -2
  53. package/dist/components/row-layout/RowLayout.vue.d.ts +2 -2
  54. package/dist/components/table/TableActionsLayout.vue.d.ts +3 -3
  55. package/dist/components/table/data-table/DataTable.vue.d.ts +9 -5
  56. package/dist/components/table/data-table/DataTableCell.vue.d.ts +2 -2
  57. package/dist/components/table/data-table/DataTableEmptyOrLoadingState.vue.d.ts +2 -2
  58. package/dist/contact-person/ContactPersonCreateNewForm.vue.d.ts +2 -2
  59. package/dist/deal/components/DealContactPersonCreateNewForm.vue.d.ts +2 -2
  60. package/dist/deal/components/DealSendMailFormAttachmentField.vue.d.ts +10 -6
  61. package/dist/dialogs/contact-create/components/animations/ContactCreateDialogContentTransition.vue.d.ts +2 -2
  62. package/dist/index.js +188 -180
  63. package/dist/models/address/address.transformer.d.ts +1 -1
  64. package/dist/models/billing-information/billingInformationUuid.model.d.ts +1 -1
  65. package/dist/models/board/boardColumnUuid.model.d.ts +1 -1
  66. package/dist/models/board/transition/boardColumnTransitionUuid.model.d.ts +1 -1
  67. package/dist/models/business/businessUuid.model.d.ts +1 -1
  68. package/dist/models/business/create/businessCreateForm.model.d.ts +6 -6
  69. package/dist/models/business/individualItem.model.d.ts +1 -1
  70. package/dist/models/cbe/cbeEnterpriseNumber.model.d.ts +1 -1
  71. package/dist/models/cbe/search/cbeEnterpriseItem.model.d.ts +1 -1
  72. package/dist/models/contact-person/create/contactPersonCreateExistingForm.model.d.ts +1 -1
  73. package/dist/models/deal/contact-person/dealContactPersonCreateExistingForm.model.d.ts +1 -1
  74. package/dist/models/deal/dealUuid.model.d.ts +1 -1
  75. package/dist/models/individual/individualItem.model.d.ts +1 -1
  76. package/dist/models/individual/individualUuid.model.d.ts +1 -1
  77. package/dist/models/location/locationUuid.model.d.ts +1 -1
  78. package/dist/models/mail/create/mailCreateForm.model.d.ts +1 -1
  79. package/dist/models/mail/mailUuid.model.d.ts +1 -1
  80. package/dist/models/mail-template/mailTemplateUuid.model.d.ts +1 -1
  81. package/dist/models/notes/noteUuid.model.d.ts +1 -1
  82. package/dist/models/tenant-config/tenantConfig.model.d.ts +1 -0
  83. package/dist/models/user/userUuid.model.d.ts +1 -1
  84. package/dist/models/vat-number/vatNumber.transformer.d.ts +2 -2
  85. package/dist/style.css +2 -2
  86. package/dist/testing.js +1 -1
  87. package/package.json +21 -21
@@ -1,5 +1,5 @@
1
1
  import { a as AppGroup_default, n as useDateTimeFormat, o as PlainDateTransformer, r as DateUtil, s as ZonedDateTimeTransformer, u as ze } from "./AppSkeletonLoader-BAhoOmFD.js";
2
- import { $ as viewIndividualStatisticsV1, A as updateIndividualV1, B as viewBusinessNotesIndexV1, H as viewCustomFieldDefinitionIndexV1, J as viewIndividualBillingInformationDetailV1, K as viewDealNotesIndexV1, M as updateNoteV1, P as upsertIndividualBillingInformationV1, Q as viewIndividualNotesIndexV1, X as viewIndividualDetailV1, Y as viewIndividualContactPersonDetailV1, Z as viewIndividualIndexV1, _t as Locale, a as createIndividualV1, at as viewTenantConfigDetailV1, c as createUserIndividualGrantV1, ht as EntityType, k as updateIndividualContactPersonV1, l as deleteNoteV1, mt as EntityColor, p as linkContactPersonToIndividualV1, q as viewIndividualActivityLogIndexV1, s as createNoteV1, st as client, v as makeIndividualContactPersonPrimaryV1, w as unlinkContactPersonFromIndividualV1 } from "./client-pCaNxE3C.js";
2
+ import { $ as viewIndividualStatisticsV1, A as updateIndividualV1, B as viewBusinessNotesIndexV1, H as viewCustomFieldDefinitionIndexV1, J as viewIndividualBillingInformationDetailV1, K as viewDealNotesIndexV1, M as updateNoteV1, P as upsertIndividualBillingInformationV1, Q as viewIndividualNotesIndexV1, X as viewIndividualDetailV1, Y as viewIndividualContactPersonDetailV1, Z as viewIndividualIndexV1, _t as Locale, a as createIndividualV1, at as viewTenantConfigDetailV1, c as createUserIndividualGrantV1, ht as EntityType, k as updateIndividualContactPersonV1, l as deleteNoteV1, mt as EntityColor, p as linkContactPersonToIndividualV1, q as viewIndividualActivityLogIndexV1, s as createNoteV1, st as client, v as makeIndividualContactPersonPrimaryV1, w as unlinkContactPersonFromIndividualV1 } from "./client-CpsHjr8V.js";
3
3
  import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BSi1g3Lh.js";
4
4
  import z$1, { z } from "zod";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, readonly, ref, renderList, renderSlot, toDisplayString, unref, useId, useModel, useSlots, watch, withCtx, withModifiers } from "vue";
@@ -1345,19 +1345,7 @@ var ActivityIndexTransformer = class {
1345
1345
  };
1346
1346
  }
1347
1347
  static toNullableForm(s) {
1348
- return s === null ? {
1349
- placeId: null,
1350
- bus: "",
1351
- city: "",
1352
- coordinates: {
1353
- lat: 0,
1354
- lng: 0
1355
- },
1356
- country: "",
1357
- postalCode: "",
1358
- street: "",
1359
- streetNumber: ""
1360
- } : this.toForm(s);
1348
+ return s === null ? null : this.toForm(s);
1361
1349
  }
1362
1350
  }, StringUtil = class {
1363
1351
  static isEmpty(s) {
@@ -2722,7 +2710,8 @@ var EntityTypeUtil = class {
2722
2710
  name: s.entityName,
2723
2711
  color: s.entityColor,
2724
2712
  type: s.entityType
2725
- }))
2713
+ })),
2714
+ logoUrl: s.logoUrl
2726
2715
  };
2727
2716
  }
2728
2717
  }, TenantConfigService = class {
@@ -4036,8 +4025,8 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
4036
4025
  0,
4037
4026
  0,
4038
4027
  [
4039
- ["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}", [9]],
4040
- ["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", [9]],
4028
+ ["(?:(?: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]],
4029
+ ["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]],
4041
4030
  ["180(?:0\\d{3}|2)\\d{3}", [7, 10]],
4042
4031
  ["190[0-26]\\d{6}", [10]],
4043
4032
  0,
@@ -4337,12 +4326,12 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
4337
4326
  BJ: [
4338
4327
  "229",
4339
4328
  "00",
4340
- "(?:01\\d|[24-689])\\d{7}",
4329
+ "(?:01\\d|8)\\d{7}",
4341
4330
  [8, 10],
4342
4331
  [[
4343
4332
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
4344
4333
  "$1 $2 $3 $4",
4345
- ["[24-689]"]
4334
+ ["8"]
4346
4335
  ], [
4347
4336
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
4348
4337
  "$1 $2 $3 $4 $5",
@@ -4492,16 +4481,16 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
4492
4481
  BT: [
4493
4482
  "975",
4494
4483
  "00",
4495
- "[17]\\d{7}|[2-8]\\d{6}",
4484
+ "[178]\\d{7}|[2-8]\\d{6}",
4496
4485
  [7, 8],
4497
4486
  [[
4498
4487
  "(\\d)(\\d{3})(\\d{3})",
4499
4488
  "$1 $2 $3",
4500
- ["[2-68]|7[246]"]
4489
+ ["[2-6]|7[246]|8[2-4]"]
4501
4490
  ], [
4502
4491
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
4503
4492
  "$1 $2 $3 $4",
4504
- ["1[67]|7"]
4493
+ ["1[67]|[78]"]
4505
4494
  ]]
4506
4495
  ],
4507
4496
  BW: [
@@ -4632,7 +4621,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
4632
4621
  ["", [10]],
4633
4622
  ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]],
4634
4623
  ["900[2-9]\\d{6}", [10]],
4635
- ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]],
4624
+ ["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]],
4636
4625
  0,
4637
4626
  ["310\\d{4}", [7]],
4638
4627
  0,
@@ -4660,7 +4649,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
4660
4649
  0,
4661
4650
  [
4662
4651
  ["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]],
4663
- ["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", [9]],
4652
+ ["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]],
4664
4653
  ["180(?:0\\d{3}|2)\\d{3}", [7, 10]],
4665
4654
  ["190[0-26]\\d{6}", [10]],
4666
4655
  0,
@@ -4730,12 +4719,12 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
4730
4719
  CF: [
4731
4720
  "236",
4732
4721
  "00",
4733
- "(?:[27]\\d{3}|8776)\\d{4}",
4722
+ "8776\\d{4}|(?:[27]\\d|61)\\d{6}",
4734
4723
  [8],
4735
4724
  [[
4736
4725
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
4737
4726
  "$1 $2 $3 $4",
4738
- ["[278]"]
4727
+ ["[26-8]"]
4739
4728
  ]]
4740
4729
  ],
4741
4730
  CG: [
@@ -4822,6 +4811,11 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
4822
4811
  ["219", "2196"],
4823
4812
  "($1)"
4824
4813
  ],
4814
+ [
4815
+ "(\\d{3})(\\d{3})(\\d{3})",
4816
+ "$1 $2 $3",
4817
+ ["60|809"]
4818
+ ],
4825
4819
  [
4826
4820
  "(\\d{2})(\\d{3})(\\d{4})",
4827
4821
  "$1 $2 $3",
@@ -4836,12 +4830,12 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
4836
4830
  [
4837
4831
  "(\\d)(\\d{4})(\\d{4})",
4838
4832
  "$1 $2 $3",
4839
- ["9[2-9]"]
4833
+ ["9(?:10|[2-9])"]
4840
4834
  ],
4841
4835
  [
4842
4836
  "(\\d{2})(\\d{3})(\\d{4})",
4843
4837
  "$1 $2 $3",
4844
- ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],
4838
+ ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],
4845
4839
  "($1)"
4846
4840
  ],
4847
4841
  [
@@ -5124,7 +5118,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
5124
5118
  0,
5125
5119
  [
5126
5120
  ["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]],
5127
- ["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", [9]],
5121
+ ["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]],
5128
5122
  ["180(?:0\\d{3}|2)\\d{3}", [7, 10]],
5129
5123
  ["190[0-26]\\d{6}", [10]],
5130
5124
  0,
@@ -5289,7 +5283,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
5289
5283
  [
5290
5284
  "(\\d{5})(\\d{6})",
5291
5285
  "$1 $2",
5292
- ["15[03568]", "15(?:[0568]|31)"],
5286
+ ["15[03568]", "15(?:[0568]|3[13])"],
5293
5287
  "0$1"
5294
5288
  ],
5295
5289
  [
@@ -5507,7 +5501,18 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
5507
5501
  0,
5508
5502
  0,
5509
5503
  0,
5510
- "528[89]"
5504
+ 0,
5505
+ [
5506
+ ["528[89]\\d{5}"],
5507
+ ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],
5508
+ ["80[0-7]\\d{6}"],
5509
+ ["89\\d{7}"],
5510
+ 0,
5511
+ 0,
5512
+ 0,
5513
+ 0,
5514
+ ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]
5515
+ ]
5511
5516
  ],
5512
5517
  ER: [
5513
5518
  "291",
@@ -5782,12 +5787,12 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
5782
5787
  ],
5783
5788
  "0",
5784
5789
  0,
5785
- 0,
5790
+ "0|180020",
5786
5791
  0,
5787
5792
  0,
5788
5793
  0,
5789
5794
  [
5790
- ["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]],
5795
+ ["(?: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]],
5791
5796
  ["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]],
5792
5797
  ["80[08]\\d{7}|800\\d{6}|8001111"],
5793
5798
  ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]],
@@ -5875,7 +5880,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
5875
5880
  0,
5876
5881
  "0",
5877
5882
  0,
5878
- "([25-9]\\d{5})$|0",
5883
+ "([25-9]\\d{5})$|0|180020",
5879
5884
  "1481$1",
5880
5885
  0,
5881
5886
  0,
@@ -6452,7 +6457,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6452
6457
  0,
6453
6458
  "0",
6454
6459
  0,
6455
- "([25-8]\\d{5})$|0",
6460
+ "([25-8]\\d{5})$|0|180020",
6456
6461
  "1624$1",
6457
6462
  0,
6458
6463
  "74576|(?:16|7[56])24"
@@ -6523,7 +6528,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6523
6528
  [
6524
6529
  "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",
6525
6530
  "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]",
6526
- "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"
6531
+ "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]"
6527
6532
  ],
6528
6533
  "0$1",
6529
6534
  1
@@ -6531,14 +6536,14 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6531
6536
  [
6532
6537
  "(\\d{5})(\\d{5})",
6533
6538
  "$1 $2",
6534
- ["[6-9]"],
6539
+ ["16|[6-9]"],
6535
6540
  "0$1",
6536
6541
  1
6537
6542
  ],
6538
6543
  [
6539
6544
  "(\\d{4})(\\d{2,4})(\\d{4})",
6540
6545
  "$1 $2 $3",
6541
- ["1(?:6|8[06])", "1(?:6|8[06]0)"],
6546
+ ["18[06]", "18[06]0"],
6542
6547
  0,
6543
6548
  1
6544
6549
  ],
@@ -6659,7 +6664,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6659
6664
  IT: [
6660
6665
  "39",
6661
6666
  "00",
6662
- "0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",
6667
+ "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})?",
6663
6668
  [
6664
6669
  6,
6665
6670
  7,
@@ -6718,7 +6723,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6718
6723
  [
6719
6724
  "(\\d{3})(\\d{4})(\\d{4,5})",
6720
6725
  "$1 $2 $3",
6721
- ["3"]
6726
+ ["[03]"]
6722
6727
  ]
6723
6728
  ],
6724
6729
  0,
@@ -6728,14 +6733,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6728
6733
  0,
6729
6734
  0,
6730
6735
  [
6731
- ["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}", [
6732
- 6,
6733
- 7,
6734
- 8,
6735
- 9,
6736
- 10,
6737
- 11
6738
- ]],
6736
+ ["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}"],
6739
6737
  ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]],
6740
6738
  ["80(?:0\\d{3}|3)\\d{3}", [6, 9]],
6741
6739
  ["(?: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}", [
@@ -6760,7 +6758,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6760
6758
  0,
6761
6759
  "0",
6762
6760
  0,
6763
- "([0-24-8]\\d{5})$|0",
6761
+ "([0-24-8]\\d{5})$|0|180020",
6764
6762
  "1534$1",
6765
6763
  0,
6766
6764
  0,
@@ -6792,7 +6790,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6792
6790
  JO: [
6793
6791
  "962",
6794
6792
  "00",
6795
- "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",
6793
+ "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",
6796
6794
  [8, 9],
6797
6795
  [
6798
6796
  [
@@ -6816,7 +6814,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6816
6814
  [
6817
6815
  "(\\d)(\\d{4})(\\d{4})",
6818
6816
  "$1 $2 $3",
6819
- ["7"],
6817
+ ["[47]"],
6820
6818
  "0$1"
6821
6819
  ]
6822
6820
  ],
@@ -6825,7 +6823,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6825
6823
  JP: [
6826
6824
  "81",
6827
6825
  "010",
6828
- "00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",
6826
+ "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",
6829
6827
  [
6830
6828
  8,
6831
6829
  9,
@@ -6864,7 +6862,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6864
6862
  [
6865
6863
  "(\\d)(\\d{4})(\\d{4})",
6866
6864
  "$1-$2-$3",
6867
- ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],
6865
+ ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],
6868
6866
  "0$1"
6869
6867
  ],
6870
6868
  [
@@ -6892,13 +6890,13 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
6892
6890
  [
6893
6891
  "(\\d{2})(\\d{4})(\\d{4})",
6894
6892
  "$1-$2-$3",
6895
- ["[257-9]"],
6893
+ ["[25-9]"],
6896
6894
  "0$1"
6897
6895
  ]
6898
6896
  ],
6899
6897
  "0",
6900
6898
  0,
6901
- "(000[259]\\d{6})$|(?:(?:003768)0?)|0",
6899
+ "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0",
6902
6900
  "$1"
6903
6901
  ],
6904
6902
  KE: [
@@ -7133,7 +7131,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
7133
7131
  KZ: [
7134
7132
  "7",
7135
7133
  "810",
7136
- "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",
7134
+ "8\\d{13}|[78]\\d{9}",
7137
7135
  [10, 14],
7138
7136
  0,
7139
7137
  "8",
@@ -7141,7 +7139,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
7141
7139
  0,
7142
7140
  0,
7143
7141
  0,
7144
- "33622|7",
7142
+ "7",
7145
7143
  0,
7146
7144
  "8~10"
7147
7145
  ],
@@ -7369,7 +7367,12 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
7369
7367
  [
7370
7368
  "(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
7371
7369
  "$1 $2 $3 $4",
7372
- ["2(?:[0367]|4[3-8])"]
7370
+ ["20"]
7371
+ ],
7372
+ [
7373
+ "(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
7374
+ "$1 $2 $3 $4",
7375
+ ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]
7373
7376
  ],
7374
7377
  [
7375
7378
  "(\\d{3})(\\d{2})(\\d{3})",
@@ -7389,12 +7392,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
7389
7392
  [
7390
7393
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
7391
7394
  "$1 $2 $3 $4 $5",
7392
- ["2(?:[0367]|4[3-8])"]
7393
- ],
7394
- [
7395
- "(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
7396
- "$1 $2 $3 $4",
7397
- ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]
7395
+ ["20"]
7398
7396
  ]
7399
7397
  ],
7400
7398
  0,
@@ -7404,12 +7402,12 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
7404
7402
  LV: [
7405
7403
  "371",
7406
7404
  "00",
7407
- "(?:[268]\\d|90)\\d{6}",
7405
+ "(?:[268]\\d|78|90)\\d{6}",
7408
7406
  [8],
7409
7407
  [[
7410
7408
  "(\\d{2})(\\d{3})(\\d{3})",
7411
7409
  "$1 $2 $3",
7412
- ["[269]|8[01]"]
7410
+ ["[2679]|8[01]"]
7413
7411
  ]]
7414
7412
  ],
7415
7413
  LY: [
@@ -7431,28 +7429,22 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
7431
7429
  "[5-8]\\d{8}",
7432
7430
  [9],
7433
7431
  [
7434
- [
7435
- "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
7436
- "$1 $2 $3 $4",
7437
- ["5[45]"],
7438
- "0$1"
7439
- ],
7440
7432
  [
7441
7433
  "(\\d{4})(\\d{5})",
7442
7434
  "$1-$2",
7443
- ["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],
7435
+ ["892"],
7444
7436
  "0$1"
7445
7437
  ],
7446
7438
  [
7447
7439
  "(\\d{2})(\\d{7})",
7448
7440
  "$1-$2",
7449
- ["8"],
7441
+ ["8(?:0[0-7]|9)"],
7450
7442
  "0$1"
7451
7443
  ],
7452
7444
  [
7453
- "(\\d{3})(\\d{6})",
7454
- "$1-$2",
7455
- ["[5-7]"],
7445
+ "(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
7446
+ "$1 $2 $3 $4 $5",
7447
+ ["[5-8]"],
7456
7448
  "0$1"
7457
7449
  ]
7458
7450
  ],
@@ -7461,23 +7453,12 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
7461
7453
  0,
7462
7454
  0,
7463
7455
  0,
7464
- 0,
7465
- [
7466
- ["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],
7467
- ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-3]|8[0-7]))\\d{6}"],
7468
- ["80[0-7]\\d{6}"],
7469
- ["89\\d{7}"],
7470
- 0,
7471
- 0,
7472
- 0,
7473
- 0,
7474
- ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]
7475
- ]
7456
+ "[5-8]"
7476
7457
  ],
7477
7458
  MC: [
7478
7459
  "377",
7479
7460
  "00",
7480
- "(?:[3489]|6\\d)\\d{7}",
7461
+ "(?:[3489]|[67]\\d)\\d{7}",
7481
7462
  [8, 9],
7482
7463
  [
7483
7464
  [
@@ -7494,7 +7475,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
7494
7475
  [
7495
7476
  "(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
7496
7477
  "$1 $2 $3 $4 $5",
7497
- ["6"],
7478
+ ["[67]"],
7498
7479
  "0$1"
7499
7480
  ]
7500
7481
  ],
@@ -8729,7 +8710,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
8729
8710
  PY: [
8730
8711
  "595",
8731
8712
  "00",
8732
- "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",
8713
+ "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",
8733
8714
  [
8734
8715
  6,
8735
8716
  7,
@@ -8748,7 +8729,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
8748
8729
  [
8749
8730
  "(\\d{2})(\\d{5})",
8750
8731
  "$1 $2",
8751
- ["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],
8732
+ ["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],
8752
8733
  "(0$1)"
8753
8734
  ],
8754
8735
  [
@@ -8959,14 +8940,8 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
8959
8940
  0,
8960
8941
  0,
8961
8942
  0,
8943
+ "[3489]",
8962
8944
  0,
8963
- [
8964
- ["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]],
8965
- ["9\\d{9}", [10]],
8966
- ["8(?:0[04]|108\\d{3})\\d{7}"],
8967
- ["80[39]\\d{7}", [10]],
8968
- ["808\\d{7}", [10]]
8969
- ],
8970
8945
  "8~10"
8971
8946
  ],
8972
8947
  RW: [
@@ -9420,7 +9395,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
9420
9395
  SR: [
9421
9396
  "597",
9422
9397
  "00",
9423
- "(?:[2-5]|68|[78]\\d|90)\\d{5}",
9398
+ "(?:[2-5]|[6-8]\\d|90)\\d{5}",
9424
9399
  [6, 7],
9425
9400
  [
9426
9401
  [
@@ -9467,7 +9442,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
9467
9442
  SV: [
9468
9443
  "503",
9469
9444
  "00",
9470
- "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",
9445
+ "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",
9471
9446
  [
9472
9447
  7,
9473
9448
  8,
@@ -9482,7 +9457,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
9482
9457
  [
9483
9458
  "(\\d{4})(\\d{4})",
9484
9459
  "$1 $2",
9485
- ["[267]"]
9460
+ ["[25-7]"]
9486
9461
  ],
9487
9462
  [
9488
9463
  "(\\d{3})(\\d{4})(\\d{4})",
@@ -9507,18 +9482,18 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
9507
9482
  SY: [
9508
9483
  "963",
9509
9484
  "00",
9510
- "[1-39]\\d{8}|[1-5]\\d{7}",
9485
+ "[1-359]\\d{8}|[1-5]\\d{7}",
9511
9486
  [8, 9],
9512
9487
  [[
9513
9488
  "(\\d{2})(\\d{3})(\\d{3,4})",
9514
9489
  "$1 $2 $3",
9515
- ["[1-5]"],
9490
+ ["[1-4]|5[1-3]"],
9516
9491
  "0$1",
9517
9492
  1
9518
9493
  ], [
9519
9494
  "(\\d{3})(\\d{3})(\\d{3})",
9520
9495
  "$1 $2 $3",
9521
- ["9"],
9496
+ ["[59]"],
9522
9497
  "0$1",
9523
9498
  1
9524
9499
  ]],
@@ -9629,7 +9604,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
9629
9604
  TJ: [
9630
9605
  "992",
9631
9606
  "810",
9632
- "[0-57-9]\\d{8}",
9607
+ "(?:[0-57-9]\\d|66)\\d{7}",
9633
9608
  [9],
9634
9609
  [
9635
9610
  [
@@ -9650,7 +9625,7 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
9650
9625
  [
9651
9626
  "(\\d{2})(\\d{3})(\\d{4})",
9652
9627
  "$1 $2 $3",
9653
- ["[0-57-9]"]
9628
+ ["\\d"]
9654
9629
  ]
9655
9630
  ],
9656
9631
  0,
@@ -10020,22 +9995,20 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
10020
9995
  0,
10021
9996
  0,
10022
9997
  [
10023
- ["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-68]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|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-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],
9998
+ ["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],
10024
9999
  [""],
10025
10000
  ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],
10026
10001
  ["900[2-9]\\d{6}"],
10027
- ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],
10028
- 0,
10029
- 0,
10030
- 0,
10031
- ["305209\\d{4}"]
10002
+ ["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}"]
10032
10003
  ]
10033
10004
  ],
10034
10005
  UY: [
10035
10006
  "598",
10036
10007
  "0(?:0|1[3-9]\\d)",
10037
- "0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",
10008
+ "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",
10038
10009
  [
10010
+ 4,
10011
+ 5,
10039
10012
  6,
10040
10013
  7,
10041
10014
  8,
@@ -10046,6 +10019,11 @@ var _hoisted_1$6 = { class: "text-sm" }, _hoisted_2$3 = {
10046
10019
  13
10047
10020
  ],
10048
10021
  [
10022
+ [
10023
+ "(\\d{4,5})",
10024
+ "$1",
10025
+ ["21"]
10026
+ ],
10049
10027
  [
10050
10028
  "(\\d{3})(\\d{3,4})",
10051
10029
  "$1 $2",
@@ -10839,13 +10817,13 @@ var objectConstructor = {}.constructor;
10839
10817
  function isObject(s) {
10840
10818
  return s != null && s.constructor === objectConstructor;
10841
10819
  }
10842
- function _typeof$1(s) {
10820
+ function _typeof$4(s) {
10843
10821
  "@babel/helpers - typeof";
10844
- return _typeof$1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
10822
+ return _typeof$4 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
10845
10823
  return typeof s;
10846
10824
  } : function(s) {
10847
10825
  return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
10848
- }, _typeof$1(s);
10826
+ }, _typeof$4(s);
10849
10827
  }
10850
10828
  function _classCallCheck$2(s, F) {
10851
10829
  if (!(s instanceof F)) throw TypeError("Cannot call a class as a function");
@@ -10853,12 +10831,26 @@ function _classCallCheck$2(s, F) {
10853
10831
  function _defineProperties$2(s, F) {
10854
10832
  for (var I = 0; I < F.length; I++) {
10855
10833
  var L = F[I];
10856
- L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(s, L.key, L);
10834
+ L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(s, _toPropertyKey$4(L.key), L);
10857
10835
  }
10858
10836
  }
10859
10837
  function _createClass$2(s, F, I) {
10860
10838
  return F && _defineProperties$2(s.prototype, F), I && _defineProperties$2(s, I), Object.defineProperty(s, "prototype", { writable: !1 }), s;
10861
10839
  }
10840
+ function _toPropertyKey$4(s) {
10841
+ var F = _toPrimitive$4(s, "string");
10842
+ return _typeof$4(F) == "symbol" ? F : F + "";
10843
+ }
10844
+ function _toPrimitive$4(s, F) {
10845
+ if (_typeof$4(s) != "object" || !s) return s;
10846
+ var I = s[Symbol.toPrimitive];
10847
+ if (I !== void 0) {
10848
+ var L = I.call(s, F || "default");
10849
+ if (_typeof$4(L) != "object") return L;
10850
+ throw TypeError("@@toPrimitive must return a primitive value.");
10851
+ }
10852
+ return (F === "string" ? String : Number)(s);
10853
+ }
10862
10854
  var V3 = "1.2.0", V4 = "1.7.35", DEFAULT_EXT_PREFIX = " ext. ", CALLING_CODE_REG_EXP = /^\d+$/, Metadata = /* @__PURE__ */ function() {
10863
10855
  function s(F) {
10864
10856
  _classCallCheck$2(this, s), validateMetadata(F), this.metadata = F, setVersion.call(this, F);
@@ -11045,7 +11037,7 @@ var V3 = "1.2.0", V4 = "1.7.35", DEFAULT_EXT_PREFIX = " ext. ", CALLING_CODE_REG
11045
11037
  return this.numberingPlan !== void 0;
11046
11038
  }
11047
11039
  }
11048
- ]), s;
11040
+ ]);
11049
11041
  }(), NumberingPlan = /* @__PURE__ */ function() {
11050
11042
  function s(F, I) {
11051
11043
  _classCallCheck$2(this, s), this.globalMetadataObject = I, this.metadata = F, setVersion.call(this, I.metadata);
@@ -11180,7 +11172,7 @@ var V3 = "1.2.0", V4 = "1.7.35", DEFAULT_EXT_PREFIX = " ext. ", CALLING_CODE_REG
11180
11172
  return this.v1 || this.v2 ? DEFAULT_EXT_PREFIX : this.metadata[13] || DEFAULT_EXT_PREFIX;
11181
11173
  }
11182
11174
  }
11183
- ]), s;
11175
+ ]);
11184
11176
  }(), Format = /* @__PURE__ */ function() {
11185
11177
  function s(F, I) {
11186
11178
  _classCallCheck$2(this, s), this._format = F, this.metadata = I;
@@ -11234,7 +11226,7 @@ var V3 = "1.2.0", V4 = "1.7.35", DEFAULT_EXT_PREFIX = " ext. ", CALLING_CODE_REG
11234
11226
  return this._format[5] || this.format();
11235
11227
  }
11236
11228
  }
11237
- ]), s;
11229
+ ]);
11238
11230
  }(), FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\(?\$1\)?$/, Type = /* @__PURE__ */ function() {
11239
11231
  function s(F, I) {
11240
11232
  _classCallCheck$2(this, s), this.type = F, this.metadata = I;
@@ -11249,7 +11241,7 @@ var V3 = "1.2.0", V4 = "1.7.35", DEFAULT_EXT_PREFIX = " ext. ", CALLING_CODE_REG
11249
11241
  value: function() {
11250
11242
  if (!this.metadata.v1) return this.type[1] || this.metadata.possibleLengths();
11251
11243
  }
11252
- }]), s;
11244
+ }]);
11253
11245
  }();
11254
11246
  function getType(s, F) {
11255
11247
  switch (F) {
@@ -11271,20 +11263,20 @@ function validateMetadata(s) {
11271
11263
  }
11272
11264
  /* istanbul ignore next */
11273
11265
  var typeOf = function(s) {
11274
- return _typeof$1(s);
11266
+ return _typeof$4(s);
11275
11267
  };
11276
11268
  function getCountryCallingCode(s, F) {
11277
- if (F = new Metadata(F), F.hasCountry(s)) return F.country(s).countryCallingCode();
11269
+ if (F = new Metadata(F), F.hasCountry(s)) return F.selectNumberingPlan(s).countryCallingCode();
11278
11270
  throw Error(`Unknown country: ${s}`);
11279
11271
  }
11280
11272
  function setVersion(s) {
11281
11273
  var F = s.version;
11282
11274
  typeof F == "number" ? (this.v1 = F === 1, this.v2 = F === 2, this.v3 = F === 3, this.v4 = F === 4) : F ? semver_compare_default(F, V3) === -1 ? this.v2 = !0 : semver_compare_default(F, V4) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
11283
11275
  }
11284
- function _createForOfIteratorHelperLoose$4(s, F) {
11276
+ function _createForOfIteratorHelperLoose$3(s, F) {
11285
11277
  var I = typeof Symbol < "u" && s[Symbol.iterator] || s["@@iterator"];
11286
11278
  if (I) return (I = I.call(s)).next.bind(I);
11287
- if (Array.isArray(s) || (I = _unsupportedIterableToArray$5(s)) || F && s && typeof s.length == "number") {
11279
+ if (Array.isArray(s) || (I = _unsupportedIterableToArray$4(s)) || F && s && typeof s.length == "number") {
11288
11280
  I && (s = I);
11289
11281
  var L = 0;
11290
11282
  return function() {
@@ -11296,21 +11288,20 @@ function _createForOfIteratorHelperLoose$4(s, F) {
11296
11288
  }
11297
11289
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11298
11290
  }
11299
- function _unsupportedIterableToArray$5(s, F) {
11291
+ function _unsupportedIterableToArray$4(s, F) {
11300
11292
  if (s) {
11301
- if (typeof s == "string") return _arrayLikeToArray$5(s, F);
11302
- var I = Object.prototype.toString.call(s).slice(8, -1);
11303
- if (I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set") return Array.from(s);
11304
- if (I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)) return _arrayLikeToArray$5(s, F);
11293
+ if (typeof s == "string") return _arrayLikeToArray$4(s, F);
11294
+ var I = {}.toString.call(s).slice(8, -1);
11295
+ return I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set" ? Array.from(s) : I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I) ? _arrayLikeToArray$4(s, F) : void 0;
11305
11296
  }
11306
11297
  }
11307
- function _arrayLikeToArray$5(s, F) {
11298
+ function _arrayLikeToArray$4(s, F) {
11308
11299
  (F == null || F > s.length) && (F = s.length);
11309
11300
  for (var I = 0, L = Array(F); I < F; I++) L[I] = s[I];
11310
11301
  return L;
11311
11302
  }
11312
11303
  function mergeArrays(s, F) {
11313
- for (var I = s.slice(), L = _createForOfIteratorHelperLoose$4(F), R; !(R = L()).done;) {
11304
+ for (var I = s.slice(), L = _createForOfIteratorHelperLoose$3(F), R; !(R = L()).done;) {
11314
11305
  var B = R.value;
11315
11306
  s.indexOf(B) < 0 && I.push(B);
11316
11307
  }
@@ -11318,20 +11309,21 @@ function mergeArrays(s, F) {
11318
11309
  return s - F;
11319
11310
  });
11320
11311
  }
11321
- function checkNumberLength(s, F) {
11322
- return checkNumberLengthForType(s, void 0, F);
11312
+ function checkNumberLength(s, F, I) {
11313
+ return checkNumberLengthForType(s, F, void 0, I);
11323
11314
  }
11324
- function checkNumberLengthForType(s, F, I) {
11325
- var L = I.type(F), R = L && L.possibleLengths() || I.possibleLengths();
11326
- if (!R) return "IS_POSSIBLE";
11327
- if (F === "FIXED_LINE_OR_MOBILE") {
11315
+ function checkNumberLengthForType(s, F, I, L) {
11316
+ F && (L = new Metadata(L.metadata), L.selectNumberingPlan(F));
11317
+ var R = L.type(I), B = R && R.possibleLengths() || L.possibleLengths();
11318
+ if (!B) return "IS_POSSIBLE";
11319
+ if (I === "FIXED_LINE_OR_MOBILE") {
11328
11320
  /* istanbul ignore next */
11329
- if (!I.type("FIXED_LINE")) return checkNumberLengthForType(s, "MOBILE", I);
11330
- var B = I.type("MOBILE");
11331
- B && (R = mergeArrays(R, B.possibleLengths()));
11332
- } else if (F && !L) return "INVALID_LENGTH";
11333
- var V = s.length, H = R[0];
11334
- return H === V ? "IS_POSSIBLE" : H > V ? "TOO_SHORT" : R[R.length - 1] < V ? "TOO_LONG" : R.indexOf(V, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
11321
+ if (!L.type("FIXED_LINE")) return checkNumberLengthForType(s, F, "MOBILE", L);
11322
+ var V = L.type("MOBILE");
11323
+ V && (B = mergeArrays(B, V.possibleLengths()));
11324
+ } else if (I && !R) return "INVALID_LENGTH";
11325
+ var H = s.length, U = B[0];
11326
+ return U === H ? "IS_POSSIBLE" : U > H ? "TOO_SHORT" : B[B.length - 1] < H ? "TOO_LONG" : B.indexOf(H, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
11335
11327
  }
11336
11328
  function isPossiblePhoneNumber(s, F, I) {
11337
11329
  if (F === void 0 && (F = {}), I = new Metadata(I), F.v2) {
@@ -11341,18 +11333,18 @@ function isPossiblePhoneNumber(s, F, I) {
11341
11333
  if (!s.phone) return !1;
11342
11334
  if (s.country) {
11343
11335
  if (!I.hasCountry(s.country)) throw Error(`Unknown country: ${s.country}`);
11344
- I.country(s.country);
11336
+ I.selectNumberingPlan(s.country);
11345
11337
  } else {
11346
11338
  if (!s.countryCallingCode) throw Error("Invalid phone number object passed");
11347
11339
  I.selectNumberingPlan(s.countryCallingCode);
11348
11340
  }
11349
11341
  }
11350
- if (I.possibleLengths()) return isPossibleNumber(s.phone || s.nationalNumber, I);
11342
+ if (I.possibleLengths()) return isPossibleNumber(s.phone || s.nationalNumber, s.country, I);
11351
11343
  if (s.countryCallingCode && I.isNonGeographicCallingCode(s.countryCallingCode)) return !0;
11352
11344
  throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
11353
11345
  }
11354
- function isPossibleNumber(s, F) {
11355
- switch (checkNumberLength(s, F)) {
11346
+ function isPossibleNumber(s, F, I) {
11347
+ switch (checkNumberLength(s, F, I)) {
11356
11348
  case "IS_POSSIBLE": return !0;
11357
11349
  default: return !1;
11358
11350
  }
@@ -11360,10 +11352,10 @@ function isPossibleNumber(s, F) {
11360
11352
  function matchesEntirely(s, F) {
11361
11353
  return s ||= "", (/* @__PURE__ */ RegExp("^(?:" + F + ")$")).test(s);
11362
11354
  }
11363
- function _createForOfIteratorHelperLoose$3(s, F) {
11355
+ function _createForOfIteratorHelperLoose$2(s, F) {
11364
11356
  var I = typeof Symbol < "u" && s[Symbol.iterator] || s["@@iterator"];
11365
11357
  if (I) return (I = I.call(s)).next.bind(I);
11366
- if (Array.isArray(s) || (I = _unsupportedIterableToArray$4(s)) || F && s && typeof s.length == "number") {
11358
+ if (Array.isArray(s) || (I = _unsupportedIterableToArray$3(s)) || F && s && typeof s.length == "number") {
11367
11359
  I && (s = I);
11368
11360
  var L = 0;
11369
11361
  return function() {
@@ -11375,15 +11367,14 @@ function _createForOfIteratorHelperLoose$3(s, F) {
11375
11367
  }
11376
11368
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11377
11369
  }
11378
- function _unsupportedIterableToArray$4(s, F) {
11370
+ function _unsupportedIterableToArray$3(s, F) {
11379
11371
  if (s) {
11380
- if (typeof s == "string") return _arrayLikeToArray$4(s, F);
11381
- var I = Object.prototype.toString.call(s).slice(8, -1);
11382
- if (I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set") return Array.from(s);
11383
- if (I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)) return _arrayLikeToArray$4(s, F);
11372
+ if (typeof s == "string") return _arrayLikeToArray$3(s, F);
11373
+ var I = {}.toString.call(s).slice(8, -1);
11374
+ return I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set" ? Array.from(s) : I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I) ? _arrayLikeToArray$3(s, F) : void 0;
11384
11375
  }
11385
11376
  }
11386
- function _arrayLikeToArray$4(s, F) {
11377
+ function _arrayLikeToArray$3(s, F) {
11387
11378
  (F == null || F > s.length) && (F = s.length);
11388
11379
  for (var I = 0, L = Array(F); I < F; I++) L[I] = s[I];
11389
11380
  return L;
@@ -11405,7 +11396,7 @@ function getNumberType(s, F, I) {
11405
11396
  var L = F.v2 ? s.nationalNumber : s.phone;
11406
11397
  if (matchesEntirely(L, I.nationalNumberPattern())) {
11407
11398
  if (isNumberTypeEqualTo(L, "FIXED_LINE", I)) return I.type("MOBILE") && I.type("MOBILE").pattern() === "" || !I.type("MOBILE") || isNumberTypeEqualTo(L, "MOBILE", I) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
11408
- for (var R = _createForOfIteratorHelperLoose$3(NON_FIXED_LINE_PHONE_TYPES), B; !(B = R()).done;) {
11399
+ for (var R = _createForOfIteratorHelperLoose$2(NON_FIXED_LINE_PHONE_TYPES), B; !(B = R()).done;) {
11409
11400
  var V = B.value;
11410
11401
  if (isNumberTypeEqualTo(L, V, I)) return V;
11411
11402
  }
@@ -11413,7 +11404,8 @@ function getNumberType(s, F, I) {
11413
11404
  }
11414
11405
  }
11415
11406
  function isNumberTypeEqualTo(s, F, I) {
11416
- return F = I.type(F), !F || !F.pattern() || F.possibleLengths() && F.possibleLengths().indexOf(s.length) < 0 ? !1 : matchesEntirely(s, F.pattern());
11407
+ var L = I.type(F);
11408
+ return !L || !L.pattern() || L.possibleLengths() && L.possibleLengths().indexOf(s.length) < 0 ? !1 : matchesEntirely(s, L.pattern());
11417
11409
  }
11418
11410
  function isValidNumber(s, F, I) {
11419
11411
  return F ||= {}, I = new Metadata(I), I.selectNumberingPlan(s.country, s.countryCallingCode), I.hasTypes() ? getNumberType(s, F, I.metadata) !== void 0 : matchesEntirely(F.v2 ? s.nationalNumber : s.phone, I.nationalNumberPattern());
@@ -11465,63 +11457,117 @@ function extractNationalNumberFromPossiblyIncompleteNumber(s, F) {
11465
11457
  }
11466
11458
  return { nationalNumber: s };
11467
11459
  }
11468
- function extractNationalNumber(s, F) {
11469
- var I = extractNationalNumberFromPossiblyIncompleteNumber(s, F), L = I.carrierCode, R = I.nationalNumber;
11470
- return R !== s && (!shouldHaveExtractedNationalPrefix(s, R, F) || F.possibleLengths() && !isPossibleIncompleteNationalNumber(R, F)) ? { nationalNumber: s } : {
11471
- nationalNumber: R,
11472
- carrierCode: L
11460
+ function _createForOfIteratorHelperLoose$1(s, F) {
11461
+ var I = typeof Symbol < "u" && s[Symbol.iterator] || s["@@iterator"];
11462
+ if (I) return (I = I.call(s)).next.bind(I);
11463
+ if (Array.isArray(s) || (I = _unsupportedIterableToArray$2(s)) || F && s && typeof s.length == "number") {
11464
+ I && (s = I);
11465
+ var L = 0;
11466
+ return function() {
11467
+ return L >= s.length ? { done: !0 } : {
11468
+ done: !1,
11469
+ value: s[L++]
11470
+ };
11471
+ };
11472
+ }
11473
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11474
+ }
11475
+ function _unsupportedIterableToArray$2(s, F) {
11476
+ if (s) {
11477
+ if (typeof s == "string") return _arrayLikeToArray$2(s, F);
11478
+ var I = {}.toString.call(s).slice(8, -1);
11479
+ return I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set" ? Array.from(s) : I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I) ? _arrayLikeToArray$2(s, F) : void 0;
11480
+ }
11481
+ }
11482
+ function _arrayLikeToArray$2(s, F) {
11483
+ (F == null || F > s.length) && (F = s.length);
11484
+ for (var I = 0, L = Array(F); I < F; I++) L[I] = s[I];
11485
+ return L;
11486
+ }
11487
+ function getCountryByNationalNumber(s, F) {
11488
+ var I = F.countries, L = F.metadata;
11489
+ L = new Metadata(L);
11490
+ for (var R = _createForOfIteratorHelperLoose$1(I), B; !(B = R()).done;) {
11491
+ var V = B.value;
11492
+ if (L.selectNumberingPlan(V), L.leadingDigits()) {
11493
+ if (s && s.search(L.leadingDigits()) === 0) return V;
11494
+ } else if (getNumberType({
11495
+ phone: s,
11496
+ country: V
11497
+ }, void 0, L.metadata)) return V;
11498
+ }
11499
+ }
11500
+ var USE_NON_GEOGRAPHIC_COUNTRY_CODE$2 = !1;
11501
+ function getCountryByCallingCode(s, F) {
11502
+ var I = F.nationalNumber, L = F.metadata;
11503
+ /* istanbul ignore if */
11504
+ if (USE_NON_GEOGRAPHIC_COUNTRY_CODE$2 && L.isNonGeographicCallingCode(s)) return "001";
11505
+ var R = L.getCountryCodesForCallingCode(s);
11506
+ if (R) return R.length === 1 ? R[0] : getCountryByNationalNumber(I, {
11507
+ countries: R,
11508
+ metadata: L.metadata
11509
+ });
11510
+ }
11511
+ function extractNationalNumber(s, F, I) {
11512
+ var L = extractNationalNumberFromPossiblyIncompleteNumber(s, I), R = L.carrierCode, B = L.nationalNumber;
11513
+ return B !== s && (!shouldHaveExtractedNationalPrefix(s, B, I) || I.numberingPlan.possibleLengths() && (F ||= getCountryByCallingCode(I.numberingPlan.callingCode(), {
11514
+ nationalNumber: B,
11515
+ metadata: I
11516
+ }), !isPossibleIncompleteNationalNumber(B, F, I))) ? { nationalNumber: s } : {
11517
+ nationalNumber: B,
11518
+ carrierCode: R
11473
11519
  };
11474
11520
  }
11475
11521
  function shouldHaveExtractedNationalPrefix(s, F, I) {
11476
11522
  return !(matchesEntirely(s, I.nationalNumberPattern()) && !matchesEntirely(F, I.nationalNumberPattern()));
11477
11523
  }
11478
- function isPossibleIncompleteNationalNumber(s, F) {
11479
- switch (checkNumberLength(s, F)) {
11524
+ function isPossibleIncompleteNationalNumber(s, F, I) {
11525
+ switch (checkNumberLength(s, F, I)) {
11480
11526
  case "TOO_SHORT":
11481
11527
  case "INVALID_LENGTH": return !1;
11482
11528
  default: return !0;
11483
11529
  }
11484
11530
  }
11485
- function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(s, F, I, L) {
11486
- var R = F ? getCountryCallingCode(F, L) : I;
11487
- if (s.indexOf(R) === 0) {
11488
- L = new Metadata(L), L.selectNumberingPlan(F, I);
11489
- var B = s.slice(R.length), V = extractNationalNumber(B, L).nationalNumber, H = extractNationalNumber(s, L).nationalNumber;
11490
- if (!matchesEntirely(H, L.nationalNumberPattern()) && matchesEntirely(V, L.nationalNumberPattern()) || checkNumberLength(H, L) === "TOO_LONG") return {
11491
- countryCallingCode: R,
11492
- number: B
11531
+ function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(s, F, I, L, R) {
11532
+ var B = F || I ? getCountryCallingCode(F || I, R) : L;
11533
+ if (s.indexOf(B) === 0) {
11534
+ R = new Metadata(R), R.selectNumberingPlan(F || I, B);
11535
+ var V = s.slice(B.length), H = extractNationalNumber(V, F, R).nationalNumber, U = extractNationalNumber(s, F, R).nationalNumber;
11536
+ if (!matchesEntirely(U, R.nationalNumberPattern()) && matchesEntirely(H, R.nationalNumberPattern()) || checkNumberLength(U, F, R) === "TOO_LONG") return {
11537
+ countryCallingCode: B,
11538
+ number: V
11493
11539
  };
11494
11540
  }
11495
11541
  return { number: s };
11496
11542
  }
11497
- function extractCountryCallingCode(s, F, I, L) {
11543
+ function extractCountryCallingCode(s, F, I, L, R) {
11498
11544
  if (!s) return {};
11499
- var R;
11545
+ var B;
11500
11546
  if (s[0] !== "+") {
11501
- var B = stripIddPrefix(s, F, I, L);
11502
- if (B && B !== s) R = !0, s = "+" + B;
11547
+ var V = stripIddPrefix(s, F || I, L, R);
11548
+ if (V && V !== s) B = !0, s = "+" + V;
11503
11549
  else {
11504
- if (F || I) {
11505
- var V = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(s, F, I, L), H = V.countryCallingCode, U = V.number;
11506
- if (H) return {
11550
+ if (F || I || L) {
11551
+ var H = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(s, F, I, L, R), U = H.countryCallingCode, W = H.number;
11552
+ if (U) return {
11507
11553
  countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
11508
- countryCallingCode: H,
11509
- number: U
11554
+ countryCallingCode: U,
11555
+ number: W
11510
11556
  };
11511
11557
  }
11512
11558
  return { number: s };
11513
11559
  }
11514
11560
  }
11515
11561
  if (s[1] === "0") return {};
11516
- L = new Metadata(L);
11517
- for (var W = 2; W - 1 <= 3 && W <= s.length;) {
11518
- var G = s.slice(1, W);
11519
- if (L.hasCallingCode(G)) return L.selectNumberingPlan(G), {
11520
- countryCallingCodeSource: R ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
11521
- countryCallingCode: G,
11522
- number: s.slice(W)
11562
+ R = new Metadata(R);
11563
+ for (var G = 2; G - 1 <= 3 && G <= s.length;) {
11564
+ var K = s.slice(1, G);
11565
+ if (R.hasCallingCode(K)) return R.selectNumberingPlan(K), {
11566
+ countryCallingCodeSource: B ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
11567
+ countryCallingCode: K,
11568
+ number: s.slice(G)
11523
11569
  };
11524
- W++;
11570
+ G++;
11525
11571
  }
11526
11572
  return {};
11527
11573
  }
@@ -11561,70 +11607,13 @@ function formatRFC3966(s) {
11561
11607
  if (F[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
11562
11608
  return `tel:${F}${I ? ";ext=" + I : ""}`;
11563
11609
  }
11564
- function _createForOfIteratorHelperLoose$2(s, F) {
11565
- var I = typeof Symbol < "u" && s[Symbol.iterator] || s["@@iterator"];
11566
- if (I) return (I = I.call(s)).next.bind(I);
11567
- if (Array.isArray(s) || (I = _unsupportedIterableToArray$3(s)) || F && s && typeof s.length == "number") {
11568
- I && (s = I);
11569
- var L = 0;
11570
- return function() {
11571
- return L >= s.length ? { done: !0 } : {
11572
- done: !1,
11573
- value: s[L++]
11574
- };
11575
- };
11576
- }
11577
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11578
- }
11579
- function _unsupportedIterableToArray$3(s, F) {
11580
- if (s) {
11581
- if (typeof s == "string") return _arrayLikeToArray$3(s, F);
11582
- var I = Object.prototype.toString.call(s).slice(8, -1);
11583
- if (I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set") return Array.from(s);
11584
- if (I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)) return _arrayLikeToArray$3(s, F);
11585
- }
11586
- }
11587
- function _arrayLikeToArray$3(s, F) {
11588
- (F == null || F > s.length) && (F = s.length);
11589
- for (var I = 0, L = Array(F); I < F; I++) L[I] = s[I];
11590
- return L;
11591
- }
11592
- function ownKeys$3(s, F) {
11593
- var I = Object.keys(s);
11594
- if (Object.getOwnPropertySymbols) {
11595
- var L = Object.getOwnPropertySymbols(s);
11596
- F && (L = L.filter(function(F) {
11597
- return Object.getOwnPropertyDescriptor(s, F).enumerable;
11598
- })), I.push.apply(I, L);
11599
- }
11600
- return I;
11601
- }
11602
- function _objectSpread$3(s) {
11603
- for (var F = 1; F < arguments.length; F++) {
11604
- var I = arguments[F] == null ? {} : arguments[F];
11605
- F % 2 ? ownKeys$3(Object(I), !0).forEach(function(F) {
11606
- _defineProperty$3(s, F, I[F]);
11607
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(I)) : ownKeys$3(Object(I)).forEach(function(F) {
11608
- Object.defineProperty(s, F, Object.getOwnPropertyDescriptor(I, F));
11609
- });
11610
- }
11611
- return s;
11612
- }
11613
- function _defineProperty$3(s, F, I) {
11614
- return F in s ? Object.defineProperty(s, F, {
11615
- value: I,
11616
- enumerable: !0,
11617
- configurable: !0,
11618
- writable: !0
11619
- }) : s[F] = I, s;
11620
- }
11621
11610
  var DEFAULT_OPTIONS = { formatExtension: function(s, F, I) {
11622
11611
  return `${s}${I.ext()}${F}`;
11623
11612
  } };
11624
11613
  function formatNumber(s, F, I, L) {
11625
- if (I = I ? _objectSpread$3(_objectSpread$3({}, DEFAULT_OPTIONS), I) : DEFAULT_OPTIONS, L = new Metadata(L), s.country && s.country !== "001") {
11614
+ if (I = I ? merge({}, DEFAULT_OPTIONS, I) : DEFAULT_OPTIONS, L = new Metadata(L), s.country && s.country !== "001") {
11626
11615
  if (!L.hasCountry(s.country)) throw Error(`Unknown country: ${s.country}`);
11627
- L.country(s.country);
11616
+ L.selectNumberingPlan(s.country);
11628
11617
  } else if (s.countryCallingCode) L.selectNumberingPlan(s.countryCallingCode);
11629
11618
  else return s.phone || "";
11630
11619
  var R = L.countryCallingCode(), B = I.v2 ? s.nationalNumber : s.phone, V;
@@ -11636,7 +11625,10 @@ function formatNumber(s, F, I, L) {
11636
11625
  number: `+${R}${B}`,
11637
11626
  ext: s.ext
11638
11627
  });
11639
- case "IDD": return I.fromCountry ? addExtension(formatIDD(B, s.carrierCode, R, I.fromCountry, L), s.ext, L, I.formatExtension) : void 0;
11628
+ case "IDD":
11629
+ if (!I.fromCountry) return;
11630
+ var H = formatIDD(B, s.carrierCode, R, I.fromCountry, L);
11631
+ return H ? addExtension(H, s.ext, L, I.formatExtension) : void 0;
11640
11632
  default: throw Error(`Unknown "format" argument passed to "formatNumber()": "${F}"`);
11641
11633
  }
11642
11634
  }
@@ -11650,14 +11642,13 @@ function formatNationalNumber(s, F, I, L, R) {
11650
11642
  }) : s;
11651
11643
  }
11652
11644
  function chooseFormatForNumber(s, F) {
11653
- for (var I = _createForOfIteratorHelperLoose$2(s), L; !(L = I()).done;) {
11654
- var R = L.value;
11655
- if (R.leadingDigitsPatterns().length > 0) {
11656
- var B = R.leadingDigitsPatterns()[R.leadingDigitsPatterns().length - 1];
11657
- if (F.search(B) !== 0) continue;
11645
+ return pickFirstMatchingElement(s, function(s) {
11646
+ if (s.leadingDigitsPatterns().length > 0) {
11647
+ var I = s.leadingDigitsPatterns()[s.leadingDigitsPatterns().length - 1];
11648
+ if (F.search(I) !== 0) return !1;
11658
11649
  }
11659
- if (matchesEntirely(F, R.pattern())) return R;
11660
- }
11650
+ return matchesEntirely(F, s.pattern());
11651
+ });
11661
11652
  }
11662
11653
  function addExtension(s, F, I, L) {
11663
11654
  return F ? L(s, F, I) : s;
@@ -11670,6 +11661,27 @@ function formatIDD(s, F, I, L, R) {
11670
11661
  var V = getIddPrefix(L, void 0, R.metadata);
11671
11662
  if (V) return `${V} ${I} ${formatNationalNumber(s, null, "INTERNATIONAL", R)}`;
11672
11663
  }
11664
+ function merge() {
11665
+ for (var s = 1, F = [...arguments]; s < F.length;) {
11666
+ if (F[s]) for (var I in F[s]) F[0][I] = F[s][I];
11667
+ s++;
11668
+ }
11669
+ return F[0];
11670
+ }
11671
+ function pickFirstMatchingElement(s, F) {
11672
+ for (var I = 0; I < s.length;) {
11673
+ if (F(s[I])) return s[I];
11674
+ I++;
11675
+ }
11676
+ }
11677
+ function _typeof$3(s) {
11678
+ "@babel/helpers - typeof";
11679
+ return _typeof$3 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
11680
+ return typeof s;
11681
+ } : function(s) {
11682
+ return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
11683
+ }, _typeof$3(s);
11684
+ }
11673
11685
  function ownKeys$2(s, F) {
11674
11686
  var I = Object.keys(s);
11675
11687
  if (Object.getOwnPropertySymbols) {
@@ -11692,7 +11704,7 @@ function _objectSpread$2(s) {
11692
11704
  return s;
11693
11705
  }
11694
11706
  function _defineProperty$2(s, F, I) {
11695
- return F in s ? Object.defineProperty(s, F, {
11707
+ return (F = _toPropertyKey$3(F)) in s ? Object.defineProperty(s, F, {
11696
11708
  value: I,
11697
11709
  enumerable: !0,
11698
11710
  configurable: !0,
@@ -11705,13 +11717,27 @@ function _classCallCheck$1(s, F) {
11705
11717
  function _defineProperties$1(s, F) {
11706
11718
  for (var I = 0; I < F.length; I++) {
11707
11719
  var L = F[I];
11708
- L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(s, L.key, L);
11720
+ L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(s, _toPropertyKey$3(L.key), L);
11709
11721
  }
11710
11722
  }
11711
11723
  function _createClass$1(s, F, I) {
11712
11724
  return F && _defineProperties$1(s.prototype, F), I && _defineProperties$1(s, I), Object.defineProperty(s, "prototype", { writable: !1 }), s;
11713
11725
  }
11714
- var USE_NON_GEOGRAPHIC_COUNTRY_CODE$2 = !1, PhoneNumber = /* @__PURE__ */ function() {
11726
+ function _toPropertyKey$3(s) {
11727
+ var F = _toPrimitive$3(s, "string");
11728
+ return _typeof$3(F) == "symbol" ? F : F + "";
11729
+ }
11730
+ function _toPrimitive$3(s, F) {
11731
+ if (_typeof$3(s) != "object" || !s) return s;
11732
+ var I = s[Symbol.toPrimitive];
11733
+ if (I !== void 0) {
11734
+ var L = I.call(s, F || "default");
11735
+ if (_typeof$3(L) != "object") return L;
11736
+ throw TypeError("@@toPrimitive must return a primitive value.");
11737
+ }
11738
+ return (F === "string" ? String : Number)(s);
11739
+ }
11740
+ var USE_NON_GEOGRAPHIC_COUNTRY_CODE$1 = !1, PhoneNumber = /* @__PURE__ */ function() {
11715
11741
  function s(F, I, L) {
11716
11742
  if (_classCallCheck$1(this, s), !F) throw TypeError("First argument is required");
11717
11743
  if (typeof F != "string") throw TypeError("First argument must be a string");
@@ -11720,7 +11746,7 @@ var USE_NON_GEOGRAPHIC_COUNTRY_CODE$2 = !1, PhoneNumber = /* @__PURE__ */ functi
11720
11746
  L = I;
11721
11747
  var R = F;
11722
11748
  if (!E164_NUMBER_REGEXP.test(R)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
11723
- var B = extractCountryCallingCode(R, void 0, void 0, L), V = B.countryCallingCode;
11749
+ var B = extractCountryCallingCode(R, void 0, void 0, void 0, L), V = B.countryCallingCode;
11724
11750
  if (I = B.number, F = V, !I) throw Error("Invalid `number` argument passed: too short");
11725
11751
  }
11726
11752
  if (!I) throw TypeError("`nationalNumber` argument is required");
@@ -11798,59 +11824,57 @@ var USE_NON_GEOGRAPHIC_COUNTRY_CODE$2 = !1, PhoneNumber = /* @__PURE__ */ functi
11798
11824
  return this.format("RFC3966", s);
11799
11825
  }
11800
11826
  }
11801
- ]), s;
11827
+ ]);
11802
11828
  }(), isCountryCode = function(s) {
11803
11829
  return /^[A-Z]{2}$/.test(s);
11804
11830
  };
11805
11831
  function getCountryAndCountryCallingCode(s, F) {
11806
11832
  var I, L, R = new Metadata(F);
11807
- return isCountryCode(s) ? (I = s, R.selectNumberingPlan(I), L = R.countryCallingCode()) : (L = s, USE_NON_GEOGRAPHIC_COUNTRY_CODE$2 && R.isNonGeographicCallingCode(L) && (I = "001")), {
11833
+ return isCountryCode(s) ? (I = s, R.selectNumberingPlan(I), L = R.countryCallingCode()) : (L = s, USE_NON_GEOGRAPHIC_COUNTRY_CODE$1 && R.isNonGeographicCallingCode(L) && (I = "001")), {
11808
11834
  country: I,
11809
11835
  countryCallingCode: L
11810
11836
  };
11811
11837
  }
11812
11838
  var E164_NUMBER_REGEXP = /^\+\d+$/;
11813
- function _typeof(s) {
11839
+ function _typeof$2(s) {
11814
11840
  "@babel/helpers - typeof";
11815
- return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
11841
+ return _typeof$2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
11816
11842
  return typeof s;
11817
11843
  } : function(s) {
11818
11844
  return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
11819
- }, _typeof(s);
11845
+ }, _typeof$2(s);
11820
11846
  }
11821
11847
  function _defineProperties(s, F) {
11822
11848
  for (var I = 0; I < F.length; I++) {
11823
11849
  var L = F[I];
11824
- L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(s, L.key, L);
11850
+ L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(s, _toPropertyKey$2(L.key), L);
11825
11851
  }
11826
11852
  }
11827
11853
  function _createClass(s, F, I) {
11828
11854
  return F && _defineProperties(s.prototype, F), I && _defineProperties(s, I), Object.defineProperty(s, "prototype", { writable: !1 }), s;
11829
11855
  }
11856
+ function _toPropertyKey$2(s) {
11857
+ var F = _toPrimitive$2(s, "string");
11858
+ return _typeof$2(F) == "symbol" ? F : F + "";
11859
+ }
11860
+ function _toPrimitive$2(s, F) {
11861
+ if (_typeof$2(s) != "object" || !s) return s;
11862
+ var I = s[Symbol.toPrimitive];
11863
+ if (I !== void 0) {
11864
+ var L = I.call(s, F || "default");
11865
+ if (_typeof$2(L) != "object") return L;
11866
+ throw TypeError("@@toPrimitive must return a primitive value.");
11867
+ }
11868
+ return (F === "string" ? String : Number)(s);
11869
+ }
11830
11870
  function _classCallCheck(s, F) {
11831
11871
  if (!(s instanceof F)) throw TypeError("Cannot call a class as a function");
11832
11872
  }
11833
- function _inherits(s, F) {
11834
- if (typeof F != "function" && F !== null) throw TypeError("Super expression must either be null or a function");
11835
- s.prototype = Object.create(F && F.prototype, { constructor: {
11836
- value: s,
11837
- writable: !0,
11838
- configurable: !0
11839
- } }), Object.defineProperty(s, "prototype", { writable: !1 }), F && _setPrototypeOf(s, F);
11840
- }
11841
- function _createSuper(s) {
11842
- var F = _isNativeReflectConstruct();
11843
- return function() {
11844
- var I = _getPrototypeOf(s), L;
11845
- if (F) {
11846
- var R = _getPrototypeOf(this).constructor;
11847
- L = Reflect.construct(I, arguments, R);
11848
- } else L = I.apply(this, arguments);
11849
- return _possibleConstructorReturn(this, L);
11850
- };
11873
+ function _callSuper(s, F, I) {
11874
+ return F = _getPrototypeOf(F), _possibleConstructorReturn(s, _isNativeReflectConstruct() ? Reflect.construct(F, I || [], _getPrototypeOf(s).constructor) : F.apply(s, I));
11851
11875
  }
11852
11876
  function _possibleConstructorReturn(s, F) {
11853
- if (F && (_typeof(F) === "object" || typeof F == "function")) return F;
11877
+ if (F && (_typeof$2(F) == "object" || typeof F == "function")) return F;
11854
11878
  if (F !== void 0) throw TypeError("Derived constructors may only return object or undefined");
11855
11879
  return _assertThisInitialized(s);
11856
11880
  }
@@ -11858,6 +11882,14 @@ function _assertThisInitialized(s) {
11858
11882
  if (s === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
11859
11883
  return s;
11860
11884
  }
11885
+ function _inherits(s, F) {
11886
+ if (typeof F != "function" && F !== null) throw TypeError("Super expression must either be null or a function");
11887
+ s.prototype = Object.create(F && F.prototype, { constructor: {
11888
+ value: s,
11889
+ writable: !0,
11890
+ configurable: !0
11891
+ } }), Object.defineProperty(s, "prototype", { writable: !1 }), F && _setPrototypeOf(s, F);
11892
+ }
11861
11893
  function _wrapNativeSuper(s) {
11862
11894
  var F = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
11863
11895
  return _wrapNativeSuper = function(s) {
@@ -11879,43 +11911,43 @@ function _wrapNativeSuper(s) {
11879
11911
  }, _wrapNativeSuper(s);
11880
11912
  }
11881
11913
  function _construct(s, F, I) {
11882
- return _construct = _isNativeReflectConstruct() ? Reflect.construct : function(s, F, I) {
11883
- var L = [null];
11884
- L.push.apply(L, F);
11885
- var R = new (Function.bind.apply(s, L))();
11886
- return I && _setPrototypeOf(R, I.prototype), R;
11887
- }, _construct.apply(null, arguments);
11914
+ if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
11915
+ var L = [null];
11916
+ L.push.apply(L, F);
11917
+ var R = new (s.bind.apply(s, L))();
11918
+ return I && _setPrototypeOf(R, I.prototype), R;
11888
11919
  }
11889
11920
  function _isNativeReflectConstruct() {
11890
- if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
11891
- if (typeof Proxy == "function") return !0;
11892
11921
  try {
11893
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), !0;
11894
- } catch {
11895
- return !1;
11896
- }
11922
+ var s = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
11923
+ } catch {}
11924
+ return (_isNativeReflectConstruct = function() {
11925
+ return !!s;
11926
+ })();
11897
11927
  }
11898
11928
  function _isNativeFunction(s) {
11899
- return Function.toString.call(s).indexOf("[native code]") !== -1;
11929
+ try {
11930
+ return Function.toString.call(s).indexOf("[native code]") !== -1;
11931
+ } catch {
11932
+ return typeof s == "function";
11933
+ }
11900
11934
  }
11901
11935
  function _setPrototypeOf(s, F) {
11902
- return _setPrototypeOf = Object.setPrototypeOf || function(s, F) {
11936
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(s, F) {
11903
11937
  return s.__proto__ = F, s;
11904
11938
  }, _setPrototypeOf(s, F);
11905
11939
  }
11906
11940
  function _getPrototypeOf(s) {
11907
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function(s) {
11941
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(s) {
11908
11942
  return s.__proto__ || Object.getPrototypeOf(s);
11909
11943
  }, _getPrototypeOf(s);
11910
11944
  }
11911
11945
  var ParseError = /* @__PURE__ */ function(s) {
11912
- _inherits(I, s);
11913
- var F = _createSuper(I);
11914
- function I(s) {
11915
- var L;
11916
- return _classCallCheck(this, I), L = F.call(this, s), Object.setPrototypeOf(_assertThisInitialized(L), I.prototype), L.name = L.constructor.name, L;
11946
+ function F(s) {
11947
+ var I;
11948
+ return _classCallCheck(this, F), I = _callSuper(this, F, [s]), Object.setPrototypeOf(I, F.prototype), I.name = I.constructor.name, I;
11917
11949
  }
11918
- return _createClass(I);
11950
+ return _inherits(F, s), _createClass(F);
11919
11951
  }(/* @__PURE__ */ _wrapNativeSuper(Error)), EXTN_PATTERN = RegExp("(?:" + createExtensionPattern() + ")$", "i");
11920
11952
  function extractExtension(s) {
11921
11953
  var F = s.search(EXTN_PATTERN);
@@ -11973,10 +12005,10 @@ var DIGITS = {
11973
12005
  function parseDigit(s) {
11974
12006
  return DIGITS[s];
11975
12007
  }
11976
- function _createForOfIteratorHelperLoose$1(s, F) {
12008
+ function _createForOfIteratorHelperLoose(s, F) {
11977
12009
  var I = typeof Symbol < "u" && s[Symbol.iterator] || s["@@iterator"];
11978
12010
  if (I) return (I = I.call(s)).next.bind(I);
11979
- if (Array.isArray(s) || (I = _unsupportedIterableToArray$2(s)) || F && s && typeof s.length == "number") {
12011
+ if (Array.isArray(s) || (I = _unsupportedIterableToArray$1(s)) || F && s && typeof s.length == "number") {
11980
12012
  I && (s = I);
11981
12013
  var L = 0;
11982
12014
  return function() {
@@ -11988,21 +12020,20 @@ function _createForOfIteratorHelperLoose$1(s, F) {
11988
12020
  }
11989
12021
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11990
12022
  }
11991
- function _unsupportedIterableToArray$2(s, F) {
12023
+ function _unsupportedIterableToArray$1(s, F) {
11992
12024
  if (s) {
11993
- if (typeof s == "string") return _arrayLikeToArray$2(s, F);
11994
- var I = Object.prototype.toString.call(s).slice(8, -1);
11995
- if (I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set") return Array.from(s);
11996
- if (I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)) return _arrayLikeToArray$2(s, F);
12025
+ if (typeof s == "string") return _arrayLikeToArray$1(s, F);
12026
+ var I = {}.toString.call(s).slice(8, -1);
12027
+ return I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set" ? Array.from(s) : I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I) ? _arrayLikeToArray$1(s, F) : void 0;
11997
12028
  }
11998
12029
  }
11999
- function _arrayLikeToArray$2(s, F) {
12030
+ function _arrayLikeToArray$1(s, F) {
12000
12031
  (F == null || F > s.length) && (F = s.length);
12001
12032
  for (var I = 0, L = Array(F); I < F; I++) L[I] = s[I];
12002
12033
  return L;
12003
12034
  }
12004
12035
  function parseIncompletePhoneNumber(s) {
12005
- for (var F = "", I = _createForOfIteratorHelperLoose$1(s.split("")), L; !(L = I()).done;) {
12036
+ for (var F = "", I = _createForOfIteratorHelperLoose(s.split("")), L; !(L = I()).done;) {
12006
12037
  var R = L.value;
12007
12038
  F += parsePhoneNumberCharacter(R, F) || "";
12008
12039
  }
@@ -12018,61 +12049,6 @@ function parsePhoneNumberCharacter(s, F, I) {
12018
12049
  }
12019
12050
  return parseDigit(s);
12020
12051
  }
12021
- function _createForOfIteratorHelperLoose(s, F) {
12022
- var I = typeof Symbol < "u" && s[Symbol.iterator] || s["@@iterator"];
12023
- if (I) return (I = I.call(s)).next.bind(I);
12024
- if (Array.isArray(s) || (I = _unsupportedIterableToArray$1(s)) || F && s && typeof s.length == "number") {
12025
- I && (s = I);
12026
- var L = 0;
12027
- return function() {
12028
- return L >= s.length ? { done: !0 } : {
12029
- done: !1,
12030
- value: s[L++]
12031
- };
12032
- };
12033
- }
12034
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12035
- }
12036
- function _unsupportedIterableToArray$1(s, F) {
12037
- if (s) {
12038
- if (typeof s == "string") return _arrayLikeToArray$1(s, F);
12039
- var I = Object.prototype.toString.call(s).slice(8, -1);
12040
- if (I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set") return Array.from(s);
12041
- if (I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)) return _arrayLikeToArray$1(s, F);
12042
- }
12043
- }
12044
- function _arrayLikeToArray$1(s, F) {
12045
- (F == null || F > s.length) && (F = s.length);
12046
- for (var I = 0, L = Array(F); I < F; I++) L[I] = s[I];
12047
- return L;
12048
- }
12049
- function getCountryByNationalNumber(s, F) {
12050
- var I = F.countries;
12051
- F.defaultCountry;
12052
- var L = F.metadata;
12053
- L = new Metadata(L);
12054
- for (var R = _createForOfIteratorHelperLoose(I), B; !(B = R()).done;) {
12055
- var V = B.value;
12056
- if (L.country(V), L.leadingDigits()) {
12057
- if (s && s.search(L.leadingDigits()) === 0) return V;
12058
- } else if (getNumberType({
12059
- phone: s,
12060
- country: V
12061
- }, void 0, L.metadata)) return V;
12062
- }
12063
- }
12064
- var USE_NON_GEOGRAPHIC_COUNTRY_CODE$1 = !1;
12065
- function getCountryByCallingCode(s, F) {
12066
- var I = F.nationalNumber, L = F.defaultCountry, R = F.metadata;
12067
- /* istanbul ignore if */
12068
- if (USE_NON_GEOGRAPHIC_COUNTRY_CODE$1 && R.isNonGeographicCallingCode(s)) return "001";
12069
- var B = R.getCountryCodesForCallingCode(s);
12070
- if (B) return B.length === 1 ? B[0] : getCountryByNationalNumber(I, {
12071
- countries: B,
12072
- defaultCountry: L,
12073
- metadata: R.metadata
12074
- });
12075
- }
12076
12052
  var RFC3966_PHONE_DIGIT_ = "([" + VALID_DIGITS + "]|[\\-\\.\\(\\)]?)", RFC3966_GLOBAL_NUMBER_DIGITS_ = "^\\+" + RFC3966_PHONE_DIGIT_ + "*[" + VALID_DIGITS + "]" + RFC3966_PHONE_DIGIT_ + "*$", RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_ = new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_, "g"), ALPHANUM_ = VALID_DIGITS, RFC3966_DOMAINLABEL_ = "[" + ALPHANUM_ + "]+((\\-)*[" + ALPHANUM_ + "])*", RFC3966_TOPLABEL_ = "[a-zA-Z]+((\\-)*[" + ALPHANUM_ + "])*", RFC3966_DOMAINNAME_ = "^(" + RFC3966_DOMAINLABEL_ + "\\.)*" + RFC3966_TOPLABEL_ + "\\.?$", RFC3966_DOMAINNAME_PATTERN_ = new RegExp(RFC3966_DOMAINNAME_, "g"), RFC3966_PREFIX_ = "tel:", RFC3966_PHONE_CONTEXT_ = ";phone-context=", RFC3966_ISDN_SUBADDRESS_ = ";isub=";
12077
12053
  function extractPhoneContext(s) {
12078
12054
  var F = s.indexOf(RFC3966_PHONE_CONTEXT_);
@@ -12130,7 +12106,7 @@ function parse(s, F, I) {
12130
12106
  countryCallingCode: G,
12131
12107
  carrierCode: q,
12132
12108
  valid: Y,
12133
- possible: Y ? !0 : !!(F.extended === !0 && I.possibleLengths() && isPossibleNumber(W, I)),
12109
+ possible: Y ? !0 : !!(F.extended === !0 && I.possibleLengths() && isPossibleNumber(W, U, I)),
12134
12110
  phone: W,
12135
12111
  ext: B
12136
12112
  } : Y ? result(U, W, B) : {};
@@ -12163,7 +12139,7 @@ function result(s, F, I) {
12163
12139
  return I && (L.ext = I), L;
12164
12140
  }
12165
12141
  function parsePhoneNumber(s, F, I, L) {
12166
- var R = extractCountryCallingCode(parseIncompletePhoneNumber(s), F, I, L.metadata), B = R.countryCallingCodeSource, V = R.countryCallingCode, H = R.number, U;
12142
+ var R = extractCountryCallingCode(parseIncompletePhoneNumber(s), void 0, F, I, L.metadata), B = R.countryCallingCodeSource, V = R.countryCallingCode, H = R.number, U;
12167
12143
  if (V) L.selectNumberingPlan(V);
12168
12144
  else if (H && (F || I)) L.selectNumberingPlan(F, I), F ? U = F : USE_NON_GEOGRAPHIC_COUNTRY_CODE && L.isNonGeographicCallingCode(I) && (U = "001"), V = I || getCountryCallingCode(F, L.metadata);
12169
12145
  else return {};
@@ -12171,12 +12147,11 @@ function parsePhoneNumber(s, F, I, L) {
12171
12147
  countryCallingCodeSource: B,
12172
12148
  countryCallingCode: V
12173
12149
  };
12174
- var W = extractNationalNumber(parseIncompletePhoneNumber(H), L), G = W.nationalNumber, K = W.carrierCode, q = getCountryByCallingCode(V, {
12150
+ var W = extractNationalNumber(parseIncompletePhoneNumber(H), U, L), G = W.nationalNumber, K = W.carrierCode, q = getCountryByCallingCode(V, {
12175
12151
  nationalNumber: G,
12176
- defaultCountry: F,
12177
12152
  metadata: L
12178
12153
  });
12179
- return q && (U = q, q === "001" || L.country(U)), {
12154
+ return q && (U = q, q === "001" || L.selectNumberingPlan(U)), {
12180
12155
  country: U,
12181
12156
  countryCallingCode: V,
12182
12157
  countryCallingCodeSource: B,
@@ -12184,6 +12159,14 @@ function parsePhoneNumber(s, F, I, L) {
12184
12159
  carrierCode: K
12185
12160
  };
12186
12161
  }
12162
+ function _typeof$1(s) {
12163
+ "@babel/helpers - typeof";
12164
+ return _typeof$1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
12165
+ return typeof s;
12166
+ } : function(s) {
12167
+ return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
12168
+ }, _typeof$1(s);
12169
+ }
12187
12170
  function ownKeys$1(s, F) {
12188
12171
  var I = Object.keys(s);
12189
12172
  if (Object.getOwnPropertySymbols) {
@@ -12206,16 +12189,38 @@ function _objectSpread$1(s) {
12206
12189
  return s;
12207
12190
  }
12208
12191
  function _defineProperty$1(s, F, I) {
12209
- return F in s ? Object.defineProperty(s, F, {
12192
+ return (F = _toPropertyKey$1(F)) in s ? Object.defineProperty(s, F, {
12210
12193
  value: I,
12211
12194
  enumerable: !0,
12212
12195
  configurable: !0,
12213
12196
  writable: !0
12214
12197
  }) : s[F] = I, s;
12215
12198
  }
12199
+ function _toPropertyKey$1(s) {
12200
+ var F = _toPrimitive$1(s, "string");
12201
+ return _typeof$1(F) == "symbol" ? F : F + "";
12202
+ }
12203
+ function _toPrimitive$1(s, F) {
12204
+ if (_typeof$1(s) != "object" || !s) return s;
12205
+ var I = s[Symbol.toPrimitive];
12206
+ if (I !== void 0) {
12207
+ var L = I.call(s, F || "default");
12208
+ if (_typeof$1(L) != "object") return L;
12209
+ throw TypeError("@@toPrimitive must return a primitive value.");
12210
+ }
12211
+ return (F === "string" ? String : Number)(s);
12212
+ }
12216
12213
  function parsePhoneNumberWithError$2(s, F, I) {
12217
12214
  return parse(s, _objectSpread$1(_objectSpread$1({}, F), {}, { v2: !0 }), I);
12218
12215
  }
12216
+ function _typeof(s) {
12217
+ "@babel/helpers - typeof";
12218
+ return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
12219
+ return typeof s;
12220
+ } : function(s) {
12221
+ return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
12222
+ }, _typeof(s);
12223
+ }
12219
12224
  function ownKeys(s, F) {
12220
12225
  var I = Object.keys(s);
12221
12226
  if (Object.getOwnPropertySymbols) {
@@ -12238,13 +12243,27 @@ function _objectSpread(s) {
12238
12243
  return s;
12239
12244
  }
12240
12245
  function _defineProperty(s, F, I) {
12241
- return F in s ? Object.defineProperty(s, F, {
12246
+ return (F = _toPropertyKey(F)) in s ? Object.defineProperty(s, F, {
12242
12247
  value: I,
12243
12248
  enumerable: !0,
12244
12249
  configurable: !0,
12245
12250
  writable: !0
12246
12251
  }) : s[F] = I, s;
12247
12252
  }
12253
+ function _toPropertyKey(s) {
12254
+ var F = _toPrimitive(s, "string");
12255
+ return _typeof(F) == "symbol" ? F : F + "";
12256
+ }
12257
+ function _toPrimitive(s, F) {
12258
+ if (_typeof(s) != "object" || !s) return s;
12259
+ var I = s[Symbol.toPrimitive];
12260
+ if (I !== void 0) {
12261
+ var L = I.call(s, F || "default");
12262
+ if (_typeof(L) != "object") return L;
12263
+ throw TypeError("@@toPrimitive must return a primitive value.");
12264
+ }
12265
+ return (F === "string" ? String : Number)(s);
12266
+ }
12248
12267
  function _slicedToArray(s, F) {
12249
12268
  return _arrayWithHoles(s) || _iterableToArrayLimit(s, F) || _unsupportedIterableToArray(s, F) || _nonIterableRest();
12250
12269
  }
@@ -12254,9 +12273,8 @@ function _nonIterableRest() {
12254
12273
  function _unsupportedIterableToArray(s, F) {
12255
12274
  if (s) {
12256
12275
  if (typeof s == "string") return _arrayLikeToArray(s, F);
12257
- var I = Object.prototype.toString.call(s).slice(8, -1);
12258
- if (I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set") return Array.from(s);
12259
- if (I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)) return _arrayLikeToArray(s, F);
12276
+ var I = {}.toString.call(s).slice(8, -1);
12277
+ return I === "Object" && s.constructor && (I = s.constructor.name), I === "Map" || I === "Set" ? Array.from(s) : I === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I) ? _arrayLikeToArray(s, F) : void 0;
12260
12278
  }
12261
12279
  }
12262
12280
  function _arrayLikeToArray(s, F) {
@@ -12267,19 +12285,22 @@ function _arrayLikeToArray(s, F) {
12267
12285
  function _iterableToArrayLimit(s, F) {
12268
12286
  var I = s == null ? null : typeof Symbol < "u" && s[Symbol.iterator] || s["@@iterator"];
12269
12287
  if (I != null) {
12270
- var L = [], R = !0, B = !1, V, H;
12288
+ var L, R, B, V, H = [], U = !0, W = !1;
12271
12289
  try {
12272
- for (I = I.call(s); !(R = (V = I.next()).done) && (L.push(V.value), !(F && L.length === F)); R = !0);
12290
+ if (B = (I = I.call(s)).next, F === 0) {
12291
+ if (Object(I) !== I) return;
12292
+ U = !1;
12293
+ } else for (; !(U = (L = B.call(I)).done) && (H.push(L.value), H.length !== F); U = !0);
12273
12294
  } catch (s) {
12274
- B = !0, H = s;
12295
+ W = !0, R = s;
12275
12296
  } finally {
12276
12297
  try {
12277
- !R && I.return != null && I.return();
12298
+ if (!U && I.return != null && (V = I.return(), Object(V) !== V)) return;
12278
12299
  } finally {
12279
- if (B) throw H;
12300
+ if (W) throw R;
12280
12301
  }
12281
12302
  }
12282
- return L;
12303
+ return H;
12283
12304
  }
12284
12305
  }
12285
12306
  function _arrayWithHoles(s) {