@formatjs/intl-listformat 6.3.5 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/index.js +29 -29
  2. package/lib/index.js +4 -4
  3. package/lib/should-polyfill.d.ts +1 -1
  4. package/lib/should-polyfill.d.ts.map +1 -1
  5. package/lib/should-polyfill.js +6 -1
  6. package/lib/supported-locales.d.ts +2 -0
  7. package/lib/supported-locales.d.ts.map +1 -0
  8. package/lib/supported-locales.js +2 -0
  9. package/locale-data/af-NA.js +1 -1
  10. package/locale-data/af.js +1 -1
  11. package/locale-data/{ca-ES-VALENCIA.d.ts → be-tarask.d.ts} +0 -0
  12. package/locale-data/be-tarask.js +6 -0
  13. package/locale-data/{en-US-POSIX.d.ts → ca-ES-valencia.d.ts} +0 -0
  14. package/locale-data/{ca-ES-VALENCIA.js → ca-ES-valencia.js} +1 -1
  15. package/locale-data/dsb.js +1 -1
  16. package/locale-data/en-PH.js +1 -1
  17. package/locale-data/hsb.js +1 -1
  18. package/locale-data/jv.js +1 -1
  19. package/locale-data/kgp.d.ts +1 -0
  20. package/locale-data/kgp.js +6 -0
  21. package/locale-data/my.js +1 -1
  22. package/locale-data/sc.d.ts +1 -0
  23. package/locale-data/sc.js +6 -0
  24. package/locale-data/ti-ER.js +1 -1
  25. package/locale-data/ti.js +1 -1
  26. package/locale-data/und.d.ts +1 -0
  27. package/locale-data/und.js +6 -0
  28. package/locale-data/yrl-CO.d.ts +1 -0
  29. package/locale-data/yrl-CO.js +6 -0
  30. package/locale-data/yrl-VE.d.ts +1 -0
  31. package/locale-data/yrl-VE.js +6 -0
  32. package/locale-data/yrl.d.ts +1 -0
  33. package/locale-data/yrl.js +6 -0
  34. package/package.json +3 -3
  35. package/polyfill-force.js +1 -1
  36. package/polyfill.iife.js +59 -150
  37. package/polyfill.js +2 -2
  38. package/should-polyfill.d.ts +1 -1
  39. package/should-polyfill.d.ts.map +1 -1
  40. package/should-polyfill.js +6 -1
  41. package/supported-locales.d.ts +2 -0
  42. package/supported-locales.d.ts.map +1 -0
  43. package/supported-locales.js +5 -0
  44. package/locale-data/en-US-POSIX.js +0 -6
package/index.js CHANGED
@@ -5,7 +5,7 @@ var ecma402_abstract_1 = require("@formatjs/ecma402-abstract");
5
5
  var intl_localematcher_1 = require("@formatjs/intl-localematcher");
6
6
  function validateInstance(instance, method) {
7
7
  if (!(instance instanceof ListFormat)) {
8
- throw new TypeError("Method Intl.ListFormat.prototype." + method + " called on incompatible receiver " + String(instance));
8
+ throw new TypeError("Method Intl.ListFormat.prototype.".concat(method, " called on incompatible receiver ").concat(String(instance)));
9
9
  }
10
10
  }
11
11
  /**
@@ -20,7 +20,7 @@ function stringListFromIterable(list) {
20
20
  for (var _i = 0, list_1 = list; _i < list_1.length; _i++) {
21
21
  var el = list_1[_i];
22
22
  if (typeof el !== 'string') {
23
- throw new TypeError("array list[" + list.indexOf(el) + "] is not type String");
23
+ throw new TypeError("array list[".concat(list.indexOf(el), "] is not type String"));
24
24
  }
25
25
  result.push(el);
26
26
  }
@@ -32,7 +32,7 @@ function createPartsFromList(internalSlotMap, lf, list) {
32
32
  return [];
33
33
  }
34
34
  if (size === 2) {
35
- var pattern = ecma402_abstract_1.getInternalSlot(internalSlotMap, lf, 'templatePair');
35
+ var pattern = (0, ecma402_abstract_1.getInternalSlot)(internalSlotMap, lf, 'templatePair');
36
36
  var first = { type: 'element', value: list[0] };
37
37
  var second = { type: 'element', value: list[1] };
38
38
  return deconstructPattern(pattern, { '0': first, '1': second });
@@ -46,13 +46,13 @@ function createPartsFromList(internalSlotMap, lf, list) {
46
46
  while (i >= 0) {
47
47
  var pattern = void 0;
48
48
  if (i === 0) {
49
- pattern = ecma402_abstract_1.getInternalSlot(internalSlotMap, lf, 'templateStart');
49
+ pattern = (0, ecma402_abstract_1.getInternalSlot)(internalSlotMap, lf, 'templateStart');
50
50
  }
51
51
  else if (i < size - 2) {
52
- pattern = ecma402_abstract_1.getInternalSlot(internalSlotMap, lf, 'templateMiddle');
52
+ pattern = (0, ecma402_abstract_1.getInternalSlot)(internalSlotMap, lf, 'templateMiddle');
53
53
  }
54
54
  else {
55
- pattern = ecma402_abstract_1.getInternalSlot(internalSlotMap, lf, 'templateEnd');
55
+ pattern = (0, ecma402_abstract_1.getInternalSlot)(internalSlotMap, lf, 'templateEnd');
56
56
  }
57
57
  var head = { type: 'element', value: list[i] };
58
58
  parts = deconstructPattern(pattern, { '0': head, '1': parts });
@@ -61,19 +61,19 @@ function createPartsFromList(internalSlotMap, lf, list) {
61
61
  return parts;
62
62
  }
63
63
  function deconstructPattern(pattern, placeables) {
64
- var patternParts = ecma402_abstract_1.PartitionPattern(pattern);
64
+ var patternParts = (0, ecma402_abstract_1.PartitionPattern)(pattern);
65
65
  var result = [];
66
66
  for (var _i = 0, patternParts_1 = patternParts; _i < patternParts_1.length; _i++) {
67
67
  var patternPart = patternParts_1[_i];
68
68
  var part = patternPart.type;
69
- if (ecma402_abstract_1.isLiteralPart(patternPart)) {
69
+ if ((0, ecma402_abstract_1.isLiteralPart)(patternPart)) {
70
70
  result.push({
71
71
  type: 'literal',
72
72
  value: patternPart.value,
73
73
  });
74
74
  }
75
75
  else {
76
- ecma402_abstract_1.invariant(part in placeables, part + " is missing from placables");
76
+ (0, ecma402_abstract_1.invariant)(part in placeables, "".concat(part, " is missing from placables"));
77
77
  var subst = placeables[part];
78
78
  if (Array.isArray(subst)) {
79
79
  result.push.apply(result, subst);
@@ -93,28 +93,28 @@ var ListFormat = /** @class */ (function () {
93
93
  if (!newTarget) {
94
94
  throw new TypeError("Intl.ListFormat must be called with 'new'");
95
95
  }
96
- ecma402_abstract_1.setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'initializedListFormat', true);
97
- var requestedLocales = ecma402_abstract_1.CanonicalizeLocaleList(locales);
96
+ (0, ecma402_abstract_1.setInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'initializedListFormat', true);
97
+ var requestedLocales = (0, ecma402_abstract_1.CanonicalizeLocaleList)(locales);
98
98
  var opt = Object.create(null);
99
- var opts = ecma402_abstract_1.GetOptionsObject(options);
100
- var matcher = ecma402_abstract_1.GetOption(opts, 'localeMatcher', 'string', ['best fit', 'lookup'], 'best fit');
99
+ var opts = (0, ecma402_abstract_1.GetOptionsObject)(options);
100
+ var matcher = (0, ecma402_abstract_1.GetOption)(opts, 'localeMatcher', 'string', ['best fit', 'lookup'], 'best fit');
101
101
  opt.localeMatcher = matcher;
102
102
  var localeData = ListFormat.localeData;
103
- var r = intl_localematcher_1.ResolveLocale(ListFormat.availableLocales, requestedLocales, opt, ListFormat.relevantExtensionKeys, localeData, ListFormat.getDefaultLocale);
104
- ecma402_abstract_1.setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale);
105
- var type = ecma402_abstract_1.GetOption(opts, 'type', 'string', ['conjunction', 'disjunction', 'unit'], 'conjunction');
106
- ecma402_abstract_1.setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type);
107
- var style = ecma402_abstract_1.GetOption(opts, 'style', 'string', ['long', 'short', 'narrow'], 'long');
108
- ecma402_abstract_1.setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style);
103
+ var r = (0, intl_localematcher_1.ResolveLocale)(ListFormat.availableLocales, requestedLocales, opt, ListFormat.relevantExtensionKeys, localeData, ListFormat.getDefaultLocale);
104
+ (0, ecma402_abstract_1.setInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale);
105
+ var type = (0, ecma402_abstract_1.GetOption)(opts, 'type', 'string', ['conjunction', 'disjunction', 'unit'], 'conjunction');
106
+ (0, ecma402_abstract_1.setInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type);
107
+ var style = (0, ecma402_abstract_1.GetOption)(opts, 'style', 'string', ['long', 'short', 'narrow'], 'long');
108
+ (0, ecma402_abstract_1.setInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style);
109
109
  var dataLocale = r.dataLocale;
110
110
  var dataLocaleData = localeData[dataLocale];
111
- ecma402_abstract_1.invariant(!!dataLocaleData, "Missing locale data for " + dataLocale);
111
+ (0, ecma402_abstract_1.invariant)(!!dataLocaleData, "Missing locale data for ".concat(dataLocale));
112
112
  var dataLocaleTypes = dataLocaleData[type];
113
113
  var templates = dataLocaleTypes[style];
114
- ecma402_abstract_1.setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templatePair', templates.pair);
115
- ecma402_abstract_1.setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templateStart', templates.start);
116
- ecma402_abstract_1.setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templateMiddle', templates.middle);
117
- ecma402_abstract_1.setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templateEnd', templates.end);
114
+ (0, ecma402_abstract_1.setInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templatePair', templates.pair);
115
+ (0, ecma402_abstract_1.setInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templateStart', templates.start);
116
+ (0, ecma402_abstract_1.setInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templateMiddle', templates.middle);
117
+ (0, ecma402_abstract_1.setInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templateEnd', templates.end);
118
118
  }
119
119
  ListFormat.prototype.format = function (elements) {
120
120
  validateInstance(this, 'format');
@@ -138,21 +138,21 @@ var ListFormat = /** @class */ (function () {
138
138
  var result = [];
139
139
  for (var _i = 0, parts_2 = parts; _i < parts_2.length; _i++) {
140
140
  var part = parts_2[_i];
141
- result.push(tslib_1.__assign({}, part));
141
+ result.push((0, tslib_1.__assign)({}, part));
142
142
  }
143
143
  return result;
144
144
  };
145
145
  ListFormat.prototype.resolvedOptions = function () {
146
146
  validateInstance(this, 'resolvedOptions');
147
147
  return {
148
- locale: ecma402_abstract_1.getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),
149
- type: ecma402_abstract_1.getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type'),
150
- style: ecma402_abstract_1.getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style'),
148
+ locale: (0, ecma402_abstract_1.getInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),
149
+ type: (0, ecma402_abstract_1.getInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type'),
150
+ style: (0, ecma402_abstract_1.getInternalSlot)(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style'),
151
151
  };
152
152
  };
153
153
  ListFormat.supportedLocalesOf = function (locales, options) {
154
154
  // test262/test/intl402/ListFormat/constructor/supportedLocalesOf/result-type.js
155
- return ecma402_abstract_1.SupportedLocales(ListFormat.availableLocales, ecma402_abstract_1.CanonicalizeLocaleList(locales), options);
155
+ return (0, ecma402_abstract_1.SupportedLocales)(ListFormat.availableLocales, (0, ecma402_abstract_1.CanonicalizeLocaleList)(locales), options);
156
156
  };
157
157
  ListFormat.__addLocaleData = function () {
158
158
  var data = [];
package/lib/index.js CHANGED
@@ -3,7 +3,7 @@ import { GetOption, setInternalSlot, SupportedLocales, getInternalSlot, Partitio
3
3
  import { ResolveLocale } from '@formatjs/intl-localematcher';
4
4
  function validateInstance(instance, method) {
5
5
  if (!(instance instanceof ListFormat)) {
6
- throw new TypeError("Method Intl.ListFormat.prototype." + method + " called on incompatible receiver " + String(instance));
6
+ throw new TypeError("Method Intl.ListFormat.prototype.".concat(method, " called on incompatible receiver ").concat(String(instance)));
7
7
  }
8
8
  }
9
9
  /**
@@ -18,7 +18,7 @@ function stringListFromIterable(list) {
18
18
  for (var _i = 0, list_1 = list; _i < list_1.length; _i++) {
19
19
  var el = list_1[_i];
20
20
  if (typeof el !== 'string') {
21
- throw new TypeError("array list[" + list.indexOf(el) + "] is not type String");
21
+ throw new TypeError("array list[".concat(list.indexOf(el), "] is not type String"));
22
22
  }
23
23
  result.push(el);
24
24
  }
@@ -71,7 +71,7 @@ function deconstructPattern(pattern, placeables) {
71
71
  });
72
72
  }
73
73
  else {
74
- invariant(part in placeables, part + " is missing from placables");
74
+ invariant(part in placeables, "".concat(part, " is missing from placables"));
75
75
  var subst = placeables[part];
76
76
  if (Array.isArray(subst)) {
77
77
  result.push.apply(result, subst);
@@ -106,7 +106,7 @@ var ListFormat = /** @class */ (function () {
106
106
  setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style);
107
107
  var dataLocale = r.dataLocale;
108
108
  var dataLocaleData = localeData[dataLocale];
109
- invariant(!!dataLocaleData, "Missing locale data for " + dataLocale);
109
+ invariant(!!dataLocaleData, "Missing locale data for ".concat(dataLocale));
110
110
  var dataLocaleTypes = dataLocaleData[type];
111
111
  var templates = dataLocaleTypes[style];
112
112
  setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'templatePair', templates.pair);
@@ -1,2 +1,2 @@
1
- export declare function shouldPolyfill(locale?: string | string[]): boolean;
1
+ export declare function shouldPolyfill(locale?: string): string | undefined;
2
2
  //# sourceMappingURL=should-polyfill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-listformat/should-polyfill.ts"],"names":[],"mappings":"AAWA,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,WAExD"}
1
+ {"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-listformat/should-polyfill.ts"],"names":[],"mappings":"AAcA,wBAAgB,cAAc,CAAC,MAAM,SAAO,sBAI3C"}
@@ -1,3 +1,5 @@
1
+ import { match } from '@formatjs/intl-localematcher';
2
+ import { supportedLocales } from './supported-locales';
1
3
  function supportedLocalesOf(locale) {
2
4
  if (!locale) {
3
5
  return true;
@@ -7,5 +9,8 @@ function supportedLocalesOf(locale) {
7
9
  locales.length);
8
10
  }
9
11
  export function shouldPolyfill(locale) {
10
- return !('ListFormat' in Intl) || !supportedLocalesOf(locale);
12
+ if (locale === void 0) { locale = 'en'; }
13
+ if (!('ListFormat' in Intl) || !supportedLocalesOf(locale)) {
14
+ return locale ? match([locale], supportedLocales, 'en') : undefined;
15
+ }
11
16
  }
@@ -0,0 +1,2 @@
1
+ export declare const supportedLocales: string[];
2
+ //# sourceMappingURL=supported-locales.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../../packages/intl-listformat/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAsqI,CAAA"}
@@ -0,0 +1,2 @@
1
+ // This file is generated from supported-locales-gen.ts
2
+ export var supportedLocales = ["af-NA", "af", "agq", "ak", "am", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "ar", "as", "asa", "ast", "az-Cyrl", "az-Latn", "az", "bas", "be-tarask", "be", "bem", "bez", "bg", "bm", "bn-IN", "bn", "bo-IN", "bo", "br", "brx", "bs-Cyrl", "bs-Latn", "bs", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ca", "ccp-IN", "ccp", "ce", "ceb", "cgg", "chr", "ckb-IR", "ckb", "cs", "cy", "da-GL", "da", "dav", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "de", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee-TG", "ee", "el-CY", "el", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "en", "eo", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "es", "et", "eu", "ewo", "fa-AF", "fa", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Adlm", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "ff-Latn", "ff", "fi", "fil", "fo-DK", "fo", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fr", "fur", "fy", "ga-GB", "ga", "gd", "gl", "gsw-FR", "gsw-LI", "gsw", "gu", "guz", "gv", "ha-GH", "ha-NE", "ha", "haw", "he", "hi", "hr-BA", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it-CH", "it-SM", "it-VA", "it", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko-KP", "ko", "kok", "ks-Arab", "ks", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln-AO", "ln-CF", "ln-CG", "ln", "lo", "lrc-IQ", "lrc", "lt", "lu", "luo", "luy", "lv", "mai", "mas-TZ", "mas", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni-Beng", "mni", "mr", "ms-BN", "ms-ID", "ms-SG", "ms", "mt", "mua", "my", "mzn", "naq", "nb-SJ", "nb", "nd", "nds-NL", "nds", "ne-IN", "ne", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nl", "nmg", "nn", "nnh", "no", "nus", "nyn", "om-KE", "om", "or", "os-RU", "os", "pa-Arab", "pa-Guru", "pa", "pcm", "pl", "ps-PK", "ps", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "pt", "qu-BO", "qu-EC", "qu", "rm", "rn", "ro-MD", "ro", "rof", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "ru", "rw", "rwk", "sa", "sah", "saq", "sat-Olck", "sat", "sbp", "sc", "sd-Arab", "sd-Deva", "sd", "se-FI", "se-SE", "se", "seh", "ses", "sg", "shi-Latn", "shi-Tfng", "shi", "si", "sk", "sl", "smn", "sn", "so-DJ", "so-ET", "so-KE", "so", "sq-MK", "sq-XK", "sq", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Cyrl", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sr-Latn", "sr", "su-Latn", "su", "sv-AX", "sv-FI", "sv", "sw-CD", "sw-KE", "sw-UG", "sw", "ta-LK", "ta-MY", "ta-SG", "ta", "te", "teo-KE", "teo", "tg", "th", "ti-ER", "ti", "tk", "to", "tr-CY", "tr", "tt", "twq", "tzm", "ug", "uk", "und", "ur-IN", "ur", "uz-Arab", "uz-Cyrl", "uz-Latn", "uz", "vai-Latn", "vai-Vaii", "vai", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo-BJ", "yo", "yrl-CO", "yrl-VE", "yrl", "yue-Hans", "yue-Hant", "yue", "zgh", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hans", "zh-Hant-HK", "zh-Hant-MO", "zh-Hant", "zh", "zu"];
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"}}},"locale":"af-NA"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0} en {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"}}},"locale":"af-NA"}
5
5
  )
6
6
  }
package/locale-data/af.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"}}},"locale":"af"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0} en {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} of {1}","pair":"{0} of {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} en {1}","pair":"{0} en {1}"}}},"locale":"af"}
5
5
  )
6
6
  }
@@ -0,0 +1,6 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} і {1}","pair":"{0} і {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} і {1}","pair":"{0} і {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} і {1}","pair":"{0} і {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} ці {1}","pair":"{0} ці {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} ці {1}","pair":"{0} ці {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} ці {1}","pair":"{0} ці {1}"}},"unit":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"be-tarask"}
5
+ )
6
+ }
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"}}},"locale":"ca-ES-VALENCIA"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} i {1}","pair":"{0} i {1}"}}},"locale":"ca-ES-valencia"}
5
5
  )
6
6
  }
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}}},"locale":"dsb"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} abo {1}","pair":"{0} abo {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} abo {1}","pair":"{0} abo {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} abo {1}","pair":"{0} abo {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}}},"locale":"dsb"}
5
5
  )
6
6
  }
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} and {1}","pair":"{0} and {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} and {1}","pair":"{0} and {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} or {1}","pair":"{0} or {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} or {1}","pair":"{0} or {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} or {1}","pair":"{0} or {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"en-PH"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, and {1}","pair":"{0} and {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, & {1}","pair":"{0} & {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"en-PH"}
5
5
  )
6
6
  }
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}}},"locale":"hsb"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} abo {1}","pair":"{0} abo {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} abo {1}","pair":"{0} abo {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} abo {1}","pair":"{0} abo {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0} a {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} a {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}}},"locale":"hsb"}
5
5
  )
6
6
  }
package/locale-data/jv.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, lan {1}","pair":"{0} lan {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, lan {1}","pair":"{0} lan {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, lan {1}","pair":"{0} lan {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, utowo {1}","pair":"{0} utowo {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, utowo {1}","pair":"{0} utowo {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, utowo {1}","pair":"{0} utowo {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"jv"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, lan {1}","pair":"{0} lan {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, lan {1}","pair":"{0} lan {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, utowo {1}","pair":"{0} utowo {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, utowo {1}","pair":"{0} utowo {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, utowo {1}","pair":"{0} utowo {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"jv"}
5
5
  )
6
6
  }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,6 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} kar {1}","pair":"{0} kar {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} kar {1}","pair":"{0} kar {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} ketũmỹr {1}","pair":"{0} ketũmỹr {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} ketũmỹr {1}","pair":"{0} ketũmỹr {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} ketũmỹr {1}","pair":"{0} ketũmỹr {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} kar {1}","pair":"{0} kar {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} kar {1}","pair":"{0} kar {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"kgp"}
5
+ )
6
+ }
package/locale-data/my.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"}},"disjunction":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} သို့မဟုတ် {1}","pair":"{0} သို့မဟုတ် {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} သို့မဟုတ် {1}","pair":"{0} သို့မဟုတ် {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} သို့မဟုတ် {1}","pair":"{0} သို့မဟုတ် {1}"}},"unit":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့်{1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"}}},"locale":"my"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0} - {1}","middle":"{0} - {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"},"short":{"start":"{0} - {1}","middle":"{0} - {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"},"narrow":{"start":"{0} - {1}","middle":"{0} - {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"}},"disjunction":{"long":{"start":"{0} - {1}","middle":"{0} - {1}","end":"{0} သို့မဟုတ် {1}","pair":"{0} သို့မဟုတ် {1}"},"short":{"start":"{0} - {1}","middle":"{0} - {1}","end":"{0} သို့မဟုတ် {1}","pair":"{0} သို့မဟုတ် {1}"},"narrow":{"start":"{0} - {1}","middle":"{0} - {1}","end":"{0} သို့မဟုတ် {1}","pair":"{0} သို့မဟုတ် {1}"}},"unit":{"long":{"start":"{0}- {1}","middle":"{0}- {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့်{1}"},"short":{"start":"{0}- {1}","middle":"{0}- {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0}နှင့် {1}","pair":"{0}နှင့် {1}"}}},"locale":"my"}
5
5
  )
6
6
  }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,6 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} e {1}","pair":"{0} e {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} e {1}","pair":"{0} e {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} e {1}","pair":"{0} e {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} o {1}","pair":"{0} o {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} e {1}","pair":"{0} e {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} e {1}","pair":"{0} e {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"sc"}
5
+ )
6
+ }
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}}},"locale":"ti-ER"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}},"disjunction":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} ወይ {1}","pair":"{0} ወይ {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} ወይ {1}","pair":"{0} ወይ {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} ወይ {1}","pair":"{0} ወይ {1}"}},"unit":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"ti-ER"}
5
5
  )
6
6
  }
package/locale-data/ti.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* @generated */
2
2
  // prettier-ignore
3
3
  if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}}},"locale":"ti"}
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}},"disjunction":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} ወይ {1}","pair":"{0} ወይ {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} ወይ {1}","pair":"{0} ወይ {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} ወይ {1}","pair":"{0} ወይ {1}"}},"unit":{"long":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"short":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"ti"}
5
5
  )
6
6
  }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,6 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}}},"locale":"und"}
5
+ )
6
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,6 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"yrl-CO"}
5
+ )
6
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,6 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"yrl-VE"}
5
+ )
6
+ }
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,6 @@
1
+ /* @generated */
2
+ // prettier-ignore
3
+ if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
+ Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} u {1}","pair":"{0} u {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0} asuí {1}","pair":"{0} asuí {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"yrl"}
5
+ )
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-listformat",
3
- "version": "6.3.5",
3
+ "version": "6.5.0",
4
4
  "description": "Formats JS list in a i18n-safe way",
5
5
  "keywords": [
6
6
  "intl",
@@ -19,8 +19,8 @@
19
19
  "url": "git@github.com:formatjs/formatjs.git"
20
20
  },
21
21
  "dependencies": {
22
- "@formatjs/ecma402-abstract": "1.10.0",
23
- "@formatjs/intl-localematcher": "0.2.21",
22
+ "@formatjs/ecma402-abstract": "1.11.1",
23
+ "@formatjs/intl-localematcher": "0.2.22",
24
24
  "tslib": "^2.1.0"
25
25
  },
26
26
  "main": "index.js",
package/polyfill-force.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
- var _1 = tslib_1.__importDefault(require("./"));
4
+ var _1 = (0, tslib_1.__importDefault)(require("./"));
5
5
  Object.defineProperty(Intl, 'ListFormat', {
6
6
  value: _1.default,
7
7
  writable: true,
package/polyfill.iife.js CHANGED
@@ -8,27 +8,24 @@
8
8
  var __markAsModule = function(target) {
9
9
  return __defProp(target, "__esModule", { value: true });
10
10
  };
11
- var __require = typeof require !== "undefined" ? require : function(x) {
12
- throw new Error('Dynamic require of "' + x + '" is not supported');
13
- };
14
11
  var __commonJS = function(cb, mod) {
15
- return function __require2() {
16
- return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ return function __require() {
13
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
14
  };
18
15
  };
19
- var __reExport = function(target, module, desc) {
16
+ var __reExport = function(target, module, copyDefault, desc) {
20
17
  if (module && typeof module === "object" || typeof module === "function")
21
18
  for (var keys = __getOwnPropNames(module), i = 0, n = keys.length, key; i < n; i++) {
22
19
  key = keys[i];
23
- if (!__hasOwnProp.call(target, key) && key !== "default")
20
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
24
21
  __defProp(target, key, { get: function(k) {
25
22
  return module[k];
26
23
  }.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
27
24
  }
28
25
  return target;
29
26
  };
30
- var __toModule = function(module) {
31
- return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: function() {
27
+ var __toESM = function(module, isNodeMode) {
28
+ return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", !isNodeMode && module && module.__esModule ? { get: function() {
32
29
  return module.default;
33
30
  }, enumerable: true } : { value: module, enumerable: true })), module);
34
31
  };
@@ -91,7 +88,7 @@
91
88
  for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
92
89
  var locale = requestedLocales_1[_i];
93
90
  var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
94
- var availableLocale = BestAvailableLocale_1.BestAvailableLocale(availableLocales, noExtensionLocale);
91
+ var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
95
92
  if (availableLocale) {
96
93
  result.locale = availableLocale;
97
94
  if (locale !== noExtensionLocale) {
@@ -116,11 +113,11 @@
116
113
  var BestAvailableLocale_1 = require_BestAvailableLocale();
117
114
  var utils_1 = require_utils();
118
115
  function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
119
- var minimizedAvailableLocaleMap = Array.from(availableLocales).reduce(function(all, l2) {
120
- all[l2] = l2;
121
- return all;
122
- }, {});
123
- var minimizedAvailableLocales = new Set();
116
+ var minimizedAvailableLocaleMap = {};
117
+ availableLocales.forEach(function(l2) {
118
+ return minimizedAvailableLocaleMap[l2] = l2;
119
+ });
120
+ var minimizedAvailableLocales = /* @__PURE__ */ new Set();
124
121
  availableLocales.forEach(function(locale2) {
125
122
  var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
126
123
  minimizedAvailableLocaleMap[minimizedLocale] = locale2;
@@ -148,7 +145,7 @@
148
145
  foundLocale = minimizedRequestedLocale;
149
146
  break;
150
147
  }
151
- foundLocale = BestAvailableLocale_1.BestAvailableLocale(minimizedAvailableLocales, maximizedRequestedLocale);
148
+ foundLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(minimizedAvailableLocales, maximizedRequestedLocale);
152
149
  }
153
150
  return {
154
151
  locale: foundLocale && minimizedAvailableLocaleMap[foundLocale] || getDefaultLocale()
@@ -166,9 +163,9 @@
166
163
  exports.UnicodeExtensionValue = void 0;
167
164
  var utils_1 = require_utils();
168
165
  function UnicodeExtensionValue(extension, key) {
169
- utils_1.invariant(key.length === 2, "key must have 2 elements");
166
+ (0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
170
167
  var size = extension.length;
171
- var searchValue = "-" + key + "-";
168
+ var searchValue = "-".concat(key, "-");
172
169
  var pos = extension.indexOf(searchValue);
173
170
  if (pos !== -1) {
174
171
  var start = pos + 4;
@@ -195,7 +192,7 @@
195
192
  }
196
193
  return extension.slice(start, end);
197
194
  }
198
- searchValue = "-" + key;
195
+ searchValue = "-".concat(key);
199
196
  pos = extension.indexOf(searchValue);
200
197
  if (pos !== -1 && pos + 3 === size) {
201
198
  return "";
@@ -216,44 +213,44 @@
216
213
  var BestFitMatcher_1 = require_BestFitMatcher();
217
214
  var utils_1 = require_utils();
218
215
  var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
219
- function ResolveLocale3(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
216
+ function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
220
217
  var matcher = options.localeMatcher;
221
218
  var r;
222
219
  if (matcher === "lookup") {
223
- r = LookupMatcher_1.LookupMatcher(availableLocales, requestedLocales, getDefaultLocale);
220
+ r = (0, LookupMatcher_1.LookupMatcher)(availableLocales, requestedLocales, getDefaultLocale);
224
221
  } else {
225
- r = BestFitMatcher_1.BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale);
222
+ r = (0, BestFitMatcher_1.BestFitMatcher)(availableLocales, requestedLocales, getDefaultLocale);
226
223
  }
227
224
  var foundLocale = r.locale;
228
225
  var result = { locale: "", dataLocale: foundLocale };
229
226
  var supportedExtension = "-u";
230
227
  for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
231
228
  var key = relevantExtensionKeys_1[_i];
232
- utils_1.invariant(foundLocale in localeData, "Missing locale data for " + foundLocale);
229
+ (0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
233
230
  var foundLocaleData = localeData[foundLocale];
234
- utils_1.invariant(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data " + key + " must be an object");
231
+ (0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
235
232
  var keyLocaleData = foundLocaleData[key];
236
- utils_1.invariant(Array.isArray(keyLocaleData), "keyLocaleData for " + key + " must be an array");
233
+ (0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
237
234
  var value = keyLocaleData[0];
238
- utils_1.invariant(typeof value === "string" || value === null, "value must be string or null but got " + typeof value + " in key " + key);
235
+ (0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
239
236
  var supportedExtensionAddition = "";
240
237
  if (r.extension) {
241
- var requestedValue = UnicodeExtensionValue_1.UnicodeExtensionValue(r.extension, key);
238
+ var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r.extension, key);
242
239
  if (requestedValue !== void 0) {
243
240
  if (requestedValue !== "") {
244
241
  if (~keyLocaleData.indexOf(requestedValue)) {
245
242
  value = requestedValue;
246
- supportedExtensionAddition = "-" + key + "-" + value;
243
+ supportedExtensionAddition = "-".concat(key, "-").concat(value);
247
244
  }
248
245
  } else if (~requestedValue.indexOf("true")) {
249
246
  value = "true";
250
- supportedExtensionAddition = "-" + key;
247
+ supportedExtensionAddition = "-".concat(key);
251
248
  }
252
249
  }
253
250
  }
254
251
  if (key in options) {
255
252
  var optionsValue = options[key];
256
- utils_1.invariant(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
253
+ (0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
257
254
  if (~keyLocaleData.indexOf(optionsValue)) {
258
255
  if (optionsValue !== value) {
259
256
  value = optionsValue;
@@ -278,7 +275,7 @@
278
275
  result.locale = foundLocale;
279
276
  return result;
280
277
  }
281
- exports.ResolveLocale = ResolveLocale3;
278
+ exports.ResolveLocale = ResolveLocale2;
282
279
  }
283
280
  });
284
281
 
@@ -295,7 +292,7 @@
295
292
  for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
296
293
  var locale = requestedLocales_1[_i];
297
294
  var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
298
- var availableLocale = BestAvailableLocale_1.BestAvailableLocale(availableLocales, noExtensionLocale);
295
+ var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
299
296
  if (availableLocale) {
300
297
  subset.push(availableLocale);
301
298
  }
@@ -313,18 +310,18 @@
313
310
  Object.defineProperty(exports, "__esModule", { value: true });
314
311
  exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = void 0;
315
312
  var ResolveLocale_1 = require_ResolveLocale();
316
- function match(requestedLocales, availableLocales, defaultLocale, opts) {
313
+ function match2(requestedLocales, availableLocales, defaultLocale, opts) {
317
314
  var locales = availableLocales.reduce(function(all, l) {
318
315
  all.add(l);
319
316
  return all;
320
- }, new Set());
321
- return ResolveLocale_1.ResolveLocale(locales, requestedLocales, {
317
+ }, /* @__PURE__ */ new Set());
318
+ return (0, ResolveLocale_1.ResolveLocale)(locales, requestedLocales, {
322
319
  localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
323
320
  }, [], {}, function() {
324
321
  return defaultLocale;
325
322
  }).locale;
326
323
  }
327
- exports.match = match;
324
+ exports.match = match2;
328
325
  var LookupSupportedLocales_1 = require_LookupSupportedLocales();
329
326
  Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
330
327
  return LookupSupportedLocales_1.LookupSupportedLocales;
@@ -337,25 +334,6 @@
337
334
  });
338
335
 
339
336
  // node_modules/tslib/tslib.es6.js
340
- var extendStatics = function(d, b) {
341
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
342
- d2.__proto__ = b2;
343
- } || function(d2, b2) {
344
- for (var p in b2)
345
- if (Object.prototype.hasOwnProperty.call(b2, p))
346
- d2[p] = b2[p];
347
- };
348
- return extendStatics(d, b);
349
- };
350
- function __extends(d, b) {
351
- if (typeof b !== "function" && b !== null)
352
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
353
- extendStatics(d, b);
354
- function __() {
355
- this.constructor = d;
356
- }
357
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
358
- }
359
337
  var __assign = function() {
360
338
  __assign = Object.assign || function __assign2(t) {
361
339
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -412,7 +390,7 @@
412
390
  if (values !== void 0 && !values.filter(function(val) {
413
391
  return val == value;
414
392
  }).length) {
415
- throw new RangeError(value + " is not within " + values.join(", "));
393
+ throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
416
394
  }
417
395
  return value;
418
396
  }
@@ -430,57 +408,6 @@
430
408
  throw new TypeError("Options must be an object");
431
409
  }
432
410
 
433
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
434
- var SANCTIONED_UNITS = [
435
- "angle-degree",
436
- "area-acre",
437
- "area-hectare",
438
- "concentr-percent",
439
- "digital-bit",
440
- "digital-byte",
441
- "digital-gigabit",
442
- "digital-gigabyte",
443
- "digital-kilobit",
444
- "digital-kilobyte",
445
- "digital-megabit",
446
- "digital-megabyte",
447
- "digital-petabyte",
448
- "digital-terabit",
449
- "digital-terabyte",
450
- "duration-day",
451
- "duration-hour",
452
- "duration-millisecond",
453
- "duration-minute",
454
- "duration-month",
455
- "duration-second",
456
- "duration-week",
457
- "duration-year",
458
- "length-centimeter",
459
- "length-foot",
460
- "length-inch",
461
- "length-kilometer",
462
- "length-meter",
463
- "length-mile-scandinavian",
464
- "length-mile",
465
- "length-millimeter",
466
- "length-yard",
467
- "mass-gram",
468
- "mass-kilogram",
469
- "mass-ounce",
470
- "mass-pound",
471
- "mass-stone",
472
- "temperature-celsius",
473
- "temperature-fahrenheit",
474
- "volume-fluid-ounce",
475
- "volume-gallon",
476
- "volume-liter",
477
- "volume-milliliter"
478
- ];
479
- function removeUnitNamespace(unit) {
480
- return unit.slice(unit.indexOf("-") + 1);
481
- }
482
- var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
483
-
484
411
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
485
412
  function setInternalSlot(map, pl, field, value) {
486
413
  if (!map.get(pl)) {
@@ -499,7 +426,7 @@
499
426
  }
500
427
  var slots = map.get(pl);
501
428
  if (!slots) {
502
- throw new TypeError(pl + " InternalSlot has not been initialized");
429
+ throw new TypeError("".concat(pl, " InternalSlot has not been initialized"));
503
430
  }
504
431
  return fields.reduce(function(all, f) {
505
432
  all[f] = slots[f];
@@ -518,16 +445,6 @@
518
445
  }
519
446
  }
520
447
 
521
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
522
- var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
523
-
524
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
525
- var CARET_S_UNICODE_REGEX = new RegExp("^" + S_UNICODE_REGEX.source);
526
- var S_DOLLAR_UNICODE_REGEX = new RegExp(S_UNICODE_REGEX.source + "$");
527
-
528
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
529
- var import_intl_localematcher = __toModule(require_intl_localematcher());
530
-
531
448
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/PartitionPattern.js
532
449
  function PartitionPattern(pattern) {
533
450
  var result = [];
@@ -537,7 +454,7 @@
537
454
  var length = pattern.length;
538
455
  while (beginIndex < pattern.length && beginIndex > -1) {
539
456
  endIndex = pattern.indexOf("}", beginIndex);
540
- invariant(endIndex > beginIndex, "Invalid pattern " + pattern);
457
+ invariant(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
541
458
  if (beginIndex > nextIndex) {
542
459
  result.push({
543
460
  type: "literal",
@@ -561,7 +478,7 @@
561
478
  }
562
479
 
563
480
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js
564
- var import_intl_localematcher2 = __toModule(require_intl_localematcher());
481
+ var import_intl_localematcher = __toESM(require_intl_localematcher());
565
482
  function SupportedLocales(availableLocales, requestedLocales, options) {
566
483
  var matcher = "best fit";
567
484
  if (options !== void 0) {
@@ -569,35 +486,16 @@
569
486
  matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
570
487
  }
571
488
  if (matcher === "best fit") {
572
- return (0, import_intl_localematcher2.LookupSupportedLocales)(availableLocales, requestedLocales);
489
+ return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
573
490
  }
574
- return (0, import_intl_localematcher2.LookupSupportedLocales)(availableLocales, requestedLocales);
491
+ return (0, import_intl_localematcher.LookupSupportedLocales)(availableLocales, requestedLocales);
575
492
  }
576
493
 
577
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/data.js
578
- var MissingLocaleDataError = function(_super) {
579
- __extends(MissingLocaleDataError2, _super);
580
- function MissingLocaleDataError2() {
581
- var _this = _super !== null && _super.apply(this, arguments) || this;
582
- _this.type = "MISSING_LOCALE_DATA";
583
- return _this;
584
- }
585
- return MissingLocaleDataError2;
586
- }(Error);
587
-
588
- // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
589
- var RangePatternType;
590
- (function(RangePatternType2) {
591
- RangePatternType2["startRange"] = "startRange";
592
- RangePatternType2["shared"] = "shared";
593
- RangePatternType2["endRange"] = "endRange";
594
- })(RangePatternType || (RangePatternType = {}));
595
-
596
494
  // bazel-out/darwin-fastbuild/bin/packages/intl-listformat/lib/index.js
597
- var import_intl_localematcher3 = __toModule(require_intl_localematcher());
495
+ var import_intl_localematcher2 = __toESM(require_intl_localematcher());
598
496
  function validateInstance(instance, method) {
599
497
  if (!(instance instanceof ListFormat)) {
600
- throw new TypeError("Method Intl.ListFormat.prototype." + method + " called on incompatible receiver " + String(instance));
498
+ throw new TypeError("Method Intl.ListFormat.prototype.".concat(method, " called on incompatible receiver ").concat(String(instance)));
601
499
  }
602
500
  }
603
501
  function stringListFromIterable(list) {
@@ -608,7 +506,7 @@
608
506
  for (var _i = 0, list_1 = list; _i < list_1.length; _i++) {
609
507
  var el = list_1[_i];
610
508
  if (typeof el !== "string") {
611
- throw new TypeError("array list[" + list.indexOf(el) + "] is not type String");
509
+ throw new TypeError("array list[".concat(list.indexOf(el), "] is not type String"));
612
510
  }
613
511
  result.push(el);
614
512
  }
@@ -658,7 +556,7 @@
658
556
  value: patternPart.value
659
557
  });
660
558
  } else {
661
- invariant(part in placeables, part + " is missing from placables");
559
+ invariant(part in placeables, "".concat(part, " is missing from placables"));
662
560
  var subst = placeables[part];
663
561
  if (Array.isArray(subst)) {
664
562
  result.push.apply(result, subst);
@@ -682,7 +580,7 @@
682
580
  var matcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
683
581
  opt.localeMatcher = matcher;
684
582
  var localeData = ListFormat2.localeData;
685
- var r = (0, import_intl_localematcher3.ResolveLocale)(ListFormat2.availableLocales, requestedLocales, opt, ListFormat2.relevantExtensionKeys, localeData, ListFormat2.getDefaultLocale);
583
+ var r = (0, import_intl_localematcher2.ResolveLocale)(ListFormat2.availableLocales, requestedLocales, opt, ListFormat2.relevantExtensionKeys, localeData, ListFormat2.getDefaultLocale);
686
584
  setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "locale", r.locale);
687
585
  var type = GetOption(opts, "type", "string", ["conjunction", "disjunction", "unit"], "conjunction");
688
586
  setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "type", type);
@@ -690,7 +588,7 @@
690
588
  setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "style", style);
691
589
  var dataLocale = r.dataLocale;
692
590
  var dataLocaleData = localeData[dataLocale];
693
- invariant(!!dataLocaleData, "Missing locale data for " + dataLocale);
591
+ invariant(!!dataLocaleData, "Missing locale data for ".concat(dataLocale));
694
592
  var dataLocaleTypes = dataLocaleData[type];
695
593
  var templates = dataLocaleTypes[style];
696
594
  setInternalSlot(ListFormat2.__INTERNAL_SLOT_MAP__, this, "templatePair", templates.pair);
@@ -755,11 +653,11 @@
755
653
  return ListFormat2.__defaultLocale;
756
654
  };
757
655
  ListFormat2.localeData = {};
758
- ListFormat2.availableLocales = new Set();
656
+ ListFormat2.availableLocales = /* @__PURE__ */ new Set();
759
657
  ListFormat2.__defaultLocale = "";
760
658
  ListFormat2.relevantExtensionKeys = [];
761
659
  ListFormat2.polyfilled = true;
762
- ListFormat2.__INTERNAL_SLOT_MAP__ = new WeakMap();
660
+ ListFormat2.__INTERNAL_SLOT_MAP__ = /* @__PURE__ */ new WeakMap();
763
661
  return ListFormat2;
764
662
  }();
765
663
  var lib_default = ListFormat;
@@ -787,6 +685,12 @@
787
685
  } catch (e) {
788
686
  }
789
687
 
688
+ // bazel-out/darwin-fastbuild/bin/packages/intl-listformat/lib/should-polyfill.js
689
+ var import_intl_localematcher3 = __toESM(require_intl_localematcher());
690
+
691
+ // bazel-out/darwin-fastbuild/bin/packages/intl-listformat/lib/supported-locales.js
692
+ var supportedLocales = ["af-NA", "af", "agq", "ak", "am", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "ar", "as", "asa", "ast", "az-Cyrl", "az-Latn", "az", "bas", "be-tarask", "be", "bem", "bez", "bg", "bm", "bn-IN", "bn", "bo-IN", "bo", "br", "brx", "bs-Cyrl", "bs-Latn", "bs", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ca", "ccp-IN", "ccp", "ce", "ceb", "cgg", "chr", "ckb-IR", "ckb", "cs", "cy", "da-GL", "da", "dav", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "de", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee-TG", "ee", "el-CY", "el", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "en", "eo", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "es", "et", "eu", "ewo", "fa-AF", "fa", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Adlm", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "ff-Latn", "ff", "fi", "fil", "fo-DK", "fo", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fr", "fur", "fy", "ga-GB", "ga", "gd", "gl", "gsw-FR", "gsw-LI", "gsw", "gu", "guz", "gv", "ha-GH", "ha-NE", "ha", "haw", "he", "hi", "hr-BA", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it-CH", "it-SM", "it-VA", "it", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko-KP", "ko", "kok", "ks-Arab", "ks", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln-AO", "ln-CF", "ln-CG", "ln", "lo", "lrc-IQ", "lrc", "lt", "lu", "luo", "luy", "lv", "mai", "mas-TZ", "mas", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni-Beng", "mni", "mr", "ms-BN", "ms-ID", "ms-SG", "ms", "mt", "mua", "my", "mzn", "naq", "nb-SJ", "nb", "nd", "nds-NL", "nds", "ne-IN", "ne", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nl", "nmg", "nn", "nnh", "no", "nus", "nyn", "om-KE", "om", "or", "os-RU", "os", "pa-Arab", "pa-Guru", "pa", "pcm", "pl", "ps-PK", "ps", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "pt", "qu-BO", "qu-EC", "qu", "rm", "rn", "ro-MD", "ro", "rof", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "ru", "rw", "rwk", "sa", "sah", "saq", "sat-Olck", "sat", "sbp", "sc", "sd-Arab", "sd-Deva", "sd", "se-FI", "se-SE", "se", "seh", "ses", "sg", "shi-Latn", "shi-Tfng", "shi", "si", "sk", "sl", "smn", "sn", "so-DJ", "so-ET", "so-KE", "so", "sq-MK", "sq-XK", "sq", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Cyrl", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sr-Latn", "sr", "su-Latn", "su", "sv-AX", "sv-FI", "sv", "sw-CD", "sw-KE", "sw-UG", "sw", "ta-LK", "ta-MY", "ta-SG", "ta", "te", "teo-KE", "teo", "tg", "th", "ti-ER", "ti", "tk", "to", "tr-CY", "tr", "tt", "twq", "tzm", "ug", "uk", "und", "ur-IN", "ur", "uz-Arab", "uz-Cyrl", "uz-Latn", "uz", "vai-Latn", "vai-Vaii", "vai", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo-BJ", "yo", "yrl-CO", "yrl-VE", "yrl", "yue-Hans", "yue-Hant", "yue", "zgh", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hans", "zh-Hant-HK", "zh-Hant-MO", "zh-Hant", "zh", "zu"];
693
+
790
694
  // bazel-out/darwin-fastbuild/bin/packages/intl-listformat/lib/should-polyfill.js
791
695
  function supportedLocalesOf(locale) {
792
696
  if (!locale) {
@@ -796,7 +700,12 @@
796
700
  return Intl.ListFormat.supportedLocalesOf(locales).length === locales.length;
797
701
  }
798
702
  function shouldPolyfill(locale) {
799
- return !("ListFormat" in Intl) || !supportedLocalesOf(locale);
703
+ if (locale === void 0) {
704
+ locale = "en";
705
+ }
706
+ if (!("ListFormat" in Intl) || !supportedLocalesOf(locale)) {
707
+ return locale ? (0, import_intl_localematcher3.match)([locale], supportedLocales, "en") : void 0;
708
+ }
800
709
  }
801
710
 
802
711
  // bazel-out/darwin-fastbuild/bin/packages/intl-listformat/lib/polyfill.js
package/polyfill.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
- var _1 = tslib_1.__importDefault(require("./"));
4
+ var _1 = (0, tslib_1.__importDefault)(require("./"));
5
5
  var should_polyfill_1 = require("./should-polyfill");
6
- if (should_polyfill_1.shouldPolyfill()) {
6
+ if ((0, should_polyfill_1.shouldPolyfill)()) {
7
7
  Object.defineProperty(Intl, 'ListFormat', {
8
8
  value: _1.default,
9
9
  writable: true,
@@ -1,2 +1,2 @@
1
- export declare function shouldPolyfill(locale?: string | string[]): boolean;
1
+ export declare function shouldPolyfill(locale?: string): string | undefined;
2
2
  //# sourceMappingURL=should-polyfill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-listformat/should-polyfill.ts"],"names":[],"mappings":"AAWA,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,WAExD"}
1
+ {"version":3,"file":"should-polyfill.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-listformat/should-polyfill.ts"],"names":[],"mappings":"AAcA,wBAAgB,cAAc,CAAC,MAAM,SAAO,sBAI3C"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.shouldPolyfill = void 0;
4
+ var intl_localematcher_1 = require("@formatjs/intl-localematcher");
5
+ var supported_locales_1 = require("./supported-locales");
4
6
  function supportedLocalesOf(locale) {
5
7
  if (!locale) {
6
8
  return true;
@@ -10,6 +12,9 @@ function supportedLocalesOf(locale) {
10
12
  locales.length);
11
13
  }
12
14
  function shouldPolyfill(locale) {
13
- return !('ListFormat' in Intl) || !supportedLocalesOf(locale);
15
+ if (locale === void 0) { locale = 'en'; }
16
+ if (!('ListFormat' in Intl) || !supportedLocalesOf(locale)) {
17
+ return locale ? (0, intl_localematcher_1.match)([locale], supported_locales_1.supportedLocales, 'en') : undefined;
18
+ }
14
19
  }
15
20
  exports.shouldPolyfill = shouldPolyfill;
@@ -0,0 +1,2 @@
1
+ export declare const supportedLocales: string[];
2
+ //# sourceMappingURL=supported-locales.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../../../packages/intl-listformat/supported-locales.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAsqI,CAAA"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supportedLocales = void 0;
4
+ // This file is generated from supported-locales-gen.ts
5
+ exports.supportedLocales = ["af-NA", "af", "agq", "ak", "am", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "ar", "as", "asa", "ast", "az-Cyrl", "az-Latn", "az", "bas", "be-tarask", "be", "bem", "bez", "bg", "bm", "bn-IN", "bn", "bo-IN", "bo", "br", "brx", "bs-Cyrl", "bs-Latn", "bs", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ca", "ccp-IN", "ccp", "ce", "ceb", "cgg", "chr", "ckb-IR", "ckb", "cs", "cy", "da-GL", "da", "dav", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "de", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee-TG", "ee", "el-CY", "el", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "en", "eo", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "es", "et", "eu", "ewo", "fa-AF", "fa", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Adlm", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "ff-Latn", "ff", "fi", "fil", "fo-DK", "fo", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fr", "fur", "fy", "ga-GB", "ga", "gd", "gl", "gsw-FR", "gsw-LI", "gsw", "gu", "guz", "gv", "ha-GH", "ha-NE", "ha", "haw", "he", "hi", "hr-BA", "hr", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it-CH", "it-SM", "it-VA", "it", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko-KP", "ko", "kok", "ks-Arab", "ks", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln-AO", "ln-CF", "ln-CG", "ln", "lo", "lrc-IQ", "lrc", "lt", "lu", "luo", "luy", "lv", "mai", "mas-TZ", "mas", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni-Beng", "mni", "mr", "ms-BN", "ms-ID", "ms-SG", "ms", "mt", "mua", "my", "mzn", "naq", "nb-SJ", "nb", "nd", "nds-NL", "nds", "ne-IN", "ne", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nl", "nmg", "nn", "nnh", "no", "nus", "nyn", "om-KE", "om", "or", "os-RU", "os", "pa-Arab", "pa-Guru", "pa", "pcm", "pl", "ps-PK", "ps", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "pt", "qu-BO", "qu-EC", "qu", "rm", "rn", "ro-MD", "ro", "rof", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "ru", "rw", "rwk", "sa", "sah", "saq", "sat-Olck", "sat", "sbp", "sc", "sd-Arab", "sd-Deva", "sd", "se-FI", "se-SE", "se", "seh", "ses", "sg", "shi-Latn", "shi-Tfng", "shi", "si", "sk", "sl", "smn", "sn", "so-DJ", "so-ET", "so-KE", "so", "sq-MK", "sq-XK", "sq", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Cyrl", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sr-Latn", "sr", "su-Latn", "su", "sv-AX", "sv-FI", "sv", "sw-CD", "sw-KE", "sw-UG", "sw", "ta-LK", "ta-MY", "ta-SG", "ta", "te", "teo-KE", "teo", "tg", "th", "ti-ER", "ti", "tk", "to", "tr-CY", "tr", "tt", "twq", "tzm", "ug", "uk", "und", "ur-IN", "ur", "uz-Arab", "uz-Cyrl", "uz-Latn", "uz", "vai-Latn", "vai-Vaii", "vai", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo-BJ", "yo", "yrl-CO", "yrl-VE", "yrl", "yue-Hans", "yue-Hant", "yue", "zgh", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hans", "zh-Hant-HK", "zh-Hant-MO", "zh-Hant", "zh", "zu"];
@@ -1,6 +0,0 @@
1
- /* @generated */
2
- // prettier-ignore
3
- if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') {
4
- Intl.ListFormat.__addLocaleData({"data":{"conjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, and {1}","pair":"{0} and {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, & {1}","pair":"{0} & {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"}},"disjunction":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"},"narrow":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, or {1}","pair":"{0} or {1}"}},"unit":{"long":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"short":{"start":"{0}, {1}","middle":"{0}, {1}","end":"{0}, {1}","pair":"{0}, {1}"},"narrow":{"start":"{0} {1}","middle":"{0} {1}","end":"{0} {1}","pair":"{0} {1}"}}},"locale":"en-US-POSIX"}
5
- )
6
- }