@designliquido/delegua 0.43.4 → 0.43.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.
- package/avaliador-sintatico/avaliador-sintatico.d.ts.map +1 -1
- package/avaliador-sintatico/avaliador-sintatico.js +6 -1
- package/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js +6 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js.map +1 -1
- package/bin/package.json +1 -1
- package/package.json +1 -1
- package/umd/delegua.js +485 -632
package/umd/delegua.js
CHANGED
|
@@ -439,7 +439,12 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
439
439
|
tipoOperando = simboloIdentificador.lexema;
|
|
440
440
|
}
|
|
441
441
|
else {
|
|
442
|
-
|
|
442
|
+
try {
|
|
443
|
+
tipoOperando = this.pilhaEscopos.obterTipoVariavelPorNome(simboloIdentificador.lexema);
|
|
444
|
+
}
|
|
445
|
+
catch (erro) {
|
|
446
|
+
throw this.erro(simboloIdentificador, erro.message);
|
|
447
|
+
}
|
|
443
448
|
}
|
|
444
449
|
// Se o próximo símbolo é um incremento ou um decremento,
|
|
445
450
|
// aqui deve retornar um unário correspondente.
|
|
@@ -2863,7 +2868,12 @@ class AvaliadorSintaticoPitugues {
|
|
|
2863
2868
|
tipoOperando = simboloIdentificador.lexema;
|
|
2864
2869
|
}
|
|
2865
2870
|
else {
|
|
2866
|
-
|
|
2871
|
+
try {
|
|
2872
|
+
tipoOperando = this.pilhaEscopos.obterTipoVariavelPorNome(simboloIdentificador.lexema);
|
|
2873
|
+
}
|
|
2874
|
+
catch (erro) {
|
|
2875
|
+
throw this.erro(simboloIdentificador, erro.message);
|
|
2876
|
+
}
|
|
2867
2877
|
}
|
|
2868
2878
|
return new construtos_1.Variavel(this.hashArquivo, simboloIdentificador, tipoOperando);
|
|
2869
2879
|
case pitugues_1.default.PARENTESE_ESQUERDO:
|
|
@@ -11139,7 +11149,7 @@ class InterpretadorBase {
|
|
|
11139
11149
|
exports.InterpretadorBase = InterpretadorBase;
|
|
11140
11150
|
|
|
11141
11151
|
}).call(this)}).call(this,require('_process'))
|
|
11142
|
-
},{"../avaliador-sintatico":9,"../bibliotecas/primitivas-dicionario":17,"../construtos":43,"../espaco-variaveis":98,"../excecoes":100,"../inferenciador":106,"../lexador":157,"../quebras":164,"../tipos-de-dados/delegua":165,"../tipos-de-dados/primitivos":166,"../tipos-de-simbolos/delegua":168,"./comum":130,"./estruturas":136,"./estruturas/metodo-primitiva":137,"./pilha-escopos-execucao":145,"_process":
|
|
11152
|
+
},{"../avaliador-sintatico":9,"../bibliotecas/primitivas-dicionario":17,"../construtos":43,"../espaco-variaveis":98,"../excecoes":100,"../inferenciador":106,"../lexador":157,"../quebras":164,"../tipos-de-dados/delegua":165,"../tipos-de-dados/primitivos":166,"../tipos-de-simbolos/delegua":168,"./comum":130,"./estruturas":136,"./estruturas/metodo-primitiva":137,"./pilha-escopos-execucao":145,"_process":402,"browser-process-hrtime":347}],143:[function(require,module,exports){
|
|
11143
11153
|
"use strict";
|
|
11144
11154
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11145
11155
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -11719,7 +11729,7 @@ class InterpretadorComDepuracao extends interpretador_1.Interpretador {
|
|
|
11719
11729
|
}
|
|
11720
11730
|
exports.InterpretadorComDepuracao = InterpretadorComDepuracao;
|
|
11721
11731
|
|
|
11722
|
-
},{"../construtos":43,"../espaco-variaveis":98,"../inferenciador":106,"../quebras":164,"./interpretador":144,"lodash":
|
|
11732
|
+
},{"../construtos":43,"../espaco-variaveis":98,"../inferenciador":106,"../quebras":164,"./interpretador":144,"lodash":387}],144:[function(require,module,exports){
|
|
11723
11733
|
"use strict";
|
|
11724
11734
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11725
11735
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -36129,7 +36139,7 @@ __decorate([
|
|
|
36129
36139
|
exports.Parser = Parser;
|
|
36130
36140
|
|
|
36131
36141
|
}).call(this)}).call(this,require('_process'))
|
|
36132
|
-
},{"./Decorators":199,"./DefaultErrorStrategy":200,"./Lexer":207,"./ProxyParserErrorListener":217,"./Recognizer":219,"./Token":224,"./atn/ATNDeserializationOptions":235,"./atn/ATNDeserializer":236,"./atn/ParseInfo":272,"./atn/ParserATNSimulator":273,"./atn/ProfilingATNSimulator":282,"./misc/IntegerStack":310,"./misc/Utils":318,"./tree/ErrorNode":319,"./tree/TerminalNode":322,"./tree/pattern/ParseTreePatternMatcher":327,"_process":
|
|
36142
|
+
},{"./Decorators":199,"./DefaultErrorStrategy":200,"./Lexer":207,"./ProxyParserErrorListener":217,"./Recognizer":219,"./Token":224,"./atn/ATNDeserializationOptions":235,"./atn/ATNDeserializer":236,"./atn/ParseInfo":272,"./atn/ParserATNSimulator":273,"./atn/ProfilingATNSimulator":282,"./misc/IntegerStack":310,"./misc/Utils":318,"./tree/ErrorNode":319,"./tree/TerminalNode":322,"./tree/pattern/ParseTreePatternMatcher":327,"_process":402}],213:[function(require,module,exports){
|
|
36133
36143
|
"use strict";
|
|
36134
36144
|
/*!
|
|
36135
36145
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48076,7 +48086,7 @@ __decorate([
|
|
|
48076
48086
|
exports.ProfilingATNSimulator = ProfilingATNSimulator;
|
|
48077
48087
|
|
|
48078
48088
|
}).call(this)}).call(this,require('_process'))
|
|
48079
|
-
},{"../Decorators":199,"./ATN":232,"./ATNSimulator":237,"./AmbiguityInfo":242,"./ContextSensitivityInfo":249,"./DecisionInfo":251,"./ErrorInfo":254,"./LookaheadEventInfo":268,"./ParserATNSimulator":273,"./PredicateEvalInfo":277,"./SemanticContext":287,"./SimulatorState":289,"_process":
|
|
48089
|
+
},{"../Decorators":199,"./ATN":232,"./ATNSimulator":237,"./AmbiguityInfo":242,"./ContextSensitivityInfo":249,"./DecisionInfo":251,"./ErrorInfo":254,"./LookaheadEventInfo":268,"./ParserATNSimulator":273,"./PredicateEvalInfo":277,"./SemanticContext":287,"./SimulatorState":289,"_process":402}],283:[function(require,module,exports){
|
|
48080
48090
|
"use strict";
|
|
48081
48091
|
/*!
|
|
48082
48092
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51068,7 +51078,7 @@ class BitSetIterator {
|
|
|
51068
51078
|
[Symbol.iterator]() { return this; }
|
|
51069
51079
|
}
|
|
51070
51080
|
|
|
51071
|
-
},{"./MurmurHash":314,"util":
|
|
51081
|
+
},{"./MurmurHash":314,"util":407}],307:[function(require,module,exports){
|
|
51072
51082
|
"use strict";
|
|
51073
51083
|
/*!
|
|
51074
51084
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55987,7 +55997,7 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
55987
55997
|
};
|
|
55988
55998
|
|
|
55989
55999
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
55990
|
-
},{"object.assign/polyfill":
|
|
56000
|
+
},{"object.assign/polyfill":400,"util/":345}],343:[function(require,module,exports){
|
|
55991
56001
|
if (typeof Object.create === 'function') {
|
|
55992
56002
|
// implementation from standard node.js 'util' module
|
|
55993
56003
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -56609,7 +56619,7 @@ function hasOwnProperty(obj, prop) {
|
|
|
56609
56619
|
}
|
|
56610
56620
|
|
|
56611
56621
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
56612
|
-
},{"./support/isBuffer":344,"_process":
|
|
56622
|
+
},{"./support/isBuffer":344,"_process":402,"inherits":343}],346:[function(require,module,exports){
|
|
56613
56623
|
(function (global){(function (){
|
|
56614
56624
|
'use strict';
|
|
56615
56625
|
|
|
@@ -56630,7 +56640,7 @@ module.exports = function availableTypedArrays() {
|
|
|
56630
56640
|
};
|
|
56631
56641
|
|
|
56632
56642
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
56633
|
-
},{"possible-typed-array-names":
|
|
56643
|
+
},{"possible-typed-array-names":401}],347:[function(require,module,exports){
|
|
56634
56644
|
(function (process,global){(function (){
|
|
56635
56645
|
module.exports = process.hrtime || hrtime
|
|
56636
56646
|
|
|
@@ -56661,480 +56671,113 @@ function hrtime(previousTimestamp){
|
|
|
56661
56671
|
return [seconds,nanoseconds]
|
|
56662
56672
|
}
|
|
56663
56673
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
56664
|
-
},{"_process":
|
|
56674
|
+
},{"_process":402}],348:[function(require,module,exports){
|
|
56665
56675
|
'use strict';
|
|
56666
56676
|
|
|
56667
|
-
var
|
|
56668
|
-
|
|
56669
|
-
var callBind = require('./');
|
|
56677
|
+
var bind = require('function-bind');
|
|
56670
56678
|
|
|
56671
|
-
var $
|
|
56679
|
+
var $apply = require('./functionApply');
|
|
56680
|
+
var $call = require('./functionCall');
|
|
56681
|
+
var $reflectApply = require('./reflectApply');
|
|
56672
56682
|
|
|
56673
|
-
|
|
56674
|
-
|
|
56675
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
56676
|
-
return callBind(intrinsic);
|
|
56677
|
-
}
|
|
56678
|
-
return intrinsic;
|
|
56679
|
-
};
|
|
56683
|
+
/** @type {import('./actualApply')} */
|
|
56684
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
56680
56685
|
|
|
56681
|
-
},{"./":
|
|
56686
|
+
},{"./functionApply":350,"./functionCall":351,"./reflectApply":353,"function-bind":369}],349:[function(require,module,exports){
|
|
56682
56687
|
'use strict';
|
|
56683
56688
|
|
|
56684
56689
|
var bind = require('function-bind');
|
|
56685
|
-
var
|
|
56686
|
-
|
|
56687
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
56688
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
56689
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
56690
|
+
var $apply = require('./functionApply');
|
|
56691
|
+
var actualApply = require('./actualApply');
|
|
56690
56692
|
|
|
56691
|
-
|
|
56692
|
-
|
|
56693
|
-
|
|
56694
|
-
|
|
56695
|
-
if ($defineProperty) {
|
|
56696
|
-
try {
|
|
56697
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
56698
|
-
} catch (e) {
|
|
56699
|
-
// IE 8 has a broken defineProperty
|
|
56700
|
-
$defineProperty = null;
|
|
56701
|
-
}
|
|
56702
|
-
}
|
|
56703
|
-
|
|
56704
|
-
module.exports = function callBind(originalFunction) {
|
|
56705
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
56706
|
-
if ($gOPD && $defineProperty) {
|
|
56707
|
-
var desc = $gOPD(func, 'length');
|
|
56708
|
-
if (desc.configurable) {
|
|
56709
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
56710
|
-
$defineProperty(
|
|
56711
|
-
func,
|
|
56712
|
-
'length',
|
|
56713
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
56714
|
-
);
|
|
56715
|
-
}
|
|
56716
|
-
}
|
|
56717
|
-
return func;
|
|
56718
|
-
};
|
|
56719
|
-
|
|
56720
|
-
var applyBind = function applyBind() {
|
|
56721
|
-
return $reflectApply(bind, $apply, arguments);
|
|
56693
|
+
/** @type {import('./applyBind')} */
|
|
56694
|
+
module.exports = function applyBind() {
|
|
56695
|
+
return actualApply(bind, $apply, arguments);
|
|
56722
56696
|
};
|
|
56723
56697
|
|
|
56724
|
-
|
|
56725
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
56726
|
-
} else {
|
|
56727
|
-
module.exports.apply = applyBind;
|
|
56728
|
-
}
|
|
56729
|
-
|
|
56730
|
-
},{"function-bind":351,"get-intrinsic":352}],350:[function(require,module,exports){
|
|
56698
|
+
},{"./actualApply":348,"./functionApply":350,"function-bind":369}],350:[function(require,module,exports){
|
|
56731
56699
|
'use strict';
|
|
56732
56700
|
|
|
56733
|
-
|
|
56734
|
-
|
|
56735
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
56736
|
-
var slice = Array.prototype.slice;
|
|
56737
|
-
var toStr = Object.prototype.toString;
|
|
56738
|
-
var funcType = '[object Function]';
|
|
56739
|
-
|
|
56740
|
-
module.exports = function bind(that) {
|
|
56741
|
-
var target = this;
|
|
56742
|
-
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
56743
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
56744
|
-
}
|
|
56745
|
-
var args = slice.call(arguments, 1);
|
|
56746
|
-
|
|
56747
|
-
var bound;
|
|
56748
|
-
var binder = function () {
|
|
56749
|
-
if (this instanceof bound) {
|
|
56750
|
-
var result = target.apply(
|
|
56751
|
-
this,
|
|
56752
|
-
args.concat(slice.call(arguments))
|
|
56753
|
-
);
|
|
56754
|
-
if (Object(result) === result) {
|
|
56755
|
-
return result;
|
|
56756
|
-
}
|
|
56757
|
-
return this;
|
|
56758
|
-
} else {
|
|
56759
|
-
return target.apply(
|
|
56760
|
-
that,
|
|
56761
|
-
args.concat(slice.call(arguments))
|
|
56762
|
-
);
|
|
56763
|
-
}
|
|
56764
|
-
};
|
|
56765
|
-
|
|
56766
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
56767
|
-
var boundArgs = [];
|
|
56768
|
-
for (var i = 0; i < boundLength; i++) {
|
|
56769
|
-
boundArgs.push('$' + i);
|
|
56770
|
-
}
|
|
56771
|
-
|
|
56772
|
-
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
56773
|
-
|
|
56774
|
-
if (target.prototype) {
|
|
56775
|
-
var Empty = function Empty() {};
|
|
56776
|
-
Empty.prototype = target.prototype;
|
|
56777
|
-
bound.prototype = new Empty();
|
|
56778
|
-
Empty.prototype = null;
|
|
56779
|
-
}
|
|
56780
|
-
|
|
56781
|
-
return bound;
|
|
56782
|
-
};
|
|
56701
|
+
/** @type {import('./functionApply')} */
|
|
56702
|
+
module.exports = Function.prototype.apply;
|
|
56783
56703
|
|
|
56784
56704
|
},{}],351:[function(require,module,exports){
|
|
56785
56705
|
'use strict';
|
|
56786
56706
|
|
|
56787
|
-
|
|
56788
|
-
|
|
56789
|
-
module.exports = Function.prototype.bind || implementation;
|
|
56707
|
+
/** @type {import('./functionCall')} */
|
|
56708
|
+
module.exports = Function.prototype.call;
|
|
56790
56709
|
|
|
56791
|
-
},{
|
|
56710
|
+
},{}],352:[function(require,module,exports){
|
|
56792
56711
|
'use strict';
|
|
56793
56712
|
|
|
56794
|
-
var
|
|
56795
|
-
|
|
56796
|
-
var $SyntaxError = SyntaxError;
|
|
56797
|
-
var $Function = Function;
|
|
56798
|
-
var $TypeError = TypeError;
|
|
56713
|
+
var bind = require('function-bind');
|
|
56714
|
+
var $TypeError = require('es-errors/type');
|
|
56799
56715
|
|
|
56800
|
-
|
|
56801
|
-
var
|
|
56802
|
-
try {
|
|
56803
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
56804
|
-
} catch (e) {}
|
|
56805
|
-
};
|
|
56716
|
+
var $call = require('./functionCall');
|
|
56717
|
+
var $actualApply = require('./actualApply');
|
|
56806
56718
|
|
|
56807
|
-
|
|
56808
|
-
|
|
56809
|
-
|
|
56810
|
-
$
|
|
56811
|
-
} catch (e) {
|
|
56812
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
56719
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
56720
|
+
module.exports = function callBindBasic(args) {
|
|
56721
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
56722
|
+
throw new $TypeError('a function is required');
|
|
56813
56723
|
}
|
|
56814
|
-
|
|
56815
|
-
|
|
56816
|
-
var throwTypeError = function () {
|
|
56817
|
-
throw new $TypeError();
|
|
56724
|
+
return $actualApply(bind, $call, args);
|
|
56818
56725
|
};
|
|
56819
|
-
var ThrowTypeError = $gOPD
|
|
56820
|
-
? (function () {
|
|
56821
|
-
try {
|
|
56822
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
56823
|
-
arguments.callee; // IE 8 does not throw here
|
|
56824
|
-
return throwTypeError;
|
|
56825
|
-
} catch (calleeThrows) {
|
|
56826
|
-
try {
|
|
56827
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
56828
|
-
return $gOPD(arguments, 'callee').get;
|
|
56829
|
-
} catch (gOPDthrows) {
|
|
56830
|
-
return throwTypeError;
|
|
56831
|
-
}
|
|
56832
|
-
}
|
|
56833
|
-
}())
|
|
56834
|
-
: throwTypeError;
|
|
56835
|
-
|
|
56836
|
-
var hasSymbols = require('has-symbols')();
|
|
56837
|
-
|
|
56838
|
-
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
56839
|
-
|
|
56840
|
-
var needsEval = {};
|
|
56841
56726
|
|
|
56842
|
-
|
|
56843
|
-
|
|
56844
|
-
var INTRINSICS = {
|
|
56845
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
56846
|
-
'%Array%': Array,
|
|
56847
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
56848
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
56849
|
-
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
56850
|
-
'%AsyncFunction%': needsEval,
|
|
56851
|
-
'%AsyncGenerator%': needsEval,
|
|
56852
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
56853
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
56854
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
56855
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
56856
|
-
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
56857
|
-
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
56858
|
-
'%Boolean%': Boolean,
|
|
56859
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
56860
|
-
'%Date%': Date,
|
|
56861
|
-
'%decodeURI%': decodeURI,
|
|
56862
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
56863
|
-
'%encodeURI%': encodeURI,
|
|
56864
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
56865
|
-
'%Error%': Error,
|
|
56866
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
56867
|
-
'%EvalError%': EvalError,
|
|
56868
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
56869
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
56870
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
56871
|
-
'%Function%': $Function,
|
|
56872
|
-
'%GeneratorFunction%': needsEval,
|
|
56873
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
56874
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
56875
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
56876
|
-
'%isFinite%': isFinite,
|
|
56877
|
-
'%isNaN%': isNaN,
|
|
56878
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
56879
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
56880
|
-
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
56881
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
56882
|
-
'%Math%': Math,
|
|
56883
|
-
'%Number%': Number,
|
|
56884
|
-
'%Object%': Object,
|
|
56885
|
-
'%parseFloat%': parseFloat,
|
|
56886
|
-
'%parseInt%': parseInt,
|
|
56887
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
56888
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
56889
|
-
'%RangeError%': RangeError,
|
|
56890
|
-
'%ReferenceError%': ReferenceError,
|
|
56891
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
56892
|
-
'%RegExp%': RegExp,
|
|
56893
|
-
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
56894
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
56895
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
56896
|
-
'%String%': String,
|
|
56897
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
56898
|
-
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
56899
|
-
'%SyntaxError%': $SyntaxError,
|
|
56900
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
56901
|
-
'%TypedArray%': TypedArray,
|
|
56902
|
-
'%TypeError%': $TypeError,
|
|
56903
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
56904
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
56905
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
56906
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
56907
|
-
'%URIError%': URIError,
|
|
56908
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
56909
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
56910
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
56911
|
-
};
|
|
56912
|
-
|
|
56913
|
-
try {
|
|
56914
|
-
null.error; // eslint-disable-line no-unused-expressions
|
|
56915
|
-
} catch (e) {
|
|
56916
|
-
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
56917
|
-
var errorProto = getProto(getProto(e));
|
|
56918
|
-
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
56919
|
-
}
|
|
56920
|
-
|
|
56921
|
-
var doEval = function doEval(name) {
|
|
56922
|
-
var value;
|
|
56923
|
-
if (name === '%AsyncFunction%') {
|
|
56924
|
-
value = getEvalledConstructor('async function () {}');
|
|
56925
|
-
} else if (name === '%GeneratorFunction%') {
|
|
56926
|
-
value = getEvalledConstructor('function* () {}');
|
|
56927
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
56928
|
-
value = getEvalledConstructor('async function* () {}');
|
|
56929
|
-
} else if (name === '%AsyncGenerator%') {
|
|
56930
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
56931
|
-
if (fn) {
|
|
56932
|
-
value = fn.prototype;
|
|
56933
|
-
}
|
|
56934
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
56935
|
-
var gen = doEval('%AsyncGenerator%');
|
|
56936
|
-
if (gen) {
|
|
56937
|
-
value = getProto(gen.prototype);
|
|
56938
|
-
}
|
|
56939
|
-
}
|
|
56940
|
-
|
|
56941
|
-
INTRINSICS[name] = value;
|
|
56942
|
-
|
|
56943
|
-
return value;
|
|
56944
|
-
};
|
|
56727
|
+
},{"./actualApply":348,"./functionCall":351,"es-errors/type":364,"function-bind":369}],353:[function(require,module,exports){
|
|
56728
|
+
'use strict';
|
|
56945
56729
|
|
|
56946
|
-
|
|
56947
|
-
|
|
56948
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
56949
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
56950
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
56951
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
56952
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
56953
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
56954
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
56955
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
56956
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
56957
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
56958
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
56959
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
56960
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
56961
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
56962
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
56963
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
56964
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
56965
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
56966
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
56967
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
56968
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
56969
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
56970
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
56971
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
56972
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
56973
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
56974
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
56975
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
56976
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
56977
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
56978
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
56979
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
56980
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
56981
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
56982
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
56983
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
56984
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
56985
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
56986
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
56987
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
56988
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
56989
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
56990
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
56991
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
56992
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
56993
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
56994
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
56995
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
56996
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
56997
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
56998
|
-
};
|
|
56730
|
+
/** @type {import('./reflectApply')} */
|
|
56731
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
56999
56732
|
|
|
57000
|
-
|
|
57001
|
-
|
|
57002
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
57003
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
57004
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
57005
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
57006
|
-
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
56733
|
+
},{}],354:[function(require,module,exports){
|
|
56734
|
+
'use strict';
|
|
57007
56735
|
|
|
57008
|
-
|
|
57009
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
57010
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
57011
|
-
var stringToPath = function stringToPath(string) {
|
|
57012
|
-
var first = $strSlice(string, 0, 1);
|
|
57013
|
-
var last = $strSlice(string, -1);
|
|
57014
|
-
if (first === '%' && last !== '%') {
|
|
57015
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
57016
|
-
} else if (last === '%' && first !== '%') {
|
|
57017
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
57018
|
-
}
|
|
57019
|
-
var result = [];
|
|
57020
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
57021
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
57022
|
-
});
|
|
57023
|
-
return result;
|
|
57024
|
-
};
|
|
57025
|
-
/* end adaptation */
|
|
56736
|
+
var setFunctionLength = require('set-function-length');
|
|
57026
56737
|
|
|
57027
|
-
var
|
|
57028
|
-
var intrinsicName = name;
|
|
57029
|
-
var alias;
|
|
57030
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
57031
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
57032
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
57033
|
-
}
|
|
56738
|
+
var $defineProperty = require('es-define-property');
|
|
57034
56739
|
|
|
57035
|
-
|
|
57036
|
-
|
|
57037
|
-
if (value === needsEval) {
|
|
57038
|
-
value = doEval(intrinsicName);
|
|
57039
|
-
}
|
|
57040
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
57041
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
57042
|
-
}
|
|
56740
|
+
var callBindBasic = require('call-bind-apply-helpers');
|
|
56741
|
+
var applyBind = require('call-bind-apply-helpers/applyBind');
|
|
57043
56742
|
|
|
57044
|
-
|
|
57045
|
-
|
|
57046
|
-
|
|
57047
|
-
|
|
57048
|
-
|
|
57049
|
-
|
|
57050
|
-
|
|
57051
|
-
|
|
56743
|
+
module.exports = function callBind(originalFunction) {
|
|
56744
|
+
var func = callBindBasic(arguments);
|
|
56745
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
56746
|
+
return setFunctionLength(
|
|
56747
|
+
func,
|
|
56748
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
56749
|
+
true
|
|
56750
|
+
);
|
|
57052
56751
|
};
|
|
57053
56752
|
|
|
57054
|
-
|
|
57055
|
-
|
|
57056
|
-
|
|
57057
|
-
|
|
57058
|
-
|
|
57059
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
57060
|
-
}
|
|
57061
|
-
|
|
57062
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
57063
|
-
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
57064
|
-
}
|
|
57065
|
-
var parts = stringToPath(name);
|
|
57066
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
57067
|
-
|
|
57068
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
57069
|
-
var intrinsicRealName = intrinsic.name;
|
|
57070
|
-
var value = intrinsic.value;
|
|
57071
|
-
var skipFurtherCaching = false;
|
|
56753
|
+
if ($defineProperty) {
|
|
56754
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
56755
|
+
} else {
|
|
56756
|
+
module.exports.apply = applyBind;
|
|
56757
|
+
}
|
|
57072
56758
|
|
|
57073
|
-
|
|
57074
|
-
|
|
57075
|
-
intrinsicBaseName = alias[0];
|
|
57076
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
57077
|
-
}
|
|
56759
|
+
},{"call-bind-apply-helpers":352,"call-bind-apply-helpers/applyBind":349,"es-define-property":358,"set-function-length":404}],355:[function(require,module,exports){
|
|
56760
|
+
'use strict';
|
|
57078
56761
|
|
|
57079
|
-
|
|
57080
|
-
var part = parts[i];
|
|
57081
|
-
var first = $strSlice(part, 0, 1);
|
|
57082
|
-
var last = $strSlice(part, -1);
|
|
57083
|
-
if (
|
|
57084
|
-
(
|
|
57085
|
-
(first === '"' || first === "'" || first === '`')
|
|
57086
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
57087
|
-
)
|
|
57088
|
-
&& first !== last
|
|
57089
|
-
) {
|
|
57090
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
57091
|
-
}
|
|
57092
|
-
if (part === 'constructor' || !isOwn) {
|
|
57093
|
-
skipFurtherCaching = true;
|
|
57094
|
-
}
|
|
56762
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
57095
56763
|
|
|
57096
|
-
|
|
57097
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
56764
|
+
var callBindBasic = require('call-bind-apply-helpers');
|
|
57098
56765
|
|
|
57099
|
-
|
|
57100
|
-
|
|
57101
|
-
} else if (value != null) {
|
|
57102
|
-
if (!(part in value)) {
|
|
57103
|
-
if (!allowMissing) {
|
|
57104
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
57105
|
-
}
|
|
57106
|
-
return void undefined;
|
|
57107
|
-
}
|
|
57108
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
57109
|
-
var desc = $gOPD(value, part);
|
|
57110
|
-
isOwn = !!desc;
|
|
56766
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
56767
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
57111
56768
|
|
|
57112
|
-
|
|
57113
|
-
|
|
57114
|
-
|
|
57115
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
57116
|
-
// uphold the illusion by pretending to see that original data
|
|
57117
|
-
// property, i.e., returning the value rather than the getter
|
|
57118
|
-
// itself.
|
|
57119
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
57120
|
-
value = desc.get;
|
|
57121
|
-
} else {
|
|
57122
|
-
value = value[part];
|
|
57123
|
-
}
|
|
57124
|
-
} else {
|
|
57125
|
-
isOwn = hasOwn(value, part);
|
|
57126
|
-
value = value[part];
|
|
57127
|
-
}
|
|
56769
|
+
/** @type {import('.')} */
|
|
56770
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
56771
|
+
/* eslint no-extra-parens: 0 */
|
|
57128
56772
|
|
|
57129
|
-
|
|
57130
|
-
|
|
57131
|
-
|
|
57132
|
-
}
|
|
56773
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
56774
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
56775
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
57133
56776
|
}
|
|
57134
|
-
return
|
|
56777
|
+
return intrinsic;
|
|
57135
56778
|
};
|
|
57136
56779
|
|
|
57137
|
-
},{"
|
|
56780
|
+
},{"call-bind-apply-helpers":352,"get-intrinsic":370}],356:[function(require,module,exports){
|
|
57138
56781
|
'use strict';
|
|
57139
56782
|
|
|
57140
56783
|
var $defineProperty = require('es-define-property');
|
|
@@ -57192,13 +56835,43 @@ module.exports = function defineDataProperty(
|
|
|
57192
56835
|
}
|
|
57193
56836
|
};
|
|
57194
56837
|
|
|
57195
|
-
},{"es-define-property":
|
|
56838
|
+
},{"es-define-property":358,"es-errors/syntax":363,"es-errors/type":364,"gopd":375}],357:[function(require,module,exports){
|
|
57196
56839
|
'use strict';
|
|
57197
56840
|
|
|
57198
|
-
var
|
|
56841
|
+
var callBind = require('call-bind-apply-helpers');
|
|
56842
|
+
var gOPD = require('gopd');
|
|
56843
|
+
|
|
56844
|
+
var hasProtoAccessor;
|
|
56845
|
+
try {
|
|
56846
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
56847
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
56848
|
+
} catch (e) {
|
|
56849
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
56850
|
+
throw e;
|
|
56851
|
+
}
|
|
56852
|
+
}
|
|
56853
|
+
|
|
56854
|
+
// eslint-disable-next-line no-extra-parens
|
|
56855
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
56856
|
+
|
|
56857
|
+
var $Object = Object;
|
|
56858
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
56859
|
+
|
|
56860
|
+
/** @type {import('./get')} */
|
|
56861
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
56862
|
+
? callBind([desc.get])
|
|
56863
|
+
: typeof $getPrototypeOf === 'function'
|
|
56864
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
56865
|
+
// eslint-disable-next-line eqeqeq
|
|
56866
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
56867
|
+
}
|
|
56868
|
+
: false;
|
|
56869
|
+
|
|
56870
|
+
},{"call-bind-apply-helpers":352,"gopd":375}],358:[function(require,module,exports){
|
|
56871
|
+
'use strict';
|
|
57199
56872
|
|
|
57200
56873
|
/** @type {import('.')} */
|
|
57201
|
-
var $defineProperty =
|
|
56874
|
+
var $defineProperty = Object.defineProperty || false;
|
|
57202
56875
|
if ($defineProperty) {
|
|
57203
56876
|
try {
|
|
57204
56877
|
$defineProperty({}, 'a', { value: 1 });
|
|
@@ -57210,49 +56883,55 @@ if ($defineProperty) {
|
|
|
57210
56883
|
|
|
57211
56884
|
module.exports = $defineProperty;
|
|
57212
56885
|
|
|
57213
|
-
},{
|
|
56886
|
+
},{}],359:[function(require,module,exports){
|
|
57214
56887
|
'use strict';
|
|
57215
56888
|
|
|
57216
56889
|
/** @type {import('./eval')} */
|
|
57217
56890
|
module.exports = EvalError;
|
|
57218
56891
|
|
|
57219
|
-
},{}],
|
|
56892
|
+
},{}],360:[function(require,module,exports){
|
|
57220
56893
|
'use strict';
|
|
57221
56894
|
|
|
57222
56895
|
/** @type {import('.')} */
|
|
57223
56896
|
module.exports = Error;
|
|
57224
56897
|
|
|
57225
|
-
},{}],
|
|
56898
|
+
},{}],361:[function(require,module,exports){
|
|
57226
56899
|
'use strict';
|
|
57227
56900
|
|
|
57228
56901
|
/** @type {import('./range')} */
|
|
57229
56902
|
module.exports = RangeError;
|
|
57230
56903
|
|
|
57231
|
-
},{}],
|
|
56904
|
+
},{}],362:[function(require,module,exports){
|
|
57232
56905
|
'use strict';
|
|
57233
56906
|
|
|
57234
56907
|
/** @type {import('./ref')} */
|
|
57235
56908
|
module.exports = ReferenceError;
|
|
57236
56909
|
|
|
57237
|
-
},{}],
|
|
56910
|
+
},{}],363:[function(require,module,exports){
|
|
57238
56911
|
'use strict';
|
|
57239
56912
|
|
|
57240
56913
|
/** @type {import('./syntax')} */
|
|
57241
56914
|
module.exports = SyntaxError;
|
|
57242
56915
|
|
|
57243
|
-
},{}],
|
|
56916
|
+
},{}],364:[function(require,module,exports){
|
|
57244
56917
|
'use strict';
|
|
57245
56918
|
|
|
57246
56919
|
/** @type {import('./type')} */
|
|
57247
56920
|
module.exports = TypeError;
|
|
57248
56921
|
|
|
57249
|
-
},{}],
|
|
56922
|
+
},{}],365:[function(require,module,exports){
|
|
57250
56923
|
'use strict';
|
|
57251
56924
|
|
|
57252
56925
|
/** @type {import('./uri')} */
|
|
57253
56926
|
module.exports = URIError;
|
|
57254
56927
|
|
|
57255
|
-
},{}],
|
|
56928
|
+
},{}],366:[function(require,module,exports){
|
|
56929
|
+
'use strict';
|
|
56930
|
+
|
|
56931
|
+
/** @type {import('.')} */
|
|
56932
|
+
module.exports = Object;
|
|
56933
|
+
|
|
56934
|
+
},{}],367:[function(require,module,exports){
|
|
57256
56935
|
'use strict';
|
|
57257
56936
|
|
|
57258
56937
|
var isCallable = require('is-callable');
|
|
@@ -57260,6 +56939,7 @@ var isCallable = require('is-callable');
|
|
|
57260
56939
|
var toStr = Object.prototype.toString;
|
|
57261
56940
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
57262
56941
|
|
|
56942
|
+
/** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
|
|
57263
56943
|
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
57264
56944
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
57265
56945
|
if (hasOwnProperty.call(array, i)) {
|
|
@@ -57272,6 +56952,7 @@ var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
|
57272
56952
|
}
|
|
57273
56953
|
};
|
|
57274
56954
|
|
|
56955
|
+
/** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
|
|
57275
56956
|
var forEachString = function forEachString(string, iterator, receiver) {
|
|
57276
56957
|
for (var i = 0, len = string.length; i < len; i++) {
|
|
57277
56958
|
// no such thing as a sparse string.
|
|
@@ -57283,6 +56964,7 @@ var forEachString = function forEachString(string, iterator, receiver) {
|
|
|
57283
56964
|
}
|
|
57284
56965
|
};
|
|
57285
56966
|
|
|
56967
|
+
/** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
|
|
57286
56968
|
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
57287
56969
|
for (var k in object) {
|
|
57288
56970
|
if (hasOwnProperty.call(object, k)) {
|
|
@@ -57295,7 +56977,13 @@ var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
|
57295
56977
|
}
|
|
57296
56978
|
};
|
|
57297
56979
|
|
|
57298
|
-
|
|
56980
|
+
/** @type {(x: unknown) => x is readonly unknown[]} */
|
|
56981
|
+
function isArray(x) {
|
|
56982
|
+
return toStr.call(x) === '[object Array]';
|
|
56983
|
+
}
|
|
56984
|
+
|
|
56985
|
+
/** @type {import('.')._internal} */
|
|
56986
|
+
module.exports = function forEach(list, iterator, thisArg) {
|
|
57299
56987
|
if (!isCallable(iterator)) {
|
|
57300
56988
|
throw new TypeError('iterator must be a function');
|
|
57301
56989
|
}
|
|
@@ -57305,7 +56993,7 @@ var forEach = function forEach(list, iterator, thisArg) {
|
|
|
57305
56993
|
receiver = thisArg;
|
|
57306
56994
|
}
|
|
57307
56995
|
|
|
57308
|
-
if (
|
|
56996
|
+
if (isArray(list)) {
|
|
57309
56997
|
forEachArray(list, iterator, receiver);
|
|
57310
56998
|
} else if (typeof list === 'string') {
|
|
57311
56999
|
forEachString(list, iterator, receiver);
|
|
@@ -57314,9 +57002,7 @@ var forEach = function forEach(list, iterator, thisArg) {
|
|
|
57314
57002
|
}
|
|
57315
57003
|
};
|
|
57316
57004
|
|
|
57317
|
-
module
|
|
57318
|
-
|
|
57319
|
-
},{"is-callable":381}],363:[function(require,module,exports){
|
|
57005
|
+
},{"is-callable":383}],368:[function(require,module,exports){
|
|
57320
57006
|
'use strict';
|
|
57321
57007
|
|
|
57322
57008
|
/* eslint no-invalid-this: 1 */
|
|
@@ -57402,13 +57088,20 @@ module.exports = function bind(that) {
|
|
|
57402
57088
|
return bound;
|
|
57403
57089
|
};
|
|
57404
57090
|
|
|
57405
|
-
},{}],
|
|
57406
|
-
|
|
57407
|
-
|
|
57091
|
+
},{}],369:[function(require,module,exports){
|
|
57092
|
+
'use strict';
|
|
57093
|
+
|
|
57094
|
+
var implementation = require('./implementation');
|
|
57095
|
+
|
|
57096
|
+
module.exports = Function.prototype.bind || implementation;
|
|
57097
|
+
|
|
57098
|
+
},{"./implementation":368}],370:[function(require,module,exports){
|
|
57408
57099
|
'use strict';
|
|
57409
57100
|
|
|
57410
57101
|
var undefined;
|
|
57411
57102
|
|
|
57103
|
+
var $Object = require('es-object-atoms');
|
|
57104
|
+
|
|
57412
57105
|
var $Error = require('es-errors');
|
|
57413
57106
|
var $EvalError = require('es-errors/eval');
|
|
57414
57107
|
var $RangeError = require('es-errors/range');
|
|
@@ -57417,6 +57110,14 @@ var $SyntaxError = require('es-errors/syntax');
|
|
|
57417
57110
|
var $TypeError = require('es-errors/type');
|
|
57418
57111
|
var $URIError = require('es-errors/uri');
|
|
57419
57112
|
|
|
57113
|
+
var abs = require('math-intrinsics/abs');
|
|
57114
|
+
var floor = require('math-intrinsics/floor');
|
|
57115
|
+
var max = require('math-intrinsics/max');
|
|
57116
|
+
var min = require('math-intrinsics/min');
|
|
57117
|
+
var pow = require('math-intrinsics/pow');
|
|
57118
|
+
var round = require('math-intrinsics/round');
|
|
57119
|
+
var sign = require('math-intrinsics/sign');
|
|
57120
|
+
|
|
57420
57121
|
var $Function = Function;
|
|
57421
57122
|
|
|
57422
57123
|
// eslint-disable-next-line consistent-return
|
|
@@ -57426,14 +57127,8 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
57426
57127
|
} catch (e) {}
|
|
57427
57128
|
};
|
|
57428
57129
|
|
|
57429
|
-
var $gOPD =
|
|
57430
|
-
|
|
57431
|
-
try {
|
|
57432
|
-
$gOPD({}, '');
|
|
57433
|
-
} catch (e) {
|
|
57434
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
57435
|
-
}
|
|
57436
|
-
}
|
|
57130
|
+
var $gOPD = require('gopd');
|
|
57131
|
+
var $defineProperty = require('es-define-property');
|
|
57437
57132
|
|
|
57438
57133
|
var throwTypeError = function () {
|
|
57439
57134
|
throw new $TypeError();
|
|
@@ -57456,13 +57151,13 @@ var ThrowTypeError = $gOPD
|
|
|
57456
57151
|
: throwTypeError;
|
|
57457
57152
|
|
|
57458
57153
|
var hasSymbols = require('has-symbols')();
|
|
57459
|
-
var hasProto = require('has-proto')();
|
|
57460
57154
|
|
|
57461
|
-
var getProto =
|
|
57462
|
-
|
|
57463
|
-
|
|
57464
|
-
|
|
57465
|
-
);
|
|
57155
|
+
var getProto = require('get-proto');
|
|
57156
|
+
var $ObjectGPO = require('get-proto/Object.getPrototypeOf');
|
|
57157
|
+
var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');
|
|
57158
|
+
|
|
57159
|
+
var $apply = require('call-bind-apply-helpers/functionApply');
|
|
57160
|
+
var $call = require('call-bind-apply-helpers/functionCall');
|
|
57466
57161
|
|
|
57467
57162
|
var needsEval = {};
|
|
57468
57163
|
|
|
@@ -57493,6 +57188,7 @@ var INTRINSICS = {
|
|
|
57493
57188
|
'%Error%': $Error,
|
|
57494
57189
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
57495
57190
|
'%EvalError%': $EvalError,
|
|
57191
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
|
57496
57192
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
57497
57193
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
57498
57194
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -57509,7 +57205,8 @@ var INTRINSICS = {
|
|
|
57509
57205
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
57510
57206
|
'%Math%': Math,
|
|
57511
57207
|
'%Number%': Number,
|
|
57512
|
-
'%Object%': Object,
|
|
57208
|
+
'%Object%': $Object,
|
|
57209
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
57513
57210
|
'%parseFloat%': parseFloat,
|
|
57514
57211
|
'%parseInt%': parseInt,
|
|
57515
57212
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
@@ -57535,7 +57232,20 @@ var INTRINSICS = {
|
|
|
57535
57232
|
'%URIError%': $URIError,
|
|
57536
57233
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
57537
57234
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
57538
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
57235
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
57236
|
+
|
|
57237
|
+
'%Function.prototype.call%': $call,
|
|
57238
|
+
'%Function.prototype.apply%': $apply,
|
|
57239
|
+
'%Object.defineProperty%': $defineProperty,
|
|
57240
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
57241
|
+
'%Math.abs%': abs,
|
|
57242
|
+
'%Math.floor%': floor,
|
|
57243
|
+
'%Math.max%': max,
|
|
57244
|
+
'%Math.min%': min,
|
|
57245
|
+
'%Math.pow%': pow,
|
|
57246
|
+
'%Math.round%': round,
|
|
57247
|
+
'%Math.sign%': sign,
|
|
57248
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
57539
57249
|
};
|
|
57540
57250
|
|
|
57541
57251
|
if (getProto) {
|
|
@@ -57630,11 +57340,11 @@ var LEGACY_ALIASES = {
|
|
|
57630
57340
|
|
|
57631
57341
|
var bind = require('function-bind');
|
|
57632
57342
|
var hasOwn = require('hasown');
|
|
57633
|
-
var $concat = bind.call(
|
|
57634
|
-
var $spliceApply = bind.call(
|
|
57635
|
-
var $replace = bind.call(
|
|
57636
|
-
var $strSlice = bind.call(
|
|
57637
|
-
var $exec = bind.call(
|
|
57343
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
57344
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
57345
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
57346
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
57347
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
57638
57348
|
|
|
57639
57349
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
57640
57350
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -57765,12 +57475,60 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
57765
57475
|
return value;
|
|
57766
57476
|
};
|
|
57767
57477
|
|
|
57768
|
-
},{"es-errors":
|
|
57478
|
+
},{"call-bind-apply-helpers/functionApply":350,"call-bind-apply-helpers/functionCall":351,"es-define-property":358,"es-errors":360,"es-errors/eval":359,"es-errors/range":361,"es-errors/ref":362,"es-errors/syntax":363,"es-errors/type":364,"es-errors/uri":365,"es-object-atoms":366,"function-bind":369,"get-proto":373,"get-proto/Object.getPrototypeOf":371,"get-proto/Reflect.getPrototypeOf":372,"gopd":375,"has-symbols":377,"hasown":380,"math-intrinsics/abs":388,"math-intrinsics/floor":389,"math-intrinsics/max":391,"math-intrinsics/min":392,"math-intrinsics/pow":393,"math-intrinsics/round":394,"math-intrinsics/sign":395}],371:[function(require,module,exports){
|
|
57769
57479
|
'use strict';
|
|
57770
57480
|
|
|
57771
|
-
var
|
|
57481
|
+
var $Object = require('es-object-atoms');
|
|
57482
|
+
|
|
57483
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
57484
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
57485
|
+
|
|
57486
|
+
},{"es-object-atoms":366}],372:[function(require,module,exports){
|
|
57487
|
+
'use strict';
|
|
57488
|
+
|
|
57489
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
57490
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
57491
|
+
|
|
57492
|
+
},{}],373:[function(require,module,exports){
|
|
57493
|
+
'use strict';
|
|
57494
|
+
|
|
57495
|
+
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
57496
|
+
var originalGetProto = require('./Object.getPrototypeOf');
|
|
57497
|
+
|
|
57498
|
+
var getDunderProto = require('dunder-proto/get');
|
|
57499
|
+
|
|
57500
|
+
/** @type {import('.')} */
|
|
57501
|
+
module.exports = reflectGetProto
|
|
57502
|
+
? function getProto(O) {
|
|
57503
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
57504
|
+
return reflectGetProto(O);
|
|
57505
|
+
}
|
|
57506
|
+
: originalGetProto
|
|
57507
|
+
? function getProto(O) {
|
|
57508
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
57509
|
+
throw new TypeError('getProto: not an object');
|
|
57510
|
+
}
|
|
57511
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
57512
|
+
return originalGetProto(O);
|
|
57513
|
+
}
|
|
57514
|
+
: getDunderProto
|
|
57515
|
+
? function getProto(O) {
|
|
57516
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
57517
|
+
return getDunderProto(O);
|
|
57518
|
+
}
|
|
57519
|
+
: null;
|
|
57520
|
+
|
|
57521
|
+
},{"./Object.getPrototypeOf":371,"./Reflect.getPrototypeOf":372,"dunder-proto/get":357}],374:[function(require,module,exports){
|
|
57522
|
+
'use strict';
|
|
57772
57523
|
|
|
57773
|
-
|
|
57524
|
+
/** @type {import('./gOPD')} */
|
|
57525
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
57526
|
+
|
|
57527
|
+
},{}],375:[function(require,module,exports){
|
|
57528
|
+
'use strict';
|
|
57529
|
+
|
|
57530
|
+
/** @type {import('.')} */
|
|
57531
|
+
var $gOPD = require('./gOPD');
|
|
57774
57532
|
|
|
57775
57533
|
if ($gOPD) {
|
|
57776
57534
|
try {
|
|
@@ -57783,13 +57541,7 @@ if ($gOPD) {
|
|
|
57783
57541
|
|
|
57784
57542
|
module.exports = $gOPD;
|
|
57785
57543
|
|
|
57786
|
-
},{"
|
|
57787
|
-
arguments[4][350][0].apply(exports,arguments)
|
|
57788
|
-
},{"dup":350}],368:[function(require,module,exports){
|
|
57789
|
-
arguments[4][351][0].apply(exports,arguments)
|
|
57790
|
-
},{"./implementation":367,"dup":351}],369:[function(require,module,exports){
|
|
57791
|
-
arguments[4][352][0].apply(exports,arguments)
|
|
57792
|
-
},{"dup":352,"function-bind":368,"has":377,"has-symbols":372}],370:[function(require,module,exports){
|
|
57544
|
+
},{"./gOPD":374}],376:[function(require,module,exports){
|
|
57793
57545
|
'use strict';
|
|
57794
57546
|
|
|
57795
57547
|
var $defineProperty = require('es-define-property');
|
|
@@ -57813,25 +57565,13 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
57813
57565
|
|
|
57814
57566
|
module.exports = hasPropertyDescriptors;
|
|
57815
57567
|
|
|
57816
|
-
},{"es-define-property":
|
|
57817
|
-
'use strict';
|
|
57818
|
-
|
|
57819
|
-
var test = {
|
|
57820
|
-
foo: {}
|
|
57821
|
-
};
|
|
57822
|
-
|
|
57823
|
-
var $Object = Object;
|
|
57824
|
-
|
|
57825
|
-
module.exports = function hasProto() {
|
|
57826
|
-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
57827
|
-
};
|
|
57828
|
-
|
|
57829
|
-
},{}],372:[function(require,module,exports){
|
|
57568
|
+
},{"es-define-property":358}],377:[function(require,module,exports){
|
|
57830
57569
|
'use strict';
|
|
57831
57570
|
|
|
57832
57571
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
57833
57572
|
var hasSymbolSham = require('./shams');
|
|
57834
57573
|
|
|
57574
|
+
/** @type {import('.')} */
|
|
57835
57575
|
module.exports = function hasNativeSymbols() {
|
|
57836
57576
|
if (typeof origSymbol !== 'function') { return false; }
|
|
57837
57577
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -57841,14 +57581,16 @@ module.exports = function hasNativeSymbols() {
|
|
|
57841
57581
|
return hasSymbolSham();
|
|
57842
57582
|
};
|
|
57843
57583
|
|
|
57844
|
-
},{"./shams":
|
|
57584
|
+
},{"./shams":378}],378:[function(require,module,exports){
|
|
57845
57585
|
'use strict';
|
|
57846
57586
|
|
|
57587
|
+
/** @type {import('./shams')} */
|
|
57847
57588
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
57848
57589
|
module.exports = function hasSymbols() {
|
|
57849
57590
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
57850
57591
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
57851
57592
|
|
|
57593
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
57852
57594
|
var obj = {};
|
|
57853
57595
|
var sym = Symbol('test');
|
|
57854
57596
|
var symObj = Object(sym);
|
|
@@ -57867,7 +57609,7 @@ module.exports = function hasSymbols() {
|
|
|
57867
57609
|
|
|
57868
57610
|
var symVal = 42;
|
|
57869
57611
|
obj[sym] = symVal;
|
|
57870
|
-
for (
|
|
57612
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
57871
57613
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
57872
57614
|
|
|
57873
57615
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -57878,34 +57620,25 @@ module.exports = function hasSymbols() {
|
|
|
57878
57620
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
57879
57621
|
|
|
57880
57622
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
57881
|
-
|
|
57623
|
+
// eslint-disable-next-line no-extra-parens
|
|
57624
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
57882
57625
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
57883
57626
|
}
|
|
57884
57627
|
|
|
57885
57628
|
return true;
|
|
57886
57629
|
};
|
|
57887
57630
|
|
|
57888
|
-
},{}],
|
|
57631
|
+
},{}],379:[function(require,module,exports){
|
|
57889
57632
|
'use strict';
|
|
57890
57633
|
|
|
57891
57634
|
var hasSymbols = require('has-symbols/shams');
|
|
57892
57635
|
|
|
57636
|
+
/** @type {import('.')} */
|
|
57893
57637
|
module.exports = function hasToStringTagShams() {
|
|
57894
57638
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
57895
57639
|
};
|
|
57896
57640
|
|
|
57897
|
-
},{"has-symbols/shams":
|
|
57898
|
-
arguments[4][350][0].apply(exports,arguments)
|
|
57899
|
-
},{"dup":350}],376:[function(require,module,exports){
|
|
57900
|
-
arguments[4][351][0].apply(exports,arguments)
|
|
57901
|
-
},{"./implementation":375,"dup":351}],377:[function(require,module,exports){
|
|
57902
|
-
'use strict';
|
|
57903
|
-
|
|
57904
|
-
var bind = require('function-bind');
|
|
57905
|
-
|
|
57906
|
-
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
57907
|
-
|
|
57908
|
-
},{"function-bind":376}],378:[function(require,module,exports){
|
|
57641
|
+
},{"has-symbols/shams":378}],380:[function(require,module,exports){
|
|
57909
57642
|
'use strict';
|
|
57910
57643
|
|
|
57911
57644
|
var call = Function.prototype.call;
|
|
@@ -57915,7 +57648,7 @@ var bind = require('function-bind');
|
|
|
57915
57648
|
/** @type {import('.')} */
|
|
57916
57649
|
module.exports = bind.call(call, $hasOwn);
|
|
57917
57650
|
|
|
57918
|
-
},{"function-bind":
|
|
57651
|
+
},{"function-bind":369}],381:[function(require,module,exports){
|
|
57919
57652
|
if (typeof Object.create === 'function') {
|
|
57920
57653
|
// implementation from standard node.js 'util' module
|
|
57921
57654
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -57944,42 +57677,53 @@ if (typeof Object.create === 'function') {
|
|
|
57944
57677
|
}
|
|
57945
57678
|
}
|
|
57946
57679
|
|
|
57947
|
-
},{}],
|
|
57680
|
+
},{}],382:[function(require,module,exports){
|
|
57948
57681
|
'use strict';
|
|
57949
57682
|
|
|
57950
57683
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
57951
|
-
var callBound = require('call-
|
|
57684
|
+
var callBound = require('call-bound');
|
|
57952
57685
|
|
|
57953
57686
|
var $toString = callBound('Object.prototype.toString');
|
|
57954
57687
|
|
|
57688
|
+
/** @type {import('.')} */
|
|
57955
57689
|
var isStandardArguments = function isArguments(value) {
|
|
57956
|
-
if (
|
|
57690
|
+
if (
|
|
57691
|
+
hasToStringTag
|
|
57692
|
+
&& value
|
|
57693
|
+
&& typeof value === 'object'
|
|
57694
|
+
&& Symbol.toStringTag in value
|
|
57695
|
+
) {
|
|
57957
57696
|
return false;
|
|
57958
57697
|
}
|
|
57959
57698
|
return $toString(value) === '[object Arguments]';
|
|
57960
57699
|
};
|
|
57961
57700
|
|
|
57701
|
+
/** @type {import('.')} */
|
|
57962
57702
|
var isLegacyArguments = function isArguments(value) {
|
|
57963
57703
|
if (isStandardArguments(value)) {
|
|
57964
57704
|
return true;
|
|
57965
57705
|
}
|
|
57966
|
-
return value !== null
|
|
57967
|
-
typeof value === 'object'
|
|
57968
|
-
|
|
57969
|
-
value.length
|
|
57970
|
-
|
|
57971
|
-
$toString(value
|
|
57706
|
+
return value !== null
|
|
57707
|
+
&& typeof value === 'object'
|
|
57708
|
+
&& 'length' in value
|
|
57709
|
+
&& typeof value.length === 'number'
|
|
57710
|
+
&& value.length >= 0
|
|
57711
|
+
&& $toString(value) !== '[object Array]'
|
|
57712
|
+
&& 'callee' in value
|
|
57713
|
+
&& $toString(value.callee) === '[object Function]';
|
|
57972
57714
|
};
|
|
57973
57715
|
|
|
57974
57716
|
var supportsStandardArguments = (function () {
|
|
57975
57717
|
return isStandardArguments(arguments);
|
|
57976
57718
|
}());
|
|
57977
57719
|
|
|
57720
|
+
// @ts-expect-error TODO make this not error
|
|
57978
57721
|
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
57979
57722
|
|
|
57723
|
+
/** @type {import('.')} */
|
|
57980
57724
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
57981
57725
|
|
|
57982
|
-
},{"call-
|
|
57726
|
+
},{"call-bound":355,"has-tostringtag/shams":379}],383:[function(require,module,exports){
|
|
57983
57727
|
'use strict';
|
|
57984
57728
|
|
|
57985
57729
|
var fnToStr = Function.prototype.toString;
|
|
@@ -58082,14 +57826,18 @@ module.exports = reflectApply
|
|
|
58082
57826
|
return tryFunctionObject(value);
|
|
58083
57827
|
};
|
|
58084
57828
|
|
|
58085
|
-
},{}],
|
|
57829
|
+
},{}],384:[function(require,module,exports){
|
|
58086
57830
|
'use strict';
|
|
58087
57831
|
|
|
58088
|
-
var
|
|
58089
|
-
var
|
|
58090
|
-
var isFnRegex = /^\s*(?:function)
|
|
57832
|
+
var callBound = require('call-bound');
|
|
57833
|
+
var safeRegexTest = require('safe-regex-test');
|
|
57834
|
+
var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
|
|
58091
57835
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
58092
|
-
var getProto =
|
|
57836
|
+
var getProto = require('get-proto');
|
|
57837
|
+
|
|
57838
|
+
var toStr = callBound('Object.prototype.toString');
|
|
57839
|
+
var fnToStr = callBound('Function.prototype.toString');
|
|
57840
|
+
|
|
58093
57841
|
var getGeneratorFunc = function () { // eslint-disable-line consistent-return
|
|
58094
57842
|
if (!hasToStringTag) {
|
|
58095
57843
|
return false;
|
|
@@ -58099,17 +57847,19 @@ var getGeneratorFunc = function () { // eslint-disable-line consistent-return
|
|
|
58099
57847
|
} catch (e) {
|
|
58100
57848
|
}
|
|
58101
57849
|
};
|
|
57850
|
+
/** @type {undefined | false | null | GeneratorFunctionConstructor} */
|
|
58102
57851
|
var GeneratorFunction;
|
|
58103
57852
|
|
|
57853
|
+
/** @type {import('.')} */
|
|
58104
57854
|
module.exports = function isGeneratorFunction(fn) {
|
|
58105
57855
|
if (typeof fn !== 'function') {
|
|
58106
57856
|
return false;
|
|
58107
57857
|
}
|
|
58108
|
-
if (isFnRegex
|
|
57858
|
+
if (isFnRegex(fnToStr(fn))) {
|
|
58109
57859
|
return true;
|
|
58110
57860
|
}
|
|
58111
57861
|
if (!hasToStringTag) {
|
|
58112
|
-
var str = toStr
|
|
57862
|
+
var str = toStr(fn);
|
|
58113
57863
|
return str === '[object GeneratorFunction]';
|
|
58114
57864
|
}
|
|
58115
57865
|
if (!getProto) {
|
|
@@ -58117,12 +57867,86 @@ module.exports = function isGeneratorFunction(fn) {
|
|
|
58117
57867
|
}
|
|
58118
57868
|
if (typeof GeneratorFunction === 'undefined') {
|
|
58119
57869
|
var generatorFunc = getGeneratorFunc();
|
|
58120
|
-
GeneratorFunction = generatorFunc
|
|
57870
|
+
GeneratorFunction = generatorFunc
|
|
57871
|
+
// eslint-disable-next-line no-extra-parens
|
|
57872
|
+
? /** @type {GeneratorFunctionConstructor} */ (getProto(generatorFunc))
|
|
57873
|
+
: false;
|
|
58121
57874
|
}
|
|
58122
57875
|
return getProto(fn) === GeneratorFunction;
|
|
58123
57876
|
};
|
|
58124
57877
|
|
|
58125
|
-
},{"has-tostringtag/shams":
|
|
57878
|
+
},{"call-bound":355,"get-proto":373,"has-tostringtag/shams":379,"safe-regex-test":403}],385:[function(require,module,exports){
|
|
57879
|
+
'use strict';
|
|
57880
|
+
|
|
57881
|
+
var callBound = require('call-bound');
|
|
57882
|
+
var hasToStringTag = require('has-tostringtag/shams')();
|
|
57883
|
+
var hasOwn = require('hasown');
|
|
57884
|
+
var gOPD = require('gopd');
|
|
57885
|
+
|
|
57886
|
+
/** @type {import('.')} */
|
|
57887
|
+
var fn;
|
|
57888
|
+
|
|
57889
|
+
if (hasToStringTag) {
|
|
57890
|
+
/** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */
|
|
57891
|
+
var $exec = callBound('RegExp.prototype.exec');
|
|
57892
|
+
/** @type {object} */
|
|
57893
|
+
var isRegexMarker = {};
|
|
57894
|
+
|
|
57895
|
+
var throwRegexMarker = function () {
|
|
57896
|
+
throw isRegexMarker;
|
|
57897
|
+
};
|
|
57898
|
+
/** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */
|
|
57899
|
+
var badStringifier = {
|
|
57900
|
+
toString: throwRegexMarker,
|
|
57901
|
+
valueOf: throwRegexMarker
|
|
57902
|
+
};
|
|
57903
|
+
|
|
57904
|
+
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
57905
|
+
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
57906
|
+
}
|
|
57907
|
+
|
|
57908
|
+
/** @type {import('.')} */
|
|
57909
|
+
// @ts-expect-error TS can't figure out that the $exec call always throws
|
|
57910
|
+
// eslint-disable-next-line consistent-return
|
|
57911
|
+
fn = function isRegex(value) {
|
|
57912
|
+
if (!value || typeof value !== 'object') {
|
|
57913
|
+
return false;
|
|
57914
|
+
}
|
|
57915
|
+
|
|
57916
|
+
// eslint-disable-next-line no-extra-parens
|
|
57917
|
+
var descriptor = /** @type {NonNullable<typeof gOPD>} */ (gOPD)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');
|
|
57918
|
+
var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
|
|
57919
|
+
if (!hasLastIndexDataProperty) {
|
|
57920
|
+
return false;
|
|
57921
|
+
}
|
|
57922
|
+
|
|
57923
|
+
try {
|
|
57924
|
+
// eslint-disable-next-line no-extra-parens
|
|
57925
|
+
$exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));
|
|
57926
|
+
} catch (e) {
|
|
57927
|
+
return e === isRegexMarker;
|
|
57928
|
+
}
|
|
57929
|
+
};
|
|
57930
|
+
} else {
|
|
57931
|
+
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
57932
|
+
var $toString = callBound('Object.prototype.toString');
|
|
57933
|
+
/** @const @type {'[object RegExp]'} */
|
|
57934
|
+
var regexClass = '[object RegExp]';
|
|
57935
|
+
|
|
57936
|
+
/** @type {import('.')} */
|
|
57937
|
+
fn = function isRegex(value) {
|
|
57938
|
+
// In older browsers, typeof regex incorrectly returns 'function'
|
|
57939
|
+
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
57940
|
+
return false;
|
|
57941
|
+
}
|
|
57942
|
+
|
|
57943
|
+
return $toString(value) === regexClass;
|
|
57944
|
+
};
|
|
57945
|
+
}
|
|
57946
|
+
|
|
57947
|
+
module.exports = fn;
|
|
57948
|
+
|
|
57949
|
+
},{"call-bound":355,"gopd":375,"has-tostringtag/shams":379,"hasown":380}],386:[function(require,module,exports){
|
|
58126
57950
|
'use strict';
|
|
58127
57951
|
|
|
58128
57952
|
var whichTypedArray = require('which-typed-array');
|
|
@@ -58132,7 +57956,7 @@ module.exports = function isTypedArray(value) {
|
|
|
58132
57956
|
return !!whichTypedArray(value);
|
|
58133
57957
|
};
|
|
58134
57958
|
|
|
58135
|
-
},{"which-typed-array":
|
|
57959
|
+
},{"which-typed-array":408}],387:[function(require,module,exports){
|
|
58136
57960
|
(function (global){(function (){
|
|
58137
57961
|
/**
|
|
58138
57962
|
* @license
|
|
@@ -75345,7 +75169,64 @@ module.exports = function isTypedArray(value) {
|
|
|
75345
75169
|
}.call(this));
|
|
75346
75170
|
|
|
75347
75171
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
75348
|
-
},{}],
|
|
75172
|
+
},{}],388:[function(require,module,exports){
|
|
75173
|
+
'use strict';
|
|
75174
|
+
|
|
75175
|
+
/** @type {import('./abs')} */
|
|
75176
|
+
module.exports = Math.abs;
|
|
75177
|
+
|
|
75178
|
+
},{}],389:[function(require,module,exports){
|
|
75179
|
+
'use strict';
|
|
75180
|
+
|
|
75181
|
+
/** @type {import('./floor')} */
|
|
75182
|
+
module.exports = Math.floor;
|
|
75183
|
+
|
|
75184
|
+
},{}],390:[function(require,module,exports){
|
|
75185
|
+
'use strict';
|
|
75186
|
+
|
|
75187
|
+
/** @type {import('./isNaN')} */
|
|
75188
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
75189
|
+
return a !== a;
|
|
75190
|
+
};
|
|
75191
|
+
|
|
75192
|
+
},{}],391:[function(require,module,exports){
|
|
75193
|
+
'use strict';
|
|
75194
|
+
|
|
75195
|
+
/** @type {import('./max')} */
|
|
75196
|
+
module.exports = Math.max;
|
|
75197
|
+
|
|
75198
|
+
},{}],392:[function(require,module,exports){
|
|
75199
|
+
'use strict';
|
|
75200
|
+
|
|
75201
|
+
/** @type {import('./min')} */
|
|
75202
|
+
module.exports = Math.min;
|
|
75203
|
+
|
|
75204
|
+
},{}],393:[function(require,module,exports){
|
|
75205
|
+
'use strict';
|
|
75206
|
+
|
|
75207
|
+
/** @type {import('./pow')} */
|
|
75208
|
+
module.exports = Math.pow;
|
|
75209
|
+
|
|
75210
|
+
},{}],394:[function(require,module,exports){
|
|
75211
|
+
'use strict';
|
|
75212
|
+
|
|
75213
|
+
/** @type {import('./round')} */
|
|
75214
|
+
module.exports = Math.round;
|
|
75215
|
+
|
|
75216
|
+
},{}],395:[function(require,module,exports){
|
|
75217
|
+
'use strict';
|
|
75218
|
+
|
|
75219
|
+
var $isNaN = require('./isNaN');
|
|
75220
|
+
|
|
75221
|
+
/** @type {import('./sign')} */
|
|
75222
|
+
module.exports = function sign(number) {
|
|
75223
|
+
if ($isNaN(number) || number === 0) {
|
|
75224
|
+
return number;
|
|
75225
|
+
}
|
|
75226
|
+
return number < 0 ? -1 : +1;
|
|
75227
|
+
};
|
|
75228
|
+
|
|
75229
|
+
},{"./isNaN":390}],396:[function(require,module,exports){
|
|
75349
75230
|
'use strict';
|
|
75350
75231
|
|
|
75351
75232
|
var keysShim;
|
|
@@ -75469,7 +75350,7 @@ if (!Object.keys) {
|
|
|
75469
75350
|
}
|
|
75470
75351
|
module.exports = keysShim;
|
|
75471
75352
|
|
|
75472
|
-
},{"./isArguments":
|
|
75353
|
+
},{"./isArguments":398}],397:[function(require,module,exports){
|
|
75473
75354
|
'use strict';
|
|
75474
75355
|
|
|
75475
75356
|
var slice = Array.prototype.slice;
|
|
@@ -75503,7 +75384,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
75503
75384
|
|
|
75504
75385
|
module.exports = keysShim;
|
|
75505
75386
|
|
|
75506
|
-
},{"./implementation":
|
|
75387
|
+
},{"./implementation":396,"./isArguments":398}],398:[function(require,module,exports){
|
|
75507
75388
|
'use strict';
|
|
75508
75389
|
|
|
75509
75390
|
var toStr = Object.prototype.toString;
|
|
@@ -75522,31 +75403,31 @@ module.exports = function isArguments(value) {
|
|
|
75522
75403
|
return isArgs;
|
|
75523
75404
|
};
|
|
75524
75405
|
|
|
75525
|
-
},{}],
|
|
75406
|
+
},{}],399:[function(require,module,exports){
|
|
75526
75407
|
'use strict';
|
|
75527
75408
|
|
|
75528
75409
|
// modified from https://github.com/es-shims/es6-shim
|
|
75529
75410
|
var objectKeys = require('object-keys');
|
|
75530
75411
|
var hasSymbols = require('has-symbols/shams')();
|
|
75531
|
-
var callBound = require('call-
|
|
75532
|
-
var
|
|
75412
|
+
var callBound = require('call-bound');
|
|
75413
|
+
var $Object = require('es-object-atoms');
|
|
75533
75414
|
var $push = callBound('Array.prototype.push');
|
|
75534
75415
|
var $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');
|
|
75535
|
-
var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;
|
|
75416
|
+
var originalGetSymbols = hasSymbols ? $Object.getOwnPropertySymbols : null;
|
|
75536
75417
|
|
|
75537
75418
|
// eslint-disable-next-line no-unused-vars
|
|
75538
75419
|
module.exports = function assign(target, source1) {
|
|
75539
75420
|
if (target == null) { throw new TypeError('target must be an object'); }
|
|
75540
|
-
var to =
|
|
75421
|
+
var to = $Object(target); // step 1
|
|
75541
75422
|
if (arguments.length === 1) {
|
|
75542
75423
|
return to; // step 2
|
|
75543
75424
|
}
|
|
75544
75425
|
for (var s = 1; s < arguments.length; ++s) {
|
|
75545
|
-
var from =
|
|
75426
|
+
var from = $Object(arguments[s]); // step 3.a.i
|
|
75546
75427
|
|
|
75547
75428
|
// step 3.a.ii:
|
|
75548
75429
|
var keys = objectKeys(from);
|
|
75549
|
-
var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
|
|
75430
|
+
var getSymbols = hasSymbols && ($Object.getOwnPropertySymbols || originalGetSymbols);
|
|
75550
75431
|
if (getSymbols) {
|
|
75551
75432
|
var syms = getSymbols(from);
|
|
75552
75433
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -75570,7 +75451,7 @@ module.exports = function assign(target, source1) {
|
|
|
75570
75451
|
return to; // step 4
|
|
75571
75452
|
};
|
|
75572
75453
|
|
|
75573
|
-
},{"call-
|
|
75454
|
+
},{"call-bound":355,"es-object-atoms":366,"has-symbols/shams":378,"object-keys":397}],400:[function(require,module,exports){
|
|
75574
75455
|
'use strict';
|
|
75575
75456
|
|
|
75576
75457
|
var implementation = require('./implementation');
|
|
@@ -75627,11 +75508,12 @@ module.exports = function getPolyfill() {
|
|
|
75627
75508
|
return Object.assign;
|
|
75628
75509
|
};
|
|
75629
75510
|
|
|
75630
|
-
},{"./implementation":
|
|
75511
|
+
},{"./implementation":399}],401:[function(require,module,exports){
|
|
75631
75512
|
'use strict';
|
|
75632
75513
|
|
|
75633
75514
|
/** @type {import('.')} */
|
|
75634
75515
|
module.exports = [
|
|
75516
|
+
'Float16Array',
|
|
75635
75517
|
'Float32Array',
|
|
75636
75518
|
'Float64Array',
|
|
75637
75519
|
'Int8Array',
|
|
@@ -75645,7 +75527,7 @@ module.exports = [
|
|
|
75645
75527
|
'BigUint64Array'
|
|
75646
75528
|
];
|
|
75647
75529
|
|
|
75648
|
-
},{}],
|
|
75530
|
+
},{}],402:[function(require,module,exports){
|
|
75649
75531
|
// shim for using process in browser
|
|
75650
75532
|
var process = module.exports = {};
|
|
75651
75533
|
|
|
@@ -75831,7 +75713,26 @@ process.chdir = function (dir) {
|
|
|
75831
75713
|
};
|
|
75832
75714
|
process.umask = function() { return 0; };
|
|
75833
75715
|
|
|
75834
|
-
},{}],
|
|
75716
|
+
},{}],403:[function(require,module,exports){
|
|
75717
|
+
'use strict';
|
|
75718
|
+
|
|
75719
|
+
var callBound = require('call-bound');
|
|
75720
|
+
var isRegex = require('is-regex');
|
|
75721
|
+
|
|
75722
|
+
var $exec = callBound('RegExp.prototype.exec');
|
|
75723
|
+
var $TypeError = require('es-errors/type');
|
|
75724
|
+
|
|
75725
|
+
/** @type {import('.')} */
|
|
75726
|
+
module.exports = function regexTester(regex) {
|
|
75727
|
+
if (!isRegex(regex)) {
|
|
75728
|
+
throw new $TypeError('`regex` must be a RegExp');
|
|
75729
|
+
}
|
|
75730
|
+
return function test(s) {
|
|
75731
|
+
return $exec(regex, s) !== null;
|
|
75732
|
+
};
|
|
75733
|
+
};
|
|
75734
|
+
|
|
75735
|
+
},{"call-bound":355,"es-errors/type":364,"is-regex":385}],404:[function(require,module,exports){
|
|
75835
75736
|
'use strict';
|
|
75836
75737
|
|
|
75837
75738
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -75875,9 +75776,9 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
75875
75776
|
return fn;
|
|
75876
75777
|
};
|
|
75877
75778
|
|
|
75878
|
-
},{"define-data-property":
|
|
75779
|
+
},{"define-data-property":356,"es-errors/type":364,"get-intrinsic":370,"gopd":375,"has-property-descriptors":376}],405:[function(require,module,exports){
|
|
75879
75780
|
arguments[4][344][0].apply(exports,arguments)
|
|
75880
|
-
},{"dup":344}],
|
|
75781
|
+
},{"dup":344}],406:[function(require,module,exports){
|
|
75881
75782
|
// Currently in sync with Node.js lib/internal/util/types.js
|
|
75882
75783
|
// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
|
|
75883
75784
|
|
|
@@ -76213,7 +76114,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
|
76213
76114
|
});
|
|
76214
76115
|
});
|
|
76215
76116
|
|
|
76216
|
-
},{"is-arguments":
|
|
76117
|
+
},{"is-arguments":382,"is-generator-function":384,"is-typed-array":386,"which-typed-array":408}],407:[function(require,module,exports){
|
|
76217
76118
|
(function (process){(function (){
|
|
76218
76119
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
76219
76120
|
//
|
|
@@ -76932,17 +76833,17 @@ function callbackify(original) {
|
|
|
76932
76833
|
exports.callbackify = callbackify;
|
|
76933
76834
|
|
|
76934
76835
|
}).call(this)}).call(this,require('_process'))
|
|
76935
|
-
},{"./support/isBuffer":
|
|
76836
|
+
},{"./support/isBuffer":405,"./support/types":406,"_process":402,"inherits":381}],408:[function(require,module,exports){
|
|
76936
76837
|
(function (global){(function (){
|
|
76937
76838
|
'use strict';
|
|
76938
76839
|
|
|
76939
76840
|
var forEach = require('for-each');
|
|
76940
76841
|
var availableTypedArrays = require('available-typed-arrays');
|
|
76941
76842
|
var callBind = require('call-bind');
|
|
76942
|
-
var callBound = require('call-
|
|
76843
|
+
var callBound = require('call-bound');
|
|
76943
76844
|
var gOPD = require('gopd');
|
|
76845
|
+
var getProto = require('get-proto');
|
|
76944
76846
|
|
|
76945
|
-
/** @type {(O: object) => string} */
|
|
76946
76847
|
var $toString = callBound('Object.prototype.toString');
|
|
76947
76848
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
76948
76849
|
|
|
@@ -76950,7 +76851,6 @@ var g = typeof globalThis === 'undefined' ? global : globalThis;
|
|
|
76950
76851
|
var typedArrays = availableTypedArrays();
|
|
76951
76852
|
|
|
76952
76853
|
var $slice = callBound('String.prototype.slice');
|
|
76953
|
-
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
|
76954
76854
|
|
|
76955
76855
|
/** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
|
|
76956
76856
|
var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
|
@@ -76962,18 +76862,18 @@ var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(ar
|
|
|
76962
76862
|
return -1;
|
|
76963
76863
|
};
|
|
76964
76864
|
|
|
76965
|
-
/** @typedef {
|
|
76966
|
-
/** @type {
|
|
76865
|
+
/** @typedef {import('./types').Getter} Getter */
|
|
76866
|
+
/** @type {import('./types').Cache} */
|
|
76967
76867
|
var cache = { __proto__: null };
|
|
76968
|
-
if (hasToStringTag && gOPD &&
|
|
76868
|
+
if (hasToStringTag && gOPD && getProto) {
|
|
76969
76869
|
forEach(typedArrays, function (typedArray) {
|
|
76970
76870
|
var arr = new g[typedArray]();
|
|
76971
|
-
if (Symbol.toStringTag in arr) {
|
|
76972
|
-
var proto =
|
|
76871
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
76872
|
+
var proto = getProto(arr);
|
|
76973
76873
|
// @ts-expect-error TS won't narrow inside a closure
|
|
76974
76874
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
76975
|
-
if (!descriptor) {
|
|
76976
|
-
var superProto =
|
|
76875
|
+
if (!descriptor && proto) {
|
|
76876
|
+
var superProto = getProto(proto);
|
|
76977
76877
|
// @ts-expect-error TS won't narrow inside a closure
|
|
76978
76878
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
76979
76879
|
}
|
|
@@ -76986,8 +76886,12 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
|
76986
76886
|
var arr = new g[typedArray]();
|
|
76987
76887
|
var fn = arr.slice || arr.set;
|
|
76988
76888
|
if (fn) {
|
|
76989
|
-
|
|
76990
|
-
|
|
76889
|
+
cache[
|
|
76890
|
+
/** @type {`$${import('.').TypedArrayName}`} */ ('$' + typedArray)
|
|
76891
|
+
] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */ (
|
|
76892
|
+
// @ts-expect-error TODO FIXME
|
|
76893
|
+
callBind(fn)
|
|
76894
|
+
);
|
|
76991
76895
|
}
|
|
76992
76896
|
});
|
|
76993
76897
|
}
|
|
@@ -76996,15 +76900,14 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
|
76996
76900
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
76997
76901
|
/** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
|
|
76998
76902
|
forEach(
|
|
76999
|
-
|
|
77000
|
-
/** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache),
|
|
76903
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */ (cache),
|
|
77001
76904
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
77002
76905
|
function (getter, typedArray) {
|
|
77003
76906
|
if (!found) {
|
|
77004
76907
|
try {
|
|
77005
|
-
|
|
76908
|
+
// @ts-expect-error a throw is fine here
|
|
77006
76909
|
if ('$' + getter(value) === typedArray) {
|
|
77007
|
-
found = $slice(typedArray, 1);
|
|
76910
|
+
found = /** @type {import('.').TypedArrayName} */ ($slice(typedArray, 1));
|
|
77008
76911
|
}
|
|
77009
76912
|
} catch (e) { /**/ }
|
|
77010
76913
|
}
|
|
@@ -77017,14 +76920,13 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
|
77017
76920
|
var trySlices = function tryAllSlices(value) {
|
|
77018
76921
|
/** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
|
|
77019
76922
|
forEach(
|
|
77020
|
-
|
|
77021
|
-
/** @type {
|
|
77022
|
-
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
|
76923
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */(cache),
|
|
76924
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
|
77023
76925
|
if (!found) {
|
|
77024
76926
|
try {
|
|
77025
|
-
// @ts-expect-error
|
|
76927
|
+
// @ts-expect-error a throw is fine here
|
|
77026
76928
|
getter(value);
|
|
77027
|
-
found = $slice(name, 1);
|
|
76929
|
+
found = /** @type {import('.').TypedArrayName} */ ($slice(name, 1));
|
|
77028
76930
|
} catch (e) { /**/ }
|
|
77029
76931
|
}
|
|
77030
76932
|
}
|
|
@@ -77052,54 +76954,5 @@ module.exports = function whichTypedArray(value) {
|
|
|
77052
76954
|
};
|
|
77053
76955
|
|
|
77054
76956
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
77055
|
-
},{"available-typed-arrays":346,"call-bind":
|
|
77056
|
-
arguments[4][348][0].apply(exports,arguments)
|
|
77057
|
-
},{"./":398,"dup":348,"get-intrinsic":365}],398:[function(require,module,exports){
|
|
77058
|
-
'use strict';
|
|
77059
|
-
|
|
77060
|
-
var bind = require('function-bind');
|
|
77061
|
-
var GetIntrinsic = require('get-intrinsic');
|
|
77062
|
-
var setFunctionLength = require('set-function-length');
|
|
77063
|
-
|
|
77064
|
-
var $TypeError = require('es-errors/type');
|
|
77065
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
77066
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
77067
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
77068
|
-
|
|
77069
|
-
var $defineProperty = require('es-define-property');
|
|
77070
|
-
var $max = GetIntrinsic('%Math.max%');
|
|
77071
|
-
|
|
77072
|
-
module.exports = function callBind(originalFunction) {
|
|
77073
|
-
if (typeof originalFunction !== 'function') {
|
|
77074
|
-
throw new $TypeError('a function is required');
|
|
77075
|
-
}
|
|
77076
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
77077
|
-
return setFunctionLength(
|
|
77078
|
-
func,
|
|
77079
|
-
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
77080
|
-
true
|
|
77081
|
-
);
|
|
77082
|
-
};
|
|
77083
|
-
|
|
77084
|
-
var applyBind = function applyBind() {
|
|
77085
|
-
return $reflectApply(bind, $apply, arguments);
|
|
77086
|
-
};
|
|
77087
|
-
|
|
77088
|
-
if ($defineProperty) {
|
|
77089
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
77090
|
-
} else {
|
|
77091
|
-
module.exports.apply = applyBind;
|
|
77092
|
-
}
|
|
77093
|
-
|
|
77094
|
-
},{"es-define-property":354,"es-errors/type":360,"function-bind":364,"get-intrinsic":365,"set-function-length":392}],399:[function(require,module,exports){
|
|
77095
|
-
'use strict';
|
|
77096
|
-
|
|
77097
|
-
var hasSymbols = require('has-symbols/shams');
|
|
77098
|
-
|
|
77099
|
-
/** @type {import('.')} */
|
|
77100
|
-
module.exports = function hasToStringTagShams() {
|
|
77101
|
-
return hasSymbols() && !!Symbol.toStringTag;
|
|
77102
|
-
};
|
|
77103
|
-
|
|
77104
|
-
},{"has-symbols/shams":373}]},{},[105])(105)
|
|
76957
|
+
},{"available-typed-arrays":346,"call-bind":354,"call-bound":355,"for-each":367,"get-proto":373,"gopd":375,"has-tostringtag/shams":379}]},{},[105])(105)
|
|
77105
76958
|
});
|