alpic 1.137.0 → 1.139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
14
14
  throw Error('Dynamic require of "' + x + '" is not supported');
15
15
  });
16
16
  var __commonJS = (cb, mod) => function __require2() {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ try {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ } catch (e) {
20
+ throw mod = 0, e;
21
+ }
18
22
  };
19
23
  var __export = (target, all3) => {
20
24
  for (var name in all3)
@@ -9996,7 +10000,7 @@ var require_form_data = __commonJS({
9996
10000
  var path = __require("path");
9997
10001
  var http3 = __require("http");
9998
10002
  var https2 = __require("https");
9999
- var parseUrl = __require("url").parse;
10003
+ var parseUrl2 = __require("url").parse;
10000
10004
  var fs2 = __require("fs");
10001
10005
  var Stream = __require("stream").Stream;
10002
10006
  var crypto2 = __require("crypto");
@@ -10249,7 +10253,7 @@ var require_form_data = __commonJS({
10249
10253
  var options;
10250
10254
  var defaults2 = { method: "post" };
10251
10255
  if (typeof params === "string") {
10252
- params = parseUrl(params);
10256
+ params = parseUrl2(params);
10253
10257
  options = populate({
10254
10258
  port: params.port,
10255
10259
  path: params.pathname,
@@ -10306,76 +10310,6 @@ var require_form_data = __commonJS({
10306
10310
  }
10307
10311
  });
10308
10312
 
10309
- // ../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
10310
- var require_proxy_from_env = __commonJS({
10311
- "../../node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"(exports) {
10312
- "use strict";
10313
- var parseUrl = __require("url").parse;
10314
- var DEFAULT_PORTS = {
10315
- ftp: 21,
10316
- gopher: 70,
10317
- http: 80,
10318
- https: 443,
10319
- ws: 80,
10320
- wss: 443
10321
- };
10322
- var stringEndsWith = String.prototype.endsWith || function(s) {
10323
- return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
10324
- };
10325
- function getProxyForUrl(url2) {
10326
- var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
10327
- var proto = parsedUrl.protocol;
10328
- var hostname = parsedUrl.host;
10329
- var port = parsedUrl.port;
10330
- if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
10331
- return "";
10332
- }
10333
- proto = proto.split(":", 1)[0];
10334
- hostname = hostname.replace(/:\d*$/, "");
10335
- port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
10336
- if (!shouldProxy(hostname, port)) {
10337
- return "";
10338
- }
10339
- var proxy = getEnv("npm_config_" + proto + "_proxy") || getEnv(proto + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
10340
- if (proxy && proxy.indexOf("://") === -1) {
10341
- proxy = proto + "://" + proxy;
10342
- }
10343
- return proxy;
10344
- }
10345
- function shouldProxy(hostname, port) {
10346
- var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
10347
- if (!NO_PROXY) {
10348
- return true;
10349
- }
10350
- if (NO_PROXY === "*") {
10351
- return false;
10352
- }
10353
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
10354
- if (!proxy) {
10355
- return true;
10356
- }
10357
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
10358
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
10359
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
10360
- if (parsedProxyPort && parsedProxyPort !== port) {
10361
- return true;
10362
- }
10363
- if (!/^[.*]/.test(parsedProxyHostname)) {
10364
- return hostname !== parsedProxyHostname;
10365
- }
10366
- if (parsedProxyHostname.charAt(0) === "*") {
10367
- parsedProxyHostname = parsedProxyHostname.slice(1);
10368
- }
10369
- return !stringEndsWith.call(hostname, parsedProxyHostname);
10370
- });
10371
- }
10372
- function getEnv(key) {
10373
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
10374
- }
10375
- exports.getProxyForUrl = getProxyForUrl;
10376
- }
10377
- });
10378
-
10379
10313
  // ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
10380
10314
  var require_ms = __commonJS({
10381
10315
  "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
@@ -10492,9 +10426,9 @@ var require_ms = __commonJS({
10492
10426
  }
10493
10427
  });
10494
10428
 
10495
- // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js
10429
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
10496
10430
  var require_common = __commonJS({
10497
- "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module) {
10431
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
10498
10432
  function setup(env) {
10499
10433
  createDebug.debug = createDebug;
10500
10434
  createDebug.default = createDebug;
@@ -10669,9 +10603,9 @@ var require_common = __commonJS({
10669
10603
  }
10670
10604
  });
10671
10605
 
10672
- // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js
10606
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
10673
10607
  var require_browser = __commonJS({
10674
- "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module) {
10608
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module) {
10675
10609
  exports.formatArgs = formatArgs;
10676
10610
  exports.save = save;
10677
10611
  exports.load = load;
@@ -10966,9 +10900,9 @@ var require_supports_color = __commonJS({
10966
10900
  }
10967
10901
  });
10968
10902
 
10969
- // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js
10903
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
10970
10904
  var require_node = __commonJS({
10971
- "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
10905
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports, module) {
10972
10906
  var tty = __require("tty");
10973
10907
  var util3 = __require("util");
10974
10908
  exports.init = init;
@@ -11140,9 +11074,9 @@ var require_node = __commonJS({
11140
11074
  }
11141
11075
  });
11142
11076
 
11143
- // ../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js
11077
+ // ../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
11144
11078
  var require_src = __commonJS({
11145
- "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module) {
11079
+ "../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports, module) {
11146
11080
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
11147
11081
  module.exports = require_browser();
11148
11082
  } else {
@@ -11151,6 +11085,456 @@ var require_src = __commonJS({
11151
11085
  }
11152
11086
  });
11153
11087
 
11088
+ // ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
11089
+ var require_promisify = __commonJS({
11090
+ "../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js"(exports) {
11091
+ "use strict";
11092
+ Object.defineProperty(exports, "__esModule", { value: true });
11093
+ function promisify(fn) {
11094
+ return function(req, opts) {
11095
+ return new Promise((resolve, reject) => {
11096
+ fn.call(this, req, opts, (err, rtn) => {
11097
+ if (err) {
11098
+ reject(err);
11099
+ } else {
11100
+ resolve(rtn);
11101
+ }
11102
+ });
11103
+ });
11104
+ };
11105
+ }
11106
+ exports.default = promisify;
11107
+ }
11108
+ });
11109
+
11110
+ // ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
11111
+ var require_src2 = __commonJS({
11112
+ "../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module) {
11113
+ "use strict";
11114
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11115
+ return mod && mod.__esModule ? mod : { "default": mod };
11116
+ };
11117
+ var events_1 = __require("events");
11118
+ var debug_1 = __importDefault(require_src());
11119
+ var promisify_1 = __importDefault(require_promisify());
11120
+ var debug3 = debug_1.default("agent-base");
11121
+ function isAgent(v) {
11122
+ return Boolean(v) && typeof v.addRequest === "function";
11123
+ }
11124
+ function isSecureEndpoint() {
11125
+ const { stack } = new Error();
11126
+ if (typeof stack !== "string")
11127
+ return false;
11128
+ return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
11129
+ }
11130
+ function createAgent(callback, opts) {
11131
+ return new createAgent.Agent(callback, opts);
11132
+ }
11133
+ (function(createAgent2) {
11134
+ class Agent extends events_1.EventEmitter {
11135
+ constructor(callback, _opts) {
11136
+ super();
11137
+ let opts = _opts;
11138
+ if (typeof callback === "function") {
11139
+ this.callback = callback;
11140
+ } else if (callback) {
11141
+ opts = callback;
11142
+ }
11143
+ this.timeout = null;
11144
+ if (opts && typeof opts.timeout === "number") {
11145
+ this.timeout = opts.timeout;
11146
+ }
11147
+ this.maxFreeSockets = 1;
11148
+ this.maxSockets = 1;
11149
+ this.maxTotalSockets = Infinity;
11150
+ this.sockets = {};
11151
+ this.freeSockets = {};
11152
+ this.requests = {};
11153
+ this.options = {};
11154
+ }
11155
+ get defaultPort() {
11156
+ if (typeof this.explicitDefaultPort === "number") {
11157
+ return this.explicitDefaultPort;
11158
+ }
11159
+ return isSecureEndpoint() ? 443 : 80;
11160
+ }
11161
+ set defaultPort(v) {
11162
+ this.explicitDefaultPort = v;
11163
+ }
11164
+ get protocol() {
11165
+ if (typeof this.explicitProtocol === "string") {
11166
+ return this.explicitProtocol;
11167
+ }
11168
+ return isSecureEndpoint() ? "https:" : "http:";
11169
+ }
11170
+ set protocol(v) {
11171
+ this.explicitProtocol = v;
11172
+ }
11173
+ callback(req, opts, fn) {
11174
+ throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
11175
+ }
11176
+ /**
11177
+ * Called by node-core's "_http_client.js" module when creating
11178
+ * a new HTTP request with this Agent instance.
11179
+ *
11180
+ * @api public
11181
+ */
11182
+ addRequest(req, _opts) {
11183
+ const opts = Object.assign({}, _opts);
11184
+ if (typeof opts.secureEndpoint !== "boolean") {
11185
+ opts.secureEndpoint = isSecureEndpoint();
11186
+ }
11187
+ if (opts.host == null) {
11188
+ opts.host = "localhost";
11189
+ }
11190
+ if (opts.port == null) {
11191
+ opts.port = opts.secureEndpoint ? 443 : 80;
11192
+ }
11193
+ if (opts.protocol == null) {
11194
+ opts.protocol = opts.secureEndpoint ? "https:" : "http:";
11195
+ }
11196
+ if (opts.host && opts.path) {
11197
+ delete opts.path;
11198
+ }
11199
+ delete opts.agent;
11200
+ delete opts.hostname;
11201
+ delete opts._defaultAgent;
11202
+ delete opts.defaultPort;
11203
+ delete opts.createConnection;
11204
+ req._last = true;
11205
+ req.shouldKeepAlive = false;
11206
+ let timedOut = false;
11207
+ let timeoutId = null;
11208
+ const timeoutMs = opts.timeout || this.timeout;
11209
+ const onerror = (err) => {
11210
+ if (req._hadError)
11211
+ return;
11212
+ req.emit("error", err);
11213
+ req._hadError = true;
11214
+ };
11215
+ const ontimeout = () => {
11216
+ timeoutId = null;
11217
+ timedOut = true;
11218
+ const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
11219
+ err.code = "ETIMEOUT";
11220
+ onerror(err);
11221
+ };
11222
+ const callbackError = (err) => {
11223
+ if (timedOut)
11224
+ return;
11225
+ if (timeoutId !== null) {
11226
+ clearTimeout(timeoutId);
11227
+ timeoutId = null;
11228
+ }
11229
+ onerror(err);
11230
+ };
11231
+ const onsocket = (socket) => {
11232
+ if (timedOut)
11233
+ return;
11234
+ if (timeoutId != null) {
11235
+ clearTimeout(timeoutId);
11236
+ timeoutId = null;
11237
+ }
11238
+ if (isAgent(socket)) {
11239
+ debug3("Callback returned another Agent instance %o", socket.constructor.name);
11240
+ socket.addRequest(req, opts);
11241
+ return;
11242
+ }
11243
+ if (socket) {
11244
+ socket.once("free", () => {
11245
+ this.freeSocket(socket, opts);
11246
+ });
11247
+ req.onSocket(socket);
11248
+ return;
11249
+ }
11250
+ const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
11251
+ onerror(err);
11252
+ };
11253
+ if (typeof this.callback !== "function") {
11254
+ onerror(new Error("`callback` is not defined"));
11255
+ return;
11256
+ }
11257
+ if (!this.promisifiedCallback) {
11258
+ if (this.callback.length >= 3) {
11259
+ debug3("Converting legacy callback function to promise");
11260
+ this.promisifiedCallback = promisify_1.default(this.callback);
11261
+ } else {
11262
+ this.promisifiedCallback = this.callback;
11263
+ }
11264
+ }
11265
+ if (typeof timeoutMs === "number" && timeoutMs > 0) {
11266
+ timeoutId = setTimeout(ontimeout, timeoutMs);
11267
+ }
11268
+ if ("port" in opts && typeof opts.port !== "number") {
11269
+ opts.port = Number(opts.port);
11270
+ }
11271
+ try {
11272
+ debug3("Resolving socket for %o request: %o", opts.protocol, `${req.method} ${req.path}`);
11273
+ Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
11274
+ } catch (err) {
11275
+ Promise.reject(err).catch(callbackError);
11276
+ }
11277
+ }
11278
+ freeSocket(socket, opts) {
11279
+ debug3("Freeing socket %o %o", socket.constructor.name, opts);
11280
+ socket.destroy();
11281
+ }
11282
+ destroy() {
11283
+ debug3("Destroying agent %o", this.constructor.name);
11284
+ }
11285
+ }
11286
+ createAgent2.Agent = Agent;
11287
+ createAgent2.prototype = createAgent2.Agent.prototype;
11288
+ })(createAgent || (createAgent = {}));
11289
+ module.exports = createAgent;
11290
+ }
11291
+ });
11292
+
11293
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
11294
+ var require_parse_proxy_response = __commonJS({
11295
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
11296
+ "use strict";
11297
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11298
+ return mod && mod.__esModule ? mod : { "default": mod };
11299
+ };
11300
+ Object.defineProperty(exports, "__esModule", { value: true });
11301
+ var debug_1 = __importDefault(require_src());
11302
+ var debug3 = debug_1.default("https-proxy-agent:parse-proxy-response");
11303
+ function parseProxyResponse(socket) {
11304
+ return new Promise((resolve, reject) => {
11305
+ let buffersLength = 0;
11306
+ const buffers = [];
11307
+ function read() {
11308
+ const b = socket.read();
11309
+ if (b)
11310
+ ondata(b);
11311
+ else
11312
+ socket.once("readable", read);
11313
+ }
11314
+ function cleanup() {
11315
+ socket.removeListener("end", onend);
11316
+ socket.removeListener("error", onerror);
11317
+ socket.removeListener("close", onclose);
11318
+ socket.removeListener("readable", read);
11319
+ }
11320
+ function onclose(err) {
11321
+ debug3("onclose had error %o", err);
11322
+ }
11323
+ function onend() {
11324
+ debug3("onend");
11325
+ }
11326
+ function onerror(err) {
11327
+ cleanup();
11328
+ debug3("onerror %o", err);
11329
+ reject(err);
11330
+ }
11331
+ function ondata(b) {
11332
+ buffers.push(b);
11333
+ buffersLength += b.length;
11334
+ const buffered = Buffer.concat(buffers, buffersLength);
11335
+ const endOfHeaders = buffered.indexOf("\r\n\r\n");
11336
+ if (endOfHeaders === -1) {
11337
+ debug3("have not received end of HTTP headers yet...");
11338
+ read();
11339
+ return;
11340
+ }
11341
+ const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
11342
+ const statusCode = +firstLine.split(" ")[1];
11343
+ debug3("got proxy server response: %o", firstLine);
11344
+ resolve({
11345
+ statusCode,
11346
+ buffered
11347
+ });
11348
+ }
11349
+ socket.on("error", onerror);
11350
+ socket.on("close", onclose);
11351
+ socket.on("end", onend);
11352
+ read();
11353
+ });
11354
+ }
11355
+ exports.default = parseProxyResponse;
11356
+ }
11357
+ });
11358
+
11359
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
11360
+ var require_agent = __commonJS({
11361
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
11362
+ "use strict";
11363
+ var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
11364
+ function adopt(value) {
11365
+ return value instanceof P ? value : new P(function(resolve) {
11366
+ resolve(value);
11367
+ });
11368
+ }
11369
+ return new (P || (P = Promise))(function(resolve, reject) {
11370
+ function fulfilled(value) {
11371
+ try {
11372
+ step(generator.next(value));
11373
+ } catch (e) {
11374
+ reject(e);
11375
+ }
11376
+ }
11377
+ function rejected(value) {
11378
+ try {
11379
+ step(generator["throw"](value));
11380
+ } catch (e) {
11381
+ reject(e);
11382
+ }
11383
+ }
11384
+ function step(result) {
11385
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
11386
+ }
11387
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11388
+ });
11389
+ };
11390
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11391
+ return mod && mod.__esModule ? mod : { "default": mod };
11392
+ };
11393
+ Object.defineProperty(exports, "__esModule", { value: true });
11394
+ var net_1 = __importDefault(__require("net"));
11395
+ var tls_1 = __importDefault(__require("tls"));
11396
+ var url_1 = __importDefault(__require("url"));
11397
+ var assert_1 = __importDefault(__require("assert"));
11398
+ var debug_1 = __importDefault(require_src());
11399
+ var agent_base_1 = require_src2();
11400
+ var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
11401
+ var debug3 = debug_1.default("https-proxy-agent:agent");
11402
+ var HttpsProxyAgent2 = class extends agent_base_1.Agent {
11403
+ constructor(_opts) {
11404
+ let opts;
11405
+ if (typeof _opts === "string") {
11406
+ opts = url_1.default.parse(_opts);
11407
+ } else {
11408
+ opts = _opts;
11409
+ }
11410
+ if (!opts) {
11411
+ throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");
11412
+ }
11413
+ debug3("creating new HttpsProxyAgent instance: %o", opts);
11414
+ super(opts);
11415
+ const proxy = Object.assign({}, opts);
11416
+ this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol);
11417
+ proxy.host = proxy.hostname || proxy.host;
11418
+ if (typeof proxy.port === "string") {
11419
+ proxy.port = parseInt(proxy.port, 10);
11420
+ }
11421
+ if (!proxy.port && proxy.host) {
11422
+ proxy.port = this.secureProxy ? 443 : 80;
11423
+ }
11424
+ if (this.secureProxy && !("ALPNProtocols" in proxy)) {
11425
+ proxy.ALPNProtocols = ["http 1.1"];
11426
+ }
11427
+ if (proxy.host && proxy.path) {
11428
+ delete proxy.path;
11429
+ delete proxy.pathname;
11430
+ }
11431
+ this.proxy = proxy;
11432
+ }
11433
+ /**
11434
+ * Called when the node-core HTTP client library is creating a
11435
+ * new HTTP request.
11436
+ *
11437
+ * @api protected
11438
+ */
11439
+ callback(req, opts) {
11440
+ return __awaiter(this, void 0, void 0, function* () {
11441
+ const { proxy, secureProxy } = this;
11442
+ let socket;
11443
+ if (secureProxy) {
11444
+ debug3("Creating `tls.Socket`: %o", proxy);
11445
+ socket = tls_1.default.connect(proxy);
11446
+ } else {
11447
+ debug3("Creating `net.Socket`: %o", proxy);
11448
+ socket = net_1.default.connect(proxy);
11449
+ }
11450
+ const headers = Object.assign({}, proxy.headers);
11451
+ const hostname = `${opts.host}:${opts.port}`;
11452
+ let payload = `CONNECT ${hostname} HTTP/1.1\r
11453
+ `;
11454
+ if (proxy.auth) {
11455
+ headers["Proxy-Authorization"] = `Basic ${Buffer.from(proxy.auth).toString("base64")}`;
11456
+ }
11457
+ let { host, port, secureEndpoint } = opts;
11458
+ if (!isDefaultPort(port, secureEndpoint)) {
11459
+ host += `:${port}`;
11460
+ }
11461
+ headers.Host = host;
11462
+ headers.Connection = "close";
11463
+ for (const name of Object.keys(headers)) {
11464
+ payload += `${name}: ${headers[name]}\r
11465
+ `;
11466
+ }
11467
+ const proxyResponsePromise = parse_proxy_response_1.default(socket);
11468
+ socket.write(`${payload}\r
11469
+ `);
11470
+ const { statusCode, buffered } = yield proxyResponsePromise;
11471
+ if (statusCode === 200) {
11472
+ req.once("socket", resume);
11473
+ if (opts.secureEndpoint) {
11474
+ debug3("Upgrading socket connection to TLS");
11475
+ const servername = opts.servername || opts.host;
11476
+ return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, "host", "hostname", "path", "port")), {
11477
+ socket,
11478
+ servername
11479
+ }));
11480
+ }
11481
+ return socket;
11482
+ }
11483
+ socket.destroy();
11484
+ const fakeSocket = new net_1.default.Socket({ writable: false });
11485
+ fakeSocket.readable = true;
11486
+ req.once("socket", (s) => {
11487
+ debug3("replaying proxy buffer for failed request");
11488
+ assert_1.default(s.listenerCount("data") > 0);
11489
+ s.push(buffered);
11490
+ s.push(null);
11491
+ });
11492
+ return fakeSocket;
11493
+ });
11494
+ }
11495
+ };
11496
+ exports.default = HttpsProxyAgent2;
11497
+ function resume(socket) {
11498
+ socket.resume();
11499
+ }
11500
+ function isDefaultPort(port, secure) {
11501
+ return Boolean(!secure && port === 80 || secure && port === 443);
11502
+ }
11503
+ function isHTTPS(protocol) {
11504
+ return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
11505
+ }
11506
+ function omit(obj, ...keys) {
11507
+ const ret = {};
11508
+ let key;
11509
+ for (key in obj) {
11510
+ if (!keys.includes(key)) {
11511
+ ret[key] = obj[key];
11512
+ }
11513
+ }
11514
+ return ret;
11515
+ }
11516
+ }
11517
+ });
11518
+
11519
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
11520
+ var require_dist = __commonJS({
11521
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
11522
+ "use strict";
11523
+ var __importDefault = exports && exports.__importDefault || function(mod) {
11524
+ return mod && mod.__esModule ? mod : { "default": mod };
11525
+ };
11526
+ var agent_1 = __importDefault(require_agent());
11527
+ function createHttpsProxyAgent(opts) {
11528
+ return new agent_1.default(opts);
11529
+ }
11530
+ (function(createHttpsProxyAgent2) {
11531
+ createHttpsProxyAgent2.HttpsProxyAgent = agent_1.default;
11532
+ createHttpsProxyAgent2.prototype = agent_1.default.prototype;
11533
+ })(createHttpsProxyAgent || (createHttpsProxyAgent = {}));
11534
+ module.exports = createHttpsProxyAgent;
11535
+ }
11536
+ });
11537
+
11154
11538
  // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
11155
11539
  var require_debug = __commonJS({
11156
11540
  "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
@@ -11502,7 +11886,7 @@ var require_follow_redirects = __commonJS({
11502
11886
  removeMatchingHeaders(/^content-/i, this._options.headers);
11503
11887
  }
11504
11888
  var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
11505
- var currentUrlParts = parseUrl(this._currentUrl);
11889
+ var currentUrlParts = parseUrl2(this._currentUrl);
11506
11890
  var currentHost = currentHostHeader || currentUrlParts.host;
11507
11891
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
11508
11892
  var redirectUrl = resolveUrl(location, currentUrl);
@@ -11541,7 +11925,7 @@ var require_follow_redirects = __commonJS({
11541
11925
  if (isURL(input)) {
11542
11926
  input = spreadUrlObject(input);
11543
11927
  } else if (isString2(input)) {
11544
- input = spreadUrlObject(parseUrl(input));
11928
+ input = spreadUrlObject(parseUrl2(input));
11545
11929
  } else {
11546
11930
  callback = options;
11547
11931
  options = validateUrl(input);
@@ -11577,7 +11961,7 @@ var require_follow_redirects = __commonJS({
11577
11961
  }
11578
11962
  function noop2() {
11579
11963
  }
11580
- function parseUrl(input) {
11964
+ function parseUrl2(input) {
11581
11965
  var parsed;
11582
11966
  if (useNativeURL) {
11583
11967
  parsed = new URL2(input);
@@ -11590,7 +11974,7 @@ var require_follow_redirects = __commonJS({
11590
11974
  return parsed;
11591
11975
  }
11592
11976
  function resolveUrl(relative, base) {
11593
- return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
11977
+ return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
11594
11978
  }
11595
11979
  function validateUrl(input) {
11596
11980
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -11682,14 +12066,14 @@ var require_follow_redirects = __commonJS({
11682
12066
  }
11683
12067
  });
11684
12068
 
11685
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
12069
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
11686
12070
  function bind(fn, thisArg) {
11687
12071
  return function wrap() {
11688
12072
  return fn.apply(thisArg, arguments);
11689
12073
  };
11690
12074
  }
11691
12075
 
11692
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/utils.js
12076
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/utils.js
11693
12077
  var { toString } = Object.prototype;
11694
12078
  var { getPrototypeOf } = Object;
11695
12079
  var { iterator, toStringTag } = Symbol;
@@ -11741,13 +12125,31 @@ var isEmptyObject = (val) => {
11741
12125
  };
11742
12126
  var isDate = kindOfTest("Date");
11743
12127
  var isFile = kindOfTest("File");
12128
+ var isReactNativeBlob = (value) => {
12129
+ return !!(value && typeof value.uri !== "undefined");
12130
+ };
12131
+ var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
11744
12132
  var isBlob = kindOfTest("Blob");
11745
12133
  var isFileList = kindOfTest("FileList");
11746
12134
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
12135
+ function getGlobal() {
12136
+ if (typeof globalThis !== "undefined") return globalThis;
12137
+ if (typeof self !== "undefined") return self;
12138
+ if (typeof window !== "undefined") return window;
12139
+ if (typeof global !== "undefined") return global;
12140
+ return {};
12141
+ }
12142
+ var G = getGlobal();
12143
+ var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
11747
12144
  var isFormData = (thing) => {
11748
- let kind;
11749
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
11750
- kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
12145
+ if (!thing) return false;
12146
+ if (FormDataCtor && thing instanceof FormDataCtor) return true;
12147
+ const proto = getPrototypeOf(thing);
12148
+ if (!proto || proto === Object.prototype) return false;
12149
+ if (!isFunction(thing.append)) return false;
12150
+ const kind = kindOf(thing);
12151
+ return kind === "formdata" || // detect form-data instance
12152
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
11751
12153
  };
11752
12154
  var isURLSearchParams = kindOfTest("URLSearchParams");
11753
12155
  var [isReadableStream, isRequest, isResponse, isHeaders] = [
@@ -11756,7 +12158,9 @@ var [isReadableStream, isRequest, isResponse, isHeaders] = [
11756
12158
  "Response",
11757
12159
  "Headers"
11758
12160
  ].map(kindOfTest);
11759
- var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
12161
+ var trim = (str) => {
12162
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
12163
+ };
11760
12164
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
11761
12165
  if (obj === null || typeof obj === "undefined") {
11762
12166
  return;
@@ -11804,7 +12208,7 @@ var _global = (() => {
11804
12208
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
11805
12209
  })();
11806
12210
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
11807
- function merge() {
12211
+ function merge(...objs) {
11808
12212
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
11809
12213
  const result = {};
11810
12214
  const assignValue = (val, key) => {
@@ -11812,8 +12216,9 @@ function merge() {
11812
12216
  return;
11813
12217
  }
11814
12218
  const targetKey = caseless && findKey(result, key) || key;
11815
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
11816
- result[targetKey] = merge(result[targetKey], val);
12219
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12220
+ if (isPlainObject(existing) && isPlainObject(val)) {
12221
+ result[targetKey] = merge(existing, val);
11817
12222
  } else if (isPlainObject(val)) {
11818
12223
  result[targetKey] = merge({}, val);
11819
12224
  } else if (isArray(val)) {
@@ -11822,8 +12227,8 @@ function merge() {
11822
12227
  result[targetKey] = val;
11823
12228
  }
11824
12229
  };
11825
- for (let i = 0, l = arguments.length; i < l; i++) {
11826
- arguments[i] && forEach(arguments[i], assignValue);
12230
+ for (let i = 0, l = objs.length; i < l; i++) {
12231
+ objs[i] && forEach(objs[i], assignValue);
11827
12232
  }
11828
12233
  return result;
11829
12234
  }
@@ -11833,6 +12238,9 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
11833
12238
  (val, key) => {
11834
12239
  if (thisArg && isFunction(val)) {
11835
12240
  Object.defineProperty(a, key, {
12241
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
12242
+ // hijack defineProperty's accessor-vs-data resolution.
12243
+ __proto__: null,
11836
12244
  value: bind(val, thisArg),
11837
12245
  writable: true,
11838
12246
  enumerable: true,
@@ -11840,6 +12248,7 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
11840
12248
  });
11841
12249
  } else {
11842
12250
  Object.defineProperty(a, key, {
12251
+ __proto__: null,
11843
12252
  value: val,
11844
12253
  writable: true,
11845
12254
  enumerable: true,
@@ -11858,17 +12267,16 @@ var stripBOM = (content) => {
11858
12267
  return content;
11859
12268
  };
11860
12269
  var inherits = (constructor, superConstructor, props, descriptors) => {
11861
- constructor.prototype = Object.create(
11862
- superConstructor.prototype,
11863
- descriptors
11864
- );
12270
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
11865
12271
  Object.defineProperty(constructor.prototype, "constructor", {
12272
+ __proto__: null,
11866
12273
  value: constructor,
11867
12274
  writable: true,
11868
12275
  enumerable: false,
11869
12276
  configurable: true
11870
12277
  });
11871
12278
  Object.defineProperty(constructor, "super", {
12279
+ __proto__: null,
11872
12280
  value: superConstructor.prototype
11873
12281
  });
11874
12282
  props && Object.assign(constructor.prototype, props);
@@ -11957,7 +12365,7 @@ var reduceDescriptors = (obj, reducer) => {
11957
12365
  };
11958
12366
  var freezeMethods = (obj) => {
11959
12367
  reduceDescriptors(obj, (descriptor, name) => {
11960
- if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
12368
+ if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
11961
12369
  return false;
11962
12370
  }
11963
12371
  const value = obj[name];
@@ -11993,29 +12401,29 @@ function isSpecCompliantForm(thing) {
11993
12401
  return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
11994
12402
  }
11995
12403
  var toJSONObject = (obj) => {
11996
- const stack = new Array(10);
11997
- const visit = (source, i) => {
12404
+ const visited = /* @__PURE__ */ new WeakSet();
12405
+ const visit = (source) => {
11998
12406
  if (isObject(source)) {
11999
- if (stack.indexOf(source) >= 0) {
12407
+ if (visited.has(source)) {
12000
12408
  return;
12001
12409
  }
12002
12410
  if (isBuffer(source)) {
12003
12411
  return source;
12004
12412
  }
12005
12413
  if (!("toJSON" in source)) {
12006
- stack[i] = source;
12414
+ visited.add(source);
12007
12415
  const target = isArray(source) ? [] : {};
12008
12416
  forEach(source, (value, key) => {
12009
- const reducedValue = visit(value, i + 1);
12417
+ const reducedValue = visit(value);
12010
12418
  !isUndefined(reducedValue) && (target[key] = reducedValue);
12011
12419
  });
12012
- stack[i] = void 0;
12420
+ visited.delete(source);
12013
12421
  return target;
12014
12422
  }
12015
12423
  }
12016
12424
  return source;
12017
12425
  };
12018
- return visit(obj, 0);
12426
+ return visit(obj);
12019
12427
  };
12020
12428
  var isAsyncFn = kindOfTest("AsyncFunction");
12021
12429
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
@@ -12060,6 +12468,8 @@ var utils_default = {
12060
12468
  isUndefined,
12061
12469
  isDate,
12062
12470
  isFile,
12471
+ isReactNativeBlob,
12472
+ isReactNative,
12063
12473
  isBlob,
12064
12474
  isRegExp,
12065
12475
  isFunction,
@@ -12102,77 +12512,468 @@ var utils_default = {
12102
12512
  isIterable
12103
12513
  };
12104
12514
 
12105
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12106
- var AxiosError = class _AxiosError extends Error {
12107
- static from(error, code, config, request, response, customProps) {
12108
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12109
- axiosError.cause = error;
12110
- axiosError.name = error.name;
12111
- customProps && Object.assign(axiosError, customProps);
12112
- return axiosError;
12515
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12516
+ var ignoreDuplicateOf = utils_default.toObjectSet([
12517
+ "age",
12518
+ "authorization",
12519
+ "content-length",
12520
+ "content-type",
12521
+ "etag",
12522
+ "expires",
12523
+ "from",
12524
+ "host",
12525
+ "if-modified-since",
12526
+ "if-unmodified-since",
12527
+ "last-modified",
12528
+ "location",
12529
+ "max-forwards",
12530
+ "proxy-authorization",
12531
+ "referer",
12532
+ "retry-after",
12533
+ "user-agent"
12534
+ ]);
12535
+ var parseHeaders_default = (rawHeaders) => {
12536
+ const parsed = {};
12537
+ let key;
12538
+ let val;
12539
+ let i;
12540
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
12541
+ i = line.indexOf(":");
12542
+ key = line.substring(0, i).trim().toLowerCase();
12543
+ val = line.substring(i + 1).trim();
12544
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12545
+ return;
12546
+ }
12547
+ if (key === "set-cookie") {
12548
+ if (parsed[key]) {
12549
+ parsed[key].push(val);
12550
+ } else {
12551
+ parsed[key] = [val];
12552
+ }
12553
+ } else {
12554
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12555
+ }
12556
+ });
12557
+ return parsed;
12558
+ };
12559
+
12560
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12561
+ function trimSPorHTAB(str) {
12562
+ let start = 0;
12563
+ let end = str.length;
12564
+ while (start < end) {
12565
+ const code = str.charCodeAt(start);
12566
+ if (code !== 9 && code !== 32) {
12567
+ break;
12568
+ }
12569
+ start += 1;
12113
12570
  }
12114
- /**
12115
- * Create an Error with the specified message, config, error code, request and response.
12116
- *
12117
- * @param {string} message The error message.
12118
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
12119
- * @param {Object} [config] The config.
12120
- * @param {Object} [request] The request.
12121
- * @param {Object} [response] The response.
12122
- *
12123
- * @returns {Error} The created error.
12124
- */
12125
- constructor(message, code, config, request, response) {
12126
- super(message);
12127
- this.name = "AxiosError";
12128
- this.isAxiosError = true;
12129
- code && (this.code = code);
12130
- config && (this.config = config);
12131
- request && (this.request = request);
12132
- if (response) {
12133
- this.response = response;
12134
- this.status = response.status;
12571
+ while (end > start) {
12572
+ const code = str.charCodeAt(end - 1);
12573
+ if (code !== 9 && code !== 32) {
12574
+ break;
12135
12575
  }
12576
+ end -= 1;
12136
12577
  }
12137
- toJSON() {
12138
- return {
12139
- // Standard
12140
- message: this.message,
12141
- name: this.name,
12142
- // Microsoft
12143
- description: this.description,
12144
- number: this.number,
12145
- // Mozilla
12146
- fileName: this.fileName,
12147
- lineNumber: this.lineNumber,
12148
- columnNumber: this.columnNumber,
12149
- stack: this.stack,
12150
- // Axios
12151
- config: utils_default.toJSONObject(this.config),
12152
- code: this.code,
12153
- status: this.status
12154
- };
12578
+ return start === 0 && end === str.length ? str : str.slice(start, end);
12579
+ }
12580
+ var INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
12581
+ var INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
12582
+ function sanitizeValue(value, invalidChars) {
12583
+ if (utils_default.isArray(value)) {
12584
+ return value.map((item) => sanitizeValue(item, invalidChars));
12155
12585
  }
12156
- };
12157
- AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
12158
- AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
12159
- AxiosError.ECONNABORTED = "ECONNABORTED";
12160
- AxiosError.ETIMEDOUT = "ETIMEDOUT";
12161
- AxiosError.ERR_NETWORK = "ERR_NETWORK";
12162
- AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
12586
+ return trimSPorHTAB(String(value).replace(invalidChars, ""));
12587
+ }
12588
+ var sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
12589
+ var sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
12590
+ function toByteStringHeaderObject(headers) {
12591
+ const byteStringHeaders = /* @__PURE__ */ Object.create(null);
12592
+ utils_default.forEach(headers.toJSON(), (value, header) => {
12593
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
12594
+ });
12595
+ return byteStringHeaders;
12596
+ }
12597
+
12598
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12599
+ var $internals = /* @__PURE__ */ Symbol("internals");
12600
+ function normalizeHeader(header) {
12601
+ return header && String(header).trim().toLowerCase();
12602
+ }
12603
+ function normalizeValue(value) {
12604
+ if (value === false || value == null) {
12605
+ return value;
12606
+ }
12607
+ return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
12608
+ }
12609
+ function parseTokens(str) {
12610
+ const tokens = /* @__PURE__ */ Object.create(null);
12611
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
12612
+ let match;
12613
+ while (match = tokensRE.exec(str)) {
12614
+ tokens[match[1]] = match[2];
12615
+ }
12616
+ return tokens;
12617
+ }
12618
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12619
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12620
+ if (utils_default.isFunction(filter2)) {
12621
+ return filter2.call(this, value, header);
12622
+ }
12623
+ if (isHeaderNameFilter) {
12624
+ value = header;
12625
+ }
12626
+ if (!utils_default.isString(value)) return;
12627
+ if (utils_default.isString(filter2)) {
12628
+ return value.indexOf(filter2) !== -1;
12629
+ }
12630
+ if (utils_default.isRegExp(filter2)) {
12631
+ return filter2.test(value);
12632
+ }
12633
+ }
12634
+ function formatHeader(header) {
12635
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
12636
+ return char.toUpperCase() + str;
12637
+ });
12638
+ }
12639
+ function buildAccessors(obj, header) {
12640
+ const accessorName = utils_default.toCamelCase(" " + header);
12641
+ ["get", "set", "has"].forEach((methodName) => {
12642
+ Object.defineProperty(obj, methodName + accessorName, {
12643
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
12644
+ // this data descriptor into an accessor descriptor on the way in.
12645
+ __proto__: null,
12646
+ value: function(arg1, arg2, arg3) {
12647
+ return this[methodName].call(this, header, arg1, arg2, arg3);
12648
+ },
12649
+ configurable: true
12650
+ });
12651
+ });
12652
+ }
12653
+ var AxiosHeaders = class {
12654
+ constructor(headers) {
12655
+ headers && this.set(headers);
12656
+ }
12657
+ set(header, valueOrRewrite, rewrite) {
12658
+ const self2 = this;
12659
+ function setHeader(_value, _header, _rewrite) {
12660
+ const lHeader = normalizeHeader(_header);
12661
+ if (!lHeader) {
12662
+ throw new Error("header name must be a non-empty string");
12663
+ }
12664
+ const key = utils_default.findKey(self2, lHeader);
12665
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12666
+ self2[key || _header] = normalizeValue(_value);
12667
+ }
12668
+ }
12669
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
12670
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
12671
+ setHeaders(header, valueOrRewrite);
12672
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12673
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
12674
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12675
+ let obj = {}, dest, key;
12676
+ for (const entry of header) {
12677
+ if (!utils_default.isArray(entry)) {
12678
+ throw TypeError("Object iterator must return a key-value pair");
12679
+ }
12680
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12681
+ }
12682
+ setHeaders(obj, valueOrRewrite);
12683
+ } else {
12684
+ header != null && setHeader(valueOrRewrite, header, rewrite);
12685
+ }
12686
+ return this;
12687
+ }
12688
+ get(header, parser) {
12689
+ header = normalizeHeader(header);
12690
+ if (header) {
12691
+ const key = utils_default.findKey(this, header);
12692
+ if (key) {
12693
+ const value = this[key];
12694
+ if (!parser) {
12695
+ return value;
12696
+ }
12697
+ if (parser === true) {
12698
+ return parseTokens(value);
12699
+ }
12700
+ if (utils_default.isFunction(parser)) {
12701
+ return parser.call(this, value, key);
12702
+ }
12703
+ if (utils_default.isRegExp(parser)) {
12704
+ return parser.exec(value);
12705
+ }
12706
+ throw new TypeError("parser must be boolean|regexp|function");
12707
+ }
12708
+ }
12709
+ }
12710
+ has(header, matcher) {
12711
+ header = normalizeHeader(header);
12712
+ if (header) {
12713
+ const key = utils_default.findKey(this, header);
12714
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12715
+ }
12716
+ return false;
12717
+ }
12718
+ delete(header, matcher) {
12719
+ const self2 = this;
12720
+ let deleted = false;
12721
+ function deleteHeader(_header) {
12722
+ _header = normalizeHeader(_header);
12723
+ if (_header) {
12724
+ const key = utils_default.findKey(self2, _header);
12725
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
12726
+ delete self2[key];
12727
+ deleted = true;
12728
+ }
12729
+ }
12730
+ }
12731
+ if (utils_default.isArray(header)) {
12732
+ header.forEach(deleteHeader);
12733
+ } else {
12734
+ deleteHeader(header);
12735
+ }
12736
+ return deleted;
12737
+ }
12738
+ clear(matcher) {
12739
+ const keys = Object.keys(this);
12740
+ let i = keys.length;
12741
+ let deleted = false;
12742
+ while (i--) {
12743
+ const key = keys[i];
12744
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
12745
+ delete this[key];
12746
+ deleted = true;
12747
+ }
12748
+ }
12749
+ return deleted;
12750
+ }
12751
+ normalize(format) {
12752
+ const self2 = this;
12753
+ const headers = {};
12754
+ utils_default.forEach(this, (value, header) => {
12755
+ const key = utils_default.findKey(headers, header);
12756
+ if (key) {
12757
+ self2[key] = normalizeValue(value);
12758
+ delete self2[header];
12759
+ return;
12760
+ }
12761
+ const normalized = format ? formatHeader(header) : String(header).trim();
12762
+ if (normalized !== header) {
12763
+ delete self2[header];
12764
+ }
12765
+ self2[normalized] = normalizeValue(value);
12766
+ headers[normalized] = true;
12767
+ });
12768
+ return this;
12769
+ }
12770
+ concat(...targets) {
12771
+ return this.constructor.concat(this, ...targets);
12772
+ }
12773
+ toJSON(asStrings) {
12774
+ const obj = /* @__PURE__ */ Object.create(null);
12775
+ utils_default.forEach(this, (value, header) => {
12776
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
12777
+ });
12778
+ return obj;
12779
+ }
12780
+ [Symbol.iterator]() {
12781
+ return Object.entries(this.toJSON())[Symbol.iterator]();
12782
+ }
12783
+ toString() {
12784
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12785
+ }
12786
+ getSetCookie() {
12787
+ return this.get("set-cookie") || [];
12788
+ }
12789
+ get [Symbol.toStringTag]() {
12790
+ return "AxiosHeaders";
12791
+ }
12792
+ static from(thing) {
12793
+ return thing instanceof this ? thing : new this(thing);
12794
+ }
12795
+ static concat(first, ...targets) {
12796
+ const computed = new this(first);
12797
+ targets.forEach((target) => computed.set(target));
12798
+ return computed;
12799
+ }
12800
+ static accessor(header) {
12801
+ const internals = this[$internals] = this[$internals] = {
12802
+ accessors: {}
12803
+ };
12804
+ const accessors = internals.accessors;
12805
+ const prototype2 = this.prototype;
12806
+ function defineAccessor(_header) {
12807
+ const lHeader = normalizeHeader(_header);
12808
+ if (!accessors[lHeader]) {
12809
+ buildAccessors(prototype2, _header);
12810
+ accessors[lHeader] = true;
12811
+ }
12812
+ }
12813
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
12814
+ return this;
12815
+ }
12816
+ };
12817
+ AxiosHeaders.accessor([
12818
+ "Content-Type",
12819
+ "Content-Length",
12820
+ "Accept",
12821
+ "Accept-Encoding",
12822
+ "User-Agent",
12823
+ "Authorization"
12824
+ ]);
12825
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12826
+ let mapped = key[0].toUpperCase() + key.slice(1);
12827
+ return {
12828
+ get: () => value,
12829
+ set(headerValue) {
12830
+ this[mapped] = headerValue;
12831
+ }
12832
+ };
12833
+ });
12834
+ utils_default.freezeMethods(AxiosHeaders);
12835
+ var AxiosHeaders_default = AxiosHeaders;
12836
+
12837
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12838
+ var REDACTED = "[REDACTED ****]";
12839
+ function hasOwnOrPrototypeToJSON(source) {
12840
+ if (utils_default.hasOwnProp(source, "toJSON")) {
12841
+ return true;
12842
+ }
12843
+ let prototype2 = Object.getPrototypeOf(source);
12844
+ while (prototype2 && prototype2 !== Object.prototype) {
12845
+ if (utils_default.hasOwnProp(prototype2, "toJSON")) {
12846
+ return true;
12847
+ }
12848
+ prototype2 = Object.getPrototypeOf(prototype2);
12849
+ }
12850
+ return false;
12851
+ }
12852
+ function redactConfig(config, redactKeys) {
12853
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
12854
+ const seen = [];
12855
+ const visit = (source) => {
12856
+ if (source === null || typeof source !== "object") return source;
12857
+ if (utils_default.isBuffer(source)) return source;
12858
+ if (seen.indexOf(source) !== -1) return void 0;
12859
+ if (source instanceof AxiosHeaders_default) {
12860
+ source = source.toJSON();
12861
+ }
12862
+ seen.push(source);
12863
+ let result;
12864
+ if (utils_default.isArray(source)) {
12865
+ result = [];
12866
+ source.forEach((v, i) => {
12867
+ const reducedValue = visit(v);
12868
+ if (!utils_default.isUndefined(reducedValue)) {
12869
+ result[i] = reducedValue;
12870
+ }
12871
+ });
12872
+ } else {
12873
+ if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
12874
+ seen.pop();
12875
+ return source;
12876
+ }
12877
+ result = /* @__PURE__ */ Object.create(null);
12878
+ for (const [key, value] of Object.entries(source)) {
12879
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
12880
+ if (!utils_default.isUndefined(reducedValue)) {
12881
+ result[key] = reducedValue;
12882
+ }
12883
+ }
12884
+ }
12885
+ seen.pop();
12886
+ return result;
12887
+ };
12888
+ return visit(config);
12889
+ }
12890
+ var AxiosError = class _AxiosError extends Error {
12891
+ static from(error, code, config, request, response, customProps) {
12892
+ const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12893
+ axiosError.cause = error;
12894
+ axiosError.name = error.name;
12895
+ if (error.status != null && axiosError.status == null) {
12896
+ axiosError.status = error.status;
12897
+ }
12898
+ customProps && Object.assign(axiosError, customProps);
12899
+ return axiosError;
12900
+ }
12901
+ /**
12902
+ * Create an Error with the specified message, config, error code, request and response.
12903
+ *
12904
+ * @param {string} message The error message.
12905
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
12906
+ * @param {Object} [config] The config.
12907
+ * @param {Object} [request] The request.
12908
+ * @param {Object} [response] The response.
12909
+ *
12910
+ * @returns {Error} The created error.
12911
+ */
12912
+ constructor(message, code, config, request, response) {
12913
+ super(message);
12914
+ Object.defineProperty(this, "message", {
12915
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
12916
+ // this data descriptor into an accessor descriptor on the way in.
12917
+ __proto__: null,
12918
+ value: message,
12919
+ enumerable: true,
12920
+ writable: true,
12921
+ configurable: true
12922
+ });
12923
+ this.name = "AxiosError";
12924
+ this.isAxiosError = true;
12925
+ code && (this.code = code);
12926
+ config && (this.config = config);
12927
+ request && (this.request = request);
12928
+ if (response) {
12929
+ this.response = response;
12930
+ this.status = response.status;
12931
+ }
12932
+ }
12933
+ toJSON() {
12934
+ const config = this.config;
12935
+ const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
12936
+ const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
12937
+ return {
12938
+ // Standard
12939
+ message: this.message,
12940
+ name: this.name,
12941
+ // Microsoft
12942
+ description: this.description,
12943
+ number: this.number,
12944
+ // Mozilla
12945
+ fileName: this.fileName,
12946
+ lineNumber: this.lineNumber,
12947
+ columnNumber: this.columnNumber,
12948
+ stack: this.stack,
12949
+ // Axios
12950
+ config: serializedConfig,
12951
+ code: this.code,
12952
+ status: this.status
12953
+ };
12954
+ }
12955
+ };
12956
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
12957
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
12958
+ AxiosError.ECONNABORTED = "ECONNABORTED";
12959
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
12960
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
12961
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
12962
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
12163
12963
  AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
12164
12964
  AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
12165
12965
  AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
12166
12966
  AxiosError.ERR_CANCELED = "ERR_CANCELED";
12167
12967
  AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
12168
12968
  AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12969
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12169
12970
  var AxiosError_default = AxiosError;
12170
12971
 
12171
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
12972
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
12172
12973
  var import_form_data = __toESM(require_form_data(), 1);
12173
12974
  var FormData_default = import_form_data.default;
12174
12975
 
12175
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
12976
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
12176
12977
  function isVisitable(thing) {
12177
12978
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12178
12979
  }
@@ -12197,18 +12998,24 @@ function toFormData(obj, formData, options) {
12197
12998
  throw new TypeError("target must be an object");
12198
12999
  }
12199
13000
  formData = formData || new (FormData_default || FormData)();
12200
- options = utils_default.toFlatObject(options, {
12201
- metaTokens: true,
12202
- dots: false,
12203
- indexes: false
12204
- }, false, function defined(option, source) {
12205
- return !utils_default.isUndefined(source[option]);
12206
- });
13001
+ options = utils_default.toFlatObject(
13002
+ options,
13003
+ {
13004
+ metaTokens: true,
13005
+ dots: false,
13006
+ indexes: false
13007
+ },
13008
+ false,
13009
+ function defined(option, source) {
13010
+ return !utils_default.isUndefined(source[option]);
13011
+ }
13012
+ );
12207
13013
  const metaTokens = options.metaTokens;
12208
13014
  const visitor = options.visitor || defaultVisitor;
12209
13015
  const dots = options.dots;
12210
13016
  const indexes = options.indexes;
12211
13017
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13018
+ const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
12212
13019
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
12213
13020
  if (!utils_default.isFunction(visitor)) {
12214
13021
  throw new TypeError("visitor must be a function");
@@ -12231,6 +13038,10 @@ function toFormData(obj, formData, options) {
12231
13038
  }
12232
13039
  function defaultVisitor(value, key, path) {
12233
13040
  let arr = value;
13041
+ if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
13042
+ formData.append(renderKey(path, key, dots), convertValue(value));
13043
+ return false;
13044
+ }
12234
13045
  if (value && !path && typeof value === "object") {
12235
13046
  if (utils_default.endsWith(key, "{}")) {
12236
13047
  key = metaTokens ? key : key.slice(0, -2);
@@ -12259,22 +13070,22 @@ function toFormData(obj, formData, options) {
12259
13070
  convertValue,
12260
13071
  isVisitable
12261
13072
  });
12262
- function build(value, path) {
13073
+ function build(value, path, depth = 0) {
12263
13074
  if (utils_default.isUndefined(value)) return;
13075
+ if (depth > maxDepth) {
13076
+ throw new AxiosError_default(
13077
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13078
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13079
+ );
13080
+ }
12264
13081
  if (stack.indexOf(value) !== -1) {
12265
13082
  throw Error("Circular reference detected in " + path.join("."));
12266
13083
  }
12267
13084
  stack.push(value);
12268
13085
  utils_default.forEach(value, function each(el, key) {
12269
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
12270
- formData,
12271
- el,
12272
- utils_default.isString(key) ? key.trim() : key,
12273
- path,
12274
- exposedHelpers
12275
- );
13086
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
12276
13087
  if (result === true) {
12277
- build(el, path ? path.concat(key) : [key]);
13088
+ build(el, path ? path.concat(key) : [key], depth + 1);
12278
13089
  }
12279
13090
  });
12280
13091
  stack.pop();
@@ -12287,7 +13098,7 @@ function toFormData(obj, formData, options) {
12287
13098
  }
12288
13099
  var toFormData_default = toFormData;
12289
13100
 
12290
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13101
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
12291
13102
  function encode(str) {
12292
13103
  const charMap = {
12293
13104
  "!": "%21",
@@ -12295,10 +13106,9 @@ function encode(str) {
12295
13106
  "(": "%28",
12296
13107
  ")": "%29",
12297
13108
  "~": "%7E",
12298
- "%20": "+",
12299
- "%00": "\0"
13109
+ "%20": "+"
12300
13110
  };
12301
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
13111
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
12302
13112
  return charMap[match];
12303
13113
  });
12304
13114
  }
@@ -12320,7 +13130,7 @@ prototype.toString = function toString2(encoder) {
12320
13130
  };
12321
13131
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
12322
13132
 
12323
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
13133
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
12324
13134
  function encode2(val) {
12325
13135
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
12326
13136
  }
@@ -12349,7 +13159,7 @@ function buildURL(url2, params, options) {
12349
13159
  return url2;
12350
13160
  }
12351
13161
 
12352
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
13162
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
12353
13163
  var InterceptorManager = class {
12354
13164
  constructor() {
12355
13165
  this.handlers = [];
@@ -12414,7 +13224,7 @@ var InterceptorManager = class {
12414
13224
  };
12415
13225
  var InterceptorManager_default = InterceptorManager;
12416
13226
 
12417
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
13227
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
12418
13228
  var transitional_default = {
12419
13229
  silentJSONParsing: true,
12420
13230
  forcedJSONParsing: true,
@@ -12422,14 +13232,14 @@ var transitional_default = {
12422
13232
  legacyInterceptorReqResOrdering: true
12423
13233
  };
12424
13234
 
12425
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13235
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12426
13236
  import crypto from "crypto";
12427
13237
 
12428
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13238
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12429
13239
  import url from "url";
12430
13240
  var URLSearchParams_default = url.URLSearchParams;
12431
13241
 
12432
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13242
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12433
13243
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12434
13244
  var DIGIT = "0123456789";
12435
13245
  var ALPHABET = {
@@ -12459,7 +13269,7 @@ var node_default = {
12459
13269
  protocols: ["http", "https", "file", "data"]
12460
13270
  };
12461
13271
 
12462
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
13272
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
12463
13273
  var utils_exports = {};
12464
13274
  __export(utils_exports, {
12465
13275
  hasBrowserEnv: () => hasBrowserEnv,
@@ -12477,13 +13287,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
12477
13287
  })();
12478
13288
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
12479
13289
 
12480
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/index.js
13290
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/index.js
12481
13291
  var platform_default = {
12482
13292
  ...utils_exports,
12483
13293
  ...node_default
12484
13294
  };
12485
13295
 
12486
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
13296
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
12487
13297
  function toURLEncodedForm(data, options) {
12488
13298
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
12489
13299
  visitor: function(value, key, path, helpers) {
@@ -12497,7 +13307,7 @@ function toURLEncodedForm(data, options) {
12497
13307
  });
12498
13308
  }
12499
13309
 
12500
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
13310
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
12501
13311
  function parsePropPath(name) {
12502
13312
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
12503
13313
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -12510,430 +13320,164 @@ function arrayToObject(arr) {
12510
13320
  const len = keys.length;
12511
13321
  let key;
12512
13322
  for (i = 0; i < len; i++) {
12513
- key = keys[i];
12514
- obj[key] = arr[key];
12515
- }
12516
- return obj;
12517
- }
12518
- function formDataToJSON(formData) {
12519
- function buildPath(path, value, target, index) {
12520
- let name = path[index++];
12521
- if (name === "__proto__") return true;
12522
- const isNumericKey = Number.isFinite(+name);
12523
- const isLast = index >= path.length;
12524
- name = !name && utils_default.isArray(target) ? target.length : name;
12525
- if (isLast) {
12526
- if (utils_default.hasOwnProp(target, name)) {
12527
- target[name] = [target[name], value];
12528
- } else {
12529
- target[name] = value;
12530
- }
12531
- return !isNumericKey;
12532
- }
12533
- if (!target[name] || !utils_default.isObject(target[name])) {
12534
- target[name] = [];
12535
- }
12536
- const result = buildPath(path, value, target[name], index);
12537
- if (result && utils_default.isArray(target[name])) {
12538
- target[name] = arrayToObject(target[name]);
12539
- }
12540
- return !isNumericKey;
12541
- }
12542
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
12543
- const obj = {};
12544
- utils_default.forEachEntry(formData, (name, value) => {
12545
- buildPath(parsePropPath(name), value, obj, 0);
12546
- });
12547
- return obj;
12548
- }
12549
- return null;
12550
- }
12551
- var formDataToJSON_default = formDataToJSON;
12552
-
12553
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/defaults/index.js
12554
- function stringifySafely(rawValue, parser, encoder) {
12555
- if (utils_default.isString(rawValue)) {
12556
- try {
12557
- (parser || JSON.parse)(rawValue);
12558
- return utils_default.trim(rawValue);
12559
- } catch (e) {
12560
- if (e.name !== "SyntaxError") {
12561
- throw e;
12562
- }
12563
- }
12564
- }
12565
- return (encoder || JSON.stringify)(rawValue);
12566
- }
12567
- var defaults = {
12568
- transitional: transitional_default,
12569
- adapter: ["xhr", "http", "fetch"],
12570
- transformRequest: [function transformRequest(data, headers) {
12571
- const contentType = headers.getContentType() || "";
12572
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
12573
- const isObjectPayload = utils_default.isObject(data);
12574
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
12575
- data = new FormData(data);
12576
- }
12577
- const isFormData2 = utils_default.isFormData(data);
12578
- if (isFormData2) {
12579
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
12580
- }
12581
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
12582
- return data;
12583
- }
12584
- if (utils_default.isArrayBufferView(data)) {
12585
- return data.buffer;
12586
- }
12587
- if (utils_default.isURLSearchParams(data)) {
12588
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
12589
- return data.toString();
12590
- }
12591
- let isFileList2;
12592
- if (isObjectPayload) {
12593
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
12594
- return toURLEncodedForm(data, this.formSerializer).toString();
12595
- }
12596
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
12597
- const _FormData = this.env && this.env.FormData;
12598
- return toFormData_default(
12599
- isFileList2 ? { "files[]": data } : data,
12600
- _FormData && new _FormData(),
12601
- this.formSerializer
12602
- );
12603
- }
12604
- }
12605
- if (isObjectPayload || hasJSONContentType) {
12606
- headers.setContentType("application/json", false);
12607
- return stringifySafely(data);
12608
- }
12609
- return data;
12610
- }],
12611
- transformResponse: [function transformResponse(data) {
12612
- const transitional2 = this.transitional || defaults.transitional;
12613
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
12614
- const JSONRequested = this.responseType === "json";
12615
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
12616
- return data;
12617
- }
12618
- if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
12619
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
12620
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
12621
- try {
12622
- return JSON.parse(data, this.parseReviver);
12623
- } catch (e) {
12624
- if (strictJSONParsing) {
12625
- if (e.name === "SyntaxError") {
12626
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
12627
- }
12628
- throw e;
12629
- }
12630
- }
12631
- }
12632
- return data;
12633
- }],
12634
- /**
12635
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
12636
- * timeout is not created.
12637
- */
12638
- timeout: 0,
12639
- xsrfCookieName: "XSRF-TOKEN",
12640
- xsrfHeaderName: "X-XSRF-TOKEN",
12641
- maxContentLength: -1,
12642
- maxBodyLength: -1,
12643
- env: {
12644
- FormData: platform_default.classes.FormData,
12645
- Blob: platform_default.classes.Blob
12646
- },
12647
- validateStatus: function validateStatus(status) {
12648
- return status >= 200 && status < 300;
12649
- },
12650
- headers: {
12651
- common: {
12652
- "Accept": "application/json, text/plain, */*",
12653
- "Content-Type": void 0
12654
- }
12655
- }
12656
- };
12657
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
12658
- defaults.headers[method] = {};
12659
- });
12660
- var defaults_default = defaults;
12661
-
12662
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12663
- var ignoreDuplicateOf = utils_default.toObjectSet([
12664
- "age",
12665
- "authorization",
12666
- "content-length",
12667
- "content-type",
12668
- "etag",
12669
- "expires",
12670
- "from",
12671
- "host",
12672
- "if-modified-since",
12673
- "if-unmodified-since",
12674
- "last-modified",
12675
- "location",
12676
- "max-forwards",
12677
- "proxy-authorization",
12678
- "referer",
12679
- "retry-after",
12680
- "user-agent"
12681
- ]);
12682
- var parseHeaders_default = (rawHeaders) => {
12683
- const parsed = {};
12684
- let key;
12685
- let val;
12686
- let i;
12687
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
12688
- i = line.indexOf(":");
12689
- key = line.substring(0, i).trim().toLowerCase();
12690
- val = line.substring(i + 1).trim();
12691
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12692
- return;
12693
- }
12694
- if (key === "set-cookie") {
12695
- if (parsed[key]) {
12696
- parsed[key].push(val);
12697
- } else {
12698
- parsed[key] = [val];
12699
- }
12700
- } else {
12701
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12702
- }
12703
- });
12704
- return parsed;
12705
- };
12706
-
12707
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12708
- var $internals = /* @__PURE__ */ Symbol("internals");
12709
- function normalizeHeader(header) {
12710
- return header && String(header).trim().toLowerCase();
12711
- }
12712
- function normalizeValue(value) {
12713
- if (value === false || value == null) {
12714
- return value;
12715
- }
12716
- return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
12717
- }
12718
- function parseTokens(str) {
12719
- const tokens = /* @__PURE__ */ Object.create(null);
12720
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
12721
- let match;
12722
- while (match = tokensRE.exec(str)) {
12723
- tokens[match[1]] = match[2];
12724
- }
12725
- return tokens;
12726
- }
12727
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12728
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12729
- if (utils_default.isFunction(filter2)) {
12730
- return filter2.call(this, value, header);
12731
- }
12732
- if (isHeaderNameFilter) {
12733
- value = header;
12734
- }
12735
- if (!utils_default.isString(value)) return;
12736
- if (utils_default.isString(filter2)) {
12737
- return value.indexOf(filter2) !== -1;
12738
- }
12739
- if (utils_default.isRegExp(filter2)) {
12740
- return filter2.test(value);
12741
- }
12742
- }
12743
- function formatHeader(header) {
12744
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
12745
- return char.toUpperCase() + str;
12746
- });
12747
- }
12748
- function buildAccessors(obj, header) {
12749
- const accessorName = utils_default.toCamelCase(" " + header);
12750
- ["get", "set", "has"].forEach((methodName) => {
12751
- Object.defineProperty(obj, methodName + accessorName, {
12752
- value: function(arg1, arg2, arg3) {
12753
- return this[methodName].call(this, header, arg1, arg2, arg3);
12754
- },
12755
- configurable: true
12756
- });
12757
- });
12758
- }
12759
- var AxiosHeaders = class {
12760
- constructor(headers) {
12761
- headers && this.set(headers);
12762
- }
12763
- set(header, valueOrRewrite, rewrite) {
12764
- const self2 = this;
12765
- function setHeader(_value, _header, _rewrite) {
12766
- const lHeader = normalizeHeader(_header);
12767
- if (!lHeader) {
12768
- throw new Error("header name must be a non-empty string");
12769
- }
12770
- const key = utils_default.findKey(self2, lHeader);
12771
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12772
- self2[key || _header] = normalizeValue(_value);
12773
- }
12774
- }
12775
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
12776
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
12777
- setHeaders(header, valueOrRewrite);
12778
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12779
- setHeaders(parseHeaders_default(header), valueOrRewrite);
12780
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12781
- let obj = {}, dest, key;
12782
- for (const entry of header) {
12783
- if (!utils_default.isArray(entry)) {
12784
- throw TypeError("Object iterator must return a key-value pair");
12785
- }
12786
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12787
- }
12788
- setHeaders(obj, valueOrRewrite);
12789
- } else {
12790
- header != null && setHeader(valueOrRewrite, header, rewrite);
12791
- }
12792
- return this;
12793
- }
12794
- get(header, parser) {
12795
- header = normalizeHeader(header);
12796
- if (header) {
12797
- const key = utils_default.findKey(this, header);
12798
- if (key) {
12799
- const value = this[key];
12800
- if (!parser) {
12801
- return value;
12802
- }
12803
- if (parser === true) {
12804
- return parseTokens(value);
12805
- }
12806
- if (utils_default.isFunction(parser)) {
12807
- return parser.call(this, value, key);
12808
- }
12809
- if (utils_default.isRegExp(parser)) {
12810
- return parser.exec(value);
12811
- }
12812
- throw new TypeError("parser must be boolean|regexp|function");
12813
- }
12814
- }
12815
- }
12816
- has(header, matcher) {
12817
- header = normalizeHeader(header);
12818
- if (header) {
12819
- const key = utils_default.findKey(this, header);
12820
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12821
- }
12822
- return false;
13323
+ key = keys[i];
13324
+ obj[key] = arr[key];
12823
13325
  }
12824
- delete(header, matcher) {
12825
- const self2 = this;
12826
- let deleted = false;
12827
- function deleteHeader(_header) {
12828
- _header = normalizeHeader(_header);
12829
- if (_header) {
12830
- const key = utils_default.findKey(self2, _header);
12831
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
12832
- delete self2[key];
12833
- deleted = true;
12834
- }
13326
+ return obj;
13327
+ }
13328
+ function formDataToJSON(formData) {
13329
+ function buildPath(path, value, target, index) {
13330
+ let name = path[index++];
13331
+ if (name === "__proto__") return true;
13332
+ const isNumericKey = Number.isFinite(+name);
13333
+ const isLast = index >= path.length;
13334
+ name = !name && utils_default.isArray(target) ? target.length : name;
13335
+ if (isLast) {
13336
+ if (utils_default.hasOwnProp(target, name)) {
13337
+ target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
13338
+ } else {
13339
+ target[name] = value;
12835
13340
  }
13341
+ return !isNumericKey;
12836
13342
  }
12837
- if (utils_default.isArray(header)) {
12838
- header.forEach(deleteHeader);
12839
- } else {
12840
- deleteHeader(header);
13343
+ if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) {
13344
+ target[name] = [];
12841
13345
  }
12842
- return deleted;
12843
- }
12844
- clear(matcher) {
12845
- const keys = Object.keys(this);
12846
- let i = keys.length;
12847
- let deleted = false;
12848
- while (i--) {
12849
- const key = keys[i];
12850
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
12851
- delete this[key];
12852
- deleted = true;
12853
- }
13346
+ const result = buildPath(path, value, target[name], index);
13347
+ if (result && utils_default.isArray(target[name])) {
13348
+ target[name] = arrayToObject(target[name]);
12854
13349
  }
12855
- return deleted;
12856
- }
12857
- normalize(format) {
12858
- const self2 = this;
12859
- const headers = {};
12860
- utils_default.forEach(this, (value, header) => {
12861
- const key = utils_default.findKey(headers, header);
12862
- if (key) {
12863
- self2[key] = normalizeValue(value);
12864
- delete self2[header];
12865
- return;
12866
- }
12867
- const normalized = format ? formatHeader(header) : String(header).trim();
12868
- if (normalized !== header) {
12869
- delete self2[header];
12870
- }
12871
- self2[normalized] = normalizeValue(value);
12872
- headers[normalized] = true;
12873
- });
12874
- return this;
12875
- }
12876
- concat(...targets) {
12877
- return this.constructor.concat(this, ...targets);
13350
+ return !isNumericKey;
12878
13351
  }
12879
- toJSON(asStrings) {
12880
- const obj = /* @__PURE__ */ Object.create(null);
12881
- utils_default.forEach(this, (value, header) => {
12882
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
13352
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
13353
+ const obj = {};
13354
+ utils_default.forEachEntry(formData, (name, value) => {
13355
+ buildPath(parsePropPath(name), value, obj, 0);
12883
13356
  });
12884
13357
  return obj;
12885
13358
  }
12886
- [Symbol.iterator]() {
12887
- return Object.entries(this.toJSON())[Symbol.iterator]();
12888
- }
12889
- toString() {
12890
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12891
- }
12892
- getSetCookie() {
12893
- return this.get("set-cookie") || [];
12894
- }
12895
- get [Symbol.toStringTag]() {
12896
- return "AxiosHeaders";
12897
- }
12898
- static from(thing) {
12899
- return thing instanceof this ? thing : new this(thing);
12900
- }
12901
- static concat(first, ...targets) {
12902
- const computed = new this(first);
12903
- targets.forEach((target) => computed.set(target));
12904
- return computed;
13359
+ return null;
13360
+ }
13361
+ var formDataToJSON_default = formDataToJSON;
13362
+
13363
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/index.js
13364
+ var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13365
+ function stringifySafely(rawValue, parser, encoder) {
13366
+ if (utils_default.isString(rawValue)) {
13367
+ try {
13368
+ (parser || JSON.parse)(rawValue);
13369
+ return utils_default.trim(rawValue);
13370
+ } catch (e) {
13371
+ if (e.name !== "SyntaxError") {
13372
+ throw e;
13373
+ }
13374
+ }
12905
13375
  }
12906
- static accessor(header) {
12907
- const internals = this[$internals] = this[$internals] = {
12908
- accessors: {}
12909
- };
12910
- const accessors = internals.accessors;
12911
- const prototype2 = this.prototype;
12912
- function defineAccessor(_header) {
12913
- const lHeader = normalizeHeader(_header);
12914
- if (!accessors[lHeader]) {
12915
- buildAccessors(prototype2, _header);
12916
- accessors[lHeader] = true;
13376
+ return (encoder || JSON.stringify)(rawValue);
13377
+ }
13378
+ var defaults = {
13379
+ transitional: transitional_default,
13380
+ adapter: ["xhr", "http", "fetch"],
13381
+ transformRequest: [
13382
+ function transformRequest(data, headers) {
13383
+ const contentType = headers.getContentType() || "";
13384
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
13385
+ const isObjectPayload = utils_default.isObject(data);
13386
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
13387
+ data = new FormData(data);
13388
+ }
13389
+ const isFormData2 = utils_default.isFormData(data);
13390
+ if (isFormData2) {
13391
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
13392
+ }
13393
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
13394
+ return data;
13395
+ }
13396
+ if (utils_default.isArrayBufferView(data)) {
13397
+ return data.buffer;
13398
+ }
13399
+ if (utils_default.isURLSearchParams(data)) {
13400
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
13401
+ return data.toString();
13402
+ }
13403
+ let isFileList2;
13404
+ if (isObjectPayload) {
13405
+ const formSerializer = own(this, "formSerializer");
13406
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
13407
+ return toURLEncodedForm(data, formSerializer).toString();
13408
+ }
13409
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
13410
+ const env = own(this, "env");
13411
+ const _FormData = env && env.FormData;
13412
+ return toFormData_default(
13413
+ isFileList2 ? { "files[]": data } : data,
13414
+ _FormData && new _FormData(),
13415
+ formSerializer
13416
+ );
13417
+ }
13418
+ }
13419
+ if (isObjectPayload || hasJSONContentType) {
13420
+ headers.setContentType("application/json", false);
13421
+ return stringifySafely(data);
12917
13422
  }
13423
+ return data;
13424
+ }
13425
+ ],
13426
+ transformResponse: [
13427
+ function transformResponse(data) {
13428
+ const transitional2 = own(this, "transitional") || defaults.transitional;
13429
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
13430
+ const responseType = own(this, "responseType");
13431
+ const JSONRequested = responseType === "json";
13432
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
13433
+ return data;
13434
+ }
13435
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
13436
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
13437
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
13438
+ try {
13439
+ return JSON.parse(data, own(this, "parseReviver"));
13440
+ } catch (e) {
13441
+ if (strictJSONParsing) {
13442
+ if (e.name === "SyntaxError") {
13443
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
13444
+ }
13445
+ throw e;
13446
+ }
13447
+ }
13448
+ }
13449
+ return data;
13450
+ }
13451
+ ],
13452
+ /**
13453
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
13454
+ * timeout is not created.
13455
+ */
13456
+ timeout: 0,
13457
+ xsrfCookieName: "XSRF-TOKEN",
13458
+ xsrfHeaderName: "X-XSRF-TOKEN",
13459
+ maxContentLength: -1,
13460
+ maxBodyLength: -1,
13461
+ env: {
13462
+ FormData: platform_default.classes.FormData,
13463
+ Blob: platform_default.classes.Blob
13464
+ },
13465
+ validateStatus: function validateStatus(status) {
13466
+ return status >= 200 && status < 300;
13467
+ },
13468
+ headers: {
13469
+ common: {
13470
+ Accept: "application/json, text/plain, */*",
13471
+ "Content-Type": void 0
12918
13472
  }
12919
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
12920
- return this;
12921
13473
  }
12922
13474
  };
12923
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
12924
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12925
- let mapped = key[0].toUpperCase() + key.slice(1);
12926
- return {
12927
- get: () => value,
12928
- set(headerValue) {
12929
- this[mapped] = headerValue;
12930
- }
12931
- };
13475
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13476
+ defaults.headers[method] = {};
12932
13477
  });
12933
- utils_default.freezeMethods(AxiosHeaders);
12934
- var AxiosHeaders_default = AxiosHeaders;
13478
+ var defaults_default = defaults;
12935
13479
 
12936
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13480
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/transformData.js
12937
13481
  function transformData(fns, response) {
12938
13482
  const config = this || defaults_default;
12939
13483
  const context = response || config;
@@ -12946,12 +13490,12 @@ function transformData(fns, response) {
12946
13490
  return data;
12947
13491
  }
12948
13492
 
12949
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13493
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
12950
13494
  function isCancel(value) {
12951
13495
  return !!(value && value.__CANCEL__);
12952
13496
  }
12953
13497
 
12954
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13498
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
12955
13499
  var CanceledError = class extends AxiosError_default {
12956
13500
  /**
12957
13501
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -12970,7 +13514,7 @@ var CanceledError = class extends AxiosError_default {
12970
13514
  };
12971
13515
  var CanceledError_default = CanceledError;
12972
13516
 
12973
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/settle.js
13517
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/settle.js
12974
13518
  function settle(resolve, reject, response) {
12975
13519
  const validateStatus2 = response.config.validateStatus;
12976
13520
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -12978,7 +13522,7 @@ function settle(resolve, reject, response) {
12978
13522
  } else {
12979
13523
  reject(new AxiosError_default(
12980
13524
  "Request failed with status code " + response.status,
12981
- [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
13525
+ response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
12982
13526
  response.config,
12983
13527
  response.request,
12984
13528
  response
@@ -12986,7 +13530,7 @@ function settle(resolve, reject, response) {
12986
13530
  }
12987
13531
  }
12988
13532
 
12989
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13533
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
12990
13534
  function isAbsoluteURL(url2) {
12991
13535
  if (typeof url2 !== "string") {
12992
13536
  return false;
@@ -12994,40 +13538,108 @@ function isAbsoluteURL(url2) {
12994
13538
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
12995
13539
  }
12996
13540
 
12997
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13541
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
12998
13542
  function combineURLs(baseURL, relativeURL) {
12999
13543
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13000
13544
  }
13001
13545
 
13002
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13546
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13003
13547
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13004
13548
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13005
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
13549
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13006
13550
  return combineURLs(baseURL, requestedURL);
13007
13551
  }
13008
13552
  return requestedURL;
13009
13553
  }
13010
13554
 
13011
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13012
- var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
13555
+ // ../../node_modules/.pnpm/proxy-from-env@2.1.0/node_modules/proxy-from-env/index.js
13556
+ var DEFAULT_PORTS = {
13557
+ ftp: 21,
13558
+ gopher: 70,
13559
+ http: 80,
13560
+ https: 443,
13561
+ ws: 80,
13562
+ wss: 443
13563
+ };
13564
+ function parseUrl(urlString) {
13565
+ try {
13566
+ return new URL(urlString);
13567
+ } catch {
13568
+ return null;
13569
+ }
13570
+ }
13571
+ function getProxyForUrl(url2) {
13572
+ var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
13573
+ var proto = parsedUrl.protocol;
13574
+ var hostname = parsedUrl.host;
13575
+ var port = parsedUrl.port;
13576
+ if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
13577
+ return "";
13578
+ }
13579
+ proto = proto.split(":", 1)[0];
13580
+ hostname = hostname.replace(/:\d*$/, "");
13581
+ port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
13582
+ if (!shouldProxy(hostname, port)) {
13583
+ return "";
13584
+ }
13585
+ var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
13586
+ if (proxy && proxy.indexOf("://") === -1) {
13587
+ proxy = proto + "://" + proxy;
13588
+ }
13589
+ return proxy;
13590
+ }
13591
+ function shouldProxy(hostname, port) {
13592
+ var NO_PROXY = getEnv("no_proxy").toLowerCase();
13593
+ if (!NO_PROXY) {
13594
+ return true;
13595
+ }
13596
+ if (NO_PROXY === "*") {
13597
+ return false;
13598
+ }
13599
+ return NO_PROXY.split(/[,\s]/).every(function(proxy) {
13600
+ if (!proxy) {
13601
+ return true;
13602
+ }
13603
+ var parsedProxy = proxy.match(/^(.+):(\d+)$/);
13604
+ var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
13605
+ var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
13606
+ if (parsedProxyPort && parsedProxyPort !== port) {
13607
+ return true;
13608
+ }
13609
+ if (!/^[.*]/.test(parsedProxyHostname)) {
13610
+ return hostname !== parsedProxyHostname;
13611
+ }
13612
+ if (parsedProxyHostname.charAt(0) === "*") {
13613
+ parsedProxyHostname = parsedProxyHostname.slice(1);
13614
+ }
13615
+ return !hostname.endsWith(parsedProxyHostname);
13616
+ });
13617
+ }
13618
+ function getEnv(key) {
13619
+ return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13620
+ }
13621
+
13622
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13623
+ var import_https_proxy_agent = __toESM(require_dist(), 1);
13013
13624
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13014
13625
  import http from "http";
13015
13626
  import https from "https";
13016
13627
  import http2 from "http2";
13017
13628
  import util2 from "util";
13629
+ import { resolve as resolvePath } from "path";
13018
13630
  import zlib from "zlib";
13019
13631
 
13020
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/env/data.js
13021
- var VERSION = "1.13.5";
13632
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/env/data.js
13633
+ var VERSION = "1.16.1";
13022
13634
 
13023
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13635
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13024
13636
  function parseProtocol(url2) {
13025
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
13637
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13026
13638
  return match && match[1] || "";
13027
13639
  }
13028
13640
 
13029
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13030
- var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
13641
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13642
+ var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13031
13643
  function fromDataURI(uri, asBlob, options) {
13032
13644
  const _Blob = options && options.Blob || platform_default.classes.Blob;
13033
13645
  const protocol = parseProtocol(uri);
@@ -13040,10 +13652,17 @@ function fromDataURI(uri, asBlob, options) {
13040
13652
  if (!match) {
13041
13653
  throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
13042
13654
  }
13043
- const mime = match[1];
13044
- const isBase64 = match[2];
13045
- const body = match[3];
13046
- const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
13655
+ const type = match[1];
13656
+ const params = match[2];
13657
+ const encoding = match[3] ? "base64" : "utf8";
13658
+ const body = match[4];
13659
+ let mime;
13660
+ if (type) {
13661
+ mime = params ? type + params : type;
13662
+ } else if (params) {
13663
+ mime = "text/plain" + params;
13664
+ }
13665
+ const buffer = Buffer.from(decodeURIComponent(body), encoding);
13047
13666
  if (asBlob) {
13048
13667
  if (!_Blob) {
13049
13668
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13055,24 +13674,29 @@ function fromDataURI(uri, asBlob, options) {
13055
13674
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13056
13675
  }
13057
13676
 
13058
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13677
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13059
13678
  import stream3 from "stream";
13060
13679
 
13061
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13680
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13062
13681
  import stream from "stream";
13063
13682
  var kInternals = /* @__PURE__ */ Symbol("internals");
13064
13683
  var AxiosTransformStream = class extends stream.Transform {
13065
13684
  constructor(options) {
13066
- options = utils_default.toFlatObject(options, {
13067
- maxRate: 0,
13068
- chunkSize: 64 * 1024,
13069
- minChunkSize: 100,
13070
- timeWindow: 500,
13071
- ticksRate: 2,
13072
- samplesCount: 15
13073
- }, null, (prop, source) => {
13074
- return !utils_default.isUndefined(source[prop]);
13075
- });
13685
+ options = utils_default.toFlatObject(
13686
+ options,
13687
+ {
13688
+ maxRate: 0,
13689
+ chunkSize: 64 * 1024,
13690
+ minChunkSize: 100,
13691
+ timeWindow: 500,
13692
+ ticksRate: 2,
13693
+ samplesCount: 15
13694
+ },
13695
+ null,
13696
+ (prop, source) => {
13697
+ return !utils_default.isUndefined(source[prop]);
13698
+ }
13699
+ );
13076
13700
  super({
13077
13701
  readableHighWaterMark: options.chunkSize
13078
13702
  });
@@ -13155,9 +13779,12 @@ var AxiosTransformStream = class extends stream.Transform {
13155
13779
  chunkRemainder = _chunk.subarray(maxChunkSize);
13156
13780
  _chunk = _chunk.subarray(0, maxChunkSize);
13157
13781
  }
13158
- pushChunk(_chunk, chunkRemainder ? () => {
13159
- process.nextTick(_callback, null, chunkRemainder);
13160
- } : _callback);
13782
+ pushChunk(
13783
+ _chunk,
13784
+ chunkRemainder ? () => {
13785
+ process.nextTick(_callback, null, chunkRemainder);
13786
+ } : _callback
13787
+ );
13161
13788
  };
13162
13789
  transformChunk(chunk, function transformNextChunk(err, _chunk) {
13163
13790
  if (err) {
@@ -13173,14 +13800,14 @@ var AxiosTransformStream = class extends stream.Transform {
13173
13800
  };
13174
13801
  var AxiosTransformStream_default = AxiosTransformStream;
13175
13802
 
13176
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13803
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13177
13804
  import { EventEmitter } from "events";
13178
13805
 
13179
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13806
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13180
13807
  import util from "util";
13181
13808
  import { Readable } from "stream";
13182
13809
 
13183
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
13810
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
13184
13811
  var { asyncIterator } = Symbol;
13185
13812
  var readBlob = async function* (blob) {
13186
13813
  if (blob.stream) {
@@ -13195,7 +13822,7 @@ var readBlob = async function* (blob) {
13195
13822
  };
13196
13823
  var readBlob_default = readBlob;
13197
13824
 
13198
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13825
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13199
13826
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13200
13827
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13201
13828
  var CRLF = "\r\n";
@@ -13209,7 +13836,8 @@ var FormDataPart = class {
13209
13836
  if (isStringValue) {
13210
13837
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
13211
13838
  } else {
13212
- headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
13839
+ const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
13840
+ headers += `Content-Type: ${safeType}${CRLF}`;
13213
13841
  }
13214
13842
  this.headers = textEncoder.encode(headers + CRLF);
13215
13843
  this.contentLength = isStringValue ? value.byteLength : value.size;
@@ -13228,11 +13856,14 @@ var FormDataPart = class {
13228
13856
  yield CRLF_BYTES;
13229
13857
  }
13230
13858
  static escapeName(name) {
13231
- return String(name).replace(/[\r\n"]/g, (match) => ({
13232
- "\r": "%0D",
13233
- "\n": "%0A",
13234
- '"': "%22"
13235
- })[match]);
13859
+ return String(name).replace(
13860
+ /[\r\n"]/g,
13861
+ (match) => ({
13862
+ "\r": "%0D",
13863
+ "\n": "%0A",
13864
+ '"': "%22"
13865
+ })[match]
13866
+ );
13236
13867
  }
13237
13868
  };
13238
13869
  var formDataToStream = (form, headersHandler, options) => {
@@ -13245,7 +13876,7 @@ var formDataToStream = (form, headersHandler, options) => {
13245
13876
  throw TypeError("FormData instance required");
13246
13877
  }
13247
13878
  if (boundary.length < 1 || boundary.length > 70) {
13248
- throw Error("boundary must be 10-70 characters long");
13879
+ throw Error("boundary must be 1-70 characters long");
13249
13880
  }
13250
13881
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13251
13882
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13264,17 +13895,19 @@ var formDataToStream = (form, headersHandler, options) => {
13264
13895
  computedHeaders["Content-Length"] = contentLength;
13265
13896
  }
13266
13897
  headersHandler && headersHandler(computedHeaders);
13267
- return Readable.from((async function* () {
13268
- for (const part of parts) {
13269
- yield boundaryBytes;
13270
- yield* part.encode();
13271
- }
13272
- yield footerBytes;
13273
- })());
13898
+ return Readable.from(
13899
+ (async function* () {
13900
+ for (const part of parts) {
13901
+ yield boundaryBytes;
13902
+ yield* part.encode();
13903
+ }
13904
+ yield footerBytes;
13905
+ })()
13906
+ );
13274
13907
  };
13275
13908
  var formDataToStream_default = formDataToStream;
13276
13909
 
13277
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13910
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13278
13911
  import stream2 from "stream";
13279
13912
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13280
13913
  __transform(chunk, encoding, callback) {
@@ -13296,7 +13929,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13296
13929
  };
13297
13930
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13298
13931
 
13299
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13932
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13300
13933
  var callbackify = (fn, reducer) => {
13301
13934
  return utils_default.isAsyncFn(fn) ? function(...args) {
13302
13935
  const cb = args.pop();
@@ -13311,7 +13944,129 @@ var callbackify = (fn, reducer) => {
13311
13944
  };
13312
13945
  var callbackify_default = callbackify;
13313
13946
 
13314
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13947
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13948
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
13949
+ var isIPv4Loopback = (host) => {
13950
+ const parts = host.split(".");
13951
+ if (parts.length !== 4) return false;
13952
+ if (parts[0] !== "127") return false;
13953
+ return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13954
+ };
13955
+ var isIPv6Loopback = (host) => {
13956
+ if (host === "::1") return true;
13957
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
13958
+ if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
13959
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
13960
+ if (v4MappedHex) {
13961
+ const high = parseInt(v4MappedHex[1], 16);
13962
+ return high >= 32512 && high <= 32767;
13963
+ }
13964
+ const groups = host.split(":");
13965
+ if (groups.length === 8) {
13966
+ for (let i = 0; i < 7; i++) {
13967
+ if (!/^0+$/.test(groups[i])) return false;
13968
+ }
13969
+ return /^0*1$/.test(groups[7]);
13970
+ }
13971
+ return false;
13972
+ };
13973
+ var isLoopback = (host) => {
13974
+ if (!host) return false;
13975
+ if (LOOPBACK_HOSTNAMES.has(host)) return true;
13976
+ if (isIPv4Loopback(host)) return true;
13977
+ return isIPv6Loopback(host);
13978
+ };
13979
+ var DEFAULT_PORTS2 = {
13980
+ http: 80,
13981
+ https: 443,
13982
+ ws: 80,
13983
+ wss: 443,
13984
+ ftp: 21
13985
+ };
13986
+ var parseNoProxyEntry = (entry) => {
13987
+ let entryHost = entry;
13988
+ let entryPort = 0;
13989
+ if (entryHost.charAt(0) === "[") {
13990
+ const bracketIndex = entryHost.indexOf("]");
13991
+ if (bracketIndex !== -1) {
13992
+ const host = entryHost.slice(1, bracketIndex);
13993
+ const rest = entryHost.slice(bracketIndex + 1);
13994
+ if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
13995
+ entryPort = Number.parseInt(rest.slice(1), 10);
13996
+ }
13997
+ return [host, entryPort];
13998
+ }
13999
+ }
14000
+ const firstColon = entryHost.indexOf(":");
14001
+ const lastColon = entryHost.lastIndexOf(":");
14002
+ if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
14003
+ entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
14004
+ entryHost = entryHost.slice(0, lastColon);
14005
+ }
14006
+ return [entryHost, entryPort];
14007
+ };
14008
+ var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
14009
+ 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;
14010
+ var unmapIPv4MappedIPv6 = (host) => {
14011
+ if (typeof host !== "string" || host.indexOf(":") === -1) return host;
14012
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
14013
+ if (dotted) return dotted[1];
14014
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
14015
+ if (hex) {
14016
+ const high = parseInt(hex[1], 16);
14017
+ const low = parseInt(hex[2], 16);
14018
+ return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
14019
+ }
14020
+ return host;
14021
+ };
14022
+ var normalizeNoProxyHost = (hostname) => {
14023
+ if (!hostname) {
14024
+ return hostname;
14025
+ }
14026
+ if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14027
+ hostname = hostname.slice(1, -1);
14028
+ }
14029
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14030
+ };
14031
+ function shouldBypassProxy(location) {
14032
+ let parsed;
14033
+ try {
14034
+ parsed = new URL(location);
14035
+ } catch (_err) {
14036
+ return false;
14037
+ }
14038
+ const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
14039
+ if (!noProxy) {
14040
+ return false;
14041
+ }
14042
+ if (noProxy === "*") {
14043
+ return true;
14044
+ }
14045
+ const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
14046
+ const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
14047
+ return noProxy.split(/[\s,]+/).some((entry) => {
14048
+ if (!entry) {
14049
+ return false;
14050
+ }
14051
+ let [entryHost, entryPort] = parseNoProxyEntry(entry);
14052
+ entryHost = normalizeNoProxyHost(entryHost);
14053
+ if (!entryHost) {
14054
+ return false;
14055
+ }
14056
+ if (entryPort && entryPort !== port) {
14057
+ return false;
14058
+ }
14059
+ if (entryHost.charAt(0) === "*") {
14060
+ entryHost = entryHost.slice(1);
14061
+ }
14062
+ if (entryHost.charAt(0) === ".") {
14063
+ return hostname.endsWith(entryHost);
14064
+ }
14065
+ return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
14066
+ });
14067
+ }
14068
+
14069
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13315
14070
  function speedometer(samplesCount, min) {
13316
14071
  samplesCount = samplesCount || 10;
13317
14072
  const bytes = new Array(samplesCount);
@@ -13347,7 +14102,7 @@ function speedometer(samplesCount, min) {
13347
14102
  }
13348
14103
  var speedometer_default = speedometer;
13349
14104
 
13350
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
14105
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
13351
14106
  function throttle(fn, freq) {
13352
14107
  let timestamp = 0;
13353
14108
  let threshold = 1e3 / freq;
@@ -13382,24 +14137,27 @@ function throttle(fn, freq) {
13382
14137
  }
13383
14138
  var throttle_default = throttle;
13384
14139
 
13385
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
14140
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
13386
14141
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13387
14142
  let bytesNotified = 0;
13388
14143
  const _speedometer = speedometer_default(50, 250);
13389
14144
  return throttle_default((e) => {
13390
- const loaded = e.loaded;
14145
+ if (!e || typeof e.loaded !== "number") {
14146
+ return;
14147
+ }
14148
+ const rawLoaded = e.loaded;
13391
14149
  const total = e.lengthComputable ? e.total : void 0;
13392
- const progressBytes = loaded - bytesNotified;
14150
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
14151
+ const progressBytes = Math.max(0, loaded - bytesNotified);
13393
14152
  const rate = _speedometer(progressBytes);
13394
- const inRange = loaded <= total;
13395
- bytesNotified = loaded;
14153
+ bytesNotified = Math.max(bytesNotified, loaded);
13396
14154
  const data = {
13397
14155
  loaded,
13398
14156
  total,
13399
14157
  progress: total ? loaded / total : void 0,
13400
14158
  bytes: progressBytes,
13401
14159
  rate: rate ? rate : void 0,
13402
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
14160
+ estimated: rate && total ? (total - loaded) / rate : void 0,
13403
14161
  event: e,
13404
14162
  lengthComputable: total != null,
13405
14163
  [isDownloadStream ? "download" : "upload"]: true
@@ -13409,15 +14167,18 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13409
14167
  };
13410
14168
  var progressEventDecorator = (total, throttled) => {
13411
14169
  const lengthComputable = total != null;
13412
- return [(loaded) => throttled[0]({
13413
- lengthComputable,
13414
- total,
13415
- loaded
13416
- }), throttled[1]];
14170
+ return [
14171
+ (loaded) => throttled[0]({
14172
+ lengthComputable,
14173
+ total,
14174
+ loaded
14175
+ }),
14176
+ throttled[1]
14177
+ ];
13417
14178
  };
13418
14179
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
13419
14180
 
13420
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14181
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
13421
14182
  function estimateDataURLDecodedBytes(url2) {
13422
14183
  if (!url2 || typeof url2 !== "string") return 0;
13423
14184
  if (!url2.startsWith("data:")) return 0;
@@ -13462,13 +14223,35 @@ function estimateDataURLDecodedBytes(url2) {
13462
14223
  }
13463
14224
  }
13464
14225
  const groups = Math.floor(effectiveLen / 4);
13465
- const bytes = groups * 3 - (pad || 0);
13466
- return bytes > 0 ? bytes : 0;
14226
+ const bytes2 = groups * 3 - (pad || 0);
14227
+ return bytes2 > 0 ? bytes2 : 0;
14228
+ }
14229
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14230
+ return Buffer.byteLength(body, "utf8");
14231
+ }
14232
+ let bytes = 0;
14233
+ for (let i = 0, len = body.length; i < len; i++) {
14234
+ const c = body.charCodeAt(i);
14235
+ if (c < 128) {
14236
+ bytes += 1;
14237
+ } else if (c < 2048) {
14238
+ bytes += 2;
14239
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
14240
+ const next = body.charCodeAt(i + 1);
14241
+ if (next >= 56320 && next <= 57343) {
14242
+ bytes += 4;
14243
+ i++;
14244
+ } else {
14245
+ bytes += 3;
14246
+ }
14247
+ } else {
14248
+ bytes += 3;
14249
+ }
13467
14250
  }
13468
- return Buffer.byteLength(body, "utf8");
14251
+ return bytes;
13469
14252
  }
13470
14253
 
13471
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14254
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13472
14255
  var zlibOptions = {
13473
14256
  flush: zlib.constants.Z_SYNC_FLUSH,
13474
14257
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -13480,9 +14263,47 @@ var brotliOptions = {
13480
14263
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
13481
14264
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
13482
14265
  var isHttps = /https:?/;
14266
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14267
+ function setFormDataHeaders(headers, formHeaders, policy) {
14268
+ if (policy !== "content-only") {
14269
+ headers.set(formHeaders);
14270
+ return;
14271
+ }
14272
+ Object.entries(formHeaders).forEach(([key, val]) => {
14273
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14274
+ headers.set(key, val);
14275
+ }
14276
+ });
14277
+ }
14278
+ var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14279
+ var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
14280
+ var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14281
+ var tunnelingAgentCache = /* @__PURE__ */ new Map();
14282
+ var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
14283
+ function getTunnelingAgent(agentOptions, userHttpsAgent) {
14284
+ const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14285
+ const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
14286
+ let agent = cache.get(key);
14287
+ if (agent) return agent;
14288
+ const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14289
+ agent = new import_https_proxy_agent.default(merged);
14290
+ agent[kAxiosInstalledTunnel] = true;
14291
+ cache.set(key, agent);
14292
+ return agent;
14293
+ }
13483
14294
  var supportedProtocols = platform_default.protocols.map((protocol) => {
13484
14295
  return protocol + ":";
13485
14296
  });
14297
+ var decodeURIComponentSafe = (value) => {
14298
+ if (!utils_default.isString(value)) {
14299
+ return value;
14300
+ }
14301
+ try {
14302
+ return decodeURIComponent(value);
14303
+ } catch (error) {
14304
+ return value;
14305
+ }
14306
+ };
13486
14307
  var flushOnFinish = (stream4, [throttled, flush]) => {
13487
14308
  stream4.on("end", flush).on("error", flush);
13488
14309
  return throttled;
@@ -13492,9 +14313,12 @@ var Http2Sessions = class {
13492
14313
  this.sessions = /* @__PURE__ */ Object.create(null);
13493
14314
  }
13494
14315
  getSession(authority, options) {
13495
- options = Object.assign({
13496
- sessionTimeout: 1e3
13497
- }, options);
14316
+ options = Object.assign(
14317
+ {
14318
+ sessionTimeout: 1e3
14319
+ },
14320
+ options
14321
+ );
13498
14322
  let authoritySessions = this.sessions[authority];
13499
14323
  if (authoritySessions) {
13500
14324
  let len = authoritySessions.length;
@@ -13520,6 +14344,9 @@ var Http2Sessions = class {
13520
14344
  } else {
13521
14345
  entries.splice(i, 1);
13522
14346
  }
14347
+ if (!session.closed) {
14348
+ session.close();
14349
+ }
13523
14350
  return;
13524
14351
  }
13525
14352
  }
@@ -13548,57 +14375,114 @@ var Http2Sessions = class {
13548
14375
  };
13549
14376
  }
13550
14377
  session.once("close", removeSession);
13551
- let entry = [
13552
- session,
13553
- options
13554
- ];
14378
+ let entry = [session, options];
13555
14379
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
13556
14380
  return session;
13557
14381
  }
13558
14382
  };
13559
14383
  var http2Sessions = new Http2Sessions();
13560
- function dispatchBeforeRedirect(options, responseDetails) {
14384
+ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
13561
14385
  if (options.beforeRedirects.proxy) {
13562
14386
  options.beforeRedirects.proxy(options);
13563
14387
  }
13564
14388
  if (options.beforeRedirects.config) {
13565
- options.beforeRedirects.config(options, responseDetails);
14389
+ options.beforeRedirects.config(options, responseDetails, requestDetails);
13566
14390
  }
13567
14391
  }
13568
- function setProxy(options, configProxy, location) {
14392
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
13569
14393
  let proxy = configProxy;
13570
14394
  if (!proxy && proxy !== false) {
13571
- const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
14395
+ const proxyUrl = getProxyForUrl(location);
13572
14396
  if (proxyUrl) {
13573
- proxy = new URL(proxyUrl);
14397
+ if (!shouldBypassProxy(location)) {
14398
+ proxy = new URL(proxyUrl);
14399
+ }
14400
+ }
14401
+ }
14402
+ if (isRedirect && options.headers) {
14403
+ for (const name of Object.keys(options.headers)) {
14404
+ if (name.toLowerCase() === "proxy-authorization") {
14405
+ delete options.headers[name];
14406
+ }
13574
14407
  }
13575
14408
  }
14409
+ if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
14410
+ options.agent = void 0;
14411
+ }
13576
14412
  if (proxy) {
13577
- if (proxy.username) {
13578
- proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
14413
+ const isProxyURL = proxy instanceof URL;
14414
+ const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
14415
+ const proxyUsername = readProxyField("username");
14416
+ const proxyPassword = readProxyField("password");
14417
+ let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
14418
+ if (proxyUsername) {
14419
+ proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
13579
14420
  }
13580
- if (proxy.auth) {
13581
- const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
14421
+ if (proxyAuth) {
14422
+ const authIsObject = typeof proxyAuth === "object";
14423
+ const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
14424
+ const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
14425
+ const validProxyAuth = Boolean(authUsername || authPassword);
13582
14426
  if (validProxyAuth) {
13583
- proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
13584
- } else if (typeof proxy.auth === "object") {
14427
+ proxyAuth = (authUsername || "") + ":" + (authPassword || "");
14428
+ } else if (authIsObject) {
13585
14429
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
13586
14430
  }
13587
- const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
13588
- options.headers["Proxy-Authorization"] = "Basic " + base64;
13589
14431
  }
13590
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
13591
- const proxyHost = proxy.hostname || proxy.host;
13592
- options.hostname = proxyHost;
13593
- options.host = proxyHost;
13594
- options.port = proxy.port;
13595
- options.path = location;
13596
- if (proxy.protocol) {
13597
- options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
14432
+ const targetIsHttps = isHttps.test(options.protocol);
14433
+ if (targetIsHttps) {
14434
+ if (!(configHttpsAgent instanceof import_https_proxy_agent.default)) {
14435
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
14436
+ const proxyPort = readProxyField("port");
14437
+ const rawProxyProtocol = readProxyField("protocol");
14438
+ const normalizedProtocol = rawProxyProtocol ? rawProxyProtocol.includes(":") ? rawProxyProtocol : `${rawProxyProtocol}:` : "http:";
14439
+ const proxyHostForURL = proxyHost && proxyHost.includes(":") && !proxyHost.startsWith("[") ? `[${proxyHost}]` : proxyHost;
14440
+ const proxyURL = new URL(
14441
+ `${normalizedProtocol}//${proxyHostForURL}${proxyPort ? ":" + proxyPort : ""}`
14442
+ );
14443
+ const agentOptions = {
14444
+ protocol: proxyURL.protocol,
14445
+ hostname: proxyURL.hostname.replace(/^\[|\]$/g, ""),
14446
+ port: proxyURL.port,
14447
+ auth: proxyAuth && typeof proxyAuth === "string" ? proxyAuth : void 0
14448
+ };
14449
+ if (proxyURL.protocol === "https:") {
14450
+ agentOptions.ALPNProtocols = ["http/1.1"];
14451
+ }
14452
+ const tunnelingAgent = getTunnelingAgent(agentOptions, configHttpsAgent);
14453
+ options.agent = tunnelingAgent;
14454
+ if (options.agents) {
14455
+ options.agents.https = tunnelingAgent;
14456
+ }
14457
+ }
14458
+ } else {
14459
+ if (proxyAuth) {
14460
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
14461
+ options.headers["Proxy-Authorization"] = "Basic " + base64;
14462
+ }
14463
+ let hasUserHostHeader = false;
14464
+ for (const name of Object.keys(options.headers)) {
14465
+ if (name.toLowerCase() === "host") {
14466
+ hasUserHostHeader = true;
14467
+ break;
14468
+ }
14469
+ }
14470
+ if (!hasUserHostHeader) {
14471
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
14472
+ }
14473
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
14474
+ options.hostname = proxyHost;
14475
+ options.host = proxyHost;
14476
+ options.port = readProxyField("port");
14477
+ options.path = location;
14478
+ const proxyProtocol = readProxyField("protocol");
14479
+ if (proxyProtocol) {
14480
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
14481
+ }
13598
14482
  }
13599
14483
  }
13600
14484
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
13601
- setProxy(redirectOptions, configProxy, redirectOptions.href);
14485
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
13602
14486
  };
13603
14487
  }
13604
14488
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -13637,12 +14521,7 @@ var http2Transport = {
13637
14521
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
13638
14522
  const { http2Options, headers } = options;
13639
14523
  const session = http2Sessions.getSession(authority, http2Options);
13640
- const {
13641
- HTTP2_HEADER_SCHEME,
13642
- HTTP2_HEADER_METHOD,
13643
- HTTP2_HEADER_PATH,
13644
- HTTP2_HEADER_STATUS
13645
- } = http2.constants;
14524
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
13646
14525
  const http2Headers = {
13647
14526
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
13648
14527
  [HTTP2_HEADER_METHOD]: options.method,
@@ -13666,12 +14545,20 @@ var http2Transport = {
13666
14545
  };
13667
14546
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13668
14547
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
13669
- let { data, lookup, family, httpVersion = 1, http2Options } = config;
13670
- const { responseType, responseEncoding } = config;
14548
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
14549
+ let data = own2("data");
14550
+ let lookup = own2("lookup");
14551
+ let family = own2("family");
14552
+ let httpVersion = own2("httpVersion");
14553
+ if (httpVersion === void 0) httpVersion = 1;
14554
+ let http2Options = own2("http2Options");
14555
+ const responseType = own2("responseType");
14556
+ const responseEncoding = own2("responseEncoding");
13671
14557
  const method = config.method.toUpperCase();
13672
14558
  let isDone;
13673
14559
  let rejected = false;
13674
14560
  let req;
14561
+ let connectPhaseTimer;
13675
14562
  httpVersion = +httpVersion;
13676
14563
  if (Number.isNaN(httpVersion)) {
13677
14564
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -13695,13 +14582,36 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13695
14582
  const abortEmitter = new EventEmitter();
13696
14583
  function abort(reason) {
13697
14584
  try {
13698
- abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
14585
+ abortEmitter.emit(
14586
+ "abort",
14587
+ !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14588
+ );
13699
14589
  } catch (err) {
13700
14590
  console.warn("emit error", err);
13701
14591
  }
13702
14592
  }
14593
+ function clearConnectPhaseTimer() {
14594
+ if (connectPhaseTimer) {
14595
+ clearTimeout(connectPhaseTimer);
14596
+ connectPhaseTimer = null;
14597
+ }
14598
+ }
14599
+ function createTimeoutError() {
14600
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14601
+ const transitional2 = config.transitional || transitional_default;
14602
+ if (config.timeoutErrorMessage) {
14603
+ timeoutErrorMessage = config.timeoutErrorMessage;
14604
+ }
14605
+ return new AxiosError_default(
14606
+ timeoutErrorMessage,
14607
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14608
+ config,
14609
+ req
14610
+ );
14611
+ }
13703
14612
  abortEmitter.once("abort", reject);
13704
14613
  const onFinished = () => {
14614
+ clearConnectPhaseTimer();
13705
14615
  if (config.cancelToken) {
13706
14616
  config.cancelToken.unsubscribe(abort);
13707
14617
  }
@@ -13718,6 +14628,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13718
14628
  }
13719
14629
  onDone((response, isRejected) => {
13720
14630
  isDone = true;
14631
+ clearConnectPhaseTimer();
13721
14632
  if (isRejected) {
13722
14633
  rejected = true;
13723
14634
  onFinished();
@@ -13741,11 +14652,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13741
14652
  const dataUrl = String(config.url || fullPath || "");
13742
14653
  const estimated = estimateDataURLDecodedBytes(dataUrl);
13743
14654
  if (estimated > config.maxContentLength) {
13744
- return reject(new AxiosError_default(
13745
- "maxContentLength size of " + config.maxContentLength + " exceeded",
13746
- AxiosError_default.ERR_BAD_RESPONSE,
13747
- config
13748
- ));
14655
+ return reject(
14656
+ new AxiosError_default(
14657
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
14658
+ AxiosError_default.ERR_BAD_RESPONSE,
14659
+ config
14660
+ )
14661
+ );
13749
14662
  }
13750
14663
  }
13751
14664
  let convertedData;
@@ -13781,11 +14694,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13781
14694
  });
13782
14695
  }
13783
14696
  if (supportedProtocols.indexOf(protocol) === -1) {
13784
- return reject(new AxiosError_default(
13785
- "Unsupported protocol " + protocol,
13786
- AxiosError_default.ERR_BAD_REQUEST,
13787
- config
13788
- ));
14697
+ return reject(
14698
+ new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
14699
+ );
13789
14700
  }
13790
14701
  const headers = AxiosHeaders_default.from(config.headers).normalize();
13791
14702
  headers.set("User-Agent", "axios/" + VERSION, false);
@@ -13795,14 +14706,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13795
14706
  let maxDownloadRate = void 0;
13796
14707
  if (utils_default.isSpecCompliantForm(data)) {
13797
14708
  const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
13798
- data = formDataToStream_default(data, (formHeaders) => {
13799
- headers.set(formHeaders);
13800
- }, {
13801
- tag: `axios-${VERSION}-boundary`,
13802
- boundary: userBoundary && userBoundary[1] || void 0
13803
- });
13804
- } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
13805
- headers.set(data.getHeaders());
14709
+ data = formDataToStream_default(
14710
+ data,
14711
+ (formHeaders) => {
14712
+ headers.set(formHeaders);
14713
+ },
14714
+ {
14715
+ tag: `axios-${VERSION}-boundary`,
14716
+ boundary: userBoundary && userBoundary[1] || void 0
14717
+ }
14718
+ );
14719
+ } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
14720
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
13806
14721
  if (!headers.hasContentLength()) {
13807
14722
  try {
13808
14723
  const knownLength = await util2.promisify(data.getLength).call(data);
@@ -13821,19 +14736,23 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13821
14736
  } else if (utils_default.isString(data)) {
13822
14737
  data = Buffer.from(data, "utf-8");
13823
14738
  } else {
13824
- return reject(new AxiosError_default(
13825
- "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
13826
- AxiosError_default.ERR_BAD_REQUEST,
13827
- config
13828
- ));
14739
+ return reject(
14740
+ new AxiosError_default(
14741
+ "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
14742
+ AxiosError_default.ERR_BAD_REQUEST,
14743
+ config
14744
+ )
14745
+ );
13829
14746
  }
13830
14747
  headers.setContentLength(data.length, false);
13831
14748
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
13832
- return reject(new AxiosError_default(
13833
- "Request body larger than maxBodyLength limit",
13834
- AxiosError_default.ERR_BAD_REQUEST,
13835
- config
13836
- ));
14749
+ return reject(
14750
+ new AxiosError_default(
14751
+ "Request body larger than maxBodyLength limit",
14752
+ AxiosError_default.ERR_BAD_REQUEST,
14753
+ config
14754
+ )
14755
+ );
13837
14756
  }
13838
14757
  }
13839
14758
  const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
@@ -13847,26 +14766,36 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13847
14766
  if (!utils_default.isStream(data)) {
13848
14767
  data = stream3.Readable.from(data, { objectMode: false });
13849
14768
  }
13850
- data = stream3.pipeline([data, new AxiosTransformStream_default({
13851
- maxRate: utils_default.toFiniteNumber(maxUploadRate)
13852
- })], utils_default.noop);
13853
- onUploadProgress && data.on("progress", flushOnFinish(
13854
- data,
13855
- progressEventDecorator(
13856
- contentLength,
13857
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
14769
+ data = stream3.pipeline(
14770
+ [
14771
+ data,
14772
+ new AxiosTransformStream_default({
14773
+ maxRate: utils_default.toFiniteNumber(maxUploadRate)
14774
+ })
14775
+ ],
14776
+ utils_default.noop
14777
+ );
14778
+ onUploadProgress && data.on(
14779
+ "progress",
14780
+ flushOnFinish(
14781
+ data,
14782
+ progressEventDecorator(
14783
+ contentLength,
14784
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
14785
+ )
13858
14786
  )
13859
- ));
14787
+ );
13860
14788
  }
13861
14789
  let auth = void 0;
13862
- if (config.auth) {
13863
- const username = config.auth.username || "";
13864
- const password = config.auth.password || "";
14790
+ const configAuth = own2("auth");
14791
+ if (configAuth) {
14792
+ const username = configAuth.username || "";
14793
+ const password = configAuth.password || "";
13865
14794
  auth = username + ":" + password;
13866
14795
  }
13867
14796
  if (!auth && parsed.username) {
13868
- const urlUsername = parsed.username;
13869
- const urlPassword = parsed.password;
14797
+ const urlUsername = decodeURIComponentSafe(parsed.username);
14798
+ const urlPassword = decodeURIComponentSafe(parsed.password);
13870
14799
  auth = urlUsername + ":" + urlPassword;
13871
14800
  }
13872
14801
  auth && headers.delete("authorization");
@@ -13889,42 +14818,75 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13889
14818
  "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
13890
14819
  false
13891
14820
  );
13892
- const options = {
14821
+ const options = Object.assign(/* @__PURE__ */ Object.create(null), {
13893
14822
  path,
13894
14823
  method,
13895
- headers: headers.toJSON(),
14824
+ headers: toByteStringHeaderObject(headers),
13896
14825
  agents: { http: config.httpAgent, https: config.httpsAgent },
13897
14826
  auth,
13898
14827
  protocol,
13899
14828
  family,
13900
14829
  beforeRedirect: dispatchBeforeRedirect,
13901
- beforeRedirects: {},
14830
+ beforeRedirects: /* @__PURE__ */ Object.create(null),
13902
14831
  http2Options
13903
- };
14832
+ });
13904
14833
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
13905
14834
  if (config.socketPath) {
14835
+ if (typeof config.socketPath !== "string") {
14836
+ return reject(
14837
+ new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14838
+ );
14839
+ }
14840
+ if (config.allowedSocketPaths != null) {
14841
+ const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14842
+ const resolvedSocket = resolvePath(config.socketPath);
14843
+ const isAllowed = allowed.some(
14844
+ (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14845
+ );
14846
+ if (!isAllowed) {
14847
+ return reject(
14848
+ new AxiosError_default(
14849
+ `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
14850
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
14851
+ config
14852
+ )
14853
+ );
14854
+ }
14855
+ }
13906
14856
  options.socketPath = config.socketPath;
13907
14857
  } else {
13908
14858
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
13909
14859
  options.port = parsed.port;
13910
- setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
14860
+ setProxy(
14861
+ options,
14862
+ config.proxy,
14863
+ protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14864
+ false,
14865
+ config.httpsAgent
14866
+ );
13911
14867
  }
13912
14868
  let transport;
14869
+ let isNativeTransport = false;
13913
14870
  const isHttpsRequest = isHttps.test(options.protocol);
13914
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14871
+ if (options.agent == null) {
14872
+ options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14873
+ }
13915
14874
  if (isHttp2) {
13916
14875
  transport = http2Transport;
13917
14876
  } else {
13918
- if (config.transport) {
13919
- transport = config.transport;
14877
+ const configTransport = own2("transport");
14878
+ if (configTransport) {
14879
+ transport = configTransport;
13920
14880
  } else if (config.maxRedirects === 0) {
13921
14881
  transport = isHttpsRequest ? https : http;
14882
+ isNativeTransport = true;
13922
14883
  } else {
13923
14884
  if (config.maxRedirects) {
13924
14885
  options.maxRedirects = config.maxRedirects;
13925
14886
  }
13926
- if (config.beforeRedirect) {
13927
- options.beforeRedirects.config = config.beforeRedirect;
14887
+ const configBeforeRedirect = own2("beforeRedirect");
14888
+ if (configBeforeRedirect) {
14889
+ options.beforeRedirects.config = configBeforeRedirect;
13928
14890
  }
13929
14891
  transport = isHttpsRequest ? httpsFollow : httpFollow;
13930
14892
  }
@@ -13934,10 +14896,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13934
14896
  } else {
13935
14897
  options.maxBodyLength = Infinity;
13936
14898
  }
13937
- if (config.insecureHTTPParser) {
13938
- options.insecureHTTPParser = config.insecureHTTPParser;
13939
- }
14899
+ options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
13940
14900
  req = transport.request(options, function handleResponse(res) {
14901
+ clearConnectPhaseTimer();
13941
14902
  if (req.destroyed) return;
13942
14903
  const streams = [res];
13943
14904
  const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
@@ -13945,13 +14906,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13945
14906
  const transformStream = new AxiosTransformStream_default({
13946
14907
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
13947
14908
  });
13948
- onDownloadProgress && transformStream.on("progress", flushOnFinish(
13949
- transformStream,
13950
- progressEventDecorator(
13951
- responseLength,
13952
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
14909
+ onDownloadProgress && transformStream.on(
14910
+ "progress",
14911
+ flushOnFinish(
14912
+ transformStream,
14913
+ progressEventDecorator(
14914
+ responseLength,
14915
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
14916
+ )
13953
14917
  )
13954
- ));
14918
+ );
13955
14919
  streams.push(transformStream);
13956
14920
  }
13957
14921
  let responseStream = res;
@@ -13990,6 +14954,28 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13990
14954
  request: lastRequest
13991
14955
  };
13992
14956
  if (responseType === "stream") {
14957
+ if (config.maxContentLength > -1) {
14958
+ const limit = config.maxContentLength;
14959
+ const source = responseStream;
14960
+ async function* enforceMaxContentLength() {
14961
+ let totalResponseBytes = 0;
14962
+ for await (const chunk of source) {
14963
+ totalResponseBytes += chunk.length;
14964
+ if (totalResponseBytes > limit) {
14965
+ throw new AxiosError_default(
14966
+ "maxContentLength size of " + limit + " exceeded",
14967
+ AxiosError_default.ERR_BAD_RESPONSE,
14968
+ config,
14969
+ lastRequest
14970
+ );
14971
+ }
14972
+ yield chunk;
14973
+ }
14974
+ }
14975
+ responseStream = stream3.Readable.from(enforceMaxContentLength(), {
14976
+ objectMode: false
14977
+ });
14978
+ }
13993
14979
  response.data = responseStream;
13994
14980
  settle(resolve, reject, response);
13995
14981
  } else {
@@ -14001,12 +14987,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14001
14987
  if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
14002
14988
  rejected = true;
14003
14989
  responseStream.destroy();
14004
- abort(new AxiosError_default(
14005
- "maxContentLength size of " + config.maxContentLength + " exceeded",
14006
- AxiosError_default.ERR_BAD_RESPONSE,
14007
- config,
14008
- lastRequest
14009
- ));
14990
+ abort(
14991
+ new AxiosError_default(
14992
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
14993
+ AxiosError_default.ERR_BAD_RESPONSE,
14994
+ config,
14995
+ lastRequest
14996
+ )
14997
+ );
14010
14998
  }
14011
14999
  });
14012
15000
  responseStream.on("aborted", function handlerStreamAborted() {
@@ -14017,14 +15005,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14017
15005
  "stream has been aborted",
14018
15006
  AxiosError_default.ERR_BAD_RESPONSE,
14019
15007
  config,
14020
- lastRequest
15008
+ lastRequest,
15009
+ response
14021
15010
  );
14022
15011
  responseStream.destroy(err);
14023
15012
  reject(err);
14024
15013
  });
14025
15014
  responseStream.on("error", function handleStreamError(err) {
14026
- if (req.destroyed) return;
14027
- reject(AxiosError_default.from(err, null, config, lastRequest));
15015
+ if (rejected) return;
15016
+ reject(AxiosError_default.from(err, null, config, lastRequest, response));
14028
15017
  });
14029
15018
  responseStream.on("end", function handleStreamEnd() {
14030
15019
  try {
@@ -14059,34 +15048,51 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14059
15048
  req.on("error", function handleRequestError(err) {
14060
15049
  reject(AxiosError_default.from(err, null, config, req));
14061
15050
  });
15051
+ const boundSockets = /* @__PURE__ */ new Set();
14062
15052
  req.on("socket", function handleRequestSocket(socket) {
14063
15053
  socket.setKeepAlive(true, 1e3 * 60);
15054
+ if (!socket[kAxiosSocketListener]) {
15055
+ socket.on("error", function handleSocketError(err) {
15056
+ const current = socket[kAxiosCurrentReq];
15057
+ if (current && !current.destroyed) {
15058
+ current.destroy(err);
15059
+ }
15060
+ });
15061
+ socket[kAxiosSocketListener] = true;
15062
+ }
15063
+ socket[kAxiosCurrentReq] = req;
15064
+ boundSockets.add(socket);
15065
+ });
15066
+ req.once("close", function clearCurrentReq() {
15067
+ clearConnectPhaseTimer();
15068
+ for (const socket of boundSockets) {
15069
+ if (socket[kAxiosCurrentReq] === req) {
15070
+ socket[kAxiosCurrentReq] = null;
15071
+ }
15072
+ }
15073
+ boundSockets.clear();
14064
15074
  });
14065
15075
  if (config.timeout) {
14066
15076
  const timeout = parseInt(config.timeout, 10);
14067
15077
  if (Number.isNaN(timeout)) {
14068
- abort(new AxiosError_default(
14069
- "error trying to parse `config.timeout` to int",
14070
- AxiosError_default.ERR_BAD_OPTION_VALUE,
14071
- config,
14072
- req
14073
- ));
15078
+ abort(
15079
+ new AxiosError_default(
15080
+ "error trying to parse `config.timeout` to int",
15081
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15082
+ config,
15083
+ req
15084
+ )
15085
+ );
14074
15086
  return;
14075
15087
  }
14076
- req.setTimeout(timeout, function handleRequestTimeout() {
15088
+ const handleTimeout = function handleTimeout2() {
14077
15089
  if (isDone) return;
14078
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14079
- const transitional2 = config.transitional || transitional_default;
14080
- if (config.timeoutErrorMessage) {
14081
- timeoutErrorMessage = config.timeoutErrorMessage;
14082
- }
14083
- abort(new AxiosError_default(
14084
- timeoutErrorMessage,
14085
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14086
- config,
14087
- req
14088
- ));
14089
- });
15090
+ abort(createTimeoutError());
15091
+ };
15092
+ if (isNativeTransport && timeout > 0) {
15093
+ connectPhaseTimer = setTimeout(handleTimeout, timeout);
15094
+ }
15095
+ req.setTimeout(timeout, handleTimeout);
14090
15096
  } else {
14091
15097
  req.setTimeout(0);
14092
15098
  }
@@ -14105,7 +15111,37 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14105
15111
  abort(new CanceledError_default("Request stream has been aborted", config, req));
14106
15112
  }
14107
15113
  });
14108
- data.pipe(req);
15114
+ let uploadStream = data;
15115
+ if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15116
+ const limit = config.maxBodyLength;
15117
+ let bytesSent = 0;
15118
+ uploadStream = stream3.pipeline(
15119
+ [
15120
+ data,
15121
+ new stream3.Transform({
15122
+ transform(chunk, _enc, cb) {
15123
+ bytesSent += chunk.length;
15124
+ if (bytesSent > limit) {
15125
+ return cb(
15126
+ new AxiosError_default(
15127
+ "Request body larger than maxBodyLength limit",
15128
+ AxiosError_default.ERR_BAD_REQUEST,
15129
+ config,
15130
+ req
15131
+ )
15132
+ );
15133
+ }
15134
+ cb(null, chunk);
15135
+ }
15136
+ })
15137
+ ],
15138
+ utils_default.noop
15139
+ );
15140
+ uploadStream.on("error", (err) => {
15141
+ if (!req.destroyed) req.destroy(err);
15142
+ });
15143
+ }
15144
+ uploadStream.pipe(req);
14109
15145
  } else {
14110
15146
  data && req.write(data);
14111
15147
  req.end();
@@ -14113,7 +15149,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14113
15149
  });
14114
15150
  };
14115
15151
 
14116
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
15152
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
14117
15153
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
14118
15154
  url2 = new URL(url2, platform_default.origin);
14119
15155
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -14122,7 +15158,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
14122
15158
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
14123
15159
  ) : () => true;
14124
15160
 
14125
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
15161
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
14126
15162
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
14127
15163
  // Standard browser envs support document.cookie
14128
15164
  {
@@ -14148,8 +15184,15 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14148
15184
  },
14149
15185
  read(name) {
14150
15186
  if (typeof document === "undefined") return null;
14151
- const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
14152
- return match ? decodeURIComponent(match[1]) : null;
15187
+ const cookies = document.cookie.split(";");
15188
+ for (let i = 0; i < cookies.length; i++) {
15189
+ const cookie = cookies[i].replace(/^\s+/, "");
15190
+ const eq = cookie.indexOf("=");
15191
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
15192
+ return decodeURIComponent(cookie.slice(eq + 1));
15193
+ }
15194
+ }
15195
+ return null;
14153
15196
  },
14154
15197
  remove(name) {
14155
15198
  this.write(name, "", Date.now() - 864e5, "/");
@@ -14168,11 +15211,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14168
15211
  }
14169
15212
  );
14170
15213
 
14171
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
15214
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
14172
15215
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
14173
15216
  function mergeConfig(config1, config2) {
14174
15217
  config2 = config2 || {};
14175
- const config = {};
15218
+ const config = /* @__PURE__ */ Object.create(null);
15219
+ Object.defineProperty(config, "hasOwnProperty", {
15220
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
15221
+ // this data descriptor into an accessor descriptor on the way in.
15222
+ __proto__: null,
15223
+ value: Object.prototype.hasOwnProperty,
15224
+ enumerable: false,
15225
+ writable: true,
15226
+ configurable: true
15227
+ });
14176
15228
  function getMergedValue(target, source, prop, caseless) {
14177
15229
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
14178
15230
  return utils_default.merge.call({ caseless }, target, source);
@@ -14203,9 +15255,9 @@ function mergeConfig(config1, config2) {
14203
15255
  }
14204
15256
  }
14205
15257
  function mergeDirectKeys(a, b, prop) {
14206
- if (prop in config2) {
15258
+ if (utils_default.hasOwnProp(config2, prop)) {
14207
15259
  return getMergedValue(a, b);
14208
- } else if (prop in config1) {
15260
+ } else if (utils_default.hasOwnProp(config1, prop)) {
14209
15261
  return getMergedValue(void 0, a);
14210
15262
  }
14211
15263
  }
@@ -14236,51 +15288,76 @@ function mergeConfig(config1, config2) {
14236
15288
  httpsAgent: defaultToConfig2,
14237
15289
  cancelToken: defaultToConfig2,
14238
15290
  socketPath: defaultToConfig2,
15291
+ allowedSocketPaths: defaultToConfig2,
14239
15292
  responseEncoding: defaultToConfig2,
14240
15293
  validateStatus: mergeDirectKeys,
14241
15294
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
14242
15295
  };
14243
- utils_default.forEach(
14244
- Object.keys({ ...config1, ...config2 }),
14245
- function computeConfigValue(prop) {
14246
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
14247
- return;
14248
- const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
14249
- const configValue = merge2(config1[prop], config2[prop], prop);
14250
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
14251
- }
14252
- );
15296
+ utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15297
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
15298
+ const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15299
+ const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
15300
+ const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
15301
+ const configValue = merge2(a, b, prop);
15302
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15303
+ });
14253
15304
  return config;
14254
15305
  }
14255
15306
 
14256
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
15307
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
15308
+ var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15309
+ function setFormDataHeaders2(headers, formHeaders, policy) {
15310
+ if (policy !== "content-only") {
15311
+ headers.set(formHeaders);
15312
+ return;
15313
+ }
15314
+ Object.entries(formHeaders).forEach(([key, val]) => {
15315
+ if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15316
+ headers.set(key, val);
15317
+ }
15318
+ });
15319
+ }
15320
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15321
+ /%([0-9A-F]{2})/gi,
15322
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
15323
+ );
14257
15324
  var resolveConfig_default = (config) => {
14258
15325
  const newConfig = mergeConfig({}, config);
14259
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
15326
+ const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15327
+ const data = own2("data");
15328
+ let withXSRFToken = own2("withXSRFToken");
15329
+ const xsrfHeaderName = own2("xsrfHeaderName");
15330
+ const xsrfCookieName = own2("xsrfCookieName");
15331
+ let headers = own2("headers");
15332
+ const auth = own2("auth");
15333
+ const baseURL = own2("baseURL");
15334
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
15335
+ const url2 = own2("url");
14260
15336
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
14261
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
15337
+ newConfig.url = buildURL(
15338
+ buildFullPath(baseURL, url2, allowAbsoluteUrls),
15339
+ config.params,
15340
+ config.paramsSerializer
15341
+ );
14262
15342
  if (auth) {
14263
15343
  headers.set(
14264
15344
  "Authorization",
14265
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
15345
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
14266
15346
  );
14267
15347
  }
14268
15348
  if (utils_default.isFormData(data)) {
14269
15349
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
14270
15350
  headers.setContentType(void 0);
14271
15351
  } else if (utils_default.isFunction(data.getHeaders)) {
14272
- const formHeaders = data.getHeaders();
14273
- const allowedHeaders = ["content-type", "content-length"];
14274
- Object.entries(formHeaders).forEach(([key, val]) => {
14275
- if (allowedHeaders.includes(key.toLowerCase())) {
14276
- headers.set(key, val);
14277
- }
14278
- });
15352
+ setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14279
15353
  }
14280
15354
  }
14281
15355
  if (platform_default.hasStandardBrowserEnv) {
14282
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
14283
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
15356
+ if (utils_default.isFunction(withXSRFToken)) {
15357
+ withXSRFToken = withXSRFToken(newConfig);
15358
+ }
15359
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
15360
+ if (shouldSendXSRF) {
14284
15361
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
14285
15362
  if (xsrfValue) {
14286
15363
  headers.set(xsrfHeaderName, xsrfValue);
@@ -14290,7 +15367,7 @@ var resolveConfig_default = (config) => {
14290
15367
  return newConfig;
14291
15368
  };
14292
15369
 
14293
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
15370
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
14294
15371
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
14295
15372
  var xhr_default = isXHRAdapterSupported && function(config) {
14296
15373
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -14326,13 +15403,17 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14326
15403
  config,
14327
15404
  request
14328
15405
  };
14329
- settle(function _resolve(value) {
14330
- resolve(value);
14331
- done();
14332
- }, function _reject(err) {
14333
- reject(err);
14334
- done();
14335
- }, response);
15406
+ settle(
15407
+ function _resolve(value) {
15408
+ resolve(value);
15409
+ done();
15410
+ },
15411
+ function _reject(err) {
15412
+ reject(err);
15413
+ done();
15414
+ },
15415
+ response
15416
+ );
14336
15417
  request = null;
14337
15418
  }
14338
15419
  if ("onloadend" in request) {
@@ -14342,7 +15423,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14342
15423
  if (!request || request.readyState !== 4) {
14343
15424
  return;
14344
15425
  }
14345
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
15426
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
14346
15427
  return;
14347
15428
  }
14348
15429
  setTimeout(onloadend);
@@ -14353,6 +15434,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14353
15434
  return;
14354
15435
  }
14355
15436
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
15437
+ done();
14356
15438
  request = null;
14357
15439
  };
14358
15440
  request.onerror = function handleError(event) {
@@ -14360,6 +15442,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14360
15442
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
14361
15443
  err.event = event || null;
14362
15444
  reject(err);
15445
+ done();
14363
15446
  request = null;
14364
15447
  };
14365
15448
  request.ontimeout = function handleTimeout() {
@@ -14368,17 +15451,20 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14368
15451
  if (_config.timeoutErrorMessage) {
14369
15452
  timeoutErrorMessage = _config.timeoutErrorMessage;
14370
15453
  }
14371
- reject(new AxiosError_default(
14372
- timeoutErrorMessage,
14373
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14374
- config,
14375
- request
14376
- ));
15454
+ reject(
15455
+ new AxiosError_default(
15456
+ timeoutErrorMessage,
15457
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
15458
+ config,
15459
+ request
15460
+ )
15461
+ );
15462
+ done();
14377
15463
  request = null;
14378
15464
  };
14379
15465
  requestData === void 0 && requestHeaders.setContentType(null);
14380
15466
  if ("setRequestHeader" in request) {
14381
- utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
15467
+ utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
14382
15468
  request.setRequestHeader(key, val);
14383
15469
  });
14384
15470
  }
@@ -14404,6 +15490,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14404
15490
  }
14405
15491
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
14406
15492
  request.abort();
15493
+ done();
14407
15494
  request = null;
14408
15495
  };
14409
15496
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -14412,51 +15499,61 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14412
15499
  }
14413
15500
  }
14414
15501
  const protocol = parseProtocol(_config.url);
14415
- if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
14416
- reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
15502
+ if (protocol && !platform_default.protocols.includes(protocol)) {
15503
+ reject(
15504
+ new AxiosError_default(
15505
+ "Unsupported protocol " + protocol + ":",
15506
+ AxiosError_default.ERR_BAD_REQUEST,
15507
+ config
15508
+ )
15509
+ );
14417
15510
  return;
14418
15511
  }
14419
15512
  request.send(requestData || null);
14420
15513
  });
14421
15514
  };
14422
15515
 
14423
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
15516
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
14424
15517
  var composeSignals = (signals, timeout) => {
14425
- const { length } = signals = signals ? signals.filter(Boolean) : [];
14426
- if (timeout || length) {
14427
- let controller = new AbortController();
14428
- let aborted;
14429
- const onabort = function(reason) {
14430
- if (!aborted) {
14431
- aborted = true;
14432
- unsubscribe();
14433
- const err = reason instanceof Error ? reason : this.reason;
14434
- controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
14435
- }
14436
- };
14437
- let timer = timeout && setTimeout(() => {
14438
- timer = null;
14439
- onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
14440
- }, timeout);
14441
- const unsubscribe = () => {
14442
- if (signals) {
14443
- timer && clearTimeout(timer);
14444
- timer = null;
14445
- signals.forEach((signal2) => {
14446
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
14447
- });
14448
- signals = null;
14449
- }
14450
- };
14451
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
14452
- const { signal } = controller;
14453
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
14454
- return signal;
15518
+ signals = signals ? signals.filter(Boolean) : [];
15519
+ if (!timeout && !signals.length) {
15520
+ return;
14455
15521
  }
15522
+ const controller = new AbortController();
15523
+ let aborted = false;
15524
+ const onabort = function(reason) {
15525
+ if (!aborted) {
15526
+ aborted = true;
15527
+ unsubscribe();
15528
+ const err = reason instanceof Error ? reason : this.reason;
15529
+ controller.abort(
15530
+ err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
15531
+ );
15532
+ }
15533
+ };
15534
+ let timer = timeout && setTimeout(() => {
15535
+ timer = null;
15536
+ onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
15537
+ }, timeout);
15538
+ const unsubscribe = () => {
15539
+ if (!signals) {
15540
+ return;
15541
+ }
15542
+ timer && clearTimeout(timer);
15543
+ timer = null;
15544
+ signals.forEach((signal2) => {
15545
+ signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
15546
+ });
15547
+ signals = null;
15548
+ };
15549
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
15550
+ const { signal } = controller;
15551
+ signal.unsubscribe = () => utils_default.asap(unsubscribe);
15552
+ return signal;
14456
15553
  };
14457
15554
  var composeSignals_default = composeSignals;
14458
15555
 
14459
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
15556
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
14460
15557
  var streamChunk = function* (chunk, chunkSize) {
14461
15558
  let len = chunk.byteLength;
14462
15559
  if (!chunkSize || len < chunkSize) {
@@ -14504,46 +15601,41 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
14504
15601
  onFinish && onFinish(e);
14505
15602
  }
14506
15603
  };
14507
- return new ReadableStream({
14508
- async pull(controller) {
14509
- try {
14510
- const { done: done2, value } = await iterator2.next();
14511
- if (done2) {
14512
- _onFinish();
14513
- controller.close();
14514
- return;
14515
- }
14516
- let len = value.byteLength;
14517
- if (onProgress) {
14518
- let loadedBytes = bytes += len;
14519
- onProgress(loadedBytes);
15604
+ return new ReadableStream(
15605
+ {
15606
+ async pull(controller) {
15607
+ try {
15608
+ const { done: done2, value } = await iterator2.next();
15609
+ if (done2) {
15610
+ _onFinish();
15611
+ controller.close();
15612
+ return;
15613
+ }
15614
+ let len = value.byteLength;
15615
+ if (onProgress) {
15616
+ let loadedBytes = bytes += len;
15617
+ onProgress(loadedBytes);
15618
+ }
15619
+ controller.enqueue(new Uint8Array(value));
15620
+ } catch (err) {
15621
+ _onFinish(err);
15622
+ throw err;
14520
15623
  }
14521
- controller.enqueue(new Uint8Array(value));
14522
- } catch (err) {
14523
- _onFinish(err);
14524
- throw err;
15624
+ },
15625
+ cancel(reason) {
15626
+ _onFinish(reason);
15627
+ return iterator2.return();
14525
15628
  }
14526
15629
  },
14527
- cancel(reason) {
14528
- _onFinish(reason);
14529
- return iterator2.return();
15630
+ {
15631
+ highWaterMark: 2
14530
15632
  }
14531
- }, {
14532
- highWaterMark: 2
14533
- });
15633
+ );
14534
15634
  };
14535
15635
 
14536
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
15636
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
14537
15637
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
14538
15638
  var { isFunction: isFunction2 } = utils_default;
14539
- var globalFetchAPI = (({ Request, Response }) => ({
14540
- Request,
14541
- Response
14542
- }))(utils_default.global);
14543
- var {
14544
- ReadableStream: ReadableStream2,
14545
- TextEncoder: TextEncoder2
14546
- } = utils_default.global;
14547
15639
  var test = (fn, ...args) => {
14548
15640
  try {
14549
15641
  return !!fn(...args);
@@ -14552,9 +15644,18 @@ var test = (fn, ...args) => {
14552
15644
  }
14553
15645
  };
14554
15646
  var factory = (env) => {
14555
- env = utils_default.merge.call({
14556
- skipUndefined: true
14557
- }, globalFetchAPI, env);
15647
+ const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15648
+ const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
15649
+ env = utils_default.merge.call(
15650
+ {
15651
+ skipUndefined: true
15652
+ },
15653
+ {
15654
+ Request: globalObject.Request,
15655
+ Response: globalObject.Response
15656
+ },
15657
+ env
15658
+ );
14558
15659
  const { fetch: envFetch, Request, Response } = env;
14559
15660
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
14560
15661
  const isRequestSupported = isFunction2(Request);
@@ -14566,14 +15667,18 @@ var factory = (env) => {
14566
15667
  const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
14567
15668
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
14568
15669
  let duplexAccessed = false;
14569
- const hasContentType = new Request(platform_default.origin, {
15670
+ const request = new Request(platform_default.origin, {
14570
15671
  body: new ReadableStream2(),
14571
15672
  method: "POST",
14572
15673
  get duplex() {
14573
15674
  duplexAccessed = true;
14574
15675
  return "half";
14575
15676
  }
14576
- }).headers.has("Content-Type");
15677
+ });
15678
+ const hasContentType = request.headers.has("Content-Type");
15679
+ if (request.body != null) {
15680
+ request.body.cancel();
15681
+ }
14577
15682
  return duplexAccessed && !hasContentType;
14578
15683
  });
14579
15684
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
@@ -14587,7 +15692,11 @@ var factory = (env) => {
14587
15692
  if (method) {
14588
15693
  return method.call(res);
14589
15694
  }
14590
- throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
15695
+ throw new AxiosError_default(
15696
+ `Response type '${type}' is not supported`,
15697
+ AxiosError_default.ERR_NOT_SUPPORT,
15698
+ config
15699
+ );
14591
15700
  });
14592
15701
  });
14593
15702
  })();
@@ -14632,17 +15741,46 @@ var factory = (env) => {
14632
15741
  responseType,
14633
15742
  headers,
14634
15743
  withCredentials = "same-origin",
14635
- fetchOptions
15744
+ fetchOptions,
15745
+ maxContentLength,
15746
+ maxBodyLength
14636
15747
  } = resolveConfig_default(config);
15748
+ const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15749
+ const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
14637
15750
  let _fetch = envFetch || fetch;
14638
15751
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
14639
- let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
15752
+ let composedSignal = composeSignals_default(
15753
+ [signal, cancelToken && cancelToken.toAbortSignal()],
15754
+ timeout
15755
+ );
14640
15756
  let request = null;
14641
15757
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
14642
15758
  composedSignal.unsubscribe();
14643
15759
  });
14644
15760
  let requestContentLength;
14645
15761
  try {
15762
+ if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15763
+ const estimated = estimateDataURLDecodedBytes(url2);
15764
+ if (estimated > maxContentLength) {
15765
+ throw new AxiosError_default(
15766
+ "maxContentLength size of " + maxContentLength + " exceeded",
15767
+ AxiosError_default.ERR_BAD_RESPONSE,
15768
+ config,
15769
+ request
15770
+ );
15771
+ }
15772
+ }
15773
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
15774
+ const outboundLength = await resolveBodyLength(headers, data);
15775
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15776
+ throw new AxiosError_default(
15777
+ "Request body larger than maxBodyLength limit",
15778
+ AxiosError_default.ERR_BAD_REQUEST,
15779
+ config,
15780
+ request
15781
+ );
15782
+ }
15783
+ }
14646
15784
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
14647
15785
  let _request = new Request(url2, {
14648
15786
  method: "POST",
@@ -14665,19 +15803,37 @@ var factory = (env) => {
14665
15803
  withCredentials = withCredentials ? "include" : "omit";
14666
15804
  }
14667
15805
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
15806
+ if (utils_default.isFormData(data)) {
15807
+ const contentType = headers.getContentType();
15808
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
15809
+ headers.delete("content-type");
15810
+ }
15811
+ }
15812
+ headers.set("User-Agent", "axios/" + VERSION, false);
14668
15813
  const resolvedOptions = {
14669
15814
  ...fetchOptions,
14670
15815
  signal: composedSignal,
14671
15816
  method: method.toUpperCase(),
14672
- headers: headers.normalize().toJSON(),
15817
+ headers: toByteStringHeaderObject(headers.normalize()),
14673
15818
  body: data,
14674
15819
  duplex: "half",
14675
15820
  credentials: isCredentialsSupported ? withCredentials : void 0
14676
15821
  };
14677
15822
  request = isRequestSupported && new Request(url2, resolvedOptions);
14678
15823
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
15824
+ if (hasMaxContentLength) {
15825
+ const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
15826
+ if (declaredLength != null && declaredLength > maxContentLength) {
15827
+ throw new AxiosError_default(
15828
+ "maxContentLength size of " + maxContentLength + " exceeded",
15829
+ AxiosError_default.ERR_BAD_RESPONSE,
15830
+ config,
15831
+ request
15832
+ );
15833
+ }
15834
+ }
14679
15835
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
14680
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
15836
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
14681
15837
  const options = {};
14682
15838
  ["status", "statusText", "headers"].forEach((prop) => {
14683
15839
  options[prop] = response[prop];
@@ -14687,8 +15843,23 @@ var factory = (env) => {
14687
15843
  responseContentLength,
14688
15844
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
14689
15845
  ) || [];
15846
+ let bytesRead = 0;
15847
+ const onChunkProgress = (loadedBytes) => {
15848
+ if (hasMaxContentLength) {
15849
+ bytesRead = loadedBytes;
15850
+ if (bytesRead > maxContentLength) {
15851
+ throw new AxiosError_default(
15852
+ "maxContentLength size of " + maxContentLength + " exceeded",
15853
+ AxiosError_default.ERR_BAD_RESPONSE,
15854
+ config,
15855
+ request
15856
+ );
15857
+ }
15858
+ }
15859
+ onProgress && onProgress(loadedBytes);
15860
+ };
14690
15861
  response = new Response(
14691
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
15862
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
14692
15863
  flush && flush();
14693
15864
  unsubscribe && unsubscribe();
14694
15865
  }),
@@ -14696,7 +15867,30 @@ var factory = (env) => {
14696
15867
  );
14697
15868
  }
14698
15869
  responseType = responseType || "text";
14699
- let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
15870
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
15871
+ response,
15872
+ config
15873
+ );
15874
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
15875
+ let materializedSize;
15876
+ if (responseData != null) {
15877
+ if (typeof responseData.byteLength === "number") {
15878
+ materializedSize = responseData.byteLength;
15879
+ } else if (typeof responseData.size === "number") {
15880
+ materializedSize = responseData.size;
15881
+ } else if (typeof responseData === "string") {
15882
+ materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
15883
+ }
15884
+ }
15885
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
15886
+ throw new AxiosError_default(
15887
+ "maxContentLength size of " + maxContentLength + " exceeded",
15888
+ AxiosError_default.ERR_BAD_RESPONSE,
15889
+ config,
15890
+ request
15891
+ );
15892
+ }
15893
+ }
14700
15894
  !isStreamResponse && unsubscribe && unsubscribe();
14701
15895
  return await new Promise((resolve, reject) => {
14702
15896
  settle(resolve, reject, {
@@ -14710,9 +15904,22 @@ var factory = (env) => {
14710
15904
  });
14711
15905
  } catch (err) {
14712
15906
  unsubscribe && unsubscribe();
15907
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
15908
+ const canceledError = composedSignal.reason;
15909
+ canceledError.config = config;
15910
+ request && (canceledError.request = request);
15911
+ err !== canceledError && (canceledError.cause = err);
15912
+ throw canceledError;
15913
+ }
14713
15914
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
14714
15915
  throw Object.assign(
14715
- new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response),
15916
+ new AxiosError_default(
15917
+ "Network Error",
15918
+ AxiosError_default.ERR_NETWORK,
15919
+ config,
15920
+ request,
15921
+ err && err.response
15922
+ ),
14716
15923
  {
14717
15924
  cause: err.cause || err
14718
15925
  }
@@ -14726,11 +15933,7 @@ var seedCache = /* @__PURE__ */ new Map();
14726
15933
  var getFetch = (config) => {
14727
15934
  let env = config && config.env || {};
14728
15935
  const { fetch: fetch2, Request, Response } = env;
14729
- const seeds = [
14730
- Request,
14731
- Response,
14732
- fetch2
14733
- ];
15936
+ const seeds = [Request, Response, fetch2];
14734
15937
  let len = seeds.length, i = len, seed, target, map = seedCache;
14735
15938
  while (i--) {
14736
15939
  seed = seeds[i];
@@ -14742,7 +15945,7 @@ var getFetch = (config) => {
14742
15945
  };
14743
15946
  var adapter = getFetch();
14744
15947
 
14745
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
15948
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
14746
15949
  var knownAdapters = {
14747
15950
  http: http_default,
14748
15951
  xhr: xhr_default,
@@ -14753,10 +15956,10 @@ var knownAdapters = {
14753
15956
  utils_default.forEach(knownAdapters, (fn, value) => {
14754
15957
  if (fn) {
14755
15958
  try {
14756
- Object.defineProperty(fn, "name", { value });
15959
+ Object.defineProperty(fn, "name", { __proto__: null, value });
14757
15960
  } catch (e) {
14758
15961
  }
14759
- Object.defineProperty(fn, "adapterName", { value });
15962
+ Object.defineProperty(fn, "adapterName", { __proto__: null, value });
14760
15963
  }
14761
15964
  });
14762
15965
  var renderReason = (reason) => `- ${reason}`;
@@ -14807,7 +16010,7 @@ var adapters_default = {
14807
16010
  adapters: knownAdapters
14808
16011
  };
14809
16012
 
14810
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
16013
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
14811
16014
  function throwIfCancellationRequested(config) {
14812
16015
  if (config.cancelToken) {
14813
16016
  config.cancelToken.throwIfRequested();
@@ -14819,40 +16022,46 @@ function throwIfCancellationRequested(config) {
14819
16022
  function dispatchRequest(config) {
14820
16023
  throwIfCancellationRequested(config);
14821
16024
  config.headers = AxiosHeaders_default.from(config.headers);
14822
- config.data = transformData.call(
14823
- config,
14824
- config.transformRequest
14825
- );
16025
+ config.data = transformData.call(config, config.transformRequest);
14826
16026
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
14827
16027
  config.headers.setContentType("application/x-www-form-urlencoded", false);
14828
16028
  }
14829
16029
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
14830
- return adapter2(config).then(function onAdapterResolution(response) {
14831
- throwIfCancellationRequested(config);
14832
- response.data = transformData.call(
14833
- config,
14834
- config.transformResponse,
14835
- response
14836
- );
14837
- response.headers = AxiosHeaders_default.from(response.headers);
14838
- return response;
14839
- }, function onAdapterRejection(reason) {
14840
- if (!isCancel(reason)) {
16030
+ return adapter2(config).then(
16031
+ function onAdapterResolution(response) {
14841
16032
  throwIfCancellationRequested(config);
14842
- if (reason && reason.response) {
14843
- reason.response.data = transformData.call(
14844
- config,
14845
- config.transformResponse,
14846
- reason.response
14847
- );
14848
- reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
16033
+ config.response = response;
16034
+ try {
16035
+ response.data = transformData.call(config, config.transformResponse, response);
16036
+ } finally {
16037
+ delete config.response;
16038
+ }
16039
+ response.headers = AxiosHeaders_default.from(response.headers);
16040
+ return response;
16041
+ },
16042
+ function onAdapterRejection(reason) {
16043
+ if (!isCancel(reason)) {
16044
+ throwIfCancellationRequested(config);
16045
+ if (reason && reason.response) {
16046
+ config.response = reason.response;
16047
+ try {
16048
+ reason.response.data = transformData.call(
16049
+ config,
16050
+ config.transformResponse,
16051
+ reason.response
16052
+ );
16053
+ } finally {
16054
+ delete config.response;
16055
+ }
16056
+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
16057
+ }
14849
16058
  }
16059
+ return Promise.reject(reason);
14850
16060
  }
14851
- return Promise.reject(reason);
14852
- });
16061
+ );
14853
16062
  }
14854
16063
 
14855
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
16064
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
14856
16065
  var validators = {};
14857
16066
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
14858
16067
  validators[type] = function validator(thing) {
@@ -14897,12 +16106,15 @@ function assertOptions(options, schema, allowUnknown) {
14897
16106
  let i = keys.length;
14898
16107
  while (i-- > 0) {
14899
16108
  const opt = keys[i];
14900
- const validator = schema[opt];
16109
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
14901
16110
  if (validator) {
14902
16111
  const value = options[opt];
14903
16112
  const result = value === void 0 || validator(value, opt, options);
14904
16113
  if (result !== true) {
14905
- throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
16114
+ throw new AxiosError_default(
16115
+ "option " + opt + " must be " + result,
16116
+ AxiosError_default.ERR_BAD_OPTION_VALUE
16117
+ );
14906
16118
  }
14907
16119
  continue;
14908
16120
  }
@@ -14916,7 +16128,7 @@ var validator_default = {
14916
16128
  validators
14917
16129
  };
14918
16130
 
14919
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/Axios.js
16131
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/Axios.js
14920
16132
  var validators2 = validator_default.validators;
14921
16133
  var Axios = class {
14922
16134
  constructor(instanceConfig) {
@@ -14941,12 +16153,23 @@ var Axios = class {
14941
16153
  if (err instanceof Error) {
14942
16154
  let dummy = {};
14943
16155
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
14944
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
16156
+ const stack = (() => {
16157
+ if (!dummy.stack) {
16158
+ return "";
16159
+ }
16160
+ const firstNewlineIndex = dummy.stack.indexOf("\n");
16161
+ return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
16162
+ })();
14945
16163
  try {
14946
16164
  if (!err.stack) {
14947
16165
  err.stack = stack;
14948
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
14949
- err.stack += "\n" + stack;
16166
+ } else if (stack) {
16167
+ const firstNewlineIndex = stack.indexOf("\n");
16168
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
16169
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
16170
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
16171
+ err.stack += "\n" + stack;
16172
+ }
14950
16173
  }
14951
16174
  } catch (e) {
14952
16175
  }
@@ -14964,12 +16187,16 @@ var Axios = class {
14964
16187
  config = mergeConfig(this.defaults, config);
14965
16188
  const { transitional: transitional2, paramsSerializer, headers } = config;
14966
16189
  if (transitional2 !== void 0) {
14967
- validator_default.assertOptions(transitional2, {
14968
- silentJSONParsing: validators2.transitional(validators2.boolean),
14969
- forcedJSONParsing: validators2.transitional(validators2.boolean),
14970
- clarifyTimeoutError: validators2.transitional(validators2.boolean),
14971
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
14972
- }, false);
16190
+ validator_default.assertOptions(
16191
+ transitional2,
16192
+ {
16193
+ silentJSONParsing: validators2.transitional(validators2.boolean),
16194
+ forcedJSONParsing: validators2.transitional(validators2.boolean),
16195
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
16196
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
16197
+ },
16198
+ false
16199
+ );
14973
16200
  }
14974
16201
  if (paramsSerializer != null) {
14975
16202
  if (utils_default.isFunction(paramsSerializer)) {
@@ -14977,10 +16204,14 @@ var Axios = class {
14977
16204
  serialize: paramsSerializer
14978
16205
  };
14979
16206
  } else {
14980
- validator_default.assertOptions(paramsSerializer, {
14981
- encode: validators2.function,
14982
- serialize: validators2.function
14983
- }, true);
16207
+ validator_default.assertOptions(
16208
+ paramsSerializer,
16209
+ {
16210
+ encode: validators2.function,
16211
+ serialize: validators2.function
16212
+ },
16213
+ true
16214
+ );
14984
16215
  }
14985
16216
  }
14986
16217
  if (config.allowAbsoluteUrls !== void 0) {
@@ -14989,21 +16220,19 @@ var Axios = class {
14989
16220
  } else {
14990
16221
  config.allowAbsoluteUrls = true;
14991
16222
  }
14992
- validator_default.assertOptions(config, {
14993
- baseUrl: validators2.spelling("baseURL"),
14994
- withXsrfToken: validators2.spelling("withXSRFToken")
14995
- }, true);
14996
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
14997
- let contextHeaders = headers && utils_default.merge(
14998
- headers.common,
14999
- headers[config.method]
15000
- );
15001
- headers && utils_default.forEach(
15002
- ["delete", "get", "head", "post", "put", "patch", "common"],
15003
- (method) => {
15004
- delete headers[method];
15005
- }
16223
+ validator_default.assertOptions(
16224
+ config,
16225
+ {
16226
+ baseUrl: validators2.spelling("baseURL"),
16227
+ withXsrfToken: validators2.spelling("withXSRFToken")
16228
+ },
16229
+ true
15006
16230
  );
16231
+ config.method = (config.method || this.defaults.method || "get").toLowerCase();
16232
+ let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
16233
+ headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
16234
+ delete headers[method];
16235
+ });
15007
16236
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
15008
16237
  const requestInterceptorChain = [];
15009
16238
  let synchronousRequestInterceptors = true;
@@ -15070,32 +16299,38 @@ var Axios = class {
15070
16299
  };
15071
16300
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
15072
16301
  Axios.prototype[method] = function(url2, config) {
15073
- return this.request(mergeConfig(config || {}, {
15074
- method,
15075
- url: url2,
15076
- data: (config || {}).data
15077
- }));
16302
+ return this.request(
16303
+ mergeConfig(config || {}, {
16304
+ method,
16305
+ url: url2,
16306
+ data: (config || {}).data
16307
+ })
16308
+ );
15078
16309
  };
15079
16310
  });
15080
- utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
16311
+ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
15081
16312
  function generateHTTPMethod(isForm) {
15082
16313
  return function httpMethod(url2, data, config) {
15083
- return this.request(mergeConfig(config || {}, {
15084
- method,
15085
- headers: isForm ? {
15086
- "Content-Type": "multipart/form-data"
15087
- } : {},
15088
- url: url2,
15089
- data
15090
- }));
16314
+ return this.request(
16315
+ mergeConfig(config || {}, {
16316
+ method,
16317
+ headers: isForm ? {
16318
+ "Content-Type": "multipart/form-data"
16319
+ } : {},
16320
+ url: url2,
16321
+ data
16322
+ })
16323
+ );
15091
16324
  };
15092
16325
  }
15093
16326
  Axios.prototype[method] = generateHTTPMethod();
15094
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
16327
+ if (method !== "query") {
16328
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
16329
+ }
15095
16330
  });
15096
16331
  var Axios_default = Axios;
15097
16332
 
15098
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
16333
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
15099
16334
  var CancelToken = class _CancelToken {
15100
16335
  constructor(executor) {
15101
16336
  if (typeof executor !== "function") {
@@ -15193,19 +16428,19 @@ var CancelToken = class _CancelToken {
15193
16428
  };
15194
16429
  var CancelToken_default = CancelToken;
15195
16430
 
15196
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
16431
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
15197
16432
  function spread(callback) {
15198
16433
  return function wrap(arr) {
15199
16434
  return callback.apply(null, arr);
15200
16435
  };
15201
16436
  }
15202
16437
 
15203
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
16438
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
15204
16439
  function isAxiosError(payload) {
15205
16440
  return utils_default.isObject(payload) && payload.isAxiosError === true;
15206
16441
  }
15207
16442
 
15208
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
16443
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
15209
16444
  var HttpStatusCode = {
15210
16445
  Continue: 100,
15211
16446
  SwitchingProtocols: 101,
@@ -15282,13 +16517,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
15282
16517
  });
15283
16518
  var HttpStatusCode_default = HttpStatusCode;
15284
16519
 
15285
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/axios.js
16520
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/axios.js
15286
16521
  function createInstance(defaultConfig) {
15287
16522
  const context = new Axios_default(defaultConfig);
15288
16523
  const instance = bind(Axios_default.prototype.request, context);
15289
16524
  utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
15290
16525
  utils_default.extend(instance, context, null, { allOwnKeys: true });
15291
- instance.create = function create(instanceConfig) {
16526
+ instance.create = function create2(instanceConfig) {
15292
16527
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
15293
16528
  };
15294
16529
  return instance;
@@ -15315,7 +16550,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
15315
16550
  axios.default = axios;
15316
16551
  var axios_default = axios;
15317
16552
 
15318
- // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/index.js
16553
+ // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/index.js
15319
16554
  var {
15320
16555
  Axios: Axios2,
15321
16556
  AxiosError: AxiosError2,
@@ -15332,7 +16567,8 @@ var {
15332
16567
  HttpStatusCode: HttpStatusCode2,
15333
16568
  formToJSON,
15334
16569
  getAdapter: getAdapter2,
15335
- mergeConfig: mergeConfig2
16570
+ mergeConfig: mergeConfig2,
16571
+ create
15336
16572
  } = axios_default;
15337
16573
 
15338
16574
  // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=283f0d16759aba9c68cd55bb0821c977833a401969b0ecf9492a6618e019f6c1/node_modules/pipenet/dist/Tunnel.js