@das-fed/utils 7.0.7-hot.8 → 7.0.7-hot.9
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/modules/app-manage/index.js +743 -725
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +743 -725
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +746 -728
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +743 -725
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +743 -725
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +726 -744
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/link/index.js +725 -743
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +752 -734
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +745 -727
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/create-api-service/index.js +699 -717
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +239 -234
- package/create-api-service/sso/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { encryption as
|
|
3
|
-
import { getConfig as
|
|
4
|
-
import { getAccessToken as M, removeAccessToken as
|
|
5
|
-
import { appendQueryParams as jt } from "@das-fed/utils/common-tools";
|
|
1
|
+
import { unref as Ft, getCurrentScope as Dt, onScopeDispose as vt, ref as Y, watch as Ae } from "vue";
|
|
2
|
+
import { encryption as It } from "@das-fed/utils/atob";
|
|
3
|
+
import { getConfig as _e } from "@das-fed/utils/config";
|
|
4
|
+
import { getAccessToken as M, removeAccessToken as Bt, setAccessToken as jt, getAccessTokenInfo as le } from "@das-fed/utils/token-tools";
|
|
6
5
|
import { removeProcessEngineToken as qt, setProcessEngineToken as Mt } from "@das-fed/utils/process-engine-info";
|
|
7
|
-
import { setPersonalInfo as
|
|
8
|
-
function
|
|
6
|
+
import { setPersonalInfo as nt } from "@das-fed/utils/common-info/set-personal-info";
|
|
7
|
+
function rt(e, t) {
|
|
9
8
|
return function() {
|
|
10
9
|
return e.apply(t, arguments);
|
|
11
10
|
};
|
|
12
11
|
}
|
|
13
|
-
const { toString: Ht } = Object.prototype, { getPrototypeOf:
|
|
12
|
+
const { toString: Ht } = Object.prototype, { getPrototypeOf: xe } = Object, { iterator: re, toStringTag: ot } = Symbol, oe = /* @__PURE__ */ ((e) => (t) => {
|
|
14
13
|
const n = Ht.call(t);
|
|
15
14
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
16
15
|
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => oe(t) === e), se = (e) => (t) => typeof t === e, { isArray: v } = Array, H = se("undefined");
|
|
17
16
|
function z(e) {
|
|
18
17
|
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
19
18
|
}
|
|
20
|
-
const
|
|
19
|
+
const st = x("ArrayBuffer");
|
|
21
20
|
function $t(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 && st(e.buffer), t;
|
|
24
23
|
}
|
|
25
|
-
const zt = se("string"), A = se("function"),
|
|
24
|
+
const zt = se("string"), A = se("function"), it = se("number"), J = (e) => e !== null && typeof e == "object", Jt = (e) => e === !0 || e === !1, X = (e) => {
|
|
26
25
|
if (oe(e) !== "object")
|
|
27
26
|
return !1;
|
|
28
|
-
const t =
|
|
29
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
27
|
+
const t = xe(e);
|
|
28
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ot in e) && !(re in e);
|
|
30
29
|
}, Vt = (e) => {
|
|
31
30
|
if (!J(e) || z(e))
|
|
32
31
|
return !1;
|
|
@@ -56,7 +55,7 @@ function V(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
56
55
|
c = s[r], t.call(null, e[c], c, e);
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
|
-
function
|
|
58
|
+
function at(e, t) {
|
|
60
59
|
if (z(e))
|
|
61
60
|
return null;
|
|
62
61
|
t = t.toLowerCase();
|
|
@@ -67,18 +66,18 @@ function it(e, t) {
|
|
|
67
66
|
return o;
|
|
68
67
|
return null;
|
|
69
68
|
}
|
|
70
|
-
const
|
|
71
|
-
function
|
|
72
|
-
const { caseless: e } =
|
|
73
|
-
const s = e &&
|
|
74
|
-
X(t[s]) && X(r) ? t[s] =
|
|
69
|
+
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ct = (e) => !H(e) && e !== U;
|
|
70
|
+
function ye() {
|
|
71
|
+
const { caseless: e } = ct(this) && this || {}, t = {}, n = (r, o) => {
|
|
72
|
+
const s = e && at(t, o) || o;
|
|
73
|
+
X(t[s]) && X(r) ? t[s] = ye(t[s], r) : X(r) ? t[s] = ye({}, r) : v(r) ? t[s] = r.slice() : t[s] = r;
|
|
75
74
|
};
|
|
76
75
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
77
76
|
arguments[r] && V(arguments[r], n);
|
|
78
77
|
return t;
|
|
79
78
|
}
|
|
80
79
|
const sn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
|
|
81
|
-
n && A(o) ? e[s] =
|
|
80
|
+
n && A(o) ? e[s] = rt(o, n) : e[s] = o;
|
|
82
81
|
}, { allOwnKeys: r }), e), an = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), cn = (e, t, n, r) => {
|
|
83
82
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
84
83
|
value: t.prototype
|
|
@@ -90,7 +89,7 @@ const sn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
|
|
|
90
89
|
do {
|
|
91
90
|
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
92
91
|
i = o[s], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
93
|
-
e = n !== !1 &&
|
|
92
|
+
e = n !== !1 && xe(e);
|
|
94
93
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
95
94
|
return t;
|
|
96
95
|
}, ln = (e, t, n) => {
|
|
@@ -101,12 +100,12 @@ const sn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
|
|
|
101
100
|
if (!e) return null;
|
|
102
101
|
if (v(e)) return e;
|
|
103
102
|
let t = e.length;
|
|
104
|
-
if (!
|
|
103
|
+
if (!it(t)) return null;
|
|
105
104
|
const n = new Array(t);
|
|
106
105
|
for (; t-- > 0; )
|
|
107
106
|
n[t] = e[t];
|
|
108
107
|
return n;
|
|
109
|
-
}, dn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
108
|
+
}, dn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && xe(Uint8Array)), pn = (e, t) => {
|
|
110
109
|
const r = (e && e[re]).call(e);
|
|
111
110
|
let o;
|
|
112
111
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -124,14 +123,14 @@ const sn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
|
|
|
124
123
|
function(n, r, o) {
|
|
125
124
|
return r.toUpperCase() + o;
|
|
126
125
|
}
|
|
127
|
-
), Ue = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), wn = x("RegExp"),
|
|
126
|
+
), Ue = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), wn = x("RegExp"), ut = (e, t) => {
|
|
128
127
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
129
128
|
V(n, (o, s) => {
|
|
130
129
|
let i;
|
|
131
130
|
(i = t(o, s, e)) !== !1 && (r[s] = i || o);
|
|
132
131
|
}), Object.defineProperties(e, r);
|
|
133
132
|
}, gn = (e) => {
|
|
134
|
-
|
|
133
|
+
ut(e, (t, n) => {
|
|
135
134
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
136
135
|
return !1;
|
|
137
136
|
const r = e[n];
|
|
@@ -155,7 +154,7 @@ const sn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
|
|
|
155
154
|
}, En = () => {
|
|
156
155
|
}, Sn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
157
156
|
function Rn(e) {
|
|
158
|
-
return !!(e && A(e.append) && e[
|
|
157
|
+
return !!(e && A(e.append) && e[ot] === "FormData" && e[re]);
|
|
159
158
|
}
|
|
160
159
|
const Tn = (e) => {
|
|
161
160
|
const t = new Array(10), n = (r, o) => {
|
|
@@ -176,21 +175,21 @@ const Tn = (e) => {
|
|
|
176
175
|
return r;
|
|
177
176
|
};
|
|
178
177
|
return n(e, 0);
|
|
179
|
-
}, On = x("AsyncFunction"), An = (e) => e && (J(e) || A(e)) && A(e.then) && A(e.catch),
|
|
180
|
-
o ===
|
|
178
|
+
}, On = x("AsyncFunction"), An = (e) => e && (J(e) || A(e)) && A(e.then) && A(e.catch), lt = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: o, data: s }) => {
|
|
179
|
+
o === U && s === n && r.length && r.shift()();
|
|
181
180
|
}, !1), (o) => {
|
|
182
|
-
r.push(o),
|
|
181
|
+
r.push(o), U.postMessage(n, "*");
|
|
183
182
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
184
183
|
typeof setImmediate == "function",
|
|
185
|
-
A(
|
|
186
|
-
), _n = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
184
|
+
A(U.postMessage)
|
|
185
|
+
), _n = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || lt, xn = (e) => e != null && A(e[re]), a = {
|
|
187
186
|
isArray: v,
|
|
188
|
-
isArrayBuffer:
|
|
187
|
+
isArrayBuffer: st,
|
|
189
188
|
isBuffer: z,
|
|
190
189
|
isFormData: Zt,
|
|
191
190
|
isArrayBufferView: $t,
|
|
192
191
|
isString: zt,
|
|
193
|
-
isNumber:
|
|
192
|
+
isNumber: it,
|
|
194
193
|
isBoolean: Jt,
|
|
195
194
|
isObject: J,
|
|
196
195
|
isPlainObject: X,
|
|
@@ -210,7 +209,7 @@ const Tn = (e) => {
|
|
|
210
209
|
isTypedArray: dn,
|
|
211
210
|
isFileList: Xt,
|
|
212
211
|
forEach: V,
|
|
213
|
-
merge:
|
|
212
|
+
merge: ye,
|
|
214
213
|
extend: sn,
|
|
215
214
|
trim: on,
|
|
216
215
|
stripBOM: an,
|
|
@@ -226,20 +225,20 @@ const Tn = (e) => {
|
|
|
226
225
|
hasOwnProperty: Ue,
|
|
227
226
|
hasOwnProp: Ue,
|
|
228
227
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
229
|
-
reduceDescriptors:
|
|
228
|
+
reduceDescriptors: ut,
|
|
230
229
|
freezeMethods: gn,
|
|
231
230
|
toObjectSet: bn,
|
|
232
231
|
toCamelCase: yn,
|
|
233
232
|
noop: En,
|
|
234
233
|
toFiniteNumber: Sn,
|
|
235
|
-
findKey:
|
|
236
|
-
global:
|
|
237
|
-
isContextDefined:
|
|
234
|
+
findKey: at,
|
|
235
|
+
global: U,
|
|
236
|
+
isContextDefined: ct,
|
|
238
237
|
isSpecCompliantForm: Rn,
|
|
239
238
|
toJSONObject: Tn,
|
|
240
239
|
isAsyncFn: On,
|
|
241
240
|
isThenable: An,
|
|
242
|
-
setImmediate:
|
|
241
|
+
setImmediate: lt,
|
|
243
242
|
asap: _n,
|
|
244
243
|
isIterable: xn
|
|
245
244
|
};
|
|
@@ -267,7 +266,7 @@ a.inherits(y, Error, {
|
|
|
267
266
|
};
|
|
268
267
|
}
|
|
269
268
|
});
|
|
270
|
-
const
|
|
269
|
+
const ft = y.prototype, dt = {};
|
|
271
270
|
[
|
|
272
271
|
"ERR_BAD_OPTION_VALUE",
|
|
273
272
|
"ERR_BAD_OPTION",
|
|
@@ -283,30 +282,30 @@ const lt = y.prototype, ft = {};
|
|
|
283
282
|
"ERR_INVALID_URL"
|
|
284
283
|
// eslint-disable-next-line func-names
|
|
285
284
|
].forEach((e) => {
|
|
286
|
-
|
|
285
|
+
dt[e] = { value: e };
|
|
287
286
|
});
|
|
288
|
-
Object.defineProperties(y,
|
|
289
|
-
Object.defineProperty(
|
|
287
|
+
Object.defineProperties(y, dt);
|
|
288
|
+
Object.defineProperty(ft, "isAxiosError", { value: !0 });
|
|
290
289
|
y.from = (e, t, n, r, o, s) => {
|
|
291
|
-
const i = Object.create(
|
|
290
|
+
const i = Object.create(ft);
|
|
292
291
|
return a.toFlatObject(e, i, function(f) {
|
|
293
292
|
return f !== Error.prototype;
|
|
294
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;
|
|
295
294
|
};
|
|
296
295
|
const kn = null;
|
|
297
|
-
function
|
|
296
|
+
function we(e) {
|
|
298
297
|
return a.isPlainObject(e) || a.isArray(e);
|
|
299
298
|
}
|
|
300
|
-
function
|
|
299
|
+
function pt(e) {
|
|
301
300
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
302
301
|
}
|
|
303
|
-
function
|
|
302
|
+
function Ne(e, t, n) {
|
|
304
303
|
return e ? e.concat(t).map(function(o, s) {
|
|
305
|
-
return o =
|
|
304
|
+
return o = pt(o), !n && s ? "[" + o + "]" : o;
|
|
306
305
|
}).join(n ? "." : "") : t;
|
|
307
306
|
}
|
|
308
307
|
function Cn(e) {
|
|
309
|
-
return a.isArray(e) && !e.some(
|
|
308
|
+
return a.isArray(e) && !e.some(we);
|
|
310
309
|
}
|
|
311
310
|
const Pn = a.toFlatObject(a, {}, null, function(t) {
|
|
312
311
|
return /^is[A-Z]/.test(t);
|
|
@@ -340,20 +339,20 @@ function ie(e, t, n) {
|
|
|
340
339
|
if (a.endsWith(m, "{}"))
|
|
341
340
|
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
342
341
|
else if (a.isArray(p) && Cn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
|
|
343
|
-
return m =
|
|
342
|
+
return m = pt(m), E.forEach(function(R, C) {
|
|
344
343
|
!(a.isUndefined(R) || R === null) && t.append(
|
|
345
344
|
// eslint-disable-next-line no-nested-ternary
|
|
346
|
-
i === !0 ?
|
|
345
|
+
i === !0 ? Ne([m], C, s) : i === null ? m : m + "[]",
|
|
347
346
|
l(R)
|
|
348
347
|
);
|
|
349
348
|
}), !1;
|
|
350
349
|
}
|
|
351
|
-
return
|
|
350
|
+
return we(p) ? !0 : (t.append(Ne(h, m, s), l(p)), !1);
|
|
352
351
|
}
|
|
353
352
|
const d = [], w = Object.assign(Pn, {
|
|
354
353
|
defaultVisitor: u,
|
|
355
354
|
convertValue: l,
|
|
356
|
-
isVisitable:
|
|
355
|
+
isVisitable: we
|
|
357
356
|
});
|
|
358
357
|
function g(p, m) {
|
|
359
358
|
if (!a.isUndefined(p)) {
|
|
@@ -374,7 +373,7 @@ function ie(e, t, n) {
|
|
|
374
373
|
throw new TypeError("data must be an object");
|
|
375
374
|
return g(e), t;
|
|
376
375
|
}
|
|
377
|
-
function
|
|
376
|
+
function Fe(e) {
|
|
378
377
|
const t = {
|
|
379
378
|
"!": "%21",
|
|
380
379
|
"'": "%27",
|
|
@@ -388,40 +387,40 @@ function Ne(e) {
|
|
|
388
387
|
return t[r];
|
|
389
388
|
});
|
|
390
389
|
}
|
|
391
|
-
function
|
|
390
|
+
function ke(e, t) {
|
|
392
391
|
this._pairs = [], e && ie(e, this, t);
|
|
393
392
|
}
|
|
394
|
-
const
|
|
395
|
-
|
|
393
|
+
const ht = ke.prototype;
|
|
394
|
+
ht.append = function(t, n) {
|
|
396
395
|
this._pairs.push([t, n]);
|
|
397
396
|
};
|
|
398
|
-
|
|
397
|
+
ht.toString = function(t) {
|
|
399
398
|
const n = t ? function(r) {
|
|
400
|
-
return t.call(this, r,
|
|
401
|
-
} :
|
|
399
|
+
return t.call(this, r, Fe);
|
|
400
|
+
} : Fe;
|
|
402
401
|
return this._pairs.map(function(o) {
|
|
403
402
|
return n(o[0]) + "=" + n(o[1]);
|
|
404
403
|
}, "").join("&");
|
|
405
404
|
};
|
|
406
|
-
function
|
|
405
|
+
function Ln(e) {
|
|
407
406
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
408
407
|
}
|
|
409
|
-
function
|
|
408
|
+
function mt(e, t, n) {
|
|
410
409
|
if (!t)
|
|
411
410
|
return e;
|
|
412
|
-
const r = n && n.encode ||
|
|
411
|
+
const r = n && n.encode || Ln;
|
|
413
412
|
a.isFunction(n) && (n = {
|
|
414
413
|
serialize: n
|
|
415
414
|
});
|
|
416
415
|
const o = n && n.serialize;
|
|
417
416
|
let s;
|
|
418
|
-
if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new
|
|
417
|
+
if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new ke(t, n).toString(r), s) {
|
|
419
418
|
const i = e.indexOf("#");
|
|
420
419
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
421
420
|
}
|
|
422
421
|
return e;
|
|
423
422
|
}
|
|
424
|
-
class
|
|
423
|
+
class De {
|
|
425
424
|
constructor() {
|
|
426
425
|
this.handlers = [];
|
|
427
426
|
}
|
|
@@ -475,25 +474,25 @@ class Fe {
|
|
|
475
474
|
});
|
|
476
475
|
}
|
|
477
476
|
}
|
|
478
|
-
const
|
|
477
|
+
const yt = {
|
|
479
478
|
silentJSONParsing: !0,
|
|
480
479
|
forcedJSONParsing: !0,
|
|
481
480
|
clarifyTimeoutError: !1
|
|
482
|
-
},
|
|
481
|
+
}, Un = typeof URLSearchParams < "u" ? URLSearchParams : ke, Nn = typeof FormData < "u" ? FormData : null, Fn = typeof Blob < "u" ? Blob : null, Dn = {
|
|
483
482
|
isBrowser: !0,
|
|
484
483
|
classes: {
|
|
485
|
-
URLSearchParams:
|
|
484
|
+
URLSearchParams: Un,
|
|
486
485
|
FormData: Nn,
|
|
487
486
|
Blob: Fn
|
|
488
487
|
},
|
|
489
488
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
490
|
-
},
|
|
491
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn =
|
|
489
|
+
}, Ce = typeof window < "u" && typeof document < "u", ge = typeof navigator == "object" && navigator || void 0, vn = Ce && (!ge || ["ReactNative", "NativeScript", "NS"].indexOf(ge.product) < 0), In = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
490
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn = Ce && window.location.href || "http://localhost", jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
492
491
|
__proto__: null,
|
|
493
|
-
hasBrowserEnv:
|
|
492
|
+
hasBrowserEnv: Ce,
|
|
494
493
|
hasStandardBrowserEnv: vn,
|
|
495
494
|
hasStandardBrowserWebWorkerEnv: In,
|
|
496
|
-
navigator:
|
|
495
|
+
navigator: ge,
|
|
497
496
|
origin: Bn
|
|
498
497
|
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
499
498
|
...jn,
|
|
@@ -519,7 +518,7 @@ function Hn(e) {
|
|
|
519
518
|
s = n[r], t[s] = e[s];
|
|
520
519
|
return t;
|
|
521
520
|
}
|
|
522
|
-
function
|
|
521
|
+
function wt(e) {
|
|
523
522
|
function t(n, r, o, s) {
|
|
524
523
|
let i = n[s++];
|
|
525
524
|
if (i === "__proto__") return !0;
|
|
@@ -545,12 +544,12 @@ function $n(e, t, n) {
|
|
|
545
544
|
return (n || JSON.stringify)(e);
|
|
546
545
|
}
|
|
547
546
|
const W = {
|
|
548
|
-
transitional:
|
|
547
|
+
transitional: yt,
|
|
549
548
|
adapter: ["xhr", "http", "fetch"],
|
|
550
549
|
transformRequest: [function(t, n) {
|
|
551
550
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = a.isObject(t);
|
|
552
551
|
if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
553
|
-
return o ? JSON.stringify(
|
|
552
|
+
return o ? JSON.stringify(wt(t)) : t;
|
|
554
553
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
555
554
|
return t;
|
|
556
555
|
if (a.isArrayBufferView(t))
|
|
@@ -638,7 +637,7 @@ const zn = a.toObjectSet([
|
|
|
638
637
|
`).forEach(function(i) {
|
|
639
638
|
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && zn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
640
639
|
}), t;
|
|
641
|
-
},
|
|
640
|
+
}, ve = Symbol("internals");
|
|
642
641
|
function B(e) {
|
|
643
642
|
return e && String(e).trim().toLowerCase();
|
|
644
643
|
}
|
|
@@ -793,7 +792,7 @@ let _ = class {
|
|
|
793
792
|
return n.forEach((o) => r.set(o)), r;
|
|
794
793
|
}
|
|
795
794
|
static accessor(t) {
|
|
796
|
-
const r = (this[
|
|
795
|
+
const r = (this[ve] = this[ve] = {
|
|
797
796
|
accessors: {}
|
|
798
797
|
}).accessors, o = this.prototype;
|
|
799
798
|
function s(i) {
|
|
@@ -821,7 +820,7 @@ function de(e, t) {
|
|
|
821
820
|
s = c.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
822
821
|
}), o.normalize(), s;
|
|
823
822
|
}
|
|
824
|
-
function
|
|
823
|
+
function gt(e) {
|
|
825
824
|
return !!(e && e.__CANCEL__);
|
|
826
825
|
}
|
|
827
826
|
function I(e, t, n) {
|
|
@@ -830,7 +829,7 @@ function I(e, t, n) {
|
|
|
830
829
|
a.inherits(I, y, {
|
|
831
830
|
__CANCEL__: !0
|
|
832
831
|
});
|
|
833
|
-
function
|
|
832
|
+
function bt(e, t, n) {
|
|
834
833
|
const r = n.config.validateStatus;
|
|
835
834
|
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
836
835
|
"Request failed with status code " + n.status,
|
|
@@ -891,14 +890,14 @@ const ee = (e, t, n = 3) => {
|
|
|
891
890
|
};
|
|
892
891
|
e(d);
|
|
893
892
|
}, n);
|
|
894
|
-
},
|
|
893
|
+
}, Ie = (e, t) => {
|
|
895
894
|
const n = e != null;
|
|
896
895
|
return [(r) => t[0]({
|
|
897
896
|
lengthComputable: n,
|
|
898
897
|
total: e,
|
|
899
898
|
loaded: r
|
|
900
899
|
}), t[1]];
|
|
901
|
-
},
|
|
900
|
+
}, Be = (e) => (...t) => a.asap(() => e(...t)), Yn = 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)))(
|
|
902
901
|
new URL(T.origin),
|
|
903
902
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
904
903
|
) : () => !0, er = T.hasStandardBrowserEnv ? (
|
|
@@ -934,11 +933,11 @@ function tr(e) {
|
|
|
934
933
|
function nr(e, t) {
|
|
935
934
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
936
935
|
}
|
|
937
|
-
function
|
|
936
|
+
function Et(e, t, n) {
|
|
938
937
|
let r = !tr(t);
|
|
939
938
|
return e && (r || n == !1) ? nr(e, t) : t;
|
|
940
939
|
}
|
|
941
|
-
const
|
|
940
|
+
const je = (e) => e instanceof _ ? { ...e } : e;
|
|
942
941
|
function F(e, t) {
|
|
943
942
|
t = t || {};
|
|
944
943
|
const n = {};
|
|
@@ -996,17 +995,17 @@ function F(e, t) {
|
|
|
996
995
|
socketPath: i,
|
|
997
996
|
responseEncoding: i,
|
|
998
997
|
validateStatus: c,
|
|
999
|
-
headers: (l, u, d) => o(
|
|
998
|
+
headers: (l, u, d) => o(je(l), je(u), d, !0)
|
|
1000
999
|
};
|
|
1001
1000
|
return a.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
1002
1001
|
const d = f[u] || o, w = d(e[u], t[u], u);
|
|
1003
1002
|
a.isUndefined(w) && d !== c || (n[u] = w);
|
|
1004
1003
|
}), n;
|
|
1005
1004
|
}
|
|
1006
|
-
const
|
|
1005
|
+
const St = (e) => {
|
|
1007
1006
|
const t = F({}, e);
|
|
1008
1007
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
|
|
1009
|
-
t.headers = i = _.from(i), t.url =
|
|
1008
|
+
t.headers = i = _.from(i), t.url = mt(Et(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
1010
1009
|
"Authorization",
|
|
1011
1010
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1012
1011
|
);
|
|
@@ -1026,7 +1025,7 @@ const Et = (e) => {
|
|
|
1026
1025
|
return t;
|
|
1027
1026
|
}, rr = typeof XMLHttpRequest < "u", or = rr && function(e) {
|
|
1028
1027
|
return new Promise(function(n, r) {
|
|
1029
|
-
const o =
|
|
1028
|
+
const o = St(e);
|
|
1030
1029
|
let s = o.data;
|
|
1031
1030
|
const i = _.from(o.headers).normalize();
|
|
1032
1031
|
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = o, u, d, w, g, p;
|
|
@@ -1048,10 +1047,10 @@ const Et = (e) => {
|
|
|
1048
1047
|
config: e,
|
|
1049
1048
|
request: h
|
|
1050
1049
|
};
|
|
1051
|
-
|
|
1052
|
-
n(
|
|
1053
|
-
}, function(
|
|
1054
|
-
r(
|
|
1050
|
+
bt(function(L) {
|
|
1051
|
+
n(L), m();
|
|
1052
|
+
}, function(L) {
|
|
1053
|
+
r(L), m();
|
|
1055
1054
|
}, O), h = null;
|
|
1056
1055
|
}
|
|
1057
1056
|
"onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
|
|
@@ -1062,7 +1061,7 @@ const Et = (e) => {
|
|
|
1062
1061
|
r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
|
|
1063
1062
|
}, h.ontimeout = function() {
|
|
1064
1063
|
let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1065
|
-
const O = o.transitional ||
|
|
1064
|
+
const O = o.transitional || yt;
|
|
1066
1065
|
o.timeoutErrorMessage && (C = o.timeoutErrorMessage), r(new y(
|
|
1067
1066
|
C,
|
|
1068
1067
|
O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
@@ -1132,7 +1131,7 @@ const Et = (e) => {
|
|
|
1132
1131
|
} finally {
|
|
1133
1132
|
await t.cancel();
|
|
1134
1133
|
}
|
|
1135
|
-
},
|
|
1134
|
+
}, qe = (e, t, n, r) => {
|
|
1136
1135
|
const o = ar(e, t);
|
|
1137
1136
|
let s = 0, i, c = (f) => {
|
|
1138
1137
|
i || (i = !0, r && r(f));
|
|
@@ -1161,13 +1160,13 @@ const Et = (e) => {
|
|
|
1161
1160
|
}, {
|
|
1162
1161
|
highWaterMark: 2
|
|
1163
1162
|
});
|
|
1164
|
-
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1163
|
+
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Rt = ae && typeof ReadableStream == "function", ur = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Tt = (e, ...t) => {
|
|
1165
1164
|
try {
|
|
1166
1165
|
return !!e(...t);
|
|
1167
1166
|
} catch {
|
|
1168
1167
|
return !1;
|
|
1169
1168
|
}
|
|
1170
|
-
}, lr =
|
|
1169
|
+
}, lr = Rt && Tt(() => {
|
|
1171
1170
|
let e = !1;
|
|
1172
1171
|
const t = new Request(T.origin, {
|
|
1173
1172
|
body: new ReadableStream(),
|
|
@@ -1177,8 +1176,8 @@ const Et = (e) => {
|
|
|
1177
1176
|
}
|
|
1178
1177
|
}).headers.has("Content-Type");
|
|
1179
1178
|
return e && !t;
|
|
1180
|
-
}),
|
|
1181
|
-
stream:
|
|
1179
|
+
}), Me = 64 * 1024, be = Rt && Tt(() => a.isReadableStream(new Response("").body)), te = {
|
|
1180
|
+
stream: be && ((e) => e.body)
|
|
1182
1181
|
};
|
|
1183
1182
|
ae && ((e) => {
|
|
1184
1183
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
@@ -1218,7 +1217,7 @@ const fr = async (e) => {
|
|
|
1218
1217
|
headers: u,
|
|
1219
1218
|
withCredentials: d = "same-origin",
|
|
1220
1219
|
fetchOptions: w
|
|
1221
|
-
} =
|
|
1220
|
+
} = St(e);
|
|
1222
1221
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1223
1222
|
let g = sr([o, s && s.toAbortSignal()], i), p;
|
|
1224
1223
|
const m = g && g.unsubscribe && (() => {
|
|
@@ -1233,11 +1232,11 @@ const fr = async (e) => {
|
|
|
1233
1232
|
duplex: "half"
|
|
1234
1233
|
}), P;
|
|
1235
1234
|
if (a.isFormData(r) && (P = O.headers.get("content-type")) && u.setContentType(P), O.body) {
|
|
1236
|
-
const [
|
|
1235
|
+
const [L, K] = Ie(
|
|
1237
1236
|
h,
|
|
1238
|
-
ee(
|
|
1237
|
+
ee(Be(f))
|
|
1239
1238
|
);
|
|
1240
|
-
r =
|
|
1239
|
+
r = qe(O.body, Me, L, K);
|
|
1241
1240
|
}
|
|
1242
1241
|
}
|
|
1243
1242
|
a.isString(d) || (d = d ? "include" : "omit");
|
|
@@ -1252,18 +1251,18 @@ const fr = async (e) => {
|
|
|
1252
1251
|
credentials: E ? d : void 0
|
|
1253
1252
|
});
|
|
1254
1253
|
let S = await fetch(p, w);
|
|
1255
|
-
const R =
|
|
1256
|
-
if (
|
|
1254
|
+
const R = be && (l === "stream" || l === "response");
|
|
1255
|
+
if (be && (c || R && m)) {
|
|
1257
1256
|
const O = {};
|
|
1258
|
-
["status", "statusText", "headers"].forEach((
|
|
1259
|
-
O[
|
|
1257
|
+
["status", "statusText", "headers"].forEach((Le) => {
|
|
1258
|
+
O[Le] = S[Le];
|
|
1260
1259
|
});
|
|
1261
|
-
const P = a.toFiniteNumber(S.headers.get("content-length")), [
|
|
1260
|
+
const P = a.toFiniteNumber(S.headers.get("content-length")), [L, K] = c && Ie(
|
|
1262
1261
|
P,
|
|
1263
|
-
ee(
|
|
1262
|
+
ee(Be(c), !0)
|
|
1264
1263
|
) || [];
|
|
1265
1264
|
S = new Response(
|
|
1266
|
-
|
|
1265
|
+
qe(S.body, Me, L, () => {
|
|
1267
1266
|
K && K(), m && m();
|
|
1268
1267
|
}),
|
|
1269
1268
|
O
|
|
@@ -1272,7 +1271,7 @@ const fr = async (e) => {
|
|
|
1272
1271
|
l = l || "text";
|
|
1273
1272
|
let C = await te[a.findKey(te, l) || "text"](S, e);
|
|
1274
1273
|
return !R && m && m(), await new Promise((O, P) => {
|
|
1275
|
-
|
|
1274
|
+
bt(O, P, {
|
|
1276
1275
|
data: C,
|
|
1277
1276
|
headers: _.from(S.headers),
|
|
1278
1277
|
status: S.status,
|
|
@@ -1289,12 +1288,12 @@ const fr = async (e) => {
|
|
|
1289
1288
|
}
|
|
1290
1289
|
) : y.from(E, E && E.code, e, p);
|
|
1291
1290
|
}
|
|
1292
|
-
}),
|
|
1291
|
+
}), Ee = {
|
|
1293
1292
|
http: kn,
|
|
1294
1293
|
xhr: or,
|
|
1295
1294
|
fetch: pr
|
|
1296
1295
|
};
|
|
1297
|
-
a.forEach(
|
|
1296
|
+
a.forEach(Ee, (e, t) => {
|
|
1298
1297
|
if (e) {
|
|
1299
1298
|
try {
|
|
1300
1299
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1303,7 +1302,7 @@ a.forEach(be, (e, t) => {
|
|
|
1303
1302
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1304
1303
|
}
|
|
1305
1304
|
});
|
|
1306
|
-
const
|
|
1305
|
+
const He = (e) => `- ${e}`, hr = (e) => a.isFunction(e) || e === null || e === !1, Ot = {
|
|
1307
1306
|
getAdapter: (e) => {
|
|
1308
1307
|
e = a.isArray(e) ? e : [e];
|
|
1309
1308
|
const { length: t } = e;
|
|
@@ -1312,7 +1311,7 @@ const Me = (e) => `- ${e}`, hr = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1312
1311
|
for (let s = 0; s < t; s++) {
|
|
1313
1312
|
n = e[s];
|
|
1314
1313
|
let i;
|
|
1315
|
-
if (r = n, !hr(n) && (r =
|
|
1314
|
+
if (r = n, !hr(n) && (r = Ee[(i = String(n)).toLowerCase()], r === void 0))
|
|
1316
1315
|
throw new y(`Unknown adapter '${i}'`);
|
|
1317
1316
|
if (r)
|
|
1318
1317
|
break;
|
|
@@ -1323,8 +1322,8 @@ const Me = (e) => `- ${e}`, hr = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1323
1322
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1324
1323
|
);
|
|
1325
1324
|
let i = t ? s.length > 1 ? `since :
|
|
1326
|
-
` + s.map(
|
|
1327
|
-
`) : " " +
|
|
1325
|
+
` + s.map(He).join(`
|
|
1326
|
+
`) : " " + He(s[0]) : "as no adapter specified";
|
|
1328
1327
|
throw new y(
|
|
1329
1328
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1330
1329
|
"ERR_NOT_SUPPORT"
|
|
@@ -1332,40 +1331,40 @@ const Me = (e) => `- ${e}`, hr = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1332
1331
|
}
|
|
1333
1332
|
return r;
|
|
1334
1333
|
},
|
|
1335
|
-
adapters:
|
|
1334
|
+
adapters: Ee
|
|
1336
1335
|
};
|
|
1337
1336
|
function pe(e) {
|
|
1338
1337
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1339
1338
|
throw new I(null, e);
|
|
1340
1339
|
}
|
|
1341
|
-
function
|
|
1340
|
+
function $e(e) {
|
|
1342
1341
|
return pe(e), e.headers = _.from(e.headers), e.data = de.call(
|
|
1343
1342
|
e,
|
|
1344
1343
|
e.transformRequest
|
|
1345
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1344
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ot.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
|
|
1346
1345
|
return pe(e), r.data = de.call(
|
|
1347
1346
|
e,
|
|
1348
1347
|
e.transformResponse,
|
|
1349
1348
|
r
|
|
1350
1349
|
), r.headers = _.from(r.headers), r;
|
|
1351
1350
|
}, function(r) {
|
|
1352
|
-
return
|
|
1351
|
+
return gt(r) || (pe(e), r && r.response && (r.response.data = de.call(
|
|
1353
1352
|
e,
|
|
1354
1353
|
e.transformResponse,
|
|
1355
1354
|
r.response
|
|
1356
1355
|
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1357
1356
|
});
|
|
1358
1357
|
}
|
|
1359
|
-
const
|
|
1358
|
+
const At = "1.11.0", ce = {};
|
|
1360
1359
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1361
1360
|
ce[e] = function(r) {
|
|
1362
1361
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1363
1362
|
};
|
|
1364
1363
|
});
|
|
1365
|
-
const
|
|
1364
|
+
const ze = {};
|
|
1366
1365
|
ce.transitional = function(t, n, r) {
|
|
1367
1366
|
function o(s, i) {
|
|
1368
|
-
return "[Axios v" +
|
|
1367
|
+
return "[Axios v" + At + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
|
|
1369
1368
|
}
|
|
1370
1369
|
return (s, i, c) => {
|
|
1371
1370
|
if (t === !1)
|
|
@@ -1373,7 +1372,7 @@ ce.transitional = function(t, n, r) {
|
|
|
1373
1372
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1374
1373
|
y.ERR_DEPRECATED
|
|
1375
1374
|
);
|
|
1376
|
-
return n &&
|
|
1375
|
+
return n && !ze[i] && (ze[i] = !0), t ? t(s, i, c) : !0;
|
|
1377
1376
|
};
|
|
1378
1377
|
};
|
|
1379
1378
|
ce.spelling = function(t) {
|
|
@@ -1403,8 +1402,8 @@ const Z = {
|
|
|
1403
1402
|
let N = class {
|
|
1404
1403
|
constructor(t) {
|
|
1405
1404
|
this.defaults = t || {}, this.interceptors = {
|
|
1406
|
-
request: new
|
|
1407
|
-
response: new
|
|
1405
|
+
request: new De(),
|
|
1406
|
+
response: new De()
|
|
1408
1407
|
};
|
|
1409
1408
|
}
|
|
1410
1409
|
/**
|
|
@@ -1469,7 +1468,7 @@ let N = class {
|
|
|
1469
1468
|
});
|
|
1470
1469
|
let u, d = 0, w;
|
|
1471
1470
|
if (!f) {
|
|
1472
|
-
const p = [
|
|
1471
|
+
const p = [$e.bind(this), void 0];
|
|
1473
1472
|
for (p.unshift(...c), p.push(...l), w = p.length, u = Promise.resolve(n); d < w; )
|
|
1474
1473
|
u = u.then(p[d++], p[d++]);
|
|
1475
1474
|
return u;
|
|
@@ -1486,7 +1485,7 @@ let N = class {
|
|
|
1486
1485
|
}
|
|
1487
1486
|
}
|
|
1488
1487
|
try {
|
|
1489
|
-
u =
|
|
1488
|
+
u = $e.call(this, g);
|
|
1490
1489
|
} catch (p) {
|
|
1491
1490
|
return Promise.reject(p);
|
|
1492
1491
|
}
|
|
@@ -1496,8 +1495,8 @@ let N = class {
|
|
|
1496
1495
|
}
|
|
1497
1496
|
getUri(t) {
|
|
1498
1497
|
t = F(this.defaults, t);
|
|
1499
|
-
const n =
|
|
1500
|
-
return
|
|
1498
|
+
const n = Et(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1499
|
+
return mt(n, t.params, t.paramsSerializer);
|
|
1501
1500
|
}
|
|
1502
1501
|
};
|
|
1503
1502
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1524,7 +1523,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1524
1523
|
}
|
|
1525
1524
|
N.prototype[t] = n(), N.prototype[t + "Form"] = n(!0);
|
|
1526
1525
|
});
|
|
1527
|
-
let yr = class
|
|
1526
|
+
let yr = class _t {
|
|
1528
1527
|
constructor(t) {
|
|
1529
1528
|
if (typeof t != "function")
|
|
1530
1529
|
throw new TypeError("executor must be a function.");
|
|
@@ -1590,7 +1589,7 @@ let yr = class At {
|
|
|
1590
1589
|
static source() {
|
|
1591
1590
|
let t;
|
|
1592
1591
|
return {
|
|
1593
|
-
token: new
|
|
1592
|
+
token: new _t(function(o) {
|
|
1594
1593
|
t = o;
|
|
1595
1594
|
}),
|
|
1596
1595
|
cancel: t
|
|
@@ -1605,7 +1604,7 @@ function wr(e) {
|
|
|
1605
1604
|
function gr(e) {
|
|
1606
1605
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1607
1606
|
}
|
|
1608
|
-
const
|
|
1607
|
+
const Se = {
|
|
1609
1608
|
Continue: 100,
|
|
1610
1609
|
SwitchingProtocols: 101,
|
|
1611
1610
|
Processing: 102,
|
|
@@ -1670,21 +1669,21 @@ const Ee = {
|
|
|
1670
1669
|
NotExtended: 510,
|
|
1671
1670
|
NetworkAuthenticationRequired: 511
|
|
1672
1671
|
};
|
|
1673
|
-
Object.entries(
|
|
1674
|
-
|
|
1672
|
+
Object.entries(Se).forEach(([e, t]) => {
|
|
1673
|
+
Se[t] = e;
|
|
1675
1674
|
});
|
|
1676
|
-
function
|
|
1677
|
-
const t = new N(e), n =
|
|
1675
|
+
function xt(e) {
|
|
1676
|
+
const t = new N(e), n = rt(N.prototype.request, t);
|
|
1678
1677
|
return a.extend(n, N.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1679
|
-
return
|
|
1678
|
+
return xt(F(e, o));
|
|
1680
1679
|
}, n;
|
|
1681
1680
|
}
|
|
1682
|
-
const b =
|
|
1681
|
+
const b = xt(W);
|
|
1683
1682
|
b.Axios = N;
|
|
1684
1683
|
b.CanceledError = I;
|
|
1685
1684
|
b.CancelToken = yr;
|
|
1686
|
-
b.isCancel =
|
|
1687
|
-
b.VERSION =
|
|
1685
|
+
b.isCancel = gt;
|
|
1686
|
+
b.VERSION = At;
|
|
1688
1687
|
b.toFormData = ie;
|
|
1689
1688
|
b.AxiosError = y;
|
|
1690
1689
|
b.Cancel = b.CanceledError;
|
|
@@ -1695,27 +1694,27 @@ b.spread = wr;
|
|
|
1695
1694
|
b.isAxiosError = gr;
|
|
1696
1695
|
b.mergeConfig = F;
|
|
1697
1696
|
b.AxiosHeaders = _;
|
|
1698
|
-
b.formToJSON = (e) =>
|
|
1699
|
-
b.getAdapter =
|
|
1700
|
-
b.HttpStatusCode =
|
|
1697
|
+
b.formToJSON = (e) => wt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1698
|
+
b.getAdapter = Ot.getAdapter;
|
|
1699
|
+
b.HttpStatusCode = Se;
|
|
1701
1700
|
b.default = b;
|
|
1702
1701
|
const {
|
|
1703
|
-
Axios:
|
|
1704
|
-
AxiosError:
|
|
1705
|
-
CanceledError:
|
|
1706
|
-
isCancel:
|
|
1707
|
-
CancelToken:
|
|
1708
|
-
VERSION:
|
|
1709
|
-
all:
|
|
1710
|
-
Cancel:
|
|
1711
|
-
isAxiosError:
|
|
1712
|
-
spread:
|
|
1713
|
-
toFormData:
|
|
1714
|
-
AxiosHeaders:
|
|
1715
|
-
HttpStatusCode:
|
|
1716
|
-
formToJSON:
|
|
1717
|
-
getAdapter:
|
|
1718
|
-
mergeConfig:
|
|
1702
|
+
Axios: Xr,
|
|
1703
|
+
AxiosError: Gr,
|
|
1704
|
+
CanceledError: Zr,
|
|
1705
|
+
isCancel: Yr,
|
|
1706
|
+
CancelToken: eo,
|
|
1707
|
+
VERSION: to,
|
|
1708
|
+
all: no,
|
|
1709
|
+
Cancel: ro,
|
|
1710
|
+
isAxiosError: oo,
|
|
1711
|
+
spread: so,
|
|
1712
|
+
toFormData: io,
|
|
1713
|
+
AxiosHeaders: ao,
|
|
1714
|
+
HttpStatusCode: co,
|
|
1715
|
+
formToJSON: uo,
|
|
1716
|
+
getAdapter: lo,
|
|
1717
|
+
mergeConfig: fo
|
|
1719
1718
|
} = b;
|
|
1720
1719
|
/*! js-cookie v3.0.5 | MIT */
|
|
1721
1720
|
function Q(e) {
|
|
@@ -1737,7 +1736,7 @@ var br = {
|
|
|
1737
1736
|
);
|
|
1738
1737
|
}
|
|
1739
1738
|
};
|
|
1740
|
-
function
|
|
1739
|
+
function Re(e, t) {
|
|
1741
1740
|
function n(o, s, i) {
|
|
1742
1741
|
if (!(typeof document > "u")) {
|
|
1743
1742
|
i = Q({}, 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);
|
|
@@ -1775,10 +1774,10 @@ function Se(e, t) {
|
|
|
1775
1774
|
);
|
|
1776
1775
|
},
|
|
1777
1776
|
withAttributes: function(o) {
|
|
1778
|
-
return
|
|
1777
|
+
return Re(this.converter, Q({}, this.attributes, o));
|
|
1779
1778
|
},
|
|
1780
1779
|
withConverter: function(o) {
|
|
1781
|
-
return
|
|
1780
|
+
return Re(Q({}, this.converter, o), this.attributes);
|
|
1782
1781
|
}
|
|
1783
1782
|
},
|
|
1784
1783
|
{
|
|
@@ -1787,12 +1786,12 @@ function Se(e, t) {
|
|
|
1787
1786
|
}
|
|
1788
1787
|
);
|
|
1789
1788
|
}
|
|
1790
|
-
var Er =
|
|
1791
|
-
const
|
|
1789
|
+
var Er = Re(br, { path: "/" }), Je;
|
|
1790
|
+
const kt = typeof window < "u", Sr = (e) => typeof e == "string", Ve = () => +Date.now(), Te = () => {
|
|
1792
1791
|
};
|
|
1793
|
-
|
|
1794
|
-
function
|
|
1795
|
-
return typeof e == "function" ? e() :
|
|
1792
|
+
kt && ((Je = window == null ? void 0 : window.navigator) != null && Je.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1793
|
+
function Pe(e) {
|
|
1794
|
+
return typeof e == "function" ? e() : Ft(e);
|
|
1796
1795
|
}
|
|
1797
1796
|
function Rr(e, t) {
|
|
1798
1797
|
function n(...r) {
|
|
@@ -1803,12 +1802,12 @@ function Rr(e, t) {
|
|
|
1803
1802
|
return n;
|
|
1804
1803
|
}
|
|
1805
1804
|
function Tr(e, t = !0, n = !0, r = !1) {
|
|
1806
|
-
let o = 0, s, i = !0, c =
|
|
1805
|
+
let o = 0, s, i = !0, c = Te, f;
|
|
1807
1806
|
const l = () => {
|
|
1808
|
-
s && (clearTimeout(s), s = void 0, c(), c =
|
|
1807
|
+
s && (clearTimeout(s), s = void 0, c(), c = Te);
|
|
1809
1808
|
};
|
|
1810
1809
|
return (d) => {
|
|
1811
|
-
const w =
|
|
1810
|
+
const w = Pe(e), g = Date.now() - o, p = () => f = d();
|
|
1812
1811
|
return l(), w <= 0 ? (o = Date.now(), p()) : (g > w && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((m, h) => {
|
|
1813
1812
|
c = r ? h : m, s = setTimeout(() => {
|
|
1814
1813
|
o = Date.now(), i = !0, m(p()), l();
|
|
@@ -1820,63 +1819,63 @@ function Or(e) {
|
|
|
1820
1819
|
return e;
|
|
1821
1820
|
}
|
|
1822
1821
|
function Ar(e) {
|
|
1823
|
-
return
|
|
1822
|
+
return Dt() ? (vt(e), !0) : !1;
|
|
1824
1823
|
}
|
|
1825
1824
|
function _r(e) {
|
|
1826
1825
|
var t;
|
|
1827
|
-
const n =
|
|
1826
|
+
const n = Pe(e);
|
|
1828
1827
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
1829
1828
|
}
|
|
1830
|
-
const
|
|
1831
|
-
function
|
|
1829
|
+
const Ct = kt ? window : void 0;
|
|
1830
|
+
function We(...e) {
|
|
1832
1831
|
let t, n, r, o;
|
|
1833
|
-
if (Sr(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t =
|
|
1834
|
-
return
|
|
1832
|
+
if (Sr(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = Ct) : [t, n, r, o] = e, !t)
|
|
1833
|
+
return Te;
|
|
1835
1834
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
1836
1835
|
const s = [], i = () => {
|
|
1837
1836
|
s.forEach((u) => u()), s.length = 0;
|
|
1838
|
-
}, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f =
|
|
1837
|
+
}, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f = Ae(() => [_r(t), Pe(o)], ([u, d]) => {
|
|
1839
1838
|
i(), u && s.push(...n.flatMap((w) => r.map((g) => c(u, w, g, d))));
|
|
1840
1839
|
}, { immediate: !0, flush: "post" }), l = () => {
|
|
1841
1840
|
f(), i();
|
|
1842
1841
|
};
|
|
1843
1842
|
return Ar(l), l;
|
|
1844
1843
|
}
|
|
1845
|
-
const
|
|
1846
|
-
|
|
1844
|
+
const Ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Qe = "__vueuse_ssr_handlers__";
|
|
1845
|
+
Ke[Qe] = Ke[Qe] || {};
|
|
1847
1846
|
const xr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], kr = 6e4;
|
|
1848
1847
|
function Cr(e = kr, t = {}) {
|
|
1849
1848
|
const {
|
|
1850
1849
|
initialState: n = !1,
|
|
1851
1850
|
listenForVisibilityChange: r = !0,
|
|
1852
1851
|
events: o = xr,
|
|
1853
|
-
window: s =
|
|
1852
|
+
window: s = Ct,
|
|
1854
1853
|
eventFilter: i = Tr(50)
|
|
1855
|
-
} = t, c = Y(n), f = Y(
|
|
1854
|
+
} = t, c = Y(n), f = Y(Ve());
|
|
1856
1855
|
let l;
|
|
1857
1856
|
const u = Rr(i, () => {
|
|
1858
|
-
c.value = !1, f.value =
|
|
1857
|
+
c.value = !1, f.value = Ve(), clearTimeout(l), l = setTimeout(() => c.value = !0, e);
|
|
1859
1858
|
});
|
|
1860
1859
|
if (s) {
|
|
1861
1860
|
const d = s.document;
|
|
1862
1861
|
for (const w of o)
|
|
1863
|
-
|
|
1864
|
-
r &&
|
|
1862
|
+
We(s, w, u, { passive: !0 });
|
|
1863
|
+
r && We(d, "visibilitychange", () => {
|
|
1865
1864
|
d.hidden || u();
|
|
1866
1865
|
});
|
|
1867
1866
|
}
|
|
1868
1867
|
return l = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
|
|
1869
1868
|
}
|
|
1870
|
-
var
|
|
1869
|
+
var Xe;
|
|
1871
1870
|
(function(e) {
|
|
1872
1871
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
1873
|
-
})(
|
|
1874
|
-
var Pr = Object.defineProperty,
|
|
1872
|
+
})(Xe || (Xe = {}));
|
|
1873
|
+
var Pr = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Lr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable, Ze = (e, t, n) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nr = (e, t) => {
|
|
1875
1874
|
for (var n in t || (t = {}))
|
|
1876
|
-
|
|
1877
|
-
if (
|
|
1878
|
-
for (var n of
|
|
1879
|
-
|
|
1875
|
+
Lr.call(t, n) && Ze(e, n, t[n]);
|
|
1876
|
+
if (Ge)
|
|
1877
|
+
for (var n of Ge(t))
|
|
1878
|
+
Ur.call(t, n) && Ze(e, n, t[n]);
|
|
1880
1879
|
return e;
|
|
1881
1880
|
};
|
|
1882
1881
|
const Fr = {
|
|
@@ -1908,24 +1907,24 @@ const Fr = {
|
|
|
1908
1907
|
Nr({
|
|
1909
1908
|
linear: Or
|
|
1910
1909
|
}, Fr);
|
|
1911
|
-
let
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1910
|
+
let Oe;
|
|
1911
|
+
const Pt = { triggerProxySso: "triggerProxySso" }, Dr = () => {
|
|
1912
|
+
Oe = (e) => {
|
|
1914
1913
|
var n;
|
|
1915
1914
|
const { origin: t } = new URL(location.href);
|
|
1916
1915
|
(n = window.top) == null || n.postMessage(
|
|
1917
|
-
{ type:
|
|
1916
|
+
{ type: Pt.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
|
|
1918
1917
|
t
|
|
1919
1918
|
);
|
|
1920
1919
|
};
|
|
1921
1920
|
}, vr = (e) => {
|
|
1922
1921
|
window.top === window.self && window.addEventListener("message", (t) => {
|
|
1923
1922
|
const { type: n, data: r } = t.data;
|
|
1924
|
-
n ===
|
|
1923
|
+
n === Pt.triggerProxySso && (e == null || e(r));
|
|
1925
1924
|
});
|
|
1926
1925
|
};
|
|
1927
1926
|
window.top !== window.self && Dr();
|
|
1928
|
-
let
|
|
1927
|
+
let Lt = (e = 21) => {
|
|
1929
1928
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
1930
1929
|
for (; e--; ) {
|
|
1931
1930
|
let r = n[e] & 63;
|
|
@@ -1940,35 +1939,35 @@ const he = (e) => new URL(location.href).searchParams.get(e), D = {
|
|
|
1940
1939
|
// 清除登录信息
|
|
1941
1940
|
token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
|
|
1942
1941
|
// 通过code获取token
|
|
1943
|
-
}, { baseURL:
|
|
1942
|
+
}, { baseURL: Ye, noRedireLogin: Ir = !1 } = _e(), ne = location.origin + "/home", q = {
|
|
1944
1943
|
response_type: "code",
|
|
1945
1944
|
scope: "sever",
|
|
1946
1945
|
client_id: "sys",
|
|
1947
|
-
client_secret:
|
|
1946
|
+
client_secret: It("das123"),
|
|
1948
1947
|
state: +/* @__PURE__ */ new Date()
|
|
1949
|
-
},
|
|
1948
|
+
}, et = (e) => {
|
|
1950
1949
|
const t = new URL(window.location.href), n = new URLSearchParams(t.search);
|
|
1951
1950
|
e.forEach((r) => {
|
|
1952
1951
|
n.delete(r);
|
|
1953
1952
|
}), t.search = n.toString(), window.history.replaceState({}, "", t);
|
|
1954
|
-
}, Ut = Y(!1),
|
|
1953
|
+
}, Ut = Y(!1), Nt = (e) => {
|
|
1955
1954
|
if (e <= 0) return;
|
|
1956
1955
|
const { idle: t } = Cr(e);
|
|
1957
|
-
|
|
1956
|
+
Ae(
|
|
1958
1957
|
() => t.value,
|
|
1959
1958
|
(n) => {
|
|
1960
1959
|
n === !0 && (Ut.value = !0);
|
|
1961
1960
|
}
|
|
1962
1961
|
);
|
|
1963
1962
|
};
|
|
1964
|
-
localStorage.getItem("idelTime") &&
|
|
1965
|
-
let
|
|
1963
|
+
localStorage.getItem("idelTime") && Nt(Number(localStorage.getItem("idelTime")));
|
|
1964
|
+
let tt = "";
|
|
1966
1965
|
const Br = async () => {
|
|
1967
1966
|
const e = he("code") || "", t = he("redirect_url") || "/", n = he("kingdee_token") || "";
|
|
1968
1967
|
if (!e) return M();
|
|
1969
|
-
if (e ===
|
|
1970
|
-
return
|
|
1971
|
-
|
|
1968
|
+
if (e === tt)
|
|
1969
|
+
return et(["code", "state", "kingdee_token", "redirect_url"]), window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t)), M();
|
|
1970
|
+
tt = e, et(["code", "state", "kingdee_token", "redirect_url"]);
|
|
1972
1971
|
let r = {};
|
|
1973
1972
|
const o = {
|
|
1974
1973
|
grant_type: "authorization_code",
|
|
@@ -1977,11 +1976,11 @@ const Br = async () => {
|
|
|
1977
1976
|
client_secret: q.client_secret,
|
|
1978
1977
|
redirect_uri: ne,
|
|
1979
1978
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
1980
|
-
nonce:
|
|
1979
|
+
nonce: Lt()
|
|
1981
1980
|
};
|
|
1982
1981
|
n && (sessionStorage.setItem("kingdee_token", n), o.redirect_uri = `${o.redirect_uri}?kingdee_token=${n}`);
|
|
1983
1982
|
try {
|
|
1984
|
-
await b.create().get(D.token, { baseURL:
|
|
1983
|
+
await b.create().get(D.token, { baseURL: Ye });
|
|
1985
1984
|
} catch {
|
|
1986
1985
|
}
|
|
1987
1986
|
try {
|
|
@@ -1989,7 +1988,7 @@ const Br = async () => {
|
|
|
1989
1988
|
D.token,
|
|
1990
1989
|
{},
|
|
1991
1990
|
{
|
|
1992
|
-
baseURL:
|
|
1991
|
+
baseURL: Ye,
|
|
1993
1992
|
params: o,
|
|
1994
1993
|
headers: {
|
|
1995
1994
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
@@ -2003,19 +2002,19 @@ const Br = async () => {
|
|
|
2003
2002
|
refreshToken: c,
|
|
2004
2003
|
info: r.data
|
|
2005
2004
|
};
|
|
2006
|
-
$().save(l), await
|
|
2005
|
+
$().save(l), await nt(s);
|
|
2007
2006
|
const u = Number(f) - (/* @__PURE__ */ new Date()).getTime();
|
|
2008
|
-
return u && u > 0 && (
|
|
2007
|
+
return u && u > 0 && (Nt(u), u && localStorage.setItem("idelTime", u.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), s;
|
|
2009
2008
|
} catch {
|
|
2010
2009
|
return ue({ ...q, redirect_uri: ne });
|
|
2011
2010
|
}
|
|
2012
|
-
}, j = Y(!1),
|
|
2011
|
+
}, j = Y(!1), po = async (e) => {
|
|
2013
2012
|
if (e.public) return "";
|
|
2014
2013
|
if (Ut.value)
|
|
2015
2014
|
return ue({ ...q, redirect_uri: ne });
|
|
2016
2015
|
if (j.value)
|
|
2017
2016
|
return await new Promise(async (r) => {
|
|
2018
|
-
|
|
2017
|
+
Ae(
|
|
2019
2018
|
() => j.value,
|
|
2020
2019
|
(o) => {
|
|
2021
2020
|
if (!o) {
|
|
@@ -2042,27 +2041,33 @@ const Br = async () => {
|
|
|
2042
2041
|
const r = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
|
|
2043
2042
|
localStorage.removeItem("thirdLogouSource"), location.href = r;
|
|
2044
2043
|
}
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
if (Te) return Te(t);
|
|
2051
|
-
t.logout = "true", o && (t.locale = "locale");
|
|
2052
|
-
const s = Object.keys(t).filter((c) => c !== "client_secret").map((c) => `${c}=${t[c]}`).join("&"), i = `${r}${D.oauth}?${s}`;
|
|
2053
|
-
if (localStorage.removeItem("idelTime"), sessionStorage.clear(), $().remove(), jr())
|
|
2054
|
-
qr(i);
|
|
2055
|
-
else {
|
|
2044
|
+
};
|
|
2045
|
+
let me = !1;
|
|
2046
|
+
const ue = (e) => {
|
|
2047
|
+
if (!Ir && !me) {
|
|
2048
|
+
me = !0;
|
|
2056
2049
|
try {
|
|
2057
|
-
|
|
2058
|
-
|
|
2050
|
+
const t = { ...e }, { baseURL: n, ssoLocale: r } = _e();
|
|
2051
|
+
if (Oe) return Oe(t);
|
|
2052
|
+
t.logout = "true", r && (t.locale = "locale");
|
|
2053
|
+
const o = Object.keys(t).filter((i) => i !== "client_secret").map((i) => `${i}=${t[i]}`).join("&"), s = `${n}${D.oauth}?${o}`;
|
|
2054
|
+
if (localStorage.removeItem("idelTime"), sessionStorage.clear(), $().remove(), jr())
|
|
2055
|
+
qr(s);
|
|
2056
|
+
else {
|
|
2057
|
+
try {
|
|
2058
|
+
b.create().get(D.logoutCurpage, { baseURL: n });
|
|
2059
|
+
} catch {
|
|
2060
|
+
}
|
|
2061
|
+
window.__isAutoCloseApp = !1, location.replace(s);
|
|
2062
|
+
}
|
|
2063
|
+
} finally {
|
|
2064
|
+
me = !1;
|
|
2059
2065
|
}
|
|
2060
|
-
window.__isAutoCloseApp = !1, location.replace(i);
|
|
2061
2066
|
}
|
|
2062
2067
|
};
|
|
2063
2068
|
vr(ue);
|
|
2064
2069
|
const Mr = async (e) => {
|
|
2065
|
-
const { baseURL: t } =
|
|
2070
|
+
const { baseURL: t } = _e(), { refreshToken: n } = $().getData();
|
|
2066
2071
|
try {
|
|
2067
2072
|
await b.create().get(D.token, { baseURL: t });
|
|
2068
2073
|
} catch {
|
|
@@ -2079,7 +2084,7 @@ const Mr = async (e) => {
|
|
|
2079
2084
|
client_id: e.client_id,
|
|
2080
2085
|
client_secret: e.client_secret,
|
|
2081
2086
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
2082
|
-
nonce:
|
|
2087
|
+
nonce: Lt()
|
|
2083
2088
|
}
|
|
2084
2089
|
}
|
|
2085
2090
|
), { access_token: o = "", expires_in: s = 0, refresh_token: i = "" } = r.data, c = {
|
|
@@ -2088,7 +2093,7 @@ const Mr = async (e) => {
|
|
|
2088
2093
|
refreshToken: i,
|
|
2089
2094
|
info: r.data
|
|
2090
2095
|
};
|
|
2091
|
-
return $().save(c), await
|
|
2096
|
+
return $().save(c), await nt(o), o;
|
|
2092
2097
|
} catch {
|
|
2093
2098
|
return ue({ ...e, redirect_uri: ne });
|
|
2094
2099
|
}
|
|
@@ -2099,18 +2104,18 @@ const Mr = async (e) => {
|
|
|
2099
2104
|
refreshToken: le("refreshToken")
|
|
2100
2105
|
}),
|
|
2101
2106
|
save: (e) => {
|
|
2102
|
-
|
|
2107
|
+
jt(e.accessToken ?? "", {
|
|
2103
2108
|
accessTokenExpiredAt: e.accessTokenExpiredAt,
|
|
2104
2109
|
refreshToken: e.refreshToken
|
|
2105
2110
|
}), Mt(e);
|
|
2106
2111
|
},
|
|
2107
2112
|
remove: () => {
|
|
2108
|
-
|
|
2113
|
+
Bt(), qt();
|
|
2109
2114
|
}
|
|
2110
2115
|
});
|
|
2111
2116
|
export {
|
|
2112
2117
|
he as getQuery,
|
|
2113
|
-
|
|
2118
|
+
po as getToken,
|
|
2114
2119
|
Br as getTokenFromCode,
|
|
2115
2120
|
q as getTokenParams,
|
|
2116
2121
|
ue as login,
|