alpic 1.136.1 → 1.136.3

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.
@@ -9996,7 +9996,7 @@ var require_form_data = __commonJS({
9996
9996
  var path = __require("path");
9997
9997
  var http3 = __require("http");
9998
9998
  var https2 = __require("https");
9999
- var parseUrl2 = __require("url").parse;
9999
+ var parseUrl = __require("url").parse;
10000
10000
  var fs2 = __require("fs");
10001
10001
  var Stream = __require("stream").Stream;
10002
10002
  var crypto2 = __require("crypto");
@@ -10249,7 +10249,7 @@ var require_form_data = __commonJS({
10249
10249
  var options;
10250
10250
  var defaults2 = { method: "post" };
10251
10251
  if (typeof params === "string") {
10252
- params = parseUrl2(params);
10252
+ params = parseUrl(params);
10253
10253
  options = populate({
10254
10254
  port: params.port,
10255
10255
  path: params.pathname,
@@ -10306,6 +10306,76 @@ var require_form_data = __commonJS({
10306
10306
  }
10307
10307
  });
10308
10308
 
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
+
10309
10379
  // ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
10310
10380
  var require_ms = __commonJS({
10311
10381
  "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
@@ -11432,7 +11502,7 @@ var require_follow_redirects = __commonJS({
11432
11502
  removeMatchingHeaders(/^content-/i, this._options.headers);
11433
11503
  }
11434
11504
  var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
11435
- var currentUrlParts = parseUrl2(this._currentUrl);
11505
+ var currentUrlParts = parseUrl(this._currentUrl);
11436
11506
  var currentHost = currentHostHeader || currentUrlParts.host;
11437
11507
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
11438
11508
  var redirectUrl = resolveUrl(location, currentUrl);
@@ -11471,7 +11541,7 @@ var require_follow_redirects = __commonJS({
11471
11541
  if (isURL(input)) {
11472
11542
  input = spreadUrlObject(input);
11473
11543
  } else if (isString2(input)) {
11474
- input = spreadUrlObject(parseUrl2(input));
11544
+ input = spreadUrlObject(parseUrl(input));
11475
11545
  } else {
11476
11546
  callback = options;
11477
11547
  options = validateUrl(input);
@@ -11507,7 +11577,7 @@ var require_follow_redirects = __commonJS({
11507
11577
  }
11508
11578
  function noop2() {
11509
11579
  }
11510
- function parseUrl2(input) {
11580
+ function parseUrl(input) {
11511
11581
  var parsed;
11512
11582
  if (useNativeURL) {
11513
11583
  parsed = new URL2(input);
@@ -11520,7 +11590,7 @@ var require_follow_redirects = __commonJS({
11520
11590
  return parsed;
11521
11591
  }
11522
11592
  function resolveUrl(relative, base) {
11523
- return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
11593
+ return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
11524
11594
  }
11525
11595
  function validateUrl(input) {
11526
11596
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -11612,14 +11682,14 @@ var require_follow_redirects = __commonJS({
11612
11682
  }
11613
11683
  });
11614
11684
 
11615
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
11685
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
11616
11686
  function bind(fn, thisArg) {
11617
11687
  return function wrap() {
11618
11688
  return fn.apply(thisArg, arguments);
11619
11689
  };
11620
11690
  }
11621
11691
 
11622
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/utils.js
11692
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/utils.js
11623
11693
  var { toString } = Object.prototype;
11624
11694
  var { getPrototypeOf } = Object;
11625
11695
  var { iterator, toStringTag } = Symbol;
@@ -11671,31 +11741,13 @@ var isEmptyObject = (val) => {
11671
11741
  };
11672
11742
  var isDate = kindOfTest("Date");
11673
11743
  var isFile = kindOfTest("File");
11674
- var isReactNativeBlob = (value) => {
11675
- return !!(value && typeof value.uri !== "undefined");
11676
- };
11677
- var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
11678
11744
  var isBlob = kindOfTest("Blob");
11679
11745
  var isFileList = kindOfTest("FileList");
11680
11746
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
11681
- function getGlobal() {
11682
- if (typeof globalThis !== "undefined") return globalThis;
11683
- if (typeof self !== "undefined") return self;
11684
- if (typeof window !== "undefined") return window;
11685
- if (typeof global !== "undefined") return global;
11686
- return {};
11687
- }
11688
- var G = getGlobal();
11689
- var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
11690
11747
  var isFormData = (thing) => {
11691
- if (!thing) return false;
11692
- if (FormDataCtor && thing instanceof FormDataCtor) return true;
11693
- const proto = getPrototypeOf(thing);
11694
- if (!proto || proto === Object.prototype) return false;
11695
- if (!isFunction(thing.append)) return false;
11696
- const kind = kindOf(thing);
11697
- return kind === "formdata" || // detect form-data instance
11698
- kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
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]"));
11699
11751
  };
11700
11752
  var isURLSearchParams = kindOfTest("URLSearchParams");
11701
11753
  var [isReadableStream, isRequest, isResponse, isHeaders] = [
@@ -11704,9 +11756,7 @@ var [isReadableStream, isRequest, isResponse, isHeaders] = [
11704
11756
  "Response",
11705
11757
  "Headers"
11706
11758
  ].map(kindOfTest);
11707
- var trim = (str) => {
11708
- return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
11709
- };
11759
+ var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
11710
11760
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
11711
11761
  if (obj === null || typeof obj === "undefined") {
11712
11762
  return;
@@ -11754,7 +11804,7 @@ var _global = (() => {
11754
11804
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
11755
11805
  })();
11756
11806
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
11757
- function merge(...objs) {
11807
+ function merge() {
11758
11808
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
11759
11809
  const result = {};
11760
11810
  const assignValue = (val, key) => {
@@ -11762,9 +11812,8 @@ function merge(...objs) {
11762
11812
  return;
11763
11813
  }
11764
11814
  const targetKey = caseless && findKey(result, key) || key;
11765
- const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
11766
- if (isPlainObject(existing) && isPlainObject(val)) {
11767
- result[targetKey] = merge(existing, val);
11815
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
11816
+ result[targetKey] = merge(result[targetKey], val);
11768
11817
  } else if (isPlainObject(val)) {
11769
11818
  result[targetKey] = merge({}, val);
11770
11819
  } else if (isArray(val)) {
@@ -11773,8 +11822,8 @@ function merge(...objs) {
11773
11822
  result[targetKey] = val;
11774
11823
  }
11775
11824
  };
11776
- for (let i = 0, l = objs.length; i < l; i++) {
11777
- objs[i] && forEach(objs[i], assignValue);
11825
+ for (let i = 0, l = arguments.length; i < l; i++) {
11826
+ arguments[i] && forEach(arguments[i], assignValue);
11778
11827
  }
11779
11828
  return result;
11780
11829
  }
@@ -11784,9 +11833,6 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
11784
11833
  (val, key) => {
11785
11834
  if (thisArg && isFunction(val)) {
11786
11835
  Object.defineProperty(a, key, {
11787
- // Null-proto descriptor so a polluted Object.prototype.get cannot
11788
- // hijack defineProperty's accessor-vs-data resolution.
11789
- __proto__: null,
11790
11836
  value: bind(val, thisArg),
11791
11837
  writable: true,
11792
11838
  enumerable: true,
@@ -11794,7 +11840,6 @@ var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
11794
11840
  });
11795
11841
  } else {
11796
11842
  Object.defineProperty(a, key, {
11797
- __proto__: null,
11798
11843
  value: val,
11799
11844
  writable: true,
11800
11845
  enumerable: true,
@@ -11813,16 +11858,17 @@ var stripBOM = (content) => {
11813
11858
  return content;
11814
11859
  };
11815
11860
  var inherits = (constructor, superConstructor, props, descriptors) => {
11816
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
11861
+ constructor.prototype = Object.create(
11862
+ superConstructor.prototype,
11863
+ descriptors
11864
+ );
11817
11865
  Object.defineProperty(constructor.prototype, "constructor", {
11818
- __proto__: null,
11819
11866
  value: constructor,
11820
11867
  writable: true,
11821
11868
  enumerable: false,
11822
11869
  configurable: true
11823
11870
  });
11824
11871
  Object.defineProperty(constructor, "super", {
11825
- __proto__: null,
11826
11872
  value: superConstructor.prototype
11827
11873
  });
11828
11874
  props && Object.assign(constructor.prototype, props);
@@ -11911,7 +11957,7 @@ var reduceDescriptors = (obj, reducer) => {
11911
11957
  };
11912
11958
  var freezeMethods = (obj) => {
11913
11959
  reduceDescriptors(obj, (descriptor, name) => {
11914
- if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
11960
+ if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
11915
11961
  return false;
11916
11962
  }
11917
11963
  const value = obj[name];
@@ -12014,8 +12060,6 @@ var utils_default = {
12014
12060
  isUndefined,
12015
12061
  isDate,
12016
12062
  isFile,
12017
- isReactNativeBlob,
12018
- isReactNative,
12019
12063
  isBlob,
12020
12064
  isRegExp,
12021
12065
  isFunction,
@@ -12058,578 +12102,192 @@ var utils_default = {
12058
12102
  isIterable
12059
12103
  };
12060
12104
 
12061
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12062
- var ignoreDuplicateOf = utils_default.toObjectSet([
12063
- "age",
12064
- "authorization",
12065
- "content-length",
12066
- "content-type",
12067
- "etag",
12068
- "expires",
12069
- "from",
12070
- "host",
12071
- "if-modified-since",
12072
- "if-unmodified-since",
12073
- "last-modified",
12074
- "location",
12075
- "max-forwards",
12076
- "proxy-authorization",
12077
- "referer",
12078
- "retry-after",
12079
- "user-agent"
12080
- ]);
12081
- var parseHeaders_default = (rawHeaders) => {
12082
- const parsed = {};
12083
- let key;
12084
- let val;
12085
- let i;
12086
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
12087
- i = line.indexOf(":");
12088
- key = line.substring(0, i).trim().toLowerCase();
12089
- val = line.substring(i + 1).trim();
12090
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12091
- return;
12092
- }
12093
- if (key === "set-cookie") {
12094
- if (parsed[key]) {
12095
- parsed[key].push(val);
12096
- } else {
12097
- parsed[key] = [val];
12098
- }
12099
- } else {
12100
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12101
- }
12102
- });
12103
- return parsed;
12104
- };
12105
-
12106
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12107
- var $internals = /* @__PURE__ */ Symbol("internals");
12108
- var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
12109
- function trimSPorHTAB(str) {
12110
- let start = 0;
12111
- let end = str.length;
12112
- while (start < end) {
12113
- const code = str.charCodeAt(start);
12114
- if (code !== 9 && code !== 32) {
12115
- break;
12116
- }
12117
- start += 1;
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;
12118
12113
  }
12119
- while (end > start) {
12120
- const code = str.charCodeAt(end - 1);
12121
- if (code !== 9 && code !== 32) {
12122
- break;
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;
12123
12135
  }
12124
- end -= 1;
12125
12136
  }
12126
- return start === 0 && end === str.length ? str : str.slice(start, end);
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
+ };
12155
+ }
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";
12163
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
12164
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
12165
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
12166
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
12167
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
12168
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12169
+ var AxiosError_default = AxiosError;
12170
+
12171
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
12172
+ var import_form_data = __toESM(require_form_data(), 1);
12173
+ var FormData_default = import_form_data.default;
12174
+
12175
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
12176
+ function isVisitable(thing) {
12177
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12127
12178
  }
12128
- function normalizeHeader(header) {
12129
- return header && String(header).trim().toLowerCase();
12179
+ function removeBrackets(key) {
12180
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
12130
12181
  }
12131
- function sanitizeHeaderValue(str) {
12132
- return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
12182
+ function renderKey(path, key, dots) {
12183
+ if (!path) return key;
12184
+ return path.concat(key).map(function each(token, i) {
12185
+ token = removeBrackets(token);
12186
+ return !dots && i ? "[" + token + "]" : token;
12187
+ }).join(dots ? "." : "");
12133
12188
  }
12134
- function normalizeValue(value) {
12135
- if (value === false || value == null) {
12136
- return value;
12137
- }
12138
- return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
12189
+ function isFlatArray(arr) {
12190
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
12139
12191
  }
12140
- function parseTokens(str) {
12141
- const tokens = /* @__PURE__ */ Object.create(null);
12142
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
12143
- let match;
12144
- while (match = tokensRE.exec(str)) {
12145
- tokens[match[1]] = match[2];
12192
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
12193
+ return /^is[A-Z]/.test(prop);
12194
+ });
12195
+ function toFormData(obj, formData, options) {
12196
+ if (!utils_default.isObject(obj)) {
12197
+ throw new TypeError("target must be an object");
12146
12198
  }
12147
- return tokens;
12148
- }
12149
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12150
- function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12151
- if (utils_default.isFunction(filter2)) {
12152
- return filter2.call(this, value, header);
12199
+ 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
+ });
12207
+ const metaTokens = options.metaTokens;
12208
+ const visitor = options.visitor || defaultVisitor;
12209
+ const dots = options.dots;
12210
+ const indexes = options.indexes;
12211
+ const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
12212
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
12213
+ if (!utils_default.isFunction(visitor)) {
12214
+ throw new TypeError("visitor must be a function");
12153
12215
  }
12154
- if (isHeaderNameFilter) {
12155
- value = header;
12216
+ function convertValue(value) {
12217
+ if (value === null) return "";
12218
+ if (utils_default.isDate(value)) {
12219
+ return value.toISOString();
12220
+ }
12221
+ if (utils_default.isBoolean(value)) {
12222
+ return value.toString();
12223
+ }
12224
+ if (!useBlob && utils_default.isBlob(value)) {
12225
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
12226
+ }
12227
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
12228
+ return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
12229
+ }
12230
+ return value;
12156
12231
  }
12157
- if (!utils_default.isString(value)) return;
12158
- if (utils_default.isString(filter2)) {
12159
- return value.indexOf(filter2) !== -1;
12232
+ function defaultVisitor(value, key, path) {
12233
+ let arr = value;
12234
+ if (value && !path && typeof value === "object") {
12235
+ if (utils_default.endsWith(key, "{}")) {
12236
+ key = metaTokens ? key : key.slice(0, -2);
12237
+ value = JSON.stringify(value);
12238
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
12239
+ key = removeBrackets(key);
12240
+ arr.forEach(function each(el, index) {
12241
+ !(utils_default.isUndefined(el) || el === null) && formData.append(
12242
+ // eslint-disable-next-line no-nested-ternary
12243
+ indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
12244
+ convertValue(el)
12245
+ );
12246
+ });
12247
+ return false;
12248
+ }
12249
+ }
12250
+ if (isVisitable(value)) {
12251
+ return true;
12252
+ }
12253
+ formData.append(renderKey(path, key, dots), convertValue(value));
12254
+ return false;
12160
12255
  }
12161
- if (utils_default.isRegExp(filter2)) {
12162
- return filter2.test(value);
12256
+ const stack = [];
12257
+ const exposedHelpers = Object.assign(predicates, {
12258
+ defaultVisitor,
12259
+ convertValue,
12260
+ isVisitable
12261
+ });
12262
+ function build(value, path) {
12263
+ if (utils_default.isUndefined(value)) return;
12264
+ if (stack.indexOf(value) !== -1) {
12265
+ throw Error("Circular reference detected in " + path.join("."));
12266
+ }
12267
+ stack.push(value);
12268
+ 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
+ );
12276
+ if (result === true) {
12277
+ build(el, path ? path.concat(key) : [key]);
12278
+ }
12279
+ });
12280
+ stack.pop();
12163
12281
  }
12164
- }
12165
- function formatHeader(header) {
12166
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
12167
- return char.toUpperCase() + str;
12168
- });
12169
- }
12170
- function buildAccessors(obj, header) {
12171
- const accessorName = utils_default.toCamelCase(" " + header);
12172
- ["get", "set", "has"].forEach((methodName) => {
12173
- Object.defineProperty(obj, methodName + accessorName, {
12174
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
12175
- // this data descriptor into an accessor descriptor on the way in.
12176
- __proto__: null,
12177
- value: function(arg1, arg2, arg3) {
12178
- return this[methodName].call(this, header, arg1, arg2, arg3);
12179
- },
12180
- configurable: true
12181
- });
12182
- });
12183
- }
12184
- var AxiosHeaders = class {
12185
- constructor(headers) {
12186
- headers && this.set(headers);
12187
- }
12188
- set(header, valueOrRewrite, rewrite) {
12189
- const self2 = this;
12190
- function setHeader(_value, _header, _rewrite) {
12191
- const lHeader = normalizeHeader(_header);
12192
- if (!lHeader) {
12193
- throw new Error("header name must be a non-empty string");
12194
- }
12195
- const key = utils_default.findKey(self2, lHeader);
12196
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12197
- self2[key || _header] = normalizeValue(_value);
12198
- }
12199
- }
12200
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
12201
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
12202
- setHeaders(header, valueOrRewrite);
12203
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12204
- setHeaders(parseHeaders_default(header), valueOrRewrite);
12205
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12206
- let obj = {}, dest, key;
12207
- for (const entry of header) {
12208
- if (!utils_default.isArray(entry)) {
12209
- throw TypeError("Object iterator must return a key-value pair");
12210
- }
12211
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12212
- }
12213
- setHeaders(obj, valueOrRewrite);
12214
- } else {
12215
- header != null && setHeader(valueOrRewrite, header, rewrite);
12216
- }
12217
- return this;
12218
- }
12219
- get(header, parser) {
12220
- header = normalizeHeader(header);
12221
- if (header) {
12222
- const key = utils_default.findKey(this, header);
12223
- if (key) {
12224
- const value = this[key];
12225
- if (!parser) {
12226
- return value;
12227
- }
12228
- if (parser === true) {
12229
- return parseTokens(value);
12230
- }
12231
- if (utils_default.isFunction(parser)) {
12232
- return parser.call(this, value, key);
12233
- }
12234
- if (utils_default.isRegExp(parser)) {
12235
- return parser.exec(value);
12236
- }
12237
- throw new TypeError("parser must be boolean|regexp|function");
12238
- }
12239
- }
12240
- }
12241
- has(header, matcher) {
12242
- header = normalizeHeader(header);
12243
- if (header) {
12244
- const key = utils_default.findKey(this, header);
12245
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
12246
- }
12247
- return false;
12248
- }
12249
- delete(header, matcher) {
12250
- const self2 = this;
12251
- let deleted = false;
12252
- function deleteHeader(_header) {
12253
- _header = normalizeHeader(_header);
12254
- if (_header) {
12255
- const key = utils_default.findKey(self2, _header);
12256
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
12257
- delete self2[key];
12258
- deleted = true;
12259
- }
12260
- }
12261
- }
12262
- if (utils_default.isArray(header)) {
12263
- header.forEach(deleteHeader);
12264
- } else {
12265
- deleteHeader(header);
12266
- }
12267
- return deleted;
12268
- }
12269
- clear(matcher) {
12270
- const keys = Object.keys(this);
12271
- let i = keys.length;
12272
- let deleted = false;
12273
- while (i--) {
12274
- const key = keys[i];
12275
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
12276
- delete this[key];
12277
- deleted = true;
12278
- }
12279
- }
12280
- return deleted;
12281
- }
12282
- normalize(format) {
12283
- const self2 = this;
12284
- const headers = {};
12285
- utils_default.forEach(this, (value, header) => {
12286
- const key = utils_default.findKey(headers, header);
12287
- if (key) {
12288
- self2[key] = normalizeValue(value);
12289
- delete self2[header];
12290
- return;
12291
- }
12292
- const normalized = format ? formatHeader(header) : String(header).trim();
12293
- if (normalized !== header) {
12294
- delete self2[header];
12295
- }
12296
- self2[normalized] = normalizeValue(value);
12297
- headers[normalized] = true;
12298
- });
12299
- return this;
12300
- }
12301
- concat(...targets) {
12302
- return this.constructor.concat(this, ...targets);
12303
- }
12304
- toJSON(asStrings) {
12305
- const obj = /* @__PURE__ */ Object.create(null);
12306
- utils_default.forEach(this, (value, header) => {
12307
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
12308
- });
12309
- return obj;
12310
- }
12311
- [Symbol.iterator]() {
12312
- return Object.entries(this.toJSON())[Symbol.iterator]();
12313
- }
12314
- toString() {
12315
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12316
- }
12317
- getSetCookie() {
12318
- return this.get("set-cookie") || [];
12319
- }
12320
- get [Symbol.toStringTag]() {
12321
- return "AxiosHeaders";
12322
- }
12323
- static from(thing) {
12324
- return thing instanceof this ? thing : new this(thing);
12325
- }
12326
- static concat(first, ...targets) {
12327
- const computed = new this(first);
12328
- targets.forEach((target) => computed.set(target));
12329
- return computed;
12330
- }
12331
- static accessor(header) {
12332
- const internals = this[$internals] = this[$internals] = {
12333
- accessors: {}
12334
- };
12335
- const accessors = internals.accessors;
12336
- const prototype2 = this.prototype;
12337
- function defineAccessor(_header) {
12338
- const lHeader = normalizeHeader(_header);
12339
- if (!accessors[lHeader]) {
12340
- buildAccessors(prototype2, _header);
12341
- accessors[lHeader] = true;
12342
- }
12343
- }
12344
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
12345
- return this;
12346
- }
12347
- };
12348
- AxiosHeaders.accessor([
12349
- "Content-Type",
12350
- "Content-Length",
12351
- "Accept",
12352
- "Accept-Encoding",
12353
- "User-Agent",
12354
- "Authorization"
12355
- ]);
12356
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12357
- let mapped = key[0].toUpperCase() + key.slice(1);
12358
- return {
12359
- get: () => value,
12360
- set(headerValue) {
12361
- this[mapped] = headerValue;
12362
- }
12363
- };
12364
- });
12365
- utils_default.freezeMethods(AxiosHeaders);
12366
- var AxiosHeaders_default = AxiosHeaders;
12367
-
12368
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12369
- var REDACTED = "[REDACTED ****]";
12370
- function hasOwnOrPrototypeToJSON(source) {
12371
- if (utils_default.hasOwnProp(source, "toJSON")) {
12372
- return true;
12373
- }
12374
- let prototype2 = Object.getPrototypeOf(source);
12375
- while (prototype2 && prototype2 !== Object.prototype) {
12376
- if (utils_default.hasOwnProp(prototype2, "toJSON")) {
12377
- return true;
12378
- }
12379
- prototype2 = Object.getPrototypeOf(prototype2);
12380
- }
12381
- return false;
12382
- }
12383
- function redactConfig(config, redactKeys) {
12384
- const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
12385
- const seen = [];
12386
- const visit = (source) => {
12387
- if (source === null || typeof source !== "object") return source;
12388
- if (utils_default.isBuffer(source)) return source;
12389
- if (seen.indexOf(source) !== -1) return void 0;
12390
- if (source instanceof AxiosHeaders_default) {
12391
- source = source.toJSON();
12392
- }
12393
- seen.push(source);
12394
- let result;
12395
- if (utils_default.isArray(source)) {
12396
- result = [];
12397
- source.forEach((v, i) => {
12398
- const reducedValue = visit(v);
12399
- if (!utils_default.isUndefined(reducedValue)) {
12400
- result[i] = reducedValue;
12401
- }
12402
- });
12403
- } else {
12404
- if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
12405
- seen.pop();
12406
- return source;
12407
- }
12408
- result = /* @__PURE__ */ Object.create(null);
12409
- for (const [key, value] of Object.entries(source)) {
12410
- const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
12411
- if (!utils_default.isUndefined(reducedValue)) {
12412
- result[key] = reducedValue;
12413
- }
12414
- }
12415
- }
12416
- seen.pop();
12417
- return result;
12418
- };
12419
- return visit(config);
12420
- }
12421
- var AxiosError = class _AxiosError extends Error {
12422
- static from(error, code, config, request, response, customProps) {
12423
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12424
- axiosError.cause = error;
12425
- axiosError.name = error.name;
12426
- if (error.status != null && axiosError.status == null) {
12427
- axiosError.status = error.status;
12428
- }
12429
- customProps && Object.assign(axiosError, customProps);
12430
- return axiosError;
12431
- }
12432
- /**
12433
- * Create an Error with the specified message, config, error code, request and response.
12434
- *
12435
- * @param {string} message The error message.
12436
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
12437
- * @param {Object} [config] The config.
12438
- * @param {Object} [request] The request.
12439
- * @param {Object} [response] The response.
12440
- *
12441
- * @returns {Error} The created error.
12442
- */
12443
- constructor(message, code, config, request, response) {
12444
- super(message);
12445
- Object.defineProperty(this, "message", {
12446
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
12447
- // this data descriptor into an accessor descriptor on the way in.
12448
- __proto__: null,
12449
- value: message,
12450
- enumerable: true,
12451
- writable: true,
12452
- configurable: true
12453
- });
12454
- this.name = "AxiosError";
12455
- this.isAxiosError = true;
12456
- code && (this.code = code);
12457
- config && (this.config = config);
12458
- request && (this.request = request);
12459
- if (response) {
12460
- this.response = response;
12461
- this.status = response.status;
12462
- }
12463
- }
12464
- toJSON() {
12465
- const config = this.config;
12466
- const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
12467
- const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
12468
- return {
12469
- // Standard
12470
- message: this.message,
12471
- name: this.name,
12472
- // Microsoft
12473
- description: this.description,
12474
- number: this.number,
12475
- // Mozilla
12476
- fileName: this.fileName,
12477
- lineNumber: this.lineNumber,
12478
- columnNumber: this.columnNumber,
12479
- stack: this.stack,
12480
- // Axios
12481
- config: serializedConfig,
12482
- code: this.code,
12483
- status: this.status
12484
- };
12485
- }
12486
- };
12487
- AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
12488
- AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
12489
- AxiosError.ECONNABORTED = "ECONNABORTED";
12490
- AxiosError.ETIMEDOUT = "ETIMEDOUT";
12491
- AxiosError.ECONNREFUSED = "ECONNREFUSED";
12492
- AxiosError.ERR_NETWORK = "ERR_NETWORK";
12493
- AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
12494
- AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
12495
- AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
12496
- AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
12497
- AxiosError.ERR_CANCELED = "ERR_CANCELED";
12498
- AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
12499
- AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12500
- AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12501
- var AxiosError_default = AxiosError;
12502
-
12503
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
12504
- var import_form_data = __toESM(require_form_data(), 1);
12505
- var FormData_default = import_form_data.default;
12506
-
12507
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
12508
- function isVisitable(thing) {
12509
- return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12510
- }
12511
- function removeBrackets(key) {
12512
- return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
12513
- }
12514
- function renderKey(path, key, dots) {
12515
- if (!path) return key;
12516
- return path.concat(key).map(function each(token, i) {
12517
- token = removeBrackets(token);
12518
- return !dots && i ? "[" + token + "]" : token;
12519
- }).join(dots ? "." : "");
12520
- }
12521
- function isFlatArray(arr) {
12522
- return utils_default.isArray(arr) && !arr.some(isVisitable);
12523
- }
12524
- var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
12525
- return /^is[A-Z]/.test(prop);
12526
- });
12527
- function toFormData(obj, formData, options) {
12528
- if (!utils_default.isObject(obj)) {
12529
- throw new TypeError("target must be an object");
12530
- }
12531
- formData = formData || new (FormData_default || FormData)();
12532
- options = utils_default.toFlatObject(
12533
- options,
12534
- {
12535
- metaTokens: true,
12536
- dots: false,
12537
- indexes: false
12538
- },
12539
- false,
12540
- function defined(option, source) {
12541
- return !utils_default.isUndefined(source[option]);
12542
- }
12543
- );
12544
- const metaTokens = options.metaTokens;
12545
- const visitor = options.visitor || defaultVisitor;
12546
- const dots = options.dots;
12547
- const indexes = options.indexes;
12548
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
12549
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
12550
- const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
12551
- if (!utils_default.isFunction(visitor)) {
12552
- throw new TypeError("visitor must be a function");
12553
- }
12554
- function convertValue(value) {
12555
- if (value === null) return "";
12556
- if (utils_default.isDate(value)) {
12557
- return value.toISOString();
12558
- }
12559
- if (utils_default.isBoolean(value)) {
12560
- return value.toString();
12561
- }
12562
- if (!useBlob && utils_default.isBlob(value)) {
12563
- throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
12564
- }
12565
- if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
12566
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
12567
- }
12568
- return value;
12569
- }
12570
- function defaultVisitor(value, key, path) {
12571
- let arr = value;
12572
- if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
12573
- formData.append(renderKey(path, key, dots), convertValue(value));
12574
- return false;
12575
- }
12576
- if (value && !path && typeof value === "object") {
12577
- if (utils_default.endsWith(key, "{}")) {
12578
- key = metaTokens ? key : key.slice(0, -2);
12579
- value = JSON.stringify(value);
12580
- } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
12581
- key = removeBrackets(key);
12582
- arr.forEach(function each(el, index) {
12583
- !(utils_default.isUndefined(el) || el === null) && formData.append(
12584
- // eslint-disable-next-line no-nested-ternary
12585
- indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
12586
- convertValue(el)
12587
- );
12588
- });
12589
- return false;
12590
- }
12591
- }
12592
- if (isVisitable(value)) {
12593
- return true;
12594
- }
12595
- formData.append(renderKey(path, key, dots), convertValue(value));
12596
- return false;
12597
- }
12598
- const stack = [];
12599
- const exposedHelpers = Object.assign(predicates, {
12600
- defaultVisitor,
12601
- convertValue,
12602
- isVisitable
12603
- });
12604
- function build(value, path, depth = 0) {
12605
- if (utils_default.isUndefined(value)) return;
12606
- if (depth > maxDepth) {
12607
- throw new AxiosError_default(
12608
- "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
12609
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
12610
- );
12611
- }
12612
- if (stack.indexOf(value) !== -1) {
12613
- throw Error("Circular reference detected in " + path.join("."));
12614
- }
12615
- stack.push(value);
12616
- utils_default.forEach(value, function each(el, key) {
12617
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers);
12618
- if (result === true) {
12619
- build(el, path ? path.concat(key) : [key], depth + 1);
12620
- }
12621
- });
12622
- stack.pop();
12623
- }
12624
- if (!utils_default.isObject(obj)) {
12625
- throw new TypeError("data must be an object");
12626
- }
12627
- build(obj);
12628
- return formData;
12282
+ if (!utils_default.isObject(obj)) {
12283
+ throw new TypeError("data must be an object");
12284
+ }
12285
+ build(obj);
12286
+ return formData;
12629
12287
  }
12630
12288
  var toFormData_default = toFormData;
12631
12289
 
12632
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
12290
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
12633
12291
  function encode(str) {
12634
12292
  const charMap = {
12635
12293
  "!": "%21",
@@ -12637,9 +12295,10 @@ function encode(str) {
12637
12295
  "(": "%28",
12638
12296
  ")": "%29",
12639
12297
  "~": "%7E",
12640
- "%20": "+"
12298
+ "%20": "+",
12299
+ "%00": "\0"
12641
12300
  };
12642
- return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
12301
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
12643
12302
  return charMap[match];
12644
12303
  });
12645
12304
  }
@@ -12661,7 +12320,7 @@ prototype.toString = function toString2(encoder) {
12661
12320
  };
12662
12321
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
12663
12322
 
12664
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
12323
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
12665
12324
  function encode2(val) {
12666
12325
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
12667
12326
  }
@@ -12690,7 +12349,7 @@ function buildURL(url2, params, options) {
12690
12349
  return url2;
12691
12350
  }
12692
12351
 
12693
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
12352
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
12694
12353
  var InterceptorManager = class {
12695
12354
  constructor() {
12696
12355
  this.handlers = [];
@@ -12755,7 +12414,7 @@ var InterceptorManager = class {
12755
12414
  };
12756
12415
  var InterceptorManager_default = InterceptorManager;
12757
12416
 
12758
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
12417
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
12759
12418
  var transitional_default = {
12760
12419
  silentJSONParsing: true,
12761
12420
  forcedJSONParsing: true,
@@ -12763,14 +12422,14 @@ var transitional_default = {
12763
12422
  legacyInterceptorReqResOrdering: true
12764
12423
  };
12765
12424
 
12766
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12425
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12767
12426
  import crypto from "crypto";
12768
12427
 
12769
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12428
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12770
12429
  import url from "url";
12771
12430
  var URLSearchParams_default = url.URLSearchParams;
12772
12431
 
12773
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12432
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
12774
12433
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12775
12434
  var DIGIT = "0123456789";
12776
12435
  var ALPHABET = {
@@ -12800,7 +12459,7 @@ var node_default = {
12800
12459
  protocols: ["http", "https", "file", "data"]
12801
12460
  };
12802
12461
 
12803
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
12462
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
12804
12463
  var utils_exports = {};
12805
12464
  __export(utils_exports, {
12806
12465
  hasBrowserEnv: () => hasBrowserEnv,
@@ -12818,13 +12477,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
12818
12477
  })();
12819
12478
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
12820
12479
 
12821
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/platform/index.js
12480
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/platform/index.js
12822
12481
  var platform_default = {
12823
12482
  ...utils_exports,
12824
12483
  ...node_default
12825
12484
  };
12826
12485
 
12827
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
12486
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
12828
12487
  function toURLEncodedForm(data, options) {
12829
12488
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
12830
12489
  visitor: function(value, key, path, helpers) {
@@ -12838,7 +12497,7 @@ function toURLEncodedForm(data, options) {
12838
12497
  });
12839
12498
  }
12840
12499
 
12841
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
12500
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
12842
12501
  function parsePropPath(name) {
12843
12502
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
12844
12503
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -12865,150 +12524,416 @@ function formDataToJSON(formData) {
12865
12524
  name = !name && utils_default.isArray(target) ? target.length : name;
12866
12525
  if (isLast) {
12867
12526
  if (utils_default.hasOwnProp(target, name)) {
12868
- target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
12527
+ target[name] = [target[name], value];
12869
12528
  } else {
12870
12529
  target[name] = value;
12871
12530
  }
12872
- return !isNumericKey;
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);
12873
12791
  }
12874
- if (!target[name] || !utils_default.isObject(target[name])) {
12875
- target[name] = [];
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
+ }
12876
12814
  }
12877
- const result = buildPath(path, value, target[name], index);
12878
- if (result && utils_default.isArray(target[name])) {
12879
- target[name] = arrayToObject(target[name]);
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)));
12880
12821
  }
12881
- return !isNumericKey;
12822
+ return false;
12882
12823
  }
12883
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
12884
- const obj = {};
12885
- utils_default.forEachEntry(formData, (name, value) => {
12886
- buildPath(parsePropPath(name), value, obj, 0);
12887
- });
12888
- return obj;
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
+ }
12835
+ }
12836
+ }
12837
+ if (utils_default.isArray(header)) {
12838
+ header.forEach(deleteHeader);
12839
+ } else {
12840
+ deleteHeader(header);
12841
+ }
12842
+ return deleted;
12889
12843
  }
12890
- return null;
12891
- }
12892
- var formDataToJSON_default = formDataToJSON;
12893
-
12894
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/defaults/index.js
12895
- var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
12896
- function stringifySafely(rawValue, parser, encoder) {
12897
- if (utils_default.isString(rawValue)) {
12898
- try {
12899
- (parser || JSON.parse)(rawValue);
12900
- return utils_default.trim(rawValue);
12901
- } catch (e) {
12902
- if (e.name !== "SyntaxError") {
12903
- throw e;
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;
12904
12853
  }
12905
12854
  }
12855
+ return deleted;
12906
12856
  }
12907
- return (encoder || JSON.stringify)(rawValue);
12908
- }
12909
- var defaults = {
12910
- transitional: transitional_default,
12911
- adapter: ["xhr", "http", "fetch"],
12912
- transformRequest: [
12913
- function transformRequest(data, headers) {
12914
- const contentType = headers.getContentType() || "";
12915
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
12916
- const isObjectPayload = utils_default.isObject(data);
12917
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
12918
- data = new FormData(data);
12919
- }
12920
- const isFormData2 = utils_default.isFormData(data);
12921
- if (isFormData2) {
12922
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
12923
- }
12924
- 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)) {
12925
- return data;
12926
- }
12927
- if (utils_default.isArrayBufferView(data)) {
12928
- return data.buffer;
12929
- }
12930
- if (utils_default.isURLSearchParams(data)) {
12931
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
12932
- return data.toString();
12933
- }
12934
- let isFileList2;
12935
- if (isObjectPayload) {
12936
- const formSerializer = own(this, "formSerializer");
12937
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
12938
- return toURLEncodedForm(data, formSerializer).toString();
12939
- }
12940
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
12941
- const env = own(this, "env");
12942
- const _FormData = env && env.FormData;
12943
- return toFormData_default(
12944
- isFileList2 ? { "files[]": data } : data,
12945
- _FormData && new _FormData(),
12946
- formSerializer
12947
- );
12948
- }
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;
12949
12866
  }
12950
- if (isObjectPayload || hasJSONContentType) {
12951
- headers.setContentType("application/json", false);
12952
- return stringifySafely(data);
12867
+ const normalized = format ? formatHeader(header) : String(header).trim();
12868
+ if (normalized !== header) {
12869
+ delete self2[header];
12953
12870
  }
12954
- return data;
12955
- }
12956
- ],
12957
- transformResponse: [
12958
- function transformResponse(data) {
12959
- const transitional2 = own(this, "transitional") || defaults.transitional;
12960
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
12961
- const responseType = own(this, "responseType");
12962
- const JSONRequested = responseType === "json";
12963
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
12964
- return data;
12965
- }
12966
- if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
12967
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
12968
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
12969
- try {
12970
- return JSON.parse(data, own(this, "parseReviver"));
12971
- } catch (e) {
12972
- if (strictJSONParsing) {
12973
- if (e.name === "SyntaxError") {
12974
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
12975
- }
12976
- throw e;
12977
- }
12978
- }
12871
+ self2[normalized] = normalizeValue(value);
12872
+ headers[normalized] = true;
12873
+ });
12874
+ return this;
12875
+ }
12876
+ concat(...targets) {
12877
+ return this.constructor.concat(this, ...targets);
12878
+ }
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);
12883
+ });
12884
+ return obj;
12885
+ }
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;
12905
+ }
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;
12979
12917
  }
12980
- return data;
12981
- }
12982
- ],
12983
- /**
12984
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
12985
- * timeout is not created.
12986
- */
12987
- timeout: 0,
12988
- xsrfCookieName: "XSRF-TOKEN",
12989
- xsrfHeaderName: "X-XSRF-TOKEN",
12990
- maxContentLength: -1,
12991
- maxBodyLength: -1,
12992
- env: {
12993
- FormData: platform_default.classes.FormData,
12994
- Blob: platform_default.classes.Blob
12995
- },
12996
- validateStatus: function validateStatus(status) {
12997
- return status >= 200 && status < 300;
12998
- },
12999
- headers: {
13000
- common: {
13001
- Accept: "application/json, text/plain, */*",
13002
- "Content-Type": void 0
13003
12918
  }
12919
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
12920
+ return this;
13004
12921
  }
13005
12922
  };
13006
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13007
- defaults.headers[method] = {};
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
+ };
13008
12932
  });
13009
- var defaults_default = defaults;
12933
+ utils_default.freezeMethods(AxiosHeaders);
12934
+ var AxiosHeaders_default = AxiosHeaders;
13010
12935
 
13011
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/transformData.js
12936
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13012
12937
  function transformData(fns, response) {
13013
12938
  const config = this || defaults_default;
13014
12939
  const context = response || config;
@@ -13021,12 +12946,12 @@ function transformData(fns, response) {
13021
12946
  return data;
13022
12947
  }
13023
12948
 
13024
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
12949
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13025
12950
  function isCancel(value) {
13026
12951
  return !!(value && value.__CANCEL__);
13027
12952
  }
13028
12953
 
13029
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
12954
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13030
12955
  var CanceledError = class extends AxiosError_default {
13031
12956
  /**
13032
12957
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13045,7 +12970,7 @@ var CanceledError = class extends AxiosError_default {
13045
12970
  };
13046
12971
  var CanceledError_default = CanceledError;
13047
12972
 
13048
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/settle.js
12973
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/settle.js
13049
12974
  function settle(resolve, reject, response) {
13050
12975
  const validateStatus2 = response.config.validateStatus;
13051
12976
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13053,7 +12978,7 @@ function settle(resolve, reject, response) {
13053
12978
  } else {
13054
12979
  reject(new AxiosError_default(
13055
12980
  "Request failed with status code " + response.status,
13056
- response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
12981
+ [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
13057
12982
  response.config,
13058
12983
  response.request,
13059
12984
  response
@@ -13061,7 +12986,7 @@ function settle(resolve, reject, response) {
13061
12986
  }
13062
12987
  }
13063
12988
 
13064
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
12989
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13065
12990
  function isAbsoluteURL(url2) {
13066
12991
  if (typeof url2 !== "string") {
13067
12992
  return false;
@@ -13069,106 +12994,39 @@ function isAbsoluteURL(url2) {
13069
12994
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13070
12995
  }
13071
12996
 
13072
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
12997
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13073
12998
  function combineURLs(baseURL, relativeURL) {
13074
12999
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13075
13000
  }
13076
13001
 
13077
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13002
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13078
13003
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13079
13004
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13080
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13005
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
13081
13006
  return combineURLs(baseURL, requestedURL);
13082
13007
  }
13083
13008
  return requestedURL;
13084
13009
  }
13085
13010
 
13086
- // ../../node_modules/.pnpm/proxy-from-env@2.1.0/node_modules/proxy-from-env/index.js
13087
- var DEFAULT_PORTS = {
13088
- ftp: 21,
13089
- gopher: 70,
13090
- http: 80,
13091
- https: 443,
13092
- ws: 80,
13093
- wss: 443
13094
- };
13095
- function parseUrl(urlString) {
13096
- try {
13097
- return new URL(urlString);
13098
- } catch {
13099
- return null;
13100
- }
13101
- }
13102
- function getProxyForUrl(url2) {
13103
- var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
13104
- var proto = parsedUrl.protocol;
13105
- var hostname = parsedUrl.host;
13106
- var port = parsedUrl.port;
13107
- if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
13108
- return "";
13109
- }
13110
- proto = proto.split(":", 1)[0];
13111
- hostname = hostname.replace(/:\d*$/, "");
13112
- port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
13113
- if (!shouldProxy(hostname, port)) {
13114
- return "";
13115
- }
13116
- var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
13117
- if (proxy && proxy.indexOf("://") === -1) {
13118
- proxy = proto + "://" + proxy;
13119
- }
13120
- return proxy;
13121
- }
13122
- function shouldProxy(hostname, port) {
13123
- var NO_PROXY = getEnv("no_proxy").toLowerCase();
13124
- if (!NO_PROXY) {
13125
- return true;
13126
- }
13127
- if (NO_PROXY === "*") {
13128
- return false;
13129
- }
13130
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
13131
- if (!proxy) {
13132
- return true;
13133
- }
13134
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
13135
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
13136
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
13137
- if (parsedProxyPort && parsedProxyPort !== port) {
13138
- return true;
13139
- }
13140
- if (!/^[.*]/.test(parsedProxyHostname)) {
13141
- return hostname !== parsedProxyHostname;
13142
- }
13143
- if (parsedProxyHostname.charAt(0) === "*") {
13144
- parsedProxyHostname = parsedProxyHostname.slice(1);
13145
- }
13146
- return !hostname.endsWith(parsedProxyHostname);
13147
- });
13148
- }
13149
- function getEnv(key) {
13150
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13151
- }
13152
-
13153
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
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);
13154
13013
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13155
13014
  import http from "http";
13156
13015
  import https from "https";
13157
13016
  import http2 from "http2";
13158
13017
  import util2 from "util";
13159
- import { resolve as resolvePath } from "path";
13160
13018
  import zlib from "zlib";
13161
13019
 
13162
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/env/data.js
13163
- var VERSION = "1.16.0";
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";
13164
13022
 
13165
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13023
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13166
13024
  function parseProtocol(url2) {
13167
- const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13025
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
13168
13026
  return match && match[1] || "";
13169
13027
  }
13170
13028
 
13171
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13029
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13172
13030
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
13173
13031
  function fromDataURI(uri, asBlob, options) {
13174
13032
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -13197,29 +13055,24 @@ function fromDataURI(uri, asBlob, options) {
13197
13055
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13198
13056
  }
13199
13057
 
13200
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13058
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13201
13059
  import stream3 from "stream";
13202
13060
 
13203
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13061
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13204
13062
  import stream from "stream";
13205
13063
  var kInternals = /* @__PURE__ */ Symbol("internals");
13206
13064
  var AxiosTransformStream = class extends stream.Transform {
13207
13065
  constructor(options) {
13208
- options = utils_default.toFlatObject(
13209
- options,
13210
- {
13211
- maxRate: 0,
13212
- chunkSize: 64 * 1024,
13213
- minChunkSize: 100,
13214
- timeWindow: 500,
13215
- ticksRate: 2,
13216
- samplesCount: 15
13217
- },
13218
- null,
13219
- (prop, source) => {
13220
- return !utils_default.isUndefined(source[prop]);
13221
- }
13222
- );
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
+ });
13223
13076
  super({
13224
13077
  readableHighWaterMark: options.chunkSize
13225
13078
  });
@@ -13302,12 +13155,9 @@ var AxiosTransformStream = class extends stream.Transform {
13302
13155
  chunkRemainder = _chunk.subarray(maxChunkSize);
13303
13156
  _chunk = _chunk.subarray(0, maxChunkSize);
13304
13157
  }
13305
- pushChunk(
13306
- _chunk,
13307
- chunkRemainder ? () => {
13308
- process.nextTick(_callback, null, chunkRemainder);
13309
- } : _callback
13310
- );
13158
+ pushChunk(_chunk, chunkRemainder ? () => {
13159
+ process.nextTick(_callback, null, chunkRemainder);
13160
+ } : _callback);
13311
13161
  };
13312
13162
  transformChunk(chunk, function transformNextChunk(err, _chunk) {
13313
13163
  if (err) {
@@ -13323,14 +13173,14 @@ var AxiosTransformStream = class extends stream.Transform {
13323
13173
  };
13324
13174
  var AxiosTransformStream_default = AxiosTransformStream;
13325
13175
 
13326
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13176
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13327
13177
  import { EventEmitter } from "events";
13328
13178
 
13329
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13179
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13330
13180
  import util from "util";
13331
13181
  import { Readable } from "stream";
13332
13182
 
13333
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
13183
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
13334
13184
  var { asyncIterator } = Symbol;
13335
13185
  var readBlob = async function* (blob) {
13336
13186
  if (blob.stream) {
@@ -13345,7 +13195,7 @@ var readBlob = async function* (blob) {
13345
13195
  };
13346
13196
  var readBlob_default = readBlob;
13347
13197
 
13348
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13198
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
13349
13199
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13350
13200
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13351
13201
  var CRLF = "\r\n";
@@ -13359,8 +13209,7 @@ var FormDataPart = class {
13359
13209
  if (isStringValue) {
13360
13210
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
13361
13211
  } else {
13362
- const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
13363
- headers += `Content-Type: ${safeType}${CRLF}`;
13212
+ headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
13364
13213
  }
13365
13214
  this.headers = textEncoder.encode(headers + CRLF);
13366
13215
  this.contentLength = isStringValue ? value.byteLength : value.size;
@@ -13379,14 +13228,11 @@ var FormDataPart = class {
13379
13228
  yield CRLF_BYTES;
13380
13229
  }
13381
13230
  static escapeName(name) {
13382
- return String(name).replace(
13383
- /[\r\n"]/g,
13384
- (match) => ({
13385
- "\r": "%0D",
13386
- "\n": "%0A",
13387
- '"': "%22"
13388
- })[match]
13389
- );
13231
+ return String(name).replace(/[\r\n"]/g, (match) => ({
13232
+ "\r": "%0D",
13233
+ "\n": "%0A",
13234
+ '"': "%22"
13235
+ })[match]);
13390
13236
  }
13391
13237
  };
13392
13238
  var formDataToStream = (form, headersHandler, options) => {
@@ -13399,7 +13245,7 @@ var formDataToStream = (form, headersHandler, options) => {
13399
13245
  throw TypeError("FormData instance required");
13400
13246
  }
13401
13247
  if (boundary.length < 1 || boundary.length > 70) {
13402
- throw Error("boundary must be 1-70 characters long");
13248
+ throw Error("boundary must be 10-70 characters long");
13403
13249
  }
13404
13250
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13405
13251
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13418,19 +13264,17 @@ var formDataToStream = (form, headersHandler, options) => {
13418
13264
  computedHeaders["Content-Length"] = contentLength;
13419
13265
  }
13420
13266
  headersHandler && headersHandler(computedHeaders);
13421
- return Readable.from(
13422
- (async function* () {
13423
- for (const part of parts) {
13424
- yield boundaryBytes;
13425
- yield* part.encode();
13426
- }
13427
- yield footerBytes;
13428
- })()
13429
- );
13267
+ return Readable.from((async function* () {
13268
+ for (const part of parts) {
13269
+ yield boundaryBytes;
13270
+ yield* part.encode();
13271
+ }
13272
+ yield footerBytes;
13273
+ })());
13430
13274
  };
13431
13275
  var formDataToStream_default = formDataToStream;
13432
13276
 
13433
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13277
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13434
13278
  import stream2 from "stream";
13435
13279
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13436
13280
  __transform(chunk, encoding, callback) {
@@ -13452,144 +13296,22 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13452
13296
  };
13453
13297
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13454
13298
 
13455
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13299
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13456
13300
  var callbackify = (fn, reducer) => {
13457
13301
  return utils_default.isAsyncFn(fn) ? function(...args) {
13458
13302
  const cb = args.pop();
13459
13303
  fn.apply(this, args).then((value) => {
13460
13304
  try {
13461
13305
  reducer ? cb(null, ...reducer(value)) : cb(null, value);
13462
- } catch (err) {
13463
- cb(err);
13464
- }
13465
- }, cb);
13466
- } : fn;
13467
- };
13468
- var callbackify_default = callbackify;
13469
-
13470
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13471
- var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
13472
- var isIPv4Loopback = (host) => {
13473
- const parts = host.split(".");
13474
- if (parts.length !== 4) return false;
13475
- if (parts[0] !== "127") return false;
13476
- return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13477
- };
13478
- var isIPv6Loopback = (host) => {
13479
- if (host === "::1") return true;
13480
- const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
13481
- if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
13482
- const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
13483
- if (v4MappedHex) {
13484
- const high = parseInt(v4MappedHex[1], 16);
13485
- return high >= 32512 && high <= 32767;
13486
- }
13487
- const groups = host.split(":");
13488
- if (groups.length === 8) {
13489
- for (let i = 0; i < 7; i++) {
13490
- if (!/^0+$/.test(groups[i])) return false;
13491
- }
13492
- return /^0*1$/.test(groups[7]);
13493
- }
13494
- return false;
13495
- };
13496
- var isLoopback = (host) => {
13497
- if (!host) return false;
13498
- if (LOOPBACK_HOSTNAMES.has(host)) return true;
13499
- if (isIPv4Loopback(host)) return true;
13500
- return isIPv6Loopback(host);
13501
- };
13502
- var DEFAULT_PORTS2 = {
13503
- http: 80,
13504
- https: 443,
13505
- ws: 80,
13506
- wss: 443,
13507
- ftp: 21
13508
- };
13509
- var parseNoProxyEntry = (entry) => {
13510
- let entryHost = entry;
13511
- let entryPort = 0;
13512
- if (entryHost.charAt(0) === "[") {
13513
- const bracketIndex = entryHost.indexOf("]");
13514
- if (bracketIndex !== -1) {
13515
- const host = entryHost.slice(1, bracketIndex);
13516
- const rest = entryHost.slice(bracketIndex + 1);
13517
- if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
13518
- entryPort = Number.parseInt(rest.slice(1), 10);
13519
- }
13520
- return [host, entryPort];
13521
- }
13522
- }
13523
- const firstColon = entryHost.indexOf(":");
13524
- const lastColon = entryHost.lastIndexOf(":");
13525
- if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
13526
- entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
13527
- entryHost = entryHost.slice(0, lastColon);
13528
- }
13529
- return [entryHost, entryPort];
13530
- };
13531
- var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
13532
- 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;
13533
- var unmapIPv4MappedIPv6 = (host) => {
13534
- if (typeof host !== "string" || host.indexOf(":") === -1) return host;
13535
- const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
13536
- if (dotted) return dotted[1];
13537
- const hex = host.match(IPV4_MAPPED_HEX_RE);
13538
- if (hex) {
13539
- const high = parseInt(hex[1], 16);
13540
- const low = parseInt(hex[2], 16);
13541
- return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
13542
- }
13543
- return host;
13544
- };
13545
- var normalizeNoProxyHost = (hostname) => {
13546
- if (!hostname) {
13547
- return hostname;
13548
- }
13549
- if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
13550
- hostname = hostname.slice(1, -1);
13551
- }
13552
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
13553
- };
13554
- function shouldBypassProxy(location) {
13555
- let parsed;
13556
- try {
13557
- parsed = new URL(location);
13558
- } catch (_err) {
13559
- return false;
13560
- }
13561
- const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
13562
- if (!noProxy) {
13563
- return false;
13564
- }
13565
- if (noProxy === "*") {
13566
- return true;
13567
- }
13568
- const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
13569
- const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
13570
- return noProxy.split(/[\s,]+/).some((entry) => {
13571
- if (!entry) {
13572
- return false;
13573
- }
13574
- let [entryHost, entryPort] = parseNoProxyEntry(entry);
13575
- entryHost = normalizeNoProxyHost(entryHost);
13576
- if (!entryHost) {
13577
- return false;
13578
- }
13579
- if (entryPort && entryPort !== port) {
13580
- return false;
13581
- }
13582
- if (entryHost.charAt(0) === "*") {
13583
- entryHost = entryHost.slice(1);
13584
- }
13585
- if (entryHost.charAt(0) === ".") {
13586
- return hostname.endsWith(entryHost);
13587
- }
13588
- return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
13589
- });
13590
- }
13306
+ } catch (err) {
13307
+ cb(err);
13308
+ }
13309
+ }, cb);
13310
+ } : fn;
13311
+ };
13312
+ var callbackify_default = callbackify;
13591
13313
 
13592
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13314
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
13593
13315
  function speedometer(samplesCount, min) {
13594
13316
  samplesCount = samplesCount || 10;
13595
13317
  const bytes = new Array(samplesCount);
@@ -13625,7 +13347,7 @@ function speedometer(samplesCount, min) {
13625
13347
  }
13626
13348
  var speedometer_default = speedometer;
13627
13349
 
13628
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
13350
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
13629
13351
  function throttle(fn, freq) {
13630
13352
  let timestamp = 0;
13631
13353
  let threshold = 1e3 / freq;
@@ -13660,24 +13382,24 @@ function throttle(fn, freq) {
13660
13382
  }
13661
13383
  var throttle_default = throttle;
13662
13384
 
13663
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
13385
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
13664
13386
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13665
13387
  let bytesNotified = 0;
13666
13388
  const _speedometer = speedometer_default(50, 250);
13667
13389
  return throttle_default((e) => {
13668
- const rawLoaded = e.loaded;
13390
+ const loaded = e.loaded;
13669
13391
  const total = e.lengthComputable ? e.total : void 0;
13670
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
13671
- const progressBytes = Math.max(0, loaded - bytesNotified);
13392
+ const progressBytes = loaded - bytesNotified;
13672
13393
  const rate = _speedometer(progressBytes);
13673
- bytesNotified = Math.max(bytesNotified, loaded);
13394
+ const inRange = loaded <= total;
13395
+ bytesNotified = loaded;
13674
13396
  const data = {
13675
13397
  loaded,
13676
13398
  total,
13677
13399
  progress: total ? loaded / total : void 0,
13678
13400
  bytes: progressBytes,
13679
13401
  rate: rate ? rate : void 0,
13680
- estimated: rate && total ? (total - loaded) / rate : void 0,
13402
+ estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13681
13403
  event: e,
13682
13404
  lengthComputable: total != null,
13683
13405
  [isDownloadStream ? "download" : "upload"]: true
@@ -13687,18 +13409,15 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13687
13409
  };
13688
13410
  var progressEventDecorator = (total, throttled) => {
13689
13411
  const lengthComputable = total != null;
13690
- return [
13691
- (loaded) => throttled[0]({
13692
- lengthComputable,
13693
- total,
13694
- loaded
13695
- }),
13696
- throttled[1]
13697
- ];
13412
+ return [(loaded) => throttled[0]({
13413
+ lengthComputable,
13414
+ total,
13415
+ loaded
13416
+ }), throttled[1]];
13698
13417
  };
13699
13418
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
13700
13419
 
13701
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
13420
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
13702
13421
  function estimateDataURLDecodedBytes(url2) {
13703
13422
  if (!url2 || typeof url2 !== "string") return 0;
13704
13423
  if (!url2.startsWith("data:")) return 0;
@@ -13743,35 +13462,13 @@ function estimateDataURLDecodedBytes(url2) {
13743
13462
  }
13744
13463
  }
13745
13464
  const groups = Math.floor(effectiveLen / 4);
13746
- const bytes2 = groups * 3 - (pad || 0);
13747
- return bytes2 > 0 ? bytes2 : 0;
13748
- }
13749
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
13750
- return Buffer.byteLength(body, "utf8");
13751
- }
13752
- let bytes = 0;
13753
- for (let i = 0, len = body.length; i < len; i++) {
13754
- const c = body.charCodeAt(i);
13755
- if (c < 128) {
13756
- bytes += 1;
13757
- } else if (c < 2048) {
13758
- bytes += 2;
13759
- } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
13760
- const next = body.charCodeAt(i + 1);
13761
- if (next >= 56320 && next <= 57343) {
13762
- bytes += 4;
13763
- i++;
13764
- } else {
13765
- bytes += 3;
13766
- }
13767
- } else {
13768
- bytes += 3;
13769
- }
13465
+ const bytes = groups * 3 - (pad || 0);
13466
+ return bytes > 0 ? bytes : 0;
13770
13467
  }
13771
- return bytes;
13468
+ return Buffer.byteLength(body, "utf8");
13772
13469
  }
13773
13470
 
13774
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13471
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13775
13472
  var zlibOptions = {
13776
13473
  flush: zlib.constants.Z_SYNC_FLUSH,
13777
13474
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -13783,33 +13480,9 @@ var brotliOptions = {
13783
13480
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
13784
13481
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
13785
13482
  var isHttps = /https:?/;
13786
- var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
13787
- function setFormDataHeaders(headers, formHeaders, policy) {
13788
- if (policy !== "content-only") {
13789
- headers.set(formHeaders);
13790
- return;
13791
- }
13792
- Object.entries(formHeaders).forEach(([key, val]) => {
13793
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
13794
- headers.set(key, val);
13795
- }
13796
- });
13797
- }
13798
- var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
13799
- var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
13800
13483
  var supportedProtocols = platform_default.protocols.map((protocol) => {
13801
13484
  return protocol + ":";
13802
13485
  });
13803
- var decodeURIComponentSafe = (value) => {
13804
- if (!utils_default.isString(value)) {
13805
- return value;
13806
- }
13807
- try {
13808
- return decodeURIComponent(value);
13809
- } catch (error) {
13810
- return value;
13811
- }
13812
- };
13813
13486
  var flushOnFinish = (stream4, [throttled, flush]) => {
13814
13487
  stream4.on("end", flush).on("error", flush);
13815
13488
  return throttled;
@@ -13819,12 +13492,9 @@ var Http2Sessions = class {
13819
13492
  this.sessions = /* @__PURE__ */ Object.create(null);
13820
13493
  }
13821
13494
  getSession(authority, options) {
13822
- options = Object.assign(
13823
- {
13824
- sessionTimeout: 1e3
13825
- },
13826
- options
13827
- );
13495
+ options = Object.assign({
13496
+ sessionTimeout: 1e3
13497
+ }, options);
13828
13498
  let authoritySessions = this.sessions[authority];
13829
13499
  if (authoritySessions) {
13830
13500
  let len = authoritySessions.length;
@@ -13850,9 +13520,6 @@ var Http2Sessions = class {
13850
13520
  } else {
13851
13521
  entries.splice(i, 1);
13852
13522
  }
13853
- if (!session.closed) {
13854
- session.close();
13855
- }
13856
13523
  return;
13857
13524
  }
13858
13525
  }
@@ -13881,81 +13548,57 @@ var Http2Sessions = class {
13881
13548
  };
13882
13549
  }
13883
13550
  session.once("close", removeSession);
13884
- let entry = [session, options];
13551
+ let entry = [
13552
+ session,
13553
+ options
13554
+ ];
13885
13555
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
13886
13556
  return session;
13887
13557
  }
13888
13558
  };
13889
13559
  var http2Sessions = new Http2Sessions();
13890
- function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
13560
+ function dispatchBeforeRedirect(options, responseDetails) {
13891
13561
  if (options.beforeRedirects.proxy) {
13892
13562
  options.beforeRedirects.proxy(options);
13893
13563
  }
13894
13564
  if (options.beforeRedirects.config) {
13895
- options.beforeRedirects.config(options, responseDetails, requestDetails);
13565
+ options.beforeRedirects.config(options, responseDetails);
13896
13566
  }
13897
13567
  }
13898
- function setProxy(options, configProxy, location, isRedirect) {
13568
+ function setProxy(options, configProxy, location) {
13899
13569
  let proxy = configProxy;
13900
13570
  if (!proxy && proxy !== false) {
13901
- const proxyUrl = getProxyForUrl(location);
13571
+ const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
13902
13572
  if (proxyUrl) {
13903
- if (!shouldBypassProxy(location)) {
13904
- proxy = new URL(proxyUrl);
13905
- }
13906
- }
13907
- }
13908
- if (isRedirect && options.headers) {
13909
- for (const name of Object.keys(options.headers)) {
13910
- if (name.toLowerCase() === "proxy-authorization") {
13911
- delete options.headers[name];
13912
- }
13573
+ proxy = new URL(proxyUrl);
13913
13574
  }
13914
13575
  }
13915
13576
  if (proxy) {
13916
- const isProxyURL = proxy instanceof URL;
13917
- const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
13918
- const proxyUsername = readProxyField("username");
13919
- const proxyPassword = readProxyField("password");
13920
- let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
13921
- if (proxyUsername) {
13922
- proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
13923
- }
13924
- if (proxyAuth) {
13925
- const authIsObject = typeof proxyAuth === "object";
13926
- const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
13927
- const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
13928
- const validProxyAuth = Boolean(authUsername || authPassword);
13577
+ if (proxy.username) {
13578
+ proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
13579
+ }
13580
+ if (proxy.auth) {
13581
+ const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
13929
13582
  if (validProxyAuth) {
13930
- proxyAuth = (authUsername || "") + ":" + (authPassword || "");
13931
- } else if (authIsObject) {
13583
+ proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
13584
+ } else if (typeof proxy.auth === "object") {
13932
13585
  throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
13933
13586
  }
13934
- const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
13587
+ const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
13935
13588
  options.headers["Proxy-Authorization"] = "Basic " + base64;
13936
13589
  }
13937
- let hasUserHostHeader = false;
13938
- for (const name of Object.keys(options.headers)) {
13939
- if (name.toLowerCase() === "host") {
13940
- hasUserHostHeader = true;
13941
- break;
13942
- }
13943
- }
13944
- if (!hasUserHostHeader) {
13945
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
13946
- }
13947
- const proxyHost = readProxyField("hostname") || readProxyField("host");
13590
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
13591
+ const proxyHost = proxy.hostname || proxy.host;
13948
13592
  options.hostname = proxyHost;
13949
13593
  options.host = proxyHost;
13950
- options.port = readProxyField("port");
13594
+ options.port = proxy.port;
13951
13595
  options.path = location;
13952
- const proxyProtocol = readProxyField("protocol");
13953
- if (proxyProtocol) {
13954
- options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
13596
+ if (proxy.protocol) {
13597
+ options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
13955
13598
  }
13956
13599
  }
13957
13600
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
13958
- setProxy(redirectOptions, configProxy, redirectOptions.href, true);
13601
+ setProxy(redirectOptions, configProxy, redirectOptions.href);
13959
13602
  };
13960
13603
  }
13961
13604
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -13994,7 +13637,12 @@ var http2Transport = {
13994
13637
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
13995
13638
  const { http2Options, headers } = options;
13996
13639
  const session = http2Sessions.getSession(authority, http2Options);
13997
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
13640
+ const {
13641
+ HTTP2_HEADER_SCHEME,
13642
+ HTTP2_HEADER_METHOD,
13643
+ HTTP2_HEADER_PATH,
13644
+ HTTP2_HEADER_STATUS
13645
+ } = http2.constants;
13998
13646
  const http2Headers = {
13999
13647
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
14000
13648
  [HTTP2_HEADER_METHOD]: options.method,
@@ -14018,20 +13666,12 @@ var http2Transport = {
14018
13666
  };
14019
13667
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14020
13668
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
14021
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
14022
- let data = own2("data");
14023
- let lookup = own2("lookup");
14024
- let family = own2("family");
14025
- let httpVersion = own2("httpVersion");
14026
- if (httpVersion === void 0) httpVersion = 1;
14027
- let http2Options = own2("http2Options");
14028
- const responseType = own2("responseType");
14029
- const responseEncoding = own2("responseEncoding");
13669
+ let { data, lookup, family, httpVersion = 1, http2Options } = config;
13670
+ const { responseType, responseEncoding } = config;
14030
13671
  const method = config.method.toUpperCase();
14031
13672
  let isDone;
14032
13673
  let rejected = false;
14033
13674
  let req;
14034
- let connectPhaseTimer;
14035
13675
  httpVersion = +httpVersion;
14036
13676
  if (Number.isNaN(httpVersion)) {
14037
13677
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -14055,36 +13695,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14055
13695
  const abortEmitter = new EventEmitter();
14056
13696
  function abort(reason) {
14057
13697
  try {
14058
- abortEmitter.emit(
14059
- "abort",
14060
- !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14061
- );
13698
+ abortEmitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
14062
13699
  } catch (err) {
14063
13700
  console.warn("emit error", err);
14064
13701
  }
14065
13702
  }
14066
- function clearConnectPhaseTimer() {
14067
- if (connectPhaseTimer) {
14068
- clearTimeout(connectPhaseTimer);
14069
- connectPhaseTimer = null;
14070
- }
14071
- }
14072
- function createTimeoutError() {
14073
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14074
- const transitional2 = config.transitional || transitional_default;
14075
- if (config.timeoutErrorMessage) {
14076
- timeoutErrorMessage = config.timeoutErrorMessage;
14077
- }
14078
- return new AxiosError_default(
14079
- timeoutErrorMessage,
14080
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14081
- config,
14082
- req
14083
- );
14084
- }
14085
13703
  abortEmitter.once("abort", reject);
14086
13704
  const onFinished = () => {
14087
- clearConnectPhaseTimer();
14088
13705
  if (config.cancelToken) {
14089
13706
  config.cancelToken.unsubscribe(abort);
14090
13707
  }
@@ -14101,7 +13718,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14101
13718
  }
14102
13719
  onDone((response, isRejected) => {
14103
13720
  isDone = true;
14104
- clearConnectPhaseTimer();
14105
13721
  if (isRejected) {
14106
13722
  rejected = true;
14107
13723
  onFinished();
@@ -14125,13 +13741,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14125
13741
  const dataUrl = String(config.url || fullPath || "");
14126
13742
  const estimated = estimateDataURLDecodedBytes(dataUrl);
14127
13743
  if (estimated > config.maxContentLength) {
14128
- return reject(
14129
- new AxiosError_default(
14130
- "maxContentLength size of " + config.maxContentLength + " exceeded",
14131
- AxiosError_default.ERR_BAD_RESPONSE,
14132
- config
14133
- )
14134
- );
13744
+ return reject(new AxiosError_default(
13745
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
13746
+ AxiosError_default.ERR_BAD_RESPONSE,
13747
+ config
13748
+ ));
14135
13749
  }
14136
13750
  }
14137
13751
  let convertedData;
@@ -14167,9 +13781,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14167
13781
  });
14168
13782
  }
14169
13783
  if (supportedProtocols.indexOf(protocol) === -1) {
14170
- return reject(
14171
- new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
14172
- );
13784
+ return reject(new AxiosError_default(
13785
+ "Unsupported protocol " + protocol,
13786
+ AxiosError_default.ERR_BAD_REQUEST,
13787
+ config
13788
+ ));
14173
13789
  }
14174
13790
  const headers = AxiosHeaders_default.from(config.headers).normalize();
14175
13791
  headers.set("User-Agent", "axios/" + VERSION, false);
@@ -14179,18 +13795,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14179
13795
  let maxDownloadRate = void 0;
14180
13796
  if (utils_default.isSpecCompliantForm(data)) {
14181
13797
  const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
14182
- data = formDataToStream_default(
14183
- data,
14184
- (formHeaders) => {
14185
- headers.set(formHeaders);
14186
- },
14187
- {
14188
- tag: `axios-${VERSION}-boundary`,
14189
- boundary: userBoundary && userBoundary[1] || void 0
14190
- }
14191
- );
14192
- } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
14193
- setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
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());
14194
13806
  if (!headers.hasContentLength()) {
14195
13807
  try {
14196
13808
  const knownLength = await util2.promisify(data.getLength).call(data);
@@ -14209,23 +13821,19 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14209
13821
  } else if (utils_default.isString(data)) {
14210
13822
  data = Buffer.from(data, "utf-8");
14211
13823
  } else {
14212
- return reject(
14213
- new AxiosError_default(
14214
- "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
14215
- AxiosError_default.ERR_BAD_REQUEST,
14216
- config
14217
- )
14218
- );
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
+ ));
14219
13829
  }
14220
13830
  headers.setContentLength(data.length, false);
14221
13831
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
14222
- return reject(
14223
- new AxiosError_default(
14224
- "Request body larger than maxBodyLength limit",
14225
- AxiosError_default.ERR_BAD_REQUEST,
14226
- config
14227
- )
14228
- );
13832
+ return reject(new AxiosError_default(
13833
+ "Request body larger than maxBodyLength limit",
13834
+ AxiosError_default.ERR_BAD_REQUEST,
13835
+ config
13836
+ ));
14229
13837
  }
14230
13838
  }
14231
13839
  const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
@@ -14239,36 +13847,26 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14239
13847
  if (!utils_default.isStream(data)) {
14240
13848
  data = stream3.Readable.from(data, { objectMode: false });
14241
13849
  }
14242
- data = stream3.pipeline(
14243
- [
14244
- data,
14245
- new AxiosTransformStream_default({
14246
- maxRate: utils_default.toFiniteNumber(maxUploadRate)
14247
- })
14248
- ],
14249
- utils_default.noop
14250
- );
14251
- onUploadProgress && data.on(
14252
- "progress",
14253
- flushOnFinish(
14254
- data,
14255
- progressEventDecorator(
14256
- contentLength,
14257
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
14258
- )
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)
14259
13858
  )
14260
- );
13859
+ ));
14261
13860
  }
14262
13861
  let auth = void 0;
14263
- const configAuth = own2("auth");
14264
- if (configAuth) {
14265
- const username = configAuth.username || "";
14266
- const password = configAuth.password || "";
13862
+ if (config.auth) {
13863
+ const username = config.auth.username || "";
13864
+ const password = config.auth.password || "";
14267
13865
  auth = username + ":" + password;
14268
13866
  }
14269
13867
  if (!auth && parsed.username) {
14270
- const urlUsername = decodeURIComponentSafe(parsed.username);
14271
- const urlPassword = decodeURIComponentSafe(parsed.password);
13868
+ const urlUsername = parsed.username;
13869
+ const urlPassword = parsed.password;
14272
13870
  auth = urlUsername + ":" + urlPassword;
14273
13871
  }
14274
13872
  auth && headers.delete("authorization");
@@ -14291,7 +13889,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14291
13889
  "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
14292
13890
  false
14293
13891
  );
14294
- const options = Object.assign(/* @__PURE__ */ Object.create(null), {
13892
+ const options = {
14295
13893
  path,
14296
13894
  method,
14297
13895
  headers: headers.toJSON(),
@@ -14300,62 +13898,33 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14300
13898
  protocol,
14301
13899
  family,
14302
13900
  beforeRedirect: dispatchBeforeRedirect,
14303
- beforeRedirects: /* @__PURE__ */ Object.create(null),
13901
+ beforeRedirects: {},
14304
13902
  http2Options
14305
- });
13903
+ };
14306
13904
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
14307
13905
  if (config.socketPath) {
14308
- if (typeof config.socketPath !== "string") {
14309
- return reject(
14310
- new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14311
- );
14312
- }
14313
- if (config.allowedSocketPaths != null) {
14314
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14315
- const resolvedSocket = resolvePath(config.socketPath);
14316
- const isAllowed = allowed.some(
14317
- (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14318
- );
14319
- if (!isAllowed) {
14320
- return reject(
14321
- new AxiosError_default(
14322
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
14323
- AxiosError_default.ERR_BAD_OPTION_VALUE,
14324
- config
14325
- )
14326
- );
14327
- }
14328
- }
14329
13906
  options.socketPath = config.socketPath;
14330
13907
  } else {
14331
13908
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
14332
13909
  options.port = parsed.port;
14333
- setProxy(
14334
- options,
14335
- config.proxy,
14336
- protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
14337
- );
13910
+ setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
14338
13911
  }
14339
13912
  let transport;
14340
- let isNativeTransport = false;
14341
13913
  const isHttpsRequest = isHttps.test(options.protocol);
14342
13914
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
14343
13915
  if (isHttp2) {
14344
13916
  transport = http2Transport;
14345
13917
  } else {
14346
- const configTransport = own2("transport");
14347
- if (configTransport) {
14348
- transport = configTransport;
13918
+ if (config.transport) {
13919
+ transport = config.transport;
14349
13920
  } else if (config.maxRedirects === 0) {
14350
13921
  transport = isHttpsRequest ? https : http;
14351
- isNativeTransport = true;
14352
13922
  } else {
14353
13923
  if (config.maxRedirects) {
14354
13924
  options.maxRedirects = config.maxRedirects;
14355
13925
  }
14356
- const configBeforeRedirect = own2("beforeRedirect");
14357
- if (configBeforeRedirect) {
14358
- options.beforeRedirects.config = configBeforeRedirect;
13926
+ if (config.beforeRedirect) {
13927
+ options.beforeRedirects.config = config.beforeRedirect;
14359
13928
  }
14360
13929
  transport = isHttpsRequest ? httpsFollow : httpFollow;
14361
13930
  }
@@ -14365,9 +13934,10 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14365
13934
  } else {
14366
13935
  options.maxBodyLength = Infinity;
14367
13936
  }
14368
- options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
13937
+ if (config.insecureHTTPParser) {
13938
+ options.insecureHTTPParser = config.insecureHTTPParser;
13939
+ }
14369
13940
  req = transport.request(options, function handleResponse(res) {
14370
- clearConnectPhaseTimer();
14371
13941
  if (req.destroyed) return;
14372
13942
  const streams = [res];
14373
13943
  const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
@@ -14375,16 +13945,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14375
13945
  const transformStream = new AxiosTransformStream_default({
14376
13946
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
14377
13947
  });
14378
- onDownloadProgress && transformStream.on(
14379
- "progress",
14380
- flushOnFinish(
14381
- transformStream,
14382
- progressEventDecorator(
14383
- responseLength,
14384
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
14385
- )
13948
+ onDownloadProgress && transformStream.on("progress", flushOnFinish(
13949
+ transformStream,
13950
+ progressEventDecorator(
13951
+ responseLength,
13952
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
14386
13953
  )
14387
- );
13954
+ ));
14388
13955
  streams.push(transformStream);
14389
13956
  }
14390
13957
  let responseStream = res;
@@ -14423,28 +13990,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14423
13990
  request: lastRequest
14424
13991
  };
14425
13992
  if (responseType === "stream") {
14426
- if (config.maxContentLength > -1) {
14427
- const limit = config.maxContentLength;
14428
- const source = responseStream;
14429
- async function* enforceMaxContentLength() {
14430
- let totalResponseBytes = 0;
14431
- for await (const chunk of source) {
14432
- totalResponseBytes += chunk.length;
14433
- if (totalResponseBytes > limit) {
14434
- throw new AxiosError_default(
14435
- "maxContentLength size of " + limit + " exceeded",
14436
- AxiosError_default.ERR_BAD_RESPONSE,
14437
- config,
14438
- lastRequest
14439
- );
14440
- }
14441
- yield chunk;
14442
- }
14443
- }
14444
- responseStream = stream3.Readable.from(enforceMaxContentLength(), {
14445
- objectMode: false
14446
- });
14447
- }
14448
13993
  response.data = responseStream;
14449
13994
  settle(resolve, reject, response);
14450
13995
  } else {
@@ -14456,14 +14001,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14456
14001
  if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
14457
14002
  rejected = true;
14458
14003
  responseStream.destroy();
14459
- abort(
14460
- new AxiosError_default(
14461
- "maxContentLength size of " + config.maxContentLength + " exceeded",
14462
- AxiosError_default.ERR_BAD_RESPONSE,
14463
- config,
14464
- lastRequest
14465
- )
14466
- );
14004
+ abort(new AxiosError_default(
14005
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
14006
+ AxiosError_default.ERR_BAD_RESPONSE,
14007
+ config,
14008
+ lastRequest
14009
+ ));
14467
14010
  }
14468
14011
  });
14469
14012
  responseStream.on("aborted", function handlerStreamAborted() {
@@ -14474,15 +14017,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14474
14017
  "stream has been aborted",
14475
14018
  AxiosError_default.ERR_BAD_RESPONSE,
14476
14019
  config,
14477
- lastRequest,
14478
- response
14020
+ lastRequest
14479
14021
  );
14480
14022
  responseStream.destroy(err);
14481
14023
  reject(err);
14482
14024
  });
14483
14025
  responseStream.on("error", function handleStreamError(err) {
14484
- if (rejected) return;
14485
- reject(AxiosError_default.from(err, null, config, lastRequest, response));
14026
+ if (req.destroyed) return;
14027
+ reject(AxiosError_default.from(err, null, config, lastRequest));
14486
14028
  });
14487
14029
  responseStream.on("end", function handleStreamEnd() {
14488
14030
  try {
@@ -14517,51 +14059,34 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14517
14059
  req.on("error", function handleRequestError(err) {
14518
14060
  reject(AxiosError_default.from(err, null, config, req));
14519
14061
  });
14520
- const boundSockets = /* @__PURE__ */ new Set();
14521
14062
  req.on("socket", function handleRequestSocket(socket) {
14522
14063
  socket.setKeepAlive(true, 1e3 * 60);
14523
- if (!socket[kAxiosSocketListener]) {
14524
- socket.on("error", function handleSocketError(err) {
14525
- const current = socket[kAxiosCurrentReq];
14526
- if (current && !current.destroyed) {
14527
- current.destroy(err);
14528
- }
14529
- });
14530
- socket[kAxiosSocketListener] = true;
14531
- }
14532
- socket[kAxiosCurrentReq] = req;
14533
- boundSockets.add(socket);
14534
- });
14535
- req.once("close", function clearCurrentReq() {
14536
- clearConnectPhaseTimer();
14537
- for (const socket of boundSockets) {
14538
- if (socket[kAxiosCurrentReq] === req) {
14539
- socket[kAxiosCurrentReq] = null;
14540
- }
14541
- }
14542
- boundSockets.clear();
14543
14064
  });
14544
14065
  if (config.timeout) {
14545
14066
  const timeout = parseInt(config.timeout, 10);
14546
14067
  if (Number.isNaN(timeout)) {
14547
- abort(
14548
- new AxiosError_default(
14549
- "error trying to parse `config.timeout` to int",
14550
- AxiosError_default.ERR_BAD_OPTION_VALUE,
14551
- config,
14552
- req
14553
- )
14554
- );
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
+ ));
14555
14074
  return;
14556
14075
  }
14557
- const handleTimeout = function handleTimeout2() {
14076
+ req.setTimeout(timeout, function handleRequestTimeout() {
14558
14077
  if (isDone) return;
14559
- abort(createTimeoutError());
14560
- };
14561
- if (isNativeTransport && timeout > 0) {
14562
- connectPhaseTimer = setTimeout(handleTimeout, timeout);
14563
- }
14564
- req.setTimeout(timeout, handleTimeout);
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
+ });
14565
14090
  } else {
14566
14091
  req.setTimeout(0);
14567
14092
  }
@@ -14580,37 +14105,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14580
14105
  abort(new CanceledError_default("Request stream has been aborted", config, req));
14581
14106
  }
14582
14107
  });
14583
- let uploadStream = data;
14584
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
14585
- const limit = config.maxBodyLength;
14586
- let bytesSent = 0;
14587
- uploadStream = stream3.pipeline(
14588
- [
14589
- data,
14590
- new stream3.Transform({
14591
- transform(chunk, _enc, cb) {
14592
- bytesSent += chunk.length;
14593
- if (bytesSent > limit) {
14594
- return cb(
14595
- new AxiosError_default(
14596
- "Request body larger than maxBodyLength limit",
14597
- AxiosError_default.ERR_BAD_REQUEST,
14598
- config,
14599
- req
14600
- )
14601
- );
14602
- }
14603
- cb(null, chunk);
14604
- }
14605
- })
14606
- ],
14607
- utils_default.noop
14608
- );
14609
- uploadStream.on("error", (err) => {
14610
- if (!req.destroyed) req.destroy(err);
14611
- });
14612
- }
14613
- uploadStream.pipe(req);
14108
+ data.pipe(req);
14614
14109
  } else {
14615
14110
  data && req.write(data);
14616
14111
  req.end();
@@ -14618,7 +14113,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14618
14113
  });
14619
14114
  };
14620
14115
 
14621
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
14116
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
14622
14117
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
14623
14118
  url2 = new URL(url2, platform_default.origin);
14624
14119
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -14627,7 +14122,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
14627
14122
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
14628
14123
  ) : () => true;
14629
14124
 
14630
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
14125
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
14631
14126
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
14632
14127
  // Standard browser envs support document.cookie
14633
14128
  {
@@ -14653,15 +14148,8 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14653
14148
  },
14654
14149
  read(name) {
14655
14150
  if (typeof document === "undefined") return null;
14656
- const cookies = document.cookie.split(";");
14657
- for (let i = 0; i < cookies.length; i++) {
14658
- const cookie = cookies[i].replace(/^\s+/, "");
14659
- const eq = cookie.indexOf("=");
14660
- if (eq !== -1 && cookie.slice(0, eq) === name) {
14661
- return decodeURIComponent(cookie.slice(eq + 1));
14662
- }
14663
- }
14664
- return null;
14151
+ const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
14152
+ return match ? decodeURIComponent(match[1]) : null;
14665
14153
  },
14666
14154
  remove(name) {
14667
14155
  this.write(name, "", Date.now() - 864e5, "/");
@@ -14680,20 +14168,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
14680
14168
  }
14681
14169
  );
14682
14170
 
14683
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
14171
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
14684
14172
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
14685
14173
  function mergeConfig(config1, config2) {
14686
14174
  config2 = config2 || {};
14687
- const config = /* @__PURE__ */ Object.create(null);
14688
- Object.defineProperty(config, "hasOwnProperty", {
14689
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
14690
- // this data descriptor into an accessor descriptor on the way in.
14691
- __proto__: null,
14692
- value: Object.prototype.hasOwnProperty,
14693
- enumerable: false,
14694
- writable: true,
14695
- configurable: true
14696
- });
14175
+ const config = {};
14697
14176
  function getMergedValue(target, source, prop, caseless) {
14698
14177
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
14699
14178
  return utils_default.merge.call({ caseless }, target, source);
@@ -14724,9 +14203,9 @@ function mergeConfig(config1, config2) {
14724
14203
  }
14725
14204
  }
14726
14205
  function mergeDirectKeys(a, b, prop) {
14727
- if (utils_default.hasOwnProp(config2, prop)) {
14206
+ if (prop in config2) {
14728
14207
  return getMergedValue(a, b);
14729
- } else if (utils_default.hasOwnProp(config1, prop)) {
14208
+ } else if (prop in config1) {
14730
14209
  return getMergedValue(void 0, a);
14731
14210
  }
14732
14211
  }
@@ -14757,76 +14236,51 @@ function mergeConfig(config1, config2) {
14757
14236
  httpsAgent: defaultToConfig2,
14758
14237
  cancelToken: defaultToConfig2,
14759
14238
  socketPath: defaultToConfig2,
14760
- allowedSocketPaths: defaultToConfig2,
14761
14239
  responseEncoding: defaultToConfig2,
14762
14240
  validateStatus: mergeDirectKeys,
14763
14241
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
14764
14242
  };
14765
- utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
14766
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
14767
- const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
14768
- const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
14769
- const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
14770
- const configValue = merge2(a, b, prop);
14771
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
14772
- });
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
+ );
14773
14253
  return config;
14774
14254
  }
14775
14255
 
14776
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
14777
- var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
14778
- function setFormDataHeaders2(headers, formHeaders, policy) {
14779
- if (policy !== "content-only") {
14780
- headers.set(formHeaders);
14781
- return;
14782
- }
14783
- Object.entries(formHeaders).forEach(([key, val]) => {
14784
- if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
14785
- headers.set(key, val);
14786
- }
14787
- });
14788
- }
14789
- var encodeUTF8 = (str) => encodeURIComponent(str).replace(
14790
- /%([0-9A-F]{2})/gi,
14791
- (_, hex) => String.fromCharCode(parseInt(hex, 16))
14792
- );
14256
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
14793
14257
  var resolveConfig_default = (config) => {
14794
14258
  const newConfig = mergeConfig({}, config);
14795
- const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
14796
- const data = own2("data");
14797
- let withXSRFToken = own2("withXSRFToken");
14798
- const xsrfHeaderName = own2("xsrfHeaderName");
14799
- const xsrfCookieName = own2("xsrfCookieName");
14800
- let headers = own2("headers");
14801
- const auth = own2("auth");
14802
- const baseURL = own2("baseURL");
14803
- const allowAbsoluteUrls = own2("allowAbsoluteUrls");
14804
- const url2 = own2("url");
14259
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
14805
14260
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
14806
- newConfig.url = buildURL(
14807
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
14808
- config.params,
14809
- config.paramsSerializer
14810
- );
14261
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
14811
14262
  if (auth) {
14812
14263
  headers.set(
14813
14264
  "Authorization",
14814
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
14265
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
14815
14266
  );
14816
14267
  }
14817
14268
  if (utils_default.isFormData(data)) {
14818
14269
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
14819
14270
  headers.setContentType(void 0);
14820
14271
  } else if (utils_default.isFunction(data.getHeaders)) {
14821
- setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
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
+ });
14822
14279
  }
14823
14280
  }
14824
14281
  if (platform_default.hasStandardBrowserEnv) {
14825
- if (utils_default.isFunction(withXSRFToken)) {
14826
- withXSRFToken = withXSRFToken(newConfig);
14827
- }
14828
- const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
14829
- if (shouldSendXSRF) {
14282
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
14283
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
14830
14284
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
14831
14285
  if (xsrfValue) {
14832
14286
  headers.set(xsrfHeaderName, xsrfValue);
@@ -14836,7 +14290,7 @@ var resolveConfig_default = (config) => {
14836
14290
  return newConfig;
14837
14291
  };
14838
14292
 
14839
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
14293
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
14840
14294
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
14841
14295
  var xhr_default = isXHRAdapterSupported && function(config) {
14842
14296
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -14872,17 +14326,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14872
14326
  config,
14873
14327
  request
14874
14328
  };
14875
- settle(
14876
- function _resolve(value) {
14877
- resolve(value);
14878
- done();
14879
- },
14880
- function _reject(err) {
14881
- reject(err);
14882
- done();
14883
- },
14884
- response
14885
- );
14329
+ settle(function _resolve(value) {
14330
+ resolve(value);
14331
+ done();
14332
+ }, function _reject(err) {
14333
+ reject(err);
14334
+ done();
14335
+ }, response);
14886
14336
  request = null;
14887
14337
  }
14888
14338
  if ("onloadend" in request) {
@@ -14892,7 +14342,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14892
14342
  if (!request || request.readyState !== 4) {
14893
14343
  return;
14894
14344
  }
14895
- if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
14345
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
14896
14346
  return;
14897
14347
  }
14898
14348
  setTimeout(onloadend);
@@ -14903,7 +14353,6 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14903
14353
  return;
14904
14354
  }
14905
14355
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
14906
- done();
14907
14356
  request = null;
14908
14357
  };
14909
14358
  request.onerror = function handleError(event) {
@@ -14911,7 +14360,6 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14911
14360
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
14912
14361
  err.event = event || null;
14913
14362
  reject(err);
14914
- done();
14915
14363
  request = null;
14916
14364
  };
14917
14365
  request.ontimeout = function handleTimeout() {
@@ -14920,15 +14368,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14920
14368
  if (_config.timeoutErrorMessage) {
14921
14369
  timeoutErrorMessage = _config.timeoutErrorMessage;
14922
14370
  }
14923
- reject(
14924
- new AxiosError_default(
14925
- timeoutErrorMessage,
14926
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14927
- config,
14928
- request
14929
- )
14930
- );
14931
- done();
14371
+ reject(new AxiosError_default(
14372
+ timeoutErrorMessage,
14373
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
14374
+ config,
14375
+ request
14376
+ ));
14932
14377
  request = null;
14933
14378
  };
14934
14379
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -14959,7 +14404,6 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14959
14404
  }
14960
14405
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
14961
14406
  request.abort();
14962
- done();
14963
14407
  request = null;
14964
14408
  };
14965
14409
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -14968,21 +14412,15 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14968
14412
  }
14969
14413
  }
14970
14414
  const protocol = parseProtocol(_config.url);
14971
- if (protocol && !platform_default.protocols.includes(protocol)) {
14972
- reject(
14973
- new AxiosError_default(
14974
- "Unsupported protocol " + protocol + ":",
14975
- AxiosError_default.ERR_BAD_REQUEST,
14976
- config
14977
- )
14978
- );
14415
+ if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
14416
+ reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
14979
14417
  return;
14980
14418
  }
14981
14419
  request.send(requestData || null);
14982
14420
  });
14983
14421
  };
14984
14422
 
14985
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
14423
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
14986
14424
  var composeSignals = (signals, timeout) => {
14987
14425
  const { length } = signals = signals ? signals.filter(Boolean) : [];
14988
14426
  if (timeout || length) {
@@ -14993,9 +14431,7 @@ var composeSignals = (signals, timeout) => {
14993
14431
  aborted = true;
14994
14432
  unsubscribe();
14995
14433
  const err = reason instanceof Error ? reason : this.reason;
14996
- controller.abort(
14997
- err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
14998
- );
14434
+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
14999
14435
  }
15000
14436
  };
15001
14437
  let timer = timeout && setTimeout(() => {
@@ -15020,7 +14456,7 @@ var composeSignals = (signals, timeout) => {
15020
14456
  };
15021
14457
  var composeSignals_default = composeSignals;
15022
14458
 
15023
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
14459
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
15024
14460
  var streamChunk = function* (chunk, chunkSize) {
15025
14461
  let len = chunk.byteLength;
15026
14462
  if (!chunkSize || len < chunkSize) {
@@ -15068,41 +14504,46 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15068
14504
  onFinish && onFinish(e);
15069
14505
  }
15070
14506
  };
15071
- return new ReadableStream(
15072
- {
15073
- async pull(controller) {
15074
- try {
15075
- const { done: done2, value } = await iterator2.next();
15076
- if (done2) {
15077
- _onFinish();
15078
- controller.close();
15079
- return;
15080
- }
15081
- let len = value.byteLength;
15082
- if (onProgress) {
15083
- let loadedBytes = bytes += len;
15084
- onProgress(loadedBytes);
15085
- }
15086
- controller.enqueue(new Uint8Array(value));
15087
- } catch (err) {
15088
- _onFinish(err);
15089
- throw err;
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;
15090
14515
  }
15091
- },
15092
- cancel(reason) {
15093
- _onFinish(reason);
15094
- return iterator2.return();
14516
+ let len = value.byteLength;
14517
+ if (onProgress) {
14518
+ let loadedBytes = bytes += len;
14519
+ onProgress(loadedBytes);
14520
+ }
14521
+ controller.enqueue(new Uint8Array(value));
14522
+ } catch (err) {
14523
+ _onFinish(err);
14524
+ throw err;
15095
14525
  }
15096
14526
  },
15097
- {
15098
- highWaterMark: 2
14527
+ cancel(reason) {
14528
+ _onFinish(reason);
14529
+ return iterator2.return();
15099
14530
  }
15100
- );
14531
+ }, {
14532
+ highWaterMark: 2
14533
+ });
15101
14534
  };
15102
14535
 
15103
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
14536
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
15104
14537
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
15105
14538
  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;
15106
14547
  var test = (fn, ...args) => {
15107
14548
  try {
15108
14549
  return !!fn(...args);
@@ -15111,18 +14552,9 @@ var test = (fn, ...args) => {
15111
14552
  }
15112
14553
  };
15113
14554
  var factory = (env) => {
15114
- const globalObject = utils_default.global ?? globalThis;
15115
- const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
15116
- env = utils_default.merge.call(
15117
- {
15118
- skipUndefined: true
15119
- },
15120
- {
15121
- Request: globalObject.Request,
15122
- Response: globalObject.Response
15123
- },
15124
- env
15125
- );
14555
+ env = utils_default.merge.call({
14556
+ skipUndefined: true
14557
+ }, globalFetchAPI, env);
15126
14558
  const { fetch: envFetch, Request, Response } = env;
15127
14559
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
15128
14560
  const isRequestSupported = isFunction2(Request);
@@ -15134,18 +14566,14 @@ var factory = (env) => {
15134
14566
  const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
15135
14567
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
15136
14568
  let duplexAccessed = false;
15137
- const request = new Request(platform_default.origin, {
14569
+ const hasContentType = new Request(platform_default.origin, {
15138
14570
  body: new ReadableStream2(),
15139
14571
  method: "POST",
15140
14572
  get duplex() {
15141
14573
  duplexAccessed = true;
15142
14574
  return "half";
15143
14575
  }
15144
- });
15145
- const hasContentType = request.headers.has("Content-Type");
15146
- if (request.body != null) {
15147
- request.body.cancel();
15148
- }
14576
+ }).headers.has("Content-Type");
15149
14577
  return duplexAccessed && !hasContentType;
15150
14578
  });
15151
14579
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
@@ -15159,11 +14587,7 @@ var factory = (env) => {
15159
14587
  if (method) {
15160
14588
  return method.call(res);
15161
14589
  }
15162
- throw new AxiosError_default(
15163
- `Response type '${type}' is not supported`,
15164
- AxiosError_default.ERR_NOT_SUPPORT,
15165
- config
15166
- );
14590
+ throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
15167
14591
  });
15168
14592
  });
15169
14593
  })();
@@ -15208,46 +14632,17 @@ var factory = (env) => {
15208
14632
  responseType,
15209
14633
  headers,
15210
14634
  withCredentials = "same-origin",
15211
- fetchOptions,
15212
- maxContentLength,
15213
- maxBodyLength
14635
+ fetchOptions
15214
14636
  } = resolveConfig_default(config);
15215
- const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15216
- const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
15217
14637
  let _fetch = envFetch || fetch;
15218
14638
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15219
- let composedSignal = composeSignals_default(
15220
- [signal, cancelToken && cancelToken.toAbortSignal()],
15221
- timeout
15222
- );
14639
+ let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
15223
14640
  let request = null;
15224
14641
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
15225
14642
  composedSignal.unsubscribe();
15226
14643
  });
15227
14644
  let requestContentLength;
15228
14645
  try {
15229
- if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15230
- const estimated = estimateDataURLDecodedBytes(url2);
15231
- if (estimated > maxContentLength) {
15232
- throw new AxiosError_default(
15233
- "maxContentLength size of " + maxContentLength + " exceeded",
15234
- AxiosError_default.ERR_BAD_RESPONSE,
15235
- config,
15236
- request
15237
- );
15238
- }
15239
- }
15240
- if (hasMaxBodyLength && method !== "get" && method !== "head") {
15241
- const outboundLength = await resolveBodyLength(headers, data);
15242
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15243
- throw new AxiosError_default(
15244
- "Request body larger than maxBodyLength limit",
15245
- AxiosError_default.ERR_BAD_REQUEST,
15246
- config,
15247
- request
15248
- );
15249
- }
15250
- }
15251
14646
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
15252
14647
  let _request = new Request(url2, {
15253
14648
  method: "POST",
@@ -15270,13 +14665,6 @@ var factory = (env) => {
15270
14665
  withCredentials = withCredentials ? "include" : "omit";
15271
14666
  }
15272
14667
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
15273
- if (utils_default.isFormData(data)) {
15274
- const contentType = headers.getContentType();
15275
- if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
15276
- headers.delete("content-type");
15277
- }
15278
- }
15279
- headers.set("User-Agent", "axios/" + VERSION, false);
15280
14668
  const resolvedOptions = {
15281
14669
  ...fetchOptions,
15282
14670
  signal: composedSignal,
@@ -15288,19 +14676,8 @@ var factory = (env) => {
15288
14676
  };
15289
14677
  request = isRequestSupported && new Request(url2, resolvedOptions);
15290
14678
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
15291
- if (hasMaxContentLength) {
15292
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
15293
- if (declaredLength != null && declaredLength > maxContentLength) {
15294
- throw new AxiosError_default(
15295
- "maxContentLength size of " + maxContentLength + " exceeded",
15296
- AxiosError_default.ERR_BAD_RESPONSE,
15297
- config,
15298
- request
15299
- );
15300
- }
15301
- }
15302
14679
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
15303
- if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
14680
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
15304
14681
  const options = {};
15305
14682
  ["status", "statusText", "headers"].forEach((prop) => {
15306
14683
  options[prop] = response[prop];
@@ -15310,23 +14687,8 @@ var factory = (env) => {
15310
14687
  responseContentLength,
15311
14688
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
15312
14689
  ) || [];
15313
- let bytesRead = 0;
15314
- const onChunkProgress = (loadedBytes) => {
15315
- if (hasMaxContentLength) {
15316
- bytesRead = loadedBytes;
15317
- if (bytesRead > maxContentLength) {
15318
- throw new AxiosError_default(
15319
- "maxContentLength size of " + maxContentLength + " exceeded",
15320
- AxiosError_default.ERR_BAD_RESPONSE,
15321
- config,
15322
- request
15323
- );
15324
- }
15325
- }
15326
- onProgress && onProgress(loadedBytes);
15327
- };
15328
14690
  response = new Response(
15329
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
14691
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
15330
14692
  flush && flush();
15331
14693
  unsubscribe && unsubscribe();
15332
14694
  }),
@@ -15334,30 +14696,7 @@ var factory = (env) => {
15334
14696
  );
15335
14697
  }
15336
14698
  responseType = responseType || "text";
15337
- let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
15338
- response,
15339
- config
15340
- );
15341
- if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
15342
- let materializedSize;
15343
- if (responseData != null) {
15344
- if (typeof responseData.byteLength === "number") {
15345
- materializedSize = responseData.byteLength;
15346
- } else if (typeof responseData.size === "number") {
15347
- materializedSize = responseData.size;
15348
- } else if (typeof responseData === "string") {
15349
- materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
15350
- }
15351
- }
15352
- if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
15353
- throw new AxiosError_default(
15354
- "maxContentLength size of " + maxContentLength + " exceeded",
15355
- AxiosError_default.ERR_BAD_RESPONSE,
15356
- config,
15357
- request
15358
- );
15359
- }
15360
- }
14699
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
15361
14700
  !isStreamResponse && unsubscribe && unsubscribe();
15362
14701
  return await new Promise((resolve, reject) => {
15363
14702
  settle(resolve, reject, {
@@ -15371,22 +14710,9 @@ var factory = (env) => {
15371
14710
  });
15372
14711
  } catch (err) {
15373
14712
  unsubscribe && unsubscribe();
15374
- if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
15375
- const canceledError = composedSignal.reason;
15376
- canceledError.config = config;
15377
- request && (canceledError.request = request);
15378
- err !== canceledError && (canceledError.cause = err);
15379
- throw canceledError;
15380
- }
15381
14713
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
15382
14714
  throw Object.assign(
15383
- new AxiosError_default(
15384
- "Network Error",
15385
- AxiosError_default.ERR_NETWORK,
15386
- config,
15387
- request,
15388
- err && err.response
15389
- ),
14715
+ new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request, err && err.response),
15390
14716
  {
15391
14717
  cause: err.cause || err
15392
14718
  }
@@ -15400,7 +14726,11 @@ var seedCache = /* @__PURE__ */ new Map();
15400
14726
  var getFetch = (config) => {
15401
14727
  let env = config && config.env || {};
15402
14728
  const { fetch: fetch2, Request, Response } = env;
15403
- const seeds = [Request, Response, fetch2];
14729
+ const seeds = [
14730
+ Request,
14731
+ Response,
14732
+ fetch2
14733
+ ];
15404
14734
  let len = seeds.length, i = len, seed, target, map = seedCache;
15405
14735
  while (i--) {
15406
14736
  seed = seeds[i];
@@ -15412,7 +14742,7 @@ var getFetch = (config) => {
15412
14742
  };
15413
14743
  var adapter = getFetch();
15414
14744
 
15415
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
14745
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
15416
14746
  var knownAdapters = {
15417
14747
  http: http_default,
15418
14748
  xhr: xhr_default,
@@ -15423,10 +14753,10 @@ var knownAdapters = {
15423
14753
  utils_default.forEach(knownAdapters, (fn, value) => {
15424
14754
  if (fn) {
15425
14755
  try {
15426
- Object.defineProperty(fn, "name", { __proto__: null, value });
14756
+ Object.defineProperty(fn, "name", { value });
15427
14757
  } catch (e) {
15428
14758
  }
15429
- Object.defineProperty(fn, "adapterName", { __proto__: null, value });
14759
+ Object.defineProperty(fn, "adapterName", { value });
15430
14760
  }
15431
14761
  });
15432
14762
  var renderReason = (reason) => `- ${reason}`;
@@ -15477,7 +14807,7 @@ var adapters_default = {
15477
14807
  adapters: knownAdapters
15478
14808
  };
15479
14809
 
15480
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
14810
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
15481
14811
  function throwIfCancellationRequested(config) {
15482
14812
  if (config.cancelToken) {
15483
14813
  config.cancelToken.throwIfRequested();
@@ -15489,46 +14819,40 @@ function throwIfCancellationRequested(config) {
15489
14819
  function dispatchRequest(config) {
15490
14820
  throwIfCancellationRequested(config);
15491
14821
  config.headers = AxiosHeaders_default.from(config.headers);
15492
- config.data = transformData.call(config, config.transformRequest);
14822
+ config.data = transformData.call(
14823
+ config,
14824
+ config.transformRequest
14825
+ );
15493
14826
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
15494
14827
  config.headers.setContentType("application/x-www-form-urlencoded", false);
15495
14828
  }
15496
14829
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
15497
- return adapter2(config).then(
15498
- function onAdapterResolution(response) {
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)) {
15499
14841
  throwIfCancellationRequested(config);
15500
- config.response = response;
15501
- try {
15502
- response.data = transformData.call(config, config.transformResponse, response);
15503
- } finally {
15504
- delete config.response;
15505
- }
15506
- response.headers = AxiosHeaders_default.from(response.headers);
15507
- return response;
15508
- },
15509
- function onAdapterRejection(reason) {
15510
- if (!isCancel(reason)) {
15511
- throwIfCancellationRequested(config);
15512
- if (reason && reason.response) {
15513
- config.response = reason.response;
15514
- try {
15515
- reason.response.data = transformData.call(
15516
- config,
15517
- config.transformResponse,
15518
- reason.response
15519
- );
15520
- } finally {
15521
- delete config.response;
15522
- }
15523
- reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
15524
- }
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);
15525
14849
  }
15526
- return Promise.reject(reason);
15527
14850
  }
15528
- );
14851
+ return Promise.reject(reason);
14852
+ });
15529
14853
  }
15530
14854
 
15531
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
14855
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
15532
14856
  var validators = {};
15533
14857
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
15534
14858
  validators[type] = function validator(thing) {
@@ -15573,15 +14897,12 @@ function assertOptions(options, schema, allowUnknown) {
15573
14897
  let i = keys.length;
15574
14898
  while (i-- > 0) {
15575
14899
  const opt = keys[i];
15576
- const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
14900
+ const validator = schema[opt];
15577
14901
  if (validator) {
15578
14902
  const value = options[opt];
15579
14903
  const result = value === void 0 || validator(value, opt, options);
15580
14904
  if (result !== true) {
15581
- throw new AxiosError_default(
15582
- "option " + opt + " must be " + result,
15583
- AxiosError_default.ERR_BAD_OPTION_VALUE
15584
- );
14905
+ throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
15585
14906
  }
15586
14907
  continue;
15587
14908
  }
@@ -15595,7 +14916,7 @@ var validator_default = {
15595
14916
  validators
15596
14917
  };
15597
14918
 
15598
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/core/Axios.js
14919
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/core/Axios.js
15599
14920
  var validators2 = validator_default.validators;
15600
14921
  var Axios = class {
15601
14922
  constructor(instanceConfig) {
@@ -15620,23 +14941,12 @@ var Axios = class {
15620
14941
  if (err instanceof Error) {
15621
14942
  let dummy = {};
15622
14943
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
15623
- const stack = (() => {
15624
- if (!dummy.stack) {
15625
- return "";
15626
- }
15627
- const firstNewlineIndex = dummy.stack.indexOf("\n");
15628
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
15629
- })();
14944
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
15630
14945
  try {
15631
14946
  if (!err.stack) {
15632
14947
  err.stack = stack;
15633
- } else if (stack) {
15634
- const firstNewlineIndex = stack.indexOf("\n");
15635
- const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
15636
- const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
15637
- if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
15638
- err.stack += "\n" + stack;
15639
- }
14948
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
14949
+ err.stack += "\n" + stack;
15640
14950
  }
15641
14951
  } catch (e) {
15642
14952
  }
@@ -15654,16 +14964,12 @@ var Axios = class {
15654
14964
  config = mergeConfig(this.defaults, config);
15655
14965
  const { transitional: transitional2, paramsSerializer, headers } = config;
15656
14966
  if (transitional2 !== void 0) {
15657
- validator_default.assertOptions(
15658
- transitional2,
15659
- {
15660
- silentJSONParsing: validators2.transitional(validators2.boolean),
15661
- forcedJSONParsing: validators2.transitional(validators2.boolean),
15662
- clarifyTimeoutError: validators2.transitional(validators2.boolean),
15663
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
15664
- },
15665
- false
15666
- );
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);
15667
14973
  }
15668
14974
  if (paramsSerializer != null) {
15669
14975
  if (utils_default.isFunction(paramsSerializer)) {
@@ -15671,14 +14977,10 @@ var Axios = class {
15671
14977
  serialize: paramsSerializer
15672
14978
  };
15673
14979
  } else {
15674
- validator_default.assertOptions(
15675
- paramsSerializer,
15676
- {
15677
- encode: validators2.function,
15678
- serialize: validators2.function
15679
- },
15680
- true
15681
- );
14980
+ validator_default.assertOptions(paramsSerializer, {
14981
+ encode: validators2.function,
14982
+ serialize: validators2.function
14983
+ }, true);
15682
14984
  }
15683
14985
  }
15684
14986
  if (config.allowAbsoluteUrls !== void 0) {
@@ -15687,19 +14989,21 @@ var Axios = class {
15687
14989
  } else {
15688
14990
  config.allowAbsoluteUrls = true;
15689
14991
  }
15690
- validator_default.assertOptions(
15691
- config,
15692
- {
15693
- baseUrl: validators2.spelling("baseURL"),
15694
- withXsrfToken: validators2.spelling("withXSRFToken")
15695
- },
15696
- true
15697
- );
14992
+ validator_default.assertOptions(config, {
14993
+ baseUrl: validators2.spelling("baseURL"),
14994
+ withXsrfToken: validators2.spelling("withXSRFToken")
14995
+ }, true);
15698
14996
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
15699
- let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
15700
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
15701
- delete headers[method];
15702
- });
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
+ }
15006
+ );
15703
15007
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
15704
15008
  const requestInterceptorChain = [];
15705
15009
  let synchronousRequestInterceptors = true;
@@ -15766,38 +15070,32 @@ var Axios = class {
15766
15070
  };
15767
15071
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
15768
15072
  Axios.prototype[method] = function(url2, config) {
15769
- return this.request(
15770
- mergeConfig(config || {}, {
15771
- method,
15772
- url: url2,
15773
- data: (config || {}).data
15774
- })
15775
- );
15073
+ return this.request(mergeConfig(config || {}, {
15074
+ method,
15075
+ url: url2,
15076
+ data: (config || {}).data
15077
+ }));
15776
15078
  };
15777
15079
  });
15778
- utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
15080
+ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
15779
15081
  function generateHTTPMethod(isForm) {
15780
15082
  return function httpMethod(url2, data, config) {
15781
- return this.request(
15782
- mergeConfig(config || {}, {
15783
- method,
15784
- headers: isForm ? {
15785
- "Content-Type": "multipart/form-data"
15786
- } : {},
15787
- url: url2,
15788
- data
15789
- })
15790
- );
15083
+ return this.request(mergeConfig(config || {}, {
15084
+ method,
15085
+ headers: isForm ? {
15086
+ "Content-Type": "multipart/form-data"
15087
+ } : {},
15088
+ url: url2,
15089
+ data
15090
+ }));
15791
15091
  };
15792
15092
  }
15793
15093
  Axios.prototype[method] = generateHTTPMethod();
15794
- if (method !== "query") {
15795
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
15796
- }
15094
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
15797
15095
  });
15798
15096
  var Axios_default = Axios;
15799
15097
 
15800
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
15098
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
15801
15099
  var CancelToken = class _CancelToken {
15802
15100
  constructor(executor) {
15803
15101
  if (typeof executor !== "function") {
@@ -15895,19 +15193,19 @@ var CancelToken = class _CancelToken {
15895
15193
  };
15896
15194
  var CancelToken_default = CancelToken;
15897
15195
 
15898
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
15196
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
15899
15197
  function spread(callback) {
15900
15198
  return function wrap(arr) {
15901
15199
  return callback.apply(null, arr);
15902
15200
  };
15903
15201
  }
15904
15202
 
15905
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
15203
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
15906
15204
  function isAxiosError(payload) {
15907
15205
  return utils_default.isObject(payload) && payload.isAxiosError === true;
15908
15206
  }
15909
15207
 
15910
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
15208
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
15911
15209
  var HttpStatusCode = {
15912
15210
  Continue: 100,
15913
15211
  SwitchingProtocols: 101,
@@ -15984,13 +15282,13 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
15984
15282
  });
15985
15283
  var HttpStatusCode_default = HttpStatusCode;
15986
15284
 
15987
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/lib/axios.js
15285
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/lib/axios.js
15988
15286
  function createInstance(defaultConfig) {
15989
15287
  const context = new Axios_default(defaultConfig);
15990
15288
  const instance = bind(Axios_default.prototype.request, context);
15991
15289
  utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
15992
15290
  utils_default.extend(instance, context, null, { allOwnKeys: true });
15993
- instance.create = function create2(instanceConfig) {
15291
+ instance.create = function create(instanceConfig) {
15994
15292
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
15995
15293
  };
15996
15294
  return instance;
@@ -16017,7 +15315,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16017
15315
  axios.default = axios;
16018
15316
  var axios_default = axios;
16019
15317
 
16020
- // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/index.js
15318
+ // ../../node_modules/.pnpm/axios@1.13.5_debug@4.4.3/node_modules/axios/index.js
16021
15319
  var {
16022
15320
  Axios: Axios2,
16023
15321
  AxiosError: AxiosError2,
@@ -16034,8 +15332,7 @@ var {
16034
15332
  HttpStatusCode: HttpStatusCode2,
16035
15333
  formToJSON,
16036
15334
  getAdapter: getAdapter2,
16037
- mergeConfig: mergeConfig2,
16038
- create
15335
+ mergeConfig: mergeConfig2
16039
15336
  } = axios_default;
16040
15337
 
16041
15338
  // ../../node_modules/.pnpm/pipenet@1.4.0_patch_hash=283f0d16759aba9c68cd55bb0821c977833a401969b0ecf9492a6618e019f6c1/node_modules/pipenet/dist/Tunnel.js