@das-fed/utils 7.0.8 → 7.0.11

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 (85) hide show
  1. package/api-services/i18n/index.js.gz +0 -0
  2. package/api-services/index.js +560 -541
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +350 -331
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +350 -331
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +837 -836
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/index.js +834 -833
  11. package/api-services/modules/contract/index.js.gz +0 -0
  12. package/api-services/modules/duty-manage/index.js +356 -337
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +880 -843
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/file/index.js +573 -554
  17. package/api-services/modules/file/index.js.gz +0 -0
  18. package/api-services/modules/gateway-edge/index.js +350 -331
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +1004 -1003
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +1117 -1094
  23. package/api-services/modules/iot/index.js.gz +0 -0
  24. package/api-services/modules/justauth/index.js +919 -882
  25. package/api-services/modules/justauth/index.js.gz +0 -0
  26. package/api-services/modules/knowledge/index.js +880 -843
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/index.js +880 -843
  29. package/api-services/modules/link/index.js.gz +0 -0
  30. package/api-services/modules/permission/index.js +350 -331
  31. package/api-services/modules/permission/index.js.gz +0 -0
  32. package/api-services/modules/platformManage/index.js +867 -830
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/index.js +350 -331
  35. package/api-services/modules/portal/index.js.gz +0 -0
  36. package/api-services/modules/space-manage/index.js +880 -843
  37. package/api-services/modules/space-manage/index.js.gz +0 -0
  38. package/api-services/modules/super-admin/index.js +849 -848
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/index.js +836 -835
  41. package/api-services/modules/supplier/index.js.gz +0 -0
  42. package/api-services/modules/supplychain-manage/index.js +350 -331
  43. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  44. package/api-services/modules/systemConfiguration/index.js +350 -331
  45. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  46. package/api-services/modules/tool/index.js +834 -833
  47. package/api-services/modules/tool/index.js.gz +0 -0
  48. package/api-services/src/create-service/index.js +357 -338
  49. package/api-services/src/create-service/index.js.gz +0 -0
  50. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  51. package/common-info/index.js +13 -12
  52. package/common-info/index.js.gz +0 -0
  53. package/common-info/set-personal-info/index.d.ts +1 -1
  54. package/common-info/set-personal-info/index.js +253 -237
  55. package/common-info/set-personal-info/index.js.gz +0 -0
  56. package/common-info/type.d.ts +2 -0
  57. package/common-tools/extract-file-name/index.js +566 -550
  58. package/common-tools/extract-file-name/index.js.gz +0 -0
  59. package/common-tools/get-url-params/index.d.ts +7 -0
  60. package/common-tools/get-url-params/index.js +45 -38
  61. package/common-tools/get-url-params/index.js.gz +0 -0
  62. package/common-tools/obj-tools/index.js +1 -1
  63. package/common-tools/platform-tools/index.d.ts +1 -1
  64. package/common-tools/platform-tools/index.js +22 -15
  65. package/create-api-service/index.js +350 -331
  66. package/create-api-service/index.js.gz +0 -0
  67. package/create-api-service/sso/index.d.ts +3 -3
  68. package/create-api-service/sso/index.js +577 -549
  69. package/create-api-service/sso/index.js.gz +0 -0
  70. package/curring-http/index.js +582 -566
  71. package/curring-http/index.js.gz +0 -0
  72. package/directive/auth/index.js.gz +0 -0
  73. package/esm-map.json +2 -1
  74. package/hooks/use-get-auth/index.js.gz +0 -0
  75. package/nextTiken/index.js.gz +0 -0
  76. package/package.json +4 -4
  77. package/pinyin-first-character/index.js.gz +0 -0
  78. package/process-engine-info/index.js +8 -7
  79. package/style/index.js +1 -1
  80. package/style/index.js.gz +0 -0
  81. package/token-tools/index.js +80 -8
  82. package/token-tools/index.js.gz +0 -0
  83. package/use-low-code/index.js.gz +0 -0
  84. package/vue/hooks/use-model-value/index.d.ts +5 -1
  85. package/webSocket-service/index.js.gz +0 -0
@@ -6,36 +6,46 @@ function Ce(e, t) {
6
6
  return e.apply(t, arguments);
7
7
  };
8
8
  }
9
- const { toString: tt } = Object.prototype, { getPrototypeOf: le } = Object, W = /* @__PURE__ */ ((e) => (t) => {
9
+ const { toString: tt } = Object.prototype, { getPrototypeOf: ue } = Object, { iterator: X, toStringTag: Ne } = Symbol, G = /* @__PURE__ */ ((e) => (t) => {
10
10
  const n = tt.call(t);
11
11
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
12
- })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => W(t) === e), K = (e) => (t) => typeof t === e, { isArray: U } = Array, q = K("undefined");
13
- function nt(e) {
14
- return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e);
12
+ })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => G(t) === e), Q = (e) => (t) => typeof t === e, { isArray: D } = Array, q = Q("undefined");
13
+ function I(e) {
14
+ return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15
15
  }
16
- const Ne = C("ArrayBuffer");
17
- function rt(e) {
16
+ const Pe = C("ArrayBuffer");
17
+ function nt(e) {
18
18
  let t;
19
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ne(e.buffer), t;
19
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
20
20
  }
21
- const st = K("string"), x = K("function"), Pe = K("number"), X = (e) => e !== null && typeof e == "object", ot = (e) => e === !0 || e === !1, z = (e) => {
22
- if (W(e) !== "object")
21
+ const rt = Q("string"), A = Q("function"), Fe = Q("number"), H = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, J = (e) => {
22
+ if (G(e) !== "object")
23
+ return !1;
24
+ const t = ue(e);
25
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ne in e) && !(X in e);
26
+ }, ot = (e) => {
27
+ if (!H(e) || I(e))
28
+ return !1;
29
+ try {
30
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
31
+ } catch {
23
32
  return !1;
24
- const t = le(e);
25
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
26
- }, it = C("Date"), at = C("File"), ct = C("Blob"), lt = C("FileList"), ut = (e) => X(e) && x(e.pipe), ft = (e) => {
33
+ }
34
+ }, it = C("Date"), at = C("File"), ct = C("Blob"), lt = C("FileList"), ut = (e) => H(e) && A(e.pipe), ft = (e) => {
27
35
  let t;
28
- return e && (typeof FormData == "function" && e instanceof FormData || x(e.append) && ((t = W(e)) === "formdata" || // detect form-data instance
29
- t === "object" && x(e.toString) && e.toString() === "[object FormData]"));
36
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = G(e)) === "formdata" || // detect form-data instance
37
+ t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
30
38
  }, dt = C("URLSearchParams"), [pt, ht, mt, yt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
31
- function I(e, t, { allOwnKeys: n = !1 } = {}) {
39
+ function M(e, t, { allOwnKeys: n = !1 } = {}) {
32
40
  if (e === null || typeof e > "u")
33
41
  return;
34
42
  let r, s;
35
- if (typeof e != "object" && (e = [e]), U(e))
43
+ if (typeof e != "object" && (e = [e]), D(e))
36
44
  for (r = 0, s = e.length; r < s; r++)
37
45
  t.call(null, e[r], r, e);
38
46
  else {
47
+ if (I(e))
48
+ return;
39
49
  const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
40
50
  let c;
41
51
  for (r = 0; r < i; r++)
@@ -43,6 +53,8 @@ function I(e, t, { allOwnKeys: n = !1 } = {}) {
43
53
  }
44
54
  }
45
55
  function _e(e, t) {
56
+ if (I(e))
57
+ return null;
46
58
  t = t.toLowerCase();
47
59
  const n = Object.keys(e);
48
60
  let r = n.length, s;
@@ -51,18 +63,18 @@ function _e(e, t) {
51
63
  return s;
52
64
  return null;
53
65
  }
54
- const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fe = (e) => !q(e) && e !== L;
55
- function re() {
56
- const { caseless: e } = Fe(this) && this || {}, t = {}, n = (r, s) => {
66
+ const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ue = (e) => !q(e) && e !== U;
67
+ function se() {
68
+ const { caseless: e } = Ue(this) && this || {}, t = {}, n = (r, s) => {
57
69
  const o = e && _e(t, s) || s;
58
- z(t[o]) && z(r) ? t[o] = re(t[o], r) : z(r) ? t[o] = re({}, r) : U(r) ? t[o] = r.slice() : t[o] = r;
70
+ J(t[o]) && J(r) ? t[o] = se(t[o], r) : J(r) ? t[o] = se({}, r) : D(r) ? t[o] = r.slice() : t[o] = r;
59
71
  };
60
72
  for (let r = 0, s = arguments.length; r < s; r++)
61
- arguments[r] && I(arguments[r], n);
73
+ arguments[r] && M(arguments[r], n);
62
74
  return t;
63
75
  }
64
- const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
65
- n && x(s) ? e[o] = Ce(s, n) : e[o] = s;
76
+ const wt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
77
+ n && A(s) ? e[o] = Ce(s, n) : e[o] = s;
66
78
  }, { allOwnKeys: r }), e), Et = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), gt = (e, t, n, r) => {
67
79
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
68
80
  value: t.prototype
@@ -74,7 +86,7 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
74
86
  do {
75
87
  for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
76
88
  i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
77
- e = n !== !1 && le(e);
89
+ e = n !== !1 && ue(e);
78
90
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
79
91
  return t;
80
92
  }, St = (e, t, n) => {
@@ -83,15 +95,15 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
83
95
  return r !== -1 && r === n;
84
96
  }, Ot = (e) => {
85
97
  if (!e) return null;
86
- if (U(e)) return e;
98
+ if (D(e)) return e;
87
99
  let t = e.length;
88
- if (!Pe(t)) return null;
100
+ if (!Fe(t)) return null;
89
101
  const n = new Array(t);
90
102
  for (; t-- > 0; )
91
103
  n[t] = e[t];
92
104
  return n;
93
- }, Tt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && le(Uint8Array)), At = (e, t) => {
94
- const r = (e && e[Symbol.iterator]).call(e);
105
+ }, Tt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), At = (e, t) => {
106
+ const r = (e && e[X]).call(e);
95
107
  let s;
96
108
  for (; (s = r.next()) && !s.done; ) {
97
109
  const o = s.value;
@@ -108,18 +120,18 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
108
120
  function(n, r, s) {
109
121
  return r.toUpperCase() + s;
110
122
  }
111
- ), pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = C("RegExp"), Le = (e, t) => {
123
+ ), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = C("RegExp"), Le = (e, t) => {
112
124
  const n = Object.getOwnPropertyDescriptors(e), r = {};
113
- I(n, (s, o) => {
125
+ M(n, (s, o) => {
114
126
  let i;
115
127
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
116
128
  }), Object.defineProperties(e, r);
117
- }, _t = (e) => {
129
+ }, Ft = (e) => {
118
130
  Le(e, (t, n) => {
119
- if (x(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
131
+ if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
120
132
  return !1;
121
133
  const r = e[n];
122
- if (x(r)) {
134
+ if (A(r)) {
123
135
  if (t.enumerable = !1, "writable" in t) {
124
136
  t.writable = !1;
125
137
  return;
@@ -129,37 +141,29 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
129
141
  });
130
142
  }
131
143
  });
132
- }, Ft = (e, t) => {
144
+ }, _t = (e, t) => {
133
145
  const n = {}, r = (s) => {
134
146
  s.forEach((o) => {
135
147
  n[o] = !0;
136
148
  });
137
149
  };
138
- return U(e) ? r(e) : r(String(e).split(t)), n;
139
- }, Lt = () => {
140
- }, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Y = "abcdefghijklmnopqrstuvwxyz", he = "0123456789", Be = {
141
- DIGIT: he,
142
- ALPHA: Y,
143
- ALPHA_DIGIT: Y + Y.toUpperCase() + he
144
- }, Dt = (e = 16, t = Be.ALPHA_DIGIT) => {
145
- let n = "";
146
- const { length: r } = t;
147
- for (; e--; )
148
- n += t[Math.random() * r | 0];
149
- return n;
150
- };
151
- function Ut(e) {
152
- return !!(e && x(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
150
+ return D(e) ? r(e) : r(String(e).split(t)), n;
151
+ }, Ut = () => {
152
+ }, Lt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
153
+ function Bt(e) {
154
+ return !!(e && A(e.append) && e[Ne] === "FormData" && e[X]);
153
155
  }
154
- const kt = (e) => {
156
+ const Dt = (e) => {
155
157
  const t = new Array(10), n = (r, s) => {
156
- if (X(r)) {
158
+ if (H(r)) {
157
159
  if (t.indexOf(r) >= 0)
158
160
  return;
161
+ if (I(r))
162
+ return r;
159
163
  if (!("toJSON" in r)) {
160
164
  t[s] = r;
161
- const o = U(r) ? [] : {};
162
- return I(r, (i, c) => {
165
+ const o = D(r) ? [] : {};
166
+ return M(r, (i, c) => {
163
167
  const f = n(i, s + 1);
164
168
  !q(f) && (o[c] = f);
165
169
  }), t[s] = void 0, o;
@@ -168,24 +172,25 @@ const kt = (e) => {
168
172
  return r;
169
173
  };
170
174
  return n(e, 0);
171
- }, jt = C("AsyncFunction"), qt = (e) => e && (X(e) || x(e)) && x(e.then) && x(e.catch), De = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => {
172
- s === L && o === n && r.length && r.shift()();
175
+ }, kt = C("AsyncFunction"), jt = (e) => e && (H(e) || A(e)) && A(e.then) && A(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
176
+ s === U && o === n && r.length && r.shift()();
173
177
  }, !1), (s) => {
174
- r.push(s), L.postMessage(n, "*");
178
+ r.push(s), U.postMessage(n, "*");
175
179
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
176
180
  typeof setImmediate == "function",
177
- x(L.postMessage)
178
- ), It = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || De, a = {
179
- isArray: U,
180
- isArrayBuffer: Ne,
181
- isBuffer: nt,
181
+ A(U.postMessage)
182
+ ), qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || Be, It = (e) => e != null && A(e[X]), a = {
183
+ isArray: D,
184
+ isArrayBuffer: Pe,
185
+ isBuffer: I,
182
186
  isFormData: ft,
183
- isArrayBufferView: rt,
184
- isString: st,
185
- isNumber: Pe,
186
- isBoolean: ot,
187
- isObject: X,
188
- isPlainObject: z,
187
+ isArrayBufferView: nt,
188
+ isString: rt,
189
+ isNumber: Fe,
190
+ isBoolean: st,
191
+ isObject: H,
192
+ isPlainObject: J,
193
+ isEmptyObject: ot,
189
194
  isReadableStream: pt,
190
195
  isRequest: ht,
191
196
  isResponse: mt,
@@ -195,45 +200,44 @@ const kt = (e) => {
195
200
  isFile: at,
196
201
  isBlob: ct,
197
202
  isRegExp: Pt,
198
- isFunction: x,
203
+ isFunction: A,
199
204
  isStream: ut,
200
205
  isURLSearchParams: dt,
201
206
  isTypedArray: Tt,
202
207
  isFileList: lt,
203
- forEach: I,
204
- merge: re,
208
+ forEach: M,
209
+ merge: se,
205
210
  extend: wt,
206
211
  trim: bt,
207
212
  stripBOM: Et,
208
213
  inherits: gt,
209
214
  toFlatObject: Rt,
210
- kindOf: W,
215
+ kindOf: G,
211
216
  kindOfTest: C,
212
217
  endsWith: St,
213
218
  toArray: Ot,
214
219
  forEachEntry: At,
215
220
  matchAll: xt,
216
221
  isHTMLForm: Ct,
217
- hasOwnProperty: pe,
218
- hasOwnProp: pe,
222
+ hasOwnProperty: he,
223
+ hasOwnProp: he,
219
224
  // an alias to avoid ESLint no-prototype-builtins detection
220
225
  reduceDescriptors: Le,
221
- freezeMethods: _t,
222
- toObjectSet: Ft,
226
+ freezeMethods: Ft,
227
+ toObjectSet: _t,
223
228
  toCamelCase: Nt,
224
- noop: Lt,
225
- toFiniteNumber: Bt,
229
+ noop: Ut,
230
+ toFiniteNumber: Lt,
226
231
  findKey: _e,
227
- global: L,
228
- isContextDefined: Fe,
229
- ALPHABET: Be,
230
- generateString: Dt,
231
- isSpecCompliantForm: Ut,
232
- toJSONObject: kt,
233
- isAsyncFn: jt,
234
- isThenable: qt,
235
- setImmediate: De,
236
- asap: It
232
+ global: U,
233
+ isContextDefined: Ue,
234
+ isSpecCompliantForm: Bt,
235
+ toJSONObject: Dt,
236
+ isAsyncFn: kt,
237
+ isThenable: jt,
238
+ setImmediate: Be,
239
+ asap: qt,
240
+ isIterable: It
237
241
  };
238
242
  function m(e, t, n, r, s) {
239
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, this.status = s.status ? s.status : null);
@@ -259,7 +263,7 @@ a.inherits(m, Error, {
259
263
  };
260
264
  }
261
265
  });
262
- const Ue = m.prototype, ke = {};
266
+ const De = m.prototype, ke = {};
263
267
  [
264
268
  "ERR_BAD_OPTION_VALUE",
265
269
  "ERR_BAD_OPTION",
@@ -278,15 +282,15 @@ const Ue = m.prototype, ke = {};
278
282
  ke[e] = { value: e };
279
283
  });
280
284
  Object.defineProperties(m, ke);
281
- Object.defineProperty(Ue, "isAxiosError", { value: !0 });
285
+ Object.defineProperty(De, "isAxiosError", { value: !0 });
282
286
  m.from = (e, t, n, r, s, o) => {
283
- const i = Object.create(Ue);
287
+ const i = Object.create(De);
284
288
  return a.toFlatObject(e, i, function(f) {
285
289
  return f !== Error.prototype;
286
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;
287
291
  };
288
292
  const Ht = null;
289
- function se(e) {
293
+ function oe(e) {
290
294
  return a.isPlainObject(e) || a.isArray(e);
291
295
  }
292
296
  function je(e) {
@@ -298,12 +302,12 @@ function me(e, t, n) {
298
302
  }).join(n ? "." : "") : t;
299
303
  }
300
304
  function Mt(e) {
301
- return a.isArray(e) && !e.some(se);
305
+ return a.isArray(e) && !e.some(oe);
302
306
  }
303
307
  const zt = a.toFlatObject(a, {}, null, function(t) {
304
308
  return /^is[A-Z]/.test(t);
305
309
  });
306
- function G(e, t, n) {
310
+ function Z(e, t, n) {
307
311
  if (!a.isObject(e))
308
312
  throw new TypeError("target must be an object");
309
313
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -320,6 +324,8 @@ function G(e, t, n) {
320
324
  if (p === null) return "";
321
325
  if (a.isDate(p))
322
326
  return p.toISOString();
327
+ if (a.isBoolean(p))
328
+ return p.toString();
323
329
  if (!f && a.isBlob(p))
324
330
  throw new m("Blob is not supported. Use a Buffer instead.");
325
331
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
@@ -338,12 +344,12 @@ function G(e, t, n) {
338
344
  );
339
345
  }), !1;
340
346
  }
341
- return se(p) ? !0 : (t.append(me(h, y, o), l(p)), !1);
347
+ return oe(p) ? !0 : (t.append(me(h, y, o), l(p)), !1);
342
348
  }
343
349
  const d = [], b = Object.assign(zt, {
344
350
  defaultVisitor: u,
345
351
  convertValue: l,
346
- isVisitable: se
352
+ isVisitable: oe
347
353
  });
348
354
  function g(p, y) {
349
355
  if (!a.isUndefined(p)) {
@@ -378,10 +384,10 @@ function ye(e) {
378
384
  return t[r];
379
385
  });
380
386
  }
381
- function ue(e, t) {
382
- this._pairs = [], e && G(e, this, t);
387
+ function fe(e, t) {
388
+ this._pairs = [], e && Z(e, this, t);
383
389
  }
384
- const qe = ue.prototype;
390
+ const qe = fe.prototype;
385
391
  qe.append = function(t, n) {
386
392
  this._pairs.push([t, n]);
387
393
  };
@@ -405,7 +411,7 @@ function Ie(e, t, n) {
405
411
  });
406
412
  const s = n && n.serialize;
407
413
  let o;
408
- if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new ue(t, n).toString(r), o) {
414
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new fe(t, n).toString(r), o) {
409
415
  const i = e.indexOf("#");
410
416
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
411
417
  }
@@ -469,32 +475,33 @@ const He = {
469
475
  silentJSONParsing: !0,
470
476
  forcedJSONParsing: !0,
471
477
  clarifyTimeoutError: !1
472
- }, Jt = typeof URLSearchParams < "u" ? URLSearchParams : ue, Vt = typeof FormData < "u" ? FormData : null, vt = typeof Blob < "u" ? Blob : null, Wt = {
478
+ }, Jt = typeof URLSearchParams < "u" ? URLSearchParams : fe, Vt = typeof FormData < "u" ? FormData : null, Wt = typeof Blob < "u" ? Blob : null, Kt = {
473
479
  isBrowser: !0,
474
480
  classes: {
475
481
  URLSearchParams: Jt,
476
482
  FormData: Vt,
477
- Blob: vt
483
+ Blob: Wt
478
484
  },
479
485
  protocols: ["http", "https", "file", "blob", "url", "data"]
480
- }, fe = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, Kt = fe && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), Xt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
481
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = fe && window.location.href || "http://localhost", Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ }, de = typeof window < "u" && typeof document < "u", ie = typeof navigator == "object" && navigator || void 0, vt = de && (!ie || ["ReactNative", "NativeScript", "NS"].indexOf(ie.product) < 0), Xt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = de && window.location.href || "http://localhost", Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
482
488
  __proto__: null,
483
- hasBrowserEnv: fe,
484
- hasStandardBrowserEnv: Kt,
489
+ hasBrowserEnv: de,
490
+ hasStandardBrowserEnv: vt,
485
491
  hasStandardBrowserWebWorkerEnv: Xt,
486
- navigator: oe,
492
+ navigator: ie,
487
493
  origin: Gt
488
494
  }, Symbol.toStringTag, { value: "Module" })), O = {
489
495
  ...Qt,
490
- ...Wt
496
+ ...Kt
491
497
  };
492
498
  function Zt(e, t) {
493
- return G(e, new O.classes.URLSearchParams(), Object.assign({
499
+ return Z(e, new O.classes.URLSearchParams(), {
494
500
  visitor: function(n, r, s, o) {
495
501
  return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
496
- }
497
- }, t));
502
+ },
503
+ ...t
504
+ });
498
505
  }
499
506
  function Yt(e) {
500
507
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
@@ -533,7 +540,7 @@ function tn(e, t, n) {
533
540
  }
534
541
  return (n || JSON.stringify)(e);
535
542
  }
536
- const H = {
543
+ const z = {
537
544
  transitional: He,
538
545
  adapter: ["xhr", "http", "fetch"],
539
546
  transformRequest: [function(t, n) {
@@ -552,7 +559,7 @@ const H = {
552
559
  return Zt(t, this.formSerializer).toString();
553
560
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
554
561
  const f = this.env && this.env.FormData;
555
- return G(
562
+ return Z(
556
563
  c ? { "files[]": t } : t,
557
564
  f && new f(),
558
565
  this.formSerializer
@@ -562,7 +569,7 @@ const H = {
562
569
  return o || s ? (n.setContentType("application/json", !1), tn(t)) : t;
563
570
  }],
564
571
  transformResponse: [function(t) {
565
- const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
572
+ const n = this.transitional || z.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
566
573
  if (a.isResponse(t) || a.isReadableStream(t))
567
574
  return t;
568
575
  if (t && a.isString(t) && (r && !this.responseType || s)) {
@@ -600,7 +607,7 @@ const H = {
600
607
  }
601
608
  };
602
609
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
603
- H.headers[e] = {};
610
+ z.headers[e] = {};
604
611
  });
605
612
  const nn = a.toObjectSet([
606
613
  "age",
@@ -631,8 +638,8 @@ const nn = a.toObjectSet([
631
638
  function j(e) {
632
639
  return e && String(e).trim().toLowerCase();
633
640
  }
634
- function $(e) {
635
- return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : String(e);
641
+ function V(e) {
642
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(V) : String(e);
636
643
  }
637
644
  function sn(e) {
638
645
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -642,7 +649,7 @@ function sn(e) {
642
649
  return t;
643
650
  }
644
651
  const on = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
645
- function ee(e, t, n, r, s) {
652
+ function te(e, t, n, r, s) {
646
653
  if (a.isFunction(r))
647
654
  return r.call(this, t, n);
648
655
  if (s && (t = n), !!a.isString(t)) {
@@ -666,7 +673,7 @@ function cn(e, t) {
666
673
  });
667
674
  });
668
675
  }
669
- let A = class {
676
+ let x = class {
670
677
  constructor(t) {
671
678
  t && this.set(t);
672
679
  }
@@ -677,17 +684,22 @@ let A = class {
677
684
  if (!u)
678
685
  throw new Error("header name must be a non-empty string");
679
686
  const d = a.findKey(s, u);
680
- (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = $(c));
687
+ (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = V(c));
681
688
  }
682
689
  const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
683
690
  if (a.isPlainObject(t) || t instanceof this.constructor)
684
691
  i(t, n);
685
692
  else if (a.isString(t) && (t = t.trim()) && !on(t))
686
693
  i(rn(t), n);
687
- else if (a.isHeaders(t))
688
- for (const [c, f] of t.entries())
689
- o(f, c, r);
690
- else
694
+ else if (a.isObject(t) && a.isIterable(t)) {
695
+ let c = {}, f, l;
696
+ for (const u of t) {
697
+ if (!a.isArray(u))
698
+ throw TypeError("Object iterator must return a key-value pair");
699
+ c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
700
+ }
701
+ i(c, n);
702
+ } else
691
703
  t != null && o(n, t, r);
692
704
  return this;
693
705
  }
@@ -711,7 +723,7 @@ let A = class {
711
723
  has(t, n) {
712
724
  if (t = j(t), t) {
713
725
  const r = a.findKey(this, t);
714
- return !!(r && this[r] !== void 0 && (!n || ee(this, this[r], r, n)));
726
+ return !!(r && this[r] !== void 0 && (!n || te(this, this[r], r, n)));
715
727
  }
716
728
  return !1;
717
729
  }
@@ -721,7 +733,7 @@ let A = class {
721
733
  function o(i) {
722
734
  if (i = j(i), i) {
723
735
  const c = a.findKey(r, i);
724
- c && (!n || ee(r, r[c], c, n)) && (delete r[c], s = !0);
736
+ c && (!n || te(r, r[c], c, n)) && (delete r[c], s = !0);
725
737
  }
726
738
  }
727
739
  return a.isArray(t) ? t.forEach(o) : o(t), s;
@@ -731,7 +743,7 @@ let A = class {
731
743
  let r = n.length, s = !1;
732
744
  for (; r--; ) {
733
745
  const o = n[r];
734
- (!t || ee(this, this[o], o, t, !0)) && (delete this[o], s = !0);
746
+ (!t || te(this, this[o], o, t, !0)) && (delete this[o], s = !0);
735
747
  }
736
748
  return s;
737
749
  }
@@ -740,11 +752,11 @@ let A = class {
740
752
  return a.forEach(this, (s, o) => {
741
753
  const i = a.findKey(r, o);
742
754
  if (i) {
743
- n[i] = $(s), delete n[o];
755
+ n[i] = V(s), delete n[o];
744
756
  return;
745
757
  }
746
758
  const c = t ? an(o) : String(o).trim();
747
- c !== o && delete n[o], n[c] = $(s), r[c] = !0;
759
+ c !== o && delete n[o], n[c] = V(s), r[c] = !0;
748
760
  }), this;
749
761
  }
750
762
  concat(...t) {
@@ -763,6 +775,9 @@ let A = class {
763
775
  return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
764
776
  `);
765
777
  }
778
+ getSetCookie() {
779
+ return this.get("set-cookie") || [];
780
+ }
766
781
  get [Symbol.toStringTag]() {
767
782
  return "AxiosHeaders";
768
783
  }
@@ -784,8 +799,8 @@ let A = class {
784
799
  return a.isArray(t) ? t.forEach(o) : o(t), this;
785
800
  }
786
801
  };
787
- A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
788
- a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
802
+ x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
+ a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
789
804
  let n = t[0].toUpperCase() + t.slice(1);
790
805
  return {
791
806
  get: () => e,
@@ -794,9 +809,9 @@ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
794
809
  }
795
810
  };
796
811
  });
797
- a.freezeMethods(A);
798
- function te(e, t) {
799
- const n = this || H, r = t || n, s = A.from(r.headers);
812
+ a.freezeMethods(x);
813
+ function ne(e, t) {
814
+ const n = this || z, r = t || n, s = x.from(r.headers);
800
815
  let o = r.data;
801
816
  return a.forEach(e, function(c) {
802
817
  o = c.call(n, o, s.normalize(), t ? t.status : void 0);
@@ -844,7 +859,7 @@ function un(e, t) {
844
859
  function fn(e, t) {
845
860
  let n = 0, r = 1e3 / t, s, o;
846
861
  const i = (l, u = Date.now()) => {
847
- n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
862
+ n = u, s = null, o && (clearTimeout(o), o = null), e(...l);
848
863
  };
849
864
  return [(...l) => {
850
865
  const u = Date.now(), d = u - n;
@@ -853,7 +868,7 @@ function fn(e, t) {
853
868
  }, r - d)));
854
869
  }, () => s && i(s)];
855
870
  }
856
- const V = (e, t, n = 3) => {
871
+ const K = (e, t, n = 3) => {
857
872
  let r = 0;
858
873
  const s = un(50, 250);
859
874
  return fn((o) => {
@@ -915,11 +930,12 @@ function hn(e) {
915
930
  function mn(e, t) {
916
931
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
917
932
  }
918
- function Je(e, t) {
919
- return e && !hn(t) ? mn(e, t) : t;
933
+ function Je(e, t, n) {
934
+ let r = !hn(t);
935
+ return e && (r || n == !1) ? mn(e, t) : t;
920
936
  }
921
- const Re = (e) => e instanceof A ? { ...e } : e;
922
- function D(e, t) {
937
+ const Re = (e) => e instanceof x ? { ...e } : e;
938
+ function B(e, t) {
923
939
  t = t || {};
924
940
  const n = {};
925
941
  function r(l, u, d, b) {
@@ -978,15 +994,15 @@ function D(e, t) {
978
994
  validateStatus: c,
979
995
  headers: (l, u, d) => s(Re(l), Re(u), d, !0)
980
996
  };
981
- return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
997
+ return a.forEach(Object.keys({ ...e, ...t }), function(u) {
982
998
  const d = f[u] || s, b = d(e[u], t[u], u);
983
999
  a.isUndefined(b) && d !== c || (n[u] = b);
984
1000
  }), n;
985
1001
  }
986
1002
  const Ve = (e) => {
987
- const t = D({}, e);
1003
+ const t = B({}, e);
988
1004
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
989
- t.headers = i = A.from(i), t.url = Ie(Je(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
1005
+ t.headers = i = x.from(i), t.url = Ie(Je(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
990
1006
  "Authorization",
991
1007
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
992
1008
  );
@@ -1008,7 +1024,7 @@ const Ve = (e) => {
1008
1024
  return new Promise(function(n, r) {
1009
1025
  const s = Ve(e);
1010
1026
  let o = s.data;
1011
- const i = A.from(s.headers).normalize();
1027
+ const i = x.from(s.headers).normalize();
1012
1028
  let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, b, g, p;
1013
1029
  function y() {
1014
1030
  g && g(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
@@ -1018,7 +1034,7 @@ const Ve = (e) => {
1018
1034
  function w() {
1019
1035
  if (!h)
1020
1036
  return;
1021
- const S = A.from(
1037
+ const S = x.from(
1022
1038
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1023
1039
  ), T = {
1024
1040
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
@@ -1028,10 +1044,10 @@ const Ve = (e) => {
1028
1044
  config: e,
1029
1045
  request: h
1030
1046
  };
1031
- $e(function(F) {
1032
- n(F), y();
1033
- }, function(F) {
1034
- r(F), y();
1047
+ $e(function(_) {
1048
+ n(_), y();
1049
+ }, function(_) {
1050
+ r(_), y();
1035
1051
  }, T), h = null;
1036
1052
  }
1037
1053
  "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
@@ -1051,7 +1067,7 @@ const Ve = (e) => {
1051
1067
  )), h = null;
1052
1068
  }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(P, T) {
1053
1069
  h.setRequestHeader(T, P);
1054
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, p] = V(l, !0), h.addEventListener("progress", b)), f && h.upload && ([d, g] = V(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (S) => {
1070
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, p] = K(l, !0), h.addEventListener("progress", b)), f && h.upload && ([d, g] = K(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (S) => {
1055
1071
  h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
1056
1072
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1057
1073
  const R = ln(s.url);
@@ -1141,13 +1157,13 @@ const Ve = (e) => {
1141
1157
  }, {
1142
1158
  highWaterMark: 2
1143
1159
  });
1144
- }, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ve = Q && typeof ReadableStream == "function", Sn = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), We = (e, ...t) => {
1160
+ }, Y = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = Y && typeof ReadableStream == "function", Sn = Y && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ke = (e, ...t) => {
1145
1161
  try {
1146
1162
  return !!e(...t);
1147
1163
  } catch {
1148
1164
  return !1;
1149
1165
  }
1150
- }, On = ve && We(() => {
1166
+ }, On = We && Ke(() => {
1151
1167
  let e = !1;
1152
1168
  const t = new Request(O.origin, {
1153
1169
  body: new ReadableStream(),
@@ -1157,10 +1173,10 @@ const Ve = (e) => {
1157
1173
  }
1158
1174
  }).headers.has("Content-Type");
1159
1175
  return e && !t;
1160
- }), Oe = 64 * 1024, ie = ve && We(() => a.isReadableStream(new Response("").body)), v = {
1161
- stream: ie && ((e) => e.body)
1176
+ }), Oe = 64 * 1024, ae = We && Ke(() => a.isReadableStream(new Response("").body)), v = {
1177
+ stream: ae && ((e) => e.body)
1162
1178
  };
1163
- Q && ((e) => {
1179
+ Y && ((e) => {
1164
1180
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1165
1181
  !v[t] && (v[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1166
1182
  throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
@@ -1184,7 +1200,7 @@ const Tn = async (e) => {
1184
1200
  }, An = async (e, t) => {
1185
1201
  const n = a.toFiniteNumber(e.getContentLength());
1186
1202
  return n ?? Tn(t);
1187
- }, xn = Q && (async (e) => {
1203
+ }, xn = Y && (async (e) => {
1188
1204
  let {
1189
1205
  url: t,
1190
1206
  method: n,
@@ -1211,13 +1227,13 @@ const Tn = async (e) => {
1211
1227
  method: "POST",
1212
1228
  body: r,
1213
1229
  duplex: "half"
1214
- }), _;
1215
- if (a.isFormData(r) && (_ = T.headers.get("content-type")) && u.setContentType(_), T.body) {
1216
- const [F, M] = Ee(
1230
+ }), F;
1231
+ if (a.isFormData(r) && (F = T.headers.get("content-type")) && u.setContentType(F), T.body) {
1232
+ const [_, $] = Ee(
1217
1233
  h,
1218
- V(ge(f))
1234
+ K(ge(f))
1219
1235
  );
1220
- r = Se(T.body, Oe, F, M);
1236
+ r = Se(T.body, Oe, _, $);
1221
1237
  }
1222
1238
  }
1223
1239
  a.isString(d) || (d = d ? "include" : "omit");
@@ -1231,30 +1247,30 @@ const Tn = async (e) => {
1231
1247
  duplex: "half",
1232
1248
  credentials: w ? d : void 0
1233
1249
  });
1234
- let R = await fetch(p);
1235
- const S = ie && (l === "stream" || l === "response");
1236
- if (ie && (c || S && y)) {
1250
+ let R = await fetch(p, b);
1251
+ const S = ae && (l === "stream" || l === "response");
1252
+ if (ae && (c || S && y)) {
1237
1253
  const T = {};
1238
- ["status", "statusText", "headers"].forEach((de) => {
1239
- T[de] = R[de];
1254
+ ["status", "statusText", "headers"].forEach((pe) => {
1255
+ T[pe] = R[pe];
1240
1256
  });
1241
- const _ = a.toFiniteNumber(R.headers.get("content-length")), [F, M] = c && Ee(
1242
- _,
1243
- V(ge(c), !0)
1257
+ const F = a.toFiniteNumber(R.headers.get("content-length")), [_, $] = c && Ee(
1258
+ F,
1259
+ K(ge(c), !0)
1244
1260
  ) || [];
1245
1261
  R = new Response(
1246
- Se(R.body, Oe, F, () => {
1247
- M && M(), y && y();
1262
+ Se(R.body, Oe, _, () => {
1263
+ $ && $(), y && y();
1248
1264
  }),
1249
1265
  T
1250
1266
  );
1251
1267
  }
1252
1268
  l = l || "text";
1253
1269
  let P = await v[a.findKey(v, l) || "text"](R, e);
1254
- return !S && y && y(), await new Promise((T, _) => {
1255
- $e(T, _, {
1270
+ return !S && y && y(), await new Promise((T, F) => {
1271
+ $e(T, F, {
1256
1272
  data: P,
1257
- headers: A.from(R.headers),
1273
+ headers: x.from(R.headers),
1258
1274
  status: R.status,
1259
1275
  statusText: R.statusText,
1260
1276
  config: e,
@@ -1262,19 +1278,19 @@ const Tn = async (e) => {
1262
1278
  });
1263
1279
  });
1264
1280
  } catch (w) {
1265
- throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
1281
+ throw y && y(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
1266
1282
  new m("Network Error", m.ERR_NETWORK, e, p),
1267
1283
  {
1268
1284
  cause: w.cause || w
1269
1285
  }
1270
1286
  ) : m.from(w, w && w.code, e, p);
1271
1287
  }
1272
- }), ae = {
1288
+ }), ce = {
1273
1289
  http: Ht,
1274
1290
  xhr: bn,
1275
1291
  fetch: xn
1276
1292
  };
1277
- a.forEach(ae, (e, t) => {
1293
+ a.forEach(ce, (e, t) => {
1278
1294
  if (e) {
1279
1295
  try {
1280
1296
  Object.defineProperty(e, "name", { value: t });
@@ -1283,7 +1299,7 @@ a.forEach(ae, (e, t) => {
1283
1299
  Object.defineProperty(e, "adapterName", { value: t });
1284
1300
  }
1285
1301
  });
1286
- const Te = (e) => `- ${e}`, Cn = (e) => a.isFunction(e) || e === null || e === !1, Ke = {
1302
+ const Te = (e) => `- ${e}`, Cn = (e) => a.isFunction(e) || e === null || e === !1, ve = {
1287
1303
  getAdapter: (e) => {
1288
1304
  e = a.isArray(e) ? e : [e];
1289
1305
  const { length: t } = e;
@@ -1292,7 +1308,7 @@ const Te = (e) => `- ${e}`, Cn = (e) => a.isFunction(e) || e === null || e === !
1292
1308
  for (let o = 0; o < t; o++) {
1293
1309
  n = e[o];
1294
1310
  let i;
1295
- if (r = n, !Cn(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
1311
+ if (r = n, !Cn(n) && (r = ce[(i = String(n)).toLowerCase()], r === void 0))
1296
1312
  throw new m(`Unknown adapter '${i}'`);
1297
1313
  if (r)
1298
1314
  break;
@@ -1312,38 +1328,38 @@ const Te = (e) => `- ${e}`, Cn = (e) => a.isFunction(e) || e === null || e === !
1312
1328
  }
1313
1329
  return r;
1314
1330
  },
1315
- adapters: ae
1331
+ adapters: ce
1316
1332
  };
1317
- function ne(e) {
1333
+ function re(e) {
1318
1334
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1319
1335
  throw new k(null, e);
1320
1336
  }
1321
1337
  function Ae(e) {
1322
- return ne(e), e.headers = A.from(e.headers), e.data = te.call(
1338
+ return re(e), e.headers = x.from(e.headers), e.data = ne.call(
1323
1339
  e,
1324
1340
  e.transformRequest
1325
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ke.getAdapter(e.adapter || H.adapter)(e).then(function(r) {
1326
- return ne(e), r.data = te.call(
1341
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ve.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
1342
+ return re(e), r.data = ne.call(
1327
1343
  e,
1328
1344
  e.transformResponse,
1329
1345
  r
1330
- ), r.headers = A.from(r.headers), r;
1346
+ ), r.headers = x.from(r.headers), r;
1331
1347
  }, function(r) {
1332
- return ze(r) || (ne(e), r && r.response && (r.response.data = te.call(
1348
+ return ze(r) || (re(e), r && r.response && (r.response.data = ne.call(
1333
1349
  e,
1334
1350
  e.transformResponse,
1335
1351
  r.response
1336
- ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1352
+ ), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
1337
1353
  });
1338
1354
  }
1339
- const Xe = "1.7.9", Z = {};
1355
+ const Xe = "1.11.0", ee = {};
1340
1356
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1341
- Z[e] = function(r) {
1357
+ ee[e] = function(r) {
1342
1358
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1343
1359
  };
1344
1360
  });
1345
1361
  const xe = {};
1346
- Z.transitional = function(t, n, r) {
1362
+ ee.transitional = function(t, n, r) {
1347
1363
  function s(o, i) {
1348
1364
  return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1349
1365
  }
@@ -1356,7 +1372,7 @@ Z.transitional = function(t, n, r) {
1356
1372
  return n && !xe[i] && (xe[i] = !0), t ? t(o, i, c) : !0;
1357
1373
  };
1358
1374
  };
1359
- Z.spelling = function(t) {
1375
+ ee.spelling = function(t) {
1360
1376
  return (n, r) => !0;
1361
1377
  };
1362
1378
  function Nn(e, t, n) {
@@ -1376,13 +1392,13 @@ function Nn(e, t, n) {
1376
1392
  throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1377
1393
  }
1378
1394
  }
1379
- const J = {
1395
+ const W = {
1380
1396
  assertOptions: Nn,
1381
- validators: Z
1382
- }, N = J.validators;
1383
- let B = class {
1397
+ validators: ee
1398
+ }, N = W.validators;
1399
+ let L = class {
1384
1400
  constructor(t) {
1385
- this.defaults = t, this.interceptors = {
1401
+ this.defaults = t || {}, this.interceptors = {
1386
1402
  request: new be(),
1387
1403
  response: new be()
1388
1404
  };
@@ -1413,18 +1429,18 @@ let B = class {
1413
1429
  }
1414
1430
  }
1415
1431
  _request(t, n) {
1416
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = D(this.defaults, n);
1432
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
1417
1433
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1418
- r !== void 0 && J.assertOptions(r, {
1434
+ r !== void 0 && W.assertOptions(r, {
1419
1435
  silentJSONParsing: N.transitional(N.boolean),
1420
1436
  forcedJSONParsing: N.transitional(N.boolean),
1421
1437
  clarifyTimeoutError: N.transitional(N.boolean)
1422
1438
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1423
1439
  serialize: s
1424
- } : J.assertOptions(s, {
1440
+ } : W.assertOptions(s, {
1425
1441
  encode: N.function,
1426
1442
  serialize: N.function
1427
- }, !0)), J.assertOptions(n, {
1443
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), W.assertOptions(n, {
1428
1444
  baseUrl: N.spelling("baseURL"),
1429
1445
  withXsrfToken: N.spelling("withXSRFToken")
1430
1446
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
@@ -1437,7 +1453,7 @@ let B = class {
1437
1453
  (p) => {
1438
1454
  delete o[p];
1439
1455
  }
1440
- ), n.headers = A.concat(i, o);
1456
+ ), n.headers = x.concat(i, o);
1441
1457
  const c = [];
1442
1458
  let f = !0;
1443
1459
  this.interceptors.request.forEach(function(y) {
@@ -1450,7 +1466,7 @@ let B = class {
1450
1466
  let u, d = 0, b;
1451
1467
  if (!f) {
1452
1468
  const p = [Ae.bind(this), void 0];
1453
- for (p.unshift.apply(p, c), p.push.apply(p, l), b = p.length, u = Promise.resolve(n); d < b; )
1469
+ for (p.unshift(...c), p.push(...l), b = p.length, u = Promise.resolve(n); d < b; )
1454
1470
  u = u.then(p[d++], p[d++]);
1455
1471
  return u;
1456
1472
  }
@@ -1475,14 +1491,14 @@ let B = class {
1475
1491
  return u;
1476
1492
  }
1477
1493
  getUri(t) {
1478
- t = D(this.defaults, t);
1479
- const n = Je(t.baseURL, t.url);
1494
+ t = B(this.defaults, t);
1495
+ const n = Je(t.baseURL, t.url, t.allowAbsoluteUrls);
1480
1496
  return Ie(n, t.params, t.paramsSerializer);
1481
1497
  }
1482
1498
  };
1483
1499
  a.forEach(["delete", "get", "head", "options"], function(t) {
1484
- B.prototype[t] = function(n, r) {
1485
- return this.request(D(r || {}, {
1500
+ L.prototype[t] = function(n, r) {
1501
+ return this.request(B(r || {}, {
1486
1502
  method: t,
1487
1503
  url: n,
1488
1504
  data: (r || {}).data
@@ -1492,7 +1508,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1492
1508
  a.forEach(["post", "put", "patch"], function(t) {
1493
1509
  function n(r) {
1494
1510
  return function(o, i, c) {
1495
- return this.request(D(c || {}, {
1511
+ return this.request(B(c || {}, {
1496
1512
  method: t,
1497
1513
  headers: r ? {
1498
1514
  "Content-Type": "multipart/form-data"
@@ -1502,7 +1518,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1502
1518
  }));
1503
1519
  };
1504
1520
  }
1505
- B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
1521
+ L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
1506
1522
  });
1507
1523
  let Pn = class Ge {
1508
1524
  constructor(t) {
@@ -1577,15 +1593,15 @@ let Pn = class Ge {
1577
1593
  };
1578
1594
  }
1579
1595
  };
1580
- function _n(e) {
1596
+ function Fn(e) {
1581
1597
  return function(n) {
1582
1598
  return e.apply(null, n);
1583
1599
  };
1584
1600
  }
1585
- function Fn(e) {
1601
+ function _n(e) {
1586
1602
  return a.isObject(e) && e.isAxiosError === !0;
1587
1603
  }
1588
- const ce = {
1604
+ const le = {
1589
1605
  Continue: 100,
1590
1606
  SwitchingProtocols: 101,
1591
1607
  Processing: 102,
@@ -1650,34 +1666,34 @@ const ce = {
1650
1666
  NotExtended: 510,
1651
1667
  NetworkAuthenticationRequired: 511
1652
1668
  };
1653
- Object.entries(ce).forEach(([e, t]) => {
1654
- ce[t] = e;
1669
+ Object.entries(le).forEach(([e, t]) => {
1670
+ le[t] = e;
1655
1671
  });
1656
1672
  function Qe(e) {
1657
- const t = new B(e), n = Ce(B.prototype.request, t);
1658
- return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1659
- return Qe(D(e, s));
1673
+ const t = new L(e), n = Ce(L.prototype.request, t);
1674
+ return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1675
+ return Qe(B(e, s));
1660
1676
  }, n;
1661
1677
  }
1662
- const E = Qe(H);
1663
- E.Axios = B;
1678
+ const E = Qe(z);
1679
+ E.Axios = L;
1664
1680
  E.CanceledError = k;
1665
1681
  E.CancelToken = Pn;
1666
1682
  E.isCancel = ze;
1667
1683
  E.VERSION = Xe;
1668
- E.toFormData = G;
1684
+ E.toFormData = Z;
1669
1685
  E.AxiosError = m;
1670
1686
  E.Cancel = E.CanceledError;
1671
1687
  E.all = function(t) {
1672
1688
  return Promise.all(t);
1673
1689
  };
1674
- E.spread = _n;
1675
- E.isAxiosError = Fn;
1676
- E.mergeConfig = D;
1677
- E.AxiosHeaders = A;
1690
+ E.spread = Fn;
1691
+ E.isAxiosError = _n;
1692
+ E.mergeConfig = B;
1693
+ E.AxiosHeaders = x;
1678
1694
  E.formToJSON = (e) => Me(a.isHTMLForm(e) ? new FormData(e) : e);
1679
- E.getAdapter = Ke.getAdapter;
1680
- E.HttpStatusCode = ce;
1695
+ E.getAdapter = ve.getAdapter;
1696
+ E.HttpStatusCode = le;
1681
1697
  E.default = E;
1682
1698
  const {
1683
1699
  Axios: jn,
@@ -1689,32 +1705,32 @@ const {
1689
1705
  all: $n,
1690
1706
  Cancel: Jn,
1691
1707
  isAxiosError: Vn,
1692
- spread: vn,
1693
- toFormData: Wn,
1694
- AxiosHeaders: Kn,
1708
+ spread: Wn,
1709
+ toFormData: Kn,
1710
+ AxiosHeaders: vn,
1695
1711
  HttpStatusCode: Xn,
1696
1712
  formToJSON: Gn,
1697
1713
  getAdapter: Qn,
1698
1714
  mergeConfig: Zn
1699
- } = E, Yn = async (e) => {
1700
- var n;
1715
+ } = E, Yn = async (e = "") => {
1716
+ var r;
1701
1717
  const t = {
1702
1718
  personalInfo: "/api/personal-center/personal-server/v1/info"
1719
+ }, n = {
1720
+ "X-Origin": location.origin,
1721
+ "Accept-Language": Ze.value
1703
1722
  };
1723
+ e && (n.Authorization = `Bearer ${e}`);
1704
1724
  try {
1705
- const r = await E.create().get(t.personalInfo, {
1725
+ const s = await E.create().get(t.personalInfo, {
1706
1726
  baseURL: et().baseURL,
1707
1727
  params: {
1708
- project: (n = Ye()) == null ? void 0 : n.id,
1728
+ project: (r = Ye()) == null ? void 0 : r.id,
1709
1729
  timestamp: (/* @__PURE__ */ new Date()).getTime()
1710
1730
  },
1711
- headers: {
1712
- Authorization: `Bearer ${e}`,
1713
- "X-Origin": location.origin,
1714
- "Accept-Language": Ze.value
1715
- }
1731
+ headers: n
1716
1732
  });
1717
- r != null && r.data && sessionStorage.setItem("userInfo", JSON.stringify(r.data));
1733
+ s != null && s.data && sessionStorage.setItem("userInfo", JSON.stringify(s.data));
1718
1734
  } catch {
1719
1735
  }
1720
1736
  };