@formatjs/intl-enumerator 1.4.1 → 1.4.3
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/lib/index.js +2 -7
- package/lib/polyfill-force.js +2 -4
- package/lib/polyfill.js +4 -6
- package/lib/should-polyfill.js +1 -5
- package/lib/src/calendars.generated.js +1 -4
- package/lib/src/collations.generated.js +1 -4
- package/lib/src/currencies.generated.js +1 -4
- package/lib/src/get-supported-calendars.js +3 -7
- package/lib/src/get-supported-collations.js +3 -7
- package/lib/src/get-supported-currencies.js +3 -7
- package/lib/src/get-supported-numbering-systems.js +3 -7
- package/lib/src/get-supported-timezones.js +3 -7
- package/lib/src/get-supported-units.js +3 -7
- package/lib/src/index.js +13 -17
- package/lib/src/numbering-systems.generated.js +1 -4
- package/lib/src/timezones.generated.js +1 -4
- package/lib/src/units.generated.js +1 -4
- package/package.json +2 -2
- package/polyfill.iife.js +147 -279
package/lib/index.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.supportedValuesOf = exports.shouldPolyfill = void 0;
|
|
4
|
-
var should_polyfill_1 = require("./should-polyfill");
|
|
5
|
-
Object.defineProperty(exports, "shouldPolyfill", { enumerable: true, get: function () { return should_polyfill_1.shouldPolyfill; } });
|
|
6
|
-
var src_1 = require("./src");
|
|
7
|
-
Object.defineProperty(exports, "supportedValuesOf", { enumerable: true, get: function () { return src_1.supportedValuesOf; } });
|
|
1
|
+
export { shouldPolyfill } from './should-polyfill';
|
|
2
|
+
export { supportedValuesOf } from './src';
|
package/lib/polyfill-force.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var src_1 = require("./src");
|
|
1
|
+
import { supportedValuesOf } from './src';
|
|
4
2
|
Object.defineProperty(Intl, 'supportedValuesOf', {
|
|
5
|
-
value:
|
|
3
|
+
value: supportedValuesOf,
|
|
6
4
|
enumerable: true,
|
|
7
5
|
writable: false,
|
|
8
6
|
configurable: false,
|
package/lib/polyfill.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var src_1 = require("./src");
|
|
5
|
-
if ((0, should_polyfill_1.shouldPolyfill)()) {
|
|
1
|
+
import { shouldPolyfill } from './should-polyfill';
|
|
2
|
+
import { supportedValuesOf } from './src';
|
|
3
|
+
if (shouldPolyfill()) {
|
|
6
4
|
Object.defineProperty(Intl, 'supportedValuesOf', {
|
|
7
|
-
value:
|
|
5
|
+
value: supportedValuesOf,
|
|
8
6
|
enumerable: true,
|
|
9
7
|
writable: false,
|
|
10
8
|
configurable: false,
|
package/lib/should-polyfill.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.shouldPolyfill = void 0;
|
|
4
|
-
function shouldPolyfill() {
|
|
1
|
+
export function shouldPolyfill() {
|
|
5
2
|
return !('supportedValuesOf' in Intl);
|
|
6
3
|
}
|
|
7
|
-
exports.shouldPolyfill = shouldPolyfill;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calendars = void 0;
|
|
4
1
|
/* @generated */
|
|
5
2
|
// prettier-ignore
|
|
6
|
-
|
|
3
|
+
export var calendars = ["buddhist", "chinese", "coptic", "dangi", "ethioaa", "ethiopic", "gregory", "hebrew", "indian", "islamic", "islamic-civil", "islamic-rgsa", "islamic-tbla", "islamic-umalqura", "islamicc", "iso8601", "japanese", "persian", "roc"];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.collations = void 0;
|
|
4
1
|
/* @generated */
|
|
5
2
|
// prettier-ignore
|
|
6
|
-
|
|
3
|
+
export var collations = ["big5han", "compat", "dict", "direct", "ducet", "emoji", "eor", "gb2312", "phonebk", "phonetic", "pinyin", "reformed", "search", "searchjl", "standard", "stroke", "trad", "unihan", "zhuyin"];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.currencies = void 0;
|
|
4
1
|
/* @generated */
|
|
5
2
|
// prettier-ignore
|
|
6
|
-
|
|
3
|
+
export var currencies = ["ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AUD", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "BDT", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "BOB", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNH", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "EUR", "FIM", "FJD", "FKP", "FRF", "GBP", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HKD", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "INR", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MRU", "MTL", "MTP", "MUR", "MVP", "MVR", "MWK", "MXN", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZD", "OMR", "PAB", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLE", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "STN", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "TWD", "TZS", "UAH", "UAK", "UGS", "UGX", "USD", "USN", "USS", "UYI", "UYP", "UYU", "UYW", "UZS", "VEB", "VED", "VEF", "VES", "VND", "VNN", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "XPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"];
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSupportedCalendars = void 0;
|
|
4
|
-
var calendars_generated_1 = require("./calendars.generated");
|
|
1
|
+
import { calendars } from './calendars.generated';
|
|
5
2
|
function isSupportedCalendar(item, locale) {
|
|
6
3
|
if (locale === void 0) { locale = 'en'; }
|
|
7
4
|
try {
|
|
@@ -13,9 +10,8 @@ function isSupportedCalendar(item, locale) {
|
|
|
13
10
|
catch (_err) { }
|
|
14
11
|
return false;
|
|
15
12
|
}
|
|
16
|
-
function getSupportedCalendars(localePrefix) {
|
|
17
|
-
return
|
|
13
|
+
export function getSupportedCalendars(localePrefix) {
|
|
14
|
+
return calendars.filter(function (calendar) {
|
|
18
15
|
return isSupportedCalendar(calendar, localePrefix);
|
|
19
16
|
});
|
|
20
17
|
}
|
|
21
|
-
exports.getSupportedCalendars = getSupportedCalendars;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSupportedCollations = void 0;
|
|
4
|
-
var collations_generated_1 = require("./collations.generated");
|
|
1
|
+
import { collations } from './collations.generated';
|
|
5
2
|
function isSupported(collation, locale) {
|
|
6
3
|
if (locale === void 0) { locale = 'en'; }
|
|
7
4
|
try {
|
|
@@ -11,7 +8,6 @@ function isSupported(collation, locale) {
|
|
|
11
8
|
catch (_err) { }
|
|
12
9
|
return false;
|
|
13
10
|
}
|
|
14
|
-
function getSupportedCollations(locale) {
|
|
15
|
-
return
|
|
11
|
+
export function getSupportedCollations(locale) {
|
|
12
|
+
return collations.filter(function (collation) { return isSupported(collation, locale); });
|
|
16
13
|
}
|
|
17
|
-
exports.getSupportedCollations = getSupportedCollations;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSupportedCurrencies = void 0;
|
|
4
|
-
var currencies_generated_1 = require("./currencies.generated");
|
|
1
|
+
import { currencies } from './currencies.generated';
|
|
5
2
|
function isSupportedCurrency(currency, locale) {
|
|
6
3
|
if (locale === void 0) { locale = 'en'; }
|
|
7
4
|
try {
|
|
@@ -19,10 +16,10 @@ function isSupportedCurrency(currency, locale) {
|
|
|
19
16
|
catch (_err) { }
|
|
20
17
|
return false;
|
|
21
18
|
}
|
|
22
|
-
function getSupportedCurrencies(locale) {
|
|
19
|
+
export function getSupportedCurrencies(locale) {
|
|
23
20
|
var ATOZ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
24
21
|
var supportedCurrencies = [];
|
|
25
|
-
for (var _i = 0, currencies_1 =
|
|
22
|
+
for (var _i = 0, currencies_1 = currencies; _i < currencies_1.length; _i++) {
|
|
26
23
|
var currency = currencies_1[_i];
|
|
27
24
|
if (currency.length === 3) {
|
|
28
25
|
if (isSupportedCurrency(currency, locale)) {
|
|
@@ -42,4 +39,3 @@ function getSupportedCurrencies(locale) {
|
|
|
42
39
|
}
|
|
43
40
|
return supportedCurrencies;
|
|
44
41
|
}
|
|
45
|
-
exports.getSupportedCurrencies = getSupportedCurrencies;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSupportedNumberingSystems = void 0;
|
|
4
|
-
var numbering_systems_generated_1 = require("./numbering-systems.generated");
|
|
1
|
+
import { numberingSystemNames } from './numbering-systems.generated';
|
|
5
2
|
function isSupportedNumberingSystem(system, locale) {
|
|
6
3
|
if (locale === void 0) { locale = 'en'; }
|
|
7
4
|
try {
|
|
@@ -15,9 +12,8 @@ function isSupportedNumberingSystem(system, locale) {
|
|
|
15
12
|
catch (_err) { }
|
|
16
13
|
return false;
|
|
17
14
|
}
|
|
18
|
-
function getSupportedNumberingSystems(locale) {
|
|
19
|
-
return
|
|
15
|
+
export function getSupportedNumberingSystems(locale) {
|
|
16
|
+
return numberingSystemNames.filter(function (numberingSystemName) {
|
|
20
17
|
return isSupportedNumberingSystem(numberingSystemName, locale);
|
|
21
18
|
});
|
|
22
19
|
}
|
|
23
|
-
exports.getSupportedNumberingSystems = getSupportedNumberingSystems;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSupportedTimeZones = void 0;
|
|
4
|
-
var timezones_generated_1 = require("./timezones.generated");
|
|
1
|
+
import { timezones } from './timezones.generated';
|
|
5
2
|
function isSupported(timeZone, locale) {
|
|
6
3
|
if (locale === void 0) { locale = 'en'; }
|
|
7
4
|
try {
|
|
@@ -11,7 +8,6 @@ function isSupported(timeZone, locale) {
|
|
|
11
8
|
catch (_err) { }
|
|
12
9
|
return false;
|
|
13
10
|
}
|
|
14
|
-
function getSupportedTimeZones(locale) {
|
|
15
|
-
return
|
|
11
|
+
export function getSupportedTimeZones(locale) {
|
|
12
|
+
return timezones.filter(function (timezone) { return isSupported(timezone, locale); });
|
|
16
13
|
}
|
|
17
|
-
exports.getSupportedTimeZones = getSupportedTimeZones;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSupportedUnits = void 0;
|
|
4
|
-
var units_generated_1 = require("./units.generated");
|
|
1
|
+
import { units } from './units.generated';
|
|
5
2
|
function isSupported(unit, locale) {
|
|
6
3
|
if (locale === void 0) { locale = 'en'; }
|
|
7
4
|
try {
|
|
@@ -11,7 +8,6 @@ function isSupported(unit, locale) {
|
|
|
11
8
|
catch (_err) { }
|
|
12
9
|
return false;
|
|
13
10
|
}
|
|
14
|
-
function getSupportedUnits(locale) {
|
|
15
|
-
return
|
|
11
|
+
export function getSupportedUnits(locale) {
|
|
12
|
+
return units.filter(function (unit) { return isSupported(unit, locale); });
|
|
16
13
|
}
|
|
17
|
-
exports.getSupportedUnits = getSupportedUnits;
|
package/lib/src/index.js
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var get_supported_timezones_1 = require("./get-supported-timezones");
|
|
9
|
-
var get_supported_units_1 = require("./get-supported-units");
|
|
10
|
-
function supportedValuesOf(key, locale) {
|
|
1
|
+
import { getSupportedCalendars } from './get-supported-calendars';
|
|
2
|
+
import { getSupportedCollations } from './get-supported-collations';
|
|
3
|
+
import { getSupportedCurrencies } from './get-supported-currencies';
|
|
4
|
+
import { getSupportedNumberingSystems } from './get-supported-numbering-systems';
|
|
5
|
+
import { getSupportedTimeZones } from './get-supported-timezones';
|
|
6
|
+
import { getSupportedUnits } from './get-supported-units';
|
|
7
|
+
export function supportedValuesOf(key, locale) {
|
|
11
8
|
switch (key) {
|
|
12
9
|
case 'calendar':
|
|
13
|
-
return
|
|
10
|
+
return getSupportedCalendars(locale);
|
|
14
11
|
case 'collation':
|
|
15
|
-
return
|
|
12
|
+
return getSupportedCollations(locale);
|
|
16
13
|
case 'currency':
|
|
17
|
-
return
|
|
14
|
+
return getSupportedCurrencies(locale);
|
|
18
15
|
case 'numberingSystem':
|
|
19
|
-
return
|
|
16
|
+
return getSupportedNumberingSystems(locale);
|
|
20
17
|
case 'timeZone':
|
|
21
|
-
return
|
|
18
|
+
return getSupportedTimeZones(locale);
|
|
22
19
|
case 'unit':
|
|
23
|
-
return
|
|
20
|
+
return getSupportedUnits(locale);
|
|
24
21
|
default:
|
|
25
22
|
throw RangeError('Invalid key: ' + key);
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
|
-
exports.supportedValuesOf = supportedValuesOf;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.numberingSystemNames = void 0;
|
|
4
|
-
exports.numberingSystemNames = ["adlm", "ahom", "arab", "arabext", "armn", "armnlow", "bali", "beng", "bhks", "brah", "cakm", "cham", "cyrl", "deva", "diak", "ethi", "fullwide", "geor", "gong", "gonm", "grek", "greklow", "gujr", "guru", "hanidays", "hanidec", "hans", "hansfin", "hant", "hantfin", "hebr", "hmng", "hmnp", "java", "jpan", "jpanfin", "jpanyear", "kali", "kawi", "khmr", "knda", "lana", "lanatham", "laoo", "latn", "lepc", "limb", "mathbold", "mathdbl", "mathmono", "mathsanb", "mathsans", "mlym", "modi", "mong", "mroo", "mtei", "mymr", "mymrshan", "mymrtlng", "nagm", "newa", "nkoo", "olck", "orya", "osma", "rohg", "roman", "romanlow", "saur", "segment", "shrd", "sind", "sinh", "sora", "sund", "takr", "talu", "taml", "tamldec", "telu", "thai", "tibt", "tirh", "tnsa", "vaii", "wara", "wcho"];
|
|
1
|
+
export var numberingSystemNames = ["adlm", "ahom", "arab", "arabext", "armn", "armnlow", "bali", "beng", "bhks", "brah", "cakm", "cham", "cyrl", "deva", "diak", "ethi", "fullwide", "geor", "gong", "gonm", "grek", "greklow", "gujr", "guru", "hanidays", "hanidec", "hans", "hansfin", "hant", "hantfin", "hebr", "hmng", "hmnp", "java", "jpan", "jpanfin", "jpanyear", "kali", "kawi", "khmr", "knda", "lana", "lanatham", "laoo", "latn", "lepc", "limb", "mathbold", "mathdbl", "mathmono", "mathsanb", "mathsans", "mlym", "modi", "mong", "mroo", "mtei", "mymr", "mymrshan", "mymrtlng", "nagm", "newa", "nkoo", "olck", "orya", "osma", "rohg", "roman", "romanlow", "saur", "segment", "shrd", "sind", "sinh", "sora", "sund", "takr", "talu", "taml", "tamldec", "telu", "thai", "tibt", "tirh", "tnsa", "vaii", "wara", "wcho"];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.timezones = void 0;
|
|
4
1
|
/* @generated */
|
|
5
2
|
// prettier-ignore
|
|
6
|
-
|
|
3
|
+
export var timezones = ["Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia_Banderas", "America/Bahia", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson_Creek", "America/Dawson", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port_of_Spain", "America/Port-au-Prince", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kyiv", "Europe/Kirov", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Kanton", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis"];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.units = void 0;
|
|
4
1
|
/* @generated */
|
|
5
2
|
// prettier-ignore
|
|
6
|
-
|
|
3
|
+
export var units = ["degree", "acre", "hectare", "percent", "bit", "byte", "gigabit", "gigabyte", "kilobit", "kilobyte", "megabit", "megabyte", "petabyte", "terabit", "terabyte", "day", "hour", "millisecond", "minute", "month", "second", "week", "year", "centimeter", "foot", "inch", "kilometer", "meter", "mile-scandinavian", "mile", "millimeter", "yard", "gram", "kilogram", "ounce", "pound", "stone", "celsius", "fahrenheit", "fluid-ounce", "gallon", "liter", "milliliter"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-enumerator",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "Intl.Enumerator polyfill",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"tslib": "^2.4.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@formatjs/ecma402-abstract": "1.
|
|
30
|
+
"@formatjs/ecma402-abstract": "1.18.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/polyfill.iife.js
CHANGED
|
@@ -1,323 +1,191 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
(() => {
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
2
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/should-polyfill.js
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.shouldPolyfill = void 0;
|
|
14
|
-
function shouldPolyfill() {
|
|
15
|
-
return !("supportedValuesOf" in Intl);
|
|
16
|
-
}
|
|
17
|
-
exports.shouldPolyfill = shouldPolyfill;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
3
|
+
function shouldPolyfill() {
|
|
4
|
+
return !("supportedValuesOf" in Intl);
|
|
5
|
+
}
|
|
20
6
|
|
|
21
7
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/calendars.generated.js
|
|
22
|
-
var
|
|
23
|
-
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/calendars.generated.js"(exports) {
|
|
24
|
-
"use strict";
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.calendars = void 0;
|
|
27
|
-
exports.calendars = ["buddhist", "chinese", "coptic", "dangi", "ethioaa", "ethiopic", "gregory", "hebrew", "indian", "islamic", "islamic-civil", "islamic-rgsa", "islamic-tbla", "islamic-umalqura", "islamicc", "iso8601", "japanese", "persian", "roc"];
|
|
28
|
-
}
|
|
29
|
-
});
|
|
8
|
+
var calendars = ["buddhist", "chinese", "coptic", "dangi", "ethioaa", "ethiopic", "gregory", "hebrew", "indian", "islamic", "islamic-civil", "islamic-rgsa", "islamic-tbla", "islamic-umalqura", "islamicc", "iso8601", "japanese", "persian", "roc"];
|
|
30
9
|
|
|
31
10
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/get-supported-calendars.js
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
try {
|
|
43
|
-
var dateTimeFormat = new Intl.DateTimeFormat("".concat(locale, "-u-ca-").concat(item));
|
|
44
|
-
var options = dateTimeFormat.resolvedOptions().calendar;
|
|
45
|
-
if (item !== "gregory" || options !== "gregory")
|
|
46
|
-
return true;
|
|
47
|
-
} catch (_err) {
|
|
48
|
-
}
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
function getSupportedCalendars(localePrefix) {
|
|
52
|
-
return calendars_generated_1.calendars.filter(function(calendar) {
|
|
53
|
-
return isSupportedCalendar(calendar, localePrefix);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
exports.getSupportedCalendars = getSupportedCalendars;
|
|
11
|
+
function isSupportedCalendar(item, locale) {
|
|
12
|
+
if (locale === void 0) {
|
|
13
|
+
locale = "en";
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
var dateTimeFormat = new Intl.DateTimeFormat("".concat(locale, "-u-ca-").concat(item));
|
|
17
|
+
var options = dateTimeFormat.resolvedOptions().calendar;
|
|
18
|
+
if (item !== "gregory" || options !== "gregory")
|
|
19
|
+
return true;
|
|
20
|
+
} catch (_err) {
|
|
57
21
|
}
|
|
58
|
-
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
function getSupportedCalendars(localePrefix) {
|
|
25
|
+
return calendars.filter(function(calendar) {
|
|
26
|
+
return isSupportedCalendar(calendar, localePrefix);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
59
29
|
|
|
60
30
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/collations.generated.js
|
|
61
|
-
var
|
|
62
|
-
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/collations.generated.js"(exports) {
|
|
63
|
-
"use strict";
|
|
64
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
-
exports.collations = void 0;
|
|
66
|
-
exports.collations = ["big5han", "compat", "dict", "direct", "ducet", "emoji", "eor", "gb2312", "phonebk", "phonetic", "pinyin", "reformed", "search", "searchjl", "standard", "stroke", "trad", "unihan", "zhuyin"];
|
|
67
|
-
}
|
|
68
|
-
});
|
|
31
|
+
var collations = ["big5han", "compat", "dict", "direct", "ducet", "emoji", "eor", "gb2312", "phonebk", "phonetic", "pinyin", "reformed", "search", "searchjl", "standard", "stroke", "trad", "unihan", "zhuyin"];
|
|
69
32
|
|
|
70
33
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/get-supported-collations.js
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
-
exports.getSupportedCollations = void 0;
|
|
76
|
-
var collations_generated_1 = require_collations_generated();
|
|
77
|
-
function isSupported(collation, locale) {
|
|
78
|
-
if (locale === void 0) {
|
|
79
|
-
locale = "en";
|
|
80
|
-
}
|
|
81
|
-
try {
|
|
82
|
-
return Intl.Collator("".concat(locale, "-u-co-").concat(collation)).resolvedOptions().collation === collation;
|
|
83
|
-
} catch (_err) {
|
|
84
|
-
}
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
function getSupportedCollations(locale) {
|
|
88
|
-
return collations_generated_1.collations.filter(function(collation) {
|
|
89
|
-
return isSupported(collation, locale);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
exports.getSupportedCollations = getSupportedCollations;
|
|
34
|
+
function isSupported(collation, locale) {
|
|
35
|
+
if (locale === void 0) {
|
|
36
|
+
locale = "en";
|
|
93
37
|
}
|
|
94
|
-
|
|
38
|
+
try {
|
|
39
|
+
return Intl.Collator("".concat(locale, "-u-co-").concat(collation)).resolvedOptions().collation === collation;
|
|
40
|
+
} catch (_err) {
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
function getSupportedCollations(locale) {
|
|
45
|
+
return collations.filter(function(collation) {
|
|
46
|
+
return isSupported(collation, locale);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
95
49
|
|
|
96
50
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/currencies.generated.js
|
|
97
|
-
var
|
|
98
|
-
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/currencies.generated.js"(exports) {
|
|
99
|
-
"use strict";
|
|
100
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101
|
-
exports.currencies = void 0;
|
|
102
|
-
exports.currencies = ["ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AUD", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "BDT", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "BOB", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNH", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "EUR", "FIM", "FJD", "FKP", "FRF", "GBP", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HKD", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "INR", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MRU", "MTL", "MTP", "MUR", "MVP", "MVR", "MWK", "MXN", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZD", "OMR", "PAB", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLE", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "STN", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "TWD", "TZS", "UAH", "UAK", "UGS", "UGX", "USD", "USN", "USS", "UYI", "UYP", "UYU", "UYW", "UZS", "VEB", "VED", "VEF", "VES", "VND", "VNN", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "XPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"];
|
|
103
|
-
}
|
|
104
|
-
});
|
|
51
|
+
var currencies = ["ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AUD", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "BDT", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "BOB", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNH", "CNX", "CNY", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "EUR", "FIM", "FJD", "FKP", "FRF", "GBP", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HKD", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "INR", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MRU", "MTL", "MTP", "MUR", "MVP", "MVR", "MWK", "MXN", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZD", "OMR", "PAB", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLE", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "STN", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "TWD", "TZS", "UAH", "UAK", "UGS", "UGX", "USD", "USN", "USS", "UYI", "UYP", "UYU", "UYW", "UZS", "VEB", "VED", "VEF", "VES", "VND", "VNN", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "XPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"];
|
|
105
52
|
|
|
106
53
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/get-supported-currencies.js
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
var
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
currencyDisplay: "name",
|
|
121
|
-
currency
|
|
122
|
-
});
|
|
123
|
-
var format = numberFormat.format(123);
|
|
124
|
-
if (format.substring(0, 3) !== currency && format.substring(format.length - 3) !== currency) {
|
|
125
|
-
return true;
|
|
126
|
-
}
|
|
127
|
-
} catch (_err) {
|
|
128
|
-
}
|
|
129
|
-
return false;
|
|
54
|
+
function isSupportedCurrency(currency, locale) {
|
|
55
|
+
if (locale === void 0) {
|
|
56
|
+
locale = "en";
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
var numberFormat = new Intl.NumberFormat(locale, {
|
|
60
|
+
style: "currency",
|
|
61
|
+
currencyDisplay: "name",
|
|
62
|
+
currency
|
|
63
|
+
});
|
|
64
|
+
var format = numberFormat.format(123);
|
|
65
|
+
if (format.substring(0, 3) !== currency && format.substring(format.length - 3) !== currency) {
|
|
66
|
+
return true;
|
|
130
67
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
68
|
+
} catch (_err) {
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
function getSupportedCurrencies(locale) {
|
|
73
|
+
var ATOZ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
74
|
+
var supportedCurrencies = [];
|
|
75
|
+
for (var _i = 0, currencies_1 = currencies; _i < currencies_1.length; _i++) {
|
|
76
|
+
var currency = currencies_1[_i];
|
|
77
|
+
if (currency.length === 3) {
|
|
78
|
+
if (isSupportedCurrency(currency, locale)) {
|
|
79
|
+
supportedCurrencies.push(currency);
|
|
80
|
+
}
|
|
81
|
+
} else if (currency.length === 5 && currency[3] === "~") {
|
|
82
|
+
var start = ATOZ.indexOf(currency[2]);
|
|
83
|
+
var end = ATOZ.indexOf(currency[4]);
|
|
84
|
+
for (var i = start; i <= end; i++) {
|
|
85
|
+
var currentCurrency = currency.substring(0, 2) + ATOZ[i];
|
|
86
|
+
if (isSupportedCurrency(currentCurrency, locale)) {
|
|
87
|
+
supportedCurrencies.push(currentCurrency);
|
|
149
88
|
}
|
|
150
89
|
}
|
|
151
|
-
return supportedCurrencies;
|
|
152
90
|
}
|
|
153
|
-
exports.getSupportedCurrencies = getSupportedCurrencies;
|
|
154
91
|
}
|
|
155
|
-
|
|
92
|
+
return supportedCurrencies;
|
|
93
|
+
}
|
|
156
94
|
|
|
157
95
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/numbering-systems.generated.js
|
|
158
|
-
var
|
|
159
|
-
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/numbering-systems.generated.js"(exports) {
|
|
160
|
-
"use strict";
|
|
161
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
162
|
-
exports.numberingSystemNames = void 0;
|
|
163
|
-
exports.numberingSystemNames = ["adlm", "ahom", "arab", "arabext", "armn", "armnlow", "bali", "beng", "bhks", "brah", "cakm", "cham", "cyrl", "deva", "diak", "ethi", "fullwide", "geor", "gong", "gonm", "grek", "greklow", "gujr", "guru", "hanidays", "hanidec", "hans", "hansfin", "hant", "hantfin", "hebr", "hmng", "hmnp", "java", "jpan", "jpanfin", "jpanyear", "kali", "kawi", "khmr", "knda", "lana", "lanatham", "laoo", "latn", "lepc", "limb", "mathbold", "mathdbl", "mathmono", "mathsanb", "mathsans", "mlym", "modi", "mong", "mroo", "mtei", "mymr", "mymrshan", "mymrtlng", "nagm", "newa", "nkoo", "olck", "orya", "osma", "rohg", "roman", "romanlow", "saur", "segment", "shrd", "sind", "sinh", "sora", "sund", "takr", "talu", "taml", "tamldec", "telu", "thai", "tibt", "tirh", "tnsa", "vaii", "wara", "wcho"];
|
|
164
|
-
}
|
|
165
|
-
});
|
|
96
|
+
var numberingSystemNames = ["adlm", "ahom", "arab", "arabext", "armn", "armnlow", "bali", "beng", "bhks", "brah", "cakm", "cham", "cyrl", "deva", "diak", "ethi", "fullwide", "geor", "gong", "gonm", "grek", "greklow", "gujr", "guru", "hanidays", "hanidec", "hans", "hansfin", "hant", "hantfin", "hebr", "hmng", "hmnp", "java", "jpan", "jpanfin", "jpanyear", "kali", "kawi", "khmr", "knda", "lana", "lanatham", "laoo", "latn", "lepc", "limb", "mathbold", "mathdbl", "mathmono", "mathsanb", "mathsans", "mlym", "modi", "mong", "mroo", "mtei", "mymr", "mymrshan", "mymrtlng", "nagm", "newa", "nkoo", "olck", "orya", "osma", "rohg", "roman", "romanlow", "saur", "segment", "shrd", "sind", "sinh", "sora", "sund", "takr", "talu", "taml", "tamldec", "telu", "thai", "tibt", "tirh", "tnsa", "vaii", "wara", "wcho"];
|
|
166
97
|
|
|
167
98
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/get-supported-numbering-systems.js
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
try {
|
|
179
|
-
var numberFormat = new Intl.NumberFormat("".concat(locale, "-u-nu-").concat(system));
|
|
180
|
-
var options = numberFormat.resolvedOptions().numberingSystem;
|
|
181
|
-
if (options === system && system === "latn" || numberFormat.format(123) !== "123") {
|
|
182
|
-
return true;
|
|
183
|
-
}
|
|
184
|
-
} catch (_err) {
|
|
185
|
-
}
|
|
186
|
-
return false;
|
|
187
|
-
}
|
|
188
|
-
function getSupportedNumberingSystems(locale) {
|
|
189
|
-
return numbering_systems_generated_1.numberingSystemNames.filter(function(numberingSystemName) {
|
|
190
|
-
return isSupportedNumberingSystem(numberingSystemName, locale);
|
|
191
|
-
});
|
|
99
|
+
function isSupportedNumberingSystem(system, locale) {
|
|
100
|
+
if (locale === void 0) {
|
|
101
|
+
locale = "en";
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
var numberFormat = new Intl.NumberFormat("".concat(locale, "-u-nu-").concat(system));
|
|
105
|
+
var options = numberFormat.resolvedOptions().numberingSystem;
|
|
106
|
+
if (options === system && system === "latn" || numberFormat.format(123) !== "123") {
|
|
107
|
+
return true;
|
|
192
108
|
}
|
|
193
|
-
|
|
109
|
+
} catch (_err) {
|
|
194
110
|
}
|
|
195
|
-
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
function getSupportedNumberingSystems(locale) {
|
|
114
|
+
return numberingSystemNames.filter(function(numberingSystemName) {
|
|
115
|
+
return isSupportedNumberingSystem(numberingSystemName, locale);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
196
118
|
|
|
197
119
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/timezones.generated.js
|
|
198
|
-
var
|
|
199
|
-
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/timezones.generated.js"(exports) {
|
|
200
|
-
"use strict";
|
|
201
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
202
|
-
exports.timezones = void 0;
|
|
203
|
-
exports.timezones = ["Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia_Banderas", "America/Bahia", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson_Creek", "America/Dawson", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port_of_Spain", "America/Port-au-Prince", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kyiv", "Europe/Kirov", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Kanton", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis"];
|
|
204
|
-
}
|
|
205
|
-
});
|
|
120
|
+
var timezones = ["Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia_Banderas", "America/Bahia", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson_Creek", "America/Dawson", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port_of_Spain", "America/Port-au-Prince", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kyiv", "Europe/Kirov", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Kanton", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis"];
|
|
206
121
|
|
|
207
122
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/get-supported-timezones.js
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
212
|
-
exports.getSupportedTimeZones = void 0;
|
|
213
|
-
var timezones_generated_1 = require_timezones_generated();
|
|
214
|
-
function isSupported(timeZone, locale) {
|
|
215
|
-
if (locale === void 0) {
|
|
216
|
-
locale = "en";
|
|
217
|
-
}
|
|
218
|
-
try {
|
|
219
|
-
var formatter = new Intl.DateTimeFormat(locale, { timeZone });
|
|
220
|
-
return formatter.resolvedOptions().timeZone === timeZone;
|
|
221
|
-
} catch (_err) {
|
|
222
|
-
}
|
|
223
|
-
return false;
|
|
224
|
-
}
|
|
225
|
-
function getSupportedTimeZones(locale) {
|
|
226
|
-
return timezones_generated_1.timezones.filter(function(timezone) {
|
|
227
|
-
return isSupported(timezone, locale);
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
exports.getSupportedTimeZones = getSupportedTimeZones;
|
|
123
|
+
function isSupported2(timeZone, locale) {
|
|
124
|
+
if (locale === void 0) {
|
|
125
|
+
locale = "en";
|
|
231
126
|
}
|
|
232
|
-
|
|
127
|
+
try {
|
|
128
|
+
var formatter = new Intl.DateTimeFormat(locale, { timeZone });
|
|
129
|
+
return formatter.resolvedOptions().timeZone === timeZone;
|
|
130
|
+
} catch (_err) {
|
|
131
|
+
}
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
function getSupportedTimeZones(locale) {
|
|
135
|
+
return timezones.filter(function(timezone) {
|
|
136
|
+
return isSupported2(timezone, locale);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
233
139
|
|
|
234
140
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/units.generated.js
|
|
235
|
-
var
|
|
236
|
-
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/units.generated.js"(exports) {
|
|
237
|
-
"use strict";
|
|
238
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
239
|
-
exports.units = void 0;
|
|
240
|
-
exports.units = ["degree", "acre", "hectare", "percent", "bit", "byte", "gigabit", "gigabyte", "kilobit", "kilobyte", "megabit", "megabyte", "petabyte", "terabit", "terabyte", "day", "hour", "millisecond", "minute", "month", "second", "week", "year", "centimeter", "foot", "inch", "kilometer", "meter", "mile-scandinavian", "mile", "millimeter", "yard", "gram", "kilogram", "ounce", "pound", "stone", "celsius", "fahrenheit", "fluid-ounce", "gallon", "liter", "milliliter"];
|
|
241
|
-
}
|
|
242
|
-
});
|
|
141
|
+
var units = ["degree", "acre", "hectare", "percent", "bit", "byte", "gigabit", "gigabyte", "kilobit", "kilobyte", "megabit", "megabyte", "petabyte", "terabit", "terabyte", "day", "hour", "millisecond", "minute", "month", "second", "week", "year", "centimeter", "foot", "inch", "kilometer", "meter", "mile-scandinavian", "mile", "millimeter", "yard", "gram", "kilogram", "ounce", "pound", "stone", "celsius", "fahrenheit", "fluid-ounce", "gallon", "liter", "milliliter"];
|
|
243
142
|
|
|
244
143
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/get-supported-units.js
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249
|
-
exports.getSupportedUnits = void 0;
|
|
250
|
-
var units_generated_1 = require_units_generated();
|
|
251
|
-
function isSupported(unit, locale) {
|
|
252
|
-
if (locale === void 0) {
|
|
253
|
-
locale = "en";
|
|
254
|
-
}
|
|
255
|
-
try {
|
|
256
|
-
var formatter = new Intl.NumberFormat(locale, { style: "unit", unit });
|
|
257
|
-
return formatter.resolvedOptions().unit === unit;
|
|
258
|
-
} catch (_err) {
|
|
259
|
-
}
|
|
260
|
-
return false;
|
|
261
|
-
}
|
|
262
|
-
function getSupportedUnits(locale) {
|
|
263
|
-
return units_generated_1.units.filter(function(unit) {
|
|
264
|
-
return isSupported(unit, locale);
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
exports.getSupportedUnits = getSupportedUnits;
|
|
144
|
+
function isSupported3(unit, locale) {
|
|
145
|
+
if (locale === void 0) {
|
|
146
|
+
locale = "en";
|
|
268
147
|
}
|
|
269
|
-
|
|
148
|
+
try {
|
|
149
|
+
var formatter = new Intl.NumberFormat(locale, { style: "unit", unit });
|
|
150
|
+
return formatter.resolvedOptions().unit === unit;
|
|
151
|
+
} catch (_err) {
|
|
152
|
+
}
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
function getSupportedUnits(locale) {
|
|
156
|
+
return units.filter(function(unit) {
|
|
157
|
+
return isSupported3(unit, locale);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
270
160
|
|
|
271
161
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/src/index.js
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
return (0, get_supported_collations_1.getSupportedCollations)(locale);
|
|
289
|
-
case "currency":
|
|
290
|
-
return (0, get_supported_currencies_1.getSupportedCurrencies)(locale);
|
|
291
|
-
case "numberingSystem":
|
|
292
|
-
return (0, get_supported_numbering_systems_1.getSupportedNumberingSystems)(locale);
|
|
293
|
-
case "timeZone":
|
|
294
|
-
return (0, get_supported_timezones_1.getSupportedTimeZones)(locale);
|
|
295
|
-
case "unit":
|
|
296
|
-
return (0, get_supported_units_1.getSupportedUnits)(locale);
|
|
297
|
-
default:
|
|
298
|
-
throw RangeError("Invalid key: " + key);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
exports.supportedValuesOf = supportedValuesOf;
|
|
162
|
+
function supportedValuesOf(key, locale) {
|
|
163
|
+
switch (key) {
|
|
164
|
+
case "calendar":
|
|
165
|
+
return getSupportedCalendars(locale);
|
|
166
|
+
case "collation":
|
|
167
|
+
return getSupportedCollations(locale);
|
|
168
|
+
case "currency":
|
|
169
|
+
return getSupportedCurrencies(locale);
|
|
170
|
+
case "numberingSystem":
|
|
171
|
+
return getSupportedNumberingSystems(locale);
|
|
172
|
+
case "timeZone":
|
|
173
|
+
return getSupportedTimeZones(locale);
|
|
174
|
+
case "unit":
|
|
175
|
+
return getSupportedUnits(locale);
|
|
176
|
+
default:
|
|
177
|
+
throw RangeError("Invalid key: " + key);
|
|
302
178
|
}
|
|
303
|
-
}
|
|
179
|
+
}
|
|
304
180
|
|
|
305
181
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-enumerator/lib/polyfill.js
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
enumerable: true,
|
|
315
|
-
writable: false,
|
|
316
|
-
configurable: false
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
require_polyfill();
|
|
182
|
+
if (shouldPolyfill()) {
|
|
183
|
+
Object.defineProperty(Intl, "supportedValuesOf", {
|
|
184
|
+
value: supportedValuesOf,
|
|
185
|
+
enumerable: true,
|
|
186
|
+
writable: false,
|
|
187
|
+
configurable: false
|
|
188
|
+
});
|
|
189
|
+
}
|
|
322
190
|
})();
|
|
323
191
|
//# sourceMappingURL=polyfill.iife.js.map
|