@alpic-ai/sdk 0.0.0-dev.gf60a82f → 0.0.0-dev.gf615872
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/project/detect-runtime.js +21 -3
- package/dist/project/detect-runtime.js.map +1 -1
- package/dist/project/python-runtime.d.ts +1 -0
- package/dist/project/python-runtime.js +71 -0
- package/dist/project/python-runtime.js.map +1 -0
- package/dist/vendor/pipenet.js +590 -182
- package/dist/vendor/pipenet.js.map +4 -4
- package/package.json +10 -10
package/dist/vendor/pipenet.js
CHANGED
|
@@ -11538,9 +11538,9 @@ var require_dist = __commonJS({
|
|
|
11538
11538
|
}
|
|
11539
11539
|
});
|
|
11540
11540
|
|
|
11541
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11541
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
|
|
11542
11542
|
var require_debug = __commonJS({
|
|
11543
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11543
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
11544
11544
|
var debug3;
|
|
11545
11545
|
module.exports = function() {
|
|
11546
11546
|
if (!debug3) {
|
|
@@ -11558,9 +11558,9 @@ var require_debug = __commonJS({
|
|
|
11558
11558
|
}
|
|
11559
11559
|
});
|
|
11560
11560
|
|
|
11561
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11561
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
|
|
11562
11562
|
var require_follow_redirects = __commonJS({
|
|
11563
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11563
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
|
|
11564
11564
|
var url2 = __require("url");
|
|
11565
11565
|
var URL2 = url2.URL;
|
|
11566
11566
|
var http3 = __require("http");
|
|
@@ -11788,8 +11788,14 @@ var require_follow_redirects = __commonJS({
|
|
|
11788
11788
|
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
|
11789
11789
|
if (!options.headers) {
|
|
11790
11790
|
options.headers = {};
|
|
11791
|
+
} else if (Array.isArray(options.headers)) {
|
|
11792
|
+
var headerList = options.headers;
|
|
11793
|
+
options.headers = {};
|
|
11794
|
+
for (var i = 0; i < headerList.length; i += 2) {
|
|
11795
|
+
options.headers[headerList[i]] = headerList[i + 1];
|
|
11796
|
+
}
|
|
11791
11797
|
}
|
|
11792
|
-
if (!
|
|
11798
|
+
if (!Array.isArray(options.sensitiveHeaders)) {
|
|
11793
11799
|
options.sensitiveHeaders = [];
|
|
11794
11800
|
}
|
|
11795
11801
|
if (options.host) {
|
|
@@ -12046,9 +12052,6 @@ var require_follow_redirects = __commonJS({
|
|
|
12046
12052
|
var dot = subdomain.length - domain.length - 1;
|
|
12047
12053
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
12048
12054
|
}
|
|
12049
|
-
function isArray2(value) {
|
|
12050
|
-
return value instanceof Array;
|
|
12051
|
-
}
|
|
12052
12055
|
function isString2(value) {
|
|
12053
12056
|
return typeof value === "string" || value instanceof String;
|
|
12054
12057
|
}
|
|
@@ -12062,41 +12065,101 @@ var require_follow_redirects = __commonJS({
|
|
|
12062
12065
|
return URL2 && value instanceof URL2;
|
|
12063
12066
|
}
|
|
12064
12067
|
function escapeRegex(regex) {
|
|
12065
|
-
return regex.replace(/[\]\\/()
|
|
12068
|
+
return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
|
|
12066
12069
|
}
|
|
12067
12070
|
module.exports = wrap({ http: http3, https: https2 });
|
|
12068
12071
|
module.exports.wrap = wrap;
|
|
12069
12072
|
}
|
|
12070
12073
|
});
|
|
12071
12074
|
|
|
12072
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12075
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
|
|
12073
12076
|
function bind(fn, thisArg) {
|
|
12074
12077
|
return function wrap() {
|
|
12075
12078
|
return fn.apply(thisArg, arguments);
|
|
12076
12079
|
};
|
|
12077
12080
|
}
|
|
12078
12081
|
|
|
12079
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12082
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
|
|
12080
12083
|
var { toString } = Object.prototype;
|
|
12081
12084
|
var { getPrototypeOf } = Object;
|
|
12082
12085
|
var { iterator, toStringTag } = Symbol;
|
|
12083
12086
|
var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
12087
|
+
var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
|
|
12088
|
+
var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
|
|
12089
|
+
var isSafeAndFullyMutable = (obj) => {
|
|
12090
|
+
if (!Object.isExtensible(obj)) {
|
|
12091
|
+
return false;
|
|
12092
|
+
}
|
|
12093
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
12094
|
+
if (Object.getOwnPropertySymbols) {
|
|
12095
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
12096
|
+
}
|
|
12097
|
+
return props.every((prop) => {
|
|
12098
|
+
if (isUnsafeObjectKey(prop)) {
|
|
12099
|
+
return false;
|
|
12100
|
+
}
|
|
12101
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
12102
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
12103
|
+
});
|
|
12104
|
+
};
|
|
12084
12105
|
var hasOwnInPrototypeChain = (thing, prop) => {
|
|
12085
12106
|
let obj = thing;
|
|
12086
12107
|
const seen = [];
|
|
12087
|
-
while (obj != null
|
|
12108
|
+
while (obj != null) {
|
|
12088
12109
|
if (seen.indexOf(obj) !== -1) {
|
|
12089
12110
|
return false;
|
|
12090
12111
|
}
|
|
12091
12112
|
seen.push(obj);
|
|
12113
|
+
const prototype2 = getPrototypeOf(obj);
|
|
12114
|
+
if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
|
|
12115
|
+
return false;
|
|
12116
|
+
}
|
|
12092
12117
|
if (hasOwnProperty(obj, prop)) {
|
|
12093
12118
|
return true;
|
|
12094
12119
|
}
|
|
12095
|
-
obj =
|
|
12120
|
+
obj = prototype2;
|
|
12096
12121
|
}
|
|
12097
12122
|
return false;
|
|
12098
12123
|
};
|
|
12099
12124
|
var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
|
|
12125
|
+
var toSafeFlatObject = (thing) => {
|
|
12126
|
+
if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
|
|
12127
|
+
return thing;
|
|
12128
|
+
}
|
|
12129
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
12130
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
12131
|
+
return thing;
|
|
12132
|
+
}
|
|
12133
|
+
const result = /* @__PURE__ */ Object.create(null);
|
|
12134
|
+
const merged = /* @__PURE__ */ Object.create(null);
|
|
12135
|
+
const seen = [];
|
|
12136
|
+
let current = thing;
|
|
12137
|
+
while (current != null) {
|
|
12138
|
+
if (seen.indexOf(current) !== -1) {
|
|
12139
|
+
break;
|
|
12140
|
+
}
|
|
12141
|
+
seen.push(current);
|
|
12142
|
+
const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
12143
|
+
if (isPrototypeBoundary(current, prototype2, current === thing)) {
|
|
12144
|
+
break;
|
|
12145
|
+
}
|
|
12146
|
+
const props = Object.getOwnPropertyNames(current);
|
|
12147
|
+
if (Object.getOwnPropertySymbols) {
|
|
12148
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
12149
|
+
}
|
|
12150
|
+
for (const prop of props) {
|
|
12151
|
+
if (isUnsafeObjectKey(prop)) {
|
|
12152
|
+
continue;
|
|
12153
|
+
}
|
|
12154
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
12155
|
+
result[prop] = thing[prop];
|
|
12156
|
+
merged[prop] = true;
|
|
12157
|
+
}
|
|
12158
|
+
}
|
|
12159
|
+
current = prototype2;
|
|
12160
|
+
}
|
|
12161
|
+
return result;
|
|
12162
|
+
};
|
|
12100
12163
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
12101
12164
|
const str = toString.call(thing);
|
|
12102
12165
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -12131,9 +12194,9 @@ var isPlainObject = (val) => {
|
|
|
12131
12194
|
return false;
|
|
12132
12195
|
}
|
|
12133
12196
|
const prototype2 = getPrototypeOf(val);
|
|
12134
|
-
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat
|
|
12135
|
-
//
|
|
12136
|
-
//
|
|
12197
|
+
return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
12198
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
12199
|
+
// only through shared or terminal prototype boundaries.
|
|
12137
12200
|
!hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
12138
12201
|
};
|
|
12139
12202
|
var isEmptyObject = (val) => {
|
|
@@ -12544,6 +12607,7 @@ var utils_default = {
|
|
|
12544
12607
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
12545
12608
|
hasOwnInPrototypeChain,
|
|
12546
12609
|
getSafeProp,
|
|
12610
|
+
toSafeFlatObject,
|
|
12547
12611
|
reduceDescriptors,
|
|
12548
12612
|
freezeMethods,
|
|
12549
12613
|
toObjectSet,
|
|
@@ -12563,7 +12627,7 @@ var utils_default = {
|
|
|
12563
12627
|
isSafeIterable
|
|
12564
12628
|
};
|
|
12565
12629
|
|
|
12566
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12630
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
|
|
12567
12631
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
12568
12632
|
"age",
|
|
12569
12633
|
"authorization",
|
|
@@ -12609,7 +12673,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
12609
12673
|
return parsed;
|
|
12610
12674
|
};
|
|
12611
12675
|
|
|
12612
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12676
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
12613
12677
|
function trimSPorHTAB(str) {
|
|
12614
12678
|
let start = 0;
|
|
12615
12679
|
let end = str.length;
|
|
@@ -12647,7 +12711,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
12647
12711
|
return byteStringHeaders;
|
|
12648
12712
|
}
|
|
12649
12713
|
|
|
12650
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
12714
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
|
|
12651
12715
|
var $internals = /* @__PURE__ */ Symbol("internals");
|
|
12652
12716
|
function normalizeHeader(header) {
|
|
12653
12717
|
return header && String(header).trim().toLowerCase();
|
|
@@ -12980,7 +13044,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
12980
13044
|
utils_default.freezeMethods(AxiosHeaders);
|
|
12981
13045
|
var AxiosHeaders_default = AxiosHeaders;
|
|
12982
13046
|
|
|
12983
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13047
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
|
|
12984
13048
|
var REDACTED = "[REDACTED ****]";
|
|
12985
13049
|
function hasOwnOrPrototypeToJSON(source) {
|
|
12986
13050
|
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
@@ -13142,11 +13206,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
|
13142
13206
|
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
13143
13207
|
var AxiosError_default = AxiosError;
|
|
13144
13208
|
|
|
13145
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13209
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
13146
13210
|
var import_form_data = __toESM(require_form_data(), 1);
|
|
13147
13211
|
var FormData_default = import_form_data.default;
|
|
13148
13212
|
|
|
13149
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13213
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
|
|
13150
13214
|
var Buffer_default = {
|
|
13151
13215
|
isBufferAvailable() {
|
|
13152
13216
|
return typeof Buffer !== "undefined";
|
|
@@ -13156,7 +13220,7 @@ var Buffer_default = {
|
|
|
13156
13220
|
}
|
|
13157
13221
|
};
|
|
13158
13222
|
|
|
13159
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13223
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
|
|
13160
13224
|
var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
|
|
13161
13225
|
function isVisitable(thing) {
|
|
13162
13226
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
@@ -13182,24 +13246,16 @@ function toFormData(obj, formData, options) {
|
|
|
13182
13246
|
throw new TypeError("target must be an object");
|
|
13183
13247
|
}
|
|
13184
13248
|
formData = formData || new (FormData_default || FormData)();
|
|
13185
|
-
|
|
13186
|
-
options,
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
}
|
|
13196
|
-
);
|
|
13197
|
-
const metaTokens = options.metaTokens;
|
|
13198
|
-
const visitor = options.visitor || defaultVisitor;
|
|
13199
|
-
const dots = options.dots;
|
|
13200
|
-
const indexes = options.indexes;
|
|
13201
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
13202
|
-
const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
|
|
13249
|
+
const option = (name, fallback) => {
|
|
13250
|
+
const value = utils_default.getSafeProp(options, name);
|
|
13251
|
+
return utils_default.isUndefined(value) ? fallback : value;
|
|
13252
|
+
};
|
|
13253
|
+
const metaTokens = option("metaTokens", true);
|
|
13254
|
+
const visitor = option("visitor") || defaultVisitor;
|
|
13255
|
+
const dots = option("dots", false);
|
|
13256
|
+
const indexes = option("indexes", false);
|
|
13257
|
+
const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
|
|
13258
|
+
const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
13203
13259
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
13204
13260
|
const stack = [];
|
|
13205
13261
|
if (!utils_default.isFunction(visitor)) {
|
|
@@ -13223,7 +13279,10 @@ function toFormData(obj, formData, options) {
|
|
|
13223
13279
|
if (Buffer_default && Buffer_default.isBufferAvailable()) {
|
|
13224
13280
|
return Buffer_default.from(value);
|
|
13225
13281
|
}
|
|
13226
|
-
throw new AxiosError_default(
|
|
13282
|
+
throw new AxiosError_default(
|
|
13283
|
+
"Blob is not supported. Use a Buffer instead.",
|
|
13284
|
+
AxiosError_default.ERR_NOT_SUPPORT
|
|
13285
|
+
);
|
|
13227
13286
|
}
|
|
13228
13287
|
return value;
|
|
13229
13288
|
}
|
|
@@ -13308,7 +13367,7 @@ function toFormData(obj, formData, options) {
|
|
|
13308
13367
|
}
|
|
13309
13368
|
var toFormData_default = toFormData;
|
|
13310
13369
|
|
|
13311
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13370
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
13312
13371
|
function encode(str) {
|
|
13313
13372
|
const charMap = {
|
|
13314
13373
|
"!": "%21",
|
|
@@ -13338,7 +13397,7 @@ prototype.toString = function toString2(encoder) {
|
|
|
13338
13397
|
};
|
|
13339
13398
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
13340
13399
|
|
|
13341
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13400
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
|
|
13342
13401
|
function encode2(val) {
|
|
13343
13402
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
13344
13403
|
}
|
|
@@ -13368,10 +13427,48 @@ function buildURL(url2, params, options) {
|
|
|
13368
13427
|
return url2;
|
|
13369
13428
|
}
|
|
13370
13429
|
|
|
13371
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13430
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
|
|
13431
|
+
var $internals2 = /* @__PURE__ */ Symbol("internals");
|
|
13432
|
+
function countHandlers(handlers) {
|
|
13433
|
+
return handlers ? handlers.length : 0;
|
|
13434
|
+
}
|
|
13435
|
+
function trimHandlers(handlers) {
|
|
13436
|
+
if (!handlers) {
|
|
13437
|
+
return;
|
|
13438
|
+
}
|
|
13439
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
13440
|
+
handlers.pop();
|
|
13441
|
+
}
|
|
13442
|
+
}
|
|
13443
|
+
function syncHandlerEntries(manager, internals) {
|
|
13444
|
+
const handlers = manager.handlers;
|
|
13445
|
+
const length = countHandlers(handlers);
|
|
13446
|
+
if (handlers !== internals.handlersRef) {
|
|
13447
|
+
internals.handlersRef = handlers;
|
|
13448
|
+
internals.handlerEntries.clear();
|
|
13449
|
+
} else if (length !== internals.handlersLength) {
|
|
13450
|
+
if (!length) {
|
|
13451
|
+
internals.handlerEntries.clear();
|
|
13452
|
+
} else {
|
|
13453
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
13454
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
13455
|
+
internals.handlerEntries.delete(id);
|
|
13456
|
+
}
|
|
13457
|
+
});
|
|
13458
|
+
}
|
|
13459
|
+
}
|
|
13460
|
+
internals.handlersLength = length;
|
|
13461
|
+
}
|
|
13372
13462
|
var InterceptorManager = class {
|
|
13373
13463
|
constructor() {
|
|
13374
13464
|
this.handlers = [];
|
|
13465
|
+
this[$internals2] = {
|
|
13466
|
+
handlersRef: this.handlers,
|
|
13467
|
+
handlersLength: this.handlers.length,
|
|
13468
|
+
handlerEntries: /* @__PURE__ */ new Map(),
|
|
13469
|
+
iterationDepth: 0,
|
|
13470
|
+
nextId: 0
|
|
13471
|
+
};
|
|
13375
13472
|
}
|
|
13376
13473
|
/**
|
|
13377
13474
|
* Add a new interceptor to the stack
|
|
@@ -13383,13 +13480,25 @@ var InterceptorManager = class {
|
|
|
13383
13480
|
* @return {Number} An ID used to remove interceptor later
|
|
13384
13481
|
*/
|
|
13385
13482
|
use(fulfilled, rejected, options) {
|
|
13386
|
-
|
|
13483
|
+
const handler = {
|
|
13387
13484
|
fulfilled,
|
|
13388
13485
|
rejected,
|
|
13389
13486
|
synchronous: options ? options.synchronous : false,
|
|
13390
13487
|
runWhen: options ? options.runWhen : null
|
|
13488
|
+
};
|
|
13489
|
+
const internals = this[$internals2];
|
|
13490
|
+
if (this.handlers == null) {
|
|
13491
|
+
this.handlers = [];
|
|
13492
|
+
}
|
|
13493
|
+
syncHandlerEntries(this, internals);
|
|
13494
|
+
const id = internals.nextId++;
|
|
13495
|
+
this.handlers.push(handler);
|
|
13496
|
+
internals.handlerEntries.set(id, {
|
|
13497
|
+
handler,
|
|
13498
|
+
index: this.handlers.length - 1
|
|
13391
13499
|
});
|
|
13392
|
-
|
|
13500
|
+
internals.handlersLength = this.handlers.length;
|
|
13501
|
+
return id;
|
|
13393
13502
|
}
|
|
13394
13503
|
/**
|
|
13395
13504
|
* Remove an interceptor from the stack
|
|
@@ -13399,8 +13508,19 @@ var InterceptorManager = class {
|
|
|
13399
13508
|
* @returns {void}
|
|
13400
13509
|
*/
|
|
13401
13510
|
eject(id) {
|
|
13402
|
-
|
|
13403
|
-
|
|
13511
|
+
const internals = this[$internals2];
|
|
13512
|
+
syncHandlerEntries(this, internals);
|
|
13513
|
+
const entry = internals.handlerEntries.get(id);
|
|
13514
|
+
if (entry) {
|
|
13515
|
+
internals.handlerEntries.delete(id);
|
|
13516
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
13517
|
+
return;
|
|
13518
|
+
}
|
|
13519
|
+
this.handlers[entry.index] = null;
|
|
13520
|
+
if (!internals.iterationDepth) {
|
|
13521
|
+
trimHandlers(this.handlers);
|
|
13522
|
+
internals.handlersLength = this.handlers.length;
|
|
13523
|
+
}
|
|
13404
13524
|
}
|
|
13405
13525
|
}
|
|
13406
13526
|
/**
|
|
@@ -13411,6 +13531,7 @@ var InterceptorManager = class {
|
|
|
13411
13531
|
clear() {
|
|
13412
13532
|
if (this.handlers) {
|
|
13413
13533
|
this.handlers = [];
|
|
13534
|
+
syncHandlerEntries(this, this[$internals2]);
|
|
13414
13535
|
}
|
|
13415
13536
|
}
|
|
13416
13537
|
/**
|
|
@@ -13424,16 +13545,27 @@ var InterceptorManager = class {
|
|
|
13424
13545
|
* @returns {void}
|
|
13425
13546
|
*/
|
|
13426
13547
|
forEach(fn) {
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13548
|
+
const internals = this[$internals2];
|
|
13549
|
+
syncHandlerEntries(this, internals);
|
|
13550
|
+
internals.iterationDepth++;
|
|
13551
|
+
try {
|
|
13552
|
+
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
13553
|
+
if (h !== null) {
|
|
13554
|
+
fn(h);
|
|
13555
|
+
}
|
|
13556
|
+
});
|
|
13557
|
+
} finally {
|
|
13558
|
+
if (!--internals.iterationDepth) {
|
|
13559
|
+
syncHandlerEntries(this, internals);
|
|
13560
|
+
trimHandlers(this.handlers);
|
|
13561
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
13430
13562
|
}
|
|
13431
|
-
}
|
|
13563
|
+
}
|
|
13432
13564
|
}
|
|
13433
13565
|
};
|
|
13434
13566
|
var InterceptorManager_default = InterceptorManager;
|
|
13435
13567
|
|
|
13436
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13568
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
|
|
13437
13569
|
var transitional_default = {
|
|
13438
13570
|
silentJSONParsing: true,
|
|
13439
13571
|
forcedJSONParsing: true,
|
|
@@ -13443,14 +13575,14 @@ var transitional_default = {
|
|
|
13443
13575
|
validateStatusUndefinedResolves: true
|
|
13444
13576
|
};
|
|
13445
13577
|
|
|
13446
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13578
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13447
13579
|
import crypto from "crypto";
|
|
13448
13580
|
|
|
13449
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13581
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
13450
13582
|
import url from "url";
|
|
13451
13583
|
var URLSearchParams_default = url.URLSearchParams;
|
|
13452
13584
|
|
|
13453
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13585
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
|
|
13454
13586
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
13455
13587
|
var DIGIT = "0123456789";
|
|
13456
13588
|
var ALPHABET = {
|
|
@@ -13480,7 +13612,7 @@ var node_default = {
|
|
|
13480
13612
|
protocols: ["http", "https", "file", "data"]
|
|
13481
13613
|
};
|
|
13482
13614
|
|
|
13483
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13615
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
|
|
13484
13616
|
var utils_exports = {};
|
|
13485
13617
|
__export(utils_exports, {
|
|
13486
13618
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -13498,13 +13630,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
13498
13630
|
})();
|
|
13499
13631
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
13500
13632
|
|
|
13501
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13633
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
|
|
13502
13634
|
var platform_default = {
|
|
13503
13635
|
...utils_exports,
|
|
13504
13636
|
...node_default
|
|
13505
13637
|
};
|
|
13506
13638
|
|
|
13507
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13639
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
13508
13640
|
function toURLEncodedForm(data, options) {
|
|
13509
13641
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
|
|
13510
13642
|
visitor: function(value, key, path, helpers) {
|
|
@@ -13518,7 +13650,7 @@ function toURLEncodedForm(data, options) {
|
|
|
13518
13650
|
});
|
|
13519
13651
|
}
|
|
13520
13652
|
|
|
13521
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13653
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
13522
13654
|
var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
13523
13655
|
function throwIfDepthExceeded(index) {
|
|
13524
13656
|
if (index > MAX_DEPTH) {
|
|
@@ -13586,7 +13718,23 @@ function formDataToJSON(formData) {
|
|
|
13586
13718
|
}
|
|
13587
13719
|
var formDataToJSON_default = formDataToJSON;
|
|
13588
13720
|
|
|
13589
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13721
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
|
|
13722
|
+
var methodList = Object.freeze([
|
|
13723
|
+
"get",
|
|
13724
|
+
"delete",
|
|
13725
|
+
"head",
|
|
13726
|
+
"options",
|
|
13727
|
+
"post",
|
|
13728
|
+
"put",
|
|
13729
|
+
"patch",
|
|
13730
|
+
"purge",
|
|
13731
|
+
"link",
|
|
13732
|
+
"unlink",
|
|
13733
|
+
"query"
|
|
13734
|
+
]);
|
|
13735
|
+
var methodList_default = methodList;
|
|
13736
|
+
|
|
13737
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
|
|
13590
13738
|
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
13591
13739
|
function stringifySafely2(rawValue, parser, encoder) {
|
|
13592
13740
|
if (utils_default.isString(rawValue)) {
|
|
@@ -13698,12 +13846,12 @@ var defaults = {
|
|
|
13698
13846
|
}
|
|
13699
13847
|
}
|
|
13700
13848
|
};
|
|
13701
|
-
utils_default.forEach(
|
|
13849
|
+
utils_default.forEach(methodList_default, (method) => {
|
|
13702
13850
|
defaults.headers[method] = {};
|
|
13703
13851
|
});
|
|
13704
13852
|
var defaults_default = defaults;
|
|
13705
13853
|
|
|
13706
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13854
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
|
|
13707
13855
|
function transformData(fns, response) {
|
|
13708
13856
|
const config = this || defaults_default;
|
|
13709
13857
|
const context = response || config;
|
|
@@ -13716,12 +13864,12 @@ function transformData(fns, response) {
|
|
|
13716
13864
|
return data;
|
|
13717
13865
|
}
|
|
13718
13866
|
|
|
13719
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13867
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
|
|
13720
13868
|
function isCancel(value) {
|
|
13721
13869
|
return !!(value && value.__CANCEL__);
|
|
13722
13870
|
}
|
|
13723
13871
|
|
|
13724
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13872
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
|
|
13725
13873
|
var CanceledError = class extends AxiosError_default {
|
|
13726
13874
|
/**
|
|
13727
13875
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -13740,7 +13888,7 @@ var CanceledError = class extends AxiosError_default {
|
|
|
13740
13888
|
};
|
|
13741
13889
|
var CanceledError_default = CanceledError;
|
|
13742
13890
|
|
|
13743
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13891
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
|
|
13744
13892
|
function settle(resolve, reject, response) {
|
|
13745
13893
|
const validateStatus2 = response.config.validateStatus;
|
|
13746
13894
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -13756,7 +13904,7 @@ function settle(resolve, reject, response) {
|
|
|
13756
13904
|
}
|
|
13757
13905
|
}
|
|
13758
13906
|
|
|
13759
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13907
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
13760
13908
|
function isAbsoluteURL(url2) {
|
|
13761
13909
|
if (typeof url2 !== "string") {
|
|
13762
13910
|
return false;
|
|
@@ -13764,7 +13912,7 @@ function isAbsoluteURL(url2) {
|
|
|
13764
13912
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
13765
13913
|
}
|
|
13766
13914
|
|
|
13767
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13915
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
|
|
13768
13916
|
function combineURLs(baseURL, relativeURL) {
|
|
13769
13917
|
if (!relativeURL) {
|
|
13770
13918
|
return baseURL;
|
|
@@ -13776,19 +13924,21 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
13776
13924
|
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
13777
13925
|
}
|
|
13778
13926
|
|
|
13779
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13780
|
-
var
|
|
13781
|
-
var httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
13782
|
-
function stripLeadingC0ControlOrSpace(url2) {
|
|
13783
|
-
let i = 0;
|
|
13784
|
-
while (i < url2.length && url2.charCodeAt(i) <= 32) {
|
|
13785
|
-
i++;
|
|
13786
|
-
}
|
|
13787
|
-
return url2.slice(i);
|
|
13788
|
-
}
|
|
13927
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
|
|
13928
|
+
var urlParserControlCharacters = /[\t\n\r]/g;
|
|
13789
13929
|
function normalizeURLForProtocolCheck(url2) {
|
|
13790
|
-
|
|
13930
|
+
if (typeof url2 !== "string") {
|
|
13931
|
+
return url2;
|
|
13932
|
+
}
|
|
13933
|
+
let start = 0;
|
|
13934
|
+
while (start < url2.length && url2.charCodeAt(start) <= 32) {
|
|
13935
|
+
start++;
|
|
13936
|
+
}
|
|
13937
|
+
return url2.slice(start).replace(urlParserControlCharacters, "");
|
|
13791
13938
|
}
|
|
13939
|
+
|
|
13940
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
|
|
13941
|
+
var malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
13792
13942
|
function redactFragment(fragment) {
|
|
13793
13943
|
if (!fragment) {
|
|
13794
13944
|
return fragment;
|
|
@@ -13899,7 +14049,7 @@ function getEnv(key) {
|
|
|
13899
14049
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
13900
14050
|
}
|
|
13901
14051
|
|
|
13902
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14052
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
13903
14053
|
var import_https_proxy_agent = __toESM(require_dist(), 1);
|
|
13904
14054
|
var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
13905
14055
|
import http from "http";
|
|
@@ -13909,17 +14059,17 @@ import util3 from "util";
|
|
|
13909
14059
|
import { resolve as resolvePath } from "path";
|
|
13910
14060
|
import zlib from "zlib";
|
|
13911
14061
|
|
|
13912
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13913
|
-
var VERSION = "1.
|
|
14062
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
|
|
14063
|
+
var VERSION = "1.20.0";
|
|
13914
14064
|
|
|
13915
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14065
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
|
|
13916
14066
|
function parseProtocol(url2) {
|
|
13917
14067
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
13918
14068
|
return match && match[1] || "";
|
|
13919
14069
|
}
|
|
13920
14070
|
|
|
13921
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
13922
|
-
var DATA_URL_PATTERN = /^([
|
|
14071
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
|
|
14072
|
+
var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
|
|
13923
14073
|
function fromDataURI(uri, asBlob, options) {
|
|
13924
14074
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
13925
14075
|
const protocol = parseProtocol(uri);
|
|
@@ -13954,10 +14104,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
13954
14104
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
13955
14105
|
}
|
|
13956
14106
|
|
|
13957
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14107
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
13958
14108
|
import stream3 from "stream";
|
|
13959
14109
|
|
|
13960
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14110
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
|
|
13961
14111
|
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
13962
14112
|
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
13963
14113
|
if (policy !== "content-only") {
|
|
@@ -13971,7 +14121,7 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
13971
14121
|
});
|
|
13972
14122
|
}
|
|
13973
14123
|
|
|
13974
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14124
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
13975
14125
|
import stream from "stream";
|
|
13976
14126
|
var kInternals = /* @__PURE__ */ Symbol("internals");
|
|
13977
14127
|
var AxiosTransformStream = class extends stream.Transform {
|
|
@@ -14094,14 +14244,14 @@ var AxiosTransformStream = class extends stream.Transform {
|
|
|
14094
14244
|
};
|
|
14095
14245
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
14096
14246
|
|
|
14097
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14247
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14098
14248
|
import { EventEmitter } from "events";
|
|
14099
14249
|
|
|
14100
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14250
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
14101
14251
|
import util from "util";
|
|
14102
14252
|
import { Readable } from "stream";
|
|
14103
14253
|
|
|
14104
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14254
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
|
|
14105
14255
|
var { asyncIterator } = Symbol;
|
|
14106
14256
|
var readBlob = async function* (blob) {
|
|
14107
14257
|
if (blob.stream) {
|
|
@@ -14116,7 +14266,7 @@ var readBlob = async function* (blob) {
|
|
|
14116
14266
|
};
|
|
14117
14267
|
var readBlob_default = readBlob;
|
|
14118
14268
|
|
|
14119
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14269
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
|
|
14120
14270
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
14121
14271
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
|
|
14122
14272
|
var CRLF = "\r\n";
|
|
@@ -14201,7 +14351,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
14201
14351
|
};
|
|
14202
14352
|
var formDataToStream_default = formDataToStream;
|
|
14203
14353
|
|
|
14204
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14354
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
14205
14355
|
import stream2 from "stream";
|
|
14206
14356
|
var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
14207
14357
|
__transform(chunk, encoding, callback) {
|
|
@@ -14223,7 +14373,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
|
|
|
14223
14373
|
};
|
|
14224
14374
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
14225
14375
|
|
|
14226
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14376
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
|
|
14227
14377
|
import http2 from "http2";
|
|
14228
14378
|
import util2 from "util";
|
|
14229
14379
|
var Http2Sessions = class {
|
|
@@ -14232,6 +14382,7 @@ var Http2Sessions = class {
|
|
|
14232
14382
|
}
|
|
14233
14383
|
getSession(authority, options) {
|
|
14234
14384
|
options = Object.assign(
|
|
14385
|
+
/* @__PURE__ */ Object.create(null),
|
|
14235
14386
|
{
|
|
14236
14387
|
sessionTimeout: 1e3
|
|
14237
14388
|
},
|
|
@@ -14297,6 +14448,7 @@ var Http2Sessions = class {
|
|
|
14297
14448
|
};
|
|
14298
14449
|
}
|
|
14299
14450
|
session.once("close", removeSession);
|
|
14451
|
+
session.once("error", removeSession);
|
|
14300
14452
|
let entry = [session, options];
|
|
14301
14453
|
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
14302
14454
|
return session;
|
|
@@ -14304,7 +14456,7 @@ var Http2Sessions = class {
|
|
|
14304
14456
|
};
|
|
14305
14457
|
var Http2Sessions_default = Http2Sessions;
|
|
14306
14458
|
|
|
14307
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14459
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
|
|
14308
14460
|
var callbackify = (fn, reducer) => {
|
|
14309
14461
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
14310
14462
|
const cb = args.pop();
|
|
@@ -14319,8 +14471,15 @@ var callbackify = (fn, reducer) => {
|
|
|
14319
14471
|
};
|
|
14320
14472
|
var callbackify_default = callbackify;
|
|
14321
14473
|
|
|
14322
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14474
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
14323
14475
|
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
|
|
14476
|
+
var trimTrailingDots = (value) => {
|
|
14477
|
+
let end = value.length;
|
|
14478
|
+
while (end && value.charCodeAt(end - 1) === 46) {
|
|
14479
|
+
end--;
|
|
14480
|
+
}
|
|
14481
|
+
return end === value.length ? value : value.slice(0, end);
|
|
14482
|
+
};
|
|
14324
14483
|
var isIPv4Loopback = (host) => {
|
|
14325
14484
|
const parts = host.split(".");
|
|
14326
14485
|
if (parts.length !== 4) return false;
|
|
@@ -14353,7 +14512,7 @@ var normalizeIPAddress = (host) => {
|
|
|
14353
14512
|
if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
|
|
14354
14513
|
h = h.slice(1, -1);
|
|
14355
14514
|
}
|
|
14356
|
-
h = h
|
|
14515
|
+
h = trimTrailingDots(h);
|
|
14357
14516
|
if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
|
|
14358
14517
|
const parts = h.split(".");
|
|
14359
14518
|
if (parts.some((p) => p === "")) return host;
|
|
@@ -14465,6 +14624,40 @@ var unmapIPv4MappedIPv6 = (host) => {
|
|
|
14465
14624
|
}
|
|
14466
14625
|
return host;
|
|
14467
14626
|
};
|
|
14627
|
+
var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
|
|
14628
|
+
var ipv4ToBytes = (host) => {
|
|
14629
|
+
const parts = host.split(".");
|
|
14630
|
+
return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
|
|
14631
|
+
};
|
|
14632
|
+
var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
|
|
14633
|
+
var ipv6ToBytes = (host) => {
|
|
14634
|
+
const halves = host.split("::");
|
|
14635
|
+
if (halves.length > 2) {
|
|
14636
|
+
return null;
|
|
14637
|
+
}
|
|
14638
|
+
const groups = halves[0] ? halves[0].split(":") : [];
|
|
14639
|
+
if (halves.length === 2) {
|
|
14640
|
+
const rear = halves[1] ? halves[1].split(":") : [];
|
|
14641
|
+
const missing = 8 - groups.length - rear.length;
|
|
14642
|
+
if (missing < 1) {
|
|
14643
|
+
return null;
|
|
14644
|
+
}
|
|
14645
|
+
groups.push(...new Array(missing).fill("0"), ...rear);
|
|
14646
|
+
}
|
|
14647
|
+
if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
|
|
14648
|
+
return null;
|
|
14649
|
+
}
|
|
14650
|
+
return groups.flatMap((group) => {
|
|
14651
|
+
const value = Number.parseInt(group, 16);
|
|
14652
|
+
return [value >> 8 & 255, value & 255];
|
|
14653
|
+
});
|
|
14654
|
+
};
|
|
14655
|
+
var ipToBytes = (host) => {
|
|
14656
|
+
if (typeof host !== "string" || !host) {
|
|
14657
|
+
return null;
|
|
14658
|
+
}
|
|
14659
|
+
return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
|
|
14660
|
+
};
|
|
14468
14661
|
var normalizeNoProxyHost = (hostname) => {
|
|
14469
14662
|
if (!hostname) {
|
|
14470
14663
|
return hostname;
|
|
@@ -14472,13 +14665,90 @@ var normalizeNoProxyHost = (hostname) => {
|
|
|
14472
14665
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
14473
14666
|
hostname = hostname.slice(1, -1);
|
|
14474
14667
|
}
|
|
14475
|
-
const trimmed = hostname
|
|
14668
|
+
const trimmed = trimTrailingDots(hostname);
|
|
14476
14669
|
const ipv4 = normalizeIPAddress(trimmed);
|
|
14477
14670
|
if (ipv4 !== trimmed) {
|
|
14478
14671
|
return ipv4;
|
|
14479
14672
|
}
|
|
14480
14673
|
return unmapIPv4MappedIPv6(trimmed);
|
|
14481
14674
|
};
|
|
14675
|
+
var normalizeCidrBase = (input) => {
|
|
14676
|
+
let base = input;
|
|
14677
|
+
const startsBracket = base.charAt(0) === "[";
|
|
14678
|
+
const endsBracket = base.charAt(base.length - 1) === "]";
|
|
14679
|
+
const hasBracket = base.includes("[") || base.includes("]");
|
|
14680
|
+
if (startsBracket || endsBracket) {
|
|
14681
|
+
if (!startsBracket || !endsBracket) {
|
|
14682
|
+
return null;
|
|
14683
|
+
}
|
|
14684
|
+
base = base.slice(1, -1);
|
|
14685
|
+
if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
|
|
14686
|
+
return null;
|
|
14687
|
+
}
|
|
14688
|
+
} else if (hasBracket) {
|
|
14689
|
+
return null;
|
|
14690
|
+
}
|
|
14691
|
+
if (!base || base.charAt(base.length - 1) === ".") {
|
|
14692
|
+
return null;
|
|
14693
|
+
}
|
|
14694
|
+
const wasIPv6 = base.indexOf(":") !== -1;
|
|
14695
|
+
if (wasIPv6) {
|
|
14696
|
+
try {
|
|
14697
|
+
base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
|
|
14698
|
+
} catch (_err) {
|
|
14699
|
+
return null;
|
|
14700
|
+
}
|
|
14701
|
+
} else {
|
|
14702
|
+
base = normalizeIPAddress(base);
|
|
14703
|
+
if (!ipv4ToBytes(base)) {
|
|
14704
|
+
return null;
|
|
14705
|
+
}
|
|
14706
|
+
}
|
|
14707
|
+
return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
|
|
14708
|
+
};
|
|
14709
|
+
var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
|
|
14710
|
+
var parseCidrEntry = (entry) => {
|
|
14711
|
+
if (entry.indexOf("/") === -1) {
|
|
14712
|
+
return void 0;
|
|
14713
|
+
}
|
|
14714
|
+
const match = CIDR_ENTRY_RE.exec(entry);
|
|
14715
|
+
if (!match) {
|
|
14716
|
+
return null;
|
|
14717
|
+
}
|
|
14718
|
+
let prefix = Number(match[2]);
|
|
14719
|
+
const parsedBase = normalizeCidrBase(match[1]);
|
|
14720
|
+
if (!parsedBase) {
|
|
14721
|
+
return null;
|
|
14722
|
+
}
|
|
14723
|
+
const { normalized, wasIPv6 } = parsedBase;
|
|
14724
|
+
if (wasIPv6 && normalized.indexOf(":") === -1) {
|
|
14725
|
+
if (prefix < 96) {
|
|
14726
|
+
return null;
|
|
14727
|
+
}
|
|
14728
|
+
prefix -= 96;
|
|
14729
|
+
}
|
|
14730
|
+
const bytes = ipToBytes(normalized);
|
|
14731
|
+
if (!bytes || prefix > bytes.length * 8) {
|
|
14732
|
+
return null;
|
|
14733
|
+
}
|
|
14734
|
+
return { bytes, prefix };
|
|
14735
|
+
};
|
|
14736
|
+
var isInSubnet = (addressBytes, networkBytes, prefix) => {
|
|
14737
|
+
const fullBytes = prefix >> 3;
|
|
14738
|
+
for (let i = 0; i < fullBytes; i++) {
|
|
14739
|
+
if (addressBytes[i] !== networkBytes[i]) {
|
|
14740
|
+
return false;
|
|
14741
|
+
}
|
|
14742
|
+
}
|
|
14743
|
+
const remainingBits = prefix & 7;
|
|
14744
|
+
if (remainingBits) {
|
|
14745
|
+
const mask = 255 << 8 - remainingBits & 255;
|
|
14746
|
+
if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
|
|
14747
|
+
return false;
|
|
14748
|
+
}
|
|
14749
|
+
}
|
|
14750
|
+
return true;
|
|
14751
|
+
};
|
|
14482
14752
|
function shouldBypassProxy(location) {
|
|
14483
14753
|
let parsed;
|
|
14484
14754
|
try {
|
|
@@ -14495,6 +14765,7 @@ function shouldBypassProxy(location) {
|
|
|
14495
14765
|
}
|
|
14496
14766
|
const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
|
|
14497
14767
|
const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
|
|
14768
|
+
const hostnameBytes = ipToBytes(hostname);
|
|
14498
14769
|
return noProxy.split(/[\s,]+/).some((entry) => {
|
|
14499
14770
|
if (!entry) {
|
|
14500
14771
|
return false;
|
|
@@ -14502,6 +14773,10 @@ function shouldBypassProxy(location) {
|
|
|
14502
14773
|
if (entry === "*") {
|
|
14503
14774
|
return true;
|
|
14504
14775
|
}
|
|
14776
|
+
const cidr = parseCidrEntry(entry);
|
|
14777
|
+
if (cidr !== void 0) {
|
|
14778
|
+
return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
|
|
14779
|
+
}
|
|
14505
14780
|
let [entryHost, entryPort] = parseNoProxyEntry(entry);
|
|
14506
14781
|
entryHost = normalizeNoProxyHost(entryHost);
|
|
14507
14782
|
if (!entryHost) {
|
|
@@ -14520,7 +14795,7 @@ function shouldBypassProxy(location) {
|
|
|
14520
14795
|
});
|
|
14521
14796
|
}
|
|
14522
14797
|
|
|
14523
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14798
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
|
|
14524
14799
|
function speedometer(samplesCount, min) {
|
|
14525
14800
|
samplesCount = samplesCount || 10;
|
|
14526
14801
|
const bytes = new Array(samplesCount);
|
|
@@ -14556,7 +14831,7 @@ function speedometer(samplesCount, min) {
|
|
|
14556
14831
|
}
|
|
14557
14832
|
var speedometer_default = speedometer;
|
|
14558
14833
|
|
|
14559
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14834
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
|
|
14560
14835
|
function throttle(fn, freq) {
|
|
14561
14836
|
let timestamp = 0;
|
|
14562
14837
|
let threshold = 1e3 / freq;
|
|
@@ -14587,16 +14862,17 @@ function throttle(fn, freq) {
|
|
|
14587
14862
|
}
|
|
14588
14863
|
};
|
|
14589
14864
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
14590
|
-
|
|
14865
|
+
const flushWith = (...args) => invoke(args);
|
|
14866
|
+
return [throttled, flush, flushWith];
|
|
14591
14867
|
}
|
|
14592
14868
|
var throttle_default = throttle;
|
|
14593
14869
|
|
|
14594
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14870
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
14595
14871
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
14596
14872
|
let bytesNotified = 0;
|
|
14597
14873
|
const _speedometer = speedometer_default(50, 250);
|
|
14598
14874
|
return throttle_default((e) => {
|
|
14599
|
-
if (!e ||
|
|
14875
|
+
if (!e || !utils_default.isNumber(e.loaded)) {
|
|
14600
14876
|
return;
|
|
14601
14877
|
}
|
|
14602
14878
|
const rawLoaded = e.loaded;
|
|
@@ -14632,7 +14908,7 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
14632
14908
|
};
|
|
14633
14909
|
var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
|
|
14634
14910
|
|
|
14635
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
14911
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
14636
14912
|
var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
14637
14913
|
var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
14638
14914
|
var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
@@ -14735,7 +15011,7 @@ function estimateDataURLBufferAllocation(url2) {
|
|
|
14735
15011
|
return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
|
|
14736
15012
|
}
|
|
14737
15013
|
|
|
14738
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
15014
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
|
|
14739
15015
|
var zlibOptions = {
|
|
14740
15016
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
14741
15017
|
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
@@ -14757,6 +15033,12 @@ var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
|
14757
15033
|
var isHttps = /https:?/;
|
|
14758
15034
|
var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
|
|
14759
15035
|
var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
|
|
15036
|
+
function handleSocketError(err) {
|
|
15037
|
+
const current = this[kAxiosCurrentReq];
|
|
15038
|
+
if (current && !current.destroyed) {
|
|
15039
|
+
current.destroy(err);
|
|
15040
|
+
}
|
|
15041
|
+
}
|
|
14760
15042
|
var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
|
|
14761
15043
|
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
14762
15044
|
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
@@ -14859,10 +15141,10 @@ function isSameOriginRedirect(redirectOptions, requestDetails) {
|
|
|
14859
15141
|
return false;
|
|
14860
15142
|
}
|
|
14861
15143
|
}
|
|
14862
|
-
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
|
|
15144
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
|
|
14863
15145
|
let proxy = configProxy;
|
|
14864
15146
|
const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
|
|
14865
|
-
if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
15147
|
+
if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
|
|
14866
15148
|
const proxyUrl = getProxyForUrl(location);
|
|
14867
15149
|
if (proxyUrl) {
|
|
14868
15150
|
if (!shouldBypassProxy(location)) {
|
|
@@ -14959,9 +15241,13 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
|
|
|
14959
15241
|
redirectOptions.href,
|
|
14960
15242
|
true,
|
|
14961
15243
|
configHttpsAgent,
|
|
14962
|
-
configHttpAgent
|
|
15244
|
+
configHttpAgent,
|
|
15245
|
+
allowEnvProxy
|
|
14963
15246
|
);
|
|
14964
15247
|
};
|
|
15248
|
+
return Boolean(
|
|
15249
|
+
proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent)
|
|
15250
|
+
);
|
|
14965
15251
|
}
|
|
14966
15252
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
14967
15253
|
var wrapAsync = (asyncExecutor) => {
|
|
@@ -14986,7 +15272,7 @@ var wrapAsync = (asyncExecutor) => {
|
|
|
14986
15272
|
};
|
|
14987
15273
|
var resolveFamily = ({ address, family }) => {
|
|
14988
15274
|
if (!utils_default.isString(address)) {
|
|
14989
|
-
throw
|
|
15275
|
+
throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
14990
15276
|
}
|
|
14991
15277
|
return {
|
|
14992
15278
|
address,
|
|
@@ -14994,6 +15280,30 @@ var resolveFamily = ({ address, family }) => {
|
|
|
14994
15280
|
};
|
|
14995
15281
|
};
|
|
14996
15282
|
var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
|
|
15283
|
+
var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
|
|
15284
|
+
var normalizeLookup = (lookup) => {
|
|
15285
|
+
let normalized = normalizedLookupCache.get(lookup);
|
|
15286
|
+
if (normalized) {
|
|
15287
|
+
return normalized;
|
|
15288
|
+
}
|
|
15289
|
+
const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
15290
|
+
normalized = (hostname, opt, cb) => {
|
|
15291
|
+
callbackLookup(hostname, opt, (err, arg0, arg1) => {
|
|
15292
|
+
if (err) {
|
|
15293
|
+
return cb(err);
|
|
15294
|
+
}
|
|
15295
|
+
let addresses;
|
|
15296
|
+
try {
|
|
15297
|
+
addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
15298
|
+
} catch (error) {
|
|
15299
|
+
return cb(error);
|
|
15300
|
+
}
|
|
15301
|
+
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
15302
|
+
});
|
|
15303
|
+
};
|
|
15304
|
+
normalizedLookupCache.set(lookup, normalized);
|
|
15305
|
+
return normalized;
|
|
15306
|
+
};
|
|
14997
15307
|
var http2Transport = {
|
|
14998
15308
|
request(options, cb) {
|
|
14999
15309
|
const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
|
|
@@ -15030,6 +15340,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15030
15340
|
let family = own2("family");
|
|
15031
15341
|
let httpVersion = own2("httpVersion");
|
|
15032
15342
|
if (httpVersion === void 0) httpVersion = 1;
|
|
15343
|
+
const rawHttpVersion = httpVersion;
|
|
15033
15344
|
let http2Options = own2("http2Options");
|
|
15034
15345
|
const httpAgent = own2("httpAgent");
|
|
15035
15346
|
const httpsAgent = own2("httpsAgent");
|
|
@@ -15046,25 +15357,32 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15046
15357
|
let rejected = false;
|
|
15047
15358
|
let req;
|
|
15048
15359
|
let connectPhaseTimer;
|
|
15049
|
-
|
|
15360
|
+
try {
|
|
15361
|
+
httpVersion = +httpVersion;
|
|
15362
|
+
} catch (err) {
|
|
15363
|
+
throw new AxiosError_default(
|
|
15364
|
+
"Invalid protocol version: value is not a number",
|
|
15365
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15366
|
+
config
|
|
15367
|
+
);
|
|
15368
|
+
}
|
|
15050
15369
|
if (Number.isNaN(httpVersion)) {
|
|
15051
|
-
throw
|
|
15370
|
+
throw new AxiosError_default(
|
|
15371
|
+
`Invalid protocol version: '${rawHttpVersion}' is not a number`,
|
|
15372
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15373
|
+
config
|
|
15374
|
+
);
|
|
15052
15375
|
}
|
|
15053
15376
|
if (httpVersion !== 1 && httpVersion !== 2) {
|
|
15054
|
-
throw
|
|
15377
|
+
throw new AxiosError_default(
|
|
15378
|
+
`Unsupported protocol version '${httpVersion}'`,
|
|
15379
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
15380
|
+
config
|
|
15381
|
+
);
|
|
15055
15382
|
}
|
|
15056
15383
|
const isHttp2 = httpVersion === 2;
|
|
15057
15384
|
if (lookup) {
|
|
15058
|
-
|
|
15059
|
-
lookup = (hostname, opt, cb) => {
|
|
15060
|
-
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
15061
|
-
if (err) {
|
|
15062
|
-
return cb(err);
|
|
15063
|
-
}
|
|
15064
|
-
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
15065
|
-
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
15066
|
-
});
|
|
15067
|
-
};
|
|
15385
|
+
lookup = normalizeLookup(lookup);
|
|
15068
15386
|
}
|
|
15069
15387
|
const abortEmitter = new EventEmitter();
|
|
15070
15388
|
function abort(reason) {
|
|
@@ -15307,6 +15625,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15307
15625
|
utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
|
|
15308
15626
|
false
|
|
15309
15627
|
);
|
|
15628
|
+
if (isHttp2 && lookup) {
|
|
15629
|
+
http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, { lookup });
|
|
15630
|
+
}
|
|
15310
15631
|
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
15311
15632
|
path,
|
|
15312
15633
|
method,
|
|
@@ -15317,9 +15638,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15317
15638
|
family,
|
|
15318
15639
|
beforeRedirect: dispatchBeforeRedirect,
|
|
15319
15640
|
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
15320
|
-
http2Options
|
|
15641
|
+
http2Options,
|
|
15642
|
+
createConnection: void 0
|
|
15321
15643
|
});
|
|
15322
15644
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
15645
|
+
let proxyApplied = false;
|
|
15323
15646
|
if (socketPath) {
|
|
15324
15647
|
if (typeof socketPath !== "string") {
|
|
15325
15648
|
return reject(
|
|
@@ -15347,13 +15670,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15347
15670
|
} else {
|
|
15348
15671
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
15349
15672
|
options.port = parsed.port;
|
|
15350
|
-
setProxy(
|
|
15673
|
+
proxyApplied = setProxy(
|
|
15351
15674
|
options,
|
|
15352
15675
|
configProxy,
|
|
15353
15676
|
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
|
|
15354
15677
|
false,
|
|
15355
15678
|
httpsAgent,
|
|
15356
|
-
httpAgent
|
|
15679
|
+
httpAgent,
|
|
15680
|
+
// The HTTP/2 transport connects independently of HTTP/1 agents, so it
|
|
15681
|
+
// cannot apply either axios-resolved or agent-local environment proxies.
|
|
15682
|
+
// Explicit proxy config is still processed and rejected below.
|
|
15683
|
+
!isHttp2
|
|
15357
15684
|
);
|
|
15358
15685
|
}
|
|
15359
15686
|
let transport;
|
|
@@ -15364,6 +15691,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15364
15691
|
options.agent = isHttpsRequest ? httpsAgent : httpAgent;
|
|
15365
15692
|
}
|
|
15366
15693
|
if (isHttp2) {
|
|
15694
|
+
if (proxyApplied) {
|
|
15695
|
+
return reject(
|
|
15696
|
+
new AxiosError_default(
|
|
15697
|
+
"HTTP/2 requests with a proxy are not supported",
|
|
15698
|
+
AxiosError_default.ERR_NOT_SUPPORT,
|
|
15699
|
+
config
|
|
15700
|
+
)
|
|
15701
|
+
);
|
|
15702
|
+
}
|
|
15367
15703
|
transport = http2Transport;
|
|
15368
15704
|
} else {
|
|
15369
15705
|
const configTransport = own2("transport");
|
|
@@ -15451,7 +15787,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15451
15787
|
transformStream,
|
|
15452
15788
|
progressEventDecorator(
|
|
15453
15789
|
responseLength,
|
|
15454
|
-
progressEventReducer(
|
|
15790
|
+
progressEventReducer(
|
|
15791
|
+
asyncDecorator(onDownloadProgress, scheduleProgress),
|
|
15792
|
+
true,
|
|
15793
|
+
3
|
|
15794
|
+
)
|
|
15455
15795
|
)
|
|
15456
15796
|
)
|
|
15457
15797
|
);
|
|
@@ -15600,12 +15940,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15600
15940
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
15601
15941
|
}
|
|
15602
15942
|
if (!socket[kAxiosSocketListener]) {
|
|
15603
|
-
socket.on("error",
|
|
15604
|
-
const current = socket[kAxiosCurrentReq];
|
|
15605
|
-
if (current && !current.destroyed) {
|
|
15606
|
-
current.destroy(err);
|
|
15607
|
-
}
|
|
15608
|
-
});
|
|
15943
|
+
socket.on("error", handleSocketError);
|
|
15609
15944
|
socket[kAxiosSocketListener] = true;
|
|
15610
15945
|
}
|
|
15611
15946
|
socket[kAxiosCurrentReq] = req;
|
|
@@ -15697,7 +16032,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
15697
16032
|
});
|
|
15698
16033
|
};
|
|
15699
16034
|
|
|
15700
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16035
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
15701
16036
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
15702
16037
|
url2 = new URL(url2, platform_default.origin);
|
|
15703
16038
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -15706,7 +16041,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
15706
16041
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
15707
16042
|
) : () => true;
|
|
15708
16043
|
|
|
15709
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16044
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
|
|
15710
16045
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
15711
16046
|
// Standard browser envs support document.cookie
|
|
15712
16047
|
{
|
|
@@ -15763,7 +16098,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
15763
16098
|
}
|
|
15764
16099
|
);
|
|
15765
16100
|
|
|
15766
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16101
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
|
|
15767
16102
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
15768
16103
|
var ownEnumerableKeys = (thing) => {
|
|
15769
16104
|
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
@@ -15850,7 +16185,7 @@ function mergeConfig(config1, config2) {
|
|
|
15850
16185
|
transformResponse: defaultToConfig2,
|
|
15851
16186
|
paramsSerializer: defaultToConfig2,
|
|
15852
16187
|
timeout: defaultToConfig2,
|
|
15853
|
-
|
|
16188
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
15854
16189
|
withCredentials: defaultToConfig2,
|
|
15855
16190
|
withXSRFToken: defaultToConfig2,
|
|
15856
16191
|
adapter: defaultToConfig2,
|
|
@@ -15891,7 +16226,7 @@ function mergeConfig(config1, config2) {
|
|
|
15891
16226
|
return config;
|
|
15892
16227
|
}
|
|
15893
16228
|
|
|
15894
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16229
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
|
|
15895
16230
|
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
15896
16231
|
/%([0-9A-F]{2})/gi,
|
|
15897
16232
|
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
@@ -15927,10 +16262,11 @@ function resolveConfig(config) {
|
|
|
15927
16262
|
}
|
|
15928
16263
|
}
|
|
15929
16264
|
if (utils_default.isFormData(data)) {
|
|
16265
|
+
const getHeaders = utils_default.getSafeProp(data, "getHeaders");
|
|
15930
16266
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
|
|
15931
16267
|
headers.setContentType(void 0);
|
|
15932
|
-
} else if (utils_default.isFunction(
|
|
15933
|
-
setFormDataHeaders(headers,
|
|
16268
|
+
} else if (utils_default.isFunction(getHeaders)) {
|
|
16269
|
+
setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
|
|
15934
16270
|
}
|
|
15935
16271
|
}
|
|
15936
16272
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -15949,7 +16285,7 @@ function resolveConfig(config) {
|
|
|
15949
16285
|
}
|
|
15950
16286
|
var resolveConfig_default = resolveConfig;
|
|
15951
16287
|
|
|
15952
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16288
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
|
|
15953
16289
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
15954
16290
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
15955
16291
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -15959,7 +16295,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15959
16295
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
15960
16296
|
let onCanceled;
|
|
15961
16297
|
let uploadThrottled, downloadThrottled;
|
|
15962
|
-
let flushUpload, flushDownload;
|
|
16298
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
15963
16299
|
function done() {
|
|
15964
16300
|
flushUpload && flushUpload();
|
|
15965
16301
|
flushDownload && flushDownload();
|
|
@@ -15969,7 +16305,27 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
15969
16305
|
let request = new XMLHttpRequest();
|
|
15970
16306
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
15971
16307
|
request.timeout = _config.timeout;
|
|
15972
|
-
function onloadend() {
|
|
16308
|
+
function onloadend(event) {
|
|
16309
|
+
if (!request) {
|
|
16310
|
+
return;
|
|
16311
|
+
}
|
|
16312
|
+
if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
16313
|
+
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
16314
|
+
done();
|
|
16315
|
+
request = null;
|
|
16316
|
+
return;
|
|
16317
|
+
}
|
|
16318
|
+
try {
|
|
16319
|
+
if (event) {
|
|
16320
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
16321
|
+
} else {
|
|
16322
|
+
flushDownload && flushDownload();
|
|
16323
|
+
}
|
|
16324
|
+
} catch (err) {
|
|
16325
|
+
setTimeout(() => {
|
|
16326
|
+
throw err;
|
|
16327
|
+
});
|
|
16328
|
+
}
|
|
15973
16329
|
if (!request) {
|
|
15974
16330
|
return;
|
|
15975
16331
|
}
|
|
@@ -16057,7 +16413,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16057
16413
|
request.responseType = _config.responseType;
|
|
16058
16414
|
}
|
|
16059
16415
|
if (onDownloadProgress) {
|
|
16060
|
-
[downloadThrottled, flushDownload] = progressEventReducer(
|
|
16416
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
|
|
16417
|
+
onDownloadProgress,
|
|
16418
|
+
true
|
|
16419
|
+
);
|
|
16061
16420
|
request.addEventListener("progress", downloadThrottled);
|
|
16062
16421
|
}
|
|
16063
16422
|
if (onUploadProgress && request.upload) {
|
|
@@ -16096,7 +16455,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
16096
16455
|
});
|
|
16097
16456
|
};
|
|
16098
16457
|
|
|
16099
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16458
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
|
|
16100
16459
|
var composeSignals = (signals, timeout) => {
|
|
16101
16460
|
signals = signals ? signals.filter(Boolean) : [];
|
|
16102
16461
|
if (!timeout && !signals.length) {
|
|
@@ -16145,7 +16504,7 @@ var composeSignals = (signals, timeout) => {
|
|
|
16145
16504
|
};
|
|
16146
16505
|
var composeSignals_default = composeSignals;
|
|
16147
16506
|
|
|
16148
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16507
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
|
|
16149
16508
|
var streamChunk = function* (chunk, chunkSize) {
|
|
16150
16509
|
let len = chunk.byteLength;
|
|
16151
16510
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -16225,8 +16584,19 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
16225
16584
|
);
|
|
16226
16585
|
};
|
|
16227
16586
|
|
|
16228
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
16587
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
|
|
16229
16588
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
16589
|
+
var DEFAULT_REQUEST_OPTIONS = {
|
|
16590
|
+
cache: "default",
|
|
16591
|
+
redirect: "follow",
|
|
16592
|
+
referrer: "about:client",
|
|
16593
|
+
referrerPolicy: "",
|
|
16594
|
+
mode: "cors",
|
|
16595
|
+
integrity: "",
|
|
16596
|
+
keepalive: false,
|
|
16597
|
+
priority: "auto",
|
|
16598
|
+
window: null
|
|
16599
|
+
};
|
|
16230
16600
|
var { isFunction: isFunction2 } = utils_default;
|
|
16231
16601
|
var encodeUTF82 = (str) => encodeURIComponent(str).replace(
|
|
16232
16602
|
/%([0-9A-F]{2})/gi,
|
|
@@ -16357,7 +16727,8 @@ var factory = (env) => {
|
|
|
16357
16727
|
withCredentials = "same-origin",
|
|
16358
16728
|
fetchOptions,
|
|
16359
16729
|
maxContentLength,
|
|
16360
|
-
maxBodyLength
|
|
16730
|
+
maxBodyLength,
|
|
16731
|
+
maxRedirects
|
|
16361
16732
|
} = resolveConfig_default(config);
|
|
16362
16733
|
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
16363
16734
|
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
@@ -16487,17 +16858,44 @@ var factory = (env) => {
|
|
|
16487
16858
|
}
|
|
16488
16859
|
}
|
|
16489
16860
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
16490
|
-
const
|
|
16491
|
-
|
|
16861
|
+
const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
|
|
16862
|
+
if (safeFetchOptions) {
|
|
16863
|
+
delete safeFetchOptions.body;
|
|
16864
|
+
delete safeFetchOptions.headers;
|
|
16865
|
+
delete safeFetchOptions.method;
|
|
16866
|
+
delete safeFetchOptions.signal;
|
|
16867
|
+
delete safeFetchOptions.duplex;
|
|
16868
|
+
delete safeFetchOptions.credentials;
|
|
16869
|
+
}
|
|
16870
|
+
const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
|
|
16492
16871
|
signal: composedSignal,
|
|
16493
16872
|
method: method.toUpperCase(),
|
|
16494
16873
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
16495
16874
|
body: data,
|
|
16496
16875
|
duplex: "half",
|
|
16497
16876
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
16498
|
-
};
|
|
16877
|
+
});
|
|
16878
|
+
if (isRequestSupported) {
|
|
16879
|
+
utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
16880
|
+
if (resolvedOptions[key] === void 0) {
|
|
16881
|
+
resolvedOptions[key] = value;
|
|
16882
|
+
}
|
|
16883
|
+
});
|
|
16884
|
+
if (resolvedOptions.signal === void 0) {
|
|
16885
|
+
resolvedOptions.signal = null;
|
|
16886
|
+
}
|
|
16887
|
+
if (resolvedOptions.body === void 0) {
|
|
16888
|
+
resolvedOptions.body = null;
|
|
16889
|
+
}
|
|
16890
|
+
}
|
|
16891
|
+
if (maxRedirects === 0) {
|
|
16892
|
+
resolvedOptions.redirect = "manual";
|
|
16893
|
+
if (safeFetchOptions) {
|
|
16894
|
+
safeFetchOptions.redirect = "manual";
|
|
16895
|
+
}
|
|
16896
|
+
}
|
|
16499
16897
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
16500
|
-
let response = await (isRequestSupported ? _fetch(request,
|
|
16898
|
+
let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
|
|
16501
16899
|
const responseHeaders = AxiosHeaders_default.from(response.headers);
|
|
16502
16900
|
if (hasMaxContentLength) {
|
|
16503
16901
|
const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
@@ -16642,7 +17040,7 @@ var getFetch = (config) => {
|
|
|
16642
17040
|
};
|
|
16643
17041
|
var adapter = getFetch();
|
|
16644
17042
|
|
|
16645
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17043
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
|
|
16646
17044
|
var knownAdapters = {
|
|
16647
17045
|
http: http_default,
|
|
16648
17046
|
xhr: xhr_default,
|
|
@@ -16707,7 +17105,7 @@ var adapters_default = {
|
|
|
16707
17105
|
adapters: knownAdapters
|
|
16708
17106
|
};
|
|
16709
17107
|
|
|
16710
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17108
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
|
|
16711
17109
|
function throwIfCancellationRequested(config) {
|
|
16712
17110
|
if (config.cancelToken) {
|
|
16713
17111
|
config.cancelToken.throwIfRequested();
|
|
@@ -16716,9 +17114,10 @@ function throwIfCancellationRequested(config) {
|
|
|
16716
17114
|
throw new CanceledError_default(null, config);
|
|
16717
17115
|
}
|
|
16718
17116
|
}
|
|
16719
|
-
function dispatchRequest(
|
|
17117
|
+
function dispatchRequest(_config) {
|
|
17118
|
+
const config = utils_default.toSafeFlatObject(_config);
|
|
16720
17119
|
throwIfCancellationRequested(config);
|
|
16721
|
-
config.headers = AxiosHeaders_default.from(config
|
|
17120
|
+
config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
|
|
16722
17121
|
config.data = transformData.call(config, config.transformRequest);
|
|
16723
17122
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
16724
17123
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
@@ -16758,7 +17157,7 @@ function dispatchRequest(config) {
|
|
|
16758
17157
|
);
|
|
16759
17158
|
}
|
|
16760
17159
|
|
|
16761
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17160
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
|
|
16762
17161
|
var validators = {};
|
|
16763
17162
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
16764
17163
|
validators[type] = function validator(thing) {
|
|
@@ -16825,7 +17224,7 @@ var validator_default = {
|
|
|
16825
17224
|
validators
|
|
16826
17225
|
};
|
|
16827
17226
|
|
|
16828
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17227
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
|
|
16829
17228
|
var validators2 = validator_default.validators;
|
|
16830
17229
|
var Axios = class {
|
|
16831
17230
|
constructor(instanceConfig) {
|
|
@@ -16848,16 +17247,15 @@ var Axios = class {
|
|
|
16848
17247
|
return await this._request(configOrUrl, config);
|
|
16849
17248
|
} catch (err) {
|
|
16850
17249
|
if (err instanceof Error) {
|
|
16851
|
-
let dummy = {};
|
|
16852
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
16853
|
-
const stack = (() => {
|
|
16854
|
-
if (!dummy.stack) {
|
|
16855
|
-
return "";
|
|
16856
|
-
}
|
|
16857
|
-
const firstNewlineIndex = dummy.stack.indexOf("\n");
|
|
16858
|
-
return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
|
|
16859
|
-
})();
|
|
16860
17250
|
try {
|
|
17251
|
+
let dummy = {};
|
|
17252
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
17253
|
+
const dummyStack = dummy.stack;
|
|
17254
|
+
let stack = "";
|
|
17255
|
+
if (typeof dummyStack === "string") {
|
|
17256
|
+
const firstNewlineIndex = dummyStack.indexOf("\n");
|
|
17257
|
+
stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
|
|
17258
|
+
}
|
|
16861
17259
|
if (!err.stack) {
|
|
16862
17260
|
err.stack = stack;
|
|
16863
17261
|
} else if (stack) {
|
|
@@ -16927,9 +17325,9 @@ var Axios = class {
|
|
|
16927
17325
|
},
|
|
16928
17326
|
true
|
|
16929
17327
|
);
|
|
16930
|
-
config.method = (config
|
|
17328
|
+
config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
16931
17329
|
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
16932
|
-
headers && utils_default.forEach(
|
|
17330
|
+
headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
|
|
16933
17331
|
delete headers[method];
|
|
16934
17332
|
});
|
|
16935
17333
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
@@ -17044,7 +17442,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
|
|
|
17044
17442
|
});
|
|
17045
17443
|
var Axios_default = Axios;
|
|
17046
17444
|
|
|
17047
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17445
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
|
|
17048
17446
|
var CancelToken = class _CancelToken {
|
|
17049
17447
|
constructor(executor) {
|
|
17050
17448
|
if (typeof executor !== "function") {
|
|
@@ -17142,19 +17540,19 @@ var CancelToken = class _CancelToken {
|
|
|
17142
17540
|
};
|
|
17143
17541
|
var CancelToken_default = CancelToken;
|
|
17144
17542
|
|
|
17145
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17543
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
|
|
17146
17544
|
function spread(callback) {
|
|
17147
17545
|
return function wrap(arr) {
|
|
17148
17546
|
return callback.apply(null, arr);
|
|
17149
17547
|
};
|
|
17150
17548
|
}
|
|
17151
17549
|
|
|
17152
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17550
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
|
|
17153
17551
|
function isAxiosError(payload) {
|
|
17154
17552
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
17155
17553
|
}
|
|
17156
17554
|
|
|
17157
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17555
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
17158
17556
|
var HttpStatusCode = {
|
|
17159
17557
|
Continue: 100,
|
|
17160
17558
|
SwitchingProtocols: 101,
|
|
@@ -17192,14 +17590,22 @@ var HttpStatusCode = {
|
|
|
17192
17590
|
Gone: 410,
|
|
17193
17591
|
LengthRequired: 411,
|
|
17194
17592
|
PreconditionFailed: 412,
|
|
17593
|
+
/**
|
|
17594
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
17595
|
+
*/
|
|
17195
17596
|
PayloadTooLarge: 413,
|
|
17597
|
+
ContentTooLarge: 413,
|
|
17196
17598
|
UriTooLong: 414,
|
|
17197
17599
|
UnsupportedMediaType: 415,
|
|
17198
17600
|
RangeNotSatisfiable: 416,
|
|
17199
17601
|
ExpectationFailed: 417,
|
|
17200
17602
|
ImATeapot: 418,
|
|
17201
17603
|
MisdirectedRequest: 421,
|
|
17604
|
+
/**
|
|
17605
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
17606
|
+
*/
|
|
17202
17607
|
UnprocessableEntity: 422,
|
|
17608
|
+
UnprocessableContent: 422,
|
|
17203
17609
|
Locked: 423,
|
|
17204
17610
|
FailedDependency: 424,
|
|
17205
17611
|
TooEarly: 425,
|
|
@@ -17228,11 +17634,13 @@ var HttpStatusCode = {
|
|
|
17228
17634
|
InvalidSslCertificate: 526
|
|
17229
17635
|
};
|
|
17230
17636
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
17231
|
-
HttpStatusCode[value]
|
|
17637
|
+
if (HttpStatusCode[value] === void 0) {
|
|
17638
|
+
HttpStatusCode[value] = key;
|
|
17639
|
+
}
|
|
17232
17640
|
});
|
|
17233
17641
|
var HttpStatusCode_default = HttpStatusCode;
|
|
17234
17642
|
|
|
17235
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17643
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
|
|
17236
17644
|
function createInstance(defaultConfig) {
|
|
17237
17645
|
const context = new Axios_default(defaultConfig);
|
|
17238
17646
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -17265,7 +17673,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
17265
17673
|
axios.default = axios;
|
|
17266
17674
|
var axios_default = axios;
|
|
17267
17675
|
|
|
17268
|
-
// ../../node_modules/.pnpm/axios@1.
|
|
17676
|
+
// ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
|
|
17269
17677
|
var {
|
|
17270
17678
|
Axios: Axios2,
|
|
17271
17679
|
AxiosError: AxiosError2,
|
|
@@ -17286,18 +17694,18 @@ var {
|
|
|
17286
17694
|
create
|
|
17287
17695
|
} = axios_default;
|
|
17288
17696
|
|
|
17289
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17697
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
|
|
17290
17698
|
var import_debug2 = __toESM(require_src(), 1);
|
|
17291
17699
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
17292
17700
|
|
|
17293
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17701
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
|
|
17294
17702
|
var import_debug = __toESM(require_src(), 1);
|
|
17295
17703
|
import { EventEmitter as EventEmitter2 } from "events";
|
|
17296
17704
|
import fs from "fs";
|
|
17297
17705
|
import net from "net";
|
|
17298
17706
|
import tls from "tls";
|
|
17299
17707
|
|
|
17300
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17708
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
|
|
17301
17709
|
import { Transform } from "stream";
|
|
17302
17710
|
var HeaderHostTransformer = class extends Transform {
|
|
17303
17711
|
host;
|
|
@@ -17315,7 +17723,7 @@ var HeaderHostTransformer = class extends Transform {
|
|
|
17315
17723
|
}
|
|
17316
17724
|
};
|
|
17317
17725
|
|
|
17318
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17726
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
|
|
17319
17727
|
var log = (0, import_debug.default)("pipenet:client");
|
|
17320
17728
|
var TunnelCluster = class extends EventEmitter2 {
|
|
17321
17729
|
opts;
|
|
@@ -17415,7 +17823,7 @@ var TunnelCluster = class extends EventEmitter2 {
|
|
|
17415
17823
|
}
|
|
17416
17824
|
};
|
|
17417
17825
|
|
|
17418
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17826
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
|
|
17419
17827
|
var log2 = (0, import_debug2.default)("pipenet:client");
|
|
17420
17828
|
var Tunnel = class extends EventEmitter3 {
|
|
17421
17829
|
cachedUrl;
|
|
@@ -17563,7 +17971,7 @@ var Tunnel = class extends EventEmitter3 {
|
|
|
17563
17971
|
}
|
|
17564
17972
|
};
|
|
17565
17973
|
|
|
17566
|
-
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=
|
|
17974
|
+
// ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
|
|
17567
17975
|
function pipenet(arg1, arg2, arg3) {
|
|
17568
17976
|
const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
|
|
17569
17977
|
const callback = typeof arg1 === "object" ? arg2 : arg3;
|