@formatjs/intl-pluralrules 6.4.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +0 -8
- package/index.js +30 -142
- package/index.js.map +1 -1
- package/locale-data/af.js +24 -2
- package/locale-data/bg.js +32 -2
- package/locale-data/es.js +6 -2
- package/locale-data/fr.js +2 -2
- package/locale-data/gl.js +24 -2
- package/locale-data/tg.d.ts +1 -0
- package/locale-data/tg.js +35 -0
- package/locale-data/vi.js +10 -4
- package/package.json +2 -2
- package/polyfill-force.js +30 -142
- package/polyfill-force.js.map +1 -1
- package/polyfill.iife.js +64 -160
- package/polyfill.js +34 -148
- package/polyfill.js.map +1 -1
- package/should-polyfill.d.ts +0 -2
- package/should-polyfill.js +3 -4
- package/should-polyfill.js.map +1 -1
package/polyfill.iife.js
CHANGED
|
@@ -1,64 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/default-content.js
|
|
2
2
|
const defaultContent = {
|
|
3
|
-
"
|
|
4
|
-
"ab": ["ab-GE"],
|
|
3
|
+
"ady": ["ady-RU"],
|
|
5
4
|
"af": ["af-ZA"],
|
|
6
5
|
"agq": ["agq-CM"],
|
|
7
6
|
"ak": ["ak-GH"],
|
|
8
7
|
"am": ["am-ET"],
|
|
9
|
-
"an": ["an-ES"],
|
|
10
|
-
"ann": ["ann-NG"],
|
|
11
|
-
"apc": ["apc-SY"],
|
|
12
8
|
"ar": ["ar-001"],
|
|
13
|
-
"arn": ["arn-CL"],
|
|
14
9
|
"as": ["as-IN"],
|
|
15
10
|
"asa": ["asa-TZ"],
|
|
16
11
|
"ast": ["ast-ES"],
|
|
17
|
-
"az-Arab": ["az-Arab-IR"],
|
|
18
12
|
"az-Cyrl": ["az-Cyrl-AZ"],
|
|
19
13
|
"az-Latn": ["az-Latn-AZ"],
|
|
20
14
|
"ba": ["ba-RU"],
|
|
21
|
-
"bal-Arab": ["bal-Arab-PK"],
|
|
22
15
|
"bal-Latn": ["bal-Latn-PK"],
|
|
23
16
|
"bas": ["bas-CM"],
|
|
24
17
|
"be": ["be-BY"],
|
|
25
18
|
"bem": ["bem-ZM"],
|
|
26
|
-
"bew": ["bew-ID"],
|
|
27
19
|
"bez": ["bez-TZ"],
|
|
28
20
|
"bg": ["bg-BG"],
|
|
29
21
|
"bgc": ["bgc-IN"],
|
|
30
|
-
"bgn": ["bgn-PK"],
|
|
31
22
|
"bho": ["bho-IN"],
|
|
32
23
|
"blo": ["blo-BJ"],
|
|
33
|
-
"blt": ["blt-VN"],
|
|
34
24
|
"bm": ["bm-ML"],
|
|
35
|
-
"bm-Nkoo": ["bm-Nkoo-ML"],
|
|
36
25
|
"bn": ["bn-BD"],
|
|
37
26
|
"bo": ["bo-CN"],
|
|
38
|
-
"bqi": ["bqi-IR"],
|
|
39
27
|
"br": ["br-FR"],
|
|
40
28
|
"brx": ["brx-IN"],
|
|
41
29
|
"bs-Cyrl": ["bs-Cyrl-BA"],
|
|
42
30
|
"bs-Latn": ["bs-Latn-BA"],
|
|
43
|
-
"bss": ["bss-CM"],
|
|
44
31
|
"bua": ["bua-RU"],
|
|
45
|
-
"byn": ["byn-ER"],
|
|
46
32
|
"ca": ["ca-ES"],
|
|
47
|
-
"cad": ["cad-US"],
|
|
48
|
-
"cch": ["cch-NG"],
|
|
49
33
|
"ccp": ["ccp-BD"],
|
|
50
34
|
"ce": ["ce-RU"],
|
|
51
35
|
"ceb": ["ceb-PH"],
|
|
52
36
|
"cgg": ["cgg-UG"],
|
|
53
|
-
"cho": ["cho-US"],
|
|
54
37
|
"chr": ["chr-US"],
|
|
55
|
-
"cic": ["cic-US"],
|
|
56
38
|
"ckb": ["ckb-IQ"],
|
|
57
|
-
"co": ["co-FR"],
|
|
58
39
|
"cop": ["cop-EG"],
|
|
59
40
|
"cs": ["cs-CZ"],
|
|
60
41
|
"csw": ["csw-CA"],
|
|
61
|
-
"cu": ["cu-RU"],
|
|
62
42
|
"cv": ["cv-RU"],
|
|
63
43
|
"cy": ["cy-GB"],
|
|
64
44
|
"da": ["da-DK"],
|
|
@@ -68,14 +48,11 @@ const defaultContent = {
|
|
|
68
48
|
"doi": ["doi-IN"],
|
|
69
49
|
"dsb": ["dsb-DE"],
|
|
70
50
|
"dua": ["dua-CM"],
|
|
71
|
-
"dv": ["dv-MV"],
|
|
72
51
|
"dyo": ["dyo-SN"],
|
|
73
52
|
"dz": ["dz-BT"],
|
|
74
53
|
"ebu": ["ebu-KE"],
|
|
75
54
|
"ee": ["ee-GH"],
|
|
76
55
|
"el": ["el-GR"],
|
|
77
|
-
"en-Dsrt": ["en-Dsrt-US"],
|
|
78
|
-
"en-Shaw": ["en-Shaw-GB"],
|
|
79
56
|
"en": ["en-US"],
|
|
80
57
|
"eo": ["eo-001"],
|
|
81
58
|
"es": ["es-ES"],
|
|
@@ -89,29 +66,23 @@ const defaultContent = {
|
|
|
89
66
|
"fil": ["fil-PH"],
|
|
90
67
|
"fo": ["fo-FO"],
|
|
91
68
|
"fr": ["fr-FR"],
|
|
92
|
-
"frr": ["frr-DE"],
|
|
93
69
|
"fur": ["fur-IT"],
|
|
94
70
|
"fy": ["fy-NL"],
|
|
95
71
|
"ga": ["ga-IE"],
|
|
96
72
|
"gaa": ["gaa-GH"],
|
|
97
73
|
"gd": ["gd-GB"],
|
|
98
|
-
"gez": ["gez-ET"],
|
|
99
74
|
"gl": ["gl-ES"],
|
|
100
|
-
"gn": ["gn-PY"],
|
|
101
75
|
"gsw": ["gsw-CH"],
|
|
102
76
|
"gu": ["gu-IN"],
|
|
103
77
|
"guz": ["guz-KE"],
|
|
104
78
|
"gv": ["gv-IM"],
|
|
105
|
-
"ha-Arab": ["ha-Arab-NG"],
|
|
106
79
|
"ha": ["ha-NG"],
|
|
107
80
|
"haw": ["haw-US"],
|
|
108
81
|
"he": ["he-IL"],
|
|
109
82
|
"hi": ["hi-IN"],
|
|
110
83
|
"hi-Latn": ["hi-Latn-IN"],
|
|
111
|
-
"hnj-Hmnp": ["hnj-Hmnp-US"],
|
|
112
84
|
"hr": ["hr-HR"],
|
|
113
85
|
"hsb": ["hsb-DE"],
|
|
114
|
-
"ht": ["ht-HT"],
|
|
115
86
|
"hu": ["hu-HU"],
|
|
116
87
|
"hy": ["hy-AM"],
|
|
117
88
|
"ia": ["ia-001"],
|
|
@@ -119,27 +90,19 @@ const defaultContent = {
|
|
|
119
90
|
"ie": ["ie-EE"],
|
|
120
91
|
"ig": ["ig-NG"],
|
|
121
92
|
"ii": ["ii-CN"],
|
|
122
|
-
"io": ["io-001"],
|
|
123
93
|
"is": ["is-IS"],
|
|
124
94
|
"it": ["it-IT"],
|
|
125
|
-
"iu": ["iu-CA"],
|
|
126
|
-
"iu-Latn": ["iu-Latn-CA"],
|
|
127
95
|
"ja": ["ja-JP"],
|
|
128
|
-
"jbo": ["jbo-001"],
|
|
129
96
|
"jgo": ["jgo-CM"],
|
|
130
97
|
"jmc": ["jmc-TZ"],
|
|
131
98
|
"jv": ["jv-ID"],
|
|
132
99
|
"ka": ["ka-GE"],
|
|
133
|
-
"kaa-Cyrl": ["kaa-Cyrl-UZ"],
|
|
134
|
-
"kaa-Latn": ["kaa-Latn-UZ"],
|
|
135
100
|
"kab": ["kab-DZ"],
|
|
136
|
-
"kaj": ["kaj-NG"],
|
|
137
101
|
"kam": ["kam-KE"],
|
|
138
|
-
"
|
|
102
|
+
"kbd": ["kbd-RU"],
|
|
139
103
|
"kde": ["kde-TZ"],
|
|
140
104
|
"kea": ["kea-CV"],
|
|
141
105
|
"kek": ["kek-GT"],
|
|
142
|
-
"ken": ["ken-CM"],
|
|
143
106
|
"kgp": ["kgp-BR"],
|
|
144
107
|
"khq": ["khq-ML"],
|
|
145
108
|
"ki": ["ki-KE"],
|
|
@@ -153,13 +116,11 @@ const defaultContent = {
|
|
|
153
116
|
"ko": ["ko-KR"],
|
|
154
117
|
"kok-Deva": ["kok-Deva-IN"],
|
|
155
118
|
"kok-Latn": ["kok-Latn-IN"],
|
|
156
|
-
"kpe": ["kpe-LR"],
|
|
157
119
|
"ks-Arab": ["ks-Arab-IN"],
|
|
158
120
|
"ks-Deva": ["ks-Deva-IN"],
|
|
159
121
|
"ksb": ["ksb-TZ"],
|
|
160
122
|
"ksf": ["ksf-CM"],
|
|
161
123
|
"ksh": ["ksh-DE"],
|
|
162
|
-
"ku-Arab": ["ku-Arab-IQ"],
|
|
163
124
|
"ku-Latn": ["ku-Latn-TR"],
|
|
164
125
|
"kw": ["kw-GB"],
|
|
165
126
|
"kxv-Deva": ["kxv-Deva-IN"],
|
|
@@ -167,7 +128,6 @@ const defaultContent = {
|
|
|
167
128
|
"kxv-Orya": ["kxv-Orya-IN"],
|
|
168
129
|
"kxv-Telu": ["kxv-Telu-IN"],
|
|
169
130
|
"ky": ["ky-KG"],
|
|
170
|
-
"la": ["la-VA"],
|
|
171
131
|
"lag": ["lag-TZ"],
|
|
172
132
|
"lb": ["lb-LU"],
|
|
173
133
|
"lg": ["lg-UG"],
|
|
@@ -179,39 +139,27 @@ const defaultContent = {
|
|
|
179
139
|
"lo": ["lo-LA"],
|
|
180
140
|
"lrc": ["lrc-IR"],
|
|
181
141
|
"lt": ["lt-LT"],
|
|
182
|
-
"ltg": ["ltg-LV"],
|
|
183
142
|
"lu": ["lu-CD"],
|
|
184
143
|
"luo": ["luo-KE"],
|
|
185
144
|
"luy": ["luy-KE"],
|
|
186
145
|
"lv": ["lv-LV"],
|
|
187
|
-
"lzz": ["lzz-TR"],
|
|
188
146
|
"mai": ["mai-IN"],
|
|
189
147
|
"mas": ["mas-KE"],
|
|
190
|
-
"mdf": ["mdf-RU"],
|
|
191
148
|
"mer": ["mer-KE"],
|
|
192
149
|
"mfe": ["mfe-MU"],
|
|
193
150
|
"mg": ["mg-MG"],
|
|
194
151
|
"mgh": ["mgh-MZ"],
|
|
195
152
|
"mgo": ["mgo-CM"],
|
|
196
|
-
"mhn": ["mhn-IT"],
|
|
197
153
|
"mi": ["mi-NZ"],
|
|
198
|
-
"mic": ["mic-CA"],
|
|
199
154
|
"mk": ["mk-MK"],
|
|
200
155
|
"ml": ["ml-IN"],
|
|
201
156
|
"mn": ["mn-MN"],
|
|
202
|
-
"mn-Mong": ["mn-Mong-CN"],
|
|
203
157
|
"mni-Beng": ["mni-Beng-IN"],
|
|
204
|
-
"mni-Mtei": ["mni-Mtei-IN"],
|
|
205
|
-
"moh": ["moh-CA"],
|
|
206
158
|
"mr": ["mr-IN"],
|
|
207
|
-
"ms-Arab": ["ms-Arab-MY"],
|
|
208
159
|
"ms": ["ms-MY"],
|
|
209
160
|
"mt": ["mt-MT"],
|
|
210
161
|
"mua": ["mua-CM"],
|
|
211
|
-
"mus": ["mus-US"],
|
|
212
|
-
"mww-Hmnp": ["mww-Hmnp-US"],
|
|
213
162
|
"my": ["my-MM"],
|
|
214
|
-
"myv": ["myv-RU"],
|
|
215
163
|
"mzn": ["mzn-IR"],
|
|
216
164
|
"naq": ["naq-NA"],
|
|
217
165
|
"nb": ["nb-NO"],
|
|
@@ -223,24 +171,16 @@ const defaultContent = {
|
|
|
223
171
|
"nn": ["nn-NO"],
|
|
224
172
|
"nnh": ["nnh-CM"],
|
|
225
173
|
"nqo": ["nqo-GN"],
|
|
226
|
-
"nr": ["nr-ZA"],
|
|
227
174
|
"nso": ["nso-ZA"],
|
|
228
175
|
"nus": ["nus-SS"],
|
|
229
|
-
"nv": ["nv-US"],
|
|
230
|
-
"ny": ["ny-MW"],
|
|
231
176
|
"nyn": ["nyn-UG"],
|
|
232
177
|
"oc": ["oc-FR"],
|
|
233
|
-
"oka": ["oka-CA"],
|
|
234
178
|
"om": ["om-ET"],
|
|
235
179
|
"or": ["or-IN"],
|
|
236
180
|
"os": ["os-GE"],
|
|
237
|
-
"osa": ["osa-US"],
|
|
238
181
|
"pa-Arab": ["pa-Arab-PK"],
|
|
239
182
|
"pa-Guru": ["pa-Guru-IN"],
|
|
240
|
-
"pap": ["pap-CW"],
|
|
241
183
|
"pcm": ["pcm-NG"],
|
|
242
|
-
"pi-Latn": ["pi-Latn-GB"],
|
|
243
|
-
"pis": ["pis-SB"],
|
|
244
184
|
"pl": ["pl-PL"],
|
|
245
185
|
"pms": ["pms-IT"],
|
|
246
186
|
"prg": ["prg-PL"],
|
|
@@ -249,8 +189,6 @@ const defaultContent = {
|
|
|
249
189
|
"qu": ["qu-PE"],
|
|
250
190
|
"quc": ["quc-GT"],
|
|
251
191
|
"raj": ["raj-IN"],
|
|
252
|
-
"rhg-Rohg": ["rhg-Rohg-MM"],
|
|
253
|
-
"rif": ["rif-MA"],
|
|
254
192
|
"rm": ["rm-CH"],
|
|
255
193
|
"rn": ["rn-BI"],
|
|
256
194
|
"ro": ["ro-RO"],
|
|
@@ -261,41 +199,30 @@ const defaultContent = {
|
|
|
261
199
|
"sa": ["sa-IN"],
|
|
262
200
|
"sah": ["sah-RU"],
|
|
263
201
|
"saq": ["saq-KE"],
|
|
264
|
-
"sat-Deva": ["sat-Deva-IN"],
|
|
265
202
|
"sat-Olck": ["sat-Olck-IN"],
|
|
266
203
|
"sbp": ["sbp-TZ"],
|
|
267
204
|
"sc": ["sc-IT"],
|
|
268
205
|
"scn": ["scn-IT"],
|
|
269
206
|
"sd-Arab": ["sd-Arab-PK"],
|
|
270
207
|
"sd-Deva": ["sd-Deva-IN"],
|
|
271
|
-
"sdh": ["sdh-IR"],
|
|
272
208
|
"se": ["se-NO"],
|
|
273
209
|
"seh": ["seh-MZ"],
|
|
274
210
|
"ses": ["ses-ML"],
|
|
275
211
|
"sg": ["sg-CF"],
|
|
276
|
-
"sgs": ["sgs-LT"],
|
|
277
212
|
"shi-Latn": ["shi-Latn-MA"],
|
|
278
213
|
"shi-Tfng": ["shi-Tfng-MA"],
|
|
279
214
|
"shn": ["shn-MM"],
|
|
280
215
|
"si": ["si-LK"],
|
|
281
|
-
"sid": ["sid-ET"],
|
|
282
216
|
"sk": ["sk-SK"],
|
|
283
|
-
"skr": ["skr-PK"],
|
|
284
217
|
"sl": ["sl-SI"],
|
|
285
|
-
"sma": ["sma-SE"],
|
|
286
|
-
"smj": ["smj-SE"],
|
|
287
218
|
"smn": ["smn-FI"],
|
|
288
|
-
"sms": ["sms-FI"],
|
|
289
219
|
"sn": ["sn-ZW"],
|
|
290
220
|
"so": ["so-SO"],
|
|
291
221
|
"sq": ["sq-AL"],
|
|
292
222
|
"sr-Cyrl": ["sr-Cyrl-RS"],
|
|
293
223
|
"sr-Latn": ["sr-Latn-RS"],
|
|
294
|
-
"ss": ["ss-ZA"],
|
|
295
|
-
"ssy": ["ssy-ER"],
|
|
296
224
|
"st": ["st-ZA"],
|
|
297
225
|
"su-Latn": ["su-Latn-ID"],
|
|
298
|
-
"suz-Deva": ["suz-Deva-NP"],
|
|
299
226
|
"suz-Sunu": ["suz-Sunu-NP"],
|
|
300
227
|
"sv": ["sv-SE"],
|
|
301
228
|
"sw": ["sw-TZ"],
|
|
@@ -307,16 +234,11 @@ const defaultContent = {
|
|
|
307
234
|
"tg": ["tg-TJ"],
|
|
308
235
|
"th": ["th-TH"],
|
|
309
236
|
"ti": ["ti-ET"],
|
|
310
|
-
"tig": ["tig-ER"],
|
|
311
237
|
"tk": ["tk-TM"],
|
|
312
238
|
"tn": ["tn-ZA"],
|
|
313
239
|
"to": ["to-TO"],
|
|
314
240
|
"tok": ["tok-001"],
|
|
315
|
-
"tpi": ["tpi-PG"],
|
|
316
241
|
"tr": ["tr-TR"],
|
|
317
|
-
"trv": ["trv-TW"],
|
|
318
|
-
"trw": ["trw-PK"],
|
|
319
|
-
"ts": ["ts-ZA"],
|
|
320
242
|
"tt": ["tt-RU"],
|
|
321
243
|
"twq": ["twq-NE"],
|
|
322
244
|
"tyv": ["tyv-RU"],
|
|
@@ -329,16 +251,11 @@ const defaultContent = {
|
|
|
329
251
|
"uz-Latn": ["uz-Latn-UZ"],
|
|
330
252
|
"vai-Latn": ["vai-Latn-LR"],
|
|
331
253
|
"vai-Vaii": ["vai-Vaii-LR"],
|
|
332
|
-
"ve": ["ve-ZA"],
|
|
333
254
|
"vec": ["vec-IT"],
|
|
334
255
|
"vi": ["vi-VN"],
|
|
335
256
|
"vmw": ["vmw-MZ"],
|
|
336
|
-
"vo": ["vo-001"],
|
|
337
257
|
"vun": ["vun-TZ"],
|
|
338
|
-
"wa": ["wa-BE"],
|
|
339
258
|
"wae": ["wae-CH"],
|
|
340
|
-
"wal": ["wal-ET"],
|
|
341
|
-
"wbp": ["wbp-AU"],
|
|
342
259
|
"wo": ["wo-SN"],
|
|
343
260
|
"xh": ["xh-ZA"],
|
|
344
261
|
"xnr": ["xnr-IN"],
|
|
@@ -353,11 +270,9 @@ const defaultContent = {
|
|
|
353
270
|
"zgh": ["zgh-MA"],
|
|
354
271
|
"zh-Hans": ["zh-Hans-CN"],
|
|
355
272
|
"zh-Hant": ["zh-Hant-TW"],
|
|
356
|
-
"zh-Latn": ["zh-Latn-CN"],
|
|
357
273
|
"zu": ["zu-ZA"]
|
|
358
274
|
};
|
|
359
|
-
|
|
360
|
-
//#region packages/ecma402-abstract/registerLocaleData.js
|
|
275
|
+
// packages/ecma402-abstract/registerLocaleData.js
|
|
361
276
|
const explicitLocales = /* @__PURE__ */ new WeakMap();
|
|
362
277
|
function registerLocaleData(locale, data, localeData, availableLocales) {
|
|
363
278
|
let loaded = explicitLocales.get(localeData);
|
|
@@ -385,8 +300,7 @@ function registerLocaleData(locale, data, localeData, availableLocales) {
|
|
|
385
300
|
}
|
|
386
301
|
}
|
|
387
302
|
}
|
|
388
|
-
|
|
389
|
-
//#region packages/ecma402-abstract/CanonicalizeLocaleList.js
|
|
303
|
+
// packages/ecma402-abstract/CanonicalizeLocaleList.js
|
|
390
304
|
/**
|
|
391
305
|
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
392
306
|
* @param locales
|
|
@@ -394,8 +308,7 @@ function registerLocaleData(locale, data, localeData, availableLocales) {
|
|
|
394
308
|
function CanonicalizeLocaleList$1(locales) {
|
|
395
309
|
return Intl.getCanonicalLocales(locales);
|
|
396
310
|
}
|
|
397
|
-
|
|
398
|
-
//#region node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
|
|
311
|
+
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
|
|
399
312
|
function memoize(fn, options) {
|
|
400
313
|
const cache = options && options.cache ? options.cache : cacheDefault;
|
|
401
314
|
const serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
@@ -460,8 +373,7 @@ const strategies = {
|
|
|
460
373
|
variadic: strategyVariadic,
|
|
461
374
|
monadic: strategyMonadic
|
|
462
375
|
};
|
|
463
|
-
|
|
464
|
-
//#region node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/index.js
|
|
376
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/index.js
|
|
465
377
|
/**
|
|
466
378
|
* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
|
|
467
379
|
* @param locales
|
|
@@ -571,8 +483,12 @@ const matchingData = {
|
|
|
571
483
|
"ps|en": 30,
|
|
572
484
|
"qu|es": 30,
|
|
573
485
|
"rm|de": 20,
|
|
574
|
-
"rn|
|
|
575
|
-
"rw|
|
|
486
|
+
"rn|rw": 10,
|
|
487
|
+
"rw|rn": 10,
|
|
488
|
+
"rn|fr": 30,
|
|
489
|
+
"rn|en": 35,
|
|
490
|
+
"rw|en": 30,
|
|
491
|
+
"rw|fr": 35,
|
|
576
492
|
"sa|hi": 30,
|
|
577
493
|
"scn|it": 20,
|
|
578
494
|
"sd|en": 30,
|
|
@@ -1429,7 +1345,7 @@ const matchingData = {
|
|
|
1429
1345
|
"pt-BR",
|
|
1430
1346
|
"pt-PT"
|
|
1431
1347
|
],
|
|
1432
|
-
"cldrVersion": "
|
|
1348
|
+
"cldrVersion": "49",
|
|
1433
1349
|
"macroRegions": ["419"],
|
|
1434
1350
|
"canonicalAliases": {
|
|
1435
1351
|
"language": [
|
|
@@ -1543,7 +1459,6 @@ const matchingData = {
|
|
|
1543
1459
|
"ewe",
|
|
1544
1460
|
"fao",
|
|
1545
1461
|
"fas",
|
|
1546
|
-
"fat",
|
|
1547
1462
|
"fij",
|
|
1548
1463
|
"fin",
|
|
1549
1464
|
"fra",
|
|
@@ -1683,6 +1598,7 @@ const matchingData = {
|
|
|
1683
1598
|
"mof",
|
|
1684
1599
|
"mol",
|
|
1685
1600
|
"mon",
|
|
1601
|
+
"mrd",
|
|
1686
1602
|
"mri",
|
|
1687
1603
|
"msa",
|
|
1688
1604
|
"mst",
|
|
@@ -1764,6 +1680,7 @@ const matchingData = {
|
|
|
1764
1680
|
"sgl",
|
|
1765
1681
|
"sgn",
|
|
1766
1682
|
"sh",
|
|
1683
|
+
"shl",
|
|
1767
1684
|
"sin",
|
|
1768
1685
|
"skk",
|
|
1769
1686
|
"slk",
|
|
@@ -1858,6 +1775,7 @@ const matchingData = {
|
|
|
1858
1775
|
"yiy",
|
|
1859
1776
|
"yma",
|
|
1860
1777
|
"ymt",
|
|
1778
|
+
"yol",
|
|
1861
1779
|
"yor",
|
|
1862
1780
|
"yos",
|
|
1863
1781
|
"yuu",
|
|
@@ -2780,13 +2698,11 @@ const extensionAlias = {
|
|
|
2780
2698
|
"cnckg": "cnsha",
|
|
2781
2699
|
"cnhrb": "cnsha",
|
|
2782
2700
|
"cnkhg": "cnurc",
|
|
2783
|
-
"cst6cdt": "uschi",
|
|
2784
2701
|
"cuba": "cuhav",
|
|
2785
2702
|
"eet": "grath",
|
|
2786
2703
|
"egypt": "egcai",
|
|
2787
2704
|
"eire": "iedub",
|
|
2788
2705
|
"est": "papty",
|
|
2789
|
-
"est5edt": "usnyc",
|
|
2790
2706
|
"factory": "unk",
|
|
2791
2707
|
"gaza": "gazastrp",
|
|
2792
2708
|
"gmt0": "gmt",
|
|
@@ -2801,13 +2717,11 @@ const extensionAlias = {
|
|
|
2801
2717
|
"met": "bebru",
|
|
2802
2718
|
"mncoq": "mnuln",
|
|
2803
2719
|
"mst": "usphx",
|
|
2804
|
-
"mst7mdt": "usden",
|
|
2805
2720
|
"mxstis": "mxtij",
|
|
2806
2721
|
"navajo": "usden",
|
|
2807
2722
|
"poland": "plwaw",
|
|
2808
2723
|
"portugal": "ptlis",
|
|
2809
2724
|
"prc": "cnsha",
|
|
2810
|
-
"pst8pdt": "uslax",
|
|
2811
2725
|
"roc": "twtpe",
|
|
2812
2726
|
"rok": "krsel",
|
|
2813
2727
|
"turkey": "trist",
|
|
@@ -3036,8 +2950,7 @@ function LookupSupportedLocales(availableLocales, requestedLocales) {
|
|
|
3036
2950
|
function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
3037
2951
|
return ResolveLocale(availableLocales, CanonicalizeLocaleList(requestedLocales), { localeMatcher: opts?.algorithm || "best fit" }, [], {}, () => defaultLocale).locale;
|
|
3038
2952
|
}
|
|
3039
|
-
|
|
3040
|
-
//#region packages/ecma262-abstract/ToObject.js
|
|
2953
|
+
// packages/ecma262-abstract/ToObject.js
|
|
3041
2954
|
/**
|
|
3042
2955
|
* https://tc39.es/ecma262/#sec-toobject
|
|
3043
2956
|
*/
|
|
@@ -3045,8 +2958,7 @@ function ToObject(arg) {
|
|
|
3045
2958
|
if (arg == null) throw new TypeError("undefined/null cannot be converted to object");
|
|
3046
2959
|
return Object(arg);
|
|
3047
2960
|
}
|
|
3048
|
-
|
|
3049
|
-
//#region packages/ecma262-abstract/ToString.js
|
|
2961
|
+
// packages/ecma262-abstract/ToString.js
|
|
3050
2962
|
/**
|
|
3051
2963
|
* https://tc39.es/ecma262/#sec-tostring
|
|
3052
2964
|
*/
|
|
@@ -3054,8 +2966,7 @@ function ToString(o) {
|
|
|
3054
2966
|
if (typeof o === "symbol") throw TypeError("Cannot convert a Symbol value to a string");
|
|
3055
2967
|
return String(o);
|
|
3056
2968
|
}
|
|
3057
|
-
|
|
3058
|
-
//#region packages/ecma402-abstract/GetOption.js
|
|
2969
|
+
// packages/ecma402-abstract/GetOption.js
|
|
3059
2970
|
/**
|
|
3060
2971
|
* https://tc39.es/ecma402/#sec-getoption
|
|
3061
2972
|
* @param opts
|
|
@@ -3076,8 +2987,7 @@ function GetOption(opts, prop, type, values, fallback) {
|
|
|
3076
2987
|
}
|
|
3077
2988
|
return fallback;
|
|
3078
2989
|
}
|
|
3079
|
-
|
|
3080
|
-
//#region packages/ecma402-abstract/SupportedLocales.js
|
|
2990
|
+
// packages/ecma402-abstract/SupportedLocales.js
|
|
3081
2991
|
/**
|
|
3082
2992
|
* https://tc39.es/ecma402/#sec-supportedlocales
|
|
3083
2993
|
* @param availableLocales
|
|
@@ -3093,11 +3003,15 @@ function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
|
3093
3003
|
if (matcher === "best fit") return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
3094
3004
|
return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
|
3095
3005
|
}
|
|
3096
|
-
|
|
3097
|
-
//#region node_modules/.aspect_rules_js/@formatjs+bigdecimal@0.0.0/node_modules/@formatjs/bigdecimal/index.js
|
|
3006
|
+
// node_modules/.aspect_rules_js/@formatjs+bigdecimal@0.0.0/node_modules/@formatjs/bigdecimal/index.js
|
|
3098
3007
|
const DIV_PRECISION = 40;
|
|
3099
3008
|
function removeTrailingZeros(mantissa, exponent) {
|
|
3100
3009
|
if (mantissa === 0n) return [0n, 0];
|
|
3010
|
+
if (mantissa % 10n !== 0n) return [mantissa, exponent];
|
|
3011
|
+
while (mantissa % 100000000n === 0n && Number.isSafeInteger(exponent) && Number.isSafeInteger(exponent + 8)) {
|
|
3012
|
+
mantissa /= 100000000n;
|
|
3013
|
+
exponent += 8;
|
|
3014
|
+
}
|
|
3101
3015
|
while (mantissa % 10n === 0n) {
|
|
3102
3016
|
mantissa /= 10n;
|
|
3103
3017
|
exponent++;
|
|
@@ -3124,8 +3038,13 @@ function digitCount(n) {
|
|
|
3124
3038
|
return count;
|
|
3125
3039
|
}
|
|
3126
3040
|
const TEN_BIGINT = 10n;
|
|
3041
|
+
const SMALL_POWERS_OF_TEN = [1n];
|
|
3127
3042
|
function bigintPow10(n) {
|
|
3128
3043
|
if (n <= 0) return 1n;
|
|
3044
|
+
if (n <= 64 && Number.isInteger(n)) {
|
|
3045
|
+
for (let i = SMALL_POWERS_OF_TEN.length; i <= n; i++) SMALL_POWERS_OF_TEN.push(SMALL_POWERS_OF_TEN[i - 1] * TEN_BIGINT);
|
|
3046
|
+
return SMALL_POWERS_OF_TEN[n];
|
|
3047
|
+
}
|
|
3129
3048
|
let result = 1n;
|
|
3130
3049
|
let base = TEN_BIGINT;
|
|
3131
3050
|
let exp = n;
|
|
@@ -3237,6 +3156,14 @@ var BigDecimal = class BigDecimal {
|
|
|
3237
3156
|
this._negativeZero = Object.is(value, -0);
|
|
3238
3157
|
return;
|
|
3239
3158
|
}
|
|
3159
|
+
if (Number.isSafeInteger(value)) {
|
|
3160
|
+
const [m, e] = removeTrailingZeros(BigInt(value), 0);
|
|
3161
|
+
this._mantissa = m;
|
|
3162
|
+
this._exponent = e;
|
|
3163
|
+
this._special = 0;
|
|
3164
|
+
this._negativeZero = false;
|
|
3165
|
+
return;
|
|
3166
|
+
}
|
|
3240
3167
|
value = String(value);
|
|
3241
3168
|
}
|
|
3242
3169
|
const parsed = parseDecimalString(value);
|
|
@@ -3552,8 +3479,7 @@ var BigDecimal = class BigDecimal {
|
|
|
3552
3479
|
return BigDecimal._create(0n, 0, 1, false);
|
|
3553
3480
|
}
|
|
3554
3481
|
};
|
|
3555
|
-
|
|
3556
|
-
//#region packages/ecma262-abstract/ToPrimitive.js
|
|
3482
|
+
// packages/ecma262-abstract/ToPrimitive.js
|
|
3557
3483
|
function invariant$1(condition, message, Err = Error) {
|
|
3558
3484
|
if (!condition) throw new Err(message);
|
|
3559
3485
|
}
|
|
@@ -3596,8 +3522,7 @@ function ToPrimitive(input, preferredType) {
|
|
|
3596
3522
|
}
|
|
3597
3523
|
return input;
|
|
3598
3524
|
}
|
|
3599
|
-
|
|
3600
|
-
//#region packages/ecma402-abstract/ToIntlMathematicalValue.js
|
|
3525
|
+
// packages/ecma402-abstract/ToIntlMathematicalValue.js
|
|
3601
3526
|
/**
|
|
3602
3527
|
* https://tc39.es/ecma402/#sec-tointlmathematicalvalue
|
|
3603
3528
|
* Converts input to a mathematical value, supporting BigInt
|
|
@@ -3623,8 +3548,7 @@ function ToIntlMathematicalValue(input) {
|
|
|
3623
3548
|
return new BigDecimal(NaN);
|
|
3624
3549
|
}
|
|
3625
3550
|
}
|
|
3626
|
-
|
|
3627
|
-
//#region packages/ecma402-abstract/CoerceOptionsToObject.js
|
|
3551
|
+
// packages/ecma402-abstract/CoerceOptionsToObject.js
|
|
3628
3552
|
/**
|
|
3629
3553
|
* https://tc39.es/ecma402/#sec-coerceoptionstoobject
|
|
3630
3554
|
* @param options
|
|
@@ -3634,8 +3558,7 @@ function CoerceOptionsToObject(options) {
|
|
|
3634
3558
|
if (typeof options === "undefined") return Object.create(null);
|
|
3635
3559
|
return ToObject(options);
|
|
3636
3560
|
}
|
|
3637
|
-
|
|
3638
|
-
//#region packages/ecma402-abstract/DefaultNumberOption.js
|
|
3561
|
+
// packages/ecma402-abstract/DefaultNumberOption.js
|
|
3639
3562
|
/**
|
|
3640
3563
|
* ECMA-402 §9.2.13 DefaultNumberOption, step 2.
|
|
3641
3564
|
* https://tc39.es/ecma402/#sec-defaultnumberoption
|
|
@@ -3651,8 +3574,7 @@ function DefaultNumberOption(inputVal, min, max, fallback) {
|
|
|
3651
3574
|
if (isNaN(val) || val < min || val > max) throw new RangeError(`${val} is outside of range [${min}, ${max}]`);
|
|
3652
3575
|
return Math.floor(val);
|
|
3653
3576
|
}
|
|
3654
|
-
|
|
3655
|
-
//#region packages/ecma402-abstract/GetNumberOption.js
|
|
3577
|
+
// packages/ecma402-abstract/GetNumberOption.js
|
|
3656
3578
|
/**
|
|
3657
3579
|
* https://tc39.es/ecma402/#sec-getnumberoption
|
|
3658
3580
|
* @param options
|
|
@@ -3665,8 +3587,7 @@ function GetNumberOption(options, property, minimum, maximum, fallback) {
|
|
|
3665
3587
|
const val = options[property];
|
|
3666
3588
|
return DefaultNumberOption(val, minimum, maximum, fallback);
|
|
3667
3589
|
}
|
|
3668
|
-
|
|
3669
|
-
//#region packages/ecma402-abstract/utils.js
|
|
3590
|
+
// packages/ecma402-abstract/utils.js
|
|
3670
3591
|
function repeat(s, times) {
|
|
3671
3592
|
if (typeof s.repeat === "function") return s.repeat(times);
|
|
3672
3593
|
const arr = Array.from({ length: times });
|
|
@@ -3696,8 +3617,7 @@ function invariant(condition, message, Err = Error) {
|
|
|
3696
3617
|
memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });
|
|
3697
3618
|
memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });
|
|
3698
3619
|
memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });
|
|
3699
|
-
|
|
3700
|
-
//#region packages/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
3620
|
+
// packages/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
3701
3621
|
const VALID_ROUNDING_INCREMENTS = /* @__PURE__ */ new Set([
|
|
3702
3622
|
1,
|
|
3703
3623
|
2,
|
|
@@ -3807,8 +3727,7 @@ Valid values are ${Array.from(VALID_ROUNDING_INCREMENTS).join(", ")}.`, RangeErr
|
|
|
3807
3727
|
invariant(internalSlots.maximumFractionDigits === internalSlots.minimumFractionDigits, "With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.", RangeError);
|
|
3808
3728
|
}
|
|
3809
3729
|
}
|
|
3810
|
-
|
|
3811
|
-
//#region packages/ecma402-abstract/PluralRules/InitializePluralRules.js
|
|
3730
|
+
// packages/ecma402-abstract/PluralRules/InitializePluralRules.js
|
|
3812
3731
|
function InitializePluralRules(pl, locales, options, { availableLocales, relevantExtensionKeys, localeData, getDefaultLocale, getInternalSlots }) {
|
|
3813
3732
|
const requestedLocales = CanonicalizeLocaleList$1(locales);
|
|
3814
3733
|
const opt = Object.create(null);
|
|
@@ -3834,8 +3753,7 @@ function InitializePluralRules(pl, locales, options, { availableLocales, relevan
|
|
|
3834
3753
|
SetNumberFormatDigitOptions(internalSlots, opts, 0, 3, notation);
|
|
3835
3754
|
return pl;
|
|
3836
3755
|
}
|
|
3837
|
-
|
|
3838
|
-
//#region packages/ecma262-abstract/Type.js
|
|
3756
|
+
// packages/ecma262-abstract/Type.js
|
|
3839
3757
|
/**
|
|
3840
3758
|
* https://www.ecma-international.org/ecma-262/11.0/index.html#sec-type
|
|
3841
3759
|
*/
|
|
@@ -3849,12 +3767,10 @@ function Type(x) {
|
|
|
3849
3767
|
if (typeof x === "symbol") return "Symbol";
|
|
3850
3768
|
if (typeof x === "bigint") return "BigInt";
|
|
3851
3769
|
}
|
|
3852
|
-
|
|
3853
|
-
//#region packages/ecma402-abstract/constants.js
|
|
3770
|
+
// packages/ecma402-abstract/constants.js
|
|
3854
3771
|
const ZERO = new BigDecimal(0);
|
|
3855
3772
|
const NEGATIVE_ZERO = new BigDecimal(-0);
|
|
3856
|
-
|
|
3857
|
-
//#region packages/ecma402-abstract/NumberFormat/GetUnsignedRoundingMode.js
|
|
3773
|
+
// packages/ecma402-abstract/NumberFormat/GetUnsignedRoundingMode.js
|
|
3858
3774
|
const negativeMapping = {
|
|
3859
3775
|
ceil: "zero",
|
|
3860
3776
|
floor: "infinity",
|
|
@@ -3881,8 +3797,7 @@ function GetUnsignedRoundingMode(roundingMode, isNegative) {
|
|
|
3881
3797
|
if (isNegative) return negativeMapping[roundingMode];
|
|
3882
3798
|
return positiveMapping[roundingMode];
|
|
3883
3799
|
}
|
|
3884
|
-
|
|
3885
|
-
//#region packages/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js
|
|
3800
|
+
// packages/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js
|
|
3886
3801
|
function ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode) {
|
|
3887
3802
|
if (x.eq(r1) || r1.eq(r2)) return r1;
|
|
3888
3803
|
if (x.eq(r2)) return r2;
|
|
@@ -3900,8 +3815,7 @@ function ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode) {
|
|
|
3900
3815
|
if (r1.div(r2.minus(r1)).mod(2).isZero()) return r1;
|
|
3901
3816
|
return r2;
|
|
3902
3817
|
}
|
|
3903
|
-
|
|
3904
|
-
//#region packages/ecma402-abstract/NumberFormat/decimal-cache.js
|
|
3818
|
+
// packages/ecma402-abstract/NumberFormat/decimal-cache.js
|
|
3905
3819
|
/**
|
|
3906
3820
|
* Cached function to compute powers of 10 for Decimal.js operations.
|
|
3907
3821
|
* This cache significantly reduces overhead in ComputeExponent and ToRawFixed
|
|
@@ -3915,8 +3829,7 @@ function ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode) {
|
|
|
3915
3829
|
const getPowerOf10 = memoize((exponent) => {
|
|
3916
3830
|
return BigDecimal.pow(10, exponent);
|
|
3917
3831
|
});
|
|
3918
|
-
|
|
3919
|
-
//#region packages/ecma402-abstract/NumberFormat/ToRawFixed.js
|
|
3832
|
+
// packages/ecma402-abstract/NumberFormat/ToRawFixed.js
|
|
3920
3833
|
function ToRawFixedFn(n, f) {
|
|
3921
3834
|
return n.times(getPowerOf10(-f));
|
|
3922
3835
|
}
|
|
@@ -3981,8 +3894,7 @@ function ToRawFixed(x, minFraction, maxFraction, roundingIncrement, unsignedRoun
|
|
|
3981
3894
|
roundingMagnitude: -f
|
|
3982
3895
|
};
|
|
3983
3896
|
}
|
|
3984
|
-
|
|
3985
|
-
//#region packages/ecma402-abstract/NumberFormat/ToRawPrecision.js
|
|
3897
|
+
// packages/ecma402-abstract/NumberFormat/ToRawPrecision.js
|
|
3986
3898
|
function findN1E1R1(x, p) {
|
|
3987
3899
|
const maxN1 = getPowerOf10(p);
|
|
3988
3900
|
const minN1 = getPowerOf10(p - 1);
|
|
@@ -4117,8 +4029,7 @@ function ToRawPrecision(x, minPrecision, maxPrecision, unsignedRoundingMode) {
|
|
|
4117
4029
|
roundingMagnitude: e - p + 1
|
|
4118
4030
|
};
|
|
4119
4031
|
}
|
|
4120
|
-
|
|
4121
|
-
//#region packages/ecma402-abstract/NumberFormat/FormatNumericToString.js
|
|
4032
|
+
// packages/ecma402-abstract/NumberFormat/FormatNumericToString.js
|
|
4122
4033
|
/**
|
|
4123
4034
|
* https://tc39.es/ecma402/#sec-formatnumberstring
|
|
4124
4035
|
*/
|
|
@@ -4174,8 +4085,7 @@ function FormatNumericToString(intlObject, _x) {
|
|
|
4174
4085
|
formattedString: string
|
|
4175
4086
|
};
|
|
4176
4087
|
}
|
|
4177
|
-
|
|
4178
|
-
//#region packages/ecma402-abstract/PluralRules/ResolvePlural.js
|
|
4088
|
+
// packages/ecma402-abstract/PluralRules/ResolvePlural.js
|
|
4179
4089
|
/**
|
|
4180
4090
|
* ResolvePluralInternal ( pluralRules, n )
|
|
4181
4091
|
*
|
|
@@ -4234,8 +4144,7 @@ function ResolvePlural(pl, n, { getInternalSlots, PluralRuleSelect }) {
|
|
|
4234
4144
|
PluralRuleSelect
|
|
4235
4145
|
}).pluralCategory;
|
|
4236
4146
|
}
|
|
4237
|
-
|
|
4238
|
-
//#region packages/ecma402-abstract/PluralRules/ResolvePluralRange.js
|
|
4147
|
+
// packages/ecma402-abstract/PluralRules/ResolvePluralRange.js
|
|
4239
4148
|
/**
|
|
4240
4149
|
* ResolvePluralRange ( pluralRules, x, y )
|
|
4241
4150
|
*
|
|
@@ -4270,8 +4179,7 @@ function ResolvePluralRange(pluralRules, x, y, { getInternalSlots, PluralRuleSel
|
|
|
4270
4179
|
const { locale, type } = internalSlots;
|
|
4271
4180
|
return PluralRuleSelectRange(locale, type, xp.pluralCategory, yp.pluralCategory);
|
|
4272
4181
|
}
|
|
4273
|
-
|
|
4274
|
-
//#region packages/intl-pluralrules/get_internal_slots.ts
|
|
4182
|
+
// packages/intl-pluralrules/get_internal_slots.ts
|
|
4275
4183
|
const internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
4276
4184
|
function getInternalSlots(x) {
|
|
4277
4185
|
let internalSlots = internalSlotMap.get(x);
|
|
@@ -4281,8 +4189,7 @@ function getInternalSlots(x) {
|
|
|
4281
4189
|
}
|
|
4282
4190
|
return internalSlots;
|
|
4283
4191
|
}
|
|
4284
|
-
|
|
4285
|
-
//#region packages/intl-pluralrules/index.ts
|
|
4192
|
+
// packages/intl-pluralrules/index.ts
|
|
4286
4193
|
function validateInstance(instance, method) {
|
|
4287
4194
|
if (!(instance instanceof PluralRules)) throw new TypeError(`Method Intl.PluralRules.prototype.${method} called on incompatible receiver ${String(instance)}`);
|
|
4288
4195
|
}
|
|
@@ -4484,8 +4391,7 @@ try {
|
|
|
4484
4391
|
configurable: true
|
|
4485
4392
|
});
|
|
4486
4393
|
} catch {}
|
|
4487
|
-
|
|
4488
|
-
//#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-pluralrules.js
|
|
4394
|
+
// node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-pluralrules.js
|
|
4489
4395
|
const supportedLocales = [
|
|
4490
4396
|
"af",
|
|
4491
4397
|
"ak",
|
|
@@ -4680,6 +4586,7 @@ const supportedLocales = [
|
|
|
4680
4586
|
"ta",
|
|
4681
4587
|
"te",
|
|
4682
4588
|
"teo",
|
|
4589
|
+
"tg",
|
|
4683
4590
|
"th",
|
|
4684
4591
|
"ti",
|
|
4685
4592
|
"tig",
|
|
@@ -4712,8 +4619,7 @@ const supportedLocales = [
|
|
|
4712
4619
|
"zh",
|
|
4713
4620
|
"zu"
|
|
4714
4621
|
];
|
|
4715
|
-
|
|
4716
|
-
//#region packages/intl-pluralrules/should-polyfill.ts
|
|
4622
|
+
// packages/intl-pluralrules/should-polyfill.ts
|
|
4717
4623
|
function supportedLocalesOf(locale) {
|
|
4718
4624
|
if (!locale) return true;
|
|
4719
4625
|
const locales = Array.isArray(locale) ? locale : [locale];
|
|
@@ -4722,8 +4628,7 @@ function supportedLocalesOf(locale) {
|
|
|
4722
4628
|
function shouldPolyfill(locale = "en") {
|
|
4723
4629
|
if (typeof Intl === "undefined" || !("PluralRules" in Intl) || new Intl.PluralRules("en", { minimumFractionDigits: 2 }).select(1) === "one" || !supportedLocalesOf(locale)) return locale ? match([locale], supportedLocales, "en") : void 0;
|
|
4724
4630
|
}
|
|
4725
|
-
|
|
4726
|
-
//#region packages/intl-pluralrules/polyfill.ts
|
|
4631
|
+
// packages/intl-pluralrules/polyfill.ts
|
|
4727
4632
|
const intl = ensureIntl();
|
|
4728
4633
|
if (shouldPolyfill()) {
|
|
4729
4634
|
defineProperty(intl, "PluralRules", { value: PluralRules });
|
|
@@ -4733,6 +4638,5 @@ if (shouldPolyfill()) {
|
|
|
4733
4638
|
delete globalThis.__FORMATJS_PLURALRULES_DATA__;
|
|
4734
4639
|
}
|
|
4735
4640
|
}
|
|
4736
|
-
//#endregion
|
|
4737
4641
|
|
|
4738
4642
|
//# sourceMappingURL=polyfill.iife.js.map
|