convention_builder 1.8.0 → 1.8.4
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/module/index.js +923 -628
- package/dist/node/index.js +920 -624
- package/package.json +2 -2
package/dist/node/index.js
CHANGED
|
@@ -5,8 +5,9 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __knownSymbol = (name, symbol) =>
|
|
9
|
-
|
|
8
|
+
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
9
|
+
var __typeError = (msg) => {
|
|
10
|
+
throw TypeError(msg);
|
|
10
11
|
};
|
|
11
12
|
var __pow = Math.pow;
|
|
12
13
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -58,16 +59,11 @@ var __asyncGenerator = (__this, __arguments, generator) => {
|
|
|
58
59
|
} catch (e) {
|
|
59
60
|
no(e);
|
|
60
61
|
}
|
|
61
|
-
};
|
|
62
|
-
var method = (k) => it[k] = (x) => new Promise((yes, no) => resume(k, x, yes, no));
|
|
63
|
-
var it = {};
|
|
62
|
+
}, method = (k) => it[k] = (x) => new Promise((yes, no) => resume(k, x, yes, no)), it = {};
|
|
64
63
|
return generator = generator.apply(__this, __arguments), it[__knownSymbol("asyncIterator")] = () => it, method("next"), method("throw"), method("return"), it;
|
|
65
64
|
};
|
|
66
65
|
var __yieldStar = (value) => {
|
|
67
|
-
var obj = value[__knownSymbol("asyncIterator")];
|
|
68
|
-
var isAwait = false;
|
|
69
|
-
var method;
|
|
70
|
-
var it = {};
|
|
66
|
+
var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it = {};
|
|
71
67
|
if (obj == null) {
|
|
72
68
|
obj = value[__knownSymbol("iterator")]();
|
|
73
69
|
method = (k) => it[k] = (x) => obj[k](x);
|
|
@@ -76,8 +72,7 @@ var __yieldStar = (value) => {
|
|
|
76
72
|
method = (k) => it[k] = (v) => {
|
|
77
73
|
if (isAwait) {
|
|
78
74
|
isAwait = false;
|
|
79
|
-
if (k === "throw")
|
|
80
|
-
throw v;
|
|
75
|
+
if (k === "throw") throw v;
|
|
81
76
|
return v;
|
|
82
77
|
}
|
|
83
78
|
isAwait = true;
|
|
@@ -85,8 +80,7 @@ var __yieldStar = (value) => {
|
|
|
85
80
|
done: false,
|
|
86
81
|
value: new __await(new Promise((resolve) => {
|
|
87
82
|
var x = obj[k](v);
|
|
88
|
-
if (!(x instanceof Object))
|
|
89
|
-
throw TypeError("Object expected");
|
|
83
|
+
if (!(x instanceof Object)) __typeError("Object expected");
|
|
90
84
|
resolve(x);
|
|
91
85
|
}), 1)
|
|
92
86
|
};
|
|
@@ -96,6 +90,7 @@ var __yieldStar = (value) => {
|
|
|
96
90
|
throw x;
|
|
97
91
|
}, "return" in obj && method("return"), it;
|
|
98
92
|
};
|
|
93
|
+
var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")]) ? it.call(obj) : (obj = obj[__knownSymbol("iterator")](), it = {}, method = (key, fn) => (fn = obj[key]) && (it[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it);
|
|
99
94
|
|
|
100
95
|
// node_modules/ajv/dist/compile/codegen/code.js
|
|
101
96
|
var require_code = __commonJS({
|
|
@@ -431,43 +426,43 @@ var require_codegen = __commonJS({
|
|
|
431
426
|
var code_1 = require_code();
|
|
432
427
|
var scope_1 = require_scope();
|
|
433
428
|
var code_2 = require_code();
|
|
434
|
-
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
429
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
435
430
|
return code_2._;
|
|
436
|
-
} });
|
|
437
|
-
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
431
|
+
}, "get") });
|
|
432
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
438
433
|
return code_2.str;
|
|
439
|
-
} });
|
|
440
|
-
Object.defineProperty(exports2, "strConcat", { enumerable: true, get: function() {
|
|
434
|
+
}, "get") });
|
|
435
|
+
Object.defineProperty(exports2, "strConcat", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
441
436
|
return code_2.strConcat;
|
|
442
|
-
} });
|
|
443
|
-
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
437
|
+
}, "get") });
|
|
438
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
444
439
|
return code_2.nil;
|
|
445
|
-
} });
|
|
446
|
-
Object.defineProperty(exports2, "getProperty", { enumerable: true, get: function() {
|
|
440
|
+
}, "get") });
|
|
441
|
+
Object.defineProperty(exports2, "getProperty", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
447
442
|
return code_2.getProperty;
|
|
448
|
-
} });
|
|
449
|
-
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
443
|
+
}, "get") });
|
|
444
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
450
445
|
return code_2.stringify;
|
|
451
|
-
} });
|
|
452
|
-
Object.defineProperty(exports2, "regexpCode", { enumerable: true, get: function() {
|
|
446
|
+
}, "get") });
|
|
447
|
+
Object.defineProperty(exports2, "regexpCode", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
453
448
|
return code_2.regexpCode;
|
|
454
|
-
} });
|
|
455
|
-
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
449
|
+
}, "get") });
|
|
450
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
456
451
|
return code_2.Name;
|
|
457
|
-
} });
|
|
452
|
+
}, "get") });
|
|
458
453
|
var scope_2 = require_scope();
|
|
459
|
-
Object.defineProperty(exports2, "Scope", { enumerable: true, get: function() {
|
|
454
|
+
Object.defineProperty(exports2, "Scope", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
460
455
|
return scope_2.Scope;
|
|
461
|
-
} });
|
|
462
|
-
Object.defineProperty(exports2, "ValueScope", { enumerable: true, get: function() {
|
|
456
|
+
}, "get") });
|
|
457
|
+
Object.defineProperty(exports2, "ValueScope", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
463
458
|
return scope_2.ValueScope;
|
|
464
|
-
} });
|
|
465
|
-
Object.defineProperty(exports2, "ValueScopeName", { enumerable: true, get: function() {
|
|
459
|
+
}, "get") });
|
|
460
|
+
Object.defineProperty(exports2, "ValueScopeName", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
466
461
|
return scope_2.ValueScopeName;
|
|
467
|
-
} });
|
|
468
|
-
Object.defineProperty(exports2, "varKinds", { enumerable: true, get: function() {
|
|
462
|
+
}, "get") });
|
|
463
|
+
Object.defineProperty(exports2, "varKinds", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
469
464
|
return scope_2.varKinds;
|
|
470
|
-
} });
|
|
465
|
+
}, "get") });
|
|
471
466
|
exports2.operators = {
|
|
472
467
|
GT: new code_1._Code(">"),
|
|
473
468
|
GTE: new code_1._Code(">="),
|
|
@@ -1311,25 +1306,25 @@ var require_util = __commonJS({
|
|
|
1311
1306
|
__name(makeMergeEvaluated, "makeMergeEvaluated");
|
|
1312
1307
|
exports2.mergeEvaluated = {
|
|
1313
1308
|
props: makeMergeEvaluated({
|
|
1314
|
-
mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
|
|
1309
|
+
mergeNames: /* @__PURE__ */ __name((gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
|
|
1315
1310
|
gen.if((0, codegen_1._)`${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._)`${to} || {}`).code((0, codegen_1._)`Object.assign(${to}, ${from})`));
|
|
1316
|
-
}),
|
|
1317
|
-
mergeToName: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true`, () => {
|
|
1311
|
+
}), "mergeNames"),
|
|
1312
|
+
mergeToName: /* @__PURE__ */ __name((gen, from, to) => gen.if((0, codegen_1._)`${to} !== true`, () => {
|
|
1318
1313
|
if (from === true) {
|
|
1319
1314
|
gen.assign(to, true);
|
|
1320
1315
|
} else {
|
|
1321
1316
|
gen.assign(to, (0, codegen_1._)`${to} || {}`);
|
|
1322
1317
|
setEvaluated(gen, to, from);
|
|
1323
1318
|
}
|
|
1324
|
-
}),
|
|
1325
|
-
mergeValues: (from, to) => from === true ? true : __spreadValues(__spreadValues({}, from), to),
|
|
1319
|
+
}), "mergeToName"),
|
|
1320
|
+
mergeValues: /* @__PURE__ */ __name((from, to) => from === true ? true : __spreadValues(__spreadValues({}, from), to), "mergeValues"),
|
|
1326
1321
|
resultToName: evaluatedPropsToName
|
|
1327
1322
|
}),
|
|
1328
1323
|
items: makeMergeEvaluated({
|
|
1329
|
-
mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._)`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)),
|
|
1330
|
-
mergeToName: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._)`${to} > ${from} ? ${to} : ${from}`)),
|
|
1331
|
-
mergeValues: (from, to) => from === true ? true : Math.max(from, to),
|
|
1332
|
-
resultToName: (gen, items) => gen.var("items", items)
|
|
1324
|
+
mergeNames: /* @__PURE__ */ __name((gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => gen.assign(to, (0, codegen_1._)`${from} === true ? true : ${to} > ${from} ? ${to} : ${from}`)), "mergeNames"),
|
|
1325
|
+
mergeToName: /* @__PURE__ */ __name((gen, from, to) => gen.if((0, codegen_1._)`${to} !== true`, () => gen.assign(to, from === true ? true : (0, codegen_1._)`${to} > ${from} ? ${to} : ${from}`)), "mergeToName"),
|
|
1326
|
+
mergeValues: /* @__PURE__ */ __name((from, to) => from === true ? true : Math.max(from, to), "mergeValues"),
|
|
1327
|
+
resultToName: /* @__PURE__ */ __name((gen, items) => gen.var("items", items), "resultToName")
|
|
1333
1328
|
})
|
|
1334
1329
|
};
|
|
1335
1330
|
function evaluatedPropsToName(gen, ps) {
|
|
@@ -1426,10 +1421,10 @@ var require_errors = __commonJS({
|
|
|
1426
1421
|
var util_1 = require_util();
|
|
1427
1422
|
var names_1 = require_names();
|
|
1428
1423
|
exports2.keywordError = {
|
|
1429
|
-
message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation
|
|
1424
|
+
message: /* @__PURE__ */ __name(({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation`, "message")
|
|
1430
1425
|
};
|
|
1431
1426
|
exports2.keyword$DataError = {
|
|
1432
|
-
message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)
|
|
1427
|
+
message: /* @__PURE__ */ __name(({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`, "message")
|
|
1433
1428
|
};
|
|
1434
1429
|
function reportError(cxt, error = exports2.keywordError, errorPaths, overrideAllErrors) {
|
|
1435
1430
|
const { it } = cxt;
|
|
@@ -1829,8 +1824,8 @@ var require_dataType = __commonJS({
|
|
|
1829
1824
|
__name(checkDataTypes, "checkDataTypes");
|
|
1830
1825
|
exports2.checkDataTypes = checkDataTypes;
|
|
1831
1826
|
var typeError = {
|
|
1832
|
-
message: ({ schema }) => `must be ${schema}`,
|
|
1833
|
-
params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}
|
|
1827
|
+
message: /* @__PURE__ */ __name(({ schema }) => `must be ${schema}`, "message"),
|
|
1828
|
+
params: /* @__PURE__ */ __name(({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}`, "params")
|
|
1834
1829
|
};
|
|
1835
1830
|
function reportTypeError(it) {
|
|
1836
1831
|
const cxt = getTypeErrorContext(it);
|
|
@@ -2266,38 +2261,28 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2266
2261
|
"node_modules/fast-deep-equal/index.js"(exports2, module2) {
|
|
2267
2262
|
"use strict";
|
|
2268
2263
|
module2.exports = /* @__PURE__ */ __name(function equal(a, b) {
|
|
2269
|
-
if (a === b)
|
|
2270
|
-
return true;
|
|
2264
|
+
if (a === b) return true;
|
|
2271
2265
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
2272
|
-
if (a.constructor !== b.constructor)
|
|
2273
|
-
return false;
|
|
2266
|
+
if (a.constructor !== b.constructor) return false;
|
|
2274
2267
|
var length, i, keys;
|
|
2275
2268
|
if (Array.isArray(a)) {
|
|
2276
2269
|
length = a.length;
|
|
2277
|
-
if (length != b.length)
|
|
2278
|
-
return false;
|
|
2270
|
+
if (length != b.length) return false;
|
|
2279
2271
|
for (i = length; i-- !== 0; )
|
|
2280
|
-
if (!equal(a[i], b[i]))
|
|
2281
|
-
return false;
|
|
2272
|
+
if (!equal(a[i], b[i])) return false;
|
|
2282
2273
|
return true;
|
|
2283
2274
|
}
|
|
2284
|
-
if (a.constructor === RegExp)
|
|
2285
|
-
|
|
2286
|
-
if (a.
|
|
2287
|
-
return a.valueOf() === b.valueOf();
|
|
2288
|
-
if (a.toString !== Object.prototype.toString)
|
|
2289
|
-
return a.toString() === b.toString();
|
|
2275
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
2276
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
2277
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
2290
2278
|
keys = Object.keys(a);
|
|
2291
2279
|
length = keys.length;
|
|
2292
|
-
if (length !== Object.keys(b).length)
|
|
2293
|
-
return false;
|
|
2280
|
+
if (length !== Object.keys(b).length) return false;
|
|
2294
2281
|
for (i = length; i-- !== 0; )
|
|
2295
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i]))
|
|
2296
|
-
return false;
|
|
2282
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
2297
2283
|
for (i = length; i-- !== 0; ) {
|
|
2298
2284
|
var key = keys[i];
|
|
2299
|
-
if (!equal(a[key], b[key]))
|
|
2300
|
-
return false;
|
|
2285
|
+
if (!equal(a[key], b[key])) return false;
|
|
2301
2286
|
}
|
|
2302
2287
|
return true;
|
|
2303
2288
|
}
|
|
@@ -3480,19 +3465,16 @@ var require_uri_all = __commonJS({
|
|
|
3480
3465
|
try {
|
|
3481
3466
|
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
3482
3467
|
_arr.push(_s.value);
|
|
3483
|
-
if (i && _arr.length === i)
|
|
3484
|
-
break;
|
|
3468
|
+
if (i && _arr.length === i) break;
|
|
3485
3469
|
}
|
|
3486
3470
|
} catch (err) {
|
|
3487
3471
|
_d = true;
|
|
3488
3472
|
_e = err;
|
|
3489
3473
|
} finally {
|
|
3490
3474
|
try {
|
|
3491
|
-
if (!_n && _i["return"])
|
|
3492
|
-
_i["return"]();
|
|
3475
|
+
if (!_n && _i["return"]) _i["return"]();
|
|
3493
3476
|
} finally {
|
|
3494
|
-
if (_d)
|
|
3495
|
-
throw _e;
|
|
3477
|
+
if (_d) throw _e;
|
|
3496
3478
|
}
|
|
3497
3479
|
}
|
|
3498
3480
|
return _arr;
|
|
@@ -3510,8 +3492,7 @@ var require_uri_all = __commonJS({
|
|
|
3510
3492
|
}();
|
|
3511
3493
|
var toConsumableArray = /* @__PURE__ */ __name(function(arr) {
|
|
3512
3494
|
if (Array.isArray(arr)) {
|
|
3513
|
-
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
|
|
3514
|
-
arr2[i] = arr[i];
|
|
3495
|
+
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
3515
3496
|
return arr2;
|
|
3516
3497
|
} else {
|
|
3517
3498
|
return Array.from(arr);
|
|
@@ -3825,14 +3806,10 @@ var require_uri_all = __commonJS({
|
|
|
3825
3806
|
function pctEncChar(chr) {
|
|
3826
3807
|
var c = chr.charCodeAt(0);
|
|
3827
3808
|
var e = void 0;
|
|
3828
|
-
if (c < 16)
|
|
3829
|
-
|
|
3830
|
-
else if (c < 128)
|
|
3831
|
-
|
|
3832
|
-
else if (c < 2048)
|
|
3833
|
-
e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
3834
|
-
else
|
|
3835
|
-
e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
3809
|
+
if (c < 16) e = "%0" + c.toString(16).toUpperCase();
|
|
3810
|
+
else if (c < 128) e = "%" + c.toString(16).toUpperCase();
|
|
3811
|
+
else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
3812
|
+
else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
3836
3813
|
return e;
|
|
3837
3814
|
}
|
|
3838
3815
|
__name(pctEncChar, "pctEncChar");
|
|
@@ -3876,18 +3853,12 @@ var require_uri_all = __commonJS({
|
|
|
3876
3853
|
return !decStr.match(protocol.UNRESERVED) ? str : decStr;
|
|
3877
3854
|
}
|
|
3878
3855
|
__name(decodeUnreserved2, "decodeUnreserved");
|
|
3879
|
-
if (components.scheme)
|
|
3880
|
-
|
|
3881
|
-
if (components.
|
|
3882
|
-
|
|
3883
|
-
if (components.
|
|
3884
|
-
|
|
3885
|
-
if (components.path !== void 0)
|
|
3886
|
-
components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3887
|
-
if (components.query !== void 0)
|
|
3888
|
-
components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3889
|
-
if (components.fragment !== void 0)
|
|
3890
|
-
components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3856
|
+
if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_SCHEME, "");
|
|
3857
|
+
if (components.userinfo !== void 0) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3858
|
+
if (components.host !== void 0) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3859
|
+
if (components.path !== void 0) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3860
|
+
if (components.query !== void 0) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3861
|
+
if (components.fragment !== void 0) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
3891
3862
|
return components;
|
|
3892
3863
|
}
|
|
3893
3864
|
__name(_normalizeComponentEncoding, "_normalizeComponentEncoding");
|
|
@@ -3959,8 +3930,7 @@ var require_uri_all = __commonJS({
|
|
|
3959
3930
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3960
3931
|
var components = {};
|
|
3961
3932
|
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
3962
|
-
if (options.reference === "suffix")
|
|
3963
|
-
uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
|
|
3933
|
+
if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
|
|
3964
3934
|
var matches = uriString.match(URI_PARSE);
|
|
3965
3935
|
if (matches) {
|
|
3966
3936
|
if (NO_MATCH_IS_UNDEFINED) {
|
|
@@ -4077,8 +4047,7 @@ var require_uri_all = __commonJS({
|
|
|
4077
4047
|
var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
4078
4048
|
var uriTokens = [];
|
|
4079
4049
|
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
4080
|
-
if (schemeHandler && schemeHandler.serialize)
|
|
4081
|
-
schemeHandler.serialize(components, options);
|
|
4050
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
|
|
4082
4051
|
if (components.host) {
|
|
4083
4052
|
if (protocol.IPV6ADDRESS.test(components.host)) {
|
|
4084
4053
|
} else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
|
|
@@ -4332,8 +4301,7 @@ var require_uri_all = __commonJS({
|
|
|
4332
4301
|
break;
|
|
4333
4302
|
}
|
|
4334
4303
|
}
|
|
4335
|
-
if (unknownHeaders)
|
|
4336
|
-
mailtoComponents.headers = headers;
|
|
4304
|
+
if (unknownHeaders) mailtoComponents.headers = headers;
|
|
4337
4305
|
}
|
|
4338
4306
|
mailtoComponents.query = void 0;
|
|
4339
4307
|
for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
|
|
@@ -4371,10 +4339,8 @@ var require_uri_all = __commonJS({
|
|
|
4371
4339
|
components.path = to.join(",");
|
|
4372
4340
|
}
|
|
4373
4341
|
var headers = mailtoComponents.headers = mailtoComponents.headers || {};
|
|
4374
|
-
if (mailtoComponents.subject)
|
|
4375
|
-
|
|
4376
|
-
if (mailtoComponents.body)
|
|
4377
|
-
headers["body"] = mailtoComponents.body;
|
|
4342
|
+
if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
|
|
4343
|
+
if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
|
|
4378
4344
|
var fields = [];
|
|
4379
4345
|
for (var name in headers) {
|
|
4380
4346
|
if (headers[name] !== O[name]) {
|
|
@@ -4484,28 +4450,28 @@ var require_core = __commonJS({
|
|
|
4484
4450
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4485
4451
|
exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
|
|
4486
4452
|
var validate_1 = require_validate();
|
|
4487
|
-
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: function() {
|
|
4453
|
+
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4488
4454
|
return validate_1.KeywordCxt;
|
|
4489
|
-
} });
|
|
4455
|
+
}, "get") });
|
|
4490
4456
|
var codegen_1 = require_codegen();
|
|
4491
|
-
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
4457
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4492
4458
|
return codegen_1._;
|
|
4493
|
-
} });
|
|
4494
|
-
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
4459
|
+
}, "get") });
|
|
4460
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4495
4461
|
return codegen_1.str;
|
|
4496
|
-
} });
|
|
4497
|
-
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
4462
|
+
}, "get") });
|
|
4463
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4498
4464
|
return codegen_1.stringify;
|
|
4499
|
-
} });
|
|
4500
|
-
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
4465
|
+
}, "get") });
|
|
4466
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4501
4467
|
return codegen_1.nil;
|
|
4502
|
-
} });
|
|
4503
|
-
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
4468
|
+
}, "get") });
|
|
4469
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4504
4470
|
return codegen_1.Name;
|
|
4505
|
-
} });
|
|
4506
|
-
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: function() {
|
|
4471
|
+
}, "get") });
|
|
4472
|
+
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4507
4473
|
return codegen_1.CodeGen;
|
|
4508
|
-
} });
|
|
4474
|
+
}, "get") });
|
|
4509
4475
|
var validation_error_1 = require_validation_error();
|
|
4510
4476
|
var ref_error_1 = require_ref_error();
|
|
4511
4477
|
var rules_1 = require_rules();
|
|
@@ -5298,8 +5264,8 @@ var require_limitNumber = __commonJS({
|
|
|
5298
5264
|
exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }
|
|
5299
5265
|
};
|
|
5300
5266
|
var error = {
|
|
5301
|
-
message: ({ keyword, schemaCode }) => (0, codegen_1.str)`must be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
5302
|
-
params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}
|
|
5267
|
+
message: /* @__PURE__ */ __name(({ keyword, schemaCode }) => (0, codegen_1.str)`must be ${KWDs[keyword].okStr} ${schemaCode}`, "message"),
|
|
5268
|
+
params: /* @__PURE__ */ __name(({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`, "params")
|
|
5303
5269
|
};
|
|
5304
5270
|
var def = {
|
|
5305
5271
|
keyword: Object.keys(KWDs),
|
|
@@ -5323,8 +5289,8 @@ var require_multipleOf = __commonJS({
|
|
|
5323
5289
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5324
5290
|
var codegen_1 = require_codegen();
|
|
5325
5291
|
var error = {
|
|
5326
|
-
message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
|
|
5327
|
-
params: ({ schemaCode }) => (0, codegen_1._)`{multipleOf: ${schemaCode}}
|
|
5292
|
+
message: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`, "message"),
|
|
5293
|
+
params: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1._)`{multipleOf: ${schemaCode}}`, "params")
|
|
5328
5294
|
};
|
|
5329
5295
|
var def = {
|
|
5330
5296
|
keyword: "multipleOf",
|
|
@@ -5384,7 +5350,7 @@ var require_limitLength = __commonJS({
|
|
|
5384
5350
|
const comp = keyword === "maxLength" ? "more" : "fewer";
|
|
5385
5351
|
return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} characters`;
|
|
5386
5352
|
},
|
|
5387
|
-
params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}
|
|
5353
|
+
params: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}`, "params")
|
|
5388
5354
|
};
|
|
5389
5355
|
var def = {
|
|
5390
5356
|
keyword: ["maxLength", "minLength"],
|
|
@@ -5411,8 +5377,8 @@ var require_pattern = __commonJS({
|
|
|
5411
5377
|
var code_1 = require_code2();
|
|
5412
5378
|
var codegen_1 = require_codegen();
|
|
5413
5379
|
var error = {
|
|
5414
|
-
message: ({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`,
|
|
5415
|
-
params: ({ schemaCode }) => (0, codegen_1._)`{pattern: ${schemaCode}}
|
|
5380
|
+
message: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`, "message"),
|
|
5381
|
+
params: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1._)`{pattern: ${schemaCode}}`, "params")
|
|
5416
5382
|
};
|
|
5417
5383
|
var def = {
|
|
5418
5384
|
keyword: "pattern",
|
|
@@ -5442,7 +5408,7 @@ var require_limitProperties = __commonJS({
|
|
|
5442
5408
|
const comp = keyword === "maxProperties" ? "more" : "fewer";
|
|
5443
5409
|
return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} properties`;
|
|
5444
5410
|
},
|
|
5445
|
-
params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}
|
|
5411
|
+
params: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}`, "params")
|
|
5446
5412
|
};
|
|
5447
5413
|
var def = {
|
|
5448
5414
|
keyword: ["maxProperties", "minProperties"],
|
|
@@ -5469,8 +5435,8 @@ var require_required = __commonJS({
|
|
|
5469
5435
|
var codegen_1 = require_codegen();
|
|
5470
5436
|
var util_1 = require_util();
|
|
5471
5437
|
var error = {
|
|
5472
|
-
message: ({ params: { missingProperty } }) => (0, codegen_1.str)`must have required property '${missingProperty}'`,
|
|
5473
|
-
params: ({ params: { missingProperty } }) => (0, codegen_1._)`{missingProperty: ${missingProperty}}
|
|
5438
|
+
message: /* @__PURE__ */ __name(({ params: { missingProperty } }) => (0, codegen_1.str)`must have required property '${missingProperty}'`, "message"),
|
|
5439
|
+
params: /* @__PURE__ */ __name(({ params: { missingProperty } }) => (0, codegen_1._)`{missingProperty: ${missingProperty}}`, "params")
|
|
5474
5440
|
};
|
|
5475
5441
|
var def = {
|
|
5476
5442
|
keyword: "required",
|
|
@@ -5557,7 +5523,7 @@ var require_limitItems = __commonJS({
|
|
|
5557
5523
|
const comp = keyword === "maxItems" ? "more" : "fewer";
|
|
5558
5524
|
return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} items`;
|
|
5559
5525
|
},
|
|
5560
|
-
params: ({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}
|
|
5526
|
+
params: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1._)`{limit: ${schemaCode}}`, "params")
|
|
5561
5527
|
};
|
|
5562
5528
|
var def = {
|
|
5563
5529
|
keyword: ["maxItems", "minItems"],
|
|
@@ -5596,8 +5562,8 @@ var require_uniqueItems = __commonJS({
|
|
|
5596
5562
|
var util_1 = require_util();
|
|
5597
5563
|
var equal_1 = require_equal();
|
|
5598
5564
|
var error = {
|
|
5599
|
-
message: ({ params: { i, j } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,
|
|
5600
|
-
params: ({ params: { i, j } }) => (0, codegen_1._)`{i: ${i}, j: ${j}}
|
|
5565
|
+
message: /* @__PURE__ */ __name(({ params: { i, j } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`, "message"),
|
|
5566
|
+
params: /* @__PURE__ */ __name(({ params: { i, j } }) => (0, codegen_1._)`{i: ${i}, j: ${j}}`, "params")
|
|
5601
5567
|
};
|
|
5602
5568
|
var def = {
|
|
5603
5569
|
keyword: "uniqueItems",
|
|
@@ -5667,7 +5633,7 @@ var require_const = __commonJS({
|
|
|
5667
5633
|
var equal_1 = require_equal();
|
|
5668
5634
|
var error = {
|
|
5669
5635
|
message: "must be equal to constant",
|
|
5670
|
-
params: ({ schemaCode }) => (0, codegen_1._)`{allowedValue: ${schemaCode}}
|
|
5636
|
+
params: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1._)`{allowedValue: ${schemaCode}}`, "params")
|
|
5671
5637
|
};
|
|
5672
5638
|
var def = {
|
|
5673
5639
|
keyword: "const",
|
|
@@ -5696,7 +5662,7 @@ var require_enum = __commonJS({
|
|
|
5696
5662
|
var equal_1 = require_equal();
|
|
5697
5663
|
var error = {
|
|
5698
5664
|
message: "must be equal to one of the allowed values",
|
|
5699
|
-
params: ({ schemaCode }) => (0, codegen_1._)`{allowedValues: ${schemaCode}}
|
|
5665
|
+
params: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1._)`{allowedValues: ${schemaCode}}`, "params")
|
|
5700
5666
|
};
|
|
5701
5667
|
var def = {
|
|
5702
5668
|
keyword: "enum",
|
|
@@ -5784,8 +5750,8 @@ var require_additionalItems = __commonJS({
|
|
|
5784
5750
|
var codegen_1 = require_codegen();
|
|
5785
5751
|
var util_1 = require_util();
|
|
5786
5752
|
var error = {
|
|
5787
|
-
message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
|
|
5788
|
-
params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}
|
|
5753
|
+
message: /* @__PURE__ */ __name(({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`, "message"),
|
|
5754
|
+
params: /* @__PURE__ */ __name(({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`, "params")
|
|
5789
5755
|
};
|
|
5790
5756
|
var def = {
|
|
5791
5757
|
keyword: "additionalItems",
|
|
@@ -5900,7 +5866,7 @@ var require_prefixItems = __commonJS({
|
|
|
5900
5866
|
type: "array",
|
|
5901
5867
|
schemaType: ["array"],
|
|
5902
5868
|
before: "uniqueItems",
|
|
5903
|
-
code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
|
|
5869
|
+
code: /* @__PURE__ */ __name((cxt) => (0, items_1.validateTuple)(cxt, "items"), "code")
|
|
5904
5870
|
};
|
|
5905
5871
|
exports2.default = def;
|
|
5906
5872
|
}
|
|
@@ -5916,8 +5882,8 @@ var require_items2020 = __commonJS({
|
|
|
5916
5882
|
var code_1 = require_code2();
|
|
5917
5883
|
var additionalItems_1 = require_additionalItems();
|
|
5918
5884
|
var error = {
|
|
5919
|
-
message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
|
|
5920
|
-
params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}
|
|
5885
|
+
message: /* @__PURE__ */ __name(({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`, "message"),
|
|
5886
|
+
params: /* @__PURE__ */ __name(({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`, "params")
|
|
5921
5887
|
};
|
|
5922
5888
|
var def = {
|
|
5923
5889
|
keyword: "items",
|
|
@@ -5949,8 +5915,8 @@ var require_contains = __commonJS({
|
|
|
5949
5915
|
var codegen_1 = require_codegen();
|
|
5950
5916
|
var util_1 = require_util();
|
|
5951
5917
|
var error = {
|
|
5952
|
-
message: ({ params: { min, max } }) => max === void 0 ? (0, codegen_1.str)`must contain at least ${min} valid item(s)` : (0, codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`,
|
|
5953
|
-
params: ({ params: { min, max } }) => max === void 0 ? (0, codegen_1._)`{minContains: ${min}}` : (0, codegen_1._)`{minContains: ${min}, maxContains: ${max}}
|
|
5918
|
+
message: /* @__PURE__ */ __name(({ params: { min, max } }) => max === void 0 ? (0, codegen_1.str)`must contain at least ${min} valid item(s)` : (0, codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`, "message"),
|
|
5919
|
+
params: /* @__PURE__ */ __name(({ params: { min, max } }) => max === void 0 ? (0, codegen_1._)`{minContains: ${min}}` : (0, codegen_1._)`{minContains: ${min}, maxContains: ${max}}`, "params")
|
|
5954
5920
|
};
|
|
5955
5921
|
var def = {
|
|
5956
5922
|
keyword: "contains",
|
|
@@ -6048,14 +6014,14 @@ var require_dependencies = __commonJS({
|
|
|
6048
6014
|
var util_1 = require_util();
|
|
6049
6015
|
var code_1 = require_code2();
|
|
6050
6016
|
exports2.error = {
|
|
6051
|
-
message: ({ params: { property, depsCount, deps } }) => {
|
|
6017
|
+
message: /* @__PURE__ */ __name(({ params: { property, depsCount, deps } }) => {
|
|
6052
6018
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
6053
6019
|
return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
|
|
6054
|
-
},
|
|
6055
|
-
params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._)`{property: ${property},
|
|
6020
|
+
}, "message"),
|
|
6021
|
+
params: /* @__PURE__ */ __name(({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._)`{property: ${property},
|
|
6056
6022
|
missingProperty: ${missingProperty},
|
|
6057
6023
|
depsCount: ${depsCount},
|
|
6058
|
-
deps: ${deps}}
|
|
6024
|
+
deps: ${deps}}`, "params")
|
|
6059
6025
|
// TODO change to reference
|
|
6060
6026
|
};
|
|
6061
6027
|
var def = {
|
|
@@ -6144,7 +6110,7 @@ var require_propertyNames = __commonJS({
|
|
|
6144
6110
|
var util_1 = require_util();
|
|
6145
6111
|
var error = {
|
|
6146
6112
|
message: "property name must be valid",
|
|
6147
|
-
params: ({ params }) => (0, codegen_1._)`{propertyName: ${params.propertyName}}
|
|
6113
|
+
params: /* @__PURE__ */ __name(({ params }) => (0, codegen_1._)`{propertyName: ${params.propertyName}}`, "params")
|
|
6148
6114
|
};
|
|
6149
6115
|
var def = {
|
|
6150
6116
|
keyword: "propertyNames",
|
|
@@ -6189,7 +6155,7 @@ var require_additionalProperties = __commonJS({
|
|
|
6189
6155
|
var util_1 = require_util();
|
|
6190
6156
|
var error = {
|
|
6191
6157
|
message: "must NOT have additional properties",
|
|
6192
|
-
params: ({ params }) => (0, codegen_1._)`{additionalProperty: ${params.additionalProperty}}
|
|
6158
|
+
params: /* @__PURE__ */ __name(({ params }) => (0, codegen_1._)`{additionalProperty: ${params.additionalProperty}}`, "params")
|
|
6193
6159
|
};
|
|
6194
6160
|
var def = {
|
|
6195
6161
|
keyword: "additionalProperties",
|
|
@@ -6483,7 +6449,7 @@ var require_oneOf = __commonJS({
|
|
|
6483
6449
|
var util_1 = require_util();
|
|
6484
6450
|
var error = {
|
|
6485
6451
|
message: "must match exactly one schema in oneOf",
|
|
6486
|
-
params: ({ params }) => (0, codegen_1._)`{passingSchemas: ${params.passing}}
|
|
6452
|
+
params: /* @__PURE__ */ __name(({ params }) => (0, codegen_1._)`{passingSchemas: ${params.passing}}`, "params")
|
|
6487
6453
|
};
|
|
6488
6454
|
var def = {
|
|
6489
6455
|
keyword: "oneOf",
|
|
@@ -6568,8 +6534,8 @@ var require_if = __commonJS({
|
|
|
6568
6534
|
var codegen_1 = require_codegen();
|
|
6569
6535
|
var util_1 = require_util();
|
|
6570
6536
|
var error = {
|
|
6571
|
-
message: ({ params }) => (0, codegen_1.str)`must match "${params.ifClause}" schema`,
|
|
6572
|
-
params: ({ params }) => (0, codegen_1._)`{failingKeyword: ${params.ifClause}}
|
|
6537
|
+
message: /* @__PURE__ */ __name(({ params }) => (0, codegen_1.str)`must match "${params.ifClause}" schema`, "message"),
|
|
6538
|
+
params: /* @__PURE__ */ __name(({ params }) => (0, codegen_1._)`{failingKeyword: ${params.ifClause}}`, "params")
|
|
6573
6539
|
};
|
|
6574
6540
|
var def = {
|
|
6575
6541
|
keyword: "if",
|
|
@@ -6712,7 +6678,7 @@ var require_dynamicAnchor = __commonJS({
|
|
|
6712
6678
|
var def = {
|
|
6713
6679
|
keyword: "$dynamicAnchor",
|
|
6714
6680
|
schemaType: "string",
|
|
6715
|
-
code: (cxt) => dynamicAnchor(cxt, cxt.schema)
|
|
6681
|
+
code: /* @__PURE__ */ __name((cxt) => dynamicAnchor(cxt, cxt.schema), "code")
|
|
6716
6682
|
};
|
|
6717
6683
|
function dynamicAnchor(cxt, anchor) {
|
|
6718
6684
|
const { gen, it } = cxt;
|
|
@@ -6748,7 +6714,7 @@ var require_dynamicRef = __commonJS({
|
|
|
6748
6714
|
var def = {
|
|
6749
6715
|
keyword: "$dynamicRef",
|
|
6750
6716
|
schemaType: "string",
|
|
6751
|
-
code: (cxt) => dynamicRef(cxt, cxt.schema)
|
|
6717
|
+
code: /* @__PURE__ */ __name((cxt) => dynamicRef(cxt, cxt.schema), "code")
|
|
6752
6718
|
};
|
|
6753
6719
|
function dynamicRef(cxt, ref) {
|
|
6754
6720
|
const { gen, keyword, it } = cxt;
|
|
@@ -6815,7 +6781,7 @@ var require_recursiveRef = __commonJS({
|
|
|
6815
6781
|
var def = {
|
|
6816
6782
|
keyword: "$recursiveRef",
|
|
6817
6783
|
schemaType: "string",
|
|
6818
|
-
code: (cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema)
|
|
6784
|
+
code: /* @__PURE__ */ __name((cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema), "code")
|
|
6819
6785
|
};
|
|
6820
6786
|
exports2.default = def;
|
|
6821
6787
|
}
|
|
@@ -6846,7 +6812,7 @@ var require_dependentRequired = __commonJS({
|
|
|
6846
6812
|
type: "object",
|
|
6847
6813
|
schemaType: "object",
|
|
6848
6814
|
error: dependencies_1.error,
|
|
6849
|
-
code: (cxt) => (0, dependencies_1.validatePropertyDeps)(cxt)
|
|
6815
|
+
code: /* @__PURE__ */ __name((cxt) => (0, dependencies_1.validatePropertyDeps)(cxt), "code")
|
|
6850
6816
|
};
|
|
6851
6817
|
exports2.default = def;
|
|
6852
6818
|
}
|
|
@@ -6862,7 +6828,7 @@ var require_dependentSchemas = __commonJS({
|
|
|
6862
6828
|
keyword: "dependentSchemas",
|
|
6863
6829
|
type: "object",
|
|
6864
6830
|
schemaType: "object",
|
|
6865
|
-
code: (cxt) => (0, dependencies_1.validateSchemaDeps)(cxt)
|
|
6831
|
+
code: /* @__PURE__ */ __name((cxt) => (0, dependencies_1.validateSchemaDeps)(cxt), "code")
|
|
6866
6832
|
};
|
|
6867
6833
|
exports2.default = def;
|
|
6868
6834
|
}
|
|
@@ -6911,7 +6877,7 @@ var require_unevaluatedProperties = __commonJS({
|
|
|
6911
6877
|
var names_1 = require_names();
|
|
6912
6878
|
var error = {
|
|
6913
6879
|
message: "must NOT have unevaluated properties",
|
|
6914
|
-
params: ({ params }) => (0, codegen_1._)`{unevaluatedProperty: ${params.unevaluatedProperty}}
|
|
6880
|
+
params: /* @__PURE__ */ __name(({ params }) => (0, codegen_1._)`{unevaluatedProperty: ${params.unevaluatedProperty}}`, "params")
|
|
6915
6881
|
};
|
|
6916
6882
|
var def = {
|
|
6917
6883
|
keyword: "unevaluatedProperties",
|
|
@@ -6978,8 +6944,8 @@ var require_unevaluatedItems = __commonJS({
|
|
|
6978
6944
|
var codegen_1 = require_codegen();
|
|
6979
6945
|
var util_1 = require_util();
|
|
6980
6946
|
var error = {
|
|
6981
|
-
message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
|
|
6982
|
-
params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}
|
|
6947
|
+
message: /* @__PURE__ */ __name(({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`, "message"),
|
|
6948
|
+
params: /* @__PURE__ */ __name(({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`, "params")
|
|
6983
6949
|
};
|
|
6984
6950
|
var def = {
|
|
6985
6951
|
keyword: "unevaluatedItems",
|
|
@@ -7034,8 +7000,8 @@ var require_format = __commonJS({
|
|
|
7034
7000
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7035
7001
|
var codegen_1 = require_codegen();
|
|
7036
7002
|
var error = {
|
|
7037
|
-
message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
|
|
7038
|
-
params: ({ schemaCode }) => (0, codegen_1._)`{format: ${schemaCode}}
|
|
7003
|
+
message: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`, "message"),
|
|
7004
|
+
params: /* @__PURE__ */ __name(({ schemaCode }) => (0, codegen_1._)`{format: ${schemaCode}}`, "params")
|
|
7039
7005
|
};
|
|
7040
7006
|
var def = {
|
|
7041
7007
|
keyword: "format",
|
|
@@ -7211,8 +7177,8 @@ var require_discriminator = __commonJS({
|
|
|
7211
7177
|
var compile_1 = require_compile();
|
|
7212
7178
|
var util_1 = require_util();
|
|
7213
7179
|
var error = {
|
|
7214
|
-
message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
|
|
7215
|
-
params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._)`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}
|
|
7180
|
+
message: /* @__PURE__ */ __name(({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`, "message"),
|
|
7181
|
+
params: /* @__PURE__ */ __name(({ params: { discrError, tag, tagName } }) => (0, codegen_1._)`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`, "params")
|
|
7216
7182
|
};
|
|
7217
7183
|
var def = {
|
|
7218
7184
|
keyword: "discriminator",
|
|
@@ -7753,36 +7719,36 @@ var require__ = __commonJS({
|
|
|
7753
7719
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
7754
7720
|
exports2.default = Ajv2020;
|
|
7755
7721
|
var validate_1 = require_validate();
|
|
7756
|
-
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: function() {
|
|
7722
|
+
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7757
7723
|
return validate_1.KeywordCxt;
|
|
7758
|
-
} });
|
|
7724
|
+
}, "get") });
|
|
7759
7725
|
var codegen_1 = require_codegen();
|
|
7760
|
-
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
7726
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7761
7727
|
return codegen_1._;
|
|
7762
|
-
} });
|
|
7763
|
-
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
7728
|
+
}, "get") });
|
|
7729
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7764
7730
|
return codegen_1.str;
|
|
7765
|
-
} });
|
|
7766
|
-
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
7731
|
+
}, "get") });
|
|
7732
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7767
7733
|
return codegen_1.stringify;
|
|
7768
|
-
} });
|
|
7769
|
-
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
7734
|
+
}, "get") });
|
|
7735
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7770
7736
|
return codegen_1.nil;
|
|
7771
|
-
} });
|
|
7772
|
-
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
7737
|
+
}, "get") });
|
|
7738
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7773
7739
|
return codegen_1.Name;
|
|
7774
|
-
} });
|
|
7775
|
-
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: function() {
|
|
7740
|
+
}, "get") });
|
|
7741
|
+
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7776
7742
|
return codegen_1.CodeGen;
|
|
7777
|
-
} });
|
|
7743
|
+
}, "get") });
|
|
7778
7744
|
var validation_error_1 = require_validation_error();
|
|
7779
|
-
Object.defineProperty(exports2, "ValidationError", { enumerable: true, get: function() {
|
|
7745
|
+
Object.defineProperty(exports2, "ValidationError", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7780
7746
|
return validation_error_1.default;
|
|
7781
|
-
} });
|
|
7747
|
+
}, "get") });
|
|
7782
7748
|
var ref_error_1 = require_ref_error();
|
|
7783
|
-
Object.defineProperty(exports2, "MissingRefError", { enumerable: true, get: function() {
|
|
7749
|
+
Object.defineProperty(exports2, "MissingRefError", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
7784
7750
|
return ref_error_1.default;
|
|
7785
|
-
} });
|
|
7751
|
+
}, "get") });
|
|
7786
7752
|
}
|
|
7787
7753
|
});
|
|
7788
7754
|
|
|
@@ -8182,36 +8148,36 @@ var require_ajv = __commonJS({
|
|
|
8182
8148
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8183
8149
|
exports2.default = Ajv;
|
|
8184
8150
|
var validate_1 = require_validate();
|
|
8185
|
-
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: function() {
|
|
8151
|
+
Object.defineProperty(exports2, "KeywordCxt", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8186
8152
|
return validate_1.KeywordCxt;
|
|
8187
|
-
} });
|
|
8153
|
+
}, "get") });
|
|
8188
8154
|
var codegen_1 = require_codegen();
|
|
8189
|
-
Object.defineProperty(exports2, "_", { enumerable: true, get: function() {
|
|
8155
|
+
Object.defineProperty(exports2, "_", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8190
8156
|
return codegen_1._;
|
|
8191
|
-
} });
|
|
8192
|
-
Object.defineProperty(exports2, "str", { enumerable: true, get: function() {
|
|
8157
|
+
}, "get") });
|
|
8158
|
+
Object.defineProperty(exports2, "str", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8193
8159
|
return codegen_1.str;
|
|
8194
|
-
} });
|
|
8195
|
-
Object.defineProperty(exports2, "stringify", { enumerable: true, get: function() {
|
|
8160
|
+
}, "get") });
|
|
8161
|
+
Object.defineProperty(exports2, "stringify", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8196
8162
|
return codegen_1.stringify;
|
|
8197
|
-
} });
|
|
8198
|
-
Object.defineProperty(exports2, "nil", { enumerable: true, get: function() {
|
|
8163
|
+
}, "get") });
|
|
8164
|
+
Object.defineProperty(exports2, "nil", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8199
8165
|
return codegen_1.nil;
|
|
8200
|
-
} });
|
|
8201
|
-
Object.defineProperty(exports2, "Name", { enumerable: true, get: function() {
|
|
8166
|
+
}, "get") });
|
|
8167
|
+
Object.defineProperty(exports2, "Name", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8202
8168
|
return codegen_1.Name;
|
|
8203
|
-
} });
|
|
8204
|
-
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: function() {
|
|
8169
|
+
}, "get") });
|
|
8170
|
+
Object.defineProperty(exports2, "CodeGen", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8205
8171
|
return codegen_1.CodeGen;
|
|
8206
|
-
} });
|
|
8172
|
+
}, "get") });
|
|
8207
8173
|
var validation_error_1 = require_validation_error();
|
|
8208
|
-
Object.defineProperty(exports2, "ValidationError", { enumerable: true, get: function() {
|
|
8174
|
+
Object.defineProperty(exports2, "ValidationError", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8209
8175
|
return validation_error_1.default;
|
|
8210
|
-
} });
|
|
8176
|
+
}, "get") });
|
|
8211
8177
|
var ref_error_1 = require_ref_error();
|
|
8212
|
-
Object.defineProperty(exports2, "MissingRefError", { enumerable: true, get: function() {
|
|
8178
|
+
Object.defineProperty(exports2, "MissingRefError", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
8213
8179
|
return ref_error_1.default;
|
|
8214
|
-
} });
|
|
8180
|
+
}, "get") });
|
|
8215
8181
|
}
|
|
8216
8182
|
});
|
|
8217
8183
|
|
|
@@ -8231,8 +8197,8 @@ var require_limit = __commonJS({
|
|
|
8231
8197
|
formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }
|
|
8232
8198
|
};
|
|
8233
8199
|
var error = {
|
|
8234
|
-
message: ({ keyword, schemaCode }) => codegen_1.str`should be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
8235
|
-
params: ({ keyword, schemaCode }) => codegen_1._`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}
|
|
8200
|
+
message: /* @__PURE__ */ __name(({ keyword, schemaCode }) => codegen_1.str`should be ${KWDs[keyword].okStr} ${schemaCode}`, "message"),
|
|
8201
|
+
params: /* @__PURE__ */ __name(({ keyword, schemaCode }) => codegen_1._`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`, "params")
|
|
8236
8202
|
};
|
|
8237
8203
|
exports2.formatLimitDefinition = {
|
|
8238
8204
|
keyword: Object.keys(KWDs),
|
|
@@ -9368,8 +9334,7 @@ var require_papaparse = __commonJS({
|
|
|
9368
9334
|
if (typeof _config.header === "boolean")
|
|
9369
9335
|
_writeHeader = _config.header;
|
|
9370
9336
|
if (Array.isArray(_config.columns)) {
|
|
9371
|
-
if (_config.columns.length === 0)
|
|
9372
|
-
throw new Error("Option columns is empty");
|
|
9337
|
+
if (_config.columns.length === 0) throw new Error("Option columns is empty");
|
|
9373
9338
|
_columns = _config.columns;
|
|
9374
9339
|
}
|
|
9375
9340
|
if (_config.escapeChar !== void 0) {
|
|
@@ -9675,8 +9640,7 @@ var require_papaparse = __commonJS({
|
|
|
9675
9640
|
return this._nextChunk();
|
|
9676
9641
|
};
|
|
9677
9642
|
this._nextChunk = function() {
|
|
9678
|
-
if (this._finished)
|
|
9679
|
-
return;
|
|
9643
|
+
if (this._finished) return;
|
|
9680
9644
|
var size = this._config.chunkSize;
|
|
9681
9645
|
var chunk;
|
|
9682
9646
|
if (size) {
|
|
@@ -10674,9 +10638,23 @@ var require_convention_builder = __commonJS({
|
|
|
10674
10638
|
* @param {} attribute
|
|
10675
10639
|
*/
|
|
10676
10640
|
cleanGenericSection({ attribute }) {
|
|
10677
|
-
|
|
10641
|
+
let isObject = attribute.match(/\./);
|
|
10678
10642
|
this.unmodifiedAttributes.add(attribute);
|
|
10679
10643
|
this.modifiedAttributes.delete(attribute);
|
|
10644
|
+
if (isObject) {
|
|
10645
|
+
bury(this.overlay.properties.attributes.properties, attribute.replace(".value", ""), void 0, false);
|
|
10646
|
+
let firstLevel = attribute.split(/\./)[0];
|
|
10647
|
+
let siblingModifications = Array.from(this.modifiedAttributes).filter((attr) => attr != attribute).filter((attr) => attr.includes(`${firstLevel}.`));
|
|
10648
|
+
let isOnlyModification = siblingModifications.length == 0;
|
|
10649
|
+
console.log(`${attribute} is only modification? ${isOnlyModification}, there are ${siblingModifications.join(", ")}`);
|
|
10650
|
+
if (isOnlyModification) {
|
|
10651
|
+
delete this.overlay.properties.attributes.properties[firstLevel];
|
|
10652
|
+
}
|
|
10653
|
+
;
|
|
10654
|
+
} else {
|
|
10655
|
+
delete this.overlay.properties.attributes.properties[attribute];
|
|
10656
|
+
}
|
|
10657
|
+
;
|
|
10680
10658
|
this.updateSchema();
|
|
10681
10659
|
}
|
|
10682
10660
|
/**
|
|
@@ -10910,6 +10888,9 @@ var require_convention_builder = __commonJS({
|
|
|
10910
10888
|
let overlayNames = Object.keys(overlays);
|
|
10911
10889
|
this.overlays = {};
|
|
10912
10890
|
overlayNames.forEach((ovrl) => {
|
|
10891
|
+
overlays[ovrl].baseSchemataFolder = this.baseSchemataFolder;
|
|
10892
|
+
delete overlays[ovrl].baseSchema;
|
|
10893
|
+
delete overlays[ovrl].schema;
|
|
10913
10894
|
this.overlays[ovrl] = new SchemaOverlay2(overlays[ovrl]);
|
|
10914
10895
|
this.overlays[ovrl].updateSchema();
|
|
10915
10896
|
});
|
|
@@ -11632,9 +11613,9 @@ var require_delayed_stream = __commonJS({
|
|
|
11632
11613
|
Object.defineProperty(DelayedStream.prototype, "readable", {
|
|
11633
11614
|
configurable: true,
|
|
11634
11615
|
enumerable: true,
|
|
11635
|
-
get: function() {
|
|
11616
|
+
get: /* @__PURE__ */ __name(function() {
|
|
11636
11617
|
return this.source.readable;
|
|
11637
|
-
}
|
|
11618
|
+
}, "get")
|
|
11638
11619
|
});
|
|
11639
11620
|
DelayedStream.prototype.setEncoding = function() {
|
|
11640
11621
|
return this.source.setEncoding.apply(this.source, arguments);
|
|
@@ -11802,8 +11783,7 @@ var require_combined_stream = __commonJS({
|
|
|
11802
11783
|
if (!this.pauseStreams) {
|
|
11803
11784
|
return;
|
|
11804
11785
|
}
|
|
11805
|
-
if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == "function")
|
|
11806
|
-
this._currentStream.pause();
|
|
11786
|
+
if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == "function") this._currentStream.pause();
|
|
11807
11787
|
this.emit("pause");
|
|
11808
11788
|
};
|
|
11809
11789
|
CombinedStream.prototype.resume = function() {
|
|
@@ -11812,8 +11792,7 @@ var require_combined_stream = __commonJS({
|
|
|
11812
11792
|
this.writable = true;
|
|
11813
11793
|
this._getNext();
|
|
11814
11794
|
}
|
|
11815
|
-
if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == "function")
|
|
11816
|
-
this._currentStream.resume();
|
|
11795
|
+
if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == "function") this._currentStream.resume();
|
|
11817
11796
|
this.emit("resume");
|
|
11818
11797
|
};
|
|
11819
11798
|
CombinedStream.prototype.end = function() {
|
|
@@ -20430,8 +20409,7 @@ var require_mime_types = __commonJS({
|
|
|
20430
20409
|
}
|
|
20431
20410
|
if (mime.indexOf("charset") === -1) {
|
|
20432
20411
|
var charset2 = exports2.charset(mime);
|
|
20433
|
-
if (charset2)
|
|
20434
|
-
mime += "; charset=" + charset2.toLowerCase();
|
|
20412
|
+
if (charset2) mime += "; charset=" + charset2.toLowerCase();
|
|
20435
20413
|
}
|
|
20436
20414
|
return mime;
|
|
20437
20415
|
}
|
|
@@ -20834,8 +20812,7 @@ var require_form_data = __commonJS({
|
|
|
20834
20812
|
}
|
|
20835
20813
|
var header;
|
|
20836
20814
|
for (var prop in headers) {
|
|
20837
|
-
if (!headers.hasOwnProperty(prop))
|
|
20838
|
-
continue;
|
|
20815
|
+
if (!headers.hasOwnProperty(prop)) continue;
|
|
20839
20816
|
header = headers[prop];
|
|
20840
20817
|
if (header == null) {
|
|
20841
20818
|
continue;
|
|
@@ -21304,7 +21281,7 @@ var require_common = __commonJS({
|
|
|
21304
21281
|
Object.defineProperty(debug, "enabled", {
|
|
21305
21282
|
enumerable: true,
|
|
21306
21283
|
configurable: false,
|
|
21307
|
-
get: () => {
|
|
21284
|
+
get: /* @__PURE__ */ __name(() => {
|
|
21308
21285
|
if (enableOverride !== null) {
|
|
21309
21286
|
return enableOverride;
|
|
21310
21287
|
}
|
|
@@ -21313,10 +21290,10 @@ var require_common = __commonJS({
|
|
|
21313
21290
|
enabledCache = createDebug.enabled(namespace);
|
|
21314
21291
|
}
|
|
21315
21292
|
return enabledCache;
|
|
21316
|
-
},
|
|
21317
|
-
set: (v) => {
|
|
21293
|
+
}, "get"),
|
|
21294
|
+
set: /* @__PURE__ */ __name((v) => {
|
|
21318
21295
|
enableOverride = v;
|
|
21319
|
-
}
|
|
21296
|
+
}, "set")
|
|
21320
21297
|
});
|
|
21321
21298
|
if (typeof createDebug.init === "function") {
|
|
21322
21299
|
createDebug.init(debug);
|
|
@@ -22118,9 +22095,9 @@ var require_follow_redirects = __commonJS({
|
|
|
22118
22095
|
});
|
|
22119
22096
|
["aborted", "connection", "socket"].forEach(function(property) {
|
|
22120
22097
|
Object.defineProperty(RedirectableRequest.prototype, property, {
|
|
22121
|
-
get: function() {
|
|
22098
|
+
get: /* @__PURE__ */ __name(function() {
|
|
22122
22099
|
return this._currentRequest[property];
|
|
22123
|
-
}
|
|
22100
|
+
}, "get")
|
|
22124
22101
|
});
|
|
22125
22102
|
});
|
|
22126
22103
|
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
|
@@ -22418,6 +22395,7 @@ var require_axios = __commonJS({
|
|
|
22418
22395
|
"node_modules/axios/dist/node/axios.cjs"(exports2, module2) {
|
|
22419
22396
|
"use strict";
|
|
22420
22397
|
var FormData$1 = require_form_data();
|
|
22398
|
+
var crypto = require("crypto");
|
|
22421
22399
|
var url = require("url");
|
|
22422
22400
|
var proxyFromEnv = require_proxy_from_env();
|
|
22423
22401
|
var http = require("http");
|
|
@@ -22432,7 +22410,9 @@ var require_axios = __commonJS({
|
|
|
22432
22410
|
}
|
|
22433
22411
|
__name(_interopDefaultLegacy, "_interopDefaultLegacy");
|
|
22434
22412
|
var FormData__default = /* @__PURE__ */ _interopDefaultLegacy(FormData$1);
|
|
22413
|
+
var crypto__default = /* @__PURE__ */ _interopDefaultLegacy(crypto);
|
|
22435
22414
|
var url__default = /* @__PURE__ */ _interopDefaultLegacy(url);
|
|
22415
|
+
var proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv);
|
|
22436
22416
|
var http__default = /* @__PURE__ */ _interopDefaultLegacy(http);
|
|
22437
22417
|
var https__default = /* @__PURE__ */ _interopDefaultLegacy(https);
|
|
22438
22418
|
var util__default = /* @__PURE__ */ _interopDefaultLegacy(util);
|
|
@@ -22496,6 +22476,7 @@ var require_axios = __commonJS({
|
|
|
22496
22476
|
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
22497
22477
|
}, "isFormData");
|
|
22498
22478
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
22479
|
+
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
22499
22480
|
var trim = /* @__PURE__ */ __name((str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), "trim");
|
|
22500
22481
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
22501
22482
|
if (obj === null || typeof obj === "undefined") {
|
|
@@ -22536,8 +22517,7 @@ var require_axios = __commonJS({
|
|
|
22536
22517
|
}
|
|
22537
22518
|
__name(findKey, "findKey");
|
|
22538
22519
|
var _global = (() => {
|
|
22539
|
-
if (typeof globalThis !== "undefined")
|
|
22540
|
-
return globalThis;
|
|
22520
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
22541
22521
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
22542
22522
|
})();
|
|
22543
22523
|
var isContextDefined = /* @__PURE__ */ __name((context) => !isUndefined(context) && context !== _global, "isContextDefined");
|
|
@@ -22592,8 +22572,7 @@ var require_axios = __commonJS({
|
|
|
22592
22572
|
let prop;
|
|
22593
22573
|
const merged = {};
|
|
22594
22574
|
destObj = destObj || {};
|
|
22595
|
-
if (sourceObj == null)
|
|
22596
|
-
return destObj;
|
|
22575
|
+
if (sourceObj == null) return destObj;
|
|
22597
22576
|
do {
|
|
22598
22577
|
props = Object.getOwnPropertyNames(sourceObj);
|
|
22599
22578
|
i = props.length;
|
|
@@ -22618,13 +22597,10 @@ var require_axios = __commonJS({
|
|
|
22618
22597
|
return lastIndex !== -1 && lastIndex === position;
|
|
22619
22598
|
}, "endsWith");
|
|
22620
22599
|
var toArray = /* @__PURE__ */ __name((thing) => {
|
|
22621
|
-
if (!thing)
|
|
22622
|
-
|
|
22623
|
-
if (isArray(thing))
|
|
22624
|
-
return thing;
|
|
22600
|
+
if (!thing) return null;
|
|
22601
|
+
if (isArray(thing)) return thing;
|
|
22625
22602
|
let i = thing.length;
|
|
22626
|
-
if (!isNumber(i))
|
|
22627
|
-
return null;
|
|
22603
|
+
if (!isNumber(i)) return null;
|
|
22628
22604
|
const arr = new Array(i);
|
|
22629
22605
|
while (i-- > 0) {
|
|
22630
22606
|
arr[i] = thing[i];
|
|
@@ -22681,8 +22657,7 @@ var require_axios = __commonJS({
|
|
|
22681
22657
|
return false;
|
|
22682
22658
|
}
|
|
22683
22659
|
const value = obj[name];
|
|
22684
|
-
if (!isFunction(value))
|
|
22685
|
-
return;
|
|
22660
|
+
if (!isFunction(value)) return;
|
|
22686
22661
|
descriptor.enumerable = false;
|
|
22687
22662
|
if ("writable" in descriptor) {
|
|
22688
22663
|
descriptor.writable = false;
|
|
@@ -22708,24 +22683,8 @@ var require_axios = __commonJS({
|
|
|
22708
22683
|
var noop = /* @__PURE__ */ __name(() => {
|
|
22709
22684
|
}, "noop");
|
|
22710
22685
|
var toFiniteNumber = /* @__PURE__ */ __name((value, defaultValue) => {
|
|
22711
|
-
value = +value;
|
|
22712
|
-
return Number.isFinite(value) ? value : defaultValue;
|
|
22686
|
+
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
22713
22687
|
}, "toFiniteNumber");
|
|
22714
|
-
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
22715
|
-
var DIGIT = "0123456789";
|
|
22716
|
-
var ALPHABET = {
|
|
22717
|
-
DIGIT,
|
|
22718
|
-
ALPHA,
|
|
22719
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
22720
|
-
};
|
|
22721
|
-
var generateString = /* @__PURE__ */ __name((size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
22722
|
-
let str = "";
|
|
22723
|
-
const { length } = alphabet;
|
|
22724
|
-
while (size--) {
|
|
22725
|
-
str += alphabet[Math.random() * length | 0];
|
|
22726
|
-
}
|
|
22727
|
-
return str;
|
|
22728
|
-
}, "generateString");
|
|
22729
22688
|
function isSpecCompliantForm(thing) {
|
|
22730
22689
|
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
22731
22690
|
}
|
|
@@ -22754,6 +22713,26 @@ var require_axios = __commonJS({
|
|
|
22754
22713
|
}, "toJSONObject");
|
|
22755
22714
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
22756
22715
|
var isThenable = /* @__PURE__ */ __name((thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch), "isThenable");
|
|
22716
|
+
var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
22717
|
+
if (setImmediateSupported) {
|
|
22718
|
+
return setImmediate;
|
|
22719
|
+
}
|
|
22720
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
22721
|
+
_global.addEventListener("message", ({ source, data }) => {
|
|
22722
|
+
if (source === _global && data === token) {
|
|
22723
|
+
callbacks.length && callbacks.shift()();
|
|
22724
|
+
}
|
|
22725
|
+
}, false);
|
|
22726
|
+
return (cb) => {
|
|
22727
|
+
callbacks.push(cb);
|
|
22728
|
+
_global.postMessage(token, "*");
|
|
22729
|
+
};
|
|
22730
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
22731
|
+
})(
|
|
22732
|
+
typeof setImmediate === "function",
|
|
22733
|
+
isFunction(_global.postMessage)
|
|
22734
|
+
);
|
|
22735
|
+
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
22757
22736
|
var utils$1 = {
|
|
22758
22737
|
isArray,
|
|
22759
22738
|
isArrayBuffer,
|
|
@@ -22765,6 +22744,10 @@ var require_axios = __commonJS({
|
|
|
22765
22744
|
isBoolean,
|
|
22766
22745
|
isObject,
|
|
22767
22746
|
isPlainObject,
|
|
22747
|
+
isReadableStream,
|
|
22748
|
+
isRequest,
|
|
22749
|
+
isResponse,
|
|
22750
|
+
isHeaders,
|
|
22768
22751
|
isUndefined,
|
|
22769
22752
|
isDate,
|
|
22770
22753
|
isFile,
|
|
@@ -22801,12 +22784,12 @@ var require_axios = __commonJS({
|
|
|
22801
22784
|
findKey,
|
|
22802
22785
|
global: _global,
|
|
22803
22786
|
isContextDefined,
|
|
22804
|
-
ALPHABET,
|
|
22805
|
-
generateString,
|
|
22806
22787
|
isSpecCompliantForm,
|
|
22807
22788
|
toJSONObject,
|
|
22808
22789
|
isAsyncFn,
|
|
22809
|
-
isThenable
|
|
22790
|
+
isThenable,
|
|
22791
|
+
setImmediate: _setImmediate,
|
|
22792
|
+
asap
|
|
22810
22793
|
};
|
|
22811
22794
|
function AxiosError(message, code, config, request, response) {
|
|
22812
22795
|
Error.call(this);
|
|
@@ -22820,7 +22803,10 @@ var require_axios = __commonJS({
|
|
|
22820
22803
|
code && (this.code = code);
|
|
22821
22804
|
config && (this.config = config);
|
|
22822
22805
|
request && (this.request = request);
|
|
22823
|
-
|
|
22806
|
+
if (response) {
|
|
22807
|
+
this.response = response;
|
|
22808
|
+
this.status = response.status ? response.status : null;
|
|
22809
|
+
}
|
|
22824
22810
|
}
|
|
22825
22811
|
__name(AxiosError, "AxiosError");
|
|
22826
22812
|
utils$1.inherits(AxiosError, Error, {
|
|
@@ -22840,7 +22826,7 @@ var require_axios = __commonJS({
|
|
|
22840
22826
|
// Axios
|
|
22841
22827
|
config: utils$1.toJSONObject(this.config),
|
|
22842
22828
|
code: this.code,
|
|
22843
|
-
status: this.
|
|
22829
|
+
status: this.status
|
|
22844
22830
|
};
|
|
22845
22831
|
}, "toJSON")
|
|
22846
22832
|
});
|
|
@@ -22887,8 +22873,7 @@ var require_axios = __commonJS({
|
|
|
22887
22873
|
}
|
|
22888
22874
|
__name(removeBrackets, "removeBrackets");
|
|
22889
22875
|
function renderKey(path, key, dots) {
|
|
22890
|
-
if (!path)
|
|
22891
|
-
return key;
|
|
22876
|
+
if (!path) return key;
|
|
22892
22877
|
return path.concat(key).map(/* @__PURE__ */ __name(function each(token, i) {
|
|
22893
22878
|
token = removeBrackets(token);
|
|
22894
22879
|
return !dots && i ? "[" + token + "]" : token;
|
|
@@ -22924,8 +22909,7 @@ var require_axios = __commonJS({
|
|
|
22924
22909
|
throw new TypeError("visitor must be a function");
|
|
22925
22910
|
}
|
|
22926
22911
|
function convertValue(value) {
|
|
22927
|
-
if (value === null)
|
|
22928
|
-
return "";
|
|
22912
|
+
if (value === null) return "";
|
|
22929
22913
|
if (utils$1.isDate(value)) {
|
|
22930
22914
|
return value.toISOString();
|
|
22931
22915
|
}
|
|
@@ -22970,8 +22954,7 @@ var require_axios = __commonJS({
|
|
|
22970
22954
|
isVisitable
|
|
22971
22955
|
});
|
|
22972
22956
|
function build(value, path) {
|
|
22973
|
-
if (utils$1.isUndefined(value))
|
|
22974
|
-
return;
|
|
22957
|
+
if (utils$1.isUndefined(value)) return;
|
|
22975
22958
|
if (stack.indexOf(value) !== -1) {
|
|
22976
22959
|
throw Error("Circular reference detected in " + path.join("."));
|
|
22977
22960
|
}
|
|
@@ -23039,6 +23022,11 @@ var require_axios = __commonJS({
|
|
|
23039
23022
|
return url2;
|
|
23040
23023
|
}
|
|
23041
23024
|
const _encode = options && options.encode || encode;
|
|
23025
|
+
if (utils$1.isFunction(options)) {
|
|
23026
|
+
options = {
|
|
23027
|
+
serialize: options
|
|
23028
|
+
};
|
|
23029
|
+
}
|
|
23042
23030
|
const serializeFn = options && options.serialize;
|
|
23043
23031
|
let serializedParams;
|
|
23044
23032
|
if (serializeFn) {
|
|
@@ -23126,6 +23114,23 @@ var require_axios = __commonJS({
|
|
|
23126
23114
|
clarifyTimeoutError: false
|
|
23127
23115
|
};
|
|
23128
23116
|
var URLSearchParams = url__default["default"].URLSearchParams;
|
|
23117
|
+
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
23118
|
+
var DIGIT = "0123456789";
|
|
23119
|
+
var ALPHABET = {
|
|
23120
|
+
DIGIT,
|
|
23121
|
+
ALPHA,
|
|
23122
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
23123
|
+
};
|
|
23124
|
+
var generateString = /* @__PURE__ */ __name((size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
23125
|
+
let str = "";
|
|
23126
|
+
const { length } = alphabet;
|
|
23127
|
+
const randomValues = new Uint32Array(size);
|
|
23128
|
+
crypto__default["default"].randomFillSync(randomValues);
|
|
23129
|
+
for (let i = 0; i < size; i++) {
|
|
23130
|
+
str += alphabet[randomValues[i] % length];
|
|
23131
|
+
}
|
|
23132
|
+
return str;
|
|
23133
|
+
}, "generateString");
|
|
23129
23134
|
var platform$1 = {
|
|
23130
23135
|
isNode: true,
|
|
23131
23136
|
classes: {
|
|
@@ -23133,32 +23138,36 @@ var require_axios = __commonJS({
|
|
|
23133
23138
|
FormData: FormData__default["default"],
|
|
23134
23139
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
23135
23140
|
},
|
|
23141
|
+
ALPHABET,
|
|
23142
|
+
generateString,
|
|
23136
23143
|
protocols: ["http", "https", "file", "data"]
|
|
23137
23144
|
};
|
|
23138
23145
|
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
23139
|
-
var
|
|
23140
|
-
|
|
23141
|
-
})(typeof navigator !== "undefined" && navigator.product);
|
|
23146
|
+
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
23147
|
+
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
23142
23148
|
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
23143
23149
|
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
23144
23150
|
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
23145
23151
|
})();
|
|
23152
|
+
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
23146
23153
|
var utils = /* @__PURE__ */ Object.freeze({
|
|
23147
23154
|
__proto__: null,
|
|
23148
23155
|
hasBrowserEnv,
|
|
23149
23156
|
hasStandardBrowserWebWorkerEnv,
|
|
23150
|
-
hasStandardBrowserEnv
|
|
23157
|
+
hasStandardBrowserEnv,
|
|
23158
|
+
navigator: _navigator,
|
|
23159
|
+
origin
|
|
23151
23160
|
});
|
|
23152
23161
|
var platform = __spreadValues(__spreadValues({}, utils), platform$1);
|
|
23153
23162
|
function toURLEncodedForm(data, options) {
|
|
23154
23163
|
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
23155
|
-
visitor: function(value, key, path, helpers) {
|
|
23164
|
+
visitor: /* @__PURE__ */ __name(function(value, key, path, helpers) {
|
|
23156
23165
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
23157
23166
|
this.append(key, value.toString("base64"));
|
|
23158
23167
|
return false;
|
|
23159
23168
|
}
|
|
23160
23169
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
23161
|
-
}
|
|
23170
|
+
}, "visitor")
|
|
23162
23171
|
}, options));
|
|
23163
23172
|
}
|
|
23164
23173
|
__name(toURLEncodedForm, "toURLEncodedForm");
|
|
@@ -23184,8 +23193,7 @@ var require_axios = __commonJS({
|
|
|
23184
23193
|
function formDataToJSON(formData) {
|
|
23185
23194
|
function buildPath(path, value, target, index) {
|
|
23186
23195
|
let name = path[index++];
|
|
23187
|
-
if (name === "__proto__")
|
|
23188
|
-
return true;
|
|
23196
|
+
if (name === "__proto__") return true;
|
|
23189
23197
|
const isNumericKey = Number.isFinite(+name);
|
|
23190
23198
|
const isLast = index >= path.length;
|
|
23191
23199
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
@@ -23233,7 +23241,7 @@ var require_axios = __commonJS({
|
|
|
23233
23241
|
__name(stringifySafely, "stringifySafely");
|
|
23234
23242
|
var defaults = {
|
|
23235
23243
|
transitional: transitionalDefaults,
|
|
23236
|
-
adapter: ["xhr", "http"],
|
|
23244
|
+
adapter: ["xhr", "http", "fetch"],
|
|
23237
23245
|
transformRequest: [/* @__PURE__ */ __name(function transformRequest(data, headers) {
|
|
23238
23246
|
const contentType = headers.getContentType() || "";
|
|
23239
23247
|
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
@@ -23245,7 +23253,7 @@ var require_axios = __commonJS({
|
|
|
23245
23253
|
if (isFormData2) {
|
|
23246
23254
|
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
23247
23255
|
}
|
|
23248
|
-
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data)) {
|
|
23256
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data) || utils$1.isReadableStream(data)) {
|
|
23249
23257
|
return data;
|
|
23250
23258
|
}
|
|
23251
23259
|
if (utils$1.isArrayBufferView(data)) {
|
|
@@ -23279,6 +23287,9 @@ var require_axios = __commonJS({
|
|
|
23279
23287
|
const transitional = this.transitional || defaults.transitional;
|
|
23280
23288
|
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
23281
23289
|
const JSONRequested = this.responseType === "json";
|
|
23290
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
23291
|
+
return data;
|
|
23292
|
+
}
|
|
23282
23293
|
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
23283
23294
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
23284
23295
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
@@ -23395,8 +23406,7 @@ var require_axios = __commonJS({
|
|
|
23395
23406
|
if (isHeaderNameFilter) {
|
|
23396
23407
|
value = header;
|
|
23397
23408
|
}
|
|
23398
|
-
if (!utils$1.isString(value))
|
|
23399
|
-
return;
|
|
23409
|
+
if (!utils$1.isString(value)) return;
|
|
23400
23410
|
if (utils$1.isString(filter)) {
|
|
23401
23411
|
return value.indexOf(filter) !== -1;
|
|
23402
23412
|
}
|
|
@@ -23415,9 +23425,9 @@ var require_axios = __commonJS({
|
|
|
23415
23425
|
const accessorName = utils$1.toCamelCase(" " + header);
|
|
23416
23426
|
["get", "set", "has"].forEach((methodName) => {
|
|
23417
23427
|
Object.defineProperty(obj, methodName + accessorName, {
|
|
23418
|
-
value: function(arg1, arg2, arg3) {
|
|
23428
|
+
value: /* @__PURE__ */ __name(function(arg1, arg2, arg3) {
|
|
23419
23429
|
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
23420
|
-
},
|
|
23430
|
+
}, "value"),
|
|
23421
23431
|
configurable: true
|
|
23422
23432
|
});
|
|
23423
23433
|
});
|
|
@@ -23445,6 +23455,10 @@ var require_axios = __commonJS({
|
|
|
23445
23455
|
setHeaders(header, valueOrRewrite);
|
|
23446
23456
|
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
23447
23457
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
23458
|
+
} else if (utils$1.isHeaders(header)) {
|
|
23459
|
+
for (const [key, value] of header.entries()) {
|
|
23460
|
+
setHeader(value, key, rewrite);
|
|
23461
|
+
}
|
|
23448
23462
|
} else {
|
|
23449
23463
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
23450
23464
|
}
|
|
@@ -23584,7 +23598,7 @@ var require_axios = __commonJS({
|
|
|
23584
23598
|
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
23585
23599
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
23586
23600
|
return {
|
|
23587
|
-
get: () => value,
|
|
23601
|
+
get: /* @__PURE__ */ __name(() => value, "get"),
|
|
23588
23602
|
set(headerValue) {
|
|
23589
23603
|
this[mapped] = headerValue;
|
|
23590
23604
|
}
|
|
@@ -23639,14 +23653,15 @@ var require_axios = __commonJS({
|
|
|
23639
23653
|
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
23640
23654
|
}
|
|
23641
23655
|
__name(combineURLs, "combineURLs");
|
|
23642
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
23643
|
-
|
|
23656
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
23657
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
23658
|
+
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
23644
23659
|
return combineURLs(baseURL, requestedURL);
|
|
23645
23660
|
}
|
|
23646
23661
|
return requestedURL;
|
|
23647
23662
|
}
|
|
23648
23663
|
__name(buildFullPath, "buildFullPath");
|
|
23649
|
-
var VERSION = "1.
|
|
23664
|
+
var VERSION = "1.8.2";
|
|
23650
23665
|
function parseProtocol(url2) {
|
|
23651
23666
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
23652
23667
|
return match && match[1] || "";
|
|
@@ -23680,64 +23695,6 @@ var require_axios = __commonJS({
|
|
|
23680
23695
|
throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
23681
23696
|
}
|
|
23682
23697
|
__name(fromDataURI, "fromDataURI");
|
|
23683
|
-
function throttle(fn, freq) {
|
|
23684
|
-
let timestamp = 0;
|
|
23685
|
-
const threshold = 1e3 / freq;
|
|
23686
|
-
let timer = null;
|
|
23687
|
-
return /* @__PURE__ */ __name(function throttled(force, args) {
|
|
23688
|
-
const now = Date.now();
|
|
23689
|
-
if (force || now - timestamp > threshold) {
|
|
23690
|
-
if (timer) {
|
|
23691
|
-
clearTimeout(timer);
|
|
23692
|
-
timer = null;
|
|
23693
|
-
}
|
|
23694
|
-
timestamp = now;
|
|
23695
|
-
return fn.apply(null, args);
|
|
23696
|
-
}
|
|
23697
|
-
if (!timer) {
|
|
23698
|
-
timer = setTimeout(() => {
|
|
23699
|
-
timer = null;
|
|
23700
|
-
timestamp = Date.now();
|
|
23701
|
-
return fn.apply(null, args);
|
|
23702
|
-
}, threshold - (now - timestamp));
|
|
23703
|
-
}
|
|
23704
|
-
}, "throttled");
|
|
23705
|
-
}
|
|
23706
|
-
__name(throttle, "throttle");
|
|
23707
|
-
function speedometer(samplesCount, min) {
|
|
23708
|
-
samplesCount = samplesCount || 10;
|
|
23709
|
-
const bytes = new Array(samplesCount);
|
|
23710
|
-
const timestamps = new Array(samplesCount);
|
|
23711
|
-
let head = 0;
|
|
23712
|
-
let tail = 0;
|
|
23713
|
-
let firstSampleTS;
|
|
23714
|
-
min = min !== void 0 ? min : 1e3;
|
|
23715
|
-
return /* @__PURE__ */ __name(function push(chunkLength) {
|
|
23716
|
-
const now = Date.now();
|
|
23717
|
-
const startedAt = timestamps[tail];
|
|
23718
|
-
if (!firstSampleTS) {
|
|
23719
|
-
firstSampleTS = now;
|
|
23720
|
-
}
|
|
23721
|
-
bytes[head] = chunkLength;
|
|
23722
|
-
timestamps[head] = now;
|
|
23723
|
-
let i = tail;
|
|
23724
|
-
let bytesCount = 0;
|
|
23725
|
-
while (i !== head) {
|
|
23726
|
-
bytesCount += bytes[i++];
|
|
23727
|
-
i = i % samplesCount;
|
|
23728
|
-
}
|
|
23729
|
-
head = (head + 1) % samplesCount;
|
|
23730
|
-
if (head === tail) {
|
|
23731
|
-
tail = (tail + 1) % samplesCount;
|
|
23732
|
-
}
|
|
23733
|
-
if (now - firstSampleTS < min) {
|
|
23734
|
-
return;
|
|
23735
|
-
}
|
|
23736
|
-
const passed = startedAt && now - startedAt;
|
|
23737
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
23738
|
-
}, "push");
|
|
23739
|
-
}
|
|
23740
|
-
__name(speedometer, "speedometer");
|
|
23741
23698
|
var kInternals = Symbol("internals");
|
|
23742
23699
|
var _AxiosTransformStream = class _AxiosTransformStream extends stream__default["default"].Transform {
|
|
23743
23700
|
constructor(options) {
|
|
@@ -23754,11 +23711,8 @@ var require_axios = __commonJS({
|
|
|
23754
23711
|
super({
|
|
23755
23712
|
readableHighWaterMark: options.chunkSize
|
|
23756
23713
|
});
|
|
23757
|
-
const self2 = this;
|
|
23758
23714
|
const internals = this[kInternals] = {
|
|
23759
|
-
length: options.length,
|
|
23760
23715
|
timeWindow: options.timeWindow,
|
|
23761
|
-
ticksRate: options.ticksRate,
|
|
23762
23716
|
chunkSize: options.chunkSize,
|
|
23763
23717
|
maxRate: options.maxRate,
|
|
23764
23718
|
minChunkSize: options.minChunkSize,
|
|
@@ -23769,7 +23723,6 @@ var require_axios = __commonJS({
|
|
|
23769
23723
|
bytes: 0,
|
|
23770
23724
|
onReadCallback: null
|
|
23771
23725
|
};
|
|
23772
|
-
const _speedometer = speedometer(internals.ticksRate * options.samplesCount, internals.timeWindow);
|
|
23773
23726
|
this.on("newListener", (event) => {
|
|
23774
23727
|
if (event === "progress") {
|
|
23775
23728
|
if (!internals.isCaptured) {
|
|
@@ -23777,31 +23730,6 @@ var require_axios = __commonJS({
|
|
|
23777
23730
|
}
|
|
23778
23731
|
}
|
|
23779
23732
|
});
|
|
23780
|
-
let bytesNotified = 0;
|
|
23781
|
-
internals.updateProgress = throttle(/* @__PURE__ */ __name(function throttledHandler() {
|
|
23782
|
-
const totalBytes = internals.length;
|
|
23783
|
-
const bytesTransferred = internals.bytesSeen;
|
|
23784
|
-
const progressBytes = bytesTransferred - bytesNotified;
|
|
23785
|
-
if (!progressBytes || self2.destroyed)
|
|
23786
|
-
return;
|
|
23787
|
-
const rate = _speedometer(progressBytes);
|
|
23788
|
-
bytesNotified = bytesTransferred;
|
|
23789
|
-
process.nextTick(() => {
|
|
23790
|
-
self2.emit("progress", {
|
|
23791
|
-
"loaded": bytesTransferred,
|
|
23792
|
-
"total": totalBytes,
|
|
23793
|
-
"progress": totalBytes ? bytesTransferred / totalBytes : void 0,
|
|
23794
|
-
"bytes": progressBytes,
|
|
23795
|
-
"rate": rate ? rate : void 0,
|
|
23796
|
-
"estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
|
|
23797
|
-
});
|
|
23798
|
-
});
|
|
23799
|
-
}, "throttledHandler"), internals.ticksRate);
|
|
23800
|
-
const onFinish = /* @__PURE__ */ __name(() => {
|
|
23801
|
-
internals.updateProgress(true);
|
|
23802
|
-
}, "onFinish");
|
|
23803
|
-
this.once("end", onFinish);
|
|
23804
|
-
this.once("error", onFinish);
|
|
23805
23733
|
}
|
|
23806
23734
|
_read(size) {
|
|
23807
23735
|
const internals = this[kInternals];
|
|
@@ -23811,7 +23739,6 @@ var require_axios = __commonJS({
|
|
|
23811
23739
|
return super._read(size);
|
|
23812
23740
|
}
|
|
23813
23741
|
_transform(chunk, encoding, callback) {
|
|
23814
|
-
const self2 = this;
|
|
23815
23742
|
const internals = this[kInternals];
|
|
23816
23743
|
const maxRate = internals.maxRate;
|
|
23817
23744
|
const readableHighWaterMark = this.readableHighWaterMark;
|
|
@@ -23819,14 +23746,12 @@ var require_axios = __commonJS({
|
|
|
23819
23746
|
const divider = 1e3 / timeWindow;
|
|
23820
23747
|
const bytesThreshold = maxRate / divider;
|
|
23821
23748
|
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
23822
|
-
|
|
23749
|
+
const pushChunk = /* @__PURE__ */ __name((_chunk, _callback) => {
|
|
23823
23750
|
const bytes = Buffer.byteLength(_chunk);
|
|
23824
23751
|
internals.bytesSeen += bytes;
|
|
23825
23752
|
internals.bytes += bytes;
|
|
23826
|
-
|
|
23827
|
-
|
|
23828
|
-
}
|
|
23829
|
-
if (self2.push(_chunk)) {
|
|
23753
|
+
internals.isCaptured && this.emit("progress", internals.bytesSeen);
|
|
23754
|
+
if (this.push(_chunk)) {
|
|
23830
23755
|
process.nextTick(_callback);
|
|
23831
23756
|
} else {
|
|
23832
23757
|
internals.onReadCallback = () => {
|
|
@@ -23834,8 +23759,7 @@ var require_axios = __commonJS({
|
|
|
23834
23759
|
process.nextTick(_callback);
|
|
23835
23760
|
};
|
|
23836
23761
|
}
|
|
23837
|
-
}
|
|
23838
|
-
__name(pushChunk, "pushChunk");
|
|
23762
|
+
}, "pushChunk");
|
|
23839
23763
|
const transformChunk = /* @__PURE__ */ __name((_chunk, _callback) => {
|
|
23840
23764
|
const chunkSize = Buffer.byteLength(_chunk);
|
|
23841
23765
|
let chunkRemainder = null;
|
|
@@ -23881,10 +23805,6 @@ var require_axios = __commonJS({
|
|
|
23881
23805
|
}
|
|
23882
23806
|
}, "transformNextChunk"));
|
|
23883
23807
|
}
|
|
23884
|
-
setLength(length) {
|
|
23885
|
-
this[kInternals].length = +length;
|
|
23886
|
-
return this;
|
|
23887
|
-
}
|
|
23888
23808
|
};
|
|
23889
23809
|
__name(_AxiosTransformStream, "AxiosTransformStream");
|
|
23890
23810
|
var AxiosTransformStream = _AxiosTransformStream;
|
|
@@ -23904,8 +23824,8 @@ var require_axios = __commonJS({
|
|
|
23904
23824
|
});
|
|
23905
23825
|
}, "readBlob");
|
|
23906
23826
|
var readBlob$1 = readBlob;
|
|
23907
|
-
var BOUNDARY_ALPHABET =
|
|
23908
|
-
var textEncoder = new
|
|
23827
|
+
var BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + "-_";
|
|
23828
|
+
var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util__default["default"].TextEncoder();
|
|
23909
23829
|
var CRLF = "\r\n";
|
|
23910
23830
|
var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
23911
23831
|
var CRLF_BYTES_COUNT = 2;
|
|
@@ -23951,7 +23871,7 @@ var require_axios = __commonJS({
|
|
|
23951
23871
|
const {
|
|
23952
23872
|
tag = "form-data-boundary",
|
|
23953
23873
|
size = 25,
|
|
23954
|
-
boundary = tag + "-" +
|
|
23874
|
+
boundary = tag + "-" + platform.generateString(size, BOUNDARY_ALPHABET)
|
|
23955
23875
|
} = options || {};
|
|
23956
23876
|
if (!utils$1.isFormData(form)) {
|
|
23957
23877
|
throw TypeError("FormData instance required");
|
|
@@ -24021,6 +23941,106 @@ var require_axios = __commonJS({
|
|
|
24021
23941
|
} : fn;
|
|
24022
23942
|
}, "callbackify");
|
|
24023
23943
|
var callbackify$1 = callbackify;
|
|
23944
|
+
function speedometer(samplesCount, min) {
|
|
23945
|
+
samplesCount = samplesCount || 10;
|
|
23946
|
+
const bytes = new Array(samplesCount);
|
|
23947
|
+
const timestamps = new Array(samplesCount);
|
|
23948
|
+
let head = 0;
|
|
23949
|
+
let tail = 0;
|
|
23950
|
+
let firstSampleTS;
|
|
23951
|
+
min = min !== void 0 ? min : 1e3;
|
|
23952
|
+
return /* @__PURE__ */ __name(function push(chunkLength) {
|
|
23953
|
+
const now = Date.now();
|
|
23954
|
+
const startedAt = timestamps[tail];
|
|
23955
|
+
if (!firstSampleTS) {
|
|
23956
|
+
firstSampleTS = now;
|
|
23957
|
+
}
|
|
23958
|
+
bytes[head] = chunkLength;
|
|
23959
|
+
timestamps[head] = now;
|
|
23960
|
+
let i = tail;
|
|
23961
|
+
let bytesCount = 0;
|
|
23962
|
+
while (i !== head) {
|
|
23963
|
+
bytesCount += bytes[i++];
|
|
23964
|
+
i = i % samplesCount;
|
|
23965
|
+
}
|
|
23966
|
+
head = (head + 1) % samplesCount;
|
|
23967
|
+
if (head === tail) {
|
|
23968
|
+
tail = (tail + 1) % samplesCount;
|
|
23969
|
+
}
|
|
23970
|
+
if (now - firstSampleTS < min) {
|
|
23971
|
+
return;
|
|
23972
|
+
}
|
|
23973
|
+
const passed = startedAt && now - startedAt;
|
|
23974
|
+
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
23975
|
+
}, "push");
|
|
23976
|
+
}
|
|
23977
|
+
__name(speedometer, "speedometer");
|
|
23978
|
+
function throttle(fn, freq) {
|
|
23979
|
+
let timestamp = 0;
|
|
23980
|
+
let threshold = 1e3 / freq;
|
|
23981
|
+
let lastArgs;
|
|
23982
|
+
let timer;
|
|
23983
|
+
const invoke = /* @__PURE__ */ __name((args, now = Date.now()) => {
|
|
23984
|
+
timestamp = now;
|
|
23985
|
+
lastArgs = null;
|
|
23986
|
+
if (timer) {
|
|
23987
|
+
clearTimeout(timer);
|
|
23988
|
+
timer = null;
|
|
23989
|
+
}
|
|
23990
|
+
fn.apply(null, args);
|
|
23991
|
+
}, "invoke");
|
|
23992
|
+
const throttled = /* @__PURE__ */ __name((...args) => {
|
|
23993
|
+
const now = Date.now();
|
|
23994
|
+
const passed = now - timestamp;
|
|
23995
|
+
if (passed >= threshold) {
|
|
23996
|
+
invoke(args, now);
|
|
23997
|
+
} else {
|
|
23998
|
+
lastArgs = args;
|
|
23999
|
+
if (!timer) {
|
|
24000
|
+
timer = setTimeout(() => {
|
|
24001
|
+
timer = null;
|
|
24002
|
+
invoke(lastArgs);
|
|
24003
|
+
}, threshold - passed);
|
|
24004
|
+
}
|
|
24005
|
+
}
|
|
24006
|
+
}, "throttled");
|
|
24007
|
+
const flush = /* @__PURE__ */ __name(() => lastArgs && invoke(lastArgs), "flush");
|
|
24008
|
+
return [throttled, flush];
|
|
24009
|
+
}
|
|
24010
|
+
__name(throttle, "throttle");
|
|
24011
|
+
var progressEventReducer = /* @__PURE__ */ __name((listener, isDownloadStream, freq = 3) => {
|
|
24012
|
+
let bytesNotified = 0;
|
|
24013
|
+
const _speedometer = speedometer(50, 250);
|
|
24014
|
+
return throttle((e) => {
|
|
24015
|
+
const loaded = e.loaded;
|
|
24016
|
+
const total = e.lengthComputable ? e.total : void 0;
|
|
24017
|
+
const progressBytes = loaded - bytesNotified;
|
|
24018
|
+
const rate = _speedometer(progressBytes);
|
|
24019
|
+
const inRange = loaded <= total;
|
|
24020
|
+
bytesNotified = loaded;
|
|
24021
|
+
const data = {
|
|
24022
|
+
loaded,
|
|
24023
|
+
total,
|
|
24024
|
+
progress: total ? loaded / total : void 0,
|
|
24025
|
+
bytes: progressBytes,
|
|
24026
|
+
rate: rate ? rate : void 0,
|
|
24027
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
24028
|
+
event: e,
|
|
24029
|
+
lengthComputable: total != null,
|
|
24030
|
+
[isDownloadStream ? "download" : "upload"]: true
|
|
24031
|
+
};
|
|
24032
|
+
listener(data);
|
|
24033
|
+
}, freq);
|
|
24034
|
+
}, "progressEventReducer");
|
|
24035
|
+
var progressEventDecorator = /* @__PURE__ */ __name((total, throttled) => {
|
|
24036
|
+
const lengthComputable = total != null;
|
|
24037
|
+
return [(loaded) => throttled[0]({
|
|
24038
|
+
lengthComputable,
|
|
24039
|
+
total,
|
|
24040
|
+
loaded
|
|
24041
|
+
}), throttled[1]];
|
|
24042
|
+
}, "progressEventDecorator");
|
|
24043
|
+
var asyncDecorator = /* @__PURE__ */ __name((fn) => (...args) => utils$1.asap(() => fn(...args)), "asyncDecorator");
|
|
24024
24044
|
var zlibOptions = {
|
|
24025
24045
|
flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
|
|
24026
24046
|
finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
|
|
@@ -24035,6 +24055,10 @@ var require_axios = __commonJS({
|
|
|
24035
24055
|
var supportedProtocols = platform.protocols.map((protocol) => {
|
|
24036
24056
|
return protocol + ":";
|
|
24037
24057
|
});
|
|
24058
|
+
var flushOnFinish = /* @__PURE__ */ __name((stream2, [throttled, flush]) => {
|
|
24059
|
+
stream2.on("end", flush).on("error", flush);
|
|
24060
|
+
return throttled;
|
|
24061
|
+
}, "flushOnFinish");
|
|
24038
24062
|
function dispatchBeforeRedirect(options, responseDetails) {
|
|
24039
24063
|
if (options.beforeRedirects.proxy) {
|
|
24040
24064
|
options.beforeRedirects.proxy(options);
|
|
@@ -24047,7 +24071,7 @@ var require_axios = __commonJS({
|
|
|
24047
24071
|
function setProxy(options, configProxy, location) {
|
|
24048
24072
|
let proxy = configProxy;
|
|
24049
24073
|
if (!proxy && proxy !== false) {
|
|
24050
|
-
const proxyUrl =
|
|
24074
|
+
const proxyUrl = proxyFromEnv__default["default"].getProxyForUrl(location);
|
|
24051
24075
|
if (proxyUrl) {
|
|
24052
24076
|
proxy = new URL(proxyUrl);
|
|
24053
24077
|
}
|
|
@@ -24084,8 +24108,7 @@ var require_axios = __commonJS({
|
|
|
24084
24108
|
let onDone;
|
|
24085
24109
|
let isDone;
|
|
24086
24110
|
const done = /* @__PURE__ */ __name((value, isRejected) => {
|
|
24087
|
-
if (isDone)
|
|
24088
|
-
return;
|
|
24111
|
+
if (isDone) return;
|
|
24089
24112
|
isDone = true;
|
|
24090
24113
|
onDone && onDone(value, isRejected);
|
|
24091
24114
|
}, "done");
|
|
@@ -24159,8 +24182,8 @@ var require_axios = __commonJS({
|
|
|
24159
24182
|
config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
|
|
24160
24183
|
}
|
|
24161
24184
|
}
|
|
24162
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
24163
|
-
const parsed = new URL(fullPath,
|
|
24185
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
24186
|
+
const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : void 0);
|
|
24164
24187
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
24165
24188
|
if (protocol === "data:") {
|
|
24166
24189
|
let convertedData;
|
|
@@ -24204,8 +24227,7 @@ var require_axios = __commonJS({
|
|
|
24204
24227
|
}
|
|
24205
24228
|
const headers = AxiosHeaders$1.from(config.headers).normalize();
|
|
24206
24229
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
24207
|
-
const onDownloadProgress = config
|
|
24208
|
-
const onUploadProgress = config.onUploadProgress;
|
|
24230
|
+
const { onUploadProgress, onDownloadProgress } = config;
|
|
24209
24231
|
const maxRate = config.maxRate;
|
|
24210
24232
|
let maxUploadRate = void 0;
|
|
24211
24233
|
let maxDownloadRate = void 0;
|
|
@@ -24226,13 +24248,12 @@ var require_axios = __commonJS({
|
|
|
24226
24248
|
} catch (e) {
|
|
24227
24249
|
}
|
|
24228
24250
|
}
|
|
24229
|
-
} else if (utils$1.isBlob(data)) {
|
|
24251
|
+
} else if (utils$1.isBlob(data) || utils$1.isFile(data)) {
|
|
24230
24252
|
data.size && headers.setContentType(data.type || "application/octet-stream");
|
|
24231
24253
|
headers.setContentLength(data.size || 0);
|
|
24232
24254
|
data = stream__default["default"].Readable.from(readBlob$1(data));
|
|
24233
24255
|
} else if (data && !utils$1.isStream(data)) {
|
|
24234
|
-
if (Buffer.isBuffer(data))
|
|
24235
|
-
;
|
|
24256
|
+
if (Buffer.isBuffer(data)) ;
|
|
24236
24257
|
else if (utils$1.isArrayBuffer(data)) {
|
|
24237
24258
|
data = Buffer.from(new Uint8Array(data));
|
|
24238
24259
|
} else if (utils$1.isString(data)) {
|
|
@@ -24265,14 +24286,15 @@ var require_axios = __commonJS({
|
|
|
24265
24286
|
data = stream__default["default"].Readable.from(data, { objectMode: false });
|
|
24266
24287
|
}
|
|
24267
24288
|
data = stream__default["default"].pipeline([data, new AxiosTransformStream$1({
|
|
24268
|
-
length: contentLength,
|
|
24269
24289
|
maxRate: utils$1.toFiniteNumber(maxUploadRate)
|
|
24270
24290
|
})], utils$1.noop);
|
|
24271
|
-
onUploadProgress && data.on("progress", (
|
|
24272
|
-
|
|
24273
|
-
|
|
24274
|
-
|
|
24275
|
-
|
|
24291
|
+
onUploadProgress && data.on("progress", flushOnFinish(
|
|
24292
|
+
data,
|
|
24293
|
+
progressEventDecorator(
|
|
24294
|
+
contentLength,
|
|
24295
|
+
progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
|
|
24296
|
+
)
|
|
24297
|
+
));
|
|
24276
24298
|
}
|
|
24277
24299
|
let auth = void 0;
|
|
24278
24300
|
if (config.auth) {
|
|
@@ -24320,7 +24342,7 @@ var require_axios = __commonJS({
|
|
|
24320
24342
|
if (config.socketPath) {
|
|
24321
24343
|
options.socketPath = config.socketPath;
|
|
24322
24344
|
} else {
|
|
24323
|
-
options.hostname = parsed.hostname;
|
|
24345
|
+
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
24324
24346
|
options.port = parsed.port;
|
|
24325
24347
|
setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
24326
24348
|
}
|
|
@@ -24349,20 +24371,20 @@ var require_axios = __commonJS({
|
|
|
24349
24371
|
options.insecureHTTPParser = config.insecureHTTPParser;
|
|
24350
24372
|
}
|
|
24351
24373
|
req = transport.request(options, /* @__PURE__ */ __name(function handleResponse(res) {
|
|
24352
|
-
if (req.destroyed)
|
|
24353
|
-
return;
|
|
24374
|
+
if (req.destroyed) return;
|
|
24354
24375
|
const streams = [res];
|
|
24355
24376
|
const responseLength = +res.headers["content-length"];
|
|
24356
|
-
if (onDownloadProgress) {
|
|
24377
|
+
if (onDownloadProgress || maxDownloadRate) {
|
|
24357
24378
|
const transformStream = new AxiosTransformStream$1({
|
|
24358
|
-
length: utils$1.toFiniteNumber(responseLength),
|
|
24359
24379
|
maxRate: utils$1.toFiniteNumber(maxDownloadRate)
|
|
24360
24380
|
});
|
|
24361
|
-
onDownloadProgress && transformStream.on("progress", (
|
|
24362
|
-
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
|
|
24381
|
+
onDownloadProgress && transformStream.on("progress", flushOnFinish(
|
|
24382
|
+
transformStream,
|
|
24383
|
+
progressEventDecorator(
|
|
24384
|
+
responseLength,
|
|
24385
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
|
|
24386
|
+
)
|
|
24387
|
+
));
|
|
24366
24388
|
streams.push(transformStream);
|
|
24367
24389
|
}
|
|
24368
24390
|
let responseStream = res;
|
|
@@ -24372,6 +24394,7 @@ var require_axios = __commonJS({
|
|
|
24372
24394
|
delete res.headers["content-encoding"];
|
|
24373
24395
|
}
|
|
24374
24396
|
switch ((res.headers["content-encoding"] || "").toLowerCase()) {
|
|
24397
|
+
/*eslint default-case:0*/
|
|
24375
24398
|
case "gzip":
|
|
24376
24399
|
case "x-gzip":
|
|
24377
24400
|
case "compress":
|
|
@@ -24428,7 +24451,7 @@ var require_axios = __commonJS({
|
|
|
24428
24451
|
return;
|
|
24429
24452
|
}
|
|
24430
24453
|
const err = new AxiosError(
|
|
24431
|
-
"
|
|
24454
|
+
"stream has been aborted",
|
|
24432
24455
|
AxiosError.ERR_BAD_RESPONSE,
|
|
24433
24456
|
config,
|
|
24434
24457
|
lastRequest
|
|
@@ -24437,8 +24460,7 @@ var require_axios = __commonJS({
|
|
|
24437
24460
|
reject(err);
|
|
24438
24461
|
}, "handlerStreamAborted"));
|
|
24439
24462
|
responseStream.on("error", /* @__PURE__ */ __name(function handleStreamError(err) {
|
|
24440
|
-
if (req.destroyed)
|
|
24441
|
-
return;
|
|
24463
|
+
if (req.destroyed) return;
|
|
24442
24464
|
reject(AxiosError.from(err, null, config, lastRequest));
|
|
24443
24465
|
}, "handleStreamError"));
|
|
24444
24466
|
responseStream.on("end", /* @__PURE__ */ __name(function handleStreamEnd() {
|
|
@@ -24486,8 +24508,7 @@ var require_axios = __commonJS({
|
|
|
24486
24508
|
return;
|
|
24487
24509
|
}
|
|
24488
24510
|
req.setTimeout(timeout, /* @__PURE__ */ __name(function handleRequestTimeout() {
|
|
24489
|
-
if (isDone)
|
|
24490
|
-
return;
|
|
24511
|
+
if (isDone) return;
|
|
24491
24512
|
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
24492
24513
|
const transitional = config.transitional || transitionalDefaults;
|
|
24493
24514
|
if (config.timeoutErrorMessage) {
|
|
@@ -24524,6 +24545,13 @@ var require_axios = __commonJS({
|
|
|
24524
24545
|
});
|
|
24525
24546
|
}, "dispatchHttpRequest"));
|
|
24526
24547
|
}, "httpAdapter");
|
|
24548
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
24549
|
+
url2 = new URL(url2, platform.origin);
|
|
24550
|
+
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
24551
|
+
})(
|
|
24552
|
+
new URL(platform.origin),
|
|
24553
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
24554
|
+
) : () => true;
|
|
24527
24555
|
var cookies = platform.hasStandardBrowserEnv ? (
|
|
24528
24556
|
// Standard browser envs support document.cookie
|
|
24529
24557
|
{
|
|
@@ -24555,104 +24583,141 @@ var require_axios = __commonJS({
|
|
|
24555
24583
|
}
|
|
24556
24584
|
}
|
|
24557
24585
|
);
|
|
24558
|
-
var
|
|
24559
|
-
|
|
24560
|
-
|
|
24561
|
-
|
|
24562
|
-
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
href = urlParsingNode.href;
|
|
24570
|
-
}
|
|
24571
|
-
urlParsingNode.setAttribute("href", href);
|
|
24572
|
-
return {
|
|
24573
|
-
href: urlParsingNode.href,
|
|
24574
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
24575
|
-
host: urlParsingNode.host,
|
|
24576
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
24577
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
24578
|
-
hostname: urlParsingNode.hostname,
|
|
24579
|
-
port: urlParsingNode.port,
|
|
24580
|
-
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
24581
|
-
};
|
|
24586
|
+
var headersToObject = /* @__PURE__ */ __name((thing) => thing instanceof AxiosHeaders$1 ? __spreadValues({}, thing) : thing, "headersToObject");
|
|
24587
|
+
function mergeConfig(config1, config2) {
|
|
24588
|
+
config2 = config2 || {};
|
|
24589
|
+
const config = {};
|
|
24590
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
24591
|
+
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
24592
|
+
return utils$1.merge.call({ caseless }, target, source);
|
|
24593
|
+
} else if (utils$1.isPlainObject(source)) {
|
|
24594
|
+
return utils$1.merge({}, source);
|
|
24595
|
+
} else if (utils$1.isArray(source)) {
|
|
24596
|
+
return source.slice();
|
|
24582
24597
|
}
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
|
|
24603
|
-
|
|
24604
|
-
|
|
24605
|
-
|
|
24606
|
-
|
|
24607
|
-
|
|
24608
|
-
|
|
24609
|
-
|
|
24610
|
-
|
|
24611
|
-
|
|
24612
|
-
|
|
24613
|
-
|
|
24614
|
-
|
|
24615
|
-
|
|
24616
|
-
|
|
24617
|
-
|
|
24618
|
-
|
|
24598
|
+
return source;
|
|
24599
|
+
}
|
|
24600
|
+
__name(getMergedValue, "getMergedValue");
|
|
24601
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
24602
|
+
if (!utils$1.isUndefined(b)) {
|
|
24603
|
+
return getMergedValue(a, b, prop, caseless);
|
|
24604
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
24605
|
+
return getMergedValue(void 0, a, prop, caseless);
|
|
24606
|
+
}
|
|
24607
|
+
}
|
|
24608
|
+
__name(mergeDeepProperties, "mergeDeepProperties");
|
|
24609
|
+
function valueFromConfig2(a, b) {
|
|
24610
|
+
if (!utils$1.isUndefined(b)) {
|
|
24611
|
+
return getMergedValue(void 0, b);
|
|
24612
|
+
}
|
|
24613
|
+
}
|
|
24614
|
+
__name(valueFromConfig2, "valueFromConfig2");
|
|
24615
|
+
function defaultToConfig2(a, b) {
|
|
24616
|
+
if (!utils$1.isUndefined(b)) {
|
|
24617
|
+
return getMergedValue(void 0, b);
|
|
24618
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
24619
|
+
return getMergedValue(void 0, a);
|
|
24620
|
+
}
|
|
24621
|
+
}
|
|
24622
|
+
__name(defaultToConfig2, "defaultToConfig2");
|
|
24623
|
+
function mergeDirectKeys(a, b, prop) {
|
|
24624
|
+
if (prop in config2) {
|
|
24625
|
+
return getMergedValue(a, b);
|
|
24626
|
+
} else if (prop in config1) {
|
|
24627
|
+
return getMergedValue(void 0, a);
|
|
24628
|
+
}
|
|
24629
|
+
}
|
|
24630
|
+
__name(mergeDirectKeys, "mergeDirectKeys");
|
|
24631
|
+
const mergeMap = {
|
|
24632
|
+
url: valueFromConfig2,
|
|
24633
|
+
method: valueFromConfig2,
|
|
24634
|
+
data: valueFromConfig2,
|
|
24635
|
+
baseURL: defaultToConfig2,
|
|
24636
|
+
transformRequest: defaultToConfig2,
|
|
24637
|
+
transformResponse: defaultToConfig2,
|
|
24638
|
+
paramsSerializer: defaultToConfig2,
|
|
24639
|
+
timeout: defaultToConfig2,
|
|
24640
|
+
timeoutMessage: defaultToConfig2,
|
|
24641
|
+
withCredentials: defaultToConfig2,
|
|
24642
|
+
withXSRFToken: defaultToConfig2,
|
|
24643
|
+
adapter: defaultToConfig2,
|
|
24644
|
+
responseType: defaultToConfig2,
|
|
24645
|
+
xsrfCookieName: defaultToConfig2,
|
|
24646
|
+
xsrfHeaderName: defaultToConfig2,
|
|
24647
|
+
onUploadProgress: defaultToConfig2,
|
|
24648
|
+
onDownloadProgress: defaultToConfig2,
|
|
24649
|
+
decompress: defaultToConfig2,
|
|
24650
|
+
maxContentLength: defaultToConfig2,
|
|
24651
|
+
maxBodyLength: defaultToConfig2,
|
|
24652
|
+
beforeRedirect: defaultToConfig2,
|
|
24653
|
+
transport: defaultToConfig2,
|
|
24654
|
+
httpAgent: defaultToConfig2,
|
|
24655
|
+
httpsAgent: defaultToConfig2,
|
|
24656
|
+
cancelToken: defaultToConfig2,
|
|
24657
|
+
socketPath: defaultToConfig2,
|
|
24658
|
+
responseEncoding: defaultToConfig2,
|
|
24659
|
+
validateStatus: mergeDirectKeys,
|
|
24660
|
+
headers: /* @__PURE__ */ __name((a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true), "headers")
|
|
24619
24661
|
};
|
|
24662
|
+
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), /* @__PURE__ */ __name(function computeConfigValue(prop) {
|
|
24663
|
+
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
24664
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
24665
|
+
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
24666
|
+
}, "computeConfigValue"));
|
|
24667
|
+
return config;
|
|
24620
24668
|
}
|
|
24621
|
-
__name(
|
|
24669
|
+
__name(mergeConfig, "mergeConfig");
|
|
24670
|
+
var resolveConfig = /* @__PURE__ */ __name((config) => {
|
|
24671
|
+
const newConfig = mergeConfig({}, config);
|
|
24672
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
24673
|
+
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
24674
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
24675
|
+
if (auth) {
|
|
24676
|
+
headers.set(
|
|
24677
|
+
"Authorization",
|
|
24678
|
+
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
24679
|
+
);
|
|
24680
|
+
}
|
|
24681
|
+
let contentType;
|
|
24682
|
+
if (utils$1.isFormData(data)) {
|
|
24683
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
24684
|
+
headers.setContentType(void 0);
|
|
24685
|
+
} else if ((contentType = headers.getContentType()) !== false) {
|
|
24686
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
24687
|
+
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
24688
|
+
}
|
|
24689
|
+
}
|
|
24690
|
+
if (platform.hasStandardBrowserEnv) {
|
|
24691
|
+
withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
24692
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) {
|
|
24693
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
24694
|
+
if (xsrfValue) {
|
|
24695
|
+
headers.set(xsrfHeaderName, xsrfValue);
|
|
24696
|
+
}
|
|
24697
|
+
}
|
|
24698
|
+
}
|
|
24699
|
+
return newConfig;
|
|
24700
|
+
}, "resolveConfig");
|
|
24622
24701
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
24623
24702
|
var xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
24624
24703
|
return new Promise(/* @__PURE__ */ __name(function dispatchXhrRequest(resolve, reject) {
|
|
24625
|
-
|
|
24626
|
-
|
|
24627
|
-
|
|
24704
|
+
const _config = resolveConfig(config);
|
|
24705
|
+
let requestData = _config.data;
|
|
24706
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
24707
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
24628
24708
|
let onCanceled;
|
|
24709
|
+
let uploadThrottled, downloadThrottled;
|
|
24710
|
+
let flushUpload, flushDownload;
|
|
24629
24711
|
function done() {
|
|
24630
|
-
|
|
24631
|
-
|
|
24632
|
-
|
|
24633
|
-
|
|
24634
|
-
config.signal.removeEventListener("abort", onCanceled);
|
|
24635
|
-
}
|
|
24712
|
+
flushUpload && flushUpload();
|
|
24713
|
+
flushDownload && flushDownload();
|
|
24714
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
24715
|
+
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
24636
24716
|
}
|
|
24637
24717
|
__name(done, "done");
|
|
24638
|
-
let contentType;
|
|
24639
|
-
if (utils$1.isFormData(requestData)) {
|
|
24640
|
-
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
24641
|
-
requestHeaders.setContentType(false);
|
|
24642
|
-
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
|
24643
|
-
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
24644
|
-
requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
24645
|
-
}
|
|
24646
|
-
}
|
|
24647
24718
|
let request = new XMLHttpRequest();
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
24651
|
-
requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
|
|
24652
|
-
}
|
|
24653
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
24654
|
-
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
24655
|
-
request.timeout = config.timeout;
|
|
24719
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
24720
|
+
request.timeout = _config.timeout;
|
|
24656
24721
|
function onloadend() {
|
|
24657
24722
|
if (!request) {
|
|
24658
24723
|
return;
|
|
@@ -24704,10 +24769,10 @@ var require_axios = __commonJS({
|
|
|
24704
24769
|
request = null;
|
|
24705
24770
|
}, "handleError");
|
|
24706
24771
|
request.ontimeout = /* @__PURE__ */ __name(function handleTimeout() {
|
|
24707
|
-
let timeoutErrorMessage =
|
|
24708
|
-
const transitional =
|
|
24709
|
-
if (
|
|
24710
|
-
timeoutErrorMessage =
|
|
24772
|
+
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
24773
|
+
const transitional = _config.transitional || transitionalDefaults;
|
|
24774
|
+
if (_config.timeoutErrorMessage) {
|
|
24775
|
+
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
24711
24776
|
}
|
|
24712
24777
|
reject(new AxiosError(
|
|
24713
24778
|
timeoutErrorMessage,
|
|
@@ -24717,34 +24782,28 @@ var require_axios = __commonJS({
|
|
|
24717
24782
|
));
|
|
24718
24783
|
request = null;
|
|
24719
24784
|
}, "handleTimeout");
|
|
24720
|
-
if (platform.hasStandardBrowserEnv) {
|
|
24721
|
-
withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
|
|
24722
|
-
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(fullPath)) {
|
|
24723
|
-
const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
|
|
24724
|
-
if (xsrfValue) {
|
|
24725
|
-
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
24726
|
-
}
|
|
24727
|
-
}
|
|
24728
|
-
}
|
|
24729
24785
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
24730
24786
|
if ("setRequestHeader" in request) {
|
|
24731
24787
|
utils$1.forEach(requestHeaders.toJSON(), /* @__PURE__ */ __name(function setRequestHeader(val, key) {
|
|
24732
24788
|
request.setRequestHeader(key, val);
|
|
24733
24789
|
}, "setRequestHeader"));
|
|
24734
24790
|
}
|
|
24735
|
-
if (!utils$1.isUndefined(
|
|
24736
|
-
request.withCredentials = !!
|
|
24791
|
+
if (!utils$1.isUndefined(_config.withCredentials)) {
|
|
24792
|
+
request.withCredentials = !!_config.withCredentials;
|
|
24737
24793
|
}
|
|
24738
24794
|
if (responseType && responseType !== "json") {
|
|
24739
|
-
request.responseType =
|
|
24795
|
+
request.responseType = _config.responseType;
|
|
24740
24796
|
}
|
|
24741
|
-
if (
|
|
24742
|
-
|
|
24797
|
+
if (onDownloadProgress) {
|
|
24798
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
24799
|
+
request.addEventListener("progress", downloadThrottled);
|
|
24743
24800
|
}
|
|
24744
|
-
if (
|
|
24745
|
-
|
|
24801
|
+
if (onUploadProgress && request.upload) {
|
|
24802
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
24803
|
+
request.upload.addEventListener("progress", uploadThrottled);
|
|
24804
|
+
request.upload.addEventListener("loadend", flushUpload);
|
|
24746
24805
|
}
|
|
24747
|
-
if (
|
|
24806
|
+
if (_config.cancelToken || _config.signal) {
|
|
24748
24807
|
onCanceled = /* @__PURE__ */ __name((cancel) => {
|
|
24749
24808
|
if (!request) {
|
|
24750
24809
|
return;
|
|
@@ -24753,12 +24812,12 @@ var require_axios = __commonJS({
|
|
|
24753
24812
|
request.abort();
|
|
24754
24813
|
request = null;
|
|
24755
24814
|
}, "onCanceled");
|
|
24756
|
-
|
|
24757
|
-
if (
|
|
24758
|
-
|
|
24815
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
24816
|
+
if (_config.signal) {
|
|
24817
|
+
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
24759
24818
|
}
|
|
24760
24819
|
}
|
|
24761
|
-
const protocol = parseProtocol(
|
|
24820
|
+
const protocol = parseProtocol(_config.url);
|
|
24762
24821
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
24763
24822
|
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
24764
24823
|
return;
|
|
@@ -24766,9 +24825,300 @@ var require_axios = __commonJS({
|
|
|
24766
24825
|
request.send(requestData || null);
|
|
24767
24826
|
}, "dispatchXhrRequest"));
|
|
24768
24827
|
};
|
|
24828
|
+
var composeSignals = /* @__PURE__ */ __name((signals, timeout) => {
|
|
24829
|
+
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
24830
|
+
if (timeout || length) {
|
|
24831
|
+
let controller = new AbortController();
|
|
24832
|
+
let aborted;
|
|
24833
|
+
const onabort = /* @__PURE__ */ __name(function(reason) {
|
|
24834
|
+
if (!aborted) {
|
|
24835
|
+
aborted = true;
|
|
24836
|
+
unsubscribe();
|
|
24837
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
24838
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
24839
|
+
}
|
|
24840
|
+
}, "onabort");
|
|
24841
|
+
let timer = timeout && setTimeout(() => {
|
|
24842
|
+
timer = null;
|
|
24843
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
24844
|
+
}, timeout);
|
|
24845
|
+
const unsubscribe = /* @__PURE__ */ __name(() => {
|
|
24846
|
+
if (signals) {
|
|
24847
|
+
timer && clearTimeout(timer);
|
|
24848
|
+
timer = null;
|
|
24849
|
+
signals.forEach((signal2) => {
|
|
24850
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
24851
|
+
});
|
|
24852
|
+
signals = null;
|
|
24853
|
+
}
|
|
24854
|
+
}, "unsubscribe");
|
|
24855
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
24856
|
+
const { signal } = controller;
|
|
24857
|
+
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
24858
|
+
return signal;
|
|
24859
|
+
}
|
|
24860
|
+
}, "composeSignals");
|
|
24861
|
+
var composeSignals$1 = composeSignals;
|
|
24862
|
+
var streamChunk = /* @__PURE__ */ __name(function* (chunk, chunkSize) {
|
|
24863
|
+
let len = chunk.byteLength;
|
|
24864
|
+
if (!chunkSize || len < chunkSize) {
|
|
24865
|
+
yield chunk;
|
|
24866
|
+
return;
|
|
24867
|
+
}
|
|
24868
|
+
let pos = 0;
|
|
24869
|
+
let end;
|
|
24870
|
+
while (pos < len) {
|
|
24871
|
+
end = pos + chunkSize;
|
|
24872
|
+
yield chunk.slice(pos, end);
|
|
24873
|
+
pos = end;
|
|
24874
|
+
}
|
|
24875
|
+
}, "streamChunk");
|
|
24876
|
+
var readBytes = /* @__PURE__ */ __name(function(iterable, chunkSize) {
|
|
24877
|
+
return __asyncGenerator(this, null, function* () {
|
|
24878
|
+
try {
|
|
24879
|
+
for (var iter = __forAwait(readStream(iterable)), more, temp, error; more = !(temp = yield new __await(iter.next())).done; more = false) {
|
|
24880
|
+
const chunk = temp.value;
|
|
24881
|
+
yield* __yieldStar(streamChunk(chunk, chunkSize));
|
|
24882
|
+
}
|
|
24883
|
+
} catch (temp) {
|
|
24884
|
+
error = [temp];
|
|
24885
|
+
} finally {
|
|
24886
|
+
try {
|
|
24887
|
+
more && (temp = iter.return) && (yield new __await(temp.call(iter)));
|
|
24888
|
+
} finally {
|
|
24889
|
+
if (error)
|
|
24890
|
+
throw error[0];
|
|
24891
|
+
}
|
|
24892
|
+
}
|
|
24893
|
+
});
|
|
24894
|
+
}, "readBytes");
|
|
24895
|
+
var readStream = /* @__PURE__ */ __name(function(stream2) {
|
|
24896
|
+
return __asyncGenerator(this, null, function* () {
|
|
24897
|
+
if (stream2[Symbol.asyncIterator]) {
|
|
24898
|
+
yield* __yieldStar(stream2);
|
|
24899
|
+
return;
|
|
24900
|
+
}
|
|
24901
|
+
const reader = stream2.getReader();
|
|
24902
|
+
try {
|
|
24903
|
+
for (; ; ) {
|
|
24904
|
+
const { done, value } = yield new __await(reader.read());
|
|
24905
|
+
if (done) {
|
|
24906
|
+
break;
|
|
24907
|
+
}
|
|
24908
|
+
yield value;
|
|
24909
|
+
}
|
|
24910
|
+
} finally {
|
|
24911
|
+
yield new __await(reader.cancel());
|
|
24912
|
+
}
|
|
24913
|
+
});
|
|
24914
|
+
}, "readStream");
|
|
24915
|
+
var trackStream = /* @__PURE__ */ __name((stream2, chunkSize, onProgress, onFinish) => {
|
|
24916
|
+
const iterator = readBytes(stream2, chunkSize);
|
|
24917
|
+
let bytes = 0;
|
|
24918
|
+
let done;
|
|
24919
|
+
let _onFinish = /* @__PURE__ */ __name((e) => {
|
|
24920
|
+
if (!done) {
|
|
24921
|
+
done = true;
|
|
24922
|
+
onFinish && onFinish(e);
|
|
24923
|
+
}
|
|
24924
|
+
}, "_onFinish");
|
|
24925
|
+
return new ReadableStream({
|
|
24926
|
+
pull(controller) {
|
|
24927
|
+
return __async(this, null, function* () {
|
|
24928
|
+
try {
|
|
24929
|
+
const { done: done2, value } = yield iterator.next();
|
|
24930
|
+
if (done2) {
|
|
24931
|
+
_onFinish();
|
|
24932
|
+
controller.close();
|
|
24933
|
+
return;
|
|
24934
|
+
}
|
|
24935
|
+
let len = value.byteLength;
|
|
24936
|
+
if (onProgress) {
|
|
24937
|
+
let loadedBytes = bytes += len;
|
|
24938
|
+
onProgress(loadedBytes);
|
|
24939
|
+
}
|
|
24940
|
+
controller.enqueue(new Uint8Array(value));
|
|
24941
|
+
} catch (err) {
|
|
24942
|
+
_onFinish(err);
|
|
24943
|
+
throw err;
|
|
24944
|
+
}
|
|
24945
|
+
});
|
|
24946
|
+
},
|
|
24947
|
+
cancel(reason) {
|
|
24948
|
+
_onFinish(reason);
|
|
24949
|
+
return iterator.return();
|
|
24950
|
+
}
|
|
24951
|
+
}, {
|
|
24952
|
+
highWaterMark: 2
|
|
24953
|
+
});
|
|
24954
|
+
}, "trackStream");
|
|
24955
|
+
var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
24956
|
+
var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
24957
|
+
var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : (str) => __async(exports2, null, function* () {
|
|
24958
|
+
return new Uint8Array(yield new Response(str).arrayBuffer());
|
|
24959
|
+
}));
|
|
24960
|
+
var test = /* @__PURE__ */ __name((fn, ...args) => {
|
|
24961
|
+
try {
|
|
24962
|
+
return !!fn(...args);
|
|
24963
|
+
} catch (e) {
|
|
24964
|
+
return false;
|
|
24965
|
+
}
|
|
24966
|
+
}, "test");
|
|
24967
|
+
var supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
24968
|
+
let duplexAccessed = false;
|
|
24969
|
+
const hasContentType = new Request(platform.origin, {
|
|
24970
|
+
body: new ReadableStream(),
|
|
24971
|
+
method: "POST",
|
|
24972
|
+
get duplex() {
|
|
24973
|
+
duplexAccessed = true;
|
|
24974
|
+
return "half";
|
|
24975
|
+
}
|
|
24976
|
+
}).headers.has("Content-Type");
|
|
24977
|
+
return duplexAccessed && !hasContentType;
|
|
24978
|
+
});
|
|
24979
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
24980
|
+
var supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
24981
|
+
var resolvers = {
|
|
24982
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
24983
|
+
};
|
|
24984
|
+
isFetchSupported && ((res) => {
|
|
24985
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
24986
|
+
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
24987
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
24988
|
+
});
|
|
24989
|
+
});
|
|
24990
|
+
})(new Response());
|
|
24991
|
+
var getBodyLength = /* @__PURE__ */ __name((body) => __async(exports2, null, function* () {
|
|
24992
|
+
if (body == null) {
|
|
24993
|
+
return 0;
|
|
24994
|
+
}
|
|
24995
|
+
if (utils$1.isBlob(body)) {
|
|
24996
|
+
return body.size;
|
|
24997
|
+
}
|
|
24998
|
+
if (utils$1.isSpecCompliantForm(body)) {
|
|
24999
|
+
const _request = new Request(platform.origin, {
|
|
25000
|
+
method: "POST",
|
|
25001
|
+
body
|
|
25002
|
+
});
|
|
25003
|
+
return (yield _request.arrayBuffer()).byteLength;
|
|
25004
|
+
}
|
|
25005
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
25006
|
+
return body.byteLength;
|
|
25007
|
+
}
|
|
25008
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
25009
|
+
body = body + "";
|
|
25010
|
+
}
|
|
25011
|
+
if (utils$1.isString(body)) {
|
|
25012
|
+
return (yield encodeText(body)).byteLength;
|
|
25013
|
+
}
|
|
25014
|
+
}), "getBodyLength");
|
|
25015
|
+
var resolveBodyLength = /* @__PURE__ */ __name((headers, body) => __async(exports2, null, function* () {
|
|
25016
|
+
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
25017
|
+
return length == null ? getBodyLength(body) : length;
|
|
25018
|
+
}), "resolveBodyLength");
|
|
25019
|
+
var fetchAdapter = isFetchSupported && ((config) => __async(exports2, null, function* () {
|
|
25020
|
+
let {
|
|
25021
|
+
url: url2,
|
|
25022
|
+
method,
|
|
25023
|
+
data,
|
|
25024
|
+
signal,
|
|
25025
|
+
cancelToken,
|
|
25026
|
+
timeout,
|
|
25027
|
+
onDownloadProgress,
|
|
25028
|
+
onUploadProgress,
|
|
25029
|
+
responseType,
|
|
25030
|
+
headers,
|
|
25031
|
+
withCredentials = "same-origin",
|
|
25032
|
+
fetchOptions
|
|
25033
|
+
} = resolveConfig(config);
|
|
25034
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
25035
|
+
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
25036
|
+
let request;
|
|
25037
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
25038
|
+
composedSignal.unsubscribe();
|
|
25039
|
+
});
|
|
25040
|
+
let requestContentLength;
|
|
25041
|
+
try {
|
|
25042
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = yield resolveBodyLength(headers, data)) !== 0) {
|
|
25043
|
+
let _request = new Request(url2, {
|
|
25044
|
+
method: "POST",
|
|
25045
|
+
body: data,
|
|
25046
|
+
duplex: "half"
|
|
25047
|
+
});
|
|
25048
|
+
let contentTypeHeader;
|
|
25049
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
25050
|
+
headers.setContentType(contentTypeHeader);
|
|
25051
|
+
}
|
|
25052
|
+
if (_request.body) {
|
|
25053
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
25054
|
+
requestContentLength,
|
|
25055
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
25056
|
+
);
|
|
25057
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
25058
|
+
}
|
|
25059
|
+
}
|
|
25060
|
+
if (!utils$1.isString(withCredentials)) {
|
|
25061
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
25062
|
+
}
|
|
25063
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
25064
|
+
request = new Request(url2, __spreadProps(__spreadValues({}, fetchOptions), {
|
|
25065
|
+
signal: composedSignal,
|
|
25066
|
+
method: method.toUpperCase(),
|
|
25067
|
+
headers: headers.normalize().toJSON(),
|
|
25068
|
+
body: data,
|
|
25069
|
+
duplex: "half",
|
|
25070
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
25071
|
+
}));
|
|
25072
|
+
let response = yield fetch(request);
|
|
25073
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
25074
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
25075
|
+
const options = {};
|
|
25076
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
25077
|
+
options[prop] = response[prop];
|
|
25078
|
+
});
|
|
25079
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
25080
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
25081
|
+
responseContentLength,
|
|
25082
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
25083
|
+
) || [];
|
|
25084
|
+
response = new Response(
|
|
25085
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
25086
|
+
flush && flush();
|
|
25087
|
+
unsubscribe && unsubscribe();
|
|
25088
|
+
}),
|
|
25089
|
+
options
|
|
25090
|
+
);
|
|
25091
|
+
}
|
|
25092
|
+
responseType = responseType || "text";
|
|
25093
|
+
let responseData = yield resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
|
|
25094
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
25095
|
+
return yield new Promise((resolve, reject) => {
|
|
25096
|
+
settle(resolve, reject, {
|
|
25097
|
+
data: responseData,
|
|
25098
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
25099
|
+
status: response.status,
|
|
25100
|
+
statusText: response.statusText,
|
|
25101
|
+
config,
|
|
25102
|
+
request
|
|
25103
|
+
});
|
|
25104
|
+
});
|
|
25105
|
+
} catch (err) {
|
|
25106
|
+
unsubscribe && unsubscribe();
|
|
25107
|
+
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
25108
|
+
throw Object.assign(
|
|
25109
|
+
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
|
|
25110
|
+
{
|
|
25111
|
+
cause: err.cause || err
|
|
25112
|
+
}
|
|
25113
|
+
);
|
|
25114
|
+
}
|
|
25115
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
25116
|
+
}
|
|
25117
|
+
}));
|
|
24769
25118
|
var knownAdapters = {
|
|
24770
25119
|
http: httpAdapter,
|
|
24771
|
-
xhr: xhrAdapter
|
|
25120
|
+
xhr: xhrAdapter,
|
|
25121
|
+
fetch: fetchAdapter
|
|
24772
25122
|
};
|
|
24773
25123
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
24774
25124
|
if (fn) {
|
|
@@ -24782,7 +25132,7 @@ var require_axios = __commonJS({
|
|
|
24782
25132
|
var renderReason = /* @__PURE__ */ __name((reason) => `- ${reason}`, "renderReason");
|
|
24783
25133
|
var isResolvedHandle = /* @__PURE__ */ __name((adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false, "isResolvedHandle");
|
|
24784
25134
|
var adapters = {
|
|
24785
|
-
getAdapter: (adapters2) => {
|
|
25135
|
+
getAdapter: /* @__PURE__ */ __name((adapters2) => {
|
|
24786
25136
|
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
24787
25137
|
const { length } = adapters2;
|
|
24788
25138
|
let nameOrAdapter;
|
|
@@ -24814,7 +25164,7 @@ var require_axios = __commonJS({
|
|
|
24814
25164
|
);
|
|
24815
25165
|
}
|
|
24816
25166
|
return adapter;
|
|
24817
|
-
},
|
|
25167
|
+
}, "getAdapter"),
|
|
24818
25168
|
adapters: knownAdapters
|
|
24819
25169
|
};
|
|
24820
25170
|
function throwIfCancellationRequested(config) {
|
|
@@ -24862,90 +25212,6 @@ var require_axios = __commonJS({
|
|
|
24862
25212
|
}, "onAdapterRejection"));
|
|
24863
25213
|
}
|
|
24864
25214
|
__name(dispatchRequest, "dispatchRequest");
|
|
24865
|
-
var headersToObject = /* @__PURE__ */ __name((thing) => thing instanceof AxiosHeaders$1 ? __spreadValues({}, thing) : thing, "headersToObject");
|
|
24866
|
-
function mergeConfig(config1, config2) {
|
|
24867
|
-
config2 = config2 || {};
|
|
24868
|
-
const config = {};
|
|
24869
|
-
function getMergedValue(target, source, caseless) {
|
|
24870
|
-
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
24871
|
-
return utils$1.merge.call({ caseless }, target, source);
|
|
24872
|
-
} else if (utils$1.isPlainObject(source)) {
|
|
24873
|
-
return utils$1.merge({}, source);
|
|
24874
|
-
} else if (utils$1.isArray(source)) {
|
|
24875
|
-
return source.slice();
|
|
24876
|
-
}
|
|
24877
|
-
return source;
|
|
24878
|
-
}
|
|
24879
|
-
__name(getMergedValue, "getMergedValue");
|
|
24880
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
24881
|
-
if (!utils$1.isUndefined(b)) {
|
|
24882
|
-
return getMergedValue(a, b, caseless);
|
|
24883
|
-
} else if (!utils$1.isUndefined(a)) {
|
|
24884
|
-
return getMergedValue(void 0, a, caseless);
|
|
24885
|
-
}
|
|
24886
|
-
}
|
|
24887
|
-
__name(mergeDeepProperties, "mergeDeepProperties");
|
|
24888
|
-
function valueFromConfig2(a, b) {
|
|
24889
|
-
if (!utils$1.isUndefined(b)) {
|
|
24890
|
-
return getMergedValue(void 0, b);
|
|
24891
|
-
}
|
|
24892
|
-
}
|
|
24893
|
-
__name(valueFromConfig2, "valueFromConfig2");
|
|
24894
|
-
function defaultToConfig2(a, b) {
|
|
24895
|
-
if (!utils$1.isUndefined(b)) {
|
|
24896
|
-
return getMergedValue(void 0, b);
|
|
24897
|
-
} else if (!utils$1.isUndefined(a)) {
|
|
24898
|
-
return getMergedValue(void 0, a);
|
|
24899
|
-
}
|
|
24900
|
-
}
|
|
24901
|
-
__name(defaultToConfig2, "defaultToConfig2");
|
|
24902
|
-
function mergeDirectKeys(a, b, prop) {
|
|
24903
|
-
if (prop in config2) {
|
|
24904
|
-
return getMergedValue(a, b);
|
|
24905
|
-
} else if (prop in config1) {
|
|
24906
|
-
return getMergedValue(void 0, a);
|
|
24907
|
-
}
|
|
24908
|
-
}
|
|
24909
|
-
__name(mergeDirectKeys, "mergeDirectKeys");
|
|
24910
|
-
const mergeMap = {
|
|
24911
|
-
url: valueFromConfig2,
|
|
24912
|
-
method: valueFromConfig2,
|
|
24913
|
-
data: valueFromConfig2,
|
|
24914
|
-
baseURL: defaultToConfig2,
|
|
24915
|
-
transformRequest: defaultToConfig2,
|
|
24916
|
-
transformResponse: defaultToConfig2,
|
|
24917
|
-
paramsSerializer: defaultToConfig2,
|
|
24918
|
-
timeout: defaultToConfig2,
|
|
24919
|
-
timeoutMessage: defaultToConfig2,
|
|
24920
|
-
withCredentials: defaultToConfig2,
|
|
24921
|
-
withXSRFToken: defaultToConfig2,
|
|
24922
|
-
adapter: defaultToConfig2,
|
|
24923
|
-
responseType: defaultToConfig2,
|
|
24924
|
-
xsrfCookieName: defaultToConfig2,
|
|
24925
|
-
xsrfHeaderName: defaultToConfig2,
|
|
24926
|
-
onUploadProgress: defaultToConfig2,
|
|
24927
|
-
onDownloadProgress: defaultToConfig2,
|
|
24928
|
-
decompress: defaultToConfig2,
|
|
24929
|
-
maxContentLength: defaultToConfig2,
|
|
24930
|
-
maxBodyLength: defaultToConfig2,
|
|
24931
|
-
beforeRedirect: defaultToConfig2,
|
|
24932
|
-
transport: defaultToConfig2,
|
|
24933
|
-
httpAgent: defaultToConfig2,
|
|
24934
|
-
httpsAgent: defaultToConfig2,
|
|
24935
|
-
cancelToken: defaultToConfig2,
|
|
24936
|
-
socketPath: defaultToConfig2,
|
|
24937
|
-
responseEncoding: defaultToConfig2,
|
|
24938
|
-
validateStatus: mergeDirectKeys,
|
|
24939
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
24940
|
-
};
|
|
24941
|
-
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), /* @__PURE__ */ __name(function computeConfigValue(prop) {
|
|
24942
|
-
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
24943
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
24944
|
-
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
24945
|
-
}, "computeConfigValue"));
|
|
24946
|
-
return config;
|
|
24947
|
-
}
|
|
24948
|
-
__name(mergeConfig, "mergeConfig");
|
|
24949
25215
|
var validators$1 = {};
|
|
24950
25216
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
24951
25217
|
validators$1[type] = /* @__PURE__ */ __name(function validator2(thing) {
|
|
@@ -24977,6 +25243,12 @@ var require_axios = __commonJS({
|
|
|
24977
25243
|
return validator2 ? validator2(value, opt, opts) : true;
|
|
24978
25244
|
};
|
|
24979
25245
|
}, "transitional");
|
|
25246
|
+
validators$1.spelling = /* @__PURE__ */ __name(function spelling(correctSpelling) {
|
|
25247
|
+
return (value, opt) => {
|
|
25248
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
25249
|
+
return true;
|
|
25250
|
+
};
|
|
25251
|
+
}, "spelling");
|
|
24980
25252
|
function assertOptions(options, schema, allowUnknown) {
|
|
24981
25253
|
if (typeof options !== "object") {
|
|
24982
25254
|
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
@@ -25027,13 +25299,16 @@ var require_axios = __commonJS({
|
|
|
25027
25299
|
return yield this._request(configOrUrl, config);
|
|
25028
25300
|
} catch (err) {
|
|
25029
25301
|
if (err instanceof Error) {
|
|
25030
|
-
let dummy;
|
|
25031
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy
|
|
25302
|
+
let dummy = {};
|
|
25303
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
25032
25304
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
25033
|
-
|
|
25034
|
-
err.stack
|
|
25035
|
-
|
|
25036
|
-
err.stack
|
|
25305
|
+
try {
|
|
25306
|
+
if (!err.stack) {
|
|
25307
|
+
err.stack = stack;
|
|
25308
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
25309
|
+
err.stack += "\n" + stack;
|
|
25310
|
+
}
|
|
25311
|
+
} catch (e) {
|
|
25037
25312
|
}
|
|
25038
25313
|
}
|
|
25039
25314
|
throw err;
|
|
@@ -25068,6 +25343,16 @@ var require_axios = __commonJS({
|
|
|
25068
25343
|
}, true);
|
|
25069
25344
|
}
|
|
25070
25345
|
}
|
|
25346
|
+
if (config.allowAbsoluteUrls !== void 0) ;
|
|
25347
|
+
else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
25348
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
25349
|
+
} else {
|
|
25350
|
+
config.allowAbsoluteUrls = true;
|
|
25351
|
+
}
|
|
25352
|
+
validator.assertOptions(config, {
|
|
25353
|
+
baseUrl: validators.spelling("baseURL"),
|
|
25354
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
25355
|
+
}, true);
|
|
25071
25356
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
25072
25357
|
let contextHeaders = headers && utils$1.merge(
|
|
25073
25358
|
headers.common,
|
|
@@ -25134,7 +25419,7 @@ var require_axios = __commonJS({
|
|
|
25134
25419
|
}
|
|
25135
25420
|
getUri(config) {
|
|
25136
25421
|
config = mergeConfig(this.defaults, config);
|
|
25137
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
25422
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
25138
25423
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
25139
25424
|
}
|
|
25140
25425
|
};
|
|
@@ -25178,8 +25463,7 @@ var require_axios = __commonJS({
|
|
|
25178
25463
|
}, "promiseExecutor"));
|
|
25179
25464
|
const token = this;
|
|
25180
25465
|
this.promise.then((cancel) => {
|
|
25181
|
-
if (!token._listeners)
|
|
25182
|
-
return;
|
|
25466
|
+
if (!token._listeners) return;
|
|
25183
25467
|
let i = token._listeners.length;
|
|
25184
25468
|
while (i-- > 0) {
|
|
25185
25469
|
token._listeners[i](cancel);
|
|
@@ -25239,6 +25523,15 @@ var require_axios = __commonJS({
|
|
|
25239
25523
|
this._listeners.splice(index, 1);
|
|
25240
25524
|
}
|
|
25241
25525
|
}
|
|
25526
|
+
toAbortSignal() {
|
|
25527
|
+
const controller = new AbortController();
|
|
25528
|
+
const abort = /* @__PURE__ */ __name((err) => {
|
|
25529
|
+
controller.abort(err);
|
|
25530
|
+
}, "abort");
|
|
25531
|
+
this.subscribe(abort);
|
|
25532
|
+
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
25533
|
+
return controller.signal;
|
|
25534
|
+
}
|
|
25242
25535
|
/**
|
|
25243
25536
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
25244
25537
|
* cancels the `CancelToken`.
|
|
@@ -25403,7 +25696,7 @@ var require_array_examples_preparator = __commonJS({
|
|
|
25403
25696
|
}
|
|
25404
25697
|
/**
|
|
25405
25698
|
* Searches for all mentioned conventions, retrieves the convention object for each one of them, builds a `ConventionSchema` object.
|
|
25406
|
-
* @returns {}
|
|
25699
|
+
* @returns {}
|
|
25407
25700
|
*/
|
|
25408
25701
|
getConventions() {
|
|
25409
25702
|
return __async(this, null, function* () {
|
|
@@ -25521,5 +25814,8 @@ mime-types/index.js:
|
|
|
25521
25814
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
25522
25815
|
* MIT Licensed
|
|
25523
25816
|
*)
|
|
25817
|
+
|
|
25818
|
+
axios/dist/node/axios.cjs:
|
|
25819
|
+
(*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors *)
|
|
25524
25820
|
*/
|
|
25525
25821
|
//# sourceMappingURL=index.js.map
|