@mx-space/api-client 1.6.2 → 1.7.1

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.
@@ -16,6 +16,10 @@
16
16
  var __commonJS = (cb, mod) => function __require2() {
17
17
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
18
  };
19
+ var __export = (target, all3) => {
20
+ for (var name in all3)
21
+ __defProp(target, name, { get: all3[name], enumerable: true });
22
+ };
19
23
  var __copyProps = (to, from, except, desc) => {
20
24
  if (from && typeof from === "object" || typeof from === "function") {
21
25
  for (let key of __getOwnPropNames(from))
@@ -9829,7 +9833,7 @@
9829
9833
  exports.load = load;
9830
9834
  exports.useColors = useColors;
9831
9835
  exports.storage = localstorage();
9832
- exports.destroy = (() => {
9836
+ exports.destroy = /* @__PURE__ */ (() => {
9833
9837
  let warned = false;
9834
9838
  return () => {
9835
9839
  if (!warned) {
@@ -10772,17 +10776,17 @@
10772
10776
  }
10773
10777
  });
10774
10778
 
10775
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/bind.js
10779
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/bind.js
10776
10780
  function bind(fn, thisArg) {
10777
10781
  return function wrap() {
10778
10782
  return fn.apply(thisArg, arguments);
10779
10783
  };
10780
10784
  }
10781
10785
 
10782
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/utils.js
10786
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/utils.js
10783
10787
  var { toString } = Object.prototype;
10784
10788
  var { getPrototypeOf } = Object;
10785
- var kindOf = ((cache) => (thing) => {
10789
+ var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
10786
10790
  const str = toString.call(thing);
10787
10791
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
10788
10792
  })(/* @__PURE__ */ Object.create(null));
@@ -10961,7 +10965,7 @@
10961
10965
  }
10962
10966
  return arr;
10963
10967
  };
10964
- var isTypedArray = ((TypedArray) => {
10968
+ var isTypedArray = /* @__PURE__ */ ((TypedArray) => {
10965
10969
  return (thing) => {
10966
10970
  return TypedArray && thing instanceof TypedArray;
10967
10971
  };
@@ -11138,7 +11142,7 @@
11138
11142
  isThenable
11139
11143
  };
11140
11144
 
11141
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/AxiosError.js
11145
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/AxiosError.js
11142
11146
  function AxiosError(message, code, config, request, response) {
11143
11147
  Error.call(this);
11144
11148
  if (Error.captureStackTrace) {
@@ -11210,11 +11214,11 @@
11210
11214
  };
11211
11215
  var AxiosError_default = AxiosError;
11212
11216
 
11213
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/platform/node/classes/FormData.js
11217
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/node/classes/FormData.js
11214
11218
  var import_form_data = __toESM(require_form_data(), 1);
11215
11219
  var FormData_default = import_form_data.default;
11216
11220
 
11217
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/toFormData.js
11221
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/toFormData.js
11218
11222
  function isVisitable(thing) {
11219
11223
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
11220
11224
  }
@@ -11329,7 +11333,7 @@
11329
11333
  }
11330
11334
  var toFormData_default = toFormData;
11331
11335
 
11332
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
11336
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
11333
11337
  function encode(str) {
11334
11338
  const charMap = {
11335
11339
  "!": "%21",
@@ -11362,7 +11366,7 @@
11362
11366
  };
11363
11367
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
11364
11368
 
11365
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/buildURL.js
11369
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/buildURL.js
11366
11370
  function encode2(val) {
11367
11371
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
11368
11372
  }
@@ -11388,7 +11392,7 @@
11388
11392
  return url2;
11389
11393
  }
11390
11394
 
11391
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/InterceptorManager.js
11395
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/InterceptorManager.js
11392
11396
  var InterceptorManager = class {
11393
11397
  constructor() {
11394
11398
  this.handlers = [];
@@ -11452,18 +11456,18 @@
11452
11456
  };
11453
11457
  var InterceptorManager_default = InterceptorManager;
11454
11458
 
11455
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/defaults/transitional.js
11459
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/defaults/transitional.js
11456
11460
  var transitional_default = {
11457
11461
  silentJSONParsing: true,
11458
11462
  forcedJSONParsing: true,
11459
11463
  clarifyTimeoutError: false
11460
11464
  };
11461
11465
 
11462
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
11466
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
11463
11467
  var import_url = __toESM(__require("url"), 1);
11464
11468
  var URLSearchParams_default = import_url.default.URLSearchParams;
11465
11469
 
11466
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/platform/node/index.js
11470
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/node/index.js
11467
11471
  var node_default = {
11468
11472
  isNode: true,
11469
11473
  classes: {
@@ -11474,11 +11478,33 @@
11474
11478
  protocols: ["http", "https", "file", "data"]
11475
11479
  };
11476
11480
 
11477
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
11481
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/common/utils.js
11482
+ var utils_exports = {};
11483
+ __export(utils_exports, {
11484
+ hasBrowserEnv: () => hasBrowserEnv,
11485
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
11486
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
11487
+ });
11488
+ var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
11489
+ var hasStandardBrowserEnv = ((product) => {
11490
+ return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
11491
+ })(typeof navigator !== "undefined" && navigator.product);
11492
+ var hasStandardBrowserWebWorkerEnv = (() => {
11493
+ return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
11494
+ self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
11495
+ })();
11496
+
11497
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/platform/index.js
11498
+ var platform_default = {
11499
+ ...utils_exports,
11500
+ ...node_default
11501
+ };
11502
+
11503
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/toURLEncodedForm.js
11478
11504
  function toURLEncodedForm(data, options) {
11479
- return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
11505
+ return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
11480
11506
  visitor: function(value, key, path, helpers) {
11481
- if (node_default.isNode && utils_default.isBuffer(value)) {
11507
+ if (platform_default.isNode && utils_default.isBuffer(value)) {
11482
11508
  this.append(key, value.toString("base64"));
11483
11509
  return false;
11484
11510
  }
@@ -11487,7 +11513,7 @@
11487
11513
  }, options));
11488
11514
  }
11489
11515
 
11490
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/formDataToJSON.js
11516
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/formDataToJSON.js
11491
11517
  function parsePropPath(name) {
11492
11518
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
11493
11519
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -11539,7 +11565,7 @@
11539
11565
  }
11540
11566
  var formDataToJSON_default = formDataToJSON;
11541
11567
 
11542
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/defaults/index.js
11568
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/defaults/index.js
11543
11569
  function stringifySafely(rawValue, parser, encoder) {
11544
11570
  if (utils_default.isString(rawValue)) {
11545
11571
  try {
@@ -11630,8 +11656,8 @@
11630
11656
  maxContentLength: -1,
11631
11657
  maxBodyLength: -1,
11632
11658
  env: {
11633
- FormData: node_default.classes.FormData,
11634
- Blob: node_default.classes.Blob
11659
+ FormData: platform_default.classes.FormData,
11660
+ Blob: platform_default.classes.Blob
11635
11661
  },
11636
11662
  validateStatus: function validateStatus(status) {
11637
11663
  return status >= 200 && status < 300;
@@ -11648,7 +11674,7 @@
11648
11674
  });
11649
11675
  var defaults_default = defaults;
11650
11676
 
11651
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/parseHeaders.js
11677
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/parseHeaders.js
11652
11678
  var ignoreDuplicateOf = utils_default.toObjectSet([
11653
11679
  "age",
11654
11680
  "authorization",
@@ -11693,7 +11719,7 @@
11693
11719
  return parsed;
11694
11720
  };
11695
11721
 
11696
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/AxiosHeaders.js
11722
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/AxiosHeaders.js
11697
11723
  var $internals = Symbol("internals");
11698
11724
  function normalizeHeader(header) {
11699
11725
  return header && String(header).trim().toLowerCase();
@@ -11911,7 +11937,7 @@
11911
11937
  utils_default.freezeMethods(AxiosHeaders);
11912
11938
  var AxiosHeaders_default = AxiosHeaders;
11913
11939
 
11914
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/transformData.js
11940
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/transformData.js
11915
11941
  function transformData(fns, response) {
11916
11942
  const config = this || defaults_default;
11917
11943
  const context = response || config;
@@ -11924,12 +11950,12 @@
11924
11950
  return data;
11925
11951
  }
11926
11952
 
11927
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/cancel/isCancel.js
11953
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/cancel/isCancel.js
11928
11954
  function isCancel(value) {
11929
11955
  return !!(value && value.__CANCEL__);
11930
11956
  }
11931
11957
 
11932
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/cancel/CanceledError.js
11958
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/cancel/CanceledError.js
11933
11959
  function CanceledError(message, config, request) {
11934
11960
  AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
11935
11961
  this.name = "CanceledError";
@@ -11939,7 +11965,7 @@
11939
11965
  });
11940
11966
  var CanceledError_default = CanceledError;
11941
11967
 
11942
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/settle.js
11968
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/settle.js
11943
11969
  function settle(resolve, reject, response) {
11944
11970
  const validateStatus2 = response.config.validateStatus;
11945
11971
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -11955,17 +11981,17 @@
11955
11981
  }
11956
11982
  }
11957
11983
 
11958
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
11984
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/isAbsoluteURL.js
11959
11985
  function isAbsoluteURL(url2) {
11960
11986
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
11961
11987
  }
11962
11988
 
11963
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/combineURLs.js
11989
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/combineURLs.js
11964
11990
  function combineURLs(baseURL, relativeURL) {
11965
11991
  return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
11966
11992
  }
11967
11993
 
11968
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/buildFullPath.js
11994
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/buildFullPath.js
11969
11995
  function buildFullPath(baseURL, requestedURL) {
11970
11996
  if (baseURL && !isAbsoluteURL(requestedURL)) {
11971
11997
  return combineURLs(baseURL, requestedURL);
@@ -11973,7 +11999,7 @@
11973
11999
  return requestedURL;
11974
12000
  }
11975
12001
 
11976
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/http.js
12002
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/adapters/http.js
11977
12003
  var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
11978
12004
  var import_http = __toESM(__require("http"), 1);
11979
12005
  var import_https = __toESM(__require("https"), 1);
@@ -11981,19 +12007,19 @@
11981
12007
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
11982
12008
  var import_zlib = __toESM(__require("zlib"), 1);
11983
12009
 
11984
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/env/data.js
11985
- var VERSION = "1.5.1";
12010
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/env/data.js
12011
+ var VERSION = "1.6.2";
11986
12012
 
11987
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/parseProtocol.js
12013
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/parseProtocol.js
11988
12014
  function parseProtocol(url2) {
11989
12015
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
11990
12016
  return match && match[1] || "";
11991
12017
  }
11992
12018
 
11993
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/fromDataURI.js
12019
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/fromDataURI.js
11994
12020
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
11995
12021
  function fromDataURI(uri, asBlob, options) {
11996
- const _Blob = options && options.Blob || node_default.classes.Blob;
12022
+ const _Blob = options && options.Blob || platform_default.classes.Blob;
11997
12023
  const protocol = parseProtocol(uri);
11998
12024
  if (asBlob === void 0 && _Blob) {
11999
12025
  asBlob = true;
@@ -12019,13 +12045,13 @@
12019
12045
  throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
12020
12046
  }
12021
12047
 
12022
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/http.js
12048
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/adapters/http.js
12023
12049
  var import_stream4 = __toESM(__require("stream"), 1);
12024
12050
 
12025
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
12051
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/AxiosTransformStream.js
12026
12052
  var import_stream = __toESM(__require("stream"), 1);
12027
12053
 
12028
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/throttle.js
12054
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/throttle.js
12029
12055
  function throttle(fn, freq) {
12030
12056
  let timestamp = 0;
12031
12057
  const threshold = 1e3 / freq;
@@ -12051,7 +12077,7 @@
12051
12077
  }
12052
12078
  var throttle_default = throttle;
12053
12079
 
12054
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/speedometer.js
12080
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/speedometer.js
12055
12081
  function speedometer(samplesCount, min) {
12056
12082
  samplesCount = samplesCount || 10;
12057
12083
  const bytes = new Array(samplesCount);
@@ -12087,7 +12113,7 @@
12087
12113
  }
12088
12114
  var speedometer_default = speedometer;
12089
12115
 
12090
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/AxiosTransformStream.js
12116
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/AxiosTransformStream.js
12091
12117
  var kInternals = Symbol("internals");
12092
12118
  var AxiosTransformStream = class extends import_stream.default.Transform {
12093
12119
  constructor(options) {
@@ -12237,14 +12263,14 @@
12237
12263
  };
12238
12264
  var AxiosTransformStream_default = AxiosTransformStream;
12239
12265
 
12240
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/http.js
12266
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/adapters/http.js
12241
12267
  var import_events = __toESM(__require("events"), 1);
12242
12268
 
12243
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/formDataToStream.js
12269
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/formDataToStream.js
12244
12270
  var import_util = __require("util");
12245
12271
  var import_stream2 = __require("stream");
12246
12272
 
12247
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/readBlob.js
12273
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/readBlob.js
12248
12274
  var { asyncIterator } = Symbol;
12249
12275
  var readBlob = async function* (blob) {
12250
12276
  if (blob.stream) {
@@ -12259,7 +12285,7 @@
12259
12285
  };
12260
12286
  var readBlob_default = readBlob;
12261
12287
 
12262
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/formDataToStream.js
12288
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/formDataToStream.js
12263
12289
  var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
12264
12290
  var textEncoder = new import_util.TextEncoder();
12265
12291
  var CRLF = "\r\n";
@@ -12338,7 +12364,7 @@
12338
12364
  };
12339
12365
  var formDataToStream_default = formDataToStream;
12340
12366
 
12341
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
12367
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
12342
12368
  var import_stream3 = __toESM(__require("stream"), 1);
12343
12369
  var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
12344
12370
  __transform(chunk, encoding, callback) {
@@ -12360,7 +12386,7 @@
12360
12386
  };
12361
12387
  var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
12362
12388
 
12363
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/callbackify.js
12389
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/callbackify.js
12364
12390
  var callbackify = (fn, reducer) => {
12365
12391
  return utils_default.isAsyncFn(fn) ? function(...args) {
12366
12392
  const cb = args.pop();
@@ -12375,7 +12401,7 @@
12375
12401
  };
12376
12402
  var callbackify_default = callbackify;
12377
12403
 
12378
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/http.js
12404
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/adapters/http.js
12379
12405
  var zlibOptions = {
12380
12406
  flush: import_zlib.default.constants.Z_SYNC_FLUSH,
12381
12407
  finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
@@ -12387,7 +12413,7 @@
12387
12413
  var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
12388
12414
  var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
12389
12415
  var isHttps = /https:?/;
12390
- var supportedProtocols = node_default.protocols.map((protocol) => {
12416
+ var supportedProtocols = platform_default.protocols.map((protocol) => {
12391
12417
  return protocol + ":";
12392
12418
  });
12393
12419
  function dispatchBeforeRedirect(options) {
@@ -12453,6 +12479,16 @@
12453
12479
  asyncExecutor(_resolve, _reject, (onDoneHandler) => onDone = onDoneHandler).catch(_reject);
12454
12480
  });
12455
12481
  };
12482
+ var resolveFamily = ({ address, family }) => {
12483
+ if (!utils_default.isString(address)) {
12484
+ throw TypeError("address must be a string");
12485
+ }
12486
+ return {
12487
+ address,
12488
+ family: family || (address.indexOf(".") < 0 ? 6 : 4)
12489
+ };
12490
+ };
12491
+ var buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
12456
12492
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
12457
12493
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
12458
12494
  let { data, lookup, family } = config;
@@ -12461,15 +12497,14 @@
12461
12497
  let isDone;
12462
12498
  let rejected = false;
12463
12499
  let req;
12464
- if (lookup && utils_default.isAsyncFn(lookup)) {
12465
- lookup = callbackify_default(lookup, (entry) => {
12466
- if (utils_default.isString(entry)) {
12467
- entry = [entry, entry.indexOf(".") < 0 ? 6 : 4];
12468
- } else if (!utils_default.isArray(entry)) {
12469
- throw new TypeError("lookup async function must return an array [ip: string, family: number]]");
12470
- }
12471
- return entry;
12472
- });
12500
+ if (lookup) {
12501
+ const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
12502
+ lookup = (hostname, opt, cb) => {
12503
+ _lookup(hostname, opt, (err, arg0, arg1) => {
12504
+ const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
12505
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
12506
+ });
12507
+ };
12473
12508
  }
12474
12509
  const emitter = new import_events.default();
12475
12510
  const onFinished = () => {
@@ -12790,7 +12825,7 @@
12790
12825
  }
12791
12826
  response.data = responseData;
12792
12827
  } catch (err) {
12793
- reject(AxiosError_default.from(err, null, config, response.request, response));
12828
+ return reject(AxiosError_default.from(err, null, config, response.request, response));
12794
12829
  }
12795
12830
  settle(resolve, reject, response);
12796
12831
  });
@@ -12862,57 +12897,44 @@
12862
12897
  });
12863
12898
  };
12864
12899
 
12865
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/cookies.js
12866
- var cookies_default = node_default.isStandardBrowserEnv ? (
12900
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/cookies.js
12901
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
12867
12902
  // Standard browser envs support document.cookie
12868
- function standardBrowserEnv() {
12869
- return {
12870
- write: function write(name, value, expires, path, domain, secure) {
12871
- const cookie = [];
12872
- cookie.push(name + "=" + encodeURIComponent(value));
12873
- if (utils_default.isNumber(expires)) {
12874
- cookie.push("expires=" + new Date(expires).toGMTString());
12875
- }
12876
- if (utils_default.isString(path)) {
12877
- cookie.push("path=" + path);
12878
- }
12879
- if (utils_default.isString(domain)) {
12880
- cookie.push("domain=" + domain);
12881
- }
12882
- if (secure === true) {
12883
- cookie.push("secure");
12884
- }
12885
- document.cookie = cookie.join("; ");
12886
- },
12887
- read: function read(name) {
12888
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
12889
- return match ? decodeURIComponent(match[3]) : null;
12890
- },
12891
- remove: function remove(name) {
12892
- this.write(name, "", Date.now() - 864e5);
12893
- }
12894
- };
12895
- }()
12903
+ {
12904
+ write(name, value, expires, path, domain, secure) {
12905
+ const cookie = [name + "=" + encodeURIComponent(value)];
12906
+ utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
12907
+ utils_default.isString(path) && cookie.push("path=" + path);
12908
+ utils_default.isString(domain) && cookie.push("domain=" + domain);
12909
+ secure === true && cookie.push("secure");
12910
+ document.cookie = cookie.join("; ");
12911
+ },
12912
+ read(name) {
12913
+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
12914
+ return match ? decodeURIComponent(match[3]) : null;
12915
+ },
12916
+ remove(name) {
12917
+ this.write(name, "", Date.now() - 864e5);
12918
+ }
12919
+ }
12896
12920
  ) : (
12897
- // Non standard browser env (web workers, react-native) lack needed support.
12898
- function nonStandardBrowserEnv() {
12899
- return {
12900
- write: function write() {
12901
- },
12902
- read: function read() {
12903
- return null;
12904
- },
12905
- remove: function remove() {
12906
- }
12907
- };
12908
- }()
12921
+ // Non-standard browser env (web workers, react-native) lack needed support.
12922
+ {
12923
+ write() {
12924
+ },
12925
+ read() {
12926
+ return null;
12927
+ },
12928
+ remove() {
12929
+ }
12930
+ }
12909
12931
  );
12910
12932
 
12911
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
12912
- var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
12933
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/isURLSameOrigin.js
12934
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
12913
12935
  // Standard browser envs have full support of the APIs needed to test
12914
12936
  // whether the request URL is of the same origin as current location.
12915
- function standardBrowserEnv2() {
12937
+ function standardBrowserEnv() {
12916
12938
  const msie = /(msie|trident)/i.test(navigator.userAgent);
12917
12939
  const urlParsingNode = document.createElement("a");
12918
12940
  let originURL;
@@ -12942,14 +12964,14 @@
12942
12964
  }()
12943
12965
  ) : (
12944
12966
  // Non standard browser envs (web workers, react-native) lack needed support.
12945
- function nonStandardBrowserEnv2() {
12967
+ /* @__PURE__ */ function nonStandardBrowserEnv() {
12946
12968
  return function isURLSameOrigin() {
12947
12969
  return true;
12948
12970
  };
12949
12971
  }()
12950
12972
  );
12951
12973
 
12952
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/xhr.js
12974
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/adapters/xhr.js
12953
12975
  function progressEventReducer(listener, isDownloadStream) {
12954
12976
  let bytesNotified = 0;
12955
12977
  const _speedometer = speedometer_default(50, 250);
@@ -12978,7 +13000,7 @@
12978
13000
  return new Promise(function dispatchXhrRequest(resolve, reject) {
12979
13001
  let requestData = config.data;
12980
13002
  const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
12981
- const responseType = config.responseType;
13003
+ let { responseType, withXSRFToken } = config;
12982
13004
  let onCanceled;
12983
13005
  function done() {
12984
13006
  if (config.cancelToken) {
@@ -12990,12 +13012,11 @@
12990
13012
  }
12991
13013
  let contentType;
12992
13014
  if (utils_default.isFormData(requestData)) {
12993
- if (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv) {
13015
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
12994
13016
  requestHeaders.setContentType(false);
12995
- } else if (!requestHeaders.getContentType(/^\s*multipart\/form-data/)) {
12996
- requestHeaders.setContentType("multipart/form-data");
12997
- } else if (utils_default.isString(contentType = requestHeaders.getContentType())) {
12998
- requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
13017
+ } else if ((contentType = requestHeaders.getContentType()) !== false) {
13018
+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
13019
+ requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
12999
13020
  }
13000
13021
  }
13001
13022
  let request = new XMLHttpRequest();
@@ -13070,10 +13091,13 @@
13070
13091
  ));
13071
13092
  request = null;
13072
13093
  };
13073
- if (node_default.isStandardBrowserEnv) {
13074
- const xsrfValue = (config.withCredentials || isURLSameOrigin_default(fullPath)) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
13075
- if (xsrfValue) {
13076
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
13094
+ if (platform_default.hasStandardBrowserEnv) {
13095
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
13096
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
13097
+ const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
13098
+ if (xsrfValue) {
13099
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
13100
+ }
13077
13101
  }
13078
13102
  }
13079
13103
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -13109,7 +13133,7 @@
13109
13133
  }
13110
13134
  }
13111
13135
  const protocol = parseProtocol(fullPath);
13112
- if (protocol && node_default.protocols.indexOf(protocol) === -1) {
13136
+ if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
13113
13137
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
13114
13138
  return;
13115
13139
  }
@@ -13117,7 +13141,7 @@
13117
13141
  });
13118
13142
  };
13119
13143
 
13120
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/adapters/adapters.js
13144
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/adapters/adapters.js
13121
13145
  var knownAdapters = {
13122
13146
  http: http_default,
13123
13147
  xhr: xhr_default
@@ -13170,7 +13194,7 @@
13170
13194
  adapters: knownAdapters
13171
13195
  };
13172
13196
 
13173
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/dispatchRequest.js
13197
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/dispatchRequest.js
13174
13198
  function throwIfCancellationRequested(config) {
13175
13199
  if (config.cancelToken) {
13176
13200
  config.cancelToken.throwIfRequested();
@@ -13215,7 +13239,7 @@
13215
13239
  });
13216
13240
  }
13217
13241
 
13218
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/mergeConfig.js
13242
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/mergeConfig.js
13219
13243
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
13220
13244
  function mergeConfig(config1, config2) {
13221
13245
  config2 = config2 || {};
@@ -13267,6 +13291,7 @@
13267
13291
  timeout: defaultToConfig2,
13268
13292
  timeoutMessage: defaultToConfig2,
13269
13293
  withCredentials: defaultToConfig2,
13294
+ withXSRFToken: defaultToConfig2,
13270
13295
  adapter: defaultToConfig2,
13271
13296
  responseType: defaultToConfig2,
13272
13297
  xsrfCookieName: defaultToConfig2,
@@ -13294,7 +13319,7 @@
13294
13319
  return config;
13295
13320
  }
13296
13321
 
13297
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/validator.js
13322
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/validator.js
13298
13323
  var validators = {};
13299
13324
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
13300
13325
  validators[type] = function validator(thing) {
@@ -13352,7 +13377,7 @@
13352
13377
  validators
13353
13378
  };
13354
13379
 
13355
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/core/Axios.js
13380
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/core/Axios.js
13356
13381
  var validators2 = validator_default.validators;
13357
13382
  var Axios = class {
13358
13383
  constructor(instanceConfig) {
@@ -13495,7 +13520,7 @@
13495
13520
  });
13496
13521
  var Axios_default = Axios;
13497
13522
 
13498
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/cancel/CancelToken.js
13523
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/cancel/CancelToken.js
13499
13524
  var CancelToken = class _CancelToken {
13500
13525
  constructor(executor) {
13501
13526
  if (typeof executor !== "function") {
@@ -13585,19 +13610,19 @@
13585
13610
  };
13586
13611
  var CancelToken_default = CancelToken;
13587
13612
 
13588
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/spread.js
13613
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/spread.js
13589
13614
  function spread(callback) {
13590
13615
  return function wrap(arr) {
13591
13616
  return callback.apply(null, arr);
13592
13617
  };
13593
13618
  }
13594
13619
 
13595
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/isAxiosError.js
13620
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/isAxiosError.js
13596
13621
  function isAxiosError(payload) {
13597
13622
  return utils_default.isObject(payload) && payload.isAxiosError === true;
13598
13623
  }
13599
13624
 
13600
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/helpers/HttpStatusCode.js
13625
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/helpers/HttpStatusCode.js
13601
13626
  var HttpStatusCode = {
13602
13627
  Continue: 100,
13603
13628
  SwitchingProtocols: 101,
@@ -13668,7 +13693,7 @@
13668
13693
  });
13669
13694
  var HttpStatusCode_default = HttpStatusCode;
13670
13695
 
13671
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/lib/axios.js
13696
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/lib/axios.js
13672
13697
  function createInstance(defaultConfig) {
13673
13698
  const context = new Axios_default(defaultConfig);
13674
13699
  const instance = bind(Axios_default.prototype.request, context);
@@ -13701,7 +13726,7 @@
13701
13726
  axios.default = axios;
13702
13727
  var axios_default = axios;
13703
13728
 
13704
- // ../../node_modules/.pnpm/axios@1.5.1/node_modules/axios/index.js
13729
+ // ../../node_modules/.pnpm/axios@1.6.2/node_modules/axios/index.js
13705
13730
  var {
13706
13731
  Axios: Axios2,
13707
13732
  AxiosError: AxiosError2,