contentful-management 11.25.5 → 11.26.0

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.
@@ -20836,10 +20836,12 @@ module.exports = function getSideChannel() {
20836
20836
 
20837
20837
  "use strict";
20838
20838
  __webpack_require__.r(__webpack_exports__);
20839
- /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
20839
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
20840
20840
  /* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./http.js */ "../node_modules/axios/lib/helpers/null.js");
20841
20841
  /* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./xhr.js */ "../node_modules/axios/lib/adapters/xhr.js");
20842
- /* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
20842
+ /* harmony import */ var _fetch_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fetch.js */ "../node_modules/axios/lib/adapters/fetch.js");
20843
+ /* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
20844
+
20843
20845
 
20844
20846
 
20845
20847
 
@@ -20847,10 +20849,11 @@ __webpack_require__.r(__webpack_exports__);
20847
20849
 
20848
20850
  const knownAdapters = {
20849
20851
  http: _http_js__WEBPACK_IMPORTED_MODULE_0__["default"],
20850
- xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"]
20852
+ xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"],
20853
+ fetch: _fetch_js__WEBPACK_IMPORTED_MODULE_2__["default"]
20851
20854
  }
20852
20855
 
20853
- _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(knownAdapters, (fn, value) => {
20856
+ _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(knownAdapters, (fn, value) => {
20854
20857
  if (fn) {
20855
20858
  try {
20856
20859
  Object.defineProperty(fn, 'name', {value});
@@ -20863,11 +20866,11 @@ _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(knownAdapters, (fn, va
20863
20866
 
20864
20867
  const renderReason = (reason) => `- ${reason}`;
20865
20868
 
20866
- const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(adapter) || adapter === null || adapter === false;
20869
+ const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(adapter) || adapter === null || adapter === false;
20867
20870
 
20868
20871
  /* harmony default export */ __webpack_exports__["default"] = ({
20869
20872
  getAdapter: (adapters) => {
20870
- adapters = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isArray(adapters) ? adapters : [adapters];
20873
+ adapters = _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isArray(adapters) ? adapters : [adapters];
20871
20874
 
20872
20875
  const {length} = adapters;
20873
20876
  let nameOrAdapter;
@@ -20885,7 +20888,7 @@ const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["de
20885
20888
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
20886
20889
 
20887
20890
  if (adapter === undefined) {
20888
- throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](`Unknown adapter '${id}'`);
20891
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__["default"](`Unknown adapter '${id}'`);
20889
20892
  }
20890
20893
  }
20891
20894
 
@@ -20907,7 +20910,7 @@ const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["de
20907
20910
  (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
20908
20911
  'as no adapter specified';
20909
20912
 
20910
- throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](
20913
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__["default"](
20911
20914
  `There is no suitable adapter to dispatch the request ` + s,
20912
20915
  'ERR_NOT_SUPPORT'
20913
20916
  );
@@ -20921,27 +20924,23 @@ const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_2__["de
20921
20924
 
20922
20925
  /***/ }),
20923
20926
 
20924
- /***/ "../node_modules/axios/lib/adapters/xhr.js":
20925
- /*!*************************************************!*\
20926
- !*** ../node_modules/axios/lib/adapters/xhr.js ***!
20927
- \*************************************************/
20927
+ /***/ "../node_modules/axios/lib/adapters/fetch.js":
20928
+ /*!***************************************************!*\
20929
+ !*** ../node_modules/axios/lib/adapters/fetch.js ***!
20930
+ \***************************************************/
20928
20931
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
20929
20932
 
20930
20933
  "use strict";
20931
20934
  __webpack_require__.r(__webpack_exports__);
20932
- /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js");
20933
- /* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js");
20934
- /* harmony import */ var _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../helpers/cookies.js */ "../node_modules/axios/lib/helpers/cookies.js");
20935
- /* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js");
20936
- /* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js");
20937
- /* harmony import */ var _helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../helpers/isURLSameOrigin.js */ "../node_modules/axios/lib/helpers/isURLSameOrigin.js");
20938
- /* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js");
20939
- /* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
20940
- /* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js");
20941
- /* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "../node_modules/axios/lib/helpers/parseProtocol.js");
20942
- /* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js");
20943
- /* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js");
20944
- /* harmony import */ var _helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/speedometer.js */ "../node_modules/axios/lib/helpers/speedometer.js");
20935
+ /* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js");
20936
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
20937
+ /* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
20938
+ /* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/composeSignals.js */ "../node_modules/axios/lib/helpers/composeSignals.js");
20939
+ /* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/trackStream.js */ "../node_modules/axios/lib/helpers/trackStream.js");
20940
+ /* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js");
20941
+ /* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "../node_modules/axios/lib/helpers/progressEventReducer.js");
20942
+ /* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "../node_modules/axios/lib/helpers/resolveConfig.js");
20943
+ /* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/settle.js */ "../node_modules/axios/lib/core/settle.js");
20945
20944
 
20946
20945
 
20947
20946
 
@@ -20952,86 +20951,281 @@ __webpack_require__.r(__webpack_exports__);
20952
20951
 
20953
20952
 
20954
20953
 
20954
+ const fetchProgressDecorator = (total, fn) => {
20955
+ const lengthComputable = total != null;
20956
+ return (loaded) => setTimeout(() => fn({
20957
+ lengthComputable,
20958
+ total,
20959
+ loaded
20960
+ }));
20961
+ }
20955
20962
 
20963
+ const isFetchSupported = typeof fetch !== 'undefined';
20964
+ const isReadableStreamSupported = isFetchSupported && typeof ReadableStream !== 'undefined';
20956
20965
 
20966
+ // used only inside the fetch adapter
20967
+ const encodeText = isFetchSupported && (typeof TextEncoder !== 'undefined' ?
20968
+ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
20969
+ async (str) => new Uint8Array(await new Response(str).arrayBuffer())
20970
+ );
20957
20971
 
20972
+ const supportsRequestStream = isReadableStreamSupported && (() => {
20973
+ let duplexAccessed = false;
20958
20974
 
20975
+ const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, {
20976
+ body: new ReadableStream(),
20977
+ method: 'POST',
20978
+ get duplex() {
20979
+ duplexAccessed = true;
20980
+ return 'half';
20981
+ },
20982
+ }).headers.has('Content-Type');
20959
20983
 
20984
+ return duplexAccessed && !hasContentType;
20985
+ })();
20960
20986
 
20961
- function progressEventReducer(listener, isDownloadStream) {
20962
- let bytesNotified = 0;
20963
- const _speedometer = (0,_helpers_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250);
20987
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
20964
20988
 
20965
- return e => {
20966
- const loaded = e.loaded;
20967
- const total = e.lengthComputable ? e.total : undefined;
20968
- const progressBytes = loaded - bytesNotified;
20969
- const rate = _speedometer(progressBytes);
20970
- const inRange = loaded <= total;
20989
+ const supportsResponseStream = isReadableStreamSupported && !!(()=> {
20990
+ try {
20991
+ return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isReadableStream(new Response('').body);
20992
+ } catch(err) {
20993
+ // return undefined
20994
+ }
20995
+ })();
20971
20996
 
20972
- bytesNotified = loaded;
20997
+ const resolvers = {
20998
+ stream: supportsResponseStream && ((res) => res.body)
20999
+ };
20973
21000
 
20974
- const data = {
20975
- loaded,
20976
- total,
20977
- progress: total ? (loaded / total) : undefined,
20978
- bytes: progressBytes,
20979
- rate: rate ? rate : undefined,
20980
- estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
20981
- event: e
20982
- };
21001
+ isFetchSupported && (((res) => {
21002
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
21003
+ !resolvers[type] && (resolvers[type] = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(res[type]) ? (res) => res[type]() :
21004
+ (_, config) => {
21005
+ throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](`Response type '${type}' is not supported`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT, config);
21006
+ })
21007
+ });
21008
+ })(new Response));
20983
21009
 
20984
- data[isDownloadStream ? 'download' : 'upload'] = true;
21010
+ const getBodyLength = async (body) => {
21011
+ if (body == null) {
21012
+ return 0;
21013
+ }
20985
21014
 
20986
- listener(data);
20987
- };
21015
+ if(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isBlob(body)) {
21016
+ return body.size;
21017
+ }
21018
+
21019
+ if(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isSpecCompliantForm(body)) {
21020
+ return (await new Request(body).arrayBuffer()).byteLength;
21021
+ }
21022
+
21023
+ if(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArrayBufferView(body)) {
21024
+ return body.byteLength;
21025
+ }
21026
+
21027
+ if(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isURLSearchParams(body)) {
21028
+ body = body + '';
21029
+ }
21030
+
21031
+ if(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(body)) {
21032
+ return (await encodeText(body)).byteLength;
21033
+ }
20988
21034
  }
20989
21035
 
20990
- const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
21036
+ const resolveBodyLength = async (headers, body) => {
21037
+ const length = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].toFiniteNumber(headers.getContentLength());
20991
21038
 
20992
- /* harmony default export */ __webpack_exports__["default"] = (isXHRAdapterSupported && function (config) {
20993
- return new Promise(function dispatchXhrRequest(resolve, reject) {
20994
- let requestData = config.data;
20995
- const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(config.headers).normalize();
20996
- let {responseType, withXSRFToken} = config;
20997
- let onCanceled;
20998
- function done() {
20999
- if (config.cancelToken) {
21000
- config.cancelToken.unsubscribe(onCanceled);
21039
+ return length == null ? getBodyLength(body) : length;
21040
+ }
21041
+
21042
+ /* harmony default export */ __webpack_exports__["default"] = (isFetchSupported && (async (config) => {
21043
+ let {
21044
+ url,
21045
+ method,
21046
+ data,
21047
+ signal,
21048
+ cancelToken,
21049
+ timeout,
21050
+ onDownloadProgress,
21051
+ onUploadProgress,
21052
+ responseType,
21053
+ headers,
21054
+ withCredentials = 'same-origin',
21055
+ fetchOptions
21056
+ } = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
21057
+
21058
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
21059
+
21060
+ let [composedSignal, stopTimeout] = (signal || cancelToken || timeout) ?
21061
+ (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken], timeout) : [];
21062
+
21063
+ let finished, request;
21064
+
21065
+ const onFinish = () => {
21066
+ !finished && setTimeout(() => {
21067
+ composedSignal && composedSignal.unsubscribe();
21068
+ });
21069
+
21070
+ finished = true;
21071
+ }
21072
+
21073
+ let requestContentLength;
21074
+
21075
+ try {
21076
+ if (
21077
+ onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
21078
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
21079
+ ) {
21080
+ let _request = new Request(url, {
21081
+ method: 'POST',
21082
+ body: data,
21083
+ duplex: "half"
21084
+ });
21085
+
21086
+ let contentTypeHeader;
21087
+
21088
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
21089
+ headers.setContentType(contentTypeHeader)
21001
21090
  }
21002
21091
 
21003
- if (config.signal) {
21004
- config.signal.removeEventListener('abort', onCanceled);
21092
+ if (_request.body) {
21093
+ data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(
21094
+ requestContentLength,
21095
+ (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__["default"])(onUploadProgress)
21096
+ ), null, encodeText);
21005
21097
  }
21006
21098
  }
21007
21099
 
21008
- let contentType;
21100
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(withCredentials)) {
21101
+ withCredentials = withCredentials ? 'cors' : 'omit';
21102
+ }
21009
21103
 
21010
- if (_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFormData(requestData)) {
21011
- if (_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserWebWorkerEnv) {
21012
- requestHeaders.setContentType(false); // Let the browser set it
21013
- } else if ((contentType = requestHeaders.getContentType()) !== false) {
21014
- // fix semicolon duplication issue for ReactNative FormData implementation
21015
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
21016
- requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
21017
- }
21104
+ request = new Request(url, {
21105
+ ...fetchOptions,
21106
+ signal: composedSignal,
21107
+ method: method.toUpperCase(),
21108
+ headers: headers.normalize().toJSON(),
21109
+ body: data,
21110
+ duplex: "half",
21111
+ withCredentials
21112
+ });
21113
+
21114
+ let response = await fetch(request);
21115
+
21116
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
21117
+
21118
+ if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
21119
+ const options = {};
21120
+
21121
+ ['status', 'statusText', 'headers'].forEach(prop => {
21122
+ options[prop] = response[prop];
21123
+ });
21124
+
21125
+ const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].toFiniteNumber(response.headers.get('content-length'));
21126
+
21127
+ response = new Response(
21128
+ (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_5__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(
21129
+ responseContentLength,
21130
+ (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__["default"])(onDownloadProgress, true)
21131
+ ), isStreamResponse && onFinish, encodeText),
21132
+ options
21133
+ );
21018
21134
  }
21019
21135
 
21020
- let request = new XMLHttpRequest();
21136
+ responseType = responseType || 'text';
21137
+
21138
+ let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].findKey(resolvers, responseType) || 'text'](response, config);
21139
+
21140
+ !isStreamResponse && onFinish();
21141
+
21142
+ stopTimeout && stopTimeout();
21143
+
21144
+ return await new Promise((resolve, reject) => {
21145
+ (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_7__["default"])(resolve, reject, {
21146
+ data: responseData,
21147
+ headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"].from(response.headers),
21148
+ status: response.status,
21149
+ statusText: response.statusText,
21150
+ config,
21151
+ request
21152
+ })
21153
+ })
21154
+ } catch (err) {
21155
+ onFinish();
21156
+
21157
+ if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
21158
+ throw Object.assign(
21159
+ new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK, config, request),
21160
+ {
21161
+ cause: err.cause || err
21162
+ }
21163
+ )
21164
+ }
21165
+
21166
+ throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(err, err && err.code, config, request);
21167
+ }
21168
+ }));
21169
+
21170
+
21171
+
21172
+
21173
+ /***/ }),
21174
+
21175
+ /***/ "../node_modules/axios/lib/adapters/xhr.js":
21176
+ /*!*************************************************!*\
21177
+ !*** ../node_modules/axios/lib/adapters/xhr.js ***!
21178
+ \*************************************************/
21179
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
21180
+
21181
+ "use strict";
21182
+ __webpack_require__.r(__webpack_exports__);
21183
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js");
21184
+ /* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js");
21185
+ /* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js");
21186
+ /* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
21187
+ /* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js");
21188
+ /* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "../node_modules/axios/lib/helpers/parseProtocol.js");
21189
+ /* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js");
21190
+ /* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js");
21191
+ /* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "../node_modules/axios/lib/helpers/progressEventReducer.js");
21192
+ /* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "../node_modules/axios/lib/helpers/resolveConfig.js");
21021
21193
 
21022
- // HTTP basic authentication
21023
- if (config.auth) {
21024
- const username = config.auth.username || '';
21025
- const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
21026
- requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
21194
+
21195
+
21196
+
21197
+
21198
+
21199
+
21200
+
21201
+
21202
+
21203
+
21204
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
21205
+
21206
+ /* harmony default export */ __webpack_exports__["default"] = (isXHRAdapterSupported && function (config) {
21207
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
21208
+ const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_0__["default"])(config);
21209
+ let requestData = _config.data;
21210
+ const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(_config.headers).normalize();
21211
+ let {responseType} = _config;
21212
+ let onCanceled;
21213
+ function done() {
21214
+ if (_config.cancelToken) {
21215
+ _config.cancelToken.unsubscribe(onCanceled);
21216
+ }
21217
+
21218
+ if (_config.signal) {
21219
+ _config.signal.removeEventListener('abort', onCanceled);
21220
+ }
21027
21221
  }
21028
21222
 
21029
- const fullPath = (0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config.baseURL, config.url);
21223
+ let request = new XMLHttpRequest();
21030
21224
 
21031
- request.open(config.method.toUpperCase(), (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_5__["default"])(fullPath, config.params, config.paramsSerializer), true);
21225
+ request.open(_config.method.toUpperCase(), _config.url, true);
21032
21226
 
21033
21227
  // Set the request timeout in MS
21034
- request.timeout = config.timeout;
21228
+ request.timeout = _config.timeout;
21035
21229
 
21036
21230
  function onloadend() {
21037
21231
  if (!request) {
@@ -21052,7 +21246,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
21052
21246
  request
21053
21247
  };
21054
21248
 
21055
- (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_6__["default"])(function _resolve(value) {
21249
+ (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(function _resolve(value) {
21056
21250
  resolve(value);
21057
21251
  done();
21058
21252
  }, function _reject(err) {
@@ -21093,7 +21287,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
21093
21287
  return;
21094
21288
  }
21095
21289
 
21096
- reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED, config, request));
21290
+ reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED, _config, request));
21097
21291
 
21098
21292
  // Clean up request
21099
21293
  request = null;
@@ -21103,7 +21297,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
21103
21297
  request.onerror = function handleError() {
21104
21298
  // Real errors are hidden from us by the browser
21105
21299
  // onerror should only fire if it's a network error
21106
- reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_NETWORK, config, request));
21300
+ reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_NETWORK, _config, request));
21107
21301
 
21108
21302
  // Clean up request
21109
21303
  request = null;
@@ -21111,89 +21305,73 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
21111
21305
 
21112
21306
  // Handle timeout
21113
21307
  request.ontimeout = function handleTimeout() {
21114
- let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
21115
- const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_8__["default"];
21116
- if (config.timeoutErrorMessage) {
21117
- timeoutErrorMessage = config.timeoutErrorMessage;
21308
+ let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
21309
+ const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__["default"];
21310
+ if (_config.timeoutErrorMessage) {
21311
+ timeoutErrorMessage = _config.timeoutErrorMessage;
21118
21312
  }
21119
- reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"](
21313
+ reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](
21120
21314
  timeoutErrorMessage,
21121
- transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ECONNABORTED,
21122
- config,
21315
+ transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED,
21316
+ _config,
21123
21317
  request));
21124
21318
 
21125
21319
  // Clean up request
21126
21320
  request = null;
21127
21321
  };
21128
21322
 
21129
- // Add xsrf header
21130
- // This is only done if running in a standard browser environment.
21131
- // Specifically not if we're in a web worker, or react-native.
21132
- if(_platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].hasStandardBrowserEnv) {
21133
- withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
21134
-
21135
- if (withXSRFToken || (withXSRFToken !== false && (0,_helpers_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_9__["default"])(fullPath))) {
21136
- // Add xsrf header
21137
- const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_10__["default"].read(config.xsrfCookieName);
21138
-
21139
- if (xsrfValue) {
21140
- requestHeaders.set(config.xsrfHeaderName, xsrfValue);
21141
- }
21142
- }
21143
- }
21144
-
21145
21323
  // Remove Content-Type if data is undefined
21146
21324
  requestData === undefined && requestHeaders.setContentType(null);
21147
21325
 
21148
21326
  // Add headers to the request
21149
21327
  if ('setRequestHeader' in request) {
21150
- _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
21328
+ _utils_js__WEBPACK_IMPORTED_MODULE_5__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
21151
21329
  request.setRequestHeader(key, val);
21152
21330
  });
21153
21331
  }
21154
21332
 
21155
21333
  // Add withCredentials to request if needed
21156
- if (!_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isUndefined(config.withCredentials)) {
21157
- request.withCredentials = !!config.withCredentials;
21334
+ if (!_utils_js__WEBPACK_IMPORTED_MODULE_5__["default"].isUndefined(_config.withCredentials)) {
21335
+ request.withCredentials = !!_config.withCredentials;
21158
21336
  }
21159
21337
 
21160
21338
  // Add responseType to request if needed
21161
21339
  if (responseType && responseType !== 'json') {
21162
- request.responseType = config.responseType;
21340
+ request.responseType = _config.responseType;
21163
21341
  }
21164
21342
 
21165
21343
  // Handle progress if needed
21166
- if (typeof config.onDownloadProgress === 'function') {
21167
- request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));
21344
+ if (typeof _config.onDownloadProgress === 'function') {
21345
+ request.addEventListener('progress', (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__["default"])(_config.onDownloadProgress, true));
21168
21346
  }
21169
21347
 
21170
21348
  // Not all browsers support upload events
21171
- if (typeof config.onUploadProgress === 'function' && request.upload) {
21172
- request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));
21349
+ if (typeof _config.onUploadProgress === 'function' && request.upload) {
21350
+ request.upload.addEventListener('progress', (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__["default"])(_config.onUploadProgress));
21173
21351
  }
21174
21352
 
21175
- if (config.cancelToken || config.signal) {
21353
+ if (_config.cancelToken || _config.signal) {
21176
21354
  // Handle cancellation
21177
21355
  // eslint-disable-next-line func-names
21178
21356
  onCanceled = cancel => {
21179
21357
  if (!request) {
21180
21358
  return;
21181
21359
  }
21182
- reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__["default"](null, config, request) : cancel);
21360
+ reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__["default"](null, config, request) : cancel);
21183
21361
  request.abort();
21184
21362
  request = null;
21185
21363
  };
21186
21364
 
21187
- config.cancelToken && config.cancelToken.subscribe(onCanceled);
21188
- if (config.signal) {
21189
- config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
21365
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
21366
+ if (_config.signal) {
21367
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
21190
21368
  }
21191
21369
  }
21192
21370
 
21193
- const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_12__["default"])(fullPath);
21371
+ const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_8__["default"])(_config.url);
21194
21372
 
21195
- if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].protocols.indexOf(protocol) === -1) {
21196
- reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_7__["default"].ERR_BAD_REQUEST, config));
21373
+ if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_9__["default"].protocols.indexOf(protocol) === -1) {
21374
+ reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_BAD_REQUEST, config));
21197
21375
  return;
21198
21376
  }
21199
21377
 
@@ -21581,12 +21759,15 @@ class Axios {
21581
21759
 
21582
21760
  // slice off the Error: ... line
21583
21761
  const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
21584
-
21585
- if (!err.stack) {
21586
- err.stack = stack;
21587
- // match without the 2 top stack lines
21588
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
21589
- err.stack += '\n' + stack
21762
+ try {
21763
+ if (!err.stack) {
21764
+ err.stack = stack;
21765
+ // match without the 2 top stack lines
21766
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
21767
+ err.stack += '\n' + stack
21768
+ }
21769
+ } catch (e) {
21770
+ // ignore the case where "stack" is an un-writable property
21590
21771
  }
21591
21772
  }
21592
21773
 
@@ -21987,6 +22168,10 @@ class AxiosHeaders {
21987
22168
  setHeaders(header, valueOrRewrite)
21988
22169
  } else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
21989
22170
  setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"])(header), valueOrRewrite);
22171
+ } else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHeaders(header)) {
22172
+ for (const [key, value] of header.entries()) {
22173
+ setHeader(value, key, rewrite);
22174
+ }
21990
22175
  } else {
21991
22176
  header != null && setHeader(valueOrRewrite, header, rewrite);
21992
22177
  }
@@ -22677,7 +22862,7 @@ const defaults = {
22677
22862
 
22678
22863
  transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_1__["default"],
22679
22864
 
22680
- adapter: ['xhr', 'http'],
22865
+ adapter: ['xhr', 'http', 'fetch'],
22681
22866
 
22682
22867
  transformRequest: [function transformRequest(data, headers) {
22683
22868
  const contentType = headers.getContentType() || '';
@@ -22698,7 +22883,8 @@ const defaults = {
22698
22883
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(data) ||
22699
22884
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isStream(data) ||
22700
22885
  _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFile(data) ||
22701
- _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data)
22886
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(data) ||
22887
+ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(data)
22702
22888
  ) {
22703
22889
  return data;
22704
22890
  }
@@ -22741,6 +22927,10 @@ const defaults = {
22741
22927
  const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
22742
22928
  const JSONRequested = this.responseType === 'json';
22743
22929
 
22930
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isResponse(data) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(data)) {
22931
+ return data;
22932
+ }
22933
+
22744
22934
  if (data && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
22745
22935
  const silentJSONParsing = transitional && transitional.silentJSONParsing;
22746
22936
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
@@ -22828,7 +23018,7 @@ __webpack_require__.r(__webpack_exports__);
22828
23018
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22829
23019
  /* harmony export */ VERSION: function() { return /* binding */ VERSION; }
22830
23020
  /* harmony export */ });
22831
- const VERSION = "1.6.8";
23021
+ const VERSION = "1.7.1";
22832
23022
 
22833
23023
  /***/ }),
22834
23024
 
@@ -23116,6 +23306,66 @@ function combineURLs(baseURL, relativeURL) {
23116
23306
  }
23117
23307
 
23118
23308
 
23309
+ /***/ }),
23310
+
23311
+ /***/ "../node_modules/axios/lib/helpers/composeSignals.js":
23312
+ /*!***********************************************************!*\
23313
+ !*** ../node_modules/axios/lib/helpers/composeSignals.js ***!
23314
+ \***********************************************************/
23315
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
23316
+
23317
+ "use strict";
23318
+ __webpack_require__.r(__webpack_exports__);
23319
+ /* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js");
23320
+ /* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
23321
+
23322
+
23323
+
23324
+ const composeSignals = (signals, timeout) => {
23325
+ let controller = new AbortController();
23326
+
23327
+ let aborted;
23328
+
23329
+ const onabort = function (cancel) {
23330
+ if (!aborted) {
23331
+ aborted = true;
23332
+ unsubscribe();
23333
+ const err = cancel instanceof Error ? cancel : this.reason;
23334
+ controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__["default"](err instanceof Error ? err.message : err));
23335
+ }
23336
+ }
23337
+
23338
+ let timer = timeout && setTimeout(() => {
23339
+ onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"](`timeout ${timeout} of ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ETIMEDOUT))
23340
+ }, timeout)
23341
+
23342
+ const unsubscribe = () => {
23343
+ if (signals) {
23344
+ timer && clearTimeout(timer);
23345
+ timer = null;
23346
+ signals.forEach(signal => {
23347
+ signal &&
23348
+ (signal.removeEventListener ? signal.removeEventListener('abort', onabort) : signal.unsubscribe(onabort));
23349
+ });
23350
+ signals = null;
23351
+ }
23352
+ }
23353
+
23354
+ signals.forEach((signal) => signal && signal.addEventListener && signal.addEventListener('abort', onabort));
23355
+
23356
+ const {signal} = controller;
23357
+
23358
+ signal.unsubscribe = unsubscribe;
23359
+
23360
+ return [signal, () => {
23361
+ timer && clearTimeout(timer);
23362
+ timer = null;
23363
+ }];
23364
+ }
23365
+
23366
+ /* harmony default export */ __webpack_exports__["default"] = (composeSignals);
23367
+
23368
+
23119
23369
  /***/ }),
23120
23370
 
23121
23371
  /***/ "../node_modules/axios/lib/helpers/cookies.js":
@@ -23524,6 +23774,129 @@ function parseProtocol(url) {
23524
23774
  }
23525
23775
 
23526
23776
 
23777
+ /***/ }),
23778
+
23779
+ /***/ "../node_modules/axios/lib/helpers/progressEventReducer.js":
23780
+ /*!*****************************************************************!*\
23781
+ !*** ../node_modules/axios/lib/helpers/progressEventReducer.js ***!
23782
+ \*****************************************************************/
23783
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
23784
+
23785
+ "use strict";
23786
+ __webpack_require__.r(__webpack_exports__);
23787
+ /* harmony import */ var _speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./speedometer.js */ "../node_modules/axios/lib/helpers/speedometer.js");
23788
+ /* harmony import */ var _throttle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./throttle.js */ "../node_modules/axios/lib/helpers/throttle.js");
23789
+
23790
+
23791
+
23792
+ /* harmony default export */ __webpack_exports__["default"] = ((listener, isDownloadStream, freq = 3) => {
23793
+ let bytesNotified = 0;
23794
+ const _speedometer = (0,_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250);
23795
+
23796
+ return (0,_throttle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(e => {
23797
+ const loaded = e.loaded;
23798
+ const total = e.lengthComputable ? e.total : undefined;
23799
+ const progressBytes = loaded - bytesNotified;
23800
+ const rate = _speedometer(progressBytes);
23801
+ const inRange = loaded <= total;
23802
+
23803
+ bytesNotified = loaded;
23804
+
23805
+ const data = {
23806
+ loaded,
23807
+ total,
23808
+ progress: total ? (loaded / total) : undefined,
23809
+ bytes: progressBytes,
23810
+ rate: rate ? rate : undefined,
23811
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
23812
+ event: e,
23813
+ lengthComputable: total != null
23814
+ };
23815
+
23816
+ data[isDownloadStream ? 'download' : 'upload'] = true;
23817
+
23818
+ listener(data);
23819
+ }, freq);
23820
+ });
23821
+
23822
+
23823
+ /***/ }),
23824
+
23825
+ /***/ "../node_modules/axios/lib/helpers/resolveConfig.js":
23826
+ /*!**********************************************************!*\
23827
+ !*** ../node_modules/axios/lib/helpers/resolveConfig.js ***!
23828
+ \**********************************************************/
23829
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
23830
+
23831
+ "use strict";
23832
+ __webpack_require__.r(__webpack_exports__);
23833
+ /* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js");
23834
+ /* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
23835
+ /* harmony import */ var _isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isURLSameOrigin.js */ "../node_modules/axios/lib/helpers/isURLSameOrigin.js");
23836
+ /* harmony import */ var _cookies_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cookies.js */ "../node_modules/axios/lib/helpers/cookies.js");
23837
+ /* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js");
23838
+ /* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/mergeConfig.js */ "../node_modules/axios/lib/core/mergeConfig.js");
23839
+ /* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js");
23840
+ /* harmony import */ var _buildURL_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js");
23841
+
23842
+
23843
+
23844
+
23845
+
23846
+
23847
+
23848
+
23849
+
23850
+ /* harmony default export */ __webpack_exports__["default"] = ((config) => {
23851
+ const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, config);
23852
+
23853
+ let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
23854
+
23855
+ newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
23856
+
23857
+ newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
23858
+
23859
+ // HTTP basic authentication
23860
+ if (auth) {
23861
+ headers.set('Authorization', 'Basic ' +
23862
+ btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
23863
+ );
23864
+ }
23865
+
23866
+ let contentType;
23867
+
23868
+ if (_utils_js__WEBPACK_IMPORTED_MODULE_4__["default"].isFormData(data)) {
23869
+ if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserWebWorkerEnv) {
23870
+ headers.setContentType(undefined); // Let the browser set it
23871
+ } else if ((contentType = headers.getContentType()) !== false) {
23872
+ // fix semicolon duplication issue for ReactNative FormData implementation
23873
+ const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
23874
+ headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
23875
+ }
23876
+ }
23877
+
23878
+ // Add xsrf header
23879
+ // This is only done if running in a standard browser environment.
23880
+ // Specifically not if we're in a web worker, or react-native.
23881
+
23882
+ if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserEnv) {
23883
+ withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_4__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
23884
+
23885
+ if (withXSRFToken || (withXSRFToken !== false && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_6__["default"])(newConfig.url))) {
23886
+ // Add xsrf header
23887
+ const xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies_js__WEBPACK_IMPORTED_MODULE_7__["default"].read(xsrfCookieName);
23888
+
23889
+ if (xsrfValue) {
23890
+ headers.set(xsrfHeaderName, xsrfValue);
23891
+ }
23892
+ }
23893
+ }
23894
+
23895
+ return newConfig;
23896
+ });
23897
+
23898
+
23899
+
23527
23900
  /***/ }),
23528
23901
 
23529
23902
  /***/ "../node_modules/axios/lib/helpers/speedometer.js":
@@ -23634,6 +24007,53 @@ function spread(callback) {
23634
24007
  }
23635
24008
 
23636
24009
 
24010
+ /***/ }),
24011
+
24012
+ /***/ "../node_modules/axios/lib/helpers/throttle.js":
24013
+ /*!*****************************************************!*\
24014
+ !*** ../node_modules/axios/lib/helpers/throttle.js ***!
24015
+ \*****************************************************/
24016
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
24017
+
24018
+ "use strict";
24019
+ __webpack_require__.r(__webpack_exports__);
24020
+
24021
+
24022
+ /**
24023
+ * Throttle decorator
24024
+ * @param {Function} fn
24025
+ * @param {Number} freq
24026
+ * @return {Function}
24027
+ */
24028
+ function throttle(fn, freq) {
24029
+ let timestamp = 0;
24030
+ const threshold = 1000 / freq;
24031
+ let timer = null;
24032
+ return function throttled() {
24033
+ const force = this === true;
24034
+
24035
+ const now = Date.now();
24036
+ if (force || now - timestamp > threshold) {
24037
+ if (timer) {
24038
+ clearTimeout(timer);
24039
+ timer = null;
24040
+ }
24041
+ timestamp = now;
24042
+ return fn.apply(null, arguments);
24043
+ }
24044
+ if (!timer) {
24045
+ timer = setTimeout(() => {
24046
+ timer = null;
24047
+ timestamp = Date.now();
24048
+ return fn.apply(null, arguments);
24049
+ }, threshold - (now - timestamp));
24050
+ }
24051
+ };
24052
+ }
24053
+
24054
+ /* harmony default export */ __webpack_exports__["default"] = (throttle);
24055
+
24056
+
23637
24057
  /***/ }),
23638
24058
 
23639
24059
  /***/ "../node_modules/axios/lib/helpers/toFormData.js":
@@ -23904,6 +24324,78 @@ function toURLEncodedForm(data, options) {
23904
24324
  }
23905
24325
 
23906
24326
 
24327
+ /***/ }),
24328
+
24329
+ /***/ "../node_modules/axios/lib/helpers/trackStream.js":
24330
+ /*!********************************************************!*\
24331
+ !*** ../node_modules/axios/lib/helpers/trackStream.js ***!
24332
+ \********************************************************/
24333
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
24334
+
24335
+ "use strict";
24336
+ __webpack_require__.r(__webpack_exports__);
24337
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24338
+ /* harmony export */ readBytes: function() { return /* binding */ readBytes; },
24339
+ /* harmony export */ streamChunk: function() { return /* binding */ streamChunk; },
24340
+ /* harmony export */ trackStream: function() { return /* binding */ trackStream; }
24341
+ /* harmony export */ });
24342
+
24343
+
24344
+ const streamChunk = function* (chunk, chunkSize) {
24345
+ let len = chunk.byteLength;
24346
+
24347
+ if (!chunkSize || len < chunkSize) {
24348
+ yield chunk;
24349
+ return;
24350
+ }
24351
+
24352
+ let pos = 0;
24353
+ let end;
24354
+
24355
+ while (pos < len) {
24356
+ end = pos + chunkSize;
24357
+ yield chunk.slice(pos, end);
24358
+ pos = end;
24359
+ }
24360
+ }
24361
+
24362
+ const readBytes = async function* (iterable, chunkSize, encode) {
24363
+ for await (const chunk of iterable) {
24364
+ yield* streamChunk(ArrayBuffer.isView(chunk) ? chunk : (await encode(String(chunk))), chunkSize);
24365
+ }
24366
+ }
24367
+
24368
+ const trackStream = (stream, chunkSize, onProgress, onFinish, encode) => {
24369
+ const iterator = readBytes(stream, chunkSize, encode);
24370
+
24371
+ let bytes = 0;
24372
+
24373
+ return new ReadableStream({
24374
+ type: 'bytes',
24375
+
24376
+ async pull(controller) {
24377
+ const {done, value} = await iterator.next();
24378
+
24379
+ if (done) {
24380
+ controller.close();
24381
+ onFinish();
24382
+ return;
24383
+ }
24384
+
24385
+ let len = value.byteLength;
24386
+ onProgress && onProgress(bytes += len);
24387
+ controller.enqueue(new Uint8Array(value));
24388
+ },
24389
+ cancel(reason) {
24390
+ onFinish(reason);
24391
+ return iterator.return();
24392
+ }
24393
+ }, {
24394
+ highWaterMark: 2
24395
+ })
24396
+ }
24397
+
24398
+
23907
24399
  /***/ }),
23908
24400
 
23909
24401
  /***/ "../node_modules/axios/lib/helpers/validator.js":
@@ -24097,7 +24589,8 @@ __webpack_require__.r(__webpack_exports__);
24097
24589
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24098
24590
  /* harmony export */ hasBrowserEnv: function() { return /* binding */ hasBrowserEnv; },
24099
24591
  /* harmony export */ hasStandardBrowserEnv: function() { return /* binding */ hasStandardBrowserEnv; },
24100
- /* harmony export */ hasStandardBrowserWebWorkerEnv: function() { return /* binding */ hasStandardBrowserWebWorkerEnv; }
24592
+ /* harmony export */ hasStandardBrowserWebWorkerEnv: function() { return /* binding */ hasStandardBrowserWebWorkerEnv; },
24593
+ /* harmony export */ origin: function() { return /* binding */ origin; }
24101
24594
  /* harmony export */ });
24102
24595
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
24103
24596
 
@@ -24141,6 +24634,8 @@ const hasStandardBrowserWebWorkerEnv = (() => {
24141
24634
  );
24142
24635
  })();
24143
24636
 
24637
+ const origin = hasBrowserEnv && window.location.href || 'http://localhost';
24638
+
24144
24639
 
24145
24640
 
24146
24641
 
@@ -24387,6 +24882,8 @@ const isFormData = (thing) => {
24387
24882
  */
24388
24883
  const isURLSearchParams = kindOfTest('URLSearchParams');
24389
24884
 
24885
+ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
24886
+
24390
24887
  /**
24391
24888
  * Trim excess whitespace off the beginning and end of a string
24392
24889
  *
@@ -24775,8 +25272,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
24775
25272
  const noop = () => {}
24776
25273
 
24777
25274
  const toFiniteNumber = (value, defaultValue) => {
24778
- value = +value;
24779
- return Number.isFinite(value) ? value : defaultValue;
25275
+ return value != null && Number.isFinite(value = +value) ? value : defaultValue;
24780
25276
  }
24781
25277
 
24782
25278
  const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
@@ -24857,6 +25353,10 @@ const isThenable = (thing) =>
24857
25353
  isBoolean,
24858
25354
  isObject,
24859
25355
  isPlainObject,
25356
+ isReadableStream,
25357
+ isRequest,
25358
+ isResponse,
25359
+ isHeaders,
24860
25360
  isUndefined,
24861
25361
  isDate,
24862
25362
  isFile,
@@ -25478,7 +25978,7 @@ function createClient(params) {
25478
25978
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
25479
25979
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
25480
25980
  var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
25481
- "".concat(sdkMain, "/").concat("11.25.5"), params.application, params.integration, params.feature);
25981
+ "".concat(sdkMain, "/").concat("11.26.0"), params.application, params.integration, params.feature);
25482
25982
  var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
25483
25983
  userAgent: userAgent
25484
25984
  }));