@alpic-ai/sdk 0.0.0-dev.g419eaf2 → 0.0.0-dev.g420d3ca

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
  });
@@ -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_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12072
+ // ../../node_modules/.pnpm/axios@1.18.1_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_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12079
+ // ../../node_modules/.pnpm/axios@1.18.1_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)) {
@@ -12218,7 +12238,7 @@ function merge(...objs) {
12218
12238
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12219
12239
  return;
12220
12240
  }
12221
- const targetKey = caseless && findKey(result, key) || key;
12241
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12222
12242
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12223
12243
  if (isPlainObject(existing) && isPlainObject(val)) {
12224
12244
  result[targetKey] = merge(existing, val);
@@ -12231,7 +12251,21 @@ function merge(...objs) {
12231
12251
  }
12232
12252
  };
12233
12253
  for (let i = 0, l = objs.length; i < l; i++) {
12234
- objs[i] && forEach(objs[i], assignValue);
12254
+ const source = objs[i];
12255
+ if (!source || isBuffer(source)) {
12256
+ continue;
12257
+ }
12258
+ forEach(source, assignValue);
12259
+ if (typeof source !== "object" || isArray(source)) {
12260
+ continue;
12261
+ }
12262
+ const symbols = Object.getOwnPropertySymbols(source);
12263
+ for (let j = 0; j < symbols.length; j++) {
12264
+ const symbol = symbols[j];
12265
+ if (propertyIsEnumerable.call(source, symbol)) {
12266
+ assignValue(source[symbol], symbol);
12267
+ }
12268
+ }
12235
12269
  }
12236
12270
  return result;
12237
12271
  }
@@ -12353,7 +12387,7 @@ var toCamelCase = (str) => {
12353
12387
  return p1.toUpperCase() + p2;
12354
12388
  });
12355
12389
  };
12356
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12390
+ var { propertyIsEnumerable } = Object.prototype;
12357
12391
  var isRegExp = kindOfTest("RegExp");
12358
12392
  var reduceDescriptors = (obj, reducer) => {
12359
12393
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -12452,6 +12486,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
12452
12486
  })(typeof setImmediate === "function", isFunction(_global.postMessage));
12453
12487
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
12454
12488
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
12489
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
12455
12490
  var utils_default = {
12456
12491
  isArray,
12457
12492
  isArrayBuffer,
@@ -12497,6 +12532,8 @@ var utils_default = {
12497
12532
  hasOwnProperty,
12498
12533
  hasOwnProp: hasOwnProperty,
12499
12534
  // an alias to avoid ESLint no-prototype-builtins detection
12535
+ hasOwnInPrototypeChain,
12536
+ getSafeProp,
12500
12537
  reduceDescriptors,
12501
12538
  freezeMethods,
12502
12539
  toObjectSet,
@@ -12512,10 +12549,11 @@ var utils_default = {
12512
12549
  isThenable,
12513
12550
  setImmediate: _setImmediate,
12514
12551
  asap,
12515
- isIterable
12552
+ isIterable,
12553
+ isSafeIterable
12516
12554
  };
12517
12555
 
12518
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12556
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12519
12557
  var ignoreDuplicateOf = utils_default.toObjectSet([
12520
12558
  "age",
12521
12559
  "authorization",
@@ -12560,7 +12598,7 @@ var parseHeaders_default = (rawHeaders) => {
12560
12598
  return parsed;
12561
12599
  };
12562
12600
 
12563
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12601
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12564
12602
  function trimSPorHTAB(str) {
12565
12603
  let start = 0;
12566
12604
  let end = str.length;
@@ -12598,7 +12636,7 @@ function toByteStringHeaderObject(headers) {
12598
12636
  return byteStringHeaders;
12599
12637
  }
12600
12638
 
12601
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12639
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12602
12640
  var $internals = /* @__PURE__ */ Symbol("internals");
12603
12641
  function normalizeHeader(header) {
12604
12642
  return header && String(header).trim().toLowerCase();
@@ -12662,7 +12700,7 @@ var AxiosHeaders = class {
12662
12700
  function setHeader(_value, _header, _rewrite) {
12663
12701
  const lHeader = normalizeHeader(_header);
12664
12702
  if (!lHeader) {
12665
- throw new Error("header name must be a non-empty string");
12703
+ return;
12666
12704
  }
12667
12705
  const key = utils_default.findKey(self2, lHeader);
12668
12706
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -12674,13 +12712,19 @@ var AxiosHeaders = class {
12674
12712
  setHeaders(header, valueOrRewrite);
12675
12713
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12676
12714
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12677
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12678
- let obj = {}, dest, key;
12715
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
12716
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
12679
12717
  for (const entry of header) {
12680
12718
  if (!utils_default.isArray(entry)) {
12681
- throw TypeError("Object iterator must return a key-value pair");
12719
+ throw new TypeError("Object iterator must return a key-value pair");
12720
+ }
12721
+ key = entry[0];
12722
+ if (utils_default.hasOwnProp(obj, key)) {
12723
+ dest = obj[key];
12724
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
12725
+ } else {
12726
+ obj[key] = entry[1];
12682
12727
  }
12683
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12684
12728
  }
12685
12729
  setHeaders(obj, valueOrRewrite);
12686
12730
  } else {
@@ -12837,7 +12881,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12837
12881
  utils_default.freezeMethods(AxiosHeaders);
12838
12882
  var AxiosHeaders_default = AxiosHeaders;
12839
12883
 
12840
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12884
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12841
12885
  var REDACTED = "[REDACTED ****]";
12842
12886
  function hasOwnOrPrototypeToJSON(source) {
12843
12887
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12893,7 +12937,13 @@ function redactConfig(config, redactKeys) {
12893
12937
  var AxiosError = class _AxiosError extends Error {
12894
12938
  static from(error, code, config, request, response, customProps) {
12895
12939
  const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12896
- axiosError.cause = error;
12940
+ Object.defineProperty(axiosError, "cause", {
12941
+ __proto__: null,
12942
+ value: error,
12943
+ writable: true,
12944
+ enumerable: false,
12945
+ configurable: true
12946
+ });
12897
12947
  axiosError.name = error.name;
12898
12948
  if (error.status != null && axiosError.status == null) {
12899
12949
  axiosError.status = error.status;
@@ -12972,11 +13022,12 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12972
13022
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12973
13023
  var AxiosError_default = AxiosError;
12974
13024
 
12975
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
13025
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
12976
13026
  var import_form_data = __toESM(require_form_data(), 1);
12977
13027
  var FormData_default = import_form_data.default;
12978
13028
 
12979
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13029
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13030
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
12980
13031
  function isVisitable(thing) {
12981
13032
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12982
13033
  }
@@ -13018,8 +13069,9 @@ function toFormData(obj, formData, options) {
13018
13069
  const dots = options.dots;
13019
13070
  const indexes = options.indexes;
13020
13071
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13021
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
13072
+ const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
13022
13073
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13074
+ const stack = [];
13023
13075
  if (!utils_default.isFunction(visitor)) {
13024
13076
  throw new TypeError("visitor must be a function");
13025
13077
  }
@@ -13035,10 +13087,41 @@ function toFormData(obj, formData, options) {
13035
13087
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
13036
13088
  }
13037
13089
  if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
13038
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
13090
+ if (useBlob && typeof _Blob === "function") {
13091
+ return new _Blob([value]);
13092
+ }
13093
+ if (typeof Buffer !== "undefined") {
13094
+ return Buffer.from(value);
13095
+ }
13096
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
13039
13097
  }
13040
13098
  return value;
13041
13099
  }
13100
+ function throwIfMaxDepthExceeded(depth) {
13101
+ if (depth > maxDepth) {
13102
+ throw new AxiosError_default(
13103
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13104
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13105
+ );
13106
+ }
13107
+ }
13108
+ function stringifyWithDepthLimit(value, depth) {
13109
+ if (maxDepth === Infinity) {
13110
+ return JSON.stringify(value);
13111
+ }
13112
+ const ancestors = [];
13113
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
13114
+ if (!utils_default.isObject(currentValue)) {
13115
+ return currentValue;
13116
+ }
13117
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
13118
+ ancestors.pop();
13119
+ }
13120
+ ancestors.push(currentValue);
13121
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
13122
+ return currentValue;
13123
+ });
13124
+ }
13042
13125
  function defaultVisitor(value, key, path) {
13043
13126
  let arr = value;
13044
13127
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -13048,7 +13131,7 @@ function toFormData(obj, formData, options) {
13048
13131
  if (value && !path && typeof value === "object") {
13049
13132
  if (utils_default.endsWith(key, "{}")) {
13050
13133
  key = metaTokens ? key : key.slice(0, -2);
13051
- value = JSON.stringify(value);
13134
+ value = stringifyWithDepthLimit(value, 1);
13052
13135
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
13053
13136
  key = removeBrackets(key);
13054
13137
  arr.forEach(function each(el, index) {
@@ -13067,7 +13150,6 @@ function toFormData(obj, formData, options) {
13067
13150
  formData.append(renderKey(path, key, dots), convertValue(value));
13068
13151
  return false;
13069
13152
  }
13070
- const stack = [];
13071
13153
  const exposedHelpers = Object.assign(predicates, {
13072
13154
  defaultVisitor,
13073
13155
  convertValue,
@@ -13075,14 +13157,9 @@ function toFormData(obj, formData, options) {
13075
13157
  });
13076
13158
  function build(value, path, depth = 0) {
13077
13159
  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
- }
13160
+ throwIfMaxDepthExceeded(depth);
13084
13161
  if (stack.indexOf(value) !== -1) {
13085
- throw Error("Circular reference detected in " + path.join("."));
13162
+ throw new Error("Circular reference detected in " + path.join("."));
13086
13163
  }
13087
13164
  stack.push(value);
13088
13165
  utils_default.forEach(value, function each(el, key) {
@@ -13101,7 +13178,7 @@ function toFormData(obj, formData, options) {
13101
13178
  }
13102
13179
  var toFormData_default = toFormData;
13103
13180
 
13104
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13181
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13105
13182
  function encode(str) {
13106
13183
  const charMap = {
13107
13184
  "!": "%21",
@@ -13124,16 +13201,14 @@ prototype.append = function append(name, value) {
13124
13201
  this._pairs.push([name, value]);
13125
13202
  };
13126
13203
  prototype.toString = function toString2(encoder) {
13127
- const _encode = encoder ? function(value) {
13128
- return encoder.call(this, value, encode);
13129
- } : encode;
13204
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
13130
13205
  return this._pairs.map(function each(pair) {
13131
13206
  return _encode(pair[0]) + "=" + _encode(pair[1]);
13132
13207
  }, "").join("&");
13133
13208
  };
13134
13209
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13135
13210
 
13136
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13211
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13137
13212
  function encode2(val) {
13138
13213
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13139
13214
  }
@@ -13141,11 +13216,12 @@ function buildURL(url2, params, options) {
13141
13216
  if (!params) {
13142
13217
  return url2;
13143
13218
  }
13144
- const _encode = options && options.encode || encode2;
13219
+ url2 = url2 || "";
13145
13220
  const _options = utils_default.isFunction(options) ? {
13146
13221
  serialize: options
13147
13222
  } : options;
13148
- const serializeFn = _options && _options.serialize;
13223
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
13224
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
13149
13225
  let serializedParams;
13150
13226
  if (serializeFn) {
13151
13227
  serializedParams = serializeFn(params, _options);
@@ -13162,7 +13238,7 @@ function buildURL(url2, params, options) {
13162
13238
  return url2;
13163
13239
  }
13164
13240
 
13165
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13241
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13166
13242
  var InterceptorManager = class {
13167
13243
  constructor() {
13168
13244
  this.handlers = [];
@@ -13227,22 +13303,24 @@ var InterceptorManager = class {
13227
13303
  };
13228
13304
  var InterceptorManager_default = InterceptorManager;
13229
13305
 
13230
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13306
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13231
13307
  var transitional_default = {
13232
13308
  silentJSONParsing: true,
13233
13309
  forcedJSONParsing: true,
13234
13310
  clarifyTimeoutError: false,
13235
- legacyInterceptorReqResOrdering: true
13311
+ legacyInterceptorReqResOrdering: true,
13312
+ advertiseZstdAcceptEncoding: false,
13313
+ validateStatusUndefinedResolves: true
13236
13314
  };
13237
13315
 
13238
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13316
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13239
13317
  import crypto from "crypto";
13240
13318
 
13241
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13319
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13242
13320
  import url from "url";
13243
13321
  var URLSearchParams_default = url.URLSearchParams;
13244
13322
 
13245
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13323
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13246
13324
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13247
13325
  var DIGIT = "0123456789";
13248
13326
  var ALPHABET = {
@@ -13272,7 +13350,7 @@ var node_default = {
13272
13350
  protocols: ["http", "https", "file", "data"]
13273
13351
  };
13274
13352
 
13275
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13353
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13276
13354
  var utils_exports = {};
13277
13355
  __export(utils_exports, {
13278
13356
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13290,13 +13368,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13290
13368
  })();
13291
13369
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13292
13370
 
13293
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13371
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13294
13372
  var platform_default = {
13295
13373
  ...utils_exports,
13296
13374
  ...node_default
13297
13375
  };
13298
13376
 
13299
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13377
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13300
13378
  function toURLEncodedForm(data, options) {
13301
13379
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13302
13380
  visitor: function(value, key, path, helpers) {
@@ -13310,11 +13388,25 @@ function toURLEncodedForm(data, options) {
13310
13388
  });
13311
13389
  }
13312
13390
 
13313
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13391
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13392
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13393
+ function throwIfDepthExceeded(index) {
13394
+ if (index > MAX_DEPTH) {
13395
+ throw new AxiosError_default(
13396
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
13397
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13398
+ );
13399
+ }
13400
+ }
13314
13401
  function parsePropPath(name) {
13315
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
13316
- return match[0] === "[]" ? "" : match[1] || match[0];
13317
- });
13402
+ const path = [];
13403
+ const pattern = /\w+|\[(\w*)]/g;
13404
+ let match;
13405
+ while ((match = pattern.exec(name)) !== null) {
13406
+ throwIfDepthExceeded(path.length);
13407
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
13408
+ }
13409
+ return path;
13318
13410
  }
13319
13411
  function arrayToObject(arr) {
13320
13412
  const obj = {};
@@ -13330,6 +13422,7 @@ function arrayToObject(arr) {
13330
13422
  }
13331
13423
  function formDataToJSON(formData) {
13332
13424
  function buildPath(path, value, target, index) {
13425
+ throwIfDepthExceeded(index);
13333
13426
  let name = path[index++];
13334
13427
  if (name === "__proto__") return true;
13335
13428
  const isNumericKey = Number.isFinite(+name);
@@ -13363,7 +13456,7 @@ function formDataToJSON(formData) {
13363
13456
  }
13364
13457
  var formDataToJSON_default = formDataToJSON;
13365
13458
 
13366
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13459
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13367
13460
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13368
13461
  function stringifySafely(rawValue, parser, encoder) {
13369
13462
  if (utils_default.isString(rawValue)) {
@@ -13480,7 +13573,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"]
13480
13573
  });
13481
13574
  var defaults_default = defaults;
13482
13575
 
13483
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13576
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13484
13577
  function transformData(fns, response) {
13485
13578
  const config = this || defaults_default;
13486
13579
  const context = response || config;
@@ -13493,12 +13586,12 @@ function transformData(fns, response) {
13493
13586
  return data;
13494
13587
  }
13495
13588
 
13496
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13589
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13497
13590
  function isCancel(value) {
13498
13591
  return !!(value && value.__CANCEL__);
13499
13592
  }
13500
13593
 
13501
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13594
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13502
13595
  var CanceledError = class extends AxiosError_default {
13503
13596
  /**
13504
13597
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13517,7 +13610,7 @@ var CanceledError = class extends AxiosError_default {
13517
13610
  };
13518
13611
  var CanceledError_default = CanceledError;
13519
13612
 
13520
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13613
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13521
13614
  function settle(resolve, reject, response) {
13522
13615
  const validateStatus2 = response.config.validateStatus;
13523
13616
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13533,7 +13626,7 @@ function settle(resolve, reject, response) {
13533
13626
  }
13534
13627
  }
13535
13628
 
13536
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13629
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13537
13630
  function isAbsoluteURL(url2) {
13538
13631
  if (typeof url2 !== "string") {
13539
13632
  return false;
@@ -13541,15 +13634,38 @@ function isAbsoluteURL(url2) {
13541
13634
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13542
13635
  }
13543
13636
 
13544
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13637
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13545
13638
  function combineURLs(baseURL, relativeURL) {
13546
13639
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13547
13640
  }
13548
13641
 
13549
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13550
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13642
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13643
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13644
+ var httpProtocolControlCharacters = /[\t\n\r]/g;
13645
+ function stripLeadingC0ControlOrSpace(url2) {
13646
+ let i = 0;
13647
+ while (i < url2.length && url2.charCodeAt(i) <= 32) {
13648
+ i++;
13649
+ }
13650
+ return url2.slice(i);
13651
+ }
13652
+ function normalizeURLForProtocolCheck(url2) {
13653
+ return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
13654
+ }
13655
+ function assertValidHttpProtocolURL(url2, config) {
13656
+ if (typeof url2 === "string" && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url2))) {
13657
+ throw new AxiosError_default(
13658
+ 'Invalid URL: missing "//" after protocol',
13659
+ AxiosError_default.ERR_INVALID_URL,
13660
+ config
13661
+ );
13662
+ }
13663
+ }
13664
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
13665
+ assertValidHttpProtocolURL(requestedURL, config);
13551
13666
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13552
13667
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13668
+ assertValidHttpProtocolURL(baseURL, config);
13553
13669
  return combineURLs(baseURL, requestedURL);
13554
13670
  }
13555
13671
  return requestedURL;
@@ -13622,26 +13738,26 @@ function getEnv(key) {
13622
13738
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13623
13739
  }
13624
13740
 
13625
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13741
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13626
13742
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13627
13743
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13628
13744
  import http from "http";
13629
13745
  import https from "https";
13630
- import http2 from "http2";
13631
- import util2 from "util";
13746
+ import http22 from "http2";
13747
+ import util3 from "util";
13632
13748
  import { resolve as resolvePath } from "path";
13633
13749
  import zlib from "zlib";
13634
13750
 
13635
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
13636
- var VERSION = "1.16.1";
13751
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
13752
+ var VERSION = "1.18.1";
13637
13753
 
13638
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13754
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13639
13755
  function parseProtocol(url2) {
13640
13756
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13641
13757
  return match && match[1] || "";
13642
13758
  }
13643
13759
 
13644
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
13760
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
13645
13761
  var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13646
13762
  function fromDataURI(uri, asBlob, options) {
13647
13763
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -13659,13 +13775,13 @@ function fromDataURI(uri, asBlob, options) {
13659
13775
  const params = match[2];
13660
13776
  const encoding = match[3] ? "base64" : "utf8";
13661
13777
  const body = match[4];
13662
- let mime;
13778
+ let mime = "";
13663
13779
  if (type) {
13664
13780
  mime = params ? type + params : type;
13665
13781
  } else if (params) {
13666
13782
  mime = "text/plain" + params;
13667
13783
  }
13668
- const buffer = Buffer.from(decodeURIComponent(body), encoding);
13784
+ const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
13669
13785
  if (asBlob) {
13670
13786
  if (!_Blob) {
13671
13787
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13677,10 +13793,10 @@ function fromDataURI(uri, asBlob, options) {
13677
13793
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13678
13794
  }
13679
13795
 
13680
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13796
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13681
13797
  import stream3 from "stream";
13682
13798
 
13683
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13799
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13684
13800
  import stream from "stream";
13685
13801
  var kInternals = /* @__PURE__ */ Symbol("internals");
13686
13802
  var AxiosTransformStream = class extends stream.Transform {
@@ -13803,14 +13919,14 @@ var AxiosTransformStream = class extends stream.Transform {
13803
13919
  };
13804
13920
  var AxiosTransformStream_default = AxiosTransformStream;
13805
13921
 
13806
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13922
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13807
13923
  import { EventEmitter } from "events";
13808
13924
 
13809
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13925
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13810
13926
  import util from "util";
13811
13927
  import { Readable } from "stream";
13812
13928
 
13813
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
13929
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
13814
13930
  var { asyncIterator } = Symbol;
13815
13931
  var readBlob = async function* (blob) {
13816
13932
  if (blob.stream) {
@@ -13825,7 +13941,7 @@ var readBlob = async function* (blob) {
13825
13941
  };
13826
13942
  var readBlob_default = readBlob;
13827
13943
 
13828
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13944
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13829
13945
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13830
13946
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13831
13947
  var CRLF = "\r\n";
@@ -13876,10 +13992,10 @@ var formDataToStream = (form, headersHandler, options) => {
13876
13992
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
13877
13993
  } = options || {};
13878
13994
  if (!utils_default.isFormData(form)) {
13879
- throw TypeError("FormData instance required");
13995
+ throw new TypeError("FormData instance required");
13880
13996
  }
13881
13997
  if (boundary.length < 1 || boundary.length > 70) {
13882
- throw Error("boundary must be 1-70 characters long");
13998
+ throw new Error("boundary must be 1-70 characters long");
13883
13999
  }
13884
14000
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13885
14001
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13910,7 +14026,7 @@ var formDataToStream = (form, headersHandler, options) => {
13910
14026
  };
13911
14027
  var formDataToStream_default = formDataToStream;
13912
14028
 
13913
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14029
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13914
14030
  import stream2 from "stream";
13915
14031
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13916
14032
  __transform(chunk, encoding, callback) {
@@ -13932,7 +14048,88 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13932
14048
  };
13933
14049
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13934
14050
 
13935
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14051
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14052
+ import http2 from "http2";
14053
+ import util2 from "util";
14054
+ var Http2Sessions = class {
14055
+ constructor() {
14056
+ this.sessions = /* @__PURE__ */ Object.create(null);
14057
+ }
14058
+ getSession(authority, options) {
14059
+ options = Object.assign(
14060
+ {
14061
+ sessionTimeout: 1e3
14062
+ },
14063
+ options
14064
+ );
14065
+ let authoritySessions = this.sessions[authority];
14066
+ if (authoritySessions) {
14067
+ let len = authoritySessions.length;
14068
+ for (let i = 0; i < len; i++) {
14069
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
14070
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14071
+ return sessionHandle;
14072
+ }
14073
+ }
14074
+ }
14075
+ const session = http2.connect(authority, options);
14076
+ let removed;
14077
+ let timer;
14078
+ const removeSession = () => {
14079
+ if (removed) {
14080
+ return;
14081
+ }
14082
+ removed = true;
14083
+ if (timer) {
14084
+ clearTimeout(timer);
14085
+ timer = null;
14086
+ }
14087
+ let entries = authoritySessions, len = entries.length, i = len;
14088
+ while (i--) {
14089
+ if (entries[i][0] === session) {
14090
+ if (len === 1) {
14091
+ delete this.sessions[authority];
14092
+ } else {
14093
+ entries.splice(i, 1);
14094
+ }
14095
+ if (!session.closed) {
14096
+ session.close();
14097
+ }
14098
+ return;
14099
+ }
14100
+ }
14101
+ };
14102
+ const originalRequestFn = session.request;
14103
+ const { sessionTimeout } = options;
14104
+ if (sessionTimeout != null) {
14105
+ let streamsCount = 0;
14106
+ session.request = function() {
14107
+ const stream4 = originalRequestFn.apply(this, arguments);
14108
+ streamsCount++;
14109
+ if (timer) {
14110
+ clearTimeout(timer);
14111
+ timer = null;
14112
+ }
14113
+ stream4.once("close", () => {
14114
+ if (!--streamsCount) {
14115
+ timer = setTimeout(() => {
14116
+ timer = null;
14117
+ removeSession();
14118
+ }, sessionTimeout);
14119
+ }
14120
+ });
14121
+ return stream4;
14122
+ };
14123
+ }
14124
+ session.once("close", removeSession);
14125
+ let entry = [session, options];
14126
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14127
+ return session;
14128
+ }
14129
+ };
14130
+ var Http2Sessions_default = Http2Sessions;
14131
+
14132
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
13936
14133
  var callbackify = (fn, reducer) => {
13937
14134
  return utils_default.isAsyncFn(fn) ? function(...args) {
13938
14135
  const cb = args.pop();
@@ -13947,14 +14144,30 @@ var callbackify = (fn, reducer) => {
13947
14144
  };
13948
14145
  var callbackify_default = callbackify;
13949
14146
 
13950
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
13951
- var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
14147
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14148
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
13952
14149
  var isIPv4Loopback = (host) => {
13953
14150
  const parts = host.split(".");
13954
14151
  if (parts.length !== 4) return false;
13955
14152
  if (parts[0] !== "127") return false;
13956
14153
  return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13957
14154
  };
14155
+ var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
14156
+ var isIPv6Unspecified = (host) => {
14157
+ if (host === "::") return true;
14158
+ const compressionIndex = host.indexOf("::");
14159
+ if (compressionIndex !== -1) {
14160
+ if (compressionIndex !== host.lastIndexOf("::")) return false;
14161
+ const left = host.slice(0, compressionIndex);
14162
+ const right = host.slice(compressionIndex + 2);
14163
+ const leftGroups = left ? left.split(":") : [];
14164
+ const rightGroups = right ? right.split(":") : [];
14165
+ const explicitGroups = leftGroups.length + rightGroups.length;
14166
+ return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
14167
+ }
14168
+ const groups = host.split(":");
14169
+ return groups.length === 8 && groups.every(isIPv6ZeroGroup);
14170
+ };
13958
14171
  var isIPv6Loopback = (host) => {
13959
14172
  if (host === "::1") return true;
13960
14173
  const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
@@ -13977,6 +14190,7 @@ var isLoopback = (host) => {
13977
14190
  if (!host) return false;
13978
14191
  if (LOOPBACK_HOSTNAMES.has(host)) return true;
13979
14192
  if (isIPv4Loopback(host)) return true;
14193
+ if (isIPv6Unspecified(host)) return true;
13980
14194
  return isIPv6Loopback(host);
13981
14195
  };
13982
14196
  var DEFAULT_PORTS2 = {
@@ -14069,7 +14283,7 @@ function shouldBypassProxy(location) {
14069
14283
  });
14070
14284
  }
14071
14285
 
14072
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14286
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14073
14287
  function speedometer(samplesCount, min) {
14074
14288
  samplesCount = samplesCount || 10;
14075
14289
  const bytes = new Array(samplesCount);
@@ -14105,7 +14319,7 @@ function speedometer(samplesCount, min) {
14105
14319
  }
14106
14320
  var speedometer_default = speedometer;
14107
14321
 
14108
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14322
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14109
14323
  function throttle(fn, freq) {
14110
14324
  let timestamp = 0;
14111
14325
  let threshold = 1e3 / freq;
@@ -14140,7 +14354,7 @@ function throttle(fn, freq) {
14140
14354
  }
14141
14355
  var throttle_default = throttle;
14142
14356
 
14143
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14357
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14144
14358
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14145
14359
  let bytesNotified = 0;
14146
14360
  const _speedometer = speedometer_default(50, 250);
@@ -14181,7 +14395,9 @@ var progressEventDecorator = (total, throttled) => {
14181
14395
  };
14182
14396
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
14183
14397
 
14184
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14398
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14399
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14400
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14185
14401
  function estimateDataURLDecodedBytes(url2) {
14186
14402
  if (!url2 || typeof url2 !== "string") return 0;
14187
14403
  if (!url2.startsWith("data:")) return 0;
@@ -14197,7 +14413,7 @@ function estimateDataURLDecodedBytes(url2) {
14197
14413
  if (body.charCodeAt(i) === 37 && i + 2 < len) {
14198
14414
  const a = body.charCodeAt(i + 1);
14199
14415
  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);
14416
+ const isHex = isHexDigit(a) && isHexDigit(b);
14201
14417
  if (isHex) {
14202
14418
  effectiveLen -= 2;
14203
14419
  i += 2;
@@ -14229,13 +14445,13 @@ function estimateDataURLDecodedBytes(url2) {
14229
14445
  const bytes2 = groups * 3 - (pad || 0);
14230
14446
  return bytes2 > 0 ? bytes2 : 0;
14231
14447
  }
14232
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14233
- return Buffer.byteLength(body, "utf8");
14234
- }
14235
14448
  let bytes = 0;
14236
14449
  for (let i = 0, len = body.length; i < len; i++) {
14237
14450
  const c = body.charCodeAt(i);
14238
- if (c < 128) {
14451
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
14452
+ bytes += 1;
14453
+ i += 2;
14454
+ } else if (c < 128) {
14239
14455
  bytes += 1;
14240
14456
  } else if (c < 2048) {
14241
14457
  bytes += 2;
@@ -14254,7 +14470,7 @@ function estimateDataURLDecodedBytes(url2) {
14254
14470
  return bytes;
14255
14471
  }
14256
14472
 
14257
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14473
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14258
14474
  var zlibOptions = {
14259
14475
  flush: zlib.constants.Z_SYNC_FLUSH,
14260
14476
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14263,7 +14479,14 @@ var brotliOptions = {
14263
14479
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
14264
14480
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
14265
14481
  };
14482
+ var zstdOptions = {
14483
+ flush: zlib.constants.ZSTD_e_flush,
14484
+ finishFlush: zlib.constants.ZSTD_e_flush
14485
+ };
14266
14486
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
14487
+ var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
14488
+ var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
14489
+ var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
14267
14490
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14268
14491
  var isHttps = /https:?/;
14269
14492
  var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
@@ -14283,6 +14506,35 @@ var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
14283
14506
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14284
14507
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14285
14508
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
14509
+ var NODE_NATIVE_ENV_PROXY_SUPPORT = {
14510
+ 22: 21,
14511
+ 24: 5
14512
+ };
14513
+ function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
14514
+ if (!nodeVersion) {
14515
+ return false;
14516
+ }
14517
+ const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
14518
+ if (!Number.isInteger(major) || !Number.isInteger(minor)) {
14519
+ return false;
14520
+ }
14521
+ if (major > 24) {
14522
+ return true;
14523
+ }
14524
+ return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
14525
+ }
14526
+ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
14527
+ if (!isNodeNativeEnvProxySupported(nodeVersion)) {
14528
+ return false;
14529
+ }
14530
+ const agentOptions = agent && agent.options;
14531
+ return Boolean(
14532
+ agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
14533
+ );
14534
+ }
14535
+ function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
14536
+ return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
14537
+ }
14286
14538
  function getTunnelingAgent(agentOptions, userHttpsAgent) {
14287
14539
  const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14288
14540
  const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
@@ -14290,6 +14542,13 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
14290
14542
  if (agent) return agent;
14291
14543
  const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14292
14544
  agent = new import_https_proxy_agent.default(merged);
14545
+ if (userHttpsAgent && userHttpsAgent.options) {
14546
+ const originTLSOptions = { ...userHttpsAgent.options };
14547
+ const callback = agent.callback;
14548
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
14549
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
14550
+ };
14551
+ }
14293
14552
  agent[kAxiosInstalledTunnel] = true;
14294
14553
  cache.set(key, agent);
14295
14554
  return agent;
@@ -14311,90 +14570,45 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
14311
14570
  stream4.on("end", flush).on("error", flush);
14312
14571
  return throttled;
14313
14572
  };
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();
14573
+ var http2Sessions = new Http2Sessions_default();
14387
14574
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14388
14575
  if (options.beforeRedirects.proxy) {
14389
14576
  options.beforeRedirects.proxy(options);
14390
14577
  }
14578
+ if (options.beforeRedirects.auth) {
14579
+ options.beforeRedirects.auth(options);
14580
+ }
14581
+ if (options.beforeRedirects.sensitiveHeaders) {
14582
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
14583
+ }
14391
14584
  if (options.beforeRedirects.config) {
14392
14585
  options.beforeRedirects.config(options, responseDetails, requestDetails);
14393
14586
  }
14394
14587
  }
14395
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
14588
+ function stripMatchingHeaders(headers, sensitiveSet) {
14589
+ if (!headers) {
14590
+ return;
14591
+ }
14592
+ Object.keys(headers).forEach((header) => {
14593
+ if (sensitiveSet.has(header.toLowerCase())) {
14594
+ delete headers[header];
14595
+ }
14596
+ });
14597
+ }
14598
+ function isSameOriginRedirect(redirectOptions, requestDetails) {
14599
+ if (!requestDetails) {
14600
+ return false;
14601
+ }
14602
+ try {
14603
+ return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
14604
+ } catch (e) {
14605
+ return false;
14606
+ }
14607
+ }
14608
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
14396
14609
  let proxy = configProxy;
14397
- if (!proxy && proxy !== false) {
14610
+ const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
14611
+ if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14398
14612
  const proxyUrl = getProxyForUrl(location);
14399
14613
  if (proxyUrl) {
14400
14614
  if (!shouldBypassProxy(location)) {
@@ -14485,7 +14699,14 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
14485
14699
  }
14486
14700
  }
14487
14701
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
14488
- setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
14702
+ setProxy(
14703
+ redirectOptions,
14704
+ configProxy,
14705
+ redirectOptions.href,
14706
+ true,
14707
+ configHttpsAgent,
14708
+ configHttpAgent
14709
+ );
14489
14710
  };
14490
14711
  }
14491
14712
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -14524,7 +14745,7 @@ var http2Transport = {
14524
14745
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
14525
14746
  const { http2Options, headers } = options;
14526
14747
  const session = http2Sessions.getSession(authority, http2Options);
14527
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
14748
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
14528
14749
  const http2Headers = {
14529
14750
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
14530
14751
  [HTTP2_HEADER_METHOD]: options.method,
@@ -14548,16 +14769,25 @@ var http2Transport = {
14548
14769
  };
14549
14770
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14550
14771
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
14551
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
14772
+ const own2 = (key) => utils_default.getSafeProp(config, key);
14773
+ const transitional2 = own2("transitional") || transitional_default;
14552
14774
  let data = own2("data");
14553
14775
  let lookup = own2("lookup");
14554
14776
  let family = own2("family");
14555
14777
  let httpVersion = own2("httpVersion");
14556
14778
  if (httpVersion === void 0) httpVersion = 1;
14557
14779
  let http2Options = own2("http2Options");
14780
+ const httpAgent = own2("httpAgent");
14781
+ const httpsAgent = own2("httpsAgent");
14782
+ const configProxy = own2("proxy");
14558
14783
  const responseType = own2("responseType");
14559
14784
  const responseEncoding = own2("responseEncoding");
14560
- const method = config.method.toUpperCase();
14785
+ const socketPath = own2("socketPath");
14786
+ const method = own2("method").toUpperCase();
14787
+ const maxRedirects = own2("maxRedirects");
14788
+ const maxBodyLength = own2("maxBodyLength");
14789
+ const maxContentLength = own2("maxContentLength");
14790
+ const decompress = own2("decompress");
14561
14791
  let isDone;
14562
14792
  let rejected = false;
14563
14793
  let req;
@@ -14590,7 +14820,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14590
14820
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14591
14821
  );
14592
14822
  } catch (err) {
14593
- console.warn("emit error", err);
14594
14823
  }
14595
14824
  }
14596
14825
  function clearConnectPhaseTimer() {
@@ -14600,10 +14829,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14600
14829
  }
14601
14830
  }
14602
14831
  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;
14832
+ const configTimeout = own2("timeout");
14833
+ let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
14834
+ const configTimeoutErrorMessage = own2("timeoutErrorMessage");
14835
+ if (configTimeoutErrorMessage) {
14836
+ timeoutErrorMessage = configTimeoutErrorMessage;
14607
14837
  }
14608
14838
  return new AxiosError_default(
14609
14839
  timeoutErrorMessage,
@@ -14647,17 +14877,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14647
14877
  onFinished();
14648
14878
  }
14649
14879
  });
14650
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14651
- const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
14880
+ const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
14881
+ const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
14882
+ const parsed = new URL(fullPath, urlBase);
14652
14883
  const protocol = parsed.protocol || supportedProtocols[0];
14653
14884
  if (protocol === "data:") {
14654
- if (config.maxContentLength > -1) {
14655
- const dataUrl = String(config.url || fullPath || "");
14885
+ if (maxContentLength > -1) {
14886
+ const dataUrl = String(own2("url") || fullPath || "");
14656
14887
  const estimated = estimateDataURLDecodedBytes(dataUrl);
14657
- if (estimated > config.maxContentLength) {
14888
+ if (estimated > maxContentLength) {
14658
14889
  return reject(
14659
14890
  new AxiosError_default(
14660
- "maxContentLength size of " + config.maxContentLength + " exceeded",
14891
+ "maxContentLength size of " + maxContentLength + " exceeded",
14661
14892
  AxiosError_default.ERR_BAD_RESPONSE,
14662
14893
  config
14663
14894
  )
@@ -14674,7 +14905,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14674
14905
  });
14675
14906
  }
14676
14907
  try {
14677
- convertedData = fromDataURI(config.url, responseType === "blob", {
14908
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
14678
14909
  Blob: config.env && config.env.Blob
14679
14910
  });
14680
14911
  } catch (err) {
@@ -14723,7 +14954,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14723
14954
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14724
14955
  if (!headers.hasContentLength()) {
14725
14956
  try {
14726
- const knownLength = await util2.promisify(data.getLength).call(data);
14957
+ const knownLength = await util3.promisify(data.getLength).call(data);
14727
14958
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
14728
14959
  } catch (e) {
14729
14960
  }
@@ -14748,7 +14979,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14748
14979
  );
14749
14980
  }
14750
14981
  headers.setContentLength(data.length, false);
14751
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
14982
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
14752
14983
  return reject(
14753
14984
  new AxiosError_default(
14754
14985
  "Request body larger than maxBodyLength limit",
@@ -14792,11 +15023,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14792
15023
  let auth = void 0;
14793
15024
  const configAuth = own2("auth");
14794
15025
  if (configAuth) {
14795
- const username = configAuth.username || "";
14796
- const password = configAuth.password || "";
15026
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
15027
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
14797
15028
  auth = username + ":" + password;
14798
15029
  }
14799
- if (!auth && parsed.username) {
15030
+ if (!auth && (parsed.username || parsed.password)) {
14800
15031
  const urlUsername = decodeURIComponentSafe(parsed.username);
14801
15032
  const urlPassword = decodeURIComponentSafe(parsed.password);
14802
15033
  auth = urlUsername + ":" + urlPassword;
@@ -14806,26 +15037,27 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14806
15037
  try {
14807
15038
  path = buildURL(
14808
15039
  parsed.pathname + parsed.search,
14809
- config.params,
14810
- config.paramsSerializer
15040
+ own2("params"),
15041
+ own2("paramsSerializer")
14811
15042
  ).replace(/^\?/, "");
14812
15043
  } 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);
15044
+ return reject(
15045
+ AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
15046
+ url: own2("url"),
15047
+ exists: true
15048
+ })
15049
+ );
14818
15050
  }
14819
15051
  headers.set(
14820
15052
  "Accept-Encoding",
14821
- "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
15053
+ utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
14822
15054
  false
14823
15055
  );
14824
15056
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
14825
15057
  path,
14826
15058
  method,
14827
15059
  headers: toByteStringHeaderObject(headers),
14828
- agents: { http: config.httpAgent, https: config.httpsAgent },
15060
+ agents: { http: httpAgent, https: httpsAgent },
14829
15061
  auth,
14830
15062
  protocol,
14831
15063
  family,
@@ -14834,45 +15066,48 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14834
15066
  http2Options
14835
15067
  });
14836
15068
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
14837
- if (config.socketPath) {
14838
- if (typeof config.socketPath !== "string") {
15069
+ if (socketPath) {
15070
+ if (typeof socketPath !== "string") {
14839
15071
  return reject(
14840
15072
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14841
15073
  );
14842
15074
  }
14843
- if (config.allowedSocketPaths != null) {
14844
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14845
- const resolvedSocket = resolvePath(config.socketPath);
15075
+ const allowedSocketPaths = own2("allowedSocketPaths");
15076
+ if (allowedSocketPaths != null) {
15077
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
15078
+ const resolvedSocket = resolvePath(socketPath);
14846
15079
  const isAllowed = allowed.some(
14847
15080
  (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14848
15081
  );
14849
15082
  if (!isAllowed) {
14850
15083
  return reject(
14851
15084
  new AxiosError_default(
14852
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
15085
+ `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
14853
15086
  AxiosError_default.ERR_BAD_OPTION_VALUE,
14854
15087
  config
14855
15088
  )
14856
15089
  );
14857
15090
  }
14858
15091
  }
14859
- options.socketPath = config.socketPath;
15092
+ options.socketPath = socketPath;
14860
15093
  } else {
14861
15094
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
14862
15095
  options.port = parsed.port;
14863
15096
  setProxy(
14864
15097
  options,
14865
- config.proxy,
15098
+ configProxy,
14866
15099
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14867
15100
  false,
14868
- config.httpsAgent
15101
+ httpsAgent,
15102
+ httpAgent
14869
15103
  );
14870
15104
  }
14871
15105
  let transport;
14872
15106
  let isNativeTransport = false;
15107
+ let transportEnforcesMaxBodyLength = false;
14873
15108
  const isHttpsRequest = isHttps.test(options.protocol);
14874
15109
  if (options.agent == null) {
14875
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
15110
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
14876
15111
  }
14877
15112
  if (isHttp2) {
14878
15113
  transport = http2Transport;
@@ -14880,22 +15115,69 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14880
15115
  const configTransport = own2("transport");
14881
15116
  if (configTransport) {
14882
15117
  transport = configTransport;
14883
- } else if (config.maxRedirects === 0) {
15118
+ } else if (maxRedirects === 0) {
14884
15119
  transport = isHttpsRequest ? https : http;
14885
15120
  isNativeTransport = true;
14886
15121
  } else {
14887
- if (config.maxRedirects) {
14888
- options.maxRedirects = config.maxRedirects;
15122
+ transportEnforcesMaxBodyLength = true;
15123
+ options.sensitiveHeaders = [];
15124
+ if (maxRedirects) {
15125
+ options.maxRedirects = maxRedirects;
14889
15126
  }
14890
15127
  const configBeforeRedirect = own2("beforeRedirect");
14891
15128
  if (configBeforeRedirect) {
14892
15129
  options.beforeRedirects.config = configBeforeRedirect;
14893
15130
  }
15131
+ if (auth) {
15132
+ const requestOrigin = parsed.origin;
15133
+ const authToRestore = auth;
15134
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
15135
+ try {
15136
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
15137
+ redirectOptions.auth = authToRestore;
15138
+ }
15139
+ } catch (e) {
15140
+ }
15141
+ };
15142
+ }
15143
+ const sensitiveHeaders = own2("sensitiveHeaders");
15144
+ if (sensitiveHeaders != null) {
15145
+ if (!utils_default.isArray(sensitiveHeaders)) {
15146
+ return reject(
15147
+ new AxiosError_default(
15148
+ "sensitiveHeaders must be an array of strings",
15149
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15150
+ config
15151
+ )
15152
+ );
15153
+ }
15154
+ const sensitiveSet = /* @__PURE__ */ new Set();
15155
+ for (const header of sensitiveHeaders) {
15156
+ if (!utils_default.isString(header)) {
15157
+ return reject(
15158
+ new AxiosError_default(
15159
+ "sensitiveHeaders must be an array of strings",
15160
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15161
+ config
15162
+ )
15163
+ );
15164
+ }
15165
+ sensitiveSet.add(header.toLowerCase());
15166
+ }
15167
+ if (sensitiveSet.size) {
15168
+ options.sensitiveHeaders = Array.from(sensitiveSet);
15169
+ options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
15170
+ if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
15171
+ stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
15172
+ }
15173
+ };
15174
+ }
15175
+ }
14894
15176
  transport = isHttpsRequest ? httpsFollow : httpFollow;
14895
15177
  }
14896
15178
  }
14897
- if (config.maxBodyLength > -1) {
14898
- options.maxBodyLength = config.maxBodyLength;
15179
+ if (maxBodyLength > -1) {
15180
+ options.maxBodyLength = maxBodyLength;
14899
15181
  } else {
14900
15182
  options.maxBodyLength = Infinity;
14901
15183
  }
@@ -14923,7 +15205,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14923
15205
  }
14924
15206
  let responseStream = res;
14925
15207
  const lastRequest = res.req || req;
14926
- if (config.decompress !== false && res.headers["content-encoding"]) {
15208
+ if (decompress !== false && res.headers["content-encoding"]) {
14927
15209
  if (method === "HEAD" || res.statusCode === 204) {
14928
15210
  delete res.headers["content-encoding"];
14929
15211
  }
@@ -14946,6 +15228,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14946
15228
  streams.push(zlib.createBrotliDecompress(brotliOptions));
14947
15229
  delete res.headers["content-encoding"];
14948
15230
  }
15231
+ break;
15232
+ case "zstd":
15233
+ if (isZstdSupported) {
15234
+ streams.push(zlib.createZstdDecompress(zstdOptions));
15235
+ delete res.headers["content-encoding"];
15236
+ }
15237
+ break;
14949
15238
  }
14950
15239
  }
14951
15240
  responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
@@ -14957,8 +15246,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14957
15246
  request: lastRequest
14958
15247
  };
14959
15248
  if (responseType === "stream") {
14960
- if (config.maxContentLength > -1) {
14961
- const limit = config.maxContentLength;
15249
+ if (maxContentLength > -1) {
15250
+ const limit = maxContentLength;
14962
15251
  const source = responseStream;
14963
15252
  async function* enforceMaxContentLength() {
14964
15253
  let totalResponseBytes = 0;
@@ -14987,12 +15276,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14987
15276
  responseStream.on("data", function handleStreamData(chunk) {
14988
15277
  responseBuffer.push(chunk);
14989
15278
  totalResponseBytes += chunk.length;
14990
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
15279
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
14991
15280
  rejected = true;
14992
15281
  responseStream.destroy();
14993
15282
  abort(
14994
15283
  new AxiosError_default(
14995
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15284
+ "maxContentLength size of " + maxContentLength + " exceeded",
14996
15285
  AxiosError_default.ERR_BAD_RESPONSE,
14997
15286
  config,
14998
15287
  lastRequest
@@ -15053,7 +15342,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15053
15342
  });
15054
15343
  const boundSockets = /* @__PURE__ */ new Set();
15055
15344
  req.on("socket", function handleRequestSocket(socket) {
15056
- socket.setKeepAlive(true, 1e3 * 60);
15345
+ if (typeof socket.setKeepAlive === "function") {
15346
+ socket.setKeepAlive(true, 1e3 * 60);
15347
+ }
15057
15348
  if (!socket[kAxiosSocketListener]) {
15058
15349
  socket.on("error", function handleSocketError(err) {
15059
15350
  const current = socket[kAxiosCurrentReq];
@@ -15075,8 +15366,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15075
15366
  }
15076
15367
  boundSockets.clear();
15077
15368
  });
15078
- if (config.timeout) {
15079
- const timeout = parseInt(config.timeout, 10);
15369
+ if (own2("timeout")) {
15370
+ const timeout = parseInt(own2("timeout"), 10);
15080
15371
  if (Number.isNaN(timeout)) {
15081
15372
  abort(
15082
15373
  new AxiosError_default(
@@ -15115,8 +15406,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15115
15406
  }
15116
15407
  });
15117
15408
  let uploadStream = data;
15118
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15119
- const limit = config.maxBodyLength;
15409
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
15410
+ const limit = maxBodyLength;
15120
15411
  let bytesSent = 0;
15121
15412
  uploadStream = stream3.pipeline(
15122
15413
  [
@@ -15152,7 +15443,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15152
15443
  });
15153
15444
  };
15154
15445
 
15155
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15446
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15156
15447
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15157
15448
  url2 = new URL(url2, platform_default.origin);
15158
15449
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15161,7 +15452,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15161
15452
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15162
15453
  ) : () => true;
15163
15454
 
15164
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
15455
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
15165
15456
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15166
15457
  // Standard browser envs support document.cookie
15167
15458
  {
@@ -15192,7 +15483,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15192
15483
  const cookie = cookies[i].replace(/^\s+/, "");
15193
15484
  const eq = cookie.indexOf("=");
15194
15485
  if (eq !== -1 && cookie.slice(0, eq) === name) {
15195
- return decodeURIComponent(cookie.slice(eq + 1));
15486
+ try {
15487
+ return decodeURIComponent(cookie.slice(eq + 1));
15488
+ } catch (e) {
15489
+ return cookie.slice(eq + 1);
15490
+ }
15196
15491
  }
15197
15492
  }
15198
15493
  return null;
@@ -15214,9 +15509,10 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15214
15509
  }
15215
15510
  );
15216
15511
 
15217
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15512
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15218
15513
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
15219
15514
  function mergeConfig(config1, config2) {
15515
+ config1 = config1 || {};
15220
15516
  config2 = config2 || {};
15221
15517
  const config = /* @__PURE__ */ Object.create(null);
15222
15518
  Object.defineProperty(config, "hasOwnProperty", {
@@ -15257,6 +15553,23 @@ function mergeConfig(config1, config2) {
15257
15553
  return getMergedValue(void 0, a);
15258
15554
  }
15259
15555
  }
15556
+ function getMergedTransitionalOption(prop) {
15557
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
15558
+ if (!utils_default.isUndefined(transitional2)) {
15559
+ if (utils_default.isPlainObject(transitional2)) {
15560
+ if (utils_default.hasOwnProp(transitional2, prop)) {
15561
+ return transitional2[prop];
15562
+ }
15563
+ } else {
15564
+ return void 0;
15565
+ }
15566
+ }
15567
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
15568
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
15569
+ return transitional1[prop];
15570
+ }
15571
+ return void 0;
15572
+ }
15260
15573
  function mergeDirectKeys(a, b, prop) {
15261
15574
  if (utils_default.hasOwnProp(config2, prop)) {
15262
15575
  return getMergedValue(a, b);
@@ -15304,17 +15617,24 @@ function mergeConfig(config1, config2) {
15304
15617
  const configValue = merge2(a, b, prop);
15305
15618
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15306
15619
  });
15620
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
15621
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
15622
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
15623
+ } else {
15624
+ delete config.validateStatus;
15625
+ }
15626
+ }
15307
15627
  return config;
15308
15628
  }
15309
15629
 
15310
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15630
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15311
15631
  var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15312
15632
  function setFormDataHeaders2(headers, formHeaders, policy) {
15313
15633
  if (policy !== "content-only") {
15314
15634
  headers.set(formHeaders);
15315
15635
  return;
15316
15636
  }
15317
- Object.entries(formHeaders).forEach(([key, val]) => {
15637
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
15318
15638
  if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15319
15639
  headers.set(key, val);
15320
15640
  }
@@ -15324,7 +15644,7 @@ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15324
15644
  /%([0-9A-F]{2})/gi,
15325
15645
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
15326
15646
  );
15327
- var resolveConfig_default = (config) => {
15647
+ function resolveConfig(config) {
15328
15648
  const newConfig = mergeConfig({}, config);
15329
15649
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15330
15650
  const data = own2("data");
@@ -15338,18 +15658,24 @@ var resolveConfig_default = (config) => {
15338
15658
  const url2 = own2("url");
15339
15659
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
15340
15660
  newConfig.url = buildURL(
15341
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
15342
- config.params,
15343
- config.paramsSerializer
15661
+ buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
15662
+ own2("params"),
15663
+ own2("paramsSerializer")
15344
15664
  );
15345
15665
  if (auth) {
15346
- headers.set(
15347
- "Authorization",
15348
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
15349
- );
15666
+ const username = utils_default.getSafeProp(auth, "username") || "";
15667
+ const password = utils_default.getSafeProp(auth, "password") || "";
15668
+ try {
15669
+ headers.set(
15670
+ "Authorization",
15671
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
15672
+ );
15673
+ } catch (e) {
15674
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
15675
+ }
15350
15676
  }
15351
15677
  if (utils_default.isFormData(data)) {
15352
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
15678
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15353
15679
  headers.setContentType(void 0);
15354
15680
  } else if (utils_default.isFunction(data.getHeaders)) {
15355
15681
  setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
@@ -15368,9 +15694,10 @@ var resolveConfig_default = (config) => {
15368
15694
  }
15369
15695
  }
15370
15696
  return newConfig;
15371
- };
15697
+ }
15698
+ var resolveConfig_default = resolveConfig;
15372
15699
 
15373
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15700
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15374
15701
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15375
15702
  var xhr_default = isXHRAdapterSupported && function(config) {
15376
15703
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15510,13 +15837,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15510
15837
  config
15511
15838
  )
15512
15839
  );
15840
+ done();
15513
15841
  return;
15514
15842
  }
15515
15843
  request.send(requestData || null);
15516
15844
  });
15517
15845
  };
15518
15846
 
15519
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
15847
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
15520
15848
  var composeSignals = (signals, timeout) => {
15521
15849
  signals = signals ? signals.filter(Boolean) : [];
15522
15850
  if (!timeout && !signals.length) {
@@ -15549,14 +15877,14 @@ var composeSignals = (signals, timeout) => {
15549
15877
  });
15550
15878
  signals = null;
15551
15879
  };
15552
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
15880
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort, { once: true }));
15553
15881
  const { signal } = controller;
15554
15882
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
15555
15883
  return signal;
15556
15884
  };
15557
15885
  var composeSignals_default = composeSignals;
15558
15886
 
15559
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
15887
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
15560
15888
  var streamChunk = function* (chunk, chunkSize) {
15561
15889
  let len = chunk.byteLength;
15562
15890
  if (!chunkSize || len < chunkSize) {
@@ -15636,9 +15964,23 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15636
15964
  );
15637
15965
  };
15638
15966
 
15639
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
15967
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
15640
15968
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
15641
15969
  var { isFunction: isFunction2 } = utils_default;
15970
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
15971
+ /%([0-9A-F]{2})/gi,
15972
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
15973
+ );
15974
+ var decodeURIComponentSafe2 = (value) => {
15975
+ if (!utils_default.isString(value)) {
15976
+ return value;
15977
+ }
15978
+ try {
15979
+ return decodeURIComponent(value);
15980
+ } catch (error) {
15981
+ return value;
15982
+ }
15983
+ };
15642
15984
  var test = (fn, ...args) => {
15643
15985
  try {
15644
15986
  return !!fn(...args);
@@ -15646,6 +15988,14 @@ var test = (fn, ...args) => {
15646
15988
  return false;
15647
15989
  }
15648
15990
  };
15991
+ var maybeWithAuthCredentials = (url2) => {
15992
+ const protocolIndex = url2.indexOf("://");
15993
+ let urlToCheck = url2;
15994
+ if (protocolIndex !== -1) {
15995
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
15996
+ }
15997
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
15998
+ };
15649
15999
  var factory = (env) => {
15650
16000
  const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15651
16001
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
@@ -15750,6 +16100,7 @@ var factory = (env) => {
15750
16100
  } = resolveConfig_default(config);
15751
16101
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15752
16102
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
16103
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15753
16104
  let _fetch = envFetch || fetch;
15754
16105
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15755
16106
  let composedSignal = composeSignals_default(
@@ -15761,7 +16112,47 @@ var factory = (env) => {
15761
16112
  composedSignal.unsubscribe();
15762
16113
  });
15763
16114
  let requestContentLength;
16115
+ let pendingBodyError = null;
16116
+ const maxBodyLengthError = () => new AxiosError_default(
16117
+ "Request body larger than maxBodyLength limit",
16118
+ AxiosError_default.ERR_BAD_REQUEST,
16119
+ config,
16120
+ request
16121
+ );
15764
16122
  try {
16123
+ let auth = void 0;
16124
+ const configAuth = own2("auth");
16125
+ if (configAuth) {
16126
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
16127
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
16128
+ auth = {
16129
+ username,
16130
+ password
16131
+ };
16132
+ }
16133
+ if (maybeWithAuthCredentials(url2)) {
16134
+ const parsedURL = new URL(url2, platform_default.origin);
16135
+ if (!auth && (parsedURL.username || parsedURL.password)) {
16136
+ const urlUsername = decodeURIComponentSafe2(parsedURL.username);
16137
+ const urlPassword = decodeURIComponentSafe2(parsedURL.password);
16138
+ auth = {
16139
+ username: urlUsername,
16140
+ password: urlPassword
16141
+ };
16142
+ }
16143
+ if (parsedURL.username || parsedURL.password) {
16144
+ parsedURL.username = "";
16145
+ parsedURL.password = "";
16146
+ url2 = parsedURL.href;
16147
+ }
16148
+ }
16149
+ if (auth) {
16150
+ headers.delete("authorization");
16151
+ headers.set(
16152
+ "Authorization",
16153
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
16154
+ );
16155
+ }
15765
16156
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15766
16157
  const estimated = estimateDataURLDecodedBytes(url2);
15767
16158
  if (estimated > maxContentLength) {
@@ -15774,33 +16165,55 @@ var factory = (env) => {
15774
16165
  }
15775
16166
  }
15776
16167
  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
- );
16168
+ const outboundLength = await getBodyLength(data);
16169
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
16170
+ requestContentLength = outboundLength;
16171
+ if (outboundLength > maxBodyLength) {
16172
+ throw maxBodyLengthError();
16173
+ }
15785
16174
  }
15786
16175
  }
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);
16176
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
16177
+ const trackRequestStream = (stream4, onProgress, flush) => trackStream(
16178
+ stream4,
16179
+ DEFAULT_CHUNK_SIZE,
16180
+ (loadedBytes) => {
16181
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
16182
+ throw pendingBodyError = maxBodyLengthError();
16183
+ }
16184
+ onProgress && onProgress(loadedBytes);
16185
+ },
16186
+ flush
16187
+ );
16188
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
16189
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
16190
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
16191
+ let _request = new Request(url2, {
16192
+ method: "POST",
16193
+ body: data,
16194
+ duplex: "half"
16195
+ });
16196
+ let contentTypeHeader;
16197
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
16198
+ headers.setContentType(contentTypeHeader);
16199
+ }
16200
+ if (_request.body) {
16201
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
16202
+ requestContentLength,
16203
+ progressEventReducer(asyncDecorator(onUploadProgress))
16204
+ ) || [];
16205
+ data = trackRequestStream(_request.body, onProgress, flush);
16206
+ }
15803
16207
  }
16208
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
16209
+ data = trackRequestStream(data);
16210
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
16211
+ throw new AxiosError_default(
16212
+ "Stream request bodies are not supported by the current fetch implementation",
16213
+ AxiosError_default.ERR_NOT_SUPPORT,
16214
+ config,
16215
+ request
16216
+ );
15804
16217
  }
15805
16218
  if (!utils_default.isString(withCredentials)) {
15806
16219
  withCredentials = withCredentials ? "include" : "omit";
@@ -15824,8 +16237,9 @@ var factory = (env) => {
15824
16237
  };
15825
16238
  request = isRequestSupported && new Request(url2, resolvedOptions);
15826
16239
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
16240
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
15827
16241
  if (hasMaxContentLength) {
15828
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16242
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15829
16243
  if (declaredLength != null && declaredLength > maxContentLength) {
15830
16244
  throw new AxiosError_default(
15831
16245
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -15841,7 +16255,7 @@ var factory = (env) => {
15841
16255
  ["status", "statusText", "headers"].forEach((prop) => {
15842
16256
  options[prop] = response[prop];
15843
16257
  });
15844
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16258
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15845
16259
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
15846
16260
  responseContentLength,
15847
16261
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -15911,22 +16325,41 @@ var factory = (env) => {
15911
16325
  const canceledError = composedSignal.reason;
15912
16326
  canceledError.config = config;
15913
16327
  request && (canceledError.request = request);
15914
- err !== canceledError && (canceledError.cause = err);
16328
+ if (err !== canceledError) {
16329
+ Object.defineProperty(canceledError, "cause", {
16330
+ __proto__: null,
16331
+ value: err,
16332
+ writable: true,
16333
+ enumerable: false,
16334
+ configurable: true
16335
+ });
16336
+ }
15915
16337
  throw canceledError;
15916
16338
  }
16339
+ if (pendingBodyError) {
16340
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
16341
+ throw pendingBodyError;
16342
+ }
16343
+ if (err instanceof AxiosError_default) {
16344
+ request && !err.request && (err.request = request);
16345
+ throw err;
16346
+ }
15917
16347
  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
- }
16348
+ const networkError = new AxiosError_default(
16349
+ "Network Error",
16350
+ AxiosError_default.ERR_NETWORK,
16351
+ config,
16352
+ request,
16353
+ err && err.response
15929
16354
  );
16355
+ Object.defineProperty(networkError, "cause", {
16356
+ __proto__: null,
16357
+ value: err.cause || err,
16358
+ writable: true,
16359
+ enumerable: false,
16360
+ configurable: true
16361
+ });
16362
+ throw networkError;
15930
16363
  }
15931
16364
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
15932
16365
  }
@@ -15948,7 +16381,7 @@ var getFetch = (config) => {
15948
16381
  };
15949
16382
  var adapter = getFetch();
15950
16383
 
15951
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
16384
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
15952
16385
  var knownAdapters = {
15953
16386
  http: http_default,
15954
16387
  xhr: xhr_default,
@@ -15995,7 +16428,7 @@ function getAdapter(adapters, config) {
15995
16428
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
15996
16429
  throw new AxiosError_default(
15997
16430
  `There is no suitable adapter to dispatch the request ` + s,
15998
- "ERR_NOT_SUPPORT"
16431
+ AxiosError_default.ERR_NOT_SUPPORT
15999
16432
  );
16000
16433
  }
16001
16434
  return adapter2;
@@ -16013,7 +16446,7 @@ var adapters_default = {
16013
16446
  adapters: knownAdapters
16014
16447
  };
16015
16448
 
16016
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16449
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16017
16450
  function throwIfCancellationRequested(config) {
16018
16451
  if (config.cancelToken) {
16019
16452
  config.cancelToken.throwIfRequested();
@@ -16064,7 +16497,7 @@ function dispatchRequest(config) {
16064
16497
  );
16065
16498
  }
16066
16499
 
16067
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16500
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16068
16501
  var validators = {};
16069
16502
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16070
16503
  validators[type] = function validator(thing) {
@@ -16102,7 +16535,7 @@ validators.spelling = function spelling(correctSpelling) {
16102
16535
  };
16103
16536
  };
16104
16537
  function assertOptions(options, schema, allowUnknown) {
16105
- if (typeof options !== "object") {
16538
+ if (typeof options !== "object" || options === null) {
16106
16539
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
16107
16540
  }
16108
16541
  const keys = Object.keys(options);
@@ -16131,7 +16564,7 @@ var validator_default = {
16131
16564
  validators
16132
16565
  };
16133
16566
 
16134
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16567
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16135
16568
  var validators2 = validator_default.validators;
16136
16569
  var Axios = class {
16137
16570
  constructor(instanceConfig) {
@@ -16196,7 +16629,9 @@ var Axios = class {
16196
16629
  silentJSONParsing: validators2.transitional(validators2.boolean),
16197
16630
  forcedJSONParsing: validators2.transitional(validators2.boolean),
16198
16631
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
16199
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
16632
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
16633
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
16634
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
16200
16635
  },
16201
16636
  false
16202
16637
  );
@@ -16296,7 +16731,7 @@ var Axios = class {
16296
16731
  }
16297
16732
  getUri(config) {
16298
16733
  config = mergeConfig(this.defaults, config);
16299
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
16734
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
16300
16735
  return buildURL(fullPath, config.params, config.paramsSerializer);
16301
16736
  }
16302
16737
  };
@@ -16306,7 +16741,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
16306
16741
  mergeConfig(config || {}, {
16307
16742
  method,
16308
16743
  url: url2,
16309
- data: (config || {}).data
16744
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
16310
16745
  })
16311
16746
  );
16312
16747
  };
@@ -16333,7 +16768,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
16333
16768
  });
16334
16769
  var Axios_default = Axios;
16335
16770
 
16336
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
16771
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
16337
16772
  var CancelToken = class _CancelToken {
16338
16773
  constructor(executor) {
16339
16774
  if (typeof executor !== "function") {
@@ -16431,19 +16866,19 @@ var CancelToken = class _CancelToken {
16431
16866
  };
16432
16867
  var CancelToken_default = CancelToken;
16433
16868
 
16434
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
16869
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
16435
16870
  function spread(callback) {
16436
16871
  return function wrap(arr) {
16437
16872
  return callback.apply(null, arr);
16438
16873
  };
16439
16874
  }
16440
16875
 
16441
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
16876
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
16442
16877
  function isAxiosError(payload) {
16443
16878
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16444
16879
  }
16445
16880
 
16446
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
16881
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
16447
16882
  var HttpStatusCode = {
16448
16883
  Continue: 100,
16449
16884
  SwitchingProtocols: 101,
@@ -16520,7 +16955,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
16520
16955
  });
16521
16956
  var HttpStatusCode_default = HttpStatusCode;
16522
16957
 
16523
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
16958
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
16524
16959
  function createInstance(defaultConfig) {
16525
16960
  const context = new Axios_default(defaultConfig);
16526
16961
  const instance = bind(Axios_default.prototype.request, context);
@@ -16553,7 +16988,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16553
16988
  axios.default = axios;
16554
16989
  var axios_default = axios;
16555
16990
 
16556
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
16991
+ // ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
16557
16992
  var {
16558
16993
  Axios: Axios2,
16559
16994
  AxiosError: AxiosError2,