intl-tel-input 23.1.0 → 23.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/ar/countries.js +212 -212
- package/build/js/i18n/bg/countries.js +180 -180
- package/build/js/i18n/bn/countries.js +212 -212
- package/build/js/i18n/de/countries.js +155 -155
- package/build/js/i18n/el/countries.js +185 -185
- package/build/js/i18n/en/countries.js +144 -144
- package/build/js/i18n/es/countries.js +151 -151
- package/build/js/i18n/fa/countries.js +252 -0
- package/build/js/i18n/fa/index.js +6 -0
- package/build/js/i18n/fa/interface.js +14 -0
- package/build/js/i18n/fi/countries.js +154 -154
- package/build/js/i18n/fr/countries.js +150 -150
- package/build/js/i18n/hi/countries.js +207 -207
- package/build/js/i18n/hu/countries.js +156 -156
- package/build/js/i18n/id/countries.js +156 -156
- package/build/js/i18n/index.js +1 -0
- package/build/js/i18n/ja/countries.js +215 -215
- package/build/js/i18n/ko/countries.js +216 -216
- package/build/js/i18n/mr/countries.js +210 -210
- package/build/js/i18n/nl/countries.js +147 -147
- package/build/js/i18n/pt/countries.js +158 -158
- package/build/js/i18n/ro/countries.js +151 -151
- package/build/js/i18n/ru/countries.js +181 -181
- package/build/js/i18n/sv/countries.js +149 -149
- package/build/js/i18n/te/countries.js +208 -208
- package/build/js/i18n/th/countries.js +223 -223
- package/build/js/i18n/tr/countries.js +163 -163
- package/build/js/i18n/ur/countries.js +202 -202
- package/build/js/i18n/zh/countries.js +189 -189
- package/build/js/intlTelInput.d.ts +291 -291
- package/build/js/intlTelInput.js +146 -146
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +146 -146
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +145 -145
- package/react/build/IntlTelInput.d.ts +291 -291
- package/react/build/IntlTelInput.js +145 -145
- package/react/build/IntlTelInputWithUtils.cjs +145 -145
- package/react/build/IntlTelInputWithUtils.js +145 -145
package/build/js/intlTelInput.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v23.1.
|
|
2
|
+
* International Telephone Input v23.1.1
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -1120,253 +1120,253 @@ var factoryOutput = (() => {
|
|
|
1120
1120
|
|
|
1121
1121
|
// src/js/i18n/en/countries.ts
|
|
1122
1122
|
var countries_default = {
|
|
1123
|
+
ad: "Andorra",
|
|
1124
|
+
ae: "United Arab Emirates",
|
|
1123
1125
|
af: "Afghanistan",
|
|
1124
|
-
|
|
1126
|
+
ag: "Antigua & Barbuda",
|
|
1127
|
+
ai: "Anguilla",
|
|
1125
1128
|
al: "Albania",
|
|
1126
|
-
|
|
1127
|
-
as: "American Samoa",
|
|
1128
|
-
ad: "Andorra",
|
|
1129
|
+
am: "Armenia",
|
|
1129
1130
|
ao: "Angola",
|
|
1130
|
-
ai: "Anguilla",
|
|
1131
1131
|
aq: "Antarctica",
|
|
1132
|
-
ag: "Antigua & Barbuda",
|
|
1133
1132
|
ar: "Argentina",
|
|
1134
|
-
|
|
1135
|
-
aw: "Aruba",
|
|
1136
|
-
au: "Australia",
|
|
1133
|
+
as: "American Samoa",
|
|
1137
1134
|
at: "Austria",
|
|
1135
|
+
au: "Australia",
|
|
1136
|
+
aw: "Aruba",
|
|
1137
|
+
ax: "\xC5land Islands",
|
|
1138
1138
|
az: "Azerbaijan",
|
|
1139
|
-
|
|
1140
|
-
bh: "Bahrain",
|
|
1141
|
-
bd: "Bangladesh",
|
|
1139
|
+
ba: "Bosnia & Herzegovina",
|
|
1142
1140
|
bb: "Barbados",
|
|
1143
|
-
|
|
1141
|
+
bd: "Bangladesh",
|
|
1144
1142
|
be: "Belgium",
|
|
1145
|
-
|
|
1143
|
+
bf: "Burkina Faso",
|
|
1144
|
+
bg: "Bulgaria",
|
|
1145
|
+
bh: "Bahrain",
|
|
1146
|
+
bi: "Burundi",
|
|
1146
1147
|
bj: "Benin",
|
|
1148
|
+
bl: "St. Barth\xE9lemy",
|
|
1147
1149
|
bm: "Bermuda",
|
|
1148
|
-
|
|
1150
|
+
bn: "Brunei",
|
|
1149
1151
|
bo: "Bolivia",
|
|
1150
|
-
|
|
1151
|
-
bw: "Botswana",
|
|
1152
|
-
bv: "Bouvet Island",
|
|
1152
|
+
bq: "Caribbean Netherlands",
|
|
1153
1153
|
br: "Brazil",
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
kh: "Cambodia",
|
|
1161
|
-
cm: "Cameroon",
|
|
1154
|
+
bs: "Bahamas",
|
|
1155
|
+
bt: "Bhutan",
|
|
1156
|
+
bv: "Bouvet Island",
|
|
1157
|
+
bw: "Botswana",
|
|
1158
|
+
by: "Belarus",
|
|
1159
|
+
bz: "Belize",
|
|
1162
1160
|
ca: "Canada",
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
ky: "Cayman Islands",
|
|
1161
|
+
cc: "Cocos (Keeling) Islands",
|
|
1162
|
+
cd: "Congo - Kinshasa",
|
|
1166
1163
|
cf: "Central African Republic",
|
|
1167
|
-
|
|
1164
|
+
cg: "Congo - Brazzaville",
|
|
1165
|
+
ch: "Switzerland",
|
|
1166
|
+
ci: "C\xF4te d\u2019Ivoire",
|
|
1167
|
+
ck: "Cook Islands",
|
|
1168
1168
|
cl: "Chile",
|
|
1169
|
+
cm: "Cameroon",
|
|
1169
1170
|
cn: "China",
|
|
1170
|
-
cx: "Christmas Island",
|
|
1171
|
-
cc: "Cocos (Keeling) Islands",
|
|
1172
1171
|
co: "Colombia",
|
|
1173
|
-
km: "Comoros",
|
|
1174
|
-
cg: "Congo - Brazzaville",
|
|
1175
|
-
cd: "Congo - Kinshasa",
|
|
1176
|
-
ck: "Cook Islands",
|
|
1177
1172
|
cr: "Costa Rica",
|
|
1178
|
-
ci: "C\xF4te d\u2019Ivoire",
|
|
1179
|
-
hr: "Croatia",
|
|
1180
1173
|
cu: "Cuba",
|
|
1174
|
+
cv: "Cape Verde",
|
|
1181
1175
|
cw: "Cura\xE7ao",
|
|
1176
|
+
cx: "Christmas Island",
|
|
1182
1177
|
cy: "Cyprus",
|
|
1183
1178
|
cz: "Czechia",
|
|
1184
|
-
|
|
1179
|
+
de: "Germany",
|
|
1185
1180
|
dj: "Djibouti",
|
|
1181
|
+
dk: "Denmark",
|
|
1186
1182
|
dm: "Dominica",
|
|
1187
1183
|
do: "Dominican Republic",
|
|
1184
|
+
dz: "Algeria",
|
|
1188
1185
|
ec: "Ecuador",
|
|
1186
|
+
ee: "Estonia",
|
|
1189
1187
|
eg: "Egypt",
|
|
1190
|
-
|
|
1191
|
-
gq: "Equatorial Guinea",
|
|
1188
|
+
eh: "Western Sahara",
|
|
1192
1189
|
er: "Eritrea",
|
|
1193
|
-
|
|
1194
|
-
sz: "Eswatini",
|
|
1190
|
+
es: "Spain",
|
|
1195
1191
|
et: "Ethiopia",
|
|
1192
|
+
fi: "Finland",
|
|
1193
|
+
fj: "Fiji",
|
|
1196
1194
|
fk: "Falkland Islands",
|
|
1195
|
+
fm: "Micronesia",
|
|
1197
1196
|
fo: "Faroe Islands",
|
|
1198
|
-
fj: "Fiji",
|
|
1199
|
-
fi: "Finland",
|
|
1200
1197
|
fr: "France",
|
|
1201
|
-
gf: "French Guiana",
|
|
1202
|
-
pf: "French Polynesia",
|
|
1203
|
-
tf: "French Southern Territories",
|
|
1204
1198
|
ga: "Gabon",
|
|
1205
|
-
|
|
1199
|
+
gb: "United Kingdom",
|
|
1200
|
+
gd: "Grenada",
|
|
1206
1201
|
ge: "Georgia",
|
|
1207
|
-
|
|
1202
|
+
gf: "French Guiana",
|
|
1203
|
+
gg: "Guernsey",
|
|
1208
1204
|
gh: "Ghana",
|
|
1209
1205
|
gi: "Gibraltar",
|
|
1210
|
-
gr: "Greece",
|
|
1211
1206
|
gl: "Greenland",
|
|
1212
|
-
|
|
1207
|
+
gm: "Gambia",
|
|
1208
|
+
gn: "Guinea",
|
|
1213
1209
|
gp: "Guadeloupe",
|
|
1214
|
-
|
|
1210
|
+
gq: "Equatorial Guinea",
|
|
1211
|
+
gr: "Greece",
|
|
1212
|
+
gs: "South Georgia & South Sandwich Islands",
|
|
1215
1213
|
gt: "Guatemala",
|
|
1216
|
-
|
|
1217
|
-
gn: "Guinea",
|
|
1214
|
+
gu: "Guam",
|
|
1218
1215
|
gw: "Guinea-Bissau",
|
|
1219
1216
|
gy: "Guyana",
|
|
1220
|
-
|
|
1217
|
+
hk: "Hong Kong SAR China",
|
|
1221
1218
|
hm: "Heard & McDonald Islands",
|
|
1222
1219
|
hn: "Honduras",
|
|
1223
|
-
|
|
1220
|
+
hr: "Croatia",
|
|
1221
|
+
ht: "Haiti",
|
|
1224
1222
|
hu: "Hungary",
|
|
1225
|
-
is: "Iceland",
|
|
1226
|
-
in: "India",
|
|
1227
1223
|
id: "Indonesia",
|
|
1228
|
-
ir: "Iran",
|
|
1229
|
-
iq: "Iraq",
|
|
1230
1224
|
ie: "Ireland",
|
|
1231
|
-
im: "Isle of Man",
|
|
1232
1225
|
il: "Israel",
|
|
1226
|
+
im: "Isle of Man",
|
|
1227
|
+
in: "India",
|
|
1228
|
+
io: "British Indian Ocean Territory",
|
|
1229
|
+
iq: "Iraq",
|
|
1230
|
+
ir: "Iran",
|
|
1231
|
+
is: "Iceland",
|
|
1233
1232
|
it: "Italy",
|
|
1234
|
-
jm: "Jamaica",
|
|
1235
|
-
jp: "Japan",
|
|
1236
1233
|
je: "Jersey",
|
|
1234
|
+
jm: "Jamaica",
|
|
1237
1235
|
jo: "Jordan",
|
|
1238
|
-
|
|
1236
|
+
jp: "Japan",
|
|
1239
1237
|
ke: "Kenya",
|
|
1238
|
+
kg: "Kyrgyzstan",
|
|
1239
|
+
kh: "Cambodia",
|
|
1240
1240
|
ki: "Kiribati",
|
|
1241
|
+
km: "Comoros",
|
|
1242
|
+
kn: "St. Kitts & Nevis",
|
|
1243
|
+
kp: "North Korea",
|
|
1244
|
+
kr: "South Korea",
|
|
1241
1245
|
kw: "Kuwait",
|
|
1242
|
-
|
|
1246
|
+
ky: "Cayman Islands",
|
|
1247
|
+
kz: "Kazakhstan",
|
|
1243
1248
|
la: "Laos",
|
|
1244
|
-
lv: "Latvia",
|
|
1245
1249
|
lb: "Lebanon",
|
|
1246
|
-
|
|
1247
|
-
lr: "Liberia",
|
|
1248
|
-
ly: "Libya",
|
|
1250
|
+
lc: "St. Lucia",
|
|
1249
1251
|
li: "Liechtenstein",
|
|
1252
|
+
lk: "Sri Lanka",
|
|
1253
|
+
lr: "Liberia",
|
|
1254
|
+
ls: "Lesotho",
|
|
1250
1255
|
lt: "Lithuania",
|
|
1251
1256
|
lu: "Luxembourg",
|
|
1252
|
-
|
|
1257
|
+
lv: "Latvia",
|
|
1258
|
+
ly: "Libya",
|
|
1259
|
+
ma: "Morocco",
|
|
1260
|
+
mc: "Monaco",
|
|
1261
|
+
md: "Moldova",
|
|
1262
|
+
me: "Montenegro",
|
|
1263
|
+
mf: "St. Martin",
|
|
1253
1264
|
mg: "Madagascar",
|
|
1254
|
-
mw: "Malawi",
|
|
1255
|
-
my: "Malaysia",
|
|
1256
|
-
mv: "Maldives",
|
|
1257
|
-
ml: "Mali",
|
|
1258
|
-
mt: "Malta",
|
|
1259
1265
|
mh: "Marshall Islands",
|
|
1266
|
+
mk: "North Macedonia",
|
|
1267
|
+
ml: "Mali",
|
|
1268
|
+
mm: "Myanmar (Burma)",
|
|
1269
|
+
mn: "Mongolia",
|
|
1270
|
+
mo: "Macao SAR China",
|
|
1271
|
+
mp: "Northern Mariana Islands",
|
|
1260
1272
|
mq: "Martinique",
|
|
1261
1273
|
mr: "Mauritania",
|
|
1274
|
+
ms: "Montserrat",
|
|
1275
|
+
mt: "Malta",
|
|
1262
1276
|
mu: "Mauritius",
|
|
1263
|
-
|
|
1277
|
+
mv: "Maldives",
|
|
1278
|
+
mw: "Malawi",
|
|
1264
1279
|
mx: "Mexico",
|
|
1265
|
-
|
|
1266
|
-
md: "Moldova",
|
|
1267
|
-
mc: "Monaco",
|
|
1268
|
-
mn: "Mongolia",
|
|
1269
|
-
me: "Montenegro",
|
|
1270
|
-
ms: "Montserrat",
|
|
1271
|
-
ma: "Morocco",
|
|
1280
|
+
my: "Malaysia",
|
|
1272
1281
|
mz: "Mozambique",
|
|
1273
|
-
mm: "Myanmar (Burma)",
|
|
1274
1282
|
na: "Namibia",
|
|
1275
|
-
nr: "Nauru",
|
|
1276
|
-
np: "Nepal",
|
|
1277
|
-
nl: "Netherlands",
|
|
1278
1283
|
nc: "New Caledonia",
|
|
1279
|
-
nz: "New Zealand",
|
|
1280
|
-
ni: "Nicaragua",
|
|
1281
1284
|
ne: "Niger",
|
|
1282
|
-
ng: "Nigeria",
|
|
1283
|
-
nu: "Niue",
|
|
1284
1285
|
nf: "Norfolk Island",
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1286
|
+
ng: "Nigeria",
|
|
1287
|
+
ni: "Nicaragua",
|
|
1288
|
+
nl: "Netherlands",
|
|
1288
1289
|
no: "Norway",
|
|
1290
|
+
np: "Nepal",
|
|
1291
|
+
nr: "Nauru",
|
|
1292
|
+
nu: "Niue",
|
|
1293
|
+
nz: "New Zealand",
|
|
1289
1294
|
om: "Oman",
|
|
1290
|
-
pk: "Pakistan",
|
|
1291
|
-
pw: "Palau",
|
|
1292
|
-
ps: "Palestinian Territories",
|
|
1293
1295
|
pa: "Panama",
|
|
1294
|
-
pg: "Papua New Guinea",
|
|
1295
|
-
py: "Paraguay",
|
|
1296
1296
|
pe: "Peru",
|
|
1297
|
+
pf: "French Polynesia",
|
|
1298
|
+
pg: "Papua New Guinea",
|
|
1297
1299
|
ph: "Philippines",
|
|
1298
|
-
|
|
1300
|
+
pk: "Pakistan",
|
|
1299
1301
|
pl: "Poland",
|
|
1300
|
-
|
|
1302
|
+
pm: "St. Pierre & Miquelon",
|
|
1303
|
+
pn: "Pitcairn Islands",
|
|
1301
1304
|
pr: "Puerto Rico",
|
|
1305
|
+
ps: "Palestinian Territories",
|
|
1306
|
+
pt: "Portugal",
|
|
1307
|
+
pw: "Palau",
|
|
1308
|
+
py: "Paraguay",
|
|
1302
1309
|
qa: "Qatar",
|
|
1303
1310
|
re: "R\xE9union",
|
|
1304
1311
|
ro: "Romania",
|
|
1312
|
+
rs: "Serbia",
|
|
1305
1313
|
ru: "Russia",
|
|
1306
1314
|
rw: "Rwanda",
|
|
1307
|
-
ws: "Samoa",
|
|
1308
|
-
sm: "San Marino",
|
|
1309
|
-
st: "S\xE3o Tom\xE9 & Pr\xEDncipe",
|
|
1310
1315
|
sa: "Saudi Arabia",
|
|
1311
|
-
|
|
1312
|
-
rs: "Serbia",
|
|
1316
|
+
sb: "Solomon Islands",
|
|
1313
1317
|
sc: "Seychelles",
|
|
1314
|
-
|
|
1318
|
+
sd: "Sudan",
|
|
1319
|
+
se: "Sweden",
|
|
1315
1320
|
sg: "Singapore",
|
|
1316
|
-
|
|
1317
|
-
sk: "Slovakia",
|
|
1321
|
+
sh: "St. Helena",
|
|
1318
1322
|
si: "Slovenia",
|
|
1319
|
-
|
|
1323
|
+
sj: "Svalbard & Jan Mayen",
|
|
1324
|
+
sk: "Slovakia",
|
|
1325
|
+
sl: "Sierra Leone",
|
|
1326
|
+
sm: "San Marino",
|
|
1327
|
+
sn: "Senegal",
|
|
1320
1328
|
so: "Somalia",
|
|
1321
|
-
za: "South Africa",
|
|
1322
|
-
gs: "South Georgia & South Sandwich Islands",
|
|
1323
|
-
kr: "South Korea",
|
|
1324
|
-
ss: "South Sudan",
|
|
1325
|
-
es: "Spain",
|
|
1326
|
-
lk: "Sri Lanka",
|
|
1327
|
-
bl: "St. Barth\xE9lemy",
|
|
1328
|
-
sh: "St. Helena",
|
|
1329
|
-
kn: "St. Kitts & Nevis",
|
|
1330
|
-
lc: "St. Lucia",
|
|
1331
|
-
mf: "St. Martin",
|
|
1332
|
-
pm: "St. Pierre & Miquelon",
|
|
1333
|
-
vc: "St. Vincent & Grenadines",
|
|
1334
|
-
sd: "Sudan",
|
|
1335
1329
|
sr: "Suriname",
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1330
|
+
ss: "South Sudan",
|
|
1331
|
+
st: "S\xE3o Tom\xE9 & Pr\xEDncipe",
|
|
1332
|
+
sv: "El Salvador",
|
|
1333
|
+
sx: "Sint Maarten",
|
|
1339
1334
|
sy: "Syria",
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
tl: "Timor-Leste",
|
|
1335
|
+
sz: "Eswatini",
|
|
1336
|
+
tc: "Turks & Caicos Islands",
|
|
1337
|
+
td: "Chad",
|
|
1338
|
+
tf: "French Southern Territories",
|
|
1345
1339
|
tg: "Togo",
|
|
1340
|
+
th: "Thailand",
|
|
1341
|
+
tj: "Tajikistan",
|
|
1346
1342
|
tk: "Tokelau",
|
|
1347
|
-
|
|
1348
|
-
|
|
1343
|
+
tl: "Timor-Leste",
|
|
1344
|
+
tm: "Turkmenistan",
|
|
1349
1345
|
tn: "Tunisia",
|
|
1346
|
+
to: "Tonga",
|
|
1350
1347
|
tr: "Turkey",
|
|
1351
|
-
|
|
1352
|
-
tc: "Turks & Caicos Islands",
|
|
1348
|
+
tt: "Trinidad & Tobago",
|
|
1353
1349
|
tv: "Tuvalu",
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
ug: "Uganda",
|
|
1350
|
+
tw: "Taiwan",
|
|
1351
|
+
tz: "Tanzania",
|
|
1357
1352
|
ua: "Ukraine",
|
|
1358
|
-
|
|
1359
|
-
|
|
1353
|
+
ug: "Uganda",
|
|
1354
|
+
um: "U.S. Outlying Islands",
|
|
1360
1355
|
us: "United States",
|
|
1361
1356
|
uy: "Uruguay",
|
|
1362
1357
|
uz: "Uzbekistan",
|
|
1363
|
-
vu: "Vanuatu",
|
|
1364
1358
|
va: "Vatican City",
|
|
1359
|
+
vc: "St. Vincent & Grenadines",
|
|
1365
1360
|
ve: "Venezuela",
|
|
1361
|
+
vg: "British Virgin Islands",
|
|
1362
|
+
vi: "U.S. Virgin Islands",
|
|
1366
1363
|
vn: "Vietnam",
|
|
1364
|
+
vu: "Vanuatu",
|
|
1367
1365
|
wf: "Wallis & Futuna",
|
|
1368
|
-
|
|
1366
|
+
ws: "Samoa",
|
|
1369
1367
|
ye: "Yemen",
|
|
1368
|
+
yt: "Mayotte",
|
|
1369
|
+
za: "South Africa",
|
|
1370
1370
|
zm: "Zambia",
|
|
1371
1371
|
zw: "Zimbabwe"
|
|
1372
1372
|
};
|
|
@@ -2804,7 +2804,7 @@ var factoryOutput = (() => {
|
|
|
2804
2804
|
//* A map from instance ID to instance object.
|
|
2805
2805
|
instances: {},
|
|
2806
2806
|
loadUtils,
|
|
2807
|
-
version: "23.1.
|
|
2807
|
+
version: "23.1.1"
|
|
2808
2808
|
}
|
|
2809
2809
|
);
|
|
2810
2810
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v23.1.
|
|
2
|
+
* International Telephone Input v23.1.1
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
}(() => {
|
|
15
15
|
|
|
16
|
-
var factoryOutput=(()=>{var I=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var P=Object.prototype.hasOwnProperty;var H=(l,t)=>{for(var e in t)I(l,e,{get:t[e],enumerable:!0})},O=(l,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of x(t))!P.call(l,n)&&n!==e&&I(l,n,{get:()=>t[n],enumerable:!(i=M(t,n))||i.enumerable});return l};var R=l=>O(I({},"__esModule",{value:!0}),l);var U={};H(U,{Iti:()=>_,default:()=>K});var T=[["af","93"],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"]],["cc","61",1,["89162"]],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"]],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"]],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"]],["jo","962"],["kz","7",1,["33","7"]],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"]],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0],["ro","40"],["ru","7",0],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["ug","256"],["ua","380"],["ae","971"],["gb","44",0],["us","1",0],["uy","598"],["vi","1",24,["340"]],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"]],["ye","967"],["zm","260"],["zw","263"],["ax","358",1,["18"]]],E=[];for(let l=0;l<T.length;l++){let t=T[l];E[l]={name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,nodeById:{}}}var C=E;var D={af:"Afghanistan",ax:"\xC5land Islands",al:"Albania",dz:"Algeria",as:"American Samoa",ad:"Andorra",ao:"Angola",ai:"Anguilla",aq:"Antarctica",ag:"Antigua & Barbuda",ar:"Argentina",am:"Armenia",aw:"Aruba",au:"Australia",at:"Austria",az:"Azerbaijan",bs:"Bahamas",bh:"Bahrain",bd:"Bangladesh",bb:"Barbados",by:"Belarus",be:"Belgium",bz:"Belize",bj:"Benin",bm:"Bermuda",bt:"Bhutan",bo:"Bolivia",ba:"Bosnia & Herzegovina",bw:"Botswana",bv:"Bouvet Island",br:"Brazil",io:"British Indian Ocean Territory",vg:"British Virgin Islands",bn:"Brunei",bg:"Bulgaria",bf:"Burkina Faso",bi:"Burundi",kh:"Cambodia",cm:"Cameroon",ca:"Canada",cv:"Cape Verde",bq:"Caribbean Netherlands",ky:"Cayman Islands",cf:"Central African Republic",td:"Chad",cl:"Chile",cn:"China",cx:"Christmas Island",cc:"Cocos (Keeling) Islands",co:"Colombia",km:"Comoros",cg:"Congo - Brazzaville",cd:"Congo - Kinshasa",ck:"Cook Islands",cr:"Costa Rica",ci:"C\xF4te d\u2019Ivoire",hr:"Croatia",cu:"Cuba",cw:"Cura\xE7ao",cy:"Cyprus",cz:"Czechia",dk:"Denmark",dj:"Djibouti",dm:"Dominica",do:"Dominican Republic",ec:"Ecuador",eg:"Egypt",sv:"El Salvador",gq:"Equatorial Guinea",er:"Eritrea",ee:"Estonia",sz:"Eswatini",et:"Ethiopia",fk:"Falkland Islands",fo:"Faroe Islands",fj:"Fiji",fi:"Finland",fr:"France",gf:"French Guiana",pf:"French Polynesia",tf:"French Southern Territories",ga:"Gabon",gm:"Gambia",ge:"Georgia",de:"Germany",gh:"Ghana",gi:"Gibraltar",gr:"Greece",gl:"Greenland",gd:"Grenada",gp:"Guadeloupe",gu:"Guam",gt:"Guatemala",gg:"Guernsey",gn:"Guinea",gw:"Guinea-Bissau",gy:"Guyana",ht:"Haiti",hm:"Heard & McDonald Islands",hn:"Honduras",hk:"Hong Kong SAR China",hu:"Hungary",is:"Iceland",in:"India",id:"Indonesia",ir:"Iran",iq:"Iraq",ie:"Ireland",im:"Isle of Man",il:"Israel",it:"Italy",jm:"Jamaica",jp:"Japan",je:"Jersey",jo:"Jordan",kz:"Kazakhstan",ke:"Kenya",ki:"Kiribati",kw:"Kuwait",kg:"Kyrgyzstan",la:"Laos",lv:"Latvia",lb:"Lebanon",ls:"Lesotho",lr:"Liberia",ly:"Libya",li:"Liechtenstein",lt:"Lithuania",lu:"Luxembourg",mo:"Macao SAR China",mg:"Madagascar",mw:"Malawi",my:"Malaysia",mv:"Maldives",ml:"Mali",mt:"Malta",mh:"Marshall Islands",mq:"Martinique",mr:"Mauritania",mu:"Mauritius",yt:"Mayotte",mx:"Mexico",fm:"Micronesia",md:"Moldova",mc:"Monaco",mn:"Mongolia",me:"Montenegro",ms:"Montserrat",ma:"Morocco",mz:"Mozambique",mm:"Myanmar (Burma)",na:"Namibia",nr:"Nauru",np:"Nepal",nl:"Netherlands",nc:"New Caledonia",nz:"New Zealand",ni:"Nicaragua",ne:"Niger",ng:"Nigeria",nu:"Niue",nf:"Norfolk Island",kp:"North Korea",mk:"North Macedonia",mp:"Northern Mariana Islands",no:"Norway",om:"Oman",pk:"Pakistan",pw:"Palau",ps:"Palestinian Territories",pa:"Panama",pg:"Papua New Guinea",py:"Paraguay",pe:"Peru",ph:"Philippines",pn:"Pitcairn Islands",pl:"Poland",pt:"Portugal",pr:"Puerto Rico",qa:"Qatar",re:"R\xE9union",ro:"Romania",ru:"Russia",rw:"Rwanda",ws:"Samoa",sm:"San Marino",st:"S\xE3o Tom\xE9 & Pr\xEDncipe",sa:"Saudi Arabia",sn:"Senegal",rs:"Serbia",sc:"Seychelles",sl:"Sierra Leone",sg:"Singapore",sx:"Sint Maarten",sk:"Slovakia",si:"Slovenia",sb:"Solomon Islands",so:"Somalia",za:"South Africa",gs:"South Georgia & South Sandwich Islands",kr:"South Korea",ss:"South Sudan",es:"Spain",lk:"Sri Lanka",bl:"St. Barth\xE9lemy",sh:"St. Helena",kn:"St. Kitts & Nevis",lc:"St. Lucia",mf:"St. Martin",pm:"St. Pierre & Miquelon",vc:"St. Vincent & Grenadines",sd:"Sudan",sr:"Suriname",sj:"Svalbard & Jan Mayen",se:"Sweden",ch:"Switzerland",sy:"Syria",tw:"Taiwan",tj:"Tajikistan",tz:"Tanzania",th:"Thailand",tl:"Timor-Leste",tg:"Togo",tk:"Tokelau",to:"Tonga",tt:"Trinidad & Tobago",tn:"Tunisia",tr:"Turkey",tm:"Turkmenistan",tc:"Turks & Caicos Islands",tv:"Tuvalu",um:"U.S. Outlying Islands",vi:"U.S. Virgin Islands",ug:"Uganda",ua:"Ukraine",ae:"United Arab Emirates",gb:"United Kingdom",us:"United States",uy:"Uruguay",uz:"Uzbekistan",vu:"Vanuatu",va:"Vatican City",ve:"Venezuela",vn:"Vietnam",wf:"Wallis & Futuna",eh:"Western Sahara",ye:"Yemen",zm:"Zambia",zw:"Zimbabwe"};var A={selectedCountryAriaLabel:"Selected country",noCountrySelected:"No country selected",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"};var w={...D,...A};for(let l=0;l<C.length;l++)C[l].name=w[C[l].iso2];var z=0,S={allowDropdown:!0,autoPlaceholder:"polite",containerClass:"",countryOrder:null,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:!1,utilsScript:"",validationNumberType:"MOBILE"},j=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],v=l=>l.replace(/\D/g,""),N=(l="")=>l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),k=l=>{let t=v(l);if(t.charAt(0)==="1"){let e=t.substr(1,3);return j.indexOf(e)!==-1}return!1},F=(l,t,e,i)=>{if(e===0&&!i)return 0;let n=0;for(let s=0;s<t.length;s++){if(/[+0-9]/.test(t[s])&&n++,n===l&&!i)return s+1;if(i&&n===l+1)return s}return t.length},p=(l,t,e)=>{let i=document.createElement(l);return t&&Object.entries(t).forEach(([n,s])=>i.setAttribute(n,s)),e&&e.appendChild(i),i},f=l=>{let{instances:t}=a;Object.values(t).forEach(e=>e[l]())},_=class{id;promise;telInput;highlightedItem;options;hadInitialPlaceholder;isRTL;isAndroid;selectedCountryData;countries;dialCodeMaxLen;dialCodeToIso2Map;dialCodes;countryContainer;selectedCountry;selectedCountryInner;selectedCountryA11yText;selectedDialCode;dropdownArrow;dropdownContent;searchInput;searchResultsA11yText;countryList;dropdown;hiddenInput;hiddenInputCountry;maxCoreNumberLength;defaultCountry;_a14;_a9;_a10;_a11;_a12;_handleKeydownEvent;_a4;_a0;_a1;_a2;_a3;_a7;resolveAutoCountryPromise;rejectAutoCountryPromise;resolveUtilsScriptPromise;rejectUtilsScriptPromise;constructor(t,e={}){this.id=z++,this.a=t,this.c=null,this.d=Object.assign({},S,e),this.e=!!t.getAttribute("placeholder")}_init(){this.d.useFullscreenPopup&&(this.d.fixDropdownWidth=!1),this.d.separateDialCode&&(this.d.allowDropdown=!0,this.d.nationalMode=!1),!this.d.showFlags&&!this.d.separateDialCode&&(this.d.nationalMode=!1),this.d.useFullscreenPopup&&!this.d.dropdownContainer&&(this.d.dropdownContainer=document.body),this.isAndroid=typeof navigator<"u"?/Android/i.test(navigator.userAgent):!1,this.isRTL=!!this.a.closest("[dir=rtl]"),this.d.i18n={...w,...this.d.i18n};let t=new Promise((i,n)=>{this.h=i,this.i=n}),e=new Promise((i,n)=>{this.i0=i,this.i1=n});this.promise=Promise.all([t,e]),this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}_b(){this._d(),this._d2(),this._d0(),this.d.countryOrder&&(this.d.countryOrder=this.d.countryOrder.map(t=>t.toLowerCase())),this._sortCountries()}_sortCountries(){this.p.sort((t,e)=>{let{countryOrder:i}=this.d;if(i){let n=i.indexOf(t.iso2),s=i.indexOf(e.iso2),o=n>-1,r=s>-1;if(o||r)return o&&r?n-s:o?-1:1}return t.name<e.name?-1:t.name>e.name?1:0})}_c(t,e,i){e.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=e.length),this.q.hasOwnProperty(e)||(this.q[e]=[]);for(let s=0;s<this.q[e].length;s++)if(this.q[e][s]===t)return;let n=i!==void 0?i:this.q[e].length;this.q[e][n]=t}_d(){let{onlyCountries:t,excludeCountries:e}=this.d;if(t.length){let i=t.map(n=>n.toLowerCase());this.p=C.filter(n=>i.indexOf(n.iso2)>-1)}else if(e.length){let i=e.map(n=>n.toLowerCase());this.p=C.filter(n=>i.indexOf(n.iso2)===-1)}else this.p=C}_d0(){for(let t=0;t<this.p.length;t++){let e=this.p[t].iso2.toLowerCase();this.d.i18n.hasOwnProperty(e)&&(this.p[t].name=this.d.i18n[e])}}_d2(){this.dialCodes={},this.dialCodeMaxLen=0,this.q={};for(let t=0;t<this.p.length;t++){let e=this.p[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._c(e.iso2,e.dialCode,e.priority)}for(let t=0;t<this.p.length;t++){let e=this.p[t];if(e.areaCodes){let i=this.q[e.dialCode][0];for(let n=0;n<e.areaCodes.length;n++){let s=e.areaCodes[n];for(let o=1;o<s.length;o++){let r=e.dialCode+s.substr(0,o);this._c(i,r),this._c(e.iso2,r)}this._c(e.iso2,e.dialCode+s)}}}}_f(){this.a.classList.add("iti__tel-input"),!this.a.hasAttribute("autocomplete")&&!(this.a.form&&this.a.form.hasAttribute("autocomplete"))&&this.a.setAttribute("autocomplete","off");let{allowDropdown:t,separateDialCode:e,showFlags:i,containerClass:n,hiddenInput:s,dropdownContainer:o,fixDropdownWidth:r,useFullscreenPopup:u,i18n:d}=this.d,c="iti";t&&(c+=" iti--allow-dropdown"),i&&(c+=" iti--show-flags"),n&&(c+=` ${n}`),u||(c+=" iti--inline-dropdown");let h=p("div",{class:c});if(this.a.parentNode?.insertBefore(h,this.a),t||i){this.k=p("div",{class:"iti__country-container"},h),this.selectedCountry=p("button",{type:"button",class:"iti__selected-country",...t&&{"aria-expanded":"false","aria-label":this.d.i18n.selectedCountryAriaLabel,"aria-haspopup":"true","aria-controls":`iti-${this.id}__dropdown-content`,role:"combobox"}},this.k);let g=p("div",{class:"iti__selected-country-primary"},this.selectedCountry);if(this.l=p("div",null,g),this.selectedCountryA11yText=p("span",{class:"iti__a11y-text"},this.l),this.a.disabled?this.selectedCountry.setAttribute("aria-disabled","true"):this.selectedCountry.setAttribute("tabindex","0"),t&&(this.u=p("div",{class:"iti__arrow","aria-hidden":"true"},g)),e&&(this.t=p("div",{class:"iti__selected-dial-code"},this.selectedCountry)),t){let m=r?"":"iti--flexible-dropdown-width";if(this.dropdownContent=p("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content iti__hide ${m}`}),this.searchInput=p("input",{type:"text",class:"iti__search-input",placeholder:d.searchPlaceholder,role:"combobox","aria-expanded":"true","aria-label":d.searchPlaceholder,"aria-controls":`iti-${this.id}__country-listbox`,"aria-autocomplete":"list",autocomplete:"off"},this.dropdownContent),this.searchResultsA11yText=p("span",{class:"iti__a11y-text"},this.dropdownContent),this.countryList=p("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox","aria-label":d.countryListAriaLabel},this.dropdownContent),this._g(this.p,"iti__standard"),this._p4(),o){let y="iti iti--container";u?y+=" iti--fullscreen-popup":y+=" iti--inline-dropdown",this.dropdown=p("div",{class:y}),this.dropdown.appendChild(this.dropdownContent)}else this.k.appendChild(this.dropdownContent)}}if(h.appendChild(this.a),s){let g=this.a.getAttribute("name")||"",m=s(g);m.phone&&(this.hiddenInput=p("input",{type:"hidden",name:m.phone}),h.appendChild(this.hiddenInput)),m.country&&(this.hiddenInputCountry=p("input",{type:"hidden",name:m.country}),h.appendChild(this.hiddenInputCountry))}}_g(t,e){for(let i=0;i<t.length;i++){let n=t[i],s=p("li",{id:`iti-${this.id}__item-${n.iso2}`,class:`iti__country ${e}`,tabindex:"-1",role:"option","data-dial-code":n.dialCode,"data-country-code":n.iso2,"aria-selected":"false"},this.countryList);n.nodeById[this.id]=s;let o="";this.d.showFlags&&(o+=`<div class='iti__flag-box'><div class='iti__flag iti__${n.iso2}'></div></div>`),o+=`<span class='iti__country-name'>${n.name}</span>`,o+=`<span class='iti__dial-code'>+${n.dialCode}</span>`,s.insertAdjacentHTML("beforeend",o)}}_h(t=!1){let e=this.a.getAttribute("value"),i=this.a.value,s=e&&e.charAt(0)==="+"&&(!i||i.charAt(0)!=="+")?e:i,o=this._5(s),r=k(s),{initialCountry:u,geoIpLookup:d}=this.d,c=u==="auto"&&d;if(o&&!r)this._v(s);else if(!c||t){let h=u?u.toLowerCase():"";h&&this._y(h,!0)?this._z(h):o&&r?this._z("us"):this._z()}s&&this._u(s)}_i(){this._j(),this.d.allowDropdown&&this._i2(),(this.hiddenInput||this.hiddenInputCountry)&&this.a.form&&this._i0()}_i0(){this._a14=()=>{this.hiddenInput&&(this.hiddenInput.value=this.getNumber()),this.hiddenInputCountry&&(this.hiddenInputCountry.value=this.getSelectedCountryData().iso2||"")},this.a.form?.addEventListener("submit",this._a14)}_i2(){this._a9=e=>{this.dropdownContent.classList.contains("iti__hide")?this.a.focus():e.preventDefault()};let t=this.a.closest("label");t&&t.addEventListener("click",this._a9),this._a10=()=>{this.dropdownContent.classList.contains("iti__hide")&&!this.a.disabled&&!this.a.readOnly&&this._n()},this.selectedCountry.addEventListener("click",this._a10),this._a11=e=>{this.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this._n()),e.key==="Tab"&&this._2()},this.k.addEventListener("keydown",this._a11)}_i3(){let{utilsScript:t,initialCountry:e,geoIpLookup:i}=this.d;t&&!a.utils?a.documentReady()?a.loadUtils(t):window.addEventListener("load",()=>{a.loadUtils(t)}):this.i0(),e==="auto"&&i&&!this.s.iso2?this._i4():this.h()}_i4(){a.autoCountry?this.handleAutoCountry():a.startedLoadingAutoCountry||(a.startedLoadingAutoCountry=!0,typeof this.d.geoIpLookup=="function"&&this.d.geoIpLookup((t="")=>{let e=t.toLowerCase();e&&this._y(e,!0)?(a.autoCountry=e,setTimeout(()=>f("handleAutoCountry"))):(this._h(!0),f("rejectAutoCountryPromise"))},()=>{this._h(!0),f("rejectAutoCountryPromise")}))}_j(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,formatOnDisplay:n}=this.d,s=!1,o=()=>{this._n(),this.searchInput.value="+",this._p3("",!0)};this._a12=r=>{if(this.isAndroid&&r?.data==="+"&&i){let h=this.a.selectionStart||0,g=this.a.value.substring(0,h-1),m=this.a.value.substring(h);this.a.value=g+m,o();return}this._v(this.a.value)&&this._8();let u=r?.data&&/[^+0-9]/.test(r.data),d=r?.inputType==="insertFromPaste"&&this.a.value;u||d&&!t?s=!0:/[^+0-9]/.test(this.a.value)||(s=!1);let c=r?.detail&&r.detail.isSetNumber&&!n;if(e&&!s&&!c){let h=this.a.selectionStart||0,m=this.a.value.substring(0,h).replace(/[^+0-9]/g,"").length,y=r?.inputType==="deleteContentForward",b=this._9(),L=F(m,b,h,y);this.a.value=b,this.a.setSelectionRange(L,L)}},this.a.addEventListener("input",this._a12),(t||i)&&(this._handleKeydownEvent=r=>{if(r.key&&r.key.length===1&&!r.altKey&&!r.ctrlKey&&!r.metaKey){if(i&&r.key==="+"){r.preventDefault(),o();return}if(t){let u=this.a.selectionStart===0&&r.key==="+",d=/^[0-9]$/.test(r.key),c=u||d,h=this._6(),g=a.utils.getCoreNumber(h,this.s.iso2),m=this.maxCoreNumberLength&&g.length>=this.maxCoreNumberLength,y=this.a.value.substring(this.a.selectionStart,this.a.selectionEnd),b=/\d/.test(y);(!c||m&&!b)&&r.preventDefault()}}},this.a.addEventListener("keydown",this._handleKeydownEvent))}_j2(t){let e=parseInt(this.a.getAttribute("maxlength")||"",10);return e&&t.length>e?t.substr(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.a.dispatchEvent(i)}_n(){let{fixDropdownWidth:t}=this.d;t&&(this.dropdownContent.style.width=`${this.a.offsetWidth}px`),this.dropdownContent.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._o();let e=this.countryList.firstElementChild;e&&(this._x(e,!1),this.countryList.scrollTop=0),this.searchInput.focus(),this._p(),this.u.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}_o(){if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.d.useFullscreenPopup){let t=this.a.getBoundingClientRect(),e=this.a.offsetHeight;this.d.dropdownContainer&&(this.dropdown.style.top=`${t.top+e}px`,this.dropdown.style.left=`${t.left}px`,this._a4=()=>this._2(),window.addEventListener("scroll",this._a4))}}_p(){this._a0=n=>{let s=n.target?.closest(".iti__country");s&&this._x(s,!1)},this.countryList.addEventListener("mouseover",this._a0),this._a1=n=>{let s=n.target?.closest(".iti__country");s&&this._1(s)},this.countryList.addEventListener("click",this._a1);let t=!0;this._a2=()=>{t||this._2(),t=!1},document.documentElement.addEventListener("click",this._a2),this._a3=n=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(n.key)&&(n.preventDefault(),n.stopPropagation(),n.key==="ArrowUp"||n.key==="ArrowDown"?this._q(n.key):n.key==="Enter"?this._r():n.key==="Escape"&&this._2())},document.addEventListener("keydown",this._a3);let e=()=>{let n=this.searchInput.value.trim();n?this._p3(n):this._p3("",!0)},i=null;this._a7=()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)},this.searchInput.addEventListener("input",this._a7),this.searchInput.addEventListener("click",n=>n.stopPropagation())}_p3(t,e=!1){let i=!0;this.countryList.innerHTML="";let n=N(t);for(let s=0;s<this.p.length;s++){let o=this.p[s],r=N(o.name),u=`+${o.dialCode}`;if(e||r.includes(n)||u.includes(n)||o.iso2.includes(n)){let d=o.nodeById[this.id];d&&this.countryList.appendChild(d),i&&(this._x(d,!1),i=!1)}}i&&this._x(null,!1),this.countryList.scrollTop=0,this._p4()}_p4(){let{i18n:t}=this.d,e=this.countryList.childElementCount,i;e===0?i=t.zeroSearchResults:e===1?i=t.oneSearchResult:i=t.multipleSearchResults.replace("${count}",e.toString()),this.searchResultsA11yText.textContent=i}_q(t){let e=t==="ArrowUp"?this.c?.previousElementSibling:this.c?.nextElementSibling;!e&&this.countryList.childElementCount>1&&(e=t==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),e&&(this._3(e),this._x(e,!1))}_r(){this.c&&this._1(this.c)}_u(t){let e=t;if(this.d.formatOnDisplay&&a.utils&&this.s){let i=this.d.nationalMode||e.charAt(0)!=="+"&&!this.d.separateDialCode,{NATIONAL:n,INTERNATIONAL:s}=a.utils.numberFormat,o=i?n:s;e=a.utils.formatNumber(e,this.s.iso2,o)}e=this._7(e),this.a.value=e}_v(t){let e=t.indexOf("+"),i=e?t.substring(e):t,n=this.s.dialCode;i&&n==="1"&&i.charAt(0)!=="+"&&(i.charAt(0)!=="1"&&(i=`1${i}`),i=`+${i}`),this.d.separateDialCode&&n&&i.charAt(0)!=="+"&&(i=`+${n}${i}`);let o=this._5(i,!0),r=v(i),u=null;if(o){let d=this.q[v(o)],c=d.indexOf(this.s.iso2)!==-1&&r.length<=o.length-1;if(!(n==="1"&&k(r))&&!c){for(let g=0;g<d.length;g++)if(d[g]){u=d[g];break}}}else i.charAt(0)==="+"&&r.length?u="":(!i||i==="+")&&!this.s.iso2&&(u=this.j);return u!==null?this._z(u):!1}_x(t,e){let i=this.c;if(i&&(i.classList.remove("iti__highlight"),i.setAttribute("aria-selected","false")),this.c=t,this.c){this.c.classList.add("iti__highlight"),this.c.setAttribute("aria-selected","true");let n=this.c.getAttribute("id")||"";this.selectedCountry.setAttribute("aria-activedescendant",n),this.searchInput.setAttribute("aria-activedescendant",n)}e&&this.c.focus()}_y(t,e){for(let i=0;i<this.p.length;i++)if(this.p[i].iso2===t)return this.p[i];if(e)return null;throw new Error(`No country data for '${t}'`)}_z(t){let{separateDialCode:e,showFlags:i,i18n:n}=this.d,s=this.s.iso2?this.s:{};if(this.s=t?this._y(t,!1)||{}:{},this.s.iso2&&(this.j=this.s.iso2),this.l){let o="",r="";t&&i?(o=`iti__flag iti__${t}`,r=`${this.s.name} +${this.s.dialCode}`):(o="iti__flag iti__globe",r=n.noCountrySelected),this.l.className=o,this.selectedCountryA11yText.textContent=r}if(this._z3(t,e),e){let o=this.s.dialCode?`+${this.s.dialCode}`:"";this.t.innerHTML=o;let u=(this.selectedCountry.offsetWidth||this._z2())+8;this.isRTL?this.a.style.paddingRight=`${u}px`:this.a.style.paddingLeft=`${u}px`}return this._0(),this._updateMaxLength(),s.iso2!==t}_updateMaxLength(){let{strictMode:t,placeholderNumberType:e,validationNumberType:i}=this.d;if(t&&a.utils)if(this.s.iso2){let n=a.utils.numberType[e],s=a.utils.getExampleNumber(this.s.iso2,!1,n,!0),o=s;for(;a.utils.isPossibleNumber(s,this.s.iso2,i);)o=s,s+="0";let r=a.utils.getCoreNumber(o,this.s.iso2);this.maxCoreNumberLength=r.length}else this.maxCoreNumberLength=null}_z3(t=null,e){if(!this.selectedCountry)return;let i;t&&!e?i=`${this.s.name}: +${this.s.dialCode}`:t?i=this.s.name:i="Unknown",this.selectedCountry.setAttribute("title",i)}_z2(){if(this.a.parentNode){let t=this.a.parentNode.cloneNode(!1);t.style.visibility="hidden",document.body.appendChild(t);let e=this.k.cloneNode();t.appendChild(e);let i=this.selectedCountry.cloneNode(!0);e.appendChild(i);let n=i.offsetWidth;return document.body.removeChild(t),n}return 0}_0(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:n}=this.d,s=t==="aggressive"||!this.e&&t==="polite";if(a.utils&&s){let o=a.utils.numberType[e],r=this.s.iso2?a.utils.getExampleNumber(this.s.iso2,i,o):"";r=this._7(r),typeof n=="function"&&(r=n(r,this.s)),this.a.setAttribute("placeholder",r)}}_1(t){let e=this._z(t.getAttribute("data-country-code"));this._2(),this._4(t.getAttribute("data-dial-code")),this.a.focus(),e&&this._8()}_2(){this.dropdownContent.classList.add("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","false"),this.selectedCountry.removeAttribute("aria-activedescendant"),this.c&&this.c.setAttribute("aria-selected","false"),this.searchInput.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),this.searchInput.removeEventListener("input",this._a7),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.d.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}_3(t){let e=this.countryList,i=document.documentElement.scrollTop,n=e.offsetHeight,s=e.getBoundingClientRect().top+i,o=s+n,r=t.offsetHeight,u=t.getBoundingClientRect().top+i,d=u+r,c=u-s+e.scrollTop;if(u<s)e.scrollTop=c;else if(d>o){let h=n-r;e.scrollTop=c-h}}_4(t){let e=this.a.value,i=`+${t}`,n;if(e.charAt(0)==="+"){let s=this._5(e);s?n=e.replace(s,i):n=i,this.a.value=n}}_5(t,e){let i="";if(t.charAt(0)==="+"){let n="";for(let s=0;s<t.length;s++){let o=t.charAt(s);if(!isNaN(parseInt(o,10))){if(n+=o,e)this.q[n]&&(i=t.substr(0,s+1));else if(this.dialCodes[n]){i=t.substr(0,s+1);break}if(n.length===this.dialCodeMaxLen)break}}}return i}_6(){let t=this.a.value.trim(),{dialCode:e}=this.s,i,n=v(t);return this.d.separateDialCode&&t.charAt(0)!=="+"&&e&&n?i=`+${e}`:i="",i+t}_7(t){let e=t;if(this.d.separateDialCode){let i=this._5(e);if(i){i=`+${this.s.dialCode}`;let n=e[i.length]===" "||e[i.length]==="-"?i.length+1:i.length;e=e.substr(n)}}return this._j2(e)}_8(){this._trigger("countrychange")}_9(){let t=this._6(),e=a.utils?a.utils.formatNumberAsYouType(t,this.s.iso2):t,{dialCode:i}=this.s;return this.d.separateDialCode&&this.a.value.charAt(0)!=="+"&&e.includes(`+${i}`)?(e.split(`+${i}`)[1]||"").trim():e}handleAutoCountry(){this.d.initialCountry==="auto"&&a.autoCountry&&(this.j=a.autoCountry,this.s.iso2||this.l.classList.contains("iti__globe")||this.setCountry(this.j),this.h())}handleUtils(){a.utils&&(this.a.value&&this._u(this.a.value),this.s.iso2&&(this._0(),this._updateMaxLength())),this.i0()}destroy(){if(this.d.allowDropdown){this._2(),this.selectedCountry.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);let i=this.a.closest("label");i&&i.removeEventListener("click",this._a9)}let{form:t}=this.a;this._a14&&t&&t.removeEventListener("submit",this._a14),this.a.removeEventListener("input",this._a12),this._handleKeydownEvent&&this.a.removeEventListener("keydown",this._handleKeydownEvent),this.a.removeAttribute("data-intl-tel-input-id");let e=this.a.parentNode;e?.parentNode?.insertBefore(this.a,e),e?.parentNode?.removeChild(e),delete a.instances[this.id]}getExtension(){return a.utils?a.utils.getExtension(this._6(),this.s.iso2):""}getNumber(t){if(a.utils){let{iso2:e}=this.s;return a.utils.formatNumber(this._6(),e,t)}return""}getNumberType(){return a.utils?a.utils.getNumberType(this._6(),this.s.iso2):-99}getSelectedCountryData(){return this.s}getValidationError(){if(a.utils){let{iso2:t}=this.s;return a.utils.getValidationError(this._6(),t)}return-99}isValidNumber(){let t=this._6();return/\p{L}/u.test(t)?!1:a.utils?a.utils.isPossibleNumber(t,this.s.iso2,this.d.validationNumberType):null}isValidNumberPrecise(){let t=this._6();return/\p{L}/u.test(t)?!1:a.utils?a.utils.isValidNumber(t,this.s.iso2):null}setCountry(t){let e=t?.toLowerCase(),i=this.s.iso2;(t&&e!==i||!t&&i)&&(this._z(e),this._4(this.s.dialCode),this._8())}setNumber(t){let e=this._v(t);this._u(t),e&&this._8(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.d.placeholderNumberType=t,this._0()}},B=l=>!a.utils&&!a.startedLoadingUtilsScript?(a.startedLoadingUtilsScript=!0,new Promise((t,e)=>{import(/* webpackIgnore: true */ l).then(({default:i})=>{a.utils=i,f("handleUtils"),t(!0)}).catch(()=>{f("rejectUtilsScriptPromise"),e()})})):null,a=Object.assign((l,t)=>{let e=new _(l,t);return e._init(),l.setAttribute("data-intl-tel-input-id",e.id.toString()),a.instances[e.id]=e,e},{defaults:S,documentReady:()=>document.readyState==="complete",getCountryData:()=>C,getInstance:l=>{let t=l.getAttribute("data-intl-tel-input-id");return t?a.instances[t]:null},instances:{},loadUtils:B,version:"23.1.0"}),K=a;return R(U);})();
|
|
16
|
+
var factoryOutput=(()=>{var I=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var P=Object.prototype.hasOwnProperty;var H=(l,t)=>{for(var e in t)I(l,e,{get:t[e],enumerable:!0})},O=(l,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of x(t))!P.call(l,n)&&n!==e&&I(l,n,{get:()=>t[n],enumerable:!(i=M(t,n))||i.enumerable});return l};var R=l=>O(I({},"__esModule",{value:!0}),l);var U={};H(U,{Iti:()=>_,default:()=>K});var T=[["af","93"],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"]],["cc","61",1,["89162"]],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"]],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"]],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"]],["jo","962"],["kz","7",1,["33","7"]],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"]],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0],["ro","40"],["ru","7",0],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["ug","256"],["ua","380"],["ae","971"],["gb","44",0],["us","1",0],["uy","598"],["vi","1",24,["340"]],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"]],["ye","967"],["zm","260"],["zw","263"],["ax","358",1,["18"]]],E=[];for(let l=0;l<T.length;l++){let t=T[l];E[l]={name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,nodeById:{}}}var C=E;var D={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",aq:"Antarctica",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"\xC5land Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barth\xE9lemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bv:"Bouvet Island",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"C\xF4te d\u2019Ivoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Cura\xE7ao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gs:"South Georgia & South Sandwich Islands",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hm:"Heard & McDonald Islands",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pn:"Pitcairn Islands",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"R\xE9union",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"S\xE3o Tom\xE9 & Pr\xEDncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tf:"French Southern Territories",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",um:"U.S. Outlying Islands",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe"};var A={selectedCountryAriaLabel:"Selected country",noCountrySelected:"No country selected",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"};var w={...D,...A};for(let l=0;l<C.length;l++)C[l].name=w[C[l].iso2];var z=0,S={allowDropdown:!0,autoPlaceholder:"polite",containerClass:"",countryOrder:null,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:!1,utilsScript:"",validationNumberType:"MOBILE"},j=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],v=l=>l.replace(/\D/g,""),N=(l="")=>l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),k=l=>{let t=v(l);if(t.charAt(0)==="1"){let e=t.substr(1,3);return j.indexOf(e)!==-1}return!1},F=(l,t,e,i)=>{if(e===0&&!i)return 0;let n=0;for(let s=0;s<t.length;s++){if(/[+0-9]/.test(t[s])&&n++,n===l&&!i)return s+1;if(i&&n===l+1)return s}return t.length},p=(l,t,e)=>{let i=document.createElement(l);return t&&Object.entries(t).forEach(([n,s])=>i.setAttribute(n,s)),e&&e.appendChild(i),i},f=l=>{let{instances:t}=a;Object.values(t).forEach(e=>e[l]())},_=class{id;promise;telInput;highlightedItem;options;hadInitialPlaceholder;isRTL;isAndroid;selectedCountryData;countries;dialCodeMaxLen;dialCodeToIso2Map;dialCodes;countryContainer;selectedCountry;selectedCountryInner;selectedCountryA11yText;selectedDialCode;dropdownArrow;dropdownContent;searchInput;searchResultsA11yText;countryList;dropdown;hiddenInput;hiddenInputCountry;maxCoreNumberLength;defaultCountry;_a14;_a9;_a10;_a11;_a12;_handleKeydownEvent;_a4;_a0;_a1;_a2;_a3;_a7;resolveAutoCountryPromise;rejectAutoCountryPromise;resolveUtilsScriptPromise;rejectUtilsScriptPromise;constructor(t,e={}){this.id=z++,this.a=t,this.c=null,this.d=Object.assign({},S,e),this.e=!!t.getAttribute("placeholder")}_init(){this.d.useFullscreenPopup&&(this.d.fixDropdownWidth=!1),this.d.separateDialCode&&(this.d.allowDropdown=!0,this.d.nationalMode=!1),!this.d.showFlags&&!this.d.separateDialCode&&(this.d.nationalMode=!1),this.d.useFullscreenPopup&&!this.d.dropdownContainer&&(this.d.dropdownContainer=document.body),this.isAndroid=typeof navigator<"u"?/Android/i.test(navigator.userAgent):!1,this.isRTL=!!this.a.closest("[dir=rtl]"),this.d.i18n={...w,...this.d.i18n};let t=new Promise((i,n)=>{this.h=i,this.i=n}),e=new Promise((i,n)=>{this.i0=i,this.i1=n});this.promise=Promise.all([t,e]),this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}_b(){this._d(),this._d2(),this._d0(),this.d.countryOrder&&(this.d.countryOrder=this.d.countryOrder.map(t=>t.toLowerCase())),this._sortCountries()}_sortCountries(){this.p.sort((t,e)=>{let{countryOrder:i}=this.d;if(i){let n=i.indexOf(t.iso2),s=i.indexOf(e.iso2),o=n>-1,r=s>-1;if(o||r)return o&&r?n-s:o?-1:1}return t.name<e.name?-1:t.name>e.name?1:0})}_c(t,e,i){e.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=e.length),this.q.hasOwnProperty(e)||(this.q[e]=[]);for(let s=0;s<this.q[e].length;s++)if(this.q[e][s]===t)return;let n=i!==void 0?i:this.q[e].length;this.q[e][n]=t}_d(){let{onlyCountries:t,excludeCountries:e}=this.d;if(t.length){let i=t.map(n=>n.toLowerCase());this.p=C.filter(n=>i.indexOf(n.iso2)>-1)}else if(e.length){let i=e.map(n=>n.toLowerCase());this.p=C.filter(n=>i.indexOf(n.iso2)===-1)}else this.p=C}_d0(){for(let t=0;t<this.p.length;t++){let e=this.p[t].iso2.toLowerCase();this.d.i18n.hasOwnProperty(e)&&(this.p[t].name=this.d.i18n[e])}}_d2(){this.dialCodes={},this.dialCodeMaxLen=0,this.q={};for(let t=0;t<this.p.length;t++){let e=this.p[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._c(e.iso2,e.dialCode,e.priority)}for(let t=0;t<this.p.length;t++){let e=this.p[t];if(e.areaCodes){let i=this.q[e.dialCode][0];for(let n=0;n<e.areaCodes.length;n++){let s=e.areaCodes[n];for(let o=1;o<s.length;o++){let r=e.dialCode+s.substr(0,o);this._c(i,r),this._c(e.iso2,r)}this._c(e.iso2,e.dialCode+s)}}}}_f(){this.a.classList.add("iti__tel-input"),!this.a.hasAttribute("autocomplete")&&!(this.a.form&&this.a.form.hasAttribute("autocomplete"))&&this.a.setAttribute("autocomplete","off");let{allowDropdown:t,separateDialCode:e,showFlags:i,containerClass:n,hiddenInput:s,dropdownContainer:o,fixDropdownWidth:r,useFullscreenPopup:u,i18n:d}=this.d,c="iti";t&&(c+=" iti--allow-dropdown"),i&&(c+=" iti--show-flags"),n&&(c+=` ${n}`),u||(c+=" iti--inline-dropdown");let h=p("div",{class:c});if(this.a.parentNode?.insertBefore(h,this.a),t||i){this.k=p("div",{class:"iti__country-container"},h),this.selectedCountry=p("button",{type:"button",class:"iti__selected-country",...t&&{"aria-expanded":"false","aria-label":this.d.i18n.selectedCountryAriaLabel,"aria-haspopup":"true","aria-controls":`iti-${this.id}__dropdown-content`,role:"combobox"}},this.k);let g=p("div",{class:"iti__selected-country-primary"},this.selectedCountry);if(this.l=p("div",null,g),this.selectedCountryA11yText=p("span",{class:"iti__a11y-text"},this.l),this.a.disabled?this.selectedCountry.setAttribute("aria-disabled","true"):this.selectedCountry.setAttribute("tabindex","0"),t&&(this.u=p("div",{class:"iti__arrow","aria-hidden":"true"},g)),e&&(this.t=p("div",{class:"iti__selected-dial-code"},this.selectedCountry)),t){let m=r?"":"iti--flexible-dropdown-width";if(this.dropdownContent=p("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content iti__hide ${m}`}),this.searchInput=p("input",{type:"text",class:"iti__search-input",placeholder:d.searchPlaceholder,role:"combobox","aria-expanded":"true","aria-label":d.searchPlaceholder,"aria-controls":`iti-${this.id}__country-listbox`,"aria-autocomplete":"list",autocomplete:"off"},this.dropdownContent),this.searchResultsA11yText=p("span",{class:"iti__a11y-text"},this.dropdownContent),this.countryList=p("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox","aria-label":d.countryListAriaLabel},this.dropdownContent),this._g(this.p,"iti__standard"),this._p4(),o){let y="iti iti--container";u?y+=" iti--fullscreen-popup":y+=" iti--inline-dropdown",this.dropdown=p("div",{class:y}),this.dropdown.appendChild(this.dropdownContent)}else this.k.appendChild(this.dropdownContent)}}if(h.appendChild(this.a),s){let g=this.a.getAttribute("name")||"",m=s(g);m.phone&&(this.hiddenInput=p("input",{type:"hidden",name:m.phone}),h.appendChild(this.hiddenInput)),m.country&&(this.hiddenInputCountry=p("input",{type:"hidden",name:m.country}),h.appendChild(this.hiddenInputCountry))}}_g(t,e){for(let i=0;i<t.length;i++){let n=t[i],s=p("li",{id:`iti-${this.id}__item-${n.iso2}`,class:`iti__country ${e}`,tabindex:"-1",role:"option","data-dial-code":n.dialCode,"data-country-code":n.iso2,"aria-selected":"false"},this.countryList);n.nodeById[this.id]=s;let o="";this.d.showFlags&&(o+=`<div class='iti__flag-box'><div class='iti__flag iti__${n.iso2}'></div></div>`),o+=`<span class='iti__country-name'>${n.name}</span>`,o+=`<span class='iti__dial-code'>+${n.dialCode}</span>`,s.insertAdjacentHTML("beforeend",o)}}_h(t=!1){let e=this.a.getAttribute("value"),i=this.a.value,s=e&&e.charAt(0)==="+"&&(!i||i.charAt(0)!=="+")?e:i,o=this._5(s),r=k(s),{initialCountry:u,geoIpLookup:d}=this.d,c=u==="auto"&&d;if(o&&!r)this._v(s);else if(!c||t){let h=u?u.toLowerCase():"";h&&this._y(h,!0)?this._z(h):o&&r?this._z("us"):this._z()}s&&this._u(s)}_i(){this._j(),this.d.allowDropdown&&this._i2(),(this.hiddenInput||this.hiddenInputCountry)&&this.a.form&&this._i0()}_i0(){this._a14=()=>{this.hiddenInput&&(this.hiddenInput.value=this.getNumber()),this.hiddenInputCountry&&(this.hiddenInputCountry.value=this.getSelectedCountryData().iso2||"")},this.a.form?.addEventListener("submit",this._a14)}_i2(){this._a9=e=>{this.dropdownContent.classList.contains("iti__hide")?this.a.focus():e.preventDefault()};let t=this.a.closest("label");t&&t.addEventListener("click",this._a9),this._a10=()=>{this.dropdownContent.classList.contains("iti__hide")&&!this.a.disabled&&!this.a.readOnly&&this._n()},this.selectedCountry.addEventListener("click",this._a10),this._a11=e=>{this.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this._n()),e.key==="Tab"&&this._2()},this.k.addEventListener("keydown",this._a11)}_i3(){let{utilsScript:t,initialCountry:e,geoIpLookup:i}=this.d;t&&!a.utils?a.documentReady()?a.loadUtils(t):window.addEventListener("load",()=>{a.loadUtils(t)}):this.i0(),e==="auto"&&i&&!this.s.iso2?this._i4():this.h()}_i4(){a.autoCountry?this.handleAutoCountry():a.startedLoadingAutoCountry||(a.startedLoadingAutoCountry=!0,typeof this.d.geoIpLookup=="function"&&this.d.geoIpLookup((t="")=>{let e=t.toLowerCase();e&&this._y(e,!0)?(a.autoCountry=e,setTimeout(()=>f("handleAutoCountry"))):(this._h(!0),f("rejectAutoCountryPromise"))},()=>{this._h(!0),f("rejectAutoCountryPromise")}))}_j(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,formatOnDisplay:n}=this.d,s=!1,o=()=>{this._n(),this.searchInput.value="+",this._p3("",!0)};this._a12=r=>{if(this.isAndroid&&r?.data==="+"&&i){let h=this.a.selectionStart||0,g=this.a.value.substring(0,h-1),m=this.a.value.substring(h);this.a.value=g+m,o();return}this._v(this.a.value)&&this._8();let u=r?.data&&/[^+0-9]/.test(r.data),d=r?.inputType==="insertFromPaste"&&this.a.value;u||d&&!t?s=!0:/[^+0-9]/.test(this.a.value)||(s=!1);let c=r?.detail&&r.detail.isSetNumber&&!n;if(e&&!s&&!c){let h=this.a.selectionStart||0,m=this.a.value.substring(0,h).replace(/[^+0-9]/g,"").length,y=r?.inputType==="deleteContentForward",b=this._9(),L=F(m,b,h,y);this.a.value=b,this.a.setSelectionRange(L,L)}},this.a.addEventListener("input",this._a12),(t||i)&&(this._handleKeydownEvent=r=>{if(r.key&&r.key.length===1&&!r.altKey&&!r.ctrlKey&&!r.metaKey){if(i&&r.key==="+"){r.preventDefault(),o();return}if(t){let u=this.a.selectionStart===0&&r.key==="+",d=/^[0-9]$/.test(r.key),c=u||d,h=this._6(),g=a.utils.getCoreNumber(h,this.s.iso2),m=this.maxCoreNumberLength&&g.length>=this.maxCoreNumberLength,y=this.a.value.substring(this.a.selectionStart,this.a.selectionEnd),b=/\d/.test(y);(!c||m&&!b)&&r.preventDefault()}}},this.a.addEventListener("keydown",this._handleKeydownEvent))}_j2(t){let e=parseInt(this.a.getAttribute("maxlength")||"",10);return e&&t.length>e?t.substr(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.a.dispatchEvent(i)}_n(){let{fixDropdownWidth:t}=this.d;t&&(this.dropdownContent.style.width=`${this.a.offsetWidth}px`),this.dropdownContent.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._o();let e=this.countryList.firstElementChild;e&&(this._x(e,!1),this.countryList.scrollTop=0),this.searchInput.focus(),this._p(),this.u.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}_o(){if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.d.useFullscreenPopup){let t=this.a.getBoundingClientRect(),e=this.a.offsetHeight;this.d.dropdownContainer&&(this.dropdown.style.top=`${t.top+e}px`,this.dropdown.style.left=`${t.left}px`,this._a4=()=>this._2(),window.addEventListener("scroll",this._a4))}}_p(){this._a0=n=>{let s=n.target?.closest(".iti__country");s&&this._x(s,!1)},this.countryList.addEventListener("mouseover",this._a0),this._a1=n=>{let s=n.target?.closest(".iti__country");s&&this._1(s)},this.countryList.addEventListener("click",this._a1);let t=!0;this._a2=()=>{t||this._2(),t=!1},document.documentElement.addEventListener("click",this._a2),this._a3=n=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(n.key)&&(n.preventDefault(),n.stopPropagation(),n.key==="ArrowUp"||n.key==="ArrowDown"?this._q(n.key):n.key==="Enter"?this._r():n.key==="Escape"&&this._2())},document.addEventListener("keydown",this._a3);let e=()=>{let n=this.searchInput.value.trim();n?this._p3(n):this._p3("",!0)},i=null;this._a7=()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)},this.searchInput.addEventListener("input",this._a7),this.searchInput.addEventListener("click",n=>n.stopPropagation())}_p3(t,e=!1){let i=!0;this.countryList.innerHTML="";let n=N(t);for(let s=0;s<this.p.length;s++){let o=this.p[s],r=N(o.name),u=`+${o.dialCode}`;if(e||r.includes(n)||u.includes(n)||o.iso2.includes(n)){let d=o.nodeById[this.id];d&&this.countryList.appendChild(d),i&&(this._x(d,!1),i=!1)}}i&&this._x(null,!1),this.countryList.scrollTop=0,this._p4()}_p4(){let{i18n:t}=this.d,e=this.countryList.childElementCount,i;e===0?i=t.zeroSearchResults:e===1?i=t.oneSearchResult:i=t.multipleSearchResults.replace("${count}",e.toString()),this.searchResultsA11yText.textContent=i}_q(t){let e=t==="ArrowUp"?this.c?.previousElementSibling:this.c?.nextElementSibling;!e&&this.countryList.childElementCount>1&&(e=t==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),e&&(this._3(e),this._x(e,!1))}_r(){this.c&&this._1(this.c)}_u(t){let e=t;if(this.d.formatOnDisplay&&a.utils&&this.s){let i=this.d.nationalMode||e.charAt(0)!=="+"&&!this.d.separateDialCode,{NATIONAL:n,INTERNATIONAL:s}=a.utils.numberFormat,o=i?n:s;e=a.utils.formatNumber(e,this.s.iso2,o)}e=this._7(e),this.a.value=e}_v(t){let e=t.indexOf("+"),i=e?t.substring(e):t,n=this.s.dialCode;i&&n==="1"&&i.charAt(0)!=="+"&&(i.charAt(0)!=="1"&&(i=`1${i}`),i=`+${i}`),this.d.separateDialCode&&n&&i.charAt(0)!=="+"&&(i=`+${n}${i}`);let o=this._5(i,!0),r=v(i),u=null;if(o){let d=this.q[v(o)],c=d.indexOf(this.s.iso2)!==-1&&r.length<=o.length-1;if(!(n==="1"&&k(r))&&!c){for(let g=0;g<d.length;g++)if(d[g]){u=d[g];break}}}else i.charAt(0)==="+"&&r.length?u="":(!i||i==="+")&&!this.s.iso2&&(u=this.j);return u!==null?this._z(u):!1}_x(t,e){let i=this.c;if(i&&(i.classList.remove("iti__highlight"),i.setAttribute("aria-selected","false")),this.c=t,this.c){this.c.classList.add("iti__highlight"),this.c.setAttribute("aria-selected","true");let n=this.c.getAttribute("id")||"";this.selectedCountry.setAttribute("aria-activedescendant",n),this.searchInput.setAttribute("aria-activedescendant",n)}e&&this.c.focus()}_y(t,e){for(let i=0;i<this.p.length;i++)if(this.p[i].iso2===t)return this.p[i];if(e)return null;throw new Error(`No country data for '${t}'`)}_z(t){let{separateDialCode:e,showFlags:i,i18n:n}=this.d,s=this.s.iso2?this.s:{};if(this.s=t?this._y(t,!1)||{}:{},this.s.iso2&&(this.j=this.s.iso2),this.l){let o="",r="";t&&i?(o=`iti__flag iti__${t}`,r=`${this.s.name} +${this.s.dialCode}`):(o="iti__flag iti__globe",r=n.noCountrySelected),this.l.className=o,this.selectedCountryA11yText.textContent=r}if(this._z3(t,e),e){let o=this.s.dialCode?`+${this.s.dialCode}`:"";this.t.innerHTML=o;let u=(this.selectedCountry.offsetWidth||this._z2())+8;this.isRTL?this.a.style.paddingRight=`${u}px`:this.a.style.paddingLeft=`${u}px`}return this._0(),this._updateMaxLength(),s.iso2!==t}_updateMaxLength(){let{strictMode:t,placeholderNumberType:e,validationNumberType:i}=this.d;if(t&&a.utils)if(this.s.iso2){let n=a.utils.numberType[e],s=a.utils.getExampleNumber(this.s.iso2,!1,n,!0),o=s;for(;a.utils.isPossibleNumber(s,this.s.iso2,i);)o=s,s+="0";let r=a.utils.getCoreNumber(o,this.s.iso2);this.maxCoreNumberLength=r.length}else this.maxCoreNumberLength=null}_z3(t=null,e){if(!this.selectedCountry)return;let i;t&&!e?i=`${this.s.name}: +${this.s.dialCode}`:t?i=this.s.name:i="Unknown",this.selectedCountry.setAttribute("title",i)}_z2(){if(this.a.parentNode){let t=this.a.parentNode.cloneNode(!1);t.style.visibility="hidden",document.body.appendChild(t);let e=this.k.cloneNode();t.appendChild(e);let i=this.selectedCountry.cloneNode(!0);e.appendChild(i);let n=i.offsetWidth;return document.body.removeChild(t),n}return 0}_0(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:n}=this.d,s=t==="aggressive"||!this.e&&t==="polite";if(a.utils&&s){let o=a.utils.numberType[e],r=this.s.iso2?a.utils.getExampleNumber(this.s.iso2,i,o):"";r=this._7(r),typeof n=="function"&&(r=n(r,this.s)),this.a.setAttribute("placeholder",r)}}_1(t){let e=this._z(t.getAttribute("data-country-code"));this._2(),this._4(t.getAttribute("data-dial-code")),this.a.focus(),e&&this._8()}_2(){this.dropdownContent.classList.add("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","false"),this.selectedCountry.removeAttribute("aria-activedescendant"),this.c&&this.c.setAttribute("aria-selected","false"),this.searchInput.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),this.searchInput.removeEventListener("input",this._a7),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.d.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}_3(t){let e=this.countryList,i=document.documentElement.scrollTop,n=e.offsetHeight,s=e.getBoundingClientRect().top+i,o=s+n,r=t.offsetHeight,u=t.getBoundingClientRect().top+i,d=u+r,c=u-s+e.scrollTop;if(u<s)e.scrollTop=c;else if(d>o){let h=n-r;e.scrollTop=c-h}}_4(t){let e=this.a.value,i=`+${t}`,n;if(e.charAt(0)==="+"){let s=this._5(e);s?n=e.replace(s,i):n=i,this.a.value=n}}_5(t,e){let i="";if(t.charAt(0)==="+"){let n="";for(let s=0;s<t.length;s++){let o=t.charAt(s);if(!isNaN(parseInt(o,10))){if(n+=o,e)this.q[n]&&(i=t.substr(0,s+1));else if(this.dialCodes[n]){i=t.substr(0,s+1);break}if(n.length===this.dialCodeMaxLen)break}}}return i}_6(){let t=this.a.value.trim(),{dialCode:e}=this.s,i,n=v(t);return this.d.separateDialCode&&t.charAt(0)!=="+"&&e&&n?i=`+${e}`:i="",i+t}_7(t){let e=t;if(this.d.separateDialCode){let i=this._5(e);if(i){i=`+${this.s.dialCode}`;let n=e[i.length]===" "||e[i.length]==="-"?i.length+1:i.length;e=e.substr(n)}}return this._j2(e)}_8(){this._trigger("countrychange")}_9(){let t=this._6(),e=a.utils?a.utils.formatNumberAsYouType(t,this.s.iso2):t,{dialCode:i}=this.s;return this.d.separateDialCode&&this.a.value.charAt(0)!=="+"&&e.includes(`+${i}`)?(e.split(`+${i}`)[1]||"").trim():e}handleAutoCountry(){this.d.initialCountry==="auto"&&a.autoCountry&&(this.j=a.autoCountry,this.s.iso2||this.l.classList.contains("iti__globe")||this.setCountry(this.j),this.h())}handleUtils(){a.utils&&(this.a.value&&this._u(this.a.value),this.s.iso2&&(this._0(),this._updateMaxLength())),this.i0()}destroy(){if(this.d.allowDropdown){this._2(),this.selectedCountry.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);let i=this.a.closest("label");i&&i.removeEventListener("click",this._a9)}let{form:t}=this.a;this._a14&&t&&t.removeEventListener("submit",this._a14),this.a.removeEventListener("input",this._a12),this._handleKeydownEvent&&this.a.removeEventListener("keydown",this._handleKeydownEvent),this.a.removeAttribute("data-intl-tel-input-id");let e=this.a.parentNode;e?.parentNode?.insertBefore(this.a,e),e?.parentNode?.removeChild(e),delete a.instances[this.id]}getExtension(){return a.utils?a.utils.getExtension(this._6(),this.s.iso2):""}getNumber(t){if(a.utils){let{iso2:e}=this.s;return a.utils.formatNumber(this._6(),e,t)}return""}getNumberType(){return a.utils?a.utils.getNumberType(this._6(),this.s.iso2):-99}getSelectedCountryData(){return this.s}getValidationError(){if(a.utils){let{iso2:t}=this.s;return a.utils.getValidationError(this._6(),t)}return-99}isValidNumber(){let t=this._6();return/\p{L}/u.test(t)?!1:a.utils?a.utils.isPossibleNumber(t,this.s.iso2,this.d.validationNumberType):null}isValidNumberPrecise(){let t=this._6();return/\p{L}/u.test(t)?!1:a.utils?a.utils.isValidNumber(t,this.s.iso2):null}setCountry(t){let e=t?.toLowerCase(),i=this.s.iso2;(t&&e!==i||!t&&i)&&(this._z(e),this._4(this.s.dialCode),this._8())}setNumber(t){let e=this._v(t);this._u(t),e&&this._8(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.d.placeholderNumberType=t,this._0()}},B=l=>!a.utils&&!a.startedLoadingUtilsScript?(a.startedLoadingUtilsScript=!0,new Promise((t,e)=>{import(/* webpackIgnore: true */ l).then(({default:i})=>{a.utils=i,f("handleUtils"),t(!0)}).catch(()=>{f("rejectUtilsScriptPromise"),e()})})):null,a=Object.assign((l,t)=>{let e=new _(l,t);return e._init(),l.setAttribute("data-intl-tel-input-id",e.id.toString()),a.instances[e.id]=e,e},{defaults:S,documentReady:()=>document.readyState==="complete",getCountryData:()=>C,getInstance:l=>{let t=l.getAttribute("data-intl-tel-input-id");return t?a.instances[t]:null},instances:{},loadUtils:B,version:"23.1.1"}),K=a;return R(U);})();
|
|
17
17
|
|
|
18
18
|
// UMD
|
|
19
19
|
return factoryOutput.default;
|