apify-client 2.22.2 → 2.22.3-beta.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.
Files changed (3) hide show
  1. package/dist/bundle.js +1038 -782
  2. package/dist/bundle.js.map +1 -1
  3. package/package.json +112 -112
package/dist/bundle.js CHANGED
@@ -18192,7 +18192,7 @@ function isStream(value) {
18192
18192
  function getVersionData() {
18193
18193
  if (true) {
18194
18194
  return {
18195
- version: "2.22.2"
18195
+ version: "2.22.3-beta.1"
18196
18196
  };
18197
18197
  }
18198
18198
  // eslint-disable-next-line
@@ -18388,7 +18388,7 @@ var KEY_VALUE_STORE_KEY_REGEX = /^([a-zA-Z0-9!\-_.'()]{1,256})$/;
18388
18388
  var GITHUB_REGEX_STR = "[a-z\\d](?:[a-z\\d]|-(?=[a-z\\d])){0,38}";
18389
18389
  var TWITTER_REGEX = /^@[a-z0-9_]{1,15}$/i;
18390
18390
  var GITHUB_REGEX = new RegExp(`^${GITHUB_REGEX_STR}$`, "i");
18391
- var LINKEDIN_PROFILE_REGEX = /^(https?:\/\/)?(www\.)?([a-z]{2}\.)?linkedin.com\/(in|company)\/([A-Za-z0-9_-]+)\/?$/;
18391
+ var LINKEDIN_PROFILE_REGEX = /^(https?:\/\/)?(www\.)?([a-z]{2}\.)?linkedin\.com\/(in|company)\/((?:[A-Za-z0-9_-]|%[0-9A-Fa-f]{2})+)\/?$/;
18392
18392
  var URL_REGEX = /^https?:\/\//i;
18393
18393
  var HTTP_URL_REGEX = new RegExp(
18394
18394
  "^(?:(?:(?:https?):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u00a1-\\uffff][a-z0-9\\u00a1-\\uffff_-]{0,62})?[a-z0-9\\u00a1-\\uffff]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}\\.?|xn--[a-z0-9]+))(?::\\d{2,5})?(?:[/?#]\\S*)?$",
@@ -18957,7 +18957,7 @@ var LogFormat = /* @__PURE__ */ ((LogFormat2) => {
18957
18957
  LogFormat2["TEXT"] = "TEXT";
18958
18958
  return LogFormat2;
18959
18959
  })(LogFormat || {});
18960
- var IS_APIFY_LOGGER_EXCEPTION = Symbol("apify.processed_error");
18960
+ var IS_APIFY_LOGGER_EXCEPTION = /* @__PURE__ */ Symbol("apify.processed_error");
18961
18961
  var PREFIX_DELIMITER = ":";
18962
18962
  var TRUNCATION_FLAG_KEY = "[TRUNCATED]";
18963
18963
  var TRUNCATION_SUFFIX = "...[truncated]";
@@ -21648,7 +21648,7 @@ const {
21648
21648
  HttpStatusCode,
21649
21649
  formToJSON,
21650
21650
  getAdapter,
21651
- mergeConfig
21651
+ mergeConfig,
21652
21652
  } = _lib_axios_js__rspack_import_0["default"];
21653
21653
 
21654
21654
 
@@ -21678,7 +21678,7 @@ __webpack_require__.d(__webpack_exports__, {
21678
21678
  * - `http` for Node.js
21679
21679
  * - `xhr` for browsers
21680
21680
  * - `fetch` for fetch API-based requests
21681
- *
21681
+ *
21682
21682
  * @type {Object<string, Function|Object>}
21683
21683
  */
21684
21684
  const knownAdapters = {
@@ -21686,7 +21686,7 @@ const knownAdapters = {
21686
21686
  xhr: _xhr_js__rspack_import_1["default"],
21687
21687
  fetch: {
21688
21688
  get: _fetch_js__rspack_import_2.getFetch,
21689
- }
21689
+ },
21690
21690
  };
21691
21691
 
21692
21692
  // Assign adapter names for easier debugging and identification
@@ -21703,7 +21703,7 @@ _utils_js__rspack_import_3["default"].forEach(knownAdapters, (fn, value) => {
21703
21703
 
21704
21704
  /**
21705
21705
  * Render a rejection reason string for unknown or unsupported adapters
21706
- *
21706
+ *
21707
21707
  * @param {string} reason
21708
21708
  * @returns {string}
21709
21709
  */
@@ -21711,17 +21711,18 @@ const renderReason = (reason) => `- ${reason}`;
21711
21711
 
21712
21712
  /**
21713
21713
  * Check if the adapter is resolved (function, null, or false)
21714
- *
21714
+ *
21715
21715
  * @param {Function|null|false} adapter
21716
21716
  * @returns {boolean}
21717
21717
  */
21718
- const isResolvedHandle = (adapter) => _utils_js__rspack_import_3["default"].isFunction(adapter) || adapter === null || adapter === false;
21718
+ const isResolvedHandle = (adapter) =>
21719
+ _utils_js__rspack_import_3["default"].isFunction(adapter) || adapter === null || adapter === false;
21719
21720
 
21720
21721
  /**
21721
21722
  * Get the first suitable adapter from the provided list.
21722
21723
  * Tries each adapter in order until a supported one is found.
21723
21724
  * Throws an AxiosError if no adapter is suitable.
21724
- *
21725
+ *
21725
21726
  * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
21726
21727
  * @param {Object} config - Axios request configuration
21727
21728
  * @throws {AxiosError} If no suitable adapter is available
@@ -21758,14 +21759,17 @@ function getAdapter(adapters, config) {
21758
21759
  }
21759
21760
 
21760
21761
  if (!adapter) {
21761
- const reasons = Object.entries(rejectedReasons)
21762
- .map(([id, state]) => `adapter ${id} ` +
21762
+ const reasons = Object.entries(rejectedReasons).map(
21763
+ ([id, state]) =>
21764
+ `adapter ${id} ` +
21763
21765
  (state === false ? 'is not supported by the environment' : 'is not available in the build')
21764
- );
21766
+ );
21765
21767
 
21766
- let s = length ?
21767
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
21768
- 'as no adapter specified';
21768
+ let s = length
21769
+ ? reasons.length > 1
21770
+ ? 'since :\n' + reasons.map(renderReason).join('\n')
21771
+ : ' ' + renderReason(reasons[0])
21772
+ : 'as no adapter specified';
21769
21773
 
21770
21774
  throw new _core_AxiosError_js__rspack_import_4["default"](
21771
21775
  `There is no suitable adapter to dispatch the request ` + s,
@@ -21790,7 +21794,7 @@ function getAdapter(adapters, config) {
21790
21794
  * Exposes all known adapters
21791
21795
  * @type {Object<string, Function|Object>}
21792
21796
  */
21793
- adapters: knownAdapters
21797
+ adapters: knownAdapters,
21794
21798
  });
21795
21799
 
21796
21800
 
@@ -21823,31 +21827,33 @@ __webpack_require__.d(__webpack_exports__, {
21823
21827
 
21824
21828
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
21825
21829
 
21826
- const {isFunction} = _utils_js__rspack_import_0["default"];
21830
+ const { isFunction } = _utils_js__rspack_import_0["default"];
21827
21831
 
21828
- const globalFetchAPI = (({Request, Response}) => ({
21829
- Request, Response
21832
+ const globalFetchAPI = (({ Request, Response }) => ({
21833
+ Request,
21834
+ Response,
21830
21835
  }))(_utils_js__rspack_import_0["default"].global);
21831
21836
 
21832
- const {
21833
- ReadableStream, TextEncoder
21834
- } = _utils_js__rspack_import_0["default"].global;
21835
-
21837
+ const { ReadableStream, TextEncoder } = _utils_js__rspack_import_0["default"].global;
21836
21838
 
21837
21839
  const test = (fn, ...args) => {
21838
21840
  try {
21839
21841
  return !!fn(...args);
21840
21842
  } catch (e) {
21841
- return false
21843
+ return false;
21842
21844
  }
21843
- }
21845
+ };
21844
21846
 
21845
21847
  const factory = (env) => {
21846
- env = _utils_js__rspack_import_0["default"].merge.call({
21847
- skipUndefined: true
21848
- }, globalFetchAPI, env);
21848
+ env = _utils_js__rspack_import_0["default"].merge.call(
21849
+ {
21850
+ skipUndefined: true,
21851
+ },
21852
+ globalFetchAPI,
21853
+ env
21854
+ );
21849
21855
 
21850
- const {fetch: envFetch, Request, Response} = env;
21856
+ const { fetch: envFetch, Request, Response } = env;
21851
21857
  const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
21852
21858
  const isRequestSupported = isFunction(Request);
21853
21859
  const isResponseSupported = isFunction(Response);
@@ -21858,46 +21864,61 @@ const factory = (env) => {
21858
21864
 
21859
21865
  const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
21860
21866
 
21861
- const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
21862
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
21863
- async (str) => new Uint8Array(await new Request(str).arrayBuffer())
21864
- );
21865
-
21866
- const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
21867
- let duplexAccessed = false;
21868
-
21869
- const hasContentType = new Request(_platform_index_js__rspack_import_1["default"].origin, {
21870
- body: new ReadableStream(),
21871
- method: 'POST',
21872
- get duplex() {
21873
- duplexAccessed = true;
21874
- return 'half';
21875
- },
21876
- }).headers.has('Content-Type');
21867
+ const encodeText =
21868
+ isFetchSupported &&
21869
+ (typeof TextEncoder === 'function'
21870
+ ? (
21871
+ (encoder) => (str) =>
21872
+ encoder.encode(str)
21873
+ )(new TextEncoder())
21874
+ : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
21875
+
21876
+ const supportsRequestStream =
21877
+ isRequestSupported &&
21878
+ isReadableStreamSupported &&
21879
+ test(() => {
21880
+ let duplexAccessed = false;
21881
+
21882
+ const hasContentType = new Request(_platform_index_js__rspack_import_1["default"].origin, {
21883
+ body: new ReadableStream(),
21884
+ method: 'POST',
21885
+ get duplex() {
21886
+ duplexAccessed = true;
21887
+ return 'half';
21888
+ },
21889
+ }).headers.has('Content-Type');
21877
21890
 
21878
- return duplexAccessed && !hasContentType;
21879
- });
21891
+ return duplexAccessed && !hasContentType;
21892
+ });
21880
21893
 
21881
- const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
21894
+ const supportsResponseStream =
21895
+ isResponseSupported &&
21896
+ isReadableStreamSupported &&
21882
21897
  test(() => _utils_js__rspack_import_0["default"].isReadableStream(new Response('').body));
21883
21898
 
21884
21899
  const resolvers = {
21885
- stream: supportsResponseStream && ((res) => res.body)
21900
+ stream: supportsResponseStream && ((res) => res.body),
21886
21901
  };
21887
21902
 
21888
- isFetchSupported && ((() => {
21889
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
21890
- !resolvers[type] && (resolvers[type] = (res, config) => {
21891
- let method = res && res[type];
21903
+ isFetchSupported &&
21904
+ (() => {
21905
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach((type) => {
21906
+ !resolvers[type] &&
21907
+ (resolvers[type] = (res, config) => {
21908
+ let method = res && res[type];
21892
21909
 
21893
- if (method) {
21894
- return method.call(res);
21895
- }
21910
+ if (method) {
21911
+ return method.call(res);
21912
+ }
21896
21913
 
21897
- throw new _core_AxiosError_js__rspack_import_2["default"](`Response type '${type}' is not supported`, _core_AxiosError_js__rspack_import_2["default"].ERR_NOT_SUPPORT, config);
21898
- })
21899
- });
21900
- })());
21914
+ throw new _core_AxiosError_js__rspack_import_2["default"](
21915
+ `Response type '${type}' is not supported`,
21916
+ _core_AxiosError_js__rspack_import_2["default"].ERR_NOT_SUPPORT,
21917
+ config
21918
+ );
21919
+ });
21920
+ });
21921
+ })();
21901
21922
 
21902
21923
  const getBodyLength = async (body) => {
21903
21924
  if (body == null) {
@@ -21927,13 +21948,13 @@ const factory = (env) => {
21927
21948
  if (_utils_js__rspack_import_0["default"].isString(body)) {
21928
21949
  return (await encodeText(body)).byteLength;
21929
21950
  }
21930
- }
21951
+ };
21931
21952
 
21932
21953
  const resolveBodyLength = async (headers, body) => {
21933
21954
  const length = _utils_js__rspack_import_0["default"].toFiniteNumber(headers.getContentLength());
21934
21955
 
21935
21956
  return length == null ? getBodyLength(body) : length;
21936
- }
21957
+ };
21937
21958
 
21938
21959
  return async (config) => {
21939
21960
  let {
@@ -21948,38 +21969,47 @@ const factory = (env) => {
21948
21969
  responseType,
21949
21970
  headers,
21950
21971
  withCredentials = 'same-origin',
21951
- fetchOptions
21972
+ fetchOptions,
21952
21973
  } = (0,_helpers_resolveConfig_js__rspack_import_3["default"])(config);
21953
21974
 
21954
21975
  let _fetch = envFetch || fetch;
21955
21976
 
21956
21977
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
21957
21978
 
21958
- let composedSignal = (0,_helpers_composeSignals_js__rspack_import_4["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
21979
+ let composedSignal = (0,_helpers_composeSignals_js__rspack_import_4["default"])(
21980
+ [signal, cancelToken && cancelToken.toAbortSignal()],
21981
+ timeout
21982
+ );
21959
21983
 
21960
21984
  let request = null;
21961
21985
 
21962
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
21963
- composedSignal.unsubscribe();
21964
- });
21986
+ const unsubscribe =
21987
+ composedSignal &&
21988
+ composedSignal.unsubscribe &&
21989
+ (() => {
21990
+ composedSignal.unsubscribe();
21991
+ });
21965
21992
 
21966
21993
  let requestContentLength;
21967
21994
 
21968
21995
  try {
21969
21996
  if (
21970
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
21997
+ onUploadProgress &&
21998
+ supportsRequestStream &&
21999
+ method !== 'get' &&
22000
+ method !== 'head' &&
21971
22001
  (requestContentLength = await resolveBodyLength(headers, data)) !== 0
21972
22002
  ) {
21973
22003
  let _request = new Request(url, {
21974
22004
  method: 'POST',
21975
22005
  body: data,
21976
- duplex: "half"
22006
+ duplex: 'half',
21977
22007
  });
21978
22008
 
21979
22009
  let contentTypeHeader;
21980
22010
 
21981
22011
  if (_utils_js__rspack_import_0["default"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
21982
- headers.setContentType(contentTypeHeader)
22012
+ headers.setContentType(contentTypeHeader);
21983
22013
  }
21984
22014
 
21985
22015
  if (_request.body) {
@@ -21998,7 +22028,7 @@ const factory = (env) => {
21998
22028
 
21999
22029
  // Cloudflare Workers throws when credentials are defined
22000
22030
  // see https://github.com/cloudflare/workerd/issues/902
22001
- const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
22031
+ const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
22002
22032
 
22003
22033
  const resolvedOptions = {
22004
22034
  ...fetchOptions,
@@ -22006,29 +22036,35 @@ const factory = (env) => {
22006
22036
  method: method.toUpperCase(),
22007
22037
  headers: headers.normalize().toJSON(),
22008
22038
  body: data,
22009
- duplex: "half",
22010
- credentials: isCredentialsSupported ? withCredentials : undefined
22039
+ duplex: 'half',
22040
+ credentials: isCredentialsSupported ? withCredentials : undefined,
22011
22041
  };
22012
22042
 
22013
22043
  request = isRequestSupported && new Request(url, resolvedOptions);
22014
22044
 
22015
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
22045
+ let response = await (isRequestSupported
22046
+ ? _fetch(request, fetchOptions)
22047
+ : _fetch(url, resolvedOptions));
22016
22048
 
22017
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
22049
+ const isStreamResponse =
22050
+ supportsResponseStream && (responseType === 'stream' || responseType === 'response');
22018
22051
 
22019
22052
  if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
22020
22053
  const options = {};
22021
22054
 
22022
- ['status', 'statusText', 'headers'].forEach(prop => {
22055
+ ['status', 'statusText', 'headers'].forEach((prop) => {
22023
22056
  options[prop] = response[prop];
22024
22057
  });
22025
22058
 
22026
22059
  const responseContentLength = _utils_js__rspack_import_0["default"].toFiniteNumber(response.headers.get('content-length'));
22027
22060
 
22028
- const [onProgress, flush] = onDownloadProgress && (0,_helpers_progressEventReducer_js__rspack_import_5.progressEventDecorator)(
22029
- responseContentLength,
22030
- (0,_helpers_progressEventReducer_js__rspack_import_5.progressEventReducer)((0,_helpers_progressEventReducer_js__rspack_import_5.asyncDecorator)(onDownloadProgress), true)
22031
- ) || [];
22061
+ const [onProgress, flush] =
22062
+ (onDownloadProgress &&
22063
+ (0,_helpers_progressEventReducer_js__rspack_import_5.progressEventDecorator)(
22064
+ responseContentLength,
22065
+ (0,_helpers_progressEventReducer_js__rspack_import_5.progressEventReducer)((0,_helpers_progressEventReducer_js__rspack_import_5.asyncDecorator)(onDownloadProgress), true)
22066
+ )) ||
22067
+ [];
22032
22068
 
22033
22069
  response = new Response(
22034
22070
  (0,_helpers_trackStream_js__rspack_import_6.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
@@ -22041,7 +22077,10 @@ const factory = (env) => {
22041
22077
 
22042
22078
  responseType = responseType || 'text';
22043
22079
 
22044
- let responseData = await resolvers[_utils_js__rspack_import_0["default"].findKey(resolvers, responseType) || 'text'](response, config);
22080
+ let responseData = await resolvers[_utils_js__rspack_import_0["default"].findKey(resolvers, responseType) || 'text'](
22081
+ response,
22082
+ config
22083
+ );
22045
22084
 
22046
22085
  !isStreamResponse && unsubscribe && unsubscribe();
22047
22086
 
@@ -22052,43 +22091,50 @@ const factory = (env) => {
22052
22091
  status: response.status,
22053
22092
  statusText: response.statusText,
22054
22093
  config,
22055
- request
22056
- })
22057
- })
22094
+ request,
22095
+ });
22096
+ });
22058
22097
  } catch (err) {
22059
22098
  unsubscribe && unsubscribe();
22060
22099
 
22061
22100
  if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
22062
22101
  throw Object.assign(
22063
- new _core_AxiosError_js__rspack_import_2["default"]('Network Error', _core_AxiosError_js__rspack_import_2["default"].ERR_NETWORK, config, request, err && err.response),
22102
+ new _core_AxiosError_js__rspack_import_2["default"](
22103
+ 'Network Error',
22104
+ _core_AxiosError_js__rspack_import_2["default"].ERR_NETWORK,
22105
+ config,
22106
+ request,
22107
+ err && err.response
22108
+ ),
22064
22109
  {
22065
- cause: err.cause || err
22110
+ cause: err.cause || err,
22066
22111
  }
22067
- )
22112
+ );
22068
22113
  }
22069
22114
 
22070
22115
  throw _core_AxiosError_js__rspack_import_2["default"].from(err, err && err.code, config, request, err && err.response);
22071
22116
  }
22072
- }
22073
- }
22117
+ };
22118
+ };
22074
22119
 
22075
22120
  const seedCache = new Map();
22076
22121
 
22077
22122
  const getFetch = (config) => {
22078
22123
  let env = (config && config.env) || {};
22079
- const {fetch, Request, Response} = env;
22080
- const seeds = [
22081
- Request, Response, fetch
22082
- ];
22124
+ const { fetch, Request, Response } = env;
22125
+ const seeds = [Request, Response, fetch];
22083
22126
 
22084
- let len = seeds.length, i = len,
22085
- seed, target, map = seedCache;
22127
+ let len = seeds.length,
22128
+ i = len,
22129
+ seed,
22130
+ target,
22131
+ map = seedCache;
22086
22132
 
22087
22133
  while (i--) {
22088
22134
  seed = seeds[i];
22089
22135
  target = map.get(seed);
22090
22136
 
22091
- target === undefined && map.set(seed, target = (i ? new Map() : factory(env)))
22137
+ target === undefined && map.set(seed, (target = i ? new Map() : factory(env)));
22092
22138
 
22093
22139
  map = target;
22094
22140
  }
@@ -22131,193 +22177,215 @@ __webpack_require__.d(__webpack_exports__, {
22131
22177
 
22132
22178
  const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
22133
22179
 
22134
- /* export default */ const __rspack_default_export = (isXHRAdapterSupported && function (config) {
22135
- return new Promise(function dispatchXhrRequest(resolve, reject) {
22136
- const _config = (0,_helpers_resolveConfig_js__rspack_import_0["default"])(config);
22137
- let requestData = _config.data;
22138
- const requestHeaders = _core_AxiosHeaders_js__rspack_import_1["default"].from(_config.headers).normalize();
22139
- let {responseType, onUploadProgress, onDownloadProgress} = _config;
22140
- let onCanceled;
22141
- let uploadThrottled, downloadThrottled;
22142
- let flushUpload, flushDownload;
22180
+ /* export default */ const __rspack_default_export = (isXHRAdapterSupported &&
22181
+ function (config) {
22182
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
22183
+ const _config = (0,_helpers_resolveConfig_js__rspack_import_0["default"])(config);
22184
+ let requestData = _config.data;
22185
+ const requestHeaders = _core_AxiosHeaders_js__rspack_import_1["default"].from(_config.headers).normalize();
22186
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
22187
+ let onCanceled;
22188
+ let uploadThrottled, downloadThrottled;
22189
+ let flushUpload, flushDownload;
22143
22190
 
22144
- function done() {
22145
- flushUpload && flushUpload(); // flush events
22146
- flushDownload && flushDownload(); // flush events
22191
+ function done() {
22192
+ flushUpload && flushUpload(); // flush events
22193
+ flushDownload && flushDownload(); // flush events
22147
22194
 
22148
- _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
22195
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
22149
22196
 
22150
- _config.signal && _config.signal.removeEventListener('abort', onCanceled);
22151
- }
22197
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
22198
+ }
22152
22199
 
22153
- let request = new XMLHttpRequest();
22200
+ let request = new XMLHttpRequest();
22154
22201
 
22155
- request.open(_config.method.toUpperCase(), _config.url, true);
22202
+ request.open(_config.method.toUpperCase(), _config.url, true);
22156
22203
 
22157
- // Set the request timeout in MS
22158
- request.timeout = _config.timeout;
22204
+ // Set the request timeout in MS
22205
+ request.timeout = _config.timeout;
22159
22206
 
22160
- function onloadend() {
22161
- if (!request) {
22162
- return;
22207
+ function onloadend() {
22208
+ if (!request) {
22209
+ return;
22210
+ }
22211
+ // Prepare the response
22212
+ const responseHeaders = _core_AxiosHeaders_js__rspack_import_1["default"].from(
22213
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
22214
+ );
22215
+ const responseData =
22216
+ !responseType || responseType === 'text' || responseType === 'json'
22217
+ ? request.responseText
22218
+ : request.response;
22219
+ const response = {
22220
+ data: responseData,
22221
+ status: request.status,
22222
+ statusText: request.statusText,
22223
+ headers: responseHeaders,
22224
+ config,
22225
+ request,
22226
+ };
22227
+
22228
+ (0,_core_settle_js__rspack_import_2["default"])(
22229
+ function _resolve(value) {
22230
+ resolve(value);
22231
+ done();
22232
+ },
22233
+ function _reject(err) {
22234
+ reject(err);
22235
+ done();
22236
+ },
22237
+ response
22238
+ );
22239
+
22240
+ // Clean up request
22241
+ request = null;
22163
22242
  }
22164
- // Prepare the response
22165
- const responseHeaders = _core_AxiosHeaders_js__rspack_import_1["default"].from(
22166
- 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
22167
- );
22168
- const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
22169
- request.responseText : request.response;
22170
- const response = {
22171
- data: responseData,
22172
- status: request.status,
22173
- statusText: request.statusText,
22174
- headers: responseHeaders,
22175
- config,
22176
- request
22177
- };
22178
22243
 
22179
- (0,_core_settle_js__rspack_import_2["default"])(function _resolve(value) {
22180
- resolve(value);
22181
- done();
22182
- }, function _reject(err) {
22183
- reject(err);
22184
- done();
22185
- }, response);
22244
+ if ('onloadend' in request) {
22245
+ // Use onloadend if available
22246
+ request.onloadend = onloadend;
22247
+ } else {
22248
+ // Listen for ready state to emulate onloadend
22249
+ request.onreadystatechange = function handleLoad() {
22250
+ if (!request || request.readyState !== 4) {
22251
+ return;
22252
+ }
22186
22253
 
22187
- // Clean up request
22188
- request = null;
22189
- }
22254
+ // The request errored out and we didn't get a response, this will be
22255
+ // handled by onerror instead
22256
+ // With one exception: request that using file: protocol, most browsers
22257
+ // will return status as 0 even though it's a successful request
22258
+ if (
22259
+ request.status === 0 &&
22260
+ !(request.responseURL && request.responseURL.indexOf('file:') === 0)
22261
+ ) {
22262
+ return;
22263
+ }
22264
+ // readystate handler is calling before onerror or ontimeout handlers,
22265
+ // so we should call onloadend on the next 'tick'
22266
+ setTimeout(onloadend);
22267
+ };
22268
+ }
22190
22269
 
22191
- if ('onloadend' in request) {
22192
- // Use onloadend if available
22193
- request.onloadend = onloadend;
22194
- } else {
22195
- // Listen for ready state to emulate onloadend
22196
- request.onreadystatechange = function handleLoad() {
22197
- if (!request || request.readyState !== 4) {
22270
+ // Handle browser request cancellation (as opposed to a manual cancellation)
22271
+ request.onabort = function handleAbort() {
22272
+ if (!request) {
22198
22273
  return;
22199
22274
  }
22200
22275
 
22201
- // The request errored out and we didn't get a response, this will be
22202
- // handled by onerror instead
22203
- // With one exception: request that using file: protocol, most browsers
22204
- // will return status as 0 even though it's a successful request
22205
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
22206
- return;
22207
- }
22208
- // readystate handler is calling before onerror or ontimeout handlers,
22209
- // so we should call onloadend on the next 'tick'
22210
- setTimeout(onloadend);
22276
+ reject(new _core_AxiosError_js__rspack_import_3["default"]('Request aborted', _core_AxiosError_js__rspack_import_3["default"].ECONNABORTED, config, request));
22277
+
22278
+ // Clean up request
22279
+ request = null;
22211
22280
  };
22212
- }
22213
22281
 
22214
- // Handle browser request cancellation (as opposed to a manual cancellation)
22215
- request.onabort = function handleAbort() {
22216
- if (!request) {
22217
- return;
22218
- }
22282
+ // Handle low level network errors
22283
+ request.onerror = function handleError(event) {
22284
+ // Browsers deliver a ProgressEvent in XHR onerror
22285
+ // (message may be empty; when present, surface it)
22286
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
22287
+ const msg = event && event.message ? event.message : 'Network Error';
22288
+ const err = new _core_AxiosError_js__rspack_import_3["default"](msg, _core_AxiosError_js__rspack_import_3["default"].ERR_NETWORK, config, request);
22289
+ // attach the underlying event for consumers who want details
22290
+ err.event = event || null;
22291
+ reject(err);
22292
+ request = null;
22293
+ };
22294
+
22295
+ // Handle timeout
22296
+ request.ontimeout = function handleTimeout() {
22297
+ let timeoutErrorMessage = _config.timeout
22298
+ ? 'timeout of ' + _config.timeout + 'ms exceeded'
22299
+ : 'timeout exceeded';
22300
+ const transitional = _config.transitional || _defaults_transitional_js__rspack_import_4["default"];
22301
+ if (_config.timeoutErrorMessage) {
22302
+ timeoutErrorMessage = _config.timeoutErrorMessage;
22303
+ }
22304
+ reject(
22305
+ new _core_AxiosError_js__rspack_import_3["default"](
22306
+ timeoutErrorMessage,
22307
+ transitional.clarifyTimeoutError ? _core_AxiosError_js__rspack_import_3["default"].ETIMEDOUT : _core_AxiosError_js__rspack_import_3["default"].ECONNABORTED,
22308
+ config,
22309
+ request
22310
+ )
22311
+ );
22219
22312
 
22220
- reject(new _core_AxiosError_js__rspack_import_3["default"]('Request aborted', _core_AxiosError_js__rspack_import_3["default"].ECONNABORTED, config, request));
22313
+ // Clean up request
22314
+ request = null;
22315
+ };
22221
22316
 
22222
- // Clean up request
22223
- request = null;
22224
- };
22317
+ // Remove Content-Type if data is undefined
22318
+ requestData === undefined && requestHeaders.setContentType(null);
22225
22319
 
22226
- // Handle low level network errors
22227
- request.onerror = function handleError(event) {
22228
- // Browsers deliver a ProgressEvent in XHR onerror
22229
- // (message may be empty; when present, surface it)
22230
- // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
22231
- const msg = event && event.message ? event.message : 'Network Error';
22232
- const err = new _core_AxiosError_js__rspack_import_3["default"](msg, _core_AxiosError_js__rspack_import_3["default"].ERR_NETWORK, config, request);
22233
- // attach the underlying event for consumers who want details
22234
- err.event = event || null;
22235
- reject(err);
22236
- request = null;
22237
- };
22238
-
22239
- // Handle timeout
22240
- request.ontimeout = function handleTimeout() {
22241
- let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
22242
- const transitional = _config.transitional || _defaults_transitional_js__rspack_import_4["default"];
22243
- if (_config.timeoutErrorMessage) {
22244
- timeoutErrorMessage = _config.timeoutErrorMessage;
22320
+ // Add headers to the request
22321
+ if ('setRequestHeader' in request) {
22322
+ _utils_js__rspack_import_5["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
22323
+ request.setRequestHeader(key, val);
22324
+ });
22245
22325
  }
22246
- reject(new _core_AxiosError_js__rspack_import_3["default"](
22247
- timeoutErrorMessage,
22248
- transitional.clarifyTimeoutError ? _core_AxiosError_js__rspack_import_3["default"].ETIMEDOUT : _core_AxiosError_js__rspack_import_3["default"].ECONNABORTED,
22249
- config,
22250
- request));
22251
-
22252
- // Clean up request
22253
- request = null;
22254
- };
22255
-
22256
- // Remove Content-Type if data is undefined
22257
- requestData === undefined && requestHeaders.setContentType(null);
22258
22326
 
22259
- // Add headers to the request
22260
- if ('setRequestHeader' in request) {
22261
- _utils_js__rspack_import_5["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
22262
- request.setRequestHeader(key, val);
22263
- });
22264
- }
22327
+ // Add withCredentials to request if needed
22328
+ if (!_utils_js__rspack_import_5["default"].isUndefined(_config.withCredentials)) {
22329
+ request.withCredentials = !!_config.withCredentials;
22330
+ }
22265
22331
 
22266
- // Add withCredentials to request if needed
22267
- if (!_utils_js__rspack_import_5["default"].isUndefined(_config.withCredentials)) {
22268
- request.withCredentials = !!_config.withCredentials;
22269
- }
22332
+ // Add responseType to request if needed
22333
+ if (responseType && responseType !== 'json') {
22334
+ request.responseType = _config.responseType;
22335
+ }
22270
22336
 
22271
- // Add responseType to request if needed
22272
- if (responseType && responseType !== 'json') {
22273
- request.responseType = _config.responseType;
22274
- }
22337
+ // Handle progress if needed
22338
+ if (onDownloadProgress) {
22339
+ [downloadThrottled, flushDownload] = (0,_helpers_progressEventReducer_js__rspack_import_6.progressEventReducer)(onDownloadProgress, true);
22340
+ request.addEventListener('progress', downloadThrottled);
22341
+ }
22275
22342
 
22276
- // Handle progress if needed
22277
- if (onDownloadProgress) {
22278
- ([downloadThrottled, flushDownload] = (0,_helpers_progressEventReducer_js__rspack_import_6.progressEventReducer)(onDownloadProgress, true));
22279
- request.addEventListener('progress', downloadThrottled);
22280
- }
22343
+ // Not all browsers support upload events
22344
+ if (onUploadProgress && request.upload) {
22345
+ [uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__rspack_import_6.progressEventReducer)(onUploadProgress);
22281
22346
 
22282
- // Not all browsers support upload events
22283
- if (onUploadProgress && request.upload) {
22284
- ([uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__rspack_import_6.progressEventReducer)(onUploadProgress));
22347
+ request.upload.addEventListener('progress', uploadThrottled);
22285
22348
 
22286
- request.upload.addEventListener('progress', uploadThrottled);
22349
+ request.upload.addEventListener('loadend', flushUpload);
22350
+ }
22287
22351
 
22288
- request.upload.addEventListener('loadend', flushUpload);
22289
- }
22352
+ if (_config.cancelToken || _config.signal) {
22353
+ // Handle cancellation
22354
+ // eslint-disable-next-line func-names
22355
+ onCanceled = (cancel) => {
22356
+ if (!request) {
22357
+ return;
22358
+ }
22359
+ reject(!cancel || cancel.type ? new _cancel_CanceledError_js__rspack_import_7["default"](null, config, request) : cancel);
22360
+ request.abort();
22361
+ request = null;
22362
+ };
22290
22363
 
22291
- if (_config.cancelToken || _config.signal) {
22292
- // Handle cancellation
22293
- // eslint-disable-next-line func-names
22294
- onCanceled = cancel => {
22295
- if (!request) {
22296
- return;
22364
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
22365
+ if (_config.signal) {
22366
+ _config.signal.aborted
22367
+ ? onCanceled()
22368
+ : _config.signal.addEventListener('abort', onCanceled);
22297
22369
  }
22298
- reject(!cancel || cancel.type ? new _cancel_CanceledError_js__rspack_import_7["default"](null, config, request) : cancel);
22299
- request.abort();
22300
- request = null;
22301
- };
22302
-
22303
- _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
22304
- if (_config.signal) {
22305
- _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
22306
22370
  }
22307
- }
22308
22371
 
22309
- const protocol = (0,_helpers_parseProtocol_js__rspack_import_8["default"])(_config.url);
22310
-
22311
- if (protocol && _platform_index_js__rspack_import_9["default"].protocols.indexOf(protocol) === -1) {
22312
- reject(new _core_AxiosError_js__rspack_import_3["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__rspack_import_3["default"].ERR_BAD_REQUEST, config));
22313
- return;
22314
- }
22372
+ const protocol = (0,_helpers_parseProtocol_js__rspack_import_8["default"])(_config.url);
22315
22373
 
22374
+ if (protocol && _platform_index_js__rspack_import_9["default"].protocols.indexOf(protocol) === -1) {
22375
+ reject(
22376
+ new _core_AxiosError_js__rspack_import_3["default"](
22377
+ 'Unsupported protocol ' + protocol + ':',
22378
+ _core_AxiosError_js__rspack_import_3["default"].ERR_BAD_REQUEST,
22379
+ config
22380
+ )
22381
+ );
22382
+ return;
22383
+ }
22316
22384
 
22317
- // Send the request
22318
- request.send(requestData || null);
22385
+ // Send the request
22386
+ request.send(requestData || null);
22387
+ });
22319
22388
  });
22320
- });
22321
22389
 
22322
22390
 
22323
22391
  },
@@ -22376,10 +22444,10 @@ function createInstance(defaultConfig) {
22376
22444
  const instance = (0,_helpers_bind_js__rspack_import_1["default"])(_core_Axios_js__rspack_import_0["default"].prototype.request, context);
22377
22445
 
22378
22446
  // Copy axios.prototype to instance
22379
- _utils_js__rspack_import_2["default"].extend(instance, _core_Axios_js__rspack_import_0["default"].prototype, context, {allOwnKeys: true});
22447
+ _utils_js__rspack_import_2["default"].extend(instance, _core_Axios_js__rspack_import_0["default"].prototype, context, { allOwnKeys: true });
22380
22448
 
22381
22449
  // Copy context to instance
22382
- _utils_js__rspack_import_2["default"].extend(instance, context, null, {allOwnKeys: true});
22450
+ _utils_js__rspack_import_2["default"].extend(instance, context, null, { allOwnKeys: true });
22383
22451
 
22384
22452
  // Factory for creating new instances
22385
22453
  instance.create = function create(instanceConfig) {
@@ -22423,7 +22491,7 @@ axios.mergeConfig = _core_mergeConfig_js__rspack_import_3["default"];
22423
22491
 
22424
22492
  axios.AxiosHeaders = _core_AxiosHeaders_js__rspack_import_13["default"];
22425
22493
 
22426
- axios.formToJSON = thing => (0,_helpers_formDataToJSON_js__rspack_import_14["default"])(_utils_js__rspack_import_2["default"].isHTMLForm(thing) ? new FormData(thing) : thing);
22494
+ axios.formToJSON = (thing) => (0,_helpers_formDataToJSON_js__rspack_import_14["default"])(_utils_js__rspack_import_2["default"].isHTMLForm(thing) ? new FormData(thing) : thing);
22427
22495
 
22428
22496
  axios.getAdapter = _adapters_adapters_js__rspack_import_15["default"].getAdapter;
22429
22497
 
@@ -22469,7 +22537,7 @@ class CancelToken {
22469
22537
  const token = this;
22470
22538
 
22471
22539
  // eslint-disable-next-line func-names
22472
- this.promise.then(cancel => {
22540
+ this.promise.then((cancel) => {
22473
22541
  if (!token._listeners) return;
22474
22542
 
22475
22543
  let i = token._listeners.length;
@@ -22481,10 +22549,10 @@ class CancelToken {
22481
22549
  });
22482
22550
 
22483
22551
  // eslint-disable-next-line func-names
22484
- this.promise.then = onfulfilled => {
22552
+ this.promise.then = (onfulfilled) => {
22485
22553
  let _resolve;
22486
22554
  // eslint-disable-next-line func-names
22487
- const promise = new Promise(resolve => {
22555
+ const promise = new Promise((resolve) => {
22488
22556
  token.subscribe(resolve);
22489
22557
  _resolve = resolve;
22490
22558
  }).then(onfulfilled);
@@ -22572,7 +22640,7 @@ class CancelToken {
22572
22640
  });
22573
22641
  return {
22574
22642
  token,
22575
- cancel
22643
+ cancel,
22576
22644
  };
22577
22645
  }
22578
22646
  }
@@ -22668,7 +22736,7 @@ class Axios {
22668
22736
  this.defaults = instanceConfig || {};
22669
22737
  this.interceptors = {
22670
22738
  request: new _InterceptorManager_js__rspack_import_1["default"](),
22671
- response: new _InterceptorManager_js__rspack_import_1["default"]()
22739
+ response: new _InterceptorManager_js__rspack_import_1["default"](),
22672
22740
  };
22673
22741
  }
22674
22742
 
@@ -22696,7 +22764,7 @@ class Axios {
22696
22764
  err.stack = stack;
22697
22765
  // match without the 2 top stack lines
22698
22766
  } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
22699
- err.stack += '\n' + stack
22767
+ err.stack += '\n' + stack;
22700
22768
  }
22701
22769
  } catch (e) {
22702
22770
  // ignore the case where "stack" is an un-writable property
@@ -22719,27 +22787,35 @@ class Axios {
22719
22787
 
22720
22788
  config = (0,_mergeConfig_js__rspack_import_2["default"])(this.defaults, config);
22721
22789
 
22722
- const {transitional, paramsSerializer, headers} = config;
22790
+ const { transitional, paramsSerializer, headers } = config;
22723
22791
 
22724
22792
  if (transitional !== undefined) {
22725
- _helpers_validator_js__rspack_import_0["default"].assertOptions(transitional, {
22726
- silentJSONParsing: validators.transitional(validators.boolean),
22727
- forcedJSONParsing: validators.transitional(validators.boolean),
22728
- clarifyTimeoutError: validators.transitional(validators.boolean),
22729
- legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
22730
- }, false);
22793
+ _helpers_validator_js__rspack_import_0["default"].assertOptions(
22794
+ transitional,
22795
+ {
22796
+ silentJSONParsing: validators.transitional(validators.boolean),
22797
+ forcedJSONParsing: validators.transitional(validators.boolean),
22798
+ clarifyTimeoutError: validators.transitional(validators.boolean),
22799
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
22800
+ },
22801
+ false
22802
+ );
22731
22803
  }
22732
22804
 
22733
22805
  if (paramsSerializer != null) {
22734
22806
  if (_utils_js__rspack_import_3["default"].isFunction(paramsSerializer)) {
22735
22807
  config.paramsSerializer = {
22736
- serialize: paramsSerializer
22737
- }
22808
+ serialize: paramsSerializer,
22809
+ };
22738
22810
  } else {
22739
- _helpers_validator_js__rspack_import_0["default"].assertOptions(paramsSerializer, {
22740
- encode: validators.function,
22741
- serialize: validators.function
22742
- }, true);
22811
+ _helpers_validator_js__rspack_import_0["default"].assertOptions(
22812
+ paramsSerializer,
22813
+ {
22814
+ encode: validators.function,
22815
+ serialize: validators.function,
22816
+ },
22817
+ true
22818
+ );
22743
22819
  }
22744
22820
  }
22745
22821
 
@@ -22752,26 +22828,25 @@ class Axios {
22752
22828
  config.allowAbsoluteUrls = true;
22753
22829
  }
22754
22830
 
22755
- _helpers_validator_js__rspack_import_0["default"].assertOptions(config, {
22756
- baseUrl: validators.spelling('baseURL'),
22757
- withXsrfToken: validators.spelling('withXSRFToken')
22758
- }, true);
22831
+ _helpers_validator_js__rspack_import_0["default"].assertOptions(
22832
+ config,
22833
+ {
22834
+ baseUrl: validators.spelling('baseURL'),
22835
+ withXsrfToken: validators.spelling('withXSRFToken'),
22836
+ },
22837
+ true
22838
+ );
22759
22839
 
22760
22840
  // Set config.method
22761
22841
  config.method = (config.method || this.defaults.method || 'get').toLowerCase();
22762
22842
 
22763
22843
  // Flatten headers
22764
- let contextHeaders = headers && _utils_js__rspack_import_3["default"].merge(
22765
- headers.common,
22766
- headers[config.method]
22767
- );
22844
+ let contextHeaders = headers && _utils_js__rspack_import_3["default"].merge(headers.common, headers[config.method]);
22768
22845
 
22769
- headers && _utils_js__rspack_import_3["default"].forEach(
22770
- ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
22771
- (method) => {
22846
+ headers &&
22847
+ _utils_js__rspack_import_3["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], (method) => {
22772
22848
  delete headers[method];
22773
- }
22774
- );
22849
+ });
22775
22850
 
22776
22851
  config.headers = _AxiosHeaders_js__rspack_import_4["default"].concat(contextHeaders, headers);
22777
22852
 
@@ -22786,7 +22861,8 @@ class Axios {
22786
22861
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
22787
22862
 
22788
22863
  const transitional = config.transitional || _defaults_transitional_js__rspack_import_5["default"];
22789
- const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
22864
+ const legacyInterceptorReqResOrdering =
22865
+ transitional && transitional.legacyInterceptorReqResOrdering;
22790
22866
 
22791
22867
  if (legacyInterceptorReqResOrdering) {
22792
22868
  requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
@@ -22860,12 +22936,14 @@ class Axios {
22860
22936
  // Provide aliases for supported request methods
22861
22937
  _utils_js__rspack_import_3["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
22862
22938
  /*eslint func-names:0*/
22863
- Axios.prototype[method] = function(url, config) {
22864
- return this.request((0,_mergeConfig_js__rspack_import_2["default"])(config || {}, {
22865
- method,
22866
- url,
22867
- data: (config || {}).data
22868
- }));
22939
+ Axios.prototype[method] = function (url, config) {
22940
+ return this.request(
22941
+ (0,_mergeConfig_js__rspack_import_2["default"])(config || {}, {
22942
+ method,
22943
+ url,
22944
+ data: (config || {}).data,
22945
+ })
22946
+ );
22869
22947
  };
22870
22948
  });
22871
22949
 
@@ -22874,14 +22952,18 @@ _utils_js__rspack_import_3["default"].forEach(['post', 'put', 'patch'], function
22874
22952
 
22875
22953
  function generateHTTPMethod(isForm) {
22876
22954
  return function httpMethod(url, data, config) {
22877
- return this.request((0,_mergeConfig_js__rspack_import_2["default"])(config || {}, {
22878
- method,
22879
- headers: isForm ? {
22880
- 'Content-Type': 'multipart/form-data'
22881
- } : {},
22882
- url,
22883
- data
22884
- }));
22955
+ return this.request(
22956
+ (0,_mergeConfig_js__rspack_import_2["default"])(config || {}, {
22957
+ method,
22958
+ headers: isForm
22959
+ ? {
22960
+ 'Content-Type': 'multipart/form-data',
22961
+ }
22962
+ : {},
22963
+ url,
22964
+ data,
22965
+ })
22966
+ );
22885
22967
  };
22886
22968
  }
22887
22969
 
@@ -22906,14 +22988,20 @@ __webpack_require__.d(__webpack_exports__, {
22906
22988
 
22907
22989
 
22908
22990
  class AxiosError extends Error {
22909
- static from(error, code, config, request, response, customProps) {
22910
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
22911
- axiosError.cause = error;
22912
- axiosError.name = error.name;
22913
- customProps && Object.assign(axiosError, customProps);
22914
- return axiosError;
22991
+ static from(error, code, config, request, response, customProps) {
22992
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
22993
+ axiosError.cause = error;
22994
+ axiosError.name = error.name;
22995
+
22996
+ // Preserve status from the original error if not already set from response
22997
+ if (error.status != null && axiosError.status == null) {
22998
+ axiosError.status = error.status;
22915
22999
  }
22916
23000
 
23001
+ customProps && Object.assign(axiosError, customProps);
23002
+ return axiosError;
23003
+ }
23004
+
22917
23005
  /**
22918
23006
  * Create an Error with the specified message, config, error code, request and response.
22919
23007
  *
@@ -22926,37 +23014,48 @@ class AxiosError extends Error {
22926
23014
  * @returns {Error} The created error.
22927
23015
  */
22928
23016
  constructor(message, code, config, request, response) {
22929
- super(message);
22930
- this.name = 'AxiosError';
22931
- this.isAxiosError = true;
22932
- code && (this.code = code);
22933
- config && (this.config = config);
22934
- request && (this.request = request);
22935
- if (response) {
22936
- this.response = response;
22937
- this.status = response.status;
22938
- }
23017
+ super(message);
23018
+
23019
+ // Make message enumerable to maintain backward compatibility
23020
+ // The native Error constructor sets message as non-enumerable,
23021
+ // but axios < v1.13.3 had it as enumerable
23022
+ Object.defineProperty(this, 'message', {
23023
+ value: message,
23024
+ enumerable: true,
23025
+ writable: true,
23026
+ configurable: true
23027
+ });
23028
+
23029
+ this.name = 'AxiosError';
23030
+ this.isAxiosError = true;
23031
+ code && (this.code = code);
23032
+ config && (this.config = config);
23033
+ request && (this.request = request);
23034
+ if (response) {
23035
+ this.response = response;
23036
+ this.status = response.status;
23037
+ }
22939
23038
  }
22940
23039
 
22941
- toJSON() {
22942
- return {
22943
- // Standard
22944
- message: this.message,
22945
- name: this.name,
22946
- // Microsoft
22947
- description: this.description,
22948
- number: this.number,
22949
- // Mozilla
22950
- fileName: this.fileName,
22951
- lineNumber: this.lineNumber,
22952
- columnNumber: this.columnNumber,
22953
- stack: this.stack,
22954
- // Axios
22955
- config: _utils_js__rspack_import_0["default"].toJSONObject(this.config),
22956
- code: this.code,
22957
- status: this.status,
22958
- };
22959
- }
23040
+ toJSON() {
23041
+ return {
23042
+ // Standard
23043
+ message: this.message,
23044
+ name: this.name,
23045
+ // Microsoft
23046
+ description: this.description,
23047
+ number: this.number,
23048
+ // Mozilla
23049
+ fileName: this.fileName,
23050
+ lineNumber: this.lineNumber,
23051
+ columnNumber: this.columnNumber,
23052
+ stack: this.stack,
23053
+ // Axios
23054
+ config: _utils_js__rspack_import_0["default"].toJSONObject(this.config),
23055
+ code: this.code,
23056
+ status: this.status,
23057
+ };
23058
+ }
22960
23059
  }
22961
23060
 
22962
23061
  // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
@@ -23039,8 +23138,10 @@ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
23039
23138
  }
23040
23139
 
23041
23140
  function formatHeader(header) {
23042
- return header.trim()
23043
- .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
23141
+ return header
23142
+ .trim()
23143
+ .toLowerCase()
23144
+ .replace(/([a-z\d])(\w*)/g, (w, char, str) => {
23044
23145
  return char.toUpperCase() + str;
23045
23146
  });
23046
23147
  }
@@ -23048,12 +23149,12 @@ function formatHeader(header) {
23048
23149
  function buildAccessors(obj, header) {
23049
23150
  const accessorName = _utils_js__rspack_import_0["default"].toCamelCase(' ' + header);
23050
23151
 
23051
- ['get', 'set', 'has'].forEach(methodName => {
23152
+ ['get', 'set', 'has'].forEach((methodName) => {
23052
23153
  Object.defineProperty(obj, methodName + accessorName, {
23053
- value: function(arg1, arg2, arg3) {
23154
+ value: function (arg1, arg2, arg3) {
23054
23155
  return this[methodName].call(this, header, arg1, arg2, arg3);
23055
23156
  },
23056
- configurable: true
23157
+ configurable: true,
23057
23158
  });
23058
23159
  });
23059
23160
  }
@@ -23075,7 +23176,12 @@ class AxiosHeaders {
23075
23176
 
23076
23177
  const key = _utils_js__rspack_import_0["default"].findKey(self, lHeader);
23077
23178
 
23078
- if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
23179
+ if (
23180
+ !key ||
23181
+ self[key] === undefined ||
23182
+ _rewrite === true ||
23183
+ (_rewrite === undefined && self[key] !== false)
23184
+ ) {
23079
23185
  self[key || _header] = normalizeValue(_value);
23080
23186
  }
23081
23187
  }
@@ -23084,21 +23190,26 @@ class AxiosHeaders {
23084
23190
  _utils_js__rspack_import_0["default"].forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
23085
23191
 
23086
23192
  if (_utils_js__rspack_import_0["default"].isPlainObject(header) || header instanceof this.constructor) {
23087
- setHeaders(header, valueOrRewrite)
23088
- } else if(_utils_js__rspack_import_0["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
23193
+ setHeaders(header, valueOrRewrite);
23194
+ } else if (_utils_js__rspack_import_0["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
23089
23195
  setHeaders((0,_helpers_parseHeaders_js__rspack_import_1["default"])(header), valueOrRewrite);
23090
23196
  } else if (_utils_js__rspack_import_0["default"].isObject(header) && _utils_js__rspack_import_0["default"].isIterable(header)) {
23091
- let obj = {}, dest, key;
23197
+ let obj = {},
23198
+ dest,
23199
+ key;
23092
23200
  for (const entry of header) {
23093
23201
  if (!_utils_js__rspack_import_0["default"].isArray(entry)) {
23094
23202
  throw TypeError('Object iterator must return a key-value pair');
23095
23203
  }
23096
23204
 
23097
- obj[key = entry[0]] = (dest = obj[key]) ?
23098
- (_utils_js__rspack_import_0["default"].isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
23205
+ obj[(key = entry[0])] = (dest = obj[key])
23206
+ ? _utils_js__rspack_import_0["default"].isArray(dest)
23207
+ ? [...dest, entry[1]]
23208
+ : [dest, entry[1]]
23209
+ : entry[1];
23099
23210
  }
23100
23211
 
23101
- setHeaders(obj, valueOrRewrite)
23212
+ setHeaders(obj, valueOrRewrite);
23102
23213
  } else {
23103
23214
  header != null && setHeader(valueOrRewrite, header, rewrite);
23104
23215
  }
@@ -23142,7 +23253,11 @@ class AxiosHeaders {
23142
23253
  if (header) {
23143
23254
  const key = _utils_js__rspack_import_0["default"].findKey(this, header);
23144
23255
 
23145
- return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
23256
+ return !!(
23257
+ key &&
23258
+ this[key] !== undefined &&
23259
+ (!matcher || matchHeaderValue(this, this[key], key, matcher))
23260
+ );
23146
23261
  }
23147
23262
 
23148
23263
  return false;
@@ -23182,7 +23297,7 @@ class AxiosHeaders {
23182
23297
 
23183
23298
  while (i--) {
23184
23299
  const key = keys[i];
23185
- if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
23300
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
23186
23301
  delete this[key];
23187
23302
  deleted = true;
23188
23303
  }
@@ -23226,7 +23341,9 @@ class AxiosHeaders {
23226
23341
  const obj = Object.create(null);
23227
23342
 
23228
23343
  _utils_js__rspack_import_0["default"].forEach(this, (value, header) => {
23229
- value != null && value !== false && (obj[header] = asStrings && _utils_js__rspack_import_0["default"].isArray(value) ? value.join(', ') : value);
23344
+ value != null &&
23345
+ value !== false &&
23346
+ (obj[header] = asStrings && _utils_js__rspack_import_0["default"].isArray(value) ? value.join(', ') : value);
23230
23347
  });
23231
23348
 
23232
23349
  return obj;
@@ -23237,11 +23354,13 @@ class AxiosHeaders {
23237
23354
  }
23238
23355
 
23239
23356
  toString() {
23240
- return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
23357
+ return Object.entries(this.toJSON())
23358
+ .map(([header, value]) => header + ': ' + value)
23359
+ .join('\n');
23241
23360
  }
23242
23361
 
23243
23362
  getSetCookie() {
23244
- return this.get("set-cookie") || [];
23363
+ return this.get('set-cookie') || [];
23245
23364
  }
23246
23365
 
23247
23366
  get [Symbol.toStringTag]() {
@@ -23261,9 +23380,12 @@ class AxiosHeaders {
23261
23380
  }
23262
23381
 
23263
23382
  static accessor(header) {
23264
- const internals = this[$internals] = (this[$internals] = {
23265
- accessors: {}
23266
- });
23383
+ const internals =
23384
+ (this[$internals] =
23385
+ this[$internals] =
23386
+ {
23387
+ accessors: {},
23388
+ });
23267
23389
 
23268
23390
  const accessors = internals.accessors;
23269
23391
  const prototype = this.prototype;
@@ -23283,17 +23405,24 @@ class AxiosHeaders {
23283
23405
  }
23284
23406
  }
23285
23407
 
23286
- AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
23408
+ AxiosHeaders.accessor([
23409
+ 'Content-Type',
23410
+ 'Content-Length',
23411
+ 'Accept',
23412
+ 'Accept-Encoding',
23413
+ 'User-Agent',
23414
+ 'Authorization',
23415
+ ]);
23287
23416
 
23288
23417
  // reserved names hotfix
23289
- _utils_js__rspack_import_0["default"].reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
23418
+ _utils_js__rspack_import_0["default"].reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
23290
23419
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
23291
23420
  return {
23292
23421
  get: () => value,
23293
23422
  set(headerValue) {
23294
23423
  this[mapped] = headerValue;
23295
- }
23296
- }
23424
+ },
23425
+ };
23297
23426
  });
23298
23427
 
23299
23428
  _utils_js__rspack_import_0["default"].freezeMethods(AxiosHeaders);
@@ -23332,7 +23461,7 @@ class InterceptorManager {
23332
23461
  fulfilled,
23333
23462
  rejected,
23334
23463
  synchronous: options ? options.synchronous : false,
23335
- runWhen: options ? options.runWhen : null
23464
+ runWhen: options ? options.runWhen : null,
23336
23465
  });
23337
23466
  return this.handlers.length - 1;
23338
23467
  }
@@ -23468,10 +23597,7 @@ function dispatchRequest(config) {
23468
23597
  config.headers = _core_AxiosHeaders_js__rspack_import_1["default"].from(config.headers);
23469
23598
 
23470
23599
  // Transform request data
23471
- config.data = _transformData_js__rspack_import_2["default"].call(
23472
- config,
23473
- config.transformRequest
23474
- );
23600
+ config.data = _transformData_js__rspack_import_2["default"].call(config, config.transformRequest);
23475
23601
 
23476
23602
  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
23477
23603
  config.headers.setContentType('application/x-www-form-urlencoded', false);
@@ -23479,36 +23605,35 @@ function dispatchRequest(config) {
23479
23605
 
23480
23606
  const adapter = _adapters_adapters_js__rspack_import_3["default"].getAdapter(config.adapter || _defaults_index_js__rspack_import_4["default"].adapter, config);
23481
23607
 
23482
- return adapter(config).then(function onAdapterResolution(response) {
23483
- throwIfCancellationRequested(config);
23484
-
23485
- // Transform response data
23486
- response.data = _transformData_js__rspack_import_2["default"].call(
23487
- config,
23488
- config.transformResponse,
23489
- response
23490
- );
23491
-
23492
- response.headers = _core_AxiosHeaders_js__rspack_import_1["default"].from(response.headers);
23493
-
23494
- return response;
23495
- }, function onAdapterRejection(reason) {
23496
- if (!(0,_cancel_isCancel_js__rspack_import_5["default"])(reason)) {
23608
+ return adapter(config).then(
23609
+ function onAdapterResolution(response) {
23497
23610
  throwIfCancellationRequested(config);
23498
23611
 
23499
23612
  // Transform response data
23500
- if (reason && reason.response) {
23501
- reason.response.data = _transformData_js__rspack_import_2["default"].call(
23502
- config,
23503
- config.transformResponse,
23504
- reason.response
23505
- );
23506
- reason.response.headers = _core_AxiosHeaders_js__rspack_import_1["default"].from(reason.response.headers);
23613
+ response.data = _transformData_js__rspack_import_2["default"].call(config, config.transformResponse, response);
23614
+
23615
+ response.headers = _core_AxiosHeaders_js__rspack_import_1["default"].from(response.headers);
23616
+
23617
+ return response;
23618
+ },
23619
+ function onAdapterRejection(reason) {
23620
+ if (!(0,_cancel_isCancel_js__rspack_import_5["default"])(reason)) {
23621
+ throwIfCancellationRequested(config);
23622
+
23623
+ // Transform response data
23624
+ if (reason && reason.response) {
23625
+ reason.response.data = _transformData_js__rspack_import_2["default"].call(
23626
+ config,
23627
+ config.transformResponse,
23628
+ reason.response
23629
+ );
23630
+ reason.response.headers = _core_AxiosHeaders_js__rspack_import_1["default"].from(reason.response.headers);
23631
+ }
23507
23632
  }
23508
- }
23509
23633
 
23510
- return Promise.reject(reason);
23511
- });
23634
+ return Promise.reject(reason);
23635
+ }
23636
+ );
23512
23637
  }
23513
23638
 
23514
23639
 
@@ -23526,8 +23651,7 @@ __webpack_require__.d(__webpack_exports__, {
23526
23651
 
23527
23652
 
23528
23653
 
23529
- const headersToObject = (thing) =>
23530
- thing instanceof _AxiosHeaders_js__rspack_import_0["default"] ? { ...thing } : thing;
23654
+ const headersToObject = (thing) => (thing instanceof _AxiosHeaders_js__rspack_import_0["default"] ? { ...thing } : thing);
23531
23655
 
23532
23656
  /**
23533
23657
  * Config-specific merge-function which creates a new config-object
@@ -23620,23 +23744,12 @@ function mergeConfig(config1, config2) {
23620
23744
  mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
23621
23745
  };
23622
23746
 
23623
- _utils_js__rspack_import_1["default"].forEach(
23624
- Object.keys({ ...config1, ...config2 }),
23625
- function computeConfigValue(prop) {
23626
- if (
23627
- prop === "__proto__" ||
23628
- prop === "constructor" ||
23629
- prop === "prototype"
23630
- )
23631
- return;
23632
- const merge = _utils_js__rspack_import_1["default"].hasOwnProp(mergeMap, prop)
23633
- ? mergeMap[prop]
23634
- : mergeDeepProperties;
23635
- const configValue = merge(config1[prop], config2[prop], prop);
23636
- (_utils_js__rspack_import_1["default"].isUndefined(configValue) && merge !== mergeDirectKeys) ||
23637
- (config[prop] = configValue);
23638
- },
23639
- );
23747
+ _utils_js__rspack_import_1["default"].forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
23748
+ if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
23749
+ const merge = _utils_js__rspack_import_1["default"].hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
23750
+ const configValue = merge(config1[prop], config2[prop], prop);
23751
+ (_utils_js__rspack_import_1["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
23752
+ });
23640
23753
 
23641
23754
  return config;
23642
23755
  }
@@ -23668,13 +23781,17 @@ function settle(resolve, reject, response) {
23668
23781
  if (!response.status || !validateStatus || validateStatus(response.status)) {
23669
23782
  resolve(response);
23670
23783
  } else {
23671
- reject(new _AxiosError_js__rspack_import_0["default"](
23672
- 'Request failed with status code ' + response.status,
23673
- [_AxiosError_js__rspack_import_0["default"].ERR_BAD_REQUEST, _AxiosError_js__rspack_import_0["default"].ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
23674
- response.config,
23675
- response.request,
23676
- response
23677
- ));
23784
+ reject(
23785
+ new _AxiosError_js__rspack_import_0["default"](
23786
+ 'Request failed with status code ' + response.status,
23787
+ [_AxiosError_js__rspack_import_0["default"].ERR_BAD_REQUEST, _AxiosError_js__rspack_import_0["default"].ERR_BAD_RESPONSE][
23788
+ Math.floor(response.status / 100) - 4
23789
+ ],
23790
+ response.config,
23791
+ response.request,
23792
+ response
23793
+ )
23794
+ );
23678
23795
  }
23679
23796
  }
23680
23797
 
@@ -23769,96 +23886,107 @@ function stringifySafely(rawValue, parser, encoder) {
23769
23886
  }
23770
23887
 
23771
23888
  const defaults = {
23772
-
23773
23889
  transitional: _transitional_js__rspack_import_1["default"],
23774
23890
 
23775
23891
  adapter: ['xhr', 'http', 'fetch'],
23776
23892
 
23777
- transformRequest: [function transformRequest(data, headers) {
23778
- const contentType = headers.getContentType() || '';
23779
- const hasJSONContentType = contentType.indexOf('application/json') > -1;
23780
- const isObjectPayload = _utils_js__rspack_import_0["default"].isObject(data);
23893
+ transformRequest: [
23894
+ function transformRequest(data, headers) {
23895
+ const contentType = headers.getContentType() || '';
23896
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
23897
+ const isObjectPayload = _utils_js__rspack_import_0["default"].isObject(data);
23781
23898
 
23782
- if (isObjectPayload && _utils_js__rspack_import_0["default"].isHTMLForm(data)) {
23783
- data = new FormData(data);
23784
- }
23899
+ if (isObjectPayload && _utils_js__rspack_import_0["default"].isHTMLForm(data)) {
23900
+ data = new FormData(data);
23901
+ }
23785
23902
 
23786
- const isFormData = _utils_js__rspack_import_0["default"].isFormData(data);
23903
+ const isFormData = _utils_js__rspack_import_0["default"].isFormData(data);
23787
23904
 
23788
- if (isFormData) {
23789
- return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__rspack_import_2["default"])(data)) : data;
23790
- }
23905
+ if (isFormData) {
23906
+ return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__rspack_import_2["default"])(data)) : data;
23907
+ }
23791
23908
 
23792
- if (_utils_js__rspack_import_0["default"].isArrayBuffer(data) ||
23793
- _utils_js__rspack_import_0["default"].isBuffer(data) ||
23794
- _utils_js__rspack_import_0["default"].isStream(data) ||
23795
- _utils_js__rspack_import_0["default"].isFile(data) ||
23796
- _utils_js__rspack_import_0["default"].isBlob(data) ||
23797
- _utils_js__rspack_import_0["default"].isReadableStream(data)
23798
- ) {
23799
- return data;
23800
- }
23801
- if (_utils_js__rspack_import_0["default"].isArrayBufferView(data)) {
23802
- return data.buffer;
23803
- }
23804
- if (_utils_js__rspack_import_0["default"].isURLSearchParams(data)) {
23805
- headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
23806
- return data.toString();
23807
- }
23909
+ if (
23910
+ _utils_js__rspack_import_0["default"].isArrayBuffer(data) ||
23911
+ _utils_js__rspack_import_0["default"].isBuffer(data) ||
23912
+ _utils_js__rspack_import_0["default"].isStream(data) ||
23913
+ _utils_js__rspack_import_0["default"].isFile(data) ||
23914
+ _utils_js__rspack_import_0["default"].isBlob(data) ||
23915
+ _utils_js__rspack_import_0["default"].isReadableStream(data)
23916
+ ) {
23917
+ return data;
23918
+ }
23919
+ if (_utils_js__rspack_import_0["default"].isArrayBufferView(data)) {
23920
+ return data.buffer;
23921
+ }
23922
+ if (_utils_js__rspack_import_0["default"].isURLSearchParams(data)) {
23923
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
23924
+ return data.toString();
23925
+ }
23808
23926
 
23809
- let isFileList;
23927
+ let isFileList;
23810
23928
 
23811
- if (isObjectPayload) {
23812
- if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
23813
- return (0,_helpers_toURLEncodedForm_js__rspack_import_3["default"])(data, this.formSerializer).toString();
23814
- }
23929
+ if (isObjectPayload) {
23930
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
23931
+ return (0,_helpers_toURLEncodedForm_js__rspack_import_3["default"])(data, this.formSerializer).toString();
23932
+ }
23815
23933
 
23816
- if ((isFileList = _utils_js__rspack_import_0["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
23817
- const _FormData = this.env && this.env.FormData;
23934
+ if (
23935
+ (isFileList = _utils_js__rspack_import_0["default"].isFileList(data)) ||
23936
+ contentType.indexOf('multipart/form-data') > -1
23937
+ ) {
23938
+ const _FormData = this.env && this.env.FormData;
23818
23939
 
23819
- return (0,_helpers_toFormData_js__rspack_import_4["default"])(
23820
- isFileList ? {'files[]': data} : data,
23821
- _FormData && new _FormData(),
23822
- this.formSerializer
23823
- );
23940
+ return (0,_helpers_toFormData_js__rspack_import_4["default"])(
23941
+ isFileList ? { 'files[]': data } : data,
23942
+ _FormData && new _FormData(),
23943
+ this.formSerializer
23944
+ );
23945
+ }
23824
23946
  }
23825
- }
23826
23947
 
23827
- if (isObjectPayload || hasJSONContentType ) {
23828
- headers.setContentType('application/json', false);
23829
- return stringifySafely(data);
23830
- }
23948
+ if (isObjectPayload || hasJSONContentType) {
23949
+ headers.setContentType('application/json', false);
23950
+ return stringifySafely(data);
23951
+ }
23831
23952
 
23832
- return data;
23833
- }],
23953
+ return data;
23954
+ },
23955
+ ],
23834
23956
 
23835
- transformResponse: [function transformResponse(data) {
23836
- const transitional = this.transitional || defaults.transitional;
23837
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
23838
- const JSONRequested = this.responseType === 'json';
23957
+ transformResponse: [
23958
+ function transformResponse(data) {
23959
+ const transitional = this.transitional || defaults.transitional;
23960
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
23961
+ const JSONRequested = this.responseType === 'json';
23839
23962
 
23840
- if (_utils_js__rspack_import_0["default"].isResponse(data) || _utils_js__rspack_import_0["default"].isReadableStream(data)) {
23841
- return data;
23842
- }
23963
+ if (_utils_js__rspack_import_0["default"].isResponse(data) || _utils_js__rspack_import_0["default"].isReadableStream(data)) {
23964
+ return data;
23965
+ }
23843
23966
 
23844
- if (data && _utils_js__rspack_import_0["default"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
23845
- const silentJSONParsing = transitional && transitional.silentJSONParsing;
23846
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
23967
+ if (
23968
+ data &&
23969
+ _utils_js__rspack_import_0["default"].isString(data) &&
23970
+ ((forcedJSONParsing && !this.responseType) || JSONRequested)
23971
+ ) {
23972
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
23973
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
23847
23974
 
23848
- try {
23849
- return JSON.parse(data, this.parseReviver);
23850
- } catch (e) {
23851
- if (strictJSONParsing) {
23852
- if (e.name === 'SyntaxError') {
23853
- throw _core_AxiosError_js__rspack_import_5["default"].from(e, _core_AxiosError_js__rspack_import_5["default"].ERR_BAD_RESPONSE, this, null, this.response);
23975
+ try {
23976
+ return JSON.parse(data, this.parseReviver);
23977
+ } catch (e) {
23978
+ if (strictJSONParsing) {
23979
+ if (e.name === 'SyntaxError') {
23980
+ throw _core_AxiosError_js__rspack_import_5["default"].from(e, _core_AxiosError_js__rspack_import_5["default"].ERR_BAD_RESPONSE, this, null, this.response);
23981
+ }
23982
+ throw e;
23854
23983
  }
23855
- throw e;
23856
23984
  }
23857
23985
  }
23858
- }
23859
23986
 
23860
- return data;
23861
- }],
23987
+ return data;
23988
+ },
23989
+ ],
23862
23990
 
23863
23991
  /**
23864
23992
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
@@ -23874,7 +24002,7 @@ const defaults = {
23874
24002
 
23875
24003
  env: {
23876
24004
  FormData: _platform_index_js__rspack_import_6["default"].classes.FormData,
23877
- Blob: _platform_index_js__rspack_import_6["default"].classes.Blob
24005
+ Blob: _platform_index_js__rspack_import_6["default"].classes.Blob,
23878
24006
  },
23879
24007
 
23880
24008
  validateStatus: function validateStatus(status) {
@@ -23883,10 +24011,10 @@ const defaults = {
23883
24011
 
23884
24012
  headers: {
23885
24013
  common: {
23886
- 'Accept': 'application/json, text/plain, */*',
23887
- 'Content-Type': undefined
23888
- }
23889
- }
24014
+ Accept: 'application/json, text/plain, */*',
24015
+ 'Content-Type': undefined,
24016
+ },
24017
+ },
23890
24018
  };
23891
24019
 
23892
24020
  _utils_js__rspack_import_0["default"].forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
@@ -23909,7 +24037,7 @@ __webpack_require__.d(__webpack_exports__, {
23909
24037
  silentJSONParsing: true,
23910
24038
  forcedJSONParsing: true,
23911
24039
  clarifyTimeoutError: false,
23912
- legacyInterceptorReqResOrdering: true
24040
+ legacyInterceptorReqResOrdering: true,
23913
24041
  });
23914
24042
 
23915
24043
 
@@ -23920,7 +24048,7 @@ __webpack_require__.r(__webpack_exports__);
23920
24048
  __webpack_require__.d(__webpack_exports__, {
23921
24049
  VERSION: () => (VERSION)
23922
24050
  });
23923
- const VERSION = "1.13.5";
24051
+ const VERSION = "1.13.6";
23924
24052
 
23925
24053
  },
23926
24054
  "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
@@ -23950,7 +24078,7 @@ function encode(str) {
23950
24078
  ')': '%29',
23951
24079
  '~': '%7E',
23952
24080
  '%20': '+',
23953
- '%00': '\x00'
24081
+ '%00': '\x00',
23954
24082
  };
23955
24083
  return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
23956
24084
  return charMap[match];
@@ -23978,13 +24106,17 @@ prototype.append = function append(name, value) {
23978
24106
  };
23979
24107
 
23980
24108
  prototype.toString = function toString(encoder) {
23981
- const _encode = encoder ? function(value) {
23982
- return encoder.call(this, value, encode);
23983
- } : encode;
24109
+ const _encode = encoder
24110
+ ? function (value) {
24111
+ return encoder.call(this, value, encode);
24112
+ }
24113
+ : encode;
23984
24114
 
23985
- return this._pairs.map(function each(pair) {
23986
- return _encode(pair[0]) + '=' + _encode(pair[1]);
23987
- }, '').join('&');
24115
+ return this._pairs
24116
+ .map(function each(pair) {
24117
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
24118
+ }, '')
24119
+ .join('&');
23988
24120
  };
23989
24121
 
23990
24122
  /* export default */ const __rspack_default_export = (AxiosURLSearchParams);
@@ -24122,11 +24254,11 @@ __webpack_require__.d(__webpack_exports__, {
24122
24254
  * @returns {string} The encoded value.
24123
24255
  */
24124
24256
  function encode(val) {
24125
- return encodeURIComponent(val).
24126
- replace(/%3A/gi, ':').
24127
- replace(/%24/g, '$').
24128
- replace(/%2C/gi, ',').
24129
- replace(/%20/g, '+');
24257
+ return encodeURIComponent(val)
24258
+ .replace(/%3A/gi, ':')
24259
+ .replace(/%24/g, '$')
24260
+ .replace(/%2C/gi, ',')
24261
+ .replace(/%20/g, '+');
24130
24262
  }
24131
24263
 
24132
24264
  /**
@@ -24143,11 +24275,13 @@ function buildURL(url, params, options) {
24143
24275
  return url;
24144
24276
  }
24145
24277
 
24146
- const _encode = options && options.encode || encode;
24278
+ const _encode = (options && options.encode) || encode;
24147
24279
 
24148
- const _options = _utils_js__rspack_import_0["default"].isFunction(options) ? {
24149
- serialize: options
24150
- } : options;
24280
+ const _options = _utils_js__rspack_import_0["default"].isFunction(options)
24281
+ ? {
24282
+ serialize: options,
24283
+ }
24284
+ : options;
24151
24285
 
24152
24286
  const serializeFn = _options && _options.serialize;
24153
24287
 
@@ -24156,13 +24290,13 @@ function buildURL(url, params, options) {
24156
24290
  if (serializeFn) {
24157
24291
  serializedParams = serializeFn(params, _options);
24158
24292
  } else {
24159
- serializedParams = _utils_js__rspack_import_0["default"].isURLSearchParams(params) ?
24160
- params.toString() :
24161
- new _helpers_AxiosURLSearchParams_js__rspack_import_1["default"](params, _options).toString(_encode);
24293
+ serializedParams = _utils_js__rspack_import_0["default"].isURLSearchParams(params)
24294
+ ? params.toString()
24295
+ : new _helpers_AxiosURLSearchParams_js__rspack_import_1["default"](params, _options).toString(_encode);
24162
24296
  }
24163
24297
 
24164
24298
  if (serializedParams) {
24165
- const hashmarkIndex = url.indexOf("#");
24299
+ const hashmarkIndex = url.indexOf('#');
24166
24300
 
24167
24301
  if (hashmarkIndex !== -1) {
24168
24302
  url = url.slice(0, hashmarkIndex);
@@ -24213,7 +24347,7 @@ __webpack_require__.d(__webpack_exports__, {
24213
24347
 
24214
24348
 
24215
24349
  const composeSignals = (signals, timeout) => {
24216
- const {length} = (signals = signals ? signals.filter(Boolean) : []);
24350
+ const { length } = (signals = signals ? signals.filter(Boolean) : []);
24217
24351
 
24218
24352
  if (timeout || length) {
24219
24353
  let controller = new AbortController();
@@ -24225,35 +24359,43 @@ const composeSignals = (signals, timeout) => {
24225
24359
  aborted = true;
24226
24360
  unsubscribe();
24227
24361
  const err = reason instanceof Error ? reason : this.reason;
24228
- controller.abort(err instanceof _core_AxiosError_js__rspack_import_0["default"] ? err : new _cancel_CanceledError_js__rspack_import_1["default"](err instanceof Error ? err.message : err));
24362
+ controller.abort(
24363
+ err instanceof _core_AxiosError_js__rspack_import_0["default"]
24364
+ ? err
24365
+ : new _cancel_CanceledError_js__rspack_import_1["default"](err instanceof Error ? err.message : err)
24366
+ );
24229
24367
  }
24230
- }
24368
+ };
24231
24369
 
24232
- let timer = timeout && setTimeout(() => {
24233
- timer = null;
24234
- onabort(new _core_AxiosError_js__rspack_import_0["default"](`timeout of ${timeout}ms exceeded`, _core_AxiosError_js__rspack_import_0["default"].ETIMEDOUT))
24235
- }, timeout)
24370
+ let timer =
24371
+ timeout &&
24372
+ setTimeout(() => {
24373
+ timer = null;
24374
+ onabort(new _core_AxiosError_js__rspack_import_0["default"](`timeout of ${timeout}ms exceeded`, _core_AxiosError_js__rspack_import_0["default"].ETIMEDOUT));
24375
+ }, timeout);
24236
24376
 
24237
24377
  const unsubscribe = () => {
24238
24378
  if (signals) {
24239
24379
  timer && clearTimeout(timer);
24240
24380
  timer = null;
24241
- signals.forEach(signal => {
24242
- signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
24381
+ signals.forEach((signal) => {
24382
+ signal.unsubscribe
24383
+ ? signal.unsubscribe(onabort)
24384
+ : signal.removeEventListener('abort', onabort);
24243
24385
  });
24244
24386
  signals = null;
24245
24387
  }
24246
- }
24388
+ };
24247
24389
 
24248
24390
  signals.forEach((signal) => signal.addEventListener('abort', onabort));
24249
24391
 
24250
- const {signal} = controller;
24392
+ const { signal } = controller;
24251
24393
 
24252
24394
  signal.unsubscribe = () => _utils_js__rspack_import_2["default"].asap(unsubscribe);
24253
24395
 
24254
24396
  return signal;
24255
24397
  }
24256
- }
24398
+ };
24257
24399
 
24258
24400
  /* export default */ const __rspack_default_export = (composeSignals);
24259
24401
 
@@ -24270,56 +24412,51 @@ __webpack_require__.d(__webpack_exports__, {
24270
24412
 
24271
24413
 
24272
24414
 
24273
- /* export default */ const __rspack_default_export = (_platform_index_js__rspack_import_0["default"].hasStandardBrowserEnv ?
24274
-
24275
- // Standard browser envs support document.cookie
24276
- {
24277
- write(name, value, expires, path, domain, secure, sameSite) {
24278
- if (typeof document === 'undefined') return;
24415
+ /* export default */ const __rspack_default_export = (_platform_index_js__rspack_import_0["default"].hasStandardBrowserEnv
24416
+ ? // Standard browser envs support document.cookie
24417
+ {
24418
+ write(name, value, expires, path, domain, secure, sameSite) {
24419
+ if (typeof document === 'undefined') return;
24279
24420
 
24280
- const cookie = [`${name}=${encodeURIComponent(value)}`];
24421
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
24281
24422
 
24282
- if (_utils_js__rspack_import_1["default"].isNumber(expires)) {
24283
- cookie.push(`expires=${new Date(expires).toUTCString()}`);
24284
- }
24285
- if (_utils_js__rspack_import_1["default"].isString(path)) {
24286
- cookie.push(`path=${path}`);
24287
- }
24288
- if (_utils_js__rspack_import_1["default"].isString(domain)) {
24289
- cookie.push(`domain=${domain}`);
24290
- }
24291
- if (secure === true) {
24292
- cookie.push('secure');
24293
- }
24294
- if (_utils_js__rspack_import_1["default"].isString(sameSite)) {
24295
- cookie.push(`SameSite=${sameSite}`);
24296
- }
24423
+ if (_utils_js__rspack_import_1["default"].isNumber(expires)) {
24424
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
24425
+ }
24426
+ if (_utils_js__rspack_import_1["default"].isString(path)) {
24427
+ cookie.push(`path=${path}`);
24428
+ }
24429
+ if (_utils_js__rspack_import_1["default"].isString(domain)) {
24430
+ cookie.push(`domain=${domain}`);
24431
+ }
24432
+ if (secure === true) {
24433
+ cookie.push('secure');
24434
+ }
24435
+ if (_utils_js__rspack_import_1["default"].isString(sameSite)) {
24436
+ cookie.push(`SameSite=${sameSite}`);
24437
+ }
24297
24438
 
24298
- document.cookie = cookie.join('; ');
24299
- },
24439
+ document.cookie = cookie.join('; ');
24440
+ },
24300
24441
 
24301
- read(name) {
24302
- if (typeof document === 'undefined') return null;
24303
- const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
24304
- return match ? decodeURIComponent(match[1]) : null;
24305
- },
24442
+ read(name) {
24443
+ if (typeof document === 'undefined') return null;
24444
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
24445
+ return match ? decodeURIComponent(match[1]) : null;
24446
+ },
24306
24447
 
24307
- remove(name) {
24308
- this.write(name, '', Date.now() - 86400000, '/');
24448
+ remove(name) {
24449
+ this.write(name, '', Date.now() - 86400000, '/');
24450
+ },
24309
24451
  }
24310
- }
24311
-
24312
- :
24313
-
24314
- // Non-standard browser env (web workers, react-native) lack needed support.
24315
- {
24316
- write() {},
24317
- read() {
24318
- return null;
24319
- },
24320
- remove() {}
24321
- });
24322
-
24452
+ : // Non-standard browser env (web workers, react-native) lack needed support.
24453
+ {
24454
+ write() {},
24455
+ read() {
24456
+ return null;
24457
+ },
24458
+ remove() {},
24459
+ });
24323
24460
 
24324
24461
 
24325
24462
  },
@@ -24346,7 +24483,7 @@ function parsePropPath(name) {
24346
24483
  // foo.x.y.z
24347
24484
  // foo-x-y-z
24348
24485
  // foo x y z
24349
- return _utils_js__rspack_import_0["default"].matchAll(/\w+|\[(\w*)]/g, name).map(match => {
24486
+ return _utils_js__rspack_import_0["default"].matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
24350
24487
  return match[0] === '[]' ? '' : match[1] || match[0];
24351
24488
  });
24352
24489
  }
@@ -24455,7 +24592,6 @@ function isAbsoluteURL(url) {
24455
24592
  }
24456
24593
 
24457
24594
 
24458
-
24459
24595
  },
24460
24596
  "./node_modules/axios/lib/helpers/isAxiosError.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
24461
24597
  "use strict";
@@ -24476,7 +24612,7 @@ __webpack_require__.d(__webpack_exports__, {
24476
24612
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
24477
24613
  */
24478
24614
  function isAxiosError(payload) {
24479
- return _utils_js__rspack_import_0["default"].isObject(payload) && (payload.isAxiosError === true);
24615
+ return _utils_js__rspack_import_0["default"].isObject(payload) && payload.isAxiosError === true;
24480
24616
  }
24481
24617
 
24482
24618
 
@@ -24490,18 +24626,20 @@ __webpack_require__.d(__webpack_exports__, {
24490
24626
  /* import */ var _platform_index_js__rspack_import_0 = __webpack_require__("./node_modules/axios/lib/platform/index.js");
24491
24627
 
24492
24628
 
24493
- /* export default */ const __rspack_default_export = (_platform_index_js__rspack_import_0["default"].hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
24494
- url = new URL(url, _platform_index_js__rspack_import_0["default"].origin);
24629
+ /* export default */ const __rspack_default_export = (_platform_index_js__rspack_import_0["default"].hasStandardBrowserEnv
24630
+ ? ((origin, isMSIE) => (url) => {
24631
+ url = new URL(url, _platform_index_js__rspack_import_0["default"].origin);
24495
24632
 
24496
- return (
24497
- origin.protocol === url.protocol &&
24498
- origin.host === url.host &&
24499
- (isMSIE || origin.port === url.port)
24500
- );
24501
- })(
24502
- new URL(_platform_index_js__rspack_import_0["default"].origin),
24503
- _platform_index_js__rspack_import_0["default"].navigator && /(msie|trident)/i.test(_platform_index_js__rspack_import_0["default"].navigator.userAgent)
24504
- ) : () => true);
24633
+ return (
24634
+ origin.protocol === url.protocol &&
24635
+ origin.host === url.host &&
24636
+ (isMSIE || origin.port === url.port)
24637
+ );
24638
+ })(
24639
+ new URL(_platform_index_js__rspack_import_0["default"].origin),
24640
+ _platform_index_js__rspack_import_0["default"].navigator && /(msie|trident)/i.test(_platform_index_js__rspack_import_0["default"].navigator.userAgent)
24641
+ )
24642
+ : () => true);
24505
24643
 
24506
24644
 
24507
24645
  },
@@ -24530,10 +24668,23 @@ __webpack_require__.d(__webpack_exports__, {
24530
24668
  // RawAxiosHeaders whose duplicates are ignored by node
24531
24669
  // c.f. https://nodejs.org/api/http.html#http_message_headers
24532
24670
  const ignoreDuplicateOf = _utils_js__rspack_import_0["default"].toObjectSet([
24533
- 'age', 'authorization', 'content-length', 'content-type', 'etag',
24534
- 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
24535
- 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
24536
- 'referer', 'retry-after', 'user-agent'
24671
+ 'age',
24672
+ 'authorization',
24673
+ 'content-length',
24674
+ 'content-type',
24675
+ 'etag',
24676
+ 'expires',
24677
+ 'from',
24678
+ 'host',
24679
+ 'if-modified-since',
24680
+ 'if-unmodified-since',
24681
+ 'last-modified',
24682
+ 'location',
24683
+ 'max-forwards',
24684
+ 'proxy-authorization',
24685
+ 'referer',
24686
+ 'retry-after',
24687
+ 'user-agent',
24537
24688
  ]);
24538
24689
 
24539
24690
  /**
@@ -24550,31 +24701,32 @@ const ignoreDuplicateOf = _utils_js__rspack_import_0["default"].toObjectSet([
24550
24701
  *
24551
24702
  * @returns {Object} Headers parsed into an object
24552
24703
  */
24553
- /* export default */ const __rspack_default_export = (rawHeaders => {
24704
+ /* export default */ const __rspack_default_export = ((rawHeaders) => {
24554
24705
  const parsed = {};
24555
24706
  let key;
24556
24707
  let val;
24557
24708
  let i;
24558
24709
 
24559
- rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
24560
- i = line.indexOf(':');
24561
- key = line.substring(0, i).trim().toLowerCase();
24562
- val = line.substring(i + 1).trim();
24710
+ rawHeaders &&
24711
+ rawHeaders.split('\n').forEach(function parser(line) {
24712
+ i = line.indexOf(':');
24713
+ key = line.substring(0, i).trim().toLowerCase();
24714
+ val = line.substring(i + 1).trim();
24563
24715
 
24564
- if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
24565
- return;
24566
- }
24716
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
24717
+ return;
24718
+ }
24567
24719
 
24568
- if (key === 'set-cookie') {
24569
- if (parsed[key]) {
24570
- parsed[key].push(val);
24720
+ if (key === 'set-cookie') {
24721
+ if (parsed[key]) {
24722
+ parsed[key].push(val);
24723
+ } else {
24724
+ parsed[key] = [val];
24725
+ }
24571
24726
  } else {
24572
- parsed[key] = [val];
24727
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
24573
24728
  }
24574
- } else {
24575
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
24576
- }
24577
- });
24729
+ });
24578
24730
 
24579
24731
  return parsed;
24580
24732
  });
@@ -24591,7 +24743,7 @@ __webpack_require__.d(__webpack_exports__, {
24591
24743
 
24592
24744
  function parseProtocol(url) {
24593
24745
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
24594
- return match && match[1] || '';
24746
+ return (match && match[1]) || '';
24595
24747
  }
24596
24748
 
24597
24749
 
@@ -24615,7 +24767,7 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
24615
24767
  let bytesNotified = 0;
24616
24768
  const _speedometer = (0,_speedometer_js__rspack_import_0["default"])(50, 250);
24617
24769
 
24618
- return (0,_throttle_js__rspack_import_1["default"])(e => {
24770
+ return (0,_throttle_js__rspack_import_1["default"])((e) => {
24619
24771
  const loaded = e.loaded;
24620
24772
  const total = e.lengthComputable ? e.total : undefined;
24621
24773
  const progressBytes = loaded - bytesNotified;
@@ -24627,30 +24779,37 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
24627
24779
  const data = {
24628
24780
  loaded,
24629
24781
  total,
24630
- progress: total ? (loaded / total) : undefined,
24782
+ progress: total ? loaded / total : undefined,
24631
24783
  bytes: progressBytes,
24632
24784
  rate: rate ? rate : undefined,
24633
24785
  estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
24634
24786
  event: e,
24635
24787
  lengthComputable: total != null,
24636
- [isDownloadStream ? 'download' : 'upload']: true
24788
+ [isDownloadStream ? 'download' : 'upload']: true,
24637
24789
  };
24638
24790
 
24639
24791
  listener(data);
24640
24792
  }, freq);
24641
- }
24793
+ };
24642
24794
 
24643
24795
  const progressEventDecorator = (total, throttled) => {
24644
24796
  const lengthComputable = total != null;
24645
24797
 
24646
- return [(loaded) => throttled[0]({
24647
- lengthComputable,
24648
- total,
24649
- loaded
24650
- }), throttled[1]];
24651
- }
24798
+ return [
24799
+ (loaded) =>
24800
+ throttled[0]({
24801
+ lengthComputable,
24802
+ total,
24803
+ loaded,
24804
+ }),
24805
+ throttled[1],
24806
+ ];
24807
+ };
24652
24808
 
24653
- const asyncDecorator = (fn) => (...args) => _utils_js__rspack_import_2["default"].asap(() => fn(...args));
24809
+ const asyncDecorator =
24810
+ (fn) =>
24811
+ (...args) =>
24812
+ _utils_js__rspack_import_2["default"].asap(() => fn(...args));
24654
24813
 
24655
24814
 
24656
24815
  },
@@ -24684,12 +24843,22 @@ __webpack_require__.d(__webpack_exports__, {
24684
24843
 
24685
24844
  newConfig.headers = headers = _core_AxiosHeaders_js__rspack_import_1["default"].from(headers);
24686
24845
 
24687
- newConfig.url = (0,_buildURL_js__rspack_import_2["default"])((0,_core_buildFullPath_js__rspack_import_3["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
24846
+ newConfig.url = (0,_buildURL_js__rspack_import_2["default"])(
24847
+ (0,_core_buildFullPath_js__rspack_import_3["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
24848
+ config.params,
24849
+ config.paramsSerializer
24850
+ );
24688
24851
 
24689
24852
  // HTTP basic authentication
24690
24853
  if (auth) {
24691
- headers.set('Authorization', 'Basic ' +
24692
- btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
24854
+ headers.set(
24855
+ 'Authorization',
24856
+ 'Basic ' +
24857
+ btoa(
24858
+ (auth.username || '') +
24859
+ ':' +
24860
+ (auth.password ? unescape(encodeURIComponent(auth.password)) : '')
24861
+ )
24693
24862
  );
24694
24863
  }
24695
24864
 
@@ -24707,7 +24876,7 @@ __webpack_require__.d(__webpack_exports__, {
24707
24876
  }
24708
24877
  });
24709
24878
  }
24710
- }
24879
+ }
24711
24880
 
24712
24881
  // Add xsrf header
24713
24882
  // This is only done if running in a standard browser environment.
@@ -24730,7 +24899,6 @@ __webpack_require__.d(__webpack_exports__, {
24730
24899
  });
24731
24900
 
24732
24901
 
24733
-
24734
24902
  },
24735
24903
  "./node_modules/axios/lib/helpers/speedometer.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
24736
24904
  "use strict";
@@ -24788,7 +24956,7 @@ function speedometer(samplesCount, min) {
24788
24956
 
24789
24957
  const passed = startedAt && now - startedAt;
24790
24958
 
24791
- return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
24959
+ return passed ? Math.round((bytesCount * 1000) / passed) : undefined;
24792
24960
  };
24793
24961
  }
24794
24962
 
@@ -24859,23 +25027,23 @@ function throttle(fn, freq) {
24859
25027
  timer = null;
24860
25028
  }
24861
25029
  fn(...args);
24862
- }
25030
+ };
24863
25031
 
24864
25032
  const throttled = (...args) => {
24865
25033
  const now = Date.now();
24866
25034
  const passed = now - timestamp;
24867
- if ( passed >= threshold) {
25035
+ if (passed >= threshold) {
24868
25036
  invoke(args, now);
24869
25037
  } else {
24870
25038
  lastArgs = args;
24871
25039
  if (!timer) {
24872
25040
  timer = setTimeout(() => {
24873
25041
  timer = null;
24874
- invoke(lastArgs)
25042
+ invoke(lastArgs);
24875
25043
  }, threshold - passed);
24876
25044
  }
24877
25045
  }
24878
- }
25046
+ };
24879
25047
 
24880
25048
  const flush = () => lastArgs && invoke(lastArgs);
24881
25049
 
@@ -24936,11 +25104,14 @@ function removeBrackets(key) {
24936
25104
  */
24937
25105
  function renderKey(path, key, dots) {
24938
25106
  if (!path) return key;
24939
- return path.concat(key).map(function each(token, i) {
24940
- // eslint-disable-next-line no-param-reassign
24941
- token = removeBrackets(token);
24942
- return !dots && i ? '[' + token + ']' : token;
24943
- }).join(dots ? '.' : '');
25107
+ return path
25108
+ .concat(key)
25109
+ .map(function each(token, i) {
25110
+ // eslint-disable-next-line no-param-reassign
25111
+ token = removeBrackets(token);
25112
+ return !dots && i ? '[' + token + ']' : token;
25113
+ })
25114
+ .join(dots ? '.' : '');
24944
25115
  }
24945
25116
 
24946
25117
  /**
@@ -24990,21 +25161,26 @@ function toFormData(obj, formData, options) {
24990
25161
  formData = formData || new (_platform_node_classes_FormData_js__rspack_import_1["default"] || FormData)();
24991
25162
 
24992
25163
  // eslint-disable-next-line no-param-reassign
24993
- options = _utils_js__rspack_import_0["default"].toFlatObject(options, {
24994
- metaTokens: true,
24995
- dots: false,
24996
- indexes: false
24997
- }, false, function defined(option, source) {
24998
- // eslint-disable-next-line no-eq-null,eqeqeq
24999
- return !_utils_js__rspack_import_0["default"].isUndefined(source[option]);
25000
- });
25164
+ options = _utils_js__rspack_import_0["default"].toFlatObject(
25165
+ options,
25166
+ {
25167
+ metaTokens: true,
25168
+ dots: false,
25169
+ indexes: false,
25170
+ },
25171
+ false,
25172
+ function defined(option, source) {
25173
+ // eslint-disable-next-line no-eq-null,eqeqeq
25174
+ return !_utils_js__rspack_import_0["default"].isUndefined(source[option]);
25175
+ }
25176
+ );
25001
25177
 
25002
25178
  const metaTokens = options.metaTokens;
25003
25179
  // eslint-disable-next-line no-use-before-define
25004
25180
  const visitor = options.visitor || defaultVisitor;
25005
25181
  const dots = options.dots;
25006
25182
  const indexes = options.indexes;
25007
- const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
25183
+ const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
25008
25184
  const useBlob = _Blob && _utils_js__rspack_import_0["default"].isSpecCompliantForm(formData);
25009
25185
 
25010
25186
  if (!_utils_js__rspack_import_0["default"].isFunction(visitor)) {
@@ -25046,6 +25222,11 @@ function toFormData(obj, formData, options) {
25046
25222
  function defaultVisitor(value, key, path) {
25047
25223
  let arr = value;
25048
25224
 
25225
+ if (_utils_js__rspack_import_0["default"].isReactNative(formData) && _utils_js__rspack_import_0["default"].isReactNativeBlob(value)) {
25226
+ formData.append(renderKey(path, key, dots), convertValue(value));
25227
+ return false;
25228
+ }
25229
+
25049
25230
  if (value && !path && typeof value === 'object') {
25050
25231
  if (_utils_js__rspack_import_0["default"].endsWith(key, '{}')) {
25051
25232
  // eslint-disable-next-line no-param-reassign
@@ -25054,17 +25235,22 @@ function toFormData(obj, formData, options) {
25054
25235
  value = JSON.stringify(value);
25055
25236
  } else if (
25056
25237
  (_utils_js__rspack_import_0["default"].isArray(value) && isFlatArray(value)) ||
25057
- ((_utils_js__rspack_import_0["default"].isFileList(value) || _utils_js__rspack_import_0["default"].endsWith(key, '[]')) && (arr = _utils_js__rspack_import_0["default"].toArray(value))
25058
- )) {
25238
+ ((_utils_js__rspack_import_0["default"].isFileList(value) || _utils_js__rspack_import_0["default"].endsWith(key, '[]')) && (arr = _utils_js__rspack_import_0["default"].toArray(value)))
25239
+ ) {
25059
25240
  // eslint-disable-next-line no-param-reassign
25060
25241
  key = removeBrackets(key);
25061
25242
 
25062
25243
  arr.forEach(function each(el, index) {
25063
- !(_utils_js__rspack_import_0["default"].isUndefined(el) || el === null) && formData.append(
25064
- // eslint-disable-next-line no-nested-ternary
25065
- indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
25066
- convertValue(el)
25067
- );
25244
+ !(_utils_js__rspack_import_0["default"].isUndefined(el) || el === null) &&
25245
+ formData.append(
25246
+ // eslint-disable-next-line no-nested-ternary
25247
+ indexes === true
25248
+ ? renderKey([key], index, dots)
25249
+ : indexes === null
25250
+ ? key
25251
+ : key + '[]',
25252
+ convertValue(el)
25253
+ );
25068
25254
  });
25069
25255
  return false;
25070
25256
  }
@@ -25084,7 +25270,7 @@ function toFormData(obj, formData, options) {
25084
25270
  const exposedHelpers = Object.assign(predicates, {
25085
25271
  defaultVisitor,
25086
25272
  convertValue,
25087
- isVisitable
25273
+ isVisitable,
25088
25274
  });
25089
25275
 
25090
25276
  function build(value, path) {
@@ -25097,9 +25283,9 @@ function toFormData(obj, formData, options) {
25097
25283
  stack.push(value);
25098
25284
 
25099
25285
  _utils_js__rspack_import_0["default"].forEach(value, function each(el, key) {
25100
- const result = !(_utils_js__rspack_import_0["default"].isUndefined(el) || el === null) && visitor.call(
25101
- formData, el, _utils_js__rspack_import_0["default"].isString(key) ? key.trim() : key, path, exposedHelpers
25102
- );
25286
+ const result =
25287
+ !(_utils_js__rspack_import_0["default"].isUndefined(el) || el === null) &&
25288
+ visitor.call(formData, el, _utils_js__rspack_import_0["default"].isString(key) ? key.trim() : key, path, exposedHelpers);
25103
25289
 
25104
25290
  if (result === true) {
25105
25291
  build(el, path ? path.concat(key) : [key]);
@@ -25139,7 +25325,7 @@ __webpack_require__.d(__webpack_exports__, {
25139
25325
 
25140
25326
  function toURLEncodedForm(data, options) {
25141
25327
  return (0,_toFormData_js__rspack_import_0["default"])(data, new _platform_index_js__rspack_import_1["default"].classes.URLSearchParams(), {
25142
- visitor: function(value, key, path, helpers) {
25328
+ visitor: function (value, key, path, helpers) {
25143
25329
  if (_platform_index_js__rspack_import_1["default"].isNode && _utils_js__rspack_import_2["default"].isBuffer(value)) {
25144
25330
  this.append(key, value.toString('base64'));
25145
25331
  return false;
@@ -25147,7 +25333,7 @@ function toURLEncodedForm(data, options) {
25147
25333
 
25148
25334
  return helpers.defaultVisitor.apply(this, arguments);
25149
25335
  },
25150
- ...options
25336
+ ...options,
25151
25337
  });
25152
25338
  }
25153
25339
 
@@ -25161,7 +25347,6 @@ __webpack_require__.d(__webpack_exports__, {
25161
25347
  streamChunk: () => (streamChunk),
25162
25348
  trackStream: () => (trackStream)
25163
25349
  });
25164
-
25165
25350
  const streamChunk = function* (chunk, chunkSize) {
25166
25351
  let len = chunk.byteLength;
25167
25352
 
@@ -25178,13 +25363,13 @@ const streamChunk = function* (chunk, chunkSize) {
25178
25363
  yield chunk.slice(pos, end);
25179
25364
  pos = end;
25180
25365
  }
25181
- }
25366
+ };
25182
25367
 
25183
25368
  const readBytes = async function* (iterable, chunkSize) {
25184
25369
  for await (const chunk of readStream(iterable)) {
25185
25370
  yield* streamChunk(chunk, chunkSize);
25186
25371
  }
25187
- }
25372
+ };
25188
25373
 
25189
25374
  const readStream = async function* (stream) {
25190
25375
  if (stream[Symbol.asyncIterator]) {
@@ -25195,7 +25380,7 @@ const readStream = async function* (stream) {
25195
25380
  const reader = stream.getReader();
25196
25381
  try {
25197
25382
  for (;;) {
25198
- const {done, value} = await reader.read();
25383
+ const { done, value } = await reader.read();
25199
25384
  if (done) {
25200
25385
  break;
25201
25386
  }
@@ -25204,7 +25389,7 @@ const readStream = async function* (stream) {
25204
25389
  } finally {
25205
25390
  await reader.cancel();
25206
25391
  }
25207
- }
25392
+ };
25208
25393
 
25209
25394
  const trackStream = (stream, chunkSize, onProgress, onFinish) => {
25210
25395
  const iterator = readBytes(stream, chunkSize);
@@ -25216,38 +25401,41 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
25216
25401
  done = true;
25217
25402
  onFinish && onFinish(e);
25218
25403
  }
25219
- }
25404
+ };
25220
25405
 
25221
- return new ReadableStream({
25222
- async pull(controller) {
25223
- try {
25224
- const {done, value} = await iterator.next();
25406
+ return new ReadableStream(
25407
+ {
25408
+ async pull(controller) {
25409
+ try {
25410
+ const { done, value } = await iterator.next();
25225
25411
 
25226
- if (done) {
25227
- _onFinish();
25228
- controller.close();
25229
- return;
25230
- }
25412
+ if (done) {
25413
+ _onFinish();
25414
+ controller.close();
25415
+ return;
25416
+ }
25231
25417
 
25232
- let len = value.byteLength;
25233
- if (onProgress) {
25234
- let loadedBytes = bytes += len;
25235
- onProgress(loadedBytes);
25418
+ let len = value.byteLength;
25419
+ if (onProgress) {
25420
+ let loadedBytes = (bytes += len);
25421
+ onProgress(loadedBytes);
25422
+ }
25423
+ controller.enqueue(new Uint8Array(value));
25424
+ } catch (err) {
25425
+ _onFinish(err);
25426
+ throw err;
25236
25427
  }
25237
- controller.enqueue(new Uint8Array(value));
25238
- } catch (err) {
25239
- _onFinish(err);
25240
- throw err;
25241
- }
25428
+ },
25429
+ cancel(reason) {
25430
+ _onFinish(reason);
25431
+ return iterator.return();
25432
+ },
25242
25433
  },
25243
- cancel(reason) {
25244
- _onFinish(reason);
25245
- return iterator.return();
25434
+ {
25435
+ highWaterMark: 2,
25246
25436
  }
25247
- }, {
25248
- highWaterMark: 2
25249
- })
25250
- }
25437
+ );
25438
+ };
25251
25439
 
25252
25440
 
25253
25441
  },
@@ -25286,7 +25474,15 @@ const deprecatedWarnings = {};
25286
25474
  */
25287
25475
  validators.transitional = function transitional(validator, version, message) {
25288
25476
  function formatMessage(opt, desc) {
25289
- return '[Axios v' + _env_data_js__rspack_import_0.VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
25477
+ return (
25478
+ '[Axios v' +
25479
+ _env_data_js__rspack_import_0.VERSION +
25480
+ "] Transitional option '" +
25481
+ opt +
25482
+ "'" +
25483
+ desc +
25484
+ (message ? '. ' + message : '')
25485
+ );
25290
25486
  }
25291
25487
 
25292
25488
  // eslint-disable-next-line func-names
@@ -25318,7 +25514,7 @@ validators.spelling = function spelling(correctSpelling) {
25318
25514
  // eslint-disable-next-line no-console
25319
25515
  console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
25320
25516
  return true;
25321
- }
25517
+ };
25322
25518
  };
25323
25519
 
25324
25520
  /**
@@ -25344,7 +25540,10 @@ function assertOptions(options, schema, allowUnknown) {
25344
25540
  const value = options[opt];
25345
25541
  const result = value === undefined || validator(value, opt, options);
25346
25542
  if (result !== true) {
25347
- throw new _core_AxiosError_js__rspack_import_1["default"]('option ' + opt + ' must be ' + result, _core_AxiosError_js__rspack_import_1["default"].ERR_BAD_OPTION_VALUE);
25543
+ throw new _core_AxiosError_js__rspack_import_1["default"](
25544
+ 'option ' + opt + ' must be ' + result,
25545
+ _core_AxiosError_js__rspack_import_1["default"].ERR_BAD_OPTION_VALUE
25546
+ );
25348
25547
  }
25349
25548
  continue;
25350
25549
  }
@@ -25356,7 +25555,7 @@ function assertOptions(options, schema, allowUnknown) {
25356
25555
 
25357
25556
  /* export default */ const __rspack_default_export = ({
25358
25557
  assertOptions,
25359
- validators
25558
+ validators,
25360
25559
  });
25361
25560
 
25362
25561
 
@@ -25417,9 +25616,9 @@ __webpack_require__.d(__webpack_exports__, {
25417
25616
  classes: {
25418
25617
  URLSearchParams: _classes_URLSearchParams_js__rspack_import_0["default"],
25419
25618
  FormData: _classes_FormData_js__rspack_import_1["default"],
25420
- Blob: _classes_Blob_js__rspack_import_2["default"]
25619
+ Blob: _classes_Blob_js__rspack_import_2["default"],
25421
25620
  },
25422
- protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
25621
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],
25423
25622
  });
25424
25623
 
25425
25624
 
@@ -25436,7 +25635,7 @@ __webpack_require__.d(__webpack_exports__, {
25436
25635
  });
25437
25636
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
25438
25637
 
25439
- const _navigator = typeof navigator === 'object' && navigator || undefined;
25638
+ const _navigator = (typeof navigator === 'object' && navigator) || undefined;
25440
25639
 
25441
25640
  /**
25442
25641
  * Determine if we're running in a standard browser environment
@@ -25455,7 +25654,8 @@ const _navigator = typeof navigator === 'object' && navigator || undefined;
25455
25654
  *
25456
25655
  * @returns {boolean}
25457
25656
  */
25458
- const hasStandardBrowserEnv = hasBrowserEnv &&
25657
+ const hasStandardBrowserEnv =
25658
+ hasBrowserEnv &&
25459
25659
  (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
25460
25660
 
25461
25661
  /**
@@ -25476,7 +25676,7 @@ const hasStandardBrowserWebWorkerEnv = (() => {
25476
25676
  );
25477
25677
  })();
25478
25678
 
25479
- const origin = hasBrowserEnv && window.location.href || 'http://localhost';
25679
+ const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
25480
25680
 
25481
25681
 
25482
25682
 
@@ -25495,7 +25695,7 @@ __webpack_require__.d(__webpack_exports__, {
25495
25695
 
25496
25696
  /* export default */ const __rspack_default_export = ({
25497
25697
  ..._common_utils_js__rspack_import_0,
25498
- ..._node_index_js__rspack_import_1["default"]
25698
+ ..._node_index_js__rspack_import_1["default"],
25499
25699
  });
25500
25700
 
25501
25701
 
@@ -25546,7 +25746,7 @@ const { isArray } = Array;
25546
25746
  *
25547
25747
  * @returns {boolean} True if the value is undefined, otherwise false
25548
25748
  */
25549
- const isUndefined = typeOfTest("undefined");
25749
+ const isUndefined = typeOfTest('undefined');
25550
25750
 
25551
25751
  /**
25552
25752
  * Determine if a value is a Buffer
@@ -25573,7 +25773,7 @@ function isBuffer(val) {
25573
25773
  *
25574
25774
  * @returns {boolean} True if value is an ArrayBuffer, otherwise false
25575
25775
  */
25576
- const isArrayBuffer = kindOfTest("ArrayBuffer");
25776
+ const isArrayBuffer = kindOfTest('ArrayBuffer');
25577
25777
 
25578
25778
  /**
25579
25779
  * Determine if a value is a view on an ArrayBuffer
@@ -25584,7 +25784,7 @@ const isArrayBuffer = kindOfTest("ArrayBuffer");
25584
25784
  */
25585
25785
  function isArrayBufferView(val) {
25586
25786
  let result;
25587
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
25787
+ if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
25588
25788
  result = ArrayBuffer.isView(val);
25589
25789
  } else {
25590
25790
  result = val && val.buffer && isArrayBuffer(val.buffer);
@@ -25599,7 +25799,7 @@ function isArrayBufferView(val) {
25599
25799
  *
25600
25800
  * @returns {boolean} True if value is a String, otherwise false
25601
25801
  */
25602
- const isString = typeOfTest("string");
25802
+ const isString = typeOfTest('string');
25603
25803
 
25604
25804
  /**
25605
25805
  * Determine if a value is a Function
@@ -25607,7 +25807,7 @@ const isString = typeOfTest("string");
25607
25807
  * @param {*} val The value to test
25608
25808
  * @returns {boolean} True if value is a Function, otherwise false
25609
25809
  */
25610
- const isFunction = typeOfTest("function");
25810
+ const isFunction = typeOfTest('function');
25611
25811
 
25612
25812
  /**
25613
25813
  * Determine if a value is a Number
@@ -25616,7 +25816,7 @@ const isFunction = typeOfTest("function");
25616
25816
  *
25617
25817
  * @returns {boolean} True if value is a Number, otherwise false
25618
25818
  */
25619
- const isNumber = typeOfTest("number");
25819
+ const isNumber = typeOfTest('number');
25620
25820
 
25621
25821
  /**
25622
25822
  * Determine if a value is an Object
@@ -25625,7 +25825,7 @@ const isNumber = typeOfTest("number");
25625
25825
  *
25626
25826
  * @returns {boolean} True if value is an Object, otherwise false
25627
25827
  */
25628
- const isObject = (thing) => thing !== null && typeof thing === "object";
25828
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
25629
25829
 
25630
25830
  /**
25631
25831
  * Determine if a value is a Boolean
@@ -25643,7 +25843,7 @@ const isBoolean = (thing) => thing === true || thing === false;
25643
25843
  * @returns {boolean} True if value is a plain Object, otherwise false
25644
25844
  */
25645
25845
  const isPlainObject = (val) => {
25646
- if (kindOf(val) !== "object") {
25846
+ if (kindOf(val) !== 'object') {
25647
25847
  return false;
25648
25848
  }
25649
25849
 
@@ -25671,10 +25871,7 @@ const isEmptyObject = (val) => {
25671
25871
  }
25672
25872
 
25673
25873
  try {
25674
- return (
25675
- Object.keys(val).length === 0 &&
25676
- Object.getPrototypeOf(val) === Object.prototype
25677
- );
25874
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
25678
25875
  } catch (e) {
25679
25876
  // Fallback for any other objects that might cause RangeError with Object.keys()
25680
25877
  return false;
@@ -25688,7 +25885,7 @@ const isEmptyObject = (val) => {
25688
25885
  *
25689
25886
  * @returns {boolean} True if value is a Date, otherwise false
25690
25887
  */
25691
- const isDate = kindOfTest("Date");
25888
+ const isDate = kindOfTest('Date');
25692
25889
 
25693
25890
  /**
25694
25891
  * Determine if a value is a File
@@ -25697,7 +25894,32 @@ const isDate = kindOfTest("Date");
25697
25894
  *
25698
25895
  * @returns {boolean} True if value is a File, otherwise false
25699
25896
  */
25700
- const isFile = kindOfTest("File");
25897
+ const isFile = kindOfTest('File');
25898
+
25899
+ /**
25900
+ * Determine if a value is a React Native Blob
25901
+ * React Native "blob": an object with a `uri` attribute. Optionally, it can
25902
+ * also have a `name` and `type` attribute to specify filename and content type
25903
+ *
25904
+ * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
25905
+ *
25906
+ * @param {*} value The value to test
25907
+ *
25908
+ * @returns {boolean} True if value is a React Native Blob, otherwise false
25909
+ */
25910
+ const isReactNativeBlob = (value) => {
25911
+ return !!(value && typeof value.uri !== 'undefined');
25912
+ }
25913
+
25914
+ /**
25915
+ * Determine if environment is React Native
25916
+ * ReactNative `FormData` has a non-standard `getParts()` method
25917
+ *
25918
+ * @param {*} formData The formData to test
25919
+ *
25920
+ * @returns {boolean} True if environment is React Native, otherwise false
25921
+ */
25922
+ const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
25701
25923
 
25702
25924
  /**
25703
25925
  * Determine if a value is a Blob
@@ -25706,7 +25928,7 @@ const isFile = kindOfTest("File");
25706
25928
  *
25707
25929
  * @returns {boolean} True if value is a Blob, otherwise false
25708
25930
  */
25709
- const isBlob = kindOfTest("Blob");
25931
+ const isBlob = kindOfTest('Blob');
25710
25932
 
25711
25933
  /**
25712
25934
  * Determine if a value is a FileList
@@ -25715,7 +25937,7 @@ const isBlob = kindOfTest("Blob");
25715
25937
  *
25716
25938
  * @returns {boolean} True if value is a File, otherwise false
25717
25939
  */
25718
- const isFileList = kindOfTest("FileList");
25940
+ const isFileList = kindOfTest('FileList');
25719
25941
 
25720
25942
  /**
25721
25943
  * Determine if a value is a Stream
@@ -25733,17 +25955,27 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
25733
25955
  *
25734
25956
  * @returns {boolean} True if value is an FormData, otherwise false
25735
25957
  */
25958
+ function getGlobal() {
25959
+ if (typeof globalThis !== 'undefined') return globalThis;
25960
+ if (typeof self !== 'undefined') return self;
25961
+ if (typeof window !== 'undefined') return window;
25962
+ if (typeof global !== 'undefined') return global;
25963
+ return {};
25964
+ }
25965
+
25966
+ const G = getGlobal();
25967
+ const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
25968
+
25736
25969
  const isFormData = (thing) => {
25737
25970
  let kind;
25738
- return (
25739
- thing &&
25740
- ((typeof FormData === "function" && thing instanceof FormData) ||
25741
- (isFunction(thing.append) &&
25742
- ((kind = kindOf(thing)) === "formdata" ||
25743
- // detect form-data instance
25744
- (kind === "object" &&
25745
- isFunction(thing.toString) &&
25746
- thing.toString() === "[object FormData]"))))
25971
+ return thing && (
25972
+ (FormDataCtor && thing instanceof FormDataCtor) || (
25973
+ isFunction(thing.append) && (
25974
+ (kind = kindOf(thing)) === 'formdata' ||
25975
+ // detect form-data instance
25976
+ (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
25977
+ )
25978
+ )
25747
25979
  );
25748
25980
  };
25749
25981
 
@@ -25754,13 +25986,13 @@ const isFormData = (thing) => {
25754
25986
  *
25755
25987
  * @returns {boolean} True if value is a URLSearchParams object, otherwise false
25756
25988
  */
25757
- const isURLSearchParams = kindOfTest("URLSearchParams");
25989
+ const isURLSearchParams = kindOfTest('URLSearchParams');
25758
25990
 
25759
25991
  const [isReadableStream, isRequest, isResponse, isHeaders] = [
25760
- "ReadableStream",
25761
- "Request",
25762
- "Response",
25763
- "Headers",
25992
+ 'ReadableStream',
25993
+ 'Request',
25994
+ 'Response',
25995
+ 'Headers',
25764
25996
  ].map(kindOfTest);
25765
25997
 
25766
25998
  /**
@@ -25770,9 +26002,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = [
25770
26002
  *
25771
26003
  * @returns {String} The String freed of excess whitespace
25772
26004
  */
25773
- const trim = (str) =>
25774
- str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
25775
-
26005
+ const trim = (str) => {
26006
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
26007
+ };
25776
26008
  /**
25777
26009
  * Iterate over an Array or an Object invoking a function for each item.
25778
26010
  *
@@ -25791,7 +26023,7 @@ const trim = (str) =>
25791
26023
  */
25792
26024
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
25793
26025
  // Don't bother if no value provided
25794
- if (obj === null || typeof obj === "undefined") {
26026
+ if (obj === null || typeof obj === 'undefined') {
25795
26027
  return;
25796
26028
  }
25797
26029
 
@@ -25799,7 +26031,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
25799
26031
  let l;
25800
26032
 
25801
26033
  // Force an array if not already something iterable
25802
- if (typeof obj !== "object") {
26034
+ if (typeof obj !== 'object') {
25803
26035
  /*eslint no-param-reassign:0*/
25804
26036
  obj = [obj];
25805
26037
  }
@@ -25816,9 +26048,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
25816
26048
  }
25817
26049
 
25818
26050
  // Iterate over object keys
25819
- const keys = allOwnKeys
25820
- ? Object.getOwnPropertyNames(obj)
25821
- : Object.keys(obj);
26051
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
25822
26052
  const len = keys.length;
25823
26053
  let key;
25824
26054
 
@@ -25829,6 +26059,14 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
25829
26059
  }
25830
26060
  }
25831
26061
 
26062
+ /**
26063
+ * Finds a key in an object, case-insensitive, returning the actual key name.
26064
+ * Returns null if the object is a Buffer or if no match is found.
26065
+ *
26066
+ * @param {Object} obj - The object to search.
26067
+ * @param {string} key - The key to find (case-insensitive).
26068
+ * @returns {?string} The actual key name if found, otherwise null.
26069
+ */
25832
26070
  function findKey(obj, key) {
25833
26071
  if (isBuffer(obj)) {
25834
26072
  return null;
@@ -25849,16 +26087,11 @@ function findKey(obj, key) {
25849
26087
 
25850
26088
  const _global = (() => {
25851
26089
  /*eslint no-undef:0*/
25852
- if (typeof globalThis !== "undefined") return globalThis;
25853
- return typeof self !== "undefined"
25854
- ? self
25855
- : typeof window !== "undefined"
25856
- ? window
25857
- : global;
26090
+ if (typeof globalThis !== 'undefined') return globalThis;
26091
+ return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
25858
26092
  })();
25859
26093
 
25860
- const isContextDefined = (context) =>
25861
- !isUndefined(context) && context !== _global;
26094
+ const isContextDefined = (context) => !isUndefined(context) && context !== _global;
25862
26095
 
25863
26096
  /**
25864
26097
  * Accepts varargs expecting each argument to be an object, then
@@ -25883,7 +26116,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
25883
26116
  const result = {};
25884
26117
  const assignValue = (val, key) => {
25885
26118
  // Skip dangerous property names to prevent prototype pollution
25886
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
26119
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
25887
26120
  return;
25888
26121
  }
25889
26122
 
@@ -25936,7 +26169,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
25936
26169
  });
25937
26170
  }
25938
26171
  },
25939
- { allOwnKeys },
26172
+ { allOwnKeys }
25940
26173
  );
25941
26174
  return a;
25942
26175
  };
@@ -25965,17 +26198,14 @@ const stripBOM = (content) => {
25965
26198
  * @returns {void}
25966
26199
  */
25967
26200
  const inherits = (constructor, superConstructor, props, descriptors) => {
25968
- constructor.prototype = Object.create(
25969
- superConstructor.prototype,
25970
- descriptors,
25971
- );
25972
- Object.defineProperty(constructor.prototype, "constructor", {
26201
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
26202
+ Object.defineProperty(constructor.prototype, 'constructor', {
25973
26203
  value: constructor,
25974
26204
  writable: true,
25975
26205
  enumerable: false,
25976
26206
  configurable: true,
25977
26207
  });
25978
- Object.defineProperty(constructor, "super", {
26208
+ Object.defineProperty(constructor, 'super', {
25979
26209
  value: superConstructor.prototype,
25980
26210
  });
25981
26211
  props && Object.assign(constructor.prototype, props);
@@ -26005,20 +26235,13 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
26005
26235
  i = props.length;
26006
26236
  while (i-- > 0) {
26007
26237
  prop = props[i];
26008
- if (
26009
- (!propFilter || propFilter(prop, sourceObj, destObj)) &&
26010
- !merged[prop]
26011
- ) {
26238
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
26012
26239
  destObj[prop] = sourceObj[prop];
26013
26240
  merged[prop] = true;
26014
26241
  }
26015
26242
  }
26016
26243
  sourceObj = filter !== false && getPrototypeOf(sourceObj);
26017
- } while (
26018
- sourceObj &&
26019
- (!filter || filter(sourceObj, destObj)) &&
26020
- sourceObj !== Object.prototype
26021
- );
26244
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
26022
26245
 
26023
26246
  return destObj;
26024
26247
  };
@@ -26075,7 +26298,7 @@ const isTypedArray = ((TypedArray) => {
26075
26298
  return (thing) => {
26076
26299
  return TypedArray && thing instanceof TypedArray;
26077
26300
  };
26078
- })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
26301
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
26079
26302
 
26080
26303
  /**
26081
26304
  * For each entry in the object, call the function with the key and value.
@@ -26118,14 +26341,12 @@ const matchAll = (regExp, str) => {
26118
26341
  };
26119
26342
 
26120
26343
  /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
26121
- const isHTMLForm = kindOfTest("HTMLFormElement");
26344
+ const isHTMLForm = kindOfTest('HTMLFormElement');
26122
26345
 
26123
26346
  const toCamelCase = (str) => {
26124
- return str
26125
- .toLowerCase()
26126
- .replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
26127
- return p1.toUpperCase() + p2;
26128
- });
26347
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
26348
+ return p1.toUpperCase() + p2;
26349
+ });
26129
26350
  };
26130
26351
 
26131
26352
  /* Creating a function that will check if an object has a property. */
@@ -26142,7 +26363,7 @@ const hasOwnProperty = (
26142
26363
  *
26143
26364
  * @returns {boolean} True if value is a RegExp object, otherwise false
26144
26365
  */
26145
- const isRegExp = kindOfTest("RegExp");
26366
+ const isRegExp = kindOfTest('RegExp');
26146
26367
 
26147
26368
  const reduceDescriptors = (obj, reducer) => {
26148
26369
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -26166,10 +26387,7 @@ const reduceDescriptors = (obj, reducer) => {
26166
26387
  const freezeMethods = (obj) => {
26167
26388
  reduceDescriptors(obj, (descriptor, name) => {
26168
26389
  // skip restricted props in strict mode
26169
- if (
26170
- isFunction(obj) &&
26171
- ["arguments", "caller", "callee"].indexOf(name) !== -1
26172
- ) {
26390
+ if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
26173
26391
  return false;
26174
26392
  }
26175
26393
 
@@ -26179,7 +26397,7 @@ const freezeMethods = (obj) => {
26179
26397
 
26180
26398
  descriptor.enumerable = false;
26181
26399
 
26182
- if ("writable" in descriptor) {
26400
+ if ('writable' in descriptor) {
26183
26401
  descriptor.writable = false;
26184
26402
  return;
26185
26403
  }
@@ -26192,6 +26410,14 @@ const freezeMethods = (obj) => {
26192
26410
  });
26193
26411
  };
26194
26412
 
26413
+ /**
26414
+ * Converts an array or a delimited string into an object set with values as keys and true as values.
26415
+ * Useful for fast membership checks.
26416
+ *
26417
+ * @param {Array|string} arrayOrString - The array or string to convert.
26418
+ * @param {string} delimiter - The delimiter to use if input is a string.
26419
+ * @returns {Object} An object with keys from the array or string, values set to true.
26420
+ */
26195
26421
  const toObjectSet = (arrayOrString, delimiter) => {
26196
26422
  const obj = {};
26197
26423
 
@@ -26201,9 +26427,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
26201
26427
  });
26202
26428
  };
26203
26429
 
26204
- isArray(arrayOrString)
26205
- ? define(arrayOrString)
26206
- : define(String(arrayOrString).split(delimiter));
26430
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
26207
26431
 
26208
26432
  return obj;
26209
26433
  };
@@ -26211,9 +26435,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
26211
26435
  const noop = () => {};
26212
26436
 
26213
26437
  const toFiniteNumber = (value, defaultValue) => {
26214
- return value != null && Number.isFinite((value = +value))
26215
- ? value
26216
- : defaultValue;
26438
+ return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
26217
26439
  };
26218
26440
 
26219
26441
  /**
@@ -26227,11 +26449,17 @@ function isSpecCompliantForm(thing) {
26227
26449
  return !!(
26228
26450
  thing &&
26229
26451
  isFunction(thing.append) &&
26230
- thing[toStringTag] === "FormData" &&
26452
+ thing[toStringTag] === 'FormData' &&
26231
26453
  thing[iterator]
26232
26454
  );
26233
26455
  }
26234
26456
 
26457
+ /**
26458
+ * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
26459
+ *
26460
+ * @param {Object} obj - The object to convert.
26461
+ * @returns {Object} The JSON-compatible object.
26462
+ */
26235
26463
  const toJSONObject = (obj) => {
26236
26464
  const stack = new Array(10);
26237
26465
 
@@ -26246,7 +26474,7 @@ const toJSONObject = (obj) => {
26246
26474
  return source;
26247
26475
  }
26248
26476
 
26249
- if (!("toJSON" in source)) {
26477
+ if (!('toJSON' in source)) {
26250
26478
  stack[i] = source;
26251
26479
  const target = isArray(source) ? [] : {};
26252
26480
 
@@ -26267,8 +26495,20 @@ const toJSONObject = (obj) => {
26267
26495
  return visit(obj, 0);
26268
26496
  };
26269
26497
 
26270
- const isAsyncFn = kindOfTest("AsyncFunction");
26498
+ /**
26499
+ * Determines if a value is an async function.
26500
+ *
26501
+ * @param {*} thing - The value to test.
26502
+ * @returns {boolean} True if value is an async function, otherwise false.
26503
+ */
26504
+ const isAsyncFn = kindOfTest('AsyncFunction');
26271
26505
 
26506
+ /**
26507
+ * Determines if a value is thenable (has then and catch methods).
26508
+ *
26509
+ * @param {*} thing - The value to test.
26510
+ * @returns {boolean} True if value is thenable, otherwise false.
26511
+ */
26272
26512
  const isThenable = (thing) =>
26273
26513
  thing &&
26274
26514
  (isObject(thing) || isFunction(thing)) &&
@@ -26278,6 +26518,14 @@ const isThenable = (thing) =>
26278
26518
  // original code
26279
26519
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
26280
26520
 
26521
+ /**
26522
+ * Provides a cross-platform setImmediate implementation.
26523
+ * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
26524
+ *
26525
+ * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
26526
+ * @param {boolean} postMessageSupported - Whether postMessage is supported.
26527
+ * @returns {Function} A function to schedule a callback asynchronously.
26528
+ */
26281
26529
  const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
26282
26530
  if (setImmediateSupported) {
26283
26531
  return setImmediate;
@@ -26286,27 +26534,33 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
26286
26534
  return postMessageSupported
26287
26535
  ? ((token, callbacks) => {
26288
26536
  _global.addEventListener(
26289
- "message",
26537
+ 'message',
26290
26538
  ({ source, data }) => {
26291
26539
  if (source === _global && data === token) {
26292
26540
  callbacks.length && callbacks.shift()();
26293
26541
  }
26294
26542
  },
26295
- false,
26543
+ false
26296
26544
  );
26297
26545
 
26298
26546
  return (cb) => {
26299
26547
  callbacks.push(cb);
26300
- _global.postMessage(token, "*");
26548
+ _global.postMessage(token, '*');
26301
26549
  };
26302
26550
  })(`axios@${Math.random()}`, [])
26303
26551
  : (cb) => setTimeout(cb);
26304
- })(typeof setImmediate === "function", isFunction(_global.postMessage));
26552
+ })(typeof setImmediate === 'function', isFunction(_global.postMessage));
26305
26553
 
26554
+ /**
26555
+ * Schedules a microtask or asynchronous callback as soon as possible.
26556
+ * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
26557
+ *
26558
+ * @type {Function}
26559
+ */
26306
26560
  const asap =
26307
- typeof queueMicrotask !== "undefined"
26561
+ typeof queueMicrotask !== 'undefined'
26308
26562
  ? queueMicrotask.bind(_global)
26309
- : (typeof process !== "undefined" && process.nextTick) || _setImmediate;
26563
+ : (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
26310
26564
 
26311
26565
  // *********************
26312
26566
 
@@ -26331,6 +26585,8 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
26331
26585
  isUndefined,
26332
26586
  isDate,
26333
26587
  isFile,
26588
+ isReactNativeBlob,
26589
+ isReactNative,
26334
26590
  isBlob,
26335
26591
  isRegExp,
26336
26592
  isFunction,
@@ -26376,7 +26632,7 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
26376
26632
  },
26377
26633
  "./package.json"(module) {
26378
26634
  "use strict";
26379
- module.exports = JSON.parse('{"name":"apify-client","version":"2.22.2","description":"Apify API client for JavaScript","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","browser":"dist/bundle.js","unpkg":"dist/bundle.js","exports":{"./package.json":"./package.json","./browser":"./dist/bundle.js",".":{"import":"./dist/index.mjs","require":"./dist/index.js","types":"./dist/index.d.ts","browser":"./dist/bundle.js"}},"keywords":["apify","api","apifier","crawler","scraper"],"author":{"name":"Apify","email":"support@apify.com","url":"https://apify.com"},"contributors":["Jan Curn <jan@apify.com>","Marek Trunkát <marek@apify.com>","Ondra Urban <ondra@apify.com>","Jakub Drobník <jakub.drobnik@apify.com>"],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/apify/apify-client-js"},"bugs":{"url":"https://github.com/apify/apify-client-js/issues"},"homepage":"https://docs.apify.com/api/client/js/","files":["dist","!dist/*.tsbuildinfo"],"scripts":{"build":"npm run clean && npm run build:node && npm run build:browser","postbuild":"gen-esm-wrapper dist/index.js dist/index.mjs","prepublishOnly":"(test $CI || (echo \\"Publishing is reserved to CI!\\"; exit 1))","clean":"rimraf dist","test":"npm run build && vitest run","test:bundling":"npm run build && npm --prefix=./test/bundling run bundle:all","lint":"eslint","lint:fix":"eslint --fix","tsc-check-tests":"tsc --noEmit --project test/tsconfig.json","format":"prettier --write .","format:check":"prettier --check .","build:node":"tsc","build:browser":"rsbuild build"},"dependencies":{"@apify/consts":"^2.50.0","@apify/log":"^2.2.6","@apify/utilities":"^2.23.2","@crawlee/types":"^3.3.0","ansi-colors":"^4.1.1","async-retry":"^1.3.3","axios":"^1.6.7","content-type":"^1.0.5","ow":"^0.28.2","proxy-agent":"^6.5.0","tslib":"^2.5.0","type-fest":"^4.0.0"},"devDependencies":{"@apify/eslint-config":"^1.0.0","@apify/tsconfig":"^0.1.1","@crawlee/puppeteer":"^3.2.2","@rsbuild/core":"^1.3.6","@rsbuild/plugin-node-polyfill":"^1.3.0","@rspack/cli":"^1.7.6","@rspack/core":"^1.7.6","@stylistic/eslint-plugin-ts":"^4.2.0","@types/async-retry":"^1.4.5","@types/compression":"^1.8.1","@types/content-type":"^1.1.5","@types/express":"^5.0.0","@types/node":"^24.0.0","ajv":"^8.17.1","body-parser":"^2.0.0","compression":"^1.7.4","esbuild":"0.27.3","eslint":"^9.24.0","eslint-config-prettier":"^10.1.2","express":"^5.0.0","gen-esm-wrapper":"^1.1.2","globals":"^17.0.0","prettier":"^3.5.3","puppeteer":"^24.0.0","rimraf":"^6.0.0","rolldown":"^1.0.0-rc.4","typescript":"^5.8.3","typescript-eslint":"^8.29.1","vitest":"^4.0.16","webpack":"^5.105.2","webpack-cli":"^6.0.1"},"packageManager":"npm@10.9.2"}')
26635
+ module.exports = JSON.parse('{"name":"apify-client","version":"2.22.3-beta.1","description":"Apify API client for JavaScript","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","browser":"dist/bundle.js","unpkg":"dist/bundle.js","exports":{"./package.json":"./package.json","./browser":"./dist/bundle.js",".":{"import":"./dist/index.mjs","require":"./dist/index.js","types":"./dist/index.d.ts","browser":"./dist/bundle.js"}},"keywords":["apify","api","apifier","crawler","scraper"],"author":{"name":"Apify","email":"support@apify.com","url":"https://apify.com"},"contributors":["Jan Curn <jan@apify.com>","Marek Trunkát <marek@apify.com>","Ondra Urban <ondra@apify.com>","Jakub Drobník <jakub.drobnik@apify.com>"],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/apify/apify-client-js"},"bugs":{"url":"https://github.com/apify/apify-client-js/issues"},"homepage":"https://docs.apify.com/api/client/js/","files":["dist","!dist/*.tsbuildinfo"],"scripts":{"build":"npm run clean && npm run build:node && npm run build:browser","postbuild":"gen-esm-wrapper dist/index.js dist/index.mjs","prepublishOnly":"(test $CI || (echo \\"Publishing is reserved to CI!\\"; exit 1))","clean":"rimraf dist","test":"npm run build && vitest run","test:bundling":"npm run build && npm --prefix=./test/bundling run bundle:all","lint":"eslint","lint:fix":"eslint --fix","tsc-check-tests":"tsc --noEmit --project test/tsconfig.json","format":"prettier --write .","format:check":"prettier --check .","build:node":"tsc","build:browser":"rsbuild build"},"dependencies":{"@apify/consts":"^2.50.0","@apify/log":"^2.2.6","@apify/utilities":"^2.23.2","@crawlee/types":"^3.3.0","ansi-colors":"^4.1.1","async-retry":"^1.3.3","axios":"^1.6.7","content-type":"^1.0.5","ow":"^0.28.2","proxy-agent":"^6.5.0","tslib":"^2.5.0","type-fest":"^4.0.0"},"devDependencies":{"@apify/eslint-config":"^1.0.0","@apify/tsconfig":"^0.1.1","@crawlee/puppeteer":"^3.2.2","@rsbuild/core":"^1.3.6","@rsbuild/plugin-node-polyfill":"^1.3.0","@rspack/cli":"^1.7.6","@rspack/core":"^1.7.6","@stylistic/eslint-plugin-ts":"^4.2.0","@types/async-retry":"^1.4.5","@types/compression":"^1.8.1","@types/content-type":"^1.1.5","@types/express":"^5.0.0","@types/node":"^24.0.0","ajv":"^8.17.1","body-parser":"^2.0.0","compression":"^1.7.4","esbuild":"0.27.3","eslint":"^9.24.0","eslint-config-prettier":"^10.1.2","express":"^5.0.0","gen-esm-wrapper":"^1.1.2","globals":"^17.0.0","prettier":"^3.5.3","puppeteer":"^24.0.0","rimraf":"^6.0.0","rolldown":"^1.0.0-rc.4","typescript":"^5.8.3","typescript-eslint":"^8.29.1","vitest":"^4.0.16","webpack":"^5.105.2","webpack-cli":"^6.0.1"},"packageManager":"npm@10.9.2"}')
26380
26636
 
26381
26637
  },
26382
26638
 
@@ -26499,7 +26755,7 @@ __webpack_require__.hu = (chunkId) => ('' + chunkId + '.' + __webpack_require__.
26499
26755
  })();
26500
26756
  // webpack/runtime/get_full_hash
26501
26757
  (() => {
26502
- __webpack_require__.h = () => ("4632ff2518d99b37")
26758
+ __webpack_require__.h = () => ("c792a9dc308047f5")
26503
26759
  })();
26504
26760
  // webpack/runtime/get_main_filename/update manifest
26505
26761
  (() => {