@incodetech/web 0.0.0-dev-20260407-4580f1c → 0.0.0-dev-20260407-2c382da

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 (162) hide show
  1. package/dist/AsYouType-D1H_js4X.js +2607 -0
  2. package/dist/Trans-aTzdT_SA.js +55 -0
  3. package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
  4. package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
  5. package/dist/antifraud/antifraud.es.js +18 -17
  6. package/dist/antifraud/styles.css +1 -1
  7. package/dist/authentication/authentication.es.js +50 -28
  8. package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
  9. package/dist/back-tutorial-An9AcMSe.js +29 -0
  10. package/dist/back-vertical-hint-CNieqiCr.js +5 -0
  11. package/dist/backdevicelottie-B4NgyWmX.js +29 -0
  12. package/dist/base.css +67 -327
  13. package/dist/blurdevicelottie-_BZRug1c.js +29 -0
  14. package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
  15. package/dist/button-CE9kRlem.js +184 -0
  16. package/dist/cameraView-C2X7klNb.js +55 -0
  17. package/dist/captureOverlay-tCb4R4WE.js +592 -0
  18. package/dist/checkbox-B5X-mfqq.js +137 -0
  19. package/dist/chevronDown-DSHaPKbi.js +23 -0
  20. package/dist/closeIcon-9Hc97omv.js +28 -0
  21. package/dist/consent/consent.es.js +89 -82
  22. package/dist/consent/styles.css +1 -1
  23. package/dist/countries-DfLkrF0x.js +616 -0
  24. package/dist/curp-validation/curp-validation.es.js +313 -271
  25. package/dist/curp-validation/styles.css +1 -1
  26. package/dist/dateInputComposed-C7PCzh-U.js +173 -0
  27. package/dist/document-capture/styles.css +1 -1
  28. package/dist/documentCapture-C0mO-RGE.js +692 -0
  29. package/dist/dropdownComposed-BpinYlrx.js +367 -0
  30. package/dist/ekyb/styles.css +1 -1
  31. package/dist/ekybModule-Dr6LJUg-.js +357 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-C3mswduI.js +291 -0
  34. package/dist/email/email.es.js +154 -110
  35. package/dist/email/styles.css +1 -1
  36. package/dist/errorContent-Cb8nmQAE.js +44 -0
  37. package/dist/errorIcon-DEARBrGx.js +26 -0
  38. package/dist/extensibility.es.js +150 -22
  39. package/dist/face-match/styles.css +73 -147
  40. package/dist/faceMatch-DbDp7D3d.js +237 -0
  41. package/dist/fileIcon-CCSvS10T.js +52 -0
  42. package/dist/flip-animation-COR596wy.js +29 -0
  43. package/dist/flipAnimation-BqV462TA.js +2059 -0
  44. package/dist/flow/flow.es.js +2613 -2273
  45. package/dist/flow/styles.css +73 -432
  46. package/dist/formField-CP6wDdfA.js +106 -0
  47. package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
  48. package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
  49. package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
  50. package/dist/geolocation/geolocation.es.js +832 -852
  51. package/dist/geolocation/styles.css +1 -1
  52. package/dist/glaredevicelottie-DLuIStvb.js +29 -0
  53. package/dist/governmentValidation/governmentValidation.es.js +106 -100
  54. package/dist/governmentValidation/styles.css +1 -1
  55. package/dist/id/id.es.js +59 -53
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BBV3r3rz.js +29 -0
  58. package/dist/id-laser-v-BTHJaSfx.js +29 -0
  59. package/dist/id-tutorial-B-F5Q28m.js +29 -0
  60. package/dist/incodeModule-C4XIllao.js +96 -0
  61. package/dist/index.es.js +25 -4
  62. package/dist/inputComposed-fUbAGrDy.js +103 -0
  63. package/dist/instance-BWYzq8dk.js +2163 -0
  64. package/dist/loadingIcon-DmuPXh70.js +195 -0
  65. package/dist/mandatoryConsent-5xPI0cor.js +94 -0
  66. package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
  67. package/dist/numberedStep-DwUB__mh.js +5 -0
  68. package/dist/otpInput-BFXhqFRT.js +156 -0
  69. package/dist/page-SrUl0qtN.js +69 -0
  70. package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
  71. package/dist/passport-tutorial-CaYBFTqt.js +29 -0
  72. package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
  73. package/dist/permissions-DT4Fz9MR.js +709 -0
  74. package/dist/phone/phone.es.js +121 -87
  75. package/dist/phone/styles.css +1 -1
  76. package/dist/phoneInput-CGr8TxOO.js +158 -0
  77. package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
  78. package/dist/processing-szVOCQwZ.js +19 -0
  79. package/dist/redirect-to-mobile/styles.css +1 -1
  80. package/dist/richText-cspvNz2a.js +1807 -0
  81. package/dist/selfie/selfie.es.js +50 -29
  82. package/dist/selfie/styles.css +66 -170
  83. package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
  84. package/dist/signature/signature.es.js +707 -557
  85. package/dist/signature/styles.css +1 -1
  86. package/dist/spinner-DygONskw.js +60 -0
  87. package/dist/successIcon-Bjsdc4lF.js +26 -0
  88. package/dist/tutorial-Cdz1025D.js +473 -0
  89. package/dist/types/ekyb/styles.d.ts +1 -0
  90. package/dist/types/ekyc/styles.d.ts +1 -0
  91. package/dist/types/index.d.ts +8 -0
  92. package/dist/typography-BDACYR5i.js +14 -0
  93. package/dist/uiConfig-Dnt-2YWB.js +23 -0
  94. package/dist/useMediaQuery-lJdQBmC2.js +18 -0
  95. package/dist/vendor-preact-BoMmvSgn.js +694 -0
  96. package/dist/warningIcon-DQq_MrOB.js +26 -0
  97. package/package.json +11 -8
  98. package/dist/AsYouType-DPWqJvFu.js +0 -2482
  99. package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
  100. package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
  101. package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
  102. package/dist/back-tutorial-BNTyW-1N.js +0 -14584
  103. package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
  104. package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
  105. package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
  106. package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
  107. package/dist/button-DhL5eRT3.js +0 -123
  108. package/dist/checkbox-l8NxPf4o.js +0 -85
  109. package/dist/countries-y2ydYDhN.js +0 -8323
  110. package/dist/dateInputComposed-B9WqdYx9.js +0 -2
  111. package/dist/dateInputComposed-ndsGHX1M.js +0 -94
  112. package/dist/defineProperty-brqHEHA_.js +0 -39
  113. package/dist/documentCapture-wDgRLdon.js +0 -784
  114. package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
  115. package/dist/ekyb/ekyb.es.js +0 -2
  116. package/dist/ekybModule-BBOm1y49.js +0 -2
  117. package/dist/ekybModule-fz6i9ZRt.js +0 -286
  118. package/dist/ekyc/ekyc.es.js +0 -2
  119. package/dist/ekycModule-SeTFG3AJ.js +0 -233
  120. package/dist/ekycModule-hxIcNX8n.js +0 -2
  121. package/dist/extensibility-DJihqIzM.js +0 -2248
  122. package/dist/faceMatch-DH8sLx34.js +0 -191
  123. package/dist/flip-animation-DOJzdXB-.js +0 -6983
  124. package/dist/formField-BRTbY8w9.js +0 -100
  125. package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
  126. package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
  127. package/dist/frontdevicelottie-DadDp6be.js +0 -17302
  128. package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
  129. package/dist/i18n-DZOHbK9q.js +0 -1916
  130. package/dist/icons-BHbofCgJ.js +0 -245
  131. package/dist/id-laser-h-BWyU3VgL.js +0 -467
  132. package/dist/id-laser-v-JiWXUlv0.js +0 -467
  133. package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
  134. package/dist/incodeModule-Bf6yJ8RB.js +0 -18
  135. package/dist/inputComposed-BhbfD8Ru.js +0 -77
  136. package/dist/loadingIcon-CeQt7Zgb.js +0 -146
  137. package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
  138. package/dist/numberedStep-CQVRixRP.js +0 -11
  139. package/dist/otpInput-CDIG9el7.js +0 -143
  140. package/dist/page-SvlJWUfz.js +0 -61
  141. package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
  142. package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
  143. package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
  144. package/dist/phoneInput-C9T_8FJt.js +0 -138
  145. package/dist/phoneInputComposed-B-0zieIW.js +0 -407
  146. package/dist/processing-B5zhNH6I.js +0 -15
  147. package/dist/richText-Db0PfpkE.js +0 -1973
  148. package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
  149. package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
  150. package/dist/setup-Dq2bzNKH.js +0 -15
  151. package/dist/spacer-DCljE53A.js +0 -59
  152. package/dist/spinner-Bk0YuoLu.js +0 -1
  153. package/dist/spinner-snIGzmm8.js +0 -41
  154. package/dist/successIcon-AHrfmJvv.js +0 -17
  155. package/dist/tutorial-DNOd11tg.js +0 -2780
  156. package/dist/types/ekyb.d.ts +0 -29
  157. package/dist/types/ekyc.d.ts +0 -29
  158. package/dist/typography-BNbFNFek.js +0 -1
  159. package/dist/typography-DvHeVWfY.js +0 -29
  160. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  161. package/dist/vendor-preact-D6SntenC.js +0 -958
  162. package/dist/warningIcon-Cvj-ayg1.js +0 -17
@@ -1,2482 +0,0 @@
1
- import { a as e, c as t, d as n, l as r, o as i, s as a, u as o } from "./countries-y2ydYDhN.js";
2
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
3
- function s(e, t) {
4
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
5
- if (n) return (n = n.call(e)).next.bind(n);
6
- if (Array.isArray(e) || (n = c(e)) || t && e && typeof e.length == "number") {
7
- n && (e = n);
8
- var r = 0;
9
- return function() {
10
- return r >= e.length ? { done: !0 } : {
11
- done: !1,
12
- value: e[r++]
13
- };
14
- };
15
- }
16
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17
- }
18
- function c(e, t) {
19
- if (e) {
20
- if (typeof e == "string") return l(e, t);
21
- var n = {}.toString.call(e).slice(8, -1);
22
- 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) ? l(e, t) : void 0;
23
- }
24
- }
25
- function l(e, t) {
26
- (t == null || t > e.length) && (t = e.length);
27
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
28
- return r;
29
- }
30
- function u(e, t) {
31
- for (var n = e.slice(), r = s(t), i; !(i = r()).done;) {
32
- var a = i.value;
33
- e.indexOf(a) < 0 && n.push(a);
34
- }
35
- return n.sort(function(e, t) {
36
- return e - t;
37
- });
38
- }
39
- //#endregion
40
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
41
- function d(e, t, n) {
42
- return f(e, t, void 0, n);
43
- }
44
- function f(t, n, r, i) {
45
- n && (i = new e(i.metadata), i.selectNumberingPlan(n));
46
- var a = i.type(r), o = a && a.possibleLengths() || i.possibleLengths();
47
- if (!o) return "IS_POSSIBLE";
48
- if (r === "FIXED_LINE_OR_MOBILE") {
49
- /* istanbul ignore next */
50
- if (!i.type("FIXED_LINE")) return f(t, n, "MOBILE", i);
51
- var s = i.type("MOBILE");
52
- s && (o = u(o, s.possibleLengths()));
53
- } else if (r && !a) return "INVALID_LENGTH";
54
- var c = t.length, l = o[0];
55
- return l === c ? "IS_POSSIBLE" : l > c ? "TOO_SHORT" : o[o.length - 1] < c ? "TOO_LONG" : o.indexOf(c, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
56
- }
57
- //#endregion
58
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/isPossible.js
59
- function p(t, n, r) {
60
- if (n === void 0 && (n = {}), r = new e(r), n.v2) {
61
- if (!t.countryCallingCode) throw Error("Invalid phone number object passed");
62
- r.selectNumberingPlan(t.countryCallingCode);
63
- } else {
64
- if (!t.phone) return !1;
65
- if (t.country) {
66
- if (!r.hasCountry(t.country)) throw Error(`Unknown country: ${t.country}`);
67
- r.selectNumberingPlan(t.country);
68
- } else {
69
- if (!t.countryCallingCode) throw Error("Invalid phone number object passed");
70
- r.selectNumberingPlan(t.countryCallingCode);
71
- }
72
- }
73
- if (r.possibleLengths()) return m(t.phone || t.nationalNumber, t.country, r);
74
- if (t.countryCallingCode && r.isNonGeographicCallingCode(t.countryCallingCode)) return !0;
75
- throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
76
- }
77
- function m(e, t, n) {
78
- switch (d(e, t, n)) {
79
- case "IS_POSSIBLE": return !0;
80
- default: return !1;
81
- }
82
- }
83
- //#endregion
84
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js
85
- function h(e, t) {
86
- return e ||= "", RegExp("^(?:" + t + ")$").test(e);
87
- }
88
- //#endregion
89
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getNumberType.js
90
- function g(e, t) {
91
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
92
- if (n) return (n = n.call(e)).next.bind(n);
93
- if (Array.isArray(e) || (n = _(e)) || t && e && typeof e.length == "number") {
94
- n && (e = n);
95
- var r = 0;
96
- return function() {
97
- return r >= e.length ? { done: !0 } : {
98
- done: !1,
99
- value: e[r++]
100
- };
101
- };
102
- }
103
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
104
- }
105
- function _(e, t) {
106
- if (e) {
107
- if (typeof e == "string") return v(e, t);
108
- var n = {}.toString.call(e).slice(8, -1);
109
- 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) ? v(e, t) : void 0;
110
- }
111
- }
112
- function v(e, t) {
113
- (t == null || t > e.length) && (t = e.length);
114
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
115
- return r;
116
- }
117
- var ee = [
118
- "MOBILE",
119
- "PREMIUM_RATE",
120
- "TOLL_FREE",
121
- "SHARED_COST",
122
- "VOIP",
123
- "PERSONAL_NUMBER",
124
- "PAGER",
125
- "UAN",
126
- "VOICEMAIL"
127
- ];
128
- function y(t, n, r) {
129
- if (n ||= {}, !(!t.country && !t.countryCallingCode)) {
130
- r = new e(r), r.selectNumberingPlan(t.country, t.countryCallingCode);
131
- var i = n.v2 ? t.nationalNumber : t.phone;
132
- if (h(i, r.nationalNumberPattern())) {
133
- if (te(i, "FIXED_LINE", r)) return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || te(i, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
134
- for (var a = g(ee), o; !(o = a()).done;) {
135
- var s = o.value;
136
- if (te(i, s, r)) return s;
137
- }
138
- }
139
- }
140
- }
141
- function te(e, t, n) {
142
- return t = n.type(t), !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : h(e, t.pattern());
143
- }
144
- //#endregion
145
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/isValid.js
146
- function ne(t, n, r) {
147
- return n ||= {}, r = new e(r), r.selectNumberingPlan(t.country, t.countryCallingCode), r.hasTypes() ? y(t, n, r.metadata) !== void 0 : h(n.v2 ? t.nationalNumber : t.phone, r.nationalNumberPattern());
148
- }
149
- //#endregion
150
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
151
- function re(t, n, r) {
152
- var i = new e(r).getCountryCodesForCallingCode(t);
153
- return i ? i.filter(function(e) {
154
- return ie(n, e, r);
155
- }) : [];
156
- }
157
- function ie(t, n, r) {
158
- var i = new e(r);
159
- return i.selectNumberingPlan(n), i.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
160
- }
161
- //#endregion
162
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/constants.js
163
- var b = "0-90-9٠-٩۰-۹", x = "-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~", S = "++", ae = RegExp("([" + b + "])");
164
- function oe(t, n, r, i) {
165
- if (n) {
166
- var a = new e(i);
167
- a.selectNumberingPlan(n, r);
168
- var o = new RegExp(a.IDDPrefix());
169
- if (t.search(o) === 0) {
170
- t = t.slice(t.match(o)[0].length);
171
- var s = t.match(ae);
172
- if (!(s && s[1] != null && s[1].length > 0 && s[1] === "0")) return t;
173
- }
174
- }
175
- }
176
- //#endregion
177
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
178
- function C(e, t) {
179
- if (e && t.numberingPlan.nationalPrefixForParsing()) {
180
- var n = RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
181
- if (r) {
182
- var i, a, o = r.length - 1, s = o > 0 && r[o];
183
- if (t.nationalPrefixTransformRule() && s) i = e.replace(n, t.nationalPrefixTransformRule()), o > 1 && (a = r[1]);
184
- else {
185
- var c = r[0];
186
- i = e.slice(c.length), s && (a = r[1]);
187
- }
188
- var l;
189
- if (s) {
190
- var u = e.indexOf(r[1]);
191
- e.slice(0, u) === t.numberingPlan.nationalPrefix() && (l = t.numberingPlan.nationalPrefix());
192
- } else l = r[0];
193
- return {
194
- nationalNumber: i,
195
- nationalPrefix: l,
196
- carrierCode: a
197
- };
198
- }
199
- }
200
- return { nationalNumber: e };
201
- }
202
- //#endregion
203
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
204
- function se(e, t) {
205
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
206
- if (n) return (n = n.call(e)).next.bind(n);
207
- if (Array.isArray(e) || (n = ce(e)) || t && e && typeof e.length == "number") {
208
- n && (e = n);
209
- var r = 0;
210
- return function() {
211
- return r >= e.length ? { done: !0 } : {
212
- done: !1,
213
- value: e[r++]
214
- };
215
- };
216
- }
217
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
218
- }
219
- function ce(e, t) {
220
- if (e) {
221
- if (typeof e == "string") return le(e, t);
222
- var n = {}.toString.call(e).slice(8, -1);
223
- 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) ? le(e, t) : void 0;
224
- }
225
- }
226
- function le(e, t) {
227
- (t == null || t > e.length) && (t = e.length);
228
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
229
- return r;
230
- }
231
- function ue(t, n) {
232
- var r = n.countries, i = n.metadata;
233
- i = new e(i);
234
- for (var a = se(r), o; !(o = a()).done;) {
235
- var s = o.value;
236
- if (i.selectNumberingPlan(s), i.leadingDigits()) {
237
- if (t && t.search(i.leadingDigits()) === 0) return s;
238
- } else if (y({
239
- phone: t,
240
- country: s
241
- }, void 0, i.metadata)) return s;
242
- }
243
- }
244
- //#endregion
245
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js
246
- var de = !1;
247
- function w(e, t) {
248
- var n = t.nationalNumber, r = t.metadata;
249
- /* istanbul ignore if */
250
- if (de && r.isNonGeographicCallingCode(e)) return "001";
251
- var i = r.getCountryCodesForCallingCode(e);
252
- if (i) return i.length === 1 ? i[0] : ue(n, {
253
- countries: i,
254
- metadata: r.metadata
255
- });
256
- }
257
- //#endregion
258
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js
259
- function T(e, t, n) {
260
- var r = C(e, n), i = r.carrierCode, a = r.nationalNumber;
261
- return a !== e && (!fe(e, a, n) || n.numberingPlan.possibleLengths() && (t ||= w(n.numberingPlan.callingCode(), {
262
- nationalNumber: a,
263
- metadata: n
264
- }), !pe(a, t, n))) ? { nationalNumber: e } : {
265
- nationalNumber: a,
266
- carrierCode: i
267
- };
268
- }
269
- function fe(e, t, n) {
270
- return !(h(e, n.nationalNumberPattern()) && !h(t, n.nationalNumberPattern()));
271
- }
272
- function pe(e, t, n) {
273
- switch (d(e, t, n)) {
274
- case "TOO_SHORT":
275
- case "INVALID_LENGTH": return !1;
276
- default: return !0;
277
- }
278
- }
279
- //#endregion
280
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js
281
- function me(t, n, r, a, o) {
282
- var s = n || r ? i(n || r, o) : a;
283
- if (t.indexOf(s) === 0) {
284
- o = new e(o), o.selectNumberingPlan(n || r, s);
285
- var c = t.slice(s.length), l = T(c, n, o).nationalNumber, u = T(t, n, o).nationalNumber;
286
- if (!h(u, o.nationalNumberPattern()) && h(l, o.nationalNumberPattern()) || d(u, n, o) === "TOO_LONG") return {
287
- countryCallingCode: s,
288
- number: c
289
- };
290
- }
291
- return { number: t };
292
- }
293
- //#endregion
294
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js
295
- function he(t, n, r, i, a) {
296
- if (!t) return {};
297
- var o;
298
- if (t[0] !== "+") {
299
- var s = oe(t, n || r, i, a);
300
- if (s && s !== t) o = !0, t = "+" + s;
301
- else {
302
- if (n || r || i) {
303
- var c = me(t, n, r, i, a), l = c.countryCallingCode, u = c.number;
304
- if (l) return {
305
- countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
306
- countryCallingCode: l,
307
- number: u
308
- };
309
- }
310
- return { number: t };
311
- }
312
- }
313
- if (t[1] === "0") return {};
314
- a = new e(a);
315
- for (var d = 2; d - 1 <= 3 && d <= t.length;) {
316
- var f = t.slice(1, d);
317
- if (a.hasCallingCode(f)) return a.selectNumberingPlan(f), {
318
- countryCallingCodeSource: o ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
319
- countryCallingCode: f,
320
- number: t.slice(d)
321
- };
322
- d++;
323
- }
324
- return {};
325
- }
326
- //#endregion
327
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js
328
- function ge(e) {
329
- return e.replace(RegExp(`[${x}]+`, "g"), " ").trim();
330
- }
331
- //#endregion
332
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
333
- var _e = /(\$\d)/;
334
- function ve(e, t, n) {
335
- var r = n.useInternationalFormat, i = n.withNationalPrefix;
336
- n.carrierCode, n.metadata;
337
- var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(_e, t.nationalPrefixFormattingRule()) : t.format());
338
- return r ? ge(a) : a;
339
- }
340
- //#endregion
341
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js
342
- var ye = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
343
- function be(t, n, r) {
344
- var i = new e(r);
345
- if (i.selectNumberingPlan(t, n), i.defaultIDDPrefix()) return i.defaultIDDPrefix();
346
- if (ye.test(i.IDDPrefix())) return i.IDDPrefix();
347
- }
348
- //#endregion
349
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js
350
- var xe = ";ext=", E = function(e) {
351
- return `([${b}]{1,${e}})`;
352
- };
353
- function Se(e) {
354
- var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p = xe + E(t), m = a + c + o + E(t) + s, h = a + l + o + E(r) + s, g = u + E(i) + "#", _ = d + f + o + E(n) + s, v = d + "(?:,)+" + o + E(r) + s;
355
- return p + "|" + m + "|" + h + "|" + g + "|" + _ + "|" + v;
356
- }
357
- //#endregion
358
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js
359
- var Ce = "[" + b + "]{2}", we = "[" + S + "]{0,1}(?:[" + x + "]*[" + b + "]){3,}[" + x + b + "]*", Te = RegExp("^[" + S + "]{0,1}(?:[" + x + "]*[" + b + "]){1,2}$", "i"), Ee = we + "(?:" + Se() + ")?", De = RegExp("^" + Ce + "$|^" + Ee + "$", "i");
360
- function Oe(e) {
361
- return e.length >= 2 && De.test(e);
362
- }
363
- function ke(e) {
364
- return Te.test(e);
365
- }
366
- //#endregion
367
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/RFC3966.js
368
- function Ae(e) {
369
- var t = e.number, n = e.ext;
370
- if (!t) return "";
371
- if (t[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
372
- return `tel:${t}${n ? ";ext=" + n : ""}`;
373
- }
374
- //#endregion
375
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/format.js
376
- var je = { formatExtension: function(e, t, n) {
377
- return `${e}${n.ext()}${t}`;
378
- } };
379
- function Me(t, n, r, i) {
380
- if (r = r ? Fe({}, je, r) : je, i = new e(i), t.country && t.country !== "001") {
381
- if (!i.hasCountry(t.country)) throw Error(`Unknown country: ${t.country}`);
382
- i.selectNumberingPlan(t.country);
383
- } else if (t.countryCallingCode) i.selectNumberingPlan(t.countryCallingCode);
384
- else return t.phone || "";
385
- var a = i.countryCallingCode(), o = r.v2 ? t.nationalNumber : t.phone, s;
386
- switch (n) {
387
- case "NATIONAL": return o ? (s = D(o, t.carrierCode, "NATIONAL", i, r), O(s, t.ext, i, r.formatExtension)) : "";
388
- case "INTERNATIONAL": return o ? (s = D(o, null, "INTERNATIONAL", i, r), s = `+${a} ${s}`, O(s, t.ext, i, r.formatExtension)) : `+${a}`;
389
- case "E.164": return `+${a}${o}`;
390
- case "RFC3966": return Ae({
391
- number: `+${a}${o}`,
392
- ext: t.ext
393
- });
394
- case "IDD": return r.fromCountry ? O(Pe(o, t.carrierCode, a, r.fromCountry, i), t.ext, i, r.formatExtension) : void 0;
395
- default: throw Error(`Unknown "format" argument passed to "formatNumber()": "${n}"`);
396
- }
397
- }
398
- function D(e, t, n, r, i) {
399
- var a = Ne(r.formats(), e);
400
- return a ? ve(e, a, {
401
- useInternationalFormat: n === "INTERNATIONAL",
402
- withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
403
- carrierCode: t,
404
- metadata: r
405
- }) : e;
406
- }
407
- function Ne(e, t) {
408
- return Ie(e, function(e) {
409
- if (e.leadingDigitsPatterns().length > 0) {
410
- var n = e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length - 1];
411
- if (t.search(n) !== 0) return !1;
412
- }
413
- return h(t, e.pattern());
414
- });
415
- }
416
- function O(e, t, n, r) {
417
- return t ? r(e, t, n) : e;
418
- }
419
- function Pe(e, t, n, r, a) {
420
- if (i(r, a.metadata) === n) {
421
- var o = D(e, t, "NATIONAL", a);
422
- return n === "1" ? n + " " + o : o;
423
- }
424
- var s = be(r, void 0, a.metadata);
425
- if (s) return `${s} ${n} ${D(e, null, "INTERNATIONAL", a)}`;
426
- }
427
- function Fe() {
428
- for (var e = 1, t = [...arguments]; e < t.length;) {
429
- if (t[e]) for (var n in t[e]) t[0][n] = t[e][n];
430
- e++;
431
- }
432
- return t[0];
433
- }
434
- function Ie(e, t) {
435
- for (var n = 0; n < e.length;) {
436
- if (t(e[n])) return e[n];
437
- n++;
438
- }
439
- }
440
- //#endregion
441
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/PhoneNumber.js
442
- function k(e) {
443
- "@babel/helpers - typeof";
444
- return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
445
- return typeof e;
446
- } : function(e) {
447
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
448
- }, k(e);
449
- }
450
- function Le(e, t) {
451
- var n = Object.keys(e);
452
- if (Object.getOwnPropertySymbols) {
453
- var r = Object.getOwnPropertySymbols(e);
454
- t && (r = r.filter(function(t) {
455
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
456
- })), n.push.apply(n, r);
457
- }
458
- return n;
459
- }
460
- function Re(e) {
461
- for (var t = 1; t < arguments.length; t++) {
462
- var n = arguments[t] == null ? {} : arguments[t];
463
- t % 2 ? Le(Object(n), !0).forEach(function(t) {
464
- ze(e, t, n[t]);
465
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Le(Object(n)).forEach(function(t) {
466
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
467
- });
468
- }
469
- return e;
470
- }
471
- function ze(e, t, n) {
472
- return (t = Ue(t)) in e ? Object.defineProperty(e, t, {
473
- value: n,
474
- enumerable: !0,
475
- configurable: !0,
476
- writable: !0
477
- }) : e[t] = n, e;
478
- }
479
- function Be(e, t) {
480
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
481
- }
482
- function Ve(e, t) {
483
- for (var n = 0; n < t.length; n++) {
484
- var r = t[n];
485
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ue(r.key), r);
486
- }
487
- }
488
- function He(e, t, n) {
489
- return t && Ve(e.prototype, t), n && Ve(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
490
- }
491
- function Ue(e) {
492
- var t = We(e, "string");
493
- return k(t) == "symbol" ? t : t + "";
494
- }
495
- function We(e, t) {
496
- if (k(e) != "object" || !e) return e;
497
- var n = e[Symbol.toPrimitive];
498
- if (n !== void 0) {
499
- var r = n.call(e, t || "default");
500
- if (k(r) != "object") return r;
501
- throw TypeError("@@toPrimitive must return a primitive value.");
502
- }
503
- return (t === "string" ? String : Number)(e);
504
- }
505
- var Ge = !1, A = /* @__PURE__ */ function() {
506
- function n(e, i, a) {
507
- if (Be(this, n), !e) throw TypeError("First argument is required");
508
- if (typeof e != "string") throw TypeError("First argument must be a string");
509
- if (e[0] === "+" && !i) throw TypeError("`metadata` argument not passed");
510
- if (r(i) && r(i.countries)) {
511
- a = i;
512
- var o = e;
513
- if (!Je.test(o)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
514
- var s = he(o, void 0, void 0, void 0, a), c = s.countryCallingCode;
515
- if (i = s.number, e = c, !i) throw Error("Invalid `number` argument passed: too short");
516
- }
517
- if (!i) throw TypeError("`nationalNumber` argument is required");
518
- if (typeof i != "string") throw TypeError("`nationalNumber` argument must be a string");
519
- t(a);
520
- var l = qe(e, a), u = l.country, d = l.countryCallingCode;
521
- this.country = u, this.countryCallingCode = d, this.nationalNumber = i, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
522
- return a;
523
- };
524
- }
525
- return He(n, [
526
- {
527
- key: "setExt",
528
- value: function(e) {
529
- this.ext = e;
530
- }
531
- },
532
- {
533
- key: "getPossibleCountries",
534
- value: function() {
535
- return this.country ? [this.country] : re(this.countryCallingCode, this.nationalNumber, this.getMetadata());
536
- }
537
- },
538
- {
539
- key: "isPossible",
540
- value: function() {
541
- return p(this, { v2: !0 }, this.getMetadata());
542
- }
543
- },
544
- {
545
- key: "isValid",
546
- value: function() {
547
- return ne(this, { v2: !0 }, this.getMetadata());
548
- }
549
- },
550
- {
551
- key: "isNonGeographic",
552
- value: function() {
553
- return new e(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode);
554
- }
555
- },
556
- {
557
- key: "isEqual",
558
- value: function(e) {
559
- return this.number === e.number && this.ext === e.ext;
560
- }
561
- },
562
- {
563
- key: "getType",
564
- value: function() {
565
- return y(this, { v2: !0 }, this.getMetadata());
566
- }
567
- },
568
- {
569
- key: "format",
570
- value: function(e, t) {
571
- return Me(this, e, t ? Re(Re({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
572
- }
573
- },
574
- {
575
- key: "formatNational",
576
- value: function(e) {
577
- return this.format("NATIONAL", e);
578
- }
579
- },
580
- {
581
- key: "formatInternational",
582
- value: function(e) {
583
- return this.format("INTERNATIONAL", e);
584
- }
585
- },
586
- {
587
- key: "getURI",
588
- value: function(e) {
589
- return this.format("RFC3966", e);
590
- }
591
- }
592
- ]);
593
- }(), Ke = function(e) {
594
- return /^[A-Z]{2}$/.test(e);
595
- };
596
- function qe(t, n) {
597
- var r, i, a = new e(n);
598
- return Ke(t) ? (r = t, a.selectNumberingPlan(r), i = a.countryCallingCode()) : (i = t, Ge && a.isNonGeographicCallingCode(i) && (r = "001")), {
599
- country: r,
600
- countryCallingCode: i
601
- };
602
- }
603
- var Je = /^\+\d+$/;
604
- //#endregion
605
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/ParseError.js
606
- function j(e) {
607
- "@babel/helpers - typeof";
608
- return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
609
- return typeof e;
610
- } : function(e) {
611
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
612
- }, j(e);
613
- }
614
- function Ye(e, t) {
615
- for (var n = 0; n < t.length; n++) {
616
- var r = t[n];
617
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ze(r.key), r);
618
- }
619
- }
620
- function Xe(e, t, n) {
621
- return t && Ye(e.prototype, t), n && Ye(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
622
- }
623
- function Ze(e) {
624
- var t = Qe(e, "string");
625
- return j(t) == "symbol" ? t : t + "";
626
- }
627
- function Qe(e, t) {
628
- if (j(e) != "object" || !e) return e;
629
- var n = e[Symbol.toPrimitive];
630
- if (n !== void 0) {
631
- var r = n.call(e, t || "default");
632
- if (j(r) != "object") return r;
633
- throw TypeError("@@toPrimitive must return a primitive value.");
634
- }
635
- return (t === "string" ? String : Number)(e);
636
- }
637
- function $e(e, t) {
638
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
639
- }
640
- function et(e, t, n) {
641
- return t = F(t), tt(e, N() ? Reflect.construct(t, n || [], F(e).constructor) : t.apply(e, n));
642
- }
643
- function tt(e, t) {
644
- if (t && (j(t) == "object" || typeof t == "function")) return t;
645
- if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
646
- return nt(e);
647
- }
648
- function nt(e) {
649
- if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
650
- return e;
651
- }
652
- function rt(e, t) {
653
- if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
654
- e.prototype = Object.create(t && t.prototype, { constructor: {
655
- value: e,
656
- writable: !0,
657
- configurable: !0
658
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && P(e, t);
659
- }
660
- function M(e) {
661
- var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
662
- return M = function(e) {
663
- if (e === null || !at(e)) return e;
664
- if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
665
- if (t !== void 0) {
666
- if (t.has(e)) return t.get(e);
667
- t.set(e, n);
668
- }
669
- function n() {
670
- return it(e, arguments, F(this).constructor);
671
- }
672
- return n.prototype = Object.create(e.prototype, { constructor: {
673
- value: n,
674
- enumerable: !1,
675
- writable: !0,
676
- configurable: !0
677
- } }), P(n, e);
678
- }, M(e);
679
- }
680
- function it(e, t, n) {
681
- if (N()) return Reflect.construct.apply(null, arguments);
682
- var r = [null];
683
- r.push.apply(r, t);
684
- var i = new (e.bind.apply(e, r))();
685
- return n && P(i, n.prototype), i;
686
- }
687
- function N() {
688
- try {
689
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
690
- } catch {}
691
- return (N = function() {
692
- return !!e;
693
- })();
694
- }
695
- function at(e) {
696
- try {
697
- return Function.toString.call(e).indexOf("[native code]") !== -1;
698
- } catch {
699
- return typeof e == "function";
700
- }
701
- }
702
- function P(e, t) {
703
- return P = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
704
- return e.__proto__ = t, e;
705
- }, P(e, t);
706
- }
707
- function F(e) {
708
- return F = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
709
- return e.__proto__ || Object.getPrototypeOf(e);
710
- }, F(e);
711
- }
712
- var I = /* @__PURE__ */ function(e) {
713
- function t(e) {
714
- var n;
715
- return $e(this, t), n = et(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
716
- }
717
- return rt(t, e), Xe(t);
718
- }(/* @__PURE__ */ M(Error)), ot = RegExp("(?:" + Se() + ")$", "i");
719
- function st(e) {
720
- var t = e.search(ot);
721
- if (t < 0) return {};
722
- for (var n = e.slice(0, t), r = e.match(ot), i = 1; i < r.length;) {
723
- if (r[i]) return {
724
- number: n,
725
- ext: r[i]
726
- };
727
- i++;
728
- }
729
- }
730
- //#endregion
731
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/parseDigits.js
732
- function ct(e, t) {
733
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
734
- if (n) return (n = n.call(e)).next.bind(n);
735
- if (Array.isArray(e) || (n = lt(e)) || t && e && typeof e.length == "number") {
736
- n && (e = n);
737
- var r = 0;
738
- return function() {
739
- return r >= e.length ? { done: !0 } : {
740
- done: !1,
741
- value: e[r++]
742
- };
743
- };
744
- }
745
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
746
- }
747
- function lt(e, t) {
748
- if (e) {
749
- if (typeof e == "string") return ut(e, t);
750
- var n = {}.toString.call(e).slice(8, -1);
751
- 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) ? ut(e, t) : void 0;
752
- }
753
- }
754
- function ut(e, t) {
755
- (t == null || t > e.length) && (t = e.length);
756
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
757
- return r;
758
- }
759
- var dt = {
760
- 0: "0",
761
- 1: "1",
762
- 2: "2",
763
- 3: "3",
764
- 4: "4",
765
- 5: "5",
766
- 6: "6",
767
- 7: "7",
768
- 8: "8",
769
- 9: "9",
770
- "0": "0",
771
- "1": "1",
772
- "2": "2",
773
- "3": "3",
774
- "4": "4",
775
- "5": "5",
776
- "6": "6",
777
- "7": "7",
778
- "8": "8",
779
- "9": "9",
780
- "٠": "0",
781
- "١": "1",
782
- "٢": "2",
783
- "٣": "3",
784
- "٤": "4",
785
- "٥": "5",
786
- "٦": "6",
787
- "٧": "7",
788
- "٨": "8",
789
- "٩": "9",
790
- "۰": "0",
791
- "۱": "1",
792
- "۲": "2",
793
- "۳": "3",
794
- "۴": "4",
795
- "۵": "5",
796
- "۶": "6",
797
- "۷": "7",
798
- "۸": "8",
799
- "۹": "9"
800
- };
801
- function ft(e) {
802
- return dt[e];
803
- }
804
- function L(e) {
805
- for (var t = "", n = ct(e.split("")), r; !(r = n()).done;) {
806
- var i = r.value, a = ft(i);
807
- a && (t += a);
808
- }
809
- return t;
810
- }
811
- //#endregion
812
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js
813
- function pt(e, t) {
814
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
815
- if (n) return (n = n.call(e)).next.bind(n);
816
- if (Array.isArray(e) || (n = mt(e)) || t && e && typeof e.length == "number") {
817
- n && (e = n);
818
- var r = 0;
819
- return function() {
820
- return r >= e.length ? { done: !0 } : {
821
- done: !1,
822
- value: e[r++]
823
- };
824
- };
825
- }
826
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
827
- }
828
- function mt(e, t) {
829
- if (e) {
830
- if (typeof e == "string") return ht(e, t);
831
- var n = {}.toString.call(e).slice(8, -1);
832
- 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) ? ht(e, t) : void 0;
833
- }
834
- }
835
- function ht(e, t) {
836
- (t == null || t > e.length) && (t = e.length);
837
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
838
- return r;
839
- }
840
- function gt(e) {
841
- for (var t = "", n = pt(e.split("")), r; !(r = n()).done;) {
842
- var i = r.value;
843
- t += _t(i, t) || "";
844
- }
845
- return t;
846
- }
847
- function _t(e, t, n) {
848
- if (e === "+") {
849
- if (t) {
850
- typeof n == "function" && n("end");
851
- return;
852
- }
853
- return "+";
854
- }
855
- return ft(e);
856
- }
857
- var vt = "([" + b + "]|[\\-\\.\\(\\)]?)", yt = "^\\+" + vt + "*[" + b + "]" + vt + "*$", bt = new RegExp(yt, "g"), R = b, xt = "[" + R + "]+((\\-)*[" + R + "])*", St = "[a-zA-Z]+((\\-)*[" + R + "])*", Ct = "^(" + xt + "\\.)*" + St + "\\.?$", wt = new RegExp(Ct, "g"), Tt = "tel:", z = ";phone-context=", Et = ";isub=";
858
- function Dt(e) {
859
- var t = e.indexOf(z);
860
- if (t < 0) return null;
861
- var n = t + z.length;
862
- if (n >= e.length) return "";
863
- var r = e.indexOf(";", n);
864
- return r >= 0 ? e.substring(n, r) : e.substring(n);
865
- }
866
- function Ot(e) {
867
- return e === null ? !0 : e.length === 0 ? !1 : bt.test(e) || wt.test(e);
868
- }
869
- //#endregion
870
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js
871
- function kt(e, t) {
872
- var n = t.extractFormattedPhoneNumber, r = Dt(e);
873
- if (!Ot(r)) throw new I("NOT_A_NUMBER");
874
- var i;
875
- if (r === null) i = n(e) || "";
876
- else {
877
- i = "", r.charAt(0) === "+" && (i += r);
878
- var a = e.indexOf(Tt), o = a >= 0 ? a + Tt.length : 0, s = e.indexOf(z);
879
- i += e.substring(o, s);
880
- }
881
- var c = i.indexOf(Et);
882
- if (c > 0 && (i = i.substring(0, c)), i !== "") return i;
883
- }
884
- //#endregion
885
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parse.js
886
- var At = 250, jt = RegExp("[" + S + b + "]"), Mt = RegExp("[^" + b + "#]+$"), Nt = !1;
887
- function Pt(t, n, r) {
888
- if (n ||= {}, r = new e(r), n.defaultCountry && !r.hasCountry(n.defaultCountry)) throw n.v2 ? new I("INVALID_COUNTRY") : Error(`Unknown country: ${n.defaultCountry}`);
889
- var i = It(t, n.v2, n.extract), a = i.number, o = i.ext, s = i.error;
890
- if (!a) {
891
- if (n.v2) throw s === "TOO_SHORT" ? new I("TOO_SHORT") : new I("NOT_A_NUMBER");
892
- return {};
893
- }
894
- var c = Rt(a, n.defaultCountry, n.defaultCallingCode, r), l = c.country, u = c.nationalNumber, d = c.countryCallingCode, f = c.countryCallingCodeSource, p = c.carrierCode;
895
- if (!r.hasSelectedNumberingPlan()) {
896
- if (n.v2) throw new I("INVALID_COUNTRY");
897
- return {};
898
- }
899
- if (!u || u.length < 2) {
900
- /* istanbul ignore if */
901
- if (n.v2) throw new I("TOO_SHORT");
902
- return {};
903
- }
904
- if (u.length > 17) {
905
- if (n.v2) throw new I("TOO_LONG");
906
- return {};
907
- }
908
- if (n.v2) {
909
- var g = new A(d, u, r.metadata);
910
- return l && (g.country = l), p && (g.carrierCode = p), o && (g.ext = o), g.__countryCallingCodeSource = f, g;
911
- }
912
- var _ = (n.extended ? r.hasSelectedNumberingPlan() : l) ? h(u, r.nationalNumberPattern()) : !1;
913
- return n.extended ? {
914
- country: l,
915
- countryCallingCode: d,
916
- carrierCode: p,
917
- valid: _,
918
- possible: _ ? !0 : !!(n.extended === !0 && r.possibleLengths() && m(u, l, r)),
919
- phone: u,
920
- ext: o
921
- } : _ ? Lt(l, u, o) : {};
922
- }
923
- function Ft(e, t, n) {
924
- if (e) {
925
- if (e.length > At) {
926
- if (n) throw new I("TOO_LONG");
927
- return;
928
- }
929
- if (t === !1) return e;
930
- var r = e.search(jt);
931
- if (!(r < 0)) return e.slice(r).replace(Mt, "");
932
- }
933
- }
934
- function It(e, t, n) {
935
- var r = kt(e, { extractFormattedPhoneNumber: function(e) {
936
- return Ft(e, n, t);
937
- } });
938
- if (!r) return {};
939
- if (!Oe(r)) return ke(r) ? { error: "TOO_SHORT" } : {};
940
- var i = st(r);
941
- return i.ext ? i : { number: r };
942
- }
943
- function Lt(e, t, n) {
944
- var r = {
945
- country: e,
946
- phone: t
947
- };
948
- return n && (r.ext = n), r;
949
- }
950
- function Rt(e, t, n, r) {
951
- var a = he(gt(e), void 0, t, n, r.metadata), o = a.countryCallingCodeSource, s = a.countryCallingCode, c = a.number, l;
952
- if (s) r.selectNumberingPlan(s);
953
- else if (c && (t || n)) r.selectNumberingPlan(t, n), t ? l = t : Nt && r.isNonGeographicCallingCode(n) && (l = "001"), s = n || i(t, r.metadata);
954
- else return {};
955
- if (!c) return {
956
- countryCallingCodeSource: o,
957
- countryCallingCode: s
958
- };
959
- var u = T(gt(c), l, r), d = u.nationalNumber, f = u.carrierCode, p = w(s, {
960
- nationalNumber: d,
961
- metadata: r
962
- });
963
- return p && (l = p, p === "001" || r.selectNumberingPlan(l)), {
964
- country: l,
965
- countryCallingCode: s,
966
- countryCallingCodeSource: o,
967
- nationalNumber: d,
968
- carrierCode: f
969
- };
970
- }
971
- //#endregion
972
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js
973
- function B(e) {
974
- "@babel/helpers - typeof";
975
- return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
976
- return typeof e;
977
- } : function(e) {
978
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
979
- }, B(e);
980
- }
981
- function zt(e, t) {
982
- var n = Object.keys(e);
983
- if (Object.getOwnPropertySymbols) {
984
- var r = Object.getOwnPropertySymbols(e);
985
- t && (r = r.filter(function(t) {
986
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
987
- })), n.push.apply(n, r);
988
- }
989
- return n;
990
- }
991
- function Bt(e) {
992
- for (var t = 1; t < arguments.length; t++) {
993
- var n = arguments[t] == null ? {} : arguments[t];
994
- t % 2 ? zt(Object(n), !0).forEach(function(t) {
995
- Vt(e, t, n[t]);
996
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zt(Object(n)).forEach(function(t) {
997
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
998
- });
999
- }
1000
- return e;
1001
- }
1002
- function Vt(e, t, n) {
1003
- return (t = Ht(t)) in e ? Object.defineProperty(e, t, {
1004
- value: n,
1005
- enumerable: !0,
1006
- configurable: !0,
1007
- writable: !0
1008
- }) : e[t] = n, e;
1009
- }
1010
- function Ht(e) {
1011
- var t = Ut(e, "string");
1012
- return B(t) == "symbol" ? t : t + "";
1013
- }
1014
- function Ut(e, t) {
1015
- if (B(e) != "object" || !e) return e;
1016
- var n = e[Symbol.toPrimitive];
1017
- if (n !== void 0) {
1018
- var r = n.call(e, t || "default");
1019
- if (B(r) != "object") return r;
1020
- throw TypeError("@@toPrimitive must return a primitive value.");
1021
- }
1022
- return (t === "string" ? String : Number)(e);
1023
- }
1024
- function Wt(e, t, n) {
1025
- return Pt(e, Bt(Bt({}, t), {}, { v2: !0 }), n);
1026
- }
1027
- //#endregion
1028
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/normalizeArguments.js
1029
- function V(e) {
1030
- "@babel/helpers - typeof";
1031
- return V = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1032
- return typeof e;
1033
- } : function(e) {
1034
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1035
- }, V(e);
1036
- }
1037
- function Gt(e, t) {
1038
- var n = Object.keys(e);
1039
- if (Object.getOwnPropertySymbols) {
1040
- var r = Object.getOwnPropertySymbols(e);
1041
- t && (r = r.filter(function(t) {
1042
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
1043
- })), n.push.apply(n, r);
1044
- }
1045
- return n;
1046
- }
1047
- function Kt(e) {
1048
- for (var t = 1; t < arguments.length; t++) {
1049
- var n = arguments[t] == null ? {} : arguments[t];
1050
- t % 2 ? Gt(Object(n), !0).forEach(function(t) {
1051
- qt(e, t, n[t]);
1052
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Gt(Object(n)).forEach(function(t) {
1053
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1054
- });
1055
- }
1056
- return e;
1057
- }
1058
- function qt(e, t, n) {
1059
- return (t = Jt(t)) in e ? Object.defineProperty(e, t, {
1060
- value: n,
1061
- enumerable: !0,
1062
- configurable: !0,
1063
- writable: !0
1064
- }) : e[t] = n, e;
1065
- }
1066
- function Jt(e) {
1067
- var t = Yt(e, "string");
1068
- return V(t) == "symbol" ? t : t + "";
1069
- }
1070
- function Yt(e, t) {
1071
- if (V(e) != "object" || !e) return e;
1072
- var n = e[Symbol.toPrimitive];
1073
- if (n !== void 0) {
1074
- var r = n.call(e, t || "default");
1075
- if (V(r) != "object") return r;
1076
- throw TypeError("@@toPrimitive must return a primitive value.");
1077
- }
1078
- return (t === "string" ? String : Number)(e);
1079
- }
1080
- function Xt(e, t) {
1081
- return tn(e) || en(e, t) || Qt(e, t) || Zt();
1082
- }
1083
- function Zt() {
1084
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1085
- }
1086
- function Qt(e, t) {
1087
- if (e) {
1088
- if (typeof e == "string") return $t(e, t);
1089
- var n = {}.toString.call(e).slice(8, -1);
1090
- 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) ? $t(e, t) : void 0;
1091
- }
1092
- }
1093
- function $t(e, t) {
1094
- (t == null || t > e.length) && (t = e.length);
1095
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1096
- return r;
1097
- }
1098
- function en(e, t) {
1099
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1100
- if (n != null) {
1101
- var r, i, a, o, s = [], c = !0, l = !1;
1102
- try {
1103
- if (a = (n = n.call(e)).next, t === 0) {
1104
- if (Object(n) !== n) return;
1105
- c = !1;
1106
- } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
1107
- } catch (e) {
1108
- l = !0, i = e;
1109
- } finally {
1110
- try {
1111
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
1112
- } finally {
1113
- if (l) throw i;
1114
- }
1115
- }
1116
- return s;
1117
- }
1118
- }
1119
- function tn(e) {
1120
- if (Array.isArray(e)) return e;
1121
- }
1122
- function nn(e) {
1123
- var t = Xt(Array.prototype.slice.call(e), 4), n = t[0], i = t[1], a = t[2], o = t[3], s, c, l;
1124
- if (typeof n == "string") s = n;
1125
- else throw TypeError("A text for parsing must be a string.");
1126
- if (!i || typeof i == "string") o ? (c = a, l = o) : (c = void 0, l = a), i && (c = Kt({ defaultCountry: i }, c));
1127
- else if (r(i)) a ? (c = i, l = a) : l = i;
1128
- else throw Error(`Invalid second argument: ${i}`);
1129
- return {
1130
- text: s,
1131
- options: c,
1132
- metadata: l
1133
- };
1134
- }
1135
- //#endregion
1136
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js
1137
- function H(e) {
1138
- "@babel/helpers - typeof";
1139
- return H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1140
- return typeof e;
1141
- } : function(e) {
1142
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1143
- }, H(e);
1144
- }
1145
- function rn(e, t) {
1146
- var n = Object.keys(e);
1147
- if (Object.getOwnPropertySymbols) {
1148
- var r = Object.getOwnPropertySymbols(e);
1149
- t && (r = r.filter(function(t) {
1150
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
1151
- })), n.push.apply(n, r);
1152
- }
1153
- return n;
1154
- }
1155
- function an(e) {
1156
- for (var t = 1; t < arguments.length; t++) {
1157
- var n = arguments[t] == null ? {} : arguments[t];
1158
- t % 2 ? rn(Object(n), !0).forEach(function(t) {
1159
- on(e, t, n[t]);
1160
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rn(Object(n)).forEach(function(t) {
1161
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1162
- });
1163
- }
1164
- return e;
1165
- }
1166
- function on(e, t, n) {
1167
- return (t = sn(t)) in e ? Object.defineProperty(e, t, {
1168
- value: n,
1169
- enumerable: !0,
1170
- configurable: !0,
1171
- writable: !0
1172
- }) : e[t] = n, e;
1173
- }
1174
- function sn(e) {
1175
- var t = cn(e, "string");
1176
- return H(t) == "symbol" ? t : t + "";
1177
- }
1178
- function cn(e, t) {
1179
- if (H(e) != "object" || !e) return e;
1180
- var n = e[Symbol.toPrimitive];
1181
- if (n !== void 0) {
1182
- var r = n.call(e, t || "default");
1183
- if (H(r) != "object") return r;
1184
- throw TypeError("@@toPrimitive must return a primitive value.");
1185
- }
1186
- return (t === "string" ? String : Number)(e);
1187
- }
1188
- function ln(e, t, n) {
1189
- t && t.defaultCountry && !a(t.defaultCountry, n) && (t = an(an({}, t), {}, { defaultCountry: void 0 }));
1190
- try {
1191
- return Wt(e, t, n);
1192
- } catch (e) {
1193
- /* istanbul ignore else */
1194
- if (!(e instanceof I)) throw e;
1195
- }
1196
- }
1197
- //#endregion
1198
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/parsePhoneNumber.js
1199
- function un() {
1200
- var e = nn(arguments), t = e.text, n = e.options, r = e.metadata;
1201
- return ln(t, n, r);
1202
- }
1203
- //#endregion
1204
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouTypeState.js
1205
- function U(e) {
1206
- "@babel/helpers - typeof";
1207
- return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1208
- return typeof e;
1209
- } : function(e) {
1210
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1211
- }, U(e);
1212
- }
1213
- function dn(e, t) {
1214
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1215
- }
1216
- function fn(e, t) {
1217
- for (var n = 0; n < t.length; n++) {
1218
- var r = t[n];
1219
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, mn(r.key), r);
1220
- }
1221
- }
1222
- function pn(e, t, n) {
1223
- return t && fn(e.prototype, t), n && fn(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1224
- }
1225
- function mn(e) {
1226
- var t = hn(e, "string");
1227
- return U(t) == "symbol" ? t : t + "";
1228
- }
1229
- function hn(e, t) {
1230
- if (U(e) != "object" || !e) return e;
1231
- var n = e[Symbol.toPrimitive];
1232
- if (n !== void 0) {
1233
- var r = n.call(e, t || "default");
1234
- if (U(r) != "object") return r;
1235
- throw TypeError("@@toPrimitive must return a primitive value.");
1236
- }
1237
- return (t === "string" ? String : Number)(e);
1238
- }
1239
- var gn = /* @__PURE__ */ function() {
1240
- function e(t) {
1241
- var n = t.onCountryChange, r = t.onCallingCodeChange;
1242
- dn(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
1243
- }
1244
- return pn(e, [
1245
- {
1246
- key: "reset",
1247
- value: function(e) {
1248
- var t = e.country, n = e.callingCode;
1249
- this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(t, n);
1250
- }
1251
- },
1252
- {
1253
- key: "resetNationalSignificantNumber",
1254
- value: function() {
1255
- this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberIsModified = !1, this.nationalPrefix = void 0, this.carrierCode = void 0, this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
1256
- }
1257
- },
1258
- {
1259
- key: "update",
1260
- value: function(e) {
1261
- for (var t = 0, n = Object.keys(e); t < n.length; t++) {
1262
- var r = n[t];
1263
- this[r] = e[r];
1264
- }
1265
- }
1266
- },
1267
- {
1268
- key: "initCountryAndCallingCode",
1269
- value: function(e, t) {
1270
- this.setCountry(e), this.setCallingCode(t);
1271
- }
1272
- },
1273
- {
1274
- key: "setCountry",
1275
- value: function(e) {
1276
- this.country = e, this.onCountryChange(e);
1277
- }
1278
- },
1279
- {
1280
- key: "setCallingCode",
1281
- value: function(e) {
1282
- this.callingCode = e, this.onCallingCodeChange(e, this.country);
1283
- }
1284
- },
1285
- {
1286
- key: "startInternationalNumber",
1287
- value: function(e, t) {
1288
- this.international = !0, this.initCountryAndCallingCode(e, t);
1289
- }
1290
- },
1291
- {
1292
- key: "appendDigits",
1293
- value: function(e) {
1294
- this.digits += e;
1295
- }
1296
- },
1297
- {
1298
- key: "appendNationalSignificantNumberDigits",
1299
- value: function(e) {
1300
- this.nationalSignificantNumber += e;
1301
- }
1302
- },
1303
- {
1304
- key: "getNationalDigits",
1305
- value: function() {
1306
- return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
1307
- }
1308
- },
1309
- {
1310
- key: "getDigitsWithoutInternationalPrefix",
1311
- value: function() {
1312
- return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
1313
- }
1314
- }
1315
- ]);
1316
- }();
1317
- //#endregion
1318
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js
1319
- function _n(e, t) {
1320
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1321
- if (n) return (n = n.call(e)).next.bind(n);
1322
- if (Array.isArray(e) || (n = vn(e)) || t && e && typeof e.length == "number") {
1323
- n && (e = n);
1324
- var r = 0;
1325
- return function() {
1326
- return r >= e.length ? { done: !0 } : {
1327
- done: !1,
1328
- value: e[r++]
1329
- };
1330
- };
1331
- }
1332
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1333
- }
1334
- function vn(e, t) {
1335
- if (e) {
1336
- if (typeof e == "string") return yn(e, t);
1337
- var n = {}.toString.call(e).slice(8, -1);
1338
- 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) ? yn(e, t) : void 0;
1339
- }
1340
- }
1341
- function yn(e, t) {
1342
- (t == null || t > e.length) && (t = e.length);
1343
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1344
- return r;
1345
- }
1346
- var W = /* @__PURE__ */ RegExp("x");
1347
- function G(e, t) {
1348
- if (t < 1) return "";
1349
- for (var n = ""; t > 1;) t & 1 && (n += e), t >>= 1, e += e;
1350
- return n + e;
1351
- }
1352
- function bn(e, t) {
1353
- return e[t] === ")" && t++, xn(e.slice(0, t));
1354
- }
1355
- function xn(e) {
1356
- for (var t = [], n = 0; n < e.length;) e[n] === "(" ? t.push(n) : e[n] === ")" && t.pop(), n++;
1357
- var r = 0, i = "";
1358
- t.push(e.length);
1359
- for (var a = 0, o = t; a < o.length; a++) {
1360
- var s = o[a];
1361
- i += e.slice(r, s), r = s + 1;
1362
- }
1363
- return i;
1364
- }
1365
- function Sn(e, t, n) {
1366
- for (var r = _n(n.split("")), i; !(i = r()).done;) {
1367
- var a = i.value;
1368
- if (e.slice(t + 1).search(W) < 0) return;
1369
- t = e.search(W), e = e.replace(W, a);
1370
- }
1371
- return [e, t];
1372
- }
1373
- //#endregion
1374
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js
1375
- function Cn(e, t, n) {
1376
- var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
1377
- if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return Tn(e, t, {
1378
- metadata: r,
1379
- shouldTryNationalPrefixFormattingRule: i,
1380
- getSeparatorAfterNationalPrefix: a
1381
- });
1382
- }
1383
- function wn(e, t, n) {
1384
- return d(e, t, n) === "IS_POSSIBLE";
1385
- }
1386
- function Tn(e, t, n) {
1387
- var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
1388
- if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
1389
- var o = En(e, t, {
1390
- useNationalPrefixFormattingRule: !0,
1391
- getSeparatorAfterNationalPrefix: a,
1392
- metadata: r
1393
- });
1394
- if (o) return o;
1395
- }
1396
- return En(e, t, {
1397
- useNationalPrefixFormattingRule: !1,
1398
- getSeparatorAfterNationalPrefix: a,
1399
- metadata: r
1400
- });
1401
- }
1402
- function En(e, t, n) {
1403
- var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o = ve(e.nationalSignificantNumber, t, {
1404
- carrierCode: e.carrierCode,
1405
- useInternationalFormat: e.international,
1406
- withNationalPrefix: i,
1407
- metadata: r
1408
- });
1409
- if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), Dn(o, e)) return o;
1410
- }
1411
- function Dn(e, t) {
1412
- return L(e) === t.getNationalDigits();
1413
- }
1414
- //#endregion
1415
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js
1416
- function K(e) {
1417
- "@babel/helpers - typeof";
1418
- return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1419
- return typeof e;
1420
- } : function(e) {
1421
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1422
- }, K(e);
1423
- }
1424
- function On(e, t) {
1425
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1426
- }
1427
- function kn(e, t) {
1428
- for (var n = 0; n < t.length; n++) {
1429
- var r = t[n];
1430
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, jn(r.key), r);
1431
- }
1432
- }
1433
- function An(e, t, n) {
1434
- return t && kn(e.prototype, t), n && kn(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1435
- }
1436
- function jn(e) {
1437
- var t = Mn(e, "string");
1438
- return K(t) == "symbol" ? t : t + "";
1439
- }
1440
- function Mn(e, t) {
1441
- if (K(e) != "object" || !e) return e;
1442
- var n = e[Symbol.toPrimitive];
1443
- if (n !== void 0) {
1444
- var r = n.call(e, t || "default");
1445
- if (K(r) != "object") return r;
1446
- throw TypeError("@@toPrimitive must return a primitive value.");
1447
- }
1448
- return (t === "string" ? String : Number)(e);
1449
- }
1450
- var Nn = /* @__PURE__ */ function() {
1451
- function e() {
1452
- On(this, e);
1453
- }
1454
- return An(e, [
1455
- {
1456
- key: "parse",
1457
- value: function(e) {
1458
- if (this.context = [{
1459
- or: !0,
1460
- instructions: []
1461
- }], this.parsePattern(e), this.context.length !== 1) throw Error("Non-finalized contexts left when pattern parse ended");
1462
- var t = this.context[0], n = t.branches, r = t.instructions;
1463
- if (n) return {
1464
- op: "|",
1465
- args: n.concat([q(r)])
1466
- };
1467
- /* istanbul ignore if */
1468
- if (r.length === 0) throw Error("Pattern is required");
1469
- return r.length === 1 ? r[0] : r;
1470
- }
1471
- },
1472
- {
1473
- key: "startContext",
1474
- value: function(e) {
1475
- this.context.push(e);
1476
- }
1477
- },
1478
- {
1479
- key: "endContext",
1480
- value: function() {
1481
- this.context.pop();
1482
- }
1483
- },
1484
- {
1485
- key: "getContext",
1486
- value: function() {
1487
- return this.context[this.context.length - 1];
1488
- }
1489
- },
1490
- {
1491
- key: "parsePattern",
1492
- value: function(e) {
1493
- if (!e) throw Error("Pattern is required");
1494
- var t = e.match(In);
1495
- if (!t) {
1496
- if (Fn.test(e)) throw Error(`Illegal characters found in a pattern: ${e}`);
1497
- this.getContext().instructions = this.getContext().instructions.concat(e.split(""));
1498
- return;
1499
- }
1500
- var n = t[1], r = e.slice(0, t.index), i = e.slice(t.index + n.length);
1501
- switch (n) {
1502
- case "(?:":
1503
- r && this.parsePattern(r), this.startContext({
1504
- or: !0,
1505
- instructions: [],
1506
- branches: []
1507
- });
1508
- break;
1509
- case ")":
1510
- if (!this.getContext().or) throw Error("\")\" operator must be preceded by \"(?:\" operator");
1511
- if (r && this.parsePattern(r), this.getContext().instructions.length === 0) throw Error("No instructions found after \"|\" operator in an \"or\" group");
1512
- var a = this.getContext().branches;
1513
- a.push(q(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
1514
- op: "|",
1515
- args: a
1516
- });
1517
- break;
1518
- case "|":
1519
- if (!this.getContext().or) throw Error("\"|\" operator can only be used inside \"or\" groups");
1520
- if (r && this.parsePattern(r), !this.getContext().branches)
1521
- /* istanbul ignore else */
1522
- if (this.context.length === 1) this.getContext().branches = [];
1523
- else throw Error("\"branches\" not found in an \"or\" group context");
1524
- this.getContext().branches.push(q(this.getContext().instructions)), this.getContext().instructions = [];
1525
- break;
1526
- case "[":
1527
- r && this.parsePattern(r), this.startContext({ oneOfSet: !0 });
1528
- break;
1529
- case "]":
1530
- if (!this.getContext().oneOfSet) throw Error("\"]\" operator must be preceded by \"[\" operator");
1531
- this.endContext(), this.getContext().instructions.push({
1532
- op: "[]",
1533
- args: Pn(r)
1534
- });
1535
- break;
1536
- default: throw Error(`Unknown operator: ${n}`);
1537
- }
1538
- i && this.parsePattern(i);
1539
- }
1540
- }
1541
- ]);
1542
- }();
1543
- function Pn(e) {
1544
- for (var t = [], n = 0; n < e.length;) {
1545
- if (e[n] === "-") {
1546
- if (n === 0 || n === e.length - 1) throw Error(`Couldn't parse a one-of set pattern: ${e}`);
1547
- for (var r = e[n - 1].charCodeAt(0) + 1, i = e[n + 1].charCodeAt(0) - 1, a = r; a <= i;) t.push(String.fromCharCode(a)), a++;
1548
- } else t.push(e[n]);
1549
- n++;
1550
- }
1551
- return t;
1552
- }
1553
- var Fn = /[\(\)\[\]\?\:\|]/, In = /* @__PURE__ */ RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
1554
- function q(e) {
1555
- return e.length === 1 ? e[0] : e;
1556
- }
1557
- //#endregion
1558
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js
1559
- function Ln(e, t) {
1560
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1561
- if (n) return (n = n.call(e)).next.bind(n);
1562
- if (Array.isArray(e) || (n = Rn(e)) || t && e && typeof e.length == "number") {
1563
- n && (e = n);
1564
- var r = 0;
1565
- return function() {
1566
- return r >= e.length ? { done: !0 } : {
1567
- done: !1,
1568
- value: e[r++]
1569
- };
1570
- };
1571
- }
1572
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1573
- }
1574
- function Rn(e, t) {
1575
- if (e) {
1576
- if (typeof e == "string") return zn(e, t);
1577
- var n = {}.toString.call(e).slice(8, -1);
1578
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? zn(e, t) : void 0;
1579
- }
1580
- }
1581
- function zn(e, t) {
1582
- (t == null || t > e.length) && (t = e.length);
1583
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1584
- return r;
1585
- }
1586
- function J(e) {
1587
- "@babel/helpers - typeof";
1588
- return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1589
- return typeof e;
1590
- } : function(e) {
1591
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1592
- }, J(e);
1593
- }
1594
- function Bn(e, t) {
1595
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1596
- }
1597
- function Vn(e, t) {
1598
- for (var n = 0; n < t.length; n++) {
1599
- var r = t[n];
1600
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Un(r.key), r);
1601
- }
1602
- }
1603
- function Hn(e, t, n) {
1604
- return t && Vn(e.prototype, t), n && Vn(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1605
- }
1606
- function Un(e) {
1607
- var t = Wn(e, "string");
1608
- return J(t) == "symbol" ? t : t + "";
1609
- }
1610
- function Wn(e, t) {
1611
- if (J(e) != "object" || !e) return e;
1612
- var n = e[Symbol.toPrimitive];
1613
- if (n !== void 0) {
1614
- var r = n.call(e, t || "default");
1615
- if (J(r) != "object") return r;
1616
- throw TypeError("@@toPrimitive must return a primitive value.");
1617
- }
1618
- return (t === "string" ? String : Number)(e);
1619
- }
1620
- var Gn = /* @__PURE__ */ function() {
1621
- function e(t) {
1622
- Bn(this, e), this.matchTree = new Nn().parse(t);
1623
- }
1624
- return Hn(e, [{
1625
- key: "match",
1626
- value: function(e) {
1627
- var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).allowOverflow;
1628
- if (!e) throw Error("String is required");
1629
- var n = Kn(e.split(""), this.matchTree, !0);
1630
- if (n && n.match && delete n.matchedChars, !(n && n.overflow && !t)) return n;
1631
- }
1632
- }]);
1633
- }();
1634
- function Kn(e, t, n) {
1635
- if (typeof t == "string") {
1636
- var r = e.join("");
1637
- return t.indexOf(r) === 0 ? e.length === t.length ? {
1638
- match: !0,
1639
- matchedChars: e
1640
- } : { partialMatch: !0 } : r.indexOf(t) === 0 ? n && e.length > t.length ? { overflow: !0 } : {
1641
- match: !0,
1642
- matchedChars: e.slice(0, t.length)
1643
- } : void 0;
1644
- }
1645
- if (Array.isArray(t)) {
1646
- for (var i = e.slice(), a = 0; a < t.length;) {
1647
- var o = t[a], s = Kn(i, o, n && a === t.length - 1);
1648
- if (!s) return;
1649
- if (s.overflow) return s;
1650
- if (s.match) {
1651
- if (i = i.slice(s.matchedChars.length), i.length === 0) return a === t.length - 1 ? {
1652
- match: !0,
1653
- matchedChars: e
1654
- } : { partialMatch: !0 };
1655
- } else if (s.partialMatch) return { partialMatch: !0 };
1656
- else throw Error(`Unsupported match result:
1657
- ${JSON.stringify(s, null, 2)}`);
1658
- a++;
1659
- }
1660
- return n ? { overflow: !0 } : {
1661
- match: !0,
1662
- matchedChars: e.slice(0, e.length - i.length)
1663
- };
1664
- }
1665
- switch (t.op) {
1666
- case "|":
1667
- for (var c, l = Ln(t.args), u; !(u = l()).done;) {
1668
- var d = u.value, f = Kn(e, d, n);
1669
- if (f) {
1670
- if (f.overflow) return f;
1671
- if (f.match) return {
1672
- match: !0,
1673
- matchedChars: f.matchedChars
1674
- };
1675
- if (f.partialMatch) c = !0;
1676
- else throw Error(`Unsupported match result:
1677
- ${JSON.stringify(f, null, 2)}`);
1678
- }
1679
- }
1680
- return c ? { partialMatch: !0 } : void 0;
1681
- case "[]":
1682
- for (var p = Ln(t.args), m; !(m = p()).done;) {
1683
- var h = m.value;
1684
- if (e[0] === h) return e.length === 1 ? {
1685
- match: !0,
1686
- matchedChars: e
1687
- } : n ? { overflow: !0 } : {
1688
- match: !0,
1689
- matchedChars: [h]
1690
- };
1691
- }
1692
- return;
1693
- default: throw Error(`Unsupported instruction tree: ${t}`);
1694
- }
1695
- }
1696
- //#endregion
1697
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js
1698
- function Y(e) {
1699
- "@babel/helpers - typeof";
1700
- return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1701
- return typeof e;
1702
- } : function(e) {
1703
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1704
- }, Y(e);
1705
- }
1706
- function qn(e, t) {
1707
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1708
- if (n) return (n = n.call(e)).next.bind(n);
1709
- if (Array.isArray(e) || (n = Jn(e)) || t && e && typeof e.length == "number") {
1710
- n && (e = n);
1711
- var r = 0;
1712
- return function() {
1713
- return r >= e.length ? { done: !0 } : {
1714
- done: !1,
1715
- value: e[r++]
1716
- };
1717
- };
1718
- }
1719
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1720
- }
1721
- function Jn(e, t) {
1722
- if (e) {
1723
- if (typeof e == "string") return Yn(e, t);
1724
- var n = {}.toString.call(e).slice(8, -1);
1725
- 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) ? Yn(e, t) : void 0;
1726
- }
1727
- }
1728
- function Yn(e, t) {
1729
- (t == null || t > e.length) && (t = e.length);
1730
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1731
- return r;
1732
- }
1733
- function Xn(e, t) {
1734
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1735
- }
1736
- function Zn(e, t) {
1737
- for (var n = 0; n < t.length; n++) {
1738
- var r = t[n];
1739
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, $n(r.key), r);
1740
- }
1741
- }
1742
- function Qn(e, t, n) {
1743
- return t && Zn(e.prototype, t), n && Zn(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1744
- }
1745
- function $n(e) {
1746
- var t = er(e, "string");
1747
- return Y(t) == "symbol" ? t : t + "";
1748
- }
1749
- function er(e, t) {
1750
- if (Y(e) != "object" || !e) return e;
1751
- var n = e[Symbol.toPrimitive];
1752
- if (n !== void 0) {
1753
- var r = n.call(e, t || "default");
1754
- if (Y(r) != "object") return r;
1755
- throw TypeError("@@toPrimitive must return a primitive value.");
1756
- }
1757
- return (t === "string" ? String : Number)(e);
1758
- }
1759
- var tr = "9", nr = G(tr, 15), rr = /[- ]/, X = !0, ir = X && function() {
1760
- return /\[([^\[\]])*\]/g;
1761
- }, ar = X && function() {
1762
- return /\d(?=[^,}][^,}])/g;
1763
- }, or = RegExp("[" + x + "]*\\$1[" + x + "]*(\\$\\d[" + x + "]*)*$"), sr = 3, cr = /* @__PURE__ */ function() {
1764
- function e(t) {
1765
- t.state;
1766
- var n = t.metadata;
1767
- Xn(this, e), this.metadata = n, this.resetFormat();
1768
- }
1769
- return Qn(e, [
1770
- {
1771
- key: "resetFormat",
1772
- value: function() {
1773
- this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
1774
- }
1775
- },
1776
- {
1777
- key: "reset",
1778
- value: function(e, t) {
1779
- this.resetFormat(), e ? (this.isNANP = e.callingCode() === "1", this.matchingFormats = e.formats(), t.nationalSignificantNumber && this.narrowDownMatchingFormats(t)) : (this.isNANP = void 0, this.matchingFormats = []);
1780
- }
1781
- },
1782
- {
1783
- key: "format",
1784
- value: function(e, t) {
1785
- var n = this;
1786
- if (wn(t.nationalSignificantNumber, t.country, this.metadata)) for (var r = qn(this.matchingFormats), i; !(i = r()).done;) {
1787
- var a = i.value, o = Cn(t, a, {
1788
- metadata: this.metadata,
1789
- shouldTryNationalPrefixFormattingRule: function(e) {
1790
- return n.shouldTryNationalPrefixFormattingRule(e, {
1791
- international: t.international,
1792
- nationalPrefix: t.nationalPrefix
1793
- });
1794
- },
1795
- getSeparatorAfterNationalPrefix: function(e) {
1796
- return n.getSeparatorAfterNationalPrefix(e);
1797
- }
1798
- });
1799
- if (o) return this.resetFormat(), this.chosenFormat = a, this.setNationalNumberTemplate(o.replace(/\d/g, "x"), t), this.populatedNationalNumberTemplate = o, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf("x"), o;
1800
- }
1801
- return this.formatNationalNumberWithNextDigits(e, t);
1802
- }
1803
- },
1804
- {
1805
- key: "formatNationalNumberWithNextDigits",
1806
- value: function(e, t) {
1807
- var n = this.chosenFormat, r = this.chooseFormat(t);
1808
- if (r) return r === n ? this.formatNextNationalNumberDigits(e) : this.formatNextNationalNumberDigits(t.getNationalDigits());
1809
- }
1810
- },
1811
- {
1812
- key: "narrowDownMatchingFormats",
1813
- value: function(e) {
1814
- var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length - sr;
1815
- o < 0 && (o = 0), this.matchingFormats = this.matchingFormats.filter(function(e) {
1816
- return t.formatSuits(e, i, r) && t.formatMatches(e, a, o);
1817
- }), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
1818
- }
1819
- },
1820
- {
1821
- key: "formatSuits",
1822
- value: function(e, t, n) {
1823
- return !(n && !e.usesNationalPrefix() && !e.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !t && !n && e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
1824
- }
1825
- },
1826
- {
1827
- key: "formatMatches",
1828
- value: function(e, t, n) {
1829
- var r = e.leadingDigitsPatterns().length;
1830
- if (r === 0) return !0;
1831
- n = Math.min(n, r - 1);
1832
- var i = e.leadingDigitsPatterns()[n];
1833
- if (t.length < sr) try {
1834
- return new Gn(i).match(t, { allowOverflow: !0 }) !== void 0;
1835
- } catch (e) /* istanbul ignore next */ {
1836
- return console.error(e), !0;
1837
- }
1838
- return RegExp(`^(${i})`).test(t);
1839
- }
1840
- },
1841
- {
1842
- key: "getFormatFormat",
1843
- value: function(e, t) {
1844
- return t ? e.internationalFormat() : e.format();
1845
- }
1846
- },
1847
- {
1848
- key: "chooseFormat",
1849
- value: function(e) {
1850
- /* istanbul ignore next */
1851
- for (var t = this, n = function() {
1852
- var n = a.value;
1853
- return t.chosenFormat === n ? 0 : or.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e) ? (t.chosenFormat = n, 0) : (t.matchingFormats = t.matchingFormats.filter(function(e) {
1854
- return e !== n;
1855
- }), 1) : 1;
1856
- }, r, i = qn(this.matchingFormats.slice()), a; !(a = i()).done && (r = n(), r !== 0););
1857
- return this.chosenFormat || this.resetFormat(), this.chosenFormat;
1858
- }
1859
- },
1860
- {
1861
- key: "createTemplateForFormat",
1862
- value: function(e, t) {
1863
- if (!(X && e.pattern().indexOf("|") >= 0)) {
1864
- var n = this.getTemplateForFormat(e, t);
1865
- if (n) return this.setNationalNumberTemplate(n, t), !0;
1866
- }
1867
- }
1868
- },
1869
- {
1870
- key: "getSeparatorAfterNationalPrefix",
1871
- value: function(e) {
1872
- return this.isNANP || e && e.nationalPrefixFormattingRule() && rr.test(e.nationalPrefixFormattingRule()) ? " " : "";
1873
- }
1874
- },
1875
- {
1876
- key: "getInternationalPrefixBeforeCountryCallingCode",
1877
- value: function(e, t) {
1878
- var n = e.IDDPrefix, r = e.missingPlus;
1879
- return n ? t && t.spacing === !1 ? n : n + " " : r ? "" : "+";
1880
- }
1881
- },
1882
- {
1883
- key: "getTemplate",
1884
- value: function(e) {
1885
- if (this.template) {
1886
- for (var t = -1, n = 0, r = e.international ? this.getInternationalPrefixBeforeCountryCallingCode(e, { spacing: !1 }) : ""; n < r.length + e.getDigitsWithoutInternationalPrefix().length;) t = this.template.indexOf("x", t + 1), n++;
1887
- return bn(this.template, t + 1);
1888
- }
1889
- }
1890
- },
1891
- {
1892
- key: "setNationalNumberTemplate",
1893
- value: function(e, t) {
1894
- this.nationalNumberTemplate = e, this.populatedNationalNumberTemplate = e, this.populatedNationalNumberTemplatePosition = -1, t.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g, "x") + G("x", t.callingCode.length) + " " + e : this.template = e;
1895
- }
1896
- },
1897
- {
1898
- key: "getTemplateForFormat",
1899
- value: function(e, t) {
1900
- var n = t.nationalSignificantNumber, r = t.international, i = t.nationalPrefix, a = t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, o = e.pattern();
1901
- /* istanbul ignore else */
1902
- X && (o = o.replace(ir(), "\\d").replace(ar(), "\\d"));
1903
- var s = nr.match(o)[0];
1904
- if (!(n.length > s.length)) {
1905
- var c = RegExp("^" + o + "$"), l = n.replace(/\d/g, tr);
1906
- c.test(l) && (s = l);
1907
- var u = this.getFormatFormat(e, r), d;
1908
- if (this.shouldTryNationalPrefixFormattingRule(e, {
1909
- international: r,
1910
- nationalPrefix: i
1911
- })) {
1912
- var f = u.replace(_e, e.nationalPrefixFormattingRule());
1913
- /* istanbul ignore else */
1914
- if (L(e.nationalPrefixFormattingRule()) === (i || "") + L("$1") && (u = f, d = !0, i)) for (var p = i.length; p > 0;) u = u.replace(/\d/, "x"), p--;
1915
- }
1916
- var m = s.replace(new RegExp(o), u).replace(new RegExp(tr, "g"), "x");
1917
- return d || (a ? m = G("x", a.length) + " " + m : i && (m = G("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m = ge(m)), m;
1918
- }
1919
- }
1920
- },
1921
- {
1922
- key: "formatNextNationalNumberDigits",
1923
- value: function(e) {
1924
- var t = Sn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, e);
1925
- if (!t) {
1926
- this.resetFormat();
1927
- return;
1928
- }
1929
- return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1], bn(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
1930
- }
1931
- },
1932
- {
1933
- key: "shouldTryNationalPrefixFormattingRule",
1934
- value: function(e, t) {
1935
- var n = t.international, r = t.nationalPrefix;
1936
- if (e.nationalPrefixFormattingRule()) {
1937
- var i = e.usesNationalPrefix();
1938
- if (i && r || !i && !n) return !0;
1939
- }
1940
- }
1941
- }
1942
- ]);
1943
- }();
1944
- //#endregion
1945
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouTypeParser.js
1946
- function Z(e) {
1947
- "@babel/helpers - typeof";
1948
- return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1949
- return typeof e;
1950
- } : function(e) {
1951
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1952
- }, Z(e);
1953
- }
1954
- function lr(e, t) {
1955
- return mr(e) || pr(e, t) || dr(e, t) || ur();
1956
- }
1957
- function ur() {
1958
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1959
- }
1960
- function dr(e, t) {
1961
- if (e) {
1962
- if (typeof e == "string") return fr(e, t);
1963
- var n = {}.toString.call(e).slice(8, -1);
1964
- 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) ? fr(e, t) : void 0;
1965
- }
1966
- }
1967
- function fr(e, t) {
1968
- (t == null || t > e.length) && (t = e.length);
1969
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1970
- return r;
1971
- }
1972
- function pr(e, t) {
1973
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1974
- if (n != null) {
1975
- var r, i, a, o, s = [], c = !0, l = !1;
1976
- try {
1977
- if (a = (n = n.call(e)).next, t === 0) {
1978
- if (Object(n) !== n) return;
1979
- c = !1;
1980
- } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
1981
- } catch (e) {
1982
- l = !0, i = e;
1983
- } finally {
1984
- try {
1985
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
1986
- } finally {
1987
- if (l) throw i;
1988
- }
1989
- }
1990
- return s;
1991
- }
1992
- }
1993
- function mr(e) {
1994
- if (Array.isArray(e)) return e;
1995
- }
1996
- function hr(e, t) {
1997
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1998
- }
1999
- function gr(e, t) {
2000
- for (var n = 0; n < t.length; n++) {
2001
- var r = t[n];
2002
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, vr(r.key), r);
2003
- }
2004
- }
2005
- function _r(e, t, n) {
2006
- return t && gr(e.prototype, t), n && gr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2007
- }
2008
- function vr(e) {
2009
- var t = yr(e, "string");
2010
- return Z(t) == "symbol" ? t : t + "";
2011
- }
2012
- function yr(e, t) {
2013
- if (Z(e) != "object" || !e) return e;
2014
- var n = e[Symbol.toPrimitive];
2015
- if (n !== void 0) {
2016
- var r = n.call(e, t || "default");
2017
- if (Z(r) != "object") return r;
2018
- throw TypeError("@@toPrimitive must return a primitive value.");
2019
- }
2020
- return (t === "string" ? String : Number)(e);
2021
- }
2022
- var br = "[" + x + b + "]+", xr = RegExp("^" + br + "$", "i"), Sr = "(?:[" + S + "][" + x + b + "]*|[" + x + b + "]+)", Cr = RegExp("[^" + x + b + "]+.*$"), wr = /[^\d\[\]]/, Tr = /* @__PURE__ */ function() {
2023
- function e(t) {
2024
- var n = t.defaultCountry, r = t.defaultCallingCode, i = t.metadata, a = t.onNationalSignificantNumberChange;
2025
- hr(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = i, this.onNationalSignificantNumberChange = a;
2026
- }
2027
- return _r(e, [
2028
- {
2029
- key: "input",
2030
- value: function(e, t) {
2031
- var n = lr(Or(e), 2), r = n[0], i = n[1], a = L(r), o;
2032
- return i && (t.digits || (t.startInternationalNumber(void 0, void 0), a || (o = !0))), a && this.inputDigits(a, t), {
2033
- digits: a,
2034
- justLeadingPlus: o
2035
- };
2036
- }
2037
- },
2038
- {
2039
- key: "inputDigits",
2040
- value: function(e, t) {
2041
- var n = t.digits, r = n.length < 3 && n.length + e.length >= 3;
2042
- if (t.appendDigits(e), r && this.extractIddPrefix(t), this.isWaitingForCountryCallingCode(t)) {
2043
- if (!this.extractCountryCallingCode(t)) return;
2044
- } else t.appendNationalSignificantNumberDigits(e);
2045
- t.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(t.getNationalDigits(), function(e) {
2046
- return t.update(e);
2047
- });
2048
- }
2049
- },
2050
- {
2051
- key: "isWaitingForCountryCallingCode",
2052
- value: function(e) {
2053
- var t = e.international, n = e.callingCode;
2054
- return t && !n;
2055
- }
2056
- },
2057
- {
2058
- key: "extractCountryCallingCode",
2059
- value: function(e) {
2060
- var t = he("+" + e.getDigitsWithoutInternationalPrefix(), e.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), n = t.countryCallingCode, r = t.number;
2061
- if (n) return e.setCallingCode(n), e.update({ nationalSignificantNumber: r }), !0;
2062
- }
2063
- },
2064
- {
2065
- key: "reset",
2066
- value: function(e) {
2067
- if (e) {
2068
- this.hasSelectedNumberingPlan = !0;
2069
- var t = e._nationalPrefixForParsing();
2070
- this.couldPossiblyExtractAnotherNationalSignificantNumber = t && wr.test(t);
2071
- } else this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
2072
- }
2073
- },
2074
- {
2075
- key: "extractNationalSignificantNumber",
2076
- value: function(e, t) {
2077
- if (this.hasSelectedNumberingPlan) {
2078
- var n = C(e, this.metadata), r = n.nationalPrefix, i = n.nationalNumber, a = n.carrierCode;
2079
- if (i !== e) return this.onExtractedNationalNumber(r, a, i, e, t), !0;
2080
- }
2081
- }
2082
- },
2083
- {
2084
- key: "extractAnotherNationalSignificantNumber",
2085
- value: function(e, t, n) {
2086
- if (!this.hasExtractedNationalSignificantNumber) return this.extractNationalSignificantNumber(e, n);
2087
- if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
2088
- var r = C(e, this.metadata), i = r.nationalPrefix, a = r.nationalNumber, o = r.carrierCode;
2089
- if (a !== t) return this.onExtractedNationalNumber(i, o, a, e, n), !0;
2090
- }
2091
- }
2092
- },
2093
- {
2094
- key: "onExtractedNationalNumber",
2095
- value: function(e, t, n, r, i) {
2096
- var a = !1, o, s = r.lastIndexOf(n);
2097
- if (s < 0 || s !== r.length - n.length) a = !0;
2098
- else {
2099
- var c = r.slice(0, s);
2100
- /* istanbul ignore if */
2101
- c && c !== e && (o = c);
2102
- }
2103
- i({
2104
- nationalPrefix: e,
2105
- carrierCode: t,
2106
- nationalSignificantNumber: n,
2107
- nationalSignificantNumberIsModified: a,
2108
- prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: o
2109
- }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
2110
- }
2111
- },
2112
- {
2113
- key: "reExtractNationalSignificantNumber",
2114
- value: function(e) {
2115
- if (this.extractAnotherNationalSignificantNumber(e.getNationalDigits(), e.nationalSignificantNumber, function(t) {
2116
- return e.update(t);
2117
- })) return !0;
2118
- if (this.extractIddPrefix(e) || this.fixMissingPlus(e)) return this.extractCallingCodeAndNationalSignificantNumber(e), !0;
2119
- }
2120
- },
2121
- {
2122
- key: "extractIddPrefix",
2123
- value: function(e) {
2124
- var t = e.international, n = e.IDDPrefix, r = e.digits;
2125
- if (e.nationalSignificantNumber, !(t || n)) {
2126
- var i = oe(r, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
2127
- if (i !== void 0 && i !== r) return e.update({ IDDPrefix: r.slice(0, r.length - i.length) }), this.startInternationalNumber(e, {
2128
- country: void 0,
2129
- callingCode: void 0
2130
- }), !0;
2131
- }
2132
- }
2133
- },
2134
- {
2135
- key: "fixMissingPlus",
2136
- value: function(e) {
2137
- if (!e.international) {
2138
- var t = me(e.digits, e.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata).countryCallingCode;
2139
- if (t) return e.update({ missingPlus: !0 }), this.startInternationalNumber(e, {
2140
- country: e.country,
2141
- callingCode: t
2142
- }), !0;
2143
- }
2144
- }
2145
- },
2146
- {
2147
- key: "startInternationalNumber",
2148
- value: function(e, t) {
2149
- var n = t.country, r = t.callingCode;
2150
- e.startInternationalNumber(n, r), e.nationalSignificantNumber && (e.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
2151
- }
2152
- },
2153
- {
2154
- key: "extractCallingCodeAndNationalSignificantNumber",
2155
- value: function(e) {
2156
- this.extractCountryCallingCode(e) && this.extractNationalSignificantNumber(e.getNationalDigits(), function(t) {
2157
- return e.update(t);
2158
- });
2159
- }
2160
- }
2161
- ]);
2162
- }();
2163
- function Er(e) {
2164
- var t = e.search(Sr);
2165
- if (!(t < 0)) {
2166
- e = e.slice(t);
2167
- var n;
2168
- return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(Cr, ""), n && (e = "+" + e), e;
2169
- }
2170
- }
2171
- function Dr(e) {
2172
- var t = Er(e) || "";
2173
- return t[0] === "+" ? [t.slice(1), !0] : [t];
2174
- }
2175
- function Or(e) {
2176
- var t = lr(Dr(e), 2), n = t[0], r = t[1];
2177
- return xr.test(n) || (n = ""), [n, r];
2178
- }
2179
- //#endregion
2180
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/AsYouType.js
2181
- function Q(e) {
2182
- "@babel/helpers - typeof";
2183
- return Q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2184
- return typeof e;
2185
- } : function(e) {
2186
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2187
- }, Q(e);
2188
- }
2189
- function kr(e, t) {
2190
- return Pr(e) || Nr(e, t) || jr(e, t) || Ar();
2191
- }
2192
- function Ar() {
2193
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2194
- }
2195
- function jr(e, t) {
2196
- if (e) {
2197
- if (typeof e == "string") return Mr(e, t);
2198
- var n = {}.toString.call(e).slice(8, -1);
2199
- 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) ? Mr(e, t) : void 0;
2200
- }
2201
- }
2202
- function Mr(e, t) {
2203
- (t == null || t > e.length) && (t = e.length);
2204
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2205
- return r;
2206
- }
2207
- function Nr(e, t) {
2208
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2209
- if (n != null) {
2210
- var r, i, a, o, s = [], c = !0, l = !1;
2211
- try {
2212
- if (a = (n = n.call(e)).next, t === 0) {
2213
- if (Object(n) !== n) return;
2214
- c = !1;
2215
- } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
2216
- } catch (e) {
2217
- l = !0, i = e;
2218
- } finally {
2219
- try {
2220
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
2221
- } finally {
2222
- if (l) throw i;
2223
- }
2224
- }
2225
- return s;
2226
- }
2227
- }
2228
- function Pr(e) {
2229
- if (Array.isArray(e)) return e;
2230
- }
2231
- function Fr(e, t) {
2232
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
2233
- }
2234
- function Ir(e, t) {
2235
- for (var n = 0; n < t.length; n++) {
2236
- var r = t[n];
2237
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Rr(r.key), r);
2238
- }
2239
- }
2240
- function Lr(e, t, n) {
2241
- return t && Ir(e.prototype, t), n && Ir(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2242
- }
2243
- function Rr(e) {
2244
- var t = zr(e, "string");
2245
- return Q(t) == "symbol" ? t : t + "";
2246
- }
2247
- function zr(e, t) {
2248
- if (Q(e) != "object" || !e) return e;
2249
- var n = e[Symbol.toPrimitive];
2250
- if (n !== void 0) {
2251
- var r = n.call(e, t || "default");
2252
- if (Q(r) != "object") return r;
2253
- throw TypeError("@@toPrimitive must return a primitive value.");
2254
- }
2255
- return (t === "string" ? String : Number)(e);
2256
- }
2257
- var Br = !1, Vr = /* @__PURE__ */ function() {
2258
- function t(n, r) {
2259
- Fr(this, t), this.metadata = new e(r);
2260
- var i = kr(this.getCountryAndCallingCode(n), 2), a = i[0], o = i[1];
2261
- this.defaultCountry = a, this.defaultCallingCode = o, this.reset();
2262
- }
2263
- return Lr(t, [
2264
- {
2265
- key: "getCountryAndCallingCode",
2266
- value: function(e) {
2267
- var t, n;
2268
- return e && (r(e) ? (t = e.defaultCountry, n = e.defaultCallingCode) : t = e), t && !this.metadata.hasCountry(t) && (t = void 0), n && Br && this.metadata.isNonGeographicCallingCode(n) && (t = "001"), [t, n];
2269
- }
2270
- },
2271
- {
2272
- key: "input",
2273
- value: function(e) {
2274
- var t = this.parser.input(e, this.state), n = t.digits;
2275
- if (t.justLeadingPlus) this.formattedOutput = "+";
2276
- else if (n) {
2277
- this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
2278
- var r;
2279
- if (this.metadata.hasSelectedNumberingPlan() && (r = this.formatter.format(n, this.state)), r === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
2280
- this.determineTheCountryIfNeeded();
2281
- var i = this.state.getNationalDigits();
2282
- i && (r = this.formatter.format(i, this.state));
2283
- }
2284
- this.formattedOutput = r ? this.getFullNumber(r) : this.getNonFormattedNumber();
2285
- }
2286
- return this.formattedOutput;
2287
- }
2288
- },
2289
- {
2290
- key: "reset",
2291
- value: function() {
2292
- var e = this;
2293
- return this.state = new gn({
2294
- onCountryChange: function(t) {
2295
- e.country = t;
2296
- },
2297
- onCallingCodeChange: function(t, n) {
2298
- e.metadata.selectNumberingPlan(n, t), e.formatter.reset(e.metadata.numberingPlan, e.state), e.parser.reset(e.metadata.numberingPlan);
2299
- }
2300
- }), this.formatter = new cr({
2301
- state: this.state,
2302
- metadata: this.metadata
2303
- }), this.parser = new Tr({
2304
- defaultCountry: this.defaultCountry,
2305
- defaultCallingCode: this.defaultCallingCode,
2306
- metadata: this.metadata,
2307
- state: this.state,
2308
- onNationalSignificantNumberChange: function() {
2309
- e.determineTheCountryIfNeeded(), e.formatter.reset(e.metadata.numberingPlan, e.state);
2310
- }
2311
- }), this.state.reset({
2312
- country: this.defaultCountry,
2313
- callingCode: this.defaultCallingCode
2314
- }), this.formattedOutput = "", this;
2315
- }
2316
- },
2317
- {
2318
- key: "isInternational",
2319
- value: function() {
2320
- return this.state.international;
2321
- }
2322
- },
2323
- {
2324
- key: "getCallingCode",
2325
- value: function() {
2326
- if (this.isInternational()) return this.state.callingCode;
2327
- }
2328
- },
2329
- {
2330
- key: "getCountryCallingCode",
2331
- value: function() {
2332
- return this.getCallingCode();
2333
- }
2334
- },
2335
- {
2336
- key: "getCountry",
2337
- value: function() {
2338
- if (this.state.digits) return this._getCountry();
2339
- }
2340
- },
2341
- {
2342
- key: "_getCountry",
2343
- value: function() {
2344
- var e = this.state.country;
2345
- if (!(Br && e === "001")) return e;
2346
- }
2347
- },
2348
- {
2349
- key: "determineTheCountryIfNeeded",
2350
- value: function() {
2351
- (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
2352
- }
2353
- },
2354
- {
2355
- key: "getFullNumber",
2356
- value: function(e) {
2357
- var t = this;
2358
- if (this.isInternational()) {
2359
- var n = function(e) {
2360
- return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state, { spacing: !!e }) + e;
2361
- }, r = this.state.callingCode;
2362
- return n(r ? e ? `${r} ${e}` : r : `${this.state.getDigitsWithoutInternationalPrefix()}`);
2363
- }
2364
- return e;
2365
- }
2366
- },
2367
- {
2368
- key: "getNonFormattedNationalNumberWithPrefix",
2369
- value: function() {
2370
- var e = this.state, t = e.nationalSignificantNumber, n = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, r = e.nationalPrefix, i = t, a = n || r;
2371
- return a && (i = a + i), i;
2372
- }
2373
- },
2374
- {
2375
- key: "getNonFormattedNumber",
2376
- value: function() {
2377
- var e = this.state.nationalSignificantNumberIsModified;
2378
- return this.getFullNumber(e ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
2379
- }
2380
- },
2381
- {
2382
- key: "getNonFormattedTemplate",
2383
- value: function() {
2384
- var e = this.getNonFormattedNumber();
2385
- if (e) return e.replace(/[\+\d]/g, "x");
2386
- }
2387
- },
2388
- {
2389
- key: "isCountryCallingCodeAmbiguous",
2390
- value: function() {
2391
- var e = this.state.callingCode, t = this.metadata.getCountryCodesForCallingCode(e);
2392
- return t && t.length > 1;
2393
- }
2394
- },
2395
- {
2396
- key: "determineTheCountry",
2397
- value: function() {
2398
- this.state.setCountry(w(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
2399
- nationalNumber: this.state.nationalSignificantNumber,
2400
- metadata: this.metadata
2401
- }));
2402
- }
2403
- },
2404
- {
2405
- key: "getNumberValue",
2406
- value: function() {
2407
- var e = this.state, t = e.digits, n = e.callingCode, r = e.country, i = e.nationalSignificantNumber;
2408
- if (t) {
2409
- if (this.isInternational()) return n ? "+" + n + i : "+" + t;
2410
- if (r || n) return "+" + (r ? this.metadata.countryCallingCode() : n) + i;
2411
- }
2412
- }
2413
- },
2414
- {
2415
- key: "getNumber",
2416
- value: function() {
2417
- var t = this.state, n = t.nationalSignificantNumber, r = t.carrierCode, i = t.callingCode, a = this._getCountry();
2418
- if (n && !(!a && !i)) {
2419
- if (a && a === this.defaultCountry) {
2420
- var o = new e(this.metadata.metadata);
2421
- o.selectNumberingPlan(a);
2422
- var s = o.numberingPlan.callingCode(), c = this.metadata.getCountryCodesForCallingCode(s);
2423
- if (c.length > 1) {
2424
- var l = ue(n, {
2425
- countries: c,
2426
- metadata: this.metadata.metadata
2427
- });
2428
- l && (a = l);
2429
- }
2430
- }
2431
- var u = new A(a || i, n, this.metadata.metadata);
2432
- return r && (u.carrierCode = r), u;
2433
- }
2434
- }
2435
- },
2436
- {
2437
- key: "isPossible",
2438
- value: function() {
2439
- var e = this.getNumber();
2440
- return e ? e.isPossible() : !1;
2441
- }
2442
- },
2443
- {
2444
- key: "isValid",
2445
- value: function() {
2446
- var e = this.getNumber();
2447
- return e ? e.isValid() : !1;
2448
- }
2449
- },
2450
- {
2451
- key: "getNationalNumber",
2452
- value: function() {
2453
- return this.state.nationalSignificantNumber;
2454
- }
2455
- },
2456
- {
2457
- key: "getChars",
2458
- value: function() {
2459
- return (this.state.international ? "+" : "") + this.state.digits;
2460
- }
2461
- },
2462
- {
2463
- key: "getTemplate",
2464
- value: function() {
2465
- return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
2466
- }
2467
- }
2468
- ]);
2469
- }();
2470
- //#endregion
2471
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js
2472
- function Hr() {
2473
- return o(un, arguments);
2474
- }
2475
- //#endregion
2476
- //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/min/exports/AsYouType.js
2477
- function $(e) {
2478
- return Vr.call(this, e, n);
2479
- }
2480
- $.prototype = Object.create(Vr.prototype, {}), $.prototype.constructor = $;
2481
- //#endregion
2482
- export { Hr as n, A as r, $ as t };