superagent 8.0.9 → 8.1.1
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/dist/superagent.js +58 -45
- package/dist/superagent.min.js +1 -1
- package/lib/agent-base.js +1 -1
- package/lib/client.js +1 -1
- package/lib/node/agent.js +1 -1
- package/lib/node/http2wrapper.js +124 -128
- package/lib/node/index.js +4 -4
- package/lib/node/response.js +1 -1
- package/lib/node/unzip.js +1 -1
- package/lib/request-base.js +3 -6
- package/lib/response-base.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +3 -3
package/dist/superagent.js
CHANGED
|
@@ -406,16 +406,17 @@ var ThrowTypeError = $gOPD ? function () {
|
|
|
406
406
|
}
|
|
407
407
|
}() : throwTypeError;
|
|
408
408
|
var hasSymbols = require('has-symbols')();
|
|
409
|
-
var
|
|
409
|
+
var hasProto = require('has-proto')();
|
|
410
|
+
var getProto = Object.getPrototypeOf || (hasProto ? function (x) {
|
|
410
411
|
return x.__proto__;
|
|
411
|
-
};
|
|
412
|
+
} : null);
|
|
412
413
|
var needsEval = {};
|
|
413
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
414
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
414
415
|
var INTRINSICS = {
|
|
415
416
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
416
417
|
'%Array%': Array,
|
|
417
418
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
418
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
419
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
419
420
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
420
421
|
'%AsyncFunction%': needsEval,
|
|
421
422
|
'%AsyncGenerator%': needsEval,
|
|
@@ -445,10 +446,10 @@ var INTRINSICS = {
|
|
|
445
446
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
446
447
|
'%isFinite%': isFinite,
|
|
447
448
|
'%isNaN%': isNaN,
|
|
448
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
449
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
449
450
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
450
451
|
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
451
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
452
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
452
453
|
'%Math%': Math,
|
|
453
454
|
'%Number%': Number,
|
|
454
455
|
'%Object%': Object,
|
|
@@ -461,10 +462,10 @@ var INTRINSICS = {
|
|
|
461
462
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
462
463
|
'%RegExp%': RegExp,
|
|
463
464
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
464
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
465
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
465
466
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
466
467
|
'%String%': String,
|
|
467
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
468
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
468
469
|
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
469
470
|
'%SyntaxError%': $SyntaxError,
|
|
470
471
|
'%ThrowTypeError%': ThrowTypeError,
|
|
@@ -479,11 +480,13 @@ var INTRINSICS = {
|
|
|
479
480
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
480
481
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
481
482
|
};
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
483
|
+
if (getProto) {
|
|
484
|
+
try {
|
|
485
|
+
null.error;
|
|
486
|
+
} catch (e) {
|
|
487
|
+
var errorProto = getProto(getProto(e));
|
|
488
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
489
|
+
}
|
|
487
490
|
}
|
|
488
491
|
var doEval = function doEval(name) {
|
|
489
492
|
var value;
|
|
@@ -500,7 +503,7 @@ var doEval = function doEval(name) {
|
|
|
500
503
|
}
|
|
501
504
|
} else if (name === '%AsyncIteratorPrototype%') {
|
|
502
505
|
var gen = doEval('%AsyncGenerator%');
|
|
503
|
-
if (gen) {
|
|
506
|
+
if (gen && getProto) {
|
|
504
507
|
value = getProto(gen.prototype);
|
|
505
508
|
}
|
|
506
509
|
}
|
|
@@ -668,7 +671,22 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
668
671
|
return value;
|
|
669
672
|
};
|
|
670
673
|
|
|
671
|
-
},{"function-bind":7,"has":
|
|
674
|
+
},{"function-bind":7,"has":12,"has-proto":9,"has-symbols":10}],9:[function(require,module,exports){
|
|
675
|
+
'use strict';
|
|
676
|
+
|
|
677
|
+
var test = {
|
|
678
|
+
foo: {}
|
|
679
|
+
};
|
|
680
|
+
var $Object = Object;
|
|
681
|
+
module.exports = function hasProto() {
|
|
682
|
+
return {
|
|
683
|
+
__proto__: test
|
|
684
|
+
}.foo === test.foo && !({
|
|
685
|
+
__proto__: null
|
|
686
|
+
} instanceof $Object);
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
},{}],10:[function(require,module,exports){
|
|
672
690
|
'use strict';
|
|
673
691
|
|
|
674
692
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
@@ -689,7 +707,7 @@ module.exports = function hasNativeSymbols() {
|
|
|
689
707
|
return hasSymbolSham();
|
|
690
708
|
};
|
|
691
709
|
|
|
692
|
-
},{"./shams":
|
|
710
|
+
},{"./shams":11}],11:[function(require,module,exports){
|
|
693
711
|
'use strict';
|
|
694
712
|
module.exports = function hasSymbols() {
|
|
695
713
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') {
|
|
@@ -737,13 +755,13 @@ module.exports = function hasSymbols() {
|
|
|
737
755
|
return true;
|
|
738
756
|
};
|
|
739
757
|
|
|
740
|
-
},{}],
|
|
758
|
+
},{}],12:[function(require,module,exports){
|
|
741
759
|
'use strict';
|
|
742
760
|
|
|
743
761
|
var bind = require('function-bind');
|
|
744
762
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
745
763
|
|
|
746
|
-
},{"function-bind":7}],
|
|
764
|
+
},{"function-bind":7}],13:[function(require,module,exports){
|
|
747
765
|
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
748
766
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
749
767
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
@@ -1243,7 +1261,7 @@ function arrObjKeys(obj, inspect) {
|
|
|
1243
1261
|
return xs;
|
|
1244
1262
|
}
|
|
1245
1263
|
|
|
1246
|
-
},{"./util.inspect":1}],
|
|
1264
|
+
},{"./util.inspect":1}],14:[function(require,module,exports){
|
|
1247
1265
|
var process = module.exports = {};
|
|
1248
1266
|
var cachedSetTimeout;
|
|
1249
1267
|
var cachedClearTimeout;
|
|
@@ -1400,7 +1418,7 @@ process.umask = function () {
|
|
|
1400
1418
|
return 0;
|
|
1401
1419
|
};
|
|
1402
1420
|
|
|
1403
|
-
},{}],
|
|
1421
|
+
},{}],15:[function(require,module,exports){
|
|
1404
1422
|
'use strict';
|
|
1405
1423
|
|
|
1406
1424
|
var replace = String.prototype.replace;
|
|
@@ -1423,7 +1441,7 @@ module.exports = {
|
|
|
1423
1441
|
RFC3986: Format.RFC3986
|
|
1424
1442
|
};
|
|
1425
1443
|
|
|
1426
|
-
},{}],
|
|
1444
|
+
},{}],16:[function(require,module,exports){
|
|
1427
1445
|
'use strict';
|
|
1428
1446
|
|
|
1429
1447
|
var stringify = require('./stringify');
|
|
@@ -1435,7 +1453,7 @@ module.exports = {
|
|
|
1435
1453
|
stringify: stringify
|
|
1436
1454
|
};
|
|
1437
1455
|
|
|
1438
|
-
},{"./formats":
|
|
1456
|
+
},{"./formats":15,"./parse":17,"./stringify":18}],17:[function(require,module,exports){
|
|
1439
1457
|
'use strict';
|
|
1440
1458
|
|
|
1441
1459
|
var utils = require('./utils');
|
|
@@ -1473,7 +1491,9 @@ var parseArrayValue = function (val, options) {
|
|
|
1473
1491
|
var isoSentinel = 'utf8=%26%2310003%3B';
|
|
1474
1492
|
var charsetSentinel = 'utf8=%E2%9C%93';
|
|
1475
1493
|
var parseValues = function parseQueryStringValues(str, options) {
|
|
1476
|
-
var obj = {
|
|
1494
|
+
var obj = {
|
|
1495
|
+
__proto__: null
|
|
1496
|
+
};
|
|
1477
1497
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
1478
1498
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
1479
1499
|
var parts = cleanStr.split(options.delimiter, limit);
|
|
@@ -1632,7 +1652,7 @@ module.exports = function (str, opts) {
|
|
|
1632
1652
|
return utils.compact(obj);
|
|
1633
1653
|
};
|
|
1634
1654
|
|
|
1635
|
-
},{"./utils":
|
|
1655
|
+
},{"./utils":19}],18:[function(require,module,exports){
|
|
1636
1656
|
'use strict';
|
|
1637
1657
|
|
|
1638
1658
|
var getSideChannel = require('side-channel');
|
|
@@ -1652,7 +1672,6 @@ var arrayPrefixGenerators = {
|
|
|
1652
1672
|
}
|
|
1653
1673
|
};
|
|
1654
1674
|
var isArray = Array.isArray;
|
|
1655
|
-
var split = String.prototype.split;
|
|
1656
1675
|
var push = Array.prototype.push;
|
|
1657
1676
|
var pushToArray = function (arr, valueOrArray) {
|
|
1658
1677
|
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
@@ -1721,14 +1740,6 @@ var stringify = function stringify(object, prefix, generateArrayPrefix, commaRou
|
|
|
1721
1740
|
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
1722
1741
|
if (encoder) {
|
|
1723
1742
|
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
1724
|
-
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
|
1725
|
-
var valuesArray = split.call(String(obj), ',');
|
|
1726
|
-
var valuesJoined = '';
|
|
1727
|
-
for (var i = 0; i < valuesArray.length; ++i) {
|
|
1728
|
-
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
|
|
1729
|
-
}
|
|
1730
|
-
return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
|
|
1731
|
-
}
|
|
1732
1743
|
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
1733
1744
|
}
|
|
1734
1745
|
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
@@ -1739,6 +1750,9 @@ var stringify = function stringify(object, prefix, generateArrayPrefix, commaRou
|
|
|
1739
1750
|
}
|
|
1740
1751
|
var objKeys;
|
|
1741
1752
|
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
1753
|
+
if (encodeValuesOnly && encoder) {
|
|
1754
|
+
obj = utils.maybeMap(obj, encoder);
|
|
1755
|
+
}
|
|
1742
1756
|
objKeys = [{
|
|
1743
1757
|
value: obj.length > 0 ? obj.join(',') || null : void undefined
|
|
1744
1758
|
}];
|
|
@@ -1759,7 +1773,7 @@ var stringify = function stringify(object, prefix, generateArrayPrefix, commaRou
|
|
|
1759
1773
|
sideChannel.set(object, step);
|
|
1760
1774
|
var valueSideChannel = getSideChannel();
|
|
1761
1775
|
valueSideChannel.set(sentinel, sideChannel);
|
|
1762
|
-
pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
1776
|
+
pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
1763
1777
|
}
|
|
1764
1778
|
return values;
|
|
1765
1779
|
};
|
|
@@ -1859,7 +1873,7 @@ module.exports = function (object, opts) {
|
|
|
1859
1873
|
return joined.length > 0 ? prefix + joined : '';
|
|
1860
1874
|
};
|
|
1861
1875
|
|
|
1862
|
-
},{"./formats":
|
|
1876
|
+
},{"./formats":15,"./utils":19,"side-channel":20}],19:[function(require,module,exports){
|
|
1863
1877
|
'use strict';
|
|
1864
1878
|
|
|
1865
1879
|
var formats = require('./formats');
|
|
@@ -2063,7 +2077,7 @@ module.exports = {
|
|
|
2063
2077
|
merge: merge
|
|
2064
2078
|
};
|
|
2065
2079
|
|
|
2066
|
-
},{"./formats":
|
|
2080
|
+
},{"./formats":15}],20:[function(require,module,exports){
|
|
2067
2081
|
'use strict';
|
|
2068
2082
|
|
|
2069
2083
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -2173,7 +2187,7 @@ module.exports = function getSideChannel() {
|
|
|
2173
2187
|
return channel;
|
|
2174
2188
|
};
|
|
2175
2189
|
|
|
2176
|
-
},{"call-bind/callBound":2,"get-intrinsic":8,"object-inspect":
|
|
2190
|
+
},{"call-bind/callBound":2,"get-intrinsic":8,"object-inspect":13}],21:[function(require,module,exports){
|
|
2177
2191
|
function Agent() {
|
|
2178
2192
|
this._defaults = [];
|
|
2179
2193
|
}
|
|
@@ -2196,7 +2210,7 @@ Agent.prototype._setDefaults = function (request) {
|
|
|
2196
2210
|
};
|
|
2197
2211
|
module.exports = Agent;
|
|
2198
2212
|
|
|
2199
|
-
},{}],
|
|
2213
|
+
},{}],22:[function(require,module,exports){
|
|
2200
2214
|
let root;
|
|
2201
2215
|
if (typeof window !== 'undefined') {
|
|
2202
2216
|
root = window;
|
|
@@ -2679,7 +2693,7 @@ request.put = (url, data, fn) => {
|
|
|
2679
2693
|
return request_;
|
|
2680
2694
|
};
|
|
2681
2695
|
|
|
2682
|
-
},{"./agent-base":
|
|
2696
|
+
},{"./agent-base":21,"./request-base":23,"./response-base":24,"./utils":25,"component-emitter":4,"fast-safe-stringify":5,"qs":16}],23:[function(require,module,exports){
|
|
2683
2697
|
(function (process){(function (){
|
|
2684
2698
|
const semver = require('semver');
|
|
2685
2699
|
const {
|
|
@@ -2884,8 +2898,6 @@ RequestBase.prototype.abort = function () {
|
|
|
2884
2898
|
if (this.req) {
|
|
2885
2899
|
if (semver.gte(process.version, 'v13.0.0') && semver.lt(process.version, 'v14.0.0')) {
|
|
2886
2900
|
throw new Error('Superagent does not work in v13 properly with abort() due to Node.js core changes');
|
|
2887
|
-
} else if (semver.gte(process.version, 'v14.0.0')) {
|
|
2888
|
-
this.req.destroyed = true;
|
|
2889
2901
|
}
|
|
2890
2902
|
this.req.abort();
|
|
2891
2903
|
}
|
|
@@ -2951,9 +2963,10 @@ RequestBase.prototype.send = function (data) {
|
|
|
2951
2963
|
}
|
|
2952
2964
|
if (isObject_ && isObject(this._data)) {
|
|
2953
2965
|
for (const key in data) {
|
|
2966
|
+
if (typeof data[key] == "bigint") throw new Error("Cannot serialize BigInt value to json");
|
|
2954
2967
|
if (hasOwn(data, key)) this._data[key] = data[key];
|
|
2955
2968
|
}
|
|
2956
|
-
} else if (typeof data === 'string') {
|
|
2969
|
+
} else if (typeof data === 'bigint') throw new Error("Cannot send value of type BigInt");else if (typeof data === 'string') {
|
|
2957
2970
|
if (!type) this.type('form');
|
|
2958
2971
|
type = this._header['content-type'];
|
|
2959
2972
|
if (type) type = type.toLowerCase().trim();
|
|
@@ -3025,7 +3038,7 @@ RequestBase.prototype._setTimeouts = function () {
|
|
|
3025
3038
|
};
|
|
3026
3039
|
|
|
3027
3040
|
}).call(this)}).call(this,require('_process'))
|
|
3028
|
-
},{"./utils":
|
|
3041
|
+
},{"./utils":25,"_process":14,"semver":1}],24:[function(require,module,exports){
|
|
3029
3042
|
const utils = require('./utils');
|
|
3030
3043
|
module.exports = ResponseBase;
|
|
3031
3044
|
function ResponseBase() {}
|
|
@@ -3068,7 +3081,7 @@ ResponseBase.prototype._setStatusProperties = function (status) {
|
|
|
3068
3081
|
this.unprocessableEntity = status === 422;
|
|
3069
3082
|
};
|
|
3070
3083
|
|
|
3071
|
-
},{"./utils":
|
|
3084
|
+
},{"./utils":25}],25:[function(require,module,exports){
|
|
3072
3085
|
exports.type = string_ => string_.split(/ *; */).shift();
|
|
3073
3086
|
exports.params = value => {
|
|
3074
3087
|
const object = {};
|
|
@@ -3118,5 +3131,5 @@ exports.mixin = (target, source) => {
|
|
|
3118
3131
|
}
|
|
3119
3132
|
};
|
|
3120
3133
|
|
|
3121
|
-
},{}]},{},[
|
|
3134
|
+
},{}]},{},[22])(22)
|
|
3122
3135
|
});
|
package/dist/superagent.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).superagent=t()}}((function(){var t={exports:{}};function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length},t=t.exports;var r;r=a,a.default=a,a.stable=p,a.stableStringify=p;var o=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(t,e,r,a){var u;void 0===a&&(a=i()),function t(e,r,o,n,i,a,u){var p;if(a+=1,"object"==typeof e&&null!==e){for(p=0;p<n.length;p++)if(n[p]===e)return void s("[Circular]",e,r,i);if(void 0!==u.depthLimit&&a>u.depthLimit)return void s("[...]",e,r,i);if(void 0!==u.edgesLimit&&o+1>u.edgesLimit)return void s("[...]",e,r,i);if(n.push(e),Array.isArray(e))for(p=0;p<e.length;p++)t(e[p],p,p,n,e,a,u);else{var c=Object.keys(e);for(p=0;p<c.length;p++){var l=c[p];t(e[l],l,p,n,e,a,u)}}n.pop()}}(t,"",0,[],void 0,0,a);try{u=0===n.length?JSON.stringify(t,e,r):JSON.stringify(t,c(e),r)}catch(l){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var p=o.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return u}function s(t,e,r,i){var a=Object.getOwnPropertyDescriptor(i,r);void 0!==a.get?a.configurable?(Object.defineProperty(i,r,{value:t}),o.push([i,r,e,a])):n.push([e,r,t]):(i[r]=t,o.push([i,r,e]))}function u(t,e){return t<e?-1:t>e?1:0}function p(t,e,r,a){void 0===a&&(a=i());var p,l=function t(e,r,n,i,a,p,c){var l;if(p+=1,"object"==typeof e&&null!==e){for(l=0;l<i.length;l++)if(i[l]===e)return void s("[Circular]",e,r,a);try{if("function"==typeof e.toJSON)return}catch(d){return}if(void 0!==c.depthLimit&&p>c.depthLimit)return void s("[...]",e,r,a);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void s("[...]",e,r,a);if(i.push(e),Array.isArray(e))for(l=0;l<e.length;l++)t(e[l],l,l,i,e,p,c);else{var f={},y=Object.keys(e).sort(u);for(l=0;l<y.length;l++){var h=y[l];t(e[h],h,l,i,e,p,c),f[h]=e[h]}if(void 0===a)return f;o.push([a,r,e]),a[r]=f}i.pop()}}(t,"",0,[],void 0,0,a)||t;try{p=0===n.length?JSON.stringify(l,e,r):JSON.stringify(l,c(e),r)}catch(y){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var f=o.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return p}function c(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===e&&i[0]===r){r=i[2],n.splice(o,1);break}}return t.call(this,e,r)}}var l="undefined"!=typeof Symbol&&Symbol,f=Array.prototype.slice,y=Object.prototype.toString,h=Function.prototype.bind||function(t){var e=this;if("function"!=typeof e||"[object Function]"!==y.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,o=f.call(arguments,1),n=Math.max(0,e.length-o.length),i=[],a=0;a<n;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=e.apply(this,o.concat(f.call(arguments)));return Object(n)===n?n:this}return e.apply(t,o.concat(f.call(arguments)))})),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},d=h.call(Function.call,Object.prototype.hasOwnProperty),m=SyntaxError,b=Function,g=TypeError,v=function(t){try{return b('"use strict"; return ('+t+").constructor;")()}catch(e){}},w=Object.getOwnPropertyDescriptor;if(w)try{w({},"")}catch(or){w=null}var _=function(){throw new g},S=w?function(){try{return _}catch(t){try{return w(arguments,"callee").get}catch(e){return _}}}():_,A="function"==typeof l&&"function"==typeof Symbol&&"symbol"==typeof l("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}(),E=Object.getPrototypeOf||function(t){return t.__proto__},O={},T="undefined"==typeof Uint8Array?void 0:E(Uint8Array),j={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":A?E([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A?E(E([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&A?E((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&A?E((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A?E(""[Symbol.iterator]()):void 0,"%Symbol%":A?Symbol:void 0,"%SyntaxError%":m,"%ThrowTypeError%":S,"%TypedArray%":T,"%TypeError%":g,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};try{null.error}catch(or){var P=E(E(or));j["%Error.prototype%"]=P}var x,k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=h.call(Function.call,Array.prototype.concat),I=h.call(Function.apply,Array.prototype.splice),C=h.call(Function.call,String.prototype.replace),F=h.call(Function.call,String.prototype.slice),N=h.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,M=function(t,e){var r,o=t;if(d(k,o)&&(o="%"+(r=k[o])[0]+"%"),d(j,o)){var n=j[o];if(n===O&&(n=function t(e){var r;if("%AsyncFunction%"===e)r=v("async function () {}");else if("%GeneratorFunction%"===e)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=v("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=E(n.prototype))}return j[e]=r,r}(o)),void 0===n&&!e)throw new g("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new m("intrinsic "+t+" does not exist!")},L=function(t,e){if("string"!=typeof t||0===t.length)throw new g("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new g('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,t))throw new m("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=F(t,0,1),r=F(t,-1);if("%"===e&&"%"!==r)throw new m("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new m("invalid intrinsic syntax, expected opening `%`");var o=[];return C(t,D,(function(t,e,r,n){o[o.length]=r?C(n,U,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=M("%"+o+"%",e),i=n.name,a=n.value,s=!1,u=n.alias;u&&(o=u[0],I(r,R([0,1],u)));for(var p=1,c=!0;p<r.length;p+=1){var l=r[p],f=F(l,0,1),y=F(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===y||"'"===y||"`"===y)&&f!==y)throw new m("property names with quotes must have matching quotes");if("constructor"!==l&&c||(s=!0),d(j,i="%"+(o+="."+l)+"%"))a=j[i];else if(null!=a){if(!(l in a)){if(!e)throw new g("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&p+1>=r.length){var h=w(a,l);a=(c=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[l]}else c=d(a,l),a=a[l];c&&!s&&(j[i]=a)}}return a},q=L("%Function.prototype.apply%"),B=L("%Function.prototype.call%"),W=L("%Reflect.apply%",!0)||h.call(B,q),$=L("%Object.getOwnPropertyDescriptor%",!0),H=L("%Object.defineProperty%",!0),z=L("%Math.max%");if(H)try{H({},"a",{value:1})}catch(or){H=null}x=function(t){var e=W(h,B,arguments);return $&&H&&$(e,"length").configurable&&H(e,"length",{value:1+z(0,t.length-(arguments.length-1))}),e};var G=function(){return W(h,q,arguments)};H?H(x,"apply",{value:G}):x.apply=G;var J=x(L("String.prototype.indexOf")),V=function(t,e){var r=L(t,!!e);return"function"==typeof r&&J(t,".prototype.")>-1?x(r):r},Q={},X="function"==typeof Map&&Map.prototype,K=Object.getOwnPropertyDescriptor&&X?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Y=X&&K&&"function"==typeof K.get?K.get:null,Z=X&&Map.prototype.forEach,tt="function"==typeof Set&&Set.prototype,et=Object.getOwnPropertyDescriptor&&tt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rt=tt&&et&&"function"==typeof et.get?et.get:null,ot=tt&&Set.prototype.forEach,nt="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,it="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,at="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,st=Boolean.prototype.valueOf,ut=Object.prototype.toString,pt=Function.prototype.toString,ct=String.prototype.match,lt=String.prototype.slice,ft=String.prototype.replace,yt=String.prototype.toUpperCase,ht=String.prototype.toLowerCase,dt=RegExp.prototype.test,mt=Array.prototype.concat,bt=Array.prototype.join,gt=Array.prototype.slice,vt=Math.floor,wt="function"==typeof BigInt?BigInt.prototype.valueOf:null,_t=Object.getOwnPropertySymbols,St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,At="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Et="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,Ot=Object.prototype.propertyIsEnumerable,Tt=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function jt(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||dt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-vt(-t):vt(t);if(o!==t){var n=String(o),i=lt.call(e,n.length+1);return ft.call(n,r,"$&_")+"."+ft.call(ft.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ft.call(e,r,"$&_")}var Pt=Q.custom,xt=Ft(Pt)?Pt:null;function kt(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function Rt(t){return ft.call(String(t),/"/g,""")}function It(t){return!("[object Array]"!==Ut(t)||Et&&"object"==typeof t&&Et in t)}function Ct(t){return!("[object RegExp]"!==Ut(t)||Et&&"object"==typeof t&&Et in t)}function Ft(t){if(At)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!St)return!1;try{return St.call(t),!0}catch(or){}return!1}var Nt=Object.prototype.hasOwnProperty||function(t){return t in this};function Dt(t,e){return Nt.call(t,e)}function Ut(t){return ut.call(t)}function Mt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function Lt(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+yt.call(e.toString(16))}function qt(t){return"Object("+t+")"}function Bt(t){return t+" { ? }"}function Wt(t,e,r,o){return t+" ("+e+") {"+(o?$t(r,o):bt.call(r,", "))+"}"}function $t(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+bt.call(t,","+r)+"\n"+e.prev}function Ht(t,e){var r=It(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Dt(t,n)?e(t[n],t):""}var i,a="function"==typeof _t?_t(t):[];if(At){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)Dt(t,u)&&(r&&String(Number(u))===u&&u<t.length||At&&i["$"+u]instanceof Symbol||(dt.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if("function"==typeof _t)for(var p=0;p<a.length;p++)Ot.call(t,a[p])&&o.push("["+e(a[p])+"]: "+e(t[a[p]],t));return o}var zt=L("%TypeError%"),Gt=L("%WeakMap%",!0),Jt=L("%Map%",!0),Vt=V("WeakMap.prototype.get",!0),Qt=V("WeakMap.prototype.set",!0),Xt=V("WeakMap.prototype.has",!0),Kt=V("Map.prototype.get",!0),Yt=V("Map.prototype.set",!0),Zt=V("Map.prototype.has",!0),te=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r},ee=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new zt("Side channel does not contain "+function t(e,r,o,n){var i=r||{};if(Dt(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Dt(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Dt(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Dt(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Dt(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(lt.call(e,0,r.maxStringLength),r)+n}return kt(ft.call(ft.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lt),"single",r)}(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var u=String(e);return s?jt(e,u):u}if("bigint"==typeof e){var p=String(e)+"n";return s?jt(e,p):p}var c=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=c&&c>0&&"object"==typeof e)return It(e)?"[Array]":"[Object]";var l,f=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=bt.call(Array(t.indent+1)," ")}return{base:r,prev:bt.call(Array(e+1),r)}}(i,o);if(void 0===n)n=[];else if(Mt(n,e)>=0)return"[Circular]";function y(e,r,a){if(r&&(n=gt.call(n)).push(r),a){var s={depth:i.depth};return Dt(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),t(e,s,o+1,n)}return t(e,i,o+1,n)}if("function"==typeof e&&!Ct(e)){var h=function(t){if(t.name)return t.name;var e=ct.call(pt.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),d=Ht(e,y);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+bt.call(d,", ")+" }":"")}if(Ft(e)){var m=At?ft.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):St.call(e);return"object"!=typeof e||At?m:qt(m)}if((l=e)&&"object"==typeof l&&("undefined"!=typeof HTMLElement&&l instanceof HTMLElement||"string"==typeof l.nodeName&&"function"==typeof l.getAttribute)){for(var b="<"+ht.call(String(e.nodeName)),g=e.attributes||[],v=0;v<g.length;v++)b+=" "+g[v].name+"="+kt(Rt(g[v].value),"double",i);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+"</"+ht.call(String(e.nodeName))+">"}if(It(e)){if(0===e.length)return"[]";var w=Ht(e,y);return f&&!function(t){for(var e=0;e<t.length;e++)if(Mt(t[e],"\n")>=0)return!1;return!0}(w)?"["+$t(w,f)+"]":"[ "+bt.call(w,", ")+" ]"}if(function(t){return!("[object Error]"!==Ut(t)||Et&&"object"==typeof t&&Et in t)}(e)){var _=Ht(e,y);return"cause"in Error.prototype||!("cause"in e)||Ot.call(e,"cause")?0===_.length?"["+String(e)+"]":"{ ["+String(e)+"] "+bt.call(_,", ")+" }":"{ ["+String(e)+"] "+bt.call(mt.call("[cause]: "+y(e.cause),_),", ")+" }"}if("object"==typeof e&&a){if(xt&&"function"==typeof e[xt]&&Q)return Q(e,{depth:c-o});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!Y||!t||"object"!=typeof t)return!1;try{Y.call(t);try{rt.call(t)}catch(b){return!0}return t instanceof Map}catch(or){}return!1}(e)){var S=[];return Z&&Z.call(e,(function(t,r){S.push(y(r,e,!0)+" => "+y(t,e))})),Wt("Map",Y.call(e),S,f)}if(function(t){if(!rt||!t||"object"!=typeof t)return!1;try{rt.call(t);try{Y.call(t)}catch(e){return!0}return t instanceof Set}catch(or){}return!1}(e)){var A=[];return ot&&ot.call(e,(function(t){A.push(y(t,e))})),Wt("Set",rt.call(e),A,f)}if(function(t){if(!nt||!t||"object"!=typeof t)return!1;try{nt.call(t,nt);try{it.call(t,it)}catch(b){return!0}return t instanceof WeakMap}catch(or){}return!1}(e))return Bt("WeakMap");if(function(t){if(!it||!t||"object"!=typeof t)return!1;try{it.call(t,it);try{nt.call(t,nt)}catch(b){return!0}return t instanceof WeakSet}catch(or){}return!1}(e))return Bt("WeakSet");if(function(t){if(!at||!t||"object"!=typeof t)return!1;try{return at.call(t),!0}catch(or){}return!1}(e))return Bt("WeakRef");if(function(t){return!("[object Number]"!==Ut(t)||Et&&"object"==typeof t&&Et in t)}(e))return qt(y(Number(e)));if(function(t){if(!t||"object"!=typeof t||!wt)return!1;try{return wt.call(t),!0}catch(or){}return!1}(e))return qt(y(wt.call(e)));if(function(t){return!("[object Boolean]"!==Ut(t)||Et&&"object"==typeof t&&Et in t)}(e))return qt(st.call(e));if(function(t){return!("[object String]"!==Ut(t)||Et&&"object"==typeof t&&Et in t)}(e))return qt(y(String(e)));if(!function(t){return!("[object Date]"!==Ut(t)||Et&&"object"==typeof t&&Et in t)}(e)&&!Ct(e)){var E=Ht(e,y),O=Tt?Tt(e)===Object.prototype:e instanceof Object||e.constructor===Object,T=e instanceof Object?"":"null prototype",j=!O&&Et&&Object(e)===e&&Et in e?lt.call(Ut(e),8,-1):T?"Object":"",P=(O||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(j||T?"["+bt.call(mt.call([],j||[],T||[]),": ")+"] ":"");return 0===E.length?P+"{}":f?P+"{"+$t(E,f)+"}":P+"{ "+bt.call(E,", ")+" }"}return String(e)}(t))},get:function(o){if(Gt&&o&&("object"==typeof o||"function"==typeof o)){if(t)return Vt(t,o)}else if(Jt){if(e)return Kt(e,o)}else if(r)return function(t,e){var r=te(t,e);return r&&r.value}(r,o)},has:function(o){if(Gt&&o&&("object"==typeof o||"function"==typeof o)){if(t)return Xt(t,o)}else if(Jt){if(e)return Zt(e,o)}else if(r)return function(t,e){return!!te(t,e)}(r,o);return!1},set:function(o,n){Gt&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new Gt),Qt(t,o,n)):Jt?(e||(e=new Jt),Yt(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=te(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o},re=String.prototype.replace,oe=/%20/g,ne={default:"RFC3986",formatters:{RFC1738:function(t){return re.call(t,oe,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:"RFC3986"},ie=Object.prototype.hasOwnProperty,ae=Array.isArray,se=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),ue={combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],i=n.obj[n.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],p=i[u];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:i,prop:u}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(ae(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(or){return o}},encode:function(t,e,r,o,n){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var u=i.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||n===ne.RFC1738&&(40===u||41===u)?a+=i.charAt(s):u<128?a+=se[u]:u<2048?a+=se[192|u>>6]+se[128|63&u]:u<55296||u>=57344?a+=se[224|u>>12]+se[128|u>>6&63]+se[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(s)),a+=se[240|u>>18]+se[128|u>>12&63]+se[128|u>>6&63]+se[128|63&u])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(ae(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(ae(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!ie.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var n=e;return ae(e)&&!ae(r)&&(n=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r}(e,o)),ae(e)&&ae(r)?(r.forEach((function(r,n){if(ie.call(e,n)){var i=e[n];i&&"object"==typeof i&&r&&"object"==typeof r?e[n]=t(i,r,o):e.push(r)}else e[n]=r})),e):Object.keys(r).reduce((function(e,n){var i=r[n];return ie.call(e,n)?e[n]=t(e[n],i,o):e[n]=i,e}),n)}},pe=Object.prototype.hasOwnProperty,ce={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},le=Array.isArray,fe=String.prototype.split,ye=Array.prototype.push,he=function(t,e){ye.apply(t,le(e)?e:[e])},de=Date.prototype.toISOString,me=ne.default,be={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ue.encode,encodeValuesOnly:!1,format:me,formatter:ne.formatters[me],indices:!1,serializeDate:function(t){return de.call(t)},skipNulls:!1,strictNullHandling:!1},ge={},ve=function t(e,r,o,n,i,a,s,u,p,c,l,f,y,h,d,m){for(var b,g=e,v=m,w=0,_=!1;void 0!==(v=v.get(ge))&&!_;){var S=v.get(e);if(w+=1,void 0!==S){if(S===w)throw new RangeError("Cyclic object value");_=!0}void 0===v.get(ge)&&(w=0)}if("function"==typeof u?g=u(r,g):g instanceof Date?g=l(g):"comma"===o&&le(g)&&(g=ue.maybeMap(g,(function(t){return t instanceof Date?l(t):t}))),null===g){if(i)return s&&!h?s(r,be.encoder,d,"key",f):r;g=""}if("string"==typeof(b=g)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||ue.isBuffer(g)){if(s){var A=h?r:s(r,be.encoder,d,"key",f);if("comma"===o&&h){for(var E=fe.call(String(g),","),O="",T=0;T<E.length;++T)O+=(0===T?"":",")+y(s(E[T],be.encoder,d,"value",f));return[y(A)+(n&&le(g)&&1===E.length?"[]":"")+"="+O]}return[y(A)+"="+y(s(g,be.encoder,d,"value",f))]}return[y(r)+"="+y(String(g))]}var j,P=[];if(void 0===g)return P;if("comma"===o&&le(g))j=[{value:g.length>0?g.join(",")||null:void 0}];else if(le(u))j=u;else{var x=Object.keys(g);j=p?x.sort(p):x}for(var k=n&&le(g)&&1===g.length?r+"[]":r,R=0;R<j.length;++R){var I=j[R],C="object"==typeof I&&void 0!==I.value?I.value:g[I];if(!a||null!==C){var F=le(g)?"function"==typeof o?o(k,I):k:k+(c?"."+I:"["+I+"]");m.set(e,w);var N=ee();N.set(ge,m),he(P,t(C,F,o,n,i,a,s,u,p,c,l,f,y,h,d,N))}}return P},we=(Object.prototype.hasOwnProperty,Array.isArray,{stringify:function(t,e){var r,o=t,n=function(t){if(!t)return be;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||be.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=ne.default;if(void 0!==t.format){if(!pe.call(ne.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=ne.formatters[r],n=be.filter;return("function"==typeof t.filter||le(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:be.addQueryPrefix,allowDots:void 0===t.allowDots?be.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:be.charsetSentinel,delimiter:void 0===t.delimiter?be.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:be.encode,encoder:"function"==typeof t.encoder?t.encoder:be.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:be.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:be.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:be.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:be.strictNullHandling}}(e);"function"==typeof n.filter?o=(0,n.filter)("",o):le(n.filter)&&(r=n.filter);var i,a=[];if("object"!=typeof o||null===o)return"";i=e&&e.arrayFormat in ce?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=ce[i];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="comma"===s&&e&&e.commaRoundTrip;r||(r=Object.keys(o)),n.sort&&r.sort(n.sort);for(var p=ee(),c=0;c<r.length;++c){var l=r[c];n.skipNulls&&null===o[l]||he(a,ve(o[l],l,s,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var f=a.join(n.delimiter),y=!0===n.addQueryPrefix?"?":"";return n.charsetSentinel&&("iso-8859-1"===n.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),f.length>0?y+f:""}}),_e={type:t=>t.split(/ *; */).shift(),params:t=>{const e={};for(const r of t.split(/ *; */)){const t=r.split(/ *= */),o=t.shift(),n=t.shift();o&&n&&(e[o]=n)}return e},parseLinks:t=>{const e={};for(const r of t.split(/ *, */)){const t=r.split(/ *; */),o=t[0].slice(1,-1);e[t[1].split(/ *= */)[1].slice(1,-1)]=o}return e},isObject:t=>null!==t&&"object"==typeof t};_e.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},_e.mixin=(t,e)=>{for(const r in e)_e.hasOwn(e,r)&&(t[r]=e[r])};var Se,Ae,Ee,Oe=Se={};function Te(){throw new Error("setTimeout has not been defined")}function je(){throw new Error("clearTimeout has not been defined")}function Pe(t){if(Ae===setTimeout)return setTimeout(t,0);if((Ae===Te||!Ae)&&setTimeout)return Ae=setTimeout,setTimeout(t,0);try{return Ae(t,0)}catch(or){try{return Ae.call(null,t,0)}catch(or){return Ae.call(this,t,0)}}}!function(){try{Ae="function"==typeof setTimeout?setTimeout:Te}catch(or){Ae=Te}try{Ee="function"==typeof clearTimeout?clearTimeout:je}catch(or){Ee=je}}();var xe,ke=[],Re=!1,Ie=-1;function Ce(){Re&&xe&&(Re=!1,xe.length?ke=xe.concat(ke):Ie=-1,ke.length&&Fe())}function Fe(){if(!Re){var t=Pe(Ce);Re=!0;for(var e=ke.length;e;){for(xe=ke,ke=[];++Ie<e;)xe&&xe[Ie].run();Ie=-1,e=ke.length}xe=null,Re=!1,function(t){if(Ee===clearTimeout)return clearTimeout(t);if((Ee===je||!Ee)&&clearTimeout)return Ee=clearTimeout,clearTimeout(t);try{Ee(t)}catch(or){try{return Ee.call(null,t)}catch(or){return Ee.call(this,t)}}}(t)}}function Ne(t,e){this.fun=t,this.array=e}function De(){}Oe.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];ke.push(new Ne(t,e)),1!==ke.length||Re||Pe(Fe)},Ne.prototype.run=function(){this.fun.apply(null,this.array)},Oe.title="browser",Oe.browser=!0,Oe.env={},Oe.argv=[],Oe.version="",Oe.versions={},Oe.on=De,Oe.addListener=De,Oe.once=De,Oe.off=De,Oe.removeListener=De,Oe.removeAllListeners=De,Oe.emit=De,Oe.prependListener=De,Oe.prependOnceListener=De,Oe.listeners=function(t){return[]},Oe.binding=function(t){throw new Error("process.binding is not supported")},Oe.cwd=function(){return"/"},Oe.chdir=function(t){throw new Error("process.chdir is not supported")},Oe.umask=function(){return 0};var Ue={};(function(t){(function(){const{isObject:e,hasOwn:r}=_e;function o(){}Ue=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(t){return this._parser=t,this},o.prototype.responseType=function(t){return this._responseType=t,this},o.prototype.serialize=function(t){return this._serializer=t,this},o.prototype.timeout=function(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(const e in t)if(r(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},o.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};const n=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),i=new Set([408,413,429,500,502,503,504,521,522,524]);o.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(r){console.error(r)}if(e&&e.status&&i.has(e.status))return!0;if(t){if(t.code&&n.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(t,e){if(!this._fullfilledPromise){const t=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((e,r)=>{t.on("abort",()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void r(this.timedoutError);const t=new Error("Aborted");t.code="ABORTED",t.status=this.status,t.method=this.method,t.url=this.url,r(t)}),t.end((t,o)=>{t?r(t):e(o)})})}return this._fullfilledPromise.then(t,e)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(t,o){if(e(t)){for(const e in t)r(t,e)&&this.set(e,t[e]);return this}return this._header[t.toLowerCase()]=o,this.header[t]=o,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,o,n){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(e(t)){for(const e in t)r(t,e)&&this.field(e,t[e]);return this}if(Array.isArray(o)){for(const e in o)r(o,e)&&this.field(t,o[e]);return this}if(null==o)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof o&&(o=String(o)),n?this._getFormData().append(t,o,n):this._getFormData().append(t,o),this},o.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(Q.gte(t.version,"v13.0.0")&&Q.lt(t.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");Q.gte(t.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},o.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic "+o(`${t}:${e}`));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},o.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){const o=e(t);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(o&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(o&&e(this._data))for(const e in t)r(t,e)&&(this._data[e]=t[e]);else"string"==typeof t?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${t}`:t:(this._data||"")+t):this._data=t;return!o||this._isHost(t)||n||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},o.prototype._finalizeQueryString=function(){const t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){const t=this.url.indexOf("?");if(t>=0){const e=this.url.slice(t+1).split("&");"function"==typeof this._sort?e.sort(this._sort):e.sort(),this.url=this.url.slice(0,t)+"?"+e.join("&")}}},o.prototype._appendQueryString=()=>{console.warn("Unsupported")},o.prototype._timeoutError=function(t,e,r){if(this._aborted)return;const o=new Error(t+e+"ms exceeded");o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)},o.prototype._setTimeouts=function(){const t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(()=>{t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(()=>{t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}}).call(this)}).call(this,Se);var Me;function Le(){}Me=Le,Le.prototype.get=function(t){return this.header[t.toLowerCase()]},Le.prototype._setHeaderProperties=function(t){const e=t["content-type"]||"";this.type=_e.type(e);const r=_e.params(e);for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=_e.parseLinks(t.link))}catch(o){}},Le.prototype._setStatusProperties=function(t){const e=Math.trunc(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t};var qe={};function Be(){this._defaults=[]}for(const nr of["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"])Be.prototype[nr]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this._defaults.push({fn:nr,args:e}),this};Be.prototype._setDefaults=function(t){for(const e of this._defaults)t[e.fn](...e.args)},qe=Be;var We={};let $e;"undefined"!=typeof window?$e=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),$e=this):$e=self;const{isObject:He,mixin:ze,hasOwn:Ge}=_e;function Je(){}const Ve=We=We=function(t,e){return"function"==typeof e?new We.Request("GET",t).end(e):1===arguments.length?new We.Request("GET",t):new We.Request(t,e)};We.Request=er,Ve.getXHR=()=>{if($e.XMLHttpRequest)return new $e.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const Qe="".trim?t=>t.trim():t=>t.replace(/(^\s*|\s*$)/g,"");function Xe(t){if(!He(t))return t;const e=[];for(const r in t)Ge(t,r)&&Ke(e,r,t[r]);return e.join("&")}function Ke(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))for(const o of r)Ke(t,e,o);else if(He(r))for(const o in r)Ge(r,o)&&Ke(t,`${e}[${o}]`,r[o]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function Ye(t){const e={},r=t.split("&");let o,n;for(let i=0,a=r.length;i<a;++i)-1===(n=(o=r[i]).indexOf("="))?e[decodeURIComponent(o)]="":e[decodeURIComponent(o.slice(0,n))]=decodeURIComponent(o.slice(n+1));return e}function Ze(t){return/[/+]json($|[^-\w])/i.test(t)}function tr(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let{status:e}=this.xhr;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){const e=t.split(/\r?\n/),r={};let o,n,i,a;for(let s=0,u=e.length;s<u;++s)-1!==(o=(n=e[s]).indexOf(":"))&&(i=n.slice(0,o).toLowerCase(),a=Qe(n.slice(o+1)),r[i]=a);return r}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function er(t,e){const r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",()=>{let t,e=null,o=null;try{o=new tr(r)}catch(n){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=n,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(n){t=n}t?(t.original=e,t.response=o,t.status=t.status||o.status,r.callback(t,o)):r.callback(null,o)})}Ve.serializeObject=Xe,Ve.parseString=Ye,Ve.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},Ve.serialize={"application/x-www-form-urlencoded":we.stringify,"application/json":r},Ve.parse={"application/x-www-form-urlencoded":Ye,"application/json":JSON.parse},ze(tr.prototype,Me.prototype),tr.prototype._parseBody=function(t){let e=Ve.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&Ze(this.type)&&(e=Ve.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},tr.prototype.toError=function(){const{req:t}=this,{method:e}=t,{url:r}=t,o=`cannot ${e} ${r} (${this.status})`,n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},Ve.Response=tr,t(er.prototype),ze(er.prototype,Ue.prototype),er.prototype.type=function(t){return this.set("Content-Type",Ve.types[t]||t),this},er.prototype.accept=function(t){return this.set("Accept",Ve.types[t]||t),this},er.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"==typeof e&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});const o=r.encoder?r.encoder:t=>{if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,o)},er.prototype.query=function(t){return"string"!=typeof t&&(t=Xe(t)),t&&this._query.push(t),this},er.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},er.prototype._getFormData=function(){return this._formData||(this._formData=new $e.FormData),this._formData},er.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();const r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},er.prototype.crossDomainError=function(){const t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},er.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},er.prototype.ca=er.prototype.agent,er.prototype.buffer=er.prototype.ca,er.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},er.prototype.pipe=er.prototype.write,er.prototype._isHost=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},er.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||Je,this._finalizeQueryString(),this._end()},er.prototype._setUploadTimeout=function(){const t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(()=>{t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},er.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const t=this;this.xhr=Ve.getXHR();const{xhr:e}=this;let r=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",()=>{const{readyState:r}=e;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4!==r)return;let o;try{o=e.status}catch(n){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")});const o=(e,r)=>{r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(n){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(n){return this.callback(n)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){const t=this._header["content-type"];let e=this._serializer||Ve.serialize[t?t.split(";")[0]:""];!e&&Ze(t)&&(e=Ve.serialize["application/json"]),e&&(r=e(r))}for(const i in this.header)null!==this.header[i]&&Ge(this.header,i)&&e.setRequestHeader(i,this.header[i]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},Ve.agent=()=>new qe;for(const nr of["GET","POST","OPTIONS","PATCH","PUT","DELETE"])qe.prototype[nr.toLowerCase()]=function(t,e){const r=new Ve.Request(nr,t);return this._setDefaults(r),e&&r.end(e),r};function rr(t,e,r){const o=Ve("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}return qe.prototype.del=qe.prototype.delete,Ve.get=(t,e,r)=>{const o=Ve("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},Ve.head=(t,e,r)=>{const o=Ve("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},Ve.options=(t,e,r)=>{const o=Ve("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Ve.del=rr,Ve.delete=rr,Ve.patch=(t,e,r)=>{const o=Ve("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Ve.post=(t,e,r)=>{const o=Ve("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Ve.put=(t,e,r)=>{const o=Ve("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},We}));
|
|
1
|
+
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).superagent=t()}}((function(){var t={exports:{}};function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length},t=t.exports;var r;r=a,a.default=a,a.stable=p,a.stableStringify=p;var o=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(t,e,r,a){var u;void 0===a&&(a=i()),function t(e,r,o,n,i,a,u){var p;if(a+=1,"object"==typeof e&&null!==e){for(p=0;p<n.length;p++)if(n[p]===e)return void s("[Circular]",e,r,i);if(void 0!==u.depthLimit&&a>u.depthLimit)return void s("[...]",e,r,i);if(void 0!==u.edgesLimit&&o+1>u.edgesLimit)return void s("[...]",e,r,i);if(n.push(e),Array.isArray(e))for(p=0;p<e.length;p++)t(e[p],p,p,n,e,a,u);else{var c=Object.keys(e);for(p=0;p<c.length;p++){var l=c[p];t(e[l],l,p,n,e,a,u)}}n.pop()}}(t,"",0,[],void 0,0,a);try{u=0===n.length?JSON.stringify(t,e,r):JSON.stringify(t,c(e),r)}catch(l){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var p=o.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return u}function s(t,e,r,i){var a=Object.getOwnPropertyDescriptor(i,r);void 0!==a.get?a.configurable?(Object.defineProperty(i,r,{value:t}),o.push([i,r,e,a])):n.push([e,r,t]):(i[r]=t,o.push([i,r,e]))}function u(t,e){return t<e?-1:t>e?1:0}function p(t,e,r,a){void 0===a&&(a=i());var p,l=function t(e,r,n,i,a,p,c){var l;if(p+=1,"object"==typeof e&&null!==e){for(l=0;l<i.length;l++)if(i[l]===e)return void s("[Circular]",e,r,a);try{if("function"==typeof e.toJSON)return}catch(d){return}if(void 0!==c.depthLimit&&p>c.depthLimit)return void s("[...]",e,r,a);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void s("[...]",e,r,a);if(i.push(e),Array.isArray(e))for(l=0;l<e.length;l++)t(e[l],l,l,i,e,p,c);else{var f={},y=Object.keys(e).sort(u);for(l=0;l<y.length;l++){var h=y[l];t(e[h],h,l,i,e,p,c),f[h]=e[h]}if(void 0===a)return f;o.push([a,r,e]),a[r]=f}i.pop()}}(t,"",0,[],void 0,0,a)||t;try{p=0===n.length?JSON.stringify(l,e,r):JSON.stringify(l,c(e),r)}catch(y){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var f=o.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return p}function c(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===e&&i[0]===r){r=i[2],n.splice(o,1);break}}return t.call(this,e,r)}}var l="undefined"!=typeof Symbol&&Symbol,f={foo:{}},y=Object,h=Array.prototype.slice,d=Object.prototype.toString,m=Function.prototype.bind||function(t){var e=this;if("function"!=typeof e||"[object Function]"!==d.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,o=h.call(arguments,1),n=Math.max(0,e.length-o.length),i=[],a=0;a<n;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=e.apply(this,o.concat(h.call(arguments)));return Object(n)===n?n:this}return e.apply(t,o.concat(h.call(arguments)))})),e.prototype){var s=function(){};s.prototype=e.prototype,r.prototype=new s,s.prototype=null}return r},b=m.call(Function.call,Object.prototype.hasOwnProperty),g=SyntaxError,v=Function,w=TypeError,_=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(e){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(ir){S=null}var A=function(){throw new w},E=S?function(){try{return A}catch(t){try{return S(arguments,"callee").get}catch(e){return A}}}():A,O="function"==typeof l&&"function"==typeof Symbol&&"symbol"==typeof l("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}(),j={__proto__:f}.foo===f.foo&&!({__proto__:null}instanceof y),T=Object.getPrototypeOf||(j?function(t){return t.__proto__}:null),P={},x="undefined"!=typeof Uint8Array&&T?T(Uint8Array):void 0,k={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":O&&T?T([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&T?T(T([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&T?T((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&T?T((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&T?T(""[Symbol.iterator]()):void 0,"%Symbol%":O?Symbol:void 0,"%SyntaxError%":g,"%ThrowTypeError%":E,"%TypedArray%":x,"%TypeError%":w,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(T)try{null.error}catch(ir){var R=T(T(ir));k["%Error.prototype%"]=R}var I,C={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=m.call(Function.call,Array.prototype.concat),N=m.call(Function.apply,Array.prototype.splice),D=m.call(Function.call,String.prototype.replace),U=m.call(Function.call,String.prototype.slice),M=m.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,B=function(t,e){var r,o=t;if(b(C,o)&&(o="%"+(r=C[o])[0]+"%"),b(k,o)){var n=k[o];if(n===P&&(n=function t(e){var r;if("%AsyncFunction%"===e)r=_("async function () {}");else if("%GeneratorFunction%"===e)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=_("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&T&&(r=T(n.prototype))}return k[e]=r,r}(o)),void 0===n&&!e)throw new w("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new g("intrinsic "+t+" does not exist!")},W=function(t,e){if("string"!=typeof t||0===t.length)throw new w("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new w('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,t))throw new g("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=U(t,0,1),r=U(t,-1);if("%"===e&&"%"!==r)throw new g("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new g("invalid intrinsic syntax, expected opening `%`");var o=[];return D(t,L,(function(t,e,r,n){o[o.length]=r?D(n,q,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=B("%"+o+"%",e),i=n.name,a=n.value,s=!1,u=n.alias;u&&(o=u[0],N(r,F([0,1],u)));for(var p=1,c=!0;p<r.length;p+=1){var l=r[p],f=U(l,0,1),y=U(l,-1);if(('"'===f||"'"===f||"`"===f||'"'===y||"'"===y||"`"===y)&&f!==y)throw new g("property names with quotes must have matching quotes");if("constructor"!==l&&c||(s=!0),b(k,i="%"+(o+="."+l)+"%"))a=k[i];else if(null!=a){if(!(l in a)){if(!e)throw new w("base intrinsic for "+t+" exists, but the property is not available.");return}if(S&&p+1>=r.length){var h=S(a,l);a=(c=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[l]}else c=b(a,l),a=a[l];c&&!s&&(k[i]=a)}}return a},$=W("%Function.prototype.apply%"),H=W("%Function.prototype.call%"),z=W("%Reflect.apply%",!0)||m.call(H,$),G=W("%Object.getOwnPropertyDescriptor%",!0),J=W("%Object.defineProperty%",!0),V=W("%Math.max%");if(J)try{J({},"a",{value:1})}catch(ir){J=null}I=function(t){var e=z(m,H,arguments);return G&&J&&G(e,"length").configurable&&J(e,"length",{value:1+V(0,t.length-(arguments.length-1))}),e};var Q=function(){return z(m,$,arguments)};J?J(I,"apply",{value:Q}):I.apply=Q;var X=I(W("String.prototype.indexOf")),K=function(t,e){var r=W(t,!!e);return"function"==typeof r&&X(t,".prototype.")>-1?I(r):r},Y={},Z="function"==typeof Map&&Map.prototype,tt=Object.getOwnPropertyDescriptor&&Z?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,et=Z&&tt&&"function"==typeof tt.get?tt.get:null,rt=Z&&Map.prototype.forEach,ot="function"==typeof Set&&Set.prototype,nt=Object.getOwnPropertyDescriptor&&ot?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,it=ot&&nt&&"function"==typeof nt.get?nt.get:null,at=ot&&Set.prototype.forEach,st="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,ut="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,pt="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,ct=Boolean.prototype.valueOf,lt=Object.prototype.toString,ft=Function.prototype.toString,yt=String.prototype.match,ht=String.prototype.slice,dt=String.prototype.replace,mt=String.prototype.toUpperCase,bt=String.prototype.toLowerCase,gt=RegExp.prototype.test,vt=Array.prototype.concat,wt=Array.prototype.join,_t=Array.prototype.slice,St=Math.floor,At="function"==typeof BigInt?BigInt.prototype.valueOf:null,Et=Object.getOwnPropertySymbols,Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,jt="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Tt="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,Pt=Object.prototype.propertyIsEnumerable,xt=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function kt(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||gt.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-St(-t):St(t);if(o!==t){var n=String(o),i=ht.call(e,n.length+1);return dt.call(n,r,"$&_")+"."+dt.call(dt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return dt.call(e,r,"$&_")}var Rt=Y.custom,It=Ut(Rt)?Rt:null;function Ct(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function Ft(t){return dt.call(String(t),/"/g,""")}function Nt(t){return!("[object Array]"!==qt(t)||Tt&&"object"==typeof t&&Tt in t)}function Dt(t){return!("[object RegExp]"!==qt(t)||Tt&&"object"==typeof t&&Tt in t)}function Ut(t){if(jt)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!Ot)return!1;try{return Ot.call(t),!0}catch(ir){}return!1}var Mt=Object.prototype.hasOwnProperty||function(t){return t in this};function Lt(t,e){return Mt.call(t,e)}function qt(t){return lt.call(t)}function Bt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function Wt(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+mt.call(e.toString(16))}function $t(t){return"Object("+t+")"}function Ht(t){return t+" { ? }"}function zt(t,e,r,o){return t+" ("+e+") {"+(o?Gt(r,o):wt.call(r,", "))+"}"}function Gt(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+wt.call(t,","+r)+"\n"+e.prev}function Jt(t,e){var r=Nt(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Lt(t,n)?e(t[n],t):""}var i,a="function"==typeof Et?Et(t):[];if(jt){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)Lt(t,u)&&(r&&String(Number(u))===u&&u<t.length||jt&&i["$"+u]instanceof Symbol||(gt.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if("function"==typeof Et)for(var p=0;p<a.length;p++)Pt.call(t,a[p])&&o.push("["+e(a[p])+"]: "+e(t[a[p]],t));return o}var Vt=W("%TypeError%"),Qt=W("%WeakMap%",!0),Xt=W("%Map%",!0),Kt=K("WeakMap.prototype.get",!0),Yt=K("WeakMap.prototype.set",!0),Zt=K("WeakMap.prototype.has",!0),te=K("Map.prototype.get",!0),ee=K("Map.prototype.set",!0),re=K("Map.prototype.has",!0),oe=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r},ne=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new Vt("Side channel does not contain "+function t(e,r,o,n){var i=r||{};if(Lt(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Lt(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!Lt(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Lt(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Lt(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(ht.call(e,0,r.maxStringLength),r)+n}return Ct(dt.call(dt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wt),"single",r)}(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var u=String(e);return s?kt(e,u):u}if("bigint"==typeof e){var p=String(e)+"n";return s?kt(e,p):p}var c=void 0===i.depth?5:i.depth;if(void 0===o&&(o=0),o>=c&&c>0&&"object"==typeof e)return Nt(e)?"[Array]":"[Object]";var l,f=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=wt.call(Array(t.indent+1)," ")}return{base:r,prev:wt.call(Array(e+1),r)}}(i,o);if(void 0===n)n=[];else if(Bt(n,e)>=0)return"[Circular]";function y(e,r,a){if(r&&(n=_t.call(n)).push(r),a){var s={depth:i.depth};return Lt(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),t(e,s,o+1,n)}return t(e,i,o+1,n)}if("function"==typeof e&&!Dt(e)){var h=function(t){if(t.name)return t.name;var e=yt.call(ft.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),d=Jt(e,y);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(d.length>0?" { "+wt.call(d,", ")+" }":"")}if(Ut(e)){var m=jt?dt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ot.call(e);return"object"!=typeof e||jt?m:$t(m)}if((l=e)&&"object"==typeof l&&("undefined"!=typeof HTMLElement&&l instanceof HTMLElement||"string"==typeof l.nodeName&&"function"==typeof l.getAttribute)){for(var b="<"+bt.call(String(e.nodeName)),g=e.attributes||[],v=0;v<g.length;v++)b+=" "+g[v].name+"="+Ct(Ft(g[v].value),"double",i);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+"</"+bt.call(String(e.nodeName))+">"}if(Nt(e)){if(0===e.length)return"[]";var w=Jt(e,y);return f&&!function(t){for(var e=0;e<t.length;e++)if(Bt(t[e],"\n")>=0)return!1;return!0}(w)?"["+Gt(w,f)+"]":"[ "+wt.call(w,", ")+" ]"}if(function(t){return!("[object Error]"!==qt(t)||Tt&&"object"==typeof t&&Tt in t)}(e)){var _=Jt(e,y);return"cause"in Error.prototype||!("cause"in e)||Pt.call(e,"cause")?0===_.length?"["+String(e)+"]":"{ ["+String(e)+"] "+wt.call(_,", ")+" }":"{ ["+String(e)+"] "+wt.call(vt.call("[cause]: "+y(e.cause),_),", ")+" }"}if("object"==typeof e&&a){if(It&&"function"==typeof e[It]&&Y)return Y(e,{depth:c-o});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!et||!t||"object"!=typeof t)return!1;try{et.call(t);try{it.call(t)}catch(b){return!0}return t instanceof Map}catch(ir){}return!1}(e)){var S=[];return rt&&rt.call(e,(function(t,r){S.push(y(r,e,!0)+" => "+y(t,e))})),zt("Map",et.call(e),S,f)}if(function(t){if(!it||!t||"object"!=typeof t)return!1;try{it.call(t);try{et.call(t)}catch(e){return!0}return t instanceof Set}catch(ir){}return!1}(e)){var A=[];return at&&at.call(e,(function(t){A.push(y(t,e))})),zt("Set",it.call(e),A,f)}if(function(t){if(!st||!t||"object"!=typeof t)return!1;try{st.call(t,st);try{ut.call(t,ut)}catch(b){return!0}return t instanceof WeakMap}catch(ir){}return!1}(e))return Ht("WeakMap");if(function(t){if(!ut||!t||"object"!=typeof t)return!1;try{ut.call(t,ut);try{st.call(t,st)}catch(b){return!0}return t instanceof WeakSet}catch(ir){}return!1}(e))return Ht("WeakSet");if(function(t){if(!pt||!t||"object"!=typeof t)return!1;try{return pt.call(t),!0}catch(ir){}return!1}(e))return Ht("WeakRef");if(function(t){return!("[object Number]"!==qt(t)||Tt&&"object"==typeof t&&Tt in t)}(e))return $t(y(Number(e)));if(function(t){if(!t||"object"!=typeof t||!At)return!1;try{return At.call(t),!0}catch(ir){}return!1}(e))return $t(y(At.call(e)));if(function(t){return!("[object Boolean]"!==qt(t)||Tt&&"object"==typeof t&&Tt in t)}(e))return $t(ct.call(e));if(function(t){return!("[object String]"!==qt(t)||Tt&&"object"==typeof t&&Tt in t)}(e))return $t(y(String(e)));if(!function(t){return!("[object Date]"!==qt(t)||Tt&&"object"==typeof t&&Tt in t)}(e)&&!Dt(e)){var E=Jt(e,y),O=xt?xt(e)===Object.prototype:e instanceof Object||e.constructor===Object,j=e instanceof Object?"":"null prototype",T=!O&&Tt&&Object(e)===e&&Tt in e?ht.call(qt(e),8,-1):j?"Object":"",P=(O||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(T||j?"["+wt.call(vt.call([],T||[],j||[]),": ")+"] ":"");return 0===E.length?P+"{}":f?P+"{"+Gt(E,f)+"}":P+"{ "+wt.call(E,", ")+" }"}return String(e)}(t))},get:function(o){if(Qt&&o&&("object"==typeof o||"function"==typeof o)){if(t)return Kt(t,o)}else if(Xt){if(e)return te(e,o)}else if(r)return function(t,e){var r=oe(t,e);return r&&r.value}(r,o)},has:function(o){if(Qt&&o&&("object"==typeof o||"function"==typeof o)){if(t)return Zt(t,o)}else if(Xt){if(e)return re(e,o)}else if(r)return function(t,e){return!!oe(t,e)}(r,o);return!1},set:function(o,n){Qt&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new Qt),Yt(t,o,n)):Xt?(e||(e=new Xt),ee(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=oe(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o},ie=String.prototype.replace,ae=/%20/g,se={default:"RFC3986",formatters:{RFC1738:function(t){return ie.call(t,ae,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:"RFC3986"},ue=Object.prototype.hasOwnProperty,pe=Array.isArray,ce=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),le={combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],i=n.obj[n.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],p=i[u];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:i,prop:u}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(pe(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(ir){return o}},encode:function(t,e,r,o,n){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===r)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var u=i.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||n===se.RFC1738&&(40===u||41===u)?a+=i.charAt(s):u<128?a+=ce[u]:u<2048?a+=ce[192|u>>6]+ce[128|63&u]:u<55296||u>=57344?a+=ce[224|u>>12]+ce[128|u>>6&63]+ce[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(s)),a+=ce[240|u>>18]+ce[128|u>>12&63]+ce[128|u>>6&63]+ce[128|63&u])}return a},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(pe(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(pe(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!ue.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var n=e;return pe(e)&&!pe(r)&&(n=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r}(e,o)),pe(e)&&pe(r)?(r.forEach((function(r,n){if(ue.call(e,n)){var i=e[n];i&&"object"==typeof i&&r&&"object"==typeof r?e[n]=t(i,r,o):e.push(r)}else e[n]=r})),e):Object.keys(r).reduce((function(e,n){var i=r[n];return ue.call(e,n)?e[n]=t(e[n],i,o):e[n]=i,e}),n)}},fe=Object.prototype.hasOwnProperty,ye={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},he=Array.isArray,de=Array.prototype.push,me=function(t,e){de.apply(t,he(e)?e:[e])},be=Date.prototype.toISOString,ge=se.default,ve={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:le.encode,encodeValuesOnly:!1,format:ge,formatter:se.formatters[ge],indices:!1,serializeDate:function(t){return be.call(t)},skipNulls:!1,strictNullHandling:!1},we={},_e=function t(e,r,o,n,i,a,s,u,p,c,l,f,y,h,d,m){for(var b,g=e,v=m,w=0,_=!1;void 0!==(v=v.get(we))&&!_;){var S=v.get(e);if(w+=1,void 0!==S){if(S===w)throw new RangeError("Cyclic object value");_=!0}void 0===v.get(we)&&(w=0)}if("function"==typeof u?g=u(r,g):g instanceof Date?g=l(g):"comma"===o&&he(g)&&(g=le.maybeMap(g,(function(t){return t instanceof Date?l(t):t}))),null===g){if(i)return s&&!h?s(r,ve.encoder,d,"key",f):r;g=""}if("string"==typeof(b=g)||"number"==typeof b||"boolean"==typeof b||"symbol"==typeof b||"bigint"==typeof b||le.isBuffer(g))return s?[y(h?r:s(r,ve.encoder,d,"key",f))+"="+y(s(g,ve.encoder,d,"value",f))]:[y(r)+"="+y(String(g))];var A,E=[];if(void 0===g)return E;if("comma"===o&&he(g))h&&s&&(g=le.maybeMap(g,s)),A=[{value:g.length>0?g.join(",")||null:void 0}];else if(he(u))A=u;else{var O=Object.keys(g);A=p?O.sort(p):O}for(var j=n&&he(g)&&1===g.length?r+"[]":r,T=0;T<A.length;++T){var P=A[T],x="object"==typeof P&&void 0!==P.value?P.value:g[P];if(!a||null!==x){var k=he(g)?"function"==typeof o?o(j,P):j:j+(c?"."+P:"["+P+"]");m.set(e,w);var R=ne();R.set(we,m),me(E,t(x,k,o,n,i,a,"comma"===o&&h&&he(g)?null:s,u,p,c,l,f,y,h,d,R))}}return E},Se=(Object.prototype.hasOwnProperty,Array.isArray,{stringify:function(t,e){var r,o=t,n=function(t){if(!t)return ve;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||ve.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=se.default;if(void 0!==t.format){if(!fe.call(se.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=se.formatters[r],n=ve.filter;return("function"==typeof t.filter||he(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:ve.addQueryPrefix,allowDots:void 0===t.allowDots?ve.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:ve.charsetSentinel,delimiter:void 0===t.delimiter?ve.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:ve.encode,encoder:"function"==typeof t.encoder?t.encoder:ve.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:ve.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:ve.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:ve.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:ve.strictNullHandling}}(e);"function"==typeof n.filter?o=(0,n.filter)("",o):he(n.filter)&&(r=n.filter);var i,a=[];if("object"!=typeof o||null===o)return"";i=e&&e.arrayFormat in ye?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var s=ye[i];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="comma"===s&&e&&e.commaRoundTrip;r||(r=Object.keys(o)),n.sort&&r.sort(n.sort);for(var p=ne(),c=0;c<r.length;++c){var l=r[c];n.skipNulls&&null===o[l]||me(a,_e(o[l],l,s,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var f=a.join(n.delimiter),y=!0===n.addQueryPrefix?"?":"";return n.charsetSentinel&&("iso-8859-1"===n.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),f.length>0?y+f:""}}),Ae={type:t=>t.split(/ *; */).shift(),params:t=>{const e={};for(const r of t.split(/ *; */)){const t=r.split(/ *= */),o=t.shift(),n=t.shift();o&&n&&(e[o]=n)}return e},parseLinks:t=>{const e={};for(const r of t.split(/ *, */)){const t=r.split(/ *; */),o=t[0].slice(1,-1);e[t[1].split(/ *= */)[1].slice(1,-1)]=o}return e},isObject:t=>null!==t&&"object"==typeof t};Ae.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},Ae.mixin=(t,e)=>{for(const r in e)Ae.hasOwn(e,r)&&(t[r]=e[r])};var Ee,Oe,je,Te=Ee={};function Pe(){throw new Error("setTimeout has not been defined")}function xe(){throw new Error("clearTimeout has not been defined")}function ke(t){if(Oe===setTimeout)return setTimeout(t,0);if((Oe===Pe||!Oe)&&setTimeout)return Oe=setTimeout,setTimeout(t,0);try{return Oe(t,0)}catch(ir){try{return Oe.call(null,t,0)}catch(ir){return Oe.call(this,t,0)}}}!function(){try{Oe="function"==typeof setTimeout?setTimeout:Pe}catch(ir){Oe=Pe}try{je="function"==typeof clearTimeout?clearTimeout:xe}catch(ir){je=xe}}();var Re,Ie=[],Ce=!1,Fe=-1;function Ne(){Ce&&Re&&(Ce=!1,Re.length?Ie=Re.concat(Ie):Fe=-1,Ie.length&&De())}function De(){if(!Ce){var t=ke(Ne);Ce=!0;for(var e=Ie.length;e;){for(Re=Ie,Ie=[];++Fe<e;)Re&&Re[Fe].run();Fe=-1,e=Ie.length}Re=null,Ce=!1,function(t){if(je===clearTimeout)return clearTimeout(t);if((je===xe||!je)&&clearTimeout)return je=clearTimeout,clearTimeout(t);try{je(t)}catch(ir){try{return je.call(null,t)}catch(ir){return je.call(this,t)}}}(t)}}function Ue(t,e){this.fun=t,this.array=e}function Me(){}Te.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Ie.push(new Ue(t,e)),1!==Ie.length||Ce||ke(De)},Ue.prototype.run=function(){this.fun.apply(null,this.array)},Te.title="browser",Te.browser=!0,Te.env={},Te.argv=[],Te.version="",Te.versions={},Te.on=Me,Te.addListener=Me,Te.once=Me,Te.off=Me,Te.removeListener=Me,Te.removeAllListeners=Me,Te.emit=Me,Te.prependListener=Me,Te.prependOnceListener=Me,Te.listeners=function(t){return[]},Te.binding=function(t){throw new Error("process.binding is not supported")},Te.cwd=function(){return"/"},Te.chdir=function(t){throw new Error("process.chdir is not supported")},Te.umask=function(){return 0};var Le={};(function(t){(function(){const{isObject:e,hasOwn:r}=Ae;function o(){}Le=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(t){return this._parser=t,this},o.prototype.responseType=function(t){return this._responseType=t,this},o.prototype.serialize=function(t){return this._serializer=t,this},o.prototype.timeout=function(t){if(!t||"object"!=typeof t)return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(const e in t)if(r(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},o.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};const n=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),i=new Set([408,413,429,500,502,503,504,521,522,524]);o.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{const r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(r){console.error(r)}if(e&&e.status&&i.has(e.status))return!0;if(t){if(t.code&&n.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(t,e){if(!this._fullfilledPromise){const t=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((e,r)=>{t.on("abort",()=>{if(this._maxRetries&&this._maxRetries>this._retries)return;if(this.timedout&&this.timedoutError)return void r(this.timedoutError);const t=new Error("Aborted");t.code="ABORTED",t.status=this.status,t.method=this.method,t.url=this.url,r(t)}),t.end((t,o)=>{t?r(t):e(o)})})}return this._fullfilledPromise.then(t,e)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(t,o){if(e(t)){for(const e in t)r(t,e)&&this.set(e,t[e]);return this}return this._header[t.toLowerCase()]=o,this.header[t]=o,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,o,n){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(e(t)){for(const e in t)r(t,e)&&this.field(e,t[e]);return this}if(Array.isArray(o)){for(const e in o)r(o,e)&&this.field(t,o[e]);return this}if(null==o)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof o&&(o=String(o)),n?this._getFormData().append(t,o,n):this._getFormData().append(t,o),this},o.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(Y.gte(t.version,"v13.0.0")&&Y.lt(t.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},o.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic "+o(`${t}:${e}`));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},o.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){const o=e(t);let n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(o&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(o&&e(this._data))for(const e in t){if("bigint"==typeof t[e])throw new Error("Cannot serialize BigInt value to json");r(t,e)&&(this._data[e]=t[e])}else{if("bigint"==typeof t)throw new Error("Cannot send value of type BigInt");"string"==typeof t?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===n?this._data?`${this._data}&${t}`:t:(this._data||"")+t):this._data=t}return!o||this._isHost(t)||n||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},o.prototype._finalizeQueryString=function(){const t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){const t=this.url.indexOf("?");if(t>=0){const e=this.url.slice(t+1).split("&");"function"==typeof this._sort?e.sort(this._sort):e.sort(),this.url=this.url.slice(0,t)+"?"+e.join("&")}}},o.prototype._appendQueryString=()=>{console.warn("Unsupported")},o.prototype._timeoutError=function(t,e,r){if(this._aborted)return;const o=new Error(t+e+"ms exceeded");o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)},o.prototype._setTimeouts=function(){const t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(()=>{t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(()=>{t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}}).call(this)}).call(this,Ee);var qe;function Be(){}qe=Be,Be.prototype.get=function(t){return this.header[t.toLowerCase()]},Be.prototype._setHeaderProperties=function(t){const e=t["content-type"]||"";this.type=Ae.type(e);const r=Ae.params(e);for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=Ae.parseLinks(t.link))}catch(o){}},Be.prototype._setStatusProperties=function(t){const e=Math.trunc(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t};var We={};function $e(){this._defaults=[]}for(const ar of["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"])$e.prototype[ar]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this._defaults.push({fn:ar,args:e}),this};$e.prototype._setDefaults=function(t){for(const e of this._defaults)t[e.fn](...e.args)},We=$e;var He={};let ze;"undefined"!=typeof window?ze=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),ze=this):ze=self;const{isObject:Ge,mixin:Je,hasOwn:Ve}=Ae;function Qe(){}const Xe=He=He=function(t,e){return"function"==typeof e?new He.Request("GET",t).end(e):1===arguments.length?new He.Request("GET",t):new He.Request(t,e)};He.Request=or,Xe.getXHR=()=>{if(ze.XMLHttpRequest)return new ze.XMLHttpRequest;throw new Error("Browser-only version of superagent could not find XHR")};const Ke="".trim?t=>t.trim():t=>t.replace(/(^\s*|\s*$)/g,"");function Ye(t){if(!Ge(t))return t;const e=[];for(const r in t)Ve(t,r)&&Ze(e,r,t[r]);return e.join("&")}function Ze(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))for(const o of r)Ze(t,e,o);else if(Ge(r))for(const o in r)Ve(r,o)&&Ze(t,`${e}[${o}]`,r[o]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function tr(t){const e={},r=t.split("&");let o,n;for(let i=0,a=r.length;i<a;++i)-1===(n=(o=r[i]).indexOf("="))?e[decodeURIComponent(o)]="":e[decodeURIComponent(o.slice(0,n))]=decodeURIComponent(o.slice(n+1));return e}function er(t){return/[/+]json($|[^-\w])/i.test(t)}function rr(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;let{status:e}=this.xhr;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){const e=t.split(/\r?\n/),r={};let o,n,i,a;for(let s=0,u=e.length;s<u;++s)-1!==(o=(n=e[s]).indexOf(":"))&&(i=n.slice(0,o).toLowerCase(),a=Ke(n.slice(o+1)),r[i]=a);return r}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function or(t,e){const r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",()=>{let t,e=null,o=null;try{o=new rr(r)}catch(n){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=n,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(n){t=n}t?(t.original=e,t.response=o,t.status=t.status||o.status,r.callback(t,o)):r.callback(null,o)})}Xe.serializeObject=Ye,Xe.parseString=tr,Xe.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},Xe.serialize={"application/x-www-form-urlencoded":Se.stringify,"application/json":r},Xe.parse={"application/x-www-form-urlencoded":tr,"application/json":JSON.parse},Je(rr.prototype,qe.prototype),rr.prototype._parseBody=function(t){let e=Xe.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&er(this.type)&&(e=Xe.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},rr.prototype.toError=function(){const{req:t}=this,{method:e}=t,{url:r}=t,o=`cannot ${e} ${r} (${this.status})`,n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},Xe.Response=rr,t(or.prototype),Je(or.prototype,Le.prototype),or.prototype.type=function(t){return this.set("Content-Type",Xe.types[t]||t),this},or.prototype.accept=function(t){return this.set("Accept",Xe.types[t]||t),this},or.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"==typeof e&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});const o=r.encoder?r.encoder:t=>{if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,o)},or.prototype.query=function(t){return"string"!=typeof t&&(t=Ye(t)),t&&this._query.push(t),this},or.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},or.prototype._getFormData=function(){return this._formData||(this._formData=new ze.FormData),this._formData},or.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();const r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},or.prototype.crossDomainError=function(){const t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},or.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},or.prototype.ca=or.prototype.agent,or.prototype.buffer=or.prototype.ca,or.prototype.write=()=>{throw new Error("Streaming is not supported in browser version of superagent")},or.prototype.pipe=or.prototype.write,or.prototype._isHost=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},or.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||Qe,this._finalizeQueryString(),this._end()},or.prototype._setUploadTimeout=function(){const t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(()=>{t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},or.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));const t=this;this.xhr=Xe.getXHR();const{xhr:e}=this;let r=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",()=>{const{readyState:r}=e;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4!==r)return;let o;try{o=e.status}catch(n){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")});const o=(e,r)=>{r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(n){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(n){return this.callback(n)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){const t=this._header["content-type"];let e=this._serializer||Xe.serialize[t?t.split(";")[0]:""];!e&&er(t)&&(e=Xe.serialize["application/json"]),e&&(r=e(r))}for(const i in this.header)null!==this.header[i]&&Ve(this.header,i)&&e.setRequestHeader(i,this.header[i]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},Xe.agent=()=>new We;for(const ar of["GET","POST","OPTIONS","PATCH","PUT","DELETE"])We.prototype[ar.toLowerCase()]=function(t,e){const r=new Xe.Request(ar,t);return this._setDefaults(r),e&&r.end(e),r};function nr(t,e,r){const o=Xe("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}return We.prototype.del=We.prototype.delete,Xe.get=(t,e,r)=>{const o=Xe("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},Xe.head=(t,e,r)=>{const o=Xe("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},Xe.options=(t,e,r)=>{const o=Xe("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Xe.del=nr,Xe.delete=nr,Xe.patch=(t,e,r)=>{const o=Xe("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Xe.post=(t,e,r)=>{const o=Xe("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},Xe.put=(t,e,r)=>{const o=Xe("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},He}));
|
package/lib/agent-base.js
CHANGED
|
@@ -35,4 +35,4 @@ Agent.prototype._setDefaults = function (request) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
module.exports = Agent;
|
|
38
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
38
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJBZ2VudCIsIl9kZWZhdWx0cyIsIl9pIiwiX2FyciIsImxlbmd0aCIsImZuIiwicHJvdG90eXBlIiwiX2xlbiIsImFyZ3VtZW50cyIsImFyZ3MiLCJBcnJheSIsIl9rZXkiLCJwdXNoIiwiX3NldERlZmF1bHRzIiwicmVxdWVzdCIsIl9pdGVyYXRvciIsIl9jcmVhdGVGb3JPZkl0ZXJhdG9ySGVscGVyIiwiX3N0ZXAiLCJzIiwibiIsImRvbmUiLCJkZWYiLCJ2YWx1ZSIsImVyciIsImUiLCJmIiwibW9kdWxlIiwiZXhwb3J0cyJdLCJzb3VyY2VzIjpbIi4uL3NyYy9hZ2VudC1iYXNlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIEFnZW50KCkge1xuICB0aGlzLl9kZWZhdWx0cyA9IFtdO1xufVxuXG5mb3IgKGNvbnN0IGZuIG9mIFtcbiAgJ3VzZScsXG4gICdvbicsXG4gICdvbmNlJyxcbiAgJ3NldCcsXG4gICdxdWVyeScsXG4gICd0eXBlJyxcbiAgJ2FjY2VwdCcsXG4gICdhdXRoJyxcbiAgJ3dpdGhDcmVkZW50aWFscycsXG4gICdzb3J0UXVlcnknLFxuICAncmV0cnknLFxuICAnb2snLFxuICAncmVkaXJlY3RzJyxcbiAgJ3RpbWVvdXQnLFxuICAnYnVmZmVyJyxcbiAgJ3NlcmlhbGl6ZScsXG4gICdwYXJzZScsXG4gICdjYScsXG4gICdrZXknLFxuICAncGZ4JyxcbiAgJ2NlcnQnLFxuICAnZGlzYWJsZVRMU0NlcnRzJ1xuXSkge1xuICAvLyBEZWZhdWx0IHNldHRpbmcgZm9yIGFsbCByZXF1ZXN0cyBmcm9tIHRoaXMgYWdlbnRcbiAgQWdlbnQucHJvdG90eXBlW2ZuXSA9IGZ1bmN0aW9uICguLi5hcmdzKSB7XG4gICAgdGhpcy5fZGVmYXVsdHMucHVzaCh7IGZuLCBhcmdzIH0pO1xuICAgIHJldHVybiB0aGlzO1xuICB9O1xufVxuXG5BZ2VudC5wcm90b3R5cGUuX3NldERlZmF1bHRzID0gZnVuY3Rpb24gKHJlcXVlc3QpIHtcbiAgZm9yIChjb25zdCBkZWYgb2YgdGhpcy5fZGVmYXVsdHMpIHtcbiAgICByZXF1ZXN0W2RlZi5mbl0oLi4uZGVmLmFyZ3MpO1xuICB9XG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IEFnZW50O1xuIl0sIm1hcHBpbmdzIjoiOzs7OztBQUFBLFNBQVNBLEtBQUtBLENBQUEsRUFBRztFQUNmLElBQUksQ0FBQ0MsU0FBUyxHQUFHLEVBQUU7QUFDckI7QUFFQSxTQUFBQyxFQUFBLE1BQUFDLElBQUEsR0FBaUIsQ0FDZixLQUFLLEVBQ0wsSUFBSSxFQUNKLE1BQU0sRUFDTixLQUFLLEVBQ0wsT0FBTyxFQUNQLE1BQU0sRUFDTixRQUFRLEVBQ1IsTUFBTSxFQUNOLGlCQUFpQixFQUNqQixXQUFXLEVBQ1gsT0FBTyxFQUNQLElBQUksRUFDSixXQUFXLEVBQ1gsU0FBUyxFQUNULFFBQVEsRUFDUixXQUFXLEVBQ1gsT0FBTyxFQUNQLElBQUksRUFDSixLQUFLLEVBQ0wsS0FBSyxFQUNMLE1BQU0sRUFDTixpQkFBaUIsQ0FDbEIsRUFBQUQsRUFBQSxHQUFBQyxJQUFBLENBQUFDLE1BQUEsRUFBQUYsRUFBQSxJQUFFO0VBdkJFLE1BQU1HLEVBQUUsR0FBQUYsSUFBQSxDQUFBRCxFQUFBO0VBd0JYO0VBQ0FGLEtBQUssQ0FBQ00sU0FBUyxDQUFDRCxFQUFFLENBQUMsR0FBRyxZQUFtQjtJQUFBLFNBQUFFLElBQUEsR0FBQUMsU0FBQSxDQUFBSixNQUFBLEVBQU5LLElBQUksT0FBQUMsS0FBQSxDQUFBSCxJQUFBLEdBQUFJLElBQUEsTUFBQUEsSUFBQSxHQUFBSixJQUFBLEVBQUFJLElBQUE7TUFBSkYsSUFBSSxDQUFBRSxJQUFBLElBQUFILFNBQUEsQ0FBQUcsSUFBQTtJQUFBO0lBQ3JDLElBQUksQ0FBQ1YsU0FBUyxDQUFDVyxJQUFJLENBQUM7TUFBRVAsRUFBRTtNQUFFSTtJQUFLLENBQUMsQ0FBQztJQUNqQyxPQUFPLElBQUk7RUFDYixDQUFDO0FBQ0g7QUFFQVQsS0FBSyxDQUFDTSxTQUFTLENBQUNPLFlBQVksR0FBRyxVQUFVQyxPQUFPLEVBQUU7RUFBQSxJQUFBQyxTQUFBLEdBQUFDLDBCQUFBLENBQzlCLElBQUksQ0FBQ2YsU0FBUztJQUFBZ0IsS0FBQTtFQUFBO0lBQWhDLEtBQUFGLFNBQUEsQ0FBQUcsQ0FBQSxNQUFBRCxLQUFBLEdBQUFGLFNBQUEsQ0FBQUksQ0FBQSxJQUFBQyxJQUFBLEdBQWtDO01BQUEsTUFBdkJDLEdBQUcsR0FBQUosS0FBQSxDQUFBSyxLQUFBO01BQ1pSLE9BQU8sQ0FBQ08sR0FBRyxDQUFDaEIsRUFBRSxDQUFDLENBQUMsR0FBR2dCLEdBQUcsQ0FBQ1osSUFBSSxDQUFDO0lBQzlCO0VBQUMsU0FBQWMsR0FBQTtJQUFBUixTQUFBLENBQUFTLENBQUEsQ0FBQUQsR0FBQTtFQUFBO0lBQUFSLFNBQUEsQ0FBQVUsQ0FBQTtFQUFBO0FBQ0gsQ0FBQztBQUVEQyxNQUFNLENBQUNDLE9BQU8sR0FBRzNCLEtBQUsifQ==
|