@nsshunt/stsrunnerframework 1.0.46 → 1.0.48
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.
|
@@ -1102,11 +1102,11 @@ function requireAnsiStyles$3() {
|
|
|
1102
1102
|
const offset = isBackground ? 10 : 0;
|
|
1103
1103
|
const styles = {};
|
|
1104
1104
|
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
1105
|
-
const
|
|
1105
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
1106
1106
|
if (sourceSpace === targetSpace) {
|
|
1107
|
-
styles[
|
|
1107
|
+
styles[name] = wrap2(identity, offset);
|
|
1108
1108
|
} else if (typeof suite === "object") {
|
|
1109
|
-
styles[
|
|
1109
|
+
styles[name] = wrap2(suite[targetSpace], offset);
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
return styles;
|
|
@@ -1203,16 +1203,16 @@ function requireAnsiStyles$3() {
|
|
|
1203
1203
|
})(ansiStyles$3);
|
|
1204
1204
|
return ansiStyles$3.exports;
|
|
1205
1205
|
}
|
|
1206
|
-
var browser$
|
|
1206
|
+
var browser$4;
|
|
1207
1207
|
var hasRequiredBrowser$3;
|
|
1208
1208
|
function requireBrowser$3() {
|
|
1209
|
-
if (hasRequiredBrowser$3) return browser$
|
|
1209
|
+
if (hasRequiredBrowser$3) return browser$4;
|
|
1210
1210
|
hasRequiredBrowser$3 = 1;
|
|
1211
|
-
browser$
|
|
1211
|
+
browser$4 = {
|
|
1212
1212
|
stdout: false,
|
|
1213
1213
|
stderr: false
|
|
1214
1214
|
};
|
|
1215
|
-
return browser$
|
|
1215
|
+
return browser$4;
|
|
1216
1216
|
}
|
|
1217
1217
|
var util$3;
|
|
1218
1218
|
var hasRequiredUtil$3;
|
|
@@ -1285,7 +1285,7 @@ function requireTemplates$3() {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
return ESCAPES.get(c) || c;
|
|
1287
1287
|
}
|
|
1288
|
-
function parseArguments(
|
|
1288
|
+
function parseArguments(name, arguments_) {
|
|
1289
1289
|
const results = [];
|
|
1290
1290
|
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
1291
1291
|
let matches;
|
|
@@ -1296,7 +1296,7 @@ function requireTemplates$3() {
|
|
|
1296
1296
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
1297
1297
|
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
1298
1298
|
} else {
|
|
1299
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${
|
|
1299
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
return results;
|
|
@@ -1306,12 +1306,12 @@ function requireTemplates$3() {
|
|
|
1306
1306
|
const results = [];
|
|
1307
1307
|
let matches;
|
|
1308
1308
|
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
1309
|
-
const
|
|
1309
|
+
const name = matches[1];
|
|
1310
1310
|
if (matches[2]) {
|
|
1311
|
-
const args = parseArguments(
|
|
1312
|
-
results.push([
|
|
1311
|
+
const args = parseArguments(name, matches[2]);
|
|
1312
|
+
results.push([name].concat(args));
|
|
1313
1313
|
} else {
|
|
1314
|
-
results.push([
|
|
1314
|
+
results.push([name]);
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
return results;
|
|
@@ -1765,20 +1765,20 @@ const isRegExp = kindOfTest("RegExp");
|
|
|
1765
1765
|
const reduceDescriptors = (obj, reducer) => {
|
|
1766
1766
|
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
1767
1767
|
const reducedDescriptors = {};
|
|
1768
|
-
forEach(descriptors2, (descriptor,
|
|
1768
|
+
forEach(descriptors2, (descriptor, name) => {
|
|
1769
1769
|
let ret;
|
|
1770
|
-
if ((ret = reducer(descriptor,
|
|
1771
|
-
reducedDescriptors[
|
|
1770
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
1771
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
1772
1772
|
}
|
|
1773
1773
|
});
|
|
1774
1774
|
Object.defineProperties(obj, reducedDescriptors);
|
|
1775
1775
|
};
|
|
1776
1776
|
const freezeMethods = (obj) => {
|
|
1777
|
-
reduceDescriptors(obj, (descriptor,
|
|
1778
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(
|
|
1777
|
+
reduceDescriptors(obj, (descriptor, name) => {
|
|
1778
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
1779
1779
|
return false;
|
|
1780
1780
|
}
|
|
1781
|
-
const value2 = obj[
|
|
1781
|
+
const value2 = obj[name];
|
|
1782
1782
|
if (!isFunction(value2)) return;
|
|
1783
1783
|
descriptor.enumerable = false;
|
|
1784
1784
|
if ("writable" in descriptor) {
|
|
@@ -1787,7 +1787,7 @@ const freezeMethods = (obj) => {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
if (!descriptor.set) {
|
|
1789
1789
|
descriptor.set = () => {
|
|
1790
|
-
throw Error("Can not rewrite read-only method '" +
|
|
1790
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
1791
1791
|
};
|
|
1792
1792
|
}
|
|
1793
1793
|
});
|
|
@@ -1929,7 +1929,7 @@ const utils$3 = {
|
|
|
1929
1929
|
setImmediate: _setImmediate,
|
|
1930
1930
|
asap
|
|
1931
1931
|
};
|
|
1932
|
-
function AxiosError(message2, code, config2, request2, response) {
|
|
1932
|
+
function AxiosError$1(message2, code, config2, request2, response) {
|
|
1933
1933
|
Error.call(this);
|
|
1934
1934
|
if (Error.captureStackTrace) {
|
|
1935
1935
|
Error.captureStackTrace(this, this.constructor);
|
|
@@ -1946,7 +1946,7 @@ function AxiosError(message2, code, config2, request2, response) {
|
|
|
1946
1946
|
this.status = response.status ? response.status : null;
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
|
-
utils$3.inherits(AxiosError, Error, {
|
|
1949
|
+
utils$3.inherits(AxiosError$1, Error, {
|
|
1950
1950
|
toJSON: function toJSON() {
|
|
1951
1951
|
return {
|
|
1952
1952
|
// Standard
|
|
@@ -1967,7 +1967,7 @@ utils$3.inherits(AxiosError, Error, {
|
|
|
1967
1967
|
};
|
|
1968
1968
|
}
|
|
1969
1969
|
});
|
|
1970
|
-
const prototype$1 = AxiosError.prototype;
|
|
1970
|
+
const prototype$1 = AxiosError$1.prototype;
|
|
1971
1971
|
const descriptors = {};
|
|
1972
1972
|
[
|
|
1973
1973
|
"ERR_BAD_OPTION_VALUE",
|
|
@@ -1986,16 +1986,16 @@ const descriptors = {};
|
|
|
1986
1986
|
].forEach((code) => {
|
|
1987
1987
|
descriptors[code] = { value: code };
|
|
1988
1988
|
});
|
|
1989
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
1989
|
+
Object.defineProperties(AxiosError$1, descriptors);
|
|
1990
1990
|
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
1991
|
-
AxiosError.from = (error, code, config2, request2, response, customProps) => {
|
|
1991
|
+
AxiosError$1.from = (error, code, config2, request2, response, customProps) => {
|
|
1992
1992
|
const axiosError = Object.create(prototype$1);
|
|
1993
1993
|
utils$3.toFlatObject(error, axiosError, function filter2(obj) {
|
|
1994
1994
|
return obj !== Error.prototype;
|
|
1995
1995
|
}, (prop) => {
|
|
1996
1996
|
return prop !== "isAxiosError";
|
|
1997
1997
|
});
|
|
1998
|
-
AxiosError.call(axiosError, error.message, code, config2, request2, response);
|
|
1998
|
+
AxiosError$1.call(axiosError, error.message, code, config2, request2, response);
|
|
1999
1999
|
axiosError.cause = error;
|
|
2000
2000
|
axiosError.name = error.name;
|
|
2001
2001
|
customProps && Object.assign(axiosError, customProps);
|
|
@@ -2021,7 +2021,7 @@ function isFlatArray(arr) {
|
|
|
2021
2021
|
const predicates = utils$3.toFlatObject(utils$3, {}, null, function filter(prop) {
|
|
2022
2022
|
return /^is[A-Z]/.test(prop);
|
|
2023
2023
|
});
|
|
2024
|
-
function toFormData(obj, formData, options) {
|
|
2024
|
+
function toFormData$1(obj, formData, options) {
|
|
2025
2025
|
if (!utils$3.isObject(obj)) {
|
|
2026
2026
|
throw new TypeError("target must be an object");
|
|
2027
2027
|
}
|
|
@@ -2048,7 +2048,7 @@ function toFormData(obj, formData, options) {
|
|
|
2048
2048
|
return value2.toISOString();
|
|
2049
2049
|
}
|
|
2050
2050
|
if (!useBlob && utils$3.isBlob(value2)) {
|
|
2051
|
-
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
2051
|
+
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
2052
2052
|
}
|
|
2053
2053
|
if (utils$3.isArrayBuffer(value2) || utils$3.isTypedArray(value2)) {
|
|
2054
2054
|
return useBlob && typeof Blob === "function" ? new Blob([value2]) : Buffer.from(value2);
|
|
@@ -2127,11 +2127,11 @@ function encode$3(str) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
function AxiosURLSearchParams(params, options) {
|
|
2129
2129
|
this._pairs = [];
|
|
2130
|
-
params && toFormData(params, this, options);
|
|
2130
|
+
params && toFormData$1(params, this, options);
|
|
2131
2131
|
}
|
|
2132
2132
|
const prototype = AxiosURLSearchParams.prototype;
|
|
2133
|
-
prototype.append = function append(
|
|
2134
|
-
this._pairs.push([
|
|
2133
|
+
prototype.append = function append(name, value2) {
|
|
2134
|
+
this._pairs.push([name, value2]);
|
|
2135
2135
|
};
|
|
2136
2136
|
prototype.toString = function toString2(encoder2) {
|
|
2137
2137
|
const _encode = encoder2 ? function(value2) {
|
|
@@ -2269,7 +2269,7 @@ const platform = {
|
|
|
2269
2269
|
...platform$1
|
|
2270
2270
|
};
|
|
2271
2271
|
function toURLEncodedForm(data, options) {
|
|
2272
|
-
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
2272
|
+
return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
2273
2273
|
visitor: function(value2, key, path, helpers) {
|
|
2274
2274
|
if (platform.isNode && utils$3.isBuffer(value2)) {
|
|
2275
2275
|
this.append(key, value2.toString("base64"));
|
|
@@ -2279,8 +2279,8 @@ function toURLEncodedForm(data, options) {
|
|
|
2279
2279
|
}
|
|
2280
2280
|
}, options));
|
|
2281
2281
|
}
|
|
2282
|
-
function parsePropPath(
|
|
2283
|
-
return utils$3.matchAll(/\w+|\[(\w*)]/g,
|
|
2282
|
+
function parsePropPath(name) {
|
|
2283
|
+
return utils$3.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
2284
2284
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
2285
2285
|
});
|
|
2286
2286
|
}
|
|
@@ -2298,32 +2298,32 @@ function arrayToObject(arr) {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
function formDataToJSON(formData) {
|
|
2300
2300
|
function buildPath(path, value2, target, index) {
|
|
2301
|
-
let
|
|
2302
|
-
if (
|
|
2303
|
-
const isNumericKey = Number.isFinite(+
|
|
2301
|
+
let name = path[index++];
|
|
2302
|
+
if (name === "__proto__") return true;
|
|
2303
|
+
const isNumericKey = Number.isFinite(+name);
|
|
2304
2304
|
const isLast = index >= path.length;
|
|
2305
|
-
|
|
2305
|
+
name = !name && utils$3.isArray(target) ? target.length : name;
|
|
2306
2306
|
if (isLast) {
|
|
2307
|
-
if (utils$3.hasOwnProp(target,
|
|
2308
|
-
target[
|
|
2307
|
+
if (utils$3.hasOwnProp(target, name)) {
|
|
2308
|
+
target[name] = [target[name], value2];
|
|
2309
2309
|
} else {
|
|
2310
|
-
target[
|
|
2310
|
+
target[name] = value2;
|
|
2311
2311
|
}
|
|
2312
2312
|
return !isNumericKey;
|
|
2313
2313
|
}
|
|
2314
|
-
if (!target[
|
|
2315
|
-
target[
|
|
2314
|
+
if (!target[name] || !utils$3.isObject(target[name])) {
|
|
2315
|
+
target[name] = [];
|
|
2316
2316
|
}
|
|
2317
|
-
const result = buildPath(path, value2, target[
|
|
2318
|
-
if (result && utils$3.isArray(target[
|
|
2319
|
-
target[
|
|
2317
|
+
const result = buildPath(path, value2, target[name], index);
|
|
2318
|
+
if (result && utils$3.isArray(target[name])) {
|
|
2319
|
+
target[name] = arrayToObject(target[name]);
|
|
2320
2320
|
}
|
|
2321
2321
|
return !isNumericKey;
|
|
2322
2322
|
}
|
|
2323
2323
|
if (utils$3.isFormData(formData) && utils$3.isFunction(formData.entries)) {
|
|
2324
2324
|
const obj = {};
|
|
2325
|
-
utils$3.forEachEntry(formData, (
|
|
2326
|
-
buildPath(parsePropPath(
|
|
2325
|
+
utils$3.forEachEntry(formData, (name, value2) => {
|
|
2326
|
+
buildPath(parsePropPath(name), value2, obj, 0);
|
|
2327
2327
|
});
|
|
2328
2328
|
return obj;
|
|
2329
2329
|
}
|
|
@@ -2340,7 +2340,7 @@ function stringifySafely(rawValue, parser, encoder2) {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
|
-
return (
|
|
2343
|
+
return (encoder2 || JSON.stringify)(rawValue);
|
|
2344
2344
|
}
|
|
2345
2345
|
const defaults = {
|
|
2346
2346
|
transitional: transitionalDefaults,
|
|
@@ -2373,7 +2373,7 @@ const defaults = {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
if ((isFileList2 = utils$3.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
2375
2375
|
const _FormData = this.env && this.env.FormData;
|
|
2376
|
-
return toFormData(
|
|
2376
|
+
return toFormData$1(
|
|
2377
2377
|
isFileList2 ? { "files[]": data } : data,
|
|
2378
2378
|
_FormData && new _FormData(),
|
|
2379
2379
|
this.formSerializer
|
|
@@ -2401,7 +2401,7 @@ const defaults = {
|
|
|
2401
2401
|
} catch (e) {
|
|
2402
2402
|
if (strictJSONParsing) {
|
|
2403
2403
|
if (e.name === "SyntaxError") {
|
|
2404
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
2404
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
2405
2405
|
}
|
|
2406
2406
|
throw e;
|
|
2407
2407
|
}
|
|
@@ -2529,7 +2529,7 @@ function buildAccessors(obj, header) {
|
|
|
2529
2529
|
});
|
|
2530
2530
|
});
|
|
2531
2531
|
}
|
|
2532
|
-
class AxiosHeaders {
|
|
2532
|
+
let AxiosHeaders$1 = class AxiosHeaders {
|
|
2533
2533
|
constructor(headers) {
|
|
2534
2534
|
headers && this.set(headers);
|
|
2535
2535
|
}
|
|
@@ -2684,9 +2684,9 @@ class AxiosHeaders {
|
|
|
2684
2684
|
utils$3.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
2685
2685
|
return this;
|
|
2686
2686
|
}
|
|
2687
|
-
}
|
|
2688
|
-
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2689
|
-
utils$3.reduceDescriptors(AxiosHeaders.prototype, ({ value: value2 }, key) => {
|
|
2687
|
+
};
|
|
2688
|
+
AxiosHeaders$1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2689
|
+
utils$3.reduceDescriptors(AxiosHeaders$1.prototype, ({ value: value2 }, key) => {
|
|
2690
2690
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
2691
2691
|
return {
|
|
2692
2692
|
get: () => value2,
|
|
@@ -2695,11 +2695,11 @@ utils$3.reduceDescriptors(AxiosHeaders.prototype, ({ value: value2 }, key) => {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
};
|
|
2697
2697
|
});
|
|
2698
|
-
utils$3.freezeMethods(AxiosHeaders);
|
|
2698
|
+
utils$3.freezeMethods(AxiosHeaders$1);
|
|
2699
2699
|
function transformData(fns, response) {
|
|
2700
2700
|
const config2 = this || defaults;
|
|
2701
2701
|
const context = response || config2;
|
|
2702
|
-
const headers = AxiosHeaders.from(context.headers);
|
|
2702
|
+
const headers = AxiosHeaders$1.from(context.headers);
|
|
2703
2703
|
let data = context.data;
|
|
2704
2704
|
utils$3.forEach(fns, function transform(fn) {
|
|
2705
2705
|
data = fn.call(config2, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -2707,14 +2707,14 @@ function transformData(fns, response) {
|
|
|
2707
2707
|
headers.normalize();
|
|
2708
2708
|
return data;
|
|
2709
2709
|
}
|
|
2710
|
-
function isCancel(value2) {
|
|
2710
|
+
function isCancel$1(value2) {
|
|
2711
2711
|
return !!(value2 && value2.__CANCEL__);
|
|
2712
2712
|
}
|
|
2713
|
-
function CanceledError(message2, config2, request2) {
|
|
2714
|
-
AxiosError.call(this, message2 == null ? "canceled" : message2, AxiosError.ERR_CANCELED, config2, request2);
|
|
2713
|
+
function CanceledError$1(message2, config2, request2) {
|
|
2714
|
+
AxiosError$1.call(this, message2 == null ? "canceled" : message2, AxiosError$1.ERR_CANCELED, config2, request2);
|
|
2715
2715
|
this.name = "CanceledError";
|
|
2716
2716
|
}
|
|
2717
|
-
utils$3.inherits(CanceledError, AxiosError, {
|
|
2717
|
+
utils$3.inherits(CanceledError$1, AxiosError$1, {
|
|
2718
2718
|
__CANCEL__: true
|
|
2719
2719
|
});
|
|
2720
2720
|
function settle(resolve, reject, response) {
|
|
@@ -2722,9 +2722,9 @@ function settle(resolve, reject, response) {
|
|
|
2722
2722
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
2723
2723
|
resolve(response);
|
|
2724
2724
|
} else {
|
|
2725
|
-
reject(new AxiosError(
|
|
2725
|
+
reject(new AxiosError$1(
|
|
2726
2726
|
"Request failed with status code " + response.status,
|
|
2727
|
-
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2727
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2728
2728
|
response.config,
|
|
2729
2729
|
response.request,
|
|
2730
2730
|
response
|
|
@@ -2843,20 +2843,20 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origi
|
|
|
2843
2843
|
const cookies = platform.hasStandardBrowserEnv ? (
|
|
2844
2844
|
// Standard browser envs support document.cookie
|
|
2845
2845
|
{
|
|
2846
|
-
write(
|
|
2847
|
-
const cookie2 = [
|
|
2846
|
+
write(name, value2, expires, path, domain, secure) {
|
|
2847
|
+
const cookie2 = [name + "=" + encodeURIComponent(value2)];
|
|
2848
2848
|
utils$3.isNumber(expires) && cookie2.push("expires=" + new Date(expires).toGMTString());
|
|
2849
2849
|
utils$3.isString(path) && cookie2.push("path=" + path);
|
|
2850
2850
|
utils$3.isString(domain) && cookie2.push("domain=" + domain);
|
|
2851
2851
|
secure === true && cookie2.push("secure");
|
|
2852
2852
|
document.cookie = cookie2.join("; ");
|
|
2853
2853
|
},
|
|
2854
|
-
read(
|
|
2855
|
-
const match = document.cookie.match(new RegExp("(^|;\\s*)(" +
|
|
2854
|
+
read(name) {
|
|
2855
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
2856
2856
|
return match ? decodeURIComponent(match[3]) : null;
|
|
2857
2857
|
},
|
|
2858
|
-
remove(
|
|
2859
|
-
this.write(
|
|
2858
|
+
remove(name) {
|
|
2859
|
+
this.write(name, "", Date.now() - 864e5);
|
|
2860
2860
|
}
|
|
2861
2861
|
}
|
|
2862
2862
|
) : (
|
|
@@ -2883,8 +2883,8 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
return requestedURL;
|
|
2885
2885
|
}
|
|
2886
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
2887
|
-
function mergeConfig(config1, config2) {
|
|
2886
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
2887
|
+
function mergeConfig$1(config1, config2) {
|
|
2888
2888
|
config2 = config2 || {};
|
|
2889
2889
|
const config3 = {};
|
|
2890
2890
|
function getMergedValue(target, source2, prop, caseless) {
|
|
@@ -2962,9 +2962,9 @@ function mergeConfig(config1, config2) {
|
|
|
2962
2962
|
return config3;
|
|
2963
2963
|
}
|
|
2964
2964
|
const resolveConfig = (config2) => {
|
|
2965
|
-
const newConfig = mergeConfig({}, config2);
|
|
2965
|
+
const newConfig = mergeConfig$1({}, config2);
|
|
2966
2966
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
2967
|
-
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
2967
|
+
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
2968
2968
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config2.params, config2.paramsSerializer);
|
|
2969
2969
|
if (auth) {
|
|
2970
2970
|
headers.set(
|
|
@@ -2997,7 +2997,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
|
2997
2997
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
2998
2998
|
const _config = resolveConfig(config2);
|
|
2999
2999
|
let requestData = _config.data;
|
|
3000
|
-
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
3000
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
3001
3001
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
3002
3002
|
let onCanceled;
|
|
3003
3003
|
let uploadThrottled, downloadThrottled;
|
|
@@ -3015,7 +3015,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
|
3015
3015
|
if (!request2) {
|
|
3016
3016
|
return;
|
|
3017
3017
|
}
|
|
3018
|
-
const responseHeaders = AxiosHeaders.from(
|
|
3018
|
+
const responseHeaders = AxiosHeaders$1.from(
|
|
3019
3019
|
"getAllResponseHeaders" in request2 && request2.getAllResponseHeaders()
|
|
3020
3020
|
);
|
|
3021
3021
|
const responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
|
|
@@ -3053,11 +3053,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
|
3053
3053
|
if (!request2) {
|
|
3054
3054
|
return;
|
|
3055
3055
|
}
|
|
3056
|
-
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config2, request2));
|
|
3056
|
+
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config2, request2));
|
|
3057
3057
|
request2 = null;
|
|
3058
3058
|
};
|
|
3059
3059
|
request2.onerror = function handleError() {
|
|
3060
|
-
reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config2, request2));
|
|
3060
|
+
reject(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config2, request2));
|
|
3061
3061
|
request2 = null;
|
|
3062
3062
|
};
|
|
3063
3063
|
request2.ontimeout = function handleTimeout() {
|
|
@@ -3066,9 +3066,9 @@ const xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
|
3066
3066
|
if (_config.timeoutErrorMessage) {
|
|
3067
3067
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3068
3068
|
}
|
|
3069
|
-
reject(new AxiosError(
|
|
3069
|
+
reject(new AxiosError$1(
|
|
3070
3070
|
timeoutErrorMessage,
|
|
3071
|
-
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
3071
|
+
transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
3072
3072
|
config2,
|
|
3073
3073
|
request2
|
|
3074
3074
|
));
|
|
@@ -3100,7 +3100,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
|
3100
3100
|
if (!request2) {
|
|
3101
3101
|
return;
|
|
3102
3102
|
}
|
|
3103
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config2, request2) : cancel);
|
|
3103
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config2, request2) : cancel);
|
|
3104
3104
|
request2.abort();
|
|
3105
3105
|
request2 = null;
|
|
3106
3106
|
};
|
|
@@ -3111,7 +3111,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
|
3111
3111
|
}
|
|
3112
3112
|
const protocol = parseProtocol(_config.url);
|
|
3113
3113
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
3114
|
-
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config2));
|
|
3114
|
+
reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config2));
|
|
3115
3115
|
return;
|
|
3116
3116
|
}
|
|
3117
3117
|
request2.send(requestData || null);
|
|
@@ -3127,12 +3127,12 @@ const composeSignals = (signals, timeout) => {
|
|
|
3127
3127
|
aborted = true;
|
|
3128
3128
|
unsubscribe();
|
|
3129
3129
|
const err = reason instanceof Error ? reason : this.reason;
|
|
3130
|
-
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
3130
|
+
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
3131
3131
|
}
|
|
3132
3132
|
};
|
|
3133
3133
|
let timer = timeout && setTimeout(() => {
|
|
3134
3134
|
timer = null;
|
|
3135
|
-
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
3135
|
+
onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
3136
3136
|
}, timeout);
|
|
3137
3137
|
const unsubscribe = () => {
|
|
3138
3138
|
if (signals) {
|
|
@@ -3255,7 +3255,7 @@ const resolvers = {
|
|
|
3255
3255
|
isFetchSupported && ((res) => {
|
|
3256
3256
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
3257
3257
|
!resolvers[type] && (resolvers[type] = utils$3.isFunction(res[type]) ? (res2) => res2[type]() : (_, config2) => {
|
|
3258
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config2);
|
|
3258
|
+
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config2);
|
|
3259
3259
|
});
|
|
3260
3260
|
});
|
|
3261
3261
|
})(new Response());
|
|
@@ -3367,7 +3367,7 @@ const fetchAdapter = isFetchSupported && (async (config2) => {
|
|
|
3367
3367
|
return await new Promise((resolve, reject) => {
|
|
3368
3368
|
settle(resolve, reject, {
|
|
3369
3369
|
data: responseData,
|
|
3370
|
-
headers: AxiosHeaders.from(response.headers),
|
|
3370
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
3371
3371
|
status: response.status,
|
|
3372
3372
|
statusText: response.statusText,
|
|
3373
3373
|
config: config2,
|
|
@@ -3378,13 +3378,13 @@ const fetchAdapter = isFetchSupported && (async (config2) => {
|
|
|
3378
3378
|
unsubscribe && unsubscribe();
|
|
3379
3379
|
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
3380
3380
|
throw Object.assign(
|
|
3381
|
-
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config2, request2),
|
|
3381
|
+
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config2, request2),
|
|
3382
3382
|
{
|
|
3383
3383
|
cause: err.cause || err
|
|
3384
3384
|
}
|
|
3385
3385
|
);
|
|
3386
3386
|
}
|
|
3387
|
-
throw AxiosError.from(err, err && err.code, config2, request2);
|
|
3387
|
+
throw AxiosError$1.from(err, err && err.code, config2, request2);
|
|
3388
3388
|
}
|
|
3389
3389
|
});
|
|
3390
3390
|
const knownAdapters = {
|
|
@@ -3417,7 +3417,7 @@ const adapters = {
|
|
|
3417
3417
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
3418
3418
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3419
3419
|
if (adapter === void 0) {
|
|
3420
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
3420
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
3421
3421
|
}
|
|
3422
3422
|
}
|
|
3423
3423
|
if (adapter) {
|
|
@@ -3430,7 +3430,7 @@ const adapters = {
|
|
|
3430
3430
|
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
3431
3431
|
);
|
|
3432
3432
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
3433
|
-
throw new AxiosError(
|
|
3433
|
+
throw new AxiosError$1(
|
|
3434
3434
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
3435
3435
|
"ERR_NOT_SUPPORT"
|
|
3436
3436
|
);
|
|
@@ -3444,12 +3444,12 @@ function throwIfCancellationRequested(config2) {
|
|
|
3444
3444
|
config2.cancelToken.throwIfRequested();
|
|
3445
3445
|
}
|
|
3446
3446
|
if (config2.signal && config2.signal.aborted) {
|
|
3447
|
-
throw new CanceledError(null, config2);
|
|
3447
|
+
throw new CanceledError$1(null, config2);
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
3450
3450
|
function dispatchRequest(config2) {
|
|
3451
3451
|
throwIfCancellationRequested(config2);
|
|
3452
|
-
config2.headers = AxiosHeaders.from(config2.headers);
|
|
3452
|
+
config2.headers = AxiosHeaders$1.from(config2.headers);
|
|
3453
3453
|
config2.data = transformData.call(
|
|
3454
3454
|
config2,
|
|
3455
3455
|
config2.transformRequest
|
|
@@ -3465,10 +3465,10 @@ function dispatchRequest(config2) {
|
|
|
3465
3465
|
config2.transformResponse,
|
|
3466
3466
|
response
|
|
3467
3467
|
);
|
|
3468
|
-
response.headers = AxiosHeaders.from(response.headers);
|
|
3468
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
3469
3469
|
return response;
|
|
3470
3470
|
}, function onAdapterRejection(reason) {
|
|
3471
|
-
if (!isCancel(reason)) {
|
|
3471
|
+
if (!isCancel$1(reason)) {
|
|
3472
3472
|
throwIfCancellationRequested(config2);
|
|
3473
3473
|
if (reason && reason.response) {
|
|
3474
3474
|
reason.response.data = transformData.call(
|
|
@@ -3476,13 +3476,13 @@ function dispatchRequest(config2) {
|
|
|
3476
3476
|
config2.transformResponse,
|
|
3477
3477
|
reason.response
|
|
3478
3478
|
);
|
|
3479
|
-
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
3479
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
3480
3480
|
}
|
|
3481
3481
|
}
|
|
3482
3482
|
return Promise.reject(reason);
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
|
-
const VERSION = "1.7.9";
|
|
3485
|
+
const VERSION$1 = "1.7.9";
|
|
3486
3486
|
const validators$2 = {};
|
|
3487
3487
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
3488
3488
|
validators$2[type] = function validator2(thing) {
|
|
@@ -3492,13 +3492,13 @@ const validators$2 = {};
|
|
|
3492
3492
|
const deprecatedWarnings = {};
|
|
3493
3493
|
validators$2.transitional = function transitional(validator2, version2, message2) {
|
|
3494
3494
|
function formatMessage(opt, desc) {
|
|
3495
|
-
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message2 ? ". " + message2 : "");
|
|
3495
|
+
return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message2 ? ". " + message2 : "");
|
|
3496
3496
|
}
|
|
3497
3497
|
return (value2, opt, opts) => {
|
|
3498
3498
|
if (validator2 === false) {
|
|
3499
|
-
throw new AxiosError(
|
|
3499
|
+
throw new AxiosError$1(
|
|
3500
3500
|
formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
|
|
3501
|
-
AxiosError.ERR_DEPRECATED
|
|
3501
|
+
AxiosError$1.ERR_DEPRECATED
|
|
3502
3502
|
);
|
|
3503
3503
|
}
|
|
3504
3504
|
if (version2 && !deprecatedWarnings[opt]) {
|
|
@@ -3521,7 +3521,7 @@ validators$2.spelling = function spelling(correctSpelling) {
|
|
|
3521
3521
|
};
|
|
3522
3522
|
function assertOptions(options, schema, allowUnknown) {
|
|
3523
3523
|
if (typeof options !== "object") {
|
|
3524
|
-
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3524
|
+
throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3525
3525
|
}
|
|
3526
3526
|
const keys = Object.keys(options);
|
|
3527
3527
|
let i = keys.length;
|
|
@@ -3532,12 +3532,12 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3532
3532
|
const value2 = options[opt];
|
|
3533
3533
|
const result = value2 === void 0 || validator2(value2, opt, options);
|
|
3534
3534
|
if (result !== true) {
|
|
3535
|
-
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3535
|
+
throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3536
3536
|
}
|
|
3537
3537
|
continue;
|
|
3538
3538
|
}
|
|
3539
3539
|
if (allowUnknown !== true) {
|
|
3540
|
-
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
3540
|
+
throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
3541
3541
|
}
|
|
3542
3542
|
}
|
|
3543
3543
|
}
|
|
@@ -3546,7 +3546,7 @@ const validator = {
|
|
|
3546
3546
|
validators: validators$2
|
|
3547
3547
|
};
|
|
3548
3548
|
const validators$1 = validator.validators;
|
|
3549
|
-
class Axios {
|
|
3549
|
+
let Axios$1 = class Axios {
|
|
3550
3550
|
constructor(instanceConfig) {
|
|
3551
3551
|
this.defaults = instanceConfig;
|
|
3552
3552
|
this.interceptors = {
|
|
@@ -3589,7 +3589,7 @@ class Axios {
|
|
|
3589
3589
|
} else {
|
|
3590
3590
|
config2 = configOrUrl || {};
|
|
3591
3591
|
}
|
|
3592
|
-
config2 = mergeConfig(this.defaults, config2);
|
|
3592
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
3593
3593
|
const { transitional: transitional2, paramsSerializer, headers } = config2;
|
|
3594
3594
|
if (transitional2 !== void 0) {
|
|
3595
3595
|
validator.assertOptions(transitional2, {
|
|
@@ -3625,7 +3625,7 @@ class Axios {
|
|
|
3625
3625
|
delete headers[method];
|
|
3626
3626
|
}
|
|
3627
3627
|
);
|
|
3628
|
-
config2.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
3628
|
+
config2.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
3629
3629
|
const requestInterceptorChain = [];
|
|
3630
3630
|
let synchronousRequestInterceptors = true;
|
|
3631
3631
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor2) {
|
|
@@ -3679,14 +3679,14 @@ class Axios {
|
|
|
3679
3679
|
return promise;
|
|
3680
3680
|
}
|
|
3681
3681
|
getUri(config2) {
|
|
3682
|
-
config2 = mergeConfig(this.defaults, config2);
|
|
3682
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
3683
3683
|
const fullPath = buildFullPath(config2.baseURL, config2.url);
|
|
3684
3684
|
return buildURL(fullPath, config2.params, config2.paramsSerializer);
|
|
3685
3685
|
}
|
|
3686
|
-
}
|
|
3686
|
+
};
|
|
3687
3687
|
utils$3.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
3688
|
-
Axios.prototype[method] = function(url, config2) {
|
|
3689
|
-
return this.request(mergeConfig(config2 || {}, {
|
|
3688
|
+
Axios$1.prototype[method] = function(url, config2) {
|
|
3689
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
3690
3690
|
method,
|
|
3691
3691
|
url,
|
|
3692
3692
|
data: (config2 || {}).data
|
|
@@ -3696,7 +3696,7 @@ utils$3.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
3696
3696
|
utils$3.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
3697
3697
|
function generateHTTPMethod(isForm) {
|
|
3698
3698
|
return function httpMethod(url, data, config2) {
|
|
3699
|
-
return this.request(mergeConfig(config2 || {}, {
|
|
3699
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
3700
3700
|
method,
|
|
3701
3701
|
headers: isForm ? {
|
|
3702
3702
|
"Content-Type": "multipart/form-data"
|
|
@@ -3706,10 +3706,10 @@ utils$3.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
3706
3706
|
}));
|
|
3707
3707
|
};
|
|
3708
3708
|
}
|
|
3709
|
-
Axios.prototype[method] = generateHTTPMethod();
|
|
3710
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
3709
|
+
Axios$1.prototype[method] = generateHTTPMethod();
|
|
3710
|
+
Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
3711
3711
|
});
|
|
3712
|
-
class CancelToken {
|
|
3712
|
+
let CancelToken$1 = class CancelToken {
|
|
3713
3713
|
constructor(executor) {
|
|
3714
3714
|
if (typeof executor !== "function") {
|
|
3715
3715
|
throw new TypeError("executor must be a function.");
|
|
@@ -3742,7 +3742,7 @@ class CancelToken {
|
|
|
3742
3742
|
if (token.reason) {
|
|
3743
3743
|
return;
|
|
3744
3744
|
}
|
|
3745
|
-
token.reason = new CanceledError(message2, config2, request2);
|
|
3745
|
+
token.reason = new CanceledError$1(message2, config2, request2);
|
|
3746
3746
|
resolvePromise(token.reason);
|
|
3747
3747
|
});
|
|
3748
3748
|
}
|
|
@@ -3803,16 +3803,16 @@ class CancelToken {
|
|
|
3803
3803
|
cancel
|
|
3804
3804
|
};
|
|
3805
3805
|
}
|
|
3806
|
-
}
|
|
3807
|
-
function spread(callback) {
|
|
3806
|
+
};
|
|
3807
|
+
function spread$1(callback) {
|
|
3808
3808
|
return function wrap2(arr) {
|
|
3809
3809
|
return callback.apply(null, arr);
|
|
3810
3810
|
};
|
|
3811
3811
|
}
|
|
3812
|
-
function isAxiosError(payload) {
|
|
3812
|
+
function isAxiosError$1(payload) {
|
|
3813
3813
|
return utils$3.isObject(payload) && payload.isAxiosError === true;
|
|
3814
3814
|
}
|
|
3815
|
-
const HttpStatusCode = {
|
|
3815
|
+
const HttpStatusCode$1 = {
|
|
3816
3816
|
Continue: 100,
|
|
3817
3817
|
SwitchingProtocols: 101,
|
|
3818
3818
|
Processing: 102,
|
|
@@ -3877,39 +3877,57 @@ const HttpStatusCode = {
|
|
|
3877
3877
|
NotExtended: 510,
|
|
3878
3878
|
NetworkAuthenticationRequired: 511
|
|
3879
3879
|
};
|
|
3880
|
-
Object.entries(HttpStatusCode).forEach(([key, value2]) => {
|
|
3881
|
-
HttpStatusCode[value2] = key;
|
|
3880
|
+
Object.entries(HttpStatusCode$1).forEach(([key, value2]) => {
|
|
3881
|
+
HttpStatusCode$1[value2] = key;
|
|
3882
3882
|
});
|
|
3883
3883
|
function createInstance(defaultConfig) {
|
|
3884
|
-
const context = new Axios(defaultConfig);
|
|
3885
|
-
const instance = bind(Axios.prototype.request, context);
|
|
3886
|
-
utils$3.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
3884
|
+
const context = new Axios$1(defaultConfig);
|
|
3885
|
+
const instance = bind(Axios$1.prototype.request, context);
|
|
3886
|
+
utils$3.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
3887
3887
|
utils$3.extend(instance, context, null, { allOwnKeys: true });
|
|
3888
3888
|
instance.create = function create(instanceConfig) {
|
|
3889
|
-
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
3889
|
+
return createInstance(mergeConfig$1(defaultConfig, instanceConfig));
|
|
3890
3890
|
};
|
|
3891
3891
|
return instance;
|
|
3892
3892
|
}
|
|
3893
3893
|
const axios = createInstance(defaults);
|
|
3894
|
-
axios.Axios = Axios;
|
|
3895
|
-
axios.CanceledError = CanceledError;
|
|
3896
|
-
axios.CancelToken = CancelToken;
|
|
3897
|
-
axios.isCancel = isCancel;
|
|
3898
|
-
axios.VERSION = VERSION;
|
|
3899
|
-
axios.toFormData = toFormData;
|
|
3900
|
-
axios.AxiosError = AxiosError;
|
|
3894
|
+
axios.Axios = Axios$1;
|
|
3895
|
+
axios.CanceledError = CanceledError$1;
|
|
3896
|
+
axios.CancelToken = CancelToken$1;
|
|
3897
|
+
axios.isCancel = isCancel$1;
|
|
3898
|
+
axios.VERSION = VERSION$1;
|
|
3899
|
+
axios.toFormData = toFormData$1;
|
|
3900
|
+
axios.AxiosError = AxiosError$1;
|
|
3901
3901
|
axios.Cancel = axios.CanceledError;
|
|
3902
3902
|
axios.all = function all(promises) {
|
|
3903
3903
|
return Promise.all(promises);
|
|
3904
3904
|
};
|
|
3905
|
-
axios.spread = spread;
|
|
3906
|
-
axios.isAxiosError = isAxiosError;
|
|
3907
|
-
axios.mergeConfig = mergeConfig;
|
|
3908
|
-
axios.AxiosHeaders = AxiosHeaders;
|
|
3905
|
+
axios.spread = spread$1;
|
|
3906
|
+
axios.isAxiosError = isAxiosError$1;
|
|
3907
|
+
axios.mergeConfig = mergeConfig$1;
|
|
3908
|
+
axios.AxiosHeaders = AxiosHeaders$1;
|
|
3909
3909
|
axios.formToJSON = (thing) => formDataToJSON(utils$3.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
3910
3910
|
axios.getAdapter = adapters.getAdapter;
|
|
3911
|
-
axios.HttpStatusCode = HttpStatusCode;
|
|
3911
|
+
axios.HttpStatusCode = HttpStatusCode$1;
|
|
3912
3912
|
axios.default = axios;
|
|
3913
|
+
const {
|
|
3914
|
+
Axios: Axios2,
|
|
3915
|
+
AxiosError,
|
|
3916
|
+
CanceledError,
|
|
3917
|
+
isCancel,
|
|
3918
|
+
CancelToken: CancelToken2,
|
|
3919
|
+
VERSION,
|
|
3920
|
+
all: all2,
|
|
3921
|
+
Cancel,
|
|
3922
|
+
isAxiosError,
|
|
3923
|
+
spread,
|
|
3924
|
+
toFormData,
|
|
3925
|
+
AxiosHeaders: AxiosHeaders2,
|
|
3926
|
+
HttpStatusCode,
|
|
3927
|
+
formToJSON,
|
|
3928
|
+
getAdapter,
|
|
3929
|
+
mergeConfig
|
|
3930
|
+
} = axios;
|
|
3913
3931
|
var __defProp$1 = Object.defineProperty;
|
|
3914
3932
|
var __typeError$1 = (msg) => {
|
|
3915
3933
|
throw TypeError(msg);
|
|
@@ -3948,7 +3966,7 @@ function getAugmentedNamespace(n) {
|
|
|
3948
3966
|
});
|
|
3949
3967
|
return a;
|
|
3950
3968
|
}
|
|
3951
|
-
var main$
|
|
3969
|
+
var main$1 = { exports: {} };
|
|
3952
3970
|
const __viteBrowserExternal$2 = {};
|
|
3953
3971
|
const __viteBrowserExternal$1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3954
3972
|
__proto__: null,
|
|
@@ -3961,7 +3979,7 @@ const require$$4$1 = {
|
|
|
3961
3979
|
};
|
|
3962
3980
|
var hasRequiredMain$1;
|
|
3963
3981
|
function requireMain$1() {
|
|
3964
|
-
if (hasRequiredMain$1) return main$
|
|
3982
|
+
if (hasRequiredMain$1) return main$1.exports;
|
|
3965
3983
|
hasRequiredMain$1 = 1;
|
|
3966
3984
|
const fs = require$$0$3;
|
|
3967
3985
|
const path = require$$1;
|
|
@@ -4216,15 +4234,15 @@ function requireMain$1() {
|
|
|
4216
4234
|
parse: parse2,
|
|
4217
4235
|
populate
|
|
4218
4236
|
};
|
|
4219
|
-
main$
|
|
4220
|
-
main$
|
|
4221
|
-
main$
|
|
4222
|
-
main$
|
|
4223
|
-
main$
|
|
4224
|
-
main$
|
|
4225
|
-
main$
|
|
4226
|
-
main$
|
|
4227
|
-
return main$
|
|
4237
|
+
main$1.exports.configDotenv = DotenvModule.configDotenv;
|
|
4238
|
+
main$1.exports._configVault = DotenvModule._configVault;
|
|
4239
|
+
main$1.exports._parseVault = DotenvModule._parseVault;
|
|
4240
|
+
main$1.exports.config = DotenvModule.config;
|
|
4241
|
+
main$1.exports.decrypt = DotenvModule.decrypt;
|
|
4242
|
+
main$1.exports.parse = DotenvModule.parse;
|
|
4243
|
+
main$1.exports.populate = DotenvModule.populate;
|
|
4244
|
+
main$1.exports = DotenvModule;
|
|
4245
|
+
return main$1.exports;
|
|
4228
4246
|
}
|
|
4229
4247
|
var mainExports$1 = requireMain$1();
|
|
4230
4248
|
const dotenv$1 = /* @__PURE__ */ getDefaultExportFromCjs(mainExports$1);
|
|
@@ -5234,11 +5252,11 @@ function requireAnsiStyles$1() {
|
|
|
5234
5252
|
const offset = isBackground ? 10 : 0;
|
|
5235
5253
|
const styles = {};
|
|
5236
5254
|
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
5237
|
-
const
|
|
5255
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
5238
5256
|
if (sourceSpace === targetSpace) {
|
|
5239
|
-
styles[
|
|
5257
|
+
styles[name] = wrap2(identity, offset);
|
|
5240
5258
|
} else if (typeof suite === "object") {
|
|
5241
|
-
styles[
|
|
5259
|
+
styles[name] = wrap2(suite[targetSpace], offset);
|
|
5242
5260
|
}
|
|
5243
5261
|
}
|
|
5244
5262
|
return styles;
|
|
@@ -5417,7 +5435,7 @@ function requireTemplates$1() {
|
|
|
5417
5435
|
}
|
|
5418
5436
|
return ESCAPES.get(c) || c;
|
|
5419
5437
|
}
|
|
5420
|
-
function parseArguments(
|
|
5438
|
+
function parseArguments(name, arguments_) {
|
|
5421
5439
|
const results = [];
|
|
5422
5440
|
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
5423
5441
|
let matches;
|
|
@@ -5428,7 +5446,7 @@ function requireTemplates$1() {
|
|
|
5428
5446
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
5429
5447
|
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
5430
5448
|
} else {
|
|
5431
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${
|
|
5449
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
5432
5450
|
}
|
|
5433
5451
|
}
|
|
5434
5452
|
return results;
|
|
@@ -5438,12 +5456,12 @@ function requireTemplates$1() {
|
|
|
5438
5456
|
const results = [];
|
|
5439
5457
|
let matches;
|
|
5440
5458
|
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
5441
|
-
const
|
|
5459
|
+
const name = matches[1];
|
|
5442
5460
|
if (matches[2]) {
|
|
5443
|
-
const args = parseArguments(
|
|
5444
|
-
results.push([
|
|
5461
|
+
const args = parseArguments(name, matches[2]);
|
|
5462
|
+
results.push([name].concat(args));
|
|
5445
5463
|
} else {
|
|
5446
|
-
results.push([
|
|
5464
|
+
results.push([name]);
|
|
5447
5465
|
}
|
|
5448
5466
|
}
|
|
5449
5467
|
return results;
|
|
@@ -6936,11 +6954,11 @@ function requireAnsiStyles$2() {
|
|
|
6936
6954
|
const offset = isBackground ? 10 : 0;
|
|
6937
6955
|
const styles = {};
|
|
6938
6956
|
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
6939
|
-
const
|
|
6957
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
6940
6958
|
if (sourceSpace === targetSpace) {
|
|
6941
|
-
styles[
|
|
6959
|
+
styles[name] = wrap2(identity, offset);
|
|
6942
6960
|
} else if (typeof suite === "object") {
|
|
6943
|
-
styles[
|
|
6961
|
+
styles[name] = wrap2(suite[targetSpace], offset);
|
|
6944
6962
|
}
|
|
6945
6963
|
}
|
|
6946
6964
|
return styles;
|
|
@@ -7037,16 +7055,16 @@ function requireAnsiStyles$2() {
|
|
|
7037
7055
|
})(ansiStyles$2);
|
|
7038
7056
|
return ansiStyles$2.exports;
|
|
7039
7057
|
}
|
|
7040
|
-
var browser$
|
|
7058
|
+
var browser$3;
|
|
7041
7059
|
var hasRequiredBrowser$2;
|
|
7042
7060
|
function requireBrowser$2() {
|
|
7043
|
-
if (hasRequiredBrowser$2) return browser$
|
|
7061
|
+
if (hasRequiredBrowser$2) return browser$3;
|
|
7044
7062
|
hasRequiredBrowser$2 = 1;
|
|
7045
|
-
browser$
|
|
7063
|
+
browser$3 = {
|
|
7046
7064
|
stdout: false,
|
|
7047
7065
|
stderr: false
|
|
7048
7066
|
};
|
|
7049
|
-
return browser$
|
|
7067
|
+
return browser$3;
|
|
7050
7068
|
}
|
|
7051
7069
|
var util$2;
|
|
7052
7070
|
var hasRequiredUtil$2;
|
|
@@ -7119,7 +7137,7 @@ function requireTemplates$2() {
|
|
|
7119
7137
|
}
|
|
7120
7138
|
return ESCAPES.get(c) || c;
|
|
7121
7139
|
}
|
|
7122
|
-
function parseArguments(
|
|
7140
|
+
function parseArguments(name, arguments_) {
|
|
7123
7141
|
const results = [];
|
|
7124
7142
|
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
7125
7143
|
let matches;
|
|
@@ -7130,7 +7148,7 @@ function requireTemplates$2() {
|
|
|
7130
7148
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
7131
7149
|
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
7132
7150
|
} else {
|
|
7133
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${
|
|
7151
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
7134
7152
|
}
|
|
7135
7153
|
}
|
|
7136
7154
|
return results;
|
|
@@ -7140,12 +7158,12 @@ function requireTemplates$2() {
|
|
|
7140
7158
|
const results = [];
|
|
7141
7159
|
let matches;
|
|
7142
7160
|
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
7143
|
-
const
|
|
7161
|
+
const name = matches[1];
|
|
7144
7162
|
if (matches[2]) {
|
|
7145
|
-
const args = parseArguments(
|
|
7146
|
-
results.push([
|
|
7163
|
+
const args = parseArguments(name, matches[2]);
|
|
7164
|
+
results.push([name].concat(args));
|
|
7147
7165
|
} else {
|
|
7148
|
-
results.push([
|
|
7166
|
+
results.push([name]);
|
|
7149
7167
|
}
|
|
7150
7168
|
}
|
|
7151
7169
|
return results;
|
|
@@ -7644,7 +7662,7 @@ class STSRest01Client {
|
|
|
7644
7662
|
return this;
|
|
7645
7663
|
});
|
|
7646
7664
|
__publicField$1(this, "PostResourceAR", async (resource, errorCb) => {
|
|
7647
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7665
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7648
7666
|
return await __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resource, null, null, errorCb);
|
|
7649
7667
|
});
|
|
7650
7668
|
__publicField$1(this, "PostResourceDBR", async (resource, errorCb) => {
|
|
@@ -7656,7 +7674,7 @@ class STSRest01Client {
|
|
|
7656
7674
|
return ((_a = await this.PostResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7657
7675
|
});
|
|
7658
7676
|
__publicField$1(this, "PutResourceAR", async (resource, errorCb) => {
|
|
7659
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7677
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7660
7678
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", resource, null, null, errorCb);
|
|
7661
7679
|
});
|
|
7662
7680
|
__publicField$1(this, "PutResourceDBR", async (resource, errorCb) => {
|
|
@@ -7668,7 +7686,7 @@ class STSRest01Client {
|
|
|
7668
7686
|
return ((_a = await this.PutResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7669
7687
|
});
|
|
7670
7688
|
__publicField$1(this, "PatchResourceAR", async (resource, errorCb) => {
|
|
7671
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7689
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7672
7690
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resource, null, null, errorCb);
|
|
7673
7691
|
});
|
|
7674
7692
|
__publicField$1(this, "PatchResourceDBR", async (resource, errorCb) => {
|
|
@@ -7680,7 +7698,7 @@ class STSRest01Client {
|
|
|
7680
7698
|
return ((_a = await this.PatchResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7681
7699
|
});
|
|
7682
7700
|
__publicField$1(this, "DeleteResourceAR", async (resource, errorCb) => {
|
|
7683
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7701
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7684
7702
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resource, null, null, errorCb);
|
|
7685
7703
|
});
|
|
7686
7704
|
__publicField$1(this, "DeleteResourceDBR", async (resource, errorCb) => {
|
|
@@ -7692,7 +7710,7 @@ class STSRest01Client {
|
|
|
7692
7710
|
return ((_a = await this.DeleteResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7693
7711
|
});
|
|
7694
7712
|
__publicField$1(this, "GetResourceAR", async (resource, filters, errorCb) => {
|
|
7695
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7713
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7696
7714
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7697
7715
|
url = `${url}?${filters}`;
|
|
7698
7716
|
}
|
|
@@ -7707,7 +7725,7 @@ class STSRest01Client {
|
|
|
7707
7725
|
return ((_a = await this.GetResourceDBR(resource, filters, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7708
7726
|
});
|
|
7709
7727
|
__publicField$1(this, "GetResourcesAR", async (filters, errorCb) => {
|
|
7710
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7728
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7711
7729
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7712
7730
|
url = `${url}?${filters}`;
|
|
7713
7731
|
}
|
|
@@ -7722,7 +7740,7 @@ class STSRest01Client {
|
|
|
7722
7740
|
return ((_a = await this.GetResourcesDBR(filters, errorCb)) == null ? void 0 : _a.map((r) => r.resdesc)) ?? null;
|
|
7723
7741
|
});
|
|
7724
7742
|
__publicField$1(this, "PostEntityAR", async (resourceEntity, errorCb) => {
|
|
7725
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7743
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities`;
|
|
7726
7744
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resourceEntity, null, null, errorCb);
|
|
7727
7745
|
});
|
|
7728
7746
|
__publicField$1(this, "PostEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7734,7 +7752,7 @@ class STSRest01Client {
|
|
|
7734
7752
|
return ((_a = await this.PostEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7735
7753
|
});
|
|
7736
7754
|
__publicField$1(this, "PutEntityAR", async (entity, errorCb) => {
|
|
7737
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7755
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${entity.resname}/entities/${entity.entname}`;
|
|
7738
7756
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", entity, null, null, errorCb);
|
|
7739
7757
|
});
|
|
7740
7758
|
__publicField$1(this, "PutEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7746,7 +7764,7 @@ class STSRest01Client {
|
|
|
7746
7764
|
return ((_a = await this.PutEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7747
7765
|
});
|
|
7748
7766
|
__publicField$1(this, "PatchEntityAR", async (resourceEntity, errorCb) => {
|
|
7749
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7767
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7750
7768
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resourceEntity, null, null, errorCb);
|
|
7751
7769
|
});
|
|
7752
7770
|
__publicField$1(this, "PatchEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7758,7 +7776,7 @@ class STSRest01Client {
|
|
|
7758
7776
|
return ((_a = await this.PatchEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7759
7777
|
});
|
|
7760
7778
|
__publicField$1(this, "DeleteEntityAR", async (resourceEntity, errorCb) => {
|
|
7761
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7779
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7762
7780
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resourceEntity, null, null, errorCb);
|
|
7763
7781
|
});
|
|
7764
7782
|
__publicField$1(this, "DeleteEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7770,7 +7788,7 @@ class STSRest01Client {
|
|
|
7770
7788
|
return ((_a = await this.DeleteEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7771
7789
|
});
|
|
7772
7790
|
__publicField$1(this, "GetEntityAR", async (resourceEntity, filters, errorCb) => {
|
|
7773
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7791
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7774
7792
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7775
7793
|
url = `${url}?${filters}`;
|
|
7776
7794
|
}
|
|
@@ -7785,7 +7803,7 @@ class STSRest01Client {
|
|
|
7785
7803
|
return ((_a = await this.GetEntityDBR(resourceEntity, filters, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7786
7804
|
});
|
|
7787
7805
|
__publicField$1(this, "GetEntitiesAR", async (resource, filters, errorCb) => {
|
|
7788
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7806
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}/entities`;
|
|
7789
7807
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7790
7808
|
url = `${url}?${filters}`;
|
|
7791
7809
|
}
|
|
@@ -8429,16 +8447,16 @@ var hasRequiredUtils$1;
|
|
|
8429
8447
|
function requireUtils$1() {
|
|
8430
8448
|
if (hasRequiredUtils$1) return utils$1;
|
|
8431
8449
|
hasRequiredUtils$1 = 1;
|
|
8432
|
-
(function(
|
|
8433
|
-
Object.defineProperty(
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8450
|
+
(function(exports) {
|
|
8451
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8452
|
+
exports.safeToString = exports.objectToString = void 0;
|
|
8453
|
+
exports.createPromiseCallback = createPromiseCallback;
|
|
8454
|
+
exports.inOperator = inOperator;
|
|
8437
8455
|
const objectToString = (obj) => Object.prototype.toString.call(obj);
|
|
8438
|
-
|
|
8456
|
+
exports.objectToString = objectToString;
|
|
8439
8457
|
const safeArrayToString = (arr, seenArrays) => {
|
|
8440
8458
|
if (typeof arr.join !== "function")
|
|
8441
|
-
return (0,
|
|
8459
|
+
return (0, exports.objectToString)(arr);
|
|
8442
8460
|
seenArrays.add(arr);
|
|
8443
8461
|
const mapped = arr.map((val) => val === null || val === void 0 || seenArrays.has(val) ? "" : safeToStringImpl(val, seenArrays));
|
|
8444
8462
|
return mapped.join();
|
|
@@ -8455,11 +8473,11 @@ function requireUtils$1() {
|
|
|
8455
8473
|
String(val)
|
|
8456
8474
|
);
|
|
8457
8475
|
} else {
|
|
8458
|
-
return (0,
|
|
8476
|
+
return (0, exports.objectToString)(val);
|
|
8459
8477
|
}
|
|
8460
8478
|
};
|
|
8461
8479
|
const safeToString = (val) => safeToStringImpl(val);
|
|
8462
|
-
|
|
8480
|
+
exports.safeToString = safeToString;
|
|
8463
8481
|
function createPromiseCallback(cb) {
|
|
8464
8482
|
let callback;
|
|
8465
8483
|
let resolve;
|
|
@@ -10629,77 +10647,77 @@ var hasRequiredCookie;
|
|
|
10629
10647
|
function requireCookie() {
|
|
10630
10648
|
if (hasRequiredCookie) return cookie$1;
|
|
10631
10649
|
hasRequiredCookie = 1;
|
|
10632
|
-
(function(
|
|
10633
|
-
Object.defineProperty(
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10650
|
+
(function(exports) {
|
|
10651
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10652
|
+
exports.permutePath = exports.parseDate = exports.formatDate = exports.domainMatch = exports.defaultPath = exports.CookieJar = exports.cookieCompare = exports.Cookie = exports.PrefixSecurityEnum = exports.canonicalDomain = exports.version = exports.ParameterError = exports.Store = exports.getPublicSuffix = exports.permuteDomain = exports.pathMatch = exports.MemoryCookieStore = void 0;
|
|
10653
|
+
exports.parse = parse2;
|
|
10654
|
+
exports.fromJSON = fromJSON;
|
|
10637
10655
|
var memstore_1 = requireMemstore();
|
|
10638
|
-
Object.defineProperty(
|
|
10656
|
+
Object.defineProperty(exports, "MemoryCookieStore", { enumerable: true, get: function() {
|
|
10639
10657
|
return memstore_1.MemoryCookieStore;
|
|
10640
10658
|
} });
|
|
10641
10659
|
var pathMatch_1 = requirePathMatch();
|
|
10642
|
-
Object.defineProperty(
|
|
10660
|
+
Object.defineProperty(exports, "pathMatch", { enumerable: true, get: function() {
|
|
10643
10661
|
return pathMatch_1.pathMatch;
|
|
10644
10662
|
} });
|
|
10645
10663
|
var permuteDomain_1 = requirePermuteDomain();
|
|
10646
|
-
Object.defineProperty(
|
|
10664
|
+
Object.defineProperty(exports, "permuteDomain", { enumerable: true, get: function() {
|
|
10647
10665
|
return permuteDomain_1.permuteDomain;
|
|
10648
10666
|
} });
|
|
10649
10667
|
var getPublicSuffix_1 = requireGetPublicSuffix();
|
|
10650
|
-
Object.defineProperty(
|
|
10668
|
+
Object.defineProperty(exports, "getPublicSuffix", { enumerable: true, get: function() {
|
|
10651
10669
|
return getPublicSuffix_1.getPublicSuffix;
|
|
10652
10670
|
} });
|
|
10653
10671
|
var store_1 = requireStore();
|
|
10654
|
-
Object.defineProperty(
|
|
10672
|
+
Object.defineProperty(exports, "Store", { enumerable: true, get: function() {
|
|
10655
10673
|
return store_1.Store;
|
|
10656
10674
|
} });
|
|
10657
10675
|
var validators_1 = requireValidators();
|
|
10658
|
-
Object.defineProperty(
|
|
10676
|
+
Object.defineProperty(exports, "ParameterError", { enumerable: true, get: function() {
|
|
10659
10677
|
return validators_1.ParameterError;
|
|
10660
10678
|
} });
|
|
10661
10679
|
var version_1 = requireVersion();
|
|
10662
|
-
Object.defineProperty(
|
|
10680
|
+
Object.defineProperty(exports, "version", { enumerable: true, get: function() {
|
|
10663
10681
|
return version_1.version;
|
|
10664
10682
|
} });
|
|
10665
10683
|
var canonicalDomain_1 = requireCanonicalDomain();
|
|
10666
|
-
Object.defineProperty(
|
|
10684
|
+
Object.defineProperty(exports, "canonicalDomain", { enumerable: true, get: function() {
|
|
10667
10685
|
return canonicalDomain_1.canonicalDomain;
|
|
10668
10686
|
} });
|
|
10669
10687
|
var constants_1 = requireConstants$1();
|
|
10670
|
-
Object.defineProperty(
|
|
10688
|
+
Object.defineProperty(exports, "PrefixSecurityEnum", { enumerable: true, get: function() {
|
|
10671
10689
|
return constants_1.PrefixSecurityEnum;
|
|
10672
10690
|
} });
|
|
10673
10691
|
var cookie_1 = requireCookie$1();
|
|
10674
|
-
Object.defineProperty(
|
|
10692
|
+
Object.defineProperty(exports, "Cookie", { enumerable: true, get: function() {
|
|
10675
10693
|
return cookie_1.Cookie;
|
|
10676
10694
|
} });
|
|
10677
10695
|
var cookieCompare_1 = requireCookieCompare();
|
|
10678
|
-
Object.defineProperty(
|
|
10696
|
+
Object.defineProperty(exports, "cookieCompare", { enumerable: true, get: function() {
|
|
10679
10697
|
return cookieCompare_1.cookieCompare;
|
|
10680
10698
|
} });
|
|
10681
10699
|
var cookieJar_1 = requireCookieJar();
|
|
10682
|
-
Object.defineProperty(
|
|
10700
|
+
Object.defineProperty(exports, "CookieJar", { enumerable: true, get: function() {
|
|
10683
10701
|
return cookieJar_1.CookieJar;
|
|
10684
10702
|
} });
|
|
10685
10703
|
var defaultPath_1 = requireDefaultPath();
|
|
10686
|
-
Object.defineProperty(
|
|
10704
|
+
Object.defineProperty(exports, "defaultPath", { enumerable: true, get: function() {
|
|
10687
10705
|
return defaultPath_1.defaultPath;
|
|
10688
10706
|
} });
|
|
10689
10707
|
var domainMatch_1 = requireDomainMatch();
|
|
10690
|
-
Object.defineProperty(
|
|
10708
|
+
Object.defineProperty(exports, "domainMatch", { enumerable: true, get: function() {
|
|
10691
10709
|
return domainMatch_1.domainMatch;
|
|
10692
10710
|
} });
|
|
10693
10711
|
var formatDate_1 = requireFormatDate();
|
|
10694
|
-
Object.defineProperty(
|
|
10712
|
+
Object.defineProperty(exports, "formatDate", { enumerable: true, get: function() {
|
|
10695
10713
|
return formatDate_1.formatDate;
|
|
10696
10714
|
} });
|
|
10697
10715
|
var parseDate_1 = requireParseDate();
|
|
10698
|
-
Object.defineProperty(
|
|
10716
|
+
Object.defineProperty(exports, "parseDate", { enumerable: true, get: function() {
|
|
10699
10717
|
return parseDate_1.parseDate;
|
|
10700
10718
|
} });
|
|
10701
10719
|
var permutePath_1 = requirePermutePath();
|
|
10702
|
-
Object.defineProperty(
|
|
10720
|
+
Object.defineProperty(exports, "permutePath", { enumerable: true, get: function() {
|
|
10703
10721
|
return permutePath_1.permutePath;
|
|
10704
10722
|
} });
|
|
10705
10723
|
const cookie_2 = requireCookie$1();
|
|
@@ -10721,7 +10739,7 @@ var hasRequiredSafeBuffer;
|
|
|
10721
10739
|
function requireSafeBuffer() {
|
|
10722
10740
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
10723
10741
|
hasRequiredSafeBuffer = 1;
|
|
10724
|
-
(function(module,
|
|
10742
|
+
(function(module, exports) {
|
|
10725
10743
|
var buffer = require$$0$4;
|
|
10726
10744
|
var Buffer2 = buffer.Buffer;
|
|
10727
10745
|
function copyProps(src2, dst) {
|
|
@@ -10732,8 +10750,8 @@ function requireSafeBuffer() {
|
|
|
10732
10750
|
if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {
|
|
10733
10751
|
module.exports = buffer;
|
|
10734
10752
|
} else {
|
|
10735
|
-
copyProps(buffer,
|
|
10736
|
-
|
|
10753
|
+
copyProps(buffer, exports);
|
|
10754
|
+
exports.Buffer = SafeBuffer;
|
|
10737
10755
|
}
|
|
10738
10756
|
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
10739
10757
|
return Buffer2(arg, encodingOrOffset, length);
|
|
@@ -11657,9 +11675,9 @@ function requireMs() {
|
|
|
11657
11675
|
}
|
|
11658
11676
|
return ms2 + " ms";
|
|
11659
11677
|
}
|
|
11660
|
-
function plural(ms2, msAbs, n,
|
|
11678
|
+
function plural(ms2, msAbs, n, name) {
|
|
11661
11679
|
var isPlural = msAbs >= n * 1.5;
|
|
11662
|
-
return Math.round(ms2 / n) + " " +
|
|
11680
|
+
return Math.round(ms2 / n) + " " + name + (isPlural ? "s" : "");
|
|
11663
11681
|
}
|
|
11664
11682
|
return ms;
|
|
11665
11683
|
}
|
|
@@ -11732,19 +11750,19 @@ var hasRequiredRe;
|
|
|
11732
11750
|
function requireRe() {
|
|
11733
11751
|
if (hasRequiredRe) return re.exports;
|
|
11734
11752
|
hasRequiredRe = 1;
|
|
11735
|
-
(function(module,
|
|
11753
|
+
(function(module, exports) {
|
|
11736
11754
|
const {
|
|
11737
11755
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
11738
11756
|
MAX_SAFE_BUILD_LENGTH,
|
|
11739
11757
|
MAX_LENGTH
|
|
11740
11758
|
} = requireConstants();
|
|
11741
11759
|
const debug = requireDebug();
|
|
11742
|
-
|
|
11743
|
-
const re2 =
|
|
11744
|
-
const safeRe =
|
|
11745
|
-
const src2 =
|
|
11746
|
-
const safeSrc =
|
|
11747
|
-
const t =
|
|
11760
|
+
exports = module.exports = {};
|
|
11761
|
+
const re2 = exports.re = [];
|
|
11762
|
+
const safeRe = exports.safeRe = [];
|
|
11763
|
+
const src2 = exports.src = [];
|
|
11764
|
+
const safeSrc = exports.safeSrc = [];
|
|
11765
|
+
const t = exports.t = {};
|
|
11748
11766
|
let R = 0;
|
|
11749
11767
|
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
11750
11768
|
const safeRegexReplacements = [
|
|
@@ -11758,11 +11776,11 @@ function requireRe() {
|
|
|
11758
11776
|
}
|
|
11759
11777
|
return value2;
|
|
11760
11778
|
};
|
|
11761
|
-
const createToken = (
|
|
11779
|
+
const createToken = (name, value2, isGlobal) => {
|
|
11762
11780
|
const safe = makeSafeRegex(value2);
|
|
11763
11781
|
const index = R++;
|
|
11764
|
-
debug(
|
|
11765
|
-
t[
|
|
11782
|
+
debug(name, index, value2);
|
|
11783
|
+
t[name] = index;
|
|
11766
11784
|
src2[index] = value2;
|
|
11767
11785
|
safeSrc[index] = safe;
|
|
11768
11786
|
re2[index] = new RegExp(value2, isGlobal ? "g" : void 0);
|
|
@@ -11797,18 +11815,18 @@ function requireRe() {
|
|
|
11797
11815
|
createToken("COERCERTLFULL", src2[t.COERCEFULL], true);
|
|
11798
11816
|
createToken("LONETILDE", "(?:~>?)");
|
|
11799
11817
|
createToken("TILDETRIM", `(\\s*)${src2[t.LONETILDE]}\\s+`, true);
|
|
11800
|
-
|
|
11818
|
+
exports.tildeTrimReplace = "$1~";
|
|
11801
11819
|
createToken("TILDE", `^${src2[t.LONETILDE]}${src2[t.XRANGEPLAIN]}$`);
|
|
11802
11820
|
createToken("TILDELOOSE", `^${src2[t.LONETILDE]}${src2[t.XRANGEPLAINLOOSE]}$`);
|
|
11803
11821
|
createToken("LONECARET", "(?:\\^)");
|
|
11804
11822
|
createToken("CARETTRIM", `(\\s*)${src2[t.LONECARET]}\\s+`, true);
|
|
11805
|
-
|
|
11823
|
+
exports.caretTrimReplace = "$1^";
|
|
11806
11824
|
createToken("CARET", `^${src2[t.LONECARET]}${src2[t.XRANGEPLAIN]}$`);
|
|
11807
11825
|
createToken("CARETLOOSE", `^${src2[t.LONECARET]}${src2[t.XRANGEPLAINLOOSE]}$`);
|
|
11808
11826
|
createToken("COMPARATORLOOSE", `^${src2[t.GTLT]}\\s*(${src2[t.LOOSEPLAIN]})$|^$`);
|
|
11809
11827
|
createToken("COMPARATOR", `^${src2[t.GTLT]}\\s*(${src2[t.FULLPLAIN]})$|^$`);
|
|
11810
11828
|
createToken("COMPARATORTRIM", `(\\s*)${src2[t.GTLT]}\\s*(${src2[t.LOOSEPLAIN]}|${src2[t.XRANGEPLAIN]})`, true);
|
|
11811
|
-
|
|
11829
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
11812
11830
|
createToken("HYPHENRANGE", `^\\s*(${src2[t.XRANGEPLAIN]})\\s+-\\s+(${src2[t.XRANGEPLAIN]})\\s*$`);
|
|
11813
11831
|
createToken("HYPHENRANGELOOSE", `^\\s*(${src2[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src2[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
11814
11832
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
@@ -14033,7 +14051,7 @@ function requireLodash_includes() {
|
|
|
14033
14051
|
return value2 === 0 ? value2 : 0;
|
|
14034
14052
|
}
|
|
14035
14053
|
value2 = toNumber(value2);
|
|
14036
|
-
if (value2 === INFINITY || value2 === -
|
|
14054
|
+
if (value2 === INFINITY || value2 === -Infinity) {
|
|
14037
14055
|
var sign2 = value2 < 0 ? -1 : 1;
|
|
14038
14056
|
return sign2 * MAX_INTEGER;
|
|
14039
14057
|
}
|
|
@@ -14119,7 +14137,7 @@ function requireLodash_isinteger() {
|
|
|
14119
14137
|
return value2 === 0 ? value2 : 0;
|
|
14120
14138
|
}
|
|
14121
14139
|
value2 = toNumber(value2);
|
|
14122
|
-
if (value2 === INFINITY || value2 === -
|
|
14140
|
+
if (value2 === INFINITY || value2 === -Infinity) {
|
|
14123
14141
|
var sign2 = value2 < 0 ? -1 : 1;
|
|
14124
14142
|
return sign2 * MAX_INTEGER;
|
|
14125
14143
|
}
|
|
@@ -14278,7 +14296,7 @@ function requireLodash_once() {
|
|
|
14278
14296
|
return value2 === 0 ? value2 : 0;
|
|
14279
14297
|
}
|
|
14280
14298
|
value2 = toNumber(value2);
|
|
14281
|
-
if (value2 === INFINITY || value2 === -
|
|
14299
|
+
if (value2 === INFINITY || value2 === -Infinity) {
|
|
14282
14300
|
var sign2 = value2 < 0 ? -1 : 1;
|
|
14283
14301
|
return sign2 * MAX_INTEGER;
|
|
14284
14302
|
}
|
|
@@ -14607,7 +14625,7 @@ function jwtDecode(token, options) {
|
|
|
14607
14625
|
}
|
|
14608
14626
|
}
|
|
14609
14627
|
var src = { exports: {} };
|
|
14610
|
-
var browser$
|
|
14628
|
+
var browser$2 = { exports: {} };
|
|
14611
14629
|
var common;
|
|
14612
14630
|
var hasRequiredCommon;
|
|
14613
14631
|
function requireCommon() {
|
|
@@ -14736,19 +14754,19 @@ function requireCommon() {
|
|
|
14736
14754
|
createDebug.enable("");
|
|
14737
14755
|
return namespaces;
|
|
14738
14756
|
}
|
|
14739
|
-
function enabled(
|
|
14740
|
-
if (
|
|
14757
|
+
function enabled(name) {
|
|
14758
|
+
if (name[name.length - 1] === "*") {
|
|
14741
14759
|
return true;
|
|
14742
14760
|
}
|
|
14743
14761
|
let i;
|
|
14744
14762
|
let len;
|
|
14745
14763
|
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
14746
|
-
if (createDebug.skips[i].test(
|
|
14764
|
+
if (createDebug.skips[i].test(name)) {
|
|
14747
14765
|
return false;
|
|
14748
14766
|
}
|
|
14749
14767
|
}
|
|
14750
14768
|
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
14751
|
-
if (createDebug.names[i].test(
|
|
14769
|
+
if (createDebug.names[i].test(name)) {
|
|
14752
14770
|
return true;
|
|
14753
14771
|
}
|
|
14754
14772
|
}
|
|
@@ -14774,15 +14792,15 @@ function requireCommon() {
|
|
|
14774
14792
|
}
|
|
14775
14793
|
var hasRequiredBrowser$1;
|
|
14776
14794
|
function requireBrowser$1() {
|
|
14777
|
-
if (hasRequiredBrowser$1) return browser$
|
|
14795
|
+
if (hasRequiredBrowser$1) return browser$2.exports;
|
|
14778
14796
|
hasRequiredBrowser$1 = 1;
|
|
14779
|
-
(function(module,
|
|
14780
|
-
|
|
14781
|
-
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
|
|
14785
|
-
|
|
14797
|
+
(function(module, exports) {
|
|
14798
|
+
exports.formatArgs = formatArgs;
|
|
14799
|
+
exports.save = save;
|
|
14800
|
+
exports.load = load;
|
|
14801
|
+
exports.useColors = useColors;
|
|
14802
|
+
exports.storage = localstorage();
|
|
14803
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
14786
14804
|
let warned = false;
|
|
14787
14805
|
return () => {
|
|
14788
14806
|
if (!warned) {
|
|
@@ -14791,7 +14809,7 @@ function requireBrowser$1() {
|
|
|
14791
14809
|
}
|
|
14792
14810
|
};
|
|
14793
14811
|
})();
|
|
14794
|
-
|
|
14812
|
+
exports.colors = [
|
|
14795
14813
|
"#0000CC",
|
|
14796
14814
|
"#0000FF",
|
|
14797
14815
|
"#0033CC",
|
|
@@ -14903,14 +14921,14 @@ function requireBrowser$1() {
|
|
|
14903
14921
|
});
|
|
14904
14922
|
args.splice(lastC, 0, c);
|
|
14905
14923
|
}
|
|
14906
|
-
|
|
14924
|
+
exports.log = console.debug || console.log || (() => {
|
|
14907
14925
|
});
|
|
14908
14926
|
function save(namespaces) {
|
|
14909
14927
|
try {
|
|
14910
14928
|
if (namespaces) {
|
|
14911
|
-
|
|
14929
|
+
exports.storage.setItem("debug", namespaces);
|
|
14912
14930
|
} else {
|
|
14913
|
-
|
|
14931
|
+
exports.storage.removeItem("debug");
|
|
14914
14932
|
}
|
|
14915
14933
|
} catch (error) {
|
|
14916
14934
|
}
|
|
@@ -14918,7 +14936,7 @@ function requireBrowser$1() {
|
|
|
14918
14936
|
function load() {
|
|
14919
14937
|
let r;
|
|
14920
14938
|
try {
|
|
14921
|
-
r =
|
|
14939
|
+
r = exports.storage.getItem("debug");
|
|
14922
14940
|
} catch (error) {
|
|
14923
14941
|
}
|
|
14924
14942
|
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
@@ -14932,7 +14950,7 @@ function requireBrowser$1() {
|
|
|
14932
14950
|
} catch (error) {
|
|
14933
14951
|
}
|
|
14934
14952
|
}
|
|
14935
|
-
module.exports = requireCommon()(
|
|
14953
|
+
module.exports = requireCommon()(exports);
|
|
14936
14954
|
const { formatters } = module.exports;
|
|
14937
14955
|
formatters.j = function(v) {
|
|
14938
14956
|
try {
|
|
@@ -14941,8 +14959,8 @@ function requireBrowser$1() {
|
|
|
14941
14959
|
return "[UnexpectedJSONParseError]: " + error.message;
|
|
14942
14960
|
}
|
|
14943
14961
|
};
|
|
14944
|
-
})(browser$
|
|
14945
|
-
return browser$
|
|
14962
|
+
})(browser$2, browser$2.exports);
|
|
14963
|
+
return browser$2.exports;
|
|
14946
14964
|
}
|
|
14947
14965
|
const crypto$1 = crypto;
|
|
14948
14966
|
const isCryptoKey = (key) => key instanceof CryptoKey;
|
|
@@ -15259,11 +15277,11 @@ const timingSafeEqual = (a, b) => {
|
|
|
15259
15277
|
}
|
|
15260
15278
|
return out === 0;
|
|
15261
15279
|
};
|
|
15262
|
-
function unusable(
|
|
15263
|
-
return new TypeError(`CryptoKey does not support this operation, its ${prop} must be ${
|
|
15280
|
+
function unusable(name, prop = "algorithm.name") {
|
|
15281
|
+
return new TypeError(`CryptoKey does not support this operation, its ${prop} must be ${name}`);
|
|
15264
15282
|
}
|
|
15265
|
-
function isAlgorithm(algorithm,
|
|
15266
|
-
return algorithm.name ===
|
|
15283
|
+
function isAlgorithm(algorithm, name) {
|
|
15284
|
+
return algorithm.name === name;
|
|
15267
15285
|
}
|
|
15268
15286
|
function getHashLength(hash) {
|
|
15269
15287
|
return parseInt(hash.name.slice(4), 10);
|
|
@@ -15438,7 +15456,7 @@ function withAlg(alg, actual, ...types2) {
|
|
|
15438
15456
|
const isKeyLike = (key) => {
|
|
15439
15457
|
return isCryptoKey(key);
|
|
15440
15458
|
};
|
|
15441
|
-
const types
|
|
15459
|
+
const types = ["CryptoKey"];
|
|
15442
15460
|
async function cbcDecrypt(enc, cek, ciphertext, iv, tag, aad) {
|
|
15443
15461
|
if (!(cek instanceof Uint8Array)) {
|
|
15444
15462
|
throw new TypeError(invalidKeyInput(cek, "Uint8Array"));
|
|
@@ -15490,7 +15508,7 @@ async function gcmDecrypt(enc, cek, ciphertext, iv, tag, aad) {
|
|
|
15490
15508
|
}
|
|
15491
15509
|
const decrypt$2 = async (enc, cek, ciphertext, iv, tag, aad) => {
|
|
15492
15510
|
if (!isCryptoKey(cek) && !(cek instanceof Uint8Array)) {
|
|
15493
|
-
throw new TypeError(invalidKeyInput(cek, ...types
|
|
15511
|
+
throw new TypeError(invalidKeyInput(cek, ...types, "Uint8Array"));
|
|
15494
15512
|
}
|
|
15495
15513
|
checkIvLength(enc, iv);
|
|
15496
15514
|
switch (enc) {
|
|
@@ -15571,7 +15589,7 @@ function getCryptoKey$2(key, alg, usage) {
|
|
|
15571
15589
|
if (key instanceof Uint8Array) {
|
|
15572
15590
|
return crypto$1.subtle.importKey("raw", key, "AES-KW", true, [usage]);
|
|
15573
15591
|
}
|
|
15574
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15592
|
+
throw new TypeError(invalidKeyInput(key, ...types, "Uint8Array"));
|
|
15575
15593
|
}
|
|
15576
15594
|
const wrap$1 = async (alg, key, cek) => {
|
|
15577
15595
|
const cryptoKey = await getCryptoKey$2(key, alg, "wrapKey");
|
|
@@ -15587,11 +15605,11 @@ const unwrap$1 = async (alg, key, encryptedKey) => {
|
|
|
15587
15605
|
};
|
|
15588
15606
|
async function deriveKey$1(publicKey, privateKey, algorithm, keyLength, apu = new Uint8Array(0), apv = new Uint8Array(0)) {
|
|
15589
15607
|
if (!isCryptoKey(publicKey)) {
|
|
15590
|
-
throw new TypeError(invalidKeyInput(publicKey, ...types
|
|
15608
|
+
throw new TypeError(invalidKeyInput(publicKey, ...types));
|
|
15591
15609
|
}
|
|
15592
15610
|
checkEncCryptoKey(publicKey, "ECDH");
|
|
15593
15611
|
if (!isCryptoKey(privateKey)) {
|
|
15594
|
-
throw new TypeError(invalidKeyInput(privateKey, ...types
|
|
15612
|
+
throw new TypeError(invalidKeyInput(privateKey, ...types));
|
|
15595
15613
|
}
|
|
15596
15614
|
checkEncCryptoKey(privateKey, "ECDH", "deriveBits");
|
|
15597
15615
|
const value2 = concat(lengthAndInput(encoder.encode(algorithm)), lengthAndInput(apu), lengthAndInput(apv), uint32be(keyLength));
|
|
@@ -15611,13 +15629,13 @@ async function deriveKey$1(publicKey, privateKey, algorithm, keyLength, apu = ne
|
|
|
15611
15629
|
}
|
|
15612
15630
|
async function generateEpk(key) {
|
|
15613
15631
|
if (!isCryptoKey(key)) {
|
|
15614
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15632
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15615
15633
|
}
|
|
15616
15634
|
return crypto$1.subtle.generateKey(key.algorithm, true, ["deriveBits"]);
|
|
15617
15635
|
}
|
|
15618
15636
|
function ecdhAllowed(key) {
|
|
15619
15637
|
if (!isCryptoKey(key)) {
|
|
15620
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15638
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15621
15639
|
}
|
|
15622
15640
|
return ["P-256", "P-384", "P-521"].includes(key.algorithm.namedCurve) || key.algorithm.name === "X25519" || key.algorithm.name === "X448";
|
|
15623
15641
|
}
|
|
@@ -15634,7 +15652,7 @@ function getCryptoKey$1(key, alg) {
|
|
|
15634
15652
|
checkEncCryptoKey(key, alg, "deriveBits", "deriveKey");
|
|
15635
15653
|
return key;
|
|
15636
15654
|
}
|
|
15637
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15655
|
+
throw new TypeError(invalidKeyInput(key, ...types, "Uint8Array"));
|
|
15638
15656
|
}
|
|
15639
15657
|
async function deriveKey(p2s$1, alg, p2c, key) {
|
|
15640
15658
|
checkP2s(p2s$1);
|
|
@@ -15689,7 +15707,7 @@ const checkKeyLength = (alg, key) => {
|
|
|
15689
15707
|
};
|
|
15690
15708
|
const encrypt$1 = async (alg, key, cek) => {
|
|
15691
15709
|
if (!isCryptoKey(key)) {
|
|
15692
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15710
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15693
15711
|
}
|
|
15694
15712
|
checkEncCryptoKey(key, alg, "encrypt", "wrapKey");
|
|
15695
15713
|
checkKeyLength(alg, key);
|
|
@@ -15704,7 +15722,7 @@ const encrypt$1 = async (alg, key, cek) => {
|
|
|
15704
15722
|
};
|
|
15705
15723
|
const decrypt = async (alg, key, encryptedKey) => {
|
|
15706
15724
|
if (!isCryptoKey(key)) {
|
|
15707
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15725
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15708
15726
|
}
|
|
15709
15727
|
checkEncCryptoKey(key, alg, "decrypt", "unwrapKey");
|
|
15710
15728
|
checkKeyLength(alg, key);
|
|
@@ -15743,7 +15761,7 @@ ${newlined}
|
|
|
15743
15761
|
};
|
|
15744
15762
|
const genericExport = async (keyType, keyFormat, key) => {
|
|
15745
15763
|
if (!isCryptoKey(key)) {
|
|
15746
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15764
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15747
15765
|
}
|
|
15748
15766
|
if (!key.extractable) {
|
|
15749
15767
|
throw new TypeError("CryptoKey is not extractable");
|
|
@@ -16120,30 +16138,30 @@ const symmetricTypeCheck = (alg, key) => {
|
|
|
16120
16138
|
if (key instanceof Uint8Array)
|
|
16121
16139
|
return;
|
|
16122
16140
|
if (!isKeyLike(key)) {
|
|
16123
|
-
throw new TypeError(withAlg(alg, key, ...types
|
|
16141
|
+
throw new TypeError(withAlg(alg, key, ...types, "Uint8Array"));
|
|
16124
16142
|
}
|
|
16125
16143
|
if (key.type !== "secret") {
|
|
16126
|
-
throw new TypeError(`${types
|
|
16144
|
+
throw new TypeError(`${types.join(" or ")} instances for symmetric algorithms must be of type "secret"`);
|
|
16127
16145
|
}
|
|
16128
16146
|
};
|
|
16129
16147
|
const asymmetricTypeCheck = (alg, key, usage) => {
|
|
16130
16148
|
if (!isKeyLike(key)) {
|
|
16131
|
-
throw new TypeError(withAlg(alg, key, ...types
|
|
16149
|
+
throw new TypeError(withAlg(alg, key, ...types));
|
|
16132
16150
|
}
|
|
16133
16151
|
if (key.type === "secret") {
|
|
16134
|
-
throw new TypeError(`${types
|
|
16152
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);
|
|
16135
16153
|
}
|
|
16136
16154
|
if (usage === "sign" && key.type === "public") {
|
|
16137
|
-
throw new TypeError(`${types
|
|
16155
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);
|
|
16138
16156
|
}
|
|
16139
16157
|
if (usage === "decrypt" && key.type === "public") {
|
|
16140
|
-
throw new TypeError(`${types
|
|
16158
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);
|
|
16141
16159
|
}
|
|
16142
16160
|
if (key.algorithm && usage === "verify" && key.type === "private") {
|
|
16143
|
-
throw new TypeError(`${types
|
|
16161
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);
|
|
16144
16162
|
}
|
|
16145
16163
|
if (key.algorithm && usage === "encrypt" && key.type === "private") {
|
|
16146
|
-
throw new TypeError(`${types
|
|
16164
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
16147
16165
|
}
|
|
16148
16166
|
};
|
|
16149
16167
|
const checkKeyType = (alg, key, usage) => {
|
|
@@ -16192,7 +16210,7 @@ async function gcmEncrypt(enc, plaintext, cek, iv, aad) {
|
|
|
16192
16210
|
}
|
|
16193
16211
|
const encrypt = async (enc, plaintext, cek, iv, aad) => {
|
|
16194
16212
|
if (!isCryptoKey(cek) && !(cek instanceof Uint8Array)) {
|
|
16195
|
-
throw new TypeError(invalidKeyInput(cek, ...types
|
|
16213
|
+
throw new TypeError(invalidKeyInput(cek, ...types, "Uint8Array"));
|
|
16196
16214
|
}
|
|
16197
16215
|
checkIvLength(enc, iv);
|
|
16198
16216
|
switch (enc) {
|
|
@@ -16574,7 +16592,7 @@ const keyToJWK = async (key) => {
|
|
|
16574
16592
|
};
|
|
16575
16593
|
}
|
|
16576
16594
|
if (!isCryptoKey(key)) {
|
|
16577
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
16595
|
+
throw new TypeError(invalidKeyInput(key, ...types, "Uint8Array"));
|
|
16578
16596
|
}
|
|
16579
16597
|
if (!key.extractable) {
|
|
16580
16598
|
throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");
|
|
@@ -17013,11 +17031,11 @@ function getCryptoKey(alg, key, usage) {
|
|
|
17013
17031
|
}
|
|
17014
17032
|
if (key instanceof Uint8Array) {
|
|
17015
17033
|
if (!alg.startsWith("HS")) {
|
|
17016
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
17034
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
17017
17035
|
}
|
|
17018
17036
|
return crypto$1.subtle.importKey("raw", key, { hash: `SHA-${alg.slice(-3)}`, name: "HMAC" }, false, [usage]);
|
|
17019
17037
|
}
|
|
17020
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
17038
|
+
throw new TypeError(invalidKeyInput(key, ...types, "Uint8Array"));
|
|
17021
17039
|
}
|
|
17022
17040
|
const verify = async (alg, key, signature, data) => {
|
|
17023
17041
|
const cryptoKey = await getCryptoKey(alg, key, "verify");
|
|
@@ -17649,9 +17667,9 @@ class EncryptJWT extends ProduceJWT {
|
|
|
17649
17667
|
return enc.encrypt(key, options);
|
|
17650
17668
|
}
|
|
17651
17669
|
}
|
|
17652
|
-
const check = (value2,
|
|
17670
|
+
const check = (value2, description) => {
|
|
17653
17671
|
if (typeof value2 !== "string" || !value2) {
|
|
17654
|
-
throw new JWKInvalid(`${
|
|
17672
|
+
throw new JWKInvalid(`${description} missing or invalid`);
|
|
17655
17673
|
}
|
|
17656
17674
|
};
|
|
17657
17675
|
async function calculateJwkThumbprint(jwk, digestAlgorithm) {
|
|
@@ -18141,7 +18159,7 @@ async function generateSecret(alg, options) {
|
|
|
18141
18159
|
return generateSecret$1(alg, options);
|
|
18142
18160
|
}
|
|
18143
18161
|
const value = "WebCryptoAPI";
|
|
18144
|
-
const browser$
|
|
18162
|
+
const browser$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18145
18163
|
__proto__: null,
|
|
18146
18164
|
CompactEncrypt,
|
|
18147
18165
|
CompactSign,
|
|
@@ -18180,7 +18198,7 @@ const browser$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
|
|
|
18180
18198
|
jwtDecrypt,
|
|
18181
18199
|
jwtVerify
|
|
18182
18200
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18183
|
-
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace$1(browser$
|
|
18201
|
+
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace$1(browser$1);
|
|
18184
18202
|
var JwksError_1;
|
|
18185
18203
|
var hasRequiredJwksError;
|
|
18186
18204
|
function requireJwksError() {
|
|
@@ -18991,7 +19009,7 @@ var hasRequiredLodash_clonedeep;
|
|
|
18991
19009
|
function requireLodash_clonedeep() {
|
|
18992
19010
|
if (hasRequiredLodash_clonedeep) return lodash_clonedeep.exports;
|
|
18993
19011
|
hasRequiredLodash_clonedeep = 1;
|
|
18994
|
-
(function(module,
|
|
19012
|
+
(function(module, exports) {
|
|
18995
19013
|
var LARGE_ARRAY_SIZE = 200;
|
|
18996
19014
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
18997
19015
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
@@ -19007,7 +19025,7 @@ function requireLodash_clonedeep() {
|
|
|
19007
19025
|
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
19008
19026
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
19009
19027
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
19010
|
-
var freeExports =
|
|
19028
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
19011
19029
|
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
19012
19030
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
19013
19031
|
function addMapEntry(map, pair) {
|
|
@@ -20632,48 +20650,20 @@ function requireSrc() {
|
|
|
20632
20650
|
}
|
|
20633
20651
|
var srcExports = requireSrc();
|
|
20634
20652
|
const jwksClient = /* @__PURE__ */ getDefaultExportFromCjs$1(srcExports);
|
|
20635
|
-
var main
|
|
20653
|
+
var main = { exports: {} };
|
|
20636
20654
|
const __viteBrowserExternal = {};
|
|
20637
20655
|
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20638
20656
|
__proto__: null,
|
|
20639
20657
|
default: __viteBrowserExternal
|
|
20640
20658
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20641
20659
|
const require$$0 = /* @__PURE__ */ getAugmentedNamespace$1(__viteBrowserExternal$1);
|
|
20642
|
-
const name = "dotenv";
|
|
20643
20660
|
const version = "16.4.7";
|
|
20644
|
-
const description = "Loads environment variables from .env file";
|
|
20645
|
-
const main = "lib/main.js";
|
|
20646
|
-
const types = "lib/main.d.ts";
|
|
20647
|
-
const exports = { ".": { "types": "./lib/main.d.ts", "require": "./lib/main.js", "default": "./lib/main.js" }, "./config": "./config.js", "./config.js": "./config.js", "./lib/env-options": "./lib/env-options.js", "./lib/env-options.js": "./lib/env-options.js", "./lib/cli-options": "./lib/cli-options.js", "./lib/cli-options.js": "./lib/cli-options.js", "./package.json": "./package.json" };
|
|
20648
|
-
const scripts = { "dts-check": "tsc --project tests/types/tsconfig.json", "lint": "standard", "pretest": "npm run lint && npm run dts-check", "test": "tap run --allow-empty-coverage --disable-coverage --timeout=60000", "test:coverage": "tap run --show-full-coverage --timeout=60000 --coverage-report=lcov", "prerelease": "npm test", "release": "standard-version" };
|
|
20649
|
-
const repository = { "type": "git", "url": "git://github.com/motdotla/dotenv.git" };
|
|
20650
|
-
const funding = "https://dotenvx.com";
|
|
20651
|
-
const keywords = ["dotenv", "env", ".env", "environment", "variables", "config", "settings"];
|
|
20652
|
-
const readmeFilename = "README.md";
|
|
20653
|
-
const license = "BSD-2-Clause";
|
|
20654
|
-
const devDependencies = { "@types/node": "^18.11.3", "decache": "^4.6.2", "sinon": "^14.0.1", "standard": "^17.0.0", "standard-version": "^9.5.0", "tap": "^19.2.0", "typescript": "^4.8.4" };
|
|
20655
|
-
const engines = { "node": ">=12" };
|
|
20656
|
-
const browser$1 = { "fs": false };
|
|
20657
20661
|
const require$$4 = {
|
|
20658
|
-
|
|
20659
|
-
version,
|
|
20660
|
-
description,
|
|
20661
|
-
main,
|
|
20662
|
-
types,
|
|
20663
|
-
exports,
|
|
20664
|
-
scripts,
|
|
20665
|
-
repository,
|
|
20666
|
-
funding,
|
|
20667
|
-
keywords,
|
|
20668
|
-
readmeFilename,
|
|
20669
|
-
license,
|
|
20670
|
-
devDependencies,
|
|
20671
|
-
engines,
|
|
20672
|
-
browser: browser$1
|
|
20662
|
+
version
|
|
20673
20663
|
};
|
|
20674
20664
|
var hasRequiredMain;
|
|
20675
20665
|
function requireMain() {
|
|
20676
|
-
if (hasRequiredMain) return main
|
|
20666
|
+
if (hasRequiredMain) return main.exports;
|
|
20677
20667
|
hasRequiredMain = 1;
|
|
20678
20668
|
const fs = require$$0;
|
|
20679
20669
|
const path = require$$1;
|
|
@@ -20928,15 +20918,15 @@ function requireMain() {
|
|
|
20928
20918
|
parse: parse2,
|
|
20929
20919
|
populate
|
|
20930
20920
|
};
|
|
20931
|
-
main
|
|
20932
|
-
main
|
|
20933
|
-
main
|
|
20934
|
-
main
|
|
20935
|
-
main
|
|
20936
|
-
main
|
|
20937
|
-
main
|
|
20938
|
-
main
|
|
20939
|
-
return main
|
|
20921
|
+
main.exports.configDotenv = DotenvModule.configDotenv;
|
|
20922
|
+
main.exports._configVault = DotenvModule._configVault;
|
|
20923
|
+
main.exports._parseVault = DotenvModule._parseVault;
|
|
20924
|
+
main.exports.config = DotenvModule.config;
|
|
20925
|
+
main.exports.decrypt = DotenvModule.decrypt;
|
|
20926
|
+
main.exports.parse = DotenvModule.parse;
|
|
20927
|
+
main.exports.populate = DotenvModule.populate;
|
|
20928
|
+
main.exports = DotenvModule;
|
|
20929
|
+
return main.exports;
|
|
20940
20930
|
}
|
|
20941
20931
|
var mainExports = requireMain();
|
|
20942
20932
|
const dotenv = /* @__PURE__ */ getDefaultExportFromCjs$1(mainExports);
|
|
@@ -21946,11 +21936,11 @@ function requireAnsiStyles() {
|
|
|
21946
21936
|
const offset = isBackground ? 10 : 0;
|
|
21947
21937
|
const styles = {};
|
|
21948
21938
|
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
21949
|
-
const
|
|
21939
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
21950
21940
|
if (sourceSpace === targetSpace) {
|
|
21951
|
-
styles[
|
|
21941
|
+
styles[name] = wrap2(identity, offset);
|
|
21952
21942
|
} else if (typeof suite === "object") {
|
|
21953
|
-
styles[
|
|
21943
|
+
styles[name] = wrap2(suite[targetSpace], offset);
|
|
21954
21944
|
}
|
|
21955
21945
|
}
|
|
21956
21946
|
return styles;
|
|
@@ -22129,7 +22119,7 @@ function requireTemplates() {
|
|
|
22129
22119
|
}
|
|
22130
22120
|
return ESCAPES.get(c) || c;
|
|
22131
22121
|
}
|
|
22132
|
-
function parseArguments(
|
|
22122
|
+
function parseArguments(name, arguments_) {
|
|
22133
22123
|
const results = [];
|
|
22134
22124
|
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
22135
22125
|
let matches;
|
|
@@ -22140,7 +22130,7 @@ function requireTemplates() {
|
|
|
22140
22130
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
22141
22131
|
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
22142
22132
|
} else {
|
|
22143
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${
|
|
22133
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
22144
22134
|
}
|
|
22145
22135
|
}
|
|
22146
22136
|
return results;
|
|
@@ -22150,12 +22140,12 @@ function requireTemplates() {
|
|
|
22150
22140
|
const results = [];
|
|
22151
22141
|
let matches;
|
|
22152
22142
|
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
22153
|
-
const
|
|
22143
|
+
const name = matches[1];
|
|
22154
22144
|
if (matches[2]) {
|
|
22155
|
-
const args = parseArguments(
|
|
22156
|
-
results.push([
|
|
22145
|
+
const args = parseArguments(name, matches[2]);
|
|
22146
|
+
results.push([name].concat(args));
|
|
22157
22147
|
} else {
|
|
22158
|
-
results.push([
|
|
22148
|
+
results.push([name]);
|
|
22159
22149
|
}
|
|
22160
22150
|
}
|
|
22161
22151
|
return results;
|
|
@@ -23485,7 +23475,7 @@ const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.
|
|
|
23485
23475
|
const native = { randomUUID };
|
|
23486
23476
|
function v4(options, buf, offset) {
|
|
23487
23477
|
var _a;
|
|
23488
|
-
if (native.randomUUID &&
|
|
23478
|
+
if (native.randomUUID && true && !options) {
|
|
23489
23479
|
return native.randomUUID();
|
|
23490
23480
|
}
|
|
23491
23481
|
options = options || {};
|