@alpic-ai/sdk 1.186.2 → 1.186.4

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.
@@ -9132,9 +9132,9 @@ var require_asynckit = __commonJS({
9132
9132
  }
9133
9133
  });
9134
9134
 
9135
- // ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
9135
+ // ../../node_modules/.pnpm/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js
9136
9136
  var require_es_object_atoms = __commonJS({
9137
- "../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
9137
+ "../../node_modules/.pnpm/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js"(exports, module) {
9138
9138
  "use strict";
9139
9139
  module.exports = Object;
9140
9140
  }
@@ -12072,14 +12072,14 @@ var require_follow_redirects = __commonJS({
12072
12072
  }
12073
12073
  });
12074
12074
 
12075
- // ../../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
12075
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12076
12076
  function bind(fn, thisArg) {
12077
12077
  return function wrap() {
12078
12078
  return fn.apply(thisArg, arguments);
12079
12079
  };
12080
12080
  }
12081
12081
 
12082
- // ../../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
12082
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12083
12083
  var { toString } = Object.prototype;
12084
12084
  var { getPrototypeOf } = Object;
12085
12085
  var { iterator, toStringTag } = Symbol;
@@ -12194,10 +12194,16 @@ var isPlainObject = (val) => {
12194
12194
  return false;
12195
12195
  }
12196
12196
  const prototype2 = getPrototypeOf(val);
12197
- return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
12198
- // evidence the value is tagged/iterable, while ignoring members reachable
12199
- // only through shared or terminal prototype boundaries.
12200
- !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
12197
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat own Symbol.toStringTag or Symbol.iterator members as evidence the
12198
+ // value is tagged/iterable, ignoring members reachable only through shared
12199
+ // or terminal prototype boundaries. This is exactly what
12200
+ // hasOwnInPrototypeChain(val, prop) computes here: every prototype admitted
12201
+ // above (null, Object.prototype, or a terminal null-prototype template) is
12202
+ // a boundary, so the walk never inspects anything but `val`'s own members,
12203
+ // and stops before even those when `val` is itself the boundary
12204
+ // Object.prototype. Checking that inline avoids allocating the walker's
12205
+ // `seen` list twice per call on the mergeConfig / merge hot path.
12206
+ (isPrototypeBoundary(val, prototype2, true) || !hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator));
12201
12207
  };
12202
12208
  var isEmptyObject = (val) => {
12203
12209
  if (!isObject(val) || isBuffer(val)) {
@@ -12298,11 +12304,21 @@ var isContextDefined = (context) => !isUndefined(context) && context !== _global
12298
12304
  function merge(...objs) {
12299
12305
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
12300
12306
  const result = {};
12307
+ const lowerCaseKeys = caseless ? /* @__PURE__ */ Object.create(null) : null;
12301
12308
  const assignValue = (val, key) => {
12302
12309
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
12303
12310
  return;
12304
12311
  }
12305
- const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
12312
+ let targetKey = key;
12313
+ if (lowerCaseKeys && typeof key === "string") {
12314
+ const lowerKey = key.toLowerCase();
12315
+ const knownKey = lowerCaseKeys[lowerKey];
12316
+ if (knownKey !== void 0 && hasOwnProperty(result, knownKey)) {
12317
+ targetKey = knownKey;
12318
+ } else {
12319
+ lowerCaseKeys[lowerKey] = key;
12320
+ }
12321
+ }
12306
12322
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
12307
12323
  if (isPlainObject(existing) && isPlainObject(val)) {
12308
12324
  result[targetKey] = merge(existing, val);
@@ -12320,7 +12336,7 @@ function merge(...objs) {
12320
12336
  continue;
12321
12337
  }
12322
12338
  forEach(source, assignValue);
12323
- if (typeof source !== "object" || isArray(source)) {
12339
+ if (typeof source !== "object" || isArray(source) || !Object.getOwnPropertySymbols) {
12324
12340
  continue;
12325
12341
  }
12326
12342
  const symbols = Object.getOwnPropertySymbols(source);
@@ -12416,7 +12432,24 @@ var toArray = (thing) => {
12416
12432
  if (!thing) return null;
12417
12433
  if (isArray(thing)) return thing;
12418
12434
  let i = thing.length;
12419
- if (!isNumber(i)) return null;
12435
+ if (!Number.isSafeInteger(i) || i < 0 || i > 4294967295) return null;
12436
+ const indexes = /* @__PURE__ */ new Set();
12437
+ const seen = /* @__PURE__ */ new Set();
12438
+ let source = thing;
12439
+ while (source != null && indexes.size < i) {
12440
+ if (seen.has(source)) return null;
12441
+ seen.add(source);
12442
+ const prototype2 = getPrototypeOf(source);
12443
+ if (isPrototypeBoundary(source, prototype2, source === thing)) break;
12444
+ Object.getOwnPropertyNames(source).forEach((key) => {
12445
+ const index = +key;
12446
+ if (Number.isInteger(index) && index >= 0 && index < i && String(index) === key && hasOwnProperty(source, key)) {
12447
+ indexes.add(index);
12448
+ }
12449
+ });
12450
+ source = prototype2;
12451
+ }
12452
+ if (indexes.size !== i) return null;
12420
12453
  const arr = new Array(i);
12421
12454
  while (i-- > 0) {
12422
12455
  arr[i] = thing[i];
@@ -12627,7 +12660,7 @@ var utils_default = {
12627
12660
  isSafeIterable
12628
12661
  };
12629
12662
 
12630
- // ../../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
12663
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12631
12664
  var ignoreDuplicateOf = utils_default.toObjectSet([
12632
12665
  "age",
12633
12666
  "authorization",
@@ -12648,7 +12681,7 @@ var ignoreDuplicateOf = utils_default.toObjectSet([
12648
12681
  "user-agent"
12649
12682
  ]);
12650
12683
  var parseHeaders_default = (rawHeaders) => {
12651
- const parsed = {};
12684
+ const parsed = /* @__PURE__ */ Object.create(null);
12652
12685
  let key;
12653
12686
  let val;
12654
12687
  let i;
@@ -12673,7 +12706,7 @@ var parseHeaders_default = (rawHeaders) => {
12673
12706
  return parsed;
12674
12707
  };
12675
12708
 
12676
- // ../../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
12709
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12677
12710
  function trimSPorHTAB(str) {
12678
12711
  let start = 0;
12679
12712
  let end = str.length;
@@ -12711,7 +12744,7 @@ function toByteStringHeaderObject(headers) {
12711
12744
  return byteStringHeaders;
12712
12745
  }
12713
12746
 
12714
- // ../../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
12747
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12715
12748
  var $internals = /* @__PURE__ */ Symbol("internals");
12716
12749
  function normalizeHeader(header) {
12717
12750
  return header && String(header).trim().toLowerCase();
@@ -12816,9 +12849,11 @@ function parseParameters(value) {
12816
12849
  return parameters;
12817
12850
  }
12818
12851
  var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
12852
+ var PROTO_HEADER_SLOT = "__Proto__";
12853
+ var headerSlot = (name) => name === "__proto__" ? PROTO_HEADER_SLOT : name;
12819
12854
  function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
12820
12855
  if (utils_default.isFunction(filter2)) {
12821
- return filter2.call(this, value, header);
12856
+ return filter2.call(context, value, header);
12822
12857
  }
12823
12858
  if (isHeaderNameFilter) {
12824
12859
  value = header;
@@ -12863,7 +12898,7 @@ var AxiosHeaders = class {
12863
12898
  }
12864
12899
  const key = utils_default.findKey(self2, lHeader);
12865
12900
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
12866
- self2[key || _header] = normalizeValue(_value);
12901
+ self2[headerSlot(key || _header)] = normalizeValue(_value);
12867
12902
  }
12868
12903
  }
12869
12904
  const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
@@ -12956,7 +12991,7 @@ var AxiosHeaders = class {
12956
12991
  }
12957
12992
  normalize(format) {
12958
12993
  const self2 = this;
12959
- const headers = {};
12994
+ const headers = /* @__PURE__ */ Object.create(null);
12960
12995
  utils_default.forEach(this, (value, header) => {
12961
12996
  const key = utils_default.findKey(headers, header);
12962
12997
  if (key) {
@@ -12964,7 +12999,7 @@ var AxiosHeaders = class {
12964
12999
  delete self2[header];
12965
13000
  return;
12966
13001
  }
12967
- const normalized = format ? formatHeader(header) : String(header).trim();
13002
+ const normalized = headerSlot(format ? formatHeader(header) : String(header).trim());
12968
13003
  if (normalized !== header) {
12969
13004
  delete self2[header];
12970
13005
  }
@@ -13044,7 +13079,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
13044
13079
  utils_default.freezeMethods(AxiosHeaders);
13045
13080
  var AxiosHeaders_default = AxiosHeaders;
13046
13081
 
13047
- // ../../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
13082
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
13048
13083
  var REDACTED = "[REDACTED ****]";
13049
13084
  function hasOwnOrPrototypeToJSON(source) {
13050
13085
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -13114,6 +13149,28 @@ function aggregateErrorMessage(error) {
13114
13149
  }).filter(Boolean).join("; ");
13115
13150
  return message || error.name || "AggregateError";
13116
13151
  }
13152
+ var CAUSED_BY_SEPARATOR = "\nCaused by: ";
13153
+ var $causeStack = /* @__PURE__ */ Symbol("causeStack");
13154
+ function getCauseStackIndex(error, stack) {
13155
+ const causeStack = utils_default.hasOwnProp(error, $causeStack) && error[$causeStack];
13156
+ return causeStack && stack.endsWith(causeStack) ? stack.length - causeStack.length : -1;
13157
+ }
13158
+ function appendCauseStack(target, source) {
13159
+ try {
13160
+ const sourceStack = source && source.stack;
13161
+ if (typeof sourceStack !== "string" || !sourceStack) {
13162
+ return;
13163
+ }
13164
+ const targetStack = target.stack;
13165
+ if (typeof targetStack !== "string" || !targetStack) {
13166
+ return;
13167
+ }
13168
+ const causeStack = CAUSED_BY_SEPARATOR + sourceStack;
13169
+ target.stack = targetStack + causeStack;
13170
+ Object.defineProperty(target, $causeStack, { __proto__: null, value: causeStack });
13171
+ } catch (e) {
13172
+ }
13173
+ }
13117
13174
  var AxiosError = class _AxiosError extends Error {
13118
13175
  static from(error, code, config, request, response, customProps) {
13119
13176
  let message = error.message;
@@ -13129,6 +13186,7 @@ var AxiosError = class _AxiosError extends Error {
13129
13186
  configurable: true
13130
13187
  });
13131
13188
  axiosError.name = error.name;
13189
+ appendCauseStack(axiosError, error);
13132
13190
  if (error.status != null && axiosError.status == null) {
13133
13191
  axiosError.status = error.status;
13134
13192
  }
@@ -13206,11 +13264,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
13206
13264
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
13207
13265
  var AxiosError_default = AxiosError;
13208
13266
 
13209
- // ../../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
13267
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
13210
13268
  var import_form_data = __toESM(require_form_data(), 1);
13211
13269
  var FormData_default = import_form_data.default;
13212
13270
 
13213
- // ../../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
13271
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13214
13272
  var Buffer_default = {
13215
13273
  isBufferAvailable() {
13216
13274
  return typeof Buffer !== "undefined";
@@ -13220,7 +13278,7 @@ var Buffer_default = {
13220
13278
  }
13221
13279
  };
13222
13280
 
13223
- // ../../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
13281
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13224
13282
  var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
13225
13283
  function isVisitable(thing) {
13226
13284
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
@@ -13367,7 +13425,7 @@ function toFormData(obj, formData, options) {
13367
13425
  }
13368
13426
  var toFormData_default = toFormData;
13369
13427
 
13370
- // ../../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
13428
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13371
13429
  function encode(str) {
13372
13430
  const charMap = {
13373
13431
  "!": "%21",
@@ -13397,7 +13455,7 @@ prototype.toString = function toString2(encoder) {
13397
13455
  };
13398
13456
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13399
13457
 
13400
- // ../../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
13458
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13401
13459
  function encode2(val) {
13402
13460
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13403
13461
  }
@@ -13427,7 +13485,7 @@ function buildURL(url2, params, options) {
13427
13485
  return url2;
13428
13486
  }
13429
13487
 
13430
- // ../../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
13488
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13431
13489
  var $internals2 = /* @__PURE__ */ Symbol("internals");
13432
13490
  function countHandlers(handlers) {
13433
13491
  return handlers ? handlers.length : 0;
@@ -13440,6 +13498,12 @@ function trimHandlers(handlers) {
13440
13498
  handlers.pop();
13441
13499
  }
13442
13500
  }
13501
+ function normalizeHandlerId(id) {
13502
+ if (typeof id === "string" && id !== "" && String(Number(id)) === id) {
13503
+ return Number(id);
13504
+ }
13505
+ return id;
13506
+ }
13443
13507
  function syncHandlerEntries(manager, internals) {
13444
13508
  const handlers = manager.handlers;
13445
13509
  const length = countHandlers(handlers);
@@ -13510,9 +13574,10 @@ var InterceptorManager = class {
13510
13574
  eject(id) {
13511
13575
  const internals = this[$internals2];
13512
13576
  syncHandlerEntries(this, internals);
13513
- const entry = internals.handlerEntries.get(id);
13577
+ const handlerId = normalizeHandlerId(id);
13578
+ const entry = internals.handlerEntries.get(handlerId);
13514
13579
  if (entry) {
13515
- internals.handlerEntries.delete(id);
13580
+ internals.handlerEntries.delete(handlerId);
13516
13581
  if (this.handlers[entry.index] !== entry.handler) {
13517
13582
  return;
13518
13583
  }
@@ -13565,24 +13630,25 @@ var InterceptorManager = class {
13565
13630
  };
13566
13631
  var InterceptorManager_default = InterceptorManager;
13567
13632
 
13568
- // ../../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
13633
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13569
13634
  var transitional_default = {
13570
13635
  silentJSONParsing: true,
13571
13636
  forcedJSONParsing: true,
13572
13637
  clarifyTimeoutError: false,
13573
13638
  legacyInterceptorReqResOrdering: true,
13574
13639
  advertiseZstdAcceptEncoding: false,
13575
- validateStatusUndefinedResolves: true
13640
+ validateStatusUndefinedResolves: true,
13641
+ encodeBasicAuthUsername: false
13576
13642
  };
13577
13643
 
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/index.js
13644
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13579
13645
  import crypto from "crypto";
13580
13646
 
13581
- // ../../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
13647
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13582
13648
  import url from "url";
13583
13649
  var URLSearchParams_default = url.URLSearchParams;
13584
13650
 
13585
- // ../../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
13651
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13586
13652
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13587
13653
  var DIGIT = "0123456789";
13588
13654
  var ALPHABET = {
@@ -13612,7 +13678,7 @@ var node_default = {
13612
13678
  protocols: ["http", "https", "file", "data"]
13613
13679
  };
13614
13680
 
13615
- // ../../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
13681
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13616
13682
  var utils_exports = {};
13617
13683
  __export(utils_exports, {
13618
13684
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13630,13 +13696,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13630
13696
  })();
13631
13697
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13632
13698
 
13633
- // ../../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
13699
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13634
13700
  var platform_default = {
13635
13701
  ...utils_exports,
13636
13702
  ...node_default
13637
13703
  };
13638
13704
 
13639
- // ../../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
13705
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13640
13706
  function toURLEncodedForm(data, options) {
13641
13707
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13642
13708
  visitor: function(value, key, path, helpers) {
@@ -13650,7 +13716,7 @@ function toURLEncodedForm(data, options) {
13650
13716
  });
13651
13717
  }
13652
13718
 
13653
- // ../../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
13719
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13654
13720
  var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13655
13721
  function throwIfDepthExceeded(index) {
13656
13722
  if (index > MAX_DEPTH) {
@@ -13682,6 +13748,24 @@ function arrayToObject(arr) {
13682
13748
  }
13683
13749
  return obj;
13684
13750
  }
13751
+ function normalizeArray(value) {
13752
+ if (!utils_default.isArray(value)) return value;
13753
+ const keys = Object.keys(value);
13754
+ return keys.length !== value.length || keys.some((key, index) => key !== String(index)) ? arrayToObject(value) : value;
13755
+ }
13756
+ function normalizeArrays(obj) {
13757
+ const pending = [obj];
13758
+ while (pending.length) {
13759
+ const target = pending.pop();
13760
+ Object.keys(target).forEach((key) => {
13761
+ const value = target[key] = normalizeArray(target[key]);
13762
+ if (utils_default.isArray(value) || utils_default.isPlainObject(value)) {
13763
+ pending.push(value);
13764
+ }
13765
+ });
13766
+ }
13767
+ return obj;
13768
+ }
13685
13769
  function formDataToJSON(formData) {
13686
13770
  function buildPath(path, value, target, index) {
13687
13771
  throwIfDepthExceeded(index);
@@ -13692,6 +13776,7 @@ function formDataToJSON(formData) {
13692
13776
  name = !name && utils_default.isArray(target) ? target.length : name;
13693
13777
  if (isLast) {
13694
13778
  if (utils_default.hasOwnProp(target, name)) {
13779
+ target[name] = normalizeArray(target[name]);
13695
13780
  target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
13696
13781
  } else {
13697
13782
  target[name] = value;
@@ -13712,13 +13797,13 @@ function formDataToJSON(formData) {
13712
13797
  utils_default.forEachEntry(formData, (name, value) => {
13713
13798
  buildPath(parsePropPath(name), value, obj, 0);
13714
13799
  });
13715
- return obj;
13800
+ return normalizeArrays(obj);
13716
13801
  }
13717
13802
  return null;
13718
13803
  }
13719
13804
  var formDataToJSON_default = formDataToJSON;
13720
13805
 
13721
- // ../../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
13806
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
13722
13807
  var methodList = Object.freeze([
13723
13808
  "get",
13724
13809
  "delete",
@@ -13734,7 +13819,7 @@ var methodList = Object.freeze([
13734
13819
  ]);
13735
13820
  var methodList_default = methodList;
13736
13821
 
13737
- // ../../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
13822
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13738
13823
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13739
13824
  function stringifySafely2(rawValue, parser, encoder) {
13740
13825
  if (utils_default.isString(rawValue)) {
@@ -13851,7 +13936,7 @@ utils_default.forEach(methodList_default, (method) => {
13851
13936
  });
13852
13937
  var defaults_default = defaults;
13853
13938
 
13854
- // ../../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
13939
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13855
13940
  function transformData(fns, response) {
13856
13941
  const config = this || defaults_default;
13857
13942
  const context = response || config;
@@ -13864,12 +13949,12 @@ function transformData(fns, response) {
13864
13949
  return data;
13865
13950
  }
13866
13951
 
13867
- // ../../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
13952
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13868
13953
  function isCancel(value) {
13869
13954
  return !!(value && value.__CANCEL__);
13870
13955
  }
13871
13956
 
13872
- // ../../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
13957
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13873
13958
  var CanceledError = class extends AxiosError_default {
13874
13959
  /**
13875
13960
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13888,7 +13973,7 @@ var CanceledError = class extends AxiosError_default {
13888
13973
  };
13889
13974
  var CanceledError_default = CanceledError;
13890
13975
 
13891
- // ../../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
13976
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13892
13977
  function settle(resolve, reject, response) {
13893
13978
  const validateStatus2 = response.config.validateStatus;
13894
13979
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13904,7 +13989,7 @@ function settle(resolve, reject, response) {
13904
13989
  }
13905
13990
  }
13906
13991
 
13907
- // ../../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
13992
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13908
13993
  function isAbsoluteURL(url2) {
13909
13994
  if (typeof url2 !== "string") {
13910
13995
  return false;
@@ -13912,7 +13997,7 @@ function isAbsoluteURL(url2) {
13912
13997
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13913
13998
  }
13914
13999
 
13915
- // ../../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
14000
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13916
14001
  function combineURLs(baseURL, relativeURL) {
13917
14002
  if (!relativeURL) {
13918
14003
  return baseURL;
@@ -13924,7 +14009,7 @@ function combineURLs(baseURL, relativeURL) {
13924
14009
  return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13925
14010
  }
13926
14011
 
13927
- // ../../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
14012
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
13928
14013
  var urlParserControlCharacters = /[\t\n\r]/g;
13929
14014
  function normalizeURLForProtocolCheck(url2) {
13930
14015
  if (typeof url2 !== "string") {
@@ -13937,7 +14022,7 @@ function normalizeURLForProtocolCheck(url2) {
13937
14022
  return url2.slice(start).replace(urlParserControlCharacters, "");
13938
14023
  }
13939
14024
 
13940
- // ../../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
14025
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13941
14026
  var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13942
14027
  function redactFragment(fragment) {
13943
14028
  if (!fragment) {
@@ -14049,7 +14134,7 @@ function getEnv(key) {
14049
14134
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
14050
14135
  }
14051
14136
 
14052
- // ../../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
14137
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14053
14138
  var import_https_proxy_agent = __toESM(require_dist(), 1);
14054
14139
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
14055
14140
  import http from "http";
@@ -14059,17 +14144,17 @@ import util3 from "util";
14059
14144
  import { resolve as resolvePath } from "path";
14060
14145
  import zlib from "zlib";
14061
14146
 
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/env/data.js
14063
- var VERSION = "1.20.0";
14147
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
14148
+ var VERSION = "1.21.0";
14064
14149
 
14065
- // ../../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
14150
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
14066
14151
  function parseProtocol(url2) {
14067
14152
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
14068
- return match && match[1] || "";
14153
+ return match && match[1].toLowerCase() || "";
14069
14154
  }
14070
14155
 
14071
- // ../../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
14072
- var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
14156
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
14157
+ var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/i;
14073
14158
  function fromDataURI(uri, asBlob, options) {
14074
14159
  const _Blob = options && options.Blob || platform_default.classes.Blob;
14075
14160
  const protocol = parseProtocol(uri);
@@ -14092,7 +14177,10 @@ function fromDataURI(uri, asBlob, options) {
14092
14177
  } else if (params) {
14093
14178
  mime = "text/plain" + params;
14094
14179
  }
14095
- const buffer = encoding === "base64" ? Buffer.from(body, "base64") : Buffer.from(decodeURIComponent(body), encoding);
14180
+ const buffer = encoding === "base64" ? Buffer.from(
14181
+ body.replace(/%([\da-f]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16))),
14182
+ "base64"
14183
+ ) : Buffer.from(decodeURIComponent(body), encoding);
14096
14184
  if (asBlob) {
14097
14185
  if (!_Blob) {
14098
14186
  throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
@@ -14104,10 +14192,10 @@ function fromDataURI(uri, asBlob, options) {
14104
14192
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
14105
14193
  }
14106
14194
 
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/adapters/http.js
14195
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14108
14196
  import stream3 from "stream";
14109
14197
 
14110
- // ../../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
14198
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
14111
14199
  var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
14112
14200
  function setFormDataHeaders(headers, formHeaders, policy) {
14113
14201
  if (policy !== "content-only") {
@@ -14121,7 +14209,7 @@ function setFormDataHeaders(headers, formHeaders, policy) {
14121
14209
  });
14122
14210
  }
14123
14211
 
14124
- // ../../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
14212
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
14125
14213
  import stream from "stream";
14126
14214
  var kInternals = /* @__PURE__ */ Symbol("internals");
14127
14215
  var AxiosTransformStream = class extends stream.Transform {
@@ -14178,7 +14266,10 @@ var AxiosTransformStream = class extends stream.Transform {
14178
14266
  const timeWindow = internals.timeWindow;
14179
14267
  const divider = 1e3 / timeWindow;
14180
14268
  const bytesThreshold = maxRate / divider;
14181
- const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
14269
+ let minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
14270
+ if (maxRate) {
14271
+ minChunkSize = Math.min(bytesThreshold, minChunkSize);
14272
+ }
14182
14273
  const pushChunk = (_chunk, _callback) => {
14183
14274
  const bytes = Buffer.byteLength(_chunk);
14184
14275
  internals.bytesSeen += bytes;
@@ -14194,6 +14285,9 @@ var AxiosTransformStream = class extends stream.Transform {
14194
14285
  }
14195
14286
  };
14196
14287
  const transformChunk = (_chunk, _callback) => {
14288
+ if (this.destroyed) {
14289
+ return _callback();
14290
+ }
14197
14291
  const chunkSize = Buffer.byteLength(_chunk);
14198
14292
  let chunkRemainder = null;
14199
14293
  let maxChunkSize = readableHighWaterMark;
@@ -14216,7 +14310,7 @@ var AxiosTransformStream = class extends stream.Transform {
14216
14310
  }, timeWindow - passed);
14217
14311
  }
14218
14312
  if (bytesLeft < maxChunkSize) {
14219
- maxChunkSize = bytesLeft;
14313
+ maxChunkSize = Math.max(1, Math.floor(bytesLeft));
14220
14314
  }
14221
14315
  }
14222
14316
  if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
@@ -14244,14 +14338,14 @@ var AxiosTransformStream = class extends stream.Transform {
14244
14338
  };
14245
14339
  var AxiosTransformStream_default = AxiosTransformStream;
14246
14340
 
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/adapters/http.js
14341
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14248
14342
  import { EventEmitter } from "events";
14249
14343
 
14250
- // ../../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
14344
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14251
14345
  import util from "util";
14252
14346
  import { Readable } from "stream";
14253
14347
 
14254
- // ../../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
14348
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
14255
14349
  var { asyncIterator } = Symbol;
14256
14350
  var readBlob = async function* (blob) {
14257
14351
  if (blob.stream) {
@@ -14266,7 +14360,7 @@ var readBlob = async function* (blob) {
14266
14360
  };
14267
14361
  var readBlob_default = readBlob;
14268
14362
 
14269
- // ../../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
14363
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14270
14364
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
14271
14365
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
14272
14366
  var CRLF = "\r\n";
@@ -14274,9 +14368,9 @@ var CRLF_BYTES = textEncoder.encode(CRLF);
14274
14368
  var CRLF_BYTES_COUNT = 2;
14275
14369
  var FormDataPart = class {
14276
14370
  constructor(name, value) {
14277
- const { escapeName } = this.constructor;
14371
+ const { escapeName: escapeName2 } = this.constructor;
14278
14372
  const isStringValue = utils_default.isString(value);
14279
- let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ""}${CRLF}`;
14373
+ let headers = `Content-Disposition: form-data; name="${escapeName2(name)}"${!isStringValue && value.name ? `; filename="${escapeName2(value.name)}"` : ""}${CRLF}`;
14280
14374
  if (isStringValue) {
14281
14375
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
14282
14376
  } else {
@@ -14351,7 +14445,7 @@ var formDataToStream = (form, headersHandler, options) => {
14351
14445
  };
14352
14446
  var formDataToStream_default = formDataToStream;
14353
14447
 
14354
- // ../../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
14448
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14355
14449
  import stream2 from "stream";
14356
14450
  var ZlibHeaderTransformStream = class extends stream2.Transform {
14357
14451
  __transform(chunk, encoding, callback) {
@@ -14373,7 +14467,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
14373
14467
  };
14374
14468
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
14375
14469
 
14376
- // ../../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
14470
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14377
14471
  import http2 from "http2";
14378
14472
  import util2 from "util";
14379
14473
  var Http2Sessions = class {
@@ -14437,7 +14531,7 @@ var Http2Sessions = class {
14437
14531
  timer = null;
14438
14532
  }
14439
14533
  stream4.once("close", () => {
14440
- if (!--streamsCount) {
14534
+ if (!--streamsCount && !removed) {
14441
14535
  timer = setTimeout(() => {
14442
14536
  timer = null;
14443
14537
  removeSession();
@@ -14449,6 +14543,7 @@ var Http2Sessions = class {
14449
14543
  }
14450
14544
  session.once("close", removeSession);
14451
14545
  session.once("error", removeSession);
14546
+ session.once("goaway", removeSession);
14452
14547
  let entry = [session, options];
14453
14548
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14454
14549
  return session;
@@ -14456,7 +14551,7 @@ var Http2Sessions = class {
14456
14551
  };
14457
14552
  var Http2Sessions_default = Http2Sessions;
14458
14553
 
14459
- // ../../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
14554
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14460
14555
  var callbackify = (fn, reducer) => {
14461
14556
  return utils_default.isAsyncFn(fn) ? function(...args) {
14462
14557
  const cb = args.pop();
@@ -14471,7 +14566,8 @@ var callbackify = (fn, reducer) => {
14471
14566
  };
14472
14567
  var callbackify_default = callbackify;
14473
14568
 
14474
- // ../../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
14569
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14570
+ import { domainToASCII } from "url";
14475
14571
  var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
14476
14572
  var trimTrailingDots = (value) => {
14477
14573
  let end = value.length;
@@ -14665,7 +14761,20 @@ var normalizeNoProxyHost = (hostname) => {
14665
14761
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14666
14762
  hostname = hostname.slice(1, -1);
14667
14763
  }
14668
- const trimmed = trimTrailingDots(hostname);
14764
+ let trimmed = trimTrailingDots(hostname);
14765
+ if (trimmed.indexOf(":") !== -1) {
14766
+ try {
14767
+ trimmed = new URL("http://[" + trimmed + "]/").hostname.slice(1, -1);
14768
+ } catch (_err) {
14769
+ return trimmed;
14770
+ }
14771
+ } else if (/[\u0080-\uffff]/.test(trimmed)) {
14772
+ const prefix = /^[*.]+/.exec(trimmed);
14773
+ const start = prefix ? prefix[0] : "";
14774
+ const ascii = domainToASCII(trimmed.slice(start.length));
14775
+ if (!ascii) return "";
14776
+ trimmed = start + trimTrailingDots(ascii);
14777
+ }
14669
14778
  const ipv4 = normalizeIPAddress(trimmed);
14670
14779
  if (ipv4 !== trimmed) {
14671
14780
  return ipv4;
@@ -14795,7 +14904,7 @@ function shouldBypassProxy(location) {
14795
14904
  });
14796
14905
  }
14797
14906
 
14798
- // ../../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
14907
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14799
14908
  function speedometer(samplesCount, min) {
14800
14909
  samplesCount = samplesCount || 10;
14801
14910
  const bytes = new Array(samplesCount);
@@ -14831,7 +14940,7 @@ function speedometer(samplesCount, min) {
14831
14940
  }
14832
14941
  var speedometer_default = speedometer;
14833
14942
 
14834
- // ../../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
14943
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14835
14944
  function throttle(fn, freq) {
14836
14945
  let timestamp = 0;
14837
14946
  let threshold = 1e3 / freq;
@@ -14867,7 +14976,7 @@ function throttle(fn, freq) {
14867
14976
  }
14868
14977
  var throttle_default = throttle;
14869
14978
 
14870
- // ../../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
14979
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14871
14980
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14872
14981
  let bytesNotified = 0;
14873
14982
  const _speedometer = speedometer_default(50, 250);
@@ -14908,7 +15017,7 @@ var progressEventDecorator = (total, throttled) => {
14908
15017
  };
14909
15018
  var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14910
15019
 
14911
- // ../../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
15020
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14912
15021
  var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14913
15022
  var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14914
15023
  var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
@@ -14936,6 +15045,26 @@ var estimateBase64BufferAllocation = (body) => {
14936
15045
  }
14937
15046
  return Math.floor((len - padding) * 3 / 4);
14938
15047
  };
15048
+ var estimatePercentDecodedBase64BufferAllocation = (body) => {
15049
+ if (body.indexOf("%") === -1) {
15050
+ return estimateBase64BufferAllocation(body);
15051
+ }
15052
+ let length = 0;
15053
+ let previous = 0;
15054
+ let last = 0;
15055
+ for (let i = 0, len = body.length; i < len; i++) {
15056
+ let code = body.charCodeAt(i);
15057
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
15058
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
15059
+ i += 2;
15060
+ }
15061
+ length++;
15062
+ previous = last;
15063
+ last = code;
15064
+ }
15065
+ const padding = last === 61 ? previous === 61 ? 2 : 1 : 0;
15066
+ return Math.floor((length - padding) * 3 / 4);
15067
+ };
14939
15068
  var estimatePercentDecodedBase64Bytes = (body) => {
14940
15069
  const len = body.length;
14941
15070
  let significant = 0;
@@ -14965,14 +15094,14 @@ var estimatePercentDecodedBase64Bytes = (body) => {
14965
15094
  }
14966
15095
  return base64Bytes(significant);
14967
15096
  };
14968
- var estimateDataURLBytes = (url2, estimateBase64) => {
15097
+ var estimateDataURLBytes = (url2, estimateBase64, base64Pattern) => {
14969
15098
  if (!url2 || typeof url2 !== "string") return 0;
14970
- if (!url2.startsWith("data:")) return 0;
15099
+ if (!/^data:/i.test(url2)) return 0;
14971
15100
  const comma = url2.indexOf(",");
14972
15101
  if (comma < 0) return 0;
14973
15102
  const meta = url2.slice(5, comma);
14974
15103
  const body = url2.slice(comma + 1);
14975
- const isBase64 = /;base64/i.test(meta);
15104
+ const isBase64 = base64Pattern.test(meta);
14976
15105
  if (isBase64) {
14977
15106
  return estimateBase64(body);
14978
15107
  }
@@ -15004,14 +15133,15 @@ function estimateDataURLDecodedBytes(url2) {
15004
15133
  const fragmentIndex = typeof url2 === "string" ? url2.indexOf("#") : -1;
15005
15134
  return estimateDataURLBytes(
15006
15135
  fragmentIndex === -1 ? url2 : url2.slice(0, fragmentIndex),
15007
- estimatePercentDecodedBase64Bytes
15136
+ estimatePercentDecodedBase64Bytes,
15137
+ /; *base64[\t\n\f\r ]*$/i
15008
15138
  );
15009
15139
  }
15010
15140
  function estimateDataURLBufferAllocation(url2) {
15011
- return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
15141
+ return estimateDataURLBytes(url2, estimatePercentDecodedBase64BufferAllocation, /;base64$/i);
15012
15142
  }
15013
15143
 
15014
- // ../../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
15144
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
15015
15145
  var zlibOptions = {
15016
15146
  flush: zlib.constants.Z_SYNC_FLUSH,
15017
15147
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -15042,6 +15172,18 @@ function handleSocketError(err) {
15042
15172
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
15043
15173
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
15044
15174
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
15175
+ var directAgents = /* @__PURE__ */ new WeakMap();
15176
+ var directAgentHooks = ["createConnection", "getName"];
15177
+ var nativeAgentPoolHooks = [
15178
+ "addRequest",
15179
+ "createSocket",
15180
+ "removeSocket",
15181
+ "keepSocketAlive",
15182
+ "reuseSocket",
15183
+ "_getSession",
15184
+ "_cacheSession",
15185
+ "_evictSession"
15186
+ ];
15045
15187
  var NODE_NATIVE_ENV_PROXY_SUPPORT = {
15046
15188
  22: 21,
15047
15189
  24: 5
@@ -15071,6 +15213,49 @@ function isNodeEnvProxyEnabled(agent, nodeVersion = process.versions && process.
15071
15213
  function getProxyEnvAgent(options, configHttpAgent, configHttpsAgent) {
15072
15214
  return isHttps.test(options.protocol) ? configHttpsAgent || https.globalAgent : configHttpAgent || http.globalAgent;
15073
15215
  }
15216
+ function getDirectAgent(configuredAgent, transport) {
15217
+ if (!process.allowedNodeEnvironmentFlags || !process.allowedNodeEnvironmentFlags.has("--use-env-proxy")) {
15218
+ return configuredAgent;
15219
+ }
15220
+ const agent = configuredAgent || transport.globalAgent;
15221
+ const options = agent && agent.options;
15222
+ if (!(agent instanceof transport.Agent) || agent.protocol !== transport.globalAgent.protocol || !options || !utils_default.hasOwnProp(options, "proxyEnv") || typeof options.proxyEnv !== "object" || options.proxyEnv === null) {
15223
+ return configuredAgent;
15224
+ }
15225
+ for (const hook of nativeAgentPoolHooks) {
15226
+ if (utils_default.isFunction(transport.Agent.prototype[hook]) && agent[hook] !== transport.Agent.prototype[hook]) {
15227
+ throw new AxiosError_default(
15228
+ "proxy: false cannot adapt an agent overriding " + hook + "; use an agent constructed without proxyEnv",
15229
+ AxiosError_default.ERR_BAD_OPTION_VALUE
15230
+ );
15231
+ }
15232
+ }
15233
+ let direct = directAgents.get(agent);
15234
+ if (!direct) {
15235
+ direct = new transport.Agent({ ...options, proxyEnv: void 0 });
15236
+ const destroy = agent.destroy;
15237
+ agent.destroy = function destroyWithDirectAgent() {
15238
+ try {
15239
+ return destroy.apply(this, arguments);
15240
+ } finally {
15241
+ direct.destroy();
15242
+ }
15243
+ };
15244
+ directAgents.set(agent, direct);
15245
+ }
15246
+ for (const hook of directAgentHooks) {
15247
+ direct[hook] = agent[hook] === transport.Agent.prototype[hook] ? transport.Agent.prototype[hook] : bind(agent[hook], agent);
15248
+ }
15249
+ return direct;
15250
+ }
15251
+ function setDirectAgent(options, configHttpAgent, configHttpsAgent) {
15252
+ const secure = isHttps.test(options.protocol);
15253
+ const agent = getDirectAgent(secure ? configHttpsAgent : configHttpAgent, secure ? https : http);
15254
+ options.agent = agent;
15255
+ if (options.agents) {
15256
+ options.agents[secure ? "https" : "http"] = agent;
15257
+ }
15258
+ }
15074
15259
  function getTunnelingAgent(agentOptions, userHttpsAgent) {
15075
15260
  const key = agentOptions.protocol + "//" + agentOptions.hostname + ":" + (agentOptions.port || "") + "#" + (agentOptions.auth || "");
15076
15261
  const cache = userHttpsAgent ? tunnelingAgentCacheUser.get(userHttpsAgent) || tunnelingAgentCacheUser.set(userHttpsAgent, /* @__PURE__ */ new Map()).get(userHttpsAgent) : tunnelingAgentCache;
@@ -15078,13 +15263,12 @@ function getTunnelingAgent(agentOptions, userHttpsAgent) {
15078
15263
  if (agent) return agent;
15079
15264
  const merged = userHttpsAgent && userHttpsAgent.options ? { ...userHttpsAgent.options, ...agentOptions } : agentOptions;
15080
15265
  agent = new import_https_proxy_agent.default(merged);
15081
- if (userHttpsAgent && userHttpsAgent.options) {
15082
- const originTLSOptions = { ...userHttpsAgent.options };
15083
- const callback = agent.callback;
15084
- agent.callback = function axiosTunnelingAgentCallback(req, opts) {
15085
- return callback.call(this, req, { ...originTLSOptions, ...opts });
15086
- };
15087
- }
15266
+ const callback = agent.callback;
15267
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
15268
+ const originTLSAgent = userHttpsAgent || https.globalAgent;
15269
+ const originTLSOptions = originTLSAgent && originTLSAgent.options;
15270
+ return callback.call(this, req, { ...originTLSOptions, ...opts });
15271
+ };
15088
15272
  agent[kAxiosInstalledTunnel] = true;
15089
15273
  cache.set(key, agent);
15090
15274
  return agent;
@@ -15108,6 +15292,10 @@ var flushOnFinish = (stream4, [throttled, flush]) => {
15108
15292
  };
15109
15293
  var http2Sessions = new Http2Sessions_default();
15110
15294
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
15295
+ if (!isSameOriginRedirect(options, requestDetails)) {
15296
+ stripMatchingHeaders(options.headers, /* @__PURE__ */ new Set(["authorization", "cookie"]));
15297
+ delete options.auth;
15298
+ }
15111
15299
  if (options.beforeRedirects.proxy) {
15112
15300
  options.beforeRedirects.proxy(options);
15113
15301
  }
@@ -15117,6 +15305,9 @@ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
15117
15305
  if (options.beforeRedirects.sensitiveHeaders) {
15118
15306
  options.beforeRedirects.sensitiveHeaders(options, requestDetails);
15119
15307
  }
15308
+ if (options.beforeRedirects.direct) {
15309
+ options.beforeRedirects.direct(options);
15310
+ }
15120
15311
  if (options.beforeRedirects.config) {
15121
15312
  options.beforeRedirects.config(options, responseDetails, requestDetails);
15122
15313
  }
@@ -15162,6 +15353,9 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
15162
15353
  if (isRedirect && options.agent && options.agent[kAxiosInstalledTunnel]) {
15163
15354
  options.agent = void 0;
15164
15355
  }
15356
+ if (isRedirect && options.agents && options.agents.https && options.agents.https[kAxiosInstalledTunnel]) {
15357
+ options.agents.https = configHttpsAgent;
15358
+ }
15165
15359
  if (proxy) {
15166
15360
  const isProxyURL = proxy instanceof URL;
15167
15361
  const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
@@ -15342,9 +15536,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15342
15536
  if (httpVersion === void 0) httpVersion = 1;
15343
15537
  const rawHttpVersion = httpVersion;
15344
15538
  let http2Options = own2("http2Options");
15539
+ const configProxy = own2("proxy");
15345
15540
  const httpAgent = own2("httpAgent");
15346
15541
  const httpsAgent = own2("httpsAgent");
15347
- const configProxy = own2("proxy");
15348
15542
  const responseType = own2("responseType");
15349
15543
  const responseEncoding = own2("responseEncoding");
15350
15544
  const socketPath = own2("socketPath");
@@ -15483,6 +15677,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15483
15677
  } catch (err) {
15484
15678
  throw AxiosError_default.from(err, AxiosError_default.ERR_BAD_REQUEST, config);
15485
15679
  }
15680
+ if (maxContentLength > -1 && (responseType === "blob" ? convertedData.size : convertedData.length) > maxContentLength) {
15681
+ return reject(
15682
+ new AxiosError_default(
15683
+ "maxContentLength size of " + maxContentLength + " exceeded",
15684
+ AxiosError_default.ERR_BAD_RESPONSE,
15685
+ config
15686
+ )
15687
+ );
15688
+ }
15486
15689
  if (responseType === "text") {
15487
15690
  convertedData = convertedData.toString(responseEncoding);
15488
15691
  if (!responseEncoding || responseEncoding === "utf8") {
@@ -15685,9 +15888,13 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15685
15888
  }
15686
15889
  let transport;
15687
15890
  let isNativeTransport = false;
15688
- let transportEnforcesMaxBodyLength = false;
15689
15891
  const isHttpsRequest = isHttps.test(options.protocol);
15690
- if (options.agent == null) {
15892
+ if (!isHttp2 && configProxy === false) {
15893
+ setDirectAgent(options, httpAgent, httpsAgent);
15894
+ options.beforeRedirects.direct = (redirectOptions) => {
15895
+ setDirectAgent(redirectOptions, httpAgent, httpsAgent);
15896
+ };
15897
+ } else if (options.agent == null) {
15691
15898
  options.agent = isHttpsRequest ? httpsAgent : httpAgent;
15692
15899
  }
15693
15900
  if (isHttp2) {
@@ -15709,7 +15916,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15709
15916
  transport = isHttpsRequest ? https : http;
15710
15917
  isNativeTransport = true;
15711
15918
  } else {
15712
- transportEnforcesMaxBodyLength = true;
15713
15919
  options.sensitiveHeaders = [];
15714
15920
  if (maxRedirects) {
15715
15921
  options.maxRedirects = maxRedirects;
@@ -15995,7 +16201,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15995
16201
  }
15996
16202
  });
15997
16203
  let uploadStream = data;
15998
- if (maxBodyLength > -1 && !transportEnforcesMaxBodyLength) {
16204
+ if (maxBodyLength > -1) {
15999
16205
  const limit = maxBodyLength;
16000
16206
  let bytesSent = 0;
16001
16207
  uploadStream = stream3.pipeline(
@@ -16032,16 +16238,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
16032
16238
  });
16033
16239
  };
16034
16240
 
16035
- // ../../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
16036
- var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
16037
- url2 = new URL(url2, platform_default.origin);
16038
- return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
16039
- })(
16040
- new URL(platform_default.origin),
16041
- platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
16042
- ) : () => true;
16043
-
16044
- // ../../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
16241
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
16242
+ var decodeCookieValue = (value) => {
16243
+ try {
16244
+ return decodeURIComponent(value);
16245
+ } catch (e) {
16246
+ return value;
16247
+ }
16248
+ };
16045
16249
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
16046
16250
  // Standard browser envs support document.cookie
16047
16251
  {
@@ -16067,20 +16271,29 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
16067
16271
  },
16068
16272
  read(name) {
16069
16273
  if (typeof document === "undefined") return null;
16070
- const cookies = document.cookie.split(";");
16274
+ const cookieString = document.cookie;
16275
+ if (!cookieString) return null;
16276
+ const cookies = cookieString.split(";");
16071
16277
  for (let i = 0; i < cookies.length; i++) {
16072
16278
  const cookie = cookies[i].replace(/^\s+/, "");
16073
16279
  const eq = cookie.indexOf("=");
16074
16280
  if (eq !== -1 && cookie.slice(0, eq) === name) {
16075
- try {
16076
- return decodeURIComponent(cookie.slice(eq + 1));
16077
- } catch (e) {
16078
- return cookie.slice(eq + 1);
16079
- }
16281
+ return decodeCookieValue(cookie.slice(eq + 1));
16080
16282
  }
16081
16283
  }
16082
16284
  return null;
16083
16285
  },
16286
+ async readAsync(name) {
16287
+ try {
16288
+ const store = typeof window !== "undefined" && window.cookieStore;
16289
+ if (store && utils_default.isFunction(store.get)) {
16290
+ const cookie = await store.get(name);
16291
+ return cookie ? decodeCookieValue(cookie.value) : null;
16292
+ }
16293
+ } catch (e) {
16294
+ }
16295
+ return this.read(name);
16296
+ },
16084
16297
  remove(name) {
16085
16298
  this.write(name, "", Date.now() - 864e5, "/");
16086
16299
  }
@@ -16093,130 +16306,224 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
16093
16306
  read() {
16094
16307
  return null;
16095
16308
  },
16309
+ async readAsync() {
16310
+ return null;
16311
+ },
16096
16312
  remove() {
16097
16313
  }
16098
16314
  }
16099
16315
  );
16100
16316
 
16101
- // ../../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
16317
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
16318
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2) => (url2) => {
16319
+ url2 = new URL(url2, document.baseURI || platform_default.origin);
16320
+ return origin2.protocol === url2.protocol && origin2.host === url2.host && origin2.port === url2.port;
16321
+ })(new URL(platform_default.origin)) : () => true;
16322
+
16323
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/assertParamsAcyclic.js
16324
+ function assertParamsAcyclic(params) {
16325
+ const pending = [{ value: params }];
16326
+ const active = /* @__PURE__ */ new WeakSet();
16327
+ const visited = /* @__PURE__ */ new WeakSet();
16328
+ while (pending.length) {
16329
+ const { value, done } = pending.pop();
16330
+ if (!utils_default.isPlainObject(value) && !utils_default.isArray(value)) continue;
16331
+ if (done) {
16332
+ active.delete(value);
16333
+ continue;
16334
+ }
16335
+ if (active.has(value)) {
16336
+ throw new AxiosError_default(
16337
+ "Circular reference detected in params",
16338
+ AxiosError_default.ERR_BAD_OPTION_VALUE
16339
+ );
16340
+ }
16341
+ if (visited.has(value)) continue;
16342
+ visited.add(value);
16343
+ active.add(value);
16344
+ pending.push({ value, done: true });
16345
+ const keys = Object.keys(value);
16346
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
16347
+ Object.getOwnPropertySymbols(value).forEach((key) => {
16348
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
16349
+ if (descriptor && descriptor.enumerable) keys.push(key);
16350
+ });
16351
+ }
16352
+ keys.forEach((key) => {
16353
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
16354
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
16355
+ if (descriptor && utils_default.hasOwnProp(descriptor, "value")) {
16356
+ pending.push({ value: descriptor.value });
16357
+ }
16358
+ } else {
16359
+ pending.push({ value: value[key] });
16360
+ }
16361
+ });
16362
+ }
16363
+ }
16364
+
16365
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
16102
16366
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
16103
16367
  var ownEnumerableKeys = (thing) => {
16104
16368
  if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
16105
16369
  return Object.keys(thing).concat(
16106
- Object.getOwnPropertySymbols(thing).filter(
16107
- (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
16108
- )
16370
+ Object.getOwnPropertySymbols(thing).filter((symbol) => {
16371
+ const descriptor = Object.getOwnPropertyDescriptor(thing, symbol);
16372
+ return descriptor && descriptor.enumerable;
16373
+ })
16109
16374
  );
16110
16375
  }
16111
16376
  return Object.keys(thing);
16112
16377
  };
16113
- function mergeConfig(config1, config2) {
16114
- config1 = config1 || {};
16115
- config2 = config2 || {};
16116
- const config = /* @__PURE__ */ Object.create(null);
16117
- Object.defineProperty(config, "hasOwnProperty", {
16118
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
16119
- // this data descriptor into an accessor descriptor on the way in.
16120
- __proto__: null,
16121
- value: Object.prototype.hasOwnProperty,
16122
- enumerable: false,
16123
- writable: true,
16124
- configurable: true
16125
- });
16126
- function getMergedValue(target, source, prop, caseless) {
16127
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
16128
- return utils_default.merge.call({ caseless }, target, source);
16129
- } else if (utils_default.isPlainObject(source)) {
16130
- return utils_default.merge({}, source);
16131
- } else if (utils_default.isArray(source)) {
16132
- return source.slice();
16133
- }
16134
- return source;
16378
+ function mergeParams(a, b) {
16379
+ const pending = [];
16380
+ const copies = /* @__PURE__ */ new WeakMap();
16381
+ const empty = {};
16382
+ function copy(target, source) {
16383
+ if (!utils_default.isPlainObject(source)) {
16384
+ return utils_default.isArray(source) ? source.slice() : source;
16385
+ }
16386
+ const base = utils_default.isPlainObject(target) ? target : empty;
16387
+ let bases = copies.get(source);
16388
+ if (!bases) {
16389
+ bases = /* @__PURE__ */ new WeakMap();
16390
+ copies.set(source, bases);
16391
+ }
16392
+ if (bases.has(base)) return bases.get(base);
16393
+ const result2 = {};
16394
+ bases.set(base, result2);
16395
+ pending.push({ base, source, result: result2 });
16396
+ return result2;
16397
+ }
16398
+ const result = utils_default.isUndefined(b) ? copy(void 0, a) : copy(a, b);
16399
+ while (pending.length) {
16400
+ const { base, source, result: target } = pending.pop();
16401
+ const baseKeys = new Set(ownEnumerableKeys(base));
16402
+ const sourceKeys = new Set(ownEnumerableKeys(source));
16403
+ const keys = /* @__PURE__ */ new Set([...baseKeys, ...sourceKeys]);
16404
+ keys.forEach((key) => {
16405
+ if (key === "__proto__" || key === "constructor" || key === "prototype") return;
16406
+ const hasSource = sourceKeys.has(key);
16407
+ const value = hasSource ? source[key] : void 0;
16408
+ const previous = (!hasSource || utils_default.isPlainObject(value)) && baseKeys.has(key) ? base[key] : void 0;
16409
+ target[key] = hasSource ? copy(previous, value) : copy(void 0, previous);
16410
+ });
16135
16411
  }
16136
- function mergeDeepProperties(a, b, prop, caseless) {
16137
- if (!utils_default.isUndefined(b)) {
16138
- return getMergedValue(a, b, prop, caseless);
16139
- } else if (!utils_default.isUndefined(a)) {
16140
- return getMergedValue(void 0, a, prop, caseless);
16141
- }
16412
+ assertParamsAcyclic(result);
16413
+ return result;
16414
+ }
16415
+ function getMergedValue(target, source, prop, caseless) {
16416
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
16417
+ return utils_default.merge.call({ caseless }, target, source);
16418
+ } else if (utils_default.isPlainObject(source)) {
16419
+ return utils_default.merge({}, source);
16420
+ } else if (utils_default.isArray(source)) {
16421
+ return source.slice();
16422
+ }
16423
+ return source;
16424
+ }
16425
+ function mergeDeepProperties(a, b, prop, caseless) {
16426
+ if (!utils_default.isUndefined(b)) {
16427
+ return getMergedValue(a, b, prop, caseless);
16428
+ } else if (!utils_default.isUndefined(a)) {
16429
+ return getMergedValue(void 0, a, prop, caseless);
16142
16430
  }
16143
- function valueFromConfig2(a, b) {
16144
- if (!utils_default.isUndefined(b)) {
16145
- return getMergedValue(void 0, b);
16146
- }
16431
+ }
16432
+ function valueFromConfig2(a, b) {
16433
+ if (!utils_default.isUndefined(b)) {
16434
+ return getMergedValue(void 0, b);
16147
16435
  }
16148
- function defaultToConfig2(a, b) {
16149
- if (!utils_default.isUndefined(b)) {
16150
- return getMergedValue(void 0, b);
16151
- } else if (!utils_default.isUndefined(a)) {
16152
- return getMergedValue(void 0, a);
16153
- }
16436
+ }
16437
+ function defaultToConfig2(a, b) {
16438
+ if (!utils_default.isUndefined(b)) {
16439
+ return getMergedValue(void 0, b);
16440
+ } else if (!utils_default.isUndefined(a)) {
16441
+ return getMergedValue(void 0, a);
16154
16442
  }
16155
- function getMergedTransitionalOption(prop) {
16156
- const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
16157
- if (!utils_default.isUndefined(transitional2)) {
16158
- if (utils_default.isPlainObject(transitional2)) {
16159
- if (utils_default.hasOwnProp(transitional2, prop)) {
16160
- return transitional2[prop];
16161
- }
16162
- } else {
16163
- return void 0;
16443
+ }
16444
+ function getMergedTransitionalOption(config1, config2, prop) {
16445
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
16446
+ if (!utils_default.isUndefined(transitional2)) {
16447
+ if (utils_default.isPlainObject(transitional2)) {
16448
+ if (utils_default.hasOwnProp(transitional2, prop)) {
16449
+ return transitional2[prop];
16164
16450
  }
16451
+ } else {
16452
+ return void 0;
16165
16453
  }
16166
- const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
16167
- if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
16168
- return transitional1[prop];
16169
- }
16170
- return void 0;
16171
16454
  }
16172
- function mergeDirectKeys(a, b, prop) {
16173
- if (utils_default.hasOwnProp(config2, prop)) {
16174
- return getMergedValue(a, b);
16175
- } else if (utils_default.hasOwnProp(config1, prop)) {
16176
- return getMergedValue(void 0, a);
16177
- }
16178
- }
16179
- const mergeMap = {
16180
- url: valueFromConfig2,
16181
- method: valueFromConfig2,
16182
- data: valueFromConfig2,
16183
- baseURL: defaultToConfig2,
16184
- transformRequest: defaultToConfig2,
16185
- transformResponse: defaultToConfig2,
16186
- paramsSerializer: defaultToConfig2,
16187
- timeout: defaultToConfig2,
16188
- timeoutErrorMessage: defaultToConfig2,
16189
- withCredentials: defaultToConfig2,
16190
- withXSRFToken: defaultToConfig2,
16191
- adapter: defaultToConfig2,
16192
- responseType: defaultToConfig2,
16193
- xsrfCookieName: defaultToConfig2,
16194
- xsrfHeaderName: defaultToConfig2,
16195
- onUploadProgress: defaultToConfig2,
16196
- onDownloadProgress: defaultToConfig2,
16197
- decompress: defaultToConfig2,
16198
- maxContentLength: defaultToConfig2,
16199
- maxBodyLength: defaultToConfig2,
16200
- beforeRedirect: defaultToConfig2,
16201
- transport: defaultToConfig2,
16202
- httpAgent: defaultToConfig2,
16203
- httpsAgent: defaultToConfig2,
16204
- cancelToken: defaultToConfig2,
16205
- socketPath: defaultToConfig2,
16206
- allowedSocketPaths: defaultToConfig2,
16207
- responseEncoding: defaultToConfig2,
16208
- validateStatus: mergeDirectKeys,
16209
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
16210
- };
16211
- utils_default.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
16212
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
16455
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
16456
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) {
16457
+ return transitional1[prop];
16458
+ }
16459
+ return void 0;
16460
+ }
16461
+ function mergeDirectKeys(a, b, prop, config1, config2) {
16462
+ if (utils_default.hasOwnProp(config2, prop)) {
16463
+ return getMergedValue(a, b);
16464
+ } else if (utils_default.hasOwnProp(config1, prop)) {
16465
+ return getMergedValue(void 0, a);
16466
+ }
16467
+ }
16468
+ function mergeHeaders(a, b, prop) {
16469
+ return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
16470
+ }
16471
+ var hasOwnPropertyDescriptor = Object.freeze({
16472
+ __proto__: null,
16473
+ value: Object.prototype.hasOwnProperty,
16474
+ enumerable: false,
16475
+ writable: true,
16476
+ configurable: true
16477
+ });
16478
+ var mergeMap = {
16479
+ url: valueFromConfig2,
16480
+ method: valueFromConfig2,
16481
+ data: valueFromConfig2,
16482
+ baseURL: defaultToConfig2,
16483
+ transformRequest: defaultToConfig2,
16484
+ transformResponse: defaultToConfig2,
16485
+ params: mergeParams,
16486
+ paramsSerializer: defaultToConfig2,
16487
+ timeout: defaultToConfig2,
16488
+ timeoutErrorMessage: defaultToConfig2,
16489
+ withCredentials: defaultToConfig2,
16490
+ withXSRFToken: defaultToConfig2,
16491
+ adapter: defaultToConfig2,
16492
+ responseType: defaultToConfig2,
16493
+ xsrfCookieName: defaultToConfig2,
16494
+ xsrfHeaderName: defaultToConfig2,
16495
+ onUploadProgress: defaultToConfig2,
16496
+ onDownloadProgress: defaultToConfig2,
16497
+ decompress: defaultToConfig2,
16498
+ maxContentLength: defaultToConfig2,
16499
+ maxBodyLength: defaultToConfig2,
16500
+ beforeRedirect: defaultToConfig2,
16501
+ transport: defaultToConfig2,
16502
+ httpAgent: defaultToConfig2,
16503
+ httpsAgent: defaultToConfig2,
16504
+ cancelToken: defaultToConfig2,
16505
+ socketPath: defaultToConfig2,
16506
+ allowedSocketPaths: defaultToConfig2,
16507
+ responseEncoding: defaultToConfig2,
16508
+ validateStatus: mergeDirectKeys,
16509
+ headers: mergeHeaders
16510
+ };
16511
+ function mergeConfig(config1, config2) {
16512
+ config1 = config1 || {};
16513
+ config2 = config2 || {};
16514
+ const config = /* @__PURE__ */ Object.create(null);
16515
+ Object.defineProperty(config, "hasOwnProperty", hasOwnPropertyDescriptor);
16516
+ const keys = ownEnumerableKeys({ ...config1, ...config2 });
16517
+ for (let i = 0, len = keys.length; i < len; i++) {
16518
+ const prop = keys[i];
16519
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype") continue;
16213
16520
  const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
16214
16521
  const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
16215
16522
  const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
16216
- const configValue = merge2(a, b, prop);
16523
+ const configValue = merge2 === mergeDirectKeys ? merge2(a, b, prop, config1, config2) : merge2(a, b, prop);
16217
16524
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
16218
- });
16219
- if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
16525
+ }
16526
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption(config1, config2, "validateStatusUndefinedResolves") === false) {
16220
16527
  if (utils_default.hasOwnProp(config1, "validateStatus")) {
16221
16528
  config.validateStatus = getMergedValue(void 0, config1.validateStatus);
16222
16529
  } else {
@@ -16226,12 +16533,13 @@ function mergeConfig(config1, config2) {
16226
16533
  return config;
16227
16534
  }
16228
16535
 
16229
- // ../../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
16536
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
16230
16537
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
16231
16538
  /%([0-9A-F]{2})/gi,
16232
16539
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
16233
16540
  );
16234
- function resolveConfig(config) {
16541
+ var readCookie = (name) => cookies_default.read(name);
16542
+ function resolveConfig(config, readXsrfCookie = readCookie) {
16235
16543
  const newConfig = mergeConfig({}, config);
16236
16544
  const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
16237
16545
  const data = own2("data");
@@ -16252,10 +16560,15 @@ function resolveConfig(config) {
16252
16560
  if (auth) {
16253
16561
  const username = utils_default.getSafeProp(auth, "username") || "";
16254
16562
  const password = utils_default.getSafeProp(auth, "password") || "";
16563
+ const transitional2 = own2("transitional");
16564
+ const encodeUsername = transitional2 && utils_default.hasOwnProp(transitional2, "encodeBasicAuthUsername") && transitional2.encodeBasicAuthUsername === true;
16255
16565
  try {
16256
16566
  headers.set(
16257
16567
  "Authorization",
16258
- "Basic " + btoa(username + ":" + (password ? encodeUTF8(password) : ""))
16568
+ // Preserve legacy username bytes unless the caller opts in to UTF-8.
16569
+ "Basic " + btoa(
16570
+ (encodeUsername ? encodeUTF8(username) : username) + ":" + (password ? encodeUTF8(password) : "")
16571
+ )
16259
16572
  );
16260
16573
  } catch (e) {
16261
16574
  throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_OPTION_VALUE, config);
@@ -16275,7 +16588,7 @@ function resolveConfig(config) {
16275
16588
  }
16276
16589
  const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
16277
16590
  if (shouldSendXSRF) {
16278
- const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
16591
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && readXsrfCookie(xsrfCookieName);
16279
16592
  if (xsrfValue) {
16280
16593
  headers.set(xsrfHeaderName, xsrfValue);
16281
16594
  }
@@ -16285,20 +16598,54 @@ function resolveConfig(config) {
16285
16598
  }
16286
16599
  var resolveConfig_default = resolveConfig;
16287
16600
 
16288
- // ../../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
16601
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
16289
16602
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
16290
16603
  var xhr_default = isXHRAdapterSupported && function(config) {
16291
16604
  return new Promise(function dispatchXhrRequest(resolve, reject) {
16292
- const _config = resolveConfig_default(config);
16605
+ let useAsyncXsrf;
16606
+ try {
16607
+ const store = platform_default.hasStandardBrowserEnv && typeof window !== "undefined" && window.cookieStore;
16608
+ useAsyncXsrf = store && utils_default.isFunction(store.get);
16609
+ } catch (e) {
16610
+ }
16611
+ let xsrfCookieName;
16612
+ const _config = resolveConfig_default(
16613
+ config,
16614
+ useAsyncXsrf ? (name) => {
16615
+ xsrfCookieName = name;
16616
+ return null;
16617
+ } : void 0
16618
+ );
16293
16619
  let requestData = _config.data;
16294
16620
  const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
16295
16621
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
16296
16622
  let onCanceled;
16623
+ let timeoutId;
16297
16624
  let uploadThrottled, downloadThrottled;
16298
16625
  let flushUpload, flushDownload, flushDownloadWithEvent;
16299
16626
  function done() {
16300
- flushUpload && flushUpload();
16301
- flushDownload && flushDownload();
16627
+ clearTimeout(timeoutId);
16628
+ try {
16629
+ flushUpload && flushUpload();
16630
+ } catch (err) {
16631
+ setTimeout(() => {
16632
+ throw err;
16633
+ });
16634
+ }
16635
+ try {
16636
+ flushDownload && flushDownload();
16637
+ } catch (err) {
16638
+ setTimeout(() => {
16639
+ throw err;
16640
+ });
16641
+ }
16642
+ if (request) {
16643
+ downloadThrottled && request.removeEventListener("progress", downloadThrottled);
16644
+ if (request.upload) {
16645
+ uploadThrottled && request.upload.removeEventListener("progress", uploadThrottled);
16646
+ flushUpload && request.upload.removeEventListener("loadend", flushUpload);
16647
+ }
16648
+ }
16302
16649
  _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
16303
16650
  _config.signal && _config.signal.removeEventListener("abort", onCanceled);
16304
16651
  }
@@ -16384,6 +16731,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16384
16731
  request = null;
16385
16732
  };
16386
16733
  request.ontimeout = function handleTimeout() {
16734
+ if (!request) return;
16387
16735
  let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
16388
16736
  const transitional2 = _config.transitional || transitional_default;
16389
16737
  if (_config.timeoutErrorMessage) {
@@ -16401,11 +16749,6 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16401
16749
  request = null;
16402
16750
  };
16403
16751
  requestData === void 0 && requestHeaders.setContentType(null);
16404
- if ("setRequestHeader" in request) {
16405
- utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
16406
- request.setRequestHeader(key, val);
16407
- });
16408
- }
16409
16752
  if (!utils_default.isUndefined(_config.withCredentials)) {
16410
16753
  request.withCredentials = !!_config.withCredentials;
16411
16754
  }
@@ -16430,15 +16773,18 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16430
16773
  return;
16431
16774
  }
16432
16775
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
16433
- request.abort();
16776
+ const xhr = request;
16434
16777
  done();
16435
16778
  request = null;
16779
+ xhr.abort();
16436
16780
  };
16437
16781
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
16782
+ if (!request) return;
16438
16783
  if (_config.signal) {
16439
16784
  _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
16440
16785
  }
16441
16786
  }
16787
+ if (!request) return;
16442
16788
  const protocol = parseProtocol(_config.url);
16443
16789
  if (protocol && !platform_default.protocols.includes(protocol)) {
16444
16790
  reject(
@@ -16451,11 +16797,62 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16451
16797
  done();
16452
16798
  return;
16453
16799
  }
16454
- request.send(requestData || null);
16800
+ const sendRequest = () => {
16801
+ if (!request) return;
16802
+ if ("setRequestHeader" in request) {
16803
+ utils_default.forEach(
16804
+ toByteStringHeaderObject(requestHeaders),
16805
+ function setRequestHeader(val, key) {
16806
+ request.setRequestHeader(key, val);
16807
+ }
16808
+ );
16809
+ }
16810
+ request.send(requestData || null);
16811
+ };
16812
+ if (xsrfCookieName) {
16813
+ const now = typeof performance !== "undefined" && utils_default.isFunction(performance.now) ? () => performance.now() : Date.now;
16814
+ const deadline = request.timeout > 0 ? now() + Number(request.timeout) : void 0;
16815
+ const abortOnTimeout = () => {
16816
+ if (!request) return;
16817
+ const xhr = request;
16818
+ xhr.ontimeout();
16819
+ xhr.abort();
16820
+ };
16821
+ if (deadline !== void 0) {
16822
+ const scheduleTimeout = () => {
16823
+ const remaining = deadline - now();
16824
+ if (remaining > 0) {
16825
+ timeoutId = setTimeout(scheduleTimeout, Math.min(remaining, 2147483647));
16826
+ } else {
16827
+ abortOnTimeout();
16828
+ }
16829
+ };
16830
+ scheduleTimeout();
16831
+ }
16832
+ cookies_default.readAsync(xsrfCookieName).then((value) => {
16833
+ if (!request) return;
16834
+ if (deadline !== void 0 && now() >= deadline) {
16835
+ abortOnTimeout();
16836
+ return;
16837
+ }
16838
+ if (value) {
16839
+ const headerName = utils_default.hasOwnProp(_config, "xsrfHeaderName") && _config.xsrfHeaderName;
16840
+ requestHeaders.set(headerName, value);
16841
+ }
16842
+ sendRequest();
16843
+ }).catch((error) => {
16844
+ if (!request) return;
16845
+ reject(AxiosError_default.from(error, null, config, request));
16846
+ done();
16847
+ request = null;
16848
+ });
16849
+ } else {
16850
+ sendRequest();
16851
+ }
16455
16852
  });
16456
16853
  };
16457
16854
 
16458
- // ../../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
16855
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
16459
16856
  var composeSignals = (signals, timeout) => {
16460
16857
  signals = signals ? signals.filter(Boolean) : [];
16461
16858
  if (!timeout && !signals.length) {
@@ -16484,7 +16881,8 @@ var composeSignals = (signals, timeout) => {
16484
16881
  timer && clearTimeout(timer);
16485
16882
  timer = null;
16486
16883
  signals.forEach((signal2) => {
16487
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
16884
+ const unsubscribeSignal = utils_default.getSafeProp(signal2, "unsubscribe");
16885
+ utils_default.isFunction(unsubscribeSignal) ? unsubscribeSignal.call(signal2, onabort) : signal2.removeEventListener("abort", onabort);
16488
16886
  });
16489
16887
  signals = null;
16490
16888
  };
@@ -16504,7 +16902,7 @@ var composeSignals = (signals, timeout) => {
16504
16902
  };
16505
16903
  var composeSignals_default = composeSignals;
16506
16904
 
16507
- // ../../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
16905
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
16508
16906
  var streamChunk = function* (chunk, chunkSize) {
16509
16907
  let len = chunk.byteLength;
16510
16908
  if (!chunkSize || len < chunkSize) {
@@ -16584,7 +16982,111 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
16584
16982
  );
16585
16983
  };
16586
16984
 
16587
- // ../../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
16985
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToBlob.js
16986
+ var CRLF2 = "\r\n";
16987
+ var normalizeLines = (value) => String(value).replace(/\r\n|\r|\n/g, CRLF2);
16988
+ var escapeName = (value) => String(value).replace(
16989
+ /[\r\n"]/g,
16990
+ (char) => char === "\r" ? "%0D" : char === "\n" ? "%0A" : "%22"
16991
+ );
16992
+ var stringBytes = (value, normalize) => {
16993
+ let length = 0;
16994
+ for (let i = 0; i < value.length; i++) {
16995
+ const code = value.charCodeAt(i);
16996
+ if (normalize && (code === 13 || code === 10)) {
16997
+ if (code === 13 && value.charCodeAt(i + 1) === 10) i++;
16998
+ length += 2;
16999
+ } else if (code < 128) {
17000
+ length++;
17001
+ } else if (code < 2048) {
17002
+ length += 2;
17003
+ } else if (code >= 55296 && code <= 56319 && value.charCodeAt(i + 1) >= 56320 && value.charCodeAt(i + 1) <= 57343) {
17004
+ length += 4;
17005
+ i++;
17006
+ } else {
17007
+ length += 3;
17008
+ }
17009
+ }
17010
+ return length;
17011
+ };
17012
+ var FormDataError = class extends TypeError {
17013
+ constructor(message, reason) {
17014
+ super(message);
17015
+ this.name = "FormDataError";
17016
+ this.reason = reason;
17017
+ }
17018
+ };
17019
+ function formDataToBlob(form, Blob2, limit, limitError, boundary) {
17020
+ if (!utils_default.isFunction(Blob2)) {
17021
+ throw new FormDataError("Blob is not supported", "blob");
17022
+ }
17023
+ if (!utils_default.isString(boundary) || !/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(boundary) || / $/.test(boundary)) {
17024
+ throw new FormDataError("Invalid multipart boundary", "boundary");
17025
+ }
17026
+ const footer = "--" + boundary + "--" + CRLF2;
17027
+ let length = footer.length;
17028
+ const parts = [];
17029
+ const checkLength = (extra) => {
17030
+ if (length + extra > limit) throw limitError();
17031
+ };
17032
+ checkLength(0);
17033
+ for (const [name, value] of form) {
17034
+ const isString2 = utils_default.isString(value);
17035
+ const valueLength = isString2 ? stringBytes(value, true) : value.size;
17036
+ if (!Number.isFinite(valueLength) || valueLength < 0) {
17037
+ throw new FormDataError("Unsupported FormData part size", "part");
17038
+ }
17039
+ checkLength(
17040
+ valueLength + stringBytes(name, true) + (!isString2 && value.name ? stringBytes(value.name, false) : 0) + (!isString2 && value.type ? stringBytes(value.type, false) : 0)
17041
+ );
17042
+ let header = "--" + boundary + CRLF2 + 'Content-Disposition: form-data; name="' + escapeName(normalizeLines(name)) + '"';
17043
+ if (!isString2) {
17044
+ header += '; filename="' + escapeName(utils_default.isString(value.name) ? value.name : "blob") + '"' + CRLF2 + "Content-Type: " + String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
17045
+ }
17046
+ header += CRLF2 + CRLF2;
17047
+ const partLength = stringBytes(header, false) + valueLength + CRLF2.length;
17048
+ checkLength(partLength);
17049
+ length += partLength;
17050
+ parts.push({ header, value, isString: isString2 });
17051
+ }
17052
+ const blobParts = [];
17053
+ for (const part of parts) {
17054
+ blobParts.push(part.header, part.isString ? normalizeLines(part.value) : part.value, CRLF2);
17055
+ }
17056
+ blobParts.push(footer);
17057
+ return new Blob2(blobParts, { type: "multipart/form-data; boundary=" + boundary });
17058
+ }
17059
+
17060
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/createMultipartBody.js
17061
+ function createMultipartBody(form, Blob2, limit, limitError, boundary) {
17062
+ if (!utils_default.isFunction(Blob2)) {
17063
+ throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
17064
+ }
17065
+ if (boundary === void 0) {
17066
+ if (utils_default.isFunction(platform_default.generateString)) {
17067
+ boundary = "axios-" + platform_default.generateString(36, "0123456789abcdef");
17068
+ } else {
17069
+ const crypto2 = utils_default.global.crypto;
17070
+ if (!crypto2 || !utils_default.isFunction(crypto2.getRandomValues)) {
17071
+ throw new AxiosError_default("Random byte generation is not supported", AxiosError_default.ERR_NOT_SUPPORT);
17072
+ }
17073
+ const random = new Uint8Array(18);
17074
+ crypto2.getRandomValues(random);
17075
+ boundary = "axios-" + Array.from(random, (value) => ("0" + value.toString(16)).slice(-2)).join("");
17076
+ }
17077
+ }
17078
+ try {
17079
+ return formDataToBlob(form, Blob2, limit, limitError, boundary);
17080
+ } catch (error) {
17081
+ if (error instanceof FormDataError) {
17082
+ const code = error.reason === "boundary" ? AxiosError_default.ERR_BAD_OPTION_VALUE : AxiosError_default.ERR_BAD_REQUEST;
17083
+ throw new AxiosError_default(error.message, code);
17084
+ }
17085
+ throw error;
17086
+ }
17087
+ }
17088
+
17089
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
16588
17090
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
16589
17091
  var DEFAULT_REQUEST_OPTIONS = {
16590
17092
  cache: "default",
@@ -16636,11 +17138,13 @@ var factory = (env) => {
16636
17138
  },
16637
17139
  {
16638
17140
  Request: globalObject.Request,
16639
- Response: globalObject.Response
17141
+ Response: globalObject.Response,
17142
+ Blob: globalObject.Blob
16640
17143
  },
16641
17144
  env
16642
17145
  );
16643
- const { fetch: envFetch, Request, Response } = env;
17146
+ const envFetch = utils_default.hasOwnProp(env, "fetch") ? env.fetch : void 0;
17147
+ const { Request, Response, Blob: Blob2 } = env;
16644
17148
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
16645
17149
  const isRequestSupported = isFunction2(Request);
16646
17150
  const isResponseSupported = isFunction2(Response);
@@ -16666,6 +17170,13 @@ var factory = (env) => {
16666
17170
  return duplexAccessed && !hasContentType;
16667
17171
  });
16668
17172
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
17173
+ const requestDefaults = Object.assign(/* @__PURE__ */ Object.create(null), DEFAULT_REQUEST_OPTIONS);
17174
+ if (isRequestSupported && !test(() => new Request(platform_default.origin, requestDefaults))) {
17175
+ delete requestDefaults.cache;
17176
+ if (!test(() => new Request(platform_default.origin, requestDefaults))) {
17177
+ requestDefaults.cache = DEFAULT_REQUEST_OPTIONS.cache;
17178
+ }
17179
+ }
16669
17180
  const resolvers = {
16670
17181
  stream: supportsResponseStream && ((res) => res.body)
16671
17182
  };
@@ -16691,13 +17202,6 @@ var factory = (env) => {
16691
17202
  if (utils_default.isBlob(body)) {
16692
17203
  return body.size;
16693
17204
  }
16694
- if (utils_default.isSpecCompliantForm(body)) {
16695
- const _request = new Request(platform_default.origin, {
16696
- method: "POST",
16697
- body
16698
- });
16699
- return (await _request.arrayBuffer()).byteLength;
16700
- }
16701
17205
  if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
16702
17206
  return body.byteLength;
16703
17207
  }
@@ -16745,6 +17249,7 @@ var factory = (env) => {
16745
17249
  });
16746
17250
  let requestContentLength;
16747
17251
  let pendingBodyError = null;
17252
+ let pendingResponseError = null;
16748
17253
  const maxBodyLengthError = () => new AxiosError_default(
16749
17254
  "Request body larger than maxBodyLength limit",
16750
17255
  AxiosError_default.ERR_BAD_REQUEST,
@@ -16762,8 +17267,9 @@ var factory = (env) => {
16762
17267
  password
16763
17268
  };
16764
17269
  }
17270
+ let parsedURL;
16765
17271
  if (maybeWithAuthCredentials(url2)) {
16766
- const parsedURL = new URL(url2, platform_default.origin);
17272
+ parsedURL = new URL(url2, platform_default.origin);
16767
17273
  if (!auth && (parsedURL.username || parsedURL.password)) {
16768
17274
  const urlUsername = decodeURIComponentSafe2(parsedURL.username);
16769
17275
  const urlPassword = decodeURIComponentSafe2(parsedURL.password);
@@ -16785,8 +17291,8 @@ var factory = (env) => {
16785
17291
  "Basic " + btoa(encodeUTF82((auth.username || "") + ":" + (auth.password || "")))
16786
17292
  );
16787
17293
  }
16788
- if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
16789
- const estimated = estimateDataURLDecodedBytes(url2);
17294
+ if (hasMaxContentLength && parsedURL && parsedURL.protocol === "data:") {
17295
+ const estimated = estimateDataURLDecodedBytes(parsedURL.href);
16790
17296
  if (estimated > maxContentLength) {
16791
17297
  throw new AxiosError_default(
16792
17298
  "maxContentLength size of " + maxContentLength + " exceeded",
@@ -16796,6 +17302,23 @@ var factory = (env) => {
16796
17302
  );
16797
17303
  }
16798
17304
  }
17305
+ const formContentType = utils_default.isSpecCompliantForm(data) && AxiosHeaders_default.from(own2("headers")).getContentType();
17306
+ let formBoundary;
17307
+ if (utils_default.isString(formContentType) && /^multipart\/form-data(?:\s*;|$)/i.test(formContentType.trim())) {
17308
+ const parameters = AxiosHeaders_default.parseParameters(formContentType);
17309
+ if (utils_default.hasOwnProp(parameters, "boundary")) formBoundary = parameters.boundary;
17310
+ }
17311
+ if (utils_default.isSpecCompliantForm(data) && method !== "get" && method !== "head" && (hasMaxBodyLength || onUploadProgress && supportsRequestStream || formBoundary !== void 0)) {
17312
+ data = createMultipartBody(
17313
+ data,
17314
+ Blob2,
17315
+ hasMaxBodyLength ? maxBodyLength : Infinity,
17316
+ maxBodyLengthError,
17317
+ formBoundary
17318
+ );
17319
+ headers.setContentType(formBoundary === void 0 ? data.type : formContentType);
17320
+ requestContentLength = data.size;
17321
+ }
16799
17322
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
16800
17323
  const outboundLength = await getBodyLength(data);
16801
17324
  if (typeof outboundLength === "number" && isFinite(outboundLength)) {
@@ -16876,7 +17399,7 @@ var factory = (env) => {
16876
17399
  credentials: isCredentialsSupported ? withCredentials : void 0
16877
17400
  });
16878
17401
  if (isRequestSupported) {
16879
- utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
17402
+ utils_default.forEach(requestDefaults, (value, key) => {
16880
17403
  if (resolvedOptions[key] === void 0) {
16881
17404
  resolvedOptions[key] = value;
16882
17405
  }
@@ -16924,7 +17447,7 @@ var factory = (env) => {
16924
17447
  if (hasMaxContentLength) {
16925
17448
  bytesRead = loadedBytes;
16926
17449
  if (bytesRead > maxContentLength) {
16927
- throw new AxiosError_default(
17450
+ throw pendingResponseError = new AxiosError_default(
16928
17451
  "maxContentLength size of " + maxContentLength + " exceeded",
16929
17452
  AxiosError_default.ERR_BAD_RESPONSE,
16930
17453
  config,
@@ -16999,6 +17522,9 @@ var factory = (env) => {
16999
17522
  request && !pendingBodyError.request && (pendingBodyError.request = request);
17000
17523
  throw pendingBodyError;
17001
17524
  }
17525
+ if (pendingResponseError) {
17526
+ throw pendingResponseError;
17527
+ }
17002
17528
  if (err instanceof AxiosError_default) {
17003
17529
  request && !err.request && (err.request = request);
17004
17530
  throw err;
@@ -17026,9 +17552,15 @@ var factory = (env) => {
17026
17552
  };
17027
17553
  var seedCache = /* @__PURE__ */ new Map();
17028
17554
  var getFetch = (config) => {
17029
- let env = config && config.env || {};
17030
- const { fetch: fetch2, Request, Response } = env;
17031
- const seeds = [Request, Response, fetch2];
17555
+ const env = /* @__PURE__ */ Object.create(null);
17556
+ const configuredEnv = config && utils_default.hasOwnProp(config, "env") && config.env;
17557
+ ["fetch", "Request", "Response", "Blob"].forEach((key) => {
17558
+ if (configuredEnv && utils_default.hasOwnProp(configuredEnv, key)) {
17559
+ env[key] = configuredEnv[key];
17560
+ }
17561
+ });
17562
+ const { fetch: fetch2, Request, Response, Blob: Blob2 } = env;
17563
+ const seeds = [Request, Response, fetch2, Blob2];
17032
17564
  let len = seeds.length, i = len, seed, target, map = seedCache;
17033
17565
  while (i--) {
17034
17566
  seed = seeds[i];
@@ -17040,7 +17572,7 @@ var getFetch = (config) => {
17040
17572
  };
17041
17573
  var adapter = getFetch();
17042
17574
 
17043
- // ../../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
17575
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
17044
17576
  var knownAdapters = {
17045
17577
  http: http_default,
17046
17578
  xhr: xhr_default,
@@ -17105,7 +17637,7 @@ var adapters_default = {
17105
17637
  adapters: knownAdapters
17106
17638
  };
17107
17639
 
17108
- // ../../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
17640
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
17109
17641
  function throwIfCancellationRequested(config) {
17110
17642
  if (config.cancelToken) {
17111
17643
  config.cancelToken.throwIfRequested();
@@ -17114,6 +17646,9 @@ function throwIfCancellationRequested(config) {
17114
17646
  throw new CanceledError_default(null, config);
17115
17647
  }
17116
17648
  }
17649
+ function elapsedSince(start) {
17650
+ return Math.max(0, Date.now() - start);
17651
+ }
17117
17652
  function dispatchRequest(_config) {
17118
17653
  const config = utils_default.toSafeFlatObject(_config);
17119
17654
  throwIfCancellationRequested(config);
@@ -17123,9 +17658,11 @@ function dispatchRequest(_config) {
17123
17658
  config.headers.setContentType("application/x-www-form-urlencoded", false);
17124
17659
  }
17125
17660
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
17661
+ const start = Date.now();
17126
17662
  return adapter2(config).then(
17127
17663
  function onAdapterResolution(response) {
17128
17664
  throwIfCancellationRequested(config);
17665
+ response.duration = elapsedSince(start);
17129
17666
  config.response = response;
17130
17667
  try {
17131
17668
  response.data = transformData.call(config, config.transformResponse, response);
@@ -17139,6 +17676,7 @@ function dispatchRequest(_config) {
17139
17676
  if (!isCancel(reason)) {
17140
17677
  throwIfCancellationRequested(config);
17141
17678
  if (reason && reason.response) {
17679
+ reason.response.duration = elapsedSince(start);
17142
17680
  config.response = reason.response;
17143
17681
  try {
17144
17682
  reason.response.data = transformData.call(
@@ -17157,7 +17695,7 @@ function dispatchRequest(_config) {
17157
17695
  );
17158
17696
  }
17159
17697
 
17160
- // ../../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
17698
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
17161
17699
  var validators = {};
17162
17700
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
17163
17701
  validators[type] = function validator(thing) {
@@ -17224,8 +17762,29 @@ var validator_default = {
17224
17762
  validators
17225
17763
  };
17226
17764
 
17227
- // ../../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
17765
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
17228
17766
  var validators2 = validator_default.validators;
17767
+ var isHeadersBucket = (value) => {
17768
+ if (value == null || utils_default.isPlainObject(value) || value instanceof AxiosHeaders_default) {
17769
+ return true;
17770
+ }
17771
+ try {
17772
+ return utils_default.isObject(value) && utils_default.getSafeProp(value, Symbol.toStringTag) === "AxiosHeaders" && [
17773
+ "toJSON",
17774
+ "set",
17775
+ "get",
17776
+ "has",
17777
+ "delete",
17778
+ "clear",
17779
+ "normalize",
17780
+ "concat",
17781
+ "toString",
17782
+ Symbol.iterator
17783
+ ].every((method) => utils_default.isFunction(utils_default.getSafeProp(value, method)));
17784
+ } catch (e) {
17785
+ return false;
17786
+ }
17787
+ };
17229
17788
  var Axios = class {
17230
17789
  constructor(instanceConfig) {
17231
17790
  this.defaults = instanceConfig || {};
@@ -17261,9 +17820,13 @@ var Axios = class {
17261
17820
  } else if (stack) {
17262
17821
  const firstNewlineIndex = stack.indexOf("\n");
17263
17822
  const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
17264
- const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
17265
- if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
17266
- err.stack += "\n" + stack;
17823
+ const duplicateCheckSuffix = secondNewlineIndex === -1 ? stack : stack.slice(secondNewlineIndex + 1);
17824
+ const currentStack = String(err.stack);
17825
+ const causeIndex = getCauseStackIndex(err, currentStack);
17826
+ const stackHead = causeIndex === -1 ? currentStack : currentStack.slice(0, causeIndex);
17827
+ const causeSection = causeIndex === -1 ? "" : currentStack.slice(causeIndex);
17828
+ if (!stackHead.endsWith(duplicateCheckSuffix)) {
17829
+ err.stack = stackHead + "\n" + stack + causeSection;
17267
17830
  }
17268
17831
  }
17269
17832
  } catch (e) {
@@ -17290,7 +17853,8 @@ var Axios = class {
17290
17853
  clarifyTimeoutError: validators2.transitional(validators2.boolean),
17291
17854
  legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean),
17292
17855
  advertiseZstdAcceptEncoding: validators2.transitional(validators2.boolean),
17293
- validateStatusUndefinedResolves: validators2.transitional(validators2.boolean)
17856
+ validateStatusUndefinedResolves: validators2.transitional(validators2.boolean),
17857
+ encodeBasicAuthUsername: validators2.transitional(validators2.boolean)
17294
17858
  },
17295
17859
  false
17296
17860
  );
@@ -17312,7 +17876,7 @@ var Axios = class {
17312
17876
  }
17313
17877
  }
17314
17878
  if (config.allowAbsoluteUrls !== void 0) {
17315
- } else if (this.defaults.allowAbsoluteUrls !== void 0) {
17879
+ } else if (utils_default.hasOwnProp(this.defaults, "allowAbsoluteUrls") && this.defaults.allowAbsoluteUrls !== void 0) {
17316
17880
  config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
17317
17881
  } else {
17318
17882
  config.allowAbsoluteUrls = true;
@@ -17326,9 +17890,16 @@ var Axios = class {
17326
17890
  true
17327
17891
  );
17328
17892
  config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
17329
- let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
17893
+ const commonHeaders = utils_default.getSafeProp(headers, "common");
17894
+ const methodHeaders = utils_default.getSafeProp(headers, config.method);
17895
+ const contextHeaders = headers && utils_default.merge(
17896
+ isHeadersBucket(commonHeaders) ? commonHeaders : void 0,
17897
+ isHeadersBucket(methodHeaders) ? methodHeaders : void 0
17898
+ );
17330
17899
  headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
17331
- delete headers[method];
17900
+ if (isHeadersBucket(utils_default.getSafeProp(headers, method))) {
17901
+ delete headers[method];
17902
+ }
17332
17903
  });
17333
17904
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
17334
17905
  const requestInterceptorChain = [];
@@ -17410,7 +17981,7 @@ var Axios = class {
17410
17981
  }
17411
17982
  };
17412
17983
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
17413
- Axios.prototype[method] = function(url2, config) {
17984
+ Axios.prototype[method] = async function(url2, config) {
17414
17985
  return this.request(
17415
17986
  mergeConfig(config || {}, {
17416
17987
  method,
@@ -17422,7 +17993,7 @@ utils_default.forEach(["delete", "get", "head", "options"], function forEachMeth
17422
17993
  });
17423
17994
  utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
17424
17995
  function generateHTTPMethod(isForm) {
17425
- return function httpMethod(url2, data, config) {
17996
+ return async function httpMethod(url2, data, config) {
17426
17997
  return this.request(
17427
17998
  mergeConfig(config || {}, {
17428
17999
  method,
@@ -17442,7 +18013,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
17442
18013
  });
17443
18014
  var Axios_default = Axios;
17444
18015
 
17445
- // ../../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
18016
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
17446
18017
  var CancelToken = class _CancelToken {
17447
18018
  constructor(executor) {
17448
18019
  if (typeof executor !== "function") {
@@ -17540,19 +18111,19 @@ var CancelToken = class _CancelToken {
17540
18111
  };
17541
18112
  var CancelToken_default = CancelToken;
17542
18113
 
17543
- // ../../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
18114
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
17544
18115
  function spread(callback) {
17545
18116
  return function wrap(arr) {
17546
18117
  return callback.apply(null, arr);
17547
18118
  };
17548
18119
  }
17549
18120
 
17550
- // ../../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
18121
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
17551
18122
  function isAxiosError(payload) {
17552
18123
  return utils_default.isObject(payload) && payload.isAxiosError === true;
17553
18124
  }
17554
18125
 
17555
- // ../../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
18126
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
17556
18127
  var HttpStatusCode = {
17557
18128
  Continue: 100,
17558
18129
  SwitchingProtocols: 101,
@@ -17640,7 +18211,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
17640
18211
  });
17641
18212
  var HttpStatusCode_default = HttpStatusCode;
17642
18213
 
17643
- // ../../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
18214
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
17644
18215
  function createInstance(defaultConfig) {
17645
18216
  const context = new Axios_default(defaultConfig);
17646
18217
  const instance = bind(Axios_default.prototype.request, context);
@@ -17673,7 +18244,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
17673
18244
  axios.default = axios;
17674
18245
  var axios_default = axios;
17675
18246
 
17676
- // ../../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
18247
+ // ../../node_modules/.pnpm/axios@1.21.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
17677
18248
  var {
17678
18249
  Axios: Axios2,
17679
18250
  AxiosError: AxiosError2,