autoql-fe-utils 1.11.25 → 1.11.27

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.
@@ -11967,9 +11967,9 @@
11967
11967
  var CombinedStream = require_combined_stream();
11968
11968
  var util3 = __require("util");
11969
11969
  var path2 = __require("path");
11970
- var http3 = __require("http");
11970
+ var http2 = __require("http");
11971
11971
  var https2 = __require("https");
11972
- var parseUrl2 = __require("url").parse;
11972
+ var parseUrl = __require("url").parse;
11973
11973
  var fs = __require("fs");
11974
11974
  var Stream = __require("stream").Stream;
11975
11975
  var crypto4 = __require("crypto");
@@ -12222,7 +12222,7 @@
12222
12222
  var options;
12223
12223
  var defaults2 = { method: "post" };
12224
12224
  if (typeof params === "string") {
12225
- params = parseUrl2(params);
12225
+ params = parseUrl(params);
12226
12226
  options = populate({
12227
12227
  port: params.port,
12228
12228
  path: params.pathname,
@@ -12239,7 +12239,7 @@
12239
12239
  if (options.protocol === "https:") {
12240
12240
  request = https2.request(options);
12241
12241
  } else {
12242
- request = http3.request(options);
12242
+ request = http2.request(options);
12243
12243
  }
12244
12244
  this.getLength(function(err, length) {
12245
12245
  if (err && err !== "Unknown stream") {
@@ -12274,11 +12274,81 @@
12274
12274
  FormData3.prototype.toString = function() {
12275
12275
  return "[object FormData]";
12276
12276
  };
12277
- setToStringTag(FormData3.prototype, "FormData");
12277
+ setToStringTag(FormData3, "FormData");
12278
12278
  module.exports = FormData3;
12279
12279
  }
12280
12280
  });
12281
12281
 
12282
+ // node_modules/proxy-from-env/index.js
12283
+ var require_proxy_from_env = __commonJS({
12284
+ "node_modules/proxy-from-env/index.js"(exports) {
12285
+ "use strict";
12286
+ var parseUrl = __require("url").parse;
12287
+ var DEFAULT_PORTS = {
12288
+ ftp: 21,
12289
+ gopher: 70,
12290
+ http: 80,
12291
+ https: 443,
12292
+ ws: 80,
12293
+ wss: 443
12294
+ };
12295
+ var stringEndsWith = String.prototype.endsWith || function(s) {
12296
+ return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
12297
+ };
12298
+ function getProxyForUrl(url2) {
12299
+ var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
12300
+ var proto2 = parsedUrl.protocol;
12301
+ var hostname = parsedUrl.host;
12302
+ var port = parsedUrl.port;
12303
+ if (typeof hostname !== "string" || !hostname || typeof proto2 !== "string") {
12304
+ return "";
12305
+ }
12306
+ proto2 = proto2.split(":", 1)[0];
12307
+ hostname = hostname.replace(/:\d*$/, "");
12308
+ port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;
12309
+ if (!shouldProxy(hostname, port)) {
12310
+ return "";
12311
+ }
12312
+ var proxy = getEnv("npm_config_" + proto2 + "_proxy") || getEnv(proto2 + "_proxy") || getEnv("npm_config_proxy") || getEnv("all_proxy");
12313
+ if (proxy && proxy.indexOf("://") === -1) {
12314
+ proxy = proto2 + "://" + proxy;
12315
+ }
12316
+ return proxy;
12317
+ }
12318
+ function shouldProxy(hostname, port) {
12319
+ var NO_PROXY = (getEnv("npm_config_no_proxy") || getEnv("no_proxy")).toLowerCase();
12320
+ if (!NO_PROXY) {
12321
+ return true;
12322
+ }
12323
+ if (NO_PROXY === "*") {
12324
+ return false;
12325
+ }
12326
+ return NO_PROXY.split(/[,\s]/).every(function(proxy) {
12327
+ if (!proxy) {
12328
+ return true;
12329
+ }
12330
+ var parsedProxy = proxy.match(/^(.+):(\d+)$/);
12331
+ var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
12332
+ var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
12333
+ if (parsedProxyPort && parsedProxyPort !== port) {
12334
+ return true;
12335
+ }
12336
+ if (!/^[.*]/.test(parsedProxyHostname)) {
12337
+ return hostname !== parsedProxyHostname;
12338
+ }
12339
+ if (parsedProxyHostname.charAt(0) === "*") {
12340
+ parsedProxyHostname = parsedProxyHostname.slice(1);
12341
+ }
12342
+ return !stringEndsWith.call(hostname, parsedProxyHostname);
12343
+ });
12344
+ }
12345
+ function getEnv(key) {
12346
+ return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
12347
+ }
12348
+ exports.getProxyForUrl = getProxyForUrl;
12349
+ }
12350
+ });
12351
+
12282
12352
  // node_modules/ms/index.js
12283
12353
  var require_ms = __commonJS({
12284
12354
  "node_modules/ms/index.js"(exports, module) {
@@ -13067,7 +13137,7 @@
13067
13137
  "node_modules/follow-redirects/index.js"(exports, module) {
13068
13138
  var url2 = __require("url");
13069
13139
  var URL2 = url2.URL;
13070
- var http3 = __require("http");
13140
+ var http2 = __require("http");
13071
13141
  var https2 = __require("https");
13072
13142
  var Writable = __require("stream").Writable;
13073
13143
  var assert = __require("assert");
@@ -13086,11 +13156,6 @@
13086
13156
  } catch (error) {
13087
13157
  useNativeURL = error.code === "ERR_INVALID_URL";
13088
13158
  }
13089
- var sensitiveHeaders = [
13090
- "Authorization",
13091
- "Proxy-Authorization",
13092
- "Cookie"
13093
- ];
13094
13159
  var preservedUrlFields = [
13095
13160
  "auth",
13096
13161
  "host",
@@ -13155,7 +13220,6 @@
13155
13220
  self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
13156
13221
  }
13157
13222
  };
13158
- this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
13159
13223
  this._performRequest();
13160
13224
  }
13161
13225
  RedirectableRequest.prototype = Object.create(Writable.prototype);
@@ -13293,9 +13357,6 @@
13293
13357
  if (!options.headers) {
13294
13358
  options.headers = {};
13295
13359
  }
13296
- if (!isArray2(options.sensitiveHeaders)) {
13297
- options.sensitiveHeaders = [];
13298
- }
13299
13360
  if (options.host) {
13300
13361
  if (!options.hostname) {
13301
13362
  options.hostname = options.host;
@@ -13393,7 +13454,7 @@
13393
13454
  removeMatchingHeaders(/^content-/i, this._options.headers);
13394
13455
  }
13395
13456
  var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
13396
- var currentUrlParts = parseUrl2(this._currentUrl);
13457
+ var currentUrlParts = parseUrl(this._currentUrl);
13397
13458
  var currentHost = currentHostHeader || currentUrlParts.host;
13398
13459
  var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
13399
13460
  var redirectUrl = resolveUrl(location, currentUrl);
@@ -13401,7 +13462,7 @@
13401
13462
  this._isRedirect = true;
13402
13463
  spreadUrlObject(redirectUrl, this._options);
13403
13464
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
13404
- removeMatchingHeaders(this._headerFilter, this._options.headers);
13465
+ removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
13405
13466
  }
13406
13467
  if (isFunction3(beforeRedirect)) {
13407
13468
  var responseDetails = {
@@ -13432,7 +13493,7 @@
13432
13493
  if (isURL(input)) {
13433
13494
  input = spreadUrlObject(input);
13434
13495
  } else if (isString2(input)) {
13435
- input = spreadUrlObject(parseUrl2(input));
13496
+ input = spreadUrlObject(parseUrl(input));
13436
13497
  } else {
13437
13498
  callback = options;
13438
13499
  options = validateUrl(input);
@@ -13468,7 +13529,7 @@
13468
13529
  }
13469
13530
  function noop3() {
13470
13531
  }
13471
- function parseUrl2(input) {
13532
+ function parseUrl(input) {
13472
13533
  var parsed;
13473
13534
  if (useNativeURL) {
13474
13535
  parsed = new URL2(input);
@@ -13481,7 +13542,7 @@
13481
13542
  return parsed;
13482
13543
  }
13483
13544
  function resolveUrl(relative, base) {
13484
- return useNativeURL ? new URL2(relative, base) : parseUrl2(url2.resolve(base, relative));
13545
+ return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
13485
13546
  }
13486
13547
  function validateUrl(input) {
13487
13548
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -13550,9 +13611,6 @@
13550
13611
  var dot = subdomain.length - domain.length - 1;
13551
13612
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
13552
13613
  }
13553
- function isArray2(value) {
13554
- return value instanceof Array;
13555
- }
13556
13614
  function isString2(value) {
13557
13615
  return typeof value === "string" || value instanceof String;
13558
13616
  }
@@ -13565,10 +13623,7 @@
13565
13623
  function isURL(value) {
13566
13624
  return URL2 && value instanceof URL2;
13567
13625
  }
13568
- function escapeRegex(regex) {
13569
- return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
13570
- }
13571
- module.exports = wrap({ http: http3, https: https2 });
13626
+ module.exports = wrap({ http: http2, https: https2 });
13572
13627
  module.exports.wrap = wrap;
13573
13628
  }
13574
13629
  });
@@ -15640,7 +15695,7 @@
15640
15695
  var supportsNetworkGraph = (data, columns) => {
15641
15696
  var _a2, _b2;
15642
15697
  const logUnsupportedReason = (message) => {
15643
- console.warn(`[supportsNetworkGraph] ${message}`);
15698
+ console.debug(`[supportsNetworkGraph] ${message}`);
15644
15699
  };
15645
15700
  if (!data || data.length < 2) {
15646
15701
  logUnsupportedReason(`Insufficient rows (${(_a2 = data == null ? void 0 : data.length) != null ? _a2 : 0}). Need at least 2 rows.`);
@@ -15770,7 +15825,7 @@
15770
15825
  var _a2, _b2;
15771
15826
  try {
15772
15827
  const logUnsupportedReason = (message) => {
15773
- console.warn(`[supportsSankey] ${message}`);
15828
+ console.debug(`[supportsSankey] ${message}`);
15774
15829
  };
15775
15830
  if (!(rows == null ? void 0 : rows.length) || !(columns == null ? void 0 : columns.length)) {
15776
15831
  logUnsupportedReason(
@@ -19995,9 +20050,9 @@
19995
20050
 
19996
20051
  // node_modules/d3-selection/src/selection/append.js
19997
20052
  function append_default(name) {
19998
- var create2 = typeof name === "function" ? name : creator_default(name);
20053
+ var create = typeof name === "function" ? name : creator_default(name);
19999
20054
  return this.select(function() {
20000
- return this.appendChild(create2.apply(this, arguments));
20055
+ return this.appendChild(create.apply(this, arguments));
20001
20056
  });
20002
20057
  }
20003
20058
 
@@ -20006,9 +20061,9 @@
20006
20061
  return null;
20007
20062
  }
20008
20063
  function insert_default(name, before) {
20009
- var create2 = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before);
20064
+ var create = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before);
20010
20065
  return this.select(function() {
20011
- return this.insertBefore(create2.apply(this, arguments), select.apply(this, arguments) || null);
20066
+ return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
20012
20067
  });
20013
20068
  }
20014
20069
 
@@ -21791,14 +21846,14 @@
21791
21846
  }
21792
21847
 
21793
21848
  // node_modules/d3-color/src/define.js
21794
- function define_default(constructor, factory2, prototype2) {
21795
- constructor.prototype = factory2.prototype = prototype2;
21796
- prototype2.constructor = constructor;
21849
+ function define_default(constructor, factory2, prototype3) {
21850
+ constructor.prototype = factory2.prototype = prototype3;
21851
+ prototype3.constructor = constructor;
21797
21852
  }
21798
21853
  function extend(parent, definition) {
21799
- var prototype2 = Object.create(parent.prototype);
21800
- for (var key in definition) prototype2[key] = definition[key];
21801
- return prototype2;
21854
+ var prototype3 = Object.create(parent.prototype);
21855
+ for (var key in definition) prototype3[key] = definition[key];
21856
+ return prototype3;
21802
21857
  }
21803
21858
 
21804
21859
  // node_modules/d3-color/src/color.js
@@ -22438,8 +22493,8 @@
22438
22493
  return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
22439
22494
  }
22440
22495
  function formatDecimalParts(x, p) {
22441
- if (!isFinite(x) || x === 0) return null;
22442
- var i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e"), coefficient = x.slice(0, i);
22496
+ if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null;
22497
+ var i, coefficient = x.slice(0, i);
22443
22498
  return [
22444
22499
  coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
22445
22500
  +x.slice(i + 1)
@@ -22533,7 +22588,7 @@
22533
22588
  var prefixExponent;
22534
22589
  function formatPrefixAuto_default(x, p) {
22535
22590
  var d = formatDecimalParts(x, p);
22536
- if (!d) return prefixExponent = void 0, x.toPrecision(p);
22591
+ if (!d) return x + "";
22537
22592
  var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, n = coefficient.length;
22538
22593
  return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
22539
22594
  }
@@ -22573,13 +22628,13 @@
22573
22628
  var prefixes = ["y", "z", "a", "f", "p", "n", "\xB5", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
22574
22629
  function locale_default(locale3) {
22575
22630
  var group = locale3.grouping === void 0 || locale3.thousands === void 0 ? identity_default : formatGroup_default(map2.call(locale3.grouping, Number), locale3.thousands + ""), currencyPrefix = locale3.currency === void 0 ? "" : locale3.currency[0] + "", currencySuffix = locale3.currency === void 0 ? "" : locale3.currency[1] + "", decimal = locale3.decimal === void 0 ? "." : locale3.decimal + "", numerals = locale3.numerals === void 0 ? identity_default : formatNumerals_default(map2.call(locale3.numerals, String)), percent = locale3.percent === void 0 ? "%" : locale3.percent + "", minus = locale3.minus === void 0 ? "\u2212" : locale3.minus + "", nan = locale3.nan === void 0 ? "NaN" : locale3.nan + "";
22576
- function newFormat(specifier, options) {
22631
+ function newFormat(specifier) {
22577
22632
  specifier = formatSpecifier(specifier);
22578
22633
  var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero3 = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim2 = specifier.trim, type = specifier.type;
22579
22634
  if (type === "n") comma = true, type = "g";
22580
22635
  else if (!formatTypes_default[type]) precision === void 0 && (precision = 12), trim2 = true, type = "g";
22581
22636
  if (zero3 || fill === "0" && align === "=") zero3 = true, fill = "0", align = "=";
22582
- var prefix2 = (options && options.prefix !== void 0 ? options.prefix : "") + (symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : ""), suffix = (symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "") + (options && options.suffix !== void 0 ? options.suffix : "");
22637
+ var prefix2 = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";
22583
22638
  var formatType = formatTypes_default[type], maybeSuffix = /[defgprs%]/.test(type);
22584
22639
  precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
22585
22640
  function format2(value) {
@@ -22594,7 +22649,7 @@
22594
22649
  if (trim2) value = formatTrim_default(value);
22595
22650
  if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
22596
22651
  valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
22597
- valueSuffix = (type === "s" && !isNaN(value) && prefixExponent !== void 0 ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
22652
+ valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
22598
22653
  if (maybeSuffix) {
22599
22654
  i = -1, n = value.length;
22600
22655
  while (++i < n) {
@@ -22631,9 +22686,9 @@
22631
22686
  return format2;
22632
22687
  }
22633
22688
  function formatPrefix2(specifier, value) {
22634
- var e = Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3, k = Math.pow(10, -e), f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier), { suffix: prefixes[8 + e / 3] });
22689
+ var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)), e = Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3, k = Math.pow(10, -e), prefix2 = prefixes[8 + e / 3];
22635
22690
  return function(value2) {
22636
- return f(k * value2);
22691
+ return f(k * value2) + prefix2;
22637
22692
  };
22638
22693
  }
22639
22694
  return {
@@ -26663,8 +26718,8 @@
26663
26718
  if (kindOf(val) !== "object") {
26664
26719
  return false;
26665
26720
  }
26666
- const prototype2 = getPrototypeOf(val);
26667
- return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
26721
+ const prototype3 = getPrototypeOf(val);
26722
+ return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(toStringTag in val) && !(iterator in val);
26668
26723
  };
26669
26724
  var isEmptyObject = (val) => {
26670
26725
  if (!isObject2(val) || isBuffer(val)) {
@@ -26678,42 +26733,17 @@
26678
26733
  };
26679
26734
  var isDate = kindOfTest("Date");
26680
26735
  var isFile = kindOfTest("File");
26681
- var isReactNativeBlob = (value) => {
26682
- return !!(value && typeof value.uri !== "undefined");
26683
- };
26684
- var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
26685
26736
  var isBlob = kindOfTest("Blob");
26686
26737
  var isFileList = kindOfTest("FileList");
26687
26738
  var isStream = (val) => isObject2(val) && isFunction(val.pipe);
26688
- function getGlobal() {
26689
- if (typeof globalThis !== "undefined") return globalThis;
26690
- if (typeof self !== "undefined") return self;
26691
- if (typeof window !== "undefined") return window;
26692
- if (typeof global !== "undefined") return global;
26693
- return {};
26694
- }
26695
- var G = getGlobal();
26696
- var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
26697
26739
  var isFormData = (thing) => {
26698
- if (!thing) return false;
26699
- if (FormDataCtor && thing instanceof FormDataCtor) return true;
26700
- const proto2 = getPrototypeOf(thing);
26701
- if (!proto2 || proto2 === Object.prototype) return false;
26702
- if (!isFunction(thing.append)) return false;
26703
- const kind = kindOf(thing);
26704
- return kind === "formdata" || // detect form-data instance
26705
- kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]";
26740
+ let kind;
26741
+ return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
26742
+ kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
26706
26743
  };
26707
26744
  var isURLSearchParams = kindOfTest("URLSearchParams");
26708
- var [isReadableStream, isRequest, isResponse, isHeaders] = [
26709
- "ReadableStream",
26710
- "Request",
26711
- "Response",
26712
- "Headers"
26713
- ].map(kindOfTest);
26714
- var trim = (str) => {
26715
- return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
26716
- };
26745
+ var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
26746
+ var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
26717
26747
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
26718
26748
  if (obj === null || typeof obj === "undefined") {
26719
26749
  return;
@@ -26761,17 +26791,13 @@
26761
26791
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
26762
26792
  })();
26763
26793
  var isContextDefined = (context) => !isUndefined(context) && context !== _global;
26764
- function merge(...objs) {
26794
+ function merge() {
26765
26795
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
26766
26796
  const result = {};
26767
26797
  const assignValue = (val, key) => {
26768
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
26769
- return;
26770
- }
26771
26798
  const targetKey = caseless && findKey(result, key) || key;
26772
- const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
26773
- if (isPlainObject(existing) && isPlainObject(val)) {
26774
- result[targetKey] = merge(existing, val);
26799
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
26800
+ result[targetKey] = merge(result[targetKey], val);
26775
26801
  } else if (isPlainObject(val)) {
26776
26802
  result[targetKey] = merge({}, val);
26777
26803
  } else if (isArray(val)) {
@@ -26780,37 +26806,19 @@
26780
26806
  result[targetKey] = val;
26781
26807
  }
26782
26808
  };
26783
- for (let i = 0, l = objs.length; i < l; i++) {
26784
- objs[i] && forEach(objs[i], assignValue);
26809
+ for (let i = 0, l = arguments.length; i < l; i++) {
26810
+ arguments[i] && forEach(arguments[i], assignValue);
26785
26811
  }
26786
26812
  return result;
26787
26813
  }
26788
26814
  var extend2 = (a, b, thisArg, { allOwnKeys } = {}) => {
26789
- forEach(
26790
- b,
26791
- (val, key) => {
26792
- if (thisArg && isFunction(val)) {
26793
- Object.defineProperty(a, key, {
26794
- // Null-proto descriptor so a polluted Object.prototype.get cannot
26795
- // hijack defineProperty's accessor-vs-data resolution.
26796
- __proto__: null,
26797
- value: bind(val, thisArg),
26798
- writable: true,
26799
- enumerable: true,
26800
- configurable: true
26801
- });
26802
- } else {
26803
- Object.defineProperty(a, key, {
26804
- __proto__: null,
26805
- value: val,
26806
- writable: true,
26807
- enumerable: true,
26808
- configurable: true
26809
- });
26810
- }
26811
- },
26812
- { allOwnKeys }
26813
- );
26815
+ forEach(b, (val, key) => {
26816
+ if (thisArg && isFunction(val)) {
26817
+ a[key] = bind(val, thisArg);
26818
+ } else {
26819
+ a[key] = val;
26820
+ }
26821
+ }, { allOwnKeys });
26814
26822
  return a;
26815
26823
  };
26816
26824
  var stripBOM = (content) => {
@@ -26819,17 +26827,10 @@
26819
26827
  }
26820
26828
  return content;
26821
26829
  };
26822
- var inherits = (constructor, superConstructor, props, descriptors) => {
26823
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
26824
- Object.defineProperty(constructor.prototype, "constructor", {
26825
- __proto__: null,
26826
- value: constructor,
26827
- writable: true,
26828
- enumerable: false,
26829
- configurable: true
26830
- });
26830
+ var inherits = (constructor, superConstructor, props, descriptors2) => {
26831
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
26832
+ constructor.prototype.constructor = constructor;
26831
26833
  Object.defineProperty(constructor, "super", {
26832
- __proto__: null,
26833
26834
  value: superConstructor.prototype
26834
26835
  });
26835
26836
  props && Object.assign(constructor.prototype, props);
@@ -26899,16 +26900,19 @@
26899
26900
  };
26900
26901
  var isHTMLForm = kindOfTest("HTMLFormElement");
26901
26902
  var toCamelCase = (str) => {
26902
- return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
26903
- return p1.toUpperCase() + p2;
26904
- });
26903
+ return str.toLowerCase().replace(
26904
+ /[-_\s]([a-z\d])(\w*)/g,
26905
+ function replacer(m, p1, p2) {
26906
+ return p1.toUpperCase() + p2;
26907
+ }
26908
+ );
26905
26909
  };
26906
26910
  var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
26907
26911
  var isRegExp = kindOfTest("RegExp");
26908
26912
  var reduceDescriptors = (obj, reducer) => {
26909
- const descriptors = Object.getOwnPropertyDescriptors(obj);
26913
+ const descriptors2 = Object.getOwnPropertyDescriptors(obj);
26910
26914
  const reducedDescriptors = {};
26911
- forEach(descriptors, (descriptor, name) => {
26915
+ forEach(descriptors2, (descriptor, name) => {
26912
26916
  let ret;
26913
26917
  if ((ret = reducer(descriptor, name, obj)) !== false) {
26914
26918
  reducedDescriptors[name] = ret || descriptor;
@@ -26918,7 +26922,7 @@
26918
26922
  };
26919
26923
  var freezeMethods = (obj) => {
26920
26924
  reduceDescriptors(obj, (descriptor, name) => {
26921
- if (isFunction(obj) && ["arguments", "caller", "callee"].includes(name)) {
26925
+ if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
26922
26926
  return false;
26923
26927
  }
26924
26928
  const value = obj[name];
@@ -26985,21 +26989,20 @@
26985
26989
  return setImmediate;
26986
26990
  }
26987
26991
  return postMessageSupported ? ((token, callbacks) => {
26988
- _global.addEventListener(
26989
- "message",
26990
- ({ source, data }) => {
26991
- if (source === _global && data === token) {
26992
- callbacks.length && callbacks.shift()();
26993
- }
26994
- },
26995
- false
26996
- );
26992
+ _global.addEventListener("message", ({ source, data }) => {
26993
+ if (source === _global && data === token) {
26994
+ callbacks.length && callbacks.shift()();
26995
+ }
26996
+ }, false);
26997
26997
  return (cb) => {
26998
26998
  callbacks.push(cb);
26999
26999
  _global.postMessage(token, "*");
27000
27000
  };
27001
27001
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
27002
- })(typeof setImmediate === "function", isFunction(_global.postMessage));
27002
+ })(
27003
+ typeof setImmediate === "function",
27004
+ isFunction(_global.postMessage)
27005
+ );
27003
27006
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
27004
27007
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
27005
27008
  var utils_default = {
@@ -27021,8 +27024,6 @@
27021
27024
  isUndefined,
27022
27025
  isDate,
27023
27026
  isFile,
27024
- isReactNativeBlob,
27025
- isReactNative,
27026
27027
  isBlob,
27027
27028
  isRegExp,
27028
27029
  isFunction,
@@ -27065,955 +27066,849 @@
27065
27066
  isIterable
27066
27067
  };
27067
27068
 
27068
- // node_modules/axios/lib/helpers/parseHeaders.js
27069
- var ignoreDuplicateOf = utils_default.toObjectSet([
27070
- "age",
27071
- "authorization",
27072
- "content-length",
27073
- "content-type",
27074
- "etag",
27075
- "expires",
27076
- "from",
27077
- "host",
27078
- "if-modified-since",
27079
- "if-unmodified-since",
27080
- "last-modified",
27081
- "location",
27082
- "max-forwards",
27083
- "proxy-authorization",
27084
- "referer",
27085
- "retry-after",
27086
- "user-agent"
27087
- ]);
27088
- var parseHeaders_default = (rawHeaders) => {
27089
- const parsed = {};
27090
- let key;
27091
- let val;
27092
- let i;
27093
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line2) {
27094
- i = line2.indexOf(":");
27095
- key = line2.substring(0, i).trim().toLowerCase();
27096
- val = line2.substring(i + 1).trim();
27097
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
27098
- return;
27099
- }
27100
- if (key === "set-cookie") {
27101
- if (parsed[key]) {
27102
- parsed[key].push(val);
27103
- } else {
27104
- parsed[key] = [val];
27105
- }
27106
- } else {
27107
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
27108
- }
27069
+ // node_modules/axios/lib/core/AxiosError.js
27070
+ function AxiosError(message, code, config, request, response) {
27071
+ Error.call(this);
27072
+ if (Error.captureStackTrace) {
27073
+ Error.captureStackTrace(this, this.constructor);
27074
+ } else {
27075
+ this.stack = new Error().stack;
27076
+ }
27077
+ this.message = message;
27078
+ this.name = "AxiosError";
27079
+ code && (this.code = code);
27080
+ config && (this.config = config);
27081
+ request && (this.request = request);
27082
+ if (response) {
27083
+ this.response = response;
27084
+ this.status = response.status ? response.status : null;
27085
+ }
27086
+ }
27087
+ utils_default.inherits(AxiosError, Error, {
27088
+ toJSON: function toJSON() {
27089
+ return {
27090
+ // Standard
27091
+ message: this.message,
27092
+ name: this.name,
27093
+ // Microsoft
27094
+ description: this.description,
27095
+ number: this.number,
27096
+ // Mozilla
27097
+ fileName: this.fileName,
27098
+ lineNumber: this.lineNumber,
27099
+ columnNumber: this.columnNumber,
27100
+ stack: this.stack,
27101
+ // Axios
27102
+ config: utils_default.toJSONObject(this.config),
27103
+ code: this.code,
27104
+ status: this.status
27105
+ };
27106
+ }
27107
+ });
27108
+ var prototype = AxiosError.prototype;
27109
+ var descriptors = {};
27110
+ [
27111
+ "ERR_BAD_OPTION_VALUE",
27112
+ "ERR_BAD_OPTION",
27113
+ "ECONNABORTED",
27114
+ "ETIMEDOUT",
27115
+ "ERR_NETWORK",
27116
+ "ERR_FR_TOO_MANY_REDIRECTS",
27117
+ "ERR_DEPRECATED",
27118
+ "ERR_BAD_RESPONSE",
27119
+ "ERR_BAD_REQUEST",
27120
+ "ERR_CANCELED",
27121
+ "ERR_NOT_SUPPORT",
27122
+ "ERR_INVALID_URL"
27123
+ // eslint-disable-next-line func-names
27124
+ ].forEach((code) => {
27125
+ descriptors[code] = { value: code };
27126
+ });
27127
+ Object.defineProperties(AxiosError, descriptors);
27128
+ Object.defineProperty(prototype, "isAxiosError", { value: true });
27129
+ AxiosError.from = (error, code, config, request, response, customProps) => {
27130
+ const axiosError = Object.create(prototype);
27131
+ utils_default.toFlatObject(error, axiosError, function filter3(obj) {
27132
+ return obj !== Error.prototype;
27133
+ }, (prop) => {
27134
+ return prop !== "isAxiosError";
27109
27135
  });
27110
- return parsed;
27136
+ const msg = error && error.message ? error.message : "Error";
27137
+ const errCode = code == null && error ? error.code : code;
27138
+ AxiosError.call(axiosError, msg, errCode, config, request, response);
27139
+ if (error && axiosError.cause == null) {
27140
+ Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
27141
+ }
27142
+ axiosError.name = error && error.name || "Error";
27143
+ customProps && Object.assign(axiosError, customProps);
27144
+ return axiosError;
27111
27145
  };
27146
+ var AxiosError_default = AxiosError;
27112
27147
 
27113
- // node_modules/axios/lib/core/AxiosHeaders.js
27114
- var $internals = Symbol("internals");
27115
- var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
27116
- function trimSPorHTAB(str) {
27117
- let start = 0;
27118
- let end = str.length;
27119
- while (start < end) {
27120
- const code = str.charCodeAt(start);
27121
- if (code !== 9 && code !== 32) {
27122
- break;
27123
- }
27124
- start += 1;
27125
- }
27126
- while (end > start) {
27127
- const code = str.charCodeAt(end - 1);
27128
- if (code !== 9 && code !== 32) {
27129
- break;
27130
- }
27131
- end -= 1;
27132
- }
27133
- return start === 0 && end === str.length ? str : str.slice(start, end);
27148
+ // node_modules/axios/lib/platform/node/classes/FormData.js
27149
+ var import_form_data = __toESM(require_form_data(), 1);
27150
+ var FormData_default = import_form_data.default;
27151
+
27152
+ // node_modules/axios/lib/helpers/toFormData.js
27153
+ function isVisitable(thing) {
27154
+ return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
27134
27155
  }
27135
- function normalizeHeader(header) {
27136
- return header && String(header).trim().toLowerCase();
27156
+ function removeBrackets(key) {
27157
+ return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
27137
27158
  }
27138
- function sanitizeHeaderValue(str) {
27139
- return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
27159
+ function renderKey(path2, key, dots) {
27160
+ if (!path2) return key;
27161
+ return path2.concat(key).map(function each(token, i) {
27162
+ token = removeBrackets(token);
27163
+ return !dots && i ? "[" + token + "]" : token;
27164
+ }).join(dots ? "." : "");
27140
27165
  }
27141
- function normalizeValue(value) {
27142
- if (value === false || value == null) {
27143
- return value;
27144
- }
27145
- return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
27166
+ function isFlatArray(arr) {
27167
+ return utils_default.isArray(arr) && !arr.some(isVisitable);
27146
27168
  }
27147
- function parseTokens(str) {
27148
- const tokens = /* @__PURE__ */ Object.create(null);
27149
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
27150
- let match;
27151
- while (match = tokensRE.exec(str)) {
27152
- tokens[match[1]] = match[2];
27169
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter2(prop) {
27170
+ return /^is[A-Z]/.test(prop);
27171
+ });
27172
+ function toFormData(obj, formData, options) {
27173
+ if (!utils_default.isObject(obj)) {
27174
+ throw new TypeError("target must be an object");
27153
27175
  }
27154
- return tokens;
27155
- }
27156
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
27157
- function matchHeaderValue(context, value, header, filter3, isHeaderNameFilter) {
27158
- if (utils_default.isFunction(filter3)) {
27159
- return filter3.call(this, value, header);
27176
+ formData = formData || new (FormData_default || FormData)();
27177
+ options = utils_default.toFlatObject(options, {
27178
+ metaTokens: true,
27179
+ dots: false,
27180
+ indexes: false
27181
+ }, false, function defined(option, source) {
27182
+ return !utils_default.isUndefined(source[option]);
27183
+ });
27184
+ const metaTokens = options.metaTokens;
27185
+ const visitor = options.visitor || defaultVisitor;
27186
+ const dots = options.dots;
27187
+ const indexes = options.indexes;
27188
+ const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
27189
+ const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
27190
+ if (!utils_default.isFunction(visitor)) {
27191
+ throw new TypeError("visitor must be a function");
27160
27192
  }
27161
- if (isHeaderNameFilter) {
27162
- value = header;
27193
+ function convertValue(value) {
27194
+ if (value === null) return "";
27195
+ if (utils_default.isDate(value)) {
27196
+ return value.toISOString();
27197
+ }
27198
+ if (utils_default.isBoolean(value)) {
27199
+ return value.toString();
27200
+ }
27201
+ if (!useBlob && utils_default.isBlob(value)) {
27202
+ throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
27203
+ }
27204
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
27205
+ return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
27206
+ }
27207
+ return value;
27163
27208
  }
27164
- if (!utils_default.isString(value)) return;
27165
- if (utils_default.isString(filter3)) {
27166
- return value.indexOf(filter3) !== -1;
27209
+ function defaultVisitor(value, key, path2) {
27210
+ let arr = value;
27211
+ if (value && !path2 && typeof value === "object") {
27212
+ if (utils_default.endsWith(key, "{}")) {
27213
+ key = metaTokens ? key : key.slice(0, -2);
27214
+ value = JSON.stringify(value);
27215
+ } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
27216
+ key = removeBrackets(key);
27217
+ arr.forEach(function each(el, index) {
27218
+ !(utils_default.isUndefined(el) || el === null) && formData.append(
27219
+ // eslint-disable-next-line no-nested-ternary
27220
+ indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
27221
+ convertValue(el)
27222
+ );
27223
+ });
27224
+ return false;
27225
+ }
27226
+ }
27227
+ if (isVisitable(value)) {
27228
+ return true;
27229
+ }
27230
+ formData.append(renderKey(path2, key, dots), convertValue(value));
27231
+ return false;
27167
27232
  }
27168
- if (utils_default.isRegExp(filter3)) {
27169
- return filter3.test(value);
27233
+ const stack = [];
27234
+ const exposedHelpers = Object.assign(predicates, {
27235
+ defaultVisitor,
27236
+ convertValue,
27237
+ isVisitable
27238
+ });
27239
+ function build(value, path2) {
27240
+ if (utils_default.isUndefined(value)) return;
27241
+ if (stack.indexOf(value) !== -1) {
27242
+ throw Error("Circular reference detected in " + path2.join("."));
27243
+ }
27244
+ stack.push(value);
27245
+ utils_default.forEach(value, function each(el, key) {
27246
+ const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
27247
+ formData,
27248
+ el,
27249
+ utils_default.isString(key) ? key.trim() : key,
27250
+ path2,
27251
+ exposedHelpers
27252
+ );
27253
+ if (result === true) {
27254
+ build(el, path2 ? path2.concat(key) : [key]);
27255
+ }
27256
+ });
27257
+ stack.pop();
27258
+ }
27259
+ if (!utils_default.isObject(obj)) {
27260
+ throw new TypeError("data must be an object");
27170
27261
  }
27262
+ build(obj);
27263
+ return formData;
27171
27264
  }
27172
- function formatHeader(header) {
27173
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
27174
- return char.toUpperCase() + str;
27265
+ var toFormData_default = toFormData;
27266
+
27267
+ // node_modules/axios/lib/helpers/AxiosURLSearchParams.js
27268
+ function encode(str) {
27269
+ const charMap = {
27270
+ "!": "%21",
27271
+ "'": "%27",
27272
+ "(": "%28",
27273
+ ")": "%29",
27274
+ "~": "%7E",
27275
+ "%20": "+",
27276
+ "%00": "\0"
27277
+ };
27278
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
27279
+ return charMap[match];
27175
27280
  });
27176
27281
  }
27177
- function buildAccessors(obj, header) {
27178
- const accessorName = utils_default.toCamelCase(" " + header);
27179
- ["get", "set", "has"].forEach((methodName) => {
27180
- Object.defineProperty(obj, methodName + accessorName, {
27181
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
27182
- // this data descriptor into an accessor descriptor on the way in.
27183
- __proto__: null,
27184
- value: function(arg1, arg2, arg3) {
27185
- return this[methodName].call(this, header, arg1, arg2, arg3);
27186
- },
27187
- configurable: true
27188
- });
27189
- });
27282
+ function AxiosURLSearchParams(params, options) {
27283
+ this._pairs = [];
27284
+ params && toFormData_default(params, this, options);
27190
27285
  }
27191
- var AxiosHeaders = class {
27192
- constructor(headers) {
27193
- headers && this.set(headers);
27286
+ var prototype2 = AxiosURLSearchParams.prototype;
27287
+ prototype2.append = function append2(name, value) {
27288
+ this._pairs.push([name, value]);
27289
+ };
27290
+ prototype2.toString = function toString2(encoder) {
27291
+ const _encode = encoder ? function(value) {
27292
+ return encoder.call(this, value, encode);
27293
+ } : encode;
27294
+ return this._pairs.map(function each(pair) {
27295
+ return _encode(pair[0]) + "=" + _encode(pair[1]);
27296
+ }, "").join("&");
27297
+ };
27298
+ var AxiosURLSearchParams_default = AxiosURLSearchParams;
27299
+
27300
+ // node_modules/axios/lib/helpers/buildURL.js
27301
+ function encode2(val) {
27302
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
27303
+ }
27304
+ function buildURL(url2, params, options) {
27305
+ if (!params) {
27306
+ return url2;
27194
27307
  }
27195
- set(header, valueOrRewrite, rewrite) {
27196
- const self2 = this;
27197
- function setHeader(_value, _header, _rewrite) {
27198
- const lHeader = normalizeHeader(_header);
27199
- if (!lHeader) {
27200
- throw new Error("header name must be a non-empty string");
27201
- }
27202
- const key = utils_default.findKey(self2, lHeader);
27203
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
27204
- self2[key || _header] = normalizeValue(_value);
27205
- }
27206
- }
27207
- const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
27208
- if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
27209
- setHeaders(header, valueOrRewrite);
27210
- } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
27211
- setHeaders(parseHeaders_default(header), valueOrRewrite);
27212
- } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
27213
- let obj = {}, dest, key;
27214
- for (const entry of header) {
27215
- if (!utils_default.isArray(entry)) {
27216
- throw TypeError("Object iterator must return a key-value pair");
27217
- }
27218
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
27219
- }
27220
- setHeaders(obj, valueOrRewrite);
27221
- } else {
27222
- header != null && setHeader(valueOrRewrite, header, rewrite);
27223
- }
27224
- return this;
27308
+ const _encode = options && options.encode || encode2;
27309
+ if (utils_default.isFunction(options)) {
27310
+ options = {
27311
+ serialize: options
27312
+ };
27225
27313
  }
27226
- get(header, parser) {
27227
- header = normalizeHeader(header);
27228
- if (header) {
27229
- const key = utils_default.findKey(this, header);
27230
- if (key) {
27231
- const value = this[key];
27232
- if (!parser) {
27233
- return value;
27234
- }
27235
- if (parser === true) {
27236
- return parseTokens(value);
27237
- }
27238
- if (utils_default.isFunction(parser)) {
27239
- return parser.call(this, value, key);
27240
- }
27241
- if (utils_default.isRegExp(parser)) {
27242
- return parser.exec(value);
27243
- }
27244
- throw new TypeError("parser must be boolean|regexp|function");
27245
- }
27246
- }
27314
+ const serializeFn = options && options.serialize;
27315
+ let serializedParams;
27316
+ if (serializeFn) {
27317
+ serializedParams = serializeFn(params, options);
27318
+ } else {
27319
+ serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode);
27247
27320
  }
27248
- has(header, matcher) {
27249
- header = normalizeHeader(header);
27250
- if (header) {
27251
- const key = utils_default.findKey(this, header);
27252
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
27321
+ if (serializedParams) {
27322
+ const hashmarkIndex = url2.indexOf("#");
27323
+ if (hashmarkIndex !== -1) {
27324
+ url2 = url2.slice(0, hashmarkIndex);
27253
27325
  }
27254
- return false;
27326
+ url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams;
27255
27327
  }
27256
- delete(header, matcher) {
27257
- const self2 = this;
27258
- let deleted = false;
27259
- function deleteHeader(_header) {
27260
- _header = normalizeHeader(_header);
27261
- if (_header) {
27262
- const key = utils_default.findKey(self2, _header);
27263
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
27264
- delete self2[key];
27265
- deleted = true;
27266
- }
27267
- }
27268
- }
27269
- if (utils_default.isArray(header)) {
27270
- header.forEach(deleteHeader);
27271
- } else {
27272
- deleteHeader(header);
27328
+ return url2;
27329
+ }
27330
+
27331
+ // node_modules/axios/lib/core/InterceptorManager.js
27332
+ var InterceptorManager = class {
27333
+ constructor() {
27334
+ this.handlers = [];
27335
+ }
27336
+ /**
27337
+ * Add a new interceptor to the stack
27338
+ *
27339
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
27340
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
27341
+ *
27342
+ * @return {Number} An ID used to remove interceptor later
27343
+ */
27344
+ use(fulfilled, rejected, options) {
27345
+ this.handlers.push({
27346
+ fulfilled,
27347
+ rejected,
27348
+ synchronous: options ? options.synchronous : false,
27349
+ runWhen: options ? options.runWhen : null
27350
+ });
27351
+ return this.handlers.length - 1;
27352
+ }
27353
+ /**
27354
+ * Remove an interceptor from the stack
27355
+ *
27356
+ * @param {Number} id The ID that was returned by `use`
27357
+ *
27358
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
27359
+ */
27360
+ eject(id) {
27361
+ if (this.handlers[id]) {
27362
+ this.handlers[id] = null;
27273
27363
  }
27274
- return deleted;
27275
27364
  }
27276
- clear(matcher) {
27277
- const keys = Object.keys(this);
27278
- let i = keys.length;
27279
- let deleted = false;
27280
- while (i--) {
27281
- const key = keys[i];
27282
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
27283
- delete this[key];
27284
- deleted = true;
27285
- }
27365
+ /**
27366
+ * Clear all interceptors from the stack
27367
+ *
27368
+ * @returns {void}
27369
+ */
27370
+ clear() {
27371
+ if (this.handlers) {
27372
+ this.handlers = [];
27286
27373
  }
27287
- return deleted;
27288
27374
  }
27289
- normalize(format2) {
27290
- const self2 = this;
27291
- const headers = {};
27292
- utils_default.forEach(this, (value, header) => {
27293
- const key = utils_default.findKey(headers, header);
27294
- if (key) {
27295
- self2[key] = normalizeValue(value);
27296
- delete self2[header];
27297
- return;
27298
- }
27299
- const normalized = format2 ? formatHeader(header) : String(header).trim();
27300
- if (normalized !== header) {
27301
- delete self2[header];
27375
+ /**
27376
+ * Iterate over all the registered interceptors
27377
+ *
27378
+ * This method is particularly useful for skipping over any
27379
+ * interceptors that may have become `null` calling `eject`.
27380
+ *
27381
+ * @param {Function} fn The function to call for each interceptor
27382
+ *
27383
+ * @returns {void}
27384
+ */
27385
+ forEach(fn) {
27386
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
27387
+ if (h !== null) {
27388
+ fn(h);
27302
27389
  }
27303
- self2[normalized] = normalizeValue(value);
27304
- headers[normalized] = true;
27305
27390
  });
27306
- return this;
27307
27391
  }
27308
- concat(...targets) {
27309
- return this.constructor.concat(this, ...targets);
27310
- }
27311
- toJSON(asStrings) {
27312
- const obj = /* @__PURE__ */ Object.create(null);
27313
- utils_default.forEach(this, (value, header) => {
27314
- value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
27315
- });
27316
- return obj;
27317
- }
27318
- [Symbol.iterator]() {
27319
- return Object.entries(this.toJSON())[Symbol.iterator]();
27320
- }
27321
- toString() {
27322
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
27323
- }
27324
- getSetCookie() {
27325
- return this.get("set-cookie") || [];
27326
- }
27327
- get [Symbol.toStringTag]() {
27328
- return "AxiosHeaders";
27329
- }
27330
- static from(thing) {
27331
- return thing instanceof this ? thing : new this(thing);
27332
- }
27333
- static concat(first, ...targets) {
27334
- const computed = new this(first);
27335
- targets.forEach((target) => computed.set(target));
27336
- return computed;
27337
- }
27338
- static accessor(header) {
27339
- const internals = this[$internals] = this[$internals] = {
27340
- accessors: {}
27341
- };
27342
- const accessors = internals.accessors;
27343
- const prototype2 = this.prototype;
27344
- function defineAccessor(_header) {
27345
- const lHeader = normalizeHeader(_header);
27346
- if (!accessors[lHeader]) {
27347
- buildAccessors(prototype2, _header);
27348
- accessors[lHeader] = true;
27349
- }
27350
- }
27351
- utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
27352
- return this;
27392
+ };
27393
+ var InterceptorManager_default = InterceptorManager;
27394
+
27395
+ // node_modules/axios/lib/defaults/transitional.js
27396
+ var transitional_default = {
27397
+ silentJSONParsing: true,
27398
+ forcedJSONParsing: true,
27399
+ clarifyTimeoutError: false
27400
+ };
27401
+
27402
+ // node_modules/axios/lib/platform/node/index.js
27403
+ var import_crypto3 = __toESM(__require("crypto"), 1);
27404
+
27405
+ // node_modules/axios/lib/platform/node/classes/URLSearchParams.js
27406
+ var import_url = __toESM(__require("url"), 1);
27407
+ var URLSearchParams_default = import_url.default.URLSearchParams;
27408
+
27409
+ // node_modules/axios/lib/platform/node/index.js
27410
+ var ALPHA = "abcdefghijklmnopqrstuvwxyz";
27411
+ var DIGIT = "0123456789";
27412
+ var ALPHABET = {
27413
+ DIGIT,
27414
+ ALPHA,
27415
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
27416
+ };
27417
+ var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
27418
+ let str = "";
27419
+ const { length } = alphabet;
27420
+ const randomValues = new Uint32Array(size);
27421
+ import_crypto3.default.randomFillSync(randomValues);
27422
+ for (let i = 0; i < size; i++) {
27423
+ str += alphabet[randomValues[i] % length];
27353
27424
  }
27425
+ return str;
27354
27426
  };
27355
- AxiosHeaders.accessor([
27356
- "Content-Type",
27357
- "Content-Length",
27358
- "Accept",
27359
- "Accept-Encoding",
27360
- "User-Agent",
27361
- "Authorization"
27362
- ]);
27363
- utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
27364
- let mapped = key[0].toUpperCase() + key.slice(1);
27365
- return {
27366
- get: () => value,
27367
- set(headerValue) {
27368
- this[mapped] = headerValue;
27369
- }
27370
- };
27427
+ var node_default2 = {
27428
+ isNode: true,
27429
+ classes: {
27430
+ URLSearchParams: URLSearchParams_default,
27431
+ FormData: FormData_default,
27432
+ Blob: typeof Blob !== "undefined" && Blob || null
27433
+ },
27434
+ ALPHABET,
27435
+ generateString,
27436
+ protocols: ["http", "https", "file", "data"]
27437
+ };
27438
+
27439
+ // node_modules/axios/lib/platform/common/utils.js
27440
+ var utils_exports = {};
27441
+ __export(utils_exports, {
27442
+ hasBrowserEnv: () => hasBrowserEnv,
27443
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
27444
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
27445
+ navigator: () => _navigator,
27446
+ origin: () => origin
27371
27447
  });
27372
- utils_default.freezeMethods(AxiosHeaders);
27373
- var AxiosHeaders_default = AxiosHeaders;
27448
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
27449
+ var _navigator = typeof navigator === "object" && navigator || void 0;
27450
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
27451
+ var hasStandardBrowserWebWorkerEnv = (() => {
27452
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
27453
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
27454
+ })();
27455
+ var origin = hasBrowserEnv && window.location.href || "http://localhost";
27374
27456
 
27375
- // node_modules/axios/lib/core/AxiosError.js
27376
- var REDACTED = "[REDACTED ****]";
27377
- function hasOwnOrPrototypeToJSON(source) {
27378
- if (utils_default.hasOwnProp(source, "toJSON")) {
27379
- return true;
27380
- }
27381
- let prototype2 = Object.getPrototypeOf(source);
27382
- while (prototype2 && prototype2 !== Object.prototype) {
27383
- if (utils_default.hasOwnProp(prototype2, "toJSON")) {
27384
- return true;
27385
- }
27386
- prototype2 = Object.getPrototypeOf(prototype2);
27457
+ // node_modules/axios/lib/platform/index.js
27458
+ var platform_default = {
27459
+ ...utils_exports,
27460
+ ...node_default2
27461
+ };
27462
+
27463
+ // node_modules/axios/lib/helpers/toURLEncodedForm.js
27464
+ function toURLEncodedForm(data, options) {
27465
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
27466
+ visitor: function(value, key, path2, helpers) {
27467
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
27468
+ this.append(key, value.toString("base64"));
27469
+ return false;
27470
+ }
27471
+ return helpers.defaultVisitor.apply(this, arguments);
27472
+ },
27473
+ ...options
27474
+ });
27475
+ }
27476
+
27477
+ // node_modules/axios/lib/helpers/formDataToJSON.js
27478
+ function parsePropPath(name) {
27479
+ return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
27480
+ return match[0] === "[]" ? "" : match[1] || match[0];
27481
+ });
27482
+ }
27483
+ function arrayToObject(arr) {
27484
+ const obj = {};
27485
+ const keys = Object.keys(arr);
27486
+ let i;
27487
+ const len = keys.length;
27488
+ let key;
27489
+ for (i = 0; i < len; i++) {
27490
+ key = keys[i];
27491
+ obj[key] = arr[key];
27387
27492
  }
27388
- return false;
27493
+ return obj;
27389
27494
  }
27390
- function redactConfig(config, redactKeys) {
27391
- const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
27392
- const seen = [];
27393
- const visit = (source) => {
27394
- if (source === null || typeof source !== "object") return source;
27395
- if (utils_default.isBuffer(source)) return source;
27396
- if (seen.indexOf(source) !== -1) return void 0;
27397
- if (source instanceof AxiosHeaders_default) {
27398
- source = source.toJSON();
27399
- }
27400
- seen.push(source);
27401
- let result;
27402
- if (utils_default.isArray(source)) {
27403
- result = [];
27404
- source.forEach((v, i) => {
27405
- const reducedValue = visit(v);
27406
- if (!utils_default.isUndefined(reducedValue)) {
27407
- result[i] = reducedValue;
27408
- }
27409
- });
27410
- } else {
27411
- if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
27412
- seen.pop();
27413
- return source;
27414
- }
27415
- result = /* @__PURE__ */ Object.create(null);
27416
- for (const [key, value] of Object.entries(source)) {
27417
- const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
27418
- if (!utils_default.isUndefined(reducedValue)) {
27419
- result[key] = reducedValue;
27420
- }
27495
+ function formDataToJSON(formData) {
27496
+ function buildPath(path2, value, target, index) {
27497
+ let name = path2[index++];
27498
+ if (name === "__proto__") return true;
27499
+ const isNumericKey = Number.isFinite(+name);
27500
+ const isLast = index >= path2.length;
27501
+ name = !name && utils_default.isArray(target) ? target.length : name;
27502
+ if (isLast) {
27503
+ if (utils_default.hasOwnProp(target, name)) {
27504
+ target[name] = [target[name], value];
27505
+ } else {
27506
+ target[name] = value;
27421
27507
  }
27508
+ return !isNumericKey;
27422
27509
  }
27423
- seen.pop();
27424
- return result;
27425
- };
27426
- return visit(config);
27427
- }
27428
- var AxiosError = class _AxiosError extends Error {
27429
- static from(error, code, config, request, response, customProps) {
27430
- const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
27431
- axiosError.cause = error;
27432
- axiosError.name = error.name;
27433
- if (error.status != null && axiosError.status == null) {
27434
- axiosError.status = error.status;
27510
+ if (!target[name] || !utils_default.isObject(target[name])) {
27511
+ target[name] = [];
27512
+ }
27513
+ const result = buildPath(path2, value, target[name], index);
27514
+ if (result && utils_default.isArray(target[name])) {
27515
+ target[name] = arrayToObject(target[name]);
27435
27516
  }
27436
- customProps && Object.assign(axiosError, customProps);
27437
- return axiosError;
27517
+ return !isNumericKey;
27438
27518
  }
27439
- /**
27440
- * Create an Error with the specified message, config, error code, request and response.
27441
- *
27442
- * @param {string} message The error message.
27443
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
27444
- * @param {Object} [config] The config.
27445
- * @param {Object} [request] The request.
27446
- * @param {Object} [response] The response.
27447
- *
27448
- * @returns {Error} The created error.
27449
- */
27450
- constructor(message, code, config, request, response) {
27451
- super(message);
27452
- Object.defineProperty(this, "message", {
27453
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
27454
- // this data descriptor into an accessor descriptor on the way in.
27455
- __proto__: null,
27456
- value: message,
27457
- enumerable: true,
27458
- writable: true,
27459
- configurable: true
27519
+ if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
27520
+ const obj = {};
27521
+ utils_default.forEachEntry(formData, (name, value) => {
27522
+ buildPath(parsePropPath(name), value, obj, 0);
27460
27523
  });
27461
- this.name = "AxiosError";
27462
- this.isAxiosError = true;
27463
- code && (this.code = code);
27464
- config && (this.config = config);
27465
- request && (this.request = request);
27466
- if (response) {
27467
- this.response = response;
27468
- this.status = response.status;
27469
- }
27470
- }
27471
- toJSON() {
27472
- const config = this.config;
27473
- const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
27474
- const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
27475
- return {
27476
- // Standard
27477
- message: this.message,
27478
- name: this.name,
27479
- // Microsoft
27480
- description: this.description,
27481
- number: this.number,
27482
- // Mozilla
27483
- fileName: this.fileName,
27484
- lineNumber: this.lineNumber,
27485
- columnNumber: this.columnNumber,
27486
- stack: this.stack,
27487
- // Axios
27488
- config: serializedConfig,
27489
- code: this.code,
27490
- status: this.status
27491
- };
27524
+ return obj;
27492
27525
  }
27493
- };
27494
- AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
27495
- AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
27496
- AxiosError.ECONNABORTED = "ECONNABORTED";
27497
- AxiosError.ETIMEDOUT = "ETIMEDOUT";
27498
- AxiosError.ECONNREFUSED = "ECONNREFUSED";
27499
- AxiosError.ERR_NETWORK = "ERR_NETWORK";
27500
- AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
27501
- AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
27502
- AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
27503
- AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
27504
- AxiosError.ERR_CANCELED = "ERR_CANCELED";
27505
- AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
27506
- AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
27507
- AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
27508
- var AxiosError_default = AxiosError;
27509
-
27510
- // node_modules/axios/lib/platform/node/classes/FormData.js
27511
- var import_form_data = __toESM(require_form_data(), 1);
27512
- var FormData_default = import_form_data.default;
27513
-
27514
- // node_modules/axios/lib/helpers/toFormData.js
27515
- function isVisitable(thing) {
27516
- return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
27517
- }
27518
- function removeBrackets(key) {
27519
- return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
27520
- }
27521
- function renderKey(path2, key, dots) {
27522
- if (!path2) return key;
27523
- return path2.concat(key).map(function each(token, i) {
27524
- token = removeBrackets(token);
27525
- return !dots && i ? "[" + token + "]" : token;
27526
- }).join(dots ? "." : "");
27527
- }
27528
- function isFlatArray(arr) {
27529
- return utils_default.isArray(arr) && !arr.some(isVisitable);
27526
+ return null;
27530
27527
  }
27531
- var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter2(prop) {
27532
- return /^is[A-Z]/.test(prop);
27533
- });
27534
- function toFormData(obj, formData, options) {
27535
- if (!utils_default.isObject(obj)) {
27536
- throw new TypeError("target must be an object");
27537
- }
27538
- formData = formData || new (FormData_default || FormData)();
27539
- options = utils_default.toFlatObject(
27540
- options,
27541
- {
27542
- metaTokens: true,
27543
- dots: false,
27544
- indexes: false
27545
- },
27546
- false,
27547
- function defined(option, source) {
27548
- return !utils_default.isUndefined(source[option]);
27528
+ var formDataToJSON_default = formDataToJSON;
27529
+
27530
+ // node_modules/axios/lib/defaults/index.js
27531
+ function stringifySafely(rawValue, parser, encoder) {
27532
+ if (utils_default.isString(rawValue)) {
27533
+ try {
27534
+ (parser || JSON.parse)(rawValue);
27535
+ return utils_default.trim(rawValue);
27536
+ } catch (e) {
27537
+ if (e.name !== "SyntaxError") {
27538
+ throw e;
27539
+ }
27549
27540
  }
27550
- );
27551
- const metaTokens = options.metaTokens;
27552
- const visitor = options.visitor || defaultVisitor;
27553
- const dots = options.dots;
27554
- const indexes = options.indexes;
27555
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
27556
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
27557
- const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
27558
- if (!utils_default.isFunction(visitor)) {
27559
- throw new TypeError("visitor must be a function");
27560
27541
  }
27561
- function convertValue(value) {
27562
- if (value === null) return "";
27563
- if (utils_default.isDate(value)) {
27564
- return value.toISOString();
27542
+ return (encoder || JSON.stringify)(rawValue);
27543
+ }
27544
+ var defaults = {
27545
+ transitional: transitional_default,
27546
+ adapter: ["xhr", "http", "fetch"],
27547
+ transformRequest: [function transformRequest(data, headers) {
27548
+ const contentType = headers.getContentType() || "";
27549
+ const hasJSONContentType = contentType.indexOf("application/json") > -1;
27550
+ const isObjectPayload = utils_default.isObject(data);
27551
+ if (isObjectPayload && utils_default.isHTMLForm(data)) {
27552
+ data = new FormData(data);
27553
+ }
27554
+ const isFormData2 = utils_default.isFormData(data);
27555
+ if (isFormData2) {
27556
+ return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
27557
+ }
27558
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
27559
+ return data;
27565
27560
  }
27566
- if (utils_default.isBoolean(value)) {
27567
- return value.toString();
27561
+ if (utils_default.isArrayBufferView(data)) {
27562
+ return data.buffer;
27568
27563
  }
27569
- if (!useBlob && utils_default.isBlob(value)) {
27570
- throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
27564
+ if (utils_default.isURLSearchParams(data)) {
27565
+ headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
27566
+ return data.toString();
27571
27567
  }
27572
- if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
27573
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
27568
+ let isFileList2;
27569
+ if (isObjectPayload) {
27570
+ if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
27571
+ return toURLEncodedForm(data, this.formSerializer).toString();
27572
+ }
27573
+ if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
27574
+ const _FormData = this.env && this.env.FormData;
27575
+ return toFormData_default(
27576
+ isFileList2 ? { "files[]": data } : data,
27577
+ _FormData && new _FormData(),
27578
+ this.formSerializer
27579
+ );
27580
+ }
27574
27581
  }
27575
- return value;
27576
- }
27577
- function defaultVisitor(value, key, path2) {
27578
- let arr = value;
27579
- if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
27580
- formData.append(renderKey(path2, key, dots), convertValue(value));
27581
- return false;
27582
+ if (isObjectPayload || hasJSONContentType) {
27583
+ headers.setContentType("application/json", false);
27584
+ return stringifySafely(data);
27582
27585
  }
27583
- if (value && !path2 && typeof value === "object") {
27584
- if (utils_default.endsWith(key, "{}")) {
27585
- key = metaTokens ? key : key.slice(0, -2);
27586
- value = JSON.stringify(value);
27587
- } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
27588
- key = removeBrackets(key);
27589
- arr.forEach(function each(el, index) {
27590
- !(utils_default.isUndefined(el) || el === null) && formData.append(
27591
- // eslint-disable-next-line no-nested-ternary
27592
- indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
27593
- convertValue(el)
27594
- );
27595
- });
27596
- return false;
27586
+ return data;
27587
+ }],
27588
+ transformResponse: [function transformResponse(data) {
27589
+ const transitional2 = this.transitional || defaults.transitional;
27590
+ const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
27591
+ const JSONRequested = this.responseType === "json";
27592
+ if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
27593
+ return data;
27594
+ }
27595
+ if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
27596
+ const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
27597
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
27598
+ try {
27599
+ return JSON.parse(data, this.parseReviver);
27600
+ } catch (e) {
27601
+ if (strictJSONParsing) {
27602
+ if (e.name === "SyntaxError") {
27603
+ throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
27604
+ }
27605
+ throw e;
27606
+ }
27597
27607
  }
27598
27608
  }
27599
- if (isVisitable(value)) {
27600
- return true;
27609
+ return data;
27610
+ }],
27611
+ /**
27612
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
27613
+ * timeout is not created.
27614
+ */
27615
+ timeout: 0,
27616
+ xsrfCookieName: "XSRF-TOKEN",
27617
+ xsrfHeaderName: "X-XSRF-TOKEN",
27618
+ maxContentLength: -1,
27619
+ maxBodyLength: -1,
27620
+ env: {
27621
+ FormData: platform_default.classes.FormData,
27622
+ Blob: platform_default.classes.Blob
27623
+ },
27624
+ validateStatus: function validateStatus(status) {
27625
+ return status >= 200 && status < 300;
27626
+ },
27627
+ headers: {
27628
+ common: {
27629
+ "Accept": "application/json, text/plain, */*",
27630
+ "Content-Type": void 0
27601
27631
  }
27602
- formData.append(renderKey(path2, key, dots), convertValue(value));
27603
- return false;
27604
27632
  }
27605
- const stack = [];
27606
- const exposedHelpers = Object.assign(predicates, {
27607
- defaultVisitor,
27608
- convertValue,
27609
- isVisitable
27610
- });
27611
- function build(value, path2, depth = 0) {
27612
- if (utils_default.isUndefined(value)) return;
27613
- if (depth > maxDepth) {
27614
- throw new AxiosError_default(
27615
- "Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth,
27616
- AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED
27617
- );
27618
- }
27619
- if (stack.indexOf(value) !== -1) {
27620
- throw Error("Circular reference detected in " + path2.join("."));
27633
+ };
27634
+ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
27635
+ defaults.headers[method] = {};
27636
+ });
27637
+ var defaults_default = defaults;
27638
+
27639
+ // node_modules/axios/lib/helpers/parseHeaders.js
27640
+ var ignoreDuplicateOf = utils_default.toObjectSet([
27641
+ "age",
27642
+ "authorization",
27643
+ "content-length",
27644
+ "content-type",
27645
+ "etag",
27646
+ "expires",
27647
+ "from",
27648
+ "host",
27649
+ "if-modified-since",
27650
+ "if-unmodified-since",
27651
+ "last-modified",
27652
+ "location",
27653
+ "max-forwards",
27654
+ "proxy-authorization",
27655
+ "referer",
27656
+ "retry-after",
27657
+ "user-agent"
27658
+ ]);
27659
+ var parseHeaders_default = (rawHeaders) => {
27660
+ const parsed = {};
27661
+ let key;
27662
+ let val;
27663
+ let i;
27664
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line2) {
27665
+ i = line2.indexOf(":");
27666
+ key = line2.substring(0, i).trim().toLowerCase();
27667
+ val = line2.substring(i + 1).trim();
27668
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
27669
+ return;
27621
27670
  }
27622
- stack.push(value);
27623
- utils_default.forEach(value, function each(el, key) {
27624
- const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path2, exposedHelpers);
27625
- if (result === true) {
27626
- build(el, path2 ? path2.concat(key) : [key], depth + 1);
27671
+ if (key === "set-cookie") {
27672
+ if (parsed[key]) {
27673
+ parsed[key].push(val);
27674
+ } else {
27675
+ parsed[key] = [val];
27627
27676
  }
27628
- });
27629
- stack.pop();
27630
- }
27631
- if (!utils_default.isObject(obj)) {
27632
- throw new TypeError("data must be an object");
27633
- }
27634
- build(obj);
27635
- return formData;
27636
- }
27637
- var toFormData_default = toFormData;
27638
-
27639
- // node_modules/axios/lib/helpers/AxiosURLSearchParams.js
27640
- function encode(str) {
27641
- const charMap = {
27642
- "!": "%21",
27643
- "'": "%27",
27644
- "(": "%28",
27645
- ")": "%29",
27646
- "~": "%7E",
27647
- "%20": "+"
27648
- };
27649
- return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
27650
- return charMap[match];
27677
+ } else {
27678
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
27679
+ }
27651
27680
  });
27652
- }
27653
- function AxiosURLSearchParams(params, options) {
27654
- this._pairs = [];
27655
- params && toFormData_default(params, this, options);
27656
- }
27657
- var prototype = AxiosURLSearchParams.prototype;
27658
- prototype.append = function append2(name, value) {
27659
- this._pairs.push([name, value]);
27660
- };
27661
- prototype.toString = function toString2(encoder) {
27662
- const _encode = encoder ? function(value) {
27663
- return encoder.call(this, value, encode);
27664
- } : encode;
27665
- return this._pairs.map(function each(pair) {
27666
- return _encode(pair[0]) + "=" + _encode(pair[1]);
27667
- }, "").join("&");
27681
+ return parsed;
27668
27682
  };
27669
- var AxiosURLSearchParams_default = AxiosURLSearchParams;
27670
27683
 
27671
- // node_modules/axios/lib/helpers/buildURL.js
27672
- function encode2(val) {
27673
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
27684
+ // node_modules/axios/lib/core/AxiosHeaders.js
27685
+ var $internals = Symbol("internals");
27686
+ function normalizeHeader(header) {
27687
+ return header && String(header).trim().toLowerCase();
27674
27688
  }
27675
- function buildURL(url2, params, options) {
27676
- if (!params) {
27677
- return url2;
27678
- }
27679
- const _encode = options && options.encode || encode2;
27680
- const _options = utils_default.isFunction(options) ? {
27681
- serialize: options
27682
- } : options;
27683
- const serializeFn = _options && _options.serialize;
27684
- let serializedParams;
27685
- if (serializeFn) {
27686
- serializedParams = serializeFn(params, _options);
27687
- } else {
27688
- serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, _options).toString(_encode);
27689
- }
27690
- if (serializedParams) {
27691
- const hashmarkIndex = url2.indexOf("#");
27692
- if (hashmarkIndex !== -1) {
27693
- url2 = url2.slice(0, hashmarkIndex);
27694
- }
27695
- url2 += (url2.indexOf("?") === -1 ? "?" : "&") + serializedParams;
27689
+ function normalizeValue(value) {
27690
+ if (value === false || value == null) {
27691
+ return value;
27696
27692
  }
27697
- return url2;
27693
+ return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
27698
27694
  }
27699
-
27700
- // node_modules/axios/lib/core/InterceptorManager.js
27701
- var InterceptorManager = class {
27702
- constructor() {
27703
- this.handlers = [];
27704
- }
27705
- /**
27706
- * Add a new interceptor to the stack
27707
- *
27708
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
27709
- * @param {Function} rejected The function to handle `reject` for a `Promise`
27710
- * @param {Object} options The options for the interceptor, synchronous and runWhen
27711
- *
27712
- * @return {Number} An ID used to remove interceptor later
27713
- */
27714
- use(fulfilled, rejected, options) {
27715
- this.handlers.push({
27716
- fulfilled,
27717
- rejected,
27718
- synchronous: options ? options.synchronous : false,
27719
- runWhen: options ? options.runWhen : null
27720
- });
27721
- return this.handlers.length - 1;
27695
+ function parseTokens(str) {
27696
+ const tokens = /* @__PURE__ */ Object.create(null);
27697
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
27698
+ let match;
27699
+ while (match = tokensRE.exec(str)) {
27700
+ tokens[match[1]] = match[2];
27722
27701
  }
27723
- /**
27724
- * Remove an interceptor from the stack
27725
- *
27726
- * @param {Number} id The ID that was returned by `use`
27727
- *
27728
- * @returns {void}
27729
- */
27730
- eject(id) {
27731
- if (this.handlers[id]) {
27732
- this.handlers[id] = null;
27733
- }
27702
+ return tokens;
27703
+ }
27704
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
27705
+ function matchHeaderValue(context, value, header, filter3, isHeaderNameFilter) {
27706
+ if (utils_default.isFunction(filter3)) {
27707
+ return filter3.call(this, value, header);
27734
27708
  }
27735
- /**
27736
- * Clear all interceptors from the stack
27737
- *
27738
- * @returns {void}
27739
- */
27740
- clear() {
27741
- if (this.handlers) {
27742
- this.handlers = [];
27743
- }
27709
+ if (isHeaderNameFilter) {
27710
+ value = header;
27744
27711
  }
27745
- /**
27746
- * Iterate over all the registered interceptors
27747
- *
27748
- * This method is particularly useful for skipping over any
27749
- * interceptors that may have become `null` calling `eject`.
27750
- *
27751
- * @param {Function} fn The function to call for each interceptor
27752
- *
27753
- * @returns {void}
27754
- */
27755
- forEach(fn) {
27756
- utils_default.forEach(this.handlers, function forEachHandler(h) {
27757
- if (h !== null) {
27758
- fn(h);
27759
- }
27760
- });
27712
+ if (!utils_default.isString(value)) return;
27713
+ if (utils_default.isString(filter3)) {
27714
+ return value.indexOf(filter3) !== -1;
27761
27715
  }
27762
- };
27763
- var InterceptorManager_default = InterceptorManager;
27764
-
27765
- // node_modules/axios/lib/defaults/transitional.js
27766
- var transitional_default = {
27767
- silentJSONParsing: true,
27768
- forcedJSONParsing: true,
27769
- clarifyTimeoutError: false,
27770
- legacyInterceptorReqResOrdering: true
27771
- };
27772
-
27773
- // node_modules/axios/lib/platform/node/index.js
27774
- var import_crypto3 = __toESM(__require("crypto"), 1);
27775
-
27776
- // node_modules/axios/lib/platform/node/classes/URLSearchParams.js
27777
- var import_url = __toESM(__require("url"), 1);
27778
- var URLSearchParams_default = import_url.default.URLSearchParams;
27779
-
27780
- // node_modules/axios/lib/platform/node/index.js
27781
- var ALPHA = "abcdefghijklmnopqrstuvwxyz";
27782
- var DIGIT = "0123456789";
27783
- var ALPHABET = {
27784
- DIGIT,
27785
- ALPHA,
27786
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
27787
- };
27788
- var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
27789
- let str = "";
27790
- const { length } = alphabet;
27791
- const randomValues = new Uint32Array(size);
27792
- import_crypto3.default.randomFillSync(randomValues);
27793
- for (let i = 0; i < size; i++) {
27794
- str += alphabet[randomValues[i] % length];
27716
+ if (utils_default.isRegExp(filter3)) {
27717
+ return filter3.test(value);
27795
27718
  }
27796
- return str;
27797
- };
27798
- var node_default2 = {
27799
- isNode: true,
27800
- classes: {
27801
- URLSearchParams: URLSearchParams_default,
27802
- FormData: FormData_default,
27803
- Blob: typeof Blob !== "undefined" && Blob || null
27804
- },
27805
- ALPHABET,
27806
- generateString,
27807
- protocols: ["http", "https", "file", "data"]
27808
- };
27809
-
27810
- // node_modules/axios/lib/platform/common/utils.js
27811
- var utils_exports = {};
27812
- __export(utils_exports, {
27813
- hasBrowserEnv: () => hasBrowserEnv,
27814
- hasStandardBrowserEnv: () => hasStandardBrowserEnv,
27815
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
27816
- navigator: () => _navigator,
27817
- origin: () => origin
27818
- });
27819
- var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
27820
- var _navigator = typeof navigator === "object" && navigator || void 0;
27821
- var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
27822
- var hasStandardBrowserWebWorkerEnv = (() => {
27823
- return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
27824
- self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
27825
- })();
27826
- var origin = hasBrowserEnv && window.location.href || "http://localhost";
27827
-
27828
- // node_modules/axios/lib/platform/index.js
27829
- var platform_default = {
27830
- ...utils_exports,
27831
- ...node_default2
27832
- };
27833
-
27834
- // node_modules/axios/lib/helpers/toURLEncodedForm.js
27835
- function toURLEncodedForm(data, options) {
27836
- return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
27837
- visitor: function(value, key, path2, helpers) {
27838
- if (platform_default.isNode && utils_default.isBuffer(value)) {
27839
- this.append(key, value.toString("base64"));
27840
- return false;
27841
- }
27842
- return helpers.defaultVisitor.apply(this, arguments);
27843
- },
27844
- ...options
27719
+ }
27720
+ function formatHeader(header) {
27721
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
27722
+ return char.toUpperCase() + str;
27845
27723
  });
27846
27724
  }
27847
-
27848
- // node_modules/axios/lib/helpers/formDataToJSON.js
27849
- function parsePropPath(name) {
27850
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
27851
- return match[0] === "[]" ? "" : match[1] || match[0];
27725
+ function buildAccessors(obj, header) {
27726
+ const accessorName = utils_default.toCamelCase(" " + header);
27727
+ ["get", "set", "has"].forEach((methodName) => {
27728
+ Object.defineProperty(obj, methodName + accessorName, {
27729
+ value: function(arg1, arg2, arg3) {
27730
+ return this[methodName].call(this, header, arg1, arg2, arg3);
27731
+ },
27732
+ configurable: true
27733
+ });
27852
27734
  });
27853
27735
  }
27854
- function arrayToObject(arr) {
27855
- const obj = {};
27856
- const keys = Object.keys(arr);
27857
- let i;
27858
- const len = keys.length;
27859
- let key;
27860
- for (i = 0; i < len; i++) {
27861
- key = keys[i];
27862
- obj[key] = arr[key];
27736
+ var AxiosHeaders = class {
27737
+ constructor(headers) {
27738
+ headers && this.set(headers);
27863
27739
  }
27864
- return obj;
27865
- }
27866
- function formDataToJSON(formData) {
27867
- function buildPath(path2, value, target, index) {
27868
- let name = path2[index++];
27869
- if (name === "__proto__") return true;
27870
- const isNumericKey = Number.isFinite(+name);
27871
- const isLast = index >= path2.length;
27872
- name = !name && utils_default.isArray(target) ? target.length : name;
27873
- if (isLast) {
27874
- if (utils_default.hasOwnProp(target, name)) {
27875
- target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
27876
- } else {
27877
- target[name] = value;
27740
+ set(header, valueOrRewrite, rewrite) {
27741
+ const self2 = this;
27742
+ function setHeader(_value, _header, _rewrite) {
27743
+ const lHeader = normalizeHeader(_header);
27744
+ if (!lHeader) {
27745
+ throw new Error("header name must be a non-empty string");
27746
+ }
27747
+ const key = utils_default.findKey(self2, lHeader);
27748
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
27749
+ self2[key || _header] = normalizeValue(_value);
27878
27750
  }
27879
- return !isNumericKey;
27880
27751
  }
27881
- if (!target[name] || !utils_default.isObject(target[name])) {
27882
- target[name] = [];
27752
+ const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
27753
+ if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
27754
+ setHeaders(header, valueOrRewrite);
27755
+ } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
27756
+ setHeaders(parseHeaders_default(header), valueOrRewrite);
27757
+ } else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
27758
+ let obj = {}, dest, key;
27759
+ for (const entry of header) {
27760
+ if (!utils_default.isArray(entry)) {
27761
+ throw TypeError("Object iterator must return a key-value pair");
27762
+ }
27763
+ obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
27764
+ }
27765
+ setHeaders(obj, valueOrRewrite);
27766
+ } else {
27767
+ header != null && setHeader(valueOrRewrite, header, rewrite);
27883
27768
  }
27884
- const result = buildPath(path2, value, target[name], index);
27885
- if (result && utils_default.isArray(target[name])) {
27886
- target[name] = arrayToObject(target[name]);
27769
+ return this;
27770
+ }
27771
+ get(header, parser) {
27772
+ header = normalizeHeader(header);
27773
+ if (header) {
27774
+ const key = utils_default.findKey(this, header);
27775
+ if (key) {
27776
+ const value = this[key];
27777
+ if (!parser) {
27778
+ return value;
27779
+ }
27780
+ if (parser === true) {
27781
+ return parseTokens(value);
27782
+ }
27783
+ if (utils_default.isFunction(parser)) {
27784
+ return parser.call(this, value, key);
27785
+ }
27786
+ if (utils_default.isRegExp(parser)) {
27787
+ return parser.exec(value);
27788
+ }
27789
+ throw new TypeError("parser must be boolean|regexp|function");
27790
+ }
27887
27791
  }
27888
- return !isNumericKey;
27889
27792
  }
27890
- if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
27891
- const obj = {};
27892
- utils_default.forEachEntry(formData, (name, value) => {
27893
- buildPath(parsePropPath(name), value, obj, 0);
27894
- });
27895
- return obj;
27793
+ has(header, matcher) {
27794
+ header = normalizeHeader(header);
27795
+ if (header) {
27796
+ const key = utils_default.findKey(this, header);
27797
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
27798
+ }
27799
+ return false;
27800
+ }
27801
+ delete(header, matcher) {
27802
+ const self2 = this;
27803
+ let deleted = false;
27804
+ function deleteHeader(_header) {
27805
+ _header = normalizeHeader(_header);
27806
+ if (_header) {
27807
+ const key = utils_default.findKey(self2, _header);
27808
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
27809
+ delete self2[key];
27810
+ deleted = true;
27811
+ }
27812
+ }
27813
+ }
27814
+ if (utils_default.isArray(header)) {
27815
+ header.forEach(deleteHeader);
27816
+ } else {
27817
+ deleteHeader(header);
27818
+ }
27819
+ return deleted;
27820
+ }
27821
+ clear(matcher) {
27822
+ const keys = Object.keys(this);
27823
+ let i = keys.length;
27824
+ let deleted = false;
27825
+ while (i--) {
27826
+ const key = keys[i];
27827
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
27828
+ delete this[key];
27829
+ deleted = true;
27830
+ }
27831
+ }
27832
+ return deleted;
27833
+ }
27834
+ normalize(format2) {
27835
+ const self2 = this;
27836
+ const headers = {};
27837
+ utils_default.forEach(this, (value, header) => {
27838
+ const key = utils_default.findKey(headers, header);
27839
+ if (key) {
27840
+ self2[key] = normalizeValue(value);
27841
+ delete self2[header];
27842
+ return;
27843
+ }
27844
+ const normalized = format2 ? formatHeader(header) : String(header).trim();
27845
+ if (normalized !== header) {
27846
+ delete self2[header];
27847
+ }
27848
+ self2[normalized] = normalizeValue(value);
27849
+ headers[normalized] = true;
27850
+ });
27851
+ return this;
27852
+ }
27853
+ concat(...targets) {
27854
+ return this.constructor.concat(this, ...targets);
27855
+ }
27856
+ toJSON(asStrings) {
27857
+ const obj = /* @__PURE__ */ Object.create(null);
27858
+ utils_default.forEach(this, (value, header) => {
27859
+ value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
27860
+ });
27861
+ return obj;
27862
+ }
27863
+ [Symbol.iterator]() {
27864
+ return Object.entries(this.toJSON())[Symbol.iterator]();
27865
+ }
27866
+ toString() {
27867
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
27868
+ }
27869
+ getSetCookie() {
27870
+ return this.get("set-cookie") || [];
27871
+ }
27872
+ get [Symbol.toStringTag]() {
27873
+ return "AxiosHeaders";
27896
27874
  }
27897
- return null;
27898
- }
27899
- var formDataToJSON_default = formDataToJSON;
27900
-
27901
- // node_modules/axios/lib/defaults/index.js
27902
- var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
27903
- function stringifySafely(rawValue, parser, encoder) {
27904
- if (utils_default.isString(rawValue)) {
27905
- try {
27906
- (parser || JSON.parse)(rawValue);
27907
- return utils_default.trim(rawValue);
27908
- } catch (e) {
27909
- if (e.name !== "SyntaxError") {
27910
- throw e;
27911
- }
27912
- }
27875
+ static from(thing) {
27876
+ return thing instanceof this ? thing : new this(thing);
27913
27877
  }
27914
- return (encoder || JSON.stringify)(rawValue);
27915
- }
27916
- var defaults = {
27917
- transitional: transitional_default,
27918
- adapter: ["xhr", "http", "fetch"],
27919
- transformRequest: [
27920
- function transformRequest(data, headers) {
27921
- const contentType = headers.getContentType() || "";
27922
- const hasJSONContentType = contentType.indexOf("application/json") > -1;
27923
- const isObjectPayload = utils_default.isObject(data);
27924
- if (isObjectPayload && utils_default.isHTMLForm(data)) {
27925
- data = new FormData(data);
27926
- }
27927
- const isFormData2 = utils_default.isFormData(data);
27928
- if (isFormData2) {
27929
- return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
27930
- }
27931
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
27932
- return data;
27933
- }
27934
- if (utils_default.isArrayBufferView(data)) {
27935
- return data.buffer;
27936
- }
27937
- if (utils_default.isURLSearchParams(data)) {
27938
- headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
27939
- return data.toString();
27940
- }
27941
- let isFileList2;
27942
- if (isObjectPayload) {
27943
- const formSerializer = own(this, "formSerializer");
27944
- if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
27945
- return toURLEncodedForm(data, formSerializer).toString();
27946
- }
27947
- if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
27948
- const env = own(this, "env");
27949
- const _FormData = env && env.FormData;
27950
- return toFormData_default(
27951
- isFileList2 ? { "files[]": data } : data,
27952
- _FormData && new _FormData(),
27953
- formSerializer
27954
- );
27955
- }
27956
- }
27957
- if (isObjectPayload || hasJSONContentType) {
27958
- headers.setContentType("application/json", false);
27959
- return stringifySafely(data);
27960
- }
27961
- return data;
27962
- }
27963
- ],
27964
- transformResponse: [
27965
- function transformResponse(data) {
27966
- const transitional2 = own(this, "transitional") || defaults.transitional;
27967
- const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
27968
- const responseType = own(this, "responseType");
27969
- const JSONRequested = responseType === "json";
27970
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
27971
- return data;
27972
- }
27973
- if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
27974
- const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
27975
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
27976
- try {
27977
- return JSON.parse(data, own(this, "parseReviver"));
27978
- } catch (e) {
27979
- if (strictJSONParsing) {
27980
- if (e.name === "SyntaxError") {
27981
- throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, own(this, "response"));
27982
- }
27983
- throw e;
27984
- }
27985
- }
27878
+ static concat(first, ...targets) {
27879
+ const computed = new this(first);
27880
+ targets.forEach((target) => computed.set(target));
27881
+ return computed;
27882
+ }
27883
+ static accessor(header) {
27884
+ const internals = this[$internals] = this[$internals] = {
27885
+ accessors: {}
27886
+ };
27887
+ const accessors = internals.accessors;
27888
+ const prototype3 = this.prototype;
27889
+ function defineAccessor(_header) {
27890
+ const lHeader = normalizeHeader(_header);
27891
+ if (!accessors[lHeader]) {
27892
+ buildAccessors(prototype3, _header);
27893
+ accessors[lHeader] = true;
27986
27894
  }
27987
- return data;
27988
- }
27989
- ],
27990
- /**
27991
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
27992
- * timeout is not created.
27993
- */
27994
- timeout: 0,
27995
- xsrfCookieName: "XSRF-TOKEN",
27996
- xsrfHeaderName: "X-XSRF-TOKEN",
27997
- maxContentLength: -1,
27998
- maxBodyLength: -1,
27999
- env: {
28000
- FormData: platform_default.classes.FormData,
28001
- Blob: platform_default.classes.Blob
28002
- },
28003
- validateStatus: function validateStatus(status) {
28004
- return status >= 200 && status < 300;
28005
- },
28006
- headers: {
28007
- common: {
28008
- Accept: "application/json, text/plain, */*",
28009
- "Content-Type": void 0
28010
27895
  }
27896
+ utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
27897
+ return this;
28011
27898
  }
28012
27899
  };
28013
- utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
28014
- defaults.headers[method] = {};
27900
+ AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
27901
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
27902
+ let mapped = key[0].toUpperCase() + key.slice(1);
27903
+ return {
27904
+ get: () => value,
27905
+ set(headerValue) {
27906
+ this[mapped] = headerValue;
27907
+ }
27908
+ };
28015
27909
  });
28016
- var defaults_default = defaults;
27910
+ utils_default.freezeMethods(AxiosHeaders);
27911
+ var AxiosHeaders_default = AxiosHeaders;
28017
27912
 
28018
27913
  // node_modules/axios/lib/core/transformData.js
28019
27914
  function transformData(fns, response) {
@@ -28034,22 +27929,13 @@
28034
27929
  }
28035
27930
 
28036
27931
  // node_modules/axios/lib/cancel/CanceledError.js
28037
- var CanceledError = class extends AxiosError_default {
28038
- /**
28039
- * A `CanceledError` is an object that is thrown when an operation is canceled.
28040
- *
28041
- * @param {string=} message The message.
28042
- * @param {Object=} config The config.
28043
- * @param {Object=} request The request.
28044
- *
28045
- * @returns {CanceledError} The created error.
28046
- */
28047
- constructor(message, config, request) {
28048
- super(message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
28049
- this.name = "CanceledError";
28050
- this.__CANCEL__ = true;
28051
- }
28052
- };
27932
+ function CanceledError(message, config, request) {
27933
+ AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
27934
+ this.name = "CanceledError";
27935
+ }
27936
+ utils_default.inherits(CanceledError, AxiosError_default, {
27937
+ __CANCEL__: true
27938
+ });
28053
27939
  var CanceledError_default = CanceledError;
28054
27940
 
28055
27941
  // node_modules/axios/lib/core/settle.js
@@ -28060,7 +27946,7 @@
28060
27946
  } else {
28061
27947
  reject(new AxiosError_default(
28062
27948
  "Request failed with status code " + response.status,
28063
- response.status >= 400 && response.status < 500 ? AxiosError_default.ERR_BAD_REQUEST : AxiosError_default.ERR_BAD_RESPONSE,
27949
+ [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
28064
27950
  response.config,
28065
27951
  response.request,
28066
27952
  response
@@ -28070,9 +27956,6 @@
28070
27956
 
28071
27957
  // node_modules/axios/lib/helpers/isAbsoluteURL.js
28072
27958
  function isAbsoluteURL(url2) {
28073
- if (typeof url2 !== "string") {
28074
- return false;
28075
- }
28076
27959
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
28077
27960
  }
28078
27961
 
@@ -28084,94 +27967,26 @@
28084
27967
  // node_modules/axios/lib/core/buildFullPath.js
28085
27968
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
28086
27969
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
28087
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
27970
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
28088
27971
  return combineURLs(baseURL, requestedURL);
28089
27972
  }
28090
27973
  return requestedURL;
28091
27974
  }
28092
27975
 
28093
- // node_modules/proxy-from-env/index.js
28094
- var DEFAULT_PORTS = {
28095
- ftp: 21,
28096
- gopher: 70,
28097
- http: 80,
28098
- https: 443,
28099
- ws: 80,
28100
- wss: 443
28101
- };
28102
- function parseUrl(urlString) {
28103
- try {
28104
- return new URL(urlString);
28105
- } catch (e) {
28106
- return null;
28107
- }
28108
- }
28109
- function getProxyForUrl(url2) {
28110
- var parsedUrl = (typeof url2 === "string" ? parseUrl(url2) : url2) || {};
28111
- var proto2 = parsedUrl.protocol;
28112
- var hostname = parsedUrl.host;
28113
- var port = parsedUrl.port;
28114
- if (typeof hostname !== "string" || !hostname || typeof proto2 !== "string") {
28115
- return "";
28116
- }
28117
- proto2 = proto2.split(":", 1)[0];
28118
- hostname = hostname.replace(/:\d*$/, "");
28119
- port = parseInt(port) || DEFAULT_PORTS[proto2] || 0;
28120
- if (!shouldProxy(hostname, port)) {
28121
- return "";
28122
- }
28123
- var proxy = getEnv(proto2 + "_proxy") || getEnv("all_proxy");
28124
- if (proxy && proxy.indexOf("://") === -1) {
28125
- proxy = proto2 + "://" + proxy;
28126
- }
28127
- return proxy;
28128
- }
28129
- function shouldProxy(hostname, port) {
28130
- var NO_PROXY = getEnv("no_proxy").toLowerCase();
28131
- if (!NO_PROXY) {
28132
- return true;
28133
- }
28134
- if (NO_PROXY === "*") {
28135
- return false;
28136
- }
28137
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
28138
- if (!proxy) {
28139
- return true;
28140
- }
28141
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
28142
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
28143
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
28144
- if (parsedProxyPort && parsedProxyPort !== port) {
28145
- return true;
28146
- }
28147
- if (!/^[.*]/.test(parsedProxyHostname)) {
28148
- return hostname !== parsedProxyHostname;
28149
- }
28150
- if (parsedProxyHostname.charAt(0) === "*") {
28151
- parsedProxyHostname = parsedProxyHostname.slice(1);
28152
- }
28153
- return !hostname.endsWith(parsedProxyHostname);
28154
- });
28155
- }
28156
- function getEnv(key) {
28157
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
28158
- }
28159
-
28160
27976
  // node_modules/axios/lib/adapters/http.js
27977
+ var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
28161
27978
  var import_http = __toESM(__require("http"), 1);
28162
27979
  var import_https = __toESM(__require("https"), 1);
28163
- var import_http2 = __toESM(__require("http2"), 1);
28164
27980
  var import_util2 = __toESM(__require("util"), 1);
28165
- var import_path3 = __require("path");
28166
27981
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
28167
27982
  var import_zlib = __toESM(__require("zlib"), 1);
28168
27983
 
28169
27984
  // node_modules/axios/lib/env/data.js
28170
- var VERSION = "1.16.0";
27985
+ var VERSION = "1.12.2";
28171
27986
 
28172
27987
  // node_modules/axios/lib/helpers/parseProtocol.js
28173
27988
  function parseProtocol(url2) {
28174
- const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
27989
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
28175
27990
  return match && match[1] || "";
28176
27991
  }
28177
27992
 
@@ -28212,21 +28027,16 @@
28212
28027
  var kInternals = Symbol("internals");
28213
28028
  var AxiosTransformStream = class extends import_stream.default.Transform {
28214
28029
  constructor(options) {
28215
- options = utils_default.toFlatObject(
28216
- options,
28217
- {
28218
- maxRate: 0,
28219
- chunkSize: 64 * 1024,
28220
- minChunkSize: 100,
28221
- timeWindow: 500,
28222
- ticksRate: 2,
28223
- samplesCount: 15
28224
- },
28225
- null,
28226
- (prop, source) => {
28227
- return !utils_default.isUndefined(source[prop]);
28228
- }
28229
- );
28030
+ options = utils_default.toFlatObject(options, {
28031
+ maxRate: 0,
28032
+ chunkSize: 64 * 1024,
28033
+ minChunkSize: 100,
28034
+ timeWindow: 500,
28035
+ ticksRate: 2,
28036
+ samplesCount: 15
28037
+ }, null, (prop, source) => {
28038
+ return !utils_default.isUndefined(source[prop]);
28039
+ });
28230
28040
  super({
28231
28041
  readableHighWaterMark: options.chunkSize
28232
28042
  });
@@ -28309,12 +28119,9 @@
28309
28119
  chunkRemainder = _chunk.subarray(maxChunkSize);
28310
28120
  _chunk = _chunk.subarray(0, maxChunkSize);
28311
28121
  }
28312
- pushChunk(
28313
- _chunk,
28314
- chunkRemainder ? () => {
28315
- process.nextTick(_callback, null, chunkRemainder);
28316
- } : _callback
28317
- );
28122
+ pushChunk(_chunk, chunkRemainder ? () => {
28123
+ process.nextTick(_callback, null, chunkRemainder);
28124
+ } : _callback);
28318
28125
  };
28319
28126
  transformChunk(chunk, function transformNextChunk(err, _chunk) {
28320
28127
  if (err) {
@@ -28366,8 +28173,7 @@
28366
28173
  if (isStringValue) {
28367
28174
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
28368
28175
  } else {
28369
- const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
28370
- headers += `Content-Type: ${safeType}${CRLF}`;
28176
+ headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
28371
28177
  }
28372
28178
  this.headers = textEncoder.encode(headers + CRLF);
28373
28179
  this.contentLength = isStringValue ? value.byteLength : value.size;
@@ -28386,14 +28192,11 @@
28386
28192
  yield CRLF_BYTES;
28387
28193
  }
28388
28194
  static escapeName(name) {
28389
- return String(name).replace(
28390
- /[\r\n"]/g,
28391
- (match) => ({
28392
- "\r": "%0D",
28393
- "\n": "%0A",
28394
- '"': "%22"
28395
- })[match]
28396
- );
28195
+ return String(name).replace(/[\r\n"]/g, (match) => ({
28196
+ "\r": "%0D",
28197
+ "\n": "%0A",
28198
+ '"': "%22"
28199
+ })[match]);
28397
28200
  }
28398
28201
  };
28399
28202
  var formDataToStream = (form, headersHandler, options) => {
@@ -28406,7 +28209,7 @@
28406
28209
  throw TypeError("FormData instance required");
28407
28210
  }
28408
28211
  if (boundary.length < 1 || boundary.length > 70) {
28409
- throw Error("boundary must be 1-70 characters long");
28212
+ throw Error("boundary must be 10-70 characters long");
28410
28213
  }
28411
28214
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
28412
28215
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -28425,15 +28228,13 @@
28425
28228
  computedHeaders["Content-Length"] = contentLength;
28426
28229
  }
28427
28230
  headersHandler && headersHandler(computedHeaders);
28428
- return import_stream2.Readable.from(
28429
- (async function* () {
28430
- for (const part of parts) {
28431
- yield boundaryBytes;
28432
- yield* part.encode();
28433
- }
28434
- yield footerBytes;
28435
- })()
28436
- );
28231
+ return import_stream2.Readable.from((async function* () {
28232
+ for (const part of parts) {
28233
+ yield boundaryBytes;
28234
+ yield* part.encode();
28235
+ }
28236
+ yield footerBytes;
28237
+ })());
28437
28238
  };
28438
28239
  var formDataToStream_default = formDataToStream;
28439
28240
 
@@ -28474,128 +28275,6 @@
28474
28275
  };
28475
28276
  var callbackify_default = callbackify;
28476
28277
 
28477
- // node_modules/axios/lib/helpers/shouldBypassProxy.js
28478
- var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
28479
- var isIPv4Loopback = (host) => {
28480
- const parts = host.split(".");
28481
- if (parts.length !== 4) return false;
28482
- if (parts[0] !== "127") return false;
28483
- return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
28484
- };
28485
- var isIPv6Loopback = (host) => {
28486
- if (host === "::1") return true;
28487
- const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
28488
- if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
28489
- const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
28490
- if (v4MappedHex) {
28491
- const high = parseInt(v4MappedHex[1], 16);
28492
- return high >= 32512 && high <= 32767;
28493
- }
28494
- const groups = host.split(":");
28495
- if (groups.length === 8) {
28496
- for (let i = 0; i < 7; i++) {
28497
- if (!/^0+$/.test(groups[i])) return false;
28498
- }
28499
- return /^0*1$/.test(groups[7]);
28500
- }
28501
- return false;
28502
- };
28503
- var isLoopback = (host) => {
28504
- if (!host) return false;
28505
- if (LOOPBACK_HOSTNAMES.has(host)) return true;
28506
- if (isIPv4Loopback(host)) return true;
28507
- return isIPv6Loopback(host);
28508
- };
28509
- var DEFAULT_PORTS2 = {
28510
- http: 80,
28511
- https: 443,
28512
- ws: 80,
28513
- wss: 443,
28514
- ftp: 21
28515
- };
28516
- var parseNoProxyEntry = (entry) => {
28517
- let entryHost = entry;
28518
- let entryPort = 0;
28519
- if (entryHost.charAt(0) === "[") {
28520
- const bracketIndex = entryHost.indexOf("]");
28521
- if (bracketIndex !== -1) {
28522
- const host = entryHost.slice(1, bracketIndex);
28523
- const rest = entryHost.slice(bracketIndex + 1);
28524
- if (rest.charAt(0) === ":" && /^\d+$/.test(rest.slice(1))) {
28525
- entryPort = Number.parseInt(rest.slice(1), 10);
28526
- }
28527
- return [host, entryPort];
28528
- }
28529
- }
28530
- const firstColon = entryHost.indexOf(":");
28531
- const lastColon = entryHost.lastIndexOf(":");
28532
- if (firstColon !== -1 && firstColon === lastColon && /^\d+$/.test(entryHost.slice(lastColon + 1))) {
28533
- entryPort = Number.parseInt(entryHost.slice(lastColon + 1), 10);
28534
- entryHost = entryHost.slice(0, lastColon);
28535
- }
28536
- return [entryHost, entryPort];
28537
- };
28538
- var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
28539
- var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
28540
- var unmapIPv4MappedIPv6 = (host) => {
28541
- if (typeof host !== "string" || host.indexOf(":") === -1) return host;
28542
- const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
28543
- if (dotted) return dotted[1];
28544
- const hex2 = host.match(IPV4_MAPPED_HEX_RE);
28545
- if (hex2) {
28546
- const high = parseInt(hex2[1], 16);
28547
- const low = parseInt(hex2[2], 16);
28548
- return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
28549
- }
28550
- return host;
28551
- };
28552
- var normalizeNoProxyHost = (hostname) => {
28553
- if (!hostname) {
28554
- return hostname;
28555
- }
28556
- if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
28557
- hostname = hostname.slice(1, -1);
28558
- }
28559
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
28560
- };
28561
- function shouldBypassProxy(location) {
28562
- let parsed;
28563
- try {
28564
- parsed = new URL(location);
28565
- } catch (_err) {
28566
- return false;
28567
- }
28568
- const noProxy = (process.env.no_proxy || process.env.NO_PROXY || "").toLowerCase();
28569
- if (!noProxy) {
28570
- return false;
28571
- }
28572
- if (noProxy === "*") {
28573
- return true;
28574
- }
28575
- const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS2[parsed.protocol.split(":", 1)[0]] || 0;
28576
- const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
28577
- return noProxy.split(/[\s,]+/).some((entry) => {
28578
- if (!entry) {
28579
- return false;
28580
- }
28581
- let [entryHost, entryPort] = parseNoProxyEntry(entry);
28582
- entryHost = normalizeNoProxyHost(entryHost);
28583
- if (!entryHost) {
28584
- return false;
28585
- }
28586
- if (entryPort && entryPort !== port) {
28587
- return false;
28588
- }
28589
- if (entryHost.charAt(0) === "*") {
28590
- entryHost = entryHost.slice(1);
28591
- }
28592
- if (entryHost.charAt(0) === ".") {
28593
- return hostname.endsWith(entryHost);
28594
- }
28595
- return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
28596
- });
28597
- }
28598
-
28599
28278
  // node_modules/axios/lib/helpers/speedometer.js
28600
28279
  function speedometer(samplesCount, min2) {
28601
28280
  samplesCount = samplesCount || 10;
@@ -28672,19 +28351,19 @@
28672
28351
  let bytesNotified = 0;
28673
28352
  const _speedometer = speedometer_default(50, 250);
28674
28353
  return throttle_default((e) => {
28675
- const rawLoaded = e.loaded;
28354
+ const loaded = e.loaded;
28676
28355
  const total = e.lengthComputable ? e.total : void 0;
28677
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
28678
- const progressBytes = Math.max(0, loaded - bytesNotified);
28356
+ const progressBytes = loaded - bytesNotified;
28679
28357
  const rate = _speedometer(progressBytes);
28680
- bytesNotified = Math.max(bytesNotified, loaded);
28358
+ const inRange = loaded <= total;
28359
+ bytesNotified = loaded;
28681
28360
  const data = {
28682
28361
  loaded,
28683
28362
  total,
28684
28363
  progress: total ? loaded / total : void 0,
28685
28364
  bytes: progressBytes,
28686
28365
  rate: rate ? rate : void 0,
28687
- estimated: rate && total ? (total - loaded) / rate : void 0,
28366
+ estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
28688
28367
  event: e,
28689
28368
  lengthComputable: total != null,
28690
28369
  [isDownloadStream ? "download" : "upload"]: true
@@ -28694,14 +28373,11 @@
28694
28373
  };
28695
28374
  var progressEventDecorator = (total, throttled) => {
28696
28375
  const lengthComputable = total != null;
28697
- return [
28698
- (loaded) => throttled[0]({
28699
- lengthComputable,
28700
- total,
28701
- loaded
28702
- }),
28703
- throttled[1]
28704
- ];
28376
+ return [(loaded) => throttled[0]({
28377
+ lengthComputable,
28378
+ total,
28379
+ loaded
28380
+ }), throttled[1]];
28705
28381
  };
28706
28382
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
28707
28383
 
@@ -28750,32 +28426,10 @@
28750
28426
  }
28751
28427
  }
28752
28428
  const groups = Math.floor(effectiveLen / 4);
28753
- const bytes2 = groups * 3 - (pad2 || 0);
28754
- return bytes2 > 0 ? bytes2 : 0;
28429
+ const bytes = groups * 3 - (pad2 || 0);
28430
+ return bytes > 0 ? bytes : 0;
28755
28431
  }
28756
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
28757
- return Buffer.byteLength(body, "utf8");
28758
- }
28759
- let bytes = 0;
28760
- for (let i = 0, len = body.length; i < len; i++) {
28761
- const c = body.charCodeAt(i);
28762
- if (c < 128) {
28763
- bytes += 1;
28764
- } else if (c < 2048) {
28765
- bytes += 2;
28766
- } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
28767
- const next = body.charCodeAt(i + 1);
28768
- if (next >= 56320 && next <= 57343) {
28769
- bytes += 4;
28770
- i++;
28771
- } else {
28772
- bytes += 3;
28773
- }
28774
- } else {
28775
- bytes += 3;
28776
- }
28777
- }
28778
- return bytes;
28432
+ return Buffer.byteLength(body, "utf8");
28779
28433
  }
28780
28434
 
28781
28435
  // node_modules/axios/lib/adapters/http.js
@@ -28790,179 +28444,52 @@
28790
28444
  var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
28791
28445
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
28792
28446
  var isHttps = /https:?/;
28793
- var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
28794
- function setFormDataHeaders(headers, formHeaders, policy) {
28795
- if (policy !== "content-only") {
28796
- headers.set(formHeaders);
28797
- return;
28798
- }
28799
- Object.entries(formHeaders).forEach(([key, val]) => {
28800
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
28801
- headers.set(key, val);
28802
- }
28803
- });
28804
- }
28805
- var kAxiosSocketListener = Symbol("axios.http.socketListener");
28806
- var kAxiosCurrentReq = Symbol("axios.http.currentReq");
28807
28447
  var supportedProtocols = platform_default.protocols.map((protocol) => {
28808
28448
  return protocol + ":";
28809
28449
  });
28810
- var decodeURIComponentSafe = (value) => {
28811
- if (!utils_default.isString(value)) {
28812
- return value;
28813
- }
28814
- try {
28815
- return decodeURIComponent(value);
28816
- } catch (error) {
28817
- return value;
28818
- }
28819
- };
28820
28450
  var flushOnFinish = (stream4, [throttled, flush]) => {
28821
28451
  stream4.on("end", flush).on("error", flush);
28822
28452
  return throttled;
28823
28453
  };
28824
- var Http2Sessions = class {
28825
- constructor() {
28826
- this.sessions = /* @__PURE__ */ Object.create(null);
28827
- }
28828
- getSession(authority, options) {
28829
- options = Object.assign(
28830
- {
28831
- sessionTimeout: 1e3
28832
- },
28833
- options
28834
- );
28835
- let authoritySessions = this.sessions[authority];
28836
- if (authoritySessions) {
28837
- let len = authoritySessions.length;
28838
- for (let i = 0; i < len; i++) {
28839
- const [sessionHandle, sessionOptions] = authoritySessions[i];
28840
- if (!sessionHandle.destroyed && !sessionHandle.closed && import_util2.default.isDeepStrictEqual(sessionOptions, options)) {
28841
- return sessionHandle;
28842
- }
28843
- }
28844
- }
28845
- const session = import_http2.default.connect(authority, options);
28846
- let removed;
28847
- const removeSession = () => {
28848
- if (removed) {
28849
- return;
28850
- }
28851
- removed = true;
28852
- let entries = authoritySessions, len = entries.length, i = len;
28853
- while (i--) {
28854
- if (entries[i][0] === session) {
28855
- if (len === 1) {
28856
- delete this.sessions[authority];
28857
- } else {
28858
- entries.splice(i, 1);
28859
- }
28860
- if (!session.closed) {
28861
- session.close();
28862
- }
28863
- return;
28864
- }
28865
- }
28866
- };
28867
- const originalRequestFn = session.request;
28868
- const { sessionTimeout } = options;
28869
- if (sessionTimeout != null) {
28870
- let timer;
28871
- let streamsCount = 0;
28872
- session.request = function() {
28873
- const stream4 = originalRequestFn.apply(this, arguments);
28874
- streamsCount++;
28875
- if (timer) {
28876
- clearTimeout(timer);
28877
- timer = null;
28878
- }
28879
- stream4.once("close", () => {
28880
- if (!--streamsCount) {
28881
- timer = setTimeout(() => {
28882
- timer = null;
28883
- removeSession();
28884
- }, sessionTimeout);
28885
- }
28886
- });
28887
- return stream4;
28888
- };
28889
- }
28890
- session.once("close", removeSession);
28891
- let entry = [session, options];
28892
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
28893
- return session;
28894
- }
28895
- };
28896
- var http2Sessions = new Http2Sessions();
28897
- function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
28454
+ function dispatchBeforeRedirect(options, responseDetails) {
28898
28455
  if (options.beforeRedirects.proxy) {
28899
28456
  options.beforeRedirects.proxy(options);
28900
28457
  }
28901
28458
  if (options.beforeRedirects.config) {
28902
- options.beforeRedirects.config(options, responseDetails, requestDetails);
28459
+ options.beforeRedirects.config(options, responseDetails);
28903
28460
  }
28904
28461
  }
28905
- function setProxy(options, configProxy, location, isRedirect) {
28462
+ function setProxy(options, configProxy, location) {
28906
28463
  let proxy = configProxy;
28907
28464
  if (!proxy && proxy !== false) {
28908
- const proxyUrl = getProxyForUrl(location);
28465
+ const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
28909
28466
  if (proxyUrl) {
28910
- if (!shouldBypassProxy(location)) {
28911
- proxy = new URL(proxyUrl);
28912
- }
28913
- }
28914
- }
28915
- if (isRedirect && options.headers) {
28916
- for (const name of Object.keys(options.headers)) {
28917
- if (name.toLowerCase() === "proxy-authorization") {
28918
- delete options.headers[name];
28919
- }
28467
+ proxy = new URL(proxyUrl);
28920
28468
  }
28921
28469
  }
28922
28470
  if (proxy) {
28923
- const isProxyURL = proxy instanceof URL;
28924
- const readProxyField = (key) => isProxyURL || utils_default.hasOwnProp(proxy, key) ? proxy[key] : void 0;
28925
- const proxyUsername = readProxyField("username");
28926
- const proxyPassword = readProxyField("password");
28927
- let proxyAuth = utils_default.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
28928
- if (proxyUsername) {
28929
- proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
28930
- }
28931
- if (proxyAuth) {
28932
- const authIsObject = typeof proxyAuth === "object";
28933
- const authUsername = authIsObject && utils_default.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
28934
- const authPassword = authIsObject && utils_default.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
28935
- const validProxyAuth = Boolean(authUsername || authPassword);
28936
- if (validProxyAuth) {
28937
- proxyAuth = (authUsername || "") + ":" + (authPassword || "");
28938
- } else if (authIsObject) {
28939
- throw new AxiosError_default("Invalid proxy authorization", AxiosError_default.ERR_BAD_OPTION, { proxy });
28940
- }
28941
- const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
28942
- options.headers["Proxy-Authorization"] = "Basic " + base64;
28471
+ if (proxy.username) {
28472
+ proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
28943
28473
  }
28944
- let hasUserHostHeader = false;
28945
- for (const name of Object.keys(options.headers)) {
28946
- if (name.toLowerCase() === "host") {
28947
- hasUserHostHeader = true;
28948
- break;
28474
+ if (proxy.auth) {
28475
+ if (proxy.auth.username || proxy.auth.password) {
28476
+ proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
28949
28477
  }
28478
+ const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
28479
+ options.headers["Proxy-Authorization"] = "Basic " + base64;
28950
28480
  }
28951
- if (!hasUserHostHeader) {
28952
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
28953
- }
28954
- const proxyHost = readProxyField("hostname") || readProxyField("host");
28481
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
28482
+ const proxyHost = proxy.hostname || proxy.host;
28955
28483
  options.hostname = proxyHost;
28956
28484
  options.host = proxyHost;
28957
- options.port = readProxyField("port");
28485
+ options.port = proxy.port;
28958
28486
  options.path = location;
28959
- const proxyProtocol = readProxyField("protocol");
28960
- if (proxyProtocol) {
28961
- options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
28487
+ if (proxy.protocol) {
28488
+ options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
28962
28489
  }
28963
28490
  }
28964
28491
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
28965
- setProxy(redirectOptions, configProxy, redirectOptions.href, true);
28492
+ setProxy(redirectOptions, configProxy, redirectOptions.href);
28966
28493
  };
28967
28494
  }
28968
28495
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
@@ -28996,57 +28523,14 @@
28996
28523
  };
28997
28524
  };
28998
28525
  var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
28999
- var http2Transport = {
29000
- request(options, cb) {
29001
- const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
29002
- const { http2Options, headers } = options;
29003
- const session = http2Sessions.getSession(authority, http2Options);
29004
- const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = import_http2.default.constants;
29005
- const http2Headers = {
29006
- [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
29007
- [HTTP2_HEADER_METHOD]: options.method,
29008
- [HTTP2_HEADER_PATH]: options.path
29009
- };
29010
- utils_default.forEach(headers, (header, name) => {
29011
- name.charAt(0) !== ":" && (http2Headers[name] = header);
29012
- });
29013
- const req = session.request(http2Headers);
29014
- req.once("response", (responseHeaders) => {
29015
- const response = req;
29016
- responseHeaders = Object.assign({}, responseHeaders);
29017
- const status = responseHeaders[HTTP2_HEADER_STATUS];
29018
- delete responseHeaders[HTTP2_HEADER_STATUS];
29019
- response.headers = responseHeaders;
29020
- response.statusCode = +status;
29021
- cb(response);
29022
- });
29023
- return req;
29024
- }
29025
- };
29026
28526
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
29027
28527
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
29028
- const own2 = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
29029
- let data = own2("data");
29030
- let lookup = own2("lookup");
29031
- let family = own2("family");
29032
- let httpVersion = own2("httpVersion");
29033
- if (httpVersion === void 0) httpVersion = 1;
29034
- let http2Options = own2("http2Options");
29035
- const responseType = own2("responseType");
29036
- const responseEncoding = own2("responseEncoding");
28528
+ let { data, lookup, family } = config;
28529
+ const { responseType, responseEncoding } = config;
29037
28530
  const method = config.method.toUpperCase();
29038
28531
  let isDone;
29039
28532
  let rejected = false;
29040
28533
  let req;
29041
- let connectPhaseTimer;
29042
- httpVersion = +httpVersion;
29043
- if (Number.isNaN(httpVersion)) {
29044
- throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
29045
- }
29046
- if (httpVersion !== 1 && httpVersion !== 2) {
29047
- throw TypeError(`Unsupported protocol version '${httpVersion}'`);
29048
- }
29049
- const isHttp2 = httpVersion === 2;
29050
28534
  if (lookup) {
29051
28535
  const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
29052
28536
  lookup = (hostname, opt, cb) => {
@@ -29059,86 +28543,46 @@
29059
28543
  });
29060
28544
  };
29061
28545
  }
29062
- const abortEmitter = new import_events.EventEmitter();
29063
- function abort(reason) {
29064
- try {
29065
- abortEmitter.emit(
29066
- "abort",
29067
- !reason || reason.type ? new CanceledError_default(null, config, req) : reason
29068
- );
29069
- } catch (err) {
29070
- console.warn("emit error", err);
29071
- }
29072
- }
29073
- function clearConnectPhaseTimer() {
29074
- if (connectPhaseTimer) {
29075
- clearTimeout(connectPhaseTimer);
29076
- connectPhaseTimer = null;
29077
- }
29078
- }
29079
- function createTimeoutError() {
29080
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
29081
- const transitional2 = config.transitional || transitional_default;
29082
- if (config.timeoutErrorMessage) {
29083
- timeoutErrorMessage = config.timeoutErrorMessage;
29084
- }
29085
- return new AxiosError_default(
29086
- timeoutErrorMessage,
29087
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
29088
- config,
29089
- req
29090
- );
29091
- }
29092
- abortEmitter.once("abort", reject);
28546
+ const emitter = new import_events.EventEmitter();
29093
28547
  const onFinished = () => {
29094
- clearConnectPhaseTimer();
29095
28548
  if (config.cancelToken) {
29096
28549
  config.cancelToken.unsubscribe(abort);
29097
28550
  }
29098
28551
  if (config.signal) {
29099
28552
  config.signal.removeEventListener("abort", abort);
29100
28553
  }
29101
- abortEmitter.removeAllListeners();
28554
+ emitter.removeAllListeners();
29102
28555
  };
29103
- if (config.cancelToken || config.signal) {
29104
- config.cancelToken && config.cancelToken.subscribe(abort);
29105
- if (config.signal) {
29106
- config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
29107
- }
29108
- }
29109
- onDone((response, isRejected) => {
28556
+ onDone((value, isRejected) => {
29110
28557
  isDone = true;
29111
- clearConnectPhaseTimer();
29112
28558
  if (isRejected) {
29113
28559
  rejected = true;
29114
28560
  onFinished();
29115
- return;
29116
- }
29117
- const { data: data2 } = response;
29118
- if (data2 instanceof import_stream4.default.Readable || data2 instanceof import_stream4.default.Duplex) {
29119
- const offListeners = import_stream4.default.finished(data2, () => {
29120
- offListeners();
29121
- onFinished();
29122
- });
29123
- } else {
29124
- onFinished();
29125
28561
  }
29126
28562
  });
28563
+ function abort(reason) {
28564
+ emitter.emit("abort", !reason || reason.type ? new CanceledError_default(null, config, req) : reason);
28565
+ }
28566
+ emitter.once("abort", reject);
28567
+ if (config.cancelToken || config.signal) {
28568
+ config.cancelToken && config.cancelToken.subscribe(abort);
28569
+ if (config.signal) {
28570
+ config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
28571
+ }
28572
+ }
29127
28573
  const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
29128
28574
  const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
29129
28575
  const protocol = parsed.protocol || supportedProtocols[0];
29130
28576
  if (protocol === "data:") {
29131
28577
  if (config.maxContentLength > -1) {
29132
28578
  const dataUrl = String(config.url || fullPath || "");
29133
- const estimated = estimateDataURLDecodedBytes(dataUrl);
29134
- if (estimated > config.maxContentLength) {
29135
- return reject(
29136
- new AxiosError_default(
29137
- "maxContentLength size of " + config.maxContentLength + " exceeded",
29138
- AxiosError_default.ERR_BAD_RESPONSE,
29139
- config
29140
- )
29141
- );
28579
+ const estimated = estimateDataURLDecodedBytes(dataUrl);
28580
+ if (estimated > config.maxContentLength) {
28581
+ return reject(new AxiosError_default(
28582
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
28583
+ AxiosError_default.ERR_BAD_RESPONSE,
28584
+ config
28585
+ ));
29142
28586
  }
29143
28587
  }
29144
28588
  let convertedData;
@@ -29174,9 +28618,11 @@
29174
28618
  });
29175
28619
  }
29176
28620
  if (supportedProtocols.indexOf(protocol) === -1) {
29177
- return reject(
29178
- new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_BAD_REQUEST, config)
29179
- );
28621
+ return reject(new AxiosError_default(
28622
+ "Unsupported protocol " + protocol,
28623
+ AxiosError_default.ERR_BAD_REQUEST,
28624
+ config
28625
+ ));
29180
28626
  }
29181
28627
  const headers = AxiosHeaders_default.from(config.headers).normalize();
29182
28628
  headers.set("User-Agent", "axios/" + VERSION, false);
@@ -29186,18 +28632,14 @@
29186
28632
  let maxDownloadRate = void 0;
29187
28633
  if (utils_default.isSpecCompliantForm(data)) {
29188
28634
  const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
29189
- data = formDataToStream_default(
29190
- data,
29191
- (formHeaders) => {
29192
- headers.set(formHeaders);
29193
- },
29194
- {
29195
- tag: `axios-${VERSION}-boundary`,
29196
- boundary: userBoundary && userBoundary[1] || void 0
29197
- }
29198
- );
29199
- } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
29200
- setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
28635
+ data = formDataToStream_default(data, (formHeaders) => {
28636
+ headers.set(formHeaders);
28637
+ }, {
28638
+ tag: `axios-${VERSION}-boundary`,
28639
+ boundary: userBoundary && userBoundary[1] || void 0
28640
+ });
28641
+ } else if (utils_default.isFormData(data) && utils_default.isFunction(data.getHeaders)) {
28642
+ headers.set(data.getHeaders());
29201
28643
  if (!headers.hasContentLength()) {
29202
28644
  try {
29203
28645
  const knownLength = await import_util2.default.promisify(data.getLength).call(data);
@@ -29216,23 +28658,19 @@
29216
28658
  } else if (utils_default.isString(data)) {
29217
28659
  data = Buffer.from(data, "utf-8");
29218
28660
  } else {
29219
- return reject(
29220
- new AxiosError_default(
29221
- "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
29222
- AxiosError_default.ERR_BAD_REQUEST,
29223
- config
29224
- )
29225
- );
28661
+ return reject(new AxiosError_default(
28662
+ "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
28663
+ AxiosError_default.ERR_BAD_REQUEST,
28664
+ config
28665
+ ));
29226
28666
  }
29227
28667
  headers.setContentLength(data.length, false);
29228
28668
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
29229
- return reject(
29230
- new AxiosError_default(
29231
- "Request body larger than maxBodyLength limit",
29232
- AxiosError_default.ERR_BAD_REQUEST,
29233
- config
29234
- )
29235
- );
28669
+ return reject(new AxiosError_default(
28670
+ "Request body larger than maxBodyLength limit",
28671
+ AxiosError_default.ERR_BAD_REQUEST,
28672
+ config
28673
+ ));
29236
28674
  }
29237
28675
  }
29238
28676
  const contentLength = utils_default.toFiniteNumber(headers.getContentLength());
@@ -29246,36 +28684,26 @@
29246
28684
  if (!utils_default.isStream(data)) {
29247
28685
  data = import_stream4.default.Readable.from(data, { objectMode: false });
29248
28686
  }
29249
- data = import_stream4.default.pipeline(
29250
- [
29251
- data,
29252
- new AxiosTransformStream_default({
29253
- maxRate: utils_default.toFiniteNumber(maxUploadRate)
29254
- })
29255
- ],
29256
- utils_default.noop
29257
- );
29258
- onUploadProgress && data.on(
29259
- "progress",
29260
- flushOnFinish(
29261
- data,
29262
- progressEventDecorator(
29263
- contentLength,
29264
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
29265
- )
28687
+ data = import_stream4.default.pipeline([data, new AxiosTransformStream_default({
28688
+ maxRate: utils_default.toFiniteNumber(maxUploadRate)
28689
+ })], utils_default.noop);
28690
+ onUploadProgress && data.on("progress", flushOnFinish(
28691
+ data,
28692
+ progressEventDecorator(
28693
+ contentLength,
28694
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
29266
28695
  )
29267
- );
28696
+ ));
29268
28697
  }
29269
28698
  let auth = void 0;
29270
- const configAuth = own2("auth");
29271
- if (configAuth) {
29272
- const username = configAuth.username || "";
29273
- const password = configAuth.password || "";
28699
+ if (config.auth) {
28700
+ const username = config.auth.username || "";
28701
+ const password = config.auth.password || "";
29274
28702
  auth = username + ":" + password;
29275
28703
  }
29276
28704
  if (!auth && parsed.username) {
29277
- const urlUsername = decodeURIComponentSafe(parsed.username);
29278
- const urlPassword = decodeURIComponentSafe(parsed.password);
28705
+ const urlUsername = parsed.username;
28706
+ const urlPassword = parsed.password;
29279
28707
  auth = urlUsername + ":" + urlPassword;
29280
28708
  }
29281
28709
  auth && headers.delete("authorization");
@@ -29298,7 +28726,7 @@
29298
28726
  "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""),
29299
28727
  false
29300
28728
  );
29301
- const options = Object.assign(/* @__PURE__ */ Object.create(null), {
28729
+ const options = {
29302
28730
  path: path2,
29303
28731
  method,
29304
28732
  headers: headers.toJSON(),
@@ -29307,91 +28735,55 @@
29307
28735
  protocol,
29308
28736
  family,
29309
28737
  beforeRedirect: dispatchBeforeRedirect,
29310
- beforeRedirects: /* @__PURE__ */ Object.create(null),
29311
- http2Options
29312
- });
28738
+ beforeRedirects: {}
28739
+ };
29313
28740
  !utils_default.isUndefined(lookup) && (options.lookup = lookup);
29314
28741
  if (config.socketPath) {
29315
- if (typeof config.socketPath !== "string") {
29316
- return reject(
29317
- new AxiosError_default("socketPath must be a string", AxiosError_default.ERR_BAD_OPTION_VALUE, config)
29318
- );
29319
- }
29320
- if (config.allowedSocketPaths != null) {
29321
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
29322
- const resolvedSocket = (0, import_path3.resolve)(config.socketPath);
29323
- const isAllowed = allowed.some(
29324
- (entry) => typeof entry === "string" && (0, import_path3.resolve)(entry) === resolvedSocket
29325
- );
29326
- if (!isAllowed) {
29327
- return reject(
29328
- new AxiosError_default(
29329
- `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`,
29330
- AxiosError_default.ERR_BAD_OPTION_VALUE,
29331
- config
29332
- )
29333
- );
29334
- }
29335
- }
29336
28742
  options.socketPath = config.socketPath;
29337
28743
  } else {
29338
28744
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
29339
28745
  options.port = parsed.port;
29340
- setProxy(
29341
- options,
29342
- config.proxy,
29343
- protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path
29344
- );
28746
+ setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
29345
28747
  }
29346
28748
  let transport;
29347
- let isNativeTransport = false;
29348
28749
  const isHttpsRequest = isHttps.test(options.protocol);
29349
28750
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
29350
- if (isHttp2) {
29351
- transport = http2Transport;
28751
+ if (config.transport) {
28752
+ transport = config.transport;
28753
+ } else if (config.maxRedirects === 0) {
28754
+ transport = isHttpsRequest ? import_https.default : import_http.default;
29352
28755
  } else {
29353
- const configTransport = own2("transport");
29354
- if (configTransport) {
29355
- transport = configTransport;
29356
- } else if (config.maxRedirects === 0) {
29357
- transport = isHttpsRequest ? import_https.default : import_http.default;
29358
- isNativeTransport = true;
29359
- } else {
29360
- if (config.maxRedirects) {
29361
- options.maxRedirects = config.maxRedirects;
29362
- }
29363
- const configBeforeRedirect = own2("beforeRedirect");
29364
- if (configBeforeRedirect) {
29365
- options.beforeRedirects.config = configBeforeRedirect;
29366
- }
29367
- transport = isHttpsRequest ? httpsFollow : httpFollow;
28756
+ if (config.maxRedirects) {
28757
+ options.maxRedirects = config.maxRedirects;
29368
28758
  }
28759
+ if (config.beforeRedirect) {
28760
+ options.beforeRedirects.config = config.beforeRedirect;
28761
+ }
28762
+ transport = isHttpsRequest ? httpsFollow : httpFollow;
29369
28763
  }
29370
28764
  if (config.maxBodyLength > -1) {
29371
28765
  options.maxBodyLength = config.maxBodyLength;
29372
28766
  } else {
29373
28767
  options.maxBodyLength = Infinity;
29374
28768
  }
29375
- options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
28769
+ if (config.insecureHTTPParser) {
28770
+ options.insecureHTTPParser = config.insecureHTTPParser;
28771
+ }
29376
28772
  req = transport.request(options, function handleResponse(res) {
29377
- clearConnectPhaseTimer();
29378
28773
  if (req.destroyed) return;
29379
28774
  const streams = [res];
29380
- const responseLength = utils_default.toFiniteNumber(res.headers["content-length"]);
28775
+ const responseLength = +res.headers["content-length"];
29381
28776
  if (onDownloadProgress || maxDownloadRate) {
29382
28777
  const transformStream = new AxiosTransformStream_default({
29383
28778
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
29384
28779
  });
29385
- onDownloadProgress && transformStream.on(
29386
- "progress",
29387
- flushOnFinish(
29388
- transformStream,
29389
- progressEventDecorator(
29390
- responseLength,
29391
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
29392
- )
28780
+ onDownloadProgress && transformStream.on("progress", flushOnFinish(
28781
+ transformStream,
28782
+ progressEventDecorator(
28783
+ responseLength,
28784
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
29393
28785
  )
29394
- );
28786
+ ));
29395
28787
  streams.push(transformStream);
29396
28788
  }
29397
28789
  let responseStream = res;
@@ -29422,6 +28814,10 @@
29422
28814
  }
29423
28815
  }
29424
28816
  responseStream = streams.length > 1 ? import_stream4.default.pipeline(streams, utils_default.noop) : streams[0];
28817
+ const offListeners = import_stream4.default.finished(responseStream, () => {
28818
+ offListeners();
28819
+ onFinished();
28820
+ });
29425
28821
  const response = {
29426
28822
  status: res.statusCode,
29427
28823
  statusText: res.statusMessage,
@@ -29430,28 +28826,6 @@
29430
28826
  request: lastRequest
29431
28827
  };
29432
28828
  if (responseType === "stream") {
29433
- if (config.maxContentLength > -1) {
29434
- const limit = config.maxContentLength;
29435
- const source = responseStream;
29436
- async function* enforceMaxContentLength() {
29437
- let totalResponseBytes = 0;
29438
- for await (const chunk of source) {
29439
- totalResponseBytes += chunk.length;
29440
- if (totalResponseBytes > limit) {
29441
- throw new AxiosError_default(
29442
- "maxContentLength size of " + limit + " exceeded",
29443
- AxiosError_default.ERR_BAD_RESPONSE,
29444
- config,
29445
- lastRequest
29446
- );
29447
- }
29448
- yield chunk;
29449
- }
29450
- }
29451
- responseStream = import_stream4.default.Readable.from(enforceMaxContentLength(), {
29452
- objectMode: false
29453
- });
29454
- }
29455
28829
  response.data = responseStream;
29456
28830
  settle(resolve, reject, response);
29457
28831
  } else {
@@ -29463,14 +28837,12 @@
29463
28837
  if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
29464
28838
  rejected = true;
29465
28839
  responseStream.destroy();
29466
- abort(
29467
- new AxiosError_default(
29468
- "maxContentLength size of " + config.maxContentLength + " exceeded",
29469
- AxiosError_default.ERR_BAD_RESPONSE,
29470
- config,
29471
- lastRequest
29472
- )
29473
- );
28840
+ reject(new AxiosError_default(
28841
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
28842
+ AxiosError_default.ERR_BAD_RESPONSE,
28843
+ config,
28844
+ lastRequest
28845
+ ));
29474
28846
  }
29475
28847
  });
29476
28848
  responseStream.on("aborted", function handlerStreamAborted() {
@@ -29481,15 +28853,14 @@
29481
28853
  "stream has been aborted",
29482
28854
  AxiosError_default.ERR_BAD_RESPONSE,
29483
28855
  config,
29484
- lastRequest,
29485
- response
28856
+ lastRequest
29486
28857
  );
29487
28858
  responseStream.destroy(err);
29488
28859
  reject(err);
29489
28860
  });
29490
28861
  responseStream.on("error", function handleStreamError(err) {
29491
- if (rejected) return;
29492
- reject(AxiosError_default.from(err, null, config, lastRequest, response));
28862
+ if (req.destroyed) return;
28863
+ reject(AxiosError_default.from(err, null, config, lastRequest));
29493
28864
  });
29494
28865
  responseStream.on("end", function handleStreamEnd() {
29495
28866
  try {
@@ -29507,70 +28878,49 @@
29507
28878
  settle(resolve, reject, response);
29508
28879
  });
29509
28880
  }
29510
- abortEmitter.once("abort", (err) => {
28881
+ emitter.once("abort", (err) => {
29511
28882
  if (!responseStream.destroyed) {
29512
28883
  responseStream.emit("error", err);
29513
28884
  responseStream.destroy();
29514
28885
  }
29515
28886
  });
29516
28887
  });
29517
- abortEmitter.once("abort", (err) => {
29518
- if (req.close) {
29519
- req.close();
29520
- } else {
29521
- req.destroy(err);
29522
- }
28888
+ emitter.once("abort", (err) => {
28889
+ reject(err);
28890
+ req.destroy(err);
29523
28891
  });
29524
28892
  req.on("error", function handleRequestError(err) {
29525
28893
  reject(AxiosError_default.from(err, null, config, req));
29526
28894
  });
29527
- const boundSockets = /* @__PURE__ */ new Set();
29528
28895
  req.on("socket", function handleRequestSocket(socket) {
29529
28896
  socket.setKeepAlive(true, 1e3 * 60);
29530
- if (!socket[kAxiosSocketListener]) {
29531
- socket.on("error", function handleSocketError(err) {
29532
- const current = socket[kAxiosCurrentReq];
29533
- if (current && !current.destroyed) {
29534
- current.destroy(err);
29535
- }
29536
- });
29537
- socket[kAxiosSocketListener] = true;
29538
- }
29539
- socket[kAxiosCurrentReq] = req;
29540
- boundSockets.add(socket);
29541
- });
29542
- req.once("close", function clearCurrentReq() {
29543
- clearConnectPhaseTimer();
29544
- for (const socket of boundSockets) {
29545
- if (socket[kAxiosCurrentReq] === req) {
29546
- socket[kAxiosCurrentReq] = null;
29547
- }
29548
- }
29549
- boundSockets.clear();
29550
28897
  });
29551
28898
  if (config.timeout) {
29552
28899
  const timeout = parseInt(config.timeout, 10);
29553
28900
  if (Number.isNaN(timeout)) {
29554
- abort(
29555
- new AxiosError_default(
29556
- "error trying to parse `config.timeout` to int",
29557
- AxiosError_default.ERR_BAD_OPTION_VALUE,
29558
- config,
29559
- req
29560
- )
29561
- );
28901
+ reject(new AxiosError_default(
28902
+ "error trying to parse `config.timeout` to int",
28903
+ AxiosError_default.ERR_BAD_OPTION_VALUE,
28904
+ config,
28905
+ req
28906
+ ));
29562
28907
  return;
29563
28908
  }
29564
- const handleTimeout = function handleTimeout2() {
28909
+ req.setTimeout(timeout, function handleRequestTimeout() {
29565
28910
  if (isDone) return;
29566
- abort(createTimeoutError());
29567
- };
29568
- if (isNativeTransport && timeout > 0) {
29569
- connectPhaseTimer = setTimeout(handleTimeout, timeout);
29570
- }
29571
- req.setTimeout(timeout, handleTimeout);
29572
- } else {
29573
- req.setTimeout(0);
28911
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
28912
+ const transitional2 = config.transitional || transitional_default;
28913
+ if (config.timeoutErrorMessage) {
28914
+ timeoutErrorMessage = config.timeoutErrorMessage;
28915
+ }
28916
+ reject(new AxiosError_default(
28917
+ timeoutErrorMessage,
28918
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
28919
+ config,
28920
+ req
28921
+ ));
28922
+ abort();
28923
+ });
29574
28924
  }
29575
28925
  if (utils_default.isStream(data)) {
29576
28926
  let ended = false;
@@ -29587,40 +28937,9 @@
29587
28937
  abort(new CanceledError_default("Request stream has been aborted", config, req));
29588
28938
  }
29589
28939
  });
29590
- let uploadStream = data;
29591
- if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
29592
- const limit = config.maxBodyLength;
29593
- let bytesSent = 0;
29594
- uploadStream = import_stream4.default.pipeline(
29595
- [
29596
- data,
29597
- new import_stream4.default.Transform({
29598
- transform(chunk, _enc, cb) {
29599
- bytesSent += chunk.length;
29600
- if (bytesSent > limit) {
29601
- return cb(
29602
- new AxiosError_default(
29603
- "Request body larger than maxBodyLength limit",
29604
- AxiosError_default.ERR_BAD_REQUEST,
29605
- config,
29606
- req
29607
- )
29608
- );
29609
- }
29610
- cb(null, chunk);
29611
- }
29612
- })
29613
- ],
29614
- utils_default.noop
29615
- );
29616
- uploadStream.on("error", (err) => {
29617
- if (!req.destroyed) req.destroy(err);
29618
- });
29619
- }
29620
- uploadStream.pipe(req);
28940
+ data.pipe(req);
29621
28941
  } else {
29622
- data && req.write(data);
29623
- req.end();
28942
+ req.end(data);
29624
28943
  }
29625
28944
  });
29626
28945
  };
@@ -29638,40 +28957,20 @@
29638
28957
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
29639
28958
  // Standard browser envs support document.cookie
29640
28959
  {
29641
- write(name, value, expires, path2, domain, secure, sameSite) {
29642
- if (typeof document === "undefined") return;
29643
- const cookie = [`${name}=${encodeURIComponent(value)}`];
29644
- if (utils_default.isNumber(expires)) {
29645
- cookie.push(`expires=${new Date(expires).toUTCString()}`);
29646
- }
29647
- if (utils_default.isString(path2)) {
29648
- cookie.push(`path=${path2}`);
29649
- }
29650
- if (utils_default.isString(domain)) {
29651
- cookie.push(`domain=${domain}`);
29652
- }
29653
- if (secure === true) {
29654
- cookie.push("secure");
29655
- }
29656
- if (utils_default.isString(sameSite)) {
29657
- cookie.push(`SameSite=${sameSite}`);
29658
- }
28960
+ write(name, value, expires, path2, domain, secure) {
28961
+ const cookie = [name + "=" + encodeURIComponent(value)];
28962
+ utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
28963
+ utils_default.isString(path2) && cookie.push("path=" + path2);
28964
+ utils_default.isString(domain) && cookie.push("domain=" + domain);
28965
+ secure === true && cookie.push("secure");
29659
28966
  document.cookie = cookie.join("; ");
29660
28967
  },
29661
28968
  read(name) {
29662
- if (typeof document === "undefined") return null;
29663
- const cookies = document.cookie.split(";");
29664
- for (let i = 0; i < cookies.length; i++) {
29665
- const cookie = cookies[i].replace(/^\s+/, "");
29666
- const eq = cookie.indexOf("=");
29667
- if (eq !== -1 && cookie.slice(0, eq) === name) {
29668
- return decodeURIComponent(cookie.slice(eq + 1));
29669
- }
29670
- }
29671
- return null;
28969
+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
28970
+ return match ? decodeURIComponent(match[3]) : null;
29672
28971
  },
29673
28972
  remove(name) {
29674
- this.write(name, "", Date.now() - 864e5, "/");
28973
+ this.write(name, "", Date.now() - 864e5);
29675
28974
  }
29676
28975
  }
29677
28976
  ) : (
@@ -29691,16 +28990,7 @@
29691
28990
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
29692
28991
  function mergeConfig(config1, config2) {
29693
28992
  config2 = config2 || {};
29694
- const config = /* @__PURE__ */ Object.create(null);
29695
- Object.defineProperty(config, "hasOwnProperty", {
29696
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
29697
- // this data descriptor into an accessor descriptor on the way in.
29698
- __proto__: null,
29699
- value: Object.prototype.hasOwnProperty,
29700
- enumerable: false,
29701
- writable: true,
29702
- configurable: true
29703
- });
28993
+ const config = {};
29704
28994
  function getMergedValue(target, source, prop, caseless) {
29705
28995
  if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
29706
28996
  return utils_default.merge.call({ caseless }, target, source);
@@ -29731,9 +29021,9 @@
29731
29021
  }
29732
29022
  }
29733
29023
  function mergeDirectKeys(a, b, prop) {
29734
- if (utils_default.hasOwnProp(config2, prop)) {
29024
+ if (prop in config2) {
29735
29025
  return getMergedValue(a, b);
29736
- } else if (utils_default.hasOwnProp(config1, prop)) {
29026
+ } else if (prop in config1) {
29737
29027
  return getMergedValue(void 0, a);
29738
29028
  }
29739
29029
  }
@@ -29764,76 +29054,46 @@
29764
29054
  httpsAgent: defaultToConfig2,
29765
29055
  cancelToken: defaultToConfig2,
29766
29056
  socketPath: defaultToConfig2,
29767
- allowedSocketPaths: defaultToConfig2,
29768
29057
  responseEncoding: defaultToConfig2,
29769
29058
  validateStatus: mergeDirectKeys,
29770
29059
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
29771
29060
  };
29772
29061
  utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
29773
- if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
29774
- const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
29775
- const a = utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0;
29776
- const b = utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0;
29777
- const configValue = merge2(a, b, prop);
29062
+ const merge2 = mergeMap[prop] || mergeDeepProperties;
29063
+ const configValue = merge2(config1[prop], config2[prop], prop);
29778
29064
  utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
29779
29065
  });
29780
29066
  return config;
29781
29067
  }
29782
29068
 
29783
29069
  // node_modules/axios/lib/helpers/resolveConfig.js
29784
- var FORM_DATA_CONTENT_HEADERS2 = ["content-type", "content-length"];
29785
- function setFormDataHeaders2(headers, formHeaders, policy) {
29786
- if (policy !== "content-only") {
29787
- headers.set(formHeaders);
29788
- return;
29789
- }
29790
- Object.entries(formHeaders).forEach(([key, val]) => {
29791
- if (FORM_DATA_CONTENT_HEADERS2.includes(key.toLowerCase())) {
29792
- headers.set(key, val);
29793
- }
29794
- });
29795
- }
29796
- var encodeUTF8 = (str) => encodeURIComponent(str).replace(
29797
- /%([0-9A-F]{2})/gi,
29798
- (_, hex2) => String.fromCharCode(parseInt(hex2, 16))
29799
- );
29800
29070
  var resolveConfig_default = (config) => {
29801
29071
  const newConfig = mergeConfig({}, config);
29802
- const own2 = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
29803
- const data = own2("data");
29804
- let withXSRFToken = own2("withXSRFToken");
29805
- const xsrfHeaderName = own2("xsrfHeaderName");
29806
- const xsrfCookieName = own2("xsrfCookieName");
29807
- let headers = own2("headers");
29808
- const auth = own2("auth");
29809
- const baseURL = own2("baseURL");
29810
- const allowAbsoluteUrls = own2("allowAbsoluteUrls");
29811
- const url2 = own2("url");
29072
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
29812
29073
  newConfig.headers = headers = AxiosHeaders_default.from(headers);
29813
- newConfig.url = buildURL(
29814
- buildFullPath(baseURL, url2, allowAbsoluteUrls),
29815
- config.params,
29816
- config.paramsSerializer
29817
- );
29074
+ newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
29818
29075
  if (auth) {
29819
29076
  headers.set(
29820
29077
  "Authorization",
29821
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : ""))
29078
+ "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
29822
29079
  );
29823
29080
  }
29824
29081
  if (utils_default.isFormData(data)) {
29825
29082
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
29826
29083
  headers.setContentType(void 0);
29827
29084
  } else if (utils_default.isFunction(data.getHeaders)) {
29828
- setFormDataHeaders2(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
29085
+ const formHeaders = data.getHeaders();
29086
+ const allowedHeaders = ["content-type", "content-length"];
29087
+ Object.entries(formHeaders).forEach(([key, val]) => {
29088
+ if (allowedHeaders.includes(key.toLowerCase())) {
29089
+ headers.set(key, val);
29090
+ }
29091
+ });
29829
29092
  }
29830
29093
  }
29831
29094
  if (platform_default.hasStandardBrowserEnv) {
29832
- if (utils_default.isFunction(withXSRFToken)) {
29833
- withXSRFToken = withXSRFToken(newConfig);
29834
- }
29835
- const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url);
29836
- if (shouldSendXSRF) {
29095
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
29096
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
29837
29097
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
29838
29098
  if (xsrfValue) {
29839
29099
  headers.set(xsrfHeaderName, xsrfValue);
@@ -29879,17 +29139,13 @@
29879
29139
  config,
29880
29140
  request
29881
29141
  };
29882
- settle(
29883
- function _resolve(value) {
29884
- resolve(value);
29885
- done();
29886
- },
29887
- function _reject(err) {
29888
- reject(err);
29889
- done();
29890
- },
29891
- response
29892
- );
29142
+ settle(function _resolve(value) {
29143
+ resolve(value);
29144
+ done();
29145
+ }, function _reject(err) {
29146
+ reject(err);
29147
+ done();
29148
+ }, response);
29893
29149
  request = null;
29894
29150
  }
29895
29151
  if ("onloadend" in request) {
@@ -29899,7 +29155,7 @@
29899
29155
  if (!request || request.readyState !== 4) {
29900
29156
  return;
29901
29157
  }
29902
- if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
29158
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
29903
29159
  return;
29904
29160
  }
29905
29161
  setTimeout(onloadend);
@@ -29910,7 +29166,6 @@
29910
29166
  return;
29911
29167
  }
29912
29168
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
29913
- done();
29914
29169
  request = null;
29915
29170
  };
29916
29171
  request.onerror = function handleError(event) {
@@ -29918,7 +29173,6 @@
29918
29173
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
29919
29174
  err.event = event || null;
29920
29175
  reject(err);
29921
- done();
29922
29176
  request = null;
29923
29177
  };
29924
29178
  request.ontimeout = function handleTimeout() {
@@ -29927,15 +29181,12 @@
29927
29181
  if (_config.timeoutErrorMessage) {
29928
29182
  timeoutErrorMessage = _config.timeoutErrorMessage;
29929
29183
  }
29930
- reject(
29931
- new AxiosError_default(
29932
- timeoutErrorMessage,
29933
- transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
29934
- config,
29935
- request
29936
- )
29937
- );
29938
- done();
29184
+ reject(new AxiosError_default(
29185
+ timeoutErrorMessage,
29186
+ transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
29187
+ config,
29188
+ request
29189
+ ));
29939
29190
  request = null;
29940
29191
  };
29941
29192
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -29966,7 +29217,6 @@
29966
29217
  }
29967
29218
  reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
29968
29219
  request.abort();
29969
- done();
29970
29220
  request = null;
29971
29221
  };
29972
29222
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -29975,14 +29225,8 @@
29975
29225
  }
29976
29226
  }
29977
29227
  const protocol = parseProtocol(_config.url);
29978
- if (protocol && !platform_default.protocols.includes(protocol)) {
29979
- reject(
29980
- new AxiosError_default(
29981
- "Unsupported protocol " + protocol + ":",
29982
- AxiosError_default.ERR_BAD_REQUEST,
29983
- config
29984
- )
29985
- );
29228
+ if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
29229
+ reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
29986
29230
  return;
29987
29231
  }
29988
29232
  request.send(requestData || null);
@@ -30000,14 +29244,12 @@
30000
29244
  aborted = true;
30001
29245
  unsubscribe();
30002
29246
  const err = reason instanceof Error ? reason : this.reason;
30003
- controller.abort(
30004
- err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err)
30005
- );
29247
+ controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
30006
29248
  }
30007
29249
  };
30008
29250
  let timer = timeout && setTimeout(() => {
30009
29251
  timer = null;
30010
- onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`, AxiosError_default.ETIMEDOUT));
29252
+ onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
30011
29253
  }, timeout);
30012
29254
  const unsubscribe = () => {
30013
29255
  if (signals) {
@@ -30075,41 +29317,46 @@
30075
29317
  onFinish && onFinish(e);
30076
29318
  }
30077
29319
  };
30078
- return new ReadableStream(
30079
- {
30080
- async pull(controller) {
30081
- try {
30082
- const { done: done2, value } = await iterator2.next();
30083
- if (done2) {
30084
- _onFinish();
30085
- controller.close();
30086
- return;
30087
- }
30088
- let len = value.byteLength;
30089
- if (onProgress) {
30090
- let loadedBytes = bytes += len;
30091
- onProgress(loadedBytes);
30092
- }
30093
- controller.enqueue(new Uint8Array(value));
30094
- } catch (err) {
30095
- _onFinish(err);
30096
- throw err;
29320
+ return new ReadableStream({
29321
+ async pull(controller) {
29322
+ try {
29323
+ const { done: done2, value } = await iterator2.next();
29324
+ if (done2) {
29325
+ _onFinish();
29326
+ controller.close();
29327
+ return;
30097
29328
  }
30098
- },
30099
- cancel(reason) {
30100
- _onFinish(reason);
30101
- return iterator2.return();
29329
+ let len = value.byteLength;
29330
+ if (onProgress) {
29331
+ let loadedBytes = bytes += len;
29332
+ onProgress(loadedBytes);
29333
+ }
29334
+ controller.enqueue(new Uint8Array(value));
29335
+ } catch (err) {
29336
+ _onFinish(err);
29337
+ throw err;
30102
29338
  }
30103
29339
  },
30104
- {
30105
- highWaterMark: 2
29340
+ cancel(reason) {
29341
+ _onFinish(reason);
29342
+ return iterator2.return();
30106
29343
  }
30107
- );
29344
+ }, {
29345
+ highWaterMark: 2
29346
+ });
30108
29347
  };
30109
29348
 
30110
29349
  // node_modules/axios/lib/adapters/fetch.js
30111
29350
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
30112
29351
  var { isFunction: isFunction2 } = utils_default;
29352
+ var globalFetchAPI = (({ Request, Response }) => ({
29353
+ Request,
29354
+ Response
29355
+ }))(utils_default.global);
29356
+ var {
29357
+ ReadableStream: ReadableStream2,
29358
+ TextEncoder: TextEncoder2
29359
+ } = utils_default.global;
30113
29360
  var test = (fn, ...args) => {
30114
29361
  try {
30115
29362
  return !!fn(...args);
@@ -30118,19 +29365,9 @@
30118
29365
  }
30119
29366
  };
30120
29367
  var factory = (env) => {
30121
- var _a2;
30122
- const globalObject = (_a2 = utils_default.global) != null ? _a2 : globalThis;
30123
- const { ReadableStream: ReadableStream2, TextEncoder: TextEncoder2 } = globalObject;
30124
- env = utils_default.merge.call(
30125
- {
30126
- skipUndefined: true
30127
- },
30128
- {
30129
- Request: globalObject.Request,
30130
- Response: globalObject.Response
30131
- },
30132
- env
30133
- );
29368
+ env = utils_default.merge.call({
29369
+ skipUndefined: true
29370
+ }, globalFetchAPI, env);
30134
29371
  const { fetch: envFetch, Request, Response } = env;
30135
29372
  const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
30136
29373
  const isRequestSupported = isFunction2(Request);
@@ -30142,18 +29379,14 @@
30142
29379
  const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
30143
29380
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
30144
29381
  let duplexAccessed = false;
30145
- const request = new Request(platform_default.origin, {
29382
+ const hasContentType = new Request(platform_default.origin, {
30146
29383
  body: new ReadableStream2(),
30147
29384
  method: "POST",
30148
29385
  get duplex() {
30149
29386
  duplexAccessed = true;
30150
29387
  return "half";
30151
29388
  }
30152
- });
30153
- const hasContentType = request.headers.has("Content-Type");
30154
- if (request.body != null) {
30155
- request.body.cancel();
30156
- }
29389
+ }).headers.has("Content-Type");
30157
29390
  return duplexAccessed && !hasContentType;
30158
29391
  });
30159
29392
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
@@ -30167,11 +29400,7 @@
30167
29400
  if (method) {
30168
29401
  return method.call(res);
30169
29402
  }
30170
- throw new AxiosError_default(
30171
- `Response type '${type}' is not supported`,
30172
- AxiosError_default.ERR_NOT_SUPPORT,
30173
- config
30174
- );
29403
+ throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
30175
29404
  });
30176
29405
  });
30177
29406
  })();
@@ -30216,46 +29445,17 @@
30216
29445
  responseType,
30217
29446
  headers,
30218
29447
  withCredentials = "same-origin",
30219
- fetchOptions,
30220
- maxContentLength,
30221
- maxBodyLength
29448
+ fetchOptions
30222
29449
  } = resolveConfig_default(config);
30223
- const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
30224
- const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
30225
29450
  let _fetch = envFetch || fetch;
30226
29451
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
30227
- let composedSignal = composeSignals_default(
30228
- [signal, cancelToken && cancelToken.toAbortSignal()],
30229
- timeout
30230
- );
29452
+ let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
30231
29453
  let request = null;
30232
29454
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
30233
29455
  composedSignal.unsubscribe();
30234
29456
  });
30235
29457
  let requestContentLength;
30236
29458
  try {
30237
- if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
30238
- const estimated = estimateDataURLDecodedBytes(url2);
30239
- if (estimated > maxContentLength) {
30240
- throw new AxiosError_default(
30241
- "maxContentLength size of " + maxContentLength + " exceeded",
30242
- AxiosError_default.ERR_BAD_RESPONSE,
30243
- config,
30244
- request
30245
- );
30246
- }
30247
- }
30248
- if (hasMaxBodyLength && method !== "get" && method !== "head") {
30249
- const outboundLength = await resolveBodyLength(headers, data);
30250
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
30251
- throw new AxiosError_default(
30252
- "Request body larger than maxBodyLength limit",
30253
- AxiosError_default.ERR_BAD_REQUEST,
30254
- config,
30255
- request
30256
- );
30257
- }
30258
- }
30259
29459
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
30260
29460
  let _request = new Request(url2, {
30261
29461
  method: "POST",
@@ -30278,13 +29478,6 @@
30278
29478
  withCredentials = withCredentials ? "include" : "omit";
30279
29479
  }
30280
29480
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
30281
- if (utils_default.isFormData(data)) {
30282
- const contentType = headers.getContentType();
30283
- if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
30284
- headers.delete("content-type");
30285
- }
30286
- }
30287
- headers.set("User-Agent", "axios/" + VERSION, false);
30288
29481
  const resolvedOptions = {
30289
29482
  ...fetchOptions,
30290
29483
  signal: composedSignal,
@@ -30296,19 +29489,8 @@
30296
29489
  };
30297
29490
  request = isRequestSupported && new Request(url2, resolvedOptions);
30298
29491
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
30299
- if (hasMaxContentLength) {
30300
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
30301
- if (declaredLength != null && declaredLength > maxContentLength) {
30302
- throw new AxiosError_default(
30303
- "maxContentLength size of " + maxContentLength + " exceeded",
30304
- AxiosError_default.ERR_BAD_RESPONSE,
30305
- config,
30306
- request
30307
- );
30308
- }
30309
- }
30310
29492
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
30311
- if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
29493
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
30312
29494
  const options = {};
30313
29495
  ["status", "statusText", "headers"].forEach((prop) => {
30314
29496
  options[prop] = response[prop];
@@ -30318,23 +29500,8 @@
30318
29500
  responseContentLength,
30319
29501
  progressEventReducer(asyncDecorator(onDownloadProgress), true)
30320
29502
  ) || [];
30321
- let bytesRead = 0;
30322
- const onChunkProgress = (loadedBytes) => {
30323
- if (hasMaxContentLength) {
30324
- bytesRead = loadedBytes;
30325
- if (bytesRead > maxContentLength) {
30326
- throw new AxiosError_default(
30327
- "maxContentLength size of " + maxContentLength + " exceeded",
30328
- AxiosError_default.ERR_BAD_RESPONSE,
30329
- config,
30330
- request
30331
- );
30332
- }
30333
- }
30334
- onProgress && onProgress(loadedBytes);
30335
- };
30336
29503
  response = new Response(
30337
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
29504
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
30338
29505
  flush && flush();
30339
29506
  unsubscribe && unsubscribe();
30340
29507
  }),
@@ -30342,30 +29509,7 @@
30342
29509
  );
30343
29510
  }
30344
29511
  responseType = responseType || "text";
30345
- let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](
30346
- response,
30347
- config
30348
- );
30349
- if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
30350
- let materializedSize;
30351
- if (responseData != null) {
30352
- if (typeof responseData.byteLength === "number") {
30353
- materializedSize = responseData.byteLength;
30354
- } else if (typeof responseData.size === "number") {
30355
- materializedSize = responseData.size;
30356
- } else if (typeof responseData === "string") {
30357
- materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
30358
- }
30359
- }
30360
- if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
30361
- throw new AxiosError_default(
30362
- "maxContentLength size of " + maxContentLength + " exceeded",
30363
- AxiosError_default.ERR_BAD_RESPONSE,
30364
- config,
30365
- request
30366
- );
30367
- }
30368
- }
29512
+ let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
30369
29513
  !isStreamResponse && unsubscribe && unsubscribe();
30370
29514
  return await new Promise((resolve, reject) => {
30371
29515
  settle(resolve, reject, {
@@ -30379,36 +29523,27 @@
30379
29523
  });
30380
29524
  } catch (err) {
30381
29525
  unsubscribe && unsubscribe();
30382
- if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError_default) {
30383
- const canceledError = composedSignal.reason;
30384
- canceledError.config = config;
30385
- request && (canceledError.request = request);
30386
- err !== canceledError && (canceledError.cause = err);
30387
- throw canceledError;
30388
- }
30389
29526
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
30390
29527
  throw Object.assign(
30391
- new AxiosError_default(
30392
- "Network Error",
30393
- AxiosError_default.ERR_NETWORK,
30394
- config,
30395
- request,
30396
- err && err.response
30397
- ),
29528
+ new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
30398
29529
  {
30399
29530
  cause: err.cause || err
30400
29531
  }
30401
29532
  );
30402
29533
  }
30403
- throw AxiosError_default.from(err, err && err.code, config, request, err && err.response);
29534
+ throw AxiosError_default.from(err, err && err.code, config, request);
30404
29535
  }
30405
29536
  };
30406
29537
  };
30407
29538
  var seedCache = /* @__PURE__ */ new Map();
30408
29539
  var getFetch = (config) => {
30409
- let env = config && config.env || {};
29540
+ let env = config ? config.env : {};
30410
29541
  const { fetch: fetch2, Request, Response } = env;
30411
- const seeds = [Request, Response, fetch2];
29542
+ const seeds = [
29543
+ Request,
29544
+ Response,
29545
+ fetch2
29546
+ ];
30412
29547
  let len = seeds.length, i = len, seed, target, map4 = seedCache;
30413
29548
  while (i--) {
30414
29549
  seed = seeds[i];
@@ -30431,57 +29566,48 @@
30431
29566
  utils_default.forEach(knownAdapters, (fn, value) => {
30432
29567
  if (fn) {
30433
29568
  try {
30434
- Object.defineProperty(fn, "name", { __proto__: null, value });
29569
+ Object.defineProperty(fn, "name", { value });
30435
29570
  } catch (e) {
30436
29571
  }
30437
- Object.defineProperty(fn, "adapterName", { __proto__: null, value });
29572
+ Object.defineProperty(fn, "adapterName", { value });
30438
29573
  }
30439
29574
  });
30440
29575
  var renderReason = (reason) => `- ${reason}`;
30441
29576
  var isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
30442
- function getAdapter(adapters, config) {
30443
- adapters = utils_default.isArray(adapters) ? adapters : [adapters];
30444
- const { length } = adapters;
30445
- let nameOrAdapter;
30446
- let adapter2;
30447
- const rejectedReasons = {};
30448
- for (let i = 0; i < length; i++) {
30449
- nameOrAdapter = adapters[i];
30450
- let id;
30451
- adapter2 = nameOrAdapter;
30452
- if (!isResolvedHandle(nameOrAdapter)) {
30453
- adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
30454
- if (adapter2 === void 0) {
30455
- throw new AxiosError_default(`Unknown adapter '${id}'`);
30456
- }
30457
- }
30458
- if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
30459
- break;
30460
- }
30461
- rejectedReasons[id || "#" + i] = adapter2;
30462
- }
30463
- if (!adapter2) {
30464
- const reasons = Object.entries(rejectedReasons).map(
30465
- ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
30466
- );
30467
- let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
30468
- throw new AxiosError_default(
30469
- `There is no suitable adapter to dispatch the request ` + s,
30470
- "ERR_NOT_SUPPORT"
30471
- );
30472
- }
30473
- return adapter2;
30474
- }
30475
29577
  var adapters_default = {
30476
- /**
30477
- * Resolve an adapter from a list of adapter names or functions.
30478
- * @type {Function}
30479
- */
30480
- getAdapter,
30481
- /**
30482
- * Exposes all known adapters
30483
- * @type {Object<string, Function|Object>}
30484
- */
29578
+ getAdapter: (adapters, config) => {
29579
+ adapters = utils_default.isArray(adapters) ? adapters : [adapters];
29580
+ const { length } = adapters;
29581
+ let nameOrAdapter;
29582
+ let adapter2;
29583
+ const rejectedReasons = {};
29584
+ for (let i = 0; i < length; i++) {
29585
+ nameOrAdapter = adapters[i];
29586
+ let id;
29587
+ adapter2 = nameOrAdapter;
29588
+ if (!isResolvedHandle(nameOrAdapter)) {
29589
+ adapter2 = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
29590
+ if (adapter2 === void 0) {
29591
+ throw new AxiosError_default(`Unknown adapter '${id}'`);
29592
+ }
29593
+ }
29594
+ if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
29595
+ break;
29596
+ }
29597
+ rejectedReasons[id || "#" + i] = adapter2;
29598
+ }
29599
+ if (!adapter2) {
29600
+ const reasons = Object.entries(rejectedReasons).map(
29601
+ ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
29602
+ );
29603
+ let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
29604
+ throw new AxiosError_default(
29605
+ `There is no suitable adapter to dispatch the request ` + s,
29606
+ "ERR_NOT_SUPPORT"
29607
+ );
29608
+ }
29609
+ return adapter2;
29610
+ },
30485
29611
  adapters: knownAdapters
30486
29612
  };
30487
29613
 
@@ -30497,43 +29623,37 @@
30497
29623
  function dispatchRequest(config) {
30498
29624
  throwIfCancellationRequested(config);
30499
29625
  config.headers = AxiosHeaders_default.from(config.headers);
30500
- config.data = transformData.call(config, config.transformRequest);
29626
+ config.data = transformData.call(
29627
+ config,
29628
+ config.transformRequest
29629
+ );
30501
29630
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
30502
29631
  config.headers.setContentType("application/x-www-form-urlencoded", false);
30503
29632
  }
30504
29633
  const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
30505
- return adapter2(config).then(
30506
- function onAdapterResolution(response) {
29634
+ return adapter2(config).then(function onAdapterResolution(response) {
29635
+ throwIfCancellationRequested(config);
29636
+ response.data = transformData.call(
29637
+ config,
29638
+ config.transformResponse,
29639
+ response
29640
+ );
29641
+ response.headers = AxiosHeaders_default.from(response.headers);
29642
+ return response;
29643
+ }, function onAdapterRejection(reason) {
29644
+ if (!isCancel(reason)) {
30507
29645
  throwIfCancellationRequested(config);
30508
- config.response = response;
30509
- try {
30510
- response.data = transformData.call(config, config.transformResponse, response);
30511
- } finally {
30512
- delete config.response;
30513
- }
30514
- response.headers = AxiosHeaders_default.from(response.headers);
30515
- return response;
30516
- },
30517
- function onAdapterRejection(reason) {
30518
- if (!isCancel(reason)) {
30519
- throwIfCancellationRequested(config);
30520
- if (reason && reason.response) {
30521
- config.response = reason.response;
30522
- try {
30523
- reason.response.data = transformData.call(
30524
- config,
30525
- config.transformResponse,
30526
- reason.response
30527
- );
30528
- } finally {
30529
- delete config.response;
30530
- }
30531
- reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
30532
- }
29646
+ if (reason && reason.response) {
29647
+ reason.response.data = transformData.call(
29648
+ config,
29649
+ config.transformResponse,
29650
+ reason.response
29651
+ );
29652
+ reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
30533
29653
  }
30534
- return Promise.reject(reason);
30535
29654
  }
30536
- );
29655
+ return Promise.reject(reason);
29656
+ });
30537
29657
  }
30538
29658
 
30539
29659
  // node_modules/axios/lib/helpers/validator.js
@@ -30581,15 +29701,12 @@
30581
29701
  let i = keys.length;
30582
29702
  while (i-- > 0) {
30583
29703
  const opt = keys[i];
30584
- const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
29704
+ const validator = schema[opt];
30585
29705
  if (validator) {
30586
29706
  const value = options[opt];
30587
29707
  const result = value === void 0 || validator(value, opt, options);
30588
29708
  if (result !== true) {
30589
- throw new AxiosError_default(
30590
- "option " + opt + " must be " + result,
30591
- AxiosError_default.ERR_BAD_OPTION_VALUE
30592
- );
29709
+ throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
30593
29710
  }
30594
29711
  continue;
30595
29712
  }
@@ -30628,23 +29745,12 @@
30628
29745
  if (err instanceof Error) {
30629
29746
  let dummy = {};
30630
29747
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
30631
- const stack = (() => {
30632
- if (!dummy.stack) {
30633
- return "";
30634
- }
30635
- const firstNewlineIndex = dummy.stack.indexOf("\n");
30636
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
30637
- })();
29748
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
30638
29749
  try {
30639
29750
  if (!err.stack) {
30640
29751
  err.stack = stack;
30641
- } else if (stack) {
30642
- const firstNewlineIndex = stack.indexOf("\n");
30643
- const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
30644
- const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
30645
- if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
30646
- err.stack += "\n" + stack;
30647
- }
29752
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
29753
+ err.stack += "\n" + stack;
30648
29754
  }
30649
29755
  } catch (e) {
30650
29756
  }
@@ -30662,16 +29768,11 @@
30662
29768
  config = mergeConfig(this.defaults, config);
30663
29769
  const { transitional: transitional2, paramsSerializer, headers } = config;
30664
29770
  if (transitional2 !== void 0) {
30665
- validator_default.assertOptions(
30666
- transitional2,
30667
- {
30668
- silentJSONParsing: validators2.transitional(validators2.boolean),
30669
- forcedJSONParsing: validators2.transitional(validators2.boolean),
30670
- clarifyTimeoutError: validators2.transitional(validators2.boolean),
30671
- legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
30672
- },
30673
- false
30674
- );
29771
+ validator_default.assertOptions(transitional2, {
29772
+ silentJSONParsing: validators2.transitional(validators2.boolean),
29773
+ forcedJSONParsing: validators2.transitional(validators2.boolean),
29774
+ clarifyTimeoutError: validators2.transitional(validators2.boolean)
29775
+ }, false);
30675
29776
  }
30676
29777
  if (paramsSerializer != null) {
30677
29778
  if (utils_default.isFunction(paramsSerializer)) {
@@ -30679,14 +29780,10 @@
30679
29780
  serialize: paramsSerializer
30680
29781
  };
30681
29782
  } else {
30682
- validator_default.assertOptions(
30683
- paramsSerializer,
30684
- {
30685
- encode: validators2.function,
30686
- serialize: validators2.function
30687
- },
30688
- true
30689
- );
29783
+ validator_default.assertOptions(paramsSerializer, {
29784
+ encode: validators2.function,
29785
+ serialize: validators2.function
29786
+ }, true);
30690
29787
  }
30691
29788
  }
30692
29789
  if (config.allowAbsoluteUrls !== void 0) {
@@ -30695,19 +29792,21 @@
30695
29792
  } else {
30696
29793
  config.allowAbsoluteUrls = true;
30697
29794
  }
30698
- validator_default.assertOptions(
30699
- config,
30700
- {
30701
- baseUrl: validators2.spelling("baseURL"),
30702
- withXsrfToken: validators2.spelling("withXSRFToken")
30703
- },
30704
- true
30705
- );
29795
+ validator_default.assertOptions(config, {
29796
+ baseUrl: validators2.spelling("baseURL"),
29797
+ withXsrfToken: validators2.spelling("withXSRFToken")
29798
+ }, true);
30706
29799
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
30707
- let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
30708
- headers && utils_default.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
30709
- delete headers[method];
30710
- });
29800
+ let contextHeaders = headers && utils_default.merge(
29801
+ headers.common,
29802
+ headers[config.method]
29803
+ );
29804
+ headers && utils_default.forEach(
29805
+ ["delete", "get", "head", "post", "put", "patch", "common"],
29806
+ (method) => {
29807
+ delete headers[method];
29808
+ }
29809
+ );
30711
29810
  config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
30712
29811
  const requestInterceptorChain = [];
30713
29812
  let synchronousRequestInterceptors = true;
@@ -30716,13 +29815,7 @@
30716
29815
  return;
30717
29816
  }
30718
29817
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
30719
- const transitional3 = config.transitional || transitional_default;
30720
- const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
30721
- if (legacyInterceptorReqResOrdering) {
30722
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
30723
- } else {
30724
- requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
30725
- }
29818
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
30726
29819
  });
30727
29820
  const responseInterceptorChain = [];
30728
29821
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
@@ -30774,34 +29867,28 @@
30774
29867
  };
30775
29868
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
30776
29869
  Axios.prototype[method] = function(url2, config) {
30777
- return this.request(
30778
- mergeConfig(config || {}, {
30779
- method,
30780
- url: url2,
30781
- data: (config || {}).data
30782
- })
30783
- );
29870
+ return this.request(mergeConfig(config || {}, {
29871
+ method,
29872
+ url: url2,
29873
+ data: (config || {}).data
29874
+ }));
30784
29875
  };
30785
29876
  });
30786
- utils_default.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
29877
+ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
30787
29878
  function generateHTTPMethod(isForm) {
30788
29879
  return function httpMethod(url2, data, config) {
30789
- return this.request(
30790
- mergeConfig(config || {}, {
30791
- method,
30792
- headers: isForm ? {
30793
- "Content-Type": "multipart/form-data"
30794
- } : {},
30795
- url: url2,
30796
- data
30797
- })
30798
- );
29880
+ return this.request(mergeConfig(config || {}, {
29881
+ method,
29882
+ headers: isForm ? {
29883
+ "Content-Type": "multipart/form-data"
29884
+ } : {},
29885
+ url: url2,
29886
+ data
29887
+ }));
30799
29888
  };
30800
29889
  }
30801
29890
  Axios.prototype[method] = generateHTTPMethod();
30802
- if (method !== "query") {
30803
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
30804
- }
29891
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
30805
29892
  });
30806
29893
  var Axios_default = Axios;
30807
29894
 
@@ -30979,13 +30066,7 @@
30979
30066
  InsufficientStorage: 507,
30980
30067
  LoopDetected: 508,
30981
30068
  NotExtended: 510,
30982
- NetworkAuthenticationRequired: 511,
30983
- WebServerIsDown: 521,
30984
- ConnectionTimedOut: 522,
30985
- OriginIsUnreachable: 523,
30986
- TimeoutOccurred: 524,
30987
- SslHandshakeFailed: 525,
30988
- InvalidSslCertificate: 526
30069
+ NetworkAuthenticationRequired: 511
30989
30070
  };
30990
30071
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
30991
30072
  HttpStatusCode[value] = key;
@@ -30998,7 +30079,7 @@
30998
30079
  const instance = bind(Axios_default.prototype.request, context);
30999
30080
  utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
31000
30081
  utils_default.extend(instance, context, null, { allOwnKeys: true });
31001
- instance.create = function create2(instanceConfig) {
30082
+ instance.create = function create(instanceConfig) {
31002
30083
  return createInstance(mergeConfig(defaultConfig, instanceConfig));
31003
30084
  };
31004
30085
  return instance;
@@ -31041,9 +30122,8 @@
31041
30122
  AxiosHeaders: AxiosHeaders2,
31042
30123
  HttpStatusCode: HttpStatusCode2,
31043
30124
  formToJSON,
31044
- getAdapter: getAdapter2,
31045
- mergeConfig: mergeConfig2,
31046
- create
30125
+ getAdapter,
30126
+ mergeConfig: mergeConfig2
31047
30127
  } = axios_default;
31048
30128
 
31049
30129
  // src/Api/transforms.ts
@@ -31320,7 +30400,8 @@
31320
30400
  cancelToken,
31321
30401
  scope = "null",
31322
30402
  newColumns,
31323
- displayOverrides
30403
+ displayOverrides,
30404
+ projectId
31324
30405
  }) => {
31325
30406
  const url2 = `${domain}/autoql/api/v1/query?key=${apiKey}`;
31326
30407
  const finalUserSelection = userSelectionFinal || transformUserSelection(userSelection);
@@ -31342,7 +30423,8 @@
31342
30423
  scope: finalScope,
31343
30424
  additional_selects: newColumns,
31344
30425
  display_overrides: displayOverrides,
31345
- time_zone: getCurrentTimezone()
30426
+ time_zone: getCurrentTimezone(),
30427
+ project_id: projectId
31346
30428
  };
31347
30429
  if (!query || !query.trim()) {
31348
30430
  console.error("No query supplied in request");
@@ -31422,7 +30504,8 @@
31422
30504
  skipQueryValidation,
31423
30505
  scope = "null",
31424
30506
  newColumns,
31425
- displayOverrides
30507
+ displayOverrides,
30508
+ projectId
31426
30509
  } = {}) => {
31427
30510
  if (enableQueryValidation && !(userSelection == null ? void 0 : userSelection.length) && !skipQueryValidation) {
31428
30511
  try {
@@ -31464,7 +30547,8 @@
31464
30547
  cancelToken,
31465
30548
  scope,
31466
30549
  newColumns,
31467
- displayOverrides
30550
+ displayOverrides,
30551
+ projectId
31468
30552
  });
31469
30553
  };
31470
30554
  var runCachedDashboardQuery = async ({
@@ -31482,7 +30566,8 @@
31482
30566
  queryIndex,
31483
30567
  tileKey,
31484
30568
  dashboardId,
31485
- force
30569
+ force,
30570
+ projectId
31486
30571
  } = {}) => {
31487
30572
  if (!dashboardId) {
31488
30573
  console.error("No dashboard ID supplied in request");
@@ -31507,6 +30592,9 @@
31507
30592
  if (force) {
31508
30593
  queryParams.set("force", "true");
31509
30594
  }
30595
+ if (projectId != null) {
30596
+ queryParams.set("project_id", String(projectId));
30597
+ }
31510
30598
  const url2 = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
31511
30599
  const config = {
31512
30600
  headers: {
@@ -31547,7 +30635,8 @@
31547
30635
  queryIndex,
31548
30636
  tileKey,
31549
30637
  dashboardId,
31550
- force
30638
+ force,
30639
+ projectId
31551
30640
  } = {}) => {
31552
30641
  if (!dashboardId) {
31553
30642
  console.error("No dashboard ID supplied in request");
@@ -31571,7 +30660,8 @@
31571
30660
  const data = {
31572
30661
  query_index: (queryIndex || 0).toString(),
31573
30662
  force,
31574
- session_filter_locks: filters
30663
+ session_filter_locks: filters,
30664
+ project_id: projectId
31575
30665
  };
31576
30666
  const url2 = `${domain}/autoql/api/v1/dashboards/${dashboardId}/tiles/${tileKey}/query?${queryParams.toString()}`;
31577
30667
  const config = {