@swan-io/shared-business 4.4.1 → 4.5.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.
@@ -1,2260 +1,1766 @@
1
- import { isNotNullish, isNullish } from "@swan-io/lake/src/utils/nullish";
2
- import { locale, t } from "../utils/i18n";
1
+ import { Result } from "@swan-io/boxed";
2
+ import { deburr } from "@swan-io/lake/src/utils/string";
3
+ import { locale } from "../utils/i18n";
3
4
  export const france = {
4
5
  name: "France",
5
- deburr: "france",
6
6
  cca2: "FR",
7
7
  cca3: "FRA",
8
8
  idd: "33",
9
- uid: "FR-33",
10
9
  flag: "🇫🇷",
11
10
  };
12
11
  const readonlyCountries = [
13
12
  {
14
13
  name: "Åland",
15
- deburr: "aland",
16
14
  cca2: "AX",
17
15
  cca3: "ALA",
18
16
  idd: "358",
19
- uid: "AX-358",
20
17
  flag: "🇦🇽",
21
18
  },
22
19
  {
23
20
  name: "American Samoa",
24
- deburr: "american samoa",
25
21
  cca2: "AS",
26
22
  cca3: "ASM",
27
23
  idd: "1684",
28
- uid: "AS-1684",
29
24
  flag: "🇦🇸",
30
25
  },
31
26
  {
32
27
  name: "Andorra",
33
- deburr: "andorra",
34
28
  cca2: "AD",
35
29
  cca3: "AND",
36
30
  idd: "376",
37
- uid: "AD-376",
38
31
  flag: "🇦🇩",
39
32
  },
40
33
  {
41
34
  name: "Angola",
42
- deburr: "angola",
43
35
  cca2: "AO",
44
36
  cca3: "AGO",
45
37
  idd: "244",
46
- uid: "AO-244",
47
38
  flag: "🇦🇴",
48
39
  },
49
40
  {
50
41
  name: "Anguilla",
51
- deburr: "anguilla",
52
42
  cca2: "AI",
53
43
  cca3: "AIA",
54
44
  idd: "1264",
55
- uid: "AI-1264",
56
45
  flag: "🇦🇮",
57
46
  },
58
47
  {
59
48
  name: "Antarctica",
60
- deburr: "antarctica",
61
49
  cca2: "AQ",
62
50
  cca3: "ATA",
63
51
  idd: "672",
64
- uid: "AQ-672",
65
52
  flag: "🇦🇶",
66
53
  },
67
54
  {
68
55
  name: "Antigua and Barbuda",
69
- deburr: "antigua and barbuda",
70
56
  cca2: "AG",
71
57
  cca3: "ATG",
72
58
  idd: "1268",
73
- uid: "AG-1268",
74
59
  flag: "🇦🇬",
75
60
  },
76
61
  {
77
62
  name: "Argentina",
78
- deburr: "argentina",
79
63
  cca2: "AR",
80
64
  cca3: "ARG",
81
65
  idd: "54",
82
- uid: "AR-54",
83
66
  flag: "🇦🇷",
84
67
  },
85
68
  {
86
69
  name: "Aruba",
87
- deburr: "aruba",
88
70
  cca2: "AW",
89
71
  cca3: "ABW",
90
72
  idd: "297",
91
- uid: "AW-297",
92
73
  flag: "🇦🇼",
93
74
  },
94
75
  {
95
76
  name: "Australia",
96
- deburr: "australia",
97
77
  cca2: "AU",
98
78
  cca3: "AUS",
99
79
  idd: "61",
100
- uid: "AU-61",
101
80
  flag: "🇦🇺",
102
81
  },
103
82
  {
104
83
  name: "Azərbaycan",
105
- deburr: "azərbaycan",
106
84
  cca2: "AZ",
107
85
  cca3: "AZE",
108
86
  idd: "994",
109
- uid: "AZ-994",
110
87
  flag: "🇦🇿",
111
88
  },
112
89
  {
113
90
  name: "Bahamas",
114
- deburr: "bahamas",
115
91
  cca2: "BS",
116
92
  cca3: "BHS",
117
93
  idd: "1242",
118
- uid: "BS-1242",
119
94
  flag: "🇧🇸",
120
95
  },
121
96
  {
122
97
  name: "Bangladesh",
123
- deburr: "bangladesh",
124
98
  cca2: "BD",
125
99
  cca3: "BGD",
126
100
  idd: "880",
127
- uid: "BD-880",
128
101
  flag: "🇧🇩",
129
102
  },
130
103
  {
131
104
  name: "Barbados",
132
- deburr: "barbados",
133
105
  cca2: "BB",
134
106
  cca3: "BRB",
135
107
  idd: "1246",
136
- uid: "BB-1246",
137
108
  flag: "🇧🇧",
138
109
  },
139
110
  {
140
111
  name: "België",
141
- deburr: "belgie",
142
112
  cca2: "BE",
143
113
  cca3: "BEL",
144
114
  idd: "32",
145
- uid: "BE-32",
146
115
  flag: "🇧🇪",
147
116
  },
148
117
  {
149
118
  name: "Belize",
150
- deburr: "belize",
151
119
  cca2: "BZ",
152
120
  cca3: "BLZ",
153
121
  idd: "501",
154
- uid: "BZ-501",
155
122
  flag: "🇧🇿",
156
123
  },
157
124
  {
158
125
  name: "Bénin",
159
- deburr: "benin",
160
126
  cca2: "BJ",
161
127
  cca3: "BEN",
162
128
  idd: "229",
163
- uid: "BJ-229",
164
129
  flag: "🇧🇯",
165
130
  },
166
131
  {
167
132
  name: "Bermuda",
168
- deburr: "bermuda",
169
133
  cca2: "BM",
170
134
  cca3: "BMU",
171
135
  idd: "1441",
172
- uid: "BM-1441",
173
136
  flag: "🇧🇲",
174
137
  },
175
138
  {
176
139
  name: "Bolivia",
177
- deburr: "bolivia",
178
140
  cca2: "BO",
179
141
  cca3: "BOL",
180
142
  idd: "591",
181
- uid: "BO-591",
182
143
  flag: "🇧🇴",
183
144
  },
184
145
  {
185
146
  name: "Bonaire",
186
- deburr: "bonaire",
187
147
  cca2: "BQ",
188
148
  cca3: "BES",
189
149
  idd: "5997",
190
- uid: "BQ-5997",
191
150
  flag: "🇧🇶",
192
151
  },
193
152
  {
194
153
  name: "Bosna i Hercegovina",
195
- deburr: "bosna i hercegovina",
196
154
  cca2: "BA",
197
155
  cca3: "BIH",
198
156
  idd: "387",
199
- uid: "BA-387",
200
157
  flag: "🇧🇦",
201
158
  },
202
159
  {
203
160
  name: "Botswana",
204
- deburr: "botswana",
205
161
  cca2: "BW",
206
162
  cca3: "BWA",
207
163
  idd: "267",
208
- uid: "BW-267",
209
164
  flag: "🇧🇼",
210
165
  },
211
166
  {
212
167
  name: "Bouvetøya",
213
- deburr: "bouvetoya",
214
168
  cca2: "BV",
215
169
  cca3: "BVT",
216
170
  idd: "47",
217
- uid: "BV-47",
218
171
  flag: "🇧🇻",
219
172
  },
220
173
  {
221
174
  name: "Brasil",
222
- deburr: "brasil",
223
175
  cca2: "BR",
224
176
  cca3: "BRA",
225
177
  idd: "55",
226
- uid: "BR-55",
227
178
  flag: "🇧🇷",
228
179
  },
229
180
  {
230
181
  name: "British Virgin Islands",
231
- deburr: "british virgin islands",
232
182
  cca2: "VG",
233
183
  cca3: "VGB",
234
184
  idd: "1284",
235
- uid: "VG-1284",
236
185
  flag: "🇻🇬",
237
186
  },
238
187
  {
239
188
  name: "Burkina Faso",
240
- deburr: "burkina faso",
241
189
  cca2: "BF",
242
190
  cca3: "BFA",
243
191
  idd: "226",
244
- uid: "BF-226",
245
192
  flag: "🇧🇫",
246
193
  },
247
194
  {
248
195
  name: "Burundi",
249
- deburr: "burundi",
250
196
  cca2: "BI",
251
197
  cca3: "BDI",
252
198
  idd: "257",
253
- uid: "BI-257",
254
199
  flag: "🇧🇮",
255
200
  },
256
201
  {
257
202
  name: "Cabo Verde",
258
- deburr: "cabo verde",
259
203
  cca2: "CV",
260
204
  cca3: "CPV",
261
205
  idd: "238",
262
- uid: "CV-238",
263
206
  flag: "🇨🇻",
264
207
  },
265
208
  {
266
209
  name: "Cameroon",
267
- deburr: "cameroon",
268
210
  cca2: "CM",
269
211
  cca3: "CMR",
270
212
  idd: "237",
271
- uid: "CM-237",
272
213
  flag: "🇨🇲",
273
214
  },
274
215
  {
275
216
  name: "Canada",
276
- deburr: "canada",
277
217
  cca2: "CA",
278
218
  cca3: "CAN",
279
219
  idd: "1",
280
- uid: "CA-1",
281
220
  flag: "🇨🇦",
282
221
  },
283
222
  {
284
223
  name: "Cayman Islands",
285
- deburr: "cayman islands",
286
224
  cca2: "KY",
287
225
  cca3: "CYM",
288
226
  idd: "1345",
289
- uid: "KY-1345",
290
227
  flag: "🇰🇾",
291
228
  },
292
229
  {
293
230
  name: "Česká republika",
294
- deburr: "ceska republika",
295
231
  cca2: "CZ",
296
232
  cca3: "CZE",
297
233
  idd: "420",
298
- uid: "CZ-420",
299
234
  flag: "🇨🇿",
300
235
  },
301
236
  {
302
237
  name: "Chile",
303
- deburr: "chile",
304
238
  cca2: "CL",
305
239
  cca3: "CHL",
306
240
  idd: "56",
307
- uid: "CL-56",
308
241
  flag: "🇨🇱",
309
242
  },
310
243
  {
311
244
  name: "Christmas Island",
312
- deburr: "christmas island",
313
245
  cca2: "CX",
314
246
  cca3: "CXR",
315
247
  idd: "61",
316
- uid: "CX-61",
317
248
  flag: "🇨🇽",
318
249
  },
319
250
  {
320
251
  name: "Cocos (Keeling) Islands",
321
- deburr: "cocos (keeling) islands",
322
252
  cca2: "CC",
323
253
  cca3: "CCK",
324
254
  idd: "61",
325
- uid: "CC-61",
326
255
  flag: "🇨🇨",
327
256
  },
328
257
  {
329
258
  name: "Colombia",
330
- deburr: "colombia",
331
259
  cca2: "CO",
332
260
  cca3: "COL",
333
261
  idd: "57",
334
- uid: "CO-57",
335
262
  flag: "🇨🇴",
336
263
  },
337
264
  {
338
265
  name: "Cook Islands",
339
- deburr: "cook islands",
340
266
  cca2: "CK",
341
267
  cca3: "COK",
342
268
  idd: "682",
343
- uid: "CK-682",
344
269
  flag: "🇨🇰",
345
270
  },
346
271
  {
347
272
  name: "Costa Rica",
348
- deburr: "costa rica",
349
273
  cca2: "CR",
350
274
  cca3: "CRI",
351
275
  idd: "506",
352
- uid: "CR-506",
353
276
  flag: "🇨🇷",
354
277
  },
355
278
  {
356
279
  name: "Côte d'Ivoire",
357
- deburr: "cote d'ivoire",
358
280
  cca2: "CI",
359
281
  cca3: "CIV",
360
282
  idd: "225",
361
- uid: "CI-225",
362
283
  flag: "🇨🇮",
363
284
  },
364
285
  {
365
286
  name: "Cuba",
366
- deburr: "cuba",
367
287
  cca2: "CU",
368
288
  cca3: "CUB",
369
289
  idd: "53",
370
- uid: "CU-53",
371
290
  flag: "🇨🇺",
372
291
  },
373
292
  {
374
293
  name: "Curaçao",
375
- deburr: "curacao",
376
294
  cca2: "CW",
377
295
  cca3: "CUW",
378
296
  idd: "5999",
379
- uid: "CW-5999",
380
297
  flag: "🇨🇼",
381
298
  },
382
299
  {
383
300
  name: "Danmark",
384
- deburr: "danmark",
385
301
  cca2: "DK",
386
302
  cca3: "DNK",
387
303
  idd: "45",
388
- uid: "DK-45",
389
304
  flag: "🇩🇰",
390
305
  },
391
306
  {
392
307
  name: "Deutschland",
393
- deburr: "deutschland",
394
308
  cca2: "DE",
395
309
  cca3: "DEU",
396
310
  idd: "49",
397
- uid: "DE-49",
398
311
  flag: "🇩🇪",
399
312
  },
400
313
  {
401
314
  name: "Djibouti",
402
- deburr: "djibouti",
403
315
  cca2: "DJ",
404
316
  cca3: "DJI",
405
317
  idd: "253",
406
- uid: "DJ-253",
407
318
  flag: "🇩🇯",
408
319
  },
409
320
  {
410
321
  name: "Dominica",
411
- deburr: "dominica",
412
322
  cca2: "DM",
413
323
  cca3: "DMA",
414
324
  idd: "1767",
415
- uid: "DM-1767",
416
325
  flag: "🇩🇲",
417
326
  },
418
327
  {
419
328
  name: "Ecuador",
420
- deburr: "ecuador",
421
329
  cca2: "EC",
422
330
  cca3: "ECU",
423
331
  idd: "593",
424
- uid: "EC-593",
425
332
  flag: "🇪🇨",
426
333
  },
427
334
  {
428
335
  name: "Eesti",
429
- deburr: "eesti",
430
336
  cca2: "EE",
431
337
  cca3: "EST",
432
338
  idd: "372",
433
- uid: "EE-372",
434
339
  flag: "🇪🇪",
435
340
  },
436
341
  {
437
342
  name: "Éire",
438
- deburr: "eire",
439
343
  cca2: "IE",
440
344
  cca3: "IRL",
441
345
  idd: "353",
442
- uid: "IE-353",
443
346
  flag: "🇮🇪",
444
347
  },
445
348
  {
446
349
  name: "El Salvador",
447
- deburr: "el salvador",
448
350
  cca2: "SV",
449
351
  cca3: "SLV",
450
352
  idd: "503",
451
- uid: "SV-503",
452
353
  flag: "🇸🇻",
453
354
  },
454
355
  {
455
356
  name: "España",
456
- deburr: "espana",
457
357
  cca2: "ES",
458
358
  cca3: "ESP",
459
359
  idd: "34",
460
- uid: "ES-34",
461
360
  flag: "🇪🇸",
462
361
  },
463
362
  {
464
363
  name: "Falkland Islands",
465
- deburr: "falkland islands",
466
364
  cca2: "FK",
467
365
  cca3: "FLK",
468
366
  idd: "500",
469
- uid: "FK-500",
470
367
  flag: "🇫🇰",
471
368
  },
472
369
  {
473
370
  name: "Fiji",
474
- deburr: "fiji",
475
371
  cca2: "FJ",
476
372
  cca3: "FJI",
477
373
  idd: "679",
478
- uid: "FJ-679",
479
374
  flag: "🇫🇯",
480
375
  },
481
376
  {
482
377
  name: "Føroyar",
483
- deburr: "foroyar",
484
378
  cca2: "FO",
485
379
  cca3: "FRO",
486
380
  idd: "298",
487
- uid: "FO-298",
488
381
  flag: "🇫🇴",
489
382
  },
490
383
  france,
491
384
  {
492
385
  name: "Gabon",
493
- deburr: "gabon",
494
386
  cca2: "GA",
495
387
  cca3: "GAB",
496
388
  idd: "241",
497
- uid: "GA-241",
498
389
  flag: "🇬🇦",
499
390
  },
500
391
  {
501
392
  name: "Gambia",
502
- deburr: "gambia",
503
393
  cca2: "GM",
504
394
  cca3: "GMB",
505
395
  idd: "220",
506
- uid: "GM-220",
507
396
  flag: "🇬🇲",
508
397
  },
509
398
  {
510
399
  name: "Ghana",
511
- deburr: "ghana",
512
400
  cca2: "GH",
513
401
  cca3: "GHA",
514
402
  idd: "233",
515
- uid: "GH-233",
516
403
  flag: "🇬🇭",
517
404
  },
518
405
  {
519
406
  name: "Gibraltar",
520
- deburr: "gibraltar",
521
407
  cca2: "GI",
522
408
  cca3: "GIB",
523
409
  idd: "350",
524
- uid: "GI-350",
525
410
  flag: "🇬🇮",
526
411
  },
527
412
  {
528
413
  name: "Grenada",
529
- deburr: "grenada",
530
414
  cca2: "GD",
531
415
  cca3: "GRD",
532
416
  idd: "1473",
533
- uid: "GD-1473",
534
417
  flag: "🇬🇩",
535
418
  },
536
419
  {
537
420
  name: "Guadeloupe",
538
- deburr: "guadeloupe",
539
421
  cca2: "GP",
540
422
  cca3: "GLP",
541
423
  idd: "590",
542
- uid: "GP-590",
543
424
  flag: "🇬🇵",
544
425
  },
545
426
  {
546
427
  name: "Guam",
547
- deburr: "guam",
548
428
  cca2: "GU",
549
429
  cca3: "GUM",
550
430
  idd: "1671",
551
- uid: "GU-1671",
552
431
  flag: "🇬🇺",
553
432
  },
554
433
  {
555
434
  name: "Guatemala",
556
- deburr: "guatemala",
557
435
  cca2: "GT",
558
436
  cca3: "GTM",
559
437
  idd: "502",
560
- uid: "GT-502",
561
438
  flag: "🇬🇹",
562
439
  },
563
440
  {
564
441
  name: "Guernsey",
565
- deburr: "guernsey",
566
442
  cca2: "GG",
567
443
  cca3: "GGY",
568
444
  idd: "44",
569
- uid: "GG-44",
570
445
  flag: "🇬🇬",
571
446
  },
572
447
  {
573
448
  name: "Guiné-Bissau",
574
- deburr: "guine-bissau",
575
449
  cca2: "GW",
576
450
  cca3: "GNB",
577
451
  idd: "245",
578
- uid: "GW-245",
579
452
  flag: "🇬🇼",
580
453
  },
581
454
  {
582
455
  name: "Guinea Ecuatorial",
583
- deburr: "guinea ecuatorial",
584
456
  cca2: "GQ",
585
457
  cca3: "GNQ",
586
458
  idd: "240",
587
- uid: "GQ-240",
588
459
  flag: "🇬🇶",
589
460
  },
590
461
  {
591
462
  name: "Guinée",
592
- deburr: "guinee",
593
463
  cca2: "GN",
594
464
  cca3: "GIN",
595
465
  idd: "224",
596
- uid: "GN-224",
597
466
  flag: "🇬🇳",
598
467
  },
599
468
  {
600
469
  name: "Guyana",
601
- deburr: "guyana",
602
470
  cca2: "GY",
603
471
  cca3: "GUY",
604
472
  idd: "592",
605
- uid: "GY-592",
606
473
  flag: "🇬🇾",
607
474
  },
608
475
  {
609
476
  name: "Guyane française",
610
- deburr: "guyane francaise",
611
477
  cca2: "GF",
612
478
  cca3: "GUF",
613
479
  idd: "594",
614
- uid: "GF-594",
615
480
  flag: "🇬🇫",
616
481
  },
617
482
  {
618
483
  name: "Haïti",
619
- deburr: "haiti",
620
484
  cca2: "HT",
621
485
  cca3: "HTI",
622
486
  idd: "509",
623
- uid: "HT-509",
624
487
  flag: "🇭🇹",
625
488
  },
626
489
  {
627
490
  name: "Heard Island and McDonald Islands",
628
- deburr: "heard island and mcdonald islands",
629
491
  cca2: "HM",
630
492
  cca3: "HMD",
631
493
  idd: "61",
632
- uid: "HM-61",
633
494
  flag: "🇭🇲",
634
495
  },
635
496
  {
636
497
  name: "Honduras",
637
- deburr: "honduras",
638
498
  cca2: "HN",
639
499
  cca3: "HND",
640
500
  idd: "504",
641
- uid: "HN-504",
642
501
  flag: "🇭🇳",
643
502
  },
644
503
  {
645
504
  name: "Hrvatska",
646
- deburr: "hrvatska",
647
505
  cca2: "HR",
648
506
  cca3: "HRV",
649
507
  idd: "385",
650
- uid: "HR-385",
651
508
  flag: "🇭🇷",
652
509
  },
653
510
  {
654
511
  name: "Indonesia",
655
- deburr: "indonesia",
656
512
  cca2: "ID",
657
513
  cca3: "IDN",
658
514
  idd: "62",
659
- uid: "ID-62",
660
515
  flag: "🇮🇩",
661
516
  },
662
517
  {
663
518
  name: "Ísland",
664
- deburr: "island",
665
519
  cca2: "IS",
666
520
  cca3: "ISL",
667
521
  idd: "354",
668
- uid: "IS-354",
669
522
  flag: "🇮🇸",
670
523
  },
671
524
  {
672
525
  name: "Isle of Man",
673
- deburr: "isle of man",
674
526
  cca2: "IM",
675
527
  cca3: "IMN",
676
528
  idd: "44",
677
- uid: "IM-44",
678
529
  flag: "🇮🇲",
679
530
  },
680
531
  {
681
532
  name: "Italia",
682
- deburr: "italia",
683
533
  cca2: "IT",
684
534
  cca3: "ITA",
685
535
  idd: "39",
686
- uid: "IT-39",
687
536
  flag: "🇮🇹",
688
537
  },
689
538
  {
690
539
  name: "Jamaica",
691
- deburr: "jamaica",
692
540
  cca2: "JM",
693
541
  cca3: "JAM",
694
542
  idd: "1876",
695
- uid: "JM-1876",
696
543
  flag: "🇯🇲",
697
544
  },
698
545
  {
699
546
  name: "Jersey",
700
- deburr: "jersey",
701
547
  cca2: "JE",
702
548
  cca3: "JEY",
703
549
  idd: "44",
704
- uid: "JE-44",
705
550
  flag: "🇯🇪",
706
551
  },
707
552
  {
708
553
  name: "Kalaallit Nunaat",
709
- deburr: "kalaallit nunaat",
710
554
  cca2: "GL",
711
555
  cca3: "GRL",
712
556
  idd: "299",
713
- uid: "GL-299",
714
557
  flag: "🇬🇱",
715
558
  },
716
559
  {
717
560
  name: "Kâmpŭchéa",
718
- deburr: "kampuchea",
719
561
  cca2: "KH",
720
562
  cca3: "KHM",
721
563
  idd: "855",
722
- uid: "KH-855",
723
564
  flag: "🇰🇭",
724
565
  },
725
566
  {
726
567
  name: "Kazakhstan",
727
- deburr: "kazakhstan",
728
568
  cca2: "KZ",
729
569
  cca3: "KAZ",
730
570
  idd: "7",
731
- uid: "KZ-7",
732
571
  flag: "🇰🇿",
733
572
  },
734
573
  {
735
574
  name: "Kenya",
736
- deburr: "kenya",
737
575
  cca2: "KE",
738
576
  cca3: "KEN",
739
577
  idd: "254",
740
- uid: "KE-254",
741
578
  flag: "🇰🇪",
742
579
  },
743
580
  {
744
581
  name: "Kiribati",
745
- deburr: "kiribati",
746
582
  cca2: "KI",
747
583
  cca3: "KIR",
748
584
  idd: "686",
749
- uid: "KI-686",
750
585
  flag: "🇰🇮",
751
586
  },
752
587
  {
753
588
  name: "Ködörösêse tî Bêafrîka",
754
- deburr: "kodorosese ti beafrika",
755
589
  cca2: "CF",
756
590
  cca3: "CAF",
757
591
  idd: "236",
758
- uid: "CF-236",
759
592
  flag: "🇨🇫",
760
593
  },
761
594
  {
762
595
  name: "Komori",
763
- deburr: "komori",
764
596
  cca2: "KM",
765
597
  cca3: "COM",
766
598
  idd: "269",
767
- uid: "KM-269",
768
599
  flag: "🇰🇲",
769
600
  },
770
601
  {
771
602
  name: "La Réunion",
772
- deburr: "la reunion",
773
603
  cca2: "RE",
774
604
  cca3: "REU",
775
605
  idd: "262",
776
- uid: "RE-262",
777
606
  flag: "🇷🇪",
778
607
  },
779
608
  {
780
609
  name: "Latvija",
781
- deburr: "latvija",
782
610
  cca2: "LV",
783
611
  cca3: "LVA",
784
612
  idd: "371",
785
- uid: "LV-371",
786
613
  flag: "🇱🇻",
787
614
  },
788
615
  {
789
616
  name: "Lesotho",
790
- deburr: "lesotho",
791
617
  cca2: "LS",
792
618
  cca3: "LSO",
793
619
  idd: "266",
794
- uid: "LS-266",
795
620
  flag: "🇱🇸",
796
621
  },
797
622
  {
798
623
  name: "Liberia",
799
- deburr: "liberia",
800
624
  cca2: "LR",
801
625
  cca3: "LBR",
802
626
  idd: "231",
803
- uid: "LR-231",
804
627
  flag: "🇱🇷",
805
628
  },
806
629
  {
807
630
  name: "Liechtenstein",
808
- deburr: "liechtenstein",
809
631
  cca2: "LI",
810
632
  cca3: "LIE",
811
633
  idd: "423",
812
- uid: "LI-423",
813
634
  flag: "🇱🇮",
814
635
  },
815
636
  {
816
637
  name: "Lietuva",
817
- deburr: "lietuva",
818
638
  cca2: "LT",
819
639
  cca3: "LTU",
820
640
  idd: "370",
821
- uid: "LT-370",
822
641
  flag: "🇱🇹",
823
642
  },
824
643
  {
825
644
  name: "Luxembourg",
826
- deburr: "luxembourg",
827
645
  cca2: "LU",
828
646
  cca3: "LUX",
829
647
  idd: "352",
830
- uid: "LU-352",
831
648
  flag: "🇱🇺",
832
649
  },
833
650
  {
834
651
  name: "Madagasikara",
835
- deburr: "madagasikara",
836
652
  cca2: "MG",
837
653
  cca3: "MDG",
838
654
  idd: "261",
839
- uid: "MG-261",
840
655
  flag: "🇲🇬",
841
656
  },
842
657
  {
843
658
  name: "Magyarország",
844
- deburr: "magyarorszag",
845
659
  cca2: "HU",
846
660
  cca3: "HUN",
847
661
  idd: "36",
848
- uid: "HU-36",
849
662
  flag: "🇭🇺",
850
663
  },
851
664
  {
852
665
  name: "M̧ajeļ",
853
- deburr: "majel",
854
666
  cca2: "MH",
855
667
  cca3: "MHL",
856
668
  idd: "692",
857
- uid: "MH-692",
858
669
  flag: "🇲🇭",
859
670
  },
860
671
  {
861
672
  name: "Malawi",
862
- deburr: "malawi",
863
673
  cca2: "MW",
864
674
  cca3: "MWI",
865
675
  idd: "265",
866
- uid: "MW-265",
867
676
  flag: "🇲🇼",
868
677
  },
869
678
  {
870
679
  name: "Malaysia",
871
- deburr: "malaysia",
872
680
  cca2: "MY",
873
681
  cca3: "MYS",
874
682
  idd: "60",
875
- uid: "MY-60",
876
683
  flag: "🇲🇾",
877
684
  },
878
685
  {
879
686
  name: "Maldives",
880
- deburr: "maldives",
881
687
  cca2: "MV",
882
688
  cca3: "MDV",
883
689
  idd: "960",
884
- uid: "MV-960",
885
690
  flag: "🇲🇻",
886
691
  },
887
692
  {
888
693
  name: "Mali",
889
- deburr: "mali",
890
694
  cca2: "ML",
891
695
  cca3: "MLI",
892
696
  idd: "223",
893
- uid: "ML-223",
894
697
  flag: "🇲🇱",
895
698
  },
896
699
  {
897
700
  name: "Malta",
898
- deburr: "malta",
899
701
  cca2: "MT",
900
702
  cca3: "MLT",
901
703
  idd: "356",
902
- uid: "MT-356",
903
704
  flag: "🇲🇹",
904
705
  },
905
706
  {
906
707
  name: "Martinique",
907
- deburr: "martinique",
908
708
  cca2: "MQ",
909
709
  cca3: "MTQ",
910
710
  idd: "596",
911
- uid: "MQ-596",
912
711
  flag: "🇲🇶",
913
712
  },
914
713
  {
915
714
  name: "Maurice",
916
- deburr: "maurice",
917
715
  cca2: "MU",
918
716
  cca3: "MUS",
919
717
  idd: "230",
920
- uid: "MU-230",
921
718
  flag: "🇲🇺",
922
719
  },
923
720
  {
924
721
  name: "Mayotte",
925
- deburr: "mayotte",
926
722
  cca2: "YT",
927
723
  cca3: "MYT",
928
724
  idd: "262",
929
- uid: "YT-262",
930
725
  flag: "🇾🇹",
931
726
  },
932
727
  {
933
728
  name: "México",
934
- deburr: "mexico",
935
729
  cca2: "MX",
936
730
  cca3: "MEX",
937
731
  idd: "52",
938
- uid: "MX-52",
939
732
  flag: "🇲🇽",
940
733
  },
941
734
  {
942
735
  name: "Micronesia",
943
- deburr: "micronesia",
944
736
  cca2: "FM",
945
737
  cca3: "FSM",
946
738
  idd: "691",
947
- uid: "FM-691",
948
739
  flag: "🇫🇲",
949
740
  },
950
741
  {
951
742
  name: "Moçambique",
952
- deburr: "mocambique",
953
743
  cca2: "MZ",
954
744
  cca3: "MOZ",
955
745
  idd: "258",
956
- uid: "MZ-258",
957
746
  flag: "🇲🇿",
958
747
  },
959
748
  {
960
749
  name: "Moldova",
961
- deburr: "moldova",
962
750
  cca2: "MD",
963
751
  cca3: "MDA",
964
752
  idd: "373",
965
- uid: "MD-373",
966
753
  flag: "🇲🇩",
967
754
  },
968
755
  {
969
756
  name: "Monaco",
970
- deburr: "monaco",
971
757
  cca2: "MC",
972
758
  cca3: "MCO",
973
759
  idd: "377",
974
- uid: "MC-377",
975
760
  flag: "🇲🇨",
976
761
  },
977
762
  {
978
763
  name: "Montserrat",
979
- deburr: "montserrat",
980
764
  cca2: "MS",
981
765
  cca3: "MSR",
982
766
  idd: "1664",
983
- uid: "MS-1664",
984
767
  flag: "🇲🇸",
985
768
  },
986
769
  {
987
770
  name: "Namibia",
988
- deburr: "namibia",
989
771
  cca2: "NA",
990
772
  cca3: "NAM",
991
773
  idd: "264",
992
- uid: "NA-264",
993
774
  flag: "🇳🇦",
994
775
  },
995
776
  {
996
777
  name: "Nederland",
997
- deburr: "nederland",
998
778
  cca2: "NL",
999
779
  cca3: "NLD",
1000
780
  idd: "31",
1001
- uid: "NL-31",
1002
781
  flag: "🇳🇱",
1003
782
  },
1004
783
  {
1005
784
  name: "Negara Brunei Darussalam",
1006
- deburr: "negara brunei darussalam",
1007
785
  cca2: "BN",
1008
786
  cca3: "BRN",
1009
787
  idd: "673",
1010
- uid: "BN-673",
1011
788
  flag: "🇧🇳",
1012
789
  },
1013
790
  {
1014
791
  name: "New Zealand",
1015
- deburr: "new zealand",
1016
792
  cca2: "NZ",
1017
793
  cca3: "NZL",
1018
794
  idd: "64",
1019
- uid: "NZ-64",
1020
795
  flag: "🇳🇿",
1021
796
  },
1022
797
  {
1023
798
  name: "Nicaragua",
1024
- deburr: "nicaragua",
1025
799
  cca2: "NI",
1026
800
  cca3: "NIC",
1027
801
  idd: "505",
1028
- uid: "NI-505",
1029
802
  flag: "🇳🇮",
1030
803
  },
1031
804
  {
1032
805
  name: "Niger",
1033
- deburr: "niger",
1034
806
  cca2: "NE",
1035
807
  cca3: "NER",
1036
808
  idd: "227",
1037
- uid: "NE-227",
1038
809
  flag: "🇳🇪",
1039
810
  },
1040
811
  {
1041
812
  name: "Nigeria",
1042
- deburr: "nigeria",
1043
813
  cca2: "NG",
1044
814
  cca3: "NGA",
1045
815
  idd: "234",
1046
- uid: "NG-234",
1047
816
  flag: "🇳🇬",
1048
817
  },
1049
818
  {
1050
819
  name: "Niuē",
1051
- deburr: "niue",
1052
820
  cca2: "NU",
1053
821
  cca3: "NIU",
1054
822
  idd: "683",
1055
- uid: "NU-683",
1056
823
  flag: "🇳🇺",
1057
824
  },
1058
825
  {
1059
826
  name: "Norfolk Island",
1060
- deburr: "norfolk island",
1061
827
  cca2: "NF",
1062
828
  cca3: "NFK",
1063
829
  idd: "672",
1064
- uid: "NF-672",
1065
830
  flag: "🇳🇫",
1066
831
  },
1067
832
  {
1068
833
  name: "Norge",
1069
- deburr: "norge",
1070
834
  cca2: "NO",
1071
835
  cca3: "NOR",
1072
836
  idd: "47",
1073
- uid: "NO-47",
1074
837
  flag: "🇳🇴",
1075
838
  },
1076
839
  {
1077
840
  name: "Northern Mariana Islands",
1078
- deburr: "northern mariana islands",
1079
841
  cca2: "MP",
1080
842
  cca3: "MNP",
1081
843
  idd: "1670",
1082
- uid: "MP-1670",
1083
844
  flag: "🇲🇵",
1084
845
  },
1085
846
  {
1086
847
  name: "Nouvelle-Calédonie",
1087
- deburr: "nouvelle-caledonie",
1088
848
  cca2: "NC",
1089
849
  cca3: "NCL",
1090
850
  idd: "687",
1091
- uid: "NC-687",
1092
851
  flag: "🇳🇨",
1093
852
  },
1094
853
  {
1095
854
  name: "Österreich",
1096
- deburr: "osterreich",
1097
855
  cca2: "AT",
1098
856
  cca3: "AUT",
1099
857
  idd: "43",
1100
- uid: "AT-43",
1101
858
  flag: "🇦🇹",
1102
859
  },
1103
860
  {
1104
861
  name: "O‘zbekiston",
1105
- deburr: "o‘zbekiston",
1106
862
  cca2: "UZ",
1107
863
  cca3: "UZB",
1108
864
  idd: "998",
1109
- uid: "UZ-998",
1110
865
  flag: "🇺🇿",
1111
866
  },
1112
867
  {
1113
868
  name: "Pakistan",
1114
- deburr: "pakistan",
1115
869
  cca2: "PK",
1116
870
  cca3: "PAK",
1117
871
  idd: "92",
1118
- uid: "PK-92",
1119
872
  flag: "🇵🇰",
1120
873
  },
1121
874
  {
1122
875
  name: "Palau",
1123
- deburr: "palau",
1124
876
  cca2: "PW",
1125
877
  cca3: "PLW",
1126
878
  idd: "680",
1127
- uid: "PW-680",
1128
879
  flag: "🇵🇼",
1129
880
  },
1130
881
  {
1131
882
  name: "Panamá",
1132
- deburr: "panama",
1133
883
  cca2: "PA",
1134
884
  cca3: "PAN",
1135
885
  idd: "507",
1136
- uid: "PA-507",
1137
886
  flag: "🇵🇦",
1138
887
  },
1139
888
  {
1140
889
  name: "Papua Niugini",
1141
- deburr: "papua niugini",
1142
890
  cca2: "PG",
1143
891
  cca3: "PNG",
1144
892
  idd: "675",
1145
- uid: "PG-675",
1146
893
  flag: "🇵🇬",
1147
894
  },
1148
895
  {
1149
896
  name: "Paraguay",
1150
- deburr: "paraguay",
1151
897
  cca2: "PY",
1152
898
  cca3: "PRY",
1153
899
  idd: "595",
1154
- uid: "PY-595",
1155
900
  flag: "🇵🇾",
1156
901
  },
1157
902
  {
1158
903
  name: "Perú",
1159
- deburr: "peru",
1160
904
  cca2: "PE",
1161
905
  cca3: "PER",
1162
906
  idd: "51",
1163
- uid: "PE-51",
1164
907
  flag: "🇵🇪",
1165
908
  },
1166
909
  {
1167
910
  name: "Pilipinas",
1168
- deburr: "pilipinas",
1169
911
  cca2: "PH",
1170
912
  cca3: "PHL",
1171
913
  idd: "63",
1172
- uid: "PH-63",
1173
914
  flag: "🇵🇭",
1174
915
  },
1175
916
  {
1176
917
  name: "Pitcairn Islands",
1177
- deburr: "pitcairn islands",
1178
918
  cca2: "PN",
1179
919
  cca3: "PCN",
1180
920
  idd: "64",
1181
- uid: "PN-64",
1182
921
  flag: "🇵🇳",
1183
922
  },
1184
923
  {
1185
924
  name: "Polska",
1186
- deburr: "polska",
1187
925
  cca2: "PL",
1188
926
  cca3: "POL",
1189
927
  idd: "48",
1190
- uid: "PL-48",
1191
928
  flag: "🇵🇱",
1192
929
  },
1193
930
  {
1194
931
  name: "Polynésie française",
1195
- deburr: "polynesie francaise",
1196
932
  cca2: "PF",
1197
933
  cca3: "PYF",
1198
934
  idd: "689",
1199
- uid: "PF-689",
1200
935
  flag: "🇵🇫",
1201
936
  },
1202
937
  {
1203
938
  name: "Portugal",
1204
- deburr: "portugal",
1205
939
  cca2: "PT",
1206
940
  cca3: "PRT",
1207
941
  idd: "351",
1208
- uid: "PT-351",
1209
942
  flag: "🇵🇹",
1210
943
  },
1211
944
  {
1212
945
  name: "Puerto Rico",
1213
- deburr: "puerto rico",
1214
946
  cca2: "PR",
1215
947
  cca3: "PRI",
1216
948
  idd: "1787",
1217
- uid: "PR-1787",
1218
949
  flag: "🇵🇷",
1219
950
  },
1220
951
  {
1221
952
  name: "República Dominicana",
1222
- deburr: "republica dominicana",
1223
953
  cca2: "DO",
1224
954
  cca3: "DOM",
1225
955
  idd: "1829",
1226
- uid: "DO-1829",
1227
956
  flag: "🇩🇴",
1228
957
  },
1229
958
  {
1230
959
  name: "República Dominicana",
1231
- deburr: "republica dominicana",
1232
960
  cca2: "DO",
1233
961
  cca3: "DOM",
1234
962
  idd: "1849",
1235
- uid: "DO-1849",
1236
963
  flag: "🇩🇴",
1237
964
  },
1238
965
  {
1239
966
  name: "República Dominicana",
1240
- deburr: "republica dominicana",
1241
967
  cca2: "DO",
1242
968
  cca3: "DOM",
1243
969
  idd: "1809",
1244
- uid: "DO-1809",
1245
970
  flag: "🇩🇴",
1246
971
  },
1247
972
  {
1248
973
  name: "Republika e Kosovës",
1249
- deburr: "republika e kosoves",
1250
974
  cca2: "XK",
1251
975
  cca3: "XKX",
1252
976
  idd: "383",
1253
- uid: "XK-383",
1254
977
  flag: "🇽🇰",
1255
978
  },
1256
979
  {
1257
980
  name: "République démocratique du Congo",
1258
- deburr: "republique democratique du congo",
1259
981
  cca2: "CD",
1260
982
  cca3: "COD",
1261
983
  idd: "243",
1262
- uid: "CD-243",
1263
984
  flag: "🇨🇩",
1264
985
  },
1265
986
  {
1266
987
  name: "République du Congo",
1267
- deburr: "republique du congo",
1268
988
  cca2: "CG",
1269
989
  cca3: "COG",
1270
990
  idd: "242",
1271
- uid: "CG-242",
1272
991
  flag: "🇨🇬",
1273
992
  },
1274
993
  {
1275
994
  name: "România",
1276
- deburr: "romania",
1277
995
  cca2: "RO",
1278
996
  cca3: "ROU",
1279
997
  idd: "40",
1280
- uid: "RO-40",
1281
998
  flag: "🇷🇴",
1282
999
  },
1283
1000
  {
1284
1001
  name: "Rwanda",
1285
- deburr: "rwanda",
1286
1002
  cca2: "RW",
1287
1003
  cca3: "RWA",
1288
1004
  idd: "250",
1289
- uid: "RW-250",
1290
1005
  flag: "🇷🇼",
1291
1006
  },
1292
1007
  {
1293
1008
  name: "Saint Kitts and Nevis",
1294
- deburr: "saint kitts and nevis",
1295
1009
  cca2: "KN",
1296
1010
  cca3: "KNA",
1297
1011
  idd: "1869",
1298
- uid: "KN-1869",
1299
1012
  flag: "🇰🇳",
1300
1013
  },
1301
1014
  {
1302
1015
  name: "Saint Lucia",
1303
- deburr: "saint lucia",
1304
1016
  cca2: "LC",
1305
1017
  cca3: "LCA",
1306
1018
  idd: "1758",
1307
- uid: "LC-1758",
1308
1019
  flag: "🇱🇨",
1309
1020
  },
1310
1021
  {
1311
1022
  name: "Saint Vincent and the Grenadines",
1312
- deburr: "saint vincent and the grenadines",
1313
1023
  cca2: "VC",
1314
1024
  cca3: "VCT",
1315
1025
  idd: "1784",
1316
- uid: "VC-1784",
1317
1026
  flag: "🇻🇨",
1318
1027
  },
1319
1028
  {
1320
1029
  name: "Saint-Barthélemy",
1321
- deburr: "saint-barthelemy",
1322
1030
  cca2: "BL",
1323
1031
  cca3: "BLM",
1324
1032
  idd: "590",
1325
- uid: "BL-590",
1326
1033
  flag: "🇧🇱",
1327
1034
  },
1328
1035
  {
1329
1036
  name: "Saint-Martin",
1330
- deburr: "saint-martin",
1331
1037
  cca2: "MF",
1332
1038
  cca3: "MAF",
1333
1039
  idd: "590",
1334
- uid: "MF-590",
1335
1040
  flag: "🇲🇫",
1336
1041
  },
1337
1042
  {
1338
1043
  name: "Saint-Pierre-et-Miquelon",
1339
- deburr: "saint-pierre-et-miquelon",
1340
1044
  cca2: "PM",
1341
1045
  cca3: "SPM",
1342
1046
  idd: "508",
1343
- uid: "PM-508",
1344
1047
  flag: "🇵🇲",
1345
1048
  },
1346
1049
  {
1347
1050
  name: "Samoa",
1348
- deburr: "samoa",
1349
1051
  cca2: "WS",
1350
1052
  cca3: "WSM",
1351
1053
  idd: "685",
1352
- uid: "WS-685",
1353
1054
  flag: "🇼🇸",
1354
1055
  },
1355
1056
  {
1356
1057
  name: "San Marino",
1357
- deburr: "san marino",
1358
1058
  cca2: "SM",
1359
1059
  cca3: "SMR",
1360
1060
  idd: "378",
1361
- uid: "SM-378",
1362
1061
  flag: "🇸🇲",
1363
1062
  },
1364
1063
  {
1365
1064
  name: "São Tomé e Príncipe",
1366
- deburr: "sao tome e principe",
1367
1065
  cca2: "ST",
1368
1066
  cca3: "STP",
1369
1067
  idd: "239",
1370
- uid: "ST-239",
1371
1068
  flag: "🇸🇹",
1372
1069
  },
1373
1070
  {
1374
1071
  name: "Schweiz",
1375
- deburr: "schweiz",
1376
1072
  cca2: "CH",
1377
1073
  cca3: "CHE",
1378
1074
  idd: "41",
1379
- uid: "CH-41",
1380
1075
  flag: "🇨🇭",
1381
1076
  },
1382
1077
  {
1383
1078
  name: "Sénégal",
1384
- deburr: "senegal",
1385
1079
  cca2: "SN",
1386
1080
  cca3: "SEN",
1387
1081
  idd: "221",
1388
- uid: "SN-221",
1389
1082
  flag: "🇸🇳",
1390
1083
  },
1391
1084
  {
1392
1085
  name: "Seychelles",
1393
- deburr: "seychelles",
1394
1086
  cca2: "SC",
1395
1087
  cca3: "SYC",
1396
1088
  idd: "248",
1397
- uid: "SC-248",
1398
1089
  flag: "🇸🇨",
1399
1090
  },
1400
1091
  {
1401
1092
  name: "Shqipëria",
1402
- deburr: "shqiperia",
1403
1093
  cca2: "AL",
1404
1094
  cca3: "ALB",
1405
1095
  idd: "355",
1406
- uid: "AL-355",
1407
1096
  flag: "🇦🇱",
1408
1097
  },
1409
1098
  {
1410
1099
  name: "Sierra Leone",
1411
- deburr: "sierra leone",
1412
1100
  cca2: "SL",
1413
1101
  cca3: "SLE",
1414
1102
  idd: "232",
1415
- uid: "SL-232",
1416
1103
  flag: "🇸🇱",
1417
1104
  },
1418
1105
  {
1419
1106
  name: "Singapore",
1420
- deburr: "singapore",
1421
1107
  cca2: "SG",
1422
1108
  cca3: "SGP",
1423
1109
  idd: "65",
1424
- uid: "SG-65",
1425
1110
  flag: "🇸🇬",
1426
1111
  },
1427
1112
  {
1428
1113
  name: "Slovenija",
1429
- deburr: "slovenija",
1430
1114
  cca2: "SI",
1431
1115
  cca3: "SVN",
1432
1116
  idd: "386",
1433
- uid: "SI-386",
1434
1117
  flag: "🇸🇮",
1435
1118
  },
1436
1119
  {
1437
1120
  name: "Slovensko",
1438
- deburr: "slovensko",
1439
1121
  cca2: "SK",
1440
1122
  cca3: "SVK",
1441
1123
  idd: "421",
1442
- uid: "SK-421",
1443
1124
  flag: "🇸🇰",
1444
1125
  },
1445
1126
  {
1446
1127
  name: "Solomon Islands",
1447
- deburr: "solomon islands",
1448
1128
  cca2: "SB",
1449
1129
  cca3: "SLB",
1450
1130
  idd: "677",
1451
- uid: "SB-677",
1452
1131
  flag: "🇸🇧",
1453
1132
  },
1454
1133
  {
1455
1134
  name: "Soomaaliya",
1456
- deburr: "soomaaliya",
1457
1135
  cca2: "SO",
1458
1136
  cca3: "SOM",
1459
1137
  idd: "252",
1460
- uid: "SO-252",
1461
1138
  flag: "🇸🇴",
1462
1139
  },
1463
1140
  {
1464
1141
  name: "South Africa",
1465
- deburr: "south africa",
1466
1142
  cca2: "ZA",
1467
1143
  cca3: "ZAF",
1468
1144
  idd: "27",
1469
- uid: "ZA-27",
1470
1145
  flag: "🇿🇦",
1471
1146
  },
1472
1147
  {
1473
1148
  name: "South Georgia",
1474
- deburr: "south georgia",
1475
1149
  cca2: "GS",
1476
1150
  cca3: "SGS",
1477
1151
  idd: "500",
1478
- uid: "GS-500",
1479
1152
  flag: "🇬🇸",
1480
1153
  },
1481
1154
  {
1482
1155
  name: "South Sudan",
1483
- deburr: "south sudan",
1484
1156
  cca2: "SS",
1485
1157
  cca3: "SSD",
1486
1158
  idd: "211",
1487
- uid: "SS-211",
1488
1159
  flag: "🇸🇸",
1489
1160
  },
1490
1161
  {
1491
1162
  name: "śrī laṃkāva",
1492
- deburr: "sri laṃkava",
1493
1163
  cca2: "LK",
1494
1164
  cca3: "LKA",
1495
1165
  idd: "94",
1496
- uid: "LK-94",
1497
1166
  flag: "🇱🇰",
1498
1167
  },
1499
1168
  {
1500
1169
  name: "Suomi",
1501
- deburr: "suomi",
1502
1170
  cca2: "FI",
1503
1171
  cca3: "FIN",
1504
1172
  idd: "358",
1505
- uid: "FI-358",
1506
1173
  flag: "🇫🇮",
1507
1174
  },
1508
1175
  {
1509
1176
  name: "Suriname",
1510
- deburr: "suriname",
1511
1177
  cca2: "SR",
1512
1178
  cca3: "SUR",
1513
1179
  idd: "597",
1514
- uid: "SR-597",
1515
1180
  flag: "🇸🇷",
1516
1181
  },
1517
1182
  {
1518
1183
  name: "Sverige",
1519
- deburr: "sverige",
1520
1184
  cca2: "SE",
1521
1185
  cca3: "SWE",
1522
1186
  idd: "46",
1523
- uid: "SE-46",
1524
1187
  flag: "🇸🇪",
1525
1188
  },
1526
1189
  {
1527
1190
  name: "Swaziland",
1528
- deburr: "swaziland",
1529
1191
  cca2: "SZ",
1530
1192
  cca3: "SWZ",
1531
1193
  idd: "268",
1532
- uid: "SZ-268",
1533
1194
  flag: "🇸🇿",
1534
1195
  },
1535
1196
  {
1536
1197
  name: "Tanzania",
1537
- deburr: "tanzania",
1538
1198
  cca2: "TZ",
1539
1199
  cca3: "TZA",
1540
1200
  idd: "255",
1541
- uid: "TZ-255",
1542
1201
  flag: "🇹🇿",
1543
1202
  },
1544
1203
  {
1545
1204
  name: "Tchad",
1546
- deburr: "tchad",
1547
1205
  cca2: "TD",
1548
1206
  cca3: "TCD",
1549
1207
  idd: "235",
1550
- uid: "TD-235",
1551
1208
  flag: "🇹🇩",
1552
1209
  },
1553
1210
  {
1554
1211
  name: "Terres antarctiques françaises",
1555
- deburr: "terres antarctiques francaises",
1556
1212
  cca2: "TF",
1557
1213
  cca3: "ATF",
1558
1214
  idd: "262",
1559
- uid: "TF-262",
1560
1215
  flag: "🇹🇫",
1561
1216
  },
1562
1217
  {
1563
1218
  name: "Timor-Leste",
1564
- deburr: "timor-leste",
1565
1219
  cca2: "TL",
1566
1220
  cca3: "TLS",
1567
1221
  idd: "670",
1568
- uid: "TL-670",
1569
1222
  flag: "🇹🇱",
1570
1223
  },
1571
1224
  {
1572
1225
  name: "Togo",
1573
- deburr: "togo",
1574
1226
  cca2: "TG",
1575
1227
  cca3: "TGO",
1576
1228
  idd: "228",
1577
- uid: "TG-228",
1578
1229
  flag: "🇹🇬",
1579
1230
  },
1580
1231
  {
1581
1232
  name: "Tonga",
1582
- deburr: "tonga",
1583
1233
  cca2: "TO",
1584
1234
  cca3: "TON",
1585
1235
  idd: "676",
1586
- uid: "TO-676",
1587
1236
  flag: "🇹🇴",
1588
1237
  },
1589
1238
  {
1590
1239
  name: "Trinidad and Tobago",
1591
- deburr: "trinidad and tobago",
1592
1240
  cca2: "TT",
1593
1241
  cca3: "TTO",
1594
1242
  idd: "1868",
1595
- uid: "TT-1868",
1596
1243
  flag: "🇹🇹",
1597
1244
  },
1598
1245
  {
1599
1246
  name: "Türkiye",
1600
- deburr: "turkiye",
1601
1247
  cca2: "TR",
1602
1248
  cca3: "TUR",
1603
1249
  idd: "90",
1604
- uid: "TR-90",
1605
1250
  flag: "🇹🇷",
1606
1251
  },
1607
1252
  {
1608
1253
  name: "Türkmenistan",
1609
- deburr: "turkmenistan",
1610
1254
  cca2: "TM",
1611
1255
  cca3: "TKM",
1612
1256
  idd: "993",
1613
- uid: "TM-993",
1614
1257
  flag: "🇹🇲",
1615
1258
  },
1616
1259
  {
1617
1260
  name: "Turks and Caicos Islands",
1618
- deburr: "turks and caicos islands",
1619
1261
  cca2: "TC",
1620
1262
  cca3: "TCA",
1621
1263
  idd: "1649",
1622
- uid: "TC-1649",
1623
1264
  flag: "🇹🇨",
1624
1265
  },
1625
1266
  {
1626
1267
  name: "Tuvalu",
1627
- deburr: "tuvalu",
1628
1268
  cca2: "TV",
1629
1269
  cca3: "TUV",
1630
1270
  idd: "688",
1631
- uid: "TV-688",
1632
1271
  flag: "🇹🇻",
1633
1272
  },
1634
1273
  {
1635
1274
  name: "Uganda",
1636
- deburr: "uganda",
1637
1275
  cca2: "UG",
1638
1276
  cca3: "UGA",
1639
1277
  idd: "256",
1640
- uid: "UG-256",
1641
1278
  flag: "🇺🇬",
1642
1279
  },
1643
1280
  {
1644
1281
  name: "United Kingdom",
1645
- deburr: "united kingdom",
1646
1282
  cca2: "GB",
1647
1283
  cca3: "GBR",
1648
1284
  idd: "44",
1649
- uid: "GB-44",
1650
1285
  flag: "🇬🇧",
1651
1286
  },
1652
1287
  {
1653
1288
  name: "United States",
1654
- deburr: "united states",
1655
1289
  cca2: "US",
1656
1290
  cca3: "USA",
1657
1291
  idd: "1",
1658
- uid: "US-1",
1659
1292
  flag: "🇺🇸",
1660
1293
  },
1661
1294
  {
1662
1295
  name: "United States Minor Outlying Islands",
1663
- deburr: "united states minor outlying islands",
1664
1296
  cca2: "UM",
1665
1297
  cca3: "UMI",
1666
1298
  idd: "1",
1667
- uid: "UM-1",
1668
1299
  flag: "🇺🇲",
1669
1300
  },
1670
1301
  {
1671
1302
  name: "United States Virgin Islands",
1672
- deburr: "united states virgin islands",
1673
1303
  cca2: "VI",
1674
1304
  cca3: "VIR",
1675
1305
  idd: "1340",
1676
- uid: "VI-1340",
1677
1306
  flag: "🇻🇮",
1678
1307
  },
1679
1308
  {
1680
1309
  name: "Uruguay",
1681
- deburr: "uruguay",
1682
1310
  cca2: "UY",
1683
1311
  cca3: "URY",
1684
1312
  idd: "598",
1685
- uid: "UY-598",
1686
1313
  flag: "🇺🇾",
1687
1314
  },
1688
1315
  {
1689
1316
  name: "Vanuatu",
1690
- deburr: "vanuatu",
1691
1317
  cca2: "VU",
1692
1318
  cca3: "VUT",
1693
1319
  idd: "678",
1694
- uid: "VU-678",
1695
1320
  flag: "🇻🇺",
1696
1321
  },
1697
1322
  {
1698
1323
  name: "Vaticano",
1699
- deburr: "vaticano",
1700
1324
  cca2: "VA",
1701
1325
  cca3: "VAT",
1702
1326
  idd: "379",
1703
- uid: "VA-379",
1704
1327
  flag: "🇻🇦",
1705
1328
  },
1706
1329
  {
1707
1330
  name: "Venezuela",
1708
- deburr: "venezuela",
1709
1331
  cca2: "VE",
1710
1332
  cca3: "VEN",
1711
1333
  idd: "58",
1712
- uid: "VE-58",
1713
1334
  flag: "🇻🇪",
1714
1335
  },
1715
1336
  {
1716
1337
  name: "Việt Nam",
1717
- deburr: "viet nam",
1718
1338
  cca2: "VN",
1719
1339
  cca3: "VNM",
1720
1340
  idd: "84",
1721
- uid: "VN-84",
1722
1341
  flag: "🇻🇳",
1723
1342
  },
1724
1343
  {
1725
1344
  name: "Wallis et Futuna",
1726
- deburr: "wallis et futuna",
1727
1345
  cca2: "WF",
1728
1346
  cca3: "WLF",
1729
1347
  idd: "681",
1730
- uid: "WF-681",
1731
1348
  flag: "🇼🇫",
1732
1349
  },
1733
1350
  {
1734
1351
  name: "Zambia",
1735
- deburr: "zambia",
1736
1352
  cca2: "ZM",
1737
1353
  cca3: "ZMB",
1738
1354
  idd: "260",
1739
- uid: "ZM-260",
1740
1355
  flag: "🇿🇲",
1741
1356
  },
1742
1357
  {
1743
1358
  name: "Zimbabwe",
1744
- deburr: "zimbabwe",
1745
1359
  cca2: "ZW",
1746
1360
  cca3: "ZWE",
1747
1361
  idd: "263",
1748
- uid: "ZW-263",
1749
1362
  flag: "🇿🇼",
1750
1363
  },
1751
1364
  {
1752
1365
  name: "ʼbrug-yul",
1753
- deburr: "ʼbrug-yul",
1754
1366
  cca2: "BT",
1755
1367
  cca3: "BTN",
1756
1368
  idd: "975",
1757
- uid: "BT-975",
1758
1369
  flag: "🇧🇹",
1759
1370
  },
1760
1371
  {
1761
1372
  name: "Ελλάδα",
1762
- deburr: "ελλάδα",
1763
1373
  cca2: "GR",
1764
1374
  cca3: "GRC",
1765
1375
  idd: "30",
1766
- uid: "GR-30",
1767
1376
  flag: "🇬🇷",
1768
1377
  },
1769
1378
  {
1770
1379
  name: "Κύπρος",
1771
- deburr: "κύπρος",
1772
1380
  cca2: "CY",
1773
1381
  cca3: "CYP",
1774
1382
  idd: "357",
1775
- uid: "CY-357",
1776
1383
  flag: "🇨🇾",
1777
1384
  },
1778
1385
  {
1779
1386
  name: "Белару́сь",
1780
- deburr: "беларусь",
1781
1387
  cca2: "BY",
1782
1388
  cca3: "BLR",
1783
1389
  idd: "375",
1784
- uid: "BY-375",
1785
1390
  flag: "🇧🇾",
1786
1391
  },
1787
1392
  {
1788
1393
  name: "България",
1789
- deburr: "българия",
1790
1394
  cca2: "BG",
1791
1395
  cca3: "BGR",
1792
1396
  idd: "359",
1793
- uid: "BG-359",
1794
1397
  flag: "🇧🇬",
1795
1398
  },
1796
1399
  {
1797
1400
  name: "Кыргызстан",
1798
- deburr: "кыргызстан",
1799
1401
  cca2: "KG",
1800
1402
  cca3: "KGZ",
1801
1403
  idd: "996",
1802
- uid: "KG-996",
1803
1404
  flag: "🇰🇬",
1804
1405
  },
1805
1406
  {
1806
1407
  name: "Македонија",
1807
- deburr: "македонија",
1808
1408
  cca2: "MK",
1809
1409
  cca3: "MKD",
1810
1410
  idd: "389",
1811
- uid: "MK-389",
1812
1411
  flag: "🇲🇰",
1813
1412
  },
1814
1413
  {
1815
1414
  name: "Монгол улс",
1816
- deburr: "монгол улс",
1817
1415
  cca2: "MN",
1818
1416
  cca3: "MNG",
1819
1417
  idd: "976",
1820
- uid: "MN-976",
1821
1418
  flag: "🇲🇳",
1822
1419
  },
1823
1420
  {
1824
1421
  name: "Россия",
1825
- deburr: "россия",
1826
1422
  cca2: "RU",
1827
1423
  cca3: "RUS",
1828
1424
  idd: "7",
1829
- uid: "RU-7",
1830
1425
  flag: "🇷🇺",
1831
1426
  },
1832
1427
  {
1833
1428
  name: "Србија",
1834
- deburr: "србија",
1835
1429
  cca2: "RS",
1836
1430
  cca3: "SRB",
1837
1431
  idd: "381",
1838
- uid: "RS-381",
1839
1432
  flag: "🇷🇸",
1840
1433
  },
1841
1434
  {
1842
1435
  name: "Тоҷикистон",
1843
- deburr: "тоҷикистон",
1844
1436
  cca2: "TJ",
1845
1437
  cca3: "TJK",
1846
1438
  idd: "992",
1847
- uid: "TJ-992",
1848
1439
  flag: "🇹🇯",
1849
1440
  },
1850
1441
  {
1851
1442
  name: "Україна",
1852
- deburr: "україна",
1853
1443
  cca2: "UA",
1854
1444
  cca3: "UKR",
1855
1445
  idd: "380",
1856
- uid: "UA-380",
1857
1446
  flag: "🇺🇦",
1858
1447
  },
1859
1448
  {
1860
1449
  name: "Црна Гора",
1861
- deburr: "црна гора",
1862
1450
  cca2: "ME",
1863
1451
  cca3: "MNE",
1864
1452
  idd: "382",
1865
- uid: "ME-382",
1866
1453
  flag: "🇲🇪",
1867
1454
  },
1868
1455
  {
1869
1456
  name: "Հայաստան",
1870
- deburr: "հայաստան",
1871
1457
  cca2: "AM",
1872
1458
  cca3: "ARM",
1873
1459
  idd: "374",
1874
- uid: "AM-374",
1875
1460
  flag: "🇦🇲",
1876
1461
  },
1877
1462
  {
1878
1463
  name: "יִשְׂרָאֵל",
1879
- deburr: "יִשְׂרָאֵל",
1880
1464
  cca2: "IL",
1881
1465
  cca3: "ISR",
1882
1466
  idd: "972",
1883
- uid: "IL-972",
1884
1467
  flag: "🇮🇱",
1885
1468
  },
1886
1469
  {
1887
1470
  name: "افغانستان",
1888
- deburr: "افغانستان",
1889
1471
  cca2: "AF",
1890
1472
  cca3: "AFG",
1891
1473
  idd: "93",
1892
- uid: "AF-93",
1893
1474
  flag: "🇦🇫",
1894
1475
  },
1895
1476
  {
1896
1477
  name: "الأردن",
1897
- deburr: "الأردن",
1898
1478
  cca2: "JO",
1899
1479
  cca3: "JOR",
1900
1480
  idd: "962",
1901
- uid: "JO-962",
1902
1481
  flag: "🇯🇴",
1903
1482
  },
1904
1483
  {
1905
1484
  name: "الجزائر",
1906
- deburr: "الجزائر",
1907
1485
  cca2: "DZ",
1908
1486
  cca3: "DZA",
1909
1487
  idd: "213",
1910
- uid: "DZ-213",
1911
1488
  flag: "🇩🇿",
1912
1489
  },
1913
1490
  {
1914
1491
  name: "السودان",
1915
- deburr: "السودان",
1916
1492
  cca2: "SD",
1917
1493
  cca3: "SDN",
1918
1494
  idd: "249",
1919
- uid: "SD-249",
1920
1495
  flag: "🇸🇩",
1921
1496
  },
1922
1497
  {
1923
1498
  name: "الصحراء الغربية",
1924
- deburr: "الصحراء الغربية",
1925
1499
  cca2: "EH",
1926
1500
  cca3: "ESH",
1927
1501
  idd: "212",
1928
- uid: "EH-212",
1929
1502
  flag: "🇪🇭",
1930
1503
  },
1931
1504
  {
1932
1505
  name: "العراق",
1933
- deburr: "العراق",
1934
1506
  cca2: "IQ",
1935
1507
  cca3: "IRQ",
1936
1508
  idd: "964",
1937
- uid: "IQ-964",
1938
1509
  flag: "🇮🇶",
1939
1510
  },
1940
1511
  {
1941
1512
  name: "العربية السعودية",
1942
- deburr: "العربية السعودية",
1943
1513
  cca2: "SA",
1944
1514
  cca3: "SAU",
1945
1515
  idd: "966",
1946
- uid: "SA-966",
1947
1516
  flag: "🇸🇦",
1948
1517
  },
1949
1518
  {
1950
1519
  name: "الكويت",
1951
- deburr: "الكويت",
1952
1520
  cca2: "KW",
1953
1521
  cca3: "KWT",
1954
1522
  idd: "965",
1955
- uid: "KW-965",
1956
1523
  flag: "🇰🇼",
1957
1524
  },
1958
1525
  {
1959
1526
  name: "المغرب",
1960
- deburr: "المغرب",
1961
1527
  cca2: "MA",
1962
1528
  cca3: "MAR",
1963
1529
  idd: "212",
1964
- uid: "MA-212",
1965
1530
  flag: "🇲🇦",
1966
1531
  },
1967
1532
  {
1968
1533
  name: "اليَمَن",
1969
- deburr: "اليَمَن",
1970
1534
  cca2: "YE",
1971
1535
  cca3: "YEM",
1972
1536
  idd: "967",
1973
- uid: "YE-967",
1974
1537
  flag: "🇾🇪",
1975
1538
  },
1976
1539
  {
1977
1540
  name: "ایران",
1978
- deburr: "ایران",
1979
1541
  cca2: "IR",
1980
1542
  cca3: "IRN",
1981
1543
  idd: "98",
1982
- uid: "IR-98",
1983
1544
  flag: "🇮🇷",
1984
1545
  },
1985
1546
  {
1986
1547
  name: "تونس",
1987
- deburr: "تونس",
1988
1548
  cca2: "TN",
1989
1549
  cca3: "TUN",
1990
1550
  idd: "216",
1991
- uid: "TN-216",
1992
1551
  flag: "🇹🇳",
1993
1552
  },
1994
1553
  {
1995
1554
  name: "دولة الإمارات العربية المتحدة",
1996
- deburr: "دولة الإمارات العربية المتحدة",
1997
1555
  cca2: "AE",
1998
1556
  cca3: "ARE",
1999
1557
  idd: "971",
2000
- uid: "AE-971",
2001
1558
  flag: "🇦🇪",
2002
1559
  },
2003
1560
  {
2004
1561
  name: "سوريا",
2005
- deburr: "سوريا",
2006
1562
  cca2: "SY",
2007
1563
  cca3: "SYR",
2008
1564
  idd: "963",
2009
- uid: "SY-963",
2010
1565
  flag: "🇸🇾",
2011
1566
  },
2012
1567
  {
2013
1568
  name: "عمان",
2014
- deburr: "عمان",
2015
1569
  cca2: "OM",
2016
1570
  cca3: "OMN",
2017
1571
  idd: "968",
2018
- uid: "OM-968",
2019
1572
  flag: "🇴🇲",
2020
1573
  },
2021
1574
  {
2022
1575
  name: "فلسطين",
2023
- deburr: "فلسطين",
2024
1576
  cca2: "PS",
2025
1577
  cca3: "PSE",
2026
1578
  idd: "970",
2027
- uid: "PS-970",
2028
1579
  flag: "🇵🇸",
2029
1580
  },
2030
1581
  {
2031
1582
  name: "قطر",
2032
- deburr: "قطر",
2033
1583
  cca2: "QA",
2034
1584
  cca3: "QAT",
2035
1585
  idd: "974",
2036
- uid: "QA-974",
2037
1586
  flag: "🇶🇦",
2038
1587
  },
2039
1588
  {
2040
1589
  name: "لبنان",
2041
- deburr: "لبنان",
2042
1590
  cca2: "LB",
2043
1591
  cca3: "LBN",
2044
1592
  idd: "961",
2045
- uid: "LB-961",
2046
1593
  flag: "🇱🇧",
2047
1594
  },
2048
1595
  {
2049
1596
  name: "مصر‎",
2050
- deburr: "مصر‎",
2051
1597
  cca2: "EG",
2052
1598
  cca3: "EGY",
2053
1599
  idd: "20",
2054
- uid: "EG-20",
2055
1600
  flag: "🇪🇬",
2056
1601
  },
2057
1602
  {
2058
1603
  name: "موريتانيا",
2059
- deburr: "موريتانيا",
2060
1604
  cca2: "MR",
2061
1605
  cca3: "MRT",
2062
1606
  idd: "222",
2063
- uid: "MR-222",
2064
1607
  flag: "🇲🇷",
2065
1608
  },
2066
1609
  {
2067
1610
  name: "नपल",
2068
- deburr: "नपल",
2069
1611
  cca2: "NP",
2070
1612
  cca3: "NPL",
2071
1613
  idd: "977",
2072
- uid: "NP-977",
2073
1614
  flag: "🇳🇵",
2074
1615
  },
2075
1616
  {
2076
1617
  name: "भारत",
2077
- deburr: "भारत",
2078
1618
  cca2: "IN",
2079
1619
  cca3: "IND",
2080
1620
  idd: "91",
2081
- uid: "IN-91",
2082
1621
  flag: "🇮🇳",
2083
1622
  },
2084
1623
  {
2085
1624
  name: "ประเทศไทย",
2086
- deburr: "ประเทศไทย",
2087
1625
  cca2: "TH",
2088
1626
  cca3: "THA",
2089
1627
  idd: "66",
2090
- uid: "TH-66",
2091
1628
  flag: "🇹🇭",
2092
1629
  },
2093
1630
  {
2094
1631
  name: "ສປປລາວ",
2095
- deburr: "ສປປລາວ",
2096
1632
  cca2: "LA",
2097
1633
  cca3: "LAO",
2098
1634
  idd: "856",
2099
- uid: "LA-856",
2100
1635
  flag: "🇱🇦",
2101
1636
  },
2102
1637
  {
2103
1638
  name: "မြန်မာ",
2104
- deburr: "မြန်မာ",
2105
1639
  cca2: "MM",
2106
1640
  cca3: "MMR",
2107
1641
  idd: "95",
2108
- uid: "MM-95",
2109
1642
  flag: "🇲🇲",
2110
1643
  },
2111
1644
  {
2112
1645
  name: "საქართველო",
2113
- deburr: "საქართველო",
2114
1646
  cca2: "GE",
2115
1647
  cca3: "GEO",
2116
1648
  idd: "995",
2117
- uid: "GE-995",
2118
1649
  flag: "🇬🇪",
2119
1650
  },
2120
1651
  {
2121
1652
  name: "ኢትዮጵያ",
2122
- deburr: "ኢትዮጵያ",
2123
1653
  cca2: "ET",
2124
1654
  cca3: "ETH",
2125
1655
  idd: "251",
2126
- uid: "ET-251",
2127
1656
  flag: "🇪🇹",
2128
1657
  },
2129
1658
  {
2130
1659
  name: "ኤርትራ",
2131
- deburr: "ኤርትራ",
2132
1660
  cca2: "ER",
2133
1661
  cca3: "ERI",
2134
1662
  idd: "291",
2135
- uid: "ER-291",
2136
1663
  flag: "🇪🇷",
2137
1664
  },
2138
1665
  {
2139
1666
  name: "‏البحرين",
2140
- deburr: "‏البحرين",
2141
1667
  cca2: "BH",
2142
1668
  cca3: "BHR",
2143
1669
  idd: "973",
2144
- uid: "BH-973",
2145
1670
  flag: "🇧🇭",
2146
1671
  },
2147
1672
  {
2148
1673
  name: "‏ليبيا",
2149
- deburr: "‏ليبيا",
2150
1674
  cca2: "LY",
2151
1675
  cca3: "LBY",
2152
1676
  idd: "218",
2153
- uid: "LY-218",
2154
1677
  flag: "🇱🇾",
2155
1678
  },
2156
1679
  {
2157
1680
  name: "中国",
2158
- deburr: "中国",
2159
1681
  cca2: "CN",
2160
1682
  cca3: "CHN",
2161
1683
  idd: "86",
2162
- uid: "CN-86",
2163
1684
  flag: "🇨🇳",
2164
1685
  },
2165
1686
  {
2166
1687
  name: "日本",
2167
- deburr: "日本",
2168
1688
  cca2: "JP",
2169
1689
  cca3: "JPN",
2170
1690
  idd: "81",
2171
- uid: "JP-81",
2172
1691
  flag: "🇯🇵",
2173
1692
  },
2174
1693
  {
2175
1694
  name: "澳門",
2176
- deburr: "澳門",
2177
1695
  cca2: "MO",
2178
1696
  cca3: "MAC",
2179
1697
  idd: "853",
2180
- uid: "MO-853",
2181
1698
  flag: "🇲🇴",
2182
1699
  },
2183
1700
  {
2184
1701
  name: "臺灣",
2185
- deburr: "臺灣",
2186
1702
  cca2: "TW",
2187
1703
  cca3: "TWN",
2188
1704
  idd: "886",
2189
- uid: "TW-886",
2190
1705
  flag: "🇹🇼",
2191
1706
  },
2192
1707
  {
2193
1708
  name: "香港",
2194
- deburr: "香港",
2195
1709
  cca2: "HK",
2196
1710
  cca3: "HKG",
2197
1711
  idd: "852",
2198
- uid: "HK-852",
2199
1712
  flag: "🇭🇰",
2200
1713
  },
2201
1714
  {
2202
1715
  name: "대한민국",
2203
- deburr: "대한민국",
2204
1716
  cca2: "KR",
2205
1717
  cca3: "KOR",
2206
1718
  idd: "82",
2207
- uid: "KR-82",
2208
1719
  flag: "🇰🇷",
2209
1720
  },
2210
1721
  {
2211
1722
  name: "북한",
2212
- deburr: "북한",
2213
1723
  cca2: "KP",
2214
1724
  cca3: "PRK",
2215
1725
  idd: "850",
2216
- uid: "KP-850",
2217
1726
  flag: "🇰🇵",
2218
1727
  },
2219
1728
  ];
2220
- export const countries = readonlyCountries.concat([]);
1729
+ const countryNameResolver = Result.fromExecution(() => {
1730
+ const DisplayNames = Intl.DisplayNames;
1731
+ // https://github.com/formatjs/formatjs/blob/%40formatjs/intl-localematcher%400.5.3/packages/intl-displaynames/should-polyfill.ts
1732
+ const hasMissingICUBug = new DisplayNames(["en"], {
1733
+ type: "region",
1734
+ }).of("CA") === "CA";
1735
+ if (hasMissingICUBug) {
1736
+ throw new Error("Missing Intl APIs");
1737
+ }
1738
+ const locales = [locale.language];
1739
+ const isLocaleSupported = DisplayNames.supportedLocalesOf(locales).length > 0;
1740
+ if (!isLocaleSupported) {
1741
+ throw new Error("Missing Intl APIs");
1742
+ }
1743
+ return new DisplayNames(locales, { type: "region" });
1744
+ });
1745
+ export const countries = readonlyCountries
1746
+ .map(country => {
1747
+ const name = countryNameResolver.match({
1748
+ Ok: resolver => resolver.of(country.cca2) ?? country.name,
1749
+ Error: () => country.name,
1750
+ });
1751
+ return {
1752
+ ...country,
1753
+ name,
1754
+ deburr: deburr(name.toLowerCase()),
1755
+ uid: `${country.cca2}-${country.idd}`,
1756
+ };
1757
+ })
1758
+ .sort((countryA, countryB) => {
1759
+ return countryA.name.localeCompare(countryB.name);
1760
+ });
2221
1761
  export const getCCA2forCCA3 = (cca3) => countries.find(country => country.cca3 === cca3)?.cca2;
2222
1762
  export const getCCA3forCCA2 = (cca2) => countries.find(country => country.cca2 === cca2)?.cca3;
2223
- const isTranslatedCountry = (value) => Object.keys(names).includes(value);
2224
1763
  export const companyWithUboCountries = ["BEL", "DEU", "FRA", "ITA", "LTU", "LUX", "NLD"];
2225
- const names = {
2226
- AUT: t("country.AUT"),
2227
- BEL: t("country.BEL"),
2228
- BGR: t("country.BGR"),
2229
- CYP: t("country.CYP"),
2230
- CZE: t("country.CZE"),
2231
- DEU: t("country.DEU"),
2232
- DNK: t("country.DNK"),
2233
- ESP: t("country.ESP"),
2234
- EST: t("country.EST"),
2235
- FIN: t("country.FIN"),
2236
- FRA: t("country.FRA"),
2237
- GRC: t("country.GRC"),
2238
- HRV: t("country.HRV"),
2239
- HUN: t("country.HUN"),
2240
- IRL: t("country.IRL"),
2241
- ISL: t("country.ISL"),
2242
- ITA: t("country.ITA"),
2243
- LIE: t("country.LIE"),
2244
- LTU: t("country.LTU"),
2245
- LUX: t("country.LUX"),
2246
- LVA: t("country.LVA"),
2247
- MLT: t("country.MLT"),
2248
- MCO: t("country.MCO"),
2249
- NLD: t("country.NLD"),
2250
- NOR: t("country.NOR"),
2251
- POL: t("country.POL"),
2252
- PRT: t("country.PRT"),
2253
- ROU: t("country.ROU"),
2254
- SVK: t("country.SVK"),
2255
- SVN: t("country.SVN"),
2256
- SWE: t("country.SWE"),
2257
- };
2258
1764
  export const allCountries = countries.map(country => country.cca3);
2259
1765
  export const individualCountries = [
2260
1766
  "AUT",
@@ -2331,40 +1837,14 @@ export const isCountryCCA2 = (value) => countries.some(({ cca2 }) => cca2 === va
2331
1837
  export const isIndividualCountryCCA3 = (value) => individualCountries.includes(value);
2332
1838
  export const isCompanyCountryCCA3 = (value) => companyCountries.includes(value);
2333
1839
  export const isCompanyWithUboCountryCCA3 = (value) => companyWithUboCountries.includes(value);
2334
- const getBestNavigatorCountryIndividual = () => {
2335
- const navigatorCountries = navigator.languages
2336
- .map(lang => lang.split("-")[1])
2337
- .filter(isNotNullish);
2338
- const cca2 = navigatorCountries.find(isCountryCCA2) ?? "FR";
2339
- const country = individualCountries.find(country => getCCA2forCCA3(country) === cca2);
2340
- return country ?? "FRA";
2341
- };
2342
- const getBestNavigatorCountryCompany = () => {
2343
- const navigatorCountries = navigator.languages.map(lang => lang.split("-")[1]);
2344
- const cca2 = navigatorCountries.find(isCountryCCA2) ?? "FR";
2345
- const country = companyCountries.find(country => getCCA2forCCA3(country) === cca2);
2346
- return country ?? "FRA";
2347
- };
2348
- export const individualFallbackCountry = getBestNavigatorCountryIndividual();
2349
- export const companyFallbackCountry = getBestNavigatorCountryCompany();
2350
- const hasIntl = "Intl" in window && "DisplayNames" in window.Intl;
2351
- const countryNameResolver = hasIntl && Intl.DisplayNames.supportedLocalesOf([locale.language]).length
2352
- ? new Intl.DisplayNames([locale.language], { type: "region" })
2353
- : undefined;
2354
- export const getCountryName = (cca3) => {
2355
- const cca2 = getCCA2forCCA3(cca3);
2356
- if (isNullish(cca2)) {
2357
- if (isTranslatedCountry(cca3)) {
2358
- return names[cca3];
2359
- }
2360
- return countries.find(country => country.cca3 === cca3)?.name ?? cca3;
2361
- }
2362
- const resolvedName = countryNameResolver?.of(cca2);
2363
- if (isNotNullish(resolvedName)) {
2364
- return resolvedName;
1840
+ const navigatorCountries = navigator.languages.reduce((acc, lang) => {
1841
+ const countryCode = lang.split("-")[1];
1842
+ if (countryCode != null && isCountryCCA2(countryCode)) {
1843
+ const countryCCA3 = getCCA3forCCA2(countryCode);
1844
+ countryCCA3 != null && acc.push(countryCCA3);
2365
1845
  }
2366
- if (isTranslatedCountry(cca3)) {
2367
- return names[cca3];
2368
- }
2369
- return countries.find(country => country.cca3 === cca3)?.name ?? cca3;
2370
- };
1846
+ return acc;
1847
+ }, []);
1848
+ export const companyFallbackCountry = companyCountries.find(cca3 => navigatorCountries.includes(cca3)) ?? "FRA";
1849
+ export const individualFallbackCountry = individualCountries.find(cca3 => navigatorCountries.includes(cca3)) ?? "FRA";
1850
+ export const getCountryName = (cca3) => countries.find(country => country.cca3 === cca3)?.name ?? cca3;