@gearbox-protocol/deploy-tools 6.0.0-next.1 → 6.1.0
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/index.mjs +573 -741
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -65780,76 +65780,6 @@ var require_form_data = __commonJS({
|
|
|
65780
65780
|
}
|
|
65781
65781
|
});
|
|
65782
65782
|
|
|
65783
|
-
// ../../node_modules/proxy-from-env/index.js
|
|
65784
|
-
var require_proxy_from_env = __commonJS({
|
|
65785
|
-
"../../node_modules/proxy-from-env/index.js"(exports) {
|
|
65786
|
-
"use strict";
|
|
65787
|
-
var parseUrl2 = __require("url").parse;
|
|
65788
|
-
var DEFAULT_PORTS = {
|
|
65789
|
-
ftp: 21,
|
|
65790
|
-
gopher: 70,
|
|
65791
|
-
http: 80,
|
|
65792
|
-
https: 443,
|
|
65793
|
-
ws: 80,
|
|
65794
|
-
wss: 443
|
|
65795
|
-
};
|
|
65796
|
-
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
65797
|
-
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
65798
|
-
};
|
|
65799
|
-
function getProxyForUrl(url2) {
|
|
65800
|
-
var parsedUrl = typeof url2 === "string" ? parseUrl2(url2) : url2 || {};
|
|
65801
|
-
var proto = parsedUrl.protocol;
|
|
65802
|
-
var hostname3 = parsedUrl.host;
|
|
65803
|
-
var port = parsedUrl.port;
|
|
65804
|
-
if (typeof hostname3 !== "string" || !hostname3 || typeof proto !== "string") {
|
|
65805
|
-
return "";
|
|
65806
|
-
}
|
|
65807
|
-
proto = proto.split(":", 1)[0];
|
|
65808
|
-
hostname3 = hostname3.replace(/:\d*$/, "");
|
|
65809
|
-
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
|
65810
|
-
if (!shouldProxy(hostname3, port)) {
|
|
65811
|
-
return "";
|
|
65812
|
-
}
|
|
65813
|
-
var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
|
65814
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
65815
|
-
proxy = proto + "://" + proxy;
|
|
65816
|
-
}
|
|
65817
|
-
return proxy;
|
|
65818
|
-
}
|
|
65819
|
-
function shouldProxy(hostname3, port) {
|
|
65820
|
-
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
|
65821
|
-
if (!NO_PROXY) {
|
|
65822
|
-
return true;
|
|
65823
|
-
}
|
|
65824
|
-
if (NO_PROXY === "*") {
|
|
65825
|
-
return false;
|
|
65826
|
-
}
|
|
65827
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
65828
|
-
if (!proxy) {
|
|
65829
|
-
return true;
|
|
65830
|
-
}
|
|
65831
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
65832
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
65833
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
65834
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
65835
|
-
return true;
|
|
65836
|
-
}
|
|
65837
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
65838
|
-
return hostname3 !== parsedProxyHostname;
|
|
65839
|
-
}
|
|
65840
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
|
65841
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
65842
|
-
}
|
|
65843
|
-
return !stringEndsWith.call(hostname3, parsedProxyHostname);
|
|
65844
|
-
});
|
|
65845
|
-
}
|
|
65846
|
-
function getEnv(key) {
|
|
65847
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
65848
|
-
}
|
|
65849
|
-
exports.getProxyForUrl = getProxyForUrl;
|
|
65850
|
-
}
|
|
65851
|
-
});
|
|
65852
|
-
|
|
65853
65783
|
// ../../node_modules/ms/index.js
|
|
65854
65784
|
var require_ms = __commonJS({
|
|
65855
65785
|
"../../node_modules/ms/index.js"(exports, module) {
|
|
@@ -67136,7 +67066,6 @@ var require_axios = __commonJS({
|
|
|
67136
67066
|
var FormData$1 = require_form_data();
|
|
67137
67067
|
var crypto3 = __require("crypto");
|
|
67138
67068
|
var url2 = __require("url");
|
|
67139
|
-
var proxyFromEnv = require_proxy_from_env();
|
|
67140
67069
|
var http2 = __require("http");
|
|
67141
67070
|
var https = __require("https");
|
|
67142
67071
|
var http22 = __require("http2");
|
|
@@ -67145,28 +67074,21 @@ var require_axios = __commonJS({
|
|
|
67145
67074
|
var zlib = __require("zlib");
|
|
67146
67075
|
var stream = __require("stream");
|
|
67147
67076
|
var events = __require("events");
|
|
67148
|
-
function _interopDefaultLegacy(e) {
|
|
67149
|
-
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
67150
|
-
}
|
|
67151
|
-
var FormData__default = /* @__PURE__ */ _interopDefaultLegacy(FormData$1);
|
|
67152
|
-
var crypto__default = /* @__PURE__ */ _interopDefaultLegacy(crypto3);
|
|
67153
|
-
var url__default = /* @__PURE__ */ _interopDefaultLegacy(url2);
|
|
67154
|
-
var proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv);
|
|
67155
|
-
var http__default = /* @__PURE__ */ _interopDefaultLegacy(http2);
|
|
67156
|
-
var https__default = /* @__PURE__ */ _interopDefaultLegacy(https);
|
|
67157
|
-
var http2__default = /* @__PURE__ */ _interopDefaultLegacy(http22);
|
|
67158
|
-
var util__default = /* @__PURE__ */ _interopDefaultLegacy(util);
|
|
67159
|
-
var followRedirects__default = /* @__PURE__ */ _interopDefaultLegacy(followRedirects);
|
|
67160
|
-
var zlib__default = /* @__PURE__ */ _interopDefaultLegacy(zlib);
|
|
67161
|
-
var stream__default = /* @__PURE__ */ _interopDefaultLegacy(stream);
|
|
67162
67077
|
function bind(fn, thisArg) {
|
|
67163
67078
|
return function wrap3() {
|
|
67164
67079
|
return fn.apply(thisArg, arguments);
|
|
67165
67080
|
};
|
|
67166
67081
|
}
|
|
67167
|
-
var {
|
|
67168
|
-
|
|
67169
|
-
|
|
67082
|
+
var {
|
|
67083
|
+
toString: toString2
|
|
67084
|
+
} = Object.prototype;
|
|
67085
|
+
var {
|
|
67086
|
+
getPrototypeOf
|
|
67087
|
+
} = Object;
|
|
67088
|
+
var {
|
|
67089
|
+
iterator,
|
|
67090
|
+
toStringTag
|
|
67091
|
+
} = Symbol;
|
|
67170
67092
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
67171
67093
|
const str = toString2.call(thing);
|
|
67172
67094
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -67176,7 +67098,9 @@ var require_axios = __commonJS({
|
|
|
67176
67098
|
return (thing) => kindOf(thing) === type;
|
|
67177
67099
|
};
|
|
67178
67100
|
var typeOfTest = (type) => (thing) => typeof thing === type;
|
|
67179
|
-
var {
|
|
67101
|
+
var {
|
|
67102
|
+
isArray
|
|
67103
|
+
} = Array;
|
|
67180
67104
|
var isUndefined = typeOfTest("undefined");
|
|
67181
67105
|
function isBuffer(val) {
|
|
67182
67106
|
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
@@ -67237,16 +67161,13 @@ var require_axios = __commonJS({
|
|
|
67237
67161
|
kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
67238
67162
|
};
|
|
67239
67163
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
67240
|
-
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
67241
|
-
"ReadableStream",
|
|
67242
|
-
"Request",
|
|
67243
|
-
"Response",
|
|
67244
|
-
"Headers"
|
|
67245
|
-
].map(kindOfTest);
|
|
67164
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
67246
67165
|
var trim4 = (str) => {
|
|
67247
67166
|
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
67248
67167
|
};
|
|
67249
|
-
function forEach(obj, fn, {
|
|
67168
|
+
function forEach(obj, fn, {
|
|
67169
|
+
allOwnKeys = false
|
|
67170
|
+
} = {}) {
|
|
67250
67171
|
if (obj === null || typeof obj === "undefined") {
|
|
67251
67172
|
return;
|
|
67252
67173
|
}
|
|
@@ -67294,7 +67215,10 @@ var require_axios = __commonJS({
|
|
|
67294
67215
|
})();
|
|
67295
67216
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
67296
67217
|
function merge2() {
|
|
67297
|
-
const {
|
|
67218
|
+
const {
|
|
67219
|
+
caseless,
|
|
67220
|
+
skipUndefined
|
|
67221
|
+
} = isContextDefined(this) && this || {};
|
|
67298
67222
|
const result = {};
|
|
67299
67223
|
const assignValue = (val, key) => {
|
|
67300
67224
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
@@ -67316,28 +67240,28 @@ var require_axios = __commonJS({
|
|
|
67316
67240
|
}
|
|
67317
67241
|
return result;
|
|
67318
67242
|
}
|
|
67319
|
-
var extend2 = (a, b, thisArg, {
|
|
67320
|
-
|
|
67321
|
-
|
|
67322
|
-
|
|
67323
|
-
|
|
67324
|
-
|
|
67325
|
-
|
|
67326
|
-
|
|
67327
|
-
|
|
67328
|
-
|
|
67329
|
-
|
|
67330
|
-
|
|
67331
|
-
|
|
67332
|
-
|
|
67333
|
-
|
|
67334
|
-
|
|
67335
|
-
|
|
67336
|
-
|
|
67337
|
-
|
|
67338
|
-
|
|
67339
|
-
|
|
67340
|
-
);
|
|
67243
|
+
var extend2 = (a, b, thisArg, {
|
|
67244
|
+
allOwnKeys
|
|
67245
|
+
} = {}) => {
|
|
67246
|
+
forEach(b, (val, key) => {
|
|
67247
|
+
if (thisArg && isFunction$1(val)) {
|
|
67248
|
+
Object.defineProperty(a, key, {
|
|
67249
|
+
value: bind(val, thisArg),
|
|
67250
|
+
writable: true,
|
|
67251
|
+
enumerable: true,
|
|
67252
|
+
configurable: true
|
|
67253
|
+
});
|
|
67254
|
+
} else {
|
|
67255
|
+
Object.defineProperty(a, key, {
|
|
67256
|
+
value: val,
|
|
67257
|
+
writable: true,
|
|
67258
|
+
enumerable: true,
|
|
67259
|
+
configurable: true
|
|
67260
|
+
});
|
|
67261
|
+
}
|
|
67262
|
+
}, {
|
|
67263
|
+
allOwnKeys
|
|
67264
|
+
});
|
|
67341
67265
|
return a;
|
|
67342
67266
|
};
|
|
67343
67267
|
var stripBOM = (content) => {
|
|
@@ -67428,7 +67352,9 @@ var require_axios = __commonJS({
|
|
|
67428
67352
|
return p1.toUpperCase() + p2;
|
|
67429
67353
|
});
|
|
67430
67354
|
};
|
|
67431
|
-
var hasOwnProperty = (({
|
|
67355
|
+
var hasOwnProperty = (({
|
|
67356
|
+
hasOwnProperty: hasOwnProperty2
|
|
67357
|
+
}) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
67432
67358
|
var isRegExp = kindOfTest("RegExp");
|
|
67433
67359
|
var reduceDescriptors = (obj, reducer) => {
|
|
67434
67360
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -67510,15 +67436,14 @@ var require_axios = __commonJS({
|
|
|
67510
67436
|
return setImmediate;
|
|
67511
67437
|
}
|
|
67512
67438
|
return postMessageSupported ? ((token, callbacks) => {
|
|
67513
|
-
_global.addEventListener(
|
|
67514
|
-
|
|
67515
|
-
|
|
67516
|
-
|
|
67517
|
-
|
|
67518
|
-
|
|
67519
|
-
}
|
|
67520
|
-
|
|
67521
|
-
);
|
|
67439
|
+
_global.addEventListener("message", ({
|
|
67440
|
+
source,
|
|
67441
|
+
data
|
|
67442
|
+
}) => {
|
|
67443
|
+
if (source === _global && data === token) {
|
|
67444
|
+
callbacks.length && callbacks.shift()();
|
|
67445
|
+
}
|
|
67446
|
+
}, false);
|
|
67522
67447
|
return (cb) => {
|
|
67523
67448
|
callbacks.push(cb);
|
|
67524
67449
|
_global.postMessage(token, "*");
|
|
@@ -67661,7 +67586,6 @@ var require_axios = __commonJS({
|
|
|
67661
67586
|
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
67662
67587
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
67663
67588
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
67664
|
-
var AxiosError$1 = AxiosError;
|
|
67665
67589
|
function isVisitable(thing) {
|
|
67666
67590
|
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
67667
67591
|
}
|
|
@@ -67685,19 +67609,14 @@ var require_axios = __commonJS({
|
|
|
67685
67609
|
if (!utils$1.isObject(obj)) {
|
|
67686
67610
|
throw new TypeError("target must be an object");
|
|
67687
67611
|
}
|
|
67688
|
-
formData = formData || new (
|
|
67689
|
-
options = utils$1.toFlatObject(
|
|
67690
|
-
|
|
67691
|
-
|
|
67692
|
-
|
|
67693
|
-
|
|
67694
|
-
|
|
67695
|
-
|
|
67696
|
-
false,
|
|
67697
|
-
function defined(option, source) {
|
|
67698
|
-
return !utils$1.isUndefined(source[option]);
|
|
67699
|
-
}
|
|
67700
|
-
);
|
|
67612
|
+
formData = formData || new (FormData$1 || FormData)();
|
|
67613
|
+
options = utils$1.toFlatObject(options, {
|
|
67614
|
+
metaTokens: true,
|
|
67615
|
+
dots: false,
|
|
67616
|
+
indexes: false
|
|
67617
|
+
}, false, function defined(option, source) {
|
|
67618
|
+
return !utils$1.isUndefined(source[option]);
|
|
67619
|
+
});
|
|
67701
67620
|
const metaTokens = options.metaTokens;
|
|
67702
67621
|
const visitor = options.visitor || defaultVisitor;
|
|
67703
67622
|
const dots = options.dots;
|
|
@@ -67716,7 +67635,7 @@ var require_axios = __commonJS({
|
|
|
67716
67635
|
return value.toString();
|
|
67717
67636
|
}
|
|
67718
67637
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
67719
|
-
throw new AxiosError
|
|
67638
|
+
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
67720
67639
|
}
|
|
67721
67640
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
67722
67641
|
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
@@ -67896,14 +67815,13 @@ var require_axios = __commonJS({
|
|
|
67896
67815
|
});
|
|
67897
67816
|
}
|
|
67898
67817
|
};
|
|
67899
|
-
var InterceptorManager$1 = InterceptorManager;
|
|
67900
67818
|
var transitionalDefaults = {
|
|
67901
67819
|
silentJSONParsing: true,
|
|
67902
67820
|
forcedJSONParsing: true,
|
|
67903
67821
|
clarifyTimeoutError: false,
|
|
67904
67822
|
legacyInterceptorReqResOrdering: true
|
|
67905
67823
|
};
|
|
67906
|
-
var URLSearchParams =
|
|
67824
|
+
var URLSearchParams = url2.URLSearchParams;
|
|
67907
67825
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
67908
67826
|
var DIGIT = "0123456789";
|
|
67909
67827
|
var ALPHABET = {
|
|
@@ -67913,9 +67831,11 @@ var require_axios = __commonJS({
|
|
|
67913
67831
|
};
|
|
67914
67832
|
var generateString = (size5 = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
67915
67833
|
let str = "";
|
|
67916
|
-
const {
|
|
67834
|
+
const {
|
|
67835
|
+
length
|
|
67836
|
+
} = alphabet;
|
|
67917
67837
|
const randomValues = new Uint32Array(size5);
|
|
67918
|
-
|
|
67838
|
+
crypto3.randomFillSync(randomValues);
|
|
67919
67839
|
for (let i = 0; i < size5; i++) {
|
|
67920
67840
|
str += alphabet[randomValues[i] % length];
|
|
67921
67841
|
}
|
|
@@ -67925,7 +67845,7 @@ var require_axios = __commonJS({
|
|
|
67925
67845
|
isNode: true,
|
|
67926
67846
|
classes: {
|
|
67927
67847
|
URLSearchParams,
|
|
67928
|
-
FormData:
|
|
67848
|
+
FormData: FormData$1,
|
|
67929
67849
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
67930
67850
|
},
|
|
67931
67851
|
ALPHABET,
|
|
@@ -67943,8 +67863,8 @@ var require_axios = __commonJS({
|
|
|
67943
67863
|
var utils = /* @__PURE__ */ Object.freeze({
|
|
67944
67864
|
__proto__: null,
|
|
67945
67865
|
hasBrowserEnv,
|
|
67946
|
-
hasStandardBrowserWebWorkerEnv,
|
|
67947
67866
|
hasStandardBrowserEnv,
|
|
67867
|
+
hasStandardBrowserWebWorkerEnv,
|
|
67948
67868
|
navigator: _navigator,
|
|
67949
67869
|
origin
|
|
67950
67870
|
});
|
|
@@ -68030,74 +67950,68 @@ var require_axios = __commonJS({
|
|
|
68030
67950
|
var defaults = {
|
|
68031
67951
|
transitional: transitionalDefaults,
|
|
68032
67952
|
adapter: ["xhr", "http", "fetch"],
|
|
68033
|
-
transformRequest: [
|
|
68034
|
-
|
|
68035
|
-
|
|
68036
|
-
|
|
68037
|
-
|
|
68038
|
-
|
|
68039
|
-
|
|
68040
|
-
|
|
68041
|
-
|
|
68042
|
-
|
|
68043
|
-
|
|
68044
|
-
|
|
68045
|
-
|
|
68046
|
-
|
|
68047
|
-
|
|
68048
|
-
|
|
68049
|
-
|
|
68050
|
-
|
|
68051
|
-
|
|
68052
|
-
|
|
68053
|
-
|
|
68054
|
-
|
|
68055
|
-
|
|
68056
|
-
if (
|
|
68057
|
-
|
|
68058
|
-
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
68059
|
-
}
|
|
68060
|
-
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
68061
|
-
const _FormData = this.env && this.env.FormData;
|
|
68062
|
-
return toFormData(
|
|
68063
|
-
isFileList2 ? { "files[]": data } : data,
|
|
68064
|
-
_FormData && new _FormData(),
|
|
68065
|
-
this.formSerializer
|
|
68066
|
-
);
|
|
68067
|
-
}
|
|
67953
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
67954
|
+
const contentType = headers.getContentType() || "";
|
|
67955
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
67956
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
67957
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
67958
|
+
data = new FormData(data);
|
|
67959
|
+
}
|
|
67960
|
+
const isFormData2 = utils$1.isFormData(data);
|
|
67961
|
+
if (isFormData2) {
|
|
67962
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
67963
|
+
}
|
|
67964
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
67965
|
+
return data;
|
|
67966
|
+
}
|
|
67967
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
67968
|
+
return data.buffer;
|
|
67969
|
+
}
|
|
67970
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
67971
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
67972
|
+
return data.toString();
|
|
67973
|
+
}
|
|
67974
|
+
let isFileList2;
|
|
67975
|
+
if (isObjectPayload) {
|
|
67976
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
67977
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
68068
67978
|
}
|
|
68069
|
-
if (
|
|
68070
|
-
|
|
68071
|
-
return
|
|
67979
|
+
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
67980
|
+
const _FormData = this.env && this.env.FormData;
|
|
67981
|
+
return toFormData(isFileList2 ? {
|
|
67982
|
+
"files[]": data
|
|
67983
|
+
} : data, _FormData && new _FormData(), this.formSerializer);
|
|
68072
67984
|
}
|
|
67985
|
+
}
|
|
67986
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
67987
|
+
headers.setContentType("application/json", false);
|
|
67988
|
+
return stringifySafely(data);
|
|
67989
|
+
}
|
|
67990
|
+
return data;
|
|
67991
|
+
}],
|
|
67992
|
+
transformResponse: [function transformResponse(data) {
|
|
67993
|
+
const transitional = this.transitional || defaults.transitional;
|
|
67994
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
67995
|
+
const JSONRequested = this.responseType === "json";
|
|
67996
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
68073
67997
|
return data;
|
|
68074
67998
|
}
|
|
68075
|
-
|
|
68076
|
-
|
|
68077
|
-
|
|
68078
|
-
|
|
68079
|
-
|
|
68080
|
-
|
|
68081
|
-
|
|
68082
|
-
|
|
68083
|
-
|
|
68084
|
-
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
68085
|
-
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
68086
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
68087
|
-
try {
|
|
68088
|
-
return JSON.parse(data, this.parseReviver);
|
|
68089
|
-
} catch (e) {
|
|
68090
|
-
if (strictJSONParsing) {
|
|
68091
|
-
if (e.name === "SyntaxError") {
|
|
68092
|
-
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
68093
|
-
}
|
|
68094
|
-
throw e;
|
|
67999
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
68000
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
68001
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
68002
|
+
try {
|
|
68003
|
+
return JSON.parse(data, this.parseReviver);
|
|
68004
|
+
} catch (e) {
|
|
68005
|
+
if (strictJSONParsing) {
|
|
68006
|
+
if (e.name === "SyntaxError") {
|
|
68007
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
68095
68008
|
}
|
|
68009
|
+
throw e;
|
|
68096
68010
|
}
|
|
68097
68011
|
}
|
|
68098
|
-
return data;
|
|
68099
68012
|
}
|
|
68100
|
-
|
|
68013
|
+
return data;
|
|
68014
|
+
}],
|
|
68101
68015
|
/**
|
|
68102
68016
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
68103
68017
|
* timeout is not created.
|
|
@@ -68124,26 +68038,7 @@ var require_axios = __commonJS({
|
|
|
68124
68038
|
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
68125
68039
|
defaults.headers[method] = {};
|
|
68126
68040
|
});
|
|
68127
|
-
var
|
|
68128
|
-
var ignoreDuplicateOf = utils$1.toObjectSet([
|
|
68129
|
-
"age",
|
|
68130
|
-
"authorization",
|
|
68131
|
-
"content-length",
|
|
68132
|
-
"content-type",
|
|
68133
|
-
"etag",
|
|
68134
|
-
"expires",
|
|
68135
|
-
"from",
|
|
68136
|
-
"host",
|
|
68137
|
-
"if-modified-since",
|
|
68138
|
-
"if-unmodified-since",
|
|
68139
|
-
"last-modified",
|
|
68140
|
-
"location",
|
|
68141
|
-
"max-forwards",
|
|
68142
|
-
"proxy-authorization",
|
|
68143
|
-
"referer",
|
|
68144
|
-
"retry-after",
|
|
68145
|
-
"user-agent"
|
|
68146
|
-
]);
|
|
68041
|
+
var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
|
|
68147
68042
|
var parseHeaders = (rawHeaders) => {
|
|
68148
68043
|
const parsed = {};
|
|
68149
68044
|
let key;
|
|
@@ -68176,7 +68071,7 @@ var require_axios = __commonJS({
|
|
|
68176
68071
|
if (value === false || value == null) {
|
|
68177
68072
|
return value;
|
|
68178
68073
|
}
|
|
68179
|
-
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
68074
|
+
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value).replace(/[\r\n]+$/, "");
|
|
68180
68075
|
}
|
|
68181
68076
|
function parseTokens(str) {
|
|
68182
68077
|
const tokens = /* @__PURE__ */ Object.create(null);
|
|
@@ -68383,15 +68278,10 @@ var require_axios = __commonJS({
|
|
|
68383
68278
|
return this;
|
|
68384
68279
|
}
|
|
68385
68280
|
};
|
|
68386
|
-
AxiosHeaders.accessor([
|
|
68387
|
-
|
|
68388
|
-
|
|
68389
|
-
|
|
68390
|
-
"Accept-Encoding",
|
|
68391
|
-
"User-Agent",
|
|
68392
|
-
"Authorization"
|
|
68393
|
-
]);
|
|
68394
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
68281
|
+
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
68282
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({
|
|
68283
|
+
value
|
|
68284
|
+
}, key) => {
|
|
68395
68285
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
68396
68286
|
return {
|
|
68397
68287
|
get: () => value,
|
|
@@ -68401,11 +68291,10 @@ var require_axios = __commonJS({
|
|
|
68401
68291
|
};
|
|
68402
68292
|
});
|
|
68403
68293
|
utils$1.freezeMethods(AxiosHeaders);
|
|
68404
|
-
var AxiosHeaders$1 = AxiosHeaders;
|
|
68405
68294
|
function transformData(fns, response) {
|
|
68406
|
-
const config2 = this || defaults
|
|
68295
|
+
const config2 = this || defaults;
|
|
68407
68296
|
const context = response || config2;
|
|
68408
|
-
const headers = AxiosHeaders
|
|
68297
|
+
const headers = AxiosHeaders.from(context.headers);
|
|
68409
68298
|
let data = context.data;
|
|
68410
68299
|
utils$1.forEach(fns, function transform2(fn) {
|
|
68411
68300
|
data = fn.call(config2, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -68416,7 +68305,7 @@ var require_axios = __commonJS({
|
|
|
68416
68305
|
function isCancel(value) {
|
|
68417
68306
|
return !!(value && value.__CANCEL__);
|
|
68418
68307
|
}
|
|
68419
|
-
var CanceledError = class extends AxiosError
|
|
68308
|
+
var CanceledError = class extends AxiosError {
|
|
68420
68309
|
/**
|
|
68421
68310
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
68422
68311
|
*
|
|
@@ -68427,26 +68316,17 @@ var require_axios = __commonJS({
|
|
|
68427
68316
|
* @returns {CanceledError} The created error.
|
|
68428
68317
|
*/
|
|
68429
68318
|
constructor(message2, config2, request) {
|
|
68430
|
-
super(message2 == null ? "canceled" : message2, AxiosError
|
|
68319
|
+
super(message2 == null ? "canceled" : message2, AxiosError.ERR_CANCELED, config2, request);
|
|
68431
68320
|
this.name = "CanceledError";
|
|
68432
68321
|
this.__CANCEL__ = true;
|
|
68433
68322
|
}
|
|
68434
68323
|
};
|
|
68435
|
-
var CanceledError$1 = CanceledError;
|
|
68436
68324
|
function settle(resolve, reject, response) {
|
|
68437
68325
|
const validateStatus = response.config.validateStatus;
|
|
68438
68326
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
68439
68327
|
resolve(response);
|
|
68440
68328
|
} else {
|
|
68441
|
-
reject(
|
|
68442
|
-
new AxiosError$1(
|
|
68443
|
-
"Request failed with status code " + response.status,
|
|
68444
|
-
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
68445
|
-
response.config,
|
|
68446
|
-
response.request,
|
|
68447
|
-
response
|
|
68448
|
-
)
|
|
68449
|
-
);
|
|
68329
|
+
reject(new AxiosError("Request failed with status code " + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
68450
68330
|
}
|
|
68451
68331
|
}
|
|
68452
68332
|
function isAbsoluteURL(url3) {
|
|
@@ -68465,7 +68345,72 @@ var require_axios = __commonJS({
|
|
|
68465
68345
|
}
|
|
68466
68346
|
return requestedURL;
|
|
68467
68347
|
}
|
|
68468
|
-
var
|
|
68348
|
+
var DEFAULT_PORTS = {
|
|
68349
|
+
ftp: 21,
|
|
68350
|
+
gopher: 70,
|
|
68351
|
+
http: 80,
|
|
68352
|
+
https: 443,
|
|
68353
|
+
ws: 80,
|
|
68354
|
+
wss: 443
|
|
68355
|
+
};
|
|
68356
|
+
function parseUrl2(urlString) {
|
|
68357
|
+
try {
|
|
68358
|
+
return new URL(urlString);
|
|
68359
|
+
} catch {
|
|
68360
|
+
return null;
|
|
68361
|
+
}
|
|
68362
|
+
}
|
|
68363
|
+
function getProxyForUrl(url3) {
|
|
68364
|
+
var parsedUrl = (typeof url3 === "string" ? parseUrl2(url3) : url3) || {};
|
|
68365
|
+
var proto = parsedUrl.protocol;
|
|
68366
|
+
var hostname3 = parsedUrl.host;
|
|
68367
|
+
var port = parsedUrl.port;
|
|
68368
|
+
if (typeof hostname3 !== "string" || !hostname3 || typeof proto !== "string") {
|
|
68369
|
+
return "";
|
|
68370
|
+
}
|
|
68371
|
+
proto = proto.split(":", 1)[0];
|
|
68372
|
+
hostname3 = hostname3.replace(/:\d*$/, "");
|
|
68373
|
+
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
|
68374
|
+
if (!shouldProxy(hostname3, port)) {
|
|
68375
|
+
return "";
|
|
68376
|
+
}
|
|
68377
|
+
var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
|
|
68378
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
68379
|
+
proxy = proto + "://" + proxy;
|
|
68380
|
+
}
|
|
68381
|
+
return proxy;
|
|
68382
|
+
}
|
|
68383
|
+
function shouldProxy(hostname3, port) {
|
|
68384
|
+
var NO_PROXY = getEnv("no_proxy").toLowerCase();
|
|
68385
|
+
if (!NO_PROXY) {
|
|
68386
|
+
return true;
|
|
68387
|
+
}
|
|
68388
|
+
if (NO_PROXY === "*") {
|
|
68389
|
+
return false;
|
|
68390
|
+
}
|
|
68391
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
68392
|
+
if (!proxy) {
|
|
68393
|
+
return true;
|
|
68394
|
+
}
|
|
68395
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
68396
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
68397
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
68398
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
68399
|
+
return true;
|
|
68400
|
+
}
|
|
68401
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
68402
|
+
return hostname3 !== parsedProxyHostname;
|
|
68403
|
+
}
|
|
68404
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
|
68405
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
68406
|
+
}
|
|
68407
|
+
return !hostname3.endsWith(parsedProxyHostname);
|
|
68408
|
+
});
|
|
68409
|
+
}
|
|
68410
|
+
function getEnv(key) {
|
|
68411
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
68412
|
+
}
|
|
68413
|
+
var VERSION = "1.14.0";
|
|
68469
68414
|
function parseProtocol(url3) {
|
|
68470
68415
|
const match2 = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url3);
|
|
68471
68416
|
return match2 && match2[1] || "";
|
|
@@ -68481,7 +68426,7 @@ var require_axios = __commonJS({
|
|
|
68481
68426
|
uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
|
|
68482
68427
|
const match2 = DATA_URL_PATTERN.exec(uri);
|
|
68483
68428
|
if (!match2) {
|
|
68484
|
-
throw new AxiosError
|
|
68429
|
+
throw new AxiosError("Invalid URL", AxiosError.ERR_INVALID_URL);
|
|
68485
68430
|
}
|
|
68486
68431
|
const mime = match2[1];
|
|
68487
68432
|
const isBase64 = match2[2];
|
|
@@ -68489,32 +68434,29 @@ var require_axios = __commonJS({
|
|
|
68489
68434
|
const buffer2 = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
|
|
68490
68435
|
if (asBlob) {
|
|
68491
68436
|
if (!_Blob) {
|
|
68492
|
-
throw new AxiosError
|
|
68437
|
+
throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
|
|
68493
68438
|
}
|
|
68494
|
-
return new _Blob([buffer2], {
|
|
68439
|
+
return new _Blob([buffer2], {
|
|
68440
|
+
type: mime
|
|
68441
|
+
});
|
|
68495
68442
|
}
|
|
68496
68443
|
return buffer2;
|
|
68497
68444
|
}
|
|
68498
|
-
throw new AxiosError
|
|
68445
|
+
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
68499
68446
|
}
|
|
68500
68447
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
68501
|
-
var AxiosTransformStream = class extends
|
|
68448
|
+
var AxiosTransformStream = class extends stream.Transform {
|
|
68502
68449
|
constructor(options) {
|
|
68503
|
-
options = utils$1.toFlatObject(
|
|
68504
|
-
|
|
68505
|
-
|
|
68506
|
-
|
|
68507
|
-
|
|
68508
|
-
|
|
68509
|
-
|
|
68510
|
-
|
|
68511
|
-
|
|
68512
|
-
|
|
68513
|
-
null,
|
|
68514
|
-
(prop, source) => {
|
|
68515
|
-
return !utils$1.isUndefined(source[prop]);
|
|
68516
|
-
}
|
|
68517
|
-
);
|
|
68450
|
+
options = utils$1.toFlatObject(options, {
|
|
68451
|
+
maxRate: 0,
|
|
68452
|
+
chunkSize: 64 * 1024,
|
|
68453
|
+
minChunkSize: 100,
|
|
68454
|
+
timeWindow: 500,
|
|
68455
|
+
ticksRate: 2,
|
|
68456
|
+
samplesCount: 15
|
|
68457
|
+
}, null, (prop, source) => {
|
|
68458
|
+
return !utils$1.isUndefined(source[prop]);
|
|
68459
|
+
});
|
|
68518
68460
|
super({
|
|
68519
68461
|
readableHighWaterMark: options.chunkSize
|
|
68520
68462
|
});
|
|
@@ -68597,12 +68539,9 @@ var require_axios = __commonJS({
|
|
|
68597
68539
|
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
68598
68540
|
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
68599
68541
|
}
|
|
68600
|
-
pushChunk(
|
|
68601
|
-
|
|
68602
|
-
|
|
68603
|
-
process.nextTick(_callback, null, chunkRemainder);
|
|
68604
|
-
} : _callback
|
|
68605
|
-
);
|
|
68542
|
+
pushChunk(_chunk, chunkRemainder ? () => {
|
|
68543
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
68544
|
+
} : _callback);
|
|
68606
68545
|
};
|
|
68607
68546
|
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
68608
68547
|
if (err) {
|
|
@@ -68616,8 +68555,9 @@ var require_axios = __commonJS({
|
|
|
68616
68555
|
});
|
|
68617
68556
|
}
|
|
68618
68557
|
};
|
|
68619
|
-
var
|
|
68620
|
-
|
|
68558
|
+
var {
|
|
68559
|
+
asyncIterator
|
|
68560
|
+
} = Symbol;
|
|
68621
68561
|
var readBlob = async function* (blob) {
|
|
68622
68562
|
if (blob.stream) {
|
|
68623
68563
|
yield* blob.stream();
|
|
@@ -68629,15 +68569,16 @@ var require_axios = __commonJS({
|
|
|
68629
68569
|
yield blob;
|
|
68630
68570
|
}
|
|
68631
68571
|
};
|
|
68632
|
-
var readBlob$1 = readBlob;
|
|
68633
68572
|
var BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + "-_";
|
|
68634
|
-
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new
|
|
68573
|
+
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
68635
68574
|
var CRLF = "\r\n";
|
|
68636
68575
|
var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
68637
68576
|
var CRLF_BYTES_COUNT = 2;
|
|
68638
68577
|
var FormDataPart = class {
|
|
68639
68578
|
constructor(name, value) {
|
|
68640
|
-
const {
|
|
68579
|
+
const {
|
|
68580
|
+
escapeName
|
|
68581
|
+
} = this.constructor;
|
|
68641
68582
|
const isStringValue = utils$1.isString(value);
|
|
68642
68583
|
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;
|
|
68643
68584
|
if (isStringValue) {
|
|
@@ -68653,23 +68594,22 @@ var require_axios = __commonJS({
|
|
|
68653
68594
|
}
|
|
68654
68595
|
async *encode() {
|
|
68655
68596
|
yield this.headers;
|
|
68656
|
-
const {
|
|
68597
|
+
const {
|
|
68598
|
+
value
|
|
68599
|
+
} = this;
|
|
68657
68600
|
if (utils$1.isTypedArray(value)) {
|
|
68658
68601
|
yield value;
|
|
68659
68602
|
} else {
|
|
68660
|
-
yield* readBlob
|
|
68603
|
+
yield* readBlob(value);
|
|
68661
68604
|
}
|
|
68662
68605
|
yield CRLF_BYTES;
|
|
68663
68606
|
}
|
|
68664
68607
|
static escapeName(name) {
|
|
68665
|
-
return String(name).replace(
|
|
68666
|
-
|
|
68667
|
-
|
|
68668
|
-
|
|
68669
|
-
|
|
68670
|
-
'"': "%22"
|
|
68671
|
-
})[match2]
|
|
68672
|
-
);
|
|
68608
|
+
return String(name).replace(/[\r\n"]/g, (match2) => ({
|
|
68609
|
+
"\r": "%0D",
|
|
68610
|
+
"\n": "%0A",
|
|
68611
|
+
'"': "%22"
|
|
68612
|
+
})[match2]);
|
|
68673
68613
|
}
|
|
68674
68614
|
};
|
|
68675
68615
|
var formDataToStream = (form, headersHandler, options) => {
|
|
@@ -68701,18 +68641,15 @@ var require_axios = __commonJS({
|
|
|
68701
68641
|
computedHeaders["Content-Length"] = contentLength;
|
|
68702
68642
|
}
|
|
68703
68643
|
headersHandler && headersHandler(computedHeaders);
|
|
68704
|
-
return stream.Readable.from(
|
|
68705
|
-
(
|
|
68706
|
-
|
|
68707
|
-
|
|
68708
|
-
|
|
68709
|
-
|
|
68710
|
-
|
|
68711
|
-
})()
|
|
68712
|
-
);
|
|
68644
|
+
return stream.Readable.from((async function* () {
|
|
68645
|
+
for (const part of parts) {
|
|
68646
|
+
yield boundaryBytes;
|
|
68647
|
+
yield* part.encode();
|
|
68648
|
+
}
|
|
68649
|
+
yield footerBytes;
|
|
68650
|
+
})());
|
|
68713
68651
|
};
|
|
68714
|
-
var
|
|
68715
|
-
var ZlibHeaderTransformStream = class extends stream__default["default"].Transform {
|
|
68652
|
+
var ZlibHeaderTransformStream = class extends stream.Transform {
|
|
68716
68653
|
__transform(chunk, encoding, callback) {
|
|
68717
68654
|
this.push(chunk);
|
|
68718
68655
|
callback();
|
|
@@ -68730,7 +68667,6 @@ var require_axios = __commonJS({
|
|
|
68730
68667
|
this.__transform(chunk, encoding, callback);
|
|
68731
68668
|
}
|
|
68732
68669
|
};
|
|
68733
|
-
var ZlibHeaderTransformStream$1 = ZlibHeaderTransformStream;
|
|
68734
68670
|
var callbackify = (fn, reducer) => {
|
|
68735
68671
|
return utils$1.isAsyncFn(fn) ? function(...args) {
|
|
68736
68672
|
const cb = args.pop();
|
|
@@ -68743,7 +68679,6 @@ var require_axios = __commonJS({
|
|
|
68743
68679
|
}, cb);
|
|
68744
68680
|
} : fn;
|
|
68745
68681
|
};
|
|
68746
|
-
var callbackify$1 = callbackify;
|
|
68747
68682
|
function speedometer(samplesCount, min) {
|
|
68748
68683
|
samplesCount = samplesCount || 10;
|
|
68749
68684
|
const bytes = new Array(samplesCount);
|
|
@@ -68835,14 +68770,11 @@ var require_axios = __commonJS({
|
|
|
68835
68770
|
};
|
|
68836
68771
|
var progressEventDecorator = (total, throttled) => {
|
|
68837
68772
|
const lengthComputable = total != null;
|
|
68838
|
-
return [
|
|
68839
|
-
|
|
68840
|
-
|
|
68841
|
-
|
|
68842
|
-
|
|
68843
|
-
}),
|
|
68844
|
-
throttled[1]
|
|
68845
|
-
];
|
|
68773
|
+
return [(loaded) => throttled[0]({
|
|
68774
|
+
lengthComputable,
|
|
68775
|
+
total,
|
|
68776
|
+
loaded
|
|
68777
|
+
}), throttled[1]];
|
|
68846
68778
|
};
|
|
68847
68779
|
var asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
68848
68780
|
function estimateDataURLDecodedBytes(url3) {
|
|
@@ -68895,15 +68827,18 @@ var require_axios = __commonJS({
|
|
|
68895
68827
|
return Buffer.byteLength(body, "utf8");
|
|
68896
68828
|
}
|
|
68897
68829
|
var zlibOptions = {
|
|
68898
|
-
flush:
|
|
68899
|
-
finishFlush:
|
|
68830
|
+
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
68831
|
+
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
68900
68832
|
};
|
|
68901
68833
|
var brotliOptions = {
|
|
68902
|
-
flush:
|
|
68903
|
-
finishFlush:
|
|
68834
|
+
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
68835
|
+
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
|
|
68904
68836
|
};
|
|
68905
|
-
var isBrotliSupported = utils$1.isFunction(
|
|
68906
|
-
var {
|
|
68837
|
+
var isBrotliSupported = utils$1.isFunction(zlib.createBrotliDecompress);
|
|
68838
|
+
var {
|
|
68839
|
+
http: httpFollow,
|
|
68840
|
+
https: httpsFollow
|
|
68841
|
+
} = followRedirects;
|
|
68907
68842
|
var isHttps = /https:?/;
|
|
68908
68843
|
var supportedProtocols = platform.protocols.map((protocol) => {
|
|
68909
68844
|
return protocol + ":";
|
|
@@ -68917,23 +68852,20 @@ var require_axios = __commonJS({
|
|
|
68917
68852
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
68918
68853
|
}
|
|
68919
68854
|
getSession(authority, options) {
|
|
68920
|
-
options = Object.assign(
|
|
68921
|
-
|
|
68922
|
-
|
|
68923
|
-
},
|
|
68924
|
-
options
|
|
68925
|
-
);
|
|
68855
|
+
options = Object.assign({
|
|
68856
|
+
sessionTimeout: 1e3
|
|
68857
|
+
}, options);
|
|
68926
68858
|
let authoritySessions = this.sessions[authority];
|
|
68927
68859
|
if (authoritySessions) {
|
|
68928
68860
|
let len = authoritySessions.length;
|
|
68929
68861
|
for (let i = 0; i < len; i++) {
|
|
68930
68862
|
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
68931
|
-
if (!sessionHandle.destroyed && !sessionHandle.closed &&
|
|
68863
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util.isDeepStrictEqual(sessionOptions, options)) {
|
|
68932
68864
|
return sessionHandle;
|
|
68933
68865
|
}
|
|
68934
68866
|
}
|
|
68935
68867
|
}
|
|
68936
|
-
const session =
|
|
68868
|
+
const session = http22.connect(authority, options);
|
|
68937
68869
|
let removed;
|
|
68938
68870
|
const removeSession = () => {
|
|
68939
68871
|
if (removed) {
|
|
@@ -68948,12 +68880,17 @@ var require_axios = __commonJS({
|
|
|
68948
68880
|
} else {
|
|
68949
68881
|
entries.splice(i, 1);
|
|
68950
68882
|
}
|
|
68883
|
+
if (!session.closed) {
|
|
68884
|
+
session.close();
|
|
68885
|
+
}
|
|
68951
68886
|
return;
|
|
68952
68887
|
}
|
|
68953
68888
|
}
|
|
68954
68889
|
};
|
|
68955
68890
|
const originalRequestFn = session.request;
|
|
68956
|
-
const {
|
|
68891
|
+
const {
|
|
68892
|
+
sessionTimeout
|
|
68893
|
+
} = options;
|
|
68957
68894
|
if (sessionTimeout != null) {
|
|
68958
68895
|
let timer;
|
|
68959
68896
|
let streamsCount = 0;
|
|
@@ -68993,7 +68930,7 @@ var require_axios = __commonJS({
|
|
|
68993
68930
|
function setProxy(options, configProxy, location) {
|
|
68994
68931
|
let proxy = configProxy;
|
|
68995
68932
|
if (!proxy && proxy !== false) {
|
|
68996
|
-
const proxyUrl =
|
|
68933
|
+
const proxyUrl = getProxyForUrl(location);
|
|
68997
68934
|
if (proxyUrl) {
|
|
68998
68935
|
proxy = new URL(proxyUrl);
|
|
68999
68936
|
}
|
|
@@ -69007,7 +68944,9 @@ var require_axios = __commonJS({
|
|
|
69007
68944
|
if (validProxyAuth) {
|
|
69008
68945
|
proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
69009
68946
|
} else if (typeof proxy.auth === "object") {
|
|
69010
|
-
throw new AxiosError
|
|
68947
|
+
throw new AxiosError("Invalid proxy authorization", AxiosError.ERR_BAD_OPTION, {
|
|
68948
|
+
proxy
|
|
68949
|
+
});
|
|
69011
68950
|
}
|
|
69012
68951
|
const base643 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
69013
68952
|
options.headers["Proxy-Authorization"] = "Basic " + base643;
|
|
@@ -69047,7 +68986,10 @@ var require_axios = __commonJS({
|
|
|
69047
68986
|
asyncExecutor(_resolve, _reject, (onDoneHandler) => onDone = onDoneHandler).catch(_reject);
|
|
69048
68987
|
});
|
|
69049
68988
|
};
|
|
69050
|
-
var resolveFamily = ({
|
|
68989
|
+
var resolveFamily = ({
|
|
68990
|
+
address,
|
|
68991
|
+
family
|
|
68992
|
+
}) => {
|
|
69051
68993
|
if (!utils$1.isString(address)) {
|
|
69052
68994
|
throw TypeError("address must be a string");
|
|
69053
68995
|
}
|
|
@@ -69056,13 +68998,24 @@ var require_axios = __commonJS({
|
|
|
69056
68998
|
family: family || (address.indexOf(".") < 0 ? 6 : 4)
|
|
69057
68999
|
};
|
|
69058
69000
|
};
|
|
69059
|
-
var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {
|
|
69001
|
+
var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {
|
|
69002
|
+
address,
|
|
69003
|
+
family
|
|
69004
|
+
});
|
|
69060
69005
|
var http2Transport = {
|
|
69061
69006
|
request(options, cb) {
|
|
69062
69007
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
69063
|
-
const {
|
|
69008
|
+
const {
|
|
69009
|
+
http2Options,
|
|
69010
|
+
headers
|
|
69011
|
+
} = options;
|
|
69064
69012
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
69065
|
-
const {
|
|
69013
|
+
const {
|
|
69014
|
+
HTTP2_HEADER_SCHEME,
|
|
69015
|
+
HTTP2_HEADER_METHOD,
|
|
69016
|
+
HTTP2_HEADER_PATH,
|
|
69017
|
+
HTTP2_HEADER_STATUS
|
|
69018
|
+
} = http22.constants;
|
|
69066
69019
|
const http2Headers = {
|
|
69067
69020
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
69068
69021
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -69086,8 +69039,17 @@ var require_axios = __commonJS({
|
|
|
69086
69039
|
};
|
|
69087
69040
|
var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config2) {
|
|
69088
69041
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
69089
|
-
let {
|
|
69090
|
-
|
|
69042
|
+
let {
|
|
69043
|
+
data,
|
|
69044
|
+
lookup,
|
|
69045
|
+
family,
|
|
69046
|
+
httpVersion = 1,
|
|
69047
|
+
http2Options
|
|
69048
|
+
} = config2;
|
|
69049
|
+
const {
|
|
69050
|
+
responseType,
|
|
69051
|
+
responseEncoding
|
|
69052
|
+
} = config2;
|
|
69091
69053
|
const method = config2.method.toUpperCase();
|
|
69092
69054
|
let isDone;
|
|
69093
69055
|
let rejected = false;
|
|
@@ -69101,7 +69063,7 @@ var require_axios = __commonJS({
|
|
|
69101
69063
|
}
|
|
69102
69064
|
const isHttp2 = httpVersion === 2;
|
|
69103
69065
|
if (lookup) {
|
|
69104
|
-
const _lookup = callbackify
|
|
69066
|
+
const _lookup = callbackify(lookup, (value) => utils$1.isArray(value) ? value : [value]);
|
|
69105
69067
|
lookup = (hostname3, opt, cb) => {
|
|
69106
69068
|
_lookup(hostname3, opt, (err, arg0, arg1) => {
|
|
69107
69069
|
if (err) {
|
|
@@ -69115,10 +69077,7 @@ var require_axios = __commonJS({
|
|
|
69115
69077
|
const abortEmitter = new events.EventEmitter();
|
|
69116
69078
|
function abort(reason) {
|
|
69117
69079
|
try {
|
|
69118
|
-
abortEmitter.emit(
|
|
69119
|
-
"abort",
|
|
69120
|
-
!reason || reason.type ? new CanceledError$1(null, config2, req) : reason
|
|
69121
|
-
);
|
|
69080
|
+
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError(null, config2, req) : reason);
|
|
69122
69081
|
} catch (err) {
|
|
69123
69082
|
console.warn("emit error", err);
|
|
69124
69083
|
}
|
|
@@ -69146,9 +69105,11 @@ var require_axios = __commonJS({
|
|
|
69146
69105
|
onFinished();
|
|
69147
69106
|
return;
|
|
69148
69107
|
}
|
|
69149
|
-
const {
|
|
69150
|
-
|
|
69151
|
-
|
|
69108
|
+
const {
|
|
69109
|
+
data: data2
|
|
69110
|
+
} = response;
|
|
69111
|
+
if (data2 instanceof stream.Readable || data2 instanceof stream.Duplex) {
|
|
69112
|
+
const offListeners = stream.finished(data2, () => {
|
|
69152
69113
|
offListeners();
|
|
69153
69114
|
onFinished();
|
|
69154
69115
|
});
|
|
@@ -69164,13 +69125,7 @@ var require_axios = __commonJS({
|
|
|
69164
69125
|
const dataUrl = String(config2.url || fullPath || "");
|
|
69165
69126
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
69166
69127
|
if (estimated > config2.maxContentLength) {
|
|
69167
|
-
return reject(
|
|
69168
|
-
new AxiosError$1(
|
|
69169
|
-
"maxContentLength size of " + config2.maxContentLength + " exceeded",
|
|
69170
|
-
AxiosError$1.ERR_BAD_RESPONSE,
|
|
69171
|
-
config2
|
|
69172
|
-
)
|
|
69173
|
-
);
|
|
69128
|
+
return reject(new AxiosError("maxContentLength size of " + config2.maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config2));
|
|
69174
69129
|
}
|
|
69175
69130
|
}
|
|
69176
69131
|
let convertedData;
|
|
@@ -69187,7 +69142,7 @@ var require_axios = __commonJS({
|
|
|
69187
69142
|
Blob: config2.env && config2.env.Blob
|
|
69188
69143
|
});
|
|
69189
69144
|
} catch (err) {
|
|
69190
|
-
throw AxiosError
|
|
69145
|
+
throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config2);
|
|
69191
69146
|
}
|
|
69192
69147
|
if (responseType === "text") {
|
|
69193
69148
|
convertedData = convertedData.toString(responseEncoding);
|
|
@@ -69195,44 +69150,41 @@ var require_axios = __commonJS({
|
|
|
69195
69150
|
convertedData = utils$1.stripBOM(convertedData);
|
|
69196
69151
|
}
|
|
69197
69152
|
} else if (responseType === "stream") {
|
|
69198
|
-
convertedData =
|
|
69153
|
+
convertedData = stream.Readable.from(convertedData);
|
|
69199
69154
|
}
|
|
69200
69155
|
return settle(resolve, reject, {
|
|
69201
69156
|
data: convertedData,
|
|
69202
69157
|
status: 200,
|
|
69203
69158
|
statusText: "OK",
|
|
69204
|
-
headers: new AxiosHeaders
|
|
69159
|
+
headers: new AxiosHeaders(),
|
|
69205
69160
|
config: config2
|
|
69206
69161
|
});
|
|
69207
69162
|
}
|
|
69208
69163
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
69209
|
-
return reject(
|
|
69210
|
-
new AxiosError$1("Unsupported protocol " + protocol, AxiosError$1.ERR_BAD_REQUEST, config2)
|
|
69211
|
-
);
|
|
69164
|
+
return reject(new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_BAD_REQUEST, config2));
|
|
69212
69165
|
}
|
|
69213
|
-
const headers = AxiosHeaders
|
|
69166
|
+
const headers = AxiosHeaders.from(config2.headers).normalize();
|
|
69214
69167
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
69215
|
-
const {
|
|
69168
|
+
const {
|
|
69169
|
+
onUploadProgress,
|
|
69170
|
+
onDownloadProgress
|
|
69171
|
+
} = config2;
|
|
69216
69172
|
const maxRate = config2.maxRate;
|
|
69217
69173
|
let maxUploadRate = void 0;
|
|
69218
69174
|
let maxDownloadRate = void 0;
|
|
69219
69175
|
if (utils$1.isSpecCompliantForm(data)) {
|
|
69220
69176
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
69221
|
-
data = formDataToStream
|
|
69222
|
-
|
|
69223
|
-
|
|
69224
|
-
|
|
69225
|
-
|
|
69226
|
-
|
|
69227
|
-
tag: `axios-${VERSION}-boundary`,
|
|
69228
|
-
boundary: userBoundary && userBoundary[1] || void 0
|
|
69229
|
-
}
|
|
69230
|
-
);
|
|
69177
|
+
data = formDataToStream(data, (formHeaders) => {
|
|
69178
|
+
headers.set(formHeaders);
|
|
69179
|
+
}, {
|
|
69180
|
+
tag: `axios-${VERSION}-boundary`,
|
|
69181
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
69182
|
+
});
|
|
69231
69183
|
} else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
|
|
69232
69184
|
headers.set(data.getHeaders());
|
|
69233
69185
|
if (!headers.hasContentLength()) {
|
|
69234
69186
|
try {
|
|
69235
|
-
const knownLength = await
|
|
69187
|
+
const knownLength = await util.promisify(data.getLength).call(data);
|
|
69236
69188
|
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
|
|
69237
69189
|
} catch (e) {
|
|
69238
69190
|
}
|
|
@@ -69240,7 +69192,7 @@ var require_axios = __commonJS({
|
|
|
69240
69192
|
} else if (utils$1.isBlob(data) || utils$1.isFile(data)) {
|
|
69241
69193
|
data.size && headers.setContentType(data.type || "application/octet-stream");
|
|
69242
69194
|
headers.setContentLength(data.size || 0);
|
|
69243
|
-
data =
|
|
69195
|
+
data = stream.Readable.from(readBlob(data));
|
|
69244
69196
|
} else if (data && !utils$1.isStream(data)) {
|
|
69245
69197
|
if (Buffer.isBuffer(data)) ;
|
|
69246
69198
|
else if (utils$1.isArrayBuffer(data)) {
|
|
@@ -69248,23 +69200,11 @@ var require_axios = __commonJS({
|
|
|
69248
69200
|
} else if (utils$1.isString(data)) {
|
|
69249
69201
|
data = Buffer.from(data, "utf-8");
|
|
69250
69202
|
} else {
|
|
69251
|
-
return reject(
|
|
69252
|
-
new AxiosError$1(
|
|
69253
|
-
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
69254
|
-
AxiosError$1.ERR_BAD_REQUEST,
|
|
69255
|
-
config2
|
|
69256
|
-
)
|
|
69257
|
-
);
|
|
69203
|
+
return reject(new AxiosError("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", AxiosError.ERR_BAD_REQUEST, config2));
|
|
69258
69204
|
}
|
|
69259
69205
|
headers.setContentLength(data.length, false);
|
|
69260
69206
|
if (config2.maxBodyLength > -1 && data.length > config2.maxBodyLength) {
|
|
69261
|
-
return reject(
|
|
69262
|
-
new AxiosError$1(
|
|
69263
|
-
"Request body larger than maxBodyLength limit",
|
|
69264
|
-
AxiosError$1.ERR_BAD_REQUEST,
|
|
69265
|
-
config2
|
|
69266
|
-
)
|
|
69267
|
-
);
|
|
69207
|
+
return reject(new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config2));
|
|
69268
69208
|
}
|
|
69269
69209
|
}
|
|
69270
69210
|
const contentLength = utils$1.toFiniteNumber(headers.getContentLength());
|
|
@@ -69276,27 +69216,14 @@ var require_axios = __commonJS({
|
|
|
69276
69216
|
}
|
|
69277
69217
|
if (data && (onUploadProgress || maxUploadRate)) {
|
|
69278
69218
|
if (!utils$1.isStream(data)) {
|
|
69279
|
-
data =
|
|
69219
|
+
data = stream.Readable.from(data, {
|
|
69220
|
+
objectMode: false
|
|
69221
|
+
});
|
|
69280
69222
|
}
|
|
69281
|
-
data =
|
|
69282
|
-
|
|
69283
|
-
|
|
69284
|
-
|
|
69285
|
-
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
69286
|
-
})
|
|
69287
|
-
],
|
|
69288
|
-
utils$1.noop
|
|
69289
|
-
);
|
|
69290
|
-
onUploadProgress && data.on(
|
|
69291
|
-
"progress",
|
|
69292
|
-
flushOnFinish(
|
|
69293
|
-
data,
|
|
69294
|
-
progressEventDecorator(
|
|
69295
|
-
contentLength,
|
|
69296
|
-
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
69297
|
-
)
|
|
69298
|
-
)
|
|
69299
|
-
);
|
|
69223
|
+
data = stream.pipeline([data, new AxiosTransformStream({
|
|
69224
|
+
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
69225
|
+
})], utils$1.noop);
|
|
69226
|
+
onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
|
|
69300
69227
|
}
|
|
69301
69228
|
let auth = void 0;
|
|
69302
69229
|
if (config2.auth) {
|
|
@@ -69312,11 +69239,7 @@ var require_axios = __commonJS({
|
|
|
69312
69239
|
auth && headers.delete("authorization");
|
|
69313
69240
|
let path;
|
|
69314
69241
|
try {
|
|
69315
|
-
path = buildURL(
|
|
69316
|
-
parsed.pathname + parsed.search,
|
|
69317
|
-
config2.params,
|
|
69318
|
-
config2.paramsSerializer
|
|
69319
|
-
).replace(/^\?/, "");
|
|
69242
|
+
path = buildURL(parsed.pathname + parsed.search, config2.params, config2.paramsSerializer).replace(/^\?/, "");
|
|
69320
69243
|
} catch (err) {
|
|
69321
69244
|
const customErr = new Error(err.message);
|
|
69322
69245
|
customErr.config = config2;
|
|
@@ -69324,16 +69247,15 @@ var require_axios = __commonJS({
|
|
|
69324
69247
|
customErr.exists = true;
|
|
69325
69248
|
return reject(customErr);
|
|
69326
69249
|
}
|
|
69327
|
-
headers.set(
|
|
69328
|
-
"Accept-Encoding",
|
|
69329
|
-
"gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
|
|
69330
|
-
false
|
|
69331
|
-
);
|
|
69250
|
+
headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false);
|
|
69332
69251
|
const options = {
|
|
69333
69252
|
path,
|
|
69334
69253
|
method,
|
|
69335
69254
|
headers: headers.toJSON(),
|
|
69336
|
-
agents: {
|
|
69255
|
+
agents: {
|
|
69256
|
+
http: config2.httpAgent,
|
|
69257
|
+
https: config2.httpsAgent
|
|
69258
|
+
},
|
|
69337
69259
|
auth,
|
|
69338
69260
|
protocol,
|
|
69339
69261
|
family,
|
|
@@ -69347,11 +69269,7 @@ var require_axios = __commonJS({
|
|
|
69347
69269
|
} else {
|
|
69348
69270
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
69349
69271
|
options.port = parsed.port;
|
|
69350
|
-
setProxy(
|
|
69351
|
-
options,
|
|
69352
|
-
config2.proxy,
|
|
69353
|
-
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
69354
|
-
);
|
|
69272
|
+
setProxy(options, config2.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
69355
69273
|
}
|
|
69356
69274
|
let transport;
|
|
69357
69275
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
@@ -69362,7 +69280,7 @@ var require_axios = __commonJS({
|
|
|
69362
69280
|
if (config2.transport) {
|
|
69363
69281
|
transport = config2.transport;
|
|
69364
69282
|
} else if (config2.maxRedirects === 0) {
|
|
69365
|
-
transport = isHttpsRequest ?
|
|
69283
|
+
transport = isHttpsRequest ? https : http2;
|
|
69366
69284
|
} else {
|
|
69367
69285
|
if (config2.maxRedirects) {
|
|
69368
69286
|
options.maxRedirects = config2.maxRedirects;
|
|
@@ -69386,19 +69304,10 @@ var require_axios = __commonJS({
|
|
|
69386
69304
|
const streams = [res];
|
|
69387
69305
|
const responseLength = utils$1.toFiniteNumber(res.headers["content-length"]);
|
|
69388
69306
|
if (onDownloadProgress || maxDownloadRate) {
|
|
69389
|
-
const transformStream = new AxiosTransformStream
|
|
69307
|
+
const transformStream = new AxiosTransformStream({
|
|
69390
69308
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
69391
69309
|
});
|
|
69392
|
-
onDownloadProgress && transformStream.on(
|
|
69393
|
-
"progress",
|
|
69394
|
-
flushOnFinish(
|
|
69395
|
-
transformStream,
|
|
69396
|
-
progressEventDecorator(
|
|
69397
|
-
responseLength,
|
|
69398
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
69399
|
-
)
|
|
69400
|
-
)
|
|
69401
|
-
);
|
|
69310
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));
|
|
69402
69311
|
streams.push(transformStream);
|
|
69403
69312
|
}
|
|
69404
69313
|
let responseStream = res;
|
|
@@ -69413,26 +69322,26 @@ var require_axios = __commonJS({
|
|
|
69413
69322
|
case "x-gzip":
|
|
69414
69323
|
case "compress":
|
|
69415
69324
|
case "x-compress":
|
|
69416
|
-
streams.push(
|
|
69325
|
+
streams.push(zlib.createUnzip(zlibOptions));
|
|
69417
69326
|
delete res.headers["content-encoding"];
|
|
69418
69327
|
break;
|
|
69419
69328
|
case "deflate":
|
|
69420
|
-
streams.push(new ZlibHeaderTransformStream
|
|
69421
|
-
streams.push(
|
|
69329
|
+
streams.push(new ZlibHeaderTransformStream());
|
|
69330
|
+
streams.push(zlib.createUnzip(zlibOptions));
|
|
69422
69331
|
delete res.headers["content-encoding"];
|
|
69423
69332
|
break;
|
|
69424
69333
|
case "br":
|
|
69425
69334
|
if (isBrotliSupported) {
|
|
69426
|
-
streams.push(
|
|
69335
|
+
streams.push(zlib.createBrotliDecompress(brotliOptions));
|
|
69427
69336
|
delete res.headers["content-encoding"];
|
|
69428
69337
|
}
|
|
69429
69338
|
}
|
|
69430
69339
|
}
|
|
69431
|
-
responseStream = streams.length > 1 ?
|
|
69340
|
+
responseStream = streams.length > 1 ? stream.pipeline(streams, utils$1.noop) : streams[0];
|
|
69432
69341
|
const response = {
|
|
69433
69342
|
status: res.statusCode,
|
|
69434
69343
|
statusText: res.statusMessage,
|
|
69435
|
-
headers: new AxiosHeaders
|
|
69344
|
+
headers: new AxiosHeaders(res.headers),
|
|
69436
69345
|
config: config2,
|
|
69437
69346
|
request: lastRequest
|
|
69438
69347
|
};
|
|
@@ -69448,32 +69357,20 @@ var require_axios = __commonJS({
|
|
|
69448
69357
|
if (config2.maxContentLength > -1 && totalResponseBytes > config2.maxContentLength) {
|
|
69449
69358
|
rejected = true;
|
|
69450
69359
|
responseStream.destroy();
|
|
69451
|
-
abort(
|
|
69452
|
-
new AxiosError$1(
|
|
69453
|
-
"maxContentLength size of " + config2.maxContentLength + " exceeded",
|
|
69454
|
-
AxiosError$1.ERR_BAD_RESPONSE,
|
|
69455
|
-
config2,
|
|
69456
|
-
lastRequest
|
|
69457
|
-
)
|
|
69458
|
-
);
|
|
69360
|
+
abort(new AxiosError("maxContentLength size of " + config2.maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config2, lastRequest));
|
|
69459
69361
|
}
|
|
69460
69362
|
});
|
|
69461
69363
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
69462
69364
|
if (rejected) {
|
|
69463
69365
|
return;
|
|
69464
69366
|
}
|
|
69465
|
-
const err = new AxiosError
|
|
69466
|
-
"stream has been aborted",
|
|
69467
|
-
AxiosError$1.ERR_BAD_RESPONSE,
|
|
69468
|
-
config2,
|
|
69469
|
-
lastRequest
|
|
69470
|
-
);
|
|
69367
|
+
const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config2, lastRequest);
|
|
69471
69368
|
responseStream.destroy(err);
|
|
69472
69369
|
reject(err);
|
|
69473
69370
|
});
|
|
69474
69371
|
responseStream.on("error", function handleStreamError(err) {
|
|
69475
69372
|
if (req.destroyed) return;
|
|
69476
|
-
reject(AxiosError
|
|
69373
|
+
reject(AxiosError.from(err, null, config2, lastRequest));
|
|
69477
69374
|
});
|
|
69478
69375
|
responseStream.on("end", function handleStreamEnd() {
|
|
69479
69376
|
try {
|
|
@@ -69486,7 +69383,7 @@ var require_axios = __commonJS({
|
|
|
69486
69383
|
}
|
|
69487
69384
|
response.data = responseData;
|
|
69488
69385
|
} catch (err) {
|
|
69489
|
-
return reject(AxiosError
|
|
69386
|
+
return reject(AxiosError.from(err, null, config2, response.request, response));
|
|
69490
69387
|
}
|
|
69491
69388
|
settle(resolve, reject, response);
|
|
69492
69389
|
});
|
|
@@ -69506,7 +69403,7 @@ var require_axios = __commonJS({
|
|
|
69506
69403
|
}
|
|
69507
69404
|
});
|
|
69508
69405
|
req.on("error", function handleRequestError(err) {
|
|
69509
|
-
reject(AxiosError
|
|
69406
|
+
reject(AxiosError.from(err, null, config2, req));
|
|
69510
69407
|
});
|
|
69511
69408
|
req.on("socket", function handleRequestSocket(socket) {
|
|
69512
69409
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
@@ -69514,14 +69411,7 @@ var require_axios = __commonJS({
|
|
|
69514
69411
|
if (config2.timeout) {
|
|
69515
69412
|
const timeout = parseInt(config2.timeout, 10);
|
|
69516
69413
|
if (Number.isNaN(timeout)) {
|
|
69517
|
-
abort(
|
|
69518
|
-
new AxiosError$1(
|
|
69519
|
-
"error trying to parse `config.timeout` to int",
|
|
69520
|
-
AxiosError$1.ERR_BAD_OPTION_VALUE,
|
|
69521
|
-
config2,
|
|
69522
|
-
req
|
|
69523
|
-
)
|
|
69524
|
-
);
|
|
69414
|
+
abort(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config2, req));
|
|
69525
69415
|
return;
|
|
69526
69416
|
}
|
|
69527
69417
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
@@ -69531,14 +69421,7 @@ var require_axios = __commonJS({
|
|
|
69531
69421
|
if (config2.timeoutErrorMessage) {
|
|
69532
69422
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
69533
69423
|
}
|
|
69534
|
-
abort(
|
|
69535
|
-
new AxiosError$1(
|
|
69536
|
-
timeoutErrorMessage,
|
|
69537
|
-
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
69538
|
-
config2,
|
|
69539
|
-
req
|
|
69540
|
-
)
|
|
69541
|
-
);
|
|
69424
|
+
abort(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config2, req));
|
|
69542
69425
|
});
|
|
69543
69426
|
} else {
|
|
69544
69427
|
req.setTimeout(0);
|
|
@@ -69555,7 +69438,7 @@ var require_axios = __commonJS({
|
|
|
69555
69438
|
});
|
|
69556
69439
|
data.on("close", () => {
|
|
69557
69440
|
if (!ended && !errored) {
|
|
69558
|
-
abort(new CanceledError
|
|
69441
|
+
abort(new CanceledError("Request stream has been aborted", config2, req));
|
|
69559
69442
|
}
|
|
69560
69443
|
});
|
|
69561
69444
|
data.pipe(req);
|
|
@@ -69568,10 +69451,7 @@ var require_axios = __commonJS({
|
|
|
69568
69451
|
var isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url3) => {
|
|
69569
69452
|
url3 = new URL(url3, platform.origin);
|
|
69570
69453
|
return origin2.protocol === url3.protocol && origin2.host === url3.host && (isMSIE || origin2.port === url3.port);
|
|
69571
|
-
})(
|
|
69572
|
-
new URL(platform.origin),
|
|
69573
|
-
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
69574
|
-
) : () => true;
|
|
69454
|
+
})(new URL(platform.origin), platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)) : () => true;
|
|
69575
69455
|
var cookies = platform.hasStandardBrowserEnv ? (
|
|
69576
69456
|
// Standard browser envs support document.cookie
|
|
69577
69457
|
{
|
|
@@ -69616,13 +69496,17 @@ var require_axios = __commonJS({
|
|
|
69616
69496
|
}
|
|
69617
69497
|
}
|
|
69618
69498
|
);
|
|
69619
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders
|
|
69499
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders ? {
|
|
69500
|
+
...thing
|
|
69501
|
+
} : thing;
|
|
69620
69502
|
function mergeConfig(config1, config2) {
|
|
69621
69503
|
config2 = config2 || {};
|
|
69622
69504
|
const config3 = {};
|
|
69623
69505
|
function getMergedValue(target, source, prop, caseless) {
|
|
69624
69506
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
69625
|
-
return utils$1.merge.call({
|
|
69507
|
+
return utils$1.merge.call({
|
|
69508
|
+
caseless
|
|
69509
|
+
}, target, source);
|
|
69626
69510
|
} else if (utils$1.isPlainObject(source)) {
|
|
69627
69511
|
return utils$1.merge({}, source);
|
|
69628
69512
|
} else if (utils$1.isArray(source)) {
|
|
@@ -69687,7 +69571,10 @@ var require_axios = __commonJS({
|
|
|
69687
69571
|
validateStatus: mergeDirectKeys,
|
|
69688
69572
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
69689
69573
|
};
|
|
69690
|
-
utils$1.forEach(Object.keys({
|
|
69574
|
+
utils$1.forEach(Object.keys({
|
|
69575
|
+
...config1,
|
|
69576
|
+
...config2
|
|
69577
|
+
}), function computeConfigValue(prop) {
|
|
69691
69578
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
69692
69579
|
const merge3 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
69693
69580
|
const configValue = merge3(config1[prop], config2[prop], prop);
|
|
@@ -69697,20 +69584,18 @@ var require_axios = __commonJS({
|
|
|
69697
69584
|
}
|
|
69698
69585
|
var resolveConfig = (config2) => {
|
|
69699
69586
|
const newConfig = mergeConfig({}, config2);
|
|
69700
|
-
let {
|
|
69701
|
-
|
|
69702
|
-
|
|
69703
|
-
|
|
69704
|
-
|
|
69705
|
-
|
|
69706
|
-
|
|
69587
|
+
let {
|
|
69588
|
+
data,
|
|
69589
|
+
withXSRFToken,
|
|
69590
|
+
xsrfHeaderName,
|
|
69591
|
+
xsrfCookieName,
|
|
69592
|
+
headers,
|
|
69593
|
+
auth
|
|
69594
|
+
} = newConfig;
|
|
69595
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
69596
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config2.params, config2.paramsSerializer);
|
|
69707
69597
|
if (auth) {
|
|
69708
|
-
headers.set(
|
|
69709
|
-
"Authorization",
|
|
69710
|
-
"Basic " + btoa(
|
|
69711
|
-
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
69712
|
-
)
|
|
69713
|
-
);
|
|
69598
|
+
headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
|
|
69714
69599
|
}
|
|
69715
69600
|
if (utils$1.isFormData(data)) {
|
|
69716
69601
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
@@ -69741,8 +69626,12 @@ var require_axios = __commonJS({
|
|
|
69741
69626
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
69742
69627
|
const _config = resolveConfig(config2);
|
|
69743
69628
|
let requestData = _config.data;
|
|
69744
|
-
const requestHeaders = AxiosHeaders
|
|
69745
|
-
let {
|
|
69629
|
+
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
69630
|
+
let {
|
|
69631
|
+
responseType,
|
|
69632
|
+
onUploadProgress,
|
|
69633
|
+
onDownloadProgress
|
|
69634
|
+
} = _config;
|
|
69746
69635
|
let onCanceled;
|
|
69747
69636
|
let uploadThrottled, downloadThrottled;
|
|
69748
69637
|
let flushUpload, flushDownload;
|
|
@@ -69759,9 +69648,7 @@ var require_axios = __commonJS({
|
|
|
69759
69648
|
if (!request) {
|
|
69760
69649
|
return;
|
|
69761
69650
|
}
|
|
69762
|
-
const responseHeaders = AxiosHeaders
|
|
69763
|
-
"getAllResponseHeaders" in request && request.getAllResponseHeaders()
|
|
69764
|
-
);
|
|
69651
|
+
const responseHeaders = AxiosHeaders.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
|
|
69765
69652
|
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
69766
69653
|
const response = {
|
|
69767
69654
|
data: responseData,
|
|
@@ -69771,17 +69658,13 @@ var require_axios = __commonJS({
|
|
|
69771
69658
|
config: config2,
|
|
69772
69659
|
request
|
|
69773
69660
|
};
|
|
69774
|
-
settle(
|
|
69775
|
-
|
|
69776
|
-
|
|
69777
|
-
|
|
69778
|
-
|
|
69779
|
-
|
|
69780
|
-
|
|
69781
|
-
done();
|
|
69782
|
-
},
|
|
69783
|
-
response
|
|
69784
|
-
);
|
|
69661
|
+
settle(function _resolve(value) {
|
|
69662
|
+
resolve(value);
|
|
69663
|
+
done();
|
|
69664
|
+
}, function _reject(err) {
|
|
69665
|
+
reject(err);
|
|
69666
|
+
done();
|
|
69667
|
+
}, response);
|
|
69785
69668
|
request = null;
|
|
69786
69669
|
}
|
|
69787
69670
|
if ("onloadend" in request) {
|
|
@@ -69801,12 +69684,12 @@ var require_axios = __commonJS({
|
|
|
69801
69684
|
if (!request) {
|
|
69802
69685
|
return;
|
|
69803
69686
|
}
|
|
69804
|
-
reject(new AxiosError
|
|
69687
|
+
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config2, request));
|
|
69805
69688
|
request = null;
|
|
69806
69689
|
};
|
|
69807
69690
|
request.onerror = function handleError(event) {
|
|
69808
69691
|
const msg = event && event.message ? event.message : "Network Error";
|
|
69809
|
-
const err = new AxiosError
|
|
69692
|
+
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config2, request);
|
|
69810
69693
|
err.event = event || null;
|
|
69811
69694
|
reject(err);
|
|
69812
69695
|
request = null;
|
|
@@ -69817,14 +69700,7 @@ var require_axios = __commonJS({
|
|
|
69817
69700
|
if (_config.timeoutErrorMessage) {
|
|
69818
69701
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
69819
69702
|
}
|
|
69820
|
-
reject(
|
|
69821
|
-
new AxiosError$1(
|
|
69822
|
-
timeoutErrorMessage,
|
|
69823
|
-
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
69824
|
-
config2,
|
|
69825
|
-
request
|
|
69826
|
-
)
|
|
69827
|
-
);
|
|
69703
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config2, request));
|
|
69828
69704
|
request = null;
|
|
69829
69705
|
};
|
|
69830
69706
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -69853,7 +69729,7 @@ var require_axios = __commonJS({
|
|
|
69853
69729
|
if (!request) {
|
|
69854
69730
|
return;
|
|
69855
69731
|
}
|
|
69856
|
-
reject(!cancel || cancel.type ? new CanceledError
|
|
69732
|
+
reject(!cancel || cancel.type ? new CanceledError(null, config2, request) : cancel);
|
|
69857
69733
|
request.abort();
|
|
69858
69734
|
request = null;
|
|
69859
69735
|
};
|
|
@@ -69864,20 +69740,16 @@ var require_axios = __commonJS({
|
|
|
69864
69740
|
}
|
|
69865
69741
|
const protocol = parseProtocol(_config.url);
|
|
69866
69742
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
69867
|
-
reject(
|
|
69868
|
-
new AxiosError$1(
|
|
69869
|
-
"Unsupported protocol " + protocol + ":",
|
|
69870
|
-
AxiosError$1.ERR_BAD_REQUEST,
|
|
69871
|
-
config2
|
|
69872
|
-
)
|
|
69873
|
-
);
|
|
69743
|
+
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config2));
|
|
69874
69744
|
return;
|
|
69875
69745
|
}
|
|
69876
69746
|
request.send(requestData || null);
|
|
69877
69747
|
});
|
|
69878
69748
|
};
|
|
69879
69749
|
var composeSignals = (signals, timeout) => {
|
|
69880
|
-
const {
|
|
69750
|
+
const {
|
|
69751
|
+
length
|
|
69752
|
+
} = signals = signals ? signals.filter(Boolean) : [];
|
|
69881
69753
|
if (timeout || length) {
|
|
69882
69754
|
let controller = new AbortController();
|
|
69883
69755
|
let aborted2;
|
|
@@ -69886,14 +69758,12 @@ var require_axios = __commonJS({
|
|
|
69886
69758
|
aborted2 = true;
|
|
69887
69759
|
unsubscribe();
|
|
69888
69760
|
const err = reason instanceof Error ? reason : this.reason;
|
|
69889
|
-
controller.abort(
|
|
69890
|
-
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
69891
|
-
);
|
|
69761
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
69892
69762
|
}
|
|
69893
69763
|
};
|
|
69894
69764
|
let timer = timeout && setTimeout(() => {
|
|
69895
69765
|
timer = null;
|
|
69896
|
-
onabort(new AxiosError
|
|
69766
|
+
onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
|
|
69897
69767
|
}, timeout);
|
|
69898
69768
|
const unsubscribe = () => {
|
|
69899
69769
|
if (signals) {
|
|
@@ -69906,15 +69776,16 @@ var require_axios = __commonJS({
|
|
|
69906
69776
|
}
|
|
69907
69777
|
};
|
|
69908
69778
|
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
69909
|
-
const {
|
|
69779
|
+
const {
|
|
69780
|
+
signal
|
|
69781
|
+
} = controller;
|
|
69910
69782
|
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
69911
69783
|
return signal;
|
|
69912
69784
|
}
|
|
69913
69785
|
};
|
|
69914
|
-
var composeSignals$1 = composeSignals;
|
|
69915
69786
|
var streamChunk = function* (chunk, chunkSize) {
|
|
69916
69787
|
let len = chunk.byteLength;
|
|
69917
|
-
if (
|
|
69788
|
+
if (len < chunkSize) {
|
|
69918
69789
|
yield chunk;
|
|
69919
69790
|
return;
|
|
69920
69791
|
}
|
|
@@ -69939,7 +69810,10 @@ var require_axios = __commonJS({
|
|
|
69939
69810
|
const reader = stream2.getReader();
|
|
69940
69811
|
try {
|
|
69941
69812
|
for (; ; ) {
|
|
69942
|
-
const {
|
|
69813
|
+
const {
|
|
69814
|
+
done,
|
|
69815
|
+
value
|
|
69816
|
+
} = await reader.read();
|
|
69943
69817
|
if (done) {
|
|
69944
69818
|
break;
|
|
69945
69819
|
}
|
|
@@ -69959,44 +69833,52 @@ var require_axios = __commonJS({
|
|
|
69959
69833
|
onFinish && onFinish(e);
|
|
69960
69834
|
}
|
|
69961
69835
|
};
|
|
69962
|
-
return new ReadableStream(
|
|
69963
|
-
{
|
|
69964
|
-
|
|
69965
|
-
|
|
69966
|
-
|
|
69967
|
-
|
|
69968
|
-
|
|
69969
|
-
|
|
69970
|
-
|
|
69971
|
-
|
|
69972
|
-
|
|
69973
|
-
if (onProgress) {
|
|
69974
|
-
let loadedBytes = bytes += len;
|
|
69975
|
-
onProgress(loadedBytes);
|
|
69976
|
-
}
|
|
69977
|
-
controller.enqueue(new Uint8Array(value));
|
|
69978
|
-
} catch (err) {
|
|
69979
|
-
_onFinish(err);
|
|
69980
|
-
throw err;
|
|
69836
|
+
return new ReadableStream({
|
|
69837
|
+
async pull(controller) {
|
|
69838
|
+
try {
|
|
69839
|
+
const {
|
|
69840
|
+
done: done2,
|
|
69841
|
+
value
|
|
69842
|
+
} = await iterator2.next();
|
|
69843
|
+
if (done2) {
|
|
69844
|
+
_onFinish();
|
|
69845
|
+
controller.close();
|
|
69846
|
+
return;
|
|
69981
69847
|
}
|
|
69982
|
-
|
|
69983
|
-
|
|
69984
|
-
|
|
69985
|
-
|
|
69848
|
+
let len = value.byteLength;
|
|
69849
|
+
if (onProgress) {
|
|
69850
|
+
let loadedBytes = bytes += len;
|
|
69851
|
+
onProgress(loadedBytes);
|
|
69852
|
+
}
|
|
69853
|
+
controller.enqueue(new Uint8Array(value));
|
|
69854
|
+
} catch (err) {
|
|
69855
|
+
_onFinish(err);
|
|
69856
|
+
throw err;
|
|
69986
69857
|
}
|
|
69987
69858
|
},
|
|
69988
|
-
{
|
|
69989
|
-
|
|
69859
|
+
cancel(reason) {
|
|
69860
|
+
_onFinish(reason);
|
|
69861
|
+
return iterator2.return();
|
|
69990
69862
|
}
|
|
69991
|
-
|
|
69863
|
+
}, {
|
|
69864
|
+
highWaterMark: 2
|
|
69865
|
+
});
|
|
69992
69866
|
};
|
|
69993
69867
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
69994
|
-
var {
|
|
69995
|
-
|
|
69868
|
+
var {
|
|
69869
|
+
isFunction
|
|
69870
|
+
} = utils$1;
|
|
69871
|
+
var globalFetchAPI = (({
|
|
69872
|
+
Request: Request2,
|
|
69873
|
+
Response
|
|
69874
|
+
}) => ({
|
|
69996
69875
|
Request: Request2,
|
|
69997
69876
|
Response
|
|
69998
69877
|
}))(utils$1.global);
|
|
69999
|
-
var {
|
|
69878
|
+
var {
|
|
69879
|
+
ReadableStream: ReadableStream$1,
|
|
69880
|
+
TextEncoder: TextEncoder$1
|
|
69881
|
+
} = utils$1.global;
|
|
70000
69882
|
var test = (fn, ...args) => {
|
|
70001
69883
|
try {
|
|
70002
69884
|
return !!fn(...args);
|
|
@@ -70005,14 +69887,14 @@ var require_axios = __commonJS({
|
|
|
70005
69887
|
}
|
|
70006
69888
|
};
|
|
70007
69889
|
var factory = (env) => {
|
|
70008
|
-
env = utils$1.merge.call(
|
|
70009
|
-
|
|
70010
|
-
|
|
70011
|
-
|
|
70012
|
-
|
|
70013
|
-
|
|
70014
|
-
|
|
70015
|
-
|
|
69890
|
+
env = utils$1.merge.call({
|
|
69891
|
+
skipUndefined: true
|
|
69892
|
+
}, globalFetchAPI, env);
|
|
69893
|
+
const {
|
|
69894
|
+
fetch: envFetch,
|
|
69895
|
+
Request: Request2,
|
|
69896
|
+
Response
|
|
69897
|
+
} = env;
|
|
70016
69898
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
70017
69899
|
const isRequestSupported = isFunction(Request2);
|
|
70018
69900
|
const isResponseSupported = isFunction(Response);
|
|
@@ -70023,14 +69905,16 @@ var require_axios = __commonJS({
|
|
|
70023
69905
|
const encodeText = isFetchSupported && (typeof TextEncoder$1 === "function" ? /* @__PURE__ */ ((encoder5) => (str) => encoder5.encode(str))(new TextEncoder$1()) : async (str) => new Uint8Array(await new Request2(str).arrayBuffer()));
|
|
70024
69906
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
70025
69907
|
let duplexAccessed = false;
|
|
69908
|
+
const body = new ReadableStream$1();
|
|
70026
69909
|
const hasContentType = new Request2(platform.origin, {
|
|
70027
|
-
body
|
|
69910
|
+
body,
|
|
70028
69911
|
method: "POST",
|
|
70029
69912
|
get duplex() {
|
|
70030
69913
|
duplexAccessed = true;
|
|
70031
69914
|
return "half";
|
|
70032
69915
|
}
|
|
70033
69916
|
}).headers.has("Content-Type");
|
|
69917
|
+
body.cancel();
|
|
70034
69918
|
return duplexAccessed && !hasContentType;
|
|
70035
69919
|
});
|
|
70036
69920
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
@@ -70044,11 +69928,7 @@ var require_axios = __commonJS({
|
|
|
70044
69928
|
if (method) {
|
|
70045
69929
|
return method.call(res);
|
|
70046
69930
|
}
|
|
70047
|
-
throw new AxiosError$
|
|
70048
|
-
`Response type '${type}' is not supported`,
|
|
70049
|
-
AxiosError$1.ERR_NOT_SUPPORT,
|
|
70050
|
-
config2
|
|
70051
|
-
);
|
|
69931
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config2);
|
|
70052
69932
|
});
|
|
70053
69933
|
});
|
|
70054
69934
|
})();
|
|
@@ -70097,10 +69977,7 @@ var require_axios = __commonJS({
|
|
|
70097
69977
|
} = resolveConfig(config2);
|
|
70098
69978
|
let _fetch = envFetch || fetch;
|
|
70099
69979
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
70100
|
-
let composedSignal = composeSignals
|
|
70101
|
-
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
70102
|
-
timeout
|
|
70103
|
-
);
|
|
69980
|
+
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
70104
69981
|
let request = null;
|
|
70105
69982
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
70106
69983
|
composedSignal.unsubscribe();
|
|
@@ -70118,10 +69995,7 @@ var require_axios = __commonJS({
|
|
|
70118
69995
|
headers.setContentType(contentTypeHeader);
|
|
70119
69996
|
}
|
|
70120
69997
|
if (_request.body) {
|
|
70121
|
-
const [onProgress, flush] = progressEventDecorator(
|
|
70122
|
-
requestContentLength,
|
|
70123
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
70124
|
-
);
|
|
69998
|
+
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
70125
69999
|
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
70126
70000
|
}
|
|
70127
70001
|
}
|
|
@@ -70147,28 +70021,19 @@ var require_axios = __commonJS({
|
|
|
70147
70021
|
options[prop] = response[prop];
|
|
70148
70022
|
});
|
|
70149
70023
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
70150
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
70151
|
-
|
|
70152
|
-
|
|
70153
|
-
|
|
70154
|
-
|
|
70155
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
70156
|
-
flush && flush();
|
|
70157
|
-
unsubscribe && unsubscribe();
|
|
70158
|
-
}),
|
|
70159
|
-
options
|
|
70160
|
-
);
|
|
70024
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
70025
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
70026
|
+
flush && flush();
|
|
70027
|
+
unsubscribe && unsubscribe();
|
|
70028
|
+
}), options);
|
|
70161
70029
|
}
|
|
70162
70030
|
responseType = responseType || "text";
|
|
70163
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
70164
|
-
response,
|
|
70165
|
-
config2
|
|
70166
|
-
);
|
|
70031
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config2);
|
|
70167
70032
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
70168
70033
|
return await new Promise((resolve, reject) => {
|
|
70169
70034
|
settle(resolve, reject, {
|
|
70170
70035
|
data: responseData,
|
|
70171
|
-
headers: AxiosHeaders
|
|
70036
|
+
headers: AxiosHeaders.from(response.headers),
|
|
70172
70037
|
status: response.status,
|
|
70173
70038
|
statusText: response.statusText,
|
|
70174
70039
|
config: config2,
|
|
@@ -70178,27 +70043,22 @@ var require_axios = __commonJS({
|
|
|
70178
70043
|
} catch (err) {
|
|
70179
70044
|
unsubscribe && unsubscribe();
|
|
70180
70045
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
70181
|
-
throw Object.assign(
|
|
70182
|
-
|
|
70183
|
-
|
|
70184
|
-
AxiosError$1.ERR_NETWORK,
|
|
70185
|
-
config2,
|
|
70186
|
-
request,
|
|
70187
|
-
err && err.response
|
|
70188
|
-
),
|
|
70189
|
-
{
|
|
70190
|
-
cause: err.cause || err
|
|
70191
|
-
}
|
|
70192
|
-
);
|
|
70046
|
+
throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config2, request, err && err.response), {
|
|
70047
|
+
cause: err.cause || err
|
|
70048
|
+
});
|
|
70193
70049
|
}
|
|
70194
|
-
throw AxiosError
|
|
70050
|
+
throw AxiosError.from(err, err && err.code, config2, request, err && err.response);
|
|
70195
70051
|
}
|
|
70196
70052
|
};
|
|
70197
70053
|
};
|
|
70198
70054
|
var seedCache = /* @__PURE__ */ new Map();
|
|
70199
70055
|
var getFetch = (config2) => {
|
|
70200
70056
|
let env = config2 && config2.env || {};
|
|
70201
|
-
const {
|
|
70057
|
+
const {
|
|
70058
|
+
fetch: fetch2,
|
|
70059
|
+
Request: Request2,
|
|
70060
|
+
Response
|
|
70061
|
+
} = env;
|
|
70202
70062
|
const seeds = [Request2, Response, fetch2];
|
|
70203
70063
|
let len = seeds.length, i = len, seed, target, map2 = seedCache;
|
|
70204
70064
|
while (i--) {
|
|
@@ -70220,17 +70080,23 @@ var require_axios = __commonJS({
|
|
|
70220
70080
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
70221
70081
|
if (fn) {
|
|
70222
70082
|
try {
|
|
70223
|
-
Object.defineProperty(fn, "name", {
|
|
70083
|
+
Object.defineProperty(fn, "name", {
|
|
70084
|
+
value
|
|
70085
|
+
});
|
|
70224
70086
|
} catch (e) {
|
|
70225
70087
|
}
|
|
70226
|
-
Object.defineProperty(fn, "adapterName", {
|
|
70088
|
+
Object.defineProperty(fn, "adapterName", {
|
|
70089
|
+
value
|
|
70090
|
+
});
|
|
70227
70091
|
}
|
|
70228
70092
|
});
|
|
70229
70093
|
var renderReason = (reason) => `- ${reason}`;
|
|
70230
70094
|
var isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
70231
70095
|
function getAdapter(adapters2, config2) {
|
|
70232
70096
|
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
70233
|
-
const {
|
|
70097
|
+
const {
|
|
70098
|
+
length
|
|
70099
|
+
} = adapters2;
|
|
70234
70100
|
let nameOrAdapter;
|
|
70235
70101
|
let adapter;
|
|
70236
70102
|
const rejectedReasons = {};
|
|
@@ -70241,7 +70107,7 @@ var require_axios = __commonJS({
|
|
|
70241
70107
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
70242
70108
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
70243
70109
|
if (adapter === void 0) {
|
|
70244
|
-
throw new AxiosError
|
|
70110
|
+
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
70245
70111
|
}
|
|
70246
70112
|
}
|
|
70247
70113
|
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config2)))) {
|
|
@@ -70250,14 +70116,9 @@ var require_axios = __commonJS({
|
|
|
70250
70116
|
rejectedReasons[id || "#" + i] = adapter;
|
|
70251
70117
|
}
|
|
70252
70118
|
if (!adapter) {
|
|
70253
|
-
const reasons = Object.entries(rejectedReasons).map(
|
|
70254
|
-
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
70255
|
-
);
|
|
70119
|
+
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
70256
70120
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
70257
|
-
throw new AxiosError
|
|
70258
|
-
`There is no suitable adapter to dispatch the request ` + s,
|
|
70259
|
-
"ERR_NOT_SUPPORT"
|
|
70260
|
-
);
|
|
70121
|
+
throw new AxiosError(`There is no suitable adapter to dispatch the request ` + s, "ERR_NOT_SUPPORT");
|
|
70261
70122
|
}
|
|
70262
70123
|
return adapter;
|
|
70263
70124
|
}
|
|
@@ -70278,39 +70139,32 @@ var require_axios = __commonJS({
|
|
|
70278
70139
|
config2.cancelToken.throwIfRequested();
|
|
70279
70140
|
}
|
|
70280
70141
|
if (config2.signal && config2.signal.aborted) {
|
|
70281
|
-
throw new CanceledError
|
|
70142
|
+
throw new CanceledError(null, config2);
|
|
70282
70143
|
}
|
|
70283
70144
|
}
|
|
70284
70145
|
function dispatchRequest(config2) {
|
|
70285
70146
|
throwIfCancellationRequested(config2);
|
|
70286
|
-
config2.headers = AxiosHeaders
|
|
70147
|
+
config2.headers = AxiosHeaders.from(config2.headers);
|
|
70287
70148
|
config2.data = transformData.call(config2, config2.transformRequest);
|
|
70288
70149
|
if (["post", "put", "patch"].indexOf(config2.method) !== -1) {
|
|
70289
70150
|
config2.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
70290
70151
|
}
|
|
70291
|
-
const adapter = adapters.getAdapter(config2.adapter || defaults
|
|
70292
|
-
return adapter(config2).then(
|
|
70293
|
-
|
|
70152
|
+
const adapter = adapters.getAdapter(config2.adapter || defaults.adapter, config2);
|
|
70153
|
+
return adapter(config2).then(function onAdapterResolution(response) {
|
|
70154
|
+
throwIfCancellationRequested(config2);
|
|
70155
|
+
response.data = transformData.call(config2, config2.transformResponse, response);
|
|
70156
|
+
response.headers = AxiosHeaders.from(response.headers);
|
|
70157
|
+
return response;
|
|
70158
|
+
}, function onAdapterRejection(reason) {
|
|
70159
|
+
if (!isCancel(reason)) {
|
|
70294
70160
|
throwIfCancellationRequested(config2);
|
|
70295
|
-
|
|
70296
|
-
|
|
70297
|
-
|
|
70298
|
-
},
|
|
70299
|
-
function onAdapterRejection(reason) {
|
|
70300
|
-
if (!isCancel(reason)) {
|
|
70301
|
-
throwIfCancellationRequested(config2);
|
|
70302
|
-
if (reason && reason.response) {
|
|
70303
|
-
reason.response.data = transformData.call(
|
|
70304
|
-
config2,
|
|
70305
|
-
config2.transformResponse,
|
|
70306
|
-
reason.response
|
|
70307
|
-
);
|
|
70308
|
-
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
70309
|
-
}
|
|
70161
|
+
if (reason && reason.response) {
|
|
70162
|
+
reason.response.data = transformData.call(config2, config2.transformResponse, reason.response);
|
|
70163
|
+
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
70310
70164
|
}
|
|
70311
|
-
return Promise.reject(reason);
|
|
70312
70165
|
}
|
|
70313
|
-
|
|
70166
|
+
return Promise.reject(reason);
|
|
70167
|
+
});
|
|
70314
70168
|
}
|
|
70315
70169
|
var validators$1 = {};
|
|
70316
70170
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
@@ -70325,19 +70179,11 @@ var require_axios = __commonJS({
|
|
|
70325
70179
|
}
|
|
70326
70180
|
return (value, opt, opts) => {
|
|
70327
70181
|
if (validator2 === false) {
|
|
70328
|
-
throw new AxiosError
|
|
70329
|
-
formatMessage(opt, " has been removed" + (version5 ? " in " + version5 : "")),
|
|
70330
|
-
AxiosError$1.ERR_DEPRECATED
|
|
70331
|
-
);
|
|
70182
|
+
throw new AxiosError(formatMessage(opt, " has been removed" + (version5 ? " in " + version5 : "")), AxiosError.ERR_DEPRECATED);
|
|
70332
70183
|
}
|
|
70333
70184
|
if (version5 && !deprecatedWarnings[opt]) {
|
|
70334
70185
|
deprecatedWarnings[opt] = true;
|
|
70335
|
-
console.warn(
|
|
70336
|
-
formatMessage(
|
|
70337
|
-
opt,
|
|
70338
|
-
" has been deprecated since v" + version5 + " and will be removed in the near future"
|
|
70339
|
-
)
|
|
70340
|
-
);
|
|
70186
|
+
console.warn(formatMessage(opt, " has been deprecated since v" + version5 + " and will be removed in the near future"));
|
|
70341
70187
|
}
|
|
70342
70188
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
70343
70189
|
};
|
|
@@ -70350,7 +70196,7 @@ var require_axios = __commonJS({
|
|
|
70350
70196
|
};
|
|
70351
70197
|
function assertOptions(options, schema, allowUnknown) {
|
|
70352
70198
|
if (typeof options !== "object") {
|
|
70353
|
-
throw new AxiosError
|
|
70199
|
+
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
70354
70200
|
}
|
|
70355
70201
|
const keys = Object.keys(options);
|
|
70356
70202
|
let i = keys.length;
|
|
@@ -70361,15 +70207,12 @@ var require_axios = __commonJS({
|
|
|
70361
70207
|
const value = options[opt];
|
|
70362
70208
|
const result = value === void 0 || validator2(value, opt, options);
|
|
70363
70209
|
if (result !== true) {
|
|
70364
|
-
throw new AxiosError
|
|
70365
|
-
"option " + opt + " must be " + result,
|
|
70366
|
-
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
70367
|
-
);
|
|
70210
|
+
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
70368
70211
|
}
|
|
70369
70212
|
continue;
|
|
70370
70213
|
}
|
|
70371
70214
|
if (allowUnknown !== true) {
|
|
70372
|
-
throw new AxiosError
|
|
70215
|
+
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
70373
70216
|
}
|
|
70374
70217
|
}
|
|
70375
70218
|
}
|
|
@@ -70382,8 +70225,8 @@ var require_axios = __commonJS({
|
|
|
70382
70225
|
constructor(instanceConfig) {
|
|
70383
70226
|
this.defaults = instanceConfig || {};
|
|
70384
70227
|
this.interceptors = {
|
|
70385
|
-
request: new InterceptorManager
|
|
70386
|
-
response: new InterceptorManager
|
|
70228
|
+
request: new InterceptorManager(),
|
|
70229
|
+
response: new InterceptorManager()
|
|
70387
70230
|
};
|
|
70388
70231
|
}
|
|
70389
70232
|
/**
|
|
@@ -70422,18 +70265,18 @@ var require_axios = __commonJS({
|
|
|
70422
70265
|
config2 = configOrUrl || {};
|
|
70423
70266
|
}
|
|
70424
70267
|
config2 = mergeConfig(this.defaults, config2);
|
|
70425
|
-
const {
|
|
70268
|
+
const {
|
|
70269
|
+
transitional,
|
|
70270
|
+
paramsSerializer,
|
|
70271
|
+
headers
|
|
70272
|
+
} = config2;
|
|
70426
70273
|
if (transitional !== void 0) {
|
|
70427
|
-
validator.assertOptions(
|
|
70428
|
-
transitional,
|
|
70429
|
-
|
|
70430
|
-
|
|
70431
|
-
|
|
70432
|
-
|
|
70433
|
-
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
70434
|
-
},
|
|
70435
|
-
false
|
|
70436
|
-
);
|
|
70274
|
+
validator.assertOptions(transitional, {
|
|
70275
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
70276
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
70277
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
70278
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
70279
|
+
}, false);
|
|
70437
70280
|
}
|
|
70438
70281
|
if (paramsSerializer != null) {
|
|
70439
70282
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
@@ -70441,14 +70284,10 @@ var require_axios = __commonJS({
|
|
|
70441
70284
|
serialize: paramsSerializer
|
|
70442
70285
|
};
|
|
70443
70286
|
} else {
|
|
70444
|
-
validator.assertOptions(
|
|
70445
|
-
|
|
70446
|
-
|
|
70447
|
-
|
|
70448
|
-
serialize: validators.function
|
|
70449
|
-
},
|
|
70450
|
-
true
|
|
70451
|
-
);
|
|
70287
|
+
validator.assertOptions(paramsSerializer, {
|
|
70288
|
+
encode: validators.function,
|
|
70289
|
+
serialize: validators.function
|
|
70290
|
+
}, true);
|
|
70452
70291
|
}
|
|
70453
70292
|
}
|
|
70454
70293
|
if (config2.allowAbsoluteUrls !== void 0) ;
|
|
@@ -70457,20 +70296,16 @@ var require_axios = __commonJS({
|
|
|
70457
70296
|
} else {
|
|
70458
70297
|
config2.allowAbsoluteUrls = true;
|
|
70459
70298
|
}
|
|
70460
|
-
validator.assertOptions(
|
|
70461
|
-
|
|
70462
|
-
|
|
70463
|
-
|
|
70464
|
-
withXsrfToken: validators.spelling("withXSRFToken")
|
|
70465
|
-
},
|
|
70466
|
-
true
|
|
70467
|
-
);
|
|
70299
|
+
validator.assertOptions(config2, {
|
|
70300
|
+
baseUrl: validators.spelling("baseURL"),
|
|
70301
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
70302
|
+
}, true);
|
|
70468
70303
|
config2.method = (config2.method || this.defaults.method || "get").toLowerCase();
|
|
70469
70304
|
let contextHeaders = headers && utils$1.merge(headers.common, headers[config2.method]);
|
|
70470
70305
|
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
70471
70306
|
delete headers[method];
|
|
70472
70307
|
});
|
|
70473
|
-
config2.headers = AxiosHeaders
|
|
70308
|
+
config2.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
70474
70309
|
const requestInterceptorChain = [];
|
|
70475
70310
|
let synchronousRequestInterceptors = true;
|
|
70476
70311
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
@@ -70536,34 +70371,29 @@ var require_axios = __commonJS({
|
|
|
70536
70371
|
};
|
|
70537
70372
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
70538
70373
|
Axios.prototype[method] = function(url3, config2) {
|
|
70539
|
-
return this.request(
|
|
70540
|
-
|
|
70541
|
-
|
|
70542
|
-
|
|
70543
|
-
|
|
70544
|
-
})
|
|
70545
|
-
);
|
|
70374
|
+
return this.request(mergeConfig(config2 || {}, {
|
|
70375
|
+
method,
|
|
70376
|
+
url: url3,
|
|
70377
|
+
data: (config2 || {}).data
|
|
70378
|
+
}));
|
|
70546
70379
|
};
|
|
70547
70380
|
});
|
|
70548
70381
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
70549
70382
|
function generateHTTPMethod(isForm) {
|
|
70550
70383
|
return function httpMethod(url3, data, config2) {
|
|
70551
|
-
return this.request(
|
|
70552
|
-
|
|
70553
|
-
|
|
70554
|
-
|
|
70555
|
-
|
|
70556
|
-
|
|
70557
|
-
|
|
70558
|
-
|
|
70559
|
-
})
|
|
70560
|
-
);
|
|
70384
|
+
return this.request(mergeConfig(config2 || {}, {
|
|
70385
|
+
method,
|
|
70386
|
+
headers: isForm ? {
|
|
70387
|
+
"Content-Type": "multipart/form-data"
|
|
70388
|
+
} : {},
|
|
70389
|
+
url: url3,
|
|
70390
|
+
data
|
|
70391
|
+
}));
|
|
70561
70392
|
};
|
|
70562
70393
|
}
|
|
70563
70394
|
Axios.prototype[method] = generateHTTPMethod();
|
|
70564
70395
|
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
70565
70396
|
});
|
|
70566
|
-
var Axios$1 = Axios;
|
|
70567
70397
|
var CancelToken = class _CancelToken {
|
|
70568
70398
|
constructor(executor) {
|
|
70569
70399
|
if (typeof executor !== "function") {
|
|
@@ -70597,7 +70427,7 @@ var require_axios = __commonJS({
|
|
|
70597
70427
|
if (token.reason) {
|
|
70598
70428
|
return;
|
|
70599
70429
|
}
|
|
70600
|
-
token.reason = new CanceledError
|
|
70430
|
+
token.reason = new CanceledError(message2, config2, request);
|
|
70601
70431
|
resolvePromise(token.reason);
|
|
70602
70432
|
});
|
|
70603
70433
|
}
|
|
@@ -70659,7 +70489,6 @@ var require_axios = __commonJS({
|
|
|
70659
70489
|
};
|
|
70660
70490
|
}
|
|
70661
70491
|
};
|
|
70662
|
-
var CancelToken$1 = CancelToken;
|
|
70663
70492
|
function spread(callback) {
|
|
70664
70493
|
return function wrap3(arr) {
|
|
70665
70494
|
return callback.apply(null, arr);
|
|
@@ -70742,25 +70571,28 @@ var require_axios = __commonJS({
|
|
|
70742
70571
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
70743
70572
|
HttpStatusCode[value] = key;
|
|
70744
70573
|
});
|
|
70745
|
-
var HttpStatusCode$1 = HttpStatusCode;
|
|
70746
70574
|
function createInstance(defaultConfig) {
|
|
70747
|
-
const context = new Axios
|
|
70748
|
-
const instance = bind(Axios
|
|
70749
|
-
utils$1.extend(instance, Axios
|
|
70750
|
-
|
|
70575
|
+
const context = new Axios(defaultConfig);
|
|
70576
|
+
const instance = bind(Axios.prototype.request, context);
|
|
70577
|
+
utils$1.extend(instance, Axios.prototype, context, {
|
|
70578
|
+
allOwnKeys: true
|
|
70579
|
+
});
|
|
70580
|
+
utils$1.extend(instance, context, null, {
|
|
70581
|
+
allOwnKeys: true
|
|
70582
|
+
});
|
|
70751
70583
|
instance.create = function create2(instanceConfig) {
|
|
70752
70584
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
70753
70585
|
};
|
|
70754
70586
|
return instance;
|
|
70755
70587
|
}
|
|
70756
|
-
var axios = createInstance(defaults
|
|
70757
|
-
axios.Axios = Axios
|
|
70758
|
-
axios.CanceledError = CanceledError
|
|
70759
|
-
axios.CancelToken = CancelToken
|
|
70588
|
+
var axios = createInstance(defaults);
|
|
70589
|
+
axios.Axios = Axios;
|
|
70590
|
+
axios.CanceledError = CanceledError;
|
|
70591
|
+
axios.CancelToken = CancelToken;
|
|
70760
70592
|
axios.isCancel = isCancel;
|
|
70761
70593
|
axios.VERSION = VERSION;
|
|
70762
70594
|
axios.toFormData = toFormData;
|
|
70763
|
-
axios.AxiosError = AxiosError
|
|
70595
|
+
axios.AxiosError = AxiosError;
|
|
70764
70596
|
axios.Cancel = axios.CanceledError;
|
|
70765
70597
|
axios.all = function all(promises) {
|
|
70766
70598
|
return Promise.all(promises);
|
|
@@ -70768,10 +70600,10 @@ var require_axios = __commonJS({
|
|
|
70768
70600
|
axios.spread = spread;
|
|
70769
70601
|
axios.isAxiosError = isAxiosError;
|
|
70770
70602
|
axios.mergeConfig = mergeConfig;
|
|
70771
|
-
axios.AxiosHeaders = AxiosHeaders
|
|
70603
|
+
axios.AxiosHeaders = AxiosHeaders;
|
|
70772
70604
|
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
70773
70605
|
axios.getAdapter = adapters.getAdapter;
|
|
70774
|
-
axios.HttpStatusCode = HttpStatusCode
|
|
70606
|
+
axios.HttpStatusCode = HttpStatusCode;
|
|
70775
70607
|
axios.default = axios;
|
|
70776
70608
|
module.exports = axios;
|
|
70777
70609
|
}
|
|
@@ -119829,7 +119661,7 @@ var chains = {
|
|
|
119829
119661
|
"0x7a133fbd01736fd076158307c9476cc3877f1af5": "Invariant Group",
|
|
119830
119662
|
"0x09d8305F49374AEA6A78aF6C996df2913e8f3b19": "Tulipa",
|
|
119831
119663
|
"0x1b265b97eb169fb6668e3258007c3b0242c7bdbe": "kpk",
|
|
119832
|
-
"0x9dddd1b9ce0ac8aa0c80e4ec141600b9bf0101c3": "
|
|
119664
|
+
"0x9dddd1b9ce0ac8aa0c80e4ec141600b9bf0101c3": "UltraYield",
|
|
119833
119665
|
"0x601067eba24bb5b558a184fc082525637e96a42d": "Gami Labs"
|
|
119834
119666
|
},
|
|
119835
119667
|
testMarketConfigurators: {
|
|
@@ -119867,7 +119699,7 @@ var chains = {
|
|
|
119867
119699
|
network: "Optimism",
|
|
119868
119700
|
defaultMarketConfigurators: {
|
|
119869
119701
|
"0x2a15969CE5320868eb609680751cF8896DD92De5": "Chaos Labs",
|
|
119870
|
-
"0x9dddd1b9ce0ac8aa0c80e4ec141600b9bf0101c3": "
|
|
119702
|
+
"0x9dddd1b9ce0ac8aa0c80e4ec141600b9bf0101c3": "UltraYield"
|
|
119871
119703
|
},
|
|
119872
119704
|
isPublic: true,
|
|
119873
119705
|
wellKnownToken: {
|
|
@@ -119936,7 +119768,7 @@ var chains = {
|
|
|
119936
119768
|
network: "Monad",
|
|
119937
119769
|
defaultMarketConfigurators: {
|
|
119938
119770
|
"0x16956912813ab9a38d95730b52a8cf53e860a7c5": "Tulipa",
|
|
119939
|
-
"0x7c6ee1bf9c1eb3ee55bdbdc1e8d0317aab718e0a": "
|
|
119771
|
+
"0x7c6ee1bf9c1eb3ee55bdbdc1e8d0317aab718e0a": "UltraYield"
|
|
119940
119772
|
},
|
|
119941
119773
|
isPublic: true,
|
|
119942
119774
|
wellKnownToken: {
|
|
@@ -120055,7 +119887,7 @@ var chains = {
|
|
|
120055
119887
|
network: "Plasma",
|
|
120056
119888
|
defaultMarketConfigurators: {
|
|
120057
119889
|
"0x7a133fbd01736fd076158307c9476cc3877f1af5": "Invariant Group",
|
|
120058
|
-
"0x4bce62622be621ce036691de98afcab0e41a77a3": "
|
|
119890
|
+
"0x4bce62622be621ce036691de98afcab0e41a77a3": "UltraYield",
|
|
120059
119891
|
"0xce1cf71a28837daaa7b92d00ca4ef2fd649c2a67": "Hyperithm",
|
|
120060
119892
|
"0x9655f82b585b11cee8a05576ed8efcf755cec04b": "TelosC"
|
|
120061
119893
|
},
|
|
@@ -137560,7 +137392,7 @@ function zeroLt() {
|
|
|
137560
137392
|
var package_default = {
|
|
137561
137393
|
name: "@gearbox-protocol/deploy-tools",
|
|
137562
137394
|
description: "Gearbox deploy tools",
|
|
137563
|
-
version: "6.
|
|
137395
|
+
version: "6.1.0",
|
|
137564
137396
|
homepage: "https://gearbox.fi",
|
|
137565
137397
|
keywords: [
|
|
137566
137398
|
"gearbox"
|
|
@@ -137599,7 +137431,7 @@ var package_default = {
|
|
|
137599
137431
|
"@gearbox-protocol/cli-utils": "0.0.0",
|
|
137600
137432
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
137601
137433
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
137602
|
-
"@gearbox-protocol/sdk": "13.
|
|
137434
|
+
"@gearbox-protocol/sdk": "13.2.0-next.1",
|
|
137603
137435
|
"@types/lodash-es": "^4.17.12",
|
|
137604
137436
|
"@types/node": "^25.5.0",
|
|
137605
137437
|
"@types/react": "^19.2.14",
|
|
@@ -137610,7 +137442,7 @@ var package_default = {
|
|
|
137610
137442
|
"date-fns": "^4.1.0",
|
|
137611
137443
|
esbuild: "^0.27.4",
|
|
137612
137444
|
"lodash-es": "^4.17.23",
|
|
137613
|
-
"p-retry": "^
|
|
137445
|
+
"p-retry": "^8.0.0",
|
|
137614
137446
|
pino: "^10.3.1",
|
|
137615
137447
|
"pino-pretty": "^13.1.3",
|
|
137616
137448
|
queue: "^7.0.0",
|
|
@@ -137684,7 +137516,7 @@ mime-types/index.js:
|
|
|
137684
137516
|
*)
|
|
137685
137517
|
|
|
137686
137518
|
axios/dist/node/axios.cjs:
|
|
137687
|
-
(*! Axios v1.
|
|
137519
|
+
(*! Axios v1.14.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
137688
137520
|
|
|
137689
137521
|
lodash/lodash.js:
|
|
137690
137522
|
(**
|