ywana-core8 0.2.10 → 0.2.14

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.
package/dist/index.js CHANGED
@@ -6154,7 +6154,7 @@ const Uploader = ({ icon, label, view = "area", target, accept, simultaneousUplo
6154
6154
  }
6155
6155
  return /* @__PURE__ */ React.createElement("div", { className: `uploader ${className}` }, state === UPLOAD_STATES.IDLE ? renderView() : /* @__PURE__ */ React.createElement(UploadProgress, { files }));
6156
6156
  };
6157
- const isFunction$4 = (value) => value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
6157
+ const isFunction$5 = (value) => value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
6158
6158
  const DataTable = (props) => {
6159
6159
  const { columns = [], rows = [], onRowSelection, onSort, onCheckAll, editable, outlined, expanded = false, className, emptyMessage = "No Results Found", emptyIcon = "search_off", multisort = false, filterable = false, onClearFilters } = props;
6160
6160
  const [sortDir, setSortDir] = React.useState({});
@@ -6247,7 +6247,7 @@ const DataTableRow$1 = (props) => {
6247
6247
  const infoIcon = isInfoOpen ? "expand_less" : "expand_more";
6248
6248
  let style = isInfoOpen ? "expanded" : "";
6249
6249
  if (selected) style += " selected";
6250
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("tr", { className: `${style} ${className}`, onClick: (ev) => onSelect2(row, ev) }, columns.map((column, cindex) => /* @__PURE__ */ React.createElement(DataTableCell$1, { key: `${column.id}_${cindex}`, index, row, column, cell: row[column.id], editable: editable || column.editable })), hasInfoRows ? row.info ? /* @__PURE__ */ React.createElement("td", null, /* @__PURE__ */ React.createElement(Icon, { icon: infoIcon, clickable: true, action: () => toggleInfo(!isInfoOpen) })) : /* @__PURE__ */ React.createElement("td", null) : null), row.info && isInfoOpen ? /* @__PURE__ */ React.createElement("tr", { className: "table-row-info" }, /* @__PURE__ */ React.createElement("td", { colSpan: columns.length + (hasInfoRows ? 1 : 0) }, isFunction$4(row.info) ? row.info() : row.info)) : null);
6250
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("tr", { className: `${style} ${className}`, onClick: (ev) => onSelect2(row, ev) }, columns.map((column, cindex) => /* @__PURE__ */ React.createElement(DataTableCell$1, { key: `${column.id}_${cindex}`, index, row, column, cell: row[column.id], editable: editable || column.editable })), hasInfoRows ? row.info ? /* @__PURE__ */ React.createElement("td", null, /* @__PURE__ */ React.createElement(Icon, { icon: infoIcon, clickable: true, action: () => toggleInfo(!isInfoOpen) })) : /* @__PURE__ */ React.createElement("td", null) : null), row.info && isInfoOpen ? /* @__PURE__ */ React.createElement("tr", { className: "table-row-info" }, /* @__PURE__ */ React.createElement("td", { colSpan: columns.length + (hasInfoRows ? 1 : 0) }, isFunction$5(row.info) ? row.info() : row.info)) : null);
6251
6251
  };
6252
6252
  const DataTableCell$1 = ({ index, row, column, cell, editable }) => {
6253
6253
  const render = (type2) => {
@@ -6983,7 +6983,7 @@ const exportFormats = {
6983
6983
  extension: ".xml"
6984
6984
  }
6985
6985
  };
6986
- const isFunction$3 = (value) => value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
6986
+ const isFunction$4 = (value) => value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
6987
6987
  const DataTable2 = (props) => {
6988
6988
  const {
6989
6989
  id,
@@ -7833,7 +7833,7 @@ const DataTableRow = ({
7833
7833
  const rowClasses = [
7834
7834
  "datatable2__row",
7835
7835
  isSelected && "datatable2__row--selected",
7836
- rowClassName && isFunction$3(rowClassName) ? rowClassName(row, index) : rowClassName
7836
+ rowClassName && isFunction$4(rowClassName) ? rowClassName(row, index) : rowClassName
7837
7837
  ].filter(Boolean).join(" ");
7838
7838
  return /* @__PURE__ */ React.createElement(
7839
7839
  "tr",
@@ -7953,7 +7953,7 @@ const DataTableCell = ({
7953
7953
  "datatable2__cell",
7954
7954
  editable && "datatable2__cell--editable",
7955
7955
  isEditing && "datatable2__cell--editing",
7956
- cellClassName && isFunction$3(cellClassName) ? cellClassName(column, row, value) : cellClassName
7956
+ cellClassName && isFunction$4(cellClassName) ? cellClassName(column, row, value) : cellClassName
7957
7957
  ].filter(Boolean).join(" ");
7958
7958
  const renderCellContent = () => {
7959
7959
  if (isEditing && editable) {
@@ -7985,7 +7985,7 @@ const DataTableCell = ({
7985
7985
  );
7986
7986
  }
7987
7987
  }
7988
- if (column.render && isFunction$3(column.render)) {
7988
+ if (column.render && isFunction$4(column.render)) {
7989
7989
  return column.render(value, row, column);
7990
7990
  }
7991
7991
  return /* @__PURE__ */ React.createElement(Text, null, value);
@@ -14960,7 +14960,7 @@ const SwitchExamples = () => {
14960
14960
  borderRadius: "8px",
14961
14961
  marginBottom: "2rem",
14962
14962
  border: "1px solid #e9ecef"
14963
- } }, /* @__PURE__ */ React.createElement("h3", null, "✅ Mejoras Implementadas:"), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", null, "🛡️ ", /* @__PURE__ */ React.createElement("strong", null, "Validación de props"), " - Advertencias para props incorrectas"), /* @__PURE__ */ React.createElement("li", null, "♿ ", /* @__PURE__ */ React.createElement("strong", null, "Accesibilidad completa"), " - ARIA, soporte de teclado, focus"), /* @__PURE__ */ React.createElement("li", null, "📝 ", /* @__PURE__ */ React.createElement("strong", null, "PropTypes y documentación"), " - Validación y documentación completa"), /* @__PURE__ */ React.createElement("li", null, "🎯 ", /* @__PURE__ */ React.createElement("strong", null, "Estados avanzados"), " - disabled, readOnly, error"), /* @__PURE__ */ React.createElement("li", null, "🎨 ", /* @__PURE__ */ React.createElement("strong", null, "CSS mejorado"), " - Estados visuales consistentes y responsivos"), /* @__PURE__ */ React.createElement("li", null, "⌨️ ", /* @__PURE__ */ React.createElement("strong", null, "Soporte de teclado"), " - Enter y Espacio para alternar"), /* @__PURE__ */ React.createElement("li", null, "🔧 ", /* @__PURE__ */ React.createElement("strong", null, "Manejo de errores"), " - Mensajes de error integrados"), /* @__PURE__ */ React.createElement("li", null, "📏 ", /* @__PURE__ */ React.createElement("strong", null, "Tamaños múltiples"), " - small, normal, large"), /* @__PURE__ */ React.createElement("li", null, "🎨 ", /* @__PURE__ */ React.createElement("strong", null, "Colores personalizables"), " - Integración con sistema de temas"), /* @__PURE__ */ React.createElement("li", null, "🧪 ", /* @__PURE__ */ React.createElement("strong", null, "Pruebas unitarias"), " - 17 pruebas que cubren toda la funcionalidad"))), /* @__PURE__ */ React.createElement("section", { style: { marginBottom: "2rem" } }, /* @__PURE__ */ React.createElement("h3", null, "Switch Básicos (react-switch)"), /* @__PURE__ */ React.createElement("div", { style: {
14963
+ } }, /* @__PURE__ */ React.createElement("h3", null, "✅ Mejoras Implementadas:"), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", null, "🛡️ ", /* @__PURE__ */ React.createElement("strong", null, "Validación de props"), " - Advertencias para props incorrectas"), /* @__PURE__ */ React.createElement("li", null, "♿ ", /* @__PURE__ */ React.createElement("strong", null, "Accesibilidad completa"), " - ARIA, soporte de teclado, focus"), /* @__PURE__ */ React.createElement("li", null, "📝 ", /* @__PURE__ */ React.createElement("strong", null, "PropTypes y documentación"), " - Validación y documentación completa"), /* @__PURE__ */ React.createElement("li", null, "🎯 ", /* @__PURE__ */ React.createElement("strong", null, "Estados avanzados"), " - disabled, readOnly, error"), /* @__PURE__ */ React.createElement("li", null, "🎨 ", /* @__PURE__ */ React.createElement("strong", null, "CSS mejorado"), " - Estados visuales consistentes y responsivos"), /* @__PURE__ */ React.createElement("li", null, "⌨️ ", /* @__PURE__ */ React.createElement("strong", null, "Soporte de teclado"), " - Enter y Espacio para alternar"), /* @__PURE__ */ React.createElement("li", null, "🔧 ", /* @__PURE__ */ React.createElement("strong", null, "Manejo de errores"), " - Mensajes de error integrados"), /* @__PURE__ */ React.createElement("li", null, "📏 ", /* @__PURE__ */ React.createElement("strong", null, "Tamaños múltiples"), " - small, normal, large"), /* @__PURE__ */ React.createElement("li", null, "🎨 ", /* @__PURE__ */ React.createElement("strong", null, "Colores personalizables"), " - Integración con sistema de temas"), /* @__PURE__ */ React.createElement("li", null, "🧪 ", /* @__PURE__ */ React.createElement("strong", null, "Pruebas unitarias"), " - 17 pruebas que cubren toda la funcionalidad"))), /* @__PURE__ */ React.createElement("section", { style: { marginBottom: "2rem" } }, /* @__PURE__ */ React.createElement("h3", null, "Switch Básicos"), /* @__PURE__ */ React.createElement("div", { style: {
14964
14964
  background: "#fff",
14965
14965
  padding: "1.5rem",
14966
14966
  borderRadius: "8px",
@@ -23035,7 +23035,7 @@ function deprecateSimple(name, msg) {
23035
23035
  }
23036
23036
  hooks.suppressDeprecationWarnings = false;
23037
23037
  hooks.deprecationHandler = null;
23038
- function isFunction$2(input) {
23038
+ function isFunction$3(input) {
23039
23039
  return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
23040
23040
  }
23041
23041
  function set(config) {
@@ -23043,7 +23043,7 @@ function set(config) {
23043
23043
  for (i in config) {
23044
23044
  if (hasOwnProp(config, i)) {
23045
23045
  prop = config[i];
23046
- if (isFunction$2(prop)) {
23046
+ if (isFunction$3(prop)) {
23047
23047
  this[i] = prop;
23048
23048
  } else {
23049
23049
  this["_" + i] = prop;
@@ -23106,7 +23106,7 @@ var defaultCalendar = {
23106
23106
  };
23107
23107
  function calendar(key, mom, now2) {
23108
23108
  var output = this._calendar[key] || this._calendar["sameElse"];
23109
- return isFunction$2(output) ? output.call(mom, now2) : output;
23109
+ return isFunction$3(output) ? output.call(mom, now2) : output;
23110
23110
  }
23111
23111
  function zeroFill(number, targetLength, forceSign) {
23112
23112
  var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0;
@@ -23155,7 +23155,7 @@ function makeFormatFunction(format2) {
23155
23155
  return function(mom) {
23156
23156
  var output = "", i2;
23157
23157
  for (i2 = 0; i2 < length; i2++) {
23158
- output += isFunction$2(array[i2]) ? array[i2].call(mom, format2) : array[i2];
23158
+ output += isFunction$3(array[i2]) ? array[i2].call(mom, format2) : array[i2];
23159
23159
  }
23160
23160
  return output;
23161
23161
  };
@@ -23233,11 +23233,11 @@ var defaultRelativeTime = {
23233
23233
  };
23234
23234
  function relativeTime(number, withoutSuffix, string, isFuture) {
23235
23235
  var output = this._relativeTime[string];
23236
- return isFunction$2(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
23236
+ return isFunction$3(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
23237
23237
  }
23238
23238
  function pastFuture(diff2, output) {
23239
23239
  var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
23240
- return isFunction$2(format2) ? format2(output) : format2.replace(/%s/i, output);
23240
+ return isFunction$3(format2) ? format2(output) : format2.replace(/%s/i, output);
23241
23241
  }
23242
23242
  var aliases = {
23243
23243
  D: "date",
@@ -23337,7 +23337,7 @@ function getPrioritizedUnits(unitsObj) {
23337
23337
  var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, match1to2NoLeadingZero = /^[1-9]\d?/, match1to2HasZero = /^([1-9]\d|\d)/, regexes;
23338
23338
  regexes = {};
23339
23339
  function addRegexToken(token2, regex, strictRegex) {
23340
- regexes[token2] = isFunction$2(regex) ? regex : function(isStrict, localeData2) {
23340
+ regexes[token2] = isFunction$3(regex) ? regex : function(isStrict, localeData2) {
23341
23341
  return isStrict && strictRegex ? strictRegex : regex;
23342
23342
  };
23343
23343
  }
@@ -23513,7 +23513,7 @@ function set$1(mom, unit, value) {
23513
23513
  }
23514
23514
  function stringGet(units) {
23515
23515
  units = normalizeUnits(units);
23516
- if (isFunction$2(this[units])) {
23516
+ if (isFunction$3(this[units])) {
23517
23517
  return this[units]();
23518
23518
  }
23519
23519
  return this;
@@ -23527,7 +23527,7 @@ function stringSet(units, value) {
23527
23527
  }
23528
23528
  } else {
23529
23529
  units = normalizeUnits(units);
23530
- if (isFunction$2(this[units])) {
23530
+ if (isFunction$3(this[units])) {
23531
23531
  return this[units](value);
23532
23532
  }
23533
23533
  }
@@ -25445,7 +25445,7 @@ function calendar$1(time, formats) {
25445
25445
  time = void 0;
25446
25446
  }
25447
25447
  }
25448
- var now2 = time || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction$2(formats[format2]) ? formats[format2].call(this, now2) : formats[format2]);
25448
+ var now2 = time || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction$3(formats[format2]) ? formats[format2].call(this, now2) : formats[format2]);
25449
25449
  return this.format(
25450
25450
  output || this.localeData().calendar(format2, this, createLocal(now2))
25451
25451
  );
@@ -25580,7 +25580,7 @@ function toISOString(keepOffset) {
25580
25580
  utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
25581
25581
  );
25582
25582
  }
25583
- if (isFunction$2(Date.prototype.toISOString)) {
25583
+ if (isFunction$3(Date.prototype.toISOString)) {
25584
25584
  if (utc) {
25585
25585
  return this.toDate().toISOString();
25586
25586
  } else {
@@ -27165,8 +27165,8 @@ function requireMoment() {
27165
27165
  if (hasRequiredMoment) return moment$2.exports;
27166
27166
  hasRequiredMoment = 1;
27167
27167
  (function(module2, exports2) {
27168
- (function(global2, factory) {
27169
- module2.exports = factory();
27168
+ (function(global2, factory2) {
27169
+ module2.exports = factory2();
27170
27170
  })(moment$1, (function() {
27171
27171
  var hookCallback2;
27172
27172
  function hooks2() {
@@ -31168,8 +31168,8 @@ function requireEs() {
31168
31168
  if (hasRequiredEs) return es$1.exports;
31169
31169
  hasRequiredEs = 1;
31170
31170
  (function(module2, exports2) {
31171
- (function(global2, factory) {
31172
- typeof commonjsRequire === "function" ? factory(requireMoment()) : factory(global2.moment);
31171
+ (function(global2, factory2) {
31172
+ typeof commonjsRequire === "function" ? factory2(requireMoment()) : factory2(global2.moment);
31173
31173
  })(es, (function(moment2) {
31174
31174
  //! moment.js locale configuration
31175
31175
  var monthsShortDot = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split(
@@ -32331,11 +32331,14 @@ const Window = ({
32331
32331
  height: maximized ? "calc(100% - 50px)" : size.height,
32332
32332
  // Leave space for taskbar
32333
32333
  zIndex,
32334
- display: minimized ? "none" : "block"
32334
+ // Removed display property - let CSS handle it
32335
+ ...minimized && { visibility: "hidden" }
32336
+ // Use visibility instead of display
32335
32337
  };
32336
32338
  const windowClasses = [
32337
32339
  "window",
32338
32340
  maximized && "window--maximized",
32341
+ minimized && "window--minimized",
32339
32342
  isDragging && "window--dragging",
32340
32343
  isResizing && "window--resizing",
32341
32344
  className
@@ -32966,7 +32969,7 @@ const Workspace = ({ children }) => {
32966
32969
  toolbar: window2.toolbar,
32967
32970
  statusBar: window2.statusBar
32968
32971
  },
32969
- /* @__PURE__ */ React.createElement("div", { style: { padding: "16px" } }, window2.content)
32972
+ window2.content
32970
32973
  )));
32971
32974
  };
32972
32975
  const DesktopTaskbar = () => {
@@ -33471,7 +33474,7 @@ const typeOfTest = (type2) => (thing) => typeof thing === type2;
33471
33474
  const { isArray } = Array;
33472
33475
  const isUndefined = typeOfTest("undefined");
33473
33476
  function isBuffer(val) {
33474
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
33477
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$2(val.constructor.isBuffer) && val.constructor.isBuffer(val);
33475
33478
  }
33476
33479
  const isArrayBuffer$1 = kindOfTest("ArrayBuffer");
33477
33480
  function isArrayBufferView(val) {
@@ -33484,7 +33487,7 @@ function isArrayBufferView(val) {
33484
33487
  return result;
33485
33488
  }
33486
33489
  const isString$1 = typeOfTest("string");
33487
- const isFunction$1 = typeOfTest("function");
33490
+ const isFunction$2 = typeOfTest("function");
33488
33491
  const isNumber = typeOfTest("number");
33489
33492
  const isObject = (thing) => thing !== null && typeof thing === "object";
33490
33493
  const isBoolean = (thing) => thing === true || thing === false;
@@ -33509,11 +33512,11 @@ const isDate = kindOfTest("Date");
33509
33512
  const isFile = kindOfTest("File");
33510
33513
  const isBlob = kindOfTest("Blob");
33511
33514
  const isFileList = kindOfTest("FileList");
33512
- const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
33515
+ const isStream = (val) => isObject(val) && isFunction$2(val.pipe);
33513
33516
  const isFormData = (thing) => {
33514
33517
  let kind;
33515
- return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
33516
- kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
33518
+ return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$2(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
33519
+ kind === "object" && isFunction$2(thing.toString) && thing.toString() === "[object FormData]"));
33517
33520
  };
33518
33521
  const isURLSearchParams = kindOfTest("URLSearchParams");
33519
33522
  const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
@@ -33566,7 +33569,7 @@ const _global = (() => {
33566
33569
  })();
33567
33570
  const isContextDefined = (context) => !isUndefined(context) && context !== _global;
33568
33571
  function merge() {
33569
- const { caseless } = isContextDefined(this) && this || {};
33572
+ const { caseless, skipUndefined } = isContextDefined(this) && this || {};
33570
33573
  const result = {};
33571
33574
  const assignValue = (val, key) => {
33572
33575
  const targetKey = caseless && findKey(result, key) || key;
@@ -33576,7 +33579,7 @@ function merge() {
33576
33579
  result[targetKey] = merge({}, val);
33577
33580
  } else if (isArray(val)) {
33578
33581
  result[targetKey] = val.slice();
33579
- } else {
33582
+ } else if (!skipUndefined || !isUndefined(val)) {
33580
33583
  result[targetKey] = val;
33581
33584
  }
33582
33585
  };
@@ -33587,7 +33590,7 @@ function merge() {
33587
33590
  }
33588
33591
  const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
33589
33592
  forEach$1(b, (val, key) => {
33590
- if (thisArg && isFunction$1(val)) {
33593
+ if (thisArg && isFunction$2(val)) {
33591
33594
  a[key] = bind(val, thisArg);
33592
33595
  } else {
33593
33596
  a[key] = val;
@@ -33696,11 +33699,11 @@ const reduceDescriptors = (obj, reducer) => {
33696
33699
  };
33697
33700
  const freezeMethods = (obj) => {
33698
33701
  reduceDescriptors(obj, (descriptor, name) => {
33699
- if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
33702
+ if (isFunction$2(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
33700
33703
  return false;
33701
33704
  }
33702
33705
  const value = obj[name];
33703
- if (!isFunction$1(value)) return;
33706
+ if (!isFunction$2(value)) return;
33704
33707
  descriptor.enumerable = false;
33705
33708
  if ("writable" in descriptor) {
33706
33709
  descriptor.writable = false;
@@ -33729,7 +33732,7 @@ const toFiniteNumber = (value, defaultValue) => {
33729
33732
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
33730
33733
  };
33731
33734
  function isSpecCompliantForm(thing) {
33732
- return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
33735
+ return !!(thing && isFunction$2(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
33733
33736
  }
33734
33737
  const toJSONObject = (obj) => {
33735
33738
  const stack = new Array(10);
@@ -33757,7 +33760,7 @@ const toJSONObject = (obj) => {
33757
33760
  return visit(obj, 0);
33758
33761
  };
33759
33762
  const isAsyncFn = kindOfTest("AsyncFunction");
33760
- const isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
33763
+ const isThenable = (thing) => thing && (isObject(thing) || isFunction$2(thing)) && isFunction$2(thing.then) && isFunction$2(thing.catch);
33761
33764
  const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
33762
33765
  if (setImmediateSupported) {
33763
33766
  return setImmediate;
@@ -33775,10 +33778,10 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
33775
33778
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
33776
33779
  })(
33777
33780
  typeof setImmediate === "function",
33778
- isFunction$1(_global.postMessage)
33781
+ isFunction$2(_global.postMessage)
33779
33782
  );
33780
33783
  const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
33781
- const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
33784
+ const isIterable = (thing) => thing != null && isFunction$2(thing[iterator]);
33782
33785
  const utils$1 = {
33783
33786
  isArray,
33784
33787
  isArrayBuffer: isArrayBuffer$1,
@@ -33800,7 +33803,7 @@ const utils$1 = {
33800
33803
  isFile,
33801
33804
  isBlob,
33802
33805
  isRegExp,
33803
- isFunction: isFunction$1,
33806
+ isFunction: isFunction$2,
33804
33807
  isStream,
33805
33808
  isURLSearchParams,
33806
33809
  isTypedArray,
@@ -33905,9 +33908,13 @@ AxiosError$1.from = (error, code, config, request, response, customProps) => {
33905
33908
  }, (prop) => {
33906
33909
  return prop !== "isAxiosError";
33907
33910
  });
33908
- AxiosError$1.call(axiosError, error.message, code, config, request, response);
33909
- axiosError.cause = error;
33910
- axiosError.name = error.name;
33911
+ const msg = error && error.message ? error.message : "Error";
33912
+ const errCode = code == null && error ? error.code : code;
33913
+ AxiosError$1.call(axiosError, msg, errCode, config, request, response);
33914
+ if (error && axiosError.cause == null) {
33915
+ Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
33916
+ }
33917
+ axiosError.name = error && error.name || "Error";
33911
33918
  customProps && Object.assign(axiosError, customProps);
33912
33919
  return axiosError;
33913
33920
  };
@@ -34055,7 +34062,7 @@ prototype.toString = function toString2(encoder) {
34055
34062
  }, "").join("&");
34056
34063
  };
34057
34064
  function encode(val) {
34058
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
34065
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
34059
34066
  }
34060
34067
  function buildURL(url, params, options) {
34061
34068
  if (!params) {
@@ -34311,7 +34318,7 @@ const defaults = {
34311
34318
  const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
34312
34319
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
34313
34320
  try {
34314
- return JSON.parse(data);
34321
+ return JSON.parse(data, this.parseReviver);
34315
34322
  } catch (e) {
34316
34323
  if (strictJSONParsing) {
34317
34324
  if (e.name === "SyntaxError") {
@@ -34895,13 +34902,17 @@ const resolveConfig = (config) => {
34895
34902
  "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
34896
34903
  );
34897
34904
  }
34898
- let contentType;
34899
34905
  if (utils$1.isFormData(data)) {
34900
34906
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
34901
34907
  headers.setContentType(void 0);
34902
- } else if ((contentType = headers.getContentType()) !== false) {
34903
- const [type2, ...tokens2] = contentType ? contentType.split(";").map((token2) => token2.trim()).filter(Boolean) : [];
34904
- headers.setContentType([type2 || "multipart/form-data", ...tokens2].join("; "));
34908
+ } else if (utils$1.isFunction(data.getHeaders)) {
34909
+ const formHeaders = data.getHeaders();
34910
+ const allowedHeaders = ["content-type", "content-length"];
34911
+ Object.entries(formHeaders).forEach(([key, val]) => {
34912
+ if (allowedHeaders.includes(key.toLowerCase())) {
34913
+ headers.set(key, val);
34914
+ }
34915
+ });
34905
34916
  }
34906
34917
  }
34907
34918
  if (platform.hasStandardBrowserEnv) {
@@ -34979,8 +34990,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
34979
34990
  reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
34980
34991
  request = null;
34981
34992
  };
34982
- request.onerror = function handleError() {
34983
- reject(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request));
34993
+ request.onerror = function handleError(event) {
34994
+ const msg = event && event.message ? event.message : "Network Error";
34995
+ const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
34996
+ err.event = event || null;
34997
+ reject(err);
34984
34998
  request = null;
34985
34999
  };
34986
35000
  request.ontimeout = function handleTimeout() {
@@ -35148,9 +35162,16 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
35148
35162
  highWaterMark: 2
35149
35163
  });
35150
35164
  };
35151
- const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
35152
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
35153
- const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
35165
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
35166
+ const { isFunction: isFunction$1 } = utils$1;
35167
+ const globalFetchAPI = (({ Request, Response }) => ({
35168
+ Request,
35169
+ Response
35170
+ }))(utils$1.global);
35171
+ const {
35172
+ ReadableStream: ReadableStream$1,
35173
+ TextEncoder
35174
+ } = utils$1.global;
35154
35175
  const test = (fn, ...args) => {
35155
35176
  try {
35156
35177
  return !!fn(...args);
@@ -35158,162 +35179,202 @@ const test = (fn, ...args) => {
35158
35179
  return false;
35159
35180
  }
35160
35181
  };
35161
- const supportsRequestStream = isReadableStreamSupported && test(() => {
35162
- let duplexAccessed = false;
35163
- const hasContentType = new Request(platform.origin, {
35164
- body: new ReadableStream(),
35165
- method: "POST",
35166
- get duplex() {
35167
- duplexAccessed = true;
35168
- return "half";
35169
- }
35170
- }).headers.has("Content-Type");
35171
- return duplexAccessed && !hasContentType;
35172
- });
35173
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
35174
- const supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
35175
- const resolvers = {
35176
- stream: supportsResponseStream && ((res) => res.body)
35177
- };
35178
- isFetchSupported && ((res) => {
35179
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
35180
- !resolvers[type2] && (resolvers[type2] = utils$1.isFunction(res[type2]) ? (res2) => res2[type2]() : (_, config) => {
35181
- throw new AxiosError$1(`Response type '${type2}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
35182
- });
35183
- });
35184
- })(new Response());
35185
- const getBodyLength = async (body) => {
35186
- if (body == null) {
35187
- return 0;
35188
- }
35189
- if (utils$1.isBlob(body)) {
35190
- return body.size;
35182
+ const factory = (env) => {
35183
+ env = utils$1.merge.call({
35184
+ skipUndefined: true
35185
+ }, globalFetchAPI, env);
35186
+ const { fetch: envFetch, Request, Response } = env;
35187
+ const isFetchSupported = envFetch ? isFunction$1(envFetch) : typeof fetch === "function";
35188
+ const isRequestSupported = isFunction$1(Request);
35189
+ const isResponseSupported = isFunction$1(Response);
35190
+ if (!isFetchSupported) {
35191
+ return false;
35191
35192
  }
35192
- if (utils$1.isSpecCompliantForm(body)) {
35193
- const _request = new Request(platform.origin, {
35193
+ const isReadableStreamSupported = isFetchSupported && isFunction$1(ReadableStream$1);
35194
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
35195
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
35196
+ let duplexAccessed = false;
35197
+ const hasContentType = new Request(platform.origin, {
35198
+ body: new ReadableStream$1(),
35194
35199
  method: "POST",
35195
- body
35196
- });
35197
- return (await _request.arrayBuffer()).byteLength;
35198
- }
35199
- if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
35200
- return body.byteLength;
35201
- }
35202
- if (utils$1.isURLSearchParams(body)) {
35203
- body = body + "";
35204
- }
35205
- if (utils$1.isString(body)) {
35206
- return (await encodeText(body)).byteLength;
35207
- }
35208
- };
35209
- const resolveBodyLength = async (headers, body) => {
35210
- const length = utils$1.toFiniteNumber(headers.getContentLength());
35211
- return length == null ? getBodyLength(body) : length;
35212
- };
35213
- const fetchAdapter = isFetchSupported && (async (config) => {
35214
- let {
35215
- url,
35216
- method,
35217
- data,
35218
- signal,
35219
- cancelToken,
35220
- timeout,
35221
- onDownloadProgress,
35222
- onUploadProgress,
35223
- responseType,
35224
- headers,
35225
- withCredentials = "same-origin",
35226
- fetchOptions
35227
- } = resolveConfig(config);
35228
- responseType = responseType ? (responseType + "").toLowerCase() : "text";
35229
- let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
35230
- let request;
35231
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
35232
- composedSignal.unsubscribe();
35200
+ get duplex() {
35201
+ duplexAccessed = true;
35202
+ return "half";
35203
+ }
35204
+ }).headers.has("Content-Type");
35205
+ return duplexAccessed && !hasContentType;
35233
35206
  });
35234
- let requestContentLength;
35235
- try {
35236
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
35237
- let _request = new Request(url, {
35238
- method: "POST",
35239
- body: data,
35240
- duplex: "half"
35207
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
35208
+ const resolvers = {
35209
+ stream: supportsResponseStream && ((res) => res.body)
35210
+ };
35211
+ isFetchSupported && (() => {
35212
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
35213
+ !resolvers[type2] && (resolvers[type2] = (res, config) => {
35214
+ let method = res && res[type2];
35215
+ if (method) {
35216
+ return method.call(res);
35217
+ }
35218
+ throw new AxiosError$1(`Response type '${type2}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
35241
35219
  });
35242
- let contentTypeHeader;
35243
- if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
35244
- headers.setContentType(contentTypeHeader);
35245
- }
35246
- if (_request.body) {
35247
- const [onProgress, flush] = progressEventDecorator(
35248
- requestContentLength,
35249
- progressEventReducer(asyncDecorator(onUploadProgress))
35250
- );
35251
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
35252
- }
35220
+ });
35221
+ })();
35222
+ const getBodyLength = async (body) => {
35223
+ if (body == null) {
35224
+ return 0;
35253
35225
  }
35254
- if (!utils$1.isString(withCredentials)) {
35255
- withCredentials = withCredentials ? "include" : "omit";
35226
+ if (utils$1.isBlob(body)) {
35227
+ return body.size;
35256
35228
  }
35257
- const isCredentialsSupported = "credentials" in Request.prototype;
35258
- request = new Request(url, {
35259
- ...fetchOptions,
35260
- signal: composedSignal,
35261
- method: method.toUpperCase(),
35262
- headers: headers.normalize().toJSON(),
35263
- body: data,
35264
- duplex: "half",
35265
- credentials: isCredentialsSupported ? withCredentials : void 0
35266
- });
35267
- let response = await fetch(request, fetchOptions);
35268
- const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
35269
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
35270
- const options = {};
35271
- ["status", "statusText", "headers"].forEach((prop) => {
35272
- options[prop] = response[prop];
35229
+ if (utils$1.isSpecCompliantForm(body)) {
35230
+ const _request = new Request(platform.origin, {
35231
+ method: "POST",
35232
+ body
35273
35233
  });
35274
- const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
35275
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
35276
- responseContentLength,
35277
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
35278
- ) || [];
35279
- response = new Response(
35280
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
35281
- flush && flush();
35282
- unsubscribe && unsubscribe();
35283
- }),
35284
- options
35285
- );
35234
+ return (await _request.arrayBuffer()).byteLength;
35286
35235
  }
35287
- responseType = responseType || "text";
35288
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
35289
- !isStreamResponse && unsubscribe && unsubscribe();
35290
- return await new Promise((resolve, reject) => {
35291
- settle(resolve, reject, {
35292
- data: responseData,
35293
- headers: AxiosHeaders$1.from(response.headers),
35294
- status: response.status,
35295
- statusText: response.statusText,
35296
- config,
35297
- request
35298
- });
35236
+ if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
35237
+ return body.byteLength;
35238
+ }
35239
+ if (utils$1.isURLSearchParams(body)) {
35240
+ body = body + "";
35241
+ }
35242
+ if (utils$1.isString(body)) {
35243
+ return (await encodeText(body)).byteLength;
35244
+ }
35245
+ };
35246
+ const resolveBodyLength = async (headers, body) => {
35247
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
35248
+ return length == null ? getBodyLength(body) : length;
35249
+ };
35250
+ return async (config) => {
35251
+ let {
35252
+ url,
35253
+ method,
35254
+ data,
35255
+ signal,
35256
+ cancelToken,
35257
+ timeout,
35258
+ onDownloadProgress,
35259
+ onUploadProgress,
35260
+ responseType,
35261
+ headers,
35262
+ withCredentials = "same-origin",
35263
+ fetchOptions
35264
+ } = resolveConfig(config);
35265
+ let _fetch = envFetch || fetch;
35266
+ responseType = responseType ? (responseType + "").toLowerCase() : "text";
35267
+ let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
35268
+ let request = null;
35269
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
35270
+ composedSignal.unsubscribe();
35299
35271
  });
35300
- } catch (err) {
35301
- unsubscribe && unsubscribe();
35302
- if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
35303
- throw Object.assign(
35304
- new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
35305
- {
35306
- cause: err.cause || err
35272
+ let requestContentLength;
35273
+ try {
35274
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
35275
+ let _request = new Request(url, {
35276
+ method: "POST",
35277
+ body: data,
35278
+ duplex: "half"
35279
+ });
35280
+ let contentTypeHeader;
35281
+ if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
35282
+ headers.setContentType(contentTypeHeader);
35283
+ }
35284
+ if (_request.body) {
35285
+ const [onProgress, flush] = progressEventDecorator(
35286
+ requestContentLength,
35287
+ progressEventReducer(asyncDecorator(onUploadProgress))
35288
+ );
35289
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
35307
35290
  }
35308
- );
35291
+ }
35292
+ if (!utils$1.isString(withCredentials)) {
35293
+ withCredentials = withCredentials ? "include" : "omit";
35294
+ }
35295
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
35296
+ const resolvedOptions = {
35297
+ ...fetchOptions,
35298
+ signal: composedSignal,
35299
+ method: method.toUpperCase(),
35300
+ headers: headers.normalize().toJSON(),
35301
+ body: data,
35302
+ duplex: "half",
35303
+ credentials: isCredentialsSupported ? withCredentials : void 0
35304
+ };
35305
+ request = isRequestSupported && new Request(url, resolvedOptions);
35306
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
35307
+ const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
35308
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
35309
+ const options = {};
35310
+ ["status", "statusText", "headers"].forEach((prop) => {
35311
+ options[prop] = response[prop];
35312
+ });
35313
+ const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
35314
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
35315
+ responseContentLength,
35316
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
35317
+ ) || [];
35318
+ response = new Response(
35319
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
35320
+ flush && flush();
35321
+ unsubscribe && unsubscribe();
35322
+ }),
35323
+ options
35324
+ );
35325
+ }
35326
+ responseType = responseType || "text";
35327
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
35328
+ !isStreamResponse && unsubscribe && unsubscribe();
35329
+ return await new Promise((resolve, reject) => {
35330
+ settle(resolve, reject, {
35331
+ data: responseData,
35332
+ headers: AxiosHeaders$1.from(response.headers),
35333
+ status: response.status,
35334
+ statusText: response.statusText,
35335
+ config,
35336
+ request
35337
+ });
35338
+ });
35339
+ } catch (err) {
35340
+ unsubscribe && unsubscribe();
35341
+ if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
35342
+ throw Object.assign(
35343
+ new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
35344
+ {
35345
+ cause: err.cause || err
35346
+ }
35347
+ );
35348
+ }
35349
+ throw AxiosError$1.from(err, err && err.code, config, request);
35309
35350
  }
35310
- throw AxiosError$1.from(err, err && err.code, config, request);
35351
+ };
35352
+ };
35353
+ const seedCache = /* @__PURE__ */ new Map();
35354
+ const getFetch = (config) => {
35355
+ let env = config ? config.env : {};
35356
+ const { fetch: fetch2, Request, Response } = env;
35357
+ const seeds = [
35358
+ Request,
35359
+ Response,
35360
+ fetch2
35361
+ ];
35362
+ let len = seeds.length, i = len, seed, target, map2 = seedCache;
35363
+ while (i--) {
35364
+ seed = seeds[i];
35365
+ target = map2.get(seed);
35366
+ target === void 0 && map2.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
35367
+ map2 = target;
35311
35368
  }
35312
- });
35369
+ return target;
35370
+ };
35371
+ getFetch();
35313
35372
  const knownAdapters = {
35314
35373
  http: httpAdapter,
35315
35374
  xhr: xhrAdapter,
35316
- fetch: fetchAdapter
35375
+ fetch: {
35376
+ get: getFetch
35377
+ }
35317
35378
  };
35318
35379
  utils$1.forEach(knownAdapters, (fn, value) => {
35319
35380
  if (fn) {
@@ -35327,7 +35388,7 @@ utils$1.forEach(knownAdapters, (fn, value) => {
35327
35388
  const renderReason = (reason) => `- ${reason}`;
35328
35389
  const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
35329
35390
  const adapters = {
35330
- getAdapter: (adapters2) => {
35391
+ getAdapter: (adapters2, config) => {
35331
35392
  adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
35332
35393
  const { length } = adapters2;
35333
35394
  let nameOrAdapter;
@@ -35343,7 +35404,7 @@ const adapters = {
35343
35404
  throw new AxiosError$1(`Unknown adapter '${id}'`);
35344
35405
  }
35345
35406
  }
35346
- if (adapter) {
35407
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
35347
35408
  break;
35348
35409
  }
35349
35410
  rejectedReasons[id || "#" + i] = adapter;
@@ -35380,7 +35441,7 @@ function dispatchRequest(config) {
35380
35441
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
35381
35442
  config.headers.setContentType("application/x-www-form-urlencoded", false);
35382
35443
  }
35383
- const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
35444
+ const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
35384
35445
  return adapter(config).then(function onAdapterResolution(response) {
35385
35446
  throwIfCancellationRequested(config);
35386
35447
  response.data = transformData.call(
@@ -35405,7 +35466,7 @@ function dispatchRequest(config) {
35405
35466
  return Promise.reject(reason);
35406
35467
  });
35407
35468
  }
35408
- const VERSION$1 = "1.11.0";
35469
+ const VERSION$1 = "1.12.2";
35409
35470
  const validators$1 = {};
35410
35471
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type2, i) => {
35411
35472
  validators$1[type2] = function validator2(thing) {
@@ -35584,7 +35645,6 @@ let Axios$1 = class Axios {
35584
35645
  }
35585
35646
  len = requestInterceptorChain.length;
35586
35647
  let newConfig = config;
35587
- i = 0;
35588
35648
  while (i < len) {
35589
35649
  const onFulfilled = requestInterceptorChain[i++];
35590
35650
  const onRejected = requestInterceptorChain[i++];