@alpic-ai/sdk 0.0.0-dev.ge6785c4 → 0.0.0-dev.ge68f6eb

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,94 @@ 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.20.0_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.20.0_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 isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
12085
+ var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
12086
+ var isSafeAndFullyMutable = (obj) => {
12087
+ if (!Object.isExtensible(obj)) {
12088
+ return false;
12089
+ }
12090
+ const props = Object.getOwnPropertyNames(obj);
12091
+ if (Object.getOwnPropertySymbols) {
12092
+ props.push(...Object.getOwnPropertySymbols(obj));
12093
+ }
12094
+ return props.every((prop) => {
12095
+ if (isUnsafeObjectKey(prop)) {
12096
+ return false;
12097
+ }
12098
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
12099
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
12100
+ });
12101
+ };
12102
+ var hasOwnInPrototypeChain = (thing, prop) => {
12103
+ let obj = thing;
12104
+ const seen = [];
12105
+ while (obj != null) {
12106
+ if (seen.indexOf(obj) !== -1) {
12107
+ return false;
12108
+ }
12109
+ seen.push(obj);
12110
+ const prototype2 = getPrototypeOf(obj);
12111
+ if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
12112
+ return false;
12113
+ }
12114
+ if (hasOwnProperty(obj, prop)) {
12115
+ return true;
12116
+ }
12117
+ obj = prototype2;
12118
+ }
12119
+ return false;
12120
+ };
12121
+ var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
12122
+ var toSafeFlatObject = (thing) => {
12123
+ if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
12124
+ return thing;
12125
+ }
12126
+ const sourcePrototype = getPrototypeOf(thing);
12127
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
12128
+ return thing;
12129
+ }
12130
+ const result = /* @__PURE__ */ Object.create(null);
12131
+ const merged = /* @__PURE__ */ Object.create(null);
12132
+ const seen = [];
12133
+ let current = thing;
12134
+ while (current != null) {
12135
+ if (seen.indexOf(current) !== -1) {
12136
+ break;
12137
+ }
12138
+ seen.push(current);
12139
+ const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
12140
+ if (isPrototypeBoundary(current, prototype2, current === thing)) {
12141
+ break;
12142
+ }
12143
+ const props = Object.getOwnPropertyNames(current);
12144
+ if (Object.getOwnPropertySymbols) {
12145
+ props.push(...Object.getOwnPropertySymbols(current));
12146
+ }
12147
+ for (const prop of props) {
12148
+ if (isUnsafeObjectKey(prop)) {
12149
+ continue;
12150
+ }
12151
+ if (!hasOwnProperty(merged, prop)) {
12152
+ result[prop] = thing[prop];
12153
+ merged[prop] = true;
12154
+ }
12155
+ }
12156
+ current = prototype2;
12157
+ }
12158
+ return result;
12159
+ };
12094
12160
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
12095
12161
  const str = toString.call(thing);
12096
12162
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -12121,11 +12187,14 @@ var isNumber = typeOfTest("number");
12121
12187
  var isObject = (thing) => thing !== null && typeof thing === "object";
12122
12188
  var isBoolean = (thing) => thing === true || thing === false;
12123
12189
  var isPlainObject = (val) => {
12124
- if (kindOf(val) !== "object") {
12190
+ if (!isObject(val)) {
12125
12191
  return false;
12126
12192
  }
12127
12193
  const prototype2 = getPrototypeOf(val);
12128
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
12194
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
12195
+ // evidence the value is tagged/iterable, while ignoring members reachable
12196
+ // only through shared or terminal prototype boundaries.
12197
+ !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
12129
12198
  };
12130
12199
  var isEmptyObject = (val) => {
12131
12200
  if (!isObject(val) || isBuffer(val)) {
@@ -12145,6 +12214,7 @@ var isReactNativeBlob = (value) => {
12145
12214
  var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
12146
12215
  var isBlob = kindOfTest("Blob");
12147
12216
  var isFileList = kindOfTest("FileList");
12217
+ var isSet = kindOfTest("Set");
12148
12218
  var isStream = (val) => isObject(val) && isFunction(val.pipe);
12149
12219
  function getGlobal() {
12150
12220
  if (typeof globalThis !== "undefined") return globalThis;
@@ -12229,7 +12299,7 @@ function merge(...objs) {
12229
12299
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12230
12300
  return;
12231
12301
  }
12232
- const targetKey = caseless && findKey(result, key) || key;
12302
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12233
12303
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12234
12304
  if (isPlainObject(existing) && isPlainObject(val)) {
12235
12305
  result[targetKey] = merge(existing, val);
@@ -12242,7 +12312,21 @@ function merge(...objs) {
12242
12312
  }
12243
12313
  };
12244
12314
  for (let i = 0, l = objs.length; i < l; i++) {
12245
- objs[i] && forEach(objs[i], assignValue);
12315
+ const source = objs[i];
12316
+ if (!source || isBuffer(source)) {
12317
+ continue;
12318
+ }
12319
+ forEach(source, assignValue);
12320
+ if (typeof source !== "object" || isArray(source)) {
12321
+ continue;
12322
+ }
12323
+ const symbols = Object.getOwnPropertySymbols(source);
12324
+ for (let j = 0; j < symbols.length; j++) {
12325
+ const symbol = symbols[j];
12326
+ if (propertyIsEnumerable.call(source, symbol)) {
12327
+ assignValue(source[symbol], symbol);
12328
+ }
12329
+ }
12246
12330
  }
12247
12331
  return result;
12248
12332
  }
@@ -12364,7 +12448,7 @@ var toCamelCase = (str) => {
12364
12448
  return p1.toUpperCase() + p2;
12365
12449
  });
12366
12450
  };
12367
- var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12451
+ var { propertyIsEnumerable } = Object.prototype;
12368
12452
  var isRegExp = kindOfTest("RegExp");
12369
12453
  var reduceDescriptors = (obj, reducer) => {
12370
12454
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -12426,11 +12510,20 @@ var toJSONObject = (obj) => {
12426
12510
  }
12427
12511
  if (!("toJSON" in source)) {
12428
12512
  visited.add(source);
12429
- const target = isArray(source) ? [] : {};
12430
- forEach(source, (value, key) => {
12431
- const reducedValue = visit(value);
12432
- !isUndefined(reducedValue) && (target[key] = reducedValue);
12433
- });
12513
+ let target;
12514
+ if (isSet(source)) {
12515
+ target = [];
12516
+ for (const value of source) {
12517
+ const reducedValue = visit(value);
12518
+ !isUndefined(reducedValue) && target.push(reducedValue);
12519
+ }
12520
+ } else {
12521
+ target = isArray(source) ? [] : {};
12522
+ forEach(source, (value, key) => {
12523
+ const reducedValue = visit(value);
12524
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
12525
+ });
12526
+ }
12434
12527
  visited.delete(source);
12435
12528
  return target;
12436
12529
  }
@@ -12463,6 +12556,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
12463
12556
  })(typeof setImmediate === "function", isFunction(_global.postMessage));
12464
12557
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
12465
12558
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
12559
+ var isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
12466
12560
  var utils_default = {
12467
12561
  isArray,
12468
12562
  isArrayBuffer,
@@ -12508,6 +12602,9 @@ var utils_default = {
12508
12602
  hasOwnProperty,
12509
12603
  hasOwnProp: hasOwnProperty,
12510
12604
  // an alias to avoid ESLint no-prototype-builtins detection
12605
+ hasOwnInPrototypeChain,
12606
+ getSafeProp,
12607
+ toSafeFlatObject,
12511
12608
  reduceDescriptors,
12512
12609
  freezeMethods,
12513
12610
  toObjectSet,
@@ -12523,10 +12620,11 @@ var utils_default = {
12523
12620
  isThenable,
12524
12621
  setImmediate: _setImmediate,
12525
12622
  asap,
12526
- isIterable
12623
+ isIterable,
12624
+ isSafeIterable
12527
12625
  };
12528
12626
 
12529
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseHeaders.js
12627
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12530
12628
  var ignoreDuplicateOf = utils_default.toObjectSet([
12531
12629
  "age",
12532
12630
  "authorization",
@@ -12555,23 +12653,24 @@ var parseHeaders_default = (rawHeaders) => {
12555
12653
  i = line.indexOf(":");
12556
12654
  key = line.substring(0, i).trim().toLowerCase();
12557
12655
  val = line.substring(i + 1).trim();
12558
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
12656
+ const hasKey = utils_default.hasOwnProp(parsed, key);
12657
+ if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) {
12559
12658
  return;
12560
12659
  }
12561
12660
  if (key === "set-cookie") {
12562
- if (parsed[key]) {
12661
+ if (hasKey) {
12563
12662
  parsed[key].push(val);
12564
12663
  } else {
12565
12664
  parsed[key] = [val];
12566
12665
  }
12567
12666
  } else {
12568
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
12667
+ parsed[key] = hasKey ? parsed[key] + ", " + val : val;
12569
12668
  }
12570
12669
  });
12571
12670
  return parsed;
12572
12671
  };
12573
12672
 
12574
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12673
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12575
12674
  function trimSPorHTAB(str) {
12576
12675
  let start = 0;
12577
12676
  let end = str.length;
@@ -12609,7 +12708,7 @@ function toByteStringHeaderObject(headers) {
12609
12708
  return byteStringHeaders;
12610
12709
  }
12611
12710
 
12612
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosHeaders.js
12711
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12613
12712
  var $internals = /* @__PURE__ */ Symbol("internals");
12614
12713
  function normalizeHeader(header) {
12615
12714
  return header && String(header).trim().toLowerCase();
@@ -12629,6 +12728,90 @@ function parseTokens(str) {
12629
12728
  }
12630
12729
  return tokens;
12631
12730
  }
12731
+ var parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
12732
+ function trimOWS(value) {
12733
+ let start = 0;
12734
+ let end = value.length;
12735
+ while (start < end) {
12736
+ const code = value.charCodeAt(start);
12737
+ if (code !== 9 && code !== 32) {
12738
+ break;
12739
+ }
12740
+ start += 1;
12741
+ }
12742
+ while (end > start) {
12743
+ const code = value.charCodeAt(end - 1);
12744
+ if (code !== 9 && code !== 32) {
12745
+ break;
12746
+ }
12747
+ end -= 1;
12748
+ }
12749
+ return start === 0 && end === value.length ? value : value.slice(start, end);
12750
+ }
12751
+ function decodeQuotedString(value) {
12752
+ const last = value.length - 1;
12753
+ if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) {
12754
+ return value;
12755
+ }
12756
+ let decoded = "";
12757
+ for (let i = 1; i < last; i++) {
12758
+ const code = value.charCodeAt(i);
12759
+ if (code === 34) {
12760
+ return value;
12761
+ }
12762
+ if (code === 92) {
12763
+ i += 1;
12764
+ if (i >= last) {
12765
+ return value;
12766
+ }
12767
+ }
12768
+ decoded += value[i];
12769
+ }
12770
+ return decoded;
12771
+ }
12772
+ function parseParameters(value) {
12773
+ const parameters = /* @__PURE__ */ Object.create(null);
12774
+ const str = String(value);
12775
+ let start = 0;
12776
+ let quoted = false;
12777
+ let escaped = false;
12778
+ function parseParameter(end) {
12779
+ const part = trimOWS(str.slice(start, end));
12780
+ const equals = part.indexOf("=");
12781
+ if (equals < 1) {
12782
+ return;
12783
+ }
12784
+ const name = trimOWS(part.slice(0, equals));
12785
+ if (!parameterNameRE.test(name)) {
12786
+ return;
12787
+ }
12788
+ const normalizedName = name.toLowerCase();
12789
+ if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") {
12790
+ return;
12791
+ }
12792
+ const parameterValue = trimOWS(part.slice(equals + 1));
12793
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
12794
+ }
12795
+ for (let i = 0; i < str.length; i++) {
12796
+ const code = str.charCodeAt(i);
12797
+ if (quoted) {
12798
+ if (escaped) {
12799
+ escaped = false;
12800
+ } else if (code === 92) {
12801
+ escaped = true;
12802
+ } else if (code === 34) {
12803
+ quoted = false;
12804
+ }
12805
+ } else if (code === 34) {
12806
+ quoted = true;
12807
+ } else if (code === 44 || code === 59) {
12808
+ parseParameter(i);
12809
+ start = i + 1;
12810
+ }
12811
+ }
12812
+ parseParameter(str.length);
12813
+ return parameters;
12814
+ }
12632
12815
  var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12633
12816
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12634
12817
  if (utils_default.isFunction(filter2)) {
@@ -12673,7 +12856,7 @@ var AxiosHeaders = class {
12673
12856
  function setHeader(_value, _header, _rewrite) {
12674
12857
  const lHeader = normalizeHeader(_header);
12675
12858
  if (!lHeader) {
12676
- throw new Error("header name must be a non-empty string");
12859
+ return;
12677
12860
  }
12678
12861
  const key = utils_default.findKey(self2, lHeader);
12679
12862
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -12685,13 +12868,19 @@ var AxiosHeaders = class {
12685
12868
  setHeaders(header, valueOrRewrite);
12686
12869
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12687
12870
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12688
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
12689
- let obj = {}, dest, key;
12871
+ } else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
12872
+ let obj = /* @__PURE__ */ Object.create(null), dest, key;
12690
12873
  for (const entry of header) {
12691
12874
  if (!utils_default.isArray(entry)) {
12692
- throw TypeError("Object iterator must return a key-value pair");
12875
+ throw new TypeError("Object iterator must return a key-value pair");
12876
+ }
12877
+ key = entry[0];
12878
+ if (utils_default.hasOwnProp(obj, key)) {
12879
+ dest = obj[key];
12880
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
12881
+ } else {
12882
+ obj[key] = entry[1];
12693
12883
  }
12694
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
12695
12884
  }
12696
12885
  setHeaders(obj, valueOrRewrite);
12697
12886
  } else {
@@ -12798,7 +12987,8 @@ var AxiosHeaders = class {
12798
12987
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
12799
12988
  }
12800
12989
  getSetCookie() {
12801
- return this.get("set-cookie") || [];
12990
+ const value = this.get("set-cookie");
12991
+ return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
12802
12992
  }
12803
12993
  get [Symbol.toStringTag]() {
12804
12994
  return "AxiosHeaders";
@@ -12806,6 +12996,9 @@ var AxiosHeaders = class {
12806
12996
  static from(thing) {
12807
12997
  return thing instanceof this ? thing : new this(thing);
12808
12998
  }
12999
+ static parseParameters(value) {
13000
+ return parseParameters(value);
13001
+ }
12809
13002
  static concat(first, ...targets) {
12810
13003
  const computed = new this(first);
12811
13004
  targets.forEach((target) => computed.set(target));
@@ -12848,7 +13041,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12848
13041
  utils_default.freezeMethods(AxiosHeaders);
12849
13042
  var AxiosHeaders_default = AxiosHeaders;
12850
13043
 
12851
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/AxiosError.js
13044
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12852
13045
  var REDACTED = "[REDACTED ****]";
12853
13046
  function hasOwnOrPrototypeToJSON(source) {
12854
13047
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -12901,10 +13094,37 @@ function redactConfig(config, redactKeys) {
12901
13094
  };
12902
13095
  return visit(config);
12903
13096
  }
13097
+ function stringifySafely(value) {
13098
+ try {
13099
+ return String(value);
13100
+ } catch (err) {
13101
+ return "";
13102
+ }
13103
+ }
13104
+ function aggregateErrorMessage(error) {
13105
+ const message = error.errors.map((entry) => {
13106
+ try {
13107
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
13108
+ } catch (err) {
13109
+ return "";
13110
+ }
13111
+ }).filter(Boolean).join("; ");
13112
+ return message || error.name || "AggregateError";
13113
+ }
12904
13114
  var AxiosError = class _AxiosError extends Error {
12905
13115
  static from(error, code, config, request, response, customProps) {
12906
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
12907
- axiosError.cause = error;
13116
+ let message = error.message;
13117
+ if (!message && utils_default.isArray(error.errors) && error.errors.length) {
13118
+ message = aggregateErrorMessage(error);
13119
+ }
13120
+ const axiosError = new _AxiosError(message, code || error.code, config, request, response);
13121
+ Object.defineProperty(axiosError, "cause", {
13122
+ __proto__: null,
13123
+ value: error,
13124
+ writable: true,
13125
+ enumerable: false,
13126
+ configurable: true
13127
+ });
12908
13128
  axiosError.name = error.name;
12909
13129
  if (error.status != null && axiosError.status == null) {
12910
13130
  axiosError.status = error.status;
@@ -12983,11 +13203,22 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
12983
13203
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
12984
13204
  var AxiosError_default = AxiosError;
12985
13205
 
12986
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/FormData.js
13206
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
12987
13207
  var import_form_data = __toESM(require_form_data(), 1);
12988
13208
  var FormData_default = import_form_data.default;
12989
13209
 
12990
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toFormData.js
13210
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13211
+ var Buffer_default = {
13212
+ isBufferAvailable() {
13213
+ return typeof Buffer !== "undefined";
13214
+ },
13215
+ from(value) {
13216
+ return Buffer.from(value);
13217
+ }
13218
+ };
13219
+
13220
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13221
+ var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
12991
13222
  function isVisitable(thing) {
12992
13223
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
12993
13224
  }
@@ -13012,25 +13243,18 @@ function toFormData(obj, formData, options) {
13012
13243
  throw new TypeError("target must be an object");
13013
13244
  }
13014
13245
  formData = formData || new (FormData_default || FormData)();
13015
- options = utils_default.toFlatObject(
13016
- options,
13017
- {
13018
- metaTokens: true,
13019
- dots: false,
13020
- indexes: false
13021
- },
13022
- false,
13023
- function defined(option, source) {
13024
- return !utils_default.isUndefined(source[option]);
13025
- }
13026
- );
13027
- const metaTokens = options.metaTokens;
13028
- const visitor = options.visitor || defaultVisitor;
13029
- const dots = options.dots;
13030
- const indexes = options.indexes;
13031
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13032
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
13246
+ const option = (name, fallback) => {
13247
+ const value = utils_default.getSafeProp(options, name);
13248
+ return utils_default.isUndefined(value) ? fallback : value;
13249
+ };
13250
+ const metaTokens = option("metaTokens", true);
13251
+ const visitor = option("visitor") || defaultVisitor;
13252
+ const dots = option("dots", false);
13253
+ const indexes = option("indexes", false);
13254
+ const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
13255
+ const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
13033
13256
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13257
+ const stack = [];
13034
13258
  if (!utils_default.isFunction(visitor)) {
13035
13259
  throw new TypeError("visitor must be a function");
13036
13260
  }
@@ -13046,10 +13270,44 @@ function toFormData(obj, formData, options) {
13046
13270
  throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
13047
13271
  }
13048
13272
  if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
13049
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
13273
+ if (useBlob && typeof _Blob === "function") {
13274
+ return new _Blob([value]);
13275
+ }
13276
+ if (Buffer_default && Buffer_default.isBufferAvailable()) {
13277
+ return Buffer_default.from(value);
13278
+ }
13279
+ throw new AxiosError_default(
13280
+ "Blob is not supported. Use a Buffer instead.",
13281
+ AxiosError_default.ERR_NOT_SUPPORT
13282
+ );
13050
13283
  }
13051
13284
  return value;
13052
13285
  }
13286
+ function throwIfMaxDepthExceeded(depth) {
13287
+ if (depth > maxDepth) {
13288
+ throw new AxiosError_default(
13289
+ "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
13290
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13291
+ );
13292
+ }
13293
+ }
13294
+ function stringifyWithDepthLimit(value, depth) {
13295
+ if (maxDepth === Infinity) {
13296
+ return JSON.stringify(value);
13297
+ }
13298
+ const ancestors = [];
13299
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
13300
+ if (!utils_default.isObject(currentValue)) {
13301
+ return currentValue;
13302
+ }
13303
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) {
13304
+ ancestors.pop();
13305
+ }
13306
+ ancestors.push(currentValue);
13307
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
13308
+ return currentValue;
13309
+ });
13310
+ }
13053
13311
  function defaultVisitor(value, key, path) {
13054
13312
  let arr = value;
13055
13313
  if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
@@ -13059,7 +13317,7 @@ function toFormData(obj, formData, options) {
13059
13317
  if (value && !path && typeof value === "object") {
13060
13318
  if (utils_default.endsWith(key, "{}")) {
13061
13319
  key = metaTokens ? key : key.slice(0, -2);
13062
- value = JSON.stringify(value);
13320
+ value = stringifyWithDepthLimit(value, 1);
13063
13321
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
13064
13322
  key = removeBrackets(key);
13065
13323
  arr.forEach(function each(el, index) {
@@ -13078,7 +13336,6 @@ function toFormData(obj, formData, options) {
13078
13336
  formData.append(renderKey(path, key, dots), convertValue(value));
13079
13337
  return false;
13080
13338
  }
13081
- const stack = [];
13082
13339
  const exposedHelpers = Object.assign(predicates, {
13083
13340
  defaultVisitor,
13084
13341
  convertValue,
@@ -13086,14 +13343,9 @@ function toFormData(obj, formData, options) {
13086
13343
  });
13087
13344
  function build(value, path, depth = 0) {
13088
13345
  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
- }
13346
+ throwIfMaxDepthExceeded(depth);
13095
13347
  if (stack.indexOf(value) !== -1) {
13096
- throw Error("Circular reference detected in " + path.join("."));
13348
+ throw new Error("Circular reference detected in " + path.join("."));
13097
13349
  }
13098
13350
  stack.push(value);
13099
13351
  utils_default.forEach(value, function each(el, key) {
@@ -13112,7 +13364,7 @@ function toFormData(obj, formData, options) {
13112
13364
  }
13113
13365
  var toFormData_default = toFormData;
13114
13366
 
13115
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13367
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13116
13368
  function encode(str) {
13117
13369
  const charMap = {
13118
13370
  "!": "%21",
@@ -13135,16 +13387,14 @@ prototype.append = function append(name, value) {
13135
13387
  this._pairs.push([name, value]);
13136
13388
  };
13137
13389
  prototype.toString = function toString2(encoder) {
13138
- const _encode = encoder ? function(value) {
13139
- return encoder.call(this, value, encode);
13140
- } : encode;
13390
+ const _encode = encoder ? (value) => encoder.call(this, value, encode) : encode;
13141
13391
  return this._pairs.map(function each(pair) {
13142
13392
  return _encode(pair[0]) + "=" + _encode(pair[1]);
13143
13393
  }, "").join("&");
13144
13394
  };
13145
13395
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13146
13396
 
13147
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/buildURL.js
13397
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13148
13398
  function encode2(val) {
13149
13399
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13150
13400
  }
@@ -13152,11 +13402,12 @@ function buildURL(url2, params, options) {
13152
13402
  if (!params) {
13153
13403
  return url2;
13154
13404
  }
13155
- const _encode = options && options.encode || encode2;
13405
+ url2 = url2 || "";
13156
13406
  const _options = utils_default.isFunction(options) ? {
13157
13407
  serialize: options
13158
13408
  } : options;
13159
- const serializeFn = _options && _options.serialize;
13409
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode2;
13410
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
13160
13411
  let serializedParams;
13161
13412
  if (serializeFn) {
13162
13413
  serializedParams = serializeFn(params, _options);
@@ -13173,10 +13424,48 @@ function buildURL(url2, params, options) {
13173
13424
  return url2;
13174
13425
  }
13175
13426
 
13176
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/InterceptorManager.js
13427
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13428
+ var $internals2 = /* @__PURE__ */ Symbol("internals");
13429
+ function countHandlers(handlers) {
13430
+ return handlers ? handlers.length : 0;
13431
+ }
13432
+ function trimHandlers(handlers) {
13433
+ if (!handlers) {
13434
+ return;
13435
+ }
13436
+ while (handlers.length && handlers[handlers.length - 1] === null) {
13437
+ handlers.pop();
13438
+ }
13439
+ }
13440
+ function syncHandlerEntries(manager, internals) {
13441
+ const handlers = manager.handlers;
13442
+ const length = countHandlers(handlers);
13443
+ if (handlers !== internals.handlersRef) {
13444
+ internals.handlersRef = handlers;
13445
+ internals.handlerEntries.clear();
13446
+ } else if (length !== internals.handlersLength) {
13447
+ if (!length) {
13448
+ internals.handlerEntries.clear();
13449
+ } else {
13450
+ internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
13451
+ if (handlers[entry.index] !== entry.handler) {
13452
+ internals.handlerEntries.delete(id);
13453
+ }
13454
+ });
13455
+ }
13456
+ }
13457
+ internals.handlersLength = length;
13458
+ }
13177
13459
  var InterceptorManager = class {
13178
13460
  constructor() {
13179
13461
  this.handlers = [];
13462
+ this[$internals2] = {
13463
+ handlersRef: this.handlers,
13464
+ handlersLength: this.handlers.length,
13465
+ handlerEntries: /* @__PURE__ */ new Map(),
13466
+ iterationDepth: 0,
13467
+ nextId: 0
13468
+ };
13180
13469
  }
13181
13470
  /**
13182
13471
  * Add a new interceptor to the stack
@@ -13188,13 +13477,25 @@ var InterceptorManager = class {
13188
13477
  * @return {Number} An ID used to remove interceptor later
13189
13478
  */
13190
13479
  use(fulfilled, rejected, options) {
13191
- this.handlers.push({
13480
+ const handler = {
13192
13481
  fulfilled,
13193
13482
  rejected,
13194
13483
  synchronous: options ? options.synchronous : false,
13195
13484
  runWhen: options ? options.runWhen : null
13485
+ };
13486
+ const internals = this[$internals2];
13487
+ if (this.handlers == null) {
13488
+ this.handlers = [];
13489
+ }
13490
+ syncHandlerEntries(this, internals);
13491
+ const id = internals.nextId++;
13492
+ this.handlers.push(handler);
13493
+ internals.handlerEntries.set(id, {
13494
+ handler,
13495
+ index: this.handlers.length - 1
13196
13496
  });
13197
- return this.handlers.length - 1;
13497
+ internals.handlersLength = this.handlers.length;
13498
+ return id;
13198
13499
  }
13199
13500
  /**
13200
13501
  * Remove an interceptor from the stack
@@ -13204,8 +13505,19 @@ var InterceptorManager = class {
13204
13505
  * @returns {void}
13205
13506
  */
13206
13507
  eject(id) {
13207
- if (this.handlers[id]) {
13208
- this.handlers[id] = null;
13508
+ const internals = this[$internals2];
13509
+ syncHandlerEntries(this, internals);
13510
+ const entry = internals.handlerEntries.get(id);
13511
+ if (entry) {
13512
+ internals.handlerEntries.delete(id);
13513
+ if (this.handlers[entry.index] !== entry.handler) {
13514
+ return;
13515
+ }
13516
+ this.handlers[entry.index] = null;
13517
+ if (!internals.iterationDepth) {
13518
+ trimHandlers(this.handlers);
13519
+ internals.handlersLength = this.handlers.length;
13520
+ }
13209
13521
  }
13210
13522
  }
13211
13523
  /**
@@ -13216,6 +13528,7 @@ var InterceptorManager = class {
13216
13528
  clear() {
13217
13529
  if (this.handlers) {
13218
13530
  this.handlers = [];
13531
+ syncHandlerEntries(this, this[$internals2]);
13219
13532
  }
13220
13533
  }
13221
13534
  /**
@@ -13229,31 +13542,44 @@ var InterceptorManager = class {
13229
13542
  * @returns {void}
13230
13543
  */
13231
13544
  forEach(fn) {
13232
- utils_default.forEach(this.handlers, function forEachHandler(h) {
13233
- if (h !== null) {
13234
- fn(h);
13545
+ const internals = this[$internals2];
13546
+ syncHandlerEntries(this, internals);
13547
+ internals.iterationDepth++;
13548
+ try {
13549
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
13550
+ if (h !== null) {
13551
+ fn(h);
13552
+ }
13553
+ });
13554
+ } finally {
13555
+ if (!--internals.iterationDepth) {
13556
+ syncHandlerEntries(this, internals);
13557
+ trimHandlers(this.handlers);
13558
+ internals.handlersLength = countHandlers(this.handlers);
13235
13559
  }
13236
- });
13560
+ }
13237
13561
  }
13238
13562
  };
13239
13563
  var InterceptorManager_default = InterceptorManager;
13240
13564
 
13241
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/transitional.js
13565
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13242
13566
  var transitional_default = {
13243
13567
  silentJSONParsing: true,
13244
13568
  forcedJSONParsing: true,
13245
13569
  clarifyTimeoutError: false,
13246
- legacyInterceptorReqResOrdering: true
13570
+ legacyInterceptorReqResOrdering: true,
13571
+ advertiseZstdAcceptEncoding: false,
13572
+ validateStatusUndefinedResolves: true
13247
13573
  };
13248
13574
 
13249
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13575
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13250
13576
  import crypto from "crypto";
13251
13577
 
13252
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13578
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13253
13579
  import url from "url";
13254
13580
  var URLSearchParams_default = url.URLSearchParams;
13255
13581
 
13256
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/node/index.js
13582
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13257
13583
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13258
13584
  var DIGIT = "0123456789";
13259
13585
  var ALPHABET = {
@@ -13283,7 +13609,7 @@ var node_default = {
13283
13609
  protocols: ["http", "https", "file", "data"]
13284
13610
  };
13285
13611
 
13286
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/common/utils.js
13612
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13287
13613
  var utils_exports = {};
13288
13614
  __export(utils_exports, {
13289
13615
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13301,13 +13627,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13301
13627
  })();
13302
13628
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13303
13629
 
13304
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/platform/index.js
13630
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13305
13631
  var platform_default = {
13306
13632
  ...utils_exports,
13307
13633
  ...node_default
13308
13634
  };
13309
13635
 
13310
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/toURLEncodedForm.js
13636
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13311
13637
  function toURLEncodedForm(data, options) {
13312
13638
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13313
13639
  visitor: function(value, key, path, helpers) {
@@ -13321,11 +13647,25 @@ function toURLEncodedForm(data, options) {
13321
13647
  });
13322
13648
  }
13323
13649
 
13324
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToJSON.js
13650
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13651
+ var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13652
+ function throwIfDepthExceeded(index) {
13653
+ if (index > MAX_DEPTH) {
13654
+ throw new AxiosError_default(
13655
+ "FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH,
13656
+ AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
13657
+ );
13658
+ }
13659
+ }
13325
13660
  function parsePropPath(name) {
13326
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
13327
- return match[0] === "[]" ? "" : match[1] || match[0];
13328
- });
13661
+ const path = [];
13662
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
13663
+ let match;
13664
+ while ((match = pattern.exec(name)) !== null) {
13665
+ throwIfDepthExceeded(path.length);
13666
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
13667
+ }
13668
+ return path;
13329
13669
  }
13330
13670
  function arrayToObject(arr) {
13331
13671
  const obj = {};
@@ -13341,6 +13681,7 @@ function arrayToObject(arr) {
13341
13681
  }
13342
13682
  function formDataToJSON(formData) {
13343
13683
  function buildPath(path, value, target, index) {
13684
+ throwIfDepthExceeded(index);
13344
13685
  let name = path[index++];
13345
13686
  if (name === "__proto__") return true;
13346
13687
  const isNumericKey = Number.isFinite(+name);
@@ -13374,9 +13715,25 @@ function formDataToJSON(formData) {
13374
13715
  }
13375
13716
  var formDataToJSON_default = formDataToJSON;
13376
13717
 
13377
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/defaults/index.js
13718
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
13719
+ var methodList = Object.freeze([
13720
+ "get",
13721
+ "delete",
13722
+ "head",
13723
+ "options",
13724
+ "post",
13725
+ "put",
13726
+ "patch",
13727
+ "purge",
13728
+ "link",
13729
+ "unlink",
13730
+ "query"
13731
+ ]);
13732
+ var methodList_default = methodList;
13733
+
13734
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13378
13735
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13379
- function stringifySafely(rawValue, parser, encoder) {
13736
+ function stringifySafely2(rawValue, parser, encoder) {
13380
13737
  if (utils_default.isString(rawValue)) {
13381
13738
  try {
13382
13739
  (parser || JSON.parse)(rawValue);
@@ -13432,7 +13789,7 @@ var defaults = {
13432
13789
  }
13433
13790
  if (isObjectPayload || hasJSONContentType) {
13434
13791
  headers.setContentType("application/json", false);
13435
- return stringifySafely(data);
13792
+ return stringifySafely2(data);
13436
13793
  }
13437
13794
  return data;
13438
13795
  }
@@ -13486,12 +13843,12 @@ var defaults = {
13486
13843
  }
13487
13844
  }
13488
13845
  };
13489
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13846
+ utils_default.forEach(methodList_default, (method) => {
13490
13847
  defaults.headers[method] = {};
13491
13848
  });
13492
13849
  var defaults_default = defaults;
13493
13850
 
13494
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/transformData.js
13851
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13495
13852
  function transformData(fns, response) {
13496
13853
  const config = this || defaults_default;
13497
13854
  const context = response || config;
@@ -13504,12 +13861,12 @@ function transformData(fns, response) {
13504
13861
  return data;
13505
13862
  }
13506
13863
 
13507
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/isCancel.js
13864
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13508
13865
  function isCancel(value) {
13509
13866
  return !!(value && value.__CANCEL__);
13510
13867
  }
13511
13868
 
13512
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CanceledError.js
13869
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13513
13870
  var CanceledError = class extends AxiosError_default {
13514
13871
  /**
13515
13872
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13528,7 +13885,7 @@ var CanceledError = class extends AxiosError_default {
13528
13885
  };
13529
13886
  var CanceledError_default = CanceledError;
13530
13887
 
13531
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/settle.js
13888
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13532
13889
  function settle(resolve, reject, response) {
13533
13890
  const validateStatus2 = response.config.validateStatus;
13534
13891
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13544,7 +13901,7 @@ function settle(resolve, reject, response) {
13544
13901
  }
13545
13902
  }
13546
13903
 
13547
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAbsoluteURL.js
13904
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13548
13905
  function isAbsoluteURL(url2) {
13549
13906
  if (typeof url2 !== "string") {
13550
13907
  return false;
@@ -13552,15 +13909,71 @@ function isAbsoluteURL(url2) {
13552
13909
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13553
13910
  }
13554
13911
 
13555
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/combineURLs.js
13912
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13556
13913
  function combineURLs(baseURL, relativeURL) {
13557
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
13914
+ if (!relativeURL) {
13915
+ return baseURL;
13916
+ }
13917
+ let end = baseURL.length;
13918
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
13919
+ end--;
13920
+ }
13921
+ return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13922
+ }
13923
+
13924
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
13925
+ var urlParserControlCharacters = /[\t\n\r]/g;
13926
+ function normalizeURLForProtocolCheck(url2) {
13927
+ if (typeof url2 !== "string") {
13928
+ return url2;
13929
+ }
13930
+ let start = 0;
13931
+ while (start < url2.length && url2.charCodeAt(start) <= 32) {
13932
+ start++;
13933
+ }
13934
+ return url2.slice(start).replace(urlParserControlCharacters, "");
13558
13935
  }
13559
13936
 
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) {
13937
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13938
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13939
+ function redactFragment(fragment) {
13940
+ if (!fragment) {
13941
+ return fragment;
13942
+ }
13943
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
13944
+ return `${separator}${parameterName}${REDACTED}`;
13945
+ });
13946
+ }
13947
+ function redactSensitiveURLParts(url2) {
13948
+ const redactedURL = url2.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
13949
+ const fragmentIndex = redactedURL.indexOf("#");
13950
+ const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
13951
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(
13952
+ /([?&][^=&#]*=)[^&#]*/g,
13953
+ `$1${REDACTED}`
13954
+ );
13955
+ if (fragmentIndex === -1) {
13956
+ return redactedURLWithoutFragment;
13957
+ }
13958
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
13959
+ }
13960
+ function assertValidHttpProtocolURL(url2, config) {
13961
+ if (typeof url2 === "string") {
13962
+ const normalizedURL = normalizeURLForProtocolCheck(url2);
13963
+ if (malformedHttpProtocol.test(normalizedURL)) {
13964
+ throw new AxiosError_default(
13965
+ `Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
13966
+ AxiosError_default.ERR_INVALID_URL,
13967
+ config
13968
+ );
13969
+ }
13970
+ }
13971
+ }
13972
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
13973
+ assertValidHttpProtocolURL(requestedURL, config);
13562
13974
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
13563
13975
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
13976
+ assertValidHttpProtocolURL(baseURL, config);
13564
13977
  return combineURLs(baseURL, requestedURL);
13565
13978
  }
13566
13979
  return requestedURL;
@@ -13633,27 +14046,27 @@ function getEnv(key) {
13633
14046
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13634
14047
  }
13635
14048
 
13636
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14049
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13637
14050
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13638
14051
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13639
14052
  import http from "http";
13640
14053
  import https from "https";
13641
- import http2 from "http2";
13642
- import util2 from "util";
14054
+ import http22 from "http2";
14055
+ import util3 from "util";
13643
14056
  import { resolve as resolvePath } from "path";
13644
14057
  import zlib from "zlib";
13645
14058
 
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";
14059
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
14060
+ var VERSION = "1.20.0";
13648
14061
 
13649
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/parseProtocol.js
14062
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13650
14063
  function parseProtocol(url2) {
13651
14064
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13652
14065
  return match && match[1] || "";
13653
14066
  }
13654
14067
 
13655
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/fromDataURI.js
13656
- var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
14068
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
14069
+ var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13657
14070
  function fromDataURI(uri, asBlob, options) {
13658
14071
  const _Blob = options && options.Blob || platform_default.classes.Blob;
13659
14072
  const protocol = parseProtocol(uri);
@@ -13670,13 +14083,13 @@ function fromDataURI(uri, asBlob, options) {
13670
14083
  const params = match[2];
13671
14084
  const encoding = match[3] ? "base64" : "utf8";
13672
14085
  const body = match[4];
13673
- let mime;
14086
+ let mime = "";
13674
14087
  if (type) {
13675
14088
  mime = params ? type + params : type;
13676
14089
  } else if (params) {
13677
14090
  mime = "text/plain" + params;
13678
14091
  }
13679
- const buffer = Buffer.from(decodeURIComponent(body), encoding);
14092
+ const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
13680
14093
  if (asBlob) {
13681
14094
  if (!_Blob) {
13682
14095
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -13688,10 +14101,24 @@ function fromDataURI(uri, asBlob, options) {
13688
14101
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13689
14102
  }
13690
14103
 
13691
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14104
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13692
14105
  import stream3 from "stream";
13693
14106
 
13694
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/AxiosTransformStream.js
14107
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
14108
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14109
+ function setFormDataHeaders(headers, formHeaders, policy) {
14110
+ if (policy !== "content-only") {
14111
+ headers.set(formHeaders);
14112
+ return;
14113
+ }
14114
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
14115
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14116
+ headers.set(key, val);
14117
+ }
14118
+ });
14119
+ }
14120
+
14121
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13695
14122
  import stream from "stream";
13696
14123
  var kInternals = /* @__PURE__ */ Symbol("internals");
13697
14124
  var AxiosTransformStream = class extends stream.Transform {
@@ -13814,14 +14241,14 @@ var AxiosTransformStream = class extends stream.Transform {
13814
14241
  };
13815
14242
  var AxiosTransformStream_default = AxiosTransformStream;
13816
14243
 
13817
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
14244
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13818
14245
  import { EventEmitter } from "events";
13819
14246
 
13820
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14247
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13821
14248
  import util from "util";
13822
14249
  import { Readable } from "stream";
13823
14250
 
13824
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/readBlob.js
14251
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
13825
14252
  var { asyncIterator } = Symbol;
13826
14253
  var readBlob = async function* (blob) {
13827
14254
  if (blob.stream) {
@@ -13836,7 +14263,7 @@ var readBlob = async function* (blob) {
13836
14263
  };
13837
14264
  var readBlob_default = readBlob;
13838
14265
 
13839
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/formDataToStream.js
14266
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
13840
14267
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13841
14268
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
13842
14269
  var CRLF = "\r\n";
@@ -13887,10 +14314,10 @@ var formDataToStream = (form, headersHandler, options) => {
13887
14314
  boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
13888
14315
  } = options || {};
13889
14316
  if (!utils_default.isFormData(form)) {
13890
- throw TypeError("FormData instance required");
14317
+ throw new TypeError("FormData instance required");
13891
14318
  }
13892
14319
  if (boundary.length < 1 || boundary.length > 70) {
13893
- throw Error("boundary must be 1-70 characters long");
14320
+ throw new Error("boundary must be 1-70 characters long");
13894
14321
  }
13895
14322
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
13896
14323
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -13921,7 +14348,7 @@ var formDataToStream = (form, headersHandler, options) => {
13921
14348
  };
13922
14349
  var formDataToStream_default = formDataToStream;
13923
14350
 
13924
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14351
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
13925
14352
  import stream2 from "stream";
13926
14353
  var ZlibHeaderTransformStream = class extends stream2.Transform {
13927
14354
  __transform(chunk, encoding, callback) {
@@ -13943,53 +14370,214 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
13943
14370
  };
13944
14371
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
13945
14372
 
13946
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/callbackify.js
13947
- var callbackify = (fn, reducer) => {
13948
- return utils_default.isAsyncFn(fn) ? function(...args) {
13949
- const cb = args.pop();
13950
- fn.apply(this, args).then((value) => {
13951
- try {
13952
- reducer ? cb(null, ...reducer(value)) : cb(null, value);
13953
- } catch (err) {
13954
- cb(err);
13955
- }
13956
- }, cb);
13957
- } : fn;
13958
- };
13959
- var callbackify_default = callbackify;
13960
-
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"]);
13963
- var isIPv4Loopback = (host) => {
13964
- const parts = host.split(".");
13965
- if (parts.length !== 4) return false;
13966
- if (parts[0] !== "127") return false;
13967
- return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
13968
- };
13969
- var isIPv6Loopback = (host) => {
13970
- if (host === "::1") return true;
13971
- const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
13972
- if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
13973
- const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
13974
- if (v4MappedHex) {
13975
- const high = parseInt(v4MappedHex[1], 16);
13976
- return high >= 32512 && high <= 32767;
13977
- }
13978
- const groups = host.split(":");
13979
- if (groups.length === 8) {
13980
- for (let i = 0; i < 7; i++) {
13981
- if (!/^0+$/.test(groups[i])) return false;
13982
- }
13983
- return /^0*1$/.test(groups[7]);
14373
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14374
+ import http2 from "http2";
14375
+ import util2 from "util";
14376
+ var Http2Sessions = class {
14377
+ constructor() {
14378
+ this.sessions = /* @__PURE__ */ Object.create(null);
13984
14379
  }
13985
- return false;
13986
- };
13987
- var isLoopback = (host) => {
13988
- if (!host) return false;
13989
- if (LOOPBACK_HOSTNAMES.has(host)) return true;
13990
- if (isIPv4Loopback(host)) return true;
13991
- return isIPv6Loopback(host);
13992
- };
14380
+ getSession(authority, options) {
14381
+ options = Object.assign(
14382
+ /* @__PURE__ */ Object.create(null),
14383
+ {
14384
+ sessionTimeout: 1e3
14385
+ },
14386
+ options
14387
+ );
14388
+ let authoritySessions = this.sessions[authority];
14389
+ if (authoritySessions) {
14390
+ let len = authoritySessions.length;
14391
+ for (let i = 0; i < len; i++) {
14392
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
14393
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util2.isDeepStrictEqual(sessionOptions, options)) {
14394
+ return sessionHandle;
14395
+ }
14396
+ }
14397
+ }
14398
+ const session = http2.connect(authority, options);
14399
+ let removed;
14400
+ let timer;
14401
+ const removeSession = () => {
14402
+ if (removed) {
14403
+ return;
14404
+ }
14405
+ removed = true;
14406
+ if (timer) {
14407
+ clearTimeout(timer);
14408
+ timer = null;
14409
+ }
14410
+ let entries = authoritySessions, len = entries.length, i = len;
14411
+ while (i--) {
14412
+ if (entries[i][0] === session) {
14413
+ if (len === 1) {
14414
+ delete this.sessions[authority];
14415
+ } else {
14416
+ entries.splice(i, 1);
14417
+ }
14418
+ if (!session.closed) {
14419
+ session.close();
14420
+ }
14421
+ return;
14422
+ }
14423
+ }
14424
+ };
14425
+ const originalRequestFn = session.request;
14426
+ const { sessionTimeout } = options;
14427
+ if (sessionTimeout != null) {
14428
+ let streamsCount = 0;
14429
+ session.request = function() {
14430
+ const stream4 = originalRequestFn.apply(this, arguments);
14431
+ streamsCount++;
14432
+ if (timer) {
14433
+ clearTimeout(timer);
14434
+ timer = null;
14435
+ }
14436
+ stream4.once("close", () => {
14437
+ if (!--streamsCount) {
14438
+ timer = setTimeout(() => {
14439
+ timer = null;
14440
+ removeSession();
14441
+ }, sessionTimeout);
14442
+ }
14443
+ });
14444
+ return stream4;
14445
+ };
14446
+ }
14447
+ session.once("close", removeSession);
14448
+ session.once("error", removeSession);
14449
+ let entry = [session, options];
14450
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14451
+ return session;
14452
+ }
14453
+ };
14454
+ var Http2Sessions_default = Http2Sessions;
14455
+
14456
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14457
+ var callbackify = (fn, reducer) => {
14458
+ return utils_default.isAsyncFn(fn) ? function(...args) {
14459
+ const cb = args.pop();
14460
+ fn.apply(this, args).then((value) => {
14461
+ try {
14462
+ reducer ? cb(null, ...reducer(value)) : cb(null, value);
14463
+ } catch (err) {
14464
+ cb(err);
14465
+ }
14466
+ }, cb);
14467
+ } : fn;
14468
+ };
14469
+ var callbackify_default = callbackify;
14470
+
14471
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14472
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
14473
+ var trimTrailingDots = (value) => {
14474
+ let end = value.length;
14475
+ while (end && value.charCodeAt(end - 1) === 46) {
14476
+ end--;
14477
+ }
14478
+ return end === value.length ? value : value.slice(0, end);
14479
+ };
14480
+ var isIPv4Loopback = (host) => {
14481
+ const parts = host.split(".");
14482
+ if (parts.length !== 4) return false;
14483
+ if (parts[0] !== "127") return false;
14484
+ return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
14485
+ };
14486
+ var parseIPv4Octet = (text) => {
14487
+ if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
14488
+ const n = parseInt(text.slice(2), 16);
14489
+ return Number.isFinite(n) ? n : null;
14490
+ }
14491
+ if (text.length > 1 && /^0[0-7]+$/.test(text)) {
14492
+ const n = parseInt(text, 8);
14493
+ return Number.isFinite(n) ? n : null;
14494
+ }
14495
+ if (text.length > 1 && /^0[0-9]+$/.test(text)) {
14496
+ return null;
14497
+ }
14498
+ if (/^[0-9]+$/.test(text)) {
14499
+ const n = parseInt(text, 10);
14500
+ return Number.isFinite(n) ? n : null;
14501
+ }
14502
+ return null;
14503
+ };
14504
+ var normalizeIPAddress = (host) => {
14505
+ if (typeof host !== "string" || !host || host.indexOf(":") !== -1) {
14506
+ return host;
14507
+ }
14508
+ let h = host;
14509
+ if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
14510
+ h = h.slice(1, -1);
14511
+ }
14512
+ h = trimTrailingDots(h);
14513
+ if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
14514
+ const parts = h.split(".");
14515
+ if (parts.some((p) => p === "")) return host;
14516
+ if (parts.length === 4) {
14517
+ const octets = parts.map(parseIPv4Octet);
14518
+ if (octets.some((n) => n === null || n < 0 || n > 255)) return host;
14519
+ return octets.join(".");
14520
+ }
14521
+ if (parts.length > 4) {
14522
+ return host;
14523
+ }
14524
+ if (parts.length === 1) return host;
14525
+ const literalOctets = parts.slice(0, -1);
14526
+ const tail = parts[parts.length - 1];
14527
+ const tailSlots = 4 - literalOctets.length;
14528
+ const tailValue = parseIPv4Octet(tail);
14529
+ if (tailValue === null) return host;
14530
+ const maxTail = (1 << 8 * tailSlots) - 1;
14531
+ if (tailValue < 0 || tailValue > maxTail) return host;
14532
+ const tailOctets = new Array(tailSlots).fill(0);
14533
+ for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
14534
+ tailOctets[i] = v & 255;
14535
+ }
14536
+ const literal = literalOctets.map(parseIPv4Octet);
14537
+ if (literal.some((n) => n === null || n < 0 || n > 255)) return host;
14538
+ return [...literal, ...tailOctets].join(".");
14539
+ };
14540
+ var isIPv6ZeroGroup = (group) => /^0{1,4}$/.test(group);
14541
+ var isIPv6Unspecified = (host) => {
14542
+ if (host === "::") return true;
14543
+ const compressionIndex = host.indexOf("::");
14544
+ if (compressionIndex !== -1) {
14545
+ if (compressionIndex !== host.lastIndexOf("::")) return false;
14546
+ const left = host.slice(0, compressionIndex);
14547
+ const right = host.slice(compressionIndex + 2);
14548
+ const leftGroups = left ? left.split(":") : [];
14549
+ const rightGroups = right ? right.split(":") : [];
14550
+ const explicitGroups = leftGroups.length + rightGroups.length;
14551
+ return explicitGroups < 8 && leftGroups.every(isIPv6ZeroGroup) && rightGroups.every(isIPv6ZeroGroup);
14552
+ }
14553
+ const groups = host.split(":");
14554
+ return groups.length === 8 && groups.every(isIPv6ZeroGroup);
14555
+ };
14556
+ var isIPv6Loopback = (host) => {
14557
+ if (host === "::1") return true;
14558
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
14559
+ if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
14560
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
14561
+ if (v4MappedHex) {
14562
+ const high = parseInt(v4MappedHex[1], 16);
14563
+ return high >= 32512 && high <= 32767;
14564
+ }
14565
+ const groups = host.split(":");
14566
+ if (groups.length === 8) {
14567
+ for (let i = 0; i < 7; i++) {
14568
+ if (!/^0+$/.test(groups[i])) return false;
14569
+ }
14570
+ return /^0*1$/.test(groups[7]);
14571
+ }
14572
+ return false;
14573
+ };
14574
+ var isLoopback = (host) => {
14575
+ if (!host) return false;
14576
+ if (LOOPBACK_HOSTNAMES.has(host)) return true;
14577
+ if (isIPv4Loopback(host)) return true;
14578
+ if (isIPv6Unspecified(host)) return true;
14579
+ return isIPv6Loopback(host);
14580
+ };
13993
14581
  var DEFAULT_PORTS2 = {
13994
14582
  http: 80,
13995
14583
  https: 443,
@@ -14033,6 +14621,40 @@ var unmapIPv4MappedIPv6 = (host) => {
14033
14621
  }
14034
14622
  return host;
14035
14623
  };
14624
+ var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
14625
+ var ipv4ToBytes = (host) => {
14626
+ const parts = host.split(".");
14627
+ return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
14628
+ };
14629
+ var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
14630
+ var ipv6ToBytes = (host) => {
14631
+ const halves = host.split("::");
14632
+ if (halves.length > 2) {
14633
+ return null;
14634
+ }
14635
+ const groups = halves[0] ? halves[0].split(":") : [];
14636
+ if (halves.length === 2) {
14637
+ const rear = halves[1] ? halves[1].split(":") : [];
14638
+ const missing = 8 - groups.length - rear.length;
14639
+ if (missing < 1) {
14640
+ return null;
14641
+ }
14642
+ groups.push(...new Array(missing).fill("0"), ...rear);
14643
+ }
14644
+ if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
14645
+ return null;
14646
+ }
14647
+ return groups.flatMap((group) => {
14648
+ const value = Number.parseInt(group, 16);
14649
+ return [value >> 8 & 255, value & 255];
14650
+ });
14651
+ };
14652
+ var ipToBytes = (host) => {
14653
+ if (typeof host !== "string" || !host) {
14654
+ return null;
14655
+ }
14656
+ return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
14657
+ };
14036
14658
  var normalizeNoProxyHost = (hostname) => {
14037
14659
  if (!hostname) {
14038
14660
  return hostname;
@@ -14040,7 +14662,89 @@ var normalizeNoProxyHost = (hostname) => {
14040
14662
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14041
14663
  hostname = hostname.slice(1, -1);
14042
14664
  }
14043
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
14665
+ const trimmed = trimTrailingDots(hostname);
14666
+ const ipv4 = normalizeIPAddress(trimmed);
14667
+ if (ipv4 !== trimmed) {
14668
+ return ipv4;
14669
+ }
14670
+ return unmapIPv4MappedIPv6(trimmed);
14671
+ };
14672
+ var normalizeCidrBase = (input) => {
14673
+ let base = input;
14674
+ const startsBracket = base.charAt(0) === "[";
14675
+ const endsBracket = base.charAt(base.length - 1) === "]";
14676
+ const hasBracket = base.includes("[") || base.includes("]");
14677
+ if (startsBracket || endsBracket) {
14678
+ if (!startsBracket || !endsBracket) {
14679
+ return null;
14680
+ }
14681
+ base = base.slice(1, -1);
14682
+ if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
14683
+ return null;
14684
+ }
14685
+ } else if (hasBracket) {
14686
+ return null;
14687
+ }
14688
+ if (!base || base.charAt(base.length - 1) === ".") {
14689
+ return null;
14690
+ }
14691
+ const wasIPv6 = base.indexOf(":") !== -1;
14692
+ if (wasIPv6) {
14693
+ try {
14694
+ base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
14695
+ } catch (_err) {
14696
+ return null;
14697
+ }
14698
+ } else {
14699
+ base = normalizeIPAddress(base);
14700
+ if (!ipv4ToBytes(base)) {
14701
+ return null;
14702
+ }
14703
+ }
14704
+ return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
14705
+ };
14706
+ var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
14707
+ var parseCidrEntry = (entry) => {
14708
+ if (entry.indexOf("/") === -1) {
14709
+ return void 0;
14710
+ }
14711
+ const match = CIDR_ENTRY_RE.exec(entry);
14712
+ if (!match) {
14713
+ return null;
14714
+ }
14715
+ let prefix = Number(match[2]);
14716
+ const parsedBase = normalizeCidrBase(match[1]);
14717
+ if (!parsedBase) {
14718
+ return null;
14719
+ }
14720
+ const { normalized, wasIPv6 } = parsedBase;
14721
+ if (wasIPv6 && normalized.indexOf(":") === -1) {
14722
+ if (prefix < 96) {
14723
+ return null;
14724
+ }
14725
+ prefix -= 96;
14726
+ }
14727
+ const bytes = ipToBytes(normalized);
14728
+ if (!bytes || prefix > bytes.length * 8) {
14729
+ return null;
14730
+ }
14731
+ return { bytes, prefix };
14732
+ };
14733
+ var isInSubnet = (addressBytes, networkBytes, prefix) => {
14734
+ const fullBytes = prefix >> 3;
14735
+ for (let i = 0; i < fullBytes; i++) {
14736
+ if (addressBytes[i] !== networkBytes[i]) {
14737
+ return false;
14738
+ }
14739
+ }
14740
+ const remainingBits = prefix & 7;
14741
+ if (remainingBits) {
14742
+ const mask = 255 << 8 - remainingBits & 255;
14743
+ if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
14744
+ return false;
14745
+ }
14746
+ }
14747
+ return true;
14044
14748
  };
14045
14749
  function shouldBypassProxy(location) {
14046
14750
  let parsed;
@@ -14058,10 +14762,18 @@ function shouldBypassProxy(location) {
14058
14762
  }
14059
14763
  const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
14060
14764
  const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
14765
+ const hostnameBytes = ipToBytes(hostname);
14061
14766
  return noProxy.split(/[\s,]+/).some((entry) => {
14062
14767
  if (!entry) {
14063
14768
  return false;
14064
14769
  }
14770
+ if (entry === "*") {
14771
+ return true;
14772
+ }
14773
+ const cidr = parseCidrEntry(entry);
14774
+ if (cidr !== void 0) {
14775
+ return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
14776
+ }
14065
14777
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
14066
14778
  entryHost = normalizeNoProxyHost(entryHost);
14067
14779
  if (!entryHost) {
@@ -14080,7 +14792,7 @@ function shouldBypassProxy(location) {
14080
14792
  });
14081
14793
  }
14082
14794
 
14083
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/speedometer.js
14795
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14084
14796
  function speedometer(samplesCount, min) {
14085
14797
  samplesCount = samplesCount || 10;
14086
14798
  const bytes = new Array(samplesCount);
@@ -14116,7 +14828,7 @@ function speedometer(samplesCount, min) {
14116
14828
  }
14117
14829
  var speedometer_default = speedometer;
14118
14830
 
14119
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/throttle.js
14831
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14120
14832
  function throttle(fn, freq) {
14121
14833
  let timestamp = 0;
14122
14834
  let threshold = 1e3 / freq;
@@ -14147,21 +14859,22 @@ function throttle(fn, freq) {
14147
14859
  }
14148
14860
  };
14149
14861
  const flush = () => lastArgs && invoke(lastArgs);
14150
- return [throttled, flush];
14862
+ const flushWith = (...args) => invoke(args);
14863
+ return [throttled, flush, flushWith];
14151
14864
  }
14152
14865
  var throttle_default = throttle;
14153
14866
 
14154
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/progressEventReducer.js
14867
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14155
14868
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14156
14869
  let bytesNotified = 0;
14157
14870
  const _speedometer = speedometer_default(50, 250);
14158
14871
  return throttle_default((e) => {
14159
- if (!e || typeof e.loaded !== "number") {
14872
+ if (!e || !utils_default.isNumber(e.loaded)) {
14160
14873
  return;
14161
14874
  }
14162
14875
  const rawLoaded = e.loaded;
14163
14876
  const total = e.lengthComputable ? e.total : void 0;
14164
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
14877
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
14165
14878
  const progressBytes = Math.max(0, loaded - bytesNotified);
14166
14879
  const rate = _speedometer(progressBytes);
14167
14880
  bytesNotified = Math.max(bytesNotified, loaded);
@@ -14190,10 +14903,66 @@ var progressEventDecorator = (total, throttled) => {
14190
14903
  throttled[1]
14191
14904
  ];
14192
14905
  };
14193
- var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
14906
+ var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14194
14907
 
14195
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14196
- function estimateDataURLDecodedBytes(url2) {
14908
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14909
+ var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14910
+ var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14911
+ var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
14912
+ var isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || // A-Z
14913
+ charCode >= 97 && charCode <= 122 || // a-z
14914
+ charCode >= 48 && charCode <= 57 || // 0-9
14915
+ charCode === 43 || // +
14916
+ charCode === 47 || // /
14917
+ charCode === 45 || // - (base64url)
14918
+ charCode === 95;
14919
+ var isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
14920
+ var base64Bytes = (significant) => {
14921
+ const groups = Math.floor(significant / 4);
14922
+ const remainder = significant % 4;
14923
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
14924
+ };
14925
+ var estimateBase64BufferAllocation = (body) => {
14926
+ const len = body.length;
14927
+ let padding = 0;
14928
+ if (len > 0 && body.charCodeAt(len - 1) === 61) {
14929
+ padding++;
14930
+ if (len > 1 && body.charCodeAt(len - 2) === 61) {
14931
+ padding++;
14932
+ }
14933
+ }
14934
+ return Math.floor((len - padding) * 3 / 4);
14935
+ };
14936
+ var estimatePercentDecodedBase64Bytes = (body) => {
14937
+ const len = body.length;
14938
+ let significant = 0;
14939
+ let padding = 0;
14940
+ let invalid = false;
14941
+ for (let i = 0; i < len; i++) {
14942
+ let code = body.charCodeAt(i);
14943
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
14944
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
14945
+ i += 2;
14946
+ }
14947
+ if (isBase64Whitespace(code)) {
14948
+ continue;
14949
+ }
14950
+ if (code === 61) {
14951
+ padding++;
14952
+ continue;
14953
+ }
14954
+ if (!isBase64Char(code) || padding > 0) {
14955
+ invalid = true;
14956
+ continue;
14957
+ }
14958
+ significant++;
14959
+ }
14960
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
14961
+ return estimateBase64BufferAllocation(body);
14962
+ }
14963
+ return base64Bytes(significant);
14964
+ };
14965
+ var estimateDataURLBytes = (url2, estimateBase64) => {
14197
14966
  if (!url2 || typeof url2 !== "string") return 0;
14198
14967
  if (!url2.startsWith("data:")) return 0;
14199
14968
  const comma = url2.indexOf(",");
@@ -14202,51 +14971,15 @@ function estimateDataURLDecodedBytes(url2) {
14202
14971
  const body = url2.slice(comma + 1);
14203
14972
  const isBase64 = /;base64/i.test(meta);
14204
14973
  if (isBase64) {
14205
- let effectiveLen = body.length;
14206
- const len = body.length;
14207
- for (let i = 0; i < len; i++) {
14208
- if (body.charCodeAt(i) === 37 && i + 2 < len) {
14209
- const a = body.charCodeAt(i + 1);
14210
- 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);
14212
- if (isHex) {
14213
- effectiveLen -= 2;
14214
- i += 2;
14215
- }
14216
- }
14217
- }
14218
- let pad = 0;
14219
- let idx = len - 1;
14220
- const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
14221
- body.charCodeAt(j - 1) === 51 && // '3'
14222
- (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
14223
- if (idx >= 0) {
14224
- if (body.charCodeAt(idx) === 61) {
14225
- pad++;
14226
- idx--;
14227
- } else if (tailIsPct3D(idx)) {
14228
- pad++;
14229
- idx -= 3;
14230
- }
14231
- }
14232
- if (pad === 1 && idx >= 0) {
14233
- if (body.charCodeAt(idx) === 61) {
14234
- pad++;
14235
- } else if (tailIsPct3D(idx)) {
14236
- pad++;
14237
- }
14238
- }
14239
- const groups = Math.floor(effectiveLen / 4);
14240
- const bytes2 = groups * 3 - (pad || 0);
14241
- return bytes2 > 0 ? bytes2 : 0;
14242
- }
14243
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
14244
- return Buffer.byteLength(body, "utf8");
14974
+ return estimateBase64(body);
14245
14975
  }
14246
14976
  let bytes = 0;
14247
14977
  for (let i = 0, len = body.length; i < len; i++) {
14248
14978
  const c = body.charCodeAt(i);
14249
- if (c < 128) {
14979
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
14980
+ bytes += 1;
14981
+ i += 2;
14982
+ } else if (c < 128) {
14250
14983
  bytes += 1;
14251
14984
  } else if (c < 2048) {
14252
14985
  bytes += 2;
@@ -14263,9 +14996,19 @@ function estimateDataURLDecodedBytes(url2) {
14263
14996
  }
14264
14997
  }
14265
14998
  return bytes;
14999
+ };
15000
+ function estimateDataURLDecodedBytes(url2) {
15001
+ const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
15002
+ return estimateDataURLBytes(
15003
+ fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
15004
+ estimatePercentDecodedBase64Bytes
15005
+ );
15006
+ }
15007
+ function estimateDataURLBufferAllocation(url2) {
15008
+ return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
14266
15009
  }
14267
15010
 
14268
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/http.js
15011
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14269
15012
  var zlibOptions = {
14270
15013
  flush: zlib.constants.Z_SYNC_FLUSH,
14271
15014
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14274,138 +15017,131 @@ var brotliOptions = {
14274
15017
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
14275
15018
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
14276
15019
  };
15020
+ var zstdOptions = {
15021
+ flush: zlib.constants.ZSTD_e_flush,
15022
+ finishFlush: zlib.constants.ZSTD_e_flush
15023
+ };
14277
15024
  var isBrotliSupported = utils_default.isFunction(zlib.createBrotliDecompress);
15025
+ var isZstdSupported = utils_default.isFunction(zlib.createZstdDecompress);
15026
+ var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
15027
+ var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
15028
+ var scheduleProgress = typeof process !== "undefined" && process.nextTick ? process.nextTick.bind(process) : utils_default.asap;
14278
15029
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14279
15030
  var isHttps = /https:?/;
14280
- var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14281
- function setFormDataHeaders(headers, formHeaders, policy) {
14282
- if (policy !== "content-only") {
14283
- headers.set(formHeaders);
14284
- return;
14285
- }
14286
- Object.entries(formHeaders).forEach(([key, val]) => {
14287
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
14288
- headers.set(key, val);
14289
- }
14290
- });
14291
- }
14292
15031
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14293
15032
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
15033
+ function handleSocketError(err) {
15034
+ const current = this[kAxiosCurrentReq];
15035
+ if (current && !current.destroyed) {
15036
+ current.destroy(err);
15037
+ }
15038
+ }
14294
15039
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14295
15040
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14296
15041
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
14297
- function getTunnelingAgent(agentOptions, userHttpsAgent) {
14298
- const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
14299
- const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
14300
- let agent = cache.get(key);
14301
- if (agent) return agent;
14302
- const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
14303
- agent = new import_https_proxy_agent.default(merged);
14304
- agent[kAxiosInstalledTunnel] = true;
14305
- cache.set(key, agent);
14306
- return agent;
14307
- }
14308
- var supportedProtocols = platform_default.protocols.map((protocol) => {
14309
- return protocol + ":";
14310
- });
14311
- var decodeURIComponentSafe = (value) => {
14312
- if (!utils_default.isString(value)) {
14313
- return value;
14314
- }
14315
- try {
14316
- return decodeURIComponent(value);
14317
- } catch (error) {
14318
- return value;
14319
- }
14320
- };
14321
- var flushOnFinish = (stream4, [throttled, flush]) => {
14322
- stream4.on("end", flush).on("error", flush);
14323
- return throttled;
15042
+ var NODE_NATIVE_ENV_PROXY_SUPPORT = {
15043
+ 22: 21,
15044
+ 24: 5
14324
15045
  };
14325
- var Http2Sessions = class {
14326
- constructor() {
14327
- this.sessions = /* @__PURE__ */ Object.create(null);
15046
+ function isNodeNativeEnvProxySupported(nodeVersion = process.versions && process.versions.node) {
15047
+ if (!nodeVersion) {
15048
+ return false;
14328
15049
  }
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;
15050
+ const [major, minor] = nodeVersion.split(".").map((part) => Number(part));
15051
+ if (!Number.isInteger(major) || !Number.isInteger(minor)) {
15052
+ return false;
14395
15053
  }
15054
+ if (major > 24) {
15055
+ return true;
15056
+ }
15057
+ return NODE_NATIVE_ENV_PROXY_SUPPORT[major] != null && minor >= NODE_NATIVE_ENV_PROXY_SUPPORT[major];
15058
+ }
15059
+ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.versions.node) {
15060
+ if (!isNodeNativeEnvProxySupported(nodeVersion)) {
15061
+ return false;
15062
+ }
15063
+ const agentOptions = agent && agent.options;
15064
+ return Boolean(
15065
+ agentOptions && utils_default.hasOwnProp(agentOptions, "proxyEnv") && agentOptions.proxyEnv != null
15066
+ );
15067
+ }
15068
+ function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
15069
+ return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
15070
+ }
15071
+ function getTunnelingAgent(agentOptions, userHttpsAgent) {
15072
+ const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
15073
+ const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
15074
+ let agent = cache.get(key);
15075
+ if (agent) return agent;
15076
+ const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
15077
+ agent = new import_https_proxy_agent.default(merged);
15078
+ if (userHttpsAgent && userHttpsAgent.options) {
15079
+ const originTLSOptions = { ...userHttpsAgent.options };
15080
+ const callback = agent.callback;
15081
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
15082
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
15083
+ };
15084
+ }
15085
+ agent[kAxiosInstalledTunnel] = true;
15086
+ cache.set(key, agent);
15087
+ return agent;
15088
+ }
15089
+ var supportedProtocols = platform_default.protocols.map((protocol) => {
15090
+ return protocol + ":";
15091
+ });
15092
+ var decodeURIComponentSafe = (value) => {
15093
+ if (!utils_default.isString(value)) {
15094
+ return value;
15095
+ }
15096
+ try {
15097
+ return decodeURIComponent(value);
15098
+ } catch (error) {
15099
+ return value;
15100
+ }
15101
+ };
15102
+ var flushOnFinish = (stream4, [throttled, flush]) => {
15103
+ stream4.on("end", flush).on("error", flush);
15104
+ return throttled;
14396
15105
  };
14397
- var http2Sessions = new Http2Sessions();
15106
+ var http2Sessions = new Http2Sessions_default();
14398
15107
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
14399
15108
  if (options.beforeRedirects.proxy) {
14400
15109
  options.beforeRedirects.proxy(options);
14401
15110
  }
15111
+ if (options.beforeRedirects.auth) {
15112
+ options.beforeRedirects.auth(options);
15113
+ }
15114
+ if (options.beforeRedirects.sensitiveHeaders) {
15115
+ options.beforeRedirects.sensitiveHeaders(options, requestDetails);
15116
+ }
14402
15117
  if (options.beforeRedirects.config) {
14403
15118
  options.beforeRedirects.config(options, responseDetails, requestDetails);
14404
15119
  }
14405
15120
  }
14406
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent) {
15121
+ function stripMatchingHeaders(headers, sensitiveSet) {
15122
+ if (!headers) {
15123
+ return;
15124
+ }
15125
+ Object.keys(headers).forEach((header) => {
15126
+ if (sensitiveSet.has(header.toLowerCase())) {
15127
+ delete headers[header];
15128
+ }
15129
+ });
15130
+ }
15131
+ function isSameOriginRedirect(redirectOptions, requestDetails) {
15132
+ if (!requestDetails) {
15133
+ return false;
15134
+ }
15135
+ try {
15136
+ return new URL(requestDetails.url).origin === new URL(redirectOptions.href).origin;
15137
+ } catch (e) {
15138
+ return false;
15139
+ }
15140
+ }
15141
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
14407
15142
  let proxy = configProxy;
14408
- if (!proxy && proxy !== false) {
15143
+ const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
15144
+ if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14409
15145
  const proxyUrl = getProxyForUrl(location);
14410
15146
  if (proxyUrl) {
14411
15147
  if (!shouldBypassProxy(location)) {
@@ -14496,8 +15232,19 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent)
14496
15232
  }
14497
15233
  }
14498
15234
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
14499
- setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent);
15235
+ setProxy(
15236
+ redirectOptions,
15237
+ configProxy,
15238
+ redirectOptions.href,
15239
+ true,
15240
+ configHttpsAgent,
15241
+ configHttpAgent,
15242
+ allowEnvProxy
15243
+ );
14500
15244
  };
15245
+ return Boolean(
15246
+ proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent)
15247
+ );
14501
15248
  }
14502
15249
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
14503
15250
  var wrapAsync = (asyncExecutor) => {
@@ -14522,7 +15269,7 @@ var wrapAsync = (asyncExecutor) => {
14522
15269
  };
14523
15270
  var resolveFamily = ({ address, family }) => {
14524
15271
  if (!utils_default.isString(address)) {
14525
- throw TypeError("address must be a string");
15272
+ throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
14526
15273
  }
14527
15274
  return {
14528
15275
  address,
@@ -14530,12 +15277,36 @@ var resolveFamily = ({ address, family }) => {
14530
15277
  };
14531
15278
  };
14532
15279
  var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
15280
+ var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
15281
+ var normalizeLookup = (lookup) => {
15282
+ let normalized = normalizedLookupCache.get(lookup);
15283
+ if (normalized) {
15284
+ return normalized;
15285
+ }
15286
+ const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
15287
+ normalized = (hostname, opt, cb) => {
15288
+ callbackLookup(hostname, opt, (err, arg0, arg1) => {
15289
+ if (err) {
15290
+ return cb(err);
15291
+ }
15292
+ let addresses;
15293
+ try {
15294
+ addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
15295
+ } catch (error) {
15296
+ return cb(error);
15297
+ }
15298
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
15299
+ });
15300
+ };
15301
+ normalizedLookupCache.set(lookup, normalized);
15302
+ return normalized;
15303
+ };
14533
15304
  var http2Transport = {
14534
15305
  request(options, cb) {
14535
15306
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
14536
15307
  const { http2Options, headers } = options;
14537
15308
  const session = http2Sessions.getSession(authority, http2Options);
14538
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http2.constants;
15309
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
14539
15310
  const http2Headers = {
14540
15311
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
14541
15312
  [HTTP2_HEADER_METHOD]: options.method,
@@ -14559,39 +15330,56 @@ var http2Transport = {
14559
15330
  };
14560
15331
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14561
15332
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
14562
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15333
+ const own2 = (key) => utils_default.getSafeProp(config, key);
15334
+ const transitional2 = own2("transitional") || transitional_default;
14563
15335
  let data = own2("data");
14564
15336
  let lookup = own2("lookup");
14565
15337
  let family = own2("family");
14566
15338
  let httpVersion = own2("httpVersion");
14567
15339
  if (httpVersion === void 0) httpVersion = 1;
15340
+ const rawHttpVersion = httpVersion;
14568
15341
  let http2Options = own2("http2Options");
15342
+ const httpAgent = own2("httpAgent");
15343
+ const httpsAgent = own2("httpsAgent");
15344
+ const configProxy = own2("proxy");
14569
15345
  const responseType = own2("responseType");
14570
15346
  const responseEncoding = own2("responseEncoding");
14571
- const method = config.method.toUpperCase();
15347
+ const socketPath = own2("socketPath");
15348
+ const method = own2("method").toUpperCase();
15349
+ const maxRedirects = own2("maxRedirects");
15350
+ const maxBodyLength = own2("maxBodyLength");
15351
+ const maxContentLength = own2("maxContentLength");
15352
+ const decompress = own2("decompress");
14572
15353
  let isDone;
14573
15354
  let rejected = false;
14574
15355
  let req;
14575
15356
  let connectPhaseTimer;
14576
- httpVersion = +httpVersion;
15357
+ try {
15358
+ httpVersion = +httpVersion;
15359
+ } catch (err) {
15360
+ throw new AxiosError_default(
15361
+ "Invalid protocol version: value is not a number",
15362
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15363
+ config
15364
+ );
15365
+ }
14577
15366
  if (Number.isNaN(httpVersion)) {
14578
- throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
15367
+ throw new AxiosError_default(
15368
+ `Invalid protocol version: '${rawHttpVersion}' is not a number`,
15369
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15370
+ config
15371
+ );
14579
15372
  }
14580
15373
  if (httpVersion !== 1 && httpVersion !== 2) {
14581
- throw TypeError(`Unsupported protocol version '${httpVersion}'`);
15374
+ throw new AxiosError_default(
15375
+ `Unsupported protocol version '${httpVersion}'`,
15376
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15377
+ config
15378
+ );
14582
15379
  }
14583
15380
  const isHttp2 = httpVersion === 2;
14584
15381
  if (lookup) {
14585
- const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
14586
- lookup = (hostname, opt, cb) => {
14587
- _lookup(hostname, opt, (err, arg0, arg1) => {
14588
- if (err) {
14589
- return cb(err);
14590
- }
14591
- const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
14592
- opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
14593
- });
14594
- };
15382
+ lookup = normalizeLookup(lookup);
14595
15383
  }
14596
15384
  const abortEmitter = new EventEmitter();
14597
15385
  function abort(reason) {
@@ -14601,7 +15389,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14601
15389
  !reason || reason.type ? new CanceledError_default(null, config, req) : reason
14602
15390
  );
14603
15391
  } catch (err) {
14604
- console.warn("emit error", err);
14605
15392
  }
14606
15393
  }
14607
15394
  function clearConnectPhaseTimer() {
@@ -14611,10 +15398,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14611
15398
  }
14612
15399
  }
14613
15400
  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;
15401
+ const configTimeout = own2("timeout");
15402
+ let timeoutErrorMessage = configTimeout ? "timeout of " + configTimeout + "ms exceeded" : "timeout exceeded";
15403
+ const configTimeoutErrorMessage = own2("timeoutErrorMessage");
15404
+ if (configTimeoutErrorMessage) {
15405
+ timeoutErrorMessage = configTimeoutErrorMessage;
14618
15406
  }
14619
15407
  return new AxiosError_default(
14620
15408
  timeoutErrorMessage,
@@ -14658,17 +15446,18 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14658
15446
  onFinished();
14659
15447
  }
14660
15448
  });
14661
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14662
- const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
15449
+ const fullPath = buildFullPath(own2("baseURL"), own2("url"), own2("allowAbsoluteUrls"), config);
15450
+ const urlBase = socketPath ? "http://localhost" : platform_default.hasBrowserEnv ? platform_default.origin : void 0;
15451
+ const parsed = new URL(fullPath, urlBase);
14663
15452
  const protocol = parsed.protocol || supportedProtocols[0];
14664
15453
  if (protocol === "data:") {
14665
- if (config.maxContentLength > -1) {
14666
- const dataUrl = String(config.url || fullPath || "");
14667
- const estimated = estimateDataURLDecodedBytes(dataUrl);
14668
- if (estimated > config.maxContentLength) {
15454
+ if (maxContentLength > -1) {
15455
+ const dataUrl = String(own2("url") || fullPath || "");
15456
+ const estimated = estimateDataURLBufferAllocation(dataUrl);
15457
+ if (estimated > maxContentLength) {
14669
15458
  return reject(
14670
15459
  new AxiosError_default(
14671
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15460
+ "maxContentLength size of " + maxContentLength + " exceeded",
14672
15461
  AxiosError_default.ERR_BAD_RESPONSE,
14673
15462
  config
14674
15463
  )
@@ -14685,7 +15474,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14685
15474
  });
14686
15475
  }
14687
15476
  try {
14688
- convertedData = fromDataURI(config.url, responseType === "blob", {
15477
+ convertedData = fromDataURI(own2("url"), responseType === "blob", {
14689
15478
  Blob: config.env && config.env.Blob
14690
15479
  });
14691
15480
  } catch (err) {
@@ -14734,7 +15523,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14734
15523
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
14735
15524
  if (!headers.hasContentLength()) {
14736
15525
  try {
14737
- const knownLength = await util2.promisify(data.getLength).call(data);
15526
+ const knownLength = await util3.promisify(data.getLength).call(data);
14738
15527
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
14739
15528
  } catch (e) {
14740
15529
  }
@@ -14759,7 +15548,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14759
15548
  );
14760
15549
  }
14761
15550
  headers.setContentLength(data.length, false);
14762
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
15551
+ if (maxBodyLength > -1 && data.length > maxBodyLength) {
14763
15552
  return reject(
14764
15553
  new AxiosError_default(
14765
15554
  "Request body larger than maxBodyLength limit",
@@ -14795,7 +15584,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14795
15584
  data,
14796
15585
  progressEventDecorator(
14797
15586
  contentLength,
14798
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
15587
+ progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3)
14799
15588
  )
14800
15589
  )
14801
15590
  );
@@ -14803,11 +15592,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14803
15592
  let auth = void 0;
14804
15593
  const configAuth = own2("auth");
14805
15594
  if (configAuth) {
14806
- const username = configAuth.username || "";
14807
- const password = configAuth.password || "";
15595
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
15596
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
14808
15597
  auth = username + ":" + password;
14809
15598
  }
14810
- if (!auth && parsed.username) {
15599
+ if (!auth && (parsed.username || parsed.password)) {
14811
15600
  const urlUsername = decodeURIComponentSafe(parsed.username);
14812
15601
  const urlPassword = decodeURIComponentSafe(parsed.password);
14813
15602
  auth = urlUsername + ":" + urlPassword;
@@ -14817,96 +15606,165 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14817
15606
  try {
14818
15607
  path = buildURL(
14819
15608
  parsed.pathname + parsed.search,
14820
- config.params,
14821
- config.paramsSerializer
15609
+ own2("params"),
15610
+ own2("paramsSerializer")
14822
15611
  ).replace(/^\?/, "");
14823
15612
  } 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);
15613
+ return reject(
15614
+ AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config, null, null, {
15615
+ url: own2("url"),
15616
+ exists: true
15617
+ })
15618
+ );
14829
15619
  }
14830
15620
  headers.set(
14831
15621
  "Accept-Encoding",
14832
- "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
15622
+ utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
14833
15623
  false
14834
15624
  );
15625
+ if (isHttp2 && lookup) {
15626
+ http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, { lookup });
15627
+ }
14835
15628
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
14836
15629
  path,
14837
15630
  method,
14838
15631
  headers: toByteStringHeaderObject(headers),
14839
- agents: { http: config.httpAgent, https: config.httpsAgent },
15632
+ agents: { http: httpAgent, https: httpsAgent },
14840
15633
  auth,
14841
15634
  protocol,
14842
15635
  family,
14843
15636
  beforeRedirect: dispatchBeforeRedirect,
14844
15637
  beforeRedirects: /* @__PURE__ */ Object.create(null),
14845
- http2Options
15638
+ http2Options,
15639
+ createConnection: void 0
14846
15640
  });
14847
15641
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
14848
- if (config.socketPath) {
14849
- if (typeof config.socketPath !== "string") {
15642
+ let proxyApplied = false;
15643
+ if (socketPath) {
15644
+ if (typeof socketPath !== "string") {
14850
15645
  return reject(
14851
15646
  new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
14852
15647
  );
14853
15648
  }
14854
- if (config.allowedSocketPaths != null) {
14855
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
14856
- const resolvedSocket = resolvePath(config.socketPath);
15649
+ const allowedSocketPaths = own2("allowedSocketPaths");
15650
+ if (allowedSocketPaths != null) {
15651
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
15652
+ const resolvedSocket = resolvePath(socketPath);
14857
15653
  const isAllowed = allowed.some(
14858
15654
  (entry) => typeof entry === "string" && resolvePath(entry) === resolvedSocket
14859
15655
  );
14860
15656
  if (!isAllowed) {
14861
15657
  return reject(
14862
15658
  new AxiosError_default(
14863
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
15659
+ `socketPath "${socketPath}" is not permitted by allowedSocketPaths`,
14864
15660
  AxiosError_default.ERR_BAD_OPTION_VALUE,
14865
15661
  config
14866
15662
  )
14867
15663
  );
14868
15664
  }
14869
15665
  }
14870
- options.socketPath = config.socketPath;
15666
+ options.socketPath = socketPath;
14871
15667
  } else {
14872
15668
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
14873
15669
  options.port = parsed.port;
14874
- setProxy(
15670
+ proxyApplied = setProxy(
14875
15671
  options,
14876
- config.proxy,
15672
+ configProxy,
14877
15673
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
14878
15674
  false,
14879
- config.httpsAgent
15675
+ httpsAgent,
15676
+ httpAgent,
15677
+ // The HTTP/2 transport connects independently of HTTP/1 agents, so it
15678
+ // cannot apply either axios-resolved or agent-local environment proxies.
15679
+ // Explicit proxy config is still processed and rejected below.
15680
+ !isHttp2
14880
15681
  );
14881
15682
  }
14882
15683
  let transport;
14883
15684
  let isNativeTransport = false;
15685
+ let transportEnforcesMaxBodyLength = false;
14884
15686
  const isHttpsRequest = isHttps.test(options.protocol);
14885
15687
  if (options.agent == null) {
14886
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
15688
+ options.agent = isHttpsRequest ? httpsAgent : httpAgent;
14887
15689
  }
14888
15690
  if (isHttp2) {
15691
+ if (proxyApplied) {
15692
+ return reject(
15693
+ new AxiosError_default(
15694
+ "HTTP/2 requests with a proxy are not supported",
15695
+ AxiosError_default.ERR_NOT_SUPPORT,
15696
+ config
15697
+ )
15698
+ );
15699
+ }
14889
15700
  transport = http2Transport;
14890
15701
  } else {
14891
15702
  const configTransport = own2("transport");
14892
15703
  if (configTransport) {
14893
15704
  transport = configTransport;
14894
- } else if (config.maxRedirects === 0) {
15705
+ } else if (maxRedirects === 0) {
14895
15706
  transport = isHttpsRequest ? https : http;
14896
15707
  isNativeTransport = true;
14897
15708
  } else {
14898
- if (config.maxRedirects) {
14899
- options.maxRedirects = config.maxRedirects;
15709
+ transportEnforcesMaxBodyLength = true;
15710
+ options.sensitiveHeaders = [];
15711
+ if (maxRedirects) {
15712
+ options.maxRedirects = maxRedirects;
14900
15713
  }
14901
15714
  const configBeforeRedirect = own2("beforeRedirect");
14902
15715
  if (configBeforeRedirect) {
14903
15716
  options.beforeRedirects.config = configBeforeRedirect;
14904
15717
  }
15718
+ if (auth) {
15719
+ const requestOrigin = parsed.origin;
15720
+ const authToRestore = auth;
15721
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
15722
+ try {
15723
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
15724
+ redirectOptions.auth = authToRestore;
15725
+ }
15726
+ } catch (e) {
15727
+ }
15728
+ };
15729
+ }
15730
+ const sensitiveHeaders = own2("sensitiveHeaders");
15731
+ if (sensitiveHeaders != null) {
15732
+ if (!utils_default.isArray(sensitiveHeaders)) {
15733
+ return reject(
15734
+ new AxiosError_default(
15735
+ "sensitiveHeaders must be an array of strings",
15736
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15737
+ config
15738
+ )
15739
+ );
15740
+ }
15741
+ const sensitiveSet = /* @__PURE__ */ new Set();
15742
+ for (const header of sensitiveHeaders) {
15743
+ if (!utils_default.isString(header)) {
15744
+ return reject(
15745
+ new AxiosError_default(
15746
+ "sensitiveHeaders must be an array of strings",
15747
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15748
+ config
15749
+ )
15750
+ );
15751
+ }
15752
+ sensitiveSet.add(header.toLowerCase());
15753
+ }
15754
+ if (sensitiveSet.size) {
15755
+ options.sensitiveHeaders = Array.from(sensitiveSet);
15756
+ options.beforeRedirects.sensitiveHeaders = function beforeRedirectSensitiveHeaders(redirectOptions, requestDetails) {
15757
+ if (!isSameOriginRedirect(redirectOptions, requestDetails)) {
15758
+ stripMatchingHeaders(redirectOptions.headers, sensitiveSet);
15759
+ }
15760
+ };
15761
+ }
15762
+ }
14905
15763
  transport = isHttpsRequest ? httpsFollow : httpFollow;
14906
15764
  }
14907
15765
  }
14908
- if (config.maxBodyLength > -1) {
14909
- options.maxBodyLength = config.maxBodyLength;
15766
+ if (maxBodyLength > -1) {
15767
+ options.maxBodyLength = maxBodyLength;
14910
15768
  } else {
14911
15769
  options.maxBodyLength = Infinity;
14912
15770
  }
@@ -14926,7 +15784,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14926
15784
  transformStream,
14927
15785
  progressEventDecorator(
14928
15786
  responseLength,
14929
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
15787
+ progressEventReducer(
15788
+ asyncDecorator(onDownloadProgress, scheduleProgress),
15789
+ true,
15790
+ 3
15791
+ )
14930
15792
  )
14931
15793
  )
14932
15794
  );
@@ -14934,7 +15796,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14934
15796
  }
14935
15797
  let responseStream = res;
14936
15798
  const lastRequest = res.req || req;
14937
- if (config.decompress !== false && res.headers["content-encoding"]) {
15799
+ if (decompress !== false && res.headers["content-encoding"]) {
14938
15800
  if (method === "HEAD" || res.statusCode === 204) {
14939
15801
  delete res.headers["content-encoding"];
14940
15802
  }
@@ -14957,6 +15819,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14957
15819
  streams.push(zlib.createBrotliDecompress(brotliOptions));
14958
15820
  delete res.headers["content-encoding"];
14959
15821
  }
15822
+ break;
15823
+ case "zstd":
15824
+ if (isZstdSupported) {
15825
+ streams.push(zlib.createZstdDecompress(zstdOptions));
15826
+ delete res.headers["content-encoding"];
15827
+ }
15828
+ break;
14960
15829
  }
14961
15830
  }
14962
15831
  responseStream = streams.length > 1 ? stream3.pipeline(streams, utils_default.noop) : streams[0];
@@ -14968,8 +15837,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14968
15837
  request: lastRequest
14969
15838
  };
14970
15839
  if (responseType === "stream") {
14971
- if (config.maxContentLength > -1) {
14972
- const limit = config.maxContentLength;
15840
+ if (maxContentLength > -1) {
15841
+ const limit = maxContentLength;
14973
15842
  const source = responseStream;
14974
15843
  async function* enforceMaxContentLength() {
14975
15844
  let totalResponseBytes = 0;
@@ -14998,12 +15867,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
14998
15867
  responseStream.on("data", function handleStreamData(chunk) {
14999
15868
  responseBuffer.push(chunk);
15000
15869
  totalResponseBytes += chunk.length;
15001
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
15870
+ if (maxContentLength > -1 && totalResponseBytes > maxContentLength) {
15002
15871
  rejected = true;
15003
15872
  responseStream.destroy();
15004
15873
  abort(
15005
15874
  new AxiosError_default(
15006
- "maxContentLength size of " + config.maxContentLength + " exceeded",
15875
+ "maxContentLength size of " + maxContentLength + " exceeded",
15007
15876
  AxiosError_default.ERR_BAD_RESPONSE,
15008
15877
  config,
15009
15878
  lastRequest
@@ -15064,14 +15933,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15064
15933
  });
15065
15934
  const boundSockets = /* @__PURE__ */ new Set();
15066
15935
  req.on("socket", function handleRequestSocket(socket) {
15067
- socket.setKeepAlive(true, 1e3 * 60);
15936
+ if (typeof socket.setKeepAlive === "function") {
15937
+ socket.setKeepAlive(true, 1e3 * 60);
15938
+ }
15068
15939
  if (!socket[kAxiosSocketListener]) {
15069
- socket.on("error", function handleSocketError(err) {
15070
- const current = socket[kAxiosCurrentReq];
15071
- if (current && !current.destroyed) {
15072
- current.destroy(err);
15073
- }
15074
- });
15940
+ socket.on("error", handleSocketError);
15075
15941
  socket[kAxiosSocketListener] = true;
15076
15942
  }
15077
15943
  socket[kAxiosCurrentReq] = req;
@@ -15086,8 +15952,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15086
15952
  }
15087
15953
  boundSockets.clear();
15088
15954
  });
15089
- if (config.timeout) {
15090
- const timeout = parseInt(config.timeout, 10);
15955
+ if (own2("timeout")) {
15956
+ const timeout = parseInt(own2("timeout"), 10);
15091
15957
  if (Number.isNaN(timeout)) {
15092
15958
  abort(
15093
15959
  new AxiosError_default(
@@ -15126,8 +15992,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15126
15992
  }
15127
15993
  });
15128
15994
  let uploadStream = data;
15129
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
15130
- const limit = config.maxBodyLength;
15995
+ if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
15996
+ const limit = maxBodyLength;
15131
15997
  let bytesSent = 0;
15132
15998
  uploadStream = stream3.pipeline(
15133
15999
  [
@@ -15163,7 +16029,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15163
16029
  });
15164
16030
  };
15165
16031
 
15166
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isURLSameOrigin.js
16032
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15167
16033
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15168
16034
  url2 = new URL(url2, platform_default.origin);
15169
16035
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15172,7 +16038,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15172
16038
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15173
16039
  ) : () => true;
15174
16040
 
15175
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/cookies.js
16041
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
15176
16042
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15177
16043
  // Standard browser envs support document.cookie
15178
16044
  {
@@ -15203,7 +16069,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15203
16069
  const cookie = cookies[i].replace(/^\s+/, "");
15204
16070
  const eq = cookie.indexOf("=");
15205
16071
  if (eq !== -1 && cookie.slice(0, eq) === name) {
15206
- return decodeURIComponent(cookie.slice(eq + 1));
16072
+ try {
16073
+ return decodeURIComponent(cookie.slice(eq + 1));
16074
+ } catch (e) {
16075
+ return cookie.slice(eq + 1);
16076
+ }
15207
16077
  }
15208
16078
  }
15209
16079
  return null;
@@ -15225,9 +16095,20 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15225
16095
  }
15226
16096
  );
15227
16097
 
15228
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/mergeConfig.js
16098
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15229
16099
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
16100
+ var ownEnumerableKeys = (thing) => {
16101
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
16102
+ return Object.keys(thing).concat(
16103
+ Object.getOwnPropertySymbols(thing).filter(
16104
+ (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
16105
+ )
16106
+ );
16107
+ }
16108
+ return Object.keys(thing);
16109
+ };
15230
16110
  function mergeConfig(config1, config2) {
16111
+ config1 = config1 || {};
15231
16112
  config2 = config2 || {};
15232
16113
  const config = /* @__PURE__ */ Object.create(null);
15233
16114
  Object.defineProperty(config, "hasOwnProperty", {
@@ -15268,6 +16149,23 @@ function mergeConfig(config1, config2) {
15268
16149
  return getMergedValue(void 0, a);
15269
16150
  }
15270
16151
  }
16152
+ function getMergedTransitionalOption(prop) {
16153
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
16154
+ if (!utils_default.isUndefined(transitional2)) {
16155
+ if (utils_default.isPlainObject(transitional2)) {
16156
+ if (utils_default.hasOwnProp(transitional2, prop)) {
16157
+ return transitional2[prop];
16158
+ }
16159
+ } else {
16160
+ return void 0;
16161
+ }
16162
+ }
16163
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
16164
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
16165
+ return transitional1[prop];
16166
+ }
16167
+ return void 0;
16168
+ }
15271
16169
  function mergeDirectKeys(a, b, prop) {
15272
16170
  if (utils_default.hasOwnProp(config2, prop)) {
15273
16171
  return getMergedValue(a, b);
@@ -15284,7 +16182,7 @@ function mergeConfig(config1, config2) {
15284
16182
  transformResponse: defaultToConfig2,
15285
16183
  paramsSerializer: defaultToConfig2,
15286
16184
  timeout: defaultToConfig2,
15287
- timeoutMessage: defaultToConfig2,
16185
+ timeoutErrorMessage: defaultToConfig2,
15288
16186
  withCredentials: defaultToConfig2,
15289
16187
  withXSRFToken: defaultToConfig2,
15290
16188
  adapter: defaultToConfig2,
@@ -15307,7 +16205,7 @@ function mergeConfig(config1, config2) {
15307
16205
  validateStatus: mergeDirectKeys,
15308
16206
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
15309
16207
  };
15310
- utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
16208
+ utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
15311
16209
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
15312
16210
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
15313
16211
  const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
@@ -15315,27 +16213,22 @@ function mergeConfig(config1, config2) {
15315
16213
  const configValue = merge2(a, b, prop);
15316
16214
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
15317
16215
  });
16216
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
16217
+ if (utils_default.hasOwnProp(config1, "validateStatus")) {
16218
+ config.validateStatus = getMergedValue(void 0, config1.validateStatus);
16219
+ } else {
16220
+ delete config.validateStatus;
16221
+ }
16222
+ }
15318
16223
  return config;
15319
16224
  }
15320
16225
 
15321
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/resolveConfig.js
15322
- var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
15323
- function setFormDataHeaders2(headers, formHeaders, policy) {
15324
- if (policy !== "content-only") {
15325
- headers.set(formHeaders);
15326
- return;
15327
- }
15328
- Object.entries(formHeaders).forEach(([key, val]) => {
15329
- if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
15330
- headers.set(key, val);
15331
- }
15332
- });
15333
- }
16226
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15334
16227
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15335
16228
  /%([0-9A-F]{2})/gi,
15336
16229
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
15337
16230
  );
15338
- var resolveConfig_default = (config) => {
16231
+ function resolveConfig(config) {
15339
16232
  const newConfig = mergeConfig({}, config);
15340
16233
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
15341
16234
  const data = own2("data");
@@ -15349,21 +16242,28 @@ var resolveConfig_default = (config) => {
15349
16242
  const url2 = own2("url");
15350
16243
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
15351
16244
  newConfig.url = buildURL(
15352
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
15353
- config.params,
15354
- config.paramsSerializer
16245
+ buildFullPath(baseURL, url2, allowAbsoluteUrls, newConfig),
16246
+ own2("params"),
16247
+ own2("paramsSerializer")
15355
16248
  );
15356
16249
  if (auth) {
15357
- headers.set(
15358
- "Authorization",
15359
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
15360
- );
16250
+ const username = utils_default.getSafeProp(auth, "username") || "";
16251
+ const password = utils_default.getSafeProp(auth, "password") || "";
16252
+ try {
16253
+ headers.set(
16254
+ "Authorization",
16255
+ "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
16256
+ );
16257
+ } catch (e) {
16258
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
16259
+ }
15361
16260
  }
15362
16261
  if (utils_default.isFormData(data)) {
15363
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
16262
+ const getHeaders = utils_default.getSafeProp(data, "getHeaders");
16263
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15364
16264
  headers.setContentType(void 0);
15365
- } else if (utils_default.isFunction(data.getHeaders)) {
15366
- setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
16265
+ } else if (utils_default.isFunction(getHeaders)) {
16266
+ setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
15367
16267
  }
15368
16268
  }
15369
16269
  if (platform_default.hasStandardBrowserEnv) {
@@ -15379,9 +16279,10 @@ var resolveConfig_default = (config) => {
15379
16279
  }
15380
16280
  }
15381
16281
  return newConfig;
15382
- };
16282
+ }
16283
+ var resolveConfig_default = resolveConfig;
15383
16284
 
15384
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/xhr.js
16285
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15385
16286
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15386
16287
  var xhr_default = isXHRAdapterSupported && function(config) {
15387
16288
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15391,7 +16292,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15391
16292
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
15392
16293
  let onCanceled;
15393
16294
  let uploadThrottled, downloadThrottled;
15394
- let flushUpload, flushDownload;
16295
+ let flushUpload, flushDownload, flushDownloadWithEvent;
15395
16296
  function done() {
15396
16297
  flushUpload && flushUpload();
15397
16298
  flushDownload && flushDownload();
@@ -15401,7 +16302,27 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15401
16302
  let request = new XMLHttpRequest();
15402
16303
  request.open(_config.method.toUpperCase(), _config.url, true);
15403
16304
  request.timeout = _config.timeout;
15404
- function onloadend() {
16305
+ function onloadend(event) {
16306
+ if (!request) {
16307
+ return;
16308
+ }
16309
+ if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
16310
+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
16311
+ done();
16312
+ request = null;
16313
+ return;
16314
+ }
16315
+ try {
16316
+ if (event) {
16317
+ flushDownloadWithEvent && flushDownloadWithEvent(event);
16318
+ } else {
16319
+ flushDownload && flushDownload();
16320
+ }
16321
+ } catch (err) {
16322
+ setTimeout(() => {
16323
+ throw err;
16324
+ });
16325
+ }
15405
16326
  if (!request) {
15406
16327
  return;
15407
16328
  }
@@ -15489,7 +16410,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15489
16410
  request.responseType = _config.responseType;
15490
16411
  }
15491
16412
  if (onDownloadProgress) {
15492
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
16413
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
16414
+ onDownloadProgress,
16415
+ true
16416
+ );
15493
16417
  request.addEventListener("progress", downloadThrottled);
15494
16418
  }
15495
16419
  if (onUploadProgress && request.upload) {
@@ -15521,13 +16445,14 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15521
16445
  config
15522
16446
  )
15523
16447
  );
16448
+ done();
15524
16449
  return;
15525
16450
  }
15526
16451
  request.send(requestData || null);
15527
16452
  });
15528
16453
  };
15529
16454
 
15530
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/composeSignals.js
16455
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
15531
16456
  var composeSignals = (signals, timeout) => {
15532
16457
  signals = signals ? signals.filter(Boolean) : [];
15533
16458
  if (!timeout && !signals.length) {
@@ -15560,14 +16485,23 @@ var composeSignals = (signals, timeout) => {
15560
16485
  });
15561
16486
  signals = null;
15562
16487
  };
15563
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
16488
+ signals.forEach((signal2) => {
16489
+ if (aborted) {
16490
+ return;
16491
+ }
16492
+ if (signal2.aborted) {
16493
+ onabort.call(signal2);
16494
+ return;
16495
+ }
16496
+ signal2.addEventListener("abort", onabort, { once: true });
16497
+ });
15564
16498
  const { signal } = controller;
15565
16499
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
15566
16500
  return signal;
15567
16501
  };
15568
16502
  var composeSignals_default = composeSignals;
15569
16503
 
15570
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/trackStream.js
16504
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
15571
16505
  var streamChunk = function* (chunk, chunkSize) {
15572
16506
  let len = chunk.byteLength;
15573
16507
  if (!chunkSize || len < chunkSize) {
@@ -15647,9 +16581,34 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
15647
16581
  );
15648
16582
  };
15649
16583
 
15650
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/fetch.js
16584
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
15651
16585
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
16586
+ var DEFAULT_REQUEST_OPTIONS = {
16587
+ cache: "default",
16588
+ redirect: "follow",
16589
+ referrer: "about:client",
16590
+ referrerPolicy: "",
16591
+ mode: "cors",
16592
+ integrity: "",
16593
+ keepalive: false,
16594
+ priority: "auto",
16595
+ window: null
16596
+ };
15652
16597
  var { isFunction: isFunction2 } = utils_default;
16598
+ var encodeUTF82 = (str) => encodeURIComponent(str).replace(
16599
+ /%([0-9A-F]{2})/gi,
16600
+ (_, hex) => String.fromCharCode(parseInt(hex, 16))
16601
+ );
16602
+ var decodeURIComponentSafe2 = (value) => {
16603
+ if (!utils_default.isString(value)) {
16604
+ return value;
16605
+ }
16606
+ try {
16607
+ return decodeURIComponent(value);
16608
+ } catch (error) {
16609
+ return value;
16610
+ }
16611
+ };
15653
16612
  var test = (fn, ...args) => {
15654
16613
  try {
15655
16614
  return !!fn(...args);
@@ -15657,6 +16616,14 @@ var test = (fn, ...args) => {
15657
16616
  return false;
15658
16617
  }
15659
16618
  };
16619
+ var maybeWithAuthCredentials = (url2) => {
16620
+ const protocolIndex = url2.indexOf("://");
16621
+ let urlToCheck = url2;
16622
+ if (protocolIndex !== -1) {
16623
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
16624
+ }
16625
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
16626
+ };
15660
16627
  var factory = (env) => {
15661
16628
  const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
15662
16629
  const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
@@ -15757,10 +16724,12 @@ var factory = (env) => {
15757
16724
  withCredentials = "same-origin",
15758
16725
  fetchOptions,
15759
16726
  maxContentLength,
15760
- maxBodyLength
16727
+ maxBodyLength,
16728
+ maxRedirects
15761
16729
  } = resolveConfig_default(config);
15762
16730
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
15763
16731
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
16732
+ const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
15764
16733
  let _fetch = envFetch || fetch;
15765
16734
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
15766
16735
  let composedSignal = composeSignals_default(
@@ -15772,7 +16741,47 @@ var factory = (env) => {
15772
16741
  composedSignal.unsubscribe();
15773
16742
  });
15774
16743
  let requestContentLength;
16744
+ let pendingBodyError = null;
16745
+ const maxBodyLengthError = () => new AxiosError_default(
16746
+ "Request body larger than maxBodyLength limit",
16747
+ AxiosError_default.ERR_BAD_REQUEST,
16748
+ config,
16749
+ request
16750
+ );
15775
16751
  try {
16752
+ let auth = void 0;
16753
+ const configAuth = own2("auth");
16754
+ if (configAuth) {
16755
+ const username = utils_default.getSafeProp(configAuth, "username") || "";
16756
+ const password = utils_default.getSafeProp(configAuth, "password") || "";
16757
+ auth = {
16758
+ username,
16759
+ password
16760
+ };
16761
+ }
16762
+ if (maybeWithAuthCredentials(url2)) {
16763
+ const parsedURL = new URL(url2, platform_default.origin);
16764
+ if (!auth && (parsedURL.username || parsedURL.password)) {
16765
+ const urlUsername = decodeURIComponentSafe2(parsedURL.username);
16766
+ const urlPassword = decodeURIComponentSafe2(parsedURL.password);
16767
+ auth = {
16768
+ username: urlUsername,
16769
+ password: urlPassword
16770
+ };
16771
+ }
16772
+ if (parsedURL.username || parsedURL.password) {
16773
+ parsedURL.username = "";
16774
+ parsedURL.password = "";
16775
+ url2 = parsedURL.href;
16776
+ }
16777
+ }
16778
+ if (auth) {
16779
+ headers.delete("authorization");
16780
+ headers.set(
16781
+ "Authorization",
16782
+ "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
16783
+ );
16784
+ }
15776
16785
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
15777
16786
  const estimated = estimateDataURLDecodedBytes(url2);
15778
16787
  if (estimated > maxContentLength) {
@@ -15785,33 +16794,55 @@ var factory = (env) => {
15785
16794
  }
15786
16795
  }
15787
16796
  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
- );
16797
+ const outboundLength = await getBodyLength(data);
16798
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
16799
+ requestContentLength = outboundLength;
16800
+ if (outboundLength > maxBodyLength) {
16801
+ throw maxBodyLengthError();
16802
+ }
15796
16803
  }
15797
16804
  }
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);
16805
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
16806
+ const trackRequestStream = (stream4, onProgress, flush) => trackStream(
16807
+ stream4,
16808
+ DEFAULT_CHUNK_SIZE,
16809
+ (loadedBytes) => {
16810
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) {
16811
+ throw pendingBodyError = maxBodyLengthError();
16812
+ }
16813
+ onProgress && onProgress(loadedBytes);
16814
+ },
16815
+ flush
16816
+ );
16817
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
16818
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
16819
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
16820
+ let _request = new Request(url2, {
16821
+ method: "POST",
16822
+ body: data,
16823
+ duplex: "half"
16824
+ });
16825
+ let contentTypeHeader;
16826
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
16827
+ headers.setContentType(contentTypeHeader);
16828
+ }
16829
+ if (_request.body) {
16830
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(
16831
+ requestContentLength,
16832
+ progressEventReducer(asyncDecorator(onUploadProgress))
16833
+ ) || [];
16834
+ data = trackRequestStream(_request.body, onProgress, flush);
16835
+ }
15814
16836
  }
16837
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") {
16838
+ data = trackRequestStream(data);
16839
+ } else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") {
16840
+ throw new AxiosError_default(
16841
+ "Stream request bodies are not supported by the current fetch implementation",
16842
+ AxiosError_default.ERR_NOT_SUPPORT,
16843
+ config,
16844
+ request
16845
+ );
15815
16846
  }
15816
16847
  if (!utils_default.isString(withCredentials)) {
15817
16848
  withCredentials = withCredentials ? "include" : "omit";
@@ -15824,19 +16855,47 @@ var factory = (env) => {
15824
16855
  }
15825
16856
  }
15826
16857
  headers.set("User-Agent", "axios/" + VERSION, false);
15827
- const resolvedOptions = {
15828
- ...fetchOptions,
16858
+ const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
16859
+ if (safeFetchOptions) {
16860
+ delete safeFetchOptions.body;
16861
+ delete safeFetchOptions.headers;
16862
+ delete safeFetchOptions.method;
16863
+ delete safeFetchOptions.signal;
16864
+ delete safeFetchOptions.duplex;
16865
+ delete safeFetchOptions.credentials;
16866
+ }
16867
+ const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
15829
16868
  signal: composedSignal,
15830
16869
  method: method.toUpperCase(),
15831
16870
  headers: toByteStringHeaderObject(headers.normalize()),
15832
16871
  body: data,
15833
16872
  duplex: "half",
15834
16873
  credentials: isCredentialsSupported ? withCredentials : void 0
15835
- };
16874
+ });
16875
+ if (isRequestSupported) {
16876
+ utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
16877
+ if (resolvedOptions[key] === void 0) {
16878
+ resolvedOptions[key] = value;
16879
+ }
16880
+ });
16881
+ if (resolvedOptions.signal === void 0) {
16882
+ resolvedOptions.signal = null;
16883
+ }
16884
+ if (resolvedOptions.body === void 0) {
16885
+ resolvedOptions.body = null;
16886
+ }
16887
+ }
16888
+ if (maxRedirects === 0) {
16889
+ resolvedOptions.redirect = "manual";
16890
+ if (safeFetchOptions) {
16891
+ safeFetchOptions.redirect = "manual";
16892
+ }
16893
+ }
15836
16894
  request = isRequestSupported && new Request(url2, resolvedOptions);
15837
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
16895
+ let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
16896
+ const responseHeaders = AxiosHeaders_default.from(response.headers);
15838
16897
  if (hasMaxContentLength) {
15839
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16898
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15840
16899
  if (declaredLength != null && declaredLength > maxContentLength) {
15841
16900
  throw new AxiosError_default(
15842
16901
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -15852,7 +16911,7 @@ var factory = (env) => {
15852
16911
  ["status", "statusText", "headers"].forEach((prop) => {
15853
16912
  options[prop] = response[prop];
15854
16913
  });
15855
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
16914
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
15856
16915
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
15857
16916
  responseContentLength,
15858
16917
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
@@ -15922,22 +16981,41 @@ var factory = (env) => {
15922
16981
  const canceledError = composedSignal.reason;
15923
16982
  canceledError.config = config;
15924
16983
  request && (canceledError.request = request);
15925
- err !== canceledError && (canceledError.cause = err);
16984
+ if (err !== canceledError) {
16985
+ Object.defineProperty(canceledError, "cause", {
16986
+ __proto__: null,
16987
+ value: err,
16988
+ writable: true,
16989
+ enumerable: false,
16990
+ configurable: true
16991
+ });
16992
+ }
15926
16993
  throw canceledError;
15927
16994
  }
16995
+ if (pendingBodyError) {
16996
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
16997
+ throw pendingBodyError;
16998
+ }
16999
+ if (err instanceof AxiosError_default) {
17000
+ request && !err.request && (err.request = request);
17001
+ throw err;
17002
+ }
15928
17003
  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
- }
17004
+ const networkError = new AxiosError_default(
17005
+ "Network Error",
17006
+ AxiosError_default.ERR_NETWORK,
17007
+ config,
17008
+ request,
17009
+ err && err.response
15940
17010
  );
17011
+ Object.defineProperty(networkError, "cause", {
17012
+ __proto__: null,
17013
+ value: err.cause || err,
17014
+ writable: true,
17015
+ enumerable: false,
17016
+ configurable: true
17017
+ });
17018
+ throw networkError;
15941
17019
  }
15942
17020
  throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
15943
17021
  }
@@ -15959,7 +17037,7 @@ var getFetch = (config) => {
15959
17037
  };
15960
17038
  var adapter = getFetch();
15961
17039
 
15962
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/adapters/adapters.js
17040
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
15963
17041
  var knownAdapters = {
15964
17042
  http: http_default,
15965
17043
  xhr: xhr_default,
@@ -16006,7 +17084,7 @@ function getAdapter(adapters, config) {
16006
17084
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
16007
17085
  throw new AxiosError_default(
16008
17086
  `There is no suitable adapter to dispatch the request ` + s,
16009
- "ERR_NOT_SUPPORT"
17087
+ AxiosError_default.ERR_NOT_SUPPORT
16010
17088
  );
16011
17089
  }
16012
17090
  return adapter2;
@@ -16024,7 +17102,7 @@ var adapters_default = {
16024
17102
  adapters: knownAdapters
16025
17103
  };
16026
17104
 
16027
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/dispatchRequest.js
17105
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16028
17106
  function throwIfCancellationRequested(config) {
16029
17107
  if (config.cancelToken) {
16030
17108
  config.cancelToken.throwIfRequested();
@@ -16033,9 +17111,10 @@ function throwIfCancellationRequested(config) {
16033
17111
  throw new CanceledError_default(null, config);
16034
17112
  }
16035
17113
  }
16036
- function dispatchRequest(config) {
17114
+ function dispatchRequest(_config) {
17115
+ const config = utils_default.toSafeFlatObject(_config);
16037
17116
  throwIfCancellationRequested(config);
16038
- config.headers = AxiosHeaders_default.from(config.headers);
17117
+ config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
16039
17118
  config.data = transformData.call(config, config.transformRequest);
16040
17119
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
16041
17120
  config.headers.setContentType("application/x-www-form-urlencoded", false);
@@ -16075,7 +17154,7 @@ function dispatchRequest(config) {
16075
17154
  );
16076
17155
  }
16077
17156
 
16078
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/validator.js
17157
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16079
17158
  var validators = {};
16080
17159
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16081
17160
  validators[type] = function validator(thing) {
@@ -16113,7 +17192,7 @@ validators.spelling = function spelling(correctSpelling) {
16113
17192
  };
16114
17193
  };
16115
17194
  function assertOptions(options, schema, allowUnknown) {
16116
- if (typeof options !== "object") {
17195
+ if (typeof options !== "object" || options === null) {
16117
17196
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
16118
17197
  }
16119
17198
  const keys = Object.keys(options);
@@ -16142,7 +17221,7 @@ var validator_default = {
16142
17221
  validators
16143
17222
  };
16144
17223
 
16145
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/core/Axios.js
17224
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16146
17225
  var validators2 = validator_default.validators;
16147
17226
  var Axios = class {
16148
17227
  constructor(instanceConfig) {
@@ -16165,16 +17244,15 @@ var Axios = class {
16165
17244
  return await this._request(configOrUrl, config);
16166
17245
  } catch (err) {
16167
17246
  if (err instanceof Error) {
16168
- let dummy = {};
16169
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
16170
- const stack = (() => {
16171
- if (!dummy.stack) {
16172
- return "";
16173
- }
16174
- const firstNewlineIndex = dummy.stack.indexOf("\n");
16175
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
16176
- })();
16177
17247
  try {
17248
+ let dummy = {};
17249
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
17250
+ const dummyStack = dummy.stack;
17251
+ let stack = "";
17252
+ if (typeof dummyStack === "string") {
17253
+ const firstNewlineIndex = dummyStack.indexOf("\n");
17254
+ stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
17255
+ }
16178
17256
  if (!err.stack) {
16179
17257
  err.stack = stack;
16180
17258
  } else if (stack) {
@@ -16207,7 +17285,9 @@ var Axios = class {
16207
17285
  silentJSONParsing: validators2.transitional(validators2.boolean),
16208
17286
  forcedJSONParsing: validators2.transitional(validators2.boolean),
16209
17287
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
16210
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
17288
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
17289
+ advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
17290
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
16211
17291
  },
16212
17292
  false
16213
17293
  );
@@ -16242,9 +17322,9 @@ var Axios = class {
16242
17322
  },
16243
17323
  true
16244
17324
  );
16245
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
17325
+ config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
16246
17326
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
16247
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
17327
+ headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
16248
17328
  delete headers[method];
16249
17329
  });
16250
17330
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
@@ -16287,16 +17367,31 @@ var Axios = class {
16287
17367
  const onFulfilled = requestInterceptorChain[i++];
16288
17368
  const onRejected = requestInterceptorChain[i++];
16289
17369
  try {
16290
- newConfig = onFulfilled(newConfig);
17370
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
16291
17371
  } catch (error) {
16292
- onRejected.call(this, error);
17372
+ if (!onRejected) {
17373
+ promise = Promise.reject(error);
17374
+ break;
17375
+ }
17376
+ try {
17377
+ const rejectedResult = onRejected.call(this, error);
17378
+ if (utils_default.isThenable(rejectedResult)) {
17379
+ promise = Promise.resolve(rejectedResult).then(
17380
+ () => dispatchRequest.call(this, newConfig)
17381
+ );
17382
+ }
17383
+ } catch (rejectedError) {
17384
+ promise = Promise.reject(rejectedError);
17385
+ }
16293
17386
  break;
16294
17387
  }
16295
17388
  }
16296
- try {
16297
- promise = dispatchRequest.call(this, newConfig);
16298
- } catch (error) {
16299
- return Promise.reject(error);
17389
+ if (!promise) {
17390
+ try {
17391
+ promise = dispatchRequest.call(this, newConfig);
17392
+ } catch (error) {
17393
+ promise = Promise.reject(error);
17394
+ }
16300
17395
  }
16301
17396
  i = 0;
16302
17397
  len = responseInterceptorChain.length;
@@ -16307,7 +17402,7 @@ var Axios = class {
16307
17402
  }
16308
17403
  getUri(config) {
16309
17404
  config = mergeConfig(this.defaults, config);
16310
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
17405
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
16311
17406
  return buildURL(fullPath, config.params, config.paramsSerializer);
16312
17407
  }
16313
17408
  };
@@ -16317,7 +17412,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
16317
17412
  mergeConfig(config || {}, {
16318
17413
  method,
16319
17414
  url: url2,
16320
- data: (config || {}).data
17415
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
16321
17416
  })
16322
17417
  );
16323
17418
  };
@@ -16344,7 +17439,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
16344
17439
  });
16345
17440
  var Axios_default = Axios;
16346
17441
 
16347
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/cancel/CancelToken.js
17442
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
16348
17443
  var CancelToken = class _CancelToken {
16349
17444
  constructor(executor) {
16350
17445
  if (typeof executor !== "function") {
@@ -16442,19 +17537,19 @@ var CancelToken = class _CancelToken {
16442
17537
  };
16443
17538
  var CancelToken_default = CancelToken;
16444
17539
 
16445
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/spread.js
17540
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
16446
17541
  function spread(callback) {
16447
17542
  return function wrap(arr) {
16448
17543
  return callback.apply(null, arr);
16449
17544
  };
16450
17545
  }
16451
17546
 
16452
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/isAxiosError.js
17547
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
16453
17548
  function isAxiosError(payload) {
16454
17549
  return utils_default.isObject(payload) && payload.isAxiosError === true;
16455
17550
  }
16456
17551
 
16457
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/helpers/HttpStatusCode.js
17552
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
16458
17553
  var HttpStatusCode = {
16459
17554
  Continue: 100,
16460
17555
  SwitchingProtocols: 101,
@@ -16492,14 +17587,22 @@ var HttpStatusCode = {
16492
17587
  Gone: 410,
16493
17588
  LengthRequired: 411,
16494
17589
  PreconditionFailed: 412,
17590
+ /**
17591
+ * @deprecated Use `ContentTooLarge` instead.
17592
+ */
16495
17593
  PayloadTooLarge: 413,
17594
+ ContentTooLarge: 413,
16496
17595
  UriTooLong: 414,
16497
17596
  UnsupportedMediaType: 415,
16498
17597
  RangeNotSatisfiable: 416,
16499
17598
  ExpectationFailed: 417,
16500
17599
  ImATeapot: 418,
16501
17600
  MisdirectedRequest: 421,
17601
+ /**
17602
+ * @deprecated Use `UnprocessableContent` instead.
17603
+ */
16502
17604
  UnprocessableEntity: 422,
17605
+ UnprocessableContent: 422,
16503
17606
  Locked: 423,
16504
17607
  FailedDependency: 424,
16505
17608
  TooEarly: 425,
@@ -16519,6 +17622,7 @@ var HttpStatusCode = {
16519
17622
  LoopDetected: 508,
16520
17623
  NotExtended: 510,
16521
17624
  NetworkAuthenticationRequired: 511,
17625
+ WebServerReturnsAnUnknownError: 520,
16522
17626
  WebServerIsDown: 521,
16523
17627
  ConnectionTimedOut: 522,
16524
17628
  OriginIsUnreachable: 523,
@@ -16527,11 +17631,13 @@ var HttpStatusCode = {
16527
17631
  InvalidSslCertificate: 526
16528
17632
  };
16529
17633
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
16530
- HttpStatusCode[value] = key;
17634
+ if (HttpStatusCode[value] === void 0) {
17635
+ HttpStatusCode[value] = key;
17636
+ }
16531
17637
  });
16532
17638
  var HttpStatusCode_default = HttpStatusCode;
16533
17639
 
16534
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/lib/axios.js
17640
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
16535
17641
  function createInstance(defaultConfig) {
16536
17642
  const context = new Axios_default(defaultConfig);
16537
17643
  const instance = bind(Axios_default.prototype.request, context);
@@ -16564,7 +17670,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
16564
17670
  axios.default = axios;
16565
17671
  var axios_default = axios;
16566
17672
 
16567
- // ../../node_modules/.pnpm/axios@1.16.1_debug@4.4.3/node_modules/axios/index.js
17673
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
16568
17674
  var {
16569
17675
  Axios: Axios2,
16570
17676
  AxiosError: AxiosError2,
@@ -16585,18 +17691,18 @@ var {
16585
17691
  create
16586
17692
  } = axios_default;
16587
17693
 
16588
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
17694
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16589
17695
  var import_debug2 = __toESM(require_src(), 1);
16590
17696
  import { EventEmitter as EventEmitter3 } from "events";
16591
17697
 
16592
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
17698
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16593
17699
  var import_debug = __toESM(require_src(), 1);
16594
17700
  import { EventEmitter as EventEmitter2 } from "events";
16595
17701
  import fs from "fs";
16596
17702
  import net from "net";
16597
17703
  import tls from "tls";
16598
17704
 
16599
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/HeaderHostTransformer.js
17705
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/HeaderHostTransformer.js
16600
17706
  import { Transform } from "stream";
16601
17707
  var HeaderHostTransformer = class extends Transform {
16602
17708
  host;
@@ -16614,7 +17720,7 @@ var HeaderHostTransformer = class extends Transform {
16614
17720
  }
16615
17721
  };
16616
17722
 
16617
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/TunnelCluster.js
17723
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/TunnelCluster.js
16618
17724
  var log = (0, import_debug.default)("pipenet:client");
16619
17725
  var TunnelCluster = class extends EventEmitter2 {
16620
17726
  opts;
@@ -16714,7 +17820,7 @@ var TunnelCluster = class extends EventEmitter2 {
16714
17820
  }
16715
17821
  };
16716
17822
 
16717
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/Tunnel.js
17823
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/Tunnel.js
16718
17824
  var log2 = (0, import_debug2.default)("pipenet:client");
16719
17825
  var Tunnel = class extends EventEmitter3 {
16720
17826
  cachedUrl;
@@ -16862,7 +17968,7 @@ var Tunnel = class extends EventEmitter3 {
16862
17968
  }
16863
17969
  };
16864
17970
 
16865
- // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=09c4ab8ce9e1d77e9c735905927fa4bc2790e673c18d6cf3a62fd19ba4d9b576/node_modules/pipenet/dist/pipenet.js
17971
+ // ../../node_modules/.pnpm/pipenet@1.4.2_patch_hash=1f981b2d51def052d8bcaf5198a95e014a999e3adb5c5fc5dcf3d287cd19bf78_supports-color@8.1.1/node_modules/pipenet/dist/pipenet.js
16866
17972
  function pipenet(arg1, arg2, arg3) {
16867
17973
  const options = typeof arg1 === "object" ? arg1 : { ...arg2, port: arg1 };
16868
17974
  const callback = typeof arg1 === "object" ? arg2 : arg3;