snail 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/assets/DE.yml +1 -1
- data/lib/snail.rb +44 -49
- data/lib/snail/constants.rb +503 -507
- data/lib/snail/initializable.rb +3 -6
- data/lib/snail/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f19d56cbe8024958d5dffab42559e45514554c3f9dddfddcfff643ff8144b026
|
4
|
+
data.tar.gz: 2bd285f154e25407a20c1910d0d2796ff1b219b1b454213402cca2b63d207f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 111fa30f8a1b7a1bcedc910640035612234503fb3c5f96a5ec2ca0eaab3b9953679234f2f0e273a34bf91bdbf1893193a5f217e3d6080d5eeb6854d164991c54
|
7
|
+
data.tar.gz: 0fe491fda518ad2755120af50a429e94efb87938cfee526b90b86fdcba5df698c27d3dd904b9e7b0abd1c19670b8999074121c2b1b79a32e56730ee001021102
|
data/assets/DE.yml
CHANGED
data/lib/snail.rb
CHANGED
@@ -14,51 +14,17 @@ class Snail
|
|
14
14
|
# this will be raised whenever initialization doesn't recognize a key
|
15
15
|
class UnknownAttribute < ArgumentError; end
|
16
16
|
|
17
|
-
# My made-up standard fields.
|
18
|
-
attr_accessor :name
|
19
|
-
attr_accessor :line_1
|
20
|
-
attr_accessor :line_2
|
21
|
-
attr_accessor :city
|
22
|
-
attr_accessor :region
|
23
|
-
attr_accessor :postal_code
|
24
|
-
attr_reader :country
|
25
|
-
|
26
|
-
# Store country as ISO-3166 Alpha 2
|
27
|
-
def country=(val)
|
28
|
-
@country = Snail.lookup_country_iso(val)
|
29
|
-
end
|
30
|
-
|
31
|
-
# Aliases for easier assignment compatibility
|
32
|
-
{
|
33
|
-
:full_name => :name,
|
34
|
-
:street => :line_1,
|
35
|
-
:street_1 => :line_1,
|
36
|
-
:street1 => :line_1,
|
37
|
-
:street_2 => :line_2,
|
38
|
-
:street2 => :line_2,
|
39
|
-
:town => :city,
|
40
|
-
:locality => :city,
|
41
|
-
:state => :region,
|
42
|
-
:province => :region,
|
43
|
-
:zip => :postal_code,
|
44
|
-
:zip_code => :postal_code,
|
45
|
-
:postcode => :postal_code
|
46
|
-
}.each do |new, existing|
|
47
|
-
alias_method "#{new}=", "#{existing}="
|
48
|
-
end
|
49
|
-
|
50
17
|
# Load the SnailHelpers module into ActionView::Base. Previously this was done
|
51
18
|
# automatically, but going forward it must be included explicitly by calling
|
52
19
|
# Snail.load_helpers.
|
53
20
|
def self.load_helpers
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
end
|
21
|
+
return unless defined? ActionView
|
22
|
+
warn '[DEPRECATION] Snail::Helpers will be removed in a future release.'
|
23
|
+
ActionView::Base.class_eval { include Snail::Helpers }
|
58
24
|
end
|
59
25
|
|
60
26
|
def self.home_country
|
61
|
-
@home_country ||=
|
27
|
+
@home_country ||= 'US'
|
62
28
|
end
|
63
29
|
|
64
30
|
def self.home_country=(val)
|
@@ -66,19 +32,46 @@ class Snail
|
|
66
32
|
end
|
67
33
|
|
68
34
|
def self.lookup_country_iso(val)
|
69
|
-
return
|
35
|
+
return if val.nil? || val.empty?
|
70
36
|
val = val.upcase
|
71
37
|
if ::Snail::Iso3166::ALPHA2[val]
|
72
38
|
val
|
73
|
-
elsif iso = ::Snail::Iso3166::ALPHA2_EXCEPTIONS[val]
|
74
|
-
iso
|
75
|
-
elsif iso = ::Snail::Iso3166::ALPHA3_TO_ALPHA2[val]
|
76
|
-
iso
|
77
39
|
else
|
78
|
-
|
40
|
+
::Snail::Iso3166::ALPHA2_EXCEPTIONS[val] || ::Snail::Iso3166::ALPHA3_TO_ALPHA2[val]
|
79
41
|
end
|
80
42
|
end
|
81
43
|
|
44
|
+
# Snail's canonical fields
|
45
|
+
attr_accessor :name
|
46
|
+
alias full_name= name=
|
47
|
+
|
48
|
+
attr_accessor :line_1
|
49
|
+
alias street= line_1=
|
50
|
+
alias street_1= line_1=
|
51
|
+
alias street1= line_1=
|
52
|
+
|
53
|
+
attr_accessor :line_2
|
54
|
+
alias street_2= line_2=
|
55
|
+
alias street2= line_2=
|
56
|
+
|
57
|
+
attr_accessor :city
|
58
|
+
alias town= city=
|
59
|
+
alias locality= city=
|
60
|
+
|
61
|
+
attr_accessor :region
|
62
|
+
alias state= region=
|
63
|
+
alias province= region=
|
64
|
+
|
65
|
+
attr_accessor :postal_code
|
66
|
+
alias zip= postal_code=
|
67
|
+
alias zip_code= postal_code=
|
68
|
+
alias postcode= postal_code=
|
69
|
+
|
70
|
+
attr_reader :country
|
71
|
+
def country=(val)
|
72
|
+
@country = Snail.lookup_country_iso(val)
|
73
|
+
end
|
74
|
+
|
82
75
|
# Where the mail is coming from.
|
83
76
|
def origin=(val)
|
84
77
|
@origin = Snail.lookup_country_iso(val)
|
@@ -90,7 +83,7 @@ class Snail
|
|
90
83
|
end
|
91
84
|
|
92
85
|
def international?
|
93
|
-
country &&
|
86
|
+
country && origin != country
|
94
87
|
end
|
95
88
|
|
96
89
|
def to_s(with_country: nil)
|
@@ -102,7 +95,9 @@ class Snail
|
|
102
95
|
line_2,
|
103
96
|
city_line,
|
104
97
|
(country_line if with_country)
|
105
|
-
]
|
98
|
+
]
|
99
|
+
.reject { |line| line.nil? || line.empty? }
|
100
|
+
.join("\n")
|
106
101
|
end
|
107
102
|
|
108
103
|
def to_html(with_country: nil)
|
@@ -123,7 +118,7 @@ class Snail
|
|
123
118
|
"#{postal_code} #{city} #{region}"
|
124
119
|
when 'BY'
|
125
120
|
"#{postal_code} #{city}-#{region}"
|
126
|
-
when 'US', 'CA', 'AU', nil,
|
121
|
+
when 'US', 'CA', 'AU', nil, ''
|
127
122
|
"#{city} #{region} #{postal_code}"
|
128
123
|
when 'IL', 'DK', 'FI', 'FR', 'DE', 'GR', 'NO', 'ES', 'SE', 'TR', 'CY', 'PT', 'MK', 'BA'
|
129
124
|
"#{postal_code} #{city}"
|
@@ -154,7 +149,7 @@ class Snail
|
|
154
149
|
when 'CZ'
|
155
150
|
"#{postal_code} #{region}\n#{city}"
|
156
151
|
else
|
157
|
-
if Kernel.const_defined?(
|
152
|
+
if Kernel.const_defined?('Rails')
|
158
153
|
Rails.logger.error "[Snail] Unknown Country: #{country}"
|
159
154
|
end
|
160
155
|
"#{city} #{region} #{postal_code}"
|
@@ -162,7 +157,7 @@ class Snail
|
|
162
157
|
end
|
163
158
|
|
164
159
|
def country_line
|
165
|
-
(translated_country(
|
160
|
+
(translated_country(origin, @country) || translated_country('US', @country))
|
166
161
|
end
|
167
162
|
|
168
163
|
def translated_country(origin, country)
|
data/lib/snail/constants.rb
CHANGED
@@ -1,268 +1,265 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
|
3
|
-
# TODO: carmen
|
4
2
|
class Snail
|
5
|
-
|
6
3
|
module Iso3166
|
7
4
|
# as of January 28, 2013
|
8
5
|
# pulled http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
9
6
|
ALPHA2 = {
|
10
|
-
'AC' => [
|
11
|
-
'AD' => [
|
12
|
-
'AE' => [
|
13
|
-
'AF' => [
|
14
|
-
'AG' => [
|
15
|
-
'AI' => [
|
16
|
-
'AL' => [
|
17
|
-
'AM' => [
|
18
|
-
'AN' => [
|
19
|
-
'AO' => [
|
20
|
-
'AQ' => [
|
21
|
-
'AR' => [
|
22
|
-
'AS' => [
|
23
|
-
'AT' => [
|
24
|
-
'AU' => [
|
25
|
-
'AW' => [
|
26
|
-
'AX' => [
|
27
|
-
'AZ' => [
|
28
|
-
'BA' => [
|
29
|
-
'BB' => [
|
30
|
-
'BD' => [
|
31
|
-
'BE' => [
|
32
|
-
'BF' => [
|
33
|
-
'BG' => [
|
34
|
-
'BH' => [
|
35
|
-
'BI' => [
|
36
|
-
'BJ' => [
|
37
|
-
'BL' => [
|
38
|
-
'BM' => [
|
39
|
-
'BN' => [
|
40
|
-
'BO' => [
|
41
|
-
'BR' => [
|
42
|
-
'BS' => [
|
43
|
-
'BT' => [
|
44
|
-
'BV' => [
|
45
|
-
'BW' => [
|
46
|
-
'BY' => [
|
47
|
-
'BZ' => [
|
48
|
-
'CA' => [
|
49
|
-
'CC' => [
|
50
|
-
'CD' => [
|
51
|
-
'CF' => [
|
52
|
-
'CG' => [
|
53
|
-
'CH' => [
|
54
|
-
'CI' => ["COTE D'IVOIRE", "CÔTE D'IVOIRE",
|
55
|
-
'CK' => [
|
56
|
-
'CL' => [
|
57
|
-
'CM' => [
|
58
|
-
'CN' => [
|
59
|
-
'CO' => [
|
60
|
-
'CP' => [
|
61
|
-
'CR' => [
|
62
|
-
'CU' => [
|
63
|
-
'CV' => [
|
64
|
-
'CW' => [
|
65
|
-
'CX' => [
|
66
|
-
'CY' => [
|
67
|
-
'CZ' => [
|
68
|
-
'DE' => [
|
69
|
-
'DG' => [
|
70
|
-
'DJ' => [
|
71
|
-
'DK' => [
|
72
|
-
'DM' => [
|
73
|
-
'DO' => [
|
74
|
-
'DZ' => [
|
75
|
-
'EA' => [
|
76
|
-
'EC' => [
|
77
|
-
'EE' => [
|
78
|
-
'EG' => [
|
79
|
-
'EH' => [
|
80
|
-
'ER' => [
|
81
|
-
'ES' => [
|
82
|
-
'ET' => [
|
83
|
-
'EU' => [
|
84
|
-
'FI' => [
|
85
|
-
'FJ' => [
|
86
|
-
'FK' => [
|
87
|
-
'FM' => [
|
88
|
-
'FO' => [
|
89
|
-
'FR' => [
|
90
|
-
'GA' => [
|
91
|
-
'GB' => [
|
92
|
-
'GD' => [
|
93
|
-
'GE' => [
|
94
|
-
'GF' => [
|
95
|
-
'GG' => [
|
96
|
-
'GH' => [
|
97
|
-
'GI' => [
|
98
|
-
'GL' => [
|
99
|
-
'GM' => [
|
100
|
-
'GN' => [
|
101
|
-
'GP' => [
|
102
|
-
'GQ' => [
|
103
|
-
'GR' => [
|
104
|
-
'GS' => [
|
105
|
-
'GT' => [
|
106
|
-
'GU' => [
|
107
|
-
'GW' => [
|
108
|
-
'GY' => [
|
109
|
-
'HK' => [
|
110
|
-
'HM' => [
|
111
|
-
'HN' => [
|
112
|
-
'HR' => [
|
113
|
-
'HT' => [
|
114
|
-
'HU' => [
|
115
|
-
'IC' => [
|
116
|
-
'ID' => [
|
117
|
-
'IE' => [
|
118
|
-
'IL' => [
|
119
|
-
'IM' => [
|
120
|
-
'IN' => [
|
121
|
-
'IO' => [
|
122
|
-
'IQ' => [
|
123
|
-
'IR' => [
|
124
|
-
'IS' => [
|
125
|
-
'IT' => [
|
126
|
-
'JE' => [
|
127
|
-
'JM' => [
|
128
|
-
'JO' => [
|
129
|
-
'JP' => [
|
130
|
-
'KE' => [
|
131
|
-
'KG' => [
|
132
|
-
'KH' => [
|
133
|
-
'KI' => [
|
134
|
-
'KM' => [
|
135
|
-
'KN' => [
|
136
|
-
'KP' => [
|
137
|
-
'KR' => [
|
138
|
-
'KW' => [
|
139
|
-
'KY' => [
|
140
|
-
'KZ' => [
|
141
|
-
'LA' => [
|
142
|
-
'LB' => [
|
143
|
-
'LC' => [
|
144
|
-
'LI' => [
|
145
|
-
'LK' => [
|
146
|
-
'LR' => [
|
147
|
-
'LS' => [
|
148
|
-
'LT' => [
|
149
|
-
'LU' => [
|
150
|
-
'LV' => [
|
151
|
-
'LY' => [
|
152
|
-
'MA' => [
|
153
|
-
'MC' => [
|
154
|
-
'MD' => [
|
155
|
-
'ME' => [
|
156
|
-
'MF' => [
|
157
|
-
'MG' => [
|
158
|
-
'MH' => [
|
159
|
-
'MK' => [
|
160
|
-
'ML' => [
|
161
|
-
'MM' => [
|
162
|
-
'MN' => [
|
163
|
-
'MO' => [
|
164
|
-
'MP' => [
|
165
|
-
'MQ' => [
|
166
|
-
'MR' => [
|
167
|
-
'MS' => [
|
168
|
-
'MT' => [
|
169
|
-
'MU' => [
|
170
|
-
'MV' => [
|
171
|
-
'MW' => [
|
172
|
-
'MX' => [
|
173
|
-
'MY' => [
|
174
|
-
'MZ' => [
|
175
|
-
'NA' => [
|
176
|
-
'NC' => [
|
177
|
-
'NE' => [
|
178
|
-
'NF' => [
|
179
|
-
'NG' => [
|
180
|
-
'NI' => [
|
181
|
-
'NL' => [
|
182
|
-
'NO' => [
|
183
|
-
'NP' => [
|
184
|
-
'NR' => [
|
185
|
-
'NU' => [
|
186
|
-
'NZ' => [
|
187
|
-
'OM' => [
|
188
|
-
'PA' => [
|
189
|
-
'PE' => [
|
190
|
-
'PF' => [
|
191
|
-
'PG' => [
|
192
|
-
'PH' => [
|
193
|
-
'PK' => [
|
194
|
-
'PL' => [
|
195
|
-
'PM' => [
|
196
|
-
'PN' => [
|
197
|
-
'PR' => [
|
198
|
-
'PS' => [
|
199
|
-
'PT' => [
|
200
|
-
'PW' => [
|
201
|
-
'PY' => [
|
202
|
-
'QA' => [
|
203
|
-
'RE' => [
|
204
|
-
'RO' => [
|
205
|
-
'RS' => [
|
206
|
-
'RU' => [
|
207
|
-
'RW' => [
|
208
|
-
'SA' => [
|
209
|
-
'SB' => [
|
210
|
-
'SC' => [
|
211
|
-
'SD' => [
|
212
|
-
'SE' => [
|
213
|
-
'SG' => [
|
214
|
-
'SH' => [
|
215
|
-
'SI' => [
|
216
|
-
'SJ' => [
|
217
|
-
'SK' => [
|
218
|
-
'SL' => [
|
219
|
-
'SM' => [
|
220
|
-
'SN' => [
|
221
|
-
'SO' => [
|
222
|
-
'SR' => [
|
223
|
-
'SS' => [
|
224
|
-
'ST' => [
|
225
|
-
'SV' => [
|
226
|
-
'SY' => [
|
227
|
-
'SZ' => [
|
228
|
-
'TA' => [
|
229
|
-
'TC' => [
|
230
|
-
'TD' => [
|
231
|
-
'TF' => [
|
232
|
-
'TG' => [
|
233
|
-
'TH' => [
|
234
|
-
'TJ' => [
|
235
|
-
'TK' => [
|
236
|
-
'TL' => [
|
237
|
-
'TM' => [
|
238
|
-
'TN' => [
|
239
|
-
'TO' => [
|
240
|
-
'TR' => [
|
241
|
-
'TT' => [
|
242
|
-
'TV' => [
|
243
|
-
'TW' => [
|
244
|
-
'TZ' => [
|
245
|
-
'UA' => [
|
246
|
-
'UG' => [
|
247
|
-
'UM' => [
|
248
|
-
'US' => [
|
249
|
-
'UY' => [
|
250
|
-
'UZ' => [
|
251
|
-
'VA' => [
|
252
|
-
'VC' => [
|
253
|
-
'VE' => [
|
254
|
-
'VG' => [
|
255
|
-
'VI' => [
|
256
|
-
'VN' => [
|
257
|
-
'VU' => [
|
258
|
-
'WF' => [
|
259
|
-
'WS' => [
|
260
|
-
'XK' => [
|
261
|
-
'YE' => [
|
262
|
-
'YT' => [
|
263
|
-
'ZA' => [
|
264
|
-
'ZM' => [
|
265
|
-
'ZW' => [
|
7
|
+
'AC' => ['ASCENSION', 'ASCENSION ISLAND'],
|
8
|
+
'AD' => ['ANDORRA'],
|
9
|
+
'AE' => ['UNITED ARAB EMIRATES'],
|
10
|
+
'AF' => ['AFGHANISTAN'],
|
11
|
+
'AG' => ['ANTIGUA AND BARBUDA'],
|
12
|
+
'AI' => ['ANGUILLA'],
|
13
|
+
'AL' => ['ALBANIA'],
|
14
|
+
'AM' => ['ARMENIA'],
|
15
|
+
'AN' => ['NETHERLANDS ANTILLES'],
|
16
|
+
'AO' => ['ANGOLA'],
|
17
|
+
'AQ' => ['ANTARCTICA'],
|
18
|
+
'AR' => ['ARGENTINA'],
|
19
|
+
'AS' => ['AMERICAN SAMOA'],
|
20
|
+
'AT' => ['AUSTRIA'],
|
21
|
+
'AU' => ['AUSTRALIA'],
|
22
|
+
'AW' => ['ARUBA'],
|
23
|
+
'AX' => ['ALAND ISLANDS'],
|
24
|
+
'AZ' => ['AZERBAIJAN'],
|
25
|
+
'BA' => ['BOSNIA AND HERZEGOVINA'],
|
26
|
+
'BB' => ['BARBADOS'],
|
27
|
+
'BD' => ['BANGLADESH'],
|
28
|
+
'BE' => ['BELGIUM'],
|
29
|
+
'BF' => ['BURKINA FASO'],
|
30
|
+
'BG' => ['BULGARIA'],
|
31
|
+
'BH' => ['BAHRAIN'],
|
32
|
+
'BI' => ['BURUNDI'],
|
33
|
+
'BJ' => ['BENIN'],
|
34
|
+
'BL' => ['SAINT BARTHELEMY'],
|
35
|
+
'BM' => ['BERMUDA'],
|
36
|
+
'BN' => ['BRUNEI DARUSSALAM'],
|
37
|
+
'BO' => ['BOLIVIA'],
|
38
|
+
'BR' => ['BRAZIL'],
|
39
|
+
'BS' => ['BAHAMAS'],
|
40
|
+
'BT' => ['BHUTAN'],
|
41
|
+
'BV' => ['BOUVET ISLAND'],
|
42
|
+
'BW' => ['BOTSWANA'],
|
43
|
+
'BY' => ['BELARUS'],
|
44
|
+
'BZ' => ['BELIZE'],
|
45
|
+
'CA' => ['CANADA'],
|
46
|
+
'CC' => ['COCOS (KEELING) ISLANDS'],
|
47
|
+
'CD' => ['DEMOCRATIC REPUBLIC OF THE CONGO'],
|
48
|
+
'CF' => ['CENTRAL AFRICAN REPUBLIC'],
|
49
|
+
'CG' => ['CONGO', 'REPUBLIC OF THE CONGO'],
|
50
|
+
'CH' => ['SWITZERLAND'],
|
51
|
+
'CI' => ["COTE D'IVOIRE", "CÔTE D'IVOIRE", 'IVORY COAST', "REPUBLIC OF CÔTE D'IVOIRE"],
|
52
|
+
'CK' => ['COOK ISLANDS'],
|
53
|
+
'CL' => ['CHILE'],
|
54
|
+
'CM' => ['CAMEROON'],
|
55
|
+
'CN' => ['CHINA', "PEOPLE'S REPUBLIC OF CHINA"],
|
56
|
+
'CO' => ['COLOMBIA'],
|
57
|
+
'CP' => ['CLIPPERTON ISLAND'],
|
58
|
+
'CR' => ['COSTA RICA'],
|
59
|
+
'CU' => ['CUBA'],
|
60
|
+
'CV' => ['CAPE VERDE'],
|
61
|
+
'CW' => ['CURACAO', 'CURAçAO'],
|
62
|
+
'CX' => ['CHRISTMAS ISLAND'],
|
63
|
+
'CY' => ['CYPRUS'],
|
64
|
+
'CZ' => ['CZECH REPUBLIC'],
|
65
|
+
'DE' => ['GERMANY'],
|
66
|
+
'DG' => ['DIEGO GARCIA'],
|
67
|
+
'DJ' => ['DJIBOUTI'],
|
68
|
+
'DK' => ['DENMARK'],
|
69
|
+
'DM' => ['DOMINICA'],
|
70
|
+
'DO' => ['DOMINICAN REPUBLIC'],
|
71
|
+
'DZ' => ['ALGERIA'],
|
72
|
+
'EA' => ['CEUTA, MELILLA'],
|
73
|
+
'EC' => ['ECUADOR'],
|
74
|
+
'EE' => ['ESTONIA'],
|
75
|
+
'EG' => ['EGYPT'],
|
76
|
+
'EH' => ['WESTERN SAHARA'],
|
77
|
+
'ER' => ['ERITREA'],
|
78
|
+
'ES' => ['SPAIN'],
|
79
|
+
'ET' => ['ETHIOPIA'],
|
80
|
+
'EU' => ['EUROPEAN UNION'],
|
81
|
+
'FI' => ['FINLAND'],
|
82
|
+
'FJ' => ['FIJI'],
|
83
|
+
'FK' => ['FALKLAND ISLANDS'],
|
84
|
+
'FM' => ['MICRONESIA'],
|
85
|
+
'FO' => ['FAROE ISLANDS'],
|
86
|
+
'FR' => ['FRANCE'],
|
87
|
+
'GA' => ['GABON'],
|
88
|
+
'GB' => ['UNITED KINGDOM', 'ENGLAND', 'NORTHERN IRELAND', 'SCOTLAND', 'WALES'],
|
89
|
+
'GD' => ['GRENADA'],
|
90
|
+
'GE' => ['GEORGIA'],
|
91
|
+
'GF' => ['FRENCH GUIANA'],
|
92
|
+
'GG' => ['GUERNSEY'],
|
93
|
+
'GH' => ['GHANA'],
|
94
|
+
'GI' => ['GIBRALTAR'],
|
95
|
+
'GL' => ['GREENLAND'],
|
96
|
+
'GM' => ['GAMBIA'],
|
97
|
+
'GN' => ['GUINEA'],
|
98
|
+
'GP' => ['GUADELOUPE'],
|
99
|
+
'GQ' => ['EQUATORIAL GUINEA'],
|
100
|
+
'GR' => ['GREECE'],
|
101
|
+
'GS' => ['SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS', 'SOUTH GEORGIA', 'SOUTH SANDWICH ISLANDS'],
|
102
|
+
'GT' => ['GUATEMALA'],
|
103
|
+
'GU' => ['GUAM'],
|
104
|
+
'GW' => ['GUINEA-BISSAU'],
|
105
|
+
'GY' => ['GUYANA'],
|
106
|
+
'HK' => ['HONG KONG'],
|
107
|
+
'HM' => ['HEARD ISLAND AND MCDONALD ISLANDS'],
|
108
|
+
'HN' => ['HONDURAS'],
|
109
|
+
'HR' => ['CROATIA'],
|
110
|
+
'HT' => ['HAITI'],
|
111
|
+
'HU' => ['HUNGARY'],
|
112
|
+
'IC' => ['CANARY ISLANDS'],
|
113
|
+
'ID' => ['INDONESIA'],
|
114
|
+
'IE' => ['IRELAND'],
|
115
|
+
'IL' => ['ISRAEL'],
|
116
|
+
'IM' => ['ISLE OF MAN'],
|
117
|
+
'IN' => ['INDIA'],
|
118
|
+
'IO' => ['BRITISH INDIAN OCEAN TERRITORY'],
|
119
|
+
'IQ' => ['IRAQ'],
|
120
|
+
'IR' => ['IRAN', 'ISLAMIC REPUBLIC OF IRAN'],
|
121
|
+
'IS' => ['ICELAND'],
|
122
|
+
'IT' => ['ITALY'],
|
123
|
+
'JE' => ['JERSEY'],
|
124
|
+
'JM' => ['JAMAICA'],
|
125
|
+
'JO' => ['JORDAN'],
|
126
|
+
'JP' => ['JAPAN'],
|
127
|
+
'KE' => ['KENYA'],
|
128
|
+
'KG' => ['KYRGYZSTAN'],
|
129
|
+
'KH' => ['CAMBODIA'],
|
130
|
+
'KI' => ['KIRIBATI'],
|
131
|
+
'KM' => ['COMOROS'],
|
132
|
+
'KN' => ['SAINT KITTS AND NEVIS'],
|
133
|
+
'KP' => ['NORTH KOREA', "DEMOCRATIC PEOPLE'S REPUBLIC OF KOREA"],
|
134
|
+
'KR' => ['SOUTH KOREA', 'KOREA', 'REPUBLIC OF KOREA'],
|
135
|
+
'KW' => ['KUWAIT'],
|
136
|
+
'KY' => ['CAYMAN ISLANDS'],
|
137
|
+
'KZ' => ['KAZAKHSTAN'],
|
138
|
+
'LA' => ['LAOS'],
|
139
|
+
'LB' => ['LEBANON'],
|
140
|
+
'LC' => ['SAINT LUCIA'],
|
141
|
+
'LI' => ['LIECHTENSTEIN'],
|
142
|
+
'LK' => ['SRI LANKA'],
|
143
|
+
'LR' => ['LIBERIA'],
|
144
|
+
'LS' => ['LESOTHO'],
|
145
|
+
'LT' => ['LITHUANIA'],
|
146
|
+
'LU' => ['LUXEMBOURG'],
|
147
|
+
'LV' => ['LATVIA'],
|
148
|
+
'LY' => ['LIBYA', 'STATE OF LIBYA', 'LIBYAN ARAB JAMAHIRIYA'],
|
149
|
+
'MA' => ['MOROCCO'],
|
150
|
+
'MC' => ['MONACO'],
|
151
|
+
'MD' => ['MOLDOVA'],
|
152
|
+
'ME' => ['MONTENEGRO'],
|
153
|
+
'MF' => ['SAINT MARTIN'],
|
154
|
+
'MG' => ['MADAGASCAR'],
|
155
|
+
'MH' => ['MARSHALL ISLANDS'],
|
156
|
+
'MK' => ['MACEDONIA'],
|
157
|
+
'ML' => ['MALI'],
|
158
|
+
'MM' => ['MYANMAR'],
|
159
|
+
'MN' => ['MONGOLIA'],
|
160
|
+
'MO' => ['MACAO'],
|
161
|
+
'MP' => ['NORTHERN MARIANA ISLANDS'],
|
162
|
+
'MQ' => ['MARTINIQUE'],
|
163
|
+
'MR' => ['MAURITANIA'],
|
164
|
+
'MS' => ['MONTSERRAT'],
|
165
|
+
'MT' => ['MALTA'],
|
166
|
+
'MU' => ['MAURITIUS'],
|
167
|
+
'MV' => ['MALDIVES'],
|
168
|
+
'MW' => ['MALAWI'],
|
169
|
+
'MX' => ['MEXICO'],
|
170
|
+
'MY' => ['MALAYSIA'],
|
171
|
+
'MZ' => ['MOZAMBIQUE'],
|
172
|
+
'NA' => ['NAMIBIA'],
|
173
|
+
'NC' => ['NEW CALEDONIA'],
|
174
|
+
'NE' => ['NIGER'],
|
175
|
+
'NF' => ['NORFOLK ISLAND'],
|
176
|
+
'NG' => ['NIGERIA'],
|
177
|
+
'NI' => ['NICARAGUA'],
|
178
|
+
'NL' => ['NETHERLANDS'],
|
179
|
+
'NO' => ['NORWAY'],
|
180
|
+
'NP' => ['NEPAL'],
|
181
|
+
'NR' => ['NAURU'],
|
182
|
+
'NU' => ['NIUE'],
|
183
|
+
'NZ' => ['NEW ZEALAND'],
|
184
|
+
'OM' => ['OMAN'],
|
185
|
+
'PA' => ['PANAMA'],
|
186
|
+
'PE' => ['PERU'],
|
187
|
+
'PF' => ['FRENCH POLYNESIA'],
|
188
|
+
'PG' => ['PAPUA NEW GUINEA'],
|
189
|
+
'PH' => ['PHILIPPINES'],
|
190
|
+
'PK' => ['PAKISTAN'],
|
191
|
+
'PL' => ['POLAND'],
|
192
|
+
'PM' => ['SAINT PIERRE AND MIQUELON'],
|
193
|
+
'PN' => ['PITCAIRN', 'PITCAIRN ISLAND', 'PITCAIRN ISLANDS'],
|
194
|
+
'PR' => ['PUERTO RICO'],
|
195
|
+
'PS' => ['PALESTINIAN TERRITORIES', 'PALESTINIAN TERRITORY', 'OCCUPIED PALESTINIAN TERRITORIES'],
|
196
|
+
'PT' => ['PORTUGAL'],
|
197
|
+
'PW' => ['PALAU'],
|
198
|
+
'PY' => ['PARAGUAY'],
|
199
|
+
'QA' => ['QATAR'],
|
200
|
+
'RE' => ['REUNION'],
|
201
|
+
'RO' => ['ROMANIA'],
|
202
|
+
'RS' => ['SERBIA'],
|
203
|
+
'RU' => ['RUSSIAN FEDERATION', 'RUSSIA'],
|
204
|
+
'RW' => ['RWANDA'],
|
205
|
+
'SA' => ['SAUDI ARABIA'],
|
206
|
+
'SB' => ['SOLOMON ISLANDS'],
|
207
|
+
'SC' => ['SEYCHELLES'],
|
208
|
+
'SD' => ['SUDAN'],
|
209
|
+
'SE' => ['SWEDEN'],
|
210
|
+
'SG' => ['SINGAPORE'],
|
211
|
+
'SH' => ['SAINT HELENA'],
|
212
|
+
'SI' => ['SLOVENIA'],
|
213
|
+
'SJ' => ['SVALBARD AND JAN MAYEN'],
|
214
|
+
'SK' => ['SLOVAKIA', 'SLOVAK REPUBLIC'],
|
215
|
+
'SL' => ['SIERRA LEONE'],
|
216
|
+
'SM' => ['SAN MARINO'],
|
217
|
+
'SN' => ['SENEGAL'],
|
218
|
+
'SO' => ['SOMALIA'],
|
219
|
+
'SR' => ['SURINAME'],
|
220
|
+
'SS' => ['SOUTH SUDAN'],
|
221
|
+
'ST' => ['SAO TOME AND PRINCIPE'],
|
222
|
+
'SV' => ['EL SALVADOR'],
|
223
|
+
'SY' => ['SYRIAN ARAB REPUBLIC', 'SYRIA'],
|
224
|
+
'SZ' => ['SWAZILAND'],
|
225
|
+
'TA' => ['TRISTAN DA CUNHA'],
|
226
|
+
'TC' => ['TURKS AND CAICOS ISLANDS'],
|
227
|
+
'TD' => ['CHAD'],
|
228
|
+
'TF' => ['FRENCH SOUTHERN TERRITORIES'],
|
229
|
+
'TG' => ['TOGO'],
|
230
|
+
'TH' => ['THAILAND'],
|
231
|
+
'TJ' => ['TAJIKISTAN'],
|
232
|
+
'TK' => ['TOKELAU'],
|
233
|
+
'TL' => ['TIMOR-LESTE', 'EAST TIMOR', 'DEMOCRATIC REPUBLIC OF TIMOR-LESTE'],
|
234
|
+
'TM' => ['TURKMENISTAN'],
|
235
|
+
'TN' => ['TUNISIA'],
|
236
|
+
'TO' => ['TONGA'],
|
237
|
+
'TR' => ['TURKEY'],
|
238
|
+
'TT' => ['TRINIDAD AND TOBAGO'],
|
239
|
+
'TV' => ['TUVALU'],
|
240
|
+
'TW' => ['TAIWAN'],
|
241
|
+
'TZ' => ['TANZANIA'],
|
242
|
+
'UA' => ['UKRAINE'],
|
243
|
+
'UG' => ['UGANDA'],
|
244
|
+
'UM' => ['UNITED STATES MINOR OUTLYING ISLANDS'],
|
245
|
+
'US' => ['UNITED STATES', 'UNITED STATES OF AMERICA'],
|
246
|
+
'UY' => ['URUGUAY'],
|
247
|
+
'UZ' => ['UZBEKISTAN'],
|
248
|
+
'VA' => ['VATICAN CITY'],
|
249
|
+
'VC' => ['SAINT VINCENT AND THE GRENADINES'],
|
250
|
+
'VE' => ['VENEZUELA'],
|
251
|
+
'VG' => ['VIRGIN ISLANDS, BRITISH', 'BRITISH VIRGIN ISLANDS'],
|
252
|
+
'VI' => ['VIRGIN ISLANDS, U.S.'],
|
253
|
+
'VN' => ['VIET NAM', 'VIETNAM', 'SOCIALIST REPUBLIC OF VIETNAM'],
|
254
|
+
'VU' => ['VANUATU'],
|
255
|
+
'WF' => ['WALLIS AND FUTUNA', 'WALLIS AND FUTUNA ISLANDS'],
|
256
|
+
'WS' => ['SAMOA', 'INDEPENDENT STATE OF SAMOA', 'WESTERN SAMOA'],
|
257
|
+
'XK' => ['KOSOVO'],
|
258
|
+
'YE' => ['YEMEN'],
|
259
|
+
'YT' => ['MAYOTTE'],
|
260
|
+
'ZA' => ['SOUTH AFRICA'],
|
261
|
+
'ZM' => ['ZAMBIA'],
|
262
|
+
'ZW' => ['ZIMBABWE']
|
266
263
|
}
|
267
264
|
|
268
265
|
ALPHA2_EXCEPTIONS = {
|
@@ -272,254 +269,253 @@ class Snail
|
|
272
269
|
}
|
273
270
|
|
274
271
|
ALPHA3_TO_ALPHA2 = {
|
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
|
-
|
272
|
+
'ABW' => 'AW',
|
273
|
+
'AFG' => 'AF',
|
274
|
+
'AGO' => 'AO',
|
275
|
+
'AIA' => 'AI',
|
276
|
+
'ALA' => 'AX',
|
277
|
+
'ALB' => 'AL',
|
278
|
+
'AND' => 'AD',
|
279
|
+
'ANT' => 'AN',
|
280
|
+
'ARE' => 'AE',
|
281
|
+
'ARG' => 'AR',
|
282
|
+
'ARM' => 'AM',
|
283
|
+
'ASM' => 'AS',
|
284
|
+
'ATA' => 'AQ',
|
285
|
+
'ATF' => 'TF',
|
286
|
+
'ATG' => 'AG',
|
287
|
+
'AUS' => 'AU',
|
288
|
+
'AUT' => 'AT',
|
289
|
+
'AZE' => 'AZ',
|
290
|
+
'BDI' => 'BI',
|
291
|
+
'BEL' => 'BE',
|
292
|
+
'BEN' => 'BJ',
|
293
|
+
'BFA' => 'BF',
|
294
|
+
'BGD' => 'BD',
|
295
|
+
'BGR' => 'BG',
|
296
|
+
'BHR' => 'BH',
|
297
|
+
'BHS' => 'BS',
|
298
|
+
'BIH' => 'BA',
|
299
|
+
'BLM' => 'BL',
|
300
|
+
'BLR' => 'BY',
|
301
|
+
'BLZ' => 'BZ',
|
302
|
+
'BMU' => 'BM',
|
303
|
+
'BOL' => 'BO',
|
304
|
+
'BRA' => 'BR',
|
305
|
+
'BRB' => 'BB',
|
306
|
+
'BRN' => 'BN',
|
307
|
+
'BTN' => 'BT',
|
308
|
+
'BVT' => 'BV',
|
309
|
+
'BWA' => 'BW',
|
310
|
+
'CAF' => 'CF',
|
311
|
+
'CAN' => 'CA',
|
312
|
+
'CCK' => 'CC',
|
313
|
+
'CHE' => 'CH',
|
314
|
+
'CHL' => 'CL',
|
315
|
+
'CHN' => 'CN',
|
316
|
+
'CIV' => 'CI',
|
317
|
+
'CMR' => 'CM',
|
318
|
+
'COD' => 'CD',
|
319
|
+
'COG' => 'CG',
|
320
|
+
'COK' => 'CK',
|
321
|
+
'COL' => 'CO',
|
322
|
+
'COM' => 'KM',
|
323
|
+
'CPV' => 'CV',
|
324
|
+
'CRI' => 'CR',
|
325
|
+
'CUB' => 'CU',
|
326
|
+
'CXR' => 'CX',
|
327
|
+
'CYM' => 'KY',
|
328
|
+
'CYP' => 'CY',
|
329
|
+
'CZE' => 'CZ',
|
330
|
+
'DEU' => 'DE',
|
331
|
+
'DJI' => 'DJ',
|
332
|
+
'DMA' => 'DM',
|
333
|
+
'DNK' => 'DK',
|
334
|
+
'DOM' => 'DO',
|
335
|
+
'DZA' => 'DZ',
|
336
|
+
'ECU' => 'EC',
|
337
|
+
'EGY' => 'EG',
|
338
|
+
'ERI' => 'ER',
|
339
|
+
'ESH' => 'EH',
|
340
|
+
'ESP' => 'ES',
|
341
|
+
'EST' => 'EE',
|
342
|
+
'ETH' => 'ET',
|
343
|
+
'FIN' => 'FI',
|
344
|
+
'FJI' => 'FJ',
|
345
|
+
'FLK' => 'FK',
|
346
|
+
'FRA' => 'FR',
|
347
|
+
'FRO' => 'FO',
|
348
|
+
'FSM' => 'FM',
|
349
|
+
'GAB' => 'GA',
|
350
|
+
'GBR' => 'GB',
|
351
|
+
'GEO' => 'GE',
|
352
|
+
'GGY' => 'GG',
|
353
|
+
'GHA' => 'GH',
|
354
|
+
'GIB' => 'GI',
|
355
|
+
'GIN' => 'GN',
|
356
|
+
'GLP' => 'GP',
|
357
|
+
'GMB' => 'GM',
|
358
|
+
'GNB' => 'GW',
|
359
|
+
'GNQ' => 'GQ',
|
360
|
+
'GRC' => 'GR',
|
361
|
+
'GRD' => 'GD',
|
362
|
+
'GRL' => 'GL',
|
363
|
+
'GTM' => 'GT',
|
364
|
+
'GUF' => 'GF',
|
365
|
+
'GUM' => 'GU',
|
366
|
+
'GUY' => 'GY',
|
367
|
+
'HKG' => 'HK',
|
368
|
+
'HMD' => 'HM',
|
369
|
+
'HND' => 'HN',
|
370
|
+
'HRV' => 'HR',
|
371
|
+
'HTI' => 'HT',
|
372
|
+
'HUN' => 'HU',
|
373
|
+
'IDN' => 'ID',
|
374
|
+
'IMN' => 'IM',
|
375
|
+
'IND' => 'IN',
|
376
|
+
'IOT' => 'IO',
|
377
|
+
'IRL' => 'IE',
|
378
|
+
'IRN' => 'IR',
|
379
|
+
'IRQ' => 'IQ',
|
380
|
+
'ISL' => 'IS',
|
381
|
+
'ISR' => 'IL',
|
382
|
+
'ITA' => 'IT',
|
383
|
+
'JAM' => 'JM',
|
384
|
+
'JEY' => 'JE',
|
385
|
+
'JOR' => 'JO',
|
386
|
+
'JPN' => 'JP',
|
387
|
+
'KAZ' => 'KZ',
|
388
|
+
'KEN' => 'KE',
|
389
|
+
'KGZ' => 'KG',
|
390
|
+
'KHM' => 'KH',
|
391
|
+
'KIR' => 'KI',
|
392
|
+
'KNA' => 'KN',
|
393
|
+
'KOR' => 'KR',
|
394
|
+
'KWT' => 'KW',
|
395
|
+
'LAO' => 'LA',
|
396
|
+
'LBN' => 'LB',
|
397
|
+
'LBR' => 'LR',
|
398
|
+
'LBY' => 'LY',
|
399
|
+
'LCA' => 'LC',
|
400
|
+
'LIE' => 'LI',
|
401
|
+
'LKA' => 'LK',
|
402
|
+
'LSO' => 'LS',
|
403
|
+
'LTU' => 'LT',
|
404
|
+
'LUX' => 'LU',
|
405
|
+
'LVA' => 'LV',
|
406
|
+
'MAC' => 'MO',
|
407
|
+
'MAF' => 'MF',
|
408
|
+
'MAR' => 'MA',
|
409
|
+
'MCO' => 'MC',
|
410
|
+
'MDA' => 'MD',
|
411
|
+
'MDG' => 'MG',
|
412
|
+
'MDV' => 'MV',
|
413
|
+
'MEX' => 'MX',
|
414
|
+
'MHL' => 'MH',
|
415
|
+
'MKD' => 'MK',
|
416
|
+
'MLI' => 'ML',
|
417
|
+
'MLT' => 'MT',
|
418
|
+
'MMR' => 'MM',
|
419
|
+
'MNE' => 'ME',
|
420
|
+
'MNG' => 'MN',
|
421
|
+
'MNP' => 'MP',
|
422
|
+
'MOZ' => 'MZ',
|
423
|
+
'MRT' => 'MR',
|
424
|
+
'MSR' => 'MS',
|
425
|
+
'MTQ' => 'MQ',
|
426
|
+
'MUS' => 'MU',
|
427
|
+
'MWI' => 'MW',
|
428
|
+
'MYS' => 'MY',
|
429
|
+
'MYT' => 'YT',
|
430
|
+
'NAM' => 'NA',
|
431
|
+
'NCL' => 'NC',
|
432
|
+
'NER' => 'NE',
|
433
|
+
'NFK' => 'NF',
|
434
|
+
'NGA' => 'NG',
|
435
|
+
'NIC' => 'NI',
|
436
|
+
'NIU' => 'NU',
|
437
|
+
'NLD' => 'NL',
|
438
|
+
'NOR' => 'NO',
|
439
|
+
'NPL' => 'NP',
|
440
|
+
'NRU' => 'NR',
|
441
|
+
'NZL' => 'NZ',
|
442
|
+
'OMN' => 'OM',
|
443
|
+
'PAK' => 'PK',
|
444
|
+
'PAN' => 'PA',
|
445
|
+
'PCN' => 'PN',
|
446
|
+
'PER' => 'PE',
|
447
|
+
'PHL' => 'PH',
|
448
|
+
'PLW' => 'PW',
|
449
|
+
'PNG' => 'PG',
|
450
|
+
'POL' => 'PL',
|
451
|
+
'PRI' => 'PR',
|
452
|
+
'PRK' => 'KP',
|
453
|
+
'PRT' => 'PT',
|
454
|
+
'PRY' => 'PY',
|
455
|
+
'PSE' => 'PS',
|
456
|
+
'PYF' => 'PF',
|
457
|
+
'QAT' => 'QA',
|
458
|
+
'REU' => 'RE',
|
459
|
+
'ROU' => 'RO',
|
460
|
+
'RUS' => 'RU',
|
461
|
+
'RWA' => 'RW',
|
462
|
+
'SAU' => 'SA',
|
463
|
+
'SDN' => 'SD',
|
464
|
+
'SEN' => 'SN',
|
465
|
+
'SGP' => 'SG',
|
466
|
+
'SGS' => 'GS',
|
467
|
+
'SHN' => 'SH',
|
468
|
+
'SJM' => 'SJ',
|
469
|
+
'SLB' => 'SB',
|
470
|
+
'SLE' => 'SL',
|
471
|
+
'SLV' => 'SV',
|
472
|
+
'SMR' => 'SM',
|
473
|
+
'SOM' => 'SO',
|
474
|
+
'SPM' => 'PM',
|
475
|
+
'SRB' => 'RS',
|
476
|
+
'SSD' => 'SS',
|
477
|
+
'STP' => 'ST',
|
478
|
+
'SUR' => 'SR',
|
479
|
+
'SVK' => 'SK',
|
480
|
+
'SVN' => 'SI',
|
481
|
+
'SWE' => 'SE',
|
482
|
+
'SWZ' => 'SZ',
|
483
|
+
'SYC' => 'SC',
|
484
|
+
'SYR' => 'SY',
|
485
|
+
'TCA' => 'TC',
|
486
|
+
'TCD' => 'TD',
|
487
|
+
'TGO' => 'TG',
|
488
|
+
'THA' => 'TH',
|
489
|
+
'TJK' => 'TJ',
|
490
|
+
'TKL' => 'TK',
|
491
|
+
'TKM' => 'TM',
|
492
|
+
'TLS' => 'TL',
|
493
|
+
'TON' => 'TO',
|
494
|
+
'TTO' => 'TT',
|
495
|
+
'TUN' => 'TN',
|
496
|
+
'TUR' => 'TR',
|
497
|
+
'TUV' => 'TV',
|
498
|
+
'TWN' => 'TW',
|
499
|
+
'TZA' => 'TZ',
|
500
|
+
'UGA' => 'UG',
|
501
|
+
'UKR' => 'UA',
|
502
|
+
'UMI' => 'UM',
|
503
|
+
'URY' => 'UY',
|
504
|
+
'USA' => 'US',
|
505
|
+
'UZB' => 'UZ',
|
506
|
+
'VAT' => 'VA',
|
507
|
+
'VCT' => 'VC',
|
508
|
+
'VEN' => 'VE',
|
509
|
+
'VGB' => 'VG',
|
510
|
+
'VIR' => 'VI',
|
511
|
+
'VNM' => 'VN',
|
512
|
+
'VUT' => 'VU',
|
513
|
+
'WLF' => 'WF',
|
514
|
+
'WSM' => 'WS',
|
515
|
+
'YEM' => 'YE',
|
516
|
+
'ZAF' => 'ZA',
|
517
|
+
'ZMB' => 'ZM',
|
518
|
+
'ZWE' => 'ZW'
|
522
519
|
}
|
523
520
|
end
|
524
|
-
|
525
521
|
end
|