@abgov/jsonforms-components 2.64.7 → 2.64.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.
package/index.esm.js CHANGED
@@ -3147,7 +3147,93 @@ $$x({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
3147
3147
  map: map
3148
3148
  });
3149
3149
 
3150
+ var classof$5 = classofRaw$2;
3151
+
3152
+ // `IsArray` abstract operation
3153
+ // https://tc39.es/ecma262/#sec-isarray
3154
+ // eslint-disable-next-line es/no-array-isarray -- safe
3155
+ var isArray$5 = Array.isArray || function isArray(argument) {
3156
+ return classof$5(argument) === 'Array';
3157
+ };
3158
+
3159
+ var DESCRIPTORS$a = descriptors;
3160
+ var isArray$4 = isArray$5;
3161
+
3162
+ var $TypeError$9 = TypeError;
3163
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3164
+ var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
3165
+
3166
+ // Safari < 13 does not throw an error in this case
3167
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$a && !function () {
3168
+ // makes no sense without proper strict mode support
3169
+ if (this !== undefined) return true;
3170
+ try {
3171
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
3172
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
3173
+ } catch (error) {
3174
+ return error instanceof TypeError;
3175
+ }
3176
+ }();
3177
+
3178
+ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
3179
+ if (isArray$4(O) && !getOwnPropertyDescriptor$3(O, 'length').writable) {
3180
+ throw new $TypeError$9('Cannot set read only .length');
3181
+ } return O.length = length;
3182
+ } : function (O, length) {
3183
+ return O.length = length;
3184
+ };
3185
+
3186
+ var $TypeError$8 = TypeError;
3187
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
3188
+
3189
+ var doesNotExceedSafeInteger$3 = function (it) {
3190
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$8('Maximum allowed index exceeded');
3191
+ return it;
3192
+ };
3193
+
3150
3194
  var $$w = _export;
3195
+ var toObject$6 = toObject$c;
3196
+ var lengthOfArrayLike$8 = lengthOfArrayLike$c;
3197
+ var setArrayLength$1 = arraySetLength;
3198
+ var doesNotExceedSafeInteger$2 = doesNotExceedSafeInteger$3;
3199
+ var fails$c = fails$y;
3200
+
3201
+ var INCORRECT_TO_LENGTH = fails$c(function () {
3202
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
3203
+ });
3204
+
3205
+ // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
3206
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
3207
+ var properErrorOnNonWritableLength$1 = function () {
3208
+ try {
3209
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
3210
+ Object.defineProperty([], 'length', { writable: false }).push();
3211
+ } catch (error) {
3212
+ return error instanceof TypeError;
3213
+ }
3214
+ };
3215
+
3216
+ var FORCED$4 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength$1();
3217
+
3218
+ // `Array.prototype.push` method
3219
+ // https://tc39.es/ecma262/#sec-array.prototype.push
3220
+ $$w({ target: 'Array', proto: true, arity: 1, forced: FORCED$4 }, {
3221
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3222
+ push: function push(item) {
3223
+ var O = toObject$6(this);
3224
+ var len = lengthOfArrayLike$8(O);
3225
+ var argCount = arguments.length;
3226
+ doesNotExceedSafeInteger$2(len + argCount);
3227
+ for (var i = 0; i < argCount; i++) {
3228
+ O[len] = arguments[i];
3229
+ len++;
3230
+ }
3231
+ setArrayLength$1(O, len);
3232
+ return len;
3233
+ }
3234
+ });
3235
+
3236
+ var $$v = _export;
3151
3237
  var iterate$7 = iterate$a;
3152
3238
  var aCallable$b = aCallable$k;
3153
3239
  var anObject$b = anObject$t;
@@ -3155,7 +3241,7 @@ var getIteratorDirect$5 = getIteratorDirect$a;
3155
3241
 
3156
3242
  // `Iterator.prototype.every` method
3157
3243
  // https://github.com/tc39/proposal-iterator-helpers
3158
- $$w({ target: 'Iterator', proto: true, real: true }, {
3244
+ $$v({ target: 'Iterator', proto: true, real: true }, {
3159
3245
  every: function every(predicate) {
3160
3246
  anObject$b(this);
3161
3247
  aCallable$b(predicate);
@@ -3167,6 +3253,26 @@ $$w({ target: 'Iterator', proto: true, real: true }, {
3167
3253
  }
3168
3254
  });
3169
3255
 
3256
+ var $$u = _export;
3257
+ var iterate$6 = iterate$a;
3258
+ var aCallable$a = aCallable$k;
3259
+ var anObject$a = anObject$t;
3260
+ var getIteratorDirect$4 = getIteratorDirect$a;
3261
+
3262
+ // `Iterator.prototype.some` method
3263
+ // https://github.com/tc39/proposal-iterator-helpers
3264
+ $$u({ target: 'Iterator', proto: true, real: true }, {
3265
+ some: function some(predicate) {
3266
+ anObject$a(this);
3267
+ aCallable$a(predicate);
3268
+ var record = getIteratorDirect$4(this);
3269
+ var counter = 0;
3270
+ return iterate$6(record, function (value, stop) {
3271
+ if (predicate(value, counter++)) return stop();
3272
+ }, { IS_RECORD: true, INTERRUPTED: true }).stopped;
3273
+ }
3274
+ });
3275
+
3170
3276
  var uncurryThis$k = functionUncurryThis;
3171
3277
 
3172
3278
  // eslint-disable-next-line es/no-set -- safe
@@ -3216,14 +3322,14 @@ var setIterate = function (set, fn, interruptible) {
3216
3322
  };
3217
3323
 
3218
3324
  var SetHelpers$4 = setHelpers;
3219
- var iterate$6 = setIterate;
3325
+ var iterate$5 = setIterate;
3220
3326
 
3221
3327
  var Set$2 = SetHelpers$4.Set;
3222
3328
  var add$3 = SetHelpers$4.add;
3223
3329
 
3224
3330
  var setClone = function (set) {
3225
3331
  var result = new Set$2();
3226
- iterate$6(set, function (it) {
3332
+ iterate$5(set, function (it) {
3227
3333
  add$3(result, it);
3228
3334
  });
3229
3335
  return result;
@@ -3236,27 +3342,27 @@ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function
3236
3342
  return set.size;
3237
3343
  };
3238
3344
 
3239
- var aCallable$a = aCallable$k;
3240
- var anObject$a = anObject$t;
3345
+ var aCallable$9 = aCallable$k;
3346
+ var anObject$9 = anObject$t;
3241
3347
  var call$d = functionCall;
3242
3348
  var toIntegerOrInfinity$2 = toIntegerOrInfinity$9;
3243
- var getIteratorDirect$4 = getIteratorDirect$a;
3349
+ var getIteratorDirect$3 = getIteratorDirect$a;
3244
3350
 
3245
3351
  var INVALID_SIZE = 'Invalid size';
3246
3352
  var $RangeError$2 = RangeError;
3247
- var $TypeError$9 = TypeError;
3353
+ var $TypeError$7 = TypeError;
3248
3354
  var max = Math.max;
3249
3355
 
3250
3356
  var SetRecord = function (set, intSize) {
3251
3357
  this.set = set;
3252
3358
  this.size = max(intSize, 0);
3253
- this.has = aCallable$a(set.has);
3254
- this.keys = aCallable$a(set.keys);
3359
+ this.has = aCallable$9(set.has);
3360
+ this.keys = aCallable$9(set.keys);
3255
3361
  };
3256
3362
 
3257
3363
  SetRecord.prototype = {
3258
3364
  getIterator: function () {
3259
- return getIteratorDirect$4(anObject$a(call$d(this.keys, this.set)));
3365
+ return getIteratorDirect$3(anObject$9(call$d(this.keys, this.set)));
3260
3366
  },
3261
3367
  includes: function (it) {
3262
3368
  return call$d(this.has, this.set, it);
@@ -3266,11 +3372,11 @@ SetRecord.prototype = {
3266
3372
  // `GetSetRecord` abstract operation
3267
3373
  // https://tc39.es/proposal-set-methods/#sec-getsetrecord
3268
3374
  var getSetRecord$7 = function (obj) {
3269
- anObject$a(obj);
3375
+ anObject$9(obj);
3270
3376
  var numSize = +obj.size;
3271
3377
  // NOTE: If size is undefined, then numSize will be NaN
3272
3378
  // eslint-disable-next-line no-self-compare -- NaN check
3273
- if (numSize !== numSize) throw new $TypeError$9(INVALID_SIZE);
3379
+ if (numSize !== numSize) throw new $TypeError$7(INVALID_SIZE);
3274
3380
  var intSize = toIntegerOrInfinity$2(numSize);
3275
3381
  if (intSize < 0) throw new $RangeError$2(INVALID_SIZE);
3276
3382
  return new SetRecord(obj, intSize);
@@ -3337,13 +3443,13 @@ var setMethodAcceptSetLike$7 = function (name) {
3337
3443
  }
3338
3444
  };
3339
3445
 
3340
- var $$v = _export;
3446
+ var $$t = _export;
3341
3447
  var difference = setDifference;
3342
3448
  var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
3343
3449
 
3344
3450
  // `Set.prototype.difference` method
3345
3451
  // https://github.com/tc39/proposal-set-methods
3346
- $$v({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
3452
+ $$t({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
3347
3453
  difference: difference
3348
3454
  });
3349
3455
 
@@ -3378,19 +3484,19 @@ var setIntersection = function intersection(other) {
3378
3484
  return result;
3379
3485
  };
3380
3486
 
3381
- var $$u = _export;
3382
- var fails$c = fails$y;
3487
+ var $$s = _export;
3488
+ var fails$b = fails$y;
3383
3489
  var intersection = setIntersection;
3384
3490
  var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
3385
3491
 
3386
- var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$c(function () {
3492
+ var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$b(function () {
3387
3493
  // eslint-disable-next-line es/no-array-from, es/no-set -- testing
3388
3494
  return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
3389
3495
  });
3390
3496
 
3391
3497
  // `Set.prototype.intersection` method
3392
3498
  // https://github.com/tc39/proposal-set-methods
3393
- $$u({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
3499
+ $$s({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
3394
3500
  intersection: intersection
3395
3501
  });
3396
3502
 
@@ -3416,19 +3522,19 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
3416
3522
  }) !== false;
3417
3523
  };
3418
3524
 
3419
- var $$t = _export;
3525
+ var $$r = _export;
3420
3526
  var isDisjointFrom = setIsDisjointFrom;
3421
3527
  var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
3422
3528
 
3423
3529
  // `Set.prototype.isDisjointFrom` method
3424
3530
  // https://github.com/tc39/proposal-set-methods
3425
- $$t({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
3531
+ $$r({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
3426
3532
  isDisjointFrom: isDisjointFrom
3427
3533
  });
3428
3534
 
3429
3535
  var aSet$3 = aSet$7;
3430
3536
  var size$1 = setSize;
3431
- var iterate$5 = setIterate;
3537
+ var iterate$4 = setIterate;
3432
3538
  var getSetRecord$3 = getSetRecord$7;
3433
3539
 
3434
3540
  // `Set.prototype.isSubsetOf` method
@@ -3437,18 +3543,18 @@ var setIsSubsetOf = function isSubsetOf(other) {
3437
3543
  var O = aSet$3(this);
3438
3544
  var otherRec = getSetRecord$3(other);
3439
3545
  if (size$1(O) > otherRec.size) return false;
3440
- return iterate$5(O, function (e) {
3546
+ return iterate$4(O, function (e) {
3441
3547
  if (!otherRec.includes(e)) return false;
3442
3548
  }, true) !== false;
3443
3549
  };
3444
3550
 
3445
- var $$s = _export;
3551
+ var $$q = _export;
3446
3552
  var isSubsetOf = setIsSubsetOf;
3447
3553
  var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
3448
3554
 
3449
3555
  // `Set.prototype.isSubsetOf` method
3450
3556
  // https://github.com/tc39/proposal-set-methods
3451
- $$s({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
3557
+ $$q({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
3452
3558
  isSubsetOf: isSubsetOf
3453
3559
  });
3454
3560
 
@@ -3471,13 +3577,13 @@ var setIsSupersetOf = function isSupersetOf(other) {
3471
3577
  }) !== false;
3472
3578
  };
3473
3579
 
3474
- var $$r = _export;
3580
+ var $$p = _export;
3475
3581
  var isSupersetOf = setIsSupersetOf;
3476
3582
  var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
3477
3583
 
3478
3584
  // `Set.prototype.isSupersetOf` method
3479
3585
  // https://github.com/tc39/proposal-set-methods
3480
- $$r({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
3586
+ $$p({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
3481
3587
  isSupersetOf: isSupersetOf
3482
3588
  });
3483
3589
 
@@ -3504,13 +3610,13 @@ var setSymmetricDifference = function symmetricDifference(other) {
3504
3610
  return result;
3505
3611
  };
3506
3612
 
3507
- var $$q = _export;
3613
+ var $$o = _export;
3508
3614
  var symmetricDifference = setSymmetricDifference;
3509
3615
  var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
3510
3616
 
3511
3617
  // `Set.prototype.symmetricDifference` method
3512
3618
  // https://github.com/tc39/proposal-set-methods
3513
- $$q({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
3619
+ $$o({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
3514
3620
  symmetricDifference: symmetricDifference
3515
3621
  });
3516
3622
 
@@ -3532,13 +3638,13 @@ var setUnion = function union(other) {
3532
3638
  return result;
3533
3639
  };
3534
3640
 
3535
- var $$p = _export;
3641
+ var $$n = _export;
3536
3642
  var union = setUnion;
3537
3643
  var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
3538
3644
 
3539
3645
  // `Set.prototype.union` method
3540
3646
  // https://github.com/tc39/proposal-set-methods
3541
- $$p({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
3647
+ $$n({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
3542
3648
  union: union
3543
3649
  });
3544
3650
 
@@ -3556,6 +3662,43 @@ const getDataAt = (rootData, pathSegs) => {
3556
3662
  }
3557
3663
  return cur;
3558
3664
  };
3665
+ const forEachComposedSubSchema = (schema, callback) => {
3666
+ for (const key of ['allOf', 'anyOf', 'oneOf']) {
3667
+ if (Array.isArray(schema[key])) {
3668
+ schema[key].forEach(callback);
3669
+ }
3670
+ }
3671
+ if (schema.not) {
3672
+ callback(schema.not);
3673
+ }
3674
+ };
3675
+ const collectConditionPropertyPaths = (schema, basePath) => {
3676
+ if (!schema || typeof schema !== 'object') return [];
3677
+ const paths = [];
3678
+ if (isObject$5(schema.properties)) {
3679
+ for (const [key, subSchema] of Object.entries(schema.properties)) {
3680
+ const nextPath = basePath ? `${basePath}.${key}` : key;
3681
+ paths.push(nextPath, ...collectConditionPropertyPaths(subSchema, nextPath));
3682
+ }
3683
+ }
3684
+ forEachComposedSubSchema(schema, subSchema => {
3685
+ paths.push(...collectConditionPropertyPaths(subSchema, basePath));
3686
+ });
3687
+ return paths;
3688
+ };
3689
+ const hasExplicitRequired = schema => {
3690
+ if (!schema || typeof schema !== 'object') return false;
3691
+ if (Array.isArray(schema.required) && schema.required.length > 0) return true;
3692
+ let found = false;
3693
+ forEachComposedSubSchema(schema, subSchema => {
3694
+ found = found || hasExplicitRequired(subSchema);
3695
+ });
3696
+ return found;
3697
+ };
3698
+ const hasAnyConditionPropertyValue = (schema, rootData, basePath) => {
3699
+ const paths = collectConditionPropertyPaths(schema, basePath);
3700
+ return paths.length === 0 || paths.some(path => getDataAt(rootData, splitPath(path)) !== undefined);
3701
+ };
3559
3702
  const compileAndTest = (ajv, schema, data) => {
3560
3703
  var _validate$errors;
3561
3704
  const validate = ajv.compile(schema);
@@ -3606,8 +3749,9 @@ const collectRequired = (ajv, schema, rootSchema, rootData, basePath, strategy)
3606
3749
  if (!schema || typeof schema !== 'object') return requiredPaths;
3607
3750
  const dataHere = basePath ? getDataAt(rootData, splitPath(basePath)) : rootData;
3608
3751
  if (schema.if && (schema.then || schema.else)) {
3609
- const ifResult = compileAndTest(ajv, schema.if, dataHere);
3610
- const branch = ifResult.valid ? schema.then : schema.else;
3752
+ const shouldEvaluateCondition = hasExplicitRequired(schema.if) || hasAnyConditionPropertyValue(schema.if, rootData, basePath);
3753
+ const ifResult = shouldEvaluateCondition ? compileAndTest(ajv, schema.if, dataHere) : null;
3754
+ const branch = ifResult ? ifResult.valid ? schema.then : schema.else : null;
3611
3755
  if (branch) {
3612
3756
  mergeSets(requiredPaths, collectRequired(ajv, branch, rootSchema, rootData, basePath, strategy));
3613
3757
  }
@@ -3629,7 +3773,7 @@ const collectRequired = (ajv, schema, rootSchema, rootData, basePath, strategy)
3629
3773
  mergeSets(requiredPaths, collectRequired(ajv, sub, rootSchema, rootData, basePath, strategy));
3630
3774
  });
3631
3775
  }
3632
- if (Array.isArray(schema.required) && isObject$5(schema.properties)) {
3776
+ if (Array.isArray(schema.required)) {
3633
3777
  for (const key of schema.required) {
3634
3778
  requiredPaths.add(basePath ? `${basePath}.${key}` : key);
3635
3779
  }
@@ -4178,17 +4322,8 @@ var uncurryThis$i = functionUncurryThis;
4178
4322
 
4179
4323
  var arraySlice$4 = uncurryThis$i([].slice);
4180
4324
 
4181
- var classof$5 = classofRaw$2;
4182
-
4183
- // `IsArray` abstract operation
4184
- // https://tc39.es/ecma262/#sec-isarray
4185
- // eslint-disable-next-line es/no-array-isarray -- safe
4186
- var isArray$5 = Array.isArray || function isArray(argument) {
4187
- return classof$5(argument) === 'Array';
4188
- };
4189
-
4190
4325
  var uncurryThis$h = functionUncurryThis;
4191
- var isArray$4 = isArray$5;
4326
+ var isArray$3 = isArray$5;
4192
4327
  var isCallable$9 = isCallable$t;
4193
4328
  var classof$4 = classofRaw$2;
4194
4329
  var toString$d = toString$n;
@@ -4197,7 +4332,7 @@ var push$7 = uncurryThis$h([].push);
4197
4332
 
4198
4333
  var getJsonReplacerFunction = function (replacer) {
4199
4334
  if (isCallable$9(replacer)) return replacer;
4200
- if (!isArray$4(replacer)) return;
4335
+ if (!isArray$3(replacer)) return;
4201
4336
  var rawLength = replacer.length;
4202
4337
  var keys = [];
4203
4338
  for (var i = 0; i < rawLength; i++) {
@@ -4212,17 +4347,17 @@ var getJsonReplacerFunction = function (replacer) {
4212
4347
  root = false;
4213
4348
  return value;
4214
4349
  }
4215
- if (isArray$4(this)) return value;
4350
+ if (isArray$3(this)) return value;
4216
4351
  for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
4217
4352
  };
4218
4353
  };
4219
4354
 
4220
- var $$o = _export;
4355
+ var $$m = _export;
4221
4356
  var getBuiltIn$5 = getBuiltIn$b;
4222
4357
  var apply$1 = functionApply;
4223
4358
  var call$c = functionCall;
4224
4359
  var uncurryThis$g = functionUncurryThis;
4225
- var fails$b = fails$y;
4360
+ var fails$a = fails$y;
4226
4361
  var isCallable$8 = isCallable$t;
4227
4362
  var isSymbol = isSymbol$3;
4228
4363
  var arraySlice$3 = arraySlice$4;
@@ -4241,7 +4376,7 @@ var tester = /[\uD800-\uDFFF]/g;
4241
4376
  var low = /^[\uD800-\uDBFF]$/;
4242
4377
  var hi = /^[\uDC00-\uDFFF]$/;
4243
4378
 
4244
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$b(function () {
4379
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$a(function () {
4245
4380
  var symbol = getBuiltIn$5('Symbol')('stringify detection');
4246
4381
  // MS Edge converts symbol values to JSON as {}
4247
4382
  return $stringify([symbol]) !== '[null]'
@@ -4252,7 +4387,7 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$b(function () {
4252
4387
  });
4253
4388
 
4254
4389
  // https://github.com/tc39/proposal-well-formed-stringify
4255
- var ILL_FORMED_UNICODE = fails$b(function () {
4390
+ var ILL_FORMED_UNICODE = fails$a(function () {
4256
4391
  return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
4257
4392
  || $stringify('\uDEAD') !== '"\\udead"';
4258
4393
  });
@@ -4280,7 +4415,7 @@ var fixIllFormed = function (match, offset, string) {
4280
4415
  if ($stringify) {
4281
4416
  // `JSON.stringify` method
4282
4417
  // https://tc39.es/ecma262/#sec-json.stringify
4283
- $$o({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
4418
+ $$m({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
4284
4419
  // eslint-disable-next-line no-unused-vars -- required for `.length`
4285
4420
  stringify: function stringify(it, replacer, space) {
4286
4421
  var args = arraySlice$3(arguments);
@@ -4392,14 +4527,14 @@ var engineIsNode = classof$3(global$d.process) === 'process';
4392
4527
  var getBuiltIn$4 = getBuiltIn$b;
4393
4528
  var defineBuiltInAccessor$5 = defineBuiltInAccessor$7;
4394
4529
  var wellKnownSymbol$7 = wellKnownSymbol$o;
4395
- var DESCRIPTORS$a = descriptors;
4530
+ var DESCRIPTORS$9 = descriptors;
4396
4531
 
4397
4532
  var SPECIES$3 = wellKnownSymbol$7('species');
4398
4533
 
4399
4534
  var setSpecies$2 = function (CONSTRUCTOR_NAME) {
4400
4535
  var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
4401
4536
 
4402
- if (DESCRIPTORS$a && Constructor && !Constructor[SPECIES$3]) {
4537
+ if (DESCRIPTORS$9 && Constructor && !Constructor[SPECIES$3]) {
4403
4538
  defineBuiltInAccessor$5(Constructor, SPECIES$3, {
4404
4539
  configurable: true,
4405
4540
  get: function () { return this; }
@@ -4408,7 +4543,7 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
4408
4543
  };
4409
4544
 
4410
4545
  var uncurryThis$f = functionUncurryThis;
4411
- var fails$a = fails$y;
4546
+ var fails$9 = fails$y;
4412
4547
  var isCallable$7 = isCallable$t;
4413
4548
  var classof$2 = classof$a;
4414
4549
  var getBuiltIn$3 = getBuiltIn$b;
@@ -4451,7 +4586,7 @@ isConstructorLegacy.sham = true;
4451
4586
 
4452
4587
  // `IsConstructor` abstract operation
4453
4588
  // https://tc39.es/ecma262/#sec-isconstructor
4454
- var isConstructor$3 = !construct || fails$a(function () {
4589
+ var isConstructor$3 = !construct || fails$9(function () {
4455
4590
  var called;
4456
4591
  return isConstructorModern(isConstructorModern.call)
4457
4592
  || !isConstructorModern(Object)
@@ -4462,15 +4597,15 @@ var isConstructor$3 = !construct || fails$a(function () {
4462
4597
  var isConstructor$2 = isConstructor$3;
4463
4598
  var tryToString$1 = tryToString$5;
4464
4599
 
4465
- var $TypeError$8 = TypeError;
4600
+ var $TypeError$6 = TypeError;
4466
4601
 
4467
4602
  // `Assert: IsConstructor(argument) is true`
4468
4603
  var aConstructor$1 = function (argument) {
4469
4604
  if (isConstructor$2(argument)) return argument;
4470
- throw new $TypeError$8(tryToString$1(argument) + ' is not a constructor');
4605
+ throw new $TypeError$6(tryToString$1(argument) + ' is not a constructor');
4471
4606
  };
4472
4607
 
4473
- var anObject$9 = anObject$t;
4608
+ var anObject$8 = anObject$t;
4474
4609
  var aConstructor = aConstructor$1;
4475
4610
  var isNullOrUndefined$2 = isNullOrUndefined$7;
4476
4611
  var wellKnownSymbol$6 = wellKnownSymbol$o;
@@ -4480,15 +4615,15 @@ var SPECIES$2 = wellKnownSymbol$6('species');
4480
4615
  // `SpeciesConstructor` abstract operation
4481
4616
  // https://tc39.es/ecma262/#sec-speciesconstructor
4482
4617
  var speciesConstructor$2 = function (O, defaultConstructor) {
4483
- var C = anObject$9(O).constructor;
4618
+ var C = anObject$8(O).constructor;
4484
4619
  var S;
4485
- return C === undefined || isNullOrUndefined$2(S = anObject$9(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
4620
+ return C === undefined || isNullOrUndefined$2(S = anObject$8(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
4486
4621
  };
4487
4622
 
4488
- var $TypeError$7 = TypeError;
4623
+ var $TypeError$5 = TypeError;
4489
4624
 
4490
4625
  var validateArgumentsLength$5 = function (passed, required) {
4491
- if (passed < required) throw new $TypeError$7('Not enough arguments');
4626
+ if (passed < required) throw new $TypeError$5('Not enough arguments');
4492
4627
  return passed;
4493
4628
  };
4494
4629
 
@@ -4502,7 +4637,7 @@ var apply = functionApply;
4502
4637
  var bind$6 = functionBindContext;
4503
4638
  var isCallable$6 = isCallable$t;
4504
4639
  var hasOwn$7 = hasOwnProperty_1;
4505
- var fails$9 = fails$y;
4640
+ var fails$8 = fails$y;
4506
4641
  var html = html$2;
4507
4642
  var arraySlice$2 = arraySlice$4;
4508
4643
  var createElement = documentCreateElement$2;
@@ -4522,7 +4657,7 @@ var queue$2 = {};
4522
4657
  var ONREADYSTATECHANGE = 'onreadystatechange';
4523
4658
  var $location, defer, channel, port;
4524
4659
 
4525
- fails$9(function () {
4660
+ fails$8(function () {
4526
4661
  // Deno throws a ReferenceError on `location` access without `--location` flag
4527
4662
  $location = global$c.location;
4528
4663
  });
@@ -4589,7 +4724,7 @@ if (!set || !clear) {
4589
4724
  isCallable$6(global$c.postMessage) &&
4590
4725
  !global$c.importScripts &&
4591
4726
  $location && $location.protocol !== 'file:' &&
4592
- !fails$9(globalPostMessageDefer)
4727
+ !fails$8(globalPostMessageDefer)
4593
4728
  ) {
4594
4729
  defer = globalPostMessageDefer;
4595
4730
  global$c.addEventListener('message', eventListener, false);
@@ -4613,15 +4748,15 @@ var task$1 = {
4613
4748
  set: set};
4614
4749
 
4615
4750
  var global$b = global$t;
4616
- var DESCRIPTORS$9 = descriptors;
4751
+ var DESCRIPTORS$8 = descriptors;
4617
4752
 
4618
4753
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
4619
- var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
4754
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
4620
4755
 
4621
4756
  // Avoid NodeJS experimental warning
4622
4757
  var safeGetBuiltIn$2 = function (name) {
4623
- if (!DESCRIPTORS$9) return global$b[name];
4624
- var descriptor = getOwnPropertyDescriptor$3(global$b, name);
4758
+ if (!DESCRIPTORS$8) return global$b[name];
4759
+ var descriptor = getOwnPropertyDescriptor$2(global$b, name);
4625
4760
  return descriptor && descriptor.value;
4626
4761
  };
4627
4762
 
@@ -4813,19 +4948,19 @@ var promiseConstructorDetection = {
4813
4948
 
4814
4949
  var newPromiseCapability$2 = {};
4815
4950
 
4816
- var aCallable$9 = aCallable$k;
4951
+ var aCallable$8 = aCallable$k;
4817
4952
 
4818
- var $TypeError$6 = TypeError;
4953
+ var $TypeError$4 = TypeError;
4819
4954
 
4820
4955
  var PromiseCapability = function (C) {
4821
4956
  var resolve, reject;
4822
4957
  this.promise = new C(function ($$resolve, $$reject) {
4823
- if (resolve !== undefined || reject !== undefined) throw new $TypeError$6('Bad Promise constructor');
4958
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$4('Bad Promise constructor');
4824
4959
  resolve = $$resolve;
4825
4960
  reject = $$reject;
4826
4961
  });
4827
- this.resolve = aCallable$9(resolve);
4828
- this.reject = aCallable$9(reject);
4962
+ this.resolve = aCallable$8(resolve);
4963
+ this.reject = aCallable$8(reject);
4829
4964
  };
4830
4965
 
4831
4966
  // `NewPromiseCapability` abstract operation
@@ -4834,7 +4969,7 @@ newPromiseCapability$2.f = function (C) {
4834
4969
  return new PromiseCapability(C);
4835
4970
  };
4836
4971
 
4837
- var $$n = _export;
4972
+ var $$l = _export;
4838
4973
  var IS_NODE$1 = engineIsNode;
4839
4974
  var global$7 = global$t;
4840
4975
  var call$b = functionCall;
@@ -4842,7 +4977,7 @@ var defineBuiltIn$7 = defineBuiltIn$d;
4842
4977
  var setPrototypeOf = objectSetPrototypeOf;
4843
4978
  var setToStringTag$2 = setToStringTag$6;
4844
4979
  var setSpecies$1 = setSpecies$2;
4845
- var aCallable$8 = aCallable$k;
4980
+ var aCallable$7 = aCallable$k;
4846
4981
  var isCallable$4 = isCallable$t;
4847
4982
  var isObject$4 = isObject$h;
4848
4983
  var anInstance$2 = anInstance$4;
@@ -5032,7 +5167,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5032
5167
  // 25.4.3.1 Promise(executor)
5033
5168
  PromiseConstructor = function Promise(executor) {
5034
5169
  anInstance$2(this, PromisePrototype);
5035
- aCallable$8(executor);
5170
+ aCallable$7(executor);
5036
5171
  call$b(Internal, this);
5037
5172
  var state = getInternalPromiseState(this);
5038
5173
  try {
@@ -5114,7 +5249,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5114
5249
  }
5115
5250
  }
5116
5251
 
5117
- $$n({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
5252
+ $$l({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
5118
5253
  Promise: PromiseConstructor
5119
5254
  });
5120
5255
 
@@ -5170,28 +5305,28 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
5170
5305
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
5171
5306
  });
5172
5307
 
5173
- var $$m = _export;
5308
+ var $$k = _export;
5174
5309
  var call$a = functionCall;
5175
- var aCallable$7 = aCallable$k;
5310
+ var aCallable$6 = aCallable$k;
5176
5311
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
5177
5312
  var perform$1 = perform$3;
5178
- var iterate$4 = iterate$a;
5313
+ var iterate$3 = iterate$a;
5179
5314
  var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
5180
5315
 
5181
5316
  // `Promise.all` method
5182
5317
  // https://tc39.es/ecma262/#sec-promise.all
5183
- $$m({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
5318
+ $$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
5184
5319
  all: function all(iterable) {
5185
5320
  var C = this;
5186
5321
  var capability = newPromiseCapabilityModule$2.f(C);
5187
5322
  var resolve = capability.resolve;
5188
5323
  var reject = capability.reject;
5189
5324
  var result = perform$1(function () {
5190
- var $promiseResolve = aCallable$7(C.resolve);
5325
+ var $promiseResolve = aCallable$6(C.resolve);
5191
5326
  var values = [];
5192
5327
  var counter = 0;
5193
5328
  var remaining = 1;
5194
- iterate$4(iterable, function (promise) {
5329
+ iterate$3(iterable, function (promise) {
5195
5330
  var index = counter++;
5196
5331
  var alreadyCalled = false;
5197
5332
  remaining++;
@@ -5209,7 +5344,7 @@ $$m({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5209
5344
  }
5210
5345
  });
5211
5346
 
5212
- var $$l = _export;
5347
+ var $$j = _export;
5213
5348
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
5214
5349
  var NativePromiseConstructor = promiseNativeConstructor;
5215
5350
  var getBuiltIn$2 = getBuiltIn$b;
@@ -5220,7 +5355,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
5220
5355
 
5221
5356
  // `Promise.prototype.catch` method
5222
5357
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
5223
- $$l({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
5358
+ $$j({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
5224
5359
  'catch': function (onRejected) {
5225
5360
  return this.then(undefined, onRejected);
5226
5361
  }
@@ -5234,24 +5369,24 @@ if (isCallable$3(NativePromiseConstructor)) {
5234
5369
  }
5235
5370
  }
5236
5371
 
5237
- var $$k = _export;
5372
+ var $$i = _export;
5238
5373
  var call$9 = functionCall;
5239
- var aCallable$6 = aCallable$k;
5374
+ var aCallable$5 = aCallable$k;
5240
5375
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
5241
5376
  var perform = perform$3;
5242
- var iterate$3 = iterate$a;
5377
+ var iterate$2 = iterate$a;
5243
5378
  var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
5244
5379
 
5245
5380
  // `Promise.race` method
5246
5381
  // https://tc39.es/ecma262/#sec-promise.race
5247
- $$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
5382
+ $$i({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
5248
5383
  race: function race(iterable) {
5249
5384
  var C = this;
5250
5385
  var capability = newPromiseCapabilityModule$1.f(C);
5251
5386
  var reject = capability.reject;
5252
5387
  var result = perform(function () {
5253
- var $promiseResolve = aCallable$6(C.resolve);
5254
- iterate$3(iterable, function (promise) {
5388
+ var $promiseResolve = aCallable$5(C.resolve);
5389
+ iterate$2(iterable, function (promise) {
5255
5390
  call$9($promiseResolve, C, promise).then(capability.resolve, reject);
5256
5391
  });
5257
5392
  });
@@ -5260,13 +5395,13 @@ $$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5260
5395
  }
5261
5396
  });
5262
5397
 
5263
- var $$j = _export;
5398
+ var $$h = _export;
5264
5399
  var newPromiseCapabilityModule = newPromiseCapability$2;
5265
5400
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
5266
5401
 
5267
5402
  // `Promise.reject` method
5268
5403
  // https://tc39.es/ecma262/#sec-promise.reject
5269
- $$j({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5404
+ $$h({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5270
5405
  reject: function reject(r) {
5271
5406
  var capability = newPromiseCapabilityModule.f(this);
5272
5407
  var capabilityReject = capability.reject;
@@ -5275,12 +5410,12 @@ $$j({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5275
5410
  }
5276
5411
  });
5277
5412
 
5278
- var anObject$8 = anObject$t;
5413
+ var anObject$7 = anObject$t;
5279
5414
  var isObject$3 = isObject$h;
5280
5415
  var newPromiseCapability = newPromiseCapability$2;
5281
5416
 
5282
5417
  var promiseResolve$1 = function (C, x) {
5283
- anObject$8(C);
5418
+ anObject$7(C);
5284
5419
  if (isObject$3(x) && x.constructor === C) return x;
5285
5420
  var promiseCapability = newPromiseCapability.f(C);
5286
5421
  var resolve = promiseCapability.resolve;
@@ -5288,7 +5423,7 @@ var promiseResolve$1 = function (C, x) {
5288
5423
  return promiseCapability.promise;
5289
5424
  };
5290
5425
 
5291
- var $$i = _export;
5426
+ var $$g = _export;
5292
5427
  var getBuiltIn$1 = getBuiltIn$b;
5293
5428
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
5294
5429
  var promiseResolve = promiseResolve$1;
@@ -5297,7 +5432,7 @@ getBuiltIn$1('Promise');
5297
5432
 
5298
5433
  // `Promise.resolve` method
5299
5434
  // https://tc39.es/ecma262/#sec-promise.resolve
5300
- $$i({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
5435
+ $$g({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
5301
5436
  resolve: function resolve(x) {
5302
5437
  return promiseResolve(this, x);
5303
5438
  }
@@ -5318,16 +5453,16 @@ var regexpGetFlags = function (R) {
5318
5453
 
5319
5454
  var PROPER_FUNCTION_NAME = functionName.PROPER;
5320
5455
  var defineBuiltIn$5 = defineBuiltIn$d;
5321
- var anObject$7 = anObject$t;
5456
+ var anObject$6 = anObject$t;
5322
5457
  var $toString$2 = toString$n;
5323
- var fails$8 = fails$y;
5458
+ var fails$7 = fails$y;
5324
5459
  var getRegExpFlags$1 = regexpGetFlags;
5325
5460
 
5326
5461
  var TO_STRING = 'toString';
5327
5462
  var RegExpPrototype$2 = RegExp.prototype;
5328
5463
  var nativeToString = RegExpPrototype$2[TO_STRING];
5329
5464
 
5330
- var NOT_GENERIC = fails$8(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
5465
+ var NOT_GENERIC = fails$7(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
5331
5466
  // FF44- RegExp#toString has a wrong name
5332
5467
  var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
5333
5468
 
@@ -5335,34 +5470,14 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
5335
5470
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
5336
5471
  if (NOT_GENERIC || INCORRECT_NAME) {
5337
5472
  defineBuiltIn$5(RegExpPrototype$2, TO_STRING, function toString() {
5338
- var R = anObject$7(this);
5473
+ var R = anObject$6(this);
5339
5474
  var pattern = $toString$2(R.source);
5340
5475
  var flags = $toString$2(getRegExpFlags$1(R));
5341
5476
  return '/' + pattern + '/' + flags;
5342
5477
  }, { unsafe: true });
5343
5478
  }
5344
5479
 
5345
- var $$h = _export;
5346
- var iterate$2 = iterate$a;
5347
- var aCallable$5 = aCallable$k;
5348
- var anObject$6 = anObject$t;
5349
- var getIteratorDirect$3 = getIteratorDirect$a;
5350
-
5351
- // `Iterator.prototype.some` method
5352
- // https://github.com/tc39/proposal-iterator-helpers
5353
- $$h({ target: 'Iterator', proto: true, real: true }, {
5354
- some: function some(predicate) {
5355
- anObject$6(this);
5356
- aCallable$5(predicate);
5357
- var record = getIteratorDirect$3(this);
5358
- var counter = 0;
5359
- return iterate$2(record, function (value, stop) {
5360
- if (predicate(value, counter++)) return stop();
5361
- }, { IS_RECORD: true, INTERRUPTED: true }).stopped;
5362
- }
5363
- });
5364
-
5365
- var DESCRIPTORS$8 = descriptors;
5480
+ var DESCRIPTORS$7 = descriptors;
5366
5481
  var global$6 = global$t;
5367
5482
  var uncurryThis$e = functionUncurryThis;
5368
5483
  var isForced = isForced_1;
@@ -5377,7 +5492,7 @@ var getRegExpFlags = regexpGetFlags;
5377
5492
  var stickyHelpers$1 = regexpStickyHelpers;
5378
5493
  var proxyAccessor = proxyAccessor$2;
5379
5494
  var defineBuiltIn$4 = defineBuiltIn$d;
5380
- var fails$7 = fails$y;
5495
+ var fails$6 = fails$y;
5381
5496
  var hasOwn$5 = hasOwnProperty_1;
5382
5497
  var enforceInternalState = internalState.enforce;
5383
5498
  var setSpecies = setSpecies$2;
@@ -5405,8 +5520,8 @@ var CORRECT_NEW = new NativeRegExp(re1) !== re1;
5405
5520
  var MISSED_STICKY = stickyHelpers$1.MISSED_STICKY;
5406
5521
  var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y;
5407
5522
 
5408
- var BASE_FORCED = DESCRIPTORS$8 &&
5409
- (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$7(function () {
5523
+ var BASE_FORCED = DESCRIPTORS$7 &&
5524
+ (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$6(function () {
5410
5525
  re2[MATCH] = false;
5411
5526
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
5412
5527
  return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
@@ -5554,18 +5669,18 @@ if (isForced('RegExp', BASE_FORCED)) {
5554
5669
  // https://tc39.es/ecma262/#sec-get-regexp-@@species
5555
5670
  setSpecies('RegExp');
5556
5671
 
5557
- var DESCRIPTORS$7 = descriptors;
5672
+ var DESCRIPTORS$6 = descriptors;
5558
5673
  var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
5559
5674
  var classof$1 = classofRaw$2;
5560
5675
  var defineBuiltInAccessor$4 = defineBuiltInAccessor$7;
5561
5676
  var getInternalState$1 = internalState.get;
5562
5677
 
5563
5678
  var RegExpPrototype = RegExp.prototype;
5564
- var $TypeError$5 = TypeError;
5679
+ var $TypeError$3 = TypeError;
5565
5680
 
5566
5681
  // `RegExp.prototype.dotAll` getter
5567
5682
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
5568
- if (DESCRIPTORS$7 && UNSUPPORTED_DOT_ALL) {
5683
+ if (DESCRIPTORS$6 && UNSUPPORTED_DOT_ALL) {
5569
5684
  defineBuiltInAccessor$4(RegExpPrototype, 'dotAll', {
5570
5685
  configurable: true,
5571
5686
  get: function dotAll() {
@@ -5575,7 +5690,7 @@ if (DESCRIPTORS$7 && UNSUPPORTED_DOT_ALL) {
5575
5690
  if (classof$1(this) === 'RegExp') {
5576
5691
  return !!getInternalState$1(this).dotAll;
5577
5692
  }
5578
- throw new $TypeError$5('Incompatible receiver, RegExp required');
5693
+ throw new $TypeError$3('Incompatible receiver, RegExp required');
5579
5694
  }
5580
5695
  });
5581
5696
  }
@@ -5867,22 +5982,22 @@ styled.h4(_t11$2 || (_t11$2 = _$a`
5867
5982
  `));
5868
5983
 
5869
5984
  var aCallable$4 = aCallable$k;
5870
- var toObject$6 = toObject$c;
5985
+ var toObject$5 = toObject$c;
5871
5986
  var IndexedObject = indexedObject;
5872
- var lengthOfArrayLike$8 = lengthOfArrayLike$c;
5987
+ var lengthOfArrayLike$7 = lengthOfArrayLike$c;
5873
5988
 
5874
- var $TypeError$4 = TypeError;
5989
+ var $TypeError$2 = TypeError;
5875
5990
 
5876
5991
  var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
5877
5992
 
5878
5993
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
5879
5994
  var createMethod$1 = function (IS_RIGHT) {
5880
5995
  return function (that, callbackfn, argumentsLength, memo) {
5881
- var O = toObject$6(that);
5996
+ var O = toObject$5(that);
5882
5997
  var self = IndexedObject(O);
5883
- var length = lengthOfArrayLike$8(O);
5998
+ var length = lengthOfArrayLike$7(O);
5884
5999
  aCallable$4(callbackfn);
5885
- if (length === 0 && argumentsLength < 2) throw new $TypeError$4(REDUCE_EMPTY);
6000
+ if (length === 0 && argumentsLength < 2) throw new $TypeError$2(REDUCE_EMPTY);
5886
6001
  var index = IS_RIGHT ? length - 1 : 0;
5887
6002
  var i = IS_RIGHT ? -1 : 1;
5888
6003
  if (argumentsLength < 2) while (true) {
@@ -5893,7 +6008,7 @@ var createMethod$1 = function (IS_RIGHT) {
5893
6008
  }
5894
6009
  index += i;
5895
6010
  if (IS_RIGHT ? index < 0 : length <= index) {
5896
- throw new $TypeError$4(REDUCE_EMPTY);
6011
+ throw new $TypeError$2(REDUCE_EMPTY);
5897
6012
  }
5898
6013
  }
5899
6014
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -5908,17 +6023,17 @@ var arrayReduce = {
5908
6023
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
5909
6024
  left: createMethod$1(false)};
5910
6025
 
5911
- var fails$6 = fails$y;
6026
+ var fails$5 = fails$y;
5912
6027
 
5913
6028
  var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
5914
6029
  var method = [][METHOD_NAME];
5915
- return !!method && fails$6(function () {
6030
+ return !!method && fails$5(function () {
5916
6031
  // eslint-disable-next-line no-useless-call -- required for testing
5917
6032
  method.call(null, argument || function () { return 1; }, 1);
5918
6033
  });
5919
6034
  };
5920
6035
 
5921
- var $$g = _export;
6036
+ var $$f = _export;
5922
6037
  var $reduce = arrayReduce.left;
5923
6038
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
5924
6039
  var CHROME_VERSION = engineV8Version;
@@ -5927,28 +6042,28 @@ var IS_NODE = engineIsNode;
5927
6042
  // Chrome 80-82 has a critical bug
5928
6043
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
5929
6044
  var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
5930
- var FORCED$4 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
6045
+ var FORCED$3 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
5931
6046
 
5932
6047
  // `Array.prototype.reduce` method
5933
6048
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
5934
- $$g({ target: 'Array', proto: true, forced: FORCED$4 }, {
6049
+ $$f({ target: 'Array', proto: true, forced: FORCED$3 }, {
5935
6050
  reduce: function reduce(callbackfn /* , initialValue */) {
5936
6051
  var length = arguments.length;
5937
6052
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
5938
6053
  }
5939
6054
  });
5940
6055
 
5941
- var $$f = _export;
6056
+ var $$e = _export;
5942
6057
  var iterate$1 = iterate$a;
5943
6058
  var aCallable$3 = aCallable$k;
5944
6059
  var anObject$5 = anObject$t;
5945
6060
  var getIteratorDirect$2 = getIteratorDirect$a;
5946
6061
 
5947
- var $TypeError$3 = TypeError;
6062
+ var $TypeError$1 = TypeError;
5948
6063
 
5949
6064
  // `Iterator.prototype.reduce` method
5950
6065
  // https://github.com/tc39/proposal-iterator-helpers
5951
- $$f({ target: 'Iterator', proto: true, real: true }, {
6066
+ $$e({ target: 'Iterator', proto: true, real: true }, {
5952
6067
  reduce: function reduce(reducer /* , initialValue */) {
5953
6068
  anObject$5(this);
5954
6069
  aCallable$3(reducer);
@@ -5965,88 +6080,11 @@ $$f({ target: 'Iterator', proto: true, real: true }, {
5965
6080
  }
5966
6081
  counter++;
5967
6082
  }, { IS_RECORD: true });
5968
- if (noInitial) throw new $TypeError$3('Reduce of empty iterator with no initial value');
6083
+ if (noInitial) throw new $TypeError$1('Reduce of empty iterator with no initial value');
5969
6084
  return accumulator;
5970
6085
  }
5971
6086
  });
5972
6087
 
5973
- var DESCRIPTORS$6 = descriptors;
5974
- var isArray$3 = isArray$5;
5975
-
5976
- var $TypeError$2 = TypeError;
5977
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
5978
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
5979
-
5980
- // Safari < 13 does not throw an error in this case
5981
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$6 && !function () {
5982
- // makes no sense without proper strict mode support
5983
- if (this !== undefined) return true;
5984
- try {
5985
- // eslint-disable-next-line es/no-object-defineproperty -- safe
5986
- Object.defineProperty([], 'length', { writable: false }).length = 1;
5987
- } catch (error) {
5988
- return error instanceof TypeError;
5989
- }
5990
- }();
5991
-
5992
- var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
5993
- if (isArray$3(O) && !getOwnPropertyDescriptor$2(O, 'length').writable) {
5994
- throw new $TypeError$2('Cannot set read only .length');
5995
- } return O.length = length;
5996
- } : function (O, length) {
5997
- return O.length = length;
5998
- };
5999
-
6000
- var $TypeError$1 = TypeError;
6001
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
6002
-
6003
- var doesNotExceedSafeInteger$3 = function (it) {
6004
- if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
6005
- return it;
6006
- };
6007
-
6008
- var $$e = _export;
6009
- var toObject$5 = toObject$c;
6010
- var lengthOfArrayLike$7 = lengthOfArrayLike$c;
6011
- var setArrayLength$1 = arraySetLength;
6012
- var doesNotExceedSafeInteger$2 = doesNotExceedSafeInteger$3;
6013
- var fails$5 = fails$y;
6014
-
6015
- var INCORRECT_TO_LENGTH = fails$5(function () {
6016
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
6017
- });
6018
-
6019
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
6020
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
6021
- var properErrorOnNonWritableLength$1 = function () {
6022
- try {
6023
- // eslint-disable-next-line es/no-object-defineproperty -- safe
6024
- Object.defineProperty([], 'length', { writable: false }).push();
6025
- } catch (error) {
6026
- return error instanceof TypeError;
6027
- }
6028
- };
6029
-
6030
- var FORCED$3 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength$1();
6031
-
6032
- // `Array.prototype.push` method
6033
- // https://tc39.es/ecma262/#sec-array.prototype.push
6034
- $$e({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
6035
- // eslint-disable-next-line no-unused-vars -- required for `.length`
6036
- push: function push(item) {
6037
- var O = toObject$5(this);
6038
- var len = lengthOfArrayLike$7(O);
6039
- var argCount = arguments.length;
6040
- doesNotExceedSafeInteger$2(len + argCount);
6041
- for (var i = 0; i < argCount; i++) {
6042
- O[len] = arguments[i];
6043
- len++;
6044
- }
6045
- setArrayLength$1(O, len);
6046
- return len;
6047
- }
6048
- });
6049
-
6050
6088
  // TODO: Typing in this function is inconsistent. Needs to be cleaned up since it's not clear that
6051
6089
  // output typing of string[] is correct which could affect downstream code.
6052
6090
  const pickPropertyValues = (obj, property, endWithType) => {
@@ -7358,12 +7396,19 @@ const InnerGoAInputText = props => {
7358
7396
  }
7359
7397
  setLocalValue(isSinField && typeof data === 'string' ? formatSinForDisplay(data) : data);
7360
7398
  }, [data, isSinField]);
7399
+ const shouldAutoPopulateValue = (autoPopulatedValue, data) => {
7400
+ return !!autoPopulatedValue && autoPopulatedValue !== data;
7401
+ };
7402
+ // clean-code-ignore: 2.18
7361
7403
  useEffect(() => {
7362
7404
  if (!user || data || manualInput || hasDefault) return;
7363
7405
  const autoPopulatedValue = autoPopulateValue(user, props);
7364
- if (autoPopulatedValue && autoPopulatedValue !== data) {
7365
- handleChange(props.path, autoPopulatedValue);
7366
- setLocalValue(autoPopulatedValue);
7406
+ if (shouldAutoPopulateValue(autoPopulatedValue, data)) {
7407
+ const timeout = setTimeout(() => {
7408
+ handleChange(props.path, autoPopulatedValue);
7409
+ setLocalValue(autoPopulatedValue);
7410
+ }, 1000);
7411
+ return () => clearTimeout(timeout);
7367
7412
  }
7368
7413
  // eslint-disable-next-line react-hooks/exhaustive-deps
7369
7414
  }, [user]);
@@ -11113,10 +11158,10 @@ const FullNameDobReviewControl = props => {
11113
11158
  children: jsxs(PageReviewContainer, {
11114
11159
  colSpan: 3,
11115
11160
  children: [jsxs(ReviewHeader, {
11116
- children: [jsx(ReviewLabel, {
11117
- children: fieldLabel
11118
- }), requiredFields.includes(fieldName) && jsx(RequiredTextLabel, {
11119
- children: " (required)"
11161
+ children: [jsxs(ReviewLabel, {
11162
+ children: [fieldLabel, requiredFields.includes(fieldName) && jsx(RequiredTextLabel, {
11163
+ children: " (required)"
11164
+ })]
11120
11165
  }), stepId !== undefined && !((_uischema$options2 = uischema.options) != null && (_uischema$options2 = _uischema$options2.componentProps) != null && _uischema$options2.readOnly) && jsx(GoabButton, {
11121
11166
  type: "tertiary",
11122
11167
  size: "compact",
@@ -11334,8 +11379,13 @@ const TextWrapDiv = styled.div(_t4$1 || (_t4$1 = _$4`
11334
11379
  word-break: break-word;
11335
11380
  `));
11336
11381
  const LabelDiv = styled.div(_t5 || (_t5 = _$4`
11337
- font-size: var(--goa-font-size-2);
11338
- padding-bottom: var(--goa-space-l);
11382
+ color: var(--goa-color-text-default);
11383
+ font: var(--goa-typography-body-m);
11384
+ min-height: 2.625rem;
11385
+ display: flex;
11386
+ align-items: center;
11387
+ text-wrap: auto;
11388
+ word-break: break-word;
11339
11389
  `));
11340
11390
  /* istanbul ignore next */
11341
11391
  const ListItem = styled.li(_t6 || (_t6 = _$4`
@@ -13135,16 +13185,16 @@ const AddressViews = ({
13135
13185
  label: "Province",
13136
13186
  error: !isAlbertaAddress && (data == null ? void 0 : data.subdivisionCode) === undefined ? 'Province is required' : '',
13137
13187
  requirement: "required",
13138
- children: [isAlbertaAddress && jsx("div", {
13188
+ children: [isAlbertaAddress && jsx(LabelDiv, {
13139
13189
  "data-testid": "address-form-province-view",
13140
13190
  children: "Alberta"
13141
- }), !isAlbertaAddress && jsx("div", {
13191
+ }), !isAlbertaAddress && jsx(LabelDiv, {
13142
13192
  "data-testid": "address-form-province-view",
13143
13193
  children: (_provinces$find = provinces.find(p => p.value === (data == null ? void 0 : data.subdivisionCode))) == null ? void 0 : _provinces$find.label
13144
13194
  })]
13145
13195
  }), jsx(GoabFormItem, {
13146
13196
  label: "Country",
13147
- children: jsx("div", {
13197
+ children: jsx(LabelDiv, {
13148
13198
  "data-testid": "address-form-country",
13149
13199
  children: "Canada"
13150
13200
  })
@@ -15416,6 +15466,7 @@ const AddressInputs = ({
15416
15466
  gap: "s",
15417
15467
  children: [jsxs(GoabFormItem, {
15418
15468
  label: "Province",
15469
+ requirement: requiredFields != null && requiredFields.includes('subdivisionCode') ? 'required' : 'optional',
15419
15470
  children: [isAlbertaAddress && jsx(LabelDiv, {
15420
15471
  "data-testid": "address-form-province",
15421
15472
  children: "Alberta"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.64.7",
3
+ "version": "2.64.9",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-05-28T19:15:57.492Z",
4
- "sourceCommit": "46f246351769be0ffb3415361c87d5bbe15521f2",
3
+ "generatedAt": "2026-05-29T21:56:06.433Z",
4
+ "sourceCommit": "6c99340d89cc8ab585d0b5b64214891442a4b29c",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [