@formatjs/intl-relativetimeformat 11.2.13 → 11.2.15
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocaleFieldsData, RelativeTimeFormatInternal } from '@formatjs/ecma402-abstract';
|
|
2
2
|
export declare function InitializeRelativeTimeFormat(rtf: Intl.RelativeTimeFormat, locales: string | string[] | undefined, options: Intl.RelativeTimeFormatOptions | undefined, { getInternalSlots, availableLocales, relevantExtensionKeys, localeData, getDefaultLocale, }: {
|
|
3
3
|
getInternalSlots(rtf: Intl.RelativeTimeFormat): RelativeTimeFormatInternal;
|
|
4
4
|
availableLocales: Set<string>;
|
|
@@ -30,8 +30,8 @@ function InitializeRelativeTimeFormat(rtf, locales, options, _a) {
|
|
|
30
30
|
var fields = localeData[r.dataLocale];
|
|
31
31
|
(0, ecma402_abstract_1.invariant)(!!fields, "Missing locale data for ".concat(r.dataLocale));
|
|
32
32
|
internalSlots.fields = fields;
|
|
33
|
-
internalSlots.numberFormat =
|
|
34
|
-
internalSlots.pluralRules =
|
|
33
|
+
internalSlots.numberFormat = (0, ecma402_abstract_1.createMemoizedNumberFormat)(locales);
|
|
34
|
+
internalSlots.pluralRules = (0, ecma402_abstract_1.createMemoizedPluralRules)(locales);
|
|
35
35
|
internalSlots.numberingSystem = nu;
|
|
36
36
|
return rtf;
|
|
37
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocaleFieldsData, RelativeTimeFormatInternal } from '@formatjs/ecma402-abstract';
|
|
2
2
|
export declare function InitializeRelativeTimeFormat(rtf: Intl.RelativeTimeFormat, locales: string | string[] | undefined, options: Intl.RelativeTimeFormatOptions | undefined, { getInternalSlots, availableLocales, relevantExtensionKeys, localeData, getDefaultLocale, }: {
|
|
3
3
|
getInternalSlots(rtf: Intl.RelativeTimeFormat): RelativeTimeFormatInternal;
|
|
4
4
|
availableLocales: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CanonicalizeLocaleList, CoerceOptionsToObject, GetOption, invariant, } from '@formatjs/ecma402-abstract';
|
|
1
|
+
import { CanonicalizeLocaleList, CoerceOptionsToObject, createMemoizedNumberFormat, createMemoizedPluralRules, GetOption, invariant, } from '@formatjs/ecma402-abstract';
|
|
2
2
|
import { ResolveLocale } from '@formatjs/intl-localematcher';
|
|
3
3
|
var NUMBERING_SYSTEM_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;
|
|
4
4
|
export function InitializeRelativeTimeFormat(rtf, locales, options, _a) {
|
|
@@ -27,8 +27,8 @@ export function InitializeRelativeTimeFormat(rtf, locales, options, _a) {
|
|
|
27
27
|
var fields = localeData[r.dataLocale];
|
|
28
28
|
invariant(!!fields, "Missing locale data for ".concat(r.dataLocale));
|
|
29
29
|
internalSlots.fields = fields;
|
|
30
|
-
internalSlots.numberFormat =
|
|
31
|
-
internalSlots.pluralRules =
|
|
30
|
+
internalSlots.numberFormat = createMemoizedNumberFormat(locales);
|
|
31
|
+
internalSlots.pluralRules = createMemoizedPluralRules(locales);
|
|
32
32
|
internalSlots.numberingSystem = nu;
|
|
33
33
|
return rtf;
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-relativetimeformat",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.15",
|
|
4
4
|
"description": "Formats JavaScript dates to relative time strings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"tslib": "^2.4.0",
|
|
24
|
-
"@formatjs/
|
|
25
|
-
"@formatjs/
|
|
24
|
+
"@formatjs/ecma402-abstract": "2.1.0",
|
|
25
|
+
"@formatjs/intl-localematcher": "0.5.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@formatjs/intl-locale": "3.4.6",
|
|
29
28
|
"@formatjs/intl-getcanonicallocales": "2.3.0",
|
|
30
|
-
"@formatjs/intl-
|
|
29
|
+
"@formatjs/intl-locale": "4.0.1",
|
|
30
|
+
"@formatjs/intl-pluralrules": "5.2.15"
|
|
31
31
|
},
|
|
32
32
|
"main": "index.js",
|
|
33
33
|
"types": "index.d.ts",
|
package/polyfill.iife.js
CHANGED
|
@@ -143,28 +143,6 @@
|
|
|
143
143
|
}
|
|
144
144
|
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
145
145
|
|
|
146
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
147
|
-
function invariant(condition, message, Err) {
|
|
148
|
-
if (Err === void 0) {
|
|
149
|
-
Err = Error;
|
|
150
|
-
}
|
|
151
|
-
if (!condition) {
|
|
152
|
-
throw new Err(message);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
157
|
-
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]/;
|
|
158
|
-
|
|
159
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
160
|
-
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
161
|
-
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
162
|
-
|
|
163
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
|
|
164
|
-
function CanonicalizeLocaleList2(locales) {
|
|
165
|
-
return Intl.getCanonicalLocales(locales);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
146
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
|
|
169
147
|
var extendStatics = function(d, b) {
|
|
170
148
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -197,6 +175,145 @@
|
|
|
197
175
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
198
176
|
}
|
|
199
177
|
|
|
178
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
|
|
179
|
+
function memoize(fn, options) {
|
|
180
|
+
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
181
|
+
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
182
|
+
var strategy = options && options.strategy ? options.strategy : strategyDefault;
|
|
183
|
+
return strategy(fn, {
|
|
184
|
+
cache,
|
|
185
|
+
serializer
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
function isPrimitive(value) {
|
|
189
|
+
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
190
|
+
}
|
|
191
|
+
function monadic(fn, cache, serializer, arg) {
|
|
192
|
+
var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
193
|
+
var computedValue = cache.get(cacheKey);
|
|
194
|
+
if (typeof computedValue === "undefined") {
|
|
195
|
+
computedValue = fn.call(this, arg);
|
|
196
|
+
cache.set(cacheKey, computedValue);
|
|
197
|
+
}
|
|
198
|
+
return computedValue;
|
|
199
|
+
}
|
|
200
|
+
function variadic(fn, cache, serializer) {
|
|
201
|
+
var args = Array.prototype.slice.call(arguments, 3);
|
|
202
|
+
var cacheKey = serializer(args);
|
|
203
|
+
var computedValue = cache.get(cacheKey);
|
|
204
|
+
if (typeof computedValue === "undefined") {
|
|
205
|
+
computedValue = fn.apply(this, args);
|
|
206
|
+
cache.set(cacheKey, computedValue);
|
|
207
|
+
}
|
|
208
|
+
return computedValue;
|
|
209
|
+
}
|
|
210
|
+
function assemble(fn, context, strategy, cache, serialize) {
|
|
211
|
+
return strategy.bind(context, fn, cache, serialize);
|
|
212
|
+
}
|
|
213
|
+
function strategyDefault(fn, options) {
|
|
214
|
+
var strategy = fn.length === 1 ? monadic : variadic;
|
|
215
|
+
return assemble(fn, this, strategy, options.cache.create(), options.serializer);
|
|
216
|
+
}
|
|
217
|
+
function strategyVariadic(fn, options) {
|
|
218
|
+
return assemble(fn, this, variadic, options.cache.create(), options.serializer);
|
|
219
|
+
}
|
|
220
|
+
function strategyMonadic(fn, options) {
|
|
221
|
+
return assemble(fn, this, monadic, options.cache.create(), options.serializer);
|
|
222
|
+
}
|
|
223
|
+
var serializerDefault = function() {
|
|
224
|
+
return JSON.stringify(arguments);
|
|
225
|
+
};
|
|
226
|
+
function ObjectWithoutPrototypeCache() {
|
|
227
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
228
|
+
}
|
|
229
|
+
ObjectWithoutPrototypeCache.prototype.get = function(key) {
|
|
230
|
+
return this.cache[key];
|
|
231
|
+
};
|
|
232
|
+
ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
233
|
+
this.cache[key] = value;
|
|
234
|
+
};
|
|
235
|
+
var cacheDefault = {
|
|
236
|
+
create: function create() {
|
|
237
|
+
return new ObjectWithoutPrototypeCache();
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
var strategies = {
|
|
241
|
+
variadic: strategyVariadic,
|
|
242
|
+
monadic: strategyMonadic
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
246
|
+
function invariant(condition, message, Err) {
|
|
247
|
+
if (Err === void 0) {
|
|
248
|
+
Err = Error;
|
|
249
|
+
}
|
|
250
|
+
if (!condition) {
|
|
251
|
+
throw new Err(message);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
var createMemoizedNumberFormat = memoize(function() {
|
|
255
|
+
var _a;
|
|
256
|
+
var args = [];
|
|
257
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
258
|
+
args[_i] = arguments[_i];
|
|
259
|
+
}
|
|
260
|
+
return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
261
|
+
}, {
|
|
262
|
+
strategy: strategies.variadic
|
|
263
|
+
});
|
|
264
|
+
var createMemoizedDateTimeFormat = memoize(function() {
|
|
265
|
+
var _a;
|
|
266
|
+
var args = [];
|
|
267
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
268
|
+
args[_i] = arguments[_i];
|
|
269
|
+
}
|
|
270
|
+
return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
271
|
+
}, {
|
|
272
|
+
strategy: strategies.variadic
|
|
273
|
+
});
|
|
274
|
+
var createMemoizedPluralRules = memoize(function() {
|
|
275
|
+
var _a;
|
|
276
|
+
var args = [];
|
|
277
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
278
|
+
args[_i] = arguments[_i];
|
|
279
|
+
}
|
|
280
|
+
return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
281
|
+
}, {
|
|
282
|
+
strategy: strategies.variadic
|
|
283
|
+
});
|
|
284
|
+
var createMemoizedLocale = memoize(function() {
|
|
285
|
+
var _a;
|
|
286
|
+
var args = [];
|
|
287
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
288
|
+
args[_i] = arguments[_i];
|
|
289
|
+
}
|
|
290
|
+
return new ((_a = Intl.Locale).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
291
|
+
}, {
|
|
292
|
+
strategy: strategies.variadic
|
|
293
|
+
});
|
|
294
|
+
var createMemoizedListFormat = memoize(function() {
|
|
295
|
+
var _a;
|
|
296
|
+
var args = [];
|
|
297
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
298
|
+
args[_i] = arguments[_i];
|
|
299
|
+
}
|
|
300
|
+
return new ((_a = Intl.ListFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
301
|
+
}, {
|
|
302
|
+
strategy: strategies.variadic
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
306
|
+
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]/;
|
|
307
|
+
|
|
308
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
309
|
+
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
310
|
+
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
311
|
+
|
|
312
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
|
|
313
|
+
function CanonicalizeLocaleList2(locales) {
|
|
314
|
+
return Intl.getCanonicalLocales(locales);
|
|
315
|
+
}
|
|
316
|
+
|
|
200
317
|
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/languageMatching.js
|
|
201
318
|
var data = {
|
|
202
319
|
supplemental: {
|
|
@@ -4596,8 +4713,8 @@
|
|
|
4596
4713
|
var fields = localeData[r.dataLocale];
|
|
4597
4714
|
invariant(!!fields, "Missing locale data for ".concat(r.dataLocale));
|
|
4598
4715
|
internalSlots.fields = fields;
|
|
4599
|
-
internalSlots.numberFormat =
|
|
4600
|
-
internalSlots.pluralRules =
|
|
4716
|
+
internalSlots.numberFormat = createMemoizedNumberFormat(locales);
|
|
4717
|
+
internalSlots.pluralRules = createMemoizedPluralRules(locales);
|
|
4601
4718
|
internalSlots.numberingSystem = nu;
|
|
4602
4719
|
return rtf;
|
|
4603
4720
|
}
|