@alpic-ai/sdk 0.0.0-dev.ge63d8cf → 0.0.0-dev.ge65ebc4

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.
@@ -12069,34 +12069,94 @@ var require_follow_redirects = __commonJS({
12069
12069
  }
12070
12070
  });
12071
12071
 
12072
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12072
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js
12073
12073
  function bind(fn, thisArg) {
12074
12074
  return function wrap() {
12075
12075
  return fn.apply(thisArg, arguments);
12076
12076
  };
12077
12077
  }
12078
12078
 
12079
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12079
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js
12080
12080
  var { toString } = Object.prototype;
12081
12081
  var { getPrototypeOf } = Object;
12082
12082
  var { iterator, toStringTag } = Symbol;
12083
12083
  var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
12084
+ var isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
12085
+ var isPrototypeBoundary = (obj, prototype2, source) => obj === Object.prototype || !source && prototype2 === null;
12086
+ var isSafeAndFullyMutable = (obj) => {
12087
+ if (!Object.isExtensible(obj)) {
12088
+ return false;
12089
+ }
12090
+ const props = Object.getOwnPropertyNames(obj);
12091
+ if (Object.getOwnPropertySymbols) {
12092
+ props.push(...Object.getOwnPropertySymbols(obj));
12093
+ }
12094
+ return props.every((prop) => {
12095
+ if (isUnsafeObjectKey(prop)) {
12096
+ return false;
12097
+ }
12098
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
12099
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
12100
+ });
12101
+ };
12084
12102
  var hasOwnInPrototypeChain = (thing, prop) => {
12085
12103
  let obj = thing;
12086
12104
  const seen = [];
12087
- while (obj != null && obj !== Object.prototype) {
12105
+ while (obj != null) {
12088
12106
  if (seen.indexOf(obj) !== -1) {
12089
12107
  return false;
12090
12108
  }
12091
12109
  seen.push(obj);
12110
+ const prototype2 = getPrototypeOf(obj);
12111
+ if (isPrototypeBoundary(obj, prototype2, obj === thing)) {
12112
+ return false;
12113
+ }
12092
12114
  if (hasOwnProperty(obj, prop)) {
12093
12115
  return true;
12094
12116
  }
12095
- obj = getPrototypeOf(obj);
12117
+ obj = prototype2;
12096
12118
  }
12097
12119
  return false;
12098
12120
  };
12099
12121
  var getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
12122
+ var toSafeFlatObject = (thing) => {
12123
+ if (thing == null || typeof thing !== "object" && typeof thing !== "function") {
12124
+ return thing;
12125
+ }
12126
+ const sourcePrototype = getPrototypeOf(thing);
12127
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
12128
+ return thing;
12129
+ }
12130
+ const result = /* @__PURE__ */ Object.create(null);
12131
+ const merged = /* @__PURE__ */ Object.create(null);
12132
+ const seen = [];
12133
+ let current = thing;
12134
+ while (current != null) {
12135
+ if (seen.indexOf(current) !== -1) {
12136
+ break;
12137
+ }
12138
+ seen.push(current);
12139
+ const prototype2 = current === thing ? sourcePrototype : getPrototypeOf(current);
12140
+ if (isPrototypeBoundary(current, prototype2, current === thing)) {
12141
+ break;
12142
+ }
12143
+ const props = Object.getOwnPropertyNames(current);
12144
+ if (Object.getOwnPropertySymbols) {
12145
+ props.push(...Object.getOwnPropertySymbols(current));
12146
+ }
12147
+ for (const prop of props) {
12148
+ if (isUnsafeObjectKey(prop)) {
12149
+ continue;
12150
+ }
12151
+ if (!hasOwnProperty(merged, prop)) {
12152
+ result[prop] = thing[prop];
12153
+ merged[prop] = true;
12154
+ }
12155
+ }
12156
+ current = prototype2;
12157
+ }
12158
+ return result;
12159
+ };
12100
12160
  var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
12101
12161
  const str = toString.call(thing);
12102
12162
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -12131,9 +12191,9 @@ var isPlainObject = (val) => {
12131
12191
  return false;
12132
12192
  }
12133
12193
  const prototype2 = getPrototypeOf(val);
12134
- return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
12135
- // Symbol.iterator as evidence the value is a tagged/iterable type rather
12136
- // than a plain object, while ignoring keys injected onto Object.prototype.
12194
+ return (prototype2 === null || prototype2 === Object.prototype || getPrototypeOf(prototype2) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
12195
+ // evidence the value is tagged/iterable, while ignoring members reachable
12196
+ // only through shared or terminal prototype boundaries.
12137
12197
  !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
12138
12198
  };
12139
12199
  var isEmptyObject = (val) => {
@@ -12544,6 +12604,7 @@ var utils_default = {
12544
12604
  // an alias to avoid ESLint no-prototype-builtins detection
12545
12605
  hasOwnInPrototypeChain,
12546
12606
  getSafeProp,
12607
+ toSafeFlatObject,
12547
12608
  reduceDescriptors,
12548
12609
  freezeMethods,
12549
12610
  toObjectSet,
@@ -12563,7 +12624,7 @@ var utils_default = {
12563
12624
  isSafeIterable
12564
12625
  };
12565
12626
 
12566
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12627
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js
12567
12628
  var ignoreDuplicateOf = utils_default.toObjectSet([
12568
12629
  "age",
12569
12630
  "authorization",
@@ -12609,7 +12670,7 @@ var parseHeaders_default = (rawHeaders) => {
12609
12670
  return parsed;
12610
12671
  };
12611
12672
 
12612
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12673
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
12613
12674
  function trimSPorHTAB(str) {
12614
12675
  let start = 0;
12615
12676
  let end = str.length;
@@ -12647,7 +12708,7 @@ function toByteStringHeaderObject(headers) {
12647
12708
  return byteStringHeaders;
12648
12709
  }
12649
12710
 
12650
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12711
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js
12651
12712
  var $internals = /* @__PURE__ */ Symbol("internals");
12652
12713
  function normalizeHeader(header) {
12653
12714
  return header && String(header).trim().toLowerCase();
@@ -12980,7 +13041,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
12980
13041
  utils_default.freezeMethods(AxiosHeaders);
12981
13042
  var AxiosHeaders_default = AxiosHeaders;
12982
13043
 
12983
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
13044
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js
12984
13045
  var REDACTED = "[REDACTED ****]";
12985
13046
  function hasOwnOrPrototypeToJSON(source) {
12986
13047
  if (utils_default.hasOwnProp(source, "toJSON")) {
@@ -13142,11 +13203,11 @@ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
13142
13203
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
13143
13204
  var AxiosError_default = AxiosError;
13144
13205
 
13145
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
13206
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/FormData.js
13146
13207
  var import_form_data = __toESM(require_form_data(), 1);
13147
13208
  var FormData_default = import_form_data.default;
13148
13209
 
13149
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13210
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/Buffer.js
13150
13211
  var Buffer_default = {
13151
13212
  isBufferAvailable() {
13152
13213
  return typeof Buffer !== "undefined";
@@ -13156,7 +13217,7 @@ var Buffer_default = {
13156
13217
  }
13157
13218
  };
13158
13219
 
13159
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13220
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js
13160
13221
  var DEFAULT_FORM_DATA_MAX_DEPTH = 100;
13161
13222
  function isVisitable(thing) {
13162
13223
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
@@ -13182,24 +13243,16 @@ function toFormData(obj, formData, options) {
13182
13243
  throw new TypeError("target must be an object");
13183
13244
  }
13184
13245
  formData = formData || new (FormData_default || FormData)();
13185
- options = utils_default.toFlatObject(
13186
- options,
13187
- {
13188
- metaTokens: true,
13189
- dots: false,
13190
- indexes: false
13191
- },
13192
- false,
13193
- function defined(option, source) {
13194
- return !utils_default.isUndefined(source[option]);
13195
- }
13196
- );
13197
- const metaTokens = options.metaTokens;
13198
- const visitor = options.visitor || defaultVisitor;
13199
- const dots = options.dots;
13200
- const indexes = options.indexes;
13201
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
13202
- const maxDepth = options.maxDepth === void 0 ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
13246
+ const option = (name, fallback) => {
13247
+ const value = utils_default.getSafeProp(options, name);
13248
+ return utils_default.isUndefined(value) ? fallback : value;
13249
+ };
13250
+ const metaTokens = option("metaTokens", true);
13251
+ const visitor = option("visitor") || defaultVisitor;
13252
+ const dots = option("dots", false);
13253
+ const indexes = option("indexes", false);
13254
+ const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
13255
+ const maxDepth = option("maxDepth", DEFAULT_FORM_DATA_MAX_DEPTH);
13203
13256
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
13204
13257
  const stack = [];
13205
13258
  if (!utils_default.isFunction(visitor)) {
@@ -13223,7 +13276,10 @@ function toFormData(obj, formData, options) {
13223
13276
  if (Buffer_default && Buffer_default.isBufferAvailable()) {
13224
13277
  return Buffer_default.from(value);
13225
13278
  }
13226
- throw new AxiosError_default("Blob is not supported. Use a Buffer instead.", AxiosError_default.ERR_NOT_SUPPORT);
13279
+ throw new AxiosError_default(
13280
+ "Blob is not supported. Use a Buffer instead.",
13281
+ AxiosError_default.ERR_NOT_SUPPORT
13282
+ );
13227
13283
  }
13228
13284
  return value;
13229
13285
  }
@@ -13308,7 +13364,7 @@ function toFormData(obj, formData, options) {
13308
13364
  }
13309
13365
  var toFormData_default = toFormData;
13310
13366
 
13311
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13367
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
13312
13368
  function encode(str) {
13313
13369
  const charMap = {
13314
13370
  "!": "%21",
@@ -13338,7 +13394,7 @@ prototype.toString = function toString2(encoder) {
13338
13394
  };
13339
13395
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
13340
13396
 
13341
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13397
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js
13342
13398
  function encode2(val) {
13343
13399
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
13344
13400
  }
@@ -13368,10 +13424,48 @@ function buildURL(url2, params, options) {
13368
13424
  return url2;
13369
13425
  }
13370
13426
 
13371
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13427
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js
13428
+ var $internals2 = /* @__PURE__ */ Symbol("internals");
13429
+ function countHandlers(handlers) {
13430
+ return handlers ? handlers.length : 0;
13431
+ }
13432
+ function trimHandlers(handlers) {
13433
+ if (!handlers) {
13434
+ return;
13435
+ }
13436
+ while (handlers.length && handlers[handlers.length - 1] === null) {
13437
+ handlers.pop();
13438
+ }
13439
+ }
13440
+ function syncHandlerEntries(manager, internals) {
13441
+ const handlers = manager.handlers;
13442
+ const length = countHandlers(handlers);
13443
+ if (handlers !== internals.handlersRef) {
13444
+ internals.handlersRef = handlers;
13445
+ internals.handlerEntries.clear();
13446
+ } else if (length !== internals.handlersLength) {
13447
+ if (!length) {
13448
+ internals.handlerEntries.clear();
13449
+ } else {
13450
+ internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
13451
+ if (handlers[entry.index] !== entry.handler) {
13452
+ internals.handlerEntries.delete(id);
13453
+ }
13454
+ });
13455
+ }
13456
+ }
13457
+ internals.handlersLength = length;
13458
+ }
13372
13459
  var InterceptorManager = class {
13373
13460
  constructor() {
13374
13461
  this.handlers = [];
13462
+ this[$internals2] = {
13463
+ handlersRef: this.handlers,
13464
+ handlersLength: this.handlers.length,
13465
+ handlerEntries: /* @__PURE__ */ new Map(),
13466
+ iterationDepth: 0,
13467
+ nextId: 0
13468
+ };
13375
13469
  }
13376
13470
  /**
13377
13471
  * Add a new interceptor to the stack
@@ -13383,13 +13477,25 @@ var InterceptorManager = class {
13383
13477
  * @return {Number} An ID used to remove interceptor later
13384
13478
  */
13385
13479
  use(fulfilled, rejected, options) {
13386
- this.handlers.push({
13480
+ const handler = {
13387
13481
  fulfilled,
13388
13482
  rejected,
13389
13483
  synchronous: options ? options.synchronous : false,
13390
13484
  runWhen: options ? options.runWhen : null
13485
+ };
13486
+ const internals = this[$internals2];
13487
+ if (this.handlers == null) {
13488
+ this.handlers = [];
13489
+ }
13490
+ syncHandlerEntries(this, internals);
13491
+ const id = internals.nextId++;
13492
+ this.handlers.push(handler);
13493
+ internals.handlerEntries.set(id, {
13494
+ handler,
13495
+ index: this.handlers.length - 1
13391
13496
  });
13392
- return this.handlers.length - 1;
13497
+ internals.handlersLength = this.handlers.length;
13498
+ return id;
13393
13499
  }
13394
13500
  /**
13395
13501
  * Remove an interceptor from the stack
@@ -13399,8 +13505,19 @@ var InterceptorManager = class {
13399
13505
  * @returns {void}
13400
13506
  */
13401
13507
  eject(id) {
13402
- if (this.handlers[id]) {
13403
- this.handlers[id] = null;
13508
+ const internals = this[$internals2];
13509
+ syncHandlerEntries(this, internals);
13510
+ const entry = internals.handlerEntries.get(id);
13511
+ if (entry) {
13512
+ internals.handlerEntries.delete(id);
13513
+ if (this.handlers[entry.index] !== entry.handler) {
13514
+ return;
13515
+ }
13516
+ this.handlers[entry.index] = null;
13517
+ if (!internals.iterationDepth) {
13518
+ trimHandlers(this.handlers);
13519
+ internals.handlersLength = this.handlers.length;
13520
+ }
13404
13521
  }
13405
13522
  }
13406
13523
  /**
@@ -13411,6 +13528,7 @@ var InterceptorManager = class {
13411
13528
  clear() {
13412
13529
  if (this.handlers) {
13413
13530
  this.handlers = [];
13531
+ syncHandlerEntries(this, this[$internals2]);
13414
13532
  }
13415
13533
  }
13416
13534
  /**
@@ -13424,16 +13542,27 @@ var InterceptorManager = class {
13424
13542
  * @returns {void}
13425
13543
  */
13426
13544
  forEach(fn) {
13427
- utils_default.forEach(this.handlers, function forEachHandler(h) {
13428
- if (h !== null) {
13429
- fn(h);
13545
+ const internals = this[$internals2];
13546
+ syncHandlerEntries(this, internals);
13547
+ internals.iterationDepth++;
13548
+ try {
13549
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
13550
+ if (h !== null) {
13551
+ fn(h);
13552
+ }
13553
+ });
13554
+ } finally {
13555
+ if (!--internals.iterationDepth) {
13556
+ syncHandlerEntries(this, internals);
13557
+ trimHandlers(this.handlers);
13558
+ internals.handlersLength = countHandlers(this.handlers);
13430
13559
  }
13431
- });
13560
+ }
13432
13561
  }
13433
13562
  };
13434
13563
  var InterceptorManager_default = InterceptorManager;
13435
13564
 
13436
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13565
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js
13437
13566
  var transitional_default = {
13438
13567
  silentJSONParsing: true,
13439
13568
  forcedJSONParsing: true,
@@ -13443,14 +13572,14 @@ var transitional_default = {
13443
13572
  validateStatusUndefinedResolves: true
13444
13573
  };
13445
13574
 
13446
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13575
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13447
13576
  import crypto from "crypto";
13448
13577
 
13449
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13578
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
13450
13579
  import url from "url";
13451
13580
  var URLSearchParams_default = url.URLSearchParams;
13452
13581
 
13453
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13582
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/node/index.js
13454
13583
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
13455
13584
  var DIGIT = "0123456789";
13456
13585
  var ALPHABET = {
@@ -13480,7 +13609,7 @@ var node_default = {
13480
13609
  protocols: ["http", "https", "file", "data"]
13481
13610
  };
13482
13611
 
13483
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13612
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js
13484
13613
  var utils_exports = {};
13485
13614
  __export(utils_exports, {
13486
13615
  hasBrowserEnv: () => hasBrowserEnv,
@@ -13498,13 +13627,13 @@ var hasStandardBrowserWebWorkerEnv = (() => {
13498
13627
  })();
13499
13628
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
13500
13629
 
13501
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13630
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js
13502
13631
  var platform_default = {
13503
13632
  ...utils_exports,
13504
13633
  ...node_default
13505
13634
  };
13506
13635
 
13507
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13636
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
13508
13637
  function toURLEncodedForm(data, options) {
13509
13638
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
13510
13639
  visitor: function(value, key, path, helpers) {
@@ -13518,7 +13647,7 @@ function toURLEncodedForm(data, options) {
13518
13647
  });
13519
13648
  }
13520
13649
 
13521
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13650
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js
13522
13651
  var MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
13523
13652
  function throwIfDepthExceeded(index) {
13524
13653
  if (index > MAX_DEPTH) {
@@ -13586,7 +13715,23 @@ function formDataToJSON(formData) {
13586
13715
  }
13587
13716
  var formDataToJSON_default = formDataToJSON;
13588
13717
 
13589
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13718
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js
13719
+ var methodList = Object.freeze([
13720
+ "get",
13721
+ "delete",
13722
+ "head",
13723
+ "options",
13724
+ "post",
13725
+ "put",
13726
+ "patch",
13727
+ "purge",
13728
+ "link",
13729
+ "unlink",
13730
+ "query"
13731
+ ]);
13732
+ var methodList_default = methodList;
13733
+
13734
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js
13590
13735
  var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
13591
13736
  function stringifySafely2(rawValue, parser, encoder) {
13592
13737
  if (utils_default.isString(rawValue)) {
@@ -13698,12 +13843,12 @@ var defaults = {
13698
13843
  }
13699
13844
  }
13700
13845
  };
13701
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
13846
+ utils_default.forEach(methodList_default, (method) => {
13702
13847
  defaults.headers[method] = {};
13703
13848
  });
13704
13849
  var defaults_default = defaults;
13705
13850
 
13706
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13851
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js
13707
13852
  function transformData(fns, response) {
13708
13853
  const config = this || defaults_default;
13709
13854
  const context = response || config;
@@ -13716,12 +13861,12 @@ function transformData(fns, response) {
13716
13861
  return data;
13717
13862
  }
13718
13863
 
13719
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13864
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js
13720
13865
  function isCancel(value) {
13721
13866
  return !!(value && value.__CANCEL__);
13722
13867
  }
13723
13868
 
13724
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13869
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js
13725
13870
  var CanceledError = class extends AxiosError_default {
13726
13871
  /**
13727
13872
  * A `CanceledError` is an object that is thrown when an operation is canceled.
@@ -13740,7 +13885,7 @@ var CanceledError = class extends AxiosError_default {
13740
13885
  };
13741
13886
  var CanceledError_default = CanceledError;
13742
13887
 
13743
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13888
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js
13744
13889
  function settle(resolve, reject, response) {
13745
13890
  const validateStatus2 = response.config.validateStatus;
13746
13891
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -13756,7 +13901,7 @@ function settle(resolve, reject, response) {
13756
13901
  }
13757
13902
  }
13758
13903
 
13759
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13904
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
13760
13905
  function isAbsoluteURL(url2) {
13761
13906
  if (typeof url2 !== "string") {
13762
13907
  return false;
@@ -13764,7 +13909,7 @@ function isAbsoluteURL(url2) {
13764
13909
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
13765
13910
  }
13766
13911
 
13767
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13912
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js
13768
13913
  function combineURLs(baseURL, relativeURL) {
13769
13914
  if (!relativeURL) {
13770
13915
  return baseURL;
@@ -13776,19 +13921,21 @@ function combineURLs(baseURL, relativeURL) {
13776
13921
  return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
13777
13922
  }
13778
13923
 
13779
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13780
- var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13781
- var httpProtocolControlCharacters = /[\t\n\r]/g;
13782
- function stripLeadingC0ControlOrSpace(url2) {
13783
- let i = 0;
13784
- while (i < url2.length && url2.charCodeAt(i) <= 32) {
13785
- i++;
13786
- }
13787
- return url2.slice(i);
13788
- }
13924
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
13925
+ var urlParserControlCharacters = /[\t\n\r]/g;
13789
13926
  function normalizeURLForProtocolCheck(url2) {
13790
- return stripLeadingC0ControlOrSpace(url2).replace(httpProtocolControlCharacters, "");
13927
+ if (typeof url2 !== "string") {
13928
+ return url2;
13929
+ }
13930
+ let start = 0;
13931
+ while (start < url2.length && url2.charCodeAt(start) <= 32) {
13932
+ start++;
13933
+ }
13934
+ return url2.slice(start).replace(urlParserControlCharacters, "");
13791
13935
  }
13936
+
13937
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js
13938
+ var malformedHttpProtocol = /^https?:(?!\/\/)/i;
13792
13939
  function redactFragment(fragment) {
13793
13940
  if (!fragment) {
13794
13941
  return fragment;
@@ -13899,7 +14046,7 @@ function getEnv(key) {
13899
14046
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
13900
14047
  }
13901
14048
 
13902
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14049
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13903
14050
  var import_https_proxy_agent = __toESM(require_dist(), 1);
13904
14051
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
13905
14052
  import http from "http";
@@ -13909,17 +14056,17 @@ import util3 from "util";
13909
14056
  import { resolve as resolvePath } from "path";
13910
14057
  import zlib from "zlib";
13911
14058
 
13912
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
13913
- var VERSION = "1.19.0";
14059
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js
14060
+ var VERSION = "1.20.0";
13914
14061
 
13915
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
14062
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js
13916
14063
  function parseProtocol(url2) {
13917
14064
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
13918
14065
  return match && match[1] || "";
13919
14066
  }
13920
14067
 
13921
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
13922
- var DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
14068
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/fromDataURI.js
14069
+ var DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
13923
14070
  function fromDataURI(uri, asBlob, options) {
13924
14071
  const _Blob = options && options.Blob || platform_default.classes.Blob;
13925
14072
  const protocol = parseProtocol(uri);
@@ -13954,10 +14101,10 @@ function fromDataURI(uri, asBlob, options) {
13954
14101
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
13955
14102
  }
13956
14103
 
13957
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14104
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
13958
14105
  import stream3 from "stream";
13959
14106
 
13960
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
14107
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js
13961
14108
  var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
13962
14109
  function setFormDataHeaders(headers, formHeaders, policy) {
13963
14110
  if (policy !== "content-only") {
@@ -13971,7 +14118,7 @@ function setFormDataHeaders(headers, formHeaders, policy) {
13971
14118
  });
13972
14119
  }
13973
14120
 
13974
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
14121
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
13975
14122
  import stream from "stream";
13976
14123
  var kInternals = /* @__PURE__ */ Symbol("internals");
13977
14124
  var AxiosTransformStream = class extends stream.Transform {
@@ -14094,14 +14241,14 @@ var AxiosTransformStream = class extends stream.Transform {
14094
14241
  };
14095
14242
  var AxiosTransformStream_default = AxiosTransformStream;
14096
14243
 
14097
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14244
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14098
14245
  import { EventEmitter } from "events";
14099
14246
 
14100
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14247
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14101
14248
  import util from "util";
14102
14249
  import { Readable } from "stream";
14103
14250
 
14104
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
14251
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/readBlob.js
14105
14252
  var { asyncIterator } = Symbol;
14106
14253
  var readBlob = async function* (blob) {
14107
14254
  if (blob.stream) {
@@ -14116,7 +14263,7 @@ var readBlob = async function* (blob) {
14116
14263
  };
14117
14264
  var readBlob_default = readBlob;
14118
14265
 
14119
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14266
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToStream.js
14120
14267
  var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
14121
14268
  var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
14122
14269
  var CRLF = "\r\n";
@@ -14201,7 +14348,7 @@ var formDataToStream = (form, headersHandler, options) => {
14201
14348
  };
14202
14349
  var formDataToStream_default = formDataToStream;
14203
14350
 
14204
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14351
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
14205
14352
  import stream2 from "stream";
14206
14353
  var ZlibHeaderTransformStream = class extends stream2.Transform {
14207
14354
  __transform(chunk, encoding, callback) {
@@ -14223,7 +14370,7 @@ var ZlibHeaderTransformStream = class extends stream2.Transform {
14223
14370
  };
14224
14371
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
14225
14372
 
14226
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14373
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/Http2Sessions.js
14227
14374
  import http2 from "http2";
14228
14375
  import util2 from "util";
14229
14376
  var Http2Sessions = class {
@@ -14232,6 +14379,7 @@ var Http2Sessions = class {
14232
14379
  }
14233
14380
  getSession(authority, options) {
14234
14381
  options = Object.assign(
14382
+ /* @__PURE__ */ Object.create(null),
14235
14383
  {
14236
14384
  sessionTimeout: 1e3
14237
14385
  },
@@ -14297,6 +14445,7 @@ var Http2Sessions = class {
14297
14445
  };
14298
14446
  }
14299
14447
  session.once("close", removeSession);
14448
+ session.once("error", removeSession);
14300
14449
  let entry = [session, options];
14301
14450
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
14302
14451
  return session;
@@ -14304,7 +14453,7 @@ var Http2Sessions = class {
14304
14453
  };
14305
14454
  var Http2Sessions_default = Http2Sessions;
14306
14455
 
14307
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14456
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/callbackify.js
14308
14457
  var callbackify = (fn, reducer) => {
14309
14458
  return utils_default.isAsyncFn(fn) ? function(...args) {
14310
14459
  const cb = args.pop();
@@ -14319,8 +14468,15 @@ var callbackify = (fn, reducer) => {
14319
14468
  };
14320
14469
  var callbackify_default = callbackify;
14321
14470
 
14322
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14471
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/shouldBypassProxy.js
14323
14472
  var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "0.0.0.0"]);
14473
+ var trimTrailingDots = (value) => {
14474
+ let end = value.length;
14475
+ while (end && value.charCodeAt(end - 1) === 46) {
14476
+ end--;
14477
+ }
14478
+ return end === value.length ? value : value.slice(0, end);
14479
+ };
14324
14480
  var isIPv4Loopback = (host) => {
14325
14481
  const parts = host.split(".");
14326
14482
  if (parts.length !== 4) return false;
@@ -14353,7 +14509,7 @@ var normalizeIPAddress = (host) => {
14353
14509
  if (h.charAt(0) === "[" && h.charAt(h.length - 1) === "]") {
14354
14510
  h = h.slice(1, -1);
14355
14511
  }
14356
- h = h.replace(/\.+$/, "");
14512
+ h = trimTrailingDots(h);
14357
14513
  if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
14358
14514
  const parts = h.split(".");
14359
14515
  if (parts.some((p) => p === "")) return host;
@@ -14465,6 +14621,40 @@ var unmapIPv4MappedIPv6 = (host) => {
14465
14621
  }
14466
14622
  return host;
14467
14623
  };
14624
+ var IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
14625
+ var ipv4ToBytes = (host) => {
14626
+ const parts = host.split(".");
14627
+ return parts.length === 4 && parts.every((part) => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
14628
+ };
14629
+ var IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
14630
+ var ipv6ToBytes = (host) => {
14631
+ const halves = host.split("::");
14632
+ if (halves.length > 2) {
14633
+ return null;
14634
+ }
14635
+ const groups = halves[0] ? halves[0].split(":") : [];
14636
+ if (halves.length === 2) {
14637
+ const rear = halves[1] ? halves[1].split(":") : [];
14638
+ const missing = 8 - groups.length - rear.length;
14639
+ if (missing < 1) {
14640
+ return null;
14641
+ }
14642
+ groups.push(...new Array(missing).fill("0"), ...rear);
14643
+ }
14644
+ if (groups.length !== 8 || groups.some((group) => !IPV6_GROUP_RE.test(group))) {
14645
+ return null;
14646
+ }
14647
+ return groups.flatMap((group) => {
14648
+ const value = Number.parseInt(group, 16);
14649
+ return [value >> 8 & 255, value & 255];
14650
+ });
14651
+ };
14652
+ var ipToBytes = (host) => {
14653
+ if (typeof host !== "string" || !host) {
14654
+ return null;
14655
+ }
14656
+ return host.indexOf(":") !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
14657
+ };
14468
14658
  var normalizeNoProxyHost = (hostname) => {
14469
14659
  if (!hostname) {
14470
14660
  return hostname;
@@ -14472,13 +14662,90 @@ var normalizeNoProxyHost = (hostname) => {
14472
14662
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
14473
14663
  hostname = hostname.slice(1, -1);
14474
14664
  }
14475
- const trimmed = hostname.replace(/\.+$/, "");
14665
+ const trimmed = trimTrailingDots(hostname);
14476
14666
  const ipv4 = normalizeIPAddress(trimmed);
14477
14667
  if (ipv4 !== trimmed) {
14478
14668
  return ipv4;
14479
14669
  }
14480
14670
  return unmapIPv4MappedIPv6(trimmed);
14481
14671
  };
14672
+ var normalizeCidrBase = (input) => {
14673
+ let base = input;
14674
+ const startsBracket = base.charAt(0) === "[";
14675
+ const endsBracket = base.charAt(base.length - 1) === "]";
14676
+ const hasBracket = base.includes("[") || base.includes("]");
14677
+ if (startsBracket || endsBracket) {
14678
+ if (!startsBracket || !endsBracket) {
14679
+ return null;
14680
+ }
14681
+ base = base.slice(1, -1);
14682
+ if (base.indexOf(":") === -1 || base.includes("[") || base.includes("]")) {
14683
+ return null;
14684
+ }
14685
+ } else if (hasBracket) {
14686
+ return null;
14687
+ }
14688
+ if (!base || base.charAt(base.length - 1) === ".") {
14689
+ return null;
14690
+ }
14691
+ const wasIPv6 = base.indexOf(":") !== -1;
14692
+ if (wasIPv6) {
14693
+ try {
14694
+ base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
14695
+ } catch (_err) {
14696
+ return null;
14697
+ }
14698
+ } else {
14699
+ base = normalizeIPAddress(base);
14700
+ if (!ipv4ToBytes(base)) {
14701
+ return null;
14702
+ }
14703
+ }
14704
+ return { normalized: unmapIPv4MappedIPv6(base), wasIPv6 };
14705
+ };
14706
+ var CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
14707
+ var parseCidrEntry = (entry) => {
14708
+ if (entry.indexOf("/") === -1) {
14709
+ return void 0;
14710
+ }
14711
+ const match = CIDR_ENTRY_RE.exec(entry);
14712
+ if (!match) {
14713
+ return null;
14714
+ }
14715
+ let prefix = Number(match[2]);
14716
+ const parsedBase = normalizeCidrBase(match[1]);
14717
+ if (!parsedBase) {
14718
+ return null;
14719
+ }
14720
+ const { normalized, wasIPv6 } = parsedBase;
14721
+ if (wasIPv6 && normalized.indexOf(":") === -1) {
14722
+ if (prefix < 96) {
14723
+ return null;
14724
+ }
14725
+ prefix -= 96;
14726
+ }
14727
+ const bytes = ipToBytes(normalized);
14728
+ if (!bytes || prefix > bytes.length * 8) {
14729
+ return null;
14730
+ }
14731
+ return { bytes, prefix };
14732
+ };
14733
+ var isInSubnet = (addressBytes, networkBytes, prefix) => {
14734
+ const fullBytes = prefix >> 3;
14735
+ for (let i = 0; i < fullBytes; i++) {
14736
+ if (addressBytes[i] !== networkBytes[i]) {
14737
+ return false;
14738
+ }
14739
+ }
14740
+ const remainingBits = prefix & 7;
14741
+ if (remainingBits) {
14742
+ const mask = 255 << 8 - remainingBits & 255;
14743
+ if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
14744
+ return false;
14745
+ }
14746
+ }
14747
+ return true;
14748
+ };
14482
14749
  function shouldBypassProxy(location) {
14483
14750
  let parsed;
14484
14751
  try {
@@ -14495,6 +14762,7 @@ function shouldBypassProxy(location) {
14495
14762
  }
14496
14763
  const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
14497
14764
  const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
14765
+ const hostnameBytes = ipToBytes(hostname);
14498
14766
  return noProxy.split(/[\s,]+/).some((entry) => {
14499
14767
  if (!entry) {
14500
14768
  return false;
@@ -14502,6 +14770,10 @@ function shouldBypassProxy(location) {
14502
14770
  if (entry === "*") {
14503
14771
  return true;
14504
14772
  }
14773
+ const cidr = parseCidrEntry(entry);
14774
+ if (cidr !== void 0) {
14775
+ return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
14776
+ }
14505
14777
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
14506
14778
  entryHost = normalizeNoProxyHost(entryHost);
14507
14779
  if (!entryHost) {
@@ -14520,7 +14792,7 @@ function shouldBypassProxy(location) {
14520
14792
  });
14521
14793
  }
14522
14794
 
14523
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14795
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js
14524
14796
  function speedometer(samplesCount, min) {
14525
14797
  samplesCount = samplesCount || 10;
14526
14798
  const bytes = new Array(samplesCount);
@@ -14556,7 +14828,7 @@ function speedometer(samplesCount, min) {
14556
14828
  }
14557
14829
  var speedometer_default = speedometer;
14558
14830
 
14559
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14831
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js
14560
14832
  function throttle(fn, freq) {
14561
14833
  let timestamp = 0;
14562
14834
  let threshold = 1e3 / freq;
@@ -14587,16 +14859,17 @@ function throttle(fn, freq) {
14587
14859
  }
14588
14860
  };
14589
14861
  const flush = () => lastArgs && invoke(lastArgs);
14590
- return [throttled, flush];
14862
+ const flushWith = (...args) => invoke(args);
14863
+ return [throttled, flush, flushWith];
14591
14864
  }
14592
14865
  var throttle_default = throttle;
14593
14866
 
14594
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14867
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js
14595
14868
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
14596
14869
  let bytesNotified = 0;
14597
14870
  const _speedometer = speedometer_default(50, 250);
14598
14871
  return throttle_default((e) => {
14599
- if (!e || typeof e.loaded !== "number") {
14872
+ if (!e || !utils_default.isNumber(e.loaded)) {
14600
14873
  return;
14601
14874
  }
14602
14875
  const rawLoaded = e.loaded;
@@ -14632,7 +14905,7 @@ var progressEventDecorator = (total, throttled) => {
14632
14905
  };
14633
14906
  var asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
14634
14907
 
14635
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14908
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
14636
14909
  var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
14637
14910
  var isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
14638
14911
  var hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
@@ -14735,7 +15008,7 @@ function estimateDataURLBufferAllocation(url2) {
14735
15008
  return estimateDataURLBytes(url2, estimateBase64BufferAllocation);
14736
15009
  }
14737
15010
 
14738
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
15011
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/http.js
14739
15012
  var zlibOptions = {
14740
15013
  flush: zlib.constants.Z_SYNC_FLUSH,
14741
15014
  finishFlush: zlib.constants.Z_SYNC_FLUSH
@@ -14757,6 +15030,12 @@ var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
14757
15030
  var isHttps = /https:?/;
14758
15031
  var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
14759
15032
  var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
15033
+ function handleSocketError(err) {
15034
+ const current = this[kAxiosCurrentReq];
15035
+ if (current && !current.destroyed) {
15036
+ current.destroy(err);
15037
+ }
15038
+ }
14760
15039
  var kAxiosInstalledTunnel = /* @__PURE__ */ Symbol("axios.http.installedTunnel");
14761
15040
  var tunnelingAgentCache = /* @__PURE__ */ new Map();
14762
15041
  var tunnelingAgentCacheUser = /* @__PURE__ */ new WeakMap();
@@ -14859,10 +15138,10 @@ function isSameOriginRedirect(redirectOptions, requestDetails) {
14859
15138
  return false;
14860
15139
  }
14861
15140
  }
14862
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
15141
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
14863
15142
  let proxy = configProxy;
14864
15143
  const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
14865
- if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
15144
+ if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
14866
15145
  const proxyUrl = getProxyForUrl(location);
14867
15146
  if (proxyUrl) {
14868
15147
  if (!shouldBypassProxy(location)) {
@@ -14959,9 +15238,13 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
14959
15238
  redirectOptions.href,
14960
15239
  true,
14961
15240
  configHttpsAgent,
14962
- configHttpAgent
15241
+ configHttpAgent,
15242
+ allowEnvProxy
14963
15243
  );
14964
15244
  };
15245
+ return Boolean(
15246
+ proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent)
15247
+ );
14965
15248
  }
14966
15249
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
14967
15250
  var wrapAsync = (asyncExecutor) => {
@@ -14986,7 +15269,7 @@ var wrapAsync = (asyncExecutor) => {
14986
15269
  };
14987
15270
  var resolveFamily = ({ address, family }) => {
14988
15271
  if (!utils_default.isString(address)) {
14989
- throw TypeError("address must be a string");
15272
+ throw new AxiosError_default("address must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE);
14990
15273
  }
14991
15274
  return {
14992
15275
  address,
@@ -14994,6 +15277,30 @@ var resolveFamily = ({ address, family }) => {
14994
15277
  };
14995
15278
  };
14996
15279
  var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
15280
+ var normalizedLookupCache = /* @__PURE__ */ new WeakMap();
15281
+ var normalizeLookup = (lookup) => {
15282
+ let normalized = normalizedLookupCache.get(lookup);
15283
+ if (normalized) {
15284
+ return normalized;
15285
+ }
15286
+ const callbackLookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
15287
+ normalized = (hostname, opt, cb) => {
15288
+ callbackLookup(hostname, opt, (err, arg0, arg1) => {
15289
+ if (err) {
15290
+ return cb(err);
15291
+ }
15292
+ let addresses;
15293
+ try {
15294
+ addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
15295
+ } catch (error) {
15296
+ return cb(error);
15297
+ }
15298
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
15299
+ });
15300
+ };
15301
+ normalizedLookupCache.set(lookup, normalized);
15302
+ return normalized;
15303
+ };
14997
15304
  var http2Transport = {
14998
15305
  request(options, cb) {
14999
15306
  const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
@@ -15030,6 +15337,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15030
15337
  let family = own2("family");
15031
15338
  let httpVersion = own2("httpVersion");
15032
15339
  if (httpVersion === void 0) httpVersion = 1;
15340
+ const rawHttpVersion = httpVersion;
15033
15341
  let http2Options = own2("http2Options");
15034
15342
  const httpAgent = own2("httpAgent");
15035
15343
  const httpsAgent = own2("httpsAgent");
@@ -15046,25 +15354,32 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15046
15354
  let rejected = false;
15047
15355
  let req;
15048
15356
  let connectPhaseTimer;
15049
- httpVersion = +httpVersion;
15357
+ try {
15358
+ httpVersion = +httpVersion;
15359
+ } catch (err) {
15360
+ throw new AxiosError_default(
15361
+ "Invalid protocol version: value is not a number",
15362
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15363
+ config
15364
+ );
15365
+ }
15050
15366
  if (Number.isNaN(httpVersion)) {
15051
- throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
15367
+ throw new AxiosError_default(
15368
+ `Invalid protocol version: '${rawHttpVersion}' is not a number`,
15369
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15370
+ config
15371
+ );
15052
15372
  }
15053
15373
  if (httpVersion !== 1 && httpVersion !== 2) {
15054
- throw TypeError(`Unsupported protocol version '${httpVersion}'`);
15374
+ throw new AxiosError_default(
15375
+ `Unsupported protocol version '${httpVersion}'`,
15376
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
15377
+ config
15378
+ );
15055
15379
  }
15056
15380
  const isHttp2 = httpVersion === 2;
15057
15381
  if (lookup) {
15058
- const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
15059
- lookup = (hostname, opt, cb) => {
15060
- _lookup(hostname, opt, (err, arg0, arg1) => {
15061
- if (err) {
15062
- return cb(err);
15063
- }
15064
- const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
15065
- opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
15066
- });
15067
- };
15382
+ lookup = normalizeLookup(lookup);
15068
15383
  }
15069
15384
  const abortEmitter = new EventEmitter();
15070
15385
  function abort(reason) {
@@ -15307,6 +15622,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15307
15622
  utils_default.hasOwnProp(transitional2, "advertiseZstdAcceptEncoding") && transitional2.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING,
15308
15623
  false
15309
15624
  );
15625
+ if (isHttp2 && lookup) {
15626
+ http2Options = Object.assign(/* @__PURE__ */ Object.create(null), http2Options, { lookup });
15627
+ }
15310
15628
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
15311
15629
  path,
15312
15630
  method,
@@ -15317,9 +15635,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15317
15635
  family,
15318
15636
  beforeRedirect: dispatchBeforeRedirect,
15319
15637
  beforeRedirects: /* @__PURE__ */ Object.create(null),
15320
- http2Options
15638
+ http2Options,
15639
+ createConnection: void 0
15321
15640
  });
15322
15641
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
15642
+ let proxyApplied = false;
15323
15643
  if (socketPath) {
15324
15644
  if (typeof socketPath !== "string") {
15325
15645
  return reject(
@@ -15347,13 +15667,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15347
15667
  } else {
15348
15668
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
15349
15669
  options.port = parsed.port;
15350
- setProxy(
15670
+ proxyApplied = setProxy(
15351
15671
  options,
15352
15672
  configProxy,
15353
15673
  protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path,
15354
15674
  false,
15355
15675
  httpsAgent,
15356
- httpAgent
15676
+ httpAgent,
15677
+ // The HTTP/2 transport connects independently of HTTP/1 agents, so it
15678
+ // cannot apply either axios-resolved or agent-local environment proxies.
15679
+ // Explicit proxy config is still processed and rejected below.
15680
+ !isHttp2
15357
15681
  );
15358
15682
  }
15359
15683
  let transport;
@@ -15364,6 +15688,15 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15364
15688
  options.agent = isHttpsRequest ? httpsAgent : httpAgent;
15365
15689
  }
15366
15690
  if (isHttp2) {
15691
+ if (proxyApplied) {
15692
+ return reject(
15693
+ new AxiosError_default(
15694
+ "HTTP/2 requests with a proxy are not supported",
15695
+ AxiosError_default.ERR_NOT_SUPPORT,
15696
+ config
15697
+ )
15698
+ );
15699
+ }
15367
15700
  transport = http2Transport;
15368
15701
  } else {
15369
15702
  const configTransport = own2("transport");
@@ -15451,7 +15784,11 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15451
15784
  transformStream,
15452
15785
  progressEventDecorator(
15453
15786
  responseLength,
15454
- progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3)
15787
+ progressEventReducer(
15788
+ asyncDecorator(onDownloadProgress, scheduleProgress),
15789
+ true,
15790
+ 3
15791
+ )
15455
15792
  )
15456
15793
  )
15457
15794
  );
@@ -15600,12 +15937,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15600
15937
  socket.setKeepAlive(true, 1e3 * 60);
15601
15938
  }
15602
15939
  if (!socket[kAxiosSocketListener]) {
15603
- socket.on("error", function handleSocketError(err) {
15604
- const current = socket[kAxiosCurrentReq];
15605
- if (current && !current.destroyed) {
15606
- current.destroy(err);
15607
- }
15608
- });
15940
+ socket.on("error", handleSocketError);
15609
15941
  socket[kAxiosSocketListener] = true;
15610
15942
  }
15611
15943
  socket[kAxiosCurrentReq] = req;
@@ -15697,7 +16029,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
15697
16029
  });
15698
16030
  };
15699
16031
 
15700
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
16032
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
15701
16033
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
15702
16034
  url2 = new URL(url2, platform_default.origin);
15703
16035
  return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
@@ -15706,7 +16038,7 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
15706
16038
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
15707
16039
  ) : () => true;
15708
16040
 
15709
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
16041
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js
15710
16042
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
15711
16043
  // Standard browser envs support document.cookie
15712
16044
  {
@@ -15763,7 +16095,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? (
15763
16095
  }
15764
16096
  );
15765
16097
 
15766
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
16098
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js
15767
16099
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
15768
16100
  var ownEnumerableKeys = (thing) => {
15769
16101
  if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
@@ -15850,7 +16182,7 @@ function mergeConfig(config1, config2) {
15850
16182
  transformResponse: defaultToConfig2,
15851
16183
  paramsSerializer: defaultToConfig2,
15852
16184
  timeout: defaultToConfig2,
15853
- timeoutMessage: defaultToConfig2,
16185
+ timeoutErrorMessage: defaultToConfig2,
15854
16186
  withCredentials: defaultToConfig2,
15855
16187
  withXSRFToken: defaultToConfig2,
15856
16188
  adapter: defaultToConfig2,
@@ -15891,7 +16223,7 @@ function mergeConfig(config1, config2) {
15891
16223
  return config;
15892
16224
  }
15893
16225
 
15894
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
16226
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js
15895
16227
  var encodeUTF8 = (str) => encodeURIComponent(str).replace(
15896
16228
  /%([0-9A-F]{2})/gi,
15897
16229
  (_, hex) => String.fromCharCode(parseInt(hex, 16))
@@ -15927,10 +16259,11 @@ function resolveConfig(config) {
15927
16259
  }
15928
16260
  }
15929
16261
  if (utils_default.isFormData(data)) {
16262
+ const getHeaders = utils_default.getSafeProp(data, "getHeaders");
15930
16263
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) {
15931
16264
  headers.setContentType(void 0);
15932
- } else if (utils_default.isFunction(data.getHeaders)) {
15933
- setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
16265
+ } else if (utils_default.isFunction(getHeaders)) {
16266
+ setFormDataHeaders(headers, getHeaders.call(data), own2("formDataHeaderPolicy"));
15934
16267
  }
15935
16268
  }
15936
16269
  if (platform_default.hasStandardBrowserEnv) {
@@ -15949,7 +16282,7 @@ function resolveConfig(config) {
15949
16282
  }
15950
16283
  var resolveConfig_default = resolveConfig;
15951
16284
 
15952
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
16285
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js
15953
16286
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
15954
16287
  var xhr_default = isXHRAdapterSupported && function(config) {
15955
16288
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -15959,7 +16292,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15959
16292
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
15960
16293
  let onCanceled;
15961
16294
  let uploadThrottled, downloadThrottled;
15962
- let flushUpload, flushDownload;
16295
+ let flushUpload, flushDownload, flushDownloadWithEvent;
15963
16296
  function done() {
15964
16297
  flushUpload && flushUpload();
15965
16298
  flushDownload && flushDownload();
@@ -15969,7 +16302,27 @@ var xhr_default = isXHRAdapterSupported && function(config) {
15969
16302
  let request = new XMLHttpRequest();
15970
16303
  request.open(_config.method.toUpperCase(), _config.url, true);
15971
16304
  request.timeout = _config.timeout;
15972
- function onloadend() {
16305
+ function onloadend(event) {
16306
+ if (!request) {
16307
+ return;
16308
+ }
16309
+ if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
16310
+ reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
16311
+ done();
16312
+ request = null;
16313
+ return;
16314
+ }
16315
+ try {
16316
+ if (event) {
16317
+ flushDownloadWithEvent && flushDownloadWithEvent(event);
16318
+ } else {
16319
+ flushDownload && flushDownload();
16320
+ }
16321
+ } catch (err) {
16322
+ setTimeout(() => {
16323
+ throw err;
16324
+ });
16325
+ }
15973
16326
  if (!request) {
15974
16327
  return;
15975
16328
  }
@@ -16057,7 +16410,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16057
16410
  request.responseType = _config.responseType;
16058
16411
  }
16059
16412
  if (onDownloadProgress) {
16060
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
16413
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
16414
+ onDownloadProgress,
16415
+ true
16416
+ );
16061
16417
  request.addEventListener("progress", downloadThrottled);
16062
16418
  }
16063
16419
  if (onUploadProgress && request.upload) {
@@ -16096,7 +16452,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
16096
16452
  });
16097
16453
  };
16098
16454
 
16099
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
16455
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js
16100
16456
  var composeSignals = (signals, timeout) => {
16101
16457
  signals = signals ? signals.filter(Boolean) : [];
16102
16458
  if (!timeout && !signals.length) {
@@ -16145,7 +16501,7 @@ var composeSignals = (signals, timeout) => {
16145
16501
  };
16146
16502
  var composeSignals_default = composeSignals;
16147
16503
 
16148
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
16504
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js
16149
16505
  var streamChunk = function* (chunk, chunkSize) {
16150
16506
  let len = chunk.byteLength;
16151
16507
  if (!chunkSize || len < chunkSize) {
@@ -16225,8 +16581,19 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
16225
16581
  );
16226
16582
  };
16227
16583
 
16228
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
16584
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js
16229
16585
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
16586
+ var DEFAULT_REQUEST_OPTIONS = {
16587
+ cache: "default",
16588
+ redirect: "follow",
16589
+ referrer: "about:client",
16590
+ referrerPolicy: "",
16591
+ mode: "cors",
16592
+ integrity: "",
16593
+ keepalive: false,
16594
+ priority: "auto",
16595
+ window: null
16596
+ };
16230
16597
  var { isFunction: isFunction2 } = utils_default;
16231
16598
  var encodeUTF82 = (str) => encodeURIComponent(str).replace(
16232
16599
  /%([0-9A-F]{2})/gi,
@@ -16357,7 +16724,8 @@ var factory = (env) => {
16357
16724
  withCredentials = "same-origin",
16358
16725
  fetchOptions,
16359
16726
  maxContentLength,
16360
- maxBodyLength
16727
+ maxBodyLength,
16728
+ maxRedirects
16361
16729
  } = resolveConfig_default(config);
16362
16730
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
16363
16731
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
@@ -16487,17 +16855,44 @@ var factory = (env) => {
16487
16855
  }
16488
16856
  }
16489
16857
  headers.set("User-Agent", "axios/" + VERSION, false);
16490
- const resolvedOptions = {
16491
- ...fetchOptions,
16858
+ const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(/* @__PURE__ */ Object.create(null), fetchOptions);
16859
+ if (safeFetchOptions) {
16860
+ delete safeFetchOptions.body;
16861
+ delete safeFetchOptions.headers;
16862
+ delete safeFetchOptions.method;
16863
+ delete safeFetchOptions.signal;
16864
+ delete safeFetchOptions.duplex;
16865
+ delete safeFetchOptions.credentials;
16866
+ }
16867
+ const resolvedOptions = Object.assign(/* @__PURE__ */ Object.create(null), safeFetchOptions, {
16492
16868
  signal: composedSignal,
16493
16869
  method: method.toUpperCase(),
16494
16870
  headers: toByteStringHeaderObject(headers.normalize()),
16495
16871
  body: data,
16496
16872
  duplex: "half",
16497
16873
  credentials: isCredentialsSupported ? withCredentials : void 0
16498
- };
16874
+ });
16875
+ if (isRequestSupported) {
16876
+ utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
16877
+ if (resolvedOptions[key] === void 0) {
16878
+ resolvedOptions[key] = value;
16879
+ }
16880
+ });
16881
+ if (resolvedOptions.signal === void 0) {
16882
+ resolvedOptions.signal = null;
16883
+ }
16884
+ if (resolvedOptions.body === void 0) {
16885
+ resolvedOptions.body = null;
16886
+ }
16887
+ }
16888
+ if (maxRedirects === 0) {
16889
+ resolvedOptions.redirect = "manual";
16890
+ if (safeFetchOptions) {
16891
+ safeFetchOptions.redirect = "manual";
16892
+ }
16893
+ }
16499
16894
  request = isRequestSupported && new Request(url2, resolvedOptions);
16500
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
16895
+ let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url2, resolvedOptions));
16501
16896
  const responseHeaders = AxiosHeaders_default.from(response.headers);
16502
16897
  if (hasMaxContentLength) {
16503
16898
  const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
@@ -16642,7 +17037,7 @@ var getFetch = (config) => {
16642
17037
  };
16643
17038
  var adapter = getFetch();
16644
17039
 
16645
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
17040
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js
16646
17041
  var knownAdapters = {
16647
17042
  http: http_default,
16648
17043
  xhr: xhr_default,
@@ -16707,7 +17102,7 @@ var adapters_default = {
16707
17102
  adapters: knownAdapters
16708
17103
  };
16709
17104
 
16710
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
17105
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js
16711
17106
  function throwIfCancellationRequested(config) {
16712
17107
  if (config.cancelToken) {
16713
17108
  config.cancelToken.throwIfRequested();
@@ -16716,9 +17111,10 @@ function throwIfCancellationRequested(config) {
16716
17111
  throw new CanceledError_default(null, config);
16717
17112
  }
16718
17113
  }
16719
- function dispatchRequest(config) {
17114
+ function dispatchRequest(_config) {
17115
+ const config = utils_default.toSafeFlatObject(_config);
16720
17116
  throwIfCancellationRequested(config);
16721
- config.headers = AxiosHeaders_default.from(config.headers);
17117
+ config.headers = AxiosHeaders_default.from(utils_default.getSafeProp(config, "headers"));
16722
17118
  config.data = transformData.call(config, config.transformRequest);
16723
17119
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
16724
17120
  config.headers.setContentType("application/x-www-form-urlencoded", false);
@@ -16758,7 +17154,7 @@ function dispatchRequest(config) {
16758
17154
  );
16759
17155
  }
16760
17156
 
16761
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
17157
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js
16762
17158
  var validators = {};
16763
17159
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
16764
17160
  validators[type] = function validator(thing) {
@@ -16825,7 +17221,7 @@ var validator_default = {
16825
17221
  validators
16826
17222
  };
16827
17223
 
16828
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
17224
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js
16829
17225
  var validators2 = validator_default.validators;
16830
17226
  var Axios = class {
16831
17227
  constructor(instanceConfig) {
@@ -16848,16 +17244,15 @@ var Axios = class {
16848
17244
  return await this._request(configOrUrl, config);
16849
17245
  } catch (err) {
16850
17246
  if (err instanceof Error) {
16851
- let dummy = {};
16852
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
16853
- const stack = (() => {
16854
- if (!dummy.stack) {
16855
- return "";
16856
- }
16857
- const firstNewlineIndex = dummy.stack.indexOf("\n");
16858
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
16859
- })();
16860
17247
  try {
17248
+ let dummy = {};
17249
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
17250
+ const dummyStack = dummy.stack;
17251
+ let stack = "";
17252
+ if (typeof dummyStack === "string") {
17253
+ const firstNewlineIndex = dummyStack.indexOf("\n");
17254
+ stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
17255
+ }
16861
17256
  if (!err.stack) {
16862
17257
  err.stack = stack;
16863
17258
  } else if (stack) {
@@ -16927,9 +17322,9 @@ var Axios = class {
16927
17322
  },
16928
17323
  true
16929
17324
  );
16930
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
17325
+ config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
16931
17326
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
16932
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
17327
+ headers && utils_default.forEach(methodList_default.concat("common"), (method) => {
16933
17328
  delete headers[method];
16934
17329
  });
16935
17330
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
@@ -17044,7 +17439,7 @@ utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodW
17044
17439
  });
17045
17440
  var Axios_default = Axios;
17046
17441
 
17047
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
17442
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js
17048
17443
  var CancelToken = class _CancelToken {
17049
17444
  constructor(executor) {
17050
17445
  if (typeof executor !== "function") {
@@ -17142,19 +17537,19 @@ var CancelToken = class _CancelToken {
17142
17537
  };
17143
17538
  var CancelToken_default = CancelToken;
17144
17539
 
17145
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
17540
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js
17146
17541
  function spread(callback) {
17147
17542
  return function wrap(arr) {
17148
17543
  return callback.apply(null, arr);
17149
17544
  };
17150
17545
  }
17151
17546
 
17152
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
17547
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js
17153
17548
  function isAxiosError(payload) {
17154
17549
  return utils_default.isObject(payload) && payload.isAxiosError === true;
17155
17550
  }
17156
17551
 
17157
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
17552
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js
17158
17553
  var HttpStatusCode = {
17159
17554
  Continue: 100,
17160
17555
  SwitchingProtocols: 101,
@@ -17192,14 +17587,22 @@ var HttpStatusCode = {
17192
17587
  Gone: 410,
17193
17588
  LengthRequired: 411,
17194
17589
  PreconditionFailed: 412,
17590
+ /**
17591
+ * @deprecated Use `ContentTooLarge` instead.
17592
+ */
17195
17593
  PayloadTooLarge: 413,
17594
+ ContentTooLarge: 413,
17196
17595
  UriTooLong: 414,
17197
17596
  UnsupportedMediaType: 415,
17198
17597
  RangeNotSatisfiable: 416,
17199
17598
  ExpectationFailed: 417,
17200
17599
  ImATeapot: 418,
17201
17600
  MisdirectedRequest: 421,
17601
+ /**
17602
+ * @deprecated Use `UnprocessableContent` instead.
17603
+ */
17202
17604
  UnprocessableEntity: 422,
17605
+ UnprocessableContent: 422,
17203
17606
  Locked: 423,
17204
17607
  FailedDependency: 424,
17205
17608
  TooEarly: 425,
@@ -17228,11 +17631,13 @@ var HttpStatusCode = {
17228
17631
  InvalidSslCertificate: 526
17229
17632
  };
17230
17633
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
17231
- HttpStatusCode[value] = key;
17634
+ if (HttpStatusCode[value] === void 0) {
17635
+ HttpStatusCode[value] = key;
17636
+ }
17232
17637
  });
17233
17638
  var HttpStatusCode_default = HttpStatusCode;
17234
17639
 
17235
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
17640
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js
17236
17641
  function createInstance(defaultConfig) {
17237
17642
  const context = new Axios_default(defaultConfig);
17238
17643
  const instance = bind(Axios_default.prototype.request, context);
@@ -17265,7 +17670,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
17265
17670
  axios.default = axios;
17266
17671
  var axios_default = axios;
17267
17672
 
17268
- // ../../node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
17673
+ // ../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/index.js
17269
17674
  var {
17270
17675
  Axios: Axios2,
17271
17676
  AxiosError: AxiosError2,