@alpic-ai/sdk 0.0.0-dev.ga3dae57 → 0.0.0-dev.ga3fe1d7

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.
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
45
  var require_delayed_stream = __commonJS({
46
46
  "../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
47
47
  var Stream = __require("stream").Stream;
48
- var util3 = __require("util");
48
+ var util4 = __require("util");
49
49
  module.exports = DelayedStream;
50
50
  function DelayedStream() {
51
51
  this.source = null;
@@ -56,7 +56,7 @@ var require_delayed_stream = __commonJS({
56
56
  this._released = false;
57
57
  this._bufferedEvents = [];
58
58
  }
59
- util3.inherits(DelayedStream, Stream);
59
+ util4.inherits(DelayedStream, Stream);
60
60
  DelayedStream.create = function(source, options) {
61
61
  var delayedStream = new this();
62
62
  options = options || {};
@@ -135,7 +135,7 @@ var require_delayed_stream = __commonJS({
135
135
  // ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
136
136
  var require_combined_stream = __commonJS({
137
137
  "../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
138
- var util3 = __require("util");
138
+ var util4 = __require("util");
139
139
  var Stream = __require("stream").Stream;
140
140
  var DelayedStream = require_delayed_stream();
141
141
  module.exports = CombinedStream;
@@ -151,7 +151,7 @@ var require_combined_stream = __commonJS({
151
151
  this._insideLoop = false;
152
152
  this._pendingNext = false;
153
153
  }
154
- util3.inherits(CombinedStream, Stream);
154
+ util4.inherits(CombinedStream, Stream);
155
155
  CombinedStream.create = function(options) {
156
156
  var combinedStream = new this();
157
157
  options = options || {};
@@ -9996,7 +9996,7 @@ var require_form_data = __commonJS({
9996
9996
  "../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js"(exports, module) {
9997
9997
  "use strict";
9998
9998
  var CombinedStream = require_combined_stream();
9999
- var util3 = __require("util");
9999
+ var util4 = __require("util");
10000
10000
  var path = __require("path");
10001
10001
  var http3 = __require("http");
10002
10002
  var https2 = __require("https");
@@ -10025,7 +10025,7 @@ var require_form_data = __commonJS({
10025
10025
  this[option] = options[option];
10026
10026
  }
10027
10027
  }
10028
- util3.inherits(FormData3, CombinedStream);
10028
+ util4.inherits(FormData3, CombinedStream);
10029
10029
  FormData3.LINE_BREAK = "\r\n";
10030
10030
  FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
10031
10031
  FormData3.prototype.append = function(field, value, options) {
@@ -10907,14 +10907,14 @@ var require_supports_color = __commonJS({
10907
10907
  var require_node = __commonJS({
10908
10908
  "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
10909
10909
  var tty = __require("tty");
10910
- var util3 = __require("util");
10910
+ var util4 = __require("util");
10911
10911
  exports.init = init;
10912
10912
  exports.log = log3;
10913
10913
  exports.formatArgs = formatArgs;
10914
10914
  exports.save = save;
10915
10915
  exports.load = load;
10916
10916
  exports.useColors = useColors;
10917
- exports.destroy = util3.deprecate(
10917
+ exports.destroy = util4.deprecate(
10918
10918
  () => {
10919
10919
  },
10920
10920
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -11045,7 +11045,7 @@ var require_node = __commonJS({
11045
11045
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
11046
11046
  }
11047
11047
  function log3(...args) {
11048
- return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11048
+ return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11049
11049
  }
11050
11050
  function save(namespaces) {
11051
11051
  if (namespaces) {
@@ -11068,11 +11068,11 @@ var require_node = __commonJS({
11068
11068
  var { formatters } = module.exports;
11069
11069
  formatters.o = function(v) {
11070
11070
  this.inspectOpts.colors = this.useColors;
11071
- return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
11071
+ return util4.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
11072
11072
  };
11073
11073
  formatters.O = function(v) {
11074
11074
  this.inspectOpts.colors = this.useColors;
11075
- return util3.inspect(v, this.inspectOpts);
11075
+ return util4.inspect(v, this.inspectOpts);
11076
11076
  };
11077
11077
  }
11078
11078
  });
@@ -11088,9 +11088,9 @@ var require_src = __commonJS({
11088
11088
  }
11089
11089
  });
11090
11090
 
11091
- // ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js
11091
+ // ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js
11092
11092
  var require_promisify = __commonJS({
11093
- "../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/promisify.js"(exports) {
11093
+ "../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/promisify.js"(exports) {
11094
11094
  "use strict";
11095
11095
  Object.defineProperty(exports, "__esModule", { value: true });
11096
11096
  function promisify(fn) {
@@ -11110,9 +11110,9 @@ var require_promisify = __commonJS({
11110
11110
  }
11111
11111
  });
11112
11112
 
11113
- // ../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js
11113
+ // ../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js
11114
11114
  var require_src2 = __commonJS({
11115
- "../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module) {
11115
+ "../../node_modules/.pnpm/agent-base@6.0.2_supports-color@8.1.1/node_modules/agent-base/dist/src/index.js"(exports, module) {
11116
11116
  "use strict";
11117
11117
  var __importDefault = exports && exports.__importDefault || function(mod) {
11118
11118
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -11293,9 +11293,9 @@ var require_src2 = __commonJS({
11293
11293
  }
11294
11294
  });
11295
11295
 
11296
- // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
11296
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js
11297
11297
  var require_parse_proxy_response = __commonJS({
11298
- "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
11298
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) {
11299
11299
  "use strict";
11300
11300
  var __importDefault = exports && exports.__importDefault || function(mod) {
11301
11301
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -11359,9 +11359,9 @@ var require_parse_proxy_response = __commonJS({
11359
11359
  }
11360
11360
  });
11361
11361
 
11362
- // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js
11362
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js
11363
11363
  var require_agent = __commonJS({
11364
- "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
11364
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/agent.js"(exports) {
11365
11365
  "use strict";
11366
11366
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
11367
11367
  function adopt(value) {
@@ -11519,9 +11519,9 @@ var require_agent = __commonJS({
11519
11519
  }
11520
11520
  });
11521
11521
 
11522
- // ../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js
11522
+ // ../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js
11523
11523
  var require_dist = __commonJS({
11524
- "../../node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
11524
+ "../../node_modules/.pnpm/https-proxy-agent@5.0.1_supports-color@8.1.1/node_modules/https-proxy-agent/dist/index.js"(exports, module) {
11525
11525
  "use strict";
11526
11526
  var __importDefault = exports && exports.__importDefault || function(mod) {
11527
11527
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -11538,9 +11538,9 @@ var require_dist = __commonJS({
11538
11538
  }
11539
11539
  });
11540
11540
 
11541
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
11541
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
11542
11542
  var require_debug = __commonJS({
11543
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
11543
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
11544
11544
  var debug3;
11545
11545
  module.exports = function() {
11546
11546
  if (!debug3) {
@@ -11558,9 +11558,9 @@ var require_debug = __commonJS({
11558
11558
  }
11559
11559
  });
11560
11560
 
11561
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js
11561
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
11562
11562
  var require_follow_redirects = __commonJS({
11563
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js"(exports, module) {
11563
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
11564
11564
  var url2 = __require("url");
11565
11565
  var URL2 = url2.URL;
11566
11566
  var http3 = __require("http");
@@ -12069,17 +12069,34 @@ var require_follow_redirects = __commonJS({
12069
12069
  }
12070
12070
  });
12071
12071
 
12072
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/bind.js
12072
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12073
12073
  function bind(fn, thisArg) {
12074
12074
  return function wrap() {
12075
12075
  return fn.apply(thisArg, arguments);
12076
12076
  };
12077
12077
  }
12078
12078
 
12079
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/utils.js
12079
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12080
12080
  var { toString } = Object.prototype;
12081
12081
  var { getPrototypeOf } = Object;
12082
12082
  var { iterator, toStringTag } = Symbol;
12083
+ var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12084
+ var hasOwnInPrototypeChain = (thing, prop) => {
12085
+ let obj = thing;
12086
+ const seen = [];
12087
+ while (obj != null && obj !== Object.prototype) {
12088
+ if (seen.indexOf(obj) !== -1) {
12089
+ return false;
12090
+ }
12091
+ seen.push(obj);
12092
+ if (hasOwnProperty(obj, prop)) {
12093
+ return true;
12094
+ }
12095
+ obj = getPrototypeOf(obj);
12096
+ }
12097
+ return false;
12098
+ };
12099
+ var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
12083
12100
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
12084
12101
  const str = toString.call(thing);
12085
12102
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -12110,11 +12127,14 @@ var isNumber = typeOfTest("number");
12110
12127
  var isObject = (thing) => thing !== null && typeof thing === "object";
12111
12128
  var isBoolean = (thing) => thing === true || thing === false;
12112
12129
  var isPlainObject = (val) => {
12113
- if (kindOf(val) !== "object") {
12130
+ if (!isObject(val)) {
12114
12131
  return false;
12115
12132
  }
12116
12133
  const prototype2 = getPrototypeOf(val);
12117
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
12134
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
12135
+ // Symbol.iterator as evidence the value is a tagged/iterable type rather
12136
+ // than a plain object, while ignoring keys injected onto Object.prototype.
12137
+ !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
12118
12138
  };
12119
12139
  var isEmptyObject = (val) => {
12120
12140
  if (!isObject(val) || isBuffer(val)) {
@@ -12134,6 +12154,7 @@ var isReactNativeBlob = (value) => {
12134
12154
  var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
12135
12155
  var isBlob = kindOfTest("Blob");
12136
12156
  var isFileList = kindOfTest("FileList");
12157
+ var isSet = kindOfTest("Set");
12137
12158
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
12138
12159
  function getGlobal() {
12139
12160
  if (typeof globalThis !== "undefined") return globalThis;
@@ -12218,7 +12239,7 @@ function merge(...objs) {
12218
12239
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12219
12240
  return;
12220
12241
  }
12221
- const targetKey = caseless && findKey(result, key) || key;
12242
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12222
12243
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12223
12244
  if (isPlainObject(existing) && isPlainObject(val)) {
12224
12245
  result[targetKey] = merge(existing, val);
@@ -12231,7 +12252,21 @@ function merge(...objs) {
12231
12252
  }
12232
12253
  };
12233
12254
  for (let i = 0, l = objs.length; i < l; i++) {
12234
- objs[i] && forEach(objs[i], assignValue);
12255
+ const source = objs[i];
12256
+ if (!source || isBuffer(source)) {
12257
+ continue;
12258
+ }
12259
+ forEach(source, assignValue);
12260
+ if (typeof source !== "object" || isArray(source)) {
12261
+ continue;
12262
+ }
12263
+ const symbols = Object.getOwnPropertySymbols(source);
12264
+ for (let j = 0; j < symbols.length; j++) {
12265
+ const symbol = symbols[j];
12266
+ if (propertyIsEnumerable.call(source, symbol)) {
12267
+ assignValue(source[symbol], symbol);
12268
+ }
12269
+ }
12235
12270
  }
12236
12271
  return result;
12237
12272
  }
@@ -12353,7 +12388,7 @@ var toCamelCase = (str) => {
12353
12388
  return p1.toUpperCase() + p2;
12354
12389
  });
12355
12390
  };
12356
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12391
+ var { propertyIsEnumerable } = Object.prototype;
12357
12392
  var isRegExp = kindOfTest("RegExp");
12358
12393
  var reduceDescriptors = (obj, reducer) => {
12359
12394
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -12415,11 +12450,20 @@ var toJSONObject = (obj) => {
12415
12450
  }
12416
12451
  if (!("toJSON" in source)) {
12417
12452
  visited.add(source);
12418
- const target = isArray(source) ? [] : {};
12419
- forEach(source, (value, key) => {
12420
- const reducedValue = visit(value);
12421
- !isUndefined(reducedValue) && (target[key] = reducedValue);
12422
- });
12453
+ let target;
12454
+ if (isSet(source)) {
12455
+ target = [];
12456
+ for (const value of source) {
12457
+ const reducedValue = visit(value);
12458
+ !isUndefined(reducedValue) && target.push(reducedValue);
12459
+ }
12460
+ } else {
12461
+ target = isArray(source) ? [] : {};
12462
+ forEach(source, (value, key) => {
12463
+ const reducedValue = visit(value);
12464
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
12465
+ });
12466
+ }
12423
12467
  visited.delete(source);
12424
12468
  return target;
12425
12469
  }
@@ -12452,6 +12496,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
12452
12496
  })(typeof setImmediate === "function", isFunction(_global.postMessage));
12453
12497
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
12454
12498
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
12499
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
12455
12500
  var utils_default = {
12456
12501
  isArray,
12457
12502
  isArrayBuffer,
@@ -12497,6 +12542,8 @@ var utils_default = {
12497
12542
  hasOwnProperty,
12498
12543
  hasOwnProp: hasOwnProperty,
12499
12544
  // an alias to avoid ESLint no-prototype-builtins detection
12545
+ hasOwnInPrototypeChain,
12546
+ getSafeProp,
12500
12547
  reduceDescriptors,
12501
12548
  freezeMethods,
12502
12549
  toObjectSet,
@@ -12512,10 +12559,11 @@ var utils_default = {
12512
12559
  isThenable,
12513
12560
  setImmediate: _setImmediate,
12514
12561
  asap,
12515
- isIterable
12562
+ isIterable,
12563
+ isSafeIterable
12516
12564
  };
12517
12565
 
12518
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12566
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12519
12567
  var ignoreDuplicateOf = utils_default.toObjectSet([
12520
12568
  "age",
12521
12569
  "authorization",
@@ -12544,23 +12592,24 @@ var parseHeaders_default = (rawHeaders) => {
12544
12592
  i = line.indexOf(":");
12545
12593
  key = line.substring(0, i).trim().toLowerCase();
12546
12594
  val = line.substring(i + 1).trim();
12547
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12595
+ const hasKey = utils_default.hasOwnProp(parsed, key);
12596
+ if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
12548
12597
  return;
12549
12598
  }
12550
12599
  if (key === "set-cookie") {
12551
- if (parsed[key]) {
12600
+ if (hasKey) {
12552
12601
  parsed[key].push(val);
12553
12602
  } else {
12554
12603
  parsed[key] = [val];
12555
12604
  }
12556
12605
  } else {
12557
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12606
+ parsed[key] = hasKey ? parsed[key] + ", " + val : val;
12558
12607
  }
12559
12608
  });
12560
12609
  return parsed;
12561
12610
  };
12562
12611
 
12563
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12612
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12564
12613
  function trimSPorHTAB(str) {
12565
12614
  let start = 0;
12566
12615
  let end = str.length;
@@ -12598,7 +12647,7 @@ function toByteStringHeaderObject(headers) {
12598
12647
  return byteStringHeaders;
12599
12648
  }
12600
12649
 
12601
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12650
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12602
12651
  var $internals = /* @__PURE__ */ Symbol("internals");
12603
12652
  function normalizeHeader(header) {
12604
12653
  return header && String(header).trim().toLowerCase();
@@ -12618,6 +12667,90 @@ function parseTokens(str) {
12618
12667
  }
12619
12668
  return tokens;
12620
12669
  }
12670
+ var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
12671
+ function trimOWS(value) {
12672
+ let start = 0;
12673
+ let end = value.length;
12674
+ while (start < end) {
12675
+ const code = value.charCodeAt(start);
12676
+ if (code !== 9 && code !== 32) {
12677
+ break;
12678
+ }
12679
+ start += 1;
12680
+ }
12681
+ while (end > start) {
12682
+ const code = value.charCodeAt(end - 1);
12683
+ if (code !== 9 && code !== 32) {
12684
+ break;
12685
+ }
12686
+ end -= 1;
12687
+ }
12688
+ return start === 0 && end === value.length ? value : value.slice(start, end);
12689
+ }
12690
+ function decodeQuotedString(value) {
12691
+ const last = value.length - 1;
12692
+ if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
12693
+ return value;
12694
+ }
12695
+ let decoded = "";
12696
+ for (let i = 1; i < last; i++) {
12697
+ const code = value.charCodeAt(i);
12698
+ if (code === 34) {
12699
+ return value;
12700
+ }
12701
+ if (code === 92) {
12702
+ i += 1;
12703
+ if (i >= last) {
12704
+ return value;
12705
+ }
12706
+ }
12707
+ decoded += value[i];
12708
+ }
12709
+ return decoded;
12710
+ }
12711
+ function parseParameters(value) {
12712
+ const parameters = /* @__PURE__ */ Object.create(null);
12713
+ const str = String(value);
12714
+ let start = 0;
12715
+ let quoted = false;
12716
+ let escaped = false;
12717
+ function parseParameter(end) {
12718
+ const part = trimOWS(str.slice(start, end));
12719
+ const equals = part.indexOf("=");
12720
+ if (equals < 1) {
12721
+ return;
12722
+ }
12723
+ const name = trimOWS(part.slice(0, equals));
12724
+ if (!parameterNameRE.test(name)) {
12725
+ return;
12726
+ }
12727
+ const normalizedName = name.toLowerCase();
12728
+ if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
12729
+ return;
12730
+ }
12731
+ const parameterValue = trimOWS(part.slice(equals + 1));
12732
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
12733
+ }
12734
+ for (let i = 0; i < str.length; i++) {
12735
+ const code = str.charCodeAt(i);
12736
+ if (quoted) {
12737
+ if (escaped) {
12738
+ escaped = false;
12739
+ } else if (code === 92) {
12740
+ escaped = true;
12741
+ } else if (code === 34) {
12742
+ quoted = false;
12743
+ }
12744
+ } else if (code === 34) {
12745
+ quoted = true;
12746
+ } else if (code === 44 || code === 59) {
12747
+ parseParameter(i);
12748
+ start = i + 1;
12749
+ }
12750
+ }
12751
+ parseParameter(str.length);
12752
+ return parameters;
12753
+ }
12621
12754
  var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12622
12755
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12623
12756
  if (utils_default.isFunction(filter2)) {
@@ -12662,7 +12795,7 @@ var AxiosHeaders = class {
12662
12795
  function setHeader(_value, _header, _rewrite) {
12663
12796
  const lHeader = normalizeHeader(_header);
12664
12797
  if (!lHeader) {
12665
- throw new Error("header name must be a non-empty string");
12798
+ return;
12666
12799
  }
12667
12800
  const key = utils_default.findKey(self2, lHeader);
12668
12801
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -12674,13 +12807,19 @@ var AxiosHeaders = class {
12674
12807
  setHeaders(header, valueOrRewrite);
12675
12808
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12676
12809
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12677
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12678
- let obj = {}, dest, key;
12810
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
12811
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
12679
12812
  for (const entry of header) {
12680
12813
  if (!utils_default.isArray(entry)) {
12681
- throw TypeError("Object iterator must return a key-value pair");
12814
+ throw new TypeError("Object iterator must return a key-value pair");
12815
+ }
12816
+ key = entry[0];
12817
+ if (utils_default.hasOwnProp(obj, key)) {
12818
+ dest = obj[key];
12819
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
12820
+ } else {
12821
+ obj[key] = entry[1];
12682
12822
  }
12683
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12684
12823
  }
12685
12824
  setHeaders(obj, valueOrRewrite);
12686
12825
  } else {
@@ -12787,7 +12926,8 @@ var AxiosHeaders = class {
12787
12926
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12788
12927
  }
12789
12928
  getSetCookie() {
12790
- return this.get("set-cookie") || [];
12929
+ const value = this.get("set-cookie");
12930
+ return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
12791
12931
  }
12792
12932
  get [Symbol.toStringTag]() {
12793
12933
  return "AxiosHeaders";
@@ -12795,6 +12935,9 @@ var AxiosHeaders = class {
12795
12935
  static from(thing) {
12796
12936
  return thing instanceof this ? thing : new this(thing);
12797
12937
  }
12938
+ static parseParameters(value) {
12939
+ return parseParameters(value);
12940
+ }
12798
12941
  static concat(first, ...targets) {
12799
12942
  const computed = new this(first);
12800
12943
  targets.forEach((target) => computed.set(target));
@@ -12837,7 +12980,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12837
12980
  utils_default.freezeMethods(AxiosHeaders);
12838
12981
  var AxiosHeaders_default = AxiosHeaders;
12839
12982
 
12840
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
12983
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12841
12984
  var REDACTED = "[REDACTED ****]";
12842
12985
  function hasOwnOrPrototypeToJSON(source) {
12843
12986
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12890,10 +13033,37 @@ function redactConfig(config, redactKeys) {
12890
13033
  };
12891
13034
  return visit(config);
12892
13035
  }
13036
+ function stringifySafely(value) {
13037
+ try {
13038
+ return String(value);
13039
+ } catch (err) {
13040
+ return "";
13041
+ }
13042
+ }
13043
+ function aggregateErrorMessage(error) {
13044
+ const message = error.errors.map((entry) => {
13045
+ try {
13046
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
13047
+ } catch (err) {
13048
+ return "";
13049
+ }
13050
+ }).filter(Boolean).join("; ");
13051
+ return message || error.name || "AggregateError";
13052
+ }
12893
13053
  var AxiosError = class _AxiosError extends Error {
12894
13054
  static from(error, code, config, request, response, customProps) {
12895
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12896
- axiosError.cause = error;
13055
+ let message = error.message;
13056
+ if (!message && utils_default.isArray(error.errors) && error.errors.length) {
13057
+ message = aggregateErrorMessage(error);
13058
+ }
13059
+ const axiosError = new _AxiosError(message, code || error.code, config, request, response);
13060
+ Object.defineProperty(axiosError, "cause", {
13061
+ __proto__: null,
13062
+ value: error,
13063
+ writable: true,
13064
+ enumerable: false,
13065
+ configurable: true
13066
+ });
12897
13067
  axiosError.name = error.name;
12898
13068
  if (error.status != null && axiosError.status == null) {
12899
13069
  axiosError.status = error.status;
@@ -12972,11 +13142,22 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12972
13142
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12973
13143
  var AxiosError_default = AxiosError;
12974
13144
 
12975
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
13145
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
12976
13146
  var import_form_data = __toESM(require_form_data(), 1);
12977
13147
  var FormData_default = import_form_data.default;
12978
13148
 
12979
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
13149
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13150
+ var Buffer_default = {
13151
+ isBufferAvailable() {
13152
+ return typeof Buffer !== "undefined";
13153
+ },
13154
+ from(value) {
13155
+ return Buffer.from(value);
13156
+ }
13157
+ };
13158
+
13159
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13160
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
12980
13161
  function isVisitable(thing) {
12981
13162
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12982
13163
  }
@@ -13018,8 +13199,9 @@ function toFormData(obj, formData, options) {
13018
13199
  const dots = options.dots;
13019
13200
  const indexes = options.indexes;
13020
13201
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13021
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
13202
+ const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
13022
13203
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13204
+ const stack = [];
13023
13205
  if (!utils_default.isFunction(visitor)) {
13024
13206
  throw new TypeError("visitor must be a function");
13025
13207
  }
@@ -13035,10 +13217,41 @@ function toFormData(obj, formData, options) {
13035
13217
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
13036
13218
  }
13037
13219
  if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
13038
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
13220
+ if (useBlob && typeof _Blob === "function") {
13221
+ return new _Blob([value]);
13222
+ }
13223
+ if (Buffer_default && Buffer_default.isBufferAvailable()) {
13224
+ return Buffer_default.from(value);
13225
+ }
13226
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
13039
13227
  }
13040
13228
  return value;
13041
13229
  }
13230
+ function throwIfMaxDepthExceeded(depth) {
13231
+ if (depth > maxDepth) {
13232
+ throw new AxiosError_default(
13233
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13234
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13235
+ );
13236
+ }
13237
+ }
13238
+ function stringifyWithDepthLimit(value, depth) {
13239
+ if (maxDepth === Infinity) {
13240
+ return JSON.stringify(value);
13241
+ }
13242
+ const ancestors = [];
13243
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
13244
+ if (!utils_default.isObject(currentValue)) {
13245
+ return currentValue;
13246
+ }
13247
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
13248
+ ancestors.pop();
13249
+ }
13250
+ ancestors.push(currentValue);
13251
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
13252
+ return currentValue;
13253
+ });
13254
+ }
13042
13255
  function defaultVisitor(value, key, path) {
13043
13256
  let arr = value;
13044
13257
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -13048,7 +13261,7 @@ function toFormData(obj, formData, options) {
13048
13261
  if (value && !path && typeof value === "object") {
13049
13262
  if (utils_default.endsWith(key, "{}")) {
13050
13263
  key = metaTokens ? key : key.slice(0, -2);
13051
- value = JSON.stringify(value);
13264
+ value = stringifyWithDepthLimit(value, 1);
13052
13265
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
13053
13266
  key = removeBrackets(key);
13054
13267
  arr.forEach(function each(el, index) {
@@ -13067,7 +13280,6 @@ function toFormData(obj, formData, options) {
13067
13280
  formData.append(renderKey(path, key, dots), convertValue(value));
13068
13281
  return false;
13069
13282
  }
13070
- const stack = [];
13071
13283
  const exposedHelpers = Object.assign(predicates, {
13072
13284
  defaultVisitor,
13073
13285
  convertValue,
@@ -13075,14 +13287,9 @@ function toFormData(obj, formData, options) {
13075
13287
  });
13076
13288
  function build(value, path, depth = 0) {
13077
13289
  if (utils_default.isUndefined(value)) return;
13078
- if (depth > maxDepth) {
13079
- throw new AxiosError_default(
13080
- "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13081
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13082
- );
13083
- }
13290
+ throwIfMaxDepthExceeded(depth);
13084
13291
  if (stack.indexOf(value) !== -1) {
13085
- throw Error("Circular reference detected in " + path.join("."));
13292
+ throw new Error("Circular reference detected in " + path.join("."));
13086
13293
  }
13087
13294
  stack.push(value);
13088
13295
  utils_default.forEach(value, function each(el, key) {
@@ -13101,7 +13308,7 @@ function toFormData(obj, formData, options) {
13101
13308
  }
13102
13309
  var toFormData_default = toFormData;
13103
13310
 
13104
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13311
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13105
13312
  function encode(str) {
13106
13313
  const charMap = {
13107
13314
  "!": "%21",
@@ -13124,16 +13331,14 @@ prototype.append = function append(name, value) {
13124
13331
  this._pairs.push([name, value]);
13125
13332
  };
13126
13333
  prototype.toString = function toString2(encoder) {
13127
- const _encode = encoder ? function(value) {
13128
- return encoder.call(this, value, encode);
13129
- } : encode;
13334
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
13130
13335
  return this._pairs.map(function each(pair) {
13131
13336
  return _encode(pair[0]) + "=" + _encode(pair[1]);
13132
13337
  }, "").join("&");
13133
13338
  };
13134
13339
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13135
13340
 
13136
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
13341
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13137
13342
  function encode2(val) {
13138
13343
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13139
13344
  }
@@ -13141,11 +13346,12 @@ function buildURL(url2, params, options) {
13141
13346
  if (!params) {
13142
13347
  return url2;
13143
13348
  }
13144
- const _encode = options && options.encode || encode2;
13349
+ url2 = url2 || "";
13145
13350
  const _options = utils_default.isFunction(options) ? {
13146
13351
  serialize: options
13147
13352
  } : options;
13148
- const serializeFn = _options && _options.serialize;
13353
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
13354
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
13149
13355
  let serializedParams;
13150
13356
  if (serializeFn) {
13151
13357
  serializedParams = serializeFn(params, _options);
@@ -13162,7 +13368,7 @@ function buildURL(url2, params, options) {
13162
13368
  return url2;
13163
13369
  }
13164
13370
 
13165
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
13371
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13166
13372
  var InterceptorManager = class {
13167
13373
  constructor() {
13168
13374
  this.handlers = [];
@@ -13227,22 +13433,24 @@ var InterceptorManager = class {
13227
13433
  };
13228
13434
  var InterceptorManager_default = InterceptorManager;
13229
13435
 
13230
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
13436
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13231
13437
  var transitional_default = {
13232
13438
  silentJSONParsing: true,
13233
13439
  forcedJSONParsing: true,
13234
13440
  clarifyTimeoutError: false,
13235
- legacyInterceptorReqResOrdering: true
13441
+ legacyInterceptorReqResOrdering: true,
13442
+ advertiseZstdAcceptEncoding: false,
13443
+ validateStatusUndefinedResolves: true
13236
13444
  };
13237
13445
 
13238
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13446
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13239
13447
  import crypto from "crypto";
13240
13448
 
13241
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13449
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13242
13450
  import url from "url";
13243
13451
  var URLSearchParams_default = url.URLSearchParams;
13244
13452
 
13245
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13453
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13246
13454
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13247
13455
  var DIGIT = "0123456789";
13248
13456
  var ALPHABET = {
@@ -13272,7 +13480,7 @@ var node_default = {
13272
13480
  protocols: ["http", "https", "file", "data"]
13273
13481
  };
13274
13482
 
13275
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
13483
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13276
13484
  var utils_exports = {};
13277
13485
  __export(utils_exports, {
13278
13486
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13290,13 +13498,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13290
13498
  })();
13291
13499
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13292
13500
 
13293
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/index.js
13501
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13294
13502
  var platform_default = {
13295
13503
  ...utils_exports,
13296
13504
  ...node_default
13297
13505
  };
13298
13506
 
13299
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
13507
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13300
13508
  function toURLEncodedForm(data, options) {
13301
13509
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13302
13510
  visitor: function(value, key, path, helpers) {
@@ -13310,11 +13518,25 @@ function toURLEncodedForm(data, options) {
13310
13518
  });
13311
13519
  }
13312
13520
 
13313
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
13521
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13522
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13523
+ function throwIfDepthExceeded(index) {
13524
+ if (index > MAX_DEPTH) {
13525
+ throw new AxiosError_default(
13526
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
13527
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13528
+ );
13529
+ }
13530
+ }
13314
13531
  function parsePropPath(name) {
13315
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
13316
- return match[0] === "[]" ? "" : match[1] || match[0];
13317
- });
13532
+ const path = [];
13533
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
13534
+ let match;
13535
+ while ((match = pattern.exec(name)) !== null) {
13536
+ throwIfDepthExceeded(path.length);
13537
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
13538
+ }
13539
+ return path;
13318
13540
  }
13319
13541
  function arrayToObject(arr) {
13320
13542
  const obj = {};
@@ -13330,6 +13552,7 @@ function arrayToObject(arr) {
13330
13552
  }
13331
13553
  function formDataToJSON(formData) {
13332
13554
  function buildPath(path, value, target, index) {
13555
+ throwIfDepthExceeded(index);
13333
13556
  let name = path[index++];
13334
13557
  if (name === "__proto__") return true;
13335
13558
  const isNumericKey = Number.isFinite(+name);
@@ -13363,9 +13586,9 @@ function formDataToJSON(formData) {
13363
13586
  }
13364
13587
  var formDataToJSON_default = formDataToJSON;
13365
13588
 
13366
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/index.js
13589
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13367
13590
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13368
- function stringifySafely(rawValue, parser, encoder) {
13591
+ function stringifySafely2(rawValue, parser, encoder) {
13369
13592
  if (utils_default.isString(rawValue)) {
13370
13593
  try {
13371
13594
  (parser || JSON.parse)(rawValue);
@@ -13421,7 +13644,7 @@ var defaults = {
13421
13644
  }
13422
13645
  if (isObjectPayload || hasJSONContentType) {
13423
13646
  headers.setContentType("application/json", false);
13424
- return stringifySafely(data);
13647
+ return stringifySafely2(data);
13425
13648
  }
13426
13649
  return data;
13427
13650
  }
@@ -13480,7 +13703,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"]
13480
13703
  });
13481
13704
  var defaults_default = defaults;
13482
13705
 
13483
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13706
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13484
13707
  function transformData(fns, response) {
13485
13708
  const config = this || defaults_default;
13486
13709
  const context = response || config;
@@ -13493,12 +13716,12 @@ function transformData(fns, response) {
13493
13716
  return data;
13494
13717
  }
13495
13718
 
13496
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13719
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13497
13720
  function isCancel(value) {
13498
13721
  return !!(value && value.__CANCEL__);
13499
13722
  }
13500
13723
 
13501
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13724
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13502
13725
  var CanceledError = class extends AxiosError_default {
13503
13726
  /**
13504
13727
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13517,7 +13740,7 @@ var CanceledError = class extends AxiosError_default {
13517
13740
  };
13518
13741
  var CanceledError_default = CanceledError;
13519
13742
 
13520
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/settle.js
13743
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13521
13744
  function settle(resolve, reject, response) {
13522
13745
  const validateStatus2 = response.config.validateStatus;
13523
13746
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13533,7 +13756,7 @@ function settle(resolve, reject, response) {
13533
13756
  }
13534
13757
  }
13535
13758
 
13536
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13759
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13537
13760
  function isAbsoluteURL(url2) {
13538
13761
  if (typeof url2 !== "string") {
13539
13762
  return false;
@@ -13541,15 +13764,69 @@ function isAbsoluteURL(url2) {
13541
13764
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13542
13765
  }
13543
13766
 
13544
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13767
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13545
13768
  function combineURLs(baseURL, relativeURL) {
13546
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13769
+ if (!relativeURL) {
13770
+ return baseURL;
13771
+ }
13772
+ let end = baseURL.length;
13773
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
13774
+ end--;
13775
+ }
13776
+ return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13547
13777
  }
13548
13778
 
13549
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13550
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13779
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13780
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13781
+ var httpProtocolControlCharacters = /[\t\n\r]/g;
13782
+ function stripLeadingC0ControlOrSpace(url2) {
13783
+ let i = 0;
13784
+ while (i < url2.length && url2.charCodeAt(i) <= 32) {
13785
+ i++;
13786
+ }
13787
+ return url2.slice(i);
13788
+ }
13789
+ function normalizeURLForProtocolCheck(url2) {
13790
+ return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
13791
+ }
13792
+ function redactFragment(fragment) {
13793
+ if (!fragment) {
13794
+ return fragment;
13795
+ }
13796
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
13797
+ return `${separator}${parameterName}${REDACTED}`;
13798
+ });
13799
+ }
13800
+ function redactSensitiveURLParts(url2) {
13801
+ const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
13802
+ const fragmentIndex = redactedURL.indexOf("#");
13803
+ const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
13804
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(
13805
+ /([?&][^=&#]*=)[^&#]*/g,
13806
+ `$1${REDACTED}`
13807
+ );
13808
+ if (fragmentIndex === -1) {
13809
+ return redactedURLWithoutFragment;
13810
+ }
13811
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
13812
+ }
13813
+ function assertValidHttpProtocolURL(url2, config) {
13814
+ if (typeof url2 === "string") {
13815
+ const normalizedURL = normalizeURLForProtocolCheck(url2);
13816
+ if (malformedHttpProtocol.test(normalizedURL)) {
13817
+ throw new AxiosError_default(
13818
+ `Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
13819
+ AxiosError_default.ERR_INVALID_URL,
13820
+ config
13821
+ );
13822
+ }
13823
+ }
13824
+ }
13825
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
13826
+ assertValidHttpProtocolURL(requestedURL, config);
13551
13827
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13552
13828
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13829
+ assertValidHttpProtocolURL(baseURL, config);
13553
13830
  return combineURLs(baseURL, requestedURL);
13554
13831
  }
13555
13832
  return requestedURL;
@@ -13622,26 +13899,26 @@ function getEnv(key) {
13622
13899
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13623
13900
  }
13624
13901
 
13625
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13902
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13626
13903
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13627
13904
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13628
13905
  import http from "http";
13629
13906
  import https from "https";
13630
- import http2 from "http2";
13631
- import util2 from "util";
13907
+ import http22 from "http2";
13908
+ import util3 from "util";
13632
13909
  import { resolve as resolvePath } from "path";
13633
13910
  import zlib from "zlib";
13634
13911
 
13635
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/env/data.js
13636
- var VERSION = "1.16.1";
13912
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
13913
+ var VERSION = "1.19.0";
13637
13914
 
13638
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
13915
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13639
13916
  function parseProtocol(url2) {
13640
13917
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13641
13918
  return match && match[1] || "";
13642
13919
  }
13643
13920
 
13644
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13921
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
13645
13922
  var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13646
13923
  function fromDataURI(uri, asBlob, options) {
13647
13924
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -13659,13 +13936,13 @@ function fromDataURI(uri, asBlob, options) {
13659
13936
  const params = match[2];
13660
13937
  const encoding = match[3] ? "base64" : "utf8";
13661
13938
  const body = match[4];
13662
- let mime;
13939
+ let mime = "";
13663
13940
  if (type) {
13664
13941
  mime = params ? type + params : type;
13665
13942
  } else if (params) {
13666
13943
  mime = "text/plain" + params;
13667
13944
  }
13668
- const buffer = Buffer.from(decodeURIComponent(body), encoding);
13945
+ const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
13669
13946
  if (asBlob) {
13670
13947
  if (!_Blob) {
13671
13948
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13677,10 +13954,24 @@ function fromDataURI(uri, asBlob, options) {
13677
13954
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13678
13955
  }
13679
13956
 
13680
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
13957
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13681
13958
  import stream3 from "stream";
13682
13959
 
13683
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
13960
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
13961
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
13962
+ function setFormDataHeaders(headers, formHeaders, policy) {
13963
+ if (policy !== "content-only") {
13964
+ headers.set(formHeaders);
13965
+ return;
13966
+ }
13967
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
13968
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
13969
+ headers.set(key, val);
13970
+ }
13971
+ });
13972
+ }
13973
+
13974
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13684
13975
  import stream from "stream";
13685
13976
  var kInternals = /* @__PURE__ */ Symbol("internals");
13686
13977
  var AxiosTransformStream = class extends stream.Transform {
@@ -13803,14 +14094,14 @@ var AxiosTransformStream = class extends stream.Transform {
13803
14094
  };
13804
14095
  var AxiosTransformStream_default = AxiosTransformStream;
13805
14096
 
13806
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14097
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13807
14098
  import { EventEmitter } from "events";
13808
14099
 
13809
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14100
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13810
14101
  import util from "util";
13811
14102
  import { Readable } from "stream";
13812
14103
 
13813
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
14104
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
13814
14105
  var { asyncIterator } = Symbol;
13815
14106
  var readBlob = async function* (blob) {
13816
14107
  if (blob.stream) {
@@ -13825,7 +14116,7 @@ var readBlob = async function* (blob) {
13825
14116
  };
13826
14117
  var readBlob_default = readBlob;
13827
14118
 
13828
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14119
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13829
14120
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13830
14121
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13831
14122
  var CRLF = "\r\n";
@@ -13876,10 +14167,10 @@ var formDataToStream = (form, headersHandler, options) => {
13876
14167
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
13877
14168
  } = options || {};
13878
14169
  if (!utils_default.isFormData(form)) {
13879
- throw TypeError("FormData instance required");
14170
+ throw new TypeError("FormData instance required");
13880
14171
  }
13881
14172
  if (boundary.length < 1 || boundary.length > 70) {
13882
- throw Error("boundary must be 1-70 characters long");
14173
+ throw new Error("boundary must be 1-70 characters long");
13883
14174
  }
13884
14175
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13885
14176
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13910,7 +14201,7 @@ var formDataToStream = (form, headersHandler, options) => {
13910
14201
  };
13911
14202
  var formDataToStream_default = formDataToStream;
13912
14203
 
13913
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14204
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13914
14205
  import stream2 from "stream";
13915
14206
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13916
14207
  __transform(chunk, encoding, callback) {
@@ -13932,7 +14223,88 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13932
14223
  };
13933
14224
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13934
14225
 
13935
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
14226
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14227
+ import http2 from "http2";
14228
+ import util2 from "util";
14229
+ var Http2Sessions = class {
14230
+ constructor() {
14231
+ this.sessions = /* @__PURE__ */ Object.create(null);
14232
+ }
14233
+ getSession(authority, options) {
14234
+ options = Object.assign(
14235
+ {
14236
+ sessionTimeout: 1e3
14237
+ },
14238
+ options
14239
+ );
14240
+ let authoritySessions = this.sessions[authority];
14241
+ if (authoritySessions) {
14242
+ let len = authoritySessions.length;
14243
+ for (let i = 0; i < len; i++) {
14244
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
14245
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14246
+ return sessionHandle;
14247
+ }
14248
+ }
14249
+ }
14250
+ const session = http2.connect(authority, options);
14251
+ let removed;
14252
+ let timer;
14253
+ const removeSession = () => {
14254
+ if (removed) {
14255
+ return;
14256
+ }
14257
+ removed = true;
14258
+ if (timer) {
14259
+ clearTimeout(timer);
14260
+ timer = null;
14261
+ }
14262
+ let entries = authoritySessions, len = entries.length, i = len;
14263
+ while (i--) {
14264
+ if (entries[i][0] === session) {
14265
+ if (len === 1) {
14266
+ delete this.sessions[authority];
14267
+ } else {
14268
+ entries.splice(i, 1);
14269
+ }
14270
+ if (!session.closed) {
14271
+ session.close();
14272
+ }
14273
+ return;
14274
+ }
14275
+ }
14276
+ };
14277
+ const originalRequestFn = session.request;
14278
+ const { sessionTimeout } = options;
14279
+ if (sessionTimeout != null) {
14280
+ let streamsCount = 0;
14281
+ session.request = function() {
14282
+ const stream4 = originalRequestFn.apply(this, arguments);
14283
+ streamsCount++;
14284
+ if (timer) {
14285
+ clearTimeout(timer);
14286
+ timer = null;
14287
+ }
14288
+ stream4.once("close", () => {
14289
+ if (!--streamsCount) {
14290
+ timer = setTimeout(() => {
14291
+ timer = null;
14292
+ removeSession();
14293
+ }, sessionTimeout);
14294
+ }
14295
+ });
14296
+ return stream4;
14297
+ };
14298
+ }
14299
+ session.once("close", removeSession);
14300
+ let entry = [session, options];
14301
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14302
+ return session;
14303
+ }
14304
+ };
14305
+ var Http2Sessions_default = Http2Sessions;
14306
+
14307
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
13936
14308
  var callbackify = (fn, reducer) => {
13937
14309
  return utils_default.isAsyncFn(fn) ? function(...args) {
13938
14310
  const cb = args.pop();
@@ -13947,14 +14319,84 @@ var callbackify = (fn, reducer) => {
13947
14319
  };
13948
14320
  var callbackify_default = callbackify;
13949
14321
 
13950
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13951
- var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
14322
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14323
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
13952
14324
  var isIPv4Loopback = (host) => {
13953
14325
  const parts = host.split(".");
13954
14326
  if (parts.length !== 4) return false;
13955
14327
  if (parts[0] !== "127") return false;
13956
14328
  return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13957
14329
  };
14330
+ var parseIPv4Octet = (text) => {
14331
+ if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
14332
+ const n = parseInt(text.slice(2), 16);
14333
+ return Number.isFinite(n) ? n : null;
14334
+ }
14335
+ if (text.length > 1 && /^0[0-7]+$/.test(text)) {
14336
+ const n = parseInt(text, 8);
14337
+ return Number.isFinite(n) ? n : null;
14338
+ }
14339
+ if (text.length > 1 && /^0[0-9]+$/.test(text)) {
14340
+ return null;
14341
+ }
14342
+ if (/^[0-9]+$/.test(text)) {
14343
+ const n = parseInt(text, 10);
14344
+ return Number.isFinite(n) ? n : null;
14345
+ }
14346
+ return null;
14347
+ };
14348
+ var normalizeIPAddress = (host) => {
14349
+ if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
14350
+ return host;
14351
+ }
14352
+ let h = host;
14353
+ if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
14354
+ h = h.slice(1, -1);
14355
+ }
14356
+ h = h.replace(/\.+$/, "");
14357
+ if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
14358
+ const parts = h.split(".");
14359
+ if (parts.some((p) => p === "")) return host;
14360
+ if (parts.length === 4) {
14361
+ const octets = parts.map(parseIPv4Octet);
14362
+ if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
14363
+ return octets.join(".");
14364
+ }
14365
+ if (parts.length > 4) {
14366
+ return host;
14367
+ }
14368
+ if (parts.length === 1) return host;
14369
+ const literalOctets = parts.slice(0, -1);
14370
+ const tail = parts[parts.length - 1];
14371
+ const tailSlots = 4 - literalOctets.length;
14372
+ const tailValue = parseIPv4Octet(tail);
14373
+ if (tailValue === null) return host;
14374
+ const maxTail = (1 << 8 * tailSlots) - 1;
14375
+ if (tailValue < 0 || tailValue > maxTail) return host;
14376
+ const tailOctets = new Array(tailSlots).fill(0);
14377
+ for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
14378
+ tailOctets[i] = v & 255;
14379
+ }
14380
+ const literal = literalOctets.map(parseIPv4Octet);
14381
+ if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
14382
+ return [...literal, ...tailOctets].join(".");
14383
+ };
14384
+ var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
14385
+ var isIPv6Unspecified = (host) => {
14386
+ if (host === "::") return true;
14387
+ const compressionIndex = host.indexOf("::");
14388
+ if (compressionIndex !== -1) {
14389
+ if (compressionIndex !== host.lastIndexOf("::")) return false;
14390
+ const left = host.slice(0, compressionIndex);
14391
+ const right = host.slice(compressionIndex + 2);
14392
+ const leftGroups = left ? left.split(":") : [];
14393
+ const rightGroups = right ? right.split(":") : [];
14394
+ const explicitGroups = leftGroups.length + rightGroups.length;
14395
+ return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
14396
+ }
14397
+ const groups = host.split(":");
14398
+ return groups.length === 8 && groups.every(isIPv6ZeroGroup);
14399
+ };
13958
14400
  var isIPv6Loopback = (host) => {
13959
14401
  if (host === "::1") return true;
13960
14402
  const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
@@ -13977,6 +14419,7 @@ var isLoopback = (host) => {
13977
14419
  if (!host) return false;
13978
14420
  if (LOOPBACK_HOSTNAMES.has(host)) return true;
13979
14421
  if (isIPv4Loopback(host)) return true;
14422
+ if (isIPv6Unspecified(host)) return true;
13980
14423
  return isIPv6Loopback(host);
13981
14424
  };
13982
14425
  var DEFAULT_PORTS2 = {
@@ -14029,7 +14472,12 @@ var normalizeNoProxyHost = (hostname) => {
14029
14472
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14030
14473
  hostname = hostname.slice(1, -1);
14031
14474
  }
14032
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14475
+ const trimmed = hostname.replace(/\.+$/, "");
14476
+ const ipv4 = normalizeIPAddress(trimmed);
14477
+ if (ipv4 !== trimmed) {
14478
+ return ipv4;
14479
+ }
14480
+ return unmapIPv4MappedIPv6(trimmed);
14033
14481
  };
14034
14482
  function shouldBypassProxy(location) {
14035
14483
  let parsed;
@@ -14051,6 +14499,9 @@ function shouldBypassProxy(location) {
14051
14499
  if (!entry) {
14052
14500
  return false;
14053
14501
  }
14502
+ if (entry === "*") {
14503
+ return true;
14504
+ }
14054
14505
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
14055
14506
  entryHost = normalizeNoProxyHost(entryHost);
14056
14507
  if (!entryHost) {
@@ -14069,7 +14520,7 @@ function shouldBypassProxy(location) {
14069
14520
  });
14070
14521
  }
14071
14522
 
14072
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
14523
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14073
14524
  function speedometer(samplesCount, min) {
14074
14525
  samplesCount = samplesCount || 10;
14075
14526
  const bytes = new Array(samplesCount);
@@ -14105,7 +14556,7 @@ function speedometer(samplesCount, min) {
14105
14556
  }
14106
14557
  var speedometer_default = speedometer;
14107
14558
 
14108
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
14559
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14109
14560
  function throttle(fn, freq) {
14110
14561
  let timestamp = 0;
14111
14562
  let threshold = 1e3 / freq;
@@ -14140,7 +14591,7 @@ function throttle(fn, freq) {
14140
14591
  }
14141
14592
  var throttle_default = throttle;
14142
14593
 
14143
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
14594
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14144
14595
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14145
14596
  let bytesNotified = 0;
14146
14597
  const _speedometer = speedometer_default(50, 250);
@@ -14150,7 +14601,7 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14150
14601
  }
14151
14602
  const rawLoaded = e.loaded;
14152
14603
  const total = e.lengthComputable ? e.total : void 0;
14153
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
14604
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
14154
14605
  const progressBytes = Math.max(0, loaded - bytesNotified);
14155
14606
  const rate = _speedometer(progressBytes);
14156
14607
  bytesNotified = Math.max(bytesNotified, loaded);
@@ -14179,10 +14630,66 @@ var progressEventDecorator = (total, throttled) => {
14179
14630
  throttled[1]
14180
14631
  ];
14181
14632
  };
14182
- var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
14633
+ var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14183
14634
 
14184
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14185
- function estimateDataURLDecodedBytes(url2) {
14635
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14636
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14637
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14638
+ var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
14639
+ var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
14640
+ charCode >= 97 && charCode <= 122 || // a-z
14641
+ charCode >= 48 && charCode <= 57 || // 0-9
14642
+ charCode === 43 || // +
14643
+ charCode === 47 || // /
14644
+ charCode === 45 || // - (base64url)
14645
+ charCode === 95;
14646
+ var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
14647
+ var base64Bytes = (significant) => {
14648
+ const groups = Math.floor(significant / 4);
14649
+ const remainder = significant % 4;
14650
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
14651
+ };
14652
+ var estimateBase64BufferAllocation = (body) => {
14653
+ const len = body.length;
14654
+ let padding = 0;
14655
+ if (len > 0 && body.charCodeAt(len - 1) === 61) {
14656
+ padding++;
14657
+ if (len > 1 && body.charCodeAt(len - 2) === 61) {
14658
+ padding++;
14659
+ }
14660
+ }
14661
+ return Math.floor((len - padding) * 3 / 4);
14662
+ };
14663
+ var estimatePercentDecodedBase64Bytes = (body) => {
14664
+ const len = body.length;
14665
+ let significant = 0;
14666
+ let padding = 0;
14667
+ let invalid = false;
14668
+ for (let i = 0; i < len; i++) {
14669
+ let code = body.charCodeAt(i);
14670
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
14671
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
14672
+ i += 2;
14673
+ }
14674
+ if (isBase64Whitespace(code)) {
14675
+ continue;
14676
+ }
14677
+ if (code === 61) {
14678
+ padding++;
14679
+ continue;
14680
+ }
14681
+ if (!isBase64Char(code) || padding > 0) {
14682
+ invalid = true;
14683
+ continue;
14684
+ }
14685
+ significant++;
14686
+ }
14687
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
14688
+ return estimateBase64BufferAllocation(body);
14689
+ }
14690
+ return base64Bytes(significant);
14691
+ };
14692
+ var estimateDataURLBytes = (url2, estimateBase64) => {
14186
14693
  if (!url2 || typeof url2 !== "string") return 0;
14187
14694
  if (!url2.startsWith("data:")) return 0;
14188
14695
  const comma = url2.indexOf(",");
@@ -14191,51 +14698,15 @@ function estimateDataURLDecodedBytes(url2) {
14191
14698
  const body = url2.slice(comma + 1);
14192
14699
  const isBase64 = /;base64/i.test(meta);
14193
14700
  if (isBase64) {
14194
- let effectiveLen = body.length;
14195
- const len = body.length;
14196
- for (let i = 0; i < len; i++) {
14197
- if (body.charCodeAt(i) === 37 && i + 2 < len) {
14198
- const a = body.charCodeAt(i + 1);
14199
- const b = body.charCodeAt(i + 2);
14200
- const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
14201
- if (isHex) {
14202
- effectiveLen -= 2;
14203
- i += 2;
14204
- }
14205
- }
14206
- }
14207
- let pad = 0;
14208
- let idx = len - 1;
14209
- const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
14210
- body.charCodeAt(j - 1) === 51 && // '3'
14211
- (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
14212
- if (idx >= 0) {
14213
- if (body.charCodeAt(idx) === 61) {
14214
- pad++;
14215
- idx--;
14216
- } else if (tailIsPct3D(idx)) {
14217
- pad++;
14218
- idx -= 3;
14219
- }
14220
- }
14221
- if (pad === 1 && idx >= 0) {
14222
- if (body.charCodeAt(idx) === 61) {
14223
- pad++;
14224
- } else if (tailIsPct3D(idx)) {
14225
- pad++;
14226
- }
14227
- }
14228
- const groups = Math.floor(effectiveLen / 4);
14229
- const bytes2 = groups * 3 - (pad || 0);
14230
- return bytes2 > 0 ? bytes2 : 0;
14231
- }
14232
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14233
- return Buffer.byteLength(body, "utf8");
14701
+ return estimateBase64(body);
14234
14702
  }
14235
14703
  let bytes = 0;
14236
14704
  for (let i = 0, len = body.length; i < len; i++) {
14237
14705
  const c = body.charCodeAt(i);
14238
- if (c < 128) {
14706
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
14707
+ bytes += 1;
14708
+ i += 2;
14709
+ } else if (c < 128) {
14239
14710
  bytes += 1;
14240
14711
  } else if (c < 2048) {
14241
14712
  bytes += 2;
@@ -14252,9 +14723,19 @@ function estimateDataURLDecodedBytes(url2) {
14252
14723
  }
14253
14724
  }
14254
14725
  return bytes;
14726
+ };
14727
+ function estimateDataURLDecodedBytes(url2) {
14728
+ const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
14729
+ return estimateDataURLBytes(
14730
+ fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
14731
+ estimatePercentDecodedBase64Bytes
14732
+ );
14733
+ }
14734
+ function estimateDataURLBufferAllocation(url2) {
14735
+ return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
14255
14736
  }
14256
14737
 
14257
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14738
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14258
14739
  var zlibOptions = {
14259
14740
  flush: zlib.constants.Z_SYNC_FLUSH,
14260
14741
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14263,26 +14744,51 @@ var brotliOptions = {
14263
14744
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
14264
14745
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
14265
14746
  };
14747
+ var zstdOptions = {
14748
+ flush: zlib.constants.ZSTD_e_flush,
14749
+ finishFlush: zlib.constants.ZSTD_e_flush
14750
+ };
14266
14751
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
14752
+ var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
14753
+ var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
14754
+ var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
14755
+ var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
14267
14756
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14268
14757
  var isHttps = /https:?/;
14269
- var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14270
- function setFormDataHeaders(headers, formHeaders, policy) {
14271
- if (policy !== "content-only") {
14272
- headers.set(formHeaders);
14273
- return;
14274
- }
14275
- Object.entries(formHeaders).forEach(([key, val]) => {
14276
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14277
- headers.set(key, val);
14278
- }
14279
- });
14280
- }
14281
14758
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14282
14759
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
14283
14760
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14284
14761
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14285
14762
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
14763
+ var NODE_NATIVE_ENV_PROXY_SUPPORT = {
14764
+ 22: 21,
14765
+ 24: 5
14766
+ };
14767
+ function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
14768
+ if (!nodeVersion) {
14769
+ return false;
14770
+ }
14771
+ const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
14772
+ if (!Number.isInteger(major) || !Number.isInteger(minor)) {
14773
+ return false;
14774
+ }
14775
+ if (major > 24) {
14776
+ return true;
14777
+ }
14778
+ return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
14779
+ }
14780
+ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
14781
+ if (!isNodeNativeEnvProxySupported(nodeVersion)) {
14782
+ return false;
14783
+ }
14784
+ const agentOptions = agent && agent.options;
14785
+ return Boolean(
14786
+ agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
14787
+ );
14788
+ }
14789
+ function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
14790
+ return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
14791
+ }
14286
14792
  function getTunnelingAgent(agentOptions, userHttpsAgent) {
14287
14793
  const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14288
14794
  const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
@@ -14290,6 +14796,13 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
14290
14796
  if (agent) return agent;
14291
14797
  const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14292
14798
  agent = new import_https_proxy_agent.default(merged);
14799
+ if (userHttpsAgent && userHttpsAgent.options) {
14800
+ const originTLSOptions = { ...userHttpsAgent.options };
14801
+ const callback = agent.callback;
14802
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
14803
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
14804
+ };
14805
+ }
14293
14806
  agent[kAxiosInstalledTunnel] = true;
14294
14807
  cache.set(key, agent);
14295
14808
  return agent;
@@ -14311,90 +14824,45 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
14311
14824
  stream4.on("end", flush).on("error", flush);
14312
14825
  return throttled;
14313
14826
  };
14314
- var Http2Sessions = class {
14315
- constructor() {
14316
- this.sessions = /* @__PURE__ */ Object.create(null);
14317
- }
14318
- getSession(authority, options) {
14319
- options = Object.assign(
14320
- {
14321
- sessionTimeout: 1e3
14322
- },
14323
- options
14324
- );
14325
- let authoritySessions = this.sessions[authority];
14326
- if (authoritySessions) {
14327
- let len = authoritySessions.length;
14328
- for (let i = 0; i < len; i++) {
14329
- const [sessionHandle, sessionOptions] = authoritySessions[i];
14330
- if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14331
- return sessionHandle;
14332
- }
14333
- }
14334
- }
14335
- const session = http2.connect(authority, options);
14336
- let removed;
14337
- const removeSession = () => {
14338
- if (removed) {
14339
- return;
14340
- }
14341
- removed = true;
14342
- let entries = authoritySessions, len = entries.length, i = len;
14343
- while (i--) {
14344
- if (entries[i][0] === session) {
14345
- if (len === 1) {
14346
- delete this.sessions[authority];
14347
- } else {
14348
- entries.splice(i, 1);
14349
- }
14350
- if (!session.closed) {
14351
- session.close();
14352
- }
14353
- return;
14354
- }
14355
- }
14356
- };
14357
- const originalRequestFn = session.request;
14358
- const { sessionTimeout } = options;
14359
- if (sessionTimeout != null) {
14360
- let timer;
14361
- let streamsCount = 0;
14362
- session.request = function() {
14363
- const stream4 = originalRequestFn.apply(this, arguments);
14364
- streamsCount++;
14365
- if (timer) {
14366
- clearTimeout(timer);
14367
- timer = null;
14368
- }
14369
- stream4.once("close", () => {
14370
- if (!--streamsCount) {
14371
- timer = setTimeout(() => {
14372
- timer = null;
14373
- removeSession();
14374
- }, sessionTimeout);
14375
- }
14376
- });
14377
- return stream4;
14378
- };
14379
- }
14380
- session.once("close", removeSession);
14381
- let entry = [session, options];
14382
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14383
- return session;
14384
- }
14385
- };
14386
- var http2Sessions = new Http2Sessions();
14827
+ var http2Sessions = new Http2Sessions_default();
14387
14828
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14388
14829
  if (options.beforeRedirects.proxy) {
14389
14830
  options.beforeRedirects.proxy(options);
14390
14831
  }
14832
+ if (options.beforeRedirects.auth) {
14833
+ options.beforeRedirects.auth(options);
14834
+ }
14835
+ if (options.beforeRedirects.sensitiveHeaders) {
14836
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
14837
+ }
14391
14838
  if (options.beforeRedirects.config) {
14392
14839
  options.beforeRedirects.config(options, responseDetails, requestDetails);
14393
14840
  }
14394
14841
  }
14395
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
14842
+ function stripMatchingHeaders(headers, sensitiveSet) {
14843
+ if (!headers) {
14844
+ return;
14845
+ }
14846
+ Object.keys(headers).forEach((header) => {
14847
+ if (sensitiveSet.has(header.toLowerCase())) {
14848
+ delete headers[header];
14849
+ }
14850
+ });
14851
+ }
14852
+ function isSameOriginRedirect(redirectOptions, requestDetails) {
14853
+ if (!requestDetails) {
14854
+ return false;
14855
+ }
14856
+ try {
14857
+ return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
14858
+ } catch (e) {
14859
+ return false;
14860
+ }
14861
+ }
14862
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
14396
14863
  let proxy = configProxy;
14397
- if (!proxy && proxy !== false) {
14864
+ const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
14865
+ if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14398
14866
  const proxyUrl = getProxyForUrl(location);
14399
14867
  if (proxyUrl) {
14400
14868
  if (!shouldBypassProxy(location)) {
@@ -14485,7 +14953,14 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
14485
14953
  }
14486
14954
  }
14487
14955
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
14488
- setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
14956
+ setProxy(
14957
+ redirectOptions,
14958
+ configProxy,
14959
+ redirectOptions.href,
14960
+ true,
14961
+ configHttpsAgent,
14962
+ configHttpAgent
14963
+ );
14489
14964
  };
14490
14965
  }
14491
14966
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -14524,7 +14999,7 @@ var http2Transport = {
14524
14999
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
14525
15000
  const { http2Options, headers } = options;
14526
15001
  const session = http2Sessions.getSession(authority, http2Options);
14527
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
15002
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
14528
15003
  const http2Headers = {
14529
15004
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
14530
15005
  [HTTP2_HEADER_METHOD]: options.method,
@@ -14548,16 +15023,25 @@ var http2Transport = {
14548
15023
  };
14549
15024
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14550
15025
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
14551
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15026
+ const own2 = (key) => utils_default.getSafeProp(config, key);
15027
+ const transitional2 = own2("transitional") || transitional_default;
14552
15028
  let data = own2("data");
14553
15029
  let lookup = own2("lookup");
14554
15030
  let family = own2("family");
14555
15031
  let httpVersion = own2("httpVersion");
14556
15032
  if (httpVersion === void 0) httpVersion = 1;
14557
15033
  let http2Options = own2("http2Options");
15034
+ const httpAgent = own2("httpAgent");
15035
+ const httpsAgent = own2("httpsAgent");
15036
+ const configProxy = own2("proxy");
14558
15037
  const responseType = own2("responseType");
14559
15038
  const responseEncoding = own2("responseEncoding");
14560
- const method = config.method.toUpperCase();
15039
+ const socketPath = own2("socketPath");
15040
+ const method = own2("method").toUpperCase();
15041
+ const maxRedirects = own2("maxRedirects");
15042
+ const maxBodyLength = own2("maxBodyLength");
15043
+ const maxContentLength = own2("maxContentLength");
15044
+ const decompress = own2("decompress");
14561
15045
  let isDone;
14562
15046
  let rejected = false;
14563
15047
  let req;
@@ -14590,7 +15074,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14590
15074
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14591
15075
  );
14592
15076
  } catch (err) {
14593
- console.warn("emit error", err);
14594
15077
  }
14595
15078
  }
14596
15079
  function clearConnectPhaseTimer() {
@@ -14600,10 +15083,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14600
15083
  }
14601
15084
  }
14602
15085
  function createTimeoutError() {
14603
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14604
- const transitional2 = config.transitional || transitional_default;
14605
- if (config.timeoutErrorMessage) {
14606
- timeoutErrorMessage = config.timeoutErrorMessage;
15086
+ const configTimeout = own2("timeout");
15087
+ let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
15088
+ const configTimeoutErrorMessage = own2("timeoutErrorMessage");
15089
+ if (configTimeoutErrorMessage) {
15090
+ timeoutErrorMessage = configTimeoutErrorMessage;
14607
15091
  }
14608
15092
  return new AxiosError_default(
14609
15093
  timeoutErrorMessage,
@@ -14647,17 +15131,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14647
15131
  onFinished();
14648
15132
  }
14649
15133
  });
14650
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14651
- const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
15134
+ const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
15135
+ const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
15136
+ const parsed = new URL(fullPath, urlBase);
14652
15137
  const protocol = parsed.protocol || supportedProtocols[0];
14653
15138
  if (protocol === "data:") {
14654
- if (config.maxContentLength > -1) {
14655
- const dataUrl = String(config.url || fullPath || "");
14656
- const estimated = estimateDataURLDecodedBytes(dataUrl);
14657
- if (estimated > config.maxContentLength) {
15139
+ if (maxContentLength > -1) {
15140
+ const dataUrl = String(own2("url") || fullPath || "");
15141
+ const estimated = estimateDataURLBufferAllocation(dataUrl);
15142
+ if (estimated > maxContentLength) {
14658
15143
  return reject(
14659
15144
  new AxiosError_default(
14660
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15145
+ "maxContentLength size of " + maxContentLength + " exceeded",
14661
15146
  AxiosError_default.ERR_BAD_RESPONSE,
14662
15147
  config
14663
15148
  )
@@ -14674,7 +15159,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14674
15159
  });
14675
15160
  }
14676
15161
  try {
14677
- convertedData = fromDataURI(config.url, responseType === "blob", {
15162
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
14678
15163
  Blob: config.env && config.env.Blob
14679
15164
  });
14680
15165
  } catch (err) {
@@ -14723,7 +15208,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14723
15208
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14724
15209
  if (!headers.hasContentLength()) {
14725
15210
  try {
14726
- const knownLength = await util2.promisify(data.getLength).call(data);
15211
+ const knownLength = await util3.promisify(data.getLength).call(data);
14727
15212
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
14728
15213
  } catch (e) {
14729
15214
  }
@@ -14748,7 +15233,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14748
15233
  );
14749
15234
  }
14750
15235
  headers.setContentLength(data.length, false);
14751
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
15236
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
14752
15237
  return reject(
14753
15238
  new AxiosError_default(
14754
15239
  "Request body larger than maxBodyLength limit",
@@ -14784,7 +15269,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14784
15269
  data,
14785
15270
  progressEventDecorator(
14786
15271
  contentLength,
14787
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
15272
+ progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
14788
15273
  )
14789
15274
  )
14790
15275
  );
@@ -14792,11 +15277,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14792
15277
  let auth = void 0;
14793
15278
  const configAuth = own2("auth");
14794
15279
  if (configAuth) {
14795
- const username = configAuth.username || "";
14796
- const password = configAuth.password || "";
15280
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
15281
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
14797
15282
  auth = username + ":" + password;
14798
15283
  }
14799
- if (!auth && parsed.username) {
15284
+ if (!auth && (parsed.username || parsed.password)) {
14800
15285
  const urlUsername = decodeURIComponentSafe(parsed.username);
14801
15286
  const urlPassword = decodeURIComponentSafe(parsed.password);
14802
15287
  auth = urlUsername + ":" + urlPassword;
@@ -14806,26 +15291,27 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14806
15291
  try {
14807
15292
  path = buildURL(
14808
15293
  parsed.pathname + parsed.search,
14809
- config.params,
14810
- config.paramsSerializer
15294
+ own2("params"),
15295
+ own2("paramsSerializer")
14811
15296
  ).replace(/^\?/, "");
14812
15297
  } catch (err) {
14813
- const customErr = new Error(err.message);
14814
- customErr.config = config;
14815
- customErr.url = config.url;
14816
- customErr.exists = true;
14817
- return reject(customErr);
15298
+ return reject(
15299
+ AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
15300
+ url: own2("url"),
15301
+ exists: true
15302
+ })
15303
+ );
14818
15304
  }
14819
15305
  headers.set(
14820
15306
  "Accept-Encoding",
14821
- "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
15307
+ utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
14822
15308
  false
14823
15309
  );
14824
15310
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
14825
15311
  path,
14826
15312
  method,
14827
15313
  headers: toByteStringHeaderObject(headers),
14828
- agents: { http: config.httpAgent, https: config.httpsAgent },
15314
+ agents: { http: httpAgent, https: httpsAgent },
14829
15315
  auth,
14830
15316
  protocol,
14831
15317
  family,
@@ -14834,45 +15320,48 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14834
15320
  http2Options
14835
15321
  });
14836
15322
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
14837
- if (config.socketPath) {
14838
- if (typeof config.socketPath !== "string") {
15323
+ if (socketPath) {
15324
+ if (typeof socketPath !== "string") {
14839
15325
  return reject(
14840
15326
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14841
15327
  );
14842
15328
  }
14843
- if (config.allowedSocketPaths != null) {
14844
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14845
- const resolvedSocket = resolvePath(config.socketPath);
15329
+ const allowedSocketPaths = own2("allowedSocketPaths");
15330
+ if (allowedSocketPaths != null) {
15331
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
15332
+ const resolvedSocket = resolvePath(socketPath);
14846
15333
  const isAllowed = allowed.some(
14847
15334
  (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14848
15335
  );
14849
15336
  if (!isAllowed) {
14850
15337
  return reject(
14851
15338
  new AxiosError_default(
14852
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
15339
+ `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
14853
15340
  AxiosError_default.ERR_BAD_OPTION_VALUE,
14854
15341
  config
14855
15342
  )
14856
15343
  );
14857
15344
  }
14858
15345
  }
14859
- options.socketPath = config.socketPath;
15346
+ options.socketPath = socketPath;
14860
15347
  } else {
14861
15348
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
14862
15349
  options.port = parsed.port;
14863
15350
  setProxy(
14864
15351
  options,
14865
- config.proxy,
15352
+ configProxy,
14866
15353
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14867
15354
  false,
14868
- config.httpsAgent
15355
+ httpsAgent,
15356
+ httpAgent
14869
15357
  );
14870
15358
  }
14871
15359
  let transport;
14872
15360
  let isNativeTransport = false;
15361
+ let transportEnforcesMaxBodyLength = false;
14873
15362
  const isHttpsRequest = isHttps.test(options.protocol);
14874
15363
  if (options.agent == null) {
14875
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
15364
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
14876
15365
  }
14877
15366
  if (isHttp2) {
14878
15367
  transport = http2Transport;
@@ -14880,22 +15369,69 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14880
15369
  const configTransport = own2("transport");
14881
15370
  if (configTransport) {
14882
15371
  transport = configTransport;
14883
- } else if (config.maxRedirects === 0) {
15372
+ } else if (maxRedirects === 0) {
14884
15373
  transport = isHttpsRequest ? https : http;
14885
15374
  isNativeTransport = true;
14886
15375
  } else {
14887
- if (config.maxRedirects) {
14888
- options.maxRedirects = config.maxRedirects;
15376
+ transportEnforcesMaxBodyLength = true;
15377
+ options.sensitiveHeaders = [];
15378
+ if (maxRedirects) {
15379
+ options.maxRedirects = maxRedirects;
14889
15380
  }
14890
15381
  const configBeforeRedirect = own2("beforeRedirect");
14891
15382
  if (configBeforeRedirect) {
14892
15383
  options.beforeRedirects.config = configBeforeRedirect;
14893
15384
  }
15385
+ if (auth) {
15386
+ const requestOrigin = parsed.origin;
15387
+ const authToRestore = auth;
15388
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
15389
+ try {
15390
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
15391
+ redirectOptions.auth = authToRestore;
15392
+ }
15393
+ } catch (e) {
15394
+ }
15395
+ };
15396
+ }
15397
+ const sensitiveHeaders = own2("sensitiveHeaders");
15398
+ if (sensitiveHeaders != null) {
15399
+ if (!utils_default.isArray(sensitiveHeaders)) {
15400
+ return reject(
15401
+ new AxiosError_default(
15402
+ "sensitiveHeaders must be an array of strings",
15403
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15404
+ config
15405
+ )
15406
+ );
15407
+ }
15408
+ const sensitiveSet = /* @__PURE__ */ new Set();
15409
+ for (const header of sensitiveHeaders) {
15410
+ if (!utils_default.isString(header)) {
15411
+ return reject(
15412
+ new AxiosError_default(
15413
+ "sensitiveHeaders must be an array of strings",
15414
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15415
+ config
15416
+ )
15417
+ );
15418
+ }
15419
+ sensitiveSet.add(header.toLowerCase());
15420
+ }
15421
+ if (sensitiveSet.size) {
15422
+ options.sensitiveHeaders = Array.from(sensitiveSet);
15423
+ options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
15424
+ if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
15425
+ stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
15426
+ }
15427
+ };
15428
+ }
15429
+ }
14894
15430
  transport = isHttpsRequest ? httpsFollow : httpFollow;
14895
15431
  }
14896
15432
  }
14897
- if (config.maxBodyLength > -1) {
14898
- options.maxBodyLength = config.maxBodyLength;
15433
+ if (maxBodyLength > -1) {
15434
+ options.maxBodyLength = maxBodyLength;
14899
15435
  } else {
14900
15436
  options.maxBodyLength = Infinity;
14901
15437
  }
@@ -14915,7 +15451,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14915
15451
  transformStream,
14916
15452
  progressEventDecorator(
14917
15453
  responseLength,
14918
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
15454
+ progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3)
14919
15455
  )
14920
15456
  )
14921
15457
  );
@@ -14923,7 +15459,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14923
15459
  }
14924
15460
  let responseStream = res;
14925
15461
  const lastRequest = res.req || req;
14926
- if (config.decompress !== false && res.headers["content-encoding"]) {
15462
+ if (decompress !== false && res.headers["content-encoding"]) {
14927
15463
  if (method === "HEAD" || res.statusCode === 204) {
14928
15464
  delete res.headers["content-encoding"];
14929
15465
  }
@@ -14946,6 +15482,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14946
15482
  streams.push(zlib.createBrotliDecompress(brotliOptions));
14947
15483
  delete res.headers["content-encoding"];
14948
15484
  }
15485
+ break;
15486
+ case "zstd":
15487
+ if (isZstdSupported) {
15488
+ streams.push(zlib.createZstdDecompress(zstdOptions));
15489
+ delete res.headers["content-encoding"];
15490
+ }
15491
+ break;
14949
15492
  }
14950
15493
  }
14951
15494
  responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
@@ -14957,8 +15500,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14957
15500
  request: lastRequest
14958
15501
  };
14959
15502
  if (responseType === "stream") {
14960
- if (config.maxContentLength > -1) {
14961
- const limit = config.maxContentLength;
15503
+ if (maxContentLength > -1) {
15504
+ const limit = maxContentLength;
14962
15505
  const source = responseStream;
14963
15506
  async function* enforceMaxContentLength() {
14964
15507
  let totalResponseBytes = 0;
@@ -14987,12 +15530,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14987
15530
  responseStream.on("data", function handleStreamData(chunk) {
14988
15531
  responseBuffer.push(chunk);
14989
15532
  totalResponseBytes += chunk.length;
14990
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
15533
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
14991
15534
  rejected = true;
14992
15535
  responseStream.destroy();
14993
15536
  abort(
14994
15537
  new AxiosError_default(
14995
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15538
+ "maxContentLength size of " + maxContentLength + " exceeded",
14996
15539
  AxiosError_default.ERR_BAD_RESPONSE,
14997
15540
  config,
14998
15541
  lastRequest
@@ -15053,7 +15596,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15053
15596
  });
15054
15597
  const boundSockets = /* @__PURE__ */ new Set();
15055
15598
  req.on("socket", function handleRequestSocket(socket) {
15056
- socket.setKeepAlive(true, 1e3 * 60);
15599
+ if (typeof socket.setKeepAlive === "function") {
15600
+ socket.setKeepAlive(true, 1e3 * 60);
15601
+ }
15057
15602
  if (!socket[kAxiosSocketListener]) {
15058
15603
  socket.on("error", function handleSocketError(err) {
15059
15604
  const current = socket[kAxiosCurrentReq];
@@ -15075,8 +15620,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15075
15620
  }
15076
15621
  boundSockets.clear();
15077
15622
  });
15078
- if (config.timeout) {
15079
- const timeout = parseInt(config.timeout, 10);
15623
+ if (own2("timeout")) {
15624
+ const timeout = parseInt(own2("timeout"), 10);
15080
15625
  if (Number.isNaN(timeout)) {
15081
15626
  abort(
15082
15627
  new AxiosError_default(
@@ -15115,8 +15660,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15115
15660
  }
15116
15661
  });
15117
15662
  let uploadStream = data;
15118
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15119
- const limit = config.maxBodyLength;
15663
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
15664
+ const limit = maxBodyLength;
15120
15665
  let bytesSent = 0;
15121
15666
  uploadStream = stream3.pipeline(
15122
15667
  [
@@ -15152,7 +15697,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15152
15697
  });
15153
15698
  };
15154
15699
 
15155
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
15700
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15156
15701
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15157
15702
  url2 = new URL(url2, platform_default.origin);
15158
15703
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15161,7 +15706,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15161
15706
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15162
15707
  ) : () => true;
15163
15708
 
15164
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
15709
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
15165
15710
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15166
15711
  // Standard browser envs support document.cookie
15167
15712
  {
@@ -15192,7 +15737,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15192
15737
  const cookie = cookies[i].replace(/^\s+/, "");
15193
15738
  const eq = cookie.indexOf("=");
15194
15739
  if (eq !== -1 && cookie.slice(0, eq) === name) {
15195
- return decodeURIComponent(cookie.slice(eq + 1));
15740
+ try {
15741
+ return decodeURIComponent(cookie.slice(eq + 1));
15742
+ } catch (e) {
15743
+ return cookie.slice(eq + 1);
15744
+ }
15196
15745
  }
15197
15746
  }
15198
15747
  return null;
@@ -15214,9 +15763,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15214
15763
  }
15215
15764
  );
15216
15765
 
15217
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
15766
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15218
15767
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
15768
+ var ownEnumerableKeys = (thing) => {
15769
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
15770
+ return Object.keys(thing).concat(
15771
+ Object.getOwnPropertySymbols(thing).filter(
15772
+ (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
15773
+ )
15774
+ );
15775
+ }
15776
+ return Object.keys(thing);
15777
+ };
15219
15778
  function mergeConfig(config1, config2) {
15779
+ config1 = config1 || {};
15220
15780
  config2 = config2 || {};
15221
15781
  const config = /* @__PURE__ */ Object.create(null);
15222
15782
  Object.defineProperty(config, "hasOwnProperty", {
@@ -15257,6 +15817,23 @@ function mergeConfig(config1, config2) {
15257
15817
  return getMergedValue(void 0, a);
15258
15818
  }
15259
15819
  }
15820
+ function getMergedTransitionalOption(prop) {
15821
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
15822
+ if (!utils_default.isUndefined(transitional2)) {
15823
+ if (utils_default.isPlainObject(transitional2)) {
15824
+ if (utils_default.hasOwnProp(transitional2, prop)) {
15825
+ return transitional2[prop];
15826
+ }
15827
+ } else {
15828
+ return void 0;
15829
+ }
15830
+ }
15831
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
15832
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
15833
+ return transitional1[prop];
15834
+ }
15835
+ return void 0;
15836
+ }
15260
15837
  function mergeDirectKeys(a, b, prop) {
15261
15838
  if (utils_default.hasOwnProp(config2, prop)) {
15262
15839
  return getMergedValue(a, b);
@@ -15296,7 +15873,7 @@ function mergeConfig(config1, config2) {
15296
15873
  validateStatus: mergeDirectKeys,
15297
15874
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
15298
15875
  };
15299
- utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15876
+ utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15300
15877
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
15301
15878
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15302
15879
  const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
@@ -15304,27 +15881,22 @@ function mergeConfig(config1, config2) {
15304
15881
  const configValue = merge2(a, b, prop);
15305
15882
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15306
15883
  });
15884
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
15885
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
15886
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
15887
+ } else {
15888
+ delete config.validateStatus;
15889
+ }
15890
+ }
15307
15891
  return config;
15308
15892
  }
15309
15893
 
15310
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
15311
- var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15312
- function setFormDataHeaders2(headers, formHeaders, policy) {
15313
- if (policy !== "content-only") {
15314
- headers.set(formHeaders);
15315
- return;
15316
- }
15317
- Object.entries(formHeaders).forEach(([key, val]) => {
15318
- if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15319
- headers.set(key, val);
15320
- }
15321
- });
15322
- }
15894
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15323
15895
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15324
15896
  /%([0-9A-F]{2})/gi,
15325
15897
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
15326
15898
  );
15327
- var resolveConfig_default = (config) => {
15899
+ function resolveConfig(config) {
15328
15900
  const newConfig = mergeConfig({}, config);
15329
15901
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15330
15902
  const data = own2("data");
@@ -15338,21 +15910,27 @@ var resolveConfig_default = (config) => {
15338
15910
  const url2 = own2("url");
15339
15911
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
15340
15912
  newConfig.url = buildURL(
15341
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
15342
- config.params,
15343
- config.paramsSerializer
15913
+ buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
15914
+ own2("params"),
15915
+ own2("paramsSerializer")
15344
15916
  );
15345
15917
  if (auth) {
15346
- headers.set(
15347
- "Authorization",
15348
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
15349
- );
15918
+ const username = utils_default.getSafeProp(auth, "username") || "";
15919
+ const password = utils_default.getSafeProp(auth, "password") || "";
15920
+ try {
15921
+ headers.set(
15922
+ "Authorization",
15923
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
15924
+ );
15925
+ } catch (e) {
15926
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
15927
+ }
15350
15928
  }
15351
15929
  if (utils_default.isFormData(data)) {
15352
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
15930
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15353
15931
  headers.setContentType(void 0);
15354
15932
  } else if (utils_default.isFunction(data.getHeaders)) {
15355
- setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
15933
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
15356
15934
  }
15357
15935
  }
15358
15936
  if (platform_default.hasStandardBrowserEnv) {
@@ -15368,9 +15946,10 @@ var resolveConfig_default = (config) => {
15368
15946
  }
15369
15947
  }
15370
15948
  return newConfig;
15371
- };
15949
+ }
15950
+ var resolveConfig_default = resolveConfig;
15372
15951
 
15373
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
15952
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15374
15953
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15375
15954
  var xhr_default = isXHRAdapterSupported && function(config) {
15376
15955
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15510,13 +16089,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15510
16089
  config
15511
16090
  )
15512
16091
  );
16092
+ done();
15513
16093
  return;
15514
16094
  }
15515
16095
  request.send(requestData || null);
15516
16096
  });
15517
16097
  };
15518
16098
 
15519
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
16099
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
15520
16100
  var composeSignals = (signals, timeout) => {
15521
16101
  signals = signals ? signals.filter(Boolean) : [];
15522
16102
  if (!timeout && !signals.length) {
@@ -15549,14 +16129,23 @@ var composeSignals = (signals, timeout) => {
15549
16129
  });
15550
16130
  signals = null;
15551
16131
  };
15552
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
16132
+ signals.forEach((signal2) => {
16133
+ if (aborted) {
16134
+ return;
16135
+ }
16136
+ if (signal2.aborted) {
16137
+ onabort.call(signal2);
16138
+ return;
16139
+ }
16140
+ signal2.addEventListener("abort", onabort, { once: true });
16141
+ });
15553
16142
  const { signal } = controller;
15554
16143
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
15555
16144
  return signal;
15556
16145
  };
15557
16146
  var composeSignals_default = composeSignals;
15558
16147
 
15559
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
16148
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
15560
16149
  var streamChunk = function* (chunk, chunkSize) {
15561
16150
  let len = chunk.byteLength;
15562
16151
  if (!chunkSize || len < chunkSize) {
@@ -15636,9 +16225,23 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15636
16225
  );
15637
16226
  };
15638
16227
 
15639
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
16228
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
15640
16229
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
15641
16230
  var { isFunction: isFunction2 } = utils_default;
16231
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
16232
+ /%([0-9A-F]{2})/gi,
16233
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
16234
+ );
16235
+ var decodeURIComponentSafe2 = (value) => {
16236
+ if (!utils_default.isString(value)) {
16237
+ return value;
16238
+ }
16239
+ try {
16240
+ return decodeURIComponent(value);
16241
+ } catch (error) {
16242
+ return value;
16243
+ }
16244
+ };
15642
16245
  var test = (fn, ...args) => {
15643
16246
  try {
15644
16247
  return !!fn(...args);
@@ -15646,6 +16249,14 @@ var test = (fn, ...args) => {
15646
16249
  return false;
15647
16250
  }
15648
16251
  };
16252
+ var maybeWithAuthCredentials = (url2) => {
16253
+ const protocolIndex = url2.indexOf("://");
16254
+ let urlToCheck = url2;
16255
+ if (protocolIndex !== -1) {
16256
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
16257
+ }
16258
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
16259
+ };
15649
16260
  var factory = (env) => {
15650
16261
  const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15651
16262
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
@@ -15750,6 +16361,7 @@ var factory = (env) => {
15750
16361
  } = resolveConfig_default(config);
15751
16362
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15752
16363
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
16364
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15753
16365
  let _fetch = envFetch || fetch;
15754
16366
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15755
16367
  let composedSignal = composeSignals_default(
@@ -15761,7 +16373,47 @@ var factory = (env) => {
15761
16373
  composedSignal.unsubscribe();
15762
16374
  });
15763
16375
  let requestContentLength;
16376
+ let pendingBodyError = null;
16377
+ const maxBodyLengthError = () => new AxiosError_default(
16378
+ "Request body larger than maxBodyLength limit",
16379
+ AxiosError_default.ERR_BAD_REQUEST,
16380
+ config,
16381
+ request
16382
+ );
15764
16383
  try {
16384
+ let auth = void 0;
16385
+ const configAuth = own2("auth");
16386
+ if (configAuth) {
16387
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
16388
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
16389
+ auth = {
16390
+ username,
16391
+ password
16392
+ };
16393
+ }
16394
+ if (maybeWithAuthCredentials(url2)) {
16395
+ const parsedURL = new URL(url2, platform_default.origin);
16396
+ if (!auth && (parsedURL.username || parsedURL.password)) {
16397
+ const urlUsername = decodeURIComponentSafe2(parsedURL.username);
16398
+ const urlPassword = decodeURIComponentSafe2(parsedURL.password);
16399
+ auth = {
16400
+ username: urlUsername,
16401
+ password: urlPassword
16402
+ };
16403
+ }
16404
+ if (parsedURL.username || parsedURL.password) {
16405
+ parsedURL.username = "";
16406
+ parsedURL.password = "";
16407
+ url2 = parsedURL.href;
16408
+ }
16409
+ }
16410
+ if (auth) {
16411
+ headers.delete("authorization");
16412
+ headers.set(
16413
+ "Authorization",
16414
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
16415
+ );
16416
+ }
15765
16417
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15766
16418
  const estimated = estimateDataURLDecodedBytes(url2);
15767
16419
  if (estimated > maxContentLength) {
@@ -15774,33 +16426,55 @@ var factory = (env) => {
15774
16426
  }
15775
16427
  }
15776
16428
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
15777
- const outboundLength = await resolveBodyLength(headers, data);
15778
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15779
- throw new AxiosError_default(
15780
- "Request body larger than maxBodyLength limit",
15781
- AxiosError_default.ERR_BAD_REQUEST,
15782
- config,
15783
- request
15784
- );
16429
+ const outboundLength = await getBodyLength(data);
16430
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
16431
+ requestContentLength = outboundLength;
16432
+ if (outboundLength > maxBodyLength) {
16433
+ throw maxBodyLengthError();
16434
+ }
15785
16435
  }
15786
16436
  }
15787
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
15788
- let _request = new Request(url2, {
15789
- method: "POST",
15790
- body: data,
15791
- duplex: "half"
15792
- });
15793
- let contentTypeHeader;
15794
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
15795
- headers.setContentType(contentTypeHeader);
15796
- }
15797
- if (_request.body) {
15798
- const [onProgress, flush] = progressEventDecorator(
15799
- requestContentLength,
15800
- progressEventReducer(asyncDecorator(onUploadProgress))
15801
- );
15802
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
16437
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
16438
+ const trackRequestStream = (stream4, onProgress, flush) => trackStream(
16439
+ stream4,
16440
+ DEFAULT_CHUNK_SIZE,
16441
+ (loadedBytes) => {
16442
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
16443
+ throw pendingBodyError = maxBodyLengthError();
16444
+ }
16445
+ onProgress && onProgress(loadedBytes);
16446
+ },
16447
+ flush
16448
+ );
16449
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
16450
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
16451
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
16452
+ let _request = new Request(url2, {
16453
+ method: "POST",
16454
+ body: data,
16455
+ duplex: "half"
16456
+ });
16457
+ let contentTypeHeader;
16458
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
16459
+ headers.setContentType(contentTypeHeader);
16460
+ }
16461
+ if (_request.body) {
16462
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
16463
+ requestContentLength,
16464
+ progressEventReducer(asyncDecorator(onUploadProgress))
16465
+ ) || [];
16466
+ data = trackRequestStream(_request.body, onProgress, flush);
16467
+ }
15803
16468
  }
16469
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
16470
+ data = trackRequestStream(data);
16471
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
16472
+ throw new AxiosError_default(
16473
+ "Stream request bodies are not supported by the current fetch implementation",
16474
+ AxiosError_default.ERR_NOT_SUPPORT,
16475
+ config,
16476
+ request
16477
+ );
15804
16478
  }
15805
16479
  if (!utils_default.isString(withCredentials)) {
15806
16480
  withCredentials = withCredentials ? "include" : "omit";
@@ -15824,8 +16498,9 @@ var factory = (env) => {
15824
16498
  };
15825
16499
  request = isRequestSupported && new Request(url2, resolvedOptions);
15826
16500
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
16501
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
15827
16502
  if (hasMaxContentLength) {
15828
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16503
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15829
16504
  if (declaredLength != null && declaredLength > maxContentLength) {
15830
16505
  throw new AxiosError_default(
15831
16506
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -15841,7 +16516,7 @@ var factory = (env) => {
15841
16516
  ["status", "statusText", "headers"].forEach((prop) => {
15842
16517
  options[prop] = response[prop];
15843
16518
  });
15844
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16519
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15845
16520
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
15846
16521
  responseContentLength,
15847
16522
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -15911,22 +16586,41 @@ var factory = (env) => {
15911
16586
  const canceledError = composedSignal.reason;
15912
16587
  canceledError.config = config;
15913
16588
  request && (canceledError.request = request);
15914
- err !== canceledError && (canceledError.cause = err);
16589
+ if (err !== canceledError) {
16590
+ Object.defineProperty(canceledError, "cause", {
16591
+ __proto__: null,
16592
+ value: err,
16593
+ writable: true,
16594
+ enumerable: false,
16595
+ configurable: true
16596
+ });
16597
+ }
15915
16598
  throw canceledError;
15916
16599
  }
16600
+ if (pendingBodyError) {
16601
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
16602
+ throw pendingBodyError;
16603
+ }
16604
+ if (err instanceof AxiosError_default) {
16605
+ request && !err.request && (err.request = request);
16606
+ throw err;
16607
+ }
15917
16608
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
15918
- throw Object.assign(
15919
- new AxiosError_default(
15920
- "Network Error",
15921
- AxiosError_default.ERR_NETWORK,
15922
- config,
15923
- request,
15924
- err && err.response
15925
- ),
15926
- {
15927
- cause: err.cause || err
15928
- }
16609
+ const networkError = new AxiosError_default(
16610
+ "Network Error",
16611
+ AxiosError_default.ERR_NETWORK,
16612
+ config,
16613
+ request,
16614
+ err && err.response
15929
16615
  );
16616
+ Object.defineProperty(networkError, "cause", {
16617
+ __proto__: null,
16618
+ value: err.cause || err,
16619
+ writable: true,
16620
+ enumerable: false,
16621
+ configurable: true
16622
+ });
16623
+ throw networkError;
15930
16624
  }
15931
16625
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
15932
16626
  }
@@ -15948,7 +16642,7 @@ var getFetch = (config) => {
15948
16642
  };
15949
16643
  var adapter = getFetch();
15950
16644
 
15951
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
16645
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
15952
16646
  var knownAdapters = {
15953
16647
  http: http_default,
15954
16648
  xhr: xhr_default,
@@ -15995,7 +16689,7 @@ function getAdapter(adapters, config) {
15995
16689
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
15996
16690
  throw new AxiosError_default(
15997
16691
  `There is no suitable adapter to dispatch the request ` + s,
15998
- "ERR_NOT_SUPPORT"
16692
+ AxiosError_default.ERR_NOT_SUPPORT
15999
16693
  );
16000
16694
  }
16001
16695
  return adapter2;
@@ -16013,7 +16707,7 @@ var adapters_default = {
16013
16707
  adapters: knownAdapters
16014
16708
  };
16015
16709
 
16016
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
16710
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16017
16711
  function throwIfCancellationRequested(config) {
16018
16712
  if (config.cancelToken) {
16019
16713
  config.cancelToken.throwIfRequested();
@@ -16064,7 +16758,7 @@ function dispatchRequest(config) {
16064
16758
  );
16065
16759
  }
16066
16760
 
16067
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
16761
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16068
16762
  var validators = {};
16069
16763
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16070
16764
  validators[type] = function validator(thing) {
@@ -16102,7 +16796,7 @@ validators.spelling = function spelling(correctSpelling) {
16102
16796
  };
16103
16797
  };
16104
16798
  function assertOptions(options, schema, allowUnknown) {
16105
- if (typeof options !== "object") {
16799
+ if (typeof options !== "object" || options === null) {
16106
16800
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
16107
16801
  }
16108
16802
  const keys = Object.keys(options);
@@ -16131,7 +16825,7 @@ var validator_default = {
16131
16825
  validators
16132
16826
  };
16133
16827
 
16134
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/Axios.js
16828
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16135
16829
  var validators2 = validator_default.validators;
16136
16830
  var Axios = class {
16137
16831
  constructor(instanceConfig) {
@@ -16196,7 +16890,9 @@ var Axios = class {
16196
16890
  silentJSONParsing: validators2.transitional(validators2.boolean),
16197
16891
  forcedJSONParsing: validators2.transitional(validators2.boolean),
16198
16892
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
16199
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
16893
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
16894
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
16895
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
16200
16896
  },
16201
16897
  false
16202
16898
  );
@@ -16276,16 +16972,31 @@ var Axios = class {
16276
16972
  const onFulfilled = requestInterceptorChain[i++];
16277
16973
  const onRejected = requestInterceptorChain[i++];
16278
16974
  try {
16279
- newConfig = onFulfilled(newConfig);
16975
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
16280
16976
  } catch (error) {
16281
- onRejected.call(this, error);
16977
+ if (!onRejected) {
16978
+ promise = Promise.reject(error);
16979
+ break;
16980
+ }
16981
+ try {
16982
+ const rejectedResult = onRejected.call(this, error);
16983
+ if (utils_default.isThenable(rejectedResult)) {
16984
+ promise = Promise.resolve(rejectedResult).then(
16985
+ () => dispatchRequest.call(this, newConfig)
16986
+ );
16987
+ }
16988
+ } catch (rejectedError) {
16989
+ promise = Promise.reject(rejectedError);
16990
+ }
16282
16991
  break;
16283
16992
  }
16284
16993
  }
16285
- try {
16286
- promise = dispatchRequest.call(this, newConfig);
16287
- } catch (error) {
16288
- return Promise.reject(error);
16994
+ if (!promise) {
16995
+ try {
16996
+ promise = dispatchRequest.call(this, newConfig);
16997
+ } catch (error) {
16998
+ promise = Promise.reject(error);
16999
+ }
16289
17000
  }
16290
17001
  i = 0;
16291
17002
  len = responseInterceptorChain.length;
@@ -16296,7 +17007,7 @@ var Axios = class {
16296
17007
  }
16297
17008
  getUri(config) {
16298
17009
  config = mergeConfig(this.defaults, config);
16299
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
17010
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
16300
17011
  return buildURL(fullPath, config.params, config.paramsSerializer);
16301
17012
  }
16302
17013
  };
@@ -16306,7 +17017,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
16306
17017
  mergeConfig(config || {}, {
16307
17018
  method,
16308
17019
  url: url2,
16309
- data: (config || {}).data
17020
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
16310
17021
  })
16311
17022
  );
16312
17023
  };
@@ -16333,7 +17044,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
16333
17044
  });
16334
17045
  var Axios_default = Axios;
16335
17046
 
16336
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
17047
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
16337
17048
  var CancelToken = class _CancelToken {
16338
17049
  constructor(executor) {
16339
17050
  if (typeof executor !== "function") {
@@ -16431,19 +17142,19 @@ var CancelToken = class _CancelToken {
16431
17142
  };
16432
17143
  var CancelToken_default = CancelToken;
16433
17144
 
16434
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
17145
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
16435
17146
  function spread(callback) {
16436
17147
  return function wrap(arr) {
16437
17148
  return callback.apply(null, arr);
16438
17149
  };
16439
17150
  }
16440
17151
 
16441
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
17152
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
16442
17153
  function isAxiosError(payload) {
16443
17154
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16444
17155
  }
16445
17156
 
16446
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
17157
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
16447
17158
  var HttpStatusCode = {
16448
17159
  Continue: 100,
16449
17160
  SwitchingProtocols: 101,
@@ -16508,6 +17219,7 @@ var HttpStatusCode = {
16508
17219
  LoopDetected: 508,
16509
17220
  NotExtended: 510,
16510
17221
  NetworkAuthenticationRequired: 511,
17222
+ WebServerReturnsAnUnknownError: 520,
16511
17223
  WebServerIsDown: 521,
16512
17224
  ConnectionTimedOut: 522,
16513
17225
  OriginIsUnreachable: 523,
@@ -16520,7 +17232,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
16520
17232
  });
16521
17233
  var HttpStatusCode_default = HttpStatusCode;
16522
17234
 
16523
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/axios.js
17235
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
16524
17236
  function createInstance(defaultConfig) {
16525
17237
  const context = new Axios_default(defaultConfig);
16526
17238
  const instance = bind(Axios_default.prototype.request, context);
@@ -16553,7 +17265,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16553
17265
  axios.default = axios;
16554
17266
  var axios_default = axios;
16555
17267
 
16556
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/index.js
17268
+ // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
16557
17269
  var {
16558
17270
  Axios: Axios2,
16559
17271
  AxiosError: AxiosError2,
@@ -16574,18 +17286,18 @@ var {
16574
17286
  create
16575
17287
  } = axios_default;
16576
17288
 
16577
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
17289
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16578
17290
  var import_debug2 = __toESM(require_src(), 1);
16579
17291
  import { EventEmitter as EventEmitter3 } from "events";
16580
17292
 
16581
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
17293
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16582
17294
  var import_debug = __toESM(require_src(), 1);
16583
17295
  import { EventEmitter as EventEmitter2 } from "events";
16584
17296
  import fs from "fs";
16585
17297
  import net from "net";
16586
17298
  import tls from "tls";
16587
17299
 
16588
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/HeaderHostTransformer.js
17300
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
16589
17301
  import { Transform } from "stream";
16590
17302
  var HeaderHostTransformer = class extends Transform {
16591
17303
  host;
@@ -16603,7 +17315,7 @@ var HeaderHostTransformer = class extends Transform {
16603
17315
  }
16604
17316
  };
16605
17317
 
16606
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
17318
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16607
17319
  var log = (0, import_debug.default)("pipenet:client");
16608
17320
  var TunnelCluster = class extends EventEmitter2 {
16609
17321
  opts;
@@ -16703,7 +17415,7 @@ var TunnelCluster = class extends EventEmitter2 {
16703
17415
  }
16704
17416
  };
16705
17417
 
16706
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
17418
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16707
17419
  var log2 = (0, import_debug2.default)("pipenet:client");
16708
17420
  var Tunnel = class extends EventEmitter3 {
16709
17421
  cachedUrl;
@@ -16851,7 +17563,7 @@ var Tunnel = class extends EventEmitter3 {
16851
17563
  }
16852
17564
  };
16853
17565
 
16854
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/pipenet.js
17566
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
16855
17567
  function pipenet(arg1, arg2, arg3) {
16856
17568
  const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
16857
17569
  const callback = typeof arg1 === "object" ? arg2 : arg3;