@ohif/app 3.14.0-beta.39 → 3.14.0-beta.40

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- (globalThis["rspackChunk_ohif_app"] ||= []).push([[3089], {
3
- 85368(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
2
+ (globalThis["rspackChunk_ohif_app"] ||= []).push([[6851], {
3
+ 31214(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
4
4
 
5
5
  // EXPORTS
6
6
  __webpack_require__.d(__webpack_exports__, {
@@ -54,12 +54,65 @@ const utils_hasOwnProperty = (
54
54
  hasOwnProperty.call(obj, prop)
55
55
  )(Object.prototype);
56
56
 
57
+ const isUnsafeObjectKey = (prop) =>
58
+ typeof prop === 'string' &&
59
+ (prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
60
+
61
+ /**
62
+ * Determine whether an inherited object must be treated as a shared-prototype
63
+ * boundary. Cross-realm Object.prototype objects cannot be distinguished
64
+ * reliably from application-created null-prototype objects because their
65
+ * properties are mutable, so all inherited terminal prototypes are excluded
66
+ * as a fail-closed boundary. A null-prototype source still keeps its own
67
+ * properties, as produced by mergeConfig and other safe materialization paths.
68
+ *
69
+ * @param {*} obj The object to inspect
70
+ * @param {*} prototype The object's prototype
71
+ * @param {boolean} source Whether obj is the original traversal source
72
+ *
73
+ * @returns {boolean} True when obj is a safe prototype traversal boundary
74
+ */
75
+ const isPrototypeBoundary = (obj, prototype, source) =>
76
+ obj === Object.prototype || (!source && prototype === null);
77
+
78
+ /**
79
+ * Determine whether an object can retain its identity through code paths that
80
+ * add, replace, and remove config properties without bypassing unsafe-key
81
+ * filtering. Immutable objects, unsafe-key-bearing objects, and objects with
82
+ * accessor or restricted data properties must be materialized instead.
83
+ *
84
+ * @param {*} obj The object to inspect
85
+ *
86
+ * @returns {boolean} True when every own property is safe and fully mutable
87
+ */
88
+ const isSafeAndFullyMutable = (obj) => {
89
+ if (!Object.isExtensible(obj)) {
90
+ return false;
91
+ }
92
+
93
+ const props = Object.getOwnPropertyNames(obj);
94
+
95
+ if (Object.getOwnPropertySymbols) {
96
+ props.push(...Object.getOwnPropertySymbols(obj));
97
+ }
98
+
99
+ return props.every((prop) => {
100
+ if (isUnsafeObjectKey(prop)) {
101
+ return false;
102
+ }
103
+
104
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
105
+
106
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
107
+ });
108
+ };
109
+
57
110
  /**
58
- * Walk the prototype chain (excluding the shared Object.prototype) looking for
59
- * an own `prop`. This distinguishes genuine own/inherited members — including
60
- * class accessors and template prototypes — from members injected via
61
- * Object.prototype pollution (e.g. `Object.prototype.username = '...'`), which
62
- * live on Object.prototype itself and are therefore never matched.
111
+ * Walk the prototype chain (excluding the source realm's Object.prototype)
112
+ * looking for an own `prop`. This distinguishes genuine own/inherited members
113
+ * — including class accessors and template prototypes — from members injected
114
+ * via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
115
+ * which live on Object.prototype itself and are therefore never matched.
63
116
  *
64
117
  * @param {*} thing The value whose chain to inspect
65
118
  * @param {string|symbol} prop The property key to look for
@@ -70,16 +123,22 @@ const hasOwnInPrototypeChain = (thing, prop) => {
70
123
  let obj = thing;
71
124
  const seen = [];
72
125
 
73
- while (obj != null && obj !== Object.prototype) {
126
+ while (obj != null) {
74
127
  if (seen.indexOf(obj) !== -1) {
75
128
  return false;
76
129
  }
77
130
  seen.push(obj);
78
131
 
132
+ const prototype = getPrototypeOf(obj);
133
+
134
+ if (isPrototypeBoundary(obj, prototype, obj === thing)) {
135
+ return false;
136
+ }
137
+
79
138
  if (utils_hasOwnProperty(obj, prop)) {
80
139
  return true;
81
140
  }
82
- obj = getPrototypeOf(obj);
141
+ obj = prototype;
83
142
  }
84
143
  return false;
85
144
  };
@@ -98,6 +157,69 @@ const hasOwnInPrototypeChain = (thing, prop) => {
98
157
  const getSafeProp = (obj, prop) =>
99
158
  obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
100
159
 
160
+ /**
161
+ * Flatten an object and its application-defined prototype chain into a
162
+ * null-prototype object. Members inherited only from the source realm's
163
+ * Object.prototype are deliberately excluded, while class/template members
164
+ * below that boundary are preserved.
165
+ *
166
+ * @param {*} thing The value to flatten
167
+ *
168
+ * @returns {*} A null-prototype copy, or the original value when it is already
169
+ * structurally safe or is not an object
170
+ */
171
+ const toSafeFlatObject = (thing) => {
172
+ if (thing == null || (typeof thing !== 'object' && typeof thing !== 'function')) {
173
+ return thing;
174
+ }
175
+
176
+ const sourcePrototype = getPrototypeOf(thing);
177
+
178
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
179
+ return thing;
180
+ }
181
+
182
+ const result = Object.create(null);
183
+ const merged = Object.create(null);
184
+ const seen = [];
185
+ let current = thing;
186
+
187
+ while (current != null) {
188
+ if (seen.indexOf(current) !== -1) {
189
+ break;
190
+ }
191
+
192
+ seen.push(current);
193
+
194
+ const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
195
+
196
+ if (isPrototypeBoundary(current, prototype, current === thing)) {
197
+ break;
198
+ }
199
+
200
+ const props = Object.getOwnPropertyNames(current);
201
+
202
+ if (Object.getOwnPropertySymbols) {
203
+ props.push(...Object.getOwnPropertySymbols(current));
204
+ }
205
+
206
+ for (const prop of props) {
207
+ if (isUnsafeObjectKey(prop)) {
208
+ continue;
209
+ }
210
+
211
+ if (!utils_hasOwnProperty(merged, prop)) {
212
+ result[prop] = thing[prop];
213
+ merged[prop] = true;
214
+ }
215
+ }
216
+
217
+ current = prototype;
218
+ }
219
+
220
+ return result;
221
+ };
222
+
101
223
  const kindOf = ((cache) => (thing) => {
102
224
  const str = utils_toString.call(thing);
103
225
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -229,12 +351,10 @@ const isPlainObject = (val) => {
229
351
 
230
352
  const prototype = getPrototypeOf(val);
231
353
  return (
232
- (prototype === null ||
233
- prototype === Object.prototype ||
234
- getPrototypeOf(prototype) === null) &&
235
- // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
236
- // Symbol.iterator as evidence the value is a tagged/iterable type rather
237
- // than a plain object, while ignoring keys injected onto Object.prototype.
354
+ (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
355
+ // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
356
+ // evidence the value is tagged/iterable, while ignoring members reachable
357
+ // only through shared or terminal prototype boundaries.
238
358
  !hasOwnInPrototypeChain(val, toStringTag) &&
239
359
  !hasOwnInPrototypeChain(val, utils_iterator)
240
360
  );
@@ -321,6 +441,7 @@ const isBlob = kindOfTest('Blob');
321
441
  * @returns {boolean} True if value is a FileList, otherwise false
322
442
  */
323
443
  const utils_isFileList = kindOfTest('FileList');
444
+ const isSet = kindOfTest('Set');
324
445
 
325
446
  /**
326
447
  * Determine if a value is a Stream
@@ -886,12 +1007,23 @@ const toJSONObject = (obj) => {
886
1007
  if (!('toJSON' in source)) {
887
1008
  // add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).
888
1009
  visited.add(source);
889
- const target = isArray(source) ? [] : {};
890
1010
 
891
- forEach(source, (value, key) => {
892
- const reducedValue = visit(value);
893
- !isUndefined(reducedValue) && (target[key] = reducedValue);
894
- });
1011
+ let target;
1012
+
1013
+ if (isSet(source)) {
1014
+ target = [];
1015
+ for (const value of source) {
1016
+ const reducedValue = visit(value);
1017
+ !isUndefined(reducedValue) && target.push(reducedValue);
1018
+ }
1019
+ } else {
1020
+ target = isArray(source) ? [] : {};
1021
+
1022
+ forEach(source, (value, key) => {
1023
+ const reducedValue = visit(value);
1024
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
1025
+ });
1026
+ }
895
1027
 
896
1028
  visited.delete(source);
897
1029
 
@@ -1036,6 +1168,7 @@ const isSafeIterable = (thing) =>
1036
1168
  hasOwnProp: utils_hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
1037
1169
  hasOwnInPrototypeChain,
1038
1170
  getSafeProp,
1171
+ toSafeFlatObject,
1039
1172
  reduceDescriptors,
1040
1173
  freezeMethods,
1041
1174
  toObjectSet,
@@ -1108,18 +1241,20 @@ const ignoreDuplicateOf = utils.toObjectSet([
1108
1241
  key = line.substring(0, i).trim().toLowerCase();
1109
1242
  val = line.substring(i + 1).trim();
1110
1243
 
1111
- if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1244
+ const hasKey = utils.hasOwnProp(parsed, key);
1245
+
1246
+ if (!key || (hasKey && utils.hasOwnProp(ignoreDuplicateOf, key))) {
1112
1247
  return;
1113
1248
  }
1114
1249
 
1115
1250
  if (key === 'set-cookie') {
1116
- if (parsed[key]) {
1251
+ if (hasKey) {
1117
1252
  parsed[key].push(val);
1118
1253
  } else {
1119
1254
  parsed[key] = [val];
1120
1255
  }
1121
1256
  } else {
1122
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1257
+ parsed[key] = hasKey ? parsed[key] + ', ' + val : val;
1123
1258
  }
1124
1259
  });
1125
1260
 
@@ -1221,6 +1356,124 @@ function parseTokens(str) {
1221
1356
  return tokens;
1222
1357
  }
1223
1358
 
1359
+ const parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
1360
+
1361
+ function trimOWS(value) {
1362
+ let start = 0;
1363
+ let end = value.length;
1364
+
1365
+ while (start < end) {
1366
+ const code = value.charCodeAt(start);
1367
+
1368
+ if (code !== 0x09 && code !== 0x20) {
1369
+ break;
1370
+ }
1371
+
1372
+ start += 1;
1373
+ }
1374
+
1375
+ while (end > start) {
1376
+ const code = value.charCodeAt(end - 1);
1377
+
1378
+ if (code !== 0x09 && code !== 0x20) {
1379
+ break;
1380
+ }
1381
+
1382
+ end -= 1;
1383
+ }
1384
+
1385
+ return start === 0 && end === value.length ? value : value.slice(start, end);
1386
+ }
1387
+
1388
+ function decodeQuotedString(value) {
1389
+ const last = value.length - 1;
1390
+
1391
+ if (last < 1 || value.charCodeAt(0) !== 0x22 || value.charCodeAt(last) !== 0x22) {
1392
+ return value;
1393
+ }
1394
+
1395
+ let decoded = '';
1396
+
1397
+ for (let i = 1; i < last; i++) {
1398
+ const code = value.charCodeAt(i);
1399
+
1400
+ if (code === 0x22) {
1401
+ return value;
1402
+ }
1403
+
1404
+ if (code === 0x5c) {
1405
+ i += 1;
1406
+
1407
+ if (i >= last) {
1408
+ return value;
1409
+ }
1410
+ }
1411
+
1412
+ decoded += value[i];
1413
+ }
1414
+
1415
+ return decoded;
1416
+ }
1417
+
1418
+ function parseParameters(value) {
1419
+ const parameters = Object.create(null);
1420
+ const str = String(value);
1421
+ let start = 0;
1422
+ let quoted = false;
1423
+ let escaped = false;
1424
+
1425
+ function parseParameter(end) {
1426
+ const part = trimOWS(str.slice(start, end));
1427
+ const equals = part.indexOf('=');
1428
+
1429
+ if (equals < 1) {
1430
+ return;
1431
+ }
1432
+
1433
+ const name = trimOWS(part.slice(0, equals));
1434
+
1435
+ if (!parameterNameRE.test(name)) {
1436
+ return;
1437
+ }
1438
+
1439
+ const normalizedName = name.toLowerCase();
1440
+
1441
+ if (
1442
+ normalizedName === '__proto__' ||
1443
+ normalizedName === 'constructor' ||
1444
+ normalizedName === 'prototype'
1445
+ ) {
1446
+ return;
1447
+ }
1448
+
1449
+ const parameterValue = trimOWS(part.slice(equals + 1));
1450
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
1451
+ }
1452
+
1453
+ for (let i = 0; i < str.length; i++) {
1454
+ const code = str.charCodeAt(i);
1455
+
1456
+ if (quoted) {
1457
+ if (escaped) {
1458
+ escaped = false;
1459
+ } else if (code === 0x5c) {
1460
+ escaped = true;
1461
+ } else if (code === 0x22) {
1462
+ quoted = false;
1463
+ }
1464
+ } else if (code === 0x22) {
1465
+ quoted = true;
1466
+ } else if (code === 0x2c || code === 0x3b) {
1467
+ parseParameter(i);
1468
+ start = i + 1;
1469
+ }
1470
+ }
1471
+
1472
+ parseParameter(str.length);
1473
+
1474
+ return parameters;
1475
+ }
1476
+
1224
1477
  const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1225
1478
 
1226
1479
  function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
@@ -1472,7 +1725,8 @@ class AxiosHeaders {
1472
1725
  }
1473
1726
 
1474
1727
  getSetCookie() {
1475
- return this.get('set-cookie') || [];
1728
+ const value = this.get('set-cookie');
1729
+ return utils.isArray(value) ? value : value == null || value === false ? [] : [value];
1476
1730
  }
1477
1731
 
1478
1732
  get [Symbol.toStringTag]() {
@@ -1483,6 +1737,10 @@ class AxiosHeaders {
1483
1737
  return thing instanceof this ? thing : new this(thing);
1484
1738
  }
1485
1739
 
1740
+ static parseParameters(value) {
1741
+ return parseParameters(value);
1742
+ }
1743
+
1486
1744
  static concat(first, ...targets) {
1487
1745
  const computed = new this(first);
1488
1746
 
@@ -1616,9 +1874,40 @@ function redactConfig(config, redactKeys) {
1616
1874
  return visit(config);
1617
1875
  }
1618
1876
 
1877
+ function stringifySafely(value) {
1878
+ try {
1879
+ return String(value);
1880
+ } catch (err) {
1881
+ return '';
1882
+ }
1883
+ }
1884
+
1885
+ function aggregateErrorMessage(error) {
1886
+ const message = error.errors
1887
+ .map((entry) => {
1888
+ try {
1889
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
1890
+ } catch (err) {
1891
+ return '';
1892
+ }
1893
+ })
1894
+ .filter(Boolean)
1895
+ .join('; ');
1896
+
1897
+ return message || error.name || 'AggregateError';
1898
+ }
1899
+
1619
1900
  class AxiosError extends Error {
1620
1901
  static from(error, code, config, request, response, customProps) {
1621
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
1902
+ // `AggregateError` (thrown by Node on dual-stack/Happy-Eyeballs connection
1903
+ // failures) has an empty `message`; its detail lives in `errors[]`. Without
1904
+ // this, the wrapped error surfaces with a blank message (see #6721).
1905
+ let message = error.message;
1906
+ if (!message && utils.isArray(error.errors) && error.errors.length) {
1907
+ message = aggregateErrorMessage(error);
1908
+ }
1909
+
1910
+ const axiosError = new AxiosError(message, code || error.code, config, request, response);
1622
1911
  // Match native `Error` `cause` semantics: non-enumerable. The wrapped
1623
1912
  // error often carries circular internals (sockets, requests, agents), so
1624
1913
  // an enumerable `cause` makes structured loggers (pino/winston) and any
@@ -1736,7 +2025,6 @@ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
1736
2025
  /* export default */ var helpers_null = (null);
1737
2026
 
1738
2027
  ;// CONCATENATED MODULE: ../../node_modules/axios/lib/helpers/toFormData.js
1739
- /* provided dependency */ var Buffer = __webpack_require__(1048).hp;
1740
2028
 
1741
2029
 
1742
2030
 
@@ -1744,6 +2032,7 @@ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
1744
2032
  // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
1745
2033
 
1746
2034
 
2035
+
1747
2036
  // Default nesting limit shared with the inverse transform (formDataToJSON) so
1748
2037
  // the FormData <-> JSON round-trip stays symmetric.
1749
2038
  const DEFAULT_FORM_DATA_MAX_DEPTH = 100;
@@ -1837,28 +2126,18 @@ function toFormData(obj, formData, options) {
1837
2126
  // eslint-disable-next-line no-param-reassign
1838
2127
  formData = formData || new ((/* inlined export ["default"] */null) || FormData)();
1839
2128
 
1840
- // eslint-disable-next-line no-param-reassign
1841
- options = utils.toFlatObject(
1842
- options,
1843
- {
1844
- metaTokens: true,
1845
- dots: false,
1846
- indexes: false,
1847
- },
1848
- false,
1849
- function defined(option, source) {
1850
- // eslint-disable-next-line no-eq-null,eqeqeq
1851
- return !utils.isUndefined(source[option]);
1852
- }
1853
- );
2129
+ const option = (name, fallback) => {
2130
+ const value = utils.getSafeProp(options, name);
2131
+ return utils.isUndefined(value) ? fallback : value;
2132
+ };
1854
2133
 
1855
- const metaTokens = options.metaTokens;
2134
+ const metaTokens = option('metaTokens', true);
1856
2135
  // eslint-disable-next-line no-use-before-define
1857
- const visitor = options.visitor || defaultVisitor;
1858
- const dots = options.dots;
1859
- const indexes = options.indexes;
1860
- const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
1861
- const maxDepth = options.maxDepth === undefined ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
2136
+ const visitor = option('visitor') || defaultVisitor;
2137
+ const dots = option('dots', false);
2138
+ const indexes = option('indexes', false);
2139
+ const _Blob = option('Blob') || (typeof Blob !== 'undefined' && Blob);
2140
+ const maxDepth = option('maxDepth', DEFAULT_FORM_DATA_MAX_DEPTH);
1862
2141
  const useBlob = _Blob && utils.isSpecCompliantForm(formData);
1863
2142
  const stack = [];
1864
2143
 
@@ -1885,10 +2164,13 @@ function toFormData(obj, formData, options) {
1885
2164
  if (useBlob && typeof _Blob === 'function') {
1886
2165
  return new _Blob([value]);
1887
2166
  }
1888
- if (typeof Buffer !== 'undefined') {
1889
- return Buffer.from(value);
2167
+ if ((/* inlined export ["default"] */null) && (/* inlined export ["default"].isBufferAvailable */null).isBufferAvailable()) {
2168
+ return (/* inlined export ["default"].from */null).from(value);
1890
2169
  }
1891
- throw new core_AxiosError('Blob is not supported. Use a Buffer instead.', core_AxiosError.ERR_NOT_SUPPORT);
2170
+ throw new core_AxiosError(
2171
+ 'Blob is not supported. Use a Buffer instead.',
2172
+ core_AxiosError.ERR_NOT_SUPPORT
2173
+ );
1892
2174
  }
1893
2175
 
1894
2176
  return value;
@@ -2160,9 +2442,57 @@ function buildURL(url, params, options) {
2160
2442
 
2161
2443
 
2162
2444
 
2445
+ const InterceptorManager_$internals = Symbol('internals');
2446
+
2447
+ // `handlers` is public and may be replaced with a nullish value by user code;
2448
+ // `clear()` has always tolerated that. Treat it as an empty stack rather than
2449
+ // dereferencing it.
2450
+ function countHandlers(handlers) {
2451
+ return handlers ? handlers.length : 0;
2452
+ }
2453
+
2454
+ function trimHandlers(handlers) {
2455
+ if (!handlers) {
2456
+ return;
2457
+ }
2458
+
2459
+ while (handlers.length && handlers[handlers.length - 1] === null) {
2460
+ handlers.pop();
2461
+ }
2462
+ }
2463
+
2464
+ function syncHandlerEntries(manager, internals) {
2465
+ const handlers = manager.handlers;
2466
+ const length = countHandlers(handlers);
2467
+
2468
+ if (handlers !== internals.handlersRef) {
2469
+ internals.handlersRef = handlers;
2470
+ internals.handlerEntries.clear();
2471
+ } else if (length !== internals.handlersLength) {
2472
+ if (!length) {
2473
+ internals.handlerEntries.clear();
2474
+ } else {
2475
+ internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
2476
+ if (handlers[entry.index] !== entry.handler) {
2477
+ internals.handlerEntries.delete(id);
2478
+ }
2479
+ });
2480
+ }
2481
+ }
2482
+
2483
+ internals.handlersLength = length;
2484
+ }
2485
+
2163
2486
  class InterceptorManager {
2164
2487
  constructor() {
2165
2488
  this.handlers = [];
2489
+ this[InterceptorManager_$internals] = {
2490
+ handlersRef: this.handlers,
2491
+ handlersLength: this.handlers.length,
2492
+ handlerEntries: new Map(),
2493
+ iterationDepth: 0,
2494
+ nextId: 0,
2495
+ };
2166
2496
  }
2167
2497
 
2168
2498
  /**
@@ -2175,13 +2505,30 @@ class InterceptorManager {
2175
2505
  * @return {Number} An ID used to remove interceptor later
2176
2506
  */
2177
2507
  use(fulfilled, rejected, options) {
2178
- this.handlers.push({
2508
+ const handler = {
2179
2509
  fulfilled,
2180
2510
  rejected,
2181
2511
  synchronous: options ? options.synchronous : false,
2182
2512
  runWhen: options ? options.runWhen : null,
2513
+ };
2514
+ const internals = this[InterceptorManager_$internals];
2515
+
2516
+ if (this.handlers == null) {
2517
+ this.handlers = [];
2518
+ }
2519
+
2520
+ syncHandlerEntries(this, internals);
2521
+
2522
+ const id = internals.nextId++;
2523
+
2524
+ this.handlers.push(handler);
2525
+ internals.handlerEntries.set(id, {
2526
+ handler,
2527
+ index: this.handlers.length - 1,
2183
2528
  });
2184
- return this.handlers.length - 1;
2529
+ internals.handlersLength = this.handlers.length;
2530
+
2531
+ return id;
2185
2532
  }
2186
2533
 
2187
2534
  /**
@@ -2192,8 +2539,27 @@ class InterceptorManager {
2192
2539
  * @returns {void}
2193
2540
  */
2194
2541
  eject(id) {
2195
- if (this.handlers[id]) {
2196
- this.handlers[id] = null;
2542
+ const internals = this[InterceptorManager_$internals];
2543
+
2544
+ syncHandlerEntries(this, internals);
2545
+
2546
+ const entry = internals.handlerEntries.get(id);
2547
+
2548
+ if (entry) {
2549
+ internals.handlerEntries.delete(id);
2550
+
2551
+ // Ignore IDs invalidated by clear or direct replacement of handlers.
2552
+ if (this.handlers[entry.index] !== entry.handler) {
2553
+ return;
2554
+ }
2555
+
2556
+ this.handlers[entry.index] = null;
2557
+
2558
+ // Do not reuse an index while forEach is walking its length snapshot.
2559
+ if (!internals.iterationDepth) {
2560
+ trimHandlers(this.handlers);
2561
+ internals.handlersLength = this.handlers.length;
2562
+ }
2197
2563
  }
2198
2564
  }
2199
2565
 
@@ -2205,6 +2571,7 @@ class InterceptorManager {
2205
2571
  clear() {
2206
2572
  if (this.handlers) {
2207
2573
  this.handlers = [];
2574
+ syncHandlerEntries(this, this[InterceptorManager_$internals]);
2208
2575
  }
2209
2576
  }
2210
2577
 
@@ -2219,11 +2586,25 @@ class InterceptorManager {
2219
2586
  * @returns {void}
2220
2587
  */
2221
2588
  forEach(fn) {
2222
- utils.forEach(this.handlers, function forEachHandler(h) {
2223
- if (h !== null) {
2224
- fn(h);
2589
+ const internals = this[InterceptorManager_$internals];
2590
+
2591
+ syncHandlerEntries(this, internals);
2592
+
2593
+ internals.iterationDepth++;
2594
+
2595
+ try {
2596
+ utils.forEach(this.handlers, function forEachHandler(h) {
2597
+ if (h !== null) {
2598
+ fn(h);
2599
+ }
2600
+ });
2601
+ } finally {
2602
+ if (!--internals.iterationDepth) {
2603
+ syncHandlerEntries(this, internals);
2604
+ trimHandlers(this.handlers);
2605
+ internals.handlersLength = countHandlers(this.handlers);
2225
2606
  }
2226
- });
2607
+ }
2227
2608
  }
2228
2609
  }
2229
2610
 
@@ -2376,12 +2757,18 @@ function throwIfDepthExceeded(index) {
2376
2757
  * @returns An array of strings.
2377
2758
  */
2378
2759
  function parsePropPath(name) {
2379
- // foo[x][y][z]
2380
- // foo.x.y.z
2381
- // foo-x-y-z
2382
- // foo x y z
2760
+ // foo[x][y][z] -> ['foo', 'x', 'y', 'z']
2761
+ // foo.x.y.z -> ['foo', 'x', 'y', 'z']
2762
+ // A path is split on `.` and on `[...]` groups. A segment — whether written
2763
+ // in dot notation or captured inside brackets — may contain any character
2764
+ // except `.`, `[` and `]`, so a key like `user-name` or `user name` is kept
2765
+ // literal instead of being split (#5402). `.`, `[` and `]` keep their existing
2766
+ // meaning, e.g. `foo[bar.baz]` -> ['foo', 'bar', 'baz'] and `[]` is an array push.
2767
+ // Excluding `[` from the bracket group also makes the match fail fast at the
2768
+ // next `[`, so a malformed name cannot rescan to the end of the string from
2769
+ // every unmatched `[` — parsing stays linear in the length of the name.
2383
2770
  const path = [];
2384
- const pattern = /\w+|\[(\w*)]/g;
2771
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
2385
2772
  let match;
2386
2773
 
2387
2774
  while ((match = pattern.exec(name)) !== null) {
@@ -2471,6 +2858,25 @@ function formDataToJSON(formData) {
2471
2858
 
2472
2859
  /* export default */ var helpers_formDataToJSON = (formDataToJSON);
2473
2860
 
2861
+ ;// CONCATENATED MODULE: ../../node_modules/axios/lib/core/methodList.js
2862
+
2863
+
2864
+ const methodList = Object.freeze([
2865
+ 'get',
2866
+ 'delete',
2867
+ 'head',
2868
+ 'options',
2869
+ 'post',
2870
+ 'put',
2871
+ 'patch',
2872
+ 'purge',
2873
+ 'link',
2874
+ 'unlink',
2875
+ 'query',
2876
+ ]);
2877
+
2878
+ /* export default */ var core_methodList = (methodList);
2879
+
2474
2880
  ;// CONCATENATED MODULE: ../../node_modules/axios/lib/defaults/index.js
2475
2881
 
2476
2882
 
@@ -2482,6 +2888,7 @@ function formDataToJSON(formData) {
2482
2888
 
2483
2889
 
2484
2890
 
2891
+
2485
2892
  const defaults_own = (obj, key) => (obj != null && utils.hasOwnProp(obj, key) ? obj[key] : undefined);
2486
2893
 
2487
2894
  /**
@@ -2494,7 +2901,7 @@ const defaults_own = (obj, key) => (obj != null && utils.hasOwnProp(obj, key) ?
2494
2901
  *
2495
2902
  * @returns {string} A stringified version of the rawValue.
2496
2903
  */
2497
- function stringifySafely(rawValue, parser, encoder) {
2904
+ function defaults_stringifySafely(rawValue, parser, encoder) {
2498
2905
  if (utils.isString(rawValue)) {
2499
2906
  try {
2500
2907
  (parser || JSON.parse)(rawValue);
@@ -2573,7 +2980,7 @@ const defaults = {
2573
2980
 
2574
2981
  if (isObjectPayload || hasJSONContentType) {
2575
2982
  headers.setContentType('application/json', false);
2576
- return stringifySafely(data);
2983
+ return defaults_stringifySafely(data);
2577
2984
  }
2578
2985
 
2579
2986
  return data;
@@ -2644,7 +3051,7 @@ const defaults = {
2644
3051
  },
2645
3052
  };
2646
3053
 
2647
- utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query'], (method) => {
3054
+ utils.forEach(core_methodList, (method) => {
2648
3055
  defaults.headers[method] = {};
2649
3056
  });
2650
3057
 
@@ -2740,6 +3147,32 @@ function settle(resolve, reject, response) {
2740
3147
  }
2741
3148
  }
2742
3149
 
3150
+ ;// CONCATENATED MODULE: ../../node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
3151
+
3152
+
3153
+ const urlParserControlCharacters = /[\t\n\r]/g;
3154
+
3155
+ /**
3156
+ * Match WHATWG URL preprocessing before checking a URL's protocol.
3157
+ *
3158
+ * @param {string} url
3159
+ *
3160
+ * @returns {string}
3161
+ */
3162
+ function normalizeURLForProtocolCheck(url) {
3163
+ if (typeof url !== 'string') {
3164
+ return url;
3165
+ }
3166
+
3167
+ let start = 0;
3168
+
3169
+ while (start < url.length && url.charCodeAt(start) <= 0x20) {
3170
+ start++;
3171
+ }
3172
+
3173
+ return url.slice(start).replace(urlParserControlCharacters, '');
3174
+ }
3175
+
2743
3176
  ;// CONCATENATED MODULE: ../../node_modules/axios/lib/helpers/parseProtocol.js
2744
3177
 
2745
3178
 
@@ -2810,7 +3243,7 @@ function speedometer(samplesCount, min) {
2810
3243
  * Throttle decorator
2811
3244
  * @param {Function} fn
2812
3245
  * @param {Number} freq
2813
- * @return {Function}
3246
+ * @return {Array<Function>}
2814
3247
  */
2815
3248
  function throttle(fn, freq) {
2816
3249
  let timestamp = 0;
@@ -2845,8 +3278,9 @@ function throttle(fn, freq) {
2845
3278
  };
2846
3279
 
2847
3280
  const flush = () => lastArgs && invoke(lastArgs);
3281
+ const flushWith = (...args) => invoke(args);
2848
3282
 
2849
- return [throttled, flush];
3283
+ return [throttled, flush, flushWith];
2850
3284
  }
2851
3285
 
2852
3286
  /* export default */ var helpers_throttle = (throttle);
@@ -2861,12 +3295,12 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2861
3295
  const _speedometer = helpers_speedometer(50, 250);
2862
3296
 
2863
3297
  return helpers_throttle((e) => {
2864
- if (!e || typeof e.loaded !== 'number') {
3298
+ if (!e || !utils.isNumber(e.loaded)) {
2865
3299
  return;
2866
3300
  }
2867
3301
  const rawLoaded = e.loaded;
2868
3302
  const total = e.lengthComputable ? e.total : undefined;
2869
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
3303
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
2870
3304
  const progressBytes = Math.max(0, loaded - bytesNotified);
2871
3305
  const rate = _speedometer(progressBytes);
2872
3306
 
@@ -2903,9 +3337,9 @@ const progressEventDecorator = (total, throttled) => {
2903
3337
  };
2904
3338
 
2905
3339
  const asyncDecorator =
2906
- (fn) =>
3340
+ (fn, scheduler = utils.asap) =>
2907
3341
  (...args) =>
2908
- utils.asap(() => fn(...args));
3342
+ scheduler(() => fn(...args));
2909
3343
 
2910
3344
  ;// CONCATENATED MODULE: ../../node_modules/axios/lib/helpers/isURLSameOrigin.js
2911
3345
 
@@ -3024,9 +3458,17 @@ function isAbsoluteURL(url) {
3024
3458
  * @returns {string} The combined URL
3025
3459
  */
3026
3460
  function combineURLs(baseURL, relativeURL) {
3027
- return relativeURL
3028
- ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '')
3029
- : baseURL;
3461
+ if (!relativeURL) {
3462
+ return baseURL;
3463
+ }
3464
+
3465
+ let end = baseURL.length;
3466
+
3467
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
3468
+ end--;
3469
+ }
3470
+
3471
+ return baseURL.slice(0, end) + '/' + relativeURL.replace(/^\/+/, '');
3030
3472
  }
3031
3473
 
3032
3474
  ;// CONCATENATED MODULE: ../../node_modules/axios/lib/core/buildFullPath.js
@@ -3036,28 +3478,54 @@ function combineURLs(baseURL, relativeURL) {
3036
3478
 
3037
3479
 
3038
3480
 
3481
+
3039
3482
  const malformedHttpProtocol = /^https?:(?!\/\/)/i;
3040
- const httpProtocolControlCharacters = /[\t\n\r]/g;
3041
3483
 
3042
- function stripLeadingC0ControlOrSpace(url) {
3043
- let i = 0;
3044
- while (i < url.length && url.charCodeAt(i) <= 0x20) {
3045
- i++;
3484
+ // Redact the parts of a URL that can carry secrets before it is embedded in an
3485
+ // error message. AxiosError.toJSON() serializes `message` verbatim and errors
3486
+ // are commonly logged, while the opt-in `config.redact` model only cleans
3487
+ // config keys — it cannot reach the message. Redact only the genuinely
3488
+ // sensitive substrings — userinfo (credentials), query parameter values and
3489
+ // fragment contents — with the same REDACTED marker the config redaction uses,
3490
+ // while keeping the scheme, host, path and parameter names so the offending
3491
+ // request stays accurately identifiable.
3492
+ function redactFragment(fragment) {
3493
+ if (!fragment) {
3494
+ return fragment;
3046
3495
  }
3047
- return url.slice(i);
3496
+
3497
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = '') => {
3498
+ return `${separator}${parameterName}${REDACTED}`;
3499
+ });
3048
3500
  }
3049
3501
 
3050
- function normalizeURLForProtocolCheck(url) {
3051
- return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, '');
3502
+ function redactSensitiveURLParts(url) {
3503
+ const redactedURL = url.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
3504
+ const fragmentIndex = redactedURL.indexOf('#');
3505
+ const urlWithoutFragment =
3506
+ fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
3507
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(
3508
+ /([?&][^=&#]*=)[^&#]*/g,
3509
+ `$1${REDACTED}`
3510
+ );
3511
+
3512
+ if (fragmentIndex === -1) {
3513
+ return redactedURLWithoutFragment;
3514
+ }
3515
+
3516
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
3052
3517
  }
3053
3518
 
3054
3519
  function assertValidHttpProtocolURL(url, config) {
3055
- if (typeof url === 'string' && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url))) {
3056
- throw new core_AxiosError(
3057
- 'Invalid URL: missing "//" after protocol',
3058
- core_AxiosError.ERR_INVALID_URL,
3059
- config
3060
- );
3520
+ if (typeof url === 'string') {
3521
+ const normalizedURL = normalizeURLForProtocolCheck(url);
3522
+ if (malformedHttpProtocol.test(normalizedURL)) {
3523
+ throw new core_AxiosError(
3524
+ `Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
3525
+ core_AxiosError.ERR_INVALID_URL,
3526
+ config
3527
+ );
3528
+ }
3061
3529
  }
3062
3530
  }
3063
3531
 
@@ -3089,6 +3557,17 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
3089
3557
 
3090
3558
  const headersToObject = (thing) => (thing instanceof core_AxiosHeaders ? { ...thing } : thing);
3091
3559
 
3560
+ const ownEnumerableKeys = (thing) => {
3561
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
3562
+ return Object.keys(thing).concat(
3563
+ Object.getOwnPropertySymbols(thing).filter(
3564
+ (symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
3565
+ )
3566
+ );
3567
+ }
3568
+ return Object.keys(thing);
3569
+ };
3570
+
3092
3571
  /**
3093
3572
  * Config-specific merge-function which creates a new config-object
3094
3573
  * by merging two configuration objects together.
@@ -3154,7 +3633,9 @@ function mergeConfig(config1, config2) {
3154
3633
  }
3155
3634
 
3156
3635
  function getMergedTransitionalOption(prop) {
3157
- const transitional2 = utils.hasOwnProp(config2, 'transitional') ? config2.transitional : undefined;
3636
+ const transitional2 = utils.hasOwnProp(config2, 'transitional')
3637
+ ? config2.transitional
3638
+ : undefined;
3158
3639
 
3159
3640
  if (!utils.isUndefined(transitional2)) {
3160
3641
  if (utils.isPlainObject(transitional2)) {
@@ -3166,7 +3647,9 @@ function mergeConfig(config1, config2) {
3166
3647
  }
3167
3648
  }
3168
3649
 
3169
- const transitional1 = utils.hasOwnProp(config1, 'transitional') ? config1.transitional : undefined;
3650
+ const transitional1 = utils.hasOwnProp(config1, 'transitional')
3651
+ ? config1.transitional
3652
+ : undefined;
3170
3653
 
3171
3654
  if (utils.isPlainObject(transitional1) && utils.hasOwnProp(transitional1, prop)) {
3172
3655
  return transitional1[prop];
@@ -3193,7 +3676,7 @@ function mergeConfig(config1, config2) {
3193
3676
  transformResponse: defaultToConfig2,
3194
3677
  paramsSerializer: defaultToConfig2,
3195
3678
  timeout: defaultToConfig2,
3196
- timeoutMessage: defaultToConfig2,
3679
+ timeoutErrorMessage: defaultToConfig2,
3197
3680
  withCredentials: defaultToConfig2,
3198
3681
  withXSRFToken: defaultToConfig2,
3199
3682
  adapter: defaultToConfig2,
@@ -3218,7 +3701,7 @@ function mergeConfig(config1, config2) {
3218
3701
  mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
3219
3702
  };
3220
3703
 
3221
- utils.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
3704
+ utils.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
3222
3705
  if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
3223
3706
  const merge = utils.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
3224
3707
  const a = utils.hasOwnProp(config1, prop) ? config1[prop] : undefined;
@@ -3242,19 +3725,22 @@ function mergeConfig(config1, config2) {
3242
3725
  return config;
3243
3726
  }
3244
3727
 
3245
- ;// CONCATENATED MODULE: ../../node_modules/axios/lib/helpers/resolveConfig.js
3246
-
3247
-
3248
-
3249
-
3250
-
3251
-
3252
-
3253
-
3728
+ ;// CONCATENATED MODULE: ../../node_modules/axios/lib/core/setFormDataHeaders.js
3254
3729
 
3255
3730
 
3256
3731
  const FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
3257
3732
 
3733
+ /**
3734
+ * Apply the headers generated by a FormData implementation to the request headers,
3735
+ * honoring the `formDataHeaderPolicy` option: with 'content-only', copy only the
3736
+ * content-* headers; otherwise merge all of them.
3737
+ *
3738
+ * @param {AxiosHeaders} headers - the request headers to mutate
3739
+ * @param {Object | null | undefined} formHeaders - headers produced by the FormData implementation
3740
+ * @param {String} [policy] - the resolved `formDataHeaderPolicy` config value
3741
+ *
3742
+ * @returns {void}
3743
+ */
3258
3744
  function setFormDataHeaders(headers, formHeaders, policy) {
3259
3745
  if (policy !== 'content-only') {
3260
3746
  headers.set(formHeaders);
@@ -3268,6 +3754,18 @@ function setFormDataHeaders(headers, formHeaders, policy) {
3268
3754
  });
3269
3755
  }
3270
3756
 
3757
+ ;// CONCATENATED MODULE: ../../node_modules/axios/lib/helpers/resolveConfig.js
3758
+
3759
+
3760
+
3761
+
3762
+
3763
+
3764
+
3765
+
3766
+
3767
+
3768
+
3271
3769
  /**
3272
3770
  * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
3273
3771
  * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
@@ -3322,15 +3820,17 @@ function resolveConfig(config) {
3322
3820
  }
3323
3821
 
3324
3822
  if (utils.isFormData(data)) {
3823
+ const getHeaders = utils.getSafeProp(data, 'getHeaders');
3824
+
3325
3825
  if (
3326
3826
  platform.hasStandardBrowserEnv ||
3327
3827
  platform.hasStandardBrowserWebWorkerEnv ||
3328
3828
  utils.isReactNative(data)
3329
3829
  ) {
3330
3830
  headers.setContentType(undefined); // browser/web worker/RN handles it
3331
- } else if (utils.isFunction(data.getHeaders)) {
3831
+ } else if (utils.isFunction(getHeaders)) {
3332
3832
  // Node.js FormData (like form-data package)
3333
- setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
3833
+ setFormDataHeaders(headers, getHeaders.call(data), own('formDataHeaderPolicy'));
3334
3834
  }
3335
3835
  }
3336
3836
 
@@ -3376,6 +3876,7 @@ function resolveConfig(config) {
3376
3876
 
3377
3877
 
3378
3878
 
3879
+
3379
3880
  const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
3380
3881
 
3381
3882
  /* export default */ var xhr = (isXHRAdapterSupported &&
@@ -3387,7 +3888,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
3387
3888
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
3388
3889
  let onCanceled;
3389
3890
  let uploadThrottled, downloadThrottled;
3390
- let flushUpload, flushDownload;
3891
+ let flushUpload, flushDownload, flushDownloadWithEvent;
3391
3892
 
3392
3893
  function done() {
3393
3894
  flushUpload && flushUpload(); // flush events
@@ -3405,10 +3906,55 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
3405
3906
  // Set the request timeout in MS
3406
3907
  request.timeout = _config.timeout;
3407
3908
 
3408
- function onloadend() {
3909
+ function onloadend(event) {
3409
3910
  if (!request) {
3410
3911
  return;
3411
3912
  }
3913
+
3914
+ // Status 0 means no response was received, which onerror and onabort normally
3915
+ // reject before this runs. Firefox 152 fires only readystatechange and loadend for
3916
+ // navigation-canceled requests (https://bugzilla.mozilla.org/show_bug.cgi?id=1505389),
3917
+ // leaving settle() to resolve them as an empty success. ECONNABORTED is the error
3918
+ // onabort raised on Firefox 151. Reads over file:, which some environments report as
3919
+ // status 0 on success, are excluded by the request URL's scheme after browser-style
3920
+ // preprocessing, by the page origin's scheme for relative URLs (which inherit it), or
3921
+ // by responseURL where implemented.
3922
+ if (
3923
+ request.status === 0 &&
3924
+ (parseProtocol(normalizeURLForProtocolCheck(_config.url)) ||
3925
+ parseProtocol(platform.origin)) !== 'file' &&
3926
+ !(request.responseURL && request.responseURL.startsWith('file:'))
3927
+ ) {
3928
+ reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
3929
+ done();
3930
+
3931
+ // Clean up request
3932
+ request = null;
3933
+ return;
3934
+ }
3935
+
3936
+ // When loadend is still dispatching, flushing with it gives progress
3937
+ // listeners a final delivery whose event has a live target. The legacy
3938
+ // ready-state fallback has no event, so replay its pending progress.
3939
+ // A throwing listener must not block settlement; rethrow asynchronously,
3940
+ // matching how listener errors surface on the throttle timer path.
3941
+ try {
3942
+ if (event) {
3943
+ flushDownloadWithEvent && flushDownloadWithEvent(event);
3944
+ } else {
3945
+ flushDownload && flushDownload();
3946
+ }
3947
+ } catch (err) {
3948
+ setTimeout(() => {
3949
+ throw err;
3950
+ });
3951
+ }
3952
+
3953
+ // A final progress callback can cancel the request synchronously.
3954
+ if (!request) {
3955
+ return;
3956
+ }
3957
+
3412
3958
  // Prepare the response
3413
3959
  const responseHeaders = core_AxiosHeaders.from(
3414
3960
  'getAllResponseHeaders' in request && request.getAllResponseHeaders()
@@ -3540,7 +4086,10 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
3540
4086
 
3541
4087
  // Handle progress if needed
3542
4088
  if (onDownloadProgress) {
3543
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
4089
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
4090
+ onDownloadProgress,
4091
+ true
4092
+ );
3544
4093
  request.addEventListener('progress', downloadThrottled);
3545
4094
  }
3546
4095
 
@@ -3641,7 +4190,18 @@ const composeSignals = (signals, timeout) => {
3641
4190
  signals = null;
3642
4191
  };
3643
4192
 
3644
- signals.forEach((signal) => signal.addEventListener('abort', onabort, { once: true }));
4193
+ signals.forEach((signal) => {
4194
+ if (aborted) {
4195
+ return;
4196
+ }
4197
+
4198
+ if (signal.aborted) {
4199
+ onabort.call(signal);
4200
+ return;
4201
+ }
4202
+
4203
+ signal.addEventListener('abort', onabort, { once: true });
4204
+ });
3645
4205
 
3646
4206
  const { signal } = controller;
3647
4207
 
@@ -3745,13 +4305,11 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
3745
4305
 
3746
4306
  ;// CONCATENATED MODULE: ../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
3747
4307
  /**
3748
- * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
3749
- * - For base64: compute exact decoded size using length and padding;
3750
- * handle %XX at the character-count level (no string allocation).
3751
- * - For non-base64: compute the exact percent-decoded UTF-8 byte length.
3752
- *
3753
- * @param {string} url
3754
- * @returns {number}
4308
+ * Estimate data: URL byte lengths *without* allocating large buffers.
4309
+ * - Fetch percent-decodes a base64 body before decoding it.
4310
+ * - Node's Buffer.from(body, 'base64') sizes its backing allocation from the
4311
+ * raw body, including ignored characters and content after padding.
4312
+ * - Non-base64 data is percent-decoded and then encoded as UTF-8.
3755
4313
  */
3756
4314
  const isHexDigit = (charCode) =>
3757
4315
  (charCode >= 48 && charCode <= 57) ||
@@ -3761,64 +4319,101 @@ const isHexDigit = (charCode) =>
3761
4319
  const isPercentEncodedByte = (str, i, len) =>
3762
4320
  i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
3763
4321
 
3764
- function estimateDataURLDecodedBytes(url) {
3765
- if (!url || typeof url !== 'string') return 0;
3766
- if (!url.startsWith('data:')) return 0;
4322
+ const hexValue = (charCode) => (charCode <= 57 ? charCode - 48 : (charCode & 0xdf) - 55);
3767
4323
 
3768
- const comma = url.indexOf(',');
3769
- if (comma < 0) return 0;
4324
+ const isBase64Char = (charCode) =>
4325
+ (charCode >= 65 && charCode <= 90) || // A-Z
4326
+ (charCode >= 97 && charCode <= 122) || // a-z
4327
+ (charCode >= 48 && charCode <= 57) || // 0-9
4328
+ charCode === 43 || // +
4329
+ charCode === 47 || // /
4330
+ charCode === 45 || // - (base64url)
4331
+ charCode === 95; // _ (base64url)
3770
4332
 
3771
- const meta = url.slice(5, comma);
3772
- const body = url.slice(comma + 1);
3773
- const isBase64 = /;base64/i.test(meta);
4333
+ const isBase64Whitespace = (charCode) =>
4334
+ charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
3774
4335
 
3775
- if (isBase64) {
3776
- let effectiveLen = body.length;
3777
- const len = body.length; // cache length
3778
-
3779
- for (let i = 0; i < len; i++) {
3780
- if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
3781
- const a = body.charCodeAt(i + 1);
3782
- const b = body.charCodeAt(i + 2);
3783
- const isHex = isHexDigit(a) && isHexDigit(b);
3784
-
3785
- if (isHex) {
3786
- effectiveLen -= 2;
3787
- i += 2;
3788
- }
3789
- }
4336
+ const base64Bytes = (significant) => {
4337
+ const groups = Math.floor(significant / 4);
4338
+ const remainder = significant % 4;
4339
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
4340
+ };
4341
+
4342
+ // Buffer.byteLength(body, 'base64') uses the raw string length as an allocation
4343
+ // upper bound even when Buffer.from later ignores characters or stops at '='.
4344
+ const estimateBase64BufferAllocation = (body) => {
4345
+ const len = body.length;
4346
+ let padding = 0;
4347
+
4348
+ if (len > 0 && body.charCodeAt(len - 1) === 61 /* '=' */) {
4349
+ padding++;
4350
+
4351
+ if (len > 1 && body.charCodeAt(len - 2) === 61 /* '=' */) {
4352
+ padding++;
3790
4353
  }
4354
+ }
3791
4355
 
3792
- let pad = 0;
3793
- let idx = len - 1;
4356
+ return Math.floor(((len - padding) * 3) / 4);
4357
+ };
3794
4358
 
3795
- const tailIsPct3D = (j) =>
3796
- j >= 2 &&
3797
- body.charCodeAt(j - 2) === 37 && // '%'
3798
- body.charCodeAt(j - 1) === 51 && // '3'
3799
- (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
4359
+ const estimatePercentDecodedBase64Bytes = (body) => {
4360
+ const len = body.length;
4361
+ let significant = 0;
4362
+ let padding = 0;
4363
+ let invalid = false;
3800
4364
 
3801
- if (idx >= 0) {
3802
- if (body.charCodeAt(idx) === 61 /* '=' */) {
3803
- pad++;
3804
- idx--;
3805
- } else if (tailIsPct3D(idx)) {
3806
- pad++;
3807
- idx -= 3;
3808
- }
4365
+ for (let i = 0; i < len; i++) {
4366
+ let code = body.charCodeAt(i);
4367
+
4368
+ if (code === 37 /* '%' */ && isPercentEncodedByte(body, i, len)) {
4369
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
4370
+ i += 2;
3809
4371
  }
3810
4372
 
3811
- if (pad === 1 && idx >= 0) {
3812
- if (body.charCodeAt(idx) === 61 /* '=' */) {
3813
- pad++;
3814
- } else if (tailIsPct3D(idx)) {
3815
- pad++;
3816
- }
4373
+ if (isBase64Whitespace(code)) {
4374
+ continue;
4375
+ }
4376
+
4377
+ if (code === 61 /* '=' */) {
4378
+ padding++;
4379
+ continue;
3817
4380
  }
3818
4381
 
3819
- const groups = Math.floor(effectiveLen / 4);
3820
- const bytes = groups * 3 - (pad || 0);
3821
- return bytes > 0 ? bytes : 0;
4382
+ if (!isBase64Char(code) || padding > 0) {
4383
+ invalid = true;
4384
+ continue;
4385
+ }
4386
+
4387
+ significant++;
4388
+ }
4389
+
4390
+ // Fetch rejects malformed forgiving-base64 input. Returning the raw-size
4391
+ // allocation bound keeps that invalid input from becoming a pre-check bypass.
4392
+ if (
4393
+ invalid ||
4394
+ padding > 2 ||
4395
+ (padding > 0 && (significant + padding) % 4 !== 0) ||
4396
+ significant % 4 === 1
4397
+ ) {
4398
+ return estimateBase64BufferAllocation(body);
4399
+ }
4400
+
4401
+ return base64Bytes(significant);
4402
+ };
4403
+
4404
+ const estimateDataURLBytes = (url, estimateBase64) => {
4405
+ if (!url || typeof url !== 'string') return 0;
4406
+ if (!url.startsWith('data:')) return 0;
4407
+
4408
+ const comma = url.indexOf(',');
4409
+ if (comma < 0) return 0;
4410
+
4411
+ const meta = url.slice(5, comma);
4412
+ const body = url.slice(comma + 1);
4413
+ const isBase64 = /;base64/i.test(meta);
4414
+
4415
+ if (isBase64) {
4416
+ return estimateBase64(body);
3822
4417
  }
3823
4418
 
3824
4419
  // Compute UTF-8 byte length directly from UTF-16 code units without allocating
@@ -3848,10 +4443,36 @@ function estimateDataURLDecodedBytes(url) {
3848
4443
  }
3849
4444
  }
3850
4445
  return bytes;
4446
+ };
4447
+
4448
+ /**
4449
+ * Estimate the percent-decoded payload size used by Fetch data: URLs.
4450
+ *
4451
+ * @param {string} url
4452
+ * @returns {number}
4453
+ */
4454
+ function estimateDataURLDecodedBytes(url) {
4455
+ // Fetch removes URL fragments before processing a data: URL.
4456
+ const fragmentIndex = typeof url === 'string' ? url.indexOf('#') : -1;
4457
+
4458
+ return estimateDataURLBytes(
4459
+ fragmentIndex === -1 ? url : url.slice(0, fragmentIndex),
4460
+ estimatePercentDecodedBase64Bytes
4461
+ );
4462
+ }
4463
+
4464
+ /**
4465
+ * Estimate the Buffer backing allocation used by Node's raw base64 decoder.
4466
+ *
4467
+ * @param {string} url
4468
+ * @returns {number}
4469
+ */
4470
+ function estimateDataURLBufferAllocation(url) {
4471
+ return estimateDataURLBytes(url, estimateBase64BufferAllocation);
3851
4472
  }
3852
4473
 
3853
4474
  ;// CONCATENATED MODULE: ../../node_modules/axios/lib/env/data.js
3854
- const VERSION = "1.18.1";
4475
+ const VERSION = "1.20.0";
3855
4476
  ;// CONCATENATED MODULE: ../../node_modules/axios/lib/adapters/fetch.js
3856
4477
 
3857
4478
 
@@ -3868,6 +4489,18 @@ const VERSION = "1.18.1";
3868
4489
 
3869
4490
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
3870
4491
 
4492
+ const DEFAULT_REQUEST_OPTIONS = {
4493
+ cache: 'default',
4494
+ redirect: 'follow',
4495
+ referrer: 'about:client',
4496
+ referrerPolicy: '',
4497
+ mode: 'cors',
4498
+ integrity: '',
4499
+ keepalive: false,
4500
+ priority: 'auto',
4501
+ window: null,
4502
+ };
4503
+
3871
4504
  const { isFunction: fetch_isFunction } = utils;
3872
4505
 
3873
4506
  /**
@@ -3918,9 +4551,7 @@ const maybeWithAuthCredentials = (url) => {
3918
4551
 
3919
4552
  const factory = (env) => {
3920
4553
  const globalObject =
3921
- utils.global !== undefined && utils.global !== null
3922
- ? utils.global
3923
- : globalThis;
4554
+ utils.global !== undefined && utils.global !== null ? utils.global : globalThis;
3924
4555
  const { ReadableStream, TextEncoder } = globalObject;
3925
4556
 
3926
4557
  env = utils.merge.call(
@@ -4059,6 +4690,7 @@ const factory = (env) => {
4059
4690
  fetchOptions,
4060
4691
  maxContentLength,
4061
4692
  maxBodyLength,
4693
+ maxRedirects,
4062
4694
  } = helpers_resolveConfig(config);
4063
4695
 
4064
4696
  const hasMaxContentLength = utils.isNumber(maxContentLength) && maxContentLength > -1;
@@ -4109,7 +4741,7 @@ const factory = (env) => {
4109
4741
  const password = utils.getSafeProp(configAuth, 'password') || '';
4110
4742
  auth = {
4111
4743
  username,
4112
- password
4744
+ password,
4113
4745
  };
4114
4746
  }
4115
4747
 
@@ -4121,7 +4753,7 @@ const factory = (env) => {
4121
4753
  const urlPassword = decodeURIComponentSafe(parsedURL.password);
4122
4754
  auth = {
4123
4755
  username: urlUsername,
4124
- password: urlPassword
4756
+ password: urlPassword,
4125
4757
  };
4126
4758
  }
4127
4759
 
@@ -4195,7 +4827,9 @@ const factory = (env) => {
4195
4827
  (onUploadProgress || mustEnforceStreamBody)
4196
4828
  ) {
4197
4829
  requestContentLength =
4198
- requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
4830
+ requestContentLength == null
4831
+ ? await resolveBodyLength(headers, data)
4832
+ : requestContentLength;
4199
4833
 
4200
4834
  // A declared length of 0 is only trusted to skip the wrap when we are
4201
4835
  // not enforcing a stream limit (which must not rely on that header).
@@ -4208,7 +4842,10 @@ const factory = (env) => {
4208
4842
 
4209
4843
  let contentTypeHeader;
4210
4844
 
4211
- if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
4845
+ if (
4846
+ utils.isFormData(data) &&
4847
+ (contentTypeHeader = _request.headers.get('content-type'))
4848
+ ) {
4212
4849
  headers.setContentType(contentTypeHeader);
4213
4850
  }
4214
4851
 
@@ -4269,22 +4906,59 @@ const factory = (env) => {
4269
4906
  }
4270
4907
 
4271
4908
  // Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
4272
- headers.set('User-Agent', 'axios/' + (/* inlined export .VERSION */"1.18.1"), false);
4909
+ headers.set('User-Agent', 'axios/' + (/* inlined export .VERSION */"1.20.0"), false);
4910
+
4911
+ const safeFetchOptions =
4912
+ fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
4913
+
4914
+ if (safeFetchOptions) {
4915
+ // These options are owned by Axios and are already reflected in the
4916
+ // resolved Request passed to fetch.
4917
+ delete safeFetchOptions.body;
4918
+ delete safeFetchOptions.headers;
4919
+ delete safeFetchOptions.method;
4920
+ delete safeFetchOptions.signal;
4921
+ delete safeFetchOptions.duplex;
4922
+ delete safeFetchOptions.credentials;
4923
+ }
4273
4924
 
4274
- const resolvedOptions = {
4275
- ...fetchOptions,
4925
+ const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
4276
4926
  signal: composedSignal,
4277
4927
  method: method.toUpperCase(),
4278
4928
  headers: toByteStringHeaderObject(headers.normalize()),
4279
4929
  body: data,
4280
4930
  duplex: 'half',
4281
4931
  credentials: isCredentialsSupported ? withCredentials : undefined,
4282
- };
4932
+ });
4933
+
4934
+ if (isRequestSupported) {
4935
+ utils.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
4936
+ if (resolvedOptions[key] === undefined) {
4937
+ resolvedOptions[key] = value;
4938
+ }
4939
+ });
4940
+
4941
+ if (resolvedOptions.signal === undefined) {
4942
+ resolvedOptions.signal = null;
4943
+ }
4944
+
4945
+ if (resolvedOptions.body === undefined) {
4946
+ resolvedOptions.body = null;
4947
+ }
4948
+ }
4949
+
4950
+ if (maxRedirects === 0) {
4951
+ resolvedOptions.redirect = 'manual';
4952
+
4953
+ if (safeFetchOptions) {
4954
+ safeFetchOptions.redirect = 'manual';
4955
+ }
4956
+ }
4283
4957
 
4284
4958
  request = isRequestSupported && new Request(url, resolvedOptions);
4285
4959
 
4286
4960
  let response = await (isRequestSupported
4287
- ? _fetch(request, fetchOptions)
4961
+ ? _fetch(request, safeFetchOptions)
4288
4962
  : _fetch(url, resolvedOptions));
4289
4963
 
4290
4964
  const responseHeaders = core_AxiosHeaders.from(response.headers);
@@ -4637,6 +5311,7 @@ function getAdapter(adapters, config) {
4637
5311
 
4638
5312
 
4639
5313
 
5314
+
4640
5315
  /**
4641
5316
  * Throws a `CanceledError` if cancellation has been requested.
4642
5317
  *
@@ -4661,10 +5336,15 @@ function throwIfCancellationRequested(config) {
4661
5336
  *
4662
5337
  * @returns {Promise} The Promise to be fulfilled
4663
5338
  */
4664
- function dispatchRequest(config) {
5339
+ function dispatchRequest(_config) {
5340
+ // Interceptors may replace the merged config with an ordinary object. Flatten
5341
+ // it at the dispatch boundary so shared prototype members cannot become
5342
+ // request behavior, while preserving intentional template/class members.
5343
+ const config = utils.toSafeFlatObject(_config);
5344
+
4665
5345
  throwIfCancellationRequested(config);
4666
5346
 
4667
- config.headers = core_AxiosHeaders.from(config.headers);
5347
+ config.headers = core_AxiosHeaders.from(utils.getSafeProp(config, 'headers'));
4668
5348
 
4669
5349
  // Transform request data
4670
5350
  config.data = transformData.call(config, config.transformRequest);
@@ -4748,7 +5428,7 @@ validators.transitional = function transitional(validator, version, message) {
4748
5428
  function formatMessage(opt, desc) {
4749
5429
  return (
4750
5430
  '[Axios v' +
4751
- (/* inlined export .VERSION */"1.18.1") +
5431
+ (/* inlined export .VERSION */"1.20.0") +
4752
5432
  "] Transitional option '" +
4753
5433
  opt +
4754
5434
  "'" +
@@ -4845,6 +5525,7 @@ function assertOptions(options, schema, allowUnknown) {
4845
5525
 
4846
5526
 
4847
5527
 
5528
+
4848
5529
  const Axios_validators = helpers_validator.validators;
4849
5530
 
4850
5531
  /**
@@ -4876,21 +5557,21 @@ class Axios {
4876
5557
  return await this._request(configOrUrl, config);
4877
5558
  } catch (err) {
4878
5559
  if (err instanceof Error) {
4879
- let dummy = {};
5560
+ try {
5561
+ let dummy = {};
4880
5562
 
4881
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
5563
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
4882
5564
 
4883
- // slice off the Error: ... line
4884
- const stack = (() => {
4885
- if (!dummy.stack) {
4886
- return '';
4887
- }
5565
+ const dummyStack = dummy.stack;
5566
+ let stack = '';
4888
5567
 
4889
- const firstNewlineIndex = dummy.stack.indexOf('\n');
5568
+ // slice off the Error: ... line
5569
+ if (typeof dummyStack === 'string') {
5570
+ const firstNewlineIndex = dummyStack.indexOf('\n');
5571
+
5572
+ stack = firstNewlineIndex === -1 ? '' : dummyStack.slice(firstNewlineIndex + 1);
5573
+ }
4890
5574
 
4891
- return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
4892
- })();
4893
- try {
4894
5575
  if (!err.stack) {
4895
5576
  err.stack = stack;
4896
5577
  // match without the 2 top stack lines
@@ -4906,7 +5587,7 @@ class Axios {
4906
5587
  }
4907
5588
  }
4908
5589
  } catch (e) {
4909
- // ignore the case where "stack" is an un-writable property
5590
+ // Ignore failures from custom stack hooks or un-writable stack properties.
4910
5591
  }
4911
5592
  }
4912
5593
 
@@ -4979,13 +5660,17 @@ class Axios {
4979
5660
  );
4980
5661
 
4981
5662
  // Set config.method
4982
- config.method = (config.method || this.defaults.method || 'get').toLowerCase();
5663
+ config.method = (
5664
+ utils.getSafeProp(config, 'method') ||
5665
+ utils.getSafeProp(this.defaults, 'method') ||
5666
+ 'get'
5667
+ ).toLowerCase();
4983
5668
 
4984
5669
  // Flatten headers
4985
5670
  let contextHeaders = headers && utils.merge(headers.common, headers[config.method]);
4986
5671
 
4987
5672
  headers &&
4988
- utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query', 'common'], (method) => {
5673
+ utils.forEach(core_methodList.concat('common'), (method) => {
4989
5674
  delete headers[method];
4990
5675
  });
4991
5676
 
@@ -5044,17 +5729,35 @@ class Axios {
5044
5729
  const onFulfilled = requestInterceptorChain[i++];
5045
5730
  const onRejected = requestInterceptorChain[i++];
5046
5731
  try {
5047
- newConfig = onFulfilled(newConfig);
5732
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
5048
5733
  } catch (error) {
5049
- onRejected.call(this, error);
5734
+ if (!onRejected) {
5735
+ promise = Promise.reject(error);
5736
+ break;
5737
+ }
5738
+
5739
+ try {
5740
+ const rejectedResult = onRejected.call(this, error);
5741
+
5742
+ if (utils.isThenable(rejectedResult)) {
5743
+ promise = Promise.resolve(rejectedResult).then(() =>
5744
+ dispatchRequest.call(this, newConfig)
5745
+ );
5746
+ }
5747
+ } catch (rejectedError) {
5748
+ promise = Promise.reject(rejectedError);
5749
+ }
5750
+
5050
5751
  break;
5051
5752
  }
5052
5753
  }
5053
5754
 
5054
- try {
5055
- promise = dispatchRequest.call(this, newConfig);
5056
- } catch (error) {
5057
- return Promise.reject(error);
5755
+ if (!promise) {
5756
+ try {
5757
+ promise = dispatchRequest.call(this, newConfig);
5758
+ } catch (error) {
5759
+ promise = Promise.reject(error);
5760
+ }
5058
5761
  }
5059
5762
 
5060
5763
  i = 0;
@@ -5338,14 +6041,22 @@ const HttpStatusCode = {
5338
6041
  Gone: 410,
5339
6042
  LengthRequired: 411,
5340
6043
  PreconditionFailed: 412,
6044
+ /**
6045
+ * @deprecated Use `ContentTooLarge` instead.
6046
+ */
5341
6047
  PayloadTooLarge: 413,
6048
+ ContentTooLarge: 413,
5342
6049
  UriTooLong: 414,
5343
6050
  UnsupportedMediaType: 415,
5344
6051
  RangeNotSatisfiable: 416,
5345
6052
  ExpectationFailed: 417,
5346
6053
  ImATeapot: 418,
5347
6054
  MisdirectedRequest: 421,
6055
+ /**
6056
+ * @deprecated Use `UnprocessableContent` instead.
6057
+ */
5348
6058
  UnprocessableEntity: 422,
6059
+ UnprocessableContent: 422,
5349
6060
  Locked: 423,
5350
6061
  FailedDependency: 424,
5351
6062
  TooEarly: 425,
@@ -5365,6 +6076,7 @@ const HttpStatusCode = {
5365
6076
  LoopDetected: 508,
5366
6077
  NotExtended: 510,
5367
6078
  NetworkAuthenticationRequired: 511,
6079
+ WebServerReturnsAnUnknownError: 520,
5368
6080
  WebServerIsDown: 521,
5369
6081
  ConnectionTimedOut: 522,
5370
6082
  OriginIsUnreachable: 523,
@@ -5374,7 +6086,9 @@ const HttpStatusCode = {
5374
6086
  };
5375
6087
 
5376
6088
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
5377
- HttpStatusCode[value] = key;
6089
+ if (HttpStatusCode[value] === undefined) {
6090
+ HttpStatusCode[value] = key;
6091
+ }
5378
6092
  });
5379
6093
 
5380
6094
  /* export default */ var helpers_HttpStatusCode = (HttpStatusCode);
@@ -5435,7 +6149,7 @@ axios.Axios = core_Axios;
5435
6149
  axios.CanceledError = cancel_CanceledError;
5436
6150
  axios.CancelToken = cancel_CancelToken;
5437
6151
  axios.isCancel = isCancel;
5438
- axios.VERSION = (/* inlined export .VERSION */"1.18.1");
6152
+ axios.VERSION = (/* inlined export .VERSION */"1.20.0");
5439
6153
  axios.toFormData = helpers_toFormData;
5440
6154
 
5441
6155
  // Expose AxiosError class