@modern-js/upgrade-generator 3.7.75 → 3.7.76
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.js +1967 -1543
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1418,7 +1418,7 @@ var require_templates = __commonJS({
|
|
|
1418
1418
|
["e", "\x1B"],
|
|
1419
1419
|
["a", "\x07"]
|
|
1420
1420
|
]);
|
|
1421
|
-
function
|
|
1421
|
+
function unescape(c) {
|
|
1422
1422
|
const u = c[0] === "u";
|
|
1423
1423
|
const bracket = c[1] === "{";
|
|
1424
1424
|
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
@@ -1438,7 +1438,7 @@ var require_templates = __commonJS({
|
|
|
1438
1438
|
if (!Number.isNaN(number)) {
|
|
1439
1439
|
results.push(number);
|
|
1440
1440
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
1441
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ?
|
|
1441
|
+
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
|
|
1442
1442
|
} else {
|
|
1443
1443
|
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
1444
1444
|
}
|
|
@@ -1485,7 +1485,7 @@ var require_templates = __commonJS({
|
|
|
1485
1485
|
let chunk = [];
|
|
1486
1486
|
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
1487
1487
|
if (escapeCharacter) {
|
|
1488
|
-
chunk.push(
|
|
1488
|
+
chunk.push(unescape(escapeCharacter));
|
|
1489
1489
|
} else if (style) {
|
|
1490
1490
|
const string = chunk.join("");
|
|
1491
1491
|
chunk = [];
|
|
@@ -1806,9 +1806,9 @@ var require_ms = __commonJS({
|
|
|
1806
1806
|
}
|
|
1807
1807
|
});
|
|
1808
1808
|
|
|
1809
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
1809
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js
|
|
1810
1810
|
var require_common = __commonJS({
|
|
1811
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
1811
|
+
"../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
|
|
1812
1812
|
"use strict";
|
|
1813
1813
|
function setup(env) {
|
|
1814
1814
|
createDebug.debug = createDebug;
|
|
@@ -1970,9 +1970,9 @@ var require_common = __commonJS({
|
|
|
1970
1970
|
}
|
|
1971
1971
|
});
|
|
1972
1972
|
|
|
1973
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
1973
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js
|
|
1974
1974
|
var require_browser = __commonJS({
|
|
1975
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
1975
|
+
"../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
|
|
1976
1976
|
"use strict";
|
|
1977
1977
|
exports.formatArgs = formatArgs;
|
|
1978
1978
|
exports.save = save;
|
|
@@ -2141,9 +2141,118 @@ var require_browser = __commonJS({
|
|
|
2141
2141
|
}
|
|
2142
2142
|
});
|
|
2143
2143
|
|
|
2144
|
-
// ../../../../node_modules/.pnpm/
|
|
2144
|
+
// ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
|
|
2145
|
+
var require_has_flag2 = __commonJS({
|
|
2146
|
+
"../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
2147
|
+
"use strict";
|
|
2148
|
+
module2.exports = (flag, argv) => {
|
|
2149
|
+
argv = argv || process.argv;
|
|
2150
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
2151
|
+
const pos = argv.indexOf(prefix + flag);
|
|
2152
|
+
const terminatorPos = argv.indexOf("--");
|
|
2153
|
+
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
2154
|
+
};
|
|
2155
|
+
}
|
|
2156
|
+
});
|
|
2157
|
+
|
|
2158
|
+
// ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
2159
|
+
var require_supports_color2 = __commonJS({
|
|
2160
|
+
"../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
2161
|
+
"use strict";
|
|
2162
|
+
var os2 = require("os");
|
|
2163
|
+
var hasFlag = require_has_flag2();
|
|
2164
|
+
var env = process.env;
|
|
2165
|
+
var forceColor;
|
|
2166
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
2167
|
+
forceColor = false;
|
|
2168
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
2169
|
+
forceColor = true;
|
|
2170
|
+
}
|
|
2171
|
+
if ("FORCE_COLOR" in env) {
|
|
2172
|
+
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
2173
|
+
}
|
|
2174
|
+
function translateLevel(level) {
|
|
2175
|
+
if (level === 0) {
|
|
2176
|
+
return false;
|
|
2177
|
+
}
|
|
2178
|
+
return {
|
|
2179
|
+
level,
|
|
2180
|
+
hasBasic: true,
|
|
2181
|
+
has256: level >= 2,
|
|
2182
|
+
has16m: level >= 3
|
|
2183
|
+
};
|
|
2184
|
+
}
|
|
2185
|
+
function supportsColor(stream4) {
|
|
2186
|
+
if (forceColor === false) {
|
|
2187
|
+
return 0;
|
|
2188
|
+
}
|
|
2189
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
2190
|
+
return 3;
|
|
2191
|
+
}
|
|
2192
|
+
if (hasFlag("color=256")) {
|
|
2193
|
+
return 2;
|
|
2194
|
+
}
|
|
2195
|
+
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
|
2196
|
+
return 0;
|
|
2197
|
+
}
|
|
2198
|
+
const min = forceColor ? 1 : 0;
|
|
2199
|
+
if (process.platform === "win32") {
|
|
2200
|
+
const osRelease = os2.release().split(".");
|
|
2201
|
+
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
2202
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2203
|
+
}
|
|
2204
|
+
return 1;
|
|
2205
|
+
}
|
|
2206
|
+
if ("CI" in env) {
|
|
2207
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
2208
|
+
return 1;
|
|
2209
|
+
}
|
|
2210
|
+
return min;
|
|
2211
|
+
}
|
|
2212
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
2213
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2214
|
+
}
|
|
2215
|
+
if (env.COLORTERM === "truecolor") {
|
|
2216
|
+
return 3;
|
|
2217
|
+
}
|
|
2218
|
+
if ("TERM_PROGRAM" in env) {
|
|
2219
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2220
|
+
switch (env.TERM_PROGRAM) {
|
|
2221
|
+
case "iTerm.app":
|
|
2222
|
+
return version >= 3 ? 3 : 2;
|
|
2223
|
+
case "Apple_Terminal":
|
|
2224
|
+
return 2;
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
2228
|
+
return 2;
|
|
2229
|
+
}
|
|
2230
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
2231
|
+
return 1;
|
|
2232
|
+
}
|
|
2233
|
+
if ("COLORTERM" in env) {
|
|
2234
|
+
return 1;
|
|
2235
|
+
}
|
|
2236
|
+
if (env.TERM === "dumb") {
|
|
2237
|
+
return min;
|
|
2238
|
+
}
|
|
2239
|
+
return min;
|
|
2240
|
+
}
|
|
2241
|
+
function getSupportLevel(stream4) {
|
|
2242
|
+
const level = supportsColor(stream4);
|
|
2243
|
+
return translateLevel(level);
|
|
2244
|
+
}
|
|
2245
|
+
module2.exports = {
|
|
2246
|
+
supportsColor: getSupportLevel,
|
|
2247
|
+
stdout: getSupportLevel(process.stdout),
|
|
2248
|
+
stderr: getSupportLevel(process.stderr)
|
|
2249
|
+
};
|
|
2250
|
+
}
|
|
2251
|
+
});
|
|
2252
|
+
|
|
2253
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
2145
2254
|
var require_node = __commonJS({
|
|
2146
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
2255
|
+
"../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
|
|
2147
2256
|
"use strict";
|
|
2148
2257
|
var tty = require("tty");
|
|
2149
2258
|
var util3 = require("util");
|
|
@@ -2160,7 +2269,7 @@ var require_node = __commonJS({
|
|
|
2160
2269
|
);
|
|
2161
2270
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
2162
2271
|
try {
|
|
2163
|
-
const supportsColor =
|
|
2272
|
+
const supportsColor = require_supports_color2();
|
|
2164
2273
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2165
2274
|
exports.colors = [
|
|
2166
2275
|
20,
|
|
@@ -2316,9 +2425,9 @@ var require_node = __commonJS({
|
|
|
2316
2425
|
}
|
|
2317
2426
|
});
|
|
2318
2427
|
|
|
2319
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
2428
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js
|
|
2320
2429
|
var require_src = __commonJS({
|
|
2321
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
2430
|
+
"../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
|
|
2322
2431
|
"use strict";
|
|
2323
2432
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
2324
2433
|
module2.exports = require_browser();
|
|
@@ -18383,9 +18492,9 @@ var require_get_proto = __commonJS({
|
|
|
18383
18492
|
}
|
|
18384
18493
|
});
|
|
18385
18494
|
|
|
18386
|
-
// ../../../../node_modules/.pnpm/hasown@2.0.
|
|
18495
|
+
// ../../../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
|
|
18387
18496
|
var require_hasown = __commonJS({
|
|
18388
|
-
"../../../../node_modules/.pnpm/hasown@2.0.
|
|
18497
|
+
"../../../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module2) {
|
|
18389
18498
|
"use strict";
|
|
18390
18499
|
var call = Function.prototype.call;
|
|
18391
18500
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -19100,9 +19209,459 @@ var require_form_data = __commonJS({
|
|
|
19100
19209
|
}
|
|
19101
19210
|
});
|
|
19102
19211
|
|
|
19103
|
-
// ../../../../node_modules/.pnpm/
|
|
19212
|
+
// ../../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
|
|
19213
|
+
var require_promisify = __commonJS({
|
|
19214
|
+
"../../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js"(exports) {
|
|
19215
|
+
"use strict";
|
|
19216
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19217
|
+
function promisify(fn) {
|
|
19218
|
+
return function(req, opts) {
|
|
19219
|
+
return new Promise((resolve, reject) => {
|
|
19220
|
+
fn.call(this, req, opts, (err, rtn) => {
|
|
19221
|
+
if (err) {
|
|
19222
|
+
reject(err);
|
|
19223
|
+
} else {
|
|
19224
|
+
resolve(rtn);
|
|
19225
|
+
}
|
|
19226
|
+
});
|
|
19227
|
+
});
|
|
19228
|
+
};
|
|
19229
|
+
}
|
|
19230
|
+
exports.default = promisify;
|
|
19231
|
+
}
|
|
19232
|
+
});
|
|
19233
|
+
|
|
19234
|
+
// ../../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
|
|
19235
|
+
var require_src2 = __commonJS({
|
|
19236
|
+
"../../../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module2) {
|
|
19237
|
+
"use strict";
|
|
19238
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
19239
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
19240
|
+
};
|
|
19241
|
+
var events_1 = require("events");
|
|
19242
|
+
var debug_1 = __importDefault(require_src());
|
|
19243
|
+
var promisify_1 = __importDefault(require_promisify());
|
|
19244
|
+
var debug = debug_1.default("agent-base");
|
|
19245
|
+
function isAgent(v) {
|
|
19246
|
+
return Boolean(v) && typeof v.addRequest === "function";
|
|
19247
|
+
}
|
|
19248
|
+
function isSecureEndpoint() {
|
|
19249
|
+
const { stack } = new Error();
|
|
19250
|
+
if (typeof stack !== "string")
|
|
19251
|
+
return false;
|
|
19252
|
+
return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
|
|
19253
|
+
}
|
|
19254
|
+
function createAgent(callback, opts) {
|
|
19255
|
+
return new createAgent.Agent(callback, opts);
|
|
19256
|
+
}
|
|
19257
|
+
(function(createAgent2) {
|
|
19258
|
+
class Agent extends events_1.EventEmitter {
|
|
19259
|
+
constructor(callback, _opts) {
|
|
19260
|
+
super();
|
|
19261
|
+
let opts = _opts;
|
|
19262
|
+
if (typeof callback === "function") {
|
|
19263
|
+
this.callback = callback;
|
|
19264
|
+
} else if (callback) {
|
|
19265
|
+
opts = callback;
|
|
19266
|
+
}
|
|
19267
|
+
this.timeout = null;
|
|
19268
|
+
if (opts && typeof opts.timeout === "number") {
|
|
19269
|
+
this.timeout = opts.timeout;
|
|
19270
|
+
}
|
|
19271
|
+
this.maxFreeSockets = 1;
|
|
19272
|
+
this.maxSockets = 1;
|
|
19273
|
+
this.maxTotalSockets = Infinity;
|
|
19274
|
+
this.sockets = {};
|
|
19275
|
+
this.freeSockets = {};
|
|
19276
|
+
this.requests = {};
|
|
19277
|
+
this.options = {};
|
|
19278
|
+
}
|
|
19279
|
+
get defaultPort() {
|
|
19280
|
+
if (typeof this.explicitDefaultPort === "number") {
|
|
19281
|
+
return this.explicitDefaultPort;
|
|
19282
|
+
}
|
|
19283
|
+
return isSecureEndpoint() ? 443 : 80;
|
|
19284
|
+
}
|
|
19285
|
+
set defaultPort(v) {
|
|
19286
|
+
this.explicitDefaultPort = v;
|
|
19287
|
+
}
|
|
19288
|
+
get protocol() {
|
|
19289
|
+
if (typeof this.explicitProtocol === "string") {
|
|
19290
|
+
return this.explicitProtocol;
|
|
19291
|
+
}
|
|
19292
|
+
return isSecureEndpoint() ? "https:" : "http:";
|
|
19293
|
+
}
|
|
19294
|
+
set protocol(v) {
|
|
19295
|
+
this.explicitProtocol = v;
|
|
19296
|
+
}
|
|
19297
|
+
callback(req, opts, fn) {
|
|
19298
|
+
throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
|
|
19299
|
+
}
|
|
19300
|
+
/**
|
|
19301
|
+
* Called by node-core's "_http_client.js" module when creating
|
|
19302
|
+
* a new HTTP request with this Agent instance.
|
|
19303
|
+
*
|
|
19304
|
+
* @api public
|
|
19305
|
+
*/
|
|
19306
|
+
addRequest(req, _opts) {
|
|
19307
|
+
const opts = Object.assign({}, _opts);
|
|
19308
|
+
if (typeof opts.secureEndpoint !== "boolean") {
|
|
19309
|
+
opts.secureEndpoint = isSecureEndpoint();
|
|
19310
|
+
}
|
|
19311
|
+
if (opts.host == null) {
|
|
19312
|
+
opts.host = "localhost";
|
|
19313
|
+
}
|
|
19314
|
+
if (opts.port == null) {
|
|
19315
|
+
opts.port = opts.secureEndpoint ? 443 : 80;
|
|
19316
|
+
}
|
|
19317
|
+
if (opts.protocol == null) {
|
|
19318
|
+
opts.protocol = opts.secureEndpoint ? "https:" : "http:";
|
|
19319
|
+
}
|
|
19320
|
+
if (opts.host && opts.path) {
|
|
19321
|
+
delete opts.path;
|
|
19322
|
+
}
|
|
19323
|
+
delete opts.agent;
|
|
19324
|
+
delete opts.hostname;
|
|
19325
|
+
delete opts._defaultAgent;
|
|
19326
|
+
delete opts.defaultPort;
|
|
19327
|
+
delete opts.createConnection;
|
|
19328
|
+
req._last = true;
|
|
19329
|
+
req.shouldKeepAlive = false;
|
|
19330
|
+
let timedOut = false;
|
|
19331
|
+
let timeoutId = null;
|
|
19332
|
+
const timeoutMs = opts.timeout || this.timeout;
|
|
19333
|
+
const onerror = (err) => {
|
|
19334
|
+
if (req._hadError)
|
|
19335
|
+
return;
|
|
19336
|
+
req.emit("error", err);
|
|
19337
|
+
req._hadError = true;
|
|
19338
|
+
};
|
|
19339
|
+
const ontimeout = () => {
|
|
19340
|
+
timeoutId = null;
|
|
19341
|
+
timedOut = true;
|
|
19342
|
+
const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
|
|
19343
|
+
err.code = "ETIMEOUT";
|
|
19344
|
+
onerror(err);
|
|
19345
|
+
};
|
|
19346
|
+
const callbackError = (err) => {
|
|
19347
|
+
if (timedOut)
|
|
19348
|
+
return;
|
|
19349
|
+
if (timeoutId !== null) {
|
|
19350
|
+
clearTimeout(timeoutId);
|
|
19351
|
+
timeoutId = null;
|
|
19352
|
+
}
|
|
19353
|
+
onerror(err);
|
|
19354
|
+
};
|
|
19355
|
+
const onsocket = (socket) => {
|
|
19356
|
+
if (timedOut)
|
|
19357
|
+
return;
|
|
19358
|
+
if (timeoutId != null) {
|
|
19359
|
+
clearTimeout(timeoutId);
|
|
19360
|
+
timeoutId = null;
|
|
19361
|
+
}
|
|
19362
|
+
if (isAgent(socket)) {
|
|
19363
|
+
debug("Callback returned another Agent instance %o", socket.constructor.name);
|
|
19364
|
+
socket.addRequest(req, opts);
|
|
19365
|
+
return;
|
|
19366
|
+
}
|
|
19367
|
+
if (socket) {
|
|
19368
|
+
socket.once("free", () => {
|
|
19369
|
+
this.freeSocket(socket, opts);
|
|
19370
|
+
});
|
|
19371
|
+
req.onSocket(socket);
|
|
19372
|
+
return;
|
|
19373
|
+
}
|
|
19374
|
+
const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
|
|
19375
|
+
onerror(err);
|
|
19376
|
+
};
|
|
19377
|
+
if (typeof this.callback !== "function") {
|
|
19378
|
+
onerror(new Error("`callback` is not defined"));
|
|
19379
|
+
return;
|
|
19380
|
+
}
|
|
19381
|
+
if (!this.promisifiedCallback) {
|
|
19382
|
+
if (this.callback.length >= 3) {
|
|
19383
|
+
debug("Converting legacy callback function to promise");
|
|
19384
|
+
this.promisifiedCallback = promisify_1.default(this.callback);
|
|
19385
|
+
} else {
|
|
19386
|
+
this.promisifiedCallback = this.callback;
|
|
19387
|
+
}
|
|
19388
|
+
}
|
|
19389
|
+
if (typeof timeoutMs === "number" && timeoutMs > 0) {
|
|
19390
|
+
timeoutId = setTimeout(ontimeout, timeoutMs);
|
|
19391
|
+
}
|
|
19392
|
+
if ("port" in opts && typeof opts.port !== "number") {
|
|
19393
|
+
opts.port = Number(opts.port);
|
|
19394
|
+
}
|
|
19395
|
+
try {
|
|
19396
|
+
debug("Resolving socket for %o request: %o", opts.protocol, `${req.method} ${req.path}`);
|
|
19397
|
+
Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
|
|
19398
|
+
} catch (err) {
|
|
19399
|
+
Promise.reject(err).catch(callbackError);
|
|
19400
|
+
}
|
|
19401
|
+
}
|
|
19402
|
+
freeSocket(socket, opts) {
|
|
19403
|
+
debug("Freeing socket %o %o", socket.constructor.name, opts);
|
|
19404
|
+
socket.destroy();
|
|
19405
|
+
}
|
|
19406
|
+
destroy() {
|
|
19407
|
+
debug("Destroying agent %o", this.constructor.name);
|
|
19408
|
+
}
|
|
19409
|
+
}
|
|
19410
|
+
createAgent2.Agent = Agent;
|
|
19411
|
+
createAgent2.prototype = createAgent2.Agent.prototype;
|
|
19412
|
+
})(createAgent || (createAgent = {}));
|
|
19413
|
+
module2.exports = createAgent;
|
|
19414
|
+
}
|
|
19415
|
+
});
|
|
19416
|
+
|
|
19417
|
+
// ../../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
19418
|
+
var require_parse_proxy_response = __commonJS({
|
|
19419
|
+
"../../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
|
|
19420
|
+
"use strict";
|
|
19421
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
19422
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
19423
|
+
};
|
|
19424
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19425
|
+
var debug_1 = __importDefault(require_src());
|
|
19426
|
+
var debug = debug_1.default("https-proxy-agent:parse-proxy-response");
|
|
19427
|
+
function parseProxyResponse(socket) {
|
|
19428
|
+
return new Promise((resolve, reject) => {
|
|
19429
|
+
let buffersLength = 0;
|
|
19430
|
+
const buffers = [];
|
|
19431
|
+
function read() {
|
|
19432
|
+
const b = socket.read();
|
|
19433
|
+
if (b)
|
|
19434
|
+
ondata(b);
|
|
19435
|
+
else
|
|
19436
|
+
socket.once("readable", read);
|
|
19437
|
+
}
|
|
19438
|
+
function cleanup() {
|
|
19439
|
+
socket.removeListener("end", onend);
|
|
19440
|
+
socket.removeListener("error", onerror);
|
|
19441
|
+
socket.removeListener("close", onclose);
|
|
19442
|
+
socket.removeListener("readable", read);
|
|
19443
|
+
}
|
|
19444
|
+
function onclose(err) {
|
|
19445
|
+
debug("onclose had error %o", err);
|
|
19446
|
+
}
|
|
19447
|
+
function onend() {
|
|
19448
|
+
debug("onend");
|
|
19449
|
+
}
|
|
19450
|
+
function onerror(err) {
|
|
19451
|
+
cleanup();
|
|
19452
|
+
debug("onerror %o", err);
|
|
19453
|
+
reject(err);
|
|
19454
|
+
}
|
|
19455
|
+
function ondata(b) {
|
|
19456
|
+
buffers.push(b);
|
|
19457
|
+
buffersLength += b.length;
|
|
19458
|
+
const buffered = Buffer.concat(buffers, buffersLength);
|
|
19459
|
+
const endOfHeaders = buffered.indexOf("\r\n\r\n");
|
|
19460
|
+
if (endOfHeaders === -1) {
|
|
19461
|
+
debug("have not received end of HTTP headers yet...");
|
|
19462
|
+
read();
|
|
19463
|
+
return;
|
|
19464
|
+
}
|
|
19465
|
+
const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
|
|
19466
|
+
const statusCode = +firstLine.split(" ")[1];
|
|
19467
|
+
debug("got proxy server response: %o", firstLine);
|
|
19468
|
+
resolve({
|
|
19469
|
+
statusCode,
|
|
19470
|
+
buffered
|
|
19471
|
+
});
|
|
19472
|
+
}
|
|
19473
|
+
socket.on("error", onerror);
|
|
19474
|
+
socket.on("close", onclose);
|
|
19475
|
+
socket.on("end", onend);
|
|
19476
|
+
read();
|
|
19477
|
+
});
|
|
19478
|
+
}
|
|
19479
|
+
exports.default = parseProxyResponse;
|
|
19480
|
+
}
|
|
19481
|
+
});
|
|
19482
|
+
|
|
19483
|
+
// ../../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
|
|
19484
|
+
var require_agent = __commonJS({
|
|
19485
|
+
"../../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
|
|
19486
|
+
"use strict";
|
|
19487
|
+
var __awaiter4 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
19488
|
+
function adopt(value) {
|
|
19489
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
19490
|
+
resolve(value);
|
|
19491
|
+
});
|
|
19492
|
+
}
|
|
19493
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
19494
|
+
function fulfilled(value) {
|
|
19495
|
+
try {
|
|
19496
|
+
step(generator.next(value));
|
|
19497
|
+
} catch (e) {
|
|
19498
|
+
reject(e);
|
|
19499
|
+
}
|
|
19500
|
+
}
|
|
19501
|
+
function rejected(value) {
|
|
19502
|
+
try {
|
|
19503
|
+
step(generator["throw"](value));
|
|
19504
|
+
} catch (e) {
|
|
19505
|
+
reject(e);
|
|
19506
|
+
}
|
|
19507
|
+
}
|
|
19508
|
+
function step(result) {
|
|
19509
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
19510
|
+
}
|
|
19511
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19512
|
+
});
|
|
19513
|
+
};
|
|
19514
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
19515
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
19516
|
+
};
|
|
19517
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19518
|
+
var net_1 = __importDefault(require("net"));
|
|
19519
|
+
var tls_1 = __importDefault(require("tls"));
|
|
19520
|
+
var url_1 = __importDefault(require("url"));
|
|
19521
|
+
var assert_1 = __importDefault(require("assert"));
|
|
19522
|
+
var debug_1 = __importDefault(require_src());
|
|
19523
|
+
var agent_base_1 = require_src2();
|
|
19524
|
+
var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
|
|
19525
|
+
var debug = debug_1.default("https-proxy-agent:agent");
|
|
19526
|
+
var HttpsProxyAgent2 = class extends agent_base_1.Agent {
|
|
19527
|
+
constructor(_opts) {
|
|
19528
|
+
let opts;
|
|
19529
|
+
if (typeof _opts === "string") {
|
|
19530
|
+
opts = url_1.default.parse(_opts);
|
|
19531
|
+
} else {
|
|
19532
|
+
opts = _opts;
|
|
19533
|
+
}
|
|
19534
|
+
if (!opts) {
|
|
19535
|
+
throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");
|
|
19536
|
+
}
|
|
19537
|
+
debug("creating new HttpsProxyAgent instance: %o", opts);
|
|
19538
|
+
super(opts);
|
|
19539
|
+
const proxy = Object.assign({}, opts);
|
|
19540
|
+
this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
|
|
19541
|
+
proxy.host = proxy.hostname || proxy.host;
|
|
19542
|
+
if (typeof proxy.port === "string") {
|
|
19543
|
+
proxy.port = parseInt(proxy.port, 10);
|
|
19544
|
+
}
|
|
19545
|
+
if (!proxy.port && proxy.host) {
|
|
19546
|
+
proxy.port = this.secureProxy ? 443 : 80;
|
|
19547
|
+
}
|
|
19548
|
+
if (this.secureProxy && !("ALPNProtocols" in proxy)) {
|
|
19549
|
+
proxy.ALPNProtocols = ["http 1.1"];
|
|
19550
|
+
}
|
|
19551
|
+
if (proxy.host && proxy.path) {
|
|
19552
|
+
delete proxy.path;
|
|
19553
|
+
delete proxy.pathname;
|
|
19554
|
+
}
|
|
19555
|
+
this.proxy = proxy;
|
|
19556
|
+
}
|
|
19557
|
+
/**
|
|
19558
|
+
* Called when the node-core HTTP client library is creating a
|
|
19559
|
+
* new HTTP request.
|
|
19560
|
+
*
|
|
19561
|
+
* @api protected
|
|
19562
|
+
*/
|
|
19563
|
+
callback(req, opts) {
|
|
19564
|
+
return __awaiter4(this, void 0, void 0, function* () {
|
|
19565
|
+
const { proxy, secureProxy } = this;
|
|
19566
|
+
let socket;
|
|
19567
|
+
if (secureProxy) {
|
|
19568
|
+
debug("Creating `tls.Socket`: %o", proxy);
|
|
19569
|
+
socket = tls_1.default.connect(proxy);
|
|
19570
|
+
} else {
|
|
19571
|
+
debug("Creating `net.Socket`: %o", proxy);
|
|
19572
|
+
socket = net_1.default.connect(proxy);
|
|
19573
|
+
}
|
|
19574
|
+
const headers = Object.assign({}, proxy.headers);
|
|
19575
|
+
const hostname = `${opts.host}:${opts.port}`;
|
|
19576
|
+
let payload = `CONNECT ${hostname} HTTP/1.1\r
|
|
19577
|
+
`;
|
|
19578
|
+
if (proxy.auth) {
|
|
19579
|
+
headers["Proxy-Authorization"] = `Basic ${Buffer.from(proxy.auth).toString("base64")}`;
|
|
19580
|
+
}
|
|
19581
|
+
let { host, port, secureEndpoint } = opts;
|
|
19582
|
+
if (!isDefaultPort(port, secureEndpoint)) {
|
|
19583
|
+
host += `:${port}`;
|
|
19584
|
+
}
|
|
19585
|
+
headers.Host = host;
|
|
19586
|
+
headers.Connection = "close";
|
|
19587
|
+
for (const name of Object.keys(headers)) {
|
|
19588
|
+
payload += `${name}: ${headers[name]}\r
|
|
19589
|
+
`;
|
|
19590
|
+
}
|
|
19591
|
+
const proxyResponsePromise = parse_proxy_response_1.default(socket);
|
|
19592
|
+
socket.write(`${payload}\r
|
|
19593
|
+
`);
|
|
19594
|
+
const { statusCode, buffered } = yield proxyResponsePromise;
|
|
19595
|
+
if (statusCode === 200) {
|
|
19596
|
+
req.once("socket", resume);
|
|
19597
|
+
if (opts.secureEndpoint) {
|
|
19598
|
+
debug("Upgrading socket connection to TLS");
|
|
19599
|
+
const servername = opts.servername || opts.host;
|
|
19600
|
+
return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, "host", "hostname", "path", "port")), {
|
|
19601
|
+
socket,
|
|
19602
|
+
servername
|
|
19603
|
+
}));
|
|
19604
|
+
}
|
|
19605
|
+
return socket;
|
|
19606
|
+
}
|
|
19607
|
+
socket.destroy();
|
|
19608
|
+
const fakeSocket = new net_1.default.Socket({ writable: false });
|
|
19609
|
+
fakeSocket.readable = true;
|
|
19610
|
+
req.once("socket", (s) => {
|
|
19611
|
+
debug("replaying proxy buffer for failed request");
|
|
19612
|
+
assert_1.default(s.listenerCount("data") > 0);
|
|
19613
|
+
s.push(buffered);
|
|
19614
|
+
s.push(null);
|
|
19615
|
+
});
|
|
19616
|
+
return fakeSocket;
|
|
19617
|
+
});
|
|
19618
|
+
}
|
|
19619
|
+
};
|
|
19620
|
+
exports.default = HttpsProxyAgent2;
|
|
19621
|
+
function resume(socket) {
|
|
19622
|
+
socket.resume();
|
|
19623
|
+
}
|
|
19624
|
+
function isDefaultPort(port, secure) {
|
|
19625
|
+
return Boolean(!secure && port === 80 || secure && port === 443);
|
|
19626
|
+
}
|
|
19627
|
+
function isHTTPS(protocol) {
|
|
19628
|
+
return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
|
|
19629
|
+
}
|
|
19630
|
+
function omit(obj, ...keys) {
|
|
19631
|
+
const ret = {};
|
|
19632
|
+
let key;
|
|
19633
|
+
for (key in obj) {
|
|
19634
|
+
if (!keys.includes(key)) {
|
|
19635
|
+
ret[key] = obj[key];
|
|
19636
|
+
}
|
|
19637
|
+
}
|
|
19638
|
+
return ret;
|
|
19639
|
+
}
|
|
19640
|
+
}
|
|
19641
|
+
});
|
|
19642
|
+
|
|
19643
|
+
// ../../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
|
|
19644
|
+
var require_dist = __commonJS({
|
|
19645
|
+
"../../../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module2) {
|
|
19646
|
+
"use strict";
|
|
19647
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
19648
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
19649
|
+
};
|
|
19650
|
+
var agent_1 = __importDefault(require_agent());
|
|
19651
|
+
function createHttpsProxyAgent(opts) {
|
|
19652
|
+
return new agent_1.default(opts);
|
|
19653
|
+
}
|
|
19654
|
+
(function(createHttpsProxyAgent2) {
|
|
19655
|
+
createHttpsProxyAgent2.HttpsProxyAgent = agent_1.default;
|
|
19656
|
+
createHttpsProxyAgent2.prototype = agent_1.default.prototype;
|
|
19657
|
+
})(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
|
|
19658
|
+
module2.exports = createHttpsProxyAgent;
|
|
19659
|
+
}
|
|
19660
|
+
});
|
|
19661
|
+
|
|
19662
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/debug.js
|
|
19104
19663
|
var require_debug2 = __commonJS({
|
|
19105
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.
|
|
19664
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/debug.js"(exports, module2) {
|
|
19106
19665
|
"use strict";
|
|
19107
19666
|
var debug;
|
|
19108
19667
|
module2.exports = function() {
|
|
@@ -19121,9 +19680,9 @@ var require_debug2 = __commonJS({
|
|
|
19121
19680
|
}
|
|
19122
19681
|
});
|
|
19123
19682
|
|
|
19124
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.
|
|
19683
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/index.js
|
|
19125
19684
|
var require_follow_redirects = __commonJS({
|
|
19126
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.
|
|
19685
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.3.7/node_modules/follow-redirects/index.js"(exports, module2) {
|
|
19127
19686
|
"use strict";
|
|
19128
19687
|
var url2 = require("url");
|
|
19129
19688
|
var URL2 = url2.URL;
|
|
@@ -19146,6 +19705,11 @@ var require_follow_redirects = __commonJS({
|
|
|
19146
19705
|
} catch (error) {
|
|
19147
19706
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
19148
19707
|
}
|
|
19708
|
+
var sensitiveHeaders = [
|
|
19709
|
+
"Authorization",
|
|
19710
|
+
"Proxy-Authorization",
|
|
19711
|
+
"Cookie"
|
|
19712
|
+
];
|
|
19149
19713
|
var preservedUrlFields = [
|
|
19150
19714
|
"auth",
|
|
19151
19715
|
"host",
|
|
@@ -19210,6 +19774,7 @@ var require_follow_redirects = __commonJS({
|
|
|
19210
19774
|
self3.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
19211
19775
|
}
|
|
19212
19776
|
};
|
|
19777
|
+
this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
|
|
19213
19778
|
this._performRequest();
|
|
19214
19779
|
}
|
|
19215
19780
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
@@ -19347,6 +19912,9 @@ var require_follow_redirects = __commonJS({
|
|
|
19347
19912
|
if (!options.headers) {
|
|
19348
19913
|
options.headers = {};
|
|
19349
19914
|
}
|
|
19915
|
+
if (!isArray5(options.sensitiveHeaders)) {
|
|
19916
|
+
options.sensitiveHeaders = [];
|
|
19917
|
+
}
|
|
19350
19918
|
if (options.host) {
|
|
19351
19919
|
if (!options.hostname) {
|
|
19352
19920
|
options.hostname = options.host;
|
|
@@ -19452,7 +20020,7 @@ var require_follow_redirects = __commonJS({
|
|
|
19452
20020
|
this._isRedirect = true;
|
|
19453
20021
|
spreadUrlObject(redirectUrl, this._options);
|
|
19454
20022
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
19455
|
-
removeMatchingHeaders(
|
|
20023
|
+
removeMatchingHeaders(this._headerFilter, this._options.headers);
|
|
19456
20024
|
}
|
|
19457
20025
|
if (isFunction4(beforeRedirect)) {
|
|
19458
20026
|
var responseDetails = {
|
|
@@ -19601,6 +20169,9 @@ var require_follow_redirects = __commonJS({
|
|
|
19601
20169
|
var dot = subdomain.length - domain.length - 1;
|
|
19602
20170
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
19603
20171
|
}
|
|
20172
|
+
function isArray5(value) {
|
|
20173
|
+
return value instanceof Array;
|
|
20174
|
+
}
|
|
19604
20175
|
function isString5(value) {
|
|
19605
20176
|
return typeof value === "string" || value instanceof String;
|
|
19606
20177
|
}
|
|
@@ -19613,6 +20184,9 @@ var require_follow_redirects = __commonJS({
|
|
|
19613
20184
|
function isURL(value) {
|
|
19614
20185
|
return URL2 && value instanceof URL2;
|
|
19615
20186
|
}
|
|
20187
|
+
function escapeRegex(regex2) {
|
|
20188
|
+
return regex2.replace(/[\]\\/()*+?.$]/g, "\\$&");
|
|
20189
|
+
}
|
|
19616
20190
|
module2.exports = wrap({ http: http3, https: https2 });
|
|
19617
20191
|
module2.exports.wrap = wrap;
|
|
19618
20192
|
}
|
|
@@ -27013,7 +27587,7 @@ var require_handlebars_runtime = __commonJS({
|
|
|
27013
27587
|
var runtime = _interopRequireWildcard(_handlebarsRuntime);
|
|
27014
27588
|
var _handlebarsNoConflict = require_no_conflict();
|
|
27015
27589
|
var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
|
|
27016
|
-
function
|
|
27590
|
+
function create2() {
|
|
27017
27591
|
var hb = new base.HandlebarsEnvironment();
|
|
27018
27592
|
Utils.extend(hb, base);
|
|
27019
27593
|
hb.SafeString = _handlebarsSafeString2["default"];
|
|
@@ -27026,8 +27600,8 @@ var require_handlebars_runtime = __commonJS({
|
|
|
27026
27600
|
};
|
|
27027
27601
|
return hb;
|
|
27028
27602
|
}
|
|
27029
|
-
var inst =
|
|
27030
|
-
inst.create =
|
|
27603
|
+
var inst = create2();
|
|
27604
|
+
inst.create = create2;
|
|
27031
27605
|
_handlebarsNoConflict2["default"](inst);
|
|
27032
27606
|
inst["default"] = inst;
|
|
27033
27607
|
exports["default"] = inst;
|
|
@@ -31006,7 +31580,7 @@ var require_javascript_compiler = __commonJS({
|
|
|
31006
31580
|
}
|
|
31007
31581
|
this.resolvePath("data", parts, 0, true, strict);
|
|
31008
31582
|
},
|
|
31009
|
-
resolvePath: function
|
|
31583
|
+
resolvePath: function resolvePath2(type, parts, i, falsy, strict) {
|
|
31010
31584
|
var _this2 = this;
|
|
31011
31585
|
if (this.options.strict || this.options.assumeObjects) {
|
|
31012
31586
|
this.push(strictLookup(this.options.strict && strict, this, parts, i, type));
|
|
@@ -31557,7 +32131,7 @@ var require_handlebars = __commonJS({
|
|
|
31557
32131
|
var _handlebarsNoConflict = require_no_conflict();
|
|
31558
32132
|
var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);
|
|
31559
32133
|
var _create = _handlebarsRuntime2["default"].create;
|
|
31560
|
-
function
|
|
32134
|
+
function create2() {
|
|
31561
32135
|
var hb = _create();
|
|
31562
32136
|
hb.compile = function(input, options) {
|
|
31563
32137
|
return _handlebarsCompilerCompiler.compile(input, options, hb);
|
|
@@ -31573,8 +32147,8 @@ var require_handlebars = __commonJS({
|
|
|
31573
32147
|
hb.parseWithoutProcessing = _handlebarsCompilerBase.parseWithoutProcessing;
|
|
31574
32148
|
return hb;
|
|
31575
32149
|
}
|
|
31576
|
-
var inst =
|
|
31577
|
-
inst.create =
|
|
32150
|
+
var inst = create2();
|
|
32151
|
+
inst.create = create2;
|
|
31578
32152
|
_handlebarsNoConflict2["default"](inst);
|
|
31579
32153
|
inst.Visitor = _handlebarsCompilerVisitor2["default"];
|
|
31580
32154
|
inst["default"] = inst;
|
|
@@ -64776,7 +65350,7 @@ var require_util3 = __commonJS({
|
|
|
64776
65350
|
});
|
|
64777
65351
|
|
|
64778
65352
|
// ../../../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js
|
|
64779
|
-
var
|
|
65353
|
+
var require_src3 = __commonJS({
|
|
64780
65354
|
"../../../../node_modules/.pnpm/array-timsort@1.0.3/node_modules/array-timsort/src/index.js"(exports, module2) {
|
|
64781
65355
|
"use strict";
|
|
64782
65356
|
var DEFAULT_MIN_MERGE = 32;
|
|
@@ -65652,7 +66226,7 @@ var require_array = __commonJS({
|
|
|
65652
66226
|
"../../../../node_modules/.pnpm/comment-json@4.2.3/node_modules/comment-json/src/array.js"(exports, module2) {
|
|
65653
66227
|
"use strict";
|
|
65654
66228
|
var { isArray: isArray5 } = require_util3();
|
|
65655
|
-
var { sort } =
|
|
66229
|
+
var { sort } = require_src3();
|
|
65656
66230
|
var {
|
|
65657
66231
|
SYMBOL_PREFIXES,
|
|
65658
66232
|
UNDEFINED,
|
|
@@ -66353,7 +66927,7 @@ var require_stringify = __commonJS({
|
|
|
66353
66927
|
});
|
|
66354
66928
|
|
|
66355
66929
|
// ../../../../node_modules/.pnpm/comment-json@4.2.3/node_modules/comment-json/src/index.js
|
|
66356
|
-
var
|
|
66930
|
+
var require_src4 = __commonJS({
|
|
66357
66931
|
"../../../../node_modules/.pnpm/comment-json@4.2.3/node_modules/comment-json/src/index.js"(exports, module2) {
|
|
66358
66932
|
"use strict";
|
|
66359
66933
|
var { parse: parse4, tokenize } = require_parse3();
|
|
@@ -77791,63 +78365,113 @@ var require_lib5 = __commonJS({
|
|
|
77791
78365
|
}
|
|
77792
78366
|
});
|
|
77793
78367
|
|
|
77794
|
-
// ../../../../node_modules/.pnpm/
|
|
78368
|
+
// ../../../../node_modules/.pnpm/os-tmpdir@1.0.2/node_modules/os-tmpdir/index.js
|
|
78369
|
+
var require_os_tmpdir = __commonJS({
|
|
78370
|
+
"../../../../node_modules/.pnpm/os-tmpdir@1.0.2/node_modules/os-tmpdir/index.js"(exports, module2) {
|
|
78371
|
+
"use strict";
|
|
78372
|
+
var isWindows = process.platform === "win32";
|
|
78373
|
+
var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
|
|
78374
|
+
module2.exports = function() {
|
|
78375
|
+
var path5;
|
|
78376
|
+
if (isWindows) {
|
|
78377
|
+
path5 = process.env.TEMP || process.env.TMP || (process.env.SystemRoot || process.env.windir) + "\\temp";
|
|
78378
|
+
} else {
|
|
78379
|
+
path5 = process.env.TMPDIR || process.env.TMP || process.env.TEMP || "/tmp";
|
|
78380
|
+
}
|
|
78381
|
+
if (trailingSlashRe.test(path5)) {
|
|
78382
|
+
path5 = path5.slice(0, -1);
|
|
78383
|
+
}
|
|
78384
|
+
return path5;
|
|
78385
|
+
};
|
|
78386
|
+
}
|
|
78387
|
+
});
|
|
78388
|
+
|
|
78389
|
+
// ../../../../node_modules/.pnpm/tmp@0.0.33/node_modules/tmp/lib/tmp.js
|
|
77795
78390
|
var require_tmp = __commonJS({
|
|
77796
|
-
"../../../../node_modules/.pnpm/tmp@0.
|
|
78391
|
+
"../../../../node_modules/.pnpm/tmp@0.0.33/node_modules/tmp/lib/tmp.js"(exports, module2) {
|
|
77797
78392
|
"use strict";
|
|
77798
78393
|
var fs2 = require("fs");
|
|
77799
|
-
var os2 = require("os");
|
|
77800
78394
|
var path5 = require("path");
|
|
77801
78395
|
var crypto2 = require("crypto");
|
|
77802
|
-
var
|
|
78396
|
+
var osTmpDir = require_os_tmpdir();
|
|
78397
|
+
var _c = process.binding("constants");
|
|
78398
|
+
var tmpDir = osTmpDir();
|
|
77803
78399
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
77804
78400
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
77805
78401
|
var DEFAULT_TRIES = 3;
|
|
77806
78402
|
var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
|
|
77807
|
-
var IS_WIN32 = os2.platform() === "win32";
|
|
77808
78403
|
var EBADF = _c.EBADF || _c.os.errno.EBADF;
|
|
77809
78404
|
var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
|
|
77810
78405
|
var DIR_MODE = 448;
|
|
77811
78406
|
var FILE_MODE = 384;
|
|
77812
|
-
var EXIT = "exit";
|
|
77813
78407
|
var _removeObjects = [];
|
|
77814
|
-
var FN_RMDIR_SYNC = fs2.rmdirSync.bind(fs2);
|
|
77815
78408
|
var _gracefulCleanup = false;
|
|
77816
|
-
|
|
77817
|
-
|
|
78409
|
+
var _uncaughtException = false;
|
|
78410
|
+
function _randomChars(howMany) {
|
|
78411
|
+
var value = [], rnd = null;
|
|
78412
|
+
try {
|
|
78413
|
+
rnd = crypto2.randomBytes(howMany);
|
|
78414
|
+
} catch (e) {
|
|
78415
|
+
rnd = crypto2.pseudoRandomBytes(howMany);
|
|
78416
|
+
}
|
|
78417
|
+
for (var i = 0; i < howMany; i++) {
|
|
78418
|
+
value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
|
|
78419
|
+
}
|
|
78420
|
+
return value.join("");
|
|
78421
|
+
}
|
|
78422
|
+
function _isUndefined(obj) {
|
|
78423
|
+
return typeof obj === "undefined";
|
|
78424
|
+
}
|
|
78425
|
+
function _parseArguments(options, callback) {
|
|
78426
|
+
if (typeof options == "function") {
|
|
78427
|
+
return [callback || {}, options];
|
|
78428
|
+
}
|
|
78429
|
+
if (_isUndefined(options)) {
|
|
78430
|
+
return [{}, callback];
|
|
78431
|
+
}
|
|
78432
|
+
return [options, callback];
|
|
77818
78433
|
}
|
|
77819
|
-
function
|
|
77820
|
-
|
|
78434
|
+
function _generateTmpName(opts) {
|
|
78435
|
+
if (opts.name) {
|
|
78436
|
+
return path5.join(opts.dir || tmpDir, opts.name);
|
|
78437
|
+
}
|
|
78438
|
+
if (opts.template) {
|
|
78439
|
+
return opts.template.replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
78440
|
+
}
|
|
78441
|
+
const name = [
|
|
78442
|
+
opts.prefix || "tmp-",
|
|
78443
|
+
process.pid,
|
|
78444
|
+
_randomChars(12),
|
|
78445
|
+
opts.postfix || ""
|
|
78446
|
+
].join("");
|
|
78447
|
+
return path5.join(opts.dir || tmpDir, name);
|
|
77821
78448
|
}
|
|
77822
78449
|
function tmpName(options, callback) {
|
|
77823
|
-
|
|
77824
|
-
|
|
77825
|
-
|
|
77826
|
-
|
|
77827
|
-
|
|
77828
|
-
|
|
77829
|
-
|
|
77830
|
-
|
|
77831
|
-
|
|
77832
|
-
|
|
77833
|
-
|
|
77834
|
-
|
|
77835
|
-
|
|
77836
|
-
|
|
77837
|
-
|
|
77838
|
-
|
|
77839
|
-
} catch (err2) {
|
|
77840
|
-
cb(err2);
|
|
77841
|
-
}
|
|
77842
|
-
})();
|
|
77843
|
-
});
|
|
78450
|
+
var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
|
|
78451
|
+
if (isNaN(tries) || tries < 0)
|
|
78452
|
+
return cb(new Error("Invalid tries"));
|
|
78453
|
+
if (opts.template && !opts.template.match(TEMPLATE_PATTERN))
|
|
78454
|
+
return cb(new Error("Invalid template provided"));
|
|
78455
|
+
(function _getUniqueName() {
|
|
78456
|
+
const name = _generateTmpName(opts);
|
|
78457
|
+
fs2.stat(name, function(err) {
|
|
78458
|
+
if (!err) {
|
|
78459
|
+
if (tries-- > 0)
|
|
78460
|
+
return _getUniqueName();
|
|
78461
|
+
return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
|
|
78462
|
+
}
|
|
78463
|
+
cb(null, name);
|
|
78464
|
+
});
|
|
78465
|
+
})();
|
|
77844
78466
|
}
|
|
77845
78467
|
function tmpNameSync(options) {
|
|
77846
|
-
|
|
77847
|
-
|
|
77848
|
-
|
|
78468
|
+
var args = _parseArguments(options), opts = args[0], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
|
|
78469
|
+
if (isNaN(tries) || tries < 0)
|
|
78470
|
+
throw new Error("Invalid tries");
|
|
78471
|
+
if (opts.template && !opts.template.match(TEMPLATE_PATTERN))
|
|
78472
|
+
throw new Error("Invalid template provided");
|
|
77849
78473
|
do {
|
|
77850
|
-
const name = _generateTmpName(
|
|
78474
|
+
const name = _generateTmpName(opts);
|
|
77851
78475
|
try {
|
|
77852
78476
|
fs2.statSync(name);
|
|
77853
78477
|
} catch (e) {
|
|
@@ -77857,7 +78481,8 @@ var require_tmp = __commonJS({
|
|
|
77857
78481
|
throw new Error("Could not get a unique tmp filename, max tries reached");
|
|
77858
78482
|
}
|
|
77859
78483
|
function file(options, callback) {
|
|
77860
|
-
|
|
78484
|
+
var args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
78485
|
+
opts.postfix = _isUndefined(opts.postfix) ? ".tmp" : opts.postfix;
|
|
77861
78486
|
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
77862
78487
|
if (err)
|
|
77863
78488
|
return cb(err);
|
|
@@ -77865,21 +78490,33 @@ var require_tmp = __commonJS({
|
|
|
77865
78490
|
if (err2)
|
|
77866
78491
|
return cb(err2);
|
|
77867
78492
|
if (opts.discardDescriptor) {
|
|
77868
|
-
return fs2.close(fd, function _discardCallback(
|
|
77869
|
-
|
|
78493
|
+
return fs2.close(fd, function _discardCallback(err3) {
|
|
78494
|
+
if (err3) {
|
|
78495
|
+
try {
|
|
78496
|
+
fs2.unlinkSync(name);
|
|
78497
|
+
} catch (e) {
|
|
78498
|
+
if (!isENOENT(e)) {
|
|
78499
|
+
err3 = e;
|
|
78500
|
+
}
|
|
78501
|
+
}
|
|
78502
|
+
return cb(err3);
|
|
78503
|
+
}
|
|
78504
|
+
cb(null, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts));
|
|
77870
78505
|
});
|
|
77871
|
-
} else {
|
|
77872
|
-
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
|
77873
|
-
cb(null, name, fd, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts, false));
|
|
77874
78506
|
}
|
|
78507
|
+
if (opts.detachDescriptor) {
|
|
78508
|
+
return cb(null, name, fd, _prepareTmpFileRemoveCallback(name, -1, opts));
|
|
78509
|
+
}
|
|
78510
|
+
cb(null, name, fd, _prepareTmpFileRemoveCallback(name, fd, opts));
|
|
77875
78511
|
});
|
|
77876
78512
|
});
|
|
77877
78513
|
}
|
|
77878
78514
|
function fileSync(options) {
|
|
77879
|
-
|
|
78515
|
+
var args = _parseArguments(options), opts = args[0];
|
|
78516
|
+
opts.postfix = opts.postfix || ".tmp";
|
|
77880
78517
|
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
|
77881
78518
|
const name = tmpNameSync(opts);
|
|
77882
|
-
|
|
78519
|
+
var fd = fs2.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
|
|
77883
78520
|
if (opts.discardDescriptor) {
|
|
77884
78521
|
fs2.closeSync(fd);
|
|
77885
78522
|
fd = void 0;
|
|
@@ -77887,281 +78524,137 @@ var require_tmp = __commonJS({
|
|
|
77887
78524
|
return {
|
|
77888
78525
|
name,
|
|
77889
78526
|
fd,
|
|
77890
|
-
removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts
|
|
78527
|
+
removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts)
|
|
77891
78528
|
};
|
|
77892
78529
|
}
|
|
78530
|
+
function _rmdirRecursiveSync(root) {
|
|
78531
|
+
const dirs = [root];
|
|
78532
|
+
do {
|
|
78533
|
+
var dir2 = dirs.pop(), deferred = false, files = fs2.readdirSync(dir2);
|
|
78534
|
+
for (var i = 0, length = files.length; i < length; i++) {
|
|
78535
|
+
var file2 = path5.join(dir2, files[i]), stat = fs2.lstatSync(file2);
|
|
78536
|
+
if (stat.isDirectory()) {
|
|
78537
|
+
if (!deferred) {
|
|
78538
|
+
deferred = true;
|
|
78539
|
+
dirs.push(dir2);
|
|
78540
|
+
}
|
|
78541
|
+
dirs.push(file2);
|
|
78542
|
+
} else {
|
|
78543
|
+
fs2.unlinkSync(file2);
|
|
78544
|
+
}
|
|
78545
|
+
}
|
|
78546
|
+
if (!deferred) {
|
|
78547
|
+
fs2.rmdirSync(dir2);
|
|
78548
|
+
}
|
|
78549
|
+
} while (dirs.length !== 0);
|
|
78550
|
+
}
|
|
77893
78551
|
function dir(options, callback) {
|
|
77894
|
-
|
|
78552
|
+
var args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
77895
78553
|
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
77896
78554
|
if (err)
|
|
77897
78555
|
return cb(err);
|
|
77898
78556
|
fs2.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
|
|
77899
78557
|
if (err2)
|
|
77900
78558
|
return cb(err2);
|
|
77901
|
-
cb(null, name, _prepareTmpDirRemoveCallback(name, opts
|
|
78559
|
+
cb(null, name, _prepareTmpDirRemoveCallback(name, opts));
|
|
77902
78560
|
});
|
|
77903
78561
|
});
|
|
77904
78562
|
}
|
|
77905
78563
|
function dirSync(options) {
|
|
77906
|
-
|
|
78564
|
+
var args = _parseArguments(options), opts = args[0];
|
|
77907
78565
|
const name = tmpNameSync(opts);
|
|
77908
78566
|
fs2.mkdirSync(name, opts.mode || DIR_MODE);
|
|
77909
78567
|
return {
|
|
77910
78568
|
name,
|
|
77911
|
-
removeCallback: _prepareTmpDirRemoveCallback(name, opts
|
|
78569
|
+
removeCallback: _prepareTmpDirRemoveCallback(name, opts)
|
|
77912
78570
|
};
|
|
77913
78571
|
}
|
|
77914
|
-
function
|
|
77915
|
-
const
|
|
77916
|
-
|
|
77917
|
-
|
|
78572
|
+
function _prepareTmpFileRemoveCallback(name, fd, opts) {
|
|
78573
|
+
const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
|
|
78574
|
+
try {
|
|
78575
|
+
if (0 <= fdPath[0]) {
|
|
78576
|
+
fs2.closeSync(fdPath[0]);
|
|
78577
|
+
}
|
|
78578
|
+
} catch (e) {
|
|
78579
|
+
if (!isEBADF(e) && !isENOENT(e)) {
|
|
78580
|
+
throw e;
|
|
78581
|
+
}
|
|
77918
78582
|
}
|
|
77919
|
-
next();
|
|
77920
|
-
};
|
|
77921
|
-
if (0 <= fdPath[0])
|
|
77922
|
-
fs2.close(fdPath[0], function() {
|
|
77923
|
-
fs2.unlink(fdPath[1], _handler);
|
|
77924
|
-
});
|
|
77925
|
-
else
|
|
77926
|
-
fs2.unlink(fdPath[1], _handler);
|
|
77927
|
-
}
|
|
77928
|
-
function _removeFileSync(fdPath) {
|
|
77929
|
-
let rethrownException = null;
|
|
77930
|
-
try {
|
|
77931
|
-
if (0 <= fdPath[0])
|
|
77932
|
-
fs2.closeSync(fdPath[0]);
|
|
77933
|
-
} catch (e) {
|
|
77934
|
-
if (!_isEBADF(e) && !_isENOENT(e))
|
|
77935
|
-
throw e;
|
|
77936
|
-
} finally {
|
|
77937
78583
|
try {
|
|
77938
78584
|
fs2.unlinkSync(fdPath[1]);
|
|
77939
78585
|
} catch (e) {
|
|
77940
|
-
if (!
|
|
77941
|
-
|
|
78586
|
+
if (!isENOENT(e)) {
|
|
78587
|
+
throw e;
|
|
78588
|
+
}
|
|
77942
78589
|
}
|
|
78590
|
+
}, [fd, name]);
|
|
78591
|
+
if (!opts.keep) {
|
|
78592
|
+
_removeObjects.unshift(removeCallback);
|
|
77943
78593
|
}
|
|
77944
|
-
|
|
77945
|
-
throw rethrownException;
|
|
77946
|
-
}
|
|
77947
|
-
}
|
|
77948
|
-
function _prepareTmpFileRemoveCallback(name, fd, opts, sync) {
|
|
77949
|
-
const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name], sync);
|
|
77950
|
-
const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], sync, removeCallbackSync);
|
|
77951
|
-
if (!opts.keep)
|
|
77952
|
-
_removeObjects.unshift(removeCallbackSync);
|
|
77953
|
-
return sync ? removeCallbackSync : removeCallback;
|
|
78594
|
+
return removeCallback;
|
|
77954
78595
|
}
|
|
77955
|
-
function _prepareTmpDirRemoveCallback(name, opts
|
|
77956
|
-
const removeFunction = opts.unsafeCleanup ?
|
|
77957
|
-
const
|
|
77958
|
-
|
|
77959
|
-
|
|
77960
|
-
|
|
77961
|
-
|
|
77962
|
-
return sync ? removeCallbackSync : removeCallback;
|
|
78596
|
+
function _prepareTmpDirRemoveCallback(name, opts) {
|
|
78597
|
+
const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs2.rmdirSync.bind(fs2);
|
|
78598
|
+
const removeCallback = _prepareRemoveCallback(removeFunction, name);
|
|
78599
|
+
if (!opts.keep) {
|
|
78600
|
+
_removeObjects.unshift(removeCallback);
|
|
78601
|
+
}
|
|
78602
|
+
return removeCallback;
|
|
77963
78603
|
}
|
|
77964
|
-
function _prepareRemoveCallback(removeFunction,
|
|
77965
|
-
|
|
78604
|
+
function _prepareRemoveCallback(removeFunction, arg) {
|
|
78605
|
+
var called = false;
|
|
77966
78606
|
return function _cleanupCallback(next) {
|
|
77967
78607
|
if (!called) {
|
|
77968
|
-
const
|
|
77969
|
-
|
|
77970
|
-
if (index >= 0)
|
|
78608
|
+
const index = _removeObjects.indexOf(_cleanupCallback);
|
|
78609
|
+
if (index >= 0) {
|
|
77971
78610
|
_removeObjects.splice(index, 1);
|
|
77972
|
-
called = true;
|
|
77973
|
-
if (sync || removeFunction === FN_RMDIR_SYNC || removeFunction === FN_RIMRAF_SYNC) {
|
|
77974
|
-
return removeFunction(fileOrDirName);
|
|
77975
|
-
} else {
|
|
77976
|
-
return removeFunction(fileOrDirName, next || function() {
|
|
77977
|
-
});
|
|
77978
78611
|
}
|
|
78612
|
+
called = true;
|
|
78613
|
+
removeFunction(arg);
|
|
77979
78614
|
}
|
|
78615
|
+
if (next)
|
|
78616
|
+
next(null);
|
|
77980
78617
|
};
|
|
77981
78618
|
}
|
|
77982
78619
|
function _garbageCollector() {
|
|
77983
|
-
if (!_gracefulCleanup)
|
|
78620
|
+
if (_uncaughtException && !_gracefulCleanup) {
|
|
77984
78621
|
return;
|
|
78622
|
+
}
|
|
77985
78623
|
while (_removeObjects.length) {
|
|
77986
78624
|
try {
|
|
77987
|
-
_removeObjects[0]();
|
|
78625
|
+
_removeObjects[0].call(null);
|
|
77988
78626
|
} catch (e) {
|
|
77989
78627
|
}
|
|
77990
78628
|
}
|
|
77991
78629
|
}
|
|
77992
|
-
function
|
|
77993
|
-
|
|
77994
|
-
try {
|
|
77995
|
-
rnd = crypto2.randomBytes(howMany);
|
|
77996
|
-
} catch (e) {
|
|
77997
|
-
rnd = crypto2.pseudoRandomBytes(howMany);
|
|
77998
|
-
}
|
|
77999
|
-
for (let i = 0; i < howMany; i++) {
|
|
78000
|
-
value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]);
|
|
78001
|
-
}
|
|
78002
|
-
return value.join("");
|
|
78003
|
-
}
|
|
78004
|
-
function _isUndefined(obj) {
|
|
78005
|
-
return typeof obj === "undefined";
|
|
78006
|
-
}
|
|
78007
|
-
function _parseArguments(options, callback) {
|
|
78008
|
-
if (typeof options === "function") {
|
|
78009
|
-
return [{}, options];
|
|
78010
|
-
}
|
|
78011
|
-
if (_isUndefined(options)) {
|
|
78012
|
-
return [{}, callback];
|
|
78013
|
-
}
|
|
78014
|
-
const actualOptions = {};
|
|
78015
|
-
for (const key of Object.getOwnPropertyNames(options)) {
|
|
78016
|
-
actualOptions[key] = options[key];
|
|
78017
|
-
}
|
|
78018
|
-
return [actualOptions, callback];
|
|
78019
|
-
}
|
|
78020
|
-
function _resolvePath(name, tmpDir, cb) {
|
|
78021
|
-
const pathToResolve = path5.isAbsolute(name) ? name : path5.join(tmpDir, name);
|
|
78022
|
-
fs2.stat(pathToResolve, function(err) {
|
|
78023
|
-
if (err) {
|
|
78024
|
-
fs2.realpath(path5.dirname(pathToResolve), function(err2, parentDir) {
|
|
78025
|
-
if (err2)
|
|
78026
|
-
return cb(err2);
|
|
78027
|
-
cb(null, path5.join(parentDir, path5.basename(pathToResolve)));
|
|
78028
|
-
});
|
|
78029
|
-
} else {
|
|
78030
|
-
fs2.realpath(pathToResolve, cb);
|
|
78031
|
-
}
|
|
78032
|
-
});
|
|
78033
|
-
}
|
|
78034
|
-
function _resolvePathSync(name, tmpDir) {
|
|
78035
|
-
const pathToResolve = path5.isAbsolute(name) ? name : path5.join(tmpDir, name);
|
|
78036
|
-
try {
|
|
78037
|
-
fs2.statSync(pathToResolve);
|
|
78038
|
-
return fs2.realpathSync(pathToResolve);
|
|
78039
|
-
} catch (_err) {
|
|
78040
|
-
const parentDir = fs2.realpathSync(path5.dirname(pathToResolve));
|
|
78041
|
-
return path5.join(parentDir, path5.basename(pathToResolve));
|
|
78042
|
-
}
|
|
78043
|
-
}
|
|
78044
|
-
function _generateTmpName(opts) {
|
|
78045
|
-
const tmpDir = opts.tmpdir;
|
|
78046
|
-
if (!_isUndefined(opts.name)) {
|
|
78047
|
-
return path5.join(tmpDir, opts.dir, opts.name);
|
|
78048
|
-
}
|
|
78049
|
-
if (!_isUndefined(opts.template)) {
|
|
78050
|
-
return path5.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
78051
|
-
}
|
|
78052
|
-
const name = [
|
|
78053
|
-
opts.prefix ? opts.prefix : "tmp",
|
|
78054
|
-
"-",
|
|
78055
|
-
process.pid,
|
|
78056
|
-
"-",
|
|
78057
|
-
_randomChars(12),
|
|
78058
|
-
opts.postfix ? "-" + opts.postfix : ""
|
|
78059
|
-
].join("");
|
|
78060
|
-
return path5.join(tmpDir, opts.dir, name);
|
|
78061
|
-
}
|
|
78062
|
-
function _assertOptionsBase(options) {
|
|
78063
|
-
if (!_isUndefined(options.name)) {
|
|
78064
|
-
const name = options.name;
|
|
78065
|
-
if (path5.isAbsolute(name))
|
|
78066
|
-
throw new Error(`name option must not contain an absolute path, found "${name}".`);
|
|
78067
|
-
const basename = path5.basename(name);
|
|
78068
|
-
if (basename === ".." || basename === "." || basename !== name)
|
|
78069
|
-
throw new Error(`name option must not contain a path, found "${name}".`);
|
|
78070
|
-
}
|
|
78071
|
-
if (!_isUndefined(options.template) && !options.template.match(TEMPLATE_PATTERN)) {
|
|
78072
|
-
throw new Error(`Invalid template, found "${options.template}".`);
|
|
78073
|
-
}
|
|
78074
|
-
if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0) {
|
|
78075
|
-
throw new Error(`Invalid tries, found "${options.tries}".`);
|
|
78076
|
-
}
|
|
78077
|
-
options.tries = _isUndefined(options.name) ? options.tries || DEFAULT_TRIES : 1;
|
|
78078
|
-
options.keep = !!options.keep;
|
|
78079
|
-
options.detachDescriptor = !!options.detachDescriptor;
|
|
78080
|
-
options.discardDescriptor = !!options.discardDescriptor;
|
|
78081
|
-
options.unsafeCleanup = !!options.unsafeCleanup;
|
|
78082
|
-
options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
|
|
78083
|
-
options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
|
|
78084
|
-
}
|
|
78085
|
-
function _getRelativePath(option, name, tmpDir, cb) {
|
|
78086
|
-
if (_isUndefined(name))
|
|
78087
|
-
return cb(null);
|
|
78088
|
-
_resolvePath(name, tmpDir, function(err, resolvedPath) {
|
|
78089
|
-
if (err)
|
|
78090
|
-
return cb(err);
|
|
78091
|
-
const relativePath = path5.relative(tmpDir, resolvedPath);
|
|
78092
|
-
if (!resolvedPath.startsWith(tmpDir)) {
|
|
78093
|
-
return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`));
|
|
78094
|
-
}
|
|
78095
|
-
cb(null, relativePath);
|
|
78096
|
-
});
|
|
78097
|
-
}
|
|
78098
|
-
function _getRelativePathSync(option, name, tmpDir) {
|
|
78099
|
-
if (_isUndefined(name))
|
|
78100
|
-
return;
|
|
78101
|
-
const resolvedPath = _resolvePathSync(name, tmpDir);
|
|
78102
|
-
const relativePath = path5.relative(tmpDir, resolvedPath);
|
|
78103
|
-
if (!resolvedPath.startsWith(tmpDir)) {
|
|
78104
|
-
throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`);
|
|
78105
|
-
}
|
|
78106
|
-
return relativePath;
|
|
78107
|
-
}
|
|
78108
|
-
function _assertAndSanitizeOptions(options, cb) {
|
|
78109
|
-
_getTmpDir(options, function(err, tmpDir) {
|
|
78110
|
-
if (err)
|
|
78111
|
-
return cb(err);
|
|
78112
|
-
options.tmpdir = tmpDir;
|
|
78113
|
-
try {
|
|
78114
|
-
_assertOptionsBase(options, tmpDir);
|
|
78115
|
-
} catch (err2) {
|
|
78116
|
-
return cb(err2);
|
|
78117
|
-
}
|
|
78118
|
-
_getRelativePath("dir", options.dir, tmpDir, function(err2, dir2) {
|
|
78119
|
-
if (err2)
|
|
78120
|
-
return cb(err2);
|
|
78121
|
-
options.dir = _isUndefined(dir2) ? "" : dir2;
|
|
78122
|
-
_getRelativePath("template", options.template, tmpDir, function(err3, template) {
|
|
78123
|
-
if (err3)
|
|
78124
|
-
return cb(err3);
|
|
78125
|
-
options.template = template;
|
|
78126
|
-
cb(null, options);
|
|
78127
|
-
});
|
|
78128
|
-
});
|
|
78129
|
-
});
|
|
78130
|
-
}
|
|
78131
|
-
function _assertAndSanitizeOptionsSync(options) {
|
|
78132
|
-
const tmpDir = options.tmpdir = _getTmpDirSync(options);
|
|
78133
|
-
_assertOptionsBase(options, tmpDir);
|
|
78134
|
-
const dir2 = _getRelativePathSync("dir", options.dir, tmpDir);
|
|
78135
|
-
options.dir = _isUndefined(dir2) ? "" : dir2;
|
|
78136
|
-
options.template = _getRelativePathSync("template", options.template, tmpDir);
|
|
78137
|
-
return options;
|
|
78138
|
-
}
|
|
78139
|
-
function _isEBADF(error) {
|
|
78140
|
-
return _isExpectedError(error, -EBADF, "EBADF");
|
|
78630
|
+
function isEBADF(error) {
|
|
78631
|
+
return isExpectedError(error, -EBADF, "EBADF");
|
|
78141
78632
|
}
|
|
78142
|
-
function
|
|
78143
|
-
return
|
|
78633
|
+
function isENOENT(error) {
|
|
78634
|
+
return isExpectedError(error, -ENOENT, "ENOENT");
|
|
78144
78635
|
}
|
|
78145
|
-
function
|
|
78146
|
-
return
|
|
78636
|
+
function isExpectedError(error, code, errno) {
|
|
78637
|
+
return error.code == code || error.code == errno;
|
|
78147
78638
|
}
|
|
78148
78639
|
function setGracefulCleanup() {
|
|
78149
78640
|
_gracefulCleanup = true;
|
|
78150
78641
|
}
|
|
78151
|
-
|
|
78152
|
-
return
|
|
78153
|
-
}
|
|
78154
|
-
|
|
78155
|
-
|
|
78642
|
+
var version = process.versions.node.split(".").map(function(value) {
|
|
78643
|
+
return parseInt(value, 10);
|
|
78644
|
+
});
|
|
78645
|
+
if (version[0] === 0 && (version[1] < 9 || version[1] === 9 && version[2] < 5)) {
|
|
78646
|
+
process.addListener("uncaughtException", function _uncaughtExceptionThrown(err) {
|
|
78647
|
+
_uncaughtException = true;
|
|
78648
|
+
_garbageCollector();
|
|
78649
|
+
throw err;
|
|
78650
|
+
});
|
|
78156
78651
|
}
|
|
78157
|
-
process.addListener(
|
|
78158
|
-
|
|
78159
|
-
|
|
78160
|
-
|
|
78161
|
-
get: function() {
|
|
78162
|
-
return _getTmpDirSync();
|
|
78163
|
-
}
|
|
78652
|
+
process.addListener("exit", function _exit(code) {
|
|
78653
|
+
if (code)
|
|
78654
|
+
_uncaughtException = true;
|
|
78655
|
+
_garbageCollector();
|
|
78164
78656
|
});
|
|
78657
|
+
module2.exports.tmpdir = tmpDir;
|
|
78165
78658
|
module2.exports.dir = dir;
|
|
78166
78659
|
module2.exports.dirSync = dirSync;
|
|
78167
78660
|
module2.exports.file = file;
|
|
@@ -82954,7 +83447,7 @@ var require_lodash6 = __commonJS({
|
|
|
82954
83447
|
copyObject(source, keys(source), object, customizer);
|
|
82955
83448
|
});
|
|
82956
83449
|
var at = flatRest(baseAt);
|
|
82957
|
-
function
|
|
83450
|
+
function create2(prototype2, properties) {
|
|
82958
83451
|
var result2 = baseCreate(prototype2);
|
|
82959
83452
|
return properties == null ? result2 : baseAssign(result2, properties);
|
|
82960
83453
|
}
|
|
@@ -83471,7 +83964,7 @@ var require_lodash6 = __commonJS({
|
|
|
83471
83964
|
}
|
|
83472
83965
|
return result2 + omission;
|
|
83473
83966
|
}
|
|
83474
|
-
function
|
|
83967
|
+
function unescape(string) {
|
|
83475
83968
|
string = toString9(string);
|
|
83476
83969
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
83477
83970
|
}
|
|
@@ -83706,7 +84199,7 @@ var require_lodash6 = __commonJS({
|
|
|
83706
84199
|
lodash.conforms = conforms;
|
|
83707
84200
|
lodash.constant = constant;
|
|
83708
84201
|
lodash.countBy = countBy;
|
|
83709
|
-
lodash.create =
|
|
84202
|
+
lodash.create = create2;
|
|
83710
84203
|
lodash.curry = curry;
|
|
83711
84204
|
lodash.curryRight = curryRight;
|
|
83712
84205
|
lodash.debounce = debounce;
|
|
@@ -83985,7 +84478,7 @@ var require_lodash6 = __commonJS({
|
|
|
83985
84478
|
lodash.trimEnd = trimEnd;
|
|
83986
84479
|
lodash.trimStart = trimStart;
|
|
83987
84480
|
lodash.truncate = truncate;
|
|
83988
|
-
lodash.unescape =
|
|
84481
|
+
lodash.unescape = unescape;
|
|
83989
84482
|
lodash.uniqueId = uniqueId;
|
|
83990
84483
|
lodash.upperCase = upperCase;
|
|
83991
84484
|
lodash.upperFirst = upperFirst;
|
|
@@ -84185,651 +84678,6 @@ var require_lodash7 = __commonJS({
|
|
|
84185
84678
|
}
|
|
84186
84679
|
});
|
|
84187
84680
|
|
|
84188
|
-
// ../../../../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/common.js
|
|
84189
|
-
var require_common3 = __commonJS({
|
|
84190
|
-
"../../../../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
|
|
84191
|
-
"use strict";
|
|
84192
|
-
function setup(env) {
|
|
84193
|
-
createDebug.debug = createDebug;
|
|
84194
|
-
createDebug.default = createDebug;
|
|
84195
|
-
createDebug.coerce = coerce;
|
|
84196
|
-
createDebug.disable = disable;
|
|
84197
|
-
createDebug.enable = enable;
|
|
84198
|
-
createDebug.enabled = enabled;
|
|
84199
|
-
createDebug.humanize = require_ms();
|
|
84200
|
-
createDebug.destroy = destroy;
|
|
84201
|
-
Object.keys(env).forEach((key) => {
|
|
84202
|
-
createDebug[key] = env[key];
|
|
84203
|
-
});
|
|
84204
|
-
createDebug.names = [];
|
|
84205
|
-
createDebug.skips = [];
|
|
84206
|
-
createDebug.formatters = {};
|
|
84207
|
-
function selectColor(namespace) {
|
|
84208
|
-
let hash = 0;
|
|
84209
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
84210
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
84211
|
-
hash |= 0;
|
|
84212
|
-
}
|
|
84213
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
84214
|
-
}
|
|
84215
|
-
createDebug.selectColor = selectColor;
|
|
84216
|
-
function createDebug(namespace) {
|
|
84217
|
-
let prevTime;
|
|
84218
|
-
let enableOverride = null;
|
|
84219
|
-
let namespacesCache;
|
|
84220
|
-
let enabledCache;
|
|
84221
|
-
function debug(...args) {
|
|
84222
|
-
if (!debug.enabled) {
|
|
84223
|
-
return;
|
|
84224
|
-
}
|
|
84225
|
-
const self3 = debug;
|
|
84226
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
84227
|
-
const ms = curr - (prevTime || curr);
|
|
84228
|
-
self3.diff = ms;
|
|
84229
|
-
self3.prev = prevTime;
|
|
84230
|
-
self3.curr = curr;
|
|
84231
|
-
prevTime = curr;
|
|
84232
|
-
args[0] = createDebug.coerce(args[0]);
|
|
84233
|
-
if (typeof args[0] !== "string") {
|
|
84234
|
-
args.unshift("%O");
|
|
84235
|
-
}
|
|
84236
|
-
let index = 0;
|
|
84237
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
84238
|
-
if (match === "%%") {
|
|
84239
|
-
return "%";
|
|
84240
|
-
}
|
|
84241
|
-
index++;
|
|
84242
|
-
const formatter = createDebug.formatters[format];
|
|
84243
|
-
if (typeof formatter === "function") {
|
|
84244
|
-
const val = args[index];
|
|
84245
|
-
match = formatter.call(self3, val);
|
|
84246
|
-
args.splice(index, 1);
|
|
84247
|
-
index--;
|
|
84248
|
-
}
|
|
84249
|
-
return match;
|
|
84250
|
-
});
|
|
84251
|
-
createDebug.formatArgs.call(self3, args);
|
|
84252
|
-
const logFn = self3.log || createDebug.log;
|
|
84253
|
-
logFn.apply(self3, args);
|
|
84254
|
-
}
|
|
84255
|
-
debug.namespace = namespace;
|
|
84256
|
-
debug.useColors = createDebug.useColors();
|
|
84257
|
-
debug.color = createDebug.selectColor(namespace);
|
|
84258
|
-
debug.extend = extend2;
|
|
84259
|
-
debug.destroy = createDebug.destroy;
|
|
84260
|
-
Object.defineProperty(debug, "enabled", {
|
|
84261
|
-
enumerable: true,
|
|
84262
|
-
configurable: false,
|
|
84263
|
-
get: () => {
|
|
84264
|
-
if (enableOverride !== null) {
|
|
84265
|
-
return enableOverride;
|
|
84266
|
-
}
|
|
84267
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
84268
|
-
namespacesCache = createDebug.namespaces;
|
|
84269
|
-
enabledCache = createDebug.enabled(namespace);
|
|
84270
|
-
}
|
|
84271
|
-
return enabledCache;
|
|
84272
|
-
},
|
|
84273
|
-
set: (v) => {
|
|
84274
|
-
enableOverride = v;
|
|
84275
|
-
}
|
|
84276
|
-
});
|
|
84277
|
-
if (typeof createDebug.init === "function") {
|
|
84278
|
-
createDebug.init(debug);
|
|
84279
|
-
}
|
|
84280
|
-
return debug;
|
|
84281
|
-
}
|
|
84282
|
-
function extend2(namespace, delimiter) {
|
|
84283
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
84284
|
-
newDebug.log = this.log;
|
|
84285
|
-
return newDebug;
|
|
84286
|
-
}
|
|
84287
|
-
function enable(namespaces) {
|
|
84288
|
-
createDebug.save(namespaces);
|
|
84289
|
-
createDebug.namespaces = namespaces;
|
|
84290
|
-
createDebug.names = [];
|
|
84291
|
-
createDebug.skips = [];
|
|
84292
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
84293
|
-
for (const ns of split) {
|
|
84294
|
-
if (ns[0] === "-") {
|
|
84295
|
-
createDebug.skips.push(ns.slice(1));
|
|
84296
|
-
} else {
|
|
84297
|
-
createDebug.names.push(ns);
|
|
84298
|
-
}
|
|
84299
|
-
}
|
|
84300
|
-
}
|
|
84301
|
-
function matchesTemplate(search, template) {
|
|
84302
|
-
let searchIndex = 0;
|
|
84303
|
-
let templateIndex = 0;
|
|
84304
|
-
let starIndex = -1;
|
|
84305
|
-
let matchIndex = 0;
|
|
84306
|
-
while (searchIndex < search.length) {
|
|
84307
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
84308
|
-
if (template[templateIndex] === "*") {
|
|
84309
|
-
starIndex = templateIndex;
|
|
84310
|
-
matchIndex = searchIndex;
|
|
84311
|
-
templateIndex++;
|
|
84312
|
-
} else {
|
|
84313
|
-
searchIndex++;
|
|
84314
|
-
templateIndex++;
|
|
84315
|
-
}
|
|
84316
|
-
} else if (starIndex !== -1) {
|
|
84317
|
-
templateIndex = starIndex + 1;
|
|
84318
|
-
matchIndex++;
|
|
84319
|
-
searchIndex = matchIndex;
|
|
84320
|
-
} else {
|
|
84321
|
-
return false;
|
|
84322
|
-
}
|
|
84323
|
-
}
|
|
84324
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
84325
|
-
templateIndex++;
|
|
84326
|
-
}
|
|
84327
|
-
return templateIndex === template.length;
|
|
84328
|
-
}
|
|
84329
|
-
function disable() {
|
|
84330
|
-
const namespaces = [
|
|
84331
|
-
...createDebug.names,
|
|
84332
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
84333
|
-
].join(",");
|
|
84334
|
-
createDebug.enable("");
|
|
84335
|
-
return namespaces;
|
|
84336
|
-
}
|
|
84337
|
-
function enabled(name) {
|
|
84338
|
-
for (const skip of createDebug.skips) {
|
|
84339
|
-
if (matchesTemplate(name, skip)) {
|
|
84340
|
-
return false;
|
|
84341
|
-
}
|
|
84342
|
-
}
|
|
84343
|
-
for (const ns of createDebug.names) {
|
|
84344
|
-
if (matchesTemplate(name, ns)) {
|
|
84345
|
-
return true;
|
|
84346
|
-
}
|
|
84347
|
-
}
|
|
84348
|
-
return false;
|
|
84349
|
-
}
|
|
84350
|
-
function coerce(val) {
|
|
84351
|
-
if (val instanceof Error) {
|
|
84352
|
-
return val.stack || val.message;
|
|
84353
|
-
}
|
|
84354
|
-
return val;
|
|
84355
|
-
}
|
|
84356
|
-
function destroy() {
|
|
84357
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
84358
|
-
}
|
|
84359
|
-
createDebug.enable(createDebug.load());
|
|
84360
|
-
return createDebug;
|
|
84361
|
-
}
|
|
84362
|
-
module2.exports = setup;
|
|
84363
|
-
}
|
|
84364
|
-
});
|
|
84365
|
-
|
|
84366
|
-
// ../../../../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/browser.js
|
|
84367
|
-
var require_browser2 = __commonJS({
|
|
84368
|
-
"../../../../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
|
|
84369
|
-
"use strict";
|
|
84370
|
-
exports.formatArgs = formatArgs;
|
|
84371
|
-
exports.save = save;
|
|
84372
|
-
exports.load = load;
|
|
84373
|
-
exports.useColors = useColors;
|
|
84374
|
-
exports.storage = localstorage();
|
|
84375
|
-
exports.destroy = (() => {
|
|
84376
|
-
let warned = false;
|
|
84377
|
-
return () => {
|
|
84378
|
-
if (!warned) {
|
|
84379
|
-
warned = true;
|
|
84380
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
84381
|
-
}
|
|
84382
|
-
};
|
|
84383
|
-
})();
|
|
84384
|
-
exports.colors = [
|
|
84385
|
-
"#0000CC",
|
|
84386
|
-
"#0000FF",
|
|
84387
|
-
"#0033CC",
|
|
84388
|
-
"#0033FF",
|
|
84389
|
-
"#0066CC",
|
|
84390
|
-
"#0066FF",
|
|
84391
|
-
"#0099CC",
|
|
84392
|
-
"#0099FF",
|
|
84393
|
-
"#00CC00",
|
|
84394
|
-
"#00CC33",
|
|
84395
|
-
"#00CC66",
|
|
84396
|
-
"#00CC99",
|
|
84397
|
-
"#00CCCC",
|
|
84398
|
-
"#00CCFF",
|
|
84399
|
-
"#3300CC",
|
|
84400
|
-
"#3300FF",
|
|
84401
|
-
"#3333CC",
|
|
84402
|
-
"#3333FF",
|
|
84403
|
-
"#3366CC",
|
|
84404
|
-
"#3366FF",
|
|
84405
|
-
"#3399CC",
|
|
84406
|
-
"#3399FF",
|
|
84407
|
-
"#33CC00",
|
|
84408
|
-
"#33CC33",
|
|
84409
|
-
"#33CC66",
|
|
84410
|
-
"#33CC99",
|
|
84411
|
-
"#33CCCC",
|
|
84412
|
-
"#33CCFF",
|
|
84413
|
-
"#6600CC",
|
|
84414
|
-
"#6600FF",
|
|
84415
|
-
"#6633CC",
|
|
84416
|
-
"#6633FF",
|
|
84417
|
-
"#66CC00",
|
|
84418
|
-
"#66CC33",
|
|
84419
|
-
"#9900CC",
|
|
84420
|
-
"#9900FF",
|
|
84421
|
-
"#9933CC",
|
|
84422
|
-
"#9933FF",
|
|
84423
|
-
"#99CC00",
|
|
84424
|
-
"#99CC33",
|
|
84425
|
-
"#CC0000",
|
|
84426
|
-
"#CC0033",
|
|
84427
|
-
"#CC0066",
|
|
84428
|
-
"#CC0099",
|
|
84429
|
-
"#CC00CC",
|
|
84430
|
-
"#CC00FF",
|
|
84431
|
-
"#CC3300",
|
|
84432
|
-
"#CC3333",
|
|
84433
|
-
"#CC3366",
|
|
84434
|
-
"#CC3399",
|
|
84435
|
-
"#CC33CC",
|
|
84436
|
-
"#CC33FF",
|
|
84437
|
-
"#CC6600",
|
|
84438
|
-
"#CC6633",
|
|
84439
|
-
"#CC9900",
|
|
84440
|
-
"#CC9933",
|
|
84441
|
-
"#CCCC00",
|
|
84442
|
-
"#CCCC33",
|
|
84443
|
-
"#FF0000",
|
|
84444
|
-
"#FF0033",
|
|
84445
|
-
"#FF0066",
|
|
84446
|
-
"#FF0099",
|
|
84447
|
-
"#FF00CC",
|
|
84448
|
-
"#FF00FF",
|
|
84449
|
-
"#FF3300",
|
|
84450
|
-
"#FF3333",
|
|
84451
|
-
"#FF3366",
|
|
84452
|
-
"#FF3399",
|
|
84453
|
-
"#FF33CC",
|
|
84454
|
-
"#FF33FF",
|
|
84455
|
-
"#FF6600",
|
|
84456
|
-
"#FF6633",
|
|
84457
|
-
"#FF9900",
|
|
84458
|
-
"#FF9933",
|
|
84459
|
-
"#FFCC00",
|
|
84460
|
-
"#FFCC33"
|
|
84461
|
-
];
|
|
84462
|
-
function useColors() {
|
|
84463
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
84464
|
-
return true;
|
|
84465
|
-
}
|
|
84466
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
84467
|
-
return false;
|
|
84468
|
-
}
|
|
84469
|
-
let m;
|
|
84470
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
84471
|
-
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
84472
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
84473
|
-
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
84474
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
84475
|
-
}
|
|
84476
|
-
function formatArgs(args) {
|
|
84477
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
84478
|
-
if (!this.useColors) {
|
|
84479
|
-
return;
|
|
84480
|
-
}
|
|
84481
|
-
const c = "color: " + this.color;
|
|
84482
|
-
args.splice(1, 0, c, "color: inherit");
|
|
84483
|
-
let index = 0;
|
|
84484
|
-
let lastC = 0;
|
|
84485
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
84486
|
-
if (match === "%%") {
|
|
84487
|
-
return;
|
|
84488
|
-
}
|
|
84489
|
-
index++;
|
|
84490
|
-
if (match === "%c") {
|
|
84491
|
-
lastC = index;
|
|
84492
|
-
}
|
|
84493
|
-
});
|
|
84494
|
-
args.splice(lastC, 0, c);
|
|
84495
|
-
}
|
|
84496
|
-
exports.log = console.debug || console.log || (() => {
|
|
84497
|
-
});
|
|
84498
|
-
function save(namespaces) {
|
|
84499
|
-
try {
|
|
84500
|
-
if (namespaces) {
|
|
84501
|
-
exports.storage.setItem("debug", namespaces);
|
|
84502
|
-
} else {
|
|
84503
|
-
exports.storage.removeItem("debug");
|
|
84504
|
-
}
|
|
84505
|
-
} catch (error) {
|
|
84506
|
-
}
|
|
84507
|
-
}
|
|
84508
|
-
function load() {
|
|
84509
|
-
let r;
|
|
84510
|
-
try {
|
|
84511
|
-
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
84512
|
-
} catch (error) {
|
|
84513
|
-
}
|
|
84514
|
-
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
84515
|
-
r = process.env.DEBUG;
|
|
84516
|
-
}
|
|
84517
|
-
return r;
|
|
84518
|
-
}
|
|
84519
|
-
function localstorage() {
|
|
84520
|
-
try {
|
|
84521
|
-
return localStorage;
|
|
84522
|
-
} catch (error) {
|
|
84523
|
-
}
|
|
84524
|
-
}
|
|
84525
|
-
module2.exports = require_common3()(exports);
|
|
84526
|
-
var { formatters } = module2.exports;
|
|
84527
|
-
formatters.j = function(v) {
|
|
84528
|
-
try {
|
|
84529
|
-
return JSON.stringify(v);
|
|
84530
|
-
} catch (error) {
|
|
84531
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
84532
|
-
}
|
|
84533
|
-
};
|
|
84534
|
-
}
|
|
84535
|
-
});
|
|
84536
|
-
|
|
84537
|
-
// ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
|
|
84538
|
-
var require_has_flag2 = __commonJS({
|
|
84539
|
-
"../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
84540
|
-
"use strict";
|
|
84541
|
-
module2.exports = (flag, argv) => {
|
|
84542
|
-
argv = argv || process.argv;
|
|
84543
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
84544
|
-
const pos = argv.indexOf(prefix + flag);
|
|
84545
|
-
const terminatorPos = argv.indexOf("--");
|
|
84546
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
84547
|
-
};
|
|
84548
|
-
}
|
|
84549
|
-
});
|
|
84550
|
-
|
|
84551
|
-
// ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
84552
|
-
var require_supports_color2 = __commonJS({
|
|
84553
|
-
"../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
84554
|
-
"use strict";
|
|
84555
|
-
var os2 = require("os");
|
|
84556
|
-
var hasFlag = require_has_flag2();
|
|
84557
|
-
var env = process.env;
|
|
84558
|
-
var forceColor;
|
|
84559
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
84560
|
-
forceColor = false;
|
|
84561
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
84562
|
-
forceColor = true;
|
|
84563
|
-
}
|
|
84564
|
-
if ("FORCE_COLOR" in env) {
|
|
84565
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
84566
|
-
}
|
|
84567
|
-
function translateLevel(level) {
|
|
84568
|
-
if (level === 0) {
|
|
84569
|
-
return false;
|
|
84570
|
-
}
|
|
84571
|
-
return {
|
|
84572
|
-
level,
|
|
84573
|
-
hasBasic: true,
|
|
84574
|
-
has256: level >= 2,
|
|
84575
|
-
has16m: level >= 3
|
|
84576
|
-
};
|
|
84577
|
-
}
|
|
84578
|
-
function supportsColor(stream4) {
|
|
84579
|
-
if (forceColor === false) {
|
|
84580
|
-
return 0;
|
|
84581
|
-
}
|
|
84582
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
84583
|
-
return 3;
|
|
84584
|
-
}
|
|
84585
|
-
if (hasFlag("color=256")) {
|
|
84586
|
-
return 2;
|
|
84587
|
-
}
|
|
84588
|
-
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
|
84589
|
-
return 0;
|
|
84590
|
-
}
|
|
84591
|
-
const min = forceColor ? 1 : 0;
|
|
84592
|
-
if (process.platform === "win32") {
|
|
84593
|
-
const osRelease = os2.release().split(".");
|
|
84594
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
84595
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
84596
|
-
}
|
|
84597
|
-
return 1;
|
|
84598
|
-
}
|
|
84599
|
-
if ("CI" in env) {
|
|
84600
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
84601
|
-
return 1;
|
|
84602
|
-
}
|
|
84603
|
-
return min;
|
|
84604
|
-
}
|
|
84605
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
84606
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
84607
|
-
}
|
|
84608
|
-
if (env.COLORTERM === "truecolor") {
|
|
84609
|
-
return 3;
|
|
84610
|
-
}
|
|
84611
|
-
if ("TERM_PROGRAM" in env) {
|
|
84612
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
84613
|
-
switch (env.TERM_PROGRAM) {
|
|
84614
|
-
case "iTerm.app":
|
|
84615
|
-
return version >= 3 ? 3 : 2;
|
|
84616
|
-
case "Apple_Terminal":
|
|
84617
|
-
return 2;
|
|
84618
|
-
}
|
|
84619
|
-
}
|
|
84620
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
84621
|
-
return 2;
|
|
84622
|
-
}
|
|
84623
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
84624
|
-
return 1;
|
|
84625
|
-
}
|
|
84626
|
-
if ("COLORTERM" in env) {
|
|
84627
|
-
return 1;
|
|
84628
|
-
}
|
|
84629
|
-
if (env.TERM === "dumb") {
|
|
84630
|
-
return min;
|
|
84631
|
-
}
|
|
84632
|
-
return min;
|
|
84633
|
-
}
|
|
84634
|
-
function getSupportLevel(stream4) {
|
|
84635
|
-
const level = supportsColor(stream4);
|
|
84636
|
-
return translateLevel(level);
|
|
84637
|
-
}
|
|
84638
|
-
module2.exports = {
|
|
84639
|
-
supportsColor: getSupportLevel,
|
|
84640
|
-
stdout: getSupportLevel(process.stdout),
|
|
84641
|
-
stderr: getSupportLevel(process.stderr)
|
|
84642
|
-
};
|
|
84643
|
-
}
|
|
84644
|
-
});
|
|
84645
|
-
|
|
84646
|
-
// ../../../../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
84647
|
-
var require_node4 = __commonJS({
|
|
84648
|
-
"../../../../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
|
|
84649
|
-
"use strict";
|
|
84650
|
-
var tty = require("tty");
|
|
84651
|
-
var util3 = require("util");
|
|
84652
|
-
exports.init = init;
|
|
84653
|
-
exports.log = log;
|
|
84654
|
-
exports.formatArgs = formatArgs;
|
|
84655
|
-
exports.save = save;
|
|
84656
|
-
exports.load = load;
|
|
84657
|
-
exports.useColors = useColors;
|
|
84658
|
-
exports.destroy = util3.deprecate(
|
|
84659
|
-
() => {
|
|
84660
|
-
},
|
|
84661
|
-
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
84662
|
-
);
|
|
84663
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
84664
|
-
try {
|
|
84665
|
-
const supportsColor = require_supports_color2();
|
|
84666
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
84667
|
-
exports.colors = [
|
|
84668
|
-
20,
|
|
84669
|
-
21,
|
|
84670
|
-
26,
|
|
84671
|
-
27,
|
|
84672
|
-
32,
|
|
84673
|
-
33,
|
|
84674
|
-
38,
|
|
84675
|
-
39,
|
|
84676
|
-
40,
|
|
84677
|
-
41,
|
|
84678
|
-
42,
|
|
84679
|
-
43,
|
|
84680
|
-
44,
|
|
84681
|
-
45,
|
|
84682
|
-
56,
|
|
84683
|
-
57,
|
|
84684
|
-
62,
|
|
84685
|
-
63,
|
|
84686
|
-
68,
|
|
84687
|
-
69,
|
|
84688
|
-
74,
|
|
84689
|
-
75,
|
|
84690
|
-
76,
|
|
84691
|
-
77,
|
|
84692
|
-
78,
|
|
84693
|
-
79,
|
|
84694
|
-
80,
|
|
84695
|
-
81,
|
|
84696
|
-
92,
|
|
84697
|
-
93,
|
|
84698
|
-
98,
|
|
84699
|
-
99,
|
|
84700
|
-
112,
|
|
84701
|
-
113,
|
|
84702
|
-
128,
|
|
84703
|
-
129,
|
|
84704
|
-
134,
|
|
84705
|
-
135,
|
|
84706
|
-
148,
|
|
84707
|
-
149,
|
|
84708
|
-
160,
|
|
84709
|
-
161,
|
|
84710
|
-
162,
|
|
84711
|
-
163,
|
|
84712
|
-
164,
|
|
84713
|
-
165,
|
|
84714
|
-
166,
|
|
84715
|
-
167,
|
|
84716
|
-
168,
|
|
84717
|
-
169,
|
|
84718
|
-
170,
|
|
84719
|
-
171,
|
|
84720
|
-
172,
|
|
84721
|
-
173,
|
|
84722
|
-
178,
|
|
84723
|
-
179,
|
|
84724
|
-
184,
|
|
84725
|
-
185,
|
|
84726
|
-
196,
|
|
84727
|
-
197,
|
|
84728
|
-
198,
|
|
84729
|
-
199,
|
|
84730
|
-
200,
|
|
84731
|
-
201,
|
|
84732
|
-
202,
|
|
84733
|
-
203,
|
|
84734
|
-
204,
|
|
84735
|
-
205,
|
|
84736
|
-
206,
|
|
84737
|
-
207,
|
|
84738
|
-
208,
|
|
84739
|
-
209,
|
|
84740
|
-
214,
|
|
84741
|
-
215,
|
|
84742
|
-
220,
|
|
84743
|
-
221
|
|
84744
|
-
];
|
|
84745
|
-
}
|
|
84746
|
-
} catch (error) {
|
|
84747
|
-
}
|
|
84748
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
84749
|
-
return /^debug_/i.test(key);
|
|
84750
|
-
}).reduce((obj, key) => {
|
|
84751
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
84752
|
-
return k.toUpperCase();
|
|
84753
|
-
});
|
|
84754
|
-
let val = process.env[key];
|
|
84755
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
84756
|
-
val = true;
|
|
84757
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
84758
|
-
val = false;
|
|
84759
|
-
} else if (val === "null") {
|
|
84760
|
-
val = null;
|
|
84761
|
-
} else {
|
|
84762
|
-
val = Number(val);
|
|
84763
|
-
}
|
|
84764
|
-
obj[prop] = val;
|
|
84765
|
-
return obj;
|
|
84766
|
-
}, {});
|
|
84767
|
-
function useColors() {
|
|
84768
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
84769
|
-
}
|
|
84770
|
-
function formatArgs(args) {
|
|
84771
|
-
const { namespace: name, useColors: useColors2 } = this;
|
|
84772
|
-
if (useColors2) {
|
|
84773
|
-
const c = this.color;
|
|
84774
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
84775
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
84776
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
84777
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
84778
|
-
} else {
|
|
84779
|
-
args[0] = getDate() + name + " " + args[0];
|
|
84780
|
-
}
|
|
84781
|
-
}
|
|
84782
|
-
function getDate() {
|
|
84783
|
-
if (exports.inspectOpts.hideDate) {
|
|
84784
|
-
return "";
|
|
84785
|
-
}
|
|
84786
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
84787
|
-
}
|
|
84788
|
-
function log(...args) {
|
|
84789
|
-
return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
84790
|
-
}
|
|
84791
|
-
function save(namespaces) {
|
|
84792
|
-
if (namespaces) {
|
|
84793
|
-
process.env.DEBUG = namespaces;
|
|
84794
|
-
} else {
|
|
84795
|
-
delete process.env.DEBUG;
|
|
84796
|
-
}
|
|
84797
|
-
}
|
|
84798
|
-
function load() {
|
|
84799
|
-
return process.env.DEBUG;
|
|
84800
|
-
}
|
|
84801
|
-
function init(debug) {
|
|
84802
|
-
debug.inspectOpts = {};
|
|
84803
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
84804
|
-
for (let i = 0; i < keys.length; i++) {
|
|
84805
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
84806
|
-
}
|
|
84807
|
-
}
|
|
84808
|
-
module2.exports = require_common3()(exports);
|
|
84809
|
-
var { formatters } = module2.exports;
|
|
84810
|
-
formatters.o = function(v) {
|
|
84811
|
-
this.inspectOpts.colors = this.useColors;
|
|
84812
|
-
return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
84813
|
-
};
|
|
84814
|
-
formatters.O = function(v) {
|
|
84815
|
-
this.inspectOpts.colors = this.useColors;
|
|
84816
|
-
return util3.inspect(v, this.inspectOpts);
|
|
84817
|
-
};
|
|
84818
|
-
}
|
|
84819
|
-
});
|
|
84820
|
-
|
|
84821
|
-
// ../../../../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/index.js
|
|
84822
|
-
var require_src4 = __commonJS({
|
|
84823
|
-
"../../../../node_modules/.pnpm/debug@4.4.1_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
|
|
84824
|
-
"use strict";
|
|
84825
|
-
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
84826
|
-
module2.exports = require_browser2();
|
|
84827
|
-
} else {
|
|
84828
|
-
module2.exports = require_node4();
|
|
84829
|
-
}
|
|
84830
|
-
}
|
|
84831
|
-
});
|
|
84832
|
-
|
|
84833
84681
|
// ../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js
|
|
84834
84682
|
var require_get_type = __commonJS({
|
|
84835
84683
|
"../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js"(exports) {
|
|
@@ -84982,7 +84830,7 @@ var require_filter3 = __commonJS({
|
|
|
84982
84830
|
return r;
|
|
84983
84831
|
};
|
|
84984
84832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
84985
|
-
var debug_1 =
|
|
84833
|
+
var debug_1 = require_src();
|
|
84986
84834
|
var mongo_eql_1 = require_mongo_eql();
|
|
84987
84835
|
var ops = require_ops();
|
|
84988
84836
|
var get_type_1 = require_get_type();
|
|
@@ -85142,7 +84990,7 @@ var require_mods = __commonJS({
|
|
|
85142
84990
|
return r;
|
|
85143
84991
|
};
|
|
85144
84992
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
85145
|
-
var debug_1 =
|
|
84993
|
+
var debug_1 = require_src();
|
|
85146
84994
|
var mongoDot = require_mongo_dot();
|
|
85147
84995
|
var mongo_eql_1 = require_mongo_eql();
|
|
85148
84996
|
var get_type_1 = require_get_type();
|
|
@@ -85603,7 +85451,7 @@ var require_query = __commonJS({
|
|
|
85603
85451
|
"../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/query.js"(exports) {
|
|
85604
85452
|
"use strict";
|
|
85605
85453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
85606
|
-
var debug_1 =
|
|
85454
|
+
var debug_1 = require_src();
|
|
85607
85455
|
var filter_1 = require_filter3();
|
|
85608
85456
|
var mods = require_mods();
|
|
85609
85457
|
var mongoDot = require_mongo_dot();
|
|
@@ -85672,7 +85520,7 @@ var require_query = __commonJS({
|
|
|
85672
85520
|
});
|
|
85673
85521
|
|
|
85674
85522
|
// ../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/index.js
|
|
85675
|
-
var
|
|
85523
|
+
var require_dist2 = __commonJS({
|
|
85676
85524
|
"../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/index.js"(exports) {
|
|
85677
85525
|
"use strict";
|
|
85678
85526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -85700,7 +85548,7 @@ __export(src_exports, {
|
|
|
85700
85548
|
handleTemplateFile: () => handleTemplateFile
|
|
85701
85549
|
});
|
|
85702
85550
|
module.exports = __toCommonJS(src_exports);
|
|
85703
|
-
var
|
|
85551
|
+
var import_path7 = __toESM(require("path"));
|
|
85704
85552
|
|
|
85705
85553
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.9/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
|
|
85706
85554
|
var import_fs_extra = __toESM(require_lib());
|
|
@@ -85754,14 +85602,14 @@ var CATCHE_VALIDITY_PREIOD = 7 * 24 * 3600 * 1e3;
|
|
|
85754
85602
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.9/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
|
85755
85603
|
var import_semver = __toESM(require_semver2());
|
|
85756
85604
|
|
|
85757
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
85605
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/bind.js
|
|
85758
85606
|
function bind(fn, thisArg) {
|
|
85759
85607
|
return function wrap() {
|
|
85760
85608
|
return fn.apply(thisArg, arguments);
|
|
85761
85609
|
};
|
|
85762
85610
|
}
|
|
85763
85611
|
|
|
85764
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
85612
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/utils.js
|
|
85765
85613
|
var { toString } = Object.prototype;
|
|
85766
85614
|
var { getPrototypeOf } = Object;
|
|
85767
85615
|
var { iterator, toStringTag } = Symbol;
|
|
@@ -85834,9 +85682,18 @@ function getGlobal() {
|
|
|
85834
85682
|
var G = getGlobal();
|
|
85835
85683
|
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
85836
85684
|
var isFormData = (thing) => {
|
|
85837
|
-
|
|
85838
|
-
|
|
85839
|
-
|
|
85685
|
+
if (!thing)
|
|
85686
|
+
return false;
|
|
85687
|
+
if (FormDataCtor && thing instanceof FormDataCtor)
|
|
85688
|
+
return true;
|
|
85689
|
+
const proto = getPrototypeOf(thing);
|
|
85690
|
+
if (!proto || proto === Object.prototype)
|
|
85691
|
+
return false;
|
|
85692
|
+
if (!isFunction(thing.append))
|
|
85693
|
+
return false;
|
|
85694
|
+
const kind = kindOf(thing);
|
|
85695
|
+
return kind === "formdata" || // detect form-data instance
|
|
85696
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
|
|
85840
85697
|
};
|
|
85841
85698
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
85842
85699
|
var [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
@@ -85896,7 +85753,7 @@ var _global = (() => {
|
|
|
85896
85753
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
85897
85754
|
})();
|
|
85898
85755
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
85899
|
-
function merge() {
|
|
85756
|
+
function merge(...objs) {
|
|
85900
85757
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
85901
85758
|
const result = {};
|
|
85902
85759
|
const assignValue = (val, key) => {
|
|
@@ -85904,8 +85761,9 @@ function merge() {
|
|
|
85904
85761
|
return;
|
|
85905
85762
|
}
|
|
85906
85763
|
const targetKey = caseless && findKey(result, key) || key;
|
|
85907
|
-
|
|
85908
|
-
|
|
85764
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
85765
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
85766
|
+
result[targetKey] = merge(existing, val);
|
|
85909
85767
|
} else if (isPlainObject(val)) {
|
|
85910
85768
|
result[targetKey] = merge({}, val);
|
|
85911
85769
|
} else if (isArray(val)) {
|
|
@@ -85914,8 +85772,8 @@ function merge() {
|
|
|
85914
85772
|
result[targetKey] = val;
|
|
85915
85773
|
}
|
|
85916
85774
|
};
|
|
85917
|
-
for (let i = 0, l =
|
|
85918
|
-
|
|
85775
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
85776
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
85919
85777
|
}
|
|
85920
85778
|
return result;
|
|
85921
85779
|
}
|
|
@@ -85925,6 +85783,9 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
85925
85783
|
(val, key) => {
|
|
85926
85784
|
if (thisArg && isFunction(val)) {
|
|
85927
85785
|
Object.defineProperty(a, key, {
|
|
85786
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
85787
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
85788
|
+
__proto__: null,
|
|
85928
85789
|
value: bind(val, thisArg),
|
|
85929
85790
|
writable: true,
|
|
85930
85791
|
enumerable: true,
|
|
@@ -85932,6 +85793,7 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
85932
85793
|
});
|
|
85933
85794
|
} else {
|
|
85934
85795
|
Object.defineProperty(a, key, {
|
|
85796
|
+
__proto__: null,
|
|
85935
85797
|
value: val,
|
|
85936
85798
|
writable: true,
|
|
85937
85799
|
enumerable: true,
|
|
@@ -85952,12 +85814,14 @@ var stripBOM = (content) => {
|
|
|
85952
85814
|
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
85953
85815
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
85954
85816
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
85817
|
+
__proto__: null,
|
|
85955
85818
|
value: constructor,
|
|
85956
85819
|
writable: true,
|
|
85957
85820
|
enumerable: false,
|
|
85958
85821
|
configurable: true
|
|
85959
85822
|
});
|
|
85960
85823
|
Object.defineProperty(constructor, "super", {
|
|
85824
|
+
__proto__: null,
|
|
85961
85825
|
value: superConstructor.prototype
|
|
85962
85826
|
});
|
|
85963
85827
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -86050,7 +85914,7 @@ var reduceDescriptors = (obj, reducer) => {
|
|
|
86050
85914
|
};
|
|
86051
85915
|
var freezeMethods = (obj) => {
|
|
86052
85916
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
86053
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].
|
|
85917
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
|
|
86054
85918
|
return false;
|
|
86055
85919
|
}
|
|
86056
85920
|
const value = obj[name];
|
|
@@ -86087,29 +85951,29 @@ function isSpecCompliantForm(thing) {
|
|
|
86087
85951
|
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
86088
85952
|
}
|
|
86089
85953
|
var toJSONObject = (obj) => {
|
|
86090
|
-
const
|
|
86091
|
-
const visit = (source
|
|
85954
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
85955
|
+
const visit = (source) => {
|
|
86092
85956
|
if (isObject(source)) {
|
|
86093
|
-
if (
|
|
85957
|
+
if (visited.has(source)) {
|
|
86094
85958
|
return;
|
|
86095
85959
|
}
|
|
86096
85960
|
if (isBuffer(source)) {
|
|
86097
85961
|
return source;
|
|
86098
85962
|
}
|
|
86099
85963
|
if (!("toJSON" in source)) {
|
|
86100
|
-
|
|
85964
|
+
visited.add(source);
|
|
86101
85965
|
const target = isArray(source) ? [] : {};
|
|
86102
85966
|
forEach(source, (value, key) => {
|
|
86103
|
-
const reducedValue = visit(value
|
|
85967
|
+
const reducedValue = visit(value);
|
|
86104
85968
|
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
86105
85969
|
});
|
|
86106
|
-
|
|
85970
|
+
visited.delete(source);
|
|
86107
85971
|
return target;
|
|
86108
85972
|
}
|
|
86109
85973
|
}
|
|
86110
85974
|
return source;
|
|
86111
85975
|
};
|
|
86112
|
-
return visit(obj
|
|
85976
|
+
return visit(obj);
|
|
86113
85977
|
};
|
|
86114
85978
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
86115
85979
|
var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
@@ -86198,7 +86062,385 @@ var utils_default = {
|
|
|
86198
86062
|
isIterable
|
|
86199
86063
|
};
|
|
86200
86064
|
|
|
86201
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86065
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/parseHeaders.js
|
|
86066
|
+
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
86067
|
+
"age",
|
|
86068
|
+
"authorization",
|
|
86069
|
+
"content-length",
|
|
86070
|
+
"content-type",
|
|
86071
|
+
"etag",
|
|
86072
|
+
"expires",
|
|
86073
|
+
"from",
|
|
86074
|
+
"host",
|
|
86075
|
+
"if-modified-since",
|
|
86076
|
+
"if-unmodified-since",
|
|
86077
|
+
"last-modified",
|
|
86078
|
+
"location",
|
|
86079
|
+
"max-forwards",
|
|
86080
|
+
"proxy-authorization",
|
|
86081
|
+
"referer",
|
|
86082
|
+
"retry-after",
|
|
86083
|
+
"user-agent"
|
|
86084
|
+
]);
|
|
86085
|
+
var parseHeaders_default = (rawHeaders) => {
|
|
86086
|
+
const parsed = {};
|
|
86087
|
+
let key;
|
|
86088
|
+
let val;
|
|
86089
|
+
let i;
|
|
86090
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
86091
|
+
i = line.indexOf(":");
|
|
86092
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
86093
|
+
val = line.substring(i + 1).trim();
|
|
86094
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
86095
|
+
return;
|
|
86096
|
+
}
|
|
86097
|
+
if (key === "set-cookie") {
|
|
86098
|
+
if (parsed[key]) {
|
|
86099
|
+
parsed[key].push(val);
|
|
86100
|
+
} else {
|
|
86101
|
+
parsed[key] = [val];
|
|
86102
|
+
}
|
|
86103
|
+
} else {
|
|
86104
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
86105
|
+
}
|
|
86106
|
+
});
|
|
86107
|
+
return parsed;
|
|
86108
|
+
};
|
|
86109
|
+
|
|
86110
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
86111
|
+
function trimSPorHTAB(str) {
|
|
86112
|
+
let start = 0;
|
|
86113
|
+
let end = str.length;
|
|
86114
|
+
while (start < end) {
|
|
86115
|
+
const code = str.charCodeAt(start);
|
|
86116
|
+
if (code !== 9 && code !== 32) {
|
|
86117
|
+
break;
|
|
86118
|
+
}
|
|
86119
|
+
start += 1;
|
|
86120
|
+
}
|
|
86121
|
+
while (end > start) {
|
|
86122
|
+
const code = str.charCodeAt(end - 1);
|
|
86123
|
+
if (code !== 9 && code !== 32) {
|
|
86124
|
+
break;
|
|
86125
|
+
}
|
|
86126
|
+
end -= 1;
|
|
86127
|
+
}
|
|
86128
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
86129
|
+
}
|
|
86130
|
+
var INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
|
|
86131
|
+
var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
86132
|
+
function sanitizeValue(value, invalidChars) {
|
|
86133
|
+
if (utils_default.isArray(value)) {
|
|
86134
|
+
return value.map((item) => sanitizeValue(item, invalidChars));
|
|
86135
|
+
}
|
|
86136
|
+
return trimSPorHTAB(String(value).replace(invalidChars, ""));
|
|
86137
|
+
}
|
|
86138
|
+
var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
|
|
86139
|
+
var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
|
|
86140
|
+
function toByteStringHeaderObject(headers) {
|
|
86141
|
+
const byteStringHeaders = /* @__PURE__ */ Object.create(null);
|
|
86142
|
+
utils_default.forEach(headers.toJSON(), (value, header) => {
|
|
86143
|
+
byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
|
|
86144
|
+
});
|
|
86145
|
+
return byteStringHeaders;
|
|
86146
|
+
}
|
|
86147
|
+
|
|
86148
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js
|
|
86149
|
+
var $internals = Symbol("internals");
|
|
86150
|
+
function normalizeHeader(header) {
|
|
86151
|
+
return header && String(header).trim().toLowerCase();
|
|
86152
|
+
}
|
|
86153
|
+
function normalizeValue(value) {
|
|
86154
|
+
if (value === false || value == null) {
|
|
86155
|
+
return value;
|
|
86156
|
+
}
|
|
86157
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
86158
|
+
}
|
|
86159
|
+
function parseTokens(str) {
|
|
86160
|
+
const tokens = /* @__PURE__ */ Object.create(null);
|
|
86161
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
86162
|
+
let match;
|
|
86163
|
+
while (match = tokensRE.exec(str)) {
|
|
86164
|
+
tokens[match[1]] = match[2];
|
|
86165
|
+
}
|
|
86166
|
+
return tokens;
|
|
86167
|
+
}
|
|
86168
|
+
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
86169
|
+
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
86170
|
+
if (utils_default.isFunction(filter2)) {
|
|
86171
|
+
return filter2.call(this, value, header);
|
|
86172
|
+
}
|
|
86173
|
+
if (isHeaderNameFilter) {
|
|
86174
|
+
value = header;
|
|
86175
|
+
}
|
|
86176
|
+
if (!utils_default.isString(value))
|
|
86177
|
+
return;
|
|
86178
|
+
if (utils_default.isString(filter2)) {
|
|
86179
|
+
return value.indexOf(filter2) !== -1;
|
|
86180
|
+
}
|
|
86181
|
+
if (utils_default.isRegExp(filter2)) {
|
|
86182
|
+
return filter2.test(value);
|
|
86183
|
+
}
|
|
86184
|
+
}
|
|
86185
|
+
function formatHeader(header) {
|
|
86186
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
86187
|
+
return char.toUpperCase() + str;
|
|
86188
|
+
});
|
|
86189
|
+
}
|
|
86190
|
+
function buildAccessors(obj, header) {
|
|
86191
|
+
const accessorName = utils_default.toCamelCase(" " + header);
|
|
86192
|
+
["get", "set", "has"].forEach((methodName) => {
|
|
86193
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
86194
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
86195
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
86196
|
+
__proto__: null,
|
|
86197
|
+
value: function(arg1, arg2, arg3) {
|
|
86198
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
86199
|
+
},
|
|
86200
|
+
configurable: true
|
|
86201
|
+
});
|
|
86202
|
+
});
|
|
86203
|
+
}
|
|
86204
|
+
var AxiosHeaders = class {
|
|
86205
|
+
constructor(headers) {
|
|
86206
|
+
headers && this.set(headers);
|
|
86207
|
+
}
|
|
86208
|
+
set(header, valueOrRewrite, rewrite) {
|
|
86209
|
+
const self3 = this;
|
|
86210
|
+
function setHeader(_value, _header, _rewrite) {
|
|
86211
|
+
const lHeader = normalizeHeader(_header);
|
|
86212
|
+
if (!lHeader) {
|
|
86213
|
+
throw new Error("header name must be a non-empty string");
|
|
86214
|
+
}
|
|
86215
|
+
const key = utils_default.findKey(self3, lHeader);
|
|
86216
|
+
if (!key || self3[key] === void 0 || _rewrite === true || _rewrite === void 0 && self3[key] !== false) {
|
|
86217
|
+
self3[key || _header] = normalizeValue(_value);
|
|
86218
|
+
}
|
|
86219
|
+
}
|
|
86220
|
+
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
86221
|
+
if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
|
|
86222
|
+
setHeaders(header, valueOrRewrite);
|
|
86223
|
+
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
86224
|
+
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
86225
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
86226
|
+
let obj = {}, dest, key;
|
|
86227
|
+
for (const entry of header) {
|
|
86228
|
+
if (!utils_default.isArray(entry)) {
|
|
86229
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
86230
|
+
}
|
|
86231
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
86232
|
+
}
|
|
86233
|
+
setHeaders(obj, valueOrRewrite);
|
|
86234
|
+
} else {
|
|
86235
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
86236
|
+
}
|
|
86237
|
+
return this;
|
|
86238
|
+
}
|
|
86239
|
+
get(header, parser) {
|
|
86240
|
+
header = normalizeHeader(header);
|
|
86241
|
+
if (header) {
|
|
86242
|
+
const key = utils_default.findKey(this, header);
|
|
86243
|
+
if (key) {
|
|
86244
|
+
const value = this[key];
|
|
86245
|
+
if (!parser) {
|
|
86246
|
+
return value;
|
|
86247
|
+
}
|
|
86248
|
+
if (parser === true) {
|
|
86249
|
+
return parseTokens(value);
|
|
86250
|
+
}
|
|
86251
|
+
if (utils_default.isFunction(parser)) {
|
|
86252
|
+
return parser.call(this, value, key);
|
|
86253
|
+
}
|
|
86254
|
+
if (utils_default.isRegExp(parser)) {
|
|
86255
|
+
return parser.exec(value);
|
|
86256
|
+
}
|
|
86257
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
86258
|
+
}
|
|
86259
|
+
}
|
|
86260
|
+
}
|
|
86261
|
+
has(header, matcher) {
|
|
86262
|
+
header = normalizeHeader(header);
|
|
86263
|
+
if (header) {
|
|
86264
|
+
const key = utils_default.findKey(this, header);
|
|
86265
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
86266
|
+
}
|
|
86267
|
+
return false;
|
|
86268
|
+
}
|
|
86269
|
+
delete(header, matcher) {
|
|
86270
|
+
const self3 = this;
|
|
86271
|
+
let deleted = false;
|
|
86272
|
+
function deleteHeader(_header) {
|
|
86273
|
+
_header = normalizeHeader(_header);
|
|
86274
|
+
if (_header) {
|
|
86275
|
+
const key = utils_default.findKey(self3, _header);
|
|
86276
|
+
if (key && (!matcher || matchHeaderValue(self3, self3[key], key, matcher))) {
|
|
86277
|
+
delete self3[key];
|
|
86278
|
+
deleted = true;
|
|
86279
|
+
}
|
|
86280
|
+
}
|
|
86281
|
+
}
|
|
86282
|
+
if (utils_default.isArray(header)) {
|
|
86283
|
+
header.forEach(deleteHeader);
|
|
86284
|
+
} else {
|
|
86285
|
+
deleteHeader(header);
|
|
86286
|
+
}
|
|
86287
|
+
return deleted;
|
|
86288
|
+
}
|
|
86289
|
+
clear(matcher) {
|
|
86290
|
+
const keys = Object.keys(this);
|
|
86291
|
+
let i = keys.length;
|
|
86292
|
+
let deleted = false;
|
|
86293
|
+
while (i--) {
|
|
86294
|
+
const key = keys[i];
|
|
86295
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
86296
|
+
delete this[key];
|
|
86297
|
+
deleted = true;
|
|
86298
|
+
}
|
|
86299
|
+
}
|
|
86300
|
+
return deleted;
|
|
86301
|
+
}
|
|
86302
|
+
normalize(format) {
|
|
86303
|
+
const self3 = this;
|
|
86304
|
+
const headers = {};
|
|
86305
|
+
utils_default.forEach(this, (value, header) => {
|
|
86306
|
+
const key = utils_default.findKey(headers, header);
|
|
86307
|
+
if (key) {
|
|
86308
|
+
self3[key] = normalizeValue(value);
|
|
86309
|
+
delete self3[header];
|
|
86310
|
+
return;
|
|
86311
|
+
}
|
|
86312
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
86313
|
+
if (normalized !== header) {
|
|
86314
|
+
delete self3[header];
|
|
86315
|
+
}
|
|
86316
|
+
self3[normalized] = normalizeValue(value);
|
|
86317
|
+
headers[normalized] = true;
|
|
86318
|
+
});
|
|
86319
|
+
return this;
|
|
86320
|
+
}
|
|
86321
|
+
concat(...targets) {
|
|
86322
|
+
return this.constructor.concat(this, ...targets);
|
|
86323
|
+
}
|
|
86324
|
+
toJSON(asStrings) {
|
|
86325
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
86326
|
+
utils_default.forEach(this, (value, header) => {
|
|
86327
|
+
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
86328
|
+
});
|
|
86329
|
+
return obj;
|
|
86330
|
+
}
|
|
86331
|
+
[Symbol.iterator]() {
|
|
86332
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
86333
|
+
}
|
|
86334
|
+
toString() {
|
|
86335
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
86336
|
+
}
|
|
86337
|
+
getSetCookie() {
|
|
86338
|
+
return this.get("set-cookie") || [];
|
|
86339
|
+
}
|
|
86340
|
+
get [Symbol.toStringTag]() {
|
|
86341
|
+
return "AxiosHeaders";
|
|
86342
|
+
}
|
|
86343
|
+
static from(thing) {
|
|
86344
|
+
return thing instanceof this ? thing : new this(thing);
|
|
86345
|
+
}
|
|
86346
|
+
static concat(first, ...targets) {
|
|
86347
|
+
const computed2 = new this(first);
|
|
86348
|
+
targets.forEach((target) => computed2.set(target));
|
|
86349
|
+
return computed2;
|
|
86350
|
+
}
|
|
86351
|
+
static accessor(header) {
|
|
86352
|
+
const internals = this[$internals] = this[$internals] = {
|
|
86353
|
+
accessors: {}
|
|
86354
|
+
};
|
|
86355
|
+
const accessors = internals.accessors;
|
|
86356
|
+
const prototype2 = this.prototype;
|
|
86357
|
+
function defineAccessor(_header) {
|
|
86358
|
+
const lHeader = normalizeHeader(_header);
|
|
86359
|
+
if (!accessors[lHeader]) {
|
|
86360
|
+
buildAccessors(prototype2, _header);
|
|
86361
|
+
accessors[lHeader] = true;
|
|
86362
|
+
}
|
|
86363
|
+
}
|
|
86364
|
+
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
86365
|
+
return this;
|
|
86366
|
+
}
|
|
86367
|
+
};
|
|
86368
|
+
AxiosHeaders.accessor([
|
|
86369
|
+
"Content-Type",
|
|
86370
|
+
"Content-Length",
|
|
86371
|
+
"Accept",
|
|
86372
|
+
"Accept-Encoding",
|
|
86373
|
+
"User-Agent",
|
|
86374
|
+
"Authorization"
|
|
86375
|
+
]);
|
|
86376
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
86377
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
86378
|
+
return {
|
|
86379
|
+
get: () => value,
|
|
86380
|
+
set(headerValue) {
|
|
86381
|
+
this[mapped] = headerValue;
|
|
86382
|
+
}
|
|
86383
|
+
};
|
|
86384
|
+
});
|
|
86385
|
+
utils_default.freezeMethods(AxiosHeaders);
|
|
86386
|
+
var AxiosHeaders_default = AxiosHeaders;
|
|
86387
|
+
|
|
86388
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/AxiosError.js
|
|
86389
|
+
var REDACTED = "[REDACTED ****]";
|
|
86390
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
86391
|
+
if (utils_default.hasOwnProp(source, "toJSON")) {
|
|
86392
|
+
return true;
|
|
86393
|
+
}
|
|
86394
|
+
let prototype2 = Object.getPrototypeOf(source);
|
|
86395
|
+
while (prototype2 && prototype2 !== Object.prototype) {
|
|
86396
|
+
if (utils_default.hasOwnProp(prototype2, "toJSON")) {
|
|
86397
|
+
return true;
|
|
86398
|
+
}
|
|
86399
|
+
prototype2 = Object.getPrototypeOf(prototype2);
|
|
86400
|
+
}
|
|
86401
|
+
return false;
|
|
86402
|
+
}
|
|
86403
|
+
function redactConfig(config, redactKeys) {
|
|
86404
|
+
const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
|
|
86405
|
+
const seen = [];
|
|
86406
|
+
const visit = (source) => {
|
|
86407
|
+
if (source === null || typeof source !== "object")
|
|
86408
|
+
return source;
|
|
86409
|
+
if (utils_default.isBuffer(source))
|
|
86410
|
+
return source;
|
|
86411
|
+
if (seen.indexOf(source) !== -1)
|
|
86412
|
+
return void 0;
|
|
86413
|
+
if (source instanceof AxiosHeaders_default) {
|
|
86414
|
+
source = source.toJSON();
|
|
86415
|
+
}
|
|
86416
|
+
seen.push(source);
|
|
86417
|
+
let result;
|
|
86418
|
+
if (utils_default.isArray(source)) {
|
|
86419
|
+
result = [];
|
|
86420
|
+
source.forEach((v, i) => {
|
|
86421
|
+
const reducedValue = visit(v);
|
|
86422
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
86423
|
+
result[i] = reducedValue;
|
|
86424
|
+
}
|
|
86425
|
+
});
|
|
86426
|
+
} else {
|
|
86427
|
+
if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
86428
|
+
seen.pop();
|
|
86429
|
+
return source;
|
|
86430
|
+
}
|
|
86431
|
+
result = /* @__PURE__ */ Object.create(null);
|
|
86432
|
+
for (const [key, value] of Object.entries(source)) {
|
|
86433
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
|
|
86434
|
+
if (!utils_default.isUndefined(reducedValue)) {
|
|
86435
|
+
result[key] = reducedValue;
|
|
86436
|
+
}
|
|
86437
|
+
}
|
|
86438
|
+
}
|
|
86439
|
+
seen.pop();
|
|
86440
|
+
return result;
|
|
86441
|
+
};
|
|
86442
|
+
return visit(config);
|
|
86443
|
+
}
|
|
86202
86444
|
var AxiosError = class _AxiosError extends Error {
|
|
86203
86445
|
static from(error, code, config, request, response, customProps) {
|
|
86204
86446
|
const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
|
|
@@ -86224,6 +86466,9 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
86224
86466
|
constructor(message, code, config, request, response) {
|
|
86225
86467
|
super(message);
|
|
86226
86468
|
Object.defineProperty(this, "message", {
|
|
86469
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
86470
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
86471
|
+
__proto__: null,
|
|
86227
86472
|
value: message,
|
|
86228
86473
|
enumerable: true,
|
|
86229
86474
|
writable: true,
|
|
@@ -86240,6 +86485,9 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
86240
86485
|
}
|
|
86241
86486
|
}
|
|
86242
86487
|
toJSON() {
|
|
86488
|
+
const config = this.config;
|
|
86489
|
+
const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
|
|
86490
|
+
const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
|
|
86243
86491
|
return {
|
|
86244
86492
|
// Standard
|
|
86245
86493
|
message: this.message,
|
|
@@ -86253,7 +86501,7 @@ var AxiosError = class _AxiosError extends Error {
|
|
|
86253
86501
|
columnNumber: this.columnNumber,
|
|
86254
86502
|
stack: this.stack,
|
|
86255
86503
|
// Axios
|
|
86256
|
-
config:
|
|
86504
|
+
config: serializedConfig,
|
|
86257
86505
|
code: this.code,
|
|
86258
86506
|
status: this.status
|
|
86259
86507
|
};
|
|
@@ -86263,6 +86511,7 @@ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
|
86263
86511
|
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
86264
86512
|
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
86265
86513
|
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
86514
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
86266
86515
|
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
86267
86516
|
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
86268
86517
|
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
@@ -86271,13 +86520,14 @@ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
|
86271
86520
|
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
86272
86521
|
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
86273
86522
|
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
86523
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
86274
86524
|
var AxiosError_default = AxiosError;
|
|
86275
86525
|
|
|
86276
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86526
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
86277
86527
|
var import_form_data = __toESM(require_form_data());
|
|
86278
86528
|
var FormData_default = import_form_data.default;
|
|
86279
86529
|
|
|
86280
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86530
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/toFormData.js
|
|
86281
86531
|
function isVisitable(thing) {
|
|
86282
86532
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
86283
86533
|
}
|
|
@@ -86320,6 +86570,7 @@ function toFormData(obj, formData, options) {
|
|
|
86320
86570
|
const dots = options.dots;
|
|
86321
86571
|
const indexes = options.indexes;
|
|
86322
86572
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
86573
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
86323
86574
|
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
86324
86575
|
if (!utils_default.isFunction(visitor)) {
|
|
86325
86576
|
throw new TypeError("visitor must be a function");
|
|
@@ -86375,9 +86626,15 @@ function toFormData(obj, formData, options) {
|
|
|
86375
86626
|
convertValue,
|
|
86376
86627
|
isVisitable
|
|
86377
86628
|
});
|
|
86378
|
-
function build(value, path5) {
|
|
86629
|
+
function build(value, path5, depth = 0) {
|
|
86379
86630
|
if (utils_default.isUndefined(value))
|
|
86380
86631
|
return;
|
|
86632
|
+
if (depth > maxDepth) {
|
|
86633
|
+
throw new AxiosError_default(
|
|
86634
|
+
"Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
|
|
86635
|
+
AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
86636
|
+
);
|
|
86637
|
+
}
|
|
86381
86638
|
if (stack.indexOf(value) !== -1) {
|
|
86382
86639
|
throw Error("Circular reference detected in " + path5.join("."));
|
|
86383
86640
|
}
|
|
@@ -86385,7 +86642,7 @@ function toFormData(obj, formData, options) {
|
|
|
86385
86642
|
utils_default.forEach(value, function each3(el, key) {
|
|
86386
86643
|
const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path5, exposedHelpers);
|
|
86387
86644
|
if (result === true) {
|
|
86388
|
-
build(el, path5 ? path5.concat(key) : [key]);
|
|
86645
|
+
build(el, path5 ? path5.concat(key) : [key], depth + 1);
|
|
86389
86646
|
}
|
|
86390
86647
|
});
|
|
86391
86648
|
stack.pop();
|
|
@@ -86398,7 +86655,7 @@ function toFormData(obj, formData, options) {
|
|
|
86398
86655
|
}
|
|
86399
86656
|
var toFormData_default = toFormData;
|
|
86400
86657
|
|
|
86401
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86658
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
86402
86659
|
function encode(str) {
|
|
86403
86660
|
const charMap = {
|
|
86404
86661
|
"!": "%21",
|
|
@@ -86406,10 +86663,9 @@ function encode(str) {
|
|
|
86406
86663
|
"(": "%28",
|
|
86407
86664
|
")": "%29",
|
|
86408
86665
|
"~": "%7E",
|
|
86409
|
-
"%20": "+"
|
|
86410
|
-
"%00": "\0"
|
|
86666
|
+
"%20": "+"
|
|
86411
86667
|
};
|
|
86412
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20
|
|
86668
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
86413
86669
|
return charMap[match];
|
|
86414
86670
|
});
|
|
86415
86671
|
}
|
|
@@ -86431,7 +86687,7 @@ prototype.toString = function toString2(encoder) {
|
|
|
86431
86687
|
};
|
|
86432
86688
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
86433
86689
|
|
|
86434
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86690
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/buildURL.js
|
|
86435
86691
|
function encode2(val) {
|
|
86436
86692
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
86437
86693
|
}
|
|
@@ -86460,7 +86716,7 @@ function buildURL(url2, params, options) {
|
|
|
86460
86716
|
return url2;
|
|
86461
86717
|
}
|
|
86462
86718
|
|
|
86463
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86719
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/InterceptorManager.js
|
|
86464
86720
|
var InterceptorManager = class {
|
|
86465
86721
|
constructor() {
|
|
86466
86722
|
this.handlers = [];
|
|
@@ -86525,7 +86781,7 @@ var InterceptorManager = class {
|
|
|
86525
86781
|
};
|
|
86526
86782
|
var InterceptorManager_default = InterceptorManager;
|
|
86527
86783
|
|
|
86528
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86784
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/defaults/transitional.js
|
|
86529
86785
|
var transitional_default = {
|
|
86530
86786
|
silentJSONParsing: true,
|
|
86531
86787
|
forcedJSONParsing: true,
|
|
@@ -86533,14 +86789,14 @@ var transitional_default = {
|
|
|
86533
86789
|
legacyInterceptorReqResOrdering: true
|
|
86534
86790
|
};
|
|
86535
86791
|
|
|
86536
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86792
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/index.js
|
|
86537
86793
|
var import_crypto = __toESM(require("crypto"));
|
|
86538
86794
|
|
|
86539
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86795
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
86540
86796
|
var import_url = __toESM(require("url"));
|
|
86541
86797
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
86542
86798
|
|
|
86543
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86799
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/node/index.js
|
|
86544
86800
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
86545
86801
|
var DIGIT = "0123456789";
|
|
86546
86802
|
var ALPHABET = {
|
|
@@ -86570,7 +86826,7 @@ var node_default = {
|
|
|
86570
86826
|
protocols: ["http", "https", "file", "data"]
|
|
86571
86827
|
};
|
|
86572
86828
|
|
|
86573
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86829
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/common/utils.js
|
|
86574
86830
|
var utils_exports = {};
|
|
86575
86831
|
__export(utils_exports, {
|
|
86576
86832
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
@@ -86588,10 +86844,10 @@ var hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
86588
86844
|
})();
|
|
86589
86845
|
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
86590
86846
|
|
|
86591
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86847
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/platform/index.js
|
|
86592
86848
|
var platform_default = __spreadValues(__spreadValues({}, utils_exports), node_default);
|
|
86593
86849
|
|
|
86594
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86850
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
86595
86851
|
function toURLEncodedForm(data, options) {
|
|
86596
86852
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), __spreadValues({
|
|
86597
86853
|
visitor: function(value, key, path5, helpers) {
|
|
@@ -86604,7 +86860,7 @@ function toURLEncodedForm(data, options) {
|
|
|
86604
86860
|
}, options));
|
|
86605
86861
|
}
|
|
86606
86862
|
|
|
86607
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86863
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
86608
86864
|
function parsePropPath(name) {
|
|
86609
86865
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
86610
86866
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -86632,13 +86888,13 @@ function formDataToJSON(formData) {
|
|
|
86632
86888
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
86633
86889
|
if (isLast) {
|
|
86634
86890
|
if (utils_default.hasOwnProp(target, name)) {
|
|
86635
|
-
target[name] = [target[name], value];
|
|
86891
|
+
target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
86636
86892
|
} else {
|
|
86637
86893
|
target[name] = value;
|
|
86638
86894
|
}
|
|
86639
86895
|
return !isNumericKey;
|
|
86640
86896
|
}
|
|
86641
|
-
if (!target
|
|
86897
|
+
if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
|
|
86642
86898
|
target[name] = [];
|
|
86643
86899
|
}
|
|
86644
86900
|
const result = buildPath(path5, value, target[name], index);
|
|
@@ -86658,7 +86914,8 @@ function formDataToJSON(formData) {
|
|
|
86658
86914
|
}
|
|
86659
86915
|
var formDataToJSON_default = formDataToJSON;
|
|
86660
86916
|
|
|
86661
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86917
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/defaults/index.js
|
|
86918
|
+
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
86662
86919
|
function stringifySafely(rawValue, parser, encoder) {
|
|
86663
86920
|
if (utils_default.isString(rawValue)) {
|
|
86664
86921
|
try {
|
|
@@ -86699,15 +86956,17 @@ var defaults = {
|
|
|
86699
86956
|
}
|
|
86700
86957
|
let isFileList2;
|
|
86701
86958
|
if (isObjectPayload) {
|
|
86959
|
+
const formSerializer = own(this, "formSerializer");
|
|
86702
86960
|
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
86703
|
-
return toURLEncodedForm(data,
|
|
86961
|
+
return toURLEncodedForm(data, formSerializer).toString();
|
|
86704
86962
|
}
|
|
86705
86963
|
if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
86706
|
-
const
|
|
86964
|
+
const env = own(this, "env");
|
|
86965
|
+
const _FormData = env && env.FormData;
|
|
86707
86966
|
return toFormData_default(
|
|
86708
86967
|
isFileList2 ? { "files[]": data } : data,
|
|
86709
86968
|
_FormData && new _FormData(),
|
|
86710
|
-
|
|
86969
|
+
formSerializer
|
|
86711
86970
|
);
|
|
86712
86971
|
}
|
|
86713
86972
|
}
|
|
@@ -86720,21 +86979,22 @@ var defaults = {
|
|
|
86720
86979
|
],
|
|
86721
86980
|
transformResponse: [
|
|
86722
86981
|
function transformResponse(data) {
|
|
86723
|
-
const transitional2 = this
|
|
86982
|
+
const transitional2 = own(this, "transitional") || defaults.transitional;
|
|
86724
86983
|
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
86725
|
-
const
|
|
86984
|
+
const responseType = own(this, "responseType");
|
|
86985
|
+
const JSONRequested = responseType === "json";
|
|
86726
86986
|
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
86727
86987
|
return data;
|
|
86728
86988
|
}
|
|
86729
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !
|
|
86989
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
86730
86990
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
86731
86991
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
86732
86992
|
try {
|
|
86733
|
-
return JSON.parse(data, this
|
|
86993
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
86734
86994
|
} catch (e) {
|
|
86735
86995
|
if (strictJSONParsing) {
|
|
86736
86996
|
if (e.name === "SyntaxError") {
|
|
86737
|
-
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this
|
|
86997
|
+
throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
86738
86998
|
}
|
|
86739
86999
|
throw e;
|
|
86740
87000
|
}
|
|
@@ -86766,319 +87026,12 @@ var defaults = {
|
|
|
86766
87026
|
}
|
|
86767
87027
|
}
|
|
86768
87028
|
};
|
|
86769
|
-
utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
87029
|
+
utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
|
|
86770
87030
|
defaults.headers[method] = {};
|
|
86771
87031
|
});
|
|
86772
87032
|
var defaults_default = defaults;
|
|
86773
87033
|
|
|
86774
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
86775
|
-
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
86776
|
-
"age",
|
|
86777
|
-
"authorization",
|
|
86778
|
-
"content-length",
|
|
86779
|
-
"content-type",
|
|
86780
|
-
"etag",
|
|
86781
|
-
"expires",
|
|
86782
|
-
"from",
|
|
86783
|
-
"host",
|
|
86784
|
-
"if-modified-since",
|
|
86785
|
-
"if-unmodified-since",
|
|
86786
|
-
"last-modified",
|
|
86787
|
-
"location",
|
|
86788
|
-
"max-forwards",
|
|
86789
|
-
"proxy-authorization",
|
|
86790
|
-
"referer",
|
|
86791
|
-
"retry-after",
|
|
86792
|
-
"user-agent"
|
|
86793
|
-
]);
|
|
86794
|
-
var parseHeaders_default = (rawHeaders) => {
|
|
86795
|
-
const parsed = {};
|
|
86796
|
-
let key;
|
|
86797
|
-
let val;
|
|
86798
|
-
let i;
|
|
86799
|
-
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
86800
|
-
i = line.indexOf(":");
|
|
86801
|
-
key = line.substring(0, i).trim().toLowerCase();
|
|
86802
|
-
val = line.substring(i + 1).trim();
|
|
86803
|
-
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
86804
|
-
return;
|
|
86805
|
-
}
|
|
86806
|
-
if (key === "set-cookie") {
|
|
86807
|
-
if (parsed[key]) {
|
|
86808
|
-
parsed[key].push(val);
|
|
86809
|
-
} else {
|
|
86810
|
-
parsed[key] = [val];
|
|
86811
|
-
}
|
|
86812
|
-
} else {
|
|
86813
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
86814
|
-
}
|
|
86815
|
-
});
|
|
86816
|
-
return parsed;
|
|
86817
|
-
};
|
|
86818
|
-
|
|
86819
|
-
// ../../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/AxiosHeaders.js
|
|
86820
|
-
var $internals = Symbol("internals");
|
|
86821
|
-
var isValidHeaderValue = (value) => !/[\r\n]/.test(value);
|
|
86822
|
-
function assertValidHeaderValue(value, header) {
|
|
86823
|
-
if (value === false || value == null) {
|
|
86824
|
-
return;
|
|
86825
|
-
}
|
|
86826
|
-
if (utils_default.isArray(value)) {
|
|
86827
|
-
value.forEach((v) => assertValidHeaderValue(v, header));
|
|
86828
|
-
return;
|
|
86829
|
-
}
|
|
86830
|
-
if (!isValidHeaderValue(String(value))) {
|
|
86831
|
-
throw new Error(`Invalid character in header content ["${header}"]`);
|
|
86832
|
-
}
|
|
86833
|
-
}
|
|
86834
|
-
function normalizeHeader(header) {
|
|
86835
|
-
return header && String(header).trim().toLowerCase();
|
|
86836
|
-
}
|
|
86837
|
-
function stripTrailingCRLF(str) {
|
|
86838
|
-
let end = str.length;
|
|
86839
|
-
while (end > 0) {
|
|
86840
|
-
const charCode = str.charCodeAt(end - 1);
|
|
86841
|
-
if (charCode !== 10 && charCode !== 13) {
|
|
86842
|
-
break;
|
|
86843
|
-
}
|
|
86844
|
-
end -= 1;
|
|
86845
|
-
}
|
|
86846
|
-
return end === str.length ? str : str.slice(0, end);
|
|
86847
|
-
}
|
|
86848
|
-
function normalizeValue(value) {
|
|
86849
|
-
if (value === false || value == null) {
|
|
86850
|
-
return value;
|
|
86851
|
-
}
|
|
86852
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
86853
|
-
}
|
|
86854
|
-
function parseTokens(str) {
|
|
86855
|
-
const tokens = /* @__PURE__ */ Object.create(null);
|
|
86856
|
-
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
86857
|
-
let match;
|
|
86858
|
-
while (match = tokensRE.exec(str)) {
|
|
86859
|
-
tokens[match[1]] = match[2];
|
|
86860
|
-
}
|
|
86861
|
-
return tokens;
|
|
86862
|
-
}
|
|
86863
|
-
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
86864
|
-
function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
86865
|
-
if (utils_default.isFunction(filter2)) {
|
|
86866
|
-
return filter2.call(this, value, header);
|
|
86867
|
-
}
|
|
86868
|
-
if (isHeaderNameFilter) {
|
|
86869
|
-
value = header;
|
|
86870
|
-
}
|
|
86871
|
-
if (!utils_default.isString(value))
|
|
86872
|
-
return;
|
|
86873
|
-
if (utils_default.isString(filter2)) {
|
|
86874
|
-
return value.indexOf(filter2) !== -1;
|
|
86875
|
-
}
|
|
86876
|
-
if (utils_default.isRegExp(filter2)) {
|
|
86877
|
-
return filter2.test(value);
|
|
86878
|
-
}
|
|
86879
|
-
}
|
|
86880
|
-
function formatHeader(header) {
|
|
86881
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
86882
|
-
return char.toUpperCase() + str;
|
|
86883
|
-
});
|
|
86884
|
-
}
|
|
86885
|
-
function buildAccessors(obj, header) {
|
|
86886
|
-
const accessorName = utils_default.toCamelCase(" " + header);
|
|
86887
|
-
["get", "set", "has"].forEach((methodName) => {
|
|
86888
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
86889
|
-
value: function(arg1, arg2, arg3) {
|
|
86890
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
86891
|
-
},
|
|
86892
|
-
configurable: true
|
|
86893
|
-
});
|
|
86894
|
-
});
|
|
86895
|
-
}
|
|
86896
|
-
var AxiosHeaders = class {
|
|
86897
|
-
constructor(headers) {
|
|
86898
|
-
headers && this.set(headers);
|
|
86899
|
-
}
|
|
86900
|
-
set(header, valueOrRewrite, rewrite) {
|
|
86901
|
-
const self3 = this;
|
|
86902
|
-
function setHeader(_value, _header, _rewrite) {
|
|
86903
|
-
const lHeader = normalizeHeader(_header);
|
|
86904
|
-
if (!lHeader) {
|
|
86905
|
-
throw new Error("header name must be a non-empty string");
|
|
86906
|
-
}
|
|
86907
|
-
const key = utils_default.findKey(self3, lHeader);
|
|
86908
|
-
if (!key || self3[key] === void 0 || _rewrite === true || _rewrite === void 0 && self3[key] !== false) {
|
|
86909
|
-
assertValidHeaderValue(_value, _header);
|
|
86910
|
-
self3[key || _header] = normalizeValue(_value);
|
|
86911
|
-
}
|
|
86912
|
-
}
|
|
86913
|
-
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
86914
|
-
if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
|
|
86915
|
-
setHeaders(header, valueOrRewrite);
|
|
86916
|
-
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
86917
|
-
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
86918
|
-
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
86919
|
-
let obj = {}, dest, key;
|
|
86920
|
-
for (const entry of header) {
|
|
86921
|
-
if (!utils_default.isArray(entry)) {
|
|
86922
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
86923
|
-
}
|
|
86924
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
86925
|
-
}
|
|
86926
|
-
setHeaders(obj, valueOrRewrite);
|
|
86927
|
-
} else {
|
|
86928
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
86929
|
-
}
|
|
86930
|
-
return this;
|
|
86931
|
-
}
|
|
86932
|
-
get(header, parser) {
|
|
86933
|
-
header = normalizeHeader(header);
|
|
86934
|
-
if (header) {
|
|
86935
|
-
const key = utils_default.findKey(this, header);
|
|
86936
|
-
if (key) {
|
|
86937
|
-
const value = this[key];
|
|
86938
|
-
if (!parser) {
|
|
86939
|
-
return value;
|
|
86940
|
-
}
|
|
86941
|
-
if (parser === true) {
|
|
86942
|
-
return parseTokens(value);
|
|
86943
|
-
}
|
|
86944
|
-
if (utils_default.isFunction(parser)) {
|
|
86945
|
-
return parser.call(this, value, key);
|
|
86946
|
-
}
|
|
86947
|
-
if (utils_default.isRegExp(parser)) {
|
|
86948
|
-
return parser.exec(value);
|
|
86949
|
-
}
|
|
86950
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
86951
|
-
}
|
|
86952
|
-
}
|
|
86953
|
-
}
|
|
86954
|
-
has(header, matcher) {
|
|
86955
|
-
header = normalizeHeader(header);
|
|
86956
|
-
if (header) {
|
|
86957
|
-
const key = utils_default.findKey(this, header);
|
|
86958
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
86959
|
-
}
|
|
86960
|
-
return false;
|
|
86961
|
-
}
|
|
86962
|
-
delete(header, matcher) {
|
|
86963
|
-
const self3 = this;
|
|
86964
|
-
let deleted = false;
|
|
86965
|
-
function deleteHeader(_header) {
|
|
86966
|
-
_header = normalizeHeader(_header);
|
|
86967
|
-
if (_header) {
|
|
86968
|
-
const key = utils_default.findKey(self3, _header);
|
|
86969
|
-
if (key && (!matcher || matchHeaderValue(self3, self3[key], key, matcher))) {
|
|
86970
|
-
delete self3[key];
|
|
86971
|
-
deleted = true;
|
|
86972
|
-
}
|
|
86973
|
-
}
|
|
86974
|
-
}
|
|
86975
|
-
if (utils_default.isArray(header)) {
|
|
86976
|
-
header.forEach(deleteHeader);
|
|
86977
|
-
} else {
|
|
86978
|
-
deleteHeader(header);
|
|
86979
|
-
}
|
|
86980
|
-
return deleted;
|
|
86981
|
-
}
|
|
86982
|
-
clear(matcher) {
|
|
86983
|
-
const keys = Object.keys(this);
|
|
86984
|
-
let i = keys.length;
|
|
86985
|
-
let deleted = false;
|
|
86986
|
-
while (i--) {
|
|
86987
|
-
const key = keys[i];
|
|
86988
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
86989
|
-
delete this[key];
|
|
86990
|
-
deleted = true;
|
|
86991
|
-
}
|
|
86992
|
-
}
|
|
86993
|
-
return deleted;
|
|
86994
|
-
}
|
|
86995
|
-
normalize(format) {
|
|
86996
|
-
const self3 = this;
|
|
86997
|
-
const headers = {};
|
|
86998
|
-
utils_default.forEach(this, (value, header) => {
|
|
86999
|
-
const key = utils_default.findKey(headers, header);
|
|
87000
|
-
if (key) {
|
|
87001
|
-
self3[key] = normalizeValue(value);
|
|
87002
|
-
delete self3[header];
|
|
87003
|
-
return;
|
|
87004
|
-
}
|
|
87005
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
87006
|
-
if (normalized !== header) {
|
|
87007
|
-
delete self3[header];
|
|
87008
|
-
}
|
|
87009
|
-
self3[normalized] = normalizeValue(value);
|
|
87010
|
-
headers[normalized] = true;
|
|
87011
|
-
});
|
|
87012
|
-
return this;
|
|
87013
|
-
}
|
|
87014
|
-
concat(...targets) {
|
|
87015
|
-
return this.constructor.concat(this, ...targets);
|
|
87016
|
-
}
|
|
87017
|
-
toJSON(asStrings) {
|
|
87018
|
-
const obj = /* @__PURE__ */ Object.create(null);
|
|
87019
|
-
utils_default.forEach(this, (value, header) => {
|
|
87020
|
-
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
87021
|
-
});
|
|
87022
|
-
return obj;
|
|
87023
|
-
}
|
|
87024
|
-
[Symbol.iterator]() {
|
|
87025
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
87026
|
-
}
|
|
87027
|
-
toString() {
|
|
87028
|
-
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
87029
|
-
}
|
|
87030
|
-
getSetCookie() {
|
|
87031
|
-
return this.get("set-cookie") || [];
|
|
87032
|
-
}
|
|
87033
|
-
get [Symbol.toStringTag]() {
|
|
87034
|
-
return "AxiosHeaders";
|
|
87035
|
-
}
|
|
87036
|
-
static from(thing) {
|
|
87037
|
-
return thing instanceof this ? thing : new this(thing);
|
|
87038
|
-
}
|
|
87039
|
-
static concat(first, ...targets) {
|
|
87040
|
-
const computed2 = new this(first);
|
|
87041
|
-
targets.forEach((target) => computed2.set(target));
|
|
87042
|
-
return computed2;
|
|
87043
|
-
}
|
|
87044
|
-
static accessor(header) {
|
|
87045
|
-
const internals = this[$internals] = this[$internals] = {
|
|
87046
|
-
accessors: {}
|
|
87047
|
-
};
|
|
87048
|
-
const accessors = internals.accessors;
|
|
87049
|
-
const prototype2 = this.prototype;
|
|
87050
|
-
function defineAccessor(_header) {
|
|
87051
|
-
const lHeader = normalizeHeader(_header);
|
|
87052
|
-
if (!accessors[lHeader]) {
|
|
87053
|
-
buildAccessors(prototype2, _header);
|
|
87054
|
-
accessors[lHeader] = true;
|
|
87055
|
-
}
|
|
87056
|
-
}
|
|
87057
|
-
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
87058
|
-
return this;
|
|
87059
|
-
}
|
|
87060
|
-
};
|
|
87061
|
-
AxiosHeaders.accessor([
|
|
87062
|
-
"Content-Type",
|
|
87063
|
-
"Content-Length",
|
|
87064
|
-
"Accept",
|
|
87065
|
-
"Accept-Encoding",
|
|
87066
|
-
"User-Agent",
|
|
87067
|
-
"Authorization"
|
|
87068
|
-
]);
|
|
87069
|
-
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
87070
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
87071
|
-
return {
|
|
87072
|
-
get: () => value,
|
|
87073
|
-
set(headerValue) {
|
|
87074
|
-
this[mapped] = headerValue;
|
|
87075
|
-
}
|
|
87076
|
-
};
|
|
87077
|
-
});
|
|
87078
|
-
utils_default.freezeMethods(AxiosHeaders);
|
|
87079
|
-
var AxiosHeaders_default = AxiosHeaders;
|
|
87080
|
-
|
|
87081
|
-
// ../../../../node_modules/.pnpm/axios@1.15.0_debug@4.3.7/node_modules/axios/lib/core/transformData.js
|
|
87034
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/transformData.js
|
|
87082
87035
|
function transformData(fns, response) {
|
|
87083
87036
|
const config = this || defaults_default;
|
|
87084
87037
|
const context = response || config;
|
|
@@ -87091,12 +87044,12 @@ function transformData(fns, response) {
|
|
|
87091
87044
|
return data;
|
|
87092
87045
|
}
|
|
87093
87046
|
|
|
87094
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87047
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/isCancel.js
|
|
87095
87048
|
function isCancel(value) {
|
|
87096
87049
|
return !!(value && value.__CANCEL__);
|
|
87097
87050
|
}
|
|
87098
87051
|
|
|
87099
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87052
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/CanceledError.js
|
|
87100
87053
|
var CanceledError = class extends AxiosError_default {
|
|
87101
87054
|
/**
|
|
87102
87055
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
@@ -87115,25 +87068,23 @@ var CanceledError = class extends AxiosError_default {
|
|
|
87115
87068
|
};
|
|
87116
87069
|
var CanceledError_default = CanceledError;
|
|
87117
87070
|
|
|
87118
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87071
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/settle.js
|
|
87119
87072
|
function settle(resolve, reject, response) {
|
|
87120
87073
|
const validateStatus2 = response.config.validateStatus;
|
|
87121
87074
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
87122
87075
|
resolve(response);
|
|
87123
87076
|
} else {
|
|
87124
|
-
reject(
|
|
87125
|
-
|
|
87126
|
-
|
|
87127
|
-
|
|
87128
|
-
|
|
87129
|
-
|
|
87130
|
-
|
|
87131
|
-
)
|
|
87132
|
-
);
|
|
87077
|
+
reject(new AxiosError_default(
|
|
87078
|
+
"Request failed with status code " + response.status,
|
|
87079
|
+
response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
|
|
87080
|
+
response.config,
|
|
87081
|
+
response.request,
|
|
87082
|
+
response
|
|
87083
|
+
));
|
|
87133
87084
|
}
|
|
87134
87085
|
}
|
|
87135
87086
|
|
|
87136
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87087
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
87137
87088
|
function isAbsoluteURL(url2) {
|
|
87138
87089
|
if (typeof url2 !== "string") {
|
|
87139
87090
|
return false;
|
|
@@ -87141,15 +87092,15 @@ function isAbsoluteURL(url2) {
|
|
|
87141
87092
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
87142
87093
|
}
|
|
87143
87094
|
|
|
87144
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87095
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/combineURLs.js
|
|
87145
87096
|
function combineURLs(baseURL, relativeURL) {
|
|
87146
87097
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
87147
87098
|
}
|
|
87148
87099
|
|
|
87149
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87100
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/buildFullPath.js
|
|
87150
87101
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
87151
87102
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
87152
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
87103
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
87153
87104
|
return combineURLs(baseURL, requestedURL);
|
|
87154
87105
|
}
|
|
87155
87106
|
return requestedURL;
|
|
@@ -87222,25 +87173,27 @@ function getEnv(key) {
|
|
|
87222
87173
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
87223
87174
|
}
|
|
87224
87175
|
|
|
87225
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87176
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
87177
|
+
var import_https_proxy_agent = __toESM(require_dist());
|
|
87226
87178
|
var import_http = __toESM(require("http"));
|
|
87227
87179
|
var import_https = __toESM(require("https"));
|
|
87228
87180
|
var import_http2 = __toESM(require("http2"));
|
|
87229
87181
|
var import_util2 = __toESM(require("util"));
|
|
87182
|
+
var import_path = require("path");
|
|
87230
87183
|
var import_follow_redirects = __toESM(require_follow_redirects());
|
|
87231
87184
|
var import_zlib = __toESM(require("zlib"));
|
|
87232
87185
|
|
|
87233
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87234
|
-
var VERSION = "1.
|
|
87186
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/env/data.js
|
|
87187
|
+
var VERSION = "1.16.1";
|
|
87235
87188
|
|
|
87236
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87189
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/parseProtocol.js
|
|
87237
87190
|
function parseProtocol(url2) {
|
|
87238
|
-
const match = /^([-+\w]{1,25})(
|
|
87191
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
87239
87192
|
return match && match[1] || "";
|
|
87240
87193
|
}
|
|
87241
87194
|
|
|
87242
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87243
|
-
var DATA_URL_PATTERN = /^(
|
|
87195
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/fromDataURI.js
|
|
87196
|
+
var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
|
|
87244
87197
|
function fromDataURI(uri, asBlob, options) {
|
|
87245
87198
|
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
87246
87199
|
const protocol = parseProtocol(uri);
|
|
@@ -87253,10 +87206,17 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
87253
87206
|
if (!match) {
|
|
87254
87207
|
throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
|
|
87255
87208
|
}
|
|
87256
|
-
const
|
|
87257
|
-
const
|
|
87258
|
-
const
|
|
87259
|
-
const
|
|
87209
|
+
const type = match[1];
|
|
87210
|
+
const params = match[2];
|
|
87211
|
+
const encoding = match[3] ? "base64" : "utf8";
|
|
87212
|
+
const body = match[4];
|
|
87213
|
+
let mime;
|
|
87214
|
+
if (type) {
|
|
87215
|
+
mime = params ? type + params : type;
|
|
87216
|
+
} else if (params) {
|
|
87217
|
+
mime = "text/plain" + params;
|
|
87218
|
+
}
|
|
87219
|
+
const buffer = Buffer.from(decodeURIComponent(body), encoding);
|
|
87260
87220
|
if (asBlob) {
|
|
87261
87221
|
if (!_Blob) {
|
|
87262
87222
|
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
@@ -87268,10 +87228,10 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
87268
87228
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
87269
87229
|
}
|
|
87270
87230
|
|
|
87271
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87231
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
87272
87232
|
var import_stream4 = __toESM(require("stream"));
|
|
87273
87233
|
|
|
87274
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87234
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
87275
87235
|
var import_stream = __toESM(require("stream"));
|
|
87276
87236
|
var kInternals = Symbol("internals");
|
|
87277
87237
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
@@ -87394,14 +87354,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
87394
87354
|
};
|
|
87395
87355
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
87396
87356
|
|
|
87397
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87357
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
87398
87358
|
var import_events = require("events");
|
|
87399
87359
|
|
|
87400
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87360
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
87401
87361
|
var import_util = __toESM(require("util"));
|
|
87402
87362
|
var import_stream2 = require("stream");
|
|
87403
87363
|
|
|
87404
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87364
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/readBlob.js
|
|
87405
87365
|
var { asyncIterator } = Symbol;
|
|
87406
87366
|
var readBlob = function(blob) {
|
|
87407
87367
|
return __asyncGenerator(this, null, function* () {
|
|
@@ -87418,7 +87378,7 @@ var readBlob = function(blob) {
|
|
|
87418
87378
|
};
|
|
87419
87379
|
var readBlob_default = readBlob;
|
|
87420
87380
|
|
|
87421
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87381
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
87422
87382
|
var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
87423
87383
|
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new import_util.default.TextEncoder();
|
|
87424
87384
|
var CRLF = "\r\n";
|
|
@@ -87432,7 +87392,8 @@ var FormDataPart = class {
|
|
|
87432
87392
|
if (isStringValue) {
|
|
87433
87393
|
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
|
87434
87394
|
} else {
|
|
87435
|
-
|
|
87395
|
+
const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
|
|
87396
|
+
headers += `Content-Type: ${safeType}${CRLF}`;
|
|
87436
87397
|
}
|
|
87437
87398
|
this.headers = textEncoder.encode(headers + CRLF);
|
|
87438
87399
|
this.contentLength = isStringValue ? value.byteLength : value.size;
|
|
@@ -87473,7 +87434,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
87473
87434
|
throw TypeError("FormData instance required");
|
|
87474
87435
|
}
|
|
87475
87436
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
87476
|
-
throw Error("boundary must be
|
|
87437
|
+
throw Error("boundary must be 1-70 characters long");
|
|
87477
87438
|
}
|
|
87478
87439
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
87479
87440
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -87506,7 +87467,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
87506
87467
|
};
|
|
87507
87468
|
var formDataToStream_default = formDataToStream;
|
|
87508
87469
|
|
|
87509
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87470
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
87510
87471
|
var import_stream3 = __toESM(require("stream"));
|
|
87511
87472
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
87512
87473
|
__transform(chunk, encoding, callback) {
|
|
@@ -87528,7 +87489,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
|
87528
87489
|
};
|
|
87529
87490
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
87530
87491
|
|
|
87531
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87492
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/callbackify.js
|
|
87532
87493
|
var callbackify = (fn, reducer) => {
|
|
87533
87494
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
87534
87495
|
const cb = args.pop();
|
|
@@ -87543,7 +87504,46 @@ var callbackify = (fn, reducer) => {
|
|
|
87543
87504
|
};
|
|
87544
87505
|
var callbackify_default = callbackify;
|
|
87545
87506
|
|
|
87546
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87507
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/shouldBypassProxy.js
|
|
87508
|
+
var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
|
|
87509
|
+
var isIPv4Loopback = (host) => {
|
|
87510
|
+
const parts = host.split(".");
|
|
87511
|
+
if (parts.length !== 4)
|
|
87512
|
+
return false;
|
|
87513
|
+
if (parts[0] !== "127")
|
|
87514
|
+
return false;
|
|
87515
|
+
return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
|
|
87516
|
+
};
|
|
87517
|
+
var isIPv6Loopback = (host) => {
|
|
87518
|
+
if (host === "::1")
|
|
87519
|
+
return true;
|
|
87520
|
+
const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
|
|
87521
|
+
if (v4MappedDotted)
|
|
87522
|
+
return isIPv4Loopback(v4MappedDotted[1]);
|
|
87523
|
+
const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
|
|
87524
|
+
if (v4MappedHex) {
|
|
87525
|
+
const high = parseInt(v4MappedHex[1], 16);
|
|
87526
|
+
return high >= 32512 && high <= 32767;
|
|
87527
|
+
}
|
|
87528
|
+
const groups = host.split(":");
|
|
87529
|
+
if (groups.length === 8) {
|
|
87530
|
+
for (let i = 0; i < 7; i++) {
|
|
87531
|
+
if (!/^0+$/.test(groups[i]))
|
|
87532
|
+
return false;
|
|
87533
|
+
}
|
|
87534
|
+
return /^0*1$/.test(groups[7]);
|
|
87535
|
+
}
|
|
87536
|
+
return false;
|
|
87537
|
+
};
|
|
87538
|
+
var isLoopback = (host) => {
|
|
87539
|
+
if (!host)
|
|
87540
|
+
return false;
|
|
87541
|
+
if (LOOPBACK_HOSTNAMES.has(host))
|
|
87542
|
+
return true;
|
|
87543
|
+
if (isIPv4Loopback(host))
|
|
87544
|
+
return true;
|
|
87545
|
+
return isIPv6Loopback(host);
|
|
87546
|
+
};
|
|
87547
87547
|
var DEFAULT_PORTS2 = {
|
|
87548
87548
|
http: 80,
|
|
87549
87549
|
https: 443,
|
|
@@ -87573,6 +87573,22 @@ var parseNoProxyEntry = (entry) => {
|
|
|
87573
87573
|
}
|
|
87574
87574
|
return [entryHost, entryPort];
|
|
87575
87575
|
};
|
|
87576
|
+
var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
87577
|
+
var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
87578
|
+
var unmapIPv4MappedIPv6 = (host) => {
|
|
87579
|
+
if (typeof host !== "string" || host.indexOf(":") === -1)
|
|
87580
|
+
return host;
|
|
87581
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
87582
|
+
if (dotted)
|
|
87583
|
+
return dotted[1];
|
|
87584
|
+
const hex = host.match(IPV4_MAPPED_HEX_RE);
|
|
87585
|
+
if (hex) {
|
|
87586
|
+
const high = parseInt(hex[1], 16);
|
|
87587
|
+
const low = parseInt(hex[2], 16);
|
|
87588
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
87589
|
+
}
|
|
87590
|
+
return host;
|
|
87591
|
+
};
|
|
87576
87592
|
var normalizeNoProxyHost = (hostname) => {
|
|
87577
87593
|
if (!hostname) {
|
|
87578
87594
|
return hostname;
|
|
@@ -87580,7 +87596,7 @@ var normalizeNoProxyHost = (hostname) => {
|
|
|
87580
87596
|
if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
|
|
87581
87597
|
hostname = hostname.slice(1, -1);
|
|
87582
87598
|
}
|
|
87583
|
-
return hostname.replace(/\.+$/, "");
|
|
87599
|
+
return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
|
|
87584
87600
|
};
|
|
87585
87601
|
function shouldBypassProxy(location) {
|
|
87586
87602
|
let parsed;
|
|
@@ -87616,11 +87632,11 @@ function shouldBypassProxy(location) {
|
|
|
87616
87632
|
if (entryHost.charAt(0) === ".") {
|
|
87617
87633
|
return hostname.endsWith(entryHost);
|
|
87618
87634
|
}
|
|
87619
|
-
return hostname === entryHost;
|
|
87635
|
+
return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
|
|
87620
87636
|
});
|
|
87621
87637
|
}
|
|
87622
87638
|
|
|
87623
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87639
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/speedometer.js
|
|
87624
87640
|
function speedometer(samplesCount, min) {
|
|
87625
87641
|
samplesCount = samplesCount || 10;
|
|
87626
87642
|
const bytes = new Array(samplesCount);
|
|
@@ -87656,7 +87672,7 @@ function speedometer(samplesCount, min) {
|
|
|
87656
87672
|
}
|
|
87657
87673
|
var speedometer_default = speedometer;
|
|
87658
87674
|
|
|
87659
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87675
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/throttle.js
|
|
87660
87676
|
function throttle(fn, freq) {
|
|
87661
87677
|
let timestamp = 0;
|
|
87662
87678
|
let threshold = 1e3 / freq;
|
|
@@ -87691,24 +87707,27 @@ function throttle(fn, freq) {
|
|
|
87691
87707
|
}
|
|
87692
87708
|
var throttle_default = throttle;
|
|
87693
87709
|
|
|
87694
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87710
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
87695
87711
|
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
87696
87712
|
let bytesNotified = 0;
|
|
87697
87713
|
const _speedometer = speedometer_default(50, 250);
|
|
87698
87714
|
return throttle_default((e) => {
|
|
87699
|
-
|
|
87715
|
+
if (!e || typeof e.loaded !== "number") {
|
|
87716
|
+
return;
|
|
87717
|
+
}
|
|
87718
|
+
const rawLoaded = e.loaded;
|
|
87700
87719
|
const total = e.lengthComputable ? e.total : void 0;
|
|
87701
|
-
const
|
|
87720
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
87721
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
87702
87722
|
const rate = _speedometer(progressBytes);
|
|
87703
|
-
|
|
87704
|
-
bytesNotified = loaded;
|
|
87723
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
87705
87724
|
const data = {
|
|
87706
87725
|
loaded,
|
|
87707
87726
|
total,
|
|
87708
87727
|
progress: total ? loaded / total : void 0,
|
|
87709
87728
|
bytes: progressBytes,
|
|
87710
87729
|
rate: rate ? rate : void 0,
|
|
87711
|
-
estimated: rate && total
|
|
87730
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
87712
87731
|
event: e,
|
|
87713
87732
|
lengthComputable: total != null,
|
|
87714
87733
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -87729,7 +87748,7 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
87729
87748
|
};
|
|
87730
87749
|
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
87731
87750
|
|
|
87732
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87751
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
87733
87752
|
function estimateDataURLDecodedBytes(url2) {
|
|
87734
87753
|
if (!url2 || typeof url2 !== "string")
|
|
87735
87754
|
return 0;
|
|
@@ -87777,13 +87796,35 @@ function estimateDataURLDecodedBytes(url2) {
|
|
|
87777
87796
|
}
|
|
87778
87797
|
}
|
|
87779
87798
|
const groups = Math.floor(effectiveLen / 4);
|
|
87780
|
-
const
|
|
87781
|
-
return
|
|
87799
|
+
const bytes2 = groups * 3 - (pad || 0);
|
|
87800
|
+
return bytes2 > 0 ? bytes2 : 0;
|
|
87801
|
+
}
|
|
87802
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
|
|
87803
|
+
return Buffer.byteLength(body, "utf8");
|
|
87804
|
+
}
|
|
87805
|
+
let bytes = 0;
|
|
87806
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
87807
|
+
const c = body.charCodeAt(i);
|
|
87808
|
+
if (c < 128) {
|
|
87809
|
+
bytes += 1;
|
|
87810
|
+
} else if (c < 2048) {
|
|
87811
|
+
bytes += 2;
|
|
87812
|
+
} else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
87813
|
+
const next = body.charCodeAt(i + 1);
|
|
87814
|
+
if (next >= 56320 && next <= 57343) {
|
|
87815
|
+
bytes += 4;
|
|
87816
|
+
i++;
|
|
87817
|
+
} else {
|
|
87818
|
+
bytes += 3;
|
|
87819
|
+
}
|
|
87820
|
+
} else {
|
|
87821
|
+
bytes += 3;
|
|
87822
|
+
}
|
|
87782
87823
|
}
|
|
87783
|
-
return
|
|
87824
|
+
return bytes;
|
|
87784
87825
|
}
|
|
87785
87826
|
|
|
87786
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
87827
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/http.js
|
|
87787
87828
|
var zlibOptions = {
|
|
87788
87829
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
87789
87830
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -87795,9 +87836,48 @@ var brotliOptions = {
|
|
|
87795
87836
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
|
87796
87837
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
87797
87838
|
var isHttps = /https:?/;
|
|
87839
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
87840
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
87841
|
+
if (policy !== "content-only") {
|
|
87842
|
+
headers.set(formHeaders);
|
|
87843
|
+
return;
|
|
87844
|
+
}
|
|
87845
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
87846
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
87847
|
+
headers.set(key, val);
|
|
87848
|
+
}
|
|
87849
|
+
});
|
|
87850
|
+
}
|
|
87851
|
+
var kAxiosSocketListener = Symbol("axios.http.socketListener");
|
|
87852
|
+
var kAxiosCurrentReq = Symbol("axios.http.currentReq");
|
|
87853
|
+
var kAxiosInstalledTunnel = Symbol("axios.http.installedTunnel");
|
|
87854
|
+
var tunnelingAgentCache = /* @__PURE__ */ new Map();
|
|
87855
|
+
var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
|
|
87856
|
+
function getTunnelingAgent(agentOptions, userHttpsAgent) {
|
|
87857
|
+
const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
|
|
87858
|
+
const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
|
|
87859
|
+
let agent = cache.get(key);
|
|
87860
|
+
if (agent)
|
|
87861
|
+
return agent;
|
|
87862
|
+
const merged = userHttpsAgent && userHttpsAgent.options ? __spreadValues(__spreadValues({}, userHttpsAgent.options), agentOptions) : agentOptions;
|
|
87863
|
+
agent = new import_https_proxy_agent.default(merged);
|
|
87864
|
+
agent[kAxiosInstalledTunnel] = true;
|
|
87865
|
+
cache.set(key, agent);
|
|
87866
|
+
return agent;
|
|
87867
|
+
}
|
|
87798
87868
|
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
87799
87869
|
return protocol + ":";
|
|
87800
87870
|
});
|
|
87871
|
+
var decodeURIComponentSafe = (value) => {
|
|
87872
|
+
if (!utils_default.isString(value)) {
|
|
87873
|
+
return value;
|
|
87874
|
+
}
|
|
87875
|
+
try {
|
|
87876
|
+
return decodeURIComponent(value);
|
|
87877
|
+
} catch (error) {
|
|
87878
|
+
return value;
|
|
87879
|
+
}
|
|
87880
|
+
};
|
|
87801
87881
|
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
87802
87882
|
stream4.on("end", flush).on("error", flush);
|
|
87803
87883
|
return throttled;
|
|
@@ -87875,15 +87955,15 @@ var Http2Sessions = class {
|
|
|
87875
87955
|
}
|
|
87876
87956
|
};
|
|
87877
87957
|
var http2Sessions = new Http2Sessions();
|
|
87878
|
-
function dispatchBeforeRedirect(options, responseDetails) {
|
|
87958
|
+
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
87879
87959
|
if (options.beforeRedirects.proxy) {
|
|
87880
87960
|
options.beforeRedirects.proxy(options);
|
|
87881
87961
|
}
|
|
87882
87962
|
if (options.beforeRedirects.config) {
|
|
87883
|
-
options.beforeRedirects.config(options, responseDetails);
|
|
87963
|
+
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
87884
87964
|
}
|
|
87885
87965
|
}
|
|
87886
|
-
function setProxy(options, configProxy, location) {
|
|
87966
|
+
function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
|
|
87887
87967
|
let proxy = configProxy;
|
|
87888
87968
|
if (!proxy && proxy !== false) {
|
|
87889
87969
|
const proxyUrl = getProxyForUrl(location);
|
|
@@ -87893,32 +87973,90 @@ function setProxy(options, configProxy, location) {
|
|
|
87893
87973
|
}
|
|
87894
87974
|
}
|
|
87895
87975
|
}
|
|
87896
|
-
if (
|
|
87897
|
-
|
|
87898
|
-
|
|
87976
|
+
if (isRedirect && options.headers) {
|
|
87977
|
+
for (const name of Object.keys(options.headers)) {
|
|
87978
|
+
if (name.toLowerCase() === "proxy-authorization") {
|
|
87979
|
+
delete options.headers[name];
|
|
87980
|
+
}
|
|
87899
87981
|
}
|
|
87900
|
-
|
|
87901
|
-
|
|
87982
|
+
}
|
|
87983
|
+
if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
|
|
87984
|
+
options.agent = void 0;
|
|
87985
|
+
}
|
|
87986
|
+
if (proxy) {
|
|
87987
|
+
const isProxyURL = proxy instanceof URL;
|
|
87988
|
+
const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
|
|
87989
|
+
const proxyUsername = readProxyField("username");
|
|
87990
|
+
const proxyPassword = readProxyField("password");
|
|
87991
|
+
let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
|
|
87992
|
+
if (proxyUsername) {
|
|
87993
|
+
proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
|
|
87994
|
+
}
|
|
87995
|
+
if (proxyAuth) {
|
|
87996
|
+
const authIsObject = typeof proxyAuth === "object";
|
|
87997
|
+
const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
|
|
87998
|
+
const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
|
|
87999
|
+
const validProxyAuth = Boolean(authUsername || authPassword);
|
|
87902
88000
|
if (validProxyAuth) {
|
|
87903
|
-
|
|
87904
|
-
} else if (
|
|
88001
|
+
proxyAuth = (authUsername || "") + ":" + (authPassword || "");
|
|
88002
|
+
} else if (authIsObject) {
|
|
87905
88003
|
throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
|
|
87906
88004
|
}
|
|
87907
|
-
const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
|
|
87908
|
-
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
87909
88005
|
}
|
|
87910
|
-
|
|
87911
|
-
|
|
87912
|
-
|
|
87913
|
-
|
|
87914
|
-
|
|
87915
|
-
|
|
87916
|
-
|
|
87917
|
-
|
|
88006
|
+
const targetIsHttps = isHttps.test(options.protocol);
|
|
88007
|
+
if (targetIsHttps) {
|
|
88008
|
+
if (!(configHttpsAgent instanceof import_https_proxy_agent.default)) {
|
|
88009
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
88010
|
+
const proxyPort = readProxyField("port");
|
|
88011
|
+
const rawProxyProtocol = readProxyField("protocol");
|
|
88012
|
+
const normalizedProtocol = rawProxyProtocol ? rawProxyProtocol.includes(":") ? rawProxyProtocol : `${rawProxyProtocol}:` : "http:";
|
|
88013
|
+
const proxyHostForURL = proxyHost && proxyHost.includes(":") && !proxyHost.startsWith("[") ? `[${proxyHost}]` : proxyHost;
|
|
88014
|
+
const proxyURL = new URL(
|
|
88015
|
+
`${normalizedProtocol}//${proxyHostForURL}${proxyPort ? ":" + proxyPort : ""}`
|
|
88016
|
+
);
|
|
88017
|
+
const agentOptions = {
|
|
88018
|
+
protocol: proxyURL.protocol,
|
|
88019
|
+
hostname: proxyURL.hostname.replace(/^\[|\]$/g, ""),
|
|
88020
|
+
port: proxyURL.port,
|
|
88021
|
+
auth: proxyAuth && typeof proxyAuth === "string" ? proxyAuth : void 0
|
|
88022
|
+
};
|
|
88023
|
+
if (proxyURL.protocol === "https:") {
|
|
88024
|
+
agentOptions.ALPNProtocols = ["http/1.1"];
|
|
88025
|
+
}
|
|
88026
|
+
const tunnelingAgent = getTunnelingAgent(agentOptions, configHttpsAgent);
|
|
88027
|
+
options.agent = tunnelingAgent;
|
|
88028
|
+
if (options.agents) {
|
|
88029
|
+
options.agents.https = tunnelingAgent;
|
|
88030
|
+
}
|
|
88031
|
+
}
|
|
88032
|
+
} else {
|
|
88033
|
+
if (proxyAuth) {
|
|
88034
|
+
const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
|
|
88035
|
+
options.headers["Proxy-Authorization"] = "Basic " + base64;
|
|
88036
|
+
}
|
|
88037
|
+
let hasUserHostHeader = false;
|
|
88038
|
+
for (const name of Object.keys(options.headers)) {
|
|
88039
|
+
if (name.toLowerCase() === "host") {
|
|
88040
|
+
hasUserHostHeader = true;
|
|
88041
|
+
break;
|
|
88042
|
+
}
|
|
88043
|
+
}
|
|
88044
|
+
if (!hasUserHostHeader) {
|
|
88045
|
+
options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
|
|
88046
|
+
}
|
|
88047
|
+
const proxyHost = readProxyField("hostname") || readProxyField("host");
|
|
88048
|
+
options.hostname = proxyHost;
|
|
88049
|
+
options.host = proxyHost;
|
|
88050
|
+
options.port = readProxyField("port");
|
|
88051
|
+
options.path = location;
|
|
88052
|
+
const proxyProtocol = readProxyField("protocol");
|
|
88053
|
+
if (proxyProtocol) {
|
|
88054
|
+
options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
|
|
88055
|
+
}
|
|
87918
88056
|
}
|
|
87919
88057
|
}
|
|
87920
88058
|
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
|
87921
|
-
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
|
88059
|
+
setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
|
|
87922
88060
|
};
|
|
87923
88061
|
}
|
|
87924
88062
|
var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
@@ -87983,12 +88121,21 @@ var http2Transport = {
|
|
|
87983
88121
|
var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
87984
88122
|
return wrapAsync(function dispatchHttpRequest(resolve, reject, onDone) {
|
|
87985
88123
|
return __async(this, null, function* () {
|
|
87986
|
-
|
|
87987
|
-
|
|
88124
|
+
const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
88125
|
+
let data = own2("data");
|
|
88126
|
+
let lookup = own2("lookup");
|
|
88127
|
+
let family = own2("family");
|
|
88128
|
+
let httpVersion = own2("httpVersion");
|
|
88129
|
+
if (httpVersion === void 0)
|
|
88130
|
+
httpVersion = 1;
|
|
88131
|
+
let http2Options = own2("http2Options");
|
|
88132
|
+
const responseType = own2("responseType");
|
|
88133
|
+
const responseEncoding = own2("responseEncoding");
|
|
87988
88134
|
const method = config.method.toUpperCase();
|
|
87989
88135
|
let isDone;
|
|
87990
88136
|
let rejected = false;
|
|
87991
88137
|
let req;
|
|
88138
|
+
let connectPhaseTimer;
|
|
87992
88139
|
httpVersion = +httpVersion;
|
|
87993
88140
|
if (Number.isNaN(httpVersion)) {
|
|
87994
88141
|
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
|
|
@@ -88020,8 +88167,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88020
88167
|
console.warn("emit error", err);
|
|
88021
88168
|
}
|
|
88022
88169
|
}
|
|
88170
|
+
function clearConnectPhaseTimer() {
|
|
88171
|
+
if (connectPhaseTimer) {
|
|
88172
|
+
clearTimeout(connectPhaseTimer);
|
|
88173
|
+
connectPhaseTimer = null;
|
|
88174
|
+
}
|
|
88175
|
+
}
|
|
88176
|
+
function createTimeoutError() {
|
|
88177
|
+
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
88178
|
+
const transitional2 = config.transitional || transitional_default;
|
|
88179
|
+
if (config.timeoutErrorMessage) {
|
|
88180
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
88181
|
+
}
|
|
88182
|
+
return new AxiosError_default(
|
|
88183
|
+
timeoutErrorMessage,
|
|
88184
|
+
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
88185
|
+
config,
|
|
88186
|
+
req
|
|
88187
|
+
);
|
|
88188
|
+
}
|
|
88023
88189
|
abortEmitter.once("abort", reject);
|
|
88024
88190
|
const onFinished = () => {
|
|
88191
|
+
clearConnectPhaseTimer();
|
|
88025
88192
|
if (config.cancelToken) {
|
|
88026
88193
|
config.cancelToken.unsubscribe(abort);
|
|
88027
88194
|
}
|
|
@@ -88038,6 +88205,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88038
88205
|
}
|
|
88039
88206
|
onDone((response, isRejected) => {
|
|
88040
88207
|
isDone = true;
|
|
88208
|
+
clearConnectPhaseTimer();
|
|
88041
88209
|
if (isRejected) {
|
|
88042
88210
|
rejected = true;
|
|
88043
88211
|
onFinished();
|
|
@@ -88125,8 +88293,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88125
88293
|
boundary: userBoundary && userBoundary[1] || void 0
|
|
88126
88294
|
}
|
|
88127
88295
|
);
|
|
88128
|
-
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
|
|
88129
|
-
headers
|
|
88296
|
+
} else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
|
|
88297
|
+
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
88130
88298
|
if (!headers.hasContentLength()) {
|
|
88131
88299
|
try {
|
|
88132
88300
|
const knownLength = yield import_util2.default.promisify(data.getLength).call(data);
|
|
@@ -88196,14 +88364,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88196
88364
|
);
|
|
88197
88365
|
}
|
|
88198
88366
|
let auth = void 0;
|
|
88199
|
-
|
|
88200
|
-
|
|
88201
|
-
const
|
|
88367
|
+
const configAuth = own2("auth");
|
|
88368
|
+
if (configAuth) {
|
|
88369
|
+
const username = configAuth.username || "";
|
|
88370
|
+
const password = configAuth.password || "";
|
|
88202
88371
|
auth = username + ":" + password;
|
|
88203
88372
|
}
|
|
88204
88373
|
if (!auth && parsed.username) {
|
|
88205
|
-
const urlUsername = parsed.username;
|
|
88206
|
-
const urlPassword = parsed.password;
|
|
88374
|
+
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
88375
|
+
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
88207
88376
|
auth = urlUsername + ":" + urlPassword;
|
|
88208
88377
|
}
|
|
88209
88378
|
auth && headers.delete("authorization");
|
|
@@ -88226,20 +88395,41 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88226
88395
|
"gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
|
|
88227
88396
|
false
|
|
88228
88397
|
);
|
|
88229
|
-
const options = {
|
|
88398
|
+
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
88230
88399
|
path: path5,
|
|
88231
88400
|
method,
|
|
88232
|
-
headers: headers
|
|
88401
|
+
headers: toByteStringHeaderObject(headers),
|
|
88233
88402
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
88234
88403
|
auth,
|
|
88235
88404
|
protocol,
|
|
88236
88405
|
family,
|
|
88237
88406
|
beforeRedirect: dispatchBeforeRedirect,
|
|
88238
|
-
beforeRedirects:
|
|
88407
|
+
beforeRedirects: /* @__PURE__ */ Object.create(null),
|
|
88239
88408
|
http2Options
|
|
88240
|
-
};
|
|
88409
|
+
});
|
|
88241
88410
|
!utils_default.isUndefined(lookup) && (options.lookup = lookup);
|
|
88242
88411
|
if (config.socketPath) {
|
|
88412
|
+
if (typeof config.socketPath !== "string") {
|
|
88413
|
+
return reject(
|
|
88414
|
+
new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
|
|
88415
|
+
);
|
|
88416
|
+
}
|
|
88417
|
+
if (config.allowedSocketPaths != null) {
|
|
88418
|
+
const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
|
|
88419
|
+
const resolvedSocket = (0, import_path.resolve)(config.socketPath);
|
|
88420
|
+
const isAllowed = allowed.some(
|
|
88421
|
+
(entry) => typeof entry === "string" && (0, import_path.resolve)(entry) === resolvedSocket
|
|
88422
|
+
);
|
|
88423
|
+
if (!isAllowed) {
|
|
88424
|
+
return reject(
|
|
88425
|
+
new AxiosError_default(
|
|
88426
|
+
`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
|
|
88427
|
+
AxiosError_default.ERR_BAD_OPTION_VALUE,
|
|
88428
|
+
config
|
|
88429
|
+
)
|
|
88430
|
+
);
|
|
88431
|
+
}
|
|
88432
|
+
}
|
|
88243
88433
|
options.socketPath = config.socketPath;
|
|
88244
88434
|
} else {
|
|
88245
88435
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
@@ -88247,25 +88437,33 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88247
88437
|
setProxy(
|
|
88248
88438
|
options,
|
|
88249
88439
|
config.proxy,
|
|
88250
|
-
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
|
|
88440
|
+
protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
|
|
88441
|
+
false,
|
|
88442
|
+
config.httpsAgent
|
|
88251
88443
|
);
|
|
88252
88444
|
}
|
|
88253
88445
|
let transport;
|
|
88446
|
+
let isNativeTransport = false;
|
|
88254
88447
|
const isHttpsRequest = isHttps.test(options.protocol);
|
|
88255
|
-
options.agent
|
|
88448
|
+
if (options.agent == null) {
|
|
88449
|
+
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
|
88450
|
+
}
|
|
88256
88451
|
if (isHttp2) {
|
|
88257
88452
|
transport = http2Transport;
|
|
88258
88453
|
} else {
|
|
88259
|
-
|
|
88260
|
-
|
|
88454
|
+
const configTransport = own2("transport");
|
|
88455
|
+
if (configTransport) {
|
|
88456
|
+
transport = configTransport;
|
|
88261
88457
|
} else if (config.maxRedirects === 0) {
|
|
88262
88458
|
transport = isHttpsRequest ? import_https.default : import_http.default;
|
|
88459
|
+
isNativeTransport = true;
|
|
88263
88460
|
} else {
|
|
88264
88461
|
if (config.maxRedirects) {
|
|
88265
88462
|
options.maxRedirects = config.maxRedirects;
|
|
88266
88463
|
}
|
|
88267
|
-
|
|
88268
|
-
|
|
88464
|
+
const configBeforeRedirect = own2("beforeRedirect");
|
|
88465
|
+
if (configBeforeRedirect) {
|
|
88466
|
+
options.beforeRedirects.config = configBeforeRedirect;
|
|
88269
88467
|
}
|
|
88270
88468
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
88271
88469
|
}
|
|
@@ -88275,10 +88473,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88275
88473
|
} else {
|
|
88276
88474
|
options.maxBodyLength = Infinity;
|
|
88277
88475
|
}
|
|
88278
|
-
|
|
88279
|
-
options.insecureHTTPParser = config.insecureHTTPParser;
|
|
88280
|
-
}
|
|
88476
|
+
options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
|
|
88281
88477
|
req = transport.request(options, function handleResponse(res) {
|
|
88478
|
+
clearConnectPhaseTimer();
|
|
88282
88479
|
if (req.destroyed)
|
|
88283
88480
|
return;
|
|
88284
88481
|
const streams = [res];
|
|
@@ -88334,6 +88531,42 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88334
88531
|
request: lastRequest
|
|
88335
88532
|
};
|
|
88336
88533
|
if (responseType === "stream") {
|
|
88534
|
+
if (config.maxContentLength > -1) {
|
|
88535
|
+
const limit = config.maxContentLength;
|
|
88536
|
+
const source = responseStream;
|
|
88537
|
+
function enforceMaxContentLength() {
|
|
88538
|
+
return __asyncGenerator(this, null, function* () {
|
|
88539
|
+
let totalResponseBytes = 0;
|
|
88540
|
+
try {
|
|
88541
|
+
for (var iter = __forAwait(source), more, temp, error; more = !(temp = yield new __await(iter.next())).done; more = false) {
|
|
88542
|
+
const chunk = temp.value;
|
|
88543
|
+
totalResponseBytes += chunk.length;
|
|
88544
|
+
if (totalResponseBytes > limit) {
|
|
88545
|
+
throw new AxiosError_default(
|
|
88546
|
+
"maxContentLength size of " + limit + " exceeded",
|
|
88547
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
88548
|
+
config,
|
|
88549
|
+
lastRequest
|
|
88550
|
+
);
|
|
88551
|
+
}
|
|
88552
|
+
yield chunk;
|
|
88553
|
+
}
|
|
88554
|
+
} catch (temp) {
|
|
88555
|
+
error = [temp];
|
|
88556
|
+
} finally {
|
|
88557
|
+
try {
|
|
88558
|
+
more && (temp = iter.return) && (yield new __await(temp.call(iter)));
|
|
88559
|
+
} finally {
|
|
88560
|
+
if (error)
|
|
88561
|
+
throw error[0];
|
|
88562
|
+
}
|
|
88563
|
+
}
|
|
88564
|
+
});
|
|
88565
|
+
}
|
|
88566
|
+
responseStream = import_stream4.default.Readable.from(enforceMaxContentLength(), {
|
|
88567
|
+
objectMode: false
|
|
88568
|
+
});
|
|
88569
|
+
}
|
|
88337
88570
|
response.data = responseStream;
|
|
88338
88571
|
settle(resolve, reject, response);
|
|
88339
88572
|
} else {
|
|
@@ -88363,15 +88596,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88363
88596
|
"stream has been aborted",
|
|
88364
88597
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
88365
88598
|
config,
|
|
88366
|
-
lastRequest
|
|
88599
|
+
lastRequest,
|
|
88600
|
+
response
|
|
88367
88601
|
);
|
|
88368
88602
|
responseStream.destroy(err);
|
|
88369
88603
|
reject(err);
|
|
88370
88604
|
});
|
|
88371
88605
|
responseStream.on("error", function handleStreamError(err) {
|
|
88372
|
-
if (
|
|
88606
|
+
if (rejected)
|
|
88373
88607
|
return;
|
|
88374
|
-
reject(AxiosError_default.from(err, null, config, lastRequest));
|
|
88608
|
+
reject(AxiosError_default.from(err, null, config, lastRequest, response));
|
|
88375
88609
|
});
|
|
88376
88610
|
responseStream.on("end", function handleStreamEnd() {
|
|
88377
88611
|
try {
|
|
@@ -88406,8 +88640,29 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88406
88640
|
req.on("error", function handleRequestError(err) {
|
|
88407
88641
|
reject(AxiosError_default.from(err, null, config, req));
|
|
88408
88642
|
});
|
|
88643
|
+
const boundSockets = /* @__PURE__ */ new Set();
|
|
88409
88644
|
req.on("socket", function handleRequestSocket(socket) {
|
|
88410
88645
|
socket.setKeepAlive(true, 1e3 * 60);
|
|
88646
|
+
if (!socket[kAxiosSocketListener]) {
|
|
88647
|
+
socket.on("error", function handleSocketError(err) {
|
|
88648
|
+
const current = socket[kAxiosCurrentReq];
|
|
88649
|
+
if (current && !current.destroyed) {
|
|
88650
|
+
current.destroy(err);
|
|
88651
|
+
}
|
|
88652
|
+
});
|
|
88653
|
+
socket[kAxiosSocketListener] = true;
|
|
88654
|
+
}
|
|
88655
|
+
socket[kAxiosCurrentReq] = req;
|
|
88656
|
+
boundSockets.add(socket);
|
|
88657
|
+
});
|
|
88658
|
+
req.once("close", function clearCurrentReq() {
|
|
88659
|
+
clearConnectPhaseTimer();
|
|
88660
|
+
for (const socket of boundSockets) {
|
|
88661
|
+
if (socket[kAxiosCurrentReq] === req) {
|
|
88662
|
+
socket[kAxiosCurrentReq] = null;
|
|
88663
|
+
}
|
|
88664
|
+
}
|
|
88665
|
+
boundSockets.clear();
|
|
88411
88666
|
});
|
|
88412
88667
|
if (config.timeout) {
|
|
88413
88668
|
const timeout = parseInt(config.timeout, 10);
|
|
@@ -88422,23 +88677,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88422
88677
|
);
|
|
88423
88678
|
return;
|
|
88424
88679
|
}
|
|
88425
|
-
|
|
88680
|
+
const handleTimeout = function handleTimeout2() {
|
|
88426
88681
|
if (isDone)
|
|
88427
88682
|
return;
|
|
88428
|
-
|
|
88429
|
-
|
|
88430
|
-
|
|
88431
|
-
|
|
88432
|
-
|
|
88433
|
-
|
|
88434
|
-
new AxiosError_default(
|
|
88435
|
-
timeoutErrorMessage,
|
|
88436
|
-
transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
|
|
88437
|
-
config,
|
|
88438
|
-
req
|
|
88439
|
-
)
|
|
88440
|
-
);
|
|
88441
|
-
});
|
|
88683
|
+
abort(createTimeoutError());
|
|
88684
|
+
};
|
|
88685
|
+
if (isNativeTransport && timeout > 0) {
|
|
88686
|
+
connectPhaseTimer = setTimeout(handleTimeout, timeout);
|
|
88687
|
+
}
|
|
88688
|
+
req.setTimeout(timeout, handleTimeout);
|
|
88442
88689
|
} else {
|
|
88443
88690
|
req.setTimeout(0);
|
|
88444
88691
|
}
|
|
@@ -88457,7 +88704,38 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88457
88704
|
abort(new CanceledError_default("Request stream has been aborted", config, req));
|
|
88458
88705
|
}
|
|
88459
88706
|
});
|
|
88460
|
-
data
|
|
88707
|
+
let uploadStream = data;
|
|
88708
|
+
if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
|
|
88709
|
+
const limit = config.maxBodyLength;
|
|
88710
|
+
let bytesSent = 0;
|
|
88711
|
+
uploadStream = import_stream4.default.pipeline(
|
|
88712
|
+
[
|
|
88713
|
+
data,
|
|
88714
|
+
new import_stream4.default.Transform({
|
|
88715
|
+
transform(chunk, _enc, cb) {
|
|
88716
|
+
bytesSent += chunk.length;
|
|
88717
|
+
if (bytesSent > limit) {
|
|
88718
|
+
return cb(
|
|
88719
|
+
new AxiosError_default(
|
|
88720
|
+
"Request body larger than maxBodyLength limit",
|
|
88721
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
88722
|
+
config,
|
|
88723
|
+
req
|
|
88724
|
+
)
|
|
88725
|
+
);
|
|
88726
|
+
}
|
|
88727
|
+
cb(null, chunk);
|
|
88728
|
+
}
|
|
88729
|
+
})
|
|
88730
|
+
],
|
|
88731
|
+
utils_default.noop
|
|
88732
|
+
);
|
|
88733
|
+
uploadStream.on("error", (err) => {
|
|
88734
|
+
if (!req.destroyed)
|
|
88735
|
+
req.destroy(err);
|
|
88736
|
+
});
|
|
88737
|
+
}
|
|
88738
|
+
uploadStream.pipe(req);
|
|
88461
88739
|
} else {
|
|
88462
88740
|
data && req.write(data);
|
|
88463
88741
|
req.end();
|
|
@@ -88466,7 +88744,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
88466
88744
|
});
|
|
88467
88745
|
};
|
|
88468
88746
|
|
|
88469
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
88747
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
88470
88748
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url2) => {
|
|
88471
88749
|
url2 = new URL(url2, platform_default.origin);
|
|
88472
88750
|
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
@@ -88475,7 +88753,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin2
|
|
|
88475
88753
|
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
88476
88754
|
) : () => true;
|
|
88477
88755
|
|
|
88478
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
88756
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/cookies.js
|
|
88479
88757
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
88480
88758
|
// Standard browser envs support document.cookie
|
|
88481
88759
|
{
|
|
@@ -88503,8 +88781,15 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
88503
88781
|
read(name) {
|
|
88504
88782
|
if (typeof document === "undefined")
|
|
88505
88783
|
return null;
|
|
88506
|
-
const
|
|
88507
|
-
|
|
88784
|
+
const cookies = document.cookie.split(";");
|
|
88785
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
88786
|
+
const cookie = cookies[i].replace(/^\s+/, "");
|
|
88787
|
+
const eq = cookie.indexOf("=");
|
|
88788
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
88789
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
88790
|
+
}
|
|
88791
|
+
}
|
|
88792
|
+
return null;
|
|
88508
88793
|
},
|
|
88509
88794
|
remove(name) {
|
|
88510
88795
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
@@ -88523,11 +88808,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
88523
88808
|
}
|
|
88524
88809
|
);
|
|
88525
88810
|
|
|
88526
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
88811
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/mergeConfig.js
|
|
88527
88812
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? __spreadValues({}, thing) : thing;
|
|
88528
88813
|
function mergeConfig(config1, config2) {
|
|
88529
88814
|
config2 = config2 || {};
|
|
88530
|
-
const config =
|
|
88815
|
+
const config = /* @__PURE__ */ Object.create(null);
|
|
88816
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
88817
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
88818
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
88819
|
+
__proto__: null,
|
|
88820
|
+
value: Object.prototype.hasOwnProperty,
|
|
88821
|
+
enumerable: false,
|
|
88822
|
+
writable: true,
|
|
88823
|
+
configurable: true
|
|
88824
|
+
});
|
|
88531
88825
|
function getMergedValue(target, source, prop, caseless) {
|
|
88532
88826
|
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
88533
88827
|
return utils_default.merge.call({ caseless }, target, source);
|
|
@@ -88558,9 +88852,9 @@ function mergeConfig(config1, config2) {
|
|
|
88558
88852
|
}
|
|
88559
88853
|
}
|
|
88560
88854
|
function mergeDirectKeys(a, b, prop) {
|
|
88561
|
-
if (prop
|
|
88855
|
+
if (utils_default.hasOwnProp(config2, prop)) {
|
|
88562
88856
|
return getMergedValue(a, b);
|
|
88563
|
-
} else if (prop
|
|
88857
|
+
} else if (utils_default.hasOwnProp(config1, prop)) {
|
|
88564
88858
|
return getMergedValue(void 0, a);
|
|
88565
88859
|
}
|
|
88566
88860
|
}
|
|
@@ -88591,6 +88885,7 @@ function mergeConfig(config1, config2) {
|
|
|
88591
88885
|
httpsAgent: defaultToConfig2,
|
|
88592
88886
|
cancelToken: defaultToConfig2,
|
|
88593
88887
|
socketPath: defaultToConfig2,
|
|
88888
|
+
allowedSocketPaths: defaultToConfig2,
|
|
88594
88889
|
responseEncoding: defaultToConfig2,
|
|
88595
88890
|
validateStatus: mergeDirectKeys,
|
|
88596
88891
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
@@ -88599,46 +88894,68 @@ function mergeConfig(config1, config2) {
|
|
|
88599
88894
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
|
|
88600
88895
|
return;
|
|
88601
88896
|
const merge4 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
88602
|
-
const
|
|
88897
|
+
const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
88898
|
+
const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
88899
|
+
const configValue = merge4(a, b, prop);
|
|
88603
88900
|
utils_default.isUndefined(configValue) && merge4 !== mergeDirectKeys || (config[prop] = configValue);
|
|
88604
88901
|
});
|
|
88605
88902
|
return config;
|
|
88606
88903
|
}
|
|
88607
88904
|
|
|
88608
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
88905
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/resolveConfig.js
|
|
88906
|
+
var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
|
|
88907
|
+
function setFormDataHeaders2(headers, formHeaders, policy) {
|
|
88908
|
+
if (policy !== "content-only") {
|
|
88909
|
+
headers.set(formHeaders);
|
|
88910
|
+
return;
|
|
88911
|
+
}
|
|
88912
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
88913
|
+
if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
|
|
88914
|
+
headers.set(key, val);
|
|
88915
|
+
}
|
|
88916
|
+
});
|
|
88917
|
+
}
|
|
88918
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(
|
|
88919
|
+
/%([0-9A-F]{2})/gi,
|
|
88920
|
+
(_, hex) => String.fromCharCode(parseInt(hex, 16))
|
|
88921
|
+
);
|
|
88609
88922
|
var resolveConfig_default = (config) => {
|
|
88610
88923
|
const newConfig = mergeConfig({}, config);
|
|
88611
|
-
|
|
88924
|
+
const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
88925
|
+
const data = own2("data");
|
|
88926
|
+
let withXSRFToken = own2("withXSRFToken");
|
|
88927
|
+
const xsrfHeaderName = own2("xsrfHeaderName");
|
|
88928
|
+
const xsrfCookieName = own2("xsrfCookieName");
|
|
88929
|
+
let headers = own2("headers");
|
|
88930
|
+
const auth = own2("auth");
|
|
88931
|
+
const baseURL = own2("baseURL");
|
|
88932
|
+
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
88933
|
+
const url2 = own2("url");
|
|
88612
88934
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
88613
88935
|
newConfig.url = buildURL(
|
|
88614
|
-
buildFullPath(
|
|
88936
|
+
buildFullPath(baseURL, url2, allowAbsoluteUrls),
|
|
88615
88937
|
config.params,
|
|
88616
88938
|
config.paramsSerializer
|
|
88617
88939
|
);
|
|
88618
88940
|
if (auth) {
|
|
88619
88941
|
headers.set(
|
|
88620
88942
|
"Authorization",
|
|
88621
|
-
"Basic " + btoa(
|
|
88622
|
-
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
88623
|
-
)
|
|
88943
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
|
|
88624
88944
|
);
|
|
88625
88945
|
}
|
|
88626
88946
|
if (utils_default.isFormData(data)) {
|
|
88627
88947
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
88628
88948
|
headers.setContentType(void 0);
|
|
88629
88949
|
} else if (utils_default.isFunction(data.getHeaders)) {
|
|
88630
|
-
|
|
88631
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
88632
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
88633
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
88634
|
-
headers.set(key, val);
|
|
88635
|
-
}
|
|
88636
|
-
});
|
|
88950
|
+
setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
88637
88951
|
}
|
|
88638
88952
|
}
|
|
88639
88953
|
if (platform_default.hasStandardBrowserEnv) {
|
|
88640
|
-
|
|
88641
|
-
|
|
88954
|
+
if (utils_default.isFunction(withXSRFToken)) {
|
|
88955
|
+
withXSRFToken = withXSRFToken(newConfig);
|
|
88956
|
+
}
|
|
88957
|
+
const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
|
|
88958
|
+
if (shouldSendXSRF) {
|
|
88642
88959
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
88643
88960
|
if (xsrfValue) {
|
|
88644
88961
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -88648,7 +88965,7 @@ var resolveConfig_default = (config) => {
|
|
|
88648
88965
|
return newConfig;
|
|
88649
88966
|
};
|
|
88650
88967
|
|
|
88651
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
88968
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/xhr.js
|
|
88652
88969
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
88653
88970
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
88654
88971
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -88704,7 +89021,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
88704
89021
|
if (!request || request.readyState !== 4) {
|
|
88705
89022
|
return;
|
|
88706
89023
|
}
|
|
88707
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
89024
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
88708
89025
|
return;
|
|
88709
89026
|
}
|
|
88710
89027
|
setTimeout(onloadend);
|
|
@@ -88715,6 +89032,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
88715
89032
|
return;
|
|
88716
89033
|
}
|
|
88717
89034
|
reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
89035
|
+
done();
|
|
88718
89036
|
request = null;
|
|
88719
89037
|
};
|
|
88720
89038
|
request.onerror = function handleError(event) {
|
|
@@ -88722,6 +89040,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
88722
89040
|
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
|
|
88723
89041
|
err.event = event || null;
|
|
88724
89042
|
reject(err);
|
|
89043
|
+
done();
|
|
88725
89044
|
request = null;
|
|
88726
89045
|
};
|
|
88727
89046
|
request.ontimeout = function handleTimeout() {
|
|
@@ -88738,11 +89057,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
88738
89057
|
request
|
|
88739
89058
|
)
|
|
88740
89059
|
);
|
|
89060
|
+
done();
|
|
88741
89061
|
request = null;
|
|
88742
89062
|
};
|
|
88743
89063
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
88744
89064
|
if ("setRequestHeader" in request) {
|
|
88745
|
-
utils_default.forEach(requestHeaders
|
|
89065
|
+
utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
88746
89066
|
request.setRequestHeader(key, val);
|
|
88747
89067
|
});
|
|
88748
89068
|
}
|
|
@@ -88768,6 +89088,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
88768
89088
|
}
|
|
88769
89089
|
reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
|
|
88770
89090
|
request.abort();
|
|
89091
|
+
done();
|
|
88771
89092
|
request = null;
|
|
88772
89093
|
};
|
|
88773
89094
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
@@ -88776,7 +89097,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
88776
89097
|
}
|
|
88777
89098
|
}
|
|
88778
89099
|
const protocol = parseProtocol(_config.url);
|
|
88779
|
-
if (protocol && platform_default.protocols.
|
|
89100
|
+
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
88780
89101
|
reject(
|
|
88781
89102
|
new AxiosError_default(
|
|
88782
89103
|
"Unsupported protocol " + protocol + ":",
|
|
@@ -88790,45 +89111,47 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
88790
89111
|
});
|
|
88791
89112
|
};
|
|
88792
89113
|
|
|
88793
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
89114
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/composeSignals.js
|
|
88794
89115
|
var composeSignals = (signals, timeout) => {
|
|
88795
|
-
|
|
88796
|
-
if (timeout
|
|
88797
|
-
|
|
88798
|
-
let aborted;
|
|
88799
|
-
const onabort = function(reason) {
|
|
88800
|
-
if (!aborted) {
|
|
88801
|
-
aborted = true;
|
|
88802
|
-
unsubscribe();
|
|
88803
|
-
const err = reason instanceof Error ? reason : this.reason;
|
|
88804
|
-
controller.abort(
|
|
88805
|
-
err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
|
|
88806
|
-
);
|
|
88807
|
-
}
|
|
88808
|
-
};
|
|
88809
|
-
let timer = timeout && setTimeout(() => {
|
|
88810
|
-
timer = null;
|
|
88811
|
-
onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
88812
|
-
}, timeout);
|
|
88813
|
-
const unsubscribe = () => {
|
|
88814
|
-
if (signals) {
|
|
88815
|
-
timer && clearTimeout(timer);
|
|
88816
|
-
timer = null;
|
|
88817
|
-
signals.forEach((signal2) => {
|
|
88818
|
-
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
88819
|
-
});
|
|
88820
|
-
signals = null;
|
|
88821
|
-
}
|
|
88822
|
-
};
|
|
88823
|
-
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
88824
|
-
const { signal } = controller;
|
|
88825
|
-
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
88826
|
-
return signal;
|
|
89116
|
+
signals = signals ? signals.filter(Boolean) : [];
|
|
89117
|
+
if (!timeout && !signals.length) {
|
|
89118
|
+
return;
|
|
88827
89119
|
}
|
|
89120
|
+
const controller = new AbortController();
|
|
89121
|
+
let aborted = false;
|
|
89122
|
+
const onabort = function(reason) {
|
|
89123
|
+
if (!aborted) {
|
|
89124
|
+
aborted = true;
|
|
89125
|
+
unsubscribe();
|
|
89126
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
89127
|
+
controller.abort(
|
|
89128
|
+
err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
|
|
89129
|
+
);
|
|
89130
|
+
}
|
|
89131
|
+
};
|
|
89132
|
+
let timer = timeout && setTimeout(() => {
|
|
89133
|
+
timer = null;
|
|
89134
|
+
onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
89135
|
+
}, timeout);
|
|
89136
|
+
const unsubscribe = () => {
|
|
89137
|
+
if (!signals) {
|
|
89138
|
+
return;
|
|
89139
|
+
}
|
|
89140
|
+
timer && clearTimeout(timer);
|
|
89141
|
+
timer = null;
|
|
89142
|
+
signals.forEach((signal2) => {
|
|
89143
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
89144
|
+
});
|
|
89145
|
+
signals = null;
|
|
89146
|
+
};
|
|
89147
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
89148
|
+
const { signal } = controller;
|
|
89149
|
+
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
89150
|
+
return signal;
|
|
88828
89151
|
};
|
|
88829
89152
|
var composeSignals_default = composeSignals;
|
|
88830
89153
|
|
|
88831
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
89154
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/trackStream.js
|
|
88832
89155
|
var streamChunk = function* (chunk, chunkSize) {
|
|
88833
89156
|
let len = chunk.byteLength;
|
|
88834
89157
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -88926,14 +89249,9 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
88926
89249
|
);
|
|
88927
89250
|
};
|
|
88928
89251
|
|
|
88929
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
89252
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/fetch.js
|
|
88930
89253
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
88931
89254
|
var { isFunction: isFunction2 } = utils_default;
|
|
88932
|
-
var globalFetchAPI = (({ Request, Response }) => ({
|
|
88933
|
-
Request,
|
|
88934
|
-
Response
|
|
88935
|
-
}))(utils_default.global);
|
|
88936
|
-
var { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = utils_default.global;
|
|
88937
89255
|
var test = (fn, ...args) => {
|
|
88938
89256
|
try {
|
|
88939
89257
|
return !!fn(...args);
|
|
@@ -88942,11 +89260,16 @@ var test = (fn, ...args) => {
|
|
|
88942
89260
|
}
|
|
88943
89261
|
};
|
|
88944
89262
|
var factory = (env) => {
|
|
89263
|
+
const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
|
|
89264
|
+
const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
|
|
88945
89265
|
env = utils_default.merge.call(
|
|
88946
89266
|
{
|
|
88947
89267
|
skipUndefined: true
|
|
88948
89268
|
},
|
|
88949
|
-
|
|
89269
|
+
{
|
|
89270
|
+
Request: globalObject.Request,
|
|
89271
|
+
Response: globalObject.Response
|
|
89272
|
+
},
|
|
88950
89273
|
env
|
|
88951
89274
|
);
|
|
88952
89275
|
const { fetch: envFetch, Request, Response } = env;
|
|
@@ -88962,16 +89285,18 @@ var factory = (env) => {
|
|
|
88962
89285
|
}));
|
|
88963
89286
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
88964
89287
|
let duplexAccessed = false;
|
|
88965
|
-
const
|
|
88966
|
-
|
|
88967
|
-
body,
|
|
89288
|
+
const request = new Request(platform_default.origin, {
|
|
89289
|
+
body: new ReadableStream2(),
|
|
88968
89290
|
method: "POST",
|
|
88969
89291
|
get duplex() {
|
|
88970
89292
|
duplexAccessed = true;
|
|
88971
89293
|
return "half";
|
|
88972
89294
|
}
|
|
88973
|
-
})
|
|
88974
|
-
|
|
89295
|
+
});
|
|
89296
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
89297
|
+
if (request.body != null) {
|
|
89298
|
+
request.body.cancel();
|
|
89299
|
+
}
|
|
88975
89300
|
return duplexAccessed && !hasContentType;
|
|
88976
89301
|
});
|
|
88977
89302
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -89034,8 +89359,12 @@ var factory = (env) => {
|
|
|
89034
89359
|
responseType,
|
|
89035
89360
|
headers,
|
|
89036
89361
|
withCredentials = "same-origin",
|
|
89037
|
-
fetchOptions
|
|
89362
|
+
fetchOptions,
|
|
89363
|
+
maxContentLength,
|
|
89364
|
+
maxBodyLength
|
|
89038
89365
|
} = resolveConfig_default(config);
|
|
89366
|
+
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
89367
|
+
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
89039
89368
|
let _fetch = envFetch || fetch;
|
|
89040
89369
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
89041
89370
|
let composedSignal = composeSignals_default(
|
|
@@ -89048,6 +89377,28 @@ var factory = (env) => {
|
|
|
89048
89377
|
});
|
|
89049
89378
|
let requestContentLength;
|
|
89050
89379
|
try {
|
|
89380
|
+
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
89381
|
+
const estimated = estimateDataURLDecodedBytes(url2);
|
|
89382
|
+
if (estimated > maxContentLength) {
|
|
89383
|
+
throw new AxiosError_default(
|
|
89384
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
89385
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
89386
|
+
config,
|
|
89387
|
+
request
|
|
89388
|
+
);
|
|
89389
|
+
}
|
|
89390
|
+
}
|
|
89391
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
89392
|
+
const outboundLength = yield resolveBodyLength(headers, data);
|
|
89393
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
|
|
89394
|
+
throw new AxiosError_default(
|
|
89395
|
+
"Request body larger than maxBodyLength limit",
|
|
89396
|
+
AxiosError_default.ERR_BAD_REQUEST,
|
|
89397
|
+
config,
|
|
89398
|
+
request
|
|
89399
|
+
);
|
|
89400
|
+
}
|
|
89401
|
+
}
|
|
89051
89402
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = yield resolveBodyLength(headers, data)) !== 0) {
|
|
89052
89403
|
let _request = new Request(url2, {
|
|
89053
89404
|
method: "POST",
|
|
@@ -89070,18 +89421,36 @@ var factory = (env) => {
|
|
|
89070
89421
|
withCredentials = withCredentials ? "include" : "omit";
|
|
89071
89422
|
}
|
|
89072
89423
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
89424
|
+
if (utils_default.isFormData(data)) {
|
|
89425
|
+
const contentType = headers.getContentType();
|
|
89426
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
|
|
89427
|
+
headers.delete("content-type");
|
|
89428
|
+
}
|
|
89429
|
+
}
|
|
89430
|
+
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
89073
89431
|
const resolvedOptions = __spreadProps(__spreadValues({}, fetchOptions), {
|
|
89074
89432
|
signal: composedSignal,
|
|
89075
89433
|
method: method.toUpperCase(),
|
|
89076
|
-
headers: headers.normalize()
|
|
89434
|
+
headers: toByteStringHeaderObject(headers.normalize()),
|
|
89077
89435
|
body: data,
|
|
89078
89436
|
duplex: "half",
|
|
89079
89437
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
89080
89438
|
});
|
|
89081
89439
|
request = isRequestSupported && new Request(url2, resolvedOptions);
|
|
89082
89440
|
let response = yield isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions);
|
|
89441
|
+
if (hasMaxContentLength) {
|
|
89442
|
+
const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
89443
|
+
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
89444
|
+
throw new AxiosError_default(
|
|
89445
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
89446
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
89447
|
+
config,
|
|
89448
|
+
request
|
|
89449
|
+
);
|
|
89450
|
+
}
|
|
89451
|
+
}
|
|
89083
89452
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
89084
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
89453
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
89085
89454
|
const options = {};
|
|
89086
89455
|
["status", "statusText", "headers"].forEach((prop) => {
|
|
89087
89456
|
options[prop] = response[prop];
|
|
@@ -89091,8 +89460,23 @@ var factory = (env) => {
|
|
|
89091
89460
|
responseContentLength,
|
|
89092
89461
|
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
89093
89462
|
) || [];
|
|
89463
|
+
let bytesRead = 0;
|
|
89464
|
+
const onChunkProgress = (loadedBytes) => {
|
|
89465
|
+
if (hasMaxContentLength) {
|
|
89466
|
+
bytesRead = loadedBytes;
|
|
89467
|
+
if (bytesRead > maxContentLength) {
|
|
89468
|
+
throw new AxiosError_default(
|
|
89469
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
89470
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
89471
|
+
config,
|
|
89472
|
+
request
|
|
89473
|
+
);
|
|
89474
|
+
}
|
|
89475
|
+
}
|
|
89476
|
+
onProgress && onProgress(loadedBytes);
|
|
89477
|
+
};
|
|
89094
89478
|
response = new Response(
|
|
89095
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
89479
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
89096
89480
|
flush && flush();
|
|
89097
89481
|
unsubscribe && unsubscribe();
|
|
89098
89482
|
}),
|
|
@@ -89104,6 +89488,26 @@ var factory = (env) => {
|
|
|
89104
89488
|
response,
|
|
89105
89489
|
config
|
|
89106
89490
|
);
|
|
89491
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
89492
|
+
let materializedSize;
|
|
89493
|
+
if (responseData != null) {
|
|
89494
|
+
if (typeof responseData.byteLength === "number") {
|
|
89495
|
+
materializedSize = responseData.byteLength;
|
|
89496
|
+
} else if (typeof responseData.size === "number") {
|
|
89497
|
+
materializedSize = responseData.size;
|
|
89498
|
+
} else if (typeof responseData === "string") {
|
|
89499
|
+
materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
|
|
89500
|
+
}
|
|
89501
|
+
}
|
|
89502
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
|
|
89503
|
+
throw new AxiosError_default(
|
|
89504
|
+
"maxContentLength size of " + maxContentLength + " exceeded",
|
|
89505
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
89506
|
+
config,
|
|
89507
|
+
request
|
|
89508
|
+
);
|
|
89509
|
+
}
|
|
89510
|
+
}
|
|
89107
89511
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
89108
89512
|
return yield new Promise((resolve, reject) => {
|
|
89109
89513
|
settle(resolve, reject, {
|
|
@@ -89117,6 +89521,13 @@ var factory = (env) => {
|
|
|
89117
89521
|
});
|
|
89118
89522
|
} catch (err) {
|
|
89119
89523
|
unsubscribe && unsubscribe();
|
|
89524
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
|
|
89525
|
+
const canceledError = composedSignal.reason;
|
|
89526
|
+
canceledError.config = config;
|
|
89527
|
+
request && (canceledError.request = request);
|
|
89528
|
+
err !== canceledError && (canceledError.cause = err);
|
|
89529
|
+
throw canceledError;
|
|
89530
|
+
}
|
|
89120
89531
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
89121
89532
|
throw Object.assign(
|
|
89122
89533
|
new AxiosError_default(
|
|
@@ -89151,7 +89562,7 @@ var getFetch = (config) => {
|
|
|
89151
89562
|
};
|
|
89152
89563
|
var adapter = getFetch();
|
|
89153
89564
|
|
|
89154
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
89565
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/adapters/adapters.js
|
|
89155
89566
|
var knownAdapters = {
|
|
89156
89567
|
http: http_default,
|
|
89157
89568
|
xhr: xhr_default,
|
|
@@ -89162,10 +89573,10 @@ var knownAdapters = {
|
|
|
89162
89573
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
89163
89574
|
if (fn) {
|
|
89164
89575
|
try {
|
|
89165
|
-
Object.defineProperty(fn, "name", { value });
|
|
89576
|
+
Object.defineProperty(fn, "name", { __proto__: null, value });
|
|
89166
89577
|
} catch (e) {
|
|
89167
89578
|
}
|
|
89168
|
-
Object.defineProperty(fn, "adapterName", { value });
|
|
89579
|
+
Object.defineProperty(fn, "adapterName", { __proto__: null, value });
|
|
89169
89580
|
}
|
|
89170
89581
|
});
|
|
89171
89582
|
var renderReason = (reason) => `- ${reason}`;
|
|
@@ -89216,7 +89627,7 @@ var adapters_default = {
|
|
|
89216
89627
|
adapters: knownAdapters
|
|
89217
89628
|
};
|
|
89218
89629
|
|
|
89219
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
89630
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/dispatchRequest.js
|
|
89220
89631
|
function throwIfCancellationRequested(config) {
|
|
89221
89632
|
if (config.cancelToken) {
|
|
89222
89633
|
config.cancelToken.throwIfRequested();
|
|
@@ -89236,7 +89647,12 @@ function dispatchRequest(config) {
|
|
|
89236
89647
|
return adapter2(config).then(
|
|
89237
89648
|
function onAdapterResolution(response) {
|
|
89238
89649
|
throwIfCancellationRequested(config);
|
|
89239
|
-
response
|
|
89650
|
+
config.response = response;
|
|
89651
|
+
try {
|
|
89652
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
89653
|
+
} finally {
|
|
89654
|
+
delete config.response;
|
|
89655
|
+
}
|
|
89240
89656
|
response.headers = AxiosHeaders_default.from(response.headers);
|
|
89241
89657
|
return response;
|
|
89242
89658
|
},
|
|
@@ -89244,11 +89660,16 @@ function dispatchRequest(config) {
|
|
|
89244
89660
|
if (!isCancel(reason)) {
|
|
89245
89661
|
throwIfCancellationRequested(config);
|
|
89246
89662
|
if (reason && reason.response) {
|
|
89247
|
-
|
|
89248
|
-
|
|
89249
|
-
|
|
89250
|
-
|
|
89251
|
-
|
|
89663
|
+
config.response = reason.response;
|
|
89664
|
+
try {
|
|
89665
|
+
reason.response.data = transformData.call(
|
|
89666
|
+
config,
|
|
89667
|
+
config.transformResponse,
|
|
89668
|
+
reason.response
|
|
89669
|
+
);
|
|
89670
|
+
} finally {
|
|
89671
|
+
delete config.response;
|
|
89672
|
+
}
|
|
89252
89673
|
reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
|
|
89253
89674
|
}
|
|
89254
89675
|
}
|
|
@@ -89257,7 +89678,7 @@ function dispatchRequest(config) {
|
|
|
89257
89678
|
);
|
|
89258
89679
|
}
|
|
89259
89680
|
|
|
89260
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
89681
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/validator.js
|
|
89261
89682
|
var validators = {};
|
|
89262
89683
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
89263
89684
|
validators[type] = function validator(thing) {
|
|
@@ -89302,7 +89723,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
89302
89723
|
let i = keys.length;
|
|
89303
89724
|
while (i-- > 0) {
|
|
89304
89725
|
const opt = keys[i];
|
|
89305
|
-
const validator = schema[opt];
|
|
89726
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
89306
89727
|
if (validator) {
|
|
89307
89728
|
const value = options[opt];
|
|
89308
89729
|
const result = value === void 0 || validator(value, opt, options);
|
|
@@ -89324,7 +89745,7 @@ var validator_default = {
|
|
|
89324
89745
|
validators
|
|
89325
89746
|
};
|
|
89326
89747
|
|
|
89327
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
89748
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/core/Axios.js
|
|
89328
89749
|
var validators2 = validator_default.validators;
|
|
89329
89750
|
var Axios = class {
|
|
89330
89751
|
constructor(instanceConfig) {
|
|
@@ -89428,7 +89849,7 @@ var Axios = class {
|
|
|
89428
89849
|
);
|
|
89429
89850
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
89430
89851
|
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
89431
|
-
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
89852
|
+
headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
|
|
89432
89853
|
delete headers[method];
|
|
89433
89854
|
});
|
|
89434
89855
|
config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
|
|
@@ -89506,7 +89927,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
|
|
|
89506
89927
|
);
|
|
89507
89928
|
};
|
|
89508
89929
|
});
|
|
89509
|
-
utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
89930
|
+
utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
|
|
89510
89931
|
function generateHTTPMethod(isForm) {
|
|
89511
89932
|
return function httpMethod(url2, data, config) {
|
|
89512
89933
|
return this.request(
|
|
@@ -89522,11 +89943,13 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
89522
89943
|
};
|
|
89523
89944
|
}
|
|
89524
89945
|
Axios.prototype[method] = generateHTTPMethod();
|
|
89525
|
-
|
|
89946
|
+
if (method !== "query") {
|
|
89947
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
89948
|
+
}
|
|
89526
89949
|
});
|
|
89527
89950
|
var Axios_default = Axios;
|
|
89528
89951
|
|
|
89529
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
89952
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/cancel/CancelToken.js
|
|
89530
89953
|
var CancelToken = class _CancelToken {
|
|
89531
89954
|
constructor(executor) {
|
|
89532
89955
|
if (typeof executor !== "function") {
|
|
@@ -89625,19 +90048,19 @@ var CancelToken = class _CancelToken {
|
|
|
89625
90048
|
};
|
|
89626
90049
|
var CancelToken_default = CancelToken;
|
|
89627
90050
|
|
|
89628
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
90051
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/spread.js
|
|
89629
90052
|
function spread(callback) {
|
|
89630
90053
|
return function wrap(arr) {
|
|
89631
90054
|
return callback.apply(null, arr);
|
|
89632
90055
|
};
|
|
89633
90056
|
}
|
|
89634
90057
|
|
|
89635
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
90058
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/isAxiosError.js
|
|
89636
90059
|
function isAxiosError(payload) {
|
|
89637
90060
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
89638
90061
|
}
|
|
89639
90062
|
|
|
89640
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
90063
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
89641
90064
|
var HttpStatusCode = {
|
|
89642
90065
|
Continue: 100,
|
|
89643
90066
|
SwitchingProtocols: 101,
|
|
@@ -89714,13 +90137,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
89714
90137
|
});
|
|
89715
90138
|
var HttpStatusCode_default = HttpStatusCode;
|
|
89716
90139
|
|
|
89717
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
90140
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/lib/axios.js
|
|
89718
90141
|
function createInstance(defaultConfig) {
|
|
89719
90142
|
const context = new Axios_default(defaultConfig);
|
|
89720
90143
|
const instance = bind(Axios_default.prototype.request, context);
|
|
89721
90144
|
utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
|
|
89722
90145
|
utils_default.extend(instance, context, null, { allOwnKeys: true });
|
|
89723
|
-
instance.create = function
|
|
90146
|
+
instance.create = function create2(instanceConfig) {
|
|
89724
90147
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
89725
90148
|
};
|
|
89726
90149
|
return instance;
|
|
@@ -89747,7 +90170,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
89747
90170
|
axios.default = axios;
|
|
89748
90171
|
var axios_default = axios;
|
|
89749
90172
|
|
|
89750
|
-
// ../../../../node_modules/.pnpm/axios@1.
|
|
90173
|
+
// ../../../../node_modules/.pnpm/axios@1.16.1_debug@4.3.7/node_modules/axios/index.js
|
|
89751
90174
|
var {
|
|
89752
90175
|
Axios: Axios2,
|
|
89753
90176
|
AxiosError: AxiosError2,
|
|
@@ -89764,7 +90187,8 @@ var {
|
|
|
89764
90187
|
HttpStatusCode: HttpStatusCode2,
|
|
89765
90188
|
formToJSON,
|
|
89766
90189
|
getAdapter: getAdapter2,
|
|
89767
|
-
mergeConfig: mergeConfig2
|
|
90190
|
+
mergeConfig: mergeConfig2,
|
|
90191
|
+
create
|
|
89768
90192
|
} = axios_default;
|
|
89769
90193
|
|
|
89770
90194
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmRegistry.js
|
|
@@ -89913,15 +90337,15 @@ var EjsAPI = class {
|
|
|
89913
90337
|
};
|
|
89914
90338
|
|
|
89915
90339
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.9_@modern-js+codesmith@2.6.9/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
89916
|
-
var
|
|
90340
|
+
var import_path2 = __toESM(require("path"));
|
|
89917
90341
|
var FsAPI = class {
|
|
89918
90342
|
renderFile(resource, target) {
|
|
89919
90343
|
return __async(this, null, function* () {
|
|
89920
90344
|
if (resource._type !== FS_RESOURCE) {
|
|
89921
90345
|
throw new Error("resource not match");
|
|
89922
90346
|
}
|
|
89923
|
-
const filePath =
|
|
89924
|
-
yield import_fs_extra.default.mkdirp(
|
|
90347
|
+
const filePath = import_path2.default.resolve(this.generatorCore.outputPath, target.toString());
|
|
90348
|
+
yield import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath));
|
|
89925
90349
|
yield import_fs_extra.default.copyFile(resource.filePath, filePath);
|
|
89926
90350
|
});
|
|
89927
90351
|
}
|
|
@@ -98464,7 +98888,7 @@ var CLIReader = class {
|
|
|
98464
98888
|
};
|
|
98465
98889
|
|
|
98466
98890
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.9_@modern-js+codesmith@2.6.9_@types+node@18.19.74_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
98467
|
-
var import_comment_json = __toESM(
|
|
98891
|
+
var import_comment_json = __toESM(require_src4());
|
|
98468
98892
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
98469
98893
|
|
|
98470
98894
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.70.3/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -98592,7 +99016,7 @@ var localeKeys = i18n.init("zh", {
|
|
|
98592
99016
|
});
|
|
98593
99017
|
|
|
98594
99018
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.9_@modern-js+codesmith@2.6.9_@types+node@18.19.74_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
98595
|
-
var
|
|
99019
|
+
var import_path5 = __toESM(require("path"));
|
|
98596
99020
|
var NODE_MAJOR_VERSION_MAP = {
|
|
98597
99021
|
"lts/*": 18,
|
|
98598
99022
|
"lts/argon": 4,
|
|
@@ -98618,10 +99042,10 @@ function checkUseNvm(cwd, logger) {
|
|
|
98618
99042
|
if (process.platform.startsWith("win")) {
|
|
98619
99043
|
return false;
|
|
98620
99044
|
}
|
|
98621
|
-
if (!(yield fsExists(
|
|
99045
|
+
if (!(yield fsExists(import_path5.default.join(cwd, ".nvmrc")))) {
|
|
98622
99046
|
return false;
|
|
98623
99047
|
}
|
|
98624
|
-
const nvmrcContent = (yield import_fs_extra.default.readFile(
|
|
99048
|
+
const nvmrcContent = (yield import_fs_extra.default.readFile(import_path5.default.join(cwd, ".nvmrc"), "utf-8")).replace("\n", "");
|
|
98625
99049
|
const expectNodeVersion = NODE_MAJOR_VERSION_MAP[nvmrcContent] || nvmrcContent;
|
|
98626
99050
|
const currentNodeVersion = yield getNoteVersion();
|
|
98627
99051
|
if (expectNodeVersion === import_semver.default.major(currentNodeVersion)) {
|
|
@@ -98914,8 +99338,8 @@ var AppAPI = class {
|
|
|
98914
99338
|
};
|
|
98915
99339
|
|
|
98916
99340
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.9/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
98917
|
-
var import_comment_json2 = __toESM(
|
|
98918
|
-
var declarationUpdate = __toESM(
|
|
99341
|
+
var import_comment_json2 = __toESM(require_src4());
|
|
99342
|
+
var declarationUpdate = __toESM(require_dist2());
|
|
98919
99343
|
|
|
98920
99344
|
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.6.9/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
|
98921
99345
|
function editJson(generatorCore, resource, getNewJsonValue) {
|
|
@@ -99066,7 +99490,7 @@ var PackageManager;
|
|
|
99066
99490
|
|
|
99067
99491
|
// ../../generator-utils/dist/esm/utils/package.js
|
|
99068
99492
|
var import_os = __toESM(require("os"));
|
|
99069
|
-
var
|
|
99493
|
+
var import_path6 = __toESM(require("path"));
|
|
99070
99494
|
|
|
99071
99495
|
// ../../generator-utils/dist/esm/utils/stripAnsi.js
|
|
99072
99496
|
function ansiRegex2({ onlyFirst = false } = {}) {
|
|
@@ -99170,16 +99594,16 @@ function getPackageManager() {
|
|
|
99170
99594
|
let times = 0;
|
|
99171
99595
|
while (import_os.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
|
99172
99596
|
times++;
|
|
99173
|
-
if (import_fs_extra.default.existsSync(
|
|
99597
|
+
if (import_fs_extra.default.existsSync(import_path6.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
99174
99598
|
return "pnpm";
|
|
99175
99599
|
}
|
|
99176
|
-
if (import_fs_extra.default.existsSync(
|
|
99600
|
+
if (import_fs_extra.default.existsSync(import_path6.default.resolve(appDirectory, "yarn.lock"))) {
|
|
99177
99601
|
return "yarn";
|
|
99178
99602
|
}
|
|
99179
|
-
if (import_fs_extra.default.existsSync(
|
|
99603
|
+
if (import_fs_extra.default.existsSync(import_path6.default.resolve(appDirectory, "package-lock.json"))) {
|
|
99180
99604
|
return "npm";
|
|
99181
99605
|
}
|
|
99182
|
-
appDirectory =
|
|
99606
|
+
appDirectory = import_path6.default.join(appDirectory, "..");
|
|
99183
99607
|
}
|
|
99184
99608
|
if (yield canUsePnpm()) {
|
|
99185
99609
|
return "pnpm";
|
|
@@ -99307,7 +99731,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
99307
99731
|
const packageManager = yield getPackageManager(appDir);
|
|
99308
99732
|
context.config.packageManager = packageManager;
|
|
99309
99733
|
if (packageManager === PackageManager.Pnpm) {
|
|
99310
|
-
const npmrcPath =
|
|
99734
|
+
const npmrcPath = import_path7.default.join(generator.outputPath, ".npmrc");
|
|
99311
99735
|
if (import_fs_extra.default.existsSync(npmrcPath)) {
|
|
99312
99736
|
const content = import_fs_extra.default.readFileSync(npmrcPath, "utf-8");
|
|
99313
99737
|
if (!content.includes("strict-peer-dependencies=false")) {
|
|
@@ -99368,7 +99792,7 @@ var handleTemplateFile = (context, generator, appApi) => __async(void 0, null, f
|
|
|
99368
99792
|
}))
|
|
99369
99793
|
);
|
|
99370
99794
|
yield jsonAPI.update(
|
|
99371
|
-
context.materials.default.get(
|
|
99795
|
+
context.materials.default.get(import_path7.default.join(appDir, "package.json")),
|
|
99372
99796
|
{
|
|
99373
99797
|
query: {},
|
|
99374
99798
|
update: {
|