@alpic-ai/sdk 0.0.0-dev.g34a313e → 0.0.0-dev.g35e4c7c

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 || {};
@@ -9593,9 +9593,9 @@ var require_get_proto = __commonJS({
9593
9593
  }
9594
9594
  });
9595
9595
 
9596
- // ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
9596
+ // ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
9597
9597
  var require_hasown = __commonJS({
9598
- "../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
9598
+ "../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
9599
9599
  "use strict";
9600
9600
  var call = Function.prototype.call;
9601
9601
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -9978,17 +9978,6 @@ var require_es_set_tostringtag = __commonJS({
9978
9978
  }
9979
9979
  });
9980
9980
 
9981
- // ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
9982
- var require_hasown2 = __commonJS({
9983
- "../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
9984
- "use strict";
9985
- var call = Function.prototype.call;
9986
- var $hasOwn = Object.prototype.hasOwnProperty;
9987
- var bind2 = require_function_bind();
9988
- module.exports = bind2.call(call, $hasOwn);
9989
- }
9990
- });
9991
-
9992
9981
  // ../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js
9993
9982
  var require_populate = __commonJS({
9994
9983
  "../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/populate.js"(exports, module) {
@@ -10007,7 +9996,7 @@ var require_form_data = __commonJS({
10007
9996
  "../../node_modules/.pnpm/form-data@4.0.6/node_modules/form-data/lib/form_data.js"(exports, module) {
10008
9997
  "use strict";
10009
9998
  var CombinedStream = require_combined_stream();
10010
- var util3 = __require("util");
9999
+ var util4 = __require("util");
10011
10000
  var path = __require("path");
10012
10001
  var http3 = __require("http");
10013
10002
  var https2 = __require("https");
@@ -10018,7 +10007,7 @@ var require_form_data = __commonJS({
10018
10007
  var mime = require_mime_types();
10019
10008
  var asynckit = require_asynckit();
10020
10009
  var setToStringTag = require_es_set_tostringtag();
10021
- var hasOwn = require_hasown2();
10010
+ var hasOwn = require_hasown();
10022
10011
  var populate = require_populate();
10023
10012
  function escapeHeaderParam(str) {
10024
10013
  return String(str).replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/"/g, "%22");
@@ -10036,7 +10025,7 @@ var require_form_data = __commonJS({
10036
10025
  this[option] = options[option];
10037
10026
  }
10038
10027
  }
10039
- util3.inherits(FormData3, CombinedStream);
10028
+ util4.inherits(FormData3, CombinedStream);
10040
10029
  FormData3.LINE_BREAK = "\r\n";
10041
10030
  FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
10042
10031
  FormData3.prototype.append = function(field, value, options) {
@@ -10918,14 +10907,14 @@ var require_supports_color = __commonJS({
10918
10907
  var require_node = __commonJS({
10919
10908
  "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module) {
10920
10909
  var tty = __require("tty");
10921
- var util3 = __require("util");
10910
+ var util4 = __require("util");
10922
10911
  exports.init = init;
10923
10912
  exports.log = log3;
10924
10913
  exports.formatArgs = formatArgs;
10925
10914
  exports.save = save;
10926
10915
  exports.load = load;
10927
10916
  exports.useColors = useColors;
10928
- exports.destroy = util3.deprecate(
10917
+ exports.destroy = util4.deprecate(
10929
10918
  () => {
10930
10919
  },
10931
10920
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -11056,7 +11045,7 @@ var require_node = __commonJS({
11056
11045
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
11057
11046
  }
11058
11047
  function log3(...args) {
11059
- return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11048
+ return process.stderr.write(util4.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11060
11049
  }
11061
11050
  function save(namespaces) {
11062
11051
  if (namespaces) {
@@ -11079,11 +11068,11 @@ var require_node = __commonJS({
11079
11068
  var { formatters } = module.exports;
11080
11069
  formatters.o = function(v) {
11081
11070
  this.inspectOpts.colors = this.useColors;
11082
- 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(" ");
11083
11072
  };
11084
11073
  formatters.O = function(v) {
11085
11074
  this.inspectOpts.colors = this.useColors;
11086
- return util3.inspect(v, this.inspectOpts);
11075
+ return util4.inspect(v, this.inspectOpts);
11087
11076
  };
11088
11077
  }
11089
11078
  });
@@ -11549,9 +11538,9 @@ var require_dist = __commonJS({
11549
11538
  }
11550
11539
  });
11551
11540
 
11552
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
11541
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
11553
11542
  var require_debug = __commonJS({
11554
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports, module) {
11543
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
11555
11544
  var debug3;
11556
11545
  module.exports = function() {
11557
11546
  if (!debug3) {
@@ -11569,9 +11558,9 @@ var require_debug = __commonJS({
11569
11558
  }
11570
11559
  });
11571
11560
 
11572
- // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js
11561
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
11573
11562
  var require_follow_redirects = __commonJS({
11574
- "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js"(exports, module) {
11563
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
11575
11564
  var url2 = __require("url");
11576
11565
  var URL2 = url2.URL;
11577
11566
  var http3 = __require("http");
@@ -12080,17 +12069,34 @@ var require_follow_redirects = __commonJS({
12080
12069
  }
12081
12070
  });
12082
12071
 
12083
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
12084
12073
  function bind(fn, thisArg) {
12085
12074
  return function wrap() {
12086
12075
  return fn.apply(thisArg, arguments);
12087
12076
  };
12088
12077
  }
12089
12078
 
12090
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
12091
12080
  var { toString } = Object.prototype;
12092
12081
  var { getPrototypeOf } = Object;
12093
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;
12094
12100
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
12095
12101
  const str = toString.call(thing);
12096
12102
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -12121,11 +12127,14 @@ var isNumber = typeOfTest("number");
12121
12127
  var isObject = (thing) => thing !== null && typeof thing === "object";
12122
12128
  var isBoolean = (thing) => thing === true || thing === false;
12123
12129
  var isPlainObject = (val) => {
12124
- if (kindOf(val) !== "object") {
12130
+ if (!isObject(val)) {
12125
12131
  return false;
12126
12132
  }
12127
12133
  const prototype2 = getPrototypeOf(val);
12128
- 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);
12129
12138
  };
12130
12139
  var isEmptyObject = (val) => {
12131
12140
  if (!isObject(val) || isBuffer(val)) {
@@ -12229,7 +12238,7 @@ function merge(...objs) {
12229
12238
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12230
12239
  return;
12231
12240
  }
12232
- const targetKey = caseless && findKey(result, key) || key;
12241
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12233
12242
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12234
12243
  if (isPlainObject(existing) && isPlainObject(val)) {
12235
12244
  result[targetKey] = merge(existing, val);
@@ -12242,7 +12251,21 @@ function merge(...objs) {
12242
12251
  }
12243
12252
  };
12244
12253
  for (let i = 0, l = objs.length; i < l; i++) {
12245
- 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
+ }
12246
12269
  }
12247
12270
  return result;
12248
12271
  }
@@ -12364,7 +12387,7 @@ var toCamelCase = (str) => {
12364
12387
  return p1.toUpperCase() + p2;
12365
12388
  });
12366
12389
  };
12367
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12390
+ var { propertyIsEnumerable } = Object.prototype;
12368
12391
  var isRegExp = kindOfTest("RegExp");
12369
12392
  var reduceDescriptors = (obj, reducer) => {
12370
12393
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -12463,6 +12486,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
12463
12486
  })(typeof setImmediate === "function", isFunction(_global.postMessage));
12464
12487
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
12465
12488
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
12489
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
12466
12490
  var utils_default = {
12467
12491
  isArray,
12468
12492
  isArrayBuffer,
@@ -12508,6 +12532,8 @@ var utils_default = {
12508
12532
  hasOwnProperty,
12509
12533
  hasOwnProp: hasOwnProperty,
12510
12534
  // an alias to avoid ESLint no-prototype-builtins detection
12535
+ hasOwnInPrototypeChain,
12536
+ getSafeProp,
12511
12537
  reduceDescriptors,
12512
12538
  freezeMethods,
12513
12539
  toObjectSet,
@@ -12523,10 +12549,11 @@ var utils_default = {
12523
12549
  isThenable,
12524
12550
  setImmediate: _setImmediate,
12525
12551
  asap,
12526
- isIterable
12552
+ isIterable,
12553
+ isSafeIterable
12527
12554
  };
12528
12555
 
12529
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
12530
12557
  var ignoreDuplicateOf = utils_default.toObjectSet([
12531
12558
  "age",
12532
12559
  "authorization",
@@ -12571,7 +12598,7 @@ var parseHeaders_default = (rawHeaders) => {
12571
12598
  return parsed;
12572
12599
  };
12573
12600
 
12574
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
12575
12602
  function trimSPorHTAB(str) {
12576
12603
  let start = 0;
12577
12604
  let end = str.length;
@@ -12609,7 +12636,7 @@ function toByteStringHeaderObject(headers) {
12609
12636
  return byteStringHeaders;
12610
12637
  }
12611
12638
 
12612
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
12613
12640
  var $internals = /* @__PURE__ */ Symbol("internals");
12614
12641
  function normalizeHeader(header) {
12615
12642
  return header && String(header).trim().toLowerCase();
@@ -12673,7 +12700,7 @@ var AxiosHeaders = class {
12673
12700
  function setHeader(_value, _header, _rewrite) {
12674
12701
  const lHeader = normalizeHeader(_header);
12675
12702
  if (!lHeader) {
12676
- throw new Error("header name must be a non-empty string");
12703
+ return;
12677
12704
  }
12678
12705
  const key = utils_default.findKey(self2, lHeader);
12679
12706
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -12685,13 +12712,19 @@ var AxiosHeaders = class {
12685
12712
  setHeaders(header, valueOrRewrite);
12686
12713
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12687
12714
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12688
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12689
- let obj = {}, dest, key;
12715
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
12716
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
12690
12717
  for (const entry of header) {
12691
12718
  if (!utils_default.isArray(entry)) {
12692
- 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];
12693
12727
  }
12694
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12695
12728
  }
12696
12729
  setHeaders(obj, valueOrRewrite);
12697
12730
  } else {
@@ -12848,7 +12881,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12848
12881
  utils_default.freezeMethods(AxiosHeaders);
12849
12882
  var AxiosHeaders_default = AxiosHeaders;
12850
12883
 
12851
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
12852
12885
  var REDACTED = "[REDACTED ****]";
12853
12886
  function hasOwnOrPrototypeToJSON(source) {
12854
12887
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12904,7 +12937,13 @@ function redactConfig(config, redactKeys) {
12904
12937
  var AxiosError = class _AxiosError extends Error {
12905
12938
  static from(error, code, config, request, response, customProps) {
12906
12939
  const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12907
- axiosError.cause = error;
12940
+ Object.defineProperty(axiosError, "cause", {
12941
+ __proto__: null,
12942
+ value: error,
12943
+ writable: true,
12944
+ enumerable: false,
12945
+ configurable: true
12946
+ });
12908
12947
  axiosError.name = error.name;
12909
12948
  if (error.status != null && axiosError.status == null) {
12910
12949
  axiosError.status = error.status;
@@ -12983,11 +13022,12 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12983
13022
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12984
13023
  var AxiosError_default = AxiosError;
12985
13024
 
12986
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
12987
13026
  var import_form_data = __toESM(require_form_data(), 1);
12988
13027
  var FormData_default = import_form_data.default;
12989
13028
 
12990
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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;
12991
13031
  function isVisitable(thing) {
12992
13032
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12993
13033
  }
@@ -13029,8 +13069,9 @@ function toFormData(obj, formData, options) {
13029
13069
  const dots = options.dots;
13030
13070
  const indexes = options.indexes;
13031
13071
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13032
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
13072
+ const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
13033
13073
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13074
+ const stack = [];
13034
13075
  if (!utils_default.isFunction(visitor)) {
13035
13076
  throw new TypeError("visitor must be a function");
13036
13077
  }
@@ -13046,10 +13087,41 @@ function toFormData(obj, formData, options) {
13046
13087
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
13047
13088
  }
13048
13089
  if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
13049
- 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);
13050
13097
  }
13051
13098
  return value;
13052
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
+ }
13053
13125
  function defaultVisitor(value, key, path) {
13054
13126
  let arr = value;
13055
13127
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -13059,7 +13131,7 @@ function toFormData(obj, formData, options) {
13059
13131
  if (value && !path && typeof value === "object") {
13060
13132
  if (utils_default.endsWith(key, "{}")) {
13061
13133
  key = metaTokens ? key : key.slice(0, -2);
13062
- value = JSON.stringify(value);
13134
+ value = stringifyWithDepthLimit(value, 1);
13063
13135
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
13064
13136
  key = removeBrackets(key);
13065
13137
  arr.forEach(function each(el, index) {
@@ -13078,7 +13150,6 @@ function toFormData(obj, formData, options) {
13078
13150
  formData.append(renderKey(path, key, dots), convertValue(value));
13079
13151
  return false;
13080
13152
  }
13081
- const stack = [];
13082
13153
  const exposedHelpers = Object.assign(predicates, {
13083
13154
  defaultVisitor,
13084
13155
  convertValue,
@@ -13086,14 +13157,9 @@ function toFormData(obj, formData, options) {
13086
13157
  });
13087
13158
  function build(value, path, depth = 0) {
13088
13159
  if (utils_default.isUndefined(value)) return;
13089
- if (depth > maxDepth) {
13090
- throw new AxiosError_default(
13091
- "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13092
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13093
- );
13094
- }
13160
+ throwIfMaxDepthExceeded(depth);
13095
13161
  if (stack.indexOf(value) !== -1) {
13096
- throw Error("Circular reference detected in " + path.join("."));
13162
+ throw new Error("Circular reference detected in " + path.join("."));
13097
13163
  }
13098
13164
  stack.push(value);
13099
13165
  utils_default.forEach(value, function each(el, key) {
@@ -13112,7 +13178,7 @@ function toFormData(obj, formData, options) {
13112
13178
  }
13113
13179
  var toFormData_default = toFormData;
13114
13180
 
13115
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13116
13182
  function encode(str) {
13117
13183
  const charMap = {
13118
13184
  "!": "%21",
@@ -13135,16 +13201,14 @@ prototype.append = function append(name, value) {
13135
13201
  this._pairs.push([name, value]);
13136
13202
  };
13137
13203
  prototype.toString = function toString2(encoder) {
13138
- const _encode = encoder ? function(value) {
13139
- return encoder.call(this, value, encode);
13140
- } : encode;
13204
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
13141
13205
  return this._pairs.map(function each(pair) {
13142
13206
  return _encode(pair[0]) + "=" + _encode(pair[1]);
13143
13207
  }, "").join("&");
13144
13208
  };
13145
13209
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13146
13210
 
13147
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13148
13212
  function encode2(val) {
13149
13213
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13150
13214
  }
@@ -13152,11 +13216,12 @@ function buildURL(url2, params, options) {
13152
13216
  if (!params) {
13153
13217
  return url2;
13154
13218
  }
13155
- const _encode = options && options.encode || encode2;
13219
+ url2 = url2 || "";
13156
13220
  const _options = utils_default.isFunction(options) ? {
13157
13221
  serialize: options
13158
13222
  } : options;
13159
- const serializeFn = _options && _options.serialize;
13223
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
13224
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
13160
13225
  let serializedParams;
13161
13226
  if (serializeFn) {
13162
13227
  serializedParams = serializeFn(params, _options);
@@ -13173,7 +13238,7 @@ function buildURL(url2, params, options) {
13173
13238
  return url2;
13174
13239
  }
13175
13240
 
13176
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13177
13242
  var InterceptorManager = class {
13178
13243
  constructor() {
13179
13244
  this.handlers = [];
@@ -13238,22 +13303,24 @@ var InterceptorManager = class {
13238
13303
  };
13239
13304
  var InterceptorManager_default = InterceptorManager;
13240
13305
 
13241
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13242
13307
  var transitional_default = {
13243
13308
  silentJSONParsing: true,
13244
13309
  forcedJSONParsing: true,
13245
13310
  clarifyTimeoutError: false,
13246
- legacyInterceptorReqResOrdering: true
13311
+ legacyInterceptorReqResOrdering: true,
13312
+ advertiseZstdAcceptEncoding: false,
13313
+ validateStatusUndefinedResolves: true
13247
13314
  };
13248
13315
 
13249
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13250
13317
  import crypto from "crypto";
13251
13318
 
13252
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13253
13320
  import url from "url";
13254
13321
  var URLSearchParams_default = url.URLSearchParams;
13255
13322
 
13256
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13257
13324
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13258
13325
  var DIGIT = "0123456789";
13259
13326
  var ALPHABET = {
@@ -13283,7 +13350,7 @@ var node_default = {
13283
13350
  protocols: ["http", "https", "file", "data"]
13284
13351
  };
13285
13352
 
13286
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13287
13354
  var utils_exports = {};
13288
13355
  __export(utils_exports, {
13289
13356
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13301,13 +13368,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13301
13368
  })();
13302
13369
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13303
13370
 
13304
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13305
13372
  var platform_default = {
13306
13373
  ...utils_exports,
13307
13374
  ...node_default
13308
13375
  };
13309
13376
 
13310
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13311
13378
  function toURLEncodedForm(data, options) {
13312
13379
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13313
13380
  visitor: function(value, key, path, helpers) {
@@ -13321,11 +13388,25 @@ function toURLEncodedForm(data, options) {
13321
13388
  });
13322
13389
  }
13323
13390
 
13324
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
+ }
13325
13401
  function parsePropPath(name) {
13326
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
13327
- return match[0] === "[]" ? "" : match[1] || match[0];
13328
- });
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;
13329
13410
  }
13330
13411
  function arrayToObject(arr) {
13331
13412
  const obj = {};
@@ -13341,6 +13422,7 @@ function arrayToObject(arr) {
13341
13422
  }
13342
13423
  function formDataToJSON(formData) {
13343
13424
  function buildPath(path, value, target, index) {
13425
+ throwIfDepthExceeded(index);
13344
13426
  let name = path[index++];
13345
13427
  if (name === "__proto__") return true;
13346
13428
  const isNumericKey = Number.isFinite(+name);
@@ -13374,7 +13456,7 @@ function formDataToJSON(formData) {
13374
13456
  }
13375
13457
  var formDataToJSON_default = formDataToJSON;
13376
13458
 
13377
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13378
13460
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13379
13461
  function stringifySafely(rawValue, parser, encoder) {
13380
13462
  if (utils_default.isString(rawValue)) {
@@ -13491,7 +13573,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"]
13491
13573
  });
13492
13574
  var defaults_default = defaults;
13493
13575
 
13494
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13495
13577
  function transformData(fns, response) {
13496
13578
  const config = this || defaults_default;
13497
13579
  const context = response || config;
@@ -13504,12 +13586,12 @@ function transformData(fns, response) {
13504
13586
  return data;
13505
13587
  }
13506
13588
 
13507
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13508
13590
  function isCancel(value) {
13509
13591
  return !!(value && value.__CANCEL__);
13510
13592
  }
13511
13593
 
13512
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13513
13595
  var CanceledError = class extends AxiosError_default {
13514
13596
  /**
13515
13597
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13528,7 +13610,7 @@ var CanceledError = class extends AxiosError_default {
13528
13610
  };
13529
13611
  var CanceledError_default = CanceledError;
13530
13612
 
13531
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13532
13614
  function settle(resolve, reject, response) {
13533
13615
  const validateStatus2 = response.config.validateStatus;
13534
13616
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13544,7 +13626,7 @@ function settle(resolve, reject, response) {
13544
13626
  }
13545
13627
  }
13546
13628
 
13547
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13548
13630
  function isAbsoluteURL(url2) {
13549
13631
  if (typeof url2 !== "string") {
13550
13632
  return false;
@@ -13552,15 +13634,38 @@ function isAbsoluteURL(url2) {
13552
13634
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13553
13635
  }
13554
13636
 
13555
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13556
13638
  function combineURLs(baseURL, relativeURL) {
13557
13639
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13558
13640
  }
13559
13641
 
13560
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/buildFullPath.js
13561
- 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);
13562
13666
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13563
13667
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13668
+ assertValidHttpProtocolURL(baseURL, config);
13564
13669
  return combineURLs(baseURL, requestedURL);
13565
13670
  }
13566
13671
  return requestedURL;
@@ -13633,26 +13738,26 @@ function getEnv(key) {
13633
13738
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13634
13739
  }
13635
13740
 
13636
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13637
13742
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13638
13743
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13639
13744
  import http from "http";
13640
13745
  import https from "https";
13641
- import http2 from "http2";
13642
- import util2 from "util";
13746
+ import http22 from "http2";
13747
+ import util3 from "util";
13643
13748
  import { resolve as resolvePath } from "path";
13644
13749
  import zlib from "zlib";
13645
13750
 
13646
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/env/data.js
13647
- 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";
13648
13753
 
13649
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13650
13755
  function parseProtocol(url2) {
13651
13756
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13652
13757
  return match && match[1] || "";
13653
13758
  }
13654
13759
 
13655
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13656
13761
  var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13657
13762
  function fromDataURI(uri, asBlob, options) {
13658
13763
  const _Blob = options && options.Blob || platform_default.classes.Blob;
@@ -13670,13 +13775,13 @@ function fromDataURI(uri, asBlob, options) {
13670
13775
  const params = match[2];
13671
13776
  const encoding = match[3] ? "base64" : "utf8";
13672
13777
  const body = match[4];
13673
- let mime;
13778
+ let mime = "";
13674
13779
  if (type) {
13675
13780
  mime = params ? type + params : type;
13676
13781
  } else if (params) {
13677
13782
  mime = "text/plain" + params;
13678
13783
  }
13679
- const buffer = Buffer.from(decodeURIComponent(body), encoding);
13784
+ const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
13680
13785
  if (asBlob) {
13681
13786
  if (!_Blob) {
13682
13787
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13688,10 +13793,10 @@ function fromDataURI(uri, asBlob, options) {
13688
13793
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13689
13794
  }
13690
13795
 
13691
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13692
13797
  import stream3 from "stream";
13693
13798
 
13694
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13695
13800
  import stream from "stream";
13696
13801
  var kInternals = /* @__PURE__ */ Symbol("internals");
13697
13802
  var AxiosTransformStream = class extends stream.Transform {
@@ -13814,14 +13919,14 @@ var AxiosTransformStream = class extends stream.Transform {
13814
13919
  };
13815
13920
  var AxiosTransformStream_default = AxiosTransformStream;
13816
13921
 
13817
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13818
13923
  import { EventEmitter } from "events";
13819
13924
 
13820
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13821
13926
  import util from "util";
13822
13927
  import { Readable } from "stream";
13823
13928
 
13824
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13825
13930
  var { asyncIterator } = Symbol;
13826
13931
  var readBlob = async function* (blob) {
13827
13932
  if (blob.stream) {
@@ -13836,7 +13941,7 @@ var readBlob = async function* (blob) {
13836
13941
  };
13837
13942
  var readBlob_default = readBlob;
13838
13943
 
13839
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13840
13945
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13841
13946
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13842
13947
  var CRLF = "\r\n";
@@ -13887,10 +13992,10 @@ var formDataToStream = (form, headersHandler, options) => {
13887
13992
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
13888
13993
  } = options || {};
13889
13994
  if (!utils_default.isFormData(form)) {
13890
- throw TypeError("FormData instance required");
13995
+ throw new TypeError("FormData instance required");
13891
13996
  }
13892
13997
  if (boundary.length < 1 || boundary.length > 70) {
13893
- throw Error("boundary must be 1-70 characters long");
13998
+ throw new Error("boundary must be 1-70 characters long");
13894
13999
  }
13895
14000
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13896
14001
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13921,7 +14026,7 @@ var formDataToStream = (form, headersHandler, options) => {
13921
14026
  };
13922
14027
  var formDataToStream_default = formDataToStream;
13923
14028
 
13924
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13925
14030
  import stream2 from "stream";
13926
14031
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13927
14032
  __transform(chunk, encoding, callback) {
@@ -13943,7 +14048,88 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13943
14048
  };
13944
14049
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13945
14050
 
13946
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
13947
14133
  var callbackify = (fn, reducer) => {
13948
14134
  return utils_default.isAsyncFn(fn) ? function(...args) {
13949
14135
  const cb = args.pop();
@@ -13958,14 +14144,30 @@ var callbackify = (fn, reducer) => {
13958
14144
  };
13959
14145
  var callbackify_default = callbackify;
13960
14146
 
13961
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/shouldBypassProxy.js
13962
- 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"]);
13963
14149
  var isIPv4Loopback = (host) => {
13964
14150
  const parts = host.split(".");
13965
14151
  if (parts.length !== 4) return false;
13966
14152
  if (parts[0] !== "127") return false;
13967
14153
  return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13968
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
+ };
13969
14171
  var isIPv6Loopback = (host) => {
13970
14172
  if (host === "::1") return true;
13971
14173
  const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
@@ -13988,6 +14190,7 @@ var isLoopback = (host) => {
13988
14190
  if (!host) return false;
13989
14191
  if (LOOPBACK_HOSTNAMES.has(host)) return true;
13990
14192
  if (isIPv4Loopback(host)) return true;
14193
+ if (isIPv6Unspecified(host)) return true;
13991
14194
  return isIPv6Loopback(host);
13992
14195
  };
13993
14196
  var DEFAULT_PORTS2 = {
@@ -14080,7 +14283,7 @@ function shouldBypassProxy(location) {
14080
14283
  });
14081
14284
  }
14082
14285
 
14083
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
14084
14287
  function speedometer(samplesCount, min) {
14085
14288
  samplesCount = samplesCount || 10;
14086
14289
  const bytes = new Array(samplesCount);
@@ -14116,7 +14319,7 @@ function speedometer(samplesCount, min) {
14116
14319
  }
14117
14320
  var speedometer_default = speedometer;
14118
14321
 
14119
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
14120
14323
  function throttle(fn, freq) {
14121
14324
  let timestamp = 0;
14122
14325
  let threshold = 1e3 / freq;
@@ -14151,7 +14354,7 @@ function throttle(fn, freq) {
14151
14354
  }
14152
14355
  var throttle_default = throttle;
14153
14356
 
14154
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
14155
14358
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14156
14359
  let bytesNotified = 0;
14157
14360
  const _speedometer = speedometer_default(50, 250);
@@ -14192,7 +14395,9 @@ var progressEventDecorator = (total, throttled) => {
14192
14395
  };
14193
14396
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
14194
14397
 
14195
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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));
14196
14401
  function estimateDataURLDecodedBytes(url2) {
14197
14402
  if (!url2 || typeof url2 !== "string") return 0;
14198
14403
  if (!url2.startsWith("data:")) return 0;
@@ -14208,7 +14413,7 @@ function estimateDataURLDecodedBytes(url2) {
14208
14413
  if (body.charCodeAt(i) === 37 && i + 2 < len) {
14209
14414
  const a = body.charCodeAt(i + 1);
14210
14415
  const b = body.charCodeAt(i + 2);
14211
- 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);
14212
14417
  if (isHex) {
14213
14418
  effectiveLen -= 2;
14214
14419
  i += 2;
@@ -14240,13 +14445,13 @@ function estimateDataURLDecodedBytes(url2) {
14240
14445
  const bytes2 = groups * 3 - (pad || 0);
14241
14446
  return bytes2 > 0 ? bytes2 : 0;
14242
14447
  }
14243
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14244
- return Buffer.byteLength(body, "utf8");
14245
- }
14246
14448
  let bytes = 0;
14247
14449
  for (let i = 0, len = body.length; i < len; i++) {
14248
14450
  const c = body.charCodeAt(i);
14249
- if (c < 128) {
14451
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
14452
+ bytes += 1;
14453
+ i += 2;
14454
+ } else if (c < 128) {
14250
14455
  bytes += 1;
14251
14456
  } else if (c < 2048) {
14252
14457
  bytes += 2;
@@ -14265,7 +14470,7 @@ function estimateDataURLDecodedBytes(url2) {
14265
14470
  return bytes;
14266
14471
  }
14267
14472
 
14268
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
14269
14474
  var zlibOptions = {
14270
14475
  flush: zlib.constants.Z_SYNC_FLUSH,
14271
14476
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14274,7 +14479,14 @@ var brotliOptions = {
14274
14479
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
14275
14480
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
14276
14481
  };
14482
+ var zstdOptions = {
14483
+ flush: zlib.constants.ZSTD_e_flush,
14484
+ finishFlush: zlib.constants.ZSTD_e_flush
14485
+ };
14277
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" : "");
14278
14490
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14279
14491
  var isHttps = /https:?/;
14280
14492
  var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
@@ -14294,6 +14506,35 @@ var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
14294
14506
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14295
14507
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14296
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
+ }
14297
14538
  function getTunnelingAgent(agentOptions, userHttpsAgent) {
14298
14539
  const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14299
14540
  const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
@@ -14301,6 +14542,13 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
14301
14542
  if (agent) return agent;
14302
14543
  const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14303
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
+ }
14304
14552
  agent[kAxiosInstalledTunnel] = true;
14305
14553
  cache.set(key, agent);
14306
14554
  return agent;
@@ -14322,90 +14570,45 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
14322
14570
  stream4.on("end", flush).on("error", flush);
14323
14571
  return throttled;
14324
14572
  };
14325
- var Http2Sessions = class {
14326
- constructor() {
14327
- this.sessions = /* @__PURE__ */ Object.create(null);
14328
- }
14329
- getSession(authority, options) {
14330
- options = Object.assign(
14331
- {
14332
- sessionTimeout: 1e3
14333
- },
14334
- options
14335
- );
14336
- let authoritySessions = this.sessions[authority];
14337
- if (authoritySessions) {
14338
- let len = authoritySessions.length;
14339
- for (let i = 0; i < len; i++) {
14340
- const [sessionHandle, sessionOptions] = authoritySessions[i];
14341
- if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14342
- return sessionHandle;
14343
- }
14344
- }
14345
- }
14346
- const session = http2.connect(authority, options);
14347
- let removed;
14348
- const removeSession = () => {
14349
- if (removed) {
14350
- return;
14351
- }
14352
- removed = true;
14353
- let entries = authoritySessions, len = entries.length, i = len;
14354
- while (i--) {
14355
- if (entries[i][0] === session) {
14356
- if (len === 1) {
14357
- delete this.sessions[authority];
14358
- } else {
14359
- entries.splice(i, 1);
14360
- }
14361
- if (!session.closed) {
14362
- session.close();
14363
- }
14364
- return;
14365
- }
14366
- }
14367
- };
14368
- const originalRequestFn = session.request;
14369
- const { sessionTimeout } = options;
14370
- if (sessionTimeout != null) {
14371
- let timer;
14372
- let streamsCount = 0;
14373
- session.request = function() {
14374
- const stream4 = originalRequestFn.apply(this, arguments);
14375
- streamsCount++;
14376
- if (timer) {
14377
- clearTimeout(timer);
14378
- timer = null;
14379
- }
14380
- stream4.once("close", () => {
14381
- if (!--streamsCount) {
14382
- timer = setTimeout(() => {
14383
- timer = null;
14384
- removeSession();
14385
- }, sessionTimeout);
14386
- }
14387
- });
14388
- return stream4;
14389
- };
14390
- }
14391
- session.once("close", removeSession);
14392
- let entry = [session, options];
14393
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14394
- return session;
14395
- }
14396
- };
14397
- var http2Sessions = new Http2Sessions();
14573
+ var http2Sessions = new Http2Sessions_default();
14398
14574
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14399
14575
  if (options.beforeRedirects.proxy) {
14400
14576
  options.beforeRedirects.proxy(options);
14401
14577
  }
14578
+ if (options.beforeRedirects.auth) {
14579
+ options.beforeRedirects.auth(options);
14580
+ }
14581
+ if (options.beforeRedirects.sensitiveHeaders) {
14582
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
14583
+ }
14402
14584
  if (options.beforeRedirects.config) {
14403
14585
  options.beforeRedirects.config(options, responseDetails, requestDetails);
14404
14586
  }
14405
14587
  }
14406
- 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) {
14407
14609
  let proxy = configProxy;
14408
- if (!proxy && proxy !== false) {
14610
+ const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
14611
+ if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14409
14612
  const proxyUrl = getProxyForUrl(location);
14410
14613
  if (proxyUrl) {
14411
14614
  if (!shouldBypassProxy(location)) {
@@ -14496,7 +14699,14 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
14496
14699
  }
14497
14700
  }
14498
14701
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
14499
- setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
14702
+ setProxy(
14703
+ redirectOptions,
14704
+ configProxy,
14705
+ redirectOptions.href,
14706
+ true,
14707
+ configHttpsAgent,
14708
+ configHttpAgent
14709
+ );
14500
14710
  };
14501
14711
  }
14502
14712
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -14535,7 +14745,7 @@ var http2Transport = {
14535
14745
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
14536
14746
  const { http2Options, headers } = options;
14537
14747
  const session = http2Sessions.getSession(authority, http2Options);
14538
- 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;
14539
14749
  const http2Headers = {
14540
14750
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
14541
14751
  [HTTP2_HEADER_METHOD]: options.method,
@@ -14559,16 +14769,25 @@ var http2Transport = {
14559
14769
  };
14560
14770
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14561
14771
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
14562
- 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;
14563
14774
  let data = own2("data");
14564
14775
  let lookup = own2("lookup");
14565
14776
  let family = own2("family");
14566
14777
  let httpVersion = own2("httpVersion");
14567
14778
  if (httpVersion === void 0) httpVersion = 1;
14568
14779
  let http2Options = own2("http2Options");
14780
+ const httpAgent = own2("httpAgent");
14781
+ const httpsAgent = own2("httpsAgent");
14782
+ const configProxy = own2("proxy");
14569
14783
  const responseType = own2("responseType");
14570
14784
  const responseEncoding = own2("responseEncoding");
14571
- 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");
14572
14791
  let isDone;
14573
14792
  let rejected = false;
14574
14793
  let req;
@@ -14601,7 +14820,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14601
14820
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14602
14821
  );
14603
14822
  } catch (err) {
14604
- console.warn("emit error", err);
14605
14823
  }
14606
14824
  }
14607
14825
  function clearConnectPhaseTimer() {
@@ -14611,10 +14829,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14611
14829
  }
14612
14830
  }
14613
14831
  function createTimeoutError() {
14614
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
14615
- const transitional2 = config.transitional || transitional_default;
14616
- if (config.timeoutErrorMessage) {
14617
- 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;
14618
14837
  }
14619
14838
  return new AxiosError_default(
14620
14839
  timeoutErrorMessage,
@@ -14658,17 +14877,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14658
14877
  onFinished();
14659
14878
  }
14660
14879
  });
14661
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14662
- 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);
14663
14883
  const protocol = parsed.protocol || supportedProtocols[0];
14664
14884
  if (protocol === "data:") {
14665
- if (config.maxContentLength > -1) {
14666
- const dataUrl = String(config.url || fullPath || "");
14885
+ if (maxContentLength > -1) {
14886
+ const dataUrl = String(own2("url") || fullPath || "");
14667
14887
  const estimated = estimateDataURLDecodedBytes(dataUrl);
14668
- if (estimated > config.maxContentLength) {
14888
+ if (estimated > maxContentLength) {
14669
14889
  return reject(
14670
14890
  new AxiosError_default(
14671
- "maxContentLength size of " + config.maxContentLength + " exceeded",
14891
+ "maxContentLength size of " + maxContentLength + " exceeded",
14672
14892
  AxiosError_default.ERR_BAD_RESPONSE,
14673
14893
  config
14674
14894
  )
@@ -14685,7 +14905,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14685
14905
  });
14686
14906
  }
14687
14907
  try {
14688
- convertedData = fromDataURI(config.url, responseType === "blob", {
14908
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
14689
14909
  Blob: config.env && config.env.Blob
14690
14910
  });
14691
14911
  } catch (err) {
@@ -14734,7 +14954,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14734
14954
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14735
14955
  if (!headers.hasContentLength()) {
14736
14956
  try {
14737
- const knownLength = await util2.promisify(data.getLength).call(data);
14957
+ const knownLength = await util3.promisify(data.getLength).call(data);
14738
14958
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
14739
14959
  } catch (e) {
14740
14960
  }
@@ -14759,7 +14979,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14759
14979
  );
14760
14980
  }
14761
14981
  headers.setContentLength(data.length, false);
14762
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
14982
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
14763
14983
  return reject(
14764
14984
  new AxiosError_default(
14765
14985
  "Request body larger than maxBodyLength limit",
@@ -14803,11 +15023,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14803
15023
  let auth = void 0;
14804
15024
  const configAuth = own2("auth");
14805
15025
  if (configAuth) {
14806
- const username = configAuth.username || "";
14807
- const password = configAuth.password || "";
15026
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
15027
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
14808
15028
  auth = username + ":" + password;
14809
15029
  }
14810
- if (!auth && parsed.username) {
15030
+ if (!auth && (parsed.username || parsed.password)) {
14811
15031
  const urlUsername = decodeURIComponentSafe(parsed.username);
14812
15032
  const urlPassword = decodeURIComponentSafe(parsed.password);
14813
15033
  auth = urlUsername + ":" + urlPassword;
@@ -14817,26 +15037,27 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14817
15037
  try {
14818
15038
  path = buildURL(
14819
15039
  parsed.pathname + parsed.search,
14820
- config.params,
14821
- config.paramsSerializer
15040
+ own2("params"),
15041
+ own2("paramsSerializer")
14822
15042
  ).replace(/^\?/, "");
14823
15043
  } catch (err) {
14824
- const customErr = new Error(err.message);
14825
- customErr.config = config;
14826
- customErr.url = config.url;
14827
- customErr.exists = true;
14828
- 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
+ );
14829
15050
  }
14830
15051
  headers.set(
14831
15052
  "Accept-Encoding",
14832
- "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
15053
+ utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
14833
15054
  false
14834
15055
  );
14835
15056
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
14836
15057
  path,
14837
15058
  method,
14838
15059
  headers: toByteStringHeaderObject(headers),
14839
- agents: { http: config.httpAgent, https: config.httpsAgent },
15060
+ agents: { http: httpAgent, https: httpsAgent },
14840
15061
  auth,
14841
15062
  protocol,
14842
15063
  family,
@@ -14845,45 +15066,48 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14845
15066
  http2Options
14846
15067
  });
14847
15068
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
14848
- if (config.socketPath) {
14849
- if (typeof config.socketPath !== "string") {
15069
+ if (socketPath) {
15070
+ if (typeof socketPath !== "string") {
14850
15071
  return reject(
14851
15072
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14852
15073
  );
14853
15074
  }
14854
- if (config.allowedSocketPaths != null) {
14855
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14856
- 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);
14857
15079
  const isAllowed = allowed.some(
14858
15080
  (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14859
15081
  );
14860
15082
  if (!isAllowed) {
14861
15083
  return reject(
14862
15084
  new AxiosError_default(
14863
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
15085
+ `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
14864
15086
  AxiosError_default.ERR_BAD_OPTION_VALUE,
14865
15087
  config
14866
15088
  )
14867
15089
  );
14868
15090
  }
14869
15091
  }
14870
- options.socketPath = config.socketPath;
15092
+ options.socketPath = socketPath;
14871
15093
  } else {
14872
15094
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
14873
15095
  options.port = parsed.port;
14874
15096
  setProxy(
14875
15097
  options,
14876
- config.proxy,
15098
+ configProxy,
14877
15099
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14878
15100
  false,
14879
- config.httpsAgent
15101
+ httpsAgent,
15102
+ httpAgent
14880
15103
  );
14881
15104
  }
14882
15105
  let transport;
14883
15106
  let isNativeTransport = false;
15107
+ let transportEnforcesMaxBodyLength = false;
14884
15108
  const isHttpsRequest = isHttps.test(options.protocol);
14885
15109
  if (options.agent == null) {
14886
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
15110
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
14887
15111
  }
14888
15112
  if (isHttp2) {
14889
15113
  transport = http2Transport;
@@ -14891,22 +15115,69 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14891
15115
  const configTransport = own2("transport");
14892
15116
  if (configTransport) {
14893
15117
  transport = configTransport;
14894
- } else if (config.maxRedirects === 0) {
15118
+ } else if (maxRedirects === 0) {
14895
15119
  transport = isHttpsRequest ? https : http;
14896
15120
  isNativeTransport = true;
14897
15121
  } else {
14898
- if (config.maxRedirects) {
14899
- options.maxRedirects = config.maxRedirects;
15122
+ transportEnforcesMaxBodyLength = true;
15123
+ options.sensitiveHeaders = [];
15124
+ if (maxRedirects) {
15125
+ options.maxRedirects = maxRedirects;
14900
15126
  }
14901
15127
  const configBeforeRedirect = own2("beforeRedirect");
14902
15128
  if (configBeforeRedirect) {
14903
15129
  options.beforeRedirects.config = configBeforeRedirect;
14904
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
+ }
14905
15176
  transport = isHttpsRequest ? httpsFollow : httpFollow;
14906
15177
  }
14907
15178
  }
14908
- if (config.maxBodyLength > -1) {
14909
- options.maxBodyLength = config.maxBodyLength;
15179
+ if (maxBodyLength > -1) {
15180
+ options.maxBodyLength = maxBodyLength;
14910
15181
  } else {
14911
15182
  options.maxBodyLength = Infinity;
14912
15183
  }
@@ -14934,7 +15205,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14934
15205
  }
14935
15206
  let responseStream = res;
14936
15207
  const lastRequest = res.req || req;
14937
- if (config.decompress !== false && res.headers["content-encoding"]) {
15208
+ if (decompress !== false && res.headers["content-encoding"]) {
14938
15209
  if (method === "HEAD" || res.statusCode === 204) {
14939
15210
  delete res.headers["content-encoding"];
14940
15211
  }
@@ -14957,6 +15228,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14957
15228
  streams.push(zlib.createBrotliDecompress(brotliOptions));
14958
15229
  delete res.headers["content-encoding"];
14959
15230
  }
15231
+ break;
15232
+ case "zstd":
15233
+ if (isZstdSupported) {
15234
+ streams.push(zlib.createZstdDecompress(zstdOptions));
15235
+ delete res.headers["content-encoding"];
15236
+ }
15237
+ break;
14960
15238
  }
14961
15239
  }
14962
15240
  responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
@@ -14968,8 +15246,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14968
15246
  request: lastRequest
14969
15247
  };
14970
15248
  if (responseType === "stream") {
14971
- if (config.maxContentLength > -1) {
14972
- const limit = config.maxContentLength;
15249
+ if (maxContentLength > -1) {
15250
+ const limit = maxContentLength;
14973
15251
  const source = responseStream;
14974
15252
  async function* enforceMaxContentLength() {
14975
15253
  let totalResponseBytes = 0;
@@ -14998,12 +15276,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14998
15276
  responseStream.on("data", function handleStreamData(chunk) {
14999
15277
  responseBuffer.push(chunk);
15000
15278
  totalResponseBytes += chunk.length;
15001
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
15279
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
15002
15280
  rejected = true;
15003
15281
  responseStream.destroy();
15004
15282
  abort(
15005
15283
  new AxiosError_default(
15006
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15284
+ "maxContentLength size of " + maxContentLength + " exceeded",
15007
15285
  AxiosError_default.ERR_BAD_RESPONSE,
15008
15286
  config,
15009
15287
  lastRequest
@@ -15064,7 +15342,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15064
15342
  });
15065
15343
  const boundSockets = /* @__PURE__ */ new Set();
15066
15344
  req.on("socket", function handleRequestSocket(socket) {
15067
- socket.setKeepAlive(true, 1e3 * 60);
15345
+ if (typeof socket.setKeepAlive === "function") {
15346
+ socket.setKeepAlive(true, 1e3 * 60);
15347
+ }
15068
15348
  if (!socket[kAxiosSocketListener]) {
15069
15349
  socket.on("error", function handleSocketError(err) {
15070
15350
  const current = socket[kAxiosCurrentReq];
@@ -15086,8 +15366,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15086
15366
  }
15087
15367
  boundSockets.clear();
15088
15368
  });
15089
- if (config.timeout) {
15090
- const timeout = parseInt(config.timeout, 10);
15369
+ if (own2("timeout")) {
15370
+ const timeout = parseInt(own2("timeout"), 10);
15091
15371
  if (Number.isNaN(timeout)) {
15092
15372
  abort(
15093
15373
  new AxiosError_default(
@@ -15126,8 +15406,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15126
15406
  }
15127
15407
  });
15128
15408
  let uploadStream = data;
15129
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15130
- const limit = config.maxBodyLength;
15409
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
15410
+ const limit = maxBodyLength;
15131
15411
  let bytesSent = 0;
15132
15412
  uploadStream = stream3.pipeline(
15133
15413
  [
@@ -15163,7 +15443,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15163
15443
  });
15164
15444
  };
15165
15445
 
15166
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15167
15447
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15168
15448
  url2 = new URL(url2, platform_default.origin);
15169
15449
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15172,7 +15452,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15172
15452
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15173
15453
  ) : () => true;
15174
15454
 
15175
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15176
15456
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15177
15457
  // Standard browser envs support document.cookie
15178
15458
  {
@@ -15203,7 +15483,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15203
15483
  const cookie = cookies[i].replace(/^\s+/, "");
15204
15484
  const eq = cookie.indexOf("=");
15205
15485
  if (eq !== -1 && cookie.slice(0, eq) === name) {
15206
- 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
+ }
15207
15491
  }
15208
15492
  }
15209
15493
  return null;
@@ -15225,9 +15509,10 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15225
15509
  }
15226
15510
  );
15227
15511
 
15228
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15229
15513
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
15230
15514
  function mergeConfig(config1, config2) {
15515
+ config1 = config1 || {};
15231
15516
  config2 = config2 || {};
15232
15517
  const config = /* @__PURE__ */ Object.create(null);
15233
15518
  Object.defineProperty(config, "hasOwnProperty", {
@@ -15268,6 +15553,23 @@ function mergeConfig(config1, config2) {
15268
15553
  return getMergedValue(void 0, a);
15269
15554
  }
15270
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
+ }
15271
15573
  function mergeDirectKeys(a, b, prop) {
15272
15574
  if (utils_default.hasOwnProp(config2, prop)) {
15273
15575
  return getMergedValue(a, b);
@@ -15315,17 +15617,24 @@ function mergeConfig(config1, config2) {
15315
15617
  const configValue = merge2(a, b, prop);
15316
15618
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15317
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
+ }
15318
15627
  return config;
15319
15628
  }
15320
15629
 
15321
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15322
15631
  var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15323
15632
  function setFormDataHeaders2(headers, formHeaders, policy) {
15324
15633
  if (policy !== "content-only") {
15325
15634
  headers.set(formHeaders);
15326
15635
  return;
15327
15636
  }
15328
- Object.entries(formHeaders).forEach(([key, val]) => {
15637
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
15329
15638
  if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15330
15639
  headers.set(key, val);
15331
15640
  }
@@ -15335,7 +15644,7 @@ var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15335
15644
  /%([0-9A-F]{2})/gi,
15336
15645
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
15337
15646
  );
15338
- var resolveConfig_default = (config) => {
15647
+ function resolveConfig(config) {
15339
15648
  const newConfig = mergeConfig({}, config);
15340
15649
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15341
15650
  const data = own2("data");
@@ -15349,18 +15658,24 @@ var resolveConfig_default = (config) => {
15349
15658
  const url2 = own2("url");
15350
15659
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
15351
15660
  newConfig.url = buildURL(
15352
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
15353
- config.params,
15354
- config.paramsSerializer
15661
+ buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
15662
+ own2("params"),
15663
+ own2("paramsSerializer")
15355
15664
  );
15356
15665
  if (auth) {
15357
- headers.set(
15358
- "Authorization",
15359
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
15360
- );
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
+ }
15361
15676
  }
15362
15677
  if (utils_default.isFormData(data)) {
15363
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
15678
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15364
15679
  headers.setContentType(void 0);
15365
15680
  } else if (utils_default.isFunction(data.getHeaders)) {
15366
15681
  setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
@@ -15379,9 +15694,10 @@ var resolveConfig_default = (config) => {
15379
15694
  }
15380
15695
  }
15381
15696
  return newConfig;
15382
- };
15697
+ }
15698
+ var resolveConfig_default = resolveConfig;
15383
15699
 
15384
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15385
15701
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15386
15702
  var xhr_default = isXHRAdapterSupported && function(config) {
15387
15703
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15521,13 +15837,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15521
15837
  config
15522
15838
  )
15523
15839
  );
15840
+ done();
15524
15841
  return;
15525
15842
  }
15526
15843
  request.send(requestData || null);
15527
15844
  });
15528
15845
  };
15529
15846
 
15530
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15531
15848
  var composeSignals = (signals, timeout) => {
15532
15849
  signals = signals ? signals.filter(Boolean) : [];
15533
15850
  if (!timeout && !signals.length) {
@@ -15560,14 +15877,14 @@ var composeSignals = (signals, timeout) => {
15560
15877
  });
15561
15878
  signals = null;
15562
15879
  };
15563
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
15880
+ signals.forEach((signal2) => signal2.addEventListener("abort", onabort, { once: true }));
15564
15881
  const { signal } = controller;
15565
15882
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
15566
15883
  return signal;
15567
15884
  };
15568
15885
  var composeSignals_default = composeSignals;
15569
15886
 
15570
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15571
15888
  var streamChunk = function* (chunk, chunkSize) {
15572
15889
  let len = chunk.byteLength;
15573
15890
  if (!chunkSize || len < chunkSize) {
@@ -15647,9 +15964,23 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15647
15964
  );
15648
15965
  };
15649
15966
 
15650
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15651
15968
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
15652
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
+ };
15653
15984
  var test = (fn, ...args) => {
15654
15985
  try {
15655
15986
  return !!fn(...args);
@@ -15657,6 +15988,14 @@ var test = (fn, ...args) => {
15657
15988
  return false;
15658
15989
  }
15659
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
+ };
15660
15999
  var factory = (env) => {
15661
16000
  const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15662
16001
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
@@ -15761,6 +16100,7 @@ var factory = (env) => {
15761
16100
  } = resolveConfig_default(config);
15762
16101
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15763
16102
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
16103
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15764
16104
  let _fetch = envFetch || fetch;
15765
16105
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15766
16106
  let composedSignal = composeSignals_default(
@@ -15772,7 +16112,47 @@ var factory = (env) => {
15772
16112
  composedSignal.unsubscribe();
15773
16113
  });
15774
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
+ );
15775
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
+ }
15776
16156
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15777
16157
  const estimated = estimateDataURLDecodedBytes(url2);
15778
16158
  if (estimated > maxContentLength) {
@@ -15785,33 +16165,55 @@ var factory = (env) => {
15785
16165
  }
15786
16166
  }
15787
16167
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
15788
- const outboundLength = await resolveBodyLength(headers, data);
15789
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
15790
- throw new AxiosError_default(
15791
- "Request body larger than maxBodyLength limit",
15792
- AxiosError_default.ERR_BAD_REQUEST,
15793
- config,
15794
- request
15795
- );
16168
+ const outboundLength = await getBodyLength(data);
16169
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
16170
+ requestContentLength = outboundLength;
16171
+ if (outboundLength > maxBodyLength) {
16172
+ throw maxBodyLengthError();
16173
+ }
15796
16174
  }
15797
16175
  }
15798
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
15799
- let _request = new Request(url2, {
15800
- method: "POST",
15801
- body: data,
15802
- duplex: "half"
15803
- });
15804
- let contentTypeHeader;
15805
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
15806
- headers.setContentType(contentTypeHeader);
15807
- }
15808
- if (_request.body) {
15809
- const [onProgress, flush] = progressEventDecorator(
15810
- requestContentLength,
15811
- progressEventReducer(asyncDecorator(onUploadProgress))
15812
- );
15813
- 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
+ }
15814
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
+ );
15815
16217
  }
15816
16218
  if (!utils_default.isString(withCredentials)) {
15817
16219
  withCredentials = withCredentials ? "include" : "omit";
@@ -15835,8 +16237,9 @@ var factory = (env) => {
15835
16237
  };
15836
16238
  request = isRequestSupported && new Request(url2, resolvedOptions);
15837
16239
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
16240
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
15838
16241
  if (hasMaxContentLength) {
15839
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16242
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15840
16243
  if (declaredLength != null && declaredLength > maxContentLength) {
15841
16244
  throw new AxiosError_default(
15842
16245
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -15852,7 +16255,7 @@ var factory = (env) => {
15852
16255
  ["status", "statusText", "headers"].forEach((prop) => {
15853
16256
  options[prop] = response[prop];
15854
16257
  });
15855
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16258
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15856
16259
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
15857
16260
  responseContentLength,
15858
16261
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -15922,22 +16325,41 @@ var factory = (env) => {
15922
16325
  const canceledError = composedSignal.reason;
15923
16326
  canceledError.config = config;
15924
16327
  request && (canceledError.request = request);
15925
- 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
+ }
15926
16337
  throw canceledError;
15927
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
+ }
15928
16347
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
15929
- throw Object.assign(
15930
- new AxiosError_default(
15931
- "Network Error",
15932
- AxiosError_default.ERR_NETWORK,
15933
- config,
15934
- request,
15935
- err && err.response
15936
- ),
15937
- {
15938
- cause: err.cause || err
15939
- }
16348
+ const networkError = new AxiosError_default(
16349
+ "Network Error",
16350
+ AxiosError_default.ERR_NETWORK,
16351
+ config,
16352
+ request,
16353
+ err && err.response
15940
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;
15941
16363
  }
15942
16364
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
15943
16365
  }
@@ -15959,7 +16381,7 @@ var getFetch = (config) => {
15959
16381
  };
15960
16382
  var adapter = getFetch();
15961
16383
 
15962
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
15963
16385
  var knownAdapters = {
15964
16386
  http: http_default,
15965
16387
  xhr: xhr_default,
@@ -16006,7 +16428,7 @@ function getAdapter(adapters, config) {
16006
16428
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
16007
16429
  throw new AxiosError_default(
16008
16430
  `There is no suitable adapter to dispatch the request ` + s,
16009
- "ERR_NOT_SUPPORT"
16431
+ AxiosError_default.ERR_NOT_SUPPORT
16010
16432
  );
16011
16433
  }
16012
16434
  return adapter2;
@@ -16024,7 +16446,7 @@ var adapters_default = {
16024
16446
  adapters: knownAdapters
16025
16447
  };
16026
16448
 
16027
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16028
16450
  function throwIfCancellationRequested(config) {
16029
16451
  if (config.cancelToken) {
16030
16452
  config.cancelToken.throwIfRequested();
@@ -16075,7 +16497,7 @@ function dispatchRequest(config) {
16075
16497
  );
16076
16498
  }
16077
16499
 
16078
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16079
16501
  var validators = {};
16080
16502
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16081
16503
  validators[type] = function validator(thing) {
@@ -16113,7 +16535,7 @@ validators.spelling = function spelling(correctSpelling) {
16113
16535
  };
16114
16536
  };
16115
16537
  function assertOptions(options, schema, allowUnknown) {
16116
- if (typeof options !== "object") {
16538
+ if (typeof options !== "object" || options === null) {
16117
16539
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
16118
16540
  }
16119
16541
  const keys = Object.keys(options);
@@ -16142,7 +16564,7 @@ var validator_default = {
16142
16564
  validators
16143
16565
  };
16144
16566
 
16145
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16146
16568
  var validators2 = validator_default.validators;
16147
16569
  var Axios = class {
16148
16570
  constructor(instanceConfig) {
@@ -16207,7 +16629,9 @@ var Axios = class {
16207
16629
  silentJSONParsing: validators2.transitional(validators2.boolean),
16208
16630
  forcedJSONParsing: validators2.transitional(validators2.boolean),
16209
16631
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
16210
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
16632
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
16633
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
16634
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
16211
16635
  },
16212
16636
  false
16213
16637
  );
@@ -16307,7 +16731,7 @@ var Axios = class {
16307
16731
  }
16308
16732
  getUri(config) {
16309
16733
  config = mergeConfig(this.defaults, config);
16310
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
16734
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
16311
16735
  return buildURL(fullPath, config.params, config.paramsSerializer);
16312
16736
  }
16313
16737
  };
@@ -16317,7 +16741,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
16317
16741
  mergeConfig(config || {}, {
16318
16742
  method,
16319
16743
  url: url2,
16320
- data: (config || {}).data
16744
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
16321
16745
  })
16322
16746
  );
16323
16747
  };
@@ -16344,7 +16768,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
16344
16768
  });
16345
16769
  var Axios_default = Axios;
16346
16770
 
16347
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16348
16772
  var CancelToken = class _CancelToken {
16349
16773
  constructor(executor) {
16350
16774
  if (typeof executor !== "function") {
@@ -16442,19 +16866,19 @@ var CancelToken = class _CancelToken {
16442
16866
  };
16443
16867
  var CancelToken_default = CancelToken;
16444
16868
 
16445
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16446
16870
  function spread(callback) {
16447
16871
  return function wrap(arr) {
16448
16872
  return callback.apply(null, arr);
16449
16873
  };
16450
16874
  }
16451
16875
 
16452
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16453
16877
  function isAxiosError(payload) {
16454
16878
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16455
16879
  }
16456
16880
 
16457
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16458
16882
  var HttpStatusCode = {
16459
16883
  Continue: 100,
16460
16884
  SwitchingProtocols: 101,
@@ -16531,7 +16955,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
16531
16955
  });
16532
16956
  var HttpStatusCode_default = HttpStatusCode;
16533
16957
 
16534
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16535
16959
  function createInstance(defaultConfig) {
16536
16960
  const context = new Axios_default(defaultConfig);
16537
16961
  const instance = bind(Axios_default.prototype.request, context);
@@ -16564,7 +16988,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16564
16988
  axios.default = axios;
16565
16989
  var axios_default = axios;
16566
16990
 
16567
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/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
16568
16992
  var {
16569
16993
  Axios: Axios2,
16570
16994
  AxiosError: AxiosError2,
@@ -16585,18 +17009,18 @@ var {
16585
17009
  create
16586
17010
  } = axios_default;
16587
17011
 
16588
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=4a969c2edb33b7885d9a25490aa8b87f86e8fd86455a95c8e3c8aa4bdac720b9/node_modules/pipenet/dist/Tunnel.js
17012
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16589
17013
  var import_debug2 = __toESM(require_src(), 1);
16590
17014
  import { EventEmitter as EventEmitter3 } from "events";
16591
17015
 
16592
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=4a969c2edb33b7885d9a25490aa8b87f86e8fd86455a95c8e3c8aa4bdac720b9/node_modules/pipenet/dist/TunnelCluster.js
17016
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16593
17017
  var import_debug = __toESM(require_src(), 1);
16594
17018
  import { EventEmitter as EventEmitter2 } from "events";
16595
17019
  import fs from "fs";
16596
17020
  import net from "net";
16597
17021
  import tls from "tls";
16598
17022
 
16599
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=4a969c2edb33b7885d9a25490aa8b87f86e8fd86455a95c8e3c8aa4bdac720b9/node_modules/pipenet/dist/HeaderHostTransformer.js
17023
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
16600
17024
  import { Transform } from "stream";
16601
17025
  var HeaderHostTransformer = class extends Transform {
16602
17026
  host;
@@ -16614,7 +17038,7 @@ var HeaderHostTransformer = class extends Transform {
16614
17038
  }
16615
17039
  };
16616
17040
 
16617
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=4a969c2edb33b7885d9a25490aa8b87f86e8fd86455a95c8e3c8aa4bdac720b9/node_modules/pipenet/dist/TunnelCluster.js
17041
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16618
17042
  var log = (0, import_debug.default)("pipenet:client");
16619
17043
  var TunnelCluster = class extends EventEmitter2 {
16620
17044
  opts;
@@ -16714,7 +17138,7 @@ var TunnelCluster = class extends EventEmitter2 {
16714
17138
  }
16715
17139
  };
16716
17140
 
16717
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=4a969c2edb33b7885d9a25490aa8b87f86e8fd86455a95c8e3c8aa4bdac720b9/node_modules/pipenet/dist/Tunnel.js
17141
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16718
17142
  var log2 = (0, import_debug2.default)("pipenet:client");
16719
17143
  var Tunnel = class extends EventEmitter3 {
16720
17144
  cachedUrl;
@@ -16862,7 +17286,7 @@ var Tunnel = class extends EventEmitter3 {
16862
17286
  }
16863
17287
  };
16864
17288
 
16865
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=4a969c2edb33b7885d9a25490aa8b87f86e8fd86455a95c8e3c8aa4bdac720b9/node_modules/pipenet/dist/pipenet.js
17289
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=6563a9cc9b0f2a1e688a2ed680b80f8623092856e6c4c446e0cdc8d98f497ac9_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
16866
17290
  function pipenet(arg1, arg2, arg3) {
16867
17291
  const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
16868
17292
  const callback = typeof arg1 === "object" ? arg2 : arg3;