@das-fed/utils 6.4.0-hot.6 → 6.4.0-hot.60
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 +53 -0
- package/api-services/i18n/index.js +27 -0
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +2140 -1632
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +2314 -1818
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +2314 -1818
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +2317 -1821
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +2314 -1818
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +2305 -1809
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +2314 -1818
- 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 +3446 -158
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +2314 -1818
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +2164 -1663
- 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 +2287 -1790
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +2302 -1806
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +2314 -1818
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +2314 -1818
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +2314 -1818
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +2321 -1825
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +2349 -1871
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +2314 -1818
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +2304 -1808
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +2303 -1807
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +2349 -1871
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +2295 -1817
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +2314 -1818
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +2300 -1804
- 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 +11 -3
- package/common-info/index.js +112 -56
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +893 -604
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +218 -104
- package/common-tools/calc-text-width/index.d.ts +1 -0
- package/common-tools/calc-text-width/index.js +10 -0
- package/common-tools/extract-file-name/index.d.ts +1 -0
- package/common-tools/extract-file-name/index.js +1731 -0
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/index.d.ts +6 -0
- package/common-tools/get-file-extension/index.js +7 -0
- package/common-tools/get-url-params/index.d.ts +1 -1
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/index.d.ts +4 -0
- package/common-tools/index.js +4 -0
- package/common-tools/nest-tree-format/index.d.ts +1 -1
- package/common-tools/nest-tree-format/index.js +15 -15
- 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/create-api-service/i18n/index.d.ts +33 -0
- package/create-api-service/i18n/index.js +15 -0
- package/create-api-service/index.d.ts +3 -1
- package/create-api-service/index.js +2349 -1871
- 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 +1243 -854
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +1436 -1153
- 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/directive/hoverInside/index.d.ts +1 -1
- package/dom-check-in/index.js +2 -2
- package/dom-watcher/index.d.ts +1 -1
- package/esm-map.json +9 -2
- package/hooks/use-get-auth/index.d.ts +1 -1
- package/hooks/use-get-auth/index.js +30 -30
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -3
- package/pinyin-first-character/index.js +19804 -20879
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +4 -2
- package/style/index.js.gz +0 -0
- package/style/math.d.ts +4 -4
- package/token-tools/index.d.ts +6 -6
- package/token-tools/index.js +8 -84
- package/use-low-code/index.js +13 -13
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/vue/hooks/use-model-value/index.d.ts +5 -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,129 +1,140 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { encryption as
|
|
3
|
-
import { getConfig as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
function Ie(e, t) {
|
|
1
|
+
import { unref as Nt, getCurrentScope as Ft, onScopeDispose as Dt, ref as ne, watch as Oe } from "vue";
|
|
2
|
+
import { encryption as vt } from "@das-fed/utils/atob";
|
|
3
|
+
import { getConfig as Ae } from "@das-fed/utils/config";
|
|
4
|
+
import { getAccessToken as D, removeAccessToken as It, setAccessToken as Bt, getAccessTokenInfo as fe } from "@das-fed/utils/token-tools";
|
|
5
|
+
import { removeProcessEngineToken as jt, setProcessEngineToken as qt } from "@das-fed/utils/process-engine-info";
|
|
6
|
+
import { setPersonalInfo as tt } from "@das-fed/utils/common-info/set-personal-info";
|
|
7
|
+
function nt(e, t) {
|
|
9
8
|
return function() {
|
|
10
9
|
return e.apply(t, arguments);
|
|
11
10
|
};
|
|
12
11
|
}
|
|
13
|
-
const { toString:
|
|
14
|
-
const n =
|
|
12
|
+
const { toString: Mt } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: se, toStringTag: rt } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
|
|
13
|
+
const n = Mt.call(t);
|
|
15
14
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
16
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
17
|
-
function
|
|
18
|
-
return e !== null && !
|
|
15
|
+
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: B } = Array, H = ae("undefined");
|
|
16
|
+
function V(e) {
|
|
17
|
+
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
19
18
|
}
|
|
20
|
-
const
|
|
21
|
-
function
|
|
19
|
+
const ot = x("ArrayBuffer");
|
|
20
|
+
function Ht(e) {
|
|
22
21
|
let t;
|
|
23
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
22
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ot(e.buffer), t;
|
|
24
23
|
}
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
24
|
+
const $t = ae("string"), A = ae("function"), st = ae("number"), W = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, Z = (e) => {
|
|
25
|
+
if (ie(e) !== "object")
|
|
27
26
|
return !1;
|
|
28
|
-
const t =
|
|
29
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
30
|
-
},
|
|
27
|
+
const t = _e(e);
|
|
28
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(rt in e) && !(se in e);
|
|
29
|
+
}, Jt = (e) => {
|
|
30
|
+
if (!W(e) || V(e))
|
|
31
|
+
return !1;
|
|
32
|
+
try {
|
|
33
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
34
|
+
} catch {
|
|
35
|
+
return !1;
|
|
36
|
+
}
|
|
37
|
+
}, Vt = x("Date"), Wt = x("File"), Kt = x("Blob"), Qt = x("FileList"), Xt = (e) => W(e) && A(e.pipe), Gt = (e) => {
|
|
31
38
|
let t;
|
|
32
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
33
|
-
t === "object" &&
|
|
34
|
-
},
|
|
35
|
-
function
|
|
39
|
+
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
|
|
40
|
+
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
41
|
+
}, Zt = x("URLSearchParams"), [Yt, en, tn, nn] = ["ReadableStream", "Request", "Response", "Headers"].map(x), rn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
42
|
+
function K(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
36
43
|
if (e === null || typeof e > "u")
|
|
37
44
|
return;
|
|
38
|
-
let r,
|
|
39
|
-
if (typeof e != "object" && (e = [e]),
|
|
40
|
-
for (r = 0,
|
|
45
|
+
let r, o;
|
|
46
|
+
if (typeof e != "object" && (e = [e]), B(e))
|
|
47
|
+
for (r = 0, o = e.length; r < o; r++)
|
|
41
48
|
t.call(null, e[r], r, e);
|
|
42
49
|
else {
|
|
43
|
-
|
|
50
|
+
if (V(e))
|
|
51
|
+
return;
|
|
52
|
+
const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
44
53
|
let c;
|
|
45
54
|
for (r = 0; r < i; r++)
|
|
46
|
-
c =
|
|
55
|
+
c = s[r], t.call(null, e[c], c, e);
|
|
47
56
|
}
|
|
48
57
|
}
|
|
49
|
-
function
|
|
58
|
+
function it(e, t) {
|
|
59
|
+
if (V(e))
|
|
60
|
+
return null;
|
|
50
61
|
t = t.toLowerCase();
|
|
51
62
|
const n = Object.keys(e);
|
|
52
|
-
let r = n.length,
|
|
63
|
+
let r = n.length, o;
|
|
53
64
|
for (; r-- > 0; )
|
|
54
|
-
if (
|
|
55
|
-
return
|
|
65
|
+
if (o = n[r], t === o.toLowerCase())
|
|
66
|
+
return o;
|
|
56
67
|
return null;
|
|
57
68
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
const { caseless: e } =
|
|
61
|
-
const
|
|
62
|
-
|
|
69
|
+
const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, at = (e) => !H(e) && e !== L;
|
|
70
|
+
function me() {
|
|
71
|
+
const { caseless: e } = at(this) && this || {}, t = {}, n = (r, o) => {
|
|
72
|
+
const s = e && it(t, o) || o;
|
|
73
|
+
Z(t[s]) && Z(r) ? t[s] = me(t[s], r) : Z(r) ? t[s] = me({}, r) : B(r) ? t[s] = r.slice() : t[s] = r;
|
|
63
74
|
};
|
|
64
|
-
for (let r = 0,
|
|
65
|
-
arguments[r] &&
|
|
75
|
+
for (let r = 0, o = arguments.length; r < o; r++)
|
|
76
|
+
arguments[r] && K(arguments[r], n);
|
|
66
77
|
return t;
|
|
67
78
|
}
|
|
68
|
-
const
|
|
69
|
-
n &&
|
|
70
|
-
}, { allOwnKeys: r }), e),
|
|
79
|
+
const on = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (o, s) => {
|
|
80
|
+
n && A(o) ? e[s] = nt(o, n) : e[s] = o;
|
|
81
|
+
}, { allOwnKeys: r }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), an = (e, t, n, r) => {
|
|
71
82
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
72
83
|
value: t.prototype
|
|
73
84
|
}), n && Object.assign(e.prototype, n);
|
|
74
|
-
},
|
|
75
|
-
let
|
|
85
|
+
}, cn = (e, t, n, r) => {
|
|
86
|
+
let o, s, i;
|
|
76
87
|
const c = {};
|
|
77
88
|
if (t = t || {}, e == null) return t;
|
|
78
89
|
do {
|
|
79
|
-
for (
|
|
80
|
-
i = s
|
|
81
|
-
e = n !== !1 &&
|
|
90
|
+
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
91
|
+
i = o[s], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
92
|
+
e = n !== !1 && _e(e);
|
|
82
93
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
83
94
|
return t;
|
|
84
|
-
},
|
|
95
|
+
}, un = (e, t, n) => {
|
|
85
96
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
86
97
|
const r = e.indexOf(t, n);
|
|
87
98
|
return r !== -1 && r === n;
|
|
88
|
-
},
|
|
99
|
+
}, ln = (e) => {
|
|
89
100
|
if (!e) return null;
|
|
90
|
-
if (
|
|
101
|
+
if (B(e)) return e;
|
|
91
102
|
let t = e.length;
|
|
92
|
-
if (!
|
|
103
|
+
if (!st(t)) return null;
|
|
93
104
|
const n = new Array(t);
|
|
94
105
|
for (; t-- > 0; )
|
|
95
106
|
n[t] = e[t];
|
|
96
107
|
return n;
|
|
97
|
-
},
|
|
98
|
-
const r = (e && e[
|
|
99
|
-
let
|
|
100
|
-
for (; (
|
|
101
|
-
const
|
|
102
|
-
t.call(e,
|
|
108
|
+
}, fn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && _e(Uint8Array)), dn = (e, t) => {
|
|
109
|
+
const r = (e && e[se]).call(e);
|
|
110
|
+
let o;
|
|
111
|
+
for (; (o = r.next()) && !o.done; ) {
|
|
112
|
+
const s = o.value;
|
|
113
|
+
t.call(e, s[0], s[1]);
|
|
103
114
|
}
|
|
104
|
-
},
|
|
115
|
+
}, pn = (e, t) => {
|
|
105
116
|
let n;
|
|
106
117
|
const r = [];
|
|
107
118
|
for (; (n = e.exec(t)) !== null; )
|
|
108
119
|
r.push(n);
|
|
109
120
|
return r;
|
|
110
|
-
},
|
|
121
|
+
}, hn = x("HTMLFormElement"), mn = (e) => e.toLowerCase().replace(
|
|
111
122
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
112
|
-
function(n, r,
|
|
113
|
-
return r.toUpperCase() +
|
|
123
|
+
function(n, r, o) {
|
|
124
|
+
return r.toUpperCase() + o;
|
|
114
125
|
}
|
|
115
|
-
),
|
|
126
|
+
), Ue = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yn = x("RegExp"), ct = (e, t) => {
|
|
116
127
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
117
|
-
|
|
128
|
+
K(n, (o, s) => {
|
|
118
129
|
let i;
|
|
119
|
-
(i = t(
|
|
130
|
+
(i = t(o, s, e)) !== !1 && (r[s] = i || o);
|
|
120
131
|
}), Object.defineProperties(e, r);
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
if (
|
|
132
|
+
}, wn = (e) => {
|
|
133
|
+
ct(e, (t, n) => {
|
|
134
|
+
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
124
135
|
return !1;
|
|
125
136
|
const r = e[n];
|
|
126
|
-
if (
|
|
137
|
+
if (A(r)) {
|
|
127
138
|
if (t.enumerable = !1, "writable" in t) {
|
|
128
139
|
t.writable = !1;
|
|
129
140
|
return;
|
|
@@ -133,103 +144,108 @@ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, o) => {
|
|
|
133
144
|
});
|
|
134
145
|
}
|
|
135
146
|
});
|
|
136
|
-
},
|
|
137
|
-
const n = {}, r = (
|
|
138
|
-
|
|
139
|
-
n[
|
|
147
|
+
}, gn = (e, t) => {
|
|
148
|
+
const n = {}, r = (o) => {
|
|
149
|
+
o.forEach((s) => {
|
|
150
|
+
n[s] = !0;
|
|
140
151
|
});
|
|
141
152
|
};
|
|
142
|
-
return
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
ALPHA_DIGIT: G + G.toUpperCase() + ye
|
|
148
|
-
}, Kt = (e = 16, t = $e.ALPHA_DIGIT) => {
|
|
149
|
-
let n = "";
|
|
150
|
-
const { length: r } = t;
|
|
151
|
-
for (; e--; )
|
|
152
|
-
n += t[Math.random() * r | 0];
|
|
153
|
-
return n;
|
|
154
|
-
};
|
|
155
|
-
function Qt(e) {
|
|
156
|
-
return !!(e && g(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
153
|
+
return B(e) ? r(e) : r(String(e).split(t)), n;
|
|
154
|
+
}, bn = () => {
|
|
155
|
+
}, En = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
156
|
+
function Sn(e) {
|
|
157
|
+
return !!(e && A(e.append) && e[rt] === "FormData" && e[se]);
|
|
157
158
|
}
|
|
158
|
-
const
|
|
159
|
-
const t = new Array(10), n = (r,
|
|
160
|
-
if (
|
|
159
|
+
const Rn = (e) => {
|
|
160
|
+
const t = new Array(10), n = (r, o) => {
|
|
161
|
+
if (W(r)) {
|
|
161
162
|
if (t.indexOf(r) >= 0)
|
|
162
163
|
return;
|
|
164
|
+
if (V(r))
|
|
165
|
+
return r;
|
|
163
166
|
if (!("toJSON" in r)) {
|
|
164
|
-
t[
|
|
165
|
-
const
|
|
166
|
-
return
|
|
167
|
-
const f = n(i,
|
|
168
|
-
!
|
|
169
|
-
}), t[
|
|
167
|
+
t[o] = r;
|
|
168
|
+
const s = B(r) ? [] : {};
|
|
169
|
+
return K(r, (i, c) => {
|
|
170
|
+
const f = n(i, o + 1);
|
|
171
|
+
!H(f) && (s[c] = f);
|
|
172
|
+
}), t[o] = void 0, s;
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
return r;
|
|
173
176
|
};
|
|
174
177
|
return n(e, 0);
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
178
|
+
}, Tn = x("AsyncFunction"), On = (e) => e && (W(e) || A(e)) && A(e.then) && A(e.catch), ut = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: o, data: s }) => {
|
|
179
|
+
o === L && s === n && r.length && r.shift()();
|
|
180
|
+
}, !1), (o) => {
|
|
181
|
+
r.push(o), L.postMessage(n, "*");
|
|
182
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
183
|
+
typeof setImmediate == "function",
|
|
184
|
+
A(L.postMessage)
|
|
185
|
+
), An = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || ut, _n = (e) => e != null && A(e[se]), a = {
|
|
186
|
+
isArray: B,
|
|
187
|
+
isArrayBuffer: ot,
|
|
188
|
+
isBuffer: V,
|
|
189
|
+
isFormData: Gt,
|
|
190
|
+
isArrayBufferView: Ht,
|
|
191
|
+
isString: $t,
|
|
192
|
+
isNumber: st,
|
|
193
|
+
isBoolean: zt,
|
|
194
|
+
isObject: W,
|
|
195
|
+
isPlainObject: Z,
|
|
196
|
+
isEmptyObject: Jt,
|
|
197
|
+
isReadableStream: Yt,
|
|
198
|
+
isRequest: en,
|
|
199
|
+
isResponse: tn,
|
|
200
|
+
isHeaders: nn,
|
|
201
|
+
isUndefined: H,
|
|
202
|
+
isDate: Vt,
|
|
203
|
+
isFile: Wt,
|
|
204
|
+
isBlob: Kt,
|
|
205
|
+
isRegExp: yn,
|
|
206
|
+
isFunction: A,
|
|
207
|
+
isStream: Xt,
|
|
208
|
+
isURLSearchParams: Zt,
|
|
209
|
+
isTypedArray: fn,
|
|
210
|
+
isFileList: Qt,
|
|
211
|
+
forEach: K,
|
|
212
|
+
merge: me,
|
|
213
|
+
extend: on,
|
|
214
|
+
trim: rn,
|
|
215
|
+
stripBOM: sn,
|
|
216
|
+
inherits: an,
|
|
217
|
+
toFlatObject: cn,
|
|
218
|
+
kindOf: ie,
|
|
219
|
+
kindOfTest: x,
|
|
220
|
+
endsWith: un,
|
|
221
|
+
toArray: ln,
|
|
222
|
+
forEachEntry: dn,
|
|
223
|
+
matchAll: pn,
|
|
224
|
+
isHTMLForm: hn,
|
|
225
|
+
hasOwnProperty: Ue,
|
|
226
|
+
hasOwnProp: Ue,
|
|
212
227
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
213
|
-
reduceDescriptors:
|
|
214
|
-
freezeMethods:
|
|
215
|
-
toObjectSet:
|
|
216
|
-
toCamelCase:
|
|
217
|
-
noop:
|
|
218
|
-
toFiniteNumber:
|
|
219
|
-
findKey:
|
|
220
|
-
global:
|
|
221
|
-
isContextDefined:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
+
reduceDescriptors: ct,
|
|
229
|
+
freezeMethods: wn,
|
|
230
|
+
toObjectSet: gn,
|
|
231
|
+
toCamelCase: mn,
|
|
232
|
+
noop: bn,
|
|
233
|
+
toFiniteNumber: En,
|
|
234
|
+
findKey: it,
|
|
235
|
+
global: L,
|
|
236
|
+
isContextDefined: at,
|
|
237
|
+
isSpecCompliantForm: Sn,
|
|
238
|
+
toJSONObject: Rn,
|
|
239
|
+
isAsyncFn: Tn,
|
|
240
|
+
isThenable: On,
|
|
241
|
+
setImmediate: ut,
|
|
242
|
+
asap: An,
|
|
243
|
+
isIterable: _n
|
|
228
244
|
};
|
|
229
|
-
function
|
|
230
|
-
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),
|
|
245
|
+
function y(e, t, n, r, o) {
|
|
246
|
+
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), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
231
247
|
}
|
|
232
|
-
a.inherits(
|
|
248
|
+
a.inherits(y, Error, {
|
|
233
249
|
toJSON: function() {
|
|
234
250
|
return {
|
|
235
251
|
// Standard
|
|
@@ -246,11 +262,11 @@ a.inherits(m, Error, {
|
|
|
246
262
|
// Axios
|
|
247
263
|
config: a.toJSONObject(this.config),
|
|
248
264
|
code: this.code,
|
|
249
|
-
status: this.
|
|
265
|
+
status: this.status
|
|
250
266
|
};
|
|
251
267
|
}
|
|
252
268
|
});
|
|
253
|
-
const
|
|
269
|
+
const lt = y.prototype, ft = {};
|
|
254
270
|
[
|
|
255
271
|
"ERR_BAD_OPTION_VALUE",
|
|
256
272
|
"ERR_BAD_OPTION",
|
|
@@ -266,96 +282,98 @@ const Je = m.prototype, Ve = {};
|
|
|
266
282
|
"ERR_INVALID_URL"
|
|
267
283
|
// eslint-disable-next-line func-names
|
|
268
284
|
].forEach((e) => {
|
|
269
|
-
|
|
285
|
+
ft[e] = { value: e };
|
|
270
286
|
});
|
|
271
|
-
Object.defineProperties(
|
|
272
|
-
Object.defineProperty(
|
|
273
|
-
|
|
274
|
-
const i = Object.create(
|
|
287
|
+
Object.defineProperties(y, ft);
|
|
288
|
+
Object.defineProperty(lt, "isAxiosError", { value: !0 });
|
|
289
|
+
y.from = (e, t, n, r, o, s) => {
|
|
290
|
+
const i = Object.create(lt);
|
|
275
291
|
return a.toFlatObject(e, i, function(f) {
|
|
276
292
|
return f !== Error.prototype;
|
|
277
|
-
}, (c) => c !== "isAxiosError"),
|
|
293
|
+
}, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
278
294
|
};
|
|
279
|
-
const
|
|
280
|
-
function
|
|
295
|
+
const xn = null;
|
|
296
|
+
function ye(e) {
|
|
281
297
|
return a.isPlainObject(e) || a.isArray(e);
|
|
282
298
|
}
|
|
283
|
-
function
|
|
299
|
+
function dt(e) {
|
|
284
300
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
285
301
|
}
|
|
286
|
-
function
|
|
287
|
-
return e ? e.concat(t).map(function(
|
|
288
|
-
return
|
|
302
|
+
function Le(e, t, n) {
|
|
303
|
+
return e ? e.concat(t).map(function(o, s) {
|
|
304
|
+
return o = dt(o), !n && s ? "[" + o + "]" : o;
|
|
289
305
|
}).join(n ? "." : "") : t;
|
|
290
306
|
}
|
|
291
|
-
function
|
|
292
|
-
return a.isArray(e) && !e.some(
|
|
307
|
+
function Cn(e) {
|
|
308
|
+
return a.isArray(e) && !e.some(ye);
|
|
293
309
|
}
|
|
294
|
-
const
|
|
310
|
+
const kn = a.toFlatObject(a, {}, null, function(t) {
|
|
295
311
|
return /^is[A-Z]/.test(t);
|
|
296
312
|
});
|
|
297
|
-
function
|
|
313
|
+
function ce(e, t, n) {
|
|
298
314
|
if (!a.isObject(e))
|
|
299
315
|
throw new TypeError("target must be an object");
|
|
300
316
|
t = t || new FormData(), n = a.toFlatObject(n, {
|
|
301
317
|
metaTokens: !0,
|
|
302
318
|
dots: !1,
|
|
303
319
|
indexes: !1
|
|
304
|
-
}, !1, function(
|
|
305
|
-
return !a.isUndefined(
|
|
320
|
+
}, !1, function(m, h) {
|
|
321
|
+
return !a.isUndefined(h[m]);
|
|
306
322
|
});
|
|
307
|
-
const r = n.metaTokens,
|
|
308
|
-
if (!a.isFunction(
|
|
323
|
+
const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
324
|
+
if (!a.isFunction(o))
|
|
309
325
|
throw new TypeError("visitor must be a function");
|
|
310
|
-
function
|
|
326
|
+
function l(p) {
|
|
311
327
|
if (p === null) return "";
|
|
312
328
|
if (a.isDate(p))
|
|
313
329
|
return p.toISOString();
|
|
330
|
+
if (a.isBoolean(p))
|
|
331
|
+
return p.toString();
|
|
314
332
|
if (!f && a.isBlob(p))
|
|
315
|
-
throw new
|
|
333
|
+
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
316
334
|
return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
317
335
|
}
|
|
318
|
-
function
|
|
319
|
-
let
|
|
320
|
-
if (p && !
|
|
321
|
-
if (a.endsWith(
|
|
322
|
-
|
|
323
|
-
else if (a.isArray(p) &&
|
|
324
|
-
return
|
|
325
|
-
!(a.isUndefined(
|
|
336
|
+
function u(p, m, h) {
|
|
337
|
+
let E = p;
|
|
338
|
+
if (p && !h && typeof p == "object") {
|
|
339
|
+
if (a.endsWith(m, "{}"))
|
|
340
|
+
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
341
|
+
else if (a.isArray(p) && Cn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
|
|
342
|
+
return m = dt(m), E.forEach(function(R, k) {
|
|
343
|
+
!(a.isUndefined(R) || R === null) && t.append(
|
|
326
344
|
// eslint-disable-next-line no-nested-ternary
|
|
327
|
-
i === !0 ?
|
|
328
|
-
|
|
345
|
+
i === !0 ? Le([m], k, s) : i === null ? m : m + "[]",
|
|
346
|
+
l(R)
|
|
329
347
|
);
|
|
330
348
|
}), !1;
|
|
331
349
|
}
|
|
332
|
-
return
|
|
350
|
+
return ye(p) ? !0 : (t.append(Le(h, m, s), l(p)), !1);
|
|
333
351
|
}
|
|
334
|
-
const
|
|
335
|
-
defaultVisitor:
|
|
336
|
-
convertValue:
|
|
337
|
-
isVisitable:
|
|
352
|
+
const d = [], w = Object.assign(kn, {
|
|
353
|
+
defaultVisitor: u,
|
|
354
|
+
convertValue: l,
|
|
355
|
+
isVisitable: ye
|
|
338
356
|
});
|
|
339
|
-
function
|
|
357
|
+
function g(p, m) {
|
|
340
358
|
if (!a.isUndefined(p)) {
|
|
341
|
-
if (
|
|
342
|
-
throw Error("Circular reference detected in " +
|
|
343
|
-
|
|
344
|
-
(!(a.isUndefined(
|
|
359
|
+
if (d.indexOf(p) !== -1)
|
|
360
|
+
throw Error("Circular reference detected in " + m.join("."));
|
|
361
|
+
d.push(p), a.forEach(p, function(E, S) {
|
|
362
|
+
(!(a.isUndefined(E) || E === null) && o.call(
|
|
345
363
|
t,
|
|
346
|
-
|
|
347
|
-
a.isString(
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
)) === !0 && E
|
|
351
|
-
}),
|
|
364
|
+
E,
|
|
365
|
+
a.isString(S) ? S.trim() : S,
|
|
366
|
+
m,
|
|
367
|
+
w
|
|
368
|
+
)) === !0 && g(E, m ? m.concat(S) : [S]);
|
|
369
|
+
}), d.pop();
|
|
352
370
|
}
|
|
353
371
|
}
|
|
354
372
|
if (!a.isObject(e))
|
|
355
373
|
throw new TypeError("data must be an object");
|
|
356
|
-
return
|
|
374
|
+
return g(e), t;
|
|
357
375
|
}
|
|
358
|
-
function
|
|
376
|
+
function Ne(e) {
|
|
359
377
|
const t = {
|
|
360
378
|
"!": "%21",
|
|
361
379
|
"'": "%27",
|
|
@@ -369,36 +387,40 @@ function Ee(e) {
|
|
|
369
387
|
return t[r];
|
|
370
388
|
});
|
|
371
389
|
}
|
|
372
|
-
function
|
|
373
|
-
this._pairs = [], e &&
|
|
390
|
+
function xe(e, t) {
|
|
391
|
+
this._pairs = [], e && ce(e, this, t);
|
|
374
392
|
}
|
|
375
|
-
const
|
|
376
|
-
|
|
393
|
+
const pt = xe.prototype;
|
|
394
|
+
pt.append = function(t, n) {
|
|
377
395
|
this._pairs.push([t, n]);
|
|
378
396
|
};
|
|
379
|
-
|
|
397
|
+
pt.toString = function(t) {
|
|
380
398
|
const n = t ? function(r) {
|
|
381
|
-
return t.call(this, r,
|
|
382
|
-
} :
|
|
383
|
-
return this._pairs.map(function(
|
|
384
|
-
return n(
|
|
399
|
+
return t.call(this, r, Ne);
|
|
400
|
+
} : Ne;
|
|
401
|
+
return this._pairs.map(function(o) {
|
|
402
|
+
return n(o[0]) + "=" + n(o[1]);
|
|
385
403
|
}, "").join("&");
|
|
386
404
|
};
|
|
387
|
-
function
|
|
405
|
+
function Pn(e) {
|
|
388
406
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
389
407
|
}
|
|
390
|
-
function
|
|
408
|
+
function ht(e, t, n) {
|
|
391
409
|
if (!t)
|
|
392
410
|
return e;
|
|
393
|
-
const r = n && n.encode ||
|
|
394
|
-
|
|
395
|
-
|
|
411
|
+
const r = n && n.encode || Pn;
|
|
412
|
+
a.isFunction(n) && (n = {
|
|
413
|
+
serialize: n
|
|
414
|
+
});
|
|
415
|
+
const o = n && n.serialize;
|
|
416
|
+
let s;
|
|
417
|
+
if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new xe(t, n).toString(r), s) {
|
|
396
418
|
const i = e.indexOf("#");
|
|
397
|
-
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") +
|
|
419
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
398
420
|
}
|
|
399
421
|
return e;
|
|
400
422
|
}
|
|
401
|
-
class
|
|
423
|
+
class Fe {
|
|
402
424
|
constructor() {
|
|
403
425
|
this.handlers = [];
|
|
404
426
|
}
|
|
@@ -452,63 +474,66 @@ class be {
|
|
|
452
474
|
});
|
|
453
475
|
}
|
|
454
476
|
}
|
|
455
|
-
const
|
|
477
|
+
const mt = {
|
|
456
478
|
silentJSONParsing: !0,
|
|
457
479
|
forcedJSONParsing: !0,
|
|
458
480
|
clarifyTimeoutError: !1
|
|
459
|
-
},
|
|
481
|
+
}, Un = typeof URLSearchParams < "u" ? URLSearchParams : xe, Ln = typeof FormData < "u" ? FormData : null, Nn = typeof Blob < "u" ? Blob : null, Fn = {
|
|
460
482
|
isBrowser: !0,
|
|
461
483
|
classes: {
|
|
462
|
-
URLSearchParams:
|
|
463
|
-
FormData:
|
|
464
|
-
Blob:
|
|
484
|
+
URLSearchParams: Un,
|
|
485
|
+
FormData: Ln,
|
|
486
|
+
Blob: Nn
|
|
465
487
|
},
|
|
466
488
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
467
|
-
},
|
|
468
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
489
|
+
}, Ce = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, Dn = Ce && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
490
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", In = Ce && window.location.href || "http://localhost", Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
469
491
|
__proto__: null,
|
|
470
|
-
hasBrowserEnv:
|
|
471
|
-
hasStandardBrowserEnv:
|
|
472
|
-
hasStandardBrowserWebWorkerEnv:
|
|
492
|
+
hasBrowserEnv: Ce,
|
|
493
|
+
hasStandardBrowserEnv: Dn,
|
|
494
|
+
hasStandardBrowserWebWorkerEnv: vn,
|
|
495
|
+
navigator: we,
|
|
496
|
+
origin: In
|
|
473
497
|
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
474
|
-
...
|
|
475
|
-
...
|
|
498
|
+
...Bn,
|
|
499
|
+
...Fn
|
|
476
500
|
};
|
|
477
|
-
function
|
|
478
|
-
return
|
|
479
|
-
visitor: function(n, r,
|
|
480
|
-
return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) :
|
|
481
|
-
}
|
|
482
|
-
|
|
501
|
+
function jn(e, t) {
|
|
502
|
+
return ce(e, new T.classes.URLSearchParams(), {
|
|
503
|
+
visitor: function(n, r, o, s) {
|
|
504
|
+
return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
505
|
+
},
|
|
506
|
+
...t
|
|
507
|
+
});
|
|
483
508
|
}
|
|
484
|
-
function
|
|
509
|
+
function qn(e) {
|
|
485
510
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
486
511
|
}
|
|
487
|
-
function
|
|
512
|
+
function Mn(e) {
|
|
488
513
|
const t = {}, n = Object.keys(e);
|
|
489
514
|
let r;
|
|
490
|
-
const
|
|
491
|
-
let
|
|
492
|
-
for (r = 0; r <
|
|
493
|
-
|
|
515
|
+
const o = n.length;
|
|
516
|
+
let s;
|
|
517
|
+
for (r = 0; r < o; r++)
|
|
518
|
+
s = n[r], t[s] = e[s];
|
|
494
519
|
return t;
|
|
495
520
|
}
|
|
496
|
-
function
|
|
497
|
-
function t(n, r,
|
|
498
|
-
let i = n[
|
|
521
|
+
function yt(e) {
|
|
522
|
+
function t(n, r, o, s) {
|
|
523
|
+
let i = n[s++];
|
|
499
524
|
if (i === "__proto__") return !0;
|
|
500
|
-
const c = Number.isFinite(+i), f =
|
|
501
|
-
return i = !i && a.isArray(
|
|
525
|
+
const c = Number.isFinite(+i), f = s >= n.length;
|
|
526
|
+
return i = !i && a.isArray(o) ? o.length : i, f ? (a.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !c) : ((!o[i] || !a.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && a.isArray(o[i]) && (o[i] = Mn(o[i])), !c);
|
|
502
527
|
}
|
|
503
528
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
504
529
|
const n = {};
|
|
505
|
-
return a.forEachEntry(e, (r,
|
|
506
|
-
t(
|
|
530
|
+
return a.forEachEntry(e, (r, o) => {
|
|
531
|
+
t(qn(r), o, n, 0);
|
|
507
532
|
}), n;
|
|
508
533
|
}
|
|
509
534
|
return null;
|
|
510
535
|
}
|
|
511
|
-
function
|
|
536
|
+
function Hn(e, t, n) {
|
|
512
537
|
if (a.isString(e))
|
|
513
538
|
try {
|
|
514
539
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -518,43 +543,45 @@ function hn(e, t, n) {
|
|
|
518
543
|
}
|
|
519
544
|
return (n || JSON.stringify)(e);
|
|
520
545
|
}
|
|
521
|
-
const
|
|
522
|
-
transitional:
|
|
523
|
-
adapter: ["xhr", "http"],
|
|
546
|
+
const Q = {
|
|
547
|
+
transitional: mt,
|
|
548
|
+
adapter: ["xhr", "http", "fetch"],
|
|
524
549
|
transformRequest: [function(t, n) {
|
|
525
|
-
const r = n.getContentType() || "",
|
|
526
|
-
if (
|
|
527
|
-
return
|
|
528
|
-
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
|
|
550
|
+
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = a.isObject(t);
|
|
551
|
+
if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
552
|
+
return o ? JSON.stringify(yt(t)) : t;
|
|
553
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
529
554
|
return t;
|
|
530
555
|
if (a.isArrayBufferView(t))
|
|
531
556
|
return t.buffer;
|
|
532
557
|
if (a.isURLSearchParams(t))
|
|
533
558
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
534
559
|
let c;
|
|
535
|
-
if (
|
|
560
|
+
if (s) {
|
|
536
561
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
537
|
-
return
|
|
562
|
+
return jn(t, this.formSerializer).toString();
|
|
538
563
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
539
564
|
const f = this.env && this.env.FormData;
|
|
540
|
-
return
|
|
565
|
+
return ce(
|
|
541
566
|
c ? { "files[]": t } : t,
|
|
542
567
|
f && new f(),
|
|
543
568
|
this.formSerializer
|
|
544
569
|
);
|
|
545
570
|
}
|
|
546
571
|
}
|
|
547
|
-
return
|
|
572
|
+
return s || o ? (n.setContentType("application/json", !1), Hn(t)) : t;
|
|
548
573
|
}],
|
|
549
574
|
transformResponse: [function(t) {
|
|
550
|
-
const n = this.transitional ||
|
|
551
|
-
if (
|
|
552
|
-
|
|
575
|
+
const n = this.transitional || Q.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
576
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
577
|
+
return t;
|
|
578
|
+
if (t && a.isString(t) && (r && !this.responseType || o)) {
|
|
579
|
+
const i = !(n && n.silentJSONParsing) && o;
|
|
553
580
|
try {
|
|
554
581
|
return JSON.parse(t);
|
|
555
582
|
} catch (c) {
|
|
556
583
|
if (i)
|
|
557
|
-
throw c.name === "SyntaxError" ?
|
|
584
|
+
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
558
585
|
}
|
|
559
586
|
}
|
|
560
587
|
return t;
|
|
@@ -583,9 +610,9 @@ const H = {
|
|
|
583
610
|
}
|
|
584
611
|
};
|
|
585
612
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
586
|
-
|
|
613
|
+
Q.headers[e] = {};
|
|
587
614
|
});
|
|
588
|
-
const
|
|
615
|
+
const $n = a.toObjectSet([
|
|
589
616
|
"age",
|
|
590
617
|
"authorization",
|
|
591
618
|
"content-length",
|
|
@@ -603,122 +630,136 @@ const mn = a.toObjectSet([
|
|
|
603
630
|
"referer",
|
|
604
631
|
"retry-after",
|
|
605
632
|
"user-agent"
|
|
606
|
-
]),
|
|
633
|
+
]), zn = (e) => {
|
|
607
634
|
const t = {};
|
|
608
|
-
let n, r,
|
|
635
|
+
let n, r, o;
|
|
609
636
|
return e && e.split(`
|
|
610
637
|
`).forEach(function(i) {
|
|
611
|
-
|
|
638
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && $n[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
612
639
|
}), t;
|
|
613
|
-
},
|
|
614
|
-
function
|
|
640
|
+
}, De = Symbol("internals");
|
|
641
|
+
function q(e) {
|
|
615
642
|
return e && String(e).trim().toLowerCase();
|
|
616
643
|
}
|
|
617
|
-
function
|
|
618
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
644
|
+
function Y(e) {
|
|
645
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(Y) : String(e);
|
|
619
646
|
}
|
|
620
|
-
function
|
|
647
|
+
function Jn(e) {
|
|
621
648
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
622
649
|
let r;
|
|
623
650
|
for (; r = n.exec(e); )
|
|
624
651
|
t[r[1]] = r[2];
|
|
625
652
|
return t;
|
|
626
653
|
}
|
|
627
|
-
const
|
|
628
|
-
function
|
|
654
|
+
const Vn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
655
|
+
function de(e, t, n, r, o) {
|
|
629
656
|
if (a.isFunction(r))
|
|
630
657
|
return r.call(this, t, n);
|
|
631
|
-
if (
|
|
658
|
+
if (o && (t = n), !!a.isString(t)) {
|
|
632
659
|
if (a.isString(r))
|
|
633
660
|
return t.indexOf(r) !== -1;
|
|
634
661
|
if (a.isRegExp(r))
|
|
635
662
|
return r.test(t);
|
|
636
663
|
}
|
|
637
664
|
}
|
|
638
|
-
function
|
|
665
|
+
function Wn(e) {
|
|
639
666
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
640
667
|
}
|
|
641
|
-
function
|
|
668
|
+
function Kn(e, t) {
|
|
642
669
|
const n = a.toCamelCase(" " + t);
|
|
643
670
|
["get", "set", "has"].forEach((r) => {
|
|
644
671
|
Object.defineProperty(e, r + n, {
|
|
645
|
-
value: function(
|
|
646
|
-
return this[r].call(this, t,
|
|
672
|
+
value: function(o, s, i) {
|
|
673
|
+
return this[r].call(this, t, o, s, i);
|
|
647
674
|
},
|
|
648
675
|
configurable: !0
|
|
649
676
|
});
|
|
650
677
|
});
|
|
651
678
|
}
|
|
652
|
-
class
|
|
679
|
+
let _ = class {
|
|
653
680
|
constructor(t) {
|
|
654
681
|
t && this.set(t);
|
|
655
682
|
}
|
|
656
683
|
set(t, n, r) {
|
|
657
|
-
const
|
|
658
|
-
function
|
|
659
|
-
const
|
|
660
|
-
if (!
|
|
684
|
+
const o = this;
|
|
685
|
+
function s(c, f, l) {
|
|
686
|
+
const u = q(f);
|
|
687
|
+
if (!u)
|
|
661
688
|
throw new Error("header name must be a non-empty string");
|
|
662
|
-
const
|
|
663
|
-
(!
|
|
689
|
+
const d = a.findKey(o, u);
|
|
690
|
+
(!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || f] = Y(c));
|
|
664
691
|
}
|
|
665
|
-
const i = (c, f) => a.forEach(c, (
|
|
666
|
-
|
|
692
|
+
const i = (c, f) => a.forEach(c, (l, u) => s(l, u, f));
|
|
693
|
+
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
694
|
+
i(t, n);
|
|
695
|
+
else if (a.isString(t) && (t = t.trim()) && !Vn(t))
|
|
696
|
+
i(zn(t), n);
|
|
697
|
+
else if (a.isObject(t) && a.isIterable(t)) {
|
|
698
|
+
let c = {}, f, l;
|
|
699
|
+
for (const u of t) {
|
|
700
|
+
if (!a.isArray(u))
|
|
701
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
702
|
+
c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
|
|
703
|
+
}
|
|
704
|
+
i(c, n);
|
|
705
|
+
} else
|
|
706
|
+
t != null && s(n, t, r);
|
|
707
|
+
return this;
|
|
667
708
|
}
|
|
668
709
|
get(t, n) {
|
|
669
|
-
if (t =
|
|
710
|
+
if (t = q(t), t) {
|
|
670
711
|
const r = a.findKey(this, t);
|
|
671
712
|
if (r) {
|
|
672
|
-
const
|
|
713
|
+
const o = this[r];
|
|
673
714
|
if (!n)
|
|
674
|
-
return
|
|
715
|
+
return o;
|
|
675
716
|
if (n === !0)
|
|
676
|
-
return
|
|
717
|
+
return Jn(o);
|
|
677
718
|
if (a.isFunction(n))
|
|
678
|
-
return n.call(this,
|
|
719
|
+
return n.call(this, o, r);
|
|
679
720
|
if (a.isRegExp(n))
|
|
680
|
-
return n.exec(
|
|
721
|
+
return n.exec(o);
|
|
681
722
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
682
723
|
}
|
|
683
724
|
}
|
|
684
725
|
}
|
|
685
726
|
has(t, n) {
|
|
686
|
-
if (t =
|
|
727
|
+
if (t = q(t), t) {
|
|
687
728
|
const r = a.findKey(this, t);
|
|
688
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
729
|
+
return !!(r && this[r] !== void 0 && (!n || de(this, this[r], r, n)));
|
|
689
730
|
}
|
|
690
731
|
return !1;
|
|
691
732
|
}
|
|
692
733
|
delete(t, n) {
|
|
693
734
|
const r = this;
|
|
694
|
-
let
|
|
695
|
-
function
|
|
696
|
-
if (i =
|
|
735
|
+
let o = !1;
|
|
736
|
+
function s(i) {
|
|
737
|
+
if (i = q(i), i) {
|
|
697
738
|
const c = a.findKey(r, i);
|
|
698
|
-
c && (!n ||
|
|
739
|
+
c && (!n || de(r, r[c], c, n)) && (delete r[c], o = !0);
|
|
699
740
|
}
|
|
700
741
|
}
|
|
701
|
-
return a.isArray(t) ? t.forEach(
|
|
742
|
+
return a.isArray(t) ? t.forEach(s) : s(t), o;
|
|
702
743
|
}
|
|
703
744
|
clear(t) {
|
|
704
745
|
const n = Object.keys(this);
|
|
705
|
-
let r = n.length,
|
|
746
|
+
let r = n.length, o = !1;
|
|
706
747
|
for (; r--; ) {
|
|
707
|
-
const
|
|
708
|
-
(!t ||
|
|
748
|
+
const s = n[r];
|
|
749
|
+
(!t || de(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
709
750
|
}
|
|
710
|
-
return
|
|
751
|
+
return o;
|
|
711
752
|
}
|
|
712
753
|
normalize(t) {
|
|
713
754
|
const n = this, r = {};
|
|
714
|
-
return a.forEach(this, (
|
|
715
|
-
const i = a.findKey(r,
|
|
755
|
+
return a.forEach(this, (o, s) => {
|
|
756
|
+
const i = a.findKey(r, s);
|
|
716
757
|
if (i) {
|
|
717
|
-
n[i] =
|
|
758
|
+
n[i] = Y(o), delete n[s];
|
|
718
759
|
return;
|
|
719
760
|
}
|
|
720
|
-
const c = t ?
|
|
721
|
-
c !==
|
|
761
|
+
const c = t ? Wn(s) : String(s).trim();
|
|
762
|
+
c !== s && delete n[s], n[c] = Y(o), r[c] = !0;
|
|
722
763
|
}), this;
|
|
723
764
|
}
|
|
724
765
|
concat(...t) {
|
|
@@ -726,8 +767,8 @@ class O {
|
|
|
726
767
|
}
|
|
727
768
|
toJSON(t) {
|
|
728
769
|
const n = /* @__PURE__ */ Object.create(null);
|
|
729
|
-
return a.forEach(this, (r,
|
|
730
|
-
r != null && r !== !1 && (n[
|
|
770
|
+
return a.forEach(this, (r, o) => {
|
|
771
|
+
r != null && r !== !1 && (n[o] = t && a.isArray(r) ? r.join(", ") : r);
|
|
731
772
|
}), n;
|
|
732
773
|
}
|
|
733
774
|
[Symbol.iterator]() {
|
|
@@ -737,6 +778,9 @@ class O {
|
|
|
737
778
|
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
738
779
|
`);
|
|
739
780
|
}
|
|
781
|
+
getSetCookie() {
|
|
782
|
+
return this.get("set-cookie") || [];
|
|
783
|
+
}
|
|
740
784
|
get [Symbol.toStringTag]() {
|
|
741
785
|
return "AxiosHeaders";
|
|
742
786
|
}
|
|
@@ -745,21 +789,21 @@ class O {
|
|
|
745
789
|
}
|
|
746
790
|
static concat(t, ...n) {
|
|
747
791
|
const r = new this(t);
|
|
748
|
-
return n.forEach((
|
|
792
|
+
return n.forEach((o) => r.set(o)), r;
|
|
749
793
|
}
|
|
750
794
|
static accessor(t) {
|
|
751
|
-
const r = (this[
|
|
795
|
+
const r = (this[De] = this[De] = {
|
|
752
796
|
accessors: {}
|
|
753
|
-
}).accessors,
|
|
754
|
-
function
|
|
755
|
-
const c =
|
|
756
|
-
r[c] || (
|
|
797
|
+
}).accessors, o = this.prototype;
|
|
798
|
+
function s(i) {
|
|
799
|
+
const c = q(i);
|
|
800
|
+
r[c] || (Kn(o, i), r[c] = !0);
|
|
757
801
|
}
|
|
758
|
-
return a.isArray(t) ? t.forEach(
|
|
802
|
+
return a.isArray(t) ? t.forEach(s) : s(t), this;
|
|
759
803
|
}
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
a.reduceDescriptors(
|
|
804
|
+
};
|
|
805
|
+
_.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
806
|
+
a.reduceDescriptors(_.prototype, ({ value: e }, t) => {
|
|
763
807
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
764
808
|
return {
|
|
765
809
|
get: () => e,
|
|
@@ -768,39 +812,100 @@ a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
|
|
|
768
812
|
}
|
|
769
813
|
};
|
|
770
814
|
});
|
|
771
|
-
a.freezeMethods(
|
|
772
|
-
function
|
|
773
|
-
const n = this ||
|
|
774
|
-
let
|
|
815
|
+
a.freezeMethods(_);
|
|
816
|
+
function pe(e, t) {
|
|
817
|
+
const n = this || Q, r = t || n, o = _.from(r.headers);
|
|
818
|
+
let s = r.data;
|
|
775
819
|
return a.forEach(e, function(c) {
|
|
776
|
-
|
|
777
|
-
}),
|
|
820
|
+
s = c.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
821
|
+
}), o.normalize(), s;
|
|
778
822
|
}
|
|
779
|
-
function
|
|
823
|
+
function wt(e) {
|
|
780
824
|
return !!(e && e.__CANCEL__);
|
|
781
825
|
}
|
|
782
|
-
function
|
|
783
|
-
|
|
826
|
+
function j(e, t, n) {
|
|
827
|
+
y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
784
828
|
}
|
|
785
|
-
a.inherits(
|
|
829
|
+
a.inherits(j, y, {
|
|
786
830
|
__CANCEL__: !0
|
|
787
831
|
});
|
|
788
|
-
function
|
|
832
|
+
function gt(e, t, n) {
|
|
789
833
|
const r = n.config.validateStatus;
|
|
790
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
834
|
+
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
791
835
|
"Request failed with status code " + n.status,
|
|
792
|
-
[
|
|
836
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
793
837
|
n.config,
|
|
794
838
|
n.request,
|
|
795
839
|
n
|
|
796
840
|
));
|
|
797
841
|
}
|
|
798
|
-
|
|
842
|
+
function Qn(e) {
|
|
843
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
844
|
+
return t && t[1] || "";
|
|
845
|
+
}
|
|
846
|
+
function Xn(e, t) {
|
|
847
|
+
e = e || 10;
|
|
848
|
+
const n = new Array(e), r = new Array(e);
|
|
849
|
+
let o = 0, s = 0, i;
|
|
850
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
851
|
+
const l = Date.now(), u = r[s];
|
|
852
|
+
i || (i = l), n[o] = f, r[o] = l;
|
|
853
|
+
let d = s, w = 0;
|
|
854
|
+
for (; d !== o; )
|
|
855
|
+
w += n[d++], d = d % e;
|
|
856
|
+
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
|
|
857
|
+
return;
|
|
858
|
+
const g = u && l - u;
|
|
859
|
+
return g ? Math.round(w * 1e3 / g) : void 0;
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
function Gn(e, t) {
|
|
863
|
+
let n = 0, r = 1e3 / t, o, s;
|
|
864
|
+
const i = (l, u = Date.now()) => {
|
|
865
|
+
n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
|
|
866
|
+
};
|
|
867
|
+
return [(...l) => {
|
|
868
|
+
const u = Date.now(), d = u - n;
|
|
869
|
+
d >= r ? i(l, u) : (o = l, s || (s = setTimeout(() => {
|
|
870
|
+
s = null, i(o);
|
|
871
|
+
}, r - d)));
|
|
872
|
+
}, () => o && i(o)];
|
|
873
|
+
}
|
|
874
|
+
const re = (e, t, n = 3) => {
|
|
875
|
+
let r = 0;
|
|
876
|
+
const o = Xn(50, 250);
|
|
877
|
+
return Gn((s) => {
|
|
878
|
+
const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= c;
|
|
879
|
+
r = i;
|
|
880
|
+
const d = {
|
|
881
|
+
loaded: i,
|
|
882
|
+
total: c,
|
|
883
|
+
progress: c ? i / c : void 0,
|
|
884
|
+
bytes: f,
|
|
885
|
+
rate: l || void 0,
|
|
886
|
+
estimated: l && c && u ? (c - i) / l : void 0,
|
|
887
|
+
event: s,
|
|
888
|
+
lengthComputable: c != null,
|
|
889
|
+
[t ? "download" : "upload"]: !0
|
|
890
|
+
};
|
|
891
|
+
e(d);
|
|
892
|
+
}, n);
|
|
893
|
+
}, ve = (e, t) => {
|
|
894
|
+
const n = e != null;
|
|
895
|
+
return [(r) => t[0]({
|
|
896
|
+
lengthComputable: n,
|
|
897
|
+
total: e,
|
|
898
|
+
loaded: r
|
|
899
|
+
}), t[1]];
|
|
900
|
+
}, Ie = (e) => (...t) => a.asap(() => e(...t)), Zn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
901
|
+
new URL(T.origin),
|
|
902
|
+
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
903
|
+
) : () => !0, Yn = T.hasStandardBrowserEnv ? (
|
|
799
904
|
// Standard browser envs support document.cookie
|
|
800
905
|
{
|
|
801
|
-
write(e, t, n, r,
|
|
906
|
+
write(e, t, n, r, o, s) {
|
|
802
907
|
const i = [e + "=" + encodeURIComponent(t)];
|
|
803
|
-
a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(
|
|
908
|
+
a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
804
909
|
},
|
|
805
910
|
read(e) {
|
|
806
911
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -822,164 +927,373 @@ const On = T.hasStandardBrowserEnv ? (
|
|
|
822
927
|
}
|
|
823
928
|
}
|
|
824
929
|
);
|
|
825
|
-
function
|
|
930
|
+
function er(e) {
|
|
826
931
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
827
932
|
}
|
|
828
|
-
function
|
|
933
|
+
function tr(e, t) {
|
|
829
934
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
830
935
|
}
|
|
831
|
-
function
|
|
832
|
-
|
|
936
|
+
function bt(e, t, n) {
|
|
937
|
+
let r = !er(t);
|
|
938
|
+
return e && (r || n == !1) ? tr(e, t) : t;
|
|
833
939
|
}
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
loaded: o,
|
|
894
|
-
total: i,
|
|
895
|
-
progress: i ? o / i : void 0,
|
|
896
|
-
bytes: c,
|
|
897
|
-
rate: f || void 0,
|
|
898
|
-
estimated: f && i && d ? (i - o) / f : void 0,
|
|
899
|
-
event: s
|
|
900
|
-
};
|
|
901
|
-
l[t ? "download" : "upload"] = !0, e(l);
|
|
940
|
+
const Be = (e) => e instanceof _ ? { ...e } : e;
|
|
941
|
+
function F(e, t) {
|
|
942
|
+
t = t || {};
|
|
943
|
+
const n = {};
|
|
944
|
+
function r(l, u, d, w) {
|
|
945
|
+
return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: w }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
|
|
946
|
+
}
|
|
947
|
+
function o(l, u, d, w) {
|
|
948
|
+
if (a.isUndefined(u)) {
|
|
949
|
+
if (!a.isUndefined(l))
|
|
950
|
+
return r(void 0, l, d, w);
|
|
951
|
+
} else return r(l, u, d, w);
|
|
952
|
+
}
|
|
953
|
+
function s(l, u) {
|
|
954
|
+
if (!a.isUndefined(u))
|
|
955
|
+
return r(void 0, u);
|
|
956
|
+
}
|
|
957
|
+
function i(l, u) {
|
|
958
|
+
if (a.isUndefined(u)) {
|
|
959
|
+
if (!a.isUndefined(l))
|
|
960
|
+
return r(void 0, l);
|
|
961
|
+
} else return r(void 0, u);
|
|
962
|
+
}
|
|
963
|
+
function c(l, u, d) {
|
|
964
|
+
if (d in t)
|
|
965
|
+
return r(l, u);
|
|
966
|
+
if (d in e)
|
|
967
|
+
return r(void 0, l);
|
|
968
|
+
}
|
|
969
|
+
const f = {
|
|
970
|
+
url: s,
|
|
971
|
+
method: s,
|
|
972
|
+
data: s,
|
|
973
|
+
baseURL: i,
|
|
974
|
+
transformRequest: i,
|
|
975
|
+
transformResponse: i,
|
|
976
|
+
paramsSerializer: i,
|
|
977
|
+
timeout: i,
|
|
978
|
+
timeoutMessage: i,
|
|
979
|
+
withCredentials: i,
|
|
980
|
+
withXSRFToken: i,
|
|
981
|
+
adapter: i,
|
|
982
|
+
responseType: i,
|
|
983
|
+
xsrfCookieName: i,
|
|
984
|
+
xsrfHeaderName: i,
|
|
985
|
+
onUploadProgress: i,
|
|
986
|
+
onDownloadProgress: i,
|
|
987
|
+
decompress: i,
|
|
988
|
+
maxContentLength: i,
|
|
989
|
+
maxBodyLength: i,
|
|
990
|
+
beforeRedirect: i,
|
|
991
|
+
transport: i,
|
|
992
|
+
httpAgent: i,
|
|
993
|
+
httpsAgent: i,
|
|
994
|
+
cancelToken: i,
|
|
995
|
+
socketPath: i,
|
|
996
|
+
responseEncoding: i,
|
|
997
|
+
validateStatus: c,
|
|
998
|
+
headers: (l, u, d) => o(Be(l), Be(u), d, !0)
|
|
902
999
|
};
|
|
1000
|
+
return a.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
1001
|
+
const d = f[u] || o, w = d(e[u], t[u], u);
|
|
1002
|
+
a.isUndefined(w) && d !== c || (n[u] = w);
|
|
1003
|
+
}), n;
|
|
903
1004
|
}
|
|
904
|
-
const
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
if (
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
o.setContentType([h || "multipart/form-data", ...b].join("; "));
|
|
919
|
-
}
|
|
1005
|
+
const Et = (e) => {
|
|
1006
|
+
const t = F({}, e);
|
|
1007
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
|
|
1008
|
+
t.headers = i = _.from(i), t.url = ht(bt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
1009
|
+
"Authorization",
|
|
1010
|
+
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1011
|
+
);
|
|
1012
|
+
let f;
|
|
1013
|
+
if (a.isFormData(n)) {
|
|
1014
|
+
if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
|
|
1015
|
+
i.setContentType(void 0);
|
|
1016
|
+
else if ((f = i.getContentType()) !== !1) {
|
|
1017
|
+
const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1018
|
+
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
920
1019
|
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
1020
|
+
}
|
|
1021
|
+
if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Zn(t.url))) {
|
|
1022
|
+
const l = o && s && Yn.read(s);
|
|
1023
|
+
l && i.set(o, l);
|
|
1024
|
+
}
|
|
1025
|
+
return t;
|
|
1026
|
+
}, nr = typeof XMLHttpRequest < "u", rr = nr && function(e) {
|
|
1027
|
+
return new Promise(function(n, r) {
|
|
1028
|
+
const o = Et(e);
|
|
1029
|
+
let s = o.data;
|
|
1030
|
+
const i = _.from(o.headers).normalize();
|
|
1031
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = o, u, d, w, g, p;
|
|
1032
|
+
function m() {
|
|
1033
|
+
g && g(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
|
|
925
1034
|
}
|
|
926
|
-
|
|
927
|
-
|
|
1035
|
+
let h = new XMLHttpRequest();
|
|
1036
|
+
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
928
1037
|
function E() {
|
|
929
|
-
if (!
|
|
1038
|
+
if (!h)
|
|
930
1039
|
return;
|
|
931
|
-
const
|
|
932
|
-
"getAllResponseHeaders" in
|
|
933
|
-
),
|
|
934
|
-
data: !
|
|
935
|
-
status:
|
|
936
|
-
statusText:
|
|
937
|
-
headers:
|
|
1040
|
+
const R = _.from(
|
|
1041
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1042
|
+
), O = {
|
|
1043
|
+
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1044
|
+
status: h.status,
|
|
1045
|
+
statusText: h.statusText,
|
|
1046
|
+
headers: R,
|
|
938
1047
|
config: e,
|
|
939
|
-
request:
|
|
1048
|
+
request: h
|
|
940
1049
|
};
|
|
941
|
-
|
|
942
|
-
n(
|
|
943
|
-
}, function(
|
|
944
|
-
r(
|
|
945
|
-
},
|
|
1050
|
+
gt(function(U) {
|
|
1051
|
+
n(U), m();
|
|
1052
|
+
}, function(U) {
|
|
1053
|
+
r(U), m();
|
|
1054
|
+
}, O), h = null;
|
|
946
1055
|
}
|
|
947
|
-
|
|
948
|
-
!
|
|
949
|
-
},
|
|
950
|
-
|
|
951
|
-
},
|
|
952
|
-
r(new
|
|
953
|
-
},
|
|
954
|
-
let
|
|
955
|
-
const
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1056
|
+
"onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
|
|
1057
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
1058
|
+
}, h.onabort = function() {
|
|
1059
|
+
h && (r(new y("Request aborted", y.ECONNABORTED, e, h)), h = null);
|
|
1060
|
+
}, h.onerror = function() {
|
|
1061
|
+
r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
|
|
1062
|
+
}, h.ontimeout = function() {
|
|
1063
|
+
let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1064
|
+
const O = o.transitional || mt;
|
|
1065
|
+
o.timeoutErrorMessage && (k = o.timeoutErrorMessage), r(new y(
|
|
1066
|
+
k,
|
|
1067
|
+
O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
959
1068
|
e,
|
|
960
|
-
|
|
961
|
-
)),
|
|
962
|
-
},
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
}, e.cancelToken && e.cancelToken.subscribe(f), e.signal && (e.signal.aborted ? f() : e.signal.addEventListener("abort", f)));
|
|
971
|
-
const p = _n(y);
|
|
972
|
-
if (p && T.protocols.indexOf(p) === -1) {
|
|
973
|
-
r(new m("Unsupported protocol " + p + ":", m.ERR_BAD_REQUEST, e));
|
|
1069
|
+
h
|
|
1070
|
+
)), h = null;
|
|
1071
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(k, O) {
|
|
1072
|
+
h.setRequestHeader(O, k);
|
|
1073
|
+
}), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), c && c !== "json" && (h.responseType = o.responseType), l && ([w, p] = re(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = re(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (u = (R) => {
|
|
1074
|
+
h && (r(!R || R.type ? new j(null, e, h) : R), h.abort(), h = null);
|
|
1075
|
+
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
1076
|
+
const S = Qn(o.url);
|
|
1077
|
+
if (S && T.protocols.indexOf(S) === -1) {
|
|
1078
|
+
r(new y("Unsupported protocol " + S + ":", y.ERR_BAD_REQUEST, e));
|
|
974
1079
|
return;
|
|
975
1080
|
}
|
|
976
|
-
|
|
1081
|
+
h.send(s || null);
|
|
1082
|
+
});
|
|
1083
|
+
}, or = (e, t) => {
|
|
1084
|
+
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1085
|
+
if (t || n) {
|
|
1086
|
+
let r = new AbortController(), o;
|
|
1087
|
+
const s = function(l) {
|
|
1088
|
+
if (!o) {
|
|
1089
|
+
o = !0, c();
|
|
1090
|
+
const u = l instanceof Error ? l : this.reason;
|
|
1091
|
+
r.abort(u instanceof y ? u : new j(u instanceof Error ? u.message : u));
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
let i = t && setTimeout(() => {
|
|
1095
|
+
i = null, s(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
|
|
1096
|
+
}, t);
|
|
1097
|
+
const c = () => {
|
|
1098
|
+
e && (i && clearTimeout(i), i = null, e.forEach((l) => {
|
|
1099
|
+
l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
|
|
1100
|
+
}), e = null);
|
|
1101
|
+
};
|
|
1102
|
+
e.forEach((l) => l.addEventListener("abort", s));
|
|
1103
|
+
const { signal: f } = r;
|
|
1104
|
+
return f.unsubscribe = () => a.asap(c), f;
|
|
1105
|
+
}
|
|
1106
|
+
}, sr = function* (e, t) {
|
|
1107
|
+
let n = e.byteLength;
|
|
1108
|
+
if (n < t) {
|
|
1109
|
+
yield e;
|
|
1110
|
+
return;
|
|
1111
|
+
}
|
|
1112
|
+
let r = 0, o;
|
|
1113
|
+
for (; r < n; )
|
|
1114
|
+
o = r + t, yield e.slice(r, o), r = o;
|
|
1115
|
+
}, ir = async function* (e, t) {
|
|
1116
|
+
for await (const n of ar(e))
|
|
1117
|
+
yield* sr(n, t);
|
|
1118
|
+
}, ar = async function* (e) {
|
|
1119
|
+
if (e[Symbol.asyncIterator]) {
|
|
1120
|
+
yield* e;
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
const t = e.getReader();
|
|
1124
|
+
try {
|
|
1125
|
+
for (; ; ) {
|
|
1126
|
+
const { done: n, value: r } = await t.read();
|
|
1127
|
+
if (n)
|
|
1128
|
+
break;
|
|
1129
|
+
yield r;
|
|
1130
|
+
}
|
|
1131
|
+
} finally {
|
|
1132
|
+
await t.cancel();
|
|
1133
|
+
}
|
|
1134
|
+
}, je = (e, t, n, r) => {
|
|
1135
|
+
const o = ir(e, t);
|
|
1136
|
+
let s = 0, i, c = (f) => {
|
|
1137
|
+
i || (i = !0, r && r(f));
|
|
1138
|
+
};
|
|
1139
|
+
return new ReadableStream({
|
|
1140
|
+
async pull(f) {
|
|
1141
|
+
try {
|
|
1142
|
+
const { done: l, value: u } = await o.next();
|
|
1143
|
+
if (l) {
|
|
1144
|
+
c(), f.close();
|
|
1145
|
+
return;
|
|
1146
|
+
}
|
|
1147
|
+
let d = u.byteLength;
|
|
1148
|
+
if (n) {
|
|
1149
|
+
let w = s += d;
|
|
1150
|
+
n(w);
|
|
1151
|
+
}
|
|
1152
|
+
f.enqueue(new Uint8Array(u));
|
|
1153
|
+
} catch (l) {
|
|
1154
|
+
throw c(l), l;
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
cancel(f) {
|
|
1158
|
+
return c(f), o.return();
|
|
1159
|
+
}
|
|
1160
|
+
}, {
|
|
1161
|
+
highWaterMark: 2
|
|
977
1162
|
});
|
|
978
|
-
},
|
|
979
|
-
|
|
980
|
-
|
|
1163
|
+
}, ue = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", St = ue && typeof ReadableStream == "function", cr = ue && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Rt = (e, ...t) => {
|
|
1164
|
+
try {
|
|
1165
|
+
return !!e(...t);
|
|
1166
|
+
} catch {
|
|
1167
|
+
return !1;
|
|
1168
|
+
}
|
|
1169
|
+
}, ur = St && Rt(() => {
|
|
1170
|
+
let e = !1;
|
|
1171
|
+
const t = new Request(T.origin, {
|
|
1172
|
+
body: new ReadableStream(),
|
|
1173
|
+
method: "POST",
|
|
1174
|
+
get duplex() {
|
|
1175
|
+
return e = !0, "half";
|
|
1176
|
+
}
|
|
1177
|
+
}).headers.has("Content-Type");
|
|
1178
|
+
return e && !t;
|
|
1179
|
+
}), qe = 64 * 1024, ge = St && Rt(() => a.isReadableStream(new Response("").body)), oe = {
|
|
1180
|
+
stream: ge && ((e) => e.body)
|
|
981
1181
|
};
|
|
982
|
-
|
|
1182
|
+
ue && ((e) => {
|
|
1183
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1184
|
+
!oe[t] && (oe[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1185
|
+
throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r);
|
|
1186
|
+
});
|
|
1187
|
+
});
|
|
1188
|
+
})(new Response());
|
|
1189
|
+
const lr = async (e) => {
|
|
1190
|
+
if (e == null)
|
|
1191
|
+
return 0;
|
|
1192
|
+
if (a.isBlob(e))
|
|
1193
|
+
return e.size;
|
|
1194
|
+
if (a.isSpecCompliantForm(e))
|
|
1195
|
+
return (await new Request(T.origin, {
|
|
1196
|
+
method: "POST",
|
|
1197
|
+
body: e
|
|
1198
|
+
}).arrayBuffer()).byteLength;
|
|
1199
|
+
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1200
|
+
return e.byteLength;
|
|
1201
|
+
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1202
|
+
return (await cr(e)).byteLength;
|
|
1203
|
+
}, fr = async (e, t) => {
|
|
1204
|
+
const n = a.toFiniteNumber(e.getContentLength());
|
|
1205
|
+
return n ?? lr(t);
|
|
1206
|
+
}, dr = ue && (async (e) => {
|
|
1207
|
+
let {
|
|
1208
|
+
url: t,
|
|
1209
|
+
method: n,
|
|
1210
|
+
data: r,
|
|
1211
|
+
signal: o,
|
|
1212
|
+
cancelToken: s,
|
|
1213
|
+
timeout: i,
|
|
1214
|
+
onDownloadProgress: c,
|
|
1215
|
+
onUploadProgress: f,
|
|
1216
|
+
responseType: l,
|
|
1217
|
+
headers: u,
|
|
1218
|
+
withCredentials: d = "same-origin",
|
|
1219
|
+
fetchOptions: w
|
|
1220
|
+
} = Et(e);
|
|
1221
|
+
l = l ? (l + "").toLowerCase() : "text";
|
|
1222
|
+
let g = or([o, s && s.toAbortSignal()], i), p;
|
|
1223
|
+
const m = g && g.unsubscribe && (() => {
|
|
1224
|
+
g.unsubscribe();
|
|
1225
|
+
});
|
|
1226
|
+
let h;
|
|
1227
|
+
try {
|
|
1228
|
+
if (f && ur && n !== "get" && n !== "head" && (h = await fr(u, r)) !== 0) {
|
|
1229
|
+
let O = new Request(t, {
|
|
1230
|
+
method: "POST",
|
|
1231
|
+
body: r,
|
|
1232
|
+
duplex: "half"
|
|
1233
|
+
}), P;
|
|
1234
|
+
if (a.isFormData(r) && (P = O.headers.get("content-type")) && u.setContentType(P), O.body) {
|
|
1235
|
+
const [U, X] = ve(
|
|
1236
|
+
h,
|
|
1237
|
+
re(Ie(f))
|
|
1238
|
+
);
|
|
1239
|
+
r = je(O.body, qe, U, X);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
a.isString(d) || (d = d ? "include" : "omit");
|
|
1243
|
+
const E = "credentials" in Request.prototype;
|
|
1244
|
+
p = new Request(t, {
|
|
1245
|
+
...w,
|
|
1246
|
+
signal: g,
|
|
1247
|
+
method: n.toUpperCase(),
|
|
1248
|
+
headers: u.normalize().toJSON(),
|
|
1249
|
+
body: r,
|
|
1250
|
+
duplex: "half",
|
|
1251
|
+
credentials: E ? d : void 0
|
|
1252
|
+
});
|
|
1253
|
+
let S = await fetch(p, w);
|
|
1254
|
+
const R = ge && (l === "stream" || l === "response");
|
|
1255
|
+
if (ge && (c || R && m)) {
|
|
1256
|
+
const O = {};
|
|
1257
|
+
["status", "statusText", "headers"].forEach((Pe) => {
|
|
1258
|
+
O[Pe] = S[Pe];
|
|
1259
|
+
});
|
|
1260
|
+
const P = a.toFiniteNumber(S.headers.get("content-length")), [U, X] = c && ve(
|
|
1261
|
+
P,
|
|
1262
|
+
re(Ie(c), !0)
|
|
1263
|
+
) || [];
|
|
1264
|
+
S = new Response(
|
|
1265
|
+
je(S.body, qe, U, () => {
|
|
1266
|
+
X && X(), m && m();
|
|
1267
|
+
}),
|
|
1268
|
+
O
|
|
1269
|
+
);
|
|
1270
|
+
}
|
|
1271
|
+
l = l || "text";
|
|
1272
|
+
let k = await oe[a.findKey(oe, l) || "text"](S, e);
|
|
1273
|
+
return !R && m && m(), await new Promise((O, P) => {
|
|
1274
|
+
gt(O, P, {
|
|
1275
|
+
data: k,
|
|
1276
|
+
headers: _.from(S.headers),
|
|
1277
|
+
status: S.status,
|
|
1278
|
+
statusText: S.statusText,
|
|
1279
|
+
config: e,
|
|
1280
|
+
request: p
|
|
1281
|
+
});
|
|
1282
|
+
});
|
|
1283
|
+
} catch (E) {
|
|
1284
|
+
throw m && m(), E && E.name === "TypeError" && /Load failed|fetch/i.test(E.message) ? Object.assign(
|
|
1285
|
+
new y("Network Error", y.ERR_NETWORK, e, p),
|
|
1286
|
+
{
|
|
1287
|
+
cause: E.cause || E
|
|
1288
|
+
}
|
|
1289
|
+
) : y.from(E, E && E.code, e, p);
|
|
1290
|
+
}
|
|
1291
|
+
}), be = {
|
|
1292
|
+
http: xn,
|
|
1293
|
+
xhr: rr,
|
|
1294
|
+
fetch: dr
|
|
1295
|
+
};
|
|
1296
|
+
a.forEach(be, (e, t) => {
|
|
983
1297
|
if (e) {
|
|
984
1298
|
try {
|
|
985
1299
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -988,170 +1302,108 @@ a.forEach(ne, (e, t) => {
|
|
|
988
1302
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
989
1303
|
}
|
|
990
1304
|
});
|
|
991
|
-
const
|
|
1305
|
+
const Me = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !1, Tt = {
|
|
992
1306
|
getAdapter: (e) => {
|
|
993
1307
|
e = a.isArray(e) ? e : [e];
|
|
994
1308
|
const { length: t } = e;
|
|
995
1309
|
let n, r;
|
|
996
|
-
const
|
|
997
|
-
for (let
|
|
998
|
-
n = e[
|
|
1310
|
+
const o = {};
|
|
1311
|
+
for (let s = 0; s < t; s++) {
|
|
1312
|
+
n = e[s];
|
|
999
1313
|
let i;
|
|
1000
|
-
if (r = n, !
|
|
1001
|
-
throw new
|
|
1314
|
+
if (r = n, !pr(n) && (r = be[(i = String(n)).toLowerCase()], r === void 0))
|
|
1315
|
+
throw new y(`Unknown adapter '${i}'`);
|
|
1002
1316
|
if (r)
|
|
1003
1317
|
break;
|
|
1004
|
-
|
|
1318
|
+
o[i || "#" + s] = r;
|
|
1005
1319
|
}
|
|
1006
1320
|
if (!r) {
|
|
1007
|
-
const
|
|
1321
|
+
const s = Object.entries(o).map(
|
|
1008
1322
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1009
1323
|
);
|
|
1010
|
-
let i = t ?
|
|
1011
|
-
` +
|
|
1012
|
-
`) : " " +
|
|
1013
|
-
throw new
|
|
1324
|
+
let i = t ? s.length > 1 ? `since :
|
|
1325
|
+
` + s.map(Me).join(`
|
|
1326
|
+
`) : " " + Me(s[0]) : "as no adapter specified";
|
|
1327
|
+
throw new y(
|
|
1014
1328
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1015
1329
|
"ERR_NOT_SUPPORT"
|
|
1016
1330
|
);
|
|
1017
1331
|
}
|
|
1018
1332
|
return r;
|
|
1019
1333
|
},
|
|
1020
|
-
adapters:
|
|
1334
|
+
adapters: be
|
|
1021
1335
|
};
|
|
1022
|
-
function
|
|
1336
|
+
function he(e) {
|
|
1023
1337
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1024
|
-
throw new
|
|
1338
|
+
throw new j(null, e);
|
|
1025
1339
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return
|
|
1340
|
+
function He(e) {
|
|
1341
|
+
return he(e), e.headers = _.from(e.headers), e.data = pe.call(
|
|
1028
1342
|
e,
|
|
1029
1343
|
e.transformRequest
|
|
1030
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1031
|
-
return
|
|
1344
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Tt.getAdapter(e.adapter || Q.adapter)(e).then(function(r) {
|
|
1345
|
+
return he(e), r.data = pe.call(
|
|
1032
1346
|
e,
|
|
1033
1347
|
e.transformResponse,
|
|
1034
1348
|
r
|
|
1035
|
-
), r.headers =
|
|
1349
|
+
), r.headers = _.from(r.headers), r;
|
|
1036
1350
|
}, function(r) {
|
|
1037
|
-
return
|
|
1351
|
+
return wt(r) || (he(e), r && r.response && (r.response.data = pe.call(
|
|
1038
1352
|
e,
|
|
1039
1353
|
e.transformResponse,
|
|
1040
1354
|
r.response
|
|
1041
|
-
), r.response.headers =
|
|
1355
|
+
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1042
1356
|
});
|
|
1043
1357
|
}
|
|
1044
|
-
const
|
|
1045
|
-
function N(e, t) {
|
|
1046
|
-
t = t || {};
|
|
1047
|
-
const n = {};
|
|
1048
|
-
function r(d, l, u) {
|
|
1049
|
-
return a.isPlainObject(d) && a.isPlainObject(l) ? a.merge.call({ caseless: u }, d, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
1050
|
-
}
|
|
1051
|
-
function s(d, l, u) {
|
|
1052
|
-
if (a.isUndefined(l)) {
|
|
1053
|
-
if (!a.isUndefined(d))
|
|
1054
|
-
return r(void 0, d, u);
|
|
1055
|
-
} else return r(d, l, u);
|
|
1056
|
-
}
|
|
1057
|
-
function o(d, l) {
|
|
1058
|
-
if (!a.isUndefined(l))
|
|
1059
|
-
return r(void 0, l);
|
|
1060
|
-
}
|
|
1061
|
-
function i(d, l) {
|
|
1062
|
-
if (a.isUndefined(l)) {
|
|
1063
|
-
if (!a.isUndefined(d))
|
|
1064
|
-
return r(void 0, d);
|
|
1065
|
-
} else return r(void 0, l);
|
|
1066
|
-
}
|
|
1067
|
-
function c(d, l, u) {
|
|
1068
|
-
if (u in t)
|
|
1069
|
-
return r(d, l);
|
|
1070
|
-
if (u in e)
|
|
1071
|
-
return r(void 0, d);
|
|
1072
|
-
}
|
|
1073
|
-
const f = {
|
|
1074
|
-
url: o,
|
|
1075
|
-
method: o,
|
|
1076
|
-
data: o,
|
|
1077
|
-
baseURL: i,
|
|
1078
|
-
transformRequest: i,
|
|
1079
|
-
transformResponse: i,
|
|
1080
|
-
paramsSerializer: i,
|
|
1081
|
-
timeout: i,
|
|
1082
|
-
timeoutMessage: i,
|
|
1083
|
-
withCredentials: i,
|
|
1084
|
-
withXSRFToken: i,
|
|
1085
|
-
adapter: i,
|
|
1086
|
-
responseType: i,
|
|
1087
|
-
xsrfCookieName: i,
|
|
1088
|
-
xsrfHeaderName: i,
|
|
1089
|
-
onUploadProgress: i,
|
|
1090
|
-
onDownloadProgress: i,
|
|
1091
|
-
decompress: i,
|
|
1092
|
-
maxContentLength: i,
|
|
1093
|
-
maxBodyLength: i,
|
|
1094
|
-
beforeRedirect: i,
|
|
1095
|
-
transport: i,
|
|
1096
|
-
httpAgent: i,
|
|
1097
|
-
httpsAgent: i,
|
|
1098
|
-
cancelToken: i,
|
|
1099
|
-
socketPath: i,
|
|
1100
|
-
responseEncoding: i,
|
|
1101
|
-
validateStatus: c,
|
|
1102
|
-
headers: (d, l) => s(Re(d), Re(l), !0)
|
|
1103
|
-
};
|
|
1104
|
-
return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
1105
|
-
const u = f[l] || s, y = u(e[l], t[l], l);
|
|
1106
|
-
a.isUndefined(y) && u !== c || (n[l] = y);
|
|
1107
|
-
}), n;
|
|
1108
|
-
}
|
|
1109
|
-
const nt = "1.6.7", fe = {};
|
|
1358
|
+
const Ot = "1.11.0", le = {};
|
|
1110
1359
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1111
|
-
|
|
1360
|
+
le[e] = function(r) {
|
|
1112
1361
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1113
1362
|
};
|
|
1114
1363
|
});
|
|
1115
|
-
const
|
|
1116
|
-
|
|
1117
|
-
function s
|
|
1118
|
-
return "[Axios v" +
|
|
1364
|
+
const $e = {};
|
|
1365
|
+
le.transitional = function(t, n, r) {
|
|
1366
|
+
function o(s, i) {
|
|
1367
|
+
return "[Axios v" + Ot + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
|
|
1119
1368
|
}
|
|
1120
|
-
return (
|
|
1369
|
+
return (s, i, c) => {
|
|
1121
1370
|
if (t === !1)
|
|
1122
|
-
throw new
|
|
1123
|
-
|
|
1124
|
-
|
|
1371
|
+
throw new y(
|
|
1372
|
+
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1373
|
+
y.ERR_DEPRECATED
|
|
1125
1374
|
);
|
|
1126
|
-
return n &&
|
|
1375
|
+
return n && !$e[i] && ($e[i] = !0), t ? t(s, i, c) : !0;
|
|
1127
1376
|
};
|
|
1128
1377
|
};
|
|
1129
|
-
function
|
|
1378
|
+
le.spelling = function(t) {
|
|
1379
|
+
return (n, r) => !0;
|
|
1380
|
+
};
|
|
1381
|
+
function hr(e, t, n) {
|
|
1130
1382
|
if (typeof e != "object")
|
|
1131
|
-
throw new
|
|
1383
|
+
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1132
1384
|
const r = Object.keys(e);
|
|
1133
|
-
let
|
|
1134
|
-
for (;
|
|
1135
|
-
const
|
|
1385
|
+
let o = r.length;
|
|
1386
|
+
for (; o-- > 0; ) {
|
|
1387
|
+
const s = r[o], i = t[s];
|
|
1136
1388
|
if (i) {
|
|
1137
|
-
const c = e[
|
|
1389
|
+
const c = e[s], f = c === void 0 || i(c, s, e);
|
|
1138
1390
|
if (f !== !0)
|
|
1139
|
-
throw new
|
|
1391
|
+
throw new y("option " + s + " must be " + f, y.ERR_BAD_OPTION_VALUE);
|
|
1140
1392
|
continue;
|
|
1141
1393
|
}
|
|
1142
1394
|
if (n !== !0)
|
|
1143
|
-
throw new
|
|
1395
|
+
throw new y("Unknown option " + s, y.ERR_BAD_OPTION);
|
|
1144
1396
|
}
|
|
1145
1397
|
}
|
|
1146
|
-
const
|
|
1147
|
-
assertOptions:
|
|
1148
|
-
validators:
|
|
1149
|
-
},
|
|
1150
|
-
class
|
|
1398
|
+
const ee = {
|
|
1399
|
+
assertOptions: hr,
|
|
1400
|
+
validators: le
|
|
1401
|
+
}, C = ee.validators;
|
|
1402
|
+
let N = class {
|
|
1151
1403
|
constructor(t) {
|
|
1152
|
-
this.defaults = t, this.interceptors = {
|
|
1153
|
-
request: new
|
|
1154
|
-
response: new
|
|
1404
|
+
this.defaults = t || {}, this.interceptors = {
|
|
1405
|
+
request: new Fe(),
|
|
1406
|
+
response: new Fe()
|
|
1155
1407
|
};
|
|
1156
1408
|
}
|
|
1157
1409
|
/**
|
|
@@ -1167,83 +1419,89 @@ class x {
|
|
|
1167
1419
|
return await this._request(t, n);
|
|
1168
1420
|
} catch (r) {
|
|
1169
1421
|
if (r instanceof Error) {
|
|
1170
|
-
let
|
|
1171
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1174
|
-
|
|
1422
|
+
let o = {};
|
|
1423
|
+
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
|
|
1424
|
+
const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
1425
|
+
try {
|
|
1426
|
+
r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1427
|
+
` + s) : r.stack = s;
|
|
1428
|
+
} catch {
|
|
1429
|
+
}
|
|
1175
1430
|
}
|
|
1176
1431
|
throw r;
|
|
1177
1432
|
}
|
|
1178
1433
|
}
|
|
1179
1434
|
_request(t, n) {
|
|
1180
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1181
|
-
const { transitional: r, paramsSerializer:
|
|
1182
|
-
r !== void 0 &&
|
|
1183
|
-
silentJSONParsing:
|
|
1184
|
-
forcedJSONParsing:
|
|
1185
|
-
clarifyTimeoutError:
|
|
1186
|
-
}, !1),
|
|
1187
|
-
serialize:
|
|
1188
|
-
} :
|
|
1189
|
-
encode:
|
|
1190
|
-
serialize:
|
|
1191
|
-
}, !0)), n.
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1435
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = F(this.defaults, n);
|
|
1436
|
+
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
1437
|
+
r !== void 0 && ee.assertOptions(r, {
|
|
1438
|
+
silentJSONParsing: C.transitional(C.boolean),
|
|
1439
|
+
forcedJSONParsing: C.transitional(C.boolean),
|
|
1440
|
+
clarifyTimeoutError: C.transitional(C.boolean)
|
|
1441
|
+
}, !1), o != null && (a.isFunction(o) ? n.paramsSerializer = {
|
|
1442
|
+
serialize: o
|
|
1443
|
+
} : ee.assertOptions(o, {
|
|
1444
|
+
encode: C.function,
|
|
1445
|
+
serialize: C.function
|
|
1446
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ee.assertOptions(n, {
|
|
1447
|
+
baseUrl: C.spelling("baseURL"),
|
|
1448
|
+
withXsrfToken: C.spelling("withXSRFToken")
|
|
1449
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1450
|
+
let i = s && a.merge(
|
|
1451
|
+
s.common,
|
|
1452
|
+
s[n.method]
|
|
1195
1453
|
);
|
|
1196
|
-
|
|
1454
|
+
s && a.forEach(
|
|
1197
1455
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1198
1456
|
(p) => {
|
|
1199
|
-
delete
|
|
1457
|
+
delete s[p];
|
|
1200
1458
|
}
|
|
1201
|
-
), n.headers =
|
|
1459
|
+
), n.headers = _.concat(i, s);
|
|
1202
1460
|
const c = [];
|
|
1203
1461
|
let f = !0;
|
|
1204
|
-
this.interceptors.request.forEach(function(
|
|
1205
|
-
typeof
|
|
1462
|
+
this.interceptors.request.forEach(function(m) {
|
|
1463
|
+
typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
|
|
1206
1464
|
});
|
|
1207
|
-
const
|
|
1208
|
-
this.interceptors.response.forEach(function(
|
|
1209
|
-
|
|
1465
|
+
const l = [];
|
|
1466
|
+
this.interceptors.response.forEach(function(m) {
|
|
1467
|
+
l.push(m.fulfilled, m.rejected);
|
|
1210
1468
|
});
|
|
1211
|
-
let
|
|
1469
|
+
let u, d = 0, w;
|
|
1212
1470
|
if (!f) {
|
|
1213
|
-
const p = [
|
|
1214
|
-
for (p.unshift
|
|
1215
|
-
|
|
1216
|
-
return
|
|
1471
|
+
const p = [He.bind(this), void 0];
|
|
1472
|
+
for (p.unshift(...c), p.push(...l), w = p.length, u = Promise.resolve(n); d < w; )
|
|
1473
|
+
u = u.then(p[d++], p[d++]);
|
|
1474
|
+
return u;
|
|
1217
1475
|
}
|
|
1218
|
-
|
|
1219
|
-
let
|
|
1220
|
-
for (
|
|
1221
|
-
const p = c[
|
|
1476
|
+
w = c.length;
|
|
1477
|
+
let g = n;
|
|
1478
|
+
for (d = 0; d < w; ) {
|
|
1479
|
+
const p = c[d++], m = c[d++];
|
|
1222
1480
|
try {
|
|
1223
|
-
|
|
1224
|
-
} catch (
|
|
1225
|
-
|
|
1481
|
+
g = p(g);
|
|
1482
|
+
} catch (h) {
|
|
1483
|
+
m.call(this, h);
|
|
1226
1484
|
break;
|
|
1227
1485
|
}
|
|
1228
1486
|
}
|
|
1229
1487
|
try {
|
|
1230
|
-
|
|
1488
|
+
u = He.call(this, g);
|
|
1231
1489
|
} catch (p) {
|
|
1232
1490
|
return Promise.reject(p);
|
|
1233
1491
|
}
|
|
1234
|
-
for (
|
|
1235
|
-
|
|
1236
|
-
return
|
|
1492
|
+
for (d = 0, w = l.length; d < w; )
|
|
1493
|
+
u = u.then(l[d++], l[d++]);
|
|
1494
|
+
return u;
|
|
1237
1495
|
}
|
|
1238
1496
|
getUri(t) {
|
|
1239
|
-
t =
|
|
1240
|
-
const n =
|
|
1241
|
-
return
|
|
1497
|
+
t = F(this.defaults, t);
|
|
1498
|
+
const n = bt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1499
|
+
return ht(n, t.params, t.paramsSerializer);
|
|
1242
1500
|
}
|
|
1243
|
-
}
|
|
1501
|
+
};
|
|
1244
1502
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1245
|
-
|
|
1246
|
-
return this.request(
|
|
1503
|
+
N.prototype[t] = function(n, r) {
|
|
1504
|
+
return this.request(F(r || {}, {
|
|
1247
1505
|
method: t,
|
|
1248
1506
|
url: n,
|
|
1249
1507
|
data: (r || {}).data
|
|
@@ -1252,44 +1510,44 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1252
1510
|
});
|
|
1253
1511
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1254
1512
|
function n(r) {
|
|
1255
|
-
return function(
|
|
1256
|
-
return this.request(
|
|
1513
|
+
return function(s, i, c) {
|
|
1514
|
+
return this.request(F(c || {}, {
|
|
1257
1515
|
method: t,
|
|
1258
1516
|
headers: r ? {
|
|
1259
1517
|
"Content-Type": "multipart/form-data"
|
|
1260
1518
|
} : {},
|
|
1261
|
-
url:
|
|
1519
|
+
url: s,
|
|
1262
1520
|
data: i
|
|
1263
1521
|
}));
|
|
1264
1522
|
};
|
|
1265
1523
|
}
|
|
1266
|
-
|
|
1524
|
+
N.prototype[t] = n(), N.prototype[t + "Form"] = n(!0);
|
|
1267
1525
|
});
|
|
1268
|
-
class
|
|
1526
|
+
let mr = class At {
|
|
1269
1527
|
constructor(t) {
|
|
1270
1528
|
if (typeof t != "function")
|
|
1271
1529
|
throw new TypeError("executor must be a function.");
|
|
1272
1530
|
let n;
|
|
1273
|
-
this.promise = new Promise(function(
|
|
1274
|
-
n =
|
|
1531
|
+
this.promise = new Promise(function(s) {
|
|
1532
|
+
n = s;
|
|
1275
1533
|
});
|
|
1276
1534
|
const r = this;
|
|
1277
|
-
this.promise.then((
|
|
1535
|
+
this.promise.then((o) => {
|
|
1278
1536
|
if (!r._listeners) return;
|
|
1279
|
-
let
|
|
1280
|
-
for (;
|
|
1281
|
-
r._listeners[
|
|
1537
|
+
let s = r._listeners.length;
|
|
1538
|
+
for (; s-- > 0; )
|
|
1539
|
+
r._listeners[s](o);
|
|
1282
1540
|
r._listeners = null;
|
|
1283
|
-
}), this.promise.then = (
|
|
1284
|
-
let
|
|
1541
|
+
}), this.promise.then = (o) => {
|
|
1542
|
+
let s;
|
|
1285
1543
|
const i = new Promise((c) => {
|
|
1286
|
-
r.subscribe(c),
|
|
1287
|
-
}).then(
|
|
1544
|
+
r.subscribe(c), s = c;
|
|
1545
|
+
}).then(o);
|
|
1288
1546
|
return i.cancel = function() {
|
|
1289
|
-
r.unsubscribe(
|
|
1547
|
+
r.unsubscribe(s);
|
|
1290
1548
|
}, i;
|
|
1291
|
-
}, t(function(
|
|
1292
|
-
r.reason || (r.reason = new
|
|
1549
|
+
}, t(function(s, i, c) {
|
|
1550
|
+
r.reason || (r.reason = new j(s, i, c), n(r.reason));
|
|
1293
1551
|
});
|
|
1294
1552
|
}
|
|
1295
1553
|
/**
|
|
@@ -1318,6 +1576,12 @@ class de {
|
|
|
1318
1576
|
const n = this._listeners.indexOf(t);
|
|
1319
1577
|
n !== -1 && this._listeners.splice(n, 1);
|
|
1320
1578
|
}
|
|
1579
|
+
toAbortSignal() {
|
|
1580
|
+
const t = new AbortController(), n = (r) => {
|
|
1581
|
+
t.abort(r);
|
|
1582
|
+
};
|
|
1583
|
+
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1584
|
+
}
|
|
1321
1585
|
/**
|
|
1322
1586
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1323
1587
|
* cancels the `CancelToken`.
|
|
@@ -1325,22 +1589,22 @@ class de {
|
|
|
1325
1589
|
static source() {
|
|
1326
1590
|
let t;
|
|
1327
1591
|
return {
|
|
1328
|
-
token: new
|
|
1329
|
-
t =
|
|
1592
|
+
token: new At(function(o) {
|
|
1593
|
+
t = o;
|
|
1330
1594
|
}),
|
|
1331
1595
|
cancel: t
|
|
1332
1596
|
};
|
|
1333
1597
|
}
|
|
1334
|
-
}
|
|
1335
|
-
function
|
|
1598
|
+
};
|
|
1599
|
+
function yr(e) {
|
|
1336
1600
|
return function(n) {
|
|
1337
1601
|
return e.apply(null, n);
|
|
1338
1602
|
};
|
|
1339
1603
|
}
|
|
1340
|
-
function
|
|
1604
|
+
function wr(e) {
|
|
1341
1605
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1342
1606
|
}
|
|
1343
|
-
const
|
|
1607
|
+
const Ee = {
|
|
1344
1608
|
Continue: 100,
|
|
1345
1609
|
SwitchingProtocols: 101,
|
|
1346
1610
|
Processing: 102,
|
|
@@ -1405,128 +1669,216 @@ const se = {
|
|
|
1405
1669
|
NotExtended: 510,
|
|
1406
1670
|
NetworkAuthenticationRequired: 511
|
|
1407
1671
|
};
|
|
1408
|
-
Object.entries(
|
|
1409
|
-
|
|
1672
|
+
Object.entries(Ee).forEach(([e, t]) => {
|
|
1673
|
+
Ee[t] = e;
|
|
1410
1674
|
});
|
|
1411
|
-
function
|
|
1412
|
-
const t = new
|
|
1413
|
-
return a.extend(n,
|
|
1414
|
-
return
|
|
1675
|
+
function _t(e) {
|
|
1676
|
+
const t = new N(e), n = nt(N.prototype.request, t);
|
|
1677
|
+
return a.extend(n, N.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1678
|
+
return _t(F(e, o));
|
|
1415
1679
|
}, n;
|
|
1416
1680
|
}
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1681
|
+
const b = _t(Q);
|
|
1682
|
+
b.Axios = N;
|
|
1683
|
+
b.CanceledError = j;
|
|
1684
|
+
b.CancelToken = mr;
|
|
1685
|
+
b.isCancel = wt;
|
|
1686
|
+
b.VERSION = Ot;
|
|
1687
|
+
b.toFormData = ce;
|
|
1688
|
+
b.AxiosError = y;
|
|
1689
|
+
b.Cancel = b.CanceledError;
|
|
1690
|
+
b.all = function(t) {
|
|
1427
1691
|
return Promise.all(t);
|
|
1428
1692
|
};
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1693
|
+
b.spread = yr;
|
|
1694
|
+
b.isAxiosError = wr;
|
|
1695
|
+
b.mergeConfig = F;
|
|
1696
|
+
b.AxiosHeaders = _;
|
|
1697
|
+
b.formToJSON = (e) => yt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1698
|
+
b.getAdapter = Tt.getAdapter;
|
|
1699
|
+
b.HttpStatusCode = Ee;
|
|
1700
|
+
b.default = b;
|
|
1701
|
+
const {
|
|
1702
|
+
Axios: Qr,
|
|
1703
|
+
AxiosError: Xr,
|
|
1704
|
+
CanceledError: Gr,
|
|
1705
|
+
isCancel: Zr,
|
|
1706
|
+
CancelToken: Yr,
|
|
1707
|
+
VERSION: eo,
|
|
1708
|
+
all: to,
|
|
1709
|
+
Cancel: no,
|
|
1710
|
+
isAxiosError: ro,
|
|
1711
|
+
spread: oo,
|
|
1712
|
+
toFormData: so,
|
|
1713
|
+
AxiosHeaders: io,
|
|
1714
|
+
HttpStatusCode: ao,
|
|
1715
|
+
formToJSON: co,
|
|
1716
|
+
getAdapter: uo,
|
|
1717
|
+
mergeConfig: lo
|
|
1718
|
+
} = b;
|
|
1719
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
1720
|
+
function G(e) {
|
|
1721
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1722
|
+
var n = arguments[t];
|
|
1723
|
+
for (var r in n)
|
|
1724
|
+
e[r] = n[r];
|
|
1725
|
+
}
|
|
1726
|
+
return e;
|
|
1727
|
+
}
|
|
1728
|
+
var gr = {
|
|
1729
|
+
read: function(e) {
|
|
1730
|
+
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1731
|
+
},
|
|
1732
|
+
write: function(e) {
|
|
1733
|
+
return encodeURIComponent(e).replace(
|
|
1734
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
1735
|
+
decodeURIComponent
|
|
1736
|
+
);
|
|
1737
|
+
}
|
|
1738
|
+
};
|
|
1739
|
+
function Se(e, t) {
|
|
1740
|
+
function n(o, s, i) {
|
|
1741
|
+
if (!(typeof document > "u")) {
|
|
1742
|
+
i = G({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
1743
|
+
var c = "";
|
|
1744
|
+
for (var f in i)
|
|
1745
|
+
i[f] && (c += "; " + f, i[f] !== !0 && (c += "=" + i[f].split(";")[0]));
|
|
1746
|
+
return document.cookie = o + "=" + e.write(s, o) + c;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
function r(o) {
|
|
1750
|
+
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
1751
|
+
for (var s = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < s.length; c++) {
|
|
1752
|
+
var f = s[c].split("="), l = f.slice(1).join("=");
|
|
1753
|
+
try {
|
|
1754
|
+
var u = decodeURIComponent(f[0]);
|
|
1755
|
+
if (i[u] = e.read(l, u), o === u)
|
|
1756
|
+
break;
|
|
1757
|
+
} catch {
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
return o ? i[o] : i;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
return Object.create(
|
|
1764
|
+
{
|
|
1765
|
+
set: n,
|
|
1766
|
+
get: r,
|
|
1767
|
+
remove: function(o, s) {
|
|
1768
|
+
n(
|
|
1769
|
+
o,
|
|
1770
|
+
"",
|
|
1771
|
+
G({}, s, {
|
|
1772
|
+
expires: -1
|
|
1773
|
+
})
|
|
1774
|
+
);
|
|
1775
|
+
},
|
|
1776
|
+
withAttributes: function(o) {
|
|
1777
|
+
return Se(this.converter, G({}, this.attributes, o));
|
|
1778
|
+
},
|
|
1779
|
+
withConverter: function(o) {
|
|
1780
|
+
return Se(G({}, this.converter, o), this.attributes);
|
|
1781
|
+
}
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
attributes: { value: Object.freeze(t) },
|
|
1785
|
+
converter: { value: Object.freeze(e) }
|
|
1786
|
+
}
|
|
1787
|
+
);
|
|
1788
|
+
}
|
|
1789
|
+
var br = Se(gr, { path: "/" }), ze;
|
|
1790
|
+
const xt = typeof window < "u", Er = (e) => typeof e == "string", Je = () => +Date.now(), Re = () => {
|
|
1439
1791
|
};
|
|
1440
|
-
|
|
1441
|
-
function
|
|
1442
|
-
return typeof e == "function" ? e() :
|
|
1792
|
+
xt && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1793
|
+
function ke(e) {
|
|
1794
|
+
return typeof e == "function" ? e() : Nt(e);
|
|
1443
1795
|
}
|
|
1444
|
-
function
|
|
1796
|
+
function Sr(e, t) {
|
|
1445
1797
|
function n(...r) {
|
|
1446
|
-
return new Promise((
|
|
1447
|
-
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(
|
|
1798
|
+
return new Promise((o, s) => {
|
|
1799
|
+
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
|
|
1448
1800
|
});
|
|
1449
1801
|
}
|
|
1450
1802
|
return n;
|
|
1451
1803
|
}
|
|
1452
|
-
function
|
|
1453
|
-
let
|
|
1454
|
-
const
|
|
1455
|
-
|
|
1804
|
+
function Rr(e, t = !0, n = !0, r = !1) {
|
|
1805
|
+
let o = 0, s, i = !0, c = Re, f;
|
|
1806
|
+
const l = () => {
|
|
1807
|
+
s && (clearTimeout(s), s = void 0, c(), c = Re);
|
|
1456
1808
|
};
|
|
1457
|
-
return (
|
|
1458
|
-
const
|
|
1459
|
-
return
|
|
1460
|
-
c = r ?
|
|
1461
|
-
|
|
1462
|
-
}, Math.max(0,
|
|
1463
|
-
})), !n && !
|
|
1809
|
+
return (d) => {
|
|
1810
|
+
const w = ke(e), g = Date.now() - o, p = () => f = d();
|
|
1811
|
+
return l(), w <= 0 ? (o = Date.now(), p()) : (g > w && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((m, h) => {
|
|
1812
|
+
c = r ? h : m, s = setTimeout(() => {
|
|
1813
|
+
o = Date.now(), i = !0, m(p()), l();
|
|
1814
|
+
}, Math.max(0, w - g));
|
|
1815
|
+
})), !n && !s && (s = setTimeout(() => i = !0, w)), i = !1, f);
|
|
1464
1816
|
};
|
|
1465
1817
|
}
|
|
1466
|
-
function
|
|
1818
|
+
function Tr(e) {
|
|
1467
1819
|
return e;
|
|
1468
1820
|
}
|
|
1469
|
-
function
|
|
1470
|
-
return
|
|
1821
|
+
function Or(e) {
|
|
1822
|
+
return Ft() ? (Dt(e), !0) : !1;
|
|
1471
1823
|
}
|
|
1472
|
-
function
|
|
1824
|
+
function Ar(e) {
|
|
1473
1825
|
var t;
|
|
1474
|
-
const n =
|
|
1826
|
+
const n = ke(e);
|
|
1475
1827
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
1476
1828
|
}
|
|
1477
|
-
const
|
|
1478
|
-
function
|
|
1479
|
-
let t, n, r,
|
|
1480
|
-
if (
|
|
1481
|
-
return
|
|
1829
|
+
const Ct = xt ? window : void 0;
|
|
1830
|
+
function Ve(...e) {
|
|
1831
|
+
let t, n, r, o;
|
|
1832
|
+
if (Er(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = Ct) : [t, n, r, o] = e, !t)
|
|
1833
|
+
return Re;
|
|
1482
1834
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
1483
|
-
const
|
|
1484
|
-
|
|
1485
|
-
}, c = (
|
|
1486
|
-
i(),
|
|
1487
|
-
}, { immediate: !0, flush: "post" }),
|
|
1835
|
+
const s = [], i = () => {
|
|
1836
|
+
s.forEach((u) => u()), s.length = 0;
|
|
1837
|
+
}, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f = Oe(() => [Ar(t), ke(o)], ([u, d]) => {
|
|
1838
|
+
i(), u && s.push(...n.flatMap((w) => r.map((g) => c(u, w, g, d))));
|
|
1839
|
+
}, { immediate: !0, flush: "post" }), l = () => {
|
|
1488
1840
|
f(), i();
|
|
1489
1841
|
};
|
|
1490
|
-
return
|
|
1842
|
+
return Or(l), l;
|
|
1491
1843
|
}
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1494
|
-
const
|
|
1495
|
-
function
|
|
1844
|
+
const We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ke = "__vueuse_ssr_handlers__";
|
|
1845
|
+
We[Ke] = We[Ke] || {};
|
|
1846
|
+
const _r = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], xr = 6e4;
|
|
1847
|
+
function Cr(e = xr, t = {}) {
|
|
1496
1848
|
const {
|
|
1497
1849
|
initialState: n = !1,
|
|
1498
1850
|
listenForVisibilityChange: r = !0,
|
|
1499
|
-
events:
|
|
1500
|
-
window:
|
|
1501
|
-
eventFilter: i =
|
|
1502
|
-
} = t, c =
|
|
1503
|
-
let
|
|
1504
|
-
const
|
|
1505
|
-
c.value = !1, f.value =
|
|
1851
|
+
events: o = _r,
|
|
1852
|
+
window: s = Ct,
|
|
1853
|
+
eventFilter: i = Rr(50)
|
|
1854
|
+
} = t, c = ne(n), f = ne(Je());
|
|
1855
|
+
let l;
|
|
1856
|
+
const u = Sr(i, () => {
|
|
1857
|
+
c.value = !1, f.value = Je(), clearTimeout(l), l = setTimeout(() => c.value = !0, e);
|
|
1506
1858
|
});
|
|
1507
|
-
if (
|
|
1508
|
-
const
|
|
1509
|
-
for (const
|
|
1510
|
-
|
|
1511
|
-
r &&
|
|
1512
|
-
|
|
1859
|
+
if (s) {
|
|
1860
|
+
const d = s.document;
|
|
1861
|
+
for (const w of o)
|
|
1862
|
+
Ve(s, w, u, { passive: !0 });
|
|
1863
|
+
r && Ve(d, "visibilitychange", () => {
|
|
1864
|
+
d.hidden || u();
|
|
1513
1865
|
});
|
|
1514
1866
|
}
|
|
1515
|
-
return
|
|
1867
|
+
return l = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
|
|
1516
1868
|
}
|
|
1517
|
-
var
|
|
1869
|
+
var Qe;
|
|
1518
1870
|
(function(e) {
|
|
1519
1871
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
1520
|
-
})(
|
|
1521
|
-
var
|
|
1872
|
+
})(Qe || (Qe = {}));
|
|
1873
|
+
var kr = Object.defineProperty, Xe = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable, Ge = (e, t, n) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lr = (e, t) => {
|
|
1522
1874
|
for (var n in t || (t = {}))
|
|
1523
|
-
|
|
1524
|
-
if (
|
|
1525
|
-
for (var n of
|
|
1526
|
-
|
|
1875
|
+
Pr.call(t, n) && Ge(e, n, t[n]);
|
|
1876
|
+
if (Xe)
|
|
1877
|
+
for (var n of Xe(t))
|
|
1878
|
+
Ur.call(t, n) && Ge(e, n, t[n]);
|
|
1527
1879
|
return e;
|
|
1528
1880
|
};
|
|
1529
|
-
const
|
|
1881
|
+
const Nr = {
|
|
1530
1882
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1531
1883
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1532
1884
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1552,133 +1904,170 @@ const Wn = {
|
|
|
1552
1904
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1553
1905
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1554
1906
|
};
|
|
1555
|
-
|
|
1556
|
-
linear:
|
|
1557
|
-
},
|
|
1558
|
-
let
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1907
|
+
Lr({
|
|
1908
|
+
linear: Tr
|
|
1909
|
+
}, Nr);
|
|
1910
|
+
let Te;
|
|
1911
|
+
const kt = { triggerProxySso: "triggerProxySso" }, Fr = () => {
|
|
1912
|
+
Te = (e) => {
|
|
1561
1913
|
var n;
|
|
1562
1914
|
const { origin: t } = new URL(location.href);
|
|
1563
1915
|
(n = window.top) == null || n.postMessage(
|
|
1564
|
-
{ type:
|
|
1916
|
+
{ type: kt.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
|
|
1565
1917
|
t
|
|
1566
1918
|
);
|
|
1567
1919
|
};
|
|
1568
|
-
},
|
|
1920
|
+
}, Dr = (e) => {
|
|
1569
1921
|
window.top === window.self && window.addEventListener("message", (t) => {
|
|
1570
1922
|
const { type: n, data: r } = t.data;
|
|
1571
|
-
n ===
|
|
1923
|
+
n === kt.triggerProxySso && (e == null || e(r));
|
|
1572
1924
|
});
|
|
1573
1925
|
};
|
|
1574
|
-
window.top !== window.self &&
|
|
1575
|
-
|
|
1926
|
+
window.top !== window.self && Fr();
|
|
1927
|
+
let Pt = (e = 21) => {
|
|
1928
|
+
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
1929
|
+
for (; e--; ) {
|
|
1930
|
+
let r = n[e] & 63;
|
|
1931
|
+
r < 36 ? t += r.toString(36) : r < 62 ? t += (r - 26).toString(36).toUpperCase() : r < 63 ? t += "_" : t += "-";
|
|
1932
|
+
}
|
|
1933
|
+
return t;
|
|
1934
|
+
};
|
|
1935
|
+
const te = (e) => new URL(location.href).searchParams.get(e), I = {
|
|
1576
1936
|
oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
|
|
1577
1937
|
// 重定向到登录页
|
|
1938
|
+
logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
|
|
1939
|
+
// 清除登录信息
|
|
1578
1940
|
token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
|
|
1579
1941
|
// 通过code获取token
|
|
1580
|
-
}, { baseURL:
|
|
1942
|
+
}, { baseURL: Ze, noRedireLogin: vr = !1 } = Ae(), $ = location.origin + "/home", v = {
|
|
1581
1943
|
response_type: "code",
|
|
1582
1944
|
scope: "sever",
|
|
1583
1945
|
client_id: "sys",
|
|
1584
|
-
client_secret:
|
|
1946
|
+
client_secret: vt("das123"),
|
|
1585
1947
|
state: +/* @__PURE__ */ new Date()
|
|
1586
|
-
},
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
window.history.replaceState(null, "", mt(t)), window.__isAutoCloseApp = !1, window.location.reload();
|
|
1593
|
-
}
|
|
1594
|
-
}, ct = J(!1), ut = (e) => {
|
|
1948
|
+
}, Ye = (e) => {
|
|
1949
|
+
const t = new URL(window.location.href), n = new URLSearchParams(t.search);
|
|
1950
|
+
e.forEach((r) => {
|
|
1951
|
+
n.delete(r);
|
|
1952
|
+
}), t.search = n.toString(), window.history.replaceState({}, "", t);
|
|
1953
|
+
}, Ut = ne(!1), Lt = (e) => {
|
|
1595
1954
|
if (e <= 0) return;
|
|
1596
|
-
const { idle: t } =
|
|
1597
|
-
|
|
1955
|
+
const { idle: t } = Cr(e);
|
|
1956
|
+
Oe(
|
|
1598
1957
|
() => t.value,
|
|
1599
1958
|
(n) => {
|
|
1600
|
-
n === !0 && (
|
|
1959
|
+
n === !0 && (Ut.value = !0);
|
|
1601
1960
|
}
|
|
1602
1961
|
);
|
|
1603
1962
|
};
|
|
1604
|
-
localStorage.getItem("idelTime") &&
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1963
|
+
localStorage.getItem("idelTime") && Lt(Number(localStorage.getItem("idelTime")));
|
|
1964
|
+
let et = "";
|
|
1965
|
+
const Ir = async () => {
|
|
1966
|
+
const e = te("code") || "", t = te("redirect_url") || "", n = te("kingdee_token") || "";
|
|
1967
|
+
if (!e) return D();
|
|
1968
|
+
if (e === et)
|
|
1969
|
+
return Ye(["code", "state", "kingdee_token", "redirect_url"]), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), D();
|
|
1970
|
+
et = e, Ye(["code", "state", "kingdee_token", "redirect_url"]);
|
|
1609
1971
|
let r = {};
|
|
1610
|
-
const
|
|
1972
|
+
const o = {
|
|
1611
1973
|
grant_type: "authorization_code",
|
|
1612
1974
|
code: e,
|
|
1613
|
-
client_id:
|
|
1614
|
-
client_secret:
|
|
1615
|
-
redirect_uri:
|
|
1975
|
+
client_id: v.client_id,
|
|
1976
|
+
client_secret: v.client_secret,
|
|
1977
|
+
redirect_uri: $,
|
|
1978
|
+
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
1979
|
+
nonce: Pt()
|
|
1616
1980
|
};
|
|
1617
|
-
n && (sessionStorage.setItem("kingdee_token", n),
|
|
1981
|
+
n && (sessionStorage.setItem("kingdee_token", n), o.redirect_uri = `${o.redirect_uri}?kingdee_token=${n}`);
|
|
1618
1982
|
try {
|
|
1619
|
-
|
|
1620
|
-
|
|
1983
|
+
await b.create().get(I.token, { baseURL: Ze });
|
|
1984
|
+
} catch {
|
|
1985
|
+
}
|
|
1986
|
+
try {
|
|
1987
|
+
r = await b.create().post(
|
|
1988
|
+
I.token,
|
|
1621
1989
|
{},
|
|
1622
1990
|
{
|
|
1623
|
-
baseURL:
|
|
1624
|
-
params:
|
|
1991
|
+
baseURL: Ze,
|
|
1992
|
+
params: o,
|
|
1625
1993
|
headers: {
|
|
1626
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
1994
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1995
|
+
"csrf-token": br.get("csrf-token")
|
|
1627
1996
|
}
|
|
1628
1997
|
}
|
|
1629
1998
|
);
|
|
1630
|
-
const { access_token:
|
|
1631
|
-
accessToken:
|
|
1999
|
+
const { access_token: s = "", expires_in: i = 0, refresh_token: c = "", refresh_exp: f = 0 } = r.data, l = {
|
|
2000
|
+
accessToken: s,
|
|
1632
2001
|
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
|
|
1633
2002
|
refreshToken: c,
|
|
1634
2003
|
info: r.data
|
|
1635
2004
|
};
|
|
1636
|
-
|
|
1637
|
-
const
|
|
1638
|
-
return
|
|
2005
|
+
J().save(l), await tt(s);
|
|
2006
|
+
const u = Number(f) - (/* @__PURE__ */ new Date()).getTime();
|
|
2007
|
+
return u && u > 0 && (Lt(u), u && localStorage.setItem("idelTime", u.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), s;
|
|
1639
2008
|
} catch {
|
|
1640
|
-
return
|
|
2009
|
+
return z({ ...v, redirect_uri: $ });
|
|
1641
2010
|
}
|
|
1642
|
-
},
|
|
2011
|
+
}, M = ne(!1), fo = async (e) => {
|
|
1643
2012
|
if (e.public) return "";
|
|
1644
|
-
if (
|
|
1645
|
-
if (
|
|
1646
|
-
return await new Promise(async (
|
|
1647
|
-
|
|
1648
|
-
() =>
|
|
1649
|
-
(
|
|
1650
|
-
if (!
|
|
1651
|
-
const i =
|
|
1652
|
-
|
|
2013
|
+
if (Ut.value) return z({ ...v, redirect_uri: $ });
|
|
2014
|
+
if (M.value)
|
|
2015
|
+
return await new Promise(async (o) => {
|
|
2016
|
+
Oe(
|
|
2017
|
+
() => M.value,
|
|
2018
|
+
(s) => {
|
|
2019
|
+
if (!s) {
|
|
2020
|
+
const i = D();
|
|
2021
|
+
o(i);
|
|
1653
2022
|
}
|
|
1654
2023
|
}
|
|
1655
2024
|
);
|
|
1656
2025
|
});
|
|
1657
|
-
const { accessTokenExpiredAt: t } =
|
|
1658
|
-
if ((!
|
|
1659
|
-
return
|
|
1660
|
-
let r =
|
|
1661
|
-
|
|
2026
|
+
const { accessTokenExpiredAt: t } = J().getData(), n = te("code") || "";
|
|
2027
|
+
if ((!D() || t === 0) && !n)
|
|
2028
|
+
return z({ ...v, redirect_uri: $ });
|
|
2029
|
+
let r = D();
|
|
2030
|
+
M.value = !0;
|
|
1662
2031
|
try {
|
|
1663
|
-
typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await
|
|
2032
|
+
typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await qr(v)), r = await Ir(), M.value = !1;
|
|
1664
2033
|
} catch {
|
|
1665
|
-
|
|
2034
|
+
M.value = !1;
|
|
1666
2035
|
}
|
|
1667
2036
|
return r;
|
|
1668
|
-
},
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
2037
|
+
}, Br = () => {
|
|
2038
|
+
let e = !1;
|
|
2039
|
+
return localStorage.getItem("thirdLogouSource") === "zhongshen" && (e = !0), e;
|
|
2040
|
+
}, jr = (e) => {
|
|
2041
|
+
if (localStorage.getItem("thirdLogouSource") === "zhongshen") {
|
|
2042
|
+
const r = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
|
|
2043
|
+
localStorage.removeItem("thirdLogouSource"), location.href = r;
|
|
2044
|
+
}
|
|
2045
|
+
}, z = (e) => {
|
|
2046
|
+
if (vr) return;
|
|
2047
|
+
const { baseURL: t, ssoLocale: n } = Ae();
|
|
2048
|
+
if (Te) return Te(e);
|
|
1672
2049
|
e.logout = "true", n && (e.locale = "locale");
|
|
1673
|
-
const r = Object.keys(e).filter((
|
|
1674
|
-
|
|
2050
|
+
const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${I.oauth}?${r}`;
|
|
2051
|
+
if (localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove(), Br())
|
|
2052
|
+
jr(o);
|
|
2053
|
+
else {
|
|
2054
|
+
try {
|
|
2055
|
+
b.create().get(I.logoutCurpage, { baseURL: t });
|
|
2056
|
+
} catch {
|
|
2057
|
+
}
|
|
2058
|
+
window.__isAutoCloseApp = !1, location.replace(o);
|
|
2059
|
+
}
|
|
1675
2060
|
};
|
|
1676
|
-
|
|
1677
|
-
const
|
|
1678
|
-
const { baseURL: t } =
|
|
2061
|
+
Dr(z);
|
|
2062
|
+
const qr = async (e) => {
|
|
2063
|
+
const { baseURL: t } = Ae(), { refreshToken: n } = J().getData();
|
|
2064
|
+
try {
|
|
2065
|
+
await b.create().get(I.token, { baseURL: t });
|
|
2066
|
+
} catch {
|
|
2067
|
+
}
|
|
1679
2068
|
try {
|
|
1680
|
-
const
|
|
1681
|
-
|
|
2069
|
+
const r = await b.create().post(
|
|
2070
|
+
I.token,
|
|
1682
2071
|
{},
|
|
1683
2072
|
{
|
|
1684
2073
|
baseURL: t,
|
|
@@ -1686,46 +2075,46 @@ const er = async (e) => {
|
|
|
1686
2075
|
refresh_token: n,
|
|
1687
2076
|
grant_type: "refresh_token",
|
|
1688
2077
|
client_id: e.client_id,
|
|
1689
|
-
client_secret: e.client_secret
|
|
2078
|
+
client_secret: e.client_secret,
|
|
2079
|
+
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
2080
|
+
nonce: Pt()
|
|
1690
2081
|
}
|
|
1691
2082
|
}
|
|
1692
|
-
), { access_token: o = "", expires_in:
|
|
2083
|
+
), { access_token: o = "", expires_in: s = 0, refresh_token: i = "" } = r.data, c = {
|
|
1693
2084
|
accessToken: o,
|
|
1694
|
-
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(
|
|
1695
|
-
refreshToken:
|
|
1696
|
-
info:
|
|
2085
|
+
accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(s) * 1e3,
|
|
2086
|
+
refreshToken: i,
|
|
2087
|
+
info: r.data
|
|
1697
2088
|
};
|
|
1698
|
-
return
|
|
2089
|
+
return J().save(c), await tt(o), o;
|
|
1699
2090
|
} catch {
|
|
1700
|
-
return
|
|
2091
|
+
return z({ ...e, redirect_uri: $ });
|
|
1701
2092
|
}
|
|
1702
|
-
},
|
|
2093
|
+
}, J = () => ({
|
|
1703
2094
|
getData: () => ({
|
|
1704
|
-
accessToken:
|
|
1705
|
-
accessTokenExpiredAt:
|
|
1706
|
-
refreshToken:
|
|
1707
|
-
redirectUri: q("redirectUri")
|
|
2095
|
+
accessToken: D(),
|
|
2096
|
+
accessTokenExpiredAt: fe("accessTokenExpiredAt") ? Number(fe("accessTokenExpiredAt")) : "",
|
|
2097
|
+
refreshToken: fe("refreshToken")
|
|
1708
2098
|
}),
|
|
1709
2099
|
save: (e) => {
|
|
1710
|
-
|
|
2100
|
+
Bt(
|
|
1711
2101
|
e.accessToken || "",
|
|
1712
2102
|
{
|
|
1713
2103
|
accessTokenExpiredAt: e.accessTokenExpiredAt,
|
|
1714
|
-
refreshToken: e.refreshToken
|
|
1715
|
-
redirectUri: e.redirectUri
|
|
2104
|
+
refreshToken: e.refreshToken
|
|
1716
2105
|
}
|
|
1717
|
-
),
|
|
2106
|
+
), qt(e);
|
|
1718
2107
|
},
|
|
1719
2108
|
remove: () => {
|
|
1720
|
-
|
|
2109
|
+
It(), jt();
|
|
1721
2110
|
}
|
|
1722
2111
|
});
|
|
1723
2112
|
export {
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
2113
|
+
te as getQuery,
|
|
2114
|
+
fo as getToken,
|
|
2115
|
+
Ir as getTokenFromCode,
|
|
2116
|
+
v as getTokenParams,
|
|
2117
|
+
z as login,
|
|
2118
|
+
$ as real_uri,
|
|
2119
|
+
J as tokenStorage
|
|
1731
2120
|
};
|