@rsdoctor/core 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4713,11 +4713,11 @@ module.exports = require("zlib");
4713
4713
 
4714
4714
  /***/ }),
4715
4715
 
4716
- /***/ 2926:
4716
+ /***/ 6000:
4717
4717
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
4718
4718
 
4719
4719
  "use strict";
4720
- /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
4720
+ /*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */
4721
4721
 
4722
4722
 
4723
4723
  const FormData$1 = __nccwpck_require__(931);
@@ -5010,10 +5010,11 @@ const trim = (str) => str.trim ?
5010
5010
  * If 'obj' is an Object callback will be called passing
5011
5011
  * the value, key, and complete object for each property.
5012
5012
  *
5013
- * @param {Object|Array} obj The object to iterate
5013
+ * @param {Object|Array<unknown>} obj The object to iterate
5014
5014
  * @param {Function} fn The callback to invoke for each item
5015
5015
  *
5016
- * @param {Boolean} [allOwnKeys = false]
5016
+ * @param {Object} [options]
5017
+ * @param {Boolean} [options.allOwnKeys = false]
5017
5018
  * @returns {any}
5018
5019
  */
5019
5020
  function forEach(obj, fn, {allOwnKeys = false} = {}) {
@@ -5090,7 +5091,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
5090
5091
  * Example:
5091
5092
  *
5092
5093
  * ```js
5093
- * var result = merge({foo: 123}, {foo: 456});
5094
+ * const result = merge({foo: 123}, {foo: 456});
5094
5095
  * console.log(result.foo); // outputs 456
5095
5096
  * ```
5096
5097
  *
@@ -5127,15 +5128,26 @@ function merge(/* obj1, obj2, obj3, ... */) {
5127
5128
  * @param {Object} b The object to copy properties from
5128
5129
  * @param {Object} thisArg The object to bind function to
5129
5130
  *
5130
- * @param {Boolean} [allOwnKeys]
5131
+ * @param {Object} [options]
5132
+ * @param {Boolean} [options.allOwnKeys]
5131
5133
  * @returns {Object} The resulting value of object a
5132
5134
  */
5133
5135
  const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
5134
5136
  forEach(b, (val, key) => {
5135
5137
  if (thisArg && isFunction$1(val)) {
5136
- a[key] = bind(val, thisArg);
5138
+ Object.defineProperty(a, key, {
5139
+ value: bind(val, thisArg),
5140
+ writable: true,
5141
+ enumerable: true,
5142
+ configurable: true
5143
+ });
5137
5144
  } else {
5138
- a[key] = val;
5145
+ Object.defineProperty(a, key, {
5146
+ value: val,
5147
+ writable: true,
5148
+ enumerable: true,
5149
+ configurable: true
5150
+ });
5139
5151
  }
5140
5152
  }, {allOwnKeys});
5141
5153
  return a;
@@ -5166,7 +5178,12 @@ const stripBOM = (content) => {
5166
5178
  */
5167
5179
  const inherits = (constructor, superConstructor, props, descriptors) => {
5168
5180
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
5169
- constructor.prototype.constructor = constructor;
5181
+ Object.defineProperty(constructor.prototype, 'constructor', {
5182
+ value: constructor,
5183
+ writable: true,
5184
+ enumerable: false,
5185
+ configurable: true
5186
+ });
5170
5187
  Object.defineProperty(constructor, 'super', {
5171
5188
  value: superConstructor.prototype
5172
5189
  });
@@ -5539,110 +5556,75 @@ const utils$1 = {
5539
5556
  isIterable
5540
5557
  };
5541
5558
 
5542
- /**
5543
- * Create an Error with the specified message, config, error code, request and response.
5544
- *
5545
- * @param {string} message The error message.
5546
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
5547
- * @param {Object} [config] The config.
5548
- * @param {Object} [request] The request.
5549
- * @param {Object} [response] The response.
5550
- *
5551
- * @returns {Error} The created error.
5552
- */
5553
- function AxiosError(message, code, config, request, response) {
5554
- Error.call(this);
5555
-
5556
- if (Error.captureStackTrace) {
5557
- Error.captureStackTrace(this, this.constructor);
5558
- } else {
5559
- this.stack = (new Error()).stack;
5560
- }
5559
+ class AxiosError extends Error {
5560
+ static from(error, code, config, request, response, customProps) {
5561
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
5562
+ axiosError.cause = error;
5563
+ axiosError.name = error.name;
5564
+ customProps && Object.assign(axiosError, customProps);
5565
+ return axiosError;
5566
+ }
5567
+
5568
+ /**
5569
+ * Create an Error with the specified message, config, error code, request and response.
5570
+ *
5571
+ * @param {string} message The error message.
5572
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
5573
+ * @param {Object} [config] The config.
5574
+ * @param {Object} [request] The request.
5575
+ * @param {Object} [response] The response.
5576
+ *
5577
+ * @returns {Error} The created error.
5578
+ */
5579
+ constructor(message, code, config, request, response) {
5580
+ super(message);
5581
+ this.name = 'AxiosError';
5582
+ this.isAxiosError = true;
5583
+ code && (this.code = code);
5584
+ config && (this.config = config);
5585
+ request && (this.request = request);
5586
+ if (response) {
5587
+ this.response = response;
5588
+ this.status = response.status;
5589
+ }
5590
+ }
5561
5591
 
5562
- this.message = message;
5563
- this.name = 'AxiosError';
5564
- code && (this.code = code);
5565
- config && (this.config = config);
5566
- request && (this.request = request);
5567
- if (response) {
5568
- this.response = response;
5569
- this.status = response.status ? response.status : null;
5570
- }
5592
+ toJSON() {
5593
+ return {
5594
+ // Standard
5595
+ message: this.message,
5596
+ name: this.name,
5597
+ // Microsoft
5598
+ description: this.description,
5599
+ number: this.number,
5600
+ // Mozilla
5601
+ fileName: this.fileName,
5602
+ lineNumber: this.lineNumber,
5603
+ columnNumber: this.columnNumber,
5604
+ stack: this.stack,
5605
+ // Axios
5606
+ config: utils$1.toJSONObject(this.config),
5607
+ code: this.code,
5608
+ status: this.status,
5609
+ };
5610
+ }
5571
5611
  }
5572
5612
 
5573
- utils$1.inherits(AxiosError, Error, {
5574
- toJSON: function toJSON() {
5575
- return {
5576
- // Standard
5577
- message: this.message,
5578
- name: this.name,
5579
- // Microsoft
5580
- description: this.description,
5581
- number: this.number,
5582
- // Mozilla
5583
- fileName: this.fileName,
5584
- lineNumber: this.lineNumber,
5585
- columnNumber: this.columnNumber,
5586
- stack: this.stack,
5587
- // Axios
5588
- config: utils$1.toJSONObject(this.config),
5589
- code: this.code,
5590
- status: this.status
5591
- };
5592
- }
5593
- });
5594
-
5595
- const prototype$1 = AxiosError.prototype;
5596
- const descriptors = {};
5613
+ // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
5614
+ AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
5615
+ AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
5616
+ AxiosError.ECONNABORTED = 'ECONNABORTED';
5617
+ AxiosError.ETIMEDOUT = 'ETIMEDOUT';
5618
+ AxiosError.ERR_NETWORK = 'ERR_NETWORK';
5619
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
5620
+ AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
5621
+ AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
5622
+ AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
5623
+ AxiosError.ERR_CANCELED = 'ERR_CANCELED';
5624
+ AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
5625
+ AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
5597
5626
 
5598
- [
5599
- 'ERR_BAD_OPTION_VALUE',
5600
- 'ERR_BAD_OPTION',
5601
- 'ECONNABORTED',
5602
- 'ETIMEDOUT',
5603
- 'ERR_NETWORK',
5604
- 'ERR_FR_TOO_MANY_REDIRECTS',
5605
- 'ERR_DEPRECATED',
5606
- 'ERR_BAD_RESPONSE',
5607
- 'ERR_BAD_REQUEST',
5608
- 'ERR_CANCELED',
5609
- 'ERR_NOT_SUPPORT',
5610
- 'ERR_INVALID_URL'
5611
- // eslint-disable-next-line func-names
5612
- ].forEach(code => {
5613
- descriptors[code] = {value: code};
5614
- });
5615
-
5616
- Object.defineProperties(AxiosError, descriptors);
5617
- Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
5618
-
5619
- // eslint-disable-next-line func-names
5620
- AxiosError.from = (error, code, config, request, response, customProps) => {
5621
- const axiosError = Object.create(prototype$1);
5622
-
5623
- utils$1.toFlatObject(error, axiosError, function filter(obj) {
5624
- return obj !== Error.prototype;
5625
- }, prop => {
5626
- return prop !== 'isAxiosError';
5627
- });
5628
-
5629
- const msg = error && error.message ? error.message : 'Error';
5630
-
5631
- // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
5632
- const errCode = code == null && error ? error.code : code;
5633
- AxiosError.call(axiosError, msg, errCode, config, request, response);
5634
-
5635
- // Chain the original error on the standard field; non-enumerable to avoid JSON noise
5636
- if (error && axiosError.cause == null) {
5637
- Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
5638
- }
5639
-
5640
- axiosError.name = (error && error.name) || 'Error';
5641
-
5642
- customProps && Object.assign(axiosError, customProps);
5643
-
5644
- return axiosError;
5645
- };
5627
+ const AxiosError$1 = AxiosError;
5646
5628
 
5647
5629
  /**
5648
5630
  * Determines if the given thing is a array or js object.
@@ -5764,7 +5746,7 @@ function toFormData(obj, formData, options) {
5764
5746
  }
5765
5747
 
5766
5748
  if (!useBlob && utils$1.isBlob(value)) {
5767
- throw new AxiosError('Blob is not supported. Use a Buffer instead.');
5749
+ throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
5768
5750
  }
5769
5751
 
5770
5752
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
@@ -5938,29 +5920,26 @@ function encode(val) {
5938
5920
  * @returns {string} The formatted url
5939
5921
  */
5940
5922
  function buildURL(url, params, options) {
5941
- /*eslint no-param-reassign:0*/
5942
5923
  if (!params) {
5943
5924
  return url;
5944
5925
  }
5945
-
5926
+
5946
5927
  const _encode = options && options.encode || encode;
5947
5928
 
5948
- if (utils$1.isFunction(options)) {
5949
- options = {
5950
- serialize: options
5951
- };
5952
- }
5929
+ const _options = utils$1.isFunction(options) ? {
5930
+ serialize: options
5931
+ } : options;
5953
5932
 
5954
- const serializeFn = options && options.serialize;
5933
+ const serializeFn = _options && _options.serialize;
5955
5934
 
5956
5935
  let serializedParams;
5957
5936
 
5958
5937
  if (serializeFn) {
5959
- serializedParams = serializeFn(params, options);
5938
+ serializedParams = serializeFn(params, _options);
5960
5939
  } else {
5961
5940
  serializedParams = utils$1.isURLSearchParams(params) ?
5962
5941
  params.toString() :
5963
- new AxiosURLSearchParams(params, options).toString(_encode);
5942
+ new AxiosURLSearchParams(params, _options).toString(_encode);
5964
5943
  }
5965
5944
 
5966
5945
  if (serializedParams) {
@@ -5985,6 +5964,7 @@ class InterceptorManager {
5985
5964
  *
5986
5965
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
5987
5966
  * @param {Function} rejected The function to handle `reject` for a `Promise`
5967
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
5988
5968
  *
5989
5969
  * @return {Number} An ID used to remove interceptor later
5990
5970
  */
@@ -6355,7 +6335,7 @@ const defaults = {
6355
6335
  } catch (e) {
6356
6336
  if (strictJSONParsing) {
6357
6337
  if (e.name === 'SyntaxError') {
6358
- throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
6338
+ throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
6359
6339
  }
6360
6340
  throw e;
6361
6341
  }
@@ -6789,24 +6769,24 @@ function isCancel(value) {
6789
6769
  return !!(value && value.__CANCEL__);
6790
6770
  }
6791
6771
 
6792
- /**
6793
- * A `CanceledError` is an object that is thrown when an operation is canceled.
6794
- *
6795
- * @param {string=} message The message.
6796
- * @param {Object=} config The config.
6797
- * @param {Object=} request The request.
6798
- *
6799
- * @returns {CanceledError} The created error.
6800
- */
6801
- function CanceledError(message, config, request) {
6802
- // eslint-disable-next-line no-eq-null,eqeqeq
6803
- AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
6804
- this.name = 'CanceledError';
6772
+ class CanceledError extends AxiosError$1 {
6773
+ /**
6774
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
6775
+ *
6776
+ * @param {string=} message The message.
6777
+ * @param {Object=} config The config.
6778
+ * @param {Object=} request The request.
6779
+ *
6780
+ * @returns {CanceledError} The created error.
6781
+ */
6782
+ constructor(message, config, request) {
6783
+ super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
6784
+ this.name = 'CanceledError';
6785
+ this.__CANCEL__ = true;
6786
+ }
6805
6787
  }
6806
6788
 
6807
- utils$1.inherits(CanceledError, AxiosError, {
6808
- __CANCEL__: true
6809
- });
6789
+ const CanceledError$1 = CanceledError;
6810
6790
 
6811
6791
  /**
6812
6792
  * Resolve or reject a Promise based on response status.
@@ -6822,9 +6802,9 @@ function settle(resolve, reject, response) {
6822
6802
  if (!response.status || !validateStatus || validateStatus(response.status)) {
6823
6803
  resolve(response);
6824
6804
  } else {
6825
- reject(new AxiosError(
6805
+ reject(new AxiosError$1(
6826
6806
  'Request failed with status code ' + response.status,
6827
- [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
6807
+ [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
6828
6808
  response.config,
6829
6809
  response.request,
6830
6810
  response
@@ -6878,7 +6858,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
6878
6858
  return requestedURL;
6879
6859
  }
6880
6860
 
6881
- const VERSION = "1.13.2";
6861
+ const VERSION = "1.13.4";
6882
6862
 
6883
6863
  function parseProtocol(url) {
6884
6864
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -6911,7 +6891,7 @@ function fromDataURI(uri, asBlob, options) {
6911
6891
  const match = DATA_URL_PATTERN.exec(uri);
6912
6892
 
6913
6893
  if (!match) {
6914
- throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);
6894
+ throw new AxiosError$1('Invalid URL', AxiosError$1.ERR_INVALID_URL);
6915
6895
  }
6916
6896
 
6917
6897
  const mime = match[1];
@@ -6921,7 +6901,7 @@ function fromDataURI(uri, asBlob, options) {
6921
6901
 
6922
6902
  if (asBlob) {
6923
6903
  if (!_Blob) {
6924
- throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);
6904
+ throw new AxiosError$1('Blob is not supported', AxiosError$1.ERR_NOT_SUPPORT);
6925
6905
  }
6926
6906
 
6927
6907
  return new _Blob([buffer], {type: mime});
@@ -6930,7 +6910,7 @@ function fromDataURI(uri, asBlob, options) {
6930
6910
  return buffer;
6931
6911
  }
6932
6912
 
6933
- throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);
6913
+ throw new AxiosError$1('Unsupported protocol ' + protocol, AxiosError$1.ERR_NOT_SUPPORT);
6934
6914
  }
6935
6915
 
6936
6916
  const kInternals = Symbol('internals');
@@ -7612,12 +7592,16 @@ function setProxy(options, configProxy, location) {
7612
7592
 
7613
7593
  if (proxy.auth) {
7614
7594
  // Support proxy auth object form
7615
- if (proxy.auth.username || proxy.auth.password) {
7595
+ const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
7596
+
7597
+ if (validProxyAuth) {
7616
7598
  proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');
7599
+ } else if (typeof proxy.auth === 'object') {
7600
+ throw new AxiosError$1('Invalid proxy authorization', AxiosError$1.ERR_BAD_OPTION, { proxy });
7617
7601
  }
7618
- const base64 = Buffer
7619
- .from(proxy.auth, 'utf8')
7620
- .toString('base64');
7602
+
7603
+ const base64 = Buffer.from(proxy.auth, 'utf8').toString('base64');
7604
+
7621
7605
  options.headers['Proxy-Authorization'] = 'Basic ' + base64;
7622
7606
  }
7623
7607
 
@@ -7683,7 +7667,8 @@ const buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(ad
7683
7667
 
7684
7668
  const http2Transport = {
7685
7669
  request(options, cb) {
7686
- const authority = options.protocol + '//' + options.hostname + ':' + (options.port || 80);
7670
+ const authority = options.protocol + '//' + options.hostname + ':' + (options.port ||(options.protocol === 'https:' ? 443 : 80));
7671
+
7687
7672
 
7688
7673
  const {http2Options, headers} = options;
7689
7674
 
@@ -7770,7 +7755,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
7770
7755
 
7771
7756
  function abort(reason) {
7772
7757
  try {
7773
- abortEmitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);
7758
+ abortEmitter.emit('abort', !reason || reason.type ? new CanceledError$1(null, config, req) : reason);
7774
7759
  } catch(err) {
7775
7760
  console.warn('emit error', err);
7776
7761
  }
@@ -7835,9 +7820,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
7835
7820
  const estimated = estimateDataURLDecodedBytes(dataUrl);
7836
7821
 
7837
7822
  if (estimated > config.maxContentLength) {
7838
- return reject(new AxiosError(
7823
+ return reject(new AxiosError$1(
7839
7824
  'maxContentLength size of ' + config.maxContentLength + ' exceeded',
7840
- AxiosError.ERR_BAD_RESPONSE,
7825
+ AxiosError$1.ERR_BAD_RESPONSE,
7841
7826
  config
7842
7827
  ));
7843
7828
  }
@@ -7859,7 +7844,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
7859
7844
  Blob: config.env && config.env.Blob
7860
7845
  });
7861
7846
  } catch (err) {
7862
- throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
7847
+ throw AxiosError$1.from(err, AxiosError$1.ERR_BAD_REQUEST, config);
7863
7848
  }
7864
7849
 
7865
7850
  if (responseType === 'text') {
@@ -7882,9 +7867,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
7882
7867
  }
7883
7868
 
7884
7869
  if (supportedProtocols.indexOf(protocol) === -1) {
7885
- return reject(new AxiosError(
7870
+ return reject(new AxiosError$1(
7886
7871
  'Unsupported protocol ' + protocol,
7887
- AxiosError.ERR_BAD_REQUEST,
7872
+ AxiosError$1.ERR_BAD_REQUEST,
7888
7873
  config
7889
7874
  ));
7890
7875
  }
@@ -7934,9 +7919,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
7934
7919
  } else if (utils$1.isString(data)) {
7935
7920
  data = Buffer.from(data, 'utf-8');
7936
7921
  } else {
7937
- return reject(new AxiosError(
7922
+ return reject(new AxiosError$1(
7938
7923
  'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
7939
- AxiosError.ERR_BAD_REQUEST,
7924
+ AxiosError$1.ERR_BAD_REQUEST,
7940
7925
  config
7941
7926
  ));
7942
7927
  }
@@ -7945,9 +7930,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
7945
7930
  headers.setContentLength(data.length, false);
7946
7931
 
7947
7932
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
7948
- return reject(new AxiosError(
7933
+ return reject(new AxiosError$1(
7949
7934
  'Request body larger than maxBodyLength limit',
7950
- AxiosError.ERR_BAD_REQUEST,
7935
+ AxiosError$1.ERR_BAD_REQUEST,
7951
7936
  config
7952
7937
  ));
7953
7938
  }
@@ -8169,8 +8154,8 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
8169
8154
  // stream.destroy() emit aborted event before calling reject() on Node.js v16
8170
8155
  rejected = true;
8171
8156
  responseStream.destroy();
8172
- abort(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
8173
- AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
8157
+ abort(new AxiosError$1('maxContentLength size of ' + config.maxContentLength + ' exceeded',
8158
+ AxiosError$1.ERR_BAD_RESPONSE, config, lastRequest));
8174
8159
  }
8175
8160
  });
8176
8161
 
@@ -8179,9 +8164,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
8179
8164
  return;
8180
8165
  }
8181
8166
 
8182
- const err = new AxiosError(
8167
+ const err = new AxiosError$1(
8183
8168
  'stream has been aborted',
8184
- AxiosError.ERR_BAD_RESPONSE,
8169
+ AxiosError$1.ERR_BAD_RESPONSE,
8185
8170
  config,
8186
8171
  lastRequest
8187
8172
  );
@@ -8191,7 +8176,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
8191
8176
 
8192
8177
  responseStream.on('error', function handleStreamError(err) {
8193
8178
  if (req.destroyed) return;
8194
- reject(AxiosError.from(err, null, config, lastRequest));
8179
+ reject(AxiosError$1.from(err, null, config, lastRequest));
8195
8180
  });
8196
8181
 
8197
8182
  responseStream.on('end', function handleStreamEnd() {
@@ -8205,7 +8190,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
8205
8190
  }
8206
8191
  response.data = responseData;
8207
8192
  } catch (err) {
8208
- return reject(AxiosError.from(err, null, config, response.request, response));
8193
+ return reject(AxiosError$1.from(err, null, config, response.request, response));
8209
8194
  }
8210
8195
  settle(resolve, reject, response);
8211
8196
  });
@@ -8229,9 +8214,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
8229
8214
 
8230
8215
  // Handle errors
8231
8216
  req.on('error', function handleRequestError(err) {
8232
- // @todo remove
8233
- // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
8234
- reject(AxiosError.from(err, null, config, req));
8217
+ reject(AxiosError$1.from(err, null, config, req));
8235
8218
  });
8236
8219
 
8237
8220
  // set tcp keep alive to prevent drop connection by peer
@@ -8246,9 +8229,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
8246
8229
  const timeout = parseInt(config.timeout, 10);
8247
8230
 
8248
8231
  if (Number.isNaN(timeout)) {
8249
- abort(new AxiosError(
8232
+ abort(new AxiosError$1(
8250
8233
  'error trying to parse `config.timeout` to int',
8251
- AxiosError.ERR_BAD_OPTION_VALUE,
8234
+ AxiosError$1.ERR_BAD_OPTION_VALUE,
8252
8235
  config,
8253
8236
  req
8254
8237
  ));
@@ -8268,9 +8251,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
8268
8251
  if (config.timeoutErrorMessage) {
8269
8252
  timeoutErrorMessage = config.timeoutErrorMessage;
8270
8253
  }
8271
- abort(new AxiosError(
8254
+ abort(new AxiosError$1(
8272
8255
  timeoutErrorMessage,
8273
- transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
8256
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
8274
8257
  config,
8275
8258
  req
8276
8259
  ));
@@ -8297,7 +8280,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
8297
8280
 
8298
8281
  data.on('close', () => {
8299
8282
  if (!ended && !errored) {
8300
- abort(new CanceledError('Request stream has been aborted', config, req));
8283
+ abort(new CanceledError$1('Request stream has been aborted', config, req));
8301
8284
  }
8302
8285
  });
8303
8286
 
@@ -8390,7 +8373,7 @@ function mergeConfig(config1, config2) {
8390
8373
 
8391
8374
  function getMergedValue(target, source, prop, caseless) {
8392
8375
  if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
8393
- return utils$1.merge.call({caseless}, target, source);
8376
+ return utils$1.merge.call({ caseless }, target, source);
8394
8377
  } else if (utils$1.isPlainObject(source)) {
8395
8378
  return utils$1.merge({}, source);
8396
8379
  } else if (utils$1.isArray(source)) {
@@ -8399,7 +8382,6 @@ function mergeConfig(config1, config2) {
8399
8382
  return source;
8400
8383
  }
8401
8384
 
8402
- // eslint-disable-next-line consistent-return
8403
8385
  function mergeDeepProperties(a, b, prop, caseless) {
8404
8386
  if (!utils$1.isUndefined(b)) {
8405
8387
  return getMergedValue(a, b, prop, caseless);
@@ -8465,7 +8447,7 @@ function mergeConfig(config1, config2) {
8465
8447
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
8466
8448
  };
8467
8449
 
8468
- utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
8450
+ utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
8469
8451
  const merge = mergeMap[prop] || mergeDeepProperties;
8470
8452
  const configValue = merge(config1[prop], config2[prop], prop);
8471
8453
  (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
@@ -8614,7 +8596,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
8614
8596
  return;
8615
8597
  }
8616
8598
 
8617
- reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
8599
+ reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
8618
8600
 
8619
8601
  // Clean up request
8620
8602
  request = null;
@@ -8626,7 +8608,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
8626
8608
  // (message may be empty; when present, surface it)
8627
8609
  // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
8628
8610
  const msg = event && event.message ? event.message : 'Network Error';
8629
- const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
8611
+ const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
8630
8612
  // attach the underlying event for consumers who want details
8631
8613
  err.event = event || null;
8632
8614
  reject(err);
@@ -8640,9 +8622,9 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
8640
8622
  if (_config.timeoutErrorMessage) {
8641
8623
  timeoutErrorMessage = _config.timeoutErrorMessage;
8642
8624
  }
8643
- reject(new AxiosError(
8625
+ reject(new AxiosError$1(
8644
8626
  timeoutErrorMessage,
8645
- transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
8627
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
8646
8628
  config,
8647
8629
  request));
8648
8630
 
@@ -8692,7 +8674,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
8692
8674
  if (!request) {
8693
8675
  return;
8694
8676
  }
8695
- reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
8677
+ reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
8696
8678
  request.abort();
8697
8679
  request = null;
8698
8680
  };
@@ -8706,7 +8688,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
8706
8688
  const protocol = parseProtocol(_config.url);
8707
8689
 
8708
8690
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
8709
- reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
8691
+ reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
8710
8692
  return;
8711
8693
  }
8712
8694
 
@@ -8729,13 +8711,13 @@ const composeSignals = (signals, timeout) => {
8729
8711
  aborted = true;
8730
8712
  unsubscribe();
8731
8713
  const err = reason instanceof Error ? reason : this.reason;
8732
- controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
8714
+ controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
8733
8715
  }
8734
8716
  };
8735
8717
 
8736
8718
  let timer = timeout && setTimeout(() => {
8737
8719
  timer = null;
8738
- onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
8720
+ onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
8739
8721
  }, timeout);
8740
8722
 
8741
8723
  const unsubscribe = () => {
@@ -8921,7 +8903,7 @@ const factory = (env) => {
8921
8903
  return method.call(res);
8922
8904
  }
8923
8905
 
8924
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
8906
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
8925
8907
  });
8926
8908
  });
8927
8909
  })());
@@ -9087,14 +9069,14 @@ const factory = (env) => {
9087
9069
 
9088
9070
  if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
9089
9071
  throw Object.assign(
9090
- new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
9072
+ new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
9091
9073
  {
9092
9074
  cause: err.cause || err
9093
9075
  }
9094
9076
  )
9095
9077
  }
9096
9078
 
9097
- throw AxiosError.from(err, err && err.code, config, request);
9079
+ throw AxiosError$1.from(err, err && err.code, config, request);
9098
9080
  }
9099
9081
  }
9100
9082
  };
@@ -9199,7 +9181,7 @@ function getAdapter(adapters, config) {
9199
9181
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
9200
9182
 
9201
9183
  if (adapter === undefined) {
9202
- throw new AxiosError(`Unknown adapter '${id}'`);
9184
+ throw new AxiosError$1(`Unknown adapter '${id}'`);
9203
9185
  }
9204
9186
  }
9205
9187
 
@@ -9220,7 +9202,7 @@ function getAdapter(adapters, config) {
9220
9202
  (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
9221
9203
  'as no adapter specified';
9222
9204
 
9223
- throw new AxiosError(
9205
+ throw new AxiosError$1(
9224
9206
  `There is no suitable adapter to dispatch the request ` + s,
9225
9207
  'ERR_NOT_SUPPORT'
9226
9208
  );
@@ -9259,7 +9241,7 @@ function throwIfCancellationRequested(config) {
9259
9241
  }
9260
9242
 
9261
9243
  if (config.signal && config.signal.aborted) {
9262
- throw new CanceledError(null, config);
9244
+ throw new CanceledError$1(null, config);
9263
9245
  }
9264
9246
  }
9265
9247
 
@@ -9347,9 +9329,9 @@ validators$1.transitional = function transitional(validator, version, message) {
9347
9329
  // eslint-disable-next-line func-names
9348
9330
  return (value, opt, opts) => {
9349
9331
  if (validator === false) {
9350
- throw new AxiosError(
9332
+ throw new AxiosError$1(
9351
9333
  formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
9352
- AxiosError.ERR_DEPRECATED
9334
+ AxiosError$1.ERR_DEPRECATED
9353
9335
  );
9354
9336
  }
9355
9337
 
@@ -9388,7 +9370,7 @@ validators$1.spelling = function spelling(correctSpelling) {
9388
9370
 
9389
9371
  function assertOptions(options, schema, allowUnknown) {
9390
9372
  if (typeof options !== 'object') {
9391
- throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
9373
+ throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
9392
9374
  }
9393
9375
  const keys = Object.keys(options);
9394
9376
  let i = keys.length;
@@ -9399,12 +9381,12 @@ function assertOptions(options, schema, allowUnknown) {
9399
9381
  const value = options[opt];
9400
9382
  const result = value === undefined || validator(value, opt, options);
9401
9383
  if (result !== true) {
9402
- throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
9384
+ throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
9403
9385
  }
9404
9386
  continue;
9405
9387
  }
9406
9388
  if (allowUnknown !== true) {
9407
- throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
9389
+ throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
9408
9390
  }
9409
9391
  }
9410
9392
  }
@@ -9697,7 +9679,7 @@ class CancelToken {
9697
9679
  return;
9698
9680
  }
9699
9681
 
9700
- token.reason = new CanceledError(message, config, request);
9682
+ token.reason = new CanceledError$1(message, config, request);
9701
9683
  resolvePromise(token.reason);
9702
9684
  });
9703
9685
  }
@@ -9781,7 +9763,7 @@ const CancelToken$1 = CancelToken;
9781
9763
  *
9782
9764
  * ```js
9783
9765
  * function f(x, y, z) {}
9784
- * var args = [1, 2, 3];
9766
+ * const args = [1, 2, 3];
9785
9767
  * f.apply(null, args);
9786
9768
  * ```
9787
9769
  *
@@ -9922,14 +9904,14 @@ const axios = createInstance(defaults$1);
9922
9904
  axios.Axios = Axios$1;
9923
9905
 
9924
9906
  // Expose Cancel & CancelToken
9925
- axios.CanceledError = CanceledError;
9907
+ axios.CanceledError = CanceledError$1;
9926
9908
  axios.CancelToken = CancelToken$1;
9927
9909
  axios.isCancel = isCancel;
9928
9910
  axios.VERSION = VERSION;
9929
9911
  axios.toFormData = toFormData;
9930
9912
 
9931
9913
  // Expose AxiosError class
9932
- axios.AxiosError = AxiosError;
9914
+ axios.AxiosError = AxiosError$1;
9933
9915
 
9934
9916
  // alias for CanceledError for backward compatibility
9935
9917
  axios.Cancel = axios.CanceledError;
@@ -10013,7 +9995,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
10013
9995
  /******/ // startup
10014
9996
  /******/ // Load entry module and return exports
10015
9997
  /******/ // This entry module is referenced by other modules so it can't be inlined
10016
- /******/ var __webpack_exports__ = __nccwpck_require__(2926);
9998
+ /******/ var __webpack_exports__ = __nccwpck_require__(6000);
10017
9999
  /******/ module.exports = __webpack_exports__;
10018
10000
  /******/
10019
10001
  /******/ })()