@qubit-ltd/common-decorator 3.10.3 → 3.10.5

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 (40) hide show
  1. package/dist/common-decorator.cjs +2149 -1671
  2. package/dist/common-decorator.cjs.map +1 -1
  3. package/dist/common-decorator.min.cjs +1 -1
  4. package/dist/common-decorator.min.cjs.map +1 -1
  5. package/dist/common-decorator.min.mjs +1 -1
  6. package/dist/common-decorator.min.mjs.map +1 -1
  7. package/dist/common-decorator.mjs +2149 -1671
  8. package/dist/common-decorator.mjs.map +1 -1
  9. package/doc/api/DefaultAssignmentOptions.html +5 -5
  10. package/doc/api/DefaultOptions.html +6 -6
  11. package/doc/api/DefaultToJsonOptions.html +3 -3
  12. package/doc/api/Enum.html +4 -4
  13. package/doc/api/Model.html +4 -4
  14. package/doc/api/Page.html +3 -3
  15. package/doc/api/global.html +15 -15
  16. package/doc/api/index.html +4 -4
  17. package/doc/api/scripts/core.js +719 -726
  18. package/doc/api/scripts/core.min.js +23 -23
  19. package/doc/api/scripts/resize.js +90 -90
  20. package/doc/api/scripts/search.js +267 -265
  21. package/doc/api/scripts/search.min.js +5 -5
  22. package/doc/api/scripts/third-party/Apache-License-2.0.txt +202 -202
  23. package/doc/api/scripts/third-party/fuse.js +1749 -9
  24. package/doc/api/scripts/third-party/hljs-line-num-original.js +367 -369
  25. package/doc/api/scripts/third-party/hljs-line-num.js +1 -1
  26. package/doc/api/scripts/third-party/hljs-original.js +5260 -5171
  27. package/doc/api/scripts/third-party/hljs.js +1 -1
  28. package/doc/api/scripts/third-party/popper.js +1287 -5
  29. package/doc/api/scripts/third-party/tippy.js +1499 -1
  30. package/doc/api/scripts/third-party/tocbot.js +757 -672
  31. package/doc/api/scripts/third-party/tocbot.min.js +1 -1
  32. package/doc/api/styles/clean-jsdoc-theme-base.css +1257 -1159
  33. package/doc/api/styles/clean-jsdoc-theme-dark.css +412 -412
  34. package/doc/api/styles/clean-jsdoc-theme-light.css +482 -482
  35. package/doc/api/styles/clean-jsdoc-theme-scrollbar.css +29 -29
  36. package/doc/api/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -1
  37. package/doc/api/styles/clean-jsdoc-theme.min.css +1 -1
  38. package/doc/common-decorator.min.visualization.html +15 -15
  39. package/doc/common-decorator.visualization.html +15 -15
  40. package/package.json +42 -41
@@ -94,10 +94,10 @@ function requireSharedStore () {
94
94
  var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
95
95
 
96
96
  (store.versions || (store.versions = [])).push({
97
- version: '3.41.0',
97
+ version: '3.45.1',
98
98
  mode: IS_PURE ? 'pure' : 'global',
99
99
  copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
100
- license: 'https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE',
100
+ license: 'https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE',
101
101
  source: 'https://github.com/zloirock/core-js'
102
102
  });
103
103
  return sharedStore.exports;
@@ -252,7 +252,7 @@ function requireUid () {
252
252
 
253
253
  var id = 0;
254
254
  var postfix = Math.random();
255
- var toString = uncurryThis(1.0.toString);
255
+ var toString = uncurryThis(1.1.toString);
256
256
 
257
257
  uid = function (key) {
258
258
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
@@ -4400,15 +4400,15 @@ function requireUri () {
4400
4400
  return uri;
4401
4401
  }
4402
4402
 
4403
- var shams$5;
4404
- var hasRequiredShams$5;
4403
+ var shams$3;
4404
+ var hasRequiredShams$3;
4405
4405
 
4406
- function requireShams$5 () {
4407
- if (hasRequiredShams$5) return shams$5;
4408
- hasRequiredShams$5 = 1;
4406
+ function requireShams$3 () {
4407
+ if (hasRequiredShams$3) return shams$3;
4408
+ hasRequiredShams$3 = 1;
4409
4409
 
4410
4410
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
4411
- shams$5 = function hasSymbols() {
4411
+ shams$3 = function hasSymbols() {
4412
4412
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
4413
4413
  if (typeof Symbol.iterator === 'symbol') { return true; }
4414
4414
 
@@ -4447,20 +4447,20 @@ function requireShams$5 () {
4447
4447
 
4448
4448
  return true;
4449
4449
  };
4450
- return shams$5;
4450
+ return shams$3;
4451
4451
  }
4452
4452
 
4453
- var hasSymbols$3;
4454
- var hasRequiredHasSymbols$3;
4453
+ var hasSymbols$1;
4454
+ var hasRequiredHasSymbols$1;
4455
4455
 
4456
- function requireHasSymbols$3 () {
4457
- if (hasRequiredHasSymbols$3) return hasSymbols$3;
4458
- hasRequiredHasSymbols$3 = 1;
4456
+ function requireHasSymbols$1 () {
4457
+ if (hasRequiredHasSymbols$1) return hasSymbols$1;
4458
+ hasRequiredHasSymbols$1 = 1;
4459
4459
 
4460
4460
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
4461
- var hasSymbolSham = requireShams$5();
4461
+ var hasSymbolSham = requireShams$3();
4462
4462
 
4463
- hasSymbols$3 = function hasNativeSymbols() {
4463
+ hasSymbols$1 = function hasNativeSymbols() {
4464
4464
  if (typeof origSymbol !== 'function') { return false; }
4465
4465
  if (typeof Symbol !== 'function') { return false; }
4466
4466
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -4468,7 +4468,7 @@ function requireHasSymbols$3 () {
4468
4468
 
4469
4469
  return hasSymbolSham();
4470
4470
  };
4471
- return hasSymbols$3;
4471
+ return hasSymbols$1;
4472
4472
  }
4473
4473
 
4474
4474
  var hasProto;
@@ -4615,12 +4615,12 @@ function requireHasown () {
4615
4615
  return hasown;
4616
4616
  }
4617
4617
 
4618
- var getIntrinsic$3;
4619
- var hasRequiredGetIntrinsic$3;
4618
+ var getIntrinsic$5;
4619
+ var hasRequiredGetIntrinsic$5;
4620
4620
 
4621
- function requireGetIntrinsic$3 () {
4622
- if (hasRequiredGetIntrinsic$3) return getIntrinsic$3;
4623
- hasRequiredGetIntrinsic$3 = 1;
4621
+ function requireGetIntrinsic$5 () {
4622
+ if (hasRequiredGetIntrinsic$5) return getIntrinsic$5;
4623
+ hasRequiredGetIntrinsic$5 = 1;
4624
4624
 
4625
4625
  var undefined$1;
4626
4626
 
@@ -4670,7 +4670,7 @@ function requireGetIntrinsic$3 () {
4670
4670
  }())
4671
4671
  : throwTypeError;
4672
4672
 
4673
- var hasSymbols = requireHasSymbols$3()();
4673
+ var hasSymbols = requireHasSymbols$1()();
4674
4674
  var hasProto = /*@__PURE__*/ requireHasProto()();
4675
4675
 
4676
4676
  var getProto = Object.getPrototypeOf || (
@@ -4897,7 +4897,7 @@ function requireGetIntrinsic$3 () {
4897
4897
  throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
4898
4898
  };
4899
4899
 
4900
- getIntrinsic$3 = function GetIntrinsic(name, allowMissing) {
4900
+ getIntrinsic$5 = function GetIntrinsic(name, allowMissing) {
4901
4901
  if (typeof name !== 'string' || name.length === 0) {
4902
4902
  throw new $TypeError('intrinsic name must be a non-empty string');
4903
4903
  }
@@ -4949,7 +4949,7 @@ function requireGetIntrinsic$3 () {
4949
4949
  if (!allowMissing) {
4950
4950
  throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
4951
4951
  }
4952
- return void 0;
4952
+ return void undefined$1;
4953
4953
  }
4954
4954
  if ($gOPD && (i + 1) >= parts.length) {
4955
4955
  var desc = $gOPD(value, part);
@@ -4979,17 +4979,17 @@ function requireGetIntrinsic$3 () {
4979
4979
  }
4980
4980
  return value;
4981
4981
  };
4982
- return getIntrinsic$3;
4982
+ return getIntrinsic$5;
4983
4983
  }
4984
4984
 
4985
- var esDefineProperty$3;
4986
- var hasRequiredEsDefineProperty$3;
4985
+ var esDefineProperty$1;
4986
+ var hasRequiredEsDefineProperty$1;
4987
4987
 
4988
- function requireEsDefineProperty$3 () {
4989
- if (hasRequiredEsDefineProperty$3) return esDefineProperty$3;
4990
- hasRequiredEsDefineProperty$3 = 1;
4988
+ function requireEsDefineProperty$1 () {
4989
+ if (hasRequiredEsDefineProperty$1) return esDefineProperty$1;
4990
+ hasRequiredEsDefineProperty$1 = 1;
4991
4991
 
4992
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$3();
4992
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$5();
4993
4993
 
4994
4994
  /** @type {import('.')} */
4995
4995
  var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
@@ -5002,600 +5002,1107 @@ function requireEsDefineProperty$3 () {
5002
5002
  }
5003
5003
  }
5004
5004
 
5005
- esDefineProperty$3 = $defineProperty;
5006
- return esDefineProperty$3;
5005
+ esDefineProperty$1 = $defineProperty;
5006
+ return esDefineProperty$1;
5007
5007
  }
5008
5008
 
5009
- var gopd$4;
5010
- var hasRequiredGopd$4;
5009
+ var getIntrinsic$4;
5010
+ var hasRequiredGetIntrinsic$4;
5011
5011
 
5012
- function requireGopd$4 () {
5013
- if (hasRequiredGopd$4) return gopd$4;
5014
- hasRequiredGopd$4 = 1;
5012
+ function requireGetIntrinsic$4 () {
5013
+ if (hasRequiredGetIntrinsic$4) return getIntrinsic$4;
5014
+ hasRequiredGetIntrinsic$4 = 1;
5015
5015
 
5016
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$3();
5016
+ var undefined$1;
5017
5017
 
5018
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
5018
+ var $Error = /*@__PURE__*/ requireEsErrors();
5019
+ var $EvalError = /*@__PURE__*/ require_eval();
5020
+ var $RangeError = /*@__PURE__*/ requireRange();
5021
+ var $ReferenceError = /*@__PURE__*/ requireRef();
5022
+ var $SyntaxError = /*@__PURE__*/ requireSyntax();
5023
+ var $TypeError = /*@__PURE__*/ requireType();
5024
+ var $URIError = /*@__PURE__*/ requireUri();
5025
+
5026
+ var $Function = Function;
5019
5027
 
5028
+ // eslint-disable-next-line consistent-return
5029
+ var getEvalledConstructor = function (expressionSyntax) {
5030
+ try {
5031
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
5032
+ } catch (e) {}
5033
+ };
5034
+
5035
+ var $gOPD = Object.getOwnPropertyDescriptor;
5020
5036
  if ($gOPD) {
5021
5037
  try {
5022
- $gOPD([], 'length');
5038
+ $gOPD({}, '');
5023
5039
  } catch (e) {
5024
- // IE 8 has a broken gOPD
5025
- $gOPD = null;
5040
+ $gOPD = null; // this is IE 8, which has a broken gOPD
5026
5041
  }
5027
5042
  }
5028
5043
 
5029
- gopd$4 = $gOPD;
5030
- return gopd$4;
5031
- }
5044
+ var throwTypeError = function () {
5045
+ throw new $TypeError();
5046
+ };
5047
+ var ThrowTypeError = $gOPD
5048
+ ? (function () {
5049
+ try {
5050
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
5051
+ arguments.callee; // IE 8 does not throw here
5052
+ return throwTypeError;
5053
+ } catch (calleeThrows) {
5054
+ try {
5055
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
5056
+ return $gOPD(arguments, 'callee').get;
5057
+ } catch (gOPDthrows) {
5058
+ return throwTypeError;
5059
+ }
5060
+ }
5061
+ }())
5062
+ : throwTypeError;
5032
5063
 
5033
- var defineDataProperty;
5034
- var hasRequiredDefineDataProperty;
5064
+ var hasSymbols = requireHasSymbols$1()();
5065
+ var hasProto = /*@__PURE__*/ requireHasProto()();
5035
5066
 
5036
- function requireDefineDataProperty () {
5037
- if (hasRequiredDefineDataProperty) return defineDataProperty;
5038
- hasRequiredDefineDataProperty = 1;
5067
+ var getProto = Object.getPrototypeOf || (
5068
+ hasProto
5069
+ ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
5070
+ : null
5071
+ );
5039
5072
 
5040
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$3();
5073
+ var needsEval = {};
5041
5074
 
5042
- var $SyntaxError = /*@__PURE__*/ requireSyntax();
5043
- var $TypeError = /*@__PURE__*/ requireType();
5075
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
5044
5076
 
5045
- var gopd = /*@__PURE__*/ requireGopd$4();
5077
+ var INTRINSICS = {
5078
+ __proto__: null,
5079
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
5080
+ '%Array%': Array,
5081
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
5082
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
5083
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
5084
+ '%AsyncFunction%': needsEval,
5085
+ '%AsyncGenerator%': needsEval,
5086
+ '%AsyncGeneratorFunction%': needsEval,
5087
+ '%AsyncIteratorPrototype%': needsEval,
5088
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
5089
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
5090
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
5091
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
5092
+ '%Boolean%': Boolean,
5093
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
5094
+ '%Date%': Date,
5095
+ '%decodeURI%': decodeURI,
5096
+ '%decodeURIComponent%': decodeURIComponent,
5097
+ '%encodeURI%': encodeURI,
5098
+ '%encodeURIComponent%': encodeURIComponent,
5099
+ '%Error%': $Error,
5100
+ '%eval%': eval, // eslint-disable-line no-eval
5101
+ '%EvalError%': $EvalError,
5102
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
5103
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
5104
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
5105
+ '%Function%': $Function,
5106
+ '%GeneratorFunction%': needsEval,
5107
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
5108
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
5109
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
5110
+ '%isFinite%': isFinite,
5111
+ '%isNaN%': isNaN,
5112
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
5113
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
5114
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
5115
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
5116
+ '%Math%': Math,
5117
+ '%Number%': Number,
5118
+ '%Object%': Object,
5119
+ '%parseFloat%': parseFloat,
5120
+ '%parseInt%': parseInt,
5121
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
5122
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
5123
+ '%RangeError%': $RangeError,
5124
+ '%ReferenceError%': $ReferenceError,
5125
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
5126
+ '%RegExp%': RegExp,
5127
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
5128
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
5129
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
5130
+ '%String%': String,
5131
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
5132
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
5133
+ '%SyntaxError%': $SyntaxError,
5134
+ '%ThrowTypeError%': ThrowTypeError,
5135
+ '%TypedArray%': TypedArray,
5136
+ '%TypeError%': $TypeError,
5137
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
5138
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
5139
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
5140
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
5141
+ '%URIError%': $URIError,
5142
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
5143
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
5144
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
5145
+ };
5046
5146
 
5047
- /** @type {import('.')} */
5048
- defineDataProperty = function defineDataProperty(
5049
- obj,
5050
- property,
5051
- value
5052
- ) {
5053
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
5054
- throw new $TypeError('`obj` must be an object or a function`');
5055
- }
5056
- if (typeof property !== 'string' && typeof property !== 'symbol') {
5057
- throw new $TypeError('`property` must be a string or a symbol`');
5058
- }
5059
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
5060
- throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
5061
- }
5062
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
5063
- throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
5064
- }
5065
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
5066
- throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
5067
- }
5068
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
5069
- throw new $TypeError('`loose`, if provided, must be a boolean');
5147
+ if (getProto) {
5148
+ try {
5149
+ null.error; // eslint-disable-line no-unused-expressions
5150
+ } catch (e) {
5151
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
5152
+ var errorProto = getProto(getProto(e));
5153
+ INTRINSICS['%Error.prototype%'] = errorProto;
5070
5154
  }
5155
+ }
5071
5156
 
5072
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
5073
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
5074
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
5075
- var loose = arguments.length > 6 ? arguments[6] : false;
5076
-
5077
- /* @type {false | TypedPropertyDescriptor<unknown>} */
5078
- var desc = !!gopd && gopd(obj, property);
5079
-
5080
- if ($defineProperty) {
5081
- $defineProperty(obj, property, {
5082
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
5083
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
5084
- value: value,
5085
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
5086
- });
5087
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
5088
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
5089
- obj[property] = value; // eslint-disable-line no-param-reassign
5090
- } else {
5091
- throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
5157
+ var doEval = function doEval(name) {
5158
+ var value;
5159
+ if (name === '%AsyncFunction%') {
5160
+ value = getEvalledConstructor('async function () {}');
5161
+ } else if (name === '%GeneratorFunction%') {
5162
+ value = getEvalledConstructor('function* () {}');
5163
+ } else if (name === '%AsyncGeneratorFunction%') {
5164
+ value = getEvalledConstructor('async function* () {}');
5165
+ } else if (name === '%AsyncGenerator%') {
5166
+ var fn = doEval('%AsyncGeneratorFunction%');
5167
+ if (fn) {
5168
+ value = fn.prototype;
5169
+ }
5170
+ } else if (name === '%AsyncIteratorPrototype%') {
5171
+ var gen = doEval('%AsyncGenerator%');
5172
+ if (gen && getProto) {
5173
+ value = getProto(gen.prototype);
5174
+ }
5092
5175
  }
5093
- };
5094
- return defineDataProperty;
5095
- }
5096
-
5097
- var hasPropertyDescriptors_1;
5098
- var hasRequiredHasPropertyDescriptors;
5099
-
5100
- function requireHasPropertyDescriptors () {
5101
- if (hasRequiredHasPropertyDescriptors) return hasPropertyDescriptors_1;
5102
- hasRequiredHasPropertyDescriptors = 1;
5103
5176
 
5104
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$3();
5177
+ INTRINSICS[name] = value;
5105
5178
 
5106
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
5107
- return !!$defineProperty;
5179
+ return value;
5108
5180
  };
5109
5181
 
5110
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
5111
- // node v0.6 has a bug where array lengths can be Set but not Defined
5112
- if (!$defineProperty) {
5113
- return null;
5114
- }
5115
- try {
5116
- return $defineProperty([], 'length', { value: 1 }).length !== 1;
5117
- } catch (e) {
5118
- // In Firefox 4-22, defining length on an array throws an exception.
5119
- return true;
5120
- }
5182
+ var LEGACY_ALIASES = {
5183
+ __proto__: null,
5184
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
5185
+ '%ArrayPrototype%': ['Array', 'prototype'],
5186
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
5187
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
5188
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
5189
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
5190
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
5191
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
5192
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
5193
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
5194
+ '%DataViewPrototype%': ['DataView', 'prototype'],
5195
+ '%DatePrototype%': ['Date', 'prototype'],
5196
+ '%ErrorPrototype%': ['Error', 'prototype'],
5197
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
5198
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
5199
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
5200
+ '%FunctionPrototype%': ['Function', 'prototype'],
5201
+ '%Generator%': ['GeneratorFunction', 'prototype'],
5202
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
5203
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
5204
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
5205
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
5206
+ '%JSONParse%': ['JSON', 'parse'],
5207
+ '%JSONStringify%': ['JSON', 'stringify'],
5208
+ '%MapPrototype%': ['Map', 'prototype'],
5209
+ '%NumberPrototype%': ['Number', 'prototype'],
5210
+ '%ObjectPrototype%': ['Object', 'prototype'],
5211
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
5212
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
5213
+ '%PromisePrototype%': ['Promise', 'prototype'],
5214
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
5215
+ '%Promise_all%': ['Promise', 'all'],
5216
+ '%Promise_reject%': ['Promise', 'reject'],
5217
+ '%Promise_resolve%': ['Promise', 'resolve'],
5218
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
5219
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
5220
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
5221
+ '%SetPrototype%': ['Set', 'prototype'],
5222
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
5223
+ '%StringPrototype%': ['String', 'prototype'],
5224
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
5225
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
5226
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
5227
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
5228
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
5229
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
5230
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
5231
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
5232
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
5233
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
5234
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
5121
5235
  };
5122
5236
 
5123
- hasPropertyDescriptors_1 = hasPropertyDescriptors;
5124
- return hasPropertyDescriptors_1;
5125
- }
5126
-
5127
- var defineProperties_1;
5128
- var hasRequiredDefineProperties;
5129
-
5130
- function requireDefineProperties () {
5131
- if (hasRequiredDefineProperties) return defineProperties_1;
5132
- hasRequiredDefineProperties = 1;
5133
-
5134
- var keys = requireObjectKeys();
5135
- var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
5136
-
5137
- var toStr = Object.prototype.toString;
5138
- var concat = Array.prototype.concat;
5139
- var defineDataProperty = /*@__PURE__*/ requireDefineDataProperty();
5237
+ var bind = requireFunctionBind();
5238
+ var hasOwn = /*@__PURE__*/ requireHasown();
5239
+ var $concat = bind.call(Function.call, Array.prototype.concat);
5240
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
5241
+ var $replace = bind.call(Function.call, String.prototype.replace);
5242
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
5243
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
5140
5244
 
5141
- var isFunction = function (fn) {
5142
- return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
5245
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
5246
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
5247
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
5248
+ var stringToPath = function stringToPath(string) {
5249
+ var first = $strSlice(string, 0, 1);
5250
+ var last = $strSlice(string, -1);
5251
+ if (first === '%' && last !== '%') {
5252
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
5253
+ } else if (last === '%' && first !== '%') {
5254
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
5255
+ }
5256
+ var result = [];
5257
+ $replace(string, rePropName, function (match, number, quote, subString) {
5258
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
5259
+ });
5260
+ return result;
5143
5261
  };
5262
+ /* end adaptation */
5144
5263
 
5145
- var supportsDescriptors = /*@__PURE__*/ requireHasPropertyDescriptors()();
5264
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
5265
+ var intrinsicName = name;
5266
+ var alias;
5267
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
5268
+ alias = LEGACY_ALIASES[intrinsicName];
5269
+ intrinsicName = '%' + alias[0] + '%';
5270
+ }
5146
5271
 
5147
- var defineProperty = function (object, name, value, predicate) {
5148
- if (name in object) {
5149
- if (predicate === true) {
5150
- if (object[name] === value) {
5151
- return;
5152
- }
5153
- } else if (!isFunction(predicate) || !predicate()) {
5154
- return;
5272
+ if (hasOwn(INTRINSICS, intrinsicName)) {
5273
+ var value = INTRINSICS[intrinsicName];
5274
+ if (value === needsEval) {
5275
+ value = doEval(intrinsicName);
5276
+ }
5277
+ if (typeof value === 'undefined' && !allowMissing) {
5278
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
5155
5279
  }
5156
- }
5157
5280
 
5158
- if (supportsDescriptors) {
5159
- defineDataProperty(object, name, value, true);
5160
- } else {
5161
- defineDataProperty(object, name, value);
5281
+ return {
5282
+ alias: alias,
5283
+ name: intrinsicName,
5284
+ value: value
5285
+ };
5162
5286
  }
5287
+
5288
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
5163
5289
  };
5164
5290
 
5165
- var defineProperties = function (object, map) {
5166
- var predicates = arguments.length > 2 ? arguments[2] : {};
5167
- var props = keys(map);
5168
- if (hasSymbols) {
5169
- props = concat.call(props, Object.getOwnPropertySymbols(map));
5291
+ getIntrinsic$4 = function GetIntrinsic(name, allowMissing) {
5292
+ if (typeof name !== 'string' || name.length === 0) {
5293
+ throw new $TypeError('intrinsic name must be a non-empty string');
5170
5294
  }
5171
- for (var i = 0; i < props.length; i += 1) {
5172
- defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
5295
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
5296
+ throw new $TypeError('"allowMissing" argument must be a boolean');
5173
5297
  }
5174
- };
5175
5298
 
5176
- defineProperties.supportsDescriptors = !!supportsDescriptors;
5299
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
5300
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
5301
+ }
5302
+ var parts = stringToPath(name);
5303
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
5177
5304
 
5178
- defineProperties_1 = defineProperties;
5179
- return defineProperties_1;
5180
- }
5305
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
5306
+ var intrinsicRealName = intrinsic.name;
5307
+ var value = intrinsic.value;
5308
+ var skipFurtherCaching = false;
5181
5309
 
5182
- var callBind$4 = {exports: {}};
5310
+ var alias = intrinsic.alias;
5311
+ if (alias) {
5312
+ intrinsicBaseName = alias[0];
5313
+ $spliceApply(parts, $concat([0, 1], alias));
5314
+ }
5183
5315
 
5184
- var setFunctionLength;
5185
- var hasRequiredSetFunctionLength;
5316
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
5317
+ var part = parts[i];
5318
+ var first = $strSlice(part, 0, 1);
5319
+ var last = $strSlice(part, -1);
5320
+ if (
5321
+ (
5322
+ (first === '"' || first === "'" || first === '`')
5323
+ || (last === '"' || last === "'" || last === '`')
5324
+ )
5325
+ && first !== last
5326
+ ) {
5327
+ throw new $SyntaxError('property names with quotes must have matching quotes');
5328
+ }
5329
+ if (part === 'constructor' || !isOwn) {
5330
+ skipFurtherCaching = true;
5331
+ }
5186
5332
 
5187
- function requireSetFunctionLength () {
5188
- if (hasRequiredSetFunctionLength) return setFunctionLength;
5189
- hasRequiredSetFunctionLength = 1;
5333
+ intrinsicBaseName += '.' + part;
5334
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
5190
5335
 
5191
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$3();
5192
- var define = /*@__PURE__*/ requireDefineDataProperty();
5193
- var hasDescriptors = /*@__PURE__*/ requireHasPropertyDescriptors()();
5194
- var gOPD = /*@__PURE__*/ requireGopd$4();
5336
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
5337
+ value = INTRINSICS[intrinsicRealName];
5338
+ } else if (value != null) {
5339
+ if (!(part in value)) {
5340
+ if (!allowMissing) {
5341
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
5342
+ }
5343
+ return void undefined$1;
5344
+ }
5345
+ if ($gOPD && (i + 1) >= parts.length) {
5346
+ var desc = $gOPD(value, part);
5347
+ isOwn = !!desc;
5195
5348
 
5196
- var $TypeError = /*@__PURE__*/ requireType();
5197
- var $floor = GetIntrinsic('%Math.floor%');
5349
+ // By convention, when a data property is converted to an accessor
5350
+ // property to emulate a data property that does not suffer from
5351
+ // the override mistake, that accessor's getter is marked with
5352
+ // an `originalValue` property. Here, when we detect this, we
5353
+ // uphold the illusion by pretending to see that original data
5354
+ // property, i.e., returning the value rather than the getter
5355
+ // itself.
5356
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
5357
+ value = desc.get;
5358
+ } else {
5359
+ value = value[part];
5360
+ }
5361
+ } else {
5362
+ isOwn = hasOwn(value, part);
5363
+ value = value[part];
5364
+ }
5198
5365
 
5199
- /** @type {import('.')} */
5200
- setFunctionLength = function setFunctionLength(fn, length) {
5201
- if (typeof fn !== 'function') {
5202
- throw new $TypeError('`fn` is not a function');
5203
- }
5204
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
5205
- throw new $TypeError('`length` must be a positive 32-bit integer');
5366
+ if (isOwn && !skipFurtherCaching) {
5367
+ INTRINSICS[intrinsicRealName] = value;
5368
+ }
5369
+ }
5206
5370
  }
5371
+ return value;
5372
+ };
5373
+ return getIntrinsic$4;
5374
+ }
5207
5375
 
5208
- var loose = arguments.length > 2 && !!arguments[2];
5376
+ var gopd$4;
5377
+ var hasRequiredGopd$4;
5209
5378
 
5210
- var functionLengthIsConfigurable = true;
5211
- var functionLengthIsWritable = true;
5212
- if ('length' in fn && gOPD) {
5213
- var desc = gOPD(fn, 'length');
5214
- if (desc && !desc.configurable) {
5215
- functionLengthIsConfigurable = false;
5216
- }
5217
- if (desc && !desc.writable) {
5218
- functionLengthIsWritable = false;
5219
- }
5220
- }
5379
+ function requireGopd$4 () {
5380
+ if (hasRequiredGopd$4) return gopd$4;
5381
+ hasRequiredGopd$4 = 1;
5221
5382
 
5222
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
5223
- if (hasDescriptors) {
5224
- define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
5225
- } else {
5226
- define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
5227
- }
5228
- }
5229
- return fn;
5230
- };
5231
- return setFunctionLength;
5232
- }
5383
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$4();
5233
5384
 
5234
- var functionCall;
5235
- var hasRequiredFunctionCall;
5385
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
5236
5386
 
5237
- function requireFunctionCall () {
5238
- if (hasRequiredFunctionCall) return functionCall;
5239
- hasRequiredFunctionCall = 1;
5387
+ if ($gOPD) {
5388
+ try {
5389
+ $gOPD([], 'length');
5390
+ } catch (e) {
5391
+ // IE 8 has a broken gOPD
5392
+ $gOPD = null;
5393
+ }
5394
+ }
5240
5395
 
5241
- /** @type {import('./functionCall')} */
5242
- functionCall = Function.prototype.call;
5243
- return functionCall;
5396
+ gopd$4 = $gOPD;
5397
+ return gopd$4;
5244
5398
  }
5245
5399
 
5246
- var functionApply;
5247
- var hasRequiredFunctionApply;
5248
-
5249
- function requireFunctionApply () {
5250
- if (hasRequiredFunctionApply) return functionApply;
5251
- hasRequiredFunctionApply = 1;
5252
-
5253
- /** @type {import('./functionApply')} */
5254
- functionApply = Function.prototype.apply;
5255
- return functionApply;
5256
- }
5400
+ var defineDataProperty;
5401
+ var hasRequiredDefineDataProperty;
5257
5402
 
5258
- var reflectApply;
5259
- var hasRequiredReflectApply;
5403
+ function requireDefineDataProperty () {
5404
+ if (hasRequiredDefineDataProperty) return defineDataProperty;
5405
+ hasRequiredDefineDataProperty = 1;
5260
5406
 
5261
- function requireReflectApply () {
5262
- if (hasRequiredReflectApply) return reflectApply;
5263
- hasRequiredReflectApply = 1;
5407
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$1();
5264
5408
 
5265
- /** @type {import('./reflectApply')} */
5266
- reflectApply = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
5267
- return reflectApply;
5268
- }
5409
+ var $SyntaxError = /*@__PURE__*/ requireSyntax();
5410
+ var $TypeError = /*@__PURE__*/ requireType();
5269
5411
 
5270
- var actualApply;
5271
- var hasRequiredActualApply;
5412
+ var gopd = /*@__PURE__*/ requireGopd$4();
5272
5413
 
5273
- function requireActualApply () {
5274
- if (hasRequiredActualApply) return actualApply;
5275
- hasRequiredActualApply = 1;
5414
+ /** @type {import('.')} */
5415
+ defineDataProperty = function defineDataProperty(
5416
+ obj,
5417
+ property,
5418
+ value
5419
+ ) {
5420
+ if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
5421
+ throw new $TypeError('`obj` must be an object or a function`');
5422
+ }
5423
+ if (typeof property !== 'string' && typeof property !== 'symbol') {
5424
+ throw new $TypeError('`property` must be a string or a symbol`');
5425
+ }
5426
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
5427
+ throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
5428
+ }
5429
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
5430
+ throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
5431
+ }
5432
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
5433
+ throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
5434
+ }
5435
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
5436
+ throw new $TypeError('`loose`, if provided, must be a boolean');
5437
+ }
5276
5438
 
5277
- var bind = requireFunctionBind();
5439
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
5440
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
5441
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
5442
+ var loose = arguments.length > 6 ? arguments[6] : false;
5278
5443
 
5279
- var $apply = requireFunctionApply();
5280
- var $call = requireFunctionCall();
5281
- var $reflectApply = requireReflectApply();
5444
+ /* @type {false | TypedPropertyDescriptor<unknown>} */
5445
+ var desc = !!gopd && gopd(obj, property);
5282
5446
 
5283
- /** @type {import('./actualApply')} */
5284
- actualApply = $reflectApply || bind.call($call, $apply);
5285
- return actualApply;
5447
+ if ($defineProperty) {
5448
+ $defineProperty(obj, property, {
5449
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
5450
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
5451
+ value: value,
5452
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
5453
+ });
5454
+ } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
5455
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
5456
+ obj[property] = value; // eslint-disable-line no-param-reassign
5457
+ } else {
5458
+ throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
5459
+ }
5460
+ };
5461
+ return defineDataProperty;
5286
5462
  }
5287
5463
 
5288
- var callBindApplyHelpers;
5289
- var hasRequiredCallBindApplyHelpers;
5464
+ var hasPropertyDescriptors_1;
5465
+ var hasRequiredHasPropertyDescriptors;
5290
5466
 
5291
- function requireCallBindApplyHelpers () {
5292
- if (hasRequiredCallBindApplyHelpers) return callBindApplyHelpers;
5293
- hasRequiredCallBindApplyHelpers = 1;
5467
+ function requireHasPropertyDescriptors () {
5468
+ if (hasRequiredHasPropertyDescriptors) return hasPropertyDescriptors_1;
5469
+ hasRequiredHasPropertyDescriptors = 1;
5294
5470
 
5295
- var bind = requireFunctionBind();
5296
- var $TypeError = /*@__PURE__*/ requireType();
5471
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$1();
5297
5472
 
5298
- var $call = requireFunctionCall();
5299
- var $actualApply = requireActualApply();
5473
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
5474
+ return !!$defineProperty;
5475
+ };
5300
5476
 
5301
- /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
5302
- callBindApplyHelpers = function callBindBasic(args) {
5303
- if (args.length < 1 || typeof args[0] !== 'function') {
5304
- throw new $TypeError('a function is required');
5477
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
5478
+ // node v0.6 has a bug where array lengths can be Set but not Defined
5479
+ if (!$defineProperty) {
5480
+ return null;
5481
+ }
5482
+ try {
5483
+ return $defineProperty([], 'length', { value: 1 }).length !== 1;
5484
+ } catch (e) {
5485
+ // In Firefox 4-22, defining length on an array throws an exception.
5486
+ return true;
5305
5487
  }
5306
- return $actualApply(bind, $call, args);
5307
5488
  };
5308
- return callBindApplyHelpers;
5489
+
5490
+ hasPropertyDescriptors_1 = hasPropertyDescriptors;
5491
+ return hasPropertyDescriptors_1;
5309
5492
  }
5310
5493
 
5311
- var applyBind;
5312
- var hasRequiredApplyBind;
5494
+ var defineProperties_1;
5495
+ var hasRequiredDefineProperties;
5313
5496
 
5314
- function requireApplyBind () {
5315
- if (hasRequiredApplyBind) return applyBind;
5316
- hasRequiredApplyBind = 1;
5497
+ function requireDefineProperties () {
5498
+ if (hasRequiredDefineProperties) return defineProperties_1;
5499
+ hasRequiredDefineProperties = 1;
5317
5500
 
5318
- var bind = requireFunctionBind();
5319
- var $apply = requireFunctionApply();
5320
- var actualApply = requireActualApply();
5501
+ var keys = requireObjectKeys();
5502
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
5321
5503
 
5322
- /** @type {import('./applyBind')} */
5323
- applyBind = function applyBind() {
5324
- return actualApply(bind, $apply, arguments);
5325
- };
5326
- return applyBind;
5327
- }
5504
+ var toStr = Object.prototype.toString;
5505
+ var concat = Array.prototype.concat;
5506
+ var defineDataProperty = /*@__PURE__*/ requireDefineDataProperty();
5328
5507
 
5329
- var hasRequiredCallBind$4;
5508
+ var isFunction = function (fn) {
5509
+ return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
5510
+ };
5330
5511
 
5331
- function requireCallBind$4 () {
5332
- if (hasRequiredCallBind$4) return callBind$4.exports;
5333
- hasRequiredCallBind$4 = 1;
5334
- (function (module) {
5512
+ var supportsDescriptors = /*@__PURE__*/ requireHasPropertyDescriptors()();
5335
5513
 
5336
- var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
5514
+ var defineProperty = function (object, name, value, predicate) {
5515
+ if (name in object) {
5516
+ if (predicate === true) {
5517
+ if (object[name] === value) {
5518
+ return;
5519
+ }
5520
+ } else if (!isFunction(predicate) || !predicate()) {
5521
+ return;
5522
+ }
5523
+ }
5337
5524
 
5338
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$3();
5525
+ if (supportsDescriptors) {
5526
+ defineDataProperty(object, name, value, true);
5527
+ } else {
5528
+ defineDataProperty(object, name, value);
5529
+ }
5530
+ };
5339
5531
 
5340
- var callBindBasic = requireCallBindApplyHelpers();
5341
- var applyBind = requireApplyBind();
5532
+ var defineProperties = function (object, map) {
5533
+ var predicates = arguments.length > 2 ? arguments[2] : {};
5534
+ var props = keys(map);
5535
+ if (hasSymbols) {
5536
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
5537
+ }
5538
+ for (var i = 0; i < props.length; i += 1) {
5539
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
5540
+ }
5541
+ };
5342
5542
 
5343
- module.exports = function callBind(originalFunction) {
5344
- var func = callBindBasic(arguments);
5345
- var adjustedLength = originalFunction.length - (arguments.length - 1);
5346
- return setFunctionLength(
5347
- func,
5348
- 1 + (adjustedLength > 0 ? adjustedLength : 0),
5349
- true
5350
- );
5351
- };
5543
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
5352
5544
 
5353
- if ($defineProperty) {
5354
- $defineProperty(module.exports, 'apply', { value: applyBind });
5355
- } else {
5356
- module.exports.apply = applyBind;
5357
- }
5358
- } (callBind$4));
5359
- return callBind$4.exports;
5545
+ defineProperties_1 = defineProperties;
5546
+ return defineProperties_1;
5360
5547
  }
5361
5548
 
5362
- var shams$4;
5363
- var hasRequiredShams$4;
5364
-
5365
- function requireShams$4 () {
5366
- if (hasRequiredShams$4) return shams$4;
5367
- hasRequiredShams$4 = 1;
5549
+ var callBind$4 = {exports: {}};
5368
5550
 
5369
- /** @type {import('./shams')} */
5370
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
5371
- shams$4 = function hasSymbols() {
5372
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
5373
- if (typeof Symbol.iterator === 'symbol') { return true; }
5551
+ var getIntrinsic$3;
5552
+ var hasRequiredGetIntrinsic$3;
5374
5553
 
5375
- /** @type {{ [k in symbol]?: unknown }} */
5376
- var obj = {};
5377
- var sym = Symbol('test');
5378
- var symObj = Object(sym);
5379
- if (typeof sym === 'string') { return false; }
5554
+ function requireGetIntrinsic$3 () {
5555
+ if (hasRequiredGetIntrinsic$3) return getIntrinsic$3;
5556
+ hasRequiredGetIntrinsic$3 = 1;
5380
5557
 
5381
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
5382
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
5558
+ var undefined$1;
5383
5559
 
5384
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
5385
- // if (sym instanceof Symbol) { return false; }
5386
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
5387
- // if (!(symObj instanceof Symbol)) { return false; }
5388
-
5389
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
5390
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
5391
-
5392
- var symVal = 42;
5393
- obj[sym] = symVal;
5394
- for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
5395
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
5396
-
5397
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
5560
+ var $Error = /*@__PURE__*/ requireEsErrors();
5561
+ var $EvalError = /*@__PURE__*/ require_eval();
5562
+ var $RangeError = /*@__PURE__*/ requireRange();
5563
+ var $ReferenceError = /*@__PURE__*/ requireRef();
5564
+ var $SyntaxError = /*@__PURE__*/ requireSyntax();
5565
+ var $TypeError = /*@__PURE__*/ requireType();
5566
+ var $URIError = /*@__PURE__*/ requireUri();
5398
5567
 
5399
- var syms = Object.getOwnPropertySymbols(obj);
5400
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
5568
+ var $Function = Function;
5401
5569
 
5402
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
5570
+ // eslint-disable-next-line consistent-return
5571
+ var getEvalledConstructor = function (expressionSyntax) {
5572
+ try {
5573
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
5574
+ } catch (e) {}
5575
+ };
5403
5576
 
5404
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
5405
- // eslint-disable-next-line no-extra-parens
5406
- var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
5407
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
5577
+ var $gOPD = Object.getOwnPropertyDescriptor;
5578
+ if ($gOPD) {
5579
+ try {
5580
+ $gOPD({}, '');
5581
+ } catch (e) {
5582
+ $gOPD = null; // this is IE 8, which has a broken gOPD
5408
5583
  }
5584
+ }
5409
5585
 
5410
- return true;
5586
+ var throwTypeError = function () {
5587
+ throw new $TypeError();
5411
5588
  };
5412
- return shams$4;
5413
- }
5589
+ var ThrowTypeError = $gOPD
5590
+ ? (function () {
5591
+ try {
5592
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
5593
+ arguments.callee; // IE 8 does not throw here
5594
+ return throwTypeError;
5595
+ } catch (calleeThrows) {
5596
+ try {
5597
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
5598
+ return $gOPD(arguments, 'callee').get;
5599
+ } catch (gOPDthrows) {
5600
+ return throwTypeError;
5601
+ }
5602
+ }
5603
+ }())
5604
+ : throwTypeError;
5414
5605
 
5415
- var esObjectAtoms$3;
5416
- var hasRequiredEsObjectAtoms$3;
5606
+ var hasSymbols = requireHasSymbols$1()();
5607
+ var hasProto = /*@__PURE__*/ requireHasProto()();
5417
5608
 
5418
- function requireEsObjectAtoms$3 () {
5419
- if (hasRequiredEsObjectAtoms$3) return esObjectAtoms$3;
5420
- hasRequiredEsObjectAtoms$3 = 1;
5609
+ var getProto = Object.getPrototypeOf || (
5610
+ hasProto
5611
+ ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
5612
+ : null
5613
+ );
5421
5614
 
5422
- /** @type {import('.')} */
5423
- esObjectAtoms$3 = Object;
5424
- return esObjectAtoms$3;
5425
- }
5615
+ var needsEval = {};
5426
5616
 
5427
- var abs;
5428
- var hasRequiredAbs;
5617
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
5429
5618
 
5430
- function requireAbs () {
5431
- if (hasRequiredAbs) return abs;
5432
- hasRequiredAbs = 1;
5619
+ var INTRINSICS = {
5620
+ __proto__: null,
5621
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
5622
+ '%Array%': Array,
5623
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
5624
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
5625
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
5626
+ '%AsyncFunction%': needsEval,
5627
+ '%AsyncGenerator%': needsEval,
5628
+ '%AsyncGeneratorFunction%': needsEval,
5629
+ '%AsyncIteratorPrototype%': needsEval,
5630
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
5631
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
5632
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
5633
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
5634
+ '%Boolean%': Boolean,
5635
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
5636
+ '%Date%': Date,
5637
+ '%decodeURI%': decodeURI,
5638
+ '%decodeURIComponent%': decodeURIComponent,
5639
+ '%encodeURI%': encodeURI,
5640
+ '%encodeURIComponent%': encodeURIComponent,
5641
+ '%Error%': $Error,
5642
+ '%eval%': eval, // eslint-disable-line no-eval
5643
+ '%EvalError%': $EvalError,
5644
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
5645
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
5646
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
5647
+ '%Function%': $Function,
5648
+ '%GeneratorFunction%': needsEval,
5649
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
5650
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
5651
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
5652
+ '%isFinite%': isFinite,
5653
+ '%isNaN%': isNaN,
5654
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
5655
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
5656
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
5657
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
5658
+ '%Math%': Math,
5659
+ '%Number%': Number,
5660
+ '%Object%': Object,
5661
+ '%parseFloat%': parseFloat,
5662
+ '%parseInt%': parseInt,
5663
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
5664
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
5665
+ '%RangeError%': $RangeError,
5666
+ '%ReferenceError%': $ReferenceError,
5667
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
5668
+ '%RegExp%': RegExp,
5669
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
5670
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
5671
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
5672
+ '%String%': String,
5673
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
5674
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
5675
+ '%SyntaxError%': $SyntaxError,
5676
+ '%ThrowTypeError%': ThrowTypeError,
5677
+ '%TypedArray%': TypedArray,
5678
+ '%TypeError%': $TypeError,
5679
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
5680
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
5681
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
5682
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
5683
+ '%URIError%': $URIError,
5684
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
5685
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
5686
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
5687
+ };
5433
5688
 
5434
- /** @type {import('./abs')} */
5435
- abs = Math.abs;
5436
- return abs;
5437
- }
5689
+ if (getProto) {
5690
+ try {
5691
+ null.error; // eslint-disable-line no-unused-expressions
5692
+ } catch (e) {
5693
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
5694
+ var errorProto = getProto(getProto(e));
5695
+ INTRINSICS['%Error.prototype%'] = errorProto;
5696
+ }
5697
+ }
5438
5698
 
5439
- var floor;
5440
- var hasRequiredFloor;
5699
+ var doEval = function doEval(name) {
5700
+ var value;
5701
+ if (name === '%AsyncFunction%') {
5702
+ value = getEvalledConstructor('async function () {}');
5703
+ } else if (name === '%GeneratorFunction%') {
5704
+ value = getEvalledConstructor('function* () {}');
5705
+ } else if (name === '%AsyncGeneratorFunction%') {
5706
+ value = getEvalledConstructor('async function* () {}');
5707
+ } else if (name === '%AsyncGenerator%') {
5708
+ var fn = doEval('%AsyncGeneratorFunction%');
5709
+ if (fn) {
5710
+ value = fn.prototype;
5711
+ }
5712
+ } else if (name === '%AsyncIteratorPrototype%') {
5713
+ var gen = doEval('%AsyncGenerator%');
5714
+ if (gen && getProto) {
5715
+ value = getProto(gen.prototype);
5716
+ }
5717
+ }
5441
5718
 
5442
- function requireFloor () {
5443
- if (hasRequiredFloor) return floor;
5444
- hasRequiredFloor = 1;
5719
+ INTRINSICS[name] = value;
5445
5720
 
5446
- /** @type {import('./floor')} */
5447
- floor = Math.floor;
5448
- return floor;
5449
- }
5721
+ return value;
5722
+ };
5450
5723
 
5451
- var max;
5452
- var hasRequiredMax;
5724
+ var LEGACY_ALIASES = {
5725
+ __proto__: null,
5726
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
5727
+ '%ArrayPrototype%': ['Array', 'prototype'],
5728
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
5729
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
5730
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
5731
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
5732
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
5733
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
5734
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
5735
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
5736
+ '%DataViewPrototype%': ['DataView', 'prototype'],
5737
+ '%DatePrototype%': ['Date', 'prototype'],
5738
+ '%ErrorPrototype%': ['Error', 'prototype'],
5739
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
5740
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
5741
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
5742
+ '%FunctionPrototype%': ['Function', 'prototype'],
5743
+ '%Generator%': ['GeneratorFunction', 'prototype'],
5744
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
5745
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
5746
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
5747
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
5748
+ '%JSONParse%': ['JSON', 'parse'],
5749
+ '%JSONStringify%': ['JSON', 'stringify'],
5750
+ '%MapPrototype%': ['Map', 'prototype'],
5751
+ '%NumberPrototype%': ['Number', 'prototype'],
5752
+ '%ObjectPrototype%': ['Object', 'prototype'],
5753
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
5754
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
5755
+ '%PromisePrototype%': ['Promise', 'prototype'],
5756
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
5757
+ '%Promise_all%': ['Promise', 'all'],
5758
+ '%Promise_reject%': ['Promise', 'reject'],
5759
+ '%Promise_resolve%': ['Promise', 'resolve'],
5760
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
5761
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
5762
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
5763
+ '%SetPrototype%': ['Set', 'prototype'],
5764
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
5765
+ '%StringPrototype%': ['String', 'prototype'],
5766
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
5767
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
5768
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
5769
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
5770
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
5771
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
5772
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
5773
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
5774
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
5775
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
5776
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
5777
+ };
5453
5778
 
5454
- function requireMax () {
5455
- if (hasRequiredMax) return max;
5456
- hasRequiredMax = 1;
5779
+ var bind = requireFunctionBind();
5780
+ var hasOwn = /*@__PURE__*/ requireHasown();
5781
+ var $concat = bind.call(Function.call, Array.prototype.concat);
5782
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
5783
+ var $replace = bind.call(Function.call, String.prototype.replace);
5784
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
5785
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
5457
5786
 
5458
- /** @type {import('./max')} */
5459
- max = Math.max;
5460
- return max;
5461
- }
5462
-
5463
- var min;
5464
- var hasRequiredMin;
5465
-
5466
- function requireMin () {
5467
- if (hasRequiredMin) return min;
5468
- hasRequiredMin = 1;
5469
-
5470
- /** @type {import('./min')} */
5471
- min = Math.min;
5472
- return min;
5473
- }
5787
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
5788
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
5789
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
5790
+ var stringToPath = function stringToPath(string) {
5791
+ var first = $strSlice(string, 0, 1);
5792
+ var last = $strSlice(string, -1);
5793
+ if (first === '%' && last !== '%') {
5794
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
5795
+ } else if (last === '%' && first !== '%') {
5796
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
5797
+ }
5798
+ var result = [];
5799
+ $replace(string, rePropName, function (match, number, quote, subString) {
5800
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
5801
+ });
5802
+ return result;
5803
+ };
5804
+ /* end adaptation */
5474
5805
 
5475
- var pow;
5476
- var hasRequiredPow;
5806
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
5807
+ var intrinsicName = name;
5808
+ var alias;
5809
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
5810
+ alias = LEGACY_ALIASES[intrinsicName];
5811
+ intrinsicName = '%' + alias[0] + '%';
5812
+ }
5477
5813
 
5478
- function requirePow () {
5479
- if (hasRequiredPow) return pow;
5480
- hasRequiredPow = 1;
5814
+ if (hasOwn(INTRINSICS, intrinsicName)) {
5815
+ var value = INTRINSICS[intrinsicName];
5816
+ if (value === needsEval) {
5817
+ value = doEval(intrinsicName);
5818
+ }
5819
+ if (typeof value === 'undefined' && !allowMissing) {
5820
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
5821
+ }
5481
5822
 
5482
- /** @type {import('./pow')} */
5483
- pow = Math.pow;
5484
- return pow;
5485
- }
5823
+ return {
5824
+ alias: alias,
5825
+ name: intrinsicName,
5826
+ value: value
5827
+ };
5828
+ }
5486
5829
 
5487
- var round;
5488
- var hasRequiredRound;
5830
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
5831
+ };
5489
5832
 
5490
- function requireRound () {
5491
- if (hasRequiredRound) return round;
5492
- hasRequiredRound = 1;
5833
+ getIntrinsic$3 = function GetIntrinsic(name, allowMissing) {
5834
+ if (typeof name !== 'string' || name.length === 0) {
5835
+ throw new $TypeError('intrinsic name must be a non-empty string');
5836
+ }
5837
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
5838
+ throw new $TypeError('"allowMissing" argument must be a boolean');
5839
+ }
5493
5840
 
5494
- /** @type {import('./round')} */
5495
- round = Math.round;
5496
- return round;
5497
- }
5841
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
5842
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
5843
+ }
5844
+ var parts = stringToPath(name);
5845
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
5498
5846
 
5499
- var _isNaN;
5500
- var hasRequired_isNaN;
5847
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
5848
+ var intrinsicRealName = intrinsic.name;
5849
+ var value = intrinsic.value;
5850
+ var skipFurtherCaching = false;
5501
5851
 
5502
- function require_isNaN () {
5503
- if (hasRequired_isNaN) return _isNaN;
5504
- hasRequired_isNaN = 1;
5852
+ var alias = intrinsic.alias;
5853
+ if (alias) {
5854
+ intrinsicBaseName = alias[0];
5855
+ $spliceApply(parts, $concat([0, 1], alias));
5856
+ }
5505
5857
 
5506
- /** @type {import('./isNaN')} */
5507
- _isNaN = Number.isNaN || function isNaN(a) {
5508
- return a !== a;
5509
- };
5510
- return _isNaN;
5511
- }
5858
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
5859
+ var part = parts[i];
5860
+ var first = $strSlice(part, 0, 1);
5861
+ var last = $strSlice(part, -1);
5862
+ if (
5863
+ (
5864
+ (first === '"' || first === "'" || first === '`')
5865
+ || (last === '"' || last === "'" || last === '`')
5866
+ )
5867
+ && first !== last
5868
+ ) {
5869
+ throw new $SyntaxError('property names with quotes must have matching quotes');
5870
+ }
5871
+ if (part === 'constructor' || !isOwn) {
5872
+ skipFurtherCaching = true;
5873
+ }
5512
5874
 
5513
- var sign;
5514
- var hasRequiredSign;
5875
+ intrinsicBaseName += '.' + part;
5876
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
5515
5877
 
5516
- function requireSign () {
5517
- if (hasRequiredSign) return sign;
5518
- hasRequiredSign = 1;
5878
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
5879
+ value = INTRINSICS[intrinsicRealName];
5880
+ } else if (value != null) {
5881
+ if (!(part in value)) {
5882
+ if (!allowMissing) {
5883
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
5884
+ }
5885
+ return void undefined$1;
5886
+ }
5887
+ if ($gOPD && (i + 1) >= parts.length) {
5888
+ var desc = $gOPD(value, part);
5889
+ isOwn = !!desc;
5519
5890
 
5520
- var $isNaN = /*@__PURE__*/ require_isNaN();
5891
+ // By convention, when a data property is converted to an accessor
5892
+ // property to emulate a data property that does not suffer from
5893
+ // the override mistake, that accessor's getter is marked with
5894
+ // an `originalValue` property. Here, when we detect this, we
5895
+ // uphold the illusion by pretending to see that original data
5896
+ // property, i.e., returning the value rather than the getter
5897
+ // itself.
5898
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
5899
+ value = desc.get;
5900
+ } else {
5901
+ value = value[part];
5902
+ }
5903
+ } else {
5904
+ isOwn = hasOwn(value, part);
5905
+ value = value[part];
5906
+ }
5521
5907
 
5522
- /** @type {import('./sign')} */
5523
- sign = function sign(number) {
5524
- if ($isNaN(number) || number === 0) {
5525
- return number;
5908
+ if (isOwn && !skipFurtherCaching) {
5909
+ INTRINSICS[intrinsicRealName] = value;
5910
+ }
5911
+ }
5526
5912
  }
5527
- return number < 0 ? -1 : 1;
5913
+ return value;
5528
5914
  };
5529
- return sign;
5915
+ return getIntrinsic$3;
5530
5916
  }
5531
5917
 
5532
- var gOPD$3;
5533
- var hasRequiredGOPD$3;
5534
-
5535
- function requireGOPD$3 () {
5536
- if (hasRequiredGOPD$3) return gOPD$3;
5537
- hasRequiredGOPD$3 = 1;
5918
+ var setFunctionLength;
5919
+ var hasRequiredSetFunctionLength;
5538
5920
 
5539
- /** @type {import('./gOPD')} */
5540
- gOPD$3 = Object.getOwnPropertyDescriptor;
5541
- return gOPD$3;
5542
- }
5921
+ function requireSetFunctionLength () {
5922
+ if (hasRequiredSetFunctionLength) return setFunctionLength;
5923
+ hasRequiredSetFunctionLength = 1;
5543
5924
 
5544
- var gopd$3;
5545
- var hasRequiredGopd$3;
5925
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$3();
5926
+ var define = /*@__PURE__*/ requireDefineDataProperty();
5927
+ var hasDescriptors = /*@__PURE__*/ requireHasPropertyDescriptors()();
5928
+ var gOPD = /*@__PURE__*/ requireGopd$4();
5546
5929
 
5547
- function requireGopd$3 () {
5548
- if (hasRequiredGopd$3) return gopd$3;
5549
- hasRequiredGopd$3 = 1;
5930
+ var $TypeError = /*@__PURE__*/ requireType();
5931
+ var $floor = GetIntrinsic('%Math.floor%');
5550
5932
 
5551
5933
  /** @type {import('.')} */
5552
- var $gOPD = /*@__PURE__*/ requireGOPD$3();
5934
+ setFunctionLength = function setFunctionLength(fn, length) {
5935
+ if (typeof fn !== 'function') {
5936
+ throw new $TypeError('`fn` is not a function');
5937
+ }
5938
+ if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
5939
+ throw new $TypeError('`length` must be a positive 32-bit integer');
5940
+ }
5553
5941
 
5554
- if ($gOPD) {
5555
- try {
5556
- $gOPD([], 'length');
5557
- } catch (e) {
5558
- // IE 8 has a broken gOPD
5559
- $gOPD = null;
5942
+ var loose = arguments.length > 2 && !!arguments[2];
5943
+
5944
+ var functionLengthIsConfigurable = true;
5945
+ var functionLengthIsWritable = true;
5946
+ if ('length' in fn && gOPD) {
5947
+ var desc = gOPD(fn, 'length');
5948
+ if (desc && !desc.configurable) {
5949
+ functionLengthIsConfigurable = false;
5950
+ }
5951
+ if (desc && !desc.writable) {
5952
+ functionLengthIsWritable = false;
5953
+ }
5560
5954
  }
5561
- }
5562
5955
 
5563
- gopd$3 = $gOPD;
5564
- return gopd$3;
5956
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
5957
+ if (hasDescriptors) {
5958
+ define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
5959
+ } else {
5960
+ define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
5961
+ }
5962
+ }
5963
+ return fn;
5964
+ };
5965
+ return setFunctionLength;
5565
5966
  }
5566
5967
 
5567
- var esDefineProperty$2;
5568
- var hasRequiredEsDefineProperty$2;
5569
-
5570
- function requireEsDefineProperty$2 () {
5571
- if (hasRequiredEsDefineProperty$2) return esDefineProperty$2;
5572
- hasRequiredEsDefineProperty$2 = 1;
5968
+ var functionCall;
5969
+ var hasRequiredFunctionCall;
5573
5970
 
5574
- /** @type {import('.')} */
5575
- var $defineProperty = Object.defineProperty || false;
5576
- if ($defineProperty) {
5577
- try {
5578
- $defineProperty({}, 'a', { value: 1 });
5579
- } catch (e) {
5580
- // IE 8 has a broken defineProperty
5581
- $defineProperty = false;
5582
- }
5583
- }
5971
+ function requireFunctionCall () {
5972
+ if (hasRequiredFunctionCall) return functionCall;
5973
+ hasRequiredFunctionCall = 1;
5584
5974
 
5585
- esDefineProperty$2 = $defineProperty;
5586
- return esDefineProperty$2;
5975
+ /** @type {import('./functionCall')} */
5976
+ functionCall = Function.prototype.call;
5977
+ return functionCall;
5587
5978
  }
5588
5979
 
5589
- var shams$3;
5590
- var hasRequiredShams$3;
5980
+ var functionApply;
5981
+ var hasRequiredFunctionApply;
5591
5982
 
5592
- function requireShams$3 () {
5593
- if (hasRequiredShams$3) return shams$3;
5594
- hasRequiredShams$3 = 1;
5983
+ function requireFunctionApply () {
5984
+ if (hasRequiredFunctionApply) return functionApply;
5985
+ hasRequiredFunctionApply = 1;
5986
+
5987
+ /** @type {import('./functionApply')} */
5988
+ functionApply = Function.prototype.apply;
5989
+ return functionApply;
5990
+ }
5991
+
5992
+ var reflectApply;
5993
+ var hasRequiredReflectApply;
5994
+
5995
+ function requireReflectApply () {
5996
+ if (hasRequiredReflectApply) return reflectApply;
5997
+ hasRequiredReflectApply = 1;
5998
+
5999
+ /** @type {import('./reflectApply')} */
6000
+ reflectApply = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
6001
+ return reflectApply;
6002
+ }
6003
+
6004
+ var actualApply;
6005
+ var hasRequiredActualApply;
6006
+
6007
+ function requireActualApply () {
6008
+ if (hasRequiredActualApply) return actualApply;
6009
+ hasRequiredActualApply = 1;
6010
+
6011
+ var bind = requireFunctionBind();
6012
+
6013
+ var $apply = requireFunctionApply();
6014
+ var $call = requireFunctionCall();
6015
+ var $reflectApply = requireReflectApply();
6016
+
6017
+ /** @type {import('./actualApply')} */
6018
+ actualApply = $reflectApply || bind.call($call, $apply);
6019
+ return actualApply;
6020
+ }
6021
+
6022
+ var callBindApplyHelpers;
6023
+ var hasRequiredCallBindApplyHelpers;
6024
+
6025
+ function requireCallBindApplyHelpers () {
6026
+ if (hasRequiredCallBindApplyHelpers) return callBindApplyHelpers;
6027
+ hasRequiredCallBindApplyHelpers = 1;
6028
+
6029
+ var bind = requireFunctionBind();
6030
+ var $TypeError = /*@__PURE__*/ requireType();
6031
+
6032
+ var $call = requireFunctionCall();
6033
+ var $actualApply = requireActualApply();
6034
+
6035
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
6036
+ callBindApplyHelpers = function callBindBasic(args) {
6037
+ if (args.length < 1 || typeof args[0] !== 'function') {
6038
+ throw new $TypeError('a function is required');
6039
+ }
6040
+ return $actualApply(bind, $call, args);
6041
+ };
6042
+ return callBindApplyHelpers;
6043
+ }
6044
+
6045
+ var applyBind;
6046
+ var hasRequiredApplyBind;
6047
+
6048
+ function requireApplyBind () {
6049
+ if (hasRequiredApplyBind) return applyBind;
6050
+ hasRequiredApplyBind = 1;
6051
+
6052
+ var bind = requireFunctionBind();
6053
+ var $apply = requireFunctionApply();
6054
+ var actualApply = requireActualApply();
6055
+
6056
+ /** @type {import('./applyBind')} */
6057
+ applyBind = function applyBind() {
6058
+ return actualApply(bind, $apply, arguments);
6059
+ };
6060
+ return applyBind;
6061
+ }
6062
+
6063
+ var hasRequiredCallBind$4;
6064
+
6065
+ function requireCallBind$4 () {
6066
+ if (hasRequiredCallBind$4) return callBind$4.exports;
6067
+ hasRequiredCallBind$4 = 1;
6068
+ (function (module) {
6069
+
6070
+ var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
6071
+
6072
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$1();
6073
+
6074
+ var callBindBasic = requireCallBindApplyHelpers();
6075
+ var applyBind = requireApplyBind();
6076
+
6077
+ module.exports = function callBind(originalFunction) {
6078
+ var func = callBindBasic(arguments);
6079
+ var adjustedLength = originalFunction.length - (arguments.length - 1);
6080
+ return setFunctionLength(
6081
+ func,
6082
+ 1 + (adjustedLength > 0 ? adjustedLength : 0),
6083
+ true
6084
+ );
6085
+ };
6086
+
6087
+ if ($defineProperty) {
6088
+ $defineProperty(module.exports, 'apply', { value: applyBind });
6089
+ } else {
6090
+ module.exports.apply = applyBind;
6091
+ }
6092
+ } (callBind$4));
6093
+ return callBind$4.exports;
6094
+ }
6095
+
6096
+ var shams$2;
6097
+ var hasRequiredShams$2;
6098
+
6099
+ function requireShams$2 () {
6100
+ if (hasRequiredShams$2) return shams$2;
6101
+ hasRequiredShams$2 = 1;
5595
6102
 
5596
6103
  /** @type {import('./shams')} */
5597
6104
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
5598
- shams$3 = function hasSymbols() {
6105
+ shams$2 = function hasSymbols() {
5599
6106
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
5600
6107
  if (typeof Symbol.iterator === 'symbol') { return true; }
5601
6108
 
@@ -5636,117 +6143,344 @@ function requireShams$3 () {
5636
6143
 
5637
6144
  return true;
5638
6145
  };
5639
- return shams$3;
6146
+ return shams$2;
5640
6147
  }
5641
6148
 
5642
- var hasSymbols$2;
5643
- var hasRequiredHasSymbols$2;
5644
-
5645
- function requireHasSymbols$2 () {
5646
- if (hasRequiredHasSymbols$2) return hasSymbols$2;
5647
- hasRequiredHasSymbols$2 = 1;
6149
+ var esObjectAtoms$1;
6150
+ var hasRequiredEsObjectAtoms$1;
5648
6151
 
5649
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
5650
- var hasSymbolSham = requireShams$3();
6152
+ function requireEsObjectAtoms$1 () {
6153
+ if (hasRequiredEsObjectAtoms$1) return esObjectAtoms$1;
6154
+ hasRequiredEsObjectAtoms$1 = 1;
5651
6155
 
5652
6156
  /** @type {import('.')} */
5653
- hasSymbols$2 = function hasNativeSymbols() {
5654
- if (typeof origSymbol !== 'function') { return false; }
5655
- if (typeof Symbol !== 'function') { return false; }
5656
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
5657
- if (typeof Symbol('bar') !== 'symbol') { return false; }
5658
-
5659
- return hasSymbolSham();
5660
- };
5661
- return hasSymbols$2;
6157
+ esObjectAtoms$1 = Object;
6158
+ return esObjectAtoms$1;
5662
6159
  }
5663
6160
 
5664
- var Reflect_getPrototypeOf;
5665
- var hasRequiredReflect_getPrototypeOf;
6161
+ var abs;
6162
+ var hasRequiredAbs;
5666
6163
 
5667
- function requireReflect_getPrototypeOf () {
5668
- if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
5669
- hasRequiredReflect_getPrototypeOf = 1;
6164
+ function requireAbs () {
6165
+ if (hasRequiredAbs) return abs;
6166
+ hasRequiredAbs = 1;
5670
6167
 
5671
- /** @type {import('./Reflect.getPrototypeOf')} */
5672
- Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
5673
- return Reflect_getPrototypeOf;
6168
+ /** @type {import('./abs')} */
6169
+ abs = Math.abs;
6170
+ return abs;
5674
6171
  }
5675
6172
 
5676
- var esObjectAtoms$2;
5677
- var hasRequiredEsObjectAtoms$2;
6173
+ var floor;
6174
+ var hasRequiredFloor;
5678
6175
 
5679
- function requireEsObjectAtoms$2 () {
5680
- if (hasRequiredEsObjectAtoms$2) return esObjectAtoms$2;
5681
- hasRequiredEsObjectAtoms$2 = 1;
6176
+ function requireFloor () {
6177
+ if (hasRequiredFloor) return floor;
6178
+ hasRequiredFloor = 1;
5682
6179
 
5683
- /** @type {import('.')} */
5684
- esObjectAtoms$2 = Object;
5685
- return esObjectAtoms$2;
6180
+ /** @type {import('./floor')} */
6181
+ floor = Math.floor;
6182
+ return floor;
5686
6183
  }
5687
6184
 
5688
- var Object_getPrototypeOf;
5689
- var hasRequiredObject_getPrototypeOf;
5690
-
5691
- function requireObject_getPrototypeOf () {
5692
- if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
5693
- hasRequiredObject_getPrototypeOf = 1;
6185
+ var max;
6186
+ var hasRequiredMax;
5694
6187
 
5695
- var $Object = /*@__PURE__*/ requireEsObjectAtoms$2();
6188
+ function requireMax () {
6189
+ if (hasRequiredMax) return max;
6190
+ hasRequiredMax = 1;
5696
6191
 
5697
- /** @type {import('./Object.getPrototypeOf')} */
5698
- Object_getPrototypeOf = $Object.getPrototypeOf || null;
5699
- return Object_getPrototypeOf;
6192
+ /** @type {import('./max')} */
6193
+ max = Math.max;
6194
+ return max;
5700
6195
  }
5701
6196
 
5702
- var gOPD$2;
5703
- var hasRequiredGOPD$2;
6197
+ var min;
6198
+ var hasRequiredMin;
5704
6199
 
5705
- function requireGOPD$2 () {
5706
- if (hasRequiredGOPD$2) return gOPD$2;
5707
- hasRequiredGOPD$2 = 1;
6200
+ function requireMin () {
6201
+ if (hasRequiredMin) return min;
6202
+ hasRequiredMin = 1;
5708
6203
 
5709
- /** @type {import('./gOPD')} */
5710
- gOPD$2 = Object.getOwnPropertyDescriptor;
5711
- return gOPD$2;
6204
+ /** @type {import('./min')} */
6205
+ min = Math.min;
6206
+ return min;
5712
6207
  }
5713
6208
 
5714
- var gopd$2;
5715
- var hasRequiredGopd$2;
6209
+ var pow;
6210
+ var hasRequiredPow;
5716
6211
 
5717
- function requireGopd$2 () {
5718
- if (hasRequiredGopd$2) return gopd$2;
5719
- hasRequiredGopd$2 = 1;
6212
+ function requirePow () {
6213
+ if (hasRequiredPow) return pow;
6214
+ hasRequiredPow = 1;
5720
6215
 
5721
- /** @type {import('.')} */
5722
- var $gOPD = /*@__PURE__*/ requireGOPD$2();
6216
+ /** @type {import('./pow')} */
6217
+ pow = Math.pow;
6218
+ return pow;
6219
+ }
5723
6220
 
5724
- if ($gOPD) {
5725
- try {
5726
- $gOPD([], 'length');
5727
- } catch (e) {
5728
- // IE 8 has a broken gOPD
5729
- $gOPD = null;
5730
- }
5731
- }
6221
+ var round;
6222
+ var hasRequiredRound;
5732
6223
 
5733
- gopd$2 = $gOPD;
5734
- return gopd$2;
6224
+ function requireRound () {
6225
+ if (hasRequiredRound) return round;
6226
+ hasRequiredRound = 1;
6227
+
6228
+ /** @type {import('./round')} */
6229
+ round = Math.round;
6230
+ return round;
5735
6231
  }
5736
6232
 
5737
- var get;
5738
- var hasRequiredGet;
6233
+ var _isNaN;
6234
+ var hasRequired_isNaN;
5739
6235
 
5740
- function requireGet () {
5741
- if (hasRequiredGet) return get;
5742
- hasRequiredGet = 1;
6236
+ function require_isNaN () {
6237
+ if (hasRequired_isNaN) return _isNaN;
6238
+ hasRequired_isNaN = 1;
5743
6239
 
5744
- var callBind = requireCallBindApplyHelpers();
5745
- var gOPD = /*@__PURE__*/ requireGopd$2();
6240
+ /** @type {import('./isNaN')} */
6241
+ _isNaN = Number.isNaN || function isNaN(a) {
6242
+ return a !== a;
6243
+ };
6244
+ return _isNaN;
6245
+ }
5746
6246
 
5747
- var hasProtoAccessor;
5748
- try {
5749
- // eslint-disable-next-line no-extra-parens, no-proto
6247
+ var sign;
6248
+ var hasRequiredSign;
6249
+
6250
+ function requireSign () {
6251
+ if (hasRequiredSign) return sign;
6252
+ hasRequiredSign = 1;
6253
+
6254
+ var $isNaN = /*@__PURE__*/ require_isNaN();
6255
+
6256
+ /** @type {import('./sign')} */
6257
+ sign = function sign(number) {
6258
+ if ($isNaN(number) || number === 0) {
6259
+ return number;
6260
+ }
6261
+ return number < 0 ? -1 : 1;
6262
+ };
6263
+ return sign;
6264
+ }
6265
+
6266
+ var gOPD$3;
6267
+ var hasRequiredGOPD$3;
6268
+
6269
+ function requireGOPD$3 () {
6270
+ if (hasRequiredGOPD$3) return gOPD$3;
6271
+ hasRequiredGOPD$3 = 1;
6272
+
6273
+ /** @type {import('./gOPD')} */
6274
+ gOPD$3 = Object.getOwnPropertyDescriptor;
6275
+ return gOPD$3;
6276
+ }
6277
+
6278
+ var gopd$3;
6279
+ var hasRequiredGopd$3;
6280
+
6281
+ function requireGopd$3 () {
6282
+ if (hasRequiredGopd$3) return gopd$3;
6283
+ hasRequiredGopd$3 = 1;
6284
+
6285
+ /** @type {import('.')} */
6286
+ var $gOPD = /*@__PURE__*/ requireGOPD$3();
6287
+
6288
+ if ($gOPD) {
6289
+ try {
6290
+ $gOPD([], 'length');
6291
+ } catch (e) {
6292
+ // IE 8 has a broken gOPD
6293
+ $gOPD = null;
6294
+ }
6295
+ }
6296
+
6297
+ gopd$3 = $gOPD;
6298
+ return gopd$3;
6299
+ }
6300
+
6301
+ var esDefineProperty;
6302
+ var hasRequiredEsDefineProperty;
6303
+
6304
+ function requireEsDefineProperty () {
6305
+ if (hasRequiredEsDefineProperty) return esDefineProperty;
6306
+ hasRequiredEsDefineProperty = 1;
6307
+
6308
+ /** @type {import('.')} */
6309
+ var $defineProperty = Object.defineProperty || false;
6310
+ if ($defineProperty) {
6311
+ try {
6312
+ $defineProperty({}, 'a', { value: 1 });
6313
+ } catch (e) {
6314
+ // IE 8 has a broken defineProperty
6315
+ $defineProperty = false;
6316
+ }
6317
+ }
6318
+
6319
+ esDefineProperty = $defineProperty;
6320
+ return esDefineProperty;
6321
+ }
6322
+
6323
+ var shams$1;
6324
+ var hasRequiredShams$1;
6325
+
6326
+ function requireShams$1 () {
6327
+ if (hasRequiredShams$1) return shams$1;
6328
+ hasRequiredShams$1 = 1;
6329
+
6330
+ /** @type {import('./shams')} */
6331
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
6332
+ shams$1 = function hasSymbols() {
6333
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
6334
+ if (typeof Symbol.iterator === 'symbol') { return true; }
6335
+
6336
+ /** @type {{ [k in symbol]?: unknown }} */
6337
+ var obj = {};
6338
+ var sym = Symbol('test');
6339
+ var symObj = Object(sym);
6340
+ if (typeof sym === 'string') { return false; }
6341
+
6342
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
6343
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
6344
+
6345
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
6346
+ // if (sym instanceof Symbol) { return false; }
6347
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
6348
+ // if (!(symObj instanceof Symbol)) { return false; }
6349
+
6350
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
6351
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
6352
+
6353
+ var symVal = 42;
6354
+ obj[sym] = symVal;
6355
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
6356
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
6357
+
6358
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
6359
+
6360
+ var syms = Object.getOwnPropertySymbols(obj);
6361
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
6362
+
6363
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
6364
+
6365
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
6366
+ // eslint-disable-next-line no-extra-parens
6367
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
6368
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
6369
+ }
6370
+
6371
+ return true;
6372
+ };
6373
+ return shams$1;
6374
+ }
6375
+
6376
+ var hasSymbols;
6377
+ var hasRequiredHasSymbols;
6378
+
6379
+ function requireHasSymbols () {
6380
+ if (hasRequiredHasSymbols) return hasSymbols;
6381
+ hasRequiredHasSymbols = 1;
6382
+
6383
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
6384
+ var hasSymbolSham = requireShams$1();
6385
+
6386
+ /** @type {import('.')} */
6387
+ hasSymbols = function hasNativeSymbols() {
6388
+ if (typeof origSymbol !== 'function') { return false; }
6389
+ if (typeof Symbol !== 'function') { return false; }
6390
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
6391
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
6392
+
6393
+ return hasSymbolSham();
6394
+ };
6395
+ return hasSymbols;
6396
+ }
6397
+
6398
+ var Reflect_getPrototypeOf;
6399
+ var hasRequiredReflect_getPrototypeOf;
6400
+
6401
+ function requireReflect_getPrototypeOf () {
6402
+ if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
6403
+ hasRequiredReflect_getPrototypeOf = 1;
6404
+
6405
+ /** @type {import('./Reflect.getPrototypeOf')} */
6406
+ Reflect_getPrototypeOf = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
6407
+ return Reflect_getPrototypeOf;
6408
+ }
6409
+
6410
+ var esObjectAtoms;
6411
+ var hasRequiredEsObjectAtoms;
6412
+
6413
+ function requireEsObjectAtoms () {
6414
+ if (hasRequiredEsObjectAtoms) return esObjectAtoms;
6415
+ hasRequiredEsObjectAtoms = 1;
6416
+
6417
+ /** @type {import('.')} */
6418
+ esObjectAtoms = Object;
6419
+ return esObjectAtoms;
6420
+ }
6421
+
6422
+ var Object_getPrototypeOf;
6423
+ var hasRequiredObject_getPrototypeOf;
6424
+
6425
+ function requireObject_getPrototypeOf () {
6426
+ if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
6427
+ hasRequiredObject_getPrototypeOf = 1;
6428
+
6429
+ var $Object = /*@__PURE__*/ requireEsObjectAtoms();
6430
+
6431
+ /** @type {import('./Object.getPrototypeOf')} */
6432
+ Object_getPrototypeOf = $Object.getPrototypeOf || null;
6433
+ return Object_getPrototypeOf;
6434
+ }
6435
+
6436
+ var gOPD$2;
6437
+ var hasRequiredGOPD$2;
6438
+
6439
+ function requireGOPD$2 () {
6440
+ if (hasRequiredGOPD$2) return gOPD$2;
6441
+ hasRequiredGOPD$2 = 1;
6442
+
6443
+ /** @type {import('./gOPD')} */
6444
+ gOPD$2 = Object.getOwnPropertyDescriptor;
6445
+ return gOPD$2;
6446
+ }
6447
+
6448
+ var gopd$2;
6449
+ var hasRequiredGopd$2;
6450
+
6451
+ function requireGopd$2 () {
6452
+ if (hasRequiredGopd$2) return gopd$2;
6453
+ hasRequiredGopd$2 = 1;
6454
+
6455
+ /** @type {import('.')} */
6456
+ var $gOPD = /*@__PURE__*/ requireGOPD$2();
6457
+
6458
+ if ($gOPD) {
6459
+ try {
6460
+ $gOPD([], 'length');
6461
+ } catch (e) {
6462
+ // IE 8 has a broken gOPD
6463
+ $gOPD = null;
6464
+ }
6465
+ }
6466
+
6467
+ gopd$2 = $gOPD;
6468
+ return gopd$2;
6469
+ }
6470
+
6471
+ var get;
6472
+ var hasRequiredGet;
6473
+
6474
+ function requireGet () {
6475
+ if (hasRequiredGet) return get;
6476
+ hasRequiredGet = 1;
6477
+
6478
+ var callBind = requireCallBindApplyHelpers();
6479
+ var gOPD = /*@__PURE__*/ requireGopd$2();
6480
+
6481
+ var hasProtoAccessor;
6482
+ try {
6483
+ // eslint-disable-next-line no-extra-parens, no-proto
5750
6484
  hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
5751
6485
  } catch (e) {
5752
6486
  if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
@@ -5816,7 +6550,7 @@ function requireGetIntrinsic$2 () {
5816
6550
 
5817
6551
  var undefined$1;
5818
6552
 
5819
- var $Object = /*@__PURE__*/ requireEsObjectAtoms$3();
6553
+ var $Object = /*@__PURE__*/ requireEsObjectAtoms$1();
5820
6554
 
5821
6555
  var $Error = /*@__PURE__*/ requireEsErrors();
5822
6556
  var $EvalError = /*@__PURE__*/ require_eval();
@@ -5844,7 +6578,7 @@ function requireGetIntrinsic$2 () {
5844
6578
  };
5845
6579
 
5846
6580
  var $gOPD = /*@__PURE__*/ requireGopd$3();
5847
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$2();
6581
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty();
5848
6582
 
5849
6583
  var throwTypeError = function () {
5850
6584
  throw new $TypeError();
@@ -5866,7 +6600,7 @@ function requireGetIntrinsic$2 () {
5866
6600
  }())
5867
6601
  : throwTypeError;
5868
6602
 
5869
- var hasSymbols = requireHasSymbols$2()();
6603
+ var hasSymbols = requireHasSymbols()();
5870
6604
 
5871
6605
  var getProto = requireGetProto();
5872
6606
  var $ObjectGPO = requireObject_getPrototypeOf();
@@ -6160,7 +6894,7 @@ function requireGetIntrinsic$2 () {
6160
6894
  if (!allowMissing) {
6161
6895
  throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
6162
6896
  }
6163
- return void 0;
6897
+ return void undefined$1;
6164
6898
  }
6165
6899
  if ($gOPD && (i + 1) >= parts.length) {
6166
6900
  var desc = $gOPD(value, part);
@@ -6229,9 +6963,9 @@ function requireImplementation$2 () {
6229
6963
 
6230
6964
  // modified from https://github.com/es-shims/es6-shim
6231
6965
  var objectKeys = requireObjectKeys();
6232
- var hasSymbols = requireShams$4()();
6966
+ var hasSymbols = requireShams$2()();
6233
6967
  var callBound = /*@__PURE__*/ requireCallBound$1();
6234
- var $Object = /*@__PURE__*/ requireEsObjectAtoms$2();
6968
+ var $Object = /*@__PURE__*/ requireEsObjectAtoms();
6235
6969
  var $push = callBound('Array.prototype.push');
6236
6970
  var $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');
6237
6971
  var originalGetSymbols = hasSymbols ? $Object.getOwnPropertySymbols : null;
@@ -6389,487 +7123,763 @@ function requireObject_assign () {
6389
7123
  return object_assign;
6390
7124
  }
6391
7125
 
6392
- var callBind$3 = {exports: {}};
6393
-
6394
- var hasRequiredCallBind$3;
7126
+ var getIntrinsic$1;
7127
+ var hasRequiredGetIntrinsic$1;
6395
7128
 
6396
- function requireCallBind$3 () {
6397
- if (hasRequiredCallBind$3) return callBind$3.exports;
6398
- hasRequiredCallBind$3 = 1;
6399
- (function (module) {
7129
+ function requireGetIntrinsic$1 () {
7130
+ if (hasRequiredGetIntrinsic$1) return getIntrinsic$1;
7131
+ hasRequiredGetIntrinsic$1 = 1;
6400
7132
 
6401
- var bind = requireFunctionBind();
6402
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$3();
6403
- var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
7133
+ var undefined$1;
6404
7134
 
6405
- var $TypeError = /*@__PURE__*/ requireType();
6406
- var $apply = GetIntrinsic('%Function.prototype.apply%');
6407
- var $call = GetIntrinsic('%Function.prototype.call%');
6408
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
6409
-
6410
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$3();
6411
- var $max = GetIntrinsic('%Math.max%');
6412
-
6413
- module.exports = function callBind(originalFunction) {
6414
- if (typeof originalFunction !== 'function') {
6415
- throw new $TypeError('a function is required');
6416
- }
6417
- var func = $reflectApply(bind, $call, arguments);
6418
- return setFunctionLength(
6419
- func,
6420
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
6421
- true
6422
- );
6423
- };
6424
-
6425
- var applyBind = function applyBind() {
6426
- return $reflectApply(bind, $apply, arguments);
6427
- };
6428
-
6429
- if ($defineProperty) {
6430
- $defineProperty(module.exports, 'apply', { value: applyBind });
6431
- } else {
6432
- module.exports.apply = applyBind;
6433
- }
6434
- } (callBind$3));
6435
- return callBind$3.exports;
6436
- }
6437
-
6438
- var callBound;
6439
- var hasRequiredCallBound;
6440
-
6441
- function requireCallBound () {
6442
- if (hasRequiredCallBound) return callBound;
6443
- hasRequiredCallBound = 1;
6444
-
6445
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$3();
6446
-
6447
- var callBind = requireCallBind$3();
7135
+ var $Error = /*@__PURE__*/ requireEsErrors();
7136
+ var $EvalError = /*@__PURE__*/ require_eval();
7137
+ var $RangeError = /*@__PURE__*/ requireRange();
7138
+ var $ReferenceError = /*@__PURE__*/ requireRef();
7139
+ var $SyntaxError = /*@__PURE__*/ requireSyntax();
7140
+ var $TypeError = /*@__PURE__*/ requireType();
7141
+ var $URIError = /*@__PURE__*/ requireUri();
6448
7142
 
6449
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
7143
+ var $Function = Function;
6450
7144
 
6451
- callBound = function callBoundIntrinsic(name, allowMissing) {
6452
- var intrinsic = GetIntrinsic(name, !!allowMissing);
6453
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
6454
- return callBind(intrinsic);
6455
- }
6456
- return intrinsic;
7145
+ // eslint-disable-next-line consistent-return
7146
+ var getEvalledConstructor = function (expressionSyntax) {
7147
+ try {
7148
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
7149
+ } catch (e) {}
6457
7150
  };
6458
- return callBound;
6459
- }
6460
-
6461
- var callBind$2 = {exports: {}};
6462
7151
 
6463
- var hasRequiredCallBind$2;
6464
-
6465
- function requireCallBind$2 () {
6466
- if (hasRequiredCallBind$2) return callBind$2.exports;
6467
- hasRequiredCallBind$2 = 1;
6468
- (function (module) {
6469
-
6470
- var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
6471
-
6472
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$3();
7152
+ var $gOPD = Object.getOwnPropertyDescriptor;
7153
+ if ($gOPD) {
7154
+ try {
7155
+ $gOPD({}, '');
7156
+ } catch (e) {
7157
+ $gOPD = null; // this is IE 8, which has a broken gOPD
7158
+ }
7159
+ }
6473
7160
 
6474
- var callBindBasic = requireCallBindApplyHelpers();
6475
- var applyBind = requireApplyBind();
7161
+ var throwTypeError = function () {
7162
+ throw new $TypeError();
7163
+ };
7164
+ var ThrowTypeError = $gOPD
7165
+ ? (function () {
7166
+ try {
7167
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
7168
+ arguments.callee; // IE 8 does not throw here
7169
+ return throwTypeError;
7170
+ } catch (calleeThrows) {
7171
+ try {
7172
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
7173
+ return $gOPD(arguments, 'callee').get;
7174
+ } catch (gOPDthrows) {
7175
+ return throwTypeError;
7176
+ }
7177
+ }
7178
+ }())
7179
+ : throwTypeError;
6476
7180
 
6477
- module.exports = function callBind(originalFunction) {
6478
- var func = callBindBasic(arguments);
6479
- var adjustedLength = originalFunction.length - (arguments.length - 1);
6480
- return setFunctionLength(
6481
- func,
6482
- 1 + (adjustedLength > 0 ? adjustedLength : 0),
6483
- true
6484
- );
6485
- };
7181
+ var hasSymbols = requireHasSymbols$1()();
7182
+ var hasProto = /*@__PURE__*/ requireHasProto()();
6486
7183
 
6487
- if ($defineProperty) {
6488
- $defineProperty(module.exports, 'apply', { value: applyBind });
6489
- } else {
6490
- module.exports.apply = applyBind;
6491
- }
6492
- } (callBind$2));
6493
- return callBind$2.exports;
6494
- }
7184
+ var getProto = Object.getPrototypeOf || (
7185
+ hasProto
7186
+ ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
7187
+ : null
7188
+ );
6495
7189
 
6496
- var functionsHaveNames_1;
6497
- var hasRequiredFunctionsHaveNames;
7190
+ var needsEval = {};
6498
7191
 
6499
- function requireFunctionsHaveNames () {
6500
- if (hasRequiredFunctionsHaveNames) return functionsHaveNames_1;
6501
- hasRequiredFunctionsHaveNames = 1;
7192
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
6502
7193
 
6503
- var functionsHaveNames = function functionsHaveNames() {
6504
- return typeof function f() {}.name === 'string';
7194
+ var INTRINSICS = {
7195
+ __proto__: null,
7196
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
7197
+ '%Array%': Array,
7198
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
7199
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
7200
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
7201
+ '%AsyncFunction%': needsEval,
7202
+ '%AsyncGenerator%': needsEval,
7203
+ '%AsyncGeneratorFunction%': needsEval,
7204
+ '%AsyncIteratorPrototype%': needsEval,
7205
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
7206
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
7207
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
7208
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
7209
+ '%Boolean%': Boolean,
7210
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
7211
+ '%Date%': Date,
7212
+ '%decodeURI%': decodeURI,
7213
+ '%decodeURIComponent%': decodeURIComponent,
7214
+ '%encodeURI%': encodeURI,
7215
+ '%encodeURIComponent%': encodeURIComponent,
7216
+ '%Error%': $Error,
7217
+ '%eval%': eval, // eslint-disable-line no-eval
7218
+ '%EvalError%': $EvalError,
7219
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
7220
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
7221
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
7222
+ '%Function%': $Function,
7223
+ '%GeneratorFunction%': needsEval,
7224
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
7225
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
7226
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
7227
+ '%isFinite%': isFinite,
7228
+ '%isNaN%': isNaN,
7229
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
7230
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
7231
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
7232
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
7233
+ '%Math%': Math,
7234
+ '%Number%': Number,
7235
+ '%Object%': Object,
7236
+ '%parseFloat%': parseFloat,
7237
+ '%parseInt%': parseInt,
7238
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
7239
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
7240
+ '%RangeError%': $RangeError,
7241
+ '%ReferenceError%': $ReferenceError,
7242
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
7243
+ '%RegExp%': RegExp,
7244
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
7245
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
7246
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
7247
+ '%String%': String,
7248
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
7249
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
7250
+ '%SyntaxError%': $SyntaxError,
7251
+ '%ThrowTypeError%': ThrowTypeError,
7252
+ '%TypedArray%': TypedArray,
7253
+ '%TypeError%': $TypeError,
7254
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
7255
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
7256
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
7257
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
7258
+ '%URIError%': $URIError,
7259
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
7260
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
7261
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
6505
7262
  };
6506
7263
 
6507
- var gOPD = Object.getOwnPropertyDescriptor;
6508
- if (gOPD) {
7264
+ if (getProto) {
6509
7265
  try {
6510
- gOPD([], 'length');
7266
+ null.error; // eslint-disable-line no-unused-expressions
6511
7267
  } catch (e) {
6512
- // IE 8 has a broken gOPD
6513
- gOPD = null;
7268
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
7269
+ var errorProto = getProto(getProto(e));
7270
+ INTRINSICS['%Error.prototype%'] = errorProto;
6514
7271
  }
6515
7272
  }
6516
7273
 
6517
- functionsHaveNames.functionsHaveConfigurableNames = function functionsHaveConfigurableNames() {
6518
- if (!functionsHaveNames() || !gOPD) {
6519
- return false;
7274
+ var doEval = function doEval(name) {
7275
+ var value;
7276
+ if (name === '%AsyncFunction%') {
7277
+ value = getEvalledConstructor('async function () {}');
7278
+ } else if (name === '%GeneratorFunction%') {
7279
+ value = getEvalledConstructor('function* () {}');
7280
+ } else if (name === '%AsyncGeneratorFunction%') {
7281
+ value = getEvalledConstructor('async function* () {}');
7282
+ } else if (name === '%AsyncGenerator%') {
7283
+ var fn = doEval('%AsyncGeneratorFunction%');
7284
+ if (fn) {
7285
+ value = fn.prototype;
7286
+ }
7287
+ } else if (name === '%AsyncIteratorPrototype%') {
7288
+ var gen = doEval('%AsyncGenerator%');
7289
+ if (gen && getProto) {
7290
+ value = getProto(gen.prototype);
7291
+ }
6520
7292
  }
6521
- var desc = gOPD(function () {}, 'name');
6522
- return !!desc && !!desc.configurable;
6523
- };
6524
7293
 
6525
- var $bind = Function.prototype.bind;
7294
+ INTRINSICS[name] = value;
6526
7295
 
6527
- functionsHaveNames.boundFunctionsHaveNames = function boundFunctionsHaveNames() {
6528
- return functionsHaveNames() && typeof $bind === 'function' && function f() {}.bind().name !== '';
7296
+ return value;
6529
7297
  };
6530
7298
 
6531
- functionsHaveNames_1 = functionsHaveNames;
6532
- return functionsHaveNames_1;
6533
- }
6534
-
6535
- var setFunctionName;
6536
- var hasRequiredSetFunctionName;
6537
-
6538
- function requireSetFunctionName () {
6539
- if (hasRequiredSetFunctionName) return setFunctionName;
6540
- hasRequiredSetFunctionName = 1;
6541
-
6542
- var define = /*@__PURE__*/ requireDefineDataProperty();
6543
- var hasDescriptors = /*@__PURE__*/ requireHasPropertyDescriptors()();
6544
- var functionsHaveConfigurableNames = requireFunctionsHaveNames().functionsHaveConfigurableNames();
7299
+ var LEGACY_ALIASES = {
7300
+ __proto__: null,
7301
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
7302
+ '%ArrayPrototype%': ['Array', 'prototype'],
7303
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
7304
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
7305
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
7306
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
7307
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
7308
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
7309
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
7310
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
7311
+ '%DataViewPrototype%': ['DataView', 'prototype'],
7312
+ '%DatePrototype%': ['Date', 'prototype'],
7313
+ '%ErrorPrototype%': ['Error', 'prototype'],
7314
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
7315
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
7316
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
7317
+ '%FunctionPrototype%': ['Function', 'prototype'],
7318
+ '%Generator%': ['GeneratorFunction', 'prototype'],
7319
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
7320
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
7321
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
7322
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
7323
+ '%JSONParse%': ['JSON', 'parse'],
7324
+ '%JSONStringify%': ['JSON', 'stringify'],
7325
+ '%MapPrototype%': ['Map', 'prototype'],
7326
+ '%NumberPrototype%': ['Number', 'prototype'],
7327
+ '%ObjectPrototype%': ['Object', 'prototype'],
7328
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
7329
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
7330
+ '%PromisePrototype%': ['Promise', 'prototype'],
7331
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
7332
+ '%Promise_all%': ['Promise', 'all'],
7333
+ '%Promise_reject%': ['Promise', 'reject'],
7334
+ '%Promise_resolve%': ['Promise', 'resolve'],
7335
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
7336
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
7337
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
7338
+ '%SetPrototype%': ['Set', 'prototype'],
7339
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
7340
+ '%StringPrototype%': ['String', 'prototype'],
7341
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
7342
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
7343
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
7344
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
7345
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
7346
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
7347
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
7348
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
7349
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
7350
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
7351
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
7352
+ };
6545
7353
 
6546
- var $TypeError = /*@__PURE__*/ requireType();
7354
+ var bind = requireFunctionBind();
7355
+ var hasOwn = /*@__PURE__*/ requireHasown();
7356
+ var $concat = bind.call(Function.call, Array.prototype.concat);
7357
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
7358
+ var $replace = bind.call(Function.call, String.prototype.replace);
7359
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
7360
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
6547
7361
 
6548
- /** @type {import('.')} */
6549
- setFunctionName = function setFunctionName(fn, name) {
6550
- if (typeof fn !== 'function') {
6551
- throw new $TypeError('`fn` is not a function');
6552
- }
6553
- var loose = arguments.length > 2 && !!arguments[2];
6554
- if (!loose || functionsHaveConfigurableNames) {
6555
- if (hasDescriptors) {
6556
- define(/** @type {Parameters<define>[0]} */ (fn), 'name', name, true, true);
6557
- } else {
6558
- define(/** @type {Parameters<define>[0]} */ (fn), 'name', name);
6559
- }
7362
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
7363
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
7364
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
7365
+ var stringToPath = function stringToPath(string) {
7366
+ var first = $strSlice(string, 0, 1);
7367
+ var last = $strSlice(string, -1);
7368
+ if (first === '%' && last !== '%') {
7369
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
7370
+ } else if (last === '%' && first !== '%') {
7371
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
6560
7372
  }
6561
- return fn;
7373
+ var result = [];
7374
+ $replace(string, rePropName, function (match, number, quote, subString) {
7375
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
7376
+ });
7377
+ return result;
6562
7378
  };
6563
- return setFunctionName;
6564
- }
7379
+ /* end adaptation */
6565
7380
 
6566
- var implementation$1;
6567
- var hasRequiredImplementation$1;
7381
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
7382
+ var intrinsicName = name;
7383
+ var alias;
7384
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
7385
+ alias = LEGACY_ALIASES[intrinsicName];
7386
+ intrinsicName = '%' + alias[0] + '%';
7387
+ }
6568
7388
 
6569
- function requireImplementation$1 () {
6570
- if (hasRequiredImplementation$1) return implementation$1;
6571
- hasRequiredImplementation$1 = 1;
7389
+ if (hasOwn(INTRINSICS, intrinsicName)) {
7390
+ var value = INTRINSICS[intrinsicName];
7391
+ if (value === needsEval) {
7392
+ value = doEval(intrinsicName);
7393
+ }
7394
+ if (typeof value === 'undefined' && !allowMissing) {
7395
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
7396
+ }
6572
7397
 
6573
- var setFunctionName = requireSetFunctionName();
6574
- var $TypeError = /*@__PURE__*/ requireType();
7398
+ return {
7399
+ alias: alias,
7400
+ name: intrinsicName,
7401
+ value: value
7402
+ };
7403
+ }
6575
7404
 
6576
- var $Object = Object;
7405
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
7406
+ };
6577
7407
 
6578
- implementation$1 = setFunctionName(function flags() {
6579
- if (this == null || this !== $Object(this)) {
6580
- throw new $TypeError('RegExp.prototype.flags getter called on non-object');
6581
- }
6582
- var result = '';
6583
- if (this.hasIndices) {
6584
- result += 'd';
6585
- }
6586
- if (this.global) {
6587
- result += 'g';
6588
- }
6589
- if (this.ignoreCase) {
6590
- result += 'i';
6591
- }
6592
- if (this.multiline) {
6593
- result += 'm';
6594
- }
6595
- if (this.dotAll) {
6596
- result += 's';
6597
- }
6598
- if (this.unicode) {
6599
- result += 'u';
6600
- }
6601
- if (this.unicodeSets) {
6602
- result += 'v';
7408
+ getIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
7409
+ if (typeof name !== 'string' || name.length === 0) {
7410
+ throw new $TypeError('intrinsic name must be a non-empty string');
6603
7411
  }
6604
- if (this.sticky) {
6605
- result += 'y';
7412
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
7413
+ throw new $TypeError('"allowMissing" argument must be a boolean');
6606
7414
  }
6607
- return result;
6608
- }, 'get flags', true);
6609
- return implementation$1;
6610
- }
6611
7415
 
6612
- var polyfill$1;
6613
- var hasRequiredPolyfill$1;
6614
-
6615
- function requirePolyfill$1 () {
6616
- if (hasRequiredPolyfill$1) return polyfill$1;
6617
- hasRequiredPolyfill$1 = 1;
7416
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
7417
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
7418
+ }
7419
+ var parts = stringToPath(name);
7420
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
6618
7421
 
6619
- var implementation = requireImplementation$1();
7422
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
7423
+ var intrinsicRealName = intrinsic.name;
7424
+ var value = intrinsic.value;
7425
+ var skipFurtherCaching = false;
6620
7426
 
6621
- var supportsDescriptors = requireDefineProperties().supportsDescriptors;
6622
- var $gOPD = Object.getOwnPropertyDescriptor;
7427
+ var alias = intrinsic.alias;
7428
+ if (alias) {
7429
+ intrinsicBaseName = alias[0];
7430
+ $spliceApply(parts, $concat([0, 1], alias));
7431
+ }
6623
7432
 
6624
- polyfill$1 = function getPolyfill() {
6625
- if (supportsDescriptors && (/a/mig).flags === 'gim') {
6626
- var descriptor = $gOPD(RegExp.prototype, 'flags');
7433
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
7434
+ var part = parts[i];
7435
+ var first = $strSlice(part, 0, 1);
7436
+ var last = $strSlice(part, -1);
6627
7437
  if (
6628
- descriptor
6629
- && typeof descriptor.get === 'function'
6630
- && 'dotAll' in RegExp.prototype
6631
- && 'hasIndices' in RegExp.prototype
7438
+ (
7439
+ (first === '"' || first === "'" || first === '`')
7440
+ || (last === '"' || last === "'" || last === '`')
7441
+ )
7442
+ && first !== last
6632
7443
  ) {
6633
- /* eslint getter-return: 0 */
6634
- var calls = '';
6635
- var o = {};
6636
- Object.defineProperty(o, 'hasIndices', {
6637
- get: function () {
6638
- calls += 'd';
6639
- }
6640
- });
6641
- Object.defineProperty(o, 'sticky', {
6642
- get: function () {
6643
- calls += 'y';
7444
+ throw new $SyntaxError('property names with quotes must have matching quotes');
7445
+ }
7446
+ if (part === 'constructor' || !isOwn) {
7447
+ skipFurtherCaching = true;
7448
+ }
7449
+
7450
+ intrinsicBaseName += '.' + part;
7451
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
7452
+
7453
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
7454
+ value = INTRINSICS[intrinsicRealName];
7455
+ } else if (value != null) {
7456
+ if (!(part in value)) {
7457
+ if (!allowMissing) {
7458
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
6644
7459
  }
6645
- });
7460
+ return void undefined$1;
7461
+ }
7462
+ if ($gOPD && (i + 1) >= parts.length) {
7463
+ var desc = $gOPD(value, part);
7464
+ isOwn = !!desc;
6646
7465
 
6647
- descriptor.get.call(o);
7466
+ // By convention, when a data property is converted to an accessor
7467
+ // property to emulate a data property that does not suffer from
7468
+ // the override mistake, that accessor's getter is marked with
7469
+ // an `originalValue` property. Here, when we detect this, we
7470
+ // uphold the illusion by pretending to see that original data
7471
+ // property, i.e., returning the value rather than the getter
7472
+ // itself.
7473
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
7474
+ value = desc.get;
7475
+ } else {
7476
+ value = value[part];
7477
+ }
7478
+ } else {
7479
+ isOwn = hasOwn(value, part);
7480
+ value = value[part];
7481
+ }
6648
7482
 
6649
- if (calls === 'dy') {
6650
- return descriptor.get;
7483
+ if (isOwn && !skipFurtherCaching) {
7484
+ INTRINSICS[intrinsicRealName] = value;
6651
7485
  }
6652
7486
  }
6653
7487
  }
6654
- return implementation;
7488
+ return value;
6655
7489
  };
6656
- return polyfill$1;
7490
+ return getIntrinsic$1;
6657
7491
  }
6658
7492
 
6659
- var gOPD$1;
6660
- var hasRequiredGOPD$1;
7493
+ var callBind$3 = {exports: {}};
6661
7494
 
6662
- function requireGOPD$1 () {
6663
- if (hasRequiredGOPD$1) return gOPD$1;
6664
- hasRequiredGOPD$1 = 1;
7495
+ var hasRequiredCallBind$3;
6665
7496
 
6666
- /** @type {import('./gOPD')} */
6667
- gOPD$1 = Object.getOwnPropertyDescriptor;
6668
- return gOPD$1;
6669
- }
7497
+ function requireCallBind$3 () {
7498
+ if (hasRequiredCallBind$3) return callBind$3.exports;
7499
+ hasRequiredCallBind$3 = 1;
7500
+ (function (module) {
6670
7501
 
6671
- var gopd$1;
6672
- var hasRequiredGopd$1;
7502
+ var bind = requireFunctionBind();
7503
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$1();
7504
+ var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
6673
7505
 
6674
- function requireGopd$1 () {
6675
- if (hasRequiredGopd$1) return gopd$1;
6676
- hasRequiredGopd$1 = 1;
7506
+ var $TypeError = /*@__PURE__*/ requireType();
7507
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
7508
+ var $call = GetIntrinsic('%Function.prototype.call%');
7509
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
6677
7510
 
6678
- /** @type {import('.')} */
6679
- var $gOPD = /*@__PURE__*/ requireGOPD$1();
7511
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$1();
7512
+ var $max = GetIntrinsic('%Math.max%');
6680
7513
 
6681
- if ($gOPD) {
6682
- try {
6683
- $gOPD([], 'length');
6684
- } catch (e) {
6685
- // IE 8 has a broken gOPD
6686
- $gOPD = null;
6687
- }
6688
- }
7514
+ module.exports = function callBind(originalFunction) {
7515
+ if (typeof originalFunction !== 'function') {
7516
+ throw new $TypeError('a function is required');
7517
+ }
7518
+ var func = $reflectApply(bind, $call, arguments);
7519
+ return setFunctionLength(
7520
+ func,
7521
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
7522
+ true
7523
+ );
7524
+ };
6689
7525
 
6690
- gopd$1 = $gOPD;
6691
- return gopd$1;
7526
+ var applyBind = function applyBind() {
7527
+ return $reflectApply(bind, $apply, arguments);
7528
+ };
7529
+
7530
+ if ($defineProperty) {
7531
+ $defineProperty(module.exports, 'apply', { value: applyBind });
7532
+ } else {
7533
+ module.exports.apply = applyBind;
7534
+ }
7535
+ } (callBind$3));
7536
+ return callBind$3.exports;
6692
7537
  }
6693
7538
 
6694
- var shim$1;
6695
- var hasRequiredShim$1;
7539
+ var callBound;
7540
+ var hasRequiredCallBound;
6696
7541
 
6697
- function requireShim$1 () {
6698
- if (hasRequiredShim$1) return shim$1;
6699
- hasRequiredShim$1 = 1;
7542
+ function requireCallBound () {
7543
+ if (hasRequiredCallBound) return callBound;
7544
+ hasRequiredCallBound = 1;
6700
7545
 
6701
- var supportsDescriptors = requireDefineProperties().supportsDescriptors;
6702
- var getPolyfill = requirePolyfill$1();
6703
- var gOPD = /*@__PURE__*/ requireGopd$1();
6704
- var defineProperty = Object.defineProperty;
6705
- var $TypeError = /*@__PURE__*/ requireEsErrors();
6706
- var getProto = requireGetProto();
6707
- var regex = /a/;
7546
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$1();
6708
7547
 
6709
- shim$1 = function shimFlags() {
6710
- if (!supportsDescriptors || !getProto) {
6711
- throw new $TypeError('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
6712
- }
6713
- var polyfill = getPolyfill();
6714
- var proto = getProto(regex);
6715
- var descriptor = gOPD(proto, 'flags');
6716
- if (!descriptor || descriptor.get !== polyfill) {
6717
- defineProperty(proto, 'flags', {
6718
- configurable: true,
6719
- enumerable: false,
6720
- get: polyfill
6721
- });
7548
+ var callBind = requireCallBind$3();
7549
+
7550
+ var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
7551
+
7552
+ callBound = function callBoundIntrinsic(name, allowMissing) {
7553
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
7554
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
7555
+ return callBind(intrinsic);
6722
7556
  }
6723
- return polyfill;
7557
+ return intrinsic;
6724
7558
  };
6725
- return shim$1;
7559
+ return callBound;
6726
7560
  }
6727
7561
 
6728
- var regexp_prototype_flags;
6729
- var hasRequiredRegexp_prototype_flags;
6730
-
6731
- function requireRegexp_prototype_flags () {
6732
- if (hasRequiredRegexp_prototype_flags) return regexp_prototype_flags;
6733
- hasRequiredRegexp_prototype_flags = 1;
6734
-
6735
- var define = requireDefineProperties();
6736
- var callBind = requireCallBind$2();
7562
+ var callBind$2 = {exports: {}};
6737
7563
 
6738
- var implementation = requireImplementation$1();
6739
- var getPolyfill = requirePolyfill$1();
6740
- var shim = requireShim$1();
7564
+ var hasRequiredCallBind$2;
6741
7565
 
6742
- var flagsBound = callBind(getPolyfill());
7566
+ function requireCallBind$2 () {
7567
+ if (hasRequiredCallBind$2) return callBind$2.exports;
7568
+ hasRequiredCallBind$2 = 1;
7569
+ (function (module) {
6743
7570
 
6744
- define(flagsBound, {
6745
- getPolyfill: getPolyfill,
6746
- implementation: implementation,
6747
- shim: shim
6748
- });
7571
+ var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
6749
7572
 
6750
- regexp_prototype_flags = flagsBound;
6751
- return regexp_prototype_flags;
6752
- }
7573
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$1();
6753
7574
 
6754
- var esObjectAtoms$1;
6755
- var hasRequiredEsObjectAtoms$1;
7575
+ var callBindBasic = requireCallBindApplyHelpers();
7576
+ var applyBind = requireApplyBind();
6756
7577
 
6757
- function requireEsObjectAtoms$1 () {
6758
- if (hasRequiredEsObjectAtoms$1) return esObjectAtoms$1;
6759
- hasRequiredEsObjectAtoms$1 = 1;
7578
+ module.exports = function callBind(originalFunction) {
7579
+ var func = callBindBasic(arguments);
7580
+ var adjustedLength = originalFunction.length - (arguments.length - 1);
7581
+ return setFunctionLength(
7582
+ func,
7583
+ 1 + (adjustedLength > 0 ? adjustedLength : 0),
7584
+ true
7585
+ );
7586
+ };
6760
7587
 
6761
- /** @type {import('.')} */
6762
- esObjectAtoms$1 = Object;
6763
- return esObjectAtoms$1;
7588
+ if ($defineProperty) {
7589
+ $defineProperty(module.exports, 'apply', { value: applyBind });
7590
+ } else {
7591
+ module.exports.apply = applyBind;
7592
+ }
7593
+ } (callBind$2));
7594
+ return callBind$2.exports;
6764
7595
  }
6765
7596
 
6766
- var esDefineProperty$1;
6767
- var hasRequiredEsDefineProperty$1;
7597
+ var functionsHaveNames_1;
7598
+ var hasRequiredFunctionsHaveNames;
6768
7599
 
6769
- function requireEsDefineProperty$1 () {
6770
- if (hasRequiredEsDefineProperty$1) return esDefineProperty$1;
6771
- hasRequiredEsDefineProperty$1 = 1;
7600
+ function requireFunctionsHaveNames () {
7601
+ if (hasRequiredFunctionsHaveNames) return functionsHaveNames_1;
7602
+ hasRequiredFunctionsHaveNames = 1;
6772
7603
 
6773
- /** @type {import('.')} */
6774
- var $defineProperty = Object.defineProperty || false;
6775
- if ($defineProperty) {
7604
+ var functionsHaveNames = function functionsHaveNames() {
7605
+ return typeof function f() {}.name === 'string';
7606
+ };
7607
+
7608
+ var gOPD = Object.getOwnPropertyDescriptor;
7609
+ if (gOPD) {
6776
7610
  try {
6777
- $defineProperty({}, 'a', { value: 1 });
7611
+ gOPD([], 'length');
6778
7612
  } catch (e) {
6779
- // IE 8 has a broken defineProperty
6780
- $defineProperty = false;
7613
+ // IE 8 has a broken gOPD
7614
+ gOPD = null;
6781
7615
  }
6782
7616
  }
6783
7617
 
6784
- esDefineProperty$1 = $defineProperty;
6785
- return esDefineProperty$1;
6786
- }
7618
+ functionsHaveNames.functionsHaveConfigurableNames = function functionsHaveConfigurableNames() {
7619
+ if (!functionsHaveNames() || !gOPD) {
7620
+ return false;
7621
+ }
7622
+ var desc = gOPD(function () {}, 'name');
7623
+ return !!desc && !!desc.configurable;
7624
+ };
6787
7625
 
6788
- var shams$2;
6789
- var hasRequiredShams$2;
7626
+ var $bind = Function.prototype.bind;
6790
7627
 
6791
- function requireShams$2 () {
6792
- if (hasRequiredShams$2) return shams$2;
6793
- hasRequiredShams$2 = 1;
7628
+ functionsHaveNames.boundFunctionsHaveNames = function boundFunctionsHaveNames() {
7629
+ return functionsHaveNames() && typeof $bind === 'function' && function f() {}.bind().name !== '';
7630
+ };
6794
7631
 
6795
- /** @type {import('./shams')} */
6796
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
6797
- shams$2 = function hasSymbols() {
6798
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
6799
- if (typeof Symbol.iterator === 'symbol') { return true; }
7632
+ functionsHaveNames_1 = functionsHaveNames;
7633
+ return functionsHaveNames_1;
7634
+ }
6800
7635
 
6801
- /** @type {{ [k in symbol]?: unknown }} */
6802
- var obj = {};
6803
- var sym = Symbol('test');
6804
- var symObj = Object(sym);
6805
- if (typeof sym === 'string') { return false; }
7636
+ var setFunctionName;
7637
+ var hasRequiredSetFunctionName;
6806
7638
 
6807
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
6808
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
7639
+ function requireSetFunctionName () {
7640
+ if (hasRequiredSetFunctionName) return setFunctionName;
7641
+ hasRequiredSetFunctionName = 1;
6809
7642
 
6810
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
6811
- // if (sym instanceof Symbol) { return false; }
6812
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
6813
- // if (!(symObj instanceof Symbol)) { return false; }
7643
+ var define = /*@__PURE__*/ requireDefineDataProperty();
7644
+ var hasDescriptors = /*@__PURE__*/ requireHasPropertyDescriptors()();
7645
+ var functionsHaveConfigurableNames = requireFunctionsHaveNames().functionsHaveConfigurableNames();
6814
7646
 
6815
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
6816
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
7647
+ var $TypeError = /*@__PURE__*/ requireType();
6817
7648
 
6818
- var symVal = 42;
6819
- obj[sym] = symVal;
6820
- for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
6821
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
7649
+ /** @type {import('.')} */
7650
+ setFunctionName = function setFunctionName(fn, name) {
7651
+ if (typeof fn !== 'function') {
7652
+ throw new $TypeError('`fn` is not a function');
7653
+ }
7654
+ var loose = arguments.length > 2 && !!arguments[2];
7655
+ if (!loose || functionsHaveConfigurableNames) {
7656
+ if (hasDescriptors) {
7657
+ define(/** @type {Parameters<define>[0]} */ (fn), 'name', name, true, true);
7658
+ } else {
7659
+ define(/** @type {Parameters<define>[0]} */ (fn), 'name', name);
7660
+ }
7661
+ }
7662
+ return fn;
7663
+ };
7664
+ return setFunctionName;
7665
+ }
6822
7666
 
6823
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
7667
+ var implementation$1;
7668
+ var hasRequiredImplementation$1;
6824
7669
 
6825
- var syms = Object.getOwnPropertySymbols(obj);
6826
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
7670
+ function requireImplementation$1 () {
7671
+ if (hasRequiredImplementation$1) return implementation$1;
7672
+ hasRequiredImplementation$1 = 1;
6827
7673
 
6828
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
7674
+ var setFunctionName = requireSetFunctionName();
7675
+ var $TypeError = /*@__PURE__*/ requireType();
6829
7676
 
6830
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
6831
- // eslint-disable-next-line no-extra-parens
6832
- var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
6833
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
7677
+ var $Object = Object;
7678
+
7679
+ implementation$1 = setFunctionName(function flags() {
7680
+ if (this == null || this !== $Object(this)) {
7681
+ throw new $TypeError('RegExp.prototype.flags getter called on non-object');
7682
+ }
7683
+ var result = '';
7684
+ if (this.hasIndices) {
7685
+ result += 'd';
7686
+ }
7687
+ if (this.global) {
7688
+ result += 'g';
7689
+ }
7690
+ if (this.ignoreCase) {
7691
+ result += 'i';
7692
+ }
7693
+ if (this.multiline) {
7694
+ result += 'm';
7695
+ }
7696
+ if (this.dotAll) {
7697
+ result += 's';
6834
7698
  }
7699
+ if (this.unicode) {
7700
+ result += 'u';
7701
+ }
7702
+ if (this.unicodeSets) {
7703
+ result += 'v';
7704
+ }
7705
+ if (this.sticky) {
7706
+ result += 'y';
7707
+ }
7708
+ return result;
7709
+ }, 'get flags', true);
7710
+ return implementation$1;
7711
+ }
6835
7712
 
6836
- return true;
7713
+ var polyfill$1;
7714
+ var hasRequiredPolyfill$1;
7715
+
7716
+ function requirePolyfill$1 () {
7717
+ if (hasRequiredPolyfill$1) return polyfill$1;
7718
+ hasRequiredPolyfill$1 = 1;
7719
+
7720
+ var implementation = requireImplementation$1();
7721
+
7722
+ var supportsDescriptors = requireDefineProperties().supportsDescriptors;
7723
+ var $gOPD = Object.getOwnPropertyDescriptor;
7724
+
7725
+ polyfill$1 = function getPolyfill() {
7726
+ if (supportsDescriptors && (/a/mig).flags === 'gim') {
7727
+ var descriptor = $gOPD(RegExp.prototype, 'flags');
7728
+ if (
7729
+ descriptor
7730
+ && typeof descriptor.get === 'function'
7731
+ && 'dotAll' in RegExp.prototype
7732
+ && 'hasIndices' in RegExp.prototype
7733
+ ) {
7734
+ /* eslint getter-return: 0 */
7735
+ var calls = '';
7736
+ var o = {};
7737
+ Object.defineProperty(o, 'hasIndices', {
7738
+ get: function () {
7739
+ calls += 'd';
7740
+ }
7741
+ });
7742
+ Object.defineProperty(o, 'sticky', {
7743
+ get: function () {
7744
+ calls += 'y';
7745
+ }
7746
+ });
7747
+
7748
+ descriptor.get.call(o);
7749
+
7750
+ if (calls === 'dy') {
7751
+ return descriptor.get;
7752
+ }
7753
+ }
7754
+ }
7755
+ return implementation;
6837
7756
  };
6838
- return shams$2;
7757
+ return polyfill$1;
6839
7758
  }
6840
7759
 
6841
- var hasSymbols$1;
6842
- var hasRequiredHasSymbols$1;
7760
+ var gOPD$1;
7761
+ var hasRequiredGOPD$1;
6843
7762
 
6844
- function requireHasSymbols$1 () {
6845
- if (hasRequiredHasSymbols$1) return hasSymbols$1;
6846
- hasRequiredHasSymbols$1 = 1;
7763
+ function requireGOPD$1 () {
7764
+ if (hasRequiredGOPD$1) return gOPD$1;
7765
+ hasRequiredGOPD$1 = 1;
6847
7766
 
6848
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
6849
- var hasSymbolSham = requireShams$2();
7767
+ /** @type {import('./gOPD')} */
7768
+ gOPD$1 = Object.getOwnPropertyDescriptor;
7769
+ return gOPD$1;
7770
+ }
7771
+
7772
+ var gopd$1;
7773
+ var hasRequiredGopd$1;
7774
+
7775
+ function requireGopd$1 () {
7776
+ if (hasRequiredGopd$1) return gopd$1;
7777
+ hasRequiredGopd$1 = 1;
6850
7778
 
6851
7779
  /** @type {import('.')} */
6852
- hasSymbols$1 = function hasNativeSymbols() {
6853
- if (typeof origSymbol !== 'function') { return false; }
6854
- if (typeof Symbol !== 'function') { return false; }
6855
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
6856
- if (typeof Symbol('bar') !== 'symbol') { return false; }
7780
+ var $gOPD = /*@__PURE__*/ requireGOPD$1();
6857
7781
 
6858
- return hasSymbolSham();
7782
+ if ($gOPD) {
7783
+ try {
7784
+ $gOPD([], 'length');
7785
+ } catch (e) {
7786
+ // IE 8 has a broken gOPD
7787
+ $gOPD = null;
7788
+ }
7789
+ }
7790
+
7791
+ gopd$1 = $gOPD;
7792
+ return gopd$1;
7793
+ }
7794
+
7795
+ var shim$1;
7796
+ var hasRequiredShim$1;
7797
+
7798
+ function requireShim$1 () {
7799
+ if (hasRequiredShim$1) return shim$1;
7800
+ hasRequiredShim$1 = 1;
7801
+
7802
+ var supportsDescriptors = requireDefineProperties().supportsDescriptors;
7803
+ var getPolyfill = requirePolyfill$1();
7804
+ var gOPD = /*@__PURE__*/ requireGopd$1();
7805
+ var defineProperty = Object.defineProperty;
7806
+ var $TypeError = /*@__PURE__*/ requireEsErrors();
7807
+ var getProto = requireGetProto();
7808
+ var regex = /a/;
7809
+
7810
+ shim$1 = function shimFlags() {
7811
+ if (!supportsDescriptors || !getProto) {
7812
+ throw new $TypeError('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
7813
+ }
7814
+ var polyfill = getPolyfill();
7815
+ var proto = getProto(regex);
7816
+ var descriptor = gOPD(proto, 'flags');
7817
+ if (!descriptor || descriptor.get !== polyfill) {
7818
+ defineProperty(proto, 'flags', {
7819
+ configurable: true,
7820
+ enumerable: false,
7821
+ get: polyfill
7822
+ });
7823
+ }
7824
+ return polyfill;
6859
7825
  };
6860
- return hasSymbols$1;
7826
+ return shim$1;
6861
7827
  }
6862
7828
 
6863
- var getIntrinsic$1;
6864
- var hasRequiredGetIntrinsic$1;
7829
+ var regexp_prototype_flags;
7830
+ var hasRequiredRegexp_prototype_flags;
6865
7831
 
6866
- function requireGetIntrinsic$1 () {
6867
- if (hasRequiredGetIntrinsic$1) return getIntrinsic$1;
6868
- hasRequiredGetIntrinsic$1 = 1;
7832
+ function requireRegexp_prototype_flags () {
7833
+ if (hasRequiredRegexp_prototype_flags) return regexp_prototype_flags;
7834
+ hasRequiredRegexp_prototype_flags = 1;
6869
7835
 
6870
- var undefined$1;
7836
+ var define = requireDefineProperties();
7837
+ var callBind = requireCallBind$2();
6871
7838
 
6872
- var $Object = /*@__PURE__*/ requireEsObjectAtoms$1();
7839
+ var implementation = requireImplementation$1();
7840
+ var getPolyfill = requirePolyfill$1();
7841
+ var shim = requireShim$1();
7842
+
7843
+ var flagsBound = callBind(getPolyfill());
7844
+
7845
+ define(flagsBound, {
7846
+ getPolyfill: getPolyfill,
7847
+ implementation: implementation,
7848
+ shim: shim
7849
+ });
7850
+
7851
+ regexp_prototype_flags = flagsBound;
7852
+ return regexp_prototype_flags;
7853
+ }
7854
+
7855
+ var node;
7856
+ var hasRequiredNode;
7857
+
7858
+ function requireNode () {
7859
+ if (hasRequiredNode) return node;
7860
+ hasRequiredNode = 1;
7861
+
7862
+ // this should only run in node >= 13.2, so it
7863
+ // does not need any of the intense fallbacks that old node/browsers do
7864
+
7865
+ var $iterator = Symbol.iterator;
7866
+ node = function getIterator(iterable) {
7867
+ // alternatively, `iterable[$iterator]?.()`
7868
+ if (iterable != null && typeof iterable[$iterator] !== 'undefined') {
7869
+ return iterable[$iterator]();
7870
+ }
7871
+ };
7872
+ return node;
7873
+ }
7874
+
7875
+ var getIntrinsic;
7876
+ var hasRequiredGetIntrinsic;
7877
+
7878
+ function requireGetIntrinsic () {
7879
+ if (hasRequiredGetIntrinsic) return getIntrinsic;
7880
+ hasRequiredGetIntrinsic = 1;
7881
+
7882
+ var undefined$1;
6873
7883
 
6874
7884
  var $Error = /*@__PURE__*/ requireEsErrors();
6875
7885
  var $EvalError = /*@__PURE__*/ require_eval();
@@ -6879,14 +7889,6 @@ function requireGetIntrinsic$1 () {
6879
7889
  var $TypeError = /*@__PURE__*/ requireType();
6880
7890
  var $URIError = /*@__PURE__*/ requireUri();
6881
7891
 
6882
- var abs = /*@__PURE__*/ requireAbs();
6883
- var floor = /*@__PURE__*/ requireFloor();
6884
- var max = /*@__PURE__*/ requireMax();
6885
- var min = /*@__PURE__*/ requireMin();
6886
- var pow = /*@__PURE__*/ requirePow();
6887
- var round = /*@__PURE__*/ requireRound();
6888
- var sign = /*@__PURE__*/ requireSign();
6889
-
6890
7892
  var $Function = Function;
6891
7893
 
6892
7894
  // eslint-disable-next-line consistent-return
@@ -6896,8 +7898,14 @@ function requireGetIntrinsic$1 () {
6896
7898
  } catch (e) {}
6897
7899
  };
6898
7900
 
6899
- var $gOPD = /*@__PURE__*/ requireGopd$1();
6900
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$1();
7901
+ var $gOPD = Object.getOwnPropertyDescriptor;
7902
+ if ($gOPD) {
7903
+ try {
7904
+ $gOPD({}, '');
7905
+ } catch (e) {
7906
+ $gOPD = null; // this is IE 8, which has a broken gOPD
7907
+ }
7908
+ }
6901
7909
 
6902
7910
  var throwTypeError = function () {
6903
7911
  throw new $TypeError();
@@ -6920,13 +7928,13 @@ function requireGetIntrinsic$1 () {
6920
7928
  : throwTypeError;
6921
7929
 
6922
7930
  var hasSymbols = requireHasSymbols$1()();
7931
+ var hasProto = /*@__PURE__*/ requireHasProto()();
6923
7932
 
6924
- var getProto = requireGetProto();
6925
- var $ObjectGPO = requireObject_getPrototypeOf();
6926
- var $ReflectGPO = requireReflect_getPrototypeOf();
6927
-
6928
- var $apply = requireFunctionApply();
6929
- var $call = requireFunctionCall();
7933
+ var getProto = Object.getPrototypeOf || (
7934
+ hasProto
7935
+ ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
7936
+ : null
7937
+ );
6930
7938
 
6931
7939
  var needsEval = {};
6932
7940
 
@@ -6957,7 +7965,6 @@ function requireGetIntrinsic$1 () {
6957
7965
  '%Error%': $Error,
6958
7966
  '%eval%': eval, // eslint-disable-line no-eval
6959
7967
  '%EvalError%': $EvalError,
6960
- '%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
6961
7968
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
6962
7969
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
6963
7970
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
@@ -6974,8 +7981,7 @@ function requireGetIntrinsic$1 () {
6974
7981
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
6975
7982
  '%Math%': Math,
6976
7983
  '%Number%': Number,
6977
- '%Object%': $Object,
6978
- '%Object.getOwnPropertyDescriptor%': $gOPD,
7984
+ '%Object%': Object,
6979
7985
  '%parseFloat%': parseFloat,
6980
7986
  '%parseInt%': parseInt,
6981
7987
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
@@ -7001,20 +8007,7 @@ function requireGetIntrinsic$1 () {
7001
8007
  '%URIError%': $URIError,
7002
8008
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
7003
8009
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
7004
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
7005
-
7006
- '%Function.prototype.call%': $call,
7007
- '%Function.prototype.apply%': $apply,
7008
- '%Object.defineProperty%': $defineProperty,
7009
- '%Object.getPrototypeOf%': $ObjectGPO,
7010
- '%Math.abs%': abs,
7011
- '%Math.floor%': floor,
7012
- '%Math.max%': max,
7013
- '%Math.min%': min,
7014
- '%Math.pow%': pow,
7015
- '%Math.round%': round,
7016
- '%Math.sign%': sign,
7017
- '%Reflect.getPrototypeOf%': $ReflectGPO
8010
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
7018
8011
  };
7019
8012
 
7020
8013
  if (getProto) {
@@ -7109,11 +8102,11 @@ function requireGetIntrinsic$1 () {
7109
8102
 
7110
8103
  var bind = requireFunctionBind();
7111
8104
  var hasOwn = /*@__PURE__*/ requireHasown();
7112
- var $concat = bind.call($call, Array.prototype.concat);
7113
- var $spliceApply = bind.call($apply, Array.prototype.splice);
7114
- var $replace = bind.call($call, String.prototype.replace);
7115
- var $strSlice = bind.call($call, String.prototype.slice);
7116
- var $exec = bind.call($call, RegExp.prototype.exec);
8105
+ var $concat = bind.call(Function.call, Array.prototype.concat);
8106
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
8107
+ var $replace = bind.call(Function.call, String.prototype.replace);
8108
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
8109
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
7117
8110
 
7118
8111
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
7119
8112
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -7161,7 +8154,7 @@ function requireGetIntrinsic$1 () {
7161
8154
  throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
7162
8155
  };
7163
8156
 
7164
- getIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
8157
+ getIntrinsic = function GetIntrinsic(name, allowMissing) {
7165
8158
  if (typeof name !== 'string' || name.length === 0) {
7166
8159
  throw new $TypeError('intrinsic name must be a non-empty string');
7167
8160
  }
@@ -7213,7 +8206,7 @@ function requireGetIntrinsic$1 () {
7213
8206
  if (!allowMissing) {
7214
8207
  throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
7215
8208
  }
7216
- return void 0;
8209
+ return void undefined$1;
7217
8210
  }
7218
8211
  if ($gOPD && (i + 1) >= parts.length) {
7219
8212
  var desc = $gOPD(value, part);
@@ -7243,27 +8236,7 @@ function requireGetIntrinsic$1 () {
7243
8236
  }
7244
8237
  return value;
7245
8238
  };
7246
- return getIntrinsic$1;
7247
- }
7248
-
7249
- var node;
7250
- var hasRequiredNode;
7251
-
7252
- function requireNode () {
7253
- if (hasRequiredNode) return node;
7254
- hasRequiredNode = 1;
7255
-
7256
- // this should only run in node >= 13.2, so it
7257
- // does not need any of the intense fallbacks that old node/browsers do
7258
-
7259
- var $iterator = Symbol.iterator;
7260
- node = function getIterator(iterable) {
7261
- // alternatively, `iterable[$iterator]?.()`
7262
- if (iterable != null && typeof iterable[$iterator] !== 'undefined') {
7263
- return iterable[$iterator]();
7264
- }
7265
- };
7266
- return node;
8239
+ return getIntrinsic;
7267
8240
  }
7268
8241
 
7269
8242
  var util_inspect;
@@ -7819,7 +8792,7 @@ function requireSideChannel () {
7819
8792
  if (hasRequiredSideChannel) return sideChannel;
7820
8793
  hasRequiredSideChannel = 1;
7821
8794
 
7822
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$3();
8795
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
7823
8796
  var callBound = requireCallBound();
7824
8797
  var inspect = /*@__PURE__*/ requireObjectInspect();
7825
8798
 
@@ -8038,20 +9011,20 @@ function requireObjectIs () {
8038
9011
  return objectIs;
8039
9012
  }
8040
9013
 
8041
- var shams$1;
8042
- var hasRequiredShams$1;
9014
+ var shams;
9015
+ var hasRequiredShams;
8043
9016
 
8044
- function requireShams$1 () {
8045
- if (hasRequiredShams$1) return shams$1;
8046
- hasRequiredShams$1 = 1;
9017
+ function requireShams () {
9018
+ if (hasRequiredShams) return shams;
9019
+ hasRequiredShams = 1;
8047
9020
 
8048
- var hasSymbols = requireShams$5();
9021
+ var hasSymbols = requireShams$3();
8049
9022
 
8050
9023
  /** @type {import('.')} */
8051
- shams$1 = function hasToStringTagShams() {
9024
+ shams = function hasToStringTagShams() {
8052
9025
  return hasSymbols() && !!Symbol.toStringTag;
8053
9026
  };
8054
- return shams$1;
9027
+ return shams;
8055
9028
  }
8056
9029
 
8057
9030
  var isArguments;
@@ -8061,7 +9034,7 @@ function requireIsArguments () {
8061
9034
  if (hasRequiredIsArguments) return isArguments;
8062
9035
  hasRequiredIsArguments = 1;
8063
9036
 
8064
- var hasToStringTag = requireShams$1()();
9037
+ var hasToStringTag = requireShams()();
8065
9038
  var callBound = /*@__PURE__*/ requireCallBound$1();
8066
9039
 
8067
9040
  var $toString = callBound('Object.prototype.toString');
@@ -8131,7 +9104,7 @@ function requireCallBind$1 () {
8131
9104
 
8132
9105
  var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
8133
9106
 
8134
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$3();
9107
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$1();
8135
9108
 
8136
9109
  var callBindBasic = requireCallBindApplyHelpers();
8137
9110
  var applyBind = requireApplyBind();
@@ -8164,7 +9137,7 @@ function requireIsArrayBuffer () {
8164
9137
 
8165
9138
  var callBind = requireCallBind$1();
8166
9139
  var callBound = /*@__PURE__*/ requireCallBound$1();
8167
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$1();
9140
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$2();
8168
9141
 
8169
9142
  var $ArrayBuffer = GetIntrinsic('%ArrayBuffer%', true);
8170
9143
  /** @type {undefined | ((receiver: ArrayBuffer) => number) | ((receiver: unknown) => never)} */
@@ -8229,7 +9202,7 @@ function requireIsDateObject () {
8229
9202
  /** @type {(value: unknown) => string} */
8230
9203
  var toStr = callBound('Object.prototype.toString');
8231
9204
  var dateClass = '[object Date]';
8232
- var hasToStringTag = requireShams$1()();
9205
+ var hasToStringTag = requireShams()();
8233
9206
 
8234
9207
  /** @type {import('.')} */
8235
9208
  isDateObject = function isDateObject(value) {
@@ -8249,7 +9222,7 @@ function requireIsRegex () {
8249
9222
  hasRequiredIsRegex = 1;
8250
9223
 
8251
9224
  var callBound = requireCallBound();
8252
- var hasToStringTag = requireShams$1()();
9225
+ var hasToStringTag = requireShams()();
8253
9226
  var has;
8254
9227
  var $exec;
8255
9228
  var isRegexMarker;
@@ -8355,7 +9328,7 @@ function requireIsString () {
8355
9328
  };
8356
9329
  var toStr = Object.prototype.toString;
8357
9330
  var strClass = '[object String]';
8358
- var hasToStringTag = requireShams$1()();
9331
+ var hasToStringTag = requireShams()();
8359
9332
 
8360
9333
  isString = function isString(value) {
8361
9334
  if (typeof value === 'string') {
@@ -8387,7 +9360,7 @@ function requireIsNumberObject () {
8387
9360
  };
8388
9361
  var toStr = Object.prototype.toString;
8389
9362
  var numClass = '[object Number]';
8390
- var hasToStringTag = requireShams$1()();
9363
+ var hasToStringTag = requireShams()();
8391
9364
 
8392
9365
  isNumberObject = function isNumberObject(value) {
8393
9366
  if (typeof value === 'number') {
@@ -8421,7 +9394,7 @@ function requireIsBooleanObject () {
8421
9394
  }
8422
9395
  };
8423
9396
  var boolClass = '[object Boolean]';
8424
- var hasToStringTag = requireShams$1()();
9397
+ var hasToStringTag = requireShams()();
8425
9398
 
8426
9399
  isBooleanObject = function isBoolean(value) {
8427
9400
  if (typeof value === 'boolean') {
@@ -8444,7 +9417,7 @@ function requireIsSymbol () {
8444
9417
  hasRequiredIsSymbol = 1;
8445
9418
 
8446
9419
  var toStr = Object.prototype.toString;
8447
- var hasSymbols = requireHasSymbols$3()();
9420
+ var hasSymbols = requireHasSymbols$1()();
8448
9421
 
8449
9422
  if (hasSymbols) {
8450
9423
  var symToStr = Symbol.prototype.toString;
@@ -8609,681 +9582,151 @@ function requireIsMap () {
8609
9582
  if (!exported && !$mapHas) {
8610
9583
  /** @type {import('.')} */
8611
9584
  // eslint-disable-next-line no-unused-vars
8612
- exported = function isMap(x) {
8613
- // `Map` does not have a `has` method
8614
- return false;
8615
- };
8616
- }
8617
-
8618
- /** @type {import('.')} */
8619
- isMap = exported || function isMap(x) {
8620
- if (!x || typeof x !== 'object') {
8621
- return false;
8622
- }
8623
- try {
8624
- $mapHas.call(x);
8625
- if ($setHas) {
8626
- try {
8627
- $setHas.call(x);
8628
- } catch (e) {
8629
- return true;
8630
- }
8631
- }
8632
- // @ts-expect-error TS can't figure out that $Map is always truthy here
8633
- return x instanceof $Map; // core-js workaround, pre-v2.5.0
8634
- } catch (e) {}
8635
- return false;
8636
- };
8637
- return isMap;
8638
- }
8639
-
8640
- var isSet;
8641
- var hasRequiredIsSet;
8642
-
8643
- function requireIsSet () {
8644
- if (hasRequiredIsSet) return isSet;
8645
- hasRequiredIsSet = 1;
8646
-
8647
- var $Map = typeof Map === 'function' && Map.prototype ? Map : null;
8648
- var $Set = typeof Set === 'function' && Set.prototype ? Set : null;
8649
-
8650
- var exported;
8651
-
8652
- if (!$Set) {
8653
- /** @type {import('.')} */
8654
- // eslint-disable-next-line no-unused-vars
8655
- exported = function isSet(x) {
8656
- // `Set` is not present in this environment.
8657
- return false;
8658
- };
8659
- }
8660
-
8661
- var $mapHas = $Map ? Map.prototype.has : null;
8662
- var $setHas = $Set ? Set.prototype.has : null;
8663
- if (!exported && !$setHas) {
8664
- /** @type {import('.')} */
8665
- // eslint-disable-next-line no-unused-vars
8666
- exported = function isSet(x) {
8667
- // `Set` does not have a `has` method
8668
- return false;
8669
- };
8670
- }
8671
-
8672
- /** @type {import('.')} */
8673
- isSet = exported || function isSet(x) {
8674
- if (!x || typeof x !== 'object') {
8675
- return false;
8676
- }
8677
- try {
8678
- $setHas.call(x);
8679
- if ($mapHas) {
8680
- try {
8681
- $mapHas.call(x);
8682
- } catch (e) {
8683
- return true;
8684
- }
8685
- }
8686
- // @ts-expect-error TS can't figure out that $Set is always truthy here
8687
- return x instanceof $Set; // core-js workaround, pre-v2.5.0
8688
- } catch (e) {}
8689
- return false;
8690
- };
8691
- return isSet;
8692
- }
8693
-
8694
- var isWeakmap;
8695
- var hasRequiredIsWeakmap;
8696
-
8697
- function requireIsWeakmap () {
8698
- if (hasRequiredIsWeakmap) return isWeakmap;
8699
- hasRequiredIsWeakmap = 1;
8700
-
8701
- var $WeakMap = typeof WeakMap === 'function' && WeakMap.prototype ? WeakMap : null;
8702
- var $WeakSet = typeof WeakSet === 'function' && WeakSet.prototype ? WeakSet : null;
8703
-
8704
- var exported;
8705
-
8706
- if (!$WeakMap) {
8707
- /** @type {import('.')} */
8708
- // eslint-disable-next-line no-unused-vars
8709
- exported = function isWeakMap(x) {
8710
- // `WeakMap` is not present in this environment.
8711
- return false;
8712
- };
8713
- }
8714
-
8715
- var $mapHas = $WeakMap ? $WeakMap.prototype.has : null;
8716
- var $setHas = $WeakSet ? $WeakSet.prototype.has : null;
8717
- if (!exported && !$mapHas) {
8718
- /** @type {import('.')} */
8719
- // eslint-disable-next-line no-unused-vars
8720
- exported = function isWeakMap(x) {
8721
- // `WeakMap` does not have a `has` method
8722
- return false;
8723
- };
8724
- }
8725
-
8726
- /** @type {import('.')} */
8727
- isWeakmap = exported || function isWeakMap(x) {
8728
- if (!x || typeof x !== 'object') {
8729
- return false;
8730
- }
8731
- try {
8732
- $mapHas.call(x, $mapHas);
8733
- if ($setHas) {
8734
- try {
8735
- $setHas.call(x, $setHas);
8736
- } catch (e) {
8737
- return true;
8738
- }
8739
- }
8740
- // @ts-expect-error TS can't figure out that $WeakMap is always truthy here
8741
- return x instanceof $WeakMap; // core-js workaround, pre-v3
8742
- } catch (e) {}
8743
- return false;
8744
- };
8745
- return isWeakmap;
8746
- }
8747
-
8748
- var isWeakset = {exports: {}};
8749
-
8750
- var esObjectAtoms;
8751
- var hasRequiredEsObjectAtoms;
8752
-
8753
- function requireEsObjectAtoms () {
8754
- if (hasRequiredEsObjectAtoms) return esObjectAtoms;
8755
- hasRequiredEsObjectAtoms = 1;
8756
-
8757
- /** @type {import('.')} */
8758
- esObjectAtoms = Object;
8759
- return esObjectAtoms;
8760
- }
8761
-
8762
- var gOPD;
8763
- var hasRequiredGOPD;
8764
-
8765
- function requireGOPD () {
8766
- if (hasRequiredGOPD) return gOPD;
8767
- hasRequiredGOPD = 1;
8768
-
8769
- /** @type {import('./gOPD')} */
8770
- gOPD = Object.getOwnPropertyDescriptor;
8771
- return gOPD;
8772
- }
8773
-
8774
- var gopd;
8775
- var hasRequiredGopd;
8776
-
8777
- function requireGopd () {
8778
- if (hasRequiredGopd) return gopd;
8779
- hasRequiredGopd = 1;
8780
-
8781
- /** @type {import('.')} */
8782
- var $gOPD = /*@__PURE__*/ requireGOPD();
8783
-
8784
- if ($gOPD) {
8785
- try {
8786
- $gOPD([], 'length');
8787
- } catch (e) {
8788
- // IE 8 has a broken gOPD
8789
- $gOPD = null;
8790
- }
8791
- }
8792
-
8793
- gopd = $gOPD;
8794
- return gopd;
8795
- }
8796
-
8797
- var esDefineProperty;
8798
- var hasRequiredEsDefineProperty;
8799
-
8800
- function requireEsDefineProperty () {
8801
- if (hasRequiredEsDefineProperty) return esDefineProperty;
8802
- hasRequiredEsDefineProperty = 1;
8803
-
8804
- /** @type {import('.')} */
8805
- var $defineProperty = Object.defineProperty || false;
8806
- if ($defineProperty) {
8807
- try {
8808
- $defineProperty({}, 'a', { value: 1 });
8809
- } catch (e) {
8810
- // IE 8 has a broken defineProperty
8811
- $defineProperty = false;
8812
- }
8813
- }
8814
-
8815
- esDefineProperty = $defineProperty;
8816
- return esDefineProperty;
8817
- }
8818
-
8819
- var shams;
8820
- var hasRequiredShams;
8821
-
8822
- function requireShams () {
8823
- if (hasRequiredShams) return shams;
8824
- hasRequiredShams = 1;
8825
-
8826
- /** @type {import('./shams')} */
8827
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
8828
- shams = function hasSymbols() {
8829
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
8830
- if (typeof Symbol.iterator === 'symbol') { return true; }
8831
-
8832
- /** @type {{ [k in symbol]?: unknown }} */
8833
- var obj = {};
8834
- var sym = Symbol('test');
8835
- var symObj = Object(sym);
8836
- if (typeof sym === 'string') { return false; }
8837
-
8838
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
8839
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
8840
-
8841
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
8842
- // if (sym instanceof Symbol) { return false; }
8843
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
8844
- // if (!(symObj instanceof Symbol)) { return false; }
8845
-
8846
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
8847
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
8848
-
8849
- var symVal = 42;
8850
- obj[sym] = symVal;
8851
- for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
8852
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
8853
-
8854
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
8855
-
8856
- var syms = Object.getOwnPropertySymbols(obj);
8857
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
8858
-
8859
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
8860
-
8861
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
8862
- // eslint-disable-next-line no-extra-parens
8863
- var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
8864
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
8865
- }
8866
-
8867
- return true;
8868
- };
8869
- return shams;
8870
- }
8871
-
8872
- var hasSymbols;
8873
- var hasRequiredHasSymbols;
8874
-
8875
- function requireHasSymbols () {
8876
- if (hasRequiredHasSymbols) return hasSymbols;
8877
- hasRequiredHasSymbols = 1;
8878
-
8879
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
8880
- var hasSymbolSham = requireShams();
8881
-
8882
- /** @type {import('.')} */
8883
- hasSymbols = function hasNativeSymbols() {
8884
- if (typeof origSymbol !== 'function') { return false; }
8885
- if (typeof Symbol !== 'function') { return false; }
8886
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
8887
- if (typeof Symbol('bar') !== 'symbol') { return false; }
8888
-
8889
- return hasSymbolSham();
8890
- };
8891
- return hasSymbols;
8892
- }
8893
-
8894
- var getIntrinsic;
8895
- var hasRequiredGetIntrinsic;
8896
-
8897
- function requireGetIntrinsic () {
8898
- if (hasRequiredGetIntrinsic) return getIntrinsic;
8899
- hasRequiredGetIntrinsic = 1;
8900
-
8901
- var undefined$1;
8902
-
8903
- var $Object = /*@__PURE__*/ requireEsObjectAtoms();
8904
-
8905
- var $Error = /*@__PURE__*/ requireEsErrors();
8906
- var $EvalError = /*@__PURE__*/ require_eval();
8907
- var $RangeError = /*@__PURE__*/ requireRange();
8908
- var $ReferenceError = /*@__PURE__*/ requireRef();
8909
- var $SyntaxError = /*@__PURE__*/ requireSyntax();
8910
- var $TypeError = /*@__PURE__*/ requireType();
8911
- var $URIError = /*@__PURE__*/ requireUri();
8912
-
8913
- var abs = /*@__PURE__*/ requireAbs();
8914
- var floor = /*@__PURE__*/ requireFloor();
8915
- var max = /*@__PURE__*/ requireMax();
8916
- var min = /*@__PURE__*/ requireMin();
8917
- var pow = /*@__PURE__*/ requirePow();
8918
- var round = /*@__PURE__*/ requireRound();
8919
- var sign = /*@__PURE__*/ requireSign();
8920
-
8921
- var $Function = Function;
8922
-
8923
- // eslint-disable-next-line consistent-return
8924
- var getEvalledConstructor = function (expressionSyntax) {
8925
- try {
8926
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
8927
- } catch (e) {}
8928
- };
8929
-
8930
- var $gOPD = /*@__PURE__*/ requireGopd();
8931
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty();
8932
-
8933
- var throwTypeError = function () {
8934
- throw new $TypeError();
8935
- };
8936
- var ThrowTypeError = $gOPD
8937
- ? (function () {
8938
- try {
8939
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
8940
- arguments.callee; // IE 8 does not throw here
8941
- return throwTypeError;
8942
- } catch (calleeThrows) {
8943
- try {
8944
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
8945
- return $gOPD(arguments, 'callee').get;
8946
- } catch (gOPDthrows) {
8947
- return throwTypeError;
8948
- }
8949
- }
8950
- }())
8951
- : throwTypeError;
8952
-
8953
- var hasSymbols = requireHasSymbols()();
8954
-
8955
- var getProto = requireGetProto();
8956
- var $ObjectGPO = requireObject_getPrototypeOf();
8957
- var $ReflectGPO = requireReflect_getPrototypeOf();
8958
-
8959
- var $apply = requireFunctionApply();
8960
- var $call = requireFunctionCall();
8961
-
8962
- var needsEval = {};
8963
-
8964
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
8965
-
8966
- var INTRINSICS = {
8967
- __proto__: null,
8968
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
8969
- '%Array%': Array,
8970
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
8971
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
8972
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
8973
- '%AsyncFunction%': needsEval,
8974
- '%AsyncGenerator%': needsEval,
8975
- '%AsyncGeneratorFunction%': needsEval,
8976
- '%AsyncIteratorPrototype%': needsEval,
8977
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
8978
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
8979
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
8980
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
8981
- '%Boolean%': Boolean,
8982
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
8983
- '%Date%': Date,
8984
- '%decodeURI%': decodeURI,
8985
- '%decodeURIComponent%': decodeURIComponent,
8986
- '%encodeURI%': encodeURI,
8987
- '%encodeURIComponent%': encodeURIComponent,
8988
- '%Error%': $Error,
8989
- '%eval%': eval, // eslint-disable-line no-eval
8990
- '%EvalError%': $EvalError,
8991
- '%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
8992
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
8993
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
8994
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
8995
- '%Function%': $Function,
8996
- '%GeneratorFunction%': needsEval,
8997
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
8998
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
8999
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
9000
- '%isFinite%': isFinite,
9001
- '%isNaN%': isNaN,
9002
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
9003
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
9004
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
9005
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
9006
- '%Math%': Math,
9007
- '%Number%': Number,
9008
- '%Object%': $Object,
9009
- '%Object.getOwnPropertyDescriptor%': $gOPD,
9010
- '%parseFloat%': parseFloat,
9011
- '%parseInt%': parseInt,
9012
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
9013
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
9014
- '%RangeError%': $RangeError,
9015
- '%ReferenceError%': $ReferenceError,
9016
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
9017
- '%RegExp%': RegExp,
9018
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
9019
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
9020
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
9021
- '%String%': String,
9022
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
9023
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
9024
- '%SyntaxError%': $SyntaxError,
9025
- '%ThrowTypeError%': ThrowTypeError,
9026
- '%TypedArray%': TypedArray,
9027
- '%TypeError%': $TypeError,
9028
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
9029
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
9030
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
9031
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
9032
- '%URIError%': $URIError,
9033
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
9034
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
9035
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
9036
-
9037
- '%Function.prototype.call%': $call,
9038
- '%Function.prototype.apply%': $apply,
9039
- '%Object.defineProperty%': $defineProperty,
9040
- '%Object.getPrototypeOf%': $ObjectGPO,
9041
- '%Math.abs%': abs,
9042
- '%Math.floor%': floor,
9043
- '%Math.max%': max,
9044
- '%Math.min%': min,
9045
- '%Math.pow%': pow,
9046
- '%Math.round%': round,
9047
- '%Math.sign%': sign,
9048
- '%Reflect.getPrototypeOf%': $ReflectGPO
9049
- };
9050
-
9051
- if (getProto) {
9052
- try {
9053
- null.error; // eslint-disable-line no-unused-expressions
9054
- } catch (e) {
9055
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
9056
- var errorProto = getProto(getProto(e));
9057
- INTRINSICS['%Error.prototype%'] = errorProto;
9058
- }
9059
- }
9060
-
9061
- var doEval = function doEval(name) {
9062
- var value;
9063
- if (name === '%AsyncFunction%') {
9064
- value = getEvalledConstructor('async function () {}');
9065
- } else if (name === '%GeneratorFunction%') {
9066
- value = getEvalledConstructor('function* () {}');
9067
- } else if (name === '%AsyncGeneratorFunction%') {
9068
- value = getEvalledConstructor('async function* () {}');
9069
- } else if (name === '%AsyncGenerator%') {
9070
- var fn = doEval('%AsyncGeneratorFunction%');
9071
- if (fn) {
9072
- value = fn.prototype;
9073
- }
9074
- } else if (name === '%AsyncIteratorPrototype%') {
9075
- var gen = doEval('%AsyncGenerator%');
9076
- if (gen && getProto) {
9077
- value = getProto(gen.prototype);
9078
- }
9079
- }
9080
-
9081
- INTRINSICS[name] = value;
9082
-
9083
- return value;
9084
- };
9085
-
9086
- var LEGACY_ALIASES = {
9087
- __proto__: null,
9088
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
9089
- '%ArrayPrototype%': ['Array', 'prototype'],
9090
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
9091
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
9092
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
9093
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
9094
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
9095
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
9096
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
9097
- '%BooleanPrototype%': ['Boolean', 'prototype'],
9098
- '%DataViewPrototype%': ['DataView', 'prototype'],
9099
- '%DatePrototype%': ['Date', 'prototype'],
9100
- '%ErrorPrototype%': ['Error', 'prototype'],
9101
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
9102
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
9103
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
9104
- '%FunctionPrototype%': ['Function', 'prototype'],
9105
- '%Generator%': ['GeneratorFunction', 'prototype'],
9106
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
9107
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
9108
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
9109
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
9110
- '%JSONParse%': ['JSON', 'parse'],
9111
- '%JSONStringify%': ['JSON', 'stringify'],
9112
- '%MapPrototype%': ['Map', 'prototype'],
9113
- '%NumberPrototype%': ['Number', 'prototype'],
9114
- '%ObjectPrototype%': ['Object', 'prototype'],
9115
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
9116
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
9117
- '%PromisePrototype%': ['Promise', 'prototype'],
9118
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
9119
- '%Promise_all%': ['Promise', 'all'],
9120
- '%Promise_reject%': ['Promise', 'reject'],
9121
- '%Promise_resolve%': ['Promise', 'resolve'],
9122
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
9123
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
9124
- '%RegExpPrototype%': ['RegExp', 'prototype'],
9125
- '%SetPrototype%': ['Set', 'prototype'],
9126
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
9127
- '%StringPrototype%': ['String', 'prototype'],
9128
- '%SymbolPrototype%': ['Symbol', 'prototype'],
9129
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
9130
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
9131
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
9132
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
9133
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
9134
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
9135
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
9136
- '%URIErrorPrototype%': ['URIError', 'prototype'],
9137
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
9138
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
9139
- };
9140
-
9141
- var bind = requireFunctionBind();
9142
- var hasOwn = /*@__PURE__*/ requireHasown();
9143
- var $concat = bind.call($call, Array.prototype.concat);
9144
- var $spliceApply = bind.call($apply, Array.prototype.splice);
9145
- var $replace = bind.call($call, String.prototype.replace);
9146
- var $strSlice = bind.call($call, String.prototype.slice);
9147
- var $exec = bind.call($call, RegExp.prototype.exec);
9148
-
9149
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
9150
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
9151
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
9152
- var stringToPath = function stringToPath(string) {
9153
- var first = $strSlice(string, 0, 1);
9154
- var last = $strSlice(string, -1);
9155
- if (first === '%' && last !== '%') {
9156
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
9157
- } else if (last === '%' && first !== '%') {
9158
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
9585
+ exported = function isMap(x) {
9586
+ // `Map` does not have a `has` method
9587
+ return false;
9588
+ };
9589
+ }
9590
+
9591
+ /** @type {import('.')} */
9592
+ isMap = exported || function isMap(x) {
9593
+ if (!x || typeof x !== 'object') {
9594
+ return false;
9159
9595
  }
9160
- var result = [];
9161
- $replace(string, rePropName, function (match, number, quote, subString) {
9162
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
9163
- });
9164
- return result;
9596
+ try {
9597
+ $mapHas.call(x);
9598
+ if ($setHas) {
9599
+ try {
9600
+ $setHas.call(x);
9601
+ } catch (e) {
9602
+ return true;
9603
+ }
9604
+ }
9605
+ // @ts-expect-error TS can't figure out that $Map is always truthy here
9606
+ return x instanceof $Map; // core-js workaround, pre-v2.5.0
9607
+ } catch (e) {}
9608
+ return false;
9165
9609
  };
9166
- /* end adaptation */
9610
+ return isMap;
9611
+ }
9167
9612
 
9168
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
9169
- var intrinsicName = name;
9170
- var alias;
9171
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
9172
- alias = LEGACY_ALIASES[intrinsicName];
9173
- intrinsicName = '%' + alias[0] + '%';
9174
- }
9613
+ var isSet;
9614
+ var hasRequiredIsSet;
9175
9615
 
9176
- if (hasOwn(INTRINSICS, intrinsicName)) {
9177
- var value = INTRINSICS[intrinsicName];
9178
- if (value === needsEval) {
9179
- value = doEval(intrinsicName);
9180
- }
9181
- if (typeof value === 'undefined' && !allowMissing) {
9182
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
9183
- }
9616
+ function requireIsSet () {
9617
+ if (hasRequiredIsSet) return isSet;
9618
+ hasRequiredIsSet = 1;
9184
9619
 
9185
- return {
9186
- alias: alias,
9187
- name: intrinsicName,
9188
- value: value
9189
- };
9190
- }
9620
+ var $Map = typeof Map === 'function' && Map.prototype ? Map : null;
9621
+ var $Set = typeof Set === 'function' && Set.prototype ? Set : null;
9191
9622
 
9192
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
9193
- };
9623
+ var exported;
9194
9624
 
9195
- getIntrinsic = function GetIntrinsic(name, allowMissing) {
9196
- if (typeof name !== 'string' || name.length === 0) {
9197
- throw new $TypeError('intrinsic name must be a non-empty string');
9198
- }
9199
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
9200
- throw new $TypeError('"allowMissing" argument must be a boolean');
9201
- }
9625
+ if (!$Set) {
9626
+ /** @type {import('.')} */
9627
+ // eslint-disable-next-line no-unused-vars
9628
+ exported = function isSet(x) {
9629
+ // `Set` is not present in this environment.
9630
+ return false;
9631
+ };
9632
+ }
9202
9633
 
9203
- if ($exec(/^%?[^%]*%?$/, name) === null) {
9204
- throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
9634
+ var $mapHas = $Map ? Map.prototype.has : null;
9635
+ var $setHas = $Set ? Set.prototype.has : null;
9636
+ if (!exported && !$setHas) {
9637
+ /** @type {import('.')} */
9638
+ // eslint-disable-next-line no-unused-vars
9639
+ exported = function isSet(x) {
9640
+ // `Set` does not have a `has` method
9641
+ return false;
9642
+ };
9643
+ }
9644
+
9645
+ /** @type {import('.')} */
9646
+ isSet = exported || function isSet(x) {
9647
+ if (!x || typeof x !== 'object') {
9648
+ return false;
9205
9649
  }
9206
- var parts = stringToPath(name);
9207
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
9650
+ try {
9651
+ $setHas.call(x);
9652
+ if ($mapHas) {
9653
+ try {
9654
+ $mapHas.call(x);
9655
+ } catch (e) {
9656
+ return true;
9657
+ }
9658
+ }
9659
+ // @ts-expect-error TS can't figure out that $Set is always truthy here
9660
+ return x instanceof $Set; // core-js workaround, pre-v2.5.0
9661
+ } catch (e) {}
9662
+ return false;
9663
+ };
9664
+ return isSet;
9665
+ }
9208
9666
 
9209
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
9210
- var intrinsicRealName = intrinsic.name;
9211
- var value = intrinsic.value;
9212
- var skipFurtherCaching = false;
9667
+ var isWeakmap;
9668
+ var hasRequiredIsWeakmap;
9213
9669
 
9214
- var alias = intrinsic.alias;
9215
- if (alias) {
9216
- intrinsicBaseName = alias[0];
9217
- $spliceApply(parts, $concat([0, 1], alias));
9218
- }
9670
+ function requireIsWeakmap () {
9671
+ if (hasRequiredIsWeakmap) return isWeakmap;
9672
+ hasRequiredIsWeakmap = 1;
9219
9673
 
9220
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
9221
- var part = parts[i];
9222
- var first = $strSlice(part, 0, 1);
9223
- var last = $strSlice(part, -1);
9224
- if (
9225
- (
9226
- (first === '"' || first === "'" || first === '`')
9227
- || (last === '"' || last === "'" || last === '`')
9228
- )
9229
- && first !== last
9230
- ) {
9231
- throw new $SyntaxError('property names with quotes must have matching quotes');
9232
- }
9233
- if (part === 'constructor' || !isOwn) {
9234
- skipFurtherCaching = true;
9235
- }
9674
+ var $WeakMap = typeof WeakMap === 'function' && WeakMap.prototype ? WeakMap : null;
9675
+ var $WeakSet = typeof WeakSet === 'function' && WeakSet.prototype ? WeakSet : null;
9236
9676
 
9237
- intrinsicBaseName += '.' + part;
9238
- intrinsicRealName = '%' + intrinsicBaseName + '%';
9677
+ var exported;
9239
9678
 
9240
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
9241
- value = INTRINSICS[intrinsicRealName];
9242
- } else if (value != null) {
9243
- if (!(part in value)) {
9244
- if (!allowMissing) {
9245
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
9246
- }
9247
- return void 0;
9248
- }
9249
- if ($gOPD && (i + 1) >= parts.length) {
9250
- var desc = $gOPD(value, part);
9251
- isOwn = !!desc;
9679
+ if (!$WeakMap) {
9680
+ /** @type {import('.')} */
9681
+ // eslint-disable-next-line no-unused-vars
9682
+ exported = function isWeakMap(x) {
9683
+ // `WeakMap` is not present in this environment.
9684
+ return false;
9685
+ };
9686
+ }
9252
9687
 
9253
- // By convention, when a data property is converted to an accessor
9254
- // property to emulate a data property that does not suffer from
9255
- // the override mistake, that accessor's getter is marked with
9256
- // an `originalValue` property. Here, when we detect this, we
9257
- // uphold the illusion by pretending to see that original data
9258
- // property, i.e., returning the value rather than the getter
9259
- // itself.
9260
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
9261
- value = desc.get;
9262
- } else {
9263
- value = value[part];
9264
- }
9265
- } else {
9266
- isOwn = hasOwn(value, part);
9267
- value = value[part];
9268
- }
9688
+ var $mapHas = $WeakMap ? $WeakMap.prototype.has : null;
9689
+ var $setHas = $WeakSet ? $WeakSet.prototype.has : null;
9690
+ if (!exported && !$mapHas) {
9691
+ /** @type {import('.')} */
9692
+ // eslint-disable-next-line no-unused-vars
9693
+ exported = function isWeakMap(x) {
9694
+ // `WeakMap` does not have a `has` method
9695
+ return false;
9696
+ };
9697
+ }
9269
9698
 
9270
- if (isOwn && !skipFurtherCaching) {
9271
- INTRINSICS[intrinsicRealName] = value;
9699
+ /** @type {import('.')} */
9700
+ isWeakmap = exported || function isWeakMap(x) {
9701
+ if (!x || typeof x !== 'object') {
9702
+ return false;
9703
+ }
9704
+ try {
9705
+ $mapHas.call(x, $mapHas);
9706
+ if ($setHas) {
9707
+ try {
9708
+ $setHas.call(x, $setHas);
9709
+ } catch (e) {
9710
+ return true;
9272
9711
  }
9273
9712
  }
9274
- }
9275
- return value;
9713
+ // @ts-expect-error TS can't figure out that $WeakMap is always truthy here
9714
+ return x instanceof $WeakMap; // core-js workaround, pre-v3
9715
+ } catch (e) {}
9716
+ return false;
9276
9717
  };
9277
- return getIntrinsic;
9718
+ return isWeakmap;
9278
9719
  }
9279
9720
 
9721
+ var isWeakset = {exports: {}};
9722
+
9280
9723
  var hasRequiredIsWeakset;
9281
9724
 
9282
9725
  function requireIsWeakset () {
9283
9726
  if (hasRequiredIsWeakset) return isWeakset.exports;
9284
9727
  hasRequiredIsWeakset = 1;
9285
9728
 
9286
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic();
9729
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$2();
9287
9730
  var callBound = /*@__PURE__*/ requireCallBound$1();
9288
9731
 
9289
9732
  var $WeakSet = GetIntrinsic('%WeakSet%', true);
@@ -9606,7 +10049,7 @@ function requireCallBind () {
9606
10049
 
9607
10050
  var setFunctionLength = /*@__PURE__*/ requireSetFunctionLength();
9608
10051
 
9609
- var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$3();
10052
+ var $defineProperty = /*@__PURE__*/ requireEsDefineProperty$1();
9610
10053
 
9611
10054
  var callBindBasic = requireCallBindApplyHelpers();
9612
10055
  var applyBind = requireApplyBind();
@@ -9630,6 +10073,41 @@ function requireCallBind () {
9630
10073
  return callBind.exports;
9631
10074
  }
9632
10075
 
10076
+ var gOPD;
10077
+ var hasRequiredGOPD;
10078
+
10079
+ function requireGOPD () {
10080
+ if (hasRequiredGOPD) return gOPD;
10081
+ hasRequiredGOPD = 1;
10082
+
10083
+ /** @type {import('./gOPD')} */
10084
+ gOPD = Object.getOwnPropertyDescriptor;
10085
+ return gOPD;
10086
+ }
10087
+
10088
+ var gopd;
10089
+ var hasRequiredGopd;
10090
+
10091
+ function requireGopd () {
10092
+ if (hasRequiredGopd) return gopd;
10093
+ hasRequiredGopd = 1;
10094
+
10095
+ /** @type {import('.')} */
10096
+ var $gOPD = /*@__PURE__*/ requireGOPD();
10097
+
10098
+ if ($gOPD) {
10099
+ try {
10100
+ $gOPD([], 'length');
10101
+ } catch (e) {
10102
+ // IE 8 has a broken gOPD
10103
+ $gOPD = null;
10104
+ }
10105
+ }
10106
+
10107
+ gopd = $gOPD;
10108
+ return gopd;
10109
+ }
10110
+
9633
10111
  var whichTypedArray;
9634
10112
  var hasRequiredWhichTypedArray;
9635
10113
 
@@ -9641,11 +10119,11 @@ function requireWhichTypedArray () {
9641
10119
  var availableTypedArrays = /*@__PURE__*/ requireAvailableTypedArrays();
9642
10120
  var callBind = requireCallBind();
9643
10121
  var callBound = /*@__PURE__*/ requireCallBound$1();
9644
- var gOPD = /*@__PURE__*/ requireGopd$1();
10122
+ var gOPD = /*@__PURE__*/ requireGopd();
9645
10123
  var getProto = requireGetProto();
9646
10124
 
9647
10125
  var $toString = callBound('Object.prototype.toString');
9648
- var hasToStringTag = requireShams$1()();
10126
+ var hasToStringTag = requireShams()();
9649
10127
 
9650
10128
  var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
9651
10129
  var typedArrays = availableTypedArrays();
@@ -9787,7 +10265,7 @@ function requireDeepEqual () {
9787
10265
  var assign = requireObject_assign();
9788
10266
  var callBound = requireCallBound();
9789
10267
  var flags = requireRegexp_prototype_flags();
9790
- var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$1();
10268
+ var GetIntrinsic = /*@__PURE__*/ requireGetIntrinsic$2();
9791
10269
  var getIterator = requireNode();
9792
10270
  var getSideChannel = requireSideChannel();
9793
10271
  var is = requireObjectIs();