@das-fed/utils 6.4.0-dev.1 → 6.4.0-dev.100

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