@fefeding/aicmd 1.0.21 → 1.0.23

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.
@@ -35,7 +35,8 @@ import { i as init_bootstrap, n as init_bootstrap_esm, r as init_bootstrap_icons
35
35
  //#endregion
36
36
  //#region node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js
37
37
  var require_eventemitter3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38
- var has = Object.prototype.hasOwnProperty, prefix = "~";
38
+ var has = Object.prototype.hasOwnProperty;
39
+ var prefix = "~";
39
40
  /**
40
41
  * Constructor to create a storage for our `EE` objects.
41
42
  * An `Events` instance is a plain object whose properties are event names.
@@ -410,7 +411,7 @@ var init_App_vue_vue_type_script_setup_true_lang = __esmMin((() => {
410
411
  init_vue_i18n();
411
412
  init_eventBus();
412
413
  init_toast$2();
413
- App_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
414
+ App_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
414
415
  __name: "App",
415
416
  setup(__props) {
416
417
  const { t } = useI18n();
@@ -455,7 +456,7 @@ var init_App = __esmMin((() => {
455
456
  App_default = App_vue_vue_type_script_setup_true_lang_default;
456
457
  }));
457
458
  //#endregion
458
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/bind.js
459
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/bind.js
459
460
  /**
460
461
  * Create a bound version of a function with a specified `this` context
461
462
  *
@@ -470,7 +471,7 @@ function bind(fn, thisArg) {
470
471
  }
471
472
  var init_bind = __esmMin((() => {}));
472
473
  //#endregion
473
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/utils.js
474
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/utils.js
474
475
  /**
475
476
  * Determine if a value is a Buffer
476
477
  *
@@ -584,14 +585,24 @@ function merge(...objs) {
584
585
  const result = {};
585
586
  const assignValue = (val, key) => {
586
587
  if (key === "__proto__" || key === "constructor" || key === "prototype") return;
587
- const targetKey = caseless && findKey(result, key) || key;
588
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
588
589
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
589
590
  if (isPlainObject$1(existing) && isPlainObject$1(val)) result[targetKey] = merge(existing, val);
590
591
  else if (isPlainObject$1(val)) result[targetKey] = merge({}, val);
591
592
  else if (isArray(val)) result[targetKey] = val.slice();
592
593
  else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
593
594
  };
594
- for (let i = 0, l = objs.length; i < l; i++) objs[i] && forEach(objs[i], assignValue);
595
+ for (let i = 0, l = objs.length; i < l; i++) {
596
+ const source = objs[i];
597
+ if (!source || isBuffer(source)) continue;
598
+ forEach(source, assignValue);
599
+ if (typeof source !== "object" || isArray(source)) continue;
600
+ const symbols = Object.getOwnPropertySymbols(source);
601
+ for (let j = 0; j < symbols.length; j++) {
602
+ const symbol = symbols[j];
603
+ if (propertyIsEnumerable.call(source, symbol)) assignValue(source[symbol], symbol);
604
+ }
605
+ }
595
606
  return result;
596
607
  }
597
608
  /**
@@ -604,12 +615,25 @@ function merge(...objs) {
604
615
  function isSpecCompliantForm(thing) {
605
616
  return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
606
617
  }
607
- var toString, getPrototypeOf, iterator, toStringTag, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString, isFunction$1, isNumber, isObject, isBoolean, isPlainObject$1, isEmptyObject, isDate, isFile, isReactNativeBlob, isReactNative, isBlob, isFileList, isStream, G, FormDataCtor, isFormData, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim, _global$1, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase, hasOwnProperty, isRegExp, reduceDescriptors, freezeMethods, toObjectSet, noop$1, toFiniteNumber, toJSONObject, isAsyncFn, isThenable, _setImmediate, asap, isIterable, utils_default;
618
+ var toString, getPrototypeOf, iterator, toStringTag, hasOwnProperty, hasOwnInPrototypeChain, getSafeProp, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString, isFunction$1, isNumber, isObject, isBoolean, isPlainObject$1, isEmptyObject, isDate, isFile, isReactNativeBlob, isReactNative, isBlob, isFileList, isSet, isStream, G, FormDataCtor, isFormData, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim, _global$1, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase, propertyIsEnumerable, isRegExp, reduceDescriptors, freezeMethods, toObjectSet, noop$1, toFiniteNumber, toJSONObject, isAsyncFn, isThenable, _setImmediate, asap, isIterable, isSafeIterable, utils_default;
608
619
  var init_utils$1 = __esmMin((() => {
609
620
  init_bind();
610
621
  ({toString} = Object.prototype);
611
622
  ({getPrototypeOf} = Object);
612
623
  ({iterator, toStringTag} = Symbol);
624
+ hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
625
+ hasOwnInPrototypeChain = (thing, prop) => {
626
+ let obj = thing;
627
+ const seen = [];
628
+ while (obj != null && obj !== Object.prototype) {
629
+ if (seen.indexOf(obj) !== -1) return false;
630
+ seen.push(obj);
631
+ if (hasOwnProperty(obj, prop)) return true;
632
+ obj = getPrototypeOf(obj);
633
+ }
634
+ return false;
635
+ };
636
+ getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
613
637
  kindOf = ((cache) => (thing) => {
614
638
  const str = toString.call(thing);
615
639
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -628,9 +652,9 @@ var init_utils$1 = __esmMin((() => {
628
652
  isObject = (thing) => thing !== null && typeof thing === "object";
629
653
  isBoolean = (thing) => thing === true || thing === false;
630
654
  isPlainObject$1 = (val) => {
631
- if (kindOf(val) !== "object") return false;
655
+ if (!isObject(val)) return false;
632
656
  const prototype = getPrototypeOf(val);
633
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
657
+ return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) && !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
634
658
  };
635
659
  isEmptyObject = (val) => {
636
660
  if (!isObject(val) || isBuffer(val)) return false;
@@ -648,6 +672,7 @@ var init_utils$1 = __esmMin((() => {
648
672
  isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
649
673
  isBlob = kindOfTest("Blob");
650
674
  isFileList = kindOfTest("FileList");
675
+ isSet = kindOfTest("Set");
651
676
  isStream = (val) => isObject(val) && isFunction$1(val.pipe);
652
677
  G = getGlobal();
653
678
  FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
@@ -775,7 +800,7 @@ var init_utils$1 = __esmMin((() => {
775
800
  return p1.toUpperCase() + p2;
776
801
  });
777
802
  };
778
- hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
803
+ ({propertyIsEnumerable} = Object.prototype);
779
804
  isRegExp = kindOfTest("RegExp");
780
805
  reduceDescriptors = (obj, reducer) => {
781
806
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -827,11 +852,20 @@ var init_utils$1 = __esmMin((() => {
827
852
  if (isBuffer(source)) return source;
828
853
  if (!("toJSON" in source)) {
829
854
  visited.add(source);
830
- const target = isArray(source) ? [] : {};
831
- forEach(source, (value, key) => {
832
- const reducedValue = visit(value);
833
- !isUndefined(reducedValue) && (target[key] = reducedValue);
834
- });
855
+ let target;
856
+ if (isSet(source)) {
857
+ target = [];
858
+ for (const value of source) {
859
+ const reducedValue = visit(value);
860
+ !isUndefined(reducedValue) && target.push(reducedValue);
861
+ }
862
+ } else {
863
+ target = isArray(source) ? [] : {};
864
+ forEach(source, (value, key) => {
865
+ const reducedValue = visit(value);
866
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
867
+ });
868
+ }
835
869
  visited.delete(source);
836
870
  return target;
837
871
  }
@@ -856,6 +890,7 @@ var init_utils$1 = __esmMin((() => {
856
890
  })(typeof setImmediate === "function", isFunction$1(_global$1.postMessage));
857
891
  asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global$1) : typeof process !== "undefined" && process.nextTick || _setImmediate;
858
892
  isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
893
+ isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
859
894
  utils_default = {
860
895
  isArray,
861
896
  isArrayBuffer,
@@ -900,6 +935,8 @@ var init_utils$1 = __esmMin((() => {
900
935
  isHTMLForm,
901
936
  hasOwnProperty,
902
937
  hasOwnProp: hasOwnProperty,
938
+ hasOwnInPrototypeChain,
939
+ getSafeProp,
903
940
  reduceDescriptors,
904
941
  freezeMethods,
905
942
  toObjectSet,
@@ -915,11 +952,12 @@ var init_utils$1 = __esmMin((() => {
915
952
  isThenable,
916
953
  setImmediate: _setImmediate,
917
954
  asap,
918
- isIterable
955
+ isIterable,
956
+ isSafeIterable
919
957
  };
920
958
  }));
921
959
  //#endregion
922
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/parseHeaders.js
960
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/parseHeaders.js
923
961
  var ignoreDuplicateOf, parseHeaders_default;
924
962
  var init_parseHeaders = __esmMin((() => {
925
963
  init_utils$1();
@@ -951,16 +989,18 @@ var init_parseHeaders = __esmMin((() => {
951
989
  i = line.indexOf(":");
952
990
  key = line.substring(0, i).trim().toLowerCase();
953
991
  val = line.substring(i + 1).trim();
954
- if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
955
- if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
956
- else parsed[key] = [val];
957
- else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
992
+ const hasKey = utils_default.hasOwnProp(parsed, key);
993
+ if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) return;
994
+ if (key === "set-cookie") {
995
+ if (hasKey) parsed[key].push(val);
996
+ else parsed[key] = [val];
997
+ } else parsed[key] = hasKey ? parsed[key] + ", " + val : val;
958
998
  });
959
999
  return parsed;
960
1000
  };
961
1001
  }));
962
1002
  //#endregion
963
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
1003
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
964
1004
  function trimSPorHTAB(str) {
965
1005
  let start = 0;
966
1006
  let end = str.length;
@@ -996,7 +1036,7 @@ var init_sanitizeHeaderValue = __esmMin((() => {
996
1036
  sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
997
1037
  }));
998
1038
  //#endregion
999
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/AxiosHeaders.js
1039
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/AxiosHeaders.js
1000
1040
  function normalizeHeader(header) {
1001
1041
  return header && String(header).trim().toLowerCase();
1002
1042
  }
@@ -1011,6 +1051,68 @@ function parseTokens(str) {
1011
1051
  while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
1012
1052
  return tokens;
1013
1053
  }
1054
+ function trimOWS(value) {
1055
+ let start = 0;
1056
+ let end = value.length;
1057
+ while (start < end) {
1058
+ const code = value.charCodeAt(start);
1059
+ if (code !== 9 && code !== 32) break;
1060
+ start += 1;
1061
+ }
1062
+ while (end > start) {
1063
+ const code = value.charCodeAt(end - 1);
1064
+ if (code !== 9 && code !== 32) break;
1065
+ end -= 1;
1066
+ }
1067
+ return start === 0 && end === value.length ? value : value.slice(start, end);
1068
+ }
1069
+ function decodeQuotedString(value) {
1070
+ const last = value.length - 1;
1071
+ if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) return value;
1072
+ let decoded = "";
1073
+ for (let i = 1; i < last; i++) {
1074
+ const code = value.charCodeAt(i);
1075
+ if (code === 34) return value;
1076
+ if (code === 92) {
1077
+ i += 1;
1078
+ if (i >= last) return value;
1079
+ }
1080
+ decoded += value[i];
1081
+ }
1082
+ return decoded;
1083
+ }
1084
+ function parseParameters(value) {
1085
+ const parameters = Object.create(null);
1086
+ const str = String(value);
1087
+ let start = 0;
1088
+ let quoted = false;
1089
+ let escaped = false;
1090
+ function parseParameter(end) {
1091
+ const part = trimOWS(str.slice(start, end));
1092
+ const equals = part.indexOf("=");
1093
+ if (equals < 1) return;
1094
+ const name = trimOWS(part.slice(0, equals));
1095
+ if (!parameterNameRE.test(name)) return;
1096
+ const normalizedName = name.toLowerCase();
1097
+ if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") return;
1098
+ const parameterValue = trimOWS(part.slice(equals + 1));
1099
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
1100
+ }
1101
+ for (let i = 0; i < str.length; i++) {
1102
+ const code = str.charCodeAt(i);
1103
+ if (quoted) {
1104
+ if (escaped) escaped = false;
1105
+ else if (code === 92) escaped = true;
1106
+ else if (code === 34) quoted = false;
1107
+ } else if (code === 34) quoted = true;
1108
+ else if (code === 44 || code === 59) {
1109
+ parseParameter(i);
1110
+ start = i + 1;
1111
+ }
1112
+ }
1113
+ parseParameter(str.length);
1114
+ return parameters;
1115
+ }
1014
1116
  function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1015
1117
  if (utils_default.isFunction(filter)) return filter.call(this, value, header);
1016
1118
  if (isHeaderNameFilter) value = header;
@@ -1039,14 +1141,15 @@ function buildAccessors(obj, header) {
1039
1141
  });
1040
1142
  });
1041
1143
  }
1042
- var $internals, isValidHeaderName, AxiosHeaders$1;
1144
+ var $internals, parameterNameRE, isValidHeaderName, AxiosHeaders;
1043
1145
  var init_AxiosHeaders = __esmMin((() => {
1044
1146
  init_utils$1();
1045
1147
  init_parseHeaders();
1046
1148
  init_sanitizeHeaderValue();
1047
1149
  $internals = Symbol("internals");
1150
+ parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
1048
1151
  isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1049
- AxiosHeaders$1 = class {
1152
+ AxiosHeaders = class {
1050
1153
  constructor(headers) {
1051
1154
  headers && this.set(headers);
1052
1155
  }
@@ -1054,18 +1157,22 @@ var init_AxiosHeaders = __esmMin((() => {
1054
1157
  const self = this;
1055
1158
  function setHeader(_value, _header, _rewrite) {
1056
1159
  const lHeader = normalizeHeader(_header);
1057
- if (!lHeader) throw new Error("header name must be a non-empty string");
1160
+ if (!lHeader) return;
1058
1161
  const key = utils_default.findKey(self, lHeader);
1059
1162
  if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
1060
1163
  }
1061
1164
  const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
1062
1165
  if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
1063
1166
  else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
1064
- else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
1065
- let obj = {}, dest, key;
1167
+ else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
1168
+ let obj = Object.create(null), dest, key;
1066
1169
  for (const entry of header) {
1067
- if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
1068
- obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
1170
+ if (!utils_default.isArray(entry)) throw new TypeError("Object iterator must return a key-value pair");
1171
+ key = entry[0];
1172
+ if (utils_default.hasOwnProp(obj, key)) {
1173
+ dest = obj[key];
1174
+ obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
1175
+ } else obj[key] = entry[1];
1069
1176
  }
1070
1177
  setHeaders(obj, valueOrRewrite);
1071
1178
  } else header != null && setHeader(valueOrRewrite, header, rewrite);
@@ -1157,7 +1264,8 @@ var init_AxiosHeaders = __esmMin((() => {
1157
1264
  return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
1158
1265
  }
1159
1266
  getSetCookie() {
1160
- return this.get("set-cookie") || [];
1267
+ const value = this.get("set-cookie");
1268
+ return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
1161
1269
  }
1162
1270
  get [Symbol.toStringTag]() {
1163
1271
  return "AxiosHeaders";
@@ -1165,6 +1273,9 @@ var init_AxiosHeaders = __esmMin((() => {
1165
1273
  static from(thing) {
1166
1274
  return thing instanceof this ? thing : new this(thing);
1167
1275
  }
1276
+ static parseParameters(value) {
1277
+ return parseParameters(value);
1278
+ }
1168
1279
  static concat(first, ...targets) {
1169
1280
  const computed = new this(first);
1170
1281
  targets.forEach((target) => computed.set(target));
@@ -1184,7 +1295,7 @@ var init_AxiosHeaders = __esmMin((() => {
1184
1295
  return this;
1185
1296
  }
1186
1297
  };
1187
- AxiosHeaders$1.accessor([
1298
+ AxiosHeaders.accessor([
1188
1299
  "Content-Type",
1189
1300
  "Content-Length",
1190
1301
  "Accept",
@@ -1192,7 +1303,7 @@ var init_AxiosHeaders = __esmMin((() => {
1192
1303
  "User-Agent",
1193
1304
  "Authorization"
1194
1305
  ]);
1195
- utils_default.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
1306
+ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
1196
1307
  let mapped = key[0].toUpperCase() + key.slice(1);
1197
1308
  return {
1198
1309
  get: () => value,
@@ -1201,10 +1312,10 @@ var init_AxiosHeaders = __esmMin((() => {
1201
1312
  }
1202
1313
  };
1203
1314
  });
1204
- utils_default.freezeMethods(AxiosHeaders$1);
1315
+ utils_default.freezeMethods(AxiosHeaders);
1205
1316
  }));
1206
1317
  //#endregion
1207
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/AxiosError.js
1318
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/AxiosError.js
1208
1319
  function hasOwnOrPrototypeToJSON(source) {
1209
1320
  if (utils_default.hasOwnProp(source, "toJSON")) return true;
1210
1321
  let prototype = Object.getPrototypeOf(source);
@@ -1221,7 +1332,7 @@ function redactConfig(config, redactKeys) {
1221
1332
  if (source === null || typeof source !== "object") return source;
1222
1333
  if (utils_default.isBuffer(source)) return source;
1223
1334
  if (seen.indexOf(source) !== -1) return void 0;
1224
- if (source instanceof AxiosHeaders$1) source = source.toJSON();
1335
+ if (source instanceof AxiosHeaders) source = source.toJSON();
1225
1336
  seen.push(source);
1226
1337
  let result;
1227
1338
  if (utils_default.isArray(source)) {
@@ -1246,15 +1357,39 @@ function redactConfig(config, redactKeys) {
1246
1357
  };
1247
1358
  return visit(config);
1248
1359
  }
1249
- var REDACTED, AxiosError$1;
1360
+ function stringifySafely$1(value) {
1361
+ try {
1362
+ return String(value);
1363
+ } catch (err) {
1364
+ return "";
1365
+ }
1366
+ }
1367
+ function aggregateErrorMessage(error) {
1368
+ return error.errors.map((entry) => {
1369
+ try {
1370
+ return entry && entry.message ? stringifySafely$1(entry.message) : stringifySafely$1(entry);
1371
+ } catch (err) {
1372
+ return "";
1373
+ }
1374
+ }).filter(Boolean).join("; ") || error.name || "AggregateError";
1375
+ }
1376
+ var REDACTED, AxiosError;
1250
1377
  var init_AxiosError = __esmMin((() => {
1251
1378
  init_utils$1();
1252
1379
  init_AxiosHeaders();
1253
1380
  REDACTED = "[REDACTED ****]";
1254
- AxiosError$1 = class AxiosError$1 extends Error {
1381
+ AxiosError = class AxiosError extends Error {
1255
1382
  static from(error, code, config, request, response, customProps) {
1256
- const axiosError = new AxiosError$1(error.message, code || error.code, config, request, response);
1257
- axiosError.cause = error;
1383
+ let message = error.message;
1384
+ if (!message && utils_default.isArray(error.errors) && error.errors.length) message = aggregateErrorMessage(error);
1385
+ const axiosError = new AxiosError(message, code || error.code, config, request, response);
1386
+ Object.defineProperty(axiosError, "cause", {
1387
+ __proto__: null,
1388
+ value: error,
1389
+ writable: true,
1390
+ enumerable: false,
1391
+ configurable: true
1392
+ });
1258
1393
  axiosError.name = error.name;
1259
1394
  if (error.status != null && axiosError.status == null) axiosError.status = error.status;
1260
1395
  customProps && Object.assign(axiosError, customProps);
@@ -1309,26 +1444,26 @@ var init_AxiosError = __esmMin((() => {
1309
1444
  };
1310
1445
  }
1311
1446
  };
1312
- AxiosError$1.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
1313
- AxiosError$1.ERR_BAD_OPTION = "ERR_BAD_OPTION";
1314
- AxiosError$1.ECONNABORTED = "ECONNABORTED";
1315
- AxiosError$1.ETIMEDOUT = "ETIMEDOUT";
1316
- AxiosError$1.ECONNREFUSED = "ECONNREFUSED";
1317
- AxiosError$1.ERR_NETWORK = "ERR_NETWORK";
1318
- AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
1319
- AxiosError$1.ERR_DEPRECATED = "ERR_DEPRECATED";
1320
- AxiosError$1.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
1321
- AxiosError$1.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
1322
- AxiosError$1.ERR_CANCELED = "ERR_CANCELED";
1323
- AxiosError$1.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
1324
- AxiosError$1.ERR_INVALID_URL = "ERR_INVALID_URL";
1325
- AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
1447
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
1448
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
1449
+ AxiosError.ECONNABORTED = "ECONNABORTED";
1450
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
1451
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
1452
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
1453
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
1454
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
1455
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
1456
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
1457
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
1458
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
1459
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
1460
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
1326
1461
  }));
1327
1462
  //#endregion
1328
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/null.js
1463
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/null.js
1329
1464
  var init_null = __esmMin((() => {}));
1330
1465
  //#endregion
1331
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/toFormData.js
1466
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/toFormData.js
1332
1467
  /**
1333
1468
  * Determines if the given thing is a array or js object.
1334
1469
  *
@@ -1397,7 +1532,7 @@ function isFlatArray(arr) {
1397
1532
  *
1398
1533
  * @returns
1399
1534
  */
1400
- function toFormData$1(obj, formData, options) {
1535
+ function toFormData(obj, formData, options) {
1401
1536
  if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
1402
1537
  formData = formData || new FormData();
1403
1538
  options = utils_default.toFlatObject(options, {
@@ -1414,15 +1549,33 @@ function toFormData$1(obj, formData, options) {
1414
1549
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
1415
1550
  const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
1416
1551
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
1552
+ const stack = [];
1417
1553
  if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
1418
1554
  function convertValue(value) {
1419
1555
  if (value === null) return "";
1420
1556
  if (utils_default.isDate(value)) return value.toISOString();
1421
1557
  if (utils_default.isBoolean(value)) return value.toString();
1422
- if (!useBlob && utils_default.isBlob(value)) throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
1423
- if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
1558
+ if (!useBlob && utils_default.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
1559
+ if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
1560
+ if (useBlob && typeof _Blob === "function") return new _Blob([value]);
1561
+ throw new AxiosError("Blob is not supported. Use a Buffer instead.", AxiosError.ERR_NOT_SUPPORT);
1562
+ }
1424
1563
  return value;
1425
1564
  }
1565
+ function throwIfMaxDepthExceeded(depth) {
1566
+ if (depth > maxDepth) throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
1567
+ }
1568
+ function stringifyWithDepthLimit(value, depth) {
1569
+ if (maxDepth === Infinity) return JSON.stringify(value);
1570
+ const ancestors = [];
1571
+ return JSON.stringify(value, function limitDepth(_key, currentValue) {
1572
+ if (!utils_default.isObject(currentValue)) return currentValue;
1573
+ while (ancestors.length && ancestors[ancestors.length - 1] !== this) ancestors.pop();
1574
+ ancestors.push(currentValue);
1575
+ throwIfMaxDepthExceeded(depth + ancestors.length - 1);
1576
+ return currentValue;
1577
+ });
1578
+ }
1426
1579
  /**
1427
1580
  * Default visitor.
1428
1581
  *
@@ -1442,7 +1595,7 @@ function toFormData$1(obj, formData, options) {
1442
1595
  if (value && !path && typeof value === "object") {
1443
1596
  if (utils_default.endsWith(key, "{}")) {
1444
1597
  key = metaTokens ? key : key.slice(0, -2);
1445
- value = JSON.stringify(value);
1598
+ value = stringifyWithDepthLimit(value, 1);
1446
1599
  } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
1447
1600
  key = removeBrackets(key);
1448
1601
  arr.forEach(function each(el, index) {
@@ -1455,7 +1608,6 @@ function toFormData$1(obj, formData, options) {
1455
1608
  formData.append(renderKey(path, key, dots), convertValue(value));
1456
1609
  return false;
1457
1610
  }
1458
- const stack = [];
1459
1611
  const exposedHelpers = Object.assign(predicates, {
1460
1612
  defaultVisitor,
1461
1613
  convertValue,
@@ -1463,8 +1615,8 @@ function toFormData$1(obj, formData, options) {
1463
1615
  });
1464
1616
  function build(value, path, depth = 0) {
1465
1617
  if (utils_default.isUndefined(value)) return;
1466
- if (depth > maxDepth) throw new AxiosError$1("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED);
1467
- if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path.join("."));
1618
+ throwIfMaxDepthExceeded(depth);
1619
+ if (stack.indexOf(value) !== -1) throw new Error("Circular reference detected in " + path.join("."));
1468
1620
  stack.push(value);
1469
1621
  utils_default.forEach(value, function each(el, key) {
1470
1622
  if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key], depth + 1);
@@ -1485,7 +1637,7 @@ var init_toFormData = __esmMin((() => {
1485
1637
  });
1486
1638
  }));
1487
1639
  //#endregion
1488
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1640
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1489
1641
  /**
1490
1642
  * It encodes a string by replacing all characters that are not in the unreserved set with
1491
1643
  * their percent-encoded equivalents
@@ -1517,7 +1669,7 @@ function encode$1(str) {
1517
1669
  */
1518
1670
  function AxiosURLSearchParams(params, options) {
1519
1671
  this._pairs = [];
1520
- params && toFormData$1(params, this, options);
1672
+ params && toFormData(params, this, options);
1521
1673
  }
1522
1674
  var prototype;
1523
1675
  var init_AxiosURLSearchParams = __esmMin((() => {
@@ -1527,16 +1679,14 @@ var init_AxiosURLSearchParams = __esmMin((() => {
1527
1679
  this._pairs.push([name, value]);
1528
1680
  };
1529
1681
  prototype.toString = function toString(encoder) {
1530
- const _encode = encoder ? function(value) {
1531
- return encoder.call(this, value, encode$1);
1532
- } : encode$1;
1682
+ const _encode = encoder ? (value) => encoder.call(this, value, encode$1) : encode$1;
1533
1683
  return this._pairs.map(function each(pair) {
1534
1684
  return _encode(pair[0]) + "=" + _encode(pair[1]);
1535
1685
  }, "").join("&");
1536
1686
  };
1537
1687
  }));
1538
1688
  //#endregion
1539
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/buildURL.js
1689
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/buildURL.js
1540
1690
  /**
1541
1691
  * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
1542
1692
  * their plain counterparts (`:`, `$`, `,`, `+`).
@@ -1559,9 +1709,10 @@ function encode(val) {
1559
1709
  */
1560
1710
  function buildURL(url, params, options) {
1561
1711
  if (!params) return url;
1562
- const _encode = options && options.encode || encode;
1712
+ url = url || "";
1563
1713
  const _options = utils_default.isFunction(options) ? { serialize: options } : options;
1564
- const serializeFn = _options && _options.serialize;
1714
+ const _encode = utils_default.getSafeProp(_options, "encode") || encode;
1715
+ const serializeFn = utils_default.getSafeProp(_options, "serialize");
1565
1716
  let serializedParams;
1566
1717
  if (serializeFn) serializedParams = serializeFn(params, _options);
1567
1718
  else serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
@@ -1577,7 +1728,7 @@ var init_buildURL = __esmMin((() => {
1577
1728
  init_AxiosURLSearchParams();
1578
1729
  }));
1579
1730
  //#endregion
1580
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/InterceptorManager.js
1731
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/InterceptorManager.js
1581
1732
  var InterceptorManager;
1582
1733
  var init_InterceptorManager = __esmMin((() => {
1583
1734
  init_utils$1();
@@ -1639,37 +1790,39 @@ var init_InterceptorManager = __esmMin((() => {
1639
1790
  };
1640
1791
  }));
1641
1792
  //#endregion
1642
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/defaults/transitional.js
1793
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/defaults/transitional.js
1643
1794
  var transitional_default;
1644
1795
  var init_transitional = __esmMin((() => {
1645
1796
  transitional_default = {
1646
1797
  silentJSONParsing: true,
1647
1798
  forcedJSONParsing: true,
1648
1799
  clarifyTimeoutError: false,
1649
- legacyInterceptorReqResOrdering: true
1800
+ legacyInterceptorReqResOrdering: true,
1801
+ advertiseZstdAcceptEncoding: false,
1802
+ validateStatusUndefinedResolves: true
1650
1803
  };
1651
1804
  }));
1652
1805
  //#endregion
1653
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1806
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1654
1807
  var URLSearchParams_default;
1655
1808
  var init_URLSearchParams = __esmMin((() => {
1656
1809
  init_AxiosURLSearchParams();
1657
1810
  URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
1658
1811
  }));
1659
1812
  //#endregion
1660
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/browser/classes/FormData.js
1813
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/browser/classes/FormData.js
1661
1814
  var FormData_default;
1662
1815
  var init_FormData = __esmMin((() => {
1663
1816
  FormData_default = typeof FormData !== "undefined" ? FormData : null;
1664
1817
  }));
1665
1818
  //#endregion
1666
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/browser/classes/Blob.js
1819
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/browser/classes/Blob.js
1667
1820
  var Blob_default;
1668
1821
  var init_Blob = __esmMin((() => {
1669
1822
  Blob_default = typeof Blob !== "undefined" ? Blob : null;
1670
1823
  }));
1671
1824
  //#endregion
1672
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/browser/index.js
1825
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/browser/index.js
1673
1826
  var browser_default;
1674
1827
  var init_browser = __esmMin((() => {
1675
1828
  init_URLSearchParams();
@@ -1693,7 +1846,7 @@ var init_browser = __esmMin((() => {
1693
1846
  };
1694
1847
  }));
1695
1848
  //#endregion
1696
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/common/utils.js
1849
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/common/utils.js
1697
1850
  var utils_exports = /* @__PURE__ */ __exportAll({
1698
1851
  hasBrowserEnv: () => hasBrowserEnv,
1699
1852
  hasStandardBrowserEnv: () => hasStandardBrowserEnv,
@@ -1710,11 +1863,13 @@ var init_utils = __esmMin((() => {
1710
1863
  "NativeScript",
1711
1864
  "NS"
1712
1865
  ].indexOf(_navigator$1.product) < 0);
1713
- hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
1866
+ hasStandardBrowserWebWorkerEnv = (() => {
1867
+ return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
1868
+ })();
1714
1869
  origin = hasBrowserEnv && window.location.href || "http://localhost";
1715
1870
  }));
1716
1871
  //#endregion
1717
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/platform/index.js
1872
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/index.js
1718
1873
  var platform_default;
1719
1874
  var init_platform = __esmMin((() => {
1720
1875
  init_browser();
@@ -1725,9 +1880,9 @@ var init_platform = __esmMin((() => {
1725
1880
  };
1726
1881
  }));
1727
1882
  //#endregion
1728
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
1883
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
1729
1884
  function toURLEncodedForm(data, options) {
1730
- return toFormData$1(data, new platform_default.classes.URLSearchParams(), {
1885
+ return toFormData(data, new platform_default.classes.URLSearchParams(), {
1731
1886
  visitor: function(value, key, path, helpers) {
1732
1887
  if (platform_default.isNode && utils_default.isBuffer(value)) {
1733
1888
  this.append(key, value.toString("base64"));
@@ -1744,7 +1899,10 @@ var init_toURLEncodedForm = __esmMin((() => {
1744
1899
  init_platform();
1745
1900
  }));
1746
1901
  //#endregion
1747
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/formDataToJSON.js
1902
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/formDataToJSON.js
1903
+ function throwIfDepthExceeded(index) {
1904
+ if (index > MAX_DEPTH) throw new AxiosError("FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
1905
+ }
1748
1906
  /**
1749
1907
  * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1750
1908
  *
@@ -1753,9 +1911,14 @@ var init_toURLEncodedForm = __esmMin((() => {
1753
1911
  * @returns An array of strings.
1754
1912
  */
1755
1913
  function parsePropPath(name) {
1756
- return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
1757
- return match[0] === "[]" ? "" : match[1] || match[0];
1758
- });
1914
+ const path = [];
1915
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
1916
+ let match;
1917
+ while ((match = pattern.exec(name)) !== null) {
1918
+ throwIfDepthExceeded(path.length);
1919
+ path.push(match[0] === "[]" ? "" : match[1] || match[0]);
1920
+ }
1921
+ return path;
1759
1922
  }
1760
1923
  /**
1761
1924
  * Convert an array to an object.
@@ -1785,6 +1948,7 @@ function arrayToObject(arr) {
1785
1948
  */
1786
1949
  function formDataToJSON(formData) {
1787
1950
  function buildPath(path, value, target, index) {
1951
+ throwIfDepthExceeded(index);
1788
1952
  let name = path[index++];
1789
1953
  if (name === "__proto__") return true;
1790
1954
  const isNumericKey = Number.isFinite(+name);
@@ -1808,11 +1972,15 @@ function formDataToJSON(formData) {
1808
1972
  }
1809
1973
  return null;
1810
1974
  }
1975
+ var MAX_DEPTH;
1811
1976
  var init_formDataToJSON = __esmMin((() => {
1812
1977
  init_utils$1();
1978
+ init_AxiosError();
1979
+ init_toFormData();
1980
+ MAX_DEPTH = 100;
1813
1981
  }));
1814
1982
  //#endregion
1815
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/defaults/index.js
1983
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/defaults/index.js
1816
1984
  /**
1817
1985
  * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1818
1986
  * of the input
@@ -1868,7 +2036,7 @@ var init_defaults = __esmMin((() => {
1868
2036
  if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
1869
2037
  const env = own(this, "env");
1870
2038
  const _FormData = env && env.FormData;
1871
- return toFormData$1(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
2039
+ return toFormData(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
1872
2040
  }
1873
2041
  }
1874
2042
  if (isObjectPayload || hasJSONContentType) {
@@ -1889,7 +2057,7 @@ var init_defaults = __esmMin((() => {
1889
2057
  return JSON.parse(data, own(this, "parseReviver"));
1890
2058
  } catch (e) {
1891
2059
  if (strictJSONParsing) {
1892
- if (e.name === "SyntaxError") throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, own(this, "response"));
2060
+ if (e.name === "SyntaxError") throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
1893
2061
  throw e;
1894
2062
  }
1895
2063
  }
@@ -1930,7 +2098,7 @@ var init_defaults = __esmMin((() => {
1930
2098
  });
1931
2099
  }));
1932
2100
  //#endregion
1933
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/transformData.js
2101
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/transformData.js
1934
2102
  /**
1935
2103
  * Transform the data for a request or a response
1936
2104
  *
@@ -1942,7 +2110,7 @@ var init_defaults = __esmMin((() => {
1942
2110
  function transformData(fns, response) {
1943
2111
  const config = this || defaults;
1944
2112
  const context = response || config;
1945
- const headers = AxiosHeaders$1.from(context.headers);
2113
+ const headers = AxiosHeaders.from(context.headers);
1946
2114
  let data = context.data;
1947
2115
  utils_default.forEach(fns, function transform(fn) {
1948
2116
  data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
@@ -1956,17 +2124,17 @@ var init_transformData = __esmMin((() => {
1956
2124
  init_AxiosHeaders();
1957
2125
  }));
1958
2126
  //#endregion
1959
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/cancel/isCancel.js
1960
- function isCancel$1(value) {
2127
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/cancel/isCancel.js
2128
+ function isCancel(value) {
1961
2129
  return !!(value && value.__CANCEL__);
1962
2130
  }
1963
2131
  var init_isCancel = __esmMin((() => {}));
1964
2132
  //#endregion
1965
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/cancel/CanceledError.js
1966
- var CanceledError$1;
2133
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/cancel/CanceledError.js
2134
+ var CanceledError;
1967
2135
  var init_CanceledError = __esmMin((() => {
1968
2136
  init_AxiosError();
1969
- CanceledError$1 = class extends AxiosError$1 {
2137
+ CanceledError = class extends AxiosError {
1970
2138
  /**
1971
2139
  * A `CanceledError` is an object that is thrown when an operation is canceled.
1972
2140
  *
@@ -1977,14 +2145,14 @@ var init_CanceledError = __esmMin((() => {
1977
2145
  * @returns {CanceledError} The created error.
1978
2146
  */
1979
2147
  constructor(message, config, request) {
1980
- super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
2148
+ super(message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
1981
2149
  this.name = "CanceledError";
1982
2150
  this.__CANCEL__ = true;
1983
2151
  }
1984
2152
  };
1985
2153
  }));
1986
2154
  //#endregion
1987
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/settle.js
2155
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/settle.js
1988
2156
  /**
1989
2157
  * Resolve or reject a Promise based on response status.
1990
2158
  *
@@ -1997,20 +2165,20 @@ var init_CanceledError = __esmMin((() => {
1997
2165
  function settle(resolve, reject, response) {
1998
2166
  const validateStatus = response.config.validateStatus;
1999
2167
  if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
2000
- else reject(new AxiosError$1("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError$1.ERR_BAD_REQUEST : AxiosError$1.ERR_BAD_RESPONSE, response.config, response.request, response));
2168
+ else reject(new AxiosError("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
2001
2169
  }
2002
2170
  var init_settle = __esmMin((() => {
2003
2171
  init_AxiosError();
2004
2172
  }));
2005
2173
  //#endregion
2006
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/parseProtocol.js
2174
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/parseProtocol.js
2007
2175
  function parseProtocol(url) {
2008
2176
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
2009
2177
  return match && match[1] || "";
2010
2178
  }
2011
2179
  var init_parseProtocol = __esmMin((() => {}));
2012
2180
  //#endregion
2013
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/speedometer.js
2181
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/speedometer.js
2014
2182
  /**
2015
2183
  * Calculate data maxRate
2016
2184
  * @param {Number} [samplesCount= 10]
@@ -2046,7 +2214,7 @@ function speedometer(samplesCount, min) {
2046
2214
  }
2047
2215
  var init_speedometer = __esmMin((() => {}));
2048
2216
  //#endregion
2049
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/throttle.js
2217
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/throttle.js
2050
2218
  /**
2051
2219
  * Throttle decorator
2052
2220
  * @param {Function} fn
@@ -2084,7 +2252,7 @@ function throttle(fn, freq) {
2084
2252
  }
2085
2253
  var init_throttle = __esmMin((() => {}));
2086
2254
  //#endregion
2087
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/progressEventReducer.js
2255
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/progressEventReducer.js
2088
2256
  var progressEventReducer, progressEventDecorator, asyncDecorator;
2089
2257
  var init_progressEventReducer = __esmMin((() => {
2090
2258
  init_speedometer();
@@ -2097,7 +2265,7 @@ var init_progressEventReducer = __esmMin((() => {
2097
2265
  if (!e || typeof e.loaded !== "number") return;
2098
2266
  const rawLoaded = e.loaded;
2099
2267
  const total = e.lengthComputable ? e.total : void 0;
2100
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
2268
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
2101
2269
  const progressBytes = Math.max(0, loaded - bytesNotified);
2102
2270
  const rate = _speedometer(progressBytes);
2103
2271
  bytesNotified = Math.max(bytesNotified, loaded);
@@ -2122,10 +2290,10 @@ var init_progressEventReducer = __esmMin((() => {
2122
2290
  loaded
2123
2291
  }), throttled[1]];
2124
2292
  };
2125
- asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
2293
+ asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
2126
2294
  }));
2127
2295
  //#endregion
2128
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/isURLSameOrigin.js
2296
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
2129
2297
  var isURLSameOrigin_default;
2130
2298
  var init_isURLSameOrigin = __esmMin((() => {
2131
2299
  init_platform();
@@ -2135,7 +2303,7 @@ var init_isURLSameOrigin = __esmMin((() => {
2135
2303
  })(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
2136
2304
  }));
2137
2305
  //#endregion
2138
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/cookies.js
2306
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/cookies.js
2139
2307
  var cookies_default;
2140
2308
  var init_cookies = __esmMin((() => {
2141
2309
  init_utils$1();
@@ -2157,7 +2325,11 @@ var init_cookies = __esmMin((() => {
2157
2325
  for (let i = 0; i < cookies.length; i++) {
2158
2326
  const cookie = cookies[i].replace(/^\s+/, "");
2159
2327
  const eq = cookie.indexOf("=");
2160
- if (eq !== -1 && cookie.slice(0, eq) === name) return decodeURIComponent(cookie.slice(eq + 1));
2328
+ if (eq !== -1 && cookie.slice(0, eq) === name) try {
2329
+ return decodeURIComponent(cookie.slice(eq + 1));
2330
+ } catch (e) {
2331
+ return cookie.slice(eq + 1);
2332
+ }
2161
2333
  }
2162
2334
  return null;
2163
2335
  },
@@ -2173,7 +2345,7 @@ var init_cookies = __esmMin((() => {
2173
2345
  };
2174
2346
  }));
2175
2347
  //#endregion
2176
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
2348
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
2177
2349
  /**
2178
2350
  * Determines whether the specified URL is absolute
2179
2351
  *
@@ -2187,7 +2359,7 @@ function isAbsoluteURL(url) {
2187
2359
  }
2188
2360
  var init_isAbsoluteURL = __esmMin((() => {}));
2189
2361
  //#endregion
2190
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/combineURLs.js
2362
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/combineURLs.js
2191
2363
  /**
2192
2364
  * Creates a new URL by combining the specified URLs
2193
2365
  *
@@ -2197,11 +2369,41 @@ var init_isAbsoluteURL = __esmMin((() => {}));
2197
2369
  * @returns {string} The combined URL
2198
2370
  */
2199
2371
  function combineURLs(baseURL, relativeURL) {
2200
- return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
2372
+ if (!relativeURL) return baseURL;
2373
+ let end = baseURL.length;
2374
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) end--;
2375
+ return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
2201
2376
  }
2202
2377
  var init_combineURLs = __esmMin((() => {}));
2203
2378
  //#endregion
2204
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/buildFullPath.js
2379
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/buildFullPath.js
2380
+ function stripLeadingC0ControlOrSpace(url) {
2381
+ let i = 0;
2382
+ while (i < url.length && url.charCodeAt(i) <= 32) i++;
2383
+ return url.slice(i);
2384
+ }
2385
+ function normalizeURLForProtocolCheck(url) {
2386
+ return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, "");
2387
+ }
2388
+ function redactFragment(fragment) {
2389
+ if (!fragment) return fragment;
2390
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
2391
+ return `${separator}${parameterName}${REDACTED}`;
2392
+ });
2393
+ }
2394
+ function redactSensitiveURLParts(url) {
2395
+ const redactedURL = url.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
2396
+ const fragmentIndex = redactedURL.indexOf("#");
2397
+ const redactedURLWithoutFragment = (fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex)).replace(/([?&][^=&#]*=)[^&#]*/g, `$1${REDACTED}`);
2398
+ if (fragmentIndex === -1) return redactedURLWithoutFragment;
2399
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
2400
+ }
2401
+ function assertValidHttpProtocolURL(url, config) {
2402
+ if (typeof url === "string") {
2403
+ const normalizedURL = normalizeURLForProtocolCheck(url);
2404
+ if (malformedHttpProtocol.test(normalizedURL)) throw new AxiosError(`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`, AxiosError.ERR_INVALID_URL, config);
2405
+ }
2406
+ }
2205
2407
  /**
2206
2408
  * Creates a new URL by combining the baseURL with the requestedURL,
2207
2409
  * only when the requestedURL is not already an absolute URL.
@@ -2212,17 +2414,25 @@ var init_combineURLs = __esmMin((() => {}));
2212
2414
  *
2213
2415
  * @returns {string} The combined full path
2214
2416
  */
2215
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2417
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
2418
+ assertValidHttpProtocolURL(requestedURL, config);
2216
2419
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
2217
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) return combineURLs(baseURL, requestedURL);
2420
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
2421
+ assertValidHttpProtocolURL(baseURL, config);
2422
+ return combineURLs(baseURL, requestedURL);
2423
+ }
2218
2424
  return requestedURL;
2219
2425
  }
2426
+ var malformedHttpProtocol, httpProtocolControlCharacters;
2220
2427
  var init_buildFullPath = __esmMin((() => {
2428
+ init_AxiosError();
2221
2429
  init_isAbsoluteURL();
2222
2430
  init_combineURLs();
2431
+ malformedHttpProtocol = /^https?:(?!\/\/)/i;
2432
+ httpProtocolControlCharacters = /[\t\n\r]/g;
2223
2433
  }));
2224
2434
  //#endregion
2225
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/mergeConfig.js
2435
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/mergeConfig.js
2226
2436
  /**
2227
2437
  * Config-specific merge-function which creates a new config-object
2228
2438
  * by merging two configuration objects together.
@@ -2232,7 +2442,8 @@ var init_buildFullPath = __esmMin((() => {
2232
2442
  *
2233
2443
  * @returns {Object} New object resulting from merging config2 to config1
2234
2444
  */
2235
- function mergeConfig$1(config1, config2) {
2445
+ function mergeConfig(config1, config2) {
2446
+ config1 = config1 || {};
2236
2447
  config2 = config2 || {};
2237
2448
  const config = Object.create(null);
2238
2449
  Object.defineProperty(config, "hasOwnProperty", {
@@ -2259,6 +2470,16 @@ function mergeConfig$1(config1, config2) {
2259
2470
  if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
2260
2471
  else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a);
2261
2472
  }
2473
+ function getMergedTransitionalOption(prop) {
2474
+ const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
2475
+ if (!utils_default.isUndefined(transitional2)) {
2476
+ if (utils_default.isPlainObject(transitional2)) {
2477
+ if (utils_default.hasOwnProp(transitional2, prop)) return transitional2[prop];
2478
+ } else return;
2479
+ }
2480
+ const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
2481
+ if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) return transitional1[prop];
2482
+ }
2262
2483
  function mergeDirectKeys(a, b, prop) {
2263
2484
  if (utils_default.hasOwnProp(config2, prop)) return getMergedValue(a, b);
2264
2485
  else if (utils_default.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
@@ -2295,7 +2516,7 @@ function mergeConfig$1(config1, config2) {
2295
2516
  validateStatus: mergeDirectKeys,
2296
2517
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
2297
2518
  };
2298
- utils_default.forEach(Object.keys({
2519
+ utils_default.forEach(ownEnumerableKeys({
2299
2520
  ...config1,
2300
2521
  ...config2
2301
2522
  }), function computeConfigValue(prop) {
@@ -2304,68 +2525,102 @@ function mergeConfig$1(config1, config2) {
2304
2525
  const configValue = merge(utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0, utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0, prop);
2305
2526
  utils_default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
2306
2527
  });
2528
+ if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
2529
+ if (utils_default.hasOwnProp(config1, "validateStatus")) config.validateStatus = getMergedValue(void 0, config1.validateStatus);
2530
+ else delete config.validateStatus;
2531
+ }
2307
2532
  return config;
2308
2533
  }
2309
- var headersToObject;
2534
+ var headersToObject, ownEnumerableKeys;
2310
2535
  var init_mergeConfig = __esmMin((() => {
2311
2536
  init_utils$1();
2312
2537
  init_AxiosHeaders();
2313
- headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
2538
+ headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
2539
+ ownEnumerableKeys = (thing) => {
2540
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter((symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable));
2541
+ return Object.keys(thing);
2542
+ };
2314
2543
  }));
2315
2544
  //#endregion
2316
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/resolveConfig.js
2545
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/setFormDataHeaders.js
2546
+ /**
2547
+ * Apply the headers generated by a FormData implementation to the request headers,
2548
+ * honoring the `formDataHeaderPolicy` option: with 'content-only', copy only the
2549
+ * content-* headers; otherwise merge all of them.
2550
+ *
2551
+ * @param {AxiosHeaders} headers - the request headers to mutate
2552
+ * @param {Object | null | undefined} formHeaders - headers produced by the FormData implementation
2553
+ * @param {String} [policy] - the resolved `formDataHeaderPolicy` config value
2554
+ *
2555
+ * @returns {void}
2556
+ */
2317
2557
  function setFormDataHeaders(headers, formHeaders, policy) {
2318
2558
  if (policy !== "content-only") {
2319
2559
  headers.set(formHeaders);
2320
2560
  return;
2321
2561
  }
2322
- Object.entries(formHeaders).forEach(([key, val]) => {
2562
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
2323
2563
  if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) headers.set(key, val);
2324
2564
  });
2325
2565
  }
2326
- var FORM_DATA_CONTENT_HEADERS, encodeUTF8, resolveConfig_default;
2566
+ var FORM_DATA_CONTENT_HEADERS;
2567
+ var init_setFormDataHeaders = __esmMin((() => {
2568
+ FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
2569
+ }));
2570
+ //#endregion
2571
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/resolveConfig.js
2572
+ function resolveConfig(config) {
2573
+ const newConfig = mergeConfig({}, config);
2574
+ const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
2575
+ const data = own("data");
2576
+ let withXSRFToken = own("withXSRFToken");
2577
+ const xsrfHeaderName = own("xsrfHeaderName");
2578
+ const xsrfCookieName = own("xsrfCookieName");
2579
+ let headers = own("headers");
2580
+ const auth = own("auth");
2581
+ const baseURL = own("baseURL");
2582
+ const allowAbsoluteUrls = own("allowAbsoluteUrls");
2583
+ const url = own("url");
2584
+ newConfig.headers = headers = AxiosHeaders.from(headers);
2585
+ newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls, newConfig), own("params"), own("paramsSerializer"));
2586
+ if (auth) {
2587
+ const username = utils_default.getSafeProp(auth, "username") || "";
2588
+ const password = utils_default.getSafeProp(auth, "password") || "";
2589
+ try {
2590
+ headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF8$1(password) : "")));
2591
+ } catch (e) {
2592
+ throw AxiosError.from(e, AxiosError.ERR_BAD_OPTION_VALUE, config);
2593
+ }
2594
+ }
2595
+ if (utils_default.isFormData(data)) {
2596
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) headers.setContentType(void 0);
2597
+ else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
2598
+ }
2599
+ if (platform_default.hasStandardBrowserEnv) {
2600
+ if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
2601
+ if (withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url)) {
2602
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
2603
+ if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
2604
+ }
2605
+ }
2606
+ return newConfig;
2607
+ }
2608
+ var encodeUTF8$1;
2327
2609
  var init_resolveConfig = __esmMin((() => {
2328
2610
  init_platform();
2329
2611
  init_utils$1();
2612
+ init_AxiosError();
2330
2613
  init_isURLSameOrigin();
2331
2614
  init_cookies();
2332
2615
  init_buildFullPath();
2333
2616
  init_mergeConfig();
2334
2617
  init_AxiosHeaders();
2618
+ init_setFormDataHeaders();
2335
2619
  init_buildURL();
2336
- FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
2337
- encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
2338
- resolveConfig_default = (config) => {
2339
- const newConfig = mergeConfig$1({}, config);
2340
- const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
2341
- const data = own("data");
2342
- let withXSRFToken = own("withXSRFToken");
2343
- const xsrfHeaderName = own("xsrfHeaderName");
2344
- const xsrfCookieName = own("xsrfCookieName");
2345
- let headers = own("headers");
2346
- const auth = own("auth");
2347
- const baseURL = own("baseURL");
2348
- const allowAbsoluteUrls = own("allowAbsoluteUrls");
2349
- const url = own("url");
2350
- newConfig.headers = headers = AxiosHeaders$1.from(headers);
2351
- newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), config.params, config.paramsSerializer);
2352
- if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
2353
- if (utils_default.isFormData(data)) {
2354
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
2355
- else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
2356
- }
2357
- if (platform_default.hasStandardBrowserEnv) {
2358
- if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
2359
- if (withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url)) {
2360
- const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
2361
- if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
2362
- }
2363
- }
2364
- return newConfig;
2365
- };
2620
+ encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
2366
2621
  }));
2367
2622
  //#endregion
2368
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/adapters/xhr.js
2623
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/adapters/xhr.js
2369
2624
  var isXHRAdapterSupported, xhr_default;
2370
2625
  var init_xhr = __esmMin((() => {
2371
2626
  init_utils$1();
@@ -2382,9 +2637,9 @@ var init_xhr = __esmMin((() => {
2382
2637
  isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
2383
2638
  xhr_default = isXHRAdapterSupported && function(config) {
2384
2639
  return new Promise(function dispatchXhrRequest(resolve, reject) {
2385
- const _config = resolveConfig_default(config);
2640
+ const _config = resolveConfig(config);
2386
2641
  let requestData = _config.data;
2387
- const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
2642
+ const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
2388
2643
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
2389
2644
  let onCanceled;
2390
2645
  let uploadThrottled, downloadThrottled;
@@ -2400,7 +2655,7 @@ var init_xhr = __esmMin((() => {
2400
2655
  request.timeout = _config.timeout;
2401
2656
  function onloadend() {
2402
2657
  if (!request) return;
2403
- const responseHeaders = AxiosHeaders$1.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
2658
+ const responseHeaders = AxiosHeaders.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
2404
2659
  settle(function _resolve(value) {
2405
2660
  resolve(value);
2406
2661
  done();
@@ -2425,12 +2680,13 @@ var init_xhr = __esmMin((() => {
2425
2680
  };
2426
2681
  request.onabort = function handleAbort() {
2427
2682
  if (!request) return;
2428
- reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
2683
+ reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
2429
2684
  done();
2430
2685
  request = null;
2431
2686
  };
2432
2687
  request.onerror = function handleError(event) {
2433
- const err = new AxiosError$1(event && event.message ? event.message : "Network Error", AxiosError$1.ERR_NETWORK, config, request);
2688
+ const msg = event && event.message ? event.message : "Network Error";
2689
+ const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
2434
2690
  err.event = event || null;
2435
2691
  reject(err);
2436
2692
  done();
@@ -2440,7 +2696,7 @@ var init_xhr = __esmMin((() => {
2440
2696
  let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
2441
2697
  const transitional = _config.transitional || transitional_default;
2442
2698
  if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
2443
- reject(new AxiosError$1(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, config, request));
2699
+ reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
2444
2700
  done();
2445
2701
  request = null;
2446
2702
  };
@@ -2462,7 +2718,7 @@ var init_xhr = __esmMin((() => {
2462
2718
  if (_config.cancelToken || _config.signal) {
2463
2719
  onCanceled = (cancel) => {
2464
2720
  if (!request) return;
2465
- reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
2721
+ reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
2466
2722
  request.abort();
2467
2723
  done();
2468
2724
  request = null;
@@ -2472,7 +2728,8 @@ var init_xhr = __esmMin((() => {
2472
2728
  }
2473
2729
  const protocol = parseProtocol(_config.url);
2474
2730
  if (protocol && !platform_default.protocols.includes(protocol)) {
2475
- reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
2731
+ reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
2732
+ done();
2476
2733
  return;
2477
2734
  }
2478
2735
  request.send(requestData || null);
@@ -2480,7 +2737,7 @@ var init_xhr = __esmMin((() => {
2480
2737
  };
2481
2738
  }));
2482
2739
  //#endregion
2483
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/composeSignals.js
2740
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/composeSignals.js
2484
2741
  var composeSignals;
2485
2742
  var init_composeSignals = __esmMin((() => {
2486
2743
  init_CanceledError();
@@ -2496,12 +2753,12 @@ var init_composeSignals = __esmMin((() => {
2496
2753
  aborted = true;
2497
2754
  unsubscribe();
2498
2755
  const err = reason instanceof Error ? reason : this.reason;
2499
- controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
2756
+ controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
2500
2757
  }
2501
2758
  };
2502
2759
  let timer = timeout && setTimeout(() => {
2503
2760
  timer = null;
2504
- onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
2761
+ onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
2505
2762
  }, timeout);
2506
2763
  const unsubscribe = () => {
2507
2764
  if (!signals) return;
@@ -2512,14 +2769,21 @@ var init_composeSignals = __esmMin((() => {
2512
2769
  });
2513
2770
  signals = null;
2514
2771
  };
2515
- signals.forEach((signal) => signal.addEventListener("abort", onabort));
2772
+ signals.forEach((signal) => {
2773
+ if (aborted) return;
2774
+ if (signal.aborted) {
2775
+ onabort.call(signal);
2776
+ return;
2777
+ }
2778
+ signal.addEventListener("abort", onabort, { once: true });
2779
+ });
2516
2780
  const { signal } = controller;
2517
2781
  signal.unsubscribe = () => utils_default.asap(unsubscribe);
2518
2782
  return signal;
2519
2783
  };
2520
2784
  }));
2521
2785
  //#endregion
2522
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/trackStream.js
2786
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/trackStream.js
2523
2787
  var streamChunk, readBytes, readStream, trackStream;
2524
2788
  var init_trackStream = __esmMin((() => {
2525
2789
  streamChunk = function* (chunk, chunkSize) {
@@ -2590,76 +2854,96 @@ var init_trackStream = __esmMin((() => {
2590
2854
  };
2591
2855
  }));
2592
2856
  //#endregion
2593
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
2857
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
2594
2858
  /**
2595
- * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
2596
- * - For base64: compute exact decoded size using length and padding;
2597
- * handle %XX at the character-count level (no string allocation).
2598
- * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
2859
+ * Estimate the percent-decoded payload size used by Fetch data: URLs.
2599
2860
  *
2600
2861
  * @param {string} url
2601
2862
  * @returns {number}
2602
2863
  */
2603
2864
  function estimateDataURLDecodedBytes(url) {
2604
- if (!url || typeof url !== "string") return 0;
2605
- if (!url.startsWith("data:")) return 0;
2606
- const comma = url.indexOf(",");
2607
- if (comma < 0) return 0;
2608
- const meta = url.slice(5, comma);
2609
- const body = url.slice(comma + 1);
2610
- if (/;base64/i.test(meta)) {
2611
- let effectiveLen = body.length;
2865
+ const fragmentIndex = typeof url === "string" ? url.indexOf("#") : -1;
2866
+ return estimateDataURLBytes(fragmentIndex === -1 ? url : url.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes);
2867
+ }
2868
+ var isHexDigit, isPercentEncodedByte, hexValue, isBase64Char, isBase64Whitespace, base64Bytes, estimateBase64BufferAllocation, estimatePercentDecodedBase64Bytes, estimateDataURLBytes;
2869
+ var init_estimateDataURLDecodedBytes = __esmMin((() => {
2870
+ isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
2871
+ isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
2872
+ hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
2873
+ isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || charCode >= 97 && charCode <= 122 || charCode >= 48 && charCode <= 57 || charCode === 43 || charCode === 47 || charCode === 45 || charCode === 95;
2874
+ isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
2875
+ base64Bytes = (significant) => {
2876
+ const groups = Math.floor(significant / 4);
2877
+ const remainder = significant % 4;
2878
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
2879
+ };
2880
+ estimateBase64BufferAllocation = (body) => {
2612
2881
  const len = body.length;
2613
- for (let i = 0; i < len; i++) if (body.charCodeAt(i) === 37 && i + 2 < len) {
2614
- const a = body.charCodeAt(i + 1);
2615
- const b = body.charCodeAt(i + 2);
2616
- if ((a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102)) {
2617
- effectiveLen -= 2;
2882
+ let padding = 0;
2883
+ if (len > 0 && body.charCodeAt(len - 1) === 61) {
2884
+ padding++;
2885
+ if (len > 1 && body.charCodeAt(len - 2) === 61) padding++;
2886
+ }
2887
+ return Math.floor((len - padding) * 3 / 4);
2888
+ };
2889
+ estimatePercentDecodedBase64Bytes = (body) => {
2890
+ const len = body.length;
2891
+ let significant = 0;
2892
+ let padding = 0;
2893
+ let invalid = false;
2894
+ for (let i = 0; i < len; i++) {
2895
+ let code = body.charCodeAt(i);
2896
+ if (code === 37 && isPercentEncodedByte(body, i, len)) {
2897
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
2618
2898
  i += 2;
2619
2899
  }
2620
- }
2621
- let pad = 0;
2622
- let idx = len - 1;
2623
- const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
2624
- if (idx >= 0) {
2625
- if (body.charCodeAt(idx) === 61) {
2626
- pad++;
2627
- idx--;
2628
- } else if (tailIsPct3D(idx)) {
2629
- pad++;
2630
- idx -= 3;
2900
+ if (isBase64Whitespace(code)) continue;
2901
+ if (code === 61) {
2902
+ padding++;
2903
+ continue;
2631
2904
  }
2905
+ if (!isBase64Char(code) || padding > 0) {
2906
+ invalid = true;
2907
+ continue;
2908
+ }
2909
+ significant++;
2632
2910
  }
2633
- if (pad === 1 && idx >= 0) {
2634
- if (body.charCodeAt(idx) === 61) pad++;
2635
- else if (tailIsPct3D(idx)) pad++;
2636
- }
2637
- const bytes = Math.floor(effectiveLen / 4) * 3 - (pad || 0);
2638
- return bytes > 0 ? bytes : 0;
2639
- }
2640
- if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") return Buffer.byteLength(body, "utf8");
2641
- let bytes = 0;
2642
- for (let i = 0, len = body.length; i < len; i++) {
2643
- const c = body.charCodeAt(i);
2644
- if (c < 128) bytes += 1;
2645
- else if (c < 2048) bytes += 2;
2646
- else if (c >= 55296 && c <= 56319 && i + 1 < len) {
2647
- const next = body.charCodeAt(i + 1);
2648
- if (next >= 56320 && next <= 57343) {
2649
- bytes += 4;
2650
- i++;
2911
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) return estimateBase64BufferAllocation(body);
2912
+ return base64Bytes(significant);
2913
+ };
2914
+ estimateDataURLBytes = (url, estimateBase64) => {
2915
+ if (!url || typeof url !== "string") return 0;
2916
+ if (!url.startsWith("data:")) return 0;
2917
+ const comma = url.indexOf(",");
2918
+ if (comma < 0) return 0;
2919
+ const meta = url.slice(5, comma);
2920
+ const body = url.slice(comma + 1);
2921
+ if (/;base64/i.test(meta)) return estimateBase64(body);
2922
+ let bytes = 0;
2923
+ for (let i = 0, len = body.length; i < len; i++) {
2924
+ const c = body.charCodeAt(i);
2925
+ if (c === 37 && isPercentEncodedByte(body, i, len)) {
2926
+ bytes += 1;
2927
+ i += 2;
2928
+ } else if (c < 128) bytes += 1;
2929
+ else if (c < 2048) bytes += 2;
2930
+ else if (c >= 55296 && c <= 56319 && i + 1 < len) {
2931
+ const next = body.charCodeAt(i + 1);
2932
+ if (next >= 56320 && next <= 57343) {
2933
+ bytes += 4;
2934
+ i++;
2935
+ } else bytes += 3;
2651
2936
  } else bytes += 3;
2652
- } else bytes += 3;
2653
- }
2654
- return bytes;
2655
- }
2656
- var init_estimateDataURLDecodedBytes = __esmMin((() => {}));
2937
+ }
2938
+ return bytes;
2939
+ };
2940
+ }));
2657
2941
  //#endregion
2658
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/env/data.js
2659
- var VERSION$1;
2942
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/env/data.js
2943
+ var VERSION;
2660
2944
  var init_data = __esmMin((() => {
2661
- VERSION$1 = "1.16.1";
2662
- })), DEFAULT_CHUNK_SIZE, isFunction, test, factory, seedCache, getFetch;
2945
+ VERSION = "1.19.0";
2946
+ })), DEFAULT_CHUNK_SIZE, isFunction, encodeUTF8, decodeURIComponentSafe, test, maybeWithAuthCredentials, factory, seedCache, getFetch;
2663
2947
  var init_fetch = __esmMin((() => {
2664
2948
  init_platform();
2665
2949
  init_utils$1();
@@ -2673,8 +2957,17 @@ var init_fetch = __esmMin((() => {
2673
2957
  init_estimateDataURLDecodedBytes();
2674
2958
  init_data();
2675
2959
  init_sanitizeHeaderValue();
2676
- DEFAULT_CHUNK_SIZE = 64 * 1024;
2960
+ DEFAULT_CHUNK_SIZE = 65536;
2677
2961
  ({isFunction} = utils_default);
2962
+ encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
2963
+ decodeURIComponentSafe = (value) => {
2964
+ if (!utils_default.isString(value)) return value;
2965
+ try {
2966
+ return decodeURIComponent(value);
2967
+ } catch (error) {
2968
+ return value;
2969
+ }
2970
+ };
2678
2971
  test = (fn, ...args) => {
2679
2972
  try {
2680
2973
  return !!fn(...args);
@@ -2682,6 +2975,12 @@ var init_fetch = __esmMin((() => {
2682
2975
  return false;
2683
2976
  }
2684
2977
  };
2978
+ maybeWithAuthCredentials = (url) => {
2979
+ const protocolIndex = url.indexOf("://");
2980
+ let urlToCheck = url;
2981
+ if (protocolIndex !== -1) urlToCheck = urlToCheck.slice(protocolIndex + 3);
2982
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
2983
+ };
2685
2984
  factory = (env) => {
2686
2985
  const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
2687
2986
  const { ReadableStream, TextEncoder } = globalObject;
@@ -2712,19 +3011,21 @@ var init_fetch = __esmMin((() => {
2712
3011
  });
2713
3012
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
2714
3013
  const resolvers = { stream: supportsResponseStream && ((res) => res.body) };
2715
- isFetchSupported && [
2716
- "text",
2717
- "arrayBuffer",
2718
- "blob",
2719
- "formData",
2720
- "stream"
2721
- ].forEach((type) => {
2722
- !resolvers[type] && (resolvers[type] = (res, config) => {
2723
- let method = res && res[type];
2724
- if (method) return method.call(res);
2725
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
3014
+ isFetchSupported && (() => {
3015
+ [
3016
+ "text",
3017
+ "arrayBuffer",
3018
+ "blob",
3019
+ "formData",
3020
+ "stream"
3021
+ ].forEach((type) => {
3022
+ !resolvers[type] && (resolvers[type] = (res, config) => {
3023
+ let method = res && res[type];
3024
+ if (method) return method.call(res);
3025
+ throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
3026
+ });
2726
3027
  });
2727
- });
3028
+ })();
2728
3029
  const getBodyLength = async (body) => {
2729
3030
  if (body == null) return 0;
2730
3031
  if (utils_default.isBlob(body)) return body.size;
@@ -2741,9 +3042,10 @@ var init_fetch = __esmMin((() => {
2741
3042
  return length == null ? getBodyLength(body) : length;
2742
3043
  };
2743
3044
  return async (config) => {
2744
- let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig_default(config);
3045
+ let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig(config);
2745
3046
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
2746
3047
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
3048
+ const own = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
2747
3049
  let _fetch = envFetch || fetch;
2748
3050
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
2749
3051
  let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -2752,34 +3054,70 @@ var init_fetch = __esmMin((() => {
2752
3054
  composedSignal.unsubscribe();
2753
3055
  });
2754
3056
  let requestContentLength;
3057
+ let pendingBodyError = null;
3058
+ const maxBodyLengthError = () => new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
2755
3059
  try {
3060
+ let auth = void 0;
3061
+ const configAuth = own("auth");
3062
+ if (configAuth) auth = {
3063
+ username: utils_default.getSafeProp(configAuth, "username") || "",
3064
+ password: utils_default.getSafeProp(configAuth, "password") || ""
3065
+ };
3066
+ if (maybeWithAuthCredentials(url)) {
3067
+ const parsedURL = new URL(url, platform_default.origin);
3068
+ if (!auth && (parsedURL.username || parsedURL.password)) auth = {
3069
+ username: decodeURIComponentSafe(parsedURL.username),
3070
+ password: decodeURIComponentSafe(parsedURL.password)
3071
+ };
3072
+ if (parsedURL.username || parsedURL.password) {
3073
+ parsedURL.username = "";
3074
+ parsedURL.password = "";
3075
+ url = parsedURL.href;
3076
+ }
3077
+ }
3078
+ if (auth) {
3079
+ headers.delete("authorization");
3080
+ headers.set("Authorization", "Basic " + btoa(encodeUTF8((auth.username || "") + ":" + (auth.password || ""))));
3081
+ }
2756
3082
  if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
2757
- if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
3083
+ if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
2758
3084
  }
2759
3085
  if (hasMaxBodyLength && method !== "get" && method !== "head") {
2760
- const outboundLength = await resolveBodyLength(headers, data);
2761
- if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) throw new AxiosError$1("Request body larger than maxBodyLength limit", AxiosError$1.ERR_BAD_REQUEST, config, request);
2762
- }
2763
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
2764
- let _request = new Request(url, {
2765
- method: "POST",
2766
- body: data,
2767
- duplex: "half"
2768
- });
2769
- let contentTypeHeader;
2770
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) headers.setContentType(contentTypeHeader);
2771
- if (_request.body) {
2772
- const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
2773
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
3086
+ const outboundLength = await getBodyLength(data);
3087
+ if (typeof outboundLength === "number" && isFinite(outboundLength)) {
3088
+ requestContentLength = outboundLength;
3089
+ if (outboundLength > maxBodyLength) throw maxBodyLengthError();
2774
3090
  }
2775
3091
  }
3092
+ const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
3093
+ const trackRequestStream = (stream, onProgress, flush) => trackStream(stream, DEFAULT_CHUNK_SIZE, (loadedBytes) => {
3094
+ if (hasMaxBodyLength && loadedBytes > maxBodyLength) throw pendingBodyError = maxBodyLengthError();
3095
+ onProgress && onProgress(loadedBytes);
3096
+ }, flush);
3097
+ if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
3098
+ requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
3099
+ if (requestContentLength !== 0 || mustEnforceStreamBody) {
3100
+ let _request = new Request(url, {
3101
+ method: "POST",
3102
+ body: data,
3103
+ duplex: "half"
3104
+ });
3105
+ let contentTypeHeader;
3106
+ if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) headers.setContentType(contentTypeHeader);
3107
+ if (_request.body) {
3108
+ const [onProgress, flush] = onUploadProgress && progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))) || [];
3109
+ data = trackRequestStream(_request.body, onProgress, flush);
3110
+ }
3111
+ }
3112
+ } else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") data = trackRequestStream(data);
3113
+ else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") throw new AxiosError("Stream request bodies are not supported by the current fetch implementation", AxiosError.ERR_NOT_SUPPORT, config, request);
2776
3114
  if (!utils_default.isString(withCredentials)) withCredentials = withCredentials ? "include" : "omit";
2777
3115
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
2778
3116
  if (utils_default.isFormData(data)) {
2779
3117
  const contentType = headers.getContentType();
2780
3118
  if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) headers.delete("content-type");
2781
3119
  }
2782
- headers.set("User-Agent", "axios/" + VERSION$1, false);
3120
+ headers.set("User-Agent", "axios/" + VERSION, false);
2783
3121
  const resolvedOptions = {
2784
3122
  ...fetchOptions,
2785
3123
  signal: composedSignal,
@@ -2791,9 +3129,10 @@ var init_fetch = __esmMin((() => {
2791
3129
  };
2792
3130
  request = isRequestSupported && new Request(url, resolvedOptions);
2793
3131
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
3132
+ const responseHeaders = AxiosHeaders.from(response.headers);
2794
3133
  if (hasMaxContentLength) {
2795
- const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
2796
- if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
3134
+ const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
3135
+ if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
2797
3136
  }
2798
3137
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
2799
3138
  if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
@@ -2805,13 +3144,13 @@ var init_fetch = __esmMin((() => {
2805
3144
  ].forEach((prop) => {
2806
3145
  options[prop] = response[prop];
2807
3146
  });
2808
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
3147
+ const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
2809
3148
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
2810
3149
  let bytesRead = 0;
2811
3150
  const onChunkProgress = (loadedBytes) => {
2812
3151
  if (hasMaxContentLength) {
2813
3152
  bytesRead = loadedBytes;
2814
- if (bytesRead > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
3153
+ if (bytesRead > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
2815
3154
  }
2816
3155
  onProgress && onProgress(loadedBytes);
2817
3156
  };
@@ -2829,13 +3168,13 @@ var init_fetch = __esmMin((() => {
2829
3168
  else if (typeof responseData.size === "number") materializedSize = responseData.size;
2830
3169
  else if (typeof responseData === "string") materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
2831
3170
  }
2832
- if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
3171
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
2833
3172
  }
2834
3173
  !isStreamResponse && unsubscribe && unsubscribe();
2835
3174
  return await new Promise((resolve, reject) => {
2836
3175
  settle(resolve, reject, {
2837
3176
  data: responseData,
2838
- headers: AxiosHeaders$1.from(response.headers),
3177
+ headers: AxiosHeaders.from(response.headers),
2839
3178
  status: response.status,
2840
3179
  statusText: response.statusText,
2841
3180
  config,
@@ -2844,15 +3183,39 @@ var init_fetch = __esmMin((() => {
2844
3183
  });
2845
3184
  } catch (err) {
2846
3185
  unsubscribe && unsubscribe();
2847
- if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError$1) {
3186
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
2848
3187
  const canceledError = composedSignal.reason;
2849
3188
  canceledError.config = config;
2850
3189
  request && (canceledError.request = request);
2851
- err !== canceledError && (canceledError.cause = err);
3190
+ if (err !== canceledError) Object.defineProperty(canceledError, "cause", {
3191
+ __proto__: null,
3192
+ value: err,
3193
+ writable: true,
3194
+ enumerable: false,
3195
+ configurable: true
3196
+ });
2852
3197
  throw canceledError;
2853
3198
  }
2854
- if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response), { cause: err.cause || err });
2855
- throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
3199
+ if (pendingBodyError) {
3200
+ request && !pendingBodyError.request && (pendingBodyError.request = request);
3201
+ throw pendingBodyError;
3202
+ }
3203
+ if (err instanceof AxiosError) {
3204
+ request && !err.request && (err.request = request);
3205
+ throw err;
3206
+ }
3207
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
3208
+ const networkError = new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response);
3209
+ Object.defineProperty(networkError, "cause", {
3210
+ __proto__: null,
3211
+ value: err.cause || err,
3212
+ writable: true,
3213
+ enumerable: false,
3214
+ configurable: true
3215
+ });
3216
+ throw networkError;
3217
+ }
3218
+ throw AxiosError.from(err, err && err.code, config, request, err && err.response);
2856
3219
  }
2857
3220
  };
2858
3221
  };
@@ -2877,7 +3240,7 @@ var init_fetch = __esmMin((() => {
2877
3240
  getFetch();
2878
3241
  }));
2879
3242
  //#endregion
2880
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/adapters/adapters.js
3243
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/adapters/adapters.js
2881
3244
  /**
2882
3245
  * Get the first suitable adapter from the provided list.
2883
3246
  * Tries each adapter in order until a supported one is found.
@@ -2888,7 +3251,7 @@ var init_fetch = __esmMin((() => {
2888
3251
  * @throws {AxiosError} If no suitable adapter is available
2889
3252
  * @returns {Function} The resolved adapter function
2890
3253
  */
2891
- function getAdapter$1(adapters, config) {
3254
+ function getAdapter(adapters, config) {
2892
3255
  adapters = utils_default.isArray(adapters) ? adapters : [adapters];
2893
3256
  const { length } = adapters;
2894
3257
  let nameOrAdapter;
@@ -2900,14 +3263,15 @@ function getAdapter$1(adapters, config) {
2900
3263
  adapter = nameOrAdapter;
2901
3264
  if (!isResolvedHandle(nameOrAdapter)) {
2902
3265
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
2903
- if (adapter === void 0) throw new AxiosError$1(`Unknown adapter '${id}'`);
3266
+ if (adapter === void 0) throw new AxiosError(`Unknown adapter '${id}'`);
2904
3267
  }
2905
3268
  if (adapter && (utils_default.isFunction(adapter) || (adapter = adapter.get(config)))) break;
2906
3269
  rejectedReasons[id || "#" + i] = adapter;
2907
3270
  }
2908
3271
  if (!adapter) {
2909
3272
  const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
2910
- throw new AxiosError$1(`There is no suitable adapter to dispatch the request ` + (length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
3273
+ let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
3274
+ throw new AxiosError(`There is no suitable adapter to dispatch the request ` + s, AxiosError.ERR_NOT_SUPPORT);
2911
3275
  }
2912
3276
  return adapter;
2913
3277
  }
@@ -2944,7 +3308,7 @@ var init_adapters = __esmMin((() => {
2944
3308
  * Resolve an adapter from a list of adapter names or functions.
2945
3309
  * @type {Function}
2946
3310
  */
2947
- getAdapter: getAdapter$1,
3311
+ getAdapter,
2948
3312
  /**
2949
3313
  * Exposes all known adapters
2950
3314
  * @type {Object<string, Function|Object>}
@@ -2953,7 +3317,7 @@ var init_adapters = __esmMin((() => {
2953
3317
  };
2954
3318
  }));
2955
3319
  //#endregion
2956
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/dispatchRequest.js
3320
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/dispatchRequest.js
2957
3321
  /**
2958
3322
  * Throws a `CanceledError` if cancellation has been requested.
2959
3323
  *
@@ -2963,7 +3327,7 @@ var init_adapters = __esmMin((() => {
2963
3327
  */
2964
3328
  function throwIfCancellationRequested(config) {
2965
3329
  if (config.cancelToken) config.cancelToken.throwIfRequested();
2966
- if (config.signal && config.signal.aborted) throw new CanceledError$1(null, config);
3330
+ if (config.signal && config.signal.aborted) throw new CanceledError(null, config);
2967
3331
  }
2968
3332
  /**
2969
3333
  * Dispatch a request to the server using the configured adapter.
@@ -2974,7 +3338,7 @@ function throwIfCancellationRequested(config) {
2974
3338
  */
2975
3339
  function dispatchRequest(config) {
2976
3340
  throwIfCancellationRequested(config);
2977
- config.headers = AxiosHeaders$1.from(config.headers);
3341
+ config.headers = AxiosHeaders.from(config.headers);
2978
3342
  config.data = transformData.call(config, config.transformRequest);
2979
3343
  if ([
2980
3344
  "post",
@@ -2989,10 +3353,10 @@ function dispatchRequest(config) {
2989
3353
  } finally {
2990
3354
  delete config.response;
2991
3355
  }
2992
- response.headers = AxiosHeaders$1.from(response.headers);
3356
+ response.headers = AxiosHeaders.from(response.headers);
2993
3357
  return response;
2994
3358
  }, function onAdapterRejection(reason) {
2995
- if (!isCancel$1(reason)) {
3359
+ if (!isCancel(reason)) {
2996
3360
  throwIfCancellationRequested(config);
2997
3361
  if (reason && reason.response) {
2998
3362
  config.response = reason.response;
@@ -3001,7 +3365,7 @@ function dispatchRequest(config) {
3001
3365
  } finally {
3002
3366
  delete config.response;
3003
3367
  }
3004
- reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
3368
+ reason.response.headers = AxiosHeaders.from(reason.response.headers);
3005
3369
  }
3006
3370
  }
3007
3371
  return Promise.reject(reason);
@@ -3016,7 +3380,7 @@ var init_dispatchRequest = __esmMin((() => {
3016
3380
  init_adapters();
3017
3381
  }));
3018
3382
  //#endregion
3019
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/validator.js
3383
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/validator.js
3020
3384
  /**
3021
3385
  * Assert object's properties type
3022
3386
  *
@@ -3027,7 +3391,7 @@ var init_dispatchRequest = __esmMin((() => {
3027
3391
  * @returns {object}
3028
3392
  */
3029
3393
  function assertOptions(options, schema, allowUnknown) {
3030
- if (typeof options !== "object") throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
3394
+ if (typeof options !== "object" || options === null) throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
3031
3395
  const keys = Object.keys(options);
3032
3396
  let i = keys.length;
3033
3397
  while (i-- > 0) {
@@ -3036,10 +3400,10 @@ function assertOptions(options, schema, allowUnknown) {
3036
3400
  if (validator) {
3037
3401
  const value = options[opt];
3038
3402
  const result = value === void 0 || validator(value, opt, options);
3039
- if (result !== true) throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
3403
+ if (result !== true) throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
3040
3404
  continue;
3041
3405
  }
3042
- if (allowUnknown !== true) throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
3406
+ if (allowUnknown !== true) throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
3043
3407
  }
3044
3408
  }
3045
3409
  var validators$1, deprecatedWarnings, validator_default;
@@ -3071,10 +3435,10 @@ var init_validator = __esmMin((() => {
3071
3435
  */
3072
3436
  validators$1.transitional = function transitional(validator, version, message) {
3073
3437
  function formatMessage(opt, desc) {
3074
- return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
3438
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
3075
3439
  }
3076
3440
  return (value, opt, opts) => {
3077
- if (validator === false) throw new AxiosError$1(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError$1.ERR_DEPRECATED);
3441
+ if (validator === false) throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
3078
3442
  if (version && !deprecatedWarnings[opt]) {
3079
3443
  deprecatedWarnings[opt] = true;
3080
3444
  console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
@@ -3094,8 +3458,8 @@ var init_validator = __esmMin((() => {
3094
3458
  };
3095
3459
  }));
3096
3460
  //#endregion
3097
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/core/Axios.js
3098
- var validators, Axios$1;
3461
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/Axios.js
3462
+ var validators, Axios;
3099
3463
  var init_Axios = __esmMin((() => {
3100
3464
  init_utils$1();
3101
3465
  init_buildURL();
@@ -3107,7 +3471,7 @@ var init_Axios = __esmMin((() => {
3107
3471
  init_AxiosHeaders();
3108
3472
  init_transitional();
3109
3473
  validators = validator_default.validators;
3110
- Axios$1 = class {
3474
+ Axios = class {
3111
3475
  constructor(instanceConfig) {
3112
3476
  this.defaults = instanceConfig || {};
3113
3477
  this.interceptors = {
@@ -3153,19 +3517,23 @@ var init_Axios = __esmMin((() => {
3153
3517
  config = config || {};
3154
3518
  config.url = configOrUrl;
3155
3519
  } else config = configOrUrl || {};
3156
- config = mergeConfig$1(this.defaults, config);
3520
+ config = mergeConfig(this.defaults, config);
3157
3521
  const { transitional, paramsSerializer, headers } = config;
3158
3522
  if (transitional !== void 0) validator_default.assertOptions(transitional, {
3159
3523
  silentJSONParsing: validators.transitional(validators.boolean),
3160
3524
  forcedJSONParsing: validators.transitional(validators.boolean),
3161
3525
  clarifyTimeoutError: validators.transitional(validators.boolean),
3162
- legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
3526
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
3527
+ advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
3528
+ validateStatusUndefinedResolves: validators.transitional(validators.boolean)
3163
3529
  }, false);
3164
- if (paramsSerializer != null) if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
3165
- else validator_default.assertOptions(paramsSerializer, {
3166
- encode: validators.function,
3167
- serialize: validators.function
3168
- }, true);
3530
+ if (paramsSerializer != null) {
3531
+ if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
3532
+ else validator_default.assertOptions(paramsSerializer, {
3533
+ encode: validators.function,
3534
+ serialize: validators.function
3535
+ }, true);
3536
+ }
3169
3537
  if (config.allowAbsoluteUrls !== void 0) {} else if (this.defaults.allowAbsoluteUrls !== void 0) config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
3170
3538
  else config.allowAbsoluteUrls = true;
3171
3539
  validator_default.assertOptions(config, {
@@ -3186,7 +3554,7 @@ var init_Axios = __esmMin((() => {
3186
3554
  ], (method) => {
3187
3555
  delete headers[method];
3188
3556
  });
3189
- config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
3557
+ config.headers = AxiosHeaders.concat(contextHeaders, headers);
3190
3558
  const requestInterceptorChain = [];
3191
3559
  let synchronousRequestInterceptors = true;
3192
3560
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
@@ -3218,16 +3586,25 @@ var init_Axios = __esmMin((() => {
3218
3586
  const onFulfilled = requestInterceptorChain[i++];
3219
3587
  const onRejected = requestInterceptorChain[i++];
3220
3588
  try {
3221
- newConfig = onFulfilled(newConfig);
3589
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
3222
3590
  } catch (error) {
3223
- onRejected.call(this, error);
3591
+ if (!onRejected) {
3592
+ promise = Promise.reject(error);
3593
+ break;
3594
+ }
3595
+ try {
3596
+ const rejectedResult = onRejected.call(this, error);
3597
+ if (utils_default.isThenable(rejectedResult)) promise = Promise.resolve(rejectedResult).then(() => dispatchRequest.call(this, newConfig));
3598
+ } catch (rejectedError) {
3599
+ promise = Promise.reject(rejectedError);
3600
+ }
3224
3601
  break;
3225
3602
  }
3226
3603
  }
3227
- try {
3604
+ if (!promise) try {
3228
3605
  promise = dispatchRequest.call(this, newConfig);
3229
3606
  } catch (error) {
3230
- return Promise.reject(error);
3607
+ promise = Promise.reject(error);
3231
3608
  }
3232
3609
  i = 0;
3233
3610
  len = responseInterceptorChain.length;
@@ -3235,8 +3612,8 @@ var init_Axios = __esmMin((() => {
3235
3612
  return promise;
3236
3613
  }
3237
3614
  getUri(config) {
3238
- config = mergeConfig$1(this.defaults, config);
3239
- return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls), config.params, config.paramsSerializer);
3615
+ config = mergeConfig(this.defaults, config);
3616
+ return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config), config.params, config.paramsSerializer);
3240
3617
  }
3241
3618
  };
3242
3619
  utils_default.forEach([
@@ -3245,11 +3622,11 @@ var init_Axios = __esmMin((() => {
3245
3622
  "head",
3246
3623
  "options"
3247
3624
  ], function forEachMethodNoData(method) {
3248
- Axios$1.prototype[method] = function(url, config) {
3249
- return this.request(mergeConfig$1(config || {}, {
3625
+ Axios.prototype[method] = function(url, config) {
3626
+ return this.request(mergeConfig(config || {}, {
3250
3627
  method,
3251
3628
  url,
3252
- data: (config || {}).data
3629
+ data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
3253
3630
  }));
3254
3631
  };
3255
3632
  });
@@ -3261,7 +3638,7 @@ var init_Axios = __esmMin((() => {
3261
3638
  ], function forEachMethodWithData(method) {
3262
3639
  function generateHTTPMethod(isForm) {
3263
3640
  return function httpMethod(url, data, config) {
3264
- return this.request(mergeConfig$1(config || {}, {
3641
+ return this.request(mergeConfig(config || {}, {
3265
3642
  method,
3266
3643
  headers: isForm ? { "Content-Type": "multipart/form-data" } : {},
3267
3644
  url,
@@ -3269,16 +3646,16 @@ var init_Axios = __esmMin((() => {
3269
3646
  }));
3270
3647
  };
3271
3648
  }
3272
- Axios$1.prototype[method] = generateHTTPMethod();
3273
- if (method !== "query") Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
3649
+ Axios.prototype[method] = generateHTTPMethod();
3650
+ if (method !== "query") Axios.prototype[method + "Form"] = generateHTTPMethod(true);
3274
3651
  });
3275
3652
  }));
3276
3653
  //#endregion
3277
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/cancel/CancelToken.js
3278
- var CancelToken$1;
3654
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/cancel/CancelToken.js
3655
+ var CancelToken;
3279
3656
  var init_CancelToken = __esmMin((() => {
3280
3657
  init_CanceledError();
3281
- CancelToken$1 = class CancelToken$1 {
3658
+ CancelToken = class CancelToken {
3282
3659
  constructor(executor) {
3283
3660
  if (typeof executor !== "function") throw new TypeError("executor must be a function.");
3284
3661
  let resolvePromise;
@@ -3305,7 +3682,7 @@ var init_CancelToken = __esmMin((() => {
3305
3682
  };
3306
3683
  executor(function cancel(message, config, request) {
3307
3684
  if (token.reason) return;
3308
- token.reason = new CanceledError$1(message, config, request);
3685
+ token.reason = new CanceledError(message, config, request);
3309
3686
  resolvePromise(token.reason);
3310
3687
  });
3311
3688
  }
@@ -3350,7 +3727,7 @@ var init_CancelToken = __esmMin((() => {
3350
3727
  static source() {
3351
3728
  let cancel;
3352
3729
  return {
3353
- token: new CancelToken$1(function executor(c) {
3730
+ token: new CancelToken(function executor(c) {
3354
3731
  cancel = c;
3355
3732
  }),
3356
3733
  cancel
@@ -3359,7 +3736,7 @@ var init_CancelToken = __esmMin((() => {
3359
3736
  };
3360
3737
  }));
3361
3738
  //#endregion
3362
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/spread.js
3739
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/spread.js
3363
3740
  /**
3364
3741
  * Syntactic sugar for invoking a function and expanding an array for arguments.
3365
3742
  *
@@ -3381,14 +3758,14 @@ var init_CancelToken = __esmMin((() => {
3381
3758
  *
3382
3759
  * @returns {Function}
3383
3760
  */
3384
- function spread$1(callback) {
3761
+ function spread(callback) {
3385
3762
  return function wrap(arr) {
3386
3763
  return callback.apply(null, arr);
3387
3764
  };
3388
3765
  }
3389
3766
  var init_spread = __esmMin((() => {}));
3390
3767
  //#endregion
3391
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/isAxiosError.js
3768
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/isAxiosError.js
3392
3769
  /**
3393
3770
  * Determines whether the payload is an error thrown by Axios
3394
3771
  *
@@ -3396,17 +3773,17 @@ var init_spread = __esmMin((() => {}));
3396
3773
  *
3397
3774
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3398
3775
  */
3399
- function isAxiosError$1(payload) {
3776
+ function isAxiosError(payload) {
3400
3777
  return utils_default.isObject(payload) && payload.isAxiosError === true;
3401
3778
  }
3402
3779
  var init_isAxiosError = __esmMin((() => {
3403
3780
  init_utils$1();
3404
3781
  }));
3405
3782
  //#endregion
3406
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/helpers/HttpStatusCode.js
3407
- var HttpStatusCode$1;
3783
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/HttpStatusCode.js
3784
+ var HttpStatusCode;
3408
3785
  var init_HttpStatusCode = __esmMin((() => {
3409
- HttpStatusCode$1 = {
3786
+ HttpStatusCode = {
3410
3787
  Continue: 100,
3411
3788
  SwitchingProtocols: 101,
3412
3789
  Processing: 102,
@@ -3470,6 +3847,7 @@ var init_HttpStatusCode = __esmMin((() => {
3470
3847
  LoopDetected: 508,
3471
3848
  NotExtended: 510,
3472
3849
  NetworkAuthenticationRequired: 511,
3850
+ WebServerReturnsAnUnknownError: 520,
3473
3851
  WebServerIsDown: 521,
3474
3852
  ConnectionTimedOut: 522,
3475
3853
  OriginIsUnreachable: 523,
@@ -3477,12 +3855,12 @@ var init_HttpStatusCode = __esmMin((() => {
3477
3855
  SslHandshakeFailed: 525,
3478
3856
  InvalidSslCertificate: 526
3479
3857
  };
3480
- Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
3481
- HttpStatusCode$1[value] = key;
3858
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
3859
+ HttpStatusCode[value] = key;
3482
3860
  });
3483
3861
  }));
3484
3862
  //#endregion
3485
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/lib/axios.js
3863
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/axios.js
3486
3864
  /**
3487
3865
  * Create an instance of Axios
3488
3866
  *
@@ -3491,12 +3869,12 @@ var init_HttpStatusCode = __esmMin((() => {
3491
3869
  * @returns {Axios} A new instance of Axios
3492
3870
  */
3493
3871
  function createInstance(defaultConfig) {
3494
- const context = new Axios$1(defaultConfig);
3495
- const instance = bind(Axios$1.prototype.request, context);
3496
- utils_default.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
3872
+ const context = new Axios(defaultConfig);
3873
+ const instance = bind(Axios.prototype.request, context);
3874
+ utils_default.extend(instance, Axios.prototype, context, { allOwnKeys: true });
3497
3875
  utils_default.extend(instance, context, null, { allOwnKeys: true });
3498
3876
  instance.create = function create(instanceConfig) {
3499
- return createInstance(mergeConfig$1(defaultConfig, instanceConfig));
3877
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
3500
3878
  };
3501
3879
  return instance;
3502
3880
  }
@@ -3520,32 +3898,30 @@ var init_axios$1 = __esmMin((() => {
3520
3898
  init_adapters();
3521
3899
  init_HttpStatusCode();
3522
3900
  axios = createInstance(defaults);
3523
- axios.Axios = Axios$1;
3524
- axios.CanceledError = CanceledError$1;
3525
- axios.CancelToken = CancelToken$1;
3526
- axios.isCancel = isCancel$1;
3527
- axios.VERSION = VERSION$1;
3528
- axios.toFormData = toFormData$1;
3529
- axios.AxiosError = AxiosError$1;
3901
+ axios.Axios = Axios;
3902
+ axios.CanceledError = CanceledError;
3903
+ axios.CancelToken = CancelToken;
3904
+ axios.isCancel = isCancel;
3905
+ axios.VERSION = VERSION;
3906
+ axios.toFormData = toFormData;
3907
+ axios.AxiosError = AxiosError;
3530
3908
  axios.Cancel = axios.CanceledError;
3531
3909
  axios.all = function all(promises) {
3532
3910
  return Promise.all(promises);
3533
3911
  };
3534
- axios.spread = spread$1;
3535
- axios.isAxiosError = isAxiosError$1;
3536
- axios.mergeConfig = mergeConfig$1;
3537
- axios.AxiosHeaders = AxiosHeaders$1;
3912
+ axios.spread = spread;
3913
+ axios.isAxiosError = isAxiosError;
3914
+ axios.mergeConfig = mergeConfig;
3915
+ axios.AxiosHeaders = AxiosHeaders;
3538
3916
  axios.formToJSON = (thing) => formDataToJSON(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
3539
3917
  axios.getAdapter = adapters_default.getAdapter;
3540
- axios.HttpStatusCode = HttpStatusCode$1;
3918
+ axios.HttpStatusCode = HttpStatusCode;
3541
3919
  axios.default = axios;
3542
3920
  }));
3543
3921
  //#endregion
3544
- //#region node_modules/.pnpm/axios@1.16.1/node_modules/axios/index.js
3545
- var Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create;
3922
+ //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/index.js
3546
3923
  var init_axios = __esmMin((() => {
3547
3924
  init_axios$1();
3548
- ({Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create} = axios);
3549
3925
  }));
3550
3926
  //#endregion
3551
3927
  //#region src/base/config.ts
@@ -4247,13 +4623,14 @@ function setLocale(locale) {
4247
4623
  function getLocale() {
4248
4624
  return i18n.global.locale.value;
4249
4625
  }
4250
- var i18n;
4626
+ var savedLocale, i18n;
4251
4627
  var init_i18n = __esmMin((() => {
4252
4628
  init_vue_i18n();
4253
4629
  init_zh_CN();
4254
4630
  init_en_US();
4631
+ savedLocale = localStorage.getItem("aicmd-locale") || "en-US";
4255
4632
  i18n = createI18n({
4256
- locale: localStorage.getItem("aicmd-locale") || "en-US",
4633
+ locale: savedLocale,
4257
4634
  fallbackLocale: "en-US",
4258
4635
  legacy: false,
4259
4636
  messages: {
@@ -4286,17 +4663,24 @@ var init_preload_helper = __esmMin((() => {
4286
4663
  reason
4287
4664
  }))));
4288
4665
  }
4666
+ function importMetaResolve(specifier) {
4667
+ if (import.meta.resolve) return import.meta.resolve(specifier);
4668
+ return new URL(
4669
+ specifier,
4670
+ /** #__KEEP__ */
4671
+ import.meta.url
4672
+ ).href;
4673
+ }
4289
4674
  promise = allSettled(deps.map((dep) => {
4290
4675
  dep = assetsURL(dep, importerUrl);
4676
+ dep = importMetaResolve(dep);
4291
4677
  if (dep in seen) return;
4292
4678
  seen[dep] = true;
4293
4679
  const isCss = dep.endsWith(".css");
4294
- const cssSelector = isCss ? "[rel=\"stylesheet\"]" : "";
4295
- if (!!importerUrl) for (let i = links.length - 1; i >= 0; i--) {
4680
+ for (let i = links.length - 1; i >= 0; i--) {
4296
4681
  const link = links[i];
4297
4682
  if (link.href === dep && (!isCss || link.rel === "stylesheet")) return;
4298
4683
  }
4299
- else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) return;
4300
4684
  const link = document.createElement("link");
4301
4685
  link.rel = isCss ? "stylesheet" : scriptRel;
4302
4686
  if (!isCss) link.as = "script";
@@ -4353,7 +4737,7 @@ var init_router = __esmMin((() => {
4353
4737
  });
4354
4738
  }));
4355
4739
  //#endregion
4356
- //#region node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.34_typescript@5.9.3_/node_modules/pinia/dist/pinia.mjs
4740
+ //#region node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.41_typescript@5.9.3_/node_modules/pinia/dist/pinia.mjs
4357
4741
  /*!
4358
4742
  * pinia v3.0.4
4359
4743
  * (c) 2025 Eduardo San Martin Morote
@@ -4415,12 +4799,13 @@ function downloadSaveAs(blob, name = "download", opts) {
4415
4799
  a.rel = "noopener";
4416
4800
  if (typeof blob === "string") {
4417
4801
  a.href = blob;
4418
- if (a.origin !== location.origin) if (corsEnabled(a.href)) download(blob, name, opts);
4419
- else {
4420
- a.target = "_blank";
4421
- click(a);
4422
- }
4423
- else click(a);
4802
+ if (a.origin !== location.origin) {
4803
+ if (corsEnabled(a.href)) download(blob, name, opts);
4804
+ else {
4805
+ a.target = "_blank";
4806
+ click(a);
4807
+ }
4808
+ } else click(a);
4424
4809
  } else {
4425
4810
  a.href = URL.createObjectURL(blob);
4426
4811
  setTimeout(function() {
@@ -4432,16 +4817,17 @@ function downloadSaveAs(blob, name = "download", opts) {
4432
4817
  }
4433
4818
  }
4434
4819
  function msSaveAs(blob, name = "download", opts) {
4435
- if (typeof blob === "string") if (corsEnabled(blob)) download(blob, name, opts);
4436
- else {
4437
- const a = document.createElement("a");
4438
- a.href = blob;
4439
- a.target = "_blank";
4440
- setTimeout(function() {
4441
- click(a);
4442
- });
4443
- }
4444
- else navigator.msSaveOrOpenBlob(bom(blob, opts), name);
4820
+ if (typeof blob === "string") {
4821
+ if (corsEnabled(blob)) download(blob, name, opts);
4822
+ else {
4823
+ const a = document.createElement("a");
4824
+ a.href = blob;
4825
+ a.target = "_blank";
4826
+ setTimeout(function() {
4827
+ click(a);
4828
+ });
4829
+ }
4830
+ } else navigator.msSaveOrOpenBlob(bom(blob, opts), name);
4445
4831
  }
4446
4832
  function fileSaverSaveAs(blob, name, opts, popup) {
4447
4833
  popup = popup || open("", "_blank");
@@ -4549,7 +4935,8 @@ function createOptionsStore(id, options, pinia, hot) {
4549
4935
  if (!initialState && true)
4550
4936
  /* istanbul ignore if */
4551
4937
  pinia.state.value[id] = state ? state() : {};
4552
- return assign(toRefs(pinia.state.value[id]), actions, Object.keys(getters || {}).reduce((computedGetters, name) => {
4938
+ const localState = toRefs(pinia.state.value[id]);
4939
+ return assign(localState, actions, Object.keys(getters || {}).reduce((computedGetters, name) => {
4553
4940
  computedGetters[name] = markRaw(computed(() => {
4554
4941
  setActivePinia(pinia);
4555
4942
  const store = pinia._s.get(id);
@@ -4664,7 +5051,7 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
4664
5051
  wrappedAction[ACTION_NAME] = name;
4665
5052
  return wrappedAction;
4666
5053
  };
4667
- const store = reactive({
5054
+ const partialStore = {
4668
5055
  _p: pinia,
4669
5056
  $id,
4670
5057
  $onAction: addSubscription.bind(null, actionSubscriptions),
@@ -4682,15 +5069,18 @@ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore)
4682
5069
  return removeSubscription;
4683
5070
  },
4684
5071
  $dispose
4685
- });
5072
+ };
5073
+ const store = reactive(partialStore);
4686
5074
  pinia._s.set($id, store);
4687
5075
  const setupStore = (pinia._a && pinia._a.runWithContext || fallbackRunWithContext)(() => pinia._e.run(() => (scope = effectScope()).run(() => setup({ action }))));
4688
5076
  for (const key in setupStore) {
4689
5077
  const prop = setupStore[key];
4690
5078
  if (isRef(prop) && !isComputed(prop) || isReactive(prop)) {
4691
5079
  if (!isOptionsStore) {
4692
- if (initialState && shouldHydrate(prop)) if (isRef(prop)) prop.value = initialState[key];
4693
- else mergeReactiveObjects(prop, initialState[key]);
5080
+ if (initialState && shouldHydrate(prop)) {
5081
+ if (isRef(prop)) prop.value = initialState[key];
5082
+ else mergeReactiveObjects(prop, initialState[key]);
5083
+ }
4694
5084
  pinia.state.value[$id][key] = prop;
4695
5085
  }
4696
5086
  } else if (typeof prop === "function") {
@@ -4732,8 +5122,10 @@ function defineStore(id, setup, setupOptions) {
4732
5122
  pinia = pinia || (hasContext ? inject(piniaSymbol, null) : null);
4733
5123
  if (pinia) setActivePinia(pinia);
4734
5124
  pinia = activePinia;
4735
- if (!pinia._s.has(id)) if (isSetupStore) createSetupStore(id, setup, options, pinia);
4736
- else createOptionsStore(id, options, pinia);
5125
+ if (!pinia._s.has(id)) {
5126
+ if (isSetupStore) createSetupStore(id, setup, options, pinia);
5127
+ else createOptionsStore(id, options, pinia);
5128
+ }
4737
5129
  return pinia._s.get(id);
4738
5130
  }
4739
5131
  useStore.$id = id;
@@ -4767,9 +5159,9 @@ var init_pinia = __esmMin((() => {
4767
5159
  */
4768
5160
  MutationType["patchFunction"] = "patch function";
4769
5161
  })(MutationType || (MutationType = {}));
4770
- _global = /* @__PURE__ */ (() => typeof window === "object" && window.window === window ? window : typeof self === "object" && self.self === self ? self : typeof global === "object" && global.global === global ? global : typeof globalThis === "object" ? globalThis : { HTMLElement: null })();
5162
+ _global = /*#__PURE__*/ (() => typeof window === "object" && window.window === window ? window : typeof self === "object" && self.self === self ? self : typeof global === "object" && global.global === global ? global : typeof globalThis === "object" ? globalThis : { HTMLElement: null })();
4771
5163
  _navigator = typeof navigator === "object" ? navigator : { userAgent: "" };
4772
- isMacOSWebView = /* @__PURE__ */ (() => /Macintosh/.test(_navigator.userAgent) && /AppleWebKit/.test(_navigator.userAgent) && !/Safari/.test(_navigator.userAgent))();
5164
+ isMacOSWebView = /*#__PURE__*/ (() => /Macintosh/.test(_navigator.userAgent) && /AppleWebKit/.test(_navigator.userAgent) && !/Safari/.test(_navigator.userAgent))();
4773
5165
  saveAs = !IS_CLIENT ? () => {} : typeof HTMLAnchorElement !== "undefined" && "download" in HTMLAnchorElement.prototype && !isMacOSWebView ? downloadSaveAs : "msSaveOrOpenBlob" in _navigator ? msSaveAs : fileSaverSaveAs;
4774
5166
  ({assign: assign$1} = Object);
4775
5167
  noop = () => {};
@@ -4795,7 +5187,7 @@ var init_toast_vue_vue_type_script_setup_true_lang = __esmMin((() => {
4795
5187
  _hoisted_3$1 = { class: "me-auto" };
4796
5188
  _hoisted_4$1 = ["onClick"];
4797
5189
  _hoisted_5$1 = { class: "toast-body" };
4798
- toast_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
5190
+ toast_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
4799
5191
  __name: "toast",
4800
5192
  setup(__props, { expose: __expose }) {
4801
5193
  const toasts = reactive([]);
@@ -4855,7 +5247,7 @@ var init_toast$1 = __esmMin((() => {
4855
5247
  init_toast_vue_vue_type_script_setup_true_lang();
4856
5248
  init_toast_vue_vue_type_style_index_0_scoped_c107e129_lang();
4857
5249
  init__plugin_vue_export_helper();
4858
- toast_default$1 = /* @__PURE__ */ _plugin_vue_export_helper_default(toast_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c107e129"]]);
5250
+ toast_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(toast_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c107e129"]]);
4859
5251
  }));
4860
5252
  //#endregion
4861
5253
  //#region src/components/toast/index.ts
@@ -4902,7 +5294,7 @@ var init_index_vue_vue_type_script_setup_true_lang$1 = __esmMin((() => {
4902
5294
  key: 0,
4903
5295
  class: "m-3 text-primary"
4904
5296
  };
4905
- index_vue_vue_type_script_setup_true_lang_default$1 = /* @__PURE__ */ defineComponent({
5297
+ index_vue_vue_type_script_setup_true_lang_default$1 = /*@__PURE__*/ defineComponent({
4906
5298
  __name: "index",
4907
5299
  props: {
4908
5300
  isLoading: {
@@ -4935,7 +5327,7 @@ var init_loading = __esmMin((() => {
4935
5327
  init_index_vue_vue_type_script_setup_true_lang$1();
4936
5328
  init_index_vue_vue_type_style_index_0_scoped_9c56e9be_lang();
4937
5329
  init__plugin_vue_export_helper();
4938
- loading_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$1, [["__scopeId", "data-v-9c56e9be"]]);
5330
+ loading_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$1, [["__scopeId", "data-v-9c56e9be"]]);
4939
5331
  }));
4940
5332
  //#endregion
4941
5333
  //#region src/components/modal/index.vue?vue&type=script&setup=true&lang.ts
@@ -4957,7 +5349,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
4957
5349
  _hoisted_4 = { class: "d-flex align-items-center mb-3" };
4958
5350
  _hoisted_5 = { class: "flex-grow-1 text-wrap" };
4959
5351
  _hoisted_6 = { class: "modal-footer" };
4960
- index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
5352
+ index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
4961
5353
  __name: "index",
4962
5354
  props: {
4963
5355
  title: {
@@ -5137,11 +5529,11 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5137
5529
  "aria-label": "Close",
5138
5530
  onClick: cancel
5139
5531
  })], 2),
5140
- modalShow.value ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_3, [createBaseVNode("div", _hoisted_4, [typeIcon.value ? (openBlock(), createElementBlock("i", {
5532
+ modalShow.value ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock("div", _hoisted_3, [createBaseVNode("div", _hoisted_4, [typeIcon.value ? (openBlock(), createElementBlock("i", {
5141
5533
  key: 0,
5142
5534
  class: normalizeClass([typeIcon.value, "me-3 fs-1"])
5143
5535
  }, null, 2)) : createCommentVNode("", true), createBaseVNode("div", _hoisted_5, toDisplayString(dynamicContent.value), 1)])]))])) : createCommentVNode("", true),
5144
- createBaseVNode("div", _hoisted_6, [_ctx.$slots.footer ? renderSlot(_ctx.$slots, "footer", { key: 0 }, void 0, true) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [dynamicShowCancel.value || props.closeButton.show ? (openBlock(), createElementBlock("button", {
5536
+ createBaseVNode("div", _hoisted_6, [_ctx.$slots.footer ? renderSlot(_ctx.$slots, "footer", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [dynamicShowCancel.value || props.closeButton.show ? (openBlock(), createElementBlock("button", {
5145
5537
  key: 0,
5146
5538
  type: "button",
5147
5539
  class: "btn btn-secondary",
@@ -5172,7 +5564,7 @@ var init_modal$1 = __esmMin((() => {
5172
5564
  init_index_vue_vue_type_script_setup_true_lang();
5173
5565
  init_index_vue_vue_type_style_index_0_scoped_4d31732a_lang();
5174
5566
  init__plugin_vue_export_helper();
5175
- modal_default$1 = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-4d31732a"]]);
5567
+ modal_default$1 = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-4d31732a"]]);
5176
5568
  }));
5177
5569
  //#endregion
5178
5570
  //#region src/components/modal/index.ts
@@ -5196,23 +5588,25 @@ var init_modal = __esmMin((() => {
5196
5588
  open: () => globalModalInstance.show(),
5197
5589
  close: () => globalModalInstance.hide(),
5198
5590
  alert(options) {
5199
- return showModal(typeof options === "string" ? {
5591
+ const opts = typeof options === "string" ? {
5200
5592
  content: options,
5201
5593
  type: "info",
5202
5594
  showCancel: false
5203
5595
  } : {
5204
5596
  ...options,
5205
5597
  showCancel: false
5206
- });
5598
+ };
5599
+ return showModal(opts);
5207
5600
  },
5208
5601
  confirm(options) {
5209
- return showModal(typeof options === "string" ? {
5602
+ const opts = typeof options === "string" ? {
5210
5603
  content: options,
5211
5604
  type: "warning"
5212
5605
  } : {
5213
5606
  ...options,
5214
5607
  showCancel: true
5215
- });
5608
+ };
5609
+ return showModal(opts);
5216
5610
  },
5217
5611
  success(content) {
5218
5612
  return this.alert({