@mailwoman/codex 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/country/codes.d.ts +528 -0
- package/out/country/codes.d.ts.map +1 -0
- package/out/country/codes.js +520 -0
- package/out/country/codes.js.map +1 -0
- package/out/country/country.d.ts +65 -0
- package/out/country/country.d.ts.map +1 -0
- package/out/country/country.js +91 -0
- package/out/country/country.js.map +1 -0
- package/out/country/index.d.ts +11 -0
- package/out/country/index.d.ts.map +1 -0
- package/out/country/index.js +11 -0
- package/out/country/index.js.map +1 -0
- package/out/country/names.d.ts +23 -0
- package/out/country/names.d.ts.map +1 -0
- package/out/country/names.js +264 -0
- package/out/country/names.js.map +1 -0
- package/out/us/index.d.ts +2 -0
- package/out/us/index.d.ts.map +1 -1
- package/out/us/index.js +2 -0
- package/out/us/index.js.map +1 -1
- package/out/us/po-box.d.ts +46 -0
- package/out/us/po-box.d.ts.map +1 -0
- package/out/us/po-box.js +66 -0
- package/out/us/po-box.js.map +1 -0
- package/out/us/state.d.ts +66 -0
- package/out/us/state.d.ts.map +1 -1
- package/out/us/state.js +66 -0
- package/out/us/state.js.map +1 -1
- package/out/us/street-directional.d.ts +102 -0
- package/out/us/street-directional.d.ts.map +1 -0
- package/out/us/street-directional.js +159 -0
- package/out/us/street-directional.js.map +1 -0
- package/out/us/street-suffix.d.ts +1 -6
- package/out/us/street-suffix.d.ts.map +1 -1
- package/out/us/street-suffix.js +1 -9
- package/out/us/street-suffix.js.map +1 -1
- package/out/us/zipcode.d.ts +0 -5
- package/out/us/zipcode.d.ts.map +1 -1
- package/out/us/zipcode.js +0 -5
- package/out/us/zipcode.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software (ISO 3166-1 data salvaged from isp-nexus)
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @category Country
|
|
8
|
+
* @title Country ISO 3166-1 Alpha-2 code
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export var CountryISO2;
|
|
12
|
+
(function (CountryISO2) {
|
|
13
|
+
CountryISO2["Afghanistan"] = "AF";
|
|
14
|
+
CountryISO2["Albania"] = "AL";
|
|
15
|
+
CountryISO2["Algeria"] = "DZ";
|
|
16
|
+
CountryISO2["American Samoa"] = "AS";
|
|
17
|
+
CountryISO2["Andorra"] = "AD";
|
|
18
|
+
CountryISO2["Angola"] = "AO";
|
|
19
|
+
CountryISO2["Anguilla"] = "AI";
|
|
20
|
+
CountryISO2["Antarctica"] = "AQ";
|
|
21
|
+
CountryISO2["Antigua and Barbuda"] = "AG";
|
|
22
|
+
CountryISO2["Argentina"] = "AR";
|
|
23
|
+
CountryISO2["Armenia"] = "AM";
|
|
24
|
+
CountryISO2["Aruba"] = "AW";
|
|
25
|
+
CountryISO2["Australia"] = "AU";
|
|
26
|
+
CountryISO2["Austria"] = "AT";
|
|
27
|
+
CountryISO2["Azerbaijan"] = "AZ";
|
|
28
|
+
CountryISO2["Bahamas"] = "BS";
|
|
29
|
+
CountryISO2["Bahrain"] = "BH";
|
|
30
|
+
CountryISO2["Bangladesh"] = "BD";
|
|
31
|
+
CountryISO2["Barbados"] = "BB";
|
|
32
|
+
CountryISO2["Belarus"] = "BY";
|
|
33
|
+
CountryISO2["Belgium"] = "BE";
|
|
34
|
+
CountryISO2["Belize"] = "BZ";
|
|
35
|
+
CountryISO2["Benin"] = "BJ";
|
|
36
|
+
CountryISO2["Bermuda"] = "BM";
|
|
37
|
+
CountryISO2["Bhutan"] = "BT";
|
|
38
|
+
CountryISO2["Bolivia"] = "BO";
|
|
39
|
+
CountryISO2["Bonaire, Sint Eustatius and Saba"] = "BQ";
|
|
40
|
+
CountryISO2["Bosnia and Herzegovina"] = "BA";
|
|
41
|
+
CountryISO2["Botswana"] = "BW";
|
|
42
|
+
CountryISO2["Bouvet Island"] = "BV";
|
|
43
|
+
CountryISO2["Brazil"] = "BR";
|
|
44
|
+
CountryISO2["British Indian Ocean Territory"] = "IO";
|
|
45
|
+
CountryISO2["Brunei Darussalam"] = "BN";
|
|
46
|
+
CountryISO2["Bulgaria"] = "BG";
|
|
47
|
+
CountryISO2["Burkina Faso"] = "BF";
|
|
48
|
+
CountryISO2["Burundi"] = "BI";
|
|
49
|
+
CountryISO2["Cambodia"] = "KH";
|
|
50
|
+
CountryISO2["Cameroon"] = "CM";
|
|
51
|
+
CountryISO2["Canada"] = "CA";
|
|
52
|
+
CountryISO2["Cape Verde"] = "CV";
|
|
53
|
+
CountryISO2["Cayman Islands"] = "KY";
|
|
54
|
+
CountryISO2["Central African Republic"] = "CF";
|
|
55
|
+
CountryISO2["Chad"] = "TD";
|
|
56
|
+
CountryISO2["Chile"] = "CL";
|
|
57
|
+
CountryISO2["China"] = "CN";
|
|
58
|
+
CountryISO2["Christmas Island"] = "CX";
|
|
59
|
+
CountryISO2["Cocos (Keeling) Islands"] = "CC";
|
|
60
|
+
CountryISO2["Colombia"] = "CO";
|
|
61
|
+
CountryISO2["Comoros"] = "KM";
|
|
62
|
+
CountryISO2["Congo"] = "CG";
|
|
63
|
+
CountryISO2["Congo, the Democratic Republic of the"] = "CD";
|
|
64
|
+
CountryISO2["Cook Islands"] = "CK";
|
|
65
|
+
CountryISO2["Costa Rica"] = "CR";
|
|
66
|
+
CountryISO2["Cote DIvoire"] = "CI";
|
|
67
|
+
CountryISO2["Croatia"] = "HR";
|
|
68
|
+
CountryISO2["Cuba"] = "CU";
|
|
69
|
+
CountryISO2["Cura\u00E7ao"] = "CW";
|
|
70
|
+
CountryISO2["Cyprus"] = "CY";
|
|
71
|
+
CountryISO2["Czech Republic"] = "CZ";
|
|
72
|
+
CountryISO2["Denmark"] = "DK";
|
|
73
|
+
CountryISO2["Djibouti"] = "DJ";
|
|
74
|
+
CountryISO2["Dominica"] = "DM";
|
|
75
|
+
CountryISO2["Dominican Republic"] = "DO";
|
|
76
|
+
CountryISO2["Ecuador"] = "EC";
|
|
77
|
+
CountryISO2["Egypt"] = "EG";
|
|
78
|
+
CountryISO2["El Salvador"] = "SV";
|
|
79
|
+
CountryISO2["Equatorial Guinea"] = "GQ";
|
|
80
|
+
CountryISO2["Eritrea"] = "ER";
|
|
81
|
+
CountryISO2["Estonia"] = "EE";
|
|
82
|
+
CountryISO2["Ethiopia"] = "ET";
|
|
83
|
+
CountryISO2["Falkland Islands (Malvinas)"] = "FK";
|
|
84
|
+
CountryISO2["Faroe Islands"] = "FO";
|
|
85
|
+
CountryISO2["Fiji"] = "FJ";
|
|
86
|
+
CountryISO2["Finland"] = "FI";
|
|
87
|
+
CountryISO2["France"] = "FR";
|
|
88
|
+
CountryISO2["French Guiana"] = "GF";
|
|
89
|
+
CountryISO2["French Polynesia"] = "PF";
|
|
90
|
+
CountryISO2["French Southern Territories"] = "TF";
|
|
91
|
+
CountryISO2["Gabon"] = "GA";
|
|
92
|
+
CountryISO2["Gambia"] = "GM";
|
|
93
|
+
CountryISO2["Georgia"] = "GE";
|
|
94
|
+
CountryISO2["Germany"] = "DE";
|
|
95
|
+
CountryISO2["Ghana"] = "GH";
|
|
96
|
+
CountryISO2["Gibraltar"] = "GI";
|
|
97
|
+
CountryISO2["Greece"] = "GR";
|
|
98
|
+
CountryISO2["Greenland"] = "GL";
|
|
99
|
+
CountryISO2["Grenada"] = "GD";
|
|
100
|
+
CountryISO2["Guadeloupe"] = "GP";
|
|
101
|
+
CountryISO2["Guam"] = "GU";
|
|
102
|
+
CountryISO2["Guatemala"] = "GT";
|
|
103
|
+
CountryISO2["Guernsey"] = "GG";
|
|
104
|
+
CountryISO2["Guinea"] = "GN";
|
|
105
|
+
CountryISO2["Guinea-Bissau"] = "GW";
|
|
106
|
+
CountryISO2["Guyana"] = "GY";
|
|
107
|
+
CountryISO2["Haiti"] = "HT";
|
|
108
|
+
CountryISO2["Heard Island and Mcdonald Islands"] = "HM";
|
|
109
|
+
CountryISO2["Holy See (Vatican City State)"] = "VA";
|
|
110
|
+
CountryISO2["Honduras"] = "HN";
|
|
111
|
+
CountryISO2["Hong Kong"] = "HK";
|
|
112
|
+
CountryISO2["Hungary"] = "HU";
|
|
113
|
+
CountryISO2["Iceland"] = "IS";
|
|
114
|
+
CountryISO2["India"] = "IN";
|
|
115
|
+
CountryISO2["Indonesia"] = "ID";
|
|
116
|
+
CountryISO2["Iran, Islamic Republic of"] = "IR";
|
|
117
|
+
CountryISO2["Iraq"] = "IQ";
|
|
118
|
+
CountryISO2["Ireland"] = "IE";
|
|
119
|
+
CountryISO2["Isle of Man"] = "IM";
|
|
120
|
+
CountryISO2["Israel"] = "IL";
|
|
121
|
+
CountryISO2["Italy"] = "IT";
|
|
122
|
+
CountryISO2["Jamaica"] = "JM";
|
|
123
|
+
CountryISO2["Japan"] = "JP";
|
|
124
|
+
CountryISO2["Jersey"] = "JE";
|
|
125
|
+
CountryISO2["Jordan"] = "JO";
|
|
126
|
+
CountryISO2["Kazakhstan"] = "KZ";
|
|
127
|
+
CountryISO2["Kenya"] = "KE";
|
|
128
|
+
CountryISO2["Kiribati"] = "KI";
|
|
129
|
+
CountryISO2["Korea, Democratic People's Republic of"] = "KP";
|
|
130
|
+
CountryISO2["Korea, Republic of"] = "KR";
|
|
131
|
+
CountryISO2["Kuwait"] = "KW";
|
|
132
|
+
CountryISO2["Kyrgyzstan"] = "KG";
|
|
133
|
+
CountryISO2["Lao People's Democratic Republic"] = "LA";
|
|
134
|
+
CountryISO2["Latvia"] = "LV";
|
|
135
|
+
CountryISO2["Lebanon"] = "LB";
|
|
136
|
+
CountryISO2["Lesotho"] = "LS";
|
|
137
|
+
CountryISO2["Liberia"] = "LR";
|
|
138
|
+
CountryISO2["Libya"] = "LY";
|
|
139
|
+
CountryISO2["Liechtenstein"] = "LI";
|
|
140
|
+
CountryISO2["Lithuania"] = "LT";
|
|
141
|
+
CountryISO2["Luxembourg"] = "LU";
|
|
142
|
+
CountryISO2["Macao"] = "MO";
|
|
143
|
+
CountryISO2["Macedonia, the Former Yugoslav Republic of"] = "MK";
|
|
144
|
+
CountryISO2["Madagascar"] = "MG";
|
|
145
|
+
CountryISO2["Malawi"] = "MW";
|
|
146
|
+
CountryISO2["Malaysia"] = "MY";
|
|
147
|
+
CountryISO2["Maldives"] = "MV";
|
|
148
|
+
CountryISO2["Mali"] = "ML";
|
|
149
|
+
CountryISO2["Malta"] = "MT";
|
|
150
|
+
CountryISO2["Marshall Islands"] = "MH";
|
|
151
|
+
CountryISO2["Martinique"] = "MQ";
|
|
152
|
+
CountryISO2["Mauritania"] = "MR";
|
|
153
|
+
CountryISO2["Mauritius"] = "MU";
|
|
154
|
+
CountryISO2["Mayotte"] = "YT";
|
|
155
|
+
CountryISO2["Mexico"] = "MX";
|
|
156
|
+
CountryISO2["Micronesia, Federated States of"] = "FM";
|
|
157
|
+
CountryISO2["Moldova, Republic of"] = "MD";
|
|
158
|
+
CountryISO2["Monaco"] = "MC";
|
|
159
|
+
CountryISO2["Mongolia"] = "MN";
|
|
160
|
+
CountryISO2["Montenegro"] = "ME";
|
|
161
|
+
CountryISO2["Montserrat"] = "MS";
|
|
162
|
+
CountryISO2["Morocco"] = "MA";
|
|
163
|
+
CountryISO2["Mozambique"] = "MZ";
|
|
164
|
+
CountryISO2["Myanmar"] = "MM";
|
|
165
|
+
CountryISO2["Namibia"] = "NA";
|
|
166
|
+
CountryISO2["Nauru"] = "NR";
|
|
167
|
+
CountryISO2["Nepal"] = "NP";
|
|
168
|
+
CountryISO2["Netherlands"] = "NL";
|
|
169
|
+
CountryISO2["New Caledonia"] = "NC";
|
|
170
|
+
CountryISO2["New Zealand"] = "NZ";
|
|
171
|
+
CountryISO2["Nicaragua"] = "NI";
|
|
172
|
+
CountryISO2["Niger"] = "NE";
|
|
173
|
+
CountryISO2["Nigeria"] = "NG";
|
|
174
|
+
CountryISO2["Niue"] = "NU";
|
|
175
|
+
CountryISO2["Norfolk Island"] = "NF";
|
|
176
|
+
CountryISO2["Northern Mariana Islands"] = "MP";
|
|
177
|
+
CountryISO2["Norway"] = "NO";
|
|
178
|
+
CountryISO2["Oman"] = "OM";
|
|
179
|
+
CountryISO2["Pakistan"] = "PK";
|
|
180
|
+
CountryISO2["Palau"] = "PW";
|
|
181
|
+
CountryISO2["Palestine, State of"] = "PS";
|
|
182
|
+
CountryISO2["Panama"] = "PA";
|
|
183
|
+
CountryISO2["Papua New Guinea"] = "PG";
|
|
184
|
+
CountryISO2["Paraguay"] = "PY";
|
|
185
|
+
CountryISO2["Peru"] = "PE";
|
|
186
|
+
CountryISO2["Philippines"] = "PH";
|
|
187
|
+
CountryISO2["Pitcairn"] = "PN";
|
|
188
|
+
CountryISO2["Poland"] = "PL";
|
|
189
|
+
CountryISO2["Portugal"] = "PT";
|
|
190
|
+
CountryISO2["Puerto Rico"] = "PR";
|
|
191
|
+
CountryISO2["Qatar"] = "QA";
|
|
192
|
+
CountryISO2["Reunion"] = "RE";
|
|
193
|
+
CountryISO2["Romania"] = "RO";
|
|
194
|
+
CountryISO2["Russian Federation"] = "RU";
|
|
195
|
+
CountryISO2["Rwanda"] = "RW";
|
|
196
|
+
CountryISO2["Saint Barth\u00E9lemy"] = "BL";
|
|
197
|
+
CountryISO2["Saint Helena, Ascension and Tristan da Cunha"] = "SH";
|
|
198
|
+
CountryISO2["Saint Kitts and Nevis"] = "KN";
|
|
199
|
+
CountryISO2["Saint Lucia"] = "LC";
|
|
200
|
+
CountryISO2["Saint Martin (French part)"] = "MF";
|
|
201
|
+
CountryISO2["Saint Pierre and Miquelon"] = "PM";
|
|
202
|
+
CountryISO2["Saint Vincent and the Grenadines"] = "VC";
|
|
203
|
+
CountryISO2["Samoa"] = "WS";
|
|
204
|
+
CountryISO2["San Marino"] = "SM";
|
|
205
|
+
CountryISO2["Sao Tome and Principe"] = "ST";
|
|
206
|
+
CountryISO2["Saudi Arabia"] = "SA";
|
|
207
|
+
CountryISO2["Senegal"] = "SN";
|
|
208
|
+
CountryISO2["Serbia"] = "RS";
|
|
209
|
+
CountryISO2["Seychelles"] = "SC";
|
|
210
|
+
CountryISO2["Sierra Leone"] = "SL";
|
|
211
|
+
CountryISO2["Singapore"] = "SG";
|
|
212
|
+
CountryISO2["Sint Maarten (Dutch part)"] = "SX";
|
|
213
|
+
CountryISO2["Slovakia"] = "SK";
|
|
214
|
+
CountryISO2["Slovenia"] = "SI";
|
|
215
|
+
CountryISO2["Solomon Islands"] = "SB";
|
|
216
|
+
CountryISO2["Somalia"] = "SO";
|
|
217
|
+
CountryISO2["South Africa"] = "ZA";
|
|
218
|
+
CountryISO2["South Georgia and the South Sandwich Islands"] = "GS";
|
|
219
|
+
CountryISO2["South Sudan"] = "SS";
|
|
220
|
+
CountryISO2["Spain"] = "ES";
|
|
221
|
+
CountryISO2["Sri Lanka"] = "LK";
|
|
222
|
+
CountryISO2["Sudan"] = "SD";
|
|
223
|
+
CountryISO2["Suriname"] = "SR";
|
|
224
|
+
CountryISO2["Svalbard and Jan Mayen"] = "SJ";
|
|
225
|
+
CountryISO2["Swaziland"] = "SZ";
|
|
226
|
+
CountryISO2["Sweden"] = "SE";
|
|
227
|
+
CountryISO2["Switzerland"] = "CH";
|
|
228
|
+
CountryISO2["Syrian Arab Republic"] = "SY";
|
|
229
|
+
CountryISO2["Taiwan (Province of China)"] = "TW";
|
|
230
|
+
CountryISO2["Tajikistan"] = "TJ";
|
|
231
|
+
CountryISO2["Tanzania, United Republic of"] = "TZ";
|
|
232
|
+
CountryISO2["Thailand"] = "TH";
|
|
233
|
+
CountryISO2["Timor-Leste"] = "TL";
|
|
234
|
+
CountryISO2["Togo"] = "TG";
|
|
235
|
+
CountryISO2["Tokelau"] = "TK";
|
|
236
|
+
CountryISO2["Tonga"] = "TO";
|
|
237
|
+
CountryISO2["Trinidad and Tobago"] = "TT";
|
|
238
|
+
CountryISO2["Tunisia"] = "TN";
|
|
239
|
+
CountryISO2["Turkey"] = "TR";
|
|
240
|
+
CountryISO2["Turkmenistan"] = "TM";
|
|
241
|
+
CountryISO2["Turks and Caicos Islands"] = "TC";
|
|
242
|
+
CountryISO2["Tuvalu"] = "TV";
|
|
243
|
+
CountryISO2["Uganda"] = "UG";
|
|
244
|
+
CountryISO2["Ukraine"] = "UA";
|
|
245
|
+
CountryISO2["United Arab Emirates"] = "AE";
|
|
246
|
+
CountryISO2["United Kingdom"] = "GB";
|
|
247
|
+
CountryISO2["United States"] = "US";
|
|
248
|
+
CountryISO2["United States Minor Outlying Islands"] = "UM";
|
|
249
|
+
CountryISO2["Uruguay"] = "UY";
|
|
250
|
+
CountryISO2["Uzbekistan"] = "UZ";
|
|
251
|
+
CountryISO2["Vanuatu"] = "VU";
|
|
252
|
+
CountryISO2["Venezuela"] = "VE";
|
|
253
|
+
CountryISO2["Viet Nam"] = "VN";
|
|
254
|
+
CountryISO2["Virgin Islands (British)"] = "VG";
|
|
255
|
+
CountryISO2["Virgin Islands (U.S.)"] = "VI";
|
|
256
|
+
CountryISO2["Wallis and Futuna"] = "WF";
|
|
257
|
+
CountryISO2["Western Sahara"] = "EH";
|
|
258
|
+
CountryISO2["Yemen"] = "YE";
|
|
259
|
+
CountryISO2["Zambia"] = "ZM";
|
|
260
|
+
CountryISO2["Zimbabwe"] = "ZW";
|
|
261
|
+
CountryISO2["\u00C5land Islands"] = "AX";
|
|
262
|
+
})(CountryISO2 || (CountryISO2 = {}));
|
|
263
|
+
/**
|
|
264
|
+
* ISO 3166-1 alpha-3 country codes to country names.
|
|
265
|
+
*
|
|
266
|
+
* @internal
|
|
267
|
+
* @title Country ISO 3166-1 Alpha-3 Code
|
|
268
|
+
*/
|
|
269
|
+
export const Alpha3ToCountryRecord = {
|
|
270
|
+
AFG: "Afghanistan",
|
|
271
|
+
ALB: "Albania",
|
|
272
|
+
DZA: "Algeria",
|
|
273
|
+
ASM: "American Samoa",
|
|
274
|
+
AND: "Andorra",
|
|
275
|
+
AGO: "Angola",
|
|
276
|
+
AIA: "Anguilla",
|
|
277
|
+
ATA: "Antarctica",
|
|
278
|
+
ATG: "Antigua and Barbuda",
|
|
279
|
+
ARG: "Argentina",
|
|
280
|
+
ARM: "Armenia",
|
|
281
|
+
ABW: "Aruba",
|
|
282
|
+
AUS: "Australia",
|
|
283
|
+
AUT: "Austria",
|
|
284
|
+
AZE: "Azerbaijan",
|
|
285
|
+
BHS: "Bahamas",
|
|
286
|
+
BHR: "Bahrain",
|
|
287
|
+
BGD: "Bangladesh",
|
|
288
|
+
BRB: "Barbados",
|
|
289
|
+
BLR: "Belarus",
|
|
290
|
+
BEL: "Belgium",
|
|
291
|
+
BLZ: "Belize",
|
|
292
|
+
BEN: "Benin",
|
|
293
|
+
BMU: "Bermuda",
|
|
294
|
+
BTN: "Bhutan",
|
|
295
|
+
BOL: "Bolivia",
|
|
296
|
+
BES: "Bonaire, Sint Eustatius and Saba",
|
|
297
|
+
BIH: "Bosnia and Herzegovina",
|
|
298
|
+
BWA: "Botswana",
|
|
299
|
+
BVT: "Bouvet Island",
|
|
300
|
+
BRA: "Brazil",
|
|
301
|
+
IOT: "British Indian Ocean Territory",
|
|
302
|
+
BRN: "Brunei Darussalam",
|
|
303
|
+
BGR: "Bulgaria",
|
|
304
|
+
BFA: "Burkina Faso",
|
|
305
|
+
BDI: "Burundi",
|
|
306
|
+
KHM: "Cambodia",
|
|
307
|
+
CMR: "Cameroon",
|
|
308
|
+
CAN: "Canada",
|
|
309
|
+
CPV: "Cape Verde",
|
|
310
|
+
CYM: "Cayman Islands",
|
|
311
|
+
CAF: "Central African Republic",
|
|
312
|
+
TCD: "Chad",
|
|
313
|
+
CHL: "Chile",
|
|
314
|
+
CHN: "China",
|
|
315
|
+
CXR: "Christmas Island",
|
|
316
|
+
CCK: "Cocos (Keeling) Islands",
|
|
317
|
+
COL: "Colombia",
|
|
318
|
+
COM: "Comoros",
|
|
319
|
+
COG: "Congo",
|
|
320
|
+
COD: "Congo, the Democratic Republic of the",
|
|
321
|
+
COK: "Cook Islands",
|
|
322
|
+
CRI: "Costa Rica",
|
|
323
|
+
CIV: "Cote DIvoire",
|
|
324
|
+
HRV: "Croatia",
|
|
325
|
+
CUB: "Cuba",
|
|
326
|
+
CUW: "Curaçao",
|
|
327
|
+
CYP: "Cyprus",
|
|
328
|
+
CZE: "Czech Republic",
|
|
329
|
+
DNK: "Denmark",
|
|
330
|
+
DJI: "Djibouti",
|
|
331
|
+
DMA: "Dominica",
|
|
332
|
+
DOM: "Dominican Republic",
|
|
333
|
+
ECU: "Ecuador",
|
|
334
|
+
EGY: "Egypt",
|
|
335
|
+
SLV: "El Salvador",
|
|
336
|
+
GNQ: "Equatorial Guinea",
|
|
337
|
+
ERI: "Eritrea",
|
|
338
|
+
EST: "Estonia",
|
|
339
|
+
ETH: "Ethiopia",
|
|
340
|
+
FLK: "Falkland Islands (Malvinas)",
|
|
341
|
+
FRO: "Faroe Islands",
|
|
342
|
+
FJI: "Fiji",
|
|
343
|
+
FIN: "Finland",
|
|
344
|
+
FRA: "France",
|
|
345
|
+
GUF: "French Guiana",
|
|
346
|
+
PYF: "French Polynesia",
|
|
347
|
+
ATF: "French Southern Territories",
|
|
348
|
+
GAB: "Gabon",
|
|
349
|
+
GMB: "Gambia",
|
|
350
|
+
GEO: "Georgia",
|
|
351
|
+
DEU: "Germany",
|
|
352
|
+
GHA: "Ghana",
|
|
353
|
+
GIB: "Gibraltar",
|
|
354
|
+
GRC: "Greece",
|
|
355
|
+
GRL: "Greenland",
|
|
356
|
+
GRD: "Grenada",
|
|
357
|
+
GLP: "Guadeloupe",
|
|
358
|
+
GUM: "Guam",
|
|
359
|
+
GTM: "Guatemala",
|
|
360
|
+
GGY: "Guernsey",
|
|
361
|
+
GIN: "Guinea",
|
|
362
|
+
GNB: "Guinea-Bissau",
|
|
363
|
+
GUY: "Guyana",
|
|
364
|
+
HTI: "Haiti",
|
|
365
|
+
HMD: "Heard Island and Mcdonald Islands",
|
|
366
|
+
VAT: "Holy See (Vatican City State)",
|
|
367
|
+
HND: "Honduras",
|
|
368
|
+
HKG: "Hong Kong",
|
|
369
|
+
HUN: "Hungary",
|
|
370
|
+
ISL: "Iceland",
|
|
371
|
+
IND: "India",
|
|
372
|
+
IDN: "Indonesia",
|
|
373
|
+
IRN: "Iran, Islamic Republic of",
|
|
374
|
+
IRQ: "Iraq",
|
|
375
|
+
IRL: "Ireland",
|
|
376
|
+
IMN: "Isle of Man",
|
|
377
|
+
ISR: "Israel",
|
|
378
|
+
ITA: "Italy",
|
|
379
|
+
JAM: "Jamaica",
|
|
380
|
+
JPN: "Japan",
|
|
381
|
+
JEY: "Jersey",
|
|
382
|
+
JOR: "Jordan",
|
|
383
|
+
KAZ: "Kazakhstan",
|
|
384
|
+
KEN: "Kenya",
|
|
385
|
+
KIR: "Kiribati",
|
|
386
|
+
PRK: "Korea, Democratic People's Republic of",
|
|
387
|
+
KOR: "Korea, Republic of",
|
|
388
|
+
KWT: "Kuwait",
|
|
389
|
+
KGZ: "Kyrgyzstan",
|
|
390
|
+
LAO: "Lao People's Democratic Republic",
|
|
391
|
+
LVA: "Latvia",
|
|
392
|
+
LBN: "Lebanon",
|
|
393
|
+
LSO: "Lesotho",
|
|
394
|
+
LBR: "Liberia",
|
|
395
|
+
LBY: "Libya",
|
|
396
|
+
LIE: "Liechtenstein",
|
|
397
|
+
LTU: "Lithuania",
|
|
398
|
+
LUX: "Luxembourg",
|
|
399
|
+
MAC: "Macao",
|
|
400
|
+
MKD: "Macedonia, the Former Yugoslav Republic of",
|
|
401
|
+
MDG: "Madagascar",
|
|
402
|
+
MWI: "Malawi",
|
|
403
|
+
MYS: "Malaysia",
|
|
404
|
+
MDV: "Maldives",
|
|
405
|
+
MLI: "Mali",
|
|
406
|
+
MLT: "Malta",
|
|
407
|
+
MHL: "Marshall Islands",
|
|
408
|
+
MTQ: "Martinique",
|
|
409
|
+
MRT: "Mauritania",
|
|
410
|
+
MUS: "Mauritius",
|
|
411
|
+
MYT: "Mayotte",
|
|
412
|
+
MEX: "Mexico",
|
|
413
|
+
FSM: "Micronesia, Federated States of",
|
|
414
|
+
MDA: "Moldova, Republic of",
|
|
415
|
+
MCO: "Monaco",
|
|
416
|
+
MNG: "Mongolia",
|
|
417
|
+
MNE: "Montenegro",
|
|
418
|
+
MSR: "Montserrat",
|
|
419
|
+
MAR: "Morocco",
|
|
420
|
+
MOZ: "Mozambique",
|
|
421
|
+
MMR: "Myanmar",
|
|
422
|
+
NAM: "Namibia",
|
|
423
|
+
NRU: "Nauru",
|
|
424
|
+
NPL: "Nepal",
|
|
425
|
+
NLD: "Netherlands",
|
|
426
|
+
NCL: "New Caledonia",
|
|
427
|
+
NZL: "New Zealand",
|
|
428
|
+
NIC: "Nicaragua",
|
|
429
|
+
NER: "Niger",
|
|
430
|
+
NGA: "Nigeria",
|
|
431
|
+
NIU: "Niue",
|
|
432
|
+
NFK: "Norfolk Island",
|
|
433
|
+
MNP: "Northern Mariana Islands",
|
|
434
|
+
NOR: "Norway",
|
|
435
|
+
OMN: "Oman",
|
|
436
|
+
PAK: "Pakistan",
|
|
437
|
+
PLW: "Palau",
|
|
438
|
+
PSE: "Palestine, State of",
|
|
439
|
+
PAN: "Panama",
|
|
440
|
+
PNG: "Papua New Guinea",
|
|
441
|
+
PRY: "Paraguay",
|
|
442
|
+
PER: "Peru",
|
|
443
|
+
PHL: "Philippines",
|
|
444
|
+
PCN: "Pitcairn",
|
|
445
|
+
POL: "Poland",
|
|
446
|
+
PRT: "Portugal",
|
|
447
|
+
PRI: "Puerto Rico",
|
|
448
|
+
QAT: "Qatar",
|
|
449
|
+
REU: "Reunion",
|
|
450
|
+
ROM: "Romania",
|
|
451
|
+
RUS: "Russian Federation",
|
|
452
|
+
RWA: "Rwanda",
|
|
453
|
+
BLM: "Saint Barthélemy",
|
|
454
|
+
SHN: "Saint Helena, Ascension and Tristan da Cunha",
|
|
455
|
+
KNA: "Saint Kitts and Nevis",
|
|
456
|
+
LCA: "Saint Lucia",
|
|
457
|
+
MAF: "Saint Martin (French part)",
|
|
458
|
+
SPM: "Saint Pierre and Miquelon",
|
|
459
|
+
VCT: "Saint Vincent and the Grenadines",
|
|
460
|
+
WSM: "Samoa",
|
|
461
|
+
SMR: "San Marino",
|
|
462
|
+
STP: "Sao Tome and Principe",
|
|
463
|
+
SAU: "Saudi Arabia",
|
|
464
|
+
SEN: "Senegal",
|
|
465
|
+
SRB: "Serbia",
|
|
466
|
+
SYC: "Seychelles",
|
|
467
|
+
SLE: "Sierra Leone",
|
|
468
|
+
SGP: "Singapore",
|
|
469
|
+
SXM: "Sint Maarten (Dutch part)",
|
|
470
|
+
SVK: "Slovakia",
|
|
471
|
+
SVN: "Slovenia",
|
|
472
|
+
SLB: "Solomon Islands",
|
|
473
|
+
SOM: "Somalia",
|
|
474
|
+
ZAF: "South Africa",
|
|
475
|
+
SGS: "South Georgia and the South Sandwich Islands",
|
|
476
|
+
SSD: "South Sudan",
|
|
477
|
+
ESP: "Spain",
|
|
478
|
+
LKA: "Sri Lanka",
|
|
479
|
+
SDN: "Sudan",
|
|
480
|
+
SUR: "Suriname",
|
|
481
|
+
SJM: "Svalbard and Jan Mayen",
|
|
482
|
+
SWZ: "Swaziland",
|
|
483
|
+
SWE: "Sweden",
|
|
484
|
+
CHE: "Switzerland",
|
|
485
|
+
SYR: "Syrian Arab Republic",
|
|
486
|
+
TWN: "Taiwan (Province of China)",
|
|
487
|
+
TJK: "Tajikistan",
|
|
488
|
+
TZA: "Tanzania, United Republic of",
|
|
489
|
+
THA: "Thailand",
|
|
490
|
+
TLS: "Timor-Leste",
|
|
491
|
+
TGO: "Togo",
|
|
492
|
+
TKL: "Tokelau",
|
|
493
|
+
TON: "Tonga",
|
|
494
|
+
TTO: "Trinidad and Tobago",
|
|
495
|
+
TUN: "Tunisia",
|
|
496
|
+
TUR: "Turkey",
|
|
497
|
+
TKM: "Turkmenistan",
|
|
498
|
+
TCA: "Turks and Caicos Islands",
|
|
499
|
+
TUV: "Tuvalu",
|
|
500
|
+
UGA: "Uganda",
|
|
501
|
+
UKR: "Ukraine",
|
|
502
|
+
ARE: "United Arab Emirates",
|
|
503
|
+
GBR: "United Kingdom",
|
|
504
|
+
USA: "United States",
|
|
505
|
+
UMI: "United States Minor Outlying Islands",
|
|
506
|
+
URY: "Uruguay",
|
|
507
|
+
UZB: "Uzbekistan",
|
|
508
|
+
VUT: "Vanuatu",
|
|
509
|
+
VEN: "Venezuela",
|
|
510
|
+
VNM: "Viet Nam",
|
|
511
|
+
VGB: "Virgin Islands (British)",
|
|
512
|
+
VIR: "Virgin Islands (U.S.)",
|
|
513
|
+
WLF: "Wallis and Futuna",
|
|
514
|
+
ESH: "Western Sahara",
|
|
515
|
+
YEM: "Yemen",
|
|
516
|
+
ZMB: "Zambia",
|
|
517
|
+
ZWE: "Zimbabwe",
|
|
518
|
+
ALA: "Åland Islands",
|
|
519
|
+
};
|
|
520
|
+
//# sourceMappingURL=codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../../country/codes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;GAIG;AACH,MAAM,CAAN,IAAY,WA0PX;AA1PD,WAAY,WAAW;IACtB,iCAAoB,CAAA;IACpB,6BAAgB,CAAA;IAChB,6BAAgB,CAAA;IAChB,oCAAuB,CAAA;IACvB,6BAAgB,CAAA;IAChB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,yCAA4B,CAAA;IAC5B,+BAAkB,CAAA;IAClB,6BAAgB,CAAA;IAChB,2BAAc,CAAA;IACd,+BAAkB,CAAA;IAClB,6BAAgB,CAAA;IAChB,gCAAmB,CAAA;IACnB,6BAAgB,CAAA;IAChB,6BAAgB,CAAA;IAChB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,6BAAgB,CAAA;IAChB,6BAAgB,CAAA;IAChB,4BAAe,CAAA;IACf,2BAAc,CAAA;IACd,6BAAgB,CAAA;IAChB,4BAAe,CAAA;IACf,6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BAA8B;IACnC,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,aAAa;IAClB,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,OAAO;IACZ,GAAG,EAAE,qBAAqB;IAC1B,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,0BAA0B;IAC/B,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,sBAAsB;IAC3B,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,sCAAsC;IAC3C,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,0BAA0B;IAC/B,GAAG,EAAE,uBAAuB;IAC5B,GAAG,EAAE,mBAAmB;IACxB,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,OAAO;IACZ,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,eAAe;CAC2B,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* Country recognition for the `country` parity lever. The ISO 3166-1 base (names + alpha-2/alpha-3)
|
|
7
|
+
* is salvaged from isp-nexus `spatial/countries` ({@link ./names.ts}, {@link ./codes.ts}); this adds
|
|
8
|
+
* the layer ISO doesn't carry — the **surface forms** addresses actually use (endonyms + common
|
|
9
|
+
* abbreviations: "USA"/"United States"/"U.S."; "Deutschland"/"Germany"; "España"/"Spain") — plus a
|
|
10
|
+
* {@link matchCountry} resolver the corpus country-shard + parsing reuse. Same shape as the other
|
|
11
|
+
* codex matchers (street-suffix, directional, po-box).
|
|
12
|
+
*/
|
|
13
|
+
import { Alpha3ToCountryRecord, CountryISO2, type CountryISO3 } from "./codes.js";
|
|
14
|
+
import { type CountryName } from "./names.js";
|
|
15
|
+
/**
|
|
16
|
+
* Common real-address surface forms per ISO 3166-1 alpha-2, **canonical English name first** then
|
|
17
|
+
* endonym + abbreviations. Curated for the corpus locales + frequent countries (NOT a full 249-entry
|
|
18
|
+
* variant table — the ISO base below catches the canonical name/code for everything else). Forms are
|
|
19
|
+
* matched case-insensitively; the first entry is the preferred render form.
|
|
20
|
+
*/
|
|
21
|
+
export declare const COUNTRY_SURFACE_FORMS: {
|
|
22
|
+
readonly US: readonly ["United States", "USA", "US", "U.S.A.", "U.S.", "United States of America", "America"];
|
|
23
|
+
readonly DE: readonly ["Germany", "Deutschland", "DE", "GER", "Federal Republic of Germany"];
|
|
24
|
+
readonly FR: readonly ["France", "FR", "FRA", "French Republic"];
|
|
25
|
+
readonly GB: readonly ["United Kingdom", "UK", "Great Britain", "Britain", "England", "GB", "U.K."];
|
|
26
|
+
readonly ES: readonly ["Spain", "España", "Espana", "ES", "ESP"];
|
|
27
|
+
readonly IT: readonly ["Italy", "Italia", "IT", "ITA"];
|
|
28
|
+
readonly NL: readonly ["Netherlands", "Nederland", "The Netherlands", "Holland", "NL", "NLD"];
|
|
29
|
+
readonly CA: readonly ["Canada", "CA", "CAN"];
|
|
30
|
+
readonly AU: readonly ["Australia", "AU", "AUS"];
|
|
31
|
+
readonly CH: readonly ["Switzerland", "Schweiz", "Suisse", "Svizzera", "CH"];
|
|
32
|
+
readonly AT: readonly ["Austria", "Österreich", "Osterreich", "AT"];
|
|
33
|
+
readonly BE: readonly ["Belgium", "België", "Belgique", "BE"];
|
|
34
|
+
readonly IE: readonly ["Ireland", "Éire", "IE", "IRL"];
|
|
35
|
+
readonly MX: readonly ["Mexico", "México", "MX", "MEX"];
|
|
36
|
+
readonly JP: readonly ["Japan", "日本", "Nippon", "JP", "JPN"];
|
|
37
|
+
};
|
|
38
|
+
export type CountrySurfaceIso2 = keyof typeof COUNTRY_SURFACE_FORMS;
|
|
39
|
+
/** alpha-2 → canonical English name (inverted from the salvaged CountryISO2 enum). */
|
|
40
|
+
export declare const ISO2_TO_NAME: ReadonlyMap<string, CountryName>;
|
|
41
|
+
/**
|
|
42
|
+
* Any recognized country surface form / canonical name / alpha-2 / alpha-3 → alpha-2 code. Built once
|
|
43
|
+
* at module load, lowercase-keyed. Canonical names + codes from the ISO base, plus the curated
|
|
44
|
+
* surface forms (surface forms win on collision — they're the address-facing spellings).
|
|
45
|
+
*/
|
|
46
|
+
export declare const COUNTRY_LOOKUP: ReadonlyMap<string, string>;
|
|
47
|
+
/** Result of a country match: the alpha-2 code, the canonical English name, and the matched surface. */
|
|
48
|
+
export interface CountryMatch {
|
|
49
|
+
iso2: string;
|
|
50
|
+
canonical: CountryName | undefined;
|
|
51
|
+
matched: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Resolve a token (surface form, canonical name, alpha-2, or alpha-3) to a country. Case-insensitive.
|
|
55
|
+
* Returns null if unrecognized. Multi-word names ("United States", "Great Britain") must be passed as
|
|
56
|
+
* the whole phrase — the caller decides the span; this matches it.
|
|
57
|
+
*/
|
|
58
|
+
export declare function matchCountry(token: string | null | undefined): CountryMatch | null;
|
|
59
|
+
/** Case-insensitive check: is the token any recognized country form? */
|
|
60
|
+
export declare function isCountryToken(token: unknown): boolean;
|
|
61
|
+
/** The preferred render forms for an alpha-2 (canonical first), for synth shards. Empty if none curated. */
|
|
62
|
+
export declare function countrySurfaceForms(iso2: string): readonly string[];
|
|
63
|
+
export type { CountryName, CountryISO3 };
|
|
64
|
+
export { CountryISO2, Alpha3ToCountryRecord };
|
|
65
|
+
//# sourceMappingURL=country.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country.d.ts","sourceRoot":"","sources":["../../country/country.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAA;AACjF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;CAgB6B,CAAA;AAE/D,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,qBAAqB,CAAA;AAEnE,sFAAsF;AACtF,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAEzD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAkBnD,CAAA;AAEJ,wGAAwG;AACxG,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,WAAW,GAAG,SAAS,CAAA;IAClC,OAAO,EAAE,MAAM,CAAA;CACf;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,GAAG,IAAI,CAKlF;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEtD;AAED,4GAA4G;AAC5G,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAEnE;AAED,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA;AACxC,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAA"}
|