@formatjs/intl-locale 4.2.8 → 4.2.10

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 +4 -4
  2. package/polyfill.iife.js +547 -451
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-locale",
3
- "version": "4.2.8",
3
+ "version": "4.2.10",
4
4
  "description": "Intl.Locale polyfill",
5
5
  "keywords": [
6
6
  "intl",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "tslib": "2",
28
- "@formatjs/ecma402-abstract": "2.3.1",
29
- "@formatjs/intl-getcanonicallocales": "2.5.4",
30
- "@formatjs/intl-enumerator": "1.8.7"
28
+ "@formatjs/ecma402-abstract": "2.3.3",
29
+ "@formatjs/intl-enumerator": "1.8.9",
30
+ "@formatjs/intl-getcanonicallocales": "2.5.4"
31
31
  }
32
32
  }
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();
@@ -5302,7 +5349,7 @@
5302
5349
  var unitName = void 0;
5303
5350
  var currencyNameData = data2.currencies[options.currency];
5304
5351
  if (currencyNameData) {
5305
- 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);
5306
5353
  } else {
5307
5354
  unitName = options.currency;
5308
5355
  }
@@ -5334,11 +5381,11 @@
5334
5381
  var unitData = data2.units.simple[unit];
5335
5382
  var unitPattern = void 0;
5336
5383
  if (unitData) {
5337
- 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]);
5338
5385
  } else {
5339
5386
  var _c = unit.split("-per-"), numeratorUnit = _c[0], denominatorUnit = _c[1];
5340
5387
  unitData = data2.units.simple[numeratorUnit];
5341
- 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]);
5342
5389
  var perUnitPattern = data2.units.simple[denominatorUnit].perUnit[unitDisplay];
5343
5390
  if (perUnitPattern) {
5344
5391
  unitPattern = perUnitPattern.replace("{0}", numeratorUnitPattern);
@@ -5507,9 +5554,7 @@
5507
5554
  "use strict";
5508
5555
  Object.defineProperty(exports, "__esModule", { value: true });
5509
5556
  exports.FormatApproximately = FormatApproximately2;
5510
- function FormatApproximately2(numberFormat, result, _a) {
5511
- var getInternalSlots2 = _a.getInternalSlots;
5512
- var internalSlots = getInternalSlots2(numberFormat);
5557
+ function FormatApproximately2(internalSlots, result) {
5513
5558
  var symbols = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem];
5514
5559
  var approximatelySign = symbols.approximatelySign;
5515
5560
  result.push({ type: "approximatelySign", value: approximatelySign });
@@ -5525,18 +5570,17 @@
5525
5570
  Object.defineProperty(exports, "__esModule", { value: true });
5526
5571
  exports.PartitionNumberPattern = PartitionNumberPattern2;
5527
5572
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
5528
- var constants_1 = require_constants();
5573
+ var decimal_js_1 = tslib_1.__importDefault(require_decimal());
5529
5574
  var utils_1 = require_utils();
5530
5575
  var ComputeExponent_1 = require_ComputeExponent();
5531
5576
  var format_to_parts_1 = tslib_1.__importDefault(require_format_to_parts());
5532
5577
  var FormatNumericToString_1 = require_FormatNumericToString();
5533
- function PartitionNumberPattern2(numberFormat, x, _a) {
5534
- var _b;
5535
- var getInternalSlots2 = _a.getInternalSlots;
5536
- var internalSlots = getInternalSlots2(numberFormat);
5578
+ function PartitionNumberPattern2(internalSlots, _x) {
5579
+ var _a;
5580
+ var x = _x;
5581
+ var magnitude = 0;
5537
5582
  var pl = internalSlots.pl, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
5538
5583
  var symbols = dataLocaleData.numbers.symbols[numberingSystem] || dataLocaleData.numbers.symbols[dataLocaleData.numbers.nu[0]];
5539
- var magnitude = 0;
5540
5584
  var exponent = 0;
5541
5585
  var n;
5542
5586
  if (x.isNaN()) {
@@ -5550,10 +5594,9 @@
5550
5594
  x = x.times(100);
5551
5595
  }
5552
5596
  ;
5553
- _b = (0, ComputeExponent_1.ComputeExponent)(numberFormat, x, {
5554
- getInternalSlots: getInternalSlots2
5555
- }), exponent = _b[0], magnitude = _b[1];
5556
- 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));
5557
5600
  }
5558
5601
  var formatNumberResult = (0, FormatNumericToString_1.FormatNumericToString)(internalSlots, x);
5559
5602
  n = formatNumberResult.formattedString;
@@ -5597,7 +5640,30 @@
5597
5640
  }
5598
5641
  break;
5599
5642
  }
5600
- 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("");
5601
5667
  }
5602
5668
  }
5603
5669
  });
@@ -5611,29 +5677,32 @@
5611
5677
  var utils_1 = require_utils();
5612
5678
  var CollapseNumberRange_1 = require_CollapseNumberRange();
5613
5679
  var FormatApproximately_1 = require_FormatApproximately();
5680
+ var FormatNumeric_1 = require_FormatNumeric();
5614
5681
  var PartitionNumberPattern_1 = require_PartitionNumberPattern();
5615
5682
  function PartitionNumberRangePattern2(numberFormat, x, y, _a) {
5616
5683
  var getInternalSlots2 = _a.getInternalSlots;
5617
- (0, utils_1.invariant)(!x.isNaN() && !y.isNaN(), "Input must be a number");
5618
- var result = [];
5619
- var xResult = (0, PartitionNumberPattern_1.PartitionNumberPattern)(numberFormat, x, { getInternalSlots: getInternalSlots2 });
5620
- var yResult = (0, PartitionNumberPattern_1.PartitionNumberPattern)(numberFormat, y, { getInternalSlots: getInternalSlots2 });
5621
- if (xResult === yResult) {
5622
- return (0, FormatApproximately_1.FormatApproximately)(numberFormat, xResult, { getInternalSlots: getInternalSlots2 });
5623
- }
5624
- for (var _i = 0, xResult_1 = xResult; _i < xResult_1.length; _i++) {
5625
- var r = xResult_1[_i];
5626
- r.source = "startRange";
5627
- }
5628
- result = result.concat(xResult);
5684
+ (0, utils_1.invariant)(!x.isNaN() && !y.isNaN(), "Input must be a number", RangeError);
5629
5685
  var internalSlots = getInternalSlots2(numberFormat);
5630
- var symbols = internalSlots.dataLocaleData.numbers.symbols[internalSlots.numberingSystem];
5631
- result.push({ type: "literal", value: symbols.rangeSign, source: "shared" });
5632
- for (var _b = 0, yResult_1 = yResult; _b < yResult_1.length; _b++) {
5633
- var r = yResult_1[_b];
5634
- 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;
5635
5694
  }
5636
- 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
+ });
5637
5706
  return (0, CollapseNumberRange_1.CollapseNumberRange)(numberFormat, result, { getInternalSlots: getInternalSlots2 });
5638
5707
  }
5639
5708
  }
@@ -5691,7 +5760,7 @@
5691
5760
  var _262_1 = require__();
5692
5761
  var PartitionNumberPattern_1 = require_PartitionNumberPattern();
5693
5762
  function FormatNumericToParts(nf, x, implDetails) {
5694
- var parts = (0, PartitionNumberPattern_1.PartitionNumberPattern)(nf, x, implDetails);
5763
+ var parts = (0, PartitionNumberPattern_1.PartitionNumberPattern)(implDetails.getInternalSlots(nf), x);
5695
5764
  var result = (0, _262_1.ArrayCreate)(0);
5696
5765
  for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
5697
5766
  var part = parts_1[_i];
@@ -9753,7 +9822,7 @@
9753
9822
  }).reduce(function(all, list) {
9754
9823
  return tslib_1.__spreadArray(tslib_1.__spreadArray([], all, true), list, true);
9755
9824
  }, []);
9756
- matches && (matches = !(expandedMatchedRegions.indexOf(locale.region || "") > 1 != shouldInclude));
9825
+ matches && (matches = !(expandedMatchedRegions.indexOf(locale.region || "") > -1 != shouldInclude));
9757
9826
  } else {
9758
9827
  matches && (matches = locale.region ? region === "*" || region === locale.region : true);
9759
9828
  }
@@ -9814,7 +9883,7 @@
9814
9883
  region: ""
9815
9884
  }, {
9816
9885
  language: supportedLocale.language,
9817
- script: desiredLSR.script,
9886
+ script: supportedLSR.script,
9818
9887
  region: ""
9819
9888
  }, data2);
9820
9889
  }
@@ -10286,7 +10355,8 @@
10286
10355
  mnfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnfd, 0, 100, void 0);
10287
10356
  mxfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxfd, 0, 100, void 0);
10288
10357
  if (mnfd === void 0) {
10289
- 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);
10290
10360
  } else if (mxfd === void 0) {
10291
10361
  mxfd = Math.max(mxfdDefault, mnfd);
10292
10362
  } else if (mnfd > mxfd) {
@@ -10320,8 +10390,8 @@
10320
10390
  internalSlots.roundingPriority = "auto";
10321
10391
  }
10322
10392
  if (roundingIncrement !== 1) {
10323
- (0, utils_1.invariant)(internalSlots.roundingType === "fractionDigits", "Invalid roundingType");
10324
- (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);
10325
10395
  }
10326
10396
  }
10327
10397
  }
@@ -10336,30 +10406,21 @@
10336
10406
  var GetOption_1 = require_GetOption();
10337
10407
  var IsWellFormedCurrencyCode_1 = require_IsWellFormedCurrencyCode();
10338
10408
  var IsWellFormedUnitIdentifier_1 = require_IsWellFormedUnitIdentifier();
10339
- function SetNumberFormatUnitOptions2(nf, options, _a) {
10409
+ var utils_1 = require_utils();
10410
+ function SetNumberFormatUnitOptions2(internalSlots, options) {
10340
10411
  if (options === void 0) {
10341
10412
  options = /* @__PURE__ */ Object.create(null);
10342
10413
  }
10343
- var getInternalSlots2 = _a.getInternalSlots;
10344
- var internalSlots = getInternalSlots2(nf);
10345
10414
  var style = (0, GetOption_1.GetOption)(options, "style", "string", ["decimal", "percent", "currency", "unit"], "decimal");
10346
10415
  internalSlots.style = style;
10347
10416
  var currency = (0, GetOption_1.GetOption)(options, "currency", "string", void 0, void 0);
10348
- if (currency !== void 0 && !(0, IsWellFormedCurrencyCode_1.IsWellFormedCurrencyCode)(currency)) {
10349
- throw RangeError("Malformed currency code");
10350
- }
10351
- if (style === "currency" && currency === void 0) {
10352
- throw TypeError("currency cannot be undefined");
10353
- }
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);
10354
10419
  var currencyDisplay = (0, GetOption_1.GetOption)(options, "currencyDisplay", "string", ["code", "symbol", "narrowSymbol", "name"], "symbol");
10355
10420
  var currencySign = (0, GetOption_1.GetOption)(options, "currencySign", "string", ["standard", "accounting"], "standard");
10356
10421
  var unit = (0, GetOption_1.GetOption)(options, "unit", "string", void 0, void 0);
10357
- if (unit !== void 0 && !(0, IsWellFormedUnitIdentifier_1.IsWellFormedUnitIdentifier)(unit)) {
10358
- throw RangeError("Invalid unit argument for Intl.NumberFormat()");
10359
- }
10360
- if (style === "unit" && unit === void 0) {
10361
- throw TypeError("unit cannot be undefined");
10362
- }
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);
10363
10424
  var unitDisplay = (0, GetOption_1.GetOption)(options, "unitDisplay", "string", ["short", "narrow", "long"], "short");
10364
10425
  if (style === "currency") {
10365
10426
  internalSlots.currency = currency.toUpperCase();
@@ -10417,7 +10478,7 @@
10417
10478
  internalSlots.dataLocale = r.dataLocale;
10418
10479
  internalSlots.numberingSystem = r.nu;
10419
10480
  internalSlots.dataLocaleData = dataLocaleData;
10420
- (0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots: getInternalSlots2 });
10481
+ (0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(internalSlots, options);
10421
10482
  var style = internalSlots.style;
10422
10483
  var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
10423
10484
  internalSlots.notation = notation;
@@ -10591,12 +10652,47 @@
10591
10652
  }
10592
10653
  });
10593
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
+
10594
10690
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/index.js
10595
10691
  var require_ecma402_abstract = __commonJS({
10596
10692
  "node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/index.js"(exports) {
10597
10693
  "use strict";
10598
10694
  Object.defineProperty(exports, "__esModule", { value: true });
10599
- 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;
10600
10696
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
10601
10697
  tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports);
10602
10698
  tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports);
@@ -10619,6 +10715,7 @@
10619
10715
  return tslib_1.__importDefault(format_to_parts_1).default;
10620
10716
  } });
10621
10717
  tslib_1.__exportStar(require_FormatApproximately(), exports);
10718
+ tslib_1.__exportStar(require_FormatNumeric(), exports);
10622
10719
  tslib_1.__exportStar(require_FormatNumericRange(), exports);
10623
10720
  tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports);
10624
10721
  tslib_1.__exportStar(require_FormatNumericToParts(), exports);
@@ -10689,6 +10786,10 @@
10689
10786
  Object.defineProperty(exports, "ZERO", { enumerable: true, get: function() {
10690
10787
  return constants_1.ZERO;
10691
10788
  } });
10789
+ var ToIntlMathematicalValue_1 = require_ToIntlMathematicalValue();
10790
+ Object.defineProperty(exports, "ToIntlMathematicalValue", { enumerable: true, get: function() {
10791
+ return ToIntlMathematicalValue_1.ToIntlMathematicalValue;
10792
+ } });
10692
10793
  }
10693
10794
  });
10694
10795
 
@@ -22792,122 +22893,6 @@
22792
22893
  var ZERO = new decimal_default(0);
22793
22894
  var NEGATIVE_ZERO = new decimal_default(-0);
22794
22895
 
22795
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
22796
- function ToString(o) {
22797
- if (typeof o === "symbol") {
22798
- throw TypeError("Cannot convert a Symbol value to a string");
22799
- }
22800
- return String(o);
22801
- }
22802
- function ToObject(arg) {
22803
- if (arg == null) {
22804
- throw new TypeError("undefined/null cannot be converted to object");
22805
- }
22806
- return Object(arg);
22807
- }
22808
- function SameValue(x, y) {
22809
- if (Object.is) {
22810
- return Object.is(x, y);
22811
- }
22812
- if (x === y) {
22813
- return x !== 0 || 1 / x === 1 / y;
22814
- }
22815
- return x !== x && y !== y;
22816
- }
22817
- function HasOwnProperty(o, prop) {
22818
- return Object.prototype.hasOwnProperty.call(o, prop);
22819
- }
22820
- var MINUTES_PER_HOUR = 60;
22821
- var SECONDS_PER_MINUTE = 60;
22822
- var MS_PER_SECOND = 1e3;
22823
- var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
22824
- var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
22825
-
22826
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CoerceOptionsToObject.js
22827
- function CoerceOptionsToObject(options) {
22828
- if (typeof options === "undefined") {
22829
- return /* @__PURE__ */ Object.create(null);
22830
- }
22831
- return ToObject(options);
22832
- }
22833
-
22834
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
22835
- function GetOption(opts, prop, type, values, fallback) {
22836
- if (typeof opts !== "object") {
22837
- throw new TypeError("Options must be an object");
22838
- }
22839
- var value = opts[prop];
22840
- if (value !== void 0) {
22841
- if (type !== "boolean" && type !== "string") {
22842
- throw new TypeError("invalid type");
22843
- }
22844
- if (type === "boolean") {
22845
- value = Boolean(value);
22846
- }
22847
- if (type === "string") {
22848
- value = ToString(value);
22849
- }
22850
- if (values !== void 0 && !values.filter(function(val) {
22851
- return val == value;
22852
- }).length) {
22853
- throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
22854
- }
22855
- return value;
22856
- }
22857
- return fallback;
22858
- }
22859
-
22860
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
22861
- var SANCTIONED_UNITS = [
22862
- "angle-degree",
22863
- "area-acre",
22864
- "area-hectare",
22865
- "concentr-percent",
22866
- "digital-bit",
22867
- "digital-byte",
22868
- "digital-gigabit",
22869
- "digital-gigabyte",
22870
- "digital-kilobit",
22871
- "digital-kilobyte",
22872
- "digital-megabit",
22873
- "digital-megabyte",
22874
- "digital-petabyte",
22875
- "digital-terabit",
22876
- "digital-terabyte",
22877
- "duration-day",
22878
- "duration-hour",
22879
- "duration-millisecond",
22880
- "duration-minute",
22881
- "duration-month",
22882
- "duration-second",
22883
- "duration-week",
22884
- "duration-year",
22885
- "length-centimeter",
22886
- "length-foot",
22887
- "length-inch",
22888
- "length-kilometer",
22889
- "length-meter",
22890
- "length-mile-scandinavian",
22891
- "length-mile",
22892
- "length-millimeter",
22893
- "length-yard",
22894
- "mass-gram",
22895
- "mass-kilogram",
22896
- "mass-ounce",
22897
- "mass-pound",
22898
- "mass-stone",
22899
- "temperature-celsius",
22900
- "temperature-fahrenheit",
22901
- "volume-fluid-ounce",
22902
- "volume-gallon",
22903
- "volume-liter",
22904
- "volume-milliliter"
22905
- ];
22906
- function removeUnitNamespace(unit) {
22907
- return unit.slice(unit.indexOf("-") + 1);
22908
- }
22909
- var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
22910
-
22911
22896
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
22912
22897
  init_tslib_es6();
22913
22898
 
@@ -23052,6 +23037,122 @@
23052
23037
  strategy: strategies.variadic
23053
23038
  });
23054
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
+
23055
23156
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ComputeExponentForMagnitude.js
23056
23157
  decimal_default.set({
23057
23158
  toExpPos: 100
@@ -23062,11 +23163,6 @@
23062
23163
  toExpPos: 100
23063
23164
  });
23064
23165
 
23065
- // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawPrecision.js
23066
- decimal_default.set({
23067
- toExpPos: 100
23068
- });
23069
-
23070
23166
  // node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
23071
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]/;
23072
23168