@das-fed/utils 7.0.6 → 7.0.7-dev.1

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.
Files changed (37) hide show
  1. package/api-services/modules/authentication/index.js +725 -743
  2. package/api-services/modules/authentication/index.js.gz +0 -0
  3. package/api-services/modules/contract/index.js +743 -725
  4. package/api-services/modules/contract/index.js.gz +0 -0
  5. package/api-services/modules/duty-manage/index.js +741 -723
  6. package/api-services/modules/duty-manage/index.js.gz +0 -0
  7. package/api-services/modules/file/index.js +748 -766
  8. package/api-services/modules/file/index.js.gz +0 -0
  9. package/api-services/modules/index.js +871 -857
  10. package/api-services/modules/index.js.gz +0 -0
  11. package/api-services/modules/iot/index.js +984 -1002
  12. package/api-services/modules/iot/index.js.gz +0 -0
  13. package/api-services/modules/justauth/index.js +744 -726
  14. package/api-services/modules/justauth/index.js.gz +0 -0
  15. package/api-services/modules/permission/index.js +646 -650
  16. package/api-services/modules/permission/index.js.gz +0 -0
  17. package/api-services/modules/portal/index.js +725 -743
  18. package/api-services/modules/portal/index.js.gz +0 -0
  19. package/api-services/modules/space-manage/index.js +725 -743
  20. package/api-services/modules/space-manage/index.js.gz +0 -0
  21. package/api-services/modules/super-admin/index.js +727 -745
  22. package/api-services/modules/super-admin/index.js.gz +0 -0
  23. package/api-services/modules/supplier/index.js +745 -727
  24. package/api-services/modules/supplier/index.js.gz +0 -0
  25. package/api-services/modules/supplychain-manage/index.js +725 -743
  26. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  27. package/api-services/modules/tool/index.js +725 -743
  28. package/api-services/modules/tool/index.js.gz +0 -0
  29. package/common-info/index.js +13 -12
  30. package/common-info/index.js.gz +0 -0
  31. package/common-info/type.d.ts +2 -0
  32. package/common-tools/platform-tools/index.d.ts +1 -1
  33. package/common-tools/platform-tools/index.js +22 -15
  34. package/create-api-service/sso/index.d.ts +2 -2
  35. package/create-api-service/sso/index.js +300 -300
  36. package/create-api-service/sso/index.js.gz +0 -0
  37. package/package.json +4 -4
@@ -9,37 +9,37 @@ function nt(e, t) {
9
9
  return e.apply(t, arguments);
10
10
  };
11
11
  }
12
- const { toString: Mt } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: se, toStringTag: rt } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
13
- const n = Mt.call(t);
12
+ const { toString: Ht } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: se, toStringTag: rt } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
13
+ const n = Ht.call(t);
14
14
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
15
- })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: B } = Array, H = ae("undefined");
16
- function V(e) {
17
- return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15
+ })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: B } = Array, $ = ae("undefined");
16
+ function W(e) {
17
+ return e !== null && !$(e) && e.constructor !== null && !$(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
18
18
  }
19
19
  const ot = x("ArrayBuffer");
20
- function Ht(e) {
20
+ function Mt(e) {
21
21
  let t;
22
22
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ot(e.buffer), t;
23
23
  }
24
- const $t = ae("string"), A = ae("function"), st = ae("number"), W = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, Z = (e) => {
24
+ const $t = ae("string"), A = ae("function"), st = ae("number"), K = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, Y = (e) => {
25
25
  if (ie(e) !== "object")
26
26
  return !1;
27
27
  const t = _e(e);
28
28
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(rt in e) && !(se in e);
29
29
  }, Jt = (e) => {
30
- if (!W(e) || V(e))
30
+ if (!K(e) || W(e))
31
31
  return !1;
32
32
  try {
33
33
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
34
34
  } catch {
35
35
  return !1;
36
36
  }
37
- }, Vt = x("Date"), Wt = x("File"), Kt = x("Blob"), Qt = x("FileList"), Xt = (e) => W(e) && A(e.pipe), Gt = (e) => {
37
+ }, Vt = x("Date"), Wt = x("File"), Kt = x("Blob"), Qt = x("FileList"), Xt = (e) => K(e) && A(e.pipe), Gt = (e) => {
38
38
  let t;
39
39
  return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
40
40
  t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
41
41
  }, Zt = x("URLSearchParams"), [Yt, en, tn, nn] = ["ReadableStream", "Request", "Response", "Headers"].map(x), rn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
42
- function K(e, t, { allOwnKeys: n = !1 } = {}) {
42
+ function Q(e, t, { allOwnKeys: n = !1 } = {}) {
43
43
  if (e === null || typeof e > "u")
44
44
  return;
45
45
  let r, o;
@@ -47,7 +47,7 @@ function K(e, t, { allOwnKeys: n = !1 } = {}) {
47
47
  for (r = 0, o = e.length; r < o; r++)
48
48
  t.call(null, e[r], r, e);
49
49
  else {
50
- if (V(e))
50
+ if (W(e))
51
51
  return;
52
52
  const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
53
53
  let c;
@@ -56,7 +56,7 @@ function K(e, t, { allOwnKeys: n = !1 } = {}) {
56
56
  }
57
57
  }
58
58
  function it(e, t) {
59
- if (V(e))
59
+ if (W(e))
60
60
  return null;
61
61
  t = t.toLowerCase();
62
62
  const n = Object.keys(e);
@@ -66,17 +66,17 @@ function it(e, t) {
66
66
  return o;
67
67
  return null;
68
68
  }
69
- const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, at = (e) => !H(e) && e !== L;
69
+ const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, at = (e) => !$(e) && e !== L;
70
70
  function me() {
71
71
  const { caseless: e } = at(this) && this || {}, t = {}, n = (r, o) => {
72
72
  const s = e && it(t, o) || o;
73
- Z(t[s]) && Z(r) ? t[s] = me(t[s], r) : Z(r) ? t[s] = me({}, r) : B(r) ? t[s] = r.slice() : t[s] = r;
73
+ Y(t[s]) && Y(r) ? t[s] = me(t[s], r) : Y(r) ? t[s] = me({}, r) : B(r) ? t[s] = r.slice() : t[s] = r;
74
74
  };
75
75
  for (let r = 0, o = arguments.length; r < o; r++)
76
- arguments[r] && K(arguments[r], n);
76
+ arguments[r] && Q(arguments[r], n);
77
77
  return t;
78
78
  }
79
- const on = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (o, s) => {
79
+ const on = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
80
80
  n && A(o) ? e[s] = nt(o, n) : e[s] = o;
81
81
  }, { allOwnKeys: r }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), an = (e, t, n, r) => {
82
82
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
@@ -92,11 +92,11 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (o, s) => {
92
92
  e = n !== !1 && _e(e);
93
93
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
94
94
  return t;
95
- }, un = (e, t, n) => {
95
+ }, ln = (e, t, n) => {
96
96
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
97
97
  const r = e.indexOf(t, n);
98
98
  return r !== -1 && r === n;
99
- }, ln = (e) => {
99
+ }, un = (e) => {
100
100
  if (!e) return null;
101
101
  if (B(e)) return e;
102
102
  let t = e.length;
@@ -125,7 +125,7 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (o, s) => {
125
125
  }
126
126
  ), Ue = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yn = x("RegExp"), ct = (e, t) => {
127
127
  const n = Object.getOwnPropertyDescriptors(e), r = {};
128
- K(n, (o, s) => {
128
+ Q(n, (o, s) => {
129
129
  let i;
130
130
  (i = t(o, s, e)) !== !1 && (r[s] = i || o);
131
131
  }), Object.defineProperties(e, r);
@@ -156,49 +156,49 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (o, s) => {
156
156
  function Sn(e) {
157
157
  return !!(e && A(e.append) && e[rt] === "FormData" && e[se]);
158
158
  }
159
- const Rn = (e) => {
159
+ const Tn = (e) => {
160
160
  const t = new Array(10), n = (r, o) => {
161
- if (W(r)) {
161
+ if (K(r)) {
162
162
  if (t.indexOf(r) >= 0)
163
163
  return;
164
- if (V(r))
164
+ if (W(r))
165
165
  return r;
166
166
  if (!("toJSON" in r)) {
167
167
  t[o] = r;
168
168
  const s = B(r) ? [] : {};
169
- return K(r, (i, c) => {
169
+ return Q(r, (i, c) => {
170
170
  const f = n(i, o + 1);
171
- !H(f) && (s[c] = f);
171
+ !$(f) && (s[c] = f);
172
172
  }), t[o] = void 0, s;
173
173
  }
174
174
  }
175
175
  return r;
176
176
  };
177
177
  return n(e, 0);
178
- }, Tn = x("AsyncFunction"), On = (e) => e && (W(e) || A(e)) && A(e.then) && A(e.catch), ut = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: o, data: s }) => {
178
+ }, Rn = x("AsyncFunction"), On = (e) => e && (K(e) || A(e)) && A(e.then) && A(e.catch), lt = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: o, data: s }) => {
179
179
  o === L && s === n && r.length && r.shift()();
180
180
  }, !1), (o) => {
181
181
  r.push(o), L.postMessage(n, "*");
182
182
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
183
183
  typeof setImmediate == "function",
184
184
  A(L.postMessage)
185
- ), An = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || ut, _n = (e) => e != null && A(e[se]), a = {
185
+ ), An = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || lt, _n = (e) => e != null && A(e[se]), a = {
186
186
  isArray: B,
187
187
  isArrayBuffer: ot,
188
- isBuffer: V,
188
+ isBuffer: W,
189
189
  isFormData: Gt,
190
- isArrayBufferView: Ht,
190
+ isArrayBufferView: Mt,
191
191
  isString: $t,
192
192
  isNumber: st,
193
193
  isBoolean: zt,
194
- isObject: W,
195
- isPlainObject: Z,
194
+ isObject: K,
195
+ isPlainObject: Y,
196
196
  isEmptyObject: Jt,
197
197
  isReadableStream: Yt,
198
198
  isRequest: en,
199
199
  isResponse: tn,
200
200
  isHeaders: nn,
201
- isUndefined: H,
201
+ isUndefined: $,
202
202
  isDate: Vt,
203
203
  isFile: Wt,
204
204
  isBlob: Kt,
@@ -208,7 +208,7 @@ const Rn = (e) => {
208
208
  isURLSearchParams: Zt,
209
209
  isTypedArray: fn,
210
210
  isFileList: Qt,
211
- forEach: K,
211
+ forEach: Q,
212
212
  merge: me,
213
213
  extend: on,
214
214
  trim: rn,
@@ -217,8 +217,8 @@ const Rn = (e) => {
217
217
  toFlatObject: cn,
218
218
  kindOf: ie,
219
219
  kindOfTest: x,
220
- endsWith: un,
221
- toArray: ln,
220
+ endsWith: ln,
221
+ toArray: un,
222
222
  forEachEntry: dn,
223
223
  matchAll: pn,
224
224
  isHTMLForm: hn,
@@ -235,10 +235,10 @@ const Rn = (e) => {
235
235
  global: L,
236
236
  isContextDefined: at,
237
237
  isSpecCompliantForm: Sn,
238
- toJSONObject: Rn,
239
- isAsyncFn: Tn,
238
+ toJSONObject: Tn,
239
+ isAsyncFn: Rn,
240
240
  isThenable: On,
241
- setImmediate: ut,
241
+ setImmediate: lt,
242
242
  asap: An,
243
243
  isIterable: _n
244
244
  };
@@ -266,7 +266,7 @@ a.inherits(y, Error, {
266
266
  };
267
267
  }
268
268
  });
269
- const lt = y.prototype, ft = {};
269
+ const ut = y.prototype, ft = {};
270
270
  [
271
271
  "ERR_BAD_OPTION_VALUE",
272
272
  "ERR_BAD_OPTION",
@@ -285,9 +285,9 @@ const lt = y.prototype, ft = {};
285
285
  ft[e] = { value: e };
286
286
  });
287
287
  Object.defineProperties(y, ft);
288
- Object.defineProperty(lt, "isAxiosError", { value: !0 });
288
+ Object.defineProperty(ut, "isAxiosError", { value: !0 });
289
289
  y.from = (e, t, n, r, o, s) => {
290
- const i = Object.create(lt);
290
+ const i = Object.create(ut);
291
291
  return a.toFlatObject(e, i, function(f) {
292
292
  return f !== Error.prototype;
293
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;
@@ -320,10 +320,10 @@ function ce(e, t, n) {
320
320
  }, !1, function(m, h) {
321
321
  return !a.isUndefined(h[m]);
322
322
  });
323
- const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
323
+ const r = n.metaTokens, o = n.visitor || l, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
324
324
  if (!a.isFunction(o))
325
325
  throw new TypeError("visitor must be a function");
326
- function l(p) {
326
+ function u(p) {
327
327
  if (p === null) return "";
328
328
  if (a.isDate(p))
329
329
  return p.toISOString();
@@ -333,25 +333,25 @@ function ce(e, t, n) {
333
333
  throw new y("Blob is not supported. Use a Buffer instead.");
334
334
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
335
335
  }
336
- function u(p, m, h) {
336
+ function l(p, m, h) {
337
337
  let E = p;
338
338
  if (p && !h && typeof p == "object") {
339
339
  if (a.endsWith(m, "{}"))
340
340
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
341
341
  else if (a.isArray(p) && Cn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
342
- return m = dt(m), E.forEach(function(R, k) {
343
- !(a.isUndefined(R) || R === null) && t.append(
342
+ return m = dt(m), E.forEach(function(T, k) {
343
+ !(a.isUndefined(T) || T === null) && t.append(
344
344
  // eslint-disable-next-line no-nested-ternary
345
345
  i === !0 ? Le([m], k, s) : i === null ? m : m + "[]",
346
- l(R)
346
+ u(T)
347
347
  );
348
348
  }), !1;
349
349
  }
350
- return ye(p) ? !0 : (t.append(Le(h, m, s), l(p)), !1);
350
+ return ye(p) ? !0 : (t.append(Le(h, m, s), u(p)), !1);
351
351
  }
352
352
  const d = [], w = Object.assign(kn, {
353
- defaultVisitor: u,
354
- convertValue: l,
353
+ defaultVisitor: l,
354
+ convertValue: u,
355
355
  isVisitable: ye
356
356
  });
357
357
  function g(p, m) {
@@ -494,14 +494,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", In
494
494
  hasStandardBrowserWebWorkerEnv: vn,
495
495
  navigator: we,
496
496
  origin: In
497
- }, Symbol.toStringTag, { value: "Module" })), T = {
497
+ }, Symbol.toStringTag, { value: "Module" })), R = {
498
498
  ...Bn,
499
499
  ...Fn
500
500
  };
501
501
  function jn(e, t) {
502
- return ce(e, new T.classes.URLSearchParams(), {
502
+ return ce(e, new R.classes.URLSearchParams(), {
503
503
  visitor: function(n, r, o, s) {
504
- return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
504
+ return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
505
505
  },
506
506
  ...t
507
507
  });
@@ -509,7 +509,7 @@ function jn(e, t) {
509
509
  function qn(e) {
510
510
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
511
511
  }
512
- function Mn(e) {
512
+ function Hn(e) {
513
513
  const t = {}, n = Object.keys(e);
514
514
  let r;
515
515
  const o = n.length;
@@ -523,7 +523,7 @@ function yt(e) {
523
523
  let i = n[s++];
524
524
  if (i === "__proto__") return !0;
525
525
  const c = Number.isFinite(+i), f = s >= n.length;
526
- return i = !i && a.isArray(o) ? o.length : i, f ? (a.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !c) : ((!o[i] || !a.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && a.isArray(o[i]) && (o[i] = Mn(o[i])), !c);
526
+ return i = !i && a.isArray(o) ? o.length : i, f ? (a.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !c) : ((!o[i] || !a.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && a.isArray(o[i]) && (o[i] = Hn(o[i])), !c);
527
527
  }
528
528
  if (a.isFormData(e) && a.isFunction(e.entries)) {
529
529
  const n = {};
@@ -533,7 +533,7 @@ function yt(e) {
533
533
  }
534
534
  return null;
535
535
  }
536
- function Hn(e, t, n) {
536
+ function Mn(e, t, n) {
537
537
  if (a.isString(e))
538
538
  try {
539
539
  return (t || JSON.parse)(e), a.trim(e);
@@ -543,7 +543,7 @@ function Hn(e, t, n) {
543
543
  }
544
544
  return (n || JSON.stringify)(e);
545
545
  }
546
- const Q = {
546
+ const X = {
547
547
  transitional: mt,
548
548
  adapter: ["xhr", "http", "fetch"],
549
549
  transformRequest: [function(t, n) {
@@ -569,10 +569,10 @@ const Q = {
569
569
  );
570
570
  }
571
571
  }
572
- return s || o ? (n.setContentType("application/json", !1), Hn(t)) : t;
572
+ return s || o ? (n.setContentType("application/json", !1), Mn(t)) : t;
573
573
  }],
574
574
  transformResponse: [function(t) {
575
- const n = this.transitional || Q.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
575
+ const n = this.transitional || X.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
576
576
  if (a.isResponse(t) || a.isReadableStream(t))
577
577
  return t;
578
578
  if (t && a.isString(t) && (r && !this.responseType || o)) {
@@ -596,8 +596,8 @@ const Q = {
596
596
  maxContentLength: -1,
597
597
  maxBodyLength: -1,
598
598
  env: {
599
- FormData: T.classes.FormData,
600
- Blob: T.classes.Blob
599
+ FormData: R.classes.FormData,
600
+ Blob: R.classes.Blob
601
601
  },
602
602
  validateStatus: function(t) {
603
603
  return t >= 200 && t < 300;
@@ -610,7 +610,7 @@ const Q = {
610
610
  }
611
611
  };
612
612
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
613
- Q.headers[e] = {};
613
+ X.headers[e] = {};
614
614
  });
615
615
  const $n = a.toObjectSet([
616
616
  "age",
@@ -641,8 +641,8 @@ const $n = a.toObjectSet([
641
641
  function q(e) {
642
642
  return e && String(e).trim().toLowerCase();
643
643
  }
644
- function Y(e) {
645
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(Y) : String(e);
644
+ function ee(e) {
645
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(ee) : String(e);
646
646
  }
647
647
  function Jn(e) {
648
648
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -682,24 +682,24 @@ let _ = class {
682
682
  }
683
683
  set(t, n, r) {
684
684
  const o = this;
685
- function s(c, f, l) {
686
- const u = q(f);
687
- if (!u)
685
+ function s(c, f, u) {
686
+ const l = q(f);
687
+ if (!l)
688
688
  throw new Error("header name must be a non-empty string");
689
- const d = a.findKey(o, u);
690
- (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || f] = Y(c));
689
+ const d = a.findKey(o, l);
690
+ (!d || o[d] === void 0 || u === !0 || u === void 0 && o[d] !== !1) && (o[d || f] = ee(c));
691
691
  }
692
- const i = (c, f) => a.forEach(c, (l, u) => s(l, u, f));
692
+ const i = (c, f) => a.forEach(c, (u, l) => s(u, l, f));
693
693
  if (a.isPlainObject(t) || t instanceof this.constructor)
694
694
  i(t, n);
695
695
  else if (a.isString(t) && (t = t.trim()) && !Vn(t))
696
696
  i(zn(t), n);
697
697
  else if (a.isObject(t) && a.isIterable(t)) {
698
- let c = {}, f, l;
699
- for (const u of t) {
700
- if (!a.isArray(u))
698
+ let c = {}, f, u;
699
+ for (const l of t) {
700
+ if (!a.isArray(l))
701
701
  throw TypeError("Object iterator must return a key-value pair");
702
- c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
702
+ c[u = l[0]] = (f = c[u]) ? a.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
703
703
  }
704
704
  i(c, n);
705
705
  } else
@@ -755,11 +755,11 @@ let _ = class {
755
755
  return a.forEach(this, (o, s) => {
756
756
  const i = a.findKey(r, s);
757
757
  if (i) {
758
- n[i] = Y(o), delete n[s];
758
+ n[i] = ee(o), delete n[s];
759
759
  return;
760
760
  }
761
761
  const c = t ? Wn(s) : String(s).trim();
762
- c !== s && delete n[s], n[c] = Y(o), r[c] = !0;
762
+ c !== s && delete n[s], n[c] = ee(o), r[c] = !0;
763
763
  }), this;
764
764
  }
765
765
  concat(...t) {
@@ -814,7 +814,7 @@ a.reduceDescriptors(_.prototype, ({ value: e }, t) => {
814
814
  });
815
815
  a.freezeMethods(_);
816
816
  function pe(e, t) {
817
- const n = this || Q, r = t || n, o = _.from(r.headers);
817
+ const n = this || X, r = t || n, o = _.from(r.headers);
818
818
  let s = r.data;
819
819
  return a.forEach(e, function(c) {
820
820
  s = c.call(n, s, o.normalize(), t ? t.status : void 0);
@@ -848,25 +848,25 @@ function Xn(e, t) {
848
848
  const n = new Array(e), r = new Array(e);
849
849
  let o = 0, s = 0, i;
850
850
  return t = t !== void 0 ? t : 1e3, function(f) {
851
- const l = Date.now(), u = r[s];
852
- i || (i = l), n[o] = f, r[o] = l;
851
+ const u = Date.now(), l = r[s];
852
+ i || (i = u), n[o] = f, r[o] = u;
853
853
  let d = s, w = 0;
854
854
  for (; d !== o; )
855
855
  w += n[d++], d = d % e;
856
- if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
856
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - i < t)
857
857
  return;
858
- const g = u && l - u;
858
+ const g = l && u - l;
859
859
  return g ? Math.round(w * 1e3 / g) : void 0;
860
860
  };
861
861
  }
862
862
  function Gn(e, t) {
863
863
  let n = 0, r = 1e3 / t, o, s;
864
- const i = (l, u = Date.now()) => {
865
- n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
864
+ const i = (u, l = Date.now()) => {
865
+ n = l, o = null, s && (clearTimeout(s), s = null), e(...u);
866
866
  };
867
- return [(...l) => {
868
- const u = Date.now(), d = u - n;
869
- d >= r ? i(l, u) : (o = l, s || (s = setTimeout(() => {
867
+ return [(...u) => {
868
+ const l = Date.now(), d = l - n;
869
+ d >= r ? i(u, l) : (o = u, s || (s = setTimeout(() => {
870
870
  s = null, i(o);
871
871
  }, r - d)));
872
872
  }, () => o && i(o)];
@@ -875,15 +875,15 @@ const re = (e, t, n = 3) => {
875
875
  let r = 0;
876
876
  const o = Xn(50, 250);
877
877
  return Gn((s) => {
878
- const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= c;
878
+ const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, u = o(f), l = i <= c;
879
879
  r = i;
880
880
  const d = {
881
881
  loaded: i,
882
882
  total: c,
883
883
  progress: c ? i / c : void 0,
884
884
  bytes: f,
885
- rate: l || void 0,
886
- estimated: l && c && u ? (c - i) / l : void 0,
885
+ rate: u || void 0,
886
+ estimated: u && c && l ? (c - i) / u : void 0,
887
887
  event: s,
888
888
  lengthComputable: c != null,
889
889
  [t ? "download" : "upload"]: !0
@@ -897,10 +897,10 @@ const re = (e, t, n = 3) => {
897
897
  total: e,
898
898
  loaded: r
899
899
  }), t[1]];
900
- }, Ie = (e) => (...t) => a.asap(() => e(...t)), Zn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
901
- new URL(T.origin),
902
- T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
903
- ) : () => !0, Yn = T.hasStandardBrowserEnv ? (
900
+ }, Ie = (e) => (...t) => a.asap(() => e(...t)), Zn = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
901
+ new URL(R.origin),
902
+ R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
903
+ ) : () => !0, Yn = R.hasStandardBrowserEnv ? (
904
904
  // Standard browser envs support document.cookie
905
905
  {
906
906
  write(e, t, n, r, o, s) {
@@ -941,30 +941,30 @@ const Be = (e) => e instanceof _ ? { ...e } : e;
941
941
  function F(e, t) {
942
942
  t = t || {};
943
943
  const n = {};
944
- function r(l, u, d, w) {
945
- return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: w }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
944
+ function r(u, l, d, w) {
945
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: w }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
946
946
  }
947
- function o(l, u, d, w) {
948
- if (a.isUndefined(u)) {
949
- if (!a.isUndefined(l))
950
- return r(void 0, l, d, w);
951
- } else return r(l, u, d, w);
947
+ function o(u, l, d, w) {
948
+ if (a.isUndefined(l)) {
949
+ if (!a.isUndefined(u))
950
+ return r(void 0, u, d, w);
951
+ } else return r(u, l, d, w);
952
952
  }
953
- function s(l, u) {
954
- if (!a.isUndefined(u))
955
- return r(void 0, u);
953
+ function s(u, l) {
954
+ if (!a.isUndefined(l))
955
+ return r(void 0, l);
956
956
  }
957
- function i(l, u) {
958
- if (a.isUndefined(u)) {
959
- if (!a.isUndefined(l))
960
- return r(void 0, l);
961
- } else return r(void 0, u);
957
+ function i(u, l) {
958
+ if (a.isUndefined(l)) {
959
+ if (!a.isUndefined(u))
960
+ return r(void 0, u);
961
+ } else return r(void 0, l);
962
962
  }
963
- function c(l, u, d) {
963
+ function c(u, l, d) {
964
964
  if (d in t)
965
- return r(l, u);
965
+ return r(u, l);
966
966
  if (d in e)
967
- return r(void 0, l);
967
+ return r(void 0, u);
968
968
  }
969
969
  const f = {
970
970
  url: s,
@@ -995,11 +995,11 @@ function F(e, t) {
995
995
  socketPath: i,
996
996
  responseEncoding: i,
997
997
  validateStatus: c,
998
- headers: (l, u, d) => o(Be(l), Be(u), d, !0)
998
+ headers: (u, l, d) => o(Be(u), Be(l), d, !0)
999
999
  };
1000
- return a.forEach(Object.keys({ ...e, ...t }), function(u) {
1001
- const d = f[u] || o, w = d(e[u], t[u], u);
1002
- a.isUndefined(w) && d !== c || (n[u] = w);
1000
+ return a.forEach(Object.keys({ ...e, ...t }), function(l) {
1001
+ const d = f[l] || o, w = d(e[l], t[l], l);
1002
+ a.isUndefined(w) && d !== c || (n[l] = w);
1003
1003
  }), n;
1004
1004
  }
1005
1005
  const Et = (e) => {
@@ -1011,16 +1011,16 @@ const Et = (e) => {
1011
1011
  );
1012
1012
  let f;
1013
1013
  if (a.isFormData(n)) {
1014
- if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1014
+ if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
1015
1015
  i.setContentType(void 0);
1016
1016
  else if ((f = i.getContentType()) !== !1) {
1017
- const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1018
- i.setContentType([l || "multipart/form-data", ...u].join("; "));
1017
+ const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1018
+ i.setContentType([u || "multipart/form-data", ...l].join("; "));
1019
1019
  }
1020
1020
  }
1021
- if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Zn(t.url))) {
1022
- const l = o && s && Yn.read(s);
1023
- l && i.set(o, l);
1021
+ if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Zn(t.url))) {
1022
+ const u = o && s && Yn.read(s);
1023
+ u && i.set(o, u);
1024
1024
  }
1025
1025
  return t;
1026
1026
  }, nr = typeof XMLHttpRequest < "u", rr = nr && function(e) {
@@ -1028,22 +1028,22 @@ const Et = (e) => {
1028
1028
  const o = Et(e);
1029
1029
  let s = o.data;
1030
1030
  const i = _.from(o.headers).normalize();
1031
- let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = o, u, d, w, g, p;
1031
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = o, l, d, w, g, p;
1032
1032
  function m() {
1033
- g && g(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
1033
+ g && g(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
1034
1034
  }
1035
1035
  let h = new XMLHttpRequest();
1036
1036
  h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1037
1037
  function E() {
1038
1038
  if (!h)
1039
1039
  return;
1040
- const R = _.from(
1040
+ const T = _.from(
1041
1041
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1042
1042
  ), O = {
1043
1043
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1044
1044
  status: h.status,
1045
1045
  statusText: h.statusText,
1046
- headers: R,
1046
+ headers: T,
1047
1047
  config: e,
1048
1048
  request: h
1049
1049
  };
@@ -1070,11 +1070,11 @@ const Et = (e) => {
1070
1070
  )), h = null;
1071
1071
  }, s === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(k, O) {
1072
1072
  h.setRequestHeader(O, k);
1073
- }), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), c && c !== "json" && (h.responseType = o.responseType), l && ([w, p] = re(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = re(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (u = (R) => {
1074
- h && (r(!R || R.type ? new j(null, e, h) : R), h.abort(), h = null);
1075
- }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1073
+ }), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), c && c !== "json" && (h.responseType = o.responseType), u && ([w, p] = re(u, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = re(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (l = (T) => {
1074
+ h && (r(!T || T.type ? new j(null, e, h) : T), h.abort(), h = null);
1075
+ }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1076
1076
  const S = Qn(o.url);
1077
- if (S && T.protocols.indexOf(S) === -1) {
1077
+ if (S && R.protocols.indexOf(S) === -1) {
1078
1078
  r(new y("Unsupported protocol " + S + ":", y.ERR_BAD_REQUEST, e));
1079
1079
  return;
1080
1080
  }
@@ -1084,22 +1084,22 @@ const Et = (e) => {
1084
1084
  const { length: n } = e = e ? e.filter(Boolean) : [];
1085
1085
  if (t || n) {
1086
1086
  let r = new AbortController(), o;
1087
- const s = function(l) {
1087
+ const s = function(u) {
1088
1088
  if (!o) {
1089
1089
  o = !0, c();
1090
- const u = l instanceof Error ? l : this.reason;
1091
- r.abort(u instanceof y ? u : new j(u instanceof Error ? u.message : u));
1090
+ const l = u instanceof Error ? u : this.reason;
1091
+ r.abort(l instanceof y ? l : new j(l instanceof Error ? l.message : l));
1092
1092
  }
1093
1093
  };
1094
1094
  let i = t && setTimeout(() => {
1095
1095
  i = null, s(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1096
1096
  }, t);
1097
1097
  const c = () => {
1098
- e && (i && clearTimeout(i), i = null, e.forEach((l) => {
1099
- l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
1098
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1099
+ u.unsubscribe ? u.unsubscribe(s) : u.removeEventListener("abort", s);
1100
1100
  }), e = null);
1101
1101
  };
1102
- e.forEach((l) => l.addEventListener("abort", s));
1102
+ e.forEach((u) => u.addEventListener("abort", s));
1103
1103
  const { signal: f } = r;
1104
1104
  return f.unsubscribe = () => a.asap(c), f;
1105
1105
  }
@@ -1139,19 +1139,19 @@ const Et = (e) => {
1139
1139
  return new ReadableStream({
1140
1140
  async pull(f) {
1141
1141
  try {
1142
- const { done: l, value: u } = await o.next();
1143
- if (l) {
1142
+ const { done: u, value: l } = await o.next();
1143
+ if (u) {
1144
1144
  c(), f.close();
1145
1145
  return;
1146
1146
  }
1147
- let d = u.byteLength;
1147
+ let d = l.byteLength;
1148
1148
  if (n) {
1149
1149
  let w = s += d;
1150
1150
  n(w);
1151
1151
  }
1152
- f.enqueue(new Uint8Array(u));
1153
- } catch (l) {
1154
- throw c(l), l;
1152
+ f.enqueue(new Uint8Array(l));
1153
+ } catch (u) {
1154
+ throw c(u), u;
1155
1155
  }
1156
1156
  },
1157
1157
  cancel(f) {
@@ -1160,15 +1160,15 @@ const Et = (e) => {
1160
1160
  }, {
1161
1161
  highWaterMark: 2
1162
1162
  });
1163
- }, ue = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", St = ue && typeof ReadableStream == "function", cr = ue && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Rt = (e, ...t) => {
1163
+ }, le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", St = le && typeof ReadableStream == "function", cr = le && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Tt = (e, ...t) => {
1164
1164
  try {
1165
1165
  return !!e(...t);
1166
1166
  } catch {
1167
1167
  return !1;
1168
1168
  }
1169
- }, ur = St && Rt(() => {
1169
+ }, lr = St && Tt(() => {
1170
1170
  let e = !1;
1171
- const t = new Request(T.origin, {
1171
+ const t = new Request(R.origin, {
1172
1172
  body: new ReadableStream(),
1173
1173
  method: "POST",
1174
1174
  get duplex() {
@@ -1176,23 +1176,23 @@ const Et = (e) => {
1176
1176
  }
1177
1177
  }).headers.has("Content-Type");
1178
1178
  return e && !t;
1179
- }), qe = 64 * 1024, ge = St && Rt(() => a.isReadableStream(new Response("").body)), oe = {
1179
+ }), qe = 64 * 1024, ge = St && Tt(() => a.isReadableStream(new Response("").body)), oe = {
1180
1180
  stream: ge && ((e) => e.body)
1181
1181
  };
1182
- ue && ((e) => {
1182
+ le && ((e) => {
1183
1183
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1184
1184
  !oe[t] && (oe[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1185
1185
  throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r);
1186
1186
  });
1187
1187
  });
1188
1188
  })(new Response());
1189
- const lr = async (e) => {
1189
+ const ur = async (e) => {
1190
1190
  if (e == null)
1191
1191
  return 0;
1192
1192
  if (a.isBlob(e))
1193
1193
  return e.size;
1194
1194
  if (a.isSpecCompliantForm(e))
1195
- return (await new Request(T.origin, {
1195
+ return (await new Request(R.origin, {
1196
1196
  method: "POST",
1197
1197
  body: e
1198
1198
  }).arrayBuffer()).byteLength;
@@ -1202,8 +1202,8 @@ const lr = async (e) => {
1202
1202
  return (await cr(e)).byteLength;
1203
1203
  }, fr = async (e, t) => {
1204
1204
  const n = a.toFiniteNumber(e.getContentLength());
1205
- return n ?? lr(t);
1206
- }, dr = ue && (async (e) => {
1205
+ return n ?? ur(t);
1206
+ }, dr = le && (async (e) => {
1207
1207
  let {
1208
1208
  url: t,
1209
1209
  method: n,
@@ -1213,30 +1213,30 @@ const lr = async (e) => {
1213
1213
  timeout: i,
1214
1214
  onDownloadProgress: c,
1215
1215
  onUploadProgress: f,
1216
- responseType: l,
1217
- headers: u,
1216
+ responseType: u,
1217
+ headers: l,
1218
1218
  withCredentials: d = "same-origin",
1219
1219
  fetchOptions: w
1220
1220
  } = Et(e);
1221
- l = l ? (l + "").toLowerCase() : "text";
1221
+ u = u ? (u + "").toLowerCase() : "text";
1222
1222
  let g = or([o, s && s.toAbortSignal()], i), p;
1223
1223
  const m = g && g.unsubscribe && (() => {
1224
1224
  g.unsubscribe();
1225
1225
  });
1226
1226
  let h;
1227
1227
  try {
1228
- if (f && ur && n !== "get" && n !== "head" && (h = await fr(u, r)) !== 0) {
1228
+ if (f && lr && n !== "get" && n !== "head" && (h = await fr(l, r)) !== 0) {
1229
1229
  let O = new Request(t, {
1230
1230
  method: "POST",
1231
1231
  body: r,
1232
1232
  duplex: "half"
1233
1233
  }), P;
1234
- if (a.isFormData(r) && (P = O.headers.get("content-type")) && u.setContentType(P), O.body) {
1235
- const [U, X] = ve(
1234
+ if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
1235
+ const [U, G] = ve(
1236
1236
  h,
1237
1237
  re(Ie(f))
1238
1238
  );
1239
- r = je(O.body, qe, U, X);
1239
+ r = je(O.body, qe, U, G);
1240
1240
  }
1241
1241
  }
1242
1242
  a.isString(d) || (d = d ? "include" : "omit");
@@ -1245,32 +1245,32 @@ const lr = async (e) => {
1245
1245
  ...w,
1246
1246
  signal: g,
1247
1247
  method: n.toUpperCase(),
1248
- headers: u.normalize().toJSON(),
1248
+ headers: l.normalize().toJSON(),
1249
1249
  body: r,
1250
1250
  duplex: "half",
1251
1251
  credentials: E ? d : void 0
1252
1252
  });
1253
1253
  let S = await fetch(p, w);
1254
- const R = ge && (l === "stream" || l === "response");
1255
- if (ge && (c || R && m)) {
1254
+ const T = ge && (u === "stream" || u === "response");
1255
+ if (ge && (c || T && m)) {
1256
1256
  const O = {};
1257
1257
  ["status", "statusText", "headers"].forEach((Pe) => {
1258
1258
  O[Pe] = S[Pe];
1259
1259
  });
1260
- const P = a.toFiniteNumber(S.headers.get("content-length")), [U, X] = c && ve(
1260
+ const P = a.toFiniteNumber(S.headers.get("content-length")), [U, G] = c && ve(
1261
1261
  P,
1262
1262
  re(Ie(c), !0)
1263
1263
  ) || [];
1264
1264
  S = new Response(
1265
1265
  je(S.body, qe, U, () => {
1266
- X && X(), m && m();
1266
+ G && G(), m && m();
1267
1267
  }),
1268
1268
  O
1269
1269
  );
1270
1270
  }
1271
- l = l || "text";
1272
- let k = await oe[a.findKey(oe, l) || "text"](S, e);
1273
- return !R && m && m(), await new Promise((O, P) => {
1271
+ u = u || "text";
1272
+ let k = await oe[a.findKey(oe, u) || "text"](S, e);
1273
+ return !T && m && m(), await new Promise((O, P) => {
1274
1274
  gt(O, P, {
1275
1275
  data: k,
1276
1276
  headers: _.from(S.headers),
@@ -1302,7 +1302,7 @@ a.forEach(be, (e, t) => {
1302
1302
  Object.defineProperty(e, "adapterName", { value: t });
1303
1303
  }
1304
1304
  });
1305
- const Me = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !1, Tt = {
1305
+ const He = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !1, Rt = {
1306
1306
  getAdapter: (e) => {
1307
1307
  e = a.isArray(e) ? e : [e];
1308
1308
  const { length: t } = e;
@@ -1322,8 +1322,8 @@ const Me = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
1322
1322
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1323
1323
  );
1324
1324
  let i = t ? s.length > 1 ? `since :
1325
- ` + s.map(Me).join(`
1326
- `) : " " + Me(s[0]) : "as no adapter specified";
1325
+ ` + s.map(He).join(`
1326
+ `) : " " + He(s[0]) : "as no adapter specified";
1327
1327
  throw new y(
1328
1328
  "There is no suitable adapter to dispatch the request " + i,
1329
1329
  "ERR_NOT_SUPPORT"
@@ -1337,11 +1337,11 @@ function he(e) {
1337
1337
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1338
1338
  throw new j(null, e);
1339
1339
  }
1340
- function He(e) {
1340
+ function Me(e) {
1341
1341
  return he(e), e.headers = _.from(e.headers), e.data = pe.call(
1342
1342
  e,
1343
1343
  e.transformRequest
1344
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Tt.getAdapter(e.adapter || Q.adapter)(e).then(function(r) {
1344
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rt.getAdapter(e.adapter || X.adapter)(e).then(function(r) {
1345
1345
  return he(e), r.data = pe.call(
1346
1346
  e,
1347
1347
  e.transformResponse,
@@ -1355,14 +1355,14 @@ function He(e) {
1355
1355
  ), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
1356
1356
  });
1357
1357
  }
1358
- const Ot = "1.11.0", le = {};
1358
+ const Ot = "1.11.0", ue = {};
1359
1359
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1360
- le[e] = function(r) {
1360
+ ue[e] = function(r) {
1361
1361
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1362
1362
  };
1363
1363
  });
1364
1364
  const $e = {};
1365
- le.transitional = function(t, n, r) {
1365
+ ue.transitional = function(t, n, r) {
1366
1366
  function o(s, i) {
1367
1367
  return "[Axios v" + Ot + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1368
1368
  }
@@ -1375,7 +1375,7 @@ le.transitional = function(t, n, r) {
1375
1375
  return n && !$e[i] && ($e[i] = !0), t ? t(s, i, c) : !0;
1376
1376
  };
1377
1377
  };
1378
- le.spelling = function(t) {
1378
+ ue.spelling = function(t) {
1379
1379
  return (n, r) => !0;
1380
1380
  };
1381
1381
  function hr(e, t, n) {
@@ -1395,10 +1395,10 @@ function hr(e, t, n) {
1395
1395
  throw new y("Unknown option " + s, y.ERR_BAD_OPTION);
1396
1396
  }
1397
1397
  }
1398
- const ee = {
1398
+ const te = {
1399
1399
  assertOptions: hr,
1400
- validators: le
1401
- }, C = ee.validators;
1400
+ validators: ue
1401
+ }, C = te.validators;
1402
1402
  let N = class {
1403
1403
  constructor(t) {
1404
1404
  this.defaults = t || {}, this.interceptors = {
@@ -1434,16 +1434,16 @@ let N = class {
1434
1434
  _request(t, n) {
1435
1435
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = F(this.defaults, n);
1436
1436
  const { transitional: r, paramsSerializer: o, headers: s } = n;
1437
- r !== void 0 && ee.assertOptions(r, {
1437
+ r !== void 0 && te.assertOptions(r, {
1438
1438
  silentJSONParsing: C.transitional(C.boolean),
1439
1439
  forcedJSONParsing: C.transitional(C.boolean),
1440
1440
  clarifyTimeoutError: C.transitional(C.boolean)
1441
1441
  }, !1), o != null && (a.isFunction(o) ? n.paramsSerializer = {
1442
1442
  serialize: o
1443
- } : ee.assertOptions(o, {
1443
+ } : te.assertOptions(o, {
1444
1444
  encode: C.function,
1445
1445
  serialize: C.function
1446
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ee.assertOptions(n, {
1446
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), te.assertOptions(n, {
1447
1447
  baseUrl: C.spelling("baseURL"),
1448
1448
  withXsrfToken: C.spelling("withXSRFToken")
1449
1449
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
@@ -1462,16 +1462,16 @@ let N = class {
1462
1462
  this.interceptors.request.forEach(function(m) {
1463
1463
  typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1464
1464
  });
1465
- const l = [];
1465
+ const u = [];
1466
1466
  this.interceptors.response.forEach(function(m) {
1467
- l.push(m.fulfilled, m.rejected);
1467
+ u.push(m.fulfilled, m.rejected);
1468
1468
  });
1469
- let u, d = 0, w;
1469
+ let l, d = 0, w;
1470
1470
  if (!f) {
1471
- const p = [He.bind(this), void 0];
1472
- for (p.unshift(...c), p.push(...l), w = p.length, u = Promise.resolve(n); d < w; )
1473
- u = u.then(p[d++], p[d++]);
1474
- return u;
1471
+ const p = [Me.bind(this), void 0];
1472
+ for (p.unshift(...c), p.push(...u), w = p.length, l = Promise.resolve(n); d < w; )
1473
+ l = l.then(p[d++], p[d++]);
1474
+ return l;
1475
1475
  }
1476
1476
  w = c.length;
1477
1477
  let g = n;
@@ -1485,13 +1485,13 @@ let N = class {
1485
1485
  }
1486
1486
  }
1487
1487
  try {
1488
- u = He.call(this, g);
1488
+ l = Me.call(this, g);
1489
1489
  } catch (p) {
1490
1490
  return Promise.reject(p);
1491
1491
  }
1492
- for (d = 0, w = l.length; d < w; )
1493
- u = u.then(l[d++], l[d++]);
1494
- return u;
1492
+ for (d = 0, w = u.length; d < w; )
1493
+ l = l.then(u[d++], u[d++]);
1494
+ return l;
1495
1495
  }
1496
1496
  getUri(t) {
1497
1497
  t = F(this.defaults, t);
@@ -1678,7 +1678,7 @@ function _t(e) {
1678
1678
  return _t(F(e, o));
1679
1679
  }, n;
1680
1680
  }
1681
- const b = _t(Q);
1681
+ const b = _t(X);
1682
1682
  b.Axios = N;
1683
1683
  b.CanceledError = j;
1684
1684
  b.CancelToken = mr;
@@ -1695,29 +1695,29 @@ b.isAxiosError = wr;
1695
1695
  b.mergeConfig = F;
1696
1696
  b.AxiosHeaders = _;
1697
1697
  b.formToJSON = (e) => yt(a.isHTMLForm(e) ? new FormData(e) : e);
1698
- b.getAdapter = Tt.getAdapter;
1698
+ b.getAdapter = Rt.getAdapter;
1699
1699
  b.HttpStatusCode = Ee;
1700
1700
  b.default = b;
1701
1701
  const {
1702
- Axios: Qr,
1703
- AxiosError: Xr,
1704
- CanceledError: Gr,
1705
- isCancel: Zr,
1706
- CancelToken: Yr,
1707
- VERSION: eo,
1708
- all: to,
1709
- Cancel: no,
1710
- isAxiosError: ro,
1711
- spread: oo,
1712
- toFormData: so,
1713
- AxiosHeaders: io,
1714
- HttpStatusCode: ao,
1715
- formToJSON: co,
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: lo,
1716
1716
  getAdapter: uo,
1717
- mergeConfig: lo
1717
+ mergeConfig: fo
1718
1718
  } = b;
1719
1719
  /*! js-cookie v3.0.5 | MIT */
1720
- function G(e) {
1720
+ function Z(e) {
1721
1721
  for (var t = 1; t < arguments.length; t++) {
1722
1722
  var n = arguments[t];
1723
1723
  for (var r in n)
@@ -1739,7 +1739,7 @@ var gr = {
1739
1739
  function Se(e, t) {
1740
1740
  function n(o, s, i) {
1741
1741
  if (!(typeof document > "u")) {
1742
- i = G({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1742
+ i = Z({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1743
1743
  var c = "";
1744
1744
  for (var f in i)
1745
1745
  i[f] && (c += "; " + f, i[f] !== !0 && (c += "=" + i[f].split(";")[0]));
@@ -1749,10 +1749,10 @@ function Se(e, t) {
1749
1749
  function r(o) {
1750
1750
  if (!(typeof document > "u" || arguments.length && !o)) {
1751
1751
  for (var s = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < s.length; c++) {
1752
- var f = s[c].split("="), l = f.slice(1).join("=");
1752
+ var f = s[c].split("="), u = f.slice(1).join("=");
1753
1753
  try {
1754
- var u = decodeURIComponent(f[0]);
1755
- if (i[u] = e.read(l, u), o === u)
1754
+ var l = decodeURIComponent(f[0]);
1755
+ if (i[l] = e.read(u, l), o === l)
1756
1756
  break;
1757
1757
  } catch {
1758
1758
  }
@@ -1768,16 +1768,16 @@ function Se(e, t) {
1768
1768
  n(
1769
1769
  o,
1770
1770
  "",
1771
- G({}, s, {
1771
+ Z({}, s, {
1772
1772
  expires: -1
1773
1773
  })
1774
1774
  );
1775
1775
  },
1776
1776
  withAttributes: function(o) {
1777
- return Se(this.converter, G({}, this.attributes, o));
1777
+ return Se(this.converter, Z({}, this.attributes, o));
1778
1778
  },
1779
1779
  withConverter: function(o) {
1780
- return Se(G({}, this.converter, o), this.attributes);
1780
+ return Se(Z({}, this.converter, o), this.attributes);
1781
1781
  }
1782
1782
  },
1783
1783
  {
@@ -1787,7 +1787,7 @@ function Se(e, t) {
1787
1787
  );
1788
1788
  }
1789
1789
  var br = Se(gr, { path: "/" }), ze;
1790
- const xt = typeof window < "u", Er = (e) => typeof e == "string", Je = () => +Date.now(), Re = () => {
1790
+ const xt = typeof window < "u", Er = (e) => typeof e == "string", Je = () => +Date.now(), Te = () => {
1791
1791
  };
1792
1792
  xt && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1793
1793
  function ke(e) {
@@ -1801,21 +1801,21 @@ function Sr(e, t) {
1801
1801
  }
1802
1802
  return n;
1803
1803
  }
1804
- function Rr(e, t = !0, n = !0, r = !1) {
1805
- let o = 0, s, i = !0, c = Re, f;
1806
- const l = () => {
1807
- s && (clearTimeout(s), s = void 0, c(), c = Re);
1804
+ function Tr(e, t = !0, n = !0, r = !1) {
1805
+ let o = 0, s, i = !0, c = Te, f;
1806
+ const u = () => {
1807
+ s && (clearTimeout(s), s = void 0, c(), c = Te);
1808
1808
  };
1809
1809
  return (d) => {
1810
1810
  const w = ke(e), g = Date.now() - o, p = () => f = d();
1811
- return l(), w <= 0 ? (o = Date.now(), p()) : (g > w && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((m, h) => {
1811
+ return u(), w <= 0 ? (o = Date.now(), p()) : (g > w && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((m, h) => {
1812
1812
  c = r ? h : m, s = setTimeout(() => {
1813
- o = Date.now(), i = !0, m(p()), l();
1813
+ o = Date.now(), i = !0, m(p()), u();
1814
1814
  }, Math.max(0, w - g));
1815
1815
  })), !n && !s && (s = setTimeout(() => i = !0, w)), i = !1, f);
1816
1816
  };
1817
1817
  }
1818
- function Tr(e) {
1818
+ function Rr(e) {
1819
1819
  return e;
1820
1820
  }
1821
1821
  function Or(e) {
@@ -1830,16 +1830,16 @@ const Ct = xt ? window : void 0;
1830
1830
  function Ve(...e) {
1831
1831
  let t, n, r, o;
1832
1832
  if (Er(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = Ct) : [t, n, r, o] = e, !t)
1833
- return Re;
1833
+ return Te;
1834
1834
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1835
1835
  const s = [], i = () => {
1836
- s.forEach((u) => u()), s.length = 0;
1837
- }, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f = Oe(() => [Ar(t), ke(o)], ([u, d]) => {
1838
- i(), u && s.push(...n.flatMap((w) => r.map((g) => c(u, w, g, d))));
1839
- }, { immediate: !0, flush: "post" }), l = () => {
1836
+ s.forEach((l) => l()), s.length = 0;
1837
+ }, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Oe(() => [Ar(t), ke(o)], ([l, d]) => {
1838
+ i(), l && s.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
1839
+ }, { immediate: !0, flush: "post" }), u = () => {
1840
1840
  f(), i();
1841
1841
  };
1842
- return Or(l), l;
1842
+ return Or(u), u;
1843
1843
  }
1844
1844
  const We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ke = "__vueuse_ssr_handlers__";
1845
1845
  We[Ke] = We[Ke] || {};
@@ -1850,21 +1850,21 @@ function Cr(e = xr, t = {}) {
1850
1850
  listenForVisibilityChange: r = !0,
1851
1851
  events: o = _r,
1852
1852
  window: s = Ct,
1853
- eventFilter: i = Rr(50)
1853
+ eventFilter: i = Tr(50)
1854
1854
  } = t, c = ne(n), f = ne(Je());
1855
- let l;
1856
- const u = Sr(i, () => {
1857
- c.value = !1, f.value = Je(), clearTimeout(l), l = setTimeout(() => c.value = !0, e);
1855
+ let u;
1856
+ const l = Sr(i, () => {
1857
+ c.value = !1, f.value = Je(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
1858
1858
  });
1859
1859
  if (s) {
1860
1860
  const d = s.document;
1861
1861
  for (const w of o)
1862
- Ve(s, w, u, { passive: !0 });
1862
+ Ve(s, w, l, { passive: !0 });
1863
1863
  r && Ve(d, "visibilitychange", () => {
1864
- d.hidden || u();
1864
+ d.hidden || l();
1865
1865
  });
1866
1866
  }
1867
- return l = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1867
+ return u = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1868
1868
  }
1869
1869
  var Qe;
1870
1870
  (function(e) {
@@ -1905,11 +1905,11 @@ const Nr = {
1905
1905
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1906
1906
  };
1907
1907
  Lr({
1908
- linear: Tr
1908
+ linear: Rr
1909
1909
  }, Nr);
1910
- let Te;
1910
+ let Re;
1911
1911
  const kt = { triggerProxySso: "triggerProxySso" }, Fr = () => {
1912
- Te = (e) => {
1912
+ Re = (e) => {
1913
1913
  var n;
1914
1914
  const { origin: t } = new URL(location.href);
1915
1915
  (n = window.top) == null || n.postMessage(
@@ -1932,14 +1932,14 @@ let Pt = (e = 21) => {
1932
1932
  }
1933
1933
  return t;
1934
1934
  };
1935
- const te = (e) => new URL(location.href).searchParams.get(e), I = {
1935
+ const M = (e) => new URL(location.href).searchParams.get(e), I = {
1936
1936
  oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
1937
1937
  // 重定向到登录页
1938
1938
  logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
1939
1939
  // 清除登录信息
1940
1940
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
1941
1941
  // 通过code获取token
1942
- }, { baseURL: Ze, noRedireLogin: vr = !1 } = Ae(), $ = location.origin + "/home", v = {
1942
+ }, { baseURL: Ze, noRedireLogin: vr = !1 } = Ae(), Ir = "/home", z = location.origin + Ir, v = {
1943
1943
  response_type: "code",
1944
1944
  scope: "sever",
1945
1945
  client_id: "sys",
@@ -1962,59 +1962,60 @@ const te = (e) => new URL(location.href).searchParams.get(e), I = {
1962
1962
  };
1963
1963
  localStorage.getItem("idelTime") && Lt(Number(localStorage.getItem("idelTime")));
1964
1964
  let et = "";
1965
- const Ir = async () => {
1966
- const e = te("code") || "", t = te("redirect_url") || "", n = te("kingdee_token") || "";
1965
+ const Br = async () => {
1966
+ const e = M("code") || "", t = M("redirect_url") || "/", n = M("kingdee_token") || "";
1967
1967
  if (!e) return D();
1968
- if (e === et)
1969
- return Ye(["code", "state", "kingdee_token", "redirect_url"]), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), D();
1970
- et = e, Ye(["code", "state", "kingdee_token", "redirect_url"]);
1971
- let r = {};
1972
- const o = {
1968
+ const r = M("loginType") || "";
1969
+ if (!localStorage.getItem("loginType") && r && localStorage.setItem("loginType", r), e === et)
1970
+ return Ye(["code", "state", "kingdee_token", "redirect_url"]), window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t)), D();
1971
+ et = e, Ye(["code", "state", "kingdee_token", "redirect_url", "loginType"]);
1972
+ let o = {};
1973
+ const s = {
1973
1974
  grant_type: "authorization_code",
1974
1975
  code: e,
1975
1976
  client_id: v.client_id,
1976
1977
  client_secret: v.client_secret,
1977
- redirect_uri: $,
1978
+ redirect_uri: z,
1978
1979
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
1979
1980
  nonce: Pt()
1980
1981
  };
1981
- n && (sessionStorage.setItem("kingdee_token", n), o.redirect_uri = `${o.redirect_uri}?kingdee_token=${n}`);
1982
+ n && (sessionStorage.setItem("kingdee_token", n), s.redirect_uri = `${s.redirect_uri}?kingdee_token=${n}`);
1982
1983
  try {
1983
1984
  await b.create().get(I.token, { baseURL: Ze });
1984
1985
  } catch {
1985
1986
  }
1986
1987
  try {
1987
- r = await b.create().post(
1988
+ o = await b.create().post(
1988
1989
  I.token,
1989
1990
  {},
1990
1991
  {
1991
1992
  baseURL: Ze,
1992
- params: o,
1993
+ params: s,
1993
1994
  headers: {
1994
1995
  "Content-Type": "application/x-www-form-urlencoded",
1995
1996
  "csrf-token": br.get("csrf-token")
1996
1997
  }
1997
1998
  }
1998
1999
  );
1999
- const { access_token: s = "", expires_in: i = 0, refresh_token: c = "", refresh_exp: f = 0 } = r.data, l = {
2000
- accessToken: s,
2001
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
2002
- refreshToken: c,
2003
- info: r.data
2000
+ const { access_token: i = "", expires_in: c = 0, refresh_token: f = "", refresh_exp: u = 0 } = o.data, l = {
2001
+ accessToken: i,
2002
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(c) * 1e3,
2003
+ refreshToken: f,
2004
+ info: o.data
2004
2005
  };
2005
- J().save(l), await tt(s);
2006
- const u = Number(f) - (/* @__PURE__ */ new Date()).getTime();
2007
- return u && u > 0 && (Lt(u), u && localStorage.setItem("idelTime", u.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), s;
2006
+ V().save(l), await tt(i);
2007
+ const d = Number(u) - (/* @__PURE__ */ new Date()).getTime();
2008
+ return d && d > 0 && (Lt(d), d && localStorage.setItem("idelTime", d.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), i;
2008
2009
  } catch {
2009
- return z({ ...v, redirect_uri: $ });
2010
+ return J({ ...v, redirect_uri: z });
2010
2011
  }
2011
- }, M = ne(!1), fo = async (e) => {
2012
+ }, H = ne(!1), po = async (e) => {
2012
2013
  if (e.public) return "";
2013
- if (Ut.value) return z({ ...v, redirect_uri: $ });
2014
- if (M.value)
2014
+ if (Ut.value) return J({ ...v, redirect_uri: z });
2015
+ if (H.value)
2015
2016
  return await new Promise(async (o) => {
2016
2017
  Oe(
2017
- () => M.value,
2018
+ () => H.value,
2018
2019
  (s) => {
2019
2020
  if (!s) {
2020
2021
  const i = D();
@@ -2023,44 +2024,46 @@ const Ir = async () => {
2023
2024
  }
2024
2025
  );
2025
2026
  });
2026
- const { accessTokenExpiredAt: t } = J().getData(), n = te("code") || "";
2027
+ const { accessTokenExpiredAt: t } = V().getData(), n = M("code") || "";
2027
2028
  if ((!D() || t === 0) && !n)
2028
- return z({ ...v, redirect_uri: $ });
2029
+ return J({ ...v, redirect_uri: z });
2029
2030
  let r = D();
2030
- M.value = !0;
2031
+ H.value = !0;
2031
2032
  try {
2032
- typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await qr(v)), r = await Ir(), M.value = !1;
2033
+ typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await Hr(v)), r = await Br(), H.value = !1;
2033
2034
  } catch {
2034
- M.value = !1;
2035
+ H.value = !1;
2035
2036
  }
2036
2037
  return r;
2037
- }, Br = () => {
2038
+ }, jr = () => {
2038
2039
  let e = !1;
2039
2040
  return localStorage.getItem("thirdLogouSource") === "zhongshen" && (e = !0), e;
2040
- }, jr = (e) => {
2041
+ }, qr = (e) => {
2041
2042
  if (localStorage.getItem("thirdLogouSource") === "zhongshen") {
2042
2043
  const r = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
2043
2044
  localStorage.removeItem("thirdLogouSource"), location.href = r;
2044
2045
  }
2045
- }, z = (e) => {
2046
+ }, J = (e) => {
2046
2047
  if (vr) return;
2047
- const { baseURL: t, ssoLocale: n } = Ae();
2048
- if (Te) return Te(e);
2049
- e.logout = "true", n && (e.locale = "locale");
2050
- const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${I.oauth}?${r}`;
2051
- if (localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove(), Br())
2052
- jr(o);
2048
+ const t = { ...e }, n = localStorage.getItem("loginType");
2049
+ n && (t.loginType = n);
2050
+ const { baseURL: r, ssoLocale: o } = Ae();
2051
+ if (Re) return Re(t);
2052
+ t.logout = "true", o && (t.locale = "locale");
2053
+ const s = Object.keys(t).filter((c) => c !== "client_secret").map((c) => `${c}=${t[c]}`).join("&"), i = `${r}${I.oauth}?${s}`;
2054
+ if (localStorage.removeItem("idelTime"), localStorage.removeItem("loginType"), sessionStorage.clear(), V().remove(), jr())
2055
+ qr(i);
2053
2056
  else {
2054
2057
  try {
2055
- b.create().get(I.logoutCurpage, { baseURL: t });
2058
+ b.create().get(I.logoutCurpage, { baseURL: r });
2056
2059
  } catch {
2057
2060
  }
2058
- window.__isAutoCloseApp = !1, location.replace(o);
2061
+ window.__isAutoCloseApp = !1, location.replace(i);
2059
2062
  }
2060
2063
  };
2061
- Dr(z);
2062
- const qr = async (e) => {
2063
- const { baseURL: t } = Ae(), { refreshToken: n } = J().getData();
2064
+ Dr(J);
2065
+ const Hr = async (e) => {
2066
+ const { baseURL: t } = Ae(), { refreshToken: n } = V().getData();
2064
2067
  try {
2065
2068
  await b.create().get(I.token, { baseURL: t });
2066
2069
  } catch {
@@ -2086,35 +2089,32 @@ const qr = async (e) => {
2086
2089
  refreshToken: i,
2087
2090
  info: r.data
2088
2091
  };
2089
- return J().save(c), await tt(o), o;
2092
+ return V().save(c), await tt(o), o;
2090
2093
  } catch {
2091
- return z({ ...e, redirect_uri: $ });
2094
+ return J({ ...e, redirect_uri: z });
2092
2095
  }
2093
- }, J = () => ({
2096
+ }, V = () => ({
2094
2097
  getData: () => ({
2095
2098
  accessToken: D(),
2096
2099
  accessTokenExpiredAt: fe("accessTokenExpiredAt") ? Number(fe("accessTokenExpiredAt")) : "",
2097
2100
  refreshToken: fe("refreshToken")
2098
2101
  }),
2099
2102
  save: (e) => {
2100
- Bt(
2101
- e.accessToken || "",
2102
- {
2103
- accessTokenExpiredAt: e.accessTokenExpiredAt,
2104
- refreshToken: e.refreshToken
2105
- }
2106
- ), qt(e);
2103
+ Bt(e.accessToken ?? "", {
2104
+ accessTokenExpiredAt: e.accessTokenExpiredAt,
2105
+ refreshToken: e.refreshToken
2106
+ }), qt(e);
2107
2107
  },
2108
2108
  remove: () => {
2109
2109
  It(), jt();
2110
2110
  }
2111
2111
  });
2112
2112
  export {
2113
- te as getQuery,
2114
- fo as getToken,
2115
- Ir as getTokenFromCode,
2113
+ M as getQuery,
2114
+ po as getToken,
2115
+ Br as getTokenFromCode,
2116
2116
  v as getTokenParams,
2117
- z as login,
2118
- $ as real_uri,
2119
- J as tokenStorage
2117
+ J as login,
2118
+ z as real_uri,
2119
+ V as tokenStorage
2120
2120
  };