@das-fed/utils 6.4.0-beta.2 → 6.4.0-beta.21
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/api-services/i18n/index.d.ts +63 -0
- package/api-services/i18n/index.js +25 -0
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.d.ts +2 -2
- package/api-services/index.js +3442 -3
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +3128 -3
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +3128 -3
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +3131 -6
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +3128 -3
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +3132 -7
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +3128 -3
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.d.ts +1 -0
- package/api-services/modules/file/index.js +3285 -429
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +3128 -3
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.d.ts +21 -21
- package/api-services/modules/index.js +3418 -57
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.d.ts +1 -0
- package/api-services/modules/iot/index.js +3142 -16
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +3129 -4
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +3128 -3
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +3128 -3
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +3128 -3
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +3135 -10
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +3128 -3
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +3128 -3
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +3131 -6
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +3130 -5
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +3128 -3
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +3128 -3
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +3128 -3
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.d.ts +1 -1
- package/api-services/src/create-service/index.js +3128 -2
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +9 -3
- package/common-info/index.js +110 -55
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +520 -489
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +214 -104
- package/common-tools/extract-file-name/index.d.ts +1 -0
- package/common-tools/extract-file-name/index.js +1716 -0
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/index.d.ts +2 -0
- package/common-tools/index.js +2 -0
- package/common-tools/platform-tools/index.d.ts +2 -1
- package/common-tools/platform-tools/index.js +16 -11
- package/common-tools/setHtmlMinWH/index.js +4 -8
- package/common-tools/update-browser-title/index.d.ts +1 -0
- package/common-tools/update-browser-title/index.js +12 -0
- package/common-tools/update-fav-icon/index.js +15 -14
- package/create-api-service/i18n/index.d.ts +33 -0
- package/create-api-service/i18n/index.js +15 -0
- package/create-api-service/index.js +1466 -1822
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.d.ts +0 -2
- package/create-api-service/sso/index.js +927 -804
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +795 -768
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/directive/auth/index.js.gz +0 -0
- package/dom-check-in/index.js +2 -2
- package/esm-map.json +7 -2
- package/hooks/popup-manager/use-zindex/index.d.ts +0 -2
- package/hooks/popup-manager/use-zindex/index.js +7 -20
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js +6 -1
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +4 -2
- package/style/index.js.gz +0 -0
- package/token-tools/index.d.ts +6 -6
- package/token-tools/index.js +8 -84
- package/use-low-code/index.js +11 -11
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
- package/token-tools/index.js.gz +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { getProjectInfo as
|
|
2
|
-
import { getConfig as
|
|
3
|
-
function
|
|
1
|
+
import { getProjectInfo as Ze } from "@das-fed/utils/common-info";
|
|
2
|
+
import { getConfig as Ye } from "@das-fed/utils/config";
|
|
3
|
+
function Ne(e, t) {
|
|
4
4
|
return function() {
|
|
5
5
|
return e.apply(t, arguments);
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
const { toString:
|
|
9
|
-
const n =
|
|
8
|
+
const { toString: et } = Object.prototype, { getPrototypeOf: ce } = Object, $ = /* @__PURE__ */ ((e) => (t) => {
|
|
9
|
+
const n = et.call(t);
|
|
10
10
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
11
|
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => $(t) === e), W = (e) => (t) => typeof t === e, { isArray: U } = Array, q = W("undefined");
|
|
12
|
-
function
|
|
13
|
-
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) &&
|
|
12
|
+
function tt(e) {
|
|
13
|
+
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
15
|
+
const Pe = C("ArrayBuffer");
|
|
16
|
+
function nt(e) {
|
|
17
17
|
let t;
|
|
18
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
18
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const rt = W("string"), x = W("function"), _e = W("number"), K = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, z = (e) => {
|
|
21
21
|
if ($(e) !== "object")
|
|
22
22
|
return !1;
|
|
23
|
-
const t =
|
|
23
|
+
const t = ce(e);
|
|
24
24
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
25
|
-
},
|
|
25
|
+
}, ot = C("Date"), it = C("File"), at = C("Blob"), ct = C("FileList"), ut = (e) => K(e) && x(e.pipe), lt = (e) => {
|
|
26
26
|
let t;
|
|
27
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
28
|
-
t === "object" &&
|
|
29
|
-
},
|
|
27
|
+
return e && (typeof FormData == "function" && e instanceof FormData || x(e.append) && ((t = $(e)) === "formdata" || // detect form-data instance
|
|
28
|
+
t === "object" && x(e.toString) && e.toString() === "[object FormData]"));
|
|
29
|
+
}, ft = C("URLSearchParams"), [dt, pt, ht, mt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
30
30
|
function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
31
31
|
if (e === null || typeof e > "u")
|
|
32
32
|
return;
|
|
@@ -41,7 +41,7 @@ function I(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
41
41
|
c = o[r], t.call(null, e[c], c, e);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Fe(e, t) {
|
|
45
45
|
t = t.toLowerCase();
|
|
46
46
|
const n = Object.keys(e);
|
|
47
47
|
let r = n.length, s;
|
|
@@ -50,19 +50,19 @@ function _e(e, t) {
|
|
|
50
50
|
return s;
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
const { caseless: e } =
|
|
56
|
-
const o = e &&
|
|
57
|
-
z(t[o]) && z(r) ? t[o] =
|
|
53
|
+
const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Le = (e) => !q(e) && e !== L;
|
|
54
|
+
function te() {
|
|
55
|
+
const { caseless: e } = Le(this) && this || {}, t = {}, n = (r, s) => {
|
|
56
|
+
const o = e && Fe(t, s) || s;
|
|
57
|
+
z(t[o]) && z(r) ? t[o] = te(t[o], r) : z(r) ? t[o] = te({}, r) : U(r) ? t[o] = r.slice() : t[o] = r;
|
|
58
58
|
};
|
|
59
59
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
60
60
|
arguments[r] && I(arguments[r], n);
|
|
61
61
|
return t;
|
|
62
62
|
}
|
|
63
63
|
const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
64
|
-
n &&
|
|
65
|
-
}, { allOwnKeys: r }), e),
|
|
64
|
+
n && x(s) ? e[o] = Ne(s, n) : e[o] = s;
|
|
65
|
+
}, { allOwnKeys: r }), e), wt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
|
|
66
66
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
67
67
|
value: t.prototype
|
|
68
68
|
}), n && Object.assign(e.prototype, n);
|
|
@@ -73,52 +73,52 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
73
73
|
do {
|
|
74
74
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
75
75
|
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
76
|
-
e = n !== !1 &&
|
|
76
|
+
e = n !== !1 && ce(e);
|
|
77
77
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
78
78
|
return t;
|
|
79
|
-
},
|
|
79
|
+
}, Rt = (e, t, n) => {
|
|
80
80
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
81
81
|
const r = e.indexOf(t, n);
|
|
82
82
|
return r !== -1 && r === n;
|
|
83
|
-
},
|
|
83
|
+
}, St = (e) => {
|
|
84
84
|
if (!e) return null;
|
|
85
85
|
if (U(e)) return e;
|
|
86
86
|
let t = e.length;
|
|
87
|
-
if (!
|
|
87
|
+
if (!_e(t)) return null;
|
|
88
88
|
const n = new Array(t);
|
|
89
89
|
for (; t-- > 0; )
|
|
90
90
|
n[t] = e[t];
|
|
91
91
|
return n;
|
|
92
|
-
},
|
|
92
|
+
}, Ot = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ce(Uint8Array)), Tt = (e, t) => {
|
|
93
93
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
94
94
|
let s;
|
|
95
95
|
for (; (s = r.next()) && !s.done; ) {
|
|
96
96
|
const o = s.value;
|
|
97
97
|
t.call(e, o[0], o[1]);
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, At = (e, t) => {
|
|
100
100
|
let n;
|
|
101
101
|
const r = [];
|
|
102
102
|
for (; (n = e.exec(t)) !== null; )
|
|
103
103
|
r.push(n);
|
|
104
104
|
return r;
|
|
105
|
-
},
|
|
105
|
+
}, xt = C("HTMLFormElement"), Ct = (e) => e.toLowerCase().replace(
|
|
106
106
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
107
107
|
function(n, r, s) {
|
|
108
108
|
return r.toUpperCase() + s;
|
|
109
109
|
}
|
|
110
|
-
),
|
|
110
|
+
), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nt = C("RegExp"), Be = (e, t) => {
|
|
111
111
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
112
112
|
I(n, (s, o) => {
|
|
113
113
|
let i;
|
|
114
114
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
115
115
|
}), Object.defineProperties(e, r);
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
if (
|
|
116
|
+
}, Pt = (e) => {
|
|
117
|
+
Be(e, (t, n) => {
|
|
118
|
+
if (x(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
119
119
|
return !1;
|
|
120
120
|
const r = e[n];
|
|
121
|
-
if (
|
|
121
|
+
if (x(r)) {
|
|
122
122
|
if (t.enumerable = !1, "writable" in t) {
|
|
123
123
|
t.writable = !1;
|
|
124
124
|
return;
|
|
@@ -128,29 +128,29 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
|
-
},
|
|
131
|
+
}, _t = (e, t) => {
|
|
132
132
|
const n = {}, r = (s) => {
|
|
133
133
|
s.forEach((o) => {
|
|
134
134
|
n[o] = !0;
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
137
|
return U(e) ? r(e) : r(String(e).split(t)), n;
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
DIGIT:
|
|
141
|
-
ALPHA:
|
|
142
|
-
ALPHA_DIGIT:
|
|
143
|
-
},
|
|
138
|
+
}, Ft = () => {
|
|
139
|
+
}, Lt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Q = "abcdefghijklmnopqrstuvwxyz", me = "0123456789", De = {
|
|
140
|
+
DIGIT: me,
|
|
141
|
+
ALPHA: Q,
|
|
142
|
+
ALPHA_DIGIT: Q + Q.toUpperCase() + me
|
|
143
|
+
}, Bt = (e = 16, t = De.ALPHA_DIGIT) => {
|
|
144
144
|
let n = "";
|
|
145
145
|
const { length: r } = t;
|
|
146
146
|
for (; e--; )
|
|
147
147
|
n += t[Math.random() * r | 0];
|
|
148
148
|
return n;
|
|
149
149
|
};
|
|
150
|
-
function
|
|
151
|
-
return !!(e &&
|
|
150
|
+
function Dt(e) {
|
|
151
|
+
return !!(e && x(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const Ut = (e) => {
|
|
154
154
|
const t = new Array(10), n = (r, s) => {
|
|
155
155
|
if (K(r)) {
|
|
156
156
|
if (t.indexOf(r) >= 0)
|
|
@@ -167,75 +167,75 @@ const kt = (e) => {
|
|
|
167
167
|
return r;
|
|
168
168
|
};
|
|
169
169
|
return n(e, 0);
|
|
170
|
-
},
|
|
171
|
-
s ===
|
|
170
|
+
}, kt = C("AsyncFunction"), jt = (e) => e && (K(e) || x(e)) && x(e.then) && x(e.catch), Ue = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => {
|
|
171
|
+
s === L && o === n && r.length && r.shift()();
|
|
172
172
|
}, !1), (s) => {
|
|
173
|
-
r.push(s),
|
|
173
|
+
r.push(s), L.postMessage(n, "*");
|
|
174
174
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
175
175
|
typeof setImmediate == "function",
|
|
176
|
-
|
|
177
|
-
),
|
|
176
|
+
x(L.postMessage)
|
|
177
|
+
), qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || Ue, a = {
|
|
178
178
|
isArray: U,
|
|
179
|
-
isArrayBuffer:
|
|
180
|
-
isBuffer:
|
|
181
|
-
isFormData:
|
|
182
|
-
isArrayBufferView:
|
|
183
|
-
isString:
|
|
184
|
-
isNumber:
|
|
185
|
-
isBoolean:
|
|
179
|
+
isArrayBuffer: Pe,
|
|
180
|
+
isBuffer: tt,
|
|
181
|
+
isFormData: lt,
|
|
182
|
+
isArrayBufferView: nt,
|
|
183
|
+
isString: rt,
|
|
184
|
+
isNumber: _e,
|
|
185
|
+
isBoolean: st,
|
|
186
186
|
isObject: K,
|
|
187
187
|
isPlainObject: z,
|
|
188
|
-
isReadableStream:
|
|
189
|
-
isRequest:
|
|
190
|
-
isResponse:
|
|
191
|
-
isHeaders:
|
|
188
|
+
isReadableStream: dt,
|
|
189
|
+
isRequest: pt,
|
|
190
|
+
isResponse: ht,
|
|
191
|
+
isHeaders: mt,
|
|
192
192
|
isUndefined: q,
|
|
193
|
-
isDate:
|
|
194
|
-
isFile:
|
|
195
|
-
isBlob:
|
|
196
|
-
isRegExp:
|
|
197
|
-
isFunction:
|
|
198
|
-
isStream:
|
|
199
|
-
isURLSearchParams:
|
|
200
|
-
isTypedArray:
|
|
201
|
-
isFileList:
|
|
193
|
+
isDate: ot,
|
|
194
|
+
isFile: it,
|
|
195
|
+
isBlob: at,
|
|
196
|
+
isRegExp: Nt,
|
|
197
|
+
isFunction: x,
|
|
198
|
+
isStream: ut,
|
|
199
|
+
isURLSearchParams: ft,
|
|
200
|
+
isTypedArray: Ot,
|
|
201
|
+
isFileList: ct,
|
|
202
202
|
forEach: I,
|
|
203
|
-
merge:
|
|
203
|
+
merge: te,
|
|
204
204
|
extend: bt,
|
|
205
|
-
trim:
|
|
206
|
-
stripBOM:
|
|
207
|
-
inherits:
|
|
205
|
+
trim: yt,
|
|
206
|
+
stripBOM: wt,
|
|
207
|
+
inherits: Et,
|
|
208
208
|
toFlatObject: gt,
|
|
209
209
|
kindOf: $,
|
|
210
210
|
kindOfTest: C,
|
|
211
|
-
endsWith:
|
|
212
|
-
toArray:
|
|
213
|
-
forEachEntry:
|
|
214
|
-
matchAll:
|
|
215
|
-
isHTMLForm:
|
|
216
|
-
hasOwnProperty:
|
|
217
|
-
hasOwnProp:
|
|
211
|
+
endsWith: Rt,
|
|
212
|
+
toArray: St,
|
|
213
|
+
forEachEntry: Tt,
|
|
214
|
+
matchAll: At,
|
|
215
|
+
isHTMLForm: xt,
|
|
216
|
+
hasOwnProperty: he,
|
|
217
|
+
hasOwnProp: he,
|
|
218
218
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
219
|
-
reduceDescriptors:
|
|
220
|
-
freezeMethods:
|
|
221
|
-
toObjectSet:
|
|
222
|
-
toCamelCase:
|
|
223
|
-
noop:
|
|
224
|
-
toFiniteNumber:
|
|
225
|
-
findKey:
|
|
226
|
-
global:
|
|
227
|
-
isContextDefined:
|
|
228
|
-
ALPHABET:
|
|
229
|
-
generateString:
|
|
230
|
-
isSpecCompliantForm:
|
|
231
|
-
toJSONObject:
|
|
232
|
-
isAsyncFn:
|
|
233
|
-
isThenable:
|
|
234
|
-
setImmediate:
|
|
235
|
-
asap:
|
|
219
|
+
reduceDescriptors: Be,
|
|
220
|
+
freezeMethods: Pt,
|
|
221
|
+
toObjectSet: _t,
|
|
222
|
+
toCamelCase: Ct,
|
|
223
|
+
noop: Ft,
|
|
224
|
+
toFiniteNumber: Lt,
|
|
225
|
+
findKey: Fe,
|
|
226
|
+
global: L,
|
|
227
|
+
isContextDefined: Le,
|
|
228
|
+
ALPHABET: De,
|
|
229
|
+
generateString: Bt,
|
|
230
|
+
isSpecCompliantForm: Dt,
|
|
231
|
+
toJSONObject: Ut,
|
|
232
|
+
isAsyncFn: kt,
|
|
233
|
+
isThenable: jt,
|
|
234
|
+
setImmediate: Ue,
|
|
235
|
+
asap: qt
|
|
236
236
|
};
|
|
237
237
|
function m(e, t, n, r, s) {
|
|
238
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
|
|
238
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
239
239
|
}
|
|
240
240
|
a.inherits(m, Error, {
|
|
241
241
|
toJSON: function() {
|
|
@@ -254,11 +254,11 @@ a.inherits(m, Error, {
|
|
|
254
254
|
// Axios
|
|
255
255
|
config: a.toJSONObject(this.config),
|
|
256
256
|
code: this.code,
|
|
257
|
-
status: this.
|
|
257
|
+
status: this.status
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
|
-
const
|
|
261
|
+
const ke = m.prototype, je = {};
|
|
262
262
|
[
|
|
263
263
|
"ERR_BAD_OPTION_VALUE",
|
|
264
264
|
"ERR_BAD_OPTION",
|
|
@@ -274,32 +274,32 @@ const je = m.prototype, qe = {};
|
|
|
274
274
|
"ERR_INVALID_URL"
|
|
275
275
|
// eslint-disable-next-line func-names
|
|
276
276
|
].forEach((e) => {
|
|
277
|
-
|
|
277
|
+
je[e] = { value: e };
|
|
278
278
|
});
|
|
279
|
-
Object.defineProperties(m,
|
|
280
|
-
Object.defineProperty(
|
|
279
|
+
Object.defineProperties(m, je);
|
|
280
|
+
Object.defineProperty(ke, "isAxiosError", { value: !0 });
|
|
281
281
|
m.from = (e, t, n, r, s, o) => {
|
|
282
|
-
const i = Object.create(
|
|
282
|
+
const i = Object.create(ke);
|
|
283
283
|
return a.toFlatObject(e, i, function(f) {
|
|
284
284
|
return f !== Error.prototype;
|
|
285
285
|
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
286
286
|
};
|
|
287
|
-
const
|
|
288
|
-
function
|
|
287
|
+
const It = null;
|
|
288
|
+
function ne(e) {
|
|
289
289
|
return a.isPlainObject(e) || a.isArray(e);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function qe(e) {
|
|
292
292
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function ye(e, t, n) {
|
|
295
295
|
return e ? e.concat(t).map(function(s, o) {
|
|
296
|
-
return s =
|
|
296
|
+
return s = qe(s), !n && o ? "[" + s + "]" : s;
|
|
297
297
|
}).join(n ? "." : "") : t;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
return a.isArray(e) && !e.some(
|
|
299
|
+
function Ht(e) {
|
|
300
|
+
return a.isArray(e) && !e.some(ne);
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const Mt = a.toFlatObject(a, {}, null, function(t) {
|
|
303
303
|
return /^is[A-Z]/.test(t);
|
|
304
304
|
});
|
|
305
305
|
function G(e, t, n) {
|
|
@@ -309,59 +309,59 @@ function G(e, t, n) {
|
|
|
309
309
|
metaTokens: !0,
|
|
310
310
|
dots: !1,
|
|
311
311
|
indexes: !1
|
|
312
|
-
}, !1, function(y,
|
|
313
|
-
return !a.isUndefined(
|
|
312
|
+
}, !1, function(y, h) {
|
|
313
|
+
return !a.isUndefined(h[y]);
|
|
314
314
|
});
|
|
315
315
|
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
316
316
|
if (!a.isFunction(s))
|
|
317
317
|
throw new TypeError("visitor must be a function");
|
|
318
|
-
function u(
|
|
319
|
-
if (
|
|
320
|
-
if (a.isDate(
|
|
321
|
-
return
|
|
322
|
-
if (!f && a.isBlob(
|
|
318
|
+
function u(p) {
|
|
319
|
+
if (p === null) return "";
|
|
320
|
+
if (a.isDate(p))
|
|
321
|
+
return p.toISOString();
|
|
322
|
+
if (!f && a.isBlob(p))
|
|
323
323
|
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
324
|
-
return a.isArrayBuffer(
|
|
324
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
325
325
|
}
|
|
326
|
-
function l(
|
|
327
|
-
let
|
|
328
|
-
if (
|
|
326
|
+
function l(p, y, h) {
|
|
327
|
+
let w = p;
|
|
328
|
+
if (p && !h && typeof p == "object") {
|
|
329
329
|
if (a.endsWith(y, "{}"))
|
|
330
|
-
y = r ? y : y.slice(0, -2),
|
|
331
|
-
else if (a.isArray(
|
|
332
|
-
return y =
|
|
333
|
-
!(a.isUndefined(
|
|
330
|
+
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
331
|
+
else if (a.isArray(p) && Ht(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p)))
|
|
332
|
+
return y = qe(y), w.forEach(function(S, N) {
|
|
333
|
+
!(a.isUndefined(S) || S === null) && t.append(
|
|
334
334
|
// eslint-disable-next-line no-nested-ternary
|
|
335
|
-
i === !0 ?
|
|
336
|
-
u(
|
|
335
|
+
i === !0 ? ye([y], N, o) : i === null ? y : y + "[]",
|
|
336
|
+
u(S)
|
|
337
337
|
);
|
|
338
338
|
}), !1;
|
|
339
339
|
}
|
|
340
|
-
return
|
|
340
|
+
return ne(p) ? !0 : (t.append(ye(h, y, o), u(p)), !1);
|
|
341
341
|
}
|
|
342
|
-
const
|
|
342
|
+
const d = [], b = Object.assign(Mt, {
|
|
343
343
|
defaultVisitor: l,
|
|
344
344
|
convertValue: u,
|
|
345
|
-
isVisitable:
|
|
345
|
+
isVisitable: ne
|
|
346
346
|
});
|
|
347
|
-
function
|
|
348
|
-
if (!a.isUndefined(
|
|
349
|
-
if (
|
|
347
|
+
function g(p, y) {
|
|
348
|
+
if (!a.isUndefined(p)) {
|
|
349
|
+
if (d.indexOf(p) !== -1)
|
|
350
350
|
throw Error("Circular reference detected in " + y.join("."));
|
|
351
|
-
|
|
352
|
-
(!(a.isUndefined(
|
|
351
|
+
d.push(p), a.forEach(p, function(w, R) {
|
|
352
|
+
(!(a.isUndefined(w) || w === null) && s.call(
|
|
353
353
|
t,
|
|
354
|
-
|
|
355
|
-
a.isString(
|
|
354
|
+
w,
|
|
355
|
+
a.isString(R) ? R.trim() : R,
|
|
356
356
|
y,
|
|
357
357
|
b
|
|
358
|
-
)) === !0 &&
|
|
359
|
-
}),
|
|
358
|
+
)) === !0 && g(w, y ? y.concat(R) : [R]);
|
|
359
|
+
}), d.pop();
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
if (!a.isObject(e))
|
|
363
363
|
throw new TypeError("data must be an object");
|
|
364
|
-
return
|
|
364
|
+
return g(e), t;
|
|
365
365
|
}
|
|
366
366
|
function be(e) {
|
|
367
367
|
const t = {
|
|
@@ -377,14 +377,14 @@ function be(e) {
|
|
|
377
377
|
return t[r];
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function ue(e, t) {
|
|
381
381
|
this._pairs = [], e && G(e, this, t);
|
|
382
382
|
}
|
|
383
|
-
const
|
|
384
|
-
|
|
383
|
+
const Ie = ue.prototype;
|
|
384
|
+
Ie.append = function(t, n) {
|
|
385
385
|
this._pairs.push([t, n]);
|
|
386
386
|
};
|
|
387
|
-
|
|
387
|
+
Ie.toString = function(t) {
|
|
388
388
|
const n = t ? function(r) {
|
|
389
389
|
return t.call(this, r, be);
|
|
390
390
|
} : be;
|
|
@@ -392,21 +392,21 @@ He.toString = function(t) {
|
|
|
392
392
|
return n(s[0]) + "=" + n(s[1]);
|
|
393
393
|
}, "").join("&");
|
|
394
394
|
};
|
|
395
|
-
function
|
|
395
|
+
function zt(e) {
|
|
396
396
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function He(e, t, n) {
|
|
399
399
|
if (!t)
|
|
400
400
|
return e;
|
|
401
|
-
const r = n && n.encode ||
|
|
401
|
+
const r = n && n.encode || zt, s = n && n.serialize;
|
|
402
402
|
let o;
|
|
403
|
-
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new
|
|
403
|
+
if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ue(t, n).toString(r), o) {
|
|
404
404
|
const i = e.indexOf("#");
|
|
405
405
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
406
406
|
}
|
|
407
407
|
return e;
|
|
408
408
|
}
|
|
409
|
-
class
|
|
409
|
+
class we {
|
|
410
410
|
constructor() {
|
|
411
411
|
this.handlers = [];
|
|
412
412
|
}
|
|
@@ -460,40 +460,41 @@ class Ee {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
const
|
|
463
|
+
const Me = {
|
|
464
464
|
silentJSONParsing: !0,
|
|
465
465
|
forcedJSONParsing: !0,
|
|
466
466
|
clarifyTimeoutError: !1
|
|
467
|
-
},
|
|
467
|
+
}, Jt = typeof URLSearchParams < "u" ? URLSearchParams : ue, vt = typeof FormData < "u" ? FormData : null, Vt = typeof Blob < "u" ? Blob : null, $t = {
|
|
468
468
|
isBrowser: !0,
|
|
469
469
|
classes: {
|
|
470
|
-
URLSearchParams:
|
|
470
|
+
URLSearchParams: Jt,
|
|
471
471
|
FormData: vt,
|
|
472
|
-
Blob:
|
|
472
|
+
Blob: Vt
|
|
473
473
|
},
|
|
474
474
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
475
|
-
},
|
|
476
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
475
|
+
}, le = typeof window < "u" && typeof document < "u", re = typeof navigator == "object" && navigator || void 0, Wt = le && (!re || ["ReactNative", "NativeScript", "NS"].indexOf(re.product) < 0), Kt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
476
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = le && window.location.href || "http://localhost", Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
477
477
|
__proto__: null,
|
|
478
|
-
hasBrowserEnv:
|
|
479
|
-
hasStandardBrowserEnv:
|
|
480
|
-
hasStandardBrowserWebWorkerEnv:
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
...
|
|
478
|
+
hasBrowserEnv: le,
|
|
479
|
+
hasStandardBrowserEnv: Wt,
|
|
480
|
+
hasStandardBrowserWebWorkerEnv: Kt,
|
|
481
|
+
navigator: re,
|
|
482
|
+
origin: Gt
|
|
483
|
+
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
484
|
+
...Xt,
|
|
485
|
+
...$t
|
|
485
486
|
};
|
|
486
|
-
function
|
|
487
|
-
return G(e, new
|
|
487
|
+
function Qt(e, t) {
|
|
488
|
+
return G(e, new T.classes.URLSearchParams(), Object.assign({
|
|
488
489
|
visitor: function(n, r, s, o) {
|
|
489
|
-
return
|
|
490
|
+
return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
490
491
|
}
|
|
491
492
|
}, t));
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
+
function Zt(e) {
|
|
494
495
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
495
496
|
}
|
|
496
|
-
function
|
|
497
|
+
function Yt(e) {
|
|
497
498
|
const t = {}, n = Object.keys(e);
|
|
498
499
|
let r;
|
|
499
500
|
const s = n.length;
|
|
@@ -502,22 +503,22 @@ function en(e) {
|
|
|
502
503
|
o = n[r], t[o] = e[o];
|
|
503
504
|
return t;
|
|
504
505
|
}
|
|
505
|
-
function
|
|
506
|
+
function ze(e) {
|
|
506
507
|
function t(n, r, s, o) {
|
|
507
508
|
let i = n[o++];
|
|
508
509
|
if (i === "__proto__") return !0;
|
|
509
510
|
const c = Number.isFinite(+i), f = o >= n.length;
|
|
510
|
-
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] =
|
|
511
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Yt(s[i])), !c);
|
|
511
512
|
}
|
|
512
513
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
513
514
|
const n = {};
|
|
514
515
|
return a.forEachEntry(e, (r, s) => {
|
|
515
|
-
t(
|
|
516
|
+
t(Zt(r), s, n, 0);
|
|
516
517
|
}), n;
|
|
517
518
|
}
|
|
518
519
|
return null;
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
+
function en(e, t, n) {
|
|
521
522
|
if (a.isString(e))
|
|
522
523
|
try {
|
|
523
524
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -525,15 +526,15 @@ function tn(e, t, n) {
|
|
|
525
526
|
if (r.name !== "SyntaxError")
|
|
526
527
|
throw r;
|
|
527
528
|
}
|
|
528
|
-
return (
|
|
529
|
+
return (0, JSON.stringify)(e);
|
|
529
530
|
}
|
|
530
531
|
const H = {
|
|
531
|
-
transitional:
|
|
532
|
+
transitional: Me,
|
|
532
533
|
adapter: ["xhr", "http", "fetch"],
|
|
533
534
|
transformRequest: [function(t, n) {
|
|
534
535
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
535
536
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
536
|
-
return s ? JSON.stringify(
|
|
537
|
+
return s ? JSON.stringify(ze(t)) : t;
|
|
537
538
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
538
539
|
return t;
|
|
539
540
|
if (a.isArrayBufferView(t))
|
|
@@ -543,7 +544,7 @@ const H = {
|
|
|
543
544
|
let c;
|
|
544
545
|
if (o) {
|
|
545
546
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
546
|
-
return
|
|
547
|
+
return Qt(t, this.formSerializer).toString();
|
|
547
548
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
548
549
|
const f = this.env && this.env.FormData;
|
|
549
550
|
return G(
|
|
@@ -553,7 +554,7 @@ const H = {
|
|
|
553
554
|
);
|
|
554
555
|
}
|
|
555
556
|
}
|
|
556
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
557
|
+
return o || s ? (n.setContentType("application/json", !1), en(t)) : t;
|
|
557
558
|
}],
|
|
558
559
|
transformResponse: [function(t) {
|
|
559
560
|
const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -580,8 +581,8 @@ const H = {
|
|
|
580
581
|
maxContentLength: -1,
|
|
581
582
|
maxBodyLength: -1,
|
|
582
583
|
env: {
|
|
583
|
-
FormData:
|
|
584
|
-
Blob:
|
|
584
|
+
FormData: T.classes.FormData,
|
|
585
|
+
Blob: T.classes.Blob
|
|
585
586
|
},
|
|
586
587
|
validateStatus: function(t) {
|
|
587
588
|
return t >= 200 && t < 300;
|
|
@@ -596,7 +597,7 @@ const H = {
|
|
|
596
597
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
597
598
|
H.headers[e] = {};
|
|
598
599
|
});
|
|
599
|
-
const
|
|
600
|
+
const tn = a.toObjectSet([
|
|
600
601
|
"age",
|
|
601
602
|
"authorization",
|
|
602
603
|
"content-length",
|
|
@@ -614,29 +615,29 @@ const nn = a.toObjectSet([
|
|
|
614
615
|
"referer",
|
|
615
616
|
"retry-after",
|
|
616
617
|
"user-agent"
|
|
617
|
-
]),
|
|
618
|
+
]), nn = (e) => {
|
|
618
619
|
const t = {};
|
|
619
620
|
let n, r, s;
|
|
620
621
|
return e && e.split(`
|
|
621
622
|
`).forEach(function(i) {
|
|
622
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
623
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && tn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
623
624
|
}), t;
|
|
624
|
-
},
|
|
625
|
+
}, Ee = Symbol("internals");
|
|
625
626
|
function j(e) {
|
|
626
627
|
return e && String(e).trim().toLowerCase();
|
|
627
628
|
}
|
|
628
629
|
function J(e) {
|
|
629
630
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(J) : String(e);
|
|
630
631
|
}
|
|
631
|
-
function
|
|
632
|
+
function rn(e) {
|
|
632
633
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
633
634
|
let r;
|
|
634
635
|
for (; r = n.exec(e); )
|
|
635
636
|
t[r[1]] = r[2];
|
|
636
637
|
return t;
|
|
637
638
|
}
|
|
638
|
-
const
|
|
639
|
-
function
|
|
639
|
+
const sn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
640
|
+
function Z(e, t, n, r, s) {
|
|
640
641
|
if (a.isFunction(r))
|
|
641
642
|
return r.call(this, t, n);
|
|
642
643
|
if (s && (t = n), !!a.isString(t)) {
|
|
@@ -646,10 +647,10 @@ function Y(e, t, n, r, s) {
|
|
|
646
647
|
return r.test(t);
|
|
647
648
|
}
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
+
function on(e) {
|
|
650
651
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
+
function an(e, t) {
|
|
653
654
|
const n = a.toCamelCase(" " + t);
|
|
654
655
|
["get", "set", "has"].forEach((r) => {
|
|
655
656
|
Object.defineProperty(e, r + n, {
|
|
@@ -660,7 +661,7 @@ function cn(e, t) {
|
|
|
660
661
|
});
|
|
661
662
|
});
|
|
662
663
|
}
|
|
663
|
-
class
|
|
664
|
+
class A {
|
|
664
665
|
constructor(t) {
|
|
665
666
|
t && this.set(t);
|
|
666
667
|
}
|
|
@@ -670,14 +671,14 @@ class S {
|
|
|
670
671
|
const l = j(f);
|
|
671
672
|
if (!l)
|
|
672
673
|
throw new Error("header name must be a non-empty string");
|
|
673
|
-
const
|
|
674
|
-
(!
|
|
674
|
+
const d = a.findKey(s, l);
|
|
675
|
+
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = J(c));
|
|
675
676
|
}
|
|
676
677
|
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
677
678
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
678
679
|
i(t, n);
|
|
679
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
680
|
-
i(
|
|
680
|
+
else if (a.isString(t) && (t = t.trim()) && !sn(t))
|
|
681
|
+
i(nn(t), n);
|
|
681
682
|
else if (a.isHeaders(t))
|
|
682
683
|
for (const [c, f] of t.entries())
|
|
683
684
|
o(f, c, r);
|
|
@@ -693,7 +694,7 @@ class S {
|
|
|
693
694
|
if (!n)
|
|
694
695
|
return s;
|
|
695
696
|
if (n === !0)
|
|
696
|
-
return
|
|
697
|
+
return rn(s);
|
|
697
698
|
if (a.isFunction(n))
|
|
698
699
|
return n.call(this, s, r);
|
|
699
700
|
if (a.isRegExp(n))
|
|
@@ -705,7 +706,7 @@ class S {
|
|
|
705
706
|
has(t, n) {
|
|
706
707
|
if (t = j(t), t) {
|
|
707
708
|
const r = a.findKey(this, t);
|
|
708
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
709
|
+
return !!(r && this[r] !== void 0 && (!n || Z(this, this[r], r, n)));
|
|
709
710
|
}
|
|
710
711
|
return !1;
|
|
711
712
|
}
|
|
@@ -715,7 +716,7 @@ class S {
|
|
|
715
716
|
function o(i) {
|
|
716
717
|
if (i = j(i), i) {
|
|
717
718
|
const c = a.findKey(r, i);
|
|
718
|
-
c && (!n ||
|
|
719
|
+
c && (!n || Z(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
719
720
|
}
|
|
720
721
|
}
|
|
721
722
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
@@ -725,7 +726,7 @@ class S {
|
|
|
725
726
|
let r = n.length, s = !1;
|
|
726
727
|
for (; r--; ) {
|
|
727
728
|
const o = n[r];
|
|
728
|
-
(!t ||
|
|
729
|
+
(!t || Z(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
729
730
|
}
|
|
730
731
|
return s;
|
|
731
732
|
}
|
|
@@ -737,7 +738,7 @@ class S {
|
|
|
737
738
|
n[i] = J(s), delete n[o];
|
|
738
739
|
return;
|
|
739
740
|
}
|
|
740
|
-
const c = t ?
|
|
741
|
+
const c = t ? on(o) : String(o).trim();
|
|
741
742
|
c !== o && delete n[o], n[c] = J(s), r[c] = !0;
|
|
742
743
|
}), this;
|
|
743
744
|
}
|
|
@@ -768,18 +769,18 @@ class S {
|
|
|
768
769
|
return n.forEach((s) => r.set(s)), r;
|
|
769
770
|
}
|
|
770
771
|
static accessor(t) {
|
|
771
|
-
const r = (this[
|
|
772
|
+
const r = (this[Ee] = this[Ee] = {
|
|
772
773
|
accessors: {}
|
|
773
774
|
}).accessors, s = this.prototype;
|
|
774
775
|
function o(i) {
|
|
775
776
|
const c = j(i);
|
|
776
|
-
r[c] || (
|
|
777
|
+
r[c] || (an(s, i), r[c] = !0);
|
|
777
778
|
}
|
|
778
779
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
779
780
|
}
|
|
780
781
|
}
|
|
781
|
-
|
|
782
|
-
a.reduceDescriptors(
|
|
782
|
+
A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
783
|
+
a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
|
|
783
784
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
784
785
|
return {
|
|
785
786
|
get: () => e,
|
|
@@ -788,15 +789,15 @@ a.reduceDescriptors(S.prototype, ({ value: e }, t) => {
|
|
|
788
789
|
}
|
|
789
790
|
};
|
|
790
791
|
});
|
|
791
|
-
a.freezeMethods(
|
|
792
|
-
function
|
|
793
|
-
const n = this || H, r = t || n, s =
|
|
792
|
+
a.freezeMethods(A);
|
|
793
|
+
function Y(e, t) {
|
|
794
|
+
const n = this || H, r = t || n, s = A.from(r.headers);
|
|
794
795
|
let o = r.data;
|
|
795
796
|
return a.forEach(e, function(c) {
|
|
796
797
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
797
798
|
}), s.normalize(), o;
|
|
798
799
|
}
|
|
799
|
-
function
|
|
800
|
+
function Je(e) {
|
|
800
801
|
return !!(e && e.__CANCEL__);
|
|
801
802
|
}
|
|
802
803
|
function k(e, t, n) {
|
|
@@ -815,45 +816,45 @@ function ve(e, t, n) {
|
|
|
815
816
|
n
|
|
816
817
|
));
|
|
817
818
|
}
|
|
818
|
-
function
|
|
819
|
+
function cn(e) {
|
|
819
820
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
820
821
|
return t && t[1] || "";
|
|
821
822
|
}
|
|
822
|
-
function
|
|
823
|
+
function un(e, t) {
|
|
823
824
|
e = e || 10;
|
|
824
825
|
const n = new Array(e), r = new Array(e);
|
|
825
826
|
let s = 0, o = 0, i;
|
|
826
827
|
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
827
828
|
const u = Date.now(), l = r[o];
|
|
828
829
|
i || (i = u), n[s] = f, r[s] = u;
|
|
829
|
-
let
|
|
830
|
-
for (;
|
|
831
|
-
b += n[
|
|
830
|
+
let d = o, b = 0;
|
|
831
|
+
for (; d !== s; )
|
|
832
|
+
b += n[d++], d = d % e;
|
|
832
833
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
833
834
|
return;
|
|
834
|
-
const
|
|
835
|
-
return
|
|
835
|
+
const g = l && u - l;
|
|
836
|
+
return g ? Math.round(b * 1e3 / g) : void 0;
|
|
836
837
|
};
|
|
837
838
|
}
|
|
838
|
-
function
|
|
839
|
+
function ln(e, t) {
|
|
839
840
|
let n = 0, r = 1e3 / t, s, o;
|
|
840
841
|
const i = (u, l = Date.now()) => {
|
|
841
842
|
n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
|
|
842
843
|
};
|
|
843
844
|
return [(...u) => {
|
|
844
|
-
const l = Date.now(),
|
|
845
|
-
|
|
845
|
+
const l = Date.now(), d = l - n;
|
|
846
|
+
d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
846
847
|
o = null, i(s);
|
|
847
|
-
}, r -
|
|
848
|
+
}, r - d)));
|
|
848
849
|
}, () => s && i(s)];
|
|
849
850
|
}
|
|
850
|
-
const
|
|
851
|
+
const v = (e, t, n = 3) => {
|
|
851
852
|
let r = 0;
|
|
852
|
-
const s =
|
|
853
|
-
return
|
|
853
|
+
const s = un(50, 250);
|
|
854
|
+
return ln((o) => {
|
|
854
855
|
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
|
|
855
856
|
r = i;
|
|
856
|
-
const
|
|
857
|
+
const d = {
|
|
857
858
|
loaded: i,
|
|
858
859
|
total: c,
|
|
859
860
|
progress: c ? i / c : void 0,
|
|
@@ -864,7 +865,7 @@ const V = (e, t, n = 3) => {
|
|
|
864
865
|
lengthComputable: c != null,
|
|
865
866
|
[t ? "download" : "upload"]: !0
|
|
866
867
|
};
|
|
867
|
-
e(
|
|
868
|
+
e(d);
|
|
868
869
|
}, n);
|
|
869
870
|
}, ge = (e, t) => {
|
|
870
871
|
const n = e != null;
|
|
@@ -873,11 +874,11 @@ const V = (e, t, n = 3) => {
|
|
|
873
874
|
total: e,
|
|
874
875
|
loaded: r
|
|
875
876
|
}), t[1]];
|
|
876
|
-
},
|
|
877
|
+
}, Re = (e) => (...t) => a.asap(() => e(...t)), fn = T.hasStandardBrowserEnv ? (
|
|
877
878
|
// Standard browser envs have full support of the APIs needed to test
|
|
878
879
|
// whether the request URL is of the same origin as current location.
|
|
879
880
|
function() {
|
|
880
|
-
const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
|
|
881
|
+
const t = T.navigator && /(msie|trident)/i.test(T.navigator.userAgent), n = document.createElement("a");
|
|
881
882
|
let r;
|
|
882
883
|
function s(o) {
|
|
883
884
|
let i = o;
|
|
@@ -904,7 +905,7 @@ const V = (e, t, n = 3) => {
|
|
|
904
905
|
return !0;
|
|
905
906
|
};
|
|
906
907
|
}()
|
|
907
|
-
),
|
|
908
|
+
), dn = T.hasStandardBrowserEnv ? (
|
|
908
909
|
// Standard browser envs support document.cookie
|
|
909
910
|
{
|
|
910
911
|
write(e, t, n, r, s, o) {
|
|
@@ -931,27 +932,27 @@ const V = (e, t, n = 3) => {
|
|
|
931
932
|
}
|
|
932
933
|
}
|
|
933
934
|
);
|
|
934
|
-
function
|
|
935
|
+
function pn(e) {
|
|
935
936
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
936
937
|
}
|
|
937
|
-
function
|
|
938
|
+
function hn(e, t) {
|
|
938
939
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
939
940
|
}
|
|
940
|
-
function
|
|
941
|
-
return e && !
|
|
941
|
+
function Ve(e, t) {
|
|
942
|
+
return e && !pn(t) ? hn(e, t) : t;
|
|
942
943
|
}
|
|
943
|
-
const
|
|
944
|
+
const Se = (e) => e instanceof A ? { ...e } : e;
|
|
944
945
|
function D(e, t) {
|
|
945
946
|
t = t || {};
|
|
946
947
|
const n = {};
|
|
947
|
-
function r(u, l,
|
|
948
|
-
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless:
|
|
948
|
+
function r(u, l, d) {
|
|
949
|
+
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: d }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
949
950
|
}
|
|
950
|
-
function s(u, l,
|
|
951
|
+
function s(u, l, d) {
|
|
951
952
|
if (a.isUndefined(l)) {
|
|
952
953
|
if (!a.isUndefined(u))
|
|
953
|
-
return r(void 0, u,
|
|
954
|
-
} else return r(u, l,
|
|
954
|
+
return r(void 0, u, d);
|
|
955
|
+
} else return r(u, l, d);
|
|
955
956
|
}
|
|
956
957
|
function o(u, l) {
|
|
957
958
|
if (!a.isUndefined(l))
|
|
@@ -963,10 +964,10 @@ function D(e, t) {
|
|
|
963
964
|
return r(void 0, u);
|
|
964
965
|
} else return r(void 0, l);
|
|
965
966
|
}
|
|
966
|
-
function c(u, l,
|
|
967
|
-
if (
|
|
967
|
+
function c(u, l, d) {
|
|
968
|
+
if (d in t)
|
|
968
969
|
return r(u, l);
|
|
969
|
-
if (
|
|
970
|
+
if (d in e)
|
|
970
971
|
return r(void 0, u);
|
|
971
972
|
}
|
|
972
973
|
const f = {
|
|
@@ -998,163 +999,180 @@ function D(e, t) {
|
|
|
998
999
|
socketPath: i,
|
|
999
1000
|
responseEncoding: i,
|
|
1000
1001
|
validateStatus: c,
|
|
1001
|
-
headers: (u, l) => s(
|
|
1002
|
+
headers: (u, l) => s(Se(u), Se(l), !0)
|
|
1002
1003
|
};
|
|
1003
1004
|
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
1004
|
-
const
|
|
1005
|
-
a.isUndefined(b) &&
|
|
1005
|
+
const d = f[l] || s, b = d(e[l], t[l], l);
|
|
1006
|
+
a.isUndefined(b) && d !== c || (n[l] = b);
|
|
1006
1007
|
}), n;
|
|
1007
1008
|
}
|
|
1008
|
-
const
|
|
1009
|
+
const $e = (e) => {
|
|
1009
1010
|
const t = D({}, e);
|
|
1010
1011
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1011
|
-
t.headers = i =
|
|
1012
|
+
t.headers = i = A.from(i), t.url = He(Ve(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
1012
1013
|
"Authorization",
|
|
1013
1014
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1014
1015
|
);
|
|
1015
1016
|
let f;
|
|
1016
1017
|
if (a.isFormData(n)) {
|
|
1017
|
-
if (
|
|
1018
|
+
if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
|
|
1018
1019
|
i.setContentType(void 0);
|
|
1019
1020
|
else if ((f = i.getContentType()) !== !1) {
|
|
1020
|
-
const [u, ...l] = f ? f.split(";").map((
|
|
1021
|
+
const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1021
1022
|
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1022
1023
|
}
|
|
1023
1024
|
}
|
|
1024
|
-
if (
|
|
1025
|
-
const u = s && o &&
|
|
1025
|
+
if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && fn(t.url))) {
|
|
1026
|
+
const u = s && o && dn.read(o);
|
|
1026
1027
|
u && i.set(s, u);
|
|
1027
1028
|
}
|
|
1028
1029
|
return t;
|
|
1029
|
-
},
|
|
1030
|
+
}, mn = typeof XMLHttpRequest < "u", yn = mn && function(e) {
|
|
1030
1031
|
return new Promise(function(n, r) {
|
|
1031
|
-
const s =
|
|
1032
|
+
const s = $e(e);
|
|
1032
1033
|
let o = s.data;
|
|
1033
|
-
const i =
|
|
1034
|
-
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l,
|
|
1034
|
+
const i = A.from(s.headers).normalize();
|
|
1035
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, b, g, p;
|
|
1035
1036
|
function y() {
|
|
1036
|
-
|
|
1037
|
+
g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1037
1038
|
}
|
|
1038
|
-
let
|
|
1039
|
-
|
|
1040
|
-
function
|
|
1041
|
-
if (!
|
|
1039
|
+
let h = new XMLHttpRequest();
|
|
1040
|
+
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1041
|
+
function w() {
|
|
1042
|
+
if (!h)
|
|
1042
1043
|
return;
|
|
1043
|
-
const
|
|
1044
|
-
"getAllResponseHeaders" in
|
|
1045
|
-
),
|
|
1046
|
-
data: !c || c === "text" || c === "json" ?
|
|
1047
|
-
status:
|
|
1048
|
-
statusText:
|
|
1049
|
-
headers:
|
|
1044
|
+
const S = A.from(
|
|
1045
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1046
|
+
), O = {
|
|
1047
|
+
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1048
|
+
status: h.status,
|
|
1049
|
+
statusText: h.statusText,
|
|
1050
|
+
headers: S,
|
|
1050
1051
|
config: e,
|
|
1051
|
-
request:
|
|
1052
|
+
request: h
|
|
1052
1053
|
};
|
|
1053
|
-
ve(function(
|
|
1054
|
-
n(
|
|
1055
|
-
}, function(
|
|
1056
|
-
r(
|
|
1057
|
-
},
|
|
1054
|
+
ve(function(F) {
|
|
1055
|
+
n(F), y();
|
|
1056
|
+
}, function(F) {
|
|
1057
|
+
r(F), y();
|
|
1058
|
+
}, O), h = null;
|
|
1058
1059
|
}
|
|
1059
|
-
"onloadend" in
|
|
1060
|
-
!
|
|
1061
|
-
},
|
|
1062
|
-
|
|
1063
|
-
},
|
|
1064
|
-
r(new m("Network Error", m.ERR_NETWORK, e,
|
|
1065
|
-
},
|
|
1066
|
-
let
|
|
1067
|
-
const
|
|
1068
|
-
s.timeoutErrorMessage && (
|
|
1069
|
-
|
|
1070
|
-
|
|
1060
|
+
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
1061
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
1062
|
+
}, h.onabort = function() {
|
|
1063
|
+
h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
|
|
1064
|
+
}, h.onerror = function() {
|
|
1065
|
+
r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
|
|
1066
|
+
}, h.ontimeout = function() {
|
|
1067
|
+
let N = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1068
|
+
const O = s.transitional || Me;
|
|
1069
|
+
s.timeoutErrorMessage && (N = s.timeoutErrorMessage), r(new m(
|
|
1070
|
+
N,
|
|
1071
|
+
O.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1071
1072
|
e,
|
|
1072
|
-
|
|
1073
|
-
)),
|
|
1074
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in
|
|
1075
|
-
|
|
1076
|
-
}), a.isUndefined(s.withCredentials) || (
|
|
1077
|
-
|
|
1073
|
+
h
|
|
1074
|
+
)), h = null;
|
|
1075
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(N, O) {
|
|
1076
|
+
h.setRequestHeader(O, N);
|
|
1077
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([b, p] = v(u, !0), h.addEventListener("progress", b)), f && h.upload && ([d, g] = v(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (S) => {
|
|
1078
|
+
h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
|
|
1078
1079
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1079
|
-
const
|
|
1080
|
-
if (
|
|
1081
|
-
r(new m("Unsupported protocol " +
|
|
1080
|
+
const R = cn(s.url);
|
|
1081
|
+
if (R && T.protocols.indexOf(R) === -1) {
|
|
1082
|
+
r(new m("Unsupported protocol " + R + ":", m.ERR_BAD_REQUEST, e));
|
|
1082
1083
|
return;
|
|
1083
1084
|
}
|
|
1084
|
-
|
|
1085
|
+
h.send(o || null);
|
|
1085
1086
|
});
|
|
1086
1087
|
}, bn = (e, t) => {
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
}
|
|
1088
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1089
|
+
if (t || n) {
|
|
1090
|
+
let r = new AbortController(), s;
|
|
1091
|
+
const o = function(u) {
|
|
1092
|
+
if (!s) {
|
|
1093
|
+
s = !0, c();
|
|
1094
|
+
const l = u instanceof Error ? u : this.reason;
|
|
1095
|
+
r.abort(l instanceof m ? l : new k(l instanceof Error ? l.message : l));
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
let i = t && setTimeout(() => {
|
|
1099
|
+
i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
|
|
1100
|
+
}, t);
|
|
1101
|
+
const c = () => {
|
|
1102
|
+
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
1103
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
1104
|
+
}), e = null);
|
|
1105
|
+
};
|
|
1106
|
+
e.forEach((u) => u.addEventListener("abort", o));
|
|
1107
|
+
const { signal: f } = r;
|
|
1108
|
+
return f.unsubscribe = () => a.asap(c), f;
|
|
1109
|
+
}
|
|
1110
|
+
}, wn = function* (e, t) {
|
|
1109
1111
|
let n = e.byteLength;
|
|
1110
|
-
if (
|
|
1112
|
+
if (n < t) {
|
|
1111
1113
|
yield e;
|
|
1112
1114
|
return;
|
|
1113
1115
|
}
|
|
1114
1116
|
let r = 0, s;
|
|
1115
1117
|
for (; r < n; )
|
|
1116
1118
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1117
|
-
},
|
|
1118
|
-
for await (const
|
|
1119
|
-
yield*
|
|
1120
|
-
},
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1119
|
+
}, En = async function* (e, t) {
|
|
1120
|
+
for await (const n of gn(e))
|
|
1121
|
+
yield* wn(n, t);
|
|
1122
|
+
}, gn = async function* (e) {
|
|
1123
|
+
if (e[Symbol.asyncIterator]) {
|
|
1124
|
+
yield* e;
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
const t = e.getReader();
|
|
1128
|
+
try {
|
|
1129
|
+
for (; ; ) {
|
|
1130
|
+
const { done: n, value: r } = await t.read();
|
|
1131
|
+
if (n)
|
|
1132
|
+
break;
|
|
1133
|
+
yield r;
|
|
1134
|
+
}
|
|
1135
|
+
} finally {
|
|
1136
|
+
await t.cancel();
|
|
1137
|
+
}
|
|
1138
|
+
}, Oe = (e, t, n, r) => {
|
|
1139
|
+
const s = En(e, t);
|
|
1140
|
+
let o = 0, i, c = (f) => {
|
|
1141
|
+
i || (i = !0, r && r(f));
|
|
1124
1142
|
};
|
|
1125
1143
|
return new ReadableStream({
|
|
1126
|
-
async pull(
|
|
1144
|
+
async pull(f) {
|
|
1127
1145
|
try {
|
|
1128
|
-
const { done:
|
|
1129
|
-
if (
|
|
1130
|
-
|
|
1146
|
+
const { done: u, value: l } = await s.next();
|
|
1147
|
+
if (u) {
|
|
1148
|
+
c(), f.close();
|
|
1131
1149
|
return;
|
|
1132
1150
|
}
|
|
1133
|
-
let
|
|
1151
|
+
let d = l.byteLength;
|
|
1134
1152
|
if (n) {
|
|
1135
|
-
let
|
|
1136
|
-
n(
|
|
1153
|
+
let b = o += d;
|
|
1154
|
+
n(b);
|
|
1137
1155
|
}
|
|
1138
|
-
|
|
1139
|
-
} catch (
|
|
1140
|
-
throw
|
|
1156
|
+
f.enqueue(new Uint8Array(l));
|
|
1157
|
+
} catch (u) {
|
|
1158
|
+
throw c(u), u;
|
|
1141
1159
|
}
|
|
1142
1160
|
},
|
|
1143
|
-
cancel(
|
|
1144
|
-
return f
|
|
1161
|
+
cancel(f) {
|
|
1162
|
+
return c(f), s.return();
|
|
1145
1163
|
}
|
|
1146
1164
|
}, {
|
|
1147
1165
|
highWaterMark: 2
|
|
1148
1166
|
});
|
|
1149
|
-
}, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1167
|
+
}, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = X && typeof ReadableStream == "function", Rn = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ke = (e, ...t) => {
|
|
1150
1168
|
try {
|
|
1151
1169
|
return !!e(...t);
|
|
1152
1170
|
} catch {
|
|
1153
1171
|
return !1;
|
|
1154
1172
|
}
|
|
1155
|
-
},
|
|
1173
|
+
}, Sn = We && Ke(() => {
|
|
1156
1174
|
let e = !1;
|
|
1157
|
-
const t = new Request(
|
|
1175
|
+
const t = new Request(T.origin, {
|
|
1158
1176
|
body: new ReadableStream(),
|
|
1159
1177
|
method: "POST",
|
|
1160
1178
|
get duplex() {
|
|
@@ -1162,31 +1180,34 @@ const We = (e) => {
|
|
|
1162
1180
|
}
|
|
1163
1181
|
}).headers.has("Content-Type");
|
|
1164
1182
|
return e && !t;
|
|
1165
|
-
}),
|
|
1166
|
-
stream:
|
|
1183
|
+
}), Te = 64 * 1024, se = We && Ke(() => a.isReadableStream(new Response("").body)), V = {
|
|
1184
|
+
stream: se && ((e) => e.body)
|
|
1167
1185
|
};
|
|
1168
1186
|
X && ((e) => {
|
|
1169
1187
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1170
|
-
!
|
|
1188
|
+
!V[t] && (V[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1171
1189
|
throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
|
|
1172
1190
|
});
|
|
1173
1191
|
});
|
|
1174
1192
|
})(new Response());
|
|
1175
|
-
const
|
|
1193
|
+
const On = async (e) => {
|
|
1176
1194
|
if (e == null)
|
|
1177
1195
|
return 0;
|
|
1178
1196
|
if (a.isBlob(e))
|
|
1179
1197
|
return e.size;
|
|
1180
1198
|
if (a.isSpecCompliantForm(e))
|
|
1181
|
-
return (await new Request(
|
|
1199
|
+
return (await new Request(T.origin, {
|
|
1200
|
+
method: "POST",
|
|
1201
|
+
body: e
|
|
1202
|
+
}).arrayBuffer()).byteLength;
|
|
1182
1203
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1183
1204
|
return e.byteLength;
|
|
1184
1205
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1185
|
-
return (await
|
|
1186
|
-
},
|
|
1206
|
+
return (await Rn(e)).byteLength;
|
|
1207
|
+
}, Tn = async (e, t) => {
|
|
1187
1208
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1188
|
-
return n ??
|
|
1189
|
-
},
|
|
1209
|
+
return n ?? On(t);
|
|
1210
|
+
}, An = X && (async (e) => {
|
|
1190
1211
|
let {
|
|
1191
1212
|
url: t,
|
|
1192
1213
|
method: n,
|
|
@@ -1198,85 +1219,85 @@ const Sn = async (e) => {
|
|
|
1198
1219
|
onUploadProgress: f,
|
|
1199
1220
|
responseType: u,
|
|
1200
1221
|
headers: l,
|
|
1201
|
-
withCredentials:
|
|
1222
|
+
withCredentials: d = "same-origin",
|
|
1202
1223
|
fetchOptions: b
|
|
1203
|
-
} =
|
|
1224
|
+
} = $e(e);
|
|
1204
1225
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1205
|
-
let
|
|
1206
|
-
const
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
};
|
|
1211
|
-
let O;
|
|
1226
|
+
let g = bn([s, o && o.toAbortSignal()], i), p;
|
|
1227
|
+
const y = g && g.unsubscribe && (() => {
|
|
1228
|
+
g.unsubscribe();
|
|
1229
|
+
});
|
|
1230
|
+
let h;
|
|
1212
1231
|
try {
|
|
1213
|
-
if (f &&
|
|
1214
|
-
let
|
|
1232
|
+
if (f && Sn && n !== "get" && n !== "head" && (h = await Tn(l, r)) !== 0) {
|
|
1233
|
+
let O = new Request(t, {
|
|
1215
1234
|
method: "POST",
|
|
1216
1235
|
body: r,
|
|
1217
1236
|
duplex: "half"
|
|
1218
1237
|
}), P;
|
|
1219
|
-
if (a.isFormData(r) && (P =
|
|
1220
|
-
const [
|
|
1221
|
-
|
|
1222
|
-
|
|
1238
|
+
if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
|
|
1239
|
+
const [F, M] = ge(
|
|
1240
|
+
h,
|
|
1241
|
+
v(Re(f))
|
|
1223
1242
|
);
|
|
1224
|
-
r =
|
|
1243
|
+
r = Oe(O.body, Te, F, M);
|
|
1225
1244
|
}
|
|
1226
1245
|
}
|
|
1227
|
-
a.isString(
|
|
1246
|
+
a.isString(d) || (d = d ? "include" : "omit");
|
|
1247
|
+
const w = "credentials" in Request.prototype;
|
|
1248
|
+
p = new Request(t, {
|
|
1228
1249
|
...b,
|
|
1229
|
-
signal:
|
|
1250
|
+
signal: g,
|
|
1230
1251
|
method: n.toUpperCase(),
|
|
1231
1252
|
headers: l.normalize().toJSON(),
|
|
1232
1253
|
body: r,
|
|
1233
1254
|
duplex: "half",
|
|
1234
|
-
credentials:
|
|
1255
|
+
credentials: w ? d : void 0
|
|
1235
1256
|
});
|
|
1236
|
-
let
|
|
1237
|
-
const
|
|
1238
|
-
if (
|
|
1239
|
-
const
|
|
1240
|
-
["status", "statusText", "headers"].forEach((
|
|
1241
|
-
|
|
1257
|
+
let R = await fetch(p);
|
|
1258
|
+
const S = se && (u === "stream" || u === "response");
|
|
1259
|
+
if (se && (c || S && y)) {
|
|
1260
|
+
const O = {};
|
|
1261
|
+
["status", "statusText", "headers"].forEach((pe) => {
|
|
1262
|
+
O[pe] = R[pe];
|
|
1242
1263
|
});
|
|
1243
|
-
const P = a.toFiniteNumber(
|
|
1264
|
+
const P = a.toFiniteNumber(R.headers.get("content-length")), [F, M] = c && ge(
|
|
1244
1265
|
P,
|
|
1245
|
-
|
|
1266
|
+
v(Re(c), !0)
|
|
1246
1267
|
) || [];
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
M && M(),
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1268
|
+
R = new Response(
|
|
1269
|
+
Oe(R.body, Te, F, () => {
|
|
1270
|
+
M && M(), y && y();
|
|
1271
|
+
}),
|
|
1272
|
+
O
|
|
1252
1273
|
);
|
|
1253
1274
|
}
|
|
1254
1275
|
u = u || "text";
|
|
1255
|
-
let
|
|
1256
|
-
return !
|
|
1257
|
-
ve(
|
|
1258
|
-
data:
|
|
1259
|
-
headers:
|
|
1260
|
-
status:
|
|
1261
|
-
statusText:
|
|
1276
|
+
let N = await V[a.findKey(V, u) || "text"](R, e);
|
|
1277
|
+
return !S && y && y(), await new Promise((O, P) => {
|
|
1278
|
+
ve(O, P, {
|
|
1279
|
+
data: N,
|
|
1280
|
+
headers: A.from(R.headers),
|
|
1281
|
+
status: R.status,
|
|
1282
|
+
statusText: R.statusText,
|
|
1262
1283
|
config: e,
|
|
1263
|
-
request:
|
|
1284
|
+
request: p
|
|
1264
1285
|
});
|
|
1265
1286
|
});
|
|
1266
1287
|
} catch (w) {
|
|
1267
|
-
throw
|
|
1268
|
-
new m("Network Error", m.ERR_NETWORK, e,
|
|
1288
|
+
throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
|
|
1289
|
+
new m("Network Error", m.ERR_NETWORK, e, p),
|
|
1269
1290
|
{
|
|
1270
1291
|
cause: w.cause || w
|
|
1271
1292
|
}
|
|
1272
|
-
) : m.from(w, w && w.code, e,
|
|
1293
|
+
) : m.from(w, w && w.code, e, p);
|
|
1273
1294
|
}
|
|
1274
|
-
}),
|
|
1275
|
-
http:
|
|
1276
|
-
xhr:
|
|
1277
|
-
fetch:
|
|
1295
|
+
}), oe = {
|
|
1296
|
+
http: It,
|
|
1297
|
+
xhr: yn,
|
|
1298
|
+
fetch: An
|
|
1278
1299
|
};
|
|
1279
|
-
a.forEach(
|
|
1300
|
+
a.forEach(oe, (e, t) => {
|
|
1280
1301
|
if (e) {
|
|
1281
1302
|
try {
|
|
1282
1303
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1285,7 +1306,7 @@ a.forEach(ie, (e, t) => {
|
|
|
1285
1306
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1286
1307
|
}
|
|
1287
1308
|
});
|
|
1288
|
-
const
|
|
1309
|
+
const Ae = (e) => `- ${e}`, xn = (e) => a.isFunction(e) || e === null || e === !1, Ge = {
|
|
1289
1310
|
getAdapter: (e) => {
|
|
1290
1311
|
e = a.isArray(e) ? e : [e];
|
|
1291
1312
|
const { length: t } = e;
|
|
@@ -1294,7 +1315,7 @@ const xe = (e) => `- ${e}`, An = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1294
1315
|
for (let o = 0; o < t; o++) {
|
|
1295
1316
|
n = e[o];
|
|
1296
1317
|
let i;
|
|
1297
|
-
if (r = n, !
|
|
1318
|
+
if (r = n, !xn(n) && (r = oe[(i = String(n)).toLowerCase()], r === void 0))
|
|
1298
1319
|
throw new m(`Unknown adapter '${i}'`);
|
|
1299
1320
|
if (r)
|
|
1300
1321
|
break;
|
|
@@ -1305,8 +1326,8 @@ const xe = (e) => `- ${e}`, An = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1305
1326
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1306
1327
|
);
|
|
1307
1328
|
let i = t ? o.length > 1 ? `since :
|
|
1308
|
-
` + o.map(
|
|
1309
|
-
`) : " " +
|
|
1329
|
+
` + o.map(Ae).join(`
|
|
1330
|
+
`) : " " + Ae(o[0]) : "as no adapter specified";
|
|
1310
1331
|
throw new m(
|
|
1311
1332
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1312
1333
|
"ERR_NOT_SUPPORT"
|
|
@@ -1314,40 +1335,40 @@ const xe = (e) => `- ${e}`, An = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1314
1335
|
}
|
|
1315
1336
|
return r;
|
|
1316
1337
|
},
|
|
1317
|
-
adapters:
|
|
1338
|
+
adapters: oe
|
|
1318
1339
|
};
|
|
1319
|
-
function
|
|
1340
|
+
function ee(e) {
|
|
1320
1341
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1321
1342
|
throw new k(null, e);
|
|
1322
1343
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return
|
|
1344
|
+
function xe(e) {
|
|
1345
|
+
return ee(e), e.headers = A.from(e.headers), e.data = Y.call(
|
|
1325
1346
|
e,
|
|
1326
1347
|
e.transformRequest
|
|
1327
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1328
|
-
return
|
|
1348
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ge.getAdapter(e.adapter || H.adapter)(e).then(function(r) {
|
|
1349
|
+
return ee(e), r.data = Y.call(
|
|
1329
1350
|
e,
|
|
1330
1351
|
e.transformResponse,
|
|
1331
1352
|
r
|
|
1332
|
-
), r.headers =
|
|
1353
|
+
), r.headers = A.from(r.headers), r;
|
|
1333
1354
|
}, function(r) {
|
|
1334
|
-
return
|
|
1355
|
+
return Je(r) || (ee(e), r && r.response && (r.response.data = Y.call(
|
|
1335
1356
|
e,
|
|
1336
1357
|
e.transformResponse,
|
|
1337
1358
|
r.response
|
|
1338
|
-
), r.response.headers =
|
|
1359
|
+
), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
|
|
1339
1360
|
});
|
|
1340
1361
|
}
|
|
1341
|
-
const
|
|
1362
|
+
const Xe = "1.7.7", fe = {};
|
|
1342
1363
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1343
|
-
|
|
1364
|
+
fe[e] = function(r) {
|
|
1344
1365
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1345
1366
|
};
|
|
1346
1367
|
});
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1368
|
+
const Ce = {};
|
|
1369
|
+
fe.transitional = function(t, n, r) {
|
|
1349
1370
|
function s(o, i) {
|
|
1350
|
-
return "[Axios v" +
|
|
1371
|
+
return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1351
1372
|
}
|
|
1352
1373
|
return (o, i, c) => {
|
|
1353
1374
|
if (t === !1)
|
|
@@ -1355,10 +1376,10 @@ de.transitional = function(t, n, r) {
|
|
|
1355
1376
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1356
1377
|
m.ERR_DEPRECATED
|
|
1357
1378
|
);
|
|
1358
|
-
return n && !
|
|
1379
|
+
return n && !Ce[i] && (Ce[i] = !0), t ? t(o, i, c) : !0;
|
|
1359
1380
|
};
|
|
1360
1381
|
};
|
|
1361
|
-
function
|
|
1382
|
+
function Cn(e, t, n) {
|
|
1362
1383
|
if (typeof e != "object")
|
|
1363
1384
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1364
1385
|
const r = Object.keys(e);
|
|
@@ -1375,15 +1396,15 @@ function xn(e, t, n) {
|
|
|
1375
1396
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1376
1397
|
}
|
|
1377
1398
|
}
|
|
1378
|
-
const
|
|
1379
|
-
assertOptions:
|
|
1380
|
-
validators:
|
|
1381
|
-
},
|
|
1399
|
+
const ie = {
|
|
1400
|
+
assertOptions: Cn,
|
|
1401
|
+
validators: fe
|
|
1402
|
+
}, _ = ie.validators;
|
|
1382
1403
|
class B {
|
|
1383
1404
|
constructor(t) {
|
|
1384
1405
|
this.defaults = t, this.interceptors = {
|
|
1385
|
-
request: new
|
|
1386
|
-
response: new
|
|
1406
|
+
request: new we(),
|
|
1407
|
+
response: new we()
|
|
1387
1408
|
};
|
|
1388
1409
|
}
|
|
1389
1410
|
/**
|
|
@@ -1414,15 +1435,15 @@ class B {
|
|
|
1414
1435
|
_request(t, n) {
|
|
1415
1436
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = D(this.defaults, n);
|
|
1416
1437
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1417
|
-
r !== void 0 &&
|
|
1418
|
-
silentJSONParsing:
|
|
1419
|
-
forcedJSONParsing:
|
|
1420
|
-
clarifyTimeoutError:
|
|
1438
|
+
r !== void 0 && ie.assertOptions(r, {
|
|
1439
|
+
silentJSONParsing: _.transitional(_.boolean),
|
|
1440
|
+
forcedJSONParsing: _.transitional(_.boolean),
|
|
1441
|
+
clarifyTimeoutError: _.transitional(_.boolean)
|
|
1421
1442
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1422
1443
|
serialize: s
|
|
1423
|
-
} :
|
|
1424
|
-
encode:
|
|
1425
|
-
serialize:
|
|
1444
|
+
} : ie.assertOptions(s, {
|
|
1445
|
+
encode: _.function,
|
|
1446
|
+
serialize: _.function
|
|
1426
1447
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1427
1448
|
let i = o && a.merge(
|
|
1428
1449
|
o.common,
|
|
@@ -1430,10 +1451,10 @@ class B {
|
|
|
1430
1451
|
);
|
|
1431
1452
|
o && a.forEach(
|
|
1432
1453
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1433
|
-
(
|
|
1434
|
-
delete o[
|
|
1454
|
+
(p) => {
|
|
1455
|
+
delete o[p];
|
|
1435
1456
|
}
|
|
1436
|
-
), n.headers =
|
|
1457
|
+
), n.headers = A.concat(i, o);
|
|
1437
1458
|
const c = [];
|
|
1438
1459
|
let f = !0;
|
|
1439
1460
|
this.interceptors.request.forEach(function(y) {
|
|
@@ -1443,37 +1464,37 @@ class B {
|
|
|
1443
1464
|
this.interceptors.response.forEach(function(y) {
|
|
1444
1465
|
u.push(y.fulfilled, y.rejected);
|
|
1445
1466
|
});
|
|
1446
|
-
let l,
|
|
1467
|
+
let l, d = 0, b;
|
|
1447
1468
|
if (!f) {
|
|
1448
|
-
const
|
|
1449
|
-
for (
|
|
1450
|
-
l = l.then(
|
|
1469
|
+
const p = [xe.bind(this), void 0];
|
|
1470
|
+
for (p.unshift.apply(p, c), p.push.apply(p, u), b = p.length, l = Promise.resolve(n); d < b; )
|
|
1471
|
+
l = l.then(p[d++], p[d++]);
|
|
1451
1472
|
return l;
|
|
1452
1473
|
}
|
|
1453
1474
|
b = c.length;
|
|
1454
|
-
let
|
|
1455
|
-
for (
|
|
1456
|
-
const
|
|
1475
|
+
let g = n;
|
|
1476
|
+
for (d = 0; d < b; ) {
|
|
1477
|
+
const p = c[d++], y = c[d++];
|
|
1457
1478
|
try {
|
|
1458
|
-
|
|
1459
|
-
} catch (
|
|
1460
|
-
y.call(this,
|
|
1479
|
+
g = p(g);
|
|
1480
|
+
} catch (h) {
|
|
1481
|
+
y.call(this, h);
|
|
1461
1482
|
break;
|
|
1462
1483
|
}
|
|
1463
1484
|
}
|
|
1464
1485
|
try {
|
|
1465
|
-
l =
|
|
1466
|
-
} catch (
|
|
1467
|
-
return Promise.reject(
|
|
1486
|
+
l = xe.call(this, g);
|
|
1487
|
+
} catch (p) {
|
|
1488
|
+
return Promise.reject(p);
|
|
1468
1489
|
}
|
|
1469
|
-
for (
|
|
1470
|
-
l = l.then(u[
|
|
1490
|
+
for (d = 0, b = u.length; d < b; )
|
|
1491
|
+
l = l.then(u[d++], u[d++]);
|
|
1471
1492
|
return l;
|
|
1472
1493
|
}
|
|
1473
1494
|
getUri(t) {
|
|
1474
1495
|
t = D(this.defaults, t);
|
|
1475
|
-
const n =
|
|
1476
|
-
return
|
|
1496
|
+
const n = Ve(t.baseURL, t.url);
|
|
1497
|
+
return He(n, t.params, t.paramsSerializer);
|
|
1477
1498
|
}
|
|
1478
1499
|
}
|
|
1479
1500
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1500,7 +1521,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1500
1521
|
}
|
|
1501
1522
|
B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
|
|
1502
1523
|
});
|
|
1503
|
-
class
|
|
1524
|
+
class de {
|
|
1504
1525
|
constructor(t) {
|
|
1505
1526
|
if (typeof t != "function")
|
|
1506
1527
|
throw new TypeError("executor must be a function.");
|
|
@@ -1553,6 +1574,12 @@ class pe {
|
|
|
1553
1574
|
const n = this._listeners.indexOf(t);
|
|
1554
1575
|
n !== -1 && this._listeners.splice(n, 1);
|
|
1555
1576
|
}
|
|
1577
|
+
toAbortSignal() {
|
|
1578
|
+
const t = new AbortController(), n = (r) => {
|
|
1579
|
+
t.abort(r);
|
|
1580
|
+
};
|
|
1581
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1582
|
+
}
|
|
1556
1583
|
/**
|
|
1557
1584
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1558
1585
|
* cancels the `CancelToken`.
|
|
@@ -1560,22 +1587,22 @@ class pe {
|
|
|
1560
1587
|
static source() {
|
|
1561
1588
|
let t;
|
|
1562
1589
|
return {
|
|
1563
|
-
token: new
|
|
1590
|
+
token: new de(function(s) {
|
|
1564
1591
|
t = s;
|
|
1565
1592
|
}),
|
|
1566
1593
|
cancel: t
|
|
1567
1594
|
};
|
|
1568
1595
|
}
|
|
1569
1596
|
}
|
|
1570
|
-
function
|
|
1597
|
+
function Nn(e) {
|
|
1571
1598
|
return function(n) {
|
|
1572
1599
|
return e.apply(null, n);
|
|
1573
1600
|
};
|
|
1574
1601
|
}
|
|
1575
|
-
function
|
|
1602
|
+
function Pn(e) {
|
|
1576
1603
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1577
1604
|
}
|
|
1578
|
-
const
|
|
1605
|
+
const ae = {
|
|
1579
1606
|
Continue: 100,
|
|
1580
1607
|
SwitchingProtocols: 101,
|
|
1581
1608
|
Processing: 102,
|
|
@@ -1640,50 +1667,54 @@ const ce = {
|
|
|
1640
1667
|
NotExtended: 510,
|
|
1641
1668
|
NetworkAuthenticationRequired: 511
|
|
1642
1669
|
};
|
|
1643
|
-
Object.entries(
|
|
1644
|
-
|
|
1670
|
+
Object.entries(ae).forEach(([e, t]) => {
|
|
1671
|
+
ae[t] = e;
|
|
1645
1672
|
});
|
|
1646
|
-
function
|
|
1647
|
-
const t = new B(e), n =
|
|
1673
|
+
function Qe(e) {
|
|
1674
|
+
const t = new B(e), n = Ne(B.prototype.request, t);
|
|
1648
1675
|
return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1649
|
-
return
|
|
1676
|
+
return Qe(D(e, s));
|
|
1650
1677
|
}, n;
|
|
1651
1678
|
}
|
|
1652
|
-
const
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1679
|
+
const E = Qe(H);
|
|
1680
|
+
E.Axios = B;
|
|
1681
|
+
E.CanceledError = k;
|
|
1682
|
+
E.CancelToken = de;
|
|
1683
|
+
E.isCancel = Je;
|
|
1684
|
+
E.VERSION = Xe;
|
|
1685
|
+
E.toFormData = G;
|
|
1686
|
+
E.AxiosError = m;
|
|
1687
|
+
E.Cancel = E.CanceledError;
|
|
1688
|
+
E.all = function(t) {
|
|
1662
1689
|
return Promise.all(t);
|
|
1663
1690
|
};
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1691
|
+
E.spread = Nn;
|
|
1692
|
+
E.isAxiosError = Pn;
|
|
1693
|
+
E.mergeConfig = D;
|
|
1694
|
+
E.AxiosHeaders = A;
|
|
1695
|
+
E.formToJSON = (e) => ze(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1696
|
+
E.getAdapter = Ge.getAdapter;
|
|
1697
|
+
E.HttpStatusCode = ae;
|
|
1698
|
+
E.default = E;
|
|
1672
1699
|
const Ln = async (e) => {
|
|
1673
|
-
var
|
|
1700
|
+
var n;
|
|
1674
1701
|
const t = {
|
|
1675
1702
|
personalInfo: "/api/personal-center/personal-server/v1/info"
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1703
|
+
};
|
|
1704
|
+
try {
|
|
1705
|
+
const r = await E.create().get(t.personalInfo, {
|
|
1706
|
+
baseURL: Ye().baseURL,
|
|
1707
|
+
params: {
|
|
1708
|
+
project: (n = Ze()) == null ? void 0 : n.id,
|
|
1709
|
+
timestamp: (/* @__PURE__ */ new Date()).getTime()
|
|
1710
|
+
},
|
|
1711
|
+
headers: {
|
|
1712
|
+
Authorization: `Bearer ${e}`
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
r != null && r.data && sessionStorage.setItem("userInfo", JSON.stringify(r.data));
|
|
1716
|
+
} catch {
|
|
1717
|
+
}
|
|
1687
1718
|
};
|
|
1688
1719
|
export {
|
|
1689
1720
|
Ln as setPersonalInfo
|