@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.
|
@@ -1091,11 +1091,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1091
1091
|
const offset = isBackground ? 10 : 0;
|
|
1092
1092
|
const styles = {};
|
|
1093
1093
|
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
1094
|
-
const
|
|
1094
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
1095
1095
|
if (sourceSpace === targetSpace) {
|
|
1096
|
-
styles[
|
|
1096
|
+
styles[name] = wrap2(identity, offset);
|
|
1097
1097
|
} else if (typeof suite === "object") {
|
|
1098
|
-
styles[
|
|
1098
|
+
styles[name] = wrap2(suite[targetSpace], offset);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
return styles;
|
|
@@ -1192,16 +1192,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1192
1192
|
})(ansiStyles$3);
|
|
1193
1193
|
return ansiStyles$3.exports;
|
|
1194
1194
|
}
|
|
1195
|
-
var browser$
|
|
1195
|
+
var browser$4;
|
|
1196
1196
|
var hasRequiredBrowser$3;
|
|
1197
1197
|
function requireBrowser$3() {
|
|
1198
|
-
if (hasRequiredBrowser$3) return browser$
|
|
1198
|
+
if (hasRequiredBrowser$3) return browser$4;
|
|
1199
1199
|
hasRequiredBrowser$3 = 1;
|
|
1200
|
-
browser$
|
|
1200
|
+
browser$4 = {
|
|
1201
1201
|
stdout: false,
|
|
1202
1202
|
stderr: false
|
|
1203
1203
|
};
|
|
1204
|
-
return browser$
|
|
1204
|
+
return browser$4;
|
|
1205
1205
|
}
|
|
1206
1206
|
var util$3;
|
|
1207
1207
|
var hasRequiredUtil$3;
|
|
@@ -1274,7 +1274,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1274
1274
|
}
|
|
1275
1275
|
return ESCAPES.get(c) || c;
|
|
1276
1276
|
}
|
|
1277
|
-
function parseArguments(
|
|
1277
|
+
function parseArguments(name, arguments_) {
|
|
1278
1278
|
const results = [];
|
|
1279
1279
|
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
1280
1280
|
let matches;
|
|
@@ -1285,7 +1285,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1285
1285
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
1286
1286
|
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
1287
1287
|
} else {
|
|
1288
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${
|
|
1288
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
1291
|
return results;
|
|
@@ -1295,12 +1295,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1295
1295
|
const results = [];
|
|
1296
1296
|
let matches;
|
|
1297
1297
|
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
1298
|
-
const
|
|
1298
|
+
const name = matches[1];
|
|
1299
1299
|
if (matches[2]) {
|
|
1300
|
-
const args = parseArguments(
|
|
1301
|
-
results.push([
|
|
1300
|
+
const args = parseArguments(name, matches[2]);
|
|
1301
|
+
results.push([name].concat(args));
|
|
1302
1302
|
} else {
|
|
1303
|
-
results.push([
|
|
1303
|
+
results.push([name]);
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
1306
|
return results;
|
|
@@ -1754,20 +1754,20 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1754
1754
|
const reduceDescriptors = (obj, reducer) => {
|
|
1755
1755
|
const descriptors2 = Object.getOwnPropertyDescriptors(obj);
|
|
1756
1756
|
const reducedDescriptors = {};
|
|
1757
|
-
forEach(descriptors2, (descriptor,
|
|
1757
|
+
forEach(descriptors2, (descriptor, name) => {
|
|
1758
1758
|
let ret;
|
|
1759
|
-
if ((ret = reducer(descriptor,
|
|
1760
|
-
reducedDescriptors[
|
|
1759
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
1760
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
1761
1761
|
}
|
|
1762
1762
|
});
|
|
1763
1763
|
Object.defineProperties(obj, reducedDescriptors);
|
|
1764
1764
|
};
|
|
1765
1765
|
const freezeMethods = (obj) => {
|
|
1766
|
-
reduceDescriptors(obj, (descriptor,
|
|
1767
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(
|
|
1766
|
+
reduceDescriptors(obj, (descriptor, name) => {
|
|
1767
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
1768
1768
|
return false;
|
|
1769
1769
|
}
|
|
1770
|
-
const value2 = obj[
|
|
1770
|
+
const value2 = obj[name];
|
|
1771
1771
|
if (!isFunction(value2)) return;
|
|
1772
1772
|
descriptor.enumerable = false;
|
|
1773
1773
|
if ("writable" in descriptor) {
|
|
@@ -1776,7 +1776,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1776
1776
|
}
|
|
1777
1777
|
if (!descriptor.set) {
|
|
1778
1778
|
descriptor.set = () => {
|
|
1779
|
-
throw Error("Can not rewrite read-only method '" +
|
|
1779
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
});
|
|
@@ -1918,7 +1918,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1918
1918
|
setImmediate: _setImmediate,
|
|
1919
1919
|
asap
|
|
1920
1920
|
};
|
|
1921
|
-
function AxiosError(message2, code, config2, request2, response) {
|
|
1921
|
+
function AxiosError$1(message2, code, config2, request2, response) {
|
|
1922
1922
|
Error.call(this);
|
|
1923
1923
|
if (Error.captureStackTrace) {
|
|
1924
1924
|
Error.captureStackTrace(this, this.constructor);
|
|
@@ -1935,7 +1935,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1935
1935
|
this.status = response.status ? response.status : null;
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
utils$3.inherits(AxiosError, Error, {
|
|
1938
|
+
utils$3.inherits(AxiosError$1, Error, {
|
|
1939
1939
|
toJSON: function toJSON() {
|
|
1940
1940
|
return {
|
|
1941
1941
|
// Standard
|
|
@@ -1956,7 +1956,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1956
1956
|
};
|
|
1957
1957
|
}
|
|
1958
1958
|
});
|
|
1959
|
-
const prototype$1 = AxiosError.prototype;
|
|
1959
|
+
const prototype$1 = AxiosError$1.prototype;
|
|
1960
1960
|
const descriptors = {};
|
|
1961
1961
|
[
|
|
1962
1962
|
"ERR_BAD_OPTION_VALUE",
|
|
@@ -1975,16 +1975,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
1975
1975
|
].forEach((code) => {
|
|
1976
1976
|
descriptors[code] = { value: code };
|
|
1977
1977
|
});
|
|
1978
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
1978
|
+
Object.defineProperties(AxiosError$1, descriptors);
|
|
1979
1979
|
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
1980
|
-
AxiosError.from = (error, code, config2, request2, response, customProps) => {
|
|
1980
|
+
AxiosError$1.from = (error, code, config2, request2, response, customProps) => {
|
|
1981
1981
|
const axiosError = Object.create(prototype$1);
|
|
1982
1982
|
utils$3.toFlatObject(error, axiosError, function filter(obj) {
|
|
1983
1983
|
return obj !== Error.prototype;
|
|
1984
1984
|
}, (prop) => {
|
|
1985
1985
|
return prop !== "isAxiosError";
|
|
1986
1986
|
});
|
|
1987
|
-
AxiosError.call(axiosError, error.message, code, config2, request2, response);
|
|
1987
|
+
AxiosError$1.call(axiosError, error.message, code, config2, request2, response);
|
|
1988
1988
|
axiosError.cause = error;
|
|
1989
1989
|
axiosError.name = error.name;
|
|
1990
1990
|
customProps && Object.assign(axiosError, customProps);
|
|
@@ -2010,7 +2010,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2010
2010
|
const predicates = utils$3.toFlatObject(utils$3, {}, null, function filter(prop) {
|
|
2011
2011
|
return /^is[A-Z]/.test(prop);
|
|
2012
2012
|
});
|
|
2013
|
-
function toFormData(obj, formData, options) {
|
|
2013
|
+
function toFormData$1(obj, formData, options) {
|
|
2014
2014
|
if (!utils$3.isObject(obj)) {
|
|
2015
2015
|
throw new TypeError("target must be an object");
|
|
2016
2016
|
}
|
|
@@ -2037,7 +2037,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2037
2037
|
return value2.toISOString();
|
|
2038
2038
|
}
|
|
2039
2039
|
if (!useBlob && utils$3.isBlob(value2)) {
|
|
2040
|
-
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
2040
|
+
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
2041
2041
|
}
|
|
2042
2042
|
if (utils$3.isArrayBuffer(value2) || utils$3.isTypedArray(value2)) {
|
|
2043
2043
|
return useBlob && typeof Blob === "function" ? new Blob([value2]) : Buffer.from(value2);
|
|
@@ -2116,11 +2116,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2116
2116
|
}
|
|
2117
2117
|
function AxiosURLSearchParams(params, options) {
|
|
2118
2118
|
this._pairs = [];
|
|
2119
|
-
params && toFormData(params, this, options);
|
|
2119
|
+
params && toFormData$1(params, this, options);
|
|
2120
2120
|
}
|
|
2121
2121
|
const prototype = AxiosURLSearchParams.prototype;
|
|
2122
|
-
prototype.append = function append(
|
|
2123
|
-
this._pairs.push([
|
|
2122
|
+
prototype.append = function append(name, value2) {
|
|
2123
|
+
this._pairs.push([name, value2]);
|
|
2124
2124
|
};
|
|
2125
2125
|
prototype.toString = function toString2(encoder2) {
|
|
2126
2126
|
const _encode = encoder2 ? function(value2) {
|
|
@@ -2258,7 +2258,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2258
2258
|
...platform$1
|
|
2259
2259
|
};
|
|
2260
2260
|
function toURLEncodedForm(data, options) {
|
|
2261
|
-
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
2261
|
+
return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
2262
2262
|
visitor: function(value2, key, path, helpers) {
|
|
2263
2263
|
if (platform.isNode && utils$3.isBuffer(value2)) {
|
|
2264
2264
|
this.append(key, value2.toString("base64"));
|
|
@@ -2268,8 +2268,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2268
2268
|
}
|
|
2269
2269
|
}, options));
|
|
2270
2270
|
}
|
|
2271
|
-
function parsePropPath(
|
|
2272
|
-
return utils$3.matchAll(/\w+|\[(\w*)]/g,
|
|
2271
|
+
function parsePropPath(name) {
|
|
2272
|
+
return utils$3.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
2273
2273
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
2274
2274
|
});
|
|
2275
2275
|
}
|
|
@@ -2287,32 +2287,32 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2287
2287
|
}
|
|
2288
2288
|
function formDataToJSON(formData) {
|
|
2289
2289
|
function buildPath(path, value2, target, index) {
|
|
2290
|
-
let
|
|
2291
|
-
if (
|
|
2292
|
-
const isNumericKey = Number.isFinite(+
|
|
2290
|
+
let name = path[index++];
|
|
2291
|
+
if (name === "__proto__") return true;
|
|
2292
|
+
const isNumericKey = Number.isFinite(+name);
|
|
2293
2293
|
const isLast = index >= path.length;
|
|
2294
|
-
|
|
2294
|
+
name = !name && utils$3.isArray(target) ? target.length : name;
|
|
2295
2295
|
if (isLast) {
|
|
2296
|
-
if (utils$3.hasOwnProp(target,
|
|
2297
|
-
target[
|
|
2296
|
+
if (utils$3.hasOwnProp(target, name)) {
|
|
2297
|
+
target[name] = [target[name], value2];
|
|
2298
2298
|
} else {
|
|
2299
|
-
target[
|
|
2299
|
+
target[name] = value2;
|
|
2300
2300
|
}
|
|
2301
2301
|
return !isNumericKey;
|
|
2302
2302
|
}
|
|
2303
|
-
if (!target[
|
|
2304
|
-
target[
|
|
2303
|
+
if (!target[name] || !utils$3.isObject(target[name])) {
|
|
2304
|
+
target[name] = [];
|
|
2305
2305
|
}
|
|
2306
|
-
const result = buildPath(path, value2, target[
|
|
2307
|
-
if (result && utils$3.isArray(target[
|
|
2308
|
-
target[
|
|
2306
|
+
const result = buildPath(path, value2, target[name], index);
|
|
2307
|
+
if (result && utils$3.isArray(target[name])) {
|
|
2308
|
+
target[name] = arrayToObject(target[name]);
|
|
2309
2309
|
}
|
|
2310
2310
|
return !isNumericKey;
|
|
2311
2311
|
}
|
|
2312
2312
|
if (utils$3.isFormData(formData) && utils$3.isFunction(formData.entries)) {
|
|
2313
2313
|
const obj = {};
|
|
2314
|
-
utils$3.forEachEntry(formData, (
|
|
2315
|
-
buildPath(parsePropPath(
|
|
2314
|
+
utils$3.forEachEntry(formData, (name, value2) => {
|
|
2315
|
+
buildPath(parsePropPath(name), value2, obj, 0);
|
|
2316
2316
|
});
|
|
2317
2317
|
return obj;
|
|
2318
2318
|
}
|
|
@@ -2329,7 +2329,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
|
-
return (
|
|
2332
|
+
return (encoder2 || JSON.stringify)(rawValue);
|
|
2333
2333
|
}
|
|
2334
2334
|
const defaults = {
|
|
2335
2335
|
transitional: transitionalDefaults,
|
|
@@ -2362,7 +2362,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2362
2362
|
}
|
|
2363
2363
|
if ((isFileList2 = utils$3.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
2364
2364
|
const _FormData = this.env && this.env.FormData;
|
|
2365
|
-
return toFormData(
|
|
2365
|
+
return toFormData$1(
|
|
2366
2366
|
isFileList2 ? { "files[]": data } : data,
|
|
2367
2367
|
_FormData && new _FormData(),
|
|
2368
2368
|
this.formSerializer
|
|
@@ -2390,7 +2390,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2390
2390
|
} catch (e) {
|
|
2391
2391
|
if (strictJSONParsing) {
|
|
2392
2392
|
if (e.name === "SyntaxError") {
|
|
2393
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
2393
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
2394
2394
|
}
|
|
2395
2395
|
throw e;
|
|
2396
2396
|
}
|
|
@@ -2518,7 +2518,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2518
2518
|
});
|
|
2519
2519
|
});
|
|
2520
2520
|
}
|
|
2521
|
-
class AxiosHeaders {
|
|
2521
|
+
let AxiosHeaders$1 = class AxiosHeaders {
|
|
2522
2522
|
constructor(headers) {
|
|
2523
2523
|
headers && this.set(headers);
|
|
2524
2524
|
}
|
|
@@ -2673,9 +2673,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2673
2673
|
utils$3.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
2674
2674
|
return this;
|
|
2675
2675
|
}
|
|
2676
|
-
}
|
|
2677
|
-
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2678
|
-
utils$3.reduceDescriptors(AxiosHeaders.prototype, ({ value: value2 }, key) => {
|
|
2676
|
+
};
|
|
2677
|
+
AxiosHeaders$1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2678
|
+
utils$3.reduceDescriptors(AxiosHeaders$1.prototype, ({ value: value2 }, key) => {
|
|
2679
2679
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
2680
2680
|
return {
|
|
2681
2681
|
get: () => value2,
|
|
@@ -2684,11 +2684,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2684
2684
|
}
|
|
2685
2685
|
};
|
|
2686
2686
|
});
|
|
2687
|
-
utils$3.freezeMethods(AxiosHeaders);
|
|
2687
|
+
utils$3.freezeMethods(AxiosHeaders$1);
|
|
2688
2688
|
function transformData(fns, response) {
|
|
2689
2689
|
const config2 = this || defaults;
|
|
2690
2690
|
const context = response || config2;
|
|
2691
|
-
const headers = AxiosHeaders.from(context.headers);
|
|
2691
|
+
const headers = AxiosHeaders$1.from(context.headers);
|
|
2692
2692
|
let data = context.data;
|
|
2693
2693
|
utils$3.forEach(fns, function transform(fn) {
|
|
2694
2694
|
data = fn.call(config2, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -2696,14 +2696,14 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2696
2696
|
headers.normalize();
|
|
2697
2697
|
return data;
|
|
2698
2698
|
}
|
|
2699
|
-
function isCancel(value2) {
|
|
2699
|
+
function isCancel$1(value2) {
|
|
2700
2700
|
return !!(value2 && value2.__CANCEL__);
|
|
2701
2701
|
}
|
|
2702
|
-
function CanceledError(message2, config2, request2) {
|
|
2703
|
-
AxiosError.call(this, message2 == null ? "canceled" : message2, AxiosError.ERR_CANCELED, config2, request2);
|
|
2702
|
+
function CanceledError$1(message2, config2, request2) {
|
|
2703
|
+
AxiosError$1.call(this, message2 == null ? "canceled" : message2, AxiosError$1.ERR_CANCELED, config2, request2);
|
|
2704
2704
|
this.name = "CanceledError";
|
|
2705
2705
|
}
|
|
2706
|
-
utils$3.inherits(CanceledError, AxiosError, {
|
|
2706
|
+
utils$3.inherits(CanceledError$1, AxiosError$1, {
|
|
2707
2707
|
__CANCEL__: true
|
|
2708
2708
|
});
|
|
2709
2709
|
function settle(resolve, reject, response) {
|
|
@@ -2711,9 +2711,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2711
2711
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
2712
2712
|
resolve(response);
|
|
2713
2713
|
} else {
|
|
2714
|
-
reject(new AxiosError(
|
|
2714
|
+
reject(new AxiosError$1(
|
|
2715
2715
|
"Request failed with status code " + response.status,
|
|
2716
|
-
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2716
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2717
2717
|
response.config,
|
|
2718
2718
|
response.request,
|
|
2719
2719
|
response
|
|
@@ -2832,20 +2832,20 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2832
2832
|
const cookies = platform.hasStandardBrowserEnv ? (
|
|
2833
2833
|
// Standard browser envs support document.cookie
|
|
2834
2834
|
{
|
|
2835
|
-
write(
|
|
2836
|
-
const cookie2 = [
|
|
2835
|
+
write(name, value2, expires, path, domain, secure) {
|
|
2836
|
+
const cookie2 = [name + "=" + encodeURIComponent(value2)];
|
|
2837
2837
|
utils$3.isNumber(expires) && cookie2.push("expires=" + new Date(expires).toGMTString());
|
|
2838
2838
|
utils$3.isString(path) && cookie2.push("path=" + path);
|
|
2839
2839
|
utils$3.isString(domain) && cookie2.push("domain=" + domain);
|
|
2840
2840
|
secure === true && cookie2.push("secure");
|
|
2841
2841
|
document.cookie = cookie2.join("; ");
|
|
2842
2842
|
},
|
|
2843
|
-
read(
|
|
2844
|
-
const match = document.cookie.match(new RegExp("(^|;\\s*)(" +
|
|
2843
|
+
read(name) {
|
|
2844
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
2845
2845
|
return match ? decodeURIComponent(match[3]) : null;
|
|
2846
2846
|
},
|
|
2847
|
-
remove(
|
|
2848
|
-
this.write(
|
|
2847
|
+
remove(name) {
|
|
2848
|
+
this.write(name, "", Date.now() - 864e5);
|
|
2849
2849
|
}
|
|
2850
2850
|
}
|
|
2851
2851
|
) : (
|
|
@@ -2872,8 +2872,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2872
2872
|
}
|
|
2873
2873
|
return requestedURL;
|
|
2874
2874
|
}
|
|
2875
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
2876
|
-
function mergeConfig(config1, config2) {
|
|
2875
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
2876
|
+
function mergeConfig$1(config1, config2) {
|
|
2877
2877
|
config2 = config2 || {};
|
|
2878
2878
|
const config3 = {};
|
|
2879
2879
|
function getMergedValue(target, source2, prop, caseless) {
|
|
@@ -2951,9 +2951,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2951
2951
|
return config3;
|
|
2952
2952
|
}
|
|
2953
2953
|
const resolveConfig = (config2) => {
|
|
2954
|
-
const newConfig = mergeConfig({}, config2);
|
|
2954
|
+
const newConfig = mergeConfig$1({}, config2);
|
|
2955
2955
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
2956
|
-
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
2956
|
+
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
2957
2957
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config2.params, config2.paramsSerializer);
|
|
2958
2958
|
if (auth) {
|
|
2959
2959
|
headers.set(
|
|
@@ -2986,7 +2986,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2986
2986
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
2987
2987
|
const _config = resolveConfig(config2);
|
|
2988
2988
|
let requestData = _config.data;
|
|
2989
|
-
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
2989
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
2990
2990
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
2991
2991
|
let onCanceled;
|
|
2992
2992
|
let uploadThrottled, downloadThrottled;
|
|
@@ -3004,7 +3004,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3004
3004
|
if (!request2) {
|
|
3005
3005
|
return;
|
|
3006
3006
|
}
|
|
3007
|
-
const responseHeaders = AxiosHeaders.from(
|
|
3007
|
+
const responseHeaders = AxiosHeaders$1.from(
|
|
3008
3008
|
"getAllResponseHeaders" in request2 && request2.getAllResponseHeaders()
|
|
3009
3009
|
);
|
|
3010
3010
|
const responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
|
|
@@ -3042,11 +3042,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3042
3042
|
if (!request2) {
|
|
3043
3043
|
return;
|
|
3044
3044
|
}
|
|
3045
|
-
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config2, request2));
|
|
3045
|
+
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config2, request2));
|
|
3046
3046
|
request2 = null;
|
|
3047
3047
|
};
|
|
3048
3048
|
request2.onerror = function handleError() {
|
|
3049
|
-
reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config2, request2));
|
|
3049
|
+
reject(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config2, request2));
|
|
3050
3050
|
request2 = null;
|
|
3051
3051
|
};
|
|
3052
3052
|
request2.ontimeout = function handleTimeout() {
|
|
@@ -3055,9 +3055,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3055
3055
|
if (_config.timeoutErrorMessage) {
|
|
3056
3056
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3057
3057
|
}
|
|
3058
|
-
reject(new AxiosError(
|
|
3058
|
+
reject(new AxiosError$1(
|
|
3059
3059
|
timeoutErrorMessage,
|
|
3060
|
-
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
3060
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
3061
3061
|
config2,
|
|
3062
3062
|
request2
|
|
3063
3063
|
));
|
|
@@ -3089,7 +3089,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3089
3089
|
if (!request2) {
|
|
3090
3090
|
return;
|
|
3091
3091
|
}
|
|
3092
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config2, request2) : cancel);
|
|
3092
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config2, request2) : cancel);
|
|
3093
3093
|
request2.abort();
|
|
3094
3094
|
request2 = null;
|
|
3095
3095
|
};
|
|
@@ -3100,7 +3100,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3100
3100
|
}
|
|
3101
3101
|
const protocol = parseProtocol(_config.url);
|
|
3102
3102
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
3103
|
-
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config2));
|
|
3103
|
+
reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config2));
|
|
3104
3104
|
return;
|
|
3105
3105
|
}
|
|
3106
3106
|
request2.send(requestData || null);
|
|
@@ -3116,12 +3116,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3116
3116
|
aborted = true;
|
|
3117
3117
|
unsubscribe();
|
|
3118
3118
|
const err = reason instanceof Error ? reason : this.reason;
|
|
3119
|
-
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
3119
|
+
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
3120
3120
|
}
|
|
3121
3121
|
};
|
|
3122
3122
|
let timer = timeout && setTimeout(() => {
|
|
3123
3123
|
timer = null;
|
|
3124
|
-
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
3124
|
+
onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
3125
3125
|
}, timeout);
|
|
3126
3126
|
const unsubscribe = () => {
|
|
3127
3127
|
if (signals) {
|
|
@@ -3244,7 +3244,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3244
3244
|
isFetchSupported && ((res) => {
|
|
3245
3245
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
3246
3246
|
!resolvers[type] && (resolvers[type] = utils$3.isFunction(res[type]) ? (res2) => res2[type]() : (_, config2) => {
|
|
3247
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config2);
|
|
3247
|
+
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config2);
|
|
3248
3248
|
});
|
|
3249
3249
|
});
|
|
3250
3250
|
})(new Response());
|
|
@@ -3356,7 +3356,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3356
3356
|
return await new Promise((resolve, reject) => {
|
|
3357
3357
|
settle(resolve, reject, {
|
|
3358
3358
|
data: responseData,
|
|
3359
|
-
headers: AxiosHeaders.from(response.headers),
|
|
3359
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
3360
3360
|
status: response.status,
|
|
3361
3361
|
statusText: response.statusText,
|
|
3362
3362
|
config: config2,
|
|
@@ -3367,13 +3367,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3367
3367
|
unsubscribe && unsubscribe();
|
|
3368
3368
|
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
3369
3369
|
throw Object.assign(
|
|
3370
|
-
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config2, request2),
|
|
3370
|
+
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config2, request2),
|
|
3371
3371
|
{
|
|
3372
3372
|
cause: err.cause || err
|
|
3373
3373
|
}
|
|
3374
3374
|
);
|
|
3375
3375
|
}
|
|
3376
|
-
throw AxiosError.from(err, err && err.code, config2, request2);
|
|
3376
|
+
throw AxiosError$1.from(err, err && err.code, config2, request2);
|
|
3377
3377
|
}
|
|
3378
3378
|
});
|
|
3379
3379
|
const knownAdapters = {
|
|
@@ -3406,7 +3406,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3406
3406
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
3407
3407
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3408
3408
|
if (adapter === void 0) {
|
|
3409
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
3409
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
3410
3410
|
}
|
|
3411
3411
|
}
|
|
3412
3412
|
if (adapter) {
|
|
@@ -3419,7 +3419,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3419
3419
|
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
3420
3420
|
);
|
|
3421
3421
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
3422
|
-
throw new AxiosError(
|
|
3422
|
+
throw new AxiosError$1(
|
|
3423
3423
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
3424
3424
|
"ERR_NOT_SUPPORT"
|
|
3425
3425
|
);
|
|
@@ -3433,12 +3433,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3433
3433
|
config2.cancelToken.throwIfRequested();
|
|
3434
3434
|
}
|
|
3435
3435
|
if (config2.signal && config2.signal.aborted) {
|
|
3436
|
-
throw new CanceledError(null, config2);
|
|
3436
|
+
throw new CanceledError$1(null, config2);
|
|
3437
3437
|
}
|
|
3438
3438
|
}
|
|
3439
3439
|
function dispatchRequest(config2) {
|
|
3440
3440
|
throwIfCancellationRequested(config2);
|
|
3441
|
-
config2.headers = AxiosHeaders.from(config2.headers);
|
|
3441
|
+
config2.headers = AxiosHeaders$1.from(config2.headers);
|
|
3442
3442
|
config2.data = transformData.call(
|
|
3443
3443
|
config2,
|
|
3444
3444
|
config2.transformRequest
|
|
@@ -3454,10 +3454,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3454
3454
|
config2.transformResponse,
|
|
3455
3455
|
response
|
|
3456
3456
|
);
|
|
3457
|
-
response.headers = AxiosHeaders.from(response.headers);
|
|
3457
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
3458
3458
|
return response;
|
|
3459
3459
|
}, function onAdapterRejection(reason) {
|
|
3460
|
-
if (!isCancel(reason)) {
|
|
3460
|
+
if (!isCancel$1(reason)) {
|
|
3461
3461
|
throwIfCancellationRequested(config2);
|
|
3462
3462
|
if (reason && reason.response) {
|
|
3463
3463
|
reason.response.data = transformData.call(
|
|
@@ -3465,13 +3465,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3465
3465
|
config2.transformResponse,
|
|
3466
3466
|
reason.response
|
|
3467
3467
|
);
|
|
3468
|
-
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
3468
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
3469
3469
|
}
|
|
3470
3470
|
}
|
|
3471
3471
|
return Promise.reject(reason);
|
|
3472
3472
|
});
|
|
3473
3473
|
}
|
|
3474
|
-
const VERSION = "1.7.9";
|
|
3474
|
+
const VERSION$1 = "1.7.9";
|
|
3475
3475
|
const validators$2 = {};
|
|
3476
3476
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
3477
3477
|
validators$2[type] = function validator2(thing) {
|
|
@@ -3481,13 +3481,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3481
3481
|
const deprecatedWarnings = {};
|
|
3482
3482
|
validators$2.transitional = function transitional(validator2, version2, message2) {
|
|
3483
3483
|
function formatMessage(opt, desc) {
|
|
3484
|
-
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message2 ? ". " + message2 : "");
|
|
3484
|
+
return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message2 ? ". " + message2 : "");
|
|
3485
3485
|
}
|
|
3486
3486
|
return (value2, opt, opts) => {
|
|
3487
3487
|
if (validator2 === false) {
|
|
3488
|
-
throw new AxiosError(
|
|
3488
|
+
throw new AxiosError$1(
|
|
3489
3489
|
formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
|
|
3490
|
-
AxiosError.ERR_DEPRECATED
|
|
3490
|
+
AxiosError$1.ERR_DEPRECATED
|
|
3491
3491
|
);
|
|
3492
3492
|
}
|
|
3493
3493
|
if (version2 && !deprecatedWarnings[opt]) {
|
|
@@ -3510,7 +3510,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3510
3510
|
};
|
|
3511
3511
|
function assertOptions(options, schema, allowUnknown) {
|
|
3512
3512
|
if (typeof options !== "object") {
|
|
3513
|
-
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3513
|
+
throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3514
3514
|
}
|
|
3515
3515
|
const keys = Object.keys(options);
|
|
3516
3516
|
let i = keys.length;
|
|
@@ -3521,12 +3521,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3521
3521
|
const value2 = options[opt];
|
|
3522
3522
|
const result = value2 === void 0 || validator2(value2, opt, options);
|
|
3523
3523
|
if (result !== true) {
|
|
3524
|
-
throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3524
|
+
throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3525
3525
|
}
|
|
3526
3526
|
continue;
|
|
3527
3527
|
}
|
|
3528
3528
|
if (allowUnknown !== true) {
|
|
3529
|
-
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
3529
|
+
throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
3530
3530
|
}
|
|
3531
3531
|
}
|
|
3532
3532
|
}
|
|
@@ -3535,7 +3535,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3535
3535
|
validators: validators$2
|
|
3536
3536
|
};
|
|
3537
3537
|
const validators$1 = validator.validators;
|
|
3538
|
-
class Axios {
|
|
3538
|
+
let Axios$1 = class Axios {
|
|
3539
3539
|
constructor(instanceConfig) {
|
|
3540
3540
|
this.defaults = instanceConfig;
|
|
3541
3541
|
this.interceptors = {
|
|
@@ -3578,7 +3578,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3578
3578
|
} else {
|
|
3579
3579
|
config2 = configOrUrl || {};
|
|
3580
3580
|
}
|
|
3581
|
-
config2 = mergeConfig(this.defaults, config2);
|
|
3581
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
3582
3582
|
const { transitional, paramsSerializer, headers } = config2;
|
|
3583
3583
|
if (transitional !== void 0) {
|
|
3584
3584
|
validator.assertOptions(transitional, {
|
|
@@ -3614,7 +3614,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3614
3614
|
delete headers[method];
|
|
3615
3615
|
}
|
|
3616
3616
|
);
|
|
3617
|
-
config2.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
3617
|
+
config2.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
3618
3618
|
const requestInterceptorChain = [];
|
|
3619
3619
|
let synchronousRequestInterceptors = true;
|
|
3620
3620
|
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor2) {
|
|
@@ -3668,14 +3668,14 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3668
3668
|
return promise;
|
|
3669
3669
|
}
|
|
3670
3670
|
getUri(config2) {
|
|
3671
|
-
config2 = mergeConfig(this.defaults, config2);
|
|
3671
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
3672
3672
|
const fullPath = buildFullPath(config2.baseURL, config2.url);
|
|
3673
3673
|
return buildURL(fullPath, config2.params, config2.paramsSerializer);
|
|
3674
3674
|
}
|
|
3675
|
-
}
|
|
3675
|
+
};
|
|
3676
3676
|
utils$3.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
3677
|
-
Axios.prototype[method] = function(url, config2) {
|
|
3678
|
-
return this.request(mergeConfig(config2 || {}, {
|
|
3677
|
+
Axios$1.prototype[method] = function(url, config2) {
|
|
3678
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
3679
3679
|
method,
|
|
3680
3680
|
url,
|
|
3681
3681
|
data: (config2 || {}).data
|
|
@@ -3685,7 +3685,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3685
3685
|
utils$3.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
3686
3686
|
function generateHTTPMethod(isForm) {
|
|
3687
3687
|
return function httpMethod(url, data, config2) {
|
|
3688
|
-
return this.request(mergeConfig(config2 || {}, {
|
|
3688
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
3689
3689
|
method,
|
|
3690
3690
|
headers: isForm ? {
|
|
3691
3691
|
"Content-Type": "multipart/form-data"
|
|
@@ -3695,10 +3695,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3695
3695
|
}));
|
|
3696
3696
|
};
|
|
3697
3697
|
}
|
|
3698
|
-
Axios.prototype[method] = generateHTTPMethod();
|
|
3699
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
3698
|
+
Axios$1.prototype[method] = generateHTTPMethod();
|
|
3699
|
+
Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
3700
3700
|
});
|
|
3701
|
-
|
|
3701
|
+
let CancelToken$1 = class CancelToken2 {
|
|
3702
3702
|
constructor(executor) {
|
|
3703
3703
|
if (typeof executor !== "function") {
|
|
3704
3704
|
throw new TypeError("executor must be a function.");
|
|
@@ -3731,7 +3731,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3731
3731
|
if (token.reason) {
|
|
3732
3732
|
return;
|
|
3733
3733
|
}
|
|
3734
|
-
token.reason = new CanceledError(message2, config2, request2);
|
|
3734
|
+
token.reason = new CanceledError$1(message2, config2, request2);
|
|
3735
3735
|
resolvePromise(token.reason);
|
|
3736
3736
|
});
|
|
3737
3737
|
}
|
|
@@ -3784,7 +3784,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3784
3784
|
*/
|
|
3785
3785
|
static source() {
|
|
3786
3786
|
let cancel;
|
|
3787
|
-
const token = new
|
|
3787
|
+
const token = new CancelToken2(function executor(c) {
|
|
3788
3788
|
cancel = c;
|
|
3789
3789
|
});
|
|
3790
3790
|
return {
|
|
@@ -3792,16 +3792,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3792
3792
|
cancel
|
|
3793
3793
|
};
|
|
3794
3794
|
}
|
|
3795
|
-
}
|
|
3796
|
-
function spread(callback) {
|
|
3795
|
+
};
|
|
3796
|
+
function spread$1(callback) {
|
|
3797
3797
|
return function wrap2(arr) {
|
|
3798
3798
|
return callback.apply(null, arr);
|
|
3799
3799
|
};
|
|
3800
3800
|
}
|
|
3801
|
-
function isAxiosError(payload) {
|
|
3801
|
+
function isAxiosError$1(payload) {
|
|
3802
3802
|
return utils$3.isObject(payload) && payload.isAxiosError === true;
|
|
3803
3803
|
}
|
|
3804
|
-
const HttpStatusCode = {
|
|
3804
|
+
const HttpStatusCode$1 = {
|
|
3805
3805
|
Continue: 100,
|
|
3806
3806
|
SwitchingProtocols: 101,
|
|
3807
3807
|
Processing: 102,
|
|
@@ -3866,39 +3866,57 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3866
3866
|
NotExtended: 510,
|
|
3867
3867
|
NetworkAuthenticationRequired: 511
|
|
3868
3868
|
};
|
|
3869
|
-
Object.entries(HttpStatusCode).forEach(([key, value2]) => {
|
|
3870
|
-
HttpStatusCode[value2] = key;
|
|
3869
|
+
Object.entries(HttpStatusCode$1).forEach(([key, value2]) => {
|
|
3870
|
+
HttpStatusCode$1[value2] = key;
|
|
3871
3871
|
});
|
|
3872
3872
|
function createInstance(defaultConfig) {
|
|
3873
|
-
const context = new Axios(defaultConfig);
|
|
3874
|
-
const instance = bind(Axios.prototype.request, context);
|
|
3875
|
-
utils$3.extend(instance, Axios.prototype, context, { allOwnKeys: true });
|
|
3873
|
+
const context = new Axios$1(defaultConfig);
|
|
3874
|
+
const instance = bind(Axios$1.prototype.request, context);
|
|
3875
|
+
utils$3.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
3876
3876
|
utils$3.extend(instance, context, null, { allOwnKeys: true });
|
|
3877
3877
|
instance.create = function create(instanceConfig) {
|
|
3878
|
-
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
3878
|
+
return createInstance(mergeConfig$1(defaultConfig, instanceConfig));
|
|
3879
3879
|
};
|
|
3880
3880
|
return instance;
|
|
3881
3881
|
}
|
|
3882
3882
|
const axios = createInstance(defaults);
|
|
3883
|
-
axios.Axios = Axios;
|
|
3884
|
-
axios.CanceledError = CanceledError;
|
|
3885
|
-
axios.CancelToken = CancelToken;
|
|
3886
|
-
axios.isCancel = isCancel;
|
|
3887
|
-
axios.VERSION = VERSION;
|
|
3888
|
-
axios.toFormData = toFormData;
|
|
3889
|
-
axios.AxiosError = AxiosError;
|
|
3883
|
+
axios.Axios = Axios$1;
|
|
3884
|
+
axios.CanceledError = CanceledError$1;
|
|
3885
|
+
axios.CancelToken = CancelToken$1;
|
|
3886
|
+
axios.isCancel = isCancel$1;
|
|
3887
|
+
axios.VERSION = VERSION$1;
|
|
3888
|
+
axios.toFormData = toFormData$1;
|
|
3889
|
+
axios.AxiosError = AxiosError$1;
|
|
3890
3890
|
axios.Cancel = axios.CanceledError;
|
|
3891
|
-
axios.all = function
|
|
3891
|
+
axios.all = function all2(promises) {
|
|
3892
3892
|
return Promise.all(promises);
|
|
3893
3893
|
};
|
|
3894
|
-
axios.spread = spread;
|
|
3895
|
-
axios.isAxiosError = isAxiosError;
|
|
3896
|
-
axios.mergeConfig = mergeConfig;
|
|
3897
|
-
axios.AxiosHeaders = AxiosHeaders;
|
|
3894
|
+
axios.spread = spread$1;
|
|
3895
|
+
axios.isAxiosError = isAxiosError$1;
|
|
3896
|
+
axios.mergeConfig = mergeConfig$1;
|
|
3897
|
+
axios.AxiosHeaders = AxiosHeaders$1;
|
|
3898
3898
|
axios.formToJSON = (thing) => formDataToJSON(utils$3.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
3899
3899
|
axios.getAdapter = adapters.getAdapter;
|
|
3900
|
-
axios.HttpStatusCode = HttpStatusCode;
|
|
3900
|
+
axios.HttpStatusCode = HttpStatusCode$1;
|
|
3901
3901
|
axios.default = axios;
|
|
3902
|
+
const {
|
|
3903
|
+
Axios,
|
|
3904
|
+
AxiosError,
|
|
3905
|
+
CanceledError,
|
|
3906
|
+
isCancel,
|
|
3907
|
+
CancelToken,
|
|
3908
|
+
VERSION,
|
|
3909
|
+
all,
|
|
3910
|
+
Cancel,
|
|
3911
|
+
isAxiosError,
|
|
3912
|
+
spread,
|
|
3913
|
+
toFormData,
|
|
3914
|
+
AxiosHeaders,
|
|
3915
|
+
HttpStatusCode,
|
|
3916
|
+
formToJSON,
|
|
3917
|
+
getAdapter,
|
|
3918
|
+
mergeConfig
|
|
3919
|
+
} = axios;
|
|
3902
3920
|
var __defProp$1 = Object.defineProperty;
|
|
3903
3921
|
var __typeError$1 = (msg) => {
|
|
3904
3922
|
throw TypeError(msg);
|
|
@@ -3937,7 +3955,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3937
3955
|
});
|
|
3938
3956
|
return a;
|
|
3939
3957
|
}
|
|
3940
|
-
var main$
|
|
3958
|
+
var main$1 = { exports: {} };
|
|
3941
3959
|
const __viteBrowserExternal$2 = {};
|
|
3942
3960
|
const __viteBrowserExternal$1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3943
3961
|
__proto__: null,
|
|
@@ -3950,7 +3968,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3950
3968
|
};
|
|
3951
3969
|
var hasRequiredMain$1;
|
|
3952
3970
|
function requireMain$1() {
|
|
3953
|
-
if (hasRequiredMain$1) return main$
|
|
3971
|
+
if (hasRequiredMain$1) return main$1.exports;
|
|
3954
3972
|
hasRequiredMain$1 = 1;
|
|
3955
3973
|
const fs = require$$0$3;
|
|
3956
3974
|
const path = require$$1;
|
|
@@ -4205,15 +4223,15 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
4205
4223
|
parse: parse2,
|
|
4206
4224
|
populate
|
|
4207
4225
|
};
|
|
4208
|
-
main$
|
|
4209
|
-
main$
|
|
4210
|
-
main$
|
|
4211
|
-
main$
|
|
4212
|
-
main$
|
|
4213
|
-
main$
|
|
4214
|
-
main$
|
|
4215
|
-
main$
|
|
4216
|
-
return main$
|
|
4226
|
+
main$1.exports.configDotenv = DotenvModule.configDotenv;
|
|
4227
|
+
main$1.exports._configVault = DotenvModule._configVault;
|
|
4228
|
+
main$1.exports._parseVault = DotenvModule._parseVault;
|
|
4229
|
+
main$1.exports.config = DotenvModule.config;
|
|
4230
|
+
main$1.exports.decrypt = DotenvModule.decrypt;
|
|
4231
|
+
main$1.exports.parse = DotenvModule.parse;
|
|
4232
|
+
main$1.exports.populate = DotenvModule.populate;
|
|
4233
|
+
main$1.exports = DotenvModule;
|
|
4234
|
+
return main$1.exports;
|
|
4217
4235
|
}
|
|
4218
4236
|
var mainExports$1 = requireMain$1();
|
|
4219
4237
|
const dotenv$1 = /* @__PURE__ */ getDefaultExportFromCjs(mainExports$1);
|
|
@@ -5223,11 +5241,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
5223
5241
|
const offset = isBackground ? 10 : 0;
|
|
5224
5242
|
const styles = {};
|
|
5225
5243
|
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
5226
|
-
const
|
|
5244
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
5227
5245
|
if (sourceSpace === targetSpace) {
|
|
5228
|
-
styles[
|
|
5246
|
+
styles[name] = wrap2(identity, offset);
|
|
5229
5247
|
} else if (typeof suite === "object") {
|
|
5230
|
-
styles[
|
|
5248
|
+
styles[name] = wrap2(suite[targetSpace], offset);
|
|
5231
5249
|
}
|
|
5232
5250
|
}
|
|
5233
5251
|
return styles;
|
|
@@ -5406,7 +5424,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
5406
5424
|
}
|
|
5407
5425
|
return ESCAPES.get(c) || c;
|
|
5408
5426
|
}
|
|
5409
|
-
function parseArguments(
|
|
5427
|
+
function parseArguments(name, arguments_) {
|
|
5410
5428
|
const results = [];
|
|
5411
5429
|
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
5412
5430
|
let matches;
|
|
@@ -5417,7 +5435,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
5417
5435
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
5418
5436
|
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
5419
5437
|
} else {
|
|
5420
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${
|
|
5438
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
5421
5439
|
}
|
|
5422
5440
|
}
|
|
5423
5441
|
return results;
|
|
@@ -5427,12 +5445,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
5427
5445
|
const results = [];
|
|
5428
5446
|
let matches;
|
|
5429
5447
|
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
5430
|
-
const
|
|
5448
|
+
const name = matches[1];
|
|
5431
5449
|
if (matches[2]) {
|
|
5432
|
-
const args = parseArguments(
|
|
5433
|
-
results.push([
|
|
5450
|
+
const args = parseArguments(name, matches[2]);
|
|
5451
|
+
results.push([name].concat(args));
|
|
5434
5452
|
} else {
|
|
5435
|
-
results.push([
|
|
5453
|
+
results.push([name]);
|
|
5436
5454
|
}
|
|
5437
5455
|
}
|
|
5438
5456
|
return results;
|
|
@@ -6925,11 +6943,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
6925
6943
|
const offset = isBackground ? 10 : 0;
|
|
6926
6944
|
const styles = {};
|
|
6927
6945
|
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
6928
|
-
const
|
|
6946
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
6929
6947
|
if (sourceSpace === targetSpace) {
|
|
6930
|
-
styles[
|
|
6948
|
+
styles[name] = wrap2(identity, offset);
|
|
6931
6949
|
} else if (typeof suite === "object") {
|
|
6932
|
-
styles[
|
|
6950
|
+
styles[name] = wrap2(suite[targetSpace], offset);
|
|
6933
6951
|
}
|
|
6934
6952
|
}
|
|
6935
6953
|
return styles;
|
|
@@ -7026,16 +7044,16 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7026
7044
|
})(ansiStyles$2);
|
|
7027
7045
|
return ansiStyles$2.exports;
|
|
7028
7046
|
}
|
|
7029
|
-
var browser$
|
|
7047
|
+
var browser$3;
|
|
7030
7048
|
var hasRequiredBrowser$2;
|
|
7031
7049
|
function requireBrowser$2() {
|
|
7032
|
-
if (hasRequiredBrowser$2) return browser$
|
|
7050
|
+
if (hasRequiredBrowser$2) return browser$3;
|
|
7033
7051
|
hasRequiredBrowser$2 = 1;
|
|
7034
|
-
browser$
|
|
7052
|
+
browser$3 = {
|
|
7035
7053
|
stdout: false,
|
|
7036
7054
|
stderr: false
|
|
7037
7055
|
};
|
|
7038
|
-
return browser$
|
|
7056
|
+
return browser$3;
|
|
7039
7057
|
}
|
|
7040
7058
|
var util$2;
|
|
7041
7059
|
var hasRequiredUtil$2;
|
|
@@ -7108,7 +7126,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7108
7126
|
}
|
|
7109
7127
|
return ESCAPES.get(c) || c;
|
|
7110
7128
|
}
|
|
7111
|
-
function parseArguments(
|
|
7129
|
+
function parseArguments(name, arguments_) {
|
|
7112
7130
|
const results = [];
|
|
7113
7131
|
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
7114
7132
|
let matches;
|
|
@@ -7119,7 +7137,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7119
7137
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
7120
7138
|
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
7121
7139
|
} else {
|
|
7122
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${
|
|
7140
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
7123
7141
|
}
|
|
7124
7142
|
}
|
|
7125
7143
|
return results;
|
|
@@ -7129,12 +7147,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7129
7147
|
const results = [];
|
|
7130
7148
|
let matches;
|
|
7131
7149
|
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
7132
|
-
const
|
|
7150
|
+
const name = matches[1];
|
|
7133
7151
|
if (matches[2]) {
|
|
7134
|
-
const args = parseArguments(
|
|
7135
|
-
results.push([
|
|
7152
|
+
const args = parseArguments(name, matches[2]);
|
|
7153
|
+
results.push([name].concat(args));
|
|
7136
7154
|
} else {
|
|
7137
|
-
results.push([
|
|
7155
|
+
results.push([name]);
|
|
7138
7156
|
}
|
|
7139
7157
|
}
|
|
7140
7158
|
return results;
|
|
@@ -7633,7 +7651,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7633
7651
|
return this;
|
|
7634
7652
|
});
|
|
7635
7653
|
__publicField$1(this, "PostResourceAR", async (resource, errorCb) => {
|
|
7636
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7654
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7637
7655
|
return await __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resource, null, null, errorCb);
|
|
7638
7656
|
});
|
|
7639
7657
|
__publicField$1(this, "PostResourceDBR", async (resource, errorCb) => {
|
|
@@ -7645,7 +7663,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7645
7663
|
return ((_a = await this.PostResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7646
7664
|
});
|
|
7647
7665
|
__publicField$1(this, "PutResourceAR", async (resource, errorCb) => {
|
|
7648
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7666
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7649
7667
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", resource, null, null, errorCb);
|
|
7650
7668
|
});
|
|
7651
7669
|
__publicField$1(this, "PutResourceDBR", async (resource, errorCb) => {
|
|
@@ -7657,7 +7675,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7657
7675
|
return ((_a = await this.PutResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7658
7676
|
});
|
|
7659
7677
|
__publicField$1(this, "PatchResourceAR", async (resource, errorCb) => {
|
|
7660
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7678
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7661
7679
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resource, null, null, errorCb);
|
|
7662
7680
|
});
|
|
7663
7681
|
__publicField$1(this, "PatchResourceDBR", async (resource, errorCb) => {
|
|
@@ -7669,7 +7687,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7669
7687
|
return ((_a = await this.PatchResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7670
7688
|
});
|
|
7671
7689
|
__publicField$1(this, "DeleteResourceAR", async (resource, errorCb) => {
|
|
7672
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7690
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7673
7691
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resource, null, null, errorCb);
|
|
7674
7692
|
});
|
|
7675
7693
|
__publicField$1(this, "DeleteResourceDBR", async (resource, errorCb) => {
|
|
@@ -7681,7 +7699,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7681
7699
|
return ((_a = await this.DeleteResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7682
7700
|
});
|
|
7683
7701
|
__publicField$1(this, "GetResourceAR", async (resource, filters, errorCb) => {
|
|
7684
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7702
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7685
7703
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7686
7704
|
url = `${url}?${filters}`;
|
|
7687
7705
|
}
|
|
@@ -7696,7 +7714,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7696
7714
|
return ((_a = await this.GetResourceDBR(resource, filters, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7697
7715
|
});
|
|
7698
7716
|
__publicField$1(this, "GetResourcesAR", async (filters, errorCb) => {
|
|
7699
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7717
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7700
7718
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7701
7719
|
url = `${url}?${filters}`;
|
|
7702
7720
|
}
|
|
@@ -7711,7 +7729,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7711
7729
|
return ((_a = await this.GetResourcesDBR(filters, errorCb)) == null ? void 0 : _a.map((r) => r.resdesc)) ?? null;
|
|
7712
7730
|
});
|
|
7713
7731
|
__publicField$1(this, "PostEntityAR", async (resourceEntity, errorCb) => {
|
|
7714
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7732
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities`;
|
|
7715
7733
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resourceEntity, null, null, errorCb);
|
|
7716
7734
|
});
|
|
7717
7735
|
__publicField$1(this, "PostEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7723,7 +7741,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7723
7741
|
return ((_a = await this.PostEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7724
7742
|
});
|
|
7725
7743
|
__publicField$1(this, "PutEntityAR", async (entity, errorCb) => {
|
|
7726
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7744
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${entity.resname}/entities/${entity.entname}`;
|
|
7727
7745
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", entity, null, null, errorCb);
|
|
7728
7746
|
});
|
|
7729
7747
|
__publicField$1(this, "PutEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7735,7 +7753,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7735
7753
|
return ((_a = await this.PutEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7736
7754
|
});
|
|
7737
7755
|
__publicField$1(this, "PatchEntityAR", async (resourceEntity, errorCb) => {
|
|
7738
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7756
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7739
7757
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resourceEntity, null, null, errorCb);
|
|
7740
7758
|
});
|
|
7741
7759
|
__publicField$1(this, "PatchEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7747,7 +7765,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7747
7765
|
return ((_a = await this.PatchEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7748
7766
|
});
|
|
7749
7767
|
__publicField$1(this, "DeleteEntityAR", async (resourceEntity, errorCb) => {
|
|
7750
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7768
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7751
7769
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resourceEntity, null, null, errorCb);
|
|
7752
7770
|
});
|
|
7753
7771
|
__publicField$1(this, "DeleteEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7759,7 +7777,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7759
7777
|
return ((_a = await this.DeleteEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7760
7778
|
});
|
|
7761
7779
|
__publicField$1(this, "GetEntityAR", async (resourceEntity, filters, errorCb) => {
|
|
7762
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7780
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7763
7781
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7764
7782
|
url = `${url}?${filters}`;
|
|
7765
7783
|
}
|
|
@@ -7774,7 +7792,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7774
7792
|
return ((_a = await this.GetEntityDBR(resourceEntity, filters, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7775
7793
|
});
|
|
7776
7794
|
__publicField$1(this, "GetEntitiesAR", async (resource, filters, errorCb) => {
|
|
7777
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7795
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}/entities`;
|
|
7778
7796
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7779
7797
|
url = `${url}?${filters}`;
|
|
7780
7798
|
}
|
|
@@ -11646,9 +11664,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
11646
11664
|
}
|
|
11647
11665
|
return ms2 + " ms";
|
|
11648
11666
|
}
|
|
11649
|
-
function plural(ms2, msAbs, n,
|
|
11667
|
+
function plural(ms2, msAbs, n, name) {
|
|
11650
11668
|
var isPlural = msAbs >= n * 1.5;
|
|
11651
|
-
return Math.round(ms2 / n) + " " +
|
|
11669
|
+
return Math.round(ms2 / n) + " " + name + (isPlural ? "s" : "");
|
|
11652
11670
|
}
|
|
11653
11671
|
return ms;
|
|
11654
11672
|
}
|
|
@@ -11747,11 +11765,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
11747
11765
|
}
|
|
11748
11766
|
return value2;
|
|
11749
11767
|
};
|
|
11750
|
-
const createToken = (
|
|
11768
|
+
const createToken = (name, value2, isGlobal) => {
|
|
11751
11769
|
const safe = makeSafeRegex(value2);
|
|
11752
11770
|
const index = R++;
|
|
11753
|
-
debug(
|
|
11754
|
-
t[
|
|
11771
|
+
debug(name, index, value2);
|
|
11772
|
+
t[name] = index;
|
|
11755
11773
|
src2[index] = value2;
|
|
11756
11774
|
safeSrc[index] = safe;
|
|
11757
11775
|
re2[index] = new RegExp(value2, isGlobal ? "g" : void 0);
|
|
@@ -14022,7 +14040,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
14022
14040
|
return value2 === 0 ? value2 : 0;
|
|
14023
14041
|
}
|
|
14024
14042
|
value2 = toNumber(value2);
|
|
14025
|
-
if (value2 === INFINITY || value2 === -
|
|
14043
|
+
if (value2 === INFINITY || value2 === -Infinity) {
|
|
14026
14044
|
var sign2 = value2 < 0 ? -1 : 1;
|
|
14027
14045
|
return sign2 * MAX_INTEGER;
|
|
14028
14046
|
}
|
|
@@ -14108,7 +14126,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
14108
14126
|
return value2 === 0 ? value2 : 0;
|
|
14109
14127
|
}
|
|
14110
14128
|
value2 = toNumber(value2);
|
|
14111
|
-
if (value2 === INFINITY || value2 === -
|
|
14129
|
+
if (value2 === INFINITY || value2 === -Infinity) {
|
|
14112
14130
|
var sign2 = value2 < 0 ? -1 : 1;
|
|
14113
14131
|
return sign2 * MAX_INTEGER;
|
|
14114
14132
|
}
|
|
@@ -14267,7 +14285,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
14267
14285
|
return value2 === 0 ? value2 : 0;
|
|
14268
14286
|
}
|
|
14269
14287
|
value2 = toNumber(value2);
|
|
14270
|
-
if (value2 === INFINITY || value2 === -
|
|
14288
|
+
if (value2 === INFINITY || value2 === -Infinity) {
|
|
14271
14289
|
var sign2 = value2 < 0 ? -1 : 1;
|
|
14272
14290
|
return sign2 * MAX_INTEGER;
|
|
14273
14291
|
}
|
|
@@ -14596,7 +14614,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
14596
14614
|
}
|
|
14597
14615
|
}
|
|
14598
14616
|
var src = { exports: {} };
|
|
14599
|
-
var browser$
|
|
14617
|
+
var browser$2 = { exports: {} };
|
|
14600
14618
|
var common;
|
|
14601
14619
|
var hasRequiredCommon;
|
|
14602
14620
|
function requireCommon() {
|
|
@@ -14725,19 +14743,19 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
14725
14743
|
createDebug.enable("");
|
|
14726
14744
|
return namespaces;
|
|
14727
14745
|
}
|
|
14728
|
-
function enabled(
|
|
14729
|
-
if (
|
|
14746
|
+
function enabled(name) {
|
|
14747
|
+
if (name[name.length - 1] === "*") {
|
|
14730
14748
|
return true;
|
|
14731
14749
|
}
|
|
14732
14750
|
let i;
|
|
14733
14751
|
let len;
|
|
14734
14752
|
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
14735
|
-
if (createDebug.skips[i].test(
|
|
14753
|
+
if (createDebug.skips[i].test(name)) {
|
|
14736
14754
|
return false;
|
|
14737
14755
|
}
|
|
14738
14756
|
}
|
|
14739
14757
|
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
14740
|
-
if (createDebug.names[i].test(
|
|
14758
|
+
if (createDebug.names[i].test(name)) {
|
|
14741
14759
|
return true;
|
|
14742
14760
|
}
|
|
14743
14761
|
}
|
|
@@ -14763,7 +14781,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
14763
14781
|
}
|
|
14764
14782
|
var hasRequiredBrowser$1;
|
|
14765
14783
|
function requireBrowser$1() {
|
|
14766
|
-
if (hasRequiredBrowser$1) return browser$
|
|
14784
|
+
if (hasRequiredBrowser$1) return browser$2.exports;
|
|
14767
14785
|
hasRequiredBrowser$1 = 1;
|
|
14768
14786
|
(function(module2, exports3) {
|
|
14769
14787
|
exports3.formatArgs = formatArgs;
|
|
@@ -14930,8 +14948,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
14930
14948
|
return "[UnexpectedJSONParseError]: " + error.message;
|
|
14931
14949
|
}
|
|
14932
14950
|
};
|
|
14933
|
-
})(browser$
|
|
14934
|
-
return browser$
|
|
14951
|
+
})(browser$2, browser$2.exports);
|
|
14952
|
+
return browser$2.exports;
|
|
14935
14953
|
}
|
|
14936
14954
|
const crypto$1 = crypto;
|
|
14937
14955
|
const isCryptoKey = (key) => key instanceof CryptoKey;
|
|
@@ -15248,11 +15266,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15248
15266
|
}
|
|
15249
15267
|
return out === 0;
|
|
15250
15268
|
};
|
|
15251
|
-
function unusable(
|
|
15252
|
-
return new TypeError(`CryptoKey does not support this operation, its ${prop} must be ${
|
|
15269
|
+
function unusable(name, prop = "algorithm.name") {
|
|
15270
|
+
return new TypeError(`CryptoKey does not support this operation, its ${prop} must be ${name}`);
|
|
15253
15271
|
}
|
|
15254
|
-
function isAlgorithm(algorithm,
|
|
15255
|
-
return algorithm.name ===
|
|
15272
|
+
function isAlgorithm(algorithm, name) {
|
|
15273
|
+
return algorithm.name === name;
|
|
15256
15274
|
}
|
|
15257
15275
|
function getHashLength(hash) {
|
|
15258
15276
|
return parseInt(hash.name.slice(4), 10);
|
|
@@ -15427,7 +15445,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15427
15445
|
const isKeyLike = (key) => {
|
|
15428
15446
|
return isCryptoKey(key);
|
|
15429
15447
|
};
|
|
15430
|
-
const types
|
|
15448
|
+
const types = ["CryptoKey"];
|
|
15431
15449
|
async function cbcDecrypt(enc, cek, ciphertext, iv, tag, aad) {
|
|
15432
15450
|
if (!(cek instanceof Uint8Array)) {
|
|
15433
15451
|
throw new TypeError(invalidKeyInput(cek, "Uint8Array"));
|
|
@@ -15479,7 +15497,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15479
15497
|
}
|
|
15480
15498
|
const decrypt$2 = async (enc, cek, ciphertext, iv, tag, aad) => {
|
|
15481
15499
|
if (!isCryptoKey(cek) && !(cek instanceof Uint8Array)) {
|
|
15482
|
-
throw new TypeError(invalidKeyInput(cek, ...types
|
|
15500
|
+
throw new TypeError(invalidKeyInput(cek, ...types, "Uint8Array"));
|
|
15483
15501
|
}
|
|
15484
15502
|
checkIvLength(enc, iv);
|
|
15485
15503
|
switch (enc) {
|
|
@@ -15560,7 +15578,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15560
15578
|
if (key instanceof Uint8Array) {
|
|
15561
15579
|
return crypto$1.subtle.importKey("raw", key, "AES-KW", true, [usage]);
|
|
15562
15580
|
}
|
|
15563
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15581
|
+
throw new TypeError(invalidKeyInput(key, ...types, "Uint8Array"));
|
|
15564
15582
|
}
|
|
15565
15583
|
const wrap$1 = async (alg, key, cek) => {
|
|
15566
15584
|
const cryptoKey = await getCryptoKey$2(key, alg, "wrapKey");
|
|
@@ -15576,11 +15594,11 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15576
15594
|
};
|
|
15577
15595
|
async function deriveKey$1(publicKey, privateKey, algorithm, keyLength, apu = new Uint8Array(0), apv = new Uint8Array(0)) {
|
|
15578
15596
|
if (!isCryptoKey(publicKey)) {
|
|
15579
|
-
throw new TypeError(invalidKeyInput(publicKey, ...types
|
|
15597
|
+
throw new TypeError(invalidKeyInput(publicKey, ...types));
|
|
15580
15598
|
}
|
|
15581
15599
|
checkEncCryptoKey(publicKey, "ECDH");
|
|
15582
15600
|
if (!isCryptoKey(privateKey)) {
|
|
15583
|
-
throw new TypeError(invalidKeyInput(privateKey, ...types
|
|
15601
|
+
throw new TypeError(invalidKeyInput(privateKey, ...types));
|
|
15584
15602
|
}
|
|
15585
15603
|
checkEncCryptoKey(privateKey, "ECDH", "deriveBits");
|
|
15586
15604
|
const value2 = concat(lengthAndInput(encoder.encode(algorithm)), lengthAndInput(apu), lengthAndInput(apv), uint32be(keyLength));
|
|
@@ -15600,13 +15618,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15600
15618
|
}
|
|
15601
15619
|
async function generateEpk(key) {
|
|
15602
15620
|
if (!isCryptoKey(key)) {
|
|
15603
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15621
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15604
15622
|
}
|
|
15605
15623
|
return crypto$1.subtle.generateKey(key.algorithm, true, ["deriveBits"]);
|
|
15606
15624
|
}
|
|
15607
15625
|
function ecdhAllowed(key) {
|
|
15608
15626
|
if (!isCryptoKey(key)) {
|
|
15609
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15627
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15610
15628
|
}
|
|
15611
15629
|
return ["P-256", "P-384", "P-521"].includes(key.algorithm.namedCurve) || key.algorithm.name === "X25519" || key.algorithm.name === "X448";
|
|
15612
15630
|
}
|
|
@@ -15623,7 +15641,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15623
15641
|
checkEncCryptoKey(key, alg, "deriveBits", "deriveKey");
|
|
15624
15642
|
return key;
|
|
15625
15643
|
}
|
|
15626
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15644
|
+
throw new TypeError(invalidKeyInput(key, ...types, "Uint8Array"));
|
|
15627
15645
|
}
|
|
15628
15646
|
async function deriveKey(p2s$1, alg, p2c, key) {
|
|
15629
15647
|
checkP2s(p2s$1);
|
|
@@ -15678,7 +15696,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15678
15696
|
};
|
|
15679
15697
|
const encrypt$1 = async (alg, key, cek) => {
|
|
15680
15698
|
if (!isCryptoKey(key)) {
|
|
15681
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15699
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15682
15700
|
}
|
|
15683
15701
|
checkEncCryptoKey(key, alg, "encrypt", "wrapKey");
|
|
15684
15702
|
checkKeyLength(alg, key);
|
|
@@ -15693,7 +15711,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
15693
15711
|
};
|
|
15694
15712
|
const decrypt = async (alg, key, encryptedKey) => {
|
|
15695
15713
|
if (!isCryptoKey(key)) {
|
|
15696
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15714
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15697
15715
|
}
|
|
15698
15716
|
checkEncCryptoKey(key, alg, "decrypt", "unwrapKey");
|
|
15699
15717
|
checkKeyLength(alg, key);
|
|
@@ -15732,7 +15750,7 @@ ${newlined}
|
|
|
15732
15750
|
};
|
|
15733
15751
|
const genericExport = async (keyType, keyFormat, key) => {
|
|
15734
15752
|
if (!isCryptoKey(key)) {
|
|
15735
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
15753
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
15736
15754
|
}
|
|
15737
15755
|
if (!key.extractable) {
|
|
15738
15756
|
throw new TypeError("CryptoKey is not extractable");
|
|
@@ -16109,30 +16127,30 @@ ${newlined}
|
|
|
16109
16127
|
if (key instanceof Uint8Array)
|
|
16110
16128
|
return;
|
|
16111
16129
|
if (!isKeyLike(key)) {
|
|
16112
|
-
throw new TypeError(withAlg(alg, key, ...types
|
|
16130
|
+
throw new TypeError(withAlg(alg, key, ...types, "Uint8Array"));
|
|
16113
16131
|
}
|
|
16114
16132
|
if (key.type !== "secret") {
|
|
16115
|
-
throw new TypeError(`${types
|
|
16133
|
+
throw new TypeError(`${types.join(" or ")} instances for symmetric algorithms must be of type "secret"`);
|
|
16116
16134
|
}
|
|
16117
16135
|
};
|
|
16118
16136
|
const asymmetricTypeCheck = (alg, key, usage) => {
|
|
16119
16137
|
if (!isKeyLike(key)) {
|
|
16120
|
-
throw new TypeError(withAlg(alg, key, ...types
|
|
16138
|
+
throw new TypeError(withAlg(alg, key, ...types));
|
|
16121
16139
|
}
|
|
16122
16140
|
if (key.type === "secret") {
|
|
16123
|
-
throw new TypeError(`${types
|
|
16141
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);
|
|
16124
16142
|
}
|
|
16125
16143
|
if (usage === "sign" && key.type === "public") {
|
|
16126
|
-
throw new TypeError(`${types
|
|
16144
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);
|
|
16127
16145
|
}
|
|
16128
16146
|
if (usage === "decrypt" && key.type === "public") {
|
|
16129
|
-
throw new TypeError(`${types
|
|
16147
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);
|
|
16130
16148
|
}
|
|
16131
16149
|
if (key.algorithm && usage === "verify" && key.type === "private") {
|
|
16132
|
-
throw new TypeError(`${types
|
|
16150
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);
|
|
16133
16151
|
}
|
|
16134
16152
|
if (key.algorithm && usage === "encrypt" && key.type === "private") {
|
|
16135
|
-
throw new TypeError(`${types
|
|
16153
|
+
throw new TypeError(`${types.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
16136
16154
|
}
|
|
16137
16155
|
};
|
|
16138
16156
|
const checkKeyType = (alg, key, usage) => {
|
|
@@ -16181,7 +16199,7 @@ ${newlined}
|
|
|
16181
16199
|
}
|
|
16182
16200
|
const encrypt = async (enc, plaintext, cek, iv, aad) => {
|
|
16183
16201
|
if (!isCryptoKey(cek) && !(cek instanceof Uint8Array)) {
|
|
16184
|
-
throw new TypeError(invalidKeyInput(cek, ...types
|
|
16202
|
+
throw new TypeError(invalidKeyInput(cek, ...types, "Uint8Array"));
|
|
16185
16203
|
}
|
|
16186
16204
|
checkIvLength(enc, iv);
|
|
16187
16205
|
switch (enc) {
|
|
@@ -16563,7 +16581,7 @@ ${newlined}
|
|
|
16563
16581
|
};
|
|
16564
16582
|
}
|
|
16565
16583
|
if (!isCryptoKey(key)) {
|
|
16566
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
16584
|
+
throw new TypeError(invalidKeyInput(key, ...types, "Uint8Array"));
|
|
16567
16585
|
}
|
|
16568
16586
|
if (!key.extractable) {
|
|
16569
16587
|
throw new TypeError("non-extractable CryptoKey cannot be exported as a JWK");
|
|
@@ -17002,11 +17020,11 @@ ${newlined}
|
|
|
17002
17020
|
}
|
|
17003
17021
|
if (key instanceof Uint8Array) {
|
|
17004
17022
|
if (!alg.startsWith("HS")) {
|
|
17005
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
17023
|
+
throw new TypeError(invalidKeyInput(key, ...types));
|
|
17006
17024
|
}
|
|
17007
17025
|
return crypto$1.subtle.importKey("raw", key, { hash: `SHA-${alg.slice(-3)}`, name: "HMAC" }, false, [usage]);
|
|
17008
17026
|
}
|
|
17009
|
-
throw new TypeError(invalidKeyInput(key, ...types
|
|
17027
|
+
throw new TypeError(invalidKeyInput(key, ...types, "Uint8Array"));
|
|
17010
17028
|
}
|
|
17011
17029
|
const verify = async (alg, key, signature, data) => {
|
|
17012
17030
|
const cryptoKey = await getCryptoKey(alg, key, "verify");
|
|
@@ -17638,9 +17656,9 @@ ${newlined}
|
|
|
17638
17656
|
return enc.encrypt(key, options);
|
|
17639
17657
|
}
|
|
17640
17658
|
}
|
|
17641
|
-
const check = (value2,
|
|
17659
|
+
const check = (value2, description) => {
|
|
17642
17660
|
if (typeof value2 !== "string" || !value2) {
|
|
17643
|
-
throw new JWKInvalid(`${
|
|
17661
|
+
throw new JWKInvalid(`${description} missing or invalid`);
|
|
17644
17662
|
}
|
|
17645
17663
|
};
|
|
17646
17664
|
async function calculateJwkThumbprint(jwk, digestAlgorithm) {
|
|
@@ -18130,7 +18148,7 @@ ${newlined}
|
|
|
18130
18148
|
return generateSecret$1(alg, options);
|
|
18131
18149
|
}
|
|
18132
18150
|
const value = "WebCryptoAPI";
|
|
18133
|
-
const browser$
|
|
18151
|
+
const browser$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18134
18152
|
__proto__: null,
|
|
18135
18153
|
CompactEncrypt,
|
|
18136
18154
|
CompactSign,
|
|
@@ -18169,7 +18187,7 @@ ${newlined}
|
|
|
18169
18187
|
jwtDecrypt,
|
|
18170
18188
|
jwtVerify
|
|
18171
18189
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18172
|
-
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace$1(browser$
|
|
18190
|
+
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace$1(browser$1);
|
|
18173
18191
|
var JwksError_1;
|
|
18174
18192
|
var hasRequiredJwksError;
|
|
18175
18193
|
function requireJwksError() {
|
|
@@ -20621,48 +20639,20 @@ ${newlined}
|
|
|
20621
20639
|
}
|
|
20622
20640
|
var srcExports = requireSrc();
|
|
20623
20641
|
const jwksClient = /* @__PURE__ */ getDefaultExportFromCjs$1(srcExports);
|
|
20624
|
-
var main
|
|
20642
|
+
var main = { exports: {} };
|
|
20625
20643
|
const __viteBrowserExternal = {};
|
|
20626
20644
|
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20627
20645
|
__proto__: null,
|
|
20628
20646
|
default: __viteBrowserExternal
|
|
20629
20647
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20630
20648
|
const require$$0 = /* @__PURE__ */ getAugmentedNamespace$1(__viteBrowserExternal$1);
|
|
20631
|
-
const name = "dotenv";
|
|
20632
20649
|
const version = "16.4.7";
|
|
20633
|
-
const description = "Loads environment variables from .env file";
|
|
20634
|
-
const main = "lib/main.js";
|
|
20635
|
-
const types = "lib/main.d.ts";
|
|
20636
|
-
const exports$1 = { ".": { "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" };
|
|
20637
|
-
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" };
|
|
20638
|
-
const repository = { "type": "git", "url": "git://github.com/motdotla/dotenv.git" };
|
|
20639
|
-
const funding = "https://dotenvx.com";
|
|
20640
|
-
const keywords = ["dotenv", "env", ".env", "environment", "variables", "config", "settings"];
|
|
20641
|
-
const readmeFilename = "README.md";
|
|
20642
|
-
const license = "BSD-2-Clause";
|
|
20643
|
-
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" };
|
|
20644
|
-
const engines = { "node": ">=12" };
|
|
20645
|
-
const browser$1 = { "fs": false };
|
|
20646
20650
|
const require$$4 = {
|
|
20647
|
-
|
|
20648
|
-
version,
|
|
20649
|
-
description,
|
|
20650
|
-
main,
|
|
20651
|
-
types,
|
|
20652
|
-
exports: exports$1,
|
|
20653
|
-
scripts,
|
|
20654
|
-
repository,
|
|
20655
|
-
funding,
|
|
20656
|
-
keywords,
|
|
20657
|
-
readmeFilename,
|
|
20658
|
-
license,
|
|
20659
|
-
devDependencies,
|
|
20660
|
-
engines,
|
|
20661
|
-
browser: browser$1
|
|
20651
|
+
version
|
|
20662
20652
|
};
|
|
20663
20653
|
var hasRequiredMain;
|
|
20664
20654
|
function requireMain() {
|
|
20665
|
-
if (hasRequiredMain) return main
|
|
20655
|
+
if (hasRequiredMain) return main.exports;
|
|
20666
20656
|
hasRequiredMain = 1;
|
|
20667
20657
|
const fs = require$$0;
|
|
20668
20658
|
const path = require$$1;
|
|
@@ -20917,15 +20907,15 @@ ${newlined}
|
|
|
20917
20907
|
parse: parse2,
|
|
20918
20908
|
populate
|
|
20919
20909
|
};
|
|
20920
|
-
main
|
|
20921
|
-
main
|
|
20922
|
-
main
|
|
20923
|
-
main
|
|
20924
|
-
main
|
|
20925
|
-
main
|
|
20926
|
-
main
|
|
20927
|
-
main
|
|
20928
|
-
return main
|
|
20910
|
+
main.exports.configDotenv = DotenvModule.configDotenv;
|
|
20911
|
+
main.exports._configVault = DotenvModule._configVault;
|
|
20912
|
+
main.exports._parseVault = DotenvModule._parseVault;
|
|
20913
|
+
main.exports.config = DotenvModule.config;
|
|
20914
|
+
main.exports.decrypt = DotenvModule.decrypt;
|
|
20915
|
+
main.exports.parse = DotenvModule.parse;
|
|
20916
|
+
main.exports.populate = DotenvModule.populate;
|
|
20917
|
+
main.exports = DotenvModule;
|
|
20918
|
+
return main.exports;
|
|
20929
20919
|
}
|
|
20930
20920
|
var mainExports = requireMain();
|
|
20931
20921
|
const dotenv = /* @__PURE__ */ getDefaultExportFromCjs$1(mainExports);
|
|
@@ -21935,11 +21925,11 @@ ${newlined}
|
|
|
21935
21925
|
const offset = isBackground ? 10 : 0;
|
|
21936
21926
|
const styles = {};
|
|
21937
21927
|
for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
|
|
21938
|
-
const
|
|
21928
|
+
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
21939
21929
|
if (sourceSpace === targetSpace) {
|
|
21940
|
-
styles[
|
|
21930
|
+
styles[name] = wrap2(identity, offset);
|
|
21941
21931
|
} else if (typeof suite === "object") {
|
|
21942
|
-
styles[
|
|
21932
|
+
styles[name] = wrap2(suite[targetSpace], offset);
|
|
21943
21933
|
}
|
|
21944
21934
|
}
|
|
21945
21935
|
return styles;
|
|
@@ -22118,7 +22108,7 @@ ${newlined}
|
|
|
22118
22108
|
}
|
|
22119
22109
|
return ESCAPES.get(c) || c;
|
|
22120
22110
|
}
|
|
22121
|
-
function parseArguments(
|
|
22111
|
+
function parseArguments(name, arguments_) {
|
|
22122
22112
|
const results = [];
|
|
22123
22113
|
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
22124
22114
|
let matches;
|
|
@@ -22129,7 +22119,7 @@ ${newlined}
|
|
|
22129
22119
|
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
22130
22120
|
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape2(escape) : character));
|
|
22131
22121
|
} else {
|
|
22132
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${
|
|
22122
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
22133
22123
|
}
|
|
22134
22124
|
}
|
|
22135
22125
|
return results;
|
|
@@ -22139,12 +22129,12 @@ ${newlined}
|
|
|
22139
22129
|
const results = [];
|
|
22140
22130
|
let matches;
|
|
22141
22131
|
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
22142
|
-
const
|
|
22132
|
+
const name = matches[1];
|
|
22143
22133
|
if (matches[2]) {
|
|
22144
|
-
const args = parseArguments(
|
|
22145
|
-
results.push([
|
|
22134
|
+
const args = parseArguments(name, matches[2]);
|
|
22135
|
+
results.push([name].concat(args));
|
|
22146
22136
|
} else {
|
|
22147
|
-
results.push([
|
|
22137
|
+
results.push([name]);
|
|
22148
22138
|
}
|
|
22149
22139
|
}
|
|
22150
22140
|
return results;
|
|
@@ -23474,7 +23464,7 @@ ${newlined}
|
|
|
23474
23464
|
const native = { randomUUID };
|
|
23475
23465
|
function v4(options, buf, offset) {
|
|
23476
23466
|
var _a;
|
|
23477
|
-
if (native.randomUUID &&
|
|
23467
|
+
if (native.randomUUID && true && !options) {
|
|
23478
23468
|
return native.randomUUID();
|
|
23479
23469
|
}
|
|
23480
23470
|
options = options || {};
|