@fluid-app/portal-sdk 0.1.645 → 0.1.646
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/dist/{FluidProvider-BMbfVHkW.mjs → FluidProvider-CT9kNVR5.mjs} +2020 -1052
- package/dist/FluidProvider-CT9kNVR5.mjs.map +1 -0
- package/dist/{FluidProvider-DYUbZcGN.cjs → FluidProvider-zrmBwDE_.cjs} +3495 -1571
- package/dist/FluidProvider-zrmBwDE_.cjs.map +1 -0
- package/dist/{MessagingScreen-CTmWE7jl.mjs → MessagingScreen-CNVhhpMB.mjs} +2 -2
- package/dist/{MessagingScreen-CTmWE7jl.mjs.map → MessagingScreen-CNVhhpMB.mjs.map} +1 -1
- package/dist/{MessagingScreen-B2aN6cyQ.cjs → MessagingScreen-Csik06g-.cjs} +2 -2
- package/dist/{MessagingScreen-B2aN6cyQ.cjs.map → MessagingScreen-Csik06g-.cjs.map} +1 -1
- package/dist/{MessagingScreen-Celz6dw2.cjs → MessagingScreen-D91qG5Wk.cjs} +2 -2
- package/dist/{MessagingScreen-Cj1Vdr1e.mjs → MessagingScreen-lOZAO_bK.mjs} +2 -2
- package/dist/{OrdersScreen-Did615SL.mjs → OrdersScreen-B3jUsijU.mjs} +2 -2
- package/dist/{OrdersScreen-Dsxxc6Fs.mjs → OrdersScreen-COIC2YS8.mjs} +2 -2
- package/dist/{OrdersScreen-Dsxxc6Fs.mjs.map → OrdersScreen-COIC2YS8.mjs.map} +1 -1
- package/dist/{OrdersScreen-BE3-Po5L.cjs → OrdersScreen-RIKTkfB-.cjs} +2 -2
- package/dist/{OrdersScreen-BE3-Po5L.cjs.map → OrdersScreen-RIKTkfB-.cjs.map} +1 -1
- package/dist/{OrdersScreen-DE9maI7E.cjs → OrdersScreen-u63wuQw8.cjs} +2 -2
- package/dist/{ProfileScreen-CcuCTCS9.mjs → ProfileScreen-CB2gR47b.mjs} +2 -2
- package/dist/{ProfileScreen-CcuCTCS9.mjs.map → ProfileScreen-CB2gR47b.mjs.map} +1 -1
- package/dist/{ProfileScreen-CgtNgWXf.cjs → ProfileScreen-DICHa96X.cjs} +3 -3
- package/dist/{ProfileScreen-CAcQ8FyI.mjs → ProfileScreen-DZ-7HOsx.mjs} +3 -3
- package/dist/{ProfileScreen-D_VYmmC2.cjs → ProfileScreen-nblAlA8p.cjs} +2 -2
- package/dist/{ProfileScreen-D_VYmmC2.cjs.map → ProfileScreen-nblAlA8p.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CEE1s_oU.mjs → SubscriptionsScreen-BcqROCUq.mjs} +3 -3
- package/dist/{SubscriptionsScreen-HUKZEC6U.cjs → SubscriptionsScreen-DZdO_Puf.cjs} +3 -3
- package/dist/{SubscriptionsScreen-CXR1sMl7.mjs → SubscriptionsScreen-DjkZ2Aqa.mjs} +3 -3
- package/dist/{SubscriptionsScreen-CXR1sMl7.mjs.map → SubscriptionsScreen-DjkZ2Aqa.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-d63ynuoV.cjs → SubscriptionsScreen-ZLeoEq6T.cjs} +3 -3
- package/dist/{SubscriptionsScreen-d63ynuoV.cjs.map → SubscriptionsScreen-ZLeoEq6T.cjs.map} +1 -1
- package/dist/index.cjs +14 -14
- package/dist/index.mjs +14 -14
- package/dist/{use-portal-card-add-3ds-flow-D9Nhuprj.mjs → use-portal-card-add-3ds-flow-8TsN9P2H.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-D9Nhuprj.mjs.map → use-portal-card-add-3ds-flow-8TsN9P2H.mjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-BWydmTSA.cjs → use-portal-card-add-3ds-flow-D3GLdTIE.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-BWydmTSA.cjs.map → use-portal-card-add-3ds-flow-D3GLdTIE.cjs.map} +1 -1
- package/package.json +3 -3
- package/dist/FluidProvider-BMbfVHkW.mjs.map +0 -1
- package/dist/FluidProvider-DYUbZcGN.cjs.map +0 -1
|
@@ -31,7 +31,7 @@ function useAddressAutocompleteApiOptional() {
|
|
|
31
31
|
return use(AddressAutocompleteApiContext);
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
34
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/_virtual/_commonjsHelpers.mjs
|
|
35
35
|
function e$18(e) {
|
|
36
36
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
37
37
|
}
|
|
@@ -55,7 +55,7 @@ function t$13(e) {
|
|
|
55
55
|
})), r;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
58
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/Errors.mjs
|
|
59
59
|
var r$9 = class extends Error {
|
|
60
60
|
constructor(e = "unexpected error") {
|
|
61
61
|
super(e);
|
|
@@ -129,7 +129,7 @@ var t$12 = {
|
|
|
129
129
|
}
|
|
130
130
|
}, s$12 = e$18(t$12);
|
|
131
131
|
//#endregion
|
|
132
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
132
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/Batch.mjs
|
|
133
133
|
const t$11 = t$12.BatchFullError;
|
|
134
134
|
var r$8 = class {
|
|
135
135
|
constructor() {
|
|
@@ -159,7 +159,7 @@ var r$8 = class {
|
|
|
159
159
|
}
|
|
160
160
|
}, u$5 = e$18(r$8);
|
|
161
161
|
//#endregion
|
|
162
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
162
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/bind.js
|
|
163
163
|
/**
|
|
164
164
|
* Create a bound version of a function with a specified `this` context
|
|
165
165
|
*
|
|
@@ -173,10 +173,121 @@ function bind(fn, thisArg) {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
//#endregion
|
|
176
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
176
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/utils.js
|
|
177
177
|
const { toString } = Object.prototype;
|
|
178
178
|
const { getPrototypeOf } = Object;
|
|
179
179
|
const { iterator, toStringTag } = Symbol;
|
|
180
|
+
const hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
181
|
+
const isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
|
|
182
|
+
/**
|
|
183
|
+
* Determine whether an inherited object must be treated as a shared-prototype
|
|
184
|
+
* boundary. Cross-realm Object.prototype objects cannot be distinguished
|
|
185
|
+
* reliably from application-created null-prototype objects because their
|
|
186
|
+
* properties are mutable, so all inherited terminal prototypes are excluded
|
|
187
|
+
* as a fail-closed boundary. A null-prototype source still keeps its own
|
|
188
|
+
* properties, as produced by mergeConfig and other safe materialization paths.
|
|
189
|
+
*
|
|
190
|
+
* @param {*} obj The object to inspect
|
|
191
|
+
* @param {*} prototype The object's prototype
|
|
192
|
+
* @param {boolean} source Whether obj is the original traversal source
|
|
193
|
+
*
|
|
194
|
+
* @returns {boolean} True when obj is a safe prototype traversal boundary
|
|
195
|
+
*/
|
|
196
|
+
const isPrototypeBoundary = (obj, prototype, source) => obj === Object.prototype || !source && prototype === null;
|
|
197
|
+
/**
|
|
198
|
+
* Determine whether an object can retain its identity through code paths that
|
|
199
|
+
* add, replace, and remove config properties without bypassing unsafe-key
|
|
200
|
+
* filtering. Immutable objects, unsafe-key-bearing objects, and objects with
|
|
201
|
+
* accessor or restricted data properties must be materialized instead.
|
|
202
|
+
*
|
|
203
|
+
* @param {*} obj The object to inspect
|
|
204
|
+
*
|
|
205
|
+
* @returns {boolean} True when every own property is safe and fully mutable
|
|
206
|
+
*/
|
|
207
|
+
const isSafeAndFullyMutable = (obj) => {
|
|
208
|
+
if (!Object.isExtensible(obj)) return false;
|
|
209
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
210
|
+
if (Object.getOwnPropertySymbols) props.push(...Object.getOwnPropertySymbols(obj));
|
|
211
|
+
return props.every((prop) => {
|
|
212
|
+
if (isUnsafeObjectKey(prop)) return false;
|
|
213
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
214
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Walk the prototype chain (excluding the source realm's Object.prototype)
|
|
219
|
+
* looking for an own `prop`. This distinguishes genuine own/inherited members
|
|
220
|
+
* — including class accessors and template prototypes — from members injected
|
|
221
|
+
* via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
222
|
+
* which live on Object.prototype itself and are therefore never matched.
|
|
223
|
+
*
|
|
224
|
+
* @param {*} thing The value whose chain to inspect
|
|
225
|
+
* @param {string|symbol} prop The property key to look for
|
|
226
|
+
*
|
|
227
|
+
* @returns {boolean} True when `prop` is owned below Object.prototype
|
|
228
|
+
*/
|
|
229
|
+
const hasOwnInPrototypeChain = (thing, prop) => {
|
|
230
|
+
let obj = thing;
|
|
231
|
+
const seen = [];
|
|
232
|
+
while (obj != null) {
|
|
233
|
+
if (seen.indexOf(obj) !== -1) return false;
|
|
234
|
+
seen.push(obj);
|
|
235
|
+
const prototype = getPrototypeOf(obj);
|
|
236
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) return false;
|
|
237
|
+
if (hasOwnProperty(obj, prop)) return true;
|
|
238
|
+
obj = prototype;
|
|
239
|
+
}
|
|
240
|
+
return false;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Read `obj[prop]` only when it is safe from Object.prototype pollution. Own
|
|
244
|
+
* properties and members inherited from a non-Object.prototype source (a class
|
|
245
|
+
* instance or template object) are honored; a value reachable only through a
|
|
246
|
+
* polluted Object.prototype is ignored and `undefined` is returned.
|
|
247
|
+
*
|
|
248
|
+
* @param {*} obj The source object
|
|
249
|
+
* @param {string|symbol} prop The property key to read
|
|
250
|
+
*
|
|
251
|
+
* @returns {*} The resolved value, or undefined when unsafe/absent
|
|
252
|
+
*/
|
|
253
|
+
const getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
|
|
254
|
+
/**
|
|
255
|
+
* Flatten an object and its application-defined prototype chain into a
|
|
256
|
+
* null-prototype object. Members inherited only from the source realm's
|
|
257
|
+
* Object.prototype are deliberately excluded, while class/template members
|
|
258
|
+
* below that boundary are preserved.
|
|
259
|
+
*
|
|
260
|
+
* @param {*} thing The value to flatten
|
|
261
|
+
*
|
|
262
|
+
* @returns {*} A null-prototype copy, or the original value when it is already
|
|
263
|
+
* structurally safe or is not an object
|
|
264
|
+
*/
|
|
265
|
+
const toSafeFlatObject = (thing) => {
|
|
266
|
+
if (thing == null || typeof thing !== "object" && typeof thing !== "function") return thing;
|
|
267
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
268
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) return thing;
|
|
269
|
+
const result = Object.create(null);
|
|
270
|
+
const merged = Object.create(null);
|
|
271
|
+
const seen = [];
|
|
272
|
+
let current = thing;
|
|
273
|
+
while (current != null) {
|
|
274
|
+
if (seen.indexOf(current) !== -1) break;
|
|
275
|
+
seen.push(current);
|
|
276
|
+
const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
277
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) break;
|
|
278
|
+
const props = Object.getOwnPropertyNames(current);
|
|
279
|
+
if (Object.getOwnPropertySymbols) props.push(...Object.getOwnPropertySymbols(current));
|
|
280
|
+
for (const prop of props) {
|
|
281
|
+
if (isUnsafeObjectKey(prop)) continue;
|
|
282
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
283
|
+
result[prop] = thing[prop];
|
|
284
|
+
merged[prop] = true;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
current = prototype;
|
|
288
|
+
}
|
|
289
|
+
return result;
|
|
290
|
+
};
|
|
180
291
|
const kindOf = ((cache) => (thing) => {
|
|
181
292
|
const str = toString.call(thing);
|
|
182
293
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -187,7 +298,7 @@ const kindOfTest = (type) => {
|
|
|
187
298
|
};
|
|
188
299
|
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
189
300
|
/**
|
|
190
|
-
* Determine if a value is
|
|
301
|
+
* Determine if a value is a non-null object
|
|
191
302
|
*
|
|
192
303
|
* @param {Object} val The value to test
|
|
193
304
|
*
|
|
@@ -279,9 +390,9 @@ const isBoolean = (thing) => thing === true || thing === false;
|
|
|
279
390
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
280
391
|
*/
|
|
281
392
|
const isPlainObject = (val) => {
|
|
282
|
-
if (
|
|
393
|
+
if (!isObject(val)) return false;
|
|
283
394
|
const prototype = getPrototypeOf(val);
|
|
284
|
-
return (prototype === null || prototype === Object.prototype ||
|
|
395
|
+
return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) && !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
|
|
285
396
|
};
|
|
286
397
|
/**
|
|
287
398
|
* Determine if a value is an empty object (safely handles Buffers)
|
|
@@ -315,6 +426,29 @@ const isDate = kindOfTest("Date");
|
|
|
315
426
|
*/
|
|
316
427
|
const isFile = kindOfTest("File");
|
|
317
428
|
/**
|
|
429
|
+
* Determine if a value is a React Native Blob
|
|
430
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
431
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
432
|
+
*
|
|
433
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
434
|
+
*
|
|
435
|
+
* @param {*} value The value to test
|
|
436
|
+
*
|
|
437
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
438
|
+
*/
|
|
439
|
+
const isReactNativeBlob = (value) => {
|
|
440
|
+
return !!(value && typeof value.uri !== "undefined");
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* Determine if environment is React Native
|
|
444
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
445
|
+
*
|
|
446
|
+
* @param {*} formData The formData to test
|
|
447
|
+
*
|
|
448
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
449
|
+
*/
|
|
450
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
451
|
+
/**
|
|
318
452
|
* Determine if a value is a Blob
|
|
319
453
|
*
|
|
320
454
|
* @param {*} val The value to test
|
|
@@ -327,9 +461,10 @@ const isBlob = kindOfTest("Blob");
|
|
|
327
461
|
*
|
|
328
462
|
* @param {*} val The value to test
|
|
329
463
|
*
|
|
330
|
-
* @returns {boolean} True if value is a
|
|
464
|
+
* @returns {boolean} True if value is a FileList, otherwise false
|
|
331
465
|
*/
|
|
332
466
|
const isFileList = kindOfTest("FileList");
|
|
467
|
+
const isSet = kindOfTest("Set");
|
|
333
468
|
/**
|
|
334
469
|
* Determine if a value is a Stream
|
|
335
470
|
*
|
|
@@ -345,9 +480,23 @@ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
|
345
480
|
*
|
|
346
481
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
347
482
|
*/
|
|
483
|
+
function getGlobal() {
|
|
484
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
485
|
+
if (typeof self !== "undefined") return self;
|
|
486
|
+
if (typeof window !== "undefined") return window;
|
|
487
|
+
if (typeof global !== "undefined") return global;
|
|
488
|
+
return {};
|
|
489
|
+
}
|
|
490
|
+
const G$1 = getGlobal();
|
|
491
|
+
const FormDataCtor = typeof G$1.FormData !== "undefined" ? G$1.FormData : void 0;
|
|
348
492
|
const isFormData = (thing) => {
|
|
349
|
-
|
|
350
|
-
|
|
493
|
+
if (!thing) return false;
|
|
494
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
495
|
+
const proto = getPrototypeOf(thing);
|
|
496
|
+
if (!proto || proto === Object.prototype) return false;
|
|
497
|
+
if (!isFunction$1(thing.append)) return false;
|
|
498
|
+
const kind = kindOf(thing);
|
|
499
|
+
return kind === "formdata" || kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]";
|
|
351
500
|
};
|
|
352
501
|
/**
|
|
353
502
|
* Determine if a value is a URLSearchParams object
|
|
@@ -370,7 +519,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
|
370
519
|
*
|
|
371
520
|
* @returns {String} The String freed of excess whitespace
|
|
372
521
|
*/
|
|
373
|
-
const trim = (str) =>
|
|
522
|
+
const trim = (str) => {
|
|
523
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
524
|
+
};
|
|
374
525
|
/**
|
|
375
526
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
376
527
|
*
|
|
@@ -380,10 +531,11 @@ const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\
|
|
|
380
531
|
* If 'obj' is an Object callback will be called passing
|
|
381
532
|
* the value, key, and complete object for each property.
|
|
382
533
|
*
|
|
383
|
-
* @param {Object|Array} obj The object to iterate
|
|
534
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
384
535
|
* @param {Function} fn The callback to invoke for each item
|
|
385
536
|
*
|
|
386
|
-
* @param {
|
|
537
|
+
* @param {Object} [options]
|
|
538
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
387
539
|
* @returns {any}
|
|
388
540
|
*/
|
|
389
541
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
@@ -403,6 +555,14 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
|
403
555
|
}
|
|
404
556
|
}
|
|
405
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
560
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
561
|
+
*
|
|
562
|
+
* @param {Object} obj - The object to search.
|
|
563
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
564
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
565
|
+
*/
|
|
406
566
|
function findKey(obj, key) {
|
|
407
567
|
if (isBuffer(obj)) return null;
|
|
408
568
|
key = key.toLowerCase();
|
|
@@ -430,7 +590,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
430
590
|
* Example:
|
|
431
591
|
*
|
|
432
592
|
* ```js
|
|
433
|
-
*
|
|
593
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
434
594
|
* console.log(result.foo); // outputs 456
|
|
435
595
|
* ```
|
|
436
596
|
*
|
|
@@ -438,17 +598,29 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
438
598
|
*
|
|
439
599
|
* @returns {Object} Result of all merge properties
|
|
440
600
|
*/
|
|
441
|
-
function merge() {
|
|
601
|
+
function merge(...objs) {
|
|
442
602
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
443
603
|
const result = {};
|
|
444
604
|
const assignValue = (val, key) => {
|
|
445
|
-
|
|
446
|
-
|
|
605
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
606
|
+
const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
|
|
607
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
608
|
+
if (isPlainObject(existing) && isPlainObject(val)) result[targetKey] = merge(existing, val);
|
|
447
609
|
else if (isPlainObject(val)) result[targetKey] = merge({}, val);
|
|
448
610
|
else if (isArray(val)) result[targetKey] = val.slice();
|
|
449
611
|
else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
|
|
450
612
|
};
|
|
451
|
-
for (let i = 0, l =
|
|
613
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
614
|
+
const source = objs[i];
|
|
615
|
+
if (!source || isBuffer(source)) continue;
|
|
616
|
+
forEach(source, assignValue);
|
|
617
|
+
if (typeof source !== "object" || isArray(source)) continue;
|
|
618
|
+
const symbols = Object.getOwnPropertySymbols(source);
|
|
619
|
+
for (let j = 0; j < symbols.length; j++) {
|
|
620
|
+
const symbol = symbols[j];
|
|
621
|
+
if (propertyIsEnumerable.call(source, symbol)) assignValue(source[symbol], symbol);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
452
624
|
return result;
|
|
453
625
|
}
|
|
454
626
|
/**
|
|
@@ -458,13 +630,26 @@ function merge() {
|
|
|
458
630
|
* @param {Object} b The object to copy properties from
|
|
459
631
|
* @param {Object} thisArg The object to bind function to
|
|
460
632
|
*
|
|
461
|
-
* @param {
|
|
633
|
+
* @param {Object} [options]
|
|
634
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
462
635
|
* @returns {Object} The resulting value of object a
|
|
463
636
|
*/
|
|
464
637
|
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
465
638
|
forEach(b, (val, key) => {
|
|
466
|
-
if (thisArg && isFunction$1(val)) a
|
|
467
|
-
|
|
639
|
+
if (thisArg && isFunction$1(val)) Object.defineProperty(a, key, {
|
|
640
|
+
__proto__: null,
|
|
641
|
+
value: bind(val, thisArg),
|
|
642
|
+
writable: true,
|
|
643
|
+
enumerable: true,
|
|
644
|
+
configurable: true
|
|
645
|
+
});
|
|
646
|
+
else Object.defineProperty(a, key, {
|
|
647
|
+
__proto__: null,
|
|
648
|
+
value: val,
|
|
649
|
+
writable: true,
|
|
650
|
+
enumerable: true,
|
|
651
|
+
configurable: true
|
|
652
|
+
});
|
|
468
653
|
}, { allOwnKeys });
|
|
469
654
|
return a;
|
|
470
655
|
};
|
|
@@ -490,8 +675,17 @@ const stripBOM = (content) => {
|
|
|
490
675
|
*/
|
|
491
676
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
492
677
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
493
|
-
constructor.prototype
|
|
494
|
-
|
|
678
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
679
|
+
__proto__: null,
|
|
680
|
+
value: constructor,
|
|
681
|
+
writable: true,
|
|
682
|
+
enumerable: false,
|
|
683
|
+
configurable: true
|
|
684
|
+
});
|
|
685
|
+
Object.defineProperty(constructor, "super", {
|
|
686
|
+
__proto__: null,
|
|
687
|
+
value: superConstructor.prototype
|
|
688
|
+
});
|
|
495
689
|
props && Object.assign(constructor.prototype, props);
|
|
496
690
|
};
|
|
497
691
|
/**
|
|
@@ -605,7 +799,7 @@ const toCamelCase = (str) => {
|
|
|
605
799
|
return p1.toUpperCase() + p2;
|
|
606
800
|
});
|
|
607
801
|
};
|
|
608
|
-
const
|
|
802
|
+
const { propertyIsEnumerable } = Object.prototype;
|
|
609
803
|
/**
|
|
610
804
|
* Determine if a value is a RegExp object
|
|
611
805
|
*
|
|
@@ -633,7 +827,7 @@ const freezeMethods = (obj) => {
|
|
|
633
827
|
"arguments",
|
|
634
828
|
"caller",
|
|
635
829
|
"callee"
|
|
636
|
-
].
|
|
830
|
+
].includes(name)) return false;
|
|
637
831
|
const value = obj[name];
|
|
638
832
|
if (!isFunction$1(value)) return;
|
|
639
833
|
descriptor.enumerable = false;
|
|
@@ -646,6 +840,14 @@ const freezeMethods = (obj) => {
|
|
|
646
840
|
};
|
|
647
841
|
});
|
|
648
842
|
};
|
|
843
|
+
/**
|
|
844
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
845
|
+
* Useful for fast membership checks.
|
|
846
|
+
*
|
|
847
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
848
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
849
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
850
|
+
*/
|
|
649
851
|
const toObjectSet = (arrayOrString, delimiter) => {
|
|
650
852
|
const obj = {};
|
|
651
853
|
const define = (arr) => {
|
|
@@ -670,29 +872,64 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
670
872
|
function isSpecCompliantForm(thing) {
|
|
671
873
|
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
672
874
|
}
|
|
875
|
+
/**
|
|
876
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
877
|
+
*
|
|
878
|
+
* @param {Object} obj - The object to convert.
|
|
879
|
+
* @returns {Object} The JSON-compatible object.
|
|
880
|
+
*/
|
|
673
881
|
const toJSONObject = (obj) => {
|
|
674
|
-
const
|
|
675
|
-
const visit = (source
|
|
882
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
883
|
+
const visit = (source) => {
|
|
676
884
|
if (isObject(source)) {
|
|
677
|
-
if (
|
|
885
|
+
if (visited.has(source)) return;
|
|
678
886
|
if (isBuffer(source)) return source;
|
|
679
887
|
if (!("toJSON" in source)) {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
888
|
+
visited.add(source);
|
|
889
|
+
let target;
|
|
890
|
+
if (isSet(source)) {
|
|
891
|
+
target = [];
|
|
892
|
+
for (const value of source) {
|
|
893
|
+
const reducedValue = visit(value);
|
|
894
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
895
|
+
}
|
|
896
|
+
} else {
|
|
897
|
+
target = isArray(source) ? [] : {};
|
|
898
|
+
forEach(source, (value, key) => {
|
|
899
|
+
const reducedValue = visit(value);
|
|
900
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
visited.delete(source);
|
|
687
904
|
return target;
|
|
688
905
|
}
|
|
689
906
|
}
|
|
690
907
|
return source;
|
|
691
908
|
};
|
|
692
|
-
return visit(obj
|
|
909
|
+
return visit(obj);
|
|
693
910
|
};
|
|
911
|
+
/**
|
|
912
|
+
* Determines if a value is an async function.
|
|
913
|
+
*
|
|
914
|
+
* @param {*} thing - The value to test.
|
|
915
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
916
|
+
*/
|
|
694
917
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
918
|
+
/**
|
|
919
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
920
|
+
*
|
|
921
|
+
* @param {*} thing - The value to test.
|
|
922
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
923
|
+
*/
|
|
695
924
|
const isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
925
|
+
/**
|
|
926
|
+
* Provides a cross-platform setImmediate implementation.
|
|
927
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
928
|
+
*
|
|
929
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
930
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
931
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
932
|
+
*/
|
|
696
933
|
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
697
934
|
if (setImmediateSupported) return setImmediate;
|
|
698
935
|
return postMessageSupported ? ((token, callbacks) => {
|
|
@@ -705,8 +942,26 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
705
942
|
};
|
|
706
943
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
707
944
|
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
945
|
+
/**
|
|
946
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
947
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
948
|
+
*
|
|
949
|
+
* @type {Function}
|
|
950
|
+
*/
|
|
708
951
|
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
709
952
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
953
|
+
/**
|
|
954
|
+
* Determine if a value is iterable via an iterator that is NOT sourced solely
|
|
955
|
+
* from a polluted Object.prototype. Use this instead of `isIterable` whenever
|
|
956
|
+
* the iterable comes from untrusted input (e.g. user-supplied header sources),
|
|
957
|
+
* so `Object.prototype[Symbol.iterator] = ...` cannot turn an ordinary object
|
|
958
|
+
* into an attacker-controlled entries iterator.
|
|
959
|
+
*
|
|
960
|
+
* @param {*} thing The value to test
|
|
961
|
+
*
|
|
962
|
+
* @returns {boolean} True if value has a non-polluted iterator
|
|
963
|
+
*/
|
|
964
|
+
const isSafeIterable = (thing) => thing != null && hasOwnInPrototypeChain(thing, iterator) && isIterable(thing);
|
|
710
965
|
var utils_default = {
|
|
711
966
|
isArray,
|
|
712
967
|
isArrayBuffer,
|
|
@@ -726,6 +981,8 @@ var utils_default = {
|
|
|
726
981
|
isUndefined,
|
|
727
982
|
isDate,
|
|
728
983
|
isFile,
|
|
984
|
+
isReactNativeBlob,
|
|
985
|
+
isReactNative,
|
|
729
986
|
isBlob,
|
|
730
987
|
isRegExp,
|
|
731
988
|
isFunction: isFunction$1,
|
|
@@ -749,6 +1006,9 @@ var utils_default = {
|
|
|
749
1006
|
isHTMLForm,
|
|
750
1007
|
hasOwnProperty,
|
|
751
1008
|
hasOwnProp: hasOwnProperty,
|
|
1009
|
+
hasOwnInPrototypeChain,
|
|
1010
|
+
getSafeProp,
|
|
1011
|
+
toSafeFlatObject,
|
|
752
1012
|
reduceDescriptors,
|
|
753
1013
|
freezeMethods,
|
|
754
1014
|
toObjectSet,
|
|
@@ -764,881 +1024,1151 @@ var utils_default = {
|
|
|
764
1024
|
isThenable,
|
|
765
1025
|
setImmediate: _setImmediate,
|
|
766
1026
|
asap,
|
|
767
|
-
isIterable
|
|
1027
|
+
isIterable,
|
|
1028
|
+
isSafeIterable
|
|
768
1029
|
};
|
|
769
1030
|
//#endregion
|
|
770
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
1031
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/parseHeaders.js
|
|
1032
|
+
const ignoreDuplicateOf = utils_default.toObjectSet([
|
|
1033
|
+
"age",
|
|
1034
|
+
"authorization",
|
|
1035
|
+
"content-length",
|
|
1036
|
+
"content-type",
|
|
1037
|
+
"etag",
|
|
1038
|
+
"expires",
|
|
1039
|
+
"from",
|
|
1040
|
+
"host",
|
|
1041
|
+
"if-modified-since",
|
|
1042
|
+
"if-unmodified-since",
|
|
1043
|
+
"last-modified",
|
|
1044
|
+
"location",
|
|
1045
|
+
"max-forwards",
|
|
1046
|
+
"proxy-authorization",
|
|
1047
|
+
"referer",
|
|
1048
|
+
"retry-after",
|
|
1049
|
+
"user-agent"
|
|
1050
|
+
]);
|
|
771
1051
|
/**
|
|
772
|
-
*
|
|
1052
|
+
* Parse headers into an object
|
|
1053
|
+
*
|
|
1054
|
+
* ```
|
|
1055
|
+
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
1056
|
+
* Content-Type: application/json
|
|
1057
|
+
* Connection: keep-alive
|
|
1058
|
+
* Transfer-Encoding: chunked
|
|
1059
|
+
* ```
|
|
773
1060
|
*
|
|
774
|
-
* @param {
|
|
775
|
-
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
776
|
-
* @param {Object} [config] The config.
|
|
777
|
-
* @param {Object} [request] The request.
|
|
778
|
-
* @param {Object} [response] The response.
|
|
1061
|
+
* @param {String} rawHeaders Headers needing to be parsed
|
|
779
1062
|
*
|
|
780
|
-
* @returns {
|
|
1063
|
+
* @returns {Object} Headers parsed into an object
|
|
781
1064
|
*/
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
utils_default.inherits(AxiosError$1, Error, { toJSON: function toJSON() {
|
|
797
|
-
return {
|
|
798
|
-
message: this.message,
|
|
799
|
-
name: this.name,
|
|
800
|
-
description: this.description,
|
|
801
|
-
number: this.number,
|
|
802
|
-
fileName: this.fileName,
|
|
803
|
-
lineNumber: this.lineNumber,
|
|
804
|
-
columnNumber: this.columnNumber,
|
|
805
|
-
stack: this.stack,
|
|
806
|
-
config: utils_default.toJSONObject(this.config),
|
|
807
|
-
code: this.code,
|
|
808
|
-
status: this.status
|
|
809
|
-
};
|
|
810
|
-
} });
|
|
811
|
-
const prototype$1 = AxiosError$1.prototype;
|
|
812
|
-
const descriptors = {};
|
|
813
|
-
[
|
|
814
|
-
"ERR_BAD_OPTION_VALUE",
|
|
815
|
-
"ERR_BAD_OPTION",
|
|
816
|
-
"ECONNABORTED",
|
|
817
|
-
"ETIMEDOUT",
|
|
818
|
-
"ERR_NETWORK",
|
|
819
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
820
|
-
"ERR_DEPRECATED",
|
|
821
|
-
"ERR_BAD_RESPONSE",
|
|
822
|
-
"ERR_BAD_REQUEST",
|
|
823
|
-
"ERR_CANCELED",
|
|
824
|
-
"ERR_NOT_SUPPORT",
|
|
825
|
-
"ERR_INVALID_URL"
|
|
826
|
-
].forEach((code) => {
|
|
827
|
-
descriptors[code] = { value: code };
|
|
828
|
-
});
|
|
829
|
-
Object.defineProperties(AxiosError$1, descriptors);
|
|
830
|
-
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
831
|
-
AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
832
|
-
const axiosError = Object.create(prototype$1);
|
|
833
|
-
utils_default.toFlatObject(error, axiosError, function filter(obj) {
|
|
834
|
-
return obj !== Error.prototype;
|
|
835
|
-
}, (prop) => {
|
|
836
|
-
return prop !== "isAxiosError";
|
|
837
|
-
});
|
|
838
|
-
const msg = error && error.message ? error.message : "Error";
|
|
839
|
-
const errCode = code == null && error ? error.code : code;
|
|
840
|
-
AxiosError$1.call(axiosError, msg, errCode, config, request, response);
|
|
841
|
-
if (error && axiosError.cause == null) Object.defineProperty(axiosError, "cause", {
|
|
842
|
-
value: error,
|
|
843
|
-
configurable: true
|
|
1065
|
+
var parseHeaders_default = (rawHeaders) => {
|
|
1066
|
+
const parsed = {};
|
|
1067
|
+
let key;
|
|
1068
|
+
let val;
|
|
1069
|
+
let i;
|
|
1070
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
1071
|
+
i = line.indexOf(":");
|
|
1072
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
1073
|
+
val = line.substring(i + 1).trim();
|
|
1074
|
+
const hasKey = utils_default.hasOwnProp(parsed, key);
|
|
1075
|
+
if (!key || hasKey && utils_default.hasOwnProp(ignoreDuplicateOf, key)) return;
|
|
1076
|
+
if (key === "set-cookie") if (hasKey) parsed[key].push(val);
|
|
1077
|
+
else parsed[key] = [val];
|
|
1078
|
+
else parsed[key] = hasKey ? parsed[key] + ", " + val : val;
|
|
844
1079
|
});
|
|
845
|
-
|
|
846
|
-
customProps && Object.assign(axiosError, customProps);
|
|
847
|
-
return axiosError;
|
|
1080
|
+
return parsed;
|
|
848
1081
|
};
|
|
849
1082
|
//#endregion
|
|
850
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
1083
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
|
|
1084
|
+
function trimSPorHTAB(str) {
|
|
1085
|
+
let start = 0;
|
|
1086
|
+
let end = str.length;
|
|
1087
|
+
while (start < end) {
|
|
1088
|
+
const code = str.charCodeAt(start);
|
|
1089
|
+
if (code !== 9 && code !== 32) break;
|
|
1090
|
+
start += 1;
|
|
1091
|
+
}
|
|
1092
|
+
while (end > start) {
|
|
1093
|
+
const code = str.charCodeAt(end - 1);
|
|
1094
|
+
if (code !== 9 && code !== 32) break;
|
|
1095
|
+
end -= 1;
|
|
1096
|
+
}
|
|
1097
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
1098
|
+
}
|
|
1099
|
+
const INVALID_UNICODE_HEADER_VALUE_CHARS = /* @__PURE__ */ new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g");
|
|
1100
|
+
const INVALID_BYTE_STRING_HEADER_VALUE_CHARS = /* @__PURE__ */ new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
|
|
1101
|
+
function sanitizeValue(value, invalidChars) {
|
|
1102
|
+
if (utils_default.isArray(value)) return value.map((item) => sanitizeValue(item, invalidChars));
|
|
1103
|
+
return trimSPorHTAB(String(value).replace(invalidChars, ""));
|
|
1104
|
+
}
|
|
1105
|
+
const sanitizeHeaderValue = (value) => sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
|
|
1106
|
+
const sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
|
|
1107
|
+
function toByteStringHeaderObject(headers) {
|
|
1108
|
+
const byteStringHeaders = Object.create(null);
|
|
1109
|
+
utils_default.forEach(headers.toJSON(), (value, header) => {
|
|
1110
|
+
byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
|
|
1111
|
+
});
|
|
1112
|
+
return byteStringHeaders;
|
|
860
1113
|
}
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
* @returns {string} the key without the brackets.
|
|
867
|
-
*/
|
|
868
|
-
function removeBrackets(key) {
|
|
869
|
-
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
1114
|
+
//#endregion
|
|
1115
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/AxiosHeaders.js
|
|
1116
|
+
const $internals$1 = Symbol("internals");
|
|
1117
|
+
function normalizeHeader(header) {
|
|
1118
|
+
return header && String(header).trim().toLowerCase();
|
|
870
1119
|
}
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
* @param {string} path - The path to the current key.
|
|
875
|
-
* @param {string} key - The key of the current object being iterated over.
|
|
876
|
-
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
877
|
-
*
|
|
878
|
-
* @returns {string} The path to the current key.
|
|
879
|
-
*/
|
|
880
|
-
function renderKey(path, key, dots) {
|
|
881
|
-
if (!path) return key;
|
|
882
|
-
return path.concat(key).map(function each(token, i) {
|
|
883
|
-
token = removeBrackets(token);
|
|
884
|
-
return !dots && i ? "[" + token + "]" : token;
|
|
885
|
-
}).join(dots ? "." : "");
|
|
1120
|
+
function normalizeValue(value) {
|
|
1121
|
+
if (value === false || value == null) return value;
|
|
1122
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
886
1123
|
}
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
*
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
*/
|
|
894
|
-
function isFlatArray(arr) {
|
|
895
|
-
return utils_default.isArray(arr) && !arr.some(isVisitable);
|
|
1124
|
+
function parseTokens(str) {
|
|
1125
|
+
const tokens = Object.create(null);
|
|
1126
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1127
|
+
let match;
|
|
1128
|
+
while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
|
|
1129
|
+
return tokens;
|
|
896
1130
|
}
|
|
897
|
-
const
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
if (
|
|
940
|
-
|
|
941
|
-
if (
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
955
|
-
*/
|
|
956
|
-
function defaultVisitor(value, key, path) {
|
|
957
|
-
let arr = value;
|
|
958
|
-
if (value && !path && typeof value === "object") {
|
|
959
|
-
if (utils_default.endsWith(key, "{}")) {
|
|
960
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
961
|
-
value = JSON.stringify(value);
|
|
962
|
-
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
963
|
-
key = removeBrackets(key);
|
|
964
|
-
arr.forEach(function each(el, index) {
|
|
965
|
-
!(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
|
|
966
|
-
});
|
|
967
|
-
return false;
|
|
968
|
-
}
|
|
1131
|
+
const parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
1132
|
+
function trimOWS(value) {
|
|
1133
|
+
let start = 0;
|
|
1134
|
+
let end = value.length;
|
|
1135
|
+
while (start < end) {
|
|
1136
|
+
const code = value.charCodeAt(start);
|
|
1137
|
+
if (code !== 9 && code !== 32) break;
|
|
1138
|
+
start += 1;
|
|
1139
|
+
}
|
|
1140
|
+
while (end > start) {
|
|
1141
|
+
const code = value.charCodeAt(end - 1);
|
|
1142
|
+
if (code !== 9 && code !== 32) break;
|
|
1143
|
+
end -= 1;
|
|
1144
|
+
}
|
|
1145
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
1146
|
+
}
|
|
1147
|
+
function decodeQuotedString(value) {
|
|
1148
|
+
const last = value.length - 1;
|
|
1149
|
+
if (last < 1 || value.charCodeAt(0) !== 34 || value.charCodeAt(last) !== 34) return value;
|
|
1150
|
+
let decoded = "";
|
|
1151
|
+
for (let i = 1; i < last; i++) {
|
|
1152
|
+
const code = value.charCodeAt(i);
|
|
1153
|
+
if (code === 34) return value;
|
|
1154
|
+
if (code === 92) {
|
|
1155
|
+
i += 1;
|
|
1156
|
+
if (i >= last) return value;
|
|
1157
|
+
}
|
|
1158
|
+
decoded += value[i];
|
|
1159
|
+
}
|
|
1160
|
+
return decoded;
|
|
1161
|
+
}
|
|
1162
|
+
function parseParameters(value) {
|
|
1163
|
+
const parameters = Object.create(null);
|
|
1164
|
+
const str = String(value);
|
|
1165
|
+
let start = 0;
|
|
1166
|
+
let quoted = false;
|
|
1167
|
+
let escaped = false;
|
|
1168
|
+
function parseParameter(end) {
|
|
1169
|
+
const part = trimOWS(str.slice(start, end));
|
|
1170
|
+
const equals = part.indexOf("=");
|
|
1171
|
+
if (equals < 1) return;
|
|
1172
|
+
const name = trimOWS(part.slice(0, equals));
|
|
1173
|
+
if (!parameterNameRE.test(name)) return;
|
|
1174
|
+
const normalizedName = name.toLowerCase();
|
|
1175
|
+
if (normalizedName === "__proto__" || normalizedName === "constructor" || normalizedName === "prototype") return;
|
|
1176
|
+
parameters[normalizedName] = decodeQuotedString(trimOWS(part.slice(equals + 1)));
|
|
1177
|
+
}
|
|
1178
|
+
for (let i = 0; i < str.length; i++) {
|
|
1179
|
+
const code = str.charCodeAt(i);
|
|
1180
|
+
if (quoted) {
|
|
1181
|
+
if (escaped) escaped = false;
|
|
1182
|
+
else if (code === 92) escaped = true;
|
|
1183
|
+
else if (code === 34) quoted = false;
|
|
1184
|
+
} else if (code === 34) quoted = true;
|
|
1185
|
+
else if (code === 44 || code === 59) {
|
|
1186
|
+
parseParameter(i);
|
|
1187
|
+
start = i + 1;
|
|
969
1188
|
}
|
|
970
|
-
if (isVisitable(value)) return true;
|
|
971
|
-
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
972
|
-
return false;
|
|
973
|
-
}
|
|
974
|
-
const stack = [];
|
|
975
|
-
const exposedHelpers = Object.assign(predicates, {
|
|
976
|
-
defaultVisitor,
|
|
977
|
-
convertValue,
|
|
978
|
-
isVisitable
|
|
979
|
-
});
|
|
980
|
-
function build(value, path) {
|
|
981
|
-
if (utils_default.isUndefined(value)) return;
|
|
982
|
-
if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path.join("."));
|
|
983
|
-
stack.push(value);
|
|
984
|
-
utils_default.forEach(value, function each(el, key) {
|
|
985
|
-
if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key]);
|
|
986
|
-
});
|
|
987
|
-
stack.pop();
|
|
988
1189
|
}
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
return formData;
|
|
1190
|
+
parseParameter(str.length);
|
|
1191
|
+
return parameters;
|
|
992
1192
|
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
const charMap = {
|
|
1005
|
-
"!": "%21",
|
|
1006
|
-
"'": "%27",
|
|
1007
|
-
"(": "%28",
|
|
1008
|
-
")": "%29",
|
|
1009
|
-
"~": "%7E",
|
|
1010
|
-
"%20": "+",
|
|
1011
|
-
"%00": "\0"
|
|
1012
|
-
};
|
|
1013
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
1014
|
-
return charMap[match];
|
|
1193
|
+
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
1194
|
+
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
1195
|
+
if (utils_default.isFunction(filter)) return filter.call(this, value, header);
|
|
1196
|
+
if (isHeaderNameFilter) value = header;
|
|
1197
|
+
if (!utils_default.isString(value)) return;
|
|
1198
|
+
if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
|
|
1199
|
+
if (utils_default.isRegExp(filter)) return filter.test(value);
|
|
1200
|
+
}
|
|
1201
|
+
function formatHeader(header) {
|
|
1202
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
1203
|
+
return char.toUpperCase() + str;
|
|
1015
1204
|
});
|
|
1016
1205
|
}
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1206
|
+
function buildAccessors(obj, header) {
|
|
1207
|
+
const accessorName = utils_default.toCamelCase(" " + header);
|
|
1208
|
+
[
|
|
1209
|
+
"get",
|
|
1210
|
+
"set",
|
|
1211
|
+
"has"
|
|
1212
|
+
].forEach((methodName) => {
|
|
1213
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
1214
|
+
__proto__: null,
|
|
1215
|
+
value: function(arg1, arg2, arg3) {
|
|
1216
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
1217
|
+
},
|
|
1218
|
+
configurable: true
|
|
1219
|
+
});
|
|
1220
|
+
});
|
|
1028
1221
|
}
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1222
|
+
var AxiosHeaders$1 = class {
|
|
1223
|
+
constructor(headers) {
|
|
1224
|
+
headers && this.set(headers);
|
|
1225
|
+
}
|
|
1226
|
+
set(header, valueOrRewrite, rewrite) {
|
|
1227
|
+
const self = this;
|
|
1228
|
+
function setHeader(_value, _header, _rewrite) {
|
|
1229
|
+
const lHeader = normalizeHeader(_header);
|
|
1230
|
+
if (!lHeader) return;
|
|
1231
|
+
const key = utils_default.findKey(self, lHeader);
|
|
1232
|
+
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
|
|
1233
|
+
}
|
|
1234
|
+
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
1235
|
+
if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
1236
|
+
else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
1237
|
+
else if (utils_default.isObject(header) && utils_default.isSafeIterable(header)) {
|
|
1238
|
+
let obj = Object.create(null), dest, key;
|
|
1239
|
+
for (const entry of header) {
|
|
1240
|
+
if (!utils_default.isArray(entry)) throw new TypeError("Object iterator must return a key-value pair");
|
|
1241
|
+
key = entry[0];
|
|
1242
|
+
if (utils_default.hasOwnProp(obj, key)) {
|
|
1243
|
+
dest = obj[key];
|
|
1244
|
+
obj[key] = utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]];
|
|
1245
|
+
} else obj[key] = entry[1];
|
|
1246
|
+
}
|
|
1247
|
+
setHeaders(obj, valueOrRewrite);
|
|
1248
|
+
} else header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
1249
|
+
return this;
|
|
1250
|
+
}
|
|
1251
|
+
get(header, parser) {
|
|
1252
|
+
header = normalizeHeader(header);
|
|
1253
|
+
if (header) {
|
|
1254
|
+
const key = utils_default.findKey(this, header);
|
|
1255
|
+
if (key) {
|
|
1256
|
+
const value = this[key];
|
|
1257
|
+
if (!parser) return value;
|
|
1258
|
+
if (parser === true) return parseTokens(value);
|
|
1259
|
+
if (utils_default.isFunction(parser)) return parser.call(this, value, key);
|
|
1260
|
+
if (utils_default.isRegExp(parser)) return parser.exec(value);
|
|
1261
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
has(header, matcher) {
|
|
1266
|
+
header = normalizeHeader(header);
|
|
1267
|
+
if (header) {
|
|
1268
|
+
const key = utils_default.findKey(this, header);
|
|
1269
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
1270
|
+
}
|
|
1271
|
+
return false;
|
|
1272
|
+
}
|
|
1273
|
+
delete(header, matcher) {
|
|
1274
|
+
const self = this;
|
|
1275
|
+
let deleted = false;
|
|
1276
|
+
function deleteHeader(_header) {
|
|
1277
|
+
_header = normalizeHeader(_header);
|
|
1278
|
+
if (_header) {
|
|
1279
|
+
const key = utils_default.findKey(self, _header);
|
|
1280
|
+
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
|
|
1281
|
+
delete self[key];
|
|
1282
|
+
deleted = true;
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
if (utils_default.isArray(header)) header.forEach(deleteHeader);
|
|
1287
|
+
else deleteHeader(header);
|
|
1288
|
+
return deleted;
|
|
1289
|
+
}
|
|
1290
|
+
clear(matcher) {
|
|
1291
|
+
const keys = Object.keys(this);
|
|
1292
|
+
let i = keys.length;
|
|
1293
|
+
let deleted = false;
|
|
1294
|
+
while (i--) {
|
|
1295
|
+
const key = keys[i];
|
|
1296
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
1297
|
+
delete this[key];
|
|
1298
|
+
deleted = true;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
return deleted;
|
|
1302
|
+
}
|
|
1303
|
+
normalize(format) {
|
|
1304
|
+
const self = this;
|
|
1305
|
+
const headers = {};
|
|
1306
|
+
utils_default.forEach(this, (value, header) => {
|
|
1307
|
+
const key = utils_default.findKey(headers, header);
|
|
1308
|
+
if (key) {
|
|
1309
|
+
self[key] = normalizeValue(value);
|
|
1310
|
+
delete self[header];
|
|
1311
|
+
return;
|
|
1312
|
+
}
|
|
1313
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
1314
|
+
if (normalized !== header) delete self[header];
|
|
1315
|
+
self[normalized] = normalizeValue(value);
|
|
1316
|
+
headers[normalized] = true;
|
|
1317
|
+
});
|
|
1318
|
+
return this;
|
|
1319
|
+
}
|
|
1320
|
+
concat(...targets) {
|
|
1321
|
+
return this.constructor.concat(this, ...targets);
|
|
1322
|
+
}
|
|
1323
|
+
toJSON(asStrings) {
|
|
1324
|
+
const obj = Object.create(null);
|
|
1325
|
+
utils_default.forEach(this, (value, header) => {
|
|
1326
|
+
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
1327
|
+
});
|
|
1328
|
+
return obj;
|
|
1329
|
+
}
|
|
1330
|
+
[Symbol.iterator]() {
|
|
1331
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1332
|
+
}
|
|
1333
|
+
toString() {
|
|
1334
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
1335
|
+
}
|
|
1336
|
+
getSetCookie() {
|
|
1337
|
+
const value = this.get("set-cookie");
|
|
1338
|
+
return utils_default.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
1339
|
+
}
|
|
1340
|
+
get [Symbol.toStringTag]() {
|
|
1341
|
+
return "AxiosHeaders";
|
|
1342
|
+
}
|
|
1343
|
+
static from(thing) {
|
|
1344
|
+
return thing instanceof this ? thing : new this(thing);
|
|
1345
|
+
}
|
|
1346
|
+
static parseParameters(value) {
|
|
1347
|
+
return parseParameters(value);
|
|
1348
|
+
}
|
|
1349
|
+
static concat(first, ...targets) {
|
|
1350
|
+
const computed = new this(first);
|
|
1351
|
+
targets.forEach((target) => computed.set(target));
|
|
1352
|
+
return computed;
|
|
1353
|
+
}
|
|
1354
|
+
static accessor(header) {
|
|
1355
|
+
const accessors = (this[$internals$1] = this[$internals$1] = { accessors: {} }).accessors;
|
|
1356
|
+
const prototype = this.prototype;
|
|
1357
|
+
function defineAccessor(_header) {
|
|
1358
|
+
const lHeader = normalizeHeader(_header);
|
|
1359
|
+
if (!accessors[lHeader]) {
|
|
1360
|
+
buildAccessors(prototype, _header);
|
|
1361
|
+
accessors[lHeader] = true;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
1365
|
+
return this;
|
|
1366
|
+
}
|
|
1040
1367
|
};
|
|
1368
|
+
AxiosHeaders$1.accessor([
|
|
1369
|
+
"Content-Type",
|
|
1370
|
+
"Content-Length",
|
|
1371
|
+
"Accept",
|
|
1372
|
+
"Accept-Encoding",
|
|
1373
|
+
"User-Agent",
|
|
1374
|
+
"Authorization"
|
|
1375
|
+
]);
|
|
1376
|
+
utils_default.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
|
|
1377
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
1378
|
+
return {
|
|
1379
|
+
get: () => value,
|
|
1380
|
+
set(headerValue) {
|
|
1381
|
+
this[mapped] = headerValue;
|
|
1382
|
+
}
|
|
1383
|
+
};
|
|
1384
|
+
});
|
|
1385
|
+
utils_default.freezeMethods(AxiosHeaders$1);
|
|
1041
1386
|
//#endregion
|
|
1042
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1387
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/AxiosError.js
|
|
1388
|
+
const REDACTED = "[REDACTED ****]";
|
|
1389
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
1390
|
+
if (utils_default.hasOwnProp(source, "toJSON")) return true;
|
|
1391
|
+
let prototype = Object.getPrototypeOf(source);
|
|
1392
|
+
while (prototype && prototype !== Object.prototype) {
|
|
1393
|
+
if (utils_default.hasOwnProp(prototype, "toJSON")) return true;
|
|
1394
|
+
prototype = Object.getPrototypeOf(prototype);
|
|
1395
|
+
}
|
|
1396
|
+
return false;
|
|
1397
|
+
}
|
|
1398
|
+
function redactConfig(config, redactKeys) {
|
|
1399
|
+
const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
|
|
1400
|
+
const seen = [];
|
|
1401
|
+
const visit = (source) => {
|
|
1402
|
+
if (source === null || typeof source !== "object") return source;
|
|
1403
|
+
if (utils_default.isBuffer(source)) return source;
|
|
1404
|
+
if (seen.indexOf(source) !== -1) return void 0;
|
|
1405
|
+
if (source instanceof AxiosHeaders$1) source = source.toJSON();
|
|
1406
|
+
seen.push(source);
|
|
1407
|
+
let result;
|
|
1408
|
+
if (utils_default.isArray(source)) {
|
|
1409
|
+
result = [];
|
|
1410
|
+
source.forEach((v, i) => {
|
|
1411
|
+
const reducedValue = visit(v);
|
|
1412
|
+
if (!utils_default.isUndefined(reducedValue)) result[i] = reducedValue;
|
|
1413
|
+
});
|
|
1414
|
+
} else {
|
|
1415
|
+
if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
1416
|
+
seen.pop();
|
|
1417
|
+
return source;
|
|
1418
|
+
}
|
|
1419
|
+
result = Object.create(null);
|
|
1420
|
+
for (const [key, value] of Object.entries(source)) {
|
|
1421
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
|
|
1422
|
+
if (!utils_default.isUndefined(reducedValue)) result[key] = reducedValue;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
seen.pop();
|
|
1426
|
+
return result;
|
|
1427
|
+
};
|
|
1428
|
+
return visit(config);
|
|
1053
1429
|
}
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
* @param {?(object|Function)} options
|
|
1060
|
-
*
|
|
1061
|
-
* @returns {string} The formatted url
|
|
1062
|
-
*/
|
|
1063
|
-
function buildURL(url, params, options) {
|
|
1064
|
-
if (!params) return url;
|
|
1065
|
-
const _encode = options && options.encode || encode;
|
|
1066
|
-
if (utils_default.isFunction(options)) options = { serialize: options };
|
|
1067
|
-
const serializeFn = options && options.serialize;
|
|
1068
|
-
let serializedParams;
|
|
1069
|
-
if (serializeFn) serializedParams = serializeFn(params, options);
|
|
1070
|
-
else serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
|
|
1071
|
-
if (serializedParams) {
|
|
1072
|
-
const hashmarkIndex = url.indexOf("#");
|
|
1073
|
-
if (hashmarkIndex !== -1) url = url.slice(0, hashmarkIndex);
|
|
1074
|
-
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
1430
|
+
function stringifySafely$1(value) {
|
|
1431
|
+
try {
|
|
1432
|
+
return String(value);
|
|
1433
|
+
} catch (err) {
|
|
1434
|
+
return "";
|
|
1075
1435
|
}
|
|
1076
|
-
return url;
|
|
1077
1436
|
}
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1437
|
+
function aggregateErrorMessage(error) {
|
|
1438
|
+
return error.errors.map((entry) => {
|
|
1439
|
+
try {
|
|
1440
|
+
return entry && entry.message ? stringifySafely$1(entry.message) : stringifySafely$1(entry);
|
|
1441
|
+
} catch (err) {
|
|
1442
|
+
return "";
|
|
1443
|
+
}
|
|
1444
|
+
}).filter(Boolean).join("; ") || error.name || "AggregateError";
|
|
1445
|
+
}
|
|
1446
|
+
var AxiosError$1 = class AxiosError$1 extends Error {
|
|
1447
|
+
static from(error, code, config, request, response, customProps) {
|
|
1448
|
+
let message = error.message;
|
|
1449
|
+
if (!message && utils_default.isArray(error.errors) && error.errors.length) message = aggregateErrorMessage(error);
|
|
1450
|
+
const axiosError = new AxiosError$1(message, code || error.code, config, request, response);
|
|
1451
|
+
Object.defineProperty(axiosError, "cause", {
|
|
1452
|
+
__proto__: null,
|
|
1453
|
+
value: error,
|
|
1454
|
+
writable: true,
|
|
1455
|
+
enumerable: false,
|
|
1456
|
+
configurable: true
|
|
1098
1457
|
});
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
*
|
|
1104
|
-
* @param {Number} id The ID that was returned by `use`
|
|
1105
|
-
*
|
|
1106
|
-
* @returns {void}
|
|
1107
|
-
*/
|
|
1108
|
-
eject(id) {
|
|
1109
|
-
if (this.handlers[id]) this.handlers[id] = null;
|
|
1110
|
-
}
|
|
1111
|
-
/**
|
|
1112
|
-
* Clear all interceptors from the stack
|
|
1113
|
-
*
|
|
1114
|
-
* @returns {void}
|
|
1115
|
-
*/
|
|
1116
|
-
clear() {
|
|
1117
|
-
if (this.handlers) this.handlers = [];
|
|
1458
|
+
axiosError.name = error.name;
|
|
1459
|
+
if (error.status != null && axiosError.status == null) axiosError.status = error.status;
|
|
1460
|
+
customProps && Object.assign(axiosError, customProps);
|
|
1461
|
+
return axiosError;
|
|
1118
1462
|
}
|
|
1119
1463
|
/**
|
|
1120
|
-
*
|
|
1121
|
-
*
|
|
1122
|
-
* This method is particularly useful for skipping over any
|
|
1123
|
-
* interceptors that may have become `null` calling `eject`.
|
|
1464
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
1124
1465
|
*
|
|
1125
|
-
* @param {
|
|
1466
|
+
* @param {string} message The error message.
|
|
1467
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
1468
|
+
* @param {Object} [config] The config.
|
|
1469
|
+
* @param {Object} [request] The request.
|
|
1470
|
+
* @param {Object} [response] The response.
|
|
1126
1471
|
*
|
|
1127
|
-
* @returns {
|
|
1472
|
+
* @returns {Error} The created error.
|
|
1128
1473
|
*/
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1474
|
+
constructor(message, code, config, request, response) {
|
|
1475
|
+
super(message);
|
|
1476
|
+
Object.defineProperty(this, "message", {
|
|
1477
|
+
__proto__: null,
|
|
1478
|
+
value: message,
|
|
1479
|
+
enumerable: true,
|
|
1480
|
+
writable: true,
|
|
1481
|
+
configurable: true
|
|
1132
1482
|
});
|
|
1483
|
+
this.name = "AxiosError";
|
|
1484
|
+
this.isAxiosError = true;
|
|
1485
|
+
code && (this.code = code);
|
|
1486
|
+
config && (this.config = config);
|
|
1487
|
+
request && (this.request = request);
|
|
1488
|
+
if (response) {
|
|
1489
|
+
this.response = response;
|
|
1490
|
+
this.status = response.status;
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
toJSON() {
|
|
1494
|
+
const config = this.config;
|
|
1495
|
+
const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
|
|
1496
|
+
const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
|
|
1497
|
+
return {
|
|
1498
|
+
message: this.message,
|
|
1499
|
+
name: this.name,
|
|
1500
|
+
description: this.description,
|
|
1501
|
+
number: this.number,
|
|
1502
|
+
fileName: this.fileName,
|
|
1503
|
+
lineNumber: this.lineNumber,
|
|
1504
|
+
columnNumber: this.columnNumber,
|
|
1505
|
+
stack: this.stack,
|
|
1506
|
+
config: serializedConfig,
|
|
1507
|
+
code: this.code,
|
|
1508
|
+
status: this.status
|
|
1509
|
+
};
|
|
1133
1510
|
}
|
|
1134
1511
|
};
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
Blob: typeof Blob !== "undefined" ? Blob : null
|
|
1150
|
-
},
|
|
1151
|
-
protocols: [
|
|
1152
|
-
"http",
|
|
1153
|
-
"https",
|
|
1154
|
-
"file",
|
|
1155
|
-
"blob",
|
|
1156
|
-
"url",
|
|
1157
|
-
"data"
|
|
1158
|
-
]
|
|
1159
|
-
};
|
|
1160
|
-
//#endregion
|
|
1161
|
-
//#region ../../../node_modules/.pnpm/axios@1.13.2_debug@4.4.3_supports-color@10.2.2_/node_modules/axios/lib/platform/common/utils.js
|
|
1162
|
-
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
1163
|
-
hasBrowserEnv: () => hasBrowserEnv,
|
|
1164
|
-
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
1165
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
1166
|
-
navigator: () => _navigator,
|
|
1167
|
-
origin: () => origin
|
|
1168
|
-
});
|
|
1169
|
-
const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
1170
|
-
const _navigator = typeof navigator === "object" && navigator || void 0;
|
|
1512
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
1513
|
+
AxiosError$1.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
1514
|
+
AxiosError$1.ECONNABORTED = "ECONNABORTED";
|
|
1515
|
+
AxiosError$1.ETIMEDOUT = "ETIMEDOUT";
|
|
1516
|
+
AxiosError$1.ECONNREFUSED = "ECONNREFUSED";
|
|
1517
|
+
AxiosError$1.ERR_NETWORK = "ERR_NETWORK";
|
|
1518
|
+
AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
1519
|
+
AxiosError$1.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
1520
|
+
AxiosError$1.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
1521
|
+
AxiosError$1.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
1522
|
+
AxiosError$1.ERR_CANCELED = "ERR_CANCELED";
|
|
1523
|
+
AxiosError$1.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
1524
|
+
AxiosError$1.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
1525
|
+
AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
1171
1526
|
/**
|
|
1172
|
-
*
|
|
1173
|
-
*
|
|
1174
|
-
* This allows axios to run in a web worker, and react-native.
|
|
1175
|
-
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
1176
|
-
*
|
|
1177
|
-
* web workers:
|
|
1178
|
-
* typeof window -> undefined
|
|
1179
|
-
* typeof document -> undefined
|
|
1527
|
+
* Determines if the given thing is a array or js object.
|
|
1180
1528
|
*
|
|
1181
|
-
*
|
|
1182
|
-
* navigator.product -> 'ReactNative'
|
|
1183
|
-
* nativescript
|
|
1184
|
-
* navigator.product -> 'NativeScript' or 'NS'
|
|
1529
|
+
* @param {string} thing - The object or array to be visited.
|
|
1185
1530
|
*
|
|
1186
1531
|
* @returns {boolean}
|
|
1187
1532
|
*/
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
"NS"
|
|
1192
|
-
].indexOf(_navigator.product) < 0);
|
|
1533
|
+
function isVisitable(thing) {
|
|
1534
|
+
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
1535
|
+
}
|
|
1193
1536
|
/**
|
|
1194
|
-
*
|
|
1537
|
+
* It removes the brackets from the end of a string
|
|
1195
1538
|
*
|
|
1196
|
-
*
|
|
1197
|
-
*
|
|
1198
|
-
*
|
|
1199
|
-
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
1200
|
-
* This leads to a problem when axios post `FormData` in webWorker
|
|
1539
|
+
* @param {string} key - The key of the parameter.
|
|
1540
|
+
*
|
|
1541
|
+
* @returns {string} the key without the brackets.
|
|
1201
1542
|
*/
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
//#endregion
|
|
1205
|
-
//#region ../../../node_modules/.pnpm/axios@1.13.2_debug@4.4.3_supports-color@10.2.2_/node_modules/axios/lib/platform/index.js
|
|
1206
|
-
var platform_default = {
|
|
1207
|
-
...utils_exports,
|
|
1208
|
-
...browser_default
|
|
1209
|
-
};
|
|
1210
|
-
//#endregion
|
|
1211
|
-
//#region ../../../node_modules/.pnpm/axios@1.13.2_debug@4.4.3_supports-color@10.2.2_/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
1212
|
-
function toURLEncodedForm(data, options) {
|
|
1213
|
-
return toFormData$1(data, new platform_default.classes.URLSearchParams(), {
|
|
1214
|
-
visitor: function(value, key, path, helpers) {
|
|
1215
|
-
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
1216
|
-
this.append(key, value.toString("base64"));
|
|
1217
|
-
return false;
|
|
1218
|
-
}
|
|
1219
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
1220
|
-
},
|
|
1221
|
-
...options
|
|
1222
|
-
});
|
|
1543
|
+
function removeBrackets(key) {
|
|
1544
|
+
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
1223
1545
|
}
|
|
1224
|
-
//#endregion
|
|
1225
|
-
//#region ../../../node_modules/.pnpm/axios@1.13.2_debug@4.4.3_supports-color@10.2.2_/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
1226
1546
|
/**
|
|
1227
|
-
* It takes a
|
|
1547
|
+
* It takes a path, a key, and a boolean, and returns a string
|
|
1228
1548
|
*
|
|
1229
|
-
* @param {string}
|
|
1549
|
+
* @param {string} path - The path to the current key.
|
|
1550
|
+
* @param {string} key - The key of the current object being iterated over.
|
|
1551
|
+
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
1230
1552
|
*
|
|
1231
|
-
* @returns
|
|
1553
|
+
* @returns {string} The path to the current key.
|
|
1232
1554
|
*/
|
|
1233
|
-
function
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1555
|
+
function renderKey(path, key, dots) {
|
|
1556
|
+
if (!path) return key;
|
|
1557
|
+
return path.concat(key).map(function each(token, i) {
|
|
1558
|
+
token = removeBrackets(token);
|
|
1559
|
+
return !dots && i ? "[" + token + "]" : token;
|
|
1560
|
+
}).join(dots ? "." : "");
|
|
1237
1561
|
}
|
|
1238
1562
|
/**
|
|
1239
|
-
*
|
|
1563
|
+
* If the array is an array and none of its elements are visitable, then it's a flat array.
|
|
1240
1564
|
*
|
|
1241
|
-
* @param {Array<any>} arr - The array to
|
|
1565
|
+
* @param {Array<any>} arr - The array to check
|
|
1242
1566
|
*
|
|
1243
|
-
* @returns
|
|
1567
|
+
* @returns {boolean}
|
|
1244
1568
|
*/
|
|
1245
|
-
function
|
|
1246
|
-
|
|
1247
|
-
const keys = Object.keys(arr);
|
|
1248
|
-
let i;
|
|
1249
|
-
const len = keys.length;
|
|
1250
|
-
let key;
|
|
1251
|
-
for (i = 0; i < len; i++) {
|
|
1252
|
-
key = keys[i];
|
|
1253
|
-
obj[key] = arr[key];
|
|
1254
|
-
}
|
|
1255
|
-
return obj;
|
|
1569
|
+
function isFlatArray(arr) {
|
|
1570
|
+
return utils_default.isArray(arr) && !arr.some(isVisitable);
|
|
1256
1571
|
}
|
|
1572
|
+
const predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
|
|
1573
|
+
return /^is[A-Z]/.test(prop);
|
|
1574
|
+
});
|
|
1257
1575
|
/**
|
|
1258
|
-
*
|
|
1576
|
+
* Convert a data object to FormData
|
|
1259
1577
|
*
|
|
1260
|
-
* @param {
|
|
1578
|
+
* @param {Object} obj
|
|
1579
|
+
* @param {?Object} [formData]
|
|
1580
|
+
* @param {?Object} [options]
|
|
1581
|
+
* @param {Function} [options.visitor]
|
|
1582
|
+
* @param {Boolean} [options.metaTokens = true]
|
|
1583
|
+
* @param {Boolean} [options.dots = false]
|
|
1584
|
+
* @param {?Boolean} [options.indexes = false]
|
|
1261
1585
|
*
|
|
1262
|
-
* @returns {Object
|
|
1586
|
+
* @returns {Object}
|
|
1587
|
+
**/
|
|
1588
|
+
/**
|
|
1589
|
+
* It converts an object into a FormData object
|
|
1590
|
+
*
|
|
1591
|
+
* @param {Object<any, any>} obj - The object to convert to form data.
|
|
1592
|
+
* @param {string} formData - The FormData object to append to.
|
|
1593
|
+
* @param {Object<string, any>} options
|
|
1594
|
+
*
|
|
1595
|
+
* @returns
|
|
1263
1596
|
*/
|
|
1264
|
-
function
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1597
|
+
function toFormData$1(obj, formData, options) {
|
|
1598
|
+
if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
|
|
1599
|
+
formData = formData || new FormData();
|
|
1600
|
+
const option = (name, fallback) => {
|
|
1601
|
+
const value = utils_default.getSafeProp(options, name);
|
|
1602
|
+
return utils_default.isUndefined(value) ? fallback : value;
|
|
1603
|
+
};
|
|
1604
|
+
const metaTokens = option("metaTokens", true);
|
|
1605
|
+
const visitor = option("visitor") || defaultVisitor;
|
|
1606
|
+
const dots = option("dots", false);
|
|
1607
|
+
const indexes = option("indexes", false);
|
|
1608
|
+
const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
|
|
1609
|
+
const maxDepth = option("maxDepth", 100);
|
|
1610
|
+
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
1611
|
+
const stack = [];
|
|
1612
|
+
if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
|
|
1613
|
+
function convertValue(value) {
|
|
1614
|
+
if (value === null) return "";
|
|
1615
|
+
if (utils_default.isDate(value)) return value.toISOString();
|
|
1616
|
+
if (utils_default.isBoolean(value)) return value.toString();
|
|
1617
|
+
if (!useBlob && utils_default.isBlob(value)) throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
1618
|
+
if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
|
|
1619
|
+
if (useBlob && typeof _Blob === "function") return new _Blob([value]);
|
|
1620
|
+
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.", AxiosError$1.ERR_NOT_SUPPORT);
|
|
1275
1621
|
}
|
|
1276
|
-
|
|
1277
|
-
if (buildPath(path, value, target[name], index) && utils_default.isArray(target[name])) target[name] = arrayToObject(target[name]);
|
|
1278
|
-
return !isNumericKey;
|
|
1622
|
+
return value;
|
|
1279
1623
|
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1624
|
+
function throwIfMaxDepthExceeded(depth) {
|
|
1625
|
+
if (depth > maxDepth) throw new AxiosError$1("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
1626
|
+
}
|
|
1627
|
+
function stringifyWithDepthLimit(value, depth) {
|
|
1628
|
+
if (maxDepth === Infinity) return JSON.stringify(value);
|
|
1629
|
+
const ancestors = [];
|
|
1630
|
+
return JSON.stringify(value, function limitDepth(_key, currentValue) {
|
|
1631
|
+
if (!utils_default.isObject(currentValue)) return currentValue;
|
|
1632
|
+
while (ancestors.length && ancestors[ancestors.length - 1] !== this) ancestors.pop();
|
|
1633
|
+
ancestors.push(currentValue);
|
|
1634
|
+
throwIfMaxDepthExceeded(depth + ancestors.length - 1);
|
|
1635
|
+
return currentValue;
|
|
1284
1636
|
});
|
|
1285
|
-
return obj;
|
|
1286
1637
|
}
|
|
1287
|
-
|
|
1638
|
+
/**
|
|
1639
|
+
* Default visitor.
|
|
1640
|
+
*
|
|
1641
|
+
* @param {*} value
|
|
1642
|
+
* @param {String|Number} key
|
|
1643
|
+
* @param {Array<String|Number>} path
|
|
1644
|
+
* @this {FormData}
|
|
1645
|
+
*
|
|
1646
|
+
* @returns {boolean} return true to visit the each prop of the value recursively
|
|
1647
|
+
*/
|
|
1648
|
+
function defaultVisitor(value, key, path) {
|
|
1649
|
+
let arr = value;
|
|
1650
|
+
if (utils_default.isReactNative(formData) && utils_default.isReactNativeBlob(value)) {
|
|
1651
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
1652
|
+
return false;
|
|
1653
|
+
}
|
|
1654
|
+
if (value && !path && typeof value === "object") {
|
|
1655
|
+
if (utils_default.endsWith(key, "{}")) {
|
|
1656
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
1657
|
+
value = stringifyWithDepthLimit(value, 1);
|
|
1658
|
+
} else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
|
|
1659
|
+
key = removeBrackets(key);
|
|
1660
|
+
arr.forEach(function each(el, index) {
|
|
1661
|
+
!(utils_default.isUndefined(el) || el === null) && formData.append(indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]", convertValue(el));
|
|
1662
|
+
});
|
|
1663
|
+
return false;
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
if (isVisitable(value)) return true;
|
|
1667
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
1668
|
+
return false;
|
|
1669
|
+
}
|
|
1670
|
+
const exposedHelpers = Object.assign(predicates, {
|
|
1671
|
+
defaultVisitor,
|
|
1672
|
+
convertValue,
|
|
1673
|
+
isVisitable
|
|
1674
|
+
});
|
|
1675
|
+
function build(value, path, depth = 0) {
|
|
1676
|
+
if (utils_default.isUndefined(value)) return;
|
|
1677
|
+
throwIfMaxDepthExceeded(depth);
|
|
1678
|
+
if (stack.indexOf(value) !== -1) throw new Error("Circular reference detected in " + path.join("."));
|
|
1679
|
+
stack.push(value);
|
|
1680
|
+
utils_default.forEach(value, function each(el, key) {
|
|
1681
|
+
if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key], depth + 1);
|
|
1682
|
+
});
|
|
1683
|
+
stack.pop();
|
|
1684
|
+
}
|
|
1685
|
+
if (!utils_default.isObject(obj)) throw new TypeError("data must be an object");
|
|
1686
|
+
build(obj);
|
|
1687
|
+
return formData;
|
|
1688
|
+
}
|
|
1689
|
+
//#endregion
|
|
1690
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
1691
|
+
/**
|
|
1692
|
+
* It encodes a string by replacing all characters that are not in the unreserved set with
|
|
1693
|
+
* their percent-encoded equivalents
|
|
1694
|
+
*
|
|
1695
|
+
* @param {string} str - The string to encode.
|
|
1696
|
+
*
|
|
1697
|
+
* @returns {string} The encoded string.
|
|
1698
|
+
*/
|
|
1699
|
+
function encode$1(str) {
|
|
1700
|
+
const charMap = {
|
|
1701
|
+
"!": "%21",
|
|
1702
|
+
"'": "%27",
|
|
1703
|
+
"(": "%28",
|
|
1704
|
+
")": "%29",
|
|
1705
|
+
"~": "%7E",
|
|
1706
|
+
"%20": "+"
|
|
1707
|
+
};
|
|
1708
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
1709
|
+
return charMap[match];
|
|
1710
|
+
});
|
|
1288
1711
|
}
|
|
1289
|
-
//#endregion
|
|
1290
|
-
//#region ../../../node_modules/.pnpm/axios@1.13.2_debug@4.4.3_supports-color@10.2.2_/node_modules/axios/lib/defaults/index.js
|
|
1291
1712
|
/**
|
|
1292
|
-
* It takes a
|
|
1293
|
-
* of the input
|
|
1713
|
+
* It takes a params object and converts it to a FormData object
|
|
1294
1714
|
*
|
|
1295
|
-
* @param {any}
|
|
1296
|
-
* @param {
|
|
1297
|
-
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
1715
|
+
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
|
1716
|
+
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
|
1298
1717
|
*
|
|
1299
|
-
* @returns {
|
|
1718
|
+
* @returns {void}
|
|
1300
1719
|
*/
|
|
1301
|
-
function
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
return utils_default.trim(rawValue);
|
|
1305
|
-
} catch (e) {
|
|
1306
|
-
if (e.name !== "SyntaxError") throw e;
|
|
1307
|
-
}
|
|
1308
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
1720
|
+
function AxiosURLSearchParams(params, options) {
|
|
1721
|
+
this._pairs = [];
|
|
1722
|
+
params && toFormData$1(params, this, options);
|
|
1309
1723
|
}
|
|
1310
|
-
const
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
1320
|
-
const isObjectPayload = utils_default.isObject(data);
|
|
1321
|
-
if (isObjectPayload && utils_default.isHTMLForm(data)) data = new FormData(data);
|
|
1322
|
-
if (utils_default.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
1323
|
-
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) return data;
|
|
1324
|
-
if (utils_default.isArrayBufferView(data)) return data.buffer;
|
|
1325
|
-
if (utils_default.isURLSearchParams(data)) {
|
|
1326
|
-
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
1327
|
-
return data.toString();
|
|
1328
|
-
}
|
|
1329
|
-
let isFileList;
|
|
1330
|
-
if (isObjectPayload) {
|
|
1331
|
-
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, this.formSerializer).toString();
|
|
1332
|
-
if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
1333
|
-
const _FormData = this.env && this.env.FormData;
|
|
1334
|
-
return toFormData$1(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), this.formSerializer);
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
1338
|
-
headers.setContentType("application/json", false);
|
|
1339
|
-
return stringifySafely(data);
|
|
1340
|
-
}
|
|
1341
|
-
return data;
|
|
1342
|
-
}],
|
|
1343
|
-
transformResponse: [function transformResponse(data) {
|
|
1344
|
-
const transitional = this.transitional || defaults.transitional;
|
|
1345
|
-
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
1346
|
-
const JSONRequested = this.responseType === "json";
|
|
1347
|
-
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) return data;
|
|
1348
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
1349
|
-
const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
|
|
1350
|
-
try {
|
|
1351
|
-
return JSON.parse(data, this.parseReviver);
|
|
1352
|
-
} catch (e) {
|
|
1353
|
-
if (strictJSONParsing) {
|
|
1354
|
-
if (e.name === "SyntaxError") throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1355
|
-
throw e;
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
return data;
|
|
1360
|
-
}],
|
|
1361
|
-
timeout: 0,
|
|
1362
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
1363
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
1364
|
-
maxContentLength: -1,
|
|
1365
|
-
maxBodyLength: -1,
|
|
1366
|
-
env: {
|
|
1367
|
-
FormData: platform_default.classes.FormData,
|
|
1368
|
-
Blob: platform_default.classes.Blob
|
|
1369
|
-
},
|
|
1370
|
-
validateStatus: function validateStatus(status) {
|
|
1371
|
-
return status >= 200 && status < 300;
|
|
1372
|
-
},
|
|
1373
|
-
headers: { common: {
|
|
1374
|
-
"Accept": "application/json, text/plain, */*",
|
|
1375
|
-
"Content-Type": void 0
|
|
1376
|
-
} }
|
|
1724
|
+
const prototype = AxiosURLSearchParams.prototype;
|
|
1725
|
+
prototype.append = function append(name, value) {
|
|
1726
|
+
this._pairs.push([name, value]);
|
|
1727
|
+
};
|
|
1728
|
+
prototype.toString = function toString(encoder) {
|
|
1729
|
+
const _encode = encoder ? (value) => encoder.call(this, value, encode$1) : encode$1;
|
|
1730
|
+
return this._pairs.map(function each(pair) {
|
|
1731
|
+
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
1732
|
+
}, "").join("&");
|
|
1377
1733
|
};
|
|
1378
|
-
utils_default.forEach([
|
|
1379
|
-
"delete",
|
|
1380
|
-
"get",
|
|
1381
|
-
"head",
|
|
1382
|
-
"post",
|
|
1383
|
-
"put",
|
|
1384
|
-
"patch"
|
|
1385
|
-
], (method) => {
|
|
1386
|
-
defaults.headers[method] = {};
|
|
1387
|
-
});
|
|
1388
1734
|
//#endregion
|
|
1389
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
1390
|
-
const ignoreDuplicateOf = utils_default.toObjectSet([
|
|
1391
|
-
"age",
|
|
1392
|
-
"authorization",
|
|
1393
|
-
"content-length",
|
|
1394
|
-
"content-type",
|
|
1395
|
-
"etag",
|
|
1396
|
-
"expires",
|
|
1397
|
-
"from",
|
|
1398
|
-
"host",
|
|
1399
|
-
"if-modified-since",
|
|
1400
|
-
"if-unmodified-since",
|
|
1401
|
-
"last-modified",
|
|
1402
|
-
"location",
|
|
1403
|
-
"max-forwards",
|
|
1404
|
-
"proxy-authorization",
|
|
1405
|
-
"referer",
|
|
1406
|
-
"retry-after",
|
|
1407
|
-
"user-agent"
|
|
1408
|
-
]);
|
|
1735
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/buildURL.js
|
|
1409
1736
|
/**
|
|
1410
|
-
*
|
|
1737
|
+
* It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
|
|
1738
|
+
* their plain counterparts (`:`, `$`, `,`, `+`).
|
|
1411
1739
|
*
|
|
1412
|
-
*
|
|
1413
|
-
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
1414
|
-
* Content-Type: application/json
|
|
1415
|
-
* Connection: keep-alive
|
|
1416
|
-
* Transfer-Encoding: chunked
|
|
1417
|
-
* ```
|
|
1740
|
+
* @param {string} val The value to be encoded.
|
|
1418
1741
|
*
|
|
1419
|
-
* @
|
|
1742
|
+
* @returns {string} The encoded value.
|
|
1743
|
+
*/
|
|
1744
|
+
function encode(val) {
|
|
1745
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Build a URL by appending params to the end
|
|
1420
1749
|
*
|
|
1421
|
-
* @
|
|
1750
|
+
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
1751
|
+
* @param {object} [params] The params to be appended
|
|
1752
|
+
* @param {?(object|Function)} options
|
|
1753
|
+
*
|
|
1754
|
+
* @returns {string} The formatted url
|
|
1422
1755
|
*/
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
}
|
|
1437
|
-
return
|
|
1438
|
-
}
|
|
1756
|
+
function buildURL(url, params, options) {
|
|
1757
|
+
if (!params) return url;
|
|
1758
|
+
url = url || "";
|
|
1759
|
+
const _options = utils_default.isFunction(options) ? { serialize: options } : options;
|
|
1760
|
+
const _encode = utils_default.getSafeProp(_options, "encode") || encode;
|
|
1761
|
+
const serializeFn = utils_default.getSafeProp(_options, "serialize");
|
|
1762
|
+
let serializedParams;
|
|
1763
|
+
if (serializeFn) serializedParams = serializeFn(params, _options);
|
|
1764
|
+
else serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
1765
|
+
if (serializedParams) {
|
|
1766
|
+
const hashmarkIndex = url.indexOf("#");
|
|
1767
|
+
if (hashmarkIndex !== -1) url = url.slice(0, hashmarkIndex);
|
|
1768
|
+
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
1769
|
+
}
|
|
1770
|
+
return url;
|
|
1771
|
+
}
|
|
1439
1772
|
//#endregion
|
|
1440
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
1773
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/InterceptorManager.js
|
|
1441
1774
|
const $internals = Symbol("internals");
|
|
1442
|
-
function
|
|
1443
|
-
return
|
|
1444
|
-
}
|
|
1445
|
-
function
|
|
1446
|
-
if (
|
|
1447
|
-
|
|
1448
|
-
}
|
|
1449
|
-
function
|
|
1450
|
-
const
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
if (utils_default.isFunction(filter)) return filter.call(this, value, header);
|
|
1459
|
-
if (isHeaderNameFilter) value = header;
|
|
1460
|
-
if (!utils_default.isString(value)) return;
|
|
1461
|
-
if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
|
|
1462
|
-
if (utils_default.isRegExp(filter)) return filter.test(value);
|
|
1463
|
-
}
|
|
1464
|
-
function formatHeader(header) {
|
|
1465
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
1466
|
-
return char.toUpperCase() + str;
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
function buildAccessors(obj, header) {
|
|
1470
|
-
const accessorName = utils_default.toCamelCase(" " + header);
|
|
1471
|
-
[
|
|
1472
|
-
"get",
|
|
1473
|
-
"set",
|
|
1474
|
-
"has"
|
|
1475
|
-
].forEach((methodName) => {
|
|
1476
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
1477
|
-
value: function(arg1, arg2, arg3) {
|
|
1478
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
1479
|
-
},
|
|
1480
|
-
configurable: true
|
|
1481
|
-
});
|
|
1775
|
+
function countHandlers(handlers) {
|
|
1776
|
+
return handlers ? handlers.length : 0;
|
|
1777
|
+
}
|
|
1778
|
+
function trimHandlers(handlers) {
|
|
1779
|
+
if (!handlers) return;
|
|
1780
|
+
while (handlers.length && handlers[handlers.length - 1] === null) handlers.pop();
|
|
1781
|
+
}
|
|
1782
|
+
function syncHandlerEntries(manager, internals) {
|
|
1783
|
+
const handlers = manager.handlers;
|
|
1784
|
+
const length = countHandlers(handlers);
|
|
1785
|
+
if (handlers !== internals.handlersRef) {
|
|
1786
|
+
internals.handlersRef = handlers;
|
|
1787
|
+
internals.handlerEntries.clear();
|
|
1788
|
+
} else if (length !== internals.handlersLength) if (!length) internals.handlerEntries.clear();
|
|
1789
|
+
else internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
1790
|
+
if (handlers[entry.index] !== entry.handler) internals.handlerEntries.delete(id);
|
|
1482
1791
|
});
|
|
1792
|
+
internals.handlersLength = length;
|
|
1483
1793
|
}
|
|
1484
|
-
var
|
|
1485
|
-
constructor(
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
|
|
1495
|
-
}
|
|
1496
|
-
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
1497
|
-
if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
1498
|
-
else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
1499
|
-
else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
1500
|
-
let obj = {}, dest, key;
|
|
1501
|
-
for (const entry of header) {
|
|
1502
|
-
if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
|
|
1503
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
1504
|
-
}
|
|
1505
|
-
setHeaders(obj, valueOrRewrite);
|
|
1506
|
-
} else header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
1507
|
-
return this;
|
|
1794
|
+
var InterceptorManager = class {
|
|
1795
|
+
constructor() {
|
|
1796
|
+
this.handlers = [];
|
|
1797
|
+
this[$internals] = {
|
|
1798
|
+
handlersRef: this.handlers,
|
|
1799
|
+
handlersLength: this.handlers.length,
|
|
1800
|
+
handlerEntries: /* @__PURE__ */ new Map(),
|
|
1801
|
+
iterationDepth: 0,
|
|
1802
|
+
nextId: 0
|
|
1803
|
+
};
|
|
1508
1804
|
}
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1805
|
+
/**
|
|
1806
|
+
* Add a new interceptor to the stack
|
|
1807
|
+
*
|
|
1808
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
1809
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
1810
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
1811
|
+
*
|
|
1812
|
+
* @return {Number} An ID used to remove interceptor later
|
|
1813
|
+
*/
|
|
1814
|
+
use(fulfilled, rejected, options) {
|
|
1815
|
+
const handler = {
|
|
1816
|
+
fulfilled,
|
|
1817
|
+
rejected,
|
|
1818
|
+
synchronous: options ? options.synchronous : false,
|
|
1819
|
+
runWhen: options ? options.runWhen : null
|
|
1820
|
+
};
|
|
1821
|
+
const internals = this[$internals];
|
|
1822
|
+
if (this.handlers == null) this.handlers = [];
|
|
1823
|
+
syncHandlerEntries(this, internals);
|
|
1824
|
+
const id = internals.nextId++;
|
|
1825
|
+
this.handlers.push(handler);
|
|
1826
|
+
internals.handlerEntries.set(id, {
|
|
1827
|
+
handler,
|
|
1828
|
+
index: this.handlers.length - 1
|
|
1829
|
+
});
|
|
1830
|
+
internals.handlersLength = this.handlers.length;
|
|
1831
|
+
return id;
|
|
1832
|
+
}
|
|
1833
|
+
/**
|
|
1834
|
+
* Remove an interceptor from the stack
|
|
1835
|
+
*
|
|
1836
|
+
* @param {Number} id The ID that was returned by `use`
|
|
1837
|
+
*
|
|
1838
|
+
* @returns {void}
|
|
1839
|
+
*/
|
|
1840
|
+
eject(id) {
|
|
1841
|
+
const internals = this[$internals];
|
|
1842
|
+
syncHandlerEntries(this, internals);
|
|
1843
|
+
const entry = internals.handlerEntries.get(id);
|
|
1844
|
+
if (entry) {
|
|
1845
|
+
internals.handlerEntries.delete(id);
|
|
1846
|
+
if (this.handlers[entry.index] !== entry.handler) return;
|
|
1847
|
+
this.handlers[entry.index] = null;
|
|
1848
|
+
if (!internals.iterationDepth) {
|
|
1849
|
+
trimHandlers(this.handlers);
|
|
1850
|
+
internals.handlersLength = this.handlers.length;
|
|
1520
1851
|
}
|
|
1521
1852
|
}
|
|
1522
1853
|
}
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1854
|
+
/**
|
|
1855
|
+
* Clear all interceptors from the stack
|
|
1856
|
+
*
|
|
1857
|
+
* @returns {void}
|
|
1858
|
+
*/
|
|
1859
|
+
clear() {
|
|
1860
|
+
if (this.handlers) {
|
|
1861
|
+
this.handlers = [];
|
|
1862
|
+
syncHandlerEntries(this, this[$internals]);
|
|
1528
1863
|
}
|
|
1529
|
-
return false;
|
|
1530
1864
|
}
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1865
|
+
/**
|
|
1866
|
+
* Iterate over all the registered interceptors
|
|
1867
|
+
*
|
|
1868
|
+
* This method is particularly useful for skipping over any
|
|
1869
|
+
* interceptors that may have become `null` calling `eject`.
|
|
1870
|
+
*
|
|
1871
|
+
* @param {Function} fn The function to call for each interceptor
|
|
1872
|
+
*
|
|
1873
|
+
* @returns {void}
|
|
1874
|
+
*/
|
|
1875
|
+
forEach(fn) {
|
|
1876
|
+
const internals = this[$internals];
|
|
1877
|
+
syncHandlerEntries(this, internals);
|
|
1878
|
+
internals.iterationDepth++;
|
|
1879
|
+
try {
|
|
1880
|
+
utils_default.forEach(this.handlers, function forEachHandler(h) {
|
|
1881
|
+
if (h !== null) fn(h);
|
|
1882
|
+
});
|
|
1883
|
+
} finally {
|
|
1884
|
+
if (!--internals.iterationDepth) {
|
|
1885
|
+
syncHandlerEntries(this, internals);
|
|
1886
|
+
trimHandlers(this.handlers);
|
|
1887
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
1542
1888
|
}
|
|
1543
1889
|
}
|
|
1544
|
-
if (utils_default.isArray(header)) header.forEach(deleteHeader);
|
|
1545
|
-
else deleteHeader(header);
|
|
1546
|
-
return deleted;
|
|
1547
1890
|
}
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1891
|
+
};
|
|
1892
|
+
//#endregion
|
|
1893
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/defaults/transitional.js
|
|
1894
|
+
var transitional_default = {
|
|
1895
|
+
silentJSONParsing: true,
|
|
1896
|
+
forcedJSONParsing: true,
|
|
1897
|
+
clarifyTimeoutError: false,
|
|
1898
|
+
legacyInterceptorReqResOrdering: true,
|
|
1899
|
+
advertiseZstdAcceptEncoding: false,
|
|
1900
|
+
validateStatusUndefinedResolves: true
|
|
1901
|
+
};
|
|
1902
|
+
//#endregion
|
|
1903
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/platform/browser/index.js
|
|
1904
|
+
var browser_default = {
|
|
1905
|
+
isBrowser: true,
|
|
1906
|
+
classes: {
|
|
1907
|
+
URLSearchParams: typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams,
|
|
1908
|
+
FormData: typeof FormData !== "undefined" ? FormData : null,
|
|
1909
|
+
Blob: typeof Blob !== "undefined" ? Blob : null
|
|
1910
|
+
},
|
|
1911
|
+
protocols: [
|
|
1912
|
+
"http",
|
|
1913
|
+
"https",
|
|
1914
|
+
"file",
|
|
1915
|
+
"blob",
|
|
1916
|
+
"url",
|
|
1917
|
+
"data"
|
|
1918
|
+
]
|
|
1919
|
+
};
|
|
1920
|
+
//#endregion
|
|
1921
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/platform/common/utils.js
|
|
1922
|
+
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
1923
|
+
hasBrowserEnv: () => hasBrowserEnv,
|
|
1924
|
+
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
1925
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
1926
|
+
navigator: () => _navigator,
|
|
1927
|
+
origin: () => origin
|
|
1928
|
+
});
|
|
1929
|
+
const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
1930
|
+
const _navigator = typeof navigator === "object" && navigator || void 0;
|
|
1931
|
+
/**
|
|
1932
|
+
* Determine if we're running in a standard browser environment
|
|
1933
|
+
*
|
|
1934
|
+
* This allows axios to run in a web worker, and react-native.
|
|
1935
|
+
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
1936
|
+
*
|
|
1937
|
+
* web workers:
|
|
1938
|
+
* typeof window -> undefined
|
|
1939
|
+
* typeof document -> undefined
|
|
1940
|
+
*
|
|
1941
|
+
* react-native:
|
|
1942
|
+
* navigator.product -> 'ReactNative'
|
|
1943
|
+
* nativescript
|
|
1944
|
+
* navigator.product -> 'NativeScript' or 'NS'
|
|
1945
|
+
*
|
|
1946
|
+
* @returns {boolean}
|
|
1947
|
+
*/
|
|
1948
|
+
const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
|
|
1949
|
+
"ReactNative",
|
|
1950
|
+
"NativeScript",
|
|
1951
|
+
"NS"
|
|
1952
|
+
].indexOf(_navigator.product) < 0);
|
|
1953
|
+
/**
|
|
1954
|
+
* Determine if we're running in a standard browser webWorker environment
|
|
1955
|
+
*
|
|
1956
|
+
* Although the `isStandardBrowserEnv` method indicates that
|
|
1957
|
+
* `allows axios to run in a web worker`, the WebWorker will still be
|
|
1958
|
+
* filtered out due to its judgment standard
|
|
1959
|
+
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
1960
|
+
* This leads to a problem when axios post `FormData` in webWorker
|
|
1961
|
+
*/
|
|
1962
|
+
const hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
1963
|
+
const origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
1964
|
+
//#endregion
|
|
1965
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/platform/index.js
|
|
1966
|
+
var platform_default = {
|
|
1967
|
+
...utils_exports,
|
|
1968
|
+
...browser_default
|
|
1969
|
+
};
|
|
1970
|
+
//#endregion
|
|
1971
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
1972
|
+
function toURLEncodedForm(data, options) {
|
|
1973
|
+
return toFormData$1(data, new platform_default.classes.URLSearchParams(), {
|
|
1974
|
+
visitor: function(value, key, path, helpers) {
|
|
1975
|
+
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
1976
|
+
this.append(key, value.toString("base64"));
|
|
1977
|
+
return false;
|
|
1557
1978
|
}
|
|
1558
|
-
|
|
1559
|
-
|
|
1979
|
+
return helpers.defaultVisitor.apply(this, arguments);
|
|
1980
|
+
},
|
|
1981
|
+
...options
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
//#endregion
|
|
1985
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
1986
|
+
const MAX_DEPTH = 100;
|
|
1987
|
+
function throwIfDepthExceeded(index) {
|
|
1988
|
+
if (index > MAX_DEPTH) throw new AxiosError$1("FormData field is too deeply nested (" + index + " levels). Max depth: 100", AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
1992
|
+
*
|
|
1993
|
+
* @param {string} name - The name of the property to get.
|
|
1994
|
+
*
|
|
1995
|
+
* @returns An array of strings.
|
|
1996
|
+
*/
|
|
1997
|
+
function parsePropPath(name) {
|
|
1998
|
+
const path = [];
|
|
1999
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
2000
|
+
let match;
|
|
2001
|
+
while ((match = pattern.exec(name)) !== null) {
|
|
2002
|
+
throwIfDepthExceeded(path.length);
|
|
2003
|
+
path.push(match[0] === "[]" ? "" : match[1] || match[0]);
|
|
1560
2004
|
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
2005
|
+
return path;
|
|
2006
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* Convert an array to an object.
|
|
2009
|
+
*
|
|
2010
|
+
* @param {Array<any>} arr - The array to convert to an object.
|
|
2011
|
+
*
|
|
2012
|
+
* @returns An object with the same keys and values as the array.
|
|
2013
|
+
*/
|
|
2014
|
+
function arrayToObject(arr) {
|
|
2015
|
+
const obj = {};
|
|
2016
|
+
const keys = Object.keys(arr);
|
|
2017
|
+
let i;
|
|
2018
|
+
const len = keys.length;
|
|
2019
|
+
let key;
|
|
2020
|
+
for (i = 0; i < len; i++) {
|
|
2021
|
+
key = keys[i];
|
|
2022
|
+
obj[key] = arr[key];
|
|
1577
2023
|
}
|
|
1578
|
-
|
|
1579
|
-
|
|
2024
|
+
return obj;
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* It takes a FormData object and returns a JavaScript object
|
|
2028
|
+
*
|
|
2029
|
+
* @param {string} formData The FormData object to convert to JSON.
|
|
2030
|
+
*
|
|
2031
|
+
* @returns {Object<string, any> | null} The converted object.
|
|
2032
|
+
*/
|
|
2033
|
+
function formDataToJSON(formData) {
|
|
2034
|
+
function buildPath(path, value, target, index) {
|
|
2035
|
+
throwIfDepthExceeded(index);
|
|
2036
|
+
let name = path[index++];
|
|
2037
|
+
if (name === "__proto__") return true;
|
|
2038
|
+
const isNumericKey = Number.isFinite(+name);
|
|
2039
|
+
const isLast = index >= path.length;
|
|
2040
|
+
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
2041
|
+
if (isLast) {
|
|
2042
|
+
if (utils_default.hasOwnProp(target, name)) target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
2043
|
+
else target[name] = value;
|
|
2044
|
+
return !isNumericKey;
|
|
2045
|
+
}
|
|
2046
|
+
if (!utils_default.hasOwnProp(target, name) || !utils_default.isObject(target[name])) target[name] = [];
|
|
2047
|
+
if (buildPath(path, value, target[name], index) && utils_default.isArray(target[name])) target[name] = arrayToObject(target[name]);
|
|
2048
|
+
return !isNumericKey;
|
|
1580
2049
|
}
|
|
1581
|
-
|
|
1582
|
-
const obj =
|
|
1583
|
-
utils_default.
|
|
1584
|
-
|
|
2050
|
+
if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
|
|
2051
|
+
const obj = {};
|
|
2052
|
+
utils_default.forEachEntry(formData, (name, value) => {
|
|
2053
|
+
buildPath(parsePropPath(name), value, obj, 0);
|
|
1585
2054
|
});
|
|
1586
2055
|
return obj;
|
|
1587
2056
|
}
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
2057
|
+
return null;
|
|
2058
|
+
}
|
|
2059
|
+
//#endregion
|
|
2060
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/methodList.js
|
|
2061
|
+
const methodList = Object.freeze([
|
|
2062
|
+
"get",
|
|
2063
|
+
"delete",
|
|
2064
|
+
"head",
|
|
2065
|
+
"options",
|
|
2066
|
+
"post",
|
|
2067
|
+
"put",
|
|
2068
|
+
"patch",
|
|
2069
|
+
"purge",
|
|
2070
|
+
"link",
|
|
2071
|
+
"unlink",
|
|
2072
|
+
"query"
|
|
2073
|
+
]);
|
|
2074
|
+
//#endregion
|
|
2075
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/defaults/index.js
|
|
2076
|
+
const own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
2077
|
+
/**
|
|
2078
|
+
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
2079
|
+
* of the input
|
|
2080
|
+
*
|
|
2081
|
+
* @param {any} rawValue - The value to be stringified.
|
|
2082
|
+
* @param {Function} parser - A function that parses a string into a JavaScript object.
|
|
2083
|
+
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
2084
|
+
*
|
|
2085
|
+
* @returns {string} A stringified version of the rawValue.
|
|
2086
|
+
*/
|
|
2087
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
2088
|
+
if (utils_default.isString(rawValue)) try {
|
|
2089
|
+
(parser || JSON.parse)(rawValue);
|
|
2090
|
+
return utils_default.trim(rawValue);
|
|
2091
|
+
} catch (e) {
|
|
2092
|
+
if (e.name !== "SyntaxError") throw e;
|
|
1607
2093
|
}
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
2094
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
2095
|
+
}
|
|
2096
|
+
const defaults = {
|
|
2097
|
+
transitional: transitional_default,
|
|
2098
|
+
adapter: [
|
|
2099
|
+
"xhr",
|
|
2100
|
+
"http",
|
|
2101
|
+
"fetch"
|
|
2102
|
+
],
|
|
2103
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
2104
|
+
const contentType = headers.getContentType() || "";
|
|
2105
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
2106
|
+
const isObjectPayload = utils_default.isObject(data);
|
|
2107
|
+
if (isObjectPayload && utils_default.isHTMLForm(data)) data = new FormData(data);
|
|
2108
|
+
if (utils_default.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
2109
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) return data;
|
|
2110
|
+
if (utils_default.isArrayBufferView(data)) return data.buffer;
|
|
2111
|
+
if (utils_default.isURLSearchParams(data)) {
|
|
2112
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
2113
|
+
return data.toString();
|
|
2114
|
+
}
|
|
2115
|
+
let isFileList;
|
|
2116
|
+
if (isObjectPayload) {
|
|
2117
|
+
const formSerializer = own(this, "formSerializer");
|
|
2118
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, formSerializer).toString();
|
|
2119
|
+
if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
2120
|
+
const env = own(this, "env");
|
|
2121
|
+
const _FormData = env && env.FormData;
|
|
2122
|
+
return toFormData$1(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
|
|
1616
2123
|
}
|
|
1617
2124
|
}
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
};
|
|
1622
|
-
AxiosHeaders$1.accessor([
|
|
1623
|
-
"Content-Type",
|
|
1624
|
-
"Content-Length",
|
|
1625
|
-
"Accept",
|
|
1626
|
-
"Accept-Encoding",
|
|
1627
|
-
"User-Agent",
|
|
1628
|
-
"Authorization"
|
|
1629
|
-
]);
|
|
1630
|
-
utils_default.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
|
|
1631
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
1632
|
-
return {
|
|
1633
|
-
get: () => value,
|
|
1634
|
-
set(headerValue) {
|
|
1635
|
-
this[mapped] = headerValue;
|
|
2125
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
2126
|
+
headers.setContentType("application/json", false);
|
|
2127
|
+
return stringifySafely(data);
|
|
1636
2128
|
}
|
|
1637
|
-
|
|
2129
|
+
return data;
|
|
2130
|
+
}],
|
|
2131
|
+
transformResponse: [function transformResponse(data) {
|
|
2132
|
+
const transitional = own(this, "transitional") || defaults.transitional;
|
|
2133
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
2134
|
+
const responseType = own(this, "responseType");
|
|
2135
|
+
const JSONRequested = responseType === "json";
|
|
2136
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) return data;
|
|
2137
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
2138
|
+
const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
|
|
2139
|
+
try {
|
|
2140
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
2141
|
+
} catch (e) {
|
|
2142
|
+
if (strictJSONParsing) {
|
|
2143
|
+
if (e.name === "SyntaxError") throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
2144
|
+
throw e;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
return data;
|
|
2149
|
+
}],
|
|
2150
|
+
timeout: 0,
|
|
2151
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
2152
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
2153
|
+
maxContentLength: -1,
|
|
2154
|
+
maxBodyLength: -1,
|
|
2155
|
+
env: {
|
|
2156
|
+
FormData: platform_default.classes.FormData,
|
|
2157
|
+
Blob: platform_default.classes.Blob
|
|
2158
|
+
},
|
|
2159
|
+
validateStatus: function validateStatus(status) {
|
|
2160
|
+
return status >= 200 && status < 300;
|
|
2161
|
+
},
|
|
2162
|
+
headers: { common: {
|
|
2163
|
+
Accept: "application/json, text/plain, */*",
|
|
2164
|
+
"Content-Type": void 0
|
|
2165
|
+
} }
|
|
2166
|
+
};
|
|
2167
|
+
utils_default.forEach(methodList, (method) => {
|
|
2168
|
+
defaults.headers[method] = {};
|
|
1638
2169
|
});
|
|
1639
|
-
utils_default.freezeMethods(AxiosHeaders$1);
|
|
1640
2170
|
//#endregion
|
|
1641
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2171
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/transformData.js
|
|
1642
2172
|
/**
|
|
1643
2173
|
* Transform the data for a request or a response
|
|
1644
2174
|
*
|
|
@@ -1659,28 +2189,30 @@ function transformData(fns, response) {
|
|
|
1659
2189
|
return data;
|
|
1660
2190
|
}
|
|
1661
2191
|
//#endregion
|
|
1662
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2192
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/cancel/isCancel.js
|
|
1663
2193
|
function isCancel$1(value) {
|
|
1664
2194
|
return !!(value && value.__CANCEL__);
|
|
1665
2195
|
}
|
|
1666
2196
|
//#endregion
|
|
1667
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
*
|
|
1671
|
-
*
|
|
1672
|
-
* @param {
|
|
1673
|
-
* @param {Object=}
|
|
1674
|
-
*
|
|
1675
|
-
*
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
2197
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/cancel/CanceledError.js
|
|
2198
|
+
var CanceledError$1 = class extends AxiosError$1 {
|
|
2199
|
+
/**
|
|
2200
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
2201
|
+
*
|
|
2202
|
+
* @param {string=} message The message.
|
|
2203
|
+
* @param {Object=} config The config.
|
|
2204
|
+
* @param {Object=} request The request.
|
|
2205
|
+
*
|
|
2206
|
+
* @returns {CanceledError} The created error.
|
|
2207
|
+
*/
|
|
2208
|
+
constructor(message, config, request) {
|
|
2209
|
+
super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
2210
|
+
this.name = "CanceledError";
|
|
2211
|
+
this.__CANCEL__ = true;
|
|
2212
|
+
}
|
|
2213
|
+
};
|
|
1682
2214
|
//#endregion
|
|
1683
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2215
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/settle.js
|
|
1684
2216
|
/**
|
|
1685
2217
|
* Resolve or reject a Promise based on response status.
|
|
1686
2218
|
*
|
|
@@ -1693,16 +2225,32 @@ utils_default.inherits(CanceledError$1, AxiosError$1, { __CANCEL__: true });
|
|
|
1693
2225
|
function settle(resolve, reject, response) {
|
|
1694
2226
|
const validateStatus = response.config.validateStatus;
|
|
1695
2227
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
1696
|
-
else reject(new AxiosError$1("Request failed with status code " + response.status,
|
|
2228
|
+
else reject(new AxiosError$1("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError$1.ERR_BAD_REQUEST : AxiosError$1.ERR_BAD_RESPONSE, response.config, response.request, response));
|
|
2229
|
+
}
|
|
2230
|
+
//#endregion
|
|
2231
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
|
|
2232
|
+
const urlParserControlCharacters = /[\t\n\r]/g;
|
|
2233
|
+
/**
|
|
2234
|
+
* Match WHATWG URL preprocessing before checking a URL's protocol.
|
|
2235
|
+
*
|
|
2236
|
+
* @param {string} url
|
|
2237
|
+
*
|
|
2238
|
+
* @returns {string}
|
|
2239
|
+
*/
|
|
2240
|
+
function normalizeURLForProtocolCheck(url) {
|
|
2241
|
+
if (typeof url !== "string") return url;
|
|
2242
|
+
let start = 0;
|
|
2243
|
+
while (start < url.length && url.charCodeAt(start) <= 32) start++;
|
|
2244
|
+
return url.slice(start).replace(urlParserControlCharacters, "");
|
|
1697
2245
|
}
|
|
1698
2246
|
//#endregion
|
|
1699
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2247
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/parseProtocol.js
|
|
1700
2248
|
function parseProtocol(url) {
|
|
1701
|
-
const match = /^([-+\w]{1,25})(
|
|
2249
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
1702
2250
|
return match && match[1] || "";
|
|
1703
2251
|
}
|
|
1704
2252
|
//#endregion
|
|
1705
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2253
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/speedometer.js
|
|
1706
2254
|
/**
|
|
1707
2255
|
* Calculate data maxRate
|
|
1708
2256
|
* @param {Number} [samplesCount= 10]
|
|
@@ -1737,12 +2285,12 @@ function speedometer(samplesCount, min) {
|
|
|
1737
2285
|
};
|
|
1738
2286
|
}
|
|
1739
2287
|
//#endregion
|
|
1740
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2288
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/throttle.js
|
|
1741
2289
|
/**
|
|
1742
2290
|
* Throttle decorator
|
|
1743
2291
|
* @param {Function} fn
|
|
1744
2292
|
* @param {Number} freq
|
|
1745
|
-
* @return {Function}
|
|
2293
|
+
* @return {Array<Function>}
|
|
1746
2294
|
*/
|
|
1747
2295
|
function throttle(fn, freq) {
|
|
1748
2296
|
let timestamp = 0;
|
|
@@ -1771,27 +2319,33 @@ function throttle(fn, freq) {
|
|
|
1771
2319
|
}
|
|
1772
2320
|
};
|
|
1773
2321
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
1774
|
-
|
|
2322
|
+
const flushWith = (...args) => invoke(args);
|
|
2323
|
+
return [
|
|
2324
|
+
throttled,
|
|
2325
|
+
flush,
|
|
2326
|
+
flushWith
|
|
2327
|
+
];
|
|
1775
2328
|
}
|
|
1776
2329
|
//#endregion
|
|
1777
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2330
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
1778
2331
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
1779
2332
|
let bytesNotified = 0;
|
|
1780
2333
|
const _speedometer = speedometer(50, 250);
|
|
1781
2334
|
return throttle((e) => {
|
|
1782
|
-
|
|
2335
|
+
if (!e || !utils_default.isNumber(e.loaded)) return;
|
|
2336
|
+
const rawLoaded = e.loaded;
|
|
1783
2337
|
const total = e.lengthComputable ? e.total : void 0;
|
|
1784
|
-
const
|
|
2338
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
2339
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
1785
2340
|
const rate = _speedometer(progressBytes);
|
|
1786
|
-
|
|
1787
|
-
bytesNotified = loaded;
|
|
2341
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
1788
2342
|
listener({
|
|
1789
2343
|
loaded,
|
|
1790
2344
|
total,
|
|
1791
2345
|
progress: total ? loaded / total : void 0,
|
|
1792
2346
|
bytes: progressBytes,
|
|
1793
2347
|
rate: rate ? rate : void 0,
|
|
1794
|
-
estimated: rate && total
|
|
2348
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
1795
2349
|
event: e,
|
|
1796
2350
|
lengthComputable: total != null,
|
|
1797
2351
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -1806,15 +2360,15 @@ const progressEventDecorator = (total, throttled) => {
|
|
|
1806
2360
|
loaded
|
|
1807
2361
|
}), throttled[1]];
|
|
1808
2362
|
};
|
|
1809
|
-
const asyncDecorator = (fn) => (...args) =>
|
|
2363
|
+
const asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
|
|
1810
2364
|
//#endregion
|
|
1811
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2365
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
1812
2366
|
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
1813
2367
|
url = new URL(url, platform_default.origin);
|
|
1814
2368
|
return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
|
|
1815
2369
|
})(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
|
|
1816
2370
|
//#endregion
|
|
1817
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2371
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/cookies.js
|
|
1818
2372
|
var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
1819
2373
|
write(name, value, expires, path, domain, secure, sameSite) {
|
|
1820
2374
|
if (typeof document === "undefined") return;
|
|
@@ -1828,8 +2382,17 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
|
1828
2382
|
},
|
|
1829
2383
|
read(name) {
|
|
1830
2384
|
if (typeof document === "undefined") return null;
|
|
1831
|
-
const
|
|
1832
|
-
|
|
2385
|
+
const cookies = document.cookie.split(";");
|
|
2386
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
2387
|
+
const cookie = cookies[i].replace(/^\s+/, "");
|
|
2388
|
+
const eq = cookie.indexOf("=");
|
|
2389
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) try {
|
|
2390
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
2391
|
+
} catch (e) {
|
|
2392
|
+
return cookie.slice(eq + 1);
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
return null;
|
|
1833
2396
|
},
|
|
1834
2397
|
remove(name) {
|
|
1835
2398
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
@@ -1842,7 +2405,7 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
|
1842
2405
|
remove() {}
|
|
1843
2406
|
};
|
|
1844
2407
|
//#endregion
|
|
1845
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2408
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
1846
2409
|
/**
|
|
1847
2410
|
* Determines whether the specified URL is absolute
|
|
1848
2411
|
*
|
|
@@ -1851,10 +2414,11 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
|
1851
2414
|
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
|
1852
2415
|
*/
|
|
1853
2416
|
function isAbsoluteURL(url) {
|
|
2417
|
+
if (typeof url !== "string") return false;
|
|
1854
2418
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
1855
2419
|
}
|
|
1856
2420
|
//#endregion
|
|
1857
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2421
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/combineURLs.js
|
|
1858
2422
|
/**
|
|
1859
2423
|
* Creates a new URL by combining the specified URLs
|
|
1860
2424
|
*
|
|
@@ -1864,10 +2428,33 @@ function isAbsoluteURL(url) {
|
|
|
1864
2428
|
* @returns {string} The combined URL
|
|
1865
2429
|
*/
|
|
1866
2430
|
function combineURLs(baseURL, relativeURL) {
|
|
1867
|
-
|
|
2431
|
+
if (!relativeURL) return baseURL;
|
|
2432
|
+
let end = baseURL.length;
|
|
2433
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) end--;
|
|
2434
|
+
return baseURL.slice(0, end) + "/" + relativeURL.replace(/^\/+/, "");
|
|
2435
|
+
}
|
|
2436
|
+
//#endregion
|
|
2437
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/buildFullPath.js
|
|
2438
|
+
const malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
2439
|
+
function redactFragment(fragment) {
|
|
2440
|
+
if (!fragment) return fragment;
|
|
2441
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
|
|
2442
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
2443
|
+
});
|
|
2444
|
+
}
|
|
2445
|
+
function redactSensitiveURLParts(url) {
|
|
2446
|
+
const redactedURL = url.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
2447
|
+
const fragmentIndex = redactedURL.indexOf("#");
|
|
2448
|
+
const redactedURLWithoutFragment = (fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex)).replace(/([?&][^=&#]*=)[^&#]*/g, `$1${REDACTED}`);
|
|
2449
|
+
if (fragmentIndex === -1) return redactedURLWithoutFragment;
|
|
2450
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
2451
|
+
}
|
|
2452
|
+
function assertValidHttpProtocolURL(url, config) {
|
|
2453
|
+
if (typeof url === "string") {
|
|
2454
|
+
const normalizedURL = normalizeURLForProtocolCheck(url);
|
|
2455
|
+
if (malformedHttpProtocol.test(normalizedURL)) throw new AxiosError$1(`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`, AxiosError$1.ERR_INVALID_URL, config);
|
|
2456
|
+
}
|
|
1868
2457
|
}
|
|
1869
|
-
//#endregion
|
|
1870
|
-
//#region ../../../node_modules/.pnpm/axios@1.13.2_debug@4.4.3_supports-color@10.2.2_/node_modules/axios/lib/core/buildFullPath.js
|
|
1871
2458
|
/**
|
|
1872
2459
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
1873
2460
|
* only when the requestedURL is not already an absolute URL.
|
|
@@ -1878,14 +2465,22 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
1878
2465
|
*
|
|
1879
2466
|
* @returns {string} The combined full path
|
|
1880
2467
|
*/
|
|
1881
|
-
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
2468
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
2469
|
+
assertValidHttpProtocolURL(requestedURL, config);
|
|
1882
2470
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
1883
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
2471
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
|
|
2472
|
+
assertValidHttpProtocolURL(baseURL, config);
|
|
2473
|
+
return combineURLs(baseURL, requestedURL);
|
|
2474
|
+
}
|
|
1884
2475
|
return requestedURL;
|
|
1885
2476
|
}
|
|
1886
2477
|
//#endregion
|
|
1887
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2478
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/mergeConfig.js
|
|
1888
2479
|
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
2480
|
+
const ownEnumerableKeys = (thing) => {
|
|
2481
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter((symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable));
|
|
2482
|
+
return Object.keys(thing);
|
|
2483
|
+
};
|
|
1889
2484
|
/**
|
|
1890
2485
|
* Config-specific merge-function which creates a new config-object
|
|
1891
2486
|
* by merging two configuration objects together.
|
|
@@ -1896,8 +2491,16 @@ const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing
|
|
|
1896
2491
|
* @returns {Object} New object resulting from merging config2 to config1
|
|
1897
2492
|
*/
|
|
1898
2493
|
function mergeConfig$1(config1, config2) {
|
|
2494
|
+
config1 = config1 || {};
|
|
1899
2495
|
config2 = config2 || {};
|
|
1900
|
-
const config =
|
|
2496
|
+
const config = Object.create(null);
|
|
2497
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
2498
|
+
__proto__: null,
|
|
2499
|
+
value: Object.prototype.hasOwnProperty,
|
|
2500
|
+
enumerable: false,
|
|
2501
|
+
writable: true,
|
|
2502
|
+
configurable: true
|
|
2503
|
+
});
|
|
1901
2504
|
function getMergedValue(target, source, prop, caseless) {
|
|
1902
2505
|
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) return utils_default.merge.call({ caseless }, target, source);
|
|
1903
2506
|
else if (utils_default.isPlainObject(source)) return utils_default.merge({}, source);
|
|
@@ -1915,9 +2518,17 @@ function mergeConfig$1(config1, config2) {
|
|
|
1915
2518
|
if (!utils_default.isUndefined(b)) return getMergedValue(void 0, b);
|
|
1916
2519
|
else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a);
|
|
1917
2520
|
}
|
|
2521
|
+
function getMergedTransitionalOption(prop) {
|
|
2522
|
+
const transitional2 = utils_default.hasOwnProp(config2, "transitional") ? config2.transitional : void 0;
|
|
2523
|
+
if (!utils_default.isUndefined(transitional2)) if (utils_default.isPlainObject(transitional2)) {
|
|
2524
|
+
if (utils_default.hasOwnProp(transitional2, prop)) return transitional2[prop];
|
|
2525
|
+
} else return;
|
|
2526
|
+
const transitional1 = utils_default.hasOwnProp(config1, "transitional") ? config1.transitional : void 0;
|
|
2527
|
+
if (utils_default.isPlainObject(transitional1) && utils_default.hasOwnProp(transitional1, prop)) return transitional1[prop];
|
|
2528
|
+
}
|
|
1918
2529
|
function mergeDirectKeys(a, b, prop) {
|
|
1919
|
-
if (prop
|
|
1920
|
-
else if (prop
|
|
2530
|
+
if (utils_default.hasOwnProp(config2, prop)) return getMergedValue(a, b);
|
|
2531
|
+
else if (utils_default.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
|
|
1921
2532
|
}
|
|
1922
2533
|
const mergeMap = {
|
|
1923
2534
|
url: valueFromConfig2,
|
|
@@ -1928,7 +2539,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
1928
2539
|
transformResponse: defaultToConfig2,
|
|
1929
2540
|
paramsSerializer: defaultToConfig2,
|
|
1930
2541
|
timeout: defaultToConfig2,
|
|
1931
|
-
|
|
2542
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
1932
2543
|
withCredentials: defaultToConfig2,
|
|
1933
2544
|
withXSRFToken: defaultToConfig2,
|
|
1934
2545
|
adapter: defaultToConfig2,
|
|
@@ -1946,56 +2557,104 @@ function mergeConfig$1(config1, config2) {
|
|
|
1946
2557
|
httpsAgent: defaultToConfig2,
|
|
1947
2558
|
cancelToken: defaultToConfig2,
|
|
1948
2559
|
socketPath: defaultToConfig2,
|
|
2560
|
+
allowedSocketPaths: defaultToConfig2,
|
|
1949
2561
|
responseEncoding: defaultToConfig2,
|
|
1950
2562
|
validateStatus: mergeDirectKeys,
|
|
1951
2563
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
1952
2564
|
};
|
|
1953
|
-
utils_default.forEach(
|
|
2565
|
+
utils_default.forEach(ownEnumerableKeys({
|
|
1954
2566
|
...config1,
|
|
1955
2567
|
...config2
|
|
1956
2568
|
}), function computeConfigValue(prop) {
|
|
1957
|
-
|
|
1958
|
-
const
|
|
2569
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
2570
|
+
const merge = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
2571
|
+
const configValue = merge(utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0, utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0, prop);
|
|
1959
2572
|
utils_default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
1960
2573
|
});
|
|
2574
|
+
if (utils_default.hasOwnProp(config2, "validateStatus") && utils_default.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) if (utils_default.hasOwnProp(config1, "validateStatus")) config.validateStatus = getMergedValue(void 0, config1.validateStatus);
|
|
2575
|
+
else delete config.validateStatus;
|
|
1961
2576
|
return config;
|
|
1962
2577
|
}
|
|
1963
2578
|
//#endregion
|
|
1964
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
1965
|
-
|
|
2579
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/setFormDataHeaders.js
|
|
2580
|
+
const FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
2581
|
+
/**
|
|
2582
|
+
* Apply the headers generated by a FormData implementation to the request headers,
|
|
2583
|
+
* honoring the `formDataHeaderPolicy` option: with 'content-only', copy only the
|
|
2584
|
+
* content-* headers; otherwise merge all of them.
|
|
2585
|
+
*
|
|
2586
|
+
* @param {AxiosHeaders} headers - the request headers to mutate
|
|
2587
|
+
* @param {Object | null | undefined} formHeaders - headers produced by the FormData implementation
|
|
2588
|
+
* @param {String} [policy] - the resolved `formDataHeaderPolicy` config value
|
|
2589
|
+
*
|
|
2590
|
+
* @returns {void}
|
|
2591
|
+
*/
|
|
2592
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
2593
|
+
if (policy !== "content-only") {
|
|
2594
|
+
headers.set(formHeaders);
|
|
2595
|
+
return;
|
|
2596
|
+
}
|
|
2597
|
+
Object.entries(formHeaders || {}).forEach(([key, val]) => {
|
|
2598
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) headers.set(key, val);
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2601
|
+
//#endregion
|
|
2602
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/resolveConfig.js
|
|
2603
|
+
/**
|
|
2604
|
+
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
2605
|
+
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
2606
|
+
*
|
|
2607
|
+
* @param {string} str The string to encode
|
|
2608
|
+
*
|
|
2609
|
+
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
2610
|
+
*/
|
|
2611
|
+
const encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
2612
|
+
function resolveConfig(config) {
|
|
1966
2613
|
const newConfig = mergeConfig$1({}, config);
|
|
1967
|
-
|
|
2614
|
+
const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
2615
|
+
const data = own("data");
|
|
2616
|
+
let withXSRFToken = own("withXSRFToken");
|
|
2617
|
+
const xsrfHeaderName = own("xsrfHeaderName");
|
|
2618
|
+
const xsrfCookieName = own("xsrfCookieName");
|
|
2619
|
+
let headers = own("headers");
|
|
2620
|
+
const auth = own("auth");
|
|
2621
|
+
const baseURL = own("baseURL");
|
|
2622
|
+
const allowAbsoluteUrls = own("allowAbsoluteUrls");
|
|
2623
|
+
const url = own("url");
|
|
1968
2624
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
1969
|
-
newConfig.url = buildURL(buildFullPath(
|
|
1970
|
-
if (auth)
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
if (allowedHeaders.includes(key.toLowerCase())) headers.set(key, val);
|
|
1978
|
-
});
|
|
2625
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls, newConfig), own("params"), own("paramsSerializer"));
|
|
2626
|
+
if (auth) {
|
|
2627
|
+
const username = utils_default.getSafeProp(auth, "username") || "";
|
|
2628
|
+
const password = utils_default.getSafeProp(auth, "password") || "";
|
|
2629
|
+
try {
|
|
2630
|
+
headers.set("Authorization", "Basic " + btoa(username + ":" + (password ? encodeUTF8$1(password) : "")));
|
|
2631
|
+
} catch (e) {
|
|
2632
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_OPTION_VALUE, config);
|
|
1979
2633
|
}
|
|
1980
2634
|
}
|
|
2635
|
+
if (utils_default.isFormData(data)) {
|
|
2636
|
+
const getHeaders = utils_default.getSafeProp(data, "getHeaders");
|
|
2637
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) headers.setContentType(void 0);
|
|
2638
|
+
else if (utils_default.isFunction(getHeaders)) setFormDataHeaders(headers, getHeaders.call(data), own("formDataHeaderPolicy"));
|
|
2639
|
+
}
|
|
1981
2640
|
if (platform_default.hasStandardBrowserEnv) {
|
|
1982
|
-
|
|
1983
|
-
if (withXSRFToken || withXSRFToken
|
|
2641
|
+
if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
|
|
2642
|
+
if (withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url)) {
|
|
1984
2643
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
1985
2644
|
if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
|
|
1986
2645
|
}
|
|
1987
2646
|
}
|
|
1988
2647
|
return newConfig;
|
|
1989
|
-
}
|
|
2648
|
+
}
|
|
1990
2649
|
var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
1991
2650
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
1992
|
-
const _config =
|
|
2651
|
+
const _config = resolveConfig(config);
|
|
1993
2652
|
let requestData = _config.data;
|
|
1994
2653
|
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
1995
2654
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
1996
2655
|
let onCanceled;
|
|
1997
2656
|
let uploadThrottled, downloadThrottled;
|
|
1998
|
-
let flushUpload, flushDownload;
|
|
2657
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
1999
2658
|
function done() {
|
|
2000
2659
|
flushUpload && flushUpload();
|
|
2001
2660
|
flushDownload && flushDownload();
|
|
@@ -2005,7 +2664,22 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
2005
2664
|
let request = new XMLHttpRequest();
|
|
2006
2665
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
2007
2666
|
request.timeout = _config.timeout;
|
|
2008
|
-
function onloadend() {
|
|
2667
|
+
function onloadend(event) {
|
|
2668
|
+
if (!request) return;
|
|
2669
|
+
if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
|
|
2670
|
+
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
|
|
2671
|
+
done();
|
|
2672
|
+
request = null;
|
|
2673
|
+
return;
|
|
2674
|
+
}
|
|
2675
|
+
try {
|
|
2676
|
+
if (event) flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
2677
|
+
else flushDownload && flushDownload();
|
|
2678
|
+
} catch (err) {
|
|
2679
|
+
setTimeout(() => {
|
|
2680
|
+
throw err;
|
|
2681
|
+
});
|
|
2682
|
+
}
|
|
2009
2683
|
if (!request) return;
|
|
2010
2684
|
const responseHeaders = AxiosHeaders$1.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
|
|
2011
2685
|
settle(function _resolve(value) {
|
|
@@ -2027,18 +2701,20 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
2027
2701
|
if ("onloadend" in request) request.onloadend = onloadend;
|
|
2028
2702
|
else request.onreadystatechange = function handleLoad() {
|
|
2029
2703
|
if (!request || request.readyState !== 4) return;
|
|
2030
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
2704
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) return;
|
|
2031
2705
|
setTimeout(onloadend);
|
|
2032
2706
|
};
|
|
2033
2707
|
request.onabort = function handleAbort() {
|
|
2034
2708
|
if (!request) return;
|
|
2035
2709
|
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
|
|
2710
|
+
done();
|
|
2036
2711
|
request = null;
|
|
2037
2712
|
};
|
|
2038
2713
|
request.onerror = function handleError(event) {
|
|
2039
2714
|
const err = new AxiosError$1(event && event.message ? event.message : "Network Error", AxiosError$1.ERR_NETWORK, config, request);
|
|
2040
2715
|
err.event = event || null;
|
|
2041
2716
|
reject(err);
|
|
2717
|
+
done();
|
|
2042
2718
|
request = null;
|
|
2043
2719
|
};
|
|
2044
2720
|
request.ontimeout = function handleTimeout() {
|
|
@@ -2046,16 +2722,17 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
2046
2722
|
const transitional = _config.transitional || transitional_default;
|
|
2047
2723
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2048
2724
|
reject(new AxiosError$1(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, config, request));
|
|
2725
|
+
done();
|
|
2049
2726
|
request = null;
|
|
2050
2727
|
};
|
|
2051
2728
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
2052
|
-
if ("setRequestHeader" in request) utils_default.forEach(requestHeaders
|
|
2729
|
+
if ("setRequestHeader" in request) utils_default.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
|
|
2053
2730
|
request.setRequestHeader(key, val);
|
|
2054
2731
|
});
|
|
2055
2732
|
if (!utils_default.isUndefined(_config.withCredentials)) request.withCredentials = !!_config.withCredentials;
|
|
2056
2733
|
if (responseType && responseType !== "json") request.responseType = _config.responseType;
|
|
2057
2734
|
if (onDownloadProgress) {
|
|
2058
|
-
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
2735
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(onDownloadProgress, true);
|
|
2059
2736
|
request.addEventListener("progress", downloadThrottled);
|
|
2060
2737
|
}
|
|
2061
2738
|
if (onUploadProgress && request.upload) {
|
|
@@ -2068,56 +2745,63 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
2068
2745
|
if (!request) return;
|
|
2069
2746
|
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
2070
2747
|
request.abort();
|
|
2748
|
+
done();
|
|
2071
2749
|
request = null;
|
|
2072
2750
|
};
|
|
2073
2751
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
2074
2752
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
2075
2753
|
}
|
|
2076
2754
|
const protocol = parseProtocol(_config.url);
|
|
2077
|
-
if (protocol && platform_default.protocols.
|
|
2755
|
+
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
2078
2756
|
reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
|
|
2757
|
+
done();
|
|
2079
2758
|
return;
|
|
2080
2759
|
}
|
|
2081
2760
|
request.send(requestData || null);
|
|
2082
2761
|
});
|
|
2083
2762
|
};
|
|
2084
2763
|
//#endregion
|
|
2085
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2764
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/composeSignals.js
|
|
2086
2765
|
const composeSignals = (signals, timeout) => {
|
|
2087
|
-
|
|
2088
|
-
if (timeout
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2766
|
+
signals = signals ? signals.filter(Boolean) : [];
|
|
2767
|
+
if (!timeout && !signals.length) return;
|
|
2768
|
+
const controller = new AbortController();
|
|
2769
|
+
let aborted = false;
|
|
2770
|
+
const onabort = function(reason) {
|
|
2771
|
+
if (!aborted) {
|
|
2772
|
+
aborted = true;
|
|
2773
|
+
unsubscribe();
|
|
2774
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
2775
|
+
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
2776
|
+
}
|
|
2777
|
+
};
|
|
2778
|
+
let timer = timeout && setTimeout(() => {
|
|
2779
|
+
timer = null;
|
|
2780
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
2781
|
+
}, timeout);
|
|
2782
|
+
const unsubscribe = () => {
|
|
2783
|
+
if (!signals) return;
|
|
2784
|
+
timer && clearTimeout(timer);
|
|
2785
|
+
timer = null;
|
|
2786
|
+
signals.forEach((signal) => {
|
|
2787
|
+
signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener("abort", onabort);
|
|
2788
|
+
});
|
|
2789
|
+
signals = null;
|
|
2790
|
+
};
|
|
2791
|
+
signals.forEach((signal) => {
|
|
2792
|
+
if (aborted) return;
|
|
2793
|
+
if (signal.aborted) {
|
|
2794
|
+
onabort.call(signal);
|
|
2795
|
+
return;
|
|
2796
|
+
}
|
|
2797
|
+
signal.addEventListener("abort", onabort, { once: true });
|
|
2798
|
+
});
|
|
2799
|
+
const { signal } = controller;
|
|
2800
|
+
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
2801
|
+
return signal;
|
|
2118
2802
|
};
|
|
2119
2803
|
//#endregion
|
|
2120
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2804
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/trackStream.js
|
|
2121
2805
|
const streamChunk = function* (chunk, chunkSize) {
|
|
2122
2806
|
let len = chunk.byteLength;
|
|
2123
2807
|
if (!chunkSize || len < chunkSize) {
|
|
@@ -2185,14 +2869,129 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
2185
2869
|
}, { highWaterMark: 2 });
|
|
2186
2870
|
};
|
|
2187
2871
|
//#endregion
|
|
2188
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2872
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
2873
|
+
/**
|
|
2874
|
+
* Estimate data: URL byte lengths *without* allocating large buffers.
|
|
2875
|
+
* - Fetch percent-decodes a base64 body before decoding it.
|
|
2876
|
+
* - Node's Buffer.from(body, 'base64') sizes its backing allocation from the
|
|
2877
|
+
* raw body, including ignored characters and content after padding.
|
|
2878
|
+
* - Non-base64 data is percent-decoded and then encoded as UTF-8.
|
|
2879
|
+
*/
|
|
2880
|
+
const isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
|
|
2881
|
+
const isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
2882
|
+
const hexValue = (charCode) => charCode <= 57 ? charCode - 48 : (charCode & 223) - 55;
|
|
2883
|
+
const isBase64Char = (charCode) => charCode >= 65 && charCode <= 90 || charCode >= 97 && charCode <= 122 || charCode >= 48 && charCode <= 57 || charCode === 43 || charCode === 47 || charCode === 45 || charCode === 95;
|
|
2884
|
+
const isBase64Whitespace = (charCode) => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
|
|
2885
|
+
const base64Bytes = (significant) => {
|
|
2886
|
+
const groups = Math.floor(significant / 4);
|
|
2887
|
+
const remainder = significant % 4;
|
|
2888
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
2889
|
+
};
|
|
2890
|
+
const estimateBase64BufferAllocation = (body) => {
|
|
2891
|
+
const len = body.length;
|
|
2892
|
+
let padding = 0;
|
|
2893
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61) {
|
|
2894
|
+
padding++;
|
|
2895
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61) padding++;
|
|
2896
|
+
}
|
|
2897
|
+
return Math.floor((len - padding) * 3 / 4);
|
|
2898
|
+
};
|
|
2899
|
+
const estimatePercentDecodedBase64Bytes = (body) => {
|
|
2900
|
+
const len = body.length;
|
|
2901
|
+
let significant = 0;
|
|
2902
|
+
let padding = 0;
|
|
2903
|
+
let invalid = false;
|
|
2904
|
+
for (let i = 0; i < len; i++) {
|
|
2905
|
+
let code = body.charCodeAt(i);
|
|
2906
|
+
if (code === 37 && isPercentEncodedByte(body, i, len)) {
|
|
2907
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
2908
|
+
i += 2;
|
|
2909
|
+
}
|
|
2910
|
+
if (isBase64Whitespace(code)) continue;
|
|
2911
|
+
if (code === 61) {
|
|
2912
|
+
padding++;
|
|
2913
|
+
continue;
|
|
2914
|
+
}
|
|
2915
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
2916
|
+
invalid = true;
|
|
2917
|
+
continue;
|
|
2918
|
+
}
|
|
2919
|
+
significant++;
|
|
2920
|
+
}
|
|
2921
|
+
if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) return estimateBase64BufferAllocation(body);
|
|
2922
|
+
return base64Bytes(significant);
|
|
2923
|
+
};
|
|
2924
|
+
const estimateDataURLBytes = (url, estimateBase64) => {
|
|
2925
|
+
if (!url || typeof url !== "string") return 0;
|
|
2926
|
+
if (!url.startsWith("data:")) return 0;
|
|
2927
|
+
const comma = url.indexOf(",");
|
|
2928
|
+
if (comma < 0) return 0;
|
|
2929
|
+
const meta = url.slice(5, comma);
|
|
2930
|
+
const body = url.slice(comma + 1);
|
|
2931
|
+
if (/;base64/i.test(meta)) return estimateBase64(body);
|
|
2932
|
+
let bytes = 0;
|
|
2933
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
2934
|
+
const c = body.charCodeAt(i);
|
|
2935
|
+
if (c === 37 && isPercentEncodedByte(body, i, len)) {
|
|
2936
|
+
bytes += 1;
|
|
2937
|
+
i += 2;
|
|
2938
|
+
} else if (c < 128) bytes += 1;
|
|
2939
|
+
else if (c < 2048) bytes += 2;
|
|
2940
|
+
else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
2941
|
+
const next = body.charCodeAt(i + 1);
|
|
2942
|
+
if (next >= 56320 && next <= 57343) {
|
|
2943
|
+
bytes += 4;
|
|
2944
|
+
i++;
|
|
2945
|
+
} else bytes += 3;
|
|
2946
|
+
} else bytes += 3;
|
|
2947
|
+
}
|
|
2948
|
+
return bytes;
|
|
2949
|
+
};
|
|
2950
|
+
/**
|
|
2951
|
+
* Estimate the percent-decoded payload size used by Fetch data: URLs.
|
|
2952
|
+
*
|
|
2953
|
+
* @param {string} url
|
|
2954
|
+
* @returns {number}
|
|
2955
|
+
*/
|
|
2956
|
+
function estimateDataURLDecodedBytes(url) {
|
|
2957
|
+
const fragmentIndex = typeof url === "string" ? url.indexOf("#") : -1;
|
|
2958
|
+
return estimateDataURLBytes(fragmentIndex === -1 ? url : url.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes);
|
|
2959
|
+
}
|
|
2960
|
+
//#endregion
|
|
2961
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/env/data.js
|
|
2962
|
+
const VERSION$1 = "1.20.0";
|
|
2963
|
+
//#endregion
|
|
2964
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/adapters/fetch.js
|
|
2189
2965
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
2966
|
+
const DEFAULT_REQUEST_OPTIONS = {
|
|
2967
|
+
cache: "default",
|
|
2968
|
+
redirect: "follow",
|
|
2969
|
+
referrer: "about:client",
|
|
2970
|
+
referrerPolicy: "",
|
|
2971
|
+
mode: "cors",
|
|
2972
|
+
integrity: "",
|
|
2973
|
+
keepalive: false,
|
|
2974
|
+
priority: "auto",
|
|
2975
|
+
window: null
|
|
2976
|
+
};
|
|
2190
2977
|
const { isFunction } = utils_default;
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2978
|
+
/**
|
|
2979
|
+
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
2980
|
+
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
2981
|
+
*
|
|
2982
|
+
* @param {string} str The string to encode
|
|
2983
|
+
*
|
|
2984
|
+
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
2985
|
+
*/
|
|
2986
|
+
const encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
2987
|
+
const decodeURIComponentSafe = (value) => {
|
|
2988
|
+
if (!utils_default.isString(value)) return value;
|
|
2989
|
+
try {
|
|
2990
|
+
return decodeURIComponent(value);
|
|
2991
|
+
} catch (error) {
|
|
2992
|
+
return value;
|
|
2993
|
+
}
|
|
2994
|
+
};
|
|
2196
2995
|
const test = (fn, ...args) => {
|
|
2197
2996
|
try {
|
|
2198
2997
|
return !!fn(...args);
|
|
@@ -2200,25 +2999,38 @@ const test = (fn, ...args) => {
|
|
|
2200
2999
|
return false;
|
|
2201
3000
|
}
|
|
2202
3001
|
};
|
|
3002
|
+
const maybeWithAuthCredentials = (url) => {
|
|
3003
|
+
const protocolIndex = url.indexOf("://");
|
|
3004
|
+
let urlToCheck = url;
|
|
3005
|
+
if (protocolIndex !== -1) urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
3006
|
+
return urlToCheck.includes("@") || urlToCheck.includes(":");
|
|
3007
|
+
};
|
|
2203
3008
|
const factory = (env) => {
|
|
2204
|
-
|
|
3009
|
+
const globalObject = utils_default.global !== void 0 && utils_default.global !== null ? utils_default.global : globalThis;
|
|
3010
|
+
const { ReadableStream, TextEncoder } = globalObject;
|
|
3011
|
+
env = utils_default.merge.call({ skipUndefined: true }, {
|
|
3012
|
+
Request: globalObject.Request,
|
|
3013
|
+
Response: globalObject.Response
|
|
3014
|
+
}, env);
|
|
2205
3015
|
const { fetch: envFetch, Request, Response } = env;
|
|
2206
3016
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
2207
3017
|
const isRequestSupported = isFunction(Request);
|
|
2208
3018
|
const isResponseSupported = isFunction(Response);
|
|
2209
3019
|
if (!isFetchSupported) return false;
|
|
2210
|
-
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream
|
|
3020
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
|
|
2211
3021
|
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
2212
3022
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
2213
3023
|
let duplexAccessed = false;
|
|
2214
|
-
const
|
|
2215
|
-
body: new ReadableStream
|
|
3024
|
+
const request = new Request(platform_default.origin, {
|
|
3025
|
+
body: new ReadableStream(),
|
|
2216
3026
|
method: "POST",
|
|
2217
3027
|
get duplex() {
|
|
2218
3028
|
duplexAccessed = true;
|
|
2219
3029
|
return "half";
|
|
2220
3030
|
}
|
|
2221
|
-
})
|
|
3031
|
+
});
|
|
3032
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
3033
|
+
if (request.body != null) request.body.cancel();
|
|
2222
3034
|
return duplexAccessed && !hasContentType;
|
|
2223
3035
|
});
|
|
2224
3036
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -2252,7 +3064,10 @@ const factory = (env) => {
|
|
|
2252
3064
|
return length == null ? getBodyLength(body) : length;
|
|
2253
3065
|
};
|
|
2254
3066
|
return async (config) => {
|
|
2255
|
-
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions } =
|
|
3067
|
+
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength, maxRedirects } = resolveConfig(config);
|
|
3068
|
+
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
3069
|
+
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
3070
|
+
const own = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
|
|
2256
3071
|
let _fetch = envFetch || fetch;
|
|
2257
3072
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
2258
3073
|
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
@@ -2261,35 +3076,107 @@ const factory = (env) => {
|
|
|
2261
3076
|
composedSignal.unsubscribe();
|
|
2262
3077
|
});
|
|
2263
3078
|
let requestContentLength;
|
|
3079
|
+
let pendingBodyError = null;
|
|
3080
|
+
const maxBodyLengthError = () => new AxiosError$1("Request body larger than maxBodyLength limit", AxiosError$1.ERR_BAD_REQUEST, config, request);
|
|
2264
3081
|
try {
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
if (
|
|
2274
|
-
|
|
2275
|
-
|
|
3082
|
+
let auth = void 0;
|
|
3083
|
+
const configAuth = own("auth");
|
|
3084
|
+
if (configAuth) auth = {
|
|
3085
|
+
username: utils_default.getSafeProp(configAuth, "username") || "",
|
|
3086
|
+
password: utils_default.getSafeProp(configAuth, "password") || ""
|
|
3087
|
+
};
|
|
3088
|
+
if (maybeWithAuthCredentials(url)) {
|
|
3089
|
+
const parsedURL = new URL(url, platform_default.origin);
|
|
3090
|
+
if (!auth && (parsedURL.username || parsedURL.password)) auth = {
|
|
3091
|
+
username: decodeURIComponentSafe(parsedURL.username),
|
|
3092
|
+
password: decodeURIComponentSafe(parsedURL.password)
|
|
3093
|
+
};
|
|
3094
|
+
if (parsedURL.username || parsedURL.password) {
|
|
3095
|
+
parsedURL.username = "";
|
|
3096
|
+
parsedURL.password = "";
|
|
3097
|
+
url = parsedURL.href;
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
if (auth) {
|
|
3101
|
+
headers.delete("authorization");
|
|
3102
|
+
headers.set("Authorization", "Basic " + btoa(encodeUTF8((auth.username || "") + ":" + (auth.password || ""))));
|
|
3103
|
+
}
|
|
3104
|
+
if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
|
|
3105
|
+
if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
|
|
3106
|
+
}
|
|
3107
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
3108
|
+
const outboundLength = await getBodyLength(data);
|
|
3109
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength)) {
|
|
3110
|
+
requestContentLength = outboundLength;
|
|
3111
|
+
if (outboundLength > maxBodyLength) throw maxBodyLengthError();
|
|
2276
3112
|
}
|
|
2277
3113
|
}
|
|
3114
|
+
const mustEnforceStreamBody = hasMaxBodyLength && (utils_default.isReadableStream(data) || utils_default.isStream(data));
|
|
3115
|
+
const trackRequestStream = (stream, onProgress, flush) => trackStream(stream, DEFAULT_CHUNK_SIZE, (loadedBytes) => {
|
|
3116
|
+
if (hasMaxBodyLength && loadedBytes > maxBodyLength) throw pendingBodyError = maxBodyLengthError();
|
|
3117
|
+
onProgress && onProgress(loadedBytes);
|
|
3118
|
+
}, flush);
|
|
3119
|
+
if (supportsRequestStream && method !== "get" && method !== "head" && (onUploadProgress || mustEnforceStreamBody)) {
|
|
3120
|
+
requestContentLength = requestContentLength == null ? await resolveBodyLength(headers, data) : requestContentLength;
|
|
3121
|
+
if (requestContentLength !== 0 || mustEnforceStreamBody) {
|
|
3122
|
+
let _request = new Request(url, {
|
|
3123
|
+
method: "POST",
|
|
3124
|
+
body: data,
|
|
3125
|
+
duplex: "half"
|
|
3126
|
+
});
|
|
3127
|
+
let contentTypeHeader;
|
|
3128
|
+
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) headers.setContentType(contentTypeHeader);
|
|
3129
|
+
if (_request.body) {
|
|
3130
|
+
const [onProgress, flush] = onUploadProgress && progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))) || [];
|
|
3131
|
+
data = trackRequestStream(_request.body, onProgress, flush);
|
|
3132
|
+
}
|
|
3133
|
+
}
|
|
3134
|
+
} else if (mustEnforceStreamBody && !isRequestSupported && isReadableStreamSupported && method !== "get" && method !== "head") data = trackRequestStream(data);
|
|
3135
|
+
else if (mustEnforceStreamBody && isRequestSupported && !supportsRequestStream && method !== "get" && method !== "head") throw new AxiosError$1("Stream request bodies are not supported by the current fetch implementation", AxiosError$1.ERR_NOT_SUPPORT, config, request);
|
|
2278
3136
|
if (!utils_default.isString(withCredentials)) withCredentials = withCredentials ? "include" : "omit";
|
|
2279
3137
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
2280
|
-
|
|
2281
|
-
|
|
3138
|
+
if (utils_default.isFormData(data)) {
|
|
3139
|
+
const contentType = headers.getContentType();
|
|
3140
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) headers.delete("content-type");
|
|
3141
|
+
}
|
|
3142
|
+
headers.set("User-Agent", "axios/" + VERSION$1, false);
|
|
3143
|
+
const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
3144
|
+
if (safeFetchOptions) {
|
|
3145
|
+
delete safeFetchOptions.body;
|
|
3146
|
+
delete safeFetchOptions.headers;
|
|
3147
|
+
delete safeFetchOptions.method;
|
|
3148
|
+
delete safeFetchOptions.signal;
|
|
3149
|
+
delete safeFetchOptions.duplex;
|
|
3150
|
+
delete safeFetchOptions.credentials;
|
|
3151
|
+
}
|
|
3152
|
+
const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
2282
3153
|
signal: composedSignal,
|
|
2283
3154
|
method: method.toUpperCase(),
|
|
2284
|
-
headers: headers.normalize()
|
|
3155
|
+
headers: toByteStringHeaderObject(headers.normalize()),
|
|
2285
3156
|
body: data,
|
|
2286
3157
|
duplex: "half",
|
|
2287
3158
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
2288
|
-
};
|
|
3159
|
+
});
|
|
3160
|
+
if (isRequestSupported) {
|
|
3161
|
+
utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
3162
|
+
if (resolvedOptions[key] === void 0) resolvedOptions[key] = value;
|
|
3163
|
+
});
|
|
3164
|
+
if (resolvedOptions.signal === void 0) resolvedOptions.signal = null;
|
|
3165
|
+
if (resolvedOptions.body === void 0) resolvedOptions.body = null;
|
|
3166
|
+
}
|
|
3167
|
+
if (maxRedirects === 0) {
|
|
3168
|
+
resolvedOptions.redirect = "manual";
|
|
3169
|
+
if (safeFetchOptions) safeFetchOptions.redirect = "manual";
|
|
3170
|
+
}
|
|
2289
3171
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
2290
|
-
let response = await (isRequestSupported ? _fetch(request,
|
|
3172
|
+
let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url, resolvedOptions));
|
|
3173
|
+
const responseHeaders = AxiosHeaders$1.from(response.headers);
|
|
3174
|
+
if (hasMaxContentLength) {
|
|
3175
|
+
const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
3176
|
+
if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
|
|
3177
|
+
}
|
|
2291
3178
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
2292
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
3179
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
2293
3180
|
const options = {};
|
|
2294
3181
|
[
|
|
2295
3182
|
"status",
|
|
@@ -2298,15 +3185,32 @@ const factory = (env) => {
|
|
|
2298
3185
|
].forEach((prop) => {
|
|
2299
3186
|
options[prop] = response[prop];
|
|
2300
3187
|
});
|
|
2301
|
-
const responseContentLength = utils_default.toFiniteNumber(
|
|
3188
|
+
const responseContentLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
|
|
2302
3189
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
2303
|
-
|
|
3190
|
+
let bytesRead = 0;
|
|
3191
|
+
const onChunkProgress = (loadedBytes) => {
|
|
3192
|
+
if (hasMaxContentLength) {
|
|
3193
|
+
bytesRead = loadedBytes;
|
|
3194
|
+
if (bytesRead > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
|
|
3195
|
+
}
|
|
3196
|
+
onProgress && onProgress(loadedBytes);
|
|
3197
|
+
};
|
|
3198
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
2304
3199
|
flush && flush();
|
|
2305
3200
|
unsubscribe && unsubscribe();
|
|
2306
3201
|
}), options);
|
|
2307
3202
|
}
|
|
2308
3203
|
responseType = responseType || "text";
|
|
2309
3204
|
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
3205
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
3206
|
+
let materializedSize;
|
|
3207
|
+
if (responseData != null) {
|
|
3208
|
+
if (typeof responseData.byteLength === "number") materializedSize = responseData.byteLength;
|
|
3209
|
+
else if (typeof responseData.size === "number") materializedSize = responseData.size;
|
|
3210
|
+
else if (typeof responseData === "string") materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
|
|
3211
|
+
}
|
|
3212
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError$1("maxContentLength size of " + maxContentLength + " exceeded", AxiosError$1.ERR_BAD_RESPONSE, config, request);
|
|
3213
|
+
}
|
|
2310
3214
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
2311
3215
|
return await new Promise((resolve, reject) => {
|
|
2312
3216
|
settle(resolve, reject, {
|
|
@@ -2320,8 +3224,39 @@ const factory = (env) => {
|
|
|
2320
3224
|
});
|
|
2321
3225
|
} catch (err) {
|
|
2322
3226
|
unsubscribe && unsubscribe();
|
|
2323
|
-
if (
|
|
2324
|
-
|
|
3227
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError$1) {
|
|
3228
|
+
const canceledError = composedSignal.reason;
|
|
3229
|
+
canceledError.config = config;
|
|
3230
|
+
request && (canceledError.request = request);
|
|
3231
|
+
if (err !== canceledError) Object.defineProperty(canceledError, "cause", {
|
|
3232
|
+
__proto__: null,
|
|
3233
|
+
value: err,
|
|
3234
|
+
writable: true,
|
|
3235
|
+
enumerable: false,
|
|
3236
|
+
configurable: true
|
|
3237
|
+
});
|
|
3238
|
+
throw canceledError;
|
|
3239
|
+
}
|
|
3240
|
+
if (pendingBodyError) {
|
|
3241
|
+
request && !pendingBodyError.request && (pendingBodyError.request = request);
|
|
3242
|
+
throw pendingBodyError;
|
|
3243
|
+
}
|
|
3244
|
+
if (err instanceof AxiosError$1) {
|
|
3245
|
+
request && !err.request && (err.request = request);
|
|
3246
|
+
throw err;
|
|
3247
|
+
}
|
|
3248
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
3249
|
+
const networkError = new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err && err.response);
|
|
3250
|
+
Object.defineProperty(networkError, "cause", {
|
|
3251
|
+
__proto__: null,
|
|
3252
|
+
value: err.cause || err,
|
|
3253
|
+
writable: true,
|
|
3254
|
+
enumerable: false,
|
|
3255
|
+
configurable: true
|
|
3256
|
+
});
|
|
3257
|
+
throw networkError;
|
|
3258
|
+
}
|
|
3259
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
2325
3260
|
}
|
|
2326
3261
|
};
|
|
2327
3262
|
};
|
|
@@ -2345,14 +3280,14 @@ const getFetch = (config) => {
|
|
|
2345
3280
|
};
|
|
2346
3281
|
getFetch();
|
|
2347
3282
|
//#endregion
|
|
2348
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3283
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/adapters/adapters.js
|
|
2349
3284
|
/**
|
|
2350
3285
|
* Known adapters mapping.
|
|
2351
3286
|
* Provides environment-specific adapters for Axios:
|
|
2352
3287
|
* - `http` for Node.js
|
|
2353
3288
|
* - `xhr` for browsers
|
|
2354
3289
|
* - `fetch` for fetch API-based requests
|
|
2355
|
-
*
|
|
3290
|
+
*
|
|
2356
3291
|
* @type {Object<string, Function|Object>}
|
|
2357
3292
|
*/
|
|
2358
3293
|
const knownAdapters = {
|
|
@@ -2363,21 +3298,27 @@ const knownAdapters = {
|
|
|
2363
3298
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
2364
3299
|
if (fn) {
|
|
2365
3300
|
try {
|
|
2366
|
-
Object.defineProperty(fn, "name", {
|
|
3301
|
+
Object.defineProperty(fn, "name", {
|
|
3302
|
+
__proto__: null,
|
|
3303
|
+
value
|
|
3304
|
+
});
|
|
2367
3305
|
} catch (e) {}
|
|
2368
|
-
Object.defineProperty(fn, "adapterName", {
|
|
3306
|
+
Object.defineProperty(fn, "adapterName", {
|
|
3307
|
+
__proto__: null,
|
|
3308
|
+
value
|
|
3309
|
+
});
|
|
2369
3310
|
}
|
|
2370
3311
|
});
|
|
2371
3312
|
/**
|
|
2372
3313
|
* Render a rejection reason string for unknown or unsupported adapters
|
|
2373
|
-
*
|
|
3314
|
+
*
|
|
2374
3315
|
* @param {string} reason
|
|
2375
3316
|
* @returns {string}
|
|
2376
3317
|
*/
|
|
2377
3318
|
const renderReason = (reason) => `- ${reason}`;
|
|
2378
3319
|
/**
|
|
2379
3320
|
* Check if the adapter is resolved (function, null, or false)
|
|
2380
|
-
*
|
|
3321
|
+
*
|
|
2381
3322
|
* @param {Function|null|false} adapter
|
|
2382
3323
|
* @returns {boolean}
|
|
2383
3324
|
*/
|
|
@@ -2386,7 +3327,7 @@ const isResolvedHandle = (adapter) => utils_default.isFunction(adapter) || adapt
|
|
|
2386
3327
|
* Get the first suitable adapter from the provided list.
|
|
2387
3328
|
* Tries each adapter in order until a supported one is found.
|
|
2388
3329
|
* Throws an AxiosError if no adapter is suitable.
|
|
2389
|
-
*
|
|
3330
|
+
*
|
|
2390
3331
|
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
2391
3332
|
* @param {Object} config - Axios request configuration
|
|
2392
3333
|
* @throws {AxiosError} If no suitable adapter is available
|
|
@@ -2411,7 +3352,7 @@ function getAdapter$1(adapters, config) {
|
|
|
2411
3352
|
}
|
|
2412
3353
|
if (!adapter) {
|
|
2413
3354
|
const reasons = Object.entries(rejectedReasons).map(([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build"));
|
|
2414
|
-
throw new AxiosError$1(`There is no suitable adapter to dispatch the request ` + (length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"),
|
|
3355
|
+
throw new AxiosError$1(`There is no suitable adapter to dispatch the request ` + (length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified"), AxiosError$1.ERR_NOT_SUPPORT);
|
|
2415
3356
|
}
|
|
2416
3357
|
return adapter;
|
|
2417
3358
|
}
|
|
@@ -2423,7 +3364,7 @@ var adapters_default = {
|
|
|
2423
3364
|
adapters: knownAdapters
|
|
2424
3365
|
};
|
|
2425
3366
|
//#endregion
|
|
2426
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3367
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/dispatchRequest.js
|
|
2427
3368
|
/**
|
|
2428
3369
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
2429
3370
|
*
|
|
@@ -2442,9 +3383,10 @@ function throwIfCancellationRequested(config) {
|
|
|
2442
3383
|
*
|
|
2443
3384
|
* @returns {Promise} The Promise to be fulfilled
|
|
2444
3385
|
*/
|
|
2445
|
-
function dispatchRequest(
|
|
3386
|
+
function dispatchRequest(_config) {
|
|
3387
|
+
const config = utils_default.toSafeFlatObject(_config);
|
|
2446
3388
|
throwIfCancellationRequested(config);
|
|
2447
|
-
config.headers = AxiosHeaders$1.from(config
|
|
3389
|
+
config.headers = AxiosHeaders$1.from(utils_default.getSafeProp(config, "headers"));
|
|
2448
3390
|
config.data = transformData.call(config, config.transformRequest);
|
|
2449
3391
|
if ([
|
|
2450
3392
|
"post",
|
|
@@ -2453,14 +3395,24 @@ function dispatchRequest(config) {
|
|
|
2453
3395
|
].indexOf(config.method) !== -1) config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
2454
3396
|
return adapters_default.getAdapter(config.adapter || defaults.adapter, config)(config).then(function onAdapterResolution(response) {
|
|
2455
3397
|
throwIfCancellationRequested(config);
|
|
2456
|
-
response
|
|
3398
|
+
config.response = response;
|
|
3399
|
+
try {
|
|
3400
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
3401
|
+
} finally {
|
|
3402
|
+
delete config.response;
|
|
3403
|
+
}
|
|
2457
3404
|
response.headers = AxiosHeaders$1.from(response.headers);
|
|
2458
3405
|
return response;
|
|
2459
3406
|
}, function onAdapterRejection(reason) {
|
|
2460
3407
|
if (!isCancel$1(reason)) {
|
|
2461
3408
|
throwIfCancellationRequested(config);
|
|
2462
3409
|
if (reason && reason.response) {
|
|
2463
|
-
|
|
3410
|
+
config.response = reason.response;
|
|
3411
|
+
try {
|
|
3412
|
+
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
3413
|
+
} finally {
|
|
3414
|
+
delete config.response;
|
|
3415
|
+
}
|
|
2464
3416
|
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
2465
3417
|
}
|
|
2466
3418
|
}
|
|
@@ -2468,10 +3420,7 @@ function dispatchRequest(config) {
|
|
|
2468
3420
|
});
|
|
2469
3421
|
}
|
|
2470
3422
|
//#endregion
|
|
2471
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
2472
|
-
const VERSION$1 = "1.13.2";
|
|
2473
|
-
//#endregion
|
|
2474
|
-
//#region ../../../node_modules/.pnpm/axios@1.13.2_debug@4.4.3_supports-color@10.2.2_/node_modules/axios/lib/helpers/validator.js
|
|
3423
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/validator.js
|
|
2475
3424
|
const validators$1 = {};
|
|
2476
3425
|
[
|
|
2477
3426
|
"object",
|
|
@@ -2524,12 +3473,12 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
2524
3473
|
* @returns {object}
|
|
2525
3474
|
*/
|
|
2526
3475
|
function assertOptions(options, schema, allowUnknown) {
|
|
2527
|
-
if (typeof options !== "object") throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3476
|
+
if (typeof options !== "object" || options === null) throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
2528
3477
|
const keys = Object.keys(options);
|
|
2529
3478
|
let i = keys.length;
|
|
2530
3479
|
while (i-- > 0) {
|
|
2531
3480
|
const opt = keys[i];
|
|
2532
|
-
const validator = schema[opt];
|
|
3481
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
2533
3482
|
if (validator) {
|
|
2534
3483
|
const value = options[opt];
|
|
2535
3484
|
const result = value === void 0 || validator(value, opt, options);
|
|
@@ -2544,7 +3493,7 @@ var validator_default = {
|
|
|
2544
3493
|
validators: validators$1
|
|
2545
3494
|
};
|
|
2546
3495
|
//#endregion
|
|
2547
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3496
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/core/Axios.js
|
|
2548
3497
|
const validators = validator_default.validators;
|
|
2549
3498
|
/**
|
|
2550
3499
|
* Create a new instance of Axios
|
|
@@ -2573,15 +3522,23 @@ var Axios$1 = class {
|
|
|
2573
3522
|
try {
|
|
2574
3523
|
return await this._request(configOrUrl, config);
|
|
2575
3524
|
} catch (err) {
|
|
2576
|
-
if (err instanceof Error) {
|
|
3525
|
+
if (err instanceof Error) try {
|
|
2577
3526
|
let dummy = {};
|
|
2578
3527
|
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = /* @__PURE__ */ new Error();
|
|
2579
|
-
const
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
3528
|
+
const dummyStack = dummy.stack;
|
|
3529
|
+
let stack = "";
|
|
3530
|
+
if (typeof dummyStack === "string") {
|
|
3531
|
+
const firstNewlineIndex = dummyStack.indexOf("\n");
|
|
3532
|
+
stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
|
|
3533
|
+
}
|
|
3534
|
+
if (!err.stack) err.stack = stack;
|
|
3535
|
+
else if (stack) {
|
|
3536
|
+
const firstNewlineIndex = stack.indexOf("\n");
|
|
3537
|
+
const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
|
|
3538
|
+
const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
|
|
3539
|
+
if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) err.stack += "\n" + stack;
|
|
3540
|
+
}
|
|
3541
|
+
} catch (e) {}
|
|
2585
3542
|
throw err;
|
|
2586
3543
|
}
|
|
2587
3544
|
}
|
|
@@ -2595,7 +3552,10 @@ var Axios$1 = class {
|
|
|
2595
3552
|
if (transitional !== void 0) validator_default.assertOptions(transitional, {
|
|
2596
3553
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
2597
3554
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
2598
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
3555
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
3556
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
3557
|
+
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
3558
|
+
validateStatusUndefinedResolves: validators.transitional(validators.boolean)
|
|
2599
3559
|
}, false);
|
|
2600
3560
|
if (paramsSerializer != null) if (utils_default.isFunction(paramsSerializer)) config.paramsSerializer = { serialize: paramsSerializer };
|
|
2601
3561
|
else validator_default.assertOptions(paramsSerializer, {
|
|
@@ -2608,17 +3568,9 @@ var Axios$1 = class {
|
|
|
2608
3568
|
baseUrl: validators.spelling("baseURL"),
|
|
2609
3569
|
withXsrfToken: validators.spelling("withXSRFToken")
|
|
2610
3570
|
}, true);
|
|
2611
|
-
config.method = (config
|
|
3571
|
+
config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
|
|
2612
3572
|
let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
|
|
2613
|
-
headers && utils_default.forEach(
|
|
2614
|
-
"delete",
|
|
2615
|
-
"get",
|
|
2616
|
-
"head",
|
|
2617
|
-
"post",
|
|
2618
|
-
"put",
|
|
2619
|
-
"patch",
|
|
2620
|
-
"common"
|
|
2621
|
-
], (method) => {
|
|
3573
|
+
headers && utils_default.forEach(methodList.concat("common"), (method) => {
|
|
2622
3574
|
delete headers[method];
|
|
2623
3575
|
});
|
|
2624
3576
|
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
@@ -2627,7 +3579,9 @@ var Axios$1 = class {
|
|
|
2627
3579
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
2628
3580
|
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) return;
|
|
2629
3581
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
2630
|
-
|
|
3582
|
+
const transitional = config.transitional || transitional_default;
|
|
3583
|
+
if (transitional && transitional.legacyInterceptorReqResOrdering) requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
3584
|
+
else requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
2631
3585
|
});
|
|
2632
3586
|
const responseInterceptorChain = [];
|
|
2633
3587
|
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
@@ -2651,16 +3605,25 @@ var Axios$1 = class {
|
|
|
2651
3605
|
const onFulfilled = requestInterceptorChain[i++];
|
|
2652
3606
|
const onRejected = requestInterceptorChain[i++];
|
|
2653
3607
|
try {
|
|
2654
|
-
newConfig = onFulfilled(newConfig);
|
|
3608
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
2655
3609
|
} catch (error) {
|
|
2656
|
-
onRejected
|
|
3610
|
+
if (!onRejected) {
|
|
3611
|
+
promise = Promise.reject(error);
|
|
3612
|
+
break;
|
|
3613
|
+
}
|
|
3614
|
+
try {
|
|
3615
|
+
const rejectedResult = onRejected.call(this, error);
|
|
3616
|
+
if (utils_default.isThenable(rejectedResult)) promise = Promise.resolve(rejectedResult).then(() => dispatchRequest.call(this, newConfig));
|
|
3617
|
+
} catch (rejectedError) {
|
|
3618
|
+
promise = Promise.reject(rejectedError);
|
|
3619
|
+
}
|
|
2657
3620
|
break;
|
|
2658
3621
|
}
|
|
2659
3622
|
}
|
|
2660
|
-
try {
|
|
3623
|
+
if (!promise) try {
|
|
2661
3624
|
promise = dispatchRequest.call(this, newConfig);
|
|
2662
3625
|
} catch (error) {
|
|
2663
|
-
|
|
3626
|
+
promise = Promise.reject(error);
|
|
2664
3627
|
}
|
|
2665
3628
|
i = 0;
|
|
2666
3629
|
len = responseInterceptorChain.length;
|
|
@@ -2669,7 +3632,7 @@ var Axios$1 = class {
|
|
|
2669
3632
|
}
|
|
2670
3633
|
getUri(config) {
|
|
2671
3634
|
config = mergeConfig$1(this.defaults, config);
|
|
2672
|
-
return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
3635
|
+
return buildURL(buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config), config.params, config.paramsSerializer);
|
|
2673
3636
|
}
|
|
2674
3637
|
};
|
|
2675
3638
|
utils_default.forEach([
|
|
@@ -2682,14 +3645,15 @@ utils_default.forEach([
|
|
|
2682
3645
|
return this.request(mergeConfig$1(config || {}, {
|
|
2683
3646
|
method,
|
|
2684
3647
|
url,
|
|
2685
|
-
data: (config
|
|
3648
|
+
data: config && utils_default.hasOwnProp(config, "data") ? config.data : void 0
|
|
2686
3649
|
}));
|
|
2687
3650
|
};
|
|
2688
3651
|
});
|
|
2689
3652
|
utils_default.forEach([
|
|
2690
3653
|
"post",
|
|
2691
3654
|
"put",
|
|
2692
|
-
"patch"
|
|
3655
|
+
"patch",
|
|
3656
|
+
"query"
|
|
2693
3657
|
], function forEachMethodWithData(method) {
|
|
2694
3658
|
function generateHTTPMethod(isForm) {
|
|
2695
3659
|
return function httpMethod(url, data, config) {
|
|
@@ -2702,10 +3666,10 @@ utils_default.forEach([
|
|
|
2702
3666
|
};
|
|
2703
3667
|
}
|
|
2704
3668
|
Axios$1.prototype[method] = generateHTTPMethod();
|
|
2705
|
-
Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
3669
|
+
if (method !== "query") Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
2706
3670
|
});
|
|
2707
3671
|
//#endregion
|
|
2708
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3672
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/cancel/CancelToken.js
|
|
2709
3673
|
/**
|
|
2710
3674
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
2711
3675
|
*
|
|
@@ -2793,7 +3757,7 @@ var CancelToken$1 = class CancelToken$1 {
|
|
|
2793
3757
|
}
|
|
2794
3758
|
};
|
|
2795
3759
|
//#endregion
|
|
2796
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3760
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/spread.js
|
|
2797
3761
|
/**
|
|
2798
3762
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
2799
3763
|
*
|
|
@@ -2801,7 +3765,7 @@ var CancelToken$1 = class CancelToken$1 {
|
|
|
2801
3765
|
*
|
|
2802
3766
|
* ```js
|
|
2803
3767
|
* function f(x, y, z) {}
|
|
2804
|
-
*
|
|
3768
|
+
* const args = [1, 2, 3];
|
|
2805
3769
|
* f.apply(null, args);
|
|
2806
3770
|
* ```
|
|
2807
3771
|
*
|
|
@@ -2821,7 +3785,7 @@ function spread$1(callback) {
|
|
|
2821
3785
|
};
|
|
2822
3786
|
}
|
|
2823
3787
|
//#endregion
|
|
2824
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3788
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/isAxiosError.js
|
|
2825
3789
|
/**
|
|
2826
3790
|
* Determines whether the payload is an error thrown by Axios
|
|
2827
3791
|
*
|
|
@@ -2833,7 +3797,7 @@ function isAxiosError$1(payload) {
|
|
|
2833
3797
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
2834
3798
|
}
|
|
2835
3799
|
//#endregion
|
|
2836
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3800
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
2837
3801
|
const HttpStatusCode$1 = {
|
|
2838
3802
|
Continue: 100,
|
|
2839
3803
|
SwitchingProtocols: 101,
|
|
@@ -2872,6 +3836,7 @@ const HttpStatusCode$1 = {
|
|
|
2872
3836
|
LengthRequired: 411,
|
|
2873
3837
|
PreconditionFailed: 412,
|
|
2874
3838
|
PayloadTooLarge: 413,
|
|
3839
|
+
ContentTooLarge: 413,
|
|
2875
3840
|
UriTooLong: 414,
|
|
2876
3841
|
UnsupportedMediaType: 415,
|
|
2877
3842
|
RangeNotSatisfiable: 416,
|
|
@@ -2879,6 +3844,7 @@ const HttpStatusCode$1 = {
|
|
|
2879
3844
|
ImATeapot: 418,
|
|
2880
3845
|
MisdirectedRequest: 421,
|
|
2881
3846
|
UnprocessableEntity: 422,
|
|
3847
|
+
UnprocessableContent: 422,
|
|
2882
3848
|
Locked: 423,
|
|
2883
3849
|
FailedDependency: 424,
|
|
2884
3850
|
TooEarly: 425,
|
|
@@ -2898,6 +3864,7 @@ const HttpStatusCode$1 = {
|
|
|
2898
3864
|
LoopDetected: 508,
|
|
2899
3865
|
NotExtended: 510,
|
|
2900
3866
|
NetworkAuthenticationRequired: 511,
|
|
3867
|
+
WebServerReturnsAnUnknownError: 520,
|
|
2901
3868
|
WebServerIsDown: 521,
|
|
2902
3869
|
ConnectionTimedOut: 522,
|
|
2903
3870
|
OriginIsUnreachable: 523,
|
|
@@ -2906,10 +3873,10 @@ const HttpStatusCode$1 = {
|
|
|
2906
3873
|
InvalidSslCertificate: 526
|
|
2907
3874
|
};
|
|
2908
3875
|
Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
|
|
2909
|
-
HttpStatusCode$1[value] = key;
|
|
3876
|
+
if (HttpStatusCode$1[value] === void 0) HttpStatusCode$1[value] = key;
|
|
2910
3877
|
});
|
|
2911
3878
|
//#endregion
|
|
2912
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3879
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/lib/axios.js
|
|
2913
3880
|
/**
|
|
2914
3881
|
* Create an instance of Axios
|
|
2915
3882
|
*
|
|
@@ -2948,7 +3915,7 @@ axios.getAdapter = adapters_default.getAdapter;
|
|
|
2948
3915
|
axios.HttpStatusCode = HttpStatusCode$1;
|
|
2949
3916
|
axios.default = axios;
|
|
2950
3917
|
//#endregion
|
|
2951
|
-
//#region ../../../node_modules/.pnpm/axios@1.
|
|
3918
|
+
//#region ../../../node_modules/.pnpm/axios@1.20.0_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/axios/index.js
|
|
2952
3919
|
var axios_exports = /* @__PURE__ */ __exportAll({
|
|
2953
3920
|
Axios: () => Axios,
|
|
2954
3921
|
AxiosError: () => AxiosError,
|
|
@@ -2959,6 +3926,7 @@ var axios_exports = /* @__PURE__ */ __exportAll({
|
|
|
2959
3926
|
HttpStatusCode: () => HttpStatusCode,
|
|
2960
3927
|
VERSION: () => VERSION,
|
|
2961
3928
|
all: () => all,
|
|
3929
|
+
create: () => create,
|
|
2962
3930
|
default: () => axios,
|
|
2963
3931
|
formToJSON: () => formToJSON,
|
|
2964
3932
|
getAdapter: () => getAdapter,
|
|
@@ -2968,25 +3936,25 @@ var axios_exports = /* @__PURE__ */ __exportAll({
|
|
|
2968
3936
|
spread: () => spread,
|
|
2969
3937
|
toFormData: () => toFormData
|
|
2970
3938
|
});
|
|
2971
|
-
const { Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig } = axios;
|
|
3939
|
+
const { Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig, create } = axios;
|
|
2972
3940
|
//#endregion
|
|
2973
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
3941
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/_virtual/_axios.mjs
|
|
2974
3942
|
var r$7 = t$13(axios_exports);
|
|
2975
3943
|
//#endregion
|
|
2976
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
3944
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/Response.mjs
|
|
2977
3945
|
var s$11 = class {
|
|
2978
3946
|
constructor(s, t, r, a) {
|
|
2979
3947
|
this.statusCode = s, this.payload = t, this.error = r, this.headers = a;
|
|
2980
3948
|
}
|
|
2981
3949
|
};
|
|
2982
3950
|
//#endregion
|
|
2983
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
3951
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/util/buildSmartyResponse.mjs
|
|
2984
3952
|
const r$6 = s$11;
|
|
2985
3953
|
var s$10 = { buildSmartyResponse: function(e, s) {
|
|
2986
3954
|
return e ? new r$6(e.status, e.data, e.error, e.headers) : new r$6(void 0, void 0, s);
|
|
2987
3955
|
} };
|
|
2988
3956
|
//#endregion
|
|
2989
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
3957
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/HttpSender.mjs
|
|
2990
3958
|
const t$10 = r$7.default, { buildSmartyResponse: o$4 } = s$10;
|
|
2991
3959
|
var a$15 = class {
|
|
2992
3960
|
constructor(e = 1e4, s, o = !1) {
|
|
@@ -3019,7 +3987,7 @@ var a$15 = class {
|
|
|
3019
3987
|
}
|
|
3020
3988
|
};
|
|
3021
3989
|
//#endregion
|
|
3022
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
3990
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/SharedCredentials.mjs
|
|
3023
3991
|
var t$9 = class {
|
|
3024
3992
|
constructor(s, t) {
|
|
3025
3993
|
this.authId = s, this.hostName = t;
|
|
@@ -3029,7 +3997,7 @@ var t$9 = class {
|
|
|
3029
3997
|
}
|
|
3030
3998
|
}, e$17 = e$18(t$9);
|
|
3031
3999
|
//#endregion
|
|
3032
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4000
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/SigningSender.mjs
|
|
3033
4001
|
const s$9 = t$12.UnprocessableEntityError, t$8 = t$9;
|
|
3034
4002
|
var n$11 = class {
|
|
3035
4003
|
constructor(e, r) {
|
|
@@ -3043,7 +4011,7 @@ var n$11 = class {
|
|
|
3043
4011
|
}
|
|
3044
4012
|
};
|
|
3045
4013
|
//#endregion
|
|
3046
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4014
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/BaseUrlSender.mjs
|
|
3047
4015
|
var r$5 = class {
|
|
3048
4016
|
constructor(r, e) {
|
|
3049
4017
|
this.urlOverride = e, this.sender = r;
|
|
@@ -3055,10 +4023,10 @@ var r$5 = class {
|
|
|
3055
4023
|
}
|
|
3056
4024
|
};
|
|
3057
4025
|
//#endregion
|
|
3058
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4026
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/package.json.mjs
|
|
3059
4027
|
var e$16 = { version: "6.3.2" };
|
|
3060
4028
|
//#endregion
|
|
3061
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4029
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/AgentSender.mjs
|
|
3062
4030
|
var e$15 = class {
|
|
3063
4031
|
constructor(s) {
|
|
3064
4032
|
this.sender = s;
|
|
@@ -3070,7 +4038,7 @@ var e$15 = class {
|
|
|
3070
4038
|
}
|
|
3071
4039
|
};
|
|
3072
4040
|
//#endregion
|
|
3073
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4041
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/StaticCredentials.mjs
|
|
3074
4042
|
var a$13 = class {
|
|
3075
4043
|
constructor(t, a) {
|
|
3076
4044
|
this.authId = t, this.authToken = a;
|
|
@@ -3080,7 +4048,7 @@ var a$13 = class {
|
|
|
3080
4048
|
}
|
|
3081
4049
|
}, s$8 = e$18(a$13);
|
|
3082
4050
|
//#endregion
|
|
3083
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4051
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/CustomHeaderSender.mjs
|
|
3084
4052
|
var s$7 = class {
|
|
3085
4053
|
constructor(s, e) {
|
|
3086
4054
|
this.sender = s, this.customHeaders = e;
|
|
@@ -3093,7 +4061,7 @@ var s$7 = class {
|
|
|
3093
4061
|
}
|
|
3094
4062
|
};
|
|
3095
4063
|
//#endregion
|
|
3096
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4064
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/StatusCodeSender.mjs
|
|
3097
4065
|
const e$14 = t$12;
|
|
3098
4066
|
var a$12 = class {
|
|
3099
4067
|
constructor(r) {
|
|
@@ -3120,7 +4088,7 @@ var a$12 = class {
|
|
|
3120
4088
|
}
|
|
3121
4089
|
};
|
|
3122
4090
|
//#endregion
|
|
3123
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4091
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/LicenseSender.mjs
|
|
3124
4092
|
var e$13 = class {
|
|
3125
4093
|
constructor(e, s) {
|
|
3126
4094
|
this.sender = e, this.licenses = s;
|
|
@@ -3132,7 +4100,7 @@ var e$13 = class {
|
|
|
3132
4100
|
}
|
|
3133
4101
|
};
|
|
3134
4102
|
//#endregion
|
|
3135
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4103
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/RetrySender.mjs
|
|
3136
4104
|
var e$12 = class {
|
|
3137
4105
|
constructor(e = 5, s, t) {
|
|
3138
4106
|
this.maxRetries = e, this.statusToRetry = [
|
|
@@ -3168,7 +4136,7 @@ var e$12 = class {
|
|
|
3168
4136
|
}
|
|
3169
4137
|
};
|
|
3170
4138
|
//#endregion
|
|
3171
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4139
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/util/Sleeper.mjs
|
|
3172
4140
|
var e$11 = class {
|
|
3173
4141
|
constructor() {}
|
|
3174
4142
|
sleep(e) {
|
|
@@ -3186,7 +4154,7 @@ var e$11 = class {
|
|
|
3186
4154
|
};
|
|
3187
4155
|
e$18(a$11);
|
|
3188
4156
|
//#endregion
|
|
3189
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4157
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_street/Lookup.mjs
|
|
3190
4158
|
var s$6 = class {
|
|
3191
4159
|
constructor(t, s, i, a, e, r, h, o, m, c, u, d, n, l) {
|
|
3192
4160
|
this.street = t, this.street2 = s, this.secondary = i, this.city = a, this.state = e, this.zipCode = r, this.lastLine = h, this.addressee = o, this.urbanization = m, this.match = c, this.maxCandidates = u, this.inputId = d, this.format = n, this.countySource = l, this.result = [], this.customParameters = {};
|
|
@@ -3197,14 +4165,14 @@ var s$6 = class {
|
|
|
3197
4165
|
};
|
|
3198
4166
|
e$18(s$6);
|
|
3199
4167
|
//#endregion
|
|
3200
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4168
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/Request.mjs
|
|
3201
4169
|
var a$10 = class {
|
|
3202
4170
|
constructor(a, s = { "Content-Type": "application/json; charset=utf-8" }) {
|
|
3203
4171
|
this.baseUrl = "", this.baseUrlParam = "", this.payload = a, this.headers = s, this.parameters = {};
|
|
3204
4172
|
}
|
|
3205
4173
|
};
|
|
3206
4174
|
//#endregion
|
|
3207
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4175
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/InputData.mjs
|
|
3208
4176
|
var t$7 = class {
|
|
3209
4177
|
constructor(t) {
|
|
3210
4178
|
this.lookup = t, this.data = {};
|
|
@@ -3223,7 +4191,7 @@ var t$7 = class {
|
|
|
3223
4191
|
}
|
|
3224
4192
|
};
|
|
3225
4193
|
//#endregion
|
|
3226
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4194
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/util/buildInputData.mjs
|
|
3227
4195
|
const a$9 = t$7;
|
|
3228
4196
|
var e$9 = (t, e) => {
|
|
3229
4197
|
let r = new a$9(t);
|
|
@@ -3233,7 +4201,7 @@ var e$9 = (t, e) => {
|
|
|
3233
4201
|
return r.data;
|
|
3234
4202
|
};
|
|
3235
4203
|
//#endregion
|
|
3236
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4204
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/util/sendBatch.mjs
|
|
3237
4205
|
const o$3 = a$10, n$10 = t$12, s$5 = e$9;
|
|
3238
4206
|
var a$8 = (r, t, e, a) => {
|
|
3239
4207
|
if (r.isEmpty()) throw new n$10.BatchEmptyError();
|
|
@@ -3253,7 +4221,7 @@ var a$8 = (r, t, e, a) => {
|
|
|
3253
4221
|
}
|
|
3254
4222
|
};
|
|
3255
4223
|
//#endregion
|
|
3256
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4224
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/util/apiToSDKKeyMap.mjs
|
|
3257
4225
|
var e$8 = {
|
|
3258
4226
|
usStreet: {
|
|
3259
4227
|
street: "street",
|
|
@@ -3331,7 +4299,7 @@ var e$8 = {
|
|
|
3331
4299
|
}
|
|
3332
4300
|
};
|
|
3333
4301
|
//#endregion
|
|
3334
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4302
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_street/Client.mjs
|
|
3335
4303
|
const n$9 = a$11, m$5 = s$6, i$11 = r$8, d$4 = t$12.UndefinedLookupError, c$1 = a$8, p$6 = e$8.usStreet;
|
|
3336
4304
|
var f$1 = class {
|
|
3337
4305
|
constructor(s) {
|
|
@@ -3353,7 +4321,7 @@ var f$1 = class {
|
|
|
3353
4321
|
};
|
|
3354
4322
|
e$18(s$4);
|
|
3355
4323
|
//#endregion
|
|
3356
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4324
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_zipcode/Result.mjs
|
|
3357
4325
|
var e$7 = class {
|
|
3358
4326
|
constructor(t) {
|
|
3359
4327
|
this.inputIndex = t.input_index, this.status = t.status, this.reason = t.reason, this.valid = void 0 === this.status && void 0 === this.reason, this.cities = t.city_states ? t.city_states.map(((t) => ({
|
|
@@ -3383,7 +4351,7 @@ var e$7 = class {
|
|
|
3383
4351
|
};
|
|
3384
4352
|
e$18(e$7);
|
|
3385
4353
|
//#endregion
|
|
3386
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4354
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_zipcode/Client.mjs
|
|
3387
4355
|
const a$7 = s$4, i$9 = e$7, n$8 = r$8, p$5 = t$12.UndefinedLookupError, c = a$8, f = e$8.usZipcode;
|
|
3388
4356
|
var d$3 = class {
|
|
3389
4357
|
constructor(s) {
|
|
@@ -3397,14 +4365,14 @@ var d$3 = class {
|
|
|
3397
4365
|
}
|
|
3398
4366
|
};
|
|
3399
4367
|
//#endregion
|
|
3400
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4368
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_autocomplete_pro/Suggestion.mjs
|
|
3401
4369
|
var t$6 = class {
|
|
3402
4370
|
constructor(s) {
|
|
3403
4371
|
this.streetLine = s.street_line, this.secondary = s.secondary, this.city = s.city, this.state = s.state, this.zipcode = s.zipcode, this.entries = s.entries, s.source && (this.source = s.source);
|
|
3404
4372
|
}
|
|
3405
4373
|
}, e$6 = e$18(t$6);
|
|
3406
4374
|
//#endregion
|
|
3407
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4375
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_autocomplete_pro/Client.mjs
|
|
3408
4376
|
const a$6 = t$12, m$4 = a$10, n$7 = t$6, i$8 = e$9, u$4 = e$8.usAutocompletePro;
|
|
3409
4377
|
var p$4 = class {
|
|
3410
4378
|
constructor(r) {
|
|
@@ -3422,7 +4390,7 @@ var p$4 = class {
|
|
|
3422
4390
|
}
|
|
3423
4391
|
};
|
|
3424
4392
|
//#endregion
|
|
3425
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4393
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_extract/Address.mjs
|
|
3426
4394
|
const s$3 = a$11;
|
|
3427
4395
|
var e$5 = class {
|
|
3428
4396
|
constructor(t) {
|
|
@@ -3430,7 +4398,7 @@ var e$5 = class {
|
|
|
3430
4398
|
}
|
|
3431
4399
|
};
|
|
3432
4400
|
//#endregion
|
|
3433
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4401
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_extract/Result.mjs
|
|
3434
4402
|
const t$5 = e$5;
|
|
3435
4403
|
var r$3 = class {
|
|
3436
4404
|
constructor({ meta: s, addresses: e }) {
|
|
@@ -3446,7 +4414,7 @@ var r$3 = class {
|
|
|
3446
4414
|
};
|
|
3447
4415
|
e$18(r$3);
|
|
3448
4416
|
//#endregion
|
|
3449
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4417
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_extract/Client.mjs
|
|
3450
4418
|
const a$4 = t$12, n$6 = a$10, m$3 = r$3, i$7 = e$9, p$3 = e$8.usExtract;
|
|
3451
4419
|
var u$3 = class {
|
|
3452
4420
|
constructor(r) {
|
|
@@ -3468,7 +4436,7 @@ var u$3 = class {
|
|
|
3468
4436
|
};
|
|
3469
4437
|
e$18(n$5);
|
|
3470
4438
|
//#endregion
|
|
3471
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4439
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/international_street/Client.mjs
|
|
3472
4440
|
const a$3 = a$10, n$4 = t$12, i$6 = n$5, m$2 = e$9, p$2 = e$8.internationalStreet;
|
|
3473
4441
|
var u$2 = class {
|
|
3474
4442
|
constructor(r) {
|
|
@@ -3489,7 +4457,7 @@ var u$2 = class {
|
|
|
3489
4457
|
}
|
|
3490
4458
|
};
|
|
3491
4459
|
//#endregion
|
|
3492
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4460
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_reverse_geo/Result.mjs
|
|
3493
4461
|
var e$3 = class {
|
|
3494
4462
|
constructor(e) {
|
|
3495
4463
|
if (this.distance = e.distance, this.address = {}, e.address && (this.address.street = e.address.street, this.address.city = e.address.city, this.address.state_abbreviation = e.address.state_abbreviation, this.address.zipcode = e.address.zipcode, this.address.source = e.address.source), this.coordinate = {}, e.coordinate) if (this.coordinate.latitude = e.coordinate.latitude, this.coordinate.longitude = e.coordinate.longitude, this.coordinate.accuracy = e.coordinate.accuracy, 1 === e.coordinate.license) this.coordinate.license = "SmartyStreets Proprietary";
|
|
@@ -3497,7 +4465,7 @@ var e$3 = class {
|
|
|
3497
4465
|
}
|
|
3498
4466
|
};
|
|
3499
4467
|
//#endregion
|
|
3500
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4468
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_reverse_geo/Response.mjs
|
|
3501
4469
|
const t$4 = e$3;
|
|
3502
4470
|
var r$2 = class {
|
|
3503
4471
|
constructor(s) {
|
|
@@ -3507,7 +4475,7 @@ var r$2 = class {
|
|
|
3507
4475
|
}
|
|
3508
4476
|
};
|
|
3509
4477
|
//#endregion
|
|
3510
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4478
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_reverse_geo/Client.mjs
|
|
3511
4479
|
const n$3 = a$10, a$2 = r$2, m$1 = e$9, i$5 = e$8.usReverseGeo, { UndefinedLookupError: p$1 } = t$12;
|
|
3512
4480
|
var u$1 = class {
|
|
3513
4481
|
constructor(r) {
|
|
@@ -3526,14 +4494,14 @@ var u$1 = class {
|
|
|
3526
4494
|
}
|
|
3527
4495
|
};
|
|
3528
4496
|
//#endregion
|
|
3529
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4497
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/international_address_autocomplete/Suggestion.mjs
|
|
3530
4498
|
var s$2 = class {
|
|
3531
4499
|
constructor(t) {
|
|
3532
4500
|
this.street = t.street, this.locality = t.locality, this.administrativeArea = t.administrative_area, this.administrativeAreaShort = t.administrative_area_short, this.administrativeAreaLong = t.administrative_area_long, this.postalCode = t.postal_code, this.countryIso3 = t.country_iso3, this.entries = t.entries, this.addressText = t.address_text, this.addressId = t.address_id;
|
|
3533
4501
|
}
|
|
3534
4502
|
}, i$4 = e$18(s$2);
|
|
3535
4503
|
//#endregion
|
|
3536
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4504
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/international_address_autocomplete/Client.mjs
|
|
3537
4505
|
const o$2 = t$12, n$2 = a$10, d$2 = s$2, i$3 = e$9, m = e$8.internationalAddressAutocomplete;
|
|
3538
4506
|
var p = class {
|
|
3539
4507
|
constructor(r) {
|
|
@@ -3551,7 +4519,7 @@ var p = class {
|
|
|
3551
4519
|
}
|
|
3552
4520
|
};
|
|
3553
4521
|
//#endregion
|
|
3554
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4522
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_enrichment/Client.mjs
|
|
3555
4523
|
const s$1 = t$12, a$1 = a$10, t$3 = e$9, { usEnrichment: i$2 } = e$8;
|
|
3556
4524
|
var d$1 = class {
|
|
3557
4525
|
constructor(r) {
|
|
@@ -3604,7 +4572,7 @@ var d$1 = class {
|
|
|
3604
4572
|
}
|
|
3605
4573
|
};
|
|
3606
4574
|
//#endregion
|
|
3607
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4575
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/ClientBuilder.mjs
|
|
3608
4576
|
const x$1 = a$15, y = n$11, U = r$5, _ = e$15, g$1 = a$13, v$1 = t$9, H = s$7, R$1 = a$12, A$1 = e$13, k = t$12.BadCredentialsError, E$1 = e$12, B$1 = e$11, T = f$1, L = d$3, z = p$4, I = u$3, M = u$2, P = u$1, D = p, G = d$1;
|
|
3609
4577
|
var Z = class {
|
|
3610
4578
|
constructor(t) {
|
|
@@ -3678,7 +4646,7 @@ var Z = class {
|
|
|
3678
4646
|
}
|
|
3679
4647
|
}, q = e$18(Z);
|
|
3680
4648
|
//#endregion
|
|
3681
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4649
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/util/buildClients.mjs
|
|
3682
4650
|
const n$1 = Z;
|
|
3683
4651
|
function r$1(t) {
|
|
3684
4652
|
return new n$1(t);
|
|
@@ -3710,7 +4678,7 @@ var i$1 = e$18({
|
|
|
3710
4678
|
}
|
|
3711
4679
|
});
|
|
3712
4680
|
//#endregion
|
|
3713
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4681
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_autocomplete_pro/Lookup.mjs
|
|
3714
4682
|
var t$2 = e$18(class {
|
|
3715
4683
|
constructor(s) {
|
|
3716
4684
|
this.result = [], this.search = s, this.selected = void 0, this.maxResults = void 0, this.includeOnlyCities = [], this.includeOnlyStates = [], this.includeOnlyZIPCodes = [], this.excludeStates = [], this.preferCities = [], this.preferStates = [], this.preferZIPCodes = [], this.preferRatio = void 0, this.preferGeolocation = void 0, this.source = void 0, this.customParameters = {};
|
|
@@ -3731,7 +4699,7 @@ e$18(class {
|
|
|
3731
4699
|
}
|
|
3732
4700
|
});
|
|
3733
4701
|
//#endregion
|
|
3734
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4702
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/international_street/Lookup.mjs
|
|
3735
4703
|
const i = t$12.UnprocessableEntityError, r = "Country field is required.", s = "Either freeform or address1 is required.", o$1 = "Insufficient information: One or more required fields were not set on the lookup.", n = "Invalid input: geocode can only be set to 'true' (default is 'false'.", a = "Invalid input: language can only be set to 'latin' or 'native'. When not set, the the output language will match the language of the input values.";
|
|
3736
4704
|
function u(t) {
|
|
3737
4705
|
if (!t) return !0;
|
|
@@ -3765,7 +4733,7 @@ e$18(class {
|
|
|
3765
4733
|
}
|
|
3766
4734
|
});
|
|
3767
4735
|
//#endregion
|
|
3768
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4736
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/us_reverse_geo/Lookup.mjs
|
|
3769
4737
|
const e$1 = r$2;
|
|
3770
4738
|
e$18(class {
|
|
3771
4739
|
constructor(s, t, o = "") {
|
|
@@ -3776,7 +4744,7 @@ e$18(class {
|
|
|
3776
4744
|
}
|
|
3777
4745
|
});
|
|
3778
4746
|
//#endregion
|
|
3779
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4747
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/international_address_autocomplete/Lookup.mjs
|
|
3780
4748
|
var t$1 = e$18(class {
|
|
3781
4749
|
constructor({ search: s, addressId: t, country: e, maxResults: a = 5, includeOnlyLocality: r, includeOnlyPostalCode: l } = {}) {
|
|
3782
4750
|
this.result = [], this.search = s, this.addressId = t, this.country = e, this.maxResults = a, this.includeOnlyLocality = r, this.includeOnlyPostalCode = l, this.customParameters = {};
|
|
@@ -3856,7 +4824,7 @@ e$18({
|
|
|
3856
4824
|
}
|
|
3857
4825
|
});
|
|
3858
4826
|
//#endregion
|
|
3859
|
-
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.
|
|
4827
|
+
//#region ../../../node_modules/.pnpm/smartystreets-javascript-sdk@6.3.2_debug@4.4.3_supports-color@10.2.2__supports-color@10.2.2/node_modules/smartystreets-javascript-sdk/dist/esm/index.mjs
|
|
3860
4828
|
const g = {
|
|
3861
4829
|
Batch: u$5,
|
|
3862
4830
|
ClientBuilder: q,
|
|
@@ -8932,4 +9900,4 @@ function FluidDataSourceRegistryProvider({ baseUrl, getApiHeaders, variables, ch
|
|
|
8932
9900
|
//#endregion
|
|
8933
9901
|
export { useHaptics as _, messagingDomain as a, createSubscriptionsTranslationAdapter as c, ordersDomain as d, shellEn as f, useHapticCallback as g, getFluidNativeBridge as h, createMessagingTranslationAdapter as i, subscriptionsDomain as l, useThemeContext as m, SUPPORTED_LANGUAGES as n, createProfileTranslationAdapter as o, FluidThemeProvider as p, resolveLocale as r, profileDomain as s, FluidProvider as t, createOrdersTranslationAdapter as u, useNativeCapabilities as v, useAddressAutocompleteApiOptional as y };
|
|
8934
9902
|
|
|
8935
|
-
//# sourceMappingURL=FluidProvider-
|
|
9903
|
+
//# sourceMappingURL=FluidProvider-CT9kNVR5.mjs.map
|