@das-fed/utils 6.4.0-test.2.1 → 6.4.0-test.20

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 (82) hide show
  1. package/api-services/i18n/index.d.ts +53 -0
  2. package/api-services/i18n/index.js +27 -0
  3. package/api-services/i18n/index.js.gz +0 -0
  4. package/api-services/index.js +1092 -1019
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +876 -833
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +876 -833
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +879 -836
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +876 -833
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +886 -843
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +876 -833
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.d.ts +1 -0
  19. package/api-services/modules/file/index.js +2978 -154
  20. package/api-services/modules/file/index.js.gz +0 -0
  21. package/api-services/modules/gateway-edge/index.js +876 -833
  22. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  23. package/api-services/modules/index.js +1044 -996
  24. package/api-services/modules/index.js.gz +0 -0
  25. package/api-services/modules/iot/index.d.ts +1 -0
  26. package/api-services/modules/iot/index.js +917 -873
  27. package/api-services/modules/iot/index.js.gz +0 -0
  28. package/api-services/modules/justauth/index.js +877 -834
  29. package/api-services/modules/justauth/index.js.gz +0 -0
  30. package/api-services/modules/knowledge/index.js +886 -843
  31. package/api-services/modules/knowledge/index.js.gz +0 -0
  32. package/api-services/modules/link/index.js +876 -833
  33. package/api-services/modules/link/index.js.gz +0 -0
  34. package/api-services/modules/permission/index.js +876 -833
  35. package/api-services/modules/permission/index.js.gz +0 -0
  36. package/api-services/modules/platformManage/index.js +846 -803
  37. package/api-services/modules/platformManage/index.js.gz +0 -0
  38. package/api-services/modules/portal/index.js +876 -833
  39. package/api-services/modules/portal/index.js.gz +0 -0
  40. package/api-services/modules/space-manage/index.js +876 -833
  41. package/api-services/modules/space-manage/index.js.gz +0 -0
  42. package/api-services/modules/super-admin/index.js +897 -854
  43. package/api-services/modules/super-admin/index.js.gz +0 -0
  44. package/api-services/modules/supplier/index.js +883 -840
  45. package/api-services/modules/supplier/index.js.gz +0 -0
  46. package/api-services/modules/supplychain-manage/index.js +876 -833
  47. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  48. package/api-services/modules/systemConfiguration/index.js +876 -833
  49. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  50. package/api-services/modules/tool/index.js +876 -833
  51. package/api-services/modules/tool/index.js.gz +0 -0
  52. package/api-services/src/create-service/index.js +874 -831
  53. package/api-services/src/create-service/index.js.gz +0 -0
  54. package/common-info/index.d.ts +9 -3
  55. package/common-info/index.js +110 -55
  56. package/common-info/index.js.gz +0 -0
  57. package/common-info/set-personal-info/index.js +16 -12
  58. package/common-info/set-personal-info/index.js.gz +0 -0
  59. package/common-info/type.d.ts +116 -6
  60. package/common-tools/calc-text-width/index.d.ts +1 -0
  61. package/common-tools/calc-text-width/index.js +10 -0
  62. package/common-tools/index.d.ts +2 -0
  63. package/common-tools/index.js +2 -0
  64. package/common-tools/nest-tree-format/index.d.ts +1 -1
  65. package/common-tools/nest-tree-format/index.js +15 -15
  66. package/common-tools/update-browser-title/index.d.ts +1 -0
  67. package/common-tools/update-browser-title/index.js +12 -0
  68. package/create-api-service/i18n/index.d.ts +33 -0
  69. package/create-api-service/i18n/index.js +15 -0
  70. package/create-api-service/index.js +874 -831
  71. package/create-api-service/index.js.gz +0 -0
  72. package/create-api-service/sso/index.d.ts +0 -2
  73. package/create-api-service/sso/index.js +716 -620
  74. package/create-api-service/sso/index.js.gz +0 -0
  75. package/directive/hoverInside/index.d.ts +1 -1
  76. package/dom-check-in/index.js +2 -2
  77. package/dom-watcher/index.d.ts +1 -1
  78. package/esm-map.json +6 -2
  79. package/package.json +4 -3
  80. package/token-tools/index.d.ts +6 -6
  81. package/token-tools/index.js +8 -84
  82. package/token-tools/index.js.gz +0 -0
@@ -1,129 +1,129 @@
1
- import { unref as ft, getCurrentScope as dt, onScopeDispose as pt, ref as J, watch as ae } from "vue";
2
- import { encryption as ht } from "@das-fed/utils/atob";
3
- import { getConfig as ce } from "@das-fed/utils/config";
4
- import { getUrlParams as De, funcUrlDel as mt } from "@das-fed/utils/common-tools";
5
- import { getAccessToken as L, removeAccessToken as Le, getAccessTokenInfo as q, setAccessToken as yt } from "@das-fed/utils/token-tools";
6
- import { setProcessEngineToken as wt, removeProcessEngineToken as Et } from "@das-fed/utils/process-engine-info";
7
- import { setPersonalInfo as Be } from "@das-fed/utils/common-info/set-personal-info";
8
- function Ie(e, t) {
1
+ import { unref as ht, getCurrentScope as mt, onScopeDispose as yt, ref as V, watch as le } from "vue";
2
+ import { encryption as wt } from "@das-fed/utils/atob";
3
+ import { getConfig as fe } from "@das-fed/utils/config";
4
+ import { getUrlParams as Be, funcUrlDel as Et } from "@das-fed/utils/common-tools";
5
+ import { getAccessToken as L, getAccessTokenInfo as X, setAccessToken as gt, removeAccessToken as bt } from "@das-fed/utils/token-tools";
6
+ import { setProcessEngineToken as St, removeProcessEngineToken as Ot } from "@das-fed/utils/process-engine-info";
7
+ import { setPersonalInfo as Ie } from "@das-fed/utils/common-info/set-personal-info";
8
+ function je(e, t) {
9
9
  return function() {
10
10
  return e.apply(t, arguments);
11
11
  };
12
12
  }
13
- const { toString: bt } = Object.prototype, { getPrototypeOf: ue } = Object, V = /* @__PURE__ */ ((e) => (t) => {
14
- const n = bt.call(t);
13
+ const { toString: Rt } = Object.prototype, { getPrototypeOf: de } = Object, W = /* @__PURE__ */ ((e) => (t) => {
14
+ const n = Rt.call(t);
15
15
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
16
- })(/* @__PURE__ */ Object.create(null)), R = (e) => (e = e.toLowerCase(), (t) => V(t) === e), W = (e) => (t) => typeof t === e, { isArray: U } = Array, B = W("undefined");
17
- function St(e) {
18
- return e !== null && !B(e) && e.constructor !== null && !B(e.constructor) && g(e.constructor.isBuffer) && e.constructor.isBuffer(e);
16
+ })(/* @__PURE__ */ Object.create(null)), T = (e) => (e = e.toLowerCase(), (t) => W(t) === e), K = (e) => (t) => typeof t === e, { isArray: U } = Array, v = K("undefined");
17
+ function Tt(e) {
18
+ return e !== null && !v(e) && e.constructor !== null && !v(e.constructor) && S(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19
19
  }
20
- const je = R("ArrayBuffer");
21
- function gt(e) {
20
+ const He = T("ArrayBuffer");
21
+ function At(e) {
22
22
  let t;
23
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
23
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && He(e.buffer), t;
24
24
  }
25
- const Ot = W("string"), g = W("function"), ve = W("number"), K = (e) => e !== null && typeof e == "object", Tt = (e) => e === !0 || e === !1, z = (e) => {
26
- if (V(e) !== "object")
25
+ const _t = K("string"), S = K("function"), Me = K("number"), Q = (e) => e !== null && typeof e == "object", kt = (e) => e === !0 || e === !1, $ = (e) => {
26
+ if (W(e) !== "object")
27
27
  return !1;
28
- const t = ue(e);
28
+ const t = de(e);
29
29
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
30
- }, Rt = R("Date"), At = R("File"), _t = R("Blob"), kt = R("FileList"), xt = (e) => K(e) && g(e.pipe), Pt = (e) => {
30
+ }, xt = T("Date"), Pt = T("File"), Ct = T("Blob"), Nt = T("FileList"), Ut = (e) => Q(e) && S(e.pipe), Dt = (e) => {
31
31
  let t;
32
- return e && (typeof FormData == "function" && e instanceof FormData || g(e.append) && ((t = V(e)) === "formdata" || // detect form-data instance
33
- t === "object" && g(e.toString) && e.toString() === "[object FormData]"));
34
- }, Nt = R("URLSearchParams"), Ct = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
35
- function v(e, t, { allOwnKeys: n = !1 } = {}) {
32
+ return e && (typeof FormData == "function" && e instanceof FormData || S(e.append) && ((t = W(e)) === "formdata" || // detect form-data instance
33
+ t === "object" && S(e.toString) && e.toString() === "[object FormData]"));
34
+ }, Ft = T("URLSearchParams"), Lt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
35
+ function H(e, t, { allOwnKeys: n = !1 } = {}) {
36
36
  if (e === null || typeof e > "u")
37
37
  return;
38
- let r, s;
38
+ let r, o;
39
39
  if (typeof e != "object" && (e = [e]), U(e))
40
- for (r = 0, s = e.length; r < s; r++)
40
+ for (r = 0, o = e.length; r < o; r++)
41
41
  t.call(null, e[r], r, e);
42
42
  else {
43
- const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
43
+ const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
44
44
  let c;
45
45
  for (r = 0; r < i; r++)
46
- c = o[r], t.call(null, e[c], c, e);
46
+ c = s[r], t.call(null, e[c], c, e);
47
47
  }
48
48
  }
49
- function He(e, t) {
49
+ function qe(e, t) {
50
50
  t = t.toLowerCase();
51
51
  const n = Object.keys(e);
52
- let r = n.length, s;
52
+ let r = n.length, o;
53
53
  for (; r-- > 0; )
54
- if (s = n[r], t === s.toLowerCase())
55
- return s;
54
+ if (o = n[r], t === o.toLowerCase())
55
+ return o;
56
56
  return null;
57
57
  }
58
- const Me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, qe = (e) => !B(e) && e !== Me;
59
- function ee() {
60
- const { caseless: e } = qe(this) && this || {}, t = {}, n = (r, s) => {
61
- const o = e && He(t, s) || s;
62
- z(t[o]) && z(r) ? t[o] = ee(t[o], r) : z(r) ? t[o] = ee({}, r) : U(r) ? t[o] = r.slice() : t[o] = r;
58
+ const ze = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, $e = (e) => !v(e) && e !== ze;
59
+ function ne() {
60
+ const { caseless: e } = $e(this) && this || {}, t = {}, n = (r, o) => {
61
+ const s = e && qe(t, o) || o;
62
+ $(t[s]) && $(r) ? t[s] = ne(t[s], r) : $(r) ? t[s] = ne({}, r) : U(r) ? t[s] = r.slice() : t[s] = r;
63
63
  };
64
- for (let r = 0, s = arguments.length; r < s; r++)
65
- arguments[r] && v(arguments[r], n);
64
+ for (let r = 0, o = arguments.length; r < o; r++)
65
+ arguments[r] && H(arguments[r], n);
66
66
  return t;
67
67
  }
68
- const Ut = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, o) => {
69
- n && g(s) ? e[o] = Ie(s, n) : e[o] = s;
70
- }, { allOwnKeys: r }), e), Ft = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Dt = (e, t, n, r) => {
68
+ const vt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (o, s) => {
69
+ n && S(o) ? e[s] = je(o, n) : e[s] = o;
70
+ }, { allOwnKeys: r }), e), Bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), It = (e, t, n, r) => {
71
71
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
72
72
  value: t.prototype
73
73
  }), n && Object.assign(e.prototype, n);
74
- }, Lt = (e, t, n, r) => {
75
- let s, o, i;
74
+ }, jt = (e, t, n, r) => {
75
+ let o, s, i;
76
76
  const c = {};
77
77
  if (t = t || {}, e == null) return t;
78
78
  do {
79
- for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
80
- i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
81
- e = n !== !1 && ue(e);
79
+ for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
80
+ i = o[s], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
81
+ e = n !== !1 && de(e);
82
82
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
83
83
  return t;
84
- }, Bt = (e, t, n) => {
84
+ }, Ht = (e, t, n) => {
85
85
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
86
86
  const r = e.indexOf(t, n);
87
87
  return r !== -1 && r === n;
88
- }, It = (e) => {
88
+ }, Mt = (e) => {
89
89
  if (!e) return null;
90
90
  if (U(e)) return e;
91
91
  let t = e.length;
92
- if (!ve(t)) return null;
92
+ if (!Me(t)) return null;
93
93
  const n = new Array(t);
94
94
  for (; t-- > 0; )
95
95
  n[t] = e[t];
96
96
  return n;
97
- }, jt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), vt = (e, t) => {
97
+ }, qt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && de(Uint8Array)), zt = (e, t) => {
98
98
  const r = (e && e[Symbol.iterator]).call(e);
99
- let s;
100
- for (; (s = r.next()) && !s.done; ) {
101
- const o = s.value;
102
- t.call(e, o[0], o[1]);
99
+ let o;
100
+ for (; (o = r.next()) && !o.done; ) {
101
+ const s = o.value;
102
+ t.call(e, s[0], s[1]);
103
103
  }
104
- }, Ht = (e, t) => {
104
+ }, $t = (e, t) => {
105
105
  let n;
106
106
  const r = [];
107
107
  for (; (n = e.exec(t)) !== null; )
108
108
  r.push(n);
109
109
  return r;
110
- }, Mt = R("HTMLFormElement"), qt = (e) => e.toLowerCase().replace(
110
+ }, Jt = T("HTMLFormElement"), Vt = (e) => e.toLowerCase().replace(
111
111
  /[-_\s]([a-z\d])(\w*)/g,
112
- function(n, r, s) {
113
- return r.toUpperCase() + s;
112
+ function(n, r, o) {
113
+ return r.toUpperCase() + o;
114
114
  }
115
- ), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), zt = R("RegExp"), ze = (e, t) => {
115
+ ), we = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Wt = T("RegExp"), Je = (e, t) => {
116
116
  const n = Object.getOwnPropertyDescriptors(e), r = {};
117
- v(n, (s, o) => {
117
+ H(n, (o, s) => {
118
118
  let i;
119
- (i = t(s, o, e)) !== !1 && (r[o] = i || s);
119
+ (i = t(o, s, e)) !== !1 && (r[s] = i || o);
120
120
  }), Object.defineProperties(e, r);
121
- }, $t = (e) => {
122
- ze(e, (t, n) => {
123
- if (g(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
121
+ }, Kt = (e) => {
122
+ Je(e, (t, n) => {
123
+ if (S(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
124
124
  return !1;
125
125
  const r = e[n];
126
- if (g(r)) {
126
+ if (S(r)) {
127
127
  if (t.enumerable = !1, "writable" in t) {
128
128
  t.writable = !1;
129
129
  return;
@@ -133,101 +133,101 @@ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, o) => {
133
133
  });
134
134
  }
135
135
  });
136
- }, Jt = (e, t) => {
137
- const n = {}, r = (s) => {
138
- s.forEach((o) => {
139
- n[o] = !0;
136
+ }, Qt = (e, t) => {
137
+ const n = {}, r = (o) => {
138
+ o.forEach((s) => {
139
+ n[s] = !0;
140
140
  });
141
141
  };
142
142
  return U(e) ? r(e) : r(String(e).split(t)), n;
143
- }, Vt = () => {
144
- }, Wt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), G = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", $e = {
145
- DIGIT: ye,
146
- ALPHA: G,
147
- ALPHA_DIGIT: G + G.toUpperCase() + ye
148
- }, Kt = (e = 16, t = $e.ALPHA_DIGIT) => {
143
+ }, Gt = () => {
144
+ }, Xt = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Z = "abcdefghijklmnopqrstuvwxyz", Ee = "0123456789", Ve = {
145
+ DIGIT: Ee,
146
+ ALPHA: Z,
147
+ ALPHA_DIGIT: Z + Z.toUpperCase() + Ee
148
+ }, Zt = (e = 16, t = Ve.ALPHA_DIGIT) => {
149
149
  let n = "";
150
150
  const { length: r } = t;
151
151
  for (; e--; )
152
152
  n += t[Math.random() * r | 0];
153
153
  return n;
154
154
  };
155
- function Qt(e) {
156
- return !!(e && g(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
155
+ function Yt(e) {
156
+ return !!(e && S(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
157
157
  }
158
- const Gt = (e) => {
159
- const t = new Array(10), n = (r, s) => {
160
- if (K(r)) {
158
+ const en = (e) => {
159
+ const t = new Array(10), n = (r, o) => {
160
+ if (Q(r)) {
161
161
  if (t.indexOf(r) >= 0)
162
162
  return;
163
163
  if (!("toJSON" in r)) {
164
- t[s] = r;
165
- const o = U(r) ? [] : {};
166
- return v(r, (i, c) => {
167
- const f = n(i, s + 1);
168
- !B(f) && (o[c] = f);
169
- }), t[s] = void 0, o;
164
+ t[o] = r;
165
+ const s = U(r) ? [] : {};
166
+ return H(r, (i, c) => {
167
+ const f = n(i, o + 1);
168
+ !v(f) && (s[c] = f);
169
+ }), t[o] = void 0, s;
170
170
  }
171
171
  }
172
172
  return r;
173
173
  };
174
174
  return n(e, 0);
175
- }, Xt = R("AsyncFunction"), Zt = (e) => e && (K(e) || g(e)) && g(e.then) && g(e.catch), a = {
175
+ }, tn = T("AsyncFunction"), nn = (e) => e && (Q(e) || S(e)) && S(e.then) && S(e.catch), a = {
176
176
  isArray: U,
177
- isArrayBuffer: je,
178
- isBuffer: St,
179
- isFormData: Pt,
180
- isArrayBufferView: gt,
181
- isString: Ot,
182
- isNumber: ve,
183
- isBoolean: Tt,
184
- isObject: K,
185
- isPlainObject: z,
186
- isUndefined: B,
187
- isDate: Rt,
188
- isFile: At,
189
- isBlob: _t,
190
- isRegExp: zt,
191
- isFunction: g,
192
- isStream: xt,
193
- isURLSearchParams: Nt,
194
- isTypedArray: jt,
195
- isFileList: kt,
196
- forEach: v,
197
- merge: ee,
198
- extend: Ut,
199
- trim: Ct,
200
- stripBOM: Ft,
201
- inherits: Dt,
202
- toFlatObject: Lt,
203
- kindOf: V,
204
- kindOfTest: R,
205
- endsWith: Bt,
206
- toArray: It,
207
- forEachEntry: vt,
208
- matchAll: Ht,
209
- isHTMLForm: Mt,
210
- hasOwnProperty: me,
211
- hasOwnProp: me,
177
+ isArrayBuffer: He,
178
+ isBuffer: Tt,
179
+ isFormData: Dt,
180
+ isArrayBufferView: At,
181
+ isString: _t,
182
+ isNumber: Me,
183
+ isBoolean: kt,
184
+ isObject: Q,
185
+ isPlainObject: $,
186
+ isUndefined: v,
187
+ isDate: xt,
188
+ isFile: Pt,
189
+ isBlob: Ct,
190
+ isRegExp: Wt,
191
+ isFunction: S,
192
+ isStream: Ut,
193
+ isURLSearchParams: Ft,
194
+ isTypedArray: qt,
195
+ isFileList: Nt,
196
+ forEach: H,
197
+ merge: ne,
198
+ extend: vt,
199
+ trim: Lt,
200
+ stripBOM: Bt,
201
+ inherits: It,
202
+ toFlatObject: jt,
203
+ kindOf: W,
204
+ kindOfTest: T,
205
+ endsWith: Ht,
206
+ toArray: Mt,
207
+ forEachEntry: zt,
208
+ matchAll: $t,
209
+ isHTMLForm: Jt,
210
+ hasOwnProperty: we,
211
+ hasOwnProp: we,
212
212
  // an alias to avoid ESLint no-prototype-builtins detection
213
- reduceDescriptors: ze,
214
- freezeMethods: $t,
215
- toObjectSet: Jt,
216
- toCamelCase: qt,
217
- noop: Vt,
218
- toFiniteNumber: Wt,
219
- findKey: He,
220
- global: Me,
221
- isContextDefined: qe,
222
- ALPHABET: $e,
223
- generateString: Kt,
224
- isSpecCompliantForm: Qt,
225
- toJSONObject: Gt,
226
- isAsyncFn: Xt,
227
- isThenable: Zt
213
+ reduceDescriptors: Je,
214
+ freezeMethods: Kt,
215
+ toObjectSet: Qt,
216
+ toCamelCase: Vt,
217
+ noop: Gt,
218
+ toFiniteNumber: Xt,
219
+ findKey: qe,
220
+ global: ze,
221
+ isContextDefined: $e,
222
+ ALPHABET: Ve,
223
+ generateString: Zt,
224
+ isSpecCompliantForm: Yt,
225
+ toJSONObject: en,
226
+ isAsyncFn: tn,
227
+ isThenable: nn
228
228
  };
229
- function m(e, t, n, r, s) {
230
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s);
229
+ function m(e, t, n, r, o) {
230
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o);
231
231
  }
232
232
  a.inherits(m, Error, {
233
233
  toJSON: function() {
@@ -250,7 +250,7 @@ a.inherits(m, Error, {
250
250
  };
251
251
  }
252
252
  });
253
- const Je = m.prototype, Ve = {};
253
+ const We = m.prototype, Ke = {};
254
254
  [
255
255
  "ERR_BAD_OPTION_VALUE",
256
256
  "ERR_BAD_OPTION",
@@ -266,46 +266,46 @@ const Je = m.prototype, Ve = {};
266
266
  "ERR_INVALID_URL"
267
267
  // eslint-disable-next-line func-names
268
268
  ].forEach((e) => {
269
- Ve[e] = { value: e };
269
+ Ke[e] = { value: e };
270
270
  });
271
- Object.defineProperties(m, Ve);
272
- Object.defineProperty(Je, "isAxiosError", { value: !0 });
273
- m.from = (e, t, n, r, s, o) => {
274
- const i = Object.create(Je);
271
+ Object.defineProperties(m, Ke);
272
+ Object.defineProperty(We, "isAxiosError", { value: !0 });
273
+ m.from = (e, t, n, r, o, s) => {
274
+ const i = Object.create(We);
275
275
  return a.toFlatObject(e, i, function(f) {
276
276
  return f !== Error.prototype;
277
- }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
277
+ }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
278
278
  };
279
- const Yt = null;
280
- function te(e) {
279
+ const rn = null;
280
+ function re(e) {
281
281
  return a.isPlainObject(e) || a.isArray(e);
282
282
  }
283
- function We(e) {
283
+ function Qe(e) {
284
284
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
285
285
  }
286
- function we(e, t, n) {
287
- return e ? e.concat(t).map(function(s, o) {
288
- return s = We(s), !n && o ? "[" + s + "]" : s;
286
+ function ge(e, t, n) {
287
+ return e ? e.concat(t).map(function(o, s) {
288
+ return o = Qe(o), !n && s ? "[" + o + "]" : o;
289
289
  }).join(n ? "." : "") : t;
290
290
  }
291
- function en(e) {
292
- return a.isArray(e) && !e.some(te);
291
+ function on(e) {
292
+ return a.isArray(e) && !e.some(re);
293
293
  }
294
- const tn = a.toFlatObject(a, {}, null, function(t) {
294
+ const sn = a.toFlatObject(a, {}, null, function(t) {
295
295
  return /^is[A-Z]/.test(t);
296
296
  });
297
- function Q(e, t, n) {
297
+ function G(e, t, n) {
298
298
  if (!a.isObject(e))
299
299
  throw new TypeError("target must be an object");
300
300
  t = t || new FormData(), n = a.toFlatObject(n, {
301
301
  metaTokens: !0,
302
302
  dots: !1,
303
303
  indexes: !1
304
- }, !1, function(h, b) {
305
- return !a.isUndefined(b[h]);
304
+ }, !1, function(h, g) {
305
+ return !a.isUndefined(g[h]);
306
306
  });
307
- const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
308
- if (!a.isFunction(s))
307
+ const r = n.metaTokens, o = n.visitor || l, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
308
+ if (!a.isFunction(o))
309
309
  throw new TypeError("visitor must be a function");
310
310
  function d(p) {
311
311
  if (p === null) return "";
@@ -315,39 +315,39 @@ function Q(e, t, n) {
315
315
  throw new m("Blob is not supported. Use a Buffer instead.");
316
316
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
317
317
  }
318
- function l(p, h, b) {
319
- let S = p;
320
- if (p && !b && typeof p == "object") {
318
+ function l(p, h, g) {
319
+ let b = p;
320
+ if (p && !g && typeof p == "object") {
321
321
  if (a.endsWith(h, "{}"))
322
322
  h = r ? h : h.slice(0, -2), p = JSON.stringify(p);
323
- else if (a.isArray(p) && en(p) || (a.isFileList(p) || a.endsWith(h, "[]")) && (S = a.toArray(p)))
324
- return h = We(h), S.forEach(function(_, lt) {
323
+ else if (a.isArray(p) && on(p) || (a.isFileList(p) || a.endsWith(h, "[]")) && (b = a.toArray(p)))
324
+ return h = Qe(h), b.forEach(function(_, pt) {
325
325
  !(a.isUndefined(_) || _ === null) && t.append(
326
326
  // eslint-disable-next-line no-nested-ternary
327
- i === !0 ? we([h], lt, o) : i === null ? h : h + "[]",
327
+ i === !0 ? ge([h], pt, s) : i === null ? h : h + "[]",
328
328
  d(_)
329
329
  );
330
330
  }), !1;
331
331
  }
332
- return te(p) ? !0 : (t.append(we(b, h, o), d(p)), !1);
332
+ return re(p) ? !0 : (t.append(ge(g, h, s), d(p)), !1);
333
333
  }
334
- const u = [], y = Object.assign(tn, {
334
+ const u = [], y = Object.assign(sn, {
335
335
  defaultVisitor: l,
336
336
  convertValue: d,
337
- isVisitable: te
337
+ isVisitable: re
338
338
  });
339
339
  function E(p, h) {
340
340
  if (!a.isUndefined(p)) {
341
341
  if (u.indexOf(p) !== -1)
342
342
  throw Error("Circular reference detected in " + h.join("."));
343
- u.push(p), a.forEach(p, function(S, A) {
344
- (!(a.isUndefined(S) || S === null) && s.call(
343
+ u.push(p), a.forEach(p, function(b, A) {
344
+ (!(a.isUndefined(b) || b === null) && o.call(
345
345
  t,
346
- S,
346
+ b,
347
347
  a.isString(A) ? A.trim() : A,
348
348
  h,
349
349
  y
350
- )) === !0 && E(S, h ? h.concat(A) : [A]);
350
+ )) === !0 && E(b, h ? h.concat(A) : [A]);
351
351
  }), u.pop();
352
352
  }
353
353
  }
@@ -355,7 +355,7 @@ function Q(e, t, n) {
355
355
  throw new TypeError("data must be an object");
356
356
  return E(e), t;
357
357
  }
358
- function Ee(e) {
358
+ function be(e) {
359
359
  const t = {
360
360
  "!": "%21",
361
361
  "'": "%27",
@@ -369,36 +369,36 @@ function Ee(e) {
369
369
  return t[r];
370
370
  });
371
371
  }
372
- function le(e, t) {
373
- this._pairs = [], e && Q(e, this, t);
372
+ function pe(e, t) {
373
+ this._pairs = [], e && G(e, this, t);
374
374
  }
375
- const Ke = le.prototype;
376
- Ke.append = function(t, n) {
375
+ const Ge = pe.prototype;
376
+ Ge.append = function(t, n) {
377
377
  this._pairs.push([t, n]);
378
378
  };
379
- Ke.toString = function(t) {
379
+ Ge.toString = function(t) {
380
380
  const n = t ? function(r) {
381
- return t.call(this, r, Ee);
382
- } : Ee;
383
- return this._pairs.map(function(s) {
384
- return n(s[0]) + "=" + n(s[1]);
381
+ return t.call(this, r, be);
382
+ } : be;
383
+ return this._pairs.map(function(o) {
384
+ return n(o[0]) + "=" + n(o[1]);
385
385
  }, "").join("&");
386
386
  };
387
- function nn(e) {
387
+ function an(e) {
388
388
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
389
389
  }
390
- function Qe(e, t, n) {
390
+ function Xe(e, t, n) {
391
391
  if (!t)
392
392
  return e;
393
- const r = n && n.encode || nn, s = n && n.serialize;
394
- let o;
395
- if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new le(t, n).toString(r), o) {
393
+ const r = n && n.encode || an, o = n && n.serialize;
394
+ let s;
395
+ if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new pe(t, n).toString(r), s) {
396
396
  const i = e.indexOf("#");
397
- i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
397
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
398
398
  }
399
399
  return e;
400
400
  }
401
- class be {
401
+ class Se {
402
402
  constructor() {
403
403
  this.handlers = [];
404
404
  }
@@ -452,63 +452,63 @@ class be {
452
452
  });
453
453
  }
454
454
  }
455
- const Ge = {
455
+ const Ze = {
456
456
  silentJSONParsing: !0,
457
457
  forcedJSONParsing: !0,
458
458
  clarifyTimeoutError: !1
459
- }, rn = typeof URLSearchParams < "u" ? URLSearchParams : le, sn = typeof FormData < "u" ? FormData : null, on = typeof Blob < "u" ? Blob : null, an = {
459
+ }, cn = typeof URLSearchParams < "u" ? URLSearchParams : pe, un = typeof FormData < "u" ? FormData : null, ln = typeof Blob < "u" ? Blob : null, fn = {
460
460
  isBrowser: !0,
461
461
  classes: {
462
- URLSearchParams: rn,
463
- FormData: sn,
464
- Blob: on
462
+ URLSearchParams: cn,
463
+ FormData: un,
464
+ Blob: ln
465
465
  },
466
466
  protocols: ["http", "https", "file", "blob", "url", "data"]
467
- }, Xe = typeof window < "u" && typeof document < "u", cn = ((e) => Xe && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), un = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
468
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
467
+ }, Ye = typeof window < "u" && typeof document < "u", dn = ((e) => Ye && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), pn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
468
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
469
469
  __proto__: null,
470
- hasBrowserEnv: Xe,
471
- hasStandardBrowserEnv: cn,
472
- hasStandardBrowserWebWorkerEnv: un
473
- }, Symbol.toStringTag, { value: "Module" })), T = {
474
- ...ln,
475
- ...an
470
+ hasBrowserEnv: Ye,
471
+ hasStandardBrowserEnv: dn,
472
+ hasStandardBrowserWebWorkerEnv: pn
473
+ }, Symbol.toStringTag, { value: "Module" })), R = {
474
+ ...hn,
475
+ ...fn
476
476
  };
477
- function fn(e, t) {
478
- return Q(e, new T.classes.URLSearchParams(), Object.assign({
479
- visitor: function(n, r, s, o) {
480
- return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
477
+ function mn(e, t) {
478
+ return G(e, new R.classes.URLSearchParams(), Object.assign({
479
+ visitor: function(n, r, o, s) {
480
+ return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
481
481
  }
482
482
  }, t));
483
483
  }
484
- function dn(e) {
484
+ function yn(e) {
485
485
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
486
486
  }
487
- function pn(e) {
487
+ function wn(e) {
488
488
  const t = {}, n = Object.keys(e);
489
489
  let r;
490
- const s = n.length;
491
- let o;
492
- for (r = 0; r < s; r++)
493
- o = n[r], t[o] = e[o];
490
+ const o = n.length;
491
+ let s;
492
+ for (r = 0; r < o; r++)
493
+ s = n[r], t[s] = e[s];
494
494
  return t;
495
495
  }
496
- function Ze(e) {
497
- function t(n, r, s, o) {
498
- let i = n[o++];
496
+ function et(e) {
497
+ function t(n, r, o, s) {
498
+ let i = n[s++];
499
499
  if (i === "__proto__") return !0;
500
- const c = Number.isFinite(+i), f = o >= n.length;
501
- 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] = pn(s[i])), !c);
500
+ const c = Number.isFinite(+i), f = s >= n.length;
501
+ 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] = wn(o[i])), !c);
502
502
  }
503
503
  if (a.isFormData(e) && a.isFunction(e.entries)) {
504
504
  const n = {};
505
- return a.forEachEntry(e, (r, s) => {
506
- t(dn(r), s, n, 0);
505
+ return a.forEachEntry(e, (r, o) => {
506
+ t(yn(r), o, n, 0);
507
507
  }), n;
508
508
  }
509
509
  return null;
510
510
  }
511
- function hn(e, t, n) {
511
+ function En(e, t, n) {
512
512
  if (a.isString(e))
513
513
  try {
514
514
  return (t || JSON.parse)(e), a.trim(e);
@@ -518,13 +518,13 @@ function hn(e, t, n) {
518
518
  }
519
519
  return (n || JSON.stringify)(e);
520
520
  }
521
- const H = {
522
- transitional: Ge,
521
+ const M = {
522
+ transitional: Ze,
523
523
  adapter: ["xhr", "http"],
524
524
  transformRequest: [function(t, n) {
525
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
526
- if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
527
- return s ? JSON.stringify(Ze(t)) : t;
525
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = a.isObject(t);
526
+ if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
527
+ return o ? JSON.stringify(et(t)) : t;
528
528
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
529
529
  return t;
530
530
  if (a.isArrayBufferView(t))
@@ -532,24 +532,24 @@ const H = {
532
532
  if (a.isURLSearchParams(t))
533
533
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
534
534
  let c;
535
- if (o) {
535
+ if (s) {
536
536
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
537
- return fn(t, this.formSerializer).toString();
537
+ return mn(t, this.formSerializer).toString();
538
538
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
539
539
  const f = this.env && this.env.FormData;
540
- return Q(
540
+ return G(
541
541
  c ? { "files[]": t } : t,
542
542
  f && new f(),
543
543
  this.formSerializer
544
544
  );
545
545
  }
546
546
  }
547
- return o || s ? (n.setContentType("application/json", !1), hn(t)) : t;
547
+ return s || o ? (n.setContentType("application/json", !1), En(t)) : t;
548
548
  }],
549
549
  transformResponse: [function(t) {
550
- const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
551
- if (t && a.isString(t) && (r && !this.responseType || s)) {
552
- const i = !(n && n.silentJSONParsing) && s;
550
+ const n = this.transitional || M.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
551
+ if (t && a.isString(t) && (r && !this.responseType || o)) {
552
+ const i = !(n && n.silentJSONParsing) && o;
553
553
  try {
554
554
  return JSON.parse(t);
555
555
  } catch (c) {
@@ -569,8 +569,8 @@ const H = {
569
569
  maxContentLength: -1,
570
570
  maxBodyLength: -1,
571
571
  env: {
572
- FormData: T.classes.FormData,
573
- Blob: T.classes.Blob
572
+ FormData: R.classes.FormData,
573
+ Blob: R.classes.Blob
574
574
  },
575
575
  validateStatus: function(t) {
576
576
  return t >= 200 && t < 300;
@@ -583,9 +583,9 @@ const H = {
583
583
  }
584
584
  };
585
585
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
586
- H.headers[e] = {};
586
+ M.headers[e] = {};
587
587
  });
588
- const mn = a.toObjectSet([
588
+ const gn = a.toObjectSet([
589
589
  "age",
590
590
  "authorization",
591
591
  "content-length",
@@ -603,47 +603,47 @@ const mn = a.toObjectSet([
603
603
  "referer",
604
604
  "retry-after",
605
605
  "user-agent"
606
- ]), yn = (e) => {
606
+ ]), bn = (e) => {
607
607
  const t = {};
608
- let n, r, s;
608
+ let n, r, o;
609
609
  return e && e.split(`
610
610
  `).forEach(function(i) {
611
- 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);
611
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && gn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
612
612
  }), t;
613
- }, Se = Symbol("internals");
614
- function F(e) {
613
+ }, Oe = Symbol("internals");
614
+ function D(e) {
615
615
  return e && String(e).trim().toLowerCase();
616
616
  }
617
- function $(e) {
618
- return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : String(e);
617
+ function J(e) {
618
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(J) : String(e);
619
619
  }
620
- function wn(e) {
620
+ function Sn(e) {
621
621
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
622
622
  let r;
623
623
  for (; r = n.exec(e); )
624
624
  t[r[1]] = r[2];
625
625
  return t;
626
626
  }
627
- const En = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
628
- function X(e, t, n, r, s) {
627
+ const On = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
628
+ function Y(e, t, n, r, o) {
629
629
  if (a.isFunction(r))
630
630
  return r.call(this, t, n);
631
- if (s && (t = n), !!a.isString(t)) {
631
+ if (o && (t = n), !!a.isString(t)) {
632
632
  if (a.isString(r))
633
633
  return t.indexOf(r) !== -1;
634
634
  if (a.isRegExp(r))
635
635
  return r.test(t);
636
636
  }
637
637
  }
638
- function bn(e) {
638
+ function Rn(e) {
639
639
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
640
640
  }
641
- function Sn(e, t) {
641
+ function Tn(e, t) {
642
642
  const n = a.toCamelCase(" " + t);
643
643
  ["get", "set", "has"].forEach((r) => {
644
644
  Object.defineProperty(e, r + n, {
645
- value: function(s, o, i) {
646
- return this[r].call(this, t, s, o, i);
645
+ value: function(o, s, i) {
646
+ return this[r].call(this, t, o, s, i);
647
647
  },
648
648
  configurable: !0
649
649
  });
@@ -654,71 +654,71 @@ class O {
654
654
  t && this.set(t);
655
655
  }
656
656
  set(t, n, r) {
657
- const s = this;
658
- function o(c, f, d) {
659
- const l = F(f);
657
+ const o = this;
658
+ function s(c, f, d) {
659
+ const l = D(f);
660
660
  if (!l)
661
661
  throw new Error("header name must be a non-empty string");
662
- const u = a.findKey(s, l);
663
- (!u || s[u] === void 0 || d === !0 || d === void 0 && s[u] !== !1) && (s[u || f] = $(c));
662
+ const u = a.findKey(o, l);
663
+ (!u || o[u] === void 0 || d === !0 || d === void 0 && o[u] !== !1) && (o[u || f] = J(c));
664
664
  }
665
- const i = (c, f) => a.forEach(c, (d, l) => o(d, l, f));
666
- return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !En(t) ? i(yn(t), n) : t != null && o(n, t, r), this;
665
+ const i = (c, f) => a.forEach(c, (d, l) => s(d, l, f));
666
+ return a.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : a.isString(t) && (t = t.trim()) && !On(t) ? i(bn(t), n) : t != null && s(n, t, r), this;
667
667
  }
668
668
  get(t, n) {
669
- if (t = F(t), t) {
669
+ if (t = D(t), t) {
670
670
  const r = a.findKey(this, t);
671
671
  if (r) {
672
- const s = this[r];
672
+ const o = this[r];
673
673
  if (!n)
674
- return s;
674
+ return o;
675
675
  if (n === !0)
676
- return wn(s);
676
+ return Sn(o);
677
677
  if (a.isFunction(n))
678
- return n.call(this, s, r);
678
+ return n.call(this, o, r);
679
679
  if (a.isRegExp(n))
680
- return n.exec(s);
680
+ return n.exec(o);
681
681
  throw new TypeError("parser must be boolean|regexp|function");
682
682
  }
683
683
  }
684
684
  }
685
685
  has(t, n) {
686
- if (t = F(t), t) {
686
+ if (t = D(t), t) {
687
687
  const r = a.findKey(this, t);
688
- return !!(r && this[r] !== void 0 && (!n || X(this, this[r], r, n)));
688
+ return !!(r && this[r] !== void 0 && (!n || Y(this, this[r], r, n)));
689
689
  }
690
690
  return !1;
691
691
  }
692
692
  delete(t, n) {
693
693
  const r = this;
694
- let s = !1;
695
- function o(i) {
696
- if (i = F(i), i) {
694
+ let o = !1;
695
+ function s(i) {
696
+ if (i = D(i), i) {
697
697
  const c = a.findKey(r, i);
698
- c && (!n || X(r, r[c], c, n)) && (delete r[c], s = !0);
698
+ c && (!n || Y(r, r[c], c, n)) && (delete r[c], o = !0);
699
699
  }
700
700
  }
701
- return a.isArray(t) ? t.forEach(o) : o(t), s;
701
+ return a.isArray(t) ? t.forEach(s) : s(t), o;
702
702
  }
703
703
  clear(t) {
704
704
  const n = Object.keys(this);
705
- let r = n.length, s = !1;
705
+ let r = n.length, o = !1;
706
706
  for (; r--; ) {
707
- const o = n[r];
708
- (!t || X(this, this[o], o, t, !0)) && (delete this[o], s = !0);
707
+ const s = n[r];
708
+ (!t || Y(this, this[s], s, t, !0)) && (delete this[s], o = !0);
709
709
  }
710
- return s;
710
+ return o;
711
711
  }
712
712
  normalize(t) {
713
713
  const n = this, r = {};
714
- return a.forEach(this, (s, o) => {
715
- const i = a.findKey(r, o);
714
+ return a.forEach(this, (o, s) => {
715
+ const i = a.findKey(r, s);
716
716
  if (i) {
717
- n[i] = $(s), delete n[o];
717
+ n[i] = J(o), delete n[s];
718
718
  return;
719
719
  }
720
- const c = t ? bn(o) : String(o).trim();
721
- c !== o && delete n[o], n[c] = $(s), r[c] = !0;
720
+ const c = t ? Rn(s) : String(s).trim();
721
+ c !== s && delete n[s], n[c] = J(o), r[c] = !0;
722
722
  }), this;
723
723
  }
724
724
  concat(...t) {
@@ -726,8 +726,8 @@ class O {
726
726
  }
727
727
  toJSON(t) {
728
728
  const n = /* @__PURE__ */ Object.create(null);
729
- return a.forEach(this, (r, s) => {
730
- r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
729
+ return a.forEach(this, (r, o) => {
730
+ r != null && r !== !1 && (n[o] = t && a.isArray(r) ? r.join(", ") : r);
731
731
  }), n;
732
732
  }
733
733
  [Symbol.iterator]() {
@@ -745,17 +745,17 @@ class O {
745
745
  }
746
746
  static concat(t, ...n) {
747
747
  const r = new this(t);
748
- return n.forEach((s) => r.set(s)), r;
748
+ return n.forEach((o) => r.set(o)), r;
749
749
  }
750
750
  static accessor(t) {
751
- const r = (this[Se] = this[Se] = {
751
+ const r = (this[Oe] = this[Oe] = {
752
752
  accessors: {}
753
- }).accessors, s = this.prototype;
754
- function o(i) {
755
- const c = F(i);
756
- r[c] || (Sn(s, i), r[c] = !0);
753
+ }).accessors, o = this.prototype;
754
+ function s(i) {
755
+ const c = D(i);
756
+ r[c] || (Tn(o, i), r[c] = !0);
757
757
  }
758
- return a.isArray(t) ? t.forEach(o) : o(t), this;
758
+ return a.isArray(t) ? t.forEach(s) : s(t), this;
759
759
  }
760
760
  }
761
761
  O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
@@ -769,23 +769,23 @@ a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
769
769
  };
770
770
  });
771
771
  a.freezeMethods(O);
772
- function Z(e, t) {
773
- const n = this || H, r = t || n, s = O.from(r.headers);
774
- let o = r.data;
772
+ function ee(e, t) {
773
+ const n = this || M, r = t || n, o = O.from(r.headers);
774
+ let s = r.data;
775
775
  return a.forEach(e, function(c) {
776
- o = c.call(n, o, s.normalize(), t ? t.status : void 0);
777
- }), s.normalize(), o;
776
+ s = c.call(n, s, o.normalize(), t ? t.status : void 0);
777
+ }), o.normalize(), s;
778
778
  }
779
- function Ye(e) {
779
+ function tt(e) {
780
780
  return !!(e && e.__CANCEL__);
781
781
  }
782
- function M(e, t, n) {
782
+ function q(e, t, n) {
783
783
  m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
784
784
  }
785
- a.inherits(M, m, {
785
+ a.inherits(q, m, {
786
786
  __CANCEL__: !0
787
787
  });
788
- function gn(e, t, n) {
788
+ function An(e, t, n) {
789
789
  const r = n.config.validateStatus;
790
790
  !n.status || !r || r(n.status) ? e(n) : t(new m(
791
791
  "Request failed with status code " + n.status,
@@ -795,12 +795,12 @@ function gn(e, t, n) {
795
795
  n
796
796
  ));
797
797
  }
798
- const On = T.hasStandardBrowserEnv ? (
798
+ const _n = R.hasStandardBrowserEnv ? (
799
799
  // Standard browser envs support document.cookie
800
800
  {
801
- write(e, t, n, r, s, o) {
801
+ write(e, t, n, r, o, s) {
802
802
  const i = [e + "=" + encodeURIComponent(t)];
803
- a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
803
+ a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
804
804
  },
805
805
  read(e) {
806
806
  const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
@@ -822,23 +822,23 @@ const On = T.hasStandardBrowserEnv ? (
822
822
  }
823
823
  }
824
824
  );
825
- function Tn(e) {
825
+ function kn(e) {
826
826
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
827
827
  }
828
- function Rn(e, t) {
828
+ function xn(e, t) {
829
829
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
830
830
  }
831
- function et(e, t) {
832
- return e && !Tn(t) ? Rn(e, t) : t;
831
+ function nt(e, t) {
832
+ return e && !kn(t) ? xn(e, t) : t;
833
833
  }
834
- const An = T.hasStandardBrowserEnv ? (
834
+ const Pn = R.hasStandardBrowserEnv ? (
835
835
  // Standard browser envs have full support of the APIs needed to test
836
836
  // whether the request URL is of the same origin as current location.
837
837
  function() {
838
838
  const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
839
839
  let r;
840
- function s(o) {
841
- let i = o;
840
+ function o(s) {
841
+ let i = s;
842
842
  return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
843
843
  href: n.href,
844
844
  protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
@@ -850,8 +850,8 @@ const An = T.hasStandardBrowserEnv ? (
850
850
  pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
851
851
  };
852
852
  }
853
- return r = s(window.location.href), function(i) {
854
- const c = a.isString(i) ? s(i) : i;
853
+ return r = o(window.location.href), function(i) {
854
+ const c = a.isString(i) ? o(i) : i;
855
855
  return c.protocol === r.protocol && c.host === r.host;
856
856
  };
857
857
  }()
@@ -863,74 +863,74 @@ const An = T.hasStandardBrowserEnv ? (
863
863
  };
864
864
  }()
865
865
  );
866
- function _n(e) {
866
+ function Cn(e) {
867
867
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
868
868
  return t && t[1] || "";
869
869
  }
870
- function kn(e, t) {
870
+ function Nn(e, t) {
871
871
  e = e || 10;
872
872
  const n = new Array(e), r = new Array(e);
873
- let s = 0, o = 0, i;
873
+ let o = 0, s = 0, i;
874
874
  return t = t !== void 0 ? t : 1e3, function(f) {
875
- const d = Date.now(), l = r[o];
876
- i || (i = d), n[s] = f, r[s] = d;
877
- let u = o, y = 0;
878
- for (; u !== s; )
875
+ const d = Date.now(), l = r[s];
876
+ i || (i = d), n[o] = f, r[o] = d;
877
+ let u = s, y = 0;
878
+ for (; u !== o; )
879
879
  y += n[u++], u = u % e;
880
- if (s = (s + 1) % e, s === o && (o = (o + 1) % e), d - i < t)
880
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), d - i < t)
881
881
  return;
882
882
  const E = l && d - l;
883
883
  return E ? Math.round(y * 1e3 / E) : void 0;
884
884
  };
885
885
  }
886
- function ge(e, t) {
886
+ function Re(e, t) {
887
887
  let n = 0;
888
- const r = kn(50, 250);
889
- return (s) => {
890
- const o = s.loaded, i = s.lengthComputable ? s.total : void 0, c = o - n, f = r(c), d = o <= i;
891
- n = o;
888
+ const r = Nn(50, 250);
889
+ return (o) => {
890
+ const s = o.loaded, i = o.lengthComputable ? o.total : void 0, c = s - n, f = r(c), d = s <= i;
891
+ n = s;
892
892
  const l = {
893
- loaded: o,
893
+ loaded: s,
894
894
  total: i,
895
- progress: i ? o / i : void 0,
895
+ progress: i ? s / i : void 0,
896
896
  bytes: c,
897
897
  rate: f || void 0,
898
- estimated: f && i && d ? (i - o) / f : void 0,
899
- event: s
898
+ estimated: f && i && d ? (i - s) / f : void 0,
899
+ event: o
900
900
  };
901
901
  l[t ? "download" : "upload"] = !0, e(l);
902
902
  };
903
903
  }
904
- const xn = typeof XMLHttpRequest < "u", Pn = xn && function(e) {
904
+ const Un = typeof XMLHttpRequest < "u", Dn = Un && function(e) {
905
905
  return new Promise(function(n, r) {
906
- let s = e.data;
907
- const o = O.from(e.headers).normalize();
906
+ let o = e.data;
907
+ const s = O.from(e.headers).normalize();
908
908
  let { responseType: i, withXSRFToken: c } = e, f;
909
909
  function d() {
910
910
  e.cancelToken && e.cancelToken.unsubscribe(f), e.signal && e.signal.removeEventListener("abort", f);
911
911
  }
912
912
  let l;
913
- if (a.isFormData(s)) {
914
- if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
915
- o.setContentType(!1);
916
- else if ((l = o.getContentType()) !== !1) {
917
- const [h, ...b] = l ? l.split(";").map((S) => S.trim()).filter(Boolean) : [];
918
- o.setContentType([h || "multipart/form-data", ...b].join("; "));
913
+ if (a.isFormData(o)) {
914
+ if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
915
+ s.setContentType(!1);
916
+ else if ((l = s.getContentType()) !== !1) {
917
+ const [h, ...g] = l ? l.split(";").map((b) => b.trim()).filter(Boolean) : [];
918
+ s.setContentType([h || "multipart/form-data", ...g].join("; "));
919
919
  }
920
920
  }
921
921
  let u = new XMLHttpRequest();
922
922
  if (e.auth) {
923
- const h = e.auth.username || "", b = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
924
- o.set("Authorization", "Basic " + btoa(h + ":" + b));
923
+ const h = e.auth.username || "", g = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
924
+ s.set("Authorization", "Basic " + btoa(h + ":" + g));
925
925
  }
926
- const y = et(e.baseURL, e.url);
927
- u.open(e.method.toUpperCase(), Qe(y, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
926
+ const y = nt(e.baseURL, e.url);
927
+ u.open(e.method.toUpperCase(), Xe(y, e.params, e.paramsSerializer), !0), u.timeout = e.timeout;
928
928
  function E() {
929
929
  if (!u)
930
930
  return;
931
931
  const h = O.from(
932
932
  "getAllResponseHeaders" in u && u.getAllResponseHeaders()
933
- ), S = {
933
+ ), b = {
934
934
  data: !i || i === "text" || i === "json" ? u.responseText : u.response,
935
935
  status: u.status,
936
936
  statusText: u.statusText,
@@ -938,11 +938,11 @@ const xn = typeof XMLHttpRequest < "u", Pn = xn && function(e) {
938
938
  config: e,
939
939
  request: u
940
940
  };
941
- gn(function(_) {
941
+ An(function(_) {
942
942
  n(_), d();
943
943
  }, function(_) {
944
944
  r(_), d();
945
- }, S), u = null;
945
+ }, b), u = null;
946
946
  }
947
947
  if ("onloadend" in u ? u.onloadend = E : u.onreadystatechange = function() {
948
948
  !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(E);
@@ -951,35 +951,35 @@ const xn = typeof XMLHttpRequest < "u", Pn = xn && function(e) {
951
951
  }, u.onerror = function() {
952
952
  r(new m("Network Error", m.ERR_NETWORK, e, u)), u = null;
953
953
  }, u.ontimeout = function() {
954
- let b = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
955
- const S = e.transitional || Ge;
956
- e.timeoutErrorMessage && (b = e.timeoutErrorMessage), r(new m(
957
- b,
958
- S.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
954
+ let g = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
955
+ const b = e.transitional || Ze;
956
+ e.timeoutErrorMessage && (g = e.timeoutErrorMessage), r(new m(
957
+ g,
958
+ b.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
959
959
  e,
960
960
  u
961
961
  )), u = null;
962
- }, T.hasStandardBrowserEnv && (c && a.isFunction(c) && (c = c(e)), c || c !== !1 && An(y))) {
963
- const h = e.xsrfHeaderName && e.xsrfCookieName && On.read(e.xsrfCookieName);
964
- h && o.set(e.xsrfHeaderName, h);
962
+ }, R.hasStandardBrowserEnv && (c && a.isFunction(c) && (c = c(e)), c || c !== !1 && Pn(y))) {
963
+ const h = e.xsrfHeaderName && e.xsrfCookieName && _n.read(e.xsrfCookieName);
964
+ h && s.set(e.xsrfHeaderName, h);
965
965
  }
966
- s === void 0 && o.setContentType(null), "setRequestHeader" in u && a.forEach(o.toJSON(), function(b, S) {
967
- u.setRequestHeader(S, b);
968
- }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", ge(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ge(e.onUploadProgress)), (e.cancelToken || e.signal) && (f = (h) => {
969
- u && (r(!h || h.type ? new M(null, e, u) : h), u.abort(), u = null);
966
+ o === void 0 && s.setContentType(null), "setRequestHeader" in u && a.forEach(s.toJSON(), function(g, b) {
967
+ u.setRequestHeader(b, g);
968
+ }), a.isUndefined(e.withCredentials) || (u.withCredentials = !!e.withCredentials), i && i !== "json" && (u.responseType = e.responseType), typeof e.onDownloadProgress == "function" && u.addEventListener("progress", Re(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", Re(e.onUploadProgress)), (e.cancelToken || e.signal) && (f = (h) => {
969
+ u && (r(!h || h.type ? new q(null, e, u) : h), u.abort(), u = null);
970
970
  }, e.cancelToken && e.cancelToken.subscribe(f), e.signal && (e.signal.aborted ? f() : e.signal.addEventListener("abort", f)));
971
- const p = _n(y);
972
- if (p && T.protocols.indexOf(p) === -1) {
971
+ const p = Cn(y);
972
+ if (p && R.protocols.indexOf(p) === -1) {
973
973
  r(new m("Unsupported protocol " + p + ":", m.ERR_BAD_REQUEST, e));
974
974
  return;
975
975
  }
976
- u.send(s || null);
976
+ u.send(o || null);
977
977
  });
978
- }, ne = {
979
- http: Yt,
980
- xhr: Pn
978
+ }, oe = {
979
+ http: rn,
980
+ xhr: Dn
981
981
  };
982
- a.forEach(ne, (e, t) => {
982
+ a.forEach(oe, (e, t) => {
983
983
  if (e) {
984
984
  try {
985
985
  Object.defineProperty(e, "name", { value: t });
@@ -988,28 +988,28 @@ a.forEach(ne, (e, t) => {
988
988
  Object.defineProperty(e, "adapterName", { value: t });
989
989
  }
990
990
  });
991
- const Oe = (e) => `- ${e}`, Nn = (e) => a.isFunction(e) || e === null || e === !1, tt = {
991
+ const Te = (e) => `- ${e}`, Fn = (e) => a.isFunction(e) || e === null || e === !1, rt = {
992
992
  getAdapter: (e) => {
993
993
  e = a.isArray(e) ? e : [e];
994
994
  const { length: t } = e;
995
995
  let n, r;
996
- const s = {};
997
- for (let o = 0; o < t; o++) {
998
- n = e[o];
996
+ const o = {};
997
+ for (let s = 0; s < t; s++) {
998
+ n = e[s];
999
999
  let i;
1000
- if (r = n, !Nn(n) && (r = ne[(i = String(n)).toLowerCase()], r === void 0))
1000
+ if (r = n, !Fn(n) && (r = oe[(i = String(n)).toLowerCase()], r === void 0))
1001
1001
  throw new m(`Unknown adapter '${i}'`);
1002
1002
  if (r)
1003
1003
  break;
1004
- s[i || "#" + o] = r;
1004
+ o[i || "#" + s] = r;
1005
1005
  }
1006
1006
  if (!r) {
1007
- const o = Object.entries(s).map(
1007
+ const s = Object.entries(o).map(
1008
1008
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1009
1009
  );
1010
- let i = t ? o.length > 1 ? `since :
1011
- ` + o.map(Oe).join(`
1012
- `) : " " + Oe(o[0]) : "as no adapter specified";
1010
+ let i = t ? s.length > 1 ? `since :
1011
+ ` + s.map(Te).join(`
1012
+ `) : " " + Te(s[0]) : "as no adapter specified";
1013
1013
  throw new m(
1014
1014
  "There is no suitable adapter to dispatch the request " + i,
1015
1015
  "ERR_NOT_SUPPORT"
@@ -1017,44 +1017,44 @@ const Oe = (e) => `- ${e}`, Nn = (e) => a.isFunction(e) || e === null || e === !
1017
1017
  }
1018
1018
  return r;
1019
1019
  },
1020
- adapters: ne
1020
+ adapters: oe
1021
1021
  };
1022
- function Y(e) {
1022
+ function te(e) {
1023
1023
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1024
- throw new M(null, e);
1024
+ throw new q(null, e);
1025
1025
  }
1026
- function Te(e) {
1027
- return Y(e), e.headers = O.from(e.headers), e.data = Z.call(
1026
+ function Ae(e) {
1027
+ return te(e), e.headers = O.from(e.headers), e.data = ee.call(
1028
1028
  e,
1029
1029
  e.transformRequest
1030
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), tt.getAdapter(e.adapter || H.adapter)(e).then(function(r) {
1031
- return Y(e), r.data = Z.call(
1030
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), rt.getAdapter(e.adapter || M.adapter)(e).then(function(r) {
1031
+ return te(e), r.data = ee.call(
1032
1032
  e,
1033
1033
  e.transformResponse,
1034
1034
  r
1035
1035
  ), r.headers = O.from(r.headers), r;
1036
1036
  }, function(r) {
1037
- return Ye(r) || (Y(e), r && r.response && (r.response.data = Z.call(
1037
+ return tt(r) || (te(e), r && r.response && (r.response.data = ee.call(
1038
1038
  e,
1039
1039
  e.transformResponse,
1040
1040
  r.response
1041
1041
  ), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
1042
1042
  });
1043
1043
  }
1044
- const Re = (e) => e instanceof O ? e.toJSON() : e;
1045
- function N(e, t) {
1044
+ const _e = (e) => e instanceof O ? e.toJSON() : e;
1045
+ function C(e, t) {
1046
1046
  t = t || {};
1047
1047
  const n = {};
1048
1048
  function r(d, l, u) {
1049
1049
  return a.isPlainObject(d) && a.isPlainObject(l) ? a.merge.call({ caseless: u }, d, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
1050
1050
  }
1051
- function s(d, l, u) {
1051
+ function o(d, l, u) {
1052
1052
  if (a.isUndefined(l)) {
1053
1053
  if (!a.isUndefined(d))
1054
1054
  return r(void 0, d, u);
1055
1055
  } else return r(d, l, u);
1056
1056
  }
1057
- function o(d, l) {
1057
+ function s(d, l) {
1058
1058
  if (!a.isUndefined(l))
1059
1059
  return r(void 0, l);
1060
1060
  }
@@ -1071,9 +1071,9 @@ function N(e, t) {
1071
1071
  return r(void 0, d);
1072
1072
  }
1073
1073
  const f = {
1074
- url: o,
1075
- method: o,
1076
- data: o,
1074
+ url: s,
1075
+ method: s,
1076
+ data: s,
1077
1077
  baseURL: i,
1078
1078
  transformRequest: i,
1079
1079
  transformResponse: i,
@@ -1099,59 +1099,59 @@ function N(e, t) {
1099
1099
  socketPath: i,
1100
1100
  responseEncoding: i,
1101
1101
  validateStatus: c,
1102
- headers: (d, l) => s(Re(d), Re(l), !0)
1102
+ headers: (d, l) => o(_e(d), _e(l), !0)
1103
1103
  };
1104
1104
  return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1105
- const u = f[l] || s, y = u(e[l], t[l], l);
1105
+ const u = f[l] || o, y = u(e[l], t[l], l);
1106
1106
  a.isUndefined(y) && u !== c || (n[l] = y);
1107
1107
  }), n;
1108
1108
  }
1109
- const nt = "1.6.7", fe = {};
1109
+ const ot = "1.6.7", he = {};
1110
1110
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1111
- fe[e] = function(r) {
1111
+ he[e] = function(r) {
1112
1112
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1113
1113
  };
1114
1114
  });
1115
- const Ae = {};
1116
- fe.transitional = function(t, n, r) {
1117
- function s(o, i) {
1118
- return "[Axios v" + nt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1115
+ const ke = {};
1116
+ he.transitional = function(t, n, r) {
1117
+ function o(s, i) {
1118
+ return "[Axios v" + ot + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1119
1119
  }
1120
- return (o, i, c) => {
1120
+ return (s, i, c) => {
1121
1121
  if (t === !1)
1122
1122
  throw new m(
1123
- s(i, " has been removed" + (n ? " in " + n : "")),
1123
+ o(i, " has been removed" + (n ? " in " + n : "")),
1124
1124
  m.ERR_DEPRECATED
1125
1125
  );
1126
- return n && !Ae[i] && (Ae[i] = !0), t ? t(o, i, c) : !0;
1126
+ return n && !ke[i] && (ke[i] = !0), t ? t(s, i, c) : !0;
1127
1127
  };
1128
1128
  };
1129
- function Cn(e, t, n) {
1129
+ function Ln(e, t, n) {
1130
1130
  if (typeof e != "object")
1131
1131
  throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1132
1132
  const r = Object.keys(e);
1133
- let s = r.length;
1134
- for (; s-- > 0; ) {
1135
- const o = r[s], i = t[o];
1133
+ let o = r.length;
1134
+ for (; o-- > 0; ) {
1135
+ const s = r[o], i = t[s];
1136
1136
  if (i) {
1137
- const c = e[o], f = c === void 0 || i(c, o, e);
1137
+ const c = e[s], f = c === void 0 || i(c, s, e);
1138
1138
  if (f !== !0)
1139
- throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1139
+ throw new m("option " + s + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1140
1140
  continue;
1141
1141
  }
1142
1142
  if (n !== !0)
1143
- throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1143
+ throw new m("Unknown option " + s, m.ERR_BAD_OPTION);
1144
1144
  }
1145
1145
  }
1146
- const re = {
1147
- assertOptions: Cn,
1148
- validators: fe
1149
- }, k = re.validators;
1146
+ const se = {
1147
+ assertOptions: Ln,
1148
+ validators: he
1149
+ }, k = se.validators;
1150
1150
  class x {
1151
1151
  constructor(t) {
1152
1152
  this.defaults = t, this.interceptors = {
1153
- request: new be(),
1154
- response: new be()
1153
+ request: new Se(),
1154
+ response: new Se()
1155
1155
  };
1156
1156
  }
1157
1157
  /**
@@ -1167,38 +1167,38 @@ class x {
1167
1167
  return await this._request(t, n);
1168
1168
  } catch (r) {
1169
1169
  if (r instanceof Error) {
1170
- let s;
1171
- Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
1172
- const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1173
- r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1174
- ` + o) : r.stack = o;
1170
+ let o;
1171
+ Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
1172
+ const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1173
+ r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
1174
+ ` + s) : r.stack = s;
1175
1175
  }
1176
1176
  throw r;
1177
1177
  }
1178
1178
  }
1179
1179
  _request(t, n) {
1180
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = N(this.defaults, n);
1181
- const { transitional: r, paramsSerializer: s, headers: o } = n;
1182
- r !== void 0 && re.assertOptions(r, {
1180
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = C(this.defaults, n);
1181
+ const { transitional: r, paramsSerializer: o, headers: s } = n;
1182
+ r !== void 0 && se.assertOptions(r, {
1183
1183
  silentJSONParsing: k.transitional(k.boolean),
1184
1184
  forcedJSONParsing: k.transitional(k.boolean),
1185
1185
  clarifyTimeoutError: k.transitional(k.boolean)
1186
- }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1187
- serialize: s
1188
- } : re.assertOptions(s, {
1186
+ }, !1), o != null && (a.isFunction(o) ? n.paramsSerializer = {
1187
+ serialize: o
1188
+ } : se.assertOptions(o, {
1189
1189
  encode: k.function,
1190
1190
  serialize: k.function
1191
1191
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1192
- let i = o && a.merge(
1193
- o.common,
1194
- o[n.method]
1192
+ let i = s && a.merge(
1193
+ s.common,
1194
+ s[n.method]
1195
1195
  );
1196
- o && a.forEach(
1196
+ s && a.forEach(
1197
1197
  ["delete", "get", "head", "post", "put", "patch", "common"],
1198
1198
  (p) => {
1199
- delete o[p];
1199
+ delete s[p];
1200
1200
  }
1201
- ), n.headers = O.concat(i, o);
1201
+ ), n.headers = O.concat(i, s);
1202
1202
  const c = [];
1203
1203
  let f = !0;
1204
1204
  this.interceptors.request.forEach(function(h) {
@@ -1210,7 +1210,7 @@ class x {
1210
1210
  });
1211
1211
  let l, u = 0, y;
1212
1212
  if (!f) {
1213
- const p = [Te.bind(this), void 0];
1213
+ const p = [Ae.bind(this), void 0];
1214
1214
  for (p.unshift.apply(p, c), p.push.apply(p, d), y = p.length, l = Promise.resolve(n); u < y; )
1215
1215
  l = l.then(p[u++], p[u++]);
1216
1216
  return l;
@@ -1221,13 +1221,13 @@ class x {
1221
1221
  const p = c[u++], h = c[u++];
1222
1222
  try {
1223
1223
  E = p(E);
1224
- } catch (b) {
1225
- h.call(this, b);
1224
+ } catch (g) {
1225
+ h.call(this, g);
1226
1226
  break;
1227
1227
  }
1228
1228
  }
1229
1229
  try {
1230
- l = Te.call(this, E);
1230
+ l = Ae.call(this, E);
1231
1231
  } catch (p) {
1232
1232
  return Promise.reject(p);
1233
1233
  }
@@ -1236,14 +1236,14 @@ class x {
1236
1236
  return l;
1237
1237
  }
1238
1238
  getUri(t) {
1239
- t = N(this.defaults, t);
1240
- const n = et(t.baseURL, t.url);
1241
- return Qe(n, t.params, t.paramsSerializer);
1239
+ t = C(this.defaults, t);
1240
+ const n = nt(t.baseURL, t.url);
1241
+ return Xe(n, t.params, t.paramsSerializer);
1242
1242
  }
1243
1243
  }
1244
1244
  a.forEach(["delete", "get", "head", "options"], function(t) {
1245
1245
  x.prototype[t] = function(n, r) {
1246
- return this.request(N(r || {}, {
1246
+ return this.request(C(r || {}, {
1247
1247
  method: t,
1248
1248
  url: n,
1249
1249
  data: (r || {}).data
@@ -1252,44 +1252,44 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1252
1252
  });
1253
1253
  a.forEach(["post", "put", "patch"], function(t) {
1254
1254
  function n(r) {
1255
- return function(o, i, c) {
1256
- return this.request(N(c || {}, {
1255
+ return function(s, i, c) {
1256
+ return this.request(C(c || {}, {
1257
1257
  method: t,
1258
1258
  headers: r ? {
1259
1259
  "Content-Type": "multipart/form-data"
1260
1260
  } : {},
1261
- url: o,
1261
+ url: s,
1262
1262
  data: i
1263
1263
  }));
1264
1264
  };
1265
1265
  }
1266
1266
  x.prototype[t] = n(), x.prototype[t + "Form"] = n(!0);
1267
1267
  });
1268
- class de {
1268
+ class me {
1269
1269
  constructor(t) {
1270
1270
  if (typeof t != "function")
1271
1271
  throw new TypeError("executor must be a function.");
1272
1272
  let n;
1273
- this.promise = new Promise(function(o) {
1274
- n = o;
1273
+ this.promise = new Promise(function(s) {
1274
+ n = s;
1275
1275
  });
1276
1276
  const r = this;
1277
- this.promise.then((s) => {
1277
+ this.promise.then((o) => {
1278
1278
  if (!r._listeners) return;
1279
- let o = r._listeners.length;
1280
- for (; o-- > 0; )
1281
- r._listeners[o](s);
1279
+ let s = r._listeners.length;
1280
+ for (; s-- > 0; )
1281
+ r._listeners[s](o);
1282
1282
  r._listeners = null;
1283
- }), this.promise.then = (s) => {
1284
- let o;
1283
+ }), this.promise.then = (o) => {
1284
+ let s;
1285
1285
  const i = new Promise((c) => {
1286
- r.subscribe(c), o = c;
1287
- }).then(s);
1286
+ r.subscribe(c), s = c;
1287
+ }).then(o);
1288
1288
  return i.cancel = function() {
1289
- r.unsubscribe(o);
1289
+ r.unsubscribe(s);
1290
1290
  }, i;
1291
- }, t(function(o, i, c) {
1292
- r.reason || (r.reason = new M(o, i, c), n(r.reason));
1291
+ }, t(function(s, i, c) {
1292
+ r.reason || (r.reason = new q(s, i, c), n(r.reason));
1293
1293
  });
1294
1294
  }
1295
1295
  /**
@@ -1325,22 +1325,22 @@ class de {
1325
1325
  static source() {
1326
1326
  let t;
1327
1327
  return {
1328
- token: new de(function(s) {
1329
- t = s;
1328
+ token: new me(function(o) {
1329
+ t = o;
1330
1330
  }),
1331
1331
  cancel: t
1332
1332
  };
1333
1333
  }
1334
1334
  }
1335
- function Un(e) {
1335
+ function vn(e) {
1336
1336
  return function(n) {
1337
1337
  return e.apply(null, n);
1338
1338
  };
1339
1339
  }
1340
- function Fn(e) {
1340
+ function Bn(e) {
1341
1341
  return a.isObject(e) && e.isAxiosError === !0;
1342
1342
  }
1343
- const se = {
1343
+ const ie = {
1344
1344
  Continue: 100,
1345
1345
  SwitchingProtocols: 101,
1346
1346
  Processing: 102,
@@ -1405,128 +1405,198 @@ const se = {
1405
1405
  NotExtended: 510,
1406
1406
  NetworkAuthenticationRequired: 511
1407
1407
  };
1408
- Object.entries(se).forEach(([e, t]) => {
1409
- se[t] = e;
1408
+ Object.entries(ie).forEach(([e, t]) => {
1409
+ ie[t] = e;
1410
1410
  });
1411
- function rt(e) {
1412
- const t = new x(e), n = Ie(x.prototype.request, t);
1413
- return a.extend(n, x.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1414
- return rt(N(e, s));
1411
+ function st(e) {
1412
+ const t = new x(e), n = je(x.prototype.request, t);
1413
+ return a.extend(n, x.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1414
+ return st(C(e, o));
1415
1415
  }, n;
1416
1416
  }
1417
- const w = rt(H);
1417
+ const w = st(M);
1418
1418
  w.Axios = x;
1419
- w.CanceledError = M;
1420
- w.CancelToken = de;
1421
- w.isCancel = Ye;
1422
- w.VERSION = nt;
1423
- w.toFormData = Q;
1419
+ w.CanceledError = q;
1420
+ w.CancelToken = me;
1421
+ w.isCancel = tt;
1422
+ w.VERSION = ot;
1423
+ w.toFormData = G;
1424
1424
  w.AxiosError = m;
1425
1425
  w.Cancel = w.CanceledError;
1426
1426
  w.all = function(t) {
1427
1427
  return Promise.all(t);
1428
1428
  };
1429
- w.spread = Un;
1430
- w.isAxiosError = Fn;
1431
- w.mergeConfig = N;
1429
+ w.spread = vn;
1430
+ w.isAxiosError = Bn;
1431
+ w.mergeConfig = C;
1432
1432
  w.AxiosHeaders = O;
1433
- w.formToJSON = (e) => Ze(a.isHTMLForm(e) ? new FormData(e) : e);
1434
- w.getAdapter = tt.getAdapter;
1435
- w.HttpStatusCode = se;
1433
+ w.formToJSON = (e) => et(a.isHTMLForm(e) ? new FormData(e) : e);
1434
+ w.getAdapter = rt.getAdapter;
1435
+ w.HttpStatusCode = ie;
1436
1436
  w.default = w;
1437
- var _e;
1438
- const st = typeof window < "u", Dn = (e) => typeof e == "string", ke = () => +Date.now(), oe = () => {
1437
+ /*! js-cookie v3.0.5 | MIT */
1438
+ function z(e) {
1439
+ for (var t = 1; t < arguments.length; t++) {
1440
+ var n = arguments[t];
1441
+ for (var r in n)
1442
+ e[r] = n[r];
1443
+ }
1444
+ return e;
1445
+ }
1446
+ var In = {
1447
+ read: function(e) {
1448
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1449
+ },
1450
+ write: function(e) {
1451
+ return encodeURIComponent(e).replace(
1452
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
1453
+ decodeURIComponent
1454
+ );
1455
+ }
1439
1456
  };
1440
- st && ((_e = window == null ? void 0 : window.navigator) != null && _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1441
- function pe(e) {
1442
- return typeof e == "function" ? e() : ft(e);
1457
+ function ae(e, t) {
1458
+ function n(o, s, i) {
1459
+ if (!(typeof document > "u")) {
1460
+ 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);
1461
+ var c = "";
1462
+ for (var f in i)
1463
+ i[f] && (c += "; " + f, i[f] !== !0 && (c += "=" + i[f].split(";")[0]));
1464
+ return document.cookie = o + "=" + e.write(s, o) + c;
1465
+ }
1466
+ }
1467
+ function r(o) {
1468
+ if (!(typeof document > "u" || arguments.length && !o)) {
1469
+ for (var s = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < s.length; c++) {
1470
+ var f = s[c].split("="), d = f.slice(1).join("=");
1471
+ try {
1472
+ var l = decodeURIComponent(f[0]);
1473
+ if (i[l] = e.read(d, l), o === l)
1474
+ break;
1475
+ } catch {
1476
+ }
1477
+ }
1478
+ return o ? i[o] : i;
1479
+ }
1480
+ }
1481
+ return Object.create(
1482
+ {
1483
+ set: n,
1484
+ get: r,
1485
+ remove: function(o, s) {
1486
+ n(
1487
+ o,
1488
+ "",
1489
+ z({}, s, {
1490
+ expires: -1
1491
+ })
1492
+ );
1493
+ },
1494
+ withAttributes: function(o) {
1495
+ return ae(this.converter, z({}, this.attributes, o));
1496
+ },
1497
+ withConverter: function(o) {
1498
+ return ae(z({}, this.converter, o), this.attributes);
1499
+ }
1500
+ },
1501
+ {
1502
+ attributes: { value: Object.freeze(t) },
1503
+ converter: { value: Object.freeze(e) }
1504
+ }
1505
+ );
1506
+ }
1507
+ var jn = ae(In, { path: "/" }), xe;
1508
+ const it = typeof window < "u", Hn = (e) => typeof e == "string", Pe = () => +Date.now(), ce = () => {
1509
+ };
1510
+ it && ((xe = window == null ? void 0 : window.navigator) != null && xe.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1511
+ function ye(e) {
1512
+ return typeof e == "function" ? e() : ht(e);
1443
1513
  }
1444
- function Ln(e, t) {
1514
+ function Mn(e, t) {
1445
1515
  function n(...r) {
1446
- return new Promise((s, o) => {
1447
- Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(o);
1516
+ return new Promise((o, s) => {
1517
+ Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
1448
1518
  });
1449
1519
  }
1450
1520
  return n;
1451
1521
  }
1452
- function Bn(e, t = !0, n = !0, r = !1) {
1453
- let s = 0, o, i = !0, c = oe, f;
1522
+ function qn(e, t = !0, n = !0, r = !1) {
1523
+ let o = 0, s, i = !0, c = ce, f;
1454
1524
  const d = () => {
1455
- o && (clearTimeout(o), o = void 0, c(), c = oe);
1525
+ s && (clearTimeout(s), s = void 0, c(), c = ce);
1456
1526
  };
1457
1527
  return (u) => {
1458
- const y = pe(e), E = Date.now() - s, p = () => f = u();
1459
- return d(), y <= 0 ? (s = Date.now(), p()) : (E > y && (n || !i) ? (s = Date.now(), p()) : t && (f = new Promise((h, b) => {
1460
- c = r ? b : h, o = setTimeout(() => {
1461
- s = Date.now(), i = !0, h(p()), d();
1528
+ const y = ye(e), E = Date.now() - o, p = () => f = u();
1529
+ return d(), y <= 0 ? (o = Date.now(), p()) : (E > y && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((h, g) => {
1530
+ c = r ? g : h, s = setTimeout(() => {
1531
+ o = Date.now(), i = !0, h(p()), d();
1462
1532
  }, Math.max(0, y - E));
1463
- })), !n && !o && (o = setTimeout(() => i = !0, y)), i = !1, f);
1533
+ })), !n && !s && (s = setTimeout(() => i = !0, y)), i = !1, f);
1464
1534
  };
1465
1535
  }
1466
- function In(e) {
1536
+ function zn(e) {
1467
1537
  return e;
1468
1538
  }
1469
- function jn(e) {
1470
- return dt() ? (pt(e), !0) : !1;
1539
+ function $n(e) {
1540
+ return mt() ? (yt(e), !0) : !1;
1471
1541
  }
1472
- function vn(e) {
1542
+ function Jn(e) {
1473
1543
  var t;
1474
- const n = pe(e);
1544
+ const n = ye(e);
1475
1545
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
1476
1546
  }
1477
- const ot = st ? window : void 0;
1478
- function xe(...e) {
1479
- let t, n, r, s;
1480
- if (Dn(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = ot) : [t, n, r, s] = e, !t)
1481
- return oe;
1547
+ const at = it ? window : void 0;
1548
+ function Ce(...e) {
1549
+ let t, n, r, o;
1550
+ if (Hn(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = at) : [t, n, r, o] = e, !t)
1551
+ return ce;
1482
1552
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1483
- const o = [], i = () => {
1484
- o.forEach((l) => l()), o.length = 0;
1485
- }, c = (l, u, y, E) => (l.addEventListener(u, y, E), () => l.removeEventListener(u, y, E)), f = ae(() => [vn(t), pe(s)], ([l, u]) => {
1486
- i(), l && o.push(...n.flatMap((y) => r.map((E) => c(l, y, E, u))));
1553
+ const s = [], i = () => {
1554
+ s.forEach((l) => l()), s.length = 0;
1555
+ }, c = (l, u, y, E) => (l.addEventListener(u, y, E), () => l.removeEventListener(u, y, E)), f = le(() => [Jn(t), ye(o)], ([l, u]) => {
1556
+ i(), l && s.push(...n.flatMap((y) => r.map((E) => c(l, y, E, u))));
1487
1557
  }, { immediate: !0, flush: "post" }), d = () => {
1488
1558
  f(), i();
1489
1559
  };
1490
- return jn(d), d;
1560
+ return $n(d), d;
1491
1561
  }
1492
- const Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ne = "__vueuse_ssr_handlers__";
1493
- Pe[Ne] = Pe[Ne] || {};
1494
- const Hn = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Mn = 6e4;
1495
- function qn(e = Mn, t = {}) {
1562
+ const Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ue = "__vueuse_ssr_handlers__";
1563
+ Ne[Ue] = Ne[Ue] || {};
1564
+ const Vn = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Wn = 6e4;
1565
+ function Kn(e = Wn, t = {}) {
1496
1566
  const {
1497
1567
  initialState: n = !1,
1498
1568
  listenForVisibilityChange: r = !0,
1499
- events: s = Hn,
1500
- window: o = ot,
1501
- eventFilter: i = Bn(50)
1502
- } = t, c = J(n), f = J(ke());
1569
+ events: o = Vn,
1570
+ window: s = at,
1571
+ eventFilter: i = qn(50)
1572
+ } = t, c = V(n), f = V(Pe());
1503
1573
  let d;
1504
- const l = Ln(i, () => {
1505
- c.value = !1, f.value = ke(), clearTimeout(d), d = setTimeout(() => c.value = !0, e);
1574
+ const l = Mn(i, () => {
1575
+ c.value = !1, f.value = Pe(), clearTimeout(d), d = setTimeout(() => c.value = !0, e);
1506
1576
  });
1507
- if (o) {
1508
- const u = o.document;
1509
- for (const y of s)
1510
- xe(o, y, l, { passive: !0 });
1511
- r && xe(u, "visibilitychange", () => {
1577
+ if (s) {
1578
+ const u = s.document;
1579
+ for (const y of o)
1580
+ Ce(s, y, l, { passive: !0 });
1581
+ r && Ce(u, "visibilitychange", () => {
1512
1582
  u.hidden || l();
1513
1583
  });
1514
1584
  }
1515
1585
  return d = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1516
1586
  }
1517
- var Ce;
1587
+ var De;
1518
1588
  (function(e) {
1519
1589
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1520
- })(Ce || (Ce = {}));
1521
- var zn = Object.defineProperty, Ue = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, Fe = (e, t, n) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vn = (e, t) => {
1590
+ })(De || (De = {}));
1591
+ var Qn = Object.defineProperty, Fe = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable, Le = (e, t, n) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Zn = (e, t) => {
1522
1592
  for (var n in t || (t = {}))
1523
- $n.call(t, n) && Fe(e, n, t[n]);
1524
- if (Ue)
1525
- for (var n of Ue(t))
1526
- Jn.call(t, n) && Fe(e, n, t[n]);
1593
+ Gn.call(t, n) && Le(e, n, t[n]);
1594
+ if (Fe)
1595
+ for (var n of Fe(t))
1596
+ Xn.call(t, n) && Le(e, n, t[n]);
1527
1597
  return e;
1528
1598
  };
1529
- const Wn = {
1599
+ const Yn = {
1530
1600
  easeInSine: [0.12, 0, 0.39, 0],
1531
1601
  easeOutSine: [0.61, 1, 0.88, 1],
1532
1602
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1552,133 +1622,159 @@ const Wn = {
1552
1622
  easeOutBack: [0.34, 1.56, 0.64, 1],
1553
1623
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1554
1624
  };
1555
- Vn({
1556
- linear: In
1557
- }, Wn);
1558
- let ie;
1559
- const it = { triggerProxySso: "triggerProxySso" }, Kn = () => {
1560
- ie = (e) => {
1625
+ Zn({
1626
+ linear: zn
1627
+ }, Yn);
1628
+ let ue;
1629
+ const ct = { triggerProxySso: "triggerProxySso" }, er = () => {
1630
+ ue = (e) => {
1561
1631
  var n;
1562
1632
  const { origin: t } = new URL(location.href);
1563
1633
  (n = window.top) == null || n.postMessage(
1564
- { type: it.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1634
+ { type: ct.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1565
1635
  t
1566
1636
  );
1567
1637
  };
1568
- }, Qn = (e) => {
1638
+ }, tr = (e) => {
1569
1639
  window.top === window.self && window.addEventListener("message", (t) => {
1570
1640
  const { type: n, data: r } = t.data;
1571
- n === it.triggerProxySso && (e == null || e(r));
1641
+ n === ct.triggerProxySso && (e == null || e(r));
1572
1642
  });
1573
1643
  };
1574
- window.top !== window.self && Kn();
1575
- const at = (e) => new URL(location.href).searchParams.get(e), he = {
1644
+ window.top !== window.self && er();
1645
+ let ut = (e = 21) => {
1646
+ let t = "", n = crypto.getRandomValues(new Uint8Array(e));
1647
+ for (; e--; ) {
1648
+ let r = n[e] & 63;
1649
+ r < 36 ? t += r.toString(36) : r < 62 ? t += (r - 26).toString(36).toUpperCase() : r < 63 ? t += "_" : t += "-";
1650
+ }
1651
+ return t;
1652
+ };
1653
+ const lt = (e) => new URL(location.href).searchParams.get(e), N = {
1576
1654
  oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
1577
1655
  // 重定向到登录页
1656
+ logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
1657
+ // 清除登录信息
1578
1658
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
1579
1659
  // 通过code获取token
1580
- }, { baseURL: Gn, noRedireLogin: Xn = !1 } = ce(), I = `${location.origin}/`, P = {
1660
+ }, { baseURL: ve, noRedireLogin: nr = !1 } = fe(), B = location.origin + "/home", P = {
1581
1661
  response_type: "code",
1582
1662
  scope: "sever",
1583
1663
  client_id: "sys",
1584
- client_secret: ht("das123"),
1664
+ client_secret: wt("das123"),
1585
1665
  state: +/* @__PURE__ */ new Date()
1586
- }, Zn = () => {
1587
- const e = De(location.href, "redirect_url") || "";
1666
+ }, rr = () => {
1667
+ const e = Be(location.href, "redirect_url") || "";
1588
1668
  if (e)
1589
1669
  window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
1590
1670
  else {
1591
1671
  const t = ["code", "state", "kingdee_token", "redirect_url"];
1592
- window.history.replaceState(null, "", mt(t)), window.__isAutoCloseApp = !1, window.location.reload();
1672
+ window.history.replaceState({}, "", Et(t));
1593
1673
  }
1594
- }, ct = J(!1), ut = (e) => {
1674
+ }, ft = V(!1), dt = (e) => {
1595
1675
  if (e <= 0) return;
1596
- const { idle: t } = qn(e);
1597
- ae(
1676
+ const { idle: t } = Kn(e);
1677
+ le(
1598
1678
  () => t.value,
1599
1679
  (n) => {
1600
- n === !0 && (ct.value = !0);
1680
+ n === !0 && (ft.value = !0);
1601
1681
  }
1602
1682
  );
1603
1683
  };
1604
- localStorage.getItem("idelTime") && ut(Number(localStorage.getItem("idelTime")));
1605
- const Yn = async () => {
1606
- const e = at("code") || "";
1684
+ localStorage.getItem("idelTime") && dt(Number(localStorage.getItem("idelTime")));
1685
+ const or = async () => {
1686
+ const e = lt("code") || "";
1607
1687
  if (!e) return L();
1608
- const { redirectUri: t } = C().getData(), n = De(location.href, "kingdee_token") || "";
1609
- let r = {};
1610
- const s = {
1688
+ const t = Be(location.href, "kingdee_token") || "";
1689
+ let n = {};
1690
+ const r = {
1611
1691
  grant_type: "authorization_code",
1612
1692
  code: e,
1613
1693
  client_id: P.client_id,
1614
1694
  client_secret: P.client_secret,
1615
- redirect_uri: t || I
1695
+ redirect_uri: B,
1696
+ timestamp: (/* @__PURE__ */ new Date()).getTime(),
1697
+ nonce: ut()
1616
1698
  };
1617
- n && (sessionStorage.setItem("kingdee_token", n), s.redirect_uri = `${s.redirect_uri}?kingdee_token=${n}`);
1699
+ t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
1700
+ try {
1701
+ await w.create().get(N.token, { baseURL: ve });
1702
+ } catch {
1703
+ }
1618
1704
  try {
1619
- r = await w.create().post(
1620
- he.token,
1705
+ n = await w.create().post(
1706
+ N.token,
1621
1707
  {},
1622
1708
  {
1623
- baseURL: Gn,
1624
- params: s,
1709
+ baseURL: ve,
1710
+ params: r,
1625
1711
  headers: {
1626
- "Content-Type": "application/x-www-form-urlencoded"
1712
+ "Content-Type": "application/x-www-form-urlencoded",
1713
+ "csrf-token": jn.get("csrf-token")
1627
1714
  }
1628
1715
  }
1629
1716
  );
1630
- const { access_token: o = "", expires_in: i = 0, refresh_token: c = "", refresh_exp: f = 0 } = r.data, d = {
1717
+ const { access_token: o = "", expires_in: s = 0, refresh_token: i = "", refresh_exp: c = 0 } = n.data, f = {
1631
1718
  accessToken: o,
1632
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
1633
- refreshToken: c,
1634
- info: r.data
1719
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(s) * 1e3,
1720
+ refreshToken: i,
1721
+ info: n.data
1635
1722
  };
1636
- C().save(d), await Be(o);
1637
- const l = Number(f) - (/* @__PURE__ */ new Date()).getTime();
1638
- return l && l > 0 && (ut(l), l && localStorage.setItem("idelTime", l.toString())), Zn(), o;
1723
+ j().save(f), await Ie(o);
1724
+ const d = Number(c) - (/* @__PURE__ */ new Date()).getTime();
1725
+ return d && d > 0 && (dt(d), d && localStorage.setItem("idelTime", d.toString())), rr(), o;
1639
1726
  } catch {
1640
- return j({ ...P, redirect_uri: t || I });
1727
+ return I({ ...P, redirect_uri: B });
1641
1728
  }
1642
- }, D = J(!1), cr = async (e) => {
1729
+ }, F = V(!1), pr = async (e) => {
1643
1730
  if (e.public) return "";
1644
- if (ct.value) return j({ ...P, redirect_uri: I });
1645
- if (D.value)
1646
- return await new Promise(async (s) => {
1647
- ae(
1648
- () => D.value,
1649
- (o) => {
1650
- if (!o) {
1731
+ if (ft.value) return I({ ...P, redirect_uri: B });
1732
+ if (F.value)
1733
+ return await new Promise(async (o) => {
1734
+ le(
1735
+ () => F.value,
1736
+ (s) => {
1737
+ if (!s) {
1651
1738
  const i = L();
1652
- s(i);
1739
+ o(i);
1653
1740
  }
1654
1741
  }
1655
1742
  );
1656
1743
  });
1657
- const { accessTokenExpiredAt: t } = C().getData(), n = at("code") || "";
1744
+ const { accessTokenExpiredAt: t } = j().getData(), n = lt("code") || "";
1658
1745
  if ((!L() || t === 0) && !n)
1659
- return j({ ...P, redirect_uri: I });
1746
+ return I({ ...P, redirect_uri: B });
1660
1747
  let r = L();
1661
- D.value = !0;
1748
+ F.value = !0;
1662
1749
  try {
1663
- typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await er(P)), r = await Yn(), D.value = !1;
1750
+ typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await sr(P)), r = await or(), F.value = !1;
1664
1751
  } catch {
1665
- D.value = !1;
1752
+ F.value = !1;
1666
1753
  }
1667
1754
  return r;
1668
- }, j = (e) => {
1669
- if (Xn) return;
1670
- const { baseURL: t, ssoLocale: n } = ce();
1671
- if (ie) return ie(e);
1755
+ }, I = (e) => {
1756
+ if (nr) return;
1757
+ const { baseURL: t, ssoLocale: n } = fe();
1758
+ if (ue) return ue(e);
1672
1759
  e.logout = "true", n && (e.locale = "locale");
1673
- const r = Object.keys(e).filter((o) => o !== "client_secret").map((o) => `${o}=${e[o]}`).join("&"), s = `${t}${he.oauth}?${r}`;
1674
- Le(), sessionStorage.clear(), localStorage.removeItem("idelTime"), C().save({ redirectUri: e.redirect_uri }), window.__isAutoCloseApp = !1, location.replace(s);
1760
+ const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${N.oauth}?${r}`;
1761
+ localStorage.removeItem("idelTime"), sessionStorage.clear(), j().remove();
1762
+ try {
1763
+ w.create().get(N.logoutCurpage, { baseURL: t });
1764
+ } catch {
1765
+ }
1766
+ window.__isAutoCloseApp = !1, location.replace(o);
1675
1767
  };
1676
- Qn(j);
1677
- const er = async (e) => {
1678
- const { baseURL: t } = ce(), { refreshToken: n, redirectUri: r } = C().getData();
1768
+ tr(I);
1769
+ const sr = async (e) => {
1770
+ const { baseURL: t } = fe(), { refreshToken: n } = j().getData();
1771
+ try {
1772
+ await w.create().get(N.token, { baseURL: t });
1773
+ } catch {
1774
+ }
1679
1775
  try {
1680
- const s = await w.create().post(
1681
- he.token,
1776
+ const r = await w.create().post(
1777
+ N.token,
1682
1778
  {},
1683
1779
  {
1684
1780
  baseURL: t,
@@ -1686,46 +1782,46 @@ const er = async (e) => {
1686
1782
  refresh_token: n,
1687
1783
  grant_type: "refresh_token",
1688
1784
  client_id: e.client_id,
1689
- client_secret: e.client_secret
1785
+ client_secret: e.client_secret,
1786
+ timestamp: (/* @__PURE__ */ new Date()).getTime(),
1787
+ nonce: ut()
1690
1788
  }
1691
1789
  }
1692
- ), { access_token: o = "", expires_in: i = 0, refresh_token: c = "" } = s.data, f = {
1790
+ ), { access_token: o = "", expires_in: s = 0, refresh_token: i = "" } = r.data, c = {
1693
1791
  accessToken: o,
1694
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
1695
- refreshToken: c,
1696
- info: s.data
1792
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(s) * 1e3,
1793
+ refreshToken: i,
1794
+ info: r.data
1697
1795
  };
1698
- return C().save(f), await Be(o), o;
1796
+ return j().save(c), await Ie(o), o;
1699
1797
  } catch {
1700
- return j({ ...e, redirect_uri: r || I });
1798
+ return I({ ...e, redirect_uri: B });
1701
1799
  }
1702
- }, C = () => ({
1800
+ }, j = () => ({
1703
1801
  getData: () => ({
1704
1802
  accessToken: L(),
1705
- accessTokenExpiredAt: q("accessTokenExpiredAt") ? Number(q("accessTokenExpiredAt")) : "",
1706
- refreshToken: q("refreshToken"),
1707
- redirectUri: q("redirectUri")
1803
+ accessTokenExpiredAt: X("accessTokenExpiredAt") ? Number(X("accessTokenExpiredAt")) : "",
1804
+ refreshToken: X("refreshToken")
1708
1805
  }),
1709
1806
  save: (e) => {
1710
- yt(
1807
+ gt(
1711
1808
  e.accessToken || "",
1712
1809
  {
1713
1810
  accessTokenExpiredAt: e.accessTokenExpiredAt,
1714
- refreshToken: e.refreshToken,
1715
- redirectUri: e.redirectUri
1811
+ refreshToken: e.refreshToken
1716
1812
  }
1717
- ), wt(e);
1813
+ ), St(e);
1718
1814
  },
1719
1815
  remove: () => {
1720
- Le(), Et();
1816
+ bt(), Ot();
1721
1817
  }
1722
1818
  });
1723
1819
  export {
1724
- at as getQuery,
1725
- cr as getToken,
1726
- Yn as getTokenFromCode,
1820
+ lt as getQuery,
1821
+ pr as getToken,
1822
+ or as getTokenFromCode,
1727
1823
  P as getTokenParams,
1728
- j as login,
1729
- I as real_uri,
1730
- C as tokenStorage
1824
+ I as login,
1825
+ B as real_uri,
1826
+ j as tokenStorage
1731
1827
  };