@mycause/ui 1.1.0-test11 → 1.1.0-test12

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.
@@ -19413,16 +19413,17 @@ keysShim$1.shim = function shimObjectKeys() {
19413
19413
  var objectKeys = keysShim$1;
19414
19414
 
19415
19415
  /** @type {import('.')} */
19416
- var esErrors = Error;
19417
-
19418
- /** @type {import('./eval')} */
19419
- var _eval = EvalError;
19420
-
19421
- /** @type {import('./range')} */
19422
- var range = RangeError;
19416
+ var $defineProperty = Object.defineProperty || false;
19417
+ if ($defineProperty) {
19418
+ try {
19419
+ $defineProperty({}, 'a', { value: 1 });
19420
+ } catch (e) {
19421
+ // IE 8 has a broken defineProperty
19422
+ $defineProperty = false;
19423
+ }
19424
+ }
19423
19425
 
19424
- /** @type {import('./ref')} */
19425
- var ref = ReferenceError;
19426
+ var esDefineProperty = $defineProperty;
19426
19427
 
19427
19428
  /** @type {import('./syntax')} */
19428
19429
  var syntax = SyntaxError;
@@ -19430,80 +19431,139 @@ var syntax = SyntaxError;
19430
19431
  /** @type {import('./type')} */
19431
19432
  var type = TypeError;
19432
19433
 
19433
- /** @type {import('./uri')} */
19434
- var uri = URIError;
19435
-
19436
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
19437
- var shams = function hasSymbols() {
19438
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
19439
- if (typeof Symbol.iterator === 'symbol') { return true; }
19434
+ /** @type {import('./gOPD')} */
19435
+ var gOPD = Object.getOwnPropertyDescriptor;
19440
19436
 
19441
- var obj = {};
19442
- var sym = Symbol('test');
19443
- var symObj = Object(sym);
19444
- if (typeof sym === 'string') { return false; }
19437
+ /** @type {import('.')} */
19438
+ var $gOPD = gOPD;
19445
19439
 
19446
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
19447
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
19440
+ if ($gOPD) {
19441
+ try {
19442
+ $gOPD([], 'length');
19443
+ } catch (e) {
19444
+ // IE 8 has a broken gOPD
19445
+ $gOPD = null;
19446
+ }
19447
+ }
19448
19448
 
19449
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
19450
- // if (sym instanceof Symbol) { return false; }
19451
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
19452
- // if (!(symObj instanceof Symbol)) { return false; }
19449
+ var gopd = $gOPD;
19453
19450
 
19454
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
19455
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
19451
+ /** @type {import('.')} */
19452
+ var defineDataProperty = function defineDataProperty(
19453
+ obj,
19454
+ property,
19455
+ value
19456
+ ) {
19457
+ if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
19458
+ throw new type('`obj` must be an object or a function`');
19459
+ }
19460
+ if (typeof property !== 'string' && typeof property !== 'symbol') {
19461
+ throw new type('`property` must be a string or a symbol`');
19462
+ }
19463
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
19464
+ throw new type('`nonEnumerable`, if provided, must be a boolean or null');
19465
+ }
19466
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
19467
+ throw new type('`nonWritable`, if provided, must be a boolean or null');
19468
+ }
19469
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
19470
+ throw new type('`nonConfigurable`, if provided, must be a boolean or null');
19471
+ }
19472
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
19473
+ throw new type('`loose`, if provided, must be a boolean');
19474
+ }
19456
19475
 
19457
- var symVal = 42;
19458
- obj[sym] = symVal;
19459
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
19460
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
19476
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
19477
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
19478
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
19479
+ var loose = arguments.length > 6 ? arguments[6] : false;
19461
19480
 
19462
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
19481
+ /* @type {false | TypedPropertyDescriptor<unknown>} */
19482
+ var desc = !!gopd && gopd(obj, property);
19463
19483
 
19464
- var syms = Object.getOwnPropertySymbols(obj);
19465
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
19484
+ if (esDefineProperty) {
19485
+ esDefineProperty(obj, property, {
19486
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
19487
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
19488
+ value: value,
19489
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
19490
+ });
19491
+ } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
19492
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
19493
+ obj[property] = value; // eslint-disable-line no-param-reassign
19494
+ } else {
19495
+ throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
19496
+ }
19497
+ };
19466
19498
 
19467
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
19499
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
19500
+ return !!esDefineProperty;
19501
+ };
19468
19502
 
19469
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
19470
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
19471
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
19503
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
19504
+ // node v0.6 has a bug where array lengths can be Set but not Defined
19505
+ if (!esDefineProperty) {
19506
+ return null;
19507
+ }
19508
+ try {
19509
+ return esDefineProperty([], 'length', { value: 1 }).length !== 1;
19510
+ } catch (e) {
19511
+ // In Firefox 4-22, defining length on an array throws an exception.
19512
+ return true;
19472
19513
  }
19473
-
19474
- return true;
19475
19514
  };
19476
19515
 
19477
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
19516
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
19478
19517
 
19518
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
19479
19519
 
19480
- var hasSymbols = function hasNativeSymbols() {
19481
- if (typeof origSymbol !== 'function') { return false; }
19482
- if (typeof Symbol !== 'function') { return false; }
19483
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
19484
- if (typeof Symbol('bar') !== 'symbol') { return false; }
19520
+ var toStr$2 = Object.prototype.toString;
19521
+ var concat = Array.prototype.concat;
19485
19522
 
19486
- return shams();
19487
- };
19488
19523
 
19489
- var test = {
19490
- __proto__: null,
19491
- foo: {}
19524
+ var isFunction = function (fn) {
19525
+ return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
19492
19526
  };
19493
19527
 
19494
- var $Object = Object;
19528
+ var supportsDescriptors = hasPropertyDescriptors_1();
19495
19529
 
19496
- /** @type {import('.')} */
19497
- var hasProto = function hasProto() {
19498
- // @ts-expect-error: TS errors on an inherited property for some reason
19499
- return { __proto__: test }.foo === test.foo
19500
- && !(test instanceof $Object);
19530
+ var defineProperty = function (object, name, value, predicate) {
19531
+ if (name in object) {
19532
+ if (predicate === true) {
19533
+ if (object[name] === value) {
19534
+ return;
19535
+ }
19536
+ } else if (!isFunction(predicate) || !predicate()) {
19537
+ return;
19538
+ }
19539
+ }
19540
+
19541
+ if (supportsDescriptors) {
19542
+ defineDataProperty(object, name, value, true);
19543
+ } else {
19544
+ defineDataProperty(object, name, value);
19545
+ }
19546
+ };
19547
+
19548
+ var defineProperties = function (object, map) {
19549
+ var predicates = arguments.length > 2 ? arguments[2] : {};
19550
+ var props = objectKeys(map);
19551
+ if (hasSymbols) {
19552
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
19553
+ }
19554
+ for (var i = 0; i < props.length; i += 1) {
19555
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
19556
+ }
19501
19557
  };
19502
19558
 
19559
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
19560
+
19561
+ var defineProperties_1 = defineProperties;
19562
+
19503
19563
  /* eslint no-invalid-this: 1 */
19504
19564
 
19505
19565
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
19506
- var toStr$2 = Object.prototype.toString;
19566
+ var toStr$3 = Object.prototype.toString;
19507
19567
  var max = Math.max;
19508
19568
  var funcType = '[object Function]';
19509
19569
 
@@ -19541,7 +19601,7 @@ var joiny = function (arr, joiner) {
19541
19601
 
19542
19602
  var implementation$1 = function bind(that) {
19543
19603
  var target = this;
19544
- if (typeof target !== 'function' || toStr$2.apply(target) !== funcType) {
19604
+ if (typeof target !== 'function' || toStr$3.apply(target) !== funcType) {
19545
19605
  throw new TypeError(ERROR_MESSAGE + target);
19546
19606
  }
19547
19607
  var args = slicy(arguments, 1);
@@ -19585,6 +19645,117 @@ var implementation$1 = function bind(that) {
19585
19645
 
19586
19646
  var functionBind = Function.prototype.bind || implementation$1;
19587
19647
 
19648
+ /** @type {import('.')} */
19649
+ var esErrors = Error;
19650
+
19651
+ /** @type {import('./eval')} */
19652
+ var _eval = EvalError;
19653
+
19654
+ /** @type {import('./range')} */
19655
+ var range = RangeError;
19656
+
19657
+ /** @type {import('./ref')} */
19658
+ var ref = ReferenceError;
19659
+
19660
+ /** @type {import('./uri')} */
19661
+ var uri = URIError;
19662
+
19663
+ /** @type {import('./shams')} */
19664
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
19665
+ var shams = function hasSymbols() {
19666
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
19667
+ if (typeof Symbol.iterator === 'symbol') { return true; }
19668
+
19669
+ /** @type {{ [k in symbol]?: unknown }} */
19670
+ var obj = {};
19671
+ var sym = Symbol('test');
19672
+ var symObj = Object(sym);
19673
+ if (typeof sym === 'string') { return false; }
19674
+
19675
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
19676
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
19677
+
19678
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
19679
+ // if (sym instanceof Symbol) { return false; }
19680
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
19681
+ // if (!(symObj instanceof Symbol)) { return false; }
19682
+
19683
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
19684
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
19685
+
19686
+ var symVal = 42;
19687
+ obj[sym] = symVal;
19688
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
19689
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
19690
+
19691
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
19692
+
19693
+ var syms = Object.getOwnPropertySymbols(obj);
19694
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
19695
+
19696
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
19697
+
19698
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
19699
+ // eslint-disable-next-line no-extra-parens
19700
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
19701
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
19702
+ }
19703
+
19704
+ return true;
19705
+ };
19706
+
19707
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
19708
+
19709
+
19710
+ /** @type {import('.')} */
19711
+ var hasSymbols$1 = function hasNativeSymbols() {
19712
+ if (typeof origSymbol !== 'function') { return false; }
19713
+ if (typeof Symbol !== 'function') { return false; }
19714
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
19715
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
19716
+
19717
+ return shams();
19718
+ };
19719
+
19720
+ /** @type {import('./functionCall')} */
19721
+ var functionCall = Function.prototype.call;
19722
+
19723
+ /** @type {import('./functionApply')} */
19724
+ var functionApply = Function.prototype.apply;
19725
+
19726
+ /** @type {import('./reflectApply')} */
19727
+ var reflectApply = typeof Reflect === 'function' && Reflect.apply;
19728
+
19729
+ /** @type {import('./actualApply')} */
19730
+ var actualApply = reflectApply || functionBind.call(functionCall, functionApply);
19731
+
19732
+ /** @type {import('.')} */
19733
+ var callBindApplyHelpers = function callBindBasic(args) {
19734
+ if (args.length < 1 || typeof args[0] !== 'function') {
19735
+ throw new type('a function is required');
19736
+ }
19737
+ return actualApply(functionBind, functionCall, args);
19738
+ };
19739
+
19740
+ // eslint-disable-next-line no-extra-parens, no-proto
19741
+ var hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
19742
+
19743
+ // eslint-disable-next-line no-extra-parens
19744
+ var desc = hasProtoAccessor && gopd && gopd(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
19745
+
19746
+ var $Object = Object;
19747
+ var $getPrototypeOf = $Object.getPrototypeOf;
19748
+
19749
+ /** @type {import('./get')} */
19750
+ var get = desc && typeof desc.get === 'function'
19751
+ ? callBindApplyHelpers([desc.get])
19752
+ : typeof $getPrototypeOf === 'function'
19753
+ ? /** @type {import('./get')} */ function getDunder(value) {
19754
+ // eslint-disable-next-line eqeqeq
19755
+ return $getPrototypeOf(value == null ? value : $Object(value));
19756
+ }
19757
+ : false;
19758
+
19588
19759
  var call = Function.prototype.call;
19589
19760
  var $hasOwn = Object.prototype.hasOwnProperty;
19590
19761
 
@@ -19611,19 +19782,13 @@ var getEvalledConstructor = function (expressionSyntax) {
19611
19782
  } catch (e) {}
19612
19783
  };
19613
19784
 
19614
- var $gOPD = Object.getOwnPropertyDescriptor;
19615
- if ($gOPD) {
19616
- try {
19617
- $gOPD({}, '');
19618
- } catch (e) {
19619
- $gOPD = null; // this is IE 8, which has a broken gOPD
19620
- }
19621
- }
19785
+
19786
+
19622
19787
 
19623
19788
  var throwTypeError = function () {
19624
19789
  throw new type();
19625
19790
  };
19626
- var ThrowTypeError = $gOPD
19791
+ var ThrowTypeError = gopd
19627
19792
  ? (function () {
19628
19793
  try {
19629
19794
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -19632,7 +19797,7 @@ var ThrowTypeError = $gOPD
19632
19797
  } catch (calleeThrows) {
19633
19798
  try {
19634
19799
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
19635
- return $gOPD(arguments, 'callee').get;
19800
+ return gopd(arguments, 'callee').get;
19636
19801
  } catch (gOPDthrows) {
19637
19802
  return throwTypeError;
19638
19803
  }
@@ -19640,14 +19805,15 @@ var ThrowTypeError = $gOPD
19640
19805
  }())
19641
19806
  : throwTypeError;
19642
19807
 
19643
- var hasSymbols$1 = hasSymbols();
19644
- var hasProto$1 = hasProto();
19808
+ var hasSymbols$2 = hasSymbols$1();
19809
+
19810
+
19811
+ var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
19812
+ || Object.getPrototypeOf
19813
+ || get;
19814
+
19815
+
19645
19816
 
19646
- var getProto = Object.getPrototypeOf || (
19647
- hasProto$1
19648
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
19649
- : null
19650
- );
19651
19817
 
19652
19818
  var needsEval = {};
19653
19819
 
@@ -19658,7 +19824,7 @@ var INTRINSICS = {
19658
19824
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
19659
19825
  '%Array%': Array,
19660
19826
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
19661
- '%ArrayIteratorPrototype%': hasSymbols$1 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
19827
+ '%ArrayIteratorPrototype%': hasSymbols$2 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
19662
19828
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
19663
19829
  '%AsyncFunction%': needsEval,
19664
19830
  '%AsyncGenerator%': needsEval,
@@ -19688,13 +19854,14 @@ var INTRINSICS = {
19688
19854
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
19689
19855
  '%isFinite%': isFinite,
19690
19856
  '%isNaN%': isNaN,
19691
- '%IteratorPrototype%': hasSymbols$1 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
19857
+ '%IteratorPrototype%': hasSymbols$2 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
19692
19858
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
19693
19859
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
19694
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
19860
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
19695
19861
  '%Math%': Math,
19696
19862
  '%Number%': Number,
19697
19863
  '%Object%': Object,
19864
+ '%Object.getOwnPropertyDescriptor%': gopd,
19698
19865
  '%parseFloat%': parseFloat,
19699
19866
  '%parseInt%': parseInt,
19700
19867
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
@@ -19704,11 +19871,11 @@ var INTRINSICS = {
19704
19871
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
19705
19872
  '%RegExp%': RegExp,
19706
19873
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
19707
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
19874
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
19708
19875
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
19709
19876
  '%String%': String,
19710
- '%StringIteratorPrototype%': hasSymbols$1 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
19711
- '%Symbol%': hasSymbols$1 ? Symbol : undefined$1,
19877
+ '%StringIteratorPrototype%': hasSymbols$2 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
19878
+ '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
19712
19879
  '%SyntaxError%': syntax,
19713
19880
  '%ThrowTypeError%': ThrowTypeError,
19714
19881
  '%TypedArray%': TypedArray,
@@ -19720,7 +19887,11 @@ var INTRINSICS = {
19720
19887
  '%URIError%': uri,
19721
19888
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
19722
19889
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
19723
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
19890
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
19891
+
19892
+ '%Function.prototype.call%': functionCall,
19893
+ '%Function.prototype.apply%': functionApply,
19894
+ '%Object.defineProperty%': esDefineProperty
19724
19895
  };
19725
19896
 
19726
19897
  if (getProto) {
@@ -19815,11 +19986,11 @@ var LEGACY_ALIASES = {
19815
19986
 
19816
19987
 
19817
19988
 
19818
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
19819
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
19820
- var $replace = functionBind.call(Function.call, String.prototype.replace);
19821
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
19822
- var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
19989
+ var $concat = functionBind.call(functionCall, Array.prototype.concat);
19990
+ var $spliceApply = functionBind.call(functionApply, Array.prototype.splice);
19991
+ var $replace = functionBind.call(functionCall, String.prototype.replace);
19992
+ var $strSlice = functionBind.call(functionCall, String.prototype.slice);
19993
+ var $exec = functionBind.call(functionCall, RegExp.prototype.exec);
19823
19994
 
19824
19995
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
19825
19996
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -19921,8 +20092,8 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
19921
20092
  }
19922
20093
  return void undefined$1;
19923
20094
  }
19924
- if ($gOPD && (i + 1) >= parts.length) {
19925
- var desc = $gOPD(value, part);
20095
+ if (gopd && (i + 1) >= parts.length) {
20096
+ var desc = gopd(value, part);
19926
20097
  isOwn = !!desc;
19927
20098
 
19928
20099
  // By convention, when a data property is converted to an accessor
@@ -19950,144 +20121,6 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
19950
20121
  return value;
19951
20122
  };
19952
20123
 
19953
- /** @type {import('.')} */
19954
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true) || false;
19955
- if ($defineProperty) {
19956
- try {
19957
- $defineProperty({}, 'a', { value: 1 });
19958
- } catch (e) {
19959
- // IE 8 has a broken defineProperty
19960
- $defineProperty = false;
19961
- }
19962
- }
19963
-
19964
- var esDefineProperty = $defineProperty;
19965
-
19966
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
19967
-
19968
- if ($gOPD$1) {
19969
- try {
19970
- $gOPD$1([], 'length');
19971
- } catch (e) {
19972
- // IE 8 has a broken gOPD
19973
- $gOPD$1 = null;
19974
- }
19975
- }
19976
-
19977
- var gopd = $gOPD$1;
19978
-
19979
- /** @type {import('.')} */
19980
- var defineDataProperty = function defineDataProperty(
19981
- obj,
19982
- property,
19983
- value
19984
- ) {
19985
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
19986
- throw new type('`obj` must be an object or a function`');
19987
- }
19988
- if (typeof property !== 'string' && typeof property !== 'symbol') {
19989
- throw new type('`property` must be a string or a symbol`');
19990
- }
19991
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
19992
- throw new type('`nonEnumerable`, if provided, must be a boolean or null');
19993
- }
19994
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
19995
- throw new type('`nonWritable`, if provided, must be a boolean or null');
19996
- }
19997
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
19998
- throw new type('`nonConfigurable`, if provided, must be a boolean or null');
19999
- }
20000
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
20001
- throw new type('`loose`, if provided, must be a boolean');
20002
- }
20003
-
20004
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
20005
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
20006
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
20007
- var loose = arguments.length > 6 ? arguments[6] : false;
20008
-
20009
- /* @type {false | TypedPropertyDescriptor<unknown>} */
20010
- var desc = !!gopd && gopd(obj, property);
20011
-
20012
- if (esDefineProperty) {
20013
- esDefineProperty(obj, property, {
20014
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
20015
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
20016
- value: value,
20017
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
20018
- });
20019
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
20020
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
20021
- obj[property] = value; // eslint-disable-line no-param-reassign
20022
- } else {
20023
- throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
20024
- }
20025
- };
20026
-
20027
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
20028
- return !!esDefineProperty;
20029
- };
20030
-
20031
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
20032
- // node v0.6 has a bug where array lengths can be Set but not Defined
20033
- if (!esDefineProperty) {
20034
- return null;
20035
- }
20036
- try {
20037
- return esDefineProperty([], 'length', { value: 1 }).length !== 1;
20038
- } catch (e) {
20039
- // In Firefox 4-22, defining length on an array throws an exception.
20040
- return true;
20041
- }
20042
- };
20043
-
20044
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
20045
-
20046
- var hasSymbols$2 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
20047
-
20048
- var toStr$3 = Object.prototype.toString;
20049
- var concat = Array.prototype.concat;
20050
-
20051
-
20052
- var isFunction = function (fn) {
20053
- return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
20054
- };
20055
-
20056
- var supportsDescriptors = hasPropertyDescriptors_1();
20057
-
20058
- var defineProperty = function (object, name, value, predicate) {
20059
- if (name in object) {
20060
- if (predicate === true) {
20061
- if (object[name] === value) {
20062
- return;
20063
- }
20064
- } else if (!isFunction(predicate) || !predicate()) {
20065
- return;
20066
- }
20067
- }
20068
-
20069
- if (supportsDescriptors) {
20070
- defineDataProperty(object, name, value, true);
20071
- } else {
20072
- defineDataProperty(object, name, value);
20073
- }
20074
- };
20075
-
20076
- var defineProperties = function (object, map) {
20077
- var predicates = arguments.length > 2 ? arguments[2] : {};
20078
- var props = objectKeys(map);
20079
- if (hasSymbols$2) {
20080
- props = concat.call(props, Object.getOwnPropertySymbols(map));
20081
- }
20082
- for (var i = 0; i < props.length; i += 1) {
20083
- defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
20084
- }
20085
- };
20086
-
20087
- defineProperties.supportsDescriptors = !!supportsDescriptors;
20088
-
20089
- var defineProperties_1 = defineProperties;
20090
-
20091
20124
  var hasDescriptors = hasPropertyDescriptors_1();
20092
20125
 
20093
20126
 
@@ -20185,6 +20218,20 @@ var isInteger = function isInteger(argument) {
20185
20218
  return $floor$1(absValue) === absValue;
20186
20219
  };
20187
20220
 
20221
+ var test = {
20222
+ __proto__: null,
20223
+ foo: {}
20224
+ };
20225
+
20226
+ var $Object$1 = Object;
20227
+
20228
+ /** @type {import('.')} */
20229
+ var hasProto = function hasProto() {
20230
+ // @ts-expect-error: TS errors on an inherited property for some reason
20231
+ return { __proto__: test }.foo === test.foo
20232
+ && !(test instanceof $Object$1);
20233
+ };
20234
+
20188
20235
  var $ArrayPrototype = getIntrinsic('%Array.prototype%');
20189
20236
 
20190
20237
 
@@ -20194,10 +20241,10 @@ var $ArrayPrototype = getIntrinsic('%Array.prototype%');
20194
20241
 
20195
20242
  var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
20196
20243
 
20197
- var hasProto$2 = hasProto();
20244
+ var hasProto$1 = hasProto();
20198
20245
 
20199
20246
  var $setProto = getIntrinsic('%Object.setPrototypeOf%', true) || (
20200
- hasProto$2
20247
+ hasProto$1
20201
20248
  ? function (O, proto) {
20202
20249
  O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
20203
20250
  return O;
@@ -20996,10 +21043,10 @@ var SameValue = function SameValue(x, y) {
20996
21043
  var ToBoolean = function ToBoolean(value) { return !!value; };
20997
21044
 
20998
21045
  var fnToStr = Function.prototype.toString;
20999
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
21046
+ var reflectApply$1 = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
21000
21047
  var badArrayLike;
21001
21048
  var isCallableMarker;
21002
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
21049
+ if (typeof reflectApply$1 === 'function' && typeof Object.defineProperty === 'function') {
21003
21050
  try {
21004
21051
  badArrayLike = Object.defineProperty({}, 'length', {
21005
21052
  get: function () {
@@ -21008,14 +21055,14 @@ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'func
21008
21055
  });
21009
21056
  isCallableMarker = {};
21010
21057
  // eslint-disable-next-line no-throw-literal
21011
- reflectApply(function () { throw 42; }, null, badArrayLike);
21058
+ reflectApply$1(function () { throw 42; }, null, badArrayLike);
21012
21059
  } catch (_) {
21013
21060
  if (_ !== isCallableMarker) {
21014
- reflectApply = null;
21061
+ reflectApply$1 = null;
21015
21062
  }
21016
21063
  }
21017
21064
  } else {
21018
- reflectApply = null;
21065
+ reflectApply$1 = null;
21019
21066
  }
21020
21067
 
21021
21068
  var constructorRegex = /^\s*class\b/;
@@ -21072,13 +21119,13 @@ if (typeof document === 'object') {
21072
21119
  }
21073
21120
  }
21074
21121
 
21075
- var isCallable = reflectApply
21122
+ var isCallable = reflectApply$1
21076
21123
  ? function isCallable(value) {
21077
21124
  if (isDDA(value)) { return true; }
21078
21125
  if (!value) { return false; }
21079
21126
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
21080
21127
  try {
21081
- reflectApply(value, null, badArrayLike);
21128
+ reflectApply$1(value, null, badArrayLike);
21082
21129
  } catch (e) {
21083
21130
  if (e !== isCallableMarker) { return false; }
21084
21131
  }
@@ -21601,12 +21648,65 @@ var isDateObject = function isDateObject(value) {
21601
21648
  return hasToStringTag$1 ? tryDateObject(value) : toStr$7.call(value) === dateClass;
21602
21649
  };
21603
21650
 
21651
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
21652
+ var shams$2 = function hasSymbols() {
21653
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
21654
+ if (typeof Symbol.iterator === 'symbol') { return true; }
21655
+
21656
+ var obj = {};
21657
+ var sym = Symbol('test');
21658
+ var symObj = Object(sym);
21659
+ if (typeof sym === 'string') { return false; }
21660
+
21661
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
21662
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
21663
+
21664
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
21665
+ // if (sym instanceof Symbol) { return false; }
21666
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
21667
+ // if (!(symObj instanceof Symbol)) { return false; }
21668
+
21669
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
21670
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
21671
+
21672
+ var symVal = 42;
21673
+ obj[sym] = symVal;
21674
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
21675
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
21676
+
21677
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
21678
+
21679
+ var syms = Object.getOwnPropertySymbols(obj);
21680
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
21681
+
21682
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
21683
+
21684
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
21685
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
21686
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
21687
+ }
21688
+
21689
+ return true;
21690
+ };
21691
+
21692
+ var origSymbol$1 = typeof Symbol !== 'undefined' && Symbol;
21693
+
21694
+
21695
+ var hasSymbols$3 = function hasNativeSymbols() {
21696
+ if (typeof origSymbol$1 !== 'function') { return false; }
21697
+ if (typeof Symbol !== 'function') { return false; }
21698
+ if (typeof origSymbol$1('foo') !== 'symbol') { return false; }
21699
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
21700
+
21701
+ return shams$2();
21702
+ };
21703
+
21604
21704
  var isSymbol$1 = createCommonjsModule(function (module) {
21605
21705
 
21606
21706
  var toStr = Object.prototype.toString;
21607
- var hasSymbols$1 = hasSymbols();
21707
+ var hasSymbols = hasSymbols$3();
21608
21708
 
21609
- if (hasSymbols$1) {
21709
+ if (hasSymbols) {
21610
21710
  var symToStr = Symbol.prototype.toString;
21611
21711
  var symStringRegex = /^Symbol\(.*\)$/;
21612
21712
  var isSymbolObject = function isRealSymbolObject(value) {
@@ -21638,7 +21738,7 @@ if (hasSymbols$1) {
21638
21738
  }
21639
21739
  });
21640
21740
 
21641
- var hasSymbols$3 = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
21741
+ var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
21642
21742
 
21643
21743
 
21644
21744
 
@@ -21692,7 +21792,7 @@ var es2015 = function ToPrimitive(input) {
21692
21792
  }
21693
21793
 
21694
21794
  var exoticToPrim;
21695
- if (hasSymbols$3) {
21795
+ if (hasSymbols$4) {
21696
21796
  if (Symbol.toPrimitive) {
21697
21797
  exoticToPrim = GetMethod(input, Symbol.toPrimitive);
21698
21798
  } else if (isSymbol$1(input)) {
@@ -21746,7 +21846,7 @@ if (hasToStringTag$2) {
21746
21846
  }
21747
21847
 
21748
21848
  var $toString = callBound('Object.prototype.toString');
21749
- var gOPD = Object.getOwnPropertyDescriptor;
21849
+ var gOPD$1 = Object.getOwnPropertyDescriptor;
21750
21850
  var regexClass = '[object RegExp]';
21751
21851
 
21752
21852
  var isRegex = hasToStringTag$2
@@ -21756,7 +21856,7 @@ var isRegex = hasToStringTag$2
21756
21856
  return false;
21757
21857
  }
21758
21858
 
21759
- var descriptor = gOPD(value, 'lastIndex');
21859
+ var descriptor = gOPD$1(value, 'lastIndex');
21760
21860
  var hasLastIndexDataProperty = descriptor && has$2(descriptor, 'value');
21761
21861
  if (!hasLastIndexDataProperty) {
21762
21862
  return false;