piral-cli 1.10.3-beta.8a00ccb → 1.10.3-beta.af46890
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/lib/external/index.js +800 -503
- package/package.json +2 -2
package/lib/external/index.js
CHANGED
|
@@ -19416,7 +19416,7 @@ var require_form_data = __commonJS({
|
|
|
19416
19416
|
var path3 = require("path");
|
|
19417
19417
|
var http3 = require("http");
|
|
19418
19418
|
var https2 = require("https");
|
|
19419
|
-
var
|
|
19419
|
+
var parseUrl2 = require("url").parse;
|
|
19420
19420
|
var fs3 = require("fs");
|
|
19421
19421
|
var Stream2 = require("stream").Stream;
|
|
19422
19422
|
var crypto2 = require("crypto");
|
|
@@ -19669,7 +19669,7 @@ var require_form_data = __commonJS({
|
|
|
19669
19669
|
var options;
|
|
19670
19670
|
var defaults3 = { method: "post" };
|
|
19671
19671
|
if (typeof params === "string") {
|
|
19672
|
-
params =
|
|
19672
|
+
params = parseUrl2(params);
|
|
19673
19673
|
options = populate({
|
|
19674
19674
|
port: params.port,
|
|
19675
19675
|
path: params.pathname,
|
|
@@ -19721,81 +19721,11 @@ var require_form_data = __commonJS({
|
|
|
19721
19721
|
FormData4.prototype.toString = function() {
|
|
19722
19722
|
return "[object FormData]";
|
|
19723
19723
|
};
|
|
19724
|
-
setToStringTag(FormData4, "FormData");
|
|
19724
|
+
setToStringTag(FormData4.prototype, "FormData");
|
|
19725
19725
|
module2.exports = FormData4;
|
|
19726
19726
|
}
|
|
19727
19727
|
});
|
|
19728
19728
|
|
|
19729
|
-
// ../../../node_modules/proxy-from-env/index.js
|
|
19730
|
-
var require_proxy_from_env = __commonJS({
|
|
19731
|
-
"../../../node_modules/proxy-from-env/index.js"(exports2) {
|
|
19732
|
-
"use strict";
|
|
19733
|
-
var parseUrl = require("url").parse;
|
|
19734
|
-
var DEFAULT_PORTS = {
|
|
19735
|
-
ftp: 21,
|
|
19736
|
-
gopher: 70,
|
|
19737
|
-
http: 80,
|
|
19738
|
-
https: 443,
|
|
19739
|
-
ws: 80,
|
|
19740
|
-
wss: 443
|
|
19741
|
-
};
|
|
19742
|
-
var stringEndsWith = String.prototype.endsWith || function(s3) {
|
|
19743
|
-
return s3.length <= this.length && this.indexOf(s3, this.length - s3.length) !== -1;
|
|
19744
|
-
};
|
|
19745
|
-
function getProxyForUrl(url2) {
|
|
19746
|
-
var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
|
|
19747
|
-
var proto4 = parsedUrl.protocol;
|
|
19748
|
-
var hostname = parsedUrl.host;
|
|
19749
|
-
var port = parsedUrl.port;
|
|
19750
|
-
if (typeof hostname !== "string" || !hostname || typeof proto4 !== "string") {
|
|
19751
|
-
return "";
|
|
19752
|
-
}
|
|
19753
|
-
proto4 = proto4.split(":", 1)[0];
|
|
19754
|
-
hostname = hostname.replace(/:\d*$/, "");
|
|
19755
|
-
port = parseInt(port) || DEFAULT_PORTS[proto4] || 0;
|
|
19756
|
-
if (!shouldProxy(hostname, port)) {
|
|
19757
|
-
return "";
|
|
19758
|
-
}
|
|
19759
|
-
var proxy = getEnv("npm_config_" + proto4 + "_proxy") || getEnv(proto4 + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
|
|
19760
|
-
if (proxy && proxy.indexOf("://") === -1) {
|
|
19761
|
-
proxy = proto4 + "://" + proxy;
|
|
19762
|
-
}
|
|
19763
|
-
return proxy;
|
|
19764
|
-
}
|
|
19765
|
-
function shouldProxy(hostname, port) {
|
|
19766
|
-
var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
|
|
19767
|
-
if (!NO_PROXY) {
|
|
19768
|
-
return true;
|
|
19769
|
-
}
|
|
19770
|
-
if (NO_PROXY === "*") {
|
|
19771
|
-
return false;
|
|
19772
|
-
}
|
|
19773
|
-
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
19774
|
-
if (!proxy) {
|
|
19775
|
-
return true;
|
|
19776
|
-
}
|
|
19777
|
-
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
19778
|
-
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
19779
|
-
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
19780
|
-
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
19781
|
-
return true;
|
|
19782
|
-
}
|
|
19783
|
-
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
19784
|
-
return hostname !== parsedProxyHostname;
|
|
19785
|
-
}
|
|
19786
|
-
if (parsedProxyHostname.charAt(0) === "*") {
|
|
19787
|
-
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
19788
|
-
}
|
|
19789
|
-
return !stringEndsWith.call(hostname, parsedProxyHostname);
|
|
19790
|
-
});
|
|
19791
|
-
}
|
|
19792
|
-
function getEnv(key) {
|
|
19793
|
-
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
19794
|
-
}
|
|
19795
|
-
exports2.getProxyForUrl = getProxyForUrl;
|
|
19796
|
-
}
|
|
19797
|
-
});
|
|
19798
|
-
|
|
19799
19729
|
// ../../../node_modules/debug/node_modules/ms/index.js
|
|
19800
19730
|
var require_ms = __commonJS({
|
|
19801
19731
|
"../../../node_modules/debug/node_modules/ms/index.js"(exports2, module2) {
|
|
@@ -20264,6 +20194,11 @@ var require_follow_redirects = __commonJS({
|
|
|
20264
20194
|
} catch (error) {
|
|
20265
20195
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
20266
20196
|
}
|
|
20197
|
+
var sensitiveHeaders = [
|
|
20198
|
+
"Authorization",
|
|
20199
|
+
"Proxy-Authorization",
|
|
20200
|
+
"Cookie"
|
|
20201
|
+
];
|
|
20267
20202
|
var preservedUrlFields = [
|
|
20268
20203
|
"auth",
|
|
20269
20204
|
"host",
|
|
@@ -20328,6 +20263,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20328
20263
|
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
20329
20264
|
}
|
|
20330
20265
|
};
|
|
20266
|
+
this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
|
|
20331
20267
|
this._performRequest();
|
|
20332
20268
|
}
|
|
20333
20269
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
@@ -20465,6 +20401,9 @@ var require_follow_redirects = __commonJS({
|
|
|
20465
20401
|
if (!options.headers) {
|
|
20466
20402
|
options.headers = {};
|
|
20467
20403
|
}
|
|
20404
|
+
if (!isArray2(options.sensitiveHeaders)) {
|
|
20405
|
+
options.sensitiveHeaders = [];
|
|
20406
|
+
}
|
|
20468
20407
|
if (options.host) {
|
|
20469
20408
|
if (!options.hostname) {
|
|
20470
20409
|
options.hostname = options.host;
|
|
@@ -20562,7 +20501,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20562
20501
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
20563
20502
|
}
|
|
20564
20503
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
20565
|
-
var currentUrlParts =
|
|
20504
|
+
var currentUrlParts = parseUrl2(this._currentUrl);
|
|
20566
20505
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
20567
20506
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
20568
20507
|
var redirectUrl = resolveUrl(location, currentUrl);
|
|
@@ -20570,7 +20509,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20570
20509
|
this._isRedirect = true;
|
|
20571
20510
|
spreadUrlObject(redirectUrl, this._options);
|
|
20572
20511
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
20573
|
-
removeMatchingHeaders(
|
|
20512
|
+
removeMatchingHeaders(this._headerFilter, this._options.headers);
|
|
20574
20513
|
}
|
|
20575
20514
|
if (isFunction3(beforeRedirect)) {
|
|
20576
20515
|
var responseDetails = {
|
|
@@ -20601,7 +20540,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20601
20540
|
if (isURL(input)) {
|
|
20602
20541
|
input = spreadUrlObject(input);
|
|
20603
20542
|
} else if (isString2(input)) {
|
|
20604
|
-
input = spreadUrlObject(
|
|
20543
|
+
input = spreadUrlObject(parseUrl2(input));
|
|
20605
20544
|
} else {
|
|
20606
20545
|
callback = options;
|
|
20607
20546
|
options = validateUrl(input);
|
|
@@ -20637,7 +20576,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20637
20576
|
}
|
|
20638
20577
|
function noop2() {
|
|
20639
20578
|
}
|
|
20640
|
-
function
|
|
20579
|
+
function parseUrl2(input) {
|
|
20641
20580
|
var parsed;
|
|
20642
20581
|
if (useNativeURL) {
|
|
20643
20582
|
parsed = new URL2(input);
|
|
@@ -20650,7 +20589,7 @@ var require_follow_redirects = __commonJS({
|
|
|
20650
20589
|
return parsed;
|
|
20651
20590
|
}
|
|
20652
20591
|
function resolveUrl(relative, base) {
|
|
20653
|
-
return useNativeURL ? new URL2(relative, base) :
|
|
20592
|
+
return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
|
|
20654
20593
|
}
|
|
20655
20594
|
function validateUrl(input) {
|
|
20656
20595
|
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
@@ -20719,6 +20658,9 @@ var require_follow_redirects = __commonJS({
|
|
|
20719
20658
|
var dot = subdomain.length - domain.length - 1;
|
|
20720
20659
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
20721
20660
|
}
|
|
20661
|
+
function isArray2(value) {
|
|
20662
|
+
return value instanceof Array;
|
|
20663
|
+
}
|
|
20722
20664
|
function isString2(value) {
|
|
20723
20665
|
return typeof value === "string" || value instanceof String;
|
|
20724
20666
|
}
|
|
@@ -20731,6 +20673,9 @@ var require_follow_redirects = __commonJS({
|
|
|
20731
20673
|
function isURL(value) {
|
|
20732
20674
|
return URL2 && value instanceof URL2;
|
|
20733
20675
|
}
|
|
20676
|
+
function escapeRegex(regex2) {
|
|
20677
|
+
return regex2.replace(/[\]\\/()*+?.$]/g, "\\$&");
|
|
20678
|
+
}
|
|
20734
20679
|
module2.exports = wrap2({ http: http3, https: https2 });
|
|
20735
20680
|
module2.exports.wrap = wrap2;
|
|
20736
20681
|
}
|
|
@@ -48613,8 +48558,8 @@ var require_lib5 = __commonJS({
|
|
|
48613
48558
|
};
|
|
48614
48559
|
}
|
|
48615
48560
|
var mergeExports = (obj, exports3) => {
|
|
48616
|
-
const
|
|
48617
|
-
Object.defineProperties(obj,
|
|
48561
|
+
const descriptors = Object.getOwnPropertyDescriptors(exports3);
|
|
48562
|
+
Object.defineProperties(obj, descriptors);
|
|
48618
48563
|
return (
|
|
48619
48564
|
/** @type {A & B} */
|
|
48620
48565
|
Object.freeze(obj)
|
|
@@ -53495,8 +53440,8 @@ var isPlainObject = (val) => {
|
|
|
53495
53440
|
if (kindOf(val) !== "object") {
|
|
53496
53441
|
return false;
|
|
53497
53442
|
}
|
|
53498
|
-
const
|
|
53499
|
-
return (
|
|
53443
|
+
const prototype2 = getPrototypeOf(val);
|
|
53444
|
+
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
|
|
53500
53445
|
};
|
|
53501
53446
|
var isEmptyObject = (val) => {
|
|
53502
53447
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -53510,17 +53455,37 @@ var isEmptyObject = (val) => {
|
|
|
53510
53455
|
};
|
|
53511
53456
|
var isDate = kindOfTest("Date");
|
|
53512
53457
|
var isFile = kindOfTest("File");
|
|
53458
|
+
var isReactNativeBlob = (value) => {
|
|
53459
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
53460
|
+
};
|
|
53461
|
+
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
53513
53462
|
var isBlob = kindOfTest("Blob");
|
|
53514
53463
|
var isFileList = kindOfTest("FileList");
|
|
53515
53464
|
var isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
53465
|
+
function getGlobal() {
|
|
53466
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
53467
|
+
if (typeof self !== "undefined") return self;
|
|
53468
|
+
if (typeof window !== "undefined") return window;
|
|
53469
|
+
if (typeof global !== "undefined") return global;
|
|
53470
|
+
return {};
|
|
53471
|
+
}
|
|
53472
|
+
var G2 = getGlobal();
|
|
53473
|
+
var FormDataCtor = typeof G2.FormData !== "undefined" ? G2.FormData : void 0;
|
|
53516
53474
|
var isFormData = (thing) => {
|
|
53517
53475
|
let kind;
|
|
53518
|
-
return thing && (
|
|
53476
|
+
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
53519
53477
|
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
53520
53478
|
};
|
|
53521
53479
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
53522
|
-
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
53523
|
-
|
|
53480
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
53481
|
+
"ReadableStream",
|
|
53482
|
+
"Request",
|
|
53483
|
+
"Response",
|
|
53484
|
+
"Headers"
|
|
53485
|
+
].map(kindOfTest);
|
|
53486
|
+
var trim = (str) => {
|
|
53487
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
53488
|
+
};
|
|
53524
53489
|
function forEach(obj, fn2, { allOwnKeys = false } = {}) {
|
|
53525
53490
|
if (obj === null || typeof obj === "undefined") {
|
|
53526
53491
|
return;
|
|
@@ -53572,6 +53537,9 @@ function merge() {
|
|
|
53572
53537
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
53573
53538
|
const result = {};
|
|
53574
53539
|
const assignValue = (val, key) => {
|
|
53540
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
53541
|
+
return;
|
|
53542
|
+
}
|
|
53575
53543
|
const targetKey = caseless && findKey(result, key) || key;
|
|
53576
53544
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
53577
53545
|
result[targetKey] = merge(result[targetKey], val);
|
|
@@ -53589,13 +53557,27 @@ function merge() {
|
|
|
53589
53557
|
return result;
|
|
53590
53558
|
}
|
|
53591
53559
|
var extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
|
|
53592
|
-
forEach(
|
|
53593
|
-
|
|
53594
|
-
|
|
53595
|
-
|
|
53596
|
-
|
|
53597
|
-
|
|
53598
|
-
|
|
53560
|
+
forEach(
|
|
53561
|
+
b2,
|
|
53562
|
+
(val, key) => {
|
|
53563
|
+
if (thisArg && isFunction(val)) {
|
|
53564
|
+
Object.defineProperty(a, key, {
|
|
53565
|
+
value: bind(val, thisArg),
|
|
53566
|
+
writable: true,
|
|
53567
|
+
enumerable: true,
|
|
53568
|
+
configurable: true
|
|
53569
|
+
});
|
|
53570
|
+
} else {
|
|
53571
|
+
Object.defineProperty(a, key, {
|
|
53572
|
+
value: val,
|
|
53573
|
+
writable: true,
|
|
53574
|
+
enumerable: true,
|
|
53575
|
+
configurable: true
|
|
53576
|
+
});
|
|
53577
|
+
}
|
|
53578
|
+
},
|
|
53579
|
+
{ allOwnKeys }
|
|
53580
|
+
);
|
|
53599
53581
|
return a;
|
|
53600
53582
|
};
|
|
53601
53583
|
var stripBOM = (content) => {
|
|
@@ -53604,9 +53586,14 @@ var stripBOM = (content) => {
|
|
|
53604
53586
|
}
|
|
53605
53587
|
return content;
|
|
53606
53588
|
};
|
|
53607
|
-
var inherits = (constructor, superConstructor, props,
|
|
53608
|
-
constructor.prototype = Object.create(superConstructor.prototype,
|
|
53609
|
-
constructor.prototype
|
|
53589
|
+
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
53590
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
53591
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
53592
|
+
value: constructor,
|
|
53593
|
+
writable: true,
|
|
53594
|
+
enumerable: false,
|
|
53595
|
+
configurable: true
|
|
53596
|
+
});
|
|
53610
53597
|
Object.defineProperty(constructor, "super", {
|
|
53611
53598
|
value: superConstructor.prototype
|
|
53612
53599
|
});
|
|
@@ -53677,19 +53664,16 @@ var matchAll = (regExp, str) => {
|
|
|
53677
53664
|
};
|
|
53678
53665
|
var isHTMLForm = kindOfTest("HTMLFormElement");
|
|
53679
53666
|
var toCamelCase = (str) => {
|
|
53680
|
-
return str.toLowerCase().replace(
|
|
53681
|
-
|
|
53682
|
-
|
|
53683
|
-
return p1.toUpperCase() + p2;
|
|
53684
|
-
}
|
|
53685
|
-
);
|
|
53667
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m2, p1, p2) {
|
|
53668
|
+
return p1.toUpperCase() + p2;
|
|
53669
|
+
});
|
|
53686
53670
|
};
|
|
53687
53671
|
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
53688
53672
|
var isRegExp = kindOfTest("RegExp");
|
|
53689
53673
|
var reduceDescriptors = (obj, reducer) => {
|
|
53690
|
-
const
|
|
53674
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
53691
53675
|
const reducedDescriptors = {};
|
|
53692
|
-
forEach(
|
|
53676
|
+
forEach(descriptors, (descriptor, name) => {
|
|
53693
53677
|
let ret;
|
|
53694
53678
|
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
53695
53679
|
reducedDescriptors[name] = ret || descriptor;
|
|
@@ -53766,20 +53750,21 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
53766
53750
|
return setImmediate;
|
|
53767
53751
|
}
|
|
53768
53752
|
return postMessageSupported ? ((token, callbacks) => {
|
|
53769
|
-
_global.addEventListener(
|
|
53770
|
-
|
|
53771
|
-
|
|
53772
|
-
|
|
53773
|
-
|
|
53753
|
+
_global.addEventListener(
|
|
53754
|
+
"message",
|
|
53755
|
+
({ source, data }) => {
|
|
53756
|
+
if (source === _global && data === token) {
|
|
53757
|
+
callbacks.length && callbacks.shift()();
|
|
53758
|
+
}
|
|
53759
|
+
},
|
|
53760
|
+
false
|
|
53761
|
+
);
|
|
53774
53762
|
return (cb) => {
|
|
53775
53763
|
callbacks.push(cb);
|
|
53776
53764
|
_global.postMessage(token, "*");
|
|
53777
53765
|
};
|
|
53778
53766
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
53779
|
-
})(
|
|
53780
|
-
typeof setImmediate === "function",
|
|
53781
|
-
isFunction(_global.postMessage)
|
|
53782
|
-
);
|
|
53767
|
+
})(typeof setImmediate === "function", isFunction(_global.postMessage));
|
|
53783
53768
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
53784
53769
|
var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
53785
53770
|
var utils_default = {
|
|
@@ -53801,6 +53786,8 @@ var utils_default = {
|
|
|
53801
53786
|
isUndefined,
|
|
53802
53787
|
isDate,
|
|
53803
53788
|
isFile,
|
|
53789
|
+
isReactNativeBlob,
|
|
53790
|
+
isReactNative,
|
|
53804
53791
|
isBlob,
|
|
53805
53792
|
isRegExp,
|
|
53806
53793
|
isFunction,
|
|
@@ -53844,25 +53831,47 @@ var utils_default = {
|
|
|
53844
53831
|
};
|
|
53845
53832
|
|
|
53846
53833
|
// ../../../node_modules/axios/lib/core/AxiosError.js
|
|
53847
|
-
|
|
53848
|
-
|
|
53849
|
-
|
|
53850
|
-
|
|
53851
|
-
|
|
53852
|
-
|
|
53834
|
+
var AxiosError = class _AxiosError extends Error {
|
|
53835
|
+
static from(error, code, config, request, response, customProps) {
|
|
53836
|
+
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
53837
|
+
axiosError.cause = error;
|
|
53838
|
+
axiosError.name = error.name;
|
|
53839
|
+
if (error.status != null && axiosError.status == null) {
|
|
53840
|
+
axiosError.status = error.status;
|
|
53841
|
+
}
|
|
53842
|
+
customProps && Object.assign(axiosError, customProps);
|
|
53843
|
+
return axiosError;
|
|
53853
53844
|
}
|
|
53854
|
-
|
|
53855
|
-
|
|
53856
|
-
|
|
53857
|
-
|
|
53858
|
-
|
|
53859
|
-
|
|
53860
|
-
|
|
53861
|
-
|
|
53845
|
+
/**
|
|
53846
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
53847
|
+
*
|
|
53848
|
+
* @param {string} message The error message.
|
|
53849
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
53850
|
+
* @param {Object} [config] The config.
|
|
53851
|
+
* @param {Object} [request] The request.
|
|
53852
|
+
* @param {Object} [response] The response.
|
|
53853
|
+
*
|
|
53854
|
+
* @returns {Error} The created error.
|
|
53855
|
+
*/
|
|
53856
|
+
constructor(message, code, config, request, response) {
|
|
53857
|
+
super(message);
|
|
53858
|
+
Object.defineProperty(this, "message", {
|
|
53859
|
+
value: message,
|
|
53860
|
+
enumerable: true,
|
|
53861
|
+
writable: true,
|
|
53862
|
+
configurable: true
|
|
53863
|
+
});
|
|
53864
|
+
this.name = "AxiosError";
|
|
53865
|
+
this.isAxiosError = true;
|
|
53866
|
+
code && (this.code = code);
|
|
53867
|
+
config && (this.config = config);
|
|
53868
|
+
request && (this.request = request);
|
|
53869
|
+
if (response) {
|
|
53870
|
+
this.response = response;
|
|
53871
|
+
this.status = response.status;
|
|
53872
|
+
}
|
|
53862
53873
|
}
|
|
53863
|
-
|
|
53864
|
-
utils_default.inherits(AxiosError, Error, {
|
|
53865
|
-
toJSON: function toJSON() {
|
|
53874
|
+
toJSON() {
|
|
53866
53875
|
return {
|
|
53867
53876
|
// Standard
|
|
53868
53877
|
message: this.message,
|
|
@@ -53881,45 +53890,19 @@ utils_default.inherits(AxiosError, Error, {
|
|
|
53881
53890
|
status: this.status
|
|
53882
53891
|
};
|
|
53883
53892
|
}
|
|
53884
|
-
});
|
|
53885
|
-
var prototype = AxiosError.prototype;
|
|
53886
|
-
var descriptors = {};
|
|
53887
|
-
[
|
|
53888
|
-
"ERR_BAD_OPTION_VALUE",
|
|
53889
|
-
"ERR_BAD_OPTION",
|
|
53890
|
-
"ECONNABORTED",
|
|
53891
|
-
"ETIMEDOUT",
|
|
53892
|
-
"ERR_NETWORK",
|
|
53893
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
53894
|
-
"ERR_DEPRECATED",
|
|
53895
|
-
"ERR_BAD_RESPONSE",
|
|
53896
|
-
"ERR_BAD_REQUEST",
|
|
53897
|
-
"ERR_CANCELED",
|
|
53898
|
-
"ERR_NOT_SUPPORT",
|
|
53899
|
-
"ERR_INVALID_URL"
|
|
53900
|
-
// eslint-disable-next-line func-names
|
|
53901
|
-
].forEach((code) => {
|
|
53902
|
-
descriptors[code] = { value: code };
|
|
53903
|
-
});
|
|
53904
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
53905
|
-
Object.defineProperty(prototype, "isAxiosError", { value: true });
|
|
53906
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
53907
|
-
const axiosError = Object.create(prototype);
|
|
53908
|
-
utils_default.toFlatObject(error, axiosError, function filter4(obj) {
|
|
53909
|
-
return obj !== Error.prototype;
|
|
53910
|
-
}, (prop) => {
|
|
53911
|
-
return prop !== "isAxiosError";
|
|
53912
|
-
});
|
|
53913
|
-
const msg = error && error.message ? error.message : "Error";
|
|
53914
|
-
const errCode = code == null && error ? error.code : code;
|
|
53915
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
53916
|
-
if (error && axiosError.cause == null) {
|
|
53917
|
-
Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
|
|
53918
|
-
}
|
|
53919
|
-
axiosError.name = error && error.name || "Error";
|
|
53920
|
-
customProps && Object.assign(axiosError, customProps);
|
|
53921
|
-
return axiosError;
|
|
53922
53893
|
};
|
|
53894
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
53895
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
53896
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
53897
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
53898
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
53899
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
53900
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
53901
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
53902
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
53903
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
53904
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
53905
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
53923
53906
|
var AxiosError_default = AxiosError;
|
|
53924
53907
|
|
|
53925
53908
|
// ../../../node_modules/axios/lib/platform/node/classes/FormData.js
|
|
@@ -53951,13 +53934,18 @@ function toFormData(obj, formData, options) {
|
|
|
53951
53934
|
throw new TypeError("target must be an object");
|
|
53952
53935
|
}
|
|
53953
53936
|
formData = formData || new (FormData_default || FormData)();
|
|
53954
|
-
options = utils_default.toFlatObject(
|
|
53955
|
-
|
|
53956
|
-
|
|
53957
|
-
|
|
53958
|
-
|
|
53959
|
-
|
|
53960
|
-
|
|
53937
|
+
options = utils_default.toFlatObject(
|
|
53938
|
+
options,
|
|
53939
|
+
{
|
|
53940
|
+
metaTokens: true,
|
|
53941
|
+
dots: false,
|
|
53942
|
+
indexes: false
|
|
53943
|
+
},
|
|
53944
|
+
false,
|
|
53945
|
+
function defined(option, source) {
|
|
53946
|
+
return !utils_default.isUndefined(source[option]);
|
|
53947
|
+
}
|
|
53948
|
+
);
|
|
53961
53949
|
const metaTokens = options.metaTokens;
|
|
53962
53950
|
const visitor = options.visitor || defaultVisitor;
|
|
53963
53951
|
const dots = options.dots;
|
|
@@ -53985,6 +53973,10 @@ function toFormData(obj, formData, options) {
|
|
|
53985
53973
|
}
|
|
53986
53974
|
function defaultVisitor(value, key, path3) {
|
|
53987
53975
|
let arr = value;
|
|
53976
|
+
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
53977
|
+
formData.append(renderKey(path3, key, dots), convertValue(value));
|
|
53978
|
+
return false;
|
|
53979
|
+
}
|
|
53988
53980
|
if (value && !path3 && typeof value === "object") {
|
|
53989
53981
|
if (utils_default.endsWith(key, "{}")) {
|
|
53990
53982
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -54020,13 +54012,7 @@ function toFormData(obj, formData, options) {
|
|
|
54020
54012
|
}
|
|
54021
54013
|
stack.push(value);
|
|
54022
54014
|
utils_default.forEach(value, function each(el, key) {
|
|
54023
|
-
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
|
|
54024
|
-
formData,
|
|
54025
|
-
el,
|
|
54026
|
-
utils_default.isString(key) ? key.trim() : key,
|
|
54027
|
-
path3,
|
|
54028
|
-
exposedHelpers
|
|
54029
|
-
);
|
|
54015
|
+
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path3, exposedHelpers);
|
|
54030
54016
|
if (result === true) {
|
|
54031
54017
|
build(el, path3 ? path3.concat(key) : [key]);
|
|
54032
54018
|
}
|
|
@@ -54060,11 +54046,11 @@ function AxiosURLSearchParams(params, options) {
|
|
|
54060
54046
|
this._pairs = [];
|
|
54061
54047
|
params && toFormData_default(params, this, options);
|
|
54062
54048
|
}
|
|
54063
|
-
var
|
|
54064
|
-
|
|
54049
|
+
var prototype = AxiosURLSearchParams.prototype;
|
|
54050
|
+
prototype.append = function append(name, value) {
|
|
54065
54051
|
this._pairs.push([name, value]);
|
|
54066
54052
|
};
|
|
54067
|
-
|
|
54053
|
+
prototype.toString = function toString2(encoder) {
|
|
54068
54054
|
const _encode = encoder ? function(value) {
|
|
54069
54055
|
return encoder.call(this, value, encode);
|
|
54070
54056
|
} : encode;
|
|
@@ -54083,17 +54069,15 @@ function buildURL(url2, params, options) {
|
|
|
54083
54069
|
return url2;
|
|
54084
54070
|
}
|
|
54085
54071
|
const _encode = options && options.encode || encode2;
|
|
54086
|
-
|
|
54087
|
-
options
|
|
54088
|
-
|
|
54089
|
-
|
|
54090
|
-
}
|
|
54091
|
-
const serializeFn = options && options.serialize;
|
|
54072
|
+
const _options = utils_default.isFunction(options) ? {
|
|
54073
|
+
serialize: options
|
|
54074
|
+
} : options;
|
|
54075
|
+
const serializeFn = _options && _options.serialize;
|
|
54092
54076
|
let serializedParams;
|
|
54093
54077
|
if (serializeFn) {
|
|
54094
|
-
serializedParams = serializeFn(params,
|
|
54078
|
+
serializedParams = serializeFn(params, _options);
|
|
54095
54079
|
} else {
|
|
54096
|
-
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params,
|
|
54080
|
+
serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
|
|
54097
54081
|
}
|
|
54098
54082
|
if (serializedParams) {
|
|
54099
54083
|
const hashmarkIndex = url2.indexOf("#");
|
|
@@ -54115,6 +54099,7 @@ var InterceptorManager = class {
|
|
|
54115
54099
|
*
|
|
54116
54100
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
54117
54101
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
54102
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
54118
54103
|
*
|
|
54119
54104
|
* @return {Number} An ID used to remove interceptor later
|
|
54120
54105
|
*/
|
|
@@ -54173,7 +54158,8 @@ var InterceptorManager_default = InterceptorManager;
|
|
|
54173
54158
|
var transitional_default = {
|
|
54174
54159
|
silentJSONParsing: true,
|
|
54175
54160
|
forcedJSONParsing: true,
|
|
54176
|
-
clarifyTimeoutError: false
|
|
54161
|
+
clarifyTimeoutError: false,
|
|
54162
|
+
legacyInterceptorReqResOrdering: true
|
|
54177
54163
|
};
|
|
54178
54164
|
|
|
54179
54165
|
// ../../../node_modules/axios/lib/platform/node/index.js
|
|
@@ -54321,70 +54307,74 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
54321
54307
|
var defaults = {
|
|
54322
54308
|
transitional: transitional_default,
|
|
54323
54309
|
adapter: ["xhr", "http", "fetch"],
|
|
54324
|
-
transformRequest: [
|
|
54325
|
-
|
|
54326
|
-
|
|
54327
|
-
|
|
54328
|
-
|
|
54329
|
-
|
|
54330
|
-
|
|
54331
|
-
|
|
54332
|
-
|
|
54333
|
-
|
|
54334
|
-
|
|
54335
|
-
|
|
54336
|
-
|
|
54337
|
-
|
|
54338
|
-
|
|
54339
|
-
|
|
54340
|
-
|
|
54341
|
-
|
|
54342
|
-
|
|
54343
|
-
|
|
54344
|
-
|
|
54345
|
-
|
|
54346
|
-
|
|
54347
|
-
if (
|
|
54348
|
-
|
|
54310
|
+
transformRequest: [
|
|
54311
|
+
function transformRequest(data, headers) {
|
|
54312
|
+
const contentType = headers.getContentType() || "";
|
|
54313
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
54314
|
+
const isObjectPayload = utils_default.isObject(data);
|
|
54315
|
+
if (isObjectPayload && utils_default.isHTMLForm(data)) {
|
|
54316
|
+
data = new FormData(data);
|
|
54317
|
+
}
|
|
54318
|
+
const isFormData2 = utils_default.isFormData(data);
|
|
54319
|
+
if (isFormData2) {
|
|
54320
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
54321
|
+
}
|
|
54322
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
|
|
54323
|
+
return data;
|
|
54324
|
+
}
|
|
54325
|
+
if (utils_default.isArrayBufferView(data)) {
|
|
54326
|
+
return data.buffer;
|
|
54327
|
+
}
|
|
54328
|
+
if (utils_default.isURLSearchParams(data)) {
|
|
54329
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
54330
|
+
return data.toString();
|
|
54331
|
+
}
|
|
54332
|
+
let isFileList2;
|
|
54333
|
+
if (isObjectPayload) {
|
|
54334
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
54335
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
54336
|
+
}
|
|
54337
|
+
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
54338
|
+
const _FormData = this.env && this.env.FormData;
|
|
54339
|
+
return toFormData_default(
|
|
54340
|
+
isFileList2 ? { "files[]": data } : data,
|
|
54341
|
+
_FormData && new _FormData(),
|
|
54342
|
+
this.formSerializer
|
|
54343
|
+
);
|
|
54344
|
+
}
|
|
54349
54345
|
}
|
|
54350
|
-
if (
|
|
54351
|
-
|
|
54352
|
-
return
|
|
54353
|
-
isFileList2 ? { "files[]": data } : data,
|
|
54354
|
-
_FormData && new _FormData(),
|
|
54355
|
-
this.formSerializer
|
|
54356
|
-
);
|
|
54346
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
54347
|
+
headers.setContentType("application/json", false);
|
|
54348
|
+
return stringifySafely(data);
|
|
54357
54349
|
}
|
|
54358
|
-
}
|
|
54359
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
54360
|
-
headers.setContentType("application/json", false);
|
|
54361
|
-
return stringifySafely(data);
|
|
54362
|
-
}
|
|
54363
|
-
return data;
|
|
54364
|
-
}],
|
|
54365
|
-
transformResponse: [function transformResponse(data) {
|
|
54366
|
-
const transitional2 = this.transitional || defaults.transitional;
|
|
54367
|
-
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
54368
|
-
const JSONRequested = this.responseType === "json";
|
|
54369
|
-
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
54370
54350
|
return data;
|
|
54371
54351
|
}
|
|
54372
|
-
|
|
54373
|
-
|
|
54374
|
-
|
|
54375
|
-
|
|
54376
|
-
|
|
54377
|
-
|
|
54378
|
-
|
|
54379
|
-
|
|
54380
|
-
|
|
54352
|
+
],
|
|
54353
|
+
transformResponse: [
|
|
54354
|
+
function transformResponse(data) {
|
|
54355
|
+
const transitional2 = this.transitional || defaults.transitional;
|
|
54356
|
+
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
54357
|
+
const JSONRequested = this.responseType === "json";
|
|
54358
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
54359
|
+
return data;
|
|
54360
|
+
}
|
|
54361
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
54362
|
+
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
54363
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
54364
|
+
try {
|
|
54365
|
+
return JSON.parse(data, this.parseReviver);
|
|
54366
|
+
} catch (e) {
|
|
54367
|
+
if (strictJSONParsing) {
|
|
54368
|
+
if (e.name === "SyntaxError") {
|
|
54369
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
|
|
54370
|
+
}
|
|
54371
|
+
throw e;
|
|
54381
54372
|
}
|
|
54382
|
-
throw e;
|
|
54383
54373
|
}
|
|
54384
54374
|
}
|
|
54375
|
+
return data;
|
|
54385
54376
|
}
|
|
54386
|
-
|
|
54387
|
-
}],
|
|
54377
|
+
],
|
|
54388
54378
|
/**
|
|
54389
54379
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
54390
54380
|
* timeout is not created.
|
|
@@ -54403,7 +54393,7 @@ var defaults = {
|
|
|
54403
54393
|
},
|
|
54404
54394
|
headers: {
|
|
54405
54395
|
common: {
|
|
54406
|
-
|
|
54396
|
+
Accept: "application/json, text/plain, */*",
|
|
54407
54397
|
"Content-Type": void 0
|
|
54408
54398
|
}
|
|
54409
54399
|
}
|
|
@@ -54460,14 +54450,38 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
54460
54450
|
|
|
54461
54451
|
// ../../../node_modules/axios/lib/core/AxiosHeaders.js
|
|
54462
54452
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
54453
|
+
var isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
54454
|
+
function assertValidHeaderValue(value, header) {
|
|
54455
|
+
if (value === false || value == null) {
|
|
54456
|
+
return;
|
|
54457
|
+
}
|
|
54458
|
+
if (utils_default.isArray(value)) {
|
|
54459
|
+
value.forEach((v2) => assertValidHeaderValue(v2, header));
|
|
54460
|
+
return;
|
|
54461
|
+
}
|
|
54462
|
+
if (!isValidHeaderValue(String(value))) {
|
|
54463
|
+
throw new Error(`Invalid character in header content ["${header}"]`);
|
|
54464
|
+
}
|
|
54465
|
+
}
|
|
54463
54466
|
function normalizeHeader(header) {
|
|
54464
54467
|
return header && String(header).trim().toLowerCase();
|
|
54465
54468
|
}
|
|
54469
|
+
function stripTrailingCRLF(str) {
|
|
54470
|
+
let end = str.length;
|
|
54471
|
+
while (end > 0) {
|
|
54472
|
+
const charCode = str.charCodeAt(end - 1);
|
|
54473
|
+
if (charCode !== 10 && charCode !== 13) {
|
|
54474
|
+
break;
|
|
54475
|
+
}
|
|
54476
|
+
end -= 1;
|
|
54477
|
+
}
|
|
54478
|
+
return end === str.length ? str : str.slice(0, end);
|
|
54479
|
+
}
|
|
54466
54480
|
function normalizeValue(value) {
|
|
54467
54481
|
if (value === false || value == null) {
|
|
54468
54482
|
return value;
|
|
54469
54483
|
}
|
|
54470
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
54484
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
54471
54485
|
}
|
|
54472
54486
|
function parseTokens(str) {
|
|
54473
54487
|
const tokens = /* @__PURE__ */ Object.create(null);
|
|
@@ -54523,6 +54537,7 @@ var AxiosHeaders = class {
|
|
|
54523
54537
|
}
|
|
54524
54538
|
const key = utils_default.findKey(self2, lHeader);
|
|
54525
54539
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
54540
|
+
assertValidHeaderValue(_value, _header);
|
|
54526
54541
|
self2[key || _header] = normalizeValue(_value);
|
|
54527
54542
|
}
|
|
54528
54543
|
}
|
|
@@ -54662,11 +54677,11 @@ var AxiosHeaders = class {
|
|
|
54662
54677
|
accessors: {}
|
|
54663
54678
|
};
|
|
54664
54679
|
const accessors = internals.accessors;
|
|
54665
|
-
const
|
|
54680
|
+
const prototype2 = this.prototype;
|
|
54666
54681
|
function defineAccessor(_header) {
|
|
54667
54682
|
const lHeader = normalizeHeader(_header);
|
|
54668
54683
|
if (!accessors[lHeader]) {
|
|
54669
|
-
buildAccessors(
|
|
54684
|
+
buildAccessors(prototype2, _header);
|
|
54670
54685
|
accessors[lHeader] = true;
|
|
54671
54686
|
}
|
|
54672
54687
|
}
|
|
@@ -54674,7 +54689,14 @@ var AxiosHeaders = class {
|
|
|
54674
54689
|
return this;
|
|
54675
54690
|
}
|
|
54676
54691
|
};
|
|
54677
|
-
AxiosHeaders.accessor([
|
|
54692
|
+
AxiosHeaders.accessor([
|
|
54693
|
+
"Content-Type",
|
|
54694
|
+
"Content-Length",
|
|
54695
|
+
"Accept",
|
|
54696
|
+
"Accept-Encoding",
|
|
54697
|
+
"User-Agent",
|
|
54698
|
+
"Authorization"
|
|
54699
|
+
]);
|
|
54678
54700
|
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
54679
54701
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
54680
54702
|
return {
|
|
@@ -54706,13 +54728,22 @@ function isCancel(value) {
|
|
|
54706
54728
|
}
|
|
54707
54729
|
|
|
54708
54730
|
// ../../../node_modules/axios/lib/cancel/CanceledError.js
|
|
54709
|
-
|
|
54710
|
-
|
|
54711
|
-
|
|
54712
|
-
|
|
54713
|
-
|
|
54714
|
-
|
|
54715
|
-
}
|
|
54731
|
+
var CanceledError = class extends AxiosError_default {
|
|
54732
|
+
/**
|
|
54733
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
54734
|
+
*
|
|
54735
|
+
* @param {string=} message The message.
|
|
54736
|
+
* @param {Object=} config The config.
|
|
54737
|
+
* @param {Object=} request The request.
|
|
54738
|
+
*
|
|
54739
|
+
* @returns {CanceledError} The created error.
|
|
54740
|
+
*/
|
|
54741
|
+
constructor(message, config, request) {
|
|
54742
|
+
super(message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
54743
|
+
this.name = "CanceledError";
|
|
54744
|
+
this.__CANCEL__ = true;
|
|
54745
|
+
}
|
|
54746
|
+
};
|
|
54716
54747
|
var CanceledError_default = CanceledError;
|
|
54717
54748
|
|
|
54718
54749
|
// ../../../node_modules/axios/lib/core/settle.js
|
|
@@ -54721,18 +54752,23 @@ function settle(resolve6, reject, response) {
|
|
|
54721
54752
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
54722
54753
|
resolve6(response);
|
|
54723
54754
|
} else {
|
|
54724
|
-
reject(
|
|
54725
|
-
|
|
54726
|
-
|
|
54727
|
-
|
|
54728
|
-
|
|
54729
|
-
|
|
54730
|
-
|
|
54755
|
+
reject(
|
|
54756
|
+
new AxiosError_default(
|
|
54757
|
+
"Request failed with status code " + response.status,
|
|
54758
|
+
[AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
54759
|
+
response.config,
|
|
54760
|
+
response.request,
|
|
54761
|
+
response
|
|
54762
|
+
)
|
|
54763
|
+
);
|
|
54731
54764
|
}
|
|
54732
54765
|
}
|
|
54733
54766
|
|
|
54734
54767
|
// ../../../node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
54735
54768
|
function isAbsoluteURL(url2) {
|
|
54769
|
+
if (typeof url2 !== "string") {
|
|
54770
|
+
return false;
|
|
54771
|
+
}
|
|
54736
54772
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
54737
54773
|
}
|
|
54738
54774
|
|
|
@@ -54750,8 +54786,74 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
54750
54786
|
return requestedURL;
|
|
54751
54787
|
}
|
|
54752
54788
|
|
|
54789
|
+
// ../../../node_modules/proxy-from-env/index.js
|
|
54790
|
+
var DEFAULT_PORTS = {
|
|
54791
|
+
ftp: 21,
|
|
54792
|
+
gopher: 70,
|
|
54793
|
+
http: 80,
|
|
54794
|
+
https: 443,
|
|
54795
|
+
ws: 80,
|
|
54796
|
+
wss: 443
|
|
54797
|
+
};
|
|
54798
|
+
function parseUrl(urlString) {
|
|
54799
|
+
try {
|
|
54800
|
+
return new URL(urlString);
|
|
54801
|
+
} catch {
|
|
54802
|
+
return null;
|
|
54803
|
+
}
|
|
54804
|
+
}
|
|
54805
|
+
function getProxyForUrl(url2) {
|
|
54806
|
+
var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
|
|
54807
|
+
var proto4 = parsedUrl.protocol;
|
|
54808
|
+
var hostname = parsedUrl.host;
|
|
54809
|
+
var port = parsedUrl.port;
|
|
54810
|
+
if (typeof hostname !== "string" || !hostname || typeof proto4 !== "string") {
|
|
54811
|
+
return "";
|
|
54812
|
+
}
|
|
54813
|
+
proto4 = proto4.split(":", 1)[0];
|
|
54814
|
+
hostname = hostname.replace(/:\d*$/, "");
|
|
54815
|
+
port = parseInt(port) || DEFAULT_PORTS[proto4] || 0;
|
|
54816
|
+
if (!shouldProxy(hostname, port)) {
|
|
54817
|
+
return "";
|
|
54818
|
+
}
|
|
54819
|
+
var proxy = getEnv(proto4 + "_proxy") || getEnv("all_proxy");
|
|
54820
|
+
if (proxy && proxy.indexOf("://") === -1) {
|
|
54821
|
+
proxy = proto4 + "://" + proxy;
|
|
54822
|
+
}
|
|
54823
|
+
return proxy;
|
|
54824
|
+
}
|
|
54825
|
+
function shouldProxy(hostname, port) {
|
|
54826
|
+
var NO_PROXY = getEnv("no_proxy").toLowerCase();
|
|
54827
|
+
if (!NO_PROXY) {
|
|
54828
|
+
return true;
|
|
54829
|
+
}
|
|
54830
|
+
if (NO_PROXY === "*") {
|
|
54831
|
+
return false;
|
|
54832
|
+
}
|
|
54833
|
+
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
|
54834
|
+
if (!proxy) {
|
|
54835
|
+
return true;
|
|
54836
|
+
}
|
|
54837
|
+
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
|
54838
|
+
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
|
54839
|
+
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
|
54840
|
+
if (parsedProxyPort && parsedProxyPort !== port) {
|
|
54841
|
+
return true;
|
|
54842
|
+
}
|
|
54843
|
+
if (!/^[.*]/.test(parsedProxyHostname)) {
|
|
54844
|
+
return hostname !== parsedProxyHostname;
|
|
54845
|
+
}
|
|
54846
|
+
if (parsedProxyHostname.charAt(0) === "*") {
|
|
54847
|
+
parsedProxyHostname = parsedProxyHostname.slice(1);
|
|
54848
|
+
}
|
|
54849
|
+
return !hostname.endsWith(parsedProxyHostname);
|
|
54850
|
+
});
|
|
54851
|
+
}
|
|
54852
|
+
function getEnv(key) {
|
|
54853
|
+
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
54854
|
+
}
|
|
54855
|
+
|
|
54753
54856
|
// ../../../node_modules/axios/lib/adapters/http.js
|
|
54754
|
-
var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
|
|
54755
54857
|
var import_http = __toESM(require("http"), 1);
|
|
54756
54858
|
var import_https = __toESM(require("https"), 1);
|
|
54757
54859
|
var import_http2 = __toESM(require("http2"), 1);
|
|
@@ -54760,7 +54862,7 @@ var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
|
54760
54862
|
var import_zlib2 = __toESM(require("zlib"), 1);
|
|
54761
54863
|
|
|
54762
54864
|
// ../../../node_modules/axios/lib/env/data.js
|
|
54763
|
-
var VERSION = "1.
|
|
54865
|
+
var VERSION = "1.15.0";
|
|
54764
54866
|
|
|
54765
54867
|
// ../../../node_modules/axios/lib/helpers/parseProtocol.js
|
|
54766
54868
|
function parseProtocol(url2) {
|
|
@@ -54805,16 +54907,21 @@ var import_stream = __toESM(require("stream"), 1);
|
|
|
54805
54907
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
54806
54908
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
54807
54909
|
constructor(options) {
|
|
54808
|
-
options = utils_default.toFlatObject(
|
|
54809
|
-
|
|
54810
|
-
|
|
54811
|
-
|
|
54812
|
-
|
|
54813
|
-
|
|
54814
|
-
|
|
54815
|
-
|
|
54816
|
-
|
|
54817
|
-
|
|
54910
|
+
options = utils_default.toFlatObject(
|
|
54911
|
+
options,
|
|
54912
|
+
{
|
|
54913
|
+
maxRate: 0,
|
|
54914
|
+
chunkSize: 64 * 1024,
|
|
54915
|
+
minChunkSize: 100,
|
|
54916
|
+
timeWindow: 500,
|
|
54917
|
+
ticksRate: 2,
|
|
54918
|
+
samplesCount: 15
|
|
54919
|
+
},
|
|
54920
|
+
null,
|
|
54921
|
+
(prop, source) => {
|
|
54922
|
+
return !utils_default.isUndefined(source[prop]);
|
|
54923
|
+
}
|
|
54924
|
+
);
|
|
54818
54925
|
super({
|
|
54819
54926
|
readableHighWaterMark: options.chunkSize
|
|
54820
54927
|
});
|
|
@@ -54897,9 +55004,12 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
54897
55004
|
chunkRemainder = _chunk.subarray(maxChunkSize);
|
|
54898
55005
|
_chunk = _chunk.subarray(0, maxChunkSize);
|
|
54899
55006
|
}
|
|
54900
|
-
pushChunk(
|
|
54901
|
-
|
|
54902
|
-
|
|
55007
|
+
pushChunk(
|
|
55008
|
+
_chunk,
|
|
55009
|
+
chunkRemainder ? () => {
|
|
55010
|
+
process.nextTick(_callback, null, chunkRemainder);
|
|
55011
|
+
} : _callback
|
|
55012
|
+
);
|
|
54903
55013
|
};
|
|
54904
55014
|
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
|
54905
55015
|
if (err) {
|
|
@@ -54970,11 +55080,14 @@ var FormDataPart = class {
|
|
|
54970
55080
|
yield CRLF_BYTES;
|
|
54971
55081
|
}
|
|
54972
55082
|
static escapeName(name) {
|
|
54973
|
-
return String(name).replace(
|
|
54974
|
-
|
|
54975
|
-
|
|
54976
|
-
|
|
54977
|
-
|
|
55083
|
+
return String(name).replace(
|
|
55084
|
+
/[\r\n"]/g,
|
|
55085
|
+
(match2) => ({
|
|
55086
|
+
"\r": "%0D",
|
|
55087
|
+
"\n": "%0A",
|
|
55088
|
+
'"': "%22"
|
|
55089
|
+
})[match2]
|
|
55090
|
+
);
|
|
54978
55091
|
}
|
|
54979
55092
|
};
|
|
54980
55093
|
var formDataToStream = (form, headersHandler, options) => {
|
|
@@ -55006,13 +55119,15 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
55006
55119
|
computedHeaders["Content-Length"] = contentLength;
|
|
55007
55120
|
}
|
|
55008
55121
|
headersHandler && headersHandler(computedHeaders);
|
|
55009
|
-
return import_stream2.Readable.from(
|
|
55010
|
-
|
|
55011
|
-
|
|
55012
|
-
|
|
55013
|
-
|
|
55014
|
-
|
|
55015
|
-
|
|
55122
|
+
return import_stream2.Readable.from(
|
|
55123
|
+
(async function* () {
|
|
55124
|
+
for (const part of parts) {
|
|
55125
|
+
yield boundaryBytes;
|
|
55126
|
+
yield* part.encode();
|
|
55127
|
+
}
|
|
55128
|
+
yield footerBytes;
|
|
55129
|
+
})()
|
|
55130
|
+
);
|
|
55016
55131
|
};
|
|
55017
55132
|
var formDataToStream_default = formDataToStream;
|
|
55018
55133
|
|
|
@@ -55053,6 +55168,83 @@ var callbackify = (fn2, reducer) => {
|
|
|
55053
55168
|
};
|
|
55054
55169
|
var callbackify_default = callbackify;
|
|
55055
55170
|
|
|
55171
|
+
// ../../../node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
55172
|
+
var DEFAULT_PORTS2 = {
|
|
55173
|
+
http: 80,
|
|
55174
|
+
https: 443,
|
|
55175
|
+
ws: 80,
|
|
55176
|
+
wss: 443,
|
|
55177
|
+
ftp: 21
|
|
55178
|
+
};
|
|
55179
|
+
var parseNoProxyEntry = (entry) => {
|
|
55180
|
+
let entryHost = entry;
|
|
55181
|
+
let entryPort = 0;
|
|
55182
|
+
if (entryHost.charAt(0) === "[") {
|
|
55183
|
+
const bracketIndex = entryHost.indexOf("]");
|
|
55184
|
+
if (bracketIndex !== -1) {
|
|
55185
|
+
const host = entryHost.slice(1, bracketIndex);
|
|
55186
|
+
const rest = entryHost.slice(bracketIndex + 1);
|
|
55187
|
+
if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
|
|
55188
|
+
entryPort = Number.parseInt(rest.slice(1), 10);
|
|
55189
|
+
}
|
|
55190
|
+
return [host, entryPort];
|
|
55191
|
+
}
|
|
55192
|
+
}
|
|
55193
|
+
const firstColon = entryHost.indexOf(":");
|
|
55194
|
+
const lastColon = entryHost.lastIndexOf(":");
|
|
55195
|
+
if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
|
|
55196
|
+
entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
|
|
55197
|
+
entryHost = entryHost.slice(0, lastColon);
|
|
55198
|
+
}
|
|
55199
|
+
return [entryHost, entryPort];
|
|
55200
|
+
};
|
|
55201
|
+
var normalizeNoProxyHost = (hostname) => {
|
|
55202
|
+
if (!hostname) {
|
|
55203
|
+
return hostname;
|
|
55204
|
+
}
|
|
55205
|
+
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
55206
|
+
hostname = hostname.slice(1, -1);
|
|
55207
|
+
}
|
|
55208
|
+
return hostname.replace(/\.+$/, "");
|
|
55209
|
+
};
|
|
55210
|
+
function shouldBypassProxy(location) {
|
|
55211
|
+
let parsed;
|
|
55212
|
+
try {
|
|
55213
|
+
parsed = new URL(location);
|
|
55214
|
+
} catch (_err) {
|
|
55215
|
+
return false;
|
|
55216
|
+
}
|
|
55217
|
+
const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
|
|
55218
|
+
if (!noProxy) {
|
|
55219
|
+
return false;
|
|
55220
|
+
}
|
|
55221
|
+
if (noProxy === "*") {
|
|
55222
|
+
return true;
|
|
55223
|
+
}
|
|
55224
|
+
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
|
|
55225
|
+
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
55226
|
+
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
55227
|
+
if (!entry) {
|
|
55228
|
+
return false;
|
|
55229
|
+
}
|
|
55230
|
+
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
55231
|
+
entryHost = normalizeNoProxyHost(entryHost);
|
|
55232
|
+
if (!entryHost) {
|
|
55233
|
+
return false;
|
|
55234
|
+
}
|
|
55235
|
+
if (entryPort && entryPort !== port) {
|
|
55236
|
+
return false;
|
|
55237
|
+
}
|
|
55238
|
+
if (entryHost.charAt(0) === "*") {
|
|
55239
|
+
entryHost = entryHost.slice(1);
|
|
55240
|
+
}
|
|
55241
|
+
if (entryHost.charAt(0) === ".") {
|
|
55242
|
+
return hostname.endsWith(entryHost);
|
|
55243
|
+
}
|
|
55244
|
+
return hostname === entryHost;
|
|
55245
|
+
});
|
|
55246
|
+
}
|
|
55247
|
+
|
|
55056
55248
|
// ../../../node_modules/axios/lib/helpers/speedometer.js
|
|
55057
55249
|
function speedometer(samplesCount, min) {
|
|
55058
55250
|
samplesCount = samplesCount || 10;
|
|
@@ -55151,11 +55343,14 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
55151
55343
|
};
|
|
55152
55344
|
var progressEventDecorator = (total, throttled) => {
|
|
55153
55345
|
const lengthComputable = total != null;
|
|
55154
|
-
return [
|
|
55155
|
-
|
|
55156
|
-
|
|
55157
|
-
|
|
55158
|
-
|
|
55346
|
+
return [
|
|
55347
|
+
(loaded) => throttled[0]({
|
|
55348
|
+
lengthComputable,
|
|
55349
|
+
total,
|
|
55350
|
+
loaded
|
|
55351
|
+
}),
|
|
55352
|
+
throttled[1]
|
|
55353
|
+
];
|
|
55159
55354
|
};
|
|
55160
55355
|
var asyncDecorator = (fn2) => (...args) => utils_default.asap(() => fn2(...args));
|
|
55161
55356
|
|
|
@@ -55234,9 +55429,12 @@ var Http2Sessions = class {
|
|
|
55234
55429
|
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
55235
55430
|
}
|
|
55236
55431
|
getSession(authority, options) {
|
|
55237
|
-
options = Object.assign(
|
|
55238
|
-
|
|
55239
|
-
|
|
55432
|
+
options = Object.assign(
|
|
55433
|
+
{
|
|
55434
|
+
sessionTimeout: 1e3
|
|
55435
|
+
},
|
|
55436
|
+
options
|
|
55437
|
+
);
|
|
55240
55438
|
let authoritySessions = this.sessions[authority];
|
|
55241
55439
|
if (authoritySessions) {
|
|
55242
55440
|
let len = authoritySessions.length;
|
|
@@ -55262,6 +55460,9 @@ var Http2Sessions = class {
|
|
|
55262
55460
|
} else {
|
|
55263
55461
|
entries.splice(i, 1);
|
|
55264
55462
|
}
|
|
55463
|
+
if (!session.closed) {
|
|
55464
|
+
session.close();
|
|
55465
|
+
}
|
|
55265
55466
|
return;
|
|
55266
55467
|
}
|
|
55267
55468
|
}
|
|
@@ -55290,10 +55491,7 @@ var Http2Sessions = class {
|
|
|
55290
55491
|
};
|
|
55291
55492
|
}
|
|
55292
55493
|
session.once("close", removeSession);
|
|
55293
|
-
let entry = [
|
|
55294
|
-
session,
|
|
55295
|
-
options
|
|
55296
|
-
];
|
|
55494
|
+
let entry = [session, options];
|
|
55297
55495
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
55298
55496
|
return session;
|
|
55299
55497
|
}
|
|
@@ -55310,9 +55508,11 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
55310
55508
|
function setProxy(options, configProxy, location) {
|
|
55311
55509
|
let proxy = configProxy;
|
|
55312
55510
|
if (!proxy && proxy !== false) {
|
|
55313
|
-
const proxyUrl =
|
|
55511
|
+
const proxyUrl = getProxyForUrl(location);
|
|
55314
55512
|
if (proxyUrl) {
|
|
55315
|
-
|
|
55513
|
+
if (!shouldBypassProxy(location)) {
|
|
55514
|
+
proxy = new URL(proxyUrl);
|
|
55515
|
+
}
|
|
55316
55516
|
}
|
|
55317
55517
|
}
|
|
55318
55518
|
if (proxy) {
|
|
@@ -55320,8 +55520,11 @@ function setProxy(options, configProxy, location) {
|
|
|
55320
55520
|
proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
|
|
55321
55521
|
}
|
|
55322
55522
|
if (proxy.auth) {
|
|
55323
|
-
|
|
55523
|
+
const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
|
|
55524
|
+
if (validProxyAuth) {
|
|
55324
55525
|
proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
|
|
55526
|
+
} else if (typeof proxy.auth === "object") {
|
|
55527
|
+
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
55325
55528
|
}
|
|
55326
55529
|
const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
55327
55530
|
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
@@ -55373,15 +55576,10 @@ var resolveFamily = ({ address, family }) => {
|
|
|
55373
55576
|
var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
|
|
55374
55577
|
var http2Transport = {
|
|
55375
55578
|
request(options, cb) {
|
|
55376
|
-
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || 80);
|
|
55579
|
+
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
55377
55580
|
const { http2Options, headers } = options;
|
|
55378
55581
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
55379
|
-
const {
|
|
55380
|
-
HTTP2_HEADER_SCHEME,
|
|
55381
|
-
HTTP2_HEADER_METHOD,
|
|
55382
|
-
HTTP2_HEADER_PATH,
|
|
55383
|
-
HTTP2_HEADER_STATUS
|
|
55384
|
-
} = import_http2.default.constants;
|
|
55582
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http2.default.constants;
|
|
55385
55583
|
const http2Headers = {
|
|
55386
55584
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
55387
55585
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -55434,7 +55632,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55434
55632
|
const abortEmitter = new import_events3.EventEmitter();
|
|
55435
55633
|
function abort(reason) {
|
|
55436
55634
|
try {
|
|
55437
|
-
abortEmitter.emit(
|
|
55635
|
+
abortEmitter.emit(
|
|
55636
|
+
"abort",
|
|
55637
|
+
!reason || reason.type ? new CanceledError_default(null, config, req) : reason
|
|
55638
|
+
);
|
|
55438
55639
|
} catch (err) {
|
|
55439
55640
|
console.warn("emit error", err);
|
|
55440
55641
|
}
|
|
@@ -55480,11 +55681,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55480
55681
|
const dataUrl = String(config.url || fullPath || "");
|
|
55481
55682
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
55482
55683
|
if (estimated > config.maxContentLength) {
|
|
55483
|
-
return reject(
|
|
55484
|
-
|
|
55485
|
-
|
|
55486
|
-
|
|
55487
|
-
|
|
55684
|
+
return reject(
|
|
55685
|
+
new AxiosError_default(
|
|
55686
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
55687
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
55688
|
+
config
|
|
55689
|
+
)
|
|
55690
|
+
);
|
|
55488
55691
|
}
|
|
55489
55692
|
}
|
|
55490
55693
|
let convertedData;
|
|
@@ -55520,11 +55723,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55520
55723
|
});
|
|
55521
55724
|
}
|
|
55522
55725
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
55523
|
-
return reject(
|
|
55524
|
-
"Unsupported protocol " + protocol,
|
|
55525
|
-
|
|
55526
|
-
config
|
|
55527
|
-
));
|
|
55726
|
+
return reject(
|
|
55727
|
+
new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
|
|
55728
|
+
);
|
|
55528
55729
|
}
|
|
55529
55730
|
const headers = AxiosHeaders_default.from(config.headers).normalize();
|
|
55530
55731
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
@@ -55534,12 +55735,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55534
55735
|
let maxDownloadRate = void 0;
|
|
55535
55736
|
if (utils_default.isSpecCompliantForm(data)) {
|
|
55536
55737
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
55537
|
-
data = formDataToStream_default(
|
|
55538
|
-
|
|
55539
|
-
|
|
55540
|
-
|
|
55541
|
-
|
|
55542
|
-
|
|
55738
|
+
data = formDataToStream_default(
|
|
55739
|
+
data,
|
|
55740
|
+
(formHeaders) => {
|
|
55741
|
+
headers.set(formHeaders);
|
|
55742
|
+
},
|
|
55743
|
+
{
|
|
55744
|
+
tag: `axios-${VERSION}-boundary`,
|
|
55745
|
+
boundary: userBoundary && userBoundary[1] || void 0
|
|
55746
|
+
}
|
|
55747
|
+
);
|
|
55543
55748
|
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
|
|
55544
55749
|
headers.set(data.getHeaders());
|
|
55545
55750
|
if (!headers.hasContentLength()) {
|
|
@@ -55560,19 +55765,23 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55560
55765
|
} else if (utils_default.isString(data)) {
|
|
55561
55766
|
data = Buffer.from(data, "utf-8");
|
|
55562
55767
|
} else {
|
|
55563
|
-
return reject(
|
|
55564
|
-
|
|
55565
|
-
|
|
55566
|
-
|
|
55567
|
-
|
|
55768
|
+
return reject(
|
|
55769
|
+
new AxiosError_default(
|
|
55770
|
+
"Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
|
|
55771
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
55772
|
+
config
|
|
55773
|
+
)
|
|
55774
|
+
);
|
|
55568
55775
|
}
|
|
55569
55776
|
headers.setContentLength(data.length, false);
|
|
55570
55777
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
55571
|
-
return reject(
|
|
55572
|
-
|
|
55573
|
-
|
|
55574
|
-
|
|
55575
|
-
|
|
55778
|
+
return reject(
|
|
55779
|
+
new AxiosError_default(
|
|
55780
|
+
"Request body larger than maxBodyLength limit",
|
|
55781
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
55782
|
+
config
|
|
55783
|
+
)
|
|
55784
|
+
);
|
|
55576
55785
|
}
|
|
55577
55786
|
}
|
|
55578
55787
|
const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
|
|
@@ -55586,16 +55795,25 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55586
55795
|
if (!utils_default.isStream(data)) {
|
|
55587
55796
|
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
55588
55797
|
}
|
|
55589
|
-
data = import_stream4.default.pipeline(
|
|
55590
|
-
|
|
55591
|
-
|
|
55592
|
-
|
|
55593
|
-
|
|
55594
|
-
|
|
55595
|
-
|
|
55596
|
-
|
|
55798
|
+
data = import_stream4.default.pipeline(
|
|
55799
|
+
[
|
|
55800
|
+
data,
|
|
55801
|
+
new AxiosTransformStream_default({
|
|
55802
|
+
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
55803
|
+
})
|
|
55804
|
+
],
|
|
55805
|
+
utils_default.noop
|
|
55806
|
+
);
|
|
55807
|
+
onUploadProgress && data.on(
|
|
55808
|
+
"progress",
|
|
55809
|
+
flushOnFinish(
|
|
55810
|
+
data,
|
|
55811
|
+
progressEventDecorator(
|
|
55812
|
+
contentLength,
|
|
55813
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
55814
|
+
)
|
|
55597
55815
|
)
|
|
55598
|
-
)
|
|
55816
|
+
);
|
|
55599
55817
|
}
|
|
55600
55818
|
let auth = void 0;
|
|
55601
55819
|
if (config.auth) {
|
|
@@ -55646,7 +55864,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55646
55864
|
} else {
|
|
55647
55865
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
55648
55866
|
options.port = parsed.port;
|
|
55649
|
-
setProxy(
|
|
55867
|
+
setProxy(
|
|
55868
|
+
options,
|
|
55869
|
+
config.proxy,
|
|
55870
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
55871
|
+
);
|
|
55650
55872
|
}
|
|
55651
55873
|
let transport;
|
|
55652
55874
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
@@ -55684,13 +55906,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55684
55906
|
const transformStream = new AxiosTransformStream_default({
|
|
55685
55907
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
55686
55908
|
});
|
|
55687
|
-
onDownloadProgress && transformStream.on(
|
|
55688
|
-
|
|
55689
|
-
|
|
55690
|
-
|
|
55691
|
-
|
|
55909
|
+
onDownloadProgress && transformStream.on(
|
|
55910
|
+
"progress",
|
|
55911
|
+
flushOnFinish(
|
|
55912
|
+
transformStream,
|
|
55913
|
+
progressEventDecorator(
|
|
55914
|
+
responseLength,
|
|
55915
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
55916
|
+
)
|
|
55692
55917
|
)
|
|
55693
|
-
)
|
|
55918
|
+
);
|
|
55694
55919
|
streams.push(transformStream);
|
|
55695
55920
|
}
|
|
55696
55921
|
let responseStream = res;
|
|
@@ -55740,12 +55965,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55740
55965
|
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
55741
55966
|
rejected = true;
|
|
55742
55967
|
responseStream.destroy();
|
|
55743
|
-
abort(
|
|
55744
|
-
|
|
55745
|
-
|
|
55746
|
-
|
|
55747
|
-
|
|
55748
|
-
|
|
55968
|
+
abort(
|
|
55969
|
+
new AxiosError_default(
|
|
55970
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
55971
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
55972
|
+
config,
|
|
55973
|
+
lastRequest
|
|
55974
|
+
)
|
|
55975
|
+
);
|
|
55749
55976
|
}
|
|
55750
55977
|
});
|
|
55751
55978
|
responseStream.on("aborted", function handlerStreamAborted() {
|
|
@@ -55804,12 +56031,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55804
56031
|
if (config.timeout) {
|
|
55805
56032
|
const timeout2 = parseInt(config.timeout, 10);
|
|
55806
56033
|
if (Number.isNaN(timeout2)) {
|
|
55807
|
-
abort(
|
|
55808
|
-
|
|
55809
|
-
|
|
55810
|
-
|
|
55811
|
-
|
|
55812
|
-
|
|
56034
|
+
abort(
|
|
56035
|
+
new AxiosError_default(
|
|
56036
|
+
"error trying to parse `config.timeout` to int",
|
|
56037
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
56038
|
+
config,
|
|
56039
|
+
req
|
|
56040
|
+
)
|
|
56041
|
+
);
|
|
55813
56042
|
return;
|
|
55814
56043
|
}
|
|
55815
56044
|
req.setTimeout(timeout2, function handleRequestTimeout() {
|
|
@@ -55819,12 +56048,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
55819
56048
|
if (config.timeoutErrorMessage) {
|
|
55820
56049
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
55821
56050
|
}
|
|
55822
|
-
abort(
|
|
55823
|
-
|
|
55824
|
-
|
|
55825
|
-
|
|
55826
|
-
|
|
55827
|
-
|
|
56051
|
+
abort(
|
|
56052
|
+
new AxiosError_default(
|
|
56053
|
+
timeoutErrorMessage,
|
|
56054
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
56055
|
+
config,
|
|
56056
|
+
req
|
|
56057
|
+
)
|
|
56058
|
+
);
|
|
55828
56059
|
});
|
|
55829
56060
|
} else {
|
|
55830
56061
|
req.setTimeout(0);
|
|
@@ -55980,7 +56211,8 @@ function mergeConfig(config1, config2) {
|
|
|
55980
56211
|
headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)
|
|
55981
56212
|
};
|
|
55982
56213
|
utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
55983
|
-
|
|
56214
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
56215
|
+
const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
55984
56216
|
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
55985
56217
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
55986
56218
|
});
|
|
@@ -55992,11 +56224,17 @@ var resolveConfig_default = (config) => {
|
|
|
55992
56224
|
const newConfig = mergeConfig({}, config);
|
|
55993
56225
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
55994
56226
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
55995
|
-
newConfig.url = buildURL(
|
|
56227
|
+
newConfig.url = buildURL(
|
|
56228
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
56229
|
+
config.params,
|
|
56230
|
+
config.paramsSerializer
|
|
56231
|
+
);
|
|
55996
56232
|
if (auth) {
|
|
55997
56233
|
headers.set(
|
|
55998
56234
|
"Authorization",
|
|
55999
|
-
"Basic " + btoa(
|
|
56235
|
+
"Basic " + btoa(
|
|
56236
|
+
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
56237
|
+
)
|
|
56000
56238
|
);
|
|
56001
56239
|
}
|
|
56002
56240
|
if (utils_default.isFormData(data)) {
|
|
@@ -56060,13 +56298,17 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
56060
56298
|
config,
|
|
56061
56299
|
request
|
|
56062
56300
|
};
|
|
56063
|
-
settle(
|
|
56064
|
-
|
|
56065
|
-
|
|
56066
|
-
|
|
56067
|
-
|
|
56068
|
-
|
|
56069
|
-
|
|
56301
|
+
settle(
|
|
56302
|
+
function _resolve(value) {
|
|
56303
|
+
resolve6(value);
|
|
56304
|
+
done();
|
|
56305
|
+
},
|
|
56306
|
+
function _reject(err) {
|
|
56307
|
+
reject(err);
|
|
56308
|
+
done();
|
|
56309
|
+
},
|
|
56310
|
+
response
|
|
56311
|
+
);
|
|
56070
56312
|
request = null;
|
|
56071
56313
|
}
|
|
56072
56314
|
if ("onloadend" in request) {
|
|
@@ -56102,12 +56344,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
56102
56344
|
if (_config.timeoutErrorMessage) {
|
|
56103
56345
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
56104
56346
|
}
|
|
56105
|
-
reject(
|
|
56106
|
-
|
|
56107
|
-
|
|
56108
|
-
|
|
56109
|
-
|
|
56110
|
-
|
|
56347
|
+
reject(
|
|
56348
|
+
new AxiosError_default(
|
|
56349
|
+
timeoutErrorMessage,
|
|
56350
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
56351
|
+
config,
|
|
56352
|
+
request
|
|
56353
|
+
)
|
|
56354
|
+
);
|
|
56111
56355
|
request = null;
|
|
56112
56356
|
};
|
|
56113
56357
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -56147,7 +56391,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
56147
56391
|
}
|
|
56148
56392
|
const protocol = parseProtocol(_config.url);
|
|
56149
56393
|
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
|
56150
|
-
reject(
|
|
56394
|
+
reject(
|
|
56395
|
+
new AxiosError_default(
|
|
56396
|
+
"Unsupported protocol " + protocol + ":",
|
|
56397
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
56398
|
+
config
|
|
56399
|
+
)
|
|
56400
|
+
);
|
|
56151
56401
|
return;
|
|
56152
56402
|
}
|
|
56153
56403
|
request.send(requestData || null);
|
|
@@ -56165,12 +56415,14 @@ var composeSignals = (signals3, timeout2) => {
|
|
|
56165
56415
|
aborted = true;
|
|
56166
56416
|
unsubscribe();
|
|
56167
56417
|
const err = reason instanceof Error ? reason : this.reason;
|
|
56168
|
-
controller.abort(
|
|
56418
|
+
controller.abort(
|
|
56419
|
+
err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
|
|
56420
|
+
);
|
|
56169
56421
|
}
|
|
56170
56422
|
};
|
|
56171
56423
|
let timer = timeout2 && setTimeout(() => {
|
|
56172
56424
|
timer = null;
|
|
56173
|
-
onabort(new AxiosError_default(`timeout ${timeout2}
|
|
56425
|
+
onabort(new AxiosError_default(`timeout of ${timeout2}ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
56174
56426
|
}, timeout2);
|
|
56175
56427
|
const unsubscribe = () => {
|
|
56176
56428
|
if (signals3) {
|
|
@@ -56238,33 +56490,36 @@ var trackStream = (stream5, chunkSize, onProgress, onFinish) => {
|
|
|
56238
56490
|
onFinish && onFinish(e);
|
|
56239
56491
|
}
|
|
56240
56492
|
};
|
|
56241
|
-
return new ReadableStream(
|
|
56242
|
-
|
|
56243
|
-
|
|
56244
|
-
|
|
56245
|
-
|
|
56246
|
-
|
|
56247
|
-
|
|
56248
|
-
|
|
56249
|
-
|
|
56250
|
-
|
|
56251
|
-
|
|
56252
|
-
|
|
56253
|
-
|
|
56493
|
+
return new ReadableStream(
|
|
56494
|
+
{
|
|
56495
|
+
async pull(controller) {
|
|
56496
|
+
try {
|
|
56497
|
+
const { done: done2, value } = await iterator2.next();
|
|
56498
|
+
if (done2) {
|
|
56499
|
+
_onFinish();
|
|
56500
|
+
controller.close();
|
|
56501
|
+
return;
|
|
56502
|
+
}
|
|
56503
|
+
let len = value.byteLength;
|
|
56504
|
+
if (onProgress) {
|
|
56505
|
+
let loadedBytes = bytes += len;
|
|
56506
|
+
onProgress(loadedBytes);
|
|
56507
|
+
}
|
|
56508
|
+
controller.enqueue(new Uint8Array(value));
|
|
56509
|
+
} catch (err) {
|
|
56510
|
+
_onFinish(err);
|
|
56511
|
+
throw err;
|
|
56254
56512
|
}
|
|
56255
|
-
|
|
56256
|
-
|
|
56257
|
-
_onFinish(
|
|
56258
|
-
|
|
56513
|
+
},
|
|
56514
|
+
cancel(reason) {
|
|
56515
|
+
_onFinish(reason);
|
|
56516
|
+
return iterator2.return();
|
|
56259
56517
|
}
|
|
56260
56518
|
},
|
|
56261
|
-
|
|
56262
|
-
|
|
56263
|
-
return iterator2.return();
|
|
56519
|
+
{
|
|
56520
|
+
highWaterMark: 2
|
|
56264
56521
|
}
|
|
56265
|
-
|
|
56266
|
-
highWaterMark: 2
|
|
56267
|
-
});
|
|
56522
|
+
);
|
|
56268
56523
|
};
|
|
56269
56524
|
|
|
56270
56525
|
// ../../../node_modules/axios/lib/adapters/fetch.js
|
|
@@ -56274,10 +56529,7 @@ var globalFetchAPI = (({ Request, Response }) => ({
|
|
|
56274
56529
|
Request,
|
|
56275
56530
|
Response
|
|
56276
56531
|
}))(utils_default.global);
|
|
56277
|
-
var {
|
|
56278
|
-
ReadableStream: ReadableStream2,
|
|
56279
|
-
TextEncoder: TextEncoder2
|
|
56280
|
-
} = utils_default.global;
|
|
56532
|
+
var { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global;
|
|
56281
56533
|
var test = (fn2, ...args) => {
|
|
56282
56534
|
try {
|
|
56283
56535
|
return !!fn2(...args);
|
|
@@ -56286,9 +56538,13 @@ var test = (fn2, ...args) => {
|
|
|
56286
56538
|
}
|
|
56287
56539
|
};
|
|
56288
56540
|
var factory = (env4) => {
|
|
56289
|
-
env4 = utils_default.merge.call(
|
|
56290
|
-
|
|
56291
|
-
|
|
56541
|
+
env4 = utils_default.merge.call(
|
|
56542
|
+
{
|
|
56543
|
+
skipUndefined: true
|
|
56544
|
+
},
|
|
56545
|
+
globalFetchAPI,
|
|
56546
|
+
env4
|
|
56547
|
+
);
|
|
56292
56548
|
const { fetch: envFetch, Request, Response } = env4;
|
|
56293
56549
|
const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
|
|
56294
56550
|
const isRequestSupported = isFunction2(Request);
|
|
@@ -56300,14 +56556,16 @@ var factory = (env4) => {
|
|
|
56300
56556
|
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
56301
56557
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
56302
56558
|
let duplexAccessed = false;
|
|
56559
|
+
const body = new ReadableStream2();
|
|
56303
56560
|
const hasContentType = new Request(platform_default.origin, {
|
|
56304
|
-
body
|
|
56561
|
+
body,
|
|
56305
56562
|
method: "POST",
|
|
56306
56563
|
get duplex() {
|
|
56307
56564
|
duplexAccessed = true;
|
|
56308
56565
|
return "half";
|
|
56309
56566
|
}
|
|
56310
56567
|
}).headers.has("Content-Type");
|
|
56568
|
+
body.cancel();
|
|
56311
56569
|
return duplexAccessed && !hasContentType;
|
|
56312
56570
|
});
|
|
56313
56571
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -56321,7 +56579,11 @@ var factory = (env4) => {
|
|
|
56321
56579
|
if (method) {
|
|
56322
56580
|
return method.call(res);
|
|
56323
56581
|
}
|
|
56324
|
-
throw new AxiosError_default(
|
|
56582
|
+
throw new AxiosError_default(
|
|
56583
|
+
`Response type '${type}' is not supported`,
|
|
56584
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
56585
|
+
config
|
|
56586
|
+
);
|
|
56325
56587
|
});
|
|
56326
56588
|
});
|
|
56327
56589
|
})();
|
|
@@ -56370,7 +56632,10 @@ var factory = (env4) => {
|
|
|
56370
56632
|
} = resolveConfig_default(config);
|
|
56371
56633
|
let _fetch = envFetch || fetch;
|
|
56372
56634
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
56373
|
-
let composedSignal = composeSignals_default(
|
|
56635
|
+
let composedSignal = composeSignals_default(
|
|
56636
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
56637
|
+
timeout2
|
|
56638
|
+
);
|
|
56374
56639
|
let request = null;
|
|
56375
56640
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
56376
56641
|
composedSignal.unsubscribe();
|
|
@@ -56430,7 +56695,10 @@ var factory = (env4) => {
|
|
|
56430
56695
|
);
|
|
56431
56696
|
}
|
|
56432
56697
|
responseType = responseType || "text";
|
|
56433
|
-
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
|
|
56698
|
+
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
|
|
56699
|
+
response,
|
|
56700
|
+
config
|
|
56701
|
+
);
|
|
56434
56702
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
56435
56703
|
return await new Promise((resolve6, reject) => {
|
|
56436
56704
|
settle(resolve6, reject, {
|
|
@@ -56446,13 +56714,19 @@ var factory = (env4) => {
|
|
|
56446
56714
|
unsubscribe && unsubscribe();
|
|
56447
56715
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
56448
56716
|
throw Object.assign(
|
|
56449
|
-
new AxiosError_default(
|
|
56717
|
+
new AxiosError_default(
|
|
56718
|
+
"Network Error",
|
|
56719
|
+
AxiosError_default.ERR_NETWORK,
|
|
56720
|
+
config,
|
|
56721
|
+
request,
|
|
56722
|
+
err && err.response
|
|
56723
|
+
),
|
|
56450
56724
|
{
|
|
56451
56725
|
cause: err.cause || err
|
|
56452
56726
|
}
|
|
56453
56727
|
);
|
|
56454
56728
|
}
|
|
56455
|
-
throw AxiosError_default.from(err, err && err.code, config, request);
|
|
56729
|
+
throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
|
|
56456
56730
|
}
|
|
56457
56731
|
};
|
|
56458
56732
|
};
|
|
@@ -56460,11 +56734,7 @@ var seedCache = /* @__PURE__ */ new Map();
|
|
|
56460
56734
|
var getFetch = (config) => {
|
|
56461
56735
|
let env4 = config && config.env || {};
|
|
56462
56736
|
const { fetch: fetch2, Request, Response } = env4;
|
|
56463
|
-
const seeds = [
|
|
56464
|
-
Request,
|
|
56465
|
-
Response,
|
|
56466
|
-
fetch2
|
|
56467
|
-
];
|
|
56737
|
+
const seeds = [Request, Response, fetch2];
|
|
56468
56738
|
let len = seeds.length, i = len, seed, target, map = seedCache;
|
|
56469
56739
|
while (i--) {
|
|
56470
56740
|
seed = seeds[i];
|
|
@@ -56553,37 +56823,33 @@ function throwIfCancellationRequested(config) {
|
|
|
56553
56823
|
function dispatchRequest(config) {
|
|
56554
56824
|
throwIfCancellationRequested(config);
|
|
56555
56825
|
config.headers = AxiosHeaders_default.from(config.headers);
|
|
56556
|
-
config.data = transformData.call(
|
|
56557
|
-
config,
|
|
56558
|
-
config.transformRequest
|
|
56559
|
-
);
|
|
56826
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
56560
56827
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
56561
56828
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
56562
56829
|
}
|
|
56563
56830
|
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
56564
|
-
return adapter2(config).then(
|
|
56565
|
-
|
|
56566
|
-
response.data = transformData.call(
|
|
56567
|
-
config,
|
|
56568
|
-
config.transformResponse,
|
|
56569
|
-
response
|
|
56570
|
-
);
|
|
56571
|
-
response.headers = AxiosHeaders_default.from(response.headers);
|
|
56572
|
-
return response;
|
|
56573
|
-
}, function onAdapterRejection(reason) {
|
|
56574
|
-
if (!isCancel(reason)) {
|
|
56831
|
+
return adapter2(config).then(
|
|
56832
|
+
function onAdapterResolution(response) {
|
|
56575
56833
|
throwIfCancellationRequested(config);
|
|
56576
|
-
|
|
56577
|
-
|
|
56578
|
-
|
|
56579
|
-
|
|
56580
|
-
|
|
56581
|
-
|
|
56582
|
-
|
|
56834
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
56835
|
+
response.headers = AxiosHeaders_default.from(response.headers);
|
|
56836
|
+
return response;
|
|
56837
|
+
},
|
|
56838
|
+
function onAdapterRejection(reason) {
|
|
56839
|
+
if (!isCancel(reason)) {
|
|
56840
|
+
throwIfCancellationRequested(config);
|
|
56841
|
+
if (reason && reason.response) {
|
|
56842
|
+
reason.response.data = transformData.call(
|
|
56843
|
+
config,
|
|
56844
|
+
config.transformResponse,
|
|
56845
|
+
reason.response
|
|
56846
|
+
);
|
|
56847
|
+
reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
|
|
56848
|
+
}
|
|
56583
56849
|
}
|
|
56850
|
+
return Promise.reject(reason);
|
|
56584
56851
|
}
|
|
56585
|
-
|
|
56586
|
-
});
|
|
56852
|
+
);
|
|
56587
56853
|
}
|
|
56588
56854
|
|
|
56589
56855
|
// ../../../node_modules/axios/lib/helpers/validator.js
|
|
@@ -56636,7 +56902,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
56636
56902
|
const value = options[opt];
|
|
56637
56903
|
const result = value === void 0 || validator(value, opt, options);
|
|
56638
56904
|
if (result !== true) {
|
|
56639
|
-
throw new AxiosError_default(
|
|
56905
|
+
throw new AxiosError_default(
|
|
56906
|
+
"option " + opt + " must be " + result,
|
|
56907
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE
|
|
56908
|
+
);
|
|
56640
56909
|
}
|
|
56641
56910
|
continue;
|
|
56642
56911
|
}
|
|
@@ -56675,12 +56944,23 @@ var Axios = class {
|
|
|
56675
56944
|
if (err instanceof Error) {
|
|
56676
56945
|
let dummy = {};
|
|
56677
56946
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
56678
|
-
const stack =
|
|
56947
|
+
const stack = (() => {
|
|
56948
|
+
if (!dummy.stack) {
|
|
56949
|
+
return "";
|
|
56950
|
+
}
|
|
56951
|
+
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
56952
|
+
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
56953
|
+
})();
|
|
56679
56954
|
try {
|
|
56680
56955
|
if (!err.stack) {
|
|
56681
56956
|
err.stack = stack;
|
|
56682
|
-
} else if (stack
|
|
56683
|
-
|
|
56957
|
+
} else if (stack) {
|
|
56958
|
+
const firstNewlineIndex = stack.indexOf("\n");
|
|
56959
|
+
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
56960
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
56961
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
|
|
56962
|
+
err.stack += "\n" + stack;
|
|
56963
|
+
}
|
|
56684
56964
|
}
|
|
56685
56965
|
} catch (e) {
|
|
56686
56966
|
}
|
|
@@ -56698,11 +56978,16 @@ var Axios = class {
|
|
|
56698
56978
|
config = mergeConfig(this.defaults, config);
|
|
56699
56979
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
56700
56980
|
if (transitional2 !== void 0) {
|
|
56701
|
-
validator_default.assertOptions(
|
|
56702
|
-
|
|
56703
|
-
|
|
56704
|
-
|
|
56705
|
-
|
|
56981
|
+
validator_default.assertOptions(
|
|
56982
|
+
transitional2,
|
|
56983
|
+
{
|
|
56984
|
+
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
56985
|
+
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
56986
|
+
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
56987
|
+
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
56988
|
+
},
|
|
56989
|
+
false
|
|
56990
|
+
);
|
|
56706
56991
|
}
|
|
56707
56992
|
if (paramsSerializer != null) {
|
|
56708
56993
|
if (utils_default.isFunction(paramsSerializer)) {
|
|
@@ -56710,10 +56995,14 @@ var Axios = class {
|
|
|
56710
56995
|
serialize: paramsSerializer
|
|
56711
56996
|
};
|
|
56712
56997
|
} else {
|
|
56713
|
-
validator_default.assertOptions(
|
|
56714
|
-
|
|
56715
|
-
|
|
56716
|
-
|
|
56998
|
+
validator_default.assertOptions(
|
|
56999
|
+
paramsSerializer,
|
|
57000
|
+
{
|
|
57001
|
+
encode: validators2.function,
|
|
57002
|
+
serialize: validators2.function
|
|
57003
|
+
},
|
|
57004
|
+
true
|
|
57005
|
+
);
|
|
56717
57006
|
}
|
|
56718
57007
|
}
|
|
56719
57008
|
if (config.allowAbsoluteUrls !== void 0) {
|
|
@@ -56722,21 +57011,19 @@ var Axios = class {
|
|
|
56722
57011
|
} else {
|
|
56723
57012
|
config.allowAbsoluteUrls = true;
|
|
56724
57013
|
}
|
|
56725
|
-
validator_default.assertOptions(
|
|
56726
|
-
|
|
56727
|
-
|
|
56728
|
-
|
|
56729
|
-
|
|
56730
|
-
|
|
56731
|
-
|
|
56732
|
-
headers[config.method]
|
|
56733
|
-
);
|
|
56734
|
-
headers && utils_default.forEach(
|
|
56735
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
56736
|
-
(method) => {
|
|
56737
|
-
delete headers[method];
|
|
56738
|
-
}
|
|
57014
|
+
validator_default.assertOptions(
|
|
57015
|
+
config,
|
|
57016
|
+
{
|
|
57017
|
+
baseUrl: validators2.spelling("baseURL"),
|
|
57018
|
+
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
57019
|
+
},
|
|
57020
|
+
true
|
|
56739
57021
|
);
|
|
57022
|
+
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
57023
|
+
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
57024
|
+
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
57025
|
+
delete headers[method];
|
|
57026
|
+
});
|
|
56740
57027
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
56741
57028
|
const requestInterceptorChain = [];
|
|
56742
57029
|
let synchronousRequestInterceptors = true;
|
|
@@ -56745,7 +57032,13 @@ var Axios = class {
|
|
|
56745
57032
|
return;
|
|
56746
57033
|
}
|
|
56747
57034
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
56748
|
-
|
|
57035
|
+
const transitional3 = config.transitional || transitional_default;
|
|
57036
|
+
const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
|
|
57037
|
+
if (legacyInterceptorReqResOrdering) {
|
|
57038
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
57039
|
+
} else {
|
|
57040
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
57041
|
+
}
|
|
56749
57042
|
});
|
|
56750
57043
|
const responseInterceptorChain = [];
|
|
56751
57044
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -56797,24 +57090,28 @@ var Axios = class {
|
|
|
56797
57090
|
};
|
|
56798
57091
|
utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
56799
57092
|
Axios.prototype[method] = function(url2, config) {
|
|
56800
|
-
return this.request(
|
|
56801
|
-
|
|
56802
|
-
|
|
56803
|
-
|
|
56804
|
-
|
|
57093
|
+
return this.request(
|
|
57094
|
+
mergeConfig(config || {}, {
|
|
57095
|
+
method,
|
|
57096
|
+
url: url2,
|
|
57097
|
+
data: (config || {}).data
|
|
57098
|
+
})
|
|
57099
|
+
);
|
|
56805
57100
|
};
|
|
56806
57101
|
});
|
|
56807
57102
|
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
56808
57103
|
function generateHTTPMethod(isForm) {
|
|
56809
57104
|
return function httpMethod(url2, data, config) {
|
|
56810
|
-
return this.request(
|
|
56811
|
-
|
|
56812
|
-
|
|
56813
|
-
|
|
56814
|
-
|
|
56815
|
-
|
|
56816
|
-
|
|
56817
|
-
|
|
57105
|
+
return this.request(
|
|
57106
|
+
mergeConfig(config || {}, {
|
|
57107
|
+
method,
|
|
57108
|
+
headers: isForm ? {
|
|
57109
|
+
"Content-Type": "multipart/form-data"
|
|
57110
|
+
} : {},
|
|
57111
|
+
url: url2,
|
|
57112
|
+
data
|
|
57113
|
+
})
|
|
57114
|
+
);
|
|
56818
57115
|
};
|
|
56819
57116
|
}
|
|
56820
57117
|
Axios.prototype[method] = generateHTTPMethod();
|