varsnap 1.14.0 → 1.15.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.
- package/README.md +40 -2
- package/built/varsnap/core.d.ts +21 -8
- package/built/varsnap/core.js +114 -24
- package/built/varsnap/core.js.map +1 -1
- package/dist/browser.js +1890 -632
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +2 -2
- package/dist/browser.min.js.map +1 -1
- package/dist/node.cjs +2462 -774
- package/dist/node.cjs.map +1 -1
- package/dist/node.min.cjs +5 -4
- package/dist/node.min.cjs.map +1 -1
- package/package.json +20 -18
- package/varsnap/core.ts +125 -24
- package/built/test/config_tools.d.ts +0 -10
- package/built/test/config_tools.js +0 -34
- package/built/test/config_tools.js.map +0 -1
- package/built/test/core.d.ts +0 -1
- package/built/test/core.js +0 -313
- package/built/test/core.js.map +0 -1
- package/built/test/integration.d.ts +0 -1
- package/built/test/integration.js +0 -168
- package/built/test/integration.js.map +0 -1
- package/built/webpack.config.d.ts +0 -15
- package/built/webpack.config.js +0 -78
- package/built/webpack.config.js.map +0 -1
package/dist/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Varsnap.js v1.
|
|
1
|
+
/*! Varsnap.js v1.15.0 */
|
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
4
4
|
module.exports = factory();
|
|
@@ -29,13 +29,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29
29
|
/* harmony export */ varsnap: () => (/* binding */ varsnap),
|
|
30
30
|
/* harmony export */ version: () => (/* binding */ version)
|
|
31
31
|
/* harmony export */ });
|
|
32
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/.pnpm/axios@1.
|
|
32
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js");
|
|
33
33
|
|
|
34
34
|
const produceURL = 'https://www.varsnap.com/api/snap/produce/';
|
|
35
35
|
const consumeURL = 'https://www.varsnap.com/api/snap/consume/';
|
|
36
36
|
const produceTrialURL = 'https://www.varsnap.com/api/trial/produce/';
|
|
37
37
|
const trialGroupURL = 'https://www.varsnap.com/api/trial_group/';
|
|
38
|
-
const version = '1.
|
|
38
|
+
const version = '1.15.0';
|
|
39
39
|
const clientName = 'javascript.' + version;
|
|
40
40
|
const defaultConfig = {
|
|
41
41
|
varsnap: true,
|
|
@@ -147,6 +147,13 @@ class Util {
|
|
|
147
147
|
}
|
|
148
148
|
return limitedString.substring(0, 30 - ellipsis.length) + ellipsis;
|
|
149
149
|
}
|
|
150
|
+
static hasCodec(hint) {
|
|
151
|
+
if (hint === null || hint === undefined) {
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
const codec = hint;
|
|
155
|
+
return typeof codec.varsnapSerialize === 'function' && typeof codec.varsnapDeserialize === 'function';
|
|
156
|
+
}
|
|
150
157
|
static isNode() {
|
|
151
158
|
if (typeof process !== 'object') {
|
|
152
159
|
return false;
|
|
@@ -158,10 +165,11 @@ class Util {
|
|
|
158
165
|
}
|
|
159
166
|
}
|
|
160
167
|
class Producer {
|
|
161
|
-
constructor(targetFunc, signature, config) {
|
|
168
|
+
constructor(targetFunc, signature, config, options = {}) {
|
|
162
169
|
this.targetFunc = targetFunc;
|
|
163
170
|
this.signature = signature;
|
|
164
171
|
this.config = config;
|
|
172
|
+
this.options = options;
|
|
165
173
|
}
|
|
166
174
|
isEnabled() {
|
|
167
175
|
if (!this.config.varsnap) {
|
|
@@ -175,17 +183,40 @@ class Producer {
|
|
|
175
183
|
}
|
|
176
184
|
return true;
|
|
177
185
|
}
|
|
178
|
-
static serialize(data) {
|
|
179
|
-
// Tag the payload with its format so the wire is self-describing
|
|
180
|
-
//
|
|
186
|
+
static serialize(data, hint) {
|
|
187
|
+
// Tag the payload with its format so the wire is self-describing. A
|
|
188
|
+
// hinted class owns its own encoding; everything else is JSON (JSON.parse
|
|
181
189
|
// cannot execute code, so there is no unsafe-deserialization fallback like
|
|
182
190
|
// the Python client's pickle path).
|
|
191
|
+
if (Util.hasCodec(hint)) {
|
|
192
|
+
const encoded = hint.varsnapSerialize(data);
|
|
193
|
+
if (typeof encoded !== 'string') {
|
|
194
|
+
throw new Error('varsnapSerialize must return a string');
|
|
195
|
+
}
|
|
196
|
+
return 'type:' + encoded;
|
|
197
|
+
}
|
|
183
198
|
return 'json:' + JSON.stringify(data);
|
|
184
199
|
}
|
|
200
|
+
static serializeInputs(args, types = []) {
|
|
201
|
+
// Each argument is serialized with its own hint; the envelope matches the
|
|
202
|
+
// varsnap-python client's (JS has no kwargs or captured globals).
|
|
203
|
+
const envelope = {
|
|
204
|
+
args: args.map((arg, i) => Producer.serialize(arg, types[i])),
|
|
205
|
+
kwargs: {},
|
|
206
|
+
globals: Producer.serialize({}),
|
|
207
|
+
};
|
|
208
|
+
return 'inputs:' + JSON.stringify(envelope);
|
|
209
|
+
}
|
|
185
210
|
static serialize_formatted(data) {
|
|
186
|
-
|
|
211
|
+
// Display only, so fall back to a plain string rather than failing a trial
|
|
212
|
+
try {
|
|
213
|
+
return JSON.stringify(data, null, 2);
|
|
214
|
+
}
|
|
215
|
+
catch (_a) {
|
|
216
|
+
return String(data);
|
|
217
|
+
}
|
|
187
218
|
}
|
|
188
|
-
produce(args, output) {
|
|
219
|
+
produce(args, output, threw = false) {
|
|
189
220
|
if (!this.isEnabled()) {
|
|
190
221
|
const errorPromise = new Promise((resolve) => {
|
|
191
222
|
return resolve(false);
|
|
@@ -194,11 +225,22 @@ class Producer {
|
|
|
194
225
|
}
|
|
195
226
|
Util.debug(this.config, 'Sending call to Varsnap');
|
|
196
227
|
return Promise.resolve(output).then((outputValue) => {
|
|
228
|
+
let inputs;
|
|
229
|
+
let prodOutputs;
|
|
230
|
+
try {
|
|
231
|
+
inputs = Producer.serializeInputs(args, this.options.types);
|
|
232
|
+
// A thrown value is not an instance of the declared return type
|
|
233
|
+
prodOutputs = Producer.serialize(outputValue, threw ? undefined : this.options.returns);
|
|
234
|
+
}
|
|
235
|
+
catch (err) {
|
|
236
|
+
Util.error(this.config, 'Cannot serialize snap for ' + this.signature + ': ' + err);
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
197
239
|
const data = {
|
|
198
240
|
'producer_token': Util.getConfig(this.config, 'producerToken'),
|
|
199
241
|
'signature': this.signature,
|
|
200
|
-
'inputs':
|
|
201
|
-
'prod_outputs':
|
|
242
|
+
'inputs': inputs,
|
|
243
|
+
'prod_outputs': prodOutputs,
|
|
202
244
|
};
|
|
203
245
|
return Util.ajax(produceURL, data).then(() => {
|
|
204
246
|
return true;
|
|
@@ -217,14 +259,20 @@ class Producer {
|
|
|
217
259
|
}
|
|
218
260
|
return false;
|
|
219
261
|
});
|
|
262
|
+
}, (err) => {
|
|
263
|
+
// The caller handles its own rejected promise; this copy must not
|
|
264
|
+
// surface as an unhandled rejection
|
|
265
|
+
Util.log(this.config, 'Not producing a snap for ' + this.signature + '; its promise rejected: ' + err);
|
|
266
|
+
return false;
|
|
220
267
|
});
|
|
221
268
|
}
|
|
222
269
|
}
|
|
223
270
|
class Consumer {
|
|
224
|
-
constructor(targetFunc, signature, config) {
|
|
271
|
+
constructor(targetFunc, signature, config, options = {}) {
|
|
225
272
|
this.targetFunc = targetFunc;
|
|
226
273
|
this.signature = signature;
|
|
227
274
|
this.config = config;
|
|
275
|
+
this.options = options;
|
|
228
276
|
}
|
|
229
277
|
isEnabled() {
|
|
230
278
|
if (!this.config.varsnap) {
|
|
@@ -238,15 +286,39 @@ class Consumer {
|
|
|
238
286
|
}
|
|
239
287
|
return true;
|
|
240
288
|
}
|
|
241
|
-
static deserialize(data) {
|
|
289
|
+
static deserialize(data, hint) {
|
|
242
290
|
if (data === '') {
|
|
243
291
|
return undefined;
|
|
244
292
|
}
|
|
293
|
+
if (data.startsWith('type:')) {
|
|
294
|
+
// The class comes from the caller's hint, never from the payload, so a
|
|
295
|
+
// stored snap cannot choose which code runs to decode it.
|
|
296
|
+
if (!Util.hasCodec(hint)) {
|
|
297
|
+
throw new Error('Cannot deserialize a type: payload without a codec');
|
|
298
|
+
}
|
|
299
|
+
return hint.varsnapDeserialize(data.substring('type:'.length));
|
|
300
|
+
}
|
|
245
301
|
if (!data.startsWith('json:')) {
|
|
246
302
|
throw new Error('Unknown serialization format: ' + Util.limitString(data));
|
|
247
303
|
}
|
|
248
304
|
return JSON.parse(data.substring('json:'.length));
|
|
249
305
|
}
|
|
306
|
+
static deserializeInputs(data, types = []) {
|
|
307
|
+
if (!data.startsWith('inputs:')) {
|
|
308
|
+
throw new Error('Expected an inputs: prefix');
|
|
309
|
+
}
|
|
310
|
+
const envelope = JSON.parse(data.substring('inputs:'.length));
|
|
311
|
+
const isPlainObject = (x) => typeof x === 'object' && x !== null && !Array.isArray(x);
|
|
312
|
+
if (!isPlainObject(envelope) ||
|
|
313
|
+
!Array.isArray(envelope.args) ||
|
|
314
|
+
!envelope.args.every((arg) => typeof arg === 'string') ||
|
|
315
|
+
!isPlainObject(envelope.kwargs) ||
|
|
316
|
+
Object.keys(envelope.kwargs).length > 0 ||
|
|
317
|
+
typeof envelope.globals !== 'string') {
|
|
318
|
+
throw new Error('Malformed inputs envelope');
|
|
319
|
+
}
|
|
320
|
+
return envelope.args.map((arg, i) => Consumer.deserialize(arg, types[i]));
|
|
321
|
+
}
|
|
250
322
|
consume(trialGroup) {
|
|
251
323
|
if (!this.isEnabled()) {
|
|
252
324
|
const errorPromise = new Promise((resolve) => {
|
|
@@ -274,20 +346,38 @@ class Consumer {
|
|
|
274
346
|
}
|
|
275
347
|
const trialPromises = [];
|
|
276
348
|
for (const snap of response.results) {
|
|
277
|
-
|
|
278
|
-
|
|
349
|
+
let inputs;
|
|
350
|
+
let prodOutputs;
|
|
351
|
+
try {
|
|
352
|
+
inputs = Consumer.deserializeInputs(snap['inputs'], this.options.types);
|
|
353
|
+
prodOutputs = Consumer.deserialize(snap['prod_outputs'], this.options.returns);
|
|
354
|
+
}
|
|
355
|
+
catch (err) {
|
|
356
|
+
// One unreadable snap should not stop the others from being tested
|
|
357
|
+
Util.error(this.config, 'Cannot deserialize snap ' + snap['id'] + ': ' + err);
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
279
360
|
let localOutputs;
|
|
361
|
+
let localThrew = false;
|
|
280
362
|
try {
|
|
281
363
|
localOutputs = this.targetFunc(...inputs);
|
|
282
364
|
}
|
|
283
365
|
catch (err) {
|
|
284
366
|
localOutputs = err;
|
|
367
|
+
localThrew = true;
|
|
285
368
|
}
|
|
286
369
|
const trialPromise = Promise.resolve(localOutputs).then((localOutputValue) => {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
370
|
+
let localOutputsSerialized = '';
|
|
371
|
+
try {
|
|
372
|
+
localOutputsSerialized = Producer.serialize(localOutputValue, localThrew ? undefined : this.options.returns);
|
|
373
|
+
}
|
|
374
|
+
catch (err) {
|
|
375
|
+
Util.error(this.config, 'Cannot serialize local outputs for snap ' + snap['id'] + ': ' + err);
|
|
376
|
+
}
|
|
377
|
+
// Compare against the stored payload, which the producer serialized
|
|
378
|
+
// with the same codec rules
|
|
379
|
+
const matches = localOutputsSerialized !== '' && snap['prod_outputs'] === localOutputsSerialized;
|
|
380
|
+
this.reportCentral(trialGroup, snap, prodOutputs, localOutputValue, localOutputsSerialized, matches).then((trialURL) => {
|
|
291
381
|
this.reportLog(snap['id'], inputs, prodOutputs, localOutputValue, matches, trialURL);
|
|
292
382
|
});
|
|
293
383
|
return matches;
|
|
@@ -306,12 +396,12 @@ class Consumer {
|
|
|
306
396
|
});
|
|
307
397
|
return consume;
|
|
308
398
|
}
|
|
309
|
-
reportCentral(trialGroup, snap, prodOutputs, localOutputs, matches) {
|
|
399
|
+
reportCentral(trialGroup, snap, prodOutputs, localOutputs, localOutputsSerialized, matches) {
|
|
310
400
|
const data = {
|
|
311
401
|
'trial_group_id': trialGroup.trial_group_id,
|
|
312
402
|
'consumer_token': Util.getConfig(this.config, 'consumerToken'),
|
|
313
403
|
'snap_id': snap.id,
|
|
314
|
-
'test_outputs':
|
|
404
|
+
'test_outputs': localOutputsSerialized,
|
|
315
405
|
'matches': matches.toString(),
|
|
316
406
|
'snap_outputs_formatted': Producer.serialize_formatted(prodOutputs),
|
|
317
407
|
'test_outputs_formatted': Producer.serialize_formatted(localOutputs),
|
|
@@ -351,23 +441,23 @@ class Consumer {
|
|
|
351
441
|
Util.log(this.config, 'Trial Group: ' + trialGroup.trial_group_url);
|
|
352
442
|
}
|
|
353
443
|
}
|
|
354
|
-
function varsnap(func, funcName) {
|
|
444
|
+
function varsnap(func, funcName, options = {}) {
|
|
355
445
|
if (funcName === undefined) {
|
|
356
446
|
funcName = '';
|
|
357
447
|
}
|
|
358
448
|
const signature = Util.getSignature(func, funcName);
|
|
359
|
-
const producer = new Producer(func, signature, varsnap._config);
|
|
360
|
-
const consumer = new Consumer(func, signature, varsnap._config);
|
|
449
|
+
const producer = new Producer(func, signature, varsnap._config, options);
|
|
450
|
+
const consumer = new Consumer(func, signature, varsnap._config, options);
|
|
361
451
|
const wrapped = function (...args) {
|
|
362
452
|
let result;
|
|
363
453
|
try {
|
|
364
454
|
result = func(...args);
|
|
365
455
|
}
|
|
366
456
|
catch (err) {
|
|
367
|
-
producer.produce(args, err);
|
|
457
|
+
producer.produce(args, err, true);
|
|
368
458
|
throw (err);
|
|
369
459
|
}
|
|
370
|
-
producer.produce(args, result);
|
|
460
|
+
producer.produce(args, result, false);
|
|
371
461
|
return result;
|
|
372
462
|
};
|
|
373
463
|
wrapped.producer = producer;
|
|
@@ -448,9 +538,9 @@ varsnap.runTests = runTests;
|
|
|
448
538
|
|
|
449
539
|
/***/ },
|
|
450
540
|
|
|
451
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
541
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js"
|
|
452
542
|
/*!********************************************************************************************************************************************!*\
|
|
453
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
543
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js ***!
|
|
454
544
|
\********************************************************************************************************************************************/
|
|
455
545
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
456
546
|
|
|
@@ -458,11 +548,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
458
548
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
459
549
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
460
550
|
/* harmony export */ });
|
|
461
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
462
|
-
/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./http.js */ "./node_modules/.pnpm/axios@1.
|
|
463
|
-
/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./xhr.js */ "./node_modules/.pnpm/axios@1.
|
|
464
|
-
/* harmony import */ var _fetch_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fetch.js */ "./node_modules/.pnpm/axios@1.
|
|
465
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
551
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
552
|
+
/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./http.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/null.js");
|
|
553
|
+
/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./xhr.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js");
|
|
554
|
+
/* harmony import */ var _fetch_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fetch.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js");
|
|
555
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
466
556
|
|
|
467
557
|
|
|
468
558
|
|
|
@@ -599,9 +689,9 @@ function getAdapter(adapters, config) {
|
|
|
599
689
|
|
|
600
690
|
/***/ },
|
|
601
691
|
|
|
602
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
692
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js"
|
|
603
693
|
/*!*****************************************************************************************************************************************!*\
|
|
604
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
694
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/fetch.js ***!
|
|
605
695
|
\*****************************************************************************************************************************************/
|
|
606
696
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
607
697
|
|
|
@@ -610,18 +700,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
610
700
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
611
701
|
/* harmony export */ getFetch: () => (/* binding */ getFetch)
|
|
612
702
|
/* harmony export */ });
|
|
613
|
-
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.
|
|
614
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
615
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
616
|
-
/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/composeSignals.js */ "./node_modules/.pnpm/axios@1.
|
|
617
|
-
/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/trackStream.js */ "./node_modules/.pnpm/axios@1.
|
|
618
|
-
/* harmony import */ var
|
|
619
|
-
/* harmony import */ var
|
|
620
|
-
/* harmony import */ var
|
|
621
|
-
/* harmony import */ var
|
|
622
|
-
/* harmony import */ var
|
|
623
|
-
/* harmony import */ var
|
|
624
|
-
/* harmony import */ var
|
|
703
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js");
|
|
704
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
705
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
706
|
+
/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/composeSignals.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js");
|
|
707
|
+
/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/trackStream.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js");
|
|
708
|
+
/* harmony import */ var _core_createMultipartBody_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/createMultipartBody.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/createMultipartBody.js");
|
|
709
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
710
|
+
/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js");
|
|
711
|
+
/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js");
|
|
712
|
+
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../core/settle.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js");
|
|
713
|
+
/* harmony import */ var _helpers_estimateDataURLDecodedBytes_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helpers/estimateDataURLDecodedBytes.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js");
|
|
714
|
+
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../env/data.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js");
|
|
715
|
+
/* harmony import */ var _helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/sanitizeHeaderValue.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js");
|
|
716
|
+
|
|
625
717
|
|
|
626
718
|
|
|
627
719
|
|
|
@@ -637,6 +729,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
637
729
|
|
|
638
730
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
639
731
|
|
|
732
|
+
const DEFAULT_REQUEST_OPTIONS = {
|
|
733
|
+
cache: 'default',
|
|
734
|
+
redirect: 'follow',
|
|
735
|
+
referrer: 'about:client',
|
|
736
|
+
referrerPolicy: '',
|
|
737
|
+
mode: 'cors',
|
|
738
|
+
integrity: '',
|
|
739
|
+
keepalive: false,
|
|
740
|
+
priority: 'auto',
|
|
741
|
+
window: null,
|
|
742
|
+
};
|
|
743
|
+
|
|
640
744
|
const { isFunction } = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
641
745
|
|
|
642
746
|
/**
|
|
@@ -687,9 +791,7 @@ const maybeWithAuthCredentials = (url) => {
|
|
|
687
791
|
|
|
688
792
|
const factory = (env) => {
|
|
689
793
|
const globalObject =
|
|
690
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global !== undefined && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global !== null
|
|
691
|
-
? _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global
|
|
692
|
-
: globalThis;
|
|
794
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global !== undefined && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global !== null ? _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].global : globalThis;
|
|
693
795
|
const { ReadableStream, TextEncoder } = globalObject;
|
|
694
796
|
|
|
695
797
|
env = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call(
|
|
@@ -699,11 +801,13 @@ const factory = (env) => {
|
|
|
699
801
|
{
|
|
700
802
|
Request: globalObject.Request,
|
|
701
803
|
Response: globalObject.Response,
|
|
804
|
+
Blob: globalObject.Blob,
|
|
702
805
|
},
|
|
703
806
|
env
|
|
704
807
|
);
|
|
705
808
|
|
|
706
|
-
const
|
|
809
|
+
const envFetch = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasOwnProp(env, 'fetch') ? env.fetch : undefined;
|
|
810
|
+
const { Request, Response, Blob } = env;
|
|
707
811
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
708
812
|
const isRequestSupported = isFunction(Request);
|
|
709
813
|
const isResponseSupported = isFunction(Response);
|
|
@@ -752,6 +856,20 @@ const factory = (env) => {
|
|
|
752
856
|
isReadableStreamSupported &&
|
|
753
857
|
test(() => _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isReadableStream(new Response('').body));
|
|
754
858
|
|
|
859
|
+
// Some runtimes reject every explicit cache mode. Use own defaults for both
|
|
860
|
+
// probes so unrelated polluted options cannot affect cache-mode detection.
|
|
861
|
+
const requestDefaults = Object.assign(Object.create(null), DEFAULT_REQUEST_OPTIONS);
|
|
862
|
+
|
|
863
|
+
if (isRequestSupported && !test(() => new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, requestDefaults))) {
|
|
864
|
+
delete requestDefaults.cache;
|
|
865
|
+
|
|
866
|
+
// Only omit cache when that makes Request construction succeed. Otherwise
|
|
867
|
+
// retain the explicit default that protects supporting runtimes from pollution.
|
|
868
|
+
if (!test(() => new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, requestDefaults))) {
|
|
869
|
+
requestDefaults.cache = DEFAULT_REQUEST_OPTIONS.cache;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
755
873
|
const resolvers = {
|
|
756
874
|
stream: supportsResponseStream && ((res) => res.body),
|
|
757
875
|
};
|
|
@@ -785,14 +903,6 @@ const factory = (env) => {
|
|
|
785
903
|
return body.size;
|
|
786
904
|
}
|
|
787
905
|
|
|
788
|
-
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isSpecCompliantForm(body)) {
|
|
789
|
-
const _request = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, {
|
|
790
|
-
method: 'POST',
|
|
791
|
-
body,
|
|
792
|
-
});
|
|
793
|
-
return (await _request.arrayBuffer()).byteLength;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
906
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArrayBufferView(body) || _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArrayBuffer(body)) {
|
|
797
907
|
return body.byteLength;
|
|
798
908
|
}
|
|
@@ -828,7 +938,8 @@ const factory = (env) => {
|
|
|
828
938
|
fetchOptions,
|
|
829
939
|
maxContentLength,
|
|
830
940
|
maxBodyLength,
|
|
831
|
-
|
|
941
|
+
maxRedirects,
|
|
942
|
+
} = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_8__["default"])(config);
|
|
832
943
|
|
|
833
944
|
const hasMaxContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(maxContentLength) && maxContentLength > -1;
|
|
834
945
|
const hasMaxBodyLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
@@ -854,11 +965,12 @@ const factory = (env) => {
|
|
|
854
965
|
|
|
855
966
|
let requestContentLength;
|
|
856
967
|
|
|
857
|
-
//
|
|
968
|
+
// AxiosErrors we raise while request or response bodies are being streamed. Captured
|
|
858
969
|
// by identity so the catch block can surface it directly, regardless of
|
|
859
970
|
// how the runtime wraps the resulting fetch rejection (undici exposes it
|
|
860
971
|
// as `err.cause`; some browsers drop the original error entirely).
|
|
861
972
|
let pendingBodyError = null;
|
|
973
|
+
let pendingResponseError = null;
|
|
862
974
|
|
|
863
975
|
const maxBodyLengthError = () =>
|
|
864
976
|
new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
|
|
@@ -878,19 +990,20 @@ const factory = (env) => {
|
|
|
878
990
|
const password = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].getSafeProp(configAuth, 'password') || '';
|
|
879
991
|
auth = {
|
|
880
992
|
username,
|
|
881
|
-
password
|
|
993
|
+
password,
|
|
882
994
|
};
|
|
883
995
|
}
|
|
884
996
|
|
|
997
|
+
let parsedURL;
|
|
885
998
|
if (maybeWithAuthCredentials(url)) {
|
|
886
|
-
|
|
999
|
+
parsedURL = new URL(url, _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin);
|
|
887
1000
|
|
|
888
1001
|
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
889
1002
|
const urlUsername = decodeURIComponentSafe(parsedURL.username);
|
|
890
1003
|
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
891
1004
|
auth = {
|
|
892
1005
|
username: urlUsername,
|
|
893
|
-
password: urlPassword
|
|
1006
|
+
password: urlPassword,
|
|
894
1007
|
};
|
|
895
1008
|
}
|
|
896
1009
|
|
|
@@ -912,8 +1025,8 @@ const factory = (env) => {
|
|
|
912
1025
|
// Enforce maxContentLength for data: URLs up-front so we never materialize
|
|
913
1026
|
// an oversized payload. The HTTP adapter applies the same check (see http.js
|
|
914
1027
|
// "if (protocol === 'data:')" branch).
|
|
915
|
-
if (hasMaxContentLength &&
|
|
916
|
-
const estimated = (0,
|
|
1028
|
+
if (hasMaxContentLength && parsedURL && parsedURL.protocol === 'data:') {
|
|
1029
|
+
const estimated = (0,_helpers_estimateDataURLDecodedBytes_js__WEBPACK_IMPORTED_MODULE_10__["default"])(parsedURL.href);
|
|
917
1030
|
if (estimated > maxContentLength) {
|
|
918
1031
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
|
|
919
1032
|
'maxContentLength size of ' + maxContentLength + ' exceeded',
|
|
@@ -924,6 +1037,38 @@ const factory = (env) => {
|
|
|
924
1037
|
}
|
|
925
1038
|
}
|
|
926
1039
|
|
|
1040
|
+
const formContentType =
|
|
1041
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isSpecCompliantForm(data) && _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__["default"].from(own('headers')).getContentType();
|
|
1042
|
+
let formBoundary;
|
|
1043
|
+
if (
|
|
1044
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isString(formContentType) &&
|
|
1045
|
+
/^multipart\/form-data(?:\s*;|$)/i.test(formContentType.trim())
|
|
1046
|
+
) {
|
|
1047
|
+
const parameters = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__["default"].parseParameters(formContentType);
|
|
1048
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasOwnProp(parameters, 'boundary')) formBoundary = parameters.boundary;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
if (
|
|
1052
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isSpecCompliantForm(data) &&
|
|
1053
|
+
method !== 'get' &&
|
|
1054
|
+
method !== 'head' &&
|
|
1055
|
+
(hasMaxBodyLength ||
|
|
1056
|
+
(onUploadProgress && supportsRequestStream) ||
|
|
1057
|
+
formBoundary !== undefined)
|
|
1058
|
+
) {
|
|
1059
|
+
data = (0,_core_createMultipartBody_js__WEBPACK_IMPORTED_MODULE_5__["default"])(
|
|
1060
|
+
data,
|
|
1061
|
+
Blob,
|
|
1062
|
+
hasMaxBodyLength ? maxBodyLength : Infinity,
|
|
1063
|
+
maxBodyLengthError,
|
|
1064
|
+
formBoundary
|
|
1065
|
+
);
|
|
1066
|
+
// Blob.type lowercases its value, including a case-sensitive boundary.
|
|
1067
|
+
// Retain the caller's header when an explicit boundary was serialized.
|
|
1068
|
+
headers.setContentType(formBoundary === undefined ? data.type : formContentType);
|
|
1069
|
+
requestContentLength = data.size;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
927
1072
|
// Enforce maxBodyLength against known-size bodies before dispatch using
|
|
928
1073
|
// the body's *actual* size — never a caller-declared Content-Length,
|
|
929
1074
|
// which could under-report to slip an oversized body past the check.
|
|
@@ -964,7 +1109,9 @@ const factory = (env) => {
|
|
|
964
1109
|
(onUploadProgress || mustEnforceStreamBody)
|
|
965
1110
|
) {
|
|
966
1111
|
requestContentLength =
|
|
967
|
-
requestContentLength == null
|
|
1112
|
+
requestContentLength == null
|
|
1113
|
+
? await resolveBodyLength(headers, data)
|
|
1114
|
+
: requestContentLength;
|
|
968
1115
|
|
|
969
1116
|
// A declared length of 0 is only trusted to skip the wrap when we are
|
|
970
1117
|
// not enforcing a stream limit (which must not rely on that header).
|
|
@@ -977,16 +1124,19 @@ const factory = (env) => {
|
|
|
977
1124
|
|
|
978
1125
|
let contentTypeHeader;
|
|
979
1126
|
|
|
980
|
-
if (
|
|
1127
|
+
if (
|
|
1128
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFormData(data) &&
|
|
1129
|
+
(contentTypeHeader = _request.headers.get('content-type'))
|
|
1130
|
+
) {
|
|
981
1131
|
headers.setContentType(contentTypeHeader);
|
|
982
1132
|
}
|
|
983
1133
|
|
|
984
1134
|
if (_request.body) {
|
|
985
1135
|
const [onProgress, flush] =
|
|
986
1136
|
(onUploadProgress &&
|
|
987
|
-
(0,
|
|
1137
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_7__.progressEventDecorator)(
|
|
988
1138
|
requestContentLength,
|
|
989
|
-
(0,
|
|
1139
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_7__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_7__.asyncDecorator)(onUploadProgress))
|
|
990
1140
|
)) ||
|
|
991
1141
|
[];
|
|
992
1142
|
|
|
@@ -1038,25 +1188,62 @@ const factory = (env) => {
|
|
|
1038
1188
|
}
|
|
1039
1189
|
|
|
1040
1190
|
// Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
|
|
1041
|
-
headers.set('User-Agent', 'axios/' +
|
|
1191
|
+
headers.set('User-Agent', 'axios/' + _env_data_js__WEBPACK_IMPORTED_MODULE_11__.VERSION, false);
|
|
1192
|
+
|
|
1193
|
+
const safeFetchOptions =
|
|
1194
|
+
fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
1195
|
+
|
|
1196
|
+
if (safeFetchOptions) {
|
|
1197
|
+
// These options are owned by Axios and are already reflected in the
|
|
1198
|
+
// resolved Request passed to fetch.
|
|
1199
|
+
delete safeFetchOptions.body;
|
|
1200
|
+
delete safeFetchOptions.headers;
|
|
1201
|
+
delete safeFetchOptions.method;
|
|
1202
|
+
delete safeFetchOptions.signal;
|
|
1203
|
+
delete safeFetchOptions.duplex;
|
|
1204
|
+
delete safeFetchOptions.credentials;
|
|
1205
|
+
}
|
|
1042
1206
|
|
|
1043
|
-
const resolvedOptions = {
|
|
1044
|
-
...fetchOptions,
|
|
1207
|
+
const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
1045
1208
|
signal: composedSignal,
|
|
1046
1209
|
method: method.toUpperCase(),
|
|
1047
|
-
headers: (0,
|
|
1210
|
+
headers: (0,_helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_12__.toByteStringHeaderObject)(headers.normalize()),
|
|
1048
1211
|
body: data,
|
|
1049
1212
|
duplex: 'half',
|
|
1050
1213
|
credentials: isCredentialsSupported ? withCredentials : undefined,
|
|
1051
|
-
};
|
|
1214
|
+
});
|
|
1215
|
+
|
|
1216
|
+
if (isRequestSupported) {
|
|
1217
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(requestDefaults, (value, key) => {
|
|
1218
|
+
if (resolvedOptions[key] === undefined) {
|
|
1219
|
+
resolvedOptions[key] = value;
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1222
|
+
|
|
1223
|
+
if (resolvedOptions.signal === undefined) {
|
|
1224
|
+
resolvedOptions.signal = null;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
if (resolvedOptions.body === undefined) {
|
|
1228
|
+
resolvedOptions.body = null;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
if (maxRedirects === 0) {
|
|
1233
|
+
resolvedOptions.redirect = 'manual';
|
|
1234
|
+
|
|
1235
|
+
if (safeFetchOptions) {
|
|
1236
|
+
safeFetchOptions.redirect = 'manual';
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1052
1239
|
|
|
1053
1240
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
1054
1241
|
|
|
1055
1242
|
let response = await (isRequestSupported
|
|
1056
|
-
? _fetch(request,
|
|
1243
|
+
? _fetch(request, safeFetchOptions)
|
|
1057
1244
|
: _fetch(url, resolvedOptions));
|
|
1058
1245
|
|
|
1059
|
-
const responseHeaders =
|
|
1246
|
+
const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__["default"].from(response.headers);
|
|
1060
1247
|
|
|
1061
1248
|
// Cheap pre-check: if the server honestly declares a content-length that
|
|
1062
1249
|
// already exceeds the cap, reject before we start streaming.
|
|
@@ -1090,9 +1277,9 @@ const factory = (env) => {
|
|
|
1090
1277
|
|
|
1091
1278
|
const [onProgress, flush] =
|
|
1092
1279
|
(onDownloadProgress &&
|
|
1093
|
-
(0,
|
|
1280
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_7__.progressEventDecorator)(
|
|
1094
1281
|
responseContentLength,
|
|
1095
|
-
(0,
|
|
1282
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_7__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_7__.asyncDecorator)(onDownloadProgress), true)
|
|
1096
1283
|
)) ||
|
|
1097
1284
|
[];
|
|
1098
1285
|
|
|
@@ -1101,12 +1288,12 @@ const factory = (env) => {
|
|
|
1101
1288
|
if (hasMaxContentLength) {
|
|
1102
1289
|
bytesRead = loadedBytes;
|
|
1103
1290
|
if (bytesRead > maxContentLength) {
|
|
1104
|
-
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
|
|
1291
|
+
throw (pendingResponseError = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](
|
|
1105
1292
|
'maxContentLength size of ' + maxContentLength + ' exceeded',
|
|
1106
1293
|
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_RESPONSE,
|
|
1107
1294
|
config,
|
|
1108
1295
|
request
|
|
1109
|
-
);
|
|
1296
|
+
));
|
|
1110
1297
|
}
|
|
1111
1298
|
}
|
|
1112
1299
|
onProgress && onProgress(loadedBytes);
|
|
@@ -1158,9 +1345,9 @@ const factory = (env) => {
|
|
|
1158
1345
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
1159
1346
|
|
|
1160
1347
|
return await new Promise((resolve, reject) => {
|
|
1161
|
-
(0,
|
|
1348
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_9__["default"])(resolve, reject, {
|
|
1162
1349
|
data: responseData,
|
|
1163
|
-
headers:
|
|
1350
|
+
headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__["default"].from(response.headers),
|
|
1164
1351
|
status: response.status,
|
|
1165
1352
|
statusText: response.statusText,
|
|
1166
1353
|
config,
|
|
@@ -1192,7 +1379,7 @@ const factory = (env) => {
|
|
|
1192
1379
|
}
|
|
1193
1380
|
|
|
1194
1381
|
// Surface a maxBodyLength violation we raised while the request body was
|
|
1195
|
-
// being streamed.
|
|
1382
|
+
// being streamed. Keeping the original error (rather than reading
|
|
1196
1383
|
// `err.cause.isAxiosError`) keeps the error deterministic across runtimes
|
|
1197
1384
|
// and avoids both prototype-pollution reads and mis-attributing a foreign
|
|
1198
1385
|
// AxiosError that merely happened to land in `err.cause`.
|
|
@@ -1201,6 +1388,10 @@ const factory = (env) => {
|
|
|
1201
1388
|
throw pendingBodyError;
|
|
1202
1389
|
}
|
|
1203
1390
|
|
|
1391
|
+
if (pendingResponseError) {
|
|
1392
|
+
throw pendingResponseError;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1204
1395
|
// Re-throw AxiosErrors we raised synchronously (data: URL / content-length
|
|
1205
1396
|
// pre-checks, response size enforcement) without re-wrapping them.
|
|
1206
1397
|
if (err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]) {
|
|
@@ -1236,9 +1427,15 @@ const factory = (env) => {
|
|
|
1236
1427
|
const seedCache = new Map();
|
|
1237
1428
|
|
|
1238
1429
|
const getFetch = (config) => {
|
|
1239
|
-
|
|
1240
|
-
const
|
|
1241
|
-
|
|
1430
|
+
const env = Object.create(null);
|
|
1431
|
+
const configuredEnv = config && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasOwnProp(config, 'env') && config.env;
|
|
1432
|
+
['fetch', 'Request', 'Response', 'Blob'].forEach((key) => {
|
|
1433
|
+
if (configuredEnv && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasOwnProp(configuredEnv, key)) {
|
|
1434
|
+
env[key] = configuredEnv[key];
|
|
1435
|
+
}
|
|
1436
|
+
});
|
|
1437
|
+
const { fetch, Request, Response, Blob } = env;
|
|
1438
|
+
const seeds = [Request, Response, fetch, Blob];
|
|
1242
1439
|
|
|
1243
1440
|
let len = seeds.length,
|
|
1244
1441
|
i = len,
|
|
@@ -1265,9 +1462,9 @@ const adapter = getFetch();
|
|
|
1265
1462
|
|
|
1266
1463
|
/***/ },
|
|
1267
1464
|
|
|
1268
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
1465
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js"
|
|
1269
1466
|
/*!***************************************************************************************************************************************!*\
|
|
1270
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
1467
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/xhr.js ***!
|
|
1271
1468
|
\***************************************************************************************************************************************/
|
|
1272
1469
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1273
1470
|
|
|
@@ -1275,17 +1472,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1275
1472
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1276
1473
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1277
1474
|
/* harmony export */ });
|
|
1278
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
1279
|
-
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/settle.js */ "./node_modules/.pnpm/axios@1.
|
|
1280
|
-
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaults/transitional.js */ "./node_modules/.pnpm/axios@1.
|
|
1281
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
1282
|
-
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/.pnpm/axios@1.
|
|
1283
|
-
/* harmony import */ var
|
|
1284
|
-
/* harmony import */ var
|
|
1285
|
-
/* harmony import */ var
|
|
1286
|
-
/* harmony import */ var
|
|
1287
|
-
/* harmony import */ var
|
|
1288
|
-
/* harmony import */ var
|
|
1475
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
1476
|
+
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/settle.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js");
|
|
1477
|
+
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaults/transitional.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js");
|
|
1478
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
1479
|
+
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js");
|
|
1480
|
+
/* harmony import */ var _helpers_normalizeURLForProtocolCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/normalizeURLForProtocolCheck.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js");
|
|
1481
|
+
/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js");
|
|
1482
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js");
|
|
1483
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
1484
|
+
/* harmony import */ var _helpers_cookies_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers/cookies.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js");
|
|
1485
|
+
/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js");
|
|
1486
|
+
/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js");
|
|
1487
|
+
/* harmony import */ var _helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers/sanitizeHeaderValue.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js");
|
|
1488
|
+
|
|
1489
|
+
|
|
1289
1490
|
|
|
1290
1491
|
|
|
1291
1492
|
|
|
@@ -1303,17 +1504,60 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
1303
1504
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported &&
|
|
1304
1505
|
function (config) {
|
|
1305
1506
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
1306
|
-
|
|
1507
|
+
let useAsyncXsrf;
|
|
1508
|
+
try {
|
|
1509
|
+
const store =
|
|
1510
|
+
_platform_index_js__WEBPACK_IMPORTED_MODULE_7__["default"].hasStandardBrowserEnv && typeof window !== 'undefined' && window.cookieStore;
|
|
1511
|
+
useAsyncXsrf = store && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(store.get);
|
|
1512
|
+
} catch (e) {
|
|
1513
|
+
// A restricted Cookie Store getter must retain the synchronous fallback.
|
|
1514
|
+
}
|
|
1515
|
+
let xsrfCookieName;
|
|
1516
|
+
const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_11__["default"])(
|
|
1517
|
+
config,
|
|
1518
|
+
useAsyncXsrf
|
|
1519
|
+
? (name) => {
|
|
1520
|
+
xsrfCookieName = name;
|
|
1521
|
+
return null;
|
|
1522
|
+
}
|
|
1523
|
+
: undefined
|
|
1524
|
+
);
|
|
1307
1525
|
let requestData = _config.data;
|
|
1308
|
-
const requestHeaders =
|
|
1526
|
+
const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"].from(_config.headers).normalize();
|
|
1309
1527
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
1310
1528
|
let onCanceled;
|
|
1529
|
+
let timeoutId;
|
|
1311
1530
|
let uploadThrottled, downloadThrottled;
|
|
1312
|
-
let flushUpload, flushDownload;
|
|
1531
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
1313
1532
|
|
|
1314
1533
|
function done() {
|
|
1315
|
-
|
|
1316
|
-
|
|
1534
|
+
clearTimeout(timeoutId);
|
|
1535
|
+
// A final progress callback must not prevent the remaining cleanup.
|
|
1536
|
+
// Report errors asynchronously, as onloadend and the throttle timer do.
|
|
1537
|
+
try {
|
|
1538
|
+
flushUpload && flushUpload(); // flush events
|
|
1539
|
+
} catch (err) {
|
|
1540
|
+
setTimeout(() => {
|
|
1541
|
+
throw err;
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1544
|
+
try {
|
|
1545
|
+
flushDownload && flushDownload(); // flush events
|
|
1546
|
+
} catch (err) {
|
|
1547
|
+
setTimeout(() => {
|
|
1548
|
+
throw err;
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
// A flush can synchronously cancel the request and reenter done().
|
|
1553
|
+
// In that case the inner call has already detached these listeners.
|
|
1554
|
+
if (request) {
|
|
1555
|
+
downloadThrottled && request.removeEventListener('progress', downloadThrottled);
|
|
1556
|
+
if (request.upload) {
|
|
1557
|
+
uploadThrottled && request.upload.removeEventListener('progress', uploadThrottled);
|
|
1558
|
+
flushUpload && request.upload.removeEventListener('loadend', flushUpload);
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1317
1561
|
|
|
1318
1562
|
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
1319
1563
|
|
|
@@ -1327,12 +1571,57 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
1327
1571
|
// Set the request timeout in MS
|
|
1328
1572
|
request.timeout = _config.timeout;
|
|
1329
1573
|
|
|
1330
|
-
function onloadend() {
|
|
1574
|
+
function onloadend(event) {
|
|
1575
|
+
if (!request) {
|
|
1576
|
+
return;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
// Status 0 means no response was received, which onerror and onabort normally
|
|
1580
|
+
// reject before this runs. Firefox 152 fires only readystatechange and loadend for
|
|
1581
|
+
// navigation-canceled requests (https://bugzilla.mozilla.org/show_bug.cgi?id=1505389),
|
|
1582
|
+
// leaving settle() to resolve them as an empty success. ECONNABORTED is the error
|
|
1583
|
+
// onabort raised on Firefox 151. Reads over file:, which some environments report as
|
|
1584
|
+
// status 0 on success, are excluded by the request URL's scheme after browser-style
|
|
1585
|
+
// preprocessing, by the page origin's scheme for relative URLs (which inherit it), or
|
|
1586
|
+
// by responseURL where implemented.
|
|
1587
|
+
if (
|
|
1588
|
+
request.status === 0 &&
|
|
1589
|
+
((0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_6__["default"])((0,_helpers_normalizeURLForProtocolCheck_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_config.url)) ||
|
|
1590
|
+
(0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_6__["default"])(_platform_index_js__WEBPACK_IMPORTED_MODULE_7__["default"].origin)) !== 'file' &&
|
|
1591
|
+
!(request.responseURL && request.responseURL.startsWith('file:'))
|
|
1592
|
+
) {
|
|
1593
|
+
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Request aborted', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ECONNABORTED, config, request));
|
|
1594
|
+
done();
|
|
1595
|
+
|
|
1596
|
+
// Clean up request
|
|
1597
|
+
request = null;
|
|
1598
|
+
return;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
// When loadend is still dispatching, flushing with it gives progress
|
|
1602
|
+
// listeners a final delivery whose event has a live target. The legacy
|
|
1603
|
+
// ready-state fallback has no event, so replay its pending progress.
|
|
1604
|
+
// A throwing listener must not block settlement; rethrow asynchronously,
|
|
1605
|
+
// matching how listener errors surface on the throttle timer path.
|
|
1606
|
+
try {
|
|
1607
|
+
if (event) {
|
|
1608
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
1609
|
+
} else {
|
|
1610
|
+
flushDownload && flushDownload();
|
|
1611
|
+
}
|
|
1612
|
+
} catch (err) {
|
|
1613
|
+
setTimeout(() => {
|
|
1614
|
+
throw err;
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
// A final progress callback can cancel the request synchronously.
|
|
1331
1619
|
if (!request) {
|
|
1332
1620
|
return;
|
|
1333
1621
|
}
|
|
1622
|
+
|
|
1334
1623
|
// Prepare the response
|
|
1335
|
-
const responseHeaders =
|
|
1624
|
+
const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"].from(
|
|
1336
1625
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
1337
1626
|
);
|
|
1338
1627
|
const responseData =
|
|
@@ -1419,6 +1708,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
1419
1708
|
|
|
1420
1709
|
// Handle timeout
|
|
1421
1710
|
request.ontimeout = function handleTimeout() {
|
|
1711
|
+
if (!request) return;
|
|
1422
1712
|
let timeoutErrorMessage = _config.timeout
|
|
1423
1713
|
? 'timeout of ' + _config.timeout + 'ms exceeded'
|
|
1424
1714
|
: 'timeout exceeded';
|
|
@@ -1443,13 +1733,6 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
1443
1733
|
// Remove Content-Type if data is undefined
|
|
1444
1734
|
requestData === undefined && requestHeaders.setContentType(null);
|
|
1445
1735
|
|
|
1446
|
-
// Add headers to the request
|
|
1447
|
-
if ('setRequestHeader' in request) {
|
|
1448
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach((0,_helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_10__.toByteStringHeaderObject)(requestHeaders), function setRequestHeader(val, key) {
|
|
1449
|
-
request.setRequestHeader(key, val);
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
1736
|
// Add withCredentials to request if needed
|
|
1454
1737
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(_config.withCredentials)) {
|
|
1455
1738
|
request.withCredentials = !!_config.withCredentials;
|
|
@@ -1462,13 +1745,16 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
1462
1745
|
|
|
1463
1746
|
// Handle progress if needed
|
|
1464
1747
|
if (onDownloadProgress) {
|
|
1465
|
-
[downloadThrottled, flushDownload] = (0,
|
|
1748
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_10__.progressEventReducer)(
|
|
1749
|
+
onDownloadProgress,
|
|
1750
|
+
true
|
|
1751
|
+
);
|
|
1466
1752
|
request.addEventListener('progress', downloadThrottled);
|
|
1467
1753
|
}
|
|
1468
1754
|
|
|
1469
1755
|
// Not all browsers support upload events
|
|
1470
1756
|
if (onUploadProgress && request.upload) {
|
|
1471
|
-
[uploadThrottled, flushUpload] = (0,
|
|
1757
|
+
[uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_10__.progressEventReducer)(onUploadProgress);
|
|
1472
1758
|
|
|
1473
1759
|
request.upload.addEventListener('progress', uploadThrottled);
|
|
1474
1760
|
|
|
@@ -1483,12 +1769,14 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
1483
1769
|
return;
|
|
1484
1770
|
}
|
|
1485
1771
|
reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_4__["default"](null, config, request) : cancel);
|
|
1486
|
-
request
|
|
1772
|
+
const xhr = request;
|
|
1487
1773
|
done();
|
|
1488
1774
|
request = null;
|
|
1775
|
+
xhr.abort();
|
|
1489
1776
|
};
|
|
1490
1777
|
|
|
1491
1778
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
1779
|
+
if (!request) return;
|
|
1492
1780
|
if (_config.signal) {
|
|
1493
1781
|
_config.signal.aborted
|
|
1494
1782
|
? onCanceled()
|
|
@@ -1496,9 +1784,11 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
1496
1784
|
}
|
|
1497
1785
|
}
|
|
1498
1786
|
|
|
1499
|
-
|
|
1787
|
+
if (!request) return;
|
|
1500
1788
|
|
|
1501
|
-
|
|
1789
|
+
const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_6__["default"])(_config.url);
|
|
1790
|
+
|
|
1791
|
+
if (protocol && !_platform_index_js__WEBPACK_IMPORTED_MODULE_7__["default"].protocols.includes(protocol)) {
|
|
1502
1792
|
reject(
|
|
1503
1793
|
new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](
|
|
1504
1794
|
'Unsupported protocol ' + protocol + ':',
|
|
@@ -1510,17 +1800,82 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
1510
1800
|
return;
|
|
1511
1801
|
}
|
|
1512
1802
|
|
|
1513
|
-
|
|
1514
|
-
|
|
1803
|
+
const sendRequest = () => {
|
|
1804
|
+
if (!request) return;
|
|
1805
|
+
// Apply headers after an asynchronous XSRF read so existing headers are
|
|
1806
|
+
// replaced through AxiosHeaders rather than appended by the native XHR.
|
|
1807
|
+
if ('setRequestHeader' in request) {
|
|
1808
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(
|
|
1809
|
+
(0,_helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_12__.toByteStringHeaderObject)(requestHeaders),
|
|
1810
|
+
function setRequestHeader(val, key) {
|
|
1811
|
+
request.setRequestHeader(key, val);
|
|
1812
|
+
}
|
|
1813
|
+
);
|
|
1814
|
+
}
|
|
1815
|
+
request.send(requestData || null);
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
if (xsrfCookieName) {
|
|
1819
|
+
// Native XHR timeout starts at send(). Cover cookie preparation and the
|
|
1820
|
+
// subsequent request with the same budget and existing timeout handler.
|
|
1821
|
+
const now =
|
|
1822
|
+
typeof performance !== 'undefined' && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(performance.now)
|
|
1823
|
+
? () => performance.now()
|
|
1824
|
+
: Date.now;
|
|
1825
|
+
const deadline = request.timeout > 0 ? now() + Number(request.timeout) : undefined;
|
|
1826
|
+
const abortOnTimeout = () => {
|
|
1827
|
+
if (!request) return;
|
|
1828
|
+
const xhr = request;
|
|
1829
|
+
xhr.ontimeout();
|
|
1830
|
+
xhr.abort();
|
|
1831
|
+
};
|
|
1832
|
+
if (deadline !== undefined) {
|
|
1833
|
+
const scheduleTimeout = () => {
|
|
1834
|
+
const remaining = deadline - now();
|
|
1835
|
+
if (remaining > 0) {
|
|
1836
|
+
// Browser timers overflow above the signed 32-bit delay limit.
|
|
1837
|
+
timeoutId = setTimeout(scheduleTimeout, Math.min(remaining, 0x7fffffff));
|
|
1838
|
+
} else {
|
|
1839
|
+
abortOnTimeout();
|
|
1840
|
+
}
|
|
1841
|
+
};
|
|
1842
|
+
scheduleTimeout();
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
_helpers_cookies_js__WEBPACK_IMPORTED_MODULE_9__["default"]
|
|
1846
|
+
.readAsync(xsrfCookieName)
|
|
1847
|
+
.then((value) => {
|
|
1848
|
+
if (!request) return;
|
|
1849
|
+
// Promise callbacks may run before an overdue timer after a busy task.
|
|
1850
|
+
if (deadline !== undefined && now() >= deadline) {
|
|
1851
|
+
abortOnTimeout();
|
|
1852
|
+
return;
|
|
1853
|
+
}
|
|
1854
|
+
if (value) {
|
|
1855
|
+
const headerName =
|
|
1856
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(_config, 'xsrfHeaderName') && _config.xsrfHeaderName;
|
|
1857
|
+
requestHeaders.set(headerName, value);
|
|
1858
|
+
}
|
|
1859
|
+
sendRequest();
|
|
1860
|
+
})
|
|
1861
|
+
.catch((error) => {
|
|
1862
|
+
if (!request) return;
|
|
1863
|
+
reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].from(error, null, config, request));
|
|
1864
|
+
done();
|
|
1865
|
+
request = null;
|
|
1866
|
+
});
|
|
1867
|
+
} else {
|
|
1868
|
+
sendRequest();
|
|
1869
|
+
}
|
|
1515
1870
|
});
|
|
1516
1871
|
});
|
|
1517
1872
|
|
|
1518
1873
|
|
|
1519
1874
|
/***/ },
|
|
1520
1875
|
|
|
1521
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
1876
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js"
|
|
1522
1877
|
/*!********************************************************************************************************************************!*\
|
|
1523
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
1878
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/axios.js ***!
|
|
1524
1879
|
\********************************************************************************************************************************/
|
|
1525
1880
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1526
1881
|
|
|
@@ -1528,23 +1883,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1528
1883
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1529
1884
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1530
1885
|
/* harmony export */ });
|
|
1531
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "./node_modules/.pnpm/axios@1.
|
|
1532
|
-
/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/.pnpm/axios@1.
|
|
1533
|
-
/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/Axios.js */ "./node_modules/.pnpm/axios@1.
|
|
1534
|
-
/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "./node_modules/.pnpm/axios@1.
|
|
1535
|
-
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "./node_modules/.pnpm/axios@1.
|
|
1536
|
-
/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ "./node_modules/.pnpm/axios@1.
|
|
1537
|
-
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CanceledError.js */ "./node_modules/.pnpm/axios@1.
|
|
1538
|
-
/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/CancelToken.js */ "./node_modules/.pnpm/axios@1.
|
|
1539
|
-
/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./cancel/isCancel.js */ "./node_modules/.pnpm/axios@1.
|
|
1540
|
-
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./env/data.js */ "./node_modules/.pnpm/axios@1.
|
|
1541
|
-
/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./helpers/toFormData.js */ "./node_modules/.pnpm/axios@1.
|
|
1542
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
1543
|
-
/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/spread.js */ "./node_modules/.pnpm/axios@1.
|
|
1544
|
-
/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
1545
|
-
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.
|
|
1546
|
-
/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ "./node_modules/.pnpm/axios@1.
|
|
1547
|
-
/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ "./node_modules/.pnpm/axios@1.
|
|
1886
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
1887
|
+
/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js");
|
|
1888
|
+
/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/Axios.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js");
|
|
1889
|
+
/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js");
|
|
1890
|
+
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js");
|
|
1891
|
+
/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js");
|
|
1892
|
+
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CanceledError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js");
|
|
1893
|
+
/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/CancelToken.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js");
|
|
1894
|
+
/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./cancel/isCancel.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js");
|
|
1895
|
+
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./env/data.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js");
|
|
1896
|
+
/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./helpers/toFormData.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js");
|
|
1897
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
1898
|
+
/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/spread.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js");
|
|
1899
|
+
/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js");
|
|
1900
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
1901
|
+
/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js");
|
|
1902
|
+
/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js");
|
|
1548
1903
|
|
|
1549
1904
|
|
|
1550
1905
|
|
|
@@ -1638,9 +1993,9 @@ axios.default = axios;
|
|
|
1638
1993
|
|
|
1639
1994
|
/***/ },
|
|
1640
1995
|
|
|
1641
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
1996
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js"
|
|
1642
1997
|
/*!*********************************************************************************************************************************************!*\
|
|
1643
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
1998
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CancelToken.js ***!
|
|
1644
1999
|
\*********************************************************************************************************************************************/
|
|
1645
2000
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1646
2001
|
|
|
@@ -1648,7 +2003,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1648
2003
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1649
2004
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1650
2005
|
/* harmony export */ });
|
|
1651
|
-
/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ "./node_modules/.pnpm/axios@1.
|
|
2006
|
+
/* harmony import */ var _CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CanceledError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js");
|
|
1652
2007
|
|
|
1653
2008
|
|
|
1654
2009
|
|
|
@@ -1788,9 +2143,9 @@ class CancelToken {
|
|
|
1788
2143
|
|
|
1789
2144
|
/***/ },
|
|
1790
2145
|
|
|
1791
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
2146
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js"
|
|
1792
2147
|
/*!***********************************************************************************************************************************************!*\
|
|
1793
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
2148
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js ***!
|
|
1794
2149
|
\***********************************************************************************************************************************************/
|
|
1795
2150
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1796
2151
|
|
|
@@ -1798,7 +2153,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1798
2153
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1799
2154
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1800
2155
|
/* harmony export */ });
|
|
1801
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
2156
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
1802
2157
|
|
|
1803
2158
|
|
|
1804
2159
|
|
|
@@ -1825,9 +2180,9 @@ class CanceledError extends _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
1825
2180
|
|
|
1826
2181
|
/***/ },
|
|
1827
2182
|
|
|
1828
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
2183
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js"
|
|
1829
2184
|
/*!******************************************************************************************************************************************!*\
|
|
1830
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
2185
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js ***!
|
|
1831
2186
|
\******************************************************************************************************************************************/
|
|
1832
2187
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1833
2188
|
|
|
@@ -1844,9 +2199,9 @@ function isCancel(value) {
|
|
|
1844
2199
|
|
|
1845
2200
|
/***/ },
|
|
1846
2201
|
|
|
1847
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
2202
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js"
|
|
1848
2203
|
/*!*************************************************************************************************************************************!*\
|
|
1849
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
2204
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/Axios.js ***!
|
|
1850
2205
|
\*************************************************************************************************************************************/
|
|
1851
2206
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1852
2207
|
|
|
@@ -1854,15 +2209,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1854
2209
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1855
2210
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1856
2211
|
/* harmony export */ });
|
|
1857
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
1858
|
-
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/buildURL.js */ "./node_modules/.pnpm/axios@1.
|
|
1859
|
-
/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InterceptorManager.js */ "./node_modules/.pnpm/axios@1.
|
|
1860
|
-
/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dispatchRequest.js */ "./node_modules/.pnpm/axios@1.
|
|
1861
|
-
/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mergeConfig.js */ "./node_modules/.pnpm/axios@1.
|
|
1862
|
-
/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./buildFullPath.js */ "./node_modules/.pnpm/axios@1.
|
|
1863
|
-
/* harmony import */ var
|
|
1864
|
-
/* harmony import */ var
|
|
1865
|
-
/* harmony import */ var
|
|
2212
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
2213
|
+
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/buildURL.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js");
|
|
2214
|
+
/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InterceptorManager.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js");
|
|
2215
|
+
/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dispatchRequest.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js");
|
|
2216
|
+
/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mergeConfig.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js");
|
|
2217
|
+
/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./buildFullPath.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js");
|
|
2218
|
+
/* harmony import */ var _methodList_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./methodList.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js");
|
|
2219
|
+
/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/validator.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js");
|
|
2220
|
+
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
2221
|
+
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../defaults/transitional.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js");
|
|
2222
|
+
/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
|
|
1866
2226
|
|
|
1867
2227
|
|
|
1868
2228
|
|
|
@@ -1874,8 +2234,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1874
2234
|
|
|
1875
2235
|
|
|
1876
2236
|
|
|
2237
|
+
const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_7__["default"].validators;
|
|
1877
2238
|
|
|
1878
|
-
|
|
2239
|
+
// Recognize header maps without consuming objects intended as literal values.
|
|
2240
|
+
// AxiosHeaders from other builds share a brand and header-container interface,
|
|
2241
|
+
// but not constructor identity. A tag and toJSON alone can describe a literal.
|
|
2242
|
+
const isHeadersBucket = (value) => {
|
|
2243
|
+
if (value == null || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(value) || value instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"]) {
|
|
2244
|
+
return true;
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
try {
|
|
2248
|
+
return (
|
|
2249
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(value) &&
|
|
2250
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].getSafeProp(value, Symbol.toStringTag) === 'AxiosHeaders' &&
|
|
2251
|
+
[
|
|
2252
|
+
'toJSON',
|
|
2253
|
+
'set',
|
|
2254
|
+
'get',
|
|
2255
|
+
'has',
|
|
2256
|
+
'delete',
|
|
2257
|
+
'clear',
|
|
2258
|
+
'normalize',
|
|
2259
|
+
'concat',
|
|
2260
|
+
'toString',
|
|
2261
|
+
Symbol.iterator,
|
|
2262
|
+
].every((method) => _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].getSafeProp(value, method)))
|
|
2263
|
+
);
|
|
2264
|
+
} catch (e) {
|
|
2265
|
+
// A failed optional brand probe must not prevent literal header serialization.
|
|
2266
|
+
return false;
|
|
2267
|
+
}
|
|
2268
|
+
};
|
|
1879
2269
|
|
|
1880
2270
|
/**
|
|
1881
2271
|
* Create a new instance of Axios
|
|
@@ -1906,37 +2296,47 @@ class Axios {
|
|
|
1906
2296
|
return await this._request(configOrUrl, config);
|
|
1907
2297
|
} catch (err) {
|
|
1908
2298
|
if (err instanceof Error) {
|
|
1909
|
-
|
|
2299
|
+
try {
|
|
2300
|
+
let dummy = {};
|
|
1910
2301
|
|
|
1911
|
-
|
|
2302
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
1912
2303
|
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
if (!dummy.stack) {
|
|
1916
|
-
return '';
|
|
1917
|
-
}
|
|
2304
|
+
const dummyStack = dummy.stack;
|
|
2305
|
+
let stack = '';
|
|
1918
2306
|
|
|
1919
|
-
|
|
2307
|
+
// slice off the Error: ... line
|
|
2308
|
+
if (typeof dummyStack === 'string') {
|
|
2309
|
+
const firstNewlineIndex = dummyStack.indexOf('\n');
|
|
2310
|
+
|
|
2311
|
+
stack = firstNewlineIndex === -1 ? '' : dummyStack.slice(firstNewlineIndex + 1);
|
|
2312
|
+
}
|
|
1920
2313
|
|
|
1921
|
-
return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
|
|
1922
|
-
})();
|
|
1923
|
-
try {
|
|
1924
2314
|
if (!err.stack) {
|
|
1925
2315
|
err.stack = stack;
|
|
1926
|
-
// match without the 2 top stack lines
|
|
1927
2316
|
} else if (stack) {
|
|
2317
|
+
// Match a common suffix after the 2 top frames when available,
|
|
2318
|
+
// otherwise compare the full reconstructed stack.
|
|
1928
2319
|
const firstNewlineIndex = stack.indexOf('\n');
|
|
1929
2320
|
const secondNewlineIndex =
|
|
1930
2321
|
firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', firstNewlineIndex + 1);
|
|
1931
|
-
const
|
|
1932
|
-
secondNewlineIndex === -1 ?
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
2322
|
+
const duplicateCheckSuffix =
|
|
2323
|
+
secondNewlineIndex === -1 ? stack : stack.slice(secondNewlineIndex + 1);
|
|
2324
|
+
|
|
2325
|
+
// `AxiosError.from()` may have already inlined the wrapped error's
|
|
2326
|
+
// stack under a `Caused by:` marker. Keep the reconstructed caller
|
|
2327
|
+
// frames ahead of that marker so stack-only reporters do not read
|
|
2328
|
+
// them as part of the low-level cause.
|
|
2329
|
+
const currentStack = String(err.stack);
|
|
2330
|
+
const causeIndex = (0,_AxiosError_js__WEBPACK_IMPORTED_MODULE_10__.getCauseStackIndex)(err, currentStack);
|
|
2331
|
+
const stackHead = causeIndex === -1 ? currentStack : currentStack.slice(0, causeIndex);
|
|
2332
|
+
const causeSection = causeIndex === -1 ? '' : currentStack.slice(causeIndex);
|
|
2333
|
+
|
|
2334
|
+
if (!stackHead.endsWith(duplicateCheckSuffix)) {
|
|
2335
|
+
err.stack = stackHead + '\n' + stack + causeSection;
|
|
1936
2336
|
}
|
|
1937
2337
|
}
|
|
1938
2338
|
} catch (e) {
|
|
1939
|
-
//
|
|
2339
|
+
// Ignore failures from custom stack hooks or un-writable stack properties.
|
|
1940
2340
|
}
|
|
1941
2341
|
}
|
|
1942
2342
|
|
|
@@ -1959,7 +2359,7 @@ class Axios {
|
|
|
1959
2359
|
const { transitional, paramsSerializer, headers } = config;
|
|
1960
2360
|
|
|
1961
2361
|
if (transitional !== undefined) {
|
|
1962
|
-
|
|
2362
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_7__["default"].assertOptions(
|
|
1963
2363
|
transitional,
|
|
1964
2364
|
{
|
|
1965
2365
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
@@ -1968,6 +2368,7 @@ class Axios {
|
|
|
1968
2368
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
1969
2369
|
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
1970
2370
|
validateStatusUndefinedResolves: validators.transitional(validators.boolean),
|
|
2371
|
+
encodeBasicAuthUsername: validators.transitional(validators.boolean),
|
|
1971
2372
|
},
|
|
1972
2373
|
false
|
|
1973
2374
|
);
|
|
@@ -1979,7 +2380,7 @@ class Axios {
|
|
|
1979
2380
|
serialize: paramsSerializer,
|
|
1980
2381
|
};
|
|
1981
2382
|
} else {
|
|
1982
|
-
|
|
2383
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_7__["default"].assertOptions(
|
|
1983
2384
|
paramsSerializer,
|
|
1984
2385
|
{
|
|
1985
2386
|
encode: validators.function,
|
|
@@ -1993,13 +2394,16 @@ class Axios {
|
|
|
1993
2394
|
// Set config.allowAbsoluteUrls
|
|
1994
2395
|
if (config.allowAbsoluteUrls !== undefined) {
|
|
1995
2396
|
// do nothing
|
|
1996
|
-
} else if (
|
|
2397
|
+
} else if (
|
|
2398
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(this.defaults, 'allowAbsoluteUrls') &&
|
|
2399
|
+
this.defaults.allowAbsoluteUrls !== undefined
|
|
2400
|
+
) {
|
|
1997
2401
|
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
1998
2402
|
} else {
|
|
1999
2403
|
config.allowAbsoluteUrls = true;
|
|
2000
2404
|
}
|
|
2001
2405
|
|
|
2002
|
-
|
|
2406
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_7__["default"].assertOptions(
|
|
2003
2407
|
config,
|
|
2004
2408
|
{
|
|
2005
2409
|
baseUrl: validators.spelling('baseURL'),
|
|
@@ -2009,17 +2413,30 @@ class Axios {
|
|
|
2009
2413
|
);
|
|
2010
2414
|
|
|
2011
2415
|
// Set config.method
|
|
2012
|
-
config.method = (
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2416
|
+
config.method = (
|
|
2417
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].getSafeProp(config, 'method') ||
|
|
2418
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].getSafeProp(this.defaults, 'method') ||
|
|
2419
|
+
'get'
|
|
2420
|
+
).toLowerCase();
|
|
2421
|
+
|
|
2422
|
+
// Flatten header defaults without consuming literal method-named headers.
|
|
2423
|
+
const commonHeaders = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].getSafeProp(headers, 'common');
|
|
2424
|
+
const methodHeaders = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].getSafeProp(headers, config.method);
|
|
2425
|
+
const contextHeaders =
|
|
2426
|
+
headers &&
|
|
2427
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge(
|
|
2428
|
+
isHeadersBucket(commonHeaders) ? commonHeaders : undefined,
|
|
2429
|
+
isHeadersBucket(methodHeaders) ? methodHeaders : undefined
|
|
2430
|
+
);
|
|
2016
2431
|
|
|
2017
2432
|
headers &&
|
|
2018
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['
|
|
2019
|
-
|
|
2433
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(_methodList_js__WEBPACK_IMPORTED_MODULE_6__["default"].concat('common'), (method) => {
|
|
2434
|
+
if (isHeadersBucket(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].getSafeProp(headers, method))) {
|
|
2435
|
+
delete headers[method];
|
|
2436
|
+
}
|
|
2020
2437
|
});
|
|
2021
2438
|
|
|
2022
|
-
config.headers =
|
|
2439
|
+
config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"].concat(contextHeaders, headers);
|
|
2023
2440
|
|
|
2024
2441
|
// filter out skipped interceptors
|
|
2025
2442
|
const requestInterceptorChain = [];
|
|
@@ -2031,7 +2448,7 @@ class Axios {
|
|
|
2031
2448
|
|
|
2032
2449
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
2033
2450
|
|
|
2034
|
-
const transitional = config.transitional ||
|
|
2451
|
+
const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
2035
2452
|
const legacyInterceptorReqResOrdering =
|
|
2036
2453
|
transitional && transitional.legacyInterceptorReqResOrdering;
|
|
2037
2454
|
|
|
@@ -2125,7 +2542,7 @@ class Axios {
|
|
|
2125
2542
|
// Provide aliases for supported request methods
|
|
2126
2543
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
2127
2544
|
/*eslint func-names:0*/
|
|
2128
|
-
Axios.prototype[method] = function (url, config) {
|
|
2545
|
+
Axios.prototype[method] = async function (url, config) {
|
|
2129
2546
|
return this.request(
|
|
2130
2547
|
(0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
|
|
2131
2548
|
method,
|
|
@@ -2138,7 +2555,7 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'hea
|
|
|
2138
2555
|
|
|
2139
2556
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch', 'query'], function forEachMethodWithData(method) {
|
|
2140
2557
|
function generateHTTPMethod(isForm) {
|
|
2141
|
-
return function httpMethod(url, data, config) {
|
|
2558
|
+
return async function httpMethod(url, data, config) {
|
|
2142
2559
|
return this.request(
|
|
2143
2560
|
(0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
|
|
2144
2561
|
method,
|
|
@@ -2168,19 +2585,21 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch
|
|
|
2168
2585
|
|
|
2169
2586
|
/***/ },
|
|
2170
2587
|
|
|
2171
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
2588
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js"
|
|
2172
2589
|
/*!******************************************************************************************************************************************!*\
|
|
2173
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
2590
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js ***!
|
|
2174
2591
|
\******************************************************************************************************************************************/
|
|
2175
2592
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2176
2593
|
|
|
2177
2594
|
__webpack_require__.r(__webpack_exports__);
|
|
2178
2595
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2596
|
+
/* harmony export */ CAUSED_BY_SEPARATOR: () => (/* binding */ CAUSED_BY_SEPARATOR),
|
|
2179
2597
|
/* harmony export */ REDACTED: () => (/* binding */ REDACTED),
|
|
2180
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2598
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
2599
|
+
/* harmony export */ getCauseStackIndex: () => (/* binding */ getCauseStackIndex)
|
|
2181
2600
|
/* harmony export */ });
|
|
2182
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
2183
|
-
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.
|
|
2601
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
2602
|
+
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
2184
2603
|
|
|
2185
2604
|
|
|
2186
2605
|
|
|
@@ -2278,6 +2697,61 @@ function aggregateErrorMessage(error) {
|
|
|
2278
2697
|
return message || error.name || 'AggregateError';
|
|
2279
2698
|
}
|
|
2280
2699
|
|
|
2700
|
+
// Shared with `Axios.prototype.request`, which splices the reconstructed
|
|
2701
|
+
// caller frames in ahead of this marker.
|
|
2702
|
+
const CAUSED_BY_SEPARATOR = '\nCaused by: ';
|
|
2703
|
+
const $causeStack = Symbol('causeStack');
|
|
2704
|
+
|
|
2705
|
+
// Match the section we appended, not marker-like text in an error message or
|
|
2706
|
+
// a replacement stack supplied by the caller. Do not re-read the cause's stack.
|
|
2707
|
+
function getCauseStackIndex(error, stack) {
|
|
2708
|
+
const causeStack = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(error, $causeStack) && error[$causeStack];
|
|
2709
|
+
|
|
2710
|
+
return causeStack && stack.endsWith(causeStack) ? stack.length - causeStack.length : -1;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* Append the stack of a wrapped error to `target.stack`.
|
|
2715
|
+
*
|
|
2716
|
+
* `cause` already exposes the original error for tooling that walks the standard
|
|
2717
|
+
* cause chain, but many error reporters read `stack` and nothing else. Inlining
|
|
2718
|
+
* the wrapped stack there means those reporters surface the underlying failure
|
|
2719
|
+
* instead of the axios frames that normalized it (see #6670).
|
|
2720
|
+
*
|
|
2721
|
+
* Every read is defensive: a custom `Error.prepareStackTrace` hook, a runtime
|
|
2722
|
+
* without stack support, or a replaced `stack` property can leave the value
|
|
2723
|
+
* missing, non-string, or read-only, and normalizing an error must not throw
|
|
2724
|
+
* because of that.
|
|
2725
|
+
*
|
|
2726
|
+
* @param {Error} target The AxiosError being built.
|
|
2727
|
+
* @param {Error} source The error being wrapped.
|
|
2728
|
+
*
|
|
2729
|
+
* @returns {void}
|
|
2730
|
+
*/
|
|
2731
|
+
function appendCauseStack(target, source) {
|
|
2732
|
+
try {
|
|
2733
|
+
const sourceStack = source && source.stack;
|
|
2734
|
+
|
|
2735
|
+
if (typeof sourceStack !== 'string' || !sourceStack) {
|
|
2736
|
+
return;
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
const targetStack = target.stack;
|
|
2740
|
+
|
|
2741
|
+
if (typeof targetStack !== 'string' || !targetStack) {
|
|
2742
|
+
return;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
// Each call to `from()` creates a fresh target. Re-wrapping includes the
|
|
2746
|
+
// previous stack verbatim, adding one cause section per wrap.
|
|
2747
|
+
const causeStack = CAUSED_BY_SEPARATOR + sourceStack;
|
|
2748
|
+
target.stack = targetStack + causeStack;
|
|
2749
|
+
Object.defineProperty(target, $causeStack, { __proto__: null, value: causeStack });
|
|
2750
|
+
} catch (e) {
|
|
2751
|
+
// Ignore failures from custom stack hooks or un-writable stack properties.
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2281
2755
|
class AxiosError extends Error {
|
|
2282
2756
|
static from(error, code, config, request, response, customProps) {
|
|
2283
2757
|
// `AggregateError` (thrown by Node on dual-stack/Happy-Eyeballs connection
|
|
@@ -2304,6 +2778,10 @@ class AxiosError extends Error {
|
|
|
2304
2778
|
});
|
|
2305
2779
|
axiosError.name = error.name;
|
|
2306
2780
|
|
|
2781
|
+
// Inline the wrapped stack for reporters that read only `stack`; the `cause`
|
|
2782
|
+
// property above already covers cause-aware tooling.
|
|
2783
|
+
appendCauseStack(axiosError, error);
|
|
2784
|
+
|
|
2307
2785
|
// Preserve status from the original error if not already set from response
|
|
2308
2786
|
if (error.status != null && axiosError.status == null) {
|
|
2309
2787
|
axiosError.status = error.status;
|
|
@@ -2404,9 +2882,9 @@ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
|
|
|
2404
2882
|
|
|
2405
2883
|
/***/ },
|
|
2406
2884
|
|
|
2407
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
2885
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js"
|
|
2408
2886
|
/*!********************************************************************************************************************************************!*\
|
|
2409
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
2887
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js ***!
|
|
2410
2888
|
\********************************************************************************************************************************************/
|
|
2411
2889
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2412
2890
|
|
|
@@ -2414,9 +2892,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2414
2892
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2415
2893
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2416
2894
|
/* harmony export */ });
|
|
2417
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
2418
|
-
/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ "./node_modules/.pnpm/axios@1.
|
|
2419
|
-
/* harmony import */ var _helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/sanitizeHeaderValue.js */ "./node_modules/.pnpm/axios@1.
|
|
2895
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
2896
|
+
/* harmony import */ var _helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/parseHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js");
|
|
2897
|
+
/* harmony import */ var _helpers_sanitizeHeaderValue_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/sanitizeHeaderValue.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js");
|
|
2420
2898
|
|
|
2421
2899
|
|
|
2422
2900
|
|
|
@@ -2569,9 +3047,22 @@ function parseParameters(value) {
|
|
|
2569
3047
|
|
|
2570
3048
|
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
2571
3049
|
|
|
3050
|
+
// `__proto__` is a valid field name, and the one name the uppercase mapping at
|
|
3051
|
+
// the bottom of this file cannot reach: it is inherited from Object.prototype
|
|
3052
|
+
// instead of being declared on AxiosHeaders.prototype, so `self.__proto__ = v`
|
|
3053
|
+
// runs the inherited setter. That silently discards the header, and an array
|
|
3054
|
+
// value replaces the instance prototype, taking every method with it.
|
|
3055
|
+
// Store it under the same kind of case variant that mapping uses for `set` and
|
|
3056
|
+
// `constructor`. Header lookup is caseless, so it reads back under either
|
|
3057
|
+
// spelling, and no own `__proto__` slot is ever created for a later
|
|
3058
|
+
// `Object.assign` to copy onto a plain object through the same setter.
|
|
3059
|
+
const PROTO_HEADER_SLOT = '__Proto__';
|
|
3060
|
+
|
|
3061
|
+
const headerSlot = (name) => (name === '__proto__' ? PROTO_HEADER_SLOT : name);
|
|
3062
|
+
|
|
2572
3063
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
2573
3064
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(filter)) {
|
|
2574
|
-
return filter.call(
|
|
3065
|
+
return filter.call(context, value, header);
|
|
2575
3066
|
}
|
|
2576
3067
|
|
|
2577
3068
|
if (isHeaderNameFilter) {
|
|
@@ -2637,7 +3128,7 @@ class AxiosHeaders {
|
|
|
2637
3128
|
_rewrite === true ||
|
|
2638
3129
|
(_rewrite === undefined && self[key] !== false)
|
|
2639
3130
|
) {
|
|
2640
|
-
self[key || _header] = normalizeValue(_value);
|
|
3131
|
+
self[headerSlot(key || _header)] = normalizeValue(_value);
|
|
2641
3132
|
}
|
|
2642
3133
|
}
|
|
2643
3134
|
|
|
@@ -2766,7 +3257,7 @@ class AxiosHeaders {
|
|
|
2766
3257
|
|
|
2767
3258
|
normalize(format) {
|
|
2768
3259
|
const self = this;
|
|
2769
|
-
const headers =
|
|
3260
|
+
const headers = Object.create(null);
|
|
2770
3261
|
|
|
2771
3262
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this, (value, header) => {
|
|
2772
3263
|
const key = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(headers, header);
|
|
@@ -2777,7 +3268,7 @@ class AxiosHeaders {
|
|
|
2777
3268
|
return;
|
|
2778
3269
|
}
|
|
2779
3270
|
|
|
2780
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
3271
|
+
const normalized = headerSlot(format ? formatHeader(header) : String(header).trim());
|
|
2781
3272
|
|
|
2782
3273
|
if (normalized !== header) {
|
|
2783
3274
|
delete self[header];
|
|
@@ -2895,9 +3386,9 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders);
|
|
|
2895
3386
|
|
|
2896
3387
|
/***/ },
|
|
2897
3388
|
|
|
2898
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
3389
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js"
|
|
2899
3390
|
/*!**************************************************************************************************************************************************!*\
|
|
2900
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
3391
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/InterceptorManager.js ***!
|
|
2901
3392
|
\**************************************************************************************************************************************************/
|
|
2902
3393
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2903
3394
|
|
|
@@ -2905,14 +3396,72 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2905
3396
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2906
3397
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2907
3398
|
/* harmony export */ });
|
|
2908
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
3399
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
3400
|
+
|
|
2909
3401
|
|
|
2910
3402
|
|
|
2911
3403
|
|
|
3404
|
+
const $internals = Symbol('internals');
|
|
3405
|
+
|
|
3406
|
+
// `handlers` is public and may be replaced with a nullish value by user code;
|
|
3407
|
+
// `clear()` has always tolerated that. Treat it as an empty stack rather than
|
|
3408
|
+
// dereferencing it.
|
|
3409
|
+
function countHandlers(handlers) {
|
|
3410
|
+
return handlers ? handlers.length : 0;
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3413
|
+
function trimHandlers(handlers) {
|
|
3414
|
+
if (!handlers) {
|
|
3415
|
+
return;
|
|
3416
|
+
}
|
|
3417
|
+
|
|
3418
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
3419
|
+
handlers.pop();
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
// Preserve the array-key coercion used before IDs were stored in a Map, without
|
|
3424
|
+
// treating null, empty strings, or noncanonical numeric strings as ID zero.
|
|
3425
|
+
function normalizeHandlerId(id) {
|
|
3426
|
+
if (typeof id === 'string' && id !== '' && String(Number(id)) === id) {
|
|
3427
|
+
return Number(id);
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
return id;
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
function syncHandlerEntries(manager, internals) {
|
|
3434
|
+
const handlers = manager.handlers;
|
|
3435
|
+
const length = countHandlers(handlers);
|
|
3436
|
+
|
|
3437
|
+
if (handlers !== internals.handlersRef) {
|
|
3438
|
+
internals.handlersRef = handlers;
|
|
3439
|
+
internals.handlerEntries.clear();
|
|
3440
|
+
} else if (length !== internals.handlersLength) {
|
|
3441
|
+
if (!length) {
|
|
3442
|
+
internals.handlerEntries.clear();
|
|
3443
|
+
} else {
|
|
3444
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
3445
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
3446
|
+
internals.handlerEntries.delete(id);
|
|
3447
|
+
}
|
|
3448
|
+
});
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
internals.handlersLength = length;
|
|
3453
|
+
}
|
|
2912
3454
|
|
|
2913
3455
|
class InterceptorManager {
|
|
2914
3456
|
constructor() {
|
|
2915
3457
|
this.handlers = [];
|
|
3458
|
+
this[$internals] = {
|
|
3459
|
+
handlersRef: this.handlers,
|
|
3460
|
+
handlersLength: this.handlers.length,
|
|
3461
|
+
handlerEntries: new Map(),
|
|
3462
|
+
iterationDepth: 0,
|
|
3463
|
+
nextId: 0,
|
|
3464
|
+
};
|
|
2916
3465
|
}
|
|
2917
3466
|
|
|
2918
3467
|
/**
|
|
@@ -2925,13 +3474,30 @@ class InterceptorManager {
|
|
|
2925
3474
|
* @return {Number} An ID used to remove interceptor later
|
|
2926
3475
|
*/
|
|
2927
3476
|
use(fulfilled, rejected, options) {
|
|
2928
|
-
|
|
3477
|
+
const handler = {
|
|
2929
3478
|
fulfilled,
|
|
2930
3479
|
rejected,
|
|
2931
3480
|
synchronous: options ? options.synchronous : false,
|
|
2932
3481
|
runWhen: options ? options.runWhen : null,
|
|
3482
|
+
};
|
|
3483
|
+
const internals = this[$internals];
|
|
3484
|
+
|
|
3485
|
+
if (this.handlers == null) {
|
|
3486
|
+
this.handlers = [];
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
syncHandlerEntries(this, internals);
|
|
3490
|
+
|
|
3491
|
+
const id = internals.nextId++;
|
|
3492
|
+
|
|
3493
|
+
this.handlers.push(handler);
|
|
3494
|
+
internals.handlerEntries.set(id, {
|
|
3495
|
+
handler,
|
|
3496
|
+
index: this.handlers.length - 1,
|
|
2933
3497
|
});
|
|
2934
|
-
|
|
3498
|
+
internals.handlersLength = this.handlers.length;
|
|
3499
|
+
|
|
3500
|
+
return id;
|
|
2935
3501
|
}
|
|
2936
3502
|
|
|
2937
3503
|
/**
|
|
@@ -2942,8 +3508,28 @@ class InterceptorManager {
|
|
|
2942
3508
|
* @returns {void}
|
|
2943
3509
|
*/
|
|
2944
3510
|
eject(id) {
|
|
2945
|
-
|
|
2946
|
-
|
|
3511
|
+
const internals = this[$internals];
|
|
3512
|
+
|
|
3513
|
+
syncHandlerEntries(this, internals);
|
|
3514
|
+
|
|
3515
|
+
const handlerId = normalizeHandlerId(id);
|
|
3516
|
+
const entry = internals.handlerEntries.get(handlerId);
|
|
3517
|
+
|
|
3518
|
+
if (entry) {
|
|
3519
|
+
internals.handlerEntries.delete(handlerId);
|
|
3520
|
+
|
|
3521
|
+
// Ignore IDs invalidated by clear or direct replacement of handlers.
|
|
3522
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
3523
|
+
return;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
this.handlers[entry.index] = null;
|
|
3527
|
+
|
|
3528
|
+
// Do not reuse an index while forEach is walking its length snapshot.
|
|
3529
|
+
if (!internals.iterationDepth) {
|
|
3530
|
+
trimHandlers(this.handlers);
|
|
3531
|
+
internals.handlersLength = this.handlers.length;
|
|
3532
|
+
}
|
|
2947
3533
|
}
|
|
2948
3534
|
}
|
|
2949
3535
|
|
|
@@ -2955,6 +3541,7 @@ class InterceptorManager {
|
|
|
2955
3541
|
clear() {
|
|
2956
3542
|
if (this.handlers) {
|
|
2957
3543
|
this.handlers = [];
|
|
3544
|
+
syncHandlerEntries(this, this[$internals]);
|
|
2958
3545
|
}
|
|
2959
3546
|
}
|
|
2960
3547
|
|
|
@@ -2969,11 +3556,25 @@ class InterceptorManager {
|
|
|
2969
3556
|
* @returns {void}
|
|
2970
3557
|
*/
|
|
2971
3558
|
forEach(fn) {
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
3559
|
+
const internals = this[$internals];
|
|
3560
|
+
|
|
3561
|
+
syncHandlerEntries(this, internals);
|
|
3562
|
+
|
|
3563
|
+
internals.iterationDepth++;
|
|
3564
|
+
|
|
3565
|
+
try {
|
|
3566
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(this.handlers, function forEachHandler(h) {
|
|
3567
|
+
if (h !== null) {
|
|
3568
|
+
fn(h);
|
|
3569
|
+
}
|
|
3570
|
+
});
|
|
3571
|
+
} finally {
|
|
3572
|
+
if (!--internals.iterationDepth) {
|
|
3573
|
+
syncHandlerEntries(this, internals);
|
|
3574
|
+
trimHandlers(this.handlers);
|
|
3575
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
2975
3576
|
}
|
|
2976
|
-
}
|
|
3577
|
+
}
|
|
2977
3578
|
}
|
|
2978
3579
|
}
|
|
2979
3580
|
|
|
@@ -2982,39 +3583,93 @@ class InterceptorManager {
|
|
|
2982
3583
|
|
|
2983
3584
|
/***/ },
|
|
2984
3585
|
|
|
2985
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
2986
|
-
|
|
2987
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
2988
|
-
|
|
3586
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/assertParamsAcyclic.js"
|
|
3587
|
+
/*!***************************************************************************************************************************************************!*\
|
|
3588
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/assertParamsAcyclic.js ***!
|
|
3589
|
+
\***************************************************************************************************************************************************/
|
|
2989
3590
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
2990
3591
|
|
|
2991
3592
|
__webpack_require__.r(__webpack_exports__);
|
|
2992
3593
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2993
|
-
/* harmony export */ "default": () => (/* binding */
|
|
3594
|
+
/* harmony export */ "default": () => (/* binding */ assertParamsAcyclic)
|
|
2994
3595
|
/* harmony export */ });
|
|
2995
|
-
/* harmony import */ var
|
|
2996
|
-
/* harmony import */ var
|
|
2997
|
-
/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/combineURLs.js */ "./node_modules/.pnpm/axios@1.19.0_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js");
|
|
3596
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
3597
|
+
/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
2998
3598
|
|
|
2999
3599
|
|
|
3000
3600
|
|
|
3001
3601
|
|
|
3002
3602
|
|
|
3603
|
+
function assertParamsAcyclic(params) {
|
|
3604
|
+
const pending = [{ value: params }];
|
|
3605
|
+
const active = new WeakSet();
|
|
3606
|
+
const visited = new WeakSet();
|
|
3003
3607
|
|
|
3004
|
-
|
|
3005
|
-
const
|
|
3608
|
+
while (pending.length) {
|
|
3609
|
+
const { value, done } = pending.pop();
|
|
3610
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(value) && !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value)) continue;
|
|
3611
|
+
if (done) {
|
|
3612
|
+
active.delete(value);
|
|
3613
|
+
continue;
|
|
3614
|
+
}
|
|
3615
|
+
if (active.has(value)) {
|
|
3616
|
+
throw new _AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](
|
|
3617
|
+
'Circular reference detected in params',
|
|
3618
|
+
_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_OPTION_VALUE
|
|
3619
|
+
);
|
|
3620
|
+
}
|
|
3621
|
+
if (visited.has(value)) continue;
|
|
3622
|
+
visited.add(value);
|
|
3623
|
+
active.add(value);
|
|
3624
|
+
pending.push({ value, done: true });
|
|
3006
3625
|
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3626
|
+
const keys = Object.keys(value);
|
|
3627
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
3628
|
+
Object.getOwnPropertySymbols(value).forEach((key) => {
|
|
3629
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
3630
|
+
if (descriptor && descriptor.enumerable) keys.push(key);
|
|
3631
|
+
});
|
|
3632
|
+
}
|
|
3633
|
+
// Shallow array elements retain fields filtered during plain-object merges.
|
|
3634
|
+
// Inspect reserved data properties without evaluating their accessors.
|
|
3635
|
+
keys.forEach((key) => {
|
|
3636
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
3637
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
3638
|
+
if (descriptor && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(descriptor, 'value')) {
|
|
3639
|
+
pending.push({ value: descriptor.value });
|
|
3640
|
+
}
|
|
3641
|
+
} else {
|
|
3642
|
+
pending.push({ value: value[key] });
|
|
3643
|
+
}
|
|
3644
|
+
});
|
|
3011
3645
|
}
|
|
3012
|
-
return url.slice(i);
|
|
3013
3646
|
}
|
|
3014
3647
|
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3648
|
+
|
|
3649
|
+
/***/ },
|
|
3650
|
+
|
|
3651
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js"
|
|
3652
|
+
/*!*********************************************************************************************************************************************!*\
|
|
3653
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js ***!
|
|
3654
|
+
\*********************************************************************************************************************************************/
|
|
3655
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3656
|
+
|
|
3657
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3658
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3659
|
+
/* harmony export */ "default": () => (/* binding */ buildFullPath)
|
|
3660
|
+
/* harmony export */ });
|
|
3661
|
+
/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
3662
|
+
/* harmony import */ var _helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/isAbsoluteURL.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js");
|
|
3663
|
+
/* harmony import */ var _helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../helpers/combineURLs.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js");
|
|
3664
|
+
/* harmony import */ var _helpers_normalizeURLForProtocolCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/normalizeURLForProtocolCheck.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js");
|
|
3665
|
+
|
|
3666
|
+
|
|
3667
|
+
|
|
3668
|
+
|
|
3669
|
+
|
|
3670
|
+
|
|
3671
|
+
|
|
3672
|
+
const malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
3018
3673
|
|
|
3019
3674
|
// Redact the parts of a URL that can carry secrets before it is embedded in an
|
|
3020
3675
|
// error message. AxiosError.toJSON() serializes `message` verbatim and errors
|
|
@@ -3053,7 +3708,7 @@ function redactSensitiveURLParts(url) {
|
|
|
3053
3708
|
|
|
3054
3709
|
function assertValidHttpProtocolURL(url, config) {
|
|
3055
3710
|
if (typeof url === 'string') {
|
|
3056
|
-
const normalizedURL =
|
|
3711
|
+
const normalizedURL = (0,_helpers_normalizeURLForProtocolCheck_js__WEBPACK_IMPORTED_MODULE_3__["default"])(url);
|
|
3057
3712
|
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
3058
3713
|
throw new _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"](
|
|
3059
3714
|
`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
|
|
@@ -3087,9 +3742,64 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
|
3087
3742
|
|
|
3088
3743
|
/***/ },
|
|
3089
3744
|
|
|
3090
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
3745
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/createMultipartBody.js"
|
|
3746
|
+
/*!***************************************************************************************************************************************************!*\
|
|
3747
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/createMultipartBody.js ***!
|
|
3748
|
+
\***************************************************************************************************************************************************/
|
|
3749
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3750
|
+
|
|
3751
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3752
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3753
|
+
/* harmony export */ "default": () => (/* binding */ createMultipartBody)
|
|
3754
|
+
/* harmony export */ });
|
|
3755
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
3756
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js");
|
|
3757
|
+
/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
3758
|
+
/* harmony import */ var _helpers_formDataToBlob_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/formDataToBlob.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToBlob.js");
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
|
|
3762
|
+
|
|
3763
|
+
|
|
3764
|
+
function createMultipartBody(form, Blob, limit, limitError, boundary) {
|
|
3765
|
+
// Report missing Blob support before trying to select a random source.
|
|
3766
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(Blob)) {
|
|
3767
|
+
throw new _AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Blob is not supported', _AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT);
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
if (boundary === undefined) {
|
|
3771
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].generateString)) {
|
|
3772
|
+
boundary = 'axios-' + _platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].generateString(36, '0123456789abcdef');
|
|
3773
|
+
} else {
|
|
3774
|
+
const crypto = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global.crypto;
|
|
3775
|
+
if (!crypto || !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(crypto.getRandomValues)) {
|
|
3776
|
+
throw new _AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Random byte generation is not supported', _AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT);
|
|
3777
|
+
}
|
|
3778
|
+
const random = new Uint8Array(18);
|
|
3779
|
+
crypto.getRandomValues(random);
|
|
3780
|
+
boundary =
|
|
3781
|
+
'axios-' + Array.from(random, (value) => ('0' + value.toString(16)).slice(-2)).join('');
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
try {
|
|
3786
|
+
return (0,_helpers_formDataToBlob_js__WEBPACK_IMPORTED_MODULE_3__["default"])(form, Blob, limit, limitError, boundary);
|
|
3787
|
+
} catch (error) {
|
|
3788
|
+
if (error instanceof _helpers_formDataToBlob_js__WEBPACK_IMPORTED_MODULE_3__.FormDataError) {
|
|
3789
|
+
const code =
|
|
3790
|
+
error.reason === 'boundary' ? _AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_OPTION_VALUE : _AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_REQUEST;
|
|
3791
|
+
throw new _AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](error.message, code);
|
|
3792
|
+
}
|
|
3793
|
+
throw error;
|
|
3794
|
+
}
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
|
|
3798
|
+
/***/ },
|
|
3799
|
+
|
|
3800
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js"
|
|
3091
3801
|
/*!***********************************************************************************************************************************************!*\
|
|
3092
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
3802
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/dispatchRequest.js ***!
|
|
3093
3803
|
\***********************************************************************************************************************************************/
|
|
3094
3804
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3095
3805
|
|
|
@@ -3097,12 +3807,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3097
3807
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3098
3808
|
/* harmony export */ "default": () => (/* binding */ dispatchRequest)
|
|
3099
3809
|
/* harmony export */ });
|
|
3100
|
-
/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transformData.js */ "./node_modules/.pnpm/axios@1.
|
|
3101
|
-
/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/isCancel.js */ "./node_modules/.pnpm/axios@1.
|
|
3102
|
-
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/.pnpm/axios@1.
|
|
3103
|
-
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/.pnpm/axios@1.
|
|
3104
|
-
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.
|
|
3105
|
-
/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../adapters/adapters.js */ "./node_modules/.pnpm/axios@1.
|
|
3810
|
+
/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transformData.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js");
|
|
3811
|
+
/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/isCancel.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/isCancel.js");
|
|
3812
|
+
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js");
|
|
3813
|
+
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js");
|
|
3814
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
3815
|
+
/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../adapters/adapters.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/adapters/adapters.js");
|
|
3816
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
3817
|
+
|
|
3106
3818
|
|
|
3107
3819
|
|
|
3108
3820
|
|
|
@@ -3129,6 +3841,37 @@ function throwIfCancellationRequested(config) {
|
|
|
3129
3841
|
}
|
|
3130
3842
|
}
|
|
3131
3843
|
|
|
3844
|
+
/**
|
|
3845
|
+
* Resolve the clock used to time adapter execution.
|
|
3846
|
+
*
|
|
3847
|
+
* Prefers the monotonic `performance.now()` so wall-clock adjustments do not
|
|
3848
|
+
* skew the measurement, and so frameworks that forbid reading the current
|
|
3849
|
+
* time during prerendering (e.g. Next.js Cache Components) accept it. Falls
|
|
3850
|
+
* back to `Date.now()` in runtimes without the High Resolution Time API.
|
|
3851
|
+
*
|
|
3852
|
+
* @returns {() => number} Millisecond clock
|
|
3853
|
+
*/
|
|
3854
|
+
function resolveClock() {
|
|
3855
|
+
return typeof performance !== 'undefined' && _utils_js__WEBPACK_IMPORTED_MODULE_6__["default"].isFunction(performance.now)
|
|
3856
|
+
? () => performance.now()
|
|
3857
|
+
: Date.now;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
/**
|
|
3861
|
+
* Whole milliseconds elapsed since `start`, floored at zero.
|
|
3862
|
+
*
|
|
3863
|
+
* Rounded so the value stays an integer as with `Date.now()`. The fallback
|
|
3864
|
+
* wall clock can move backwards mid-request, so the result is clamped.
|
|
3865
|
+
*
|
|
3866
|
+
* @param {() => number} now Clock returned by `resolveClock()`
|
|
3867
|
+
* @param {number} start Timestamp read from `now`
|
|
3868
|
+
*
|
|
3869
|
+
* @returns {number} Non-negative elapsed milliseconds
|
|
3870
|
+
*/
|
|
3871
|
+
function elapsedSince(now, start) {
|
|
3872
|
+
return Math.max(0, Math.round(now() - start));
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3132
3875
|
/**
|
|
3133
3876
|
* Dispatch a request to the server using the configured adapter.
|
|
3134
3877
|
*
|
|
@@ -3136,10 +3879,15 @@ function throwIfCancellationRequested(config) {
|
|
|
3136
3879
|
*
|
|
3137
3880
|
* @returns {Promise} The Promise to be fulfilled
|
|
3138
3881
|
*/
|
|
3139
|
-
function dispatchRequest(
|
|
3882
|
+
function dispatchRequest(_config) {
|
|
3883
|
+
// Interceptors may replace the merged config with an ordinary object. Flatten
|
|
3884
|
+
// it at the dispatch boundary so shared prototype members cannot become
|
|
3885
|
+
// request behavior, while preserving intentional template/class members.
|
|
3886
|
+
const config = _utils_js__WEBPACK_IMPORTED_MODULE_6__["default"].toSafeFlatObject(_config);
|
|
3887
|
+
|
|
3140
3888
|
throwIfCancellationRequested(config);
|
|
3141
3889
|
|
|
3142
|
-
config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(config
|
|
3890
|
+
config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(_utils_js__WEBPACK_IMPORTED_MODULE_6__["default"].getSafeProp(config, 'headers'));
|
|
3143
3891
|
|
|
3144
3892
|
// Transform request data
|
|
3145
3893
|
config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(config, config.transformRequest);
|
|
@@ -3150,10 +3898,15 @@ function dispatchRequest(config) {
|
|
|
3150
3898
|
|
|
3151
3899
|
const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_5__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].adapter, config);
|
|
3152
3900
|
|
|
3901
|
+
const now = resolveClock();
|
|
3902
|
+
const start = now();
|
|
3903
|
+
|
|
3153
3904
|
return adapter(config).then(
|
|
3154
3905
|
function onAdapterResolution(response) {
|
|
3155
3906
|
throwIfCancellationRequested(config);
|
|
3156
3907
|
|
|
3908
|
+
response.duration = elapsedSince(now, start);
|
|
3909
|
+
|
|
3157
3910
|
// Expose the current response on config so that transformResponse can
|
|
3158
3911
|
// attach it to any AxiosError it throws (e.g. on JSON parse failure).
|
|
3159
3912
|
// We clean it up afterwards to avoid polluting the config object.
|
|
@@ -3174,6 +3927,7 @@ function dispatchRequest(config) {
|
|
|
3174
3927
|
|
|
3175
3928
|
// Transform response data
|
|
3176
3929
|
if (reason && reason.response) {
|
|
3930
|
+
reason.response.duration = elapsedSince(now, start);
|
|
3177
3931
|
config.response = reason.response;
|
|
3178
3932
|
try {
|
|
3179
3933
|
reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
|
|
@@ -3196,9 +3950,9 @@ function dispatchRequest(config) {
|
|
|
3196
3950
|
|
|
3197
3951
|
/***/ },
|
|
3198
3952
|
|
|
3199
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
3953
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js"
|
|
3200
3954
|
/*!*******************************************************************************************************************************************!*\
|
|
3201
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
3955
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js ***!
|
|
3202
3956
|
\*******************************************************************************************************************************************/
|
|
3203
3957
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3204
3958
|
|
|
@@ -3206,24 +3960,196 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3206
3960
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3207
3961
|
/* harmony export */ "default": () => (/* binding */ mergeConfig)
|
|
3208
3962
|
/* harmony export */ });
|
|
3209
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
3210
|
-
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.
|
|
3963
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
3964
|
+
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
3965
|
+
/* harmony import */ var _assertParamsAcyclic_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./assertParamsAcyclic.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/assertParamsAcyclic.js");
|
|
3966
|
+
|
|
3967
|
+
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
|
|
3972
|
+
const headersToObject = (thing) => (thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"] ? { ...thing } : thing);
|
|
3211
3973
|
|
|
3974
|
+
const ownEnumerableKeys = (thing) => {
|
|
3975
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
3976
|
+
return Object.keys(thing).concat(
|
|
3977
|
+
Object.getOwnPropertySymbols(thing).filter((symbol) => {
|
|
3978
|
+
const descriptor = Object.getOwnPropertyDescriptor(thing, symbol);
|
|
3979
|
+
return descriptor && descriptor.enumerable;
|
|
3980
|
+
})
|
|
3981
|
+
);
|
|
3982
|
+
}
|
|
3983
|
+
return Object.keys(thing);
|
|
3984
|
+
};
|
|
3985
|
+
|
|
3986
|
+
// Copy params without recursive merges so the serializer remains responsible
|
|
3987
|
+
// for its depth policy. Only visit defaults that contribute to the result.
|
|
3988
|
+
function mergeParams(a, b) {
|
|
3989
|
+
const pending = [];
|
|
3990
|
+
const copies = new WeakMap();
|
|
3991
|
+
const empty = {};
|
|
3992
|
+
|
|
3993
|
+
function copy(target, source) {
|
|
3994
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source)) {
|
|
3995
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(source) ? source.slice() : source;
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
const base = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(target) ? target : empty;
|
|
3999
|
+
let bases = copies.get(source);
|
|
4000
|
+
if (!bases) {
|
|
4001
|
+
bases = new WeakMap();
|
|
4002
|
+
copies.set(source, bases);
|
|
4003
|
+
}
|
|
4004
|
+
if (bases.has(base)) return bases.get(base);
|
|
4005
|
+
|
|
4006
|
+
const result = {};
|
|
4007
|
+
bases.set(base, result);
|
|
4008
|
+
pending.push({ base, source, result });
|
|
4009
|
+
return result;
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
const result = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b) ? copy(undefined, a) : copy(a, b);
|
|
4013
|
+
while (pending.length) {
|
|
4014
|
+
const { base, source, result: target } = pending.pop();
|
|
4015
|
+
const baseKeys = new Set(ownEnumerableKeys(base));
|
|
4016
|
+
const sourceKeys = new Set(ownEnumerableKeys(source));
|
|
4017
|
+
const keys = new Set([...baseKeys, ...sourceKeys]);
|
|
4018
|
+
|
|
4019
|
+
keys.forEach((key) => {
|
|
4020
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') return;
|
|
4021
|
+
const hasSource = sourceKeys.has(key);
|
|
4022
|
+
const value = hasSource ? source[key] : undefined;
|
|
4023
|
+
const previous =
|
|
4024
|
+
(!hasSource || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(value)) && baseKeys.has(key) ? base[key] : undefined;
|
|
4025
|
+
target[key] = hasSource ? copy(previous, value) : copy(undefined, previous);
|
|
4026
|
+
});
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
;(0,_assertParamsAcyclic_js__WEBPACK_IMPORTED_MODULE_2__["default"])(result);
|
|
4030
|
+
return result;
|
|
4031
|
+
}
|
|
4032
|
+
|
|
4033
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
4034
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source)) {
|
|
4035
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({ caseless }, target, source);
|
|
4036
|
+
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source)) {
|
|
4037
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge({}, source);
|
|
4038
|
+
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(source)) {
|
|
4039
|
+
return source.slice();
|
|
4040
|
+
}
|
|
4041
|
+
return source;
|
|
4042
|
+
}
|
|
4043
|
+
|
|
4044
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
4045
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
4046
|
+
return getMergedValue(a, b, prop, caseless);
|
|
4047
|
+
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(a)) {
|
|
4048
|
+
return getMergedValue(undefined, a, prop, caseless);
|
|
4049
|
+
}
|
|
4050
|
+
}
|
|
4051
|
+
|
|
4052
|
+
// eslint-disable-next-line consistent-return
|
|
4053
|
+
function valueFromConfig2(a, b) {
|
|
4054
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
4055
|
+
return getMergedValue(undefined, b);
|
|
4056
|
+
}
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
// eslint-disable-next-line consistent-return
|
|
4060
|
+
function defaultToConfig2(a, b) {
|
|
4061
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
4062
|
+
return getMergedValue(undefined, b);
|
|
4063
|
+
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(a)) {
|
|
4064
|
+
return getMergedValue(undefined, a);
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
3212
4067
|
|
|
4068
|
+
function getMergedTransitionalOption(config1, config2, prop) {
|
|
4069
|
+
const transitional2 = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config2, 'transitional')
|
|
4070
|
+
? config2.transitional
|
|
4071
|
+
: undefined;
|
|
3213
4072
|
|
|
4073
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(transitional2)) {
|
|
4074
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(transitional2)) {
|
|
4075
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(transitional2, prop)) {
|
|
4076
|
+
return transitional2[prop];
|
|
4077
|
+
}
|
|
4078
|
+
} else {
|
|
4079
|
+
return undefined;
|
|
4080
|
+
}
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4083
|
+
const transitional1 = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config1, 'transitional')
|
|
4084
|
+
? config1.transitional
|
|
4085
|
+
: undefined;
|
|
4086
|
+
|
|
4087
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(transitional1) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(transitional1, prop)) {
|
|
4088
|
+
return transitional1[prop];
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
return undefined;
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
// eslint-disable-next-line consistent-return
|
|
4095
|
+
function mergeDirectKeys(a, b, prop, config1, config2) {
|
|
4096
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config2, prop)) {
|
|
4097
|
+
return getMergedValue(a, b);
|
|
4098
|
+
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config1, prop)) {
|
|
4099
|
+
return getMergedValue(undefined, a);
|
|
4100
|
+
}
|
|
4101
|
+
}
|
|
3214
4102
|
|
|
4103
|
+
function mergeHeaders(a, b, prop) {
|
|
4104
|
+
return mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true);
|
|
4105
|
+
}
|
|
3215
4106
|
|
|
3216
|
-
|
|
4107
|
+
// Null-proto, frozen descriptor so a polluted Object.prototype.get cannot turn
|
|
4108
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
4109
|
+
// defineProperty only reads it, so one shared instance serves every call.
|
|
4110
|
+
const hasOwnPropertyDescriptor = Object.freeze({
|
|
4111
|
+
__proto__: null,
|
|
4112
|
+
value: Object.prototype.hasOwnProperty,
|
|
4113
|
+
enumerable: false,
|
|
4114
|
+
writable: true,
|
|
4115
|
+
configurable: true,
|
|
4116
|
+
});
|
|
3217
4117
|
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
4118
|
+
// The strategy table and the strategies above are stateless, so they are
|
|
4119
|
+
// built once at module load instead of on every call: mergeConfig runs at
|
|
4120
|
+
// most twice per request (once from a method alias, once from `_request`).
|
|
4121
|
+
const mergeMap = {
|
|
4122
|
+
url: valueFromConfig2,
|
|
4123
|
+
method: valueFromConfig2,
|
|
4124
|
+
data: valueFromConfig2,
|
|
4125
|
+
baseURL: defaultToConfig2,
|
|
4126
|
+
transformRequest: defaultToConfig2,
|
|
4127
|
+
transformResponse: defaultToConfig2,
|
|
4128
|
+
params: mergeParams,
|
|
4129
|
+
paramsSerializer: defaultToConfig2,
|
|
4130
|
+
timeout: defaultToConfig2,
|
|
4131
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
4132
|
+
withCredentials: defaultToConfig2,
|
|
4133
|
+
withXSRFToken: defaultToConfig2,
|
|
4134
|
+
adapter: defaultToConfig2,
|
|
4135
|
+
responseType: defaultToConfig2,
|
|
4136
|
+
xsrfCookieName: defaultToConfig2,
|
|
4137
|
+
xsrfHeaderName: defaultToConfig2,
|
|
4138
|
+
onUploadProgress: defaultToConfig2,
|
|
4139
|
+
onDownloadProgress: defaultToConfig2,
|
|
4140
|
+
decompress: defaultToConfig2,
|
|
4141
|
+
maxContentLength: defaultToConfig2,
|
|
4142
|
+
maxBodyLength: defaultToConfig2,
|
|
4143
|
+
beforeRedirect: defaultToConfig2,
|
|
4144
|
+
transport: defaultToConfig2,
|
|
4145
|
+
httpAgent: defaultToConfig2,
|
|
4146
|
+
httpsAgent: defaultToConfig2,
|
|
4147
|
+
cancelToken: defaultToConfig2,
|
|
4148
|
+
socketPath: defaultToConfig2,
|
|
4149
|
+
allowedSocketPaths: defaultToConfig2,
|
|
4150
|
+
responseEncoding: defaultToConfig2,
|
|
4151
|
+
validateStatus: mergeDirectKeys,
|
|
4152
|
+
headers: mergeHeaders,
|
|
3227
4153
|
};
|
|
3228
4154
|
|
|
3229
4155
|
/**
|
|
@@ -3245,133 +4171,25 @@ function mergeConfig(config1, config2) {
|
|
|
3245
4171
|
// `hasOwnProperty` is restored as a non-enumerable own slot to preserve
|
|
3246
4172
|
// ergonomics for user code that relies on it.
|
|
3247
4173
|
const config = Object.create(null);
|
|
3248
|
-
Object.defineProperty(config, 'hasOwnProperty',
|
|
3249
|
-
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
3250
|
-
// this data descriptor into an accessor descriptor on the way in.
|
|
3251
|
-
__proto__: null,
|
|
3252
|
-
value: Object.prototype.hasOwnProperty,
|
|
3253
|
-
enumerable: false,
|
|
3254
|
-
writable: true,
|
|
3255
|
-
configurable: true,
|
|
3256
|
-
});
|
|
3257
|
-
|
|
3258
|
-
function getMergedValue(target, source, prop, caseless) {
|
|
3259
|
-
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source)) {
|
|
3260
|
-
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({ caseless }, target, source);
|
|
3261
|
-
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source)) {
|
|
3262
|
-
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge({}, source);
|
|
3263
|
-
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(source)) {
|
|
3264
|
-
return source.slice();
|
|
3265
|
-
}
|
|
3266
|
-
return source;
|
|
3267
|
-
}
|
|
3268
|
-
|
|
3269
|
-
function mergeDeepProperties(a, b, prop, caseless) {
|
|
3270
|
-
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
3271
|
-
return getMergedValue(a, b, prop, caseless);
|
|
3272
|
-
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(a)) {
|
|
3273
|
-
return getMergedValue(undefined, a, prop, caseless);
|
|
3274
|
-
}
|
|
3275
|
-
}
|
|
3276
|
-
|
|
3277
|
-
// eslint-disable-next-line consistent-return
|
|
3278
|
-
function valueFromConfig2(a, b) {
|
|
3279
|
-
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
3280
|
-
return getMergedValue(undefined, b);
|
|
3281
|
-
}
|
|
3282
|
-
}
|
|
3283
|
-
|
|
3284
|
-
// eslint-disable-next-line consistent-return
|
|
3285
|
-
function defaultToConfig2(a, b) {
|
|
3286
|
-
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
3287
|
-
return getMergedValue(undefined, b);
|
|
3288
|
-
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(a)) {
|
|
3289
|
-
return getMergedValue(undefined, a);
|
|
3290
|
-
}
|
|
3291
|
-
}
|
|
3292
|
-
|
|
3293
|
-
function getMergedTransitionalOption(prop) {
|
|
3294
|
-
const transitional2 = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config2, 'transitional')
|
|
3295
|
-
? config2.transitional
|
|
3296
|
-
: undefined;
|
|
3297
|
-
|
|
3298
|
-
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(transitional2)) {
|
|
3299
|
-
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(transitional2)) {
|
|
3300
|
-
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(transitional2, prop)) {
|
|
3301
|
-
return transitional2[prop];
|
|
3302
|
-
}
|
|
3303
|
-
} else {
|
|
3304
|
-
return undefined;
|
|
3305
|
-
}
|
|
3306
|
-
}
|
|
4174
|
+
Object.defineProperty(config, 'hasOwnProperty', hasOwnPropertyDescriptor);
|
|
3307
4175
|
|
|
3308
|
-
|
|
3309
|
-
? config1.transitional
|
|
3310
|
-
: undefined;
|
|
3311
|
-
|
|
3312
|
-
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(transitional1) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(transitional1, prop)) {
|
|
3313
|
-
return transitional1[prop];
|
|
3314
|
-
}
|
|
3315
|
-
|
|
3316
|
-
return undefined;
|
|
3317
|
-
}
|
|
3318
|
-
|
|
3319
|
-
// eslint-disable-next-line consistent-return
|
|
3320
|
-
function mergeDirectKeys(a, b, prop) {
|
|
3321
|
-
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config2, prop)) {
|
|
3322
|
-
return getMergedValue(a, b);
|
|
3323
|
-
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config1, prop)) {
|
|
3324
|
-
return getMergedValue(undefined, a);
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
|
|
3328
|
-
const mergeMap = {
|
|
3329
|
-
url: valueFromConfig2,
|
|
3330
|
-
method: valueFromConfig2,
|
|
3331
|
-
data: valueFromConfig2,
|
|
3332
|
-
baseURL: defaultToConfig2,
|
|
3333
|
-
transformRequest: defaultToConfig2,
|
|
3334
|
-
transformResponse: defaultToConfig2,
|
|
3335
|
-
paramsSerializer: defaultToConfig2,
|
|
3336
|
-
timeout: defaultToConfig2,
|
|
3337
|
-
timeoutMessage: defaultToConfig2,
|
|
3338
|
-
withCredentials: defaultToConfig2,
|
|
3339
|
-
withXSRFToken: defaultToConfig2,
|
|
3340
|
-
adapter: defaultToConfig2,
|
|
3341
|
-
responseType: defaultToConfig2,
|
|
3342
|
-
xsrfCookieName: defaultToConfig2,
|
|
3343
|
-
xsrfHeaderName: defaultToConfig2,
|
|
3344
|
-
onUploadProgress: defaultToConfig2,
|
|
3345
|
-
onDownloadProgress: defaultToConfig2,
|
|
3346
|
-
decompress: defaultToConfig2,
|
|
3347
|
-
maxContentLength: defaultToConfig2,
|
|
3348
|
-
maxBodyLength: defaultToConfig2,
|
|
3349
|
-
beforeRedirect: defaultToConfig2,
|
|
3350
|
-
transport: defaultToConfig2,
|
|
3351
|
-
httpAgent: defaultToConfig2,
|
|
3352
|
-
httpsAgent: defaultToConfig2,
|
|
3353
|
-
cancelToken: defaultToConfig2,
|
|
3354
|
-
socketPath: defaultToConfig2,
|
|
3355
|
-
allowedSocketPaths: defaultToConfig2,
|
|
3356
|
-
responseEncoding: defaultToConfig2,
|
|
3357
|
-
validateStatus: mergeDirectKeys,
|
|
3358
|
-
headers: (a, b, prop) =>
|
|
3359
|
-
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
3360
|
-
};
|
|
4176
|
+
const keys = ownEnumerableKeys({ ...config1, ...config2 });
|
|
3361
4177
|
|
|
3362
|
-
|
|
3363
|
-
|
|
4178
|
+
for (let i = 0, len = keys.length; i < len; i++) {
|
|
4179
|
+
const prop = keys[i];
|
|
4180
|
+
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') continue;
|
|
3364
4181
|
const merge = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
3365
4182
|
const a = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config1, prop) ? config1[prop] : undefined;
|
|
3366
4183
|
const b = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config2, prop) ? config2[prop] : undefined;
|
|
3367
|
-
const configValue =
|
|
4184
|
+
const configValue =
|
|
4185
|
+
merge === mergeDirectKeys ? merge(a, b, prop, config1, config2) : merge(a, b, prop);
|
|
3368
4186
|
(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
3369
|
-
}
|
|
4187
|
+
}
|
|
3370
4188
|
|
|
3371
4189
|
if (
|
|
3372
4190
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config2, 'validateStatus') &&
|
|
3373
4191
|
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(config2.validateStatus) &&
|
|
3374
|
-
getMergedTransitionalOption('validateStatusUndefinedResolves') === false
|
|
4192
|
+
getMergedTransitionalOption(config1, config2, 'validateStatusUndefinedResolves') === false
|
|
3375
4193
|
) {
|
|
3376
4194
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(config1, 'validateStatus')) {
|
|
3377
4195
|
config.validateStatus = getMergedValue(undefined, config1.validateStatus);
|
|
@@ -3386,9 +4204,40 @@ function mergeConfig(config1, config2) {
|
|
|
3386
4204
|
|
|
3387
4205
|
/***/ },
|
|
3388
4206
|
|
|
3389
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4207
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js"
|
|
4208
|
+
/*!******************************************************************************************************************************************!*\
|
|
4209
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js ***!
|
|
4210
|
+
\******************************************************************************************************************************************/
|
|
4211
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4212
|
+
|
|
4213
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4214
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4215
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4216
|
+
/* harmony export */ });
|
|
4217
|
+
|
|
4218
|
+
|
|
4219
|
+
const methodList = Object.freeze([
|
|
4220
|
+
'get',
|
|
4221
|
+
'delete',
|
|
4222
|
+
'head',
|
|
4223
|
+
'options',
|
|
4224
|
+
'post',
|
|
4225
|
+
'put',
|
|
4226
|
+
'patch',
|
|
4227
|
+
'purge',
|
|
4228
|
+
'link',
|
|
4229
|
+
'unlink',
|
|
4230
|
+
'query',
|
|
4231
|
+
]);
|
|
4232
|
+
|
|
4233
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (methodList);
|
|
4234
|
+
|
|
4235
|
+
|
|
4236
|
+
/***/ },
|
|
4237
|
+
|
|
4238
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js"
|
|
3390
4239
|
/*!**************************************************************************************************************************************************!*\
|
|
3391
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4240
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js ***!
|
|
3392
4241
|
\**************************************************************************************************************************************************/
|
|
3393
4242
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3394
4243
|
|
|
@@ -3427,9 +4276,9 @@ function setFormDataHeaders(headers, formHeaders, policy) {
|
|
|
3427
4276
|
|
|
3428
4277
|
/***/ },
|
|
3429
4278
|
|
|
3430
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4279
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js"
|
|
3431
4280
|
/*!**************************************************************************************************************************************!*\
|
|
3432
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4281
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/settle.js ***!
|
|
3433
4282
|
\**************************************************************************************************************************************/
|
|
3434
4283
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3435
4284
|
|
|
@@ -3437,7 +4286,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3437
4286
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3438
4287
|
/* harmony export */ "default": () => (/* binding */ settle)
|
|
3439
4288
|
/* harmony export */ });
|
|
3440
|
-
/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
4289
|
+
/* harmony import */ var _AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
3441
4290
|
|
|
3442
4291
|
|
|
3443
4292
|
|
|
@@ -3469,9 +4318,9 @@ function settle(resolve, reject, response) {
|
|
|
3469
4318
|
|
|
3470
4319
|
/***/ },
|
|
3471
4320
|
|
|
3472
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4321
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js"
|
|
3473
4322
|
/*!*********************************************************************************************************************************************!*\
|
|
3474
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4323
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/transformData.js ***!
|
|
3475
4324
|
\*********************************************************************************************************************************************/
|
|
3476
4325
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3477
4326
|
|
|
@@ -3479,9 +4328,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3479
4328
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3480
4329
|
/* harmony export */ "default": () => (/* binding */ transformData)
|
|
3481
4330
|
/* harmony export */ });
|
|
3482
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
3483
|
-
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/.pnpm/axios@1.
|
|
3484
|
-
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.
|
|
4331
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
4332
|
+
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js");
|
|
4333
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
3485
4334
|
|
|
3486
4335
|
|
|
3487
4336
|
|
|
@@ -3514,9 +4363,9 @@ function transformData(fns, response) {
|
|
|
3514
4363
|
|
|
3515
4364
|
/***/ },
|
|
3516
4365
|
|
|
3517
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4366
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js"
|
|
3518
4367
|
/*!*****************************************************************************************************************************************!*\
|
|
3519
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4368
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/index.js ***!
|
|
3520
4369
|
\*****************************************************************************************************************************************/
|
|
3521
4370
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3522
4371
|
|
|
@@ -3524,13 +4373,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3524
4373
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3525
4374
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3526
4375
|
/* harmony export */ });
|
|
3527
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
3528
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
3529
|
-
/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transitional.js */ "./node_modules/.pnpm/axios@1.
|
|
3530
|
-
/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toFormData.js */ "./node_modules/.pnpm/axios@1.
|
|
3531
|
-
/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ "./node_modules/.pnpm/axios@1.
|
|
3532
|
-
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.
|
|
3533
|
-
/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ "./node_modules/.pnpm/axios@1.
|
|
4376
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
4377
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
4378
|
+
/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transitional.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js");
|
|
4379
|
+
/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toFormData.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js");
|
|
4380
|
+
/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js");
|
|
4381
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js");
|
|
4382
|
+
/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js");
|
|
4383
|
+
/* harmony import */ var _core_methodList_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/methodList.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/methodList.js");
|
|
4384
|
+
|
|
3534
4385
|
|
|
3535
4386
|
|
|
3536
4387
|
|
|
@@ -3703,7 +4554,7 @@ const defaults = {
|
|
|
3703
4554
|
},
|
|
3704
4555
|
};
|
|
3705
4556
|
|
|
3706
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach([
|
|
4557
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(_core_methodList_js__WEBPACK_IMPORTED_MODULE_7__["default"], (method) => {
|
|
3707
4558
|
defaults.headers[method] = {};
|
|
3708
4559
|
});
|
|
3709
4560
|
|
|
@@ -3712,9 +4563,9 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'hea
|
|
|
3712
4563
|
|
|
3713
4564
|
/***/ },
|
|
3714
4565
|
|
|
3715
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4566
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js"
|
|
3716
4567
|
/*!************************************************************************************************************************************************!*\
|
|
3717
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4568
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/defaults/transitional.js ***!
|
|
3718
4569
|
\************************************************************************************************************************************************/
|
|
3719
4570
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3720
4571
|
|
|
@@ -3731,14 +4582,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3731
4582
|
legacyInterceptorReqResOrdering: true,
|
|
3732
4583
|
advertiseZstdAcceptEncoding: false,
|
|
3733
4584
|
validateStatusUndefinedResolves: true,
|
|
4585
|
+
encodeBasicAuthUsername: false,
|
|
3734
4586
|
});
|
|
3735
4587
|
|
|
3736
4588
|
|
|
3737
4589
|
/***/ },
|
|
3738
4590
|
|
|
3739
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4591
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js"
|
|
3740
4592
|
/*!***********************************************************************************************************************************!*\
|
|
3741
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4593
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js ***!
|
|
3742
4594
|
\***********************************************************************************************************************************/
|
|
3743
4595
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3744
4596
|
|
|
@@ -3746,13 +4598,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3746
4598
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3747
4599
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
3748
4600
|
/* harmony export */ });
|
|
3749
|
-
const VERSION = "1.
|
|
4601
|
+
const VERSION = "1.21.1";
|
|
3750
4602
|
|
|
3751
4603
|
/***/ },
|
|
3752
4604
|
|
|
3753
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4605
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js"
|
|
3754
4606
|
/*!*******************************************************************************************************************************************************!*\
|
|
3755
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4607
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js ***!
|
|
3756
4608
|
\*******************************************************************************************************************************************************/
|
|
3757
4609
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3758
4610
|
|
|
@@ -3760,7 +4612,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3760
4612
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3761
4613
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3762
4614
|
/* harmony export */ });
|
|
3763
|
-
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/.pnpm/axios@1.
|
|
4615
|
+
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js");
|
|
3764
4616
|
|
|
3765
4617
|
|
|
3766
4618
|
|
|
@@ -3824,9 +4676,9 @@ prototype.toString = function toString(encoder) {
|
|
|
3824
4676
|
|
|
3825
4677
|
/***/ },
|
|
3826
4678
|
|
|
3827
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4679
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js"
|
|
3828
4680
|
/*!*************************************************************************************************************************************************!*\
|
|
3829
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4681
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/HttpStatusCode.js ***!
|
|
3830
4682
|
\*************************************************************************************************************************************************/
|
|
3831
4683
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3832
4684
|
|
|
@@ -3871,14 +4723,22 @@ const HttpStatusCode = {
|
|
|
3871
4723
|
Gone: 410,
|
|
3872
4724
|
LengthRequired: 411,
|
|
3873
4725
|
PreconditionFailed: 412,
|
|
4726
|
+
/**
|
|
4727
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
4728
|
+
*/
|
|
3874
4729
|
PayloadTooLarge: 413,
|
|
4730
|
+
ContentTooLarge: 413,
|
|
3875
4731
|
UriTooLong: 414,
|
|
3876
4732
|
UnsupportedMediaType: 415,
|
|
3877
4733
|
RangeNotSatisfiable: 416,
|
|
3878
4734
|
ExpectationFailed: 417,
|
|
3879
4735
|
ImATeapot: 418,
|
|
3880
4736
|
MisdirectedRequest: 421,
|
|
4737
|
+
/**
|
|
4738
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
4739
|
+
*/
|
|
3881
4740
|
UnprocessableEntity: 422,
|
|
4741
|
+
UnprocessableContent: 422,
|
|
3882
4742
|
Locked: 423,
|
|
3883
4743
|
FailedDependency: 424,
|
|
3884
4744
|
TooEarly: 425,
|
|
@@ -3908,7 +4768,9 @@ const HttpStatusCode = {
|
|
|
3908
4768
|
};
|
|
3909
4769
|
|
|
3910
4770
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
3911
|
-
HttpStatusCode[value]
|
|
4771
|
+
if (HttpStatusCode[value] === undefined) {
|
|
4772
|
+
HttpStatusCode[value] = key;
|
|
4773
|
+
}
|
|
3912
4774
|
});
|
|
3913
4775
|
|
|
3914
4776
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HttpStatusCode);
|
|
@@ -3916,9 +4778,9 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
3916
4778
|
|
|
3917
4779
|
/***/ },
|
|
3918
4780
|
|
|
3919
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4781
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js"
|
|
3920
4782
|
/*!***************************************************************************************************************************************!*\
|
|
3921
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4783
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js ***!
|
|
3922
4784
|
\***************************************************************************************************************************************/
|
|
3923
4785
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3924
4786
|
|
|
@@ -3944,9 +4806,9 @@ function bind(fn, thisArg) {
|
|
|
3944
4806
|
|
|
3945
4807
|
/***/ },
|
|
3946
4808
|
|
|
3947
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4809
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js"
|
|
3948
4810
|
/*!*******************************************************************************************************************************************!*\
|
|
3949
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4811
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js ***!
|
|
3950
4812
|
\*******************************************************************************************************************************************/
|
|
3951
4813
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
3952
4814
|
|
|
@@ -3955,8 +4817,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3955
4817
|
/* harmony export */ "default": () => (/* binding */ buildURL),
|
|
3956
4818
|
/* harmony export */ encode: () => (/* binding */ encode)
|
|
3957
4819
|
/* harmony export */ });
|
|
3958
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
3959
|
-
/* harmony import */ var _AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosURLSearchParams.js */ "./node_modules/.pnpm/axios@1.
|
|
4820
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
4821
|
+
/* harmony import */ var _AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosURLSearchParams.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js");
|
|
3960
4822
|
|
|
3961
4823
|
|
|
3962
4824
|
|
|
@@ -4030,9 +4892,9 @@ function buildURL(url, params, options) {
|
|
|
4030
4892
|
|
|
4031
4893
|
/***/ },
|
|
4032
4894
|
|
|
4033
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4895
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js"
|
|
4034
4896
|
/*!**********************************************************************************************************************************************!*\
|
|
4035
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4897
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/combineURLs.js ***!
|
|
4036
4898
|
\**********************************************************************************************************************************************/
|
|
4037
4899
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4038
4900
|
|
|
@@ -4067,9 +4929,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
4067
4929
|
|
|
4068
4930
|
/***/ },
|
|
4069
4931
|
|
|
4070
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
4932
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js"
|
|
4071
4933
|
/*!*************************************************************************************************************************************************!*\
|
|
4072
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
4934
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/composeSignals.js ***!
|
|
4073
4935
|
\*************************************************************************************************************************************************/
|
|
4074
4936
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4075
4937
|
|
|
@@ -4077,9 +4939,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4077
4939
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4078
4940
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4079
4941
|
/* harmony export */ });
|
|
4080
|
-
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/.pnpm/axios@1.
|
|
4081
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
4082
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
4942
|
+
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/cancel/CanceledError.js");
|
|
4943
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
4944
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
4083
4945
|
|
|
4084
4946
|
|
|
4085
4947
|
|
|
@@ -4116,12 +4978,15 @@ const composeSignals = (signals, timeout) => {
|
|
|
4116
4978
|
}, timeout);
|
|
4117
4979
|
|
|
4118
4980
|
const unsubscribe = () => {
|
|
4119
|
-
if (!signals) {
|
|
4981
|
+
if (!signals) {
|
|
4982
|
+
return;
|
|
4983
|
+
}
|
|
4120
4984
|
timer && clearTimeout(timer);
|
|
4121
4985
|
timer = null;
|
|
4122
4986
|
signals.forEach((signal) => {
|
|
4123
|
-
signal
|
|
4124
|
-
|
|
4987
|
+
const unsubscribeSignal = _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].getSafeProp(signal, 'unsubscribe');
|
|
4988
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isFunction(unsubscribeSignal)
|
|
4989
|
+
? unsubscribeSignal.call(signal, onabort)
|
|
4125
4990
|
: signal.removeEventListener('abort', onabort);
|
|
4126
4991
|
});
|
|
4127
4992
|
signals = null;
|
|
@@ -4152,9 +5017,9 @@ const composeSignals = (signals, timeout) => {
|
|
|
4152
5017
|
|
|
4153
5018
|
/***/ },
|
|
4154
5019
|
|
|
4155
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5020
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js"
|
|
4156
5021
|
/*!******************************************************************************************************************************************!*\
|
|
4157
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5022
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js ***!
|
|
4158
5023
|
\******************************************************************************************************************************************/
|
|
4159
5024
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4160
5025
|
|
|
@@ -4162,11 +5027,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4162
5027
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4163
5028
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4164
5029
|
/* harmony export */ });
|
|
4165
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
4166
|
-
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.
|
|
5030
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
5031
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js");
|
|
4167
5032
|
|
|
4168
5033
|
|
|
4169
5034
|
|
|
5035
|
+
const decodeCookieValue = (value) => {
|
|
5036
|
+
try {
|
|
5037
|
+
return decodeURIComponent(value);
|
|
5038
|
+
} catch (e) {
|
|
5039
|
+
return value;
|
|
5040
|
+
}
|
|
5041
|
+
};
|
|
5042
|
+
|
|
4170
5043
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasStandardBrowserEnv
|
|
4171
5044
|
? // Standard browser envs support document.cookie
|
|
4172
5045
|
{
|
|
@@ -4196,26 +5069,39 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4196
5069
|
|
|
4197
5070
|
read(name) {
|
|
4198
5071
|
if (typeof document === 'undefined') return null;
|
|
5072
|
+
const cookieString = document.cookie;
|
|
5073
|
+
if (!cookieString) return null;
|
|
4199
5074
|
// Match name=value by splitting on the semicolon separator instead of building a
|
|
4200
5075
|
// RegExp from `name` — interpolating an unescaped string into a RegExp would let
|
|
4201
5076
|
// metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or
|
|
4202
5077
|
// match the wrong cookie. Browsers may serialize cookie pairs as either ";" or
|
|
4203
5078
|
// "; ", so ignore optional whitespace before each cookie name.
|
|
4204
|
-
const cookies =
|
|
5079
|
+
const cookies = cookieString.split(';');
|
|
4205
5080
|
for (let i = 0; i < cookies.length; i++) {
|
|
4206
5081
|
const cookie = cookies[i].replace(/^\s+/, '');
|
|
4207
5082
|
const eq = cookie.indexOf('=');
|
|
4208
5083
|
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
4209
|
-
|
|
4210
|
-
return decodeURIComponent(cookie.slice(eq + 1));
|
|
4211
|
-
} catch (e) {
|
|
4212
|
-
return cookie.slice(eq + 1);
|
|
4213
|
-
}
|
|
5084
|
+
return decodeCookieValue(cookie.slice(eq + 1));
|
|
4214
5085
|
}
|
|
4215
5086
|
}
|
|
4216
5087
|
return null;
|
|
4217
5088
|
},
|
|
4218
5089
|
|
|
5090
|
+
async readAsync(name) {
|
|
5091
|
+
try {
|
|
5092
|
+
const store = typeof window !== 'undefined' && window.cookieStore;
|
|
5093
|
+
if (store && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(store.get)) {
|
|
5094
|
+
const cookie = await store.get(name);
|
|
5095
|
+
// Both APIs expose stored bytes; preserve Axios's existing URI decoding.
|
|
5096
|
+
return cookie ? decodeCookieValue(cookie.value) : null;
|
|
5097
|
+
}
|
|
5098
|
+
} catch (e) {
|
|
5099
|
+
// Restricted or unavailable storage retains the synchronous fallback.
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5102
|
+
return this.read(name);
|
|
5103
|
+
},
|
|
5104
|
+
|
|
4219
5105
|
remove(name) {
|
|
4220
5106
|
this.write(name, '', Date.now() - 86400000, '/');
|
|
4221
5107
|
},
|
|
@@ -4226,15 +5112,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4226
5112
|
read() {
|
|
4227
5113
|
return null;
|
|
4228
5114
|
},
|
|
5115
|
+
async readAsync() {
|
|
5116
|
+
return null;
|
|
5117
|
+
},
|
|
4229
5118
|
remove() {},
|
|
4230
5119
|
});
|
|
4231
5120
|
|
|
4232
5121
|
|
|
4233
5122
|
/***/ },
|
|
4234
5123
|
|
|
4235
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5124
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js"
|
|
4236
5125
|
/*!**************************************************************************************************************************************************************!*\
|
|
4237
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5126
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js ***!
|
|
4238
5127
|
\**************************************************************************************************************************************************************/
|
|
4239
5128
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4240
5129
|
|
|
@@ -4247,7 +5136,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4247
5136
|
* Estimate data: URL byte lengths *without* allocating large buffers.
|
|
4248
5137
|
* - Fetch percent-decodes a base64 body before decoding it.
|
|
4249
5138
|
* - Node's Buffer.from(body, 'base64') sizes its backing allocation from the
|
|
4250
|
-
*
|
|
5139
|
+
* percent-decoded body, including ignored characters and content after padding.
|
|
4251
5140
|
* - Non-base64 data is percent-decoded and then encoded as UTF-8.
|
|
4252
5141
|
*/
|
|
4253
5142
|
const isHexDigit = (charCode) =>
|
|
@@ -4295,6 +5184,31 @@ const estimateBase64BufferAllocation = (body) => {
|
|
|
4295
5184
|
return Math.floor(((len - padding) * 3) / 4);
|
|
4296
5185
|
};
|
|
4297
5186
|
|
|
5187
|
+
const estimatePercentDecodedBase64BufferAllocation = (body) => {
|
|
5188
|
+
// Ordinary Base64 needs only its length and trailing padding.
|
|
5189
|
+
if (body.indexOf('%') === -1) {
|
|
5190
|
+
return estimateBase64BufferAllocation(body);
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5193
|
+
let length = 0;
|
|
5194
|
+
let previous = 0;
|
|
5195
|
+
let last = 0;
|
|
5196
|
+
|
|
5197
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
5198
|
+
let code = body.charCodeAt(i);
|
|
5199
|
+
if (code === 37 /* '%' */ && isPercentEncodedByte(body, i, len)) {
|
|
5200
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
5201
|
+
i += 2;
|
|
5202
|
+
}
|
|
5203
|
+
length++;
|
|
5204
|
+
previous = last;
|
|
5205
|
+
last = code;
|
|
5206
|
+
}
|
|
5207
|
+
|
|
5208
|
+
const padding = last === 61 ? (previous === 61 ? 2 : 1) : 0;
|
|
5209
|
+
return Math.floor(((length - padding) * 3) / 4);
|
|
5210
|
+
};
|
|
5211
|
+
|
|
4298
5212
|
const estimatePercentDecodedBase64Bytes = (body) => {
|
|
4299
5213
|
const len = body.length;
|
|
4300
5214
|
let significant = 0;
|
|
@@ -4340,16 +5254,16 @@ const estimatePercentDecodedBase64Bytes = (body) => {
|
|
|
4340
5254
|
return base64Bytes(significant);
|
|
4341
5255
|
};
|
|
4342
5256
|
|
|
4343
|
-
const estimateDataURLBytes = (url, estimateBase64) => {
|
|
5257
|
+
const estimateDataURLBytes = (url, estimateBase64, base64Pattern) => {
|
|
4344
5258
|
if (!url || typeof url !== 'string') return 0;
|
|
4345
|
-
if (
|
|
5259
|
+
if (!/^data:/i.test(url)) return 0;
|
|
4346
5260
|
|
|
4347
5261
|
const comma = url.indexOf(',');
|
|
4348
5262
|
if (comma < 0) return 0;
|
|
4349
5263
|
|
|
4350
5264
|
const meta = url.slice(5, comma);
|
|
4351
5265
|
const body = url.slice(comma + 1);
|
|
4352
|
-
const isBase64 =
|
|
5266
|
+
const isBase64 = base64Pattern.test(meta);
|
|
4353
5267
|
|
|
4354
5268
|
if (isBase64) {
|
|
4355
5269
|
return estimateBase64(body);
|
|
@@ -4396,26 +5310,157 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
4396
5310
|
|
|
4397
5311
|
return estimateDataURLBytes(
|
|
4398
5312
|
fragmentIndex === -1 ? url : url.slice(0, fragmentIndex),
|
|
4399
|
-
estimatePercentDecodedBase64Bytes
|
|
5313
|
+
estimatePercentDecodedBase64Bytes,
|
|
5314
|
+
/; *base64[\t\n\f\r ]*$/i
|
|
4400
5315
|
);
|
|
4401
5316
|
}
|
|
4402
5317
|
|
|
4403
5318
|
/**
|
|
4404
|
-
* Estimate the Buffer backing allocation used
|
|
5319
|
+
* Estimate the Buffer backing allocation used after Node's percent-decoding step.
|
|
4405
5320
|
*
|
|
4406
5321
|
* @param {string} url
|
|
4407
5322
|
* @returns {number}
|
|
4408
5323
|
*/
|
|
4409
5324
|
function estimateDataURLBufferAllocation(url) {
|
|
4410
|
-
|
|
5325
|
+
// Match fromDataURI's case-insensitive protocol and encoding suffix.
|
|
5326
|
+
return estimateDataURLBytes(url, estimatePercentDecodedBase64BufferAllocation, /;base64$/i);
|
|
5327
|
+
}
|
|
5328
|
+
|
|
5329
|
+
|
|
5330
|
+
/***/ },
|
|
5331
|
+
|
|
5332
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToBlob.js"
|
|
5333
|
+
/*!*************************************************************************************************************************************************!*\
|
|
5334
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToBlob.js ***!
|
|
5335
|
+
\*************************************************************************************************************************************************/
|
|
5336
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5337
|
+
|
|
5338
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5339
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5340
|
+
/* harmony export */ FormDataError: () => (/* binding */ FormDataError),
|
|
5341
|
+
/* harmony export */ "default": () => (/* binding */ formDataToBlob)
|
|
5342
|
+
/* harmony export */ });
|
|
5343
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
5344
|
+
|
|
5345
|
+
|
|
5346
|
+
const CRLF = '\r\n';
|
|
5347
|
+
const normalizeLines = (value) => String(value).replace(/\r\n|\r|\n/g, CRLF);
|
|
5348
|
+
const escapeName = (value) =>
|
|
5349
|
+
String(value).replace(/[\r\n"]/g, (char) =>
|
|
5350
|
+
char === '\r' ? '%0D' : char === '\n' ? '%0A' : '%22'
|
|
5351
|
+
);
|
|
5352
|
+
|
|
5353
|
+
// Count UTF-8 bytes without allocating an encoded copy of a field. FormData
|
|
5354
|
+
// string values normalize line endings; Blob/File contents remain unchanged.
|
|
5355
|
+
const stringBytes = (value, normalize) => {
|
|
5356
|
+
let length = 0;
|
|
5357
|
+
for (let i = 0; i < value.length; i++) {
|
|
5358
|
+
const code = value.charCodeAt(i);
|
|
5359
|
+
if (normalize && (code === 13 || code === 10)) {
|
|
5360
|
+
if (code === 13 && value.charCodeAt(i + 1) === 10) i++;
|
|
5361
|
+
length += 2;
|
|
5362
|
+
} else if (code < 0x80) {
|
|
5363
|
+
length++;
|
|
5364
|
+
} else if (code < 0x800) {
|
|
5365
|
+
length += 2;
|
|
5366
|
+
} else if (
|
|
5367
|
+
code >= 0xd800 &&
|
|
5368
|
+
code <= 0xdbff &&
|
|
5369
|
+
value.charCodeAt(i + 1) >= 0xdc00 &&
|
|
5370
|
+
value.charCodeAt(i + 1) <= 0xdfff
|
|
5371
|
+
) {
|
|
5372
|
+
length += 4;
|
|
5373
|
+
i++;
|
|
5374
|
+
} else {
|
|
5375
|
+
length += 3;
|
|
5376
|
+
}
|
|
5377
|
+
}
|
|
5378
|
+
return length;
|
|
5379
|
+
};
|
|
5380
|
+
|
|
5381
|
+
// Describe serialization failures independently of any request library.
|
|
5382
|
+
class FormDataError extends TypeError {
|
|
5383
|
+
constructor(message, reason) {
|
|
5384
|
+
super(message);
|
|
5385
|
+
this.name = 'FormDataError';
|
|
5386
|
+
this.reason = reason;
|
|
5387
|
+
}
|
|
5388
|
+
}
|
|
5389
|
+
|
|
5390
|
+
// The caller supplies the boundary, Blob implementation, and limit error.
|
|
5391
|
+
function formDataToBlob(form, Blob, limit, limitError, boundary) {
|
|
5392
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(Blob)) {
|
|
5393
|
+
throw new FormDataError('Blob is not supported', 'blob');
|
|
5394
|
+
}
|
|
5395
|
+
|
|
5396
|
+
if (
|
|
5397
|
+
!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(boundary) ||
|
|
5398
|
+
!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(boundary) ||
|
|
5399
|
+
/ $/.test(boundary)
|
|
5400
|
+
) {
|
|
5401
|
+
throw new FormDataError('Invalid multipart boundary', 'boundary');
|
|
5402
|
+
}
|
|
5403
|
+
const footer = '--' + boundary + '--' + CRLF;
|
|
5404
|
+
let length = footer.length;
|
|
5405
|
+
const parts = [];
|
|
5406
|
+
const checkLength = (extra) => {
|
|
5407
|
+
if (length + extra > limit) throw limitError();
|
|
5408
|
+
};
|
|
5409
|
+
checkLength(0);
|
|
5410
|
+
|
|
5411
|
+
for (const [name, value] of form) {
|
|
5412
|
+
const isString = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(value);
|
|
5413
|
+
const valueLength = isString ? stringBytes(value, true) : value.size;
|
|
5414
|
+
if (!Number.isFinite(valueLength) || valueLength < 0) {
|
|
5415
|
+
throw new FormDataError('Unsupported FormData part size', 'part');
|
|
5416
|
+
}
|
|
5417
|
+
// Reject large values and names before building normalized header strings.
|
|
5418
|
+
checkLength(
|
|
5419
|
+
valueLength +
|
|
5420
|
+
stringBytes(name, true) +
|
|
5421
|
+
(!isString && value.name ? stringBytes(value.name, false) : 0) +
|
|
5422
|
+
(!isString && value.type ? stringBytes(value.type, false) : 0)
|
|
5423
|
+
);
|
|
5424
|
+
|
|
5425
|
+
let header =
|
|
5426
|
+
'--' +
|
|
5427
|
+
boundary +
|
|
5428
|
+
CRLF +
|
|
5429
|
+
'Content-Disposition: form-data; name="' +
|
|
5430
|
+
escapeName(normalizeLines(name)) +
|
|
5431
|
+
'"';
|
|
5432
|
+
if (!isString) {
|
|
5433
|
+
header +=
|
|
5434
|
+
'; filename="' +
|
|
5435
|
+
escapeName(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(value.name) ? value.name : 'blob') +
|
|
5436
|
+
'"' +
|
|
5437
|
+
CRLF +
|
|
5438
|
+
'Content-Type: ' +
|
|
5439
|
+
String(value.type || 'application/octet-stream').replace(/[\r\n]/g, '');
|
|
5440
|
+
}
|
|
5441
|
+
header += CRLF + CRLF;
|
|
5442
|
+
const partLength = stringBytes(header, false) + valueLength + CRLF.length;
|
|
5443
|
+
checkLength(partLength);
|
|
5444
|
+
length += partLength;
|
|
5445
|
+
parts.push({ header, value, isString });
|
|
5446
|
+
}
|
|
5447
|
+
|
|
5448
|
+
// Native Blob composition retains existing Blob/File data. No file is read
|
|
5449
|
+
// and no complete multipart ArrayBuffer is created to determine its length.
|
|
5450
|
+
const blobParts = [];
|
|
5451
|
+
for (const part of parts) {
|
|
5452
|
+
blobParts.push(part.header, part.isString ? normalizeLines(part.value) : part.value, CRLF);
|
|
5453
|
+
}
|
|
5454
|
+
blobParts.push(footer);
|
|
5455
|
+
return new Blob(blobParts, { type: 'multipart/form-data; boundary=' + boundary });
|
|
4411
5456
|
}
|
|
4412
5457
|
|
|
4413
5458
|
|
|
4414
5459
|
/***/ },
|
|
4415
5460
|
|
|
4416
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5461
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js"
|
|
4417
5462
|
/*!*************************************************************************************************************************************************!*\
|
|
4418
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5463
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/formDataToJSON.js ***!
|
|
4419
5464
|
\*************************************************************************************************************************************************/
|
|
4420
5465
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4421
5466
|
|
|
@@ -4423,9 +5468,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4423
5468
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4424
5469
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4425
5470
|
/* harmony export */ });
|
|
4426
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
4427
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
4428
|
-
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/.pnpm/axios@1.
|
|
5471
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
5472
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
5473
|
+
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js");
|
|
4429
5474
|
|
|
4430
5475
|
|
|
4431
5476
|
|
|
@@ -4493,6 +5538,29 @@ function arrayToObject(arr) {
|
|
|
4493
5538
|
return obj;
|
|
4494
5539
|
}
|
|
4495
5540
|
|
|
5541
|
+
function normalizeArray(value) {
|
|
5542
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value)) return value;
|
|
5543
|
+
|
|
5544
|
+
const keys = Object.keys(value);
|
|
5545
|
+
return keys.length !== value.length || keys.some((key, index) => key !== String(index))
|
|
5546
|
+
? arrayToObject(value)
|
|
5547
|
+
: value;
|
|
5548
|
+
}
|
|
5549
|
+
|
|
5550
|
+
function normalizeArrays(obj) {
|
|
5551
|
+
const pending = [obj];
|
|
5552
|
+
while (pending.length) {
|
|
5553
|
+
const target = pending.pop();
|
|
5554
|
+
Object.keys(target).forEach((key) => {
|
|
5555
|
+
const value = (target[key] = normalizeArray(target[key]));
|
|
5556
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(value)) {
|
|
5557
|
+
pending.push(value);
|
|
5558
|
+
}
|
|
5559
|
+
});
|
|
5560
|
+
}
|
|
5561
|
+
return obj;
|
|
5562
|
+
}
|
|
5563
|
+
|
|
4496
5564
|
/**
|
|
4497
5565
|
* It takes a FormData object and returns a JavaScript object
|
|
4498
5566
|
*
|
|
@@ -4514,6 +5582,7 @@ function formDataToJSON(formData) {
|
|
|
4514
5582
|
|
|
4515
5583
|
if (isLast) {
|
|
4516
5584
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasOwnProp(target, name)) {
|
|
5585
|
+
target[name] = normalizeArray(target[name]);
|
|
4517
5586
|
target[name] = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(target[name])
|
|
4518
5587
|
? target[name].concat(value)
|
|
4519
5588
|
: [target[name], value];
|
|
@@ -4544,7 +5613,7 @@ function formDataToJSON(formData) {
|
|
|
4544
5613
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
4545
5614
|
});
|
|
4546
5615
|
|
|
4547
|
-
return obj;
|
|
5616
|
+
return normalizeArrays(obj);
|
|
4548
5617
|
}
|
|
4549
5618
|
|
|
4550
5619
|
return null;
|
|
@@ -4555,9 +5624,9 @@ function formDataToJSON(formData) {
|
|
|
4555
5624
|
|
|
4556
5625
|
/***/ },
|
|
4557
5626
|
|
|
4558
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5627
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js"
|
|
4559
5628
|
/*!************************************************************************************************************************************************!*\
|
|
4560
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5629
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
|
|
4561
5630
|
\************************************************************************************************************************************************/
|
|
4562
5631
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4563
5632
|
|
|
@@ -4588,9 +5657,9 @@ function isAbsoluteURL(url) {
|
|
|
4588
5657
|
|
|
4589
5658
|
/***/ },
|
|
4590
5659
|
|
|
4591
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5660
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js"
|
|
4592
5661
|
/*!***********************************************************************************************************************************************!*\
|
|
4593
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5662
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isAxiosError.js ***!
|
|
4594
5663
|
\***********************************************************************************************************************************************/
|
|
4595
5664
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4596
5665
|
|
|
@@ -4598,7 +5667,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4598
5667
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4599
5668
|
/* harmony export */ "default": () => (/* binding */ isAxiosError)
|
|
4600
5669
|
/* harmony export */ });
|
|
4601
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
5670
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
4602
5671
|
|
|
4603
5672
|
|
|
4604
5673
|
|
|
@@ -4617,9 +5686,9 @@ function isAxiosError(payload) {
|
|
|
4617
5686
|
|
|
4618
5687
|
/***/ },
|
|
4619
5688
|
|
|
4620
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5689
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js"
|
|
4621
5690
|
/*!**************************************************************************************************************************************************!*\
|
|
4622
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5691
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
|
|
4623
5692
|
\**************************************************************************************************************************************************/
|
|
4624
5693
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4625
5694
|
|
|
@@ -4627,30 +5696,63 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4627
5696
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4628
5697
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4629
5698
|
/* harmony export */ });
|
|
4630
|
-
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.
|
|
5699
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js");
|
|
4631
5700
|
|
|
4632
5701
|
|
|
4633
5702
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv
|
|
4634
|
-
? ((origin
|
|
4635
|
-
url = new URL(url, _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin);
|
|
5703
|
+
? ((origin) => (url) => {
|
|
5704
|
+
url = new URL(url, document.baseURI || _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin);
|
|
4636
5705
|
|
|
4637
5706
|
return (
|
|
4638
|
-
origin.protocol === url.protocol &&
|
|
4639
|
-
origin.host === url.host &&
|
|
4640
|
-
(isMSIE || origin.port === url.port)
|
|
5707
|
+
origin.protocol === url.protocol && origin.host === url.host && origin.port === url.port
|
|
4641
5708
|
);
|
|
4642
|
-
})(
|
|
4643
|
-
new URL(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin),
|
|
4644
|
-
_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator && /(msie|trident)/i.test(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].navigator.userAgent)
|
|
4645
|
-
)
|
|
5709
|
+
})(new URL(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin))
|
|
4646
5710
|
: () => true);
|
|
4647
5711
|
|
|
4648
5712
|
|
|
4649
5713
|
/***/ },
|
|
4650
5714
|
|
|
4651
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5715
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js"
|
|
5716
|
+
/*!***************************************************************************************************************************************************************!*\
|
|
5717
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js ***!
|
|
5718
|
+
\***************************************************************************************************************************************************************/
|
|
5719
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5720
|
+
|
|
5721
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5722
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5723
|
+
/* harmony export */ "default": () => (/* binding */ normalizeURLForProtocolCheck)
|
|
5724
|
+
/* harmony export */ });
|
|
5725
|
+
|
|
5726
|
+
|
|
5727
|
+
const urlParserControlCharacters = /[\t\n\r]/g;
|
|
5728
|
+
|
|
5729
|
+
/**
|
|
5730
|
+
* Match WHATWG URL preprocessing before checking a URL's protocol.
|
|
5731
|
+
*
|
|
5732
|
+
* @param {string} url
|
|
5733
|
+
*
|
|
5734
|
+
* @returns {string}
|
|
5735
|
+
*/
|
|
5736
|
+
function normalizeURLForProtocolCheck(url) {
|
|
5737
|
+
if (typeof url !== 'string') {
|
|
5738
|
+
return url;
|
|
5739
|
+
}
|
|
5740
|
+
|
|
5741
|
+
let start = 0;
|
|
5742
|
+
|
|
5743
|
+
while (start < url.length && url.charCodeAt(start) <= 0x20) {
|
|
5744
|
+
start++;
|
|
5745
|
+
}
|
|
5746
|
+
|
|
5747
|
+
return url.slice(start).replace(urlParserControlCharacters, '');
|
|
5748
|
+
}
|
|
5749
|
+
|
|
5750
|
+
|
|
5751
|
+
/***/ },
|
|
5752
|
+
|
|
5753
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/null.js"
|
|
4652
5754
|
/*!***************************************************************************************************************************************!*\
|
|
4653
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5755
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/null.js ***!
|
|
4654
5756
|
\***************************************************************************************************************************************/
|
|
4655
5757
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4656
5758
|
|
|
@@ -4664,9 +5766,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4664
5766
|
|
|
4665
5767
|
/***/ },
|
|
4666
5768
|
|
|
4667
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5769
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js"
|
|
4668
5770
|
/*!***********************************************************************************************************************************************!*\
|
|
4669
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5771
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseHeaders.js ***!
|
|
4670
5772
|
\***********************************************************************************************************************************************/
|
|
4671
5773
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4672
5774
|
|
|
@@ -4674,7 +5776,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4674
5776
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4675
5777
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4676
5778
|
/* harmony export */ });
|
|
4677
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
5779
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
4678
5780
|
|
|
4679
5781
|
|
|
4680
5782
|
|
|
@@ -4716,7 +5818,8 @@ const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toOb
|
|
|
4716
5818
|
* @returns {Object} Headers parsed into an object
|
|
4717
5819
|
*/
|
|
4718
5820
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((rawHeaders) => {
|
|
4719
|
-
|
|
5821
|
+
// Header names are data, including __proto__; avoid inherited setters.
|
|
5822
|
+
const parsed = Object.create(null);
|
|
4720
5823
|
let key;
|
|
4721
5824
|
let val;
|
|
4722
5825
|
let i;
|
|
@@ -4750,9 +5853,9 @@ const ignoreDuplicateOf = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toOb
|
|
|
4750
5853
|
|
|
4751
5854
|
/***/ },
|
|
4752
5855
|
|
|
4753
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5856
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js"
|
|
4754
5857
|
/*!************************************************************************************************************************************************!*\
|
|
4755
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5858
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/parseProtocol.js ***!
|
|
4756
5859
|
\************************************************************************************************************************************************/
|
|
4757
5860
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4758
5861
|
|
|
@@ -4764,15 +5867,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4764
5867
|
|
|
4765
5868
|
function parseProtocol(url) {
|
|
4766
5869
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
4767
|
-
return (match && match[1]) || '';
|
|
5870
|
+
return (match && match[1].toLowerCase()) || '';
|
|
4768
5871
|
}
|
|
4769
5872
|
|
|
4770
5873
|
|
|
4771
5874
|
/***/ },
|
|
4772
5875
|
|
|
4773
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5876
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js"
|
|
4774
5877
|
/*!*******************************************************************************************************************************************************!*\
|
|
4775
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5878
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/progressEventReducer.js ***!
|
|
4776
5879
|
\*******************************************************************************************************************************************************/
|
|
4777
5880
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4778
5881
|
|
|
@@ -4782,9 +5885,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4782
5885
|
/* harmony export */ progressEventDecorator: () => (/* binding */ progressEventDecorator),
|
|
4783
5886
|
/* harmony export */ progressEventReducer: () => (/* binding */ progressEventReducer)
|
|
4784
5887
|
/* harmony export */ });
|
|
4785
|
-
/* harmony import */ var _speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./speedometer.js */ "./node_modules/.pnpm/axios@1.
|
|
4786
|
-
/* harmony import */ var _throttle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./throttle.js */ "./node_modules/.pnpm/axios@1.
|
|
4787
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
5888
|
+
/* harmony import */ var _speedometer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./speedometer.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js");
|
|
5889
|
+
/* harmony import */ var _throttle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./throttle.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js");
|
|
5890
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
4788
5891
|
|
|
4789
5892
|
|
|
4790
5893
|
|
|
@@ -4794,7 +5897,7 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
4794
5897
|
const _speedometer = (0,_speedometer_js__WEBPACK_IMPORTED_MODULE_0__["default"])(50, 250);
|
|
4795
5898
|
|
|
4796
5899
|
return (0,_throttle_js__WEBPACK_IMPORTED_MODULE_1__["default"])((e) => {
|
|
4797
|
-
if (!e ||
|
|
5900
|
+
if (!e || !_utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].isNumber(e.loaded)) {
|
|
4798
5901
|
return;
|
|
4799
5902
|
}
|
|
4800
5903
|
const rawLoaded = e.loaded;
|
|
@@ -4843,9 +5946,9 @@ const asyncDecorator =
|
|
|
4843
5946
|
|
|
4844
5947
|
/***/ },
|
|
4845
5948
|
|
|
4846
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
5949
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js"
|
|
4847
5950
|
/*!************************************************************************************************************************************************!*\
|
|
4848
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
5951
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/resolveConfig.js ***!
|
|
4849
5952
|
\************************************************************************************************************************************************/
|
|
4850
5953
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4851
5954
|
|
|
@@ -4853,16 +5956,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4853
5956
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4854
5957
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
4855
5958
|
/* harmony export */ });
|
|
4856
|
-
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.
|
|
4857
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
4858
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
4859
|
-
/* harmony import */ var _isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isURLSameOrigin.js */ "./node_modules/.pnpm/axios@1.
|
|
4860
|
-
/* harmony import */ var _cookies_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cookies.js */ "./node_modules/.pnpm/axios@1.
|
|
4861
|
-
/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/buildFullPath.js */ "./node_modules/.pnpm/axios@1.
|
|
4862
|
-
/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/mergeConfig.js */ "./node_modules/.pnpm/axios@1.
|
|
4863
|
-
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.
|
|
4864
|
-
/* harmony import */ var _core_setFormDataHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/setFormDataHeaders.js */ "./node_modules/.pnpm/axios@1.
|
|
4865
|
-
/* harmony import */ var _buildURL_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./buildURL.js */ "./node_modules/.pnpm/axios@1.
|
|
5959
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js");
|
|
5960
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
5961
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
5962
|
+
/* harmony import */ var _isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isURLSameOrigin.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/isURLSameOrigin.js");
|
|
5963
|
+
/* harmony import */ var _cookies_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cookies.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/cookies.js");
|
|
5964
|
+
/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/buildFullPath.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/buildFullPath.js");
|
|
5965
|
+
/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/mergeConfig.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/mergeConfig.js");
|
|
5966
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosHeaders.js");
|
|
5967
|
+
/* harmony import */ var _core_setFormDataHeaders_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/setFormDataHeaders.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/setFormDataHeaders.js");
|
|
5968
|
+
/* harmony import */ var _buildURL_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./buildURL.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/buildURL.js");
|
|
4866
5969
|
|
|
4867
5970
|
|
|
4868
5971
|
|
|
@@ -4887,7 +5990,9 @@ const encodeUTF8 = (str) =>
|
|
|
4887
5990
|
String.fromCharCode(parseInt(hex, 16))
|
|
4888
5991
|
);
|
|
4889
5992
|
|
|
4890
|
-
|
|
5993
|
+
const readCookie = (name) => _cookies_js__WEBPACK_IMPORTED_MODULE_4__["default"].read(name);
|
|
5994
|
+
|
|
5995
|
+
function resolveConfig(config, readXsrfCookie = readCookie) {
|
|
4891
5996
|
const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_6__["default"])({}, config);
|
|
4892
5997
|
|
|
4893
5998
|
// Read only own properties to prevent prototype pollution gadgets
|
|
@@ -4916,11 +6021,22 @@ function resolveConfig(config) {
|
|
|
4916
6021
|
if (auth) {
|
|
4917
6022
|
const username = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].getSafeProp(auth, 'username') || '';
|
|
4918
6023
|
const password = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].getSafeProp(auth, 'password') || '';
|
|
6024
|
+
const transitional = own('transitional');
|
|
6025
|
+
const encodeUsername =
|
|
6026
|
+
transitional &&
|
|
6027
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasOwnProp(transitional, 'encodeBasicAuthUsername') &&
|
|
6028
|
+
transitional.encodeBasicAuthUsername === true;
|
|
4919
6029
|
|
|
4920
6030
|
try {
|
|
4921
6031
|
headers.set(
|
|
4922
6032
|
'Authorization',
|
|
4923
|
-
|
|
6033
|
+
// Preserve legacy username bytes unless the caller opts in to UTF-8.
|
|
6034
|
+
'Basic ' +
|
|
6035
|
+
btoa(
|
|
6036
|
+
(encodeUsername ? encodeUTF8(username) : username) +
|
|
6037
|
+
':' +
|
|
6038
|
+
(password ? encodeUTF8(password) : '')
|
|
6039
|
+
)
|
|
4924
6040
|
);
|
|
4925
6041
|
} catch (e) {
|
|
4926
6042
|
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_BAD_OPTION_VALUE, config);
|
|
@@ -4928,15 +6044,17 @@ function resolveConfig(config) {
|
|
|
4928
6044
|
}
|
|
4929
6045
|
|
|
4930
6046
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFormData(data)) {
|
|
6047
|
+
const getHeaders = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].getSafeProp(data, 'getHeaders');
|
|
6048
|
+
|
|
4931
6049
|
if (
|
|
4932
6050
|
_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv ||
|
|
4933
6051
|
_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserWebWorkerEnv ||
|
|
4934
6052
|
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isReactNative(data)
|
|
4935
6053
|
) {
|
|
4936
6054
|
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
4937
|
-
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(
|
|
6055
|
+
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(getHeaders)) {
|
|
4938
6056
|
// Node.js FormData (like form-data package)
|
|
4939
|
-
(0,_core_setFormDataHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"])(headers,
|
|
6057
|
+
(0,_core_setFormDataHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"])(headers, getHeaders.call(data), own('formDataHeaderPolicy'));
|
|
4940
6058
|
}
|
|
4941
6059
|
}
|
|
4942
6060
|
|
|
@@ -4956,7 +6074,7 @@ function resolveConfig(config) {
|
|
|
4956
6074
|
withXSRFToken === true || (withXSRFToken == null && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.url));
|
|
4957
6075
|
|
|
4958
6076
|
if (shouldSendXSRF) {
|
|
4959
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
6077
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && readXsrfCookie(xsrfCookieName);
|
|
4960
6078
|
|
|
4961
6079
|
if (xsrfValue) {
|
|
4962
6080
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -4972,9 +6090,9 @@ function resolveConfig(config) {
|
|
|
4972
6090
|
|
|
4973
6091
|
/***/ },
|
|
4974
6092
|
|
|
4975
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6093
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js"
|
|
4976
6094
|
/*!******************************************************************************************************************************************************!*\
|
|
4977
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6095
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js ***!
|
|
4978
6096
|
\******************************************************************************************************************************************************/
|
|
4979
6097
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
4980
6098
|
|
|
@@ -4984,7 +6102,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4984
6102
|
/* harmony export */ sanitizeHeaderValue: () => (/* binding */ sanitizeHeaderValue),
|
|
4985
6103
|
/* harmony export */ toByteStringHeaderObject: () => (/* binding */ toByteStringHeaderObject)
|
|
4986
6104
|
/* harmony export */ });
|
|
4987
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
6105
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
4988
6106
|
|
|
4989
6107
|
|
|
4990
6108
|
|
|
@@ -5049,9 +6167,9 @@ function toByteStringHeaderObject(headers) {
|
|
|
5049
6167
|
|
|
5050
6168
|
/***/ },
|
|
5051
6169
|
|
|
5052
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6170
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js"
|
|
5053
6171
|
/*!**********************************************************************************************************************************************!*\
|
|
5054
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6172
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/speedometer.js ***!
|
|
5055
6173
|
\**********************************************************************************************************************************************/
|
|
5056
6174
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5057
6175
|
|
|
@@ -5118,9 +6236,9 @@ function speedometer(samplesCount, min) {
|
|
|
5118
6236
|
|
|
5119
6237
|
/***/ },
|
|
5120
6238
|
|
|
5121
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6239
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js"
|
|
5122
6240
|
/*!*****************************************************************************************************************************************!*\
|
|
5123
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6241
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/spread.js ***!
|
|
5124
6242
|
\*****************************************************************************************************************************************/
|
|
5125
6243
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5126
6244
|
|
|
@@ -5160,9 +6278,9 @@ function spread(callback) {
|
|
|
5160
6278
|
|
|
5161
6279
|
/***/ },
|
|
5162
6280
|
|
|
5163
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6281
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js"
|
|
5164
6282
|
/*!*******************************************************************************************************************************************!*\
|
|
5165
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6283
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/throttle.js ***!
|
|
5166
6284
|
\*******************************************************************************************************************************************/
|
|
5167
6285
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5168
6286
|
|
|
@@ -5174,7 +6292,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5174
6292
|
* Throttle decorator
|
|
5175
6293
|
* @param {Function} fn
|
|
5176
6294
|
* @param {Number} freq
|
|
5177
|
-
* @return {Function}
|
|
6295
|
+
* @return {Array<Function>}
|
|
5178
6296
|
*/
|
|
5179
6297
|
function throttle(fn, freq) {
|
|
5180
6298
|
let timestamp = 0;
|
|
@@ -5209,8 +6327,9 @@ function throttle(fn, freq) {
|
|
|
5209
6327
|
};
|
|
5210
6328
|
|
|
5211
6329
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
6330
|
+
const flushWith = (...args) => invoke(args);
|
|
5212
6331
|
|
|
5213
|
-
return [throttled, flush];
|
|
6332
|
+
return [throttled, flush, flushWith];
|
|
5214
6333
|
}
|
|
5215
6334
|
|
|
5216
6335
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (throttle);
|
|
@@ -5218,9 +6337,9 @@ function throttle(fn, freq) {
|
|
|
5218
6337
|
|
|
5219
6338
|
/***/ },
|
|
5220
6339
|
|
|
5221
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6340
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js"
|
|
5222
6341
|
/*!*********************************************************************************************************************************************!*\
|
|
5223
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6342
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js ***!
|
|
5224
6343
|
\*********************************************************************************************************************************************/
|
|
5225
6344
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5226
6345
|
|
|
@@ -5229,9 +6348,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5229
6348
|
/* harmony export */ DEFAULT_FORM_DATA_MAX_DEPTH: () => (/* binding */ DEFAULT_FORM_DATA_MAX_DEPTH),
|
|
5230
6349
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5231
6350
|
/* harmony export */ });
|
|
5232
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
5233
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
5234
|
-
/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../platform/node/classes/Buffer.js */ "./node_modules/.pnpm/axios@1.
|
|
6351
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
6352
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
6353
|
+
/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../platform/node/classes/Buffer.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/null.js");
|
|
5235
6354
|
|
|
5236
6355
|
|
|
5237
6356
|
|
|
@@ -5333,28 +6452,18 @@ function toFormData(obj, formData, options) {
|
|
|
5333
6452
|
// eslint-disable-next-line no-param-reassign
|
|
5334
6453
|
formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__["default"] || FormData)();
|
|
5335
6454
|
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
metaTokens: true,
|
|
5341
|
-
dots: false,
|
|
5342
|
-
indexes: false,
|
|
5343
|
-
},
|
|
5344
|
-
false,
|
|
5345
|
-
function defined(option, source) {
|
|
5346
|
-
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
5347
|
-
return !_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(source[option]);
|
|
5348
|
-
}
|
|
5349
|
-
);
|
|
6455
|
+
const option = (name, fallback) => {
|
|
6456
|
+
const value = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].getSafeProp(options, name);
|
|
6457
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(value) ? fallback : value;
|
|
6458
|
+
};
|
|
5350
6459
|
|
|
5351
|
-
const metaTokens =
|
|
6460
|
+
const metaTokens = option('metaTokens', true);
|
|
5352
6461
|
// eslint-disable-next-line no-use-before-define
|
|
5353
|
-
const visitor =
|
|
5354
|
-
const dots =
|
|
5355
|
-
const indexes =
|
|
5356
|
-
const _Blob =
|
|
5357
|
-
const maxDepth =
|
|
6462
|
+
const visitor = option('visitor') || defaultVisitor;
|
|
6463
|
+
const dots = option('dots', false);
|
|
6464
|
+
const indexes = option('indexes', false);
|
|
6465
|
+
const _Blob = option('Blob') || (typeof Blob !== 'undefined' && Blob);
|
|
6466
|
+
const maxDepth = option('maxDepth', DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
5358
6467
|
const useBlob = _Blob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(formData);
|
|
5359
6468
|
const stack = [];
|
|
5360
6469
|
|
|
@@ -5384,7 +6493,10 @@ function toFormData(obj, formData, options) {
|
|
|
5384
6493
|
if (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__["default"] && _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__["default"].isBufferAvailable()) {
|
|
5385
6494
|
return _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(value);
|
|
5386
6495
|
}
|
|
5387
|
-
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](
|
|
6496
|
+
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](
|
|
6497
|
+
'Blob is not supported. Use a Buffer instead.',
|
|
6498
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_NOT_SUPPORT
|
|
6499
|
+
);
|
|
5388
6500
|
}
|
|
5389
6501
|
|
|
5390
6502
|
return value;
|
|
@@ -5522,9 +6634,9 @@ function toFormData(obj, formData, options) {
|
|
|
5522
6634
|
|
|
5523
6635
|
/***/ },
|
|
5524
6636
|
|
|
5525
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6637
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js"
|
|
5526
6638
|
/*!***************************************************************************************************************************************************!*\
|
|
5527
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6639
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toURLEncodedForm.js ***!
|
|
5528
6640
|
\***************************************************************************************************************************************************/
|
|
5529
6641
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5530
6642
|
|
|
@@ -5532,9 +6644,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5532
6644
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5533
6645
|
/* harmony export */ "default": () => (/* binding */ toURLEncodedForm)
|
|
5534
6646
|
/* harmony export */ });
|
|
5535
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.
|
|
5536
|
-
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/.pnpm/axios@1.
|
|
5537
|
-
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.
|
|
6647
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js");
|
|
6648
|
+
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/toFormData.js");
|
|
6649
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js");
|
|
5538
6650
|
|
|
5539
6651
|
|
|
5540
6652
|
|
|
@@ -5558,9 +6670,9 @@ function toURLEncodedForm(data, options) {
|
|
|
5558
6670
|
|
|
5559
6671
|
/***/ },
|
|
5560
6672
|
|
|
5561
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6673
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js"
|
|
5562
6674
|
/*!**********************************************************************************************************************************************!*\
|
|
5563
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6675
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/trackStream.js ***!
|
|
5564
6676
|
\**********************************************************************************************************************************************/
|
|
5565
6677
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5566
6678
|
|
|
@@ -5663,9 +6775,9 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
5663
6775
|
|
|
5664
6776
|
/***/ },
|
|
5665
6777
|
|
|
5666
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6778
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js"
|
|
5667
6779
|
/*!********************************************************************************************************************************************!*\
|
|
5668
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6780
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/validator.js ***!
|
|
5669
6781
|
\********************************************************************************************************************************************/
|
|
5670
6782
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5671
6783
|
|
|
@@ -5673,8 +6785,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5673
6785
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5674
6786
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5675
6787
|
/* harmony export */ });
|
|
5676
|
-
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ "./node_modules/.pnpm/axios@1.
|
|
5677
|
-
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.
|
|
6788
|
+
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../env/data.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/env/data.js");
|
|
6789
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/core/AxiosError.js");
|
|
5678
6790
|
|
|
5679
6791
|
|
|
5680
6792
|
|
|
@@ -5791,9 +6903,9 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
5791
6903
|
|
|
5792
6904
|
/***/ },
|
|
5793
6905
|
|
|
5794
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6906
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/Blob.js"
|
|
5795
6907
|
/*!********************************************************************************************************************************************************!*\
|
|
5796
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6908
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/Blob.js ***!
|
|
5797
6909
|
\********************************************************************************************************************************************************/
|
|
5798
6910
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5799
6911
|
|
|
@@ -5808,9 +6920,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5808
6920
|
|
|
5809
6921
|
/***/ },
|
|
5810
6922
|
|
|
5811
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6923
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/FormData.js"
|
|
5812
6924
|
/*!************************************************************************************************************************************************************!*\
|
|
5813
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6925
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/FormData.js ***!
|
|
5814
6926
|
\************************************************************************************************************************************************************/
|
|
5815
6927
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5816
6928
|
|
|
@@ -5825,9 +6937,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5825
6937
|
|
|
5826
6938
|
/***/ },
|
|
5827
6939
|
|
|
5828
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6940
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js"
|
|
5829
6941
|
/*!*******************************************************************************************************************************************************************!*\
|
|
5830
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6942
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js ***!
|
|
5831
6943
|
\*******************************************************************************************************************************************************************/
|
|
5832
6944
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5833
6945
|
|
|
@@ -5835,7 +6947,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5835
6947
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5836
6948
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5837
6949
|
/* harmony export */ });
|
|
5838
|
-
/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ "./node_modules/.pnpm/axios@1.
|
|
6950
|
+
/* harmony import */ var _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../helpers/AxiosURLSearchParams.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js");
|
|
5839
6951
|
|
|
5840
6952
|
|
|
5841
6953
|
|
|
@@ -5844,9 +6956,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5844
6956
|
|
|
5845
6957
|
/***/ },
|
|
5846
6958
|
|
|
5847
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6959
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/index.js"
|
|
5848
6960
|
/*!*************************************************************************************************************************************************!*\
|
|
5849
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6961
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/index.js ***!
|
|
5850
6962
|
\*************************************************************************************************************************************************/
|
|
5851
6963
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5852
6964
|
|
|
@@ -5854,9 +6966,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5854
6966
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5855
6967
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5856
6968
|
/* harmony export */ });
|
|
5857
|
-
/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ "./node_modules/.pnpm/axios@1.
|
|
5858
|
-
/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ "./node_modules/.pnpm/axios@1.
|
|
5859
|
-
/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ "./node_modules/.pnpm/axios@1.
|
|
6969
|
+
/* harmony import */ var _classes_URLSearchParams_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/URLSearchParams.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js");
|
|
6970
|
+
/* harmony import */ var _classes_FormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/FormData.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/FormData.js");
|
|
6971
|
+
/* harmony import */ var _classes_Blob_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/Blob.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/classes/Blob.js");
|
|
5860
6972
|
|
|
5861
6973
|
|
|
5862
6974
|
|
|
@@ -5874,9 +6986,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5874
6986
|
|
|
5875
6987
|
/***/ },
|
|
5876
6988
|
|
|
5877
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
6989
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js"
|
|
5878
6990
|
/*!************************************************************************************************************************************************!*\
|
|
5879
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
6991
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js ***!
|
|
5880
6992
|
\************************************************************************************************************************************************/
|
|
5881
6993
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5882
6994
|
|
|
@@ -5938,9 +7050,9 @@ const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
|
|
|
5938
7050
|
|
|
5939
7051
|
/***/ },
|
|
5940
7052
|
|
|
5941
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
7053
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js"
|
|
5942
7054
|
/*!*****************************************************************************************************************************************!*\
|
|
5943
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
7055
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/index.js ***!
|
|
5944
7056
|
\*****************************************************************************************************************************************/
|
|
5945
7057
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5946
7058
|
|
|
@@ -5948,8 +7060,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5948
7060
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5949
7061
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5950
7062
|
/* harmony export */ });
|
|
5951
|
-
/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node/index.js */ "./node_modules/.pnpm/axios@1.
|
|
5952
|
-
/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common/utils.js */ "./node_modules/.pnpm/axios@1.
|
|
7063
|
+
/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node/index.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/browser/index.js");
|
|
7064
|
+
/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common/utils.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/platform/common/utils.js");
|
|
5953
7065
|
|
|
5954
7066
|
|
|
5955
7067
|
|
|
@@ -5961,9 +7073,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5961
7073
|
|
|
5962
7074
|
/***/ },
|
|
5963
7075
|
|
|
5964
|
-
/***/ "./node_modules/.pnpm/axios@1.
|
|
7076
|
+
/***/ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js"
|
|
5965
7077
|
/*!********************************************************************************************************************************!*\
|
|
5966
|
-
!*** ./node_modules/.pnpm/axios@1.
|
|
7078
|
+
!*** ./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/utils.js ***!
|
|
5967
7079
|
\********************************************************************************************************************************/
|
|
5968
7080
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5969
7081
|
|
|
@@ -5971,7 +7083,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5971
7083
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5972
7084
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5973
7085
|
/* harmony export */ });
|
|
5974
|
-
/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/.pnpm/axios@1.
|
|
7086
|
+
/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/.pnpm/axios@1.21.1_debug@4.4.3_supports-color@8.1.1__supports-color@8.1.1/node_modules/axios/lib/helpers/bind.js");
|
|
5975
7087
|
|
|
5976
7088
|
|
|
5977
7089
|
|
|
@@ -5989,12 +7101,65 @@ const hasOwnProperty = (
|
|
|
5989
7101
|
hasOwnProperty.call(obj, prop)
|
|
5990
7102
|
)(Object.prototype);
|
|
5991
7103
|
|
|
7104
|
+
const isUnsafeObjectKey = (prop) =>
|
|
7105
|
+
typeof prop === 'string' &&
|
|
7106
|
+
(prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
|
|
7107
|
+
|
|
7108
|
+
/**
|
|
7109
|
+
* Determine whether an inherited object must be treated as a shared-prototype
|
|
7110
|
+
* boundary. Cross-realm Object.prototype objects cannot be distinguished
|
|
7111
|
+
* reliably from application-created null-prototype objects because their
|
|
7112
|
+
* properties are mutable, so all inherited terminal prototypes are excluded
|
|
7113
|
+
* as a fail-closed boundary. A null-prototype source still keeps its own
|
|
7114
|
+
* properties, as produced by mergeConfig and other safe materialization paths.
|
|
7115
|
+
*
|
|
7116
|
+
* @param {*} obj The object to inspect
|
|
7117
|
+
* @param {*} prototype The object's prototype
|
|
7118
|
+
* @param {boolean} source Whether obj is the original traversal source
|
|
7119
|
+
*
|
|
7120
|
+
* @returns {boolean} True when obj is a safe prototype traversal boundary
|
|
7121
|
+
*/
|
|
7122
|
+
const isPrototypeBoundary = (obj, prototype, source) =>
|
|
7123
|
+
obj === Object.prototype || (!source && prototype === null);
|
|
7124
|
+
|
|
7125
|
+
/**
|
|
7126
|
+
* Determine whether an object can retain its identity through code paths that
|
|
7127
|
+
* add, replace, and remove config properties without bypassing unsafe-key
|
|
7128
|
+
* filtering. Immutable objects, unsafe-key-bearing objects, and objects with
|
|
7129
|
+
* accessor or restricted data properties must be materialized instead.
|
|
7130
|
+
*
|
|
7131
|
+
* @param {*} obj The object to inspect
|
|
7132
|
+
*
|
|
7133
|
+
* @returns {boolean} True when every own property is safe and fully mutable
|
|
7134
|
+
*/
|
|
7135
|
+
const isSafeAndFullyMutable = (obj) => {
|
|
7136
|
+
if (!Object.isExtensible(obj)) {
|
|
7137
|
+
return false;
|
|
7138
|
+
}
|
|
7139
|
+
|
|
7140
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
7141
|
+
|
|
7142
|
+
if (Object.getOwnPropertySymbols) {
|
|
7143
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
7144
|
+
}
|
|
7145
|
+
|
|
7146
|
+
return props.every((prop) => {
|
|
7147
|
+
if (isUnsafeObjectKey(prop)) {
|
|
7148
|
+
return false;
|
|
7149
|
+
}
|
|
7150
|
+
|
|
7151
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
7152
|
+
|
|
7153
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
7154
|
+
});
|
|
7155
|
+
};
|
|
7156
|
+
|
|
5992
7157
|
/**
|
|
5993
|
-
* Walk the prototype chain (excluding the
|
|
5994
|
-
* an own `prop`. This distinguishes genuine own/inherited members
|
|
5995
|
-
* class accessors and template prototypes — from members injected
|
|
5996
|
-
* Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
5997
|
-
* live on Object.prototype itself and are therefore never matched.
|
|
7158
|
+
* Walk the prototype chain (excluding the source realm's Object.prototype)
|
|
7159
|
+
* looking for an own `prop`. This distinguishes genuine own/inherited members
|
|
7160
|
+
* — including class accessors and template prototypes — from members injected
|
|
7161
|
+
* via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
7162
|
+
* which live on Object.prototype itself and are therefore never matched.
|
|
5998
7163
|
*
|
|
5999
7164
|
* @param {*} thing The value whose chain to inspect
|
|
6000
7165
|
* @param {string|symbol} prop The property key to look for
|
|
@@ -6005,16 +7170,22 @@ const hasOwnInPrototypeChain = (thing, prop) => {
|
|
|
6005
7170
|
let obj = thing;
|
|
6006
7171
|
const seen = [];
|
|
6007
7172
|
|
|
6008
|
-
while (obj != null
|
|
7173
|
+
while (obj != null) {
|
|
6009
7174
|
if (seen.indexOf(obj) !== -1) {
|
|
6010
7175
|
return false;
|
|
6011
7176
|
}
|
|
6012
7177
|
seen.push(obj);
|
|
6013
7178
|
|
|
7179
|
+
const prototype = getPrototypeOf(obj);
|
|
7180
|
+
|
|
7181
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) {
|
|
7182
|
+
return false;
|
|
7183
|
+
}
|
|
7184
|
+
|
|
6014
7185
|
if (hasOwnProperty(obj, prop)) {
|
|
6015
7186
|
return true;
|
|
6016
7187
|
}
|
|
6017
|
-
obj =
|
|
7188
|
+
obj = prototype;
|
|
6018
7189
|
}
|
|
6019
7190
|
return false;
|
|
6020
7191
|
};
|
|
@@ -6033,6 +7204,69 @@ const hasOwnInPrototypeChain = (thing, prop) => {
|
|
|
6033
7204
|
const getSafeProp = (obj, prop) =>
|
|
6034
7205
|
obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
|
|
6035
7206
|
|
|
7207
|
+
/**
|
|
7208
|
+
* Flatten an object and its application-defined prototype chain into a
|
|
7209
|
+
* null-prototype object. Members inherited only from the source realm's
|
|
7210
|
+
* Object.prototype are deliberately excluded, while class/template members
|
|
7211
|
+
* below that boundary are preserved.
|
|
7212
|
+
*
|
|
7213
|
+
* @param {*} thing The value to flatten
|
|
7214
|
+
*
|
|
7215
|
+
* @returns {*} A null-prototype copy, or the original value when it is already
|
|
7216
|
+
* structurally safe or is not an object
|
|
7217
|
+
*/
|
|
7218
|
+
const toSafeFlatObject = (thing) => {
|
|
7219
|
+
if (thing == null || (typeof thing !== 'object' && typeof thing !== 'function')) {
|
|
7220
|
+
return thing;
|
|
7221
|
+
}
|
|
7222
|
+
|
|
7223
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
7224
|
+
|
|
7225
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
7226
|
+
return thing;
|
|
7227
|
+
}
|
|
7228
|
+
|
|
7229
|
+
const result = Object.create(null);
|
|
7230
|
+
const merged = Object.create(null);
|
|
7231
|
+
const seen = [];
|
|
7232
|
+
let current = thing;
|
|
7233
|
+
|
|
7234
|
+
while (current != null) {
|
|
7235
|
+
if (seen.indexOf(current) !== -1) {
|
|
7236
|
+
break;
|
|
7237
|
+
}
|
|
7238
|
+
|
|
7239
|
+
seen.push(current);
|
|
7240
|
+
|
|
7241
|
+
const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
7242
|
+
|
|
7243
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) {
|
|
7244
|
+
break;
|
|
7245
|
+
}
|
|
7246
|
+
|
|
7247
|
+
const props = Object.getOwnPropertyNames(current);
|
|
7248
|
+
|
|
7249
|
+
if (Object.getOwnPropertySymbols) {
|
|
7250
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
7251
|
+
}
|
|
7252
|
+
|
|
7253
|
+
for (const prop of props) {
|
|
7254
|
+
if (isUnsafeObjectKey(prop)) {
|
|
7255
|
+
continue;
|
|
7256
|
+
}
|
|
7257
|
+
|
|
7258
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
7259
|
+
result[prop] = thing[prop];
|
|
7260
|
+
merged[prop] = true;
|
|
7261
|
+
}
|
|
7262
|
+
}
|
|
7263
|
+
|
|
7264
|
+
current = prototype;
|
|
7265
|
+
}
|
|
7266
|
+
|
|
7267
|
+
return result;
|
|
7268
|
+
};
|
|
7269
|
+
|
|
6036
7270
|
const kindOf = ((cache) => (thing) => {
|
|
6037
7271
|
const str = toString.call(thing);
|
|
6038
7272
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -6164,14 +7398,18 @@ const isPlainObject = (val) => {
|
|
|
6164
7398
|
|
|
6165
7399
|
const prototype = getPrototypeOf(val);
|
|
6166
7400
|
return (
|
|
6167
|
-
(prototype === null ||
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
//
|
|
6171
|
-
//
|
|
6172
|
-
//
|
|
6173
|
-
|
|
6174
|
-
|
|
7401
|
+
(prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
|
|
7402
|
+
// Treat own Symbol.toStringTag or Symbol.iterator members as evidence the
|
|
7403
|
+
// value is tagged/iterable, ignoring members reachable only through shared
|
|
7404
|
+
// or terminal prototype boundaries. This is exactly what
|
|
7405
|
+
// hasOwnInPrototypeChain(val, prop) computes here: every prototype admitted
|
|
7406
|
+
// above (null, Object.prototype, or a terminal null-prototype template) is
|
|
7407
|
+
// a boundary, so the walk never inspects anything but `val`'s own members,
|
|
7408
|
+
// and stops before even those when `val` is itself the boundary
|
|
7409
|
+
// Object.prototype. Checking that inline avoids allocating the walker's
|
|
7410
|
+
// `seen` list twice per call on the mergeConfig / merge hot path.
|
|
7411
|
+
(isPrototypeBoundary(val, prototype, true) ||
|
|
7412
|
+
(!hasOwnProperty(val, toStringTag) && !hasOwnProperty(val, iterator)))
|
|
6175
7413
|
);
|
|
6176
7414
|
};
|
|
6177
7415
|
|
|
@@ -6435,15 +7673,30 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
6435
7673
|
function merge(...objs) {
|
|
6436
7674
|
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
6437
7675
|
const result = {};
|
|
7676
|
+
// Caseless lookup only applies to string keys — symbol keys are
|
|
7677
|
+
// identity-matched. Every string key that reaches `result` passes through
|
|
7678
|
+
// this index first, so it can never hold two case variants of one key and a
|
|
7679
|
+
// lowercase -> key map is exactly what findKey(result, key) would rescan
|
|
7680
|
+
// Object.keys(result) for on each assignment.
|
|
7681
|
+
const lowerCaseKeys = caseless ? Object.create(null) : null;
|
|
6438
7682
|
const assignValue = (val, key) => {
|
|
6439
7683
|
// Skip dangerous property names to prevent prototype pollution
|
|
6440
7684
|
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
6441
7685
|
return;
|
|
6442
7686
|
}
|
|
6443
7687
|
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
7688
|
+
let targetKey = key;
|
|
7689
|
+
if (lowerCaseKeys && typeof key === 'string') {
|
|
7690
|
+
const lowerKey = key.toLowerCase();
|
|
7691
|
+
const knownKey = lowerCaseKeys[lowerKey];
|
|
7692
|
+
// A key recorded but absent from `result` was skipped by skipUndefined;
|
|
7693
|
+
// the later spelling wins then, as it does for findKey.
|
|
7694
|
+
if (knownKey !== undefined && hasOwnProperty(result, knownKey)) {
|
|
7695
|
+
targetKey = knownKey;
|
|
7696
|
+
} else {
|
|
7697
|
+
lowerCaseKeys[lowerKey] = key;
|
|
7698
|
+
}
|
|
7699
|
+
}
|
|
6447
7700
|
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
6448
7701
|
// chain, so a polluted Object.prototype value could surface here and get
|
|
6449
7702
|
// copied into the merged result.
|
|
@@ -6467,7 +7720,7 @@ function merge(...objs) {
|
|
|
6467
7720
|
|
|
6468
7721
|
forEach(source, assignValue);
|
|
6469
7722
|
|
|
6470
|
-
if (typeof source !== 'object' || isArray(source)) {
|
|
7723
|
+
if (typeof source !== 'object' || isArray(source) || !Object.getOwnPropertySymbols) {
|
|
6471
7724
|
continue;
|
|
6472
7725
|
}
|
|
6473
7726
|
|
|
@@ -6626,7 +7879,37 @@ const toArray = (thing) => {
|
|
|
6626
7879
|
if (!thing) return null;
|
|
6627
7880
|
if (isArray(thing)) return thing;
|
|
6628
7881
|
let i = thing.length;
|
|
6629
|
-
if (!
|
|
7882
|
+
if (!Number.isSafeInteger(i) || i < 0 || i > 0xffffffff) return null;
|
|
7883
|
+
|
|
7884
|
+
// Bound the copy by actual indexed properties, including hidden and inherited
|
|
7885
|
+
// members of array-like collections, rather than by the declared length alone.
|
|
7886
|
+
const indexes = new Set();
|
|
7887
|
+
const seen = new Set();
|
|
7888
|
+
let source = thing;
|
|
7889
|
+
|
|
7890
|
+
while (source != null && indexes.size < i) {
|
|
7891
|
+
if (seen.has(source)) return null;
|
|
7892
|
+
seen.add(source);
|
|
7893
|
+
|
|
7894
|
+
const prototype = getPrototypeOf(source);
|
|
7895
|
+
if (isPrototypeBoundary(source, prototype, source === thing)) break;
|
|
7896
|
+
|
|
7897
|
+
Object.getOwnPropertyNames(source).forEach((key) => {
|
|
7898
|
+
const index = +key;
|
|
7899
|
+
if (
|
|
7900
|
+
Number.isInteger(index) &&
|
|
7901
|
+
index >= 0 &&
|
|
7902
|
+
index < i &&
|
|
7903
|
+
String(index) === key &&
|
|
7904
|
+
hasOwnProperty(source, key)
|
|
7905
|
+
) {
|
|
7906
|
+
indexes.add(index);
|
|
7907
|
+
}
|
|
7908
|
+
});
|
|
7909
|
+
source = prototype;
|
|
7910
|
+
}
|
|
7911
|
+
|
|
7912
|
+
if (indexes.size !== i) return null;
|
|
6630
7913
|
const arr = new Array(i);
|
|
6631
7914
|
while (i-- > 0) {
|
|
6632
7915
|
arr[i] = thing[i];
|
|
@@ -6983,6 +8266,7 @@ const isSafeIterable = (thing) =>
|
|
|
6983
8266
|
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
|
|
6984
8267
|
hasOwnInPrototypeChain,
|
|
6985
8268
|
getSafeProp,
|
|
8269
|
+
toSafeFlatObject,
|
|
6986
8270
|
reduceDescriptors,
|
|
6987
8271
|
freezeMethods,
|
|
6988
8272
|
toObjectSet,
|
|
@@ -7039,59 +8323,33 @@ const isSafeIterable = (thing) =>
|
|
|
7039
8323
|
/******/
|
|
7040
8324
|
/************************************************************************/
|
|
7041
8325
|
/******/ /* webpack/runtime/define property getters */
|
|
7042
|
-
/******/
|
|
7043
|
-
/******/
|
|
7044
|
-
/******/
|
|
7045
|
-
/******/ if(
|
|
7046
|
-
/******/
|
|
7047
|
-
/******/ while(i < definition.length) {
|
|
7048
|
-
/******/ var key = definition[i++];
|
|
7049
|
-
/******/ var binding = definition[i++];
|
|
7050
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
7051
|
-
/******/ if(binding === 0) {
|
|
7052
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
7053
|
-
/******/ } else {
|
|
7054
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
7055
|
-
/******/ }
|
|
7056
|
-
/******/ } else if(binding === 0) { i++; }
|
|
7057
|
-
/******/ }
|
|
7058
|
-
/******/ } else {
|
|
7059
|
-
/******/ for(var key in definition) {
|
|
7060
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
7061
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
7062
|
-
/******/ }
|
|
7063
|
-
/******/ }
|
|
8326
|
+
/******/ // define getter/value functions for harmony exports
|
|
8327
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
8328
|
+
/******/ for(var key in definition) {
|
|
8329
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
8330
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
7064
8331
|
/******/ }
|
|
7065
|
-
/******/ }
|
|
7066
|
-
/******/ }
|
|
8332
|
+
/******/ }
|
|
8333
|
+
/******/ };
|
|
7067
8334
|
/******/
|
|
7068
8335
|
/******/ /* webpack/runtime/global */
|
|
7069
|
-
/******/ (()
|
|
7070
|
-
/******/
|
|
7071
|
-
/******/
|
|
7072
|
-
/******/
|
|
7073
|
-
/******/
|
|
7074
|
-
/******/
|
|
7075
|
-
/******/
|
|
7076
|
-
/******/ }
|
|
7077
|
-
/******/ })();
|
|
8336
|
+
/******/ __webpack_require__.g = (function() {
|
|
8337
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
8338
|
+
/******/ try {
|
|
8339
|
+
/******/ return this || new Function('return this')();
|
|
8340
|
+
/******/ } catch (e) {
|
|
8341
|
+
/******/ if (typeof window === 'object') return window;
|
|
8342
|
+
/******/ }
|
|
7078
8343
|
/******/ })();
|
|
7079
8344
|
/******/
|
|
7080
8345
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
7081
|
-
/******/ (
|
|
7082
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
7083
|
-
/******/ })();
|
|
8346
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
|
|
7084
8347
|
/******/
|
|
7085
8348
|
/******/ /* webpack/runtime/make namespace object */
|
|
7086
|
-
/******/
|
|
7087
|
-
/******/
|
|
7088
|
-
/******/
|
|
7089
|
-
/******/
|
|
7090
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
7091
|
-
/******/ }
|
|
7092
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
7093
|
-
/******/ };
|
|
7094
|
-
/******/ })();
|
|
8349
|
+
/******/ // define __esModule on exports
|
|
8350
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
8351
|
+
/******/ Object.defineProperties(exports, { [Symbol.toStringTag]: { value: 'Module' }, __esModule: { value: true } });
|
|
8352
|
+
/******/ };
|
|
7095
8353
|
/******/
|
|
7096
8354
|
/************************************************************************/
|
|
7097
8355
|
let __webpack_exports__ = {};
|