This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
/
flag-icon.html
862 lines (854 loc) · 74.9 KB
/
flag-icon.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
<!--
https://github.com/stevenrskelton/flag-icon
@element flag-icon
@demo http://files.stevenskelton.ca/flag-icon/examples/
-->
<link rel="import" href="../polymer/polymer.html">
<polymer-element
name="flag-icon"
constructor="FlagIcon"
attributes="key data img width height aspect square au br ca de es ru us maritime racing"
style="
display: inline-block;
line-height: 0;
">
<template>
<div title="{{title}}" role="image" aria-label="{{title}}" style="
{{src ? 'background: url(' + src + ');' : ''}}
background-size: 100% 100%;
background-position: center center;
width: {{computedWidth}}px;
height: {{computedHeight}}px;
background-repeat: no-repeat;
display: inline-block;
-webkit-print-color-adjust: exact;
"></div>
</template>
<script>
"use strict";
Polymer('flag-icon', {
key: null,
data: null,
img: false,
width: null,
height: null,
computedWidth: 0,
computedHeight: 0,
square: false,
au: false,
br: false,
ca: false,
de: false,
es: false,
ru: false,
us: false,
maritime: false,
racing: false,
title: null,
src: null,
aspect: null,
observe: {
aspect: 'refresh',
width: 'refresh',
height: 'refresh',
img: 'refresh',
key: 'refresh',
square: 'refresh'
},
refresh: function (oldValue, newValue) {
var d, dataTitle, aspect;
if (this.key !== null) {
if (this.au) {
aspect = 2;
d = this.findAustralianState(this.key);
} else if (this.br) {
aspect = 3 / 2;
d = this.findBrazilianState(this.key);
} else if (this.ca) {
aspect = 2;
d = this.findCanadianProvince(this.key);
} else if (this.de) {
aspect = 5 / 3;
d = this.findGermanState(this.key);
} else if (this.es) {
aspect = 3 / 2;
d = this.findSpanishAutonomy(this.key);
} else if (this.ru) {
aspect = 3 / 2;
d = this.findRussianRegion(this.key);
} else if (this.us) {
aspect = 3 / 2;
d = this.findUSState(this.key);
} else if (this.maritime) {
aspect = 1;
d = this.findMaritimeFlag(this.key);
} else if (this.racing) {
aspect = 4 / 3;
d = this.findRacing(this.key);
} else {
aspect = 4 / 3;
if (this.square) { aspect = 1; }
d = this.findCountry(this.key);
}
}
if (this.aspect !== null) {
if (typeof this.aspect === "number") {
aspect = this.aspect;
} else if (typeof this.aspect === "boolean") {
if (this.aspect && d && d.data.aspect) { aspect = d.data.aspect; }
} else {
if (this.aspect === "") {
if (d && d.data.aspect) { aspect = d.data.aspect; }
} else if (this.aspect == +this.aspect) {
aspect = +this.aspect;
}
}
}
if (this.width) {
this.computedWidth = this.width;
} else {
this.computedWidth = 0;
}
if (!this.width && !this.height) { this.computedWidth = 16; }
if (this.height) {
this.computedHeight = this.height;
} else {
this.computedHeight = this.computedWidth / aspect;
}
if (!this.computedWidth) { this.computedWidth = this.computedHeight * aspect; }
if (d) {
this.data = d.data;
dataTitle = d.title;
if (this.img) {
var w = +this.computedWidth;
if (w === null || w == 0) { w = +this.computedHeight * aspect; }
var size = (w > 75) ? 225 : (w > 36) ? '75' : (w > 20) ? '36' : '16';
this.src = this.resolvePath('png/' + size + '/' + d.file + '.png');
} else {
this.src = this.resolvePath('svg/' + d.file + '.svg');
}
} else {
this.data = null;
dataTitle = null;
this.src = null;
}
var userTitle = this.textContent.trim();
this.title = (userTitle.length > 0) ? userTitle : dataTitle;
},
created: function () {
var countries = [
{ name: 'Afghanistan', aspect: 1.5, alpha2: 'AF', alpha3: 'AFG', numeric: 4, endonym: ['Afghanestan','\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646'] },
{ name: ['\u00C5land Islands','Aland Islands'], alpha2: 'AX', alpha3: 'ALA', numeric: 248 },
{ name: 'Albania', aspect: 1.4, alpha2: 'AL', alpha3: 'ALB', numeric: 8, endonym: ['Shqip\u00EBria'] },
{ name: 'Algeria', aspect: 1.5, alpha2: 'DZ', alpha3: 'DZA', numeric: 12, endonym: ['Dzayer','\u2D37\u2D63\u2D30\u2D62\u2D3B\u2D54','Al-Jaz\u0101\'ir','\u0627\u0644\u062C\u0632\u0627\u0626\u0631'] },
{ name: 'American Samoa', aspect: 2, alpha2: 'AS', alpha3: 'ASM', numeric: 16, endonym: ['Amerika S\u0101moa'] },
{ name: 'Andorra', aspect: 10 / 7, alpha2: 'AD', alpha3: 'AND', numeric: 20 },
{ name: 'Angola', aspect: 1.5, alpha2: 'AO', alpha3: 'AGO', numeric: 24 },
{ name: 'Anguilla', aspect: 2, alpha2: 'AI', alpha3: 'AIA', numeric: 660 },
{ name: 'Antarctica', alpha2: 'AQ', alpha3: 'ATA', numeric: 10 },
{ name: 'Antigua and Barbuda', aspect: 1.5, alpha2: 'AG', alpha3: 'ATG', numeric: 28 },
{ name: 'Argentina', aspect: 1.6, alpha2: 'AR', alpha3: 'ARG', numeric: 32 },
{ name: 'Armenia', aspect: 2, alpha2: 'AM', alpha3: 'ARM', numeric: 51, endonym: ['Hayast\u00E1n','\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576'] },
{ name: 'Aruba', aspect: 1.5, alpha2: 'AW', alpha3: 'ABW', numeric: 533 },
{ name: 'Australia', aspect: 2, alpha2: 'AU', alpha3: 'AUS', numeric: 36 },
{ name: 'Austria', aspect: 1.5, alpha2: 'AT', alpha3: 'AUT', numeric: 40, endonym: ['\u00D6sterreich'] },
{ name: 'Azerbaijan', aspect: 2, alpha2: 'AZ', alpha3: 'AZE', numeric: 31, endonym: ['Az\u0259rbaycan'] },
{ name: ['Bahamas','Bahamas, The','The Bahamas'], aspect: 2, alpha2: 'BS', alpha3: 'BHS', numeric: 44 },
{ name: 'Bahrain', aspect: 5 / 3, alpha2: 'BH', alpha3: 'BHR', numeric: 48, endonym: ['Al-Ba\u1E25rayn','\u0627\u0644\u0628\u062D\u0631\u064A\u0646'] },
{ name: 'Bangladesh', aspect: 5 / 3, alpha2: 'BD', alpha3: 'BGD', numeric: 50, endonym: ['\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6'] },
{ name: 'Barbados', aspect: 1.5, alpha2: 'BB', alpha3: 'BRB', numeric: 52 },
{ name: 'Belarus', aspect: 2, alpha2: 'BY', alpha3: 'BLR', numeric: 112, endonym: ['Belarus\u2019','\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C','Bie\u0142aru\u015B','Belorussiya','Belorussi\u00E2','\u0411\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F'] },
{ name: 'Belgium', aspect: 15/13, alpha2: 'BE', alpha3: 'BEL', numeric: 56, endonym: ['Belgi\u00EB','Belgique','Belgien'] },
{ name: 'Belize', aspect: 1.5, alpha2: 'BZ', alpha3: 'BLZ', numeric: 84 },
{ name: 'Benin', aspect: 1.5, alpha2: 'BJ', alpha3: 'BEN', numeric: 204, endonym: ['B\u00E9nin'] },
{ name: 'Bermuda', aspect: 2, alpha2: 'BM', alpha3: 'BMU', numeric: 60 },
{ name: 'Bhutan', aspect: 1.5, alpha2: 'BT', alpha3: 'BTN', numeric: 64, endonym: ['Druk Yul','\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63'] },
{ name: ['Bolivia','Plurinational State of Bolivia','Bolivia, Plurinational State of'], aspect: 22/15, alpha2: 'BO', alpha3: 'BOL', numeric: 68, endonym: ['Buliwya','Wuliwya','Vol\u00EDvia'] },
{ name: 'Bonaire, Sint Eustatius and Saba', aspect: 1.5, alpha2: 'BQ', alpha3: 'BES', numeric: 535 },
{ name: 'Bosnia and Herzegovina', aspect: 2, alpha2: 'BA', alpha3: 'BIH', numeric: 70, endonym: ['Bosna i Hercegovina','\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430'] },
{ name: 'Botswana', aspect: 1.5, alpha2: 'BW', alpha3: 'BWA', numeric: 72 },
{ name: 'Bouvet Island', alpha2: 'BV', alpha3: 'BVT', numeric: 74 },
{ name: ['Brazil','Federative Republic of Brazil'], aspect: 10 / 7, alpha2: 'BR', alpha3: 'BRA', numeric: 76, endonym: ['Brasil','Rep\u00FAblica Federativa do Brasil'] },
{ name: 'British Indian Ocean Territory', aspect: 2, alpha2: 'IO', alpha3: 'IOT', numeric: 86 },
{ name: ['Nation of Brunei, the Abode of Peace','Brunei Darussalam','Brunei'], aspect: 2, alpha2: 'BN', alpha3: 'BRN', numeric: 96, endonym: ['\u0628\u0631\u0648\u0646\u064A'] },
{ name: 'Bulgaria', aspect: 5 / 3, alpha2: 'BG', alpha3: 'BGR', numeric: 100, endonym: ['Bulgariya','B\u0103lgarija','\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F'] },
{ name: 'Burkina Faso', aspect: 1.5, alpha2: 'BF', alpha3: 'BFA', numeric: 854 },
{ name: 'Burundi', aspect: 5 / 3, alpha2: 'BI', alpha3: 'BDI', numeric: 108 },
{ name: 'Cambodia', aspect: 1.5, alpha2: 'KH', alpha3: 'KHM', numeric: 116, endonym: ['Kampuchea','\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6'] },
{ name: 'Cameroon', aspect: 1.5, alpha2: 'CM', alpha3: 'CMR', numeric: 120, endonym: ['Cameroun'] },
{ name: 'Canada', aspect: 2, alpha2: 'CA', alpha3: 'CAN', numeric: 124 },
{ name: 'Cabo Verde', aspect: 1.5, alpha2: 'CV', alpha3: 'CPV', numeric: 132, endonym: ['Cabo Verde'] },
{ name: 'Cayman Islands', aspect: 2, alpha2: 'KY', alpha3: 'CYM', numeric: 136 },
{ name: 'Central African Republic', aspect: 5 / 3, alpha2: 'CF', alpha3: 'CAF', numeric: 140, endonym: ['R\u00E9publique Centrafricaine','K\u00F6d\u00F6r\u00F6s\u00EAse t\u00EE B\u00EAafr\u00EEka'] },
{ name: 'Chad', aspect: 1.5, alpha2: 'TD', alpha3: 'TCD', numeric: 148, endonym: ['Tchad','T\u0161\u0101d','\u062A\u0634\u0627\u062F'] },
{ name: 'Chile', aspect: 1.5, alpha2: 'CL', alpha3: 'CHL', numeric: 152 },
{ name: ['People\'s Republic of China','China'], aspect: 1.5, alpha2: 'CN', alpha3: 'CHN', numeric: 156, endonym: ['Zh\u014Dnggu\u00F3','Zh\u014Dnghu\u00E1 R\u00E9nm\u00EDn G\u00F2ngh\u00E9gu\u00F3','\u4E2D\u570B','\u4E2D\u570B (\u4E2D\u83EF\u4EBA\u6C11\u5171\u548C\u570B)','\u4E2D\u56FD','\u4E2D\u56FD (\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD)'] },
{ name: 'Christmas Island', aspect: 2, alpha2: 'CX', alpha3: 'CXR', numeric: 162 },
{ name: 'Cocos (Keeling) Islands', aspect: 2, alpha2: 'CC', alpha3: 'CCK', numeric: 166 },
{ name: 'Colombia', aspect: 1.5, alpha2: 'CO', alpha3: 'COL', numeric: 170 },
{ name: 'Comoros', aspect: 5 / 3, alpha2: 'KM', alpha3: 'COM', numeric: 174, endonym: ['Komori','Juzur al-Qamar','\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631','Comores'] },
{ name: ['Republic of the Congo','Congo, Republic of the'], aspect: 1.5, alpha2: 'CG', alpha3: 'COG', numeric: 178, endonym: ['R\u00E9publique du Congo'] },
{ name: ['Democratic Republic of the Congo','Congo, the Democratic Republic of the','Congo, Democratic Republic of the','Congo'], aspect: 4 / 3, alpha2: 'CD', alpha3: 'COD', numeric: 180, endonym: ['R\u00E9publique d\u00E9mocratique du Congo'] },
{ name: 'Cook Islands', aspect: 2, alpha2: 'CK', alpha3: 'COK', numeric: 184 },
{ name: 'Costa Rica', aspect: 5 / 3, alpha2: 'CR', alpha3: 'CRI', numeric: 188 },
{ name: ['C\u00F4te d\'Ivoire','Cote d\'Ivoire','R\u00E9publique de C\u00F4te d\'Ivoire','Ivory Coast'], aspect: 1.5, alpha2: 'CI', alpha3: 'CIV', numeric: 384 },
{ name: 'Croatia', aspect: 2, alpha2: 'HR', alpha3: 'HRV', numeric: 191, endonym: ['Hrvatska'] },
{ name: 'Cuba', aspect: 2, alpha2: 'CU', alpha3: 'CUB', numeric: 192 },
{ name: ['Cura\u00E7ao','Curacao'], aspect: 1.5, alpha2: 'CW', alpha3: 'CUW', numeric: 531, endonym: ['K\u00F2rsou'] },
{ name: 'Cyprus', aspect: 1.5, alpha2: 'CY', alpha3: 'CYP', numeric: 196, endonym: ['Kypros','\u039A\u03CD\u03C0\u03C1\u03BF\u03C2','K\u0131br\u0131s'] },
{ name: 'Czech Republic', aspect: 1.5, alpha2: 'CZ', alpha3: 'CZE', numeric: 203, endonym: ['\u010Cesk\u00E1 republika','\u010Cesko'] },
{ name: 'Denmark', aspect: 37/28, alpha2: 'DK', alpha3: 'DNK', numeric: 208, endonym: ['Danmark'] },
{ name: 'Djibouti', aspect: 1.5, alpha2: 'DJ', alpha3: 'DJI', numeric: 262, endonym: ['J\u012Bb\u016Bt\u012B','\u062C\u064A\u0628\u0648\u062A\u064A'] },
{ name: 'Dominica', aspect: 2, alpha2: 'DM', alpha3: 'DMA', numeric: 212 },
{ name: 'Dominican Republic', aspect: 1.5, alpha2: 'DO', alpha3: 'DOM', numeric: 214, endonym: ['Rep\u00FAblica Dominicana'] },
{ name: 'Ecuador', aspect: 1.5, alpha2: 'EC', alpha3: 'ECU', numeric: 218 },
{ name: 'Egypt', aspect: 1.5, alpha2: 'EG', alpha3: 'EGY', numeric: 818, endonym: ['Misr','Masr','\u0645\u0635\u0631'] },
{ name: 'El Salvador', aspect: 335 / 189, alpha2: 'SV', alpha3: 'SLV', numeric: 222 },
{ name: 'Equatorial Guinea', aspect: 1.5, alpha2: 'GQ', alpha3: 'GNQ', numeric: 226, endonym: ['Guinea Ecuatorial'] },
{ name: 'Eritrea', aspect: 2, alpha2: 'ER', alpha3: 'ERI', numeric: 232, endonym: ['Iritriya','\u0625\u0631\u062A\u0631\u064A\u0627','Erta','\u12A4\u122D\u1275\u122B'] },
{ name: 'Estonia', aspect: 11 / 7, alpha2: 'EE', alpha3: 'EST', numeric: 233, endonym: ['Eesti'] },
{ name: 'Ethiopia', aspect: 2, alpha2: 'ET', alpha3: 'ETH', numeric: 231, endonym: ['Ityop\'ia','\u12A2\u1275\u12EE\u1335\u12EB'] },
{ name: ['Falkland Islands (Malvinas)','Falkland Islands (Islas Malvinas)','Falkland Islands','Islas Malvinas'], aspect: 2, alpha2: 'FK', alpha3: 'FLK', numeric: 238 },
{ name: 'Faroe Islands', aspect: 11/8, alpha2: 'FO', alpha3: 'FRO', numeric: 234, endonym: ['F\u00F8royar','F\u00E6r\u00F8erne'] },
{ name: 'Fiji', aspect: 2, alpha2: 'FJ', alpha3: 'FJI', numeric: 242, endonym: ['Viti','\u092B\u093C\u093F\u091C\u0940'] },
{ name: 'Finland', aspect: 18 / 11, alpha2: 'FI', alpha3: 'FIN', numeric: 246, endonym: ['Suomi'] },
{ name: 'France', aspect: 1.5, alpha2: 'FR', alpha3: 'FRA', numeric: 250 },
{ name: 'French Guiana', alpha2: 'GF', alpha3: 'GUF', numeric: 254, endonym: ['Guyane'] },
{ name: 'French Polynesia', aspect: 1.5, alpha2: 'PF', alpha3: 'PYF', numeric: 258, endonym: ['Polyn\u00E9sie fran\u00E7aise'] },
{ name: 'French Southern Territories', aspect: 1.5, alpha2: 'TF', alpha3: 'ATF', numeric: 260 },
{ name: 'Gabon', aspect: 4 / 3, alpha2: 'GA', alpha3: 'GAB', numeric: 266 },
{ name: ['Gambia','Gambia, The','The Gambia'], aspect: 1.5, alpha2: 'GM', alpha3: 'GMB', numeric: 270 },
{ name: 'Georgia', aspect: 1.5, alpha2: 'GE', alpha3: 'GEO', numeric: 268, endonym: ['Sak\'art\'velo','\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD'] },
{ name: 'Germany', aspect: 5 / 3, alpha2: 'DE', alpha3: 'DEU', numeric: 276, endonym: ['Deutschland'] },
{ name: 'Ghana', aspect: 1.5, alpha2: 'GH', alpha3: 'GHA', numeric: 288 },
{ name: 'Gibraltar', aspect: 2, alpha2: 'GI', alpha3: 'GIB', numeric: 292 },
{ name: 'Greece', aspect: 1.5, alpha2: 'GR', alpha3: 'GRC', numeric: 300, endonym: ['Hellas','Ellada','\u0395\u03BB\u03BB\u03AC\u03B4\u03B1'] },
{ name: 'Greenland', aspect: 1.5, alpha2: 'GL', alpha3: 'GRL', numeric: 304, endonym: ['Kalaallit Nunaat','Gr\u00F8nland'] },
{ name: 'Grenada', aspect: 5 / 3, alpha2: 'GD', alpha3: 'GRD', numeric: 308 },
{ name: 'Guadeloupe', alpha2: 'GP', alpha3: 'GLP', numeric: 312 },
{ name: 'Guam', aspect: 41 / 22, alpha2: 'GU', alpha3: 'GUM', numeric: 316, endonym: ['Gu\u00E5h\u00E5n'] },
{ name: 'Guatemala', aspect: 1.6, alpha2: 'GT', alpha3: 'GTM', numeric: 320 },
{ name: 'Guernsey', aspect: 1.5, alpha2: 'GG', alpha3: 'GGY', numeric: 831 },
{ name: 'Guinea', aspect: 1.5, alpha2: 'GN', alpha3: 'GIN', numeric: 324, endonym: ['Guin\u00E9e','Gine'] },
{ name: 'Guinea-Bissau', aspect: 2, alpha2: 'GW', alpha3: 'GNB', numeric: 624, endonym: ['Guin\u00E9-Bissau'] },
{ name: 'Guyana', aspect: 5 / 3, alpha2: 'GY', alpha3: 'GUY', numeric: 328 },
{ name: 'Haiti', aspect: 5 / 3, alpha2: 'HT', alpha3: 'HTI', numeric: 332, endonym: ['Ha\u00EFti','Ayiti'] },
{ name: 'Heard Island and McDonald Islands', alpha2: 'HM', alpha3: 'HMD', numeric: 334 },
{ name: ['Holy See (Vatican City State)','Vatican City'], aspect: 1, alpha2: 'VA', alpha3: 'VAT', numeric: 336, endonym: ['Citt\u00E0 del Vaticano'] },
{ name: 'Honduras', aspect: 2, alpha2: 'HN', alpha3: 'HND', numeric: 340 },
{ name: 'Hong Kong', aspect: 1.5, alpha2: 'HK', alpha3: 'HKG', numeric: 344, endonym: ['Heung Gong','\u9999\u6E2F'] },
{ name: 'Hungary', aspect: 2, alpha2: 'HU', alpha3: 'HUN', numeric: 348, endonym: ['Magyarorsz\u00E1g'] },
{ name: 'Iceland', aspect: 25 / 18, alpha2: 'IS', alpha3: 'ISL', numeric: 352, endonym: ['\u00CDsland'] },
{ name: 'India', aspect: 1.5, alpha2: 'IN', alpha3: 'IND', numeric: 356, endonym: ['Bhar\u00F4t','\u09AD\u09BE\u09F0\u09A4','\u09AD\u09BE\u09B0\u09A4','Bh\u0101rat','\u0AAD\u0ABE\u0AB0\u0AA4','\u092D\u093E\u0930\u0924','Bh\u0101rata','\u0CAD\u0CBE\u0CB0\u0CA4','In\u1E0Dya','Bh\u0101ratam','\u0D07\u0D28\u0D4D\u0D24\u0D4D\u0D2F','\u0D2D\u0D3E\u0D30\u0D24\u0D02','Bhar\u00F4t\u00F4','\u0B2D\u0B3E\u0B30\u0B24','\u0A2D\u0A3E\u0A30\u0A24','\u092D\u093E\u0930\u0924\u092E\u094D','Indiy\u0101','B\u0101rata','\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE','\u0BAA\u0BBE\u0BB0\u0BA4','Bh\u0101ratad\u0113sam','\u0C2D\u0C3E\u0C30\u0C24 \u0C26\u0C47\u0C36\u0C02'] },
{ name: 'Indonesia', aspect: 1.5, alpha2: 'ID', alpha3: 'IDN', numeric: 360 },
{ name: ['Islamic Republic of Iran','Iran, Islamic Republic of','Iran'], aspect: 7 / 4, alpha2: 'IR', alpha3: 'IRN', numeric: 364, endonym: ['\u012Ar\u0101n','\u0627\u06CC\u0631\u0627\u0646'] },
{ name: 'Iraq', aspect: 1.5, alpha2: 'IQ', alpha3: 'IRQ', numeric: 368, endonym: ['Al-\'Iraq','\u0627\u0644\u0639\u0631\u0627\u0642','\u00CEraq'] },
{ name: 'Ireland', aspect: 2, alpha2: 'IE', alpha3: 'IRL', numeric: 372, endonym: ['\u00C9ire'] },
{ name: ['Isle of Man','Mann'], aspect: 2, alpha2: 'IM', alpha3: 'IMN', numeric: 833, endonym: ['Ellan Vannin'] },
{ name: 'Israel', aspect: 11 / 8, alpha2: 'IL', alpha3: 'ISR', numeric: 376, endonym: ['yisrael','\u05D9\u05E9\u05E8\u05D0\u05DC','Isr\u0101\'\u012Bl','\u0625\u0633\u0631\u0627\u0626\u064A\u0644'] },
{ name: 'Italy', aspect: 1.5, alpha2: 'IT', alpha3: 'ITA', numeric: 380, endonym: ['Italia'] },
{ name: 'Jamaica', aspect: 2, alpha2: 'JM', alpha3: 'JAM', numeric: 388 },
{ name: 'Japan', aspect: 1.5, alpha2: 'JP', alpha3: 'JPN', numeric: 392, endonym: ['Nihon','Nippon','\u65E5\u672C'] },
{ name: 'Jersey', aspect: 5 / 3, alpha2: 'JE', alpha3: 'JEY', numeric: 832, endonym: ['J\u00E8rri'] },
{ name: 'Jordan', aspect: 2, alpha2: 'JO', alpha3: 'JOR', numeric: 400, endonym: ['Al-\u2019Urdun','\u0627\u0644\u0623\u0631\u062F\u0646'] },
{ name: 'Kazakhstan', aspect: 2, alpha2: 'KZ', alpha3: 'KAZ', numeric: 398, endonym: ['Qazaqstan','\u049A\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D','\u0642\u0627\u0632\u0627\u0642\u0633\u062A\u0627\u0646','Kazakhst\u00E1n','\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D'] },
{ name: 'Kenya', aspect: 1.5, alpha2: 'KE', alpha3: 'KEN', numeric: 404 },
{ name: 'Kiribati', aspect: 2, alpha2: 'KI', alpha3: 'KIR', numeric: 296 },
{ name: ['North Korea','Korea, Democratic People\'s Republic of','Democratic People\'s Republic of Korea','Korea, North'], aspect: 2, alpha2: 'KP', alpha3: 'PRK', numeric: 408, endonym: ['Chos\u014Fn','\uC870\uC120','\u671D\u9BAE','Buk-han'] },
{ name: ['Korea Republic','South Korea','Korea, Republic of','Korea, South','Republic of Korea'], aspect: 1.5, alpha2: 'KR', alpha3: 'KOR', numeric: 410, endonym: ['Hanguk','\ud55c\uad6d','\u97d3\u570b','Nam-jos\u014fn'] },
{ name: 'Kuwait', aspect: 2, alpha2: 'KW', alpha3: 'KWT', numeric: 414, endonym: ['Al-Kuwayt','\u0627\u0644\u0643\u0648\u064A\u062A'] },
{ name: 'Kyrgyzstan', aspect: 5 / 3, alpha2: 'KG', alpha3: 'KGZ', numeric: 417, endonym: ['\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D','Kirgizija','\u041A\u0438\u0440\u0433\u0438\u0437\u0438\u044F'] },
{ name: ['Lao People\'s Democratic Republic','Laos'], aspect: 1.5, alpha2: 'LA', alpha3: 'LAO', numeric: 418, endonym: ['Lao','\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7'] },
{ name: 'Latvia', aspect: 2, alpha2: 'LV', alpha3: 'LVA', numeric: 428, endonym: ['Latvija'] },
{ name: 'Lebanon', aspect: 1.5, alpha2: 'LB', alpha3: 'LBN', numeric: 422, endonym: ['Lubn\u0101n','\u0644\u0628\u0646\u0627\u0646'] },
{ name: 'Lesotho', aspect: 1.5, alpha2: 'LS', alpha3: 'LSO', numeric: 426 },
{ name: 'Liberia', aspect: 19 / 10, alpha2: 'LR', alpha3: 'LBR', numeric: 430 },
{ name: 'Libya', aspect: 2, alpha2: 'LY', alpha3: 'LBY', numeric: 434, endonym: ['\u2D4D\u2D49\u2D31\u2D62\u2D30','L\u012Bbiy\u0101','\u0644\u064A\u0628\u064A\u0627'] },
{ name: 'Liechtenstein', aspect: 5 / 3, alpha2: 'LI', alpha3: 'LIE', numeric: 438 },
{ name: 'Lithuania', aspect: 5 / 3, alpha2: 'LT', alpha3: 'LTU', numeric: 440, endonym: ['Lietuva'] },
{ name: 'Luxembourg', aspect: 5 / 3, alpha2: 'LU', alpha3: 'LUX', numeric: 442, endonym: ['L\u00EBtzebuerg','Luxemburg'] },
{ name: ['Macau','Macao','Macao Special Administrative Region of the People\'s Republic of China'], aspect: 1.5, alpha2: 'MO', alpha3: 'MAC', numeric: 446 },
{ name: ['Macedonia, the former Yugoslav Republic of','Macedonia'], aspect: 2, alpha2: 'MK', alpha3: 'MKD', numeric: 807, endonym: ['Makedonija','\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430'] },
{ name: 'Madagascar', aspect: 1.5, alpha2: 'MG', alpha3: 'MDG', numeric: 450, endonym: ['Madagasikara'] },
{ name: 'Malawi', aspect: 1.5, alpha2: 'MW', alpha3: 'MWI', numeric: 454 },
{ name: 'Malaysia', aspect: 2, alpha2: 'MY', alpha3: 'MYS', numeric: 458 },
{ name: 'Maldives', aspect: 1.5, alpha2: 'MV', alpha3: 'MDV', numeric: 462, endonym: ['Dhivehi Raajje','\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC'] },
{ name: 'Mali', aspect: 1.5, alpha2: 'ML', alpha3: 'MLI', numeric: 466 },
{ name: 'Malta', aspect: 1.5, alpha2: 'MT', alpha3: 'MLT', numeric: 470 },
{ name: 'Marshall Islands', aspect: 19/10, alpha2: 'MH', alpha3: 'MHL', numeric: 584 },
{ name: 'Martinique', alpha2: 'MQ', alpha3: 'MTQ', numeric: 474 },
{ name: 'Mauritania', aspect: 1.5, alpha2: 'MR', alpha3: 'MRT', numeric: 478, endonym: ['Muritan','Agawec','\u2D4E\u2D53\u2D54\u2D49\u2D5C\u2D30\u2D4F','\u2D30\u2D33\u2D30\u2D61\u2D5B','M\u016Br\u012Bt\u0101ny\u0101','\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627'] },
{ name: 'Mauritius', aspect: 1.5, alpha2: 'MU', alpha3: 'MUS', numeric: 480, endonym: ['Maurice'] },
{ name: 'Mayotte', alpha2: 'YT', alpha3: 'MYT', numeric: 175 },
{ name: 'Mexico', aspect: 7 / 4, alpha2: 'MX', alpha3: 'MEX', numeric: 484, endonym: ['M\u00E9xico','M\u0113xihco'] },
{ name: ['Federated States of Micronesia','Micronesia, Federated States of','Micronesia'], aspect: 19/10, alpha2: 'FM', alpha3: 'FSM', numeric: 583 },
{ name: ['Republic of Moldova','Moldova, Republic of','Moldova'], aspect: 2, alpha2: 'MD', alpha3: 'MDA', numeric: 498 },
{ name: 'Monaco', aspect: 5/4, alpha2: 'MC', alpha3: 'MCO', numeric: 492 },
{ name: 'Mongolia', aspect: 2, alpha2: 'MN', alpha3: 'MNG', numeric: 496, endonym: ['Mongol Uls','\u041C\u043E\u043D\u0433\u043E\u043B \u0423\u043B\u0441'] },
{ name: 'Montenegro', aspect: 2, alpha2: 'ME', alpha3: 'MNE', numeric: 499, endonym: ['Crna Gora','\u0426\u0440\u043D\u0430 \u0413\u043E\u0440\u0430'] },
{ name: 'Montserrat', aspect: 2, alpha2: 'MS', alpha3: 'MSR', numeric: 500 },
{ name: 'Morocco', aspect: 1.5, alpha2: 'MA', alpha3: 'MAR', numeric: 504, endonym: ['Amerruk','Elme\u0263rib','\u2D30\u2D4E\u2D54\u2D54\u2D53\u2D3D','\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31','Al-ma\u0263r\u00E9b','\u0627\u0644\u0645\u063A\u0631\u0628'] },
{ name: 'Mozambique', aspect: 1.5, alpha2: 'MZ', alpha3: 'MOZ', numeric: 508, endonym: ['Mo\u00E7ambique'] },
{ name: ['Republic of the Union of Myanmar','Myanmar','Burma'], aspect: 1.5, alpha2: 'MM', alpha3: 'MMR', numeric: 104, endonym: ['Myanma','\u1019\u103C\u1014\u103A\u1019\u102C'] },
{ name: 'Namibia', aspect: 1.5, alpha2: 'NA', alpha3: 'NAM', numeric: 516 },
{ name: 'Nauru', aspect: 2, alpha2: 'NR', alpha3: 'NRU', numeric: 520, endonym: ['Naoero'] },
{ name: 'Nepal', aspect: 0.82, alpha2: 'NP', alpha3: 'NPL', numeric: 524, endonym: ['Nep\u0101la','\u0928\u0947\u092A\u093E\u0932'] },
{ name: 'Netherlands', aspect: 1.5, alpha2: 'NL', alpha3: 'NLD', numeric: 528, endonym: ['Nederland','Nederl\u00E2n'] },
{ name: 'New Caledonia', aspect: 2, alpha2: 'NC', alpha3: 'NCL', numeric: 540, endonym: ['Nouvelle-Cal\u00E9donie'] },
{ name: 'New Zealand', aspect: 2, alpha2: 'NZ', alpha3: 'NZL', numeric: 554, endonym: ['Aotearoa'] },
{ name: 'Nicaragua', aspect: 5 / 3, alpha2: 'NI', alpha3: 'NIC', numeric: 558 },
{ name: 'Niger', aspect: 7/6, alpha2: 'NE', alpha3: 'NER', numeric: 562 },
{ name: 'Nigeria', aspect: 2, alpha2: 'NG', alpha3: 'NGA', numeric: 566 },
{ name: 'Niue', aspect: 2, alpha2: 'NU', alpha3: 'NIU', numeric: 570, endonym: ['Niu\u0113'] },
{ name: 'Norfolk Island', aspect: 2, alpha2: 'NF', alpha3: 'NFK', numeric: 574 },
{ name: 'Northern Mariana Islands', aspect: 2, alpha2: 'MP', alpha3: 'MNP', numeric: 580 },
{ name: 'Norway', aspect: 11/8, alpha2: 'NO', alpha3: 'NOR', numeric: 578, endonym: ['Norge','Noreg'] },
{ name: 'Oman', aspect: 2, alpha2: 'OM', alpha3: 'OMN', numeric: 512, endonym: ['\u2018Um\u0101n','\u0639\u064F\u0645\u0627\u0646'] },
{ name: 'Pakistan', aspect: 1.5, alpha2: 'PK', alpha3: 'PAK', numeric: 586, endonym: ['P\u0101kist\u0101n','P\u0101kist\u0101n (Islamic Republic of Pakistan)','\u067E\u0627\u06A9\u0633\u062A\u0627\u0646'] },
{ name: 'Palau', aspect: 8 / 5, alpha2: 'PW', alpha3: 'PLW', numeric: 585, endonym: ['Belau'] },
{ name: ['State of Palestine','Palestine','Palestine, State of','Palestinian National Authority'], aspect: 2, alpha2: 'PS', alpha3: 'PSE', numeric: 275, endonym: ['Filast\u012Bn','\u0641\u0644\u0633\u0637\u064A\u0646'] },
{ name: 'Panama', aspect: 1.5, alpha2: 'PA', alpha3: 'PAN', numeric: 591, endonym: ['Panam\u00E1'] },
{ name: 'Papua New Guinea', aspect: 4 / 3, alpha2: 'PG', alpha3: 'PNG', numeric: 598, endonym: ['Papua Niugini'] },
{ name: 'Paraguay', aspect: 20/11, alpha2: 'PY', alpha3: 'PRY', numeric: 600, endonym: ['Paragu\u00E1i'] },
{ name: 'Peru', aspect: 1.5, alpha2: 'PE', alpha3: 'PER', numeric: 604, endonym: ['Per\u00FA'] },
{ name: 'Philippines', aspect: 2, alpha2: 'PH', alpha3: 'PHL', numeric: 608, endonym: ['Pilipinas','Filipinas','pilipins+'] },
{ name: ['Pitcairn','Pitcairn Islands'], aspect: 2, alpha2: 'PN', alpha3: 'PCN', numeric: 612 },
{ name: 'Poland', aspect: 8 / 5, alpha2: 'PL', alpha3: 'POL', numeric: 616, endonym: ['Polska'] },
{ name: 'Portugal', aspect: 1.5, alpha2: 'PT', alpha3: 'PRT', numeric: 620 },
{ name: 'Puerto Rico', aspect: 1.5, alpha2: 'PR', alpha3: 'PRI', numeric: 630 },
{ name: 'Qatar', aspect: 28 / 11, alpha2: 'QA', alpha3: 'QAT', numeric: 634, endonym: ['Qa\u1E6Dar','\u0642\u0637\u0631'] },
{ name: ['R\u00E9union','Reunion'], alpha2: 'RE', alpha3: 'REU', numeric: 638 },
{ name: 'Romania', aspect: 1.5, alpha2: 'RO', alpha3: 'ROU', numeric: 642, endonym: ['Rom\u00E2nia'] },
{ name: ['Russian Federation','Russia'], aspect: 1.5, alpha2: 'RU', alpha3: 'RUS', numeric: 643, endonym: ['Rossiya','Rossi\u00E2','\u0420\u043E\u0441\u0441\u0438\u044F1'] },
{ name: 'Rwanda', aspect: 1.5, alpha2: 'RW', alpha3: 'RWA', numeric: 646 },
{ name: ['Saint Barth\u00E9lemy','Saint Barthelemy'], alpha2: 'BL', alpha3: 'BLM', numeric: 652, endonym: ['Saint-Barth\u00E9lemy'] },
{ name: ['Saint Helena, Ascension and Tristan da Cunha','Saint Helena, Ascension, and Tristan da Cunha'], alpha2: 'SH', alpha3: 'SHN', numeric: 654 },
{ name: 'Saint Kitts and Nevis', aspect: 1.5, alpha2: 'KN', alpha3: 'KNA', numeric: 659 },
{ name: 'Saint Lucia', aspect: 2, alpha2: 'LC', alpha3: 'LCA', numeric: 662 },
{ name: ['Saint Martin (French part)','Saint Martin','Saint-Martin'], alpha2: 'MF', alpha3: 'MAF', numeric: 663 },
{ name: 'Saint Pierre and Miquelon', alpha2: 'PM', alpha3: 'SPM', numeric: 666, endonym: ['Saint-Pierre et Miquelon'] },
{ name: 'Saint Vincent and the Grenadines', aspect: 1.5, alpha2: 'VC', alpha3: 'VCT', numeric: 670 },
{ name: 'Samoa', aspect: 2, alpha2: 'WS', alpha3: 'WSM', numeric: 882 },
{ name: 'San Marino', aspect: 4 / 3, alpha2: 'SM', alpha3: 'SMR', numeric: 674 },
{ name: ['S\u00E3o Tom\u00E9 and Pr\u00EDncipe','Sao Tome and Principe'], aspect: 2, alpha2: 'ST', alpha3: 'STP', numeric: 678, endonym: ['S\u00E3o Tom\u00E9 e Pr\u00EDncipe'] },
{ name: 'Saudi Arabia', aspect: 2, alpha2: 'SA', alpha3: 'SAU', numeric: 682, endonym: ['Al-Mamlaka Al-\u2018Arabiyyah as Sa\u2018\u016Bdiyyah','\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629'] },
{ name: 'Senegal', aspect: 1.5, alpha2: 'SN', alpha3: 'SEN', numeric: 686, endonym: ['S\u00E9n\u00E9gal'] },
{ name: 'Serbia', aspect: 1.5, alpha2: 'RS', alpha3: 'SRB', numeric: 688, endonym: ['Srbija','\u0421\u0440\u0431\u0438\u0458\u0430'] },
{ name: 'Seychelles', aspect: 2, alpha2: 'SC', alpha3: 'SYC', numeric: 690, endonym: ['Sesel'] },
{ name: 'Sierra Leone', aspect: 1.5, alpha2: 'SL', alpha3: 'SLE', numeric: 694 },
{ name: 'Singapore', aspect: 1.5, alpha2: 'SG', alpha3: 'SGP', numeric: 702, endonym: ['Singapura','X\u012Bnji\u0101p\u014D','\u65B0\u52A0\u5761','Singapur','\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD'] },
{ name: ['Sint Maarten (Dutch part)','Sint Maarten'], aspect: 1.5, alpha2: 'SX', alpha3: 'SXM', numeric: 534 },
{ name: 'Slovakia', aspect: 1.5, alpha2: 'SK', alpha3: 'SVK', numeric: 703, endonym: ['Slovensko'] },
{ name: 'Slovenia', aspect: 2, alpha2: 'SI', alpha3: 'SVN', numeric: 705, endonym: ['Slovenija'] },
{ name: 'Solomon Islands', aspect: 2, alpha2: 'SB', alpha3: 'SLB', numeric: 90, endonym: ['Solomon Aelan'] },
{ name: 'Somalia', aspect: 1.5, alpha2: 'SO', alpha3: 'SOM', numeric: 706, endonym: ['Soomaaliya','a\u015F-\u015E\u016Bm\u0101l','\u0627\u0644\u0635\u0648\u0645\u0627\u0644'] },
{ name: 'South Africa', aspect: 1.5, alpha2: 'ZA', alpha3: 'ZAF', numeric: 710, endonym: ['Suid-Afrika','iNingizimu Afrika','uMzantsi Afrika','Afrika-Borwa','Afrika Borwa','Aforika Borwa','Afurika Tshipembe','Afrika Dzonga','iSewula Afrika'] },
{ name: 'South Georgia and the South Sandwich Islands', aspect: 2, alpha2: 'GS', alpha3: 'SGS', numeric: 239 },
{ name: ['South Sudan','Republic of South Sudan'], aspect: 2, alpha2: 'SS', alpha3: 'SSD', numeric: 728 },
{ name: 'Spain', aspect: 1.5, alpha2: 'ES', alpha3: 'ESP', numeric: 724, endonym: ['Espa\u00F1a','Espanya','Espainia','Espanha'] },
{ name: 'Sri Lanka', aspect: 2, alpha2: 'LK', alpha3: 'LKA', numeric: 144, endonym: ['Sri Lank\u0101','\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0','\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8'] },
{ name: 'Sudan', aspect: 2, alpha2: 'SD', alpha3: 'SDN', numeric: 729, endonym: ['As-Sudan','\u0627\u0644\u0633\u0648\u062F\u0627\u0646'] },
{ name: 'Suriname', aspect: 1.5, alpha2: 'SR', alpha3: 'SUR', numeric: 740 },
{ name: 'Svalbard and Jan Mayen', alpha2: 'SJ', alpha3: 'SJM', numeric: 744 },
{ name: 'Swaziland', aspect: 1.5, alpha2: 'SZ', alpha3: 'SWZ', numeric: 748 },
{ name: 'Sweden', aspect: 8 / 5, alpha2: 'SE', alpha3: 'SWE', numeric: 752, endonym: ['Sverige'] },
{ name: 'Switzerland', aspect: 1, alpha2: 'CH', alpha3: 'CHE', numeric: 756, endonym: ['Schweiz','Suisse','Svizzera','Svizra'] },
{ name: ['Syrian Arab Republic','Syria'], aspect: 1.5, alpha2: 'SY', alpha3: 'SYR', numeric: 760, endonym: ['Suriyah','\u0633\u0648\u0631\u064A\u0629'] },
{ name: ['Taiwan, Province of China','Taiwan'], aspect: 1.5, alpha2: 'TW', alpha3: 'TWN', numeric: 158, endonym: ['Zh\u014Dnghu\u00E1 M\u00EDngu\u00F3','T\u00E1iwan','\u4E2D\u83EF\u6C11\u570B','\u81FA\u7063/\u53F0\u7063'] },
{ name: 'Tajikistan', aspect: 2, alpha2: 'TJ', alpha3: 'TJK', numeric: 762, endonym: ['Tojikistan','\u0422\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D'] },
{ name: ['United Republic of Tanzania','Tanzania, United Republic of','Tanzania'], aspect: 1.5, alpha2: 'TZ', alpha3: 'TZA', numeric: 834 },
{ name: 'Thailand', aspect: 1.5, alpha2: 'TH', alpha3: 'THA', numeric: 764, endonym: ['Mueang Thai','Prathet Thai','Ratcha-anachak Thai','\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22','\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22','\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22'] },
{ name: ['Democratic Republic of Timor-Leste','Timor-Leste','East Timor'], aspect: 2, alpha2: 'TL', alpha3: 'TLS', numeric: 626, endonym: ['Timor Lorosa\'e','Timor-Leste'] },
{ name: 'Togo', aspect: 1.618034, alpha2: 'TG', alpha3: 'TGO', numeric: 768 },
{ name: 'Tokelau', aspect: 2, alpha2: 'TK', alpha3: 'TKL', numeric: 772 },
{ name: 'Tonga', aspect: 2, alpha2: 'TO', alpha3: 'TON', numeric: 776 },
{ name: 'Trinidad and Tobago', aspect: 2, alpha2: 'TT', alpha3: 'TTO', numeric: 780 },
{ name: 'Tunisia', aspect: 1.5, alpha2: 'TN', alpha3: 'TUN', numeric: 788, endonym: ['Tunes','\u2D5C\u2D53\u2D4F\u2D59','T\u016Bns','\u062A\u0648\u0646\u0633'] },
{ name: 'Turkey', aspect: 1.5, alpha2: 'TR', alpha3: 'TUR', numeric: 792, endonym: ['T\u00FCrkiye'] },
{ name: 'Turkmenistan', aspect: 1.5, alpha2: 'TM', alpha3: 'TKM', numeric: 795, endonym: ['T\u00FCrkmenistan'] },
{ name: 'Turks and Caicos Islands', aspect: 2, alpha2: 'TC', alpha3: 'TCA', numeric: 796 },
{ name: 'Tuvalu', aspect: 2, alpha2: 'TV', alpha3: 'TUV', numeric: 798 },
{ name: 'Uganda', aspect: 1.5, alpha2: 'UG', alpha3: 'UGA', numeric: 800 },
{ name: 'Ukraine', aspect: 2, alpha2: 'UA', alpha3: 'UKR', numeric: 804, endonym: ['Ukra\u0457na','\u0423\u043A\u0440\u0430\u0457\u043D\u0430'] },
{ name: 'United Arab Emirates', aspect: 2, alpha2: 'AE', alpha3: 'ARE', numeric: 784, endonym: ['Al-\u2019Im\u0101rat Al-\u2018Arabiyyah Al-Mutta\u1E25idah','\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0651\u0629 \u0627\u0644\u0645\u062A\u0651\u062D\u062F\u0629'] },
{ name: 'United Kingdom', aspect: 2, alpha2: 'GB', alpha3: 'GBR', numeric: 826, endonym: ['Y Deyrnas Unedig','Unitit Kinrick','R\u00ECoghachd Aonaichte','R\u00EDocht Aontaithe','An Rywvaneth Unys'] },
{ name: ['United States','United States of America'], aspect: 19/10, alpha2: 'US', alpha3: 'USA', numeric: 840, endonym: ['\u00C9tats-Unis','Estados Unidos','Amelika-hui-pu-\'ia'] },
{ name: 'United States Minor Outlying Islands', alpha2: 'UM', alpha3: 'UMI', numeric: 581 },
{ name: 'Uruguay', aspect: 1.5, alpha2: 'UY', alpha3: 'URY', numeric: 858, endonym: ['Rep\u00FAblica Oriental del Uruguay'] },
{ name: 'Uzbekistan', aspect: 2, alpha2: 'UZ', alpha3: 'UZB', numeric: 860, endonym: ['O\u2018zbekiston','\u040E\u0437\u0431\u0435\u043A\u0438\u0441\u0442\u043E\u043D'] },
{ name: 'Vanuatu', aspect: 5 / 3, alpha2: 'VU', alpha3: 'VUT', numeric: 548 },
{ name: ['Venezuela','Venezuela, Bolivarian Republic of','Bolivarian Republic of Venezuela'], aspect: 1.5, alpha2: 'VE', alpha3: 'VEN', numeric: 862 },
{ name: ['Viet Nam','Vietnam'], aspect: 1.5, alpha2: 'VN', alpha3: 'VNM', numeric: 704, endonym: ['Vi\u1EC7t Nam'] },
{ name: ['British Virgin Islands','Virgin Islands, British'], alpha2: 'VG', alpha3: 'VGB', numeric: 92 },
{ name: ['U.S. Virgin Islands','Virgin Islands, U.S.'], alpha2: 'VI', alpha3: 'VIR', numeric: 850 },
{ name: 'Wallis and Futuna', alpha2: 'WF', alpha3: 'WLF', numeric: 876, endonym: ['Wallis-et-Futuna'] },
{ name: 'Western Sahara', alpha2: 'EH', alpha3: 'ESH', numeric: 732 },
{ name: 'Yemen', aspect: 1.5, alpha2: 'YE', alpha3: 'YEM', numeric: 887, endonym: ['Al-Yaman','\u0627\u0644\u064A\u0645\u0646'] },
{ name: 'Zambia', aspect: 1.5, alpha2: 'ZM', alpha3: 'ZMB', numeric: 894 },
{ name: 'Zimbabwe', aspect: 2, alpha2: 'ZW', alpha3: 'ZWE', numeric: 716 },
{ name: ['Abkhazia','Republic of Abkhazia','Apsny'], aspect: 2, alpha2: 'AB', endonym: ['Apsny','\u0410\u04A7\u0441\u043D\u044B','Abkhaziya','\u0410\u0431\u0445\u0430\u0437\u0438\u044F'] },
{ name: ['Republic of South Ossetia','South Ossetia','Tskhinvali Region','SouthOssetia'], aspect: 2, alpha2: 'SOUTHOSSETIA', endonym: ['Khussar Iryston','\u0425\u0443\u0441\u0441\u0430\u0440 \u0418\u0440\u044B\u0441\u0442\u043E\u043D','Samkhret Oseti','\u10E1\u10D0\u10DB\u10EE\u10E0\u10D4\u10D7\u10D8 \u10DD\u10E1\u10D4\u10D7\u10D8','\u042E\u0436\u043D\u0430\u044F \u041E\u0441\u0435\u0442\u0438\u044F','Yuzhnaya Osetiya'] },
{ name: ['Turkish Republic of Northern Cyprus','Northern Cyprus','NorthernCyprus'], aspect: 1.5, alpha2: 'NORTHERNCYPRUS', endonym: ['Kuzey K\u0131br\u0131s'] },
{ name: ['Kosovo','Republic of Kosovo'], aspect: 7/5, alpha2: 'XK', endonym: ['Kosova','\u041A\u043E\u0441\u043E\u0432\u043E'] },
{ name: ['European Union','EuropeanUnion','EU'], alpha2: 'EUROPEANUNION' },
{ name: ['United Nations','UnitedNations','UN'], alpha2: 'UNITEDNATIONS' },
{ name: 'England', alpha2: 'ENGLAND' },
{ name: 'Scotland', alpha2: 'SCOTLAND' },
{ name: 'Wales', alpha2: 'WALES' }
];
var au_states = [
{ name: 'Australian Capital Territory', postal: 'ACT', iso: 'AU-ACT' },
{ name: 'New South Wales', postal: 'NSW', iso: 'AU-NSW' },
{ name: 'Northern Territory', postal: 'NT', iso: 'AU-NT' },
{ name: 'Queensland', postal: 'QLD', iso: 'AU-QLD' },
{ name: 'South Australia', postal: 'SA', iso: 'AU-SA' },
{ name: 'Tasmania', postal: 'TAS', iso: 'AU-TAS' },
{ name: 'Victoria', postal: 'VIC', iso: 'AU-VIC' },
{ name: 'Western Australia', postal: 'WA', iso: 'AU-WA' }
];
var br_states = [
{ name: 'Acre', iso: 'BR-AC', alpha2: 'AC' },
{ name: 'Alagoas', iso: 'BR-AL', alpha2: 'AL' },
{ name: ['Amapá','Amapa'], iso: 'BR-AP', alpha2: 'AP' },
{ name: 'Amazonas', iso: 'BR-AM', alpha2: 'AM' },
{ name: 'Bahia', iso: 'BR-BA', alpha2: 'BA' },
{ name: ['Ceará','Ceara'], iso: 'BR-CE', alpha2: 'CE' },
{ name: 'Distrito Federal', iso: 'BR-DF', alpha2: 'DF' },
{ name: ['Espírito Santo','Espirito Santo'], iso: 'BR-ES', alpha2: 'ES' },
{ name: ['Goiás','Goias'], iso: 'BR-GO', alpha2: 'GO' },
{ name: ['Maranhão','Maranhao'], iso: 'BR-MA', alpha2: 'MA' },
{ name: 'Mato Grosso', iso: 'BR-MT', alpha2: 'MT' },
{ name: 'Mato Grosso do Sul', iso: 'BR-MS', alpha2: 'MS' },
{ name: 'Minas Gerais', iso: 'BR-MG', alpha2: 'MG' },
{ name: ['Pará','Para'], iso: 'BR-PA', alpha2: 'PA' },
{ name: ['Paraíba','Paraiba'], iso: 'BR-PB', alpha2: 'PB' },
{ name: ['Paraná','Parana'], iso: 'BR-PR', alpha2: 'PR' },
{ name: 'Pernambuco', iso: 'BR-PE', alpha2: 'PE' },
{ name: ['Piauí','Piaui'], iso: 'BR-PI', alpha2: 'PI' },
{ name: 'Rio de Janeiro', iso: 'BR-RJ', alpha2: 'RJ' },
{ name: 'Rio Grande do Norte', iso: 'BR-RN', alpha2: 'RN' },
{ name: 'Rio Grande do Sul', iso: 'BR-RS', alpha2: 'RS' },
{ name: ['Rondônia','Rondonia'], iso: 'BR-RO', alpha2: 'RO' },
{ name: 'Roraima', iso: 'BR-RR', alpha2: 'RR' },
{ name: 'Santa Catarina', iso: 'BR-SC', alpha2: 'SC' },
{ name: ['São Paulo','Sao Paulo'], iso: 'BR-SP', alpha2: 'SP' },
{ name: 'Sergipe', iso: 'BR-SE', alpha2: 'SE' },
{ name: 'Tocantins', iso: 'BR-TO', alpha2: 'TO' }
];
var ca_provinces = [
{ name: 'Alberta', alpha2: 'AB' },
{ name: 'British Columbia', alpha2: 'BC' },
{ name: 'Manitoba', alpha2: 'MB' },
{ name: 'New Brunswick', alpha2: 'NB' },
{ name: 'Newfoundland and Labrador', alpha2: 'NL' },
{ name: 'Northwest Territories', alpha2: 'NT' },
{ name: 'Nova Scotia', alpha2: 'NS' },
{ name: 'Nunavut', alpha2: 'NU' },
{ name: 'Ontario', alpha2: 'ON' },
{ name: 'Prince Edward Island', alpha2: 'PE' },
{ name: ['Qu\u00E9bec','Quebec'], alpha2: 'QC' },
{ name: 'Saskatchewan', alpha2: 'SK' },
{ name: 'Yukon', alpha2: 'YT' }
];
var de_states = [
{ name: ['Baden-W\u00FCrttemberg','Baden-Wurttemberg'], nuts: 'DE1' },
{ name: ['Bavaria','Free State of Bavaria'], endonym: ['Freistaat Bayern'], nuts: 'DE2' },
{ name: 'Berlin', nuts: 'DE3' },
{ name: 'Brandenburg', endonym: ['Brannenborg'], nuts: 'DE4' },
{ name: ['Bremen','Free Hanseatic City of Bremen'], endonym: ['Freie Hansestadt Bremen'], nuts: 'DE5' },
{ name: ['Hamburg','Free and Hanseatic City of Hamburg'], endonym: ['Freie und Hansestadt Hamburg'], nuts: 'DE6' },
{ name: 'Hessen', endonym: ['Hessia'], nuts: 'DE7' },
{ name: ['Mecklenburg-Western Pomerania','MeckPomm'], endonym: ['Mecklenburg-Vorpommern'], nuts: 'DE8' },
{ name: 'Lower Saxony', endonym: ['Land Niedersachsen'], nuts: 'DE9' },
{ name: 'North Rhine-Westphalia', endonym: ['Nordrhein-Westfalen'], nuts: 'DEA' },
{ name: 'Rhineland-Palatinate', endonym: ['Rheinland-Pfalz'], nuts: 'DEB' },
{ name: 'Saarland', endonym: ['das Saarland'], nuts: 'DEC' },
{ name: ['Saxony','Free State of Saxony'], endonym: ['Freistaat Sachsen'], nuts: 'DED' },
{ name: 'Saxony-Anhalt', endonym: ['Sachsen-Anhalt'], nuts: 'DEE' },
{ name: 'Schleswig-Holstein', nuts: 'DEF' },
{ name: ['Thuringia','Free State of Thuringia'], endonym: ['Freistaat Th\u00FCringen'], nuts: 'DEG' }
];
var es_autonomy = [
{ name: ['Andaluc\u00EDa','Andalucia'], iso: 'ES-AN' },
{ name: ['Arag\u00F3n','Aragon'], iso: 'ES-AR' },
{ name: 'Asturias', iso: 'ES-AS', endonym: ['Principado de Asturias'] },
{ name: 'Canary Islands', iso: 'ES-CN', endonym: ['Canarias'] },
{ name: 'Cantabria', iso: 'ES-CB' },
{ name: 'Castilla-La Mancha', iso: 'ES-CM' },
{ name: ['Castile and Le\u00F3n','Castile and Leon'], iso: 'ES-CL', endonym: ['Castilla y Le\u00F3n'] },
{ name: 'Catalonia', iso: 'ES-CT', endonym: ['Catalu\u00F1a','Catalunya'] },
{ name: 'Extremadura', iso: 'ES-EX' },
{ name: 'Galicia', iso: 'ES-GA' },
{ name: 'Balearic Islands', iso: 'ES-IB', endonym: ['Islas Baleares','Illes Balears'] },
{ name: 'La Rioja', iso: 'ES-RI' },
{ name: ['Community of Madrid','Madrid'], iso: 'ES-MD', endonym: ['Comunidad de Madrid'] },
{ name: 'Region of Murcia', iso: 'ES-MC', endonym: ['Regi\u00F3n de Murcia'] },
{ name: 'Navarra', iso: 'ES-NC', endonym: ['Comunidad Foral de Navarra','Nafarroako Foru Komunitatea'] },
{ name: 'Basque Country', iso: 'ES-PV', endonym: ['Pa\u00EDs Vasco','Euskadi'] },
{ name: ['Valencia Community','Valencia'], iso: 'ES-VC', endonym: ['Comunitat Valenciana','Comunidad Valenciana'] },
{ name: 'Ceuta', iso: 'ES-CE' },
{ name: 'Melilla', iso: 'ES-ML' }
];
var ru_regions = [
{ name: ['Adygea','Republic of Adygea','Respublika Adygeya'], iso: 'RU-AD', type: 'Republic', endonym: ['Респу́блика Адыге́я'] },
{ name: ['Altai','Altai Republic','Respublika Altay'], iso: 'RU-AL', type: 'Republic', endonym: ['Респу́блика Алта́й'] },
{ name: ['Bashkortostan','Republic of Bashkortostan','Respublika Bashkortostan'], iso: 'RU-BA', type: 'Republic', endonym: ['Респу́блика Башкортоста́н'] },
{ name: ['Buryatia','Republic of Buryatia','Respublika Buryatiya'], iso: 'RU-BU', type: 'Republic', endonym: ['Респу́блика Буря́тия'] },
{ name: ['Chechen','Chechen Republic','Chechenskaya Respublika'], iso: 'RU-CE', type: 'Republic', endonym: ['Чече́нская Респу́блика'] },
{ name: ['Chuvashia','Chuvash Republic'], iso: 'RU-CU', type: 'Republic', endonym: ['Чува́шская Респу́блика — Чува́шия'] },
{ name: ['Crimea','Republic of Crimea','Respublika Krym'], iso: 'CRIMEA', type: 'Republic', endonym: ['Республика Крым'] },
{ name: ['Dagestan','Republic of Dagestan','Respublika Dagestan'], iso: 'RU-DA', type: 'Republic', endonym: ['Респу́блика Дагеста́н'] },
{ name: ['Ingushetia','Republic of Ingushetia','Respublika Ingushetiya'], iso: 'RU-IN', type: 'Republic', endonym: ['Респу́блика Ингуше́тия'] },
{ name: ['Kabardino-Balkar','Kabardino-Balkar Republic','Kabardino-Balkarskaya Respublika','Kabardino-Balkaria','Kabardino-Balkariya'], iso: 'RU-KB', type: 'Republic', endonym: ['Кабарди́но-Балка́рская Респу́блика','Кабарди́но-Балка́рия'] },
{ name: ['Kalmykia','Republic of Kalmykia','Respublika Kalmykiya'], iso: 'RU-KL', type: 'Republic', endonym: ['Респу́блика Калмы́кия'] },
{ name: ['Karachay-Cherkess','Karachay–Cherkess Republic','Karachayevo-Cherkesskaya Respublika','Karachay–Cherkessia','Karachay–Circassia','Karachayevo-Cherkessiya','Karachay–Circassian Republic'], iso: 'RU-KC', type: 'Republic', endonym: ['Карача́ево-Черке́сская Респу́блика','Карача́ево-Черке́ссия'] },
{ name: ['Karelia','Republic of Karelia','Respublika Kareliya'], iso: 'RU-KR', type: 'Republic', endonym: ['Респу́блика Каре́лия'] },
{ name: ['Komi','Komi Republic','Respublika Komi'], iso: 'RU-KO', type: 'Republic', endonym: ['Респу́блика Ко́ми'] },
{ name: ['Mari El','Mari El Republic','Respublika Mariy El'], iso: 'RU-ME', type: 'Republic', endonym: ['Респу́блика Мари́й Эл'] },
{ name: ['Mordovia','Republic of Mordovia','Respublika Mordoviya'], iso: 'RU-MO', type: 'Republic', endonym: ['Респу́блика Мордо́вия'] },
{ name: ['North Ossetia-Alania','Republic of North Ossetia–Alania','Respublika Severnaya Osetiya — Alaniya'], iso: 'RU-SE', type: 'Republic', endonym: ['Республика Северная Осетия — Алания'] },
{ name: ['Sakha','Sakha (Yakutia) Republic','Respublika Sakha (Yakutiya)'], iso: 'RU-SA', type: 'Republic', endonym: ['Республика Саха (Якутия)'] },
{ name: ['Tatarstan','Republic of Tatarstan','Respublika Tatarstan'], iso: 'RU-TA', type: 'Republic', endonym: ['Респу́блика Татарста́н'] },
{ name: ['Tuva','Tyva Republic','Respublika Tyva'], iso: 'RU-TY', type: 'Republic', endonym: ['Респу́блика Тыва́'] },
{ name: ['Udmurtia','Udmurt Republic','Udmurtskaya Respublika'], iso: 'RU-UD', type: 'Republic', endonym: ['Удму́ртия','Удму́ртская Pеспу́блика'] },
{ name: ['Khakasiya','Republic of Khakassia','Respublika Khakasiya'], iso: 'RU-KK', type: 'Republic', endonym: ['Респу́блика Хака́сия','Хака́сия'] },
{ name: ['Altai Krai','Altaysky kray'], iso: 'RU-ALT', type: 'Krais', endonym: ['Алта́йский край'] },
{ name: 'Kamchatka', iso: 'RU-KAM', type: 'Krais', endonym: ['Камча́тский край'] },
{ name: ['Khabarovsk','Khabarovsky kray'], iso: 'RU-KHA', type: 'Krais', endonym: ['Хаба́ровский край'] },
{ name: ['Krasnodar','Krasnodarsky kray'], iso: 'RU-KDA', type: 'Krais', endonym: ['Краснода́рский край'] },
{ name: ['Krasnoyarsk','Krasnoyarsky kray'], iso: 'RU-KYA', type: 'Krais', endonym: ['Красноя́рский край'] },
{ name: ['Perm','Permsky kray'], iso: 'RU-PER', type: 'Krais', endonym: ['Пе́рмский край'] },
{ name: 'Primorsky', iso: 'RU-PRI', type: 'Krais', endonym: ['Примо́рский край'] },
{ name: ['Stavropol','Stavropolsky kray'], iso: 'RU-STA', type: 'Krais', endonym: ['Ставропо́льский край'] },
{ name: ['Zabaykalsky','Transbaikal krai'], iso: 'RU-ZAB', type: 'Krais', endonym: ['Забайкальский край'] },
{ name: ['Amur','Amur Oblast','Amurskaya oblast','Priamurye','Amur Krai'], iso: 'RU-AMU', type: 'Oblast', endonym: ['Аму́рская о́бласть','Приаму́рье','Аму́рский край'] },
{ name: ['Arkhangelsk','Arkhangelsk Oblast','Arkhangelskaya oblast'], iso: 'RU-ARK', type: 'Oblast', endonym: ['Арха́нгельская о́бласть'] },
{ name: ['Astrakhan','Astrakhan Oblast','Astrakhanskaya oblast'], iso: 'RU-AST', type: 'Oblast', endonym: ['Астраха́нская о́бласть'] },
{ name: ['Belgorod','Belgorod Oblast','Belgorodskaya oblast'], iso: 'RU-BEL', type: 'Oblast', endonym: ['Белгоро́дская о́бласть'] },
{ name: ['Bryansk','Bryansk Oblast','Bryanskaya oblast'], iso: 'RU-BRY', type: 'Oblast', endonym: ['Бря́нская о́бласть'] },
{ name: ['Chelyabinsk','Chelyabinsk Oblast','Chelyabinskaya oblast'], iso: 'RU-CHE', type: 'Oblast', endonym: ['Челя́бинская о́бласть'] },
{ name: ['Irkutsk','Irkutsk Oblast','Irkutskaya oblast'], iso: 'RU-IRK', type: 'Oblast', endonym: ['Ирку́тская о́бласть'] },
{ name: ['Ivanovo','Ivanovo Oblast','Ivanovskaya oblast'], iso: 'RU-IVA', type: 'Oblast', endonym: ['Ива́новская о́бласть'] },
{ name: ['Kaliningrad','Kaliningrad Oblast','Kaliningradskaya oblast'], iso: 'RU-KGD', type: 'Oblast', endonym: ['Калинингра́дская о́бласть'] },
{ name: ['Kaluga','Kaluga Oblast','Kaluzhskaya oblast'], iso: 'RU-KLU', type: 'Oblast', endonym: ['Калу́жская о́бласть'] },
{ name: ['Kemerovo','Kemerovo Oblast','Kemerovskaya oblast','Kuzbass'], iso: 'RU-KEM', type: 'Oblast', endonym: ['Ке́меровская о́бласть','Кузба́сс'] },
{ name: ['Kirov','Kirov Oblast','Kirovskaya oblast'], iso: 'RU-KIR', type: 'Oblast', endonym: ['Ки́ровская о́бласть'] },
{ name: ['Kostroma','Kostroma Oblast','Kostromskaya oblast'], iso: 'RU-KOS', type: 'Oblast', endonym: ['Костромска́я о́бласть'] },
{ name: ['Kurgan','Kurgan Oblast','Kurganskaya oblast'], iso: 'RU-KGN', type: 'Oblast', endonym: ['Курга́нская о́бласть'] },
{ name: ['Kursk','Kursk Oblast','Kurskaya oblast'], iso: 'RU-KRS', type: 'Oblast', endonym: ['Курская область'] },
{ name: ['Leningrad','Leningrad Oblast','Leningradskaya oblast'], iso: 'RU-LEN', type: 'Oblast', endonym: ['Ленингра́дская о́бласть'] },
{ name: ['Lipetsk','Lipetsk Oblast','Lipetskaya oblast'], iso: 'RU-LIP', type: 'Oblast', endonym: ['Ли́пецкая о́бласть'] },
{ name: ['Magadan','Magadan Oblast','Magadanskaya oblast'], iso: 'RU-MAG', type: 'Oblast', endonym: ['Магаданская область'] },
{ name: ['Moscow','Moscow Oblast','Moskovskaya oblast','Podmoskovye'], iso: 'RU-MOS', type: 'Oblast', endonym: ['Моско́вская о́бласть','Подмоско́вье'] },
{ name: ['Murmansk','Murmansk Oblast','Murmanskaya oblast'], iso: 'RU-MUR', type: 'Oblast', endonym: ['Му́рманская о́бласть'] },
{ name: ['Nizhny Novgorod','Nizhny Novgorod Oblast','Nizhegorodskaya oblast','Nizhegorod Oblast','Gorky Oblast'], iso: 'RU-NIZ', type: 'Oblast', endonym: ['Нижегоро́дская о́бласть'] },
{ name: ['Novgorod','Novgorod Oblast','Novgorodskaya oblast'], iso: 'RU-NGR', type: 'Oblast', endonym: ['Новгоро́дская о́бласть'] },
{ name: ['Novosibirsk','Novosibirsk Oblast','Novosibirskaya oblast'], iso: 'RU-NVS', type: 'Oblast', endonym: ['Новосиби́рская о́бласть'] },
{ name: ['Omsk','Omsk Oblast','Omskaya oblast'], iso: 'RU-OMS', type: 'Oblast', endonym: ['О́мская о́бласть'] },
{ name: ['Orenburg','Orenburg Oblast','Orenburgskaya oblast'], iso: 'RU-ORE', type: 'Oblast', endonym: ['Оренбу́ргская о́бласть'] },
{ name: ['Oryol','Oryol Oblast','Orlovskaya oblast'], iso: 'RU-ORL', type: 'Oblast', endonym: ['Орло́вская о́бласть'] },
{ name: ['Penza','Penza Oblast','Penzenskaya oblast'], iso: 'RU-PNZ', type: 'Oblast', endonym: ['Пе́нзенская о́бласть'] },
{ name: ['Rostov','Rostov Oblast','Rostovskaya oblast'], iso: 'RU-ROS', type: 'Oblast', endonym: ['Росто́вская о́бласть'] },
{ name: ['Ryazan','Ryazan Oblast','Ryazanskaya oblast'], iso: 'RU-RYA', type: 'Oblast', endonym: ['Ряза́нская о́бласть'] },
{ name: ['Sakhalin','Sakhalin Oblast','Sakhalinskaya oblast'], iso: 'RU-SAK', type: 'Oblast', endonym: ['Сахали́нская о́бласть'] },
{ name: ['Samara','Samara Oblast','Samarskaya oblast','Kuybyshev Oblast','Kuybyshevskaya Oblast'], iso: 'RU-SAM', type: 'Oblast', endonym: ['Сама́рская о́бласть','Ку́йбышевская о́бласть'] },
{ name: ['Saratov','Saratov Oblast','Saratovskaya oblast'], iso: 'RU-SAR', type: 'Oblast', endonym: ['Сара́товская о́бласть'] },
{ name: ['Smolensk','Smolensk Oblast','Smolenskaya oblast'], iso: 'RU-SMO', type: 'Oblast', endonym: ['Смоле́нская о́бласть'] },
{ name: ['Sverdlovsk','Sverdlovsk Oblast','Sverdlovskaya oblast'], iso: 'RU-SVE', type: 'Oblast', endonym: ['Свердло́вская о́бласть'] },
{ name: ['Tambov','Tambov Oblast','Tambovskaya oblast'], iso: 'RU-TAM', type: 'Oblast', endonym: ['Тамбо́вская о́бласть'] },
{ name: ['Tomsk','Tomsk Oblast','Tomskaya oblast'], iso: 'RU-TOM', type: 'Oblast', endonym: ['То́мская о́бласть'] },
{ name: ['Tver','Tver Oblast','Tverskaya oblast','Kalinin Oblast'], iso: 'RU-TVE', type: 'Oblast', endonym: ['Тверска́я о́бласть','Кали́нинская о́бласть'] },
{ name: ['Tula','Tula Oblast','Tulskaya oblast'], iso: 'RU-TUL', type: 'Oblast', endonym: ['Ту́льская о́бласть'] },
{ name: ['Tyumen','Tyumen Oblast','Tyumenskaya oblast'], iso: 'RU-TYU', type: 'Oblast', endonym: ['Тюме́нская о́бласть'] },
{ name: ['Ulyanovsk','Ulyanovsk Oblast','Ulyanovskaya oblast'], iso: 'RU-ULY', type: 'Oblast', endonym: ['Улья́новская о́бласть'] },
{ name: ['Vladimir','Vladimir Oblast','Vladimirskaya oblast'], iso: 'RU-VLA', type: 'Oblast', endonym: ['Влади́мирская о́бласть'] },
{ name: ['Volgograd','Volgograd Oblast','Volgogradskaya oblast'], iso: 'RU-VGG', type: 'Oblast', endonym: ['Волгогра́дская о́бласть'] },
{ name: ['Vologda','Vologda Oblast','Vologodskaya oblast'], iso: 'RU-VLG', type: 'Oblast', endonym: ['Вологодская область'] },
{ name: ['Voronezh','Voronezh Oblast','Voronezhskaya oblast'], iso: 'RU-VOR', type: 'Oblast', endonym: ['Воро́нежская о́бласть'] },
{ name: ['Yaroslavl','Yaroslavl Oblast','Yaroslavskaya oblast'], iso: 'RU-YAR', type: 'Oblast', endonym: ['Яросла́вская о́бласть'] }
];
var us_states = [
{ name: 'Alabama', iso: 'US-AL', alpha2: 'AL', numeric: 1, gpo: 'Ala.' },
{ name: 'Alaska', iso: 'US-AK', alpha2: 'AK', numeric: 2, gpo: 'Alaska' },
{ name: 'Arizona', iso: 'US-AZ', alpha2: 'AZ', numeric: 4, gpo: 'Ariz.' },
{ name: 'Arkansas', iso: 'US-AR', alpha2: 'AR', numeric: 5, gpo: 'Ark.' },
{ name: 'California', iso: 'US-CA', alpha2: 'CA', numeric: 6, gpo: 'Calif.' },
{ name: 'Colorado', iso: 'US-CO', alpha2: 'CO', numeric: 8, gpo: 'Colo.' },
{ name: 'Connecticut', iso: 'US-CT', alpha2: 'CT', numeric: 9, gpo: 'Conn.' },
{ name: 'Delaware', iso: 'US-DE', alpha2: 'DE', numeric: 10, gpo: 'Del.' },
{ name: 'District of Columbia', iso: 'US-DC', alpha2: 'DC', numeric: 11, gpo: 'D.C.' },
{ name: 'Florida', iso: 'US-FL', alpha2: 'FL', numeric: 12, gpo: 'Fla.' },
{ name: 'Georgia', iso: 'US-GA', alpha2: 'GA', numeric: 13, gpo: 'Ga.' },
{ name: 'Hawaii', iso: 'US-HI', alpha2: 'HI', numeric: 15, gpo: 'Hawaii' },
{ name: 'Idaho', iso: 'US-ID', alpha2: 'ID', numeric: 16, gpo: 'Idaho' },
{ name: 'Illinois', iso: 'US-IL', alpha2: 'IL', numeric: 17, gpo: 'Ill.' },
{ name: 'Indiana', iso: 'US-IN', alpha2: 'IN', numeric: 18, gpo: 'Ind.' },
{ name: 'Iowa', iso: 'US-IA', alpha2: 'IA', numeric: 19, gpo: 'Iowa' },
{ name: 'Kansas', iso: 'US-KS', alpha2: 'KS', numeric: 20, gpo: 'Kans.' },
{ name: 'Kentucky', iso: 'US-KY', alpha2: 'KY', numeric: 21, gpo: 'Ky.' },
{ name: 'Louisiana', iso: 'US-LA', alpha2: 'LA', numeric: 22, gpo: 'La.' },
{ name: 'Maine', iso: 'US-ME', alpha2: 'ME', numeric: 23, gpo: 'Maine' },
{ name: 'Maryland', iso: 'US-MD', alpha2: 'MD', numeric: 24, gpo: 'Md.' },
{ name: 'Massachusetts', iso: 'US-MA', alpha2: 'MA', numeric: 25, gpo: 'Mass.' },
{ name: 'Michigan', iso: 'US-MI', alpha2: 'MI', numeric: 26, gpo: 'Mich.' },
{ name: 'Minnesota', iso: 'US-MN', alpha2: 'MN', numeric: 27, gpo: 'Minn.' },
{ name: 'Mississippi', iso: 'US-MS', alpha2: 'MS', numeric: 28, gpo: 'Miss.' },
{ name: 'Missouri', iso: 'US-MO', alpha2: 'MO', numeric: 29, gpo: 'Mo.' },
{ name: 'Montana', iso: 'US-MT', alpha2: 'MT', numeric: 30, gpo: 'Mont.' },
{ name: 'Nebraska', iso: 'US-NE', alpha2: 'NE', numeric: 31, gpo: 'Nebr.' },
{ name: 'Nevada', iso: 'US-NV', alpha2: 'NV', numeric: 32, gpo: 'Nev.' },
{ name: 'New Hampshire', iso: 'US-NH', alpha2: 'NH', numeric: 33, gpo: 'N.H.' },
{ name: 'New Jersey', iso: 'US-NJ', alpha2: 'NJ', numeric: 34, gpo: 'N.J.' },
{ name: 'New Mexico', iso: 'US-NM', alpha2: 'NM', numeric: 35, gpo: 'N. Mex.' },
{ name: 'New York', iso: 'US-NY', alpha2: 'NY', numeric: 36, gpo: 'N.Y.' },
{ name: 'North Carolina', iso: 'US-NC', alpha2: 'NC', numeric: 37, gpo: 'N.C.' },
{ name: 'North Dakota', iso: 'US-ND', alpha2: 'ND', numeric: 38, gpo: 'N. Dak.' },
{ name: 'Ohio', iso: 'US-OH', alpha2: 'OH', numeric: 39, gpo: 'Ohio' },
{ name: 'Oklahoma', iso: 'US-OK', alpha2: 'OK', numeric: 40, gpo: 'Okla.' },
{ name: 'Oregon', iso: 'US-OR', alpha2: 'OR', numeric: 41, gpo: 'Oreg.' },
{ name: 'Pennsylvania', iso: 'US-PA', alpha2: 'PA', numeric: 42, gpo: 'Pa.' },
{ name: 'Rhode Island', iso: 'US-RI', alpha2: 'RI', numeric: 44, gpo: 'R.I.' },
{ name: 'South Carolina', iso: 'US-SC', alpha2: 'SC', numeric: 45, gpo: 'S.C.' },
{ name: 'South Dakota', iso: 'US-SD', alpha2: 'SD', numeric: 46, gpo: 'S. Dak.' },
{ name: 'Tennessee', iso: 'US-TN', alpha2: 'TN', numeric: 47, gpo: 'Tenn.' },
{ name: 'Texas', iso: 'US-TX', alpha2: 'TX', numeric: 48, gpo: 'Tex.' },
{ name: 'Utah', iso: 'US-UT', alpha2: 'UT', numeric: 49, gpo: 'Utah' },
{ name: 'Vermont', iso: 'US-VT', alpha2: 'VT', numeric: 50, gpo: 'Vt.' },
{ name: 'Virginia', iso: 'US-VA', alpha2: 'VA', numeric: 51, gpo: 'Va.' },
{ name: 'Washington', iso: 'US-WA', alpha2: 'WA', numeric: 53, gpo: 'Wash.' },
{ name: 'West Virginia', iso: 'US-WV', alpha2: 'WV', numeric: 54, gpo: 'W. Va.' },
{ name: 'Wisconsin', iso: 'US-WI', alpha2: 'WI', numeric: 55, gpo: 'Wis.' },
{ name: 'Wyoming', iso: 'US-WY', alpha2: 'WY', numeric: 56, gpo: 'Wyo.' }
];
var maritimeFlags = [
{ name: 'zero', key: 0 },
{ name: 'one', key: 1 },
{ name: 'two', key: 2 },
{ name: 'three', key: 3 },
{ name: 'four', key: 4 },
{ name: 'five', key: 5 },
{ name: 'six', key: 6 },
{ name: 'seven', key: 7 },
{ name: 'eight', key: 8 },
{ name: 'nine', key: 9 },
{ name: 'alpha', key: 'a' },
{ name: 'bravo', key: 'b' },
{ name: 'charlie', key: 'c' },
{ name: 'delta', key: 'd' },
{ name: 'echo', key: 'e' },
{ name: 'foxtrot', key: 'f' },
{ name: 'golf', key: 'g' },
{ name: 'hotel', key: 'h' },
{ name: 'india', key: 'i' },
{ name: 'juliet', key: 'j' },
{ name: 'kilo', key: 'k' },
{ name: 'lima', key: 'l' },
{ name: 'mike', key: 'm' },
{ name: 'november', key: 'n' },
{ name: 'oscar', key: 'o' },
{ name: 'papa', key: 'p' },
{ name: 'quebec', key: 'q' },
{ name: 'romeo', key: 'r' },
{ name: 'sierra', key: 's' },
{ name: 'tango', key: 't' },
{ name: 'uniform', key: 'u' },
{ name: 'victor', key: 'v' },
{ name: 'whiskey', key: 'w' },
{ name: 'xray', key: 'x' },
{ name: 'yankee', key: 'y' },
{ name: 'zulu', key: 'z' }
];
var racingFlags = [
{ key: 'redcross', description: 'Ambulance on course' },
{ key: 'whitesaltire', description: 'Disqualification' },
{ key: 'checkered', description: 'Session finished / Winner' },
{ key: 'yellowsaltire', description: 'Pit lane closed' },
{ key: 'red', description: 'Session stopped' },
{ key: 'yellow', description: 'Caution' },
{ key: 'yellowslash', description: 'Faster car approaching' },
{ key: 'verticalstripes', description: 'Debris, Fluid, or Oil on track' },
{ key: 'orangecircle', description: 'Return to the pits to service a mechanical problem' },
{ key: 'blackwhiteperbend', description: 'Unsportsmanlike conduct' },
{ key: 'blue', description: 'Course partially blocked or stopped cars on course (road course only)' },
{ key: 'white', description: 'Final lap' },
{ key: 'black', description: 'Return to the pits for a penalty or to service a mechanical problem' },
{ key: 'green', description: 'Start of race / Restart / End of hazard / Safe racing conditions / Pit lane open' }
];
function head(arr) {
if (typeof arr === "object") {
if (arr.length > 0) {
return arr[0];
}
return null;
}
return arr;
}
this.countries = countries;
this.findCountry = function (id) {
var data;
if (typeof id === 'number' || +id == id) {
var num = +id;
data = countries.filter(function (element, index, array) {
return element.numeric == num;
});
} else {
var upper = id.toUpperCase();
if (upper.length > 3) {
data = countries.filter(function (element, index, array) {
var name = (typeof element.name === "object") ? element.name.some(function (e) { return e.toUpperCase() === upper; }) : element.name.toUpperCase() === upper;
return name || (element.endonym ? element.endonym.some(function (e) { return e.toUpperCase() === upper; }) : false);
});
} else {
data = countries.filter(function (element, index, array) {
return element.alpha2 === upper || element.alpha3 === upper || (element.endonym ? element.endonym.some(function (e) { return e.toUpperCase() === upper; }) : false);
});
}
}
var dir = 'country-4x3/';
if (this.square || this.aspect == '1') { dir = 'country-squared/'; }
return head(data.map(function (element) { return { title: head(element.name), data: element, file: dir + element.alpha2.toLowerCase() }; }));
};
this.au_states = au_states;
this.findAustralianState = function (id) {
var data;
var upper = id.toUpperCase();
if (id.length <= 3) {
data = au_states.filter(function (element, index, array) {
return element.postal === upper;
});
} else if (id.length <= 6) {
data = au_states.filter(function (element, index, array) {
return element.iso === upper;
});
} else {
data = au_states.filter(function (element, index, array) {
return element.name.toUpperCase() === upper;
});
}
return head(data.map(function (element) { return { title: element.name, data: element, file: 'au/' + element.name.toLowerCase().replace(/ /g,'_') }; }));
};
this.br_states = br_states;
this.findBrazilianState = function (id) {
var data;
var upper = id.toUpperCase();
if (id.length === 2) {
data = br_states.filter(function (element, index, array) {
return element.alpha2 === upper;
});
} else {
data = br_states.filter(function (element, index, array) {
var name = (typeof element.name === "object") ? element.name.some(function (e) { return e.toUpperCase() === upper; }) : element.name.toUpperCase() === upper;
return (element.iso === upper) || name;
});
}
return head(data.map(function (element) { return { title: head(element.name), data: element, file: 'br/' + head(element.name).toLowerCase().replace(/ /g,'_') }; }));
};
this.ca_provinces = ca_provinces;
this.findCanadianProvince = function (id) {
var data;
var upper = id.toUpperCase();
if (upper.length > 2) {
data = ca_provinces.filter(function (element, index, array) {
return (typeof element.name === "object") ? element.name.some(function (e) { return e.toUpperCase() === upper; }) : element.name.toUpperCase() === upper;
});
} else {
data = ca_provinces.filter(function (element, index, array) {
return element.alpha2 === upper;
});
}
return head(data.map(function (element) { return { title: head(element.name), data: element, file: 'ca/' + head(element.name).toLowerCase().replace(/ /g,'_') }; }));
};
this.de_states = de_states;
this.findGermanState = function (id) {
var data;
var upper = id.toUpperCase();
if (id.length === 3) {
data = de_states.filter(function (element, index, array) {
return element.nuts === upper;
});
} else {
data = de_states.filter(function (element, index, array) {
var t1 = element.endonym ? element.endonym.some(function (e) { return e.toUpperCase() === upper; }) : false;
var t2 = (typeof element.name === "object") ? element.name.some(function (e) { return e.toUpperCase() === upper; }) : element.name.toUpperCase() === upper;
return t1 || t2;
});
}
return head(data.map(function (element) { return { title: head(element.endonym) || head(element.name), data: element, file: 'de/' + head(element.name).toLowerCase().replace(/ /g,'_') }; }));
};
this.es_autonomy = es_autonomy;
this.findSpanishAutonomy = function (id) {
var data;
var upper = id.toUpperCase();
if (id.length === 5 && id[2] === '-') {
data = es_autonomy.filter(function (element, index, array) {
return element.iso === upper;
});
} else {
data = es_autonomy.filter(function (element, index, array) {
var name = (typeof element.name === "object") ? element.name.some(function (e) { return e.toUpperCase() === upper; }) : element.name.toUpperCase() === upper;
return name || (element.endonym ? element.endonym.some(function (e) { return e.toUpperCase() === upper; }) : false);
});
}
return head(data.map(function (element) { return { title: head(element.name), data: element, file: 'es/' + head(element.name).toLowerCase().replace(/ /g,'_') }; }));
};
this.ru_regions = ru_regions;
this.findRussianRegion = function (id) {
var data;
var upper = id.toUpperCase();
if ((id.length === 5 || id.length === 6) && id[2] === '-') {
data = ru_regions.filter(function (element, index, array) {
return element.iso === upper;
});
} else {
data = ru_regions.filter(function (element, index, array) {
var name = (typeof element.name === "object") ? element.name.some(function (e) { return e.toUpperCase() === upper; }) : element.name.toUpperCase() === upper;
return name || (element.endonym ? element.endonym.some(function (e) { return e.toUpperCase() === upper; }) : false);
});
}
return head(data.map(function (element) { return { title: head(element.name), data: element, file: 'ru/' + head(element.name).toLowerCase().replace(/ /g,'_') }; }));
};
this.us_states = us_states;
this.findUSState = function (id) {
var data;
if (typeof id === 'number' || +id == id) {
var num = +id;
data = us_states.filter(function (element, index, array) {
return element.numeric == num;
});
} else {
var upper = id.toUpperCase();
if (upper.length === 2) {
data = us_states.filter(function (element, index, array) {
return element.alpha2 === upper;
});
} else {
data = us_states.filter(function (element, index, array) {
var t1 = element.iso === upper;
var t2 = element.gpo.toUpperCase() === upper;
var t3 = (typeof element.name === "object") ? element.name.some(function (e) { return e.toUpperCase() === upper; }) : element.name.toUpperCase() === upper;
return t1 || t2 || t3;
});
}
}
return head(data.map(function (element) { return { title: head(element.name), data: element, file: 'us/' + head(element.name).toLowerCase().replace(/ /g,'_') }; }));
};
this.maritimeFlags = maritimeFlags;
this.findMaritimeFlag = function (id) {
var lower = id.toLowerCase ? id.toLowerCase() : id;
var data = maritimeFlags.filter(function (element, index, array) {
return element.name === lower || element.key == lower;
});
return head(data.map(function (element) { return { title: element.name, data: element, file: 'maritime/' + element.key }; }));
};
this.racingFlags = racingFlags;
this.findRacing = function (id) {
var lower = id.toLowerCase();
var data = racingFlags.filter(function (element, index, array) {
return element.key === lower;
});
return head(data.map(function (element) { return { title: element.description, data: element, file: 'racing/' + element.key }; }));
};
}
});
</script>
</polymer-element>