@nsshunt/stsuxvue 1.0.120 → 1.0.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stsuxvue.cjs +1097 -806
- package/dist/stsuxvue.cjs.map +1 -1
- package/dist/stsuxvue.mjs +1097 -806
- package/dist/stsuxvue.mjs.map +1 -1
- package/package.json +21 -22
- package/types/components/UXModelNavigator.vue.d.ts.map +1 -1
package/dist/stsuxvue.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
10
|
-
var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
10
|
+
var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
11
11
|
var __exportAll = (all, no_symbols) => {
|
|
12
12
|
let target = {};
|
|
13
13
|
for (var name in all) __defProp(target, name, {
|
|
@@ -5939,6 +5939,13 @@ var import_ansi_to_html = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
|
|
|
5939
5939
|
sub: remove
|
|
5940
5940
|
},
|
|
5941
5941
|
{
|
|
5942
|
+
/**
|
|
5943
|
+
* extracts real text - not containing:
|
|
5944
|
+
* - `\x1b' - ESC - escape (Ascii 27)
|
|
5945
|
+
* - '\x08' - BS - backspace (Ascii 8)
|
|
5946
|
+
* - `\n` - Newline - linefeed (LF) (ascii 10)
|
|
5947
|
+
* - `\r` - Windows Carriage Return (CR)
|
|
5948
|
+
*/
|
|
5942
5949
|
pattern: /^(([^\x1b\x08\r\n])+)/,
|
|
5943
5950
|
sub: realText
|
|
5944
5951
|
}
|
|
@@ -6029,7 +6036,7 @@ var import_ansi_to_html = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
|
|
|
6029
6036
|
return Filter;
|
|
6030
6037
|
}();
|
|
6031
6038
|
})))(), 1);
|
|
6032
|
-
/*! @license DOMPurify 3.
|
|
6039
|
+
/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
|
|
6033
6040
|
var { entries, setPrototypeOf, isFrozen, getPrototypeOf: getPrototypeOf$1, getOwnPropertyDescriptor } = Object;
|
|
6034
6041
|
var { freeze, seal, create } = Object;
|
|
6035
6042
|
var { apply, construct } = typeof Reflect !== "undefined" && Reflect;
|
|
@@ -6052,13 +6059,19 @@ var arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
|
6052
6059
|
var arrayPop = unapply(Array.prototype.pop);
|
|
6053
6060
|
var arrayPush = unapply(Array.prototype.push);
|
|
6054
6061
|
var arraySplice = unapply(Array.prototype.splice);
|
|
6062
|
+
var arrayIsArray = Array.isArray;
|
|
6055
6063
|
var stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
6056
6064
|
var stringToString = unapply(String.prototype.toString);
|
|
6057
6065
|
var stringMatch = unapply(String.prototype.match);
|
|
6058
6066
|
var stringReplace = unapply(String.prototype.replace);
|
|
6059
6067
|
var stringIndexOf = unapply(String.prototype.indexOf);
|
|
6060
6068
|
var stringTrim = unapply(String.prototype.trim);
|
|
6069
|
+
var numberToString = unapply(Number.prototype.toString);
|
|
6070
|
+
var booleanToString = unapply(Boolean.prototype.toString);
|
|
6071
|
+
var bigintToString = typeof BigInt === "undefined" ? null : unapply(BigInt.prototype.toString);
|
|
6072
|
+
var symbolToString = typeof Symbol === "undefined" ? null : unapply(Symbol.prototype.toString);
|
|
6061
6073
|
var objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
6074
|
+
var objectToString = unapply(Object.prototype.toString);
|
|
6062
6075
|
var regExpTest = unapply(RegExp.prototype.test);
|
|
6063
6076
|
var typeErrorCreate = unconstruct(TypeError);
|
|
6064
6077
|
/**
|
|
@@ -6097,6 +6110,7 @@ function unconstruct(Func) {
|
|
|
6097
6110
|
function addToSet(set, array) {
|
|
6098
6111
|
let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
|
|
6099
6112
|
if (setPrototypeOf) setPrototypeOf(set, null);
|
|
6113
|
+
if (!arrayIsArray(array)) return set;
|
|
6100
6114
|
let l = array.length;
|
|
6101
6115
|
while (l--) {
|
|
6102
6116
|
let element = array[l];
|
|
@@ -6129,12 +6143,40 @@ function cleanArray(array) {
|
|
|
6129
6143
|
*/
|
|
6130
6144
|
function clone(object) {
|
|
6131
6145
|
const newObject = create(null);
|
|
6132
|
-
for (const [property, value] of entries(object)) if (objectHasOwnProperty(object, property)) if (
|
|
6146
|
+
for (const [property, value] of entries(object)) if (objectHasOwnProperty(object, property)) if (arrayIsArray(value)) newObject[property] = cleanArray(value);
|
|
6133
6147
|
else if (value && typeof value === "object" && value.constructor === Object) newObject[property] = clone(value);
|
|
6134
6148
|
else newObject[property] = value;
|
|
6135
6149
|
return newObject;
|
|
6136
6150
|
}
|
|
6137
6151
|
/**
|
|
6152
|
+
* Convert non-node values into strings without depending on direct property access.
|
|
6153
|
+
*
|
|
6154
|
+
* @param value - The value to stringify.
|
|
6155
|
+
* @returns A string representation of the provided value.
|
|
6156
|
+
*/
|
|
6157
|
+
function stringifyValue(value) {
|
|
6158
|
+
switch (typeof value) {
|
|
6159
|
+
case "string": return value;
|
|
6160
|
+
case "number": return numberToString(value);
|
|
6161
|
+
case "boolean": return booleanToString(value);
|
|
6162
|
+
case "bigint": return bigintToString ? bigintToString(value) : "0";
|
|
6163
|
+
case "symbol": return symbolToString ? symbolToString(value) : "Symbol()";
|
|
6164
|
+
case "undefined": return objectToString(value);
|
|
6165
|
+
case "function":
|
|
6166
|
+
case "object": {
|
|
6167
|
+
if (value === null) return objectToString(value);
|
|
6168
|
+
const valueAsRecord = value;
|
|
6169
|
+
const valueToString = lookupGetter(valueAsRecord, "toString");
|
|
6170
|
+
if (typeof valueToString === "function") {
|
|
6171
|
+
const stringified = valueToString(valueAsRecord);
|
|
6172
|
+
return typeof stringified === "string" ? stringified : objectToString(stringified);
|
|
6173
|
+
}
|
|
6174
|
+
return objectToString(value);
|
|
6175
|
+
}
|
|
6176
|
+
default: return objectToString(value);
|
|
6177
|
+
}
|
|
6178
|
+
}
|
|
6179
|
+
/**
|
|
6138
6180
|
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
|
6139
6181
|
*
|
|
6140
6182
|
* @param object - The object to look up the getter function in its prototype chain.
|
|
@@ -6155,6 +6197,14 @@ function lookupGetter(object, prop) {
|
|
|
6155
6197
|
}
|
|
6156
6198
|
return fallbackValue;
|
|
6157
6199
|
}
|
|
6200
|
+
function isRegex(value) {
|
|
6201
|
+
try {
|
|
6202
|
+
regExpTest(value, "");
|
|
6203
|
+
return true;
|
|
6204
|
+
} catch (_unused) {
|
|
6205
|
+
return false;
|
|
6206
|
+
}
|
|
6207
|
+
}
|
|
6158
6208
|
var html$1 = freeze([
|
|
6159
6209
|
"a",
|
|
6160
6210
|
"abbr",
|
|
@@ -6542,8 +6592,7 @@ var html = freeze([
|
|
|
6542
6592
|
"value",
|
|
6543
6593
|
"width",
|
|
6544
6594
|
"wrap",
|
|
6545
|
-
"xmlns"
|
|
6546
|
-
"slot"
|
|
6595
|
+
"xmlns"
|
|
6547
6596
|
]);
|
|
6548
6597
|
var svg = freeze([
|
|
6549
6598
|
"accent-height",
|
|
@@ -6741,8 +6790,9 @@ var mathMl = freeze([
|
|
|
6741
6790
|
"align",
|
|
6742
6791
|
"bevelled",
|
|
6743
6792
|
"close",
|
|
6744
|
-
"
|
|
6793
|
+
"columnalign",
|
|
6745
6794
|
"columnlines",
|
|
6795
|
+
"columnspacing",
|
|
6746
6796
|
"columnspan",
|
|
6747
6797
|
"denomalign",
|
|
6748
6798
|
"depth",
|
|
@@ -6758,8 +6808,8 @@ var mathMl = freeze([
|
|
|
6758
6808
|
"largeop",
|
|
6759
6809
|
"length",
|
|
6760
6810
|
"linethickness",
|
|
6761
|
-
"lspace",
|
|
6762
6811
|
"lquote",
|
|
6812
|
+
"lspace",
|
|
6763
6813
|
"mathbackground",
|
|
6764
6814
|
"mathcolor",
|
|
6765
6815
|
"mathsize",
|
|
@@ -6822,17 +6872,10 @@ var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
|
|
|
6822
6872
|
});
|
|
6823
6873
|
var NODE_TYPE = {
|
|
6824
6874
|
element: 1,
|
|
6825
|
-
attribute: 2,
|
|
6826
6875
|
text: 3,
|
|
6827
|
-
cdataSection: 4,
|
|
6828
|
-
entityReference: 5,
|
|
6829
|
-
entityNode: 6,
|
|
6830
6876
|
progressingInstruction: 7,
|
|
6831
6877
|
comment: 8,
|
|
6832
|
-
document: 9
|
|
6833
|
-
documentType: 10,
|
|
6834
|
-
documentFragment: 11,
|
|
6835
|
-
notation: 12
|
|
6878
|
+
document: 9
|
|
6836
6879
|
};
|
|
6837
6880
|
var getGlobal$1 = function getGlobal() {
|
|
6838
6881
|
return typeof window === "undefined" ? null : window;
|
|
@@ -6881,7 +6924,7 @@ var _createHooksMap = function _createHooksMap() {
|
|
|
6881
6924
|
function createDOMPurify() {
|
|
6882
6925
|
let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal$1();
|
|
6883
6926
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
6884
|
-
DOMPurify.version = "3.
|
|
6927
|
+
DOMPurify.version = "3.4.2";
|
|
6885
6928
|
DOMPurify.removed = [];
|
|
6886
6929
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
6887
6930
|
DOMPurify.isSupported = false;
|
|
@@ -7086,15 +7129,15 @@ function createDOMPurify() {
|
|
|
7086
7129
|
cfg = clone(cfg);
|
|
7087
7130
|
PARSER_MEDIA_TYPE = SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
|
|
7088
7131
|
transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
|
|
7089
|
-
ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
7090
|
-
ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
7091
|
-
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
7092
|
-
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
7093
|
-
DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
7094
|
-
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
7095
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
7096
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
7097
|
-
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
|
|
7132
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") && arrayIsArray(cfg.ALLOWED_TAGS) ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
7133
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") && arrayIsArray(cfg.ALLOWED_ATTR) ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
7134
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") && arrayIsArray(cfg.ALLOWED_NAMESPACES) ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
7135
|
+
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") && arrayIsArray(cfg.ADD_URI_SAFE_ATTR) ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
7136
|
+
DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") && arrayIsArray(cfg.ADD_DATA_URI_TAGS) ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
7137
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") && arrayIsArray(cfg.FORBID_CONTENTS) ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
7138
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") && arrayIsArray(cfg.FORBID_TAGS) ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
7139
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") && arrayIsArray(cfg.FORBID_ATTR) ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
7140
|
+
USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === "object" ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
|
|
7098
7141
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
|
|
7099
7142
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
|
|
7100
7143
|
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
|
|
@@ -7110,14 +7153,21 @@ function createDOMPurify() {
|
|
|
7110
7153
|
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
|
|
7111
7154
|
KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
|
|
7112
7155
|
IN_PLACE = cfg.IN_PLACE || false;
|
|
7113
|
-
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP
|
|
7114
|
-
NAMESPACE = cfg.NAMESPACE
|
|
7115
|
-
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7156
|
+
IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI;
|
|
7157
|
+
NAMESPACE = typeof cfg.NAMESPACE === "string" ? cfg.NAMESPACE : HTML_NAMESPACE;
|
|
7158
|
+
MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, "MATHML_TEXT_INTEGRATION_POINTS") && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === "object" ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, [
|
|
7159
|
+
"mi",
|
|
7160
|
+
"mo",
|
|
7161
|
+
"mn",
|
|
7162
|
+
"ms",
|
|
7163
|
+
"mtext"
|
|
7164
|
+
]);
|
|
7165
|
+
HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, "HTML_INTEGRATION_POINTS") && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === "object" ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, ["annotation-xml"]);
|
|
7166
|
+
const customElementHandling = objectHasOwnProperty(cfg, "CUSTOM_ELEMENT_HANDLING") && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === "object" ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
|
|
7167
|
+
CUSTOM_ELEMENT_HANDLING = create(null);
|
|
7168
|
+
if (objectHasOwnProperty(customElementHandling, "tagNameCheck") && isRegexOrFunction(customElementHandling.tagNameCheck)) CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck;
|
|
7169
|
+
if (objectHasOwnProperty(customElementHandling, "attributeNameCheck") && isRegexOrFunction(customElementHandling.attributeNameCheck)) CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck;
|
|
7170
|
+
if (objectHasOwnProperty(customElementHandling, "allowCustomizedBuiltInElements") && typeof customElementHandling.allowCustomizedBuiltInElements === "boolean") CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements;
|
|
7121
7171
|
if (SAFE_FOR_TEMPLATES) ALLOW_DATA_ATTR = false;
|
|
7122
7172
|
if (RETURN_DOM_FRAGMENT) RETURN_DOM = true;
|
|
7123
7173
|
if (USE_PROFILES) {
|
|
@@ -7143,24 +7193,28 @@ function createDOMPurify() {
|
|
|
7143
7193
|
addToSet(ALLOWED_ATTR, xml);
|
|
7144
7194
|
}
|
|
7145
7195
|
}
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
if (
|
|
7149
|
-
|
|
7150
|
-
if (
|
|
7151
|
-
|
|
7196
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
7197
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
7198
|
+
if (objectHasOwnProperty(cfg, "ADD_TAGS")) {
|
|
7199
|
+
if (typeof cfg.ADD_TAGS === "function") EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
7200
|
+
else if (arrayIsArray(cfg.ADD_TAGS)) {
|
|
7201
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
7202
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
7203
|
+
}
|
|
7152
7204
|
}
|
|
7153
|
-
if (
|
|
7154
|
-
|
|
7155
|
-
if (
|
|
7156
|
-
|
|
7205
|
+
if (objectHasOwnProperty(cfg, "ADD_ATTR")) {
|
|
7206
|
+
if (typeof cfg.ADD_ATTR === "function") EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
7207
|
+
else if (arrayIsArray(cfg.ADD_ATTR)) {
|
|
7208
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
7209
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
7210
|
+
}
|
|
7157
7211
|
}
|
|
7158
|
-
if (cfg.ADD_URI_SAFE_ATTR) addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
7159
|
-
if (cfg.FORBID_CONTENTS) {
|
|
7212
|
+
if (objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") && arrayIsArray(cfg.ADD_URI_SAFE_ATTR)) addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
7213
|
+
if (objectHasOwnProperty(cfg, "FORBID_CONTENTS") && arrayIsArray(cfg.FORBID_CONTENTS)) {
|
|
7160
7214
|
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
7161
7215
|
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
7162
7216
|
}
|
|
7163
|
-
if (cfg.ADD_FORBID_CONTENTS) {
|
|
7217
|
+
if (objectHasOwnProperty(cfg, "ADD_FORBID_CONTENTS") && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
|
|
7164
7218
|
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
7165
7219
|
addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
|
|
7166
7220
|
}
|
|
@@ -7351,6 +7405,10 @@ function createDOMPurify() {
|
|
|
7351
7405
|
_forceRemove(currentNode);
|
|
7352
7406
|
return true;
|
|
7353
7407
|
}
|
|
7408
|
+
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === "style" && _isNode(currentNode.firstElementChild)) {
|
|
7409
|
+
_forceRemove(currentNode);
|
|
7410
|
+
return true;
|
|
7411
|
+
}
|
|
7354
7412
|
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
7355
7413
|
_forceRemove(currentNode);
|
|
7356
7414
|
return true;
|
|
@@ -7359,7 +7417,7 @@ function createDOMPurify() {
|
|
|
7359
7417
|
_forceRemove(currentNode);
|
|
7360
7418
|
return true;
|
|
7361
7419
|
}
|
|
7362
|
-
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) &&
|
|
7420
|
+
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
7363
7421
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
7364
7422
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
|
|
7365
7423
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
|
|
@@ -7371,7 +7429,6 @@ function createDOMPurify() {
|
|
|
7371
7429
|
const childCount = childNodes.length;
|
|
7372
7430
|
for (let i = childCount - 1; i >= 0; --i) {
|
|
7373
7431
|
const childClone = cloneNode(childNodes[i], true);
|
|
7374
|
-
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
|
7375
7432
|
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
7376
7433
|
}
|
|
7377
7434
|
}
|
|
@@ -7415,10 +7472,10 @@ function createDOMPurify() {
|
|
|
7415
7472
|
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
7416
7473
|
if (FORBID_ATTR[lcName]) return false;
|
|
7417
7474
|
if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document || value in formElement)) return false;
|
|
7475
|
+
const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
|
|
7418
7476
|
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName));
|
|
7419
7477
|
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName));
|
|
7420
|
-
else if (
|
|
7421
|
-
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) if (_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value)));
|
|
7478
|
+
else if (!nameIsPermitted || FORBID_ATTR[lcName]) if (_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value)));
|
|
7422
7479
|
else return false;
|
|
7423
7480
|
else if (URI_SAFE_ATTRIBUTES[lcName]);
|
|
7424
7481
|
else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, "")));
|
|
@@ -7427,6 +7484,16 @@ function createDOMPurify() {
|
|
|
7427
7484
|
else if (value) return false;
|
|
7428
7485
|
return true;
|
|
7429
7486
|
};
|
|
7487
|
+
const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, [
|
|
7488
|
+
"annotation-xml",
|
|
7489
|
+
"color-profile",
|
|
7490
|
+
"font-face",
|
|
7491
|
+
"font-face-format",
|
|
7492
|
+
"font-face-name",
|
|
7493
|
+
"font-face-src",
|
|
7494
|
+
"font-face-uri",
|
|
7495
|
+
"missing-glyph"
|
|
7496
|
+
]);
|
|
7430
7497
|
/**
|
|
7431
7498
|
* _isBasicCustomElement
|
|
7432
7499
|
* checks if at least one dash is included in tagName, and it's not the first char
|
|
@@ -7436,7 +7503,7 @@ function createDOMPurify() {
|
|
|
7436
7503
|
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
7437
7504
|
*/
|
|
7438
7505
|
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
7439
|
-
return tagName
|
|
7506
|
+
return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT, tagName);
|
|
7440
7507
|
};
|
|
7441
7508
|
/**
|
|
7442
7509
|
* _sanitizeAttributes
|
|
@@ -7471,7 +7538,7 @@ function createDOMPurify() {
|
|
|
7471
7538
|
hookEvent.forceKeepAttr = void 0;
|
|
7472
7539
|
_executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
|
|
7473
7540
|
value = hookEvent.attrValue;
|
|
7474
|
-
if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
|
|
7541
|
+
if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name") && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
|
|
7475
7542
|
_removeAttribute(name, currentNode);
|
|
7476
7543
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
7477
7544
|
}
|
|
@@ -7529,7 +7596,7 @@ function createDOMPurify() {
|
|
|
7529
7596
|
*
|
|
7530
7597
|
* @param fragment to iterate over recursively
|
|
7531
7598
|
*/
|
|
7532
|
-
const
|
|
7599
|
+
const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
|
|
7533
7600
|
let shadowNode = null;
|
|
7534
7601
|
const shadowIterator = _createNodeIterator(fragment);
|
|
7535
7602
|
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
@@ -7537,7 +7604,7 @@ function createDOMPurify() {
|
|
|
7537
7604
|
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
7538
7605
|
_sanitizeElements(shadowNode);
|
|
7539
7606
|
_sanitizeAttributes(shadowNode);
|
|
7540
|
-
if (shadowNode.content instanceof DocumentFragment)
|
|
7607
|
+
if (shadowNode.content instanceof DocumentFragment) _sanitizeShadowDOM2(shadowNode.content);
|
|
7541
7608
|
}
|
|
7542
7609
|
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
7543
7610
|
};
|
|
@@ -7549,17 +7616,18 @@ function createDOMPurify() {
|
|
|
7549
7616
|
let returnNode = null;
|
|
7550
7617
|
IS_EMPTY_INPUT = !dirty;
|
|
7551
7618
|
if (IS_EMPTY_INPUT) dirty = "<!-->";
|
|
7552
|
-
if (typeof dirty !== "string" && !_isNode(dirty))
|
|
7553
|
-
dirty = dirty
|
|
7619
|
+
if (typeof dirty !== "string" && !_isNode(dirty)) {
|
|
7620
|
+
dirty = stringifyValue(dirty);
|
|
7554
7621
|
if (typeof dirty !== "string") throw typeErrorCreate("dirty is not a string, aborting");
|
|
7555
|
-
}
|
|
7622
|
+
}
|
|
7556
7623
|
if (!DOMPurify.isSupported) return dirty;
|
|
7557
7624
|
if (!SET_CONFIG) _parseConfig(cfg);
|
|
7558
7625
|
DOMPurify.removed = [];
|
|
7559
7626
|
if (typeof dirty === "string") IN_PLACE = false;
|
|
7560
7627
|
if (IN_PLACE) {
|
|
7561
|
-
|
|
7562
|
-
|
|
7628
|
+
const nn = dirty.nodeName;
|
|
7629
|
+
if (typeof nn === "string") {
|
|
7630
|
+
const tagName = transformCaseFunc(nn);
|
|
7563
7631
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
7564
7632
|
}
|
|
7565
7633
|
} else if (dirty instanceof Node) {
|
|
@@ -7578,10 +7646,22 @@ function createDOMPurify() {
|
|
|
7578
7646
|
while (currentNode = nodeIterator.nextNode()) {
|
|
7579
7647
|
_sanitizeElements(currentNode);
|
|
7580
7648
|
_sanitizeAttributes(currentNode);
|
|
7581
|
-
if (currentNode.content instanceof DocumentFragment)
|
|
7649
|
+
if (currentNode.content instanceof DocumentFragment) _sanitizeShadowDOM2(currentNode.content);
|
|
7582
7650
|
}
|
|
7583
7651
|
if (IN_PLACE) return dirty;
|
|
7584
7652
|
if (RETURN_DOM) {
|
|
7653
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
7654
|
+
body.normalize();
|
|
7655
|
+
let html = body.innerHTML;
|
|
7656
|
+
arrayForEach([
|
|
7657
|
+
MUSTACHE_EXPR,
|
|
7658
|
+
ERB_EXPR,
|
|
7659
|
+
TMPLIT_EXPR
|
|
7660
|
+
], (expr) => {
|
|
7661
|
+
html = stringReplace(html, expr, " ");
|
|
7662
|
+
});
|
|
7663
|
+
body.innerHTML = html;
|
|
7664
|
+
}
|
|
7585
7665
|
if (RETURN_DOM_FRAGMENT) {
|
|
7586
7666
|
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
7587
7667
|
while (body.firstChild) returnNode.appendChild(body.firstChild);
|
|
@@ -9600,9 +9680,9 @@ var isFile = kindOfTest("File");
|
|
|
9600
9680
|
* also have a `name` and `type` attribute to specify filename and content type
|
|
9601
9681
|
*
|
|
9602
9682
|
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
9603
|
-
*
|
|
9683
|
+
*
|
|
9604
9684
|
* @param {*} value The value to test
|
|
9605
|
-
*
|
|
9685
|
+
*
|
|
9606
9686
|
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
9607
9687
|
*/
|
|
9608
9688
|
var isReactNativeBlob = (value) => {
|
|
@@ -9611,9 +9691,9 @@ var isReactNativeBlob = (value) => {
|
|
|
9611
9691
|
/**
|
|
9612
9692
|
* Determine if environment is React Native
|
|
9613
9693
|
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
9614
|
-
*
|
|
9694
|
+
*
|
|
9615
9695
|
* @param {*} formData The formData to test
|
|
9616
|
-
*
|
|
9696
|
+
*
|
|
9617
9697
|
* @returns {boolean} True if environment is React Native, otherwise false
|
|
9618
9698
|
*/
|
|
9619
9699
|
var isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
@@ -9630,7 +9710,7 @@ var isBlob = kindOfTest("Blob");
|
|
|
9630
9710
|
*
|
|
9631
9711
|
* @param {*} val The value to test
|
|
9632
9712
|
*
|
|
9633
|
-
* @returns {boolean} True if value is a
|
|
9713
|
+
* @returns {boolean} True if value is a FileList, otherwise false
|
|
9634
9714
|
*/
|
|
9635
9715
|
var isFileList = kindOfTest("FileList");
|
|
9636
9716
|
/**
|
|
@@ -9658,8 +9738,13 @@ function getGlobal() {
|
|
|
9658
9738
|
var G = getGlobal();
|
|
9659
9739
|
var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
9660
9740
|
var isFormData = (thing) => {
|
|
9661
|
-
|
|
9662
|
-
|
|
9741
|
+
if (!thing) return false;
|
|
9742
|
+
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
9743
|
+
const proto = getPrototypeOf(thing);
|
|
9744
|
+
if (!proto || proto === Object.prototype) return false;
|
|
9745
|
+
if (!isFunction$1(thing.append)) return false;
|
|
9746
|
+
const kind = kindOf(thing);
|
|
9747
|
+
return kind === "formdata" || kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]";
|
|
9663
9748
|
};
|
|
9664
9749
|
/**
|
|
9665
9750
|
* Determine if a value is a URLSearchParams object
|
|
@@ -9761,18 +9846,19 @@ var isContextDefined = (context) => !isUndefined(context) && context !== _global
|
|
|
9761
9846
|
*
|
|
9762
9847
|
* @returns {Object} Result of all merge properties
|
|
9763
9848
|
*/
|
|
9764
|
-
function merge() {
|
|
9849
|
+
function merge(...objs) {
|
|
9765
9850
|
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
9766
9851
|
const result = {};
|
|
9767
9852
|
const assignValue = (val, key) => {
|
|
9768
9853
|
if (key === "__proto__" || key === "constructor" || key === "prototype") return;
|
|
9769
9854
|
const targetKey = caseless && findKey(result, key) || key;
|
|
9770
|
-
|
|
9855
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
9856
|
+
if (isPlainObject(existing) && isPlainObject(val)) result[targetKey] = merge(existing, val);
|
|
9771
9857
|
else if (isPlainObject(val)) result[targetKey] = merge({}, val);
|
|
9772
9858
|
else if (isArray(val)) result[targetKey] = val.slice();
|
|
9773
9859
|
else if (!skipUndefined || !isUndefined(val)) result[targetKey] = val;
|
|
9774
9860
|
};
|
|
9775
|
-
for (let i = 0, l =
|
|
9861
|
+
for (let i = 0, l = objs.length; i < l; i++) objs[i] && forEach(objs[i], assignValue);
|
|
9776
9862
|
return result;
|
|
9777
9863
|
}
|
|
9778
9864
|
/**
|
|
@@ -9789,12 +9875,14 @@ function merge() {
|
|
|
9789
9875
|
var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
9790
9876
|
forEach(b, (val, key) => {
|
|
9791
9877
|
if (thisArg && isFunction$1(val)) Object.defineProperty(a, key, {
|
|
9878
|
+
__proto__: null,
|
|
9792
9879
|
value: bind(val, thisArg),
|
|
9793
9880
|
writable: true,
|
|
9794
9881
|
enumerable: true,
|
|
9795
9882
|
configurable: true
|
|
9796
9883
|
});
|
|
9797
9884
|
else Object.defineProperty(a, key, {
|
|
9885
|
+
__proto__: null,
|
|
9798
9886
|
value: val,
|
|
9799
9887
|
writable: true,
|
|
9800
9888
|
enumerable: true,
|
|
@@ -9826,12 +9914,16 @@ var stripBOM = (content) => {
|
|
|
9826
9914
|
var inherits = (constructor, superConstructor, props, descriptors) => {
|
|
9827
9915
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
9828
9916
|
Object.defineProperty(constructor.prototype, "constructor", {
|
|
9917
|
+
__proto__: null,
|
|
9829
9918
|
value: constructor,
|
|
9830
9919
|
writable: true,
|
|
9831
9920
|
enumerable: false,
|
|
9832
9921
|
configurable: true
|
|
9833
9922
|
});
|
|
9834
|
-
Object.defineProperty(constructor, "super", {
|
|
9923
|
+
Object.defineProperty(constructor, "super", {
|
|
9924
|
+
__proto__: null,
|
|
9925
|
+
value: superConstructor.prototype
|
|
9926
|
+
});
|
|
9835
9927
|
props && Object.assign(constructor.prototype, props);
|
|
9836
9928
|
};
|
|
9837
9929
|
/**
|
|
@@ -9973,7 +10065,7 @@ var freezeMethods = (obj) => {
|
|
|
9973
10065
|
"arguments",
|
|
9974
10066
|
"caller",
|
|
9975
10067
|
"callee"
|
|
9976
|
-
].
|
|
10068
|
+
].includes(name)) return false;
|
|
9977
10069
|
const value = obj[name];
|
|
9978
10070
|
if (!isFunction$1(value)) return;
|
|
9979
10071
|
descriptor.enumerable = false;
|
|
@@ -10149,164 +10241,486 @@ var utils_default = {
|
|
|
10149
10241
|
isIterable
|
|
10150
10242
|
};
|
|
10151
10243
|
//#endregion
|
|
10152
|
-
//#region node_modules/axios/lib/
|
|
10153
|
-
var
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
*/
|
|
10173
|
-
constructor(message, code, config, request, response) {
|
|
10174
|
-
super(message);
|
|
10175
|
-
Object.defineProperty(this, "message", {
|
|
10176
|
-
value: message,
|
|
10177
|
-
enumerable: true,
|
|
10178
|
-
writable: true,
|
|
10179
|
-
configurable: true
|
|
10180
|
-
});
|
|
10181
|
-
this.name = "AxiosError";
|
|
10182
|
-
this.isAxiosError = true;
|
|
10183
|
-
code && (this.code = code);
|
|
10184
|
-
config && (this.config = config);
|
|
10185
|
-
request && (this.request = request);
|
|
10186
|
-
if (response) {
|
|
10187
|
-
this.response = response;
|
|
10188
|
-
this.status = response.status;
|
|
10189
|
-
}
|
|
10190
|
-
}
|
|
10191
|
-
toJSON() {
|
|
10192
|
-
return {
|
|
10193
|
-
message: this.message,
|
|
10194
|
-
name: this.name,
|
|
10195
|
-
description: this.description,
|
|
10196
|
-
number: this.number,
|
|
10197
|
-
fileName: this.fileName,
|
|
10198
|
-
lineNumber: this.lineNumber,
|
|
10199
|
-
columnNumber: this.columnNumber,
|
|
10200
|
-
stack: this.stack,
|
|
10201
|
-
config: utils_default.toJSONObject(this.config),
|
|
10202
|
-
code: this.code,
|
|
10203
|
-
status: this.status
|
|
10204
|
-
};
|
|
10205
|
-
}
|
|
10206
|
-
};
|
|
10207
|
-
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
10208
|
-
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
10209
|
-
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
10210
|
-
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
10211
|
-
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
10212
|
-
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
10213
|
-
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
10214
|
-
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
10215
|
-
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
10216
|
-
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
10217
|
-
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
10218
|
-
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
10219
|
-
//#endregion
|
|
10220
|
-
//#region node_modules/axios/lib/helpers/toFormData.js
|
|
10244
|
+
//#region node_modules/axios/lib/helpers/parseHeaders.js
|
|
10245
|
+
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
10246
|
+
"age",
|
|
10247
|
+
"authorization",
|
|
10248
|
+
"content-length",
|
|
10249
|
+
"content-type",
|
|
10250
|
+
"etag",
|
|
10251
|
+
"expires",
|
|
10252
|
+
"from",
|
|
10253
|
+
"host",
|
|
10254
|
+
"if-modified-since",
|
|
10255
|
+
"if-unmodified-since",
|
|
10256
|
+
"last-modified",
|
|
10257
|
+
"location",
|
|
10258
|
+
"max-forwards",
|
|
10259
|
+
"proxy-authorization",
|
|
10260
|
+
"referer",
|
|
10261
|
+
"retry-after",
|
|
10262
|
+
"user-agent"
|
|
10263
|
+
]);
|
|
10221
10264
|
/**
|
|
10222
|
-
*
|
|
10223
|
-
*
|
|
10224
|
-
* @param {string} thing - The object or array to be visited.
|
|
10265
|
+
* Parse headers into an object
|
|
10225
10266
|
*
|
|
10226
|
-
*
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
* It removes the brackets from the end of a string
|
|
10267
|
+
* ```
|
|
10268
|
+
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
10269
|
+
* Content-Type: application/json
|
|
10270
|
+
* Connection: keep-alive
|
|
10271
|
+
* Transfer-Encoding: chunked
|
|
10272
|
+
* ```
|
|
10233
10273
|
*
|
|
10234
|
-
* @param {
|
|
10274
|
+
* @param {String} rawHeaders Headers needing to be parsed
|
|
10235
10275
|
*
|
|
10236
|
-
* @returns {
|
|
10276
|
+
* @returns {Object} Headers parsed into an object
|
|
10237
10277
|
*/
|
|
10238
|
-
|
|
10239
|
-
|
|
10278
|
+
var parseHeaders_default = (rawHeaders) => {
|
|
10279
|
+
const parsed = {};
|
|
10280
|
+
let key;
|
|
10281
|
+
let val;
|
|
10282
|
+
let i;
|
|
10283
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
10284
|
+
i = line.indexOf(":");
|
|
10285
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
10286
|
+
val = line.substring(i + 1).trim();
|
|
10287
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
|
|
10288
|
+
if (key === "set-cookie") if (parsed[key]) parsed[key].push(val);
|
|
10289
|
+
else parsed[key] = [val];
|
|
10290
|
+
else parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
10291
|
+
});
|
|
10292
|
+
return parsed;
|
|
10293
|
+
};
|
|
10294
|
+
//#endregion
|
|
10295
|
+
//#region node_modules/axios/lib/core/AxiosHeaders.js
|
|
10296
|
+
var $internals = Symbol("internals");
|
|
10297
|
+
var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
10298
|
+
function trimSPorHTAB(str) {
|
|
10299
|
+
let start = 0;
|
|
10300
|
+
let end = str.length;
|
|
10301
|
+
while (start < end) {
|
|
10302
|
+
const code = str.charCodeAt(start);
|
|
10303
|
+
if (code !== 9 && code !== 32) break;
|
|
10304
|
+
start += 1;
|
|
10305
|
+
}
|
|
10306
|
+
while (end > start) {
|
|
10307
|
+
const code = str.charCodeAt(end - 1);
|
|
10308
|
+
if (code !== 9 && code !== 32) break;
|
|
10309
|
+
end -= 1;
|
|
10310
|
+
}
|
|
10311
|
+
return start === 0 && end === str.length ? str : str.slice(start, end);
|
|
10240
10312
|
}
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
*
|
|
10244
|
-
* @param {string} path - The path to the current key.
|
|
10245
|
-
* @param {string} key - The key of the current object being iterated over.
|
|
10246
|
-
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
10247
|
-
*
|
|
10248
|
-
* @returns {string} The path to the current key.
|
|
10249
|
-
*/
|
|
10250
|
-
function renderKey(path, key, dots) {
|
|
10251
|
-
if (!path) return key;
|
|
10252
|
-
return path.concat(key).map(function each(token, i) {
|
|
10253
|
-
token = removeBrackets(token);
|
|
10254
|
-
return !dots && i ? "[" + token + "]" : token;
|
|
10255
|
-
}).join(dots ? "." : "");
|
|
10313
|
+
function normalizeHeader(header) {
|
|
10314
|
+
return header && String(header).trim().toLowerCase();
|
|
10256
10315
|
}
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
*
|
|
10260
|
-
* @param {Array<any>} arr - The array to check
|
|
10261
|
-
*
|
|
10262
|
-
* @returns {boolean}
|
|
10263
|
-
*/
|
|
10264
|
-
function isFlatArray(arr) {
|
|
10265
|
-
return utils_default.isArray(arr) && !arr.some(isVisitable);
|
|
10316
|
+
function sanitizeHeaderValue(str) {
|
|
10317
|
+
return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
|
|
10266
10318
|
}
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
*
|
|
10290
|
-
* @returns
|
|
10291
|
-
*/
|
|
10292
|
-
function toFormData(obj, formData, options) {
|
|
10293
|
-
if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
|
|
10294
|
-
formData = formData || new FormData();
|
|
10295
|
-
options = utils_default.toFlatObject(options, {
|
|
10296
|
-
metaTokens: true,
|
|
10297
|
-
dots: false,
|
|
10298
|
-
indexes: false
|
|
10299
|
-
}, false, function defined(option, source) {
|
|
10300
|
-
return !utils_default.isUndefined(source[option]);
|
|
10319
|
+
function normalizeValue(value) {
|
|
10320
|
+
if (value === false || value == null) return value;
|
|
10321
|
+
return utils_default.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
|
|
10322
|
+
}
|
|
10323
|
+
function parseTokens(str) {
|
|
10324
|
+
const tokens = Object.create(null);
|
|
10325
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
10326
|
+
let match;
|
|
10327
|
+
while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
|
|
10328
|
+
return tokens;
|
|
10329
|
+
}
|
|
10330
|
+
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
10331
|
+
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
10332
|
+
if (utils_default.isFunction(filter)) return filter.call(this, value, header);
|
|
10333
|
+
if (isHeaderNameFilter) value = header;
|
|
10334
|
+
if (!utils_default.isString(value)) return;
|
|
10335
|
+
if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
|
|
10336
|
+
if (utils_default.isRegExp(filter)) return filter.test(value);
|
|
10337
|
+
}
|
|
10338
|
+
function formatHeader(header) {
|
|
10339
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
10340
|
+
return char.toUpperCase() + str;
|
|
10301
10341
|
});
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
const
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10342
|
+
}
|
|
10343
|
+
function buildAccessors(obj, header) {
|
|
10344
|
+
const accessorName = utils_default.toCamelCase(" " + header);
|
|
10345
|
+
[
|
|
10346
|
+
"get",
|
|
10347
|
+
"set",
|
|
10348
|
+
"has"
|
|
10349
|
+
].forEach((methodName) => {
|
|
10350
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
10351
|
+
__proto__: null,
|
|
10352
|
+
value: function(arg1, arg2, arg3) {
|
|
10353
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
10354
|
+
},
|
|
10355
|
+
configurable: true
|
|
10356
|
+
});
|
|
10357
|
+
});
|
|
10358
|
+
}
|
|
10359
|
+
var AxiosHeaders = class {
|
|
10360
|
+
constructor(headers) {
|
|
10361
|
+
headers && this.set(headers);
|
|
10362
|
+
}
|
|
10363
|
+
set(header, valueOrRewrite, rewrite) {
|
|
10364
|
+
const self = this;
|
|
10365
|
+
function setHeader(_value, _header, _rewrite) {
|
|
10366
|
+
const lHeader = normalizeHeader(_header);
|
|
10367
|
+
if (!lHeader) throw new Error("header name must be a non-empty string");
|
|
10368
|
+
const key = utils_default.findKey(self, lHeader);
|
|
10369
|
+
if (!key || self[key] === void 0 || _rewrite === true || _rewrite === void 0 && self[key] !== false) self[key || _header] = normalizeValue(_value);
|
|
10370
|
+
}
|
|
10371
|
+
const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
10372
|
+
if (utils_default.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
10373
|
+
else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
10374
|
+
else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
10375
|
+
let obj = {}, dest, key;
|
|
10376
|
+
for (const entry of header) {
|
|
10377
|
+
if (!utils_default.isArray(entry)) throw TypeError("Object iterator must return a key-value pair");
|
|
10378
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
10379
|
+
}
|
|
10380
|
+
setHeaders(obj, valueOrRewrite);
|
|
10381
|
+
} else header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
10382
|
+
return this;
|
|
10383
|
+
}
|
|
10384
|
+
get(header, parser) {
|
|
10385
|
+
header = normalizeHeader(header);
|
|
10386
|
+
if (header) {
|
|
10387
|
+
const key = utils_default.findKey(this, header);
|
|
10388
|
+
if (key) {
|
|
10389
|
+
const value = this[key];
|
|
10390
|
+
if (!parser) return value;
|
|
10391
|
+
if (parser === true) return parseTokens(value);
|
|
10392
|
+
if (utils_default.isFunction(parser)) return parser.call(this, value, key);
|
|
10393
|
+
if (utils_default.isRegExp(parser)) return parser.exec(value);
|
|
10394
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
10395
|
+
}
|
|
10396
|
+
}
|
|
10397
|
+
}
|
|
10398
|
+
has(header, matcher) {
|
|
10399
|
+
header = normalizeHeader(header);
|
|
10400
|
+
if (header) {
|
|
10401
|
+
const key = utils_default.findKey(this, header);
|
|
10402
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
10403
|
+
}
|
|
10404
|
+
return false;
|
|
10405
|
+
}
|
|
10406
|
+
delete(header, matcher) {
|
|
10407
|
+
const self = this;
|
|
10408
|
+
let deleted = false;
|
|
10409
|
+
function deleteHeader(_header) {
|
|
10410
|
+
_header = normalizeHeader(_header);
|
|
10411
|
+
if (_header) {
|
|
10412
|
+
const key = utils_default.findKey(self, _header);
|
|
10413
|
+
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
|
|
10414
|
+
delete self[key];
|
|
10415
|
+
deleted = true;
|
|
10416
|
+
}
|
|
10417
|
+
}
|
|
10418
|
+
}
|
|
10419
|
+
if (utils_default.isArray(header)) header.forEach(deleteHeader);
|
|
10420
|
+
else deleteHeader(header);
|
|
10421
|
+
return deleted;
|
|
10422
|
+
}
|
|
10423
|
+
clear(matcher) {
|
|
10424
|
+
const keys = Object.keys(this);
|
|
10425
|
+
let i = keys.length;
|
|
10426
|
+
let deleted = false;
|
|
10427
|
+
while (i--) {
|
|
10428
|
+
const key = keys[i];
|
|
10429
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
10430
|
+
delete this[key];
|
|
10431
|
+
deleted = true;
|
|
10432
|
+
}
|
|
10433
|
+
}
|
|
10434
|
+
return deleted;
|
|
10435
|
+
}
|
|
10436
|
+
normalize(format) {
|
|
10437
|
+
const self = this;
|
|
10438
|
+
const headers = {};
|
|
10439
|
+
utils_default.forEach(this, (value, header) => {
|
|
10440
|
+
const key = utils_default.findKey(headers, header);
|
|
10441
|
+
if (key) {
|
|
10442
|
+
self[key] = normalizeValue(value);
|
|
10443
|
+
delete self[header];
|
|
10444
|
+
return;
|
|
10445
|
+
}
|
|
10446
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
10447
|
+
if (normalized !== header) delete self[header];
|
|
10448
|
+
self[normalized] = normalizeValue(value);
|
|
10449
|
+
headers[normalized] = true;
|
|
10450
|
+
});
|
|
10451
|
+
return this;
|
|
10452
|
+
}
|
|
10453
|
+
concat(...targets) {
|
|
10454
|
+
return this.constructor.concat(this, ...targets);
|
|
10455
|
+
}
|
|
10456
|
+
toJSON(asStrings) {
|
|
10457
|
+
const obj = Object.create(null);
|
|
10458
|
+
utils_default.forEach(this, (value, header) => {
|
|
10459
|
+
value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
|
|
10460
|
+
});
|
|
10461
|
+
return obj;
|
|
10462
|
+
}
|
|
10463
|
+
[Symbol.iterator]() {
|
|
10464
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
10465
|
+
}
|
|
10466
|
+
toString() {
|
|
10467
|
+
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
10468
|
+
}
|
|
10469
|
+
getSetCookie() {
|
|
10470
|
+
return this.get("set-cookie") || [];
|
|
10471
|
+
}
|
|
10472
|
+
get [Symbol.toStringTag]() {
|
|
10473
|
+
return "AxiosHeaders";
|
|
10474
|
+
}
|
|
10475
|
+
static from(thing) {
|
|
10476
|
+
return thing instanceof this ? thing : new this(thing);
|
|
10477
|
+
}
|
|
10478
|
+
static concat(first, ...targets) {
|
|
10479
|
+
const computed = new this(first);
|
|
10480
|
+
targets.forEach((target) => computed.set(target));
|
|
10481
|
+
return computed;
|
|
10482
|
+
}
|
|
10483
|
+
static accessor(header) {
|
|
10484
|
+
const accessors = (this[$internals] = this[$internals] = { accessors: {} }).accessors;
|
|
10485
|
+
const prototype = this.prototype;
|
|
10486
|
+
function defineAccessor(_header) {
|
|
10487
|
+
const lHeader = normalizeHeader(_header);
|
|
10488
|
+
if (!accessors[lHeader]) {
|
|
10489
|
+
buildAccessors(prototype, _header);
|
|
10490
|
+
accessors[lHeader] = true;
|
|
10491
|
+
}
|
|
10492
|
+
}
|
|
10493
|
+
utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
10494
|
+
return this;
|
|
10495
|
+
}
|
|
10496
|
+
};
|
|
10497
|
+
AxiosHeaders.accessor([
|
|
10498
|
+
"Content-Type",
|
|
10499
|
+
"Content-Length",
|
|
10500
|
+
"Accept",
|
|
10501
|
+
"Accept-Encoding",
|
|
10502
|
+
"User-Agent",
|
|
10503
|
+
"Authorization"
|
|
10504
|
+
]);
|
|
10505
|
+
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
10506
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
10507
|
+
return {
|
|
10508
|
+
get: () => value,
|
|
10509
|
+
set(headerValue) {
|
|
10510
|
+
this[mapped] = headerValue;
|
|
10511
|
+
}
|
|
10512
|
+
};
|
|
10513
|
+
});
|
|
10514
|
+
utils_default.freezeMethods(AxiosHeaders);
|
|
10515
|
+
//#endregion
|
|
10516
|
+
//#region node_modules/axios/lib/core/AxiosError.js
|
|
10517
|
+
var REDACTED = "[REDACTED ****]";
|
|
10518
|
+
function hasOwnOrPrototypeToJSON(source) {
|
|
10519
|
+
if (utils_default.hasOwnProp(source, "toJSON")) return true;
|
|
10520
|
+
let prototype = Object.getPrototypeOf(source);
|
|
10521
|
+
while (prototype && prototype !== Object.prototype) {
|
|
10522
|
+
if (utils_default.hasOwnProp(prototype, "toJSON")) return true;
|
|
10523
|
+
prototype = Object.getPrototypeOf(prototype);
|
|
10524
|
+
}
|
|
10525
|
+
return false;
|
|
10526
|
+
}
|
|
10527
|
+
function redactConfig(config, redactKeys) {
|
|
10528
|
+
const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
|
|
10529
|
+
const seen = [];
|
|
10530
|
+
const visit = (source) => {
|
|
10531
|
+
if (source === null || typeof source !== "object") return source;
|
|
10532
|
+
if (utils_default.isBuffer(source)) return source;
|
|
10533
|
+
if (seen.indexOf(source) !== -1) return void 0;
|
|
10534
|
+
if (source instanceof AxiosHeaders) source = source.toJSON();
|
|
10535
|
+
seen.push(source);
|
|
10536
|
+
let result;
|
|
10537
|
+
if (utils_default.isArray(source)) {
|
|
10538
|
+
result = [];
|
|
10539
|
+
source.forEach((v, i) => {
|
|
10540
|
+
const reducedValue = visit(v);
|
|
10541
|
+
if (!utils_default.isUndefined(reducedValue)) result[i] = reducedValue;
|
|
10542
|
+
});
|
|
10543
|
+
} else {
|
|
10544
|
+
if (!utils_default.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
|
|
10545
|
+
seen.pop();
|
|
10546
|
+
return source;
|
|
10547
|
+
}
|
|
10548
|
+
result = Object.create(null);
|
|
10549
|
+
for (const [key, value] of Object.entries(source)) {
|
|
10550
|
+
const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
|
|
10551
|
+
if (!utils_default.isUndefined(reducedValue)) result[key] = reducedValue;
|
|
10552
|
+
}
|
|
10553
|
+
}
|
|
10554
|
+
seen.pop();
|
|
10555
|
+
return result;
|
|
10556
|
+
};
|
|
10557
|
+
return visit(config);
|
|
10558
|
+
}
|
|
10559
|
+
var AxiosError = class AxiosError extends Error {
|
|
10560
|
+
static from(error, code, config, request, response, customProps) {
|
|
10561
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
10562
|
+
axiosError.cause = error;
|
|
10563
|
+
axiosError.name = error.name;
|
|
10564
|
+
if (error.status != null && axiosError.status == null) axiosError.status = error.status;
|
|
10565
|
+
customProps && Object.assign(axiosError, customProps);
|
|
10566
|
+
return axiosError;
|
|
10567
|
+
}
|
|
10568
|
+
/**
|
|
10569
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
10570
|
+
*
|
|
10571
|
+
* @param {string} message The error message.
|
|
10572
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
10573
|
+
* @param {Object} [config] The config.
|
|
10574
|
+
* @param {Object} [request] The request.
|
|
10575
|
+
* @param {Object} [response] The response.
|
|
10576
|
+
*
|
|
10577
|
+
* @returns {Error} The created error.
|
|
10578
|
+
*/
|
|
10579
|
+
constructor(message, code, config, request, response) {
|
|
10580
|
+
super(message);
|
|
10581
|
+
Object.defineProperty(this, "message", {
|
|
10582
|
+
__proto__: null,
|
|
10583
|
+
value: message,
|
|
10584
|
+
enumerable: true,
|
|
10585
|
+
writable: true,
|
|
10586
|
+
configurable: true
|
|
10587
|
+
});
|
|
10588
|
+
this.name = "AxiosError";
|
|
10589
|
+
this.isAxiosError = true;
|
|
10590
|
+
code && (this.code = code);
|
|
10591
|
+
config && (this.config = config);
|
|
10592
|
+
request && (this.request = request);
|
|
10593
|
+
if (response) {
|
|
10594
|
+
this.response = response;
|
|
10595
|
+
this.status = response.status;
|
|
10596
|
+
}
|
|
10597
|
+
}
|
|
10598
|
+
toJSON() {
|
|
10599
|
+
const config = this.config;
|
|
10600
|
+
const redactKeys = config && utils_default.hasOwnProp(config, "redact") ? config.redact : void 0;
|
|
10601
|
+
const serializedConfig = utils_default.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils_default.toJSONObject(config);
|
|
10602
|
+
return {
|
|
10603
|
+
message: this.message,
|
|
10604
|
+
name: this.name,
|
|
10605
|
+
description: this.description,
|
|
10606
|
+
number: this.number,
|
|
10607
|
+
fileName: this.fileName,
|
|
10608
|
+
lineNumber: this.lineNumber,
|
|
10609
|
+
columnNumber: this.columnNumber,
|
|
10610
|
+
stack: this.stack,
|
|
10611
|
+
config: serializedConfig,
|
|
10612
|
+
code: this.code,
|
|
10613
|
+
status: this.status
|
|
10614
|
+
};
|
|
10615
|
+
}
|
|
10616
|
+
};
|
|
10617
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
10618
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
10619
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
10620
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
10621
|
+
AxiosError.ECONNREFUSED = "ECONNREFUSED";
|
|
10622
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
10623
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
10624
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
10625
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
10626
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
10627
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
10628
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
10629
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
10630
|
+
AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
10631
|
+
//#endregion
|
|
10632
|
+
//#region node_modules/axios/lib/helpers/toFormData.js
|
|
10633
|
+
/**
|
|
10634
|
+
* Determines if the given thing is a array or js object.
|
|
10635
|
+
*
|
|
10636
|
+
* @param {string} thing - The object or array to be visited.
|
|
10637
|
+
*
|
|
10638
|
+
* @returns {boolean}
|
|
10639
|
+
*/
|
|
10640
|
+
function isVisitable(thing) {
|
|
10641
|
+
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
10642
|
+
}
|
|
10643
|
+
/**
|
|
10644
|
+
* It removes the brackets from the end of a string
|
|
10645
|
+
*
|
|
10646
|
+
* @param {string} key - The key of the parameter.
|
|
10647
|
+
*
|
|
10648
|
+
* @returns {string} the key without the brackets.
|
|
10649
|
+
*/
|
|
10650
|
+
function removeBrackets(key) {
|
|
10651
|
+
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
10652
|
+
}
|
|
10653
|
+
/**
|
|
10654
|
+
* It takes a path, a key, and a boolean, and returns a string
|
|
10655
|
+
*
|
|
10656
|
+
* @param {string} path - The path to the current key.
|
|
10657
|
+
* @param {string} key - The key of the current object being iterated over.
|
|
10658
|
+
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
|
10659
|
+
*
|
|
10660
|
+
* @returns {string} The path to the current key.
|
|
10661
|
+
*/
|
|
10662
|
+
function renderKey(path, key, dots) {
|
|
10663
|
+
if (!path) return key;
|
|
10664
|
+
return path.concat(key).map(function each(token, i) {
|
|
10665
|
+
token = removeBrackets(token);
|
|
10666
|
+
return !dots && i ? "[" + token + "]" : token;
|
|
10667
|
+
}).join(dots ? "." : "");
|
|
10668
|
+
}
|
|
10669
|
+
/**
|
|
10670
|
+
* If the array is an array and none of its elements are visitable, then it's a flat array.
|
|
10671
|
+
*
|
|
10672
|
+
* @param {Array<any>} arr - The array to check
|
|
10673
|
+
*
|
|
10674
|
+
* @returns {boolean}
|
|
10675
|
+
*/
|
|
10676
|
+
function isFlatArray(arr) {
|
|
10677
|
+
return utils_default.isArray(arr) && !arr.some(isVisitable);
|
|
10678
|
+
}
|
|
10679
|
+
var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
|
|
10680
|
+
return /^is[A-Z]/.test(prop);
|
|
10681
|
+
});
|
|
10682
|
+
/**
|
|
10683
|
+
* Convert a data object to FormData
|
|
10684
|
+
*
|
|
10685
|
+
* @param {Object} obj
|
|
10686
|
+
* @param {?Object} [formData]
|
|
10687
|
+
* @param {?Object} [options]
|
|
10688
|
+
* @param {Function} [options.visitor]
|
|
10689
|
+
* @param {Boolean} [options.metaTokens = true]
|
|
10690
|
+
* @param {Boolean} [options.dots = false]
|
|
10691
|
+
* @param {?Boolean} [options.indexes = false]
|
|
10692
|
+
*
|
|
10693
|
+
* @returns {Object}
|
|
10694
|
+
**/
|
|
10695
|
+
/**
|
|
10696
|
+
* It converts an object into a FormData object
|
|
10697
|
+
*
|
|
10698
|
+
* @param {Object<any, any>} obj - The object to convert to form data.
|
|
10699
|
+
* @param {string} formData - The FormData object to append to.
|
|
10700
|
+
* @param {Object<string, any>} options
|
|
10701
|
+
*
|
|
10702
|
+
* @returns
|
|
10703
|
+
*/
|
|
10704
|
+
function toFormData(obj, formData, options) {
|
|
10705
|
+
if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
|
|
10706
|
+
formData = formData || new FormData();
|
|
10707
|
+
options = utils_default.toFlatObject(options, {
|
|
10708
|
+
metaTokens: true,
|
|
10709
|
+
dots: false,
|
|
10710
|
+
indexes: false
|
|
10711
|
+
}, false, function defined(option, source) {
|
|
10712
|
+
return !utils_default.isUndefined(source[option]);
|
|
10713
|
+
});
|
|
10714
|
+
const metaTokens = options.metaTokens;
|
|
10715
|
+
const visitor = options.visitor || defaultVisitor;
|
|
10716
|
+
const dots = options.dots;
|
|
10717
|
+
const indexes = options.indexes;
|
|
10718
|
+
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
10719
|
+
const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
|
|
10720
|
+
const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
|
|
10721
|
+
if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
|
|
10722
|
+
function convertValue(value) {
|
|
10723
|
+
if (value === null) return "";
|
|
10310
10724
|
if (utils_default.isDate(value)) return value.toISOString();
|
|
10311
10725
|
if (utils_default.isBoolean(value)) return value.toString();
|
|
10312
10726
|
if (!useBlob && utils_default.isBlob(value)) throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
@@ -10351,12 +10765,13 @@ function toFormData(obj, formData, options) {
|
|
|
10351
10765
|
convertValue,
|
|
10352
10766
|
isVisitable
|
|
10353
10767
|
});
|
|
10354
|
-
function build(value, path) {
|
|
10768
|
+
function build(value, path, depth = 0) {
|
|
10355
10769
|
if (utils_default.isUndefined(value)) return;
|
|
10770
|
+
if (depth > maxDepth) throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
10356
10771
|
if (stack.indexOf(value) !== -1) throw Error("Circular reference detected in " + path.join("."));
|
|
10357
10772
|
stack.push(value);
|
|
10358
10773
|
utils_default.forEach(value, function each(el, key) {
|
|
10359
|
-
if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key]);
|
|
10774
|
+
if ((!(utils_default.isUndefined(el) || el === null) && visitor.call(formData, el, utils_default.isString(key) ? key.trim() : key, path, exposedHelpers)) === true) build(el, path ? path.concat(key) : [key], depth + 1);
|
|
10360
10775
|
});
|
|
10361
10776
|
stack.pop();
|
|
10362
10777
|
}
|
|
@@ -10381,10 +10796,9 @@ function encode$1(str) {
|
|
|
10381
10796
|
"(": "%28",
|
|
10382
10797
|
")": "%29",
|
|
10383
10798
|
"~": "%7E",
|
|
10384
|
-
"%20": "+"
|
|
10385
|
-
"%00": "\0"
|
|
10799
|
+
"%20": "+"
|
|
10386
10800
|
};
|
|
10387
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20
|
|
10801
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
|
|
10388
10802
|
return charMap[match];
|
|
10389
10803
|
});
|
|
10390
10804
|
}
|
|
@@ -10534,506 +10948,242 @@ var browser_default = {
|
|
|
10534
10948
|
]
|
|
10535
10949
|
};
|
|
10536
10950
|
//#endregion
|
|
10537
|
-
//#region node_modules/axios/lib/platform/common/utils.js
|
|
10538
|
-
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
10539
|
-
hasBrowserEnv: () => hasBrowserEnv,
|
|
10540
|
-
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
10541
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
10542
|
-
navigator: () => _navigator,
|
|
10543
|
-
origin: () => origin
|
|
10544
|
-
});
|
|
10545
|
-
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
10546
|
-
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
10547
|
-
/**
|
|
10548
|
-
* Determine if we're running in a standard browser environment
|
|
10549
|
-
*
|
|
10550
|
-
* This allows axios to run in a web worker, and react-native.
|
|
10551
|
-
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
10552
|
-
*
|
|
10553
|
-
* web workers:
|
|
10554
|
-
* typeof window -> undefined
|
|
10555
|
-
* typeof document -> undefined
|
|
10556
|
-
*
|
|
10557
|
-
* react-native:
|
|
10558
|
-
* navigator.product -> 'ReactNative'
|
|
10559
|
-
* nativescript
|
|
10560
|
-
* navigator.product -> 'NativeScript' or 'NS'
|
|
10561
|
-
*
|
|
10562
|
-
* @returns {boolean}
|
|
10563
|
-
*/
|
|
10564
|
-
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
|
|
10565
|
-
"ReactNative",
|
|
10566
|
-
"NativeScript",
|
|
10567
|
-
"NS"
|
|
10568
|
-
].indexOf(_navigator.product) < 0);
|
|
10569
|
-
/**
|
|
10570
|
-
* Determine if we're running in a standard browser webWorker environment
|
|
10571
|
-
*
|
|
10572
|
-
* Although the `isStandardBrowserEnv` method indicates that
|
|
10573
|
-
* `allows axios to run in a web worker`, the WebWorker will still be
|
|
10574
|
-
* filtered out due to its judgment standard
|
|
10575
|
-
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
10576
|
-
* This leads to a problem when axios post `FormData` in webWorker
|
|
10577
|
-
*/
|
|
10578
|
-
var hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
10579
|
-
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
10580
|
-
//#endregion
|
|
10581
|
-
//#region node_modules/axios/lib/platform/index.js
|
|
10582
|
-
var platform_default = {
|
|
10583
|
-
...utils_exports,
|
|
10584
|
-
...browser_default
|
|
10585
|
-
};
|
|
10586
|
-
//#endregion
|
|
10587
|
-
//#region node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
10588
|
-
function toURLEncodedForm(data, options) {
|
|
10589
|
-
return toFormData(data, new platform_default.classes.URLSearchParams(), {
|
|
10590
|
-
visitor: function(value, key, path, helpers) {
|
|
10591
|
-
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
10592
|
-
this.append(key, value.toString("base64"));
|
|
10593
|
-
return false;
|
|
10594
|
-
}
|
|
10595
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
10596
|
-
},
|
|
10597
|
-
...options
|
|
10598
|
-
});
|
|
10599
|
-
}
|
|
10600
|
-
//#endregion
|
|
10601
|
-
//#region node_modules/axios/lib/helpers/formDataToJSON.js
|
|
10602
|
-
/**
|
|
10603
|
-
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
10604
|
-
*
|
|
10605
|
-
* @param {string} name - The name of the property to get.
|
|
10606
|
-
*
|
|
10607
|
-
* @returns An array of strings.
|
|
10608
|
-
*/
|
|
10609
|
-
function parsePropPath(name) {
|
|
10610
|
-
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
10611
|
-
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
10612
|
-
});
|
|
10613
|
-
}
|
|
10614
|
-
/**
|
|
10615
|
-
* Convert an array to an object.
|
|
10616
|
-
*
|
|
10617
|
-
* @param {Array<any>} arr - The array to convert to an object.
|
|
10618
|
-
*
|
|
10619
|
-
* @returns An object with the same keys and values as the array.
|
|
10620
|
-
*/
|
|
10621
|
-
function arrayToObject(arr) {
|
|
10622
|
-
const obj = {};
|
|
10623
|
-
const keys = Object.keys(arr);
|
|
10624
|
-
let i;
|
|
10625
|
-
const len = keys.length;
|
|
10626
|
-
let key;
|
|
10627
|
-
for (i = 0; i < len; i++) {
|
|
10628
|
-
key = keys[i];
|
|
10629
|
-
obj[key] = arr[key];
|
|
10630
|
-
}
|
|
10631
|
-
return obj;
|
|
10632
|
-
}
|
|
10633
|
-
/**
|
|
10634
|
-
* It takes a FormData object and returns a JavaScript object
|
|
10635
|
-
*
|
|
10636
|
-
* @param {string} formData The FormData object to convert to JSON.
|
|
10637
|
-
*
|
|
10638
|
-
* @returns {Object<string, any> | null} The converted object.
|
|
10639
|
-
*/
|
|
10640
|
-
function formDataToJSON(formData) {
|
|
10641
|
-
function buildPath(path, value, target, index) {
|
|
10642
|
-
let name = path[index++];
|
|
10643
|
-
if (name === "__proto__") return true;
|
|
10644
|
-
const isNumericKey = Number.isFinite(+name);
|
|
10645
|
-
const isLast = index >= path.length;
|
|
10646
|
-
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
10647
|
-
if (isLast) {
|
|
10648
|
-
if (utils_default.hasOwnProp(target, name)) target[name] = [target[name], value];
|
|
10649
|
-
else target[name] = value;
|
|
10650
|
-
return !isNumericKey;
|
|
10651
|
-
}
|
|
10652
|
-
if (!target[name] || !utils_default.isObject(target[name])) target[name] = [];
|
|
10653
|
-
if (buildPath(path, value, target[name], index) && utils_default.isArray(target[name])) target[name] = arrayToObject(target[name]);
|
|
10654
|
-
return !isNumericKey;
|
|
10655
|
-
}
|
|
10656
|
-
if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
|
|
10657
|
-
const obj = {};
|
|
10658
|
-
utils_default.forEachEntry(formData, (name, value) => {
|
|
10659
|
-
buildPath(parsePropPath(name), value, obj, 0);
|
|
10660
|
-
});
|
|
10661
|
-
return obj;
|
|
10662
|
-
}
|
|
10663
|
-
return null;
|
|
10664
|
-
}
|
|
10665
|
-
//#endregion
|
|
10666
|
-
//#region node_modules/axios/lib/defaults/index.js
|
|
10667
|
-
/**
|
|
10668
|
-
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
10669
|
-
* of the input
|
|
10670
|
-
*
|
|
10671
|
-
* @param {any} rawValue - The value to be stringified.
|
|
10672
|
-
* @param {Function} parser - A function that parses a string into a JavaScript object.
|
|
10673
|
-
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
10674
|
-
*
|
|
10675
|
-
* @returns {string} A stringified version of the rawValue.
|
|
10676
|
-
*/
|
|
10677
|
-
function stringifySafely(rawValue, parser, encoder) {
|
|
10678
|
-
if (utils_default.isString(rawValue)) try {
|
|
10679
|
-
(parser || JSON.parse)(rawValue);
|
|
10680
|
-
return utils_default.trim(rawValue);
|
|
10681
|
-
} catch (e) {
|
|
10682
|
-
if (e.name !== "SyntaxError") throw e;
|
|
10683
|
-
}
|
|
10684
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
10685
|
-
}
|
|
10686
|
-
var defaults = {
|
|
10687
|
-
transitional: transitional_default,
|
|
10688
|
-
adapter: [
|
|
10689
|
-
"xhr",
|
|
10690
|
-
"http",
|
|
10691
|
-
"fetch"
|
|
10692
|
-
],
|
|
10693
|
-
transformRequest: [function transformRequest(data, headers) {
|
|
10694
|
-
const contentType = headers.getContentType() || "";
|
|
10695
|
-
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
10696
|
-
const isObjectPayload = utils_default.isObject(data);
|
|
10697
|
-
if (isObjectPayload && utils_default.isHTMLForm(data)) data = new FormData(data);
|
|
10698
|
-
if (utils_default.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
10699
|
-
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) return data;
|
|
10700
|
-
if (utils_default.isArrayBufferView(data)) return data.buffer;
|
|
10701
|
-
if (utils_default.isURLSearchParams(data)) {
|
|
10702
|
-
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
10703
|
-
return data.toString();
|
|
10704
|
-
}
|
|
10705
|
-
let isFileList;
|
|
10706
|
-
if (isObjectPayload) {
|
|
10707
|
-
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, this.formSerializer).toString();
|
|
10708
|
-
if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
10709
|
-
const _FormData = this.env && this.env.FormData;
|
|
10710
|
-
return toFormData(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), this.formSerializer);
|
|
10711
|
-
}
|
|
10712
|
-
}
|
|
10713
|
-
if (isObjectPayload || hasJSONContentType) {
|
|
10714
|
-
headers.setContentType("application/json", false);
|
|
10715
|
-
return stringifySafely(data);
|
|
10716
|
-
}
|
|
10717
|
-
return data;
|
|
10718
|
-
}],
|
|
10719
|
-
transformResponse: [function transformResponse(data) {
|
|
10720
|
-
const transitional = this.transitional || defaults.transitional;
|
|
10721
|
-
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
10722
|
-
const JSONRequested = this.responseType === "json";
|
|
10723
|
-
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) return data;
|
|
10724
|
-
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
10725
|
-
const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
|
|
10726
|
-
try {
|
|
10727
|
-
return JSON.parse(data, this.parseReviver);
|
|
10728
|
-
} catch (e) {
|
|
10729
|
-
if (strictJSONParsing) {
|
|
10730
|
-
if (e.name === "SyntaxError") throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
10731
|
-
throw e;
|
|
10732
|
-
}
|
|
10733
|
-
}
|
|
10734
|
-
}
|
|
10735
|
-
return data;
|
|
10736
|
-
}],
|
|
10737
|
-
timeout: 0,
|
|
10738
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
10739
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
10740
|
-
maxContentLength: -1,
|
|
10741
|
-
maxBodyLength: -1,
|
|
10742
|
-
env: {
|
|
10743
|
-
FormData: platform_default.classes.FormData,
|
|
10744
|
-
Blob: platform_default.classes.Blob
|
|
10745
|
-
},
|
|
10746
|
-
validateStatus: function validateStatus(status) {
|
|
10747
|
-
return status >= 200 && status < 300;
|
|
10748
|
-
},
|
|
10749
|
-
headers: { common: {
|
|
10750
|
-
Accept: "application/json, text/plain, */*",
|
|
10751
|
-
"Content-Type": void 0
|
|
10752
|
-
} }
|
|
10753
|
-
};
|
|
10754
|
-
utils_default.forEach([
|
|
10755
|
-
"delete",
|
|
10756
|
-
"get",
|
|
10757
|
-
"head",
|
|
10758
|
-
"post",
|
|
10759
|
-
"put",
|
|
10760
|
-
"patch"
|
|
10761
|
-
], (method) => {
|
|
10762
|
-
defaults.headers[method] = {};
|
|
10763
|
-
});
|
|
10764
|
-
//#endregion
|
|
10765
|
-
//#region node_modules/axios/lib/helpers/parseHeaders.js
|
|
10766
|
-
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
10767
|
-
"age",
|
|
10768
|
-
"authorization",
|
|
10769
|
-
"content-length",
|
|
10770
|
-
"content-type",
|
|
10771
|
-
"etag",
|
|
10772
|
-
"expires",
|
|
10773
|
-
"from",
|
|
10774
|
-
"host",
|
|
10775
|
-
"if-modified-since",
|
|
10776
|
-
"if-unmodified-since",
|
|
10777
|
-
"last-modified",
|
|
10778
|
-
"location",
|
|
10779
|
-
"max-forwards",
|
|
10780
|
-
"proxy-authorization",
|
|
10781
|
-
"referer",
|
|
10782
|
-
"retry-after",
|
|
10783
|
-
"user-agent"
|
|
10784
|
-
]);
|
|
10951
|
+
//#region node_modules/axios/lib/platform/common/utils.js
|
|
10952
|
+
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
10953
|
+
hasBrowserEnv: () => hasBrowserEnv,
|
|
10954
|
+
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
10955
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
|
|
10956
|
+
navigator: () => _navigator,
|
|
10957
|
+
origin: () => origin
|
|
10958
|
+
});
|
|
10959
|
+
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
10960
|
+
var _navigator = typeof navigator === "object" && navigator || void 0;
|
|
10785
10961
|
/**
|
|
10786
|
-
*
|
|
10962
|
+
* Determine if we're running in a standard browser environment
|
|
10787
10963
|
*
|
|
10788
|
-
*
|
|
10789
|
-
*
|
|
10790
|
-
* Content-Type: application/json
|
|
10791
|
-
* Connection: keep-alive
|
|
10792
|
-
* Transfer-Encoding: chunked
|
|
10793
|
-
* ```
|
|
10964
|
+
* This allows axios to run in a web worker, and react-native.
|
|
10965
|
+
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
10794
10966
|
*
|
|
10795
|
-
*
|
|
10967
|
+
* web workers:
|
|
10968
|
+
* typeof window -> undefined
|
|
10969
|
+
* typeof document -> undefined
|
|
10796
10970
|
*
|
|
10797
|
-
*
|
|
10971
|
+
* react-native:
|
|
10972
|
+
* navigator.product -> 'ReactNative'
|
|
10973
|
+
* nativescript
|
|
10974
|
+
* navigator.product -> 'NativeScript' or 'NS'
|
|
10975
|
+
*
|
|
10976
|
+
* @returns {boolean}
|
|
10798
10977
|
*/
|
|
10799
|
-
var
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10978
|
+
var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
|
|
10979
|
+
"ReactNative",
|
|
10980
|
+
"NativeScript",
|
|
10981
|
+
"NS"
|
|
10982
|
+
].indexOf(_navigator.product) < 0);
|
|
10983
|
+
/**
|
|
10984
|
+
* Determine if we're running in a standard browser webWorker environment
|
|
10985
|
+
*
|
|
10986
|
+
* Although the `isStandardBrowserEnv` method indicates that
|
|
10987
|
+
* `allows axios to run in a web worker`, the WebWorker will still be
|
|
10988
|
+
* filtered out due to its judgment standard
|
|
10989
|
+
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
10990
|
+
* This leads to a problem when axios post `FormData` in webWorker
|
|
10991
|
+
*/
|
|
10992
|
+
var hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
10993
|
+
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
10994
|
+
//#endregion
|
|
10995
|
+
//#region node_modules/axios/lib/platform/index.js
|
|
10996
|
+
var platform_default = {
|
|
10997
|
+
...utils_exports,
|
|
10998
|
+
...browser_default
|
|
10814
10999
|
};
|
|
10815
11000
|
//#endregion
|
|
10816
|
-
//#region node_modules/axios/lib/
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
function
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
function normalizeHeader(header) {
|
|
10828
|
-
return header && String(header).trim().toLowerCase();
|
|
10829
|
-
}
|
|
10830
|
-
function stripTrailingCRLF(str) {
|
|
10831
|
-
let end = str.length;
|
|
10832
|
-
while (end > 0) {
|
|
10833
|
-
const charCode = str.charCodeAt(end - 1);
|
|
10834
|
-
if (charCode !== 10 && charCode !== 13) break;
|
|
10835
|
-
end -= 1;
|
|
10836
|
-
}
|
|
10837
|
-
return end === str.length ? str : str.slice(0, end);
|
|
10838
|
-
}
|
|
10839
|
-
function normalizeValue(value) {
|
|
10840
|
-
if (value === false || value == null) return value;
|
|
10841
|
-
return utils_default.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
|
|
10842
|
-
}
|
|
10843
|
-
function parseTokens(str) {
|
|
10844
|
-
const tokens = Object.create(null);
|
|
10845
|
-
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
10846
|
-
let match;
|
|
10847
|
-
while (match = tokensRE.exec(str)) tokens[match[1]] = match[2];
|
|
10848
|
-
return tokens;
|
|
10849
|
-
}
|
|
10850
|
-
var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
10851
|
-
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
10852
|
-
if (utils_default.isFunction(filter)) return filter.call(this, value, header);
|
|
10853
|
-
if (isHeaderNameFilter) value = header;
|
|
10854
|
-
if (!utils_default.isString(value)) return;
|
|
10855
|
-
if (utils_default.isString(filter)) return value.indexOf(filter) !== -1;
|
|
10856
|
-
if (utils_default.isRegExp(filter)) return filter.test(value);
|
|
10857
|
-
}
|
|
10858
|
-
function formatHeader(header) {
|
|
10859
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
10860
|
-
return char.toUpperCase() + str;
|
|
10861
|
-
});
|
|
10862
|
-
}
|
|
10863
|
-
function buildAccessors(obj, header) {
|
|
10864
|
-
const accessorName = utils_default.toCamelCase(" " + header);
|
|
10865
|
-
[
|
|
10866
|
-
"get",
|
|
10867
|
-
"set",
|
|
10868
|
-
"has"
|
|
10869
|
-
].forEach((methodName) => {
|
|
10870
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
10871
|
-
value: function(arg1, arg2, arg3) {
|
|
10872
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
10873
|
-
},
|
|
10874
|
-
configurable: true
|
|
10875
|
-
});
|
|
11001
|
+
//#region node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
11002
|
+
function toURLEncodedForm(data, options) {
|
|
11003
|
+
return toFormData(data, new platform_default.classes.URLSearchParams(), {
|
|
11004
|
+
visitor: function(value, key, path, helpers) {
|
|
11005
|
+
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
11006
|
+
this.append(key, value.toString("base64"));
|
|
11007
|
+
return false;
|
|
11008
|
+
}
|
|
11009
|
+
return helpers.defaultVisitor.apply(this, arguments);
|
|
11010
|
+
},
|
|
11011
|
+
...options
|
|
10876
11012
|
});
|
|
10877
11013
|
}
|
|
10878
|
-
|
|
10879
|
-
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
if (header) {
|
|
10909
|
-
const key = utils_default.findKey(this, header);
|
|
10910
|
-
if (key) {
|
|
10911
|
-
const value = this[key];
|
|
10912
|
-
if (!parser) return value;
|
|
10913
|
-
if (parser === true) return parseTokens(value);
|
|
10914
|
-
if (utils_default.isFunction(parser)) return parser.call(this, value, key);
|
|
10915
|
-
if (utils_default.isRegExp(parser)) return parser.exec(value);
|
|
10916
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
10917
|
-
}
|
|
10918
|
-
}
|
|
10919
|
-
}
|
|
10920
|
-
has(header, matcher) {
|
|
10921
|
-
header = normalizeHeader(header);
|
|
10922
|
-
if (header) {
|
|
10923
|
-
const key = utils_default.findKey(this, header);
|
|
10924
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
10925
|
-
}
|
|
10926
|
-
return false;
|
|
10927
|
-
}
|
|
10928
|
-
delete(header, matcher) {
|
|
10929
|
-
const self = this;
|
|
10930
|
-
let deleted = false;
|
|
10931
|
-
function deleteHeader(_header) {
|
|
10932
|
-
_header = normalizeHeader(_header);
|
|
10933
|
-
if (_header) {
|
|
10934
|
-
const key = utils_default.findKey(self, _header);
|
|
10935
|
-
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
|
|
10936
|
-
delete self[key];
|
|
10937
|
-
deleted = true;
|
|
10938
|
-
}
|
|
10939
|
-
}
|
|
10940
|
-
}
|
|
10941
|
-
if (utils_default.isArray(header)) header.forEach(deleteHeader);
|
|
10942
|
-
else deleteHeader(header);
|
|
10943
|
-
return deleted;
|
|
10944
|
-
}
|
|
10945
|
-
clear(matcher) {
|
|
10946
|
-
const keys = Object.keys(this);
|
|
10947
|
-
let i = keys.length;
|
|
10948
|
-
let deleted = false;
|
|
10949
|
-
while (i--) {
|
|
10950
|
-
const key = keys[i];
|
|
10951
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
10952
|
-
delete this[key];
|
|
10953
|
-
deleted = true;
|
|
10954
|
-
}
|
|
10955
|
-
}
|
|
10956
|
-
return deleted;
|
|
10957
|
-
}
|
|
10958
|
-
normalize(format) {
|
|
10959
|
-
const self = this;
|
|
10960
|
-
const headers = {};
|
|
10961
|
-
utils_default.forEach(this, (value, header) => {
|
|
10962
|
-
const key = utils_default.findKey(headers, header);
|
|
10963
|
-
if (key) {
|
|
10964
|
-
self[key] = normalizeValue(value);
|
|
10965
|
-
delete self[header];
|
|
10966
|
-
return;
|
|
10967
|
-
}
|
|
10968
|
-
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
10969
|
-
if (normalized !== header) delete self[header];
|
|
10970
|
-
self[normalized] = normalizeValue(value);
|
|
10971
|
-
headers[normalized] = true;
|
|
10972
|
-
});
|
|
10973
|
-
return this;
|
|
11014
|
+
//#endregion
|
|
11015
|
+
//#region node_modules/axios/lib/helpers/formDataToJSON.js
|
|
11016
|
+
/**
|
|
11017
|
+
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
|
11018
|
+
*
|
|
11019
|
+
* @param {string} name - The name of the property to get.
|
|
11020
|
+
*
|
|
11021
|
+
* @returns An array of strings.
|
|
11022
|
+
*/
|
|
11023
|
+
function parsePropPath(name) {
|
|
11024
|
+
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
11025
|
+
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
11026
|
+
});
|
|
11027
|
+
}
|
|
11028
|
+
/**
|
|
11029
|
+
* Convert an array to an object.
|
|
11030
|
+
*
|
|
11031
|
+
* @param {Array<any>} arr - The array to convert to an object.
|
|
11032
|
+
*
|
|
11033
|
+
* @returns An object with the same keys and values as the array.
|
|
11034
|
+
*/
|
|
11035
|
+
function arrayToObject(arr) {
|
|
11036
|
+
const obj = {};
|
|
11037
|
+
const keys = Object.keys(arr);
|
|
11038
|
+
let i;
|
|
11039
|
+
const len = keys.length;
|
|
11040
|
+
let key;
|
|
11041
|
+
for (i = 0; i < len; i++) {
|
|
11042
|
+
key = keys[i];
|
|
11043
|
+
obj[key] = arr[key];
|
|
10974
11044
|
}
|
|
10975
|
-
|
|
10976
|
-
|
|
11045
|
+
return obj;
|
|
11046
|
+
}
|
|
11047
|
+
/**
|
|
11048
|
+
* It takes a FormData object and returns a JavaScript object
|
|
11049
|
+
*
|
|
11050
|
+
* @param {string} formData The FormData object to convert to JSON.
|
|
11051
|
+
*
|
|
11052
|
+
* @returns {Object<string, any> | null} The converted object.
|
|
11053
|
+
*/
|
|
11054
|
+
function formDataToJSON(formData) {
|
|
11055
|
+
function buildPath(path, value, target, index) {
|
|
11056
|
+
let name = path[index++];
|
|
11057
|
+
if (name === "__proto__") return true;
|
|
11058
|
+
const isNumericKey = Number.isFinite(+name);
|
|
11059
|
+
const isLast = index >= path.length;
|
|
11060
|
+
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
11061
|
+
if (isLast) {
|
|
11062
|
+
if (utils_default.hasOwnProp(target, name)) target[name] = utils_default.isArray(target[name]) ? target[name].concat(value) : [target[name], value];
|
|
11063
|
+
else target[name] = value;
|
|
11064
|
+
return !isNumericKey;
|
|
11065
|
+
}
|
|
11066
|
+
if (!target[name] || !utils_default.isObject(target[name])) target[name] = [];
|
|
11067
|
+
if (buildPath(path, value, target[name], index) && utils_default.isArray(target[name])) target[name] = arrayToObject(target[name]);
|
|
11068
|
+
return !isNumericKey;
|
|
10977
11069
|
}
|
|
10978
|
-
|
|
10979
|
-
const obj =
|
|
10980
|
-
utils_default.
|
|
10981
|
-
|
|
11070
|
+
if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
|
|
11071
|
+
const obj = {};
|
|
11072
|
+
utils_default.forEachEntry(formData, (name, value) => {
|
|
11073
|
+
buildPath(parsePropPath(name), value, obj, 0);
|
|
10982
11074
|
});
|
|
10983
11075
|
return obj;
|
|
10984
11076
|
}
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
return
|
|
11077
|
+
return null;
|
|
11078
|
+
}
|
|
11079
|
+
//#endregion
|
|
11080
|
+
//#region node_modules/axios/lib/defaults/index.js
|
|
11081
|
+
var own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
|
|
11082
|
+
/**
|
|
11083
|
+
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
11084
|
+
* of the input
|
|
11085
|
+
*
|
|
11086
|
+
* @param {any} rawValue - The value to be stringified.
|
|
11087
|
+
* @param {Function} parser - A function that parses a string into a JavaScript object.
|
|
11088
|
+
* @param {Function} encoder - A function that takes a value and returns a string.
|
|
11089
|
+
*
|
|
11090
|
+
* @returns {string} A stringified version of the rawValue.
|
|
11091
|
+
*/
|
|
11092
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
11093
|
+
if (utils_default.isString(rawValue)) try {
|
|
11094
|
+
(parser || JSON.parse)(rawValue);
|
|
11095
|
+
return utils_default.trim(rawValue);
|
|
11096
|
+
} catch (e) {
|
|
11097
|
+
if (e.name !== "SyntaxError") throw e;
|
|
11004
11098
|
}
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11099
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
11100
|
+
}
|
|
11101
|
+
var defaults = {
|
|
11102
|
+
transitional: transitional_default,
|
|
11103
|
+
adapter: [
|
|
11104
|
+
"xhr",
|
|
11105
|
+
"http",
|
|
11106
|
+
"fetch"
|
|
11107
|
+
],
|
|
11108
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
11109
|
+
const contentType = headers.getContentType() || "";
|
|
11110
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
11111
|
+
const isObjectPayload = utils_default.isObject(data);
|
|
11112
|
+
if (isObjectPayload && utils_default.isHTMLForm(data)) data = new FormData(data);
|
|
11113
|
+
if (utils_default.isFormData(data)) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
11114
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) return data;
|
|
11115
|
+
if (utils_default.isArrayBufferView(data)) return data.buffer;
|
|
11116
|
+
if (utils_default.isURLSearchParams(data)) {
|
|
11117
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
11118
|
+
return data.toString();
|
|
11119
|
+
}
|
|
11120
|
+
let isFileList;
|
|
11121
|
+
if (isObjectPayload) {
|
|
11122
|
+
const formSerializer = own(this, "formSerializer");
|
|
11123
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(data, formSerializer).toString();
|
|
11124
|
+
if ((isFileList = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
11125
|
+
const env = own(this, "env");
|
|
11126
|
+
const _FormData = env && env.FormData;
|
|
11127
|
+
return toFormData(isFileList ? { "files[]": data } : data, _FormData && new _FormData(), formSerializer);
|
|
11013
11128
|
}
|
|
11014
11129
|
}
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
};
|
|
11019
|
-
AxiosHeaders.accessor([
|
|
11020
|
-
"Content-Type",
|
|
11021
|
-
"Content-Length",
|
|
11022
|
-
"Accept",
|
|
11023
|
-
"Accept-Encoding",
|
|
11024
|
-
"User-Agent",
|
|
11025
|
-
"Authorization"
|
|
11026
|
-
]);
|
|
11027
|
-
utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
11028
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
11029
|
-
return {
|
|
11030
|
-
get: () => value,
|
|
11031
|
-
set(headerValue) {
|
|
11032
|
-
this[mapped] = headerValue;
|
|
11130
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
11131
|
+
headers.setContentType("application/json", false);
|
|
11132
|
+
return stringifySafely(data);
|
|
11033
11133
|
}
|
|
11034
|
-
|
|
11134
|
+
return data;
|
|
11135
|
+
}],
|
|
11136
|
+
transformResponse: [function transformResponse(data) {
|
|
11137
|
+
const transitional = own(this, "transitional") || defaults.transitional;
|
|
11138
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
11139
|
+
const responseType = own(this, "responseType");
|
|
11140
|
+
const JSONRequested = responseType === "json";
|
|
11141
|
+
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) return data;
|
|
11142
|
+
if (data && utils_default.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
|
|
11143
|
+
const strictJSONParsing = !(transitional && transitional.silentJSONParsing) && JSONRequested;
|
|
11144
|
+
try {
|
|
11145
|
+
return JSON.parse(data, own(this, "parseReviver"));
|
|
11146
|
+
} catch (e) {
|
|
11147
|
+
if (strictJSONParsing) {
|
|
11148
|
+
if (e.name === "SyntaxError") throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
|
|
11149
|
+
throw e;
|
|
11150
|
+
}
|
|
11151
|
+
}
|
|
11152
|
+
}
|
|
11153
|
+
return data;
|
|
11154
|
+
}],
|
|
11155
|
+
/**
|
|
11156
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
11157
|
+
* timeout is not created.
|
|
11158
|
+
*/
|
|
11159
|
+
timeout: 0,
|
|
11160
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
11161
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
11162
|
+
maxContentLength: -1,
|
|
11163
|
+
maxBodyLength: -1,
|
|
11164
|
+
env: {
|
|
11165
|
+
FormData: platform_default.classes.FormData,
|
|
11166
|
+
Blob: platform_default.classes.Blob
|
|
11167
|
+
},
|
|
11168
|
+
validateStatus: function validateStatus(status) {
|
|
11169
|
+
return status >= 200 && status < 300;
|
|
11170
|
+
},
|
|
11171
|
+
headers: { common: {
|
|
11172
|
+
Accept: "application/json, text/plain, */*",
|
|
11173
|
+
"Content-Type": void 0
|
|
11174
|
+
} }
|
|
11175
|
+
};
|
|
11176
|
+
utils_default.forEach([
|
|
11177
|
+
"delete",
|
|
11178
|
+
"get",
|
|
11179
|
+
"head",
|
|
11180
|
+
"post",
|
|
11181
|
+
"put",
|
|
11182
|
+
"patch",
|
|
11183
|
+
"query"
|
|
11184
|
+
], (method) => {
|
|
11185
|
+
defaults.headers[method] = {};
|
|
11035
11186
|
});
|
|
11036
|
-
utils_default.freezeMethods(AxiosHeaders);
|
|
11037
11187
|
//#endregion
|
|
11038
11188
|
//#region node_modules/axios/lib/core/transformData.js
|
|
11039
11189
|
/**
|
|
@@ -11092,12 +11242,12 @@ var CanceledError = class extends AxiosError {
|
|
|
11092
11242
|
function settle(resolve, reject, response) {
|
|
11093
11243
|
const validateStatus = response.config.validateStatus;
|
|
11094
11244
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
11095
|
-
else reject(new AxiosError("Request failed with status code " + response.status,
|
|
11245
|
+
else reject(new AxiosError("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
|
|
11096
11246
|
}
|
|
11097
11247
|
//#endregion
|
|
11098
11248
|
//#region node_modules/axios/lib/helpers/parseProtocol.js
|
|
11099
11249
|
function parseProtocol(url) {
|
|
11100
|
-
const match = /^([-+\w]{1,25})(
|
|
11250
|
+
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
11101
11251
|
return match && match[1] || "";
|
|
11102
11252
|
}
|
|
11103
11253
|
//#endregion
|
|
@@ -11178,19 +11328,19 @@ var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
11178
11328
|
let bytesNotified = 0;
|
|
11179
11329
|
const _speedometer = speedometer(50, 250);
|
|
11180
11330
|
return throttle((e) => {
|
|
11181
|
-
const
|
|
11331
|
+
const rawLoaded = e.loaded;
|
|
11182
11332
|
const total = e.lengthComputable ? e.total : void 0;
|
|
11183
|
-
const
|
|
11333
|
+
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
11334
|
+
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
11184
11335
|
const rate = _speedometer(progressBytes);
|
|
11185
|
-
|
|
11186
|
-
bytesNotified = loaded;
|
|
11336
|
+
bytesNotified = Math.max(bytesNotified, loaded);
|
|
11187
11337
|
listener({
|
|
11188
11338
|
loaded,
|
|
11189
11339
|
total,
|
|
11190
11340
|
progress: total ? loaded / total : void 0,
|
|
11191
11341
|
bytes: progressBytes,
|
|
11192
11342
|
rate: rate ? rate : void 0,
|
|
11193
|
-
estimated: rate && total
|
|
11343
|
+
estimated: rate && total ? (total - loaded) / rate : void 0,
|
|
11194
11344
|
event: e,
|
|
11195
11345
|
lengthComputable: total != null,
|
|
11196
11346
|
[isDownloadStream ? "download" : "upload"]: true
|
|
@@ -11227,8 +11377,13 @@ var cookies_default = platform_default.hasStandardBrowserEnv ? {
|
|
|
11227
11377
|
},
|
|
11228
11378
|
read(name) {
|
|
11229
11379
|
if (typeof document === "undefined") return null;
|
|
11230
|
-
const
|
|
11231
|
-
|
|
11380
|
+
const cookies = document.cookie.split(";");
|
|
11381
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
11382
|
+
const cookie = cookies[i].replace(/^\s+/, "");
|
|
11383
|
+
const eq = cookie.indexOf("=");
|
|
11384
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) return decodeURIComponent(cookie.slice(eq + 1));
|
|
11385
|
+
}
|
|
11386
|
+
return null;
|
|
11232
11387
|
},
|
|
11233
11388
|
remove(name) {
|
|
11234
11389
|
this.write(name, "", Date.now() - 864e5, "/");
|
|
@@ -11280,7 +11435,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
11280
11435
|
*/
|
|
11281
11436
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
11282
11437
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
11283
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls
|
|
11438
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) return combineURLs(baseURL, requestedURL);
|
|
11284
11439
|
return requestedURL;
|
|
11285
11440
|
}
|
|
11286
11441
|
//#endregion
|
|
@@ -11297,7 +11452,14 @@ var headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } :
|
|
|
11297
11452
|
*/
|
|
11298
11453
|
function mergeConfig(config1, config2) {
|
|
11299
11454
|
config2 = config2 || {};
|
|
11300
|
-
const config =
|
|
11455
|
+
const config = Object.create(null);
|
|
11456
|
+
Object.defineProperty(config, "hasOwnProperty", {
|
|
11457
|
+
__proto__: null,
|
|
11458
|
+
value: Object.prototype.hasOwnProperty,
|
|
11459
|
+
enumerable: false,
|
|
11460
|
+
writable: true,
|
|
11461
|
+
configurable: true
|
|
11462
|
+
});
|
|
11301
11463
|
function getMergedValue(target, source, prop, caseless) {
|
|
11302
11464
|
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) return utils_default.merge.call({ caseless }, target, source);
|
|
11303
11465
|
else if (utils_default.isPlainObject(source)) return utils_default.merge({}, source);
|
|
@@ -11316,8 +11478,8 @@ function mergeConfig(config1, config2) {
|
|
|
11316
11478
|
else if (!utils_default.isUndefined(a)) return getMergedValue(void 0, a);
|
|
11317
11479
|
}
|
|
11318
11480
|
function mergeDirectKeys(a, b, prop) {
|
|
11319
|
-
if (prop
|
|
11320
|
-
else if (prop
|
|
11481
|
+
if (utils_default.hasOwnProp(config2, prop)) return getMergedValue(a, b);
|
|
11482
|
+
else if (utils_default.hasOwnProp(config1, prop)) return getMergedValue(void 0, a);
|
|
11321
11483
|
}
|
|
11322
11484
|
const mergeMap = {
|
|
11323
11485
|
url: valueFromConfig2,
|
|
@@ -11346,6 +11508,7 @@ function mergeConfig(config1, config2) {
|
|
|
11346
11508
|
httpsAgent: defaultToConfig2,
|
|
11347
11509
|
cancelToken: defaultToConfig2,
|
|
11348
11510
|
socketPath: defaultToConfig2,
|
|
11511
|
+
allowedSocketPaths: defaultToConfig2,
|
|
11349
11512
|
responseEncoding: defaultToConfig2,
|
|
11350
11513
|
validateStatus: mergeDirectKeys,
|
|
11351
11514
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
@@ -11356,32 +11519,54 @@ function mergeConfig(config1, config2) {
|
|
|
11356
11519
|
}), function computeConfigValue(prop) {
|
|
11357
11520
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
11358
11521
|
const merge = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
11359
|
-
const configValue = merge(config1[prop], config2[prop], prop);
|
|
11522
|
+
const configValue = merge(utils_default.hasOwnProp(config1, prop) ? config1[prop] : void 0, utils_default.hasOwnProp(config2, prop) ? config2[prop] : void 0, prop);
|
|
11360
11523
|
utils_default.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
11361
11524
|
});
|
|
11362
11525
|
return config;
|
|
11363
11526
|
}
|
|
11364
11527
|
//#endregion
|
|
11365
11528
|
//#region node_modules/axios/lib/helpers/resolveConfig.js
|
|
11529
|
+
var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
|
|
11530
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
11531
|
+
if (policy !== "content-only") {
|
|
11532
|
+
headers.set(formHeaders);
|
|
11533
|
+
return;
|
|
11534
|
+
}
|
|
11535
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
11536
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) headers.set(key, val);
|
|
11537
|
+
});
|
|
11538
|
+
}
|
|
11539
|
+
/**
|
|
11540
|
+
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
11541
|
+
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
11542
|
+
*
|
|
11543
|
+
* @param {string} str The string to encode
|
|
11544
|
+
*
|
|
11545
|
+
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
11546
|
+
*/
|
|
11547
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
11366
11548
|
var resolveConfig_default = (config) => {
|
|
11367
11549
|
const newConfig = mergeConfig({}, config);
|
|
11368
|
-
|
|
11550
|
+
const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
11551
|
+
const data = own("data");
|
|
11552
|
+
let withXSRFToken = own("withXSRFToken");
|
|
11553
|
+
const xsrfHeaderName = own("xsrfHeaderName");
|
|
11554
|
+
const xsrfCookieName = own("xsrfCookieName");
|
|
11555
|
+
let headers = own("headers");
|
|
11556
|
+
const auth = own("auth");
|
|
11557
|
+
const baseURL = own("baseURL");
|
|
11558
|
+
const allowAbsoluteUrls = own("allowAbsoluteUrls");
|
|
11559
|
+
const url = own("url");
|
|
11369
11560
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
11370
|
-
newConfig.url = buildURL(buildFullPath(
|
|
11371
|
-
if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ?
|
|
11561
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url, allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
11562
|
+
if (auth) headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
|
|
11372
11563
|
if (utils_default.isFormData(data)) {
|
|
11373
11564
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
|
|
11374
|
-
else if (utils_default.isFunction(data.getHeaders))
|
|
11375
|
-
const formHeaders = data.getHeaders();
|
|
11376
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
11377
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
11378
|
-
if (allowedHeaders.includes(key.toLowerCase())) headers.set(key, val);
|
|
11379
|
-
});
|
|
11380
|
-
}
|
|
11565
|
+
else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
|
|
11381
11566
|
}
|
|
11382
11567
|
if (platform_default.hasStandardBrowserEnv) {
|
|
11383
|
-
|
|
11384
|
-
if (withXSRFToken || withXSRFToken
|
|
11568
|
+
if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
|
|
11569
|
+
if (withXSRFToken === true || withXSRFToken == null && isURLSameOrigin_default(newConfig.url)) {
|
|
11385
11570
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
|
|
11386
11571
|
if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
|
|
11387
11572
|
}
|
|
@@ -11428,18 +11613,20 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
11428
11613
|
if ("onloadend" in request) request.onloadend = onloadend;
|
|
11429
11614
|
else request.onreadystatechange = function handleLoad() {
|
|
11430
11615
|
if (!request || request.readyState !== 4) return;
|
|
11431
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.
|
|
11616
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) return;
|
|
11432
11617
|
setTimeout(onloadend);
|
|
11433
11618
|
};
|
|
11434
11619
|
request.onabort = function handleAbort() {
|
|
11435
11620
|
if (!request) return;
|
|
11436
11621
|
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
11622
|
+
done();
|
|
11437
11623
|
request = null;
|
|
11438
11624
|
};
|
|
11439
11625
|
request.onerror = function handleError(event) {
|
|
11440
11626
|
const err = new AxiosError(event && event.message ? event.message : "Network Error", AxiosError.ERR_NETWORK, config, request);
|
|
11441
11627
|
err.event = event || null;
|
|
11442
11628
|
reject(err);
|
|
11629
|
+
done();
|
|
11443
11630
|
request = null;
|
|
11444
11631
|
};
|
|
11445
11632
|
request.ontimeout = function handleTimeout() {
|
|
@@ -11447,6 +11634,7 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
11447
11634
|
const transitional = _config.transitional || transitional_default;
|
|
11448
11635
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
11449
11636
|
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
11637
|
+
done();
|
|
11450
11638
|
request = null;
|
|
11451
11639
|
};
|
|
11452
11640
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -11469,13 +11657,14 @@ var xhr_default = typeof XMLHttpRequest !== "undefined" && function(config) {
|
|
|
11469
11657
|
if (!request) return;
|
|
11470
11658
|
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
11471
11659
|
request.abort();
|
|
11660
|
+
done();
|
|
11472
11661
|
request = null;
|
|
11473
11662
|
};
|
|
11474
11663
|
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
11475
11664
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
11476
11665
|
}
|
|
11477
11666
|
const protocol = parseProtocol(_config.url);
|
|
11478
|
-
if (protocol && platform_default.protocols.
|
|
11667
|
+
if (protocol && !platform_default.protocols.includes(protocol)) {
|
|
11479
11668
|
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
11480
11669
|
return;
|
|
11481
11670
|
}
|
|
@@ -11586,14 +11775,76 @@ var trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
11586
11775
|
}, { highWaterMark: 2 });
|
|
11587
11776
|
};
|
|
11588
11777
|
//#endregion
|
|
11778
|
+
//#region node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
|
|
11779
|
+
/**
|
|
11780
|
+
* Estimate decoded byte length of a data:// URL *without* allocating large buffers.
|
|
11781
|
+
* - For base64: compute exact decoded size using length and padding;
|
|
11782
|
+
* handle %XX at the character-count level (no string allocation).
|
|
11783
|
+
* - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
|
|
11784
|
+
*
|
|
11785
|
+
* @param {string} url
|
|
11786
|
+
* @returns {number}
|
|
11787
|
+
*/
|
|
11788
|
+
function estimateDataURLDecodedBytes(url) {
|
|
11789
|
+
if (!url || typeof url !== "string") return 0;
|
|
11790
|
+
if (!url.startsWith("data:")) return 0;
|
|
11791
|
+
const comma = url.indexOf(",");
|
|
11792
|
+
if (comma < 0) return 0;
|
|
11793
|
+
const meta = url.slice(5, comma);
|
|
11794
|
+
const body = url.slice(comma + 1);
|
|
11795
|
+
if (/;base64/i.test(meta)) {
|
|
11796
|
+
let effectiveLen = body.length;
|
|
11797
|
+
const len = body.length;
|
|
11798
|
+
for (let i = 0; i < len; i++) if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
11799
|
+
const a = body.charCodeAt(i + 1);
|
|
11800
|
+
const b = body.charCodeAt(i + 2);
|
|
11801
|
+
if ((a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102)) {
|
|
11802
|
+
effectiveLen -= 2;
|
|
11803
|
+
i += 2;
|
|
11804
|
+
}
|
|
11805
|
+
}
|
|
11806
|
+
let pad = 0;
|
|
11807
|
+
let idx = len - 1;
|
|
11808
|
+
const tailIsPct3D = (j) => j >= 2 && body.charCodeAt(j - 2) === 37 && body.charCodeAt(j - 1) === 51 && (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100);
|
|
11809
|
+
if (idx >= 0) {
|
|
11810
|
+
if (body.charCodeAt(idx) === 61) {
|
|
11811
|
+
pad++;
|
|
11812
|
+
idx--;
|
|
11813
|
+
} else if (tailIsPct3D(idx)) {
|
|
11814
|
+
pad++;
|
|
11815
|
+
idx -= 3;
|
|
11816
|
+
}
|
|
11817
|
+
}
|
|
11818
|
+
if (pad === 1 && idx >= 0) {
|
|
11819
|
+
if (body.charCodeAt(idx) === 61) pad++;
|
|
11820
|
+
else if (tailIsPct3D(idx)) pad++;
|
|
11821
|
+
}
|
|
11822
|
+
const bytes = Math.floor(effectiveLen / 4) * 3 - (pad || 0);
|
|
11823
|
+
return bytes > 0 ? bytes : 0;
|
|
11824
|
+
}
|
|
11825
|
+
if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") return Buffer.byteLength(body, "utf8");
|
|
11826
|
+
let bytes = 0;
|
|
11827
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
11828
|
+
const c = body.charCodeAt(i);
|
|
11829
|
+
if (c < 128) bytes += 1;
|
|
11830
|
+
else if (c < 2048) bytes += 2;
|
|
11831
|
+
else if (c >= 55296 && c <= 56319 && i + 1 < len) {
|
|
11832
|
+
const next = body.charCodeAt(i + 1);
|
|
11833
|
+
if (next >= 56320 && next <= 57343) {
|
|
11834
|
+
bytes += 4;
|
|
11835
|
+
i++;
|
|
11836
|
+
} else bytes += 3;
|
|
11837
|
+
} else bytes += 3;
|
|
11838
|
+
}
|
|
11839
|
+
return bytes;
|
|
11840
|
+
}
|
|
11841
|
+
//#endregion
|
|
11842
|
+
//#region node_modules/axios/lib/env/data.js
|
|
11843
|
+
var VERSION = "1.16.0";
|
|
11844
|
+
//#endregion
|
|
11589
11845
|
//#region node_modules/axios/lib/adapters/fetch.js
|
|
11590
11846
|
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
11591
11847
|
var { isFunction } = utils_default;
|
|
11592
|
-
var globalFetchAPI = (({ Request, Response }) => ({
|
|
11593
|
-
Request,
|
|
11594
|
-
Response
|
|
11595
|
-
}))(utils_default.global);
|
|
11596
|
-
var { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils_default.global;
|
|
11597
11848
|
var test = (fn, ...args) => {
|
|
11598
11849
|
try {
|
|
11599
11850
|
return !!fn(...args);
|
|
@@ -11602,26 +11853,31 @@ var test = (fn, ...args) => {
|
|
|
11602
11853
|
}
|
|
11603
11854
|
};
|
|
11604
11855
|
var factory = (env) => {
|
|
11605
|
-
|
|
11856
|
+
const globalObject = utils_default.global ?? globalThis;
|
|
11857
|
+
const { ReadableStream, TextEncoder } = globalObject;
|
|
11858
|
+
env = utils_default.merge.call({ skipUndefined: true }, {
|
|
11859
|
+
Request: globalObject.Request,
|
|
11860
|
+
Response: globalObject.Response
|
|
11861
|
+
}, env);
|
|
11606
11862
|
const { fetch: envFetch, Request, Response } = env;
|
|
11607
11863
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
11608
11864
|
const isRequestSupported = isFunction(Request);
|
|
11609
11865
|
const isResponseSupported = isFunction(Response);
|
|
11610
11866
|
if (!isFetchSupported) return false;
|
|
11611
|
-
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream
|
|
11612
|
-
const encodeText = isFetchSupported && (typeof TextEncoder
|
|
11867
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
|
|
11868
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
11613
11869
|
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
11614
11870
|
let duplexAccessed = false;
|
|
11615
|
-
const
|
|
11616
|
-
|
|
11617
|
-
body,
|
|
11871
|
+
const request = new Request(platform_default.origin, {
|
|
11872
|
+
body: new ReadableStream(),
|
|
11618
11873
|
method: "POST",
|
|
11619
11874
|
get duplex() {
|
|
11620
11875
|
duplexAccessed = true;
|
|
11621
11876
|
return "half";
|
|
11622
11877
|
}
|
|
11623
|
-
})
|
|
11624
|
-
|
|
11878
|
+
});
|
|
11879
|
+
const hasContentType = request.headers.has("Content-Type");
|
|
11880
|
+
if (request.body != null) request.body.cancel();
|
|
11625
11881
|
return duplexAccessed && !hasContentType;
|
|
11626
11882
|
});
|
|
11627
11883
|
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
@@ -11655,7 +11911,9 @@ var factory = (env) => {
|
|
|
11655
11911
|
return length == null ? getBodyLength(body) : length;
|
|
11656
11912
|
};
|
|
11657
11913
|
return async (config) => {
|
|
11658
|
-
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions } = resolveConfig_default(config);
|
|
11914
|
+
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig_default(config);
|
|
11915
|
+
const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
|
|
11916
|
+
const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
11659
11917
|
let _fetch = envFetch || fetch;
|
|
11660
11918
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
11661
11919
|
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
@@ -11665,6 +11923,13 @@ var factory = (env) => {
|
|
|
11665
11923
|
});
|
|
11666
11924
|
let requestContentLength;
|
|
11667
11925
|
try {
|
|
11926
|
+
if (hasMaxContentLength && typeof url === "string" && url.startsWith("data:")) {
|
|
11927
|
+
if (estimateDataURLDecodedBytes(url) > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
11928
|
+
}
|
|
11929
|
+
if (hasMaxBodyLength && method !== "get" && method !== "head") {
|
|
11930
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
11931
|
+
if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) throw new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
|
|
11932
|
+
}
|
|
11668
11933
|
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
11669
11934
|
let _request = new Request(url, {
|
|
11670
11935
|
method: "POST",
|
|
@@ -11680,6 +11945,11 @@ var factory = (env) => {
|
|
|
11680
11945
|
}
|
|
11681
11946
|
if (!utils_default.isString(withCredentials)) withCredentials = withCredentials ? "include" : "omit";
|
|
11682
11947
|
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
11948
|
+
if (utils_default.isFormData(data)) {
|
|
11949
|
+
const contentType = headers.getContentType();
|
|
11950
|
+
if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) headers.delete("content-type");
|
|
11951
|
+
}
|
|
11952
|
+
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
11683
11953
|
const resolvedOptions = {
|
|
11684
11954
|
...fetchOptions,
|
|
11685
11955
|
signal: composedSignal,
|
|
@@ -11691,8 +11961,12 @@ var factory = (env) => {
|
|
|
11691
11961
|
};
|
|
11692
11962
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
11693
11963
|
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
11964
|
+
if (hasMaxContentLength) {
|
|
11965
|
+
const declaredLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
11966
|
+
if (declaredLength != null && declaredLength > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
11967
|
+
}
|
|
11694
11968
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
11695
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
11969
|
+
if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
|
|
11696
11970
|
const options = {};
|
|
11697
11971
|
[
|
|
11698
11972
|
"status",
|
|
@@ -11703,13 +11977,30 @@ var factory = (env) => {
|
|
|
11703
11977
|
});
|
|
11704
11978
|
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
11705
11979
|
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
11706
|
-
|
|
11980
|
+
let bytesRead = 0;
|
|
11981
|
+
const onChunkProgress = (loadedBytes) => {
|
|
11982
|
+
if (hasMaxContentLength) {
|
|
11983
|
+
bytesRead = loadedBytes;
|
|
11984
|
+
if (bytesRead > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
11985
|
+
}
|
|
11986
|
+
onProgress && onProgress(loadedBytes);
|
|
11987
|
+
};
|
|
11988
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
11707
11989
|
flush && flush();
|
|
11708
11990
|
unsubscribe && unsubscribe();
|
|
11709
11991
|
}), options);
|
|
11710
11992
|
}
|
|
11711
11993
|
responseType = responseType || "text";
|
|
11712
11994
|
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
11995
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
11996
|
+
let materializedSize;
|
|
11997
|
+
if (responseData != null) {
|
|
11998
|
+
if (typeof responseData.byteLength === "number") materializedSize = responseData.byteLength;
|
|
11999
|
+
else if (typeof responseData.size === "number") materializedSize = responseData.size;
|
|
12000
|
+
else if (typeof responseData === "string") materializedSize = typeof TextEncoder === "function" ? new TextEncoder().encode(responseData).byteLength : responseData.length;
|
|
12001
|
+
}
|
|
12002
|
+
if (typeof materializedSize === "number" && materializedSize > maxContentLength) throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
|
|
12003
|
+
}
|
|
11713
12004
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
11714
12005
|
return await new Promise((resolve, reject) => {
|
|
11715
12006
|
settle(resolve, reject, {
|
|
@@ -11723,6 +12014,13 @@ var factory = (env) => {
|
|
|
11723
12014
|
});
|
|
11724
12015
|
} catch (err) {
|
|
11725
12016
|
unsubscribe && unsubscribe();
|
|
12017
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
|
|
12018
|
+
const canceledError = composedSignal.reason;
|
|
12019
|
+
canceledError.config = config;
|
|
12020
|
+
request && (canceledError.request = request);
|
|
12021
|
+
err !== canceledError && (canceledError.cause = err);
|
|
12022
|
+
throw canceledError;
|
|
12023
|
+
}
|
|
11726
12024
|
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response), { cause: err.cause || err });
|
|
11727
12025
|
throw AxiosError.from(err, err && err.code, config, request, err && err.response);
|
|
11728
12026
|
}
|
|
@@ -11766,9 +12064,15 @@ var knownAdapters = {
|
|
|
11766
12064
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
11767
12065
|
if (fn) {
|
|
11768
12066
|
try {
|
|
11769
|
-
Object.defineProperty(fn, "name", {
|
|
12067
|
+
Object.defineProperty(fn, "name", {
|
|
12068
|
+
__proto__: null,
|
|
12069
|
+
value
|
|
12070
|
+
});
|
|
11770
12071
|
} catch (e) {}
|
|
11771
|
-
Object.defineProperty(fn, "adapterName", {
|
|
12072
|
+
Object.defineProperty(fn, "adapterName", {
|
|
12073
|
+
__proto__: null,
|
|
12074
|
+
value
|
|
12075
|
+
});
|
|
11772
12076
|
}
|
|
11773
12077
|
});
|
|
11774
12078
|
/**
|
|
@@ -11822,7 +12126,15 @@ function getAdapter(adapters, config) {
|
|
|
11822
12126
|
* Exports Axios adapters and utility to resolve an adapter
|
|
11823
12127
|
*/
|
|
11824
12128
|
var adapters_default = {
|
|
12129
|
+
/**
|
|
12130
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
12131
|
+
* @type {Function}
|
|
12132
|
+
*/
|
|
11825
12133
|
getAdapter,
|
|
12134
|
+
/**
|
|
12135
|
+
* Exposes all known adapters
|
|
12136
|
+
* @type {Object<string, Function|Object>}
|
|
12137
|
+
*/
|
|
11826
12138
|
adapters: knownAdapters
|
|
11827
12139
|
};
|
|
11828
12140
|
//#endregion
|
|
@@ -11856,14 +12168,24 @@ function dispatchRequest(config) {
|
|
|
11856
12168
|
].indexOf(config.method) !== -1) config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
11857
12169
|
return adapters_default.getAdapter(config.adapter || defaults.adapter, config)(config).then(function onAdapterResolution(response) {
|
|
11858
12170
|
throwIfCancellationRequested(config);
|
|
11859
|
-
response
|
|
12171
|
+
config.response = response;
|
|
12172
|
+
try {
|
|
12173
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
12174
|
+
} finally {
|
|
12175
|
+
delete config.response;
|
|
12176
|
+
}
|
|
11860
12177
|
response.headers = AxiosHeaders.from(response.headers);
|
|
11861
12178
|
return response;
|
|
11862
12179
|
}, function onAdapterRejection(reason) {
|
|
11863
12180
|
if (!isCancel(reason)) {
|
|
11864
12181
|
throwIfCancellationRequested(config);
|
|
11865
12182
|
if (reason && reason.response) {
|
|
11866
|
-
|
|
12183
|
+
config.response = reason.response;
|
|
12184
|
+
try {
|
|
12185
|
+
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
12186
|
+
} finally {
|
|
12187
|
+
delete config.response;
|
|
12188
|
+
}
|
|
11867
12189
|
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
11868
12190
|
}
|
|
11869
12191
|
}
|
|
@@ -11871,9 +12193,6 @@ function dispatchRequest(config) {
|
|
|
11871
12193
|
});
|
|
11872
12194
|
}
|
|
11873
12195
|
//#endregion
|
|
11874
|
-
//#region node_modules/axios/lib/env/data.js
|
|
11875
|
-
var VERSION = "1.15.0";
|
|
11876
|
-
//#endregion
|
|
11877
12196
|
//#region node_modules/axios/lib/helpers/validator.js
|
|
11878
12197
|
var validators$1 = {};
|
|
11879
12198
|
[
|
|
@@ -11932,7 +12251,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
11932
12251
|
let i = keys.length;
|
|
11933
12252
|
while (i-- > 0) {
|
|
11934
12253
|
const opt = keys[i];
|
|
11935
|
-
const validator = schema[opt];
|
|
12254
|
+
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
|
|
11936
12255
|
if (validator) {
|
|
11937
12256
|
const value = options[opt];
|
|
11938
12257
|
const result = value === void 0 || validator(value, opt, options);
|
|
@@ -12030,6 +12349,7 @@ var Axios = class {
|
|
|
12030
12349
|
"post",
|
|
12031
12350
|
"put",
|
|
12032
12351
|
"patch",
|
|
12352
|
+
"query",
|
|
12033
12353
|
"common"
|
|
12034
12354
|
], (method) => {
|
|
12035
12355
|
delete headers[method];
|
|
@@ -12104,7 +12424,8 @@ utils_default.forEach([
|
|
|
12104
12424
|
utils_default.forEach([
|
|
12105
12425
|
"post",
|
|
12106
12426
|
"put",
|
|
12107
|
-
"patch"
|
|
12427
|
+
"patch",
|
|
12428
|
+
"query"
|
|
12108
12429
|
], function forEachMethodWithData(method) {
|
|
12109
12430
|
function generateHTTPMethod(isForm) {
|
|
12110
12431
|
return function httpMethod(url, data, config) {
|
|
@@ -12117,7 +12438,7 @@ utils_default.forEach([
|
|
|
12117
12438
|
};
|
|
12118
12439
|
}
|
|
12119
12440
|
Axios.prototype[method] = generateHTTPMethod();
|
|
12120
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
12441
|
+
if (method !== "query") Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
12121
12442
|
});
|
|
12122
12443
|
//#endregion
|
|
12123
12444
|
//#region node_modules/axios/lib/cancel/CancelToken.js
|
|
@@ -12363,7 +12684,7 @@ axios.getAdapter = adapters_default.getAdapter;
|
|
|
12363
12684
|
axios.HttpStatusCode = HttpStatusCode;
|
|
12364
12685
|
axios.default = axios;
|
|
12365
12686
|
require_tiny_emitter$1();
|
|
12366
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
12687
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
12367
12688
|
//#endregion
|
|
12368
12689
|
//#region node_modules/@nsshunt/stssocketioutils/dist/index.mjs
|
|
12369
12690
|
var import_tiny_emitter$1 = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -12417,6 +12738,7 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
|
|
|
12417
12738
|
#authToken;
|
|
12418
12739
|
#socket;
|
|
12419
12740
|
#reconnectTimeout = 2e3;
|
|
12741
|
+
#ackTimeout = 5e3;
|
|
12420
12742
|
constructor(name) {
|
|
12421
12743
|
super();
|
|
12422
12744
|
this.#name = name;
|
|
@@ -12457,6 +12779,13 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
|
|
|
12457
12779
|
get socket() {
|
|
12458
12780
|
return this.#socket;
|
|
12459
12781
|
}
|
|
12782
|
+
get ackTimeout() {
|
|
12783
|
+
return this.#ackTimeout;
|
|
12784
|
+
}
|
|
12785
|
+
WithAckTimeout(ackTimeout) {
|
|
12786
|
+
this.#ackTimeout = ackTimeout;
|
|
12787
|
+
return this;
|
|
12788
|
+
}
|
|
12460
12789
|
WithAddress(address) {
|
|
12461
12790
|
this.#address = address;
|
|
12462
12791
|
return this;
|
|
@@ -12506,6 +12835,7 @@ var SocketIoClient = class extends import_tiny_emitter$1.TinyEmitter {
|
|
|
12506
12835
|
socketOptions.agent = this.#agentManager.GetAgent(this.#address);
|
|
12507
12836
|
}
|
|
12508
12837
|
} else socketOptions = { transports: ["websocket"] };
|
|
12838
|
+
socketOptions.ackTimeout = this.#ackTimeout;
|
|
12509
12839
|
if (this.#authToken) socketOptions.auth = (cb) => {
|
|
12510
12840
|
cb({ token: this.#authToken });
|
|
12511
12841
|
};
|
|
@@ -14198,45 +14528,6 @@ var SocketClientSubscriber = class extends SocketIoClient {
|
|
|
14198
14528
|
}
|
|
14199
14529
|
};
|
|
14200
14530
|
//#endregion
|
|
14201
|
-
//#region node_modules/uuid/dist/stringify.js
|
|
14202
|
-
var byteToHex = [];
|
|
14203
|
-
for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
|
|
14204
|
-
function unsafeStringify(arr, offset = 0) {
|
|
14205
|
-
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
14206
|
-
}
|
|
14207
|
-
//#endregion
|
|
14208
|
-
//#region node_modules/uuid/dist/rng.js
|
|
14209
|
-
var getRandomValues;
|
|
14210
|
-
var rnds8 = new Uint8Array(16);
|
|
14211
|
-
function rng() {
|
|
14212
|
-
if (!getRandomValues) {
|
|
14213
|
-
if (typeof crypto === "undefined" || !crypto.getRandomValues) throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
14214
|
-
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
14215
|
-
}
|
|
14216
|
-
return getRandomValues(rnds8);
|
|
14217
|
-
}
|
|
14218
|
-
var native_default = { randomUUID: typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
|
|
14219
|
-
//#endregion
|
|
14220
|
-
//#region node_modules/uuid/dist/v4.js
|
|
14221
|
-
function _v4(options, buf, offset) {
|
|
14222
|
-
options = options || {};
|
|
14223
|
-
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
14224
|
-
if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
|
|
14225
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
14226
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
14227
|
-
if (buf) {
|
|
14228
|
-
offset = offset || 0;
|
|
14229
|
-
if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
14230
|
-
for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
|
|
14231
|
-
return buf;
|
|
14232
|
-
}
|
|
14233
|
-
return unsafeStringify(rnds);
|
|
14234
|
-
}
|
|
14235
|
-
function v4(options, buf, offset) {
|
|
14236
|
-
if (native_default.randomUUID && !buf && !options) return native_default.randomUUID();
|
|
14237
|
-
return _v4(options, buf, offset);
|
|
14238
|
-
}
|
|
14239
|
-
//#endregion
|
|
14240
14531
|
//#region src/components/UXModelNavigator.vue?vue&type=script&setup=true&lang.ts
|
|
14241
14532
|
var _hoisted_1$1 = { class: "d-flex flex-wrap justify-space-between" };
|
|
14242
14533
|
//#endregion
|
|
@@ -14293,20 +14584,20 @@ var UXModelNavigator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14293
14584
|
};
|
|
14294
14585
|
const GetRootLevelSubscriptions = () => [{
|
|
14295
14586
|
subscriptionKey: {
|
|
14296
|
-
id:
|
|
14587
|
+
id: globalThis.crypto.randomUUID(),
|
|
14297
14588
|
topic: SubscriptionTopic.AllServicesCombined
|
|
14298
14589
|
},
|
|
14299
14590
|
cb: TransformSubscriptionPayloadCallback
|
|
14300
14591
|
}, {
|
|
14301
14592
|
subscriptionKey: {
|
|
14302
|
-
id:
|
|
14593
|
+
id: globalThis.crypto.randomUUID(),
|
|
14303
14594
|
topic: SubscriptionTopic.AllAgentsCombined
|
|
14304
14595
|
},
|
|
14305
14596
|
cb: TransformSubscriptionPayloadCallback
|
|
14306
14597
|
}];
|
|
14307
14598
|
const GetServicesSubscriptions = () => [{
|
|
14308
14599
|
subscriptionKey: {
|
|
14309
|
-
id:
|
|
14600
|
+
id: globalThis.crypto.randomUUID(),
|
|
14310
14601
|
topic: SubscriptionTopic.Services
|
|
14311
14602
|
},
|
|
14312
14603
|
cb: TransformSubscriptionPayloadCallback
|
|
@@ -14314,7 +14605,7 @@ var UXModelNavigator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14314
14605
|
const GetServiceInstancesSubscriptions = (serviceId) => {
|
|
14315
14606
|
return [{
|
|
14316
14607
|
subscriptionKey: {
|
|
14317
|
-
id:
|
|
14608
|
+
id: globalThis.crypto.randomUUID(),
|
|
14318
14609
|
topic: SubscriptionTopic.ServiceInstances,
|
|
14319
14610
|
key: serviceId
|
|
14320
14611
|
},
|
|
@@ -14324,7 +14615,7 @@ var UXModelNavigator_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
14324
14615
|
const GetServiceInstanceSubscriptions = (serviceId, serviceInstanceId) => {
|
|
14325
14616
|
return [{
|
|
14326
14617
|
subscriptionKey: {
|
|
14327
|
-
id:
|
|
14618
|
+
id: globalThis.crypto.randomUUID(),
|
|
14328
14619
|
topic: SubscriptionTopic.ServiceInstance,
|
|
14329
14620
|
key: serviceId,
|
|
14330
14621
|
subkey: serviceInstanceId
|