@alpic-ai/sdk 0.0.0-dev.g35e4c7c → 0.0.0-dev.g35f585d
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/api/auth-scope.js +1 -0
- package/dist/api/auth-scope.js.map +1 -1
- package/dist/auth/oauth-client.js +1 -0
- package/dist/auth/oauth-client.js.map +1 -1
- package/dist/auth/store.js +1 -0
- package/dist/auth/store.js.map +1 -1
- package/dist/lib/emitter.js +3 -0
- package/dist/lib/emitter.js.map +1 -1
- package/dist/project/config.js +2 -0
- package/dist/project/config.js.map +1 -1
- package/dist/tunnel/tunnel.js +6 -0
- package/dist/tunnel/tunnel.js.map +1 -1
- package/dist/vendor/pipenet.js +306 -741
- package/dist/vendor/pipenet.js.map +4 -4
- package/package.json +2 -2
package/dist/vendor/pipenet.js
CHANGED
|
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
45
|
var require_delayed_stream = __commonJS({
|
|
46
46
|
"../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
|
|
47
47
|
var Stream = __require("stream").Stream;
|
|
48
|
-
var
|
|
48
|
+
var util3 = __require("util");
|
|
49
49
|
module.exports = DelayedStream;
|
|
50
50
|
function DelayedStream() {
|
|
51
51
|
this.source = null;
|
|
@@ -56,7 +56,7 @@ var require_delayed_stream = __commonJS({
|
|
|
56
56
|
this._released = false;
|
|
57
57
|
this._bufferedEvents = [];
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
util3.inherits(DelayedStream, Stream);
|
|
60
60
|
DelayedStream.create = function(source, options) {
|
|
61
61
|
var delayedStream = new this();
|
|
62
62
|
options = options || {};
|
|
@@ -135,7 +135,7 @@ var require_delayed_stream = __commonJS({
|
|
|
135
135
|
// ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
|
|
136
136
|
var require_combined_stream = __commonJS({
|
|
137
137
|
"../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
|
|
138
|
-
var
|
|
138
|
+
var util3 = __require("util");
|
|
139
139
|
var Stream = __require("stream").Stream;
|
|
140
140
|
var DelayedStream = require_delayed_stream();
|
|
141
141
|
module.exports = CombinedStream;
|
|
@@ -151,7 +151,7 @@ var require_combined_stream = __commonJS({
|
|
|
151
151
|
this._insideLoop = false;
|
|
152
152
|
this._pendingNext = false;
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
util3.inherits(CombinedStream, Stream);
|
|
155
155
|
CombinedStream.create = function(options) {
|
|
156
156
|
var combinedStream = new this();
|
|
157
157
|
options = options || {};
|
|
@@ -9996,7 +9996,7 @@ var require_form_data = __commonJS({
|
|
|
9996
9996
|
"../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js"(exports, module) {
|
|
9997
9997
|
"use strict";
|
|
9998
9998
|
var CombinedStream = require_combined_stream();
|
|
9999
|
-
var
|
|
9999
|
+
var util3 = __require("util");
|
|
10000
10000
|
var path = __require("path");
|
|
10001
10001
|
var http3 = __require("http");
|
|
10002
10002
|
var https2 = __require("https");
|
|
@@ -10025,7 +10025,7 @@ var require_form_data = __commonJS({
|
|
|
10025
10025
|
this[option] = options[option];
|
|
10026
10026
|
}
|
|
10027
10027
|
}
|
|
10028
|
-
|
|
10028
|
+
util3.inherits(FormData3, CombinedStream);
|
|
10029
10029
|
FormData3.LINE_BREAK = "\r\n";
|
|
10030
10030
|
FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
10031
10031
|
FormData3.prototype.append = function(field, value, options) {
|
|
@@ -10907,14 +10907,14 @@ var require_supports_color = __commonJS({
|
|
|
10907
10907
|
var require_node = __commonJS({
|
|
10908
10908
|
"../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
|
|
10909
10909
|
var tty = __require("tty");
|
|
10910
|
-
var
|
|
10910
|
+
var util3 = __require("util");
|
|
10911
10911
|
exports.init = init;
|
|
10912
10912
|
exports.log = log3;
|
|
10913
10913
|
exports.formatArgs = formatArgs;
|
|
10914
10914
|
exports.save = save;
|
|
10915
10915
|
exports.load = load;
|
|
10916
10916
|
exports.useColors = useColors;
|
|
10917
|
-
exports.destroy =
|
|
10917
|
+
exports.destroy = util3.deprecate(
|
|
10918
10918
|
() => {
|
|
10919
10919
|
},
|
|
10920
10920
|
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
@@ -11045,7 +11045,7 @@ var require_node = __commonJS({
|
|
|
11045
11045
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
11046
11046
|
}
|
|
11047
11047
|
function log3(...args) {
|
|
11048
|
-
return process.stderr.write(
|
|
11048
|
+
return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
11049
11049
|
}
|
|
11050
11050
|
function save(namespaces) {
|
|
11051
11051
|
if (namespaces) {
|
|
@@ -11068,11 +11068,11 @@ var require_node = __commonJS({
|
|
|
11068
11068
|
var { formatters } = module.exports;
|
|
11069
11069
|
formatters.o = function(v) {
|
|
11070
11070
|
this.inspectOpts.colors = this.useColors;
|
|
11071
|
-
return
|
|
11071
|
+
return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
11072
11072
|
};
|
|
11073
11073
|
formatters.O = function(v) {
|
|
11074
11074
|
this.inspectOpts.colors = this.useColors;
|
|
11075
|
-
return
|
|
11075
|
+
return util3.inspect(v, this.inspectOpts);
|
|
11076
11076
|
};
|
|
11077
11077
|
}
|
|
11078
11078
|
});
|
|
@@ -12069,34 +12069,17 @@ var require_follow_redirects = __commonJS({
|
|
|
12069
12069
|
}
|
|
12070
12070
|
});
|
|
12071
12071
|
|
|
12072
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12072
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
|
|
12073
12073
|
function bind(fn, thisArg) {
|
|
12074
12074
|
return function wrap() {
|
|
12075
12075
|
return fn.apply(thisArg, arguments);
|
|
12076
12076
|
};
|
|
12077
12077
|
}
|
|
12078
12078
|
|
|
12079
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12079
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
|
|
12080
12080
|
var { toString } = Object.prototype;
|
|
12081
12081
|
var { getPrototypeOf } = Object;
|
|
12082
12082
|
var { iterator, toStringTag } = Symbol;
|
|
12083
|
-
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
12084
|
-
var hasOwnInPrototypeChain = (thing, prop) => {
|
|
12085
|
-
let obj = thing;
|
|
12086
|
-
const seen = [];
|
|
12087
|
-
while (obj != null && obj !== Object.prototype) {
|
|
12088
|
-
if (seen.indexOf(obj) !== -1) {
|
|
12089
|
-
return false;
|
|
12090
|
-
}
|
|
12091
|
-
seen.push(obj);
|
|
12092
|
-
if (hasOwnProperty(obj, prop)) {
|
|
12093
|
-
return true;
|
|
12094
|
-
}
|
|
12095
|
-
obj = getPrototypeOf(obj);
|
|
12096
|
-
}
|
|
12097
|
-
return false;
|
|
12098
|
-
};
|
|
12099
|
-
var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
|
|
12100
12083
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
12101
12084
|
const str = toString.call(thing);
|
|
12102
12085
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -12127,14 +12110,11 @@ var isNumber = typeOfTest("number");
|
|
|
12127
12110
|
var isObject = (thing) => thing !== null && typeof thing === "object";
|
|
12128
12111
|
var isBoolean = (thing) => thing === true || thing === false;
|
|
12129
12112
|
var isPlainObject = (val) => {
|
|
12130
|
-
if (
|
|
12113
|
+
if (kindOf(val) !== "object") {
|
|
12131
12114
|
return false;
|
|
12132
12115
|
}
|
|
12133
12116
|
const prototype2 = getPrototypeOf(val);
|
|
12134
|
-
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) &&
|
|
12135
|
-
// Symbol.iterator as evidence the value is a tagged/iterable type rather
|
|
12136
|
-
// than a plain object, while ignoring keys injected onto Object.prototype.
|
|
12137
|
-
!hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
12117
|
+
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
|
|
12138
12118
|
};
|
|
12139
12119
|
var isEmptyObject = (val) => {
|
|
12140
12120
|
if (!isObject(val) || isBuffer(val)) {
|
|
@@ -12238,7 +12218,7 @@ function merge(...objs) {
|
|
|
12238
12218
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
12239
12219
|
return;
|
|
12240
12220
|
}
|
|
12241
|
-
const targetKey = caseless &&
|
|
12221
|
+
const targetKey = caseless && findKey(result, key) || key;
|
|
12242
12222
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
12243
12223
|
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
12244
12224
|
result[targetKey] = merge(existing, val);
|
|
@@ -12251,21 +12231,7 @@ function merge(...objs) {
|
|
|
12251
12231
|
}
|
|
12252
12232
|
};
|
|
12253
12233
|
for (let i = 0, l = objs.length; i < l; i++) {
|
|
12254
|
-
|
|
12255
|
-
if (!source || isBuffer(source)) {
|
|
12256
|
-
continue;
|
|
12257
|
-
}
|
|
12258
|
-
forEach(source, assignValue);
|
|
12259
|
-
if (typeof source !== "object" || isArray(source)) {
|
|
12260
|
-
continue;
|
|
12261
|
-
}
|
|
12262
|
-
const symbols = Object.getOwnPropertySymbols(source);
|
|
12263
|
-
for (let j = 0; j < symbols.length; j++) {
|
|
12264
|
-
const symbol = symbols[j];
|
|
12265
|
-
if (propertyIsEnumerable.call(source, symbol)) {
|
|
12266
|
-
assignValue(source[symbol], symbol);
|
|
12267
|
-
}
|
|
12268
|
-
}
|
|
12234
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
12269
12235
|
}
|
|
12270
12236
|
return result;
|
|
12271
12237
|
}
|
|
@@ -12387,7 +12353,7 @@ var toCamelCase = (str) => {
|
|
|
12387
12353
|
return p1.toUpperCase() + p2;
|
|
12388
12354
|
});
|
|
12389
12355
|
};
|
|
12390
|
-
var {
|
|
12356
|
+
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
12391
12357
|
var isRegExp = kindOfTest("RegExp");
|
|
12392
12358
|
var reduceDescriptors = (obj, reducer) => {
|
|
12393
12359
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -12486,7 +12452,6 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
12486
12452
|
})(typeof setImmediate === "function", isFunction(_global.postMessage));
|
|
12487
12453
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
12488
12454
|
var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
12489
|
-
var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
|
|
12490
12455
|
var utils_default = {
|
|
12491
12456
|
isArray,
|
|
12492
12457
|
isArrayBuffer,
|
|
@@ -12532,8 +12497,6 @@ var utils_default = {
|
|
|
12532
12497
|
hasOwnProperty,
|
|
12533
12498
|
hasOwnProp: hasOwnProperty,
|
|
12534
12499
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
12535
|
-
hasOwnInPrototypeChain,
|
|
12536
|
-
getSafeProp,
|
|
12537
12500
|
reduceDescriptors,
|
|
12538
12501
|
freezeMethods,
|
|
12539
12502
|
toObjectSet,
|
|
@@ -12549,11 +12512,10 @@ var utils_default = {
|
|
|
12549
12512
|
isThenable,
|
|
12550
12513
|
setImmediate: _setImmediate,
|
|
12551
12514
|
asap,
|
|
12552
|
-
isIterable
|
|
12553
|
-
isSafeIterable
|
|
12515
|
+
isIterable
|
|
12554
12516
|
};
|
|
12555
12517
|
|
|
12556
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12518
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
|
|
12557
12519
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
12558
12520
|
"age",
|
|
12559
12521
|
"authorization",
|
|
@@ -12598,7 +12560,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
12598
12560
|
return parsed;
|
|
12599
12561
|
};
|
|
12600
12562
|
|
|
12601
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12563
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
12602
12564
|
function trimSPorHTAB(str) {
|
|
12603
12565
|
let start = 0;
|
|
12604
12566
|
let end = str.length;
|
|
@@ -12636,7 +12598,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
12636
12598
|
return byteStringHeaders;
|
|
12637
12599
|
}
|
|
12638
12600
|
|
|
12639
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12601
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
|
|
12640
12602
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
12641
12603
|
function normalizeHeader(header) {
|
|
12642
12604
|
return header && String(header).trim().toLowerCase();
|
|
@@ -12700,7 +12662,7 @@ var AxiosHeaders = class {
|
|
|
12700
12662
|
function setHeader(_value, _header, _rewrite) {
|
|
12701
12663
|
const lHeader = normalizeHeader(_header);
|
|
12702
12664
|
if (!lHeader) {
|
|
12703
|
-
|
|
12665
|
+
throw new Error("header name must be a non-empty string");
|
|
12704
12666
|
}
|
|
12705
12667
|
const key = utils_default.findKey(self2, lHeader);
|
|
12706
12668
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
@@ -12712,19 +12674,13 @@ var AxiosHeaders = class {
|
|
|
12712
12674
|
setHeaders(header, valueOrRewrite);
|
|
12713
12675
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
12714
12676
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
12715
|
-
} else if (utils_default.isObject(header) && utils_default.
|
|
12716
|
-
let obj =
|
|
12677
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
12678
|
+
let obj = {}, dest, key;
|
|
12717
12679
|
for (const entry of header) {
|
|
12718
12680
|
if (!utils_default.isArray(entry)) {
|
|
12719
|
-
throw
|
|
12720
|
-
}
|
|
12721
|
-
key = entry[0];
|
|
12722
|
-
if (utils_default.hasOwnProp(obj, key)) {
|
|
12723
|
-
dest = obj[key];
|
|
12724
|
-
obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
|
|
12725
|
-
} else {
|
|
12726
|
-
obj[key] = entry[1];
|
|
12681
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
12727
12682
|
}
|
|
12683
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
12728
12684
|
}
|
|
12729
12685
|
setHeaders(obj, valueOrRewrite);
|
|
12730
12686
|
} else {
|
|
@@ -12881,7 +12837,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
12881
12837
|
utils_default.freezeMethods(AxiosHeaders);
|
|
12882
12838
|
var AxiosHeaders_default = AxiosHeaders;
|
|
12883
12839
|
|
|
12884
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12840
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
|
|
12885
12841
|
var REDACTED = "[REDACTED ****]";
|
|
12886
12842
|
function hasOwnOrPrototypeToJSON(source) {
|
|
12887
12843
|
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
@@ -12937,13 +12893,7 @@ function redactConfig(config, redactKeys) {
|
|
|
12937
12893
|
var AxiosError = class _AxiosError extends Error {
|
|
12938
12894
|
static from(error, code, config, request, response, customProps) {
|
|
12939
12895
|
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
12940
|
-
|
|
12941
|
-
__proto__: null,
|
|
12942
|
-
value: error,
|
|
12943
|
-
writable: true,
|
|
12944
|
-
enumerable: false,
|
|
12945
|
-
configurable: true
|
|
12946
|
-
});
|
|
12896
|
+
axiosError.cause = error;
|
|
12947
12897
|
axiosError.name = error.name;
|
|
12948
12898
|
if (error.status != null && axiosError.status == null) {
|
|
12949
12899
|
axiosError.status = error.status;
|
|
@@ -13022,12 +12972,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
|
13022
12972
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
13023
12973
|
var AxiosError_default = AxiosError;
|
|
13024
12974
|
|
|
13025
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12975
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
13026
12976
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
13027
12977
|
var FormData_default = import_form_data.default;
|
|
13028
12978
|
|
|
13029
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13030
|
-
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
12979
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
|
|
13031
12980
|
function isVisitable(thing) {
|
|
13032
12981
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
13033
12982
|
}
|
|
@@ -13069,9 +13018,8 @@ function toFormData(obj, formData, options) {
|
|
|
13069
13018
|
const dots = options.dots;
|
|
13070
13019
|
const indexes = options.indexes;
|
|
13071
13020
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
13072
|
-
const maxDepth = options.maxDepth === void 0 ?
|
|
13021
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
13073
13022
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
13074
|
-
const stack = [];
|
|
13075
13023
|
if (!utils_default.isFunction(visitor)) {
|
|
13076
13024
|
throw new TypeError("visitor must be a function");
|
|
13077
13025
|
}
|
|
@@ -13087,41 +13035,10 @@ function toFormData(obj, formData, options) {
|
|
|
13087
13035
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
13088
13036
|
}
|
|
13089
13037
|
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
13090
|
-
|
|
13091
|
-
return new _Blob([value]);
|
|
13092
|
-
}
|
|
13093
|
-
if (typeof Buffer !== "undefined") {
|
|
13094
|
-
return Buffer.from(value);
|
|
13095
|
-
}
|
|
13096
|
-
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
|
|
13038
|
+
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
13097
13039
|
}
|
|
13098
13040
|
return value;
|
|
13099
13041
|
}
|
|
13100
|
-
function throwIfMaxDepthExceeded(depth) {
|
|
13101
|
-
if (depth > maxDepth) {
|
|
13102
|
-
throw new AxiosError_default(
|
|
13103
|
-
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
13104
|
-
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13105
|
-
);
|
|
13106
|
-
}
|
|
13107
|
-
}
|
|
13108
|
-
function stringifyWithDepthLimit(value, depth) {
|
|
13109
|
-
if (maxDepth === Infinity) {
|
|
13110
|
-
return JSON.stringify(value);
|
|
13111
|
-
}
|
|
13112
|
-
const ancestors = [];
|
|
13113
|
-
return JSON.stringify(value, function limitDepth(_key, currentValue) {
|
|
13114
|
-
if (!utils_default.isObject(currentValue)) {
|
|
13115
|
-
return currentValue;
|
|
13116
|
-
}
|
|
13117
|
-
while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
|
|
13118
|
-
ancestors.pop();
|
|
13119
|
-
}
|
|
13120
|
-
ancestors.push(currentValue);
|
|
13121
|
-
throwIfMaxDepthExceeded(depth + ancestors.length - 1);
|
|
13122
|
-
return currentValue;
|
|
13123
|
-
});
|
|
13124
|
-
}
|
|
13125
13042
|
function defaultVisitor(value, key, path) {
|
|
13126
13043
|
let arr = value;
|
|
13127
13044
|
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
@@ -13131,7 +13048,7 @@ function toFormData(obj, formData, options) {
|
|
|
13131
13048
|
if (value && !path && typeof value === "object") {
|
|
13132
13049
|
if (utils_default.endsWith(key, "{}")) {
|
|
13133
13050
|
key = metaTokens ? key : key.slice(0, -2);
|
|
13134
|
-
value =
|
|
13051
|
+
value = JSON.stringify(value);
|
|
13135
13052
|
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
13136
13053
|
key = removeBrackets(key);
|
|
13137
13054
|
arr.forEach(function each(el, index) {
|
|
@@ -13150,6 +13067,7 @@ function toFormData(obj, formData, options) {
|
|
|
13150
13067
|
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
13151
13068
|
return false;
|
|
13152
13069
|
}
|
|
13070
|
+
const stack = [];
|
|
13153
13071
|
const exposedHelpers = Object.assign(predicates, {
|
|
13154
13072
|
defaultVisitor,
|
|
13155
13073
|
convertValue,
|
|
@@ -13157,9 +13075,14 @@ function toFormData(obj, formData, options) {
|
|
|
13157
13075
|
});
|
|
13158
13076
|
function build(value, path, depth = 0) {
|
|
13159
13077
|
if (utils_default.isUndefined(value)) return;
|
|
13160
|
-
|
|
13078
|
+
if (depth > maxDepth) {
|
|
13079
|
+
throw new AxiosError_default(
|
|
13080
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
13081
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13082
|
+
);
|
|
13083
|
+
}
|
|
13161
13084
|
if (stack.indexOf(value) !== -1) {
|
|
13162
|
-
throw
|
|
13085
|
+
throw Error("Circular reference detected in " + path.join("."));
|
|
13163
13086
|
}
|
|
13164
13087
|
stack.push(value);
|
|
13165
13088
|
utils_default.forEach(value, function each(el, key) {
|
|
@@ -13178,7 +13101,7 @@ function toFormData(obj, formData, options) {
|
|
|
13178
13101
|
}
|
|
13179
13102
|
var toFormData_default = toFormData;
|
|
13180
13103
|
|
|
13181
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13104
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
13182
13105
|
function encode(str) {
|
|
13183
13106
|
const charMap = {
|
|
13184
13107
|
"!": "%21",
|
|
@@ -13201,14 +13124,16 @@ prototype.append = function append(name, value) {
|
|
|
13201
13124
|
this._pairs.push([name, value]);
|
|
13202
13125
|
};
|
|
13203
13126
|
prototype.toString = function toString2(encoder) {
|
|
13204
|
-
const _encode = encoder ? (value)
|
|
13127
|
+
const _encode = encoder ? function(value) {
|
|
13128
|
+
return encoder.call(this, value, encode);
|
|
13129
|
+
} : encode;
|
|
13205
13130
|
return this._pairs.map(function each(pair) {
|
|
13206
13131
|
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
13207
13132
|
}, "").join("&");
|
|
13208
13133
|
};
|
|
13209
13134
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
13210
13135
|
|
|
13211
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13136
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
|
|
13212
13137
|
function encode2(val) {
|
|
13213
13138
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
13214
13139
|
}
|
|
@@ -13216,12 +13141,11 @@ function buildURL(url2, params, options) {
|
|
|
13216
13141
|
if (!params) {
|
|
13217
13142
|
return url2;
|
|
13218
13143
|
}
|
|
13219
|
-
|
|
13144
|
+
const _encode = options && options.encode || encode2;
|
|
13220
13145
|
const _options = utils_default.isFunction(options) ? {
|
|
13221
13146
|
serialize: options
|
|
13222
13147
|
} : options;
|
|
13223
|
-
const
|
|
13224
|
-
const serializeFn = utils_default.getSafeProp(_options, "serialize");
|
|
13148
|
+
const serializeFn = _options && _options.serialize;
|
|
13225
13149
|
let serializedParams;
|
|
13226
13150
|
if (serializeFn) {
|
|
13227
13151
|
serializedParams = serializeFn(params, _options);
|
|
@@ -13238,7 +13162,7 @@ function buildURL(url2, params, options) {
|
|
|
13238
13162
|
return url2;
|
|
13239
13163
|
}
|
|
13240
13164
|
|
|
13241
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13165
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
|
|
13242
13166
|
var InterceptorManager = class {
|
|
13243
13167
|
constructor() {
|
|
13244
13168
|
this.handlers = [];
|
|
@@ -13303,24 +13227,22 @@ var InterceptorManager = class {
|
|
|
13303
13227
|
};
|
|
13304
13228
|
var InterceptorManager_default = InterceptorManager;
|
|
13305
13229
|
|
|
13306
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13230
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
|
|
13307
13231
|
var transitional_default = {
|
|
13308
13232
|
silentJSONParsing: true,
|
|
13309
13233
|
forcedJSONParsing: true,
|
|
13310
13234
|
clarifyTimeoutError: false,
|
|
13311
|
-
legacyInterceptorReqResOrdering: true
|
|
13312
|
-
advertiseZstdAcceptEncoding: false,
|
|
13313
|
-
validateStatusUndefinedResolves: true
|
|
13235
|
+
legacyInterceptorReqResOrdering: true
|
|
13314
13236
|
};
|
|
13315
13237
|
|
|
13316
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13238
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13317
13239
|
import crypto from "crypto";
|
|
13318
13240
|
|
|
13319
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13241
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
13320
13242
|
import url from "url";
|
|
13321
13243
|
var URLSearchParams_default = url.URLSearchParams;
|
|
13322
13244
|
|
|
13323
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13245
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13324
13246
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
13325
13247
|
var DIGIT = "0123456789";
|
|
13326
13248
|
var ALPHABET = {
|
|
@@ -13350,7 +13272,7 @@ var node_default = {
|
|
|
13350
13272
|
protocols: ["http", "https", "file", "data"]
|
|
13351
13273
|
};
|
|
13352
13274
|
|
|
13353
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13275
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
|
|
13354
13276
|
var utils_exports = {};
|
|
13355
13277
|
__export(utils_exports, {
|
|
13356
13278
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -13368,13 +13290,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
13368
13290
|
})();
|
|
13369
13291
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
13370
13292
|
|
|
13371
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13293
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
|
|
13372
13294
|
var platform_default = {
|
|
13373
13295
|
...utils_exports,
|
|
13374
13296
|
...node_default
|
|
13375
13297
|
};
|
|
13376
13298
|
|
|
13377
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13299
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
13378
13300
|
function toURLEncodedForm(data, options) {
|
|
13379
13301
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
13380
13302
|
visitor: function(value, key, path, helpers) {
|
|
@@ -13388,25 +13310,11 @@ function toURLEncodedForm(data, options) {
|
|
|
13388
13310
|
});
|
|
13389
13311
|
}
|
|
13390
13312
|
|
|
13391
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13392
|
-
var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
13393
|
-
function throwIfDepthExceeded(index) {
|
|
13394
|
-
if (index > MAX_DEPTH) {
|
|
13395
|
-
throw new AxiosError_default(
|
|
13396
|
-
"FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
|
|
13397
|
-
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
13398
|
-
);
|
|
13399
|
-
}
|
|
13400
|
-
}
|
|
13313
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
13401
13314
|
function parsePropPath(name) {
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
while ((match = pattern.exec(name)) !== null) {
|
|
13406
|
-
throwIfDepthExceeded(path.length);
|
|
13407
|
-
path.push(match[0] === "[]" ? "" : match[1] || match[0]);
|
|
13408
|
-
}
|
|
13409
|
-
return path;
|
|
13315
|
+
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
13316
|
+
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
13317
|
+
});
|
|
13410
13318
|
}
|
|
13411
13319
|
function arrayToObject(arr) {
|
|
13412
13320
|
const obj = {};
|
|
@@ -13422,7 +13330,6 @@ function arrayToObject(arr) {
|
|
|
13422
13330
|
}
|
|
13423
13331
|
function formDataToJSON(formData) {
|
|
13424
13332
|
function buildPath(path, value, target, index) {
|
|
13425
|
-
throwIfDepthExceeded(index);
|
|
13426
13333
|
let name = path[index++];
|
|
13427
13334
|
if (name === "__proto__") return true;
|
|
13428
13335
|
const isNumericKey = Number.isFinite(+name);
|
|
@@ -13456,7 +13363,7 @@ function formDataToJSON(formData) {
|
|
|
13456
13363
|
}
|
|
13457
13364
|
var formDataToJSON_default = formDataToJSON;
|
|
13458
13365
|
|
|
13459
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13366
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
|
|
13460
13367
|
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
13461
13368
|
function stringifySafely(rawValue, parser, encoder) {
|
|
13462
13369
|
if (utils_default.isString(rawValue)) {
|
|
@@ -13573,7 +13480,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"]
|
|
|
13573
13480
|
});
|
|
13574
13481
|
var defaults_default = defaults;
|
|
13575
13482
|
|
|
13576
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13483
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
|
|
13577
13484
|
function transformData(fns, response) {
|
|
13578
13485
|
const config = this || defaults_default;
|
|
13579
13486
|
const context = response || config;
|
|
@@ -13586,12 +13493,12 @@ function transformData(fns, response) {
|
|
|
13586
13493
|
return data;
|
|
13587
13494
|
}
|
|
13588
13495
|
|
|
13589
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13496
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
|
|
13590
13497
|
function isCancel(value) {
|
|
13591
13498
|
return !!(value && value.__CANCEL__);
|
|
13592
13499
|
}
|
|
13593
13500
|
|
|
13594
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13501
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
|
|
13595
13502
|
var CanceledError = class extends AxiosError_default {
|
|
13596
13503
|
/**
|
|
13597
13504
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -13610,7 +13517,7 @@ var CanceledError = class extends AxiosError_default {
|
|
|
13610
13517
|
};
|
|
13611
13518
|
var CanceledError_default = CanceledError;
|
|
13612
13519
|
|
|
13613
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13520
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
|
|
13614
13521
|
function settle(resolve, reject, response) {
|
|
13615
13522
|
const validateStatus2 = response.config.validateStatus;
|
|
13616
13523
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -13626,7 +13533,7 @@ function settle(resolve, reject, response) {
|
|
|
13626
13533
|
}
|
|
13627
13534
|
}
|
|
13628
13535
|
|
|
13629
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13536
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
13630
13537
|
function isAbsoluteURL(url2) {
|
|
13631
13538
|
if (typeof url2 !== "string") {
|
|
13632
13539
|
return false;
|
|
@@ -13634,38 +13541,15 @@ function isAbsoluteURL(url2) {
|
|
|
13634
13541
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
13635
13542
|
}
|
|
13636
13543
|
|
|
13637
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13544
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
|
|
13638
13545
|
function combineURLs(baseURL, relativeURL) {
|
|
13639
13546
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
13640
13547
|
}
|
|
13641
13548
|
|
|
13642
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13643
|
-
|
|
13644
|
-
var httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
13645
|
-
function stripLeadingC0ControlOrSpace(url2) {
|
|
13646
|
-
let i = 0;
|
|
13647
|
-
while (i < url2.length && url2.charCodeAt(i) <= 32) {
|
|
13648
|
-
i++;
|
|
13649
|
-
}
|
|
13650
|
-
return url2.slice(i);
|
|
13651
|
-
}
|
|
13652
|
-
function normalizeURLForProtocolCheck(url2) {
|
|
13653
|
-
return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
|
|
13654
|
-
}
|
|
13655
|
-
function assertValidHttpProtocolURL(url2, config) {
|
|
13656
|
-
if (typeof url2 === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url2))) {
|
|
13657
|
-
throw new AxiosError_default(
|
|
13658
|
-
'Invalid URL: missing "//" after protocol',
|
|
13659
|
-
AxiosError_default.ERR_INVALID_URL,
|
|
13660
|
-
config
|
|
13661
|
-
);
|
|
13662
|
-
}
|
|
13663
|
-
}
|
|
13664
|
-
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
13665
|
-
assertValidHttpProtocolURL(requestedURL, config);
|
|
13549
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
|
|
13550
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
13666
13551
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
13667
13552
|
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
13668
|
-
assertValidHttpProtocolURL(baseURL, config);
|
|
13669
13553
|
return combineURLs(baseURL, requestedURL);
|
|
13670
13554
|
}
|
|
13671
13555
|
return requestedURL;
|
|
@@ -13738,26 +13622,26 @@ function getEnv(key) {
|
|
|
13738
13622
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
13739
13623
|
}
|
|
13740
13624
|
|
|
13741
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13625
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
13742
13626
|
var import_https_proxy_agent = __toESM(require_dist(), 1);
|
|
13743
13627
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
13744
13628
|
import http from "http";
|
|
13745
13629
|
import https from "https";
|
|
13746
|
-
import
|
|
13747
|
-
import
|
|
13630
|
+
import http2 from "http2";
|
|
13631
|
+
import util2 from "util";
|
|
13748
13632
|
import { resolve as resolvePath } from "path";
|
|
13749
13633
|
import zlib from "zlib";
|
|
13750
13634
|
|
|
13751
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13752
|
-
var VERSION = "1.
|
|
13635
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
|
|
13636
|
+
var VERSION = "1.16.1";
|
|
13753
13637
|
|
|
13754
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13638
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
|
|
13755
13639
|
function parseProtocol(url2) {
|
|
13756
13640
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
13757
13641
|
return match && match[1] || "";
|
|
13758
13642
|
}
|
|
13759
13643
|
|
|
13760
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13644
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
|
|
13761
13645
|
var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
|
|
13762
13646
|
function fromDataURI(uri, asBlob, options) {
|
|
13763
13647
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
@@ -13775,13 +13659,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13775
13659
|
const params = match[2];
|
|
13776
13660
|
const encoding = match[3] ? "base64" : "utf8";
|
|
13777
13661
|
const body = match[4];
|
|
13778
|
-
let mime
|
|
13662
|
+
let mime;
|
|
13779
13663
|
if (type) {
|
|
13780
13664
|
mime = params ? type + params : type;
|
|
13781
13665
|
} else if (params) {
|
|
13782
13666
|
mime = "text/plain" + params;
|
|
13783
13667
|
}
|
|
13784
|
-
const buffer =
|
|
13668
|
+
const buffer = Buffer.from(decodeURIComponent(body), encoding);
|
|
13785
13669
|
if (asBlob) {
|
|
13786
13670
|
if (!_Blob) {
|
|
13787
13671
|
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
@@ -13793,10 +13677,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13793
13677
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
13794
13678
|
}
|
|
13795
13679
|
|
|
13796
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13680
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
13797
13681
|
import stream3 from "stream";
|
|
13798
13682
|
|
|
13799
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13683
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
13800
13684
|
import stream from "stream";
|
|
13801
13685
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
13802
13686
|
var AxiosTransformStream = class extends stream.Transform {
|
|
@@ -13919,14 +13803,14 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
13919
13803
|
};
|
|
13920
13804
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
13921
13805
|
|
|
13922
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13806
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
13923
13807
|
import { EventEmitter } from "events";
|
|
13924
13808
|
|
|
13925
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13809
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
13926
13810
|
import util from "util";
|
|
13927
13811
|
import { Readable } from "stream";
|
|
13928
13812
|
|
|
13929
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13813
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
|
|
13930
13814
|
var { asyncIterator } = Symbol;
|
|
13931
13815
|
var readBlob = async function* (blob) {
|
|
13932
13816
|
if (blob.stream) {
|
|
@@ -13941,7 +13825,7 @@ var readBlob = async function* (blob) {
|
|
|
13941
13825
|
};
|
|
13942
13826
|
var readBlob_default = readBlob;
|
|
13943
13827
|
|
|
13944
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13828
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
13945
13829
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
13946
13830
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
13947
13831
|
var CRLF = "\r\n";
|
|
@@ -13992,10 +13876,10 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
13992
13876
|
boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
|
|
13993
13877
|
} = options || {};
|
|
13994
13878
|
if (!utils_default.isFormData(form)) {
|
|
13995
|
-
throw
|
|
13879
|
+
throw TypeError("FormData instance required");
|
|
13996
13880
|
}
|
|
13997
13881
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
13998
|
-
throw
|
|
13882
|
+
throw Error("boundary must be 1-70 characters long");
|
|
13999
13883
|
}
|
|
14000
13884
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
14001
13885
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -14026,7 +13910,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
14026
13910
|
};
|
|
14027
13911
|
var formDataToStream_default = formDataToStream;
|
|
14028
13912
|
|
|
14029
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13913
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
14030
13914
|
import stream2 from "stream";
|
|
14031
13915
|
var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
14032
13916
|
__transform(chunk, encoding, callback) {
|
|
@@ -14048,88 +13932,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
|
14048
13932
|
};
|
|
14049
13933
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
14050
13934
|
|
|
14051
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14052
|
-
import http2 from "http2";
|
|
14053
|
-
import util2 from "util";
|
|
14054
|
-
var Http2Sessions = class {
|
|
14055
|
-
constructor() {
|
|
14056
|
-
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
14057
|
-
}
|
|
14058
|
-
getSession(authority, options) {
|
|
14059
|
-
options = Object.assign(
|
|
14060
|
-
{
|
|
14061
|
-
sessionTimeout: 1e3
|
|
14062
|
-
},
|
|
14063
|
-
options
|
|
14064
|
-
);
|
|
14065
|
-
let authoritySessions = this.sessions[authority];
|
|
14066
|
-
if (authoritySessions) {
|
|
14067
|
-
let len = authoritySessions.length;
|
|
14068
|
-
for (let i = 0; i < len; i++) {
|
|
14069
|
-
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
14070
|
-
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
14071
|
-
return sessionHandle;
|
|
14072
|
-
}
|
|
14073
|
-
}
|
|
14074
|
-
}
|
|
14075
|
-
const session = http2.connect(authority, options);
|
|
14076
|
-
let removed;
|
|
14077
|
-
let timer;
|
|
14078
|
-
const removeSession = () => {
|
|
14079
|
-
if (removed) {
|
|
14080
|
-
return;
|
|
14081
|
-
}
|
|
14082
|
-
removed = true;
|
|
14083
|
-
if (timer) {
|
|
14084
|
-
clearTimeout(timer);
|
|
14085
|
-
timer = null;
|
|
14086
|
-
}
|
|
14087
|
-
let entries = authoritySessions, len = entries.length, i = len;
|
|
14088
|
-
while (i--) {
|
|
14089
|
-
if (entries[i][0] === session) {
|
|
14090
|
-
if (len === 1) {
|
|
14091
|
-
delete this.sessions[authority];
|
|
14092
|
-
} else {
|
|
14093
|
-
entries.splice(i, 1);
|
|
14094
|
-
}
|
|
14095
|
-
if (!session.closed) {
|
|
14096
|
-
session.close();
|
|
14097
|
-
}
|
|
14098
|
-
return;
|
|
14099
|
-
}
|
|
14100
|
-
}
|
|
14101
|
-
};
|
|
14102
|
-
const originalRequestFn = session.request;
|
|
14103
|
-
const { sessionTimeout } = options;
|
|
14104
|
-
if (sessionTimeout != null) {
|
|
14105
|
-
let streamsCount = 0;
|
|
14106
|
-
session.request = function() {
|
|
14107
|
-
const stream4 = originalRequestFn.apply(this, arguments);
|
|
14108
|
-
streamsCount++;
|
|
14109
|
-
if (timer) {
|
|
14110
|
-
clearTimeout(timer);
|
|
14111
|
-
timer = null;
|
|
14112
|
-
}
|
|
14113
|
-
stream4.once("close", () => {
|
|
14114
|
-
if (!--streamsCount) {
|
|
14115
|
-
timer = setTimeout(() => {
|
|
14116
|
-
timer = null;
|
|
14117
|
-
removeSession();
|
|
14118
|
-
}, sessionTimeout);
|
|
14119
|
-
}
|
|
14120
|
-
});
|
|
14121
|
-
return stream4;
|
|
14122
|
-
};
|
|
14123
|
-
}
|
|
14124
|
-
session.once("close", removeSession);
|
|
14125
|
-
let entry = [session, options];
|
|
14126
|
-
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14127
|
-
return session;
|
|
14128
|
-
}
|
|
14129
|
-
};
|
|
14130
|
-
var Http2Sessions_default = Http2Sessions;
|
|
14131
|
-
|
|
14132
|
-
// ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
|
|
13935
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
|
|
14133
13936
|
var callbackify = (fn, reducer) => {
|
|
14134
13937
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
14135
13938
|
const cb = args.pop();
|
|
@@ -14144,30 +13947,14 @@ var callbackify = (fn, reducer) => {
|
|
|
14144
13947
|
};
|
|
14145
13948
|
var callbackify_default = callbackify;
|
|
14146
13949
|
|
|
14147
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14148
|
-
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"
|
|
13950
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
13951
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
14149
13952
|
var isIPv4Loopback = (host) => {
|
|
14150
13953
|
const parts = host.split(".");
|
|
14151
13954
|
if (parts.length !== 4) return false;
|
|
14152
13955
|
if (parts[0] !== "127") return false;
|
|
14153
13956
|
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
14154
13957
|
};
|
|
14155
|
-
var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
|
|
14156
|
-
var isIPv6Unspecified = (host) => {
|
|
14157
|
-
if (host === "::") return true;
|
|
14158
|
-
const compressionIndex = host.indexOf("::");
|
|
14159
|
-
if (compressionIndex !== -1) {
|
|
14160
|
-
if (compressionIndex !== host.lastIndexOf("::")) return false;
|
|
14161
|
-
const left = host.slice(0, compressionIndex);
|
|
14162
|
-
const right = host.slice(compressionIndex + 2);
|
|
14163
|
-
const leftGroups = left ? left.split(":") : [];
|
|
14164
|
-
const rightGroups = right ? right.split(":") : [];
|
|
14165
|
-
const explicitGroups = leftGroups.length + rightGroups.length;
|
|
14166
|
-
return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
|
|
14167
|
-
}
|
|
14168
|
-
const groups = host.split(":");
|
|
14169
|
-
return groups.length === 8 && groups.every(isIPv6ZeroGroup);
|
|
14170
|
-
};
|
|
14171
13958
|
var isIPv6Loopback = (host) => {
|
|
14172
13959
|
if (host === "::1") return true;
|
|
14173
13960
|
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
@@ -14190,7 +13977,6 @@ var isLoopback = (host) => {
|
|
|
14190
13977
|
if (!host) return false;
|
|
14191
13978
|
if (LOOPBACK_HOSTNAMES.has(host)) return true;
|
|
14192
13979
|
if (isIPv4Loopback(host)) return true;
|
|
14193
|
-
if (isIPv6Unspecified(host)) return true;
|
|
14194
13980
|
return isIPv6Loopback(host);
|
|
14195
13981
|
};
|
|
14196
13982
|
var DEFAULT_PORTS2 = {
|
|
@@ -14283,7 +14069,7 @@ function shouldBypassProxy(location) {
|
|
|
14283
14069
|
});
|
|
14284
14070
|
}
|
|
14285
14071
|
|
|
14286
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14072
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
|
|
14287
14073
|
function speedometer(samplesCount, min) {
|
|
14288
14074
|
samplesCount = samplesCount || 10;
|
|
14289
14075
|
const bytes = new Array(samplesCount);
|
|
@@ -14319,7 +14105,7 @@ function speedometer(samplesCount, min) {
|
|
|
14319
14105
|
}
|
|
14320
14106
|
var speedometer_default = speedometer;
|
|
14321
14107
|
|
|
14322
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14108
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
|
|
14323
14109
|
function throttle(fn, freq) {
|
|
14324
14110
|
let timestamp = 0;
|
|
14325
14111
|
let threshold = 1e3 / freq;
|
|
@@ -14354,7 +14140,7 @@ function throttle(fn, freq) {
|
|
|
14354
14140
|
}
|
|
14355
14141
|
var throttle_default = throttle;
|
|
14356
14142
|
|
|
14357
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14143
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
14358
14144
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
14359
14145
|
let bytesNotified = 0;
|
|
14360
14146
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -14395,9 +14181,7 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
14395
14181
|
};
|
|
14396
14182
|
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
14397
14183
|
|
|
14398
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14399
|
-
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
14400
|
-
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
14184
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
14401
14185
|
function estimateDataURLDecodedBytes(url2) {
|
|
14402
14186
|
if (!url2 || typeof url2 !== "string") return 0;
|
|
14403
14187
|
if (!url2.startsWith("data:")) return 0;
|
|
@@ -14413,7 +14197,7 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
14413
14197
|
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
14414
14198
|
const a = body.charCodeAt(i + 1);
|
|
14415
14199
|
const b = body.charCodeAt(i + 2);
|
|
14416
|
-
const isHex =
|
|
14200
|
+
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
14417
14201
|
if (isHex) {
|
|
14418
14202
|
effectiveLen -= 2;
|
|
14419
14203
|
i += 2;
|
|
@@ -14445,13 +14229,13 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
14445
14229
|
const bytes2 = groups * 3 - (pad || 0);
|
|
14446
14230
|
return bytes2 > 0 ? bytes2 : 0;
|
|
14447
14231
|
}
|
|
14232
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
14233
|
+
return Buffer.byteLength(body, "utf8");
|
|
14234
|
+
}
|
|
14448
14235
|
let bytes = 0;
|
|
14449
14236
|
for (let i = 0, len = body.length; i < len; i++) {
|
|
14450
14237
|
const c = body.charCodeAt(i);
|
|
14451
|
-
if (c
|
|
14452
|
-
bytes += 1;
|
|
14453
|
-
i += 2;
|
|
14454
|
-
} else if (c < 128) {
|
|
14238
|
+
if (c < 128) {
|
|
14455
14239
|
bytes += 1;
|
|
14456
14240
|
} else if (c < 2048) {
|
|
14457
14241
|
bytes += 2;
|
|
@@ -14470,7 +14254,7 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
14470
14254
|
return bytes;
|
|
14471
14255
|
}
|
|
14472
14256
|
|
|
14473
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14257
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14474
14258
|
var zlibOptions = {
|
|
14475
14259
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
14476
14260
|
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
@@ -14479,14 +14263,7 @@ var brotliOptions = {
|
|
|
14479
14263
|
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
14480
14264
|
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
|
|
14481
14265
|
};
|
|
14482
|
-
var zstdOptions = {
|
|
14483
|
-
flush: zlib.constants.ZSTD_e_flush,
|
|
14484
|
-
finishFlush: zlib.constants.ZSTD_e_flush
|
|
14485
|
-
};
|
|
14486
14266
|
var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
|
|
14487
|
-
var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
|
|
14488
|
-
var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
|
|
14489
|
-
var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
|
|
14490
14267
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
14491
14268
|
var isHttps = /https:?/;
|
|
14492
14269
|
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
@@ -14506,35 +14283,6 @@ var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
|
|
|
14506
14283
|
var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
|
|
14507
14284
|
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
14508
14285
|
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
14509
|
-
var NODE_NATIVE_ENV_PROXY_SUPPORT = {
|
|
14510
|
-
22: 21,
|
|
14511
|
-
24: 5
|
|
14512
|
-
};
|
|
14513
|
-
function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
|
|
14514
|
-
if (!nodeVersion) {
|
|
14515
|
-
return false;
|
|
14516
|
-
}
|
|
14517
|
-
const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
|
|
14518
|
-
if (!Number.isInteger(major) || !Number.isInteger(minor)) {
|
|
14519
|
-
return false;
|
|
14520
|
-
}
|
|
14521
|
-
if (major > 24) {
|
|
14522
|
-
return true;
|
|
14523
|
-
}
|
|
14524
|
-
return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
|
|
14525
|
-
}
|
|
14526
|
-
function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
|
|
14527
|
-
if (!isNodeNativeEnvProxySupported(nodeVersion)) {
|
|
14528
|
-
return false;
|
|
14529
|
-
}
|
|
14530
|
-
const agentOptions = agent && agent.options;
|
|
14531
|
-
return Boolean(
|
|
14532
|
-
agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
|
|
14533
|
-
);
|
|
14534
|
-
}
|
|
14535
|
-
function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
|
|
14536
|
-
return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
|
|
14537
|
-
}
|
|
14538
14286
|
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
14539
14287
|
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
14540
14288
|
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
@@ -14542,13 +14290,6 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
|
14542
14290
|
if (agent) return agent;
|
|
14543
14291
|
const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
|
|
14544
14292
|
agent = new import_https_proxy_agent.default(merged);
|
|
14545
|
-
if (userHttpsAgent && userHttpsAgent.options) {
|
|
14546
|
-
const originTLSOptions = { ...userHttpsAgent.options };
|
|
14547
|
-
const callback = agent.callback;
|
|
14548
|
-
agent.callback = function axiosTunnelingAgentCallback(req, opts) {
|
|
14549
|
-
return callback.call(this, req, { ...originTLSOptions, ...opts });
|
|
14550
|
-
};
|
|
14551
|
-
}
|
|
14552
14293
|
agent[kAxiosInstalledTunnel] = true;
|
|
14553
14294
|
cache.set(key, agent);
|
|
14554
14295
|
return agent;
|
|
@@ -14570,45 +14311,90 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
|
14570
14311
|
stream4.on("end", flush).on("error", flush);
|
|
14571
14312
|
return throttled;
|
|
14572
14313
|
};
|
|
14573
|
-
var
|
|
14314
|
+
var Http2Sessions = class {
|
|
14315
|
+
constructor() {
|
|
14316
|
+
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
14317
|
+
}
|
|
14318
|
+
getSession(authority, options) {
|
|
14319
|
+
options = Object.assign(
|
|
14320
|
+
{
|
|
14321
|
+
sessionTimeout: 1e3
|
|
14322
|
+
},
|
|
14323
|
+
options
|
|
14324
|
+
);
|
|
14325
|
+
let authoritySessions = this.sessions[authority];
|
|
14326
|
+
if (authoritySessions) {
|
|
14327
|
+
let len = authoritySessions.length;
|
|
14328
|
+
for (let i = 0; i < len; i++) {
|
|
14329
|
+
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
14330
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
|
|
14331
|
+
return sessionHandle;
|
|
14332
|
+
}
|
|
14333
|
+
}
|
|
14334
|
+
}
|
|
14335
|
+
const session = http2.connect(authority, options);
|
|
14336
|
+
let removed;
|
|
14337
|
+
const removeSession = () => {
|
|
14338
|
+
if (removed) {
|
|
14339
|
+
return;
|
|
14340
|
+
}
|
|
14341
|
+
removed = true;
|
|
14342
|
+
let entries = authoritySessions, len = entries.length, i = len;
|
|
14343
|
+
while (i--) {
|
|
14344
|
+
if (entries[i][0] === session) {
|
|
14345
|
+
if (len === 1) {
|
|
14346
|
+
delete this.sessions[authority];
|
|
14347
|
+
} else {
|
|
14348
|
+
entries.splice(i, 1);
|
|
14349
|
+
}
|
|
14350
|
+
if (!session.closed) {
|
|
14351
|
+
session.close();
|
|
14352
|
+
}
|
|
14353
|
+
return;
|
|
14354
|
+
}
|
|
14355
|
+
}
|
|
14356
|
+
};
|
|
14357
|
+
const originalRequestFn = session.request;
|
|
14358
|
+
const { sessionTimeout } = options;
|
|
14359
|
+
if (sessionTimeout != null) {
|
|
14360
|
+
let timer;
|
|
14361
|
+
let streamsCount = 0;
|
|
14362
|
+
session.request = function() {
|
|
14363
|
+
const stream4 = originalRequestFn.apply(this, arguments);
|
|
14364
|
+
streamsCount++;
|
|
14365
|
+
if (timer) {
|
|
14366
|
+
clearTimeout(timer);
|
|
14367
|
+
timer = null;
|
|
14368
|
+
}
|
|
14369
|
+
stream4.once("close", () => {
|
|
14370
|
+
if (!--streamsCount) {
|
|
14371
|
+
timer = setTimeout(() => {
|
|
14372
|
+
timer = null;
|
|
14373
|
+
removeSession();
|
|
14374
|
+
}, sessionTimeout);
|
|
14375
|
+
}
|
|
14376
|
+
});
|
|
14377
|
+
return stream4;
|
|
14378
|
+
};
|
|
14379
|
+
}
|
|
14380
|
+
session.once("close", removeSession);
|
|
14381
|
+
let entry = [session, options];
|
|
14382
|
+
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14383
|
+
return session;
|
|
14384
|
+
}
|
|
14385
|
+
};
|
|
14386
|
+
var http2Sessions = new Http2Sessions();
|
|
14574
14387
|
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
14575
14388
|
if (options.beforeRedirects.proxy) {
|
|
14576
14389
|
options.beforeRedirects.proxy(options);
|
|
14577
14390
|
}
|
|
14578
|
-
if (options.beforeRedirects.auth) {
|
|
14579
|
-
options.beforeRedirects.auth(options);
|
|
14580
|
-
}
|
|
14581
|
-
if (options.beforeRedirects.sensitiveHeaders) {
|
|
14582
|
-
options.beforeRedirects.sensitiveHeaders(options, requestDetails);
|
|
14583
|
-
}
|
|
14584
14391
|
if (options.beforeRedirects.config) {
|
|
14585
14392
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
14586
14393
|
}
|
|
14587
14394
|
}
|
|
14588
|
-
function
|
|
14589
|
-
if (!headers) {
|
|
14590
|
-
return;
|
|
14591
|
-
}
|
|
14592
|
-
Object.keys(headers).forEach((header) => {
|
|
14593
|
-
if (sensitiveSet.has(header.toLowerCase())) {
|
|
14594
|
-
delete headers[header];
|
|
14595
|
-
}
|
|
14596
|
-
});
|
|
14597
|
-
}
|
|
14598
|
-
function isSameOriginRedirect(redirectOptions, requestDetails) {
|
|
14599
|
-
if (!requestDetails) {
|
|
14600
|
-
return false;
|
|
14601
|
-
}
|
|
14602
|
-
try {
|
|
14603
|
-
return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
|
|
14604
|
-
} catch (e) {
|
|
14605
|
-
return false;
|
|
14606
|
-
}
|
|
14607
|
-
}
|
|
14608
|
-
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
|
|
14395
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
|
|
14609
14396
|
let proxy = configProxy;
|
|
14610
|
-
|
|
14611
|
-
if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
14397
|
+
if (!proxy && proxy !== false) {
|
|
14612
14398
|
const proxyUrl = getProxyForUrl(location);
|
|
14613
14399
|
if (proxyUrl) {
|
|
14614
14400
|
if (!shouldBypassProxy(location)) {
|
|
@@ -14699,14 +14485,7 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
|
|
|
14699
14485
|
}
|
|
14700
14486
|
}
|
|
14701
14487
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
14702
|
-
setProxy(
|
|
14703
|
-
redirectOptions,
|
|
14704
|
-
configProxy,
|
|
14705
|
-
redirectOptions.href,
|
|
14706
|
-
true,
|
|
14707
|
-
configHttpsAgent,
|
|
14708
|
-
configHttpAgent
|
|
14709
|
-
);
|
|
14488
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
|
|
14710
14489
|
};
|
|
14711
14490
|
}
|
|
14712
14491
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
@@ -14745,7 +14524,7 @@ var http2Transport = {
|
|
|
14745
14524
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
14746
14525
|
const { http2Options, headers } = options;
|
|
14747
14526
|
const session = http2Sessions.getSession(authority, http2Options);
|
|
14748
|
-
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } =
|
|
14527
|
+
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
|
|
14749
14528
|
const http2Headers = {
|
|
14750
14529
|
[HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
|
|
14751
14530
|
[HTTP2_HEADER_METHOD]: options.method,
|
|
@@ -14769,25 +14548,16 @@ var http2Transport = {
|
|
|
14769
14548
|
};
|
|
14770
14549
|
var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
14771
14550
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
14772
|
-
const own2 = (key) => utils_default.
|
|
14773
|
-
const transitional2 = own2("transitional") || transitional_default;
|
|
14551
|
+
const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
14774
14552
|
let data = own2("data");
|
|
14775
14553
|
let lookup = own2("lookup");
|
|
14776
14554
|
let family = own2("family");
|
|
14777
14555
|
let httpVersion = own2("httpVersion");
|
|
14778
14556
|
if (httpVersion === void 0) httpVersion = 1;
|
|
14779
14557
|
let http2Options = own2("http2Options");
|
|
14780
|
-
const httpAgent = own2("httpAgent");
|
|
14781
|
-
const httpsAgent = own2("httpsAgent");
|
|
14782
|
-
const configProxy = own2("proxy");
|
|
14783
14558
|
const responseType = own2("responseType");
|
|
14784
14559
|
const responseEncoding = own2("responseEncoding");
|
|
14785
|
-
const
|
|
14786
|
-
const method = own2("method").toUpperCase();
|
|
14787
|
-
const maxRedirects = own2("maxRedirects");
|
|
14788
|
-
const maxBodyLength = own2("maxBodyLength");
|
|
14789
|
-
const maxContentLength = own2("maxContentLength");
|
|
14790
|
-
const decompress = own2("decompress");
|
|
14560
|
+
const method = config.method.toUpperCase();
|
|
14791
14561
|
let isDone;
|
|
14792
14562
|
let rejected = false;
|
|
14793
14563
|
let req;
|
|
@@ -14820,6 +14590,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14820
14590
|
!reason || reason.type ? new CanceledError_default(null, config, req) : reason
|
|
14821
14591
|
);
|
|
14822
14592
|
} catch (err) {
|
|
14593
|
+
console.warn("emit error", err);
|
|
14823
14594
|
}
|
|
14824
14595
|
}
|
|
14825
14596
|
function clearConnectPhaseTimer() {
|
|
@@ -14829,11 +14600,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14829
14600
|
}
|
|
14830
14601
|
}
|
|
14831
14602
|
function createTimeoutError() {
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14836
|
-
timeoutErrorMessage = configTimeoutErrorMessage;
|
|
14603
|
+
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
14604
|
+
const transitional2 = config.transitional || transitional_default;
|
|
14605
|
+
if (config.timeoutErrorMessage) {
|
|
14606
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
14837
14607
|
}
|
|
14838
14608
|
return new AxiosError_default(
|
|
14839
14609
|
timeoutErrorMessage,
|
|
@@ -14877,18 +14647,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14877
14647
|
onFinished();
|
|
14878
14648
|
}
|
|
14879
14649
|
});
|
|
14880
|
-
const fullPath = buildFullPath(
|
|
14881
|
-
const
|
|
14882
|
-
const parsed = new URL(fullPath, urlBase);
|
|
14650
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
14651
|
+
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
|
|
14883
14652
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
14884
14653
|
if (protocol === "data:") {
|
|
14885
|
-
if (maxContentLength > -1) {
|
|
14886
|
-
const dataUrl = String(
|
|
14654
|
+
if (config.maxContentLength > -1) {
|
|
14655
|
+
const dataUrl = String(config.url || fullPath || "");
|
|
14887
14656
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
14888
|
-
if (estimated > maxContentLength) {
|
|
14657
|
+
if (estimated > config.maxContentLength) {
|
|
14889
14658
|
return reject(
|
|
14890
14659
|
new AxiosError_default(
|
|
14891
|
-
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
14660
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
14892
14661
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
14893
14662
|
config
|
|
14894
14663
|
)
|
|
@@ -14905,7 +14674,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14905
14674
|
});
|
|
14906
14675
|
}
|
|
14907
14676
|
try {
|
|
14908
|
-
convertedData = fromDataURI(
|
|
14677
|
+
convertedData = fromDataURI(config.url, responseType === "blob", {
|
|
14909
14678
|
Blob: config.env && config.env.Blob
|
|
14910
14679
|
});
|
|
14911
14680
|
} catch (err) {
|
|
@@ -14954,7 +14723,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14954
14723
|
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
14955
14724
|
if (!headers.hasContentLength()) {
|
|
14956
14725
|
try {
|
|
14957
|
-
const knownLength = await
|
|
14726
|
+
const knownLength = await util2.promisify(data.getLength).call(data);
|
|
14958
14727
|
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
|
|
14959
14728
|
} catch (e) {
|
|
14960
14729
|
}
|
|
@@ -14979,7 +14748,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
14979
14748
|
);
|
|
14980
14749
|
}
|
|
14981
14750
|
headers.setContentLength(data.length, false);
|
|
14982
|
-
if (maxBodyLength > -1 && data.length > maxBodyLength) {
|
|
14751
|
+
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
14983
14752
|
return reject(
|
|
14984
14753
|
new AxiosError_default(
|
|
14985
14754
|
"Request body larger than maxBodyLength limit",
|
|
@@ -15023,11 +14792,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15023
14792
|
let auth = void 0;
|
|
15024
14793
|
const configAuth = own2("auth");
|
|
15025
14794
|
if (configAuth) {
|
|
15026
|
-
const username =
|
|
15027
|
-
const password =
|
|
14795
|
+
const username = configAuth.username || "";
|
|
14796
|
+
const password = configAuth.password || "";
|
|
15028
14797
|
auth = username + ":" + password;
|
|
15029
14798
|
}
|
|
15030
|
-
if (!auth &&
|
|
14799
|
+
if (!auth && parsed.username) {
|
|
15031
14800
|
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
15032
14801
|
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
15033
14802
|
auth = urlUsername + ":" + urlPassword;
|
|
@@ -15037,27 +14806,26 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15037
14806
|
try {
|
|
15038
14807
|
path = buildURL(
|
|
15039
14808
|
parsed.pathname + parsed.search,
|
|
15040
|
-
|
|
15041
|
-
|
|
14809
|
+
config.params,
|
|
14810
|
+
config.paramsSerializer
|
|
15042
14811
|
).replace(/^\?/, "");
|
|
15043
14812
|
} catch (err) {
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15047
|
-
|
|
15048
|
-
|
|
15049
|
-
);
|
|
14813
|
+
const customErr = new Error(err.message);
|
|
14814
|
+
customErr.config = config;
|
|
14815
|
+
customErr.url = config.url;
|
|
14816
|
+
customErr.exists = true;
|
|
14817
|
+
return reject(customErr);
|
|
15050
14818
|
}
|
|
15051
14819
|
headers.set(
|
|
15052
14820
|
"Accept-Encoding",
|
|
15053
|
-
|
|
14821
|
+
"gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
|
|
15054
14822
|
false
|
|
15055
14823
|
);
|
|
15056
14824
|
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
15057
14825
|
path,
|
|
15058
14826
|
method,
|
|
15059
14827
|
headers: toByteStringHeaderObject(headers),
|
|
15060
|
-
agents: { http: httpAgent, https: httpsAgent },
|
|
14828
|
+
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
15061
14829
|
auth,
|
|
15062
14830
|
protocol,
|
|
15063
14831
|
family,
|
|
@@ -15066,48 +14834,45 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15066
14834
|
http2Options
|
|
15067
14835
|
});
|
|
15068
14836
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
15069
|
-
if (socketPath) {
|
|
15070
|
-
if (typeof socketPath !== "string") {
|
|
14837
|
+
if (config.socketPath) {
|
|
14838
|
+
if (typeof config.socketPath !== "string") {
|
|
15071
14839
|
return reject(
|
|
15072
14840
|
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
|
|
15073
14841
|
);
|
|
15074
14842
|
}
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
const
|
|
15078
|
-
const resolvedSocket = resolvePath(socketPath);
|
|
14843
|
+
if (config.allowedSocketPaths != null) {
|
|
14844
|
+
const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
|
|
14845
|
+
const resolvedSocket = resolvePath(config.socketPath);
|
|
15079
14846
|
const isAllowed = allowed.some(
|
|
15080
14847
|
(entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
|
|
15081
14848
|
);
|
|
15082
14849
|
if (!isAllowed) {
|
|
15083
14850
|
return reject(
|
|
15084
14851
|
new AxiosError_default(
|
|
15085
|
-
`socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
|
|
14852
|
+
`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
|
|
15086
14853
|
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15087
14854
|
config
|
|
15088
14855
|
)
|
|
15089
14856
|
);
|
|
15090
14857
|
}
|
|
15091
14858
|
}
|
|
15092
|
-
options.socketPath = socketPath;
|
|
14859
|
+
options.socketPath = config.socketPath;
|
|
15093
14860
|
} else {
|
|
15094
14861
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
15095
14862
|
options.port = parsed.port;
|
|
15096
14863
|
setProxy(
|
|
15097
14864
|
options,
|
|
15098
|
-
|
|
14865
|
+
config.proxy,
|
|
15099
14866
|
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
|
|
15100
14867
|
false,
|
|
15101
|
-
httpsAgent
|
|
15102
|
-
httpAgent
|
|
14868
|
+
config.httpsAgent
|
|
15103
14869
|
);
|
|
15104
14870
|
}
|
|
15105
14871
|
let transport;
|
|
15106
14872
|
let isNativeTransport = false;
|
|
15107
|
-
let transportEnforcesMaxBodyLength = false;
|
|
15108
14873
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
15109
14874
|
if (options.agent == null) {
|
|
15110
|
-
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
14875
|
+
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
15111
14876
|
}
|
|
15112
14877
|
if (isHttp2) {
|
|
15113
14878
|
transport = http2Transport;
|
|
@@ -15115,69 +14880,22 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15115
14880
|
const configTransport = own2("transport");
|
|
15116
14881
|
if (configTransport) {
|
|
15117
14882
|
transport = configTransport;
|
|
15118
|
-
} else if (maxRedirects === 0) {
|
|
14883
|
+
} else if (config.maxRedirects === 0) {
|
|
15119
14884
|
transport = isHttpsRequest ? https : http;
|
|
15120
14885
|
isNativeTransport = true;
|
|
15121
14886
|
} else {
|
|
15122
|
-
|
|
15123
|
-
|
|
15124
|
-
if (maxRedirects) {
|
|
15125
|
-
options.maxRedirects = maxRedirects;
|
|
14887
|
+
if (config.maxRedirects) {
|
|
14888
|
+
options.maxRedirects = config.maxRedirects;
|
|
15126
14889
|
}
|
|
15127
14890
|
const configBeforeRedirect = own2("beforeRedirect");
|
|
15128
14891
|
if (configBeforeRedirect) {
|
|
15129
14892
|
options.beforeRedirects.config = configBeforeRedirect;
|
|
15130
14893
|
}
|
|
15131
|
-
if (auth) {
|
|
15132
|
-
const requestOrigin = parsed.origin;
|
|
15133
|
-
const authToRestore = auth;
|
|
15134
|
-
options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
|
|
15135
|
-
try {
|
|
15136
|
-
if (new URL(redirectOptions.href).origin === requestOrigin) {
|
|
15137
|
-
redirectOptions.auth = authToRestore;
|
|
15138
|
-
}
|
|
15139
|
-
} catch (e) {
|
|
15140
|
-
}
|
|
15141
|
-
};
|
|
15142
|
-
}
|
|
15143
|
-
const sensitiveHeaders = own2("sensitiveHeaders");
|
|
15144
|
-
if (sensitiveHeaders != null) {
|
|
15145
|
-
if (!utils_default.isArray(sensitiveHeaders)) {
|
|
15146
|
-
return reject(
|
|
15147
|
-
new AxiosError_default(
|
|
15148
|
-
"sensitiveHeaders must be an array of strings",
|
|
15149
|
-
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15150
|
-
config
|
|
15151
|
-
)
|
|
15152
|
-
);
|
|
15153
|
-
}
|
|
15154
|
-
const sensitiveSet = /* @__PURE__ */ new Set();
|
|
15155
|
-
for (const header of sensitiveHeaders) {
|
|
15156
|
-
if (!utils_default.isString(header)) {
|
|
15157
|
-
return reject(
|
|
15158
|
-
new AxiosError_default(
|
|
15159
|
-
"sensitiveHeaders must be an array of strings",
|
|
15160
|
-
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15161
|
-
config
|
|
15162
|
-
)
|
|
15163
|
-
);
|
|
15164
|
-
}
|
|
15165
|
-
sensitiveSet.add(header.toLowerCase());
|
|
15166
|
-
}
|
|
15167
|
-
if (sensitiveSet.size) {
|
|
15168
|
-
options.sensitiveHeaders = Array.from(sensitiveSet);
|
|
15169
|
-
options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
|
|
15170
|
-
if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
|
|
15171
|
-
stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
|
|
15172
|
-
}
|
|
15173
|
-
};
|
|
15174
|
-
}
|
|
15175
|
-
}
|
|
15176
14894
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
15177
14895
|
}
|
|
15178
14896
|
}
|
|
15179
|
-
if (maxBodyLength > -1) {
|
|
15180
|
-
options.maxBodyLength = maxBodyLength;
|
|
14897
|
+
if (config.maxBodyLength > -1) {
|
|
14898
|
+
options.maxBodyLength = config.maxBodyLength;
|
|
15181
14899
|
} else {
|
|
15182
14900
|
options.maxBodyLength = Infinity;
|
|
15183
14901
|
}
|
|
@@ -15205,7 +14923,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15205
14923
|
}
|
|
15206
14924
|
let responseStream = res;
|
|
15207
14925
|
const lastRequest = res.req || req;
|
|
15208
|
-
if (decompress !== false && res.headers["content-encoding"]) {
|
|
14926
|
+
if (config.decompress !== false && res.headers["content-encoding"]) {
|
|
15209
14927
|
if (method === "HEAD" || res.statusCode === 204) {
|
|
15210
14928
|
delete res.headers["content-encoding"];
|
|
15211
14929
|
}
|
|
@@ -15228,13 +14946,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15228
14946
|
streams.push(zlib.createBrotliDecompress(brotliOptions));
|
|
15229
14947
|
delete res.headers["content-encoding"];
|
|
15230
14948
|
}
|
|
15231
|
-
break;
|
|
15232
|
-
case "zstd":
|
|
15233
|
-
if (isZstdSupported) {
|
|
15234
|
-
streams.push(zlib.createZstdDecompress(zstdOptions));
|
|
15235
|
-
delete res.headers["content-encoding"];
|
|
15236
|
-
}
|
|
15237
|
-
break;
|
|
15238
14949
|
}
|
|
15239
14950
|
}
|
|
15240
14951
|
responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
|
|
@@ -15246,8 +14957,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15246
14957
|
request: lastRequest
|
|
15247
14958
|
};
|
|
15248
14959
|
if (responseType === "stream") {
|
|
15249
|
-
if (maxContentLength > -1) {
|
|
15250
|
-
const limit = maxContentLength;
|
|
14960
|
+
if (config.maxContentLength > -1) {
|
|
14961
|
+
const limit = config.maxContentLength;
|
|
15251
14962
|
const source = responseStream;
|
|
15252
14963
|
async function* enforceMaxContentLength() {
|
|
15253
14964
|
let totalResponseBytes = 0;
|
|
@@ -15276,12 +14987,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15276
14987
|
responseStream.on("data", function handleStreamData(chunk) {
|
|
15277
14988
|
responseBuffer.push(chunk);
|
|
15278
14989
|
totalResponseBytes += chunk.length;
|
|
15279
|
-
if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
|
|
14990
|
+
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
|
15280
14991
|
rejected = true;
|
|
15281
14992
|
responseStream.destroy();
|
|
15282
14993
|
abort(
|
|
15283
14994
|
new AxiosError_default(
|
|
15284
|
-
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
14995
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
15285
14996
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
15286
14997
|
config,
|
|
15287
14998
|
lastRequest
|
|
@@ -15342,9 +15053,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15342
15053
|
});
|
|
15343
15054
|
const boundSockets = /* @__PURE__ */ new Set();
|
|
15344
15055
|
req.on("socket", function handleRequestSocket(socket) {
|
|
15345
|
-
|
|
15346
|
-
socket.setKeepAlive(true, 1e3 * 60);
|
|
15347
|
-
}
|
|
15056
|
+
socket.setKeepAlive(true, 1e3 * 60);
|
|
15348
15057
|
if (!socket[kAxiosSocketListener]) {
|
|
15349
15058
|
socket.on("error", function handleSocketError(err) {
|
|
15350
15059
|
const current = socket[kAxiosCurrentReq];
|
|
@@ -15366,8 +15075,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15366
15075
|
}
|
|
15367
15076
|
boundSockets.clear();
|
|
15368
15077
|
});
|
|
15369
|
-
if (
|
|
15370
|
-
const timeout = parseInt(
|
|
15078
|
+
if (config.timeout) {
|
|
15079
|
+
const timeout = parseInt(config.timeout, 10);
|
|
15371
15080
|
if (Number.isNaN(timeout)) {
|
|
15372
15081
|
abort(
|
|
15373
15082
|
new AxiosError_default(
|
|
@@ -15406,8 +15115,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15406
15115
|
}
|
|
15407
15116
|
});
|
|
15408
15117
|
let uploadStream = data;
|
|
15409
|
-
if (maxBodyLength > -1 &&
|
|
15410
|
-
const limit = maxBodyLength;
|
|
15118
|
+
if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
|
|
15119
|
+
const limit = config.maxBodyLength;
|
|
15411
15120
|
let bytesSent = 0;
|
|
15412
15121
|
uploadStream = stream3.pipeline(
|
|
15413
15122
|
[
|
|
@@ -15443,7 +15152,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15443
15152
|
});
|
|
15444
15153
|
};
|
|
15445
15154
|
|
|
15446
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15155
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
15447
15156
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
15448
15157
|
url2 = new URL(url2, platform_default.origin);
|
|
15449
15158
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -15452,7 +15161,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
15452
15161
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
15453
15162
|
) : () => true;
|
|
15454
15163
|
|
|
15455
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15164
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
|
|
15456
15165
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
15457
15166
|
// Standard browser envs support document.cookie
|
|
15458
15167
|
{
|
|
@@ -15483,11 +15192,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
15483
15192
|
const cookie = cookies[i].replace(/^\s+/, "");
|
|
15484
15193
|
const eq = cookie.indexOf("=");
|
|
15485
15194
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
15486
|
-
|
|
15487
|
-
return decodeURIComponent(cookie.slice(eq + 1));
|
|
15488
|
-
} catch (e) {
|
|
15489
|
-
return cookie.slice(eq + 1);
|
|
15490
|
-
}
|
|
15195
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
15491
15196
|
}
|
|
15492
15197
|
}
|
|
15493
15198
|
return null;
|
|
@@ -15509,10 +15214,9 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
15509
15214
|
}
|
|
15510
15215
|
);
|
|
15511
15216
|
|
|
15512
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15217
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
|
|
15513
15218
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
15514
15219
|
function mergeConfig(config1, config2) {
|
|
15515
|
-
config1 = config1 || {};
|
|
15516
15220
|
config2 = config2 || {};
|
|
15517
15221
|
const config = /* @__PURE__ */ Object.create(null);
|
|
15518
15222
|
Object.defineProperty(config, "hasOwnProperty", {
|
|
@@ -15553,23 +15257,6 @@ function mergeConfig(config1, config2) {
|
|
|
15553
15257
|
return getMergedValue(void 0, a);
|
|
15554
15258
|
}
|
|
15555
15259
|
}
|
|
15556
|
-
function getMergedTransitionalOption(prop) {
|
|
15557
|
-
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
15558
|
-
if (!utils_default.isUndefined(transitional2)) {
|
|
15559
|
-
if (utils_default.isPlainObject(transitional2)) {
|
|
15560
|
-
if (utils_default.hasOwnProp(transitional2, prop)) {
|
|
15561
|
-
return transitional2[prop];
|
|
15562
|
-
}
|
|
15563
|
-
} else {
|
|
15564
|
-
return void 0;
|
|
15565
|
-
}
|
|
15566
|
-
}
|
|
15567
|
-
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
15568
|
-
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
|
|
15569
|
-
return transitional1[prop];
|
|
15570
|
-
}
|
|
15571
|
-
return void 0;
|
|
15572
|
-
}
|
|
15573
15260
|
function mergeDirectKeys(a, b, prop) {
|
|
15574
15261
|
if (utils_default.hasOwnProp(config2, prop)) {
|
|
15575
15262
|
return getMergedValue(a, b);
|
|
@@ -15617,24 +15304,17 @@ function mergeConfig(config1, config2) {
|
|
|
15617
15304
|
const configValue = merge2(a, b, prop);
|
|
15618
15305
|
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
15619
15306
|
});
|
|
15620
|
-
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
|
|
15621
|
-
if (utils_default.hasOwnProp(config1, "validateStatus")) {
|
|
15622
|
-
config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
15623
|
-
} else {
|
|
15624
|
-
delete config.validateStatus;
|
|
15625
|
-
}
|
|
15626
|
-
}
|
|
15627
15307
|
return config;
|
|
15628
15308
|
}
|
|
15629
15309
|
|
|
15630
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15310
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
|
|
15631
15311
|
var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
15632
15312
|
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
15633
15313
|
if (policy !== "content-only") {
|
|
15634
15314
|
headers.set(formHeaders);
|
|
15635
15315
|
return;
|
|
15636
15316
|
}
|
|
15637
|
-
Object.entries(formHeaders
|
|
15317
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
15638
15318
|
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
15639
15319
|
headers.set(key, val);
|
|
15640
15320
|
}
|
|
@@ -15644,7 +15324,7 @@ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
|
15644
15324
|
/%([0-9A-F]{2})/gi,
|
|
15645
15325
|
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
15646
15326
|
);
|
|
15647
|
-
|
|
15327
|
+
var resolveConfig_default = (config) => {
|
|
15648
15328
|
const newConfig = mergeConfig({}, config);
|
|
15649
15329
|
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
15650
15330
|
const data = own2("data");
|
|
@@ -15658,24 +15338,18 @@ function resolveConfig(config) {
|
|
|
15658
15338
|
const url2 = own2("url");
|
|
15659
15339
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
15660
15340
|
newConfig.url = buildURL(
|
|
15661
|
-
buildFullPath(baseURL, url2, allowAbsoluteUrls
|
|
15662
|
-
|
|
15663
|
-
|
|
15341
|
+
buildFullPath(baseURL, url2, allowAbsoluteUrls),
|
|
15342
|
+
config.params,
|
|
15343
|
+
config.paramsSerializer
|
|
15664
15344
|
);
|
|
15665
15345
|
if (auth) {
|
|
15666
|
-
|
|
15667
|
-
|
|
15668
|
-
|
|
15669
|
-
|
|
15670
|
-
"Authorization",
|
|
15671
|
-
"Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
|
|
15672
|
-
);
|
|
15673
|
-
} catch (e) {
|
|
15674
|
-
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
|
|
15675
|
-
}
|
|
15346
|
+
headers.set(
|
|
15347
|
+
"Authorization",
|
|
15348
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
|
|
15349
|
+
);
|
|
15676
15350
|
}
|
|
15677
15351
|
if (utils_default.isFormData(data)) {
|
|
15678
|
-
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv
|
|
15352
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
15679
15353
|
headers.setContentType(void 0);
|
|
15680
15354
|
} else if (utils_default.isFunction(data.getHeaders)) {
|
|
15681
15355
|
setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
@@ -15694,10 +15368,9 @@ function resolveConfig(config) {
|
|
|
15694
15368
|
}
|
|
15695
15369
|
}
|
|
15696
15370
|
return newConfig;
|
|
15697
|
-
}
|
|
15698
|
-
var resolveConfig_default = resolveConfig;
|
|
15371
|
+
};
|
|
15699
15372
|
|
|
15700
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15373
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
|
|
15701
15374
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
15702
15375
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
15703
15376
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -15837,14 +15510,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15837
15510
|
config
|
|
15838
15511
|
)
|
|
15839
15512
|
);
|
|
15840
|
-
done();
|
|
15841
15513
|
return;
|
|
15842
15514
|
}
|
|
15843
15515
|
request.send(requestData || null);
|
|
15844
15516
|
});
|
|
15845
15517
|
};
|
|
15846
15518
|
|
|
15847
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15519
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
|
|
15848
15520
|
var composeSignals = (signals, timeout) => {
|
|
15849
15521
|
signals = signals ? signals.filter(Boolean) : [];
|
|
15850
15522
|
if (!timeout && !signals.length) {
|
|
@@ -15877,14 +15549,14 @@ var composeSignals = (signals, timeout) => {
|
|
|
15877
15549
|
});
|
|
15878
15550
|
signals = null;
|
|
15879
15551
|
};
|
|
15880
|
-
signals.forEach((signal2) => signal2.addEventListener("abort", onabort
|
|
15552
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
15881
15553
|
const { signal } = controller;
|
|
15882
15554
|
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
15883
15555
|
return signal;
|
|
15884
15556
|
};
|
|
15885
15557
|
var composeSignals_default = composeSignals;
|
|
15886
15558
|
|
|
15887
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15559
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
|
|
15888
15560
|
var streamChunk = function* (chunk, chunkSize) {
|
|
15889
15561
|
let len = chunk.byteLength;
|
|
15890
15562
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -15964,23 +15636,9 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
15964
15636
|
);
|
|
15965
15637
|
};
|
|
15966
15638
|
|
|
15967
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15639
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
|
|
15968
15640
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
15969
15641
|
var { isFunction: isFunction2 } = utils_default;
|
|
15970
|
-
var encodeUTF82 = (str) => encodeURIComponent(str).replace(
|
|
15971
|
-
/%([0-9A-F]{2})/gi,
|
|
15972
|
-
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
15973
|
-
);
|
|
15974
|
-
var decodeURIComponentSafe2 = (value) => {
|
|
15975
|
-
if (!utils_default.isString(value)) {
|
|
15976
|
-
return value;
|
|
15977
|
-
}
|
|
15978
|
-
try {
|
|
15979
|
-
return decodeURIComponent(value);
|
|
15980
|
-
} catch (error) {
|
|
15981
|
-
return value;
|
|
15982
|
-
}
|
|
15983
|
-
};
|
|
15984
15642
|
var test = (fn, ...args) => {
|
|
15985
15643
|
try {
|
|
15986
15644
|
return !!fn(...args);
|
|
@@ -15988,14 +15646,6 @@ var test = (fn, ...args) => {
|
|
|
15988
15646
|
return false;
|
|
15989
15647
|
}
|
|
15990
15648
|
};
|
|
15991
|
-
var maybeWithAuthCredentials = (url2) => {
|
|
15992
|
-
const protocolIndex = url2.indexOf("://");
|
|
15993
|
-
let urlToCheck = url2;
|
|
15994
|
-
if (protocolIndex !== -1) {
|
|
15995
|
-
urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
15996
|
-
}
|
|
15997
|
-
return urlToCheck.includes("@") || urlToCheck.includes(":");
|
|
15998
|
-
};
|
|
15999
15649
|
var factory = (env) => {
|
|
16000
15650
|
const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
|
|
16001
15651
|
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
@@ -16100,7 +15750,6 @@ var factory = (env) => {
|
|
|
16100
15750
|
} = resolveConfig_default(config);
|
|
16101
15751
|
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
16102
15752
|
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
16103
|
-
const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
16104
15753
|
let _fetch = envFetch || fetch;
|
|
16105
15754
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
16106
15755
|
let composedSignal = composeSignals_default(
|
|
@@ -16112,47 +15761,7 @@ var factory = (env) => {
|
|
|
16112
15761
|
composedSignal.unsubscribe();
|
|
16113
15762
|
});
|
|
16114
15763
|
let requestContentLength;
|
|
16115
|
-
let pendingBodyError = null;
|
|
16116
|
-
const maxBodyLengthError = () => new AxiosError_default(
|
|
16117
|
-
"Request body larger than maxBodyLength limit",
|
|
16118
|
-
AxiosError_default.ERR_BAD_REQUEST,
|
|
16119
|
-
config,
|
|
16120
|
-
request
|
|
16121
|
-
);
|
|
16122
15764
|
try {
|
|
16123
|
-
let auth = void 0;
|
|
16124
|
-
const configAuth = own2("auth");
|
|
16125
|
-
if (configAuth) {
|
|
16126
|
-
const username = utils_default.getSafeProp(configAuth, "username") || "";
|
|
16127
|
-
const password = utils_default.getSafeProp(configAuth, "password") || "";
|
|
16128
|
-
auth = {
|
|
16129
|
-
username,
|
|
16130
|
-
password
|
|
16131
|
-
};
|
|
16132
|
-
}
|
|
16133
|
-
if (maybeWithAuthCredentials(url2)) {
|
|
16134
|
-
const parsedURL = new URL(url2, platform_default.origin);
|
|
16135
|
-
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
16136
|
-
const urlUsername = decodeURIComponentSafe2(parsedURL.username);
|
|
16137
|
-
const urlPassword = decodeURIComponentSafe2(parsedURL.password);
|
|
16138
|
-
auth = {
|
|
16139
|
-
username: urlUsername,
|
|
16140
|
-
password: urlPassword
|
|
16141
|
-
};
|
|
16142
|
-
}
|
|
16143
|
-
if (parsedURL.username || parsedURL.password) {
|
|
16144
|
-
parsedURL.username = "";
|
|
16145
|
-
parsedURL.password = "";
|
|
16146
|
-
url2 = parsedURL.href;
|
|
16147
|
-
}
|
|
16148
|
-
}
|
|
16149
|
-
if (auth) {
|
|
16150
|
-
headers.delete("authorization");
|
|
16151
|
-
headers.set(
|
|
16152
|
-
"Authorization",
|
|
16153
|
-
"Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
|
|
16154
|
-
);
|
|
16155
|
-
}
|
|
16156
15765
|
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
16157
15766
|
const estimated = estimateDataURLDecodedBytes(url2);
|
|
16158
15767
|
if (estimated > maxContentLength) {
|
|
@@ -16165,55 +15774,33 @@ var factory = (env) => {
|
|
|
16165
15774
|
}
|
|
16166
15775
|
}
|
|
16167
15776
|
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
16168
|
-
const outboundLength = await
|
|
16169
|
-
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
|
|
15777
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
15778
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
|
|
15779
|
+
throw new AxiosError_default(
|
|
15780
|
+
"Request body larger than maxBodyLength limit",
|
|
15781
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
15782
|
+
config,
|
|
15783
|
+
request
|
|
15784
|
+
);
|
|
16174
15785
|
}
|
|
16175
15786
|
}
|
|
16176
|
-
|
|
16177
|
-
|
|
16178
|
-
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
-
}
|
|
16186
|
-
|
|
16187
|
-
|
|
16188
|
-
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
method: "POST",
|
|
16193
|
-
body: data,
|
|
16194
|
-
duplex: "half"
|
|
16195
|
-
});
|
|
16196
|
-
let contentTypeHeader;
|
|
16197
|
-
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
16198
|
-
headers.setContentType(contentTypeHeader);
|
|
16199
|
-
}
|
|
16200
|
-
if (_request.body) {
|
|
16201
|
-
const [onProgress, flush] = onUploadProgress && progressEventDecorator(
|
|
16202
|
-
requestContentLength,
|
|
16203
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
16204
|
-
) || [];
|
|
16205
|
-
data = trackRequestStream(_request.body, onProgress, flush);
|
|
16206
|
-
}
|
|
15787
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
15788
|
+
let _request = new Request(url2, {
|
|
15789
|
+
method: "POST",
|
|
15790
|
+
body: data,
|
|
15791
|
+
duplex: "half"
|
|
15792
|
+
});
|
|
15793
|
+
let contentTypeHeader;
|
|
15794
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
15795
|
+
headers.setContentType(contentTypeHeader);
|
|
15796
|
+
}
|
|
15797
|
+
if (_request.body) {
|
|
15798
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
15799
|
+
requestContentLength,
|
|
15800
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
15801
|
+
);
|
|
15802
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
16207
15803
|
}
|
|
16208
|
-
} else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
|
|
16209
|
-
data = trackRequestStream(data);
|
|
16210
|
-
} else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
|
|
16211
|
-
throw new AxiosError_default(
|
|
16212
|
-
"Stream request bodies are not supported by the current fetch implementation",
|
|
16213
|
-
AxiosError_default.ERR_NOT_SUPPORT,
|
|
16214
|
-
config,
|
|
16215
|
-
request
|
|
16216
|
-
);
|
|
16217
15804
|
}
|
|
16218
15805
|
if (!utils_default.isString(withCredentials)) {
|
|
16219
15806
|
withCredentials = withCredentials ? "include" : "omit";
|
|
@@ -16237,9 +15824,8 @@ var factory = (env) => {
|
|
|
16237
15824
|
};
|
|
16238
15825
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
16239
15826
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
|
|
16240
|
-
const responseHeaders = AxiosHeaders_default.from(response.headers);
|
|
16241
15827
|
if (hasMaxContentLength) {
|
|
16242
|
-
const declaredLength = utils_default.toFiniteNumber(
|
|
15828
|
+
const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
16243
15829
|
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
16244
15830
|
throw new AxiosError_default(
|
|
16245
15831
|
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
@@ -16255,7 +15841,7 @@ var factory = (env) => {
|
|
|
16255
15841
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
16256
15842
|
options[prop] = response[prop];
|
|
16257
15843
|
});
|
|
16258
|
-
const responseContentLength = utils_default.toFiniteNumber(
|
|
15844
|
+
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
16259
15845
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
16260
15846
|
responseContentLength,
|
|
16261
15847
|
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
@@ -16325,41 +15911,22 @@ var factory = (env) => {
|
|
|
16325
15911
|
const canceledError = composedSignal.reason;
|
|
16326
15912
|
canceledError.config = config;
|
|
16327
15913
|
request && (canceledError.request = request);
|
|
16328
|
-
|
|
16329
|
-
Object.defineProperty(canceledError, "cause", {
|
|
16330
|
-
__proto__: null,
|
|
16331
|
-
value: err,
|
|
16332
|
-
writable: true,
|
|
16333
|
-
enumerable: false,
|
|
16334
|
-
configurable: true
|
|
16335
|
-
});
|
|
16336
|
-
}
|
|
15914
|
+
err !== canceledError && (canceledError.cause = err);
|
|
16337
15915
|
throw canceledError;
|
|
16338
15916
|
}
|
|
16339
|
-
if (pendingBodyError) {
|
|
16340
|
-
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
16341
|
-
throw pendingBodyError;
|
|
16342
|
-
}
|
|
16343
|
-
if (err instanceof AxiosError_default) {
|
|
16344
|
-
request && !err.request && (err.request = request);
|
|
16345
|
-
throw err;
|
|
16346
|
-
}
|
|
16347
15917
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
16348
|
-
|
|
16349
|
-
|
|
16350
|
-
|
|
16351
|
-
|
|
16352
|
-
|
|
16353
|
-
|
|
15918
|
+
throw Object.assign(
|
|
15919
|
+
new AxiosError_default(
|
|
15920
|
+
"Network Error",
|
|
15921
|
+
AxiosError_default.ERR_NETWORK,
|
|
15922
|
+
config,
|
|
15923
|
+
request,
|
|
15924
|
+
err && err.response
|
|
15925
|
+
),
|
|
15926
|
+
{
|
|
15927
|
+
cause: err.cause || err
|
|
15928
|
+
}
|
|
16354
15929
|
);
|
|
16355
|
-
Object.defineProperty(networkError, "cause", {
|
|
16356
|
-
__proto__: null,
|
|
16357
|
-
value: err.cause || err,
|
|
16358
|
-
writable: true,
|
|
16359
|
-
enumerable: false,
|
|
16360
|
-
configurable: true
|
|
16361
|
-
});
|
|
16362
|
-
throw networkError;
|
|
16363
15930
|
}
|
|
16364
15931
|
throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
|
|
16365
15932
|
}
|
|
@@ -16381,7 +15948,7 @@ var getFetch = (config) => {
|
|
|
16381
15948
|
};
|
|
16382
15949
|
var adapter = getFetch();
|
|
16383
15950
|
|
|
16384
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15951
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
|
|
16385
15952
|
var knownAdapters = {
|
|
16386
15953
|
http: http_default,
|
|
16387
15954
|
xhr: xhr_default,
|
|
@@ -16428,7 +15995,7 @@ function getAdapter(adapters, config) {
|
|
|
16428
15995
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
16429
15996
|
throw new AxiosError_default(
|
|
16430
15997
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
16431
|
-
|
|
15998
|
+
"ERR_NOT_SUPPORT"
|
|
16432
15999
|
);
|
|
16433
16000
|
}
|
|
16434
16001
|
return adapter2;
|
|
@@ -16446,7 +16013,7 @@ var adapters_default = {
|
|
|
16446
16013
|
adapters: knownAdapters
|
|
16447
16014
|
};
|
|
16448
16015
|
|
|
16449
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16016
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
|
|
16450
16017
|
function throwIfCancellationRequested(config) {
|
|
16451
16018
|
if (config.cancelToken) {
|
|
16452
16019
|
config.cancelToken.throwIfRequested();
|
|
@@ -16497,7 +16064,7 @@ function dispatchRequest(config) {
|
|
|
16497
16064
|
);
|
|
16498
16065
|
}
|
|
16499
16066
|
|
|
16500
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16067
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
|
|
16501
16068
|
var validators = {};
|
|
16502
16069
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
16503
16070
|
validators[type] = function validator(thing) {
|
|
@@ -16535,7 +16102,7 @@ validators.spelling = function spelling(correctSpelling) {
|
|
|
16535
16102
|
};
|
|
16536
16103
|
};
|
|
16537
16104
|
function assertOptions(options, schema, allowUnknown) {
|
|
16538
|
-
if (typeof options !== "object"
|
|
16105
|
+
if (typeof options !== "object") {
|
|
16539
16106
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
16540
16107
|
}
|
|
16541
16108
|
const keys = Object.keys(options);
|
|
@@ -16564,7 +16131,7 @@ var validator_default = {
|
|
|
16564
16131
|
validators
|
|
16565
16132
|
};
|
|
16566
16133
|
|
|
16567
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16134
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
|
|
16568
16135
|
var validators2 = validator_default.validators;
|
|
16569
16136
|
var Axios = class {
|
|
16570
16137
|
constructor(instanceConfig) {
|
|
@@ -16629,9 +16196,7 @@ var Axios = class {
|
|
|
16629
16196
|
silentJSONParsing: validators2.transitional(validators2.boolean),
|
|
16630
16197
|
forcedJSONParsing: validators2.transitional(validators2.boolean),
|
|
16631
16198
|
clarifyTimeoutError: validators2.transitional(validators2.boolean),
|
|
16632
|
-
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
16633
|
-
advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
|
|
16634
|
-
validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
|
|
16199
|
+
legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
|
|
16635
16200
|
},
|
|
16636
16201
|
false
|
|
16637
16202
|
);
|
|
@@ -16731,7 +16296,7 @@ var Axios = class {
|
|
|
16731
16296
|
}
|
|
16732
16297
|
getUri(config) {
|
|
16733
16298
|
config = mergeConfig(this.defaults, config);
|
|
16734
|
-
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls
|
|
16299
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
16735
16300
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
16736
16301
|
}
|
|
16737
16302
|
};
|
|
@@ -16741,7 +16306,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
16741
16306
|
mergeConfig(config || {}, {
|
|
16742
16307
|
method,
|
|
16743
16308
|
url: url2,
|
|
16744
|
-
data: config
|
|
16309
|
+
data: (config || {}).data
|
|
16745
16310
|
})
|
|
16746
16311
|
);
|
|
16747
16312
|
};
|
|
@@ -16768,7 +16333,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
|
|
|
16768
16333
|
});
|
|
16769
16334
|
var Axios_default = Axios;
|
|
16770
16335
|
|
|
16771
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16336
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
|
|
16772
16337
|
var CancelToken = class _CancelToken {
|
|
16773
16338
|
constructor(executor) {
|
|
16774
16339
|
if (typeof executor !== "function") {
|
|
@@ -16866,19 +16431,19 @@ var CancelToken = class _CancelToken {
|
|
|
16866
16431
|
};
|
|
16867
16432
|
var CancelToken_default = CancelToken;
|
|
16868
16433
|
|
|
16869
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16434
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
|
|
16870
16435
|
function spread(callback) {
|
|
16871
16436
|
return function wrap(arr) {
|
|
16872
16437
|
return callback.apply(null, arr);
|
|
16873
16438
|
};
|
|
16874
16439
|
}
|
|
16875
16440
|
|
|
16876
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16441
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
|
|
16877
16442
|
function isAxiosError(payload) {
|
|
16878
16443
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
16879
16444
|
}
|
|
16880
16445
|
|
|
16881
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16446
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
16882
16447
|
var HttpStatusCode = {
|
|
16883
16448
|
Continue: 100,
|
|
16884
16449
|
SwitchingProtocols: 101,
|
|
@@ -16955,7 +16520,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
16955
16520
|
});
|
|
16956
16521
|
var HttpStatusCode_default = HttpStatusCode;
|
|
16957
16522
|
|
|
16958
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16523
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
|
|
16959
16524
|
function createInstance(defaultConfig) {
|
|
16960
16525
|
const context = new Axios_default(defaultConfig);
|
|
16961
16526
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -16988,7 +16553,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
16988
16553
|
axios.default = axios;
|
|
16989
16554
|
var axios_default = axios;
|
|
16990
16555
|
|
|
16991
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16556
|
+
// ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
|
|
16992
16557
|
var {
|
|
16993
16558
|
Axios: Axios2,
|
|
16994
16559
|
AxiosError: AxiosError2,
|