@formatjs/intl-locale 4.2.7 → 4.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/polyfill.iife.js +561 -456
package/polyfill.iife.js CHANGED
@@ -3061,6 +3061,226 @@
3061
3061
  }
3062
3062
  });
3063
3063
 
3064
+ // node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
3065
+ var require_fast_memoize = __commonJS({
3066
+ "node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js"(exports) {
3067
+ "use strict";
3068
+ Object.defineProperty(exports, "__esModule", { value: true });
3069
+ exports.strategies = void 0;
3070
+ exports.memoize = memoize2;
3071
+ function memoize2(fn, options) {
3072
+ var cache = options && options.cache ? options.cache : cacheDefault2;
3073
+ var serializer = options && options.serializer ? options.serializer : serializerDefault2;
3074
+ var strategy = options && options.strategy ? options.strategy : strategyDefault2;
3075
+ return strategy(fn, {
3076
+ cache,
3077
+ serializer
3078
+ });
3079
+ }
3080
+ function isPrimitive2(value) {
3081
+ return value == null || typeof value === "number" || typeof value === "boolean";
3082
+ }
3083
+ function monadic2(fn, cache, serializer, arg) {
3084
+ var cacheKey = isPrimitive2(arg) ? arg : serializer(arg);
3085
+ var computedValue = cache.get(cacheKey);
3086
+ if (typeof computedValue === "undefined") {
3087
+ computedValue = fn.call(this, arg);
3088
+ cache.set(cacheKey, computedValue);
3089
+ }
3090
+ return computedValue;
3091
+ }
3092
+ function variadic2(fn, cache, serializer) {
3093
+ var args = Array.prototype.slice.call(arguments, 3);
3094
+ var cacheKey = serializer(args);
3095
+ var computedValue = cache.get(cacheKey);
3096
+ if (typeof computedValue === "undefined") {
3097
+ computedValue = fn.apply(this, args);
3098
+ cache.set(cacheKey, computedValue);
3099
+ }
3100
+ return computedValue;
3101
+ }
3102
+ function assemble2(fn, context, strategy, cache, serialize) {
3103
+ return strategy.bind(context, fn, cache, serialize);
3104
+ }
3105
+ function strategyDefault2(fn, options) {
3106
+ var strategy = fn.length === 1 ? monadic2 : variadic2;
3107
+ return assemble2(fn, this, strategy, options.cache.create(), options.serializer);
3108
+ }
3109
+ function strategyVariadic2(fn, options) {
3110
+ return assemble2(fn, this, variadic2, options.cache.create(), options.serializer);
3111
+ }
3112
+ function strategyMonadic2(fn, options) {
3113
+ return assemble2(fn, this, monadic2, options.cache.create(), options.serializer);
3114
+ }
3115
+ var serializerDefault2 = function() {
3116
+ return JSON.stringify(arguments);
3117
+ };
3118
+ var ObjectWithoutPrototypeCache2 = (
3119
+ /** @class */
3120
+ function() {
3121
+ function ObjectWithoutPrototypeCache3() {
3122
+ this.cache = /* @__PURE__ */ Object.create(null);
3123
+ }
3124
+ ObjectWithoutPrototypeCache3.prototype.get = function(key) {
3125
+ return this.cache[key];
3126
+ };
3127
+ ObjectWithoutPrototypeCache3.prototype.set = function(key, value) {
3128
+ this.cache[key] = value;
3129
+ };
3130
+ return ObjectWithoutPrototypeCache3;
3131
+ }()
3132
+ );
3133
+ var cacheDefault2 = {
3134
+ create: function create2() {
3135
+ return new ObjectWithoutPrototypeCache2();
3136
+ }
3137
+ };
3138
+ exports.strategies = {
3139
+ variadic: strategyVariadic2,
3140
+ monadic: strategyMonadic2
3141
+ };
3142
+ }
3143
+ });
3144
+
3145
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/utils.js
3146
+ var require_utils = __commonJS({
3147
+ "node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/utils.js"(exports) {
3148
+ "use strict";
3149
+ Object.defineProperty(exports, "__esModule", { value: true });
3150
+ exports.createMemoizedListFormat = exports.createMemoizedLocale = exports.createMemoizedPluralRules = exports.createMemoizedDateTimeFormat = exports.createMemoizedNumberFormat = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = void 0;
3151
+ exports.repeat = repeat2;
3152
+ exports.setInternalSlot = setInternalSlot2;
3153
+ exports.setMultiInternalSlots = setMultiInternalSlots2;
3154
+ exports.getInternalSlot = getInternalSlot2;
3155
+ exports.getMultiInternalSlots = getMultiInternalSlots2;
3156
+ exports.isLiteralPart = isLiteralPart2;
3157
+ exports.defineProperty = defineProperty2;
3158
+ exports.createDataProperty = createDataProperty2;
3159
+ exports.invariant = invariant3;
3160
+ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
3161
+ var fast_memoize_1 = require_fast_memoize();
3162
+ function repeat2(s, times) {
3163
+ if (typeof s.repeat === "function") {
3164
+ return s.repeat(times);
3165
+ }
3166
+ var arr = new Array(times);
3167
+ for (var i = 0; i < arr.length; i++) {
3168
+ arr[i] = s;
3169
+ }
3170
+ return arr.join("");
3171
+ }
3172
+ function setInternalSlot2(map, pl, field, value) {
3173
+ if (!map.get(pl)) {
3174
+ map.set(pl, /* @__PURE__ */ Object.create(null));
3175
+ }
3176
+ var slots = map.get(pl);
3177
+ slots[field] = value;
3178
+ }
3179
+ function setMultiInternalSlots2(map, pl, props) {
3180
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
3181
+ var k = _a[_i];
3182
+ setInternalSlot2(map, pl, k, props[k]);
3183
+ }
3184
+ }
3185
+ function getInternalSlot2(map, pl, field) {
3186
+ return getMultiInternalSlots2(map, pl, field)[field];
3187
+ }
3188
+ function getMultiInternalSlots2(map, pl) {
3189
+ var fields = [];
3190
+ for (var _i = 2; _i < arguments.length; _i++) {
3191
+ fields[_i - 2] = arguments[_i];
3192
+ }
3193
+ var slots = map.get(pl);
3194
+ if (!slots) {
3195
+ throw new TypeError("".concat(pl, " InternalSlot has not been initialized"));
3196
+ }
3197
+ return fields.reduce(function(all, f) {
3198
+ all[f] = slots[f];
3199
+ return all;
3200
+ }, /* @__PURE__ */ Object.create(null));
3201
+ }
3202
+ function isLiteralPart2(patternPart) {
3203
+ return patternPart.type === "literal";
3204
+ }
3205
+ function defineProperty2(target, name, _a) {
3206
+ var value = _a.value;
3207
+ Object.defineProperty(target, name, {
3208
+ configurable: true,
3209
+ enumerable: false,
3210
+ writable: true,
3211
+ value
3212
+ });
3213
+ }
3214
+ function createDataProperty2(target, name, value) {
3215
+ Object.defineProperty(target, name, {
3216
+ configurable: true,
3217
+ enumerable: true,
3218
+ writable: true,
3219
+ value
3220
+ });
3221
+ }
3222
+ exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
3223
+ function invariant3(condition, message, Err) {
3224
+ if (Err === void 0) {
3225
+ Err = Error;
3226
+ }
3227
+ if (!condition) {
3228
+ throw new Err(message);
3229
+ }
3230
+ }
3231
+ exports.createMemoizedNumberFormat = (0, fast_memoize_1.memoize)(function() {
3232
+ var _a;
3233
+ var args = [];
3234
+ for (var _i = 0; _i < arguments.length; _i++) {
3235
+ args[_i] = arguments[_i];
3236
+ }
3237
+ return new ((_a = Intl.NumberFormat).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3238
+ }, {
3239
+ strategy: fast_memoize_1.strategies.variadic
3240
+ });
3241
+ exports.createMemoizedDateTimeFormat = (0, fast_memoize_1.memoize)(function() {
3242
+ var _a;
3243
+ var args = [];
3244
+ for (var _i = 0; _i < arguments.length; _i++) {
3245
+ args[_i] = arguments[_i];
3246
+ }
3247
+ return new ((_a = Intl.DateTimeFormat).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3248
+ }, {
3249
+ strategy: fast_memoize_1.strategies.variadic
3250
+ });
3251
+ exports.createMemoizedPluralRules = (0, fast_memoize_1.memoize)(function() {
3252
+ var _a;
3253
+ var args = [];
3254
+ for (var _i = 0; _i < arguments.length; _i++) {
3255
+ args[_i] = arguments[_i];
3256
+ }
3257
+ return new ((_a = Intl.PluralRules).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3258
+ }, {
3259
+ strategy: fast_memoize_1.strategies.variadic
3260
+ });
3261
+ exports.createMemoizedLocale = (0, fast_memoize_1.memoize)(function() {
3262
+ var _a;
3263
+ var args = [];
3264
+ for (var _i = 0; _i < arguments.length; _i++) {
3265
+ args[_i] = arguments[_i];
3266
+ }
3267
+ return new ((_a = Intl.Locale).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3268
+ }, {
3269
+ strategy: fast_memoize_1.strategies.variadic
3270
+ });
3271
+ exports.createMemoizedListFormat = (0, fast_memoize_1.memoize)(function() {
3272
+ var _a;
3273
+ var args = [];
3274
+ for (var _i = 0; _i < arguments.length; _i++) {
3275
+ args[_i] = arguments[_i];
3276
+ }
3277
+ return new ((_a = Intl.ListFormat).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3278
+ }, {
3279
+ strategy: fast_memoize_1.strategies.variadic
3280
+ });
3281
+ }
3282
+ });
3283
+
3064
3284
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/262.js
3065
3285
  var require__ = __commonJS({
3066
3286
  "node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/262.js"(exports) {
@@ -3089,28 +3309,41 @@
3089
3309
  exports.SecFromTime = SecFromTime;
3090
3310
  exports.OrdinaryHasInstance = OrdinaryHasInstance;
3091
3311
  exports.msFromTime = msFromTime;
3312
+ exports.ToPrimitive = ToPrimitive2;
3092
3313
  var decimal_js_1 = require_decimal();
3093
3314
  var constants_1 = require_constants();
3315
+ var utils_1 = require_utils();
3094
3316
  function ToString2(o) {
3095
3317
  if (typeof o === "symbol") {
3096
3318
  throw TypeError("Cannot convert a Symbol value to a string");
3097
3319
  }
3098
3320
  return String(o);
3099
3321
  }
3100
- function ToNumber(val) {
3101
- if (val === void 0) {
3322
+ function ToNumber(arg) {
3323
+ if (typeof arg === "number") {
3324
+ return new decimal_js_1.Decimal(arg);
3325
+ }
3326
+ (0, utils_1.invariant)(typeof arg !== "bigint" && typeof arg !== "symbol", "BigInt and Symbol are not supported", TypeError);
3327
+ if (arg === void 0) {
3102
3328
  return new decimal_js_1.Decimal(NaN);
3103
3329
  }
3104
- if (val === null) {
3330
+ if (arg === null || arg === 0) {
3105
3331
  return constants_1.ZERO;
3106
3332
  }
3107
- if (typeof val === "boolean") {
3108
- return new decimal_js_1.Decimal(val ? 1 : 0);
3333
+ if (arg === true) {
3334
+ return new decimal_js_1.Decimal(1);
3109
3335
  }
3110
- if (typeof val === "symbol" || typeof val === "bigint") {
3111
- throw new TypeError("Cannot convert symbol/bigint to number");
3336
+ if (typeof arg === "string") {
3337
+ try {
3338
+ return new decimal_js_1.Decimal(arg);
3339
+ } catch (e) {
3340
+ return new decimal_js_1.Decimal(NaN);
3341
+ }
3112
3342
  }
3113
- return new decimal_js_1.Decimal(Number(val));
3343
+ (0, utils_1.invariant)(typeof arg === "object", "object expected", TypeError);
3344
+ var primValue = ToPrimitive2(arg, "number");
3345
+ (0, utils_1.invariant)(typeof primValue !== "object", "object expected", TypeError);
3346
+ return ToNumber(primValue);
3114
3347
  }
3115
3348
  function ToInteger(n) {
3116
3349
  var number = ToNumber(n);
@@ -3127,13 +3360,13 @@
3127
3360
  return integer;
3128
3361
  }
3129
3362
  function TimeClip(time) {
3130
- if (!isFinite(time)) {
3131
- return NaN;
3363
+ if (!time.isFinite()) {
3364
+ return new decimal_js_1.Decimal(NaN);
3132
3365
  }
3133
- if (Math.abs(time) > 8.64 * 1e15) {
3134
- return NaN;
3366
+ if (time.abs().greaterThan(8.64 * 1e15)) {
3367
+ return new decimal_js_1.Decimal(NaN);
3135
3368
  }
3136
- return ToInteger(time).toNumber();
3369
+ return ToInteger(time);
3137
3370
  }
3138
3371
  function ToObject2(arg) {
3139
3372
  if (arg == null) {
@@ -3340,6 +3573,51 @@
3340
3573
  function msFromTime(t) {
3341
3574
  return mod2(t, MS_PER_SECOND2);
3342
3575
  }
3576
+ function OrdinaryToPrimitive(O, hint) {
3577
+ var methodNames;
3578
+ if (hint === "string") {
3579
+ methodNames = ["toString", "valueOf"];
3580
+ } else {
3581
+ methodNames = ["valueOf", "toString"];
3582
+ }
3583
+ for (var _i = 0, methodNames_1 = methodNames; _i < methodNames_1.length; _i++) {
3584
+ var name_1 = methodNames_1[_i];
3585
+ var method = O[name_1];
3586
+ if (IsCallable(method)) {
3587
+ var result = method.call(O);
3588
+ if (typeof result !== "object") {
3589
+ return result;
3590
+ }
3591
+ }
3592
+ }
3593
+ throw new TypeError("Cannot convert object to primitive value");
3594
+ }
3595
+ function ToPrimitive2(input, preferredType) {
3596
+ if (typeof input === "object" && input != null) {
3597
+ var exoticToPrim = Symbol.toPrimitive in input ? input[Symbol.toPrimitive] : void 0;
3598
+ var hint = void 0;
3599
+ if (exoticToPrim !== void 0) {
3600
+ if (preferredType === void 0) {
3601
+ hint = "default";
3602
+ } else if (preferredType === "string") {
3603
+ hint = "string";
3604
+ } else {
3605
+ (0, utils_1.invariant)(preferredType === "number", 'preferredType must be "string" or "number"');
3606
+ hint = "number";
3607
+ }
3608
+ var result = exoticToPrim.call(input, hint);
3609
+ if (typeof result !== "object") {
3610
+ return result;
3611
+ }
3612
+ throw new TypeError("Cannot convert exotic object to primitive.");
3613
+ }
3614
+ if (preferredType === void 0) {
3615
+ preferredType = "number";
3616
+ }
3617
+ return OrdinaryToPrimitive(input, preferredType);
3618
+ }
3619
+ return input;
3620
+ }
3343
3621
  }
3344
3622
  });
3345
3623
 
@@ -3618,226 +3896,6 @@
3618
3896
  }
3619
3897
  });
3620
3898
 
3621
- // node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
3622
- var require_fast_memoize = __commonJS({
3623
- "node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js"(exports) {
3624
- "use strict";
3625
- Object.defineProperty(exports, "__esModule", { value: true });
3626
- exports.strategies = void 0;
3627
- exports.memoize = memoize2;
3628
- function memoize2(fn, options) {
3629
- var cache = options && options.cache ? options.cache : cacheDefault2;
3630
- var serializer = options && options.serializer ? options.serializer : serializerDefault2;
3631
- var strategy = options && options.strategy ? options.strategy : strategyDefault2;
3632
- return strategy(fn, {
3633
- cache,
3634
- serializer
3635
- });
3636
- }
3637
- function isPrimitive2(value) {
3638
- return value == null || typeof value === "number" || typeof value === "boolean";
3639
- }
3640
- function monadic2(fn, cache, serializer, arg) {
3641
- var cacheKey = isPrimitive2(arg) ? arg : serializer(arg);
3642
- var computedValue = cache.get(cacheKey);
3643
- if (typeof computedValue === "undefined") {
3644
- computedValue = fn.call(this, arg);
3645
- cache.set(cacheKey, computedValue);
3646
- }
3647
- return computedValue;
3648
- }
3649
- function variadic2(fn, cache, serializer) {
3650
- var args = Array.prototype.slice.call(arguments, 3);
3651
- var cacheKey = serializer(args);
3652
- var computedValue = cache.get(cacheKey);
3653
- if (typeof computedValue === "undefined") {
3654
- computedValue = fn.apply(this, args);
3655
- cache.set(cacheKey, computedValue);
3656
- }
3657
- return computedValue;
3658
- }
3659
- function assemble2(fn, context, strategy, cache, serialize) {
3660
- return strategy.bind(context, fn, cache, serialize);
3661
- }
3662
- function strategyDefault2(fn, options) {
3663
- var strategy = fn.length === 1 ? monadic2 : variadic2;
3664
- return assemble2(fn, this, strategy, options.cache.create(), options.serializer);
3665
- }
3666
- function strategyVariadic2(fn, options) {
3667
- return assemble2(fn, this, variadic2, options.cache.create(), options.serializer);
3668
- }
3669
- function strategyMonadic2(fn, options) {
3670
- return assemble2(fn, this, monadic2, options.cache.create(), options.serializer);
3671
- }
3672
- var serializerDefault2 = function() {
3673
- return JSON.stringify(arguments);
3674
- };
3675
- var ObjectWithoutPrototypeCache2 = (
3676
- /** @class */
3677
- function() {
3678
- function ObjectWithoutPrototypeCache3() {
3679
- this.cache = /* @__PURE__ */ Object.create(null);
3680
- }
3681
- ObjectWithoutPrototypeCache3.prototype.get = function(key) {
3682
- return this.cache[key];
3683
- };
3684
- ObjectWithoutPrototypeCache3.prototype.set = function(key, value) {
3685
- this.cache[key] = value;
3686
- };
3687
- return ObjectWithoutPrototypeCache3;
3688
- }()
3689
- );
3690
- var cacheDefault2 = {
3691
- create: function create2() {
3692
- return new ObjectWithoutPrototypeCache2();
3693
- }
3694
- };
3695
- exports.strategies = {
3696
- variadic: strategyVariadic2,
3697
- monadic: strategyMonadic2
3698
- };
3699
- }
3700
- });
3701
-
3702
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/utils.js
3703
- var require_utils = __commonJS({
3704
- "node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/utils.js"(exports) {
3705
- "use strict";
3706
- Object.defineProperty(exports, "__esModule", { value: true });
3707
- exports.createMemoizedListFormat = exports.createMemoizedLocale = exports.createMemoizedPluralRules = exports.createMemoizedDateTimeFormat = exports.createMemoizedNumberFormat = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = void 0;
3708
- exports.repeat = repeat2;
3709
- exports.setInternalSlot = setInternalSlot2;
3710
- exports.setMultiInternalSlots = setMultiInternalSlots2;
3711
- exports.getInternalSlot = getInternalSlot2;
3712
- exports.getMultiInternalSlots = getMultiInternalSlots2;
3713
- exports.isLiteralPart = isLiteralPart2;
3714
- exports.defineProperty = defineProperty2;
3715
- exports.createDataProperty = createDataProperty2;
3716
- exports.invariant = invariant3;
3717
- var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
3718
- var fast_memoize_1 = require_fast_memoize();
3719
- function repeat2(s, times) {
3720
- if (typeof s.repeat === "function") {
3721
- return s.repeat(times);
3722
- }
3723
- var arr = new Array(times);
3724
- for (var i = 0; i < arr.length; i++) {
3725
- arr[i] = s;
3726
- }
3727
- return arr.join("");
3728
- }
3729
- function setInternalSlot2(map, pl, field, value) {
3730
- if (!map.get(pl)) {
3731
- map.set(pl, /* @__PURE__ */ Object.create(null));
3732
- }
3733
- var slots = map.get(pl);
3734
- slots[field] = value;
3735
- }
3736
- function setMultiInternalSlots2(map, pl, props) {
3737
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
3738
- var k = _a[_i];
3739
- setInternalSlot2(map, pl, k, props[k]);
3740
- }
3741
- }
3742
- function getInternalSlot2(map, pl, field) {
3743
- return getMultiInternalSlots2(map, pl, field)[field];
3744
- }
3745
- function getMultiInternalSlots2(map, pl) {
3746
- var fields = [];
3747
- for (var _i = 2; _i < arguments.length; _i++) {
3748
- fields[_i - 2] = arguments[_i];
3749
- }
3750
- var slots = map.get(pl);
3751
- if (!slots) {
3752
- throw new TypeError("".concat(pl, " InternalSlot has not been initialized"));
3753
- }
3754
- return fields.reduce(function(all, f) {
3755
- all[f] = slots[f];
3756
- return all;
3757
- }, /* @__PURE__ */ Object.create(null));
3758
- }
3759
- function isLiteralPart2(patternPart) {
3760
- return patternPart.type === "literal";
3761
- }
3762
- function defineProperty2(target, name, _a) {
3763
- var value = _a.value;
3764
- Object.defineProperty(target, name, {
3765
- configurable: true,
3766
- enumerable: false,
3767
- writable: true,
3768
- value
3769
- });
3770
- }
3771
- function createDataProperty2(target, name, value) {
3772
- Object.defineProperty(target, name, {
3773
- configurable: true,
3774
- enumerable: true,
3775
- writable: true,
3776
- value
3777
- });
3778
- }
3779
- exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
3780
- function invariant3(condition, message, Err) {
3781
- if (Err === void 0) {
3782
- Err = Error;
3783
- }
3784
- if (!condition) {
3785
- throw new Err(message);
3786
- }
3787
- }
3788
- exports.createMemoizedNumberFormat = (0, fast_memoize_1.memoize)(function() {
3789
- var _a;
3790
- var args = [];
3791
- for (var _i = 0; _i < arguments.length; _i++) {
3792
- args[_i] = arguments[_i];
3793
- }
3794
- return new ((_a = Intl.NumberFormat).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3795
- }, {
3796
- strategy: fast_memoize_1.strategies.variadic
3797
- });
3798
- exports.createMemoizedDateTimeFormat = (0, fast_memoize_1.memoize)(function() {
3799
- var _a;
3800
- var args = [];
3801
- for (var _i = 0; _i < arguments.length; _i++) {
3802
- args[_i] = arguments[_i];
3803
- }
3804
- return new ((_a = Intl.DateTimeFormat).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3805
- }, {
3806
- strategy: fast_memoize_1.strategies.variadic
3807
- });
3808
- exports.createMemoizedPluralRules = (0, fast_memoize_1.memoize)(function() {
3809
- var _a;
3810
- var args = [];
3811
- for (var _i = 0; _i < arguments.length; _i++) {
3812
- args[_i] = arguments[_i];
3813
- }
3814
- return new ((_a = Intl.PluralRules).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3815
- }, {
3816
- strategy: fast_memoize_1.strategies.variadic
3817
- });
3818
- exports.createMemoizedLocale = (0, fast_memoize_1.memoize)(function() {
3819
- var _a;
3820
- var args = [];
3821
- for (var _i = 0; _i < arguments.length; _i++) {
3822
- args[_i] = arguments[_i];
3823
- }
3824
- return new ((_a = Intl.Locale).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3825
- }, {
3826
- strategy: fast_memoize_1.strategies.variadic
3827
- });
3828
- exports.createMemoizedListFormat = (0, fast_memoize_1.memoize)(function() {
3829
- var _a;
3830
- var args = [];
3831
- for (var _i = 0; _i < arguments.length; _i++) {
3832
- args[_i] = arguments[_i];
3833
- }
3834
- return new ((_a = Intl.ListFormat).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();
3835
- }, {
3836
- strategy: fast_memoize_1.strategies.variadic
3837
- });
3838
- }
3839
- });
3840
-
3841
3899
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js
3842
3900
  var require_ApplyUnsignedRoundingMode = __commonJS({
3843
3901
  "node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/ApplyUnsignedRoundingMode.js"(exports) {
@@ -3947,14 +4005,11 @@
3947
4005
  exports.ComputeExponentForMagnitude = ComputeExponentForMagnitude2;
3948
4006
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
3949
4007
  var decimal_js_1 = tslib_1.__importDefault(require_decimal());
3950
- var constants_1 = require_constants();
3951
4008
  var utils_1 = require_utils();
3952
4009
  decimal_js_1.default.set({
3953
4010
  toExpPos: 100
3954
4011
  });
3955
- function ComputeExponentForMagnitude2(numberFormat, magnitude, _a) {
3956
- var getInternalSlots2 = _a.getInternalSlots;
3957
- var internalSlots = getInternalSlots2(numberFormat);
4012
+ function ComputeExponentForMagnitude2(internalSlots, magnitude) {
3958
4013
  var notation = internalSlots.notation, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
3959
4014
  switch (notation) {
3960
4015
  case "standard":
@@ -3978,7 +4033,7 @@
3978
4033
  if (!thresholdMap) {
3979
4034
  return 0;
3980
4035
  }
3981
- var num = constants_1.TEN.pow(magnitude).toString();
4036
+ var num = decimal_js_1.default.pow(10, magnitude).toString();
3982
4037
  var thresholds = Object.keys(thresholdMap);
3983
4038
  if (num < thresholds[0]) {
3984
4039
  return 0;
@@ -4047,17 +4102,16 @@
4047
4102
  exports.ToRawFixed = ToRawFixed2;
4048
4103
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
4049
4104
  var decimal_js_1 = tslib_1.__importDefault(require_decimal());
4050
- var constants_1 = require_constants();
4051
4105
  var utils_1 = require_utils();
4052
4106
  var ApplyUnsignedRoundingMode_1 = require_ApplyUnsignedRoundingMode();
4053
4107
  decimal_js_1.default.set({
4054
4108
  toExpPos: 100
4055
4109
  });
4056
4110
  function ToRawFixedFn(n, f) {
4057
- return n.times(constants_1.TEN.pow(-f));
4111
+ return n.times(decimal_js_1.default.pow(10, -f));
4058
4112
  }
4059
4113
  function findN1R1(x, f, roundingIncrement) {
4060
- var nx = x.times(constants_1.TEN.pow(f)).floor();
4114
+ var nx = x.times(decimal_js_1.default.pow(10, f)).floor();
4061
4115
  var n1 = nx.div(roundingIncrement).floor().times(roundingIncrement);
4062
4116
  var r1 = ToRawFixedFn(n1, f);
4063
4117
  return {
@@ -4066,7 +4120,7 @@
4066
4120
  };
4067
4121
  }
4068
4122
  function findN2R2(x, f, roundingIncrement) {
4069
- var nx = x.times(constants_1.TEN.pow(f)).ceil();
4123
+ var nx = x.times(decimal_js_1.default.pow(10, f)).ceil();
4070
4124
  var n2 = nx.div(roundingIncrement).ceil().times(roundingIncrement);
4071
4125
  var r2 = ToRawFixedFn(n2, f);
4072
4126
  return {
@@ -4137,21 +4191,15 @@
4137
4191
  var constants_1 = require_constants();
4138
4192
  var utils_1 = require_utils();
4139
4193
  var ApplyUnsignedRoundingMode_1 = require_ApplyUnsignedRoundingMode();
4140
- decimal_js_1.default.set({
4141
- toExpPos: 100
4142
- });
4143
- function ToRawPrecisionFn(n, e, p) {
4144
- (0, utils_1.invariant)(constants_1.TEN.pow(p - 1).lessThanOrEqualTo(n) && n.lessThan(constants_1.TEN.pow(p)), "n should be in the range ".concat(constants_1.TEN.pow(p - 1), " <= n < ").concat(constants_1.TEN.pow(p), " but got ").concat(n));
4145
- return n.times(constants_1.TEN.pow(e.minus(p).plus(1)));
4146
- }
4147
4194
  function findN1E1R1(x, p) {
4148
- var maxN1 = constants_1.TEN.pow(p);
4149
- var minN1 = constants_1.TEN.pow(p - 1);
4195
+ var maxN1 = decimal_js_1.default.pow(10, p);
4196
+ var minN1 = decimal_js_1.default.pow(10, p - 1);
4150
4197
  var maxE1 = x.div(minN1).log(10).plus(p).minus(1).ceil();
4151
- for (var currentE1 = maxE1; ; currentE1 = currentE1.minus(1)) {
4152
- var currentN1 = x.div(constants_1.TEN.pow(currentE1.minus(p).plus(1))).floor();
4198
+ var currentE1 = maxE1;
4199
+ while (true) {
4200
+ var currentN1 = x.div(decimal_js_1.default.pow(10, currentE1.minus(p).plus(1))).floor();
4153
4201
  if (currentN1.lessThan(maxN1) && currentN1.greaterThanOrEqualTo(minN1)) {
4154
- var currentR1 = ToRawPrecisionFn(currentN1, currentE1, p);
4202
+ var currentR1 = currentN1.times(decimal_js_1.default.pow(10, currentE1.minus(p).plus(1)));
4155
4203
  if (currentR1.lessThanOrEqualTo(x)) {
4156
4204
  return {
4157
4205
  n1: currentN1,
@@ -4160,16 +4208,18 @@
4160
4208
  };
4161
4209
  }
4162
4210
  }
4211
+ currentE1 = currentE1.minus(1);
4163
4212
  }
4164
4213
  }
4165
4214
  function findN2E2R2(x, p) {
4166
- var maxN2 = constants_1.TEN.pow(p);
4167
- var minN2 = constants_1.TEN.pow(p - 1);
4215
+ var maxN2 = decimal_js_1.default.pow(10, p);
4216
+ var minN2 = decimal_js_1.default.pow(10, p - 1);
4168
4217
  var minE2 = x.div(maxN2).log(10).plus(p).minus(1).floor();
4169
- for (var currentE2 = minE2; ; currentE2 = currentE2.plus(1)) {
4170
- var currentN2 = x.div(constants_1.TEN.pow(currentE2.minus(p).plus(1))).ceil();
4218
+ var currentE2 = minE2;
4219
+ while (true) {
4220
+ var currentN2 = x.div(decimal_js_1.default.pow(10, currentE2.minus(p).plus(1))).ceil();
4171
4221
  if (currentN2.lessThan(maxN2) && currentN2.greaterThanOrEqualTo(minN2)) {
4172
- var currentR2 = ToRawPrecisionFn(currentN2, currentE2, p);
4222
+ var currentR2 = currentN2.times(decimal_js_1.default.pow(10, currentE2.minus(p).plus(1)));
4173
4223
  if (currentR2.greaterThanOrEqualTo(x)) {
4174
4224
  return {
4175
4225
  n2: currentN2,
@@ -4178,6 +4228,7 @@
4178
4228
  };
4179
4229
  }
4180
4230
  }
4231
+ currentE2 = currentE2.plus(1);
4181
4232
  }
4182
4233
  }
4183
4234
  function ToRawPrecision2(x, minPrecision, maxPrecision, unsignedRoundingMode) {
@@ -4248,7 +4299,8 @@
4248
4299
  var GetUnsignedRoundingMode_1 = require_GetUnsignedRoundingMode();
4249
4300
  var ToRawFixed_1 = require_ToRawFixed();
4250
4301
  var ToRawPrecision_1 = require_ToRawPrecision();
4251
- function FormatNumericToString2(intlObject, x) {
4302
+ function FormatNumericToString2(intlObject, _x) {
4303
+ var x = _x;
4252
4304
  var sign2;
4253
4305
  if (x.isZero() && x.isNegative()) {
4254
4306
  sign2 = "negative";
@@ -4325,11 +4377,11 @@
4325
4377
  "use strict";
4326
4378
  Object.defineProperty(exports, "__esModule", { value: true });
4327
4379
  exports.ComputeExponent = ComputeExponent2;
4328
- var constants_1 = require_constants();
4380
+ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
4381
+ var decimal_js_1 = tslib_1.__importDefault(require_decimal());
4329
4382
  var ComputeExponentForMagnitude_1 = require_ComputeExponentForMagnitude();
4330
4383
  var FormatNumericToString_1 = require_FormatNumericToString();
4331
- function ComputeExponent2(numberFormat, x, _a) {
4332
- var getInternalSlots2 = _a.getInternalSlots;
4384
+ function ComputeExponent2(internalSlots, x) {
4333
4385
  if (x.isZero()) {
4334
4386
  return [0, 0];
4335
4387
  }
@@ -4337,11 +4389,9 @@
4337
4389
  x = x.negated();
4338
4390
  }
4339
4391
  var magnitude = x.log(10).floor();
4340
- var exponent = (0, ComputeExponentForMagnitude_1.ComputeExponentForMagnitude)(numberFormat, magnitude, {
4341
- getInternalSlots: getInternalSlots2
4342
- });
4343
- x = x.times(constants_1.TEN.pow(-exponent));
4344
- var formatNumberResult = (0, FormatNumericToString_1.FormatNumericToString)(getInternalSlots2(numberFormat), x);
4392
+ var exponent = (0, ComputeExponentForMagnitude_1.ComputeExponentForMagnitude)(internalSlots, magnitude);
4393
+ x = x.times(decimal_js_1.default.pow(10, -exponent));
4394
+ var formatNumberResult = (0, FormatNumericToString_1.FormatNumericToString)(internalSlots, x);
4345
4395
  if (formatNumberResult.roundedNumber.isZero()) {
4346
4396
  return [exponent, magnitude.toNumber()];
4347
4397
  }
@@ -4350,9 +4400,7 @@
4350
4400
  return [exponent, magnitude.toNumber()];
4351
4401
  }
4352
4402
  return [
4353
- (0, ComputeExponentForMagnitude_1.ComputeExponentForMagnitude)(numberFormat, magnitude.plus(1), {
4354
- getInternalSlots: getInternalSlots2
4355
- }),
4403
+ (0, ComputeExponentForMagnitude_1.ComputeExponentForMagnitude)(internalSlots, magnitude.plus(1)),
4356
4404
  magnitude.plus(1).toNumber()
4357
4405
  ];
4358
4406
  }
@@ -5182,7 +5230,6 @@
5182
5230
  exports.default = formatToParts2;
5183
5231
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
5184
5232
  var decimal_js_1 = tslib_1.__importDefault(require_decimal());
5185
- var constants_1 = require_constants();
5186
5233
  var regex_generated_1 = require_regex_generated();
5187
5234
  var digit_mapping_generated_1 = require_digit_mapping_generated();
5188
5235
  var GetUnsignedRoundingMode_1 = require_GetUnsignedRoundingMode();
@@ -5191,6 +5238,7 @@
5191
5238
  var S_DOLLAR_UNICODE_REGEX2 = new RegExp("".concat(regex_generated_1.S_UNICODE_REGEX.source, "$"));
5192
5239
  var CLDR_NUMBER_PATTERN = /[#0](?:[\.,][#0]+)*/g;
5193
5240
  function formatToParts2(numberResult, data2, pl, options) {
5241
+ var _a;
5194
5242
  var sign2 = numberResult.sign, exponent = numberResult.exponent, magnitude = numberResult.magnitude;
5195
5243
  var notation = options.notation, style = options.style, numberingSystem = options.numberingSystem;
5196
5244
  var defaultNumberingSystem = data2.numbers.nu[0];
@@ -5262,7 +5310,7 @@
5262
5310
  exponent,
5263
5311
  numberingSystem,
5264
5312
  // If compact number pattern exists, do not insert group separators.
5265
- !compactNumberPattern && Boolean(options.useGrouping),
5313
+ !compactNumberPattern && ((_a = options.useGrouping) !== null && _a !== void 0 ? _a : true),
5266
5314
  decimalNumberPattern,
5267
5315
  style,
5268
5316
  options.roundingIncrement,
@@ -5301,14 +5349,14 @@
5301
5349
  var unitName = void 0;
5302
5350
  var currencyNameData = data2.currencies[options.currency];
5303
5351
  if (currencyNameData) {
5304
- unitName = selectPlural(pl, numberResult.roundedNumber.times(constants_1.TEN.pow(exponent)).toNumber(), currencyNameData.displayName);
5352
+ unitName = selectPlural(pl, numberResult.roundedNumber.times(decimal_js_1.default.pow(10, exponent)).toNumber(), currencyNameData.displayName);
5305
5353
  } else {
5306
5354
  unitName = options.currency;
5307
5355
  }
5308
5356
  var unitPatternParts = unitPattern.split(/(\{[01]\})/g);
5309
5357
  var result = [];
5310
- for (var _a = 0, unitPatternParts_1 = unitPatternParts; _a < unitPatternParts_1.length; _a++) {
5311
- var part = unitPatternParts_1[_a];
5358
+ for (var _b = 0, unitPatternParts_1 = unitPatternParts; _b < unitPatternParts_1.length; _b++) {
5359
+ var part = unitPatternParts_1[_b];
5312
5360
  switch (part) {
5313
5361
  case "{0}":
5314
5362
  result.push.apply(result, numberParts);
@@ -5333,11 +5381,11 @@
5333
5381
  var unitData = data2.units.simple[unit];
5334
5382
  var unitPattern = void 0;
5335
5383
  if (unitData) {
5336
- unitPattern = selectPlural(pl, numberResult.roundedNumber.times(constants_1.TEN.pow(exponent)).toNumber(), data2.units.simple[unit][unitDisplay]);
5384
+ unitPattern = selectPlural(pl, numberResult.roundedNumber.times(decimal_js_1.default.pow(10, exponent)).toNumber(), data2.units.simple[unit][unitDisplay]);
5337
5385
  } else {
5338
- var _b = unit.split("-per-"), numeratorUnit = _b[0], denominatorUnit = _b[1];
5386
+ var _c = unit.split("-per-"), numeratorUnit = _c[0], denominatorUnit = _c[1];
5339
5387
  unitData = data2.units.simple[numeratorUnit];
5340
- var numeratorUnitPattern = selectPlural(pl, numberResult.roundedNumber.times(constants_1.TEN.pow(exponent)).toNumber(), data2.units.simple[numeratorUnit][unitDisplay]);
5388
+ var numeratorUnitPattern = selectPlural(pl, numberResult.roundedNumber.times(decimal_js_1.default.pow(10, exponent)).toNumber(), data2.units.simple[numeratorUnit][unitDisplay]);
5341
5389
  var perUnitPattern = data2.units.simple[denominatorUnit].perUnit[unitDisplay];
5342
5390
  if (perUnitPattern) {
5343
5391
  unitPattern = perUnitPattern.replace("{0}", numeratorUnitPattern);
@@ -5348,8 +5396,8 @@
5348
5396
  }
5349
5397
  }
5350
5398
  var result = [];
5351
- for (var _c = 0, _d = unitPattern.split(/(\s*\{0\}\s*)/); _c < _d.length; _c++) {
5352
- var part = _d[_c];
5399
+ for (var _d = 0, _e = unitPattern.split(/(\s*\{0\}\s*)/); _d < _e.length; _d++) {
5400
+ var part = _e[_d];
5353
5401
  var interpolateMatch = /^(\s*)\{0\}(\s*)$/.exec(part);
5354
5402
  if (interpolateMatch) {
5355
5403
  if (interpolateMatch[1]) {
@@ -5392,7 +5440,15 @@
5392
5440
  } else {
5393
5441
  integer = n;
5394
5442
  }
5395
- if (useGrouping && (notation !== "compact" || x.greaterThanOrEqualTo(1e4))) {
5443
+ var shouldUseGrouping = false;
5444
+ if (useGrouping === "always") {
5445
+ shouldUseGrouping = true;
5446
+ } else if (useGrouping === "min2") {
5447
+ shouldUseGrouping = x.greaterThanOrEqualTo(1e4);
5448
+ } else if (useGrouping === "auto" || useGrouping) {
5449
+ shouldUseGrouping = notation !== "compact" || x.greaterThanOrEqualTo(1e4);
5450
+ }
5451
+ if (shouldUseGrouping) {
5396
5452
  var groupSepSymbol = style === "currency" && symbols.currencyGroup != null ? symbols.currencyGroup : symbols.group;
5397
5453
  var groups = [];
5398
5454
  var integerNumberPattern = decimalNumberPattern.split(".")[0];
@@ -5498,9 +5554,7 @@
5498
5554
  "use strict";
5499
5555
  Object.defineProperty(exports, "__esModule", { value: true });
5500
5556
  exports.FormatApproximately = FormatApproximately2;
5501
- function FormatApproximately2(numberFormat, result, _a) {
5502
- var getInternalSlots2 = _a.getInternalSlots;
5503
- var internalSlots = getInternalSlots2(numberFormat);
5557
+ function FormatApproximately2(internalSlots, result) {
5504
5558
  var symbols = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem];
5505
5559
  var approximatelySign = symbols.approximatelySign;
5506
5560
  result.push({ type: "approximatelySign", value: approximatelySign });
@@ -5516,18 +5570,17 @@
5516
5570
  Object.defineProperty(exports, "__esModule", { value: true });
5517
5571
  exports.PartitionNumberPattern = PartitionNumberPattern2;
5518
5572
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
5519
- var constants_1 = require_constants();
5573
+ var decimal_js_1 = tslib_1.__importDefault(require_decimal());
5520
5574
  var utils_1 = require_utils();
5521
5575
  var ComputeExponent_1 = require_ComputeExponent();
5522
5576
  var format_to_parts_1 = tslib_1.__importDefault(require_format_to_parts());
5523
5577
  var FormatNumericToString_1 = require_FormatNumericToString();
5524
- function PartitionNumberPattern2(numberFormat, x, _a) {
5525
- var _b;
5526
- var getInternalSlots2 = _a.getInternalSlots;
5527
- var internalSlots = getInternalSlots2(numberFormat);
5578
+ function PartitionNumberPattern2(internalSlots, _x) {
5579
+ var _a;
5580
+ var x = _x;
5581
+ var magnitude = 0;
5528
5582
  var pl = internalSlots.pl, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
5529
5583
  var symbols = dataLocaleData.numbers.symbols[numberingSystem] || dataLocaleData.numbers.symbols[dataLocaleData.numbers.nu[0]];
5530
- var magnitude = 0;
5531
5584
  var exponent = 0;
5532
5585
  var n;
5533
5586
  if (x.isNaN()) {
@@ -5541,10 +5594,9 @@
5541
5594
  x = x.times(100);
5542
5595
  }
5543
5596
  ;
5544
- _b = (0, ComputeExponent_1.ComputeExponent)(numberFormat, x, {
5545
- getInternalSlots: getInternalSlots2
5546
- }), exponent = _b[0], magnitude = _b[1];
5547
- x = x.times(constants_1.TEN.pow(-exponent));
5597
+ _a = (0, ComputeExponent_1.ComputeExponent)(internalSlots, x), exponent = _a[0], // IMPL: We need to record the magnitude of the number
5598
+ magnitude = _a[1];
5599
+ x = x.times(decimal_js_1.default.pow(10, -exponent));
5548
5600
  }
5549
5601
  var formatNumberResult = (0, FormatNumericToString_1.FormatNumericToString)(internalSlots, x);
5550
5602
  n = formatNumberResult.formattedString;
@@ -5588,7 +5640,30 @@
5588
5640
  }
5589
5641
  break;
5590
5642
  }
5591
- return (0, format_to_parts_1.default)({ roundedNumber: x, formattedString: n, exponent, magnitude, sign: sign2 }, internalSlots.dataLocaleData, pl, internalSlots);
5643
+ return (0, format_to_parts_1.default)({
5644
+ roundedNumber: x,
5645
+ formattedString: n,
5646
+ exponent,
5647
+ // IMPL: We're returning this for our implementation of formatToParts
5648
+ magnitude,
5649
+ sign: sign2
5650
+ }, internalSlots.dataLocaleData, pl, internalSlots);
5651
+ }
5652
+ }
5653
+ });
5654
+
5655
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumeric.js
5656
+ var require_FormatNumeric = __commonJS({
5657
+ "node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/NumberFormat/FormatNumeric.js"(exports) {
5658
+ "use strict";
5659
+ Object.defineProperty(exports, "__esModule", { value: true });
5660
+ exports.FormatNumeric = FormatNumeric2;
5661
+ var PartitionNumberPattern_1 = require_PartitionNumberPattern();
5662
+ function FormatNumeric2(internalSlots, x) {
5663
+ var parts = (0, PartitionNumberPattern_1.PartitionNumberPattern)(internalSlots, x);
5664
+ return parts.map(function(p) {
5665
+ return p.value;
5666
+ }).join("");
5592
5667
  }
5593
5668
  }
5594
5669
  });
@@ -5602,29 +5677,32 @@
5602
5677
  var utils_1 = require_utils();
5603
5678
  var CollapseNumberRange_1 = require_CollapseNumberRange();
5604
5679
  var FormatApproximately_1 = require_FormatApproximately();
5680
+ var FormatNumeric_1 = require_FormatNumeric();
5605
5681
  var PartitionNumberPattern_1 = require_PartitionNumberPattern();
5606
5682
  function PartitionNumberRangePattern2(numberFormat, x, y, _a) {
5607
5683
  var getInternalSlots2 = _a.getInternalSlots;
5608
- (0, utils_1.invariant)(!x.isNaN() && !y.isNaN(), "Input must be a number");
5609
- var result = [];
5610
- var xResult = (0, PartitionNumberPattern_1.PartitionNumberPattern)(numberFormat, x, { getInternalSlots: getInternalSlots2 });
5611
- var yResult = (0, PartitionNumberPattern_1.PartitionNumberPattern)(numberFormat, y, { getInternalSlots: getInternalSlots2 });
5612
- if (xResult === yResult) {
5613
- return (0, FormatApproximately_1.FormatApproximately)(numberFormat, xResult, { getInternalSlots: getInternalSlots2 });
5614
- }
5615
- for (var _i = 0, xResult_1 = xResult; _i < xResult_1.length; _i++) {
5616
- var r = xResult_1[_i];
5617
- r.source = "startRange";
5618
- }
5619
- result = result.concat(xResult);
5684
+ (0, utils_1.invariant)(!x.isNaN() && !y.isNaN(), "Input must be a number", RangeError);
5620
5685
  var internalSlots = getInternalSlots2(numberFormat);
5621
- var symbols = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem];
5622
- result.push({ type: "literal", value: symbols.rangeSign, source: "shared" });
5623
- for (var _b = 0, yResult_1 = yResult; _b < yResult_1.length; _b++) {
5624
- var r = yResult_1[_b];
5625
- r.source = "endRange";
5686
+ var xResult = (0, PartitionNumberPattern_1.PartitionNumberPattern)(internalSlots, x);
5687
+ var yResult = (0, PartitionNumberPattern_1.PartitionNumberPattern)(internalSlots, y);
5688
+ if ((0, FormatNumeric_1.FormatNumeric)(internalSlots, x) === (0, FormatNumeric_1.FormatNumeric)(internalSlots, y)) {
5689
+ var appxResult = (0, FormatApproximately_1.FormatApproximately)(internalSlots, xResult);
5690
+ appxResult.forEach(function(el) {
5691
+ el.source = "shared";
5692
+ });
5693
+ return appxResult;
5626
5694
  }
5627
- result = result.concat(yResult);
5695
+ var result = [];
5696
+ xResult.forEach(function(el) {
5697
+ el.source = "startRange";
5698
+ result.push(el);
5699
+ });
5700
+ var rangeSeparator = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem].rangeSign;
5701
+ result.push({ type: "literal", value: rangeSeparator, source: "shared" });
5702
+ yResult.forEach(function(el) {
5703
+ el.source = "endRange";
5704
+ result.push(el);
5705
+ });
5628
5706
  return (0, CollapseNumberRange_1.CollapseNumberRange)(numberFormat, result, { getInternalSlots: getInternalSlots2 });
5629
5707
  }
5630
5708
  }
@@ -5682,7 +5760,7 @@
5682
5760
  var _262_1 = require__();
5683
5761
  var PartitionNumberPattern_1 = require_PartitionNumberPattern();
5684
5762
  function FormatNumericToParts(nf, x, implDetails) {
5685
- var parts = (0, PartitionNumberPattern_1.PartitionNumberPattern)(nf, x, implDetails);
5763
+ var parts = (0, PartitionNumberPattern_1.PartitionNumberPattern)(implDetails.getInternalSlots(nf), x);
5686
5764
  var result = (0, _262_1.ArrayCreate)(0);
5687
5765
  for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
5688
5766
  var part = parts_1[_i];
@@ -10277,7 +10355,8 @@
10277
10355
  mnfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnfd, 0, 100, void 0);
10278
10356
  mxfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxfd, 0, 100, void 0);
10279
10357
  if (mnfd === void 0) {
10280
- mnfd = Math.min(mnfdDefault, mxfd !== null && mxfd !== void 0 ? mxfd : 0);
10358
+ (0, utils_1.invariant)(mxfd !== void 0, "maximumFractionDigits must be defined");
10359
+ mnfd = Math.min(mnfdDefault, mxfd);
10281
10360
  } else if (mxfd === void 0) {
10282
10361
  mxfd = Math.max(mxfdDefault, mnfd);
10283
10362
  } else if (mnfd > mxfd) {
@@ -10311,8 +10390,8 @@
10311
10390
  internalSlots.roundingPriority = "auto";
10312
10391
  }
10313
10392
  if (roundingIncrement !== 1) {
10314
- (0, utils_1.invariant)(internalSlots.roundingType === "fractionDigits", "Invalid roundingType");
10315
- (0, utils_1.invariant)(internalSlots.maximumFractionDigits === internalSlots.minimumFractionDigits, "With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
10393
+ (0, utils_1.invariant)(internalSlots.roundingType === "fractionDigits", "Invalid roundingType", TypeError);
10394
+ (0, utils_1.invariant)(internalSlots.maximumFractionDigits === internalSlots.minimumFractionDigits, "With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.", RangeError);
10316
10395
  }
10317
10396
  }
10318
10397
  }
@@ -10327,30 +10406,21 @@
10327
10406
  var GetOption_1 = require_GetOption();
10328
10407
  var IsWellFormedCurrencyCode_1 = require_IsWellFormedCurrencyCode();
10329
10408
  var IsWellFormedUnitIdentifier_1 = require_IsWellFormedUnitIdentifier();
10330
- function SetNumberFormatUnitOptions2(nf, options, _a) {
10409
+ var utils_1 = require_utils();
10410
+ function SetNumberFormatUnitOptions2(internalSlots, options) {
10331
10411
  if (options === void 0) {
10332
10412
  options = /* @__PURE__ */ Object.create(null);
10333
10413
  }
10334
- var getInternalSlots2 = _a.getInternalSlots;
10335
- var internalSlots = getInternalSlots2(nf);
10336
10414
  var style = (0, GetOption_1.GetOption)(options, "style", "string", ["decimal", "percent", "currency", "unit"], "decimal");
10337
10415
  internalSlots.style = style;
10338
10416
  var currency = (0, GetOption_1.GetOption)(options, "currency", "string", void 0, void 0);
10339
- if (currency !== void 0 && !(0, IsWellFormedCurrencyCode_1.IsWellFormedCurrencyCode)(currency)) {
10340
- throw RangeError("Malformed currency code");
10341
- }
10342
- if (style === "currency" && currency === void 0) {
10343
- throw TypeError("currency cannot be undefined");
10344
- }
10417
+ (0, utils_1.invariant)(currency === void 0 || (0, IsWellFormedCurrencyCode_1.IsWellFormedCurrencyCode)(currency), "Malformed currency code", RangeError);
10418
+ (0, utils_1.invariant)(style !== "currency" || currency !== void 0, "currency cannot be undefined", TypeError);
10345
10419
  var currencyDisplay = (0, GetOption_1.GetOption)(options, "currencyDisplay", "string", ["code", "symbol", "narrowSymbol", "name"], "symbol");
10346
10420
  var currencySign = (0, GetOption_1.GetOption)(options, "currencySign", "string", ["standard", "accounting"], "standard");
10347
10421
  var unit = (0, GetOption_1.GetOption)(options, "unit", "string", void 0, void 0);
10348
- if (unit !== void 0 && !(0, IsWellFormedUnitIdentifier_1.IsWellFormedUnitIdentifier)(unit)) {
10349
- throw RangeError("Invalid unit argument for Intl.NumberFormat()");
10350
- }
10351
- if (style === "unit" && unit === void 0) {
10352
- throw TypeError("unit cannot be undefined");
10353
- }
10422
+ (0, utils_1.invariant)(unit === void 0 || (0, IsWellFormedUnitIdentifier_1.IsWellFormedUnitIdentifier)(unit), "Invalid unit argument for Intl.NumberFormat()", RangeError);
10423
+ (0, utils_1.invariant)(style !== "unit" || unit !== void 0, "unit cannot be undefined", TypeError);
10354
10424
  var unitDisplay = (0, GetOption_1.GetOption)(options, "unitDisplay", "string", ["short", "narrow", "long"], "short");
10355
10425
  if (style === "currency") {
10356
10426
  internalSlots.currency = currency.toUpperCase();
@@ -10408,7 +10478,7 @@
10408
10478
  internalSlots.dataLocale = r.dataLocale;
10409
10479
  internalSlots.numberingSystem = r.nu;
10410
10480
  internalSlots.dataLocaleData = dataLocaleData;
10411
- (0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots: getInternalSlots2 });
10481
+ (0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(internalSlots, options);
10412
10482
  var style = internalSlots.style;
10413
10483
  var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
10414
10484
  internalSlots.notation = notation;
@@ -10582,12 +10652,47 @@
10582
10652
  }
10583
10653
  });
10584
10654
 
10655
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/ToIntlMathematicalValue.js
10656
+ var require_ToIntlMathematicalValue = __commonJS({
10657
+ "node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/ToIntlMathematicalValue.js"(exports) {
10658
+ "use strict";
10659
+ Object.defineProperty(exports, "__esModule", { value: true });
10660
+ exports.ToIntlMathematicalValue = ToIntlMathematicalValue2;
10661
+ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
10662
+ var decimal_js_1 = tslib_1.__importDefault(require_decimal());
10663
+ var _262_1 = require__();
10664
+ function ToIntlMathematicalValue2(input) {
10665
+ var primValue = (0, _262_1.ToPrimitive)(input, "number");
10666
+ if (typeof primValue === "bigint") {
10667
+ return new decimal_js_1.default(primValue);
10668
+ }
10669
+ if (primValue === void 0) {
10670
+ return new decimal_js_1.default(NaN);
10671
+ }
10672
+ if (primValue === true) {
10673
+ return new decimal_js_1.default(1);
10674
+ }
10675
+ if (primValue === false) {
10676
+ return new decimal_js_1.default(0);
10677
+ }
10678
+ if (primValue === null) {
10679
+ return new decimal_js_1.default(0);
10680
+ }
10681
+ try {
10682
+ return new decimal_js_1.default(primValue);
10683
+ } catch (e) {
10684
+ return new decimal_js_1.default(NaN);
10685
+ }
10686
+ }
10687
+ }
10688
+ });
10689
+
10585
10690
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/index.js
10586
10691
  var require_ecma402_abstract = __commonJS({
10587
10692
  "node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/index.js"(exports) {
10588
10693
  "use strict";
10589
10694
  Object.defineProperty(exports, "__esModule", { value: true });
10590
- exports.ZERO = exports.invariant = exports.createMemoizedPluralRules = exports.createMemoizedNumberFormat = exports.createMemoizedLocale = exports.createMemoizedListFormat = exports.createMemoizedDateTimeFormat = exports.isMissingLocaleDataError = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports.defineProperty = exports.createDataProperty = exports._formatToParts = void 0;
10695
+ exports.ToIntlMathematicalValue = exports.ZERO = exports.invariant = exports.createMemoizedPluralRules = exports.createMemoizedNumberFormat = exports.createMemoizedLocale = exports.createMemoizedListFormat = exports.createMemoizedDateTimeFormat = exports.isMissingLocaleDataError = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports.defineProperty = exports.createDataProperty = exports._formatToParts = void 0;
10591
10696
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
10592
10697
  tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports);
10593
10698
  tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports);
@@ -10610,6 +10715,7 @@
10610
10715
  return tslib_1.__importDefault(format_to_parts_1).default;
10611
10716
  } });
10612
10717
  tslib_1.__exportStar(require_FormatApproximately(), exports);
10718
+ tslib_1.__exportStar(require_FormatNumeric(), exports);
10613
10719
  tslib_1.__exportStar(require_FormatNumericRange(), exports);
10614
10720
  tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports);
10615
10721
  tslib_1.__exportStar(require_FormatNumericToParts(), exports);
@@ -10680,6 +10786,10 @@
10680
10786
  Object.defineProperty(exports, "ZERO", { enumerable: true, get: function() {
10681
10787
  return constants_1.ZERO;
10682
10788
  } });
10789
+ var ToIntlMathematicalValue_1 = require_ToIntlMathematicalValue();
10790
+ Object.defineProperty(exports, "ToIntlMathematicalValue", { enumerable: true, get: function() {
10791
+ return ToIntlMathematicalValue_1.ToIntlMathematicalValue;
10792
+ } });
10683
10793
  }
10684
10794
  });
10685
10795
 
@@ -22783,122 +22893,6 @@
22783
22893
  var ZERO = new decimal_default(0);
22784
22894
  var NEGATIVE_ZERO = new decimal_default(-0);
22785
22895
 
22786
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
22787
- function ToString(o) {
22788
- if (typeof o === "symbol") {
22789
- throw TypeError("Cannot convert a Symbol value to a string");
22790
- }
22791
- return String(o);
22792
- }
22793
- function ToObject(arg) {
22794
- if (arg == null) {
22795
- throw new TypeError("undefined/null cannot be converted to object");
22796
- }
22797
- return Object(arg);
22798
- }
22799
- function SameValue(x, y) {
22800
- if (Object.is) {
22801
- return Object.is(x, y);
22802
- }
22803
- if (x === y) {
22804
- return x !== 0 || 1 / x === 1 / y;
22805
- }
22806
- return x !== x && y !== y;
22807
- }
22808
- function HasOwnProperty(o, prop) {
22809
- return Object.prototype.hasOwnProperty.call(o, prop);
22810
- }
22811
- var MINUTES_PER_HOUR = 60;
22812
- var SECONDS_PER_MINUTE = 60;
22813
- var MS_PER_SECOND = 1e3;
22814
- var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
22815
- var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
22816
-
22817
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CoerceOptionsToObject.js
22818
- function CoerceOptionsToObject(options) {
22819
- if (typeof options === "undefined") {
22820
- return /* @__PURE__ */ Object.create(null);
22821
- }
22822
- return ToObject(options);
22823
- }
22824
-
22825
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
22826
- function GetOption(opts, prop, type, values, fallback) {
22827
- if (typeof opts !== "object") {
22828
- throw new TypeError("Options must be an object");
22829
- }
22830
- var value = opts[prop];
22831
- if (value !== void 0) {
22832
- if (type !== "boolean" && type !== "string") {
22833
- throw new TypeError("invalid type");
22834
- }
22835
- if (type === "boolean") {
22836
- value = Boolean(value);
22837
- }
22838
- if (type === "string") {
22839
- value = ToString(value);
22840
- }
22841
- if (values !== void 0 && !values.filter(function(val) {
22842
- return val == value;
22843
- }).length) {
22844
- throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
22845
- }
22846
- return value;
22847
- }
22848
- return fallback;
22849
- }
22850
-
22851
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
22852
- var SANCTIONED_UNITS = [
22853
- "angle-degree",
22854
- "area-acre",
22855
- "area-hectare",
22856
- "concentr-percent",
22857
- "digital-bit",
22858
- "digital-byte",
22859
- "digital-gigabit",
22860
- "digital-gigabyte",
22861
- "digital-kilobit",
22862
- "digital-kilobyte",
22863
- "digital-megabit",
22864
- "digital-megabyte",
22865
- "digital-petabyte",
22866
- "digital-terabit",
22867
- "digital-terabyte",
22868
- "duration-day",
22869
- "duration-hour",
22870
- "duration-millisecond",
22871
- "duration-minute",
22872
- "duration-month",
22873
- "duration-second",
22874
- "duration-week",
22875
- "duration-year",
22876
- "length-centimeter",
22877
- "length-foot",
22878
- "length-inch",
22879
- "length-kilometer",
22880
- "length-meter",
22881
- "length-mile-scandinavian",
22882
- "length-mile",
22883
- "length-millimeter",
22884
- "length-yard",
22885
- "mass-gram",
22886
- "mass-kilogram",
22887
- "mass-ounce",
22888
- "mass-pound",
22889
- "mass-stone",
22890
- "temperature-celsius",
22891
- "temperature-fahrenheit",
22892
- "volume-fluid-ounce",
22893
- "volume-gallon",
22894
- "volume-liter",
22895
- "volume-milliliter"
22896
- ];
22897
- function removeUnitNamespace(unit) {
22898
- return unit.slice(unit.indexOf("-") + 1);
22899
- }
22900
- var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
22901
-
22902
22896
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
22903
22897
  init_tslib_es6();
22904
22898
 
@@ -23043,6 +23037,122 @@
23043
23037
  strategy: strategies.variadic
23044
23038
  });
23045
23039
 
23040
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
23041
+ function ToString(o) {
23042
+ if (typeof o === "symbol") {
23043
+ throw TypeError("Cannot convert a Symbol value to a string");
23044
+ }
23045
+ return String(o);
23046
+ }
23047
+ function ToObject(arg) {
23048
+ if (arg == null) {
23049
+ throw new TypeError("undefined/null cannot be converted to object");
23050
+ }
23051
+ return Object(arg);
23052
+ }
23053
+ function SameValue(x, y) {
23054
+ if (Object.is) {
23055
+ return Object.is(x, y);
23056
+ }
23057
+ if (x === y) {
23058
+ return x !== 0 || 1 / x === 1 / y;
23059
+ }
23060
+ return x !== x && y !== y;
23061
+ }
23062
+ function HasOwnProperty(o, prop) {
23063
+ return Object.prototype.hasOwnProperty.call(o, prop);
23064
+ }
23065
+ var MINUTES_PER_HOUR = 60;
23066
+ var SECONDS_PER_MINUTE = 60;
23067
+ var MS_PER_SECOND = 1e3;
23068
+ var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
23069
+ var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
23070
+
23071
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CoerceOptionsToObject.js
23072
+ function CoerceOptionsToObject(options) {
23073
+ if (typeof options === "undefined") {
23074
+ return /* @__PURE__ */ Object.create(null);
23075
+ }
23076
+ return ToObject(options);
23077
+ }
23078
+
23079
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
23080
+ function GetOption(opts, prop, type, values, fallback) {
23081
+ if (typeof opts !== "object") {
23082
+ throw new TypeError("Options must be an object");
23083
+ }
23084
+ var value = opts[prop];
23085
+ if (value !== void 0) {
23086
+ if (type !== "boolean" && type !== "string") {
23087
+ throw new TypeError("invalid type");
23088
+ }
23089
+ if (type === "boolean") {
23090
+ value = Boolean(value);
23091
+ }
23092
+ if (type === "string") {
23093
+ value = ToString(value);
23094
+ }
23095
+ if (values !== void 0 && !values.filter(function(val) {
23096
+ return val == value;
23097
+ }).length) {
23098
+ throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
23099
+ }
23100
+ return value;
23101
+ }
23102
+ return fallback;
23103
+ }
23104
+
23105
+ // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
23106
+ var SANCTIONED_UNITS = [
23107
+ "angle-degree",
23108
+ "area-acre",
23109
+ "area-hectare",
23110
+ "concentr-percent",
23111
+ "digital-bit",
23112
+ "digital-byte",
23113
+ "digital-gigabit",
23114
+ "digital-gigabyte",
23115
+ "digital-kilobit",
23116
+ "digital-kilobyte",
23117
+ "digital-megabit",
23118
+ "digital-megabyte",
23119
+ "digital-petabyte",
23120
+ "digital-terabit",
23121
+ "digital-terabyte",
23122
+ "duration-day",
23123
+ "duration-hour",
23124
+ "duration-millisecond",
23125
+ "duration-minute",
23126
+ "duration-month",
23127
+ "duration-second",
23128
+ "duration-week",
23129
+ "duration-year",
23130
+ "length-centimeter",
23131
+ "length-foot",
23132
+ "length-inch",
23133
+ "length-kilometer",
23134
+ "length-meter",
23135
+ "length-mile-scandinavian",
23136
+ "length-mile",
23137
+ "length-millimeter",
23138
+ "length-yard",
23139
+ "mass-gram",
23140
+ "mass-kilogram",
23141
+ "mass-ounce",
23142
+ "mass-pound",
23143
+ "mass-stone",
23144
+ "temperature-celsius",
23145
+ "temperature-fahrenheit",
23146
+ "volume-fluid-ounce",
23147
+ "volume-gallon",
23148
+ "volume-liter",
23149
+ "volume-milliliter"
23150
+ ];
23151
+ function removeUnitNamespace(unit) {
23152
+ return unit.slice(unit.indexOf("-") + 1);
23153
+ }
23154
+ var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
23155
+
23046
23156
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ComputeExponentForMagnitude.js
23047
23157
  decimal_default.set({
23048
23158
  toExpPos: 100
@@ -23053,11 +23163,6 @@
23053
23163
  toExpPos: 100
23054
23164
  });
23055
23165
 
23056
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawPrecision.js
23057
- decimal_default.set({
23058
- toExpPos: 100
23059
- });
23060
-
23061
23166
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
23062
23167
  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]/;
23063
23168