@formatjs/intl-locale 4.0.1 → 4.0.2
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/get_internal_slots.js +1 -1
- package/package.json +5 -5
- package/polyfill.iife.js +1368 -856
- package/preference-data.js +4 -5
- package/should-polyfill.js +1 -2
package/polyfill.iife.js
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
8
25
|
var __esm = (fn, res) => function __init() {
|
|
9
26
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
27
|
};
|
|
@@ -32,10 +49,15 @@
|
|
|
32
49
|
mod
|
|
33
50
|
));
|
|
34
51
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
52
|
+
var __publicField = (obj, key, value) => {
|
|
53
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
54
|
+
return value;
|
|
55
|
+
};
|
|
35
56
|
|
|
36
|
-
//
|
|
57
|
+
// node_modules/.aspect_rules_js/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs
|
|
37
58
|
var tslib_es6_exports = {};
|
|
38
59
|
__export(tslib_es6_exports, {
|
|
60
|
+
__addDisposableResource: () => __addDisposableResource,
|
|
39
61
|
__assign: () => __assign,
|
|
40
62
|
__asyncDelegator: () => __asyncDelegator,
|
|
41
63
|
__asyncGenerator: () => __asyncGenerator,
|
|
@@ -47,6 +69,8 @@
|
|
|
47
69
|
__classPrivateFieldSet: () => __classPrivateFieldSet,
|
|
48
70
|
__createBinding: () => __createBinding,
|
|
49
71
|
__decorate: () => __decorate,
|
|
72
|
+
__disposeResources: () => __disposeResources,
|
|
73
|
+
__esDecorate: () => __esDecorate,
|
|
50
74
|
__exportStar: () => __exportStar,
|
|
51
75
|
__extends: () => __extends,
|
|
52
76
|
__generator: () => __generator,
|
|
@@ -55,12 +79,16 @@
|
|
|
55
79
|
__makeTemplateObject: () => __makeTemplateObject,
|
|
56
80
|
__metadata: () => __metadata,
|
|
57
81
|
__param: () => __param,
|
|
82
|
+
__propKey: () => __propKey,
|
|
58
83
|
__read: () => __read,
|
|
59
84
|
__rest: () => __rest,
|
|
85
|
+
__runInitializers: () => __runInitializers,
|
|
86
|
+
__setFunctionName: () => __setFunctionName,
|
|
60
87
|
__spread: () => __spread,
|
|
61
88
|
__spreadArray: () => __spreadArray,
|
|
62
89
|
__spreadArrays: () => __spreadArrays,
|
|
63
|
-
__values: () => __values
|
|
90
|
+
__values: () => __values,
|
|
91
|
+
default: () => tslib_es6_default
|
|
64
92
|
});
|
|
65
93
|
function __extends(d, b) {
|
|
66
94
|
if (typeof b !== "function" && b !== null)
|
|
@@ -98,6 +126,65 @@
|
|
|
98
126
|
decorator(target, key, paramIndex);
|
|
99
127
|
};
|
|
100
128
|
}
|
|
129
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
130
|
+
function accept(f) {
|
|
131
|
+
if (f !== void 0 && typeof f !== "function")
|
|
132
|
+
throw new TypeError("Function expected");
|
|
133
|
+
return f;
|
|
134
|
+
}
|
|
135
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
136
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
137
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
138
|
+
var _, done = false;
|
|
139
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
140
|
+
var context = {};
|
|
141
|
+
for (var p in contextIn)
|
|
142
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
143
|
+
for (var p in contextIn.access)
|
|
144
|
+
context.access[p] = contextIn.access[p];
|
|
145
|
+
context.addInitializer = function(f) {
|
|
146
|
+
if (done)
|
|
147
|
+
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
148
|
+
extraInitializers.push(accept(f || null));
|
|
149
|
+
};
|
|
150
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
151
|
+
if (kind === "accessor") {
|
|
152
|
+
if (result === void 0)
|
|
153
|
+
continue;
|
|
154
|
+
if (result === null || typeof result !== "object")
|
|
155
|
+
throw new TypeError("Object expected");
|
|
156
|
+
if (_ = accept(result.get))
|
|
157
|
+
descriptor.get = _;
|
|
158
|
+
if (_ = accept(result.set))
|
|
159
|
+
descriptor.set = _;
|
|
160
|
+
if (_ = accept(result.init))
|
|
161
|
+
initializers.unshift(_);
|
|
162
|
+
} else if (_ = accept(result)) {
|
|
163
|
+
if (kind === "field")
|
|
164
|
+
initializers.unshift(_);
|
|
165
|
+
else
|
|
166
|
+
descriptor[key] = _;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (target)
|
|
170
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
171
|
+
done = true;
|
|
172
|
+
}
|
|
173
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
174
|
+
var useValue = arguments.length > 2;
|
|
175
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
176
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
177
|
+
}
|
|
178
|
+
return useValue ? value : void 0;
|
|
179
|
+
}
|
|
180
|
+
function __propKey(x) {
|
|
181
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
182
|
+
}
|
|
183
|
+
function __setFunctionName(f, name, prefix) {
|
|
184
|
+
if (typeof name === "symbol")
|
|
185
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
186
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
187
|
+
}
|
|
101
188
|
function __metadata(metadataKey, metadataValue) {
|
|
102
189
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
103
190
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
@@ -134,8 +221,8 @@
|
|
|
134
221
|
if (t[0] & 1)
|
|
135
222
|
throw t[1];
|
|
136
223
|
return t[1];
|
|
137
|
-
}, trys: [], ops: [] }, f, y, t, g;
|
|
138
|
-
return g =
|
|
224
|
+
}, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
225
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
139
226
|
return this;
|
|
140
227
|
}), g;
|
|
141
228
|
function verb(n) {
|
|
@@ -146,7 +233,7 @@
|
|
|
146
233
|
function step(op) {
|
|
147
234
|
if (f)
|
|
148
235
|
throw new TypeError("Generator is already executing.");
|
|
149
|
-
while (_)
|
|
236
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
150
237
|
try {
|
|
151
238
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
152
239
|
return t;
|
|
@@ -276,16 +363,24 @@
|
|
|
276
363
|
if (!Symbol.asyncIterator)
|
|
277
364
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
278
365
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
279
|
-
return i =
|
|
366
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
280
367
|
return this;
|
|
281
368
|
}, i;
|
|
282
|
-
function
|
|
283
|
-
|
|
369
|
+
function awaitReturn(f) {
|
|
370
|
+
return function(v) {
|
|
371
|
+
return Promise.resolve(v).then(f, reject);
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
function verb(n, f) {
|
|
375
|
+
if (g[n]) {
|
|
284
376
|
i[n] = function(v) {
|
|
285
377
|
return new Promise(function(a, b) {
|
|
286
378
|
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
287
379
|
});
|
|
288
380
|
};
|
|
381
|
+
if (f)
|
|
382
|
+
i[n] = f(i[n]);
|
|
383
|
+
}
|
|
289
384
|
}
|
|
290
385
|
function resume(n, v) {
|
|
291
386
|
try {
|
|
@@ -317,7 +412,7 @@
|
|
|
317
412
|
}, i;
|
|
318
413
|
function verb(n, f) {
|
|
319
414
|
i[n] = o[n] ? function(v) {
|
|
320
|
-
return (p = !p) ? { value: __await(o[n](v)), done:
|
|
415
|
+
return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
|
|
321
416
|
} : f;
|
|
322
417
|
}
|
|
323
418
|
}
|
|
@@ -385,9 +480,73 @@
|
|
|
385
480
|
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
386
481
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
387
482
|
}
|
|
388
|
-
|
|
483
|
+
function __addDisposableResource(env, value, async) {
|
|
484
|
+
if (value !== null && value !== void 0) {
|
|
485
|
+
if (typeof value !== "object" && typeof value !== "function")
|
|
486
|
+
throw new TypeError("Object expected.");
|
|
487
|
+
var dispose, inner;
|
|
488
|
+
if (async) {
|
|
489
|
+
if (!Symbol.asyncDispose)
|
|
490
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
491
|
+
dispose = value[Symbol.asyncDispose];
|
|
492
|
+
}
|
|
493
|
+
if (dispose === void 0) {
|
|
494
|
+
if (!Symbol.dispose)
|
|
495
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
|
496
|
+
dispose = value[Symbol.dispose];
|
|
497
|
+
if (async)
|
|
498
|
+
inner = dispose;
|
|
499
|
+
}
|
|
500
|
+
if (typeof dispose !== "function")
|
|
501
|
+
throw new TypeError("Object not disposable.");
|
|
502
|
+
if (inner)
|
|
503
|
+
dispose = function() {
|
|
504
|
+
try {
|
|
505
|
+
inner.call(this);
|
|
506
|
+
} catch (e) {
|
|
507
|
+
return Promise.reject(e);
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
env.stack.push({ value, dispose, async });
|
|
511
|
+
} else if (async) {
|
|
512
|
+
env.stack.push({ async: true });
|
|
513
|
+
}
|
|
514
|
+
return value;
|
|
515
|
+
}
|
|
516
|
+
function __disposeResources(env) {
|
|
517
|
+
function fail(e) {
|
|
518
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
519
|
+
env.hasError = true;
|
|
520
|
+
}
|
|
521
|
+
var r, s = 0;
|
|
522
|
+
function next() {
|
|
523
|
+
while (r = env.stack.pop()) {
|
|
524
|
+
try {
|
|
525
|
+
if (!r.async && s === 1)
|
|
526
|
+
return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
527
|
+
if (r.dispose) {
|
|
528
|
+
var result = r.dispose.call(r.value);
|
|
529
|
+
if (r.async)
|
|
530
|
+
return s |= 2, Promise.resolve(result).then(next, function(e) {
|
|
531
|
+
fail(e);
|
|
532
|
+
return next();
|
|
533
|
+
});
|
|
534
|
+
} else
|
|
535
|
+
s |= 1;
|
|
536
|
+
} catch (e) {
|
|
537
|
+
fail(e);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
if (s === 1)
|
|
541
|
+
return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
542
|
+
if (env.hasError)
|
|
543
|
+
throw env.error;
|
|
544
|
+
}
|
|
545
|
+
return next();
|
|
546
|
+
}
|
|
547
|
+
var extendStatics, __assign, __createBinding, __setModuleDefault, _SuppressedError, tslib_es6_default;
|
|
389
548
|
var init_tslib_es6 = __esm({
|
|
390
|
-
"
|
|
549
|
+
"node_modules/.aspect_rules_js/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs"() {
|
|
391
550
|
extendStatics = function(d, b) {
|
|
392
551
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
393
552
|
d2.__proto__ = b2;
|
|
@@ -430,28 +589,72 @@
|
|
|
430
589
|
} : function(o, v) {
|
|
431
590
|
o["default"] = v;
|
|
432
591
|
};
|
|
592
|
+
_SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
593
|
+
var e = new Error(message);
|
|
594
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
595
|
+
};
|
|
596
|
+
tslib_es6_default = {
|
|
597
|
+
__extends,
|
|
598
|
+
__assign,
|
|
599
|
+
__rest,
|
|
600
|
+
__decorate,
|
|
601
|
+
__param,
|
|
602
|
+
__metadata,
|
|
603
|
+
__awaiter,
|
|
604
|
+
__generator,
|
|
605
|
+
__createBinding,
|
|
606
|
+
__exportStar,
|
|
607
|
+
__values,
|
|
608
|
+
__read,
|
|
609
|
+
__spread,
|
|
610
|
+
__spreadArrays,
|
|
611
|
+
__spreadArray,
|
|
612
|
+
__await,
|
|
613
|
+
__asyncGenerator,
|
|
614
|
+
__asyncDelegator,
|
|
615
|
+
__asyncValues,
|
|
616
|
+
__makeTemplateObject,
|
|
617
|
+
__importStar,
|
|
618
|
+
__importDefault,
|
|
619
|
+
__classPrivateFieldGet,
|
|
620
|
+
__classPrivateFieldSet,
|
|
621
|
+
__classPrivateFieldIn,
|
|
622
|
+
__addDisposableResource,
|
|
623
|
+
__disposeResources
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/should-polyfill.js
|
|
629
|
+
var require_should_polyfill = __commonJS({
|
|
630
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/should-polyfill.js"(exports) {
|
|
631
|
+
"use strict";
|
|
632
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
633
|
+
exports.shouldPolyfill = shouldPolyfill2;
|
|
634
|
+
function shouldPolyfill2() {
|
|
635
|
+
return !("supportedValuesOf" in Intl);
|
|
636
|
+
}
|
|
433
637
|
}
|
|
434
638
|
});
|
|
435
639
|
|
|
436
|
-
//
|
|
640
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/CanonicalizeLocaleList.js
|
|
437
641
|
var require_CanonicalizeLocaleList = __commonJS({
|
|
438
|
-
"
|
|
642
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/CanonicalizeLocaleList.js"(exports) {
|
|
439
643
|
"use strict";
|
|
440
644
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
441
|
-
exports.CanonicalizeLocaleList =
|
|
442
|
-
function
|
|
645
|
+
exports.CanonicalizeLocaleList = CanonicalizeLocaleList3;
|
|
646
|
+
function CanonicalizeLocaleList3(locales) {
|
|
443
647
|
return Intl.getCanonicalLocales(locales);
|
|
444
648
|
}
|
|
445
|
-
exports.CanonicalizeLocaleList = CanonicalizeLocaleList;
|
|
446
649
|
}
|
|
447
650
|
});
|
|
448
651
|
|
|
449
|
-
//
|
|
652
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/CanonicalizeTimeZoneName.js
|
|
450
653
|
var require_CanonicalizeTimeZoneName = __commonJS({
|
|
451
|
-
"
|
|
654
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/CanonicalizeTimeZoneName.js"(exports) {
|
|
452
655
|
"use strict";
|
|
453
656
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
454
|
-
exports.CanonicalizeTimeZoneName =
|
|
657
|
+
exports.CanonicalizeTimeZoneName = CanonicalizeTimeZoneName;
|
|
455
658
|
function CanonicalizeTimeZoneName(tz, _a) {
|
|
456
659
|
var zoneNames = _a.zoneNames, uppercaseLinks = _a.uppercaseLinks;
|
|
457
660
|
var uppercasedTz = tz.toUpperCase();
|
|
@@ -465,23 +668,43 @@
|
|
|
465
668
|
}
|
|
466
669
|
return ianaTimeZone;
|
|
467
670
|
}
|
|
468
|
-
exports.CanonicalizeTimeZoneName = CanonicalizeTimeZoneName;
|
|
469
671
|
}
|
|
470
672
|
});
|
|
471
673
|
|
|
472
|
-
//
|
|
674
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/262.js
|
|
473
675
|
var require__ = __commonJS({
|
|
474
|
-
"
|
|
676
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/262.js"(exports) {
|
|
475
677
|
"use strict";
|
|
476
678
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
477
|
-
exports.
|
|
478
|
-
|
|
679
|
+
exports.ToString = ToString2;
|
|
680
|
+
exports.ToNumber = ToNumber;
|
|
681
|
+
exports.TimeClip = TimeClip;
|
|
682
|
+
exports.ToObject = ToObject2;
|
|
683
|
+
exports.SameValue = SameValue2;
|
|
684
|
+
exports.ArrayCreate = ArrayCreate2;
|
|
685
|
+
exports.HasOwnProperty = HasOwnProperty2;
|
|
686
|
+
exports.Type = Type;
|
|
687
|
+
exports.Day = Day;
|
|
688
|
+
exports.WeekDay = WeekDay;
|
|
689
|
+
exports.DayFromYear = DayFromYear;
|
|
690
|
+
exports.TimeFromYear = TimeFromYear;
|
|
691
|
+
exports.YearFromTime = YearFromTime;
|
|
692
|
+
exports.DaysInYear = DaysInYear;
|
|
693
|
+
exports.DayWithinYear = DayWithinYear;
|
|
694
|
+
exports.InLeapYear = InLeapYear;
|
|
695
|
+
exports.MonthFromTime = MonthFromTime;
|
|
696
|
+
exports.DateFromTime = DateFromTime;
|
|
697
|
+
exports.HourFromTime = HourFromTime;
|
|
698
|
+
exports.MinFromTime = MinFromTime;
|
|
699
|
+
exports.SecFromTime = SecFromTime;
|
|
700
|
+
exports.OrdinaryHasInstance = OrdinaryHasInstance;
|
|
701
|
+
exports.msFromTime = msFromTime;
|
|
702
|
+
function ToString2(o) {
|
|
479
703
|
if (typeof o === "symbol") {
|
|
480
704
|
throw TypeError("Cannot convert a Symbol value to a string");
|
|
481
705
|
}
|
|
482
706
|
return String(o);
|
|
483
707
|
}
|
|
484
|
-
exports.ToString = ToString;
|
|
485
708
|
function ToNumber(val) {
|
|
486
709
|
if (val === void 0) {
|
|
487
710
|
return NaN;
|
|
@@ -500,7 +723,6 @@
|
|
|
500
723
|
}
|
|
501
724
|
return Number(val);
|
|
502
725
|
}
|
|
503
|
-
exports.ToNumber = ToNumber;
|
|
504
726
|
function ToInteger(n) {
|
|
505
727
|
var number = ToNumber(n);
|
|
506
728
|
if (isNaN(number) || SameValue2(number, -0)) {
|
|
@@ -527,14 +749,12 @@
|
|
|
527
749
|
}
|
|
528
750
|
return ToInteger(time);
|
|
529
751
|
}
|
|
530
|
-
|
|
531
|
-
function ToObject(arg) {
|
|
752
|
+
function ToObject2(arg) {
|
|
532
753
|
if (arg == null) {
|
|
533
754
|
throw new TypeError("undefined/null cannot be converted to object");
|
|
534
755
|
}
|
|
535
756
|
return Object(arg);
|
|
536
757
|
}
|
|
537
|
-
exports.ToObject = ToObject;
|
|
538
758
|
function SameValue2(x, y) {
|
|
539
759
|
if (Object.is) {
|
|
540
760
|
return Object.is(x, y);
|
|
@@ -544,15 +764,12 @@
|
|
|
544
764
|
}
|
|
545
765
|
return x !== x && y !== y;
|
|
546
766
|
}
|
|
547
|
-
|
|
548
|
-
function ArrayCreate(len) {
|
|
767
|
+
function ArrayCreate2(len) {
|
|
549
768
|
return new Array(len);
|
|
550
769
|
}
|
|
551
|
-
exports.ArrayCreate = ArrayCreate;
|
|
552
770
|
function HasOwnProperty2(o, prop) {
|
|
553
771
|
return Object.prototype.hasOwnProperty.call(o, prop);
|
|
554
772
|
}
|
|
555
|
-
exports.HasOwnProperty = HasOwnProperty2;
|
|
556
773
|
function Type(x) {
|
|
557
774
|
if (x === null) {
|
|
558
775
|
return "Null";
|
|
@@ -579,7 +796,6 @@
|
|
|
579
796
|
return "BigInt";
|
|
580
797
|
}
|
|
581
798
|
}
|
|
582
|
-
exports.Type = Type;
|
|
583
799
|
var MS_PER_DAY = 864e5;
|
|
584
800
|
function mod(x, y) {
|
|
585
801
|
return x - Math.floor(x / y) * y;
|
|
@@ -587,23 +803,18 @@
|
|
|
587
803
|
function Day(t) {
|
|
588
804
|
return Math.floor(t / MS_PER_DAY);
|
|
589
805
|
}
|
|
590
|
-
exports.Day = Day;
|
|
591
806
|
function WeekDay(t) {
|
|
592
807
|
return mod(Day(t) + 4, 7);
|
|
593
808
|
}
|
|
594
|
-
exports.WeekDay = WeekDay;
|
|
595
809
|
function DayFromYear(y) {
|
|
596
810
|
return Date.UTC(y, 0) / MS_PER_DAY;
|
|
597
811
|
}
|
|
598
|
-
exports.DayFromYear = DayFromYear;
|
|
599
812
|
function TimeFromYear(y) {
|
|
600
813
|
return Date.UTC(y, 0);
|
|
601
814
|
}
|
|
602
|
-
exports.TimeFromYear = TimeFromYear;
|
|
603
815
|
function YearFromTime(t) {
|
|
604
816
|
return new Date(t).getUTCFullYear();
|
|
605
817
|
}
|
|
606
|
-
exports.YearFromTime = YearFromTime;
|
|
607
818
|
function DaysInYear(y) {
|
|
608
819
|
if (y % 4 !== 0) {
|
|
609
820
|
return 365;
|
|
@@ -616,15 +827,12 @@
|
|
|
616
827
|
}
|
|
617
828
|
return 366;
|
|
618
829
|
}
|
|
619
|
-
exports.DaysInYear = DaysInYear;
|
|
620
830
|
function DayWithinYear(t) {
|
|
621
831
|
return Day(t) - DayFromYear(YearFromTime(t));
|
|
622
832
|
}
|
|
623
|
-
exports.DayWithinYear = DayWithinYear;
|
|
624
833
|
function InLeapYear(t) {
|
|
625
834
|
return DaysInYear(YearFromTime(t)) === 365 ? 0 : 1;
|
|
626
835
|
}
|
|
627
|
-
exports.InLeapYear = InLeapYear;
|
|
628
836
|
function MonthFromTime(t) {
|
|
629
837
|
var dwy = DayWithinYear(t);
|
|
630
838
|
var leap = InLeapYear(t);
|
|
@@ -666,7 +874,6 @@
|
|
|
666
874
|
}
|
|
667
875
|
throw new Error("Invalid time");
|
|
668
876
|
}
|
|
669
|
-
exports.MonthFromTime = MonthFromTime;
|
|
670
877
|
function DateFromTime(t) {
|
|
671
878
|
var dwy = DayWithinYear(t);
|
|
672
879
|
var mft = MonthFromTime(t);
|
|
@@ -709,25 +916,21 @@
|
|
|
709
916
|
}
|
|
710
917
|
throw new Error("Invalid time");
|
|
711
918
|
}
|
|
712
|
-
exports.DateFromTime = DateFromTime;
|
|
713
919
|
var HOURS_PER_DAY = 24;
|
|
714
|
-
var
|
|
715
|
-
var
|
|
716
|
-
var
|
|
717
|
-
var
|
|
718
|
-
var
|
|
920
|
+
var MINUTES_PER_HOUR2 = 60;
|
|
921
|
+
var SECONDS_PER_MINUTE2 = 60;
|
|
922
|
+
var MS_PER_SECOND2 = 1e3;
|
|
923
|
+
var MS_PER_MINUTE2 = MS_PER_SECOND2 * SECONDS_PER_MINUTE2;
|
|
924
|
+
var MS_PER_HOUR2 = MS_PER_MINUTE2 * MINUTES_PER_HOUR2;
|
|
719
925
|
function HourFromTime(t) {
|
|
720
|
-
return mod(Math.floor(t /
|
|
926
|
+
return mod(Math.floor(t / MS_PER_HOUR2), HOURS_PER_DAY);
|
|
721
927
|
}
|
|
722
|
-
exports.HourFromTime = HourFromTime;
|
|
723
928
|
function MinFromTime(t) {
|
|
724
|
-
return mod(Math.floor(t /
|
|
929
|
+
return mod(Math.floor(t / MS_PER_MINUTE2), MINUTES_PER_HOUR2);
|
|
725
930
|
}
|
|
726
|
-
exports.MinFromTime = MinFromTime;
|
|
727
931
|
function SecFromTime(t) {
|
|
728
|
-
return mod(Math.floor(t /
|
|
932
|
+
return mod(Math.floor(t / MS_PER_SECOND2), SECONDS_PER_MINUTE2);
|
|
729
933
|
}
|
|
730
|
-
exports.SecFromTime = SecFromTime;
|
|
731
934
|
function IsCallable(fn) {
|
|
732
935
|
return typeof fn === "function";
|
|
733
936
|
}
|
|
@@ -748,20 +951,18 @@
|
|
|
748
951
|
}
|
|
749
952
|
return Object.prototype.isPrototypeOf.call(P, O);
|
|
750
953
|
}
|
|
751
|
-
exports.OrdinaryHasInstance = OrdinaryHasInstance;
|
|
752
954
|
function msFromTime(t) {
|
|
753
|
-
return mod(t,
|
|
955
|
+
return mod(t, MS_PER_SECOND2);
|
|
754
956
|
}
|
|
755
|
-
exports.msFromTime = msFromTime;
|
|
756
957
|
}
|
|
757
958
|
});
|
|
758
959
|
|
|
759
|
-
//
|
|
960
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/CoerceOptionsToObject.js
|
|
760
961
|
var require_CoerceOptionsToObject = __commonJS({
|
|
761
|
-
"
|
|
962
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/CoerceOptionsToObject.js"(exports) {
|
|
762
963
|
"use strict";
|
|
763
964
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
764
|
-
exports.CoerceOptionsToObject =
|
|
965
|
+
exports.CoerceOptionsToObject = CoerceOptionsToObject2;
|
|
765
966
|
var _262_1 = require__();
|
|
766
967
|
function CoerceOptionsToObject2(options) {
|
|
767
968
|
if (typeof options === "undefined") {
|
|
@@ -769,17 +970,16 @@
|
|
|
769
970
|
}
|
|
770
971
|
return (0, _262_1.ToObject)(options);
|
|
771
972
|
}
|
|
772
|
-
exports.CoerceOptionsToObject = CoerceOptionsToObject2;
|
|
773
973
|
}
|
|
774
974
|
});
|
|
775
975
|
|
|
776
|
-
//
|
|
976
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/DefaultNumberOption.js
|
|
777
977
|
var require_DefaultNumberOption = __commonJS({
|
|
778
|
-
"
|
|
978
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/DefaultNumberOption.js"(exports) {
|
|
779
979
|
"use strict";
|
|
780
980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
781
|
-
exports.DefaultNumberOption =
|
|
782
|
-
function
|
|
981
|
+
exports.DefaultNumberOption = DefaultNumberOption2;
|
|
982
|
+
function DefaultNumberOption2(inputVal, min, max, fallback) {
|
|
783
983
|
if (inputVal === void 0) {
|
|
784
984
|
return fallback;
|
|
785
985
|
}
|
|
@@ -789,31 +989,29 @@
|
|
|
789
989
|
}
|
|
790
990
|
return Math.floor(val);
|
|
791
991
|
}
|
|
792
|
-
exports.DefaultNumberOption = DefaultNumberOption;
|
|
793
992
|
}
|
|
794
993
|
});
|
|
795
994
|
|
|
796
|
-
//
|
|
995
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetNumberOption.js
|
|
797
996
|
var require_GetNumberOption = __commonJS({
|
|
798
|
-
"
|
|
997
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetNumberOption.js"(exports) {
|
|
799
998
|
"use strict";
|
|
800
999
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
801
|
-
exports.GetNumberOption =
|
|
1000
|
+
exports.GetNumberOption = GetNumberOption2;
|
|
802
1001
|
var DefaultNumberOption_1 = require_DefaultNumberOption();
|
|
803
|
-
function
|
|
1002
|
+
function GetNumberOption2(options, property, minimum, maximum, fallback) {
|
|
804
1003
|
var val = options[property];
|
|
805
1004
|
return (0, DefaultNumberOption_1.DefaultNumberOption)(val, minimum, maximum, fallback);
|
|
806
1005
|
}
|
|
807
|
-
exports.GetNumberOption = GetNumberOption;
|
|
808
1006
|
}
|
|
809
1007
|
});
|
|
810
1008
|
|
|
811
|
-
//
|
|
1009
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetOption.js
|
|
812
1010
|
var require_GetOption = __commonJS({
|
|
813
|
-
"
|
|
1011
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetOption.js"(exports) {
|
|
814
1012
|
"use strict";
|
|
815
1013
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
816
|
-
exports.GetOption =
|
|
1014
|
+
exports.GetOption = GetOption2;
|
|
817
1015
|
var _262_1 = require__();
|
|
818
1016
|
function GetOption2(opts, prop, type, values, fallback) {
|
|
819
1017
|
if (typeof opts !== "object") {
|
|
@@ -839,16 +1037,15 @@
|
|
|
839
1037
|
}
|
|
840
1038
|
return fallback;
|
|
841
1039
|
}
|
|
842
|
-
exports.GetOption = GetOption2;
|
|
843
1040
|
}
|
|
844
1041
|
});
|
|
845
1042
|
|
|
846
|
-
//
|
|
1043
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetOptionsObject.js
|
|
847
1044
|
var require_GetOptionsObject = __commonJS({
|
|
848
|
-
"
|
|
1045
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetOptionsObject.js"(exports) {
|
|
849
1046
|
"use strict";
|
|
850
1047
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
851
|
-
exports.GetOptionsObject =
|
|
1048
|
+
exports.GetOptionsObject = GetOptionsObject;
|
|
852
1049
|
function GetOptionsObject(options) {
|
|
853
1050
|
if (typeof options === "undefined") {
|
|
854
1051
|
return /* @__PURE__ */ Object.create(null);
|
|
@@ -858,18 +1055,17 @@
|
|
|
858
1055
|
}
|
|
859
1056
|
throw new TypeError("Options must be an object");
|
|
860
1057
|
}
|
|
861
|
-
exports.GetOptionsObject = GetOptionsObject;
|
|
862
1058
|
}
|
|
863
1059
|
});
|
|
864
1060
|
|
|
865
|
-
//
|
|
1061
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetStringOrBooleanOption.js
|
|
866
1062
|
var require_GetStringOrBooleanOption = __commonJS({
|
|
867
|
-
"
|
|
1063
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/GetStringOrBooleanOption.js"(exports) {
|
|
868
1064
|
"use strict";
|
|
869
1065
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
870
|
-
exports.GetStringOrBooleanOption =
|
|
1066
|
+
exports.GetStringOrBooleanOption = GetStringOrBooleanOption2;
|
|
871
1067
|
var _262_1 = require__();
|
|
872
|
-
function
|
|
1068
|
+
function GetStringOrBooleanOption2(opts, prop, values, trueValue, falsyValue, fallback) {
|
|
873
1069
|
var value = opts[prop];
|
|
874
1070
|
if (value === void 0) {
|
|
875
1071
|
return fallback;
|
|
@@ -890,16 +1086,17 @@
|
|
|
890
1086
|
}
|
|
891
1087
|
return value;
|
|
892
1088
|
}
|
|
893
|
-
exports.GetStringOrBooleanOption = GetStringOrBooleanOption;
|
|
894
1089
|
}
|
|
895
1090
|
});
|
|
896
1091
|
|
|
897
|
-
//
|
|
1092
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsSanctionedSimpleUnitIdentifier.js
|
|
898
1093
|
var require_IsSanctionedSimpleUnitIdentifier = __commonJS({
|
|
899
|
-
"
|
|
1094
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsSanctionedSimpleUnitIdentifier.js"(exports) {
|
|
900
1095
|
"use strict";
|
|
901
1096
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
902
|
-
exports.
|
|
1097
|
+
exports.SIMPLE_UNITS = exports.SANCTIONED_UNITS = void 0;
|
|
1098
|
+
exports.removeUnitNamespace = removeUnitNamespace2;
|
|
1099
|
+
exports.IsSanctionedSimpleUnitIdentifier = IsSanctionedSimpleUnitIdentifier2;
|
|
903
1100
|
exports.SANCTIONED_UNITS = [
|
|
904
1101
|
"angle-degree",
|
|
905
1102
|
"area-acre",
|
|
@@ -945,24 +1142,22 @@
|
|
|
945
1142
|
"volume-liter",
|
|
946
1143
|
"volume-milliliter"
|
|
947
1144
|
];
|
|
948
|
-
function
|
|
1145
|
+
function removeUnitNamespace2(unit) {
|
|
949
1146
|
return unit.slice(unit.indexOf("-") + 1);
|
|
950
1147
|
}
|
|
951
|
-
exports.
|
|
952
|
-
|
|
953
|
-
function IsSanctionedSimpleUnitIdentifier(unitIdentifier) {
|
|
1148
|
+
exports.SIMPLE_UNITS = exports.SANCTIONED_UNITS.map(removeUnitNamespace2);
|
|
1149
|
+
function IsSanctionedSimpleUnitIdentifier2(unitIdentifier) {
|
|
954
1150
|
return exports.SIMPLE_UNITS.indexOf(unitIdentifier) > -1;
|
|
955
1151
|
}
|
|
956
|
-
exports.IsSanctionedSimpleUnitIdentifier = IsSanctionedSimpleUnitIdentifier;
|
|
957
1152
|
}
|
|
958
1153
|
});
|
|
959
1154
|
|
|
960
|
-
//
|
|
1155
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsValidTimeZoneName.js
|
|
961
1156
|
var require_IsValidTimeZoneName = __commonJS({
|
|
962
|
-
"
|
|
1157
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsValidTimeZoneName.js"(exports) {
|
|
963
1158
|
"use strict";
|
|
964
1159
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
965
|
-
exports.IsValidTimeZoneName =
|
|
1160
|
+
exports.IsValidTimeZoneName = IsValidTimeZoneName;
|
|
966
1161
|
function IsValidTimeZoneName(tz, _a) {
|
|
967
1162
|
var zoneNamesFromData = _a.zoneNamesFromData, uppercaseLinks = _a.uppercaseLinks;
|
|
968
1163
|
var uppercasedTz = tz.toUpperCase();
|
|
@@ -979,23 +1174,22 @@
|
|
|
979
1174
|
});
|
|
980
1175
|
return zoneNames.has(uppercasedTz) || linkNames.has(uppercasedTz);
|
|
981
1176
|
}
|
|
982
|
-
exports.IsValidTimeZoneName = IsValidTimeZoneName;
|
|
983
1177
|
}
|
|
984
1178
|
});
|
|
985
1179
|
|
|
986
|
-
//
|
|
1180
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsWellFormedCurrencyCode.js
|
|
987
1181
|
var require_IsWellFormedCurrencyCode = __commonJS({
|
|
988
|
-
"
|
|
1182
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsWellFormedCurrencyCode.js"(exports) {
|
|
989
1183
|
"use strict";
|
|
990
1184
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
991
|
-
exports.IsWellFormedCurrencyCode =
|
|
1185
|
+
exports.IsWellFormedCurrencyCode = IsWellFormedCurrencyCode2;
|
|
992
1186
|
function toUpperCase(str) {
|
|
993
1187
|
return str.replace(/([a-z])/g, function(_, c) {
|
|
994
1188
|
return c.toUpperCase();
|
|
995
1189
|
});
|
|
996
1190
|
}
|
|
997
1191
|
var NOT_A_Z_REGEX = /[^A-Z]/;
|
|
998
|
-
function
|
|
1192
|
+
function IsWellFormedCurrencyCode2(currency) {
|
|
999
1193
|
currency = toUpperCase(currency);
|
|
1000
1194
|
if (currency.length !== 3) {
|
|
1001
1195
|
return false;
|
|
@@ -1005,23 +1199,22 @@
|
|
|
1005
1199
|
}
|
|
1006
1200
|
return true;
|
|
1007
1201
|
}
|
|
1008
|
-
exports.IsWellFormedCurrencyCode = IsWellFormedCurrencyCode;
|
|
1009
1202
|
}
|
|
1010
1203
|
});
|
|
1011
1204
|
|
|
1012
|
-
//
|
|
1205
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsWellFormedUnitIdentifier.js
|
|
1013
1206
|
var require_IsWellFormedUnitIdentifier = __commonJS({
|
|
1014
|
-
"
|
|
1207
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/IsWellFormedUnitIdentifier.js"(exports) {
|
|
1015
1208
|
"use strict";
|
|
1016
1209
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1017
|
-
exports.IsWellFormedUnitIdentifier =
|
|
1210
|
+
exports.IsWellFormedUnitIdentifier = IsWellFormedUnitIdentifier2;
|
|
1018
1211
|
var IsSanctionedSimpleUnitIdentifier_1 = require_IsSanctionedSimpleUnitIdentifier();
|
|
1019
1212
|
function toLowerCase(str) {
|
|
1020
1213
|
return str.replace(/([A-Z])/g, function(_, c) {
|
|
1021
1214
|
return c.toLowerCase();
|
|
1022
1215
|
});
|
|
1023
1216
|
}
|
|
1024
|
-
function
|
|
1217
|
+
function IsWellFormedUnitIdentifier2(unit) {
|
|
1025
1218
|
unit = toLowerCase(unit);
|
|
1026
1219
|
if ((0, IsSanctionedSimpleUnitIdentifier_1.IsSanctionedSimpleUnitIdentifier)(unit)) {
|
|
1027
1220
|
return true;
|
|
@@ -1036,16 +1229,15 @@
|
|
|
1036
1229
|
}
|
|
1037
1230
|
return true;
|
|
1038
1231
|
}
|
|
1039
|
-
exports.IsWellFormedUnitIdentifier = IsWellFormedUnitIdentifier;
|
|
1040
1232
|
}
|
|
1041
1233
|
});
|
|
1042
1234
|
|
|
1043
|
-
//
|
|
1235
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js
|
|
1044
1236
|
var require_ApplyUnsignedRoundingMode = __commonJS({
|
|
1045
|
-
"
|
|
1237
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js"(exports) {
|
|
1046
1238
|
"use strict";
|
|
1047
1239
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1048
|
-
exports.ApplyUnsignedRoundingMode =
|
|
1240
|
+
exports.ApplyUnsignedRoundingMode = ApplyUnsignedRoundingMode;
|
|
1049
1241
|
function ApplyUnsignedRoundingMode(x, r1, r2, unsignedRoundingMode) {
|
|
1050
1242
|
if (x === r1)
|
|
1051
1243
|
return r1;
|
|
@@ -1084,44 +1276,42 @@
|
|
|
1084
1276
|
}
|
|
1085
1277
|
return r2;
|
|
1086
1278
|
}
|
|
1087
|
-
exports.ApplyUnsignedRoundingMode = ApplyUnsignedRoundingMode;
|
|
1088
1279
|
}
|
|
1089
1280
|
});
|
|
1090
1281
|
|
|
1091
|
-
//
|
|
1282
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/CollapseNumberRange.js
|
|
1092
1283
|
var require_CollapseNumberRange = __commonJS({
|
|
1093
|
-
"
|
|
1284
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/CollapseNumberRange.js"(exports) {
|
|
1094
1285
|
"use strict";
|
|
1095
1286
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1096
|
-
exports.CollapseNumberRange =
|
|
1097
|
-
function
|
|
1287
|
+
exports.CollapseNumberRange = CollapseNumberRange2;
|
|
1288
|
+
function CollapseNumberRange2(result) {
|
|
1098
1289
|
return result;
|
|
1099
1290
|
}
|
|
1100
|
-
exports.CollapseNumberRange = CollapseNumberRange;
|
|
1101
1291
|
}
|
|
1102
1292
|
});
|
|
1103
1293
|
|
|
1104
|
-
//
|
|
1294
|
+
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
|
|
1105
1295
|
var require_fast_memoize = __commonJS({
|
|
1106
|
-
"
|
|
1296
|
+
"node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js"(exports) {
|
|
1107
1297
|
"use strict";
|
|
1108
1298
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1109
|
-
exports.strategies =
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
var
|
|
1113
|
-
var
|
|
1299
|
+
exports.strategies = void 0;
|
|
1300
|
+
exports.memoize = memoize2;
|
|
1301
|
+
function memoize2(fn, options) {
|
|
1302
|
+
var cache = options && options.cache ? options.cache : cacheDefault2;
|
|
1303
|
+
var serializer = options && options.serializer ? options.serializer : serializerDefault2;
|
|
1304
|
+
var strategy = options && options.strategy ? options.strategy : strategyDefault2;
|
|
1114
1305
|
return strategy(fn, {
|
|
1115
1306
|
cache,
|
|
1116
1307
|
serializer
|
|
1117
1308
|
});
|
|
1118
1309
|
}
|
|
1119
|
-
|
|
1120
|
-
function isPrimitive(value) {
|
|
1310
|
+
function isPrimitive2(value) {
|
|
1121
1311
|
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
1122
1312
|
}
|
|
1123
|
-
function
|
|
1124
|
-
var cacheKey =
|
|
1313
|
+
function monadic2(fn, cache, serializer, arg) {
|
|
1314
|
+
var cacheKey = isPrimitive2(arg) ? arg : serializer(arg);
|
|
1125
1315
|
var computedValue = cache.get(cacheKey);
|
|
1126
1316
|
if (typeof computedValue === "undefined") {
|
|
1127
1317
|
computedValue = fn.call(this, arg);
|
|
@@ -1129,7 +1319,7 @@
|
|
|
1129
1319
|
}
|
|
1130
1320
|
return computedValue;
|
|
1131
1321
|
}
|
|
1132
|
-
function
|
|
1322
|
+
function variadic2(fn, cache, serializer) {
|
|
1133
1323
|
var args = Array.prototype.slice.call(arguments, 3);
|
|
1134
1324
|
var cacheKey = serializer(args);
|
|
1135
1325
|
var computedValue = cache.get(cacheKey);
|
|
@@ -1139,56 +1329,65 @@
|
|
|
1139
1329
|
}
|
|
1140
1330
|
return computedValue;
|
|
1141
1331
|
}
|
|
1142
|
-
function
|
|
1332
|
+
function assemble2(fn, context, strategy, cache, serialize) {
|
|
1143
1333
|
return strategy.bind(context, fn, cache, serialize);
|
|
1144
1334
|
}
|
|
1145
|
-
function
|
|
1146
|
-
var strategy = fn.length === 1 ?
|
|
1147
|
-
return
|
|
1335
|
+
function strategyDefault2(fn, options) {
|
|
1336
|
+
var strategy = fn.length === 1 ? monadic2 : variadic2;
|
|
1337
|
+
return assemble2(fn, this, strategy, options.cache.create(), options.serializer);
|
|
1148
1338
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1339
|
+
function strategyVariadic2(fn, options) {
|
|
1340
|
+
return assemble2(fn, this, variadic2, options.cache.create(), options.serializer);
|
|
1151
1341
|
}
|
|
1152
|
-
function
|
|
1153
|
-
return
|
|
1342
|
+
function strategyMonadic2(fn, options) {
|
|
1343
|
+
return assemble2(fn, this, monadic2, options.cache.create(), options.serializer);
|
|
1154
1344
|
}
|
|
1155
|
-
var
|
|
1345
|
+
var serializerDefault2 = function() {
|
|
1156
1346
|
return JSON.stringify(arguments);
|
|
1157
1347
|
};
|
|
1158
|
-
function
|
|
1348
|
+
function ObjectWithoutPrototypeCache2() {
|
|
1159
1349
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1160
1350
|
}
|
|
1161
|
-
|
|
1351
|
+
ObjectWithoutPrototypeCache2.prototype.get = function(key) {
|
|
1162
1352
|
return this.cache[key];
|
|
1163
1353
|
};
|
|
1164
|
-
|
|
1354
|
+
ObjectWithoutPrototypeCache2.prototype.set = function(key, value) {
|
|
1165
1355
|
this.cache[key] = value;
|
|
1166
1356
|
};
|
|
1167
|
-
var
|
|
1168
|
-
create: function
|
|
1169
|
-
return new
|
|
1357
|
+
var cacheDefault2 = {
|
|
1358
|
+
create: function create2() {
|
|
1359
|
+
return new ObjectWithoutPrototypeCache2();
|
|
1170
1360
|
}
|
|
1171
1361
|
};
|
|
1172
1362
|
exports.strategies = {
|
|
1173
|
-
variadic:
|
|
1174
|
-
monadic:
|
|
1363
|
+
variadic: strategyVariadic2,
|
|
1364
|
+
monadic: strategyMonadic2
|
|
1175
1365
|
};
|
|
1176
1366
|
}
|
|
1177
1367
|
});
|
|
1178
1368
|
|
|
1179
|
-
//
|
|
1369
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/utils.js
|
|
1180
1370
|
var require_utils = __commonJS({
|
|
1181
|
-
"
|
|
1371
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/utils.js"(exports) {
|
|
1182
1372
|
"use strict";
|
|
1183
1373
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1184
|
-
exports.createMemoizedListFormat = exports.createMemoizedLocale = exports.createMemoizedPluralRules = exports.createMemoizedDateTimeFormat = exports.createMemoizedNumberFormat = exports.
|
|
1374
|
+
exports.createMemoizedListFormat = exports.createMemoizedLocale = exports.createMemoizedPluralRules = exports.createMemoizedDateTimeFormat = exports.createMemoizedNumberFormat = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = void 0;
|
|
1375
|
+
exports.getMagnitude = getMagnitude2;
|
|
1376
|
+
exports.repeat = repeat2;
|
|
1377
|
+
exports.setInternalSlot = setInternalSlot2;
|
|
1378
|
+
exports.setMultiInternalSlots = setMultiInternalSlots2;
|
|
1379
|
+
exports.getInternalSlot = getInternalSlot2;
|
|
1380
|
+
exports.getMultiInternalSlots = getMultiInternalSlots2;
|
|
1381
|
+
exports.isLiteralPart = isLiteralPart2;
|
|
1382
|
+
exports.defineProperty = defineProperty2;
|
|
1383
|
+
exports.createDataProperty = createDataProperty2;
|
|
1384
|
+
exports.invariant = invariant3;
|
|
1185
1385
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
1186
1386
|
var fast_memoize_1 = require_fast_memoize();
|
|
1187
|
-
function
|
|
1387
|
+
function getMagnitude2(x) {
|
|
1188
1388
|
return Math.floor(Math.log(x) * Math.LOG10E);
|
|
1189
1389
|
}
|
|
1190
|
-
|
|
1191
|
-
function repeat(s, times) {
|
|
1390
|
+
function repeat2(s, times) {
|
|
1192
1391
|
if (typeof s.repeat === "function") {
|
|
1193
1392
|
return s.repeat(times);
|
|
1194
1393
|
}
|
|
@@ -1198,27 +1397,23 @@
|
|
|
1198
1397
|
}
|
|
1199
1398
|
return arr.join("");
|
|
1200
1399
|
}
|
|
1201
|
-
|
|
1202
|
-
function setInternalSlot(map, pl, field, value) {
|
|
1400
|
+
function setInternalSlot2(map, pl, field, value) {
|
|
1203
1401
|
if (!map.get(pl)) {
|
|
1204
1402
|
map.set(pl, /* @__PURE__ */ Object.create(null));
|
|
1205
1403
|
}
|
|
1206
1404
|
var slots = map.get(pl);
|
|
1207
1405
|
slots[field] = value;
|
|
1208
1406
|
}
|
|
1209
|
-
|
|
1210
|
-
function setMultiInternalSlots(map, pl, props) {
|
|
1407
|
+
function setMultiInternalSlots2(map, pl, props) {
|
|
1211
1408
|
for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
|
|
1212
1409
|
var k = _a[_i];
|
|
1213
|
-
|
|
1410
|
+
setInternalSlot2(map, pl, k, props[k]);
|
|
1214
1411
|
}
|
|
1215
1412
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
return getMultiInternalSlots(map, pl, field)[field];
|
|
1413
|
+
function getInternalSlot2(map, pl, field) {
|
|
1414
|
+
return getMultiInternalSlots2(map, pl, field)[field];
|
|
1219
1415
|
}
|
|
1220
|
-
|
|
1221
|
-
function getMultiInternalSlots(map, pl) {
|
|
1416
|
+
function getMultiInternalSlots2(map, pl) {
|
|
1222
1417
|
var fields = [];
|
|
1223
1418
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1224
1419
|
fields[_i - 2] = arguments[_i];
|
|
@@ -1232,12 +1427,10 @@
|
|
|
1232
1427
|
return all;
|
|
1233
1428
|
}, /* @__PURE__ */ Object.create(null));
|
|
1234
1429
|
}
|
|
1235
|
-
|
|
1236
|
-
function isLiteralPart(patternPart) {
|
|
1430
|
+
function isLiteralPart2(patternPart) {
|
|
1237
1431
|
return patternPart.type === "literal";
|
|
1238
1432
|
}
|
|
1239
|
-
|
|
1240
|
-
function defineProperty(target, name, _a) {
|
|
1433
|
+
function defineProperty2(target, name, _a) {
|
|
1241
1434
|
var value = _a.value;
|
|
1242
1435
|
Object.defineProperty(target, name, {
|
|
1243
1436
|
configurable: true,
|
|
@@ -1246,7 +1439,6 @@
|
|
|
1246
1439
|
value
|
|
1247
1440
|
});
|
|
1248
1441
|
}
|
|
1249
|
-
exports.defineProperty = defineProperty;
|
|
1250
1442
|
function createDataProperty2(target, name, value) {
|
|
1251
1443
|
Object.defineProperty(target, name, {
|
|
1252
1444
|
configurable: true,
|
|
@@ -1255,9 +1447,8 @@
|
|
|
1255
1447
|
value
|
|
1256
1448
|
});
|
|
1257
1449
|
}
|
|
1258
|
-
exports.createDataProperty = createDataProperty2;
|
|
1259
1450
|
exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
1260
|
-
function
|
|
1451
|
+
function invariant3(condition, message, Err) {
|
|
1261
1452
|
if (Err === void 0) {
|
|
1262
1453
|
Err = Error;
|
|
1263
1454
|
}
|
|
@@ -1265,7 +1456,6 @@
|
|
|
1265
1456
|
throw new Err(message);
|
|
1266
1457
|
}
|
|
1267
1458
|
}
|
|
1268
|
-
exports.invariant = invariant2;
|
|
1269
1459
|
exports.createMemoizedNumberFormat = (0, fast_memoize_1.memoize)(function() {
|
|
1270
1460
|
var _a;
|
|
1271
1461
|
var args = [];
|
|
@@ -1319,13 +1509,13 @@
|
|
|
1319
1509
|
}
|
|
1320
1510
|
});
|
|
1321
1511
|
|
|
1322
|
-
//
|
|
1512
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponentForMagnitude.js
|
|
1323
1513
|
var require_ComputeExponentForMagnitude = __commonJS({
|
|
1324
|
-
"
|
|
1514
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponentForMagnitude.js"(exports) {
|
|
1325
1515
|
"use strict";
|
|
1326
1516
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1327
|
-
exports.ComputeExponentForMagnitude =
|
|
1328
|
-
function
|
|
1517
|
+
exports.ComputeExponentForMagnitude = ComputeExponentForMagnitude2;
|
|
1518
|
+
function ComputeExponentForMagnitude2(numberFormat, magnitude, _a) {
|
|
1329
1519
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
1330
1520
|
var internalSlots = getInternalSlots2(numberFormat);
|
|
1331
1521
|
var notation = internalSlots.notation, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
|
|
@@ -1370,18 +1560,17 @@
|
|
|
1370
1560
|
}
|
|
1371
1561
|
}
|
|
1372
1562
|
}
|
|
1373
|
-
exports.ComputeExponentForMagnitude = ComputeExponentForMagnitude;
|
|
1374
1563
|
}
|
|
1375
1564
|
});
|
|
1376
1565
|
|
|
1377
|
-
//
|
|
1566
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ToRawPrecision.js
|
|
1378
1567
|
var require_ToRawPrecision = __commonJS({
|
|
1379
|
-
"
|
|
1568
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ToRawPrecision.js"(exports) {
|
|
1380
1569
|
"use strict";
|
|
1381
1570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1382
|
-
exports.ToRawPrecision =
|
|
1571
|
+
exports.ToRawPrecision = ToRawPrecision2;
|
|
1383
1572
|
var utils_1 = require_utils();
|
|
1384
|
-
function
|
|
1573
|
+
function ToRawPrecision2(x, minPrecision, maxPrecision) {
|
|
1385
1574
|
var p = maxPrecision;
|
|
1386
1575
|
var m;
|
|
1387
1576
|
var e;
|
|
@@ -1437,18 +1626,17 @@
|
|
|
1437
1626
|
return magnitude < 0 ? x2 * Math.pow(10, -magnitude) : x2 / Math.pow(10, magnitude);
|
|
1438
1627
|
}
|
|
1439
1628
|
}
|
|
1440
|
-
exports.ToRawPrecision = ToRawPrecision;
|
|
1441
1629
|
}
|
|
1442
1630
|
});
|
|
1443
1631
|
|
|
1444
|
-
//
|
|
1632
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ToRawFixed.js
|
|
1445
1633
|
var require_ToRawFixed = __commonJS({
|
|
1446
|
-
"
|
|
1634
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ToRawFixed.js"(exports) {
|
|
1447
1635
|
"use strict";
|
|
1448
1636
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1449
|
-
exports.ToRawFixed =
|
|
1637
|
+
exports.ToRawFixed = ToRawFixed2;
|
|
1450
1638
|
var utils_1 = require_utils();
|
|
1451
|
-
function
|
|
1639
|
+
function ToRawFixed2(x, minFraction, maxFraction) {
|
|
1452
1640
|
var f = maxFraction;
|
|
1453
1641
|
var n = Math.round(x * Math.pow(10, f));
|
|
1454
1642
|
var xFinal = n / Math.pow(10, f);
|
|
@@ -1486,21 +1674,20 @@
|
|
|
1486
1674
|
}
|
|
1487
1675
|
return { formattedString: m, roundedNumber: xFinal, integerDigitsCount: int };
|
|
1488
1676
|
}
|
|
1489
|
-
exports.ToRawFixed = ToRawFixed;
|
|
1490
1677
|
}
|
|
1491
1678
|
});
|
|
1492
1679
|
|
|
1493
|
-
//
|
|
1680
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericToString.js
|
|
1494
1681
|
var require_FormatNumericToString = __commonJS({
|
|
1495
|
-
"
|
|
1682
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericToString.js"(exports) {
|
|
1496
1683
|
"use strict";
|
|
1497
1684
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1498
|
-
exports.FormatNumericToString =
|
|
1685
|
+
exports.FormatNumericToString = FormatNumericToString2;
|
|
1499
1686
|
var _262_1 = require__();
|
|
1500
1687
|
var ToRawPrecision_1 = require_ToRawPrecision();
|
|
1501
1688
|
var utils_1 = require_utils();
|
|
1502
1689
|
var ToRawFixed_1 = require_ToRawFixed();
|
|
1503
|
-
function
|
|
1690
|
+
function FormatNumericToString2(intlObject, x) {
|
|
1504
1691
|
var isNegative = x < 0 || (0, _262_1.SameValue)(x, -0);
|
|
1505
1692
|
if (isNegative) {
|
|
1506
1693
|
x = -x;
|
|
@@ -1534,20 +1721,19 @@
|
|
|
1534
1721
|
}
|
|
1535
1722
|
return { roundedNumber: x, formattedString: string };
|
|
1536
1723
|
}
|
|
1537
|
-
exports.FormatNumericToString = FormatNumericToString;
|
|
1538
1724
|
}
|
|
1539
1725
|
});
|
|
1540
1726
|
|
|
1541
|
-
//
|
|
1727
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponent.js
|
|
1542
1728
|
var require_ComputeExponent = __commonJS({
|
|
1543
|
-
"
|
|
1729
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponent.js"(exports) {
|
|
1544
1730
|
"use strict";
|
|
1545
1731
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1546
|
-
exports.ComputeExponent =
|
|
1732
|
+
exports.ComputeExponent = ComputeExponent2;
|
|
1547
1733
|
var utils_1 = require_utils();
|
|
1548
1734
|
var ComputeExponentForMagnitude_1 = require_ComputeExponentForMagnitude();
|
|
1549
1735
|
var FormatNumericToString_1 = require_FormatNumericToString();
|
|
1550
|
-
function
|
|
1736
|
+
function ComputeExponent2(numberFormat, x, _a) {
|
|
1551
1737
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
1552
1738
|
if (x === 0) {
|
|
1553
1739
|
return [0, 0];
|
|
@@ -1575,28 +1761,26 @@
|
|
|
1575
1761
|
magnitude + 1
|
|
1576
1762
|
];
|
|
1577
1763
|
}
|
|
1578
|
-
exports.ComputeExponent = ComputeExponent;
|
|
1579
1764
|
}
|
|
1580
1765
|
});
|
|
1581
1766
|
|
|
1582
|
-
//
|
|
1767
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/CurrencyDigits.js
|
|
1583
1768
|
var require_CurrencyDigits = __commonJS({
|
|
1584
|
-
"
|
|
1769
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/CurrencyDigits.js"(exports) {
|
|
1585
1770
|
"use strict";
|
|
1586
1771
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1587
|
-
exports.CurrencyDigits =
|
|
1772
|
+
exports.CurrencyDigits = CurrencyDigits2;
|
|
1588
1773
|
var _262_1 = require__();
|
|
1589
|
-
function
|
|
1774
|
+
function CurrencyDigits2(c, _a) {
|
|
1590
1775
|
var currencyDigitsData = _a.currencyDigitsData;
|
|
1591
1776
|
return (0, _262_1.HasOwnProperty)(currencyDigitsData, c) ? currencyDigitsData[c] : 2;
|
|
1592
1777
|
}
|
|
1593
|
-
exports.CurrencyDigits = CurrencyDigits;
|
|
1594
1778
|
}
|
|
1595
1779
|
});
|
|
1596
1780
|
|
|
1597
|
-
//
|
|
1781
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/regex.generated.js
|
|
1598
1782
|
var require_regex_generated = __commonJS({
|
|
1599
|
-
"
|
|
1783
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/regex.generated.js"(exports) {
|
|
1600
1784
|
"use strict";
|
|
1601
1785
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1602
1786
|
exports.S_UNICODE_REGEX = void 0;
|
|
@@ -1604,9 +1788,9 @@
|
|
|
1604
1788
|
}
|
|
1605
1789
|
});
|
|
1606
1790
|
|
|
1607
|
-
//
|
|
1791
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/digit-mapping.generated.js
|
|
1608
1792
|
var require_digit_mapping_generated = __commonJS({
|
|
1609
|
-
"
|
|
1793
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/digit-mapping.generated.js"(exports) {
|
|
1610
1794
|
"use strict";
|
|
1611
1795
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1612
1796
|
exports.digitMapping = void 0;
|
|
@@ -2395,28 +2579,29 @@
|
|
|
2395
2579
|
}
|
|
2396
2580
|
});
|
|
2397
2581
|
|
|
2398
|
-
//
|
|
2582
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/format_to_parts.js
|
|
2399
2583
|
var require_format_to_parts = __commonJS({
|
|
2400
|
-
"
|
|
2584
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/format_to_parts.js"(exports) {
|
|
2401
2585
|
"use strict";
|
|
2402
2586
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2587
|
+
exports.default = formatToParts2;
|
|
2403
2588
|
var regex_generated_1 = require_regex_generated();
|
|
2404
2589
|
var ToRawFixed_1 = require_ToRawFixed();
|
|
2405
2590
|
var digit_mapping_generated_1 = require_digit_mapping_generated();
|
|
2406
|
-
var
|
|
2407
|
-
var
|
|
2591
|
+
var CARET_S_UNICODE_REGEX2 = new RegExp("^".concat(regex_generated_1.S_UNICODE_REGEX.source));
|
|
2592
|
+
var S_DOLLAR_UNICODE_REGEX2 = new RegExp("".concat(regex_generated_1.S_UNICODE_REGEX.source, "$"));
|
|
2408
2593
|
var CLDR_NUMBER_PATTERN = /[#0](?:[\.,][#0]+)*/g;
|
|
2409
|
-
function
|
|
2594
|
+
function formatToParts2(numberResult, data2, pl, options) {
|
|
2410
2595
|
var sign = numberResult.sign, exponent = numberResult.exponent, magnitude = numberResult.magnitude;
|
|
2411
2596
|
var notation = options.notation, style = options.style, numberingSystem = options.numberingSystem;
|
|
2412
|
-
var defaultNumberingSystem =
|
|
2597
|
+
var defaultNumberingSystem = data2.numbers.nu[0];
|
|
2413
2598
|
var compactNumberPattern = null;
|
|
2414
2599
|
if (notation === "compact" && magnitude) {
|
|
2415
|
-
compactNumberPattern = getCompactDisplayPattern(numberResult, pl,
|
|
2600
|
+
compactNumberPattern = getCompactDisplayPattern(numberResult, pl, data2, style, options.compactDisplay, options.currencyDisplay, numberingSystem);
|
|
2416
2601
|
}
|
|
2417
2602
|
var nonNameCurrencyPart;
|
|
2418
2603
|
if (style === "currency" && options.currencyDisplay !== "name") {
|
|
2419
|
-
var byCurrencyDisplay =
|
|
2604
|
+
var byCurrencyDisplay = data2.currencies[options.currency];
|
|
2420
2605
|
if (byCurrencyDisplay) {
|
|
2421
2606
|
switch (options.currencyDisplay) {
|
|
2422
2607
|
case "code":
|
|
@@ -2436,13 +2621,13 @@
|
|
|
2436
2621
|
var numberPattern;
|
|
2437
2622
|
if (!compactNumberPattern) {
|
|
2438
2623
|
if (style === "decimal" || style === "unit" || style === "currency" && options.currencyDisplay === "name") {
|
|
2439
|
-
var decimalData =
|
|
2624
|
+
var decimalData = data2.numbers.decimal[numberingSystem] || data2.numbers.decimal[defaultNumberingSystem];
|
|
2440
2625
|
numberPattern = getPatternForSign(decimalData.standard, sign);
|
|
2441
2626
|
} else if (style === "currency") {
|
|
2442
|
-
var currencyData =
|
|
2627
|
+
var currencyData = data2.numbers.currency[numberingSystem] || data2.numbers.currency[defaultNumberingSystem];
|
|
2443
2628
|
numberPattern = getPatternForSign(currencyData[options.currencySign], sign);
|
|
2444
2629
|
} else {
|
|
2445
|
-
var percentPattern =
|
|
2630
|
+
var percentPattern = data2.numbers.percent[numberingSystem] || data2.numbers.percent[defaultNumberingSystem];
|
|
2446
2631
|
numberPattern = getPatternForSign(percentPattern, sign);
|
|
2447
2632
|
}
|
|
2448
2633
|
} else {
|
|
@@ -2451,19 +2636,19 @@
|
|
|
2451
2636
|
var decimalNumberPattern = CLDR_NUMBER_PATTERN.exec(numberPattern)[0];
|
|
2452
2637
|
numberPattern = numberPattern.replace(CLDR_NUMBER_PATTERN, "{0}").replace(/'(.)'/g, "$1");
|
|
2453
2638
|
if (style === "currency" && options.currencyDisplay !== "name") {
|
|
2454
|
-
var currencyData =
|
|
2639
|
+
var currencyData = data2.numbers.currency[numberingSystem] || data2.numbers.currency[defaultNumberingSystem];
|
|
2455
2640
|
var afterCurrency = currencyData.currencySpacing.afterInsertBetween;
|
|
2456
|
-
if (afterCurrency && !
|
|
2641
|
+
if (afterCurrency && !S_DOLLAR_UNICODE_REGEX2.test(nonNameCurrencyPart)) {
|
|
2457
2642
|
numberPattern = numberPattern.replace("\xA4{0}", "\xA4".concat(afterCurrency, "{0}"));
|
|
2458
2643
|
}
|
|
2459
2644
|
var beforeCurrency = currencyData.currencySpacing.beforeInsertBetween;
|
|
2460
|
-
if (beforeCurrency && !
|
|
2645
|
+
if (beforeCurrency && !CARET_S_UNICODE_REGEX2.test(nonNameCurrencyPart)) {
|
|
2461
2646
|
numberPattern = numberPattern.replace("{0}\xA4", "{0}".concat(beforeCurrency, "\xA4"));
|
|
2462
2647
|
}
|
|
2463
2648
|
}
|
|
2464
2649
|
var numberPatternParts = numberPattern.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g);
|
|
2465
2650
|
var numberParts = [];
|
|
2466
|
-
var symbols =
|
|
2651
|
+
var symbols = data2.numbers.symbols[numberingSystem] || data2.numbers.symbols[defaultNumberingSystem];
|
|
2467
2652
|
for (var _i = 0, numberPatternParts_1 = numberPatternParts; _i < numberPatternParts_1.length; _i++) {
|
|
2468
2653
|
var part = numberPatternParts_1[_i];
|
|
2469
2654
|
if (!part) {
|
|
@@ -2511,9 +2696,9 @@
|
|
|
2511
2696
|
switch (style) {
|
|
2512
2697
|
case "currency": {
|
|
2513
2698
|
if (options.currencyDisplay === "name") {
|
|
2514
|
-
var unitPattern = (
|
|
2699
|
+
var unitPattern = (data2.numbers.currency[numberingSystem] || data2.numbers.currency[defaultNumberingSystem]).unitPattern;
|
|
2515
2700
|
var unitName = void 0;
|
|
2516
|
-
var currencyNameData =
|
|
2701
|
+
var currencyNameData = data2.currencies[options.currency];
|
|
2517
2702
|
if (currencyNameData) {
|
|
2518
2703
|
unitName = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), currencyNameData.displayName);
|
|
2519
2704
|
} else {
|
|
@@ -2544,20 +2729,20 @@
|
|
|
2544
2729
|
}
|
|
2545
2730
|
case "unit": {
|
|
2546
2731
|
var unit = options.unit, unitDisplay = options.unitDisplay;
|
|
2547
|
-
var unitData =
|
|
2732
|
+
var unitData = data2.units.simple[unit];
|
|
2548
2733
|
var unitPattern = void 0;
|
|
2549
2734
|
if (unitData) {
|
|
2550
|
-
unitPattern = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent),
|
|
2735
|
+
unitPattern = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), data2.units.simple[unit][unitDisplay]);
|
|
2551
2736
|
} else {
|
|
2552
2737
|
var _b = unit.split("-per-"), numeratorUnit = _b[0], denominatorUnit = _b[1];
|
|
2553
|
-
unitData =
|
|
2554
|
-
var numeratorUnitPattern = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent),
|
|
2555
|
-
var perUnitPattern =
|
|
2738
|
+
unitData = data2.units.simple[numeratorUnit];
|
|
2739
|
+
var numeratorUnitPattern = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), data2.units.simple[numeratorUnit][unitDisplay]);
|
|
2740
|
+
var perUnitPattern = data2.units.simple[denominatorUnit].perUnit[unitDisplay];
|
|
2556
2741
|
if (perUnitPattern) {
|
|
2557
2742
|
unitPattern = perUnitPattern.replace("{0}", numeratorUnitPattern);
|
|
2558
2743
|
} else {
|
|
2559
|
-
var perPattern =
|
|
2560
|
-
var denominatorPattern = selectPlural(pl, 1,
|
|
2744
|
+
var perPattern = data2.units.compound.per[unitDisplay];
|
|
2745
|
+
var denominatorPattern = selectPlural(pl, 1, data2.units.simple[denominatorUnit][unitDisplay]);
|
|
2561
2746
|
unitPattern = unitPattern = perPattern.replace("{0}", numeratorUnitPattern).replace("{1}", denominatorPattern.replace("{0}", ""));
|
|
2562
2747
|
}
|
|
2563
2748
|
}
|
|
@@ -2583,7 +2768,6 @@
|
|
|
2583
2768
|
return numberParts;
|
|
2584
2769
|
}
|
|
2585
2770
|
}
|
|
2586
|
-
exports.default = formatToParts;
|
|
2587
2771
|
function paritionNumberIntoParts(symbols, numberResult, notation, exponent, numberingSystem, useGrouping, decimalNumberPattern, style) {
|
|
2588
2772
|
var result = [];
|
|
2589
2773
|
var n = numberResult.formattedString, x = numberResult.roundedNumber;
|
|
@@ -2672,14 +2856,14 @@
|
|
|
2672
2856
|
return negativePattern.indexOf("-") >= 0 ? negativePattern.replace(/-/g, "+") : "+".concat(zeroPattern);
|
|
2673
2857
|
}
|
|
2674
2858
|
}
|
|
2675
|
-
function getCompactDisplayPattern(numberResult, pl,
|
|
2859
|
+
function getCompactDisplayPattern(numberResult, pl, data2, style, compactDisplay, currencyDisplay, numberingSystem) {
|
|
2676
2860
|
var _a;
|
|
2677
2861
|
var roundedNumber = numberResult.roundedNumber, sign = numberResult.sign, magnitude = numberResult.magnitude;
|
|
2678
2862
|
var magnitudeKey = String(Math.pow(10, magnitude));
|
|
2679
|
-
var defaultNumberingSystem =
|
|
2863
|
+
var defaultNumberingSystem = data2.numbers.nu[0];
|
|
2680
2864
|
var pattern;
|
|
2681
2865
|
if (style === "currency" && currencyDisplay !== "name") {
|
|
2682
|
-
var byNumberingSystem =
|
|
2866
|
+
var byNumberingSystem = data2.numbers.currency;
|
|
2683
2867
|
var currencyData = byNumberingSystem[numberingSystem] || byNumberingSystem[defaultNumberingSystem];
|
|
2684
2868
|
var compactPluralRules = (_a = currencyData.short) === null || _a === void 0 ? void 0 : _a[magnitudeKey];
|
|
2685
2869
|
if (!compactPluralRules) {
|
|
@@ -2687,7 +2871,7 @@
|
|
|
2687
2871
|
}
|
|
2688
2872
|
pattern = selectPlural(pl, roundedNumber, compactPluralRules);
|
|
2689
2873
|
} else {
|
|
2690
|
-
var byNumberingSystem =
|
|
2874
|
+
var byNumberingSystem = data2.numbers.decimal;
|
|
2691
2875
|
var byCompactDisplay = byNumberingSystem[numberingSystem] || byNumberingSystem[defaultNumberingSystem];
|
|
2692
2876
|
var compactPlaralRule = byCompactDisplay[compactDisplay][magnitudeKey];
|
|
2693
2877
|
if (!compactPlaralRule) {
|
|
@@ -2707,13 +2891,13 @@
|
|
|
2707
2891
|
}
|
|
2708
2892
|
});
|
|
2709
2893
|
|
|
2710
|
-
//
|
|
2894
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatApproximately.js
|
|
2711
2895
|
var require_FormatApproximately = __commonJS({
|
|
2712
|
-
"
|
|
2896
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatApproximately.js"(exports) {
|
|
2713
2897
|
"use strict";
|
|
2714
2898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2715
|
-
exports.FormatApproximately =
|
|
2716
|
-
function
|
|
2899
|
+
exports.FormatApproximately = FormatApproximately2;
|
|
2900
|
+
function FormatApproximately2(numberFormat, result, _a) {
|
|
2717
2901
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
2718
2902
|
var internalSlots = getInternalSlots2(numberFormat);
|
|
2719
2903
|
var symbols = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem];
|
|
@@ -2721,22 +2905,21 @@
|
|
|
2721
2905
|
result.push({ type: "approximatelySign", value: approximatelySign });
|
|
2722
2906
|
return result;
|
|
2723
2907
|
}
|
|
2724
|
-
exports.FormatApproximately = FormatApproximately;
|
|
2725
2908
|
}
|
|
2726
2909
|
});
|
|
2727
2910
|
|
|
2728
|
-
//
|
|
2911
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/PartitionNumberPattern.js
|
|
2729
2912
|
var require_PartitionNumberPattern = __commonJS({
|
|
2730
|
-
"
|
|
2913
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/PartitionNumberPattern.js"(exports) {
|
|
2731
2914
|
"use strict";
|
|
2732
2915
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2733
|
-
exports.PartitionNumberPattern =
|
|
2916
|
+
exports.PartitionNumberPattern = PartitionNumberPattern2;
|
|
2734
2917
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
2735
2918
|
var FormatNumericToString_1 = require_FormatNumericToString();
|
|
2736
2919
|
var _262_1 = require__();
|
|
2737
2920
|
var ComputeExponent_1 = require_ComputeExponent();
|
|
2738
2921
|
var format_to_parts_1 = tslib_1.__importDefault(require_format_to_parts());
|
|
2739
|
-
function
|
|
2922
|
+
function PartitionNumberPattern2(numberFormat, x, _a) {
|
|
2740
2923
|
var _b;
|
|
2741
2924
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
2742
2925
|
var internalSlots = getInternalSlots2(numberFormat);
|
|
@@ -2798,20 +2981,19 @@
|
|
|
2798
2981
|
}
|
|
2799
2982
|
return (0, format_to_parts_1.default)({ roundedNumber: x, formattedString: n, exponent, magnitude, sign }, internalSlots.dataLocaleData, pl, internalSlots);
|
|
2800
2983
|
}
|
|
2801
|
-
exports.PartitionNumberPattern = PartitionNumberPattern;
|
|
2802
2984
|
}
|
|
2803
2985
|
});
|
|
2804
2986
|
|
|
2805
|
-
//
|
|
2987
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/PartitionNumberRangePattern.js
|
|
2806
2988
|
var require_PartitionNumberRangePattern = __commonJS({
|
|
2807
|
-
"
|
|
2989
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/PartitionNumberRangePattern.js"(exports) {
|
|
2808
2990
|
"use strict";
|
|
2809
2991
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2810
|
-
exports.PartitionNumberRangePattern =
|
|
2992
|
+
exports.PartitionNumberRangePattern = PartitionNumberRangePattern2;
|
|
2811
2993
|
var PartitionNumberPattern_1 = require_PartitionNumberPattern();
|
|
2812
2994
|
var CollapseNumberRange_1 = require_CollapseNumberRange();
|
|
2813
2995
|
var FormatApproximately_1 = require_FormatApproximately();
|
|
2814
|
-
function
|
|
2996
|
+
function PartitionNumberRangePattern2(numberFormat, x, y, _a) {
|
|
2815
2997
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
2816
2998
|
if (isNaN(x) || isNaN(y)) {
|
|
2817
2999
|
throw new RangeError("Input must be a number");
|
|
@@ -2837,16 +3019,15 @@
|
|
|
2837
3019
|
result = result.concat(yResult);
|
|
2838
3020
|
return (0, CollapseNumberRange_1.CollapseNumberRange)(result);
|
|
2839
3021
|
}
|
|
2840
|
-
exports.PartitionNumberRangePattern = PartitionNumberRangePattern;
|
|
2841
3022
|
}
|
|
2842
3023
|
});
|
|
2843
3024
|
|
|
2844
|
-
//
|
|
3025
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericRange.js
|
|
2845
3026
|
var require_FormatNumericRange = __commonJS({
|
|
2846
|
-
"
|
|
3027
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericRange.js"(exports) {
|
|
2847
3028
|
"use strict";
|
|
2848
3029
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2849
|
-
exports.FormatNumericRange =
|
|
3030
|
+
exports.FormatNumericRange = FormatNumericRange;
|
|
2850
3031
|
var PartitionNumberRangePattern_1 = require_PartitionNumberRangePattern();
|
|
2851
3032
|
function FormatNumericRange(numberFormat, x, y, _a) {
|
|
2852
3033
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
@@ -2857,16 +3038,15 @@
|
|
|
2857
3038
|
return part.value;
|
|
2858
3039
|
}).join("");
|
|
2859
3040
|
}
|
|
2860
|
-
exports.FormatNumericRange = FormatNumericRange;
|
|
2861
3041
|
}
|
|
2862
3042
|
});
|
|
2863
3043
|
|
|
2864
|
-
//
|
|
3044
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericRangeToParts.js
|
|
2865
3045
|
var require_FormatNumericRangeToParts = __commonJS({
|
|
2866
|
-
"
|
|
3046
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericRangeToParts.js"(exports) {
|
|
2867
3047
|
"use strict";
|
|
2868
3048
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2869
|
-
exports.FormatNumericRangeToParts =
|
|
3049
|
+
exports.FormatNumericRangeToParts = FormatNumericRangeToParts;
|
|
2870
3050
|
var PartitionNumberRangePattern_1 = require_PartitionNumberRangePattern();
|
|
2871
3051
|
function FormatNumericRangeToParts(numberFormat, x, y, _a) {
|
|
2872
3052
|
var getInternalSlots2 = _a.getInternalSlots;
|
|
@@ -2882,16 +3062,15 @@
|
|
|
2882
3062
|
};
|
|
2883
3063
|
});
|
|
2884
3064
|
}
|
|
2885
|
-
exports.FormatNumericRangeToParts = FormatNumericRangeToParts;
|
|
2886
3065
|
}
|
|
2887
3066
|
});
|
|
2888
3067
|
|
|
2889
|
-
//
|
|
3068
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericToParts.js
|
|
2890
3069
|
var require_FormatNumericToParts = __commonJS({
|
|
2891
|
-
"
|
|
3070
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumericToParts.js"(exports) {
|
|
2892
3071
|
"use strict";
|
|
2893
3072
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2894
|
-
exports.FormatNumericToParts =
|
|
3073
|
+
exports.FormatNumericToParts = FormatNumericToParts;
|
|
2895
3074
|
var PartitionNumberPattern_1 = require_PartitionNumberPattern();
|
|
2896
3075
|
var _262_1 = require__();
|
|
2897
3076
|
function FormatNumericToParts(nf, x, implDetails) {
|
|
@@ -2906,16 +3085,15 @@
|
|
|
2906
3085
|
}
|
|
2907
3086
|
return result;
|
|
2908
3087
|
}
|
|
2909
|
-
exports.FormatNumericToParts = FormatNumericToParts;
|
|
2910
3088
|
}
|
|
2911
3089
|
});
|
|
2912
3090
|
|
|
2913
|
-
//
|
|
3091
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/GetUnsignedRoundingMode.js
|
|
2914
3092
|
var require_GetUnsignedRoundingMode = __commonJS({
|
|
2915
|
-
"
|
|
3093
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/GetUnsignedRoundingMode.js"(exports) {
|
|
2916
3094
|
"use strict";
|
|
2917
3095
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2918
|
-
exports.GetUnsignedRoundingMode =
|
|
3096
|
+
exports.GetUnsignedRoundingMode = GetUnsignedRoundingMode;
|
|
2919
3097
|
var negativeMapping = {
|
|
2920
3098
|
ceil: "zero",
|
|
2921
3099
|
floor: "infinity",
|
|
@@ -2944,26 +3122,24 @@
|
|
|
2944
3122
|
}
|
|
2945
3123
|
return positiveMapping[roundingMode];
|
|
2946
3124
|
}
|
|
2947
|
-
exports.GetUnsignedRoundingMode = GetUnsignedRoundingMode;
|
|
2948
3125
|
}
|
|
2949
3126
|
});
|
|
2950
3127
|
|
|
2951
|
-
//
|
|
3128
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/CanonicalizeLocaleList.js
|
|
2952
3129
|
var require_CanonicalizeLocaleList2 = __commonJS({
|
|
2953
|
-
"
|
|
3130
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/CanonicalizeLocaleList.js"(exports) {
|
|
2954
3131
|
"use strict";
|
|
2955
3132
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2956
|
-
exports.CanonicalizeLocaleList =
|
|
2957
|
-
function
|
|
3133
|
+
exports.CanonicalizeLocaleList = CanonicalizeLocaleList3;
|
|
3134
|
+
function CanonicalizeLocaleList3(locales) {
|
|
2958
3135
|
return Intl.getCanonicalLocales(locales);
|
|
2959
3136
|
}
|
|
2960
|
-
exports.CanonicalizeLocaleList = CanonicalizeLocaleList;
|
|
2961
3137
|
}
|
|
2962
3138
|
});
|
|
2963
3139
|
|
|
2964
|
-
//
|
|
3140
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
|
|
2965
3141
|
var require_languageMatching = __commonJS({
|
|
2966
|
-
"
|
|
3142
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js"(exports) {
|
|
2967
3143
|
"use strict";
|
|
2968
3144
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2969
3145
|
exports.data = void 0;
|
|
@@ -5590,9 +5766,9 @@
|
|
|
5590
5766
|
}
|
|
5591
5767
|
});
|
|
5592
5768
|
|
|
5593
|
-
//
|
|
5769
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/regions.generated.js
|
|
5594
5770
|
var require_regions_generated = __commonJS({
|
|
5595
|
-
"
|
|
5771
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/regions.generated.js"(exports) {
|
|
5596
5772
|
"use strict";
|
|
5597
5773
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5598
5774
|
exports.regions = void 0;
|
|
@@ -6932,17 +7108,20 @@
|
|
|
6932
7108
|
}
|
|
6933
7109
|
});
|
|
6934
7110
|
|
|
6935
|
-
//
|
|
7111
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/utils.js
|
|
6936
7112
|
var require_utils2 = __commonJS({
|
|
6937
|
-
"
|
|
7113
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/utils.js"(exports) {
|
|
6938
7114
|
"use strict";
|
|
6939
7115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6940
|
-
exports.
|
|
7116
|
+
exports.UNICODE_EXTENSION_SEQUENCE_REGEX = void 0;
|
|
7117
|
+
exports.invariant = invariant3;
|
|
7118
|
+
exports.findMatchingDistance = findMatchingDistance;
|
|
7119
|
+
exports.findBestMatch = findBestMatch2;
|
|
6941
7120
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
6942
7121
|
var languageMatching_1 = require_languageMatching();
|
|
6943
7122
|
var regions_generated_1 = require_regions_generated();
|
|
6944
7123
|
exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
6945
|
-
function
|
|
7124
|
+
function invariant3(condition, message, Err) {
|
|
6946
7125
|
if (Err === void 0) {
|
|
6947
7126
|
Err = Error;
|
|
6948
7127
|
}
|
|
@@ -6950,7 +7129,6 @@
|
|
|
6950
7129
|
throw new Err(message);
|
|
6951
7130
|
}
|
|
6952
7131
|
}
|
|
6953
|
-
exports.invariant = invariant2;
|
|
6954
7132
|
var DEFAULT_MATCHING_THRESHOLD = 838;
|
|
6955
7133
|
var PROCESSED_DATA;
|
|
6956
7134
|
function processData() {
|
|
@@ -6958,8 +7136,8 @@
|
|
|
6958
7136
|
if (!PROCESSED_DATA) {
|
|
6959
7137
|
var paradigmLocales = (_b = (_a = languageMatching_1.data.supplemental.languageMatching["written-new"][0]) === null || _a === void 0 ? void 0 : _a.paradigmLocales) === null || _b === void 0 ? void 0 : _b._locales.split(" ");
|
|
6960
7138
|
var matchVariables = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(1, 5);
|
|
6961
|
-
var
|
|
6962
|
-
var matches =
|
|
7139
|
+
var data2 = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(5);
|
|
7140
|
+
var matches = data2.map(function(d) {
|
|
6963
7141
|
var key = Object.keys(d)[0];
|
|
6964
7142
|
var value = d[key];
|
|
6965
7143
|
return {
|
|
@@ -7006,16 +7184,16 @@
|
|
|
7006
7184
|
function serializeLSR(lsr) {
|
|
7007
7185
|
return [lsr.language, lsr.script, lsr.region].filter(Boolean).join("-");
|
|
7008
7186
|
}
|
|
7009
|
-
function findMatchingDistanceForLSR(desired, supported,
|
|
7010
|
-
for (var _i = 0, _a =
|
|
7187
|
+
function findMatchingDistanceForLSR(desired, supported, data2) {
|
|
7188
|
+
for (var _i = 0, _a = data2.matches; _i < _a.length; _i++) {
|
|
7011
7189
|
var d = _a[_i];
|
|
7012
|
-
var matches = isMatched(desired, d.desired,
|
|
7190
|
+
var matches = isMatched(desired, d.desired, data2.matchVariables) && isMatched(supported, d.supported, data2.matchVariables);
|
|
7013
7191
|
if (!d.oneway && !matches) {
|
|
7014
|
-
matches = isMatched(desired, d.supported,
|
|
7192
|
+
matches = isMatched(desired, d.supported, data2.matchVariables) && isMatched(supported, d.desired, data2.matchVariables);
|
|
7015
7193
|
}
|
|
7016
7194
|
if (matches) {
|
|
7017
7195
|
var distance = d.distance * 10;
|
|
7018
|
-
if (
|
|
7196
|
+
if (data2.paradigmLocales.indexOf(serializeLSR(desired)) > -1 != data2.paradigmLocales.indexOf(serializeLSR(supported)) > -1) {
|
|
7019
7197
|
return distance - 1;
|
|
7020
7198
|
}
|
|
7021
7199
|
return distance;
|
|
@@ -7037,7 +7215,7 @@
|
|
|
7037
7215
|
region: supportedLocale.region || ""
|
|
7038
7216
|
};
|
|
7039
7217
|
var matchingDistance = 0;
|
|
7040
|
-
var
|
|
7218
|
+
var data2 = processData();
|
|
7041
7219
|
if (desiredLSR.language !== supportedLSR.language) {
|
|
7042
7220
|
matchingDistance += findMatchingDistanceForLSR({
|
|
7043
7221
|
language: desiredLocale.language,
|
|
@@ -7047,7 +7225,7 @@
|
|
|
7047
7225
|
language: supportedLocale.language,
|
|
7048
7226
|
script: "",
|
|
7049
7227
|
region: ""
|
|
7050
|
-
},
|
|
7228
|
+
}, data2);
|
|
7051
7229
|
}
|
|
7052
7230
|
if (desiredLSR.script !== supportedLSR.script) {
|
|
7053
7231
|
matchingDistance += findMatchingDistanceForLSR({
|
|
@@ -7058,15 +7236,14 @@
|
|
|
7058
7236
|
language: supportedLocale.language,
|
|
7059
7237
|
script: desiredLSR.script,
|
|
7060
7238
|
region: ""
|
|
7061
|
-
},
|
|
7239
|
+
}, data2);
|
|
7062
7240
|
}
|
|
7063
7241
|
if (desiredLSR.region !== supportedLSR.region) {
|
|
7064
|
-
matchingDistance += findMatchingDistanceForLSR(desiredLSR, supportedLSR,
|
|
7242
|
+
matchingDistance += findMatchingDistanceForLSR(desiredLSR, supportedLSR, data2);
|
|
7065
7243
|
}
|
|
7066
7244
|
return matchingDistance;
|
|
7067
7245
|
}
|
|
7068
|
-
|
|
7069
|
-
function findBestMatch(requestedLocales, supportedLocales, threshold) {
|
|
7246
|
+
function findBestMatch2(requestedLocales, supportedLocales, threshold) {
|
|
7070
7247
|
if (threshold === void 0) {
|
|
7071
7248
|
threshold = DEFAULT_MATCHING_THRESHOLD;
|
|
7072
7249
|
}
|
|
@@ -7095,18 +7272,17 @@
|
|
|
7095
7272
|
}
|
|
7096
7273
|
return result;
|
|
7097
7274
|
}
|
|
7098
|
-
exports.findBestMatch = findBestMatch;
|
|
7099
7275
|
}
|
|
7100
7276
|
});
|
|
7101
7277
|
|
|
7102
|
-
//
|
|
7278
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/BestFitMatcher.js
|
|
7103
7279
|
var require_BestFitMatcher = __commonJS({
|
|
7104
|
-
"
|
|
7280
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/BestFitMatcher.js"(exports) {
|
|
7105
7281
|
"use strict";
|
|
7106
7282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7107
|
-
exports.BestFitMatcher =
|
|
7283
|
+
exports.BestFitMatcher = BestFitMatcher2;
|
|
7108
7284
|
var utils_1 = require_utils2();
|
|
7109
|
-
function
|
|
7285
|
+
function BestFitMatcher2(availableLocales, requestedLocales, getDefaultLocale) {
|
|
7110
7286
|
var foundLocale;
|
|
7111
7287
|
var extension;
|
|
7112
7288
|
var noExtensionLocales = [];
|
|
@@ -7129,17 +7305,16 @@
|
|
|
7129
7305
|
extension
|
|
7130
7306
|
};
|
|
7131
7307
|
}
|
|
7132
|
-
exports.BestFitMatcher = BestFitMatcher;
|
|
7133
7308
|
}
|
|
7134
7309
|
});
|
|
7135
7310
|
|
|
7136
|
-
//
|
|
7311
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/BestAvailableLocale.js
|
|
7137
7312
|
var require_BestAvailableLocale = __commonJS({
|
|
7138
|
-
"
|
|
7313
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/BestAvailableLocale.js"(exports) {
|
|
7139
7314
|
"use strict";
|
|
7140
7315
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7141
|
-
exports.BestAvailableLocale =
|
|
7142
|
-
function
|
|
7316
|
+
exports.BestAvailableLocale = BestAvailableLocale2;
|
|
7317
|
+
function BestAvailableLocale2(availableLocales, locale) {
|
|
7143
7318
|
var candidate = locale;
|
|
7144
7319
|
while (true) {
|
|
7145
7320
|
if (availableLocales.indexOf(candidate) > -1) {
|
|
@@ -7155,19 +7330,18 @@
|
|
|
7155
7330
|
candidate = candidate.slice(0, pos);
|
|
7156
7331
|
}
|
|
7157
7332
|
}
|
|
7158
|
-
exports.BestAvailableLocale = BestAvailableLocale;
|
|
7159
7333
|
}
|
|
7160
7334
|
});
|
|
7161
7335
|
|
|
7162
|
-
//
|
|
7336
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/LookupMatcher.js
|
|
7163
7337
|
var require_LookupMatcher = __commonJS({
|
|
7164
|
-
"
|
|
7338
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/LookupMatcher.js"(exports) {
|
|
7165
7339
|
"use strict";
|
|
7166
7340
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7167
|
-
exports.LookupMatcher =
|
|
7341
|
+
exports.LookupMatcher = LookupMatcher2;
|
|
7168
7342
|
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
7169
7343
|
var utils_1 = require_utils2();
|
|
7170
|
-
function
|
|
7344
|
+
function LookupMatcher2(availableLocales, requestedLocales, getDefaultLocale) {
|
|
7171
7345
|
var result = { locale: "" };
|
|
7172
7346
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
7173
7347
|
var locale = requestedLocales_1[_i];
|
|
@@ -7184,18 +7358,17 @@
|
|
|
7184
7358
|
result.locale = getDefaultLocale();
|
|
7185
7359
|
return result;
|
|
7186
7360
|
}
|
|
7187
|
-
exports.LookupMatcher = LookupMatcher;
|
|
7188
7361
|
}
|
|
7189
7362
|
});
|
|
7190
7363
|
|
|
7191
|
-
//
|
|
7364
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/UnicodeExtensionValue.js
|
|
7192
7365
|
var require_UnicodeExtensionValue = __commonJS({
|
|
7193
|
-
"
|
|
7366
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/UnicodeExtensionValue.js"(exports) {
|
|
7194
7367
|
"use strict";
|
|
7195
7368
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7196
|
-
exports.UnicodeExtensionValue =
|
|
7369
|
+
exports.UnicodeExtensionValue = UnicodeExtensionValue2;
|
|
7197
7370
|
var utils_1 = require_utils2();
|
|
7198
|
-
function
|
|
7371
|
+
function UnicodeExtensionValue2(extension, key) {
|
|
7199
7372
|
(0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
|
|
7200
7373
|
var size = extension.length;
|
|
7201
7374
|
var searchValue = "-".concat(key, "-");
|
|
@@ -7232,21 +7405,20 @@
|
|
|
7232
7405
|
}
|
|
7233
7406
|
return void 0;
|
|
7234
7407
|
}
|
|
7235
|
-
exports.UnicodeExtensionValue = UnicodeExtensionValue;
|
|
7236
7408
|
}
|
|
7237
7409
|
});
|
|
7238
7410
|
|
|
7239
|
-
//
|
|
7411
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/ResolveLocale.js
|
|
7240
7412
|
var require_ResolveLocale = __commonJS({
|
|
7241
|
-
"
|
|
7413
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/ResolveLocale.js"(exports) {
|
|
7242
7414
|
"use strict";
|
|
7243
7415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7244
|
-
exports.ResolveLocale =
|
|
7416
|
+
exports.ResolveLocale = ResolveLocale2;
|
|
7245
7417
|
var BestFitMatcher_1 = require_BestFitMatcher();
|
|
7246
7418
|
var LookupMatcher_1 = require_LookupMatcher();
|
|
7247
7419
|
var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
|
|
7248
7420
|
var utils_1 = require_utils2();
|
|
7249
|
-
function
|
|
7421
|
+
function ResolveLocale2(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
7250
7422
|
var matcher = options.localeMatcher;
|
|
7251
7423
|
var r;
|
|
7252
7424
|
if (matcher === "lookup") {
|
|
@@ -7308,19 +7480,18 @@
|
|
|
7308
7480
|
result.locale = foundLocale;
|
|
7309
7481
|
return result;
|
|
7310
7482
|
}
|
|
7311
|
-
exports.ResolveLocale = ResolveLocale;
|
|
7312
7483
|
}
|
|
7313
7484
|
});
|
|
7314
7485
|
|
|
7315
|
-
//
|
|
7486
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/LookupSupportedLocales.js
|
|
7316
7487
|
var require_LookupSupportedLocales = __commonJS({
|
|
7317
|
-
"
|
|
7488
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/abstract/LookupSupportedLocales.js"(exports) {
|
|
7318
7489
|
"use strict";
|
|
7319
7490
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7320
|
-
exports.LookupSupportedLocales =
|
|
7491
|
+
exports.LookupSupportedLocales = LookupSupportedLocales2;
|
|
7321
7492
|
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
7322
7493
|
var utils_1 = require_utils2();
|
|
7323
|
-
function
|
|
7494
|
+
function LookupSupportedLocales2(availableLocales, requestedLocales) {
|
|
7324
7495
|
var subset = [];
|
|
7325
7496
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
7326
7497
|
var locale = requestedLocales_1[_i];
|
|
@@ -7332,16 +7503,16 @@
|
|
|
7332
7503
|
}
|
|
7333
7504
|
return subset;
|
|
7334
7505
|
}
|
|
7335
|
-
exports.LookupSupportedLocales = LookupSupportedLocales;
|
|
7336
7506
|
}
|
|
7337
7507
|
});
|
|
7338
7508
|
|
|
7339
|
-
//
|
|
7509
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/index.js
|
|
7340
7510
|
var require_intl_localematcher = __commonJS({
|
|
7341
|
-
"
|
|
7511
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/index.js"(exports) {
|
|
7342
7512
|
"use strict";
|
|
7343
7513
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7344
|
-
exports.ResolveLocale = exports.LookupSupportedLocales =
|
|
7514
|
+
exports.ResolveLocale = exports.LookupSupportedLocales = void 0;
|
|
7515
|
+
exports.match = match;
|
|
7345
7516
|
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList2();
|
|
7346
7517
|
var ResolveLocale_1 = require_ResolveLocale();
|
|
7347
7518
|
function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
@@ -7351,7 +7522,6 @@
|
|
|
7351
7522
|
return defaultLocale;
|
|
7352
7523
|
}).locale;
|
|
7353
7524
|
}
|
|
7354
|
-
exports.match = match;
|
|
7355
7525
|
var LookupSupportedLocales_1 = require_LookupSupportedLocales();
|
|
7356
7526
|
Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
|
|
7357
7527
|
return LookupSupportedLocales_1.LookupSupportedLocales;
|
|
@@ -7363,16 +7533,16 @@
|
|
|
7363
7533
|
}
|
|
7364
7534
|
});
|
|
7365
7535
|
|
|
7366
|
-
//
|
|
7536
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
7367
7537
|
var require_SetNumberFormatDigitOptions = __commonJS({
|
|
7368
|
-
"
|
|
7538
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js"(exports) {
|
|
7369
7539
|
"use strict";
|
|
7370
7540
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7371
|
-
exports.SetNumberFormatDigitOptions =
|
|
7541
|
+
exports.SetNumberFormatDigitOptions = SetNumberFormatDigitOptions2;
|
|
7372
7542
|
var DefaultNumberOption_1 = require_DefaultNumberOption();
|
|
7373
7543
|
var GetNumberOption_1 = require_GetNumberOption();
|
|
7374
7544
|
var GetOption_1 = require_GetOption();
|
|
7375
|
-
function
|
|
7545
|
+
function SetNumberFormatDigitOptions2(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
|
|
7376
7546
|
var mnid = (0, GetNumberOption_1.GetNumberOption)(opts, "minimumIntegerDigits", 1, 21, 1);
|
|
7377
7547
|
var mnfd = opts.minimumFractionDigits;
|
|
7378
7548
|
var mxfd = opts.maximumFractionDigits;
|
|
@@ -7437,20 +7607,19 @@
|
|
|
7437
7607
|
internalSlots.maximumSignificantDigits = 2;
|
|
7438
7608
|
}
|
|
7439
7609
|
}
|
|
7440
|
-
exports.SetNumberFormatDigitOptions = SetNumberFormatDigitOptions;
|
|
7441
7610
|
}
|
|
7442
7611
|
});
|
|
7443
7612
|
|
|
7444
|
-
//
|
|
7613
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js
|
|
7445
7614
|
var require_SetNumberFormatUnitOptions = __commonJS({
|
|
7446
|
-
"
|
|
7615
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js"(exports) {
|
|
7447
7616
|
"use strict";
|
|
7448
7617
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7449
|
-
exports.SetNumberFormatUnitOptions =
|
|
7618
|
+
exports.SetNumberFormatUnitOptions = SetNumberFormatUnitOptions2;
|
|
7450
7619
|
var GetOption_1 = require_GetOption();
|
|
7451
7620
|
var IsWellFormedCurrencyCode_1 = require_IsWellFormedCurrencyCode();
|
|
7452
7621
|
var IsWellFormedUnitIdentifier_1 = require_IsWellFormedUnitIdentifier();
|
|
7453
|
-
function
|
|
7622
|
+
function SetNumberFormatUnitOptions2(nf, options, _a) {
|
|
7454
7623
|
if (options === void 0) {
|
|
7455
7624
|
options = /* @__PURE__ */ Object.create(null);
|
|
7456
7625
|
}
|
|
@@ -7485,16 +7654,15 @@
|
|
|
7485
7654
|
internalSlots.unitDisplay = unitDisplay;
|
|
7486
7655
|
}
|
|
7487
7656
|
}
|
|
7488
|
-
exports.SetNumberFormatUnitOptions = SetNumberFormatUnitOptions;
|
|
7489
7657
|
}
|
|
7490
7658
|
});
|
|
7491
7659
|
|
|
7492
|
-
//
|
|
7660
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/InitializeNumberFormat.js
|
|
7493
7661
|
var require_InitializeNumberFormat = __commonJS({
|
|
7494
|
-
"
|
|
7662
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/InitializeNumberFormat.js"(exports) {
|
|
7495
7663
|
"use strict";
|
|
7496
7664
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7497
|
-
exports.InitializeNumberFormat =
|
|
7665
|
+
exports.InitializeNumberFormat = InitializeNumberFormat;
|
|
7498
7666
|
var intl_localematcher_1 = require_intl_localematcher();
|
|
7499
7667
|
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList();
|
|
7500
7668
|
var CoerceOptionsToObject_1 = require_CoerceOptionsToObject();
|
|
@@ -7598,16 +7766,15 @@
|
|
|
7598
7766
|
], "halfExpand");
|
|
7599
7767
|
return nf;
|
|
7600
7768
|
}
|
|
7601
|
-
exports.InitializeNumberFormat = InitializeNumberFormat;
|
|
7602
7769
|
}
|
|
7603
7770
|
});
|
|
7604
7771
|
|
|
7605
|
-
//
|
|
7772
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
|
|
7606
7773
|
var require_PartitionPattern = __commonJS({
|
|
7607
|
-
"
|
|
7774
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/PartitionPattern.js"(exports) {
|
|
7608
7775
|
"use strict";
|
|
7609
7776
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7610
|
-
exports.PartitionPattern =
|
|
7777
|
+
exports.PartitionPattern = PartitionPattern;
|
|
7611
7778
|
var utils_1 = require_utils();
|
|
7612
7779
|
function PartitionPattern(pattern) {
|
|
7613
7780
|
var result = [];
|
|
@@ -7639,16 +7806,15 @@
|
|
|
7639
7806
|
}
|
|
7640
7807
|
return result;
|
|
7641
7808
|
}
|
|
7642
|
-
exports.PartitionPattern = PartitionPattern;
|
|
7643
7809
|
}
|
|
7644
7810
|
});
|
|
7645
7811
|
|
|
7646
|
-
//
|
|
7812
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
|
|
7647
7813
|
var require_SupportedLocales = __commonJS({
|
|
7648
|
-
"
|
|
7814
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/SupportedLocales.js"(exports) {
|
|
7649
7815
|
"use strict";
|
|
7650
7816
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7651
|
-
exports.SupportedLocales =
|
|
7817
|
+
exports.SupportedLocales = SupportedLocales;
|
|
7652
7818
|
var intl_localematcher_1 = require_intl_localematcher();
|
|
7653
7819
|
var _262_1 = require__();
|
|
7654
7820
|
var GetOption_1 = require_GetOption();
|
|
@@ -7663,94 +7829,92 @@
|
|
|
7663
7829
|
}
|
|
7664
7830
|
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
7665
7831
|
}
|
|
7666
|
-
exports.SupportedLocales = SupportedLocales;
|
|
7667
7832
|
}
|
|
7668
7833
|
});
|
|
7669
7834
|
|
|
7670
|
-
//
|
|
7835
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/data.js
|
|
7671
7836
|
var require_data = __commonJS({
|
|
7672
|
-
"
|
|
7837
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/data.js"(exports) {
|
|
7673
7838
|
"use strict";
|
|
7674
7839
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7675
|
-
exports.isMissingLocaleDataError =
|
|
7840
|
+
exports.isMissingLocaleDataError = isMissingLocaleDataError2;
|
|
7676
7841
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
7677
|
-
var
|
|
7842
|
+
var MissingLocaleDataError2 = (
|
|
7678
7843
|
/** @class */
|
|
7679
7844
|
function(_super) {
|
|
7680
|
-
tslib_1.__extends(
|
|
7681
|
-
function
|
|
7845
|
+
tslib_1.__extends(MissingLocaleDataError3, _super);
|
|
7846
|
+
function MissingLocaleDataError3() {
|
|
7682
7847
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
7683
7848
|
_this.type = "MISSING_LOCALE_DATA";
|
|
7684
7849
|
return _this;
|
|
7685
7850
|
}
|
|
7686
|
-
return
|
|
7851
|
+
return MissingLocaleDataError3;
|
|
7687
7852
|
}(Error)
|
|
7688
7853
|
);
|
|
7689
|
-
function
|
|
7854
|
+
function isMissingLocaleDataError2(e) {
|
|
7690
7855
|
return e.type === "MISSING_LOCALE_DATA";
|
|
7691
7856
|
}
|
|
7692
|
-
exports.isMissingLocaleDataError = isMissingLocaleDataError;
|
|
7693
7857
|
}
|
|
7694
7858
|
});
|
|
7695
7859
|
|
|
7696
|
-
//
|
|
7860
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/date-time.js
|
|
7697
7861
|
var require_date_time = __commonJS({
|
|
7698
|
-
"
|
|
7862
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/date-time.js"(exports) {
|
|
7699
7863
|
"use strict";
|
|
7700
7864
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7701
7865
|
exports.RangePatternType = void 0;
|
|
7702
|
-
var
|
|
7703
|
-
(function(
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
})(
|
|
7866
|
+
var RangePatternType2;
|
|
7867
|
+
(function(RangePatternType3) {
|
|
7868
|
+
RangePatternType3["startRange"] = "startRange";
|
|
7869
|
+
RangePatternType3["shared"] = "shared";
|
|
7870
|
+
RangePatternType3["endRange"] = "endRange";
|
|
7871
|
+
})(RangePatternType2 || (exports.RangePatternType = RangePatternType2 = {}));
|
|
7708
7872
|
}
|
|
7709
7873
|
});
|
|
7710
7874
|
|
|
7711
|
-
//
|
|
7875
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/displaynames.js
|
|
7712
7876
|
var require_displaynames = __commonJS({
|
|
7713
|
-
"
|
|
7877
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/displaynames.js"(exports) {
|
|
7714
7878
|
"use strict";
|
|
7715
7879
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7716
7880
|
}
|
|
7717
7881
|
});
|
|
7718
7882
|
|
|
7719
|
-
//
|
|
7883
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/list.js
|
|
7720
7884
|
var require_list = __commonJS({
|
|
7721
|
-
"
|
|
7885
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/list.js"(exports) {
|
|
7722
7886
|
"use strict";
|
|
7723
7887
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7724
7888
|
}
|
|
7725
7889
|
});
|
|
7726
7890
|
|
|
7727
|
-
//
|
|
7891
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/number.js
|
|
7728
7892
|
var require_number = __commonJS({
|
|
7729
|
-
"
|
|
7893
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/number.js"(exports) {
|
|
7730
7894
|
"use strict";
|
|
7731
7895
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7732
7896
|
}
|
|
7733
7897
|
});
|
|
7734
7898
|
|
|
7735
|
-
//
|
|
7899
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
|
|
7736
7900
|
var require_plural_rules = __commonJS({
|
|
7737
|
-
"
|
|
7901
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/plural-rules.js"(exports) {
|
|
7738
7902
|
"use strict";
|
|
7739
7903
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7740
7904
|
}
|
|
7741
7905
|
});
|
|
7742
7906
|
|
|
7743
|
-
//
|
|
7907
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/relative-time.js
|
|
7744
7908
|
var require_relative_time = __commonJS({
|
|
7745
|
-
"
|
|
7909
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/types/relative-time.js"(exports) {
|
|
7746
7910
|
"use strict";
|
|
7747
7911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7748
7912
|
}
|
|
7749
7913
|
});
|
|
7750
7914
|
|
|
7751
|
-
//
|
|
7915
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/index.js
|
|
7752
7916
|
var require_ecma402_abstract = __commonJS({
|
|
7753
|
-
"
|
|
7917
|
+
"node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/index.js"(exports) {
|
|
7754
7918
|
"use strict";
|
|
7755
7919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7756
7920
|
exports.invariant = exports.createMemoizedPluralRules = exports.createMemoizedNumberFormat = exports.createMemoizedLocale = exports.createMemoizedListFormat = exports.createMemoizedDateTimeFormat = exports.isMissingLocaleDataError = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getMagnitude = exports.getInternalSlot = exports.defineProperty = exports.createDataProperty = exports._formatToParts = void 0;
|
|
@@ -7848,22 +8012,9 @@
|
|
|
7848
8012
|
}
|
|
7849
8013
|
});
|
|
7850
8014
|
|
|
7851
|
-
//
|
|
7852
|
-
var require_should_polyfill = __commonJS({
|
|
7853
|
-
"../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/should-polyfill.js"(exports) {
|
|
7854
|
-
"use strict";
|
|
7855
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7856
|
-
exports.shouldPolyfill = void 0;
|
|
7857
|
-
function shouldPolyfill2() {
|
|
7858
|
-
return !("supportedValuesOf" in Intl);
|
|
7859
|
-
}
|
|
7860
|
-
exports.shouldPolyfill = shouldPolyfill2;
|
|
7861
|
-
}
|
|
7862
|
-
});
|
|
7863
|
-
|
|
7864
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/calendars.generated.js
|
|
8015
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/calendars.generated.js
|
|
7865
8016
|
var require_calendars_generated = __commonJS({
|
|
7866
|
-
"
|
|
8017
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/calendars.generated.js"(exports) {
|
|
7867
8018
|
"use strict";
|
|
7868
8019
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7869
8020
|
exports.calendars = void 0;
|
|
@@ -7871,12 +8022,12 @@
|
|
|
7871
8022
|
}
|
|
7872
8023
|
});
|
|
7873
8024
|
|
|
7874
|
-
//
|
|
8025
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-calendars.js
|
|
7875
8026
|
var require_get_supported_calendars = __commonJS({
|
|
7876
|
-
"
|
|
8027
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-calendars.js"(exports) {
|
|
7877
8028
|
"use strict";
|
|
7878
8029
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7879
|
-
exports.getSupportedCalendars =
|
|
8030
|
+
exports.getSupportedCalendars = getSupportedCalendars;
|
|
7880
8031
|
var ecma402_abstract_1 = require_ecma402_abstract();
|
|
7881
8032
|
var calendars_generated_1 = require_calendars_generated();
|
|
7882
8033
|
function isSupportedCalendar(item, locale) {
|
|
@@ -7897,13 +8048,12 @@
|
|
|
7897
8048
|
return isSupportedCalendar(calendar, localePrefix);
|
|
7898
8049
|
});
|
|
7899
8050
|
}
|
|
7900
|
-
exports.getSupportedCalendars = getSupportedCalendars;
|
|
7901
8051
|
}
|
|
7902
8052
|
});
|
|
7903
8053
|
|
|
7904
|
-
//
|
|
8054
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/collations.generated.js
|
|
7905
8055
|
var require_collations_generated = __commonJS({
|
|
7906
|
-
"
|
|
8056
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/collations.generated.js"(exports) {
|
|
7907
8057
|
"use strict";
|
|
7908
8058
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7909
8059
|
exports.collations = void 0;
|
|
@@ -7911,12 +8061,12 @@
|
|
|
7911
8061
|
}
|
|
7912
8062
|
});
|
|
7913
8063
|
|
|
7914
|
-
//
|
|
8064
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-collations.js
|
|
7915
8065
|
var require_get_supported_collations = __commonJS({
|
|
7916
|
-
"
|
|
8066
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-collations.js"(exports) {
|
|
7917
8067
|
"use strict";
|
|
7918
8068
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7919
|
-
exports.getSupportedCollations =
|
|
8069
|
+
exports.getSupportedCollations = getSupportedCollations;
|
|
7920
8070
|
var collations_generated_1 = require_collations_generated();
|
|
7921
8071
|
function isSupported(collation, locale) {
|
|
7922
8072
|
if (locale === void 0) {
|
|
@@ -7933,13 +8083,12 @@
|
|
|
7933
8083
|
return isSupported(collation, locale);
|
|
7934
8084
|
});
|
|
7935
8085
|
}
|
|
7936
|
-
exports.getSupportedCollations = getSupportedCollations;
|
|
7937
8086
|
}
|
|
7938
8087
|
});
|
|
7939
8088
|
|
|
7940
|
-
//
|
|
8089
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/currencies.generated.js
|
|
7941
8090
|
var require_currencies_generated = __commonJS({
|
|
7942
|
-
"
|
|
8091
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/currencies.generated.js"(exports) {
|
|
7943
8092
|
"use strict";
|
|
7944
8093
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7945
8094
|
exports.currencies = void 0;
|
|
@@ -7947,12 +8096,12 @@
|
|
|
7947
8096
|
}
|
|
7948
8097
|
});
|
|
7949
8098
|
|
|
7950
|
-
//
|
|
8099
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-currencies.js
|
|
7951
8100
|
var require_get_supported_currencies = __commonJS({
|
|
7952
|
-
"
|
|
8101
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-currencies.js"(exports) {
|
|
7953
8102
|
"use strict";
|
|
7954
8103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7955
|
-
exports.getSupportedCurrencies =
|
|
8104
|
+
exports.getSupportedCurrencies = getSupportedCurrencies;
|
|
7956
8105
|
var ecma402_abstract_1 = require_ecma402_abstract();
|
|
7957
8106
|
var currencies_generated_1 = require_currencies_generated();
|
|
7958
8107
|
function isSupportedCurrency(currency, locale) {
|
|
@@ -7995,13 +8144,12 @@
|
|
|
7995
8144
|
}
|
|
7996
8145
|
return supportedCurrencies;
|
|
7997
8146
|
}
|
|
7998
|
-
exports.getSupportedCurrencies = getSupportedCurrencies;
|
|
7999
8147
|
}
|
|
8000
8148
|
});
|
|
8001
8149
|
|
|
8002
|
-
//
|
|
8150
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/numbering-systems.generated.js
|
|
8003
8151
|
var require_numbering_systems_generated = __commonJS({
|
|
8004
|
-
"
|
|
8152
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/numbering-systems.generated.js"(exports) {
|
|
8005
8153
|
"use strict";
|
|
8006
8154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8007
8155
|
exports.numberingSystemNames = void 0;
|
|
@@ -8009,12 +8157,12 @@
|
|
|
8009
8157
|
}
|
|
8010
8158
|
});
|
|
8011
8159
|
|
|
8012
|
-
//
|
|
8160
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-numbering-systems.js
|
|
8013
8161
|
var require_get_supported_numbering_systems = __commonJS({
|
|
8014
|
-
"
|
|
8162
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-numbering-systems.js"(exports) {
|
|
8015
8163
|
"use strict";
|
|
8016
8164
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8017
|
-
exports.getSupportedNumberingSystems =
|
|
8165
|
+
exports.getSupportedNumberingSystems = getSupportedNumberingSystems;
|
|
8018
8166
|
var ecma402_abstract_1 = require_ecma402_abstract();
|
|
8019
8167
|
var numbering_systems_generated_1 = require_numbering_systems_generated();
|
|
8020
8168
|
function isSupportedNumberingSystem(system, locale) {
|
|
@@ -8036,13 +8184,12 @@
|
|
|
8036
8184
|
return isSupportedNumberingSystem(numberingSystemName, locale);
|
|
8037
8185
|
});
|
|
8038
8186
|
}
|
|
8039
|
-
exports.getSupportedNumberingSystems = getSupportedNumberingSystems;
|
|
8040
8187
|
}
|
|
8041
8188
|
});
|
|
8042
8189
|
|
|
8043
|
-
//
|
|
8190
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/timezones.generated.js
|
|
8044
8191
|
var require_timezones_generated = __commonJS({
|
|
8045
|
-
"
|
|
8192
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/timezones.generated.js"(exports) {
|
|
8046
8193
|
"use strict";
|
|
8047
8194
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8048
8195
|
exports.timezones = void 0;
|
|
@@ -8050,12 +8197,12 @@
|
|
|
8050
8197
|
}
|
|
8051
8198
|
});
|
|
8052
8199
|
|
|
8053
|
-
//
|
|
8200
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-timezones.js
|
|
8054
8201
|
var require_get_supported_timezones = __commonJS({
|
|
8055
|
-
"
|
|
8202
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-timezones.js"(exports) {
|
|
8056
8203
|
"use strict";
|
|
8057
8204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8058
|
-
exports.getSupportedTimeZones =
|
|
8205
|
+
exports.getSupportedTimeZones = getSupportedTimeZones;
|
|
8059
8206
|
var ecma402_abstract_1 = require_ecma402_abstract();
|
|
8060
8207
|
var timezones_generated_1 = require_timezones_generated();
|
|
8061
8208
|
function isSupported(timeZone, locale) {
|
|
@@ -8074,13 +8221,12 @@
|
|
|
8074
8221
|
return isSupported(timezone, locale);
|
|
8075
8222
|
});
|
|
8076
8223
|
}
|
|
8077
|
-
exports.getSupportedTimeZones = getSupportedTimeZones;
|
|
8078
8224
|
}
|
|
8079
8225
|
});
|
|
8080
8226
|
|
|
8081
|
-
//
|
|
8227
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/units.generated.js
|
|
8082
8228
|
var require_units_generated = __commonJS({
|
|
8083
|
-
"
|
|
8229
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/units.generated.js"(exports) {
|
|
8084
8230
|
"use strict";
|
|
8085
8231
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8086
8232
|
exports.units = void 0;
|
|
@@ -8088,12 +8234,12 @@
|
|
|
8088
8234
|
}
|
|
8089
8235
|
});
|
|
8090
8236
|
|
|
8091
|
-
//
|
|
8237
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-units.js
|
|
8092
8238
|
var require_get_supported_units = __commonJS({
|
|
8093
|
-
"
|
|
8239
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/get-supported-units.js"(exports) {
|
|
8094
8240
|
"use strict";
|
|
8095
8241
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8096
|
-
exports.getSupportedUnits =
|
|
8242
|
+
exports.getSupportedUnits = getSupportedUnits;
|
|
8097
8243
|
var ecma402_abstract_1 = require_ecma402_abstract();
|
|
8098
8244
|
var units_generated_1 = require_units_generated();
|
|
8099
8245
|
function isSupported(unit, locale) {
|
|
@@ -8112,16 +8258,15 @@
|
|
|
8112
8258
|
return isSupported(unit, locale);
|
|
8113
8259
|
});
|
|
8114
8260
|
}
|
|
8115
|
-
exports.getSupportedUnits = getSupportedUnits;
|
|
8116
8261
|
}
|
|
8117
8262
|
});
|
|
8118
8263
|
|
|
8119
|
-
//
|
|
8264
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/index.js
|
|
8120
8265
|
var require_src = __commonJS({
|
|
8121
|
-
"
|
|
8266
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/src/index.js"(exports) {
|
|
8122
8267
|
"use strict";
|
|
8123
8268
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8124
|
-
exports.supportedValuesOf =
|
|
8269
|
+
exports.supportedValuesOf = supportedValuesOf2;
|
|
8125
8270
|
var get_supported_calendars_1 = require_get_supported_calendars();
|
|
8126
8271
|
var get_supported_collations_1 = require_get_supported_collations();
|
|
8127
8272
|
var get_supported_currencies_1 = require_get_supported_currencies();
|
|
@@ -8146,13 +8291,12 @@
|
|
|
8146
8291
|
throw RangeError("Invalid key: " + key);
|
|
8147
8292
|
}
|
|
8148
8293
|
}
|
|
8149
|
-
exports.supportedValuesOf = supportedValuesOf2;
|
|
8150
8294
|
}
|
|
8151
8295
|
});
|
|
8152
8296
|
|
|
8153
|
-
//
|
|
8297
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/index.js
|
|
8154
8298
|
var require_intl_enumerator = __commonJS({
|
|
8155
|
-
"
|
|
8299
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-enumerator@0.0.0/node_modules/@formatjs/intl-enumerator/index.js"(exports) {
|
|
8156
8300
|
"use strict";
|
|
8157
8301
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8158
8302
|
exports.supportedValuesOf = exports.shouldPolyfill = void 0;
|
|
@@ -8167,12 +8311,19 @@
|
|
|
8167
8311
|
}
|
|
8168
8312
|
});
|
|
8169
8313
|
|
|
8170
|
-
//
|
|
8314
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/parser.js
|
|
8171
8315
|
var require_parser = __commonJS({
|
|
8172
|
-
"
|
|
8316
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/parser.js"(exports) {
|
|
8173
8317
|
"use strict";
|
|
8174
8318
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8175
|
-
exports.
|
|
8319
|
+
exports.SEPARATOR = void 0;
|
|
8320
|
+
exports.isUnicodeLanguageSubtag = isUnicodeLanguageSubtag2;
|
|
8321
|
+
exports.isStructurallyValidLanguageTag = isStructurallyValidLanguageTag2;
|
|
8322
|
+
exports.isUnicodeRegionSubtag = isUnicodeRegionSubtag2;
|
|
8323
|
+
exports.isUnicodeScriptSubtag = isUnicodeScriptSubtag2;
|
|
8324
|
+
exports.isUnicodeVariantSubtag = isUnicodeVariantSubtag;
|
|
8325
|
+
exports.parseUnicodeLanguageId = parseUnicodeLanguageId2;
|
|
8326
|
+
exports.parseUnicodeLocaleId = parseUnicodeLocaleId2;
|
|
8176
8327
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
8177
8328
|
var ALPHANUM_1_8 = /^[a-z0-9]{1,8}$/i;
|
|
8178
8329
|
var ALPHANUM_2_8 = /^[a-z0-9]{2,8}$/i;
|
|
@@ -8189,7 +8340,6 @@
|
|
|
8189
8340
|
function isUnicodeLanguageSubtag2(lang) {
|
|
8190
8341
|
return UNICODE_LANGUAGE_SUBTAG_REGEX.test(lang);
|
|
8191
8342
|
}
|
|
8192
|
-
exports.isUnicodeLanguageSubtag = isUnicodeLanguageSubtag2;
|
|
8193
8343
|
function isStructurallyValidLanguageTag2(tag) {
|
|
8194
8344
|
try {
|
|
8195
8345
|
parseUnicodeLanguageId2(tag.split(exports.SEPARATOR));
|
|
@@ -8198,19 +8348,15 @@
|
|
|
8198
8348
|
}
|
|
8199
8349
|
return true;
|
|
8200
8350
|
}
|
|
8201
|
-
exports.isStructurallyValidLanguageTag = isStructurallyValidLanguageTag2;
|
|
8202
8351
|
function isUnicodeRegionSubtag2(region) {
|
|
8203
8352
|
return UNICODE_REGION_SUBTAG_REGEX.test(region);
|
|
8204
8353
|
}
|
|
8205
|
-
exports.isUnicodeRegionSubtag = isUnicodeRegionSubtag2;
|
|
8206
8354
|
function isUnicodeScriptSubtag2(script) {
|
|
8207
8355
|
return ALPHA_4.test(script);
|
|
8208
8356
|
}
|
|
8209
|
-
exports.isUnicodeScriptSubtag = isUnicodeScriptSubtag2;
|
|
8210
8357
|
function isUnicodeVariantSubtag(variant) {
|
|
8211
8358
|
return UNICODE_VARIANT_SUBTAG_REGEX.test(variant);
|
|
8212
8359
|
}
|
|
8213
|
-
exports.isUnicodeVariantSubtag = isUnicodeVariantSubtag;
|
|
8214
8360
|
function parseUnicodeLanguageId2(chunks) {
|
|
8215
8361
|
if (typeof chunks === "string") {
|
|
8216
8362
|
chunks = chunks.split(exports.SEPARATOR);
|
|
@@ -8248,7 +8394,6 @@
|
|
|
8248
8394
|
variants: Object.keys(variants)
|
|
8249
8395
|
};
|
|
8250
8396
|
}
|
|
8251
|
-
exports.parseUnicodeLanguageId = parseUnicodeLanguageId2;
|
|
8252
8397
|
function parseUnicodeExtension(chunks) {
|
|
8253
8398
|
var keywords = [];
|
|
8254
8399
|
var keyword;
|
|
@@ -8403,16 +8548,16 @@
|
|
|
8403
8548
|
var lang = parseUnicodeLanguageId2(chunks);
|
|
8404
8549
|
return tslib_1.__assign({ lang }, parseExtensions(chunks));
|
|
8405
8550
|
}
|
|
8406
|
-
exports.parseUnicodeLocaleId = parseUnicodeLocaleId2;
|
|
8407
8551
|
}
|
|
8408
8552
|
});
|
|
8409
8553
|
|
|
8410
|
-
//
|
|
8554
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/emitter.js
|
|
8411
8555
|
var require_emitter = __commonJS({
|
|
8412
|
-
"
|
|
8556
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/emitter.js"(exports) {
|
|
8413
8557
|
"use strict";
|
|
8414
8558
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8415
|
-
exports.
|
|
8559
|
+
exports.emitUnicodeLanguageId = emitUnicodeLanguageId2;
|
|
8560
|
+
exports.emitUnicodeLocaleId = emitUnicodeLocaleId2;
|
|
8416
8561
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
8417
8562
|
function emitUnicodeLanguageId2(lang) {
|
|
8418
8563
|
if (!lang) {
|
|
@@ -8420,7 +8565,6 @@
|
|
|
8420
8565
|
}
|
|
8421
8566
|
return tslib_1.__spreadArray([lang.lang, lang.script, lang.region], lang.variants || [], true).filter(Boolean).join("-");
|
|
8422
8567
|
}
|
|
8423
|
-
exports.emitUnicodeLanguageId = emitUnicodeLanguageId2;
|
|
8424
8568
|
function emitUnicodeLocaleId2(_a) {
|
|
8425
8569
|
var lang = _a.lang, extensions = _a.extensions;
|
|
8426
8570
|
var chunks = [emitUnicodeLanguageId2(lang)];
|
|
@@ -8445,13 +8589,12 @@
|
|
|
8445
8589
|
}
|
|
8446
8590
|
return chunks.filter(Boolean).join("-");
|
|
8447
8591
|
}
|
|
8448
|
-
exports.emitUnicodeLocaleId = emitUnicodeLocaleId2;
|
|
8449
8592
|
}
|
|
8450
8593
|
});
|
|
8451
8594
|
|
|
8452
|
-
//
|
|
8595
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/aliases.generated.js
|
|
8453
8596
|
var require_aliases_generated = __commonJS({
|
|
8454
|
-
"
|
|
8597
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/aliases.generated.js"(exports) {
|
|
8455
8598
|
"use strict";
|
|
8456
8599
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8457
8600
|
exports.variantAlias = exports.scriptAlias = exports.territoryAlias = exports.languageAlias = void 0;
|
|
@@ -9597,9 +9740,9 @@
|
|
|
9597
9740
|
}
|
|
9598
9741
|
});
|
|
9599
9742
|
|
|
9600
|
-
//
|
|
9743
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/likelySubtags.generated.js
|
|
9601
9744
|
var require_likelySubtags_generated = __commonJS({
|
|
9602
|
-
"
|
|
9745
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/likelySubtags.generated.js"(exports) {
|
|
9603
9746
|
"use strict";
|
|
9604
9747
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9605
9748
|
exports.likelySubtags = void 0;
|
|
@@ -17642,12 +17785,13 @@
|
|
|
17642
17785
|
}
|
|
17643
17786
|
});
|
|
17644
17787
|
|
|
17645
|
-
//
|
|
17788
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/canonicalizer.js
|
|
17646
17789
|
var require_canonicalizer = __commonJS({
|
|
17647
|
-
"
|
|
17790
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/canonicalizer.js"(exports) {
|
|
17648
17791
|
"use strict";
|
|
17649
17792
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17650
|
-
exports.
|
|
17793
|
+
exports.canonicalizeUnicodeLanguageId = canonicalizeUnicodeLanguageId;
|
|
17794
|
+
exports.canonicalizeUnicodeLocaleId = canonicalizeUnicodeLocaleId;
|
|
17651
17795
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
17652
17796
|
var aliases_generated_1 = require_aliases_generated();
|
|
17653
17797
|
var parser_1 = require_parser();
|
|
@@ -17764,8 +17908,8 @@
|
|
|
17764
17908
|
var regionAlias = aliases_generated_1.territoryAlias[region];
|
|
17765
17909
|
var replacedRegion = void 0;
|
|
17766
17910
|
if (regionAlias) {
|
|
17767
|
-
var
|
|
17768
|
-
replacedRegion =
|
|
17911
|
+
var regions2 = regionAlias.split(" ");
|
|
17912
|
+
replacedRegion = regions2[0];
|
|
17769
17913
|
var likelySubtag = likelySubtags_generated_1.likelySubtags[(0, emitter_1.emitUnicodeLanguageId)({
|
|
17770
17914
|
lang: finalLangAst.lang,
|
|
17771
17915
|
script: finalLangAst.script,
|
|
@@ -17773,7 +17917,7 @@
|
|
|
17773
17917
|
})];
|
|
17774
17918
|
if (likelySubtag) {
|
|
17775
17919
|
var likelyRegion = (0, parser_1.parseUnicodeLanguageId)(likelySubtag.split(parser_1.SEPARATOR)).region;
|
|
17776
|
-
if (likelyRegion &&
|
|
17920
|
+
if (likelyRegion && regions2.indexOf(likelyRegion) > -1) {
|
|
17777
17921
|
replacedRegion = likelyRegion;
|
|
17778
17922
|
}
|
|
17779
17923
|
}
|
|
@@ -17805,7 +17949,6 @@
|
|
|
17805
17949
|
}
|
|
17806
17950
|
return finalLangAst;
|
|
17807
17951
|
}
|
|
17808
|
-
exports.canonicalizeUnicodeLanguageId = canonicalizeUnicodeLanguageId;
|
|
17809
17952
|
function canonicalizeUnicodeLocaleId(locale) {
|
|
17810
17953
|
locale.lang = canonicalizeUnicodeLanguageId(locale.lang);
|
|
17811
17954
|
if (locale.extensions) {
|
|
@@ -17833,29 +17976,29 @@
|
|
|
17833
17976
|
}
|
|
17834
17977
|
return locale;
|
|
17835
17978
|
}
|
|
17836
|
-
exports.canonicalizeUnicodeLocaleId = canonicalizeUnicodeLocaleId;
|
|
17837
17979
|
}
|
|
17838
17980
|
});
|
|
17839
17981
|
|
|
17840
|
-
//
|
|
17982
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/types.js
|
|
17841
17983
|
var require_types = __commonJS({
|
|
17842
|
-
"
|
|
17984
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/src/types.js"(exports) {
|
|
17843
17985
|
"use strict";
|
|
17844
17986
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17845
17987
|
}
|
|
17846
17988
|
});
|
|
17847
17989
|
|
|
17848
|
-
//
|
|
17990
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/index.js
|
|
17849
17991
|
var require_intl_getcanonicallocales = __commonJS({
|
|
17850
|
-
"
|
|
17992
|
+
"node_modules/.aspect_rules_js/@formatjs+intl-getcanonicallocales@0.0.0/node_modules/@formatjs/intl-getcanonicallocales/index.js"(exports) {
|
|
17851
17993
|
"use strict";
|
|
17852
17994
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17853
|
-
exports.isUnicodeLanguageSubtag = exports.isUnicodeScriptSubtag = exports.isUnicodeRegionSubtag = exports.isStructurallyValidLanguageTag = exports.parseUnicodeLanguageId = exports.parseUnicodeLocaleId =
|
|
17995
|
+
exports.isUnicodeLanguageSubtag = exports.isUnicodeScriptSubtag = exports.isUnicodeRegionSubtag = exports.isStructurallyValidLanguageTag = exports.parseUnicodeLanguageId = exports.parseUnicodeLocaleId = void 0;
|
|
17996
|
+
exports.getCanonicalLocales = getCanonicalLocales2;
|
|
17854
17997
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
17855
17998
|
var parser_1 = require_parser();
|
|
17856
17999
|
var emitter_1 = require_emitter();
|
|
17857
18000
|
var canonicalizer_1 = require_canonicalizer();
|
|
17858
|
-
function
|
|
18001
|
+
function CanonicalizeLocaleList3(locales) {
|
|
17859
18002
|
if (locales === void 0) {
|
|
17860
18003
|
return [];
|
|
17861
18004
|
}
|
|
@@ -17872,10 +18015,9 @@
|
|
|
17872
18015
|
}
|
|
17873
18016
|
return seen;
|
|
17874
18017
|
}
|
|
17875
|
-
function
|
|
17876
|
-
return
|
|
18018
|
+
function getCanonicalLocales2(locales) {
|
|
18019
|
+
return CanonicalizeLocaleList3(locales);
|
|
17877
18020
|
}
|
|
17878
|
-
exports.getCanonicalLocales = getCanonicalLocales;
|
|
17879
18021
|
var parser_2 = require_parser();
|
|
17880
18022
|
Object.defineProperty(exports, "parseUnicodeLocaleId", { enumerable: true, get: function() {
|
|
17881
18023
|
return parser_2.parseUnicodeLocaleId;
|
|
@@ -17901,13 +18043,298 @@
|
|
|
17901
18043
|
}
|
|
17902
18044
|
});
|
|
17903
18045
|
|
|
17904
|
-
//
|
|
18046
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
|
|
18047
|
+
function ToString(o) {
|
|
18048
|
+
if (typeof o === "symbol") {
|
|
18049
|
+
throw TypeError("Cannot convert a Symbol value to a string");
|
|
18050
|
+
}
|
|
18051
|
+
return String(o);
|
|
18052
|
+
}
|
|
18053
|
+
function ToObject(arg) {
|
|
18054
|
+
if (arg == null) {
|
|
18055
|
+
throw new TypeError("undefined/null cannot be converted to object");
|
|
18056
|
+
}
|
|
18057
|
+
return Object(arg);
|
|
18058
|
+
}
|
|
18059
|
+
function SameValue(x, y) {
|
|
18060
|
+
if (Object.is) {
|
|
18061
|
+
return Object.is(x, y);
|
|
18062
|
+
}
|
|
18063
|
+
if (x === y) {
|
|
18064
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
18065
|
+
}
|
|
18066
|
+
return x !== x && y !== y;
|
|
18067
|
+
}
|
|
18068
|
+
function HasOwnProperty(o, prop) {
|
|
18069
|
+
return Object.prototype.hasOwnProperty.call(o, prop);
|
|
18070
|
+
}
|
|
18071
|
+
var MINUTES_PER_HOUR = 60;
|
|
18072
|
+
var SECONDS_PER_MINUTE = 60;
|
|
18073
|
+
var MS_PER_SECOND = 1e3;
|
|
18074
|
+
var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
|
18075
|
+
var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
|
18076
|
+
|
|
18077
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CoerceOptionsToObject.js
|
|
18078
|
+
function CoerceOptionsToObject(options) {
|
|
18079
|
+
if (typeof options === "undefined") {
|
|
18080
|
+
return /* @__PURE__ */ Object.create(null);
|
|
18081
|
+
}
|
|
18082
|
+
return ToObject(options);
|
|
18083
|
+
}
|
|
18084
|
+
|
|
18085
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
|
|
18086
|
+
function GetOption(opts, prop, type, values, fallback) {
|
|
18087
|
+
if (typeof opts !== "object") {
|
|
18088
|
+
throw new TypeError("Options must be an object");
|
|
18089
|
+
}
|
|
18090
|
+
var value = opts[prop];
|
|
18091
|
+
if (value !== void 0) {
|
|
18092
|
+
if (type !== "boolean" && type !== "string") {
|
|
18093
|
+
throw new TypeError("invalid type");
|
|
18094
|
+
}
|
|
18095
|
+
if (type === "boolean") {
|
|
18096
|
+
value = Boolean(value);
|
|
18097
|
+
}
|
|
18098
|
+
if (type === "string") {
|
|
18099
|
+
value = ToString(value);
|
|
18100
|
+
}
|
|
18101
|
+
if (values !== void 0 && !values.filter(function(val) {
|
|
18102
|
+
return val == value;
|
|
18103
|
+
}).length) {
|
|
18104
|
+
throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
|
|
18105
|
+
}
|
|
18106
|
+
return value;
|
|
18107
|
+
}
|
|
18108
|
+
return fallback;
|
|
18109
|
+
}
|
|
18110
|
+
|
|
18111
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
18112
|
+
var SANCTIONED_UNITS = [
|
|
18113
|
+
"angle-degree",
|
|
18114
|
+
"area-acre",
|
|
18115
|
+
"area-hectare",
|
|
18116
|
+
"concentr-percent",
|
|
18117
|
+
"digital-bit",
|
|
18118
|
+
"digital-byte",
|
|
18119
|
+
"digital-gigabit",
|
|
18120
|
+
"digital-gigabyte",
|
|
18121
|
+
"digital-kilobit",
|
|
18122
|
+
"digital-kilobyte",
|
|
18123
|
+
"digital-megabit",
|
|
18124
|
+
"digital-megabyte",
|
|
18125
|
+
"digital-petabyte",
|
|
18126
|
+
"digital-terabit",
|
|
18127
|
+
"digital-terabyte",
|
|
18128
|
+
"duration-day",
|
|
18129
|
+
"duration-hour",
|
|
18130
|
+
"duration-millisecond",
|
|
18131
|
+
"duration-minute",
|
|
18132
|
+
"duration-month",
|
|
18133
|
+
"duration-second",
|
|
18134
|
+
"duration-week",
|
|
18135
|
+
"duration-year",
|
|
18136
|
+
"length-centimeter",
|
|
18137
|
+
"length-foot",
|
|
18138
|
+
"length-inch",
|
|
18139
|
+
"length-kilometer",
|
|
18140
|
+
"length-meter",
|
|
18141
|
+
"length-mile-scandinavian",
|
|
18142
|
+
"length-mile",
|
|
18143
|
+
"length-millimeter",
|
|
18144
|
+
"length-yard",
|
|
18145
|
+
"mass-gram",
|
|
18146
|
+
"mass-kilogram",
|
|
18147
|
+
"mass-ounce",
|
|
18148
|
+
"mass-pound",
|
|
18149
|
+
"mass-stone",
|
|
18150
|
+
"temperature-celsius",
|
|
18151
|
+
"temperature-fahrenheit",
|
|
18152
|
+
"volume-fluid-ounce",
|
|
18153
|
+
"volume-gallon",
|
|
18154
|
+
"volume-liter",
|
|
18155
|
+
"volume-milliliter"
|
|
18156
|
+
];
|
|
18157
|
+
function removeUnitNamespace(unit) {
|
|
18158
|
+
return unit.slice(unit.indexOf("-") + 1);
|
|
18159
|
+
}
|
|
18160
|
+
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
18161
|
+
|
|
18162
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
18163
|
+
init_tslib_es6();
|
|
18164
|
+
|
|
18165
|
+
// node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/lib/index.js
|
|
18166
|
+
function memoize(fn, options) {
|
|
18167
|
+
var cache = options && options.cache ? options.cache : cacheDefault;
|
|
18168
|
+
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
18169
|
+
var strategy = options && options.strategy ? options.strategy : strategyDefault;
|
|
18170
|
+
return strategy(fn, {
|
|
18171
|
+
cache,
|
|
18172
|
+
serializer
|
|
18173
|
+
});
|
|
18174
|
+
}
|
|
18175
|
+
function isPrimitive(value) {
|
|
18176
|
+
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
18177
|
+
}
|
|
18178
|
+
function monadic(fn, cache, serializer, arg) {
|
|
18179
|
+
var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
18180
|
+
var computedValue = cache.get(cacheKey);
|
|
18181
|
+
if (typeof computedValue === "undefined") {
|
|
18182
|
+
computedValue = fn.call(this, arg);
|
|
18183
|
+
cache.set(cacheKey, computedValue);
|
|
18184
|
+
}
|
|
18185
|
+
return computedValue;
|
|
18186
|
+
}
|
|
18187
|
+
function variadic(fn, cache, serializer) {
|
|
18188
|
+
var args = Array.prototype.slice.call(arguments, 3);
|
|
18189
|
+
var cacheKey = serializer(args);
|
|
18190
|
+
var computedValue = cache.get(cacheKey);
|
|
18191
|
+
if (typeof computedValue === "undefined") {
|
|
18192
|
+
computedValue = fn.apply(this, args);
|
|
18193
|
+
cache.set(cacheKey, computedValue);
|
|
18194
|
+
}
|
|
18195
|
+
return computedValue;
|
|
18196
|
+
}
|
|
18197
|
+
function assemble(fn, context, strategy, cache, serialize) {
|
|
18198
|
+
return strategy.bind(context, fn, cache, serialize);
|
|
18199
|
+
}
|
|
18200
|
+
function strategyDefault(fn, options) {
|
|
18201
|
+
var strategy = fn.length === 1 ? monadic : variadic;
|
|
18202
|
+
return assemble(fn, this, strategy, options.cache.create(), options.serializer);
|
|
18203
|
+
}
|
|
18204
|
+
function strategyVariadic(fn, options) {
|
|
18205
|
+
return assemble(fn, this, variadic, options.cache.create(), options.serializer);
|
|
18206
|
+
}
|
|
18207
|
+
function strategyMonadic(fn, options) {
|
|
18208
|
+
return assemble(fn, this, monadic, options.cache.create(), options.serializer);
|
|
18209
|
+
}
|
|
18210
|
+
var serializerDefault = function() {
|
|
18211
|
+
return JSON.stringify(arguments);
|
|
18212
|
+
};
|
|
18213
|
+
function ObjectWithoutPrototypeCache() {
|
|
18214
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
18215
|
+
}
|
|
18216
|
+
ObjectWithoutPrototypeCache.prototype.get = function(key) {
|
|
18217
|
+
return this.cache[key];
|
|
18218
|
+
};
|
|
18219
|
+
ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
18220
|
+
this.cache[key] = value;
|
|
18221
|
+
};
|
|
18222
|
+
var cacheDefault = {
|
|
18223
|
+
create: function create() {
|
|
18224
|
+
return new ObjectWithoutPrototypeCache();
|
|
18225
|
+
}
|
|
18226
|
+
};
|
|
18227
|
+
var strategies = {
|
|
18228
|
+
variadic: strategyVariadic,
|
|
18229
|
+
monadic: strategyMonadic
|
|
18230
|
+
};
|
|
18231
|
+
|
|
18232
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
18233
|
+
function createDataProperty(target, name, value) {
|
|
18234
|
+
Object.defineProperty(target, name, {
|
|
18235
|
+
configurable: true,
|
|
18236
|
+
enumerable: true,
|
|
18237
|
+
writable: true,
|
|
18238
|
+
value
|
|
18239
|
+
});
|
|
18240
|
+
}
|
|
18241
|
+
function invariant(condition, message, Err) {
|
|
18242
|
+
if (Err === void 0) {
|
|
18243
|
+
Err = Error;
|
|
18244
|
+
}
|
|
18245
|
+
if (!condition) {
|
|
18246
|
+
throw new Err(message);
|
|
18247
|
+
}
|
|
18248
|
+
}
|
|
18249
|
+
var createMemoizedNumberFormat = memoize(function() {
|
|
18250
|
+
var _a;
|
|
18251
|
+
var args = [];
|
|
18252
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18253
|
+
args[_i] = arguments[_i];
|
|
18254
|
+
}
|
|
18255
|
+
return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
18256
|
+
}, {
|
|
18257
|
+
strategy: strategies.variadic
|
|
18258
|
+
});
|
|
18259
|
+
var createMemoizedDateTimeFormat = memoize(function() {
|
|
18260
|
+
var _a;
|
|
18261
|
+
var args = [];
|
|
18262
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18263
|
+
args[_i] = arguments[_i];
|
|
18264
|
+
}
|
|
18265
|
+
return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
18266
|
+
}, {
|
|
18267
|
+
strategy: strategies.variadic
|
|
18268
|
+
});
|
|
18269
|
+
var createMemoizedPluralRules = memoize(function() {
|
|
18270
|
+
var _a;
|
|
18271
|
+
var args = [];
|
|
18272
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18273
|
+
args[_i] = arguments[_i];
|
|
18274
|
+
}
|
|
18275
|
+
return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
18276
|
+
}, {
|
|
18277
|
+
strategy: strategies.variadic
|
|
18278
|
+
});
|
|
18279
|
+
var createMemoizedLocale = memoize(function() {
|
|
18280
|
+
var _a;
|
|
18281
|
+
var args = [];
|
|
18282
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18283
|
+
args[_i] = arguments[_i];
|
|
18284
|
+
}
|
|
18285
|
+
return new ((_a = Intl.Locale).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
18286
|
+
}, {
|
|
18287
|
+
strategy: strategies.variadic
|
|
18288
|
+
});
|
|
18289
|
+
var createMemoizedListFormat = memoize(function() {
|
|
18290
|
+
var _a;
|
|
18291
|
+
var args = [];
|
|
18292
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18293
|
+
args[_i] = arguments[_i];
|
|
18294
|
+
}
|
|
18295
|
+
return new ((_a = Intl.ListFormat).bind.apply(_a, __spreadArray([void 0], args, false)))();
|
|
18296
|
+
}, {
|
|
18297
|
+
strategy: strategies.variadic
|
|
18298
|
+
});
|
|
18299
|
+
|
|
18300
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
18301
|
+
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]/;
|
|
18302
|
+
|
|
18303
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
18304
|
+
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
18305
|
+
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
18306
|
+
|
|
18307
|
+
// node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
|
|
18308
|
+
init_tslib_es6();
|
|
18309
|
+
|
|
18310
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
|
|
17905
18311
|
init_tslib_es6();
|
|
17906
|
-
var
|
|
18312
|
+
var MissingLocaleDataError = (
|
|
18313
|
+
/** @class */
|
|
18314
|
+
function(_super) {
|
|
18315
|
+
__extends(MissingLocaleDataError2, _super);
|
|
18316
|
+
function MissingLocaleDataError2() {
|
|
18317
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
18318
|
+
_this.type = "MISSING_LOCALE_DATA";
|
|
18319
|
+
return _this;
|
|
18320
|
+
}
|
|
18321
|
+
return MissingLocaleDataError2;
|
|
18322
|
+
}(Error)
|
|
18323
|
+
);
|
|
18324
|
+
|
|
18325
|
+
// node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
|
|
18326
|
+
var RangePatternType;
|
|
18327
|
+
(function(RangePatternType2) {
|
|
18328
|
+
RangePatternType2["startRange"] = "startRange";
|
|
18329
|
+
RangePatternType2["shared"] = "shared";
|
|
18330
|
+
RangePatternType2["endRange"] = "endRange";
|
|
18331
|
+
})(RangePatternType || (RangePatternType = {}));
|
|
18332
|
+
|
|
18333
|
+
// packages/intl-locale/index.ts
|
|
17907
18334
|
var import_intl_enumerator = __toESM(require_intl_enumerator());
|
|
17908
18335
|
var import_intl_getcanonicallocales = __toESM(require_intl_getcanonicallocales());
|
|
17909
18336
|
|
|
17910
|
-
//
|
|
18337
|
+
// packages/intl-locale/character-orders.generated.ts
|
|
17911
18338
|
var characterOrders = {
|
|
17912
18339
|
"aa": "left-to-right",
|
|
17913
18340
|
"aa-DJ": "left-to-right",
|
|
@@ -18604,28 +19031,28 @@
|
|
|
18604
19031
|
"zu": "left-to-right"
|
|
18605
19032
|
};
|
|
18606
19033
|
|
|
18607
|
-
//
|
|
19034
|
+
// packages/intl-locale/get_internal_slots.ts
|
|
18608
19035
|
var internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
18609
|
-
function getInternalSlots(x, internalSlotsList) {
|
|
18610
|
-
|
|
18611
|
-
internalSlotsList = [];
|
|
18612
|
-
}
|
|
18613
|
-
var internalSlots = internalSlotMap.get(x);
|
|
19036
|
+
function getInternalSlots(x, internalSlotsList = []) {
|
|
19037
|
+
let internalSlots = internalSlotMap.get(x);
|
|
18614
19038
|
if (!internalSlots) {
|
|
18615
|
-
internalSlots = Object.create(
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
|
|
19039
|
+
internalSlots = Object.create(
|
|
19040
|
+
null,
|
|
19041
|
+
internalSlotsList.reduce((all, prop) => {
|
|
19042
|
+
all[prop] = {
|
|
19043
|
+
enumerable: false,
|
|
19044
|
+
writable: true,
|
|
19045
|
+
configurable: true
|
|
19046
|
+
};
|
|
19047
|
+
return all;
|
|
19048
|
+
}, {})
|
|
19049
|
+
);
|
|
18623
19050
|
internalSlotMap.set(x, internalSlots);
|
|
18624
19051
|
}
|
|
18625
19052
|
return internalSlots;
|
|
18626
19053
|
}
|
|
18627
19054
|
|
|
18628
|
-
//
|
|
19055
|
+
// packages/intl-locale/numbering-systems.generated.ts
|
|
18629
19056
|
var numberingSystems = {
|
|
18630
19057
|
"aa": [
|
|
18631
19058
|
"latn"
|
|
@@ -20813,10 +21240,7 @@
|
|
|
20813
21240
|
]
|
|
20814
21241
|
};
|
|
20815
21242
|
|
|
20816
|
-
//
|
|
20817
|
-
init_tslib_es6();
|
|
20818
|
-
|
|
20819
|
-
// ../../../../../../../../execroot/formatjs/bazel-out/darwin_arm64-fastbuild/bin/packages/intl-locale/lib/timezones.generated.js
|
|
21243
|
+
// packages/intl-locale/timezones.generated.ts
|
|
20820
21244
|
var timezones = {
|
|
20821
21245
|
"ad": [
|
|
20822
21246
|
"Europe/Andorra"
|
|
@@ -21782,7 +22206,7 @@
|
|
|
21782
22206
|
]
|
|
21783
22207
|
};
|
|
21784
22208
|
|
|
21785
|
-
//
|
|
22209
|
+
// packages/intl-locale/hour-cycles.generated.ts
|
|
21786
22210
|
var hourCycles = {
|
|
21787
22211
|
"001": [
|
|
21788
22212
|
"h23",
|
|
@@ -22819,7 +23243,7 @@
|
|
|
22819
23243
|
]
|
|
22820
23244
|
};
|
|
22821
23245
|
|
|
22822
|
-
//
|
|
23246
|
+
// packages/intl-locale/calendars.generated.ts
|
|
22823
23247
|
var calendars = {
|
|
22824
23248
|
"001": [
|
|
22825
23249
|
"gregorian"
|
|
@@ -23111,7 +23535,7 @@
|
|
|
23111
23535
|
]
|
|
23112
23536
|
};
|
|
23113
23537
|
|
|
23114
|
-
//
|
|
23538
|
+
// packages/intl-locale/week-data.generated.ts
|
|
23115
23539
|
var weekData = {
|
|
23116
23540
|
"001": {
|
|
23117
23541
|
"firstDay": 1,
|
|
@@ -25184,38 +25608,40 @@
|
|
|
25184
25608
|
}
|
|
25185
25609
|
};
|
|
25186
25610
|
|
|
25187
|
-
//
|
|
25611
|
+
// packages/intl-locale/preference-data.ts
|
|
25188
25612
|
function getCalendarPreferenceDataForRegion(region) {
|
|
25189
|
-
|
|
25190
|
-
return (calendars[_region || ""] || calendars["001"]).map(
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25613
|
+
const _region = region ? region.toUpperCase() : null;
|
|
25614
|
+
return (calendars[_region || ""] || calendars["001"]).map(
|
|
25615
|
+
(c) => {
|
|
25616
|
+
if (c === "gregorian") {
|
|
25617
|
+
return "gregory";
|
|
25618
|
+
}
|
|
25619
|
+
if (c === "islamic-civil") {
|
|
25620
|
+
return "islamicc";
|
|
25621
|
+
}
|
|
25622
|
+
return c;
|
|
25196
25623
|
}
|
|
25197
|
-
|
|
25198
|
-
});
|
|
25624
|
+
);
|
|
25199
25625
|
}
|
|
25200
25626
|
function getHourCyclesPreferenceDataForLocaleOrRegion(locale, region) {
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
return
|
|
25627
|
+
const _locale = locale.toLowerCase();
|
|
25628
|
+
const _region = region ? region.toUpperCase() : "";
|
|
25629
|
+
const hourCyclesPreference = hourCycles[_locale] || hourCycles[_region] || hourCycles[`${_locale}-001`] || hourCycles["001"];
|
|
25630
|
+
return [...hourCyclesPreference];
|
|
25205
25631
|
}
|
|
25206
25632
|
function getTimeZonePreferenceForRegion(region) {
|
|
25207
|
-
|
|
25633
|
+
const territory = region.toLowerCase();
|
|
25208
25634
|
if (timezones[territory]) {
|
|
25209
|
-
return
|
|
25635
|
+
return [...timezones[territory]];
|
|
25210
25636
|
}
|
|
25211
25637
|
return [];
|
|
25212
25638
|
}
|
|
25213
25639
|
function getWeekDataForRegion(region) {
|
|
25214
|
-
|
|
25640
|
+
const _region = region ? region.toUpperCase() : "";
|
|
25215
25641
|
return weekData[_region || "001"] || weekData["001"];
|
|
25216
25642
|
}
|
|
25217
25643
|
|
|
25218
|
-
//
|
|
25644
|
+
// packages/intl-locale/index.ts
|
|
25219
25645
|
var ALPHANUM_3_8 = /^[a-z0-9]{3,8}$/i;
|
|
25220
25646
|
var RELEVANT_EXTENSION_KEYS = [
|
|
25221
25647
|
"ca",
|
|
@@ -25228,21 +25654,43 @@
|
|
|
25228
25654
|
];
|
|
25229
25655
|
var UNICODE_TYPE_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;
|
|
25230
25656
|
function applyOptionsToTag(tag, options) {
|
|
25231
|
-
|
|
25232
|
-
|
|
25233
|
-
|
|
25657
|
+
invariant(typeof tag === "string", "language tag must be a string");
|
|
25658
|
+
invariant(
|
|
25659
|
+
(0, import_intl_getcanonicallocales.isStructurallyValidLanguageTag)(tag),
|
|
25660
|
+
"malformed language tag",
|
|
25661
|
+
RangeError
|
|
25662
|
+
);
|
|
25663
|
+
const language = GetOption(
|
|
25664
|
+
options,
|
|
25665
|
+
"language",
|
|
25666
|
+
"string",
|
|
25667
|
+
void 0,
|
|
25668
|
+
void 0
|
|
25669
|
+
);
|
|
25234
25670
|
if (language !== void 0) {
|
|
25235
|
-
|
|
25671
|
+
invariant(
|
|
25672
|
+
(0, import_intl_getcanonicallocales.isUnicodeLanguageSubtag)(language),
|
|
25673
|
+
"Malformed unicode_language_subtag",
|
|
25674
|
+
RangeError
|
|
25675
|
+
);
|
|
25236
25676
|
}
|
|
25237
|
-
|
|
25677
|
+
const script = GetOption(options, "script", "string", void 0, void 0);
|
|
25238
25678
|
if (script !== void 0) {
|
|
25239
|
-
|
|
25679
|
+
invariant(
|
|
25680
|
+
(0, import_intl_getcanonicallocales.isUnicodeScriptSubtag)(script),
|
|
25681
|
+
"Malformed unicode_script_subtag",
|
|
25682
|
+
RangeError
|
|
25683
|
+
);
|
|
25240
25684
|
}
|
|
25241
|
-
|
|
25685
|
+
const region = GetOption(options, "region", "string", void 0, void 0);
|
|
25242
25686
|
if (region !== void 0) {
|
|
25243
|
-
|
|
25687
|
+
invariant(
|
|
25688
|
+
(0, import_intl_getcanonicallocales.isUnicodeRegionSubtag)(region),
|
|
25689
|
+
"Malformed unicode_region_subtag",
|
|
25690
|
+
RangeError
|
|
25691
|
+
);
|
|
25244
25692
|
}
|
|
25245
|
-
|
|
25693
|
+
const languageId = (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(tag);
|
|
25246
25694
|
if (language !== void 0) {
|
|
25247
25695
|
languageId.lang = language;
|
|
25248
25696
|
}
|
|
@@ -25252,35 +25700,39 @@
|
|
|
25252
25700
|
if (region !== void 0) {
|
|
25253
25701
|
languageId.region = region;
|
|
25254
25702
|
}
|
|
25255
|
-
return Intl.getCanonicalLocales(
|
|
25703
|
+
return Intl.getCanonicalLocales(
|
|
25704
|
+
(0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(__spreadProps(__spreadValues({}, (0, import_intl_getcanonicallocales.parseUnicodeLocaleId)(tag)), {
|
|
25705
|
+
lang: languageId
|
|
25706
|
+
}))
|
|
25707
|
+
)[0];
|
|
25256
25708
|
}
|
|
25257
25709
|
function applyUnicodeExtensionToTag(tag, options, relevantExtensionKeys) {
|
|
25258
|
-
|
|
25259
|
-
|
|
25260
|
-
|
|
25261
|
-
for (
|
|
25262
|
-
var ext = _a[_i];
|
|
25710
|
+
let unicodeExtension;
|
|
25711
|
+
let keywords = [];
|
|
25712
|
+
const ast = (0, import_intl_getcanonicallocales.parseUnicodeLocaleId)(tag);
|
|
25713
|
+
for (const ext of ast.extensions) {
|
|
25263
25714
|
if (ext.type === "u") {
|
|
25264
25715
|
unicodeExtension = ext;
|
|
25265
25716
|
if (Array.isArray(ext.keywords))
|
|
25266
25717
|
keywords = ext.keywords;
|
|
25267
25718
|
}
|
|
25268
25719
|
}
|
|
25269
|
-
|
|
25270
|
-
for (
|
|
25271
|
-
|
|
25272
|
-
|
|
25273
|
-
for (var _c = 0, keywords_1 = keywords; _c < keywords_1.length; _c++) {
|
|
25274
|
-
var keyword = keywords_1[_c];
|
|
25720
|
+
const result = /* @__PURE__ */ Object.create(null);
|
|
25721
|
+
for (const key of relevantExtensionKeys) {
|
|
25722
|
+
let value, entry;
|
|
25723
|
+
for (const keyword of keywords) {
|
|
25275
25724
|
if (keyword[0] === key) {
|
|
25276
25725
|
entry = keyword;
|
|
25277
25726
|
value = entry[1];
|
|
25278
25727
|
}
|
|
25279
25728
|
}
|
|
25280
|
-
|
|
25281
|
-
|
|
25729
|
+
invariant(key in options, `${key} must be in options`);
|
|
25730
|
+
const optionsValue = options[key];
|
|
25282
25731
|
if (optionsValue !== void 0) {
|
|
25283
|
-
|
|
25732
|
+
invariant(
|
|
25733
|
+
typeof optionsValue === "string",
|
|
25734
|
+
`Value for ${key} must be a string`
|
|
25735
|
+
);
|
|
25284
25736
|
value = optionsValue;
|
|
25285
25737
|
if (entry) {
|
|
25286
25738
|
entry[1] = value;
|
|
@@ -25304,10 +25756,7 @@
|
|
|
25304
25756
|
result.locale = Intl.getCanonicalLocales((0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(ast))[0];
|
|
25305
25757
|
return result;
|
|
25306
25758
|
}
|
|
25307
|
-
function mergeUnicodeLanguageId(lang, script, region, variants, replacement) {
|
|
25308
|
-
if (variants === void 0) {
|
|
25309
|
-
variants = [];
|
|
25310
|
-
}
|
|
25759
|
+
function mergeUnicodeLanguageId(lang, script, region, variants = [], replacement) {
|
|
25311
25760
|
if (!replacement) {
|
|
25312
25761
|
return {
|
|
25313
25762
|
lang: lang || "und",
|
|
@@ -25320,130 +25769,168 @@
|
|
|
25320
25769
|
lang: !lang || lang === "und" ? replacement.lang : lang,
|
|
25321
25770
|
script: script || replacement.script,
|
|
25322
25771
|
region: region || replacement.region,
|
|
25323
|
-
variants:
|
|
25772
|
+
variants: [...variants, ...replacement.variants]
|
|
25324
25773
|
};
|
|
25325
25774
|
}
|
|
25326
25775
|
function addLikelySubtags(tag) {
|
|
25327
|
-
|
|
25328
|
-
|
|
25329
|
-
|
|
25776
|
+
const ast = (0, import_intl_getcanonicallocales.parseUnicodeLocaleId)(tag);
|
|
25777
|
+
const unicodeLangId = ast.lang;
|
|
25778
|
+
const { lang, script, region, variants } = unicodeLangId;
|
|
25330
25779
|
if (script && region) {
|
|
25331
|
-
|
|
25332
|
-
if (
|
|
25333
|
-
|
|
25334
|
-
ast.lang = mergeUnicodeLanguageId(
|
|
25780
|
+
const match2 = import_intl_getcanonicallocales.likelySubtags[(0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang, script, region, variants: [] })];
|
|
25781
|
+
if (match2) {
|
|
25782
|
+
const parts2 = (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(match2);
|
|
25783
|
+
ast.lang = mergeUnicodeLanguageId(
|
|
25784
|
+
void 0,
|
|
25785
|
+
void 0,
|
|
25786
|
+
void 0,
|
|
25787
|
+
variants,
|
|
25788
|
+
parts2
|
|
25789
|
+
);
|
|
25335
25790
|
return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(ast);
|
|
25336
25791
|
}
|
|
25337
25792
|
}
|
|
25338
25793
|
if (script) {
|
|
25339
|
-
|
|
25340
|
-
if (
|
|
25341
|
-
|
|
25342
|
-
ast.lang = mergeUnicodeLanguageId(
|
|
25794
|
+
const match2 = import_intl_getcanonicallocales.likelySubtags[(0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang, script, variants: [] })];
|
|
25795
|
+
if (match2) {
|
|
25796
|
+
const parts2 = (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(match2);
|
|
25797
|
+
ast.lang = mergeUnicodeLanguageId(
|
|
25798
|
+
void 0,
|
|
25799
|
+
void 0,
|
|
25800
|
+
region,
|
|
25801
|
+
variants,
|
|
25802
|
+
parts2
|
|
25803
|
+
);
|
|
25343
25804
|
return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(ast);
|
|
25344
25805
|
}
|
|
25345
25806
|
}
|
|
25346
25807
|
if (region) {
|
|
25347
|
-
|
|
25348
|
-
if (
|
|
25349
|
-
|
|
25350
|
-
ast.lang = mergeUnicodeLanguageId(
|
|
25808
|
+
const match2 = import_intl_getcanonicallocales.likelySubtags[(0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang, region, variants: [] })];
|
|
25809
|
+
if (match2) {
|
|
25810
|
+
const parts2 = (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(match2);
|
|
25811
|
+
ast.lang = mergeUnicodeLanguageId(
|
|
25812
|
+
void 0,
|
|
25813
|
+
script,
|
|
25814
|
+
void 0,
|
|
25815
|
+
variants,
|
|
25816
|
+
parts2
|
|
25817
|
+
);
|
|
25351
25818
|
return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(ast);
|
|
25352
25819
|
}
|
|
25353
25820
|
}
|
|
25354
|
-
|
|
25821
|
+
const match = import_intl_getcanonicallocales.likelySubtags[lang] || import_intl_getcanonicallocales.likelySubtags[(0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang: "und", script, variants: [] })];
|
|
25355
25822
|
if (!match) {
|
|
25356
|
-
throw new Error(
|
|
25823
|
+
throw new Error(`No match for addLikelySubtags`);
|
|
25357
25824
|
}
|
|
25358
|
-
|
|
25825
|
+
const parts = (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(match);
|
|
25359
25826
|
ast.lang = mergeUnicodeLanguageId(void 0, script, region, variants, parts);
|
|
25360
25827
|
return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(ast);
|
|
25361
25828
|
}
|
|
25362
25829
|
function removeLikelySubtags(tag) {
|
|
25363
|
-
|
|
25830
|
+
let maxLocale = addLikelySubtags(tag);
|
|
25364
25831
|
if (!maxLocale) {
|
|
25365
25832
|
return tag;
|
|
25366
25833
|
}
|
|
25367
|
-
maxLocale = (0, import_intl_getcanonicallocales.emitUnicodeLanguageId)(
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
|
|
25834
|
+
maxLocale = (0, import_intl_getcanonicallocales.emitUnicodeLanguageId)(__spreadProps(__spreadValues({}, (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(maxLocale)), {
|
|
25835
|
+
variants: []
|
|
25836
|
+
}));
|
|
25837
|
+
const ast = (0, import_intl_getcanonicallocales.parseUnicodeLocaleId)(tag);
|
|
25838
|
+
const {
|
|
25839
|
+
lang: { lang, script, region, variants }
|
|
25840
|
+
} = ast;
|
|
25841
|
+
const trial = addLikelySubtags((0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang, variants: [] }));
|
|
25371
25842
|
if (trial === maxLocale) {
|
|
25372
|
-
return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(
|
|
25843
|
+
return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(__spreadProps(__spreadValues({}, ast), {
|
|
25844
|
+
lang: mergeUnicodeLanguageId(lang, void 0, void 0, variants)
|
|
25845
|
+
}));
|
|
25373
25846
|
}
|
|
25374
25847
|
if (region) {
|
|
25375
|
-
|
|
25376
|
-
|
|
25377
|
-
|
|
25848
|
+
const trial2 = addLikelySubtags(
|
|
25849
|
+
(0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang, region, variants: [] })
|
|
25850
|
+
);
|
|
25851
|
+
if (trial2 === maxLocale) {
|
|
25852
|
+
return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(__spreadProps(__spreadValues({}, ast), {
|
|
25853
|
+
lang: mergeUnicodeLanguageId(lang, void 0, region, variants)
|
|
25854
|
+
}));
|
|
25378
25855
|
}
|
|
25379
25856
|
}
|
|
25380
25857
|
if (script) {
|
|
25381
|
-
|
|
25382
|
-
|
|
25383
|
-
|
|
25858
|
+
const trial2 = addLikelySubtags(
|
|
25859
|
+
(0, import_intl_getcanonicallocales.emitUnicodeLanguageId)({ lang, script, variants: [] })
|
|
25860
|
+
);
|
|
25861
|
+
if (trial2 === maxLocale) {
|
|
25862
|
+
return (0, import_intl_getcanonicallocales.emitUnicodeLocaleId)(__spreadProps(__spreadValues({}, ast), {
|
|
25863
|
+
lang: mergeUnicodeLanguageId(lang, script, void 0, variants)
|
|
25864
|
+
}));
|
|
25384
25865
|
}
|
|
25385
25866
|
}
|
|
25386
25867
|
return tag;
|
|
25387
25868
|
}
|
|
25388
25869
|
function createArrayFromListOrRestricted(list, restricted) {
|
|
25389
|
-
|
|
25870
|
+
let result = list;
|
|
25390
25871
|
if (restricted !== void 0) {
|
|
25391
25872
|
result = [restricted];
|
|
25392
25873
|
}
|
|
25393
25874
|
return Array.from(result);
|
|
25394
25875
|
}
|
|
25395
25876
|
function calendarsOfLocale(loc) {
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
|
|
25877
|
+
const locInternalSlots = getInternalSlots(loc);
|
|
25878
|
+
const restricted = locInternalSlots.calendar;
|
|
25879
|
+
const locale = locInternalSlots.locale;
|
|
25880
|
+
let region;
|
|
25400
25881
|
if (locale !== "root") {
|
|
25401
25882
|
region = loc.maximize().region;
|
|
25402
25883
|
}
|
|
25403
|
-
|
|
25884
|
+
const preferredCalendars = getCalendarPreferenceDataForRegion(region);
|
|
25404
25885
|
return createArrayFromListOrRestricted(preferredCalendars, restricted);
|
|
25405
25886
|
}
|
|
25406
25887
|
function collationsOfLocale(loc) {
|
|
25407
|
-
|
|
25408
|
-
|
|
25409
|
-
|
|
25410
|
-
|
|
25411
|
-
|
|
25412
|
-
|
|
25888
|
+
const locInternalSlots = getInternalSlots(loc);
|
|
25889
|
+
const restricted = locInternalSlots.collation;
|
|
25890
|
+
const locale = locInternalSlots.locale;
|
|
25891
|
+
const supportedCollations = (0, import_intl_enumerator.supportedValuesOf)("collation", locale).filter(
|
|
25892
|
+
(co) => co !== "standard" && co !== "search"
|
|
25893
|
+
);
|
|
25413
25894
|
supportedCollations.sort();
|
|
25414
25895
|
return createArrayFromListOrRestricted(supportedCollations, restricted);
|
|
25415
25896
|
}
|
|
25416
25897
|
function hourCyclesOfLocale(loc) {
|
|
25417
|
-
|
|
25418
|
-
|
|
25419
|
-
|
|
25420
|
-
|
|
25898
|
+
const locInternalSlots = getInternalSlots(loc);
|
|
25899
|
+
const restricted = locInternalSlots.hourCycle;
|
|
25900
|
+
const locale = locInternalSlots.locale;
|
|
25901
|
+
let region;
|
|
25421
25902
|
if (locale !== "root") {
|
|
25422
25903
|
region = loc.maximize().region;
|
|
25423
25904
|
}
|
|
25424
|
-
|
|
25905
|
+
const preferredHourCycles = getHourCyclesPreferenceDataForLocaleOrRegion(
|
|
25906
|
+
locale,
|
|
25907
|
+
region
|
|
25908
|
+
);
|
|
25425
25909
|
return createArrayFromListOrRestricted(preferredHourCycles, restricted);
|
|
25426
25910
|
}
|
|
25427
25911
|
function numberingSystemsOfLocale(loc) {
|
|
25428
25912
|
var _a;
|
|
25429
|
-
|
|
25430
|
-
|
|
25431
|
-
|
|
25432
|
-
|
|
25433
|
-
|
|
25913
|
+
const locInternalSlots = getInternalSlots(loc);
|
|
25914
|
+
const restricted = locInternalSlots.numberingSystem;
|
|
25915
|
+
const locale = locInternalSlots.locale;
|
|
25916
|
+
const language = loc.language;
|
|
25917
|
+
const localeNumberingSystems = (_a = numberingSystems[locale]) != null ? _a : numberingSystems[language];
|
|
25434
25918
|
if (localeNumberingSystems) {
|
|
25435
|
-
return createArrayFromListOrRestricted(
|
|
25919
|
+
return createArrayFromListOrRestricted(
|
|
25920
|
+
[...localeNumberingSystems],
|
|
25921
|
+
restricted
|
|
25922
|
+
);
|
|
25436
25923
|
}
|
|
25437
25924
|
return createArrayFromListOrRestricted([], restricted);
|
|
25438
25925
|
}
|
|
25439
25926
|
function timeZonesOfLocale(loc) {
|
|
25440
|
-
|
|
25441
|
-
|
|
25442
|
-
|
|
25927
|
+
const locInternalSlots = getInternalSlots(loc);
|
|
25928
|
+
const locale = locInternalSlots.locale;
|
|
25929
|
+
const region = (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(locale).region;
|
|
25443
25930
|
if (!region) {
|
|
25444
25931
|
return void 0;
|
|
25445
25932
|
}
|
|
25446
|
-
|
|
25933
|
+
const preferredTimeZones = getTimeZonePreferenceForRegion(region);
|
|
25447
25934
|
preferredTimeZones.sort();
|
|
25448
25935
|
return Array.from(preferredTimeZones);
|
|
25449
25936
|
}
|
|
@@ -25454,14 +25941,14 @@
|
|
|
25454
25941
|
return "ltr";
|
|
25455
25942
|
}
|
|
25456
25943
|
function characterDirectionOfLocale(loc) {
|
|
25457
|
-
|
|
25458
|
-
|
|
25944
|
+
const locInternalSlots = getInternalSlots(loc);
|
|
25945
|
+
const locale = locInternalSlots.locale;
|
|
25459
25946
|
return translateCharacterOrder(characterOrders[locale]);
|
|
25460
25947
|
}
|
|
25461
25948
|
function weekInfoOfLocale(loc) {
|
|
25462
|
-
|
|
25463
|
-
|
|
25464
|
-
|
|
25949
|
+
const locInternalSlots = getInternalSlots(loc);
|
|
25950
|
+
const locale = locInternalSlots.locale;
|
|
25951
|
+
let region;
|
|
25465
25952
|
if (locale !== "root") {
|
|
25466
25953
|
region = loc.maximize().region;
|
|
25467
25954
|
}
|
|
@@ -25471,264 +25958,289 @@
|
|
|
25471
25958
|
function weekdayToString(fw) {
|
|
25472
25959
|
return TABLE_1[+fw];
|
|
25473
25960
|
}
|
|
25474
|
-
var
|
|
25475
|
-
|
|
25476
|
-
|
|
25477
|
-
|
|
25478
|
-
|
|
25479
|
-
if (!newTarget) {
|
|
25480
|
-
throw new TypeError("Intl.Locale must be called with 'new'");
|
|
25481
|
-
}
|
|
25482
|
-
var relevantExtensionKeys = Locale2.relevantExtensionKeys;
|
|
25483
|
-
var internalSlotsList = [
|
|
25484
|
-
"initializedLocale",
|
|
25485
|
-
"locale",
|
|
25486
|
-
"calendar",
|
|
25487
|
-
"collation",
|
|
25488
|
-
"hourCycle",
|
|
25489
|
-
"numberingSystem"
|
|
25490
|
-
];
|
|
25491
|
-
if (relevantExtensionKeys.indexOf("kf") > -1) {
|
|
25492
|
-
internalSlotsList.push("caseFirst");
|
|
25493
|
-
}
|
|
25494
|
-
if (relevantExtensionKeys.indexOf("kn") > -1) {
|
|
25495
|
-
internalSlotsList.push("numeric");
|
|
25496
|
-
}
|
|
25497
|
-
if (tag === void 0) {
|
|
25498
|
-
throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");
|
|
25499
|
-
}
|
|
25500
|
-
if (typeof tag !== "string" && typeof tag !== "object") {
|
|
25501
|
-
throw new TypeError("tag must be a string or object");
|
|
25502
|
-
}
|
|
25503
|
-
var tagInternalSlots;
|
|
25504
|
-
if (typeof tag === "object" && (tagInternalSlots = getInternalSlots(tag)) && (0, import_ecma402_abstract.HasOwnProperty)(tagInternalSlots, "initializedLocale")) {
|
|
25505
|
-
tag = tagInternalSlots.locale;
|
|
25506
|
-
} else {
|
|
25507
|
-
tag = tag.toString();
|
|
25508
|
-
}
|
|
25509
|
-
var internalSlots = getInternalSlots(this, internalSlotsList);
|
|
25510
|
-
var options = (0, import_ecma402_abstract.CoerceOptionsToObject)(opts);
|
|
25511
|
-
tag = applyOptionsToTag(tag, options);
|
|
25512
|
-
var opt = /* @__PURE__ */ Object.create(null);
|
|
25513
|
-
var calendar = (0, import_ecma402_abstract.GetOption)(options, "calendar", "string", void 0, void 0);
|
|
25514
|
-
if (calendar !== void 0) {
|
|
25515
|
-
if (!UNICODE_TYPE_REGEX.test(calendar)) {
|
|
25516
|
-
throw new RangeError("invalid calendar");
|
|
25517
|
-
}
|
|
25518
|
-
}
|
|
25519
|
-
opt.ca = calendar;
|
|
25520
|
-
var collation = (0, import_ecma402_abstract.GetOption)(options, "collation", "string", void 0, void 0);
|
|
25521
|
-
if (collation !== void 0) {
|
|
25522
|
-
if (!UNICODE_TYPE_REGEX.test(collation)) {
|
|
25523
|
-
throw new RangeError("invalid collation");
|
|
25524
|
-
}
|
|
25525
|
-
}
|
|
25526
|
-
opt.co = collation;
|
|
25527
|
-
var fw = (0, import_ecma402_abstract.GetOption)(options, "firstDayOfWeek", "string", void 0, void 0);
|
|
25528
|
-
if (fw !== void 0) {
|
|
25529
|
-
fw = weekdayToString(fw);
|
|
25530
|
-
if (!ALPHANUM_3_8.test(fw)) {
|
|
25531
|
-
throw new RangeError("Invalid firstDayOfWeek");
|
|
25532
|
-
}
|
|
25533
|
-
}
|
|
25534
|
-
opt.fw = fw;
|
|
25535
|
-
var hc = (0, import_ecma402_abstract.GetOption)(options, "hourCycle", "string", ["h11", "h12", "h23", "h24"], void 0);
|
|
25536
|
-
opt.hc = hc;
|
|
25537
|
-
var kf = (0, import_ecma402_abstract.GetOption)(options, "caseFirst", "string", ["upper", "lower", "false"], void 0);
|
|
25538
|
-
opt.kf = kf;
|
|
25539
|
-
var _kn = (0, import_ecma402_abstract.GetOption)(options, "numeric", "boolean", void 0, void 0);
|
|
25540
|
-
var kn;
|
|
25541
|
-
if (_kn !== void 0) {
|
|
25542
|
-
kn = String(_kn);
|
|
25543
|
-
}
|
|
25544
|
-
opt.kn = kn;
|
|
25545
|
-
var numberingSystem = (0, import_ecma402_abstract.GetOption)(options, "numberingSystem", "string", void 0, void 0);
|
|
25546
|
-
if (numberingSystem !== void 0) {
|
|
25547
|
-
if (!UNICODE_TYPE_REGEX.test(numberingSystem)) {
|
|
25548
|
-
throw new RangeError("Invalid numberingSystem");
|
|
25549
|
-
}
|
|
25550
|
-
}
|
|
25551
|
-
opt.nu = numberingSystem;
|
|
25552
|
-
var r = applyUnicodeExtensionToTag(tag, opt, relevantExtensionKeys);
|
|
25553
|
-
internalSlots.locale = r.locale;
|
|
25554
|
-
internalSlots.calendar = r.ca;
|
|
25555
|
-
internalSlots.collation = r.co;
|
|
25556
|
-
internalSlots.firstDayOfWeek = r.fw;
|
|
25557
|
-
internalSlots.hourCycle = r.hc;
|
|
25558
|
-
if (relevantExtensionKeys.indexOf("kf") > -1) {
|
|
25559
|
-
internalSlots.caseFirst = r.kf;
|
|
25560
|
-
}
|
|
25561
|
-
if (relevantExtensionKeys.indexOf("kn") > -1) {
|
|
25562
|
-
internalSlots.numeric = (0, import_ecma402_abstract.SameValue)(r.kn, "true");
|
|
25563
|
-
}
|
|
25564
|
-
internalSlots.numberingSystem = r.nu;
|
|
25961
|
+
var _Locale = class _Locale {
|
|
25962
|
+
constructor(tag, opts) {
|
|
25963
|
+
const newTarget = this && this instanceof _Locale ? this.constructor : void 0;
|
|
25964
|
+
if (!newTarget) {
|
|
25965
|
+
throw new TypeError("Intl.Locale must be called with 'new'");
|
|
25565
25966
|
}
|
|
25566
|
-
|
|
25567
|
-
|
|
25568
|
-
|
|
25569
|
-
|
|
25570
|
-
|
|
25571
|
-
|
|
25572
|
-
|
|
25573
|
-
|
|
25574
|
-
|
|
25575
|
-
|
|
25576
|
-
|
|
25577
|
-
|
|
25578
|
-
|
|
25579
|
-
|
|
25580
|
-
|
|
25581
|
-
|
|
25967
|
+
const { relevantExtensionKeys } = _Locale;
|
|
25968
|
+
const internalSlotsList = [
|
|
25969
|
+
"initializedLocale",
|
|
25970
|
+
"locale",
|
|
25971
|
+
"calendar",
|
|
25972
|
+
"collation",
|
|
25973
|
+
"hourCycle",
|
|
25974
|
+
"numberingSystem"
|
|
25975
|
+
];
|
|
25976
|
+
if (relevantExtensionKeys.indexOf("kf") > -1) {
|
|
25977
|
+
internalSlotsList.push("caseFirst");
|
|
25978
|
+
}
|
|
25979
|
+
if (relevantExtensionKeys.indexOf("kn") > -1) {
|
|
25980
|
+
internalSlotsList.push("numeric");
|
|
25981
|
+
}
|
|
25982
|
+
if (tag === void 0) {
|
|
25983
|
+
throw new TypeError(
|
|
25984
|
+
"First argument to Intl.Locale constructor can't be empty or missing"
|
|
25985
|
+
);
|
|
25986
|
+
}
|
|
25987
|
+
if (typeof tag !== "string" && typeof tag !== "object") {
|
|
25988
|
+
throw new TypeError("tag must be a string or object");
|
|
25989
|
+
}
|
|
25990
|
+
let tagInternalSlots;
|
|
25991
|
+
if (typeof tag === "object" && (tagInternalSlots = getInternalSlots(tag)) && HasOwnProperty(tagInternalSlots, "initializedLocale")) {
|
|
25992
|
+
tag = tagInternalSlots.locale;
|
|
25993
|
+
} else {
|
|
25994
|
+
tag = tag.toString();
|
|
25995
|
+
}
|
|
25996
|
+
let internalSlots = getInternalSlots(this, internalSlotsList);
|
|
25997
|
+
let options = CoerceOptionsToObject(opts);
|
|
25998
|
+
tag = applyOptionsToTag(tag, options);
|
|
25999
|
+
const opt = /* @__PURE__ */ Object.create(null);
|
|
26000
|
+
const calendar = GetOption(
|
|
26001
|
+
options,
|
|
26002
|
+
"calendar",
|
|
26003
|
+
"string",
|
|
26004
|
+
void 0,
|
|
26005
|
+
void 0
|
|
26006
|
+
);
|
|
26007
|
+
if (calendar !== void 0) {
|
|
26008
|
+
if (!UNICODE_TYPE_REGEX.test(calendar)) {
|
|
26009
|
+
throw new RangeError("invalid calendar");
|
|
25582
26010
|
}
|
|
25583
|
-
}
|
|
25584
|
-
|
|
25585
|
-
|
|
25586
|
-
|
|
25587
|
-
|
|
25588
|
-
|
|
25589
|
-
|
|
25590
|
-
|
|
25591
|
-
|
|
25592
|
-
|
|
25593
|
-
|
|
25594
|
-
|
|
25595
|
-
Object.defineProperty(Locale2.prototype, "calendar", {
|
|
25596
|
-
get: function() {
|
|
25597
|
-
return getInternalSlots(this).calendar;
|
|
25598
|
-
},
|
|
25599
|
-
enumerable: false,
|
|
25600
|
-
configurable: true
|
|
25601
|
-
});
|
|
25602
|
-
Object.defineProperty(Locale2.prototype, "collation", {
|
|
25603
|
-
get: function() {
|
|
25604
|
-
return getInternalSlots(this).collation;
|
|
25605
|
-
},
|
|
25606
|
-
enumerable: false,
|
|
25607
|
-
configurable: true
|
|
25608
|
-
});
|
|
25609
|
-
Object.defineProperty(Locale2.prototype, "caseFirst", {
|
|
25610
|
-
get: function() {
|
|
25611
|
-
return getInternalSlots(this).caseFirst;
|
|
25612
|
-
},
|
|
25613
|
-
enumerable: false,
|
|
25614
|
-
configurable: true
|
|
25615
|
-
});
|
|
25616
|
-
Object.defineProperty(Locale2.prototype, "numeric", {
|
|
25617
|
-
get: function() {
|
|
25618
|
-
return getInternalSlots(this).numeric;
|
|
25619
|
-
},
|
|
25620
|
-
enumerable: false,
|
|
25621
|
-
configurable: true
|
|
25622
|
-
});
|
|
25623
|
-
Object.defineProperty(Locale2.prototype, "numberingSystem", {
|
|
25624
|
-
get: function() {
|
|
25625
|
-
return getInternalSlots(this).numberingSystem;
|
|
25626
|
-
},
|
|
25627
|
-
enumerable: false,
|
|
25628
|
-
configurable: true
|
|
25629
|
-
});
|
|
25630
|
-
Object.defineProperty(Locale2.prototype, "language", {
|
|
25631
|
-
/**
|
|
25632
|
-
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.language
|
|
25633
|
-
*/
|
|
25634
|
-
get: function() {
|
|
25635
|
-
var locale = getInternalSlots(this).locale;
|
|
25636
|
-
return (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(locale).lang;
|
|
25637
|
-
},
|
|
25638
|
-
enumerable: false,
|
|
25639
|
-
configurable: true
|
|
25640
|
-
});
|
|
25641
|
-
Object.defineProperty(Locale2.prototype, "script", {
|
|
25642
|
-
/**
|
|
25643
|
-
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.script
|
|
25644
|
-
*/
|
|
25645
|
-
get: function() {
|
|
25646
|
-
var locale = getInternalSlots(this).locale;
|
|
25647
|
-
return (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(locale).script;
|
|
25648
|
-
},
|
|
25649
|
-
enumerable: false,
|
|
25650
|
-
configurable: true
|
|
25651
|
-
});
|
|
25652
|
-
Object.defineProperty(Locale2.prototype, "region", {
|
|
25653
|
-
/**
|
|
25654
|
-
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.region
|
|
25655
|
-
*/
|
|
25656
|
-
get: function() {
|
|
25657
|
-
var locale = getInternalSlots(this).locale;
|
|
25658
|
-
return (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(locale).region;
|
|
25659
|
-
},
|
|
25660
|
-
enumerable: false,
|
|
25661
|
-
configurable: true
|
|
25662
|
-
});
|
|
25663
|
-
Object.defineProperty(Locale2.prototype, "firstDayOfWeek", {
|
|
25664
|
-
get: function() {
|
|
25665
|
-
var internalSlots = getInternalSlots(this);
|
|
25666
|
-
if (!(0, import_ecma402_abstract.HasOwnProperty)(internalSlots, "initializedLocale")) {
|
|
25667
|
-
throw new TypeError("Error uninitialized locale");
|
|
25668
|
-
}
|
|
25669
|
-
return internalSlots.firstDayOfWeek;
|
|
25670
|
-
},
|
|
25671
|
-
enumerable: false,
|
|
25672
|
-
configurable: true
|
|
25673
|
-
});
|
|
25674
|
-
Object.defineProperty(Locale2.prototype, "hourCycle", {
|
|
25675
|
-
get: function() {
|
|
25676
|
-
var internalSlots = getInternalSlots(this);
|
|
25677
|
-
if (!(0, import_ecma402_abstract.HasOwnProperty)(internalSlots, "initializedLocale")) {
|
|
25678
|
-
throw new TypeError("Error uninitialized locale");
|
|
25679
|
-
}
|
|
25680
|
-
return internalSlots.hourCycle;
|
|
25681
|
-
},
|
|
25682
|
-
enumerable: false,
|
|
25683
|
-
configurable: true
|
|
25684
|
-
});
|
|
25685
|
-
Locale2.prototype.getCalendars = function() {
|
|
25686
|
-
return calendarsOfLocale(this);
|
|
25687
|
-
};
|
|
25688
|
-
Locale2.prototype.getCollations = function() {
|
|
25689
|
-
return collationsOfLocale(this);
|
|
25690
|
-
};
|
|
25691
|
-
Locale2.prototype.getHourCycles = function() {
|
|
25692
|
-
var internalSlots = getInternalSlots(this);
|
|
25693
|
-
if (!(0, import_ecma402_abstract.HasOwnProperty)(internalSlots, "initializedLocale")) {
|
|
25694
|
-
throw new TypeError("Error uninitialized locale");
|
|
26011
|
+
}
|
|
26012
|
+
opt.ca = calendar;
|
|
26013
|
+
const collation = GetOption(
|
|
26014
|
+
options,
|
|
26015
|
+
"collation",
|
|
26016
|
+
"string",
|
|
26017
|
+
void 0,
|
|
26018
|
+
void 0
|
|
26019
|
+
);
|
|
26020
|
+
if (collation !== void 0) {
|
|
26021
|
+
if (!UNICODE_TYPE_REGEX.test(collation)) {
|
|
26022
|
+
throw new RangeError("invalid collation");
|
|
25695
26023
|
}
|
|
25696
|
-
|
|
25697
|
-
|
|
25698
|
-
|
|
25699
|
-
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25704
|
-
|
|
25705
|
-
|
|
25706
|
-
|
|
25707
|
-
(
|
|
25708
|
-
|
|
25709
|
-
};
|
|
25710
|
-
Locale2.prototype.getWeekInfo = function() {
|
|
25711
|
-
var info = Object.create(Object.prototype);
|
|
25712
|
-
var internalSlots = getInternalSlots(this);
|
|
25713
|
-
if (!(0, import_ecma402_abstract.HasOwnProperty)(internalSlots, "initializedLocale")) {
|
|
25714
|
-
throw new TypeError("Error uninitialized locale");
|
|
26024
|
+
}
|
|
26025
|
+
opt.co = collation;
|
|
26026
|
+
let fw = GetOption(
|
|
26027
|
+
options,
|
|
26028
|
+
"firstDayOfWeek",
|
|
26029
|
+
"string",
|
|
26030
|
+
void 0,
|
|
26031
|
+
void 0
|
|
26032
|
+
);
|
|
26033
|
+
if (fw !== void 0) {
|
|
26034
|
+
fw = weekdayToString(fw);
|
|
26035
|
+
if (!ALPHANUM_3_8.test(fw)) {
|
|
26036
|
+
throw new RangeError("Invalid firstDayOfWeek");
|
|
25715
26037
|
}
|
|
25716
|
-
|
|
25717
|
-
|
|
25718
|
-
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
|
|
25723
|
-
|
|
26038
|
+
}
|
|
26039
|
+
opt.fw = fw;
|
|
26040
|
+
const hc = GetOption(
|
|
26041
|
+
options,
|
|
26042
|
+
"hourCycle",
|
|
26043
|
+
"string",
|
|
26044
|
+
["h11", "h12", "h23", "h24"],
|
|
26045
|
+
void 0
|
|
26046
|
+
);
|
|
26047
|
+
opt.hc = hc;
|
|
26048
|
+
const kf = GetOption(
|
|
26049
|
+
options,
|
|
26050
|
+
"caseFirst",
|
|
26051
|
+
"string",
|
|
26052
|
+
["upper", "lower", "false"],
|
|
26053
|
+
void 0
|
|
26054
|
+
);
|
|
26055
|
+
opt.kf = kf;
|
|
26056
|
+
const _kn = GetOption(options, "numeric", "boolean", void 0, void 0);
|
|
26057
|
+
let kn;
|
|
26058
|
+
if (_kn !== void 0) {
|
|
26059
|
+
kn = String(_kn);
|
|
26060
|
+
}
|
|
26061
|
+
opt.kn = kn;
|
|
26062
|
+
const numberingSystem = GetOption(
|
|
26063
|
+
options,
|
|
26064
|
+
"numberingSystem",
|
|
26065
|
+
"string",
|
|
26066
|
+
void 0,
|
|
26067
|
+
void 0
|
|
26068
|
+
);
|
|
26069
|
+
if (numberingSystem !== void 0) {
|
|
26070
|
+
if (!UNICODE_TYPE_REGEX.test(numberingSystem)) {
|
|
26071
|
+
throw new RangeError("Invalid numberingSystem");
|
|
25724
26072
|
}
|
|
25725
|
-
|
|
25726
|
-
|
|
25727
|
-
|
|
25728
|
-
|
|
25729
|
-
|
|
25730
|
-
|
|
25731
|
-
|
|
26073
|
+
}
|
|
26074
|
+
opt.nu = numberingSystem;
|
|
26075
|
+
const r = applyUnicodeExtensionToTag(tag, opt, relevantExtensionKeys);
|
|
26076
|
+
internalSlots.locale = r.locale;
|
|
26077
|
+
internalSlots.calendar = r.ca;
|
|
26078
|
+
internalSlots.collation = r.co;
|
|
26079
|
+
internalSlots.firstDayOfWeek = r.fw;
|
|
26080
|
+
internalSlots.hourCycle = r.hc;
|
|
26081
|
+
if (relevantExtensionKeys.indexOf("kf") > -1) {
|
|
26082
|
+
internalSlots.caseFirst = r.kf;
|
|
26083
|
+
}
|
|
26084
|
+
if (relevantExtensionKeys.indexOf("kn") > -1) {
|
|
26085
|
+
internalSlots.numeric = SameValue(r.kn, "true");
|
|
26086
|
+
}
|
|
26087
|
+
internalSlots.numberingSystem = r.nu;
|
|
26088
|
+
}
|
|
26089
|
+
/**
|
|
26090
|
+
* https://www.unicode.org/reports/tr35/#Likely_Subtags
|
|
26091
|
+
*/
|
|
26092
|
+
maximize() {
|
|
26093
|
+
const locale = getInternalSlots(this).locale;
|
|
26094
|
+
try {
|
|
26095
|
+
const maximizedLocale = addLikelySubtags(locale);
|
|
26096
|
+
return new _Locale(maximizedLocale);
|
|
26097
|
+
} catch (e) {
|
|
26098
|
+
return new _Locale(locale);
|
|
26099
|
+
}
|
|
26100
|
+
}
|
|
26101
|
+
/**
|
|
26102
|
+
* https://www.unicode.org/reports/tr35/#Likely_Subtags
|
|
26103
|
+
*/
|
|
26104
|
+
minimize() {
|
|
26105
|
+
const locale = getInternalSlots(this).locale;
|
|
26106
|
+
try {
|
|
26107
|
+
const minimizedLocale = removeLikelySubtags(locale);
|
|
26108
|
+
return new _Locale(minimizedLocale);
|
|
26109
|
+
} catch (e) {
|
|
26110
|
+
return new _Locale(locale);
|
|
26111
|
+
}
|
|
26112
|
+
}
|
|
26113
|
+
toString() {
|
|
26114
|
+
return getInternalSlots(this).locale;
|
|
26115
|
+
}
|
|
26116
|
+
get baseName() {
|
|
26117
|
+
const locale = getInternalSlots(this).locale;
|
|
26118
|
+
return (0, import_intl_getcanonicallocales.emitUnicodeLanguageId)((0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(locale));
|
|
26119
|
+
}
|
|
26120
|
+
get calendar() {
|
|
26121
|
+
return getInternalSlots(this).calendar;
|
|
26122
|
+
}
|
|
26123
|
+
get collation() {
|
|
26124
|
+
return getInternalSlots(this).collation;
|
|
26125
|
+
}
|
|
26126
|
+
get caseFirst() {
|
|
26127
|
+
return getInternalSlots(this).caseFirst;
|
|
26128
|
+
}
|
|
26129
|
+
get numeric() {
|
|
26130
|
+
return getInternalSlots(this).numeric;
|
|
26131
|
+
}
|
|
26132
|
+
get numberingSystem() {
|
|
26133
|
+
return getInternalSlots(this).numberingSystem;
|
|
26134
|
+
}
|
|
26135
|
+
/**
|
|
26136
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.language
|
|
26137
|
+
*/
|
|
26138
|
+
get language() {
|
|
26139
|
+
const locale = getInternalSlots(this).locale;
|
|
26140
|
+
return (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(locale).lang;
|
|
26141
|
+
}
|
|
26142
|
+
/**
|
|
26143
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.script
|
|
26144
|
+
*/
|
|
26145
|
+
get script() {
|
|
26146
|
+
const locale = getInternalSlots(this).locale;
|
|
26147
|
+
return (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(locale).script;
|
|
26148
|
+
}
|
|
26149
|
+
/**
|
|
26150
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.region
|
|
26151
|
+
*/
|
|
26152
|
+
get region() {
|
|
26153
|
+
const locale = getInternalSlots(this).locale;
|
|
26154
|
+
return (0, import_intl_getcanonicallocales.parseUnicodeLanguageId)(locale).region;
|
|
26155
|
+
}
|
|
26156
|
+
get firstDayOfWeek() {
|
|
26157
|
+
const internalSlots = getInternalSlots(this);
|
|
26158
|
+
if (!HasOwnProperty(internalSlots, "initializedLocale")) {
|
|
26159
|
+
throw new TypeError("Error uninitialized locale");
|
|
26160
|
+
}
|
|
26161
|
+
return internalSlots.firstDayOfWeek;
|
|
26162
|
+
}
|
|
26163
|
+
get hourCycle() {
|
|
26164
|
+
const internalSlots = getInternalSlots(this);
|
|
26165
|
+
if (!HasOwnProperty(internalSlots, "initializedLocale")) {
|
|
26166
|
+
throw new TypeError("Error uninitialized locale");
|
|
26167
|
+
}
|
|
26168
|
+
return internalSlots.hourCycle;
|
|
26169
|
+
}
|
|
26170
|
+
/**
|
|
26171
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
|
|
26172
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
|
|
26173
|
+
*/
|
|
26174
|
+
getCalendars() {
|
|
26175
|
+
return calendarsOfLocale(this);
|
|
26176
|
+
}
|
|
26177
|
+
/**
|
|
26178
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations
|
|
26179
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCollations
|
|
26180
|
+
*/
|
|
26181
|
+
getCollations() {
|
|
26182
|
+
return collationsOfLocale(this);
|
|
26183
|
+
}
|
|
26184
|
+
/**
|
|
26185
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles
|
|
26186
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getHourCycles
|
|
26187
|
+
*/
|
|
26188
|
+
getHourCycles() {
|
|
26189
|
+
const internalSlots = getInternalSlots(this);
|
|
26190
|
+
if (!HasOwnProperty(internalSlots, "initializedLocale")) {
|
|
26191
|
+
throw new TypeError("Error uninitialized locale");
|
|
26192
|
+
}
|
|
26193
|
+
return hourCyclesOfLocale(this);
|
|
26194
|
+
}
|
|
26195
|
+
/**
|
|
26196
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems
|
|
26197
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getNumberingSystems
|
|
26198
|
+
*/
|
|
26199
|
+
getNumberingSystems() {
|
|
26200
|
+
return numberingSystemsOfLocale(this);
|
|
26201
|
+
}
|
|
26202
|
+
/**
|
|
26203
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
|
|
26204
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones
|
|
26205
|
+
*/
|
|
26206
|
+
getTimeZones() {
|
|
26207
|
+
return timeZonesOfLocale(this);
|
|
26208
|
+
}
|
|
26209
|
+
/**
|
|
26210
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
|
|
26211
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
|
|
26212
|
+
*/
|
|
26213
|
+
getTextInfo() {
|
|
26214
|
+
const info = Object.create(Object.prototype);
|
|
26215
|
+
const dir = characterDirectionOfLocale(this);
|
|
26216
|
+
createDataProperty(info, "direction", dir);
|
|
26217
|
+
return info;
|
|
26218
|
+
}
|
|
26219
|
+
/**
|
|
26220
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
|
|
26221
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
|
|
26222
|
+
*/
|
|
26223
|
+
getWeekInfo() {
|
|
26224
|
+
const info = Object.create(Object.prototype);
|
|
26225
|
+
const internalSlots = getInternalSlots(this);
|
|
26226
|
+
if (!HasOwnProperty(internalSlots, "initializedLocale")) {
|
|
26227
|
+
throw new TypeError("Error uninitialized locale");
|
|
26228
|
+
}
|
|
26229
|
+
const wi = weekInfoOfLocale(this);
|
|
26230
|
+
const we = wi.weekend;
|
|
26231
|
+
createDataProperty(info, "firstDay", wi.firstDay);
|
|
26232
|
+
createDataProperty(info, "weekend", we);
|
|
26233
|
+
createDataProperty(info, "minimalDays", wi.minimalDays);
|
|
26234
|
+
const fw = internalSlots.firstDayOfWeek;
|
|
26235
|
+
if (fw !== void 0) {
|
|
26236
|
+
info.firstDay = fw;
|
|
26237
|
+
}
|
|
26238
|
+
return info;
|
|
26239
|
+
}
|
|
26240
|
+
};
|
|
26241
|
+
__publicField(_Locale, "relevantExtensionKeys", RELEVANT_EXTENSION_KEYS);
|
|
26242
|
+
__publicField(_Locale, "polyfilled", true);
|
|
26243
|
+
var Locale = _Locale;
|
|
25732
26244
|
try {
|
|
25733
26245
|
if (typeof Symbol !== "undefined") {
|
|
25734
26246
|
Object.defineProperty(Locale.prototype, Symbol.toStringTag, {
|
|
@@ -25747,7 +26259,7 @@
|
|
|
25747
26259
|
} catch (e) {
|
|
25748
26260
|
}
|
|
25749
26261
|
|
|
25750
|
-
//
|
|
26262
|
+
// packages/intl-locale/should-polyfill.ts
|
|
25751
26263
|
function hasIntlGetCanonicalLocalesBug() {
|
|
25752
26264
|
try {
|
|
25753
26265
|
return new Intl.Locale("und-x-private").toString() === "x-private";
|
|
@@ -25759,7 +26271,7 @@
|
|
|
25759
26271
|
return !("Locale" in Intl) || hasIntlGetCanonicalLocalesBug();
|
|
25760
26272
|
}
|
|
25761
26273
|
|
|
25762
|
-
//
|
|
26274
|
+
// packages/intl-locale/polyfill.ts
|
|
25763
26275
|
if (shouldPolyfill()) {
|
|
25764
26276
|
Object.defineProperty(Intl, "Locale", {
|
|
25765
26277
|
value: Locale,
|