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