@kontent-ai/delivery-sdk 16.4.1 → 16.4.3

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.
@@ -3501,7 +3501,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
3501
3501
  exports.sdkInfo = void 0;
3502
3502
  exports.sdkInfo = {
3503
3503
  host: 'npmjs.com',
3504
- version: '16.4.1',
3504
+ version: '16.4.3',
3505
3505
  name: '@kontent-ai/delivery-sdk'
3506
3506
  };
3507
3507
 
@@ -5255,7 +5255,7 @@ __webpack_require__.r(__webpack_exports__);
5255
5255
  * - `http` for Node.js
5256
5256
  * - `xhr` for browsers
5257
5257
  * - `fetch` for fetch API-based requests
5258
- *
5258
+ *
5259
5259
  * @type {Object<string, Function|Object>}
5260
5260
  */
5261
5261
  const knownAdapters = {
@@ -5263,24 +5263,26 @@ const knownAdapters = {
5263
5263
  xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_2__["default"],
5264
5264
  fetch: {
5265
5265
  get: _fetch_js__WEBPACK_IMPORTED_MODULE_3__.getFetch,
5266
- }
5266
+ },
5267
5267
  };
5268
5268
 
5269
5269
  // Assign adapter names for easier debugging and identification
5270
5270
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(knownAdapters, (fn, value) => {
5271
5271
  if (fn) {
5272
5272
  try {
5273
- Object.defineProperty(fn, 'name', { value });
5273
+ // Null-proto descriptors so a polluted Object.prototype.get cannot turn
5274
+ // these data descriptors into accessor descriptors on the way in.
5275
+ Object.defineProperty(fn, 'name', { __proto__: null, value });
5274
5276
  } catch (e) {
5275
5277
  // eslint-disable-next-line no-empty
5276
5278
  }
5277
- Object.defineProperty(fn, 'adapterName', { value });
5279
+ Object.defineProperty(fn, 'adapterName', { __proto__: null, value });
5278
5280
  }
5279
5281
  });
5280
5282
 
5281
5283
  /**
5282
5284
  * Render a rejection reason string for unknown or unsupported adapters
5283
- *
5285
+ *
5284
5286
  * @param {string} reason
5285
5287
  * @returns {string}
5286
5288
  */
@@ -5288,17 +5290,18 @@ const renderReason = (reason) => `- ${reason}`;
5288
5290
 
5289
5291
  /**
5290
5292
  * Check if the adapter is resolved (function, null, or false)
5291
- *
5293
+ *
5292
5294
  * @param {Function|null|false} adapter
5293
5295
  * @returns {boolean}
5294
5296
  */
5295
- const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(adapter) || adapter === null || adapter === false;
5297
+ const isResolvedHandle = (adapter) =>
5298
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(adapter) || adapter === null || adapter === false;
5296
5299
 
5297
5300
  /**
5298
5301
  * Get the first suitable adapter from the provided list.
5299
5302
  * Tries each adapter in order until a supported one is found.
5300
5303
  * Throws an AxiosError if no adapter is suitable.
5301
- *
5304
+ *
5302
5305
  * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
5303
5306
  * @param {Object} config - Axios request configuration
5304
5307
  * @throws {AxiosError} If no suitable adapter is available
@@ -5335,14 +5338,17 @@ function getAdapter(adapters, config) {
5335
5338
  }
5336
5339
 
5337
5340
  if (!adapter) {
5338
- const reasons = Object.entries(rejectedReasons)
5339
- .map(([id, state]) => `adapter ${id} ` +
5341
+ const reasons = Object.entries(rejectedReasons).map(
5342
+ ([id, state]) =>
5343
+ `adapter ${id} ` +
5340
5344
  (state === false ? 'is not supported by the environment' : 'is not available in the build')
5341
- );
5345
+ );
5342
5346
 
5343
- let s = length ?
5344
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
5345
- 'as no adapter specified';
5347
+ let s = length
5348
+ ? reasons.length > 1
5349
+ ? 'since :\n' + reasons.map(renderReason).join('\n')
5350
+ : ' ' + renderReason(reasons[0])
5351
+ : 'as no adapter specified';
5346
5352
 
5347
5353
  throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__["default"](
5348
5354
  `There is no suitable adapter to dispatch the request ` + s,
@@ -5367,7 +5373,7 @@ function getAdapter(adapters, config) {
5367
5373
  * Exposes all known adapters
5368
5374
  * @type {Object<string, Function|Object>}
5369
5375
  */
5370
- adapters: knownAdapters
5376
+ adapters: knownAdapters,
5371
5377
  });
5372
5378
 
5373
5379
 
@@ -5393,6 +5399,9 @@ __webpack_require__.r(__webpack_exports__);
5393
5399
  /* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "./node_modules/axios/lib/helpers/progressEventReducer.js");
5394
5400
  /* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "./node_modules/axios/lib/helpers/resolveConfig.js");
5395
5401
  /* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/settle.js */ "./node_modules/axios/lib/core/settle.js");
5402
+ /* harmony import */ var _helpers_estimateDataURLDecodedBytes_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers/estimateDataURLDecodedBytes.js */ "./node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js");
5403
+ /* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../env/data.js */ "./node_modules/axios/lib/env/data.js");
5404
+ /* harmony import */ var _helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../helpers/sanitizeHeaderValue.js */ "./node_modules/axios/lib/helpers/sanitizeHeaderValue.js");
5396
5405
 
5397
5406
 
5398
5407
 
@@ -5403,33 +5412,40 @@ __webpack_require__.r(__webpack_exports__);
5403
5412
 
5404
5413
 
5405
5414
 
5406
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
5407
5415
 
5408
- const {isFunction} = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"];
5409
5416
 
5410
- const globalFetchAPI = (({Request, Response}) => ({
5411
- Request, Response
5412
- }))(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global);
5413
5417
 
5414
- const {
5415
- ReadableStream, TextEncoder
5416
- } = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global;
5418
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
5417
5419
 
5420
+ const { isFunction } = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"];
5418
5421
 
5419
5422
  const test = (fn, ...args) => {
5420
5423
  try {
5421
5424
  return !!fn(...args);
5422
5425
  } catch (e) {
5423
- return false
5426
+ return false;
5424
5427
  }
5425
- }
5428
+ };
5426
5429
 
5427
5430
  const factory = (env) => {
5428
- env = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({
5429
- skipUndefined: true
5430
- }, globalFetchAPI, env);
5431
+ const globalObject =
5432
+ _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global !== undefined && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global !== null
5433
+ ? _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global
5434
+ : globalThis;
5435
+ const { ReadableStream, TextEncoder } = globalObject;
5436
+
5437
+ env = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call(
5438
+ {
5439
+ skipUndefined: true,
5440
+ },
5441
+ {
5442
+ Request: globalObject.Request,
5443
+ Response: globalObject.Response,
5444
+ },
5445
+ env
5446
+ );
5431
5447
 
5432
- const {fetch: envFetch, Request, Response} = env;
5448
+ const { fetch: envFetch, Request, Response } = env;
5433
5449
  const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
5434
5450
  const isRequestSupported = isFunction(Request);
5435
5451
  const isResponseSupported = isFunction(Response);
@@ -5440,46 +5456,67 @@ const factory = (env) => {
5440
5456
 
5441
5457
  const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
5442
5458
 
5443
- const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
5444
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
5445
- async (str) => new Uint8Array(await new Request(str).arrayBuffer())
5446
- );
5459
+ const encodeText =
5460
+ isFetchSupported &&
5461
+ (typeof TextEncoder === 'function'
5462
+ ? (
5463
+ (encoder) => (str) =>
5464
+ encoder.encode(str)
5465
+ )(new TextEncoder())
5466
+ : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
5467
+
5468
+ const supportsRequestStream =
5469
+ isRequestSupported &&
5470
+ isReadableStreamSupported &&
5471
+ test(() => {
5472
+ let duplexAccessed = false;
5473
+
5474
+ const request = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, {
5475
+ body: new ReadableStream(),
5476
+ method: 'POST',
5477
+ get duplex() {
5478
+ duplexAccessed = true;
5479
+ return 'half';
5480
+ },
5481
+ });
5447
5482
 
5448
- const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
5449
- let duplexAccessed = false;
5483
+ const hasContentType = request.headers.has('Content-Type');
5450
5484
 
5451
- const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, {
5452
- body: new ReadableStream(),
5453
- method: 'POST',
5454
- get duplex() {
5455
- duplexAccessed = true;
5456
- return 'half';
5457
- },
5458
- }).headers.has('Content-Type');
5485
+ if (request.body != null) {
5486
+ request.body.cancel();
5487
+ }
5459
5488
 
5460
- return duplexAccessed && !hasContentType;
5461
- });
5489
+ return duplexAccessed && !hasContentType;
5490
+ });
5462
5491
 
5463
- const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
5492
+ const supportsResponseStream =
5493
+ isResponseSupported &&
5494
+ isReadableStreamSupported &&
5464
5495
  test(() => _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isReadableStream(new Response('').body));
5465
5496
 
5466
5497
  const resolvers = {
5467
- stream: supportsResponseStream && ((res) => res.body)
5498
+ stream: supportsResponseStream && ((res) => res.body),
5468
5499
  };
5469
5500
 
5470
- isFetchSupported && ((() => {
5471
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
5472
- !resolvers[type] && (resolvers[type] = (res, config) => {
5473
- let method = res && res[type];
5501
+ isFetchSupported &&
5502
+ (() => {
5503
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach((type) => {
5504
+ !resolvers[type] &&
5505
+ (resolvers[type] = (res, config) => {
5506
+ let method = res && res[type];
5474
5507
 
5475
- if (method) {
5476
- return method.call(res);
5477
- }
5508
+ if (method) {
5509
+ return method.call(res);
5510
+ }
5478
5511
 
5479
- throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](`Response type '${type}' is not supported`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT, config);
5480
- })
5481
- });
5482
- })());
5512
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
5513
+ `Response type '${type}' is not supported`,
5514
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT,
5515
+ config
5516
+ );
5517
+ });
5518
+ });
5519
+ })();
5483
5520
 
5484
5521
  const getBodyLength = async (body) => {
5485
5522
  if (body == null) {
@@ -5509,13 +5546,13 @@ const factory = (env) => {
5509
5546
  if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(body)) {
5510
5547
  return (await encodeText(body)).byteLength;
5511
5548
  }
5512
- }
5549
+ };
5513
5550
 
5514
5551
  const resolveBodyLength = async (headers, body) => {
5515
5552
  const length = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].toFiniteNumber(headers.getContentLength());
5516
5553
 
5517
5554
  return length == null ? getBodyLength(body) : length;
5518
- }
5555
+ };
5519
5556
 
5520
5557
  return async (config) => {
5521
5558
  let {
@@ -5530,38 +5567,87 @@ const factory = (env) => {
5530
5567
  responseType,
5531
5568
  headers,
5532
5569
  withCredentials = 'same-origin',
5533
- fetchOptions
5570
+ fetchOptions,
5571
+ maxContentLength,
5572
+ maxBodyLength,
5534
5573
  } = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_7__["default"])(config);
5535
5574
 
5575
+ const hasMaxContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(maxContentLength) && maxContentLength > -1;
5576
+ const hasMaxBodyLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(maxBodyLength) && maxBodyLength > -1;
5577
+
5536
5578
  let _fetch = envFetch || fetch;
5537
5579
 
5538
5580
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
5539
5581
 
5540
- let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_3__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
5582
+ let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
5583
+ [signal, cancelToken && cancelToken.toAbortSignal()],
5584
+ timeout
5585
+ );
5541
5586
 
5542
5587
  let request = null;
5543
5588
 
5544
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
5545
- composedSignal.unsubscribe();
5546
- });
5589
+ const unsubscribe =
5590
+ composedSignal &&
5591
+ composedSignal.unsubscribe &&
5592
+ (() => {
5593
+ composedSignal.unsubscribe();
5594
+ });
5547
5595
 
5548
5596
  let requestContentLength;
5549
5597
 
5550
5598
  try {
5599
+ // Enforce maxContentLength for data: URLs up-front so we never materialize
5600
+ // an oversized payload. The HTTP adapter applies the same check (see http.js
5601
+ // "if (protocol === 'data:')" branch).
5602
+ if (hasMaxContentLength && typeof url === 'string' && url.startsWith('data:')) {
5603
+ const estimated = (0,_helpers_estimateDataURLDecodedBytes_js__WEBPACK_IMPORTED_MODULE_9__["default"])(url);
5604
+ if (estimated > maxContentLength) {
5605
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
5606
+ 'maxContentLength size of ' + maxContentLength + ' exceeded',
5607
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_RESPONSE,
5608
+ config,
5609
+ request
5610
+ );
5611
+ }
5612
+ }
5613
+
5614
+ // Enforce maxBodyLength against the outbound request body before dispatch.
5615
+ // Mirrors http.js behavior (ERR_BAD_REQUEST / 'Request body larger than
5616
+ // maxBodyLength limit'). Skip when the body length cannot be determined
5617
+ // (e.g. a live ReadableStream supplied by the caller).
5618
+ if (hasMaxBodyLength && method !== 'get' && method !== 'head') {
5619
+ const outboundLength = await resolveBodyLength(headers, data);
5620
+ if (
5621
+ typeof outboundLength === 'number' &&
5622
+ isFinite(outboundLength) &&
5623
+ outboundLength > maxBodyLength
5624
+ ) {
5625
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
5626
+ 'Request body larger than maxBodyLength limit',
5627
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_REQUEST,
5628
+ config,
5629
+ request
5630
+ );
5631
+ }
5632
+ }
5633
+
5551
5634
  if (
5552
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
5635
+ onUploadProgress &&
5636
+ supportsRequestStream &&
5637
+ method !== 'get' &&
5638
+ method !== 'head' &&
5553
5639
  (requestContentLength = await resolveBodyLength(headers, data)) !== 0
5554
5640
  ) {
5555
5641
  let _request = new Request(url, {
5556
5642
  method: 'POST',
5557
5643
  body: data,
5558
- duplex: "half"
5644
+ duplex: 'half',
5559
5645
  });
5560
5646
 
5561
5647
  let contentTypeHeader;
5562
5648
 
5563
5649
  if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
5564
- headers.setContentType(contentTypeHeader)
5650
+ headers.setContentType(contentTypeHeader);
5565
5651
  }
5566
5652
 
5567
5653
  if (_request.body) {
@@ -5580,40 +5666,96 @@ const factory = (env) => {
5580
5666
 
5581
5667
  // Cloudflare Workers throws when credentials are defined
5582
5668
  // see https://github.com/cloudflare/workerd/issues/902
5583
- const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
5669
+ const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
5670
+
5671
+ // If data is FormData and Content-Type is multipart/form-data without boundary,
5672
+ // delete it so fetch can set it correctly with the boundary
5673
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFormData(data)) {
5674
+ const contentType = headers.getContentType();
5675
+ if (
5676
+ contentType &&
5677
+ /^multipart\/form-data/i.test(contentType) &&
5678
+ !/boundary=/i.test(contentType)
5679
+ ) {
5680
+ headers.delete('content-type');
5681
+ }
5682
+ }
5683
+
5684
+ // Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
5685
+ headers.set('User-Agent', 'axios/' + _env_data_js__WEBPACK_IMPORTED_MODULE_10__.VERSION, false);
5584
5686
 
5585
5687
  const resolvedOptions = {
5586
5688
  ...fetchOptions,
5587
5689
  signal: composedSignal,
5588
5690
  method: method.toUpperCase(),
5589
- headers: headers.normalize().toJSON(),
5691
+ headers: (0,_helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_11__.toByteStringHeaderObject)(headers.normalize()),
5590
5692
  body: data,
5591
- duplex: "half",
5592
- credentials: isCredentialsSupported ? withCredentials : undefined
5693
+ duplex: 'half',
5694
+ credentials: isCredentialsSupported ? withCredentials : undefined,
5593
5695
  };
5594
5696
 
5595
5697
  request = isRequestSupported && new Request(url, resolvedOptions);
5596
5698
 
5597
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
5699
+ let response = await (isRequestSupported
5700
+ ? _fetch(request, fetchOptions)
5701
+ : _fetch(url, resolvedOptions));
5702
+
5703
+ // Cheap pre-check: if the server honestly declares a content-length that
5704
+ // already exceeds the cap, reject before we start streaming.
5705
+ if (hasMaxContentLength) {
5706
+ const declaredLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].toFiniteNumber(response.headers.get('content-length'));
5707
+ if (declaredLength != null && declaredLength > maxContentLength) {
5708
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
5709
+ 'maxContentLength size of ' + maxContentLength + ' exceeded',
5710
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_RESPONSE,
5711
+ config,
5712
+ request
5713
+ );
5714
+ }
5715
+ }
5598
5716
 
5599
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
5717
+ const isStreamResponse =
5718
+ supportsResponseStream && (responseType === 'stream' || responseType === 'response');
5600
5719
 
5601
- if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
5720
+ if (
5721
+ supportsResponseStream &&
5722
+ response.body &&
5723
+ (onDownloadProgress || hasMaxContentLength || (isStreamResponse && unsubscribe))
5724
+ ) {
5602
5725
  const options = {};
5603
5726
 
5604
- ['status', 'statusText', 'headers'].forEach(prop => {
5727
+ ['status', 'statusText', 'headers'].forEach((prop) => {
5605
5728
  options[prop] = response[prop];
5606
5729
  });
5607
5730
 
5608
5731
  const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].toFiniteNumber(response.headers.get('content-length'));
5609
5732
 
5610
- const [onProgress, flush] = onDownloadProgress && (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventDecorator)(
5611
- responseContentLength,
5612
- (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.asyncDecorator)(onDownloadProgress), true)
5613
- ) || [];
5733
+ const [onProgress, flush] =
5734
+ (onDownloadProgress &&
5735
+ (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventDecorator)(
5736
+ responseContentLength,
5737
+ (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.asyncDecorator)(onDownloadProgress), true)
5738
+ )) ||
5739
+ [];
5740
+
5741
+ let bytesRead = 0;
5742
+ const onChunkProgress = (loadedBytes) => {
5743
+ if (hasMaxContentLength) {
5744
+ bytesRead = loadedBytes;
5745
+ if (bytesRead > maxContentLength) {
5746
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
5747
+ 'maxContentLength size of ' + maxContentLength + ' exceeded',
5748
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_RESPONSE,
5749
+ config,
5750
+ request
5751
+ );
5752
+ }
5753
+ }
5754
+ onProgress && onProgress(loadedBytes);
5755
+ };
5614
5756
 
5615
5757
  response = new Response(
5616
- (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
5758
+ (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
5617
5759
  flush && flush();
5618
5760
  unsubscribe && unsubscribe();
5619
5761
  }),
@@ -5623,7 +5765,37 @@ const factory = (env) => {
5623
5765
 
5624
5766
  responseType = responseType || 'text';
5625
5767
 
5626
- let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].findKey(resolvers, responseType) || 'text'](response, config);
5768
+ let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].findKey(resolvers, responseType) || 'text'](
5769
+ response,
5770
+ config
5771
+ );
5772
+
5773
+ // Fallback enforcement for environments without ReadableStream support
5774
+ // (legacy runtimes). Detect materialized size from typed output; skip
5775
+ // streams/Response passthrough since the user will read those themselves.
5776
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
5777
+ let materializedSize;
5778
+ if (responseData != null) {
5779
+ if (typeof responseData.byteLength === 'number') {
5780
+ materializedSize = responseData.byteLength;
5781
+ } else if (typeof responseData.size === 'number') {
5782
+ materializedSize = responseData.size;
5783
+ } else if (typeof responseData === 'string') {
5784
+ materializedSize =
5785
+ typeof TextEncoder === 'function'
5786
+ ? new TextEncoder().encode(responseData).byteLength
5787
+ : responseData.length;
5788
+ }
5789
+ }
5790
+ if (typeof materializedSize === 'number' && materializedSize > maxContentLength) {
5791
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
5792
+ 'maxContentLength size of ' + maxContentLength + ' exceeded',
5793
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_RESPONSE,
5794
+ config,
5795
+ request
5796
+ );
5797
+ }
5798
+ }
5627
5799
 
5628
5800
  !isStreamResponse && unsubscribe && unsubscribe();
5629
5801
 
@@ -5634,43 +5806,61 @@ const factory = (env) => {
5634
5806
  status: response.status,
5635
5807
  statusText: response.statusText,
5636
5808
  config,
5637
- request
5638
- })
5639
- })
5809
+ request,
5810
+ });
5811
+ });
5640
5812
  } catch (err) {
5641
5813
  unsubscribe && unsubscribe();
5642
5814
 
5815
+ // Safari can surface fetch aborts as a DOMException-like object whose
5816
+ // branded getters throw. Prefer our composed signal reason before reading
5817
+ // the caught error, preserving timeout vs cancellation semantics.
5818
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]) {
5819
+ const canceledError = composedSignal.reason;
5820
+ canceledError.config = config;
5821
+ request && (canceledError.request = request);
5822
+ err !== canceledError && (canceledError.cause = err);
5823
+ throw canceledError;
5824
+ }
5825
+
5643
5826
  if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
5644
5827
  throw Object.assign(
5645
- new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK, config, request, err && err.response),
5828
+ new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
5829
+ 'Network Error',
5830
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK,
5831
+ config,
5832
+ request,
5833
+ err && err.response
5834
+ ),
5646
5835
  {
5647
- cause: err.cause || err
5836
+ cause: err.cause || err,
5648
5837
  }
5649
- )
5838
+ );
5650
5839
  }
5651
5840
 
5652
5841
  throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(err, err && err.code, config, request, err && err.response);
5653
5842
  }
5654
- }
5655
- }
5843
+ };
5844
+ };
5656
5845
 
5657
5846
  const seedCache = new Map();
5658
5847
 
5659
5848
  const getFetch = (config) => {
5660
5849
  let env = (config && config.env) || {};
5661
- const {fetch, Request, Response} = env;
5662
- const seeds = [
5663
- Request, Response, fetch
5664
- ];
5850
+ const { fetch, Request, Response } = env;
5851
+ const seeds = [Request, Response, fetch];
5665
5852
 
5666
- let len = seeds.length, i = len,
5667
- seed, target, map = seedCache;
5853
+ let len = seeds.length,
5854
+ i = len,
5855
+ seed,
5856
+ target,
5857
+ map = seedCache;
5668
5858
 
5669
5859
  while (i--) {
5670
5860
  seed = seeds[i];
5671
5861
  target = map.get(seed);
5672
5862
 
5673
- target === undefined && map.set(seed, target = (i ? new Map() : factory(env)))
5863
+ target === undefined && map.set(seed, (target = i ? new Map() : factory(env)));
5674
5864
 
5675
5865
  map = target;
5676
5866
  }
@@ -5705,6 +5895,8 @@ __webpack_require__.r(__webpack_exports__);
5705
5895
  /* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
5706
5896
  /* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "./node_modules/axios/lib/helpers/progressEventReducer.js");
5707
5897
  /* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "./node_modules/axios/lib/helpers/resolveConfig.js");
5898
+ /* harmony import */ var _helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helpers/sanitizeHeaderValue.js */ "./node_modules/axios/lib/helpers/sanitizeHeaderValue.js");
5899
+
5708
5900
 
5709
5901
 
5710
5902
 
@@ -5718,193 +5910,219 @@ __webpack_require__.r(__webpack_exports__);
5718
5910
 
5719
5911
  const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
5720
5912
 
5721
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported && function (config) {
5722
- return new Promise(function dispatchXhrRequest(resolve, reject) {
5723
- const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_9__["default"])(config);
5724
- let requestData = _config.data;
5725
- const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].from(_config.headers).normalize();
5726
- let {responseType, onUploadProgress, onDownloadProgress} = _config;
5727
- let onCanceled;
5728
- let uploadThrottled, downloadThrottled;
5729
- let flushUpload, flushDownload;
5913
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported &&
5914
+ function (config) {
5915
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
5916
+ const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_9__["default"])(config);
5917
+ let requestData = _config.data;
5918
+ const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].from(_config.headers).normalize();
5919
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
5920
+ let onCanceled;
5921
+ let uploadThrottled, downloadThrottled;
5922
+ let flushUpload, flushDownload;
5730
5923
 
5731
- function done() {
5732
- flushUpload && flushUpload(); // flush events
5733
- flushDownload && flushDownload(); // flush events
5924
+ function done() {
5925
+ flushUpload && flushUpload(); // flush events
5926
+ flushDownload && flushDownload(); // flush events
5734
5927
 
5735
- _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
5928
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
5736
5929
 
5737
- _config.signal && _config.signal.removeEventListener('abort', onCanceled);
5738
- }
5930
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
5931
+ }
5739
5932
 
5740
- let request = new XMLHttpRequest();
5933
+ let request = new XMLHttpRequest();
5741
5934
 
5742
- request.open(_config.method.toUpperCase(), _config.url, true);
5935
+ request.open(_config.method.toUpperCase(), _config.url, true);
5743
5936
 
5744
- // Set the request timeout in MS
5745
- request.timeout = _config.timeout;
5937
+ // Set the request timeout in MS
5938
+ request.timeout = _config.timeout;
5746
5939
 
5747
- function onloadend() {
5748
- if (!request) {
5749
- return;
5940
+ function onloadend() {
5941
+ if (!request) {
5942
+ return;
5943
+ }
5944
+ // Prepare the response
5945
+ const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].from(
5946
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
5947
+ );
5948
+ const responseData =
5949
+ !responseType || responseType === 'text' || responseType === 'json'
5950
+ ? request.responseText
5951
+ : request.response;
5952
+ const response = {
5953
+ data: responseData,
5954
+ status: request.status,
5955
+ statusText: request.statusText,
5956
+ headers: responseHeaders,
5957
+ config,
5958
+ request,
5959
+ };
5960
+
5961
+ (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(
5962
+ function _resolve(value) {
5963
+ resolve(value);
5964
+ done();
5965
+ },
5966
+ function _reject(err) {
5967
+ reject(err);
5968
+ done();
5969
+ },
5970
+ response
5971
+ );
5972
+
5973
+ // Clean up request
5974
+ request = null;
5750
5975
  }
5751
- // Prepare the response
5752
- const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].from(
5753
- 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
5754
- );
5755
- const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
5756
- request.responseText : request.response;
5757
- const response = {
5758
- data: responseData,
5759
- status: request.status,
5760
- statusText: request.statusText,
5761
- headers: responseHeaders,
5762
- config,
5763
- request
5764
- };
5765
5976
 
5766
- (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function _resolve(value) {
5767
- resolve(value);
5768
- done();
5769
- }, function _reject(err) {
5770
- reject(err);
5771
- done();
5772
- }, response);
5977
+ if ('onloadend' in request) {
5978
+ // Use onloadend if available
5979
+ request.onloadend = onloadend;
5980
+ } else {
5981
+ // Listen for ready state to emulate onloadend
5982
+ request.onreadystatechange = function handleLoad() {
5983
+ if (!request || request.readyState !== 4) {
5984
+ return;
5985
+ }
5773
5986
 
5774
- // Clean up request
5775
- request = null;
5776
- }
5987
+ // The request errored out and we didn't get a response, this will be
5988
+ // handled by onerror instead
5989
+ // With one exception: request that using file: protocol, most browsers
5990
+ // will return status as 0 even though it's a successful request
5991
+ if (
5992
+ request.status === 0 &&
5993
+ !(request.responseURL && request.responseURL.startsWith('file:'))
5994
+ ) {
5995
+ return;
5996
+ }
5997
+ // readystate handler is calling before onerror or ontimeout handlers,
5998
+ // so we should call onloadend on the next 'tick'
5999
+ setTimeout(onloadend);
6000
+ };
6001
+ }
5777
6002
 
5778
- if ('onloadend' in request) {
5779
- // Use onloadend if available
5780
- request.onloadend = onloadend;
5781
- } else {
5782
- // Listen for ready state to emulate onloadend
5783
- request.onreadystatechange = function handleLoad() {
5784
- if (!request || request.readyState !== 4) {
6003
+ // Handle browser request cancellation (as opposed to a manual cancellation)
6004
+ request.onabort = function handleAbort() {
6005
+ if (!request) {
5785
6006
  return;
5786
6007
  }
5787
6008
 
5788
- // The request errored out and we didn't get a response, this will be
5789
- // handled by onerror instead
5790
- // With one exception: request that using file: protocol, most browsers
5791
- // will return status as 0 even though it's a successful request
5792
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
5793
- return;
5794
- }
5795
- // readystate handler is calling before onerror or ontimeout handlers,
5796
- // so we should call onloadend on the next 'tick'
5797
- setTimeout(onloadend);
6009
+ reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED, config, request));
6010
+ done();
6011
+
6012
+ // Clean up request
6013
+ request = null;
5798
6014
  };
5799
- }
5800
6015
 
5801
- // Handle browser request cancellation (as opposed to a manual cancellation)
5802
- request.onabort = function handleAbort() {
5803
- if (!request) {
5804
- return;
5805
- }
6016
+ // Handle low level network errors
6017
+ request.onerror = function handleError(event) {
6018
+ // Browsers deliver a ProgressEvent in XHR onerror
6019
+ // (message may be empty; when present, surface it)
6020
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
6021
+ const msg = event && event.message ? event.message : 'Network Error';
6022
+ const err = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](msg, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_NETWORK, config, request);
6023
+ // attach the underlying event for consumers who want details
6024
+ err.event = event || null;
6025
+ reject(err);
6026
+ done();
6027
+ request = null;
6028
+ };
5806
6029
 
5807
- reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED, config, request));
6030
+ // Handle timeout
6031
+ request.ontimeout = function handleTimeout() {
6032
+ let timeoutErrorMessage = _config.timeout
6033
+ ? 'timeout of ' + _config.timeout + 'ms exceeded'
6034
+ : 'timeout exceeded';
6035
+ const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_2__["default"];
6036
+ if (_config.timeoutErrorMessage) {
6037
+ timeoutErrorMessage = _config.timeoutErrorMessage;
6038
+ }
6039
+ reject(
6040
+ new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](
6041
+ timeoutErrorMessage,
6042
+ transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED,
6043
+ config,
6044
+ request
6045
+ )
6046
+ );
6047
+ done();
5808
6048
 
5809
- // Clean up request
5810
- request = null;
5811
- };
6049
+ // Clean up request
6050
+ request = null;
6051
+ };
5812
6052
 
5813
- // Handle low level network errors
5814
- request.onerror = function handleError(event) {
5815
- // Browsers deliver a ProgressEvent in XHR onerror
5816
- // (message may be empty; when present, surface it)
5817
- // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
5818
- const msg = event && event.message ? event.message : 'Network Error';
5819
- const err = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](msg, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_NETWORK, config, request);
5820
- // attach the underlying event for consumers who want details
5821
- err.event = event || null;
5822
- reject(err);
5823
- request = null;
5824
- };
5825
-
5826
- // Handle timeout
5827
- request.ontimeout = function handleTimeout() {
5828
- let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
5829
- const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_2__["default"];
5830
- if (_config.timeoutErrorMessage) {
5831
- timeoutErrorMessage = _config.timeoutErrorMessage;
5832
- }
5833
- reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](
5834
- timeoutErrorMessage,
5835
- transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED,
5836
- config,
5837
- request));
5838
-
5839
- // Clean up request
5840
- request = null;
5841
- };
6053
+ // Remove Content-Type if data is undefined
6054
+ requestData === undefined && requestHeaders.setContentType(null);
5842
6055
 
5843
- // Remove Content-Type if data is undefined
5844
- requestData === undefined && requestHeaders.setContentType(null);
6056
+ // Add headers to the request
6057
+ if ('setRequestHeader' in request) {
6058
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach((0,_helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_10__.toByteStringHeaderObject)(requestHeaders), function setRequestHeader(val, key) {
6059
+ request.setRequestHeader(key, val);
6060
+ });
6061
+ }
5845
6062
 
5846
- // Add headers to the request
5847
- if ('setRequestHeader' in request) {
5848
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
5849
- request.setRequestHeader(key, val);
5850
- });
5851
- }
6063
+ // Add withCredentials to request if needed
6064
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(_config.withCredentials)) {
6065
+ request.withCredentials = !!_config.withCredentials;
6066
+ }
5852
6067
 
5853
- // Add withCredentials to request if needed
5854
- if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(_config.withCredentials)) {
5855
- request.withCredentials = !!_config.withCredentials;
5856
- }
6068
+ // Add responseType to request if needed
6069
+ if (responseType && responseType !== 'json') {
6070
+ request.responseType = _config.responseType;
6071
+ }
5857
6072
 
5858
- // Add responseType to request if needed
5859
- if (responseType && responseType !== 'json') {
5860
- request.responseType = _config.responseType;
5861
- }
6073
+ // Handle progress if needed
6074
+ if (onDownloadProgress) {
6075
+ [downloadThrottled, flushDownload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__.progressEventReducer)(onDownloadProgress, true);
6076
+ request.addEventListener('progress', downloadThrottled);
6077
+ }
5862
6078
 
5863
- // Handle progress if needed
5864
- if (onDownloadProgress) {
5865
- ([downloadThrottled, flushDownload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__.progressEventReducer)(onDownloadProgress, true));
5866
- request.addEventListener('progress', downloadThrottled);
5867
- }
6079
+ // Not all browsers support upload events
6080
+ if (onUploadProgress && request.upload) {
6081
+ [uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__.progressEventReducer)(onUploadProgress);
5868
6082
 
5869
- // Not all browsers support upload events
5870
- if (onUploadProgress && request.upload) {
5871
- ([uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__.progressEventReducer)(onUploadProgress));
6083
+ request.upload.addEventListener('progress', uploadThrottled);
5872
6084
 
5873
- request.upload.addEventListener('progress', uploadThrottled);
6085
+ request.upload.addEventListener('loadend', flushUpload);
6086
+ }
5874
6087
 
5875
- request.upload.addEventListener('loadend', flushUpload);
5876
- }
6088
+ if (_config.cancelToken || _config.signal) {
6089
+ // Handle cancellation
6090
+ // eslint-disable-next-line func-names
6091
+ onCanceled = (cancel) => {
6092
+ if (!request) {
6093
+ return;
6094
+ }
6095
+ reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_4__["default"](null, config, request) : cancel);
6096
+ request.abort();
6097
+ done();
6098
+ request = null;
6099
+ };
5877
6100
 
5878
- if (_config.cancelToken || _config.signal) {
5879
- // Handle cancellation
5880
- // eslint-disable-next-line func-names
5881
- onCanceled = cancel => {
5882
- if (!request) {
5883
- return;
6101
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
6102
+ if (_config.signal) {
6103
+ _config.signal.aborted
6104
+ ? onCanceled()
6105
+ : _config.signal.addEventListener('abort', onCanceled);
5884
6106
  }
5885
- reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_4__["default"](null, config, request) : cancel);
5886
- request.abort();
5887
- request = null;
5888
- };
5889
-
5890
- _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
5891
- if (_config.signal) {
5892
- _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
5893
6107
  }
5894
- }
5895
6108
 
5896
- const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_config.url);
5897
-
5898
- if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].protocols.indexOf(protocol) === -1) {
5899
- reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_BAD_REQUEST, config));
5900
- return;
5901
- }
6109
+ const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_config.url);
5902
6110
 
6111
+ if (protocol && !_platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].protocols.includes(protocol)) {
6112
+ reject(
6113
+ new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](
6114
+ 'Unsupported protocol ' + protocol + ':',
6115
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_BAD_REQUEST,
6116
+ config
6117
+ )
6118
+ );
6119
+ return;
6120
+ }
5903
6121
 
5904
- // Send the request
5905
- request.send(requestData || null);
6122
+ // Send the request
6123
+ request.send(requestData || null);
6124
+ });
5906
6125
  });
5907
- });
5908
6126
 
5909
6127
 
5910
6128
  /***/ }),
@@ -5968,10 +6186,10 @@ function createInstance(defaultConfig) {
5968
6186
  const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype.request, context);
5969
6187
 
5970
6188
  // Copy axios.prototype to instance
5971
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype, context, {allOwnKeys: true});
6189
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype, context, { allOwnKeys: true });
5972
6190
 
5973
6191
  // Copy context to instance
5974
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(instance, context, null, {allOwnKeys: true});
6192
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(instance, context, null, { allOwnKeys: true });
5975
6193
 
5976
6194
  // Factory for creating new instances
5977
6195
  instance.create = function create(instanceConfig) {
@@ -6015,7 +6233,7 @@ axios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"]
6015
6233
 
6016
6234
  axios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_14__["default"];
6017
6235
 
6018
- axios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(thing) ? new FormData(thing) : thing);
6236
+ axios.formToJSON = (thing) => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(thing) ? new FormData(thing) : thing);
6019
6237
 
6020
6238
  axios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__["default"].getAdapter;
6021
6239
 
@@ -6066,7 +6284,7 @@ class CancelToken {
6066
6284
  const token = this;
6067
6285
 
6068
6286
  // eslint-disable-next-line func-names
6069
- this.promise.then(cancel => {
6287
+ this.promise.then((cancel) => {
6070
6288
  if (!token._listeners) return;
6071
6289
 
6072
6290
  let i = token._listeners.length;
@@ -6078,10 +6296,10 @@ class CancelToken {
6078
6296
  });
6079
6297
 
6080
6298
  // eslint-disable-next-line func-names
6081
- this.promise.then = onfulfilled => {
6299
+ this.promise.then = (onfulfilled) => {
6082
6300
  let _resolve;
6083
6301
  // eslint-disable-next-line func-names
6084
- const promise = new Promise(resolve => {
6302
+ const promise = new Promise((resolve) => {
6085
6303
  token.subscribe(resolve);
6086
6304
  _resolve = resolve;
6087
6305
  }).then(onfulfilled);
@@ -6169,7 +6387,7 @@ class CancelToken {
6169
6387
  });
6170
6388
  return {
6171
6389
  token,
6172
- cancel
6390
+ cancel,
6173
6391
  };
6174
6392
  }
6175
6393
  }
@@ -6280,7 +6498,7 @@ class Axios {
6280
6498
  this.defaults = instanceConfig || {};
6281
6499
  this.interceptors = {
6282
6500
  request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__["default"](),
6283
- response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__["default"]()
6501
+ response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__["default"](),
6284
6502
  };
6285
6503
  }
6286
6504
 
@@ -6302,13 +6520,29 @@ class Axios {
6302
6520
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
6303
6521
 
6304
6522
  // slice off the Error: ... line
6305
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
6523
+ const stack = (() => {
6524
+ if (!dummy.stack) {
6525
+ return '';
6526
+ }
6527
+
6528
+ const firstNewlineIndex = dummy.stack.indexOf('\n');
6529
+
6530
+ return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
6531
+ })();
6306
6532
  try {
6307
6533
  if (!err.stack) {
6308
6534
  err.stack = stack;
6309
6535
  // match without the 2 top stack lines
6310
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
6311
- err.stack += '\n' + stack
6536
+ } else if (stack) {
6537
+ const firstNewlineIndex = stack.indexOf('\n');
6538
+ const secondNewlineIndex =
6539
+ firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', firstNewlineIndex + 1);
6540
+ const stackWithoutTwoTopLines =
6541
+ secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);
6542
+
6543
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
6544
+ err.stack += '\n' + stack;
6545
+ }
6312
6546
  }
6313
6547
  } catch (e) {
6314
6548
  // ignore the case where "stack" is an un-writable property
@@ -6331,27 +6565,35 @@ class Axios {
6331
6565
 
6332
6566
  config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(this.defaults, config);
6333
6567
 
6334
- const {transitional, paramsSerializer, headers} = config;
6568
+ const { transitional, paramsSerializer, headers } = config;
6335
6569
 
6336
6570
  if (transitional !== undefined) {
6337
- _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(transitional, {
6338
- silentJSONParsing: validators.transitional(validators.boolean),
6339
- forcedJSONParsing: validators.transitional(validators.boolean),
6340
- clarifyTimeoutError: validators.transitional(validators.boolean),
6341
- legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
6342
- }, false);
6571
+ _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(
6572
+ transitional,
6573
+ {
6574
+ silentJSONParsing: validators.transitional(validators.boolean),
6575
+ forcedJSONParsing: validators.transitional(validators.boolean),
6576
+ clarifyTimeoutError: validators.transitional(validators.boolean),
6577
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
6578
+ },
6579
+ false
6580
+ );
6343
6581
  }
6344
6582
 
6345
6583
  if (paramsSerializer != null) {
6346
6584
  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(paramsSerializer)) {
6347
6585
  config.paramsSerializer = {
6348
- serialize: paramsSerializer
6349
- }
6586
+ serialize: paramsSerializer,
6587
+ };
6350
6588
  } else {
6351
- _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(paramsSerializer, {
6352
- encode: validators.function,
6353
- serialize: validators.function
6354
- }, true);
6589
+ _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(
6590
+ paramsSerializer,
6591
+ {
6592
+ encode: validators.function,
6593
+ serialize: validators.function,
6594
+ },
6595
+ true
6596
+ );
6355
6597
  }
6356
6598
  }
6357
6599
 
@@ -6364,26 +6606,25 @@ class Axios {
6364
6606
  config.allowAbsoluteUrls = true;
6365
6607
  }
6366
6608
 
6367
- _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(config, {
6368
- baseUrl: validators.spelling('baseURL'),
6369
- withXsrfToken: validators.spelling('withXSRFToken')
6370
- }, true);
6609
+ _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(
6610
+ config,
6611
+ {
6612
+ baseUrl: validators.spelling('baseURL'),
6613
+ withXsrfToken: validators.spelling('withXSRFToken'),
6614
+ },
6615
+ true
6616
+ );
6371
6617
 
6372
6618
  // Set config.method
6373
6619
  config.method = (config.method || this.defaults.method || 'get').toLowerCase();
6374
6620
 
6375
6621
  // Flatten headers
6376
- let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge(
6377
- headers.common,
6378
- headers[config.method]
6379
- );
6622
+ let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge(headers.common, headers[config.method]);
6380
6623
 
6381
- headers && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(
6382
- ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
6383
- (method) => {
6624
+ headers &&
6625
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query', 'common'], (method) => {
6384
6626
  delete headers[method];
6385
- }
6386
- );
6627
+ });
6387
6628
 
6388
6629
  config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].concat(contextHeaders, headers);
6389
6630
 
@@ -6398,7 +6639,8 @@ class Axios {
6398
6639
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
6399
6640
 
6400
6641
  const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__["default"];
6401
- const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
6642
+ const legacyInterceptorReqResOrdering =
6643
+ transitional && transitional.legacyInterceptorReqResOrdering;
6402
6644
 
6403
6645
  if (legacyInterceptorReqResOrdering) {
6404
6646
  requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
@@ -6472,34 +6714,42 @@ class Axios {
6472
6714
  // Provide aliases for supported request methods
6473
6715
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
6474
6716
  /*eslint func-names:0*/
6475
- Axios.prototype[method] = function(url, config) {
6476
- return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
6477
- method,
6478
- url,
6479
- data: (config || {}).data
6480
- }));
6717
+ Axios.prototype[method] = function (url, config) {
6718
+ return this.request(
6719
+ (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
6720
+ method,
6721
+ url,
6722
+ data: (config || {}).data,
6723
+ })
6724
+ );
6481
6725
  };
6482
6726
  });
6483
6727
 
6484
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
6485
- /*eslint func-names:0*/
6486
-
6728
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch', 'query'], function forEachMethodWithData(method) {
6487
6729
  function generateHTTPMethod(isForm) {
6488
6730
  return function httpMethod(url, data, config) {
6489
- return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
6490
- method,
6491
- headers: isForm ? {
6492
- 'Content-Type': 'multipart/form-data'
6493
- } : {},
6494
- url,
6495
- data
6496
- }));
6731
+ return this.request(
6732
+ (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
6733
+ method,
6734
+ headers: isForm
6735
+ ? {
6736
+ 'Content-Type': 'multipart/form-data',
6737
+ }
6738
+ : {},
6739
+ url,
6740
+ data,
6741
+ })
6742
+ );
6497
6743
  };
6498
6744
  }
6499
6745
 
6500
6746
  Axios.prototype[method] = generateHTTPMethod();
6501
6747
 
6502
- Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
6748
+ // QUERY is a safe/idempotent read method; multipart form bodies don't fit
6749
+ // its semantics, so no queryForm shorthand is generated.
6750
+ if (method !== 'query') {
6751
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
6752
+ }
6503
6753
  });
6504
6754
 
6505
6755
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Axios);
@@ -6518,62 +6768,164 @@ __webpack_require__.r(__webpack_exports__);
6518
6768
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
6519
6769
  /* harmony export */ });
6520
6770
  /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
6771
+ /* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
6521
6772
 
6522
6773
 
6523
6774
 
6524
6775
 
6525
- class AxiosError extends Error {
6526
- static from(error, code, config, request, response, customProps) {
6527
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
6528
- axiosError.cause = error;
6529
- axiosError.name = error.name;
6530
- customProps && Object.assign(axiosError, customProps);
6531
- return axiosError;
6776
+
6777
+ const REDACTED = '[REDACTED ****]';
6778
+
6779
+ function hasOwnOrPrototypeToJSON(source) {
6780
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(source, 'toJSON')) {
6781
+ return true;
6782
+ }
6783
+
6784
+ let prototype = Object.getPrototypeOf(source);
6785
+
6786
+ while (prototype && prototype !== Object.prototype) {
6787
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(prototype, 'toJSON')) {
6788
+ return true;
6532
6789
  }
6533
6790
 
6534
- /**
6535
- * Create an Error with the specified message, config, error code, request and response.
6536
- *
6537
- * @param {string} message The error message.
6538
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
6539
- * @param {Object} [config] The config.
6540
- * @param {Object} [request] The request.
6541
- * @param {Object} [response] The response.
6542
- *
6543
- * @returns {Error} The created error.
6544
- */
6545
- constructor(message, code, config, request, response) {
6546
- super(message);
6547
- this.name = 'AxiosError';
6548
- this.isAxiosError = true;
6549
- code && (this.code = code);
6550
- config && (this.config = config);
6551
- request && (this.request = request);
6552
- if (response) {
6553
- this.response = response;
6554
- this.status = response.status;
6791
+ prototype = Object.getPrototypeOf(prototype);
6792
+ }
6793
+
6794
+ return false;
6795
+ }
6796
+
6797
+ // Build a plain-object snapshot of `config` and replace the value of any key
6798
+ // (case-insensitive) listed in `redactKeys` with REDACTED. Walks through arrays
6799
+ // and AxiosHeaders, and short-circuits on circular references.
6800
+ function redactConfig(config, redactKeys) {
6801
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
6802
+ const seen = [];
6803
+
6804
+ const visit = (source) => {
6805
+ if (source === null || typeof source !== 'object') return source;
6806
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(source)) return source;
6807
+ if (seen.indexOf(source) !== -1) return undefined;
6808
+
6809
+ if (source instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"]) {
6810
+ source = source.toJSON();
6811
+ }
6812
+
6813
+ seen.push(source);
6814
+
6815
+ let result;
6816
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(source)) {
6817
+ result = [];
6818
+ source.forEach((v, i) => {
6819
+ const reducedValue = visit(v);
6820
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(reducedValue)) {
6821
+ result[i] = reducedValue;
6822
+ }
6823
+ });
6824
+ } else {
6825
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
6826
+ seen.pop();
6827
+ return source;
6828
+ }
6829
+
6830
+ result = Object.create(null);
6831
+ for (const [key, value] of Object.entries(source)) {
6832
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
6833
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(reducedValue)) {
6834
+ result[key] = reducedValue;
6555
6835
  }
6836
+ }
6556
6837
  }
6557
6838
 
6558
- toJSON() {
6559
- return {
6560
- // Standard
6561
- message: this.message,
6562
- name: this.name,
6563
- // Microsoft
6564
- description: this.description,
6565
- number: this.number,
6566
- // Mozilla
6567
- fileName: this.fileName,
6568
- lineNumber: this.lineNumber,
6569
- columnNumber: this.columnNumber,
6570
- stack: this.stack,
6571
- // Axios
6572
- config: _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(this.config),
6573
- code: this.code,
6574
- status: this.status,
6575
- };
6839
+ seen.pop();
6840
+ return result;
6841
+ };
6842
+
6843
+ return visit(config);
6844
+ }
6845
+
6846
+ class AxiosError extends Error {
6847
+ static from(error, code, config, request, response, customProps) {
6848
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
6849
+ axiosError.cause = error;
6850
+ axiosError.name = error.name;
6851
+
6852
+ // Preserve status from the original error if not already set from response
6853
+ if (error.status != null && axiosError.status == null) {
6854
+ axiosError.status = error.status;
6855
+ }
6856
+
6857
+ customProps && Object.assign(axiosError, customProps);
6858
+ return axiosError;
6859
+ }
6860
+
6861
+ /**
6862
+ * Create an Error with the specified message, config, error code, request and response.
6863
+ *
6864
+ * @param {string} message The error message.
6865
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
6866
+ * @param {Object} [config] The config.
6867
+ * @param {Object} [request] The request.
6868
+ * @param {Object} [response] The response.
6869
+ *
6870
+ * @returns {Error} The created error.
6871
+ */
6872
+ constructor(message, code, config, request, response) {
6873
+ super(message);
6874
+
6875
+ // Make message enumerable to maintain backward compatibility
6876
+ // The native Error constructor sets message as non-enumerable,
6877
+ // but axios < v1.13.3 had it as enumerable
6878
+ Object.defineProperty(this, 'message', {
6879
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
6880
+ // this data descriptor into an accessor descriptor on the way in.
6881
+ __proto__: null,
6882
+ value: message,
6883
+ enumerable: true,
6884
+ writable: true,
6885
+ configurable: true,
6886
+ });
6887
+
6888
+ this.name = 'AxiosError';
6889
+ this.isAxiosError = true;
6890
+ code && (this.code = code);
6891
+ config && (this.config = config);
6892
+ request && (this.request = request);
6893
+ if (response) {
6894
+ this.response = response;
6895
+ this.status = response.status;
6576
6896
  }
6897
+ }
6898
+
6899
+ toJSON() {
6900
+ // Opt-in redaction: when the request config carries a `redact` array, the
6901
+ // value of any matching key (case-insensitive, at any depth) is replaced
6902
+ // with REDACTED in the serialized snapshot. Undefined or empty leaves the
6903
+ // existing serialization behavior unchanged.
6904
+ const config = this.config;
6905
+ const redactKeys = config && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config, 'redact') ? config.redact : undefined;
6906
+ const serializedConfig =
6907
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(redactKeys) && redactKeys.length > 0
6908
+ ? redactConfig(config, redactKeys)
6909
+ : _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(config);
6910
+
6911
+ return {
6912
+ // Standard
6913
+ message: this.message,
6914
+ name: this.name,
6915
+ // Microsoft
6916
+ description: this.description,
6917
+ number: this.number,
6918
+ // Mozilla
6919
+ fileName: this.fileName,
6920
+ lineNumber: this.lineNumber,
6921
+ columnNumber: this.columnNumber,
6922
+ stack: this.stack,
6923
+ // Axios
6924
+ config: serializedConfig,
6925
+ code: this.code,
6926
+ status: this.status,
6927
+ };
6928
+ }
6577
6929
  }
6578
6930
 
6579
6931
  // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
@@ -6581,6 +6933,7 @@ AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
6581
6933
  AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
6582
6934
  AxiosError.ECONNABORTED = 'ECONNABORTED';
6583
6935
  AxiosError.ETIMEDOUT = 'ETIMEDOUT';
6936
+ AxiosError.ECONNREFUSED = 'ECONNREFUSED';
6584
6937
  AxiosError.ERR_NETWORK = 'ERR_NETWORK';
6585
6938
  AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
6586
6939
  AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
@@ -6589,6 +6942,7 @@ AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
6589
6942
  AxiosError.ERR_CANCELED = 'ERR_CANCELED';
6590
6943
  AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
6591
6944
  AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
6945
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
6592
6946
 
6593
6947
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosError);
6594
6948
 
@@ -6607,6 +6961,8 @@ __webpack_require__.r(__webpack_exports__);
6607
6961
  /* harmony export */ });
6608
6962
  /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
6609
6963
  /* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ "./node_modules/axios/lib/helpers/parseHeaders.js");
6964
+ /* harmony import */ var _helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/sanitizeHeaderValue.js */ "./node_modules/axios/lib/helpers/sanitizeHeaderValue.js");
6965
+
6610
6966
 
6611
6967
 
6612
6968
 
@@ -6623,7 +6979,7 @@ function normalizeValue(value) {
6623
6979
  return value;
6624
6980
  }
6625
6981
 
6626
- return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : String(value);
6982
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.map(normalizeValue) : (0,_helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_2__.sanitizeHeaderValue)(String(value));
6627
6983
  }
6628
6984
 
6629
6985
  function parseTokens(str) {
@@ -6661,8 +7017,10 @@ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
6661
7017
  }
6662
7018
 
6663
7019
  function formatHeader(header) {
6664
- return header.trim()
6665
- .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
7020
+ return header
7021
+ .trim()
7022
+ .toLowerCase()
7023
+ .replace(/([a-z\d])(\w*)/g, (w, char, str) => {
6666
7024
  return char.toUpperCase() + str;
6667
7025
  });
6668
7026
  }
@@ -6670,12 +7028,15 @@ function formatHeader(header) {
6670
7028
  function buildAccessors(obj, header) {
6671
7029
  const accessorName = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toCamelCase(' ' + header);
6672
7030
 
6673
- ['get', 'set', 'has'].forEach(methodName => {
7031
+ ['get', 'set', 'has'].forEach((methodName) => {
6674
7032
  Object.defineProperty(obj, methodName + accessorName, {
6675
- value: function(arg1, arg2, arg3) {
7033
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
7034
+ // this data descriptor into an accessor descriptor on the way in.
7035
+ __proto__: null,
7036
+ value: function (arg1, arg2, arg3) {
6676
7037
  return this[methodName].call(this, header, arg1, arg2, arg3);
6677
7038
  },
6678
- configurable: true
7039
+ configurable: true,
6679
7040
  });
6680
7041
  });
6681
7042
  }
@@ -6697,7 +7058,12 @@ class AxiosHeaders {
6697
7058
 
6698
7059
  const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(self, lHeader);
6699
7060
 
6700
- if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
7061
+ if (
7062
+ !key ||
7063
+ self[key] === undefined ||
7064
+ _rewrite === true ||
7065
+ (_rewrite === undefined && self[key] !== false)
7066
+ ) {
6701
7067
  self[key || _header] = normalizeValue(_value);
6702
7068
  }
6703
7069
  }
@@ -6706,21 +7072,26 @@ class AxiosHeaders {
6706
7072
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
6707
7073
 
6708
7074
  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(header) || header instanceof this.constructor) {
6709
- setHeaders(header, valueOrRewrite)
6710
- } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
7075
+ setHeaders(header, valueOrRewrite);
7076
+ } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
6711
7077
  setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"])(header), valueOrRewrite);
6712
7078
  } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(header) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isIterable(header)) {
6713
- let obj = {}, dest, key;
7079
+ let obj = {},
7080
+ dest,
7081
+ key;
6714
7082
  for (const entry of header) {
6715
7083
  if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(entry)) {
6716
7084
  throw TypeError('Object iterator must return a key-value pair');
6717
7085
  }
6718
7086
 
6719
- obj[key = entry[0]] = (dest = obj[key]) ?
6720
- (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
7087
+ obj[(key = entry[0])] = (dest = obj[key])
7088
+ ? _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(dest)
7089
+ ? [...dest, entry[1]]
7090
+ : [dest, entry[1]]
7091
+ : entry[1];
6721
7092
  }
6722
7093
 
6723
- setHeaders(obj, valueOrRewrite)
7094
+ setHeaders(obj, valueOrRewrite);
6724
7095
  } else {
6725
7096
  header != null && setHeader(valueOrRewrite, header, rewrite);
6726
7097
  }
@@ -6764,7 +7135,11 @@ class AxiosHeaders {
6764
7135
  if (header) {
6765
7136
  const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(this, header);
6766
7137
 
6767
- return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
7138
+ return !!(
7139
+ key &&
7140
+ this[key] !== undefined &&
7141
+ (!matcher || matchHeaderValue(this, this[key], key, matcher))
7142
+ );
6768
7143
  }
6769
7144
 
6770
7145
  return false;
@@ -6804,7 +7179,7 @@ class AxiosHeaders {
6804
7179
 
6805
7180
  while (i--) {
6806
7181
  const key = keys[i];
6807
- if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
7182
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
6808
7183
  delete this[key];
6809
7184
  deleted = true;
6810
7185
  }
@@ -6848,7 +7223,9 @@ class AxiosHeaders {
6848
7223
  const obj = Object.create(null);
6849
7224
 
6850
7225
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => {
6851
- value != null && value !== false && (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.join(', ') : value);
7226
+ value != null &&
7227
+ value !== false &&
7228
+ (obj[header] = asStrings && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) ? value.join(', ') : value);
6852
7229
  });
6853
7230
 
6854
7231
  return obj;
@@ -6859,11 +7236,13 @@ class AxiosHeaders {
6859
7236
  }
6860
7237
 
6861
7238
  toString() {
6862
- return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
7239
+ return Object.entries(this.toJSON())
7240
+ .map(([header, value]) => header + ': ' + value)
7241
+ .join('\n');
6863
7242
  }
6864
7243
 
6865
7244
  getSetCookie() {
6866
- return this.get("set-cookie") || [];
7245
+ return this.get('set-cookie') || [];
6867
7246
  }
6868
7247
 
6869
7248
  get [Symbol.toStringTag]() {
@@ -6883,9 +7262,12 @@ class AxiosHeaders {
6883
7262
  }
6884
7263
 
6885
7264
  static accessor(header) {
6886
- const internals = this[$internals] = (this[$internals] = {
6887
- accessors: {}
6888
- });
7265
+ const internals =
7266
+ (this[$internals] =
7267
+ this[$internals] =
7268
+ {
7269
+ accessors: {},
7270
+ });
6889
7271
 
6890
7272
  const accessors = internals.accessors;
6891
7273
  const prototype = this.prototype;
@@ -6905,17 +7287,24 @@ class AxiosHeaders {
6905
7287
  }
6906
7288
  }
6907
7289
 
6908
- AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
7290
+ AxiosHeaders.accessor([
7291
+ 'Content-Type',
7292
+ 'Content-Length',
7293
+ 'Accept',
7294
+ 'Accept-Encoding',
7295
+ 'User-Agent',
7296
+ 'Authorization',
7297
+ ]);
6909
7298
 
6910
7299
  // reserved names hotfix
6911
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
7300
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
6912
7301
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
6913
7302
  return {
6914
7303
  get: () => value,
6915
7304
  set(headerValue) {
6916
7305
  this[mapped] = headerValue;
6917
- }
6918
- }
7306
+ },
7307
+ };
6919
7308
  });
6920
7309
 
6921
7310
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders);
@@ -6959,7 +7348,7 @@ class InterceptorManager {
6959
7348
  fulfilled,
6960
7349
  rejected,
6961
7350
  synchronous: options ? options.synchronous : false,
6962
- runWhen: options ? options.runWhen : null
7351
+ runWhen: options ? options.runWhen : null,
6963
7352
  });
6964
7353
  return this.handlers.length - 1;
6965
7354
  }
@@ -7041,7 +7430,7 @@ __webpack_require__.r(__webpack_exports__);
7041
7430
  */
7042
7431
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
7043
7432
  let isRelativeUrl = !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL);
7044
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
7433
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
7045
7434
  return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL);
7046
7435
  }
7047
7436
  return requestedURL;
@@ -7105,10 +7494,7 @@ function dispatchRequest(config) {
7105
7494
  config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(config.headers);
7106
7495
 
7107
7496
  // Transform request data
7108
- config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
7109
- config,
7110
- config.transformRequest
7111
- );
7497
+ config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(config, config.transformRequest);
7112
7498
 
7113
7499
  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
7114
7500
  config.headers.setContentType('application/x-www-form-urlencoded', false);
@@ -7116,36 +7502,47 @@ function dispatchRequest(config) {
7116
7502
 
7117
7503
  const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_5__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].adapter, config);
7118
7504
 
7119
- return adapter(config).then(function onAdapterResolution(response) {
7120
- throwIfCancellationRequested(config);
7121
-
7122
- // Transform response data
7123
- response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
7124
- config,
7125
- config.transformResponse,
7126
- response
7127
- );
7505
+ return adapter(config).then(
7506
+ function onAdapterResolution(response) {
7507
+ throwIfCancellationRequested(config);
7128
7508
 
7129
- response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(response.headers);
7509
+ // Expose the current response on config so that transformResponse can
7510
+ // attach it to any AxiosError it throws (e.g. on JSON parse failure).
7511
+ // We clean it up afterwards to avoid polluting the config object.
7512
+ config.response = response;
7513
+ try {
7514
+ response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(config, config.transformResponse, response);
7515
+ } finally {
7516
+ delete config.response;
7517
+ }
7130
7518
 
7131
- return response;
7132
- }, function onAdapterRejection(reason) {
7133
- if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__["default"])(reason)) {
7134
- throwIfCancellationRequested(config);
7519
+ response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(response.headers);
7135
7520
 
7136
- // Transform response data
7137
- if (reason && reason.response) {
7138
- reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
7139
- config,
7140
- config.transformResponse,
7141
- reason.response
7142
- );
7143
- reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(reason.response.headers);
7521
+ return response;
7522
+ },
7523
+ function onAdapterRejection(reason) {
7524
+ if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__["default"])(reason)) {
7525
+ throwIfCancellationRequested(config);
7526
+
7527
+ // Transform response data
7528
+ if (reason && reason.response) {
7529
+ config.response = reason.response;
7530
+ try {
7531
+ reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
7532
+ config,
7533
+ config.transformResponse,
7534
+ reason.response
7535
+ );
7536
+ } finally {
7537
+ delete config.response;
7538
+ }
7539
+ reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(reason.response.headers);
7540
+ }
7144
7541
  }
7145
- }
7146
7542
 
7147
- return Promise.reject(reason);
7148
- });
7543
+ return Promise.reject(reason);
7544
+ }
7545
+ );
7149
7546
  }
7150
7547
 
7151
7548
 
@@ -7168,8 +7565,7 @@ __webpack_require__.r(__webpack_exports__);
7168
7565
 
7169
7566
 
7170
7567
 
7171
- const headersToObject = (thing) =>
7172
- thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"] ? { ...thing } : thing;
7568
+ const headersToObject = (thing) => (thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"] ? { ...thing } : thing);
7173
7569
 
7174
7570
  /**
7175
7571
  * Config-specific merge-function which creates a new config-object
@@ -7183,7 +7579,21 @@ const headersToObject = (thing) =>
7183
7579
  function mergeConfig(config1, config2) {
7184
7580
  // eslint-disable-next-line no-param-reassign
7185
7581
  config2 = config2 || {};
7186
- const config = {};
7582
+
7583
+ // Use a null-prototype object so that downstream reads such as `config.auth`
7584
+ // or `config.baseURL` cannot inherit polluted values from Object.prototype.
7585
+ // `hasOwnProperty` is restored as a non-enumerable own slot to preserve
7586
+ // ergonomics for user code that relies on it.
7587
+ const config = Object.create(null);
7588
+ Object.defineProperty(config, 'hasOwnProperty', {
7589
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
7590
+ // this data descriptor into an accessor descriptor on the way in.
7591
+ __proto__: null,
7592
+ value: Object.prototype.hasOwnProperty,
7593
+ enumerable: false,
7594
+ writable: true,
7595
+ configurable: true,
7596
+ });
7187
7597
 
7188
7598
  function getMergedValue(target, source, prop, caseless) {
7189
7599
  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source)) {
@@ -7222,9 +7632,9 @@ function mergeConfig(config1, config2) {
7222
7632
 
7223
7633
  // eslint-disable-next-line consistent-return
7224
7634
  function mergeDirectKeys(a, b, prop) {
7225
- if (prop in config2) {
7635
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config2, prop)) {
7226
7636
  return getMergedValue(a, b);
7227
- } else if (prop in config1) {
7637
+ } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config1, prop)) {
7228
7638
  return getMergedValue(undefined, a);
7229
7639
  }
7230
7640
  }
@@ -7256,29 +7666,21 @@ function mergeConfig(config1, config2) {
7256
7666
  httpsAgent: defaultToConfig2,
7257
7667
  cancelToken: defaultToConfig2,
7258
7668
  socketPath: defaultToConfig2,
7669
+ allowedSocketPaths: defaultToConfig2,
7259
7670
  responseEncoding: defaultToConfig2,
7260
7671
  validateStatus: mergeDirectKeys,
7261
7672
  headers: (a, b, prop) =>
7262
7673
  mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
7263
7674
  };
7264
7675
 
7265
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(
7266
- Object.keys({ ...config1, ...config2 }),
7267
- function computeConfigValue(prop) {
7268
- if (
7269
- prop === "__proto__" ||
7270
- prop === "constructor" ||
7271
- prop === "prototype"
7272
- )
7273
- return;
7274
- const merge = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(mergeMap, prop)
7275
- ? mergeMap[prop]
7276
- : mergeDeepProperties;
7277
- const configValue = merge(config1[prop], config2[prop], prop);
7278
- (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) ||
7279
- (config[prop] = configValue);
7280
- },
7281
- );
7676
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
7677
+ if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
7678
+ const merge = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
7679
+ const a = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config1, prop) ? config1[prop] : undefined;
7680
+ const b = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config2, prop) ? config2[prop] : undefined;
7681
+ const configValue = merge(a, b, prop);
7682
+ (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
7683
+ });
7282
7684
 
7283
7685
  return config;
7284
7686
  }
@@ -7317,7 +7719,7 @@ function settle(resolve, reject, response) {
7317
7719
  } else {
7318
7720
  reject(new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"](
7319
7721
  'Request failed with status code ' + response.status,
7320
- [_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_REQUEST, _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
7722
+ response.status >= 400 && response.status < 500 ? _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_REQUEST : _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_BAD_RESPONSE,
7321
7723
  response.config,
7322
7724
  response.request,
7323
7725
  response
@@ -7400,6 +7802,8 @@ __webpack_require__.r(__webpack_exports__);
7400
7802
 
7401
7803
 
7402
7804
 
7805
+ const own = (obj, key) => (obj != null && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(obj, key) ? obj[key] : undefined);
7806
+
7403
7807
  /**
7404
7808
  * It takes a string, tries to parse it, and if it fails, it returns the stringified version
7405
7809
  * of the input
@@ -7426,96 +7830,110 @@ function stringifySafely(rawValue, parser, encoder) {
7426
7830
  }
7427
7831
 
7428
7832
  const defaults = {
7429
-
7430
7833
  transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_2__["default"],
7431
7834
 
7432
7835
  adapter: ['xhr', 'http', 'fetch'],
7433
7836
 
7434
- transformRequest: [function transformRequest(data, headers) {
7435
- const contentType = headers.getContentType() || '';
7436
- const hasJSONContentType = contentType.indexOf('application/json') > -1;
7437
- const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(data);
7837
+ transformRequest: [
7838
+ function transformRequest(data, headers) {
7839
+ const contentType = headers.getContentType() || '';
7840
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
7841
+ const isObjectPayload = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(data);
7438
7842
 
7439
- if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(data)) {
7440
- data = new FormData(data);
7441
- }
7843
+ if (isObjectPayload && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(data)) {
7844
+ data = new FormData(data);
7845
+ }
7442
7846
 
7443
- const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data);
7847
+ const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data);
7444
7848
 
7445
- if (isFormData) {
7446
- return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__["default"])(data)) : data;
7447
- }
7849
+ if (isFormData) {
7850
+ return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__["default"])(data)) : data;
7851
+ }
7448
7852
 
7449
- if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) ||
7450
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) ||
7451
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) ||
7452
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) ||
7453
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data) ||
7454
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(data)
7455
- ) {
7456
- return data;
7457
- }
7458
- if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(data)) {
7459
- return data.buffer;
7460
- }
7461
- if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(data)) {
7462
- headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
7463
- return data.toString();
7464
- }
7853
+ if (
7854
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) ||
7855
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) ||
7856
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) ||
7857
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) ||
7858
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data) ||
7859
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(data)
7860
+ ) {
7861
+ return data;
7862
+ }
7863
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(data)) {
7864
+ return data.buffer;
7865
+ }
7866
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(data)) {
7867
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
7868
+ return data.toString();
7869
+ }
7465
7870
 
7466
- let isFileList;
7871
+ let isFileList;
7467
7872
 
7468
- if (isObjectPayload) {
7469
- if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
7470
- return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__["default"])(data, this.formSerializer).toString();
7471
- }
7873
+ if (isObjectPayload) {
7874
+ const formSerializer = own(this, 'formSerializer');
7875
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
7876
+ return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__["default"])(data, formSerializer).toString();
7877
+ }
7472
7878
 
7473
- if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
7474
- const _FormData = this.env && this.env.FormData;
7879
+ if (
7880
+ (isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) ||
7881
+ contentType.indexOf('multipart/form-data') > -1
7882
+ ) {
7883
+ const env = own(this, 'env');
7884
+ const _FormData = env && env.FormData;
7475
7885
 
7476
- return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
7477
- isFileList ? {'files[]': data} : data,
7478
- _FormData && new _FormData(),
7479
- this.formSerializer
7480
- );
7886
+ return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
7887
+ isFileList ? { 'files[]': data } : data,
7888
+ _FormData && new _FormData(),
7889
+ formSerializer
7890
+ );
7891
+ }
7481
7892
  }
7482
- }
7483
7893
 
7484
- if (isObjectPayload || hasJSONContentType ) {
7485
- headers.setContentType('application/json', false);
7486
- return stringifySafely(data);
7487
- }
7894
+ if (isObjectPayload || hasJSONContentType) {
7895
+ headers.setContentType('application/json', false);
7896
+ return stringifySafely(data);
7897
+ }
7488
7898
 
7489
- return data;
7490
- }],
7899
+ return data;
7900
+ },
7901
+ ],
7491
7902
 
7492
- transformResponse: [function transformResponse(data) {
7493
- const transitional = this.transitional || defaults.transitional;
7494
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
7495
- const JSONRequested = this.responseType === 'json';
7903
+ transformResponse: [
7904
+ function transformResponse(data) {
7905
+ const transitional = own(this, 'transitional') || defaults.transitional;
7906
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
7907
+ const responseType = own(this, 'responseType');
7908
+ const JSONRequested = responseType === 'json';
7496
7909
 
7497
- if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isResponse(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(data)) {
7498
- return data;
7499
- }
7910
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isResponse(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(data)) {
7911
+ return data;
7912
+ }
7500
7913
 
7501
- if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
7502
- const silentJSONParsing = transitional && transitional.silentJSONParsing;
7503
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
7914
+ if (
7915
+ data &&
7916
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) &&
7917
+ ((forcedJSONParsing && !responseType) || JSONRequested)
7918
+ ) {
7919
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
7920
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
7504
7921
 
7505
- try {
7506
- return JSON.parse(data, this.parseReviver);
7507
- } catch (e) {
7508
- if (strictJSONParsing) {
7509
- if (e.name === 'SyntaxError') {
7510
- throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_RESPONSE, this, null, this.response);
7922
+ try {
7923
+ return JSON.parse(data, own(this, 'parseReviver'));
7924
+ } catch (e) {
7925
+ if (strictJSONParsing) {
7926
+ if (e.name === 'SyntaxError') {
7927
+ throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_RESPONSE, this, null, own(this, 'response'));
7928
+ }
7929
+ throw e;
7511
7930
  }
7512
- throw e;
7513
7931
  }
7514
7932
  }
7515
- }
7516
7933
 
7517
- return data;
7518
- }],
7934
+ return data;
7935
+ },
7936
+ ],
7519
7937
 
7520
7938
  /**
7521
7939
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
@@ -7531,7 +7949,7 @@ const defaults = {
7531
7949
 
7532
7950
  env: {
7533
7951
  FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].classes.FormData,
7534
- Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].classes.Blob
7952
+ Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].classes.Blob,
7535
7953
  },
7536
7954
 
7537
7955
  validateStatus: function validateStatus(status) {
@@ -7540,13 +7958,13 @@ const defaults = {
7540
7958
 
7541
7959
  headers: {
7542
7960
  common: {
7543
- 'Accept': 'application/json, text/plain, */*',
7544
- 'Content-Type': undefined
7545
- }
7546
- }
7961
+ Accept: 'application/json, text/plain, */*',
7962
+ 'Content-Type': undefined,
7963
+ },
7964
+ },
7547
7965
  };
7548
7966
 
7549
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
7967
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query'], (method) => {
7550
7968
  defaults.headers[method] = {};
7551
7969
  });
7552
7970
 
@@ -7571,7 +7989,7 @@ __webpack_require__.r(__webpack_exports__);
7571
7989
  silentJSONParsing: true,
7572
7990
  forcedJSONParsing: true,
7573
7991
  clarifyTimeoutError: false,
7574
- legacyInterceptorReqResOrdering: true
7992
+ legacyInterceptorReqResOrdering: true,
7575
7993
  });
7576
7994
 
7577
7995
 
@@ -7587,7 +8005,7 @@ __webpack_require__.r(__webpack_exports__);
7587
8005
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7588
8006
  /* harmony export */ VERSION: () => (/* binding */ VERSION)
7589
8007
  /* harmony export */ });
7590
- const VERSION = "1.13.5";
8008
+ const VERSION = "1.16.1";
7591
8009
 
7592
8010
  /***/ }),
7593
8011
 
@@ -7622,9 +8040,8 @@ function encode(str) {
7622
8040
  ')': '%29',
7623
8041
  '~': '%7E',
7624
8042
  '%20': '+',
7625
- '%00': '\x00'
7626
8043
  };
7627
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
8044
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
7628
8045
  return charMap[match];
7629
8046
  });
7630
8047
  }
@@ -7650,13 +8067,17 @@ prototype.append = function append(name, value) {
7650
8067
  };
7651
8068
 
7652
8069
  prototype.toString = function toString(encoder) {
7653
- const _encode = encoder ? function(value) {
7654
- return encoder.call(this, value, encode);
7655
- } : encode;
8070
+ const _encode = encoder
8071
+ ? function (value) {
8072
+ return encoder.call(this, value, encode);
8073
+ }
8074
+ : encode;
7656
8075
 
7657
- return this._pairs.map(function each(pair) {
7658
- return _encode(pair[0]) + '=' + _encode(pair[1]);
7659
- }, '').join('&');
8076
+ return this._pairs
8077
+ .map(function each(pair) {
8078
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
8079
+ }, '')
8080
+ .join('&');
7660
8081
  };
7661
8082
 
7662
8083
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AxiosURLSearchParams);
@@ -7791,7 +8212,8 @@ function bind(fn, thisArg) {
7791
8212
 
7792
8213
  __webpack_require__.r(__webpack_exports__);
7793
8214
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7794
- /* harmony export */ "default": () => (/* binding */ buildURL)
8215
+ /* harmony export */ "default": () => (/* binding */ buildURL),
8216
+ /* harmony export */ encode: () => (/* binding */ encode)
7795
8217
  /* harmony export */ });
7796
8218
  /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
7797
8219
  /* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/AxiosURLSearchParams.js */ "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js");
@@ -7801,19 +8223,19 @@ __webpack_require__.r(__webpack_exports__);
7801
8223
 
7802
8224
 
7803
8225
  /**
7804
- * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
7805
- * URI encoded counterparts
8226
+ * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
8227
+ * their plain counterparts (`:`, `$`, `,`, `+`).
7806
8228
  *
7807
8229
  * @param {string} val The value to be encoded.
7808
8230
  *
7809
8231
  * @returns {string} The encoded value.
7810
8232
  */
7811
8233
  function encode(val) {
7812
- return encodeURIComponent(val).
7813
- replace(/%3A/gi, ':').
7814
- replace(/%24/g, '$').
7815
- replace(/%2C/gi, ',').
7816
- replace(/%20/g, '+');
8234
+ return encodeURIComponent(val)
8235
+ .replace(/%3A/gi, ':')
8236
+ .replace(/%24/g, '$')
8237
+ .replace(/%2C/gi, ',')
8238
+ .replace(/%20/g, '+');
7817
8239
  }
7818
8240
 
7819
8241
  /**
@@ -7830,11 +8252,13 @@ function buildURL(url, params, options) {
7830
8252
  return url;
7831
8253
  }
7832
8254
 
7833
- const _encode = options && options.encode || encode;
8255
+ const _encode = (options && options.encode) || encode;
7834
8256
 
7835
- const _options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(options) ? {
7836
- serialize: options
7837
- } : options;
8257
+ const _options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(options)
8258
+ ? {
8259
+ serialize: options,
8260
+ }
8261
+ : options;
7838
8262
 
7839
8263
  const serializeFn = _options && _options.serialize;
7840
8264
 
@@ -7843,13 +8267,13 @@ function buildURL(url, params, options) {
7843
8267
  if (serializeFn) {
7844
8268
  serializedParams = serializeFn(params, _options);
7845
8269
  } else {
7846
- serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(params) ?
7847
- params.toString() :
7848
- new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params, _options).toString(_encode);
8270
+ serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(params)
8271
+ ? params.toString()
8272
+ : new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params, _options).toString(_encode);
7849
8273
  }
7850
8274
 
7851
8275
  if (serializedParams) {
7852
- const hashmarkIndex = url.indexOf("#");
8276
+ const hashmarkIndex = url.indexOf('#');
7853
8277
 
7854
8278
  if (hashmarkIndex !== -1) {
7855
8279
  url = url.slice(0, hashmarkIndex);
@@ -7910,47 +8334,56 @@ __webpack_require__.r(__webpack_exports__);
7910
8334
 
7911
8335
 
7912
8336
  const composeSignals = (signals, timeout) => {
7913
- const {length} = (signals = signals ? signals.filter(Boolean) : []);
8337
+ signals = signals ? signals.filter(Boolean) : [];
7914
8338
 
7915
- if (timeout || length) {
7916
- let controller = new AbortController();
8339
+ if (!timeout && !signals.length) {
8340
+ return;
8341
+ }
7917
8342
 
7918
- let aborted;
8343
+ const controller = new AbortController();
7919
8344
 
7920
- const onabort = function (reason) {
7921
- if (!aborted) {
7922
- aborted = true;
7923
- unsubscribe();
7924
- const err = reason instanceof Error ? reason : this.reason;
7925
- controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](err instanceof Error ? err.message : err));
7926
- }
8345
+ let aborted = false;
8346
+
8347
+ const onabort = function (reason) {
8348
+ if (!aborted) {
8349
+ aborted = true;
8350
+ unsubscribe();
8351
+ const err = reason instanceof Error ? reason : this.reason;
8352
+ controller.abort(
8353
+ err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]
8354
+ ? err
8355
+ : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](err instanceof Error ? err.message : err)
8356
+ );
7927
8357
  }
8358
+ };
7928
8359
 
7929
- let timer = timeout && setTimeout(() => {
8360
+ let timer =
8361
+ timeout &&
8362
+ setTimeout(() => {
7930
8363
  timer = null;
7931
- onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](`timeout of ${timeout}ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ETIMEDOUT))
7932
- }, timeout)
7933
-
7934
- const unsubscribe = () => {
7935
- if (signals) {
7936
- timer && clearTimeout(timer);
7937
- timer = null;
7938
- signals.forEach(signal => {
7939
- signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
7940
- });
7941
- signals = null;
7942
- }
7943
- }
8364
+ onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](`timeout of ${timeout}ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ETIMEDOUT));
8365
+ }, timeout);
8366
+
8367
+ const unsubscribe = () => {
8368
+ if (!signals) { return; }
8369
+ timer && clearTimeout(timer);
8370
+ timer = null;
8371
+ signals.forEach((signal) => {
8372
+ signal.unsubscribe
8373
+ ? signal.unsubscribe(onabort)
8374
+ : signal.removeEventListener('abort', onabort);
8375
+ });
8376
+ signals = null;
8377
+ };
7944
8378
 
7945
- signals.forEach((signal) => signal.addEventListener('abort', onabort));
8379
+ signals.forEach((signal) => signal.addEventListener('abort', onabort));
7946
8380
 
7947
- const {signal} = controller;
8381
+ const { signal } = controller;
7948
8382
 
7949
- signal.unsubscribe = () => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].asap(unsubscribe);
8383
+ signal.unsubscribe = () => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].asap(unsubscribe);
7950
8384
 
7951
- return signal;
7952
- }
7953
- }
8385
+ return signal;
8386
+ };
7954
8387
 
7955
8388
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (composeSignals);
7956
8389
 
@@ -7972,56 +8405,177 @@ __webpack_require__.r(__webpack_exports__);
7972
8405
 
7973
8406
 
7974
8407
 
7975
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasStandardBrowserEnv ?
8408
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasStandardBrowserEnv
8409
+ ? // Standard browser envs support document.cookie
8410
+ {
8411
+ write(name, value, expires, path, domain, secure, sameSite) {
8412
+ if (typeof document === 'undefined') return;
8413
+
8414
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
8415
+
8416
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isNumber(expires)) {
8417
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
8418
+ }
8419
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(path)) {
8420
+ cookie.push(`path=${path}`);
8421
+ }
8422
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(domain)) {
8423
+ cookie.push(`domain=${domain}`);
8424
+ }
8425
+ if (secure === true) {
8426
+ cookie.push('secure');
8427
+ }
8428
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(sameSite)) {
8429
+ cookie.push(`SameSite=${sameSite}`);
8430
+ }
8431
+
8432
+ document.cookie = cookie.join('; ');
8433
+ },
8434
+
8435
+ read(name) {
8436
+ if (typeof document === 'undefined') return null;
8437
+ // Match name=value by splitting on the semicolon separator instead of building a
8438
+ // RegExp from `name` — interpolating an unescaped string into a RegExp would let
8439
+ // metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or
8440
+ // match the wrong cookie. Browsers may serialize cookie pairs as either ";" or
8441
+ // "; ", so ignore optional whitespace before each cookie name.
8442
+ const cookies = document.cookie.split(';');
8443
+ for (let i = 0; i < cookies.length; i++) {
8444
+ const cookie = cookies[i].replace(/^\s+/, '');
8445
+ const eq = cookie.indexOf('=');
8446
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
8447
+ return decodeURIComponent(cookie.slice(eq + 1));
8448
+ }
8449
+ }
8450
+ return null;
8451
+ },
8452
+
8453
+ remove(name) {
8454
+ this.write(name, '', Date.now() - 86400000, '/');
8455
+ },
8456
+ }
8457
+ : // Non-standard browser env (web workers, react-native) lack needed support.
8458
+ {
8459
+ write() {},
8460
+ read() {
8461
+ return null;
8462
+ },
8463
+ remove() {},
8464
+ });
7976
8465
 
7977
- // Standard browser envs support document.cookie
7978
- {
7979
- write(name, value, expires, path, domain, secure, sameSite) {
7980
- if (typeof document === 'undefined') return;
7981
8466
 
7982
- const cookie = [`${name}=${encodeURIComponent(value)}`];
8467
+ /***/ }),
7983
8468
 
7984
- if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isNumber(expires)) {
7985
- cookie.push(`expires=${new Date(expires).toUTCString()}`);
7986
- }
7987
- if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(path)) {
7988
- cookie.push(`path=${path}`);
7989
- }
7990
- if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(domain)) {
7991
- cookie.push(`domain=${domain}`);
7992
- }
7993
- if (secure === true) {
7994
- cookie.push('secure');
7995
- }
7996
- if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(sameSite)) {
7997
- cookie.push(`SameSite=${sameSite}`);
8469
+ /***/ "./node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js":
8470
+ /*!***********************************************************************!*\
8471
+ !*** ./node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js ***!
8472
+ \***********************************************************************/
8473
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8474
+
8475
+ __webpack_require__.r(__webpack_exports__);
8476
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8477
+ /* harmony export */ "default": () => (/* binding */ estimateDataURLDecodedBytes)
8478
+ /* harmony export */ });
8479
+ /**
8480
+ * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
8481
+ * - For base64: compute exact decoded size using length and padding;
8482
+ * handle %XX at the character-count level (no string allocation).
8483
+ * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
8484
+ *
8485
+ * @param {string} url
8486
+ * @returns {number}
8487
+ */
8488
+ function estimateDataURLDecodedBytes(url) {
8489
+ if (!url || typeof url !== 'string') return 0;
8490
+ if (!url.startsWith('data:')) return 0;
8491
+
8492
+ const comma = url.indexOf(',');
8493
+ if (comma < 0) return 0;
8494
+
8495
+ const meta = url.slice(5, comma);
8496
+ const body = url.slice(comma + 1);
8497
+ const isBase64 = /;base64/i.test(meta);
8498
+
8499
+ if (isBase64) {
8500
+ let effectiveLen = body.length;
8501
+ const len = body.length; // cache length
8502
+
8503
+ for (let i = 0; i < len; i++) {
8504
+ if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
8505
+ const a = body.charCodeAt(i + 1);
8506
+ const b = body.charCodeAt(i + 2);
8507
+ const isHex =
8508
+ ((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&
8509
+ ((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));
8510
+
8511
+ if (isHex) {
8512
+ effectiveLen -= 2;
8513
+ i += 2;
8514
+ }
7998
8515
  }
8516
+ }
7999
8517
 
8000
- document.cookie = cookie.join('; ');
8001
- },
8518
+ let pad = 0;
8519
+ let idx = len - 1;
8002
8520
 
8003
- read(name) {
8004
- if (typeof document === 'undefined') return null;
8005
- const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
8006
- return match ? decodeURIComponent(match[1]) : null;
8007
- },
8521
+ const tailIsPct3D = (j) =>
8522
+ j >= 2 &&
8523
+ body.charCodeAt(j - 2) === 37 && // '%'
8524
+ body.charCodeAt(j - 1) === 51 && // '3'
8525
+ (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
8008
8526
 
8009
- remove(name) {
8010
- this.write(name, '', Date.now() - 86400000, '/');
8527
+ if (idx >= 0) {
8528
+ if (body.charCodeAt(idx) === 61 /* '=' */) {
8529
+ pad++;
8530
+ idx--;
8531
+ } else if (tailIsPct3D(idx)) {
8532
+ pad++;
8533
+ idx -= 3;
8534
+ }
8011
8535
  }
8012
- }
8013
8536
 
8014
- :
8537
+ if (pad === 1 && idx >= 0) {
8538
+ if (body.charCodeAt(idx) === 61 /* '=' */) {
8539
+ pad++;
8540
+ } else if (tailIsPct3D(idx)) {
8541
+ pad++;
8542
+ }
8543
+ }
8015
8544
 
8016
- // Non-standard browser env (web workers, react-native) lack needed support.
8017
- {
8018
- write() {},
8019
- read() {
8020
- return null;
8021
- },
8022
- remove() {}
8023
- });
8545
+ const groups = Math.floor(effectiveLen / 4);
8546
+ const bytes = groups * 3 - (pad || 0);
8547
+ return bytes > 0 ? bytes : 0;
8548
+ }
8549
+
8550
+ if (typeof Buffer !== 'undefined' && typeof Buffer.byteLength === 'function') {
8551
+ return Buffer.byteLength(body, 'utf8');
8552
+ }
8024
8553
 
8554
+ // Compute UTF-8 byte length directly from UTF-16 code units without allocating
8555
+ // a byte buffer (TextEncoder.encode would defeat the DoS guard on large bodies).
8556
+ // Using body.length here would undercount non-ASCII (e.g. '€' is 1 code unit
8557
+ // but 3 UTF-8 bytes).
8558
+ let bytes = 0;
8559
+ for (let i = 0, len = body.length; i < len; i++) {
8560
+ const c = body.charCodeAt(i);
8561
+ if (c < 0x80) {
8562
+ bytes += 1;
8563
+ } else if (c < 0x800) {
8564
+ bytes += 2;
8565
+ } else if (c >= 0xd800 && c <= 0xdbff && i + 1 < len) {
8566
+ const next = body.charCodeAt(i + 1);
8567
+ if (next >= 0xdc00 && next <= 0xdfff) {
8568
+ bytes += 4;
8569
+ i++;
8570
+ } else {
8571
+ bytes += 3;
8572
+ }
8573
+ } else {
8574
+ bytes += 3;
8575
+ }
8576
+ }
8577
+ return bytes;
8578
+ }
8025
8579
 
8026
8580
 
8027
8581
  /***/ }),
@@ -8053,7 +8607,7 @@ function parsePropPath(name) {
8053
8607
  // foo.x.y.z
8054
8608
  // foo-x-y-z
8055
8609
  // foo x y z
8056
- return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].matchAll(/\w+|\[(\w*)]/g, name).map(match => {
8610
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
8057
8611
  return match[0] === '[]' ? '' : match[1] || match[0];
8058
8612
  });
8059
8613
  }
@@ -8097,7 +8651,9 @@ function formDataToJSON(formData) {
8097
8651
 
8098
8652
  if (isLast) {
8099
8653
  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(target, name)) {
8100
- target[name] = [target[name], value];
8654
+ target[name] = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target[name])
8655
+ ? target[name].concat(value)
8656
+ : [target[name], value];
8101
8657
  } else {
8102
8658
  target[name] = value;
8103
8659
  }
@@ -8105,7 +8661,7 @@ function formDataToJSON(formData) {
8105
8661
  return !isNumericKey;
8106
8662
  }
8107
8663
 
8108
- if (!target[name] || !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(target[name])) {
8664
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(target, name) || !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(target[name])) {
8109
8665
  target[name] = [];
8110
8666
  }
8111
8667
 
@@ -8167,7 +8723,6 @@ function isAbsoluteURL(url) {
8167
8723
  }
8168
8724
 
8169
8725
 
8170
-
8171
8726
  /***/ }),
8172
8727
 
8173
8728
  /***/ "./node_modules/axios/lib/helpers/isAxiosError.js":
@@ -8193,7 +8748,7 @@ __webpack_require__.r(__webpack_exports__);
8193
8748
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
8194
8749
  */
8195
8750
  function isAxiosError(payload) {
8196
- return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(payload) && (payload.isAxiosError === true);
8751
+ return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(payload) && payload.isAxiosError === true;
8197
8752
  }
8198
8753
 
8199
8754
 
@@ -8212,18 +8767,20 @@ __webpack_require__.r(__webpack_exports__);
8212
8767
  /* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
8213
8768
 
8214
8769
 
8215
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
8216
- url = new URL(url, _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin);
8770
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv
8771
+ ? ((origin, isMSIE) => (url) => {
8772
+ url = new URL(url, _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin);
8217
8773
 
8218
- return (
8219
- origin.protocol === url.protocol &&
8220
- origin.host === url.host &&
8221
- (isMSIE || origin.port === url.port)
8222
- );
8223
- })(
8224
- new URL(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin),
8225
- _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator && /(msie|trident)/i.test(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator.userAgent)
8226
- ) : () => true);
8774
+ return (
8775
+ origin.protocol === url.protocol &&
8776
+ origin.host === url.host &&
8777
+ (isMSIE || origin.port === url.port)
8778
+ );
8779
+ })(
8780
+ new URL(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin),
8781
+ _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator && /(msie|trident)/i.test(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator.userAgent)
8782
+ )
8783
+ : () => true);
8227
8784
 
8228
8785
 
8229
8786
  /***/ }),
@@ -8262,10 +8819,23 @@ __webpack_require__.r(__webpack_exports__);
8262
8819
  // RawAxiosHeaders whose duplicates are ignored by node
8263
8820
  // c.f. https://nodejs.org/api/http.html#http_message_headers
8264
8821
  const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toObjectSet([
8265
- 'age', 'authorization', 'content-length', 'content-type', 'etag',
8266
- 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
8267
- 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
8268
- 'referer', 'retry-after', 'user-agent'
8822
+ 'age',
8823
+ 'authorization',
8824
+ 'content-length',
8825
+ 'content-type',
8826
+ 'etag',
8827
+ 'expires',
8828
+ 'from',
8829
+ 'host',
8830
+ 'if-modified-since',
8831
+ 'if-unmodified-since',
8832
+ 'last-modified',
8833
+ 'location',
8834
+ 'max-forwards',
8835
+ 'proxy-authorization',
8836
+ 'referer',
8837
+ 'retry-after',
8838
+ 'user-agent',
8269
8839
  ]);
8270
8840
 
8271
8841
  /**
@@ -8282,31 +8852,32 @@ const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toOb
8282
8852
  *
8283
8853
  * @returns {Object} Headers parsed into an object
8284
8854
  */
8285
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (rawHeaders => {
8855
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((rawHeaders) => {
8286
8856
  const parsed = {};
8287
8857
  let key;
8288
8858
  let val;
8289
8859
  let i;
8290
8860
 
8291
- rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
8292
- i = line.indexOf(':');
8293
- key = line.substring(0, i).trim().toLowerCase();
8294
- val = line.substring(i + 1).trim();
8861
+ rawHeaders &&
8862
+ rawHeaders.split('\n').forEach(function parser(line) {
8863
+ i = line.indexOf(':');
8864
+ key = line.substring(0, i).trim().toLowerCase();
8865
+ val = line.substring(i + 1).trim();
8295
8866
 
8296
- if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
8297
- return;
8298
- }
8867
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
8868
+ return;
8869
+ }
8299
8870
 
8300
- if (key === 'set-cookie') {
8301
- if (parsed[key]) {
8302
- parsed[key].push(val);
8871
+ if (key === 'set-cookie') {
8872
+ if (parsed[key]) {
8873
+ parsed[key].push(val);
8874
+ } else {
8875
+ parsed[key] = [val];
8876
+ }
8303
8877
  } else {
8304
- parsed[key] = [val];
8878
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
8305
8879
  }
8306
- } else {
8307
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
8308
- }
8309
- });
8880
+ });
8310
8881
 
8311
8882
  return parsed;
8312
8883
  });
@@ -8327,8 +8898,8 @@ __webpack_require__.r(__webpack_exports__);
8327
8898
 
8328
8899
 
8329
8900
  function parseProtocol(url) {
8330
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
8331
- return match && match[1] || '';
8901
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
8902
+ return (match && match[1]) || '';
8332
8903
  }
8333
8904
 
8334
8905
 
@@ -8357,42 +8928,52 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
8357
8928
  let bytesNotified = 0;
8358
8929
  const _speedometer = (0,_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250);
8359
8930
 
8360
- return (0,_throttle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(e => {
8361
- const loaded = e.loaded;
8931
+ return (0,_throttle_js__WEBPACK_IMPORTED_MODULE_1__["default"])((e) => {
8932
+ if (!e || typeof e.loaded !== 'number') {
8933
+ return;
8934
+ }
8935
+ const rawLoaded = e.loaded;
8362
8936
  const total = e.lengthComputable ? e.total : undefined;
8363
- const progressBytes = loaded - bytesNotified;
8937
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
8938
+ const progressBytes = Math.max(0, loaded - bytesNotified);
8364
8939
  const rate = _speedometer(progressBytes);
8365
- const inRange = loaded <= total;
8366
8940
 
8367
- bytesNotified = loaded;
8941
+ bytesNotified = Math.max(bytesNotified, loaded);
8368
8942
 
8369
8943
  const data = {
8370
8944
  loaded,
8371
8945
  total,
8372
- progress: total ? (loaded / total) : undefined,
8946
+ progress: total ? loaded / total : undefined,
8373
8947
  bytes: progressBytes,
8374
8948
  rate: rate ? rate : undefined,
8375
- estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
8949
+ estimated: rate && total ? (total - loaded) / rate : undefined,
8376
8950
  event: e,
8377
8951
  lengthComputable: total != null,
8378
- [isDownloadStream ? 'download' : 'upload']: true
8952
+ [isDownloadStream ? 'download' : 'upload']: true,
8379
8953
  };
8380
8954
 
8381
8955
  listener(data);
8382
8956
  }, freq);
8383
- }
8957
+ };
8384
8958
 
8385
8959
  const progressEventDecorator = (total, throttled) => {
8386
8960
  const lengthComputable = total != null;
8387
8961
 
8388
- return [(loaded) => throttled[0]({
8389
- lengthComputable,
8390
- total,
8391
- loaded
8392
- }), throttled[1]];
8393
- }
8962
+ return [
8963
+ (loaded) =>
8964
+ throttled[0]({
8965
+ lengthComputable,
8966
+ total,
8967
+ loaded,
8968
+ }),
8969
+ throttled[1],
8970
+ ];
8971
+ };
8394
8972
 
8395
- const asyncDecorator = (fn) => (...args) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].asap(() => fn(...args));
8973
+ const asyncDecorator =
8974
+ (fn) =>
8975
+ (...args) =>
8976
+ _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].asap(() => fn(...args));
8396
8977
 
8397
8978
 
8398
8979
  /***/ }),
@@ -8424,19 +9005,65 @@ __webpack_require__.r(__webpack_exports__);
8424
9005
 
8425
9006
 
8426
9007
 
9008
+ const FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
9009
+
9010
+ function setFormDataHeaders(headers, formHeaders, policy) {
9011
+ if (policy !== 'content-only') {
9012
+ headers.set(formHeaders);
9013
+ return;
9014
+ }
9015
+
9016
+ Object.entries(formHeaders).forEach(([key, val]) => {
9017
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
9018
+ headers.set(key, val);
9019
+ }
9020
+ });
9021
+ }
9022
+
9023
+ /**
9024
+ * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
9025
+ * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
9026
+ *
9027
+ * @param {string} str The string to encode
9028
+ *
9029
+ * @returns {string} UTF-8 bytes as a Latin-1 string
9030
+ */
9031
+ const encodeUTF8 = (str) =>
9032
+ encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
9033
+ String.fromCharCode(parseInt(hex, 16))
9034
+ );
9035
+
8427
9036
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((config) => {
8428
9037
  const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_5__["default"])({}, config);
8429
9038
 
8430
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
9039
+ // Read only own properties to prevent prototype pollution gadgets
9040
+ // (e.g. Object.prototype.baseURL = 'https://evil.com').
9041
+ const own = (key) => (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasOwnProp(newConfig, key) ? newConfig[key] : undefined);
9042
+
9043
+ const data = own('data');
9044
+ let withXSRFToken = own('withXSRFToken');
9045
+ const xsrfHeaderName = own('xsrfHeaderName');
9046
+ const xsrfCookieName = own('xsrfCookieName');
9047
+ let headers = own('headers');
9048
+ const auth = own('auth');
9049
+ const baseURL = own('baseURL');
9050
+ const allowAbsoluteUrls = own('allowAbsoluteUrls');
9051
+ const url = own('url');
8431
9052
 
8432
9053
  newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__["default"].from(headers);
8433
9054
 
8434
- newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
9055
+ newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])(
9056
+ (0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__["default"])(baseURL, url, allowAbsoluteUrls),
9057
+ config.params,
9058
+ config.paramsSerializer
9059
+ );
8435
9060
 
8436
9061
  // HTTP basic authentication
8437
9062
  if (auth) {
8438
- headers.set('Authorization', 'Basic ' +
8439
- btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
9063
+ headers.set(
9064
+ 'Authorization',
9065
+ 'Basic ' +
9066
+ btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8(auth.password) : ''))
8440
9067
  );
8441
9068
  }
8442
9069
 
@@ -8445,26 +9072,26 @@ __webpack_require__.r(__webpack_exports__);
8445
9072
  headers.setContentType(undefined); // browser handles it
8446
9073
  } else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(data.getHeaders)) {
8447
9074
  // Node.js FormData (like form-data package)
8448
- const formHeaders = data.getHeaders();
8449
- // Only set safe headers to avoid overwriting security headers
8450
- const allowedHeaders = ['content-type', 'content-length'];
8451
- Object.entries(formHeaders).forEach(([key, val]) => {
8452
- if (allowedHeaders.includes(key.toLowerCase())) {
8453
- headers.set(key, val);
8454
- }
8455
- });
9075
+ setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
8456
9076
  }
8457
- }
9077
+ }
8458
9078
 
8459
9079
  // Add xsrf header
8460
9080
  // This is only done if running in a standard browser environment.
8461
9081
  // Specifically not if we're in a web worker, or react-native.
8462
9082
 
8463
9083
  if (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv) {
8464
- withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
9084
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(withXSRFToken)) {
9085
+ withXSRFToken = withXSRFToken(newConfig);
9086
+ }
9087
+
9088
+ // Strict boolean check — prevents proto-pollution gadgets (e.g. Object.prototype.withXSRFToken = 1)
9089
+ // and misconfigurations (e.g. "false") from short-circuiting the same-origin check and leaking
9090
+ // the XSRF token cross-origin.
9091
+ const shouldSendXSRF =
9092
+ withXSRFToken === true || (withXSRFToken == null && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_2__["default"])(newConfig.url));
8465
9093
 
8466
- if (withXSRFToken || (withXSRFToken !== false && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_2__["default"])(newConfig.url))) {
8467
- // Add xsrf header
9094
+ if (shouldSendXSRF) {
8468
9095
  const xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies_js__WEBPACK_IMPORTED_MODULE_3__["default"].read(xsrfCookieName);
8469
9096
 
8470
9097
  if (xsrfValue) {
@@ -8477,6 +9104,82 @@ __webpack_require__.r(__webpack_exports__);
8477
9104
  });
8478
9105
 
8479
9106
 
9107
+ /***/ }),
9108
+
9109
+ /***/ "./node_modules/axios/lib/helpers/sanitizeHeaderValue.js":
9110
+ /*!***************************************************************!*\
9111
+ !*** ./node_modules/axios/lib/helpers/sanitizeHeaderValue.js ***!
9112
+ \***************************************************************/
9113
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
9114
+
9115
+ __webpack_require__.r(__webpack_exports__);
9116
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9117
+ /* harmony export */ sanitizeByteStringHeaderValue: () => (/* binding */ sanitizeByteStringHeaderValue),
9118
+ /* harmony export */ sanitizeHeaderValue: () => (/* binding */ sanitizeHeaderValue),
9119
+ /* harmony export */ toByteStringHeaderObject: () => (/* binding */ toByteStringHeaderObject)
9120
+ /* harmony export */ });
9121
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
9122
+
9123
+
9124
+
9125
+
9126
+ function trimSPorHTAB(str) {
9127
+ let start = 0;
9128
+ let end = str.length;
9129
+
9130
+ while (start < end) {
9131
+ const code = str.charCodeAt(start);
9132
+
9133
+ if (code !== 0x09 && code !== 0x20) {
9134
+ break;
9135
+ }
9136
+
9137
+ start += 1;
9138
+ }
9139
+
9140
+ while (end > start) {
9141
+ const code = str.charCodeAt(end - 1);
9142
+
9143
+ if (code !== 0x09 && code !== 0x20) {
9144
+ break;
9145
+ }
9146
+
9147
+ end -= 1;
9148
+ }
9149
+
9150
+ return start === 0 && end === str.length ? str : str.slice(start, end);
9151
+ }
9152
+
9153
+ // The control-code ranges are intentional: header sanitization strips C0/DEL bytes.
9154
+ // eslint-disable-next-line no-control-regex
9155
+ const INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp('[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+', 'g');
9156
+ // eslint-disable-next-line no-control-regex
9157
+ const INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp('[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+', 'g');
9158
+
9159
+ function sanitizeValue(value, invalidChars) {
9160
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value)) {
9161
+ return value.map((item) => sanitizeValue(item, invalidChars));
9162
+ }
9163
+
9164
+ return trimSPorHTAB(String(value).replace(invalidChars, ''));
9165
+ }
9166
+
9167
+ const sanitizeHeaderValue = (value) =>
9168
+ sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
9169
+
9170
+ const sanitizeByteStringHeaderValue = (value) =>
9171
+ sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
9172
+
9173
+ function toByteStringHeaderObject(headers) {
9174
+ const byteStringHeaders = Object.create(null);
9175
+
9176
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(headers.toJSON(), (value, header) => {
9177
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
9178
+ });
9179
+
9180
+ return byteStringHeaders;
9181
+ }
9182
+
8480
9183
 
8481
9184
  /***/ }),
8482
9185
 
@@ -8540,7 +9243,7 @@ function speedometer(samplesCount, min) {
8540
9243
 
8541
9244
  const passed = startedAt && now - startedAt;
8542
9245
 
8543
- return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
9246
+ return passed ? Math.round((bytesCount * 1000) / passed) : undefined;
8544
9247
  };
8545
9248
  }
8546
9249
 
@@ -8621,23 +9324,23 @@ function throttle(fn, freq) {
8621
9324
  timer = null;
8622
9325
  }
8623
9326
  fn(...args);
8624
- }
9327
+ };
8625
9328
 
8626
9329
  const throttled = (...args) => {
8627
9330
  const now = Date.now();
8628
9331
  const passed = now - timestamp;
8629
- if ( passed >= threshold) {
9332
+ if (passed >= threshold) {
8630
9333
  invoke(args, now);
8631
9334
  } else {
8632
9335
  lastArgs = args;
8633
9336
  if (!timer) {
8634
9337
  timer = setTimeout(() => {
8635
9338
  timer = null;
8636
- invoke(lastArgs)
9339
+ invoke(lastArgs);
8637
9340
  }, threshold - passed);
8638
9341
  }
8639
9342
  }
8640
- }
9343
+ };
8641
9344
 
8642
9345
  const flush = () => lastArgs && invoke(lastArgs);
8643
9346
 
@@ -8702,11 +9405,14 @@ function removeBrackets(key) {
8702
9405
  */
8703
9406
  function renderKey(path, key, dots) {
8704
9407
  if (!path) return key;
8705
- return path.concat(key).map(function each(token, i) {
8706
- // eslint-disable-next-line no-param-reassign
8707
- token = removeBrackets(token);
8708
- return !dots && i ? '[' + token + ']' : token;
8709
- }).join(dots ? '.' : '');
9408
+ return path
9409
+ .concat(key)
9410
+ .map(function each(token, i) {
9411
+ // eslint-disable-next-line no-param-reassign
9412
+ token = removeBrackets(token);
9413
+ return !dots && i ? '[' + token + ']' : token;
9414
+ })
9415
+ .join(dots ? '.' : '');
8710
9416
  }
8711
9417
 
8712
9418
  /**
@@ -8756,21 +9462,27 @@ function toFormData(obj, formData, options) {
8756
9462
  formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__["default"] || FormData)();
8757
9463
 
8758
9464
  // eslint-disable-next-line no-param-reassign
8759
- options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(options, {
8760
- metaTokens: true,
8761
- dots: false,
8762
- indexes: false
8763
- }, false, function defined(option, source) {
8764
- // eslint-disable-next-line no-eq-null,eqeqeq
8765
- return !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(source[option]);
8766
- });
9465
+ options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(
9466
+ options,
9467
+ {
9468
+ metaTokens: true,
9469
+ dots: false,
9470
+ indexes: false,
9471
+ },
9472
+ false,
9473
+ function defined(option, source) {
9474
+ // eslint-disable-next-line no-eq-null,eqeqeq
9475
+ return !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(source[option]);
9476
+ }
9477
+ );
8767
9478
 
8768
9479
  const metaTokens = options.metaTokens;
8769
9480
  // eslint-disable-next-line no-use-before-define
8770
9481
  const visitor = options.visitor || defaultVisitor;
8771
9482
  const dots = options.dots;
8772
9483
  const indexes = options.indexes;
8773
- const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
9484
+ const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
9485
+ const maxDepth = options.maxDepth === undefined ? 100 : options.maxDepth;
8774
9486
  const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(formData);
8775
9487
 
8776
9488
  if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(visitor)) {
@@ -8812,6 +9524,11 @@ function toFormData(obj, formData, options) {
8812
9524
  function defaultVisitor(value, key, path) {
8813
9525
  let arr = value;
8814
9526
 
9527
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReactNative(formData) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReactNativeBlob(value)) {
9528
+ formData.append(renderKey(path, key, dots), convertValue(value));
9529
+ return false;
9530
+ }
9531
+
8815
9532
  if (value && !path && typeof value === 'object') {
8816
9533
  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '{}')) {
8817
9534
  // eslint-disable-next-line no-param-reassign
@@ -8820,17 +9537,22 @@ function toFormData(obj, formData, options) {
8820
9537
  value = JSON.stringify(value);
8821
9538
  } else if (
8822
9539
  (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) && isFlatArray(value)) ||
8823
- ((_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toArray(value))
8824
- )) {
9540
+ ((_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].endsWith(key, '[]')) && (arr = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toArray(value)))
9541
+ ) {
8825
9542
  // eslint-disable-next-line no-param-reassign
8826
9543
  key = removeBrackets(key);
8827
9544
 
8828
9545
  arr.forEach(function each(el, index) {
8829
- !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && formData.append(
8830
- // eslint-disable-next-line no-nested-ternary
8831
- indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
8832
- convertValue(el)
8833
- );
9546
+ !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) &&
9547
+ formData.append(
9548
+ // eslint-disable-next-line no-nested-ternary
9549
+ indexes === true
9550
+ ? renderKey([key], index, dots)
9551
+ : indexes === null
9552
+ ? key
9553
+ : key + '[]',
9554
+ convertValue(el)
9555
+ );
8834
9556
  });
8835
9557
  return false;
8836
9558
  }
@@ -8850,12 +9572,19 @@ function toFormData(obj, formData, options) {
8850
9572
  const exposedHelpers = Object.assign(predicates, {
8851
9573
  defaultVisitor,
8852
9574
  convertValue,
8853
- isVisitable
9575
+ isVisitable,
8854
9576
  });
8855
9577
 
8856
- function build(value, path) {
9578
+ function build(value, path, depth = 0) {
8857
9579
  if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(value)) return;
8858
9580
 
9581
+ if (depth > maxDepth) {
9582
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](
9583
+ 'Object is too deeply nested (' + depth + ' levels). Max depth: ' + maxDepth,
9584
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_FORM_DATA_DEPTH_EXCEEDED
9585
+ );
9586
+ }
9587
+
8859
9588
  if (stack.indexOf(value) !== -1) {
8860
9589
  throw Error('Circular reference detected in ' + path.join('.'));
8861
9590
  }
@@ -8863,12 +9592,12 @@ function toFormData(obj, formData, options) {
8863
9592
  stack.push(value);
8864
9593
 
8865
9594
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(value, function each(el, key) {
8866
- const result = !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) && visitor.call(
8867
- formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(key) ? key.trim() : key, path, exposedHelpers
8868
- );
9595
+ const result =
9596
+ !(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(el) || el === null) &&
9597
+ visitor.call(formData, el, _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(key) ? key.trim() : key, path, exposedHelpers);
8869
9598
 
8870
9599
  if (result === true) {
8871
- build(el, path ? path.concat(key) : [key]);
9600
+ build(el, path ? path.concat(key) : [key], depth + 1);
8872
9601
  }
8873
9602
  });
8874
9603
 
@@ -8910,7 +9639,7 @@ __webpack_require__.r(__webpack_exports__);
8910
9639
 
8911
9640
  function toURLEncodedForm(data, options) {
8912
9641
  return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_1__["default"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].classes.URLSearchParams(), {
8913
- visitor: function(value, key, path, helpers) {
9642
+ visitor: function (value, key, path, helpers) {
8914
9643
  if (_platform_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(value)) {
8915
9644
  this.append(key, value.toString('base64'));
8916
9645
  return false;
@@ -8918,7 +9647,7 @@ function toURLEncodedForm(data, options) {
8918
9647
 
8919
9648
  return helpers.defaultVisitor.apply(this, arguments);
8920
9649
  },
8921
- ...options
9650
+ ...options,
8922
9651
  });
8923
9652
  }
8924
9653
 
@@ -8937,7 +9666,6 @@ __webpack_require__.r(__webpack_exports__);
8937
9666
  /* harmony export */ streamChunk: () => (/* binding */ streamChunk),
8938
9667
  /* harmony export */ trackStream: () => (/* binding */ trackStream)
8939
9668
  /* harmony export */ });
8940
-
8941
9669
  const streamChunk = function* (chunk, chunkSize) {
8942
9670
  let len = chunk.byteLength;
8943
9671
 
@@ -8954,13 +9682,13 @@ const streamChunk = function* (chunk, chunkSize) {
8954
9682
  yield chunk.slice(pos, end);
8955
9683
  pos = end;
8956
9684
  }
8957
- }
9685
+ };
8958
9686
 
8959
9687
  const readBytes = async function* (iterable, chunkSize) {
8960
9688
  for await (const chunk of readStream(iterable)) {
8961
9689
  yield* streamChunk(chunk, chunkSize);
8962
9690
  }
8963
- }
9691
+ };
8964
9692
 
8965
9693
  const readStream = async function* (stream) {
8966
9694
  if (stream[Symbol.asyncIterator]) {
@@ -8971,7 +9699,7 @@ const readStream = async function* (stream) {
8971
9699
  const reader = stream.getReader();
8972
9700
  try {
8973
9701
  for (;;) {
8974
- const {done, value} = await reader.read();
9702
+ const { done, value } = await reader.read();
8975
9703
  if (done) {
8976
9704
  break;
8977
9705
  }
@@ -8980,7 +9708,7 @@ const readStream = async function* (stream) {
8980
9708
  } finally {
8981
9709
  await reader.cancel();
8982
9710
  }
8983
- }
9711
+ };
8984
9712
 
8985
9713
  const trackStream = (stream, chunkSize, onProgress, onFinish) => {
8986
9714
  const iterator = readBytes(stream, chunkSize);
@@ -8992,38 +9720,41 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
8992
9720
  done = true;
8993
9721
  onFinish && onFinish(e);
8994
9722
  }
8995
- }
9723
+ };
8996
9724
 
8997
- return new ReadableStream({
8998
- async pull(controller) {
8999
- try {
9000
- const {done, value} = await iterator.next();
9725
+ return new ReadableStream(
9726
+ {
9727
+ async pull(controller) {
9728
+ try {
9729
+ const { done, value } = await iterator.next();
9001
9730
 
9002
- if (done) {
9003
- _onFinish();
9004
- controller.close();
9005
- return;
9006
- }
9731
+ if (done) {
9732
+ _onFinish();
9733
+ controller.close();
9734
+ return;
9735
+ }
9007
9736
 
9008
- let len = value.byteLength;
9009
- if (onProgress) {
9010
- let loadedBytes = bytes += len;
9011
- onProgress(loadedBytes);
9737
+ let len = value.byteLength;
9738
+ if (onProgress) {
9739
+ let loadedBytes = (bytes += len);
9740
+ onProgress(loadedBytes);
9741
+ }
9742
+ controller.enqueue(new Uint8Array(value));
9743
+ } catch (err) {
9744
+ _onFinish(err);
9745
+ throw err;
9012
9746
  }
9013
- controller.enqueue(new Uint8Array(value));
9014
- } catch (err) {
9015
- _onFinish(err);
9016
- throw err;
9017
- }
9747
+ },
9748
+ cancel(reason) {
9749
+ _onFinish(reason);
9750
+ return iterator.return();
9751
+ },
9018
9752
  },
9019
- cancel(reason) {
9020
- _onFinish(reason);
9021
- return iterator.return();
9753
+ {
9754
+ highWaterMark: 2,
9022
9755
  }
9023
- }, {
9024
- highWaterMark: 2
9025
- })
9026
- }
9756
+ );
9757
+ };
9027
9758
 
9028
9759
 
9029
9760
  /***/ }),
@@ -9067,7 +9798,15 @@ const deprecatedWarnings = {};
9067
9798
  */
9068
9799
  validators.transitional = function transitional(validator, version, message) {
9069
9800
  function formatMessage(opt, desc) {
9070
- return '[Axios v' + _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
9801
+ return (
9802
+ '[Axios v' +
9803
+ _env_data_js__WEBPACK_IMPORTED_MODULE_0__.VERSION +
9804
+ "] Transitional option '" +
9805
+ opt +
9806
+ "'" +
9807
+ desc +
9808
+ (message ? '. ' + message : '')
9809
+ );
9071
9810
  }
9072
9811
 
9073
9812
  // eslint-disable-next-line func-names
@@ -9099,7 +9838,7 @@ validators.spelling = function spelling(correctSpelling) {
9099
9838
  // eslint-disable-next-line no-console
9100
9839
  console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
9101
9840
  return true;
9102
- }
9841
+ };
9103
9842
  };
9104
9843
 
9105
9844
  /**
@@ -9120,12 +9859,17 @@ function assertOptions(options, schema, allowUnknown) {
9120
9859
  let i = keys.length;
9121
9860
  while (i-- > 0) {
9122
9861
  const opt = keys[i];
9123
- const validator = schema[opt];
9862
+ // Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply
9863
+ // a non-function validator and cause a TypeError.
9864
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
9124
9865
  if (validator) {
9125
9866
  const value = options[opt];
9126
9867
  const result = value === undefined || validator(value, opt, options);
9127
9868
  if (result !== true) {
9128
- throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE);
9869
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](
9870
+ 'option ' + opt + ' must be ' + result,
9871
+ _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE
9872
+ );
9129
9873
  }
9130
9874
  continue;
9131
9875
  }
@@ -9137,7 +9881,7 @@ function assertOptions(options, schema, allowUnknown) {
9137
9881
 
9138
9882
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9139
9883
  assertOptions,
9140
- validators
9884
+ validators,
9141
9885
  });
9142
9886
 
9143
9887
 
@@ -9218,9 +9962,9 @@ __webpack_require__.r(__webpack_exports__);
9218
9962
  classes: {
9219
9963
  URLSearchParams: _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__["default"],
9220
9964
  FormData: _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__["default"],
9221
- Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__["default"]
9965
+ Blob: _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__["default"],
9222
9966
  },
9223
- protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
9967
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],
9224
9968
  });
9225
9969
 
9226
9970
 
@@ -9242,7 +9986,7 @@ __webpack_require__.r(__webpack_exports__);
9242
9986
  /* harmony export */ });
9243
9987
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
9244
9988
 
9245
- const _navigator = typeof navigator === 'object' && navigator || undefined;
9989
+ const _navigator = (typeof navigator === 'object' && navigator) || undefined;
9246
9990
 
9247
9991
  /**
9248
9992
  * Determine if we're running in a standard browser environment
@@ -9261,7 +10005,8 @@ const _navigator = typeof navigator === 'object' && navigator || undefined;
9261
10005
  *
9262
10006
  * @returns {boolean}
9263
10007
  */
9264
- const hasStandardBrowserEnv = hasBrowserEnv &&
10008
+ const hasStandardBrowserEnv =
10009
+ hasBrowserEnv &&
9265
10010
  (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
9266
10011
 
9267
10012
  /**
@@ -9282,7 +10027,7 @@ const hasStandardBrowserWebWorkerEnv = (() => {
9282
10027
  );
9283
10028
  })();
9284
10029
 
9285
- const origin = hasBrowserEnv && window.location.href || 'http://localhost';
10030
+ const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
9286
10031
 
9287
10032
 
9288
10033
 
@@ -9306,7 +10051,7 @@ __webpack_require__.r(__webpack_exports__);
9306
10051
 
9307
10052
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
9308
10053
  ..._common_utils_js__WEBPACK_IMPORTED_MODULE_1__,
9309
- ..._node_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]
10054
+ ..._node_index_js__WEBPACK_IMPORTED_MODULE_0__["default"],
9310
10055
  });
9311
10056
 
9312
10057
 
@@ -9361,7 +10106,7 @@ const { isArray } = Array;
9361
10106
  *
9362
10107
  * @returns {boolean} True if the value is undefined, otherwise false
9363
10108
  */
9364
- const isUndefined = typeOfTest("undefined");
10109
+ const isUndefined = typeOfTest('undefined');
9365
10110
 
9366
10111
  /**
9367
10112
  * Determine if a value is a Buffer
@@ -9388,7 +10133,7 @@ function isBuffer(val) {
9388
10133
  *
9389
10134
  * @returns {boolean} True if value is an ArrayBuffer, otherwise false
9390
10135
  */
9391
- const isArrayBuffer = kindOfTest("ArrayBuffer");
10136
+ const isArrayBuffer = kindOfTest('ArrayBuffer');
9392
10137
 
9393
10138
  /**
9394
10139
  * Determine if a value is a view on an ArrayBuffer
@@ -9399,7 +10144,7 @@ const isArrayBuffer = kindOfTest("ArrayBuffer");
9399
10144
  */
9400
10145
  function isArrayBufferView(val) {
9401
10146
  let result;
9402
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
10147
+ if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
9403
10148
  result = ArrayBuffer.isView(val);
9404
10149
  } else {
9405
10150
  result = val && val.buffer && isArrayBuffer(val.buffer);
@@ -9414,7 +10159,7 @@ function isArrayBufferView(val) {
9414
10159
  *
9415
10160
  * @returns {boolean} True if value is a String, otherwise false
9416
10161
  */
9417
- const isString = typeOfTest("string");
10162
+ const isString = typeOfTest('string');
9418
10163
 
9419
10164
  /**
9420
10165
  * Determine if a value is a Function
@@ -9422,7 +10167,7 @@ const isString = typeOfTest("string");
9422
10167
  * @param {*} val The value to test
9423
10168
  * @returns {boolean} True if value is a Function, otherwise false
9424
10169
  */
9425
- const isFunction = typeOfTest("function");
10170
+ const isFunction = typeOfTest('function');
9426
10171
 
9427
10172
  /**
9428
10173
  * Determine if a value is a Number
@@ -9431,7 +10176,7 @@ const isFunction = typeOfTest("function");
9431
10176
  *
9432
10177
  * @returns {boolean} True if value is a Number, otherwise false
9433
10178
  */
9434
- const isNumber = typeOfTest("number");
10179
+ const isNumber = typeOfTest('number');
9435
10180
 
9436
10181
  /**
9437
10182
  * Determine if a value is an Object
@@ -9440,7 +10185,7 @@ const isNumber = typeOfTest("number");
9440
10185
  *
9441
10186
  * @returns {boolean} True if value is an Object, otherwise false
9442
10187
  */
9443
- const isObject = (thing) => thing !== null && typeof thing === "object";
10188
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
9444
10189
 
9445
10190
  /**
9446
10191
  * Determine if a value is a Boolean
@@ -9458,7 +10203,7 @@ const isBoolean = (thing) => thing === true || thing === false;
9458
10203
  * @returns {boolean} True if value is a plain Object, otherwise false
9459
10204
  */
9460
10205
  const isPlainObject = (val) => {
9461
- if (kindOf(val) !== "object") {
10206
+ if (kindOf(val) !== 'object') {
9462
10207
  return false;
9463
10208
  }
9464
10209
 
@@ -9486,10 +10231,7 @@ const isEmptyObject = (val) => {
9486
10231
  }
9487
10232
 
9488
10233
  try {
9489
- return (
9490
- Object.keys(val).length === 0 &&
9491
- Object.getPrototypeOf(val) === Object.prototype
9492
- );
10234
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
9493
10235
  } catch (e) {
9494
10236
  // Fallback for any other objects that might cause RangeError with Object.keys()
9495
10237
  return false;
@@ -9503,7 +10245,7 @@ const isEmptyObject = (val) => {
9503
10245
  *
9504
10246
  * @returns {boolean} True if value is a Date, otherwise false
9505
10247
  */
9506
- const isDate = kindOfTest("Date");
10248
+ const isDate = kindOfTest('Date');
9507
10249
 
9508
10250
  /**
9509
10251
  * Determine if a value is a File
@@ -9512,7 +10254,32 @@ const isDate = kindOfTest("Date");
9512
10254
  *
9513
10255
  * @returns {boolean} True if value is a File, otherwise false
9514
10256
  */
9515
- const isFile = kindOfTest("File");
10257
+ const isFile = kindOfTest('File');
10258
+
10259
+ /**
10260
+ * Determine if a value is a React Native Blob
10261
+ * React Native "blob": an object with a `uri` attribute. Optionally, it can
10262
+ * also have a `name` and `type` attribute to specify filename and content type
10263
+ *
10264
+ * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
10265
+ *
10266
+ * @param {*} value The value to test
10267
+ *
10268
+ * @returns {boolean} True if value is a React Native Blob, otherwise false
10269
+ */
10270
+ const isReactNativeBlob = (value) => {
10271
+ return !!(value && typeof value.uri !== 'undefined');
10272
+ };
10273
+
10274
+ /**
10275
+ * Determine if environment is React Native
10276
+ * ReactNative `FormData` has a non-standard `getParts()` method
10277
+ *
10278
+ * @param {*} formData The formData to test
10279
+ *
10280
+ * @returns {boolean} True if environment is React Native, otherwise false
10281
+ */
10282
+ const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
9516
10283
 
9517
10284
  /**
9518
10285
  * Determine if a value is a Blob
@@ -9521,16 +10288,16 @@ const isFile = kindOfTest("File");
9521
10288
  *
9522
10289
  * @returns {boolean} True if value is a Blob, otherwise false
9523
10290
  */
9524
- const isBlob = kindOfTest("Blob");
10291
+ const isBlob = kindOfTest('Blob');
9525
10292
 
9526
10293
  /**
9527
10294
  * Determine if a value is a FileList
9528
10295
  *
9529
10296
  * @param {*} val The value to test
9530
10297
  *
9531
- * @returns {boolean} True if value is a File, otherwise false
10298
+ * @returns {boolean} True if value is a FileList, otherwise false
9532
10299
  */
9533
- const isFileList = kindOfTest("FileList");
10300
+ const isFileList = kindOfTest('FileList');
9534
10301
 
9535
10302
  /**
9536
10303
  * Determine if a value is a Stream
@@ -9548,17 +10315,29 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
9548
10315
  *
9549
10316
  * @returns {boolean} True if value is an FormData, otherwise false
9550
10317
  */
10318
+ function getGlobal() {
10319
+ if (typeof globalThis !== 'undefined') return globalThis;
10320
+ if (typeof self !== 'undefined') return self;
10321
+ if (typeof window !== 'undefined') return window;
10322
+ if (typeof global !== 'undefined') return global;
10323
+ return {};
10324
+ }
10325
+
10326
+ const G = getGlobal();
10327
+ const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
10328
+
9551
10329
  const isFormData = (thing) => {
9552
- let kind;
10330
+ if (!thing) return false;
10331
+ if (FormDataCtor && thing instanceof FormDataCtor) return true;
10332
+ // Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData.
10333
+ const proto = getPrototypeOf(thing);
10334
+ if (!proto || proto === Object.prototype) return false;
10335
+ if (!isFunction(thing.append)) return false;
10336
+ const kind = kindOf(thing);
9553
10337
  return (
9554
- thing &&
9555
- ((typeof FormData === "function" && thing instanceof FormData) ||
9556
- (isFunction(thing.append) &&
9557
- ((kind = kindOf(thing)) === "formdata" ||
9558
- // detect form-data instance
9559
- (kind === "object" &&
9560
- isFunction(thing.toString) &&
9561
- thing.toString() === "[object FormData]"))))
10338
+ kind === 'formdata' ||
10339
+ // detect form-data instance
10340
+ (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
9562
10341
  );
9563
10342
  };
9564
10343
 
@@ -9569,13 +10348,13 @@ const isFormData = (thing) => {
9569
10348
  *
9570
10349
  * @returns {boolean} True if value is a URLSearchParams object, otherwise false
9571
10350
  */
9572
- const isURLSearchParams = kindOfTest("URLSearchParams");
10351
+ const isURLSearchParams = kindOfTest('URLSearchParams');
9573
10352
 
9574
10353
  const [isReadableStream, isRequest, isResponse, isHeaders] = [
9575
- "ReadableStream",
9576
- "Request",
9577
- "Response",
9578
- "Headers",
10354
+ 'ReadableStream',
10355
+ 'Request',
10356
+ 'Response',
10357
+ 'Headers',
9579
10358
  ].map(kindOfTest);
9580
10359
 
9581
10360
  /**
@@ -9585,9 +10364,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = [
9585
10364
  *
9586
10365
  * @returns {String} The String freed of excess whitespace
9587
10366
  */
9588
- const trim = (str) =>
9589
- str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
9590
-
10367
+ const trim = (str) => {
10368
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
10369
+ };
9591
10370
  /**
9592
10371
  * Iterate over an Array or an Object invoking a function for each item.
9593
10372
  *
@@ -9606,7 +10385,7 @@ const trim = (str) =>
9606
10385
  */
9607
10386
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
9608
10387
  // Don't bother if no value provided
9609
- if (obj === null || typeof obj === "undefined") {
10388
+ if (obj === null || typeof obj === 'undefined') {
9610
10389
  return;
9611
10390
  }
9612
10391
 
@@ -9614,7 +10393,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
9614
10393
  let l;
9615
10394
 
9616
10395
  // Force an array if not already something iterable
9617
- if (typeof obj !== "object") {
10396
+ if (typeof obj !== 'object') {
9618
10397
  /*eslint no-param-reassign:0*/
9619
10398
  obj = [obj];
9620
10399
  }
@@ -9631,9 +10410,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
9631
10410
  }
9632
10411
 
9633
10412
  // Iterate over object keys
9634
- const keys = allOwnKeys
9635
- ? Object.getOwnPropertyNames(obj)
9636
- : Object.keys(obj);
10413
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
9637
10414
  const len = keys.length;
9638
10415
  let key;
9639
10416
 
@@ -9644,6 +10421,14 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
9644
10421
  }
9645
10422
  }
9646
10423
 
10424
+ /**
10425
+ * Finds a key in an object, case-insensitive, returning the actual key name.
10426
+ * Returns null if the object is a Buffer or if no match is found.
10427
+ *
10428
+ * @param {Object} obj - The object to search.
10429
+ * @param {string} key - The key to find (case-insensitive).
10430
+ * @returns {?string} The actual key name if found, otherwise null.
10431
+ */
9647
10432
  function findKey(obj, key) {
9648
10433
  if (isBuffer(obj)) {
9649
10434
  return null;
@@ -9664,16 +10449,11 @@ function findKey(obj, key) {
9664
10449
 
9665
10450
  const _global = (() => {
9666
10451
  /*eslint no-undef:0*/
9667
- if (typeof globalThis !== "undefined") return globalThis;
9668
- return typeof self !== "undefined"
9669
- ? self
9670
- : typeof window !== "undefined"
9671
- ? window
9672
- : global;
10452
+ if (typeof globalThis !== 'undefined') return globalThis;
10453
+ return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
9673
10454
  })();
9674
10455
 
9675
- const isContextDefined = (context) =>
9676
- !isUndefined(context) && context !== _global;
10456
+ const isContextDefined = (context) => !isUndefined(context) && context !== _global;
9677
10457
 
9678
10458
  /**
9679
10459
  * Accepts varargs expecting each argument to be an object, then
@@ -9693,18 +10473,22 @@ const isContextDefined = (context) =>
9693
10473
  *
9694
10474
  * @returns {Object} Result of all merge properties
9695
10475
  */
9696
- function merge(/* obj1, obj2, obj3, ... */) {
10476
+ function merge(...objs) {
9697
10477
  const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
9698
10478
  const result = {};
9699
10479
  const assignValue = (val, key) => {
9700
10480
  // Skip dangerous property names to prevent prototype pollution
9701
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
10481
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
9702
10482
  return;
9703
10483
  }
9704
10484
 
9705
10485
  const targetKey = (caseless && findKey(result, key)) || key;
9706
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
9707
- result[targetKey] = merge(result[targetKey], val);
10486
+ // Read via own-prop only — a bare `result[targetKey]` walks the prototype
10487
+ // chain, so a polluted Object.prototype value could surface here and get
10488
+ // copied into the merged result.
10489
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;
10490
+ if (isPlainObject(existing) && isPlainObject(val)) {
10491
+ result[targetKey] = merge(existing, val);
9708
10492
  } else if (isPlainObject(val)) {
9709
10493
  result[targetKey] = merge({}, val);
9710
10494
  } else if (isArray(val)) {
@@ -9714,8 +10498,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
9714
10498
  }
9715
10499
  };
9716
10500
 
9717
- for (let i = 0, l = arguments.length; i < l; i++) {
9718
- arguments[i] && forEach(arguments[i], assignValue);
10501
+ for (let i = 0, l = objs.length; i < l; i++) {
10502
+ objs[i] && forEach(objs[i], assignValue);
9719
10503
  }
9720
10504
  return result;
9721
10505
  }
@@ -9737,6 +10521,9 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
9737
10521
  (val, key) => {
9738
10522
  if (thisArg && isFunction(val)) {
9739
10523
  Object.defineProperty(a, key, {
10524
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
10525
+ // hijack defineProperty's accessor-vs-data resolution.
10526
+ __proto__: null,
9740
10527
  value: (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__["default"])(val, thisArg),
9741
10528
  writable: true,
9742
10529
  enumerable: true,
@@ -9744,6 +10531,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
9744
10531
  });
9745
10532
  } else {
9746
10533
  Object.defineProperty(a, key, {
10534
+ __proto__: null,
9747
10535
  value: val,
9748
10536
  writable: true,
9749
10537
  enumerable: true,
@@ -9751,7 +10539,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
9751
10539
  });
9752
10540
  }
9753
10541
  },
9754
- { allOwnKeys },
10542
+ { allOwnKeys }
9755
10543
  );
9756
10544
  return a;
9757
10545
  };
@@ -9780,17 +10568,16 @@ const stripBOM = (content) => {
9780
10568
  * @returns {void}
9781
10569
  */
9782
10570
  const inherits = (constructor, superConstructor, props, descriptors) => {
9783
- constructor.prototype = Object.create(
9784
- superConstructor.prototype,
9785
- descriptors,
9786
- );
9787
- Object.defineProperty(constructor.prototype, "constructor", {
10571
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
10572
+ Object.defineProperty(constructor.prototype, 'constructor', {
10573
+ __proto__: null,
9788
10574
  value: constructor,
9789
10575
  writable: true,
9790
10576
  enumerable: false,
9791
10577
  configurable: true,
9792
10578
  });
9793
- Object.defineProperty(constructor, "super", {
10579
+ Object.defineProperty(constructor, 'super', {
10580
+ __proto__: null,
9794
10581
  value: superConstructor.prototype,
9795
10582
  });
9796
10583
  props && Object.assign(constructor.prototype, props);
@@ -9820,20 +10607,13 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
9820
10607
  i = props.length;
9821
10608
  while (i-- > 0) {
9822
10609
  prop = props[i];
9823
- if (
9824
- (!propFilter || propFilter(prop, sourceObj, destObj)) &&
9825
- !merged[prop]
9826
- ) {
10610
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
9827
10611
  destObj[prop] = sourceObj[prop];
9828
10612
  merged[prop] = true;
9829
10613
  }
9830
10614
  }
9831
10615
  sourceObj = filter !== false && getPrototypeOf(sourceObj);
9832
- } while (
9833
- sourceObj &&
9834
- (!filter || filter(sourceObj, destObj)) &&
9835
- sourceObj !== Object.prototype
9836
- );
10616
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
9837
10617
 
9838
10618
  return destObj;
9839
10619
  };
@@ -9890,7 +10670,7 @@ const isTypedArray = ((TypedArray) => {
9890
10670
  return (thing) => {
9891
10671
  return TypedArray && thing instanceof TypedArray;
9892
10672
  };
9893
- })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
10673
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
9894
10674
 
9895
10675
  /**
9896
10676
  * For each entry in the object, call the function with the key and value.
@@ -9933,14 +10713,12 @@ const matchAll = (regExp, str) => {
9933
10713
  };
9934
10714
 
9935
10715
  /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
9936
- const isHTMLForm = kindOfTest("HTMLFormElement");
10716
+ const isHTMLForm = kindOfTest('HTMLFormElement');
9937
10717
 
9938
10718
  const toCamelCase = (str) => {
9939
- return str
9940
- .toLowerCase()
9941
- .replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
9942
- return p1.toUpperCase() + p2;
9943
- });
10719
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
10720
+ return p1.toUpperCase() + p2;
10721
+ });
9944
10722
  };
9945
10723
 
9946
10724
  /* Creating a function that will check if an object has a property. */
@@ -9957,7 +10735,7 @@ const hasOwnProperty = (
9957
10735
  *
9958
10736
  * @returns {boolean} True if value is a RegExp object, otherwise false
9959
10737
  */
9960
- const isRegExp = kindOfTest("RegExp");
10738
+ const isRegExp = kindOfTest('RegExp');
9961
10739
 
9962
10740
  const reduceDescriptors = (obj, reducer) => {
9963
10741
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -9981,10 +10759,7 @@ const reduceDescriptors = (obj, reducer) => {
9981
10759
  const freezeMethods = (obj) => {
9982
10760
  reduceDescriptors(obj, (descriptor, name) => {
9983
10761
  // skip restricted props in strict mode
9984
- if (
9985
- isFunction(obj) &&
9986
- ["arguments", "caller", "callee"].indexOf(name) !== -1
9987
- ) {
10762
+ if (isFunction(obj) && ['arguments', 'caller', 'callee'].includes(name)) {
9988
10763
  return false;
9989
10764
  }
9990
10765
 
@@ -9994,7 +10769,7 @@ const freezeMethods = (obj) => {
9994
10769
 
9995
10770
  descriptor.enumerable = false;
9996
10771
 
9997
- if ("writable" in descriptor) {
10772
+ if ('writable' in descriptor) {
9998
10773
  descriptor.writable = false;
9999
10774
  return;
10000
10775
  }
@@ -10007,6 +10782,14 @@ const freezeMethods = (obj) => {
10007
10782
  });
10008
10783
  };
10009
10784
 
10785
+ /**
10786
+ * Converts an array or a delimited string into an object set with values as keys and true as values.
10787
+ * Useful for fast membership checks.
10788
+ *
10789
+ * @param {Array|string} arrayOrString - The array or string to convert.
10790
+ * @param {string} delimiter - The delimiter to use if input is a string.
10791
+ * @returns {Object} An object with keys from the array or string, values set to true.
10792
+ */
10010
10793
  const toObjectSet = (arrayOrString, delimiter) => {
10011
10794
  const obj = {};
10012
10795
 
@@ -10016,9 +10799,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
10016
10799
  });
10017
10800
  };
10018
10801
 
10019
- isArray(arrayOrString)
10020
- ? define(arrayOrString)
10021
- : define(String(arrayOrString).split(delimiter));
10802
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
10022
10803
 
10023
10804
  return obj;
10024
10805
  };
@@ -10026,9 +10807,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
10026
10807
  const noop = () => {};
10027
10808
 
10028
10809
  const toFiniteNumber = (value, defaultValue) => {
10029
- return value != null && Number.isFinite((value = +value))
10030
- ? value
10031
- : defaultValue;
10810
+ return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
10032
10811
  };
10033
10812
 
10034
10813
  /**
@@ -10042,17 +10821,23 @@ function isSpecCompliantForm(thing) {
10042
10821
  return !!(
10043
10822
  thing &&
10044
10823
  isFunction(thing.append) &&
10045
- thing[toStringTag] === "FormData" &&
10824
+ thing[toStringTag] === 'FormData' &&
10046
10825
  thing[iterator]
10047
10826
  );
10048
10827
  }
10049
10828
 
10829
+ /**
10830
+ * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
10831
+ *
10832
+ * @param {Object} obj - The object to convert.
10833
+ * @returns {Object} The JSON-compatible object.
10834
+ */
10050
10835
  const toJSONObject = (obj) => {
10051
- const stack = new Array(10);
10836
+ const visited = new WeakSet();
10052
10837
 
10053
- const visit = (source, i) => {
10838
+ const visit = (source) => {
10054
10839
  if (isObject(source)) {
10055
- if (stack.indexOf(source) >= 0) {
10840
+ if (visited.has(source)) {
10056
10841
  return;
10057
10842
  }
10058
10843
 
@@ -10061,16 +10846,17 @@ const toJSONObject = (obj) => {
10061
10846
  return source;
10062
10847
  }
10063
10848
 
10064
- if (!("toJSON" in source)) {
10065
- stack[i] = source;
10849
+ if (!('toJSON' in source)) {
10850
+ // add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).
10851
+ visited.add(source);
10066
10852
  const target = isArray(source) ? [] : {};
10067
10853
 
10068
10854
  forEach(source, (value, key) => {
10069
- const reducedValue = visit(value, i + 1);
10855
+ const reducedValue = visit(value);
10070
10856
  !isUndefined(reducedValue) && (target[key] = reducedValue);
10071
10857
  });
10072
10858
 
10073
- stack[i] = undefined;
10859
+ visited.delete(source);
10074
10860
 
10075
10861
  return target;
10076
10862
  }
@@ -10079,11 +10865,23 @@ const toJSONObject = (obj) => {
10079
10865
  return source;
10080
10866
  };
10081
10867
 
10082
- return visit(obj, 0);
10868
+ return visit(obj);
10083
10869
  };
10084
10870
 
10085
- const isAsyncFn = kindOfTest("AsyncFunction");
10871
+ /**
10872
+ * Determines if a value is an async function.
10873
+ *
10874
+ * @param {*} thing - The value to test.
10875
+ * @returns {boolean} True if value is an async function, otherwise false.
10876
+ */
10877
+ const isAsyncFn = kindOfTest('AsyncFunction');
10086
10878
 
10879
+ /**
10880
+ * Determines if a value is thenable (has then and catch methods).
10881
+ *
10882
+ * @param {*} thing - The value to test.
10883
+ * @returns {boolean} True if value is thenable, otherwise false.
10884
+ */
10087
10885
  const isThenable = (thing) =>
10088
10886
  thing &&
10089
10887
  (isObject(thing) || isFunction(thing)) &&
@@ -10093,6 +10891,14 @@ const isThenable = (thing) =>
10093
10891
  // original code
10094
10892
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
10095
10893
 
10894
+ /**
10895
+ * Provides a cross-platform setImmediate implementation.
10896
+ * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
10897
+ *
10898
+ * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
10899
+ * @param {boolean} postMessageSupported - Whether postMessage is supported.
10900
+ * @returns {Function} A function to schedule a callback asynchronously.
10901
+ */
10096
10902
  const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
10097
10903
  if (setImmediateSupported) {
10098
10904
  return setImmediate;
@@ -10101,27 +10907,33 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
10101
10907
  return postMessageSupported
10102
10908
  ? ((token, callbacks) => {
10103
10909
  _global.addEventListener(
10104
- "message",
10910
+ 'message',
10105
10911
  ({ source, data }) => {
10106
10912
  if (source === _global && data === token) {
10107
10913
  callbacks.length && callbacks.shift()();
10108
10914
  }
10109
10915
  },
10110
- false,
10916
+ false
10111
10917
  );
10112
10918
 
10113
10919
  return (cb) => {
10114
10920
  callbacks.push(cb);
10115
- _global.postMessage(token, "*");
10921
+ _global.postMessage(token, '*');
10116
10922
  };
10117
10923
  })(`axios@${Math.random()}`, [])
10118
10924
  : (cb) => setTimeout(cb);
10119
- })(typeof setImmediate === "function", isFunction(_global.postMessage));
10925
+ })(typeof setImmediate === 'function', isFunction(_global.postMessage));
10120
10926
 
10927
+ /**
10928
+ * Schedules a microtask or asynchronous callback as soon as possible.
10929
+ * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
10930
+ *
10931
+ * @type {Function}
10932
+ */
10121
10933
  const asap =
10122
- typeof queueMicrotask !== "undefined"
10934
+ typeof queueMicrotask !== 'undefined'
10123
10935
  ? queueMicrotask.bind(_global)
10124
- : (typeof process !== "undefined" && process.nextTick) || _setImmediate;
10936
+ : (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
10125
10937
 
10126
10938
  // *********************
10127
10939
 
@@ -10146,6 +10958,8 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
10146
10958
  isUndefined,
10147
10959
  isDate,
10148
10960
  isFile,
10961
+ isReactNativeBlob,
10962
+ isReactNative,
10149
10963
  isBlob,
10150
10964
  isRegExp,
10151
10965
  isFunction,