@das-fed/upf-utils 6.4.0-dev.216 → 6.4.0-dev.218

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 (109) hide show
  1. package/api-services/es5.js +1908 -1849
  2. package/api-services/index.js +1428 -1428
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1640 -1594
  5. package/api-services/modules/app-manage/index.js +1299 -1318
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +1640 -1594
  8. package/api-services/modules/authentication/index.js +1299 -1318
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +1471 -1416
  11. package/api-services/modules/bems/index.js +1177 -1182
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +1640 -1594
  14. package/api-services/modules/contract/index.js +1299 -1318
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1645 -1599
  17. package/api-services/modules/duty-manage/index.js +1304 -1323
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1392 -1334
  20. package/api-services/modules/enterpriseright/index.js +1107 -1108
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1574 -1515
  23. package/api-services/modules/file/es5.js +1728 -1681
  24. package/api-services/modules/file/index.js +1289 -1307
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +1640 -1594
  27. package/api-services/modules/gateway-edge/index.js +1299 -1318
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1079 -1079
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1453 -1407
  32. package/api-services/modules/iot/index.js +1114 -1133
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +1410 -1354
  35. package/api-services/modules/justauth/index.js +1107 -1112
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +1617 -1547
  38. package/api-services/modules/knowledge/index.js +1291 -1274
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1617 -1547
  41. package/api-services/modules/link/index.js +1293 -1276
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1597 -1548
  44. package/api-services/modules/permission/index.js +1268 -1283
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +1399 -1341
  47. package/api-services/modules/platformManage/index.js +1110 -1111
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1617 -1547
  50. package/api-services/modules/portal/index.js +1293 -1276
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1392 -1334
  53. package/api-services/modules/space-manage/index.js +1107 -1108
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +1653 -1607
  56. package/api-services/modules/super-admin/index.js +1310 -1329
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +1455 -1397
  59. package/api-services/modules/supplier/index.js +1160 -1161
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +1402 -1344
  62. package/api-services/modules/supplychain-manage/index.js +1115 -1116
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +1640 -1594
  65. package/api-services/modules/systemConfiguration/index.js +1299 -1318
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +1640 -1594
  68. package/api-services/modules/tool/index.js +1299 -1318
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +1638 -1592
  71. package/api-services/src/create-service/index.js +1298 -1317
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +9 -11
  74. package/common-info/getInfoFromUrl/es5.js +40 -40
  75. package/common-info/getInfoFromUrl/index.js +36 -36
  76. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  77. package/common-info/index.js +13 -17
  78. package/common-info/index.js.gz +0 -0
  79. package/common-info/set-personal-info/es5.js +775 -681
  80. package/common-info/set-personal-info/index.js +670 -598
  81. package/common-info/set-personal-info/index.js.gz +0 -0
  82. package/common-tools/extract-file-name/es5.js +2 -2
  83. package/common-tools/extract-file-name/index.js +2 -7
  84. package/common-tools/extract-file-name/index.js.gz +0 -0
  85. package/common-tools/handle-data/es5.js +111 -118
  86. package/common-tools/handle-data/index.js +86 -89
  87. package/common-tools/handle-data/index.js.gz +0 -0
  88. package/create-api-service/check-token/es5.js +125 -127
  89. package/create-api-service/check-token/index.js +118 -123
  90. package/create-api-service/check-token/index.js.gz +0 -0
  91. package/create-api-service/es5.js +1617 -1547
  92. package/create-api-service/index.js +1293 -1276
  93. package/create-api-service/index.js.gz +0 -0
  94. package/create-api-service/sso/es5.js +317 -325
  95. package/create-api-service/sso/index.js +273 -279
  96. package/create-api-service/sso/index.js.gz +0 -0
  97. package/curring-http/es5.js +2 -2
  98. package/curring-http/index.js +2 -7
  99. package/curring-http/index.js.gz +0 -0
  100. package/front-end/i18n/front-end-page/dasutils_en-US.js +20 -1
  101. package/front-end/i18n/front-end-page/dasutils_zh-CN.js +19 -1
  102. package/front-end/i18n/front-end-page/dasutils_zh-MO.js +19 -1
  103. package/package.json +4 -4
  104. package/pinyin-first-character/es5.js +1 -1
  105. package/pinyin-first-character/index.js +1 -1
  106. package/pinyin-first-character/index.js.gz +0 -0
  107. package/webSocket-service/es5.js +41 -53
  108. package/webSocket-service/index.js +40 -50
  109. package/webSocket-service/index.js.gz +0 -0
@@ -1,37 +1,36 @@
1
- import { unref as Ut, getCurrentScope as Nt, onScopeDispose as Lt, ref as Y, watch as Se } from "vue";
2
- import { encryption as Ft } from "@das-fed/upf-utils/atob";
1
+ import { unref as Pt, getCurrentScope as Ut, onScopeDispose as Nt, ref as Y, watch as Se } from "vue";
2
+ import { encryption as Lt } from "@das-fed/upf-utils/atob";
3
3
  import { getConfig as Te } from "@das-fed/upf-utils/config";
4
- import { getUrlParams as Ze, funcUrlDel as Dt } from "@das-fed/upf-utils/common-tools";
5
- import { getAccessToken as M, getAccessTokenInfo as ue, setAccessToken as vt, removeAccessToken as Bt } from "@das-fed/upf-utils/token-tools";
6
- import { setProcessEngineToken as It, removeProcessEngineToken as jt } from "@das-fed/upf-utils/process-engine-info";
7
- import { setPersonalInfo as Ye } from "@das-fed/upf-utils/common-info/set-personal-info";
8
- function et(e, t) {
4
+ import { getUrlParams as Ze, funcUrlDel as Ft } from "@das-fed/upf-utils/common-tools/get-url-params";
5
+ import { getAccessToken as M, getAccessTokenInfo as ue, setAccessToken as Dt, removeAccessToken as vt } from "@das-fed/upf-utils/token-tools";
6
+ import { setProcessEngineToken as Bt, removeProcessEngineToken as It } from "@das-fed/upf-utils/process-engine-info";
7
+ function Ye(e, t) {
9
8
  return function() {
10
9
  return e.apply(t, arguments);
11
10
  };
12
11
  }
13
- const { toString: qt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag: tt } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
14
- const n = qt.call(t);
12
+ const { toString: jt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag: et } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
13
+ const n = jt.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) => re(t) === e), se = (e) => (t) => typeof t === e, { isArray: B } = Array, H = se("undefined");
17
- function Mt(e) {
16
+ function qt(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 nt = x("ArrayBuffer");
21
- function Ht(e) {
19
+ const tt = x("ArrayBuffer");
20
+ function Mt(e) {
22
21
  let t;
23
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && nt(e.buffer), t;
22
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tt(e.buffer), t;
24
23
  }
25
- const zt = se("string"), A = se("function"), rt = se("number"), oe = (e) => e !== null && typeof e == "object", $t = (e) => e === !0 || e === !1, X = (e) => {
24
+ const Ht = se("string"), A = se("function"), nt = se("number"), oe = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, X = (e) => {
26
25
  if (re(e) !== "object")
27
26
  return !1;
28
27
  const t = Oe(e);
29
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(tt in e) && !(ne in e);
30
- }, Jt = x("Date"), Vt = x("File"), Wt = x("Blob"), Kt = x("FileList"), Qt = (e) => oe(e) && A(e.pipe), Xt = (e) => {
28
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(et in e) && !(ne in e);
29
+ }, $t = x("Date"), Jt = x("File"), Vt = x("Blob"), Wt = x("FileList"), Kt = (e) => oe(e) && A(e.pipe), Qt = (e) => {
31
30
  let t;
32
31
  return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
33
32
  t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
34
- }, Gt = x("URLSearchParams"), [Zt, Yt, en, tn] = ["ReadableStream", "Request", "Response", "Headers"].map(x), nn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
33
+ }, Xt = x("URLSearchParams"), [Gt, Zt, Yt, en] = ["ReadableStream", "Request", "Response", "Headers"].map(x), tn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
35
34
  function V(e, t, { allOwnKeys: n = !1 } = {}) {
36
35
  if (e === null || typeof e > "u")
37
36
  return;
@@ -46,7 +45,7 @@ function V(e, t, { allOwnKeys: n = !1 } = {}) {
46
45
  c = o[r], t.call(null, e[c], c, e);
47
46
  }
48
47
  }
49
- function st(e, t) {
48
+ function rt(e, t) {
50
49
  t = t.toLowerCase();
51
50
  const n = Object.keys(e);
52
51
  let r = n.length, s;
@@ -55,23 +54,23 @@ function st(e, t) {
55
54
  return s;
56
55
  return null;
57
56
  }
58
- const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ot = (e) => !H(e) && e !== N;
57
+ const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, st = (e) => !H(e) && e !== N;
59
58
  function pe() {
60
- const { caseless: e } = ot(this) && this || {}, t = {}, n = (r, s) => {
61
- const o = e && st(t, s) || s;
59
+ const { caseless: e } = st(this) && this || {}, t = {}, n = (r, s) => {
60
+ const o = e && rt(t, s) || s;
62
61
  X(t[o]) && X(r) ? t[o] = pe(t[o], r) : X(r) ? t[o] = pe({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
63
62
  };
64
63
  for (let r = 0, s = arguments.length; r < s; r++)
65
64
  arguments[r] && V(arguments[r], n);
66
65
  return t;
67
66
  }
68
- const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
69
- n && A(s) ? e[o] = et(s, n) : e[o] = s;
70
- }, { allOwnKeys: r }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), on = (e, t, n, r) => {
67
+ const nn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
68
+ n && A(s) ? e[o] = Ye(s, n) : e[o] = s;
69
+ }, { allOwnKeys: r }), e), rn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sn = (e, t, n, r) => {
71
70
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
72
71
  value: t.prototype
73
72
  }), n && Object.assign(e.prototype, n);
74
- }, an = (e, t, n, r) => {
73
+ }, on = (e, t, n, r) => {
75
74
  let s, o, i;
76
75
  const c = {};
77
76
  if (t = t || {}, e == null) return t;
@@ -81,45 +80,45 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
81
80
  e = n !== !1 && Oe(e);
82
81
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
83
82
  return t;
84
- }, cn = (e, t, n) => {
83
+ }, an = (e, t, n) => {
85
84
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
86
85
  const r = e.indexOf(t, n);
87
86
  return r !== -1 && r === n;
88
- }, un = (e) => {
87
+ }, cn = (e) => {
89
88
  if (!e) return null;
90
89
  if (B(e)) return e;
91
90
  let t = e.length;
92
- if (!rt(t)) return null;
91
+ if (!nt(t)) return null;
93
92
  const n = new Array(t);
94
93
  for (; t-- > 0; )
95
94
  n[t] = e[t];
96
95
  return n;
97
- }, ln = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), fn = (e, t) => {
96
+ }, un = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), ln = (e, t) => {
98
97
  const r = (e && e[ne]).call(e);
99
98
  let s;
100
99
  for (; (s = r.next()) && !s.done; ) {
101
100
  const o = s.value;
102
101
  t.call(e, o[0], o[1]);
103
102
  }
104
- }, dn = (e, t) => {
103
+ }, fn = (e, t) => {
105
104
  let n;
106
105
  const r = [];
107
106
  for (; (n = e.exec(t)) !== null; )
108
107
  r.push(n);
109
108
  return r;
110
- }, pn = x("HTMLFormElement"), hn = (e) => e.toLowerCase().replace(
109
+ }, dn = x("HTMLFormElement"), pn = (e) => e.toLowerCase().replace(
111
110
  /[-_\s]([a-z\d])(\w*)/g,
112
111
  function(n, r, s) {
113
112
  return r.toUpperCase() + s;
114
113
  }
115
- ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), mn = x("RegExp"), it = (e, t) => {
114
+ ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), hn = x("RegExp"), ot = (e, t) => {
116
115
  const n = Object.getOwnPropertyDescriptors(e), r = {};
117
116
  V(n, (s, o) => {
118
117
  let i;
119
118
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
120
119
  }), Object.defineProperties(e, r);
121
- }, yn = (e) => {
122
- it(e, (t, n) => {
120
+ }, mn = (e) => {
121
+ ot(e, (t, n) => {
123
122
  if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
124
123
  return !1;
125
124
  const r = e[n];
@@ -133,19 +132,19 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
133
132
  });
134
133
  }
135
134
  });
136
- }, wn = (e, t) => {
135
+ }, yn = (e, t) => {
137
136
  const n = {}, r = (s) => {
138
137
  s.forEach((o) => {
139
138
  n[o] = !0;
140
139
  });
141
140
  };
142
141
  return B(e) ? r(e) : r(String(e).split(t)), n;
143
- }, gn = () => {
144
- }, bn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
145
- function En(e) {
146
- return !!(e && A(e.append) && e[tt] === "FormData" && e[ne]);
142
+ }, wn = () => {
143
+ }, gn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
144
+ function bn(e) {
145
+ return !!(e && A(e.append) && e[et] === "FormData" && e[ne]);
147
146
  }
148
- const Rn = (e) => {
147
+ const En = (e) => {
149
148
  const t = new Array(10), n = (r, s) => {
150
149
  if (oe(r)) {
151
150
  if (t.indexOf(r) >= 0)
@@ -162,71 +161,71 @@ const Rn = (e) => {
162
161
  return r;
163
162
  };
164
163
  return n(e, 0);
165
- }, Sn = x("AsyncFunction"), Tn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch), at = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
164
+ }, Rn = x("AsyncFunction"), Sn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch), it = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
166
165
  s === N && o === n && r.length && r.shift()();
167
166
  }, !1), (s) => {
168
167
  r.push(s), N.postMessage(n, "*");
169
168
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
170
169
  typeof setImmediate == "function",
171
170
  A(N.postMessage)
172
- ), On = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || at, An = (e) => e != null && A(e[ne]), a = {
171
+ ), Tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || it, On = (e) => e != null && A(e[ne]), a = {
173
172
  isArray: B,
174
- isArrayBuffer: nt,
175
- isBuffer: Mt,
176
- isFormData: Xt,
177
- isArrayBufferView: Ht,
178
- isString: zt,
179
- isNumber: rt,
180
- isBoolean: $t,
173
+ isArrayBuffer: tt,
174
+ isBuffer: qt,
175
+ isFormData: Qt,
176
+ isArrayBufferView: Mt,
177
+ isString: Ht,
178
+ isNumber: nt,
179
+ isBoolean: zt,
181
180
  isObject: oe,
182
181
  isPlainObject: X,
183
- isReadableStream: Zt,
184
- isRequest: Yt,
185
- isResponse: en,
186
- isHeaders: tn,
182
+ isReadableStream: Gt,
183
+ isRequest: Zt,
184
+ isResponse: Yt,
185
+ isHeaders: en,
187
186
  isUndefined: H,
188
- isDate: Jt,
189
- isFile: Vt,
190
- isBlob: Wt,
191
- isRegExp: mn,
187
+ isDate: $t,
188
+ isFile: Jt,
189
+ isBlob: Vt,
190
+ isRegExp: hn,
192
191
  isFunction: A,
193
- isStream: Qt,
194
- isURLSearchParams: Gt,
195
- isTypedArray: ln,
196
- isFileList: Kt,
192
+ isStream: Kt,
193
+ isURLSearchParams: Xt,
194
+ isTypedArray: un,
195
+ isFileList: Wt,
197
196
  forEach: V,
198
197
  merge: pe,
199
- extend: rn,
200
- trim: nn,
201
- stripBOM: sn,
202
- inherits: on,
203
- toFlatObject: an,
198
+ extend: nn,
199
+ trim: tn,
200
+ stripBOM: rn,
201
+ inherits: sn,
202
+ toFlatObject: on,
204
203
  kindOf: re,
205
204
  kindOfTest: x,
206
- endsWith: cn,
207
- toArray: un,
208
- forEachEntry: fn,
209
- matchAll: dn,
210
- isHTMLForm: pn,
205
+ endsWith: an,
206
+ toArray: cn,
207
+ forEachEntry: ln,
208
+ matchAll: fn,
209
+ isHTMLForm: dn,
211
210
  hasOwnProperty: Pe,
212
211
  hasOwnProp: Pe,
213
212
  // an alias to avoid ESLint no-prototype-builtins detection
214
- reduceDescriptors: it,
215
- freezeMethods: yn,
216
- toObjectSet: wn,
217
- toCamelCase: hn,
218
- noop: gn,
219
- toFiniteNumber: bn,
220
- findKey: st,
213
+ reduceDescriptors: ot,
214
+ freezeMethods: mn,
215
+ toObjectSet: yn,
216
+ toCamelCase: pn,
217
+ noop: wn,
218
+ toFiniteNumber: gn,
219
+ findKey: rt,
221
220
  global: N,
222
- isContextDefined: ot,
223
- isSpecCompliantForm: En,
224
- toJSONObject: Rn,
225
- isAsyncFn: Sn,
226
- isThenable: Tn,
227
- setImmediate: at,
228
- asap: On,
229
- isIterable: An
221
+ isContextDefined: st,
222
+ isSpecCompliantForm: bn,
223
+ toJSONObject: En,
224
+ isAsyncFn: Rn,
225
+ isThenable: Sn,
226
+ setImmediate: it,
227
+ asap: Tn,
228
+ isIterable: On
230
229
  };
231
230
  function y(e, t, n, r, s) {
232
231
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
@@ -252,7 +251,7 @@ a.inherits(y, Error, {
252
251
  };
253
252
  }
254
253
  });
255
- const ct = y.prototype, ut = {};
254
+ const at = y.prototype, ct = {};
256
255
  [
257
256
  "ERR_BAD_OPTION_VALUE",
258
257
  "ERR_BAD_OPTION",
@@ -268,32 +267,32 @@ const ct = y.prototype, ut = {};
268
267
  "ERR_INVALID_URL"
269
268
  // eslint-disable-next-line func-names
270
269
  ].forEach((e) => {
271
- ut[e] = { value: e };
270
+ ct[e] = { value: e };
272
271
  });
273
- Object.defineProperties(y, ut);
274
- Object.defineProperty(ct, "isAxiosError", { value: !0 });
272
+ Object.defineProperties(y, ct);
273
+ Object.defineProperty(at, "isAxiosError", { value: !0 });
275
274
  y.from = (e, t, n, r, s, o) => {
276
- const i = Object.create(ct);
275
+ const i = Object.create(at);
277
276
  return a.toFlatObject(e, i, function(f) {
278
277
  return f !== Error.prototype;
279
278
  }, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
280
279
  };
281
- const _n = null;
280
+ const An = null;
282
281
  function he(e) {
283
282
  return a.isPlainObject(e) || a.isArray(e);
284
283
  }
285
- function lt(e) {
284
+ function ut(e) {
286
285
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
287
286
  }
288
287
  function Ue(e, t, n) {
289
288
  return e ? e.concat(t).map(function(s, o) {
290
- return s = lt(s), !n && o ? "[" + s + "]" : s;
289
+ return s = ut(s), !n && o ? "[" + s + "]" : s;
291
290
  }).join(n ? "." : "") : t;
292
291
  }
293
- function xn(e) {
292
+ function _n(e) {
294
293
  return a.isArray(e) && !e.some(he);
295
294
  }
296
- const kn = a.toFlatObject(a, {}, null, function(t) {
295
+ const xn = a.toFlatObject(a, {}, null, function(t) {
297
296
  return /^is[A-Z]/.test(t);
298
297
  });
299
298
  function ie(e, t, n) {
@@ -324,8 +323,8 @@ function ie(e, t, n) {
324
323
  if (p && !h && typeof p == "object") {
325
324
  if (a.endsWith(m, "{}"))
326
325
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
327
- else if (a.isArray(p) && xn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
328
- return m = lt(m), E.forEach(function(S, C) {
326
+ else if (a.isArray(p) && _n(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
327
+ return m = ut(m), E.forEach(function(S, C) {
329
328
  !(a.isUndefined(S) || S === null) && t.append(
330
329
  // eslint-disable-next-line no-nested-ternary
331
330
  i === !0 ? Ue([m], C, o) : i === null ? m : m + "[]",
@@ -335,7 +334,7 @@ function ie(e, t, n) {
335
334
  }
336
335
  return he(p) ? !0 : (t.append(Ue(h, m, o), u(p)), !1);
337
336
  }
338
- const d = [], w = Object.assign(kn, {
337
+ const d = [], w = Object.assign(xn, {
339
338
  defaultVisitor: l,
340
339
  convertValue: u,
341
340
  isVisitable: he
@@ -376,11 +375,11 @@ function Ne(e) {
376
375
  function Ae(e, t) {
377
376
  this._pairs = [], e && ie(e, this, t);
378
377
  }
379
- const ft = Ae.prototype;
380
- ft.append = function(t, n) {
378
+ const lt = Ae.prototype;
379
+ lt.append = function(t, n) {
381
380
  this._pairs.push([t, n]);
382
381
  };
383
- ft.toString = function(t) {
382
+ lt.toString = function(t) {
384
383
  const n = t ? function(r) {
385
384
  return t.call(this, r, Ne);
386
385
  } : Ne;
@@ -388,13 +387,13 @@ ft.toString = function(t) {
388
387
  return n(s[0]) + "=" + n(s[1]);
389
388
  }, "").join("&");
390
389
  };
391
- function Cn(e) {
390
+ function kn(e) {
392
391
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
393
392
  }
394
- function dt(e, t, n) {
393
+ function ft(e, t, n) {
395
394
  if (!t)
396
395
  return e;
397
- const r = n && n.encode || Cn;
396
+ const r = n && n.encode || kn;
398
397
  a.isFunction(n) && (n = {
399
398
  serialize: n
400
399
  });
@@ -460,41 +459,41 @@ class Le {
460
459
  });
461
460
  }
462
461
  }
463
- const pt = {
462
+ const dt = {
464
463
  silentJSONParsing: !0,
465
464
  forcedJSONParsing: !0,
466
465
  clarifyTimeoutError: !1
467
- }, Pn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Un = typeof FormData < "u" ? FormData : null, Nn = typeof Blob < "u" ? Blob : null, Ln = {
466
+ }, Cn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Pn = typeof FormData < "u" ? FormData : null, Un = typeof Blob < "u" ? Blob : null, Nn = {
468
467
  isBrowser: !0,
469
468
  classes: {
470
- URLSearchParams: Pn,
471
- FormData: Un,
472
- Blob: Nn
469
+ URLSearchParams: Cn,
470
+ FormData: Pn,
471
+ Blob: Un
473
472
  },
474
473
  protocols: ["http", "https", "file", "blob", "url", "data"]
475
- }, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Fn = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), Dn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
476
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", vn = _e && window.location.href || "http://localhost", Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
474
+ }, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Ln = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), Fn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
475
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Dn = _e && window.location.href || "http://localhost", vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
477
476
  __proto__: null,
478
477
  hasBrowserEnv: _e,
479
- hasStandardBrowserEnv: Fn,
480
- hasStandardBrowserWebWorkerEnv: Dn,
478
+ hasStandardBrowserEnv: Ln,
479
+ hasStandardBrowserWebWorkerEnv: Fn,
481
480
  navigator: me,
482
- origin: vn
481
+ origin: Dn
483
482
  }, Symbol.toStringTag, { value: "Module" })), T = {
484
- ...Bn,
485
- ...Ln
483
+ ...vn,
484
+ ...Nn
486
485
  };
487
- function In(e, t) {
486
+ function Bn(e, t) {
488
487
  return ie(e, new T.classes.URLSearchParams(), Object.assign({
489
488
  visitor: function(n, r, s, o) {
490
489
  return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
491
490
  }
492
491
  }, t));
493
492
  }
494
- function jn(e) {
493
+ function In(e) {
495
494
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
496
495
  }
497
- function qn(e) {
496
+ function jn(e) {
498
497
  const t = {}, n = Object.keys(e);
499
498
  let r;
500
499
  const s = n.length;
@@ -503,22 +502,22 @@ function qn(e) {
503
502
  o = n[r], t[o] = e[o];
504
503
  return t;
505
504
  }
506
- function ht(e) {
505
+ function pt(e) {
507
506
  function t(n, r, s, o) {
508
507
  let i = n[o++];
509
508
  if (i === "__proto__") return !0;
510
509
  const c = Number.isFinite(+i), f = o >= n.length;
511
- return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = qn(s[i])), !c);
510
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = jn(s[i])), !c);
512
511
  }
513
512
  if (a.isFormData(e) && a.isFunction(e.entries)) {
514
513
  const n = {};
515
514
  return a.forEachEntry(e, (r, s) => {
516
- t(jn(r), s, n, 0);
515
+ t(In(r), s, n, 0);
517
516
  }), n;
518
517
  }
519
518
  return null;
520
519
  }
521
- function Mn(e, t, n) {
520
+ function qn(e, t, n) {
522
521
  if (a.isString(e))
523
522
  try {
524
523
  return (t || JSON.parse)(e), a.trim(e);
@@ -529,12 +528,12 @@ function Mn(e, t, n) {
529
528
  return (0, JSON.stringify)(e);
530
529
  }
531
530
  const W = {
532
- transitional: pt,
531
+ transitional: dt,
533
532
  adapter: ["xhr", "http", "fetch"],
534
533
  transformRequest: [function(t, n) {
535
534
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
536
535
  if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
537
- return s ? JSON.stringify(ht(t)) : t;
536
+ return s ? JSON.stringify(pt(t)) : t;
538
537
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
539
538
  return t;
540
539
  if (a.isArrayBufferView(t))
@@ -544,7 +543,7 @@ const W = {
544
543
  let c;
545
544
  if (o) {
546
545
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
547
- return In(t, this.formSerializer).toString();
546
+ return Bn(t, this.formSerializer).toString();
548
547
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
549
548
  const f = this.env && this.env.FormData;
550
549
  return ie(
@@ -554,7 +553,7 @@ const W = {
554
553
  );
555
554
  }
556
555
  }
557
- return o || s ? (n.setContentType("application/json", !1), Mn(t)) : t;
556
+ return o || s ? (n.setContentType("application/json", !1), qn(t)) : t;
558
557
  }],
559
558
  transformResponse: [function(t) {
560
559
  const n = this.transitional || W.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -597,7 +596,7 @@ const W = {
597
596
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
598
597
  W.headers[e] = {};
599
598
  });
600
- const Hn = a.toObjectSet([
599
+ const Mn = a.toObjectSet([
601
600
  "age",
602
601
  "authorization",
603
602
  "content-length",
@@ -615,12 +614,12 @@ const Hn = a.toObjectSet([
615
614
  "referer",
616
615
  "retry-after",
617
616
  "user-agent"
618
- ]), zn = (e) => {
617
+ ]), Hn = (e) => {
619
618
  const t = {};
620
619
  let n, r, s;
621
620
  return e && e.split(`
622
621
  `).forEach(function(i) {
623
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Hn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
622
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Mn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
624
623
  }), t;
625
624
  }, Fe = Symbol("internals");
626
625
  function j(e) {
@@ -629,14 +628,14 @@ function j(e) {
629
628
  function G(e) {
630
629
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(G) : String(e);
631
630
  }
632
- function $n(e) {
631
+ function zn(e) {
633
632
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
634
633
  let r;
635
634
  for (; r = n.exec(e); )
636
635
  t[r[1]] = r[2];
637
636
  return t;
638
637
  }
639
- const Jn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
638
+ const $n = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
640
639
  function le(e, t, n, r, s) {
641
640
  if (a.isFunction(r))
642
641
  return r.call(this, t, n);
@@ -647,10 +646,10 @@ function le(e, t, n, r, s) {
647
646
  return r.test(t);
648
647
  }
649
648
  }
650
- function Vn(e) {
649
+ function Jn(e) {
651
650
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
652
651
  }
653
- function Wn(e, t) {
652
+ function Vn(e, t) {
654
653
  const n = a.toCamelCase(" " + t);
655
654
  ["get", "set", "has"].forEach((r) => {
656
655
  Object.defineProperty(e, r + n, {
@@ -677,8 +676,8 @@ class _ {
677
676
  const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
678
677
  if (a.isPlainObject(t) || t instanceof this.constructor)
679
678
  i(t, n);
680
- else if (a.isString(t) && (t = t.trim()) && !Jn(t))
681
- i(zn(t), n);
679
+ else if (a.isString(t) && (t = t.trim()) && !$n(t))
680
+ i(Hn(t), n);
682
681
  else if (a.isObject(t) && a.isIterable(t)) {
683
682
  let c = {}, f, u;
684
683
  for (const l of t) {
@@ -699,7 +698,7 @@ class _ {
699
698
  if (!n)
700
699
  return s;
701
700
  if (n === !0)
702
- return $n(s);
701
+ return zn(s);
703
702
  if (a.isFunction(n))
704
703
  return n.call(this, s, r);
705
704
  if (a.isRegExp(n))
@@ -743,7 +742,7 @@ class _ {
743
742
  n[i] = G(s), delete n[o];
744
743
  return;
745
744
  }
746
- const c = t ? Vn(o) : String(o).trim();
745
+ const c = t ? Jn(o) : String(o).trim();
747
746
  c !== o && delete n[o], n[c] = G(s), r[c] = !0;
748
747
  }), this;
749
748
  }
@@ -782,7 +781,7 @@ class _ {
782
781
  }).accessors, s = this.prototype;
783
782
  function o(i) {
784
783
  const c = j(i);
785
- r[c] || (Wn(s, i), r[c] = !0);
784
+ r[c] || (Vn(s, i), r[c] = !0);
786
785
  }
787
786
  return a.isArray(t) ? t.forEach(o) : o(t), this;
788
787
  }
@@ -805,7 +804,7 @@ function fe(e, t) {
805
804
  o = c.call(n, o, s.normalize(), t ? t.status : void 0);
806
805
  }), s.normalize(), o;
807
806
  }
808
- function mt(e) {
807
+ function ht(e) {
809
808
  return !!(e && e.__CANCEL__);
810
809
  }
811
810
  function I(e, t, n) {
@@ -814,7 +813,7 @@ function I(e, t, n) {
814
813
  a.inherits(I, y, {
815
814
  __CANCEL__: !0
816
815
  });
817
- function yt(e, t, n) {
816
+ function mt(e, t, n) {
818
817
  const r = n.config.validateStatus;
819
818
  !n.status || !r || r(n.status) ? e(n) : t(new y(
820
819
  "Request failed with status code " + n.status,
@@ -824,11 +823,11 @@ function yt(e, t, n) {
824
823
  n
825
824
  ));
826
825
  }
827
- function Kn(e) {
826
+ function Wn(e) {
828
827
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
829
828
  return t && t[1] || "";
830
829
  }
831
- function Qn(e, t) {
830
+ function Kn(e, t) {
832
831
  e = e || 10;
833
832
  const n = new Array(e), r = new Array(e);
834
833
  let s = 0, o = 0, i;
@@ -844,7 +843,7 @@ function Qn(e, t) {
844
843
  return g ? Math.round(w * 1e3 / g) : void 0;
845
844
  };
846
845
  }
847
- function Xn(e, t) {
846
+ function Qn(e, t) {
848
847
  let n = 0, r = 1e3 / t, s, o;
849
848
  const i = (u, l = Date.now()) => {
850
849
  n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
@@ -858,8 +857,8 @@ function Xn(e, t) {
858
857
  }
859
858
  const ee = (e, t, n = 3) => {
860
859
  let r = 0;
861
- const s = Qn(50, 250);
862
- return Xn((o) => {
860
+ const s = Kn(50, 250);
861
+ return Qn((o) => {
863
862
  const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
864
863
  r = i;
865
864
  const d = {
@@ -882,10 +881,10 @@ const ee = (e, t, n = 3) => {
882
881
  total: e,
883
882
  loaded: r
884
883
  }), t[1]];
885
- }, ve = (e) => (...t) => a.asap(() => e(...t)), Gn = 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)))(
884
+ }, ve = (e) => (...t) => a.asap(() => e(...t)), Xn = 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)))(
886
885
  new URL(T.origin),
887
886
  T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
888
- ) : () => !0, Zn = T.hasStandardBrowserEnv ? (
887
+ ) : () => !0, Gn = T.hasStandardBrowserEnv ? (
889
888
  // Standard browser envs support document.cookie
890
889
  {
891
890
  write(e, t, n, r, s, o) {
@@ -912,15 +911,15 @@ const ee = (e, t, n = 3) => {
912
911
  }
913
912
  }
914
913
  );
915
- function Yn(e) {
914
+ function Zn(e) {
916
915
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
917
916
  }
918
- function er(e, t) {
917
+ function Yn(e, t) {
919
918
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
920
919
  }
921
- function wt(e, t, n) {
922
- let r = !Yn(t);
923
- return e && (r || n == !1) ? er(e, t) : t;
920
+ function yt(e, t, n) {
921
+ let r = !Zn(t);
922
+ return e && (r || n == !1) ? Yn(e, t) : t;
924
923
  }
925
924
  const Be = (e) => e instanceof _ ? { ...e } : e;
926
925
  function F(e, t) {
@@ -987,10 +986,10 @@ function F(e, t) {
987
986
  a.isUndefined(w) && d !== c || (n[l] = w);
988
987
  }), n;
989
988
  }
990
- const gt = (e) => {
989
+ const wt = (e) => {
991
990
  const t = F({}, e);
992
991
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
993
- t.headers = i = _.from(i), t.url = dt(wt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
992
+ t.headers = i = _.from(i), t.url = ft(yt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
994
993
  "Authorization",
995
994
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
996
995
  );
@@ -1003,14 +1002,14 @@ const gt = (e) => {
1003
1002
  i.setContentType([u || "multipart/form-data", ...l].join("; "));
1004
1003
  }
1005
1004
  }
1006
- if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Gn(t.url))) {
1007
- const u = s && o && Zn.read(o);
1005
+ if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Xn(t.url))) {
1006
+ const u = s && o && Gn.read(o);
1008
1007
  u && i.set(s, u);
1009
1008
  }
1010
1009
  return t;
1011
- }, tr = typeof XMLHttpRequest < "u", nr = tr && function(e) {
1010
+ }, er = typeof XMLHttpRequest < "u", tr = er && function(e) {
1012
1011
  return new Promise(function(n, r) {
1013
- const s = gt(e);
1012
+ const s = wt(e);
1014
1013
  let o = s.data;
1015
1014
  const i = _.from(s.headers).normalize();
1016
1015
  let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, w, g, p;
@@ -1032,7 +1031,7 @@ const gt = (e) => {
1032
1031
  config: e,
1033
1032
  request: h
1034
1033
  };
1035
- yt(function(U) {
1034
+ mt(function(U) {
1036
1035
  n(U), m();
1037
1036
  }, function(U) {
1038
1037
  r(U), m();
@@ -1046,7 +1045,7 @@ const gt = (e) => {
1046
1045
  r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
1047
1046
  }, h.ontimeout = function() {
1048
1047
  let C = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1049
- const O = s.transitional || pt;
1048
+ const O = s.transitional || dt;
1050
1049
  s.timeoutErrorMessage && (C = s.timeoutErrorMessage), r(new y(
1051
1050
  C,
1052
1051
  O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
@@ -1058,14 +1057,14 @@ const gt = (e) => {
1058
1057
  }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([w, p] = ee(u, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (S) => {
1059
1058
  h && (r(!S || S.type ? new I(null, e, h) : S), h.abort(), h = null);
1060
1059
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1061
- const R = Kn(s.url);
1060
+ const R = Wn(s.url);
1062
1061
  if (R && T.protocols.indexOf(R) === -1) {
1063
1062
  r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, e));
1064
1063
  return;
1065
1064
  }
1066
1065
  h.send(o || null);
1067
1066
  });
1068
- }, rr = (e, t) => {
1067
+ }, nr = (e, t) => {
1069
1068
  const { length: n } = e = e ? e.filter(Boolean) : [];
1070
1069
  if (t || n) {
1071
1070
  let r = new AbortController(), s;
@@ -1088,7 +1087,7 @@ const gt = (e) => {
1088
1087
  const { signal: f } = r;
1089
1088
  return f.unsubscribe = () => a.asap(c), f;
1090
1089
  }
1091
- }, sr = function* (e, t) {
1090
+ }, rr = function* (e, t) {
1092
1091
  let n = e.byteLength;
1093
1092
  if (n < t) {
1094
1093
  yield e;
@@ -1097,10 +1096,10 @@ const gt = (e) => {
1097
1096
  let r = 0, s;
1098
1097
  for (; r < n; )
1099
1098
  s = r + t, yield e.slice(r, s), r = s;
1100
- }, or = async function* (e, t) {
1101
- for await (const n of ir(e))
1102
- yield* sr(n, t);
1103
- }, ir = async function* (e) {
1099
+ }, sr = async function* (e, t) {
1100
+ for await (const n of or(e))
1101
+ yield* rr(n, t);
1102
+ }, or = async function* (e) {
1104
1103
  if (e[Symbol.asyncIterator]) {
1105
1104
  yield* e;
1106
1105
  return;
@@ -1117,7 +1116,7 @@ const gt = (e) => {
1117
1116
  await t.cancel();
1118
1117
  }
1119
1118
  }, Ie = (e, t, n, r) => {
1120
- const s = or(e, t);
1119
+ const s = sr(e, t);
1121
1120
  let o = 0, i, c = (f) => {
1122
1121
  i || (i = !0, r && r(f));
1123
1122
  };
@@ -1145,13 +1144,13 @@ const gt = (e) => {
1145
1144
  }, {
1146
1145
  highWaterMark: 2
1147
1146
  });
1148
- }, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", bt = ae && typeof ReadableStream == "function", ar = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Et = (e, ...t) => {
1147
+ }, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", gt = ae && typeof ReadableStream == "function", ir = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), bt = (e, ...t) => {
1149
1148
  try {
1150
1149
  return !!e(...t);
1151
1150
  } catch {
1152
1151
  return !1;
1153
1152
  }
1154
- }, cr = bt && Et(() => {
1153
+ }, ar = gt && bt(() => {
1155
1154
  let e = !1;
1156
1155
  const t = new Request(T.origin, {
1157
1156
  body: new ReadableStream(),
@@ -1161,7 +1160,7 @@ const gt = (e) => {
1161
1160
  }
1162
1161
  }).headers.has("Content-Type");
1163
1162
  return e && !t;
1164
- }), je = 64 * 1024, ye = bt && Et(() => a.isReadableStream(new Response("").body)), te = {
1163
+ }), je = 64 * 1024, ye = gt && bt(() => a.isReadableStream(new Response("").body)), te = {
1165
1164
  stream: ye && ((e) => e.body)
1166
1165
  };
1167
1166
  ae && ((e) => {
@@ -1171,7 +1170,7 @@ ae && ((e) => {
1171
1170
  });
1172
1171
  });
1173
1172
  })(new Response());
1174
- const ur = async (e) => {
1173
+ const cr = async (e) => {
1175
1174
  if (e == null)
1176
1175
  return 0;
1177
1176
  if (a.isBlob(e))
@@ -1184,11 +1183,11 @@ const ur = async (e) => {
1184
1183
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1185
1184
  return e.byteLength;
1186
1185
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1187
- return (await ar(e)).byteLength;
1188
- }, lr = async (e, t) => {
1186
+ return (await ir(e)).byteLength;
1187
+ }, ur = async (e, t) => {
1189
1188
  const n = a.toFiniteNumber(e.getContentLength());
1190
- return n ?? ur(t);
1191
- }, fr = ae && (async (e) => {
1189
+ return n ?? cr(t);
1190
+ }, lr = ae && (async (e) => {
1192
1191
  let {
1193
1192
  url: t,
1194
1193
  method: n,
@@ -1202,15 +1201,15 @@ const ur = async (e) => {
1202
1201
  headers: l,
1203
1202
  withCredentials: d = "same-origin",
1204
1203
  fetchOptions: w
1205
- } = gt(e);
1204
+ } = wt(e);
1206
1205
  u = u ? (u + "").toLowerCase() : "text";
1207
- let g = rr([s, o && o.toAbortSignal()], i), p;
1206
+ let g = nr([s, o && o.toAbortSignal()], i), p;
1208
1207
  const m = g && g.unsubscribe && (() => {
1209
1208
  g.unsubscribe();
1210
1209
  });
1211
1210
  let h;
1212
1211
  try {
1213
- if (f && cr && n !== "get" && n !== "head" && (h = await lr(l, r)) !== 0) {
1212
+ if (f && ar && n !== "get" && n !== "head" && (h = await ur(l, r)) !== 0) {
1214
1213
  let O = new Request(t, {
1215
1214
  method: "POST",
1216
1215
  body: r,
@@ -1256,7 +1255,7 @@ const ur = async (e) => {
1256
1255
  u = u || "text";
1257
1256
  let C = await te[a.findKey(te, u) || "text"](R, e);
1258
1257
  return !S && m && m(), await new Promise((O, P) => {
1259
- yt(O, P, {
1258
+ mt(O, P, {
1260
1259
  data: C,
1261
1260
  headers: _.from(R.headers),
1262
1261
  status: R.status,
@@ -1274,9 +1273,9 @@ const ur = async (e) => {
1274
1273
  ) : y.from(E, E && E.code, e, p);
1275
1274
  }
1276
1275
  }), we = {
1277
- http: _n,
1278
- xhr: nr,
1279
- fetch: fr
1276
+ http: An,
1277
+ xhr: tr,
1278
+ fetch: lr
1280
1279
  };
1281
1280
  a.forEach(we, (e, t) => {
1282
1281
  if (e) {
@@ -1287,7 +1286,7 @@ a.forEach(we, (e, t) => {
1287
1286
  Object.defineProperty(e, "adapterName", { value: t });
1288
1287
  }
1289
1288
  });
1290
- const qe = (e) => `- ${e}`, dr = (e) => a.isFunction(e) || e === null || e === !1, Rt = {
1289
+ const qe = (e) => `- ${e}`, fr = (e) => a.isFunction(e) || e === null || e === !1, Et = {
1291
1290
  getAdapter: (e) => {
1292
1291
  e = a.isArray(e) ? e : [e];
1293
1292
  const { length: t } = e;
@@ -1296,7 +1295,7 @@ const qe = (e) => `- ${e}`, dr = (e) => a.isFunction(e) || e === null || e === !
1296
1295
  for (let o = 0; o < t; o++) {
1297
1296
  n = e[o];
1298
1297
  let i;
1299
- if (r = n, !dr(n) && (r = we[(i = String(n)).toLowerCase()], r === void 0))
1298
+ if (r = n, !fr(n) && (r = we[(i = String(n)).toLowerCase()], r === void 0))
1300
1299
  throw new y(`Unknown adapter '${i}'`);
1301
1300
  if (r)
1302
1301
  break;
@@ -1326,21 +1325,21 @@ function Me(e) {
1326
1325
  return de(e), e.headers = _.from(e.headers), e.data = fe.call(
1327
1326
  e,
1328
1327
  e.transformRequest
1329
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rt.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
1328
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Et.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
1330
1329
  return de(e), r.data = fe.call(
1331
1330
  e,
1332
1331
  e.transformResponse,
1333
1332
  r
1334
1333
  ), r.headers = _.from(r.headers), r;
1335
1334
  }, function(r) {
1336
- return mt(r) || (de(e), r && r.response && (r.response.data = fe.call(
1335
+ return ht(r) || (de(e), r && r.response && (r.response.data = fe.call(
1337
1336
  e,
1338
1337
  e.transformResponse,
1339
1338
  r.response
1340
1339
  ), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
1341
1340
  });
1342
1341
  }
1343
- const St = "1.10.0", ce = {};
1342
+ const Rt = "1.10.0", ce = {};
1344
1343
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1345
1344
  ce[e] = function(r) {
1346
1345
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
@@ -1349,7 +1348,7 @@ const St = "1.10.0", ce = {};
1349
1348
  const He = {};
1350
1349
  ce.transitional = function(t, n, r) {
1351
1350
  function s(o, i) {
1352
- return "[Axios v" + St + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1351
+ return "[Axios v" + Rt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1353
1352
  }
1354
1353
  return (o, i, c) => {
1355
1354
  if (t === !1)
@@ -1357,18 +1356,13 @@ ce.transitional = function(t, n, r) {
1357
1356
  s(i, " has been removed" + (n ? " in " + n : "")),
1358
1357
  y.ERR_DEPRECATED
1359
1358
  );
1360
- return n && !He[i] && (He[i] = !0, console.warn(
1361
- s(
1362
- i,
1363
- " has been deprecated since v" + n + " and will be removed in the near future"
1364
- )
1365
- )), t ? t(o, i, c) : !0;
1359
+ return n && !He[i] && (He[i] = !0), t ? t(o, i, c) : !0;
1366
1360
  };
1367
1361
  };
1368
1362
  ce.spelling = function(t) {
1369
- return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1363
+ return (n, r) => !0;
1370
1364
  };
1371
- function pr(e, t, n) {
1365
+ function dr(e, t, n) {
1372
1366
  if (typeof e != "object")
1373
1367
  throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1374
1368
  const r = Object.keys(e);
@@ -1386,7 +1380,7 @@ function pr(e, t, n) {
1386
1380
  }
1387
1381
  }
1388
1382
  const Z = {
1389
- assertOptions: pr,
1383
+ assertOptions: dr,
1390
1384
  validators: ce
1391
1385
  }, k = Z.validators;
1392
1386
  class L {
@@ -1485,8 +1479,8 @@ class L {
1485
1479
  }
1486
1480
  getUri(t) {
1487
1481
  t = F(this.defaults, t);
1488
- const n = wt(t.baseURL, t.url, t.allowAbsoluteUrls);
1489
- return dt(n, t.params, t.paramsSerializer);
1482
+ const n = yt(t.baseURL, t.url, t.allowAbsoluteUrls);
1483
+ return ft(n, t.params, t.paramsSerializer);
1490
1484
  }
1491
1485
  }
1492
1486
  a.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1586,12 +1580,12 @@ class xe {
1586
1580
  };
1587
1581
  }
1588
1582
  }
1589
- function hr(e) {
1583
+ function pr(e) {
1590
1584
  return function(n) {
1591
1585
  return e.apply(null, n);
1592
1586
  };
1593
1587
  }
1594
- function mr(e) {
1588
+ function hr(e) {
1595
1589
  return a.isObject(e) && e.isAxiosError === !0;
1596
1590
  }
1597
1591
  const ge = {
@@ -1662,30 +1656,30 @@ const ge = {
1662
1656
  Object.entries(ge).forEach(([e, t]) => {
1663
1657
  ge[t] = e;
1664
1658
  });
1665
- function Tt(e) {
1666
- const t = new L(e), n = et(L.prototype.request, t);
1659
+ function St(e) {
1660
+ const t = new L(e), n = Ye(L.prototype.request, t);
1667
1661
  return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1668
- return Tt(F(e, s));
1662
+ return St(F(e, s));
1669
1663
  }, n;
1670
1664
  }
1671
- const b = Tt(W);
1665
+ const b = St(W);
1672
1666
  b.Axios = L;
1673
1667
  b.CanceledError = I;
1674
1668
  b.CancelToken = xe;
1675
- b.isCancel = mt;
1676
- b.VERSION = St;
1669
+ b.isCancel = ht;
1670
+ b.VERSION = Rt;
1677
1671
  b.toFormData = ie;
1678
1672
  b.AxiosError = y;
1679
1673
  b.Cancel = b.CanceledError;
1680
1674
  b.all = function(t) {
1681
1675
  return Promise.all(t);
1682
1676
  };
1683
- b.spread = hr;
1684
- b.isAxiosError = mr;
1677
+ b.spread = pr;
1678
+ b.isAxiosError = hr;
1685
1679
  b.mergeConfig = F;
1686
1680
  b.AxiosHeaders = _;
1687
- b.formToJSON = (e) => ht(a.isHTMLForm(e) ? new FormData(e) : e);
1688
- b.getAdapter = Rt.getAdapter;
1681
+ b.formToJSON = (e) => pt(a.isHTMLForm(e) ? new FormData(e) : e);
1682
+ b.getAdapter = Et.getAdapter;
1689
1683
  b.HttpStatusCode = ge;
1690
1684
  b.default = b;
1691
1685
  /*! js-cookie v3.0.5 | MIT */
@@ -1697,7 +1691,7 @@ function Q(e) {
1697
1691
  }
1698
1692
  return e;
1699
1693
  }
1700
- var yr = {
1694
+ var mr = {
1701
1695
  read: function(e) {
1702
1696
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1703
1697
  },
@@ -1758,14 +1752,14 @@ function be(e, t) {
1758
1752
  }
1759
1753
  );
1760
1754
  }
1761
- var wr = be(yr, { path: "/" }), ze;
1762
- const Ot = typeof window < "u", gr = (e) => typeof e == "string", $e = () => +Date.now(), Ee = () => {
1755
+ var yr = be(mr, { path: "/" }), ze;
1756
+ const Tt = typeof window < "u", wr = (e) => typeof e == "string", $e = () => +Date.now(), Ee = () => {
1763
1757
  };
1764
- Ot && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1758
+ Tt && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1765
1759
  function ke(e) {
1766
- return typeof e == "function" ? e() : Ut(e);
1760
+ return typeof e == "function" ? e() : Pt(e);
1767
1761
  }
1768
- function br(e, t) {
1762
+ function gr(e, t) {
1769
1763
  function n(...r) {
1770
1764
  return new Promise((s, o) => {
1771
1765
  Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(o);
@@ -1773,7 +1767,7 @@ function br(e, t) {
1773
1767
  }
1774
1768
  return n;
1775
1769
  }
1776
- function Er(e, t = !0, n = !0, r = !1) {
1770
+ function br(e, t = !0, n = !0, r = !1) {
1777
1771
  let s = 0, o, i = !0, c = Ee, f;
1778
1772
  const u = () => {
1779
1773
  o && (clearTimeout(o), o = void 0, c(), c = Ee);
@@ -1787,45 +1781,45 @@ function Er(e, t = !0, n = !0, r = !1) {
1787
1781
  })), !n && !o && (o = setTimeout(() => i = !0, w)), i = !1, f);
1788
1782
  };
1789
1783
  }
1790
- function Rr(e) {
1784
+ function Er(e) {
1791
1785
  return e;
1792
1786
  }
1793
- function Sr(e) {
1794
- return Nt() ? (Lt(e), !0) : !1;
1787
+ function Rr(e) {
1788
+ return Ut() ? (Nt(e), !0) : !1;
1795
1789
  }
1796
- function Tr(e) {
1790
+ function Sr(e) {
1797
1791
  var t;
1798
1792
  const n = ke(e);
1799
1793
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
1800
1794
  }
1801
- const At = Ot ? window : void 0;
1795
+ const Ot = Tt ? window : void 0;
1802
1796
  function Je(...e) {
1803
1797
  let t, n, r, s;
1804
- if (gr(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = At) : [t, n, r, s] = e, !t)
1798
+ if (wr(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = Ot) : [t, n, r, s] = e, !t)
1805
1799
  return Ee;
1806
1800
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1807
1801
  const o = [], i = () => {
1808
1802
  o.forEach((l) => l()), o.length = 0;
1809
- }, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Se(() => [Tr(t), ke(s)], ([l, d]) => {
1803
+ }, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Se(() => [Sr(t), ke(s)], ([l, d]) => {
1810
1804
  i(), l && o.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
1811
1805
  }, { immediate: !0, flush: "post" }), u = () => {
1812
1806
  f(), i();
1813
1807
  };
1814
- return Sr(u), u;
1808
+ return Rr(u), u;
1815
1809
  }
1816
1810
  const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__";
1817
1811
  Ve[We] = Ve[We] || {};
1818
- const Or = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Ar = 6e4;
1819
- function _r(e = Ar, t = {}) {
1812
+ const Tr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Or = 6e4;
1813
+ function Ar(e = Or, t = {}) {
1820
1814
  const {
1821
1815
  initialState: n = !1,
1822
1816
  listenForVisibilityChange: r = !0,
1823
- events: s = Or,
1824
- window: o = At,
1825
- eventFilter: i = Er(50)
1817
+ events: s = Tr,
1818
+ window: o = Ot,
1819
+ eventFilter: i = br(50)
1826
1820
  } = t, c = Y(n), f = Y($e());
1827
1821
  let u;
1828
- const l = br(i, () => {
1822
+ const l = gr(i, () => {
1829
1823
  c.value = !1, f.value = $e(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
1830
1824
  });
1831
1825
  if (o) {
@@ -1842,15 +1836,15 @@ var Ke;
1842
1836
  (function(e) {
1843
1837
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1844
1838
  })(Ke || (Ke = {}));
1845
- var xr = Object.defineProperty, Qe = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pr = (e, t) => {
1839
+ var _r = Object.defineProperty, Qe = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Cr = (e, t) => {
1846
1840
  for (var n in t)
1847
- kr.call(t, n) && Xe(e, n, t[n]);
1841
+ xr.call(t, n) && Xe(e, n, t[n]);
1848
1842
  if (Qe)
1849
1843
  for (var n of Qe(t))
1850
- Cr.call(t, n) && Xe(e, n, t[n]);
1844
+ kr.call(t, n) && Xe(e, n, t[n]);
1851
1845
  return e;
1852
1846
  };
1853
- const Ur = {
1847
+ const Pr = {
1854
1848
  easeInSine: [0.12, 0, 0.39, 0],
1855
1849
  easeOutSine: [0.61, 1, 0.88, 1],
1856
1850
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1876,27 +1870,27 @@ const Ur = {
1876
1870
  easeOutBack: [0.34, 1.56, 0.64, 1],
1877
1871
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1878
1872
  };
1879
- Pr({
1880
- linear: Rr
1881
- }, Ur);
1873
+ Cr({
1874
+ linear: Er
1875
+ }, Pr);
1882
1876
  let Re;
1883
- const _t = { triggerProxySso: "triggerProxySso" }, Nr = () => {
1877
+ const At = { triggerProxySso: "triggerProxySso" }, Ur = () => {
1884
1878
  Re = (e) => {
1885
1879
  var n;
1886
1880
  const { origin: t } = new URL(location.href);
1887
1881
  (n = window.top) == null || n.postMessage(
1888
- { type: _t.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1882
+ { type: At.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1889
1883
  t
1890
1884
  );
1891
1885
  };
1892
- }, Lr = (e) => {
1886
+ }, Nr = (e) => {
1893
1887
  window.top === window.self && window.addEventListener("message", (t) => {
1894
1888
  const { type: n, data: r } = t.data;
1895
- n === _t.triggerProxySso && (e == null || e(r));
1889
+ n === At.triggerProxySso && (e == null || e(r));
1896
1890
  });
1897
1891
  };
1898
- window.top !== window.self && Nr();
1899
- let xt = (e = 21) => {
1892
+ window.top !== window.self && Ur();
1893
+ let _t = (e = 21) => {
1900
1894
  let t = "", n = crypto.getRandomValues(new Uint8Array(e));
1901
1895
  for (; e--; ) {
1902
1896
  let r = n[e] & 63;
@@ -1904,41 +1898,41 @@ let xt = (e = 21) => {
1904
1898
  }
1905
1899
  return t;
1906
1900
  };
1907
- const kt = (e) => new URL(location.href).searchParams.get(e), v = {
1901
+ const xt = (e) => new URL(location.href).searchParams.get(e), v = {
1908
1902
  oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
1909
1903
  // 重定向到登录页
1910
1904
  logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
1911
1905
  // 清除登录信息
1912
1906
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
1913
1907
  // 通过code获取token
1914
- }, { baseURL: Ge, noRedireLogin: Fr = !1 } = Te(), z = location.origin + "/home", D = {
1908
+ }, { baseURL: Ge, noRedireLogin: Lr = !1 } = Te(), z = location.origin + "/home", D = {
1915
1909
  response_type: "code",
1916
1910
  scope: "sever",
1917
1911
  client_id: "sys",
1918
- client_secret: Ft("das123"),
1912
+ client_secret: Lt("das123"),
1919
1913
  state: +/* @__PURE__ */ new Date()
1920
- }, Dr = () => {
1914
+ }, Fr = () => {
1921
1915
  const e = Ze(location.href, "redirect_url") || "";
1922
1916
  if (e)
1923
1917
  window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
1924
1918
  else {
1925
1919
  const t = ["code", "state", "kingdee_token", "redirect_url"];
1926
- window.history.replaceState({}, "", Dt(t));
1920
+ window.history.replaceState({}, "", Ft(t));
1927
1921
  }
1928
- }, Ct = Y(!1), Pt = (e) => {
1922
+ }, kt = Y(!1), Ct = (e) => {
1929
1923
  if (e <= 0) return;
1930
- const { idle: t } = _r(e);
1924
+ const { idle: t } = Ar(e);
1931
1925
  Se(
1932
1926
  () => t.value,
1933
1927
  (n) => {
1934
- n === !0 && (Ct.value = !0);
1928
+ n === !0 && (kt.value = !0);
1935
1929
  }
1936
1930
  );
1937
1931
  };
1938
- localStorage.getItem("idelTime") && Pt(Number(localStorage.getItem("idelTime")));
1939
- const vr = async () => {
1940
- const e = kt("code") || "";
1941
- if (console.log("getTokenFromCode===", e), !e) return M();
1932
+ localStorage.getItem("idelTime") && Ct(Number(localStorage.getItem("idelTime")));
1933
+ const Dr = async () => {
1934
+ const e = xt("code") || "";
1935
+ if (!e) return M();
1942
1936
  const t = Ze(location.href, "kingdee_token") || "";
1943
1937
  let n = {};
1944
1938
  const r = {
@@ -1948,7 +1942,7 @@ const vr = async () => {
1948
1942
  client_secret: D.client_secret,
1949
1943
  redirect_uri: z,
1950
1944
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
1951
- nonce: xt()
1945
+ nonce: _t()
1952
1946
  };
1953
1947
  t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
1954
1948
  try {
@@ -1964,7 +1958,7 @@ const vr = async () => {
1964
1958
  params: r,
1965
1959
  headers: {
1966
1960
  "Content-Type": "application/x-www-form-urlencoded",
1967
- "csrf-token": wr.get("csrf-token")
1961
+ "csrf-token": yr.get("csrf-token")
1968
1962
  }
1969
1963
  }
1970
1964
  );
@@ -1974,15 +1968,15 @@ const vr = async () => {
1974
1968
  refreshToken: i,
1975
1969
  info: n.data
1976
1970
  };
1977
- J().save(f), await Ye(s);
1971
+ J().save(f);
1978
1972
  const u = Number(c) - (/* @__PURE__ */ new Date()).getTime();
1979
- return u && u > 0 && (Pt(u), u && localStorage.setItem("idelTime", u.toString())), Dr(), s;
1973
+ return u && u > 0 && (Ct(u), u && localStorage.setItem("idelTime", u.toString())), Fr(), s;
1980
1974
  } catch {
1981
1975
  return $({ ...D, redirect_uri: z });
1982
1976
  }
1983
- }, q = Y(!1), Jr = async (e) => {
1977
+ }, q = Y(!1), zr = async (e) => {
1984
1978
  if (e.public) return "";
1985
- if (Ct.value) return $({ ...D, redirect_uri: z });
1979
+ if (kt.value) return $({ ...D, redirect_uri: z });
1986
1980
  if (q.value)
1987
1981
  return await new Promise(async (s) => {
1988
1982
  Se(
@@ -1995,19 +1989,19 @@ const vr = async () => {
1995
1989
  }
1996
1990
  );
1997
1991
  });
1998
- const { accessTokenExpiredAt: t } = J().getData(), n = kt("code") || "";
1992
+ const { accessTokenExpiredAt: t } = J().getData(), n = xt("code") || "";
1999
1993
  if ((!M() || t === 0) && !n)
2000
1994
  return $({ ...D, redirect_uri: z });
2001
1995
  let r = M();
2002
1996
  q.value = !0;
2003
1997
  try {
2004
- typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await Br(D)), r = await vr(), q.value = !1;
1998
+ typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await vr(D)), r = await Dr(), q.value = !1;
2005
1999
  } catch {
2006
2000
  q.value = !1;
2007
2001
  }
2008
2002
  return r;
2009
2003
  }, $ = (e) => {
2010
- if (Fr) return;
2004
+ if (Lr) return;
2011
2005
  const { baseURL: t, ssoLocale: n } = Te();
2012
2006
  if (Re) return Re(e);
2013
2007
  e.logout = "true", n && (e.locale = "locale");
@@ -2019,8 +2013,8 @@ const vr = async () => {
2019
2013
  }
2020
2014
  window.__isAutoCloseApp = !1, location.replace(s);
2021
2015
  };
2022
- Lr($);
2023
- const Br = async (e) => {
2016
+ Nr($);
2017
+ const vr = async (e) => {
2024
2018
  const { baseURL: t } = Te(), { refreshToken: n } = J().getData();
2025
2019
  try {
2026
2020
  await b.create().get(v.token, { baseURL: t });
@@ -2038,7 +2032,7 @@ const Br = async (e) => {
2038
2032
  client_id: e.client_id,
2039
2033
  client_secret: e.client_secret,
2040
2034
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
2041
- nonce: xt()
2035
+ nonce: _t()
2042
2036
  }
2043
2037
  }
2044
2038
  ), { access_token: s = "", expires_in: o = 0, refresh_token: i = "" } = r.data, c = {
@@ -2047,7 +2041,7 @@ const Br = async (e) => {
2047
2041
  refreshToken: i,
2048
2042
  info: r.data
2049
2043
  };
2050
- return J().save(c), await Ye(s), s;
2044
+ return J().save(c), s;
2051
2045
  } catch {
2052
2046
  return $({ ...e, redirect_uri: z });
2053
2047
  }
@@ -2058,22 +2052,22 @@ const Br = async (e) => {
2058
2052
  refreshToken: ue("refreshToken")
2059
2053
  }),
2060
2054
  save: (e) => {
2061
- vt(
2055
+ Dt(
2062
2056
  e.accessToken || "",
2063
2057
  {
2064
2058
  accessTokenExpiredAt: e.accessTokenExpiredAt,
2065
2059
  refreshToken: e.refreshToken
2066
2060
  }
2067
- ), It(e);
2061
+ ), Bt(e);
2068
2062
  },
2069
2063
  remove: () => {
2070
- Bt(), jt();
2064
+ vt(), It();
2071
2065
  }
2072
2066
  });
2073
2067
  export {
2074
- kt as getQuery,
2075
- Jr as getToken,
2076
- vr as getTokenFromCode,
2068
+ xt as getQuery,
2069
+ zr as getToken,
2070
+ Dr as getTokenFromCode,
2077
2071
  D as getTokenParams,
2078
2072
  $ as login,
2079
2073
  z as real_uri,