vue-tel-input 6.0.4 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +83 -46
- package/dist/style.css +1 -0
- package/dist/vue-tel-input.js +3631 -0
- package/dist/vue-tel-input.umd.cjs +9 -0
- package/package.json +18 -29
|
@@ -0,0 +1,3631 @@
|
|
|
1
|
+
import { resolveDirective as Le, openBlock as h, createElementBlock as p, normalizeClass as b, withDirectives as Y, withKeys as P, createElementVNode as E, createCommentVNode as N, toDisplayString as S, renderSlot as Z, Fragment as ke, renderList as Be, vModelDynamic as Ge } from "vue";
|
|
2
|
+
const je = [
|
|
3
|
+
[
|
|
4
|
+
"Afghanistan (افغانستان)",
|
|
5
|
+
"af",
|
|
6
|
+
"93"
|
|
7
|
+
],
|
|
8
|
+
[
|
|
9
|
+
"Albania (Shqipëri)",
|
|
10
|
+
"al",
|
|
11
|
+
"355"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"Algeria (الجزائر)",
|
|
15
|
+
"dz",
|
|
16
|
+
"213"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"American Samoa",
|
|
20
|
+
"as",
|
|
21
|
+
"1684"
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"Andorra",
|
|
25
|
+
"ad",
|
|
26
|
+
"376"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"Angola",
|
|
30
|
+
"ao",
|
|
31
|
+
"244"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"Anguilla",
|
|
35
|
+
"ai",
|
|
36
|
+
"1264"
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"Antigua and Barbuda",
|
|
40
|
+
"ag",
|
|
41
|
+
"1268"
|
|
42
|
+
],
|
|
43
|
+
[
|
|
44
|
+
"Argentina",
|
|
45
|
+
"ar",
|
|
46
|
+
"54"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"Armenia (Հայաստան)",
|
|
50
|
+
"am",
|
|
51
|
+
"374"
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
"Aruba",
|
|
55
|
+
"aw",
|
|
56
|
+
"297"
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"Australia",
|
|
60
|
+
"au",
|
|
61
|
+
"61"
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
"Austria (Österreich)",
|
|
65
|
+
"at",
|
|
66
|
+
"43"
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"Azerbaijan (Azərbaycan)",
|
|
70
|
+
"az",
|
|
71
|
+
"994"
|
|
72
|
+
],
|
|
73
|
+
[
|
|
74
|
+
"Bahamas",
|
|
75
|
+
"bs",
|
|
76
|
+
"1242"
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
"Bahrain (البحرين)",
|
|
80
|
+
"bh",
|
|
81
|
+
"973"
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
"Bangladesh (বাংলাদেশ)",
|
|
85
|
+
"bd",
|
|
86
|
+
"880"
|
|
87
|
+
],
|
|
88
|
+
[
|
|
89
|
+
"Barbados",
|
|
90
|
+
"bb",
|
|
91
|
+
"1246"
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
"Belarus (Беларусь)",
|
|
95
|
+
"by",
|
|
96
|
+
"375"
|
|
97
|
+
],
|
|
98
|
+
[
|
|
99
|
+
"Belgium (België)",
|
|
100
|
+
"be",
|
|
101
|
+
"32"
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
"Belize",
|
|
105
|
+
"bz",
|
|
106
|
+
"501"
|
|
107
|
+
],
|
|
108
|
+
[
|
|
109
|
+
"Benin (Bénin)",
|
|
110
|
+
"bj",
|
|
111
|
+
"229"
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
"Bermuda",
|
|
115
|
+
"bm",
|
|
116
|
+
"1441"
|
|
117
|
+
],
|
|
118
|
+
[
|
|
119
|
+
"Bhutan (འབྲུག)",
|
|
120
|
+
"bt",
|
|
121
|
+
"975"
|
|
122
|
+
],
|
|
123
|
+
[
|
|
124
|
+
"Bolivia",
|
|
125
|
+
"bo",
|
|
126
|
+
"591"
|
|
127
|
+
],
|
|
128
|
+
[
|
|
129
|
+
"Bosnia and Herzegovina (Босна и Херцеговина)",
|
|
130
|
+
"ba",
|
|
131
|
+
"387"
|
|
132
|
+
],
|
|
133
|
+
[
|
|
134
|
+
"Botswana",
|
|
135
|
+
"bw",
|
|
136
|
+
"267"
|
|
137
|
+
],
|
|
138
|
+
[
|
|
139
|
+
"Brazil (Brasil)",
|
|
140
|
+
"br",
|
|
141
|
+
"55"
|
|
142
|
+
],
|
|
143
|
+
[
|
|
144
|
+
"British Indian Ocean Territory",
|
|
145
|
+
"io",
|
|
146
|
+
"246"
|
|
147
|
+
],
|
|
148
|
+
[
|
|
149
|
+
"British Virgin Islands",
|
|
150
|
+
"vg",
|
|
151
|
+
"1284"
|
|
152
|
+
],
|
|
153
|
+
[
|
|
154
|
+
"Brunei",
|
|
155
|
+
"bn",
|
|
156
|
+
"673"
|
|
157
|
+
],
|
|
158
|
+
[
|
|
159
|
+
"Bulgaria (България)",
|
|
160
|
+
"bg",
|
|
161
|
+
"359"
|
|
162
|
+
],
|
|
163
|
+
[
|
|
164
|
+
"Burkina Faso",
|
|
165
|
+
"bf",
|
|
166
|
+
"226"
|
|
167
|
+
],
|
|
168
|
+
[
|
|
169
|
+
"Burundi (Uburundi)",
|
|
170
|
+
"bi",
|
|
171
|
+
"257"
|
|
172
|
+
],
|
|
173
|
+
[
|
|
174
|
+
"Cambodia (កម្ពុជា)",
|
|
175
|
+
"kh",
|
|
176
|
+
"855"
|
|
177
|
+
],
|
|
178
|
+
[
|
|
179
|
+
"Cameroon (Cameroun)",
|
|
180
|
+
"cm",
|
|
181
|
+
"237"
|
|
182
|
+
],
|
|
183
|
+
[
|
|
184
|
+
"Canada",
|
|
185
|
+
"ca",
|
|
186
|
+
"1"
|
|
187
|
+
],
|
|
188
|
+
[
|
|
189
|
+
"Cape Verde (Kabu Verdi)",
|
|
190
|
+
"cv",
|
|
191
|
+
"238"
|
|
192
|
+
],
|
|
193
|
+
[
|
|
194
|
+
"Caribbean Netherlands",
|
|
195
|
+
"bq",
|
|
196
|
+
"599"
|
|
197
|
+
],
|
|
198
|
+
[
|
|
199
|
+
"Cayman Islands",
|
|
200
|
+
"ky",
|
|
201
|
+
"1345"
|
|
202
|
+
],
|
|
203
|
+
[
|
|
204
|
+
"Central African Republic (République centrafricaine)",
|
|
205
|
+
"cf",
|
|
206
|
+
"236"
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
"Chad (Tchad)",
|
|
210
|
+
"td",
|
|
211
|
+
"235"
|
|
212
|
+
],
|
|
213
|
+
[
|
|
214
|
+
"Chile",
|
|
215
|
+
"cl",
|
|
216
|
+
"56"
|
|
217
|
+
],
|
|
218
|
+
[
|
|
219
|
+
"China (中国)",
|
|
220
|
+
"cn",
|
|
221
|
+
"86"
|
|
222
|
+
],
|
|
223
|
+
[
|
|
224
|
+
"Christmas Island",
|
|
225
|
+
"cx",
|
|
226
|
+
"61"
|
|
227
|
+
],
|
|
228
|
+
[
|
|
229
|
+
"Cocos (Keeling) Islands",
|
|
230
|
+
"cc",
|
|
231
|
+
"61"
|
|
232
|
+
],
|
|
233
|
+
[
|
|
234
|
+
"Colombia",
|
|
235
|
+
"co",
|
|
236
|
+
"57"
|
|
237
|
+
],
|
|
238
|
+
[
|
|
239
|
+
"Comoros (جزر القمر)",
|
|
240
|
+
"km",
|
|
241
|
+
"269"
|
|
242
|
+
],
|
|
243
|
+
[
|
|
244
|
+
"Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)",
|
|
245
|
+
"cd",
|
|
246
|
+
"243"
|
|
247
|
+
],
|
|
248
|
+
[
|
|
249
|
+
"Congo (Republic) (Congo-Brazzaville)",
|
|
250
|
+
"cg",
|
|
251
|
+
"242"
|
|
252
|
+
],
|
|
253
|
+
[
|
|
254
|
+
"Cook Islands",
|
|
255
|
+
"ck",
|
|
256
|
+
"682"
|
|
257
|
+
],
|
|
258
|
+
[
|
|
259
|
+
"Costa Rica",
|
|
260
|
+
"cr",
|
|
261
|
+
"506"
|
|
262
|
+
],
|
|
263
|
+
[
|
|
264
|
+
"Côte d’Ivoire",
|
|
265
|
+
"ci",
|
|
266
|
+
"225"
|
|
267
|
+
],
|
|
268
|
+
[
|
|
269
|
+
"Croatia (Hrvatska)",
|
|
270
|
+
"hr",
|
|
271
|
+
"385"
|
|
272
|
+
],
|
|
273
|
+
[
|
|
274
|
+
"Cuba",
|
|
275
|
+
"cu",
|
|
276
|
+
"53"
|
|
277
|
+
],
|
|
278
|
+
[
|
|
279
|
+
"Curaçao",
|
|
280
|
+
"cw",
|
|
281
|
+
"599"
|
|
282
|
+
],
|
|
283
|
+
[
|
|
284
|
+
"Cyprus (Κύπρος)",
|
|
285
|
+
"cy",
|
|
286
|
+
"357"
|
|
287
|
+
],
|
|
288
|
+
[
|
|
289
|
+
"Czech Republic (Česká republika)",
|
|
290
|
+
"cz",
|
|
291
|
+
"420"
|
|
292
|
+
],
|
|
293
|
+
[
|
|
294
|
+
"Denmark (Danmark)",
|
|
295
|
+
"dk",
|
|
296
|
+
"45"
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
"Djibouti",
|
|
300
|
+
"dj",
|
|
301
|
+
"253"
|
|
302
|
+
],
|
|
303
|
+
[
|
|
304
|
+
"Dominica",
|
|
305
|
+
"dm",
|
|
306
|
+
"1767"
|
|
307
|
+
],
|
|
308
|
+
[
|
|
309
|
+
"Dominican Republic (República Dominicana)",
|
|
310
|
+
"do",
|
|
311
|
+
"1"
|
|
312
|
+
],
|
|
313
|
+
[
|
|
314
|
+
"Ecuador",
|
|
315
|
+
"ec",
|
|
316
|
+
"593"
|
|
317
|
+
],
|
|
318
|
+
[
|
|
319
|
+
"Egypt (مصر)",
|
|
320
|
+
"eg",
|
|
321
|
+
"20"
|
|
322
|
+
],
|
|
323
|
+
[
|
|
324
|
+
"El Salvador",
|
|
325
|
+
"sv",
|
|
326
|
+
"503"
|
|
327
|
+
],
|
|
328
|
+
[
|
|
329
|
+
"Equatorial Guinea (Guinea Ecuatorial)",
|
|
330
|
+
"gq",
|
|
331
|
+
"240"
|
|
332
|
+
],
|
|
333
|
+
[
|
|
334
|
+
"Eritrea",
|
|
335
|
+
"er",
|
|
336
|
+
"291"
|
|
337
|
+
],
|
|
338
|
+
[
|
|
339
|
+
"Estonia (Eesti)",
|
|
340
|
+
"ee",
|
|
341
|
+
"372"
|
|
342
|
+
],
|
|
343
|
+
[
|
|
344
|
+
"Ethiopia",
|
|
345
|
+
"et",
|
|
346
|
+
"251"
|
|
347
|
+
],
|
|
348
|
+
[
|
|
349
|
+
"Falkland Islands (Islas Malvinas)",
|
|
350
|
+
"fk",
|
|
351
|
+
"500"
|
|
352
|
+
],
|
|
353
|
+
[
|
|
354
|
+
"Faroe Islands (Føroyar)",
|
|
355
|
+
"fo",
|
|
356
|
+
"298"
|
|
357
|
+
],
|
|
358
|
+
[
|
|
359
|
+
"Fiji",
|
|
360
|
+
"fj",
|
|
361
|
+
"679"
|
|
362
|
+
],
|
|
363
|
+
[
|
|
364
|
+
"Finland (Suomi)",
|
|
365
|
+
"fi",
|
|
366
|
+
"358"
|
|
367
|
+
],
|
|
368
|
+
[
|
|
369
|
+
"France",
|
|
370
|
+
"fr",
|
|
371
|
+
"33"
|
|
372
|
+
],
|
|
373
|
+
[
|
|
374
|
+
"French Guiana (Guyane française)",
|
|
375
|
+
"gf",
|
|
376
|
+
"594"
|
|
377
|
+
],
|
|
378
|
+
[
|
|
379
|
+
"French Polynesia (Polynésie française)",
|
|
380
|
+
"pf",
|
|
381
|
+
"689"
|
|
382
|
+
],
|
|
383
|
+
[
|
|
384
|
+
"Gabon",
|
|
385
|
+
"ga",
|
|
386
|
+
"241"
|
|
387
|
+
],
|
|
388
|
+
[
|
|
389
|
+
"Gambia",
|
|
390
|
+
"gm",
|
|
391
|
+
"220"
|
|
392
|
+
],
|
|
393
|
+
[
|
|
394
|
+
"Georgia (საქართველო)",
|
|
395
|
+
"ge",
|
|
396
|
+
"995"
|
|
397
|
+
],
|
|
398
|
+
[
|
|
399
|
+
"Germany (Deutschland)",
|
|
400
|
+
"de",
|
|
401
|
+
"49"
|
|
402
|
+
],
|
|
403
|
+
[
|
|
404
|
+
"Ghana (Gaana)",
|
|
405
|
+
"gh",
|
|
406
|
+
"233"
|
|
407
|
+
],
|
|
408
|
+
[
|
|
409
|
+
"Gibraltar",
|
|
410
|
+
"gi",
|
|
411
|
+
"350"
|
|
412
|
+
],
|
|
413
|
+
[
|
|
414
|
+
"Greece (Ελλάδα)",
|
|
415
|
+
"gr",
|
|
416
|
+
"30"
|
|
417
|
+
],
|
|
418
|
+
[
|
|
419
|
+
"Greenland (Kalaallit Nunaat)",
|
|
420
|
+
"gl",
|
|
421
|
+
"299"
|
|
422
|
+
],
|
|
423
|
+
[
|
|
424
|
+
"Grenada",
|
|
425
|
+
"gd",
|
|
426
|
+
"1473"
|
|
427
|
+
],
|
|
428
|
+
[
|
|
429
|
+
"Guadeloupe",
|
|
430
|
+
"gp",
|
|
431
|
+
"590"
|
|
432
|
+
],
|
|
433
|
+
[
|
|
434
|
+
"Guam",
|
|
435
|
+
"gu",
|
|
436
|
+
"1671"
|
|
437
|
+
],
|
|
438
|
+
[
|
|
439
|
+
"Guatemala",
|
|
440
|
+
"gt",
|
|
441
|
+
"502"
|
|
442
|
+
],
|
|
443
|
+
[
|
|
444
|
+
"Guernsey",
|
|
445
|
+
"gg",
|
|
446
|
+
"44",
|
|
447
|
+
1
|
|
448
|
+
],
|
|
449
|
+
[
|
|
450
|
+
"Guinea (Guinée)",
|
|
451
|
+
"gn",
|
|
452
|
+
"224"
|
|
453
|
+
],
|
|
454
|
+
[
|
|
455
|
+
"Guinea-Bissau (Guiné Bissau)",
|
|
456
|
+
"gw",
|
|
457
|
+
"245"
|
|
458
|
+
],
|
|
459
|
+
[
|
|
460
|
+
"Guyana",
|
|
461
|
+
"gy",
|
|
462
|
+
"592"
|
|
463
|
+
],
|
|
464
|
+
[
|
|
465
|
+
"Haiti",
|
|
466
|
+
"ht",
|
|
467
|
+
"509"
|
|
468
|
+
],
|
|
469
|
+
[
|
|
470
|
+
"Honduras",
|
|
471
|
+
"hn",
|
|
472
|
+
"504"
|
|
473
|
+
],
|
|
474
|
+
[
|
|
475
|
+
"Hong Kong (香港)",
|
|
476
|
+
"hk",
|
|
477
|
+
"852"
|
|
478
|
+
],
|
|
479
|
+
[
|
|
480
|
+
"Hungary (Magyarország)",
|
|
481
|
+
"hu",
|
|
482
|
+
"36"
|
|
483
|
+
],
|
|
484
|
+
[
|
|
485
|
+
"Iceland (Ísland)",
|
|
486
|
+
"is",
|
|
487
|
+
"354"
|
|
488
|
+
],
|
|
489
|
+
[
|
|
490
|
+
"India (भारत)",
|
|
491
|
+
"in",
|
|
492
|
+
"91"
|
|
493
|
+
],
|
|
494
|
+
[
|
|
495
|
+
"Indonesia",
|
|
496
|
+
"id",
|
|
497
|
+
"62"
|
|
498
|
+
],
|
|
499
|
+
[
|
|
500
|
+
"Iran (ایران)",
|
|
501
|
+
"ir",
|
|
502
|
+
"98"
|
|
503
|
+
],
|
|
504
|
+
[
|
|
505
|
+
"Iraq (العراق)",
|
|
506
|
+
"iq",
|
|
507
|
+
"964"
|
|
508
|
+
],
|
|
509
|
+
[
|
|
510
|
+
"Ireland",
|
|
511
|
+
"ie",
|
|
512
|
+
"353"
|
|
513
|
+
],
|
|
514
|
+
[
|
|
515
|
+
"Isle of Man",
|
|
516
|
+
"im",
|
|
517
|
+
"44"
|
|
518
|
+
],
|
|
519
|
+
[
|
|
520
|
+
"Israel (ישראל)",
|
|
521
|
+
"il",
|
|
522
|
+
"972"
|
|
523
|
+
],
|
|
524
|
+
[
|
|
525
|
+
"Italy (Italia)",
|
|
526
|
+
"it",
|
|
527
|
+
"39"
|
|
528
|
+
],
|
|
529
|
+
[
|
|
530
|
+
"Jamaica",
|
|
531
|
+
"jm",
|
|
532
|
+
"1876"
|
|
533
|
+
],
|
|
534
|
+
[
|
|
535
|
+
"Japan (日本)",
|
|
536
|
+
"jp",
|
|
537
|
+
"81"
|
|
538
|
+
],
|
|
539
|
+
[
|
|
540
|
+
"Jersey",
|
|
541
|
+
"je",
|
|
542
|
+
"44"
|
|
543
|
+
],
|
|
544
|
+
[
|
|
545
|
+
"Jordan (الأردن)",
|
|
546
|
+
"jo",
|
|
547
|
+
"962"
|
|
548
|
+
],
|
|
549
|
+
[
|
|
550
|
+
"Kazakhstan (Казахстан)",
|
|
551
|
+
"kz",
|
|
552
|
+
"7"
|
|
553
|
+
],
|
|
554
|
+
[
|
|
555
|
+
"Kenya",
|
|
556
|
+
"ke",
|
|
557
|
+
"254"
|
|
558
|
+
],
|
|
559
|
+
[
|
|
560
|
+
"Kiribati",
|
|
561
|
+
"ki",
|
|
562
|
+
"686"
|
|
563
|
+
],
|
|
564
|
+
[
|
|
565
|
+
"Kosovo",
|
|
566
|
+
"xk",
|
|
567
|
+
"383"
|
|
568
|
+
],
|
|
569
|
+
[
|
|
570
|
+
"Kuwait (الكويت)",
|
|
571
|
+
"kw",
|
|
572
|
+
"965"
|
|
573
|
+
],
|
|
574
|
+
[
|
|
575
|
+
"Kyrgyzstan (Кыргызстан)",
|
|
576
|
+
"kg",
|
|
577
|
+
"996"
|
|
578
|
+
],
|
|
579
|
+
[
|
|
580
|
+
"Laos (ລາວ)",
|
|
581
|
+
"la",
|
|
582
|
+
"856"
|
|
583
|
+
],
|
|
584
|
+
[
|
|
585
|
+
"Latvia (Latvija)",
|
|
586
|
+
"lv",
|
|
587
|
+
"371"
|
|
588
|
+
],
|
|
589
|
+
[
|
|
590
|
+
"Lebanon (لبنان)",
|
|
591
|
+
"lb",
|
|
592
|
+
"961"
|
|
593
|
+
],
|
|
594
|
+
[
|
|
595
|
+
"Lesotho",
|
|
596
|
+
"ls",
|
|
597
|
+
"266"
|
|
598
|
+
],
|
|
599
|
+
[
|
|
600
|
+
"Liberia",
|
|
601
|
+
"lr",
|
|
602
|
+
"231"
|
|
603
|
+
],
|
|
604
|
+
[
|
|
605
|
+
"Libya (ليبيا)",
|
|
606
|
+
"ly",
|
|
607
|
+
"218"
|
|
608
|
+
],
|
|
609
|
+
[
|
|
610
|
+
"Liechtenstein",
|
|
611
|
+
"li",
|
|
612
|
+
"423"
|
|
613
|
+
],
|
|
614
|
+
[
|
|
615
|
+
"Lithuania (Lietuva)",
|
|
616
|
+
"lt",
|
|
617
|
+
"370"
|
|
618
|
+
],
|
|
619
|
+
[
|
|
620
|
+
"Luxembourg",
|
|
621
|
+
"lu",
|
|
622
|
+
"352"
|
|
623
|
+
],
|
|
624
|
+
[
|
|
625
|
+
"Macau (澳門)",
|
|
626
|
+
"mo",
|
|
627
|
+
"853"
|
|
628
|
+
],
|
|
629
|
+
[
|
|
630
|
+
"Macedonia (FYROM) (Македонија)",
|
|
631
|
+
"mk",
|
|
632
|
+
"389"
|
|
633
|
+
],
|
|
634
|
+
[
|
|
635
|
+
"Madagascar (Madagasikara)",
|
|
636
|
+
"mg",
|
|
637
|
+
"261"
|
|
638
|
+
],
|
|
639
|
+
[
|
|
640
|
+
"Malawi",
|
|
641
|
+
"mw",
|
|
642
|
+
"265"
|
|
643
|
+
],
|
|
644
|
+
[
|
|
645
|
+
"Malaysia",
|
|
646
|
+
"my",
|
|
647
|
+
"60"
|
|
648
|
+
],
|
|
649
|
+
[
|
|
650
|
+
"Maldives",
|
|
651
|
+
"mv",
|
|
652
|
+
"960"
|
|
653
|
+
],
|
|
654
|
+
[
|
|
655
|
+
"Mali",
|
|
656
|
+
"ml",
|
|
657
|
+
"223"
|
|
658
|
+
],
|
|
659
|
+
[
|
|
660
|
+
"Malta",
|
|
661
|
+
"mt",
|
|
662
|
+
"356"
|
|
663
|
+
],
|
|
664
|
+
[
|
|
665
|
+
"Marshall Islands",
|
|
666
|
+
"mh",
|
|
667
|
+
"692"
|
|
668
|
+
],
|
|
669
|
+
[
|
|
670
|
+
"Martinique",
|
|
671
|
+
"mq",
|
|
672
|
+
"596"
|
|
673
|
+
],
|
|
674
|
+
[
|
|
675
|
+
"Mauritania (موريتانيا)",
|
|
676
|
+
"mr",
|
|
677
|
+
"222"
|
|
678
|
+
],
|
|
679
|
+
[
|
|
680
|
+
"Mauritius (Moris)",
|
|
681
|
+
"mu",
|
|
682
|
+
"230"
|
|
683
|
+
],
|
|
684
|
+
[
|
|
685
|
+
"Mayotte",
|
|
686
|
+
"yt",
|
|
687
|
+
"262"
|
|
688
|
+
],
|
|
689
|
+
[
|
|
690
|
+
"Mexico (México)",
|
|
691
|
+
"mx",
|
|
692
|
+
"52"
|
|
693
|
+
],
|
|
694
|
+
[
|
|
695
|
+
"Micronesia",
|
|
696
|
+
"fm",
|
|
697
|
+
"691"
|
|
698
|
+
],
|
|
699
|
+
[
|
|
700
|
+
"Moldova (Republica Moldova)",
|
|
701
|
+
"md",
|
|
702
|
+
"373"
|
|
703
|
+
],
|
|
704
|
+
[
|
|
705
|
+
"Monaco",
|
|
706
|
+
"mc",
|
|
707
|
+
"377"
|
|
708
|
+
],
|
|
709
|
+
[
|
|
710
|
+
"Mongolia (Монгол)",
|
|
711
|
+
"mn",
|
|
712
|
+
"976"
|
|
713
|
+
],
|
|
714
|
+
[
|
|
715
|
+
"Montenegro (Crna Gora)",
|
|
716
|
+
"me",
|
|
717
|
+
"382"
|
|
718
|
+
],
|
|
719
|
+
[
|
|
720
|
+
"Montserrat",
|
|
721
|
+
"ms",
|
|
722
|
+
"1664"
|
|
723
|
+
],
|
|
724
|
+
[
|
|
725
|
+
"Morocco (المغرب)",
|
|
726
|
+
"ma",
|
|
727
|
+
"212"
|
|
728
|
+
],
|
|
729
|
+
[
|
|
730
|
+
"Mozambique (Moçambique)",
|
|
731
|
+
"mz",
|
|
732
|
+
"258"
|
|
733
|
+
],
|
|
734
|
+
[
|
|
735
|
+
"Myanmar (Burma) (မြန်မာ)",
|
|
736
|
+
"mm",
|
|
737
|
+
"95"
|
|
738
|
+
],
|
|
739
|
+
[
|
|
740
|
+
"Namibia (Namibië)",
|
|
741
|
+
"na",
|
|
742
|
+
"264"
|
|
743
|
+
],
|
|
744
|
+
[
|
|
745
|
+
"Nauru",
|
|
746
|
+
"nr",
|
|
747
|
+
"674"
|
|
748
|
+
],
|
|
749
|
+
[
|
|
750
|
+
"Nepal (नेपाल)",
|
|
751
|
+
"np",
|
|
752
|
+
"977"
|
|
753
|
+
],
|
|
754
|
+
[
|
|
755
|
+
"Netherlands (Nederland)",
|
|
756
|
+
"nl",
|
|
757
|
+
"31"
|
|
758
|
+
],
|
|
759
|
+
[
|
|
760
|
+
"New Caledonia (Nouvelle-Calédonie)",
|
|
761
|
+
"nc",
|
|
762
|
+
"687"
|
|
763
|
+
],
|
|
764
|
+
[
|
|
765
|
+
"New Zealand",
|
|
766
|
+
"nz",
|
|
767
|
+
"64"
|
|
768
|
+
],
|
|
769
|
+
[
|
|
770
|
+
"Nicaragua",
|
|
771
|
+
"ni",
|
|
772
|
+
"505"
|
|
773
|
+
],
|
|
774
|
+
[
|
|
775
|
+
"Niger (Nijar)",
|
|
776
|
+
"ne",
|
|
777
|
+
"227"
|
|
778
|
+
],
|
|
779
|
+
[
|
|
780
|
+
"Nigeria",
|
|
781
|
+
"ng",
|
|
782
|
+
"234"
|
|
783
|
+
],
|
|
784
|
+
[
|
|
785
|
+
"Niue",
|
|
786
|
+
"nu",
|
|
787
|
+
"683"
|
|
788
|
+
],
|
|
789
|
+
[
|
|
790
|
+
"Norfolk Island",
|
|
791
|
+
"nf",
|
|
792
|
+
"672"
|
|
793
|
+
],
|
|
794
|
+
[
|
|
795
|
+
"North Korea (조선 민주주의 인민 공화국)",
|
|
796
|
+
"kp",
|
|
797
|
+
"850"
|
|
798
|
+
],
|
|
799
|
+
[
|
|
800
|
+
"Northern Mariana Islands",
|
|
801
|
+
"mp",
|
|
802
|
+
"1670"
|
|
803
|
+
],
|
|
804
|
+
[
|
|
805
|
+
"Norway (Norge)",
|
|
806
|
+
"no",
|
|
807
|
+
"47"
|
|
808
|
+
],
|
|
809
|
+
[
|
|
810
|
+
"Oman (عُمان)",
|
|
811
|
+
"om",
|
|
812
|
+
"968"
|
|
813
|
+
],
|
|
814
|
+
[
|
|
815
|
+
"Pakistan (پاکستان)",
|
|
816
|
+
"pk",
|
|
817
|
+
"92"
|
|
818
|
+
],
|
|
819
|
+
[
|
|
820
|
+
"Palau",
|
|
821
|
+
"pw",
|
|
822
|
+
"680"
|
|
823
|
+
],
|
|
824
|
+
[
|
|
825
|
+
"Palestine (فلسطين)",
|
|
826
|
+
"ps",
|
|
827
|
+
"970"
|
|
828
|
+
],
|
|
829
|
+
[
|
|
830
|
+
"Panama (Panamá)",
|
|
831
|
+
"pa",
|
|
832
|
+
"507"
|
|
833
|
+
],
|
|
834
|
+
[
|
|
835
|
+
"Papua New Guinea",
|
|
836
|
+
"pg",
|
|
837
|
+
"675"
|
|
838
|
+
],
|
|
839
|
+
[
|
|
840
|
+
"Paraguay",
|
|
841
|
+
"py",
|
|
842
|
+
"595"
|
|
843
|
+
],
|
|
844
|
+
[
|
|
845
|
+
"Peru (Perú)",
|
|
846
|
+
"pe",
|
|
847
|
+
"51"
|
|
848
|
+
],
|
|
849
|
+
[
|
|
850
|
+
"Philippines",
|
|
851
|
+
"ph",
|
|
852
|
+
"63"
|
|
853
|
+
],
|
|
854
|
+
[
|
|
855
|
+
"Poland (Polska)",
|
|
856
|
+
"pl",
|
|
857
|
+
"48"
|
|
858
|
+
],
|
|
859
|
+
[
|
|
860
|
+
"Portugal",
|
|
861
|
+
"pt",
|
|
862
|
+
"351"
|
|
863
|
+
],
|
|
864
|
+
[
|
|
865
|
+
"Puerto Rico",
|
|
866
|
+
"pr",
|
|
867
|
+
"1"
|
|
868
|
+
],
|
|
869
|
+
[
|
|
870
|
+
"Qatar (قطر)",
|
|
871
|
+
"qa",
|
|
872
|
+
"974"
|
|
873
|
+
],
|
|
874
|
+
[
|
|
875
|
+
"Réunion (La Réunion)",
|
|
876
|
+
"re",
|
|
877
|
+
"262"
|
|
878
|
+
],
|
|
879
|
+
[
|
|
880
|
+
"Romania (România)",
|
|
881
|
+
"ro",
|
|
882
|
+
"40"
|
|
883
|
+
],
|
|
884
|
+
[
|
|
885
|
+
"Russia (Россия)",
|
|
886
|
+
"ru",
|
|
887
|
+
"7"
|
|
888
|
+
],
|
|
889
|
+
[
|
|
890
|
+
"Rwanda",
|
|
891
|
+
"rw",
|
|
892
|
+
"250"
|
|
893
|
+
],
|
|
894
|
+
[
|
|
895
|
+
"Saint Barthélemy",
|
|
896
|
+
"bl",
|
|
897
|
+
"590"
|
|
898
|
+
],
|
|
899
|
+
[
|
|
900
|
+
"Saint Helena",
|
|
901
|
+
"sh",
|
|
902
|
+
"290"
|
|
903
|
+
],
|
|
904
|
+
[
|
|
905
|
+
"Saint Kitts and Nevis",
|
|
906
|
+
"kn",
|
|
907
|
+
"1869"
|
|
908
|
+
],
|
|
909
|
+
[
|
|
910
|
+
"Saint Lucia",
|
|
911
|
+
"lc",
|
|
912
|
+
"1758"
|
|
913
|
+
],
|
|
914
|
+
[
|
|
915
|
+
"Saint Martin (Saint-Martin (partie française))",
|
|
916
|
+
"mf",
|
|
917
|
+
"590"
|
|
918
|
+
],
|
|
919
|
+
[
|
|
920
|
+
"Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)",
|
|
921
|
+
"pm",
|
|
922
|
+
"508"
|
|
923
|
+
],
|
|
924
|
+
[
|
|
925
|
+
"Saint Vincent and the Grenadines",
|
|
926
|
+
"vc",
|
|
927
|
+
"1784"
|
|
928
|
+
],
|
|
929
|
+
[
|
|
930
|
+
"Samoa",
|
|
931
|
+
"ws",
|
|
932
|
+
"685"
|
|
933
|
+
],
|
|
934
|
+
[
|
|
935
|
+
"San Marino",
|
|
936
|
+
"sm",
|
|
937
|
+
"378"
|
|
938
|
+
],
|
|
939
|
+
[
|
|
940
|
+
"São Tomé and Príncipe (São Tomé e Príncipe)",
|
|
941
|
+
"st",
|
|
942
|
+
"239"
|
|
943
|
+
],
|
|
944
|
+
[
|
|
945
|
+
"Saudi Arabia (المملكة العربية السعودية)",
|
|
946
|
+
"sa",
|
|
947
|
+
"966"
|
|
948
|
+
],
|
|
949
|
+
[
|
|
950
|
+
"Senegal (Sénégal)",
|
|
951
|
+
"sn",
|
|
952
|
+
"221"
|
|
953
|
+
],
|
|
954
|
+
[
|
|
955
|
+
"Serbia (Србија)",
|
|
956
|
+
"rs",
|
|
957
|
+
"381"
|
|
958
|
+
],
|
|
959
|
+
[
|
|
960
|
+
"Seychelles",
|
|
961
|
+
"sc",
|
|
962
|
+
"248"
|
|
963
|
+
],
|
|
964
|
+
[
|
|
965
|
+
"Sierra Leone",
|
|
966
|
+
"sl",
|
|
967
|
+
"232"
|
|
968
|
+
],
|
|
969
|
+
[
|
|
970
|
+
"Singapore",
|
|
971
|
+
"sg",
|
|
972
|
+
"65"
|
|
973
|
+
],
|
|
974
|
+
[
|
|
975
|
+
"Sint Maarten",
|
|
976
|
+
"sx",
|
|
977
|
+
"1721"
|
|
978
|
+
],
|
|
979
|
+
[
|
|
980
|
+
"Slovakia (Slovensko)",
|
|
981
|
+
"sk",
|
|
982
|
+
"421"
|
|
983
|
+
],
|
|
984
|
+
[
|
|
985
|
+
"Slovenia (Slovenija)",
|
|
986
|
+
"si",
|
|
987
|
+
"386"
|
|
988
|
+
],
|
|
989
|
+
[
|
|
990
|
+
"Solomon Islands",
|
|
991
|
+
"sb",
|
|
992
|
+
"677"
|
|
993
|
+
],
|
|
994
|
+
[
|
|
995
|
+
"Somalia (Soomaaliya)",
|
|
996
|
+
"so",
|
|
997
|
+
"252"
|
|
998
|
+
],
|
|
999
|
+
[
|
|
1000
|
+
"South Africa",
|
|
1001
|
+
"za",
|
|
1002
|
+
"27"
|
|
1003
|
+
],
|
|
1004
|
+
[
|
|
1005
|
+
"South Korea (대한민국)",
|
|
1006
|
+
"kr",
|
|
1007
|
+
"82"
|
|
1008
|
+
],
|
|
1009
|
+
[
|
|
1010
|
+
"South Sudan (جنوب السودان)",
|
|
1011
|
+
"ss",
|
|
1012
|
+
"211"
|
|
1013
|
+
],
|
|
1014
|
+
[
|
|
1015
|
+
"Spain (España)",
|
|
1016
|
+
"es",
|
|
1017
|
+
"34"
|
|
1018
|
+
],
|
|
1019
|
+
[
|
|
1020
|
+
"Sri Lanka (ශ්රී ලංකාව)",
|
|
1021
|
+
"lk",
|
|
1022
|
+
"94"
|
|
1023
|
+
],
|
|
1024
|
+
[
|
|
1025
|
+
"Sudan (السودان)",
|
|
1026
|
+
"sd",
|
|
1027
|
+
"249"
|
|
1028
|
+
],
|
|
1029
|
+
[
|
|
1030
|
+
"Suriname",
|
|
1031
|
+
"sr",
|
|
1032
|
+
"597"
|
|
1033
|
+
],
|
|
1034
|
+
[
|
|
1035
|
+
"Svalbard and Jan Mayen",
|
|
1036
|
+
"sj",
|
|
1037
|
+
"47"
|
|
1038
|
+
],
|
|
1039
|
+
[
|
|
1040
|
+
"Swaziland",
|
|
1041
|
+
"sz",
|
|
1042
|
+
"268"
|
|
1043
|
+
],
|
|
1044
|
+
[
|
|
1045
|
+
"Sweden (Sverige)",
|
|
1046
|
+
"se",
|
|
1047
|
+
"46"
|
|
1048
|
+
],
|
|
1049
|
+
[
|
|
1050
|
+
"Switzerland (Schweiz)",
|
|
1051
|
+
"ch",
|
|
1052
|
+
"41"
|
|
1053
|
+
],
|
|
1054
|
+
[
|
|
1055
|
+
"Syria (سوريا)",
|
|
1056
|
+
"sy",
|
|
1057
|
+
"963"
|
|
1058
|
+
],
|
|
1059
|
+
[
|
|
1060
|
+
"Taiwan (台灣)",
|
|
1061
|
+
"tw",
|
|
1062
|
+
"886"
|
|
1063
|
+
],
|
|
1064
|
+
[
|
|
1065
|
+
"Tajikistan",
|
|
1066
|
+
"tj",
|
|
1067
|
+
"992"
|
|
1068
|
+
],
|
|
1069
|
+
[
|
|
1070
|
+
"Tanzania",
|
|
1071
|
+
"tz",
|
|
1072
|
+
"255"
|
|
1073
|
+
],
|
|
1074
|
+
[
|
|
1075
|
+
"Thailand (ไทย)",
|
|
1076
|
+
"th",
|
|
1077
|
+
"66"
|
|
1078
|
+
],
|
|
1079
|
+
[
|
|
1080
|
+
"Timor-Leste",
|
|
1081
|
+
"tl",
|
|
1082
|
+
"670"
|
|
1083
|
+
],
|
|
1084
|
+
[
|
|
1085
|
+
"Togo",
|
|
1086
|
+
"tg",
|
|
1087
|
+
"228"
|
|
1088
|
+
],
|
|
1089
|
+
[
|
|
1090
|
+
"Tokelau",
|
|
1091
|
+
"tk",
|
|
1092
|
+
"690"
|
|
1093
|
+
],
|
|
1094
|
+
[
|
|
1095
|
+
"Tonga",
|
|
1096
|
+
"to",
|
|
1097
|
+
"676"
|
|
1098
|
+
],
|
|
1099
|
+
[
|
|
1100
|
+
"Trinidad and Tobago",
|
|
1101
|
+
"tt",
|
|
1102
|
+
"1868"
|
|
1103
|
+
],
|
|
1104
|
+
[
|
|
1105
|
+
"Tunisia (تونس)",
|
|
1106
|
+
"tn",
|
|
1107
|
+
"216"
|
|
1108
|
+
],
|
|
1109
|
+
[
|
|
1110
|
+
"Turkey (Türkiye)",
|
|
1111
|
+
"tr",
|
|
1112
|
+
"90"
|
|
1113
|
+
],
|
|
1114
|
+
[
|
|
1115
|
+
"Turkmenistan",
|
|
1116
|
+
"tm",
|
|
1117
|
+
"993"
|
|
1118
|
+
],
|
|
1119
|
+
[
|
|
1120
|
+
"Turks and Caicos Islands",
|
|
1121
|
+
"tc",
|
|
1122
|
+
"1649"
|
|
1123
|
+
],
|
|
1124
|
+
[
|
|
1125
|
+
"Tuvalu",
|
|
1126
|
+
"tv",
|
|
1127
|
+
"688"
|
|
1128
|
+
],
|
|
1129
|
+
[
|
|
1130
|
+
"U.S. Virgin Islands",
|
|
1131
|
+
"vi",
|
|
1132
|
+
"1340"
|
|
1133
|
+
],
|
|
1134
|
+
[
|
|
1135
|
+
"Uganda",
|
|
1136
|
+
"ug",
|
|
1137
|
+
"256"
|
|
1138
|
+
],
|
|
1139
|
+
[
|
|
1140
|
+
"Ukraine (Україна)",
|
|
1141
|
+
"ua",
|
|
1142
|
+
"380"
|
|
1143
|
+
],
|
|
1144
|
+
[
|
|
1145
|
+
"United Arab Emirates (الإمارات العربية المتحدة)",
|
|
1146
|
+
"ae",
|
|
1147
|
+
"971"
|
|
1148
|
+
],
|
|
1149
|
+
[
|
|
1150
|
+
"United Kingdom",
|
|
1151
|
+
"gb",
|
|
1152
|
+
"44"
|
|
1153
|
+
],
|
|
1154
|
+
[
|
|
1155
|
+
"United States",
|
|
1156
|
+
"us",
|
|
1157
|
+
"1"
|
|
1158
|
+
],
|
|
1159
|
+
[
|
|
1160
|
+
"Uruguay",
|
|
1161
|
+
"uy",
|
|
1162
|
+
"598"
|
|
1163
|
+
],
|
|
1164
|
+
[
|
|
1165
|
+
"Uzbekistan (Oʻzbekiston)",
|
|
1166
|
+
"uz",
|
|
1167
|
+
"998"
|
|
1168
|
+
],
|
|
1169
|
+
[
|
|
1170
|
+
"Vanuatu",
|
|
1171
|
+
"vu",
|
|
1172
|
+
"678"
|
|
1173
|
+
],
|
|
1174
|
+
[
|
|
1175
|
+
"Vatican City (Città del Vaticano)",
|
|
1176
|
+
"va",
|
|
1177
|
+
"39"
|
|
1178
|
+
],
|
|
1179
|
+
[
|
|
1180
|
+
"Venezuela",
|
|
1181
|
+
"ve",
|
|
1182
|
+
"58"
|
|
1183
|
+
],
|
|
1184
|
+
[
|
|
1185
|
+
"Vietnam (Việt Nam)",
|
|
1186
|
+
"vn",
|
|
1187
|
+
"84"
|
|
1188
|
+
],
|
|
1189
|
+
[
|
|
1190
|
+
"Wallis and Futuna (Wallis-et-Futuna)",
|
|
1191
|
+
"wf",
|
|
1192
|
+
"681"
|
|
1193
|
+
],
|
|
1194
|
+
[
|
|
1195
|
+
"Western Sahara (الصحراء الغربية)",
|
|
1196
|
+
"eh",
|
|
1197
|
+
"212"
|
|
1198
|
+
],
|
|
1199
|
+
[
|
|
1200
|
+
"Yemen (اليمن)",
|
|
1201
|
+
"ye",
|
|
1202
|
+
"967"
|
|
1203
|
+
],
|
|
1204
|
+
[
|
|
1205
|
+
"Zambia",
|
|
1206
|
+
"zm",
|
|
1207
|
+
"260"
|
|
1208
|
+
],
|
|
1209
|
+
[
|
|
1210
|
+
"Zimbabwe",
|
|
1211
|
+
"zw",
|
|
1212
|
+
"263"
|
|
1213
|
+
],
|
|
1214
|
+
[
|
|
1215
|
+
"Åland Islands",
|
|
1216
|
+
"ax",
|
|
1217
|
+
"358"
|
|
1218
|
+
]
|
|
1219
|
+
], Ue = je.map(([e, d, t]) => ({
|
|
1220
|
+
name: e,
|
|
1221
|
+
iso2: d.toUpperCase(),
|
|
1222
|
+
dialCode: t
|
|
1223
|
+
}));
|
|
1224
|
+
function He() {
|
|
1225
|
+
return fetch("https://ip2c.org/s").then((e) => e.text()).then((e) => {
|
|
1226
|
+
const d = (e || "").toString();
|
|
1227
|
+
if (!d || d[0] !== "1")
|
|
1228
|
+
throw new Error("unable to fetch the country");
|
|
1229
|
+
return d.substr(2, 2);
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
function Ve(e, d) {
|
|
1233
|
+
if (e.setSelectionRange)
|
|
1234
|
+
e.focus(), e.setSelectionRange(d, d);
|
|
1235
|
+
else if (e.createTextRange) {
|
|
1236
|
+
const t = e.createTextRange();
|
|
1237
|
+
t.collapse(!0), t.moveEnd("character", d), t.moveStart("character", d), t.select();
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
const Ke = [
|
|
1241
|
+
{
|
|
1242
|
+
name: "allCountries",
|
|
1243
|
+
type: Array,
|
|
1244
|
+
default: Ue,
|
|
1245
|
+
description: "All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",
|
|
1246
|
+
inDemo: !1
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
name: "autoFormat",
|
|
1250
|
+
type: Boolean,
|
|
1251
|
+
default: !0,
|
|
1252
|
+
description: "Auto update the input to the formatted phone number when it's valid",
|
|
1253
|
+
inDemo: !0
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
name: "customValidate",
|
|
1257
|
+
type: [Boolean, RegExp],
|
|
1258
|
+
default: !1,
|
|
1259
|
+
description: "Custom validation RegExp for input",
|
|
1260
|
+
inDemo: !1
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
name: "defaultCountry",
|
|
1264
|
+
default: "",
|
|
1265
|
+
type: [String, Number],
|
|
1266
|
+
description: "Default country (by iso2 or dialCode), will override the country fetched from IP address of user",
|
|
1267
|
+
inDemo: !1
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
name: "disabled",
|
|
1271
|
+
default: !1,
|
|
1272
|
+
type: Boolean,
|
|
1273
|
+
description: "Disable <code>vue-tel-input</code>, including the input & flag dropdown",
|
|
1274
|
+
inDemo: !1
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
name: "autoDefaultCountry",
|
|
1278
|
+
default: !0,
|
|
1279
|
+
type: Boolean,
|
|
1280
|
+
description: "To fetch default country based on IP address of user",
|
|
1281
|
+
inDemo: !1
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
name: "dropdownOptions",
|
|
1285
|
+
type: Object,
|
|
1286
|
+
description: "Options for dropdown, see below",
|
|
1287
|
+
inDemo: !1
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
name: "dropdownOptions.disabled",
|
|
1291
|
+
default: !1,
|
|
1292
|
+
type: Boolean,
|
|
1293
|
+
description: "Disable dropdown",
|
|
1294
|
+
inDemo: !1
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
name: "dropdownOptions.showDialCodeInList",
|
|
1298
|
+
default: !0,
|
|
1299
|
+
type: Boolean,
|
|
1300
|
+
description: "Show dial code in the dropdown list",
|
|
1301
|
+
inDemo: !0
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
name: "dropdownOptions.showDialCodeInSelection",
|
|
1305
|
+
default: !1,
|
|
1306
|
+
type: Boolean,
|
|
1307
|
+
description: "Show dial code in the dropdown selection",
|
|
1308
|
+
inDemo: !0
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
name: "dropdownOptions.showFlags",
|
|
1312
|
+
default: !0,
|
|
1313
|
+
type: Boolean,
|
|
1314
|
+
description: "Show flags in the dropdown selection and list",
|
|
1315
|
+
inDemo: !0
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
name: "dropdownOptions.tabindex",
|
|
1319
|
+
default: 0,
|
|
1320
|
+
type: Number,
|
|
1321
|
+
description: "Native dropdown <code>tabindex</code> attribute",
|
|
1322
|
+
inDemo: !1
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
name: "ignoredCountries",
|
|
1326
|
+
default: [],
|
|
1327
|
+
type: Array,
|
|
1328
|
+
description: "List of countries will NOT be shown on the dropdown",
|
|
1329
|
+
inDemo: !1
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
name: "inputOptions",
|
|
1333
|
+
type: Object,
|
|
1334
|
+
description: "Options for input, see below",
|
|
1335
|
+
inDemo: !1
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
name: "inputOptions.autocomplete",
|
|
1339
|
+
type: String,
|
|
1340
|
+
default: "on",
|
|
1341
|
+
description: "Native input <code>autocomplete</code> attribute",
|
|
1342
|
+
inDemo: !1
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
name: "inputOptions.autofocus",
|
|
1346
|
+
type: Boolean,
|
|
1347
|
+
default: !1,
|
|
1348
|
+
description: "Native input <code>autofocus</code> attribute",
|
|
1349
|
+
inDemo: !1
|
|
1350
|
+
},
|
|
1351
|
+
// {
|
|
1352
|
+
// name: 'inputOptions.dynamicPlaceholder',
|
|
1353
|
+
// default: false,
|
|
1354
|
+
// type: Boolean,
|
|
1355
|
+
// description: 'Placeholder as a sample phone number in the current country',
|
|
1356
|
+
// inDemo: false,
|
|
1357
|
+
// },
|
|
1358
|
+
{
|
|
1359
|
+
name: "inputOptions.aria-describedby",
|
|
1360
|
+
default: "",
|
|
1361
|
+
type: String,
|
|
1362
|
+
description: "Native input <code>aria-describedby</code> attribute",
|
|
1363
|
+
inDemo: !1
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
name: "inputOptions.id",
|
|
1367
|
+
default: "",
|
|
1368
|
+
type: String,
|
|
1369
|
+
description: "Native input <code>id</code> attribute",
|
|
1370
|
+
inDemo: !1
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
name: "inputOptions.maxlength",
|
|
1374
|
+
default: 25,
|
|
1375
|
+
type: Number,
|
|
1376
|
+
description: "Native input <code>maxlength</code> attribute",
|
|
1377
|
+
inDemo: !1
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
name: "inputOptions.name",
|
|
1381
|
+
default: "telephone",
|
|
1382
|
+
type: String,
|
|
1383
|
+
description: "Native input <code>name</code> attribute",
|
|
1384
|
+
inDemo: !1
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
name: "inputOptions.showDialCode",
|
|
1388
|
+
default: !1,
|
|
1389
|
+
type: Boolean,
|
|
1390
|
+
description: "Show dial code in input",
|
|
1391
|
+
inDemo: !1
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
name: "inputOptions.placeholder",
|
|
1395
|
+
default: "Enter a phone number",
|
|
1396
|
+
type: String,
|
|
1397
|
+
description: "Placeholder for the input",
|
|
1398
|
+
inDemo: !1
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
name: "inputOptions.readonly",
|
|
1402
|
+
default: !1,
|
|
1403
|
+
type: Boolean,
|
|
1404
|
+
description: "Native input <code>readonly</code> attribute",
|
|
1405
|
+
inDemo: !1
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
name: "inputOptions.required",
|
|
1409
|
+
default: !1,
|
|
1410
|
+
type: Boolean,
|
|
1411
|
+
description: "Native input <code>required</code> attribute",
|
|
1412
|
+
inDemo: !1
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
name: "inputOptions.tabindex",
|
|
1416
|
+
default: 0,
|
|
1417
|
+
type: Number,
|
|
1418
|
+
description: "Native input <code>tabindex</code> attribute",
|
|
1419
|
+
inDemo: !1
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
name: "inputOptions.type",
|
|
1423
|
+
default: "tel",
|
|
1424
|
+
type: String,
|
|
1425
|
+
description: "Native input <code>type</code> attribute",
|
|
1426
|
+
inDemo: !1
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
name: "inputOptions.styleClasses",
|
|
1430
|
+
default: "",
|
|
1431
|
+
type: [String, Array, Object],
|
|
1432
|
+
description: "Custom classes for the <code>input</code>",
|
|
1433
|
+
inDemo: !1
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
name: "invalidMsg",
|
|
1437
|
+
default: "",
|
|
1438
|
+
type: String,
|
|
1439
|
+
description: "",
|
|
1440
|
+
inDemo: !1
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
name: "mode",
|
|
1444
|
+
default: "auto",
|
|
1445
|
+
type: String,
|
|
1446
|
+
description: "Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",
|
|
1447
|
+
inDemo: !0,
|
|
1448
|
+
options: ["auto", "national", "international"]
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
name: "onlyCountries",
|
|
1452
|
+
default: [],
|
|
1453
|
+
type: Array,
|
|
1454
|
+
description: "List of countries will be shown on the dropdown",
|
|
1455
|
+
inDemo: !1
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
name: "preferredCountries",
|
|
1459
|
+
default: [],
|
|
1460
|
+
type: Array,
|
|
1461
|
+
description: "Preferred countries list, will be on top of the dropdown",
|
|
1462
|
+
inDemo: !1
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
name: "styleClasses",
|
|
1466
|
+
default: "",
|
|
1467
|
+
type: [String, Array, Object],
|
|
1468
|
+
description: "Custom classes for the wrapper",
|
|
1469
|
+
inDemo: !1
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
name: "validCharactersOnly",
|
|
1473
|
+
default: !1,
|
|
1474
|
+
type: Boolean,
|
|
1475
|
+
description: "Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",
|
|
1476
|
+
inDemo: !1
|
|
1477
|
+
}
|
|
1478
|
+
], Pe = [...Ke].reduce((e, d) => {
|
|
1479
|
+
if (d.name.includes(".")) {
|
|
1480
|
+
const [t, n] = d.name.split(".");
|
|
1481
|
+
e[t] ? Object.assign(e[t], { [n]: d.default }) : Object.assign(e, { [t]: { [n]: d.default } });
|
|
1482
|
+
} else
|
|
1483
|
+
Object.assign(e, { [d.name]: d.default });
|
|
1484
|
+
return e;
|
|
1485
|
+
}, {}), B = {
|
|
1486
|
+
options: { ...Pe }
|
|
1487
|
+
}, We = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([457]\\d{6})$", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2457]\\d{6})$", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "1|([267]\\d{6})$", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "0|(183[12])", 0, 0, 0, [["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}", [9]], ["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|22"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "[025-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[025-7]"]]]], BG: ["359", "00", "[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[047]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:[25689]\\d|40)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]]]], BL: ["590", "00", "(?:590|(?:69|80)\\d|976)\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|5[12]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-8]\\d{6})$", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "(?:[2-467]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([3-8]\\d{6})$", "242$1", 0, "242"], BT: ["975", "00", "[17]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-79]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "(?:[2-8]\\d|90)\\d{8}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-7]|33|44|66|77|88)|622)[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "0|([59]\\d{7})$", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "[189]\\d{8}|[1-68]\\d{6}", [7, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9[2-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]", "(?:10|2[0-57-9])(?:10|9[56])", "(?:10|2[0-57-9])(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "0|(1(?:[12]\\d|79)\\d\\d)", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}", [10, 11], [["(\\d{3})(\\d{7})", "$1 $2", ["6"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["[39]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0(4(?:[14]4|56)|[579])?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["5"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "0|([59]\\d{7})$", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|[23]1|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[0568]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[189]"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, "528[89]"], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d)(\\d{4,9})", "$1 $2", ["[2568][1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[12]00|[368]|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[1245]|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[01359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-79]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-26-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94|80\\d|976)\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "0|([25-9]\\d{5})$", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d\\d|606)\\d{5}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "(?:590|(?:69|80)\\d|976)\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-289]|7[08]|8[0-689]|9\\d)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "1|([3-9]\\d{6})$", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-5]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-489]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-489]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "0|([25-8]\\d{5})$", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[06]0)"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, [["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[1-9]\\d{8}|3[2-9]\\d{7}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], 0, 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "0|([0-24-8]\\d{5})$", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[257-9]"], "0$1"]], "0"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|(?:[235-8]\\d|99)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["30[013-9]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "1|([2-8]\\d{6})$", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "0|(1001)"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[4-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(8-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "8 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(8-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(8-$1)", 1]], "8", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{5})(\\d{4})", "$1-$2", ["5(?:29|38)", "5(?:29[89]|389)", "5(?:29[89]|389)0"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-489]|3[5-9]|9)|892", "5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5(?:29(?:[189][05]|2[29]|3[01])|389[05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[08]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]))\\d{6}"], ["80\\d{7}"], ["89\\d{7}"], 0, 0, 0, 0, ["592(?:4[0-2]|93)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["6"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590|(?:69|80)\\d|976)\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "0|([24-9]\\d{6})$", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "670$1", 0, "670"], MQ: ["596", "00", "(?:69|80)\\d{7}|(?:59|97)6\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "1|([34]\\d{6})$", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["5"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[3467]|9[13-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}", [10, 11], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"], 0, 1], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 $3 $4", ["1(?:33|5[56]|81)"], 0, 1], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 $3 $4", ["1"], 0, 1]], "01", 0, "0(?:[12]|4[45])|1", 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[04]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}", [7, 8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["78"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|9(?:0[3-9]|[1-9])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[3-7]|8[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[489]|59"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-7]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], NU: ["683", "00", "(?:[47]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-579]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|[89]0", "50(?:[0367]|88)|[89]0"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[59]|80"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7|86"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "(?:[45]|80\\d\\d)\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-6])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}", [7, 8, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["2[126]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]]]], RE: ["262", "00", "976\\d{6}|(?:26|[68]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "0$1"]], "0", 0, 0, 0, 0, "26[23]|69|[89]"], RO: ["40", "00", "(?:[2378]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[237-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "3[04-689]|[489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]]], "0"], SA: ["966", "00", "92\\d{7}|(?:[15]|8\\d)\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["81"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "(?:[1-6]|[7-9]\\d\\d)\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "800\\d{4}|(?:[249]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-5]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|[57]9)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["24|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[3478]|64|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\d)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-8]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[267]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|(5\\d{6})$", "721$1", 0, "721"], SY: ["963", "00", "[1-39]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-5]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "1|([2-479]\\d{6})$", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|[69]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2679]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:00|[1-57-9]\\d)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[34]7|91[78]"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3[1-5]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[0-57-9]"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "[1-6]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["6"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|616)", "5(?:[0-59]|6161)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-46-8]\\d{6})$", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[26-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|5[25]|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["405|8|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["4"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "810", "(?:33|55|[679]\\d|88)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[35-9]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-578]\\d{6})$", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[69]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[3578]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[478]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[23]"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7[24-68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "80\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, "269|63"], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|63|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[35-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "[0-36-9]\\d{8}", [9], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-36-9]"]]], 0, 0, 0, 0, 0, 0, [0, ["[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["4"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[19]"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["34[57]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-3]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, 0, 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]], 883: ["883", 0, "(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?", [9, 10, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["2"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[35]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
|
|
1488
|
+
function ze(e, d) {
|
|
1489
|
+
var t = Array.prototype.slice.call(d);
|
|
1490
|
+
return t.push(We), e.apply(this, t);
|
|
1491
|
+
}
|
|
1492
|
+
function G(e) {
|
|
1493
|
+
return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
|
|
1494
|
+
return typeof d;
|
|
1495
|
+
} : function(d) {
|
|
1496
|
+
return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
|
|
1497
|
+
}, G(e);
|
|
1498
|
+
}
|
|
1499
|
+
function J(e, d) {
|
|
1500
|
+
for (var t = 0; t < d.length; t++) {
|
|
1501
|
+
var n = d[t];
|
|
1502
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
function Xe(e, d, t) {
|
|
1506
|
+
return d && J(e.prototype, d), t && J(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1507
|
+
}
|
|
1508
|
+
function Ye(e, d) {
|
|
1509
|
+
if (!(e instanceof d))
|
|
1510
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1511
|
+
}
|
|
1512
|
+
function Ze(e, d) {
|
|
1513
|
+
if (typeof d != "function" && d !== null)
|
|
1514
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1515
|
+
e.prototype = Object.create(d && d.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), d && w(e, d);
|
|
1516
|
+
}
|
|
1517
|
+
function Je(e) {
|
|
1518
|
+
var d = we();
|
|
1519
|
+
return function() {
|
|
1520
|
+
var n = I(e), r;
|
|
1521
|
+
if (d) {
|
|
1522
|
+
var i = I(this).constructor;
|
|
1523
|
+
r = Reflect.construct(n, arguments, i);
|
|
1524
|
+
} else
|
|
1525
|
+
r = n.apply(this, arguments);
|
|
1526
|
+
return qe(this, r);
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
function qe(e, d) {
|
|
1530
|
+
if (d && (G(d) === "object" || typeof d == "function"))
|
|
1531
|
+
return d;
|
|
1532
|
+
if (d !== void 0)
|
|
1533
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1534
|
+
return Ne(e);
|
|
1535
|
+
}
|
|
1536
|
+
function Ne(e) {
|
|
1537
|
+
if (e === void 0)
|
|
1538
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1539
|
+
return e;
|
|
1540
|
+
}
|
|
1541
|
+
function j(e) {
|
|
1542
|
+
var d = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1543
|
+
return j = function(n) {
|
|
1544
|
+
if (n === null || !Qe(n))
|
|
1545
|
+
return n;
|
|
1546
|
+
if (typeof n != "function")
|
|
1547
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
1548
|
+
if (typeof d < "u") {
|
|
1549
|
+
if (d.has(n))
|
|
1550
|
+
return d.get(n);
|
|
1551
|
+
d.set(n, r);
|
|
1552
|
+
}
|
|
1553
|
+
function r() {
|
|
1554
|
+
return _(n, arguments, I(this).constructor);
|
|
1555
|
+
}
|
|
1556
|
+
return r.prototype = Object.create(n.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), w(r, n);
|
|
1557
|
+
}, j(e);
|
|
1558
|
+
}
|
|
1559
|
+
function _(e, d, t) {
|
|
1560
|
+
return we() ? _ = Reflect.construct : _ = function(r, i, a) {
|
|
1561
|
+
var $ = [null];
|
|
1562
|
+
$.push.apply($, i);
|
|
1563
|
+
var u = Function.bind.apply(r, $), o = new u();
|
|
1564
|
+
return a && w(o, a.prototype), o;
|
|
1565
|
+
}, _.apply(null, arguments);
|
|
1566
|
+
}
|
|
1567
|
+
function we() {
|
|
1568
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1569
|
+
return !1;
|
|
1570
|
+
if (typeof Proxy == "function")
|
|
1571
|
+
return !0;
|
|
1572
|
+
try {
|
|
1573
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1574
|
+
})), !0;
|
|
1575
|
+
} catch {
|
|
1576
|
+
return !1;
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
function Qe(e) {
|
|
1580
|
+
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
1581
|
+
}
|
|
1582
|
+
function w(e, d) {
|
|
1583
|
+
return w = Object.setPrototypeOf || function(n, r) {
|
|
1584
|
+
return n.__proto__ = r, n;
|
|
1585
|
+
}, w(e, d);
|
|
1586
|
+
}
|
|
1587
|
+
function I(e) {
|
|
1588
|
+
return I = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
|
|
1589
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1590
|
+
}, I(e);
|
|
1591
|
+
}
|
|
1592
|
+
var m = /* @__PURE__ */ function(e) {
|
|
1593
|
+
Ze(t, e);
|
|
1594
|
+
var d = Je(t);
|
|
1595
|
+
function t(n) {
|
|
1596
|
+
var r;
|
|
1597
|
+
return Ye(this, t), r = d.call(this, n), Object.setPrototypeOf(Ne(r), t.prototype), r.name = r.constructor.name, r;
|
|
1598
|
+
}
|
|
1599
|
+
return Xe(t);
|
|
1600
|
+
}(/* @__PURE__ */ j(Error)), V = 2, ed = 17, dd = 3, g = "0-90-9٠-٩۰-۹", td = "-‐-―−ー-", nd = "//", rd = "..", id = " ", $d = "()()[]\\[\\]", ad = "~⁓∼~", T = "".concat(td).concat(nd).concat(rd).concat(id).concat($d).concat(ad), K = "++";
|
|
1601
|
+
function q(e, d) {
|
|
1602
|
+
e = e.split("-"), d = d.split("-");
|
|
1603
|
+
for (var t = e[0].split("."), n = d[0].split("."), r = 0; r < 3; r++) {
|
|
1604
|
+
var i = Number(t[r]), a = Number(n[r]);
|
|
1605
|
+
if (i > a)
|
|
1606
|
+
return 1;
|
|
1607
|
+
if (a > i)
|
|
1608
|
+
return -1;
|
|
1609
|
+
if (!isNaN(i) && isNaN(a))
|
|
1610
|
+
return 1;
|
|
1611
|
+
if (isNaN(i) && !isNaN(a))
|
|
1612
|
+
return -1;
|
|
1613
|
+
}
|
|
1614
|
+
return e[1] && d[1] ? e[1] > d[1] ? 1 : e[1] < d[1] ? -1 : 0 : !e[1] && d[1] ? 1 : e[1] && !d[1] ? -1 : 0;
|
|
1615
|
+
}
|
|
1616
|
+
function F(e) {
|
|
1617
|
+
return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
|
|
1618
|
+
return typeof d;
|
|
1619
|
+
} : function(d) {
|
|
1620
|
+
return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
|
|
1621
|
+
}, F(e);
|
|
1622
|
+
}
|
|
1623
|
+
function A(e, d) {
|
|
1624
|
+
if (!(e instanceof d))
|
|
1625
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1626
|
+
}
|
|
1627
|
+
function Q(e, d) {
|
|
1628
|
+
for (var t = 0; t < d.length; t++) {
|
|
1629
|
+
var n = d[t];
|
|
1630
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
function D(e, d, t) {
|
|
1634
|
+
return d && Q(e.prototype, d), t && Q(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1635
|
+
}
|
|
1636
|
+
var od = "1.2.0", ud = "1.7.35", ee = " ext. ", sd = /^\d+$/, l = /* @__PURE__ */ function() {
|
|
1637
|
+
function e(d) {
|
|
1638
|
+
A(this, e), hd(d), this.metadata = d, Ie.call(this, d);
|
|
1639
|
+
}
|
|
1640
|
+
return D(e, [{
|
|
1641
|
+
key: "getCountries",
|
|
1642
|
+
value: function() {
|
|
1643
|
+
return Object.keys(this.metadata.countries).filter(function(t) {
|
|
1644
|
+
return t !== "001";
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
}, {
|
|
1648
|
+
key: "getCountryMetadata",
|
|
1649
|
+
value: function(t) {
|
|
1650
|
+
return this.metadata.countries[t];
|
|
1651
|
+
}
|
|
1652
|
+
}, {
|
|
1653
|
+
key: "nonGeographic",
|
|
1654
|
+
value: function() {
|
|
1655
|
+
if (!(this.v1 || this.v2 || this.v3))
|
|
1656
|
+
return this.metadata.nonGeographic || this.metadata.nonGeographical;
|
|
1657
|
+
}
|
|
1658
|
+
}, {
|
|
1659
|
+
key: "hasCountry",
|
|
1660
|
+
value: function(t) {
|
|
1661
|
+
return this.getCountryMetadata(t) !== void 0;
|
|
1662
|
+
}
|
|
1663
|
+
}, {
|
|
1664
|
+
key: "hasCallingCode",
|
|
1665
|
+
value: function(t) {
|
|
1666
|
+
if (this.getCountryCodesForCallingCode(t))
|
|
1667
|
+
return !0;
|
|
1668
|
+
if (this.nonGeographic()) {
|
|
1669
|
+
if (this.nonGeographic()[t])
|
|
1670
|
+
return !0;
|
|
1671
|
+
} else {
|
|
1672
|
+
var n = this.countryCallingCodes()[t];
|
|
1673
|
+
if (n && n.length === 1 && n[0] === "001")
|
|
1674
|
+
return !0;
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
}, {
|
|
1678
|
+
key: "isNonGeographicCallingCode",
|
|
1679
|
+
value: function(t) {
|
|
1680
|
+
return this.nonGeographic() ? !!this.nonGeographic()[t] : !this.getCountryCodesForCallingCode(t);
|
|
1681
|
+
}
|
|
1682
|
+
// Deprecated.
|
|
1683
|
+
}, {
|
|
1684
|
+
key: "country",
|
|
1685
|
+
value: function(t) {
|
|
1686
|
+
return this.selectNumberingPlan(t);
|
|
1687
|
+
}
|
|
1688
|
+
}, {
|
|
1689
|
+
key: "selectNumberingPlan",
|
|
1690
|
+
value: function(t, n) {
|
|
1691
|
+
if (t && sd.test(t) && (n = t, t = null), t && t !== "001") {
|
|
1692
|
+
if (!this.hasCountry(t))
|
|
1693
|
+
throw new Error("Unknown country: ".concat(t));
|
|
1694
|
+
this.numberingPlan = new de(this.getCountryMetadata(t), this);
|
|
1695
|
+
} else if (n) {
|
|
1696
|
+
if (!this.hasCallingCode(n))
|
|
1697
|
+
throw new Error("Unknown calling code: ".concat(n));
|
|
1698
|
+
this.numberingPlan = new de(this.getNumberingPlanMetadata(n), this);
|
|
1699
|
+
} else
|
|
1700
|
+
this.numberingPlan = void 0;
|
|
1701
|
+
return this;
|
|
1702
|
+
}
|
|
1703
|
+
}, {
|
|
1704
|
+
key: "getCountryCodesForCallingCode",
|
|
1705
|
+
value: function(t) {
|
|
1706
|
+
var n = this.countryCallingCodes()[t];
|
|
1707
|
+
if (n)
|
|
1708
|
+
return n.length === 1 && n[0].length === 3 ? void 0 : n;
|
|
1709
|
+
}
|
|
1710
|
+
}, {
|
|
1711
|
+
key: "getCountryCodeForCallingCode",
|
|
1712
|
+
value: function(t) {
|
|
1713
|
+
var n = this.getCountryCodesForCallingCode(t);
|
|
1714
|
+
if (n)
|
|
1715
|
+
return n[0];
|
|
1716
|
+
}
|
|
1717
|
+
}, {
|
|
1718
|
+
key: "getNumberingPlanMetadata",
|
|
1719
|
+
value: function(t) {
|
|
1720
|
+
var n = this.getCountryCodeForCallingCode(t);
|
|
1721
|
+
if (n)
|
|
1722
|
+
return this.getCountryMetadata(n);
|
|
1723
|
+
if (this.nonGeographic()) {
|
|
1724
|
+
var r = this.nonGeographic()[t];
|
|
1725
|
+
if (r)
|
|
1726
|
+
return r;
|
|
1727
|
+
} else {
|
|
1728
|
+
var i = this.countryCallingCodes()[t];
|
|
1729
|
+
if (i && i.length === 1 && i[0] === "001")
|
|
1730
|
+
return this.metadata.countries["001"];
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
// Deprecated.
|
|
1734
|
+
}, {
|
|
1735
|
+
key: "countryCallingCode",
|
|
1736
|
+
value: function() {
|
|
1737
|
+
return this.numberingPlan.callingCode();
|
|
1738
|
+
}
|
|
1739
|
+
// Deprecated.
|
|
1740
|
+
}, {
|
|
1741
|
+
key: "IDDPrefix",
|
|
1742
|
+
value: function() {
|
|
1743
|
+
return this.numberingPlan.IDDPrefix();
|
|
1744
|
+
}
|
|
1745
|
+
// Deprecated.
|
|
1746
|
+
}, {
|
|
1747
|
+
key: "defaultIDDPrefix",
|
|
1748
|
+
value: function() {
|
|
1749
|
+
return this.numberingPlan.defaultIDDPrefix();
|
|
1750
|
+
}
|
|
1751
|
+
// Deprecated.
|
|
1752
|
+
}, {
|
|
1753
|
+
key: "nationalNumberPattern",
|
|
1754
|
+
value: function() {
|
|
1755
|
+
return this.numberingPlan.nationalNumberPattern();
|
|
1756
|
+
}
|
|
1757
|
+
// Deprecated.
|
|
1758
|
+
}, {
|
|
1759
|
+
key: "possibleLengths",
|
|
1760
|
+
value: function() {
|
|
1761
|
+
return this.numberingPlan.possibleLengths();
|
|
1762
|
+
}
|
|
1763
|
+
// Deprecated.
|
|
1764
|
+
}, {
|
|
1765
|
+
key: "formats",
|
|
1766
|
+
value: function() {
|
|
1767
|
+
return this.numberingPlan.formats();
|
|
1768
|
+
}
|
|
1769
|
+
// Deprecated.
|
|
1770
|
+
}, {
|
|
1771
|
+
key: "nationalPrefixForParsing",
|
|
1772
|
+
value: function() {
|
|
1773
|
+
return this.numberingPlan.nationalPrefixForParsing();
|
|
1774
|
+
}
|
|
1775
|
+
// Deprecated.
|
|
1776
|
+
}, {
|
|
1777
|
+
key: "nationalPrefixTransformRule",
|
|
1778
|
+
value: function() {
|
|
1779
|
+
return this.numberingPlan.nationalPrefixTransformRule();
|
|
1780
|
+
}
|
|
1781
|
+
// Deprecated.
|
|
1782
|
+
}, {
|
|
1783
|
+
key: "leadingDigits",
|
|
1784
|
+
value: function() {
|
|
1785
|
+
return this.numberingPlan.leadingDigits();
|
|
1786
|
+
}
|
|
1787
|
+
// Deprecated.
|
|
1788
|
+
}, {
|
|
1789
|
+
key: "hasTypes",
|
|
1790
|
+
value: function() {
|
|
1791
|
+
return this.numberingPlan.hasTypes();
|
|
1792
|
+
}
|
|
1793
|
+
// Deprecated.
|
|
1794
|
+
}, {
|
|
1795
|
+
key: "type",
|
|
1796
|
+
value: function(t) {
|
|
1797
|
+
return this.numberingPlan.type(t);
|
|
1798
|
+
}
|
|
1799
|
+
// Deprecated.
|
|
1800
|
+
}, {
|
|
1801
|
+
key: "ext",
|
|
1802
|
+
value: function() {
|
|
1803
|
+
return this.numberingPlan.ext();
|
|
1804
|
+
}
|
|
1805
|
+
}, {
|
|
1806
|
+
key: "countryCallingCodes",
|
|
1807
|
+
value: function() {
|
|
1808
|
+
return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
|
|
1809
|
+
}
|
|
1810
|
+
// Deprecated.
|
|
1811
|
+
}, {
|
|
1812
|
+
key: "chooseCountryByCountryCallingCode",
|
|
1813
|
+
value: function(t) {
|
|
1814
|
+
return this.selectNumberingPlan(t);
|
|
1815
|
+
}
|
|
1816
|
+
}, {
|
|
1817
|
+
key: "hasSelectedNumberingPlan",
|
|
1818
|
+
value: function() {
|
|
1819
|
+
return this.numberingPlan !== void 0;
|
|
1820
|
+
}
|
|
1821
|
+
}]), e;
|
|
1822
|
+
}(), de = /* @__PURE__ */ function() {
|
|
1823
|
+
function e(d, t) {
|
|
1824
|
+
A(this, e), this.globalMetadataObject = t, this.metadata = d, Ie.call(this, t.metadata);
|
|
1825
|
+
}
|
|
1826
|
+
return D(e, [{
|
|
1827
|
+
key: "callingCode",
|
|
1828
|
+
value: function() {
|
|
1829
|
+
return this.metadata[0];
|
|
1830
|
+
}
|
|
1831
|
+
// Formatting information for regions which share
|
|
1832
|
+
// a country calling code is contained by only one region
|
|
1833
|
+
// for performance reasons. For example, for NANPA region
|
|
1834
|
+
// ("North American Numbering Plan Administration",
|
|
1835
|
+
// which includes USA, Canada, Cayman Islands, Bahamas, etc)
|
|
1836
|
+
// it will be contained in the metadata for `US`.
|
|
1837
|
+
}, {
|
|
1838
|
+
key: "getDefaultCountryMetadataForRegion",
|
|
1839
|
+
value: function() {
|
|
1840
|
+
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
|
1841
|
+
}
|
|
1842
|
+
// Is always present.
|
|
1843
|
+
}, {
|
|
1844
|
+
key: "IDDPrefix",
|
|
1845
|
+
value: function() {
|
|
1846
|
+
if (!(this.v1 || this.v2))
|
|
1847
|
+
return this.metadata[1];
|
|
1848
|
+
}
|
|
1849
|
+
// Is only present when a country supports multiple IDD prefixes.
|
|
1850
|
+
}, {
|
|
1851
|
+
key: "defaultIDDPrefix",
|
|
1852
|
+
value: function() {
|
|
1853
|
+
if (!(this.v1 || this.v2))
|
|
1854
|
+
return this.metadata[12];
|
|
1855
|
+
}
|
|
1856
|
+
}, {
|
|
1857
|
+
key: "nationalNumberPattern",
|
|
1858
|
+
value: function() {
|
|
1859
|
+
return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
|
|
1860
|
+
}
|
|
1861
|
+
// "possible length" data is always present in Google's metadata.
|
|
1862
|
+
}, {
|
|
1863
|
+
key: "possibleLengths",
|
|
1864
|
+
value: function() {
|
|
1865
|
+
if (!this.v1)
|
|
1866
|
+
return this.metadata[this.v2 ? 2 : 3];
|
|
1867
|
+
}
|
|
1868
|
+
}, {
|
|
1869
|
+
key: "_getFormats",
|
|
1870
|
+
value: function(t) {
|
|
1871
|
+
return t[this.v1 ? 2 : this.v2 ? 3 : 4];
|
|
1872
|
+
}
|
|
1873
|
+
// For countries of the same region (e.g. NANPA)
|
|
1874
|
+
// formats are all stored in the "main" country for that region.
|
|
1875
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
|
1876
|
+
}, {
|
|
1877
|
+
key: "formats",
|
|
1878
|
+
value: function() {
|
|
1879
|
+
var t = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
1880
|
+
return n.map(function(r) {
|
|
1881
|
+
return new ld(r, t);
|
|
1882
|
+
});
|
|
1883
|
+
}
|
|
1884
|
+
}, {
|
|
1885
|
+
key: "nationalPrefix",
|
|
1886
|
+
value: function() {
|
|
1887
|
+
return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
|
|
1888
|
+
}
|
|
1889
|
+
}, {
|
|
1890
|
+
key: "_getNationalPrefixFormattingRule",
|
|
1891
|
+
value: function(t) {
|
|
1892
|
+
return t[this.v1 ? 4 : this.v2 ? 5 : 6];
|
|
1893
|
+
}
|
|
1894
|
+
// For countries of the same region (e.g. NANPA)
|
|
1895
|
+
// national prefix formatting rule is stored in the "main" country for that region.
|
|
1896
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
|
1897
|
+
}, {
|
|
1898
|
+
key: "nationalPrefixFormattingRule",
|
|
1899
|
+
value: function() {
|
|
1900
|
+
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
|
|
1901
|
+
}
|
|
1902
|
+
}, {
|
|
1903
|
+
key: "_nationalPrefixForParsing",
|
|
1904
|
+
value: function() {
|
|
1905
|
+
return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
|
|
1906
|
+
}
|
|
1907
|
+
}, {
|
|
1908
|
+
key: "nationalPrefixForParsing",
|
|
1909
|
+
value: function() {
|
|
1910
|
+
return this._nationalPrefixForParsing() || this.nationalPrefix();
|
|
1911
|
+
}
|
|
1912
|
+
}, {
|
|
1913
|
+
key: "nationalPrefixTransformRule",
|
|
1914
|
+
value: function() {
|
|
1915
|
+
return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
|
|
1916
|
+
}
|
|
1917
|
+
}, {
|
|
1918
|
+
key: "_getNationalPrefixIsOptionalWhenFormatting",
|
|
1919
|
+
value: function() {
|
|
1920
|
+
return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
|
|
1921
|
+
}
|
|
1922
|
+
// For countries of the same region (e.g. NANPA)
|
|
1923
|
+
// "national prefix is optional when formatting" flag is
|
|
1924
|
+
// stored in the "main" country for that region.
|
|
1925
|
+
// E.g. "RU" and "KZ", "US" and "CA".
|
|
1926
|
+
}, {
|
|
1927
|
+
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
1928
|
+
value: function() {
|
|
1929
|
+
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
|
|
1930
|
+
}
|
|
1931
|
+
}, {
|
|
1932
|
+
key: "leadingDigits",
|
|
1933
|
+
value: function() {
|
|
1934
|
+
return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
|
|
1935
|
+
}
|
|
1936
|
+
}, {
|
|
1937
|
+
key: "types",
|
|
1938
|
+
value: function() {
|
|
1939
|
+
return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
|
|
1940
|
+
}
|
|
1941
|
+
}, {
|
|
1942
|
+
key: "hasTypes",
|
|
1943
|
+
value: function() {
|
|
1944
|
+
return this.types() && this.types().length === 0 ? !1 : !!this.types();
|
|
1945
|
+
}
|
|
1946
|
+
}, {
|
|
1947
|
+
key: "type",
|
|
1948
|
+
value: function(t) {
|
|
1949
|
+
if (this.hasTypes() && te(this.types(), t))
|
|
1950
|
+
return new cd(te(this.types(), t), this);
|
|
1951
|
+
}
|
|
1952
|
+
}, {
|
|
1953
|
+
key: "ext",
|
|
1954
|
+
value: function() {
|
|
1955
|
+
return this.v1 || this.v2 ? ee : this.metadata[13] || ee;
|
|
1956
|
+
}
|
|
1957
|
+
}]), e;
|
|
1958
|
+
}(), ld = /* @__PURE__ */ function() {
|
|
1959
|
+
function e(d, t) {
|
|
1960
|
+
A(this, e), this._format = d, this.metadata = t;
|
|
1961
|
+
}
|
|
1962
|
+
return D(e, [{
|
|
1963
|
+
key: "pattern",
|
|
1964
|
+
value: function() {
|
|
1965
|
+
return this._format[0];
|
|
1966
|
+
}
|
|
1967
|
+
}, {
|
|
1968
|
+
key: "format",
|
|
1969
|
+
value: function() {
|
|
1970
|
+
return this._format[1];
|
|
1971
|
+
}
|
|
1972
|
+
}, {
|
|
1973
|
+
key: "leadingDigitsPatterns",
|
|
1974
|
+
value: function() {
|
|
1975
|
+
return this._format[2] || [];
|
|
1976
|
+
}
|
|
1977
|
+
}, {
|
|
1978
|
+
key: "nationalPrefixFormattingRule",
|
|
1979
|
+
value: function() {
|
|
1980
|
+
return this._format[3] || this.metadata.nationalPrefixFormattingRule();
|
|
1981
|
+
}
|
|
1982
|
+
}, {
|
|
1983
|
+
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
1984
|
+
value: function() {
|
|
1985
|
+
return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
|
1986
|
+
}
|
|
1987
|
+
}, {
|
|
1988
|
+
key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
|
|
1989
|
+
value: function() {
|
|
1990
|
+
return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
|
1991
|
+
}
|
|
1992
|
+
// Checks whether national prefix formatting rule contains national prefix.
|
|
1993
|
+
}, {
|
|
1994
|
+
key: "usesNationalPrefix",
|
|
1995
|
+
value: function() {
|
|
1996
|
+
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
|
1997
|
+
!fd.test(this.nationalPrefixFormattingRule()));
|
|
1998
|
+
}
|
|
1999
|
+
}, {
|
|
2000
|
+
key: "internationalFormat",
|
|
2001
|
+
value: function() {
|
|
2002
|
+
return this._format[5] || this.format();
|
|
2003
|
+
}
|
|
2004
|
+
}]), e;
|
|
2005
|
+
}(), fd = /^\(?\$1\)?$/, cd = /* @__PURE__ */ function() {
|
|
2006
|
+
function e(d, t) {
|
|
2007
|
+
A(this, e), this.type = d, this.metadata = t;
|
|
2008
|
+
}
|
|
2009
|
+
return D(e, [{
|
|
2010
|
+
key: "pattern",
|
|
2011
|
+
value: function() {
|
|
2012
|
+
return this.metadata.v1 ? this.type : this.type[0];
|
|
2013
|
+
}
|
|
2014
|
+
}, {
|
|
2015
|
+
key: "possibleLengths",
|
|
2016
|
+
value: function() {
|
|
2017
|
+
if (!this.metadata.v1)
|
|
2018
|
+
return this.type[1] || this.metadata.possibleLengths();
|
|
2019
|
+
}
|
|
2020
|
+
}]), e;
|
|
2021
|
+
}();
|
|
2022
|
+
function te(e, d) {
|
|
2023
|
+
switch (d) {
|
|
2024
|
+
case "FIXED_LINE":
|
|
2025
|
+
return e[0];
|
|
2026
|
+
case "MOBILE":
|
|
2027
|
+
return e[1];
|
|
2028
|
+
case "TOLL_FREE":
|
|
2029
|
+
return e[2];
|
|
2030
|
+
case "PREMIUM_RATE":
|
|
2031
|
+
return e[3];
|
|
2032
|
+
case "PERSONAL_NUMBER":
|
|
2033
|
+
return e[4];
|
|
2034
|
+
case "VOICEMAIL":
|
|
2035
|
+
return e[5];
|
|
2036
|
+
case "UAN":
|
|
2037
|
+
return e[6];
|
|
2038
|
+
case "PAGER":
|
|
2039
|
+
return e[7];
|
|
2040
|
+
case "VOIP":
|
|
2041
|
+
return e[8];
|
|
2042
|
+
case "SHARED_COST":
|
|
2043
|
+
return e[9];
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
function hd(e) {
|
|
2047
|
+
if (!e)
|
|
2048
|
+
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
2049
|
+
if (!R(e) || !R(e.countries))
|
|
2050
|
+
throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(R(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + pd(e) + ": " + e, "."));
|
|
2051
|
+
}
|
|
2052
|
+
var R = function(d) {
|
|
2053
|
+
return F(d) === "object";
|
|
2054
|
+
}, pd = function(d) {
|
|
2055
|
+
return F(d);
|
|
2056
|
+
};
|
|
2057
|
+
function W(e, d) {
|
|
2058
|
+
if (d = new l(d), d.hasCountry(e))
|
|
2059
|
+
return d.country(e).countryCallingCode();
|
|
2060
|
+
throw new Error("Unknown country: ".concat(e));
|
|
2061
|
+
}
|
|
2062
|
+
function yd(e, d) {
|
|
2063
|
+
return d.countries[e] !== void 0;
|
|
2064
|
+
}
|
|
2065
|
+
function Ie(e) {
|
|
2066
|
+
var d = e.version;
|
|
2067
|
+
typeof d == "number" ? (this.v1 = d === 1, this.v2 = d === 2, this.v3 = d === 3, this.v4 = d === 4) : d ? q(d, od) === -1 ? this.v2 = !0 : q(d, ud) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
2068
|
+
}
|
|
2069
|
+
var md = ";ext=", C = function(d) {
|
|
2070
|
+
return "([".concat(g, "]{1,").concat(d, "})");
|
|
2071
|
+
};
|
|
2072
|
+
function Ee(e) {
|
|
2073
|
+
var d = "20", t = "15", n = "9", r = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", $ = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", o = "(?:[xx##~~]|int|int)", c = "[- ]+", f = "[ \\t]*", v = "(?:,{2}|;)", O = md + C(d), xe = i + u + a + C(d) + $, Ae = i + o + a + C(n) + $, De = c + C(r) + "#", Re = f + v + a + C(t) + $, Me = f + "(?:,)+" + a + C(n) + $;
|
|
2074
|
+
return O + "|" + xe + "|" + Ae + "|" + De + "|" + Re + "|" + Me;
|
|
2075
|
+
}
|
|
2076
|
+
var gd = "[" + g + "]{" + V + "}", bd = "[" + K + "]{0,1}(?:[" + T + "]*[" + g + "]){3,}[" + T + g + "]*", vd = new RegExp("^[" + K + "]{0,1}(?:[" + T + "]*[" + g + "]){1,2}$", "i"), Cd = bd + // Phone number extensions
|
|
2077
|
+
"(?:" + Ee() + ")?", Od = new RegExp(
|
|
2078
|
+
// Either a short two-digit-only phone number
|
|
2079
|
+
"^" + gd + "$|^" + Cd + "$",
|
|
2080
|
+
"i"
|
|
2081
|
+
);
|
|
2082
|
+
function Se(e) {
|
|
2083
|
+
return e.length >= V && Od.test(e);
|
|
2084
|
+
}
|
|
2085
|
+
function Pd(e) {
|
|
2086
|
+
return vd.test(e);
|
|
2087
|
+
}
|
|
2088
|
+
var ne = new RegExp("(?:" + Ee() + ")$", "i");
|
|
2089
|
+
function Nd(e) {
|
|
2090
|
+
var d = e.search(ne);
|
|
2091
|
+
if (d < 0)
|
|
2092
|
+
return {};
|
|
2093
|
+
for (var t = e.slice(0, d), n = e.match(ne), r = 1; r < n.length; ) {
|
|
2094
|
+
if (n[r])
|
|
2095
|
+
return {
|
|
2096
|
+
number: t,
|
|
2097
|
+
ext: n[r]
|
|
2098
|
+
};
|
|
2099
|
+
r++;
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
var wd = {
|
|
2103
|
+
0: "0",
|
|
2104
|
+
1: "1",
|
|
2105
|
+
2: "2",
|
|
2106
|
+
3: "3",
|
|
2107
|
+
4: "4",
|
|
2108
|
+
5: "5",
|
|
2109
|
+
6: "6",
|
|
2110
|
+
7: "7",
|
|
2111
|
+
8: "8",
|
|
2112
|
+
9: "9",
|
|
2113
|
+
"0": "0",
|
|
2114
|
+
// Fullwidth digit 0
|
|
2115
|
+
"1": "1",
|
|
2116
|
+
// Fullwidth digit 1
|
|
2117
|
+
"2": "2",
|
|
2118
|
+
// Fullwidth digit 2
|
|
2119
|
+
"3": "3",
|
|
2120
|
+
// Fullwidth digit 3
|
|
2121
|
+
"4": "4",
|
|
2122
|
+
// Fullwidth digit 4
|
|
2123
|
+
"5": "5",
|
|
2124
|
+
// Fullwidth digit 5
|
|
2125
|
+
"6": "6",
|
|
2126
|
+
// Fullwidth digit 6
|
|
2127
|
+
"7": "7",
|
|
2128
|
+
// Fullwidth digit 7
|
|
2129
|
+
"8": "8",
|
|
2130
|
+
// Fullwidth digit 8
|
|
2131
|
+
"9": "9",
|
|
2132
|
+
// Fullwidth digit 9
|
|
2133
|
+
"٠": "0",
|
|
2134
|
+
// Arabic-indic digit 0
|
|
2135
|
+
"١": "1",
|
|
2136
|
+
// Arabic-indic digit 1
|
|
2137
|
+
"٢": "2",
|
|
2138
|
+
// Arabic-indic digit 2
|
|
2139
|
+
"٣": "3",
|
|
2140
|
+
// Arabic-indic digit 3
|
|
2141
|
+
"٤": "4",
|
|
2142
|
+
// Arabic-indic digit 4
|
|
2143
|
+
"٥": "5",
|
|
2144
|
+
// Arabic-indic digit 5
|
|
2145
|
+
"٦": "6",
|
|
2146
|
+
// Arabic-indic digit 6
|
|
2147
|
+
"٧": "7",
|
|
2148
|
+
// Arabic-indic digit 7
|
|
2149
|
+
"٨": "8",
|
|
2150
|
+
// Arabic-indic digit 8
|
|
2151
|
+
"٩": "9",
|
|
2152
|
+
// Arabic-indic digit 9
|
|
2153
|
+
"۰": "0",
|
|
2154
|
+
// Eastern-Arabic digit 0
|
|
2155
|
+
"۱": "1",
|
|
2156
|
+
// Eastern-Arabic digit 1
|
|
2157
|
+
"۲": "2",
|
|
2158
|
+
// Eastern-Arabic digit 2
|
|
2159
|
+
"۳": "3",
|
|
2160
|
+
// Eastern-Arabic digit 3
|
|
2161
|
+
"۴": "4",
|
|
2162
|
+
// Eastern-Arabic digit 4
|
|
2163
|
+
"۵": "5",
|
|
2164
|
+
// Eastern-Arabic digit 5
|
|
2165
|
+
"۶": "6",
|
|
2166
|
+
// Eastern-Arabic digit 6
|
|
2167
|
+
"۷": "7",
|
|
2168
|
+
// Eastern-Arabic digit 7
|
|
2169
|
+
"۸": "8",
|
|
2170
|
+
// Eastern-Arabic digit 8
|
|
2171
|
+
"۹": "9"
|
|
2172
|
+
// Eastern-Arabic digit 9
|
|
2173
|
+
};
|
|
2174
|
+
function Id(e) {
|
|
2175
|
+
return wd[e];
|
|
2176
|
+
}
|
|
2177
|
+
function Ed(e, d) {
|
|
2178
|
+
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2179
|
+
if (t)
|
|
2180
|
+
return (t = t.call(e)).next.bind(t);
|
|
2181
|
+
if (Array.isArray(e) || (t = Sd(e)) || d && e && typeof e.length == "number") {
|
|
2182
|
+
t && (e = t);
|
|
2183
|
+
var n = 0;
|
|
2184
|
+
return function() {
|
|
2185
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2188
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2189
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2190
|
+
}
|
|
2191
|
+
function Sd(e, d) {
|
|
2192
|
+
if (e) {
|
|
2193
|
+
if (typeof e == "string")
|
|
2194
|
+
return re(e, d);
|
|
2195
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2196
|
+
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
2197
|
+
return Array.from(e);
|
|
2198
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
2199
|
+
return re(e, d);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
function re(e, d) {
|
|
2203
|
+
(d == null || d > e.length) && (d = e.length);
|
|
2204
|
+
for (var t = 0, n = new Array(d); t < d; t++)
|
|
2205
|
+
n[t] = e[t];
|
|
2206
|
+
return n;
|
|
2207
|
+
}
|
|
2208
|
+
function ie(e) {
|
|
2209
|
+
for (var d = "", t = Ed(e.split("")), n; !(n = t()).done; ) {
|
|
2210
|
+
var r = n.value;
|
|
2211
|
+
d += _d(r, d) || "";
|
|
2212
|
+
}
|
|
2213
|
+
return d;
|
|
2214
|
+
}
|
|
2215
|
+
function _d(e, d) {
|
|
2216
|
+
return e === "+" ? d ? void 0 : "+" : Id(e);
|
|
2217
|
+
}
|
|
2218
|
+
function Td(e, d) {
|
|
2219
|
+
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2220
|
+
if (t)
|
|
2221
|
+
return (t = t.call(e)).next.bind(t);
|
|
2222
|
+
if (Array.isArray(e) || (t = Fd(e)) || d && e && typeof e.length == "number") {
|
|
2223
|
+
t && (e = t);
|
|
2224
|
+
var n = 0;
|
|
2225
|
+
return function() {
|
|
2226
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2227
|
+
};
|
|
2228
|
+
}
|
|
2229
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2230
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2231
|
+
}
|
|
2232
|
+
function Fd(e, d) {
|
|
2233
|
+
if (e) {
|
|
2234
|
+
if (typeof e == "string")
|
|
2235
|
+
return $e(e, d);
|
|
2236
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2237
|
+
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
2238
|
+
return Array.from(e);
|
|
2239
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
2240
|
+
return $e(e, d);
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
function $e(e, d) {
|
|
2244
|
+
(d == null || d > e.length) && (d = e.length);
|
|
2245
|
+
for (var t = 0, n = new Array(d); t < d; t++)
|
|
2246
|
+
n[t] = e[t];
|
|
2247
|
+
return n;
|
|
2248
|
+
}
|
|
2249
|
+
function xd(e, d) {
|
|
2250
|
+
for (var t = e.slice(), n = Td(d), r; !(r = n()).done; ) {
|
|
2251
|
+
var i = r.value;
|
|
2252
|
+
e.indexOf(i) < 0 && t.push(i);
|
|
2253
|
+
}
|
|
2254
|
+
return t.sort(function(a, $) {
|
|
2255
|
+
return a - $;
|
|
2256
|
+
});
|
|
2257
|
+
}
|
|
2258
|
+
function z(e, d) {
|
|
2259
|
+
return _e(e, void 0, d);
|
|
2260
|
+
}
|
|
2261
|
+
function _e(e, d, t) {
|
|
2262
|
+
var n = t.type(d), r = n && n.possibleLengths() || t.possibleLengths();
|
|
2263
|
+
if (!r)
|
|
2264
|
+
return "IS_POSSIBLE";
|
|
2265
|
+
if (d === "FIXED_LINE_OR_MOBILE") {
|
|
2266
|
+
if (!t.type("FIXED_LINE"))
|
|
2267
|
+
return _e(e, "MOBILE", t);
|
|
2268
|
+
var i = t.type("MOBILE");
|
|
2269
|
+
i && (r = xd(r, i.possibleLengths()));
|
|
2270
|
+
} else if (d && !n)
|
|
2271
|
+
return "INVALID_LENGTH";
|
|
2272
|
+
var a = e.length, $ = r[0];
|
|
2273
|
+
return $ === a ? "IS_POSSIBLE" : $ > a ? "TOO_SHORT" : r[r.length - 1] < a ? "TOO_LONG" : r.indexOf(a, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
2274
|
+
}
|
|
2275
|
+
function Ad(e, d, t) {
|
|
2276
|
+
if (d === void 0 && (d = {}), t = new l(t), d.v2) {
|
|
2277
|
+
if (!e.countryCallingCode)
|
|
2278
|
+
throw new Error("Invalid phone number object passed");
|
|
2279
|
+
t.selectNumberingPlan(e.countryCallingCode);
|
|
2280
|
+
} else {
|
|
2281
|
+
if (!e.phone)
|
|
2282
|
+
return !1;
|
|
2283
|
+
if (e.country) {
|
|
2284
|
+
if (!t.hasCountry(e.country))
|
|
2285
|
+
throw new Error("Unknown country: ".concat(e.country));
|
|
2286
|
+
t.country(e.country);
|
|
2287
|
+
} else {
|
|
2288
|
+
if (!e.countryCallingCode)
|
|
2289
|
+
throw new Error("Invalid phone number object passed");
|
|
2290
|
+
t.selectNumberingPlan(e.countryCallingCode);
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
if (t.possibleLengths())
|
|
2294
|
+
return Te(e.phone || e.nationalNumber, t);
|
|
2295
|
+
if (e.countryCallingCode && t.isNonGeographicCallingCode(e.countryCallingCode))
|
|
2296
|
+
return !0;
|
|
2297
|
+
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
2298
|
+
}
|
|
2299
|
+
function Te(e, d) {
|
|
2300
|
+
switch (z(e, d)) {
|
|
2301
|
+
case "IS_POSSIBLE":
|
|
2302
|
+
return !0;
|
|
2303
|
+
default:
|
|
2304
|
+
return !1;
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
function Dd(e, d) {
|
|
2308
|
+
return Ld(e) || Md(e, d) || Fe(e, d) || Rd();
|
|
2309
|
+
}
|
|
2310
|
+
function Rd() {
|
|
2311
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2312
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2313
|
+
}
|
|
2314
|
+
function Md(e, d) {
|
|
2315
|
+
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2316
|
+
if (t != null) {
|
|
2317
|
+
var n = [], r = !0, i = !1, a, $;
|
|
2318
|
+
try {
|
|
2319
|
+
for (t = t.call(e); !(r = (a = t.next()).done) && (n.push(a.value), !(d && n.length === d)); r = !0)
|
|
2320
|
+
;
|
|
2321
|
+
} catch (u) {
|
|
2322
|
+
i = !0, $ = u;
|
|
2323
|
+
} finally {
|
|
2324
|
+
try {
|
|
2325
|
+
!r && t.return != null && t.return();
|
|
2326
|
+
} finally {
|
|
2327
|
+
if (i)
|
|
2328
|
+
throw $;
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
return n;
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
function Ld(e) {
|
|
2335
|
+
if (Array.isArray(e))
|
|
2336
|
+
return e;
|
|
2337
|
+
}
|
|
2338
|
+
function kd(e, d) {
|
|
2339
|
+
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2340
|
+
if (t)
|
|
2341
|
+
return (t = t.call(e)).next.bind(t);
|
|
2342
|
+
if (Array.isArray(e) || (t = Fe(e)) || d && e && typeof e.length == "number") {
|
|
2343
|
+
t && (e = t);
|
|
2344
|
+
var n = 0;
|
|
2345
|
+
return function() {
|
|
2346
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2350
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2351
|
+
}
|
|
2352
|
+
function Fe(e, d) {
|
|
2353
|
+
if (e) {
|
|
2354
|
+
if (typeof e == "string")
|
|
2355
|
+
return ae(e, d);
|
|
2356
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2357
|
+
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
2358
|
+
return Array.from(e);
|
|
2359
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
2360
|
+
return ae(e, d);
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
function ae(e, d) {
|
|
2364
|
+
(d == null || d > e.length) && (d = e.length);
|
|
2365
|
+
for (var t = 0, n = new Array(d); t < d; t++)
|
|
2366
|
+
n[t] = e[t];
|
|
2367
|
+
return n;
|
|
2368
|
+
}
|
|
2369
|
+
function Bd(e) {
|
|
2370
|
+
var d, t;
|
|
2371
|
+
e = e.replace(/^tel:/, "tel=");
|
|
2372
|
+
for (var n = kd(e.split(";")), r; !(r = n()).done; ) {
|
|
2373
|
+
var i = r.value, a = i.split("="), $ = Dd(a, 2), u = $[0], o = $[1];
|
|
2374
|
+
switch (u) {
|
|
2375
|
+
case "tel":
|
|
2376
|
+
d = o;
|
|
2377
|
+
break;
|
|
2378
|
+
case "ext":
|
|
2379
|
+
t = o;
|
|
2380
|
+
break;
|
|
2381
|
+
case "phone-context":
|
|
2382
|
+
o[0] === "+" && (d = o + d);
|
|
2383
|
+
break;
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
if (!Se(d))
|
|
2387
|
+
return {};
|
|
2388
|
+
var c = {
|
|
2389
|
+
number: d
|
|
2390
|
+
};
|
|
2391
|
+
return t && (c.ext = t), c;
|
|
2392
|
+
}
|
|
2393
|
+
function Gd(e) {
|
|
2394
|
+
var d = e.number, t = e.ext;
|
|
2395
|
+
if (!d)
|
|
2396
|
+
return "";
|
|
2397
|
+
if (d[0] !== "+")
|
|
2398
|
+
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
|
2399
|
+
return "tel:".concat(d).concat(t ? ";ext=" + t : "");
|
|
2400
|
+
}
|
|
2401
|
+
function y(e, d) {
|
|
2402
|
+
return e = e || "", new RegExp("^(?:" + d + ")$").test(e);
|
|
2403
|
+
}
|
|
2404
|
+
function jd(e, d) {
|
|
2405
|
+
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2406
|
+
if (t)
|
|
2407
|
+
return (t = t.call(e)).next.bind(t);
|
|
2408
|
+
if (Array.isArray(e) || (t = Ud(e)) || d && e && typeof e.length == "number") {
|
|
2409
|
+
t && (e = t);
|
|
2410
|
+
var n = 0;
|
|
2411
|
+
return function() {
|
|
2412
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2413
|
+
};
|
|
2414
|
+
}
|
|
2415
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2416
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2417
|
+
}
|
|
2418
|
+
function Ud(e, d) {
|
|
2419
|
+
if (e) {
|
|
2420
|
+
if (typeof e == "string")
|
|
2421
|
+
return oe(e, d);
|
|
2422
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2423
|
+
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
2424
|
+
return Array.from(e);
|
|
2425
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
2426
|
+
return oe(e, d);
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
function oe(e, d) {
|
|
2430
|
+
(d == null || d > e.length) && (d = e.length);
|
|
2431
|
+
for (var t = 0, n = new Array(d); t < d; t++)
|
|
2432
|
+
n[t] = e[t];
|
|
2433
|
+
return n;
|
|
2434
|
+
}
|
|
2435
|
+
var Hd = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
2436
|
+
function X(e, d, t) {
|
|
2437
|
+
if (d = d || {}, !!e.country) {
|
|
2438
|
+
t = new l(t), t.selectNumberingPlan(e.country, e.countryCallingCode);
|
|
2439
|
+
var n = d.v2 ? e.nationalNumber : e.phone;
|
|
2440
|
+
if (y(n, t.nationalNumberPattern())) {
|
|
2441
|
+
if (M(n, "FIXED_LINE", t))
|
|
2442
|
+
return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || M(n, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
2443
|
+
for (var r = jd(Hd), i; !(i = r()).done; ) {
|
|
2444
|
+
var a = i.value;
|
|
2445
|
+
if (M(n, a, t))
|
|
2446
|
+
return a;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
function M(e, d, t) {
|
|
2452
|
+
return d = t.type(d), !d || !d.pattern() || d.possibleLengths() && d.possibleLengths().indexOf(e.length) < 0 ? !1 : y(e, d.pattern());
|
|
2453
|
+
}
|
|
2454
|
+
function Vd(e, d, t) {
|
|
2455
|
+
if (d = d || {}, t = new l(t), !e.country)
|
|
2456
|
+
return !1;
|
|
2457
|
+
if (t.selectNumberingPlan(e.country, e.countryCallingCode), t.hasTypes())
|
|
2458
|
+
return X(e, d, t.metadata) !== void 0;
|
|
2459
|
+
var n = d.v2 ? e.nationalNumber : e.phone;
|
|
2460
|
+
return y(n, t.nationalNumberPattern());
|
|
2461
|
+
}
|
|
2462
|
+
function Kd(e) {
|
|
2463
|
+
return e.replace(new RegExp("[".concat(T, "]+"), "g"), " ").trim();
|
|
2464
|
+
}
|
|
2465
|
+
var Wd = /(\$\d)/;
|
|
2466
|
+
function zd(e, d, t) {
|
|
2467
|
+
var n = t.useInternationalFormat, r = t.withNationalPrefix;
|
|
2468
|
+
t.carrierCode, t.metadata;
|
|
2469
|
+
var i = e.replace(new RegExp(d.pattern()), n ? d.internationalFormat() : (
|
|
2470
|
+
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
|
2471
|
+
// because that one is only used when formatting phone numbers
|
|
2472
|
+
// for dialing from a mobile phone, and this is not a dialing library.
|
|
2473
|
+
// carrierCode && format.domesticCarrierCodeFormattingRule()
|
|
2474
|
+
// // First, replace the $CC in the formatting rule with the desired carrier code.
|
|
2475
|
+
// // Then, replace the $FG in the formatting rule with the first group
|
|
2476
|
+
// // and the carrier code combined in the appropriate way.
|
|
2477
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
|
|
2478
|
+
// : (
|
|
2479
|
+
// withNationalPrefix && format.nationalPrefixFormattingRule()
|
|
2480
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
|
2481
|
+
// : format.format()
|
|
2482
|
+
// )
|
|
2483
|
+
r && d.nationalPrefixFormattingRule() ? d.format().replace(Wd, d.nationalPrefixFormattingRule()) : d.format()
|
|
2484
|
+
));
|
|
2485
|
+
return n ? Kd(i) : i;
|
|
2486
|
+
}
|
|
2487
|
+
var Xd = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
2488
|
+
function Yd(e, d, t) {
|
|
2489
|
+
var n = new l(t);
|
|
2490
|
+
if (n.selectNumberingPlan(e, d), n.defaultIDDPrefix())
|
|
2491
|
+
return n.defaultIDDPrefix();
|
|
2492
|
+
if (Xd.test(n.IDDPrefix()))
|
|
2493
|
+
return n.IDDPrefix();
|
|
2494
|
+
}
|
|
2495
|
+
function Zd(e, d) {
|
|
2496
|
+
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2497
|
+
if (t)
|
|
2498
|
+
return (t = t.call(e)).next.bind(t);
|
|
2499
|
+
if (Array.isArray(e) || (t = Jd(e)) || d && e && typeof e.length == "number") {
|
|
2500
|
+
t && (e = t);
|
|
2501
|
+
var n = 0;
|
|
2502
|
+
return function() {
|
|
2503
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2504
|
+
};
|
|
2505
|
+
}
|
|
2506
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2507
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2508
|
+
}
|
|
2509
|
+
function Jd(e, d) {
|
|
2510
|
+
if (e) {
|
|
2511
|
+
if (typeof e == "string")
|
|
2512
|
+
return ue(e, d);
|
|
2513
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2514
|
+
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
2515
|
+
return Array.from(e);
|
|
2516
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
2517
|
+
return ue(e, d);
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
function ue(e, d) {
|
|
2521
|
+
(d == null || d > e.length) && (d = e.length);
|
|
2522
|
+
for (var t = 0, n = new Array(d); t < d; t++)
|
|
2523
|
+
n[t] = e[t];
|
|
2524
|
+
return n;
|
|
2525
|
+
}
|
|
2526
|
+
function se(e, d) {
|
|
2527
|
+
var t = Object.keys(e);
|
|
2528
|
+
if (Object.getOwnPropertySymbols) {
|
|
2529
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
2530
|
+
d && (n = n.filter(function(r) {
|
|
2531
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
2532
|
+
})), t.push.apply(t, n);
|
|
2533
|
+
}
|
|
2534
|
+
return t;
|
|
2535
|
+
}
|
|
2536
|
+
function le(e) {
|
|
2537
|
+
for (var d = 1; d < arguments.length; d++) {
|
|
2538
|
+
var t = arguments[d] != null ? arguments[d] : {};
|
|
2539
|
+
d % 2 ? se(Object(t), !0).forEach(function(n) {
|
|
2540
|
+
qd(e, n, t[n]);
|
|
2541
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : se(Object(t)).forEach(function(n) {
|
|
2542
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2543
|
+
});
|
|
2544
|
+
}
|
|
2545
|
+
return e;
|
|
2546
|
+
}
|
|
2547
|
+
function qd(e, d, t) {
|
|
2548
|
+
return d in e ? Object.defineProperty(e, d, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = t, e;
|
|
2549
|
+
}
|
|
2550
|
+
var fe = {
|
|
2551
|
+
formatExtension: function(d, t, n) {
|
|
2552
|
+
return "".concat(d).concat(n.ext()).concat(t);
|
|
2553
|
+
}
|
|
2554
|
+
};
|
|
2555
|
+
function Qd(e, d, t, n) {
|
|
2556
|
+
if (t ? t = le(le({}, fe), t) : t = fe, n = new l(n), e.country && e.country !== "001") {
|
|
2557
|
+
if (!n.hasCountry(e.country))
|
|
2558
|
+
throw new Error("Unknown country: ".concat(e.country));
|
|
2559
|
+
n.country(e.country);
|
|
2560
|
+
} else if (e.countryCallingCode)
|
|
2561
|
+
n.selectNumberingPlan(e.countryCallingCode);
|
|
2562
|
+
else
|
|
2563
|
+
return e.phone || "";
|
|
2564
|
+
var r = n.countryCallingCode(), i = t.v2 ? e.nationalNumber : e.phone, a;
|
|
2565
|
+
switch (d) {
|
|
2566
|
+
case "NATIONAL":
|
|
2567
|
+
return i ? (a = x(i, e.carrierCode, "NATIONAL", n, t), L(a, e.ext, n, t.formatExtension)) : "";
|
|
2568
|
+
case "INTERNATIONAL":
|
|
2569
|
+
return i ? (a = x(i, null, "INTERNATIONAL", n, t), a = "+".concat(r, " ").concat(a), L(a, e.ext, n, t.formatExtension)) : "+".concat(r);
|
|
2570
|
+
case "E.164":
|
|
2571
|
+
return "+".concat(r).concat(i);
|
|
2572
|
+
case "RFC3966":
|
|
2573
|
+
return Gd({
|
|
2574
|
+
number: "+".concat(r).concat(i),
|
|
2575
|
+
ext: e.ext
|
|
2576
|
+
});
|
|
2577
|
+
case "IDD":
|
|
2578
|
+
if (!t.fromCountry)
|
|
2579
|
+
return;
|
|
2580
|
+
var $ = dt(i, e.carrierCode, r, t.fromCountry, n);
|
|
2581
|
+
return L($, e.ext, n, t.formatExtension);
|
|
2582
|
+
default:
|
|
2583
|
+
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(d, '"'));
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
function x(e, d, t, n, r) {
|
|
2587
|
+
var i = et(n.formats(), e);
|
|
2588
|
+
return i ? zd(e, i, {
|
|
2589
|
+
useInternationalFormat: t === "INTERNATIONAL",
|
|
2590
|
+
withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && r && r.nationalPrefix === !1),
|
|
2591
|
+
carrierCode: d,
|
|
2592
|
+
metadata: n
|
|
2593
|
+
}) : e;
|
|
2594
|
+
}
|
|
2595
|
+
function et(e, d) {
|
|
2596
|
+
for (var t = Zd(e), n; !(n = t()).done; ) {
|
|
2597
|
+
var r = n.value;
|
|
2598
|
+
if (r.leadingDigitsPatterns().length > 0) {
|
|
2599
|
+
var i = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
|
|
2600
|
+
if (d.search(i) !== 0)
|
|
2601
|
+
continue;
|
|
2602
|
+
}
|
|
2603
|
+
if (y(d, r.pattern()))
|
|
2604
|
+
return r;
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
function L(e, d, t, n) {
|
|
2608
|
+
return d ? n(e, d, t) : e;
|
|
2609
|
+
}
|
|
2610
|
+
function dt(e, d, t, n, r) {
|
|
2611
|
+
var i = W(n, r.metadata);
|
|
2612
|
+
if (i === t) {
|
|
2613
|
+
var a = x(e, d, "NATIONAL", r);
|
|
2614
|
+
return t === "1" ? t + " " + a : a;
|
|
2615
|
+
}
|
|
2616
|
+
var $ = Yd(n, void 0, r.metadata);
|
|
2617
|
+
if ($)
|
|
2618
|
+
return "".concat($, " ").concat(t, " ").concat(x(e, null, "INTERNATIONAL", r));
|
|
2619
|
+
}
|
|
2620
|
+
function ce(e, d) {
|
|
2621
|
+
var t = Object.keys(e);
|
|
2622
|
+
if (Object.getOwnPropertySymbols) {
|
|
2623
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
2624
|
+
d && (n = n.filter(function(r) {
|
|
2625
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
2626
|
+
})), t.push.apply(t, n);
|
|
2627
|
+
}
|
|
2628
|
+
return t;
|
|
2629
|
+
}
|
|
2630
|
+
function he(e) {
|
|
2631
|
+
for (var d = 1; d < arguments.length; d++) {
|
|
2632
|
+
var t = arguments[d] != null ? arguments[d] : {};
|
|
2633
|
+
d % 2 ? ce(Object(t), !0).forEach(function(n) {
|
|
2634
|
+
tt(e, n, t[n]);
|
|
2635
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ce(Object(t)).forEach(function(n) {
|
|
2636
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
return e;
|
|
2640
|
+
}
|
|
2641
|
+
function tt(e, d, t) {
|
|
2642
|
+
return d in e ? Object.defineProperty(e, d, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = t, e;
|
|
2643
|
+
}
|
|
2644
|
+
function nt(e, d) {
|
|
2645
|
+
if (!(e instanceof d))
|
|
2646
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2647
|
+
}
|
|
2648
|
+
function pe(e, d) {
|
|
2649
|
+
for (var t = 0; t < d.length; t++) {
|
|
2650
|
+
var n = d[t];
|
|
2651
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
function rt(e, d, t) {
|
|
2655
|
+
return d && pe(e.prototype, d), t && pe(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2656
|
+
}
|
|
2657
|
+
var it = /* @__PURE__ */ function() {
|
|
2658
|
+
function e(d, t, n) {
|
|
2659
|
+
if (nt(this, e), !d)
|
|
2660
|
+
throw new TypeError("`country` or `countryCallingCode` not passed");
|
|
2661
|
+
if (!t)
|
|
2662
|
+
throw new TypeError("`nationalNumber` not passed");
|
|
2663
|
+
if (!n)
|
|
2664
|
+
throw new TypeError("`metadata` not passed");
|
|
2665
|
+
var r = new l(n);
|
|
2666
|
+
$t(d) && (this.country = d, r.country(d), d = r.countryCallingCode()), this.countryCallingCode = d, this.nationalNumber = t, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.metadata = n;
|
|
2667
|
+
}
|
|
2668
|
+
return rt(e, [{
|
|
2669
|
+
key: "setExt",
|
|
2670
|
+
value: function(t) {
|
|
2671
|
+
this.ext = t;
|
|
2672
|
+
}
|
|
2673
|
+
}, {
|
|
2674
|
+
key: "isPossible",
|
|
2675
|
+
value: function() {
|
|
2676
|
+
return Ad(this, {
|
|
2677
|
+
v2: !0
|
|
2678
|
+
}, this.metadata);
|
|
2679
|
+
}
|
|
2680
|
+
}, {
|
|
2681
|
+
key: "isValid",
|
|
2682
|
+
value: function() {
|
|
2683
|
+
return Vd(this, {
|
|
2684
|
+
v2: !0
|
|
2685
|
+
}, this.metadata);
|
|
2686
|
+
}
|
|
2687
|
+
}, {
|
|
2688
|
+
key: "isNonGeographic",
|
|
2689
|
+
value: function() {
|
|
2690
|
+
var t = new l(this.metadata);
|
|
2691
|
+
return t.isNonGeographicCallingCode(this.countryCallingCode);
|
|
2692
|
+
}
|
|
2693
|
+
}, {
|
|
2694
|
+
key: "isEqual",
|
|
2695
|
+
value: function(t) {
|
|
2696
|
+
return this.number === t.number && this.ext === t.ext;
|
|
2697
|
+
}
|
|
2698
|
+
// // Is just an alias for `this.isValid() && this.country === country`.
|
|
2699
|
+
// // https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion
|
|
2700
|
+
// isValidForRegion(country) {
|
|
2701
|
+
// return isValidNumberForRegion(this, country, { v2: true }, this.metadata)
|
|
2702
|
+
// }
|
|
2703
|
+
}, {
|
|
2704
|
+
key: "getType",
|
|
2705
|
+
value: function() {
|
|
2706
|
+
return X(this, {
|
|
2707
|
+
v2: !0
|
|
2708
|
+
}, this.metadata);
|
|
2709
|
+
}
|
|
2710
|
+
}, {
|
|
2711
|
+
key: "format",
|
|
2712
|
+
value: function(t, n) {
|
|
2713
|
+
return Qd(this, t, n ? he(he({}, n), {}, {
|
|
2714
|
+
v2: !0
|
|
2715
|
+
}) : {
|
|
2716
|
+
v2: !0
|
|
2717
|
+
}, this.metadata);
|
|
2718
|
+
}
|
|
2719
|
+
}, {
|
|
2720
|
+
key: "formatNational",
|
|
2721
|
+
value: function(t) {
|
|
2722
|
+
return this.format("NATIONAL", t);
|
|
2723
|
+
}
|
|
2724
|
+
}, {
|
|
2725
|
+
key: "formatInternational",
|
|
2726
|
+
value: function(t) {
|
|
2727
|
+
return this.format("INTERNATIONAL", t);
|
|
2728
|
+
}
|
|
2729
|
+
}, {
|
|
2730
|
+
key: "getURI",
|
|
2731
|
+
value: function(t) {
|
|
2732
|
+
return this.format("RFC3966", t);
|
|
2733
|
+
}
|
|
2734
|
+
}]), e;
|
|
2735
|
+
}(), $t = function(d) {
|
|
2736
|
+
return /^[A-Z]{2}$/.test(d);
|
|
2737
|
+
}, at = new RegExp("([" + g + "])");
|
|
2738
|
+
function ot(e, d, t, n) {
|
|
2739
|
+
if (d) {
|
|
2740
|
+
var r = new l(n);
|
|
2741
|
+
r.selectNumberingPlan(d, t);
|
|
2742
|
+
var i = new RegExp(r.IDDPrefix());
|
|
2743
|
+
if (e.search(i) === 0) {
|
|
2744
|
+
e = e.slice(e.match(i)[0].length);
|
|
2745
|
+
var a = e.match(at);
|
|
2746
|
+
if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
|
|
2747
|
+
return e;
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
function ut(e, d) {
|
|
2752
|
+
if (e && d.numberingPlan.nationalPrefixForParsing()) {
|
|
2753
|
+
var t = new RegExp("^(?:" + d.numberingPlan.nationalPrefixForParsing() + ")"), n = t.exec(e);
|
|
2754
|
+
if (n) {
|
|
2755
|
+
var r, i, a = n.length - 1, $ = a > 0 && n[a];
|
|
2756
|
+
if (d.nationalPrefixTransformRule() && $)
|
|
2757
|
+
r = e.replace(t, d.nationalPrefixTransformRule()), a > 1 && (i = n[1]);
|
|
2758
|
+
else {
|
|
2759
|
+
var u = n[0];
|
|
2760
|
+
r = e.slice(u.length), $ && (i = n[1]);
|
|
2761
|
+
}
|
|
2762
|
+
var o;
|
|
2763
|
+
if ($) {
|
|
2764
|
+
var c = e.indexOf(n[1]), f = e.slice(0, c);
|
|
2765
|
+
f === d.numberingPlan.nationalPrefix() && (o = d.numberingPlan.nationalPrefix());
|
|
2766
|
+
} else
|
|
2767
|
+
o = n[0];
|
|
2768
|
+
return {
|
|
2769
|
+
nationalNumber: r,
|
|
2770
|
+
nationalPrefix: o,
|
|
2771
|
+
carrierCode: i
|
|
2772
|
+
};
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
return {
|
|
2776
|
+
nationalNumber: e
|
|
2777
|
+
};
|
|
2778
|
+
}
|
|
2779
|
+
function U(e, d) {
|
|
2780
|
+
var t = ut(e, d), n = t.carrierCode, r = t.nationalNumber;
|
|
2781
|
+
if (r !== e) {
|
|
2782
|
+
if (!st(e, r, d))
|
|
2783
|
+
return {
|
|
2784
|
+
nationalNumber: e
|
|
2785
|
+
};
|
|
2786
|
+
if (d.possibleLengths() && !lt(r, d))
|
|
2787
|
+
return {
|
|
2788
|
+
nationalNumber: e
|
|
2789
|
+
};
|
|
2790
|
+
}
|
|
2791
|
+
return {
|
|
2792
|
+
nationalNumber: r,
|
|
2793
|
+
carrierCode: n
|
|
2794
|
+
};
|
|
2795
|
+
}
|
|
2796
|
+
function st(e, d, t) {
|
|
2797
|
+
return !(y(e, t.nationalNumberPattern()) && !y(d, t.nationalNumberPattern()));
|
|
2798
|
+
}
|
|
2799
|
+
function lt(e, d) {
|
|
2800
|
+
switch (z(e, d)) {
|
|
2801
|
+
case "TOO_SHORT":
|
|
2802
|
+
case "INVALID_LENGTH":
|
|
2803
|
+
return !1;
|
|
2804
|
+
default:
|
|
2805
|
+
return !0;
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
function ft(e, d, t, n) {
|
|
2809
|
+
var r = d ? W(d, n) : t;
|
|
2810
|
+
if (e.indexOf(r) === 0) {
|
|
2811
|
+
n = new l(n), n.selectNumberingPlan(d, t);
|
|
2812
|
+
var i = e.slice(r.length), a = U(i, n), $ = a.nationalNumber, u = U(e, n), o = u.nationalNumber;
|
|
2813
|
+
if (!y(o, n.nationalNumberPattern()) && y($, n.nationalNumberPattern()) || z(o, n) === "TOO_LONG")
|
|
2814
|
+
return {
|
|
2815
|
+
countryCallingCode: r,
|
|
2816
|
+
number: i
|
|
2817
|
+
};
|
|
2818
|
+
}
|
|
2819
|
+
return {
|
|
2820
|
+
number: e
|
|
2821
|
+
};
|
|
2822
|
+
}
|
|
2823
|
+
function ct(e, d, t, n) {
|
|
2824
|
+
if (!e)
|
|
2825
|
+
return {};
|
|
2826
|
+
if (e[0] !== "+") {
|
|
2827
|
+
var r = ot(e, d, t, n);
|
|
2828
|
+
if (r && r !== e)
|
|
2829
|
+
e = "+" + r;
|
|
2830
|
+
else {
|
|
2831
|
+
if (d || t) {
|
|
2832
|
+
var i = ft(e, d, t, n), a = i.countryCallingCode, $ = i.number;
|
|
2833
|
+
if (a)
|
|
2834
|
+
return {
|
|
2835
|
+
countryCallingCode: a,
|
|
2836
|
+
number: $
|
|
2837
|
+
};
|
|
2838
|
+
}
|
|
2839
|
+
return {
|
|
2840
|
+
number: e
|
|
2841
|
+
};
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
if (e[1] === "0")
|
|
2845
|
+
return {};
|
|
2846
|
+
n = new l(n);
|
|
2847
|
+
for (var u = 2; u - 1 <= dd && u <= e.length; ) {
|
|
2848
|
+
var o = e.slice(1, u);
|
|
2849
|
+
if (n.hasCallingCode(o))
|
|
2850
|
+
return n.selectNumberingPlan(o), {
|
|
2851
|
+
countryCallingCode: o,
|
|
2852
|
+
number: e.slice(u)
|
|
2853
|
+
};
|
|
2854
|
+
u++;
|
|
2855
|
+
}
|
|
2856
|
+
return {};
|
|
2857
|
+
}
|
|
2858
|
+
function ht(e, d) {
|
|
2859
|
+
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2860
|
+
if (t)
|
|
2861
|
+
return (t = t.call(e)).next.bind(t);
|
|
2862
|
+
if (Array.isArray(e) || (t = pt(e)) || d && e && typeof e.length == "number") {
|
|
2863
|
+
t && (e = t);
|
|
2864
|
+
var n = 0;
|
|
2865
|
+
return function() {
|
|
2866
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2867
|
+
};
|
|
2868
|
+
}
|
|
2869
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2870
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2871
|
+
}
|
|
2872
|
+
function pt(e, d) {
|
|
2873
|
+
if (e) {
|
|
2874
|
+
if (typeof e == "string")
|
|
2875
|
+
return ye(e, d);
|
|
2876
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2877
|
+
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
2878
|
+
return Array.from(e);
|
|
2879
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
2880
|
+
return ye(e, d);
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
function ye(e, d) {
|
|
2884
|
+
(d == null || d > e.length) && (d = e.length);
|
|
2885
|
+
for (var t = 0, n = new Array(d); t < d; t++)
|
|
2886
|
+
n[t] = e[t];
|
|
2887
|
+
return n;
|
|
2888
|
+
}
|
|
2889
|
+
var yt = !1;
|
|
2890
|
+
function mt(e, d, t) {
|
|
2891
|
+
if (yt && t.isNonGeographicCallingCode(e))
|
|
2892
|
+
return "001";
|
|
2893
|
+
var n = t.getCountryCodesForCallingCode(e);
|
|
2894
|
+
if (n)
|
|
2895
|
+
return n.length === 1 ? n[0] : gt(n, d, t.metadata);
|
|
2896
|
+
}
|
|
2897
|
+
function gt(e, d, t) {
|
|
2898
|
+
t = new l(t);
|
|
2899
|
+
for (var n = ht(e), r; !(r = n()).done; ) {
|
|
2900
|
+
var i = r.value;
|
|
2901
|
+
if (t.country(i), t.leadingDigits()) {
|
|
2902
|
+
if (d && d.search(t.leadingDigits()) === 0)
|
|
2903
|
+
return i;
|
|
2904
|
+
} else if (X({
|
|
2905
|
+
phone: d,
|
|
2906
|
+
country: i
|
|
2907
|
+
}, void 0, t.metadata))
|
|
2908
|
+
return i;
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
var bt = 250, vt = new RegExp("[" + K + g + "]"), Ct = new RegExp("[^" + g + "#]+$");
|
|
2912
|
+
function Ot(e, d, t) {
|
|
2913
|
+
if (d = d || {}, t = new l(t), d.defaultCountry && !t.hasCountry(d.defaultCountry))
|
|
2914
|
+
throw d.v2 ? new m("INVALID_COUNTRY") : new Error("Unknown country: ".concat(d.defaultCountry));
|
|
2915
|
+
var n = Nt(e, d.v2, d.extract), r = n.number, i = n.ext, a = n.error;
|
|
2916
|
+
if (!r) {
|
|
2917
|
+
if (d.v2)
|
|
2918
|
+
throw a === "TOO_SHORT" ? new m("TOO_SHORT") : new m("NOT_A_NUMBER");
|
|
2919
|
+
return {};
|
|
2920
|
+
}
|
|
2921
|
+
var $ = It(r, d.defaultCountry, d.defaultCallingCode, t), u = $.country, o = $.nationalNumber, c = $.countryCallingCode, f = $.carrierCode;
|
|
2922
|
+
if (!t.hasSelectedNumberingPlan()) {
|
|
2923
|
+
if (d.v2)
|
|
2924
|
+
throw new m("INVALID_COUNTRY");
|
|
2925
|
+
return {};
|
|
2926
|
+
}
|
|
2927
|
+
if (!o || o.length < V) {
|
|
2928
|
+
if (d.v2)
|
|
2929
|
+
throw new m("TOO_SHORT");
|
|
2930
|
+
return {};
|
|
2931
|
+
}
|
|
2932
|
+
if (o.length > ed) {
|
|
2933
|
+
if (d.v2)
|
|
2934
|
+
throw new m("TOO_LONG");
|
|
2935
|
+
return {};
|
|
2936
|
+
}
|
|
2937
|
+
if (d.v2) {
|
|
2938
|
+
var v = new it(c, o, t.metadata);
|
|
2939
|
+
return u && (v.country = u), f && (v.carrierCode = f), i && (v.ext = i), v;
|
|
2940
|
+
}
|
|
2941
|
+
var O = (d.extended ? t.hasSelectedNumberingPlan() : u) ? y(o, t.nationalNumberPattern()) : !1;
|
|
2942
|
+
return d.extended ? {
|
|
2943
|
+
country: u,
|
|
2944
|
+
countryCallingCode: c,
|
|
2945
|
+
carrierCode: f,
|
|
2946
|
+
valid: O,
|
|
2947
|
+
possible: O ? !0 : !!(d.extended === !0 && t.possibleLengths() && Te(o, t)),
|
|
2948
|
+
phone: o,
|
|
2949
|
+
ext: i
|
|
2950
|
+
} : O ? wt(u, o, i) : {};
|
|
2951
|
+
}
|
|
2952
|
+
function Pt(e, d, t) {
|
|
2953
|
+
if (e) {
|
|
2954
|
+
if (e.length > bt) {
|
|
2955
|
+
if (t)
|
|
2956
|
+
throw new m("TOO_LONG");
|
|
2957
|
+
return;
|
|
2958
|
+
}
|
|
2959
|
+
if (d === !1)
|
|
2960
|
+
return e;
|
|
2961
|
+
var n = e.search(vt);
|
|
2962
|
+
if (!(n < 0))
|
|
2963
|
+
return e.slice(n).replace(Ct, "");
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
function Nt(e, d, t) {
|
|
2967
|
+
if (e && e.indexOf("tel:") === 0)
|
|
2968
|
+
return Bd(e);
|
|
2969
|
+
var n = Pt(e, t, d);
|
|
2970
|
+
if (!n)
|
|
2971
|
+
return {};
|
|
2972
|
+
if (!Se(n))
|
|
2973
|
+
return Pd(n) ? {
|
|
2974
|
+
error: "TOO_SHORT"
|
|
2975
|
+
} : {};
|
|
2976
|
+
var r = Nd(n);
|
|
2977
|
+
return r.ext ? r : {
|
|
2978
|
+
number: n
|
|
2979
|
+
};
|
|
2980
|
+
}
|
|
2981
|
+
function wt(e, d, t) {
|
|
2982
|
+
var n = {
|
|
2983
|
+
country: e,
|
|
2984
|
+
phone: d
|
|
2985
|
+
};
|
|
2986
|
+
return t && (n.ext = t), n;
|
|
2987
|
+
}
|
|
2988
|
+
function It(e, d, t, n) {
|
|
2989
|
+
var r = ct(ie(e), d, t, n.metadata), i = r.countryCallingCode, a = r.number, $;
|
|
2990
|
+
if (i)
|
|
2991
|
+
n.selectNumberingPlan(i);
|
|
2992
|
+
else if (a && (d || t))
|
|
2993
|
+
n.selectNumberingPlan(d, t), d && ($ = d), i = t || W(d, n.metadata);
|
|
2994
|
+
else
|
|
2995
|
+
return {};
|
|
2996
|
+
if (!a)
|
|
2997
|
+
return {
|
|
2998
|
+
countryCallingCode: i
|
|
2999
|
+
};
|
|
3000
|
+
var u = U(ie(a), n), o = u.nationalNumber, c = u.carrierCode, f = mt(i, o, n);
|
|
3001
|
+
return f && ($ = f, f === "001" || n.country($)), {
|
|
3002
|
+
country: $,
|
|
3003
|
+
countryCallingCode: i,
|
|
3004
|
+
nationalNumber: o,
|
|
3005
|
+
carrierCode: c
|
|
3006
|
+
};
|
|
3007
|
+
}
|
|
3008
|
+
function me(e, d) {
|
|
3009
|
+
var t = Object.keys(e);
|
|
3010
|
+
if (Object.getOwnPropertySymbols) {
|
|
3011
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
3012
|
+
d && (n = n.filter(function(r) {
|
|
3013
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
3014
|
+
})), t.push.apply(t, n);
|
|
3015
|
+
}
|
|
3016
|
+
return t;
|
|
3017
|
+
}
|
|
3018
|
+
function ge(e) {
|
|
3019
|
+
for (var d = 1; d < arguments.length; d++) {
|
|
3020
|
+
var t = arguments[d] != null ? arguments[d] : {};
|
|
3021
|
+
d % 2 ? me(Object(t), !0).forEach(function(n) {
|
|
3022
|
+
Et(e, n, t[n]);
|
|
3023
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : me(Object(t)).forEach(function(n) {
|
|
3024
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
3025
|
+
});
|
|
3026
|
+
}
|
|
3027
|
+
return e;
|
|
3028
|
+
}
|
|
3029
|
+
function Et(e, d, t) {
|
|
3030
|
+
return d in e ? Object.defineProperty(e, d, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = t, e;
|
|
3031
|
+
}
|
|
3032
|
+
function St(e, d, t) {
|
|
3033
|
+
return Ot(e, ge(ge({}, d), {}, {
|
|
3034
|
+
v2: !0
|
|
3035
|
+
}), t);
|
|
3036
|
+
}
|
|
3037
|
+
function H(e) {
|
|
3038
|
+
return H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(d) {
|
|
3039
|
+
return typeof d;
|
|
3040
|
+
} : function(d) {
|
|
3041
|
+
return d && typeof Symbol == "function" && d.constructor === Symbol && d !== Symbol.prototype ? "symbol" : typeof d;
|
|
3042
|
+
}, H(e);
|
|
3043
|
+
}
|
|
3044
|
+
function be(e, d) {
|
|
3045
|
+
var t = Object.keys(e);
|
|
3046
|
+
if (Object.getOwnPropertySymbols) {
|
|
3047
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
3048
|
+
d && (n = n.filter(function(r) {
|
|
3049
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
3050
|
+
})), t.push.apply(t, n);
|
|
3051
|
+
}
|
|
3052
|
+
return t;
|
|
3053
|
+
}
|
|
3054
|
+
function _t(e) {
|
|
3055
|
+
for (var d = 1; d < arguments.length; d++) {
|
|
3056
|
+
var t = arguments[d] != null ? arguments[d] : {};
|
|
3057
|
+
d % 2 ? be(Object(t), !0).forEach(function(n) {
|
|
3058
|
+
Tt(e, n, t[n]);
|
|
3059
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : be(Object(t)).forEach(function(n) {
|
|
3060
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
3061
|
+
});
|
|
3062
|
+
}
|
|
3063
|
+
return e;
|
|
3064
|
+
}
|
|
3065
|
+
function Tt(e, d, t) {
|
|
3066
|
+
return d in e ? Object.defineProperty(e, d, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = t, e;
|
|
3067
|
+
}
|
|
3068
|
+
function Ft(e, d) {
|
|
3069
|
+
return Rt(e) || Dt(e, d) || At(e, d) || xt();
|
|
3070
|
+
}
|
|
3071
|
+
function xt() {
|
|
3072
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3073
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3074
|
+
}
|
|
3075
|
+
function At(e, d) {
|
|
3076
|
+
if (e) {
|
|
3077
|
+
if (typeof e == "string")
|
|
3078
|
+
return ve(e, d);
|
|
3079
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
3080
|
+
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
|
|
3081
|
+
return Array.from(e);
|
|
3082
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
3083
|
+
return ve(e, d);
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
function ve(e, d) {
|
|
3087
|
+
(d == null || d > e.length) && (d = e.length);
|
|
3088
|
+
for (var t = 0, n = new Array(d); t < d; t++)
|
|
3089
|
+
n[t] = e[t];
|
|
3090
|
+
return n;
|
|
3091
|
+
}
|
|
3092
|
+
function Dt(e, d) {
|
|
3093
|
+
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3094
|
+
if (t != null) {
|
|
3095
|
+
var n = [], r = !0, i = !1, a, $;
|
|
3096
|
+
try {
|
|
3097
|
+
for (t = t.call(e); !(r = (a = t.next()).done) && (n.push(a.value), !(d && n.length === d)); r = !0)
|
|
3098
|
+
;
|
|
3099
|
+
} catch (u) {
|
|
3100
|
+
i = !0, $ = u;
|
|
3101
|
+
} finally {
|
|
3102
|
+
try {
|
|
3103
|
+
!r && t.return != null && t.return();
|
|
3104
|
+
} finally {
|
|
3105
|
+
if (i)
|
|
3106
|
+
throw $;
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
return n;
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
function Rt(e) {
|
|
3113
|
+
if (Array.isArray(e))
|
|
3114
|
+
return e;
|
|
3115
|
+
}
|
|
3116
|
+
function Mt(e) {
|
|
3117
|
+
var d = Array.prototype.slice.call(e), t = Ft(d, 4), n = t[0], r = t[1], i = t[2], a = t[3], $, u, o;
|
|
3118
|
+
if (typeof n == "string")
|
|
3119
|
+
$ = n;
|
|
3120
|
+
else
|
|
3121
|
+
throw new TypeError("A text for parsing must be a string.");
|
|
3122
|
+
if (!r || typeof r == "string")
|
|
3123
|
+
a ? (u = i, o = a) : (u = void 0, o = i), r && (u = _t({
|
|
3124
|
+
defaultCountry: r
|
|
3125
|
+
}, u));
|
|
3126
|
+
else if (Lt(r))
|
|
3127
|
+
i ? (u = r, o = i) : o = r;
|
|
3128
|
+
else
|
|
3129
|
+
throw new Error("Invalid second argument: ".concat(r));
|
|
3130
|
+
return {
|
|
3131
|
+
text: $,
|
|
3132
|
+
options: u,
|
|
3133
|
+
metadata: o
|
|
3134
|
+
};
|
|
3135
|
+
}
|
|
3136
|
+
var Lt = function(d) {
|
|
3137
|
+
return H(d) === "object";
|
|
3138
|
+
};
|
|
3139
|
+
function Ce(e, d) {
|
|
3140
|
+
var t = Object.keys(e);
|
|
3141
|
+
if (Object.getOwnPropertySymbols) {
|
|
3142
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
3143
|
+
d && (n = n.filter(function(r) {
|
|
3144
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
3145
|
+
})), t.push.apply(t, n);
|
|
3146
|
+
}
|
|
3147
|
+
return t;
|
|
3148
|
+
}
|
|
3149
|
+
function Oe(e) {
|
|
3150
|
+
for (var d = 1; d < arguments.length; d++) {
|
|
3151
|
+
var t = arguments[d] != null ? arguments[d] : {};
|
|
3152
|
+
d % 2 ? Ce(Object(t), !0).forEach(function(n) {
|
|
3153
|
+
kt(e, n, t[n]);
|
|
3154
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ce(Object(t)).forEach(function(n) {
|
|
3155
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
3156
|
+
});
|
|
3157
|
+
}
|
|
3158
|
+
return e;
|
|
3159
|
+
}
|
|
3160
|
+
function kt(e, d, t) {
|
|
3161
|
+
return d in e ? Object.defineProperty(e, d, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = t, e;
|
|
3162
|
+
}
|
|
3163
|
+
function Bt(e, d, t) {
|
|
3164
|
+
d && d.defaultCountry && !yd(d.defaultCountry, t) && (d = Oe(Oe({}, d), {}, {
|
|
3165
|
+
defaultCountry: void 0
|
|
3166
|
+
}));
|
|
3167
|
+
try {
|
|
3168
|
+
return St(e, d, t);
|
|
3169
|
+
} catch (n) {
|
|
3170
|
+
if (!(n instanceof m))
|
|
3171
|
+
throw n;
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
function Gt() {
|
|
3175
|
+
var e = Mt(arguments), d = e.text, t = e.options, n = e.metadata;
|
|
3176
|
+
return Bt(d, t, n);
|
|
3177
|
+
}
|
|
3178
|
+
function k() {
|
|
3179
|
+
return ze(Gt, arguments);
|
|
3180
|
+
}
|
|
3181
|
+
const jt = {
|
|
3182
|
+
beforeMount(e, d, t) {
|
|
3183
|
+
if (typeof d.value != "function") {
|
|
3184
|
+
const n = t.context.name;
|
|
3185
|
+
let r = `[Vue-click-outside:] provided expression ${d.expression} is not a function, but has to be`;
|
|
3186
|
+
n && (r += `Found in component ${n}`), console.warn(r);
|
|
3187
|
+
}
|
|
3188
|
+
e.clickOutsideEvent = function(n) {
|
|
3189
|
+
e === n.target || e.contains(n.target) || d.value(n, e);
|
|
3190
|
+
}, document.body.addEventListener("click", e.clickOutsideEvent);
|
|
3191
|
+
},
|
|
3192
|
+
unmounted(e) {
|
|
3193
|
+
document.body.removeEventListener("click", e.clickOutsideEvent);
|
|
3194
|
+
}
|
|
3195
|
+
};
|
|
3196
|
+
const Ut = (e, d) => {
|
|
3197
|
+
const t = e.__vccOpts || e;
|
|
3198
|
+
for (const [n, r] of d)
|
|
3199
|
+
t[n] = r;
|
|
3200
|
+
return t;
|
|
3201
|
+
};
|
|
3202
|
+
function s(e) {
|
|
3203
|
+
const d = B.options[e];
|
|
3204
|
+
return typeof d > "u" ? B.options[e] : d;
|
|
3205
|
+
}
|
|
3206
|
+
const Ht = {
|
|
3207
|
+
name: "VueTelInput",
|
|
3208
|
+
directives: {
|
|
3209
|
+
clickOutside: jt
|
|
3210
|
+
},
|
|
3211
|
+
props: {
|
|
3212
|
+
modelValue: {
|
|
3213
|
+
type: String,
|
|
3214
|
+
default: ""
|
|
3215
|
+
},
|
|
3216
|
+
allCountries: {
|
|
3217
|
+
type: Array,
|
|
3218
|
+
default: () => s("allCountries")
|
|
3219
|
+
},
|
|
3220
|
+
autoFormat: {
|
|
3221
|
+
type: Boolean,
|
|
3222
|
+
default: () => s("autoFormat")
|
|
3223
|
+
},
|
|
3224
|
+
customValidate: {
|
|
3225
|
+
type: [Boolean, RegExp],
|
|
3226
|
+
default: () => s("customValidate")
|
|
3227
|
+
},
|
|
3228
|
+
defaultCountry: {
|
|
3229
|
+
// Default country code, ie: 'AU'
|
|
3230
|
+
// Will override the current country of user
|
|
3231
|
+
type: [String, Number],
|
|
3232
|
+
default: () => s("defaultCountry")
|
|
3233
|
+
},
|
|
3234
|
+
disabled: {
|
|
3235
|
+
type: Boolean,
|
|
3236
|
+
default: () => s("disabled")
|
|
3237
|
+
},
|
|
3238
|
+
autoDefaultCountry: {
|
|
3239
|
+
type: Boolean,
|
|
3240
|
+
default: () => s("autoDefaultCountry")
|
|
3241
|
+
},
|
|
3242
|
+
dropdownOptions: {
|
|
3243
|
+
type: Object,
|
|
3244
|
+
default: () => s("dropdownOptions")
|
|
3245
|
+
},
|
|
3246
|
+
ignoredCountries: {
|
|
3247
|
+
type: Array,
|
|
3248
|
+
default: () => s("ignoredCountries")
|
|
3249
|
+
},
|
|
3250
|
+
inputOptions: {
|
|
3251
|
+
type: Object,
|
|
3252
|
+
default: () => s("inputOptions")
|
|
3253
|
+
},
|
|
3254
|
+
invalidMsg: {
|
|
3255
|
+
type: String,
|
|
3256
|
+
default: () => s("invalidMsg")
|
|
3257
|
+
},
|
|
3258
|
+
mode: {
|
|
3259
|
+
type: String,
|
|
3260
|
+
default: () => s("mode")
|
|
3261
|
+
},
|
|
3262
|
+
onlyCountries: {
|
|
3263
|
+
type: Array,
|
|
3264
|
+
default: () => s("onlyCountries")
|
|
3265
|
+
},
|
|
3266
|
+
preferredCountries: {
|
|
3267
|
+
type: Array,
|
|
3268
|
+
default: () => s("preferredCountries")
|
|
3269
|
+
},
|
|
3270
|
+
validCharactersOnly: {
|
|
3271
|
+
type: Boolean,
|
|
3272
|
+
default: () => s("validCharactersOnly")
|
|
3273
|
+
},
|
|
3274
|
+
styleClasses: {
|
|
3275
|
+
type: [String, Array, Object],
|
|
3276
|
+
default: () => s("styleClasses")
|
|
3277
|
+
}
|
|
3278
|
+
},
|
|
3279
|
+
data() {
|
|
3280
|
+
return {
|
|
3281
|
+
phone: "",
|
|
3282
|
+
activeCountryCode: "",
|
|
3283
|
+
open: !1,
|
|
3284
|
+
finishMounted: !1,
|
|
3285
|
+
selectedIndex: null,
|
|
3286
|
+
typeToFindInput: "",
|
|
3287
|
+
typeToFindTimer: null,
|
|
3288
|
+
dropdownOpenDirection: "below",
|
|
3289
|
+
parsedPlaceholder: this.inputOptions.placeholder
|
|
3290
|
+
};
|
|
3291
|
+
},
|
|
3292
|
+
computed: {
|
|
3293
|
+
activeCountry() {
|
|
3294
|
+
return this.findCountry(this.activeCountryCode);
|
|
3295
|
+
},
|
|
3296
|
+
parsedMode() {
|
|
3297
|
+
return this.mode === "auto" ? !this.phone || this.phone[0] !== "+" ? "national" : "international" : ["international", "national"].includes(this.mode) ? this.mode : (console.error('Invalid value of prop "mode"'), "international");
|
|
3298
|
+
},
|
|
3299
|
+
filteredCountries() {
|
|
3300
|
+
return this.onlyCountries.length ? this.allCountries.filter(({ iso2: e }) => this.onlyCountries.some((d) => d.toUpperCase() === e)) : this.ignoredCountries.length ? this.allCountries.filter(
|
|
3301
|
+
({ iso2: e }) => !this.ignoredCountries.includes(e.toUpperCase()) && !this.ignoredCountries.includes(e.toLowerCase())
|
|
3302
|
+
) : this.allCountries;
|
|
3303
|
+
},
|
|
3304
|
+
sortedCountries() {
|
|
3305
|
+
return [...this.getCountries(this.preferredCountries).map((d) => ({ ...d, preferred: !0 })), ...this.filteredCountries];
|
|
3306
|
+
},
|
|
3307
|
+
phoneObject() {
|
|
3308
|
+
var i, a, $;
|
|
3309
|
+
let e;
|
|
3310
|
+
((i = this.phone) == null ? void 0 : i[0]) === "+" ? e = k(this.phone) || {} : e = k(this.phone, this.activeCountryCode) || {};
|
|
3311
|
+
const {
|
|
3312
|
+
metadata: d,
|
|
3313
|
+
...t
|
|
3314
|
+
} = e;
|
|
3315
|
+
let n = (a = e.isValid) == null ? void 0 : a.call(e), r = this.phone;
|
|
3316
|
+
return n && (r = ($ = e.format) == null ? void 0 : $.call(e, this.parsedMode.toUpperCase())), e.country && (this.ignoredCountries.length || this.onlyCountries.length) && (this.findCountry(e.country) || (n = !1, Object.assign(e, { country: null }))), Object.assign(t, {
|
|
3317
|
+
countryCode: e.country,
|
|
3318
|
+
valid: n,
|
|
3319
|
+
country: this.activeCountry,
|
|
3320
|
+
formatted: r
|
|
3321
|
+
}), t;
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3324
|
+
watch: {
|
|
3325
|
+
activeCountry(e, d) {
|
|
3326
|
+
if (!e && (d != null && d.iso2)) {
|
|
3327
|
+
this.activeCountryCode = d.iso2;
|
|
3328
|
+
return;
|
|
3329
|
+
}
|
|
3330
|
+
e != null && e.iso2 && this.$emit("country-changed", e);
|
|
3331
|
+
},
|
|
3332
|
+
"phoneObject.countryCode": function(e) {
|
|
3333
|
+
this.activeCountryCode = e || "";
|
|
3334
|
+
},
|
|
3335
|
+
"phoneObject.valid": function() {
|
|
3336
|
+
this.$emit("validate", this.phoneObject);
|
|
3337
|
+
},
|
|
3338
|
+
"phoneObject.formatted": function(e) {
|
|
3339
|
+
!this.autoFormat || this.customValidate || (this.emitInput(e), this.$nextTick(() => {
|
|
3340
|
+
e && !this.modelValue && (this.phone = e);
|
|
3341
|
+
}));
|
|
3342
|
+
},
|
|
3343
|
+
// finishMounted() {
|
|
3344
|
+
// this.resetPlaceholder();
|
|
3345
|
+
// },
|
|
3346
|
+
"inputOptions.placeholder": function() {
|
|
3347
|
+
this.resetPlaceholder();
|
|
3348
|
+
},
|
|
3349
|
+
modelValue(e, d) {
|
|
3350
|
+
this.testCharacters() ? this.phone = e : this.$nextTick(() => {
|
|
3351
|
+
this.phone = d, this.onInput();
|
|
3352
|
+
});
|
|
3353
|
+
},
|
|
3354
|
+
open(e) {
|
|
3355
|
+
e ? (this.setDropdownPosition(), this.$emit("open")) : this.$emit("close");
|
|
3356
|
+
}
|
|
3357
|
+
},
|
|
3358
|
+
mounted() {
|
|
3359
|
+
this.modelValue && (this.phone = this.modelValue.trim()), this.cleanInvalidCharacters(), this.initializeCountry().then(() => {
|
|
3360
|
+
var e;
|
|
3361
|
+
!this.phone && ((e = this.inputOptions) != null && e.showDialCode) && this.activeCountryCode && (this.phone = `+${this.activeCountryCode}`), this.$emit("validate", this.phoneObject);
|
|
3362
|
+
}).catch(console.error).then(() => {
|
|
3363
|
+
this.finishMounted = !0;
|
|
3364
|
+
});
|
|
3365
|
+
},
|
|
3366
|
+
methods: {
|
|
3367
|
+
resetPlaceholder() {
|
|
3368
|
+
this.parsedPlaceholder = this.inputOptions.placeholder;
|
|
3369
|
+
},
|
|
3370
|
+
initializeCountry() {
|
|
3371
|
+
return new Promise((e) => {
|
|
3372
|
+
var t;
|
|
3373
|
+
if (((t = this.phone) == null ? void 0 : t[0]) === "+") {
|
|
3374
|
+
e();
|
|
3375
|
+
return;
|
|
3376
|
+
}
|
|
3377
|
+
if (this.defaultCountry) {
|
|
3378
|
+
if (typeof this.defaultCountry == "string") {
|
|
3379
|
+
this.choose(this.defaultCountry), e();
|
|
3380
|
+
return;
|
|
3381
|
+
}
|
|
3382
|
+
if (typeof this.defaultCountry == "number") {
|
|
3383
|
+
const n = this.findCountryByDialCode(this.defaultCountry);
|
|
3384
|
+
if (n) {
|
|
3385
|
+
this.choose(n.iso2), e();
|
|
3386
|
+
return;
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
const d = this.preferredCountries[0] || this.filteredCountries[0];
|
|
3391
|
+
this.autoDefaultCountry ? He().then((n) => {
|
|
3392
|
+
this.choose(n || this.activeCountryCode);
|
|
3393
|
+
}).catch((n) => {
|
|
3394
|
+
console.warn(n), this.choose(d);
|
|
3395
|
+
}).then(() => {
|
|
3396
|
+
e();
|
|
3397
|
+
}) : (this.choose(d), e());
|
|
3398
|
+
});
|
|
3399
|
+
},
|
|
3400
|
+
/**
|
|
3401
|
+
* Get the list of countries from the list of iso2 code
|
|
3402
|
+
*/
|
|
3403
|
+
getCountries(e = []) {
|
|
3404
|
+
return e.map((d) => this.findCountry(d)).filter(Boolean);
|
|
3405
|
+
},
|
|
3406
|
+
findCountry(e = "") {
|
|
3407
|
+
return this.filteredCountries.find((d) => d.iso2 === e.toUpperCase());
|
|
3408
|
+
},
|
|
3409
|
+
findCountryByDialCode(e) {
|
|
3410
|
+
return this.filteredCountries.find((d) => Number(d.dialCode) === e);
|
|
3411
|
+
},
|
|
3412
|
+
getItemClass(e, d) {
|
|
3413
|
+
const t = this.selectedIndex === e, n = e === this.preferredCountries.length - 1, r = this.preferredCountries.some((i) => i.toUpperCase() === d);
|
|
3414
|
+
return {
|
|
3415
|
+
highlighted: t,
|
|
3416
|
+
"last-preferred": n,
|
|
3417
|
+
preferred: r
|
|
3418
|
+
};
|
|
3419
|
+
},
|
|
3420
|
+
choose(e) {
|
|
3421
|
+
var t, n;
|
|
3422
|
+
let d = e;
|
|
3423
|
+
if (typeof d == "string" && (d = this.findCountry(d)), !!d) {
|
|
3424
|
+
if (((t = this.phone) == null ? void 0 : t[0]) === "+" && d.iso2 && this.phoneObject.nationalNumber) {
|
|
3425
|
+
this.activeCountryCode = d.iso2, this.phone = k(
|
|
3426
|
+
this.phoneObject.nationalNumber,
|
|
3427
|
+
d.iso2
|
|
3428
|
+
).formatInternational();
|
|
3429
|
+
return;
|
|
3430
|
+
}
|
|
3431
|
+
if ((n = this.inputOptions) != null && n.showDialCode && d) {
|
|
3432
|
+
this.phone = `+${d.dialCode}`, this.activeCountryCode = d.iso2 || "";
|
|
3433
|
+
return;
|
|
3434
|
+
}
|
|
3435
|
+
this.activeCountryCode = d.iso2 || "", this.emitInput(this.phone);
|
|
3436
|
+
}
|
|
3437
|
+
},
|
|
3438
|
+
cleanInvalidCharacters() {
|
|
3439
|
+
const e = this.phone;
|
|
3440
|
+
if (this.validCharactersOnly) {
|
|
3441
|
+
const d = this.phone.match(/[()\-+0-9\s]*/g);
|
|
3442
|
+
this.phone = d.join("");
|
|
3443
|
+
}
|
|
3444
|
+
if (this.customValidate && this.customValidate instanceof RegExp) {
|
|
3445
|
+
const d = this.phone.match(this.customValidate);
|
|
3446
|
+
this.phone = d.join("");
|
|
3447
|
+
}
|
|
3448
|
+
e !== this.phone && this.emitInput(this.phone);
|
|
3449
|
+
},
|
|
3450
|
+
testCharacters() {
|
|
3451
|
+
return this.validCharactersOnly && !/^[()\-+0-9\s]*$/.test(this.phone) ? !1 : this.customValidate ? this.testCustomValidate() : !0;
|
|
3452
|
+
},
|
|
3453
|
+
testCustomValidate() {
|
|
3454
|
+
return this.customValidate instanceof RegExp ? this.customValidate.test(this.phone) : !1;
|
|
3455
|
+
},
|
|
3456
|
+
onInput() {
|
|
3457
|
+
this.$refs.input.setCustomValidity(this.phoneObject.valid ? "" : this.invalidMsg), this.emitInput(this.phone);
|
|
3458
|
+
},
|
|
3459
|
+
emitInput(e) {
|
|
3460
|
+
this.$emit("update:modelValue", e), this.$emit("on-input", e, this.phoneObject, this.$refs.input);
|
|
3461
|
+
},
|
|
3462
|
+
onBlur() {
|
|
3463
|
+
this.$emit("blur");
|
|
3464
|
+
},
|
|
3465
|
+
onFocus() {
|
|
3466
|
+
Ve(this.$refs.input, this.phone.length), this.$emit("focus");
|
|
3467
|
+
},
|
|
3468
|
+
onEnter() {
|
|
3469
|
+
this.$emit("enter");
|
|
3470
|
+
},
|
|
3471
|
+
onSpace() {
|
|
3472
|
+
this.$emit("space");
|
|
3473
|
+
},
|
|
3474
|
+
focus() {
|
|
3475
|
+
this.$refs.input.focus();
|
|
3476
|
+
},
|
|
3477
|
+
toggleDropdown() {
|
|
3478
|
+
this.disabled || this.dropdownOptions.disabled || (this.open = !this.open);
|
|
3479
|
+
},
|
|
3480
|
+
clickedOutside() {
|
|
3481
|
+
this.open = !1;
|
|
3482
|
+
},
|
|
3483
|
+
keyboardNav(e) {
|
|
3484
|
+
if (e.keyCode === 40) {
|
|
3485
|
+
e.preventDefault(), this.open = !0, this.selectedIndex === null ? this.selectedIndex = 0 : this.selectedIndex = Math.min(this.sortedCountries.length - 1, this.selectedIndex + 1);
|
|
3486
|
+
const d = this.$refs.list.children[this.selectedIndex];
|
|
3487
|
+
d.focus(), d.offsetTop + d.clientHeight > this.$refs.list.scrollTop + this.$refs.list.clientHeight && (this.$refs.list.scrollTop = d.offsetTop - this.$refs.list.clientHeight + d.clientHeight);
|
|
3488
|
+
} else if (e.keyCode === 38) {
|
|
3489
|
+
e.preventDefault(), this.open = !0, this.selectedIndex === null ? this.selectedIndex = this.sortedCountries.length - 1 : this.selectedIndex = Math.max(0, this.selectedIndex - 1);
|
|
3490
|
+
const d = this.$refs.list.children[this.selectedIndex];
|
|
3491
|
+
d.focus(), d.offsetTop < this.$refs.list.scrollTop && (this.$refs.list.scrollTop = d.offsetTop);
|
|
3492
|
+
} else if (e.keyCode === 13)
|
|
3493
|
+
this.selectedIndex !== null && this.choose(this.sortedCountries[this.selectedIndex]), this.open = !this.open;
|
|
3494
|
+
else {
|
|
3495
|
+
this.typeToFindInput += e.key, clearTimeout(this.typeToFindTimer), this.typeToFindTimer = setTimeout(() => {
|
|
3496
|
+
this.typeToFindInput = "";
|
|
3497
|
+
}, 700);
|
|
3498
|
+
const d = this.sortedCountries.slice(this.preferredCountries.length).findIndex((t) => t.name.toLowerCase().startsWith(this.typeToFindInput));
|
|
3499
|
+
if (d >= 0) {
|
|
3500
|
+
this.selectedIndex = this.preferredCountries.length + d;
|
|
3501
|
+
const t = this.$refs.list.children[this.selectedIndex], n = t.offsetTop < this.$refs.list.scrollTop, r = t.offsetTop + t.clientHeight > this.$refs.list.scrollTop + this.$refs.list.clientHeight;
|
|
3502
|
+
(n || r) && (this.$refs.list.scrollTop = t.offsetTop - this.$refs.list.clientHeight / 2);
|
|
3503
|
+
}
|
|
3504
|
+
}
|
|
3505
|
+
},
|
|
3506
|
+
reset() {
|
|
3507
|
+
this.selectedIndex = this.sortedCountries.map((e) => e.iso2).indexOf(this.activeCountryCode), this.open = !1;
|
|
3508
|
+
},
|
|
3509
|
+
setDropdownPosition() {
|
|
3510
|
+
window.innerHeight - this.$el.getBoundingClientRect().bottom > 200 ? this.dropdownOpenDirection = "below" : this.dropdownOpenDirection = "above";
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
3513
|
+
}, Vt = ["aria-expanded", "tabindex"], Kt = { class: "vti__selection" }, Wt = {
|
|
3514
|
+
key: 1,
|
|
3515
|
+
class: "vti__country-code"
|
|
3516
|
+
}, zt = { class: "vti__dropdown-arrow" }, Xt = ["onClick", "onMousemove", "aria-selected"], Yt = { key: 1 }, Zt = ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex", "value", "aria-describedby"];
|
|
3517
|
+
function Jt(e, d, t, n, r, i) {
|
|
3518
|
+
const a = Le("click-outside");
|
|
3519
|
+
return h(), p("div", {
|
|
3520
|
+
class: b(["vue-tel-input", t.styleClasses, { disabled: t.disabled }])
|
|
3521
|
+
}, [
|
|
3522
|
+
Y((h(), p("div", {
|
|
3523
|
+
"aria-label": "Country Code Selector",
|
|
3524
|
+
"aria-haspopup": "listbox",
|
|
3525
|
+
"aria-expanded": r.open,
|
|
3526
|
+
role: "button",
|
|
3527
|
+
class: b(["vti__dropdown", { open: r.open, disabled: t.dropdownOptions.disabled }]),
|
|
3528
|
+
tabindex: t.dropdownOptions.tabindex,
|
|
3529
|
+
onKeydown: [
|
|
3530
|
+
d[0] || (d[0] = (...$) => i.keyboardNav && i.keyboardNav(...$)),
|
|
3531
|
+
d[2] || (d[2] = P((...$) => i.toggleDropdown && i.toggleDropdown(...$), ["space"])),
|
|
3532
|
+
d[3] || (d[3] = P((...$) => i.reset && i.reset(...$), ["esc"])),
|
|
3533
|
+
d[4] || (d[4] = P((...$) => i.reset && i.reset(...$), ["tab"]))
|
|
3534
|
+
],
|
|
3535
|
+
onClick: d[1] || (d[1] = (...$) => i.toggleDropdown && i.toggleDropdown(...$))
|
|
3536
|
+
}, [
|
|
3537
|
+
E("span", Kt, [
|
|
3538
|
+
t.dropdownOptions.showFlags ? (h(), p("span", {
|
|
3539
|
+
key: 0,
|
|
3540
|
+
class: b(["vti__flag", r.activeCountryCode.toLowerCase()])
|
|
3541
|
+
}, null, 2)) : N("", !0),
|
|
3542
|
+
t.dropdownOptions.showDialCodeInSelection ? (h(), p("span", Wt, " +" + S(i.activeCountry && i.activeCountry.dialCode), 1)) : N("", !0),
|
|
3543
|
+
Z(e.$slots, "arrow-icon", { open: r.open }, () => [
|
|
3544
|
+
E("span", zt, S(r.open ? "▲" : "▼"), 1)
|
|
3545
|
+
])
|
|
3546
|
+
]),
|
|
3547
|
+
r.open ? (h(), p("ul", {
|
|
3548
|
+
key: 0,
|
|
3549
|
+
ref: "list",
|
|
3550
|
+
class: b(["vti__dropdown-list", r.dropdownOpenDirection]),
|
|
3551
|
+
role: "listbox"
|
|
3552
|
+
}, [
|
|
3553
|
+
(h(!0), p(ke, null, Be(i.sortedCountries, ($, u) => (h(), p("li", {
|
|
3554
|
+
role: "option",
|
|
3555
|
+
class: b(["vti__dropdown-item", i.getItemClass(u, $.iso2)]),
|
|
3556
|
+
key: $.iso2 + ($.preferred ? "-preferred" : ""),
|
|
3557
|
+
tabindex: "-1",
|
|
3558
|
+
onClick: (o) => i.choose($),
|
|
3559
|
+
onMousemove: (o) => r.selectedIndex = u,
|
|
3560
|
+
"aria-selected": r.activeCountryCode === $.iso2 && !$.preferred
|
|
3561
|
+
}, [
|
|
3562
|
+
t.dropdownOptions.showFlags ? (h(), p("span", {
|
|
3563
|
+
key: 0,
|
|
3564
|
+
class: b(["vti__flag", $.iso2.toLowerCase()])
|
|
3565
|
+
}, null, 2)) : N("", !0),
|
|
3566
|
+
E("strong", null, S($.name), 1),
|
|
3567
|
+
t.dropdownOptions.showDialCodeInList ? (h(), p("span", Yt, " +" + S($.dialCode), 1)) : N("", !0)
|
|
3568
|
+
], 42, Xt))), 128))
|
|
3569
|
+
], 2)) : N("", !0)
|
|
3570
|
+
], 42, Vt)), [
|
|
3571
|
+
[a, i.clickedOutside]
|
|
3572
|
+
]),
|
|
3573
|
+
Y(E("input", {
|
|
3574
|
+
"onUpdate:modelValue": d[5] || (d[5] = ($) => r.phone = $),
|
|
3575
|
+
ref: "input",
|
|
3576
|
+
type: t.inputOptions.type,
|
|
3577
|
+
autocomplete: t.inputOptions.autocomplete,
|
|
3578
|
+
autofocus: t.inputOptions.autofocus,
|
|
3579
|
+
class: b(["vti__input", t.inputOptions.styleClasses]),
|
|
3580
|
+
disabled: t.disabled,
|
|
3581
|
+
id: t.inputOptions.id,
|
|
3582
|
+
maxlength: t.inputOptions.maxlength,
|
|
3583
|
+
name: t.inputOptions.name,
|
|
3584
|
+
placeholder: r.parsedPlaceholder,
|
|
3585
|
+
readonly: t.inputOptions.readonly,
|
|
3586
|
+
required: t.inputOptions.required,
|
|
3587
|
+
tabindex: t.inputOptions.tabindex,
|
|
3588
|
+
value: t.modelValue,
|
|
3589
|
+
"aria-describedby": t.inputOptions["aria-describedby"],
|
|
3590
|
+
onBlur: d[6] || (d[6] = (...$) => i.onBlur && i.onBlur(...$)),
|
|
3591
|
+
onFocus: d[7] || (d[7] = (...$) => i.onFocus && i.onFocus(...$)),
|
|
3592
|
+
onInput: d[8] || (d[8] = (...$) => i.onInput && i.onInput(...$)),
|
|
3593
|
+
onKeyup: [
|
|
3594
|
+
d[9] || (d[9] = P((...$) => i.onEnter && i.onEnter(...$), ["enter"])),
|
|
3595
|
+
d[10] || (d[10] = P((...$) => i.onSpace && i.onSpace(...$), ["space"]))
|
|
3596
|
+
]
|
|
3597
|
+
}, null, 42, Zt), [
|
|
3598
|
+
[Ge, r.phone]
|
|
3599
|
+
]),
|
|
3600
|
+
Z(e.$slots, "icon-right")
|
|
3601
|
+
], 2);
|
|
3602
|
+
}
|
|
3603
|
+
const qt = /* @__PURE__ */ Ut(Ht, [["render", Jt]]), e1 = {
|
|
3604
|
+
install(e, d = {}) {
|
|
3605
|
+
const {
|
|
3606
|
+
dropdownOptions: t,
|
|
3607
|
+
inputOptions: n,
|
|
3608
|
+
...r
|
|
3609
|
+
} = d, {
|
|
3610
|
+
dropdownOptions: i,
|
|
3611
|
+
inputOptions: a,
|
|
3612
|
+
...$
|
|
3613
|
+
} = Pe;
|
|
3614
|
+
B.options = {
|
|
3615
|
+
inputOptions: {
|
|
3616
|
+
...a,
|
|
3617
|
+
...n
|
|
3618
|
+
},
|
|
3619
|
+
dropdownOptions: {
|
|
3620
|
+
...i,
|
|
3621
|
+
...t
|
|
3622
|
+
},
|
|
3623
|
+
...$,
|
|
3624
|
+
...r
|
|
3625
|
+
}, e.component("vue-tel-input", qt);
|
|
3626
|
+
}
|
|
3627
|
+
};
|
|
3628
|
+
export {
|
|
3629
|
+
qt as VueTelInput,
|
|
3630
|
+
e1 as default
|
|
3631
|
+
};
|