@articles-media/articles-dev-box 1.0.16 → 1.0.17

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 (39) hide show
  1. package/README.md +4 -0
  2. package/dist/Ad.cjs +1 -1
  3. package/dist/Ad.js +2 -2
  4. package/dist/{AdConfirmExitModal-CKkMAvBK.js → AdConfirmExitModal-Bhz-lt9w.js} +1 -1
  5. package/dist/{AdConfirmExitModal-CcSxmXKT.cjs → AdConfirmExitModal-N3Lvhb4y.cjs} +1 -1
  6. package/dist/{AdDetailsModal-k840vrS2.cjs → AdDetailsModal-BMj8DjV0.cjs} +1 -1
  7. package/dist/{AdDetailsModal-Bp5hZm9N.js → AdDetailsModal-DXvfmyKK.js} +1 -1
  8. package/dist/DarkModeHandler.cjs +1 -0
  9. package/dist/DarkModeHandler.js +17 -0
  10. package/dist/ElementChildren-DN3RWY2E.js +51 -0
  11. package/dist/ElementChildren-eAwIENLl.cjs +1 -0
  12. package/dist/FriendsList.cjs +1 -1
  13. package/dist/FriendsList.js +1 -1
  14. package/dist/GameScoreboard.cjs +1 -1
  15. package/dist/GameScoreboard.js +2 -2
  16. package/dist/{GlobalBody-tmIC_GWn.js → GlobalBody-BrrtfBBs.js} +2 -2
  17. package/dist/{GlobalBody-BQ2qC81K.cjs → GlobalBody-weON_TbJ.cjs} +1 -1
  18. package/dist/GlobalBody.cjs +1 -1
  19. package/dist/GlobalBody.js +1 -1
  20. package/dist/{Modal-Wmqy9fOm.cjs → Modal-Bdhkgkwr.cjs} +2 -2
  21. package/dist/{Modal-C9oYRgI1.js → Modal-nux8R77F.js} +320 -306
  22. package/dist/SettingsModal.cjs +1 -0
  23. package/dist/SettingsModal.js +658 -0
  24. package/dist/{StatusModal-CAVxWCUq.js → StatusModal-B086BgSW.js} +2 -2
  25. package/dist/{StatusModal-BlwaI-2B.cjs → StatusModal-CzPyqQQA.cjs} +1 -1
  26. package/dist/ViewUserModal.cjs +1 -1
  27. package/dist/ViewUserModal.js +465 -505
  28. package/dist/{index-DLYx67wi.js → index-C8MeSLnR.js} +935 -825
  29. package/dist/index-DWV8myok.cjs +6 -0
  30. package/dist/index.cjs +1 -1
  31. package/dist/index.js +13 -9
  32. package/dist/useUserDetails.cjs +1 -1
  33. package/dist/useUserDetails.js +1 -1
  34. package/dist/useUserFriends.cjs +1 -1
  35. package/dist/useUserFriends.js +1 -1
  36. package/dist/useUserToken.cjs +1 -1
  37. package/dist/useUserToken.js +1 -1
  38. package/package.json +9 -1
  39. package/dist/index-Ddv_TnxK.cjs +0 -6
@@ -1,39 +1,48 @@
1
- import Oe, { createContext as kn, useEffect as qn, useLayoutEffect as Hn, useContext as Mn, useMemo as en, useRef as le, useCallback as ze, useDebugValue as Vn } from "react";
2
- function tn(e, t) {
1
+ import ge, { createContext as kn, useEffect as Mn, useLayoutEffect as Hn, useContext as Vn, useMemo as rn, useRef as le, useCallback as ze, useDebugValue as $n } from "react";
2
+ function sn(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
5
5
  };
6
6
  }
7
- const { toString: $n } = Object.prototype, { getPrototypeOf: Et } = Object, { iterator: ke, toStringTag: nn } = Symbol, qe = /* @__PURE__ */ ((e) => (t) => {
8
- const n = $n.call(t);
7
+ const { toString: Wn } = Object.prototype, { getPrototypeOf: yt } = Object, { iterator: qe, toStringTag: on } = Symbol, ke = /* @__PURE__ */ ((e) => (t) => {
8
+ const n = Wn.call(t);
9
9
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), G = (e) => (e = e.toLowerCase(), (t) => qe(t) === e), He = (e) => (t) => typeof t === e, { isArray: we } = Array, ye = He("undefined");
11
- function Te(e) {
12
- return e !== null && !ye(e) && e.constructor !== null && !ye(e.constructor) && k(e.constructor.isBuffer) && e.constructor.isBuffer(e);
10
+ })(/* @__PURE__ */ Object.create(null)), X = (e) => (e = e.toLowerCase(), (t) => ke(t) === e), Me = (e) => (t) => typeof t === e, { isArray: we } = Array, ye = Me("undefined");
11
+ function Oe(e) {
12
+ return e !== null && !ye(e) && e.constructor !== null && !ye(e.constructor) && q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
13
  }
14
- const rn = G("ArrayBuffer");
15
- function Wn(e) {
14
+ const an = X("ArrayBuffer");
15
+ function zn(e) {
16
16
  let t;
17
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && rn(e.buffer), t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && an(e.buffer), t;
18
18
  }
19
- const zn = He("string"), k = He("function"), sn = He("number"), Ae = (e) => e !== null && typeof e == "object", Jn = (e) => e === !0 || e === !1, Ue = (e) => {
20
- if (qe(e) !== "object")
19
+ const Jn = Me("string"), q = Me("function"), cn = Me("number"), Te = (e) => e !== null && typeof e == "object", Kn = (e) => e === !0 || e === !1, Ue = (e) => {
20
+ if (ke(e) !== "object")
21
21
  return !1;
22
- const t = Et(e);
23
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(nn in e) && !(ke in e);
24
- }, Kn = (e) => {
25
- if (!Ae(e) || Te(e))
22
+ const t = yt(e);
23
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(on in e) && !(qe in e);
24
+ }, Gn = (e) => {
25
+ if (!Te(e) || Oe(e))
26
26
  return !1;
27
27
  try {
28
28
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, Gn = G("Date"), Xn = G("File"), Yn = G("Blob"), Qn = G("FileList"), Zn = (e) => Ae(e) && k(e.pipe), er = (e) => {
32
+ }, Xn = X("Date"), Yn = X("File"), Qn = (e) => !!(e && typeof e.uri < "u"), Zn = (e) => e && typeof e.getParts < "u", er = X("Blob"), tr = X("FileList"), nr = (e) => Te(e) && q(e.pipe);
33
+ function rr() {
34
+ return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
35
+ }
36
+ const Nt = rr(), Lt = typeof Nt.FormData < "u" ? Nt.FormData : void 0, sr = (e) => {
33
37
  let t;
34
- return e && (typeof FormData == "function" && e instanceof FormData || k(e.append) && ((t = qe(e)) === "formdata" || // detect form-data instance
35
- t === "object" && k(e.toString) && e.toString() === "[object FormData]"));
36
- }, tr = G("URLSearchParams"), [nr, rr, sr, or] = ["ReadableStream", "Request", "Response", "Headers"].map(G), ir = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
+ return e && (Lt && e instanceof Lt || q(e.append) && ((t = ke(e)) === "formdata" || // detect form-data instance
39
+ t === "object" && q(e.toString) && e.toString() === "[object FormData]"));
40
+ }, or = X("URLSearchParams"), [ir, ar, cr, ur] = [
41
+ "ReadableStream",
42
+ "Request",
43
+ "Response",
44
+ "Headers"
45
+ ].map(X), lr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
46
  function _e(e, t, { allOwnKeys: n = !1 } = {}) {
38
47
  if (e === null || typeof e > "u")
39
48
  return;
@@ -42,7 +51,7 @@ function _e(e, t, { allOwnKeys: n = !1 } = {}) {
42
51
  for (r = 0, s = e.length; r < s; r++)
43
52
  t.call(null, e[r], r, e);
44
53
  else {
45
- if (Te(e))
54
+ if (Oe(e))
46
55
  return;
47
56
  const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
48
57
  let a;
@@ -50,8 +59,8 @@ function _e(e, t, { allOwnKeys: n = !1 } = {}) {
50
59
  a = i[r], t.call(null, e[a], a, e);
51
60
  }
52
61
  }
53
- function on(e, t) {
54
- if (Te(e))
62
+ function un(e, t) {
63
+ if (Oe(e))
55
64
  return null;
56
65
  t = t.toLowerCase();
57
66
  const n = Object.keys(e);
@@ -61,75 +70,93 @@ function on(e, t) {
61
70
  return s;
62
71
  return null;
63
72
  }
64
- const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, an = (e) => !ye(e) && e !== fe;
65
- function st() {
66
- const { caseless: e, skipUndefined: t } = an(this) && this || {}, n = {}, r = (s, i) => {
67
- const o = e && on(n, i) || i;
68
- Ue(n[o]) && Ue(s) ? n[o] = st(n[o], s) : Ue(s) ? n[o] = st({}, s) : we(s) ? n[o] = s.slice() : (!t || !ye(s)) && (n[o] = s);
73
+ const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ln = (e) => !ye(e) && e !== fe;
74
+ function ot() {
75
+ const { caseless: e, skipUndefined: t } = ln(this) && this || {}, n = {}, r = (s, i) => {
76
+ if (i === "__proto__" || i === "constructor" || i === "prototype")
77
+ return;
78
+ const o = e && un(n, i) || i;
79
+ Ue(n[o]) && Ue(s) ? n[o] = ot(n[o], s) : Ue(s) ? n[o] = ot({}, s) : we(s) ? n[o] = s.slice() : (!t || !ye(s)) && (n[o] = s);
69
80
  };
70
81
  for (let s = 0, i = arguments.length; s < i; s++)
71
82
  arguments[s] && _e(arguments[s], r);
72
83
  return n;
73
84
  }
74
- const ar = (e, t, n, { allOwnKeys: r } = {}) => (_e(t, (s, i) => {
75
- n && k(s) ? e[i] = tn(s, n) : e[i] = s;
76
- }, { allOwnKeys: r }), e), cr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ur = (e, t, n, r) => {
77
- e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
85
+ const fr = (e, t, n, { allOwnKeys: r } = {}) => (_e(
86
+ t,
87
+ (s, i) => {
88
+ n && q(s) ? Object.defineProperty(e, i, {
89
+ value: sn(s, n),
90
+ writable: !0,
91
+ enumerable: !0,
92
+ configurable: !0
93
+ }) : Object.defineProperty(e, i, {
94
+ value: s,
95
+ writable: !0,
96
+ enumerable: !0,
97
+ configurable: !0
98
+ });
99
+ },
100
+ { allOwnKeys: r }
101
+ ), e), dr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), pr = (e, t, n, r) => {
102
+ e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
103
+ value: e,
104
+ writable: !0,
105
+ enumerable: !1,
106
+ configurable: !0
107
+ }), Object.defineProperty(e, "super", {
78
108
  value: t.prototype
79
109
  }), n && Object.assign(e.prototype, n);
80
- }, lr = (e, t, n, r) => {
110
+ }, hr = (e, t, n, r) => {
81
111
  let s, i, o;
82
112
  const a = {};
83
113
  if (t = t || {}, e == null) return t;
84
114
  do {
85
115
  for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
86
116
  o = s[i], (!r || r(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
87
- e = n !== !1 && Et(e);
117
+ e = n !== !1 && yt(e);
88
118
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
89
119
  return t;
90
- }, fr = (e, t, n) => {
120
+ }, mr = (e, t, n) => {
91
121
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
92
122
  const r = e.indexOf(t, n);
93
123
  return r !== -1 && r === n;
94
- }, dr = (e) => {
124
+ }, Er = (e) => {
95
125
  if (!e) return null;
96
126
  if (we(e)) return e;
97
127
  let t = e.length;
98
- if (!sn(t)) return null;
128
+ if (!cn(t)) return null;
99
129
  const n = new Array(t);
100
130
  for (; t-- > 0; )
101
131
  n[t] = e[t];
102
132
  return n;
103
- }, pr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Et(Uint8Array)), hr = (e, t) => {
104
- const r = (e && e[ke]).call(e);
133
+ }, yr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && yt(Uint8Array)), wr = (e, t) => {
134
+ const r = (e && e[qe]).call(e);
105
135
  let s;
106
136
  for (; (s = r.next()) && !s.done; ) {
107
137
  const i = s.value;
108
138
  t.call(e, i[0], i[1]);
109
139
  }
110
- }, mr = (e, t) => {
140
+ }, Rr = (e, t) => {
111
141
  let n;
112
142
  const r = [];
113
143
  for (; (n = e.exec(t)) !== null; )
114
144
  r.push(n);
115
145
  return r;
116
- }, Er = G("HTMLFormElement"), yr = (e) => e.toLowerCase().replace(
117
- /[-_\s]([a-z\d])(\w*)/g,
118
- function(n, r, s) {
119
- return r.toUpperCase() + s;
120
- }
121
- ), xt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), wr = G("RegExp"), cn = (e, t) => {
146
+ }, Sr = X("HTMLFormElement"), br = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
147
+ return r.toUpperCase() + s;
148
+ }), Pt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), gr = X("RegExp"), fn = (e, t) => {
122
149
  const n = Object.getOwnPropertyDescriptors(e), r = {};
123
150
  _e(n, (s, i) => {
124
151
  let o;
125
152
  (o = t(s, i, e)) !== !1 && (r[i] = o || s);
126
153
  }), Object.defineProperties(e, r);
127
- }, Sr = (e) => {
128
- cn(e, (t, n) => {
129
- if (k(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
154
+ }, Or = (e) => {
155
+ fn(e, (t, n) => {
156
+ if (q(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
157
  return !1;
131
158
  const r = e[n];
132
- if (k(r)) {
159
+ if (q(r)) {
133
160
  if (t.enumerable = !1, "writable" in t) {
134
161
  t.writable = !1;
135
162
  return;
@@ -139,24 +166,24 @@ const ar = (e, t, n, { allOwnKeys: r } = {}) => (_e(t, (s, i) => {
139
166
  });
140
167
  }
141
168
  });
142
- }, gr = (e, t) => {
169
+ }, Tr = (e, t) => {
143
170
  const n = {}, r = (s) => {
144
171
  s.forEach((i) => {
145
172
  n[i] = !0;
146
173
  });
147
174
  };
148
175
  return we(e) ? r(e) : r(String(e).split(t)), n;
149
- }, br = () => {
150
- }, Rr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
151
- function Or(e) {
152
- return !!(e && k(e.append) && e[nn] === "FormData" && e[ke]);
176
+ }, _r = () => {
177
+ }, Ar = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
178
+ function Cr(e) {
179
+ return !!(e && q(e.append) && e[on] === "FormData" && e[qe]);
153
180
  }
154
- const Tr = (e) => {
181
+ const xr = (e) => {
155
182
  const t = new Array(10), n = (r, s) => {
156
- if (Ae(r)) {
183
+ if (Te(r)) {
157
184
  if (t.indexOf(r) >= 0)
158
185
  return;
159
- if (Te(r))
186
+ if (Oe(r))
160
187
  return r;
161
188
  if (!("toJSON" in r)) {
162
189
  t[s] = r;
@@ -170,78 +197,101 @@ const Tr = (e) => {
170
197
  return r;
171
198
  };
172
199
  return n(e, 0);
173
- }, Ar = G("AsyncFunction"), _r = (e) => e && (Ae(e) || k(e)) && k(e.then) && k(e.catch), un = ((e, t) => e ? setImmediate : t ? ((n, r) => (fe.addEventListener("message", ({ source: s, data: i }) => {
174
- s === fe && i === n && r.length && r.shift()();
175
- }, !1), (s) => {
200
+ }, Dr = X("AsyncFunction"), Nr = (e) => e && (Te(e) || q(e)) && q(e.then) && q(e.catch), dn = ((e, t) => e ? setImmediate : t ? ((n, r) => (fe.addEventListener(
201
+ "message",
202
+ ({ source: s, data: i }) => {
203
+ s === fe && i === n && r.length && r.shift()();
204
+ },
205
+ !1
206
+ ), (s) => {
176
207
  r.push(s), fe.postMessage(n, "*");
177
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
- typeof setImmediate == "function",
179
- k(fe.postMessage)
180
- ), Cr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || un, xr = (e) => e != null && k(e[ke]), c = {
208
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", q(fe.postMessage)), Lr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || dn, Pr = (e) => e != null && q(e[qe]), c = {
181
209
  isArray: we,
182
- isArrayBuffer: rn,
183
- isBuffer: Te,
184
- isFormData: er,
185
- isArrayBufferView: Wn,
186
- isString: zn,
187
- isNumber: sn,
188
- isBoolean: Jn,
189
- isObject: Ae,
210
+ isArrayBuffer: an,
211
+ isBuffer: Oe,
212
+ isFormData: sr,
213
+ isArrayBufferView: zn,
214
+ isString: Jn,
215
+ isNumber: cn,
216
+ isBoolean: Kn,
217
+ isObject: Te,
190
218
  isPlainObject: Ue,
191
- isEmptyObject: Kn,
192
- isReadableStream: nr,
193
- isRequest: rr,
194
- isResponse: sr,
195
- isHeaders: or,
219
+ isEmptyObject: Gn,
220
+ isReadableStream: ir,
221
+ isRequest: ar,
222
+ isResponse: cr,
223
+ isHeaders: ur,
196
224
  isUndefined: ye,
197
- isDate: Gn,
198
- isFile: Xn,
199
- isBlob: Yn,
200
- isRegExp: wr,
201
- isFunction: k,
202
- isStream: Zn,
203
- isURLSearchParams: tr,
204
- isTypedArray: pr,
205
- isFileList: Qn,
225
+ isDate: Xn,
226
+ isFile: Yn,
227
+ isReactNativeBlob: Qn,
228
+ isReactNative: Zn,
229
+ isBlob: er,
230
+ isRegExp: gr,
231
+ isFunction: q,
232
+ isStream: nr,
233
+ isURLSearchParams: or,
234
+ isTypedArray: yr,
235
+ isFileList: tr,
206
236
  forEach: _e,
207
- merge: st,
208
- extend: ar,
209
- trim: ir,
210
- stripBOM: cr,
211
- inherits: ur,
212
- toFlatObject: lr,
213
- kindOf: qe,
214
- kindOfTest: G,
215
- endsWith: fr,
216
- toArray: dr,
217
- forEachEntry: hr,
218
- matchAll: mr,
219
- isHTMLForm: Er,
220
- hasOwnProperty: xt,
221
- hasOwnProp: xt,
237
+ merge: ot,
238
+ extend: fr,
239
+ trim: lr,
240
+ stripBOM: dr,
241
+ inherits: pr,
242
+ toFlatObject: hr,
243
+ kindOf: ke,
244
+ kindOfTest: X,
245
+ endsWith: mr,
246
+ toArray: Er,
247
+ forEachEntry: wr,
248
+ matchAll: Rr,
249
+ isHTMLForm: Sr,
250
+ hasOwnProperty: Pt,
251
+ hasOwnProp: Pt,
222
252
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: cn,
224
- freezeMethods: Sr,
225
- toObjectSet: gr,
226
- toCamelCase: yr,
227
- noop: br,
228
- toFiniteNumber: Rr,
229
- findKey: on,
253
+ reduceDescriptors: fn,
254
+ freezeMethods: Or,
255
+ toObjectSet: Tr,
256
+ toCamelCase: br,
257
+ noop: _r,
258
+ toFiniteNumber: Ar,
259
+ findKey: un,
230
260
  global: fe,
231
- isContextDefined: an,
232
- isSpecCompliantForm: Or,
233
- toJSONObject: Tr,
234
- isAsyncFn: Ar,
235
- isThenable: _r,
236
- setImmediate: un,
237
- asap: Cr,
238
- isIterable: xr
261
+ isContextDefined: ln,
262
+ isSpecCompliantForm: Cr,
263
+ toJSONObject: xr,
264
+ isAsyncFn: Dr,
265
+ isThenable: Nr,
266
+ setImmediate: dn,
267
+ asap: Lr,
268
+ isIterable: Pr
239
269
  };
240
- function S(e, t, n, r, s) {
241
- 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);
242
- }
243
- c.inherits(S, Error, {
244
- toJSON: function() {
270
+ let R = class pn extends Error {
271
+ static from(t, n, r, s, i, o) {
272
+ const a = new pn(t.message, n || t.code, r, s, i);
273
+ return a.cause = t, a.name = t.name, t.status != null && a.status == null && (a.status = t.status), o && Object.assign(a, o), a;
274
+ }
275
+ /**
276
+ * Create an Error with the specified message, config, error code, request and response.
277
+ *
278
+ * @param {string} message The error message.
279
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
280
+ * @param {Object} [config] The config.
281
+ * @param {Object} [request] The request.
282
+ * @param {Object} [response] The response.
283
+ *
284
+ * @returns {Error} The created error.
285
+ */
286
+ constructor(t, n, r, s, i) {
287
+ super(t), Object.defineProperty(this, "message", {
288
+ value: t,
289
+ enumerable: !0,
290
+ writable: !0,
291
+ configurable: !0
292
+ }), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), s && (this.request = s), i && (this.response = i, this.status = i.status);
293
+ }
294
+ toJSON() {
245
295
  return {
246
296
  // Standard
247
297
  message: this.message,
@@ -260,63 +310,52 @@ c.inherits(S, Error, {
260
310
  status: this.status
261
311
  };
262
312
  }
263
- });
264
- const ln = S.prototype, fn = {};
265
- [
266
- "ERR_BAD_OPTION_VALUE",
267
- "ERR_BAD_OPTION",
268
- "ECONNABORTED",
269
- "ETIMEDOUT",
270
- "ERR_NETWORK",
271
- "ERR_FR_TOO_MANY_REDIRECTS",
272
- "ERR_DEPRECATED",
273
- "ERR_BAD_RESPONSE",
274
- "ERR_BAD_REQUEST",
275
- "ERR_CANCELED",
276
- "ERR_NOT_SUPPORT",
277
- "ERR_INVALID_URL"
278
- // eslint-disable-next-line func-names
279
- ].forEach((e) => {
280
- fn[e] = { value: e };
281
- });
282
- Object.defineProperties(S, fn);
283
- Object.defineProperty(ln, "isAxiosError", { value: !0 });
284
- S.from = (e, t, n, r, s, i) => {
285
- const o = Object.create(ln);
286
- c.toFlatObject(e, o, function(l) {
287
- return l !== Error.prototype;
288
- }, (f) => f !== "isAxiosError");
289
- const a = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
290
- return S.call(o, a, d, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
291
313
  };
292
- const Dr = null;
293
- function ot(e) {
314
+ R.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
315
+ R.ERR_BAD_OPTION = "ERR_BAD_OPTION";
316
+ R.ECONNABORTED = "ECONNABORTED";
317
+ R.ETIMEDOUT = "ETIMEDOUT";
318
+ R.ERR_NETWORK = "ERR_NETWORK";
319
+ R.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
320
+ R.ERR_DEPRECATED = "ERR_DEPRECATED";
321
+ R.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
322
+ R.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
323
+ R.ERR_CANCELED = "ERR_CANCELED";
324
+ R.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
325
+ R.ERR_INVALID_URL = "ERR_INVALID_URL";
326
+ const Fr = null;
327
+ function it(e) {
294
328
  return c.isPlainObject(e) || c.isArray(e);
295
329
  }
296
- function dn(e) {
330
+ function hn(e) {
297
331
  return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
332
  }
299
- function Dt(e, t, n) {
333
+ function Je(e, t, n) {
300
334
  return e ? e.concat(t).map(function(s, i) {
301
- return s = dn(s), !n && i ? "[" + s + "]" : s;
335
+ return s = hn(s), !n && i ? "[" + s + "]" : s;
302
336
  }).join(n ? "." : "") : t;
303
337
  }
304
- function Lr(e) {
305
- return c.isArray(e) && !e.some(ot);
338
+ function vr(e) {
339
+ return c.isArray(e) && !e.some(it);
306
340
  }
307
- const Nr = c.toFlatObject(c, {}, null, function(t) {
341
+ const Ur = c.toFlatObject(c, {}, null, function(t) {
308
342
  return /^is[A-Z]/.test(t);
309
343
  });
310
- function Me(e, t, n) {
344
+ function He(e, t, n) {
311
345
  if (!c.isObject(e))
312
346
  throw new TypeError("target must be an object");
313
- t = t || new FormData(), n = c.toFlatObject(n, {
314
- metaTokens: !0,
315
- dots: !1,
316
- indexes: !1
317
- }, !1, function(m, h) {
318
- return !c.isUndefined(h[m]);
319
- });
347
+ t = t || new FormData(), n = c.toFlatObject(
348
+ n,
349
+ {
350
+ metaTokens: !0,
351
+ dots: !1,
352
+ indexes: !1
353
+ },
354
+ !1,
355
+ function(m, h) {
356
+ return !c.isUndefined(h[m]);
357
+ }
358
+ );
320
359
  const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
321
360
  if (!c.isFunction(s))
322
361
  throw new TypeError("visitor must be a function");
@@ -327,42 +366,38 @@ function Me(e, t, n) {
327
366
  if (c.isBoolean(u))
328
367
  return u.toString();
329
368
  if (!d && c.isBlob(u))
330
- throw new S("Blob is not supported. Use a Buffer instead.");
369
+ throw new R("Blob is not supported. Use a Buffer instead.");
331
370
  return c.isArrayBuffer(u) || c.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
332
371
  }
333
372
  function l(u, m, h) {
334
- let g = u;
373
+ let S = u;
374
+ if (c.isReactNative(t) && c.isReactNativeBlob(u))
375
+ return t.append(Je(h, m, i), f(u)), !1;
335
376
  if (u && !h && typeof u == "object") {
336
377
  if (c.endsWith(m, "{}"))
337
378
  m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
338
- else if (c.isArray(u) && Lr(u) || (c.isFileList(u) || c.endsWith(m, "[]")) && (g = c.toArray(u)))
339
- return m = dn(m), g.forEach(function(A, x) {
340
- !(c.isUndefined(A) || A === null) && t.append(
379
+ else if (c.isArray(u) && vr(u) || (c.isFileList(u) || c.endsWith(m, "[]")) && (S = c.toArray(u)))
380
+ return m = hn(m), S.forEach(function(_, x) {
381
+ !(c.isUndefined(_) || _ === null) && t.append(
341
382
  // eslint-disable-next-line no-nested-ternary
342
- o === !0 ? Dt([m], x, i) : o === null ? m : m + "[]",
343
- f(A)
383
+ o === !0 ? Je([m], x, i) : o === null ? m : m + "[]",
384
+ f(_)
344
385
  );
345
386
  }), !1;
346
387
  }
347
- return ot(u) ? !0 : (t.append(Dt(h, m, i), f(u)), !1);
388
+ return it(u) ? !0 : (t.append(Je(h, m, i), f(u)), !1);
348
389
  }
349
- const p = [], E = Object.assign(Nr, {
390
+ const p = [], E = Object.assign(Ur, {
350
391
  defaultVisitor: l,
351
392
  convertValue: f,
352
- isVisitable: ot
393
+ isVisitable: it
353
394
  });
354
395
  function y(u, m) {
355
396
  if (!c.isUndefined(u)) {
356
397
  if (p.indexOf(u) !== -1)
357
398
  throw Error("Circular reference detected in " + m.join("."));
358
- p.push(u), c.forEach(u, function(g, w) {
359
- (!(c.isUndefined(g) || g === null) && s.call(
360
- t,
361
- g,
362
- c.isString(w) ? w.trim() : w,
363
- m,
364
- E
365
- )) === !0 && y(g, m ? m.concat(w) : [w]);
399
+ p.push(u), c.forEach(u, function(S, w) {
400
+ (!(c.isUndefined(S) || S === null) && s.call(t, S, c.isString(w) ? w.trim() : w, m, E)) === !0 && y(S, m ? m.concat(w) : [w]);
366
401
  }), p.pop();
367
402
  }
368
403
  }
@@ -370,7 +405,7 @@ function Me(e, t, n) {
370
405
  throw new TypeError("data must be an object");
371
406
  return y(e), t;
372
407
  }
373
- function Lt(e) {
408
+ function Ft(e) {
374
409
  const t = {
375
410
  "!": "%21",
376
411
  "'": "%27",
@@ -384,40 +419,38 @@ function Lt(e) {
384
419
  return t[r];
385
420
  });
386
421
  }
387
- function yt(e, t) {
388
- this._pairs = [], e && Me(e, this, t);
422
+ function wt(e, t) {
423
+ this._pairs = [], e && He(e, this, t);
389
424
  }
390
- const pn = yt.prototype;
391
- pn.append = function(t, n) {
425
+ const mn = wt.prototype;
426
+ mn.append = function(t, n) {
392
427
  this._pairs.push([t, n]);
393
428
  };
394
- pn.toString = function(t) {
429
+ mn.toString = function(t) {
395
430
  const n = t ? function(r) {
396
- return t.call(this, r, Lt);
397
- } : Lt;
431
+ return t.call(this, r, Ft);
432
+ } : Ft;
398
433
  return this._pairs.map(function(s) {
399
434
  return n(s[0]) + "=" + n(s[1]);
400
435
  }, "").join("&");
401
436
  };
402
- function Fr(e) {
437
+ function Ir(e) {
403
438
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
404
439
  }
405
- function hn(e, t, n) {
440
+ function En(e, t, n) {
406
441
  if (!t)
407
442
  return e;
408
- const r = n && n.encode || Fr;
409
- c.isFunction(n) && (n = {
443
+ const r = n && n.encode || Ir, s = c.isFunction(n) ? {
410
444
  serialize: n
411
- });
412
- const s = n && n.serialize;
413
- let i;
414
- if (s ? i = s(t, n) : i = c.isURLSearchParams(t) ? t.toString() : new yt(t, n).toString(r), i) {
415
- const o = e.indexOf("#");
416
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
445
+ } : n, i = s && s.serialize;
446
+ let o;
447
+ if (i ? o = i(t, s) : o = c.isURLSearchParams(t) ? t.toString() : new wt(t, s).toString(r), o) {
448
+ const a = e.indexOf("#");
449
+ a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
417
450
  }
418
451
  return e;
419
452
  }
420
- class Nt {
453
+ class vt {
421
454
  constructor() {
422
455
  this.handlers = [];
423
456
  }
@@ -426,6 +459,7 @@ class Nt {
426
459
  *
427
460
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
428
461
  * @param {Function} rejected The function to handle `reject` for a `Promise`
462
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
429
463
  *
430
464
  * @return {Number} An ID used to remove interceptor later
431
465
  */
@@ -471,42 +505,43 @@ class Nt {
471
505
  });
472
506
  }
473
507
  }
474
- const mn = {
508
+ const Rt = {
475
509
  silentJSONParsing: !0,
476
510
  forcedJSONParsing: !0,
477
- clarifyTimeoutError: !1
478
- }, Pr = typeof URLSearchParams < "u" ? URLSearchParams : yt, vr = typeof FormData < "u" ? FormData : null, Ur = typeof Blob < "u" ? Blob : null, Ir = {
511
+ clarifyTimeoutError: !1,
512
+ legacyInterceptorReqResOrdering: !0
513
+ }, Br = typeof URLSearchParams < "u" ? URLSearchParams : wt, jr = typeof FormData < "u" ? FormData : null, qr = typeof Blob < "u" ? Blob : null, kr = {
479
514
  isBrowser: !0,
480
515
  classes: {
481
- URLSearchParams: Pr,
482
- FormData: vr,
483
- Blob: Ur
516
+ URLSearchParams: Br,
517
+ FormData: jr,
518
+ Blob: qr
484
519
  },
485
520
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, wt = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, Br = wt && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), jr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", kr = wt && window.location.href || "http://localhost", qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
521
+ }, St = typeof window < "u" && typeof document < "u", at = typeof navigator == "object" && navigator || void 0, Mr = St && (!at || ["ReactNative", "NativeScript", "NS"].indexOf(at.product) < 0), Hr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
522
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Vr = St && window.location.href || "http://localhost", $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
523
  __proto__: null,
489
- hasBrowserEnv: wt,
490
- hasStandardBrowserEnv: Br,
491
- hasStandardBrowserWebWorkerEnv: jr,
492
- navigator: it,
493
- origin: kr
494
- }, Symbol.toStringTag, { value: "Module" })), I = {
495
- ...qr,
496
- ...Ir
524
+ hasBrowserEnv: St,
525
+ hasStandardBrowserEnv: Mr,
526
+ hasStandardBrowserWebWorkerEnv: Hr,
527
+ navigator: at,
528
+ origin: Vr
529
+ }, Symbol.toStringTag, { value: "Module" })), B = {
530
+ ...$r,
531
+ ...kr
497
532
  };
498
- function Hr(e, t) {
499
- return Me(e, new I.classes.URLSearchParams(), {
533
+ function Wr(e, t) {
534
+ return He(e, new B.classes.URLSearchParams(), {
500
535
  visitor: function(n, r, s, i) {
501
- return I.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
536
+ return B.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
502
537
  },
503
538
  ...t
504
539
  });
505
540
  }
506
- function Mr(e) {
541
+ function zr(e) {
507
542
  return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
508
543
  }
509
- function Vr(e) {
544
+ function Jr(e) {
510
545
  const t = {}, n = Object.keys(e);
511
546
  let r;
512
547
  const s = n.length;
@@ -515,22 +550,22 @@ function Vr(e) {
515
550
  i = n[r], t[i] = e[i];
516
551
  return t;
517
552
  }
518
- function En(e) {
553
+ function yn(e) {
519
554
  function t(n, r, s, i) {
520
555
  let o = n[i++];
521
556
  if (o === "__proto__") return !0;
522
557
  const a = Number.isFinite(+o), d = i >= n.length;
523
- return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] = Vr(s[o])), !a);
558
+ return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] = Jr(s[o])), !a);
524
559
  }
525
560
  if (c.isFormData(e) && c.isFunction(e.entries)) {
526
561
  const n = {};
527
562
  return c.forEachEntry(e, (r, s) => {
528
- t(Mr(r), s, n, 0);
563
+ t(zr(r), s, n, 0);
529
564
  }), n;
530
565
  }
531
566
  return null;
532
567
  }
533
- function $r(e, t, n) {
568
+ function Kr(e, t, n) {
534
569
  if (c.isString(e))
535
570
  try {
536
571
  return (t || JSON.parse)(e), c.trim(e);
@@ -540,49 +575,53 @@ function $r(e, t, n) {
540
575
  }
541
576
  return (n || JSON.stringify)(e);
542
577
  }
543
- const Ce = {
544
- transitional: mn,
578
+ const Ae = {
579
+ transitional: Rt,
545
580
  adapter: ["xhr", "http", "fetch"],
546
- transformRequest: [function(t, n) {
547
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = c.isObject(t);
548
- if (i && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
549
- return s ? JSON.stringify(En(t)) : t;
550
- if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
551
- return t;
552
- if (c.isArrayBufferView(t))
553
- return t.buffer;
554
- if (c.isURLSearchParams(t))
555
- return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
556
- let a;
557
- if (i) {
558
- if (r.indexOf("application/x-www-form-urlencoded") > -1)
559
- return Hr(t, this.formSerializer).toString();
560
- if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
561
- const d = this.env && this.env.FormData;
562
- return Me(
563
- a ? { "files[]": t } : t,
564
- d && new d(),
565
- this.formSerializer
566
- );
581
+ transformRequest: [
582
+ function(t, n) {
583
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = c.isObject(t);
584
+ if (i && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
585
+ return s ? JSON.stringify(yn(t)) : t;
586
+ if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
587
+ return t;
588
+ if (c.isArrayBufferView(t))
589
+ return t.buffer;
590
+ if (c.isURLSearchParams(t))
591
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
592
+ let a;
593
+ if (i) {
594
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
595
+ return Wr(t, this.formSerializer).toString();
596
+ if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
597
+ const d = this.env && this.env.FormData;
598
+ return He(
599
+ a ? { "files[]": t } : t,
600
+ d && new d(),
601
+ this.formSerializer
602
+ );
603
+ }
567
604
  }
605
+ return i || s ? (n.setContentType("application/json", !1), Kr(t)) : t;
568
606
  }
569
- return i || s ? (n.setContentType("application/json", !1), $r(t)) : t;
570
- }],
571
- transformResponse: [function(t) {
572
- const n = this.transitional || Ce.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
573
- if (c.isResponse(t) || c.isReadableStream(t))
574
- return t;
575
- if (t && c.isString(t) && (r && !this.responseType || s)) {
576
- const o = !(n && n.silentJSONParsing) && s;
577
- try {
578
- return JSON.parse(t, this.parseReviver);
579
- } catch (a) {
580
- if (o)
581
- throw a.name === "SyntaxError" ? S.from(a, S.ERR_BAD_RESPONSE, this, null, this.response) : a;
607
+ ],
608
+ transformResponse: [
609
+ function(t) {
610
+ const n = this.transitional || Ae.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
611
+ if (c.isResponse(t) || c.isReadableStream(t))
612
+ return t;
613
+ if (t && c.isString(t) && (r && !this.responseType || s)) {
614
+ const o = !(n && n.silentJSONParsing) && s;
615
+ try {
616
+ return JSON.parse(t, this.parseReviver);
617
+ } catch (a) {
618
+ if (o)
619
+ throw a.name === "SyntaxError" ? R.from(a, R.ERR_BAD_RESPONSE, this, null, this.response) : a;
620
+ }
582
621
  }
622
+ return t;
583
623
  }
584
- return t;
585
- }],
624
+ ],
586
625
  /**
587
626
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
588
627
  * timeout is not created.
@@ -593,8 +632,8 @@ const Ce = {
593
632
  maxContentLength: -1,
594
633
  maxBodyLength: -1,
595
634
  env: {
596
- FormData: I.classes.FormData,
597
- Blob: I.classes.Blob
635
+ FormData: B.classes.FormData,
636
+ Blob: B.classes.Blob
598
637
  },
599
638
  validateStatus: function(t) {
600
639
  return t >= 200 && t < 300;
@@ -607,9 +646,9 @@ const Ce = {
607
646
  }
608
647
  };
609
648
  c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
610
- Ce.headers[e] = {};
649
+ Ae.headers[e] = {};
611
650
  });
612
- const Wr = c.toObjectSet([
651
+ const Gr = c.toObjectSet([
613
652
  "age",
614
653
  "authorization",
615
654
  "content-length",
@@ -627,29 +666,29 @@ const Wr = c.toObjectSet([
627
666
  "referer",
628
667
  "retry-after",
629
668
  "user-agent"
630
- ]), zr = (e) => {
669
+ ]), Xr = (e) => {
631
670
  const t = {};
632
671
  let n, r, s;
633
672
  return e && e.split(`
634
673
  `).forEach(function(o) {
635
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Wr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
674
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Gr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
636
675
  }), t;
637
- }, Ft = /* @__PURE__ */ Symbol("internals");
638
- function Re(e) {
676
+ }, Ut = /* @__PURE__ */ Symbol("internals");
677
+ function be(e) {
639
678
  return e && String(e).trim().toLowerCase();
640
679
  }
641
680
  function Ie(e) {
642
- return e === !1 || e == null ? e : c.isArray(e) ? e.map(Ie) : String(e);
681
+ return e === !1 || e == null ? e : c.isArray(e) ? e.map(Ie) : String(e).replace(/[\r\n]+$/, "");
643
682
  }
644
- function Jr(e) {
683
+ function Yr(e) {
645
684
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
646
685
  let r;
647
686
  for (; r = n.exec(e); )
648
687
  t[r[1]] = r[2];
649
688
  return t;
650
689
  }
651
- const Kr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
652
- function Je(e, t, n, r, s) {
690
+ const Qr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
691
+ function Ke(e, t, n, r, s) {
653
692
  if (c.isFunction(r))
654
693
  return r.call(this, t, n);
655
694
  if (s && (t = n), !!c.isString(t)) {
@@ -659,10 +698,10 @@ function Je(e, t, n, r, s) {
659
698
  return r.test(t);
660
699
  }
661
700
  }
662
- function Gr(e) {
701
+ function Zr(e) {
663
702
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
664
703
  }
665
- function Xr(e, t) {
704
+ function es(e, t) {
666
705
  const n = c.toCamelCase(" " + t);
667
706
  ["get", "set", "has"].forEach((r) => {
668
707
  Object.defineProperty(e, r + n, {
@@ -673,14 +712,14 @@ function Xr(e, t) {
673
712
  });
674
713
  });
675
714
  }
676
- let q = class {
715
+ let k = class {
677
716
  constructor(t) {
678
717
  t && this.set(t);
679
718
  }
680
719
  set(t, n, r) {
681
720
  const s = this;
682
721
  function i(a, d, f) {
683
- const l = Re(d);
722
+ const l = be(d);
684
723
  if (!l)
685
724
  throw new Error("header name must be a non-empty string");
686
725
  const p = c.findKey(s, l);
@@ -689,8 +728,8 @@ let q = class {
689
728
  const o = (a, d) => c.forEach(a, (f, l) => i(f, l, d));
690
729
  if (c.isPlainObject(t) || t instanceof this.constructor)
691
730
  o(t, n);
692
- else if (c.isString(t) && (t = t.trim()) && !Kr(t))
693
- o(zr(t), n);
731
+ else if (c.isString(t) && (t = t.trim()) && !Qr(t))
732
+ o(Xr(t), n);
694
733
  else if (c.isObject(t) && c.isIterable(t)) {
695
734
  let a = {}, d, f;
696
735
  for (const l of t) {
@@ -704,14 +743,14 @@ let q = class {
704
743
  return this;
705
744
  }
706
745
  get(t, n) {
707
- if (t = Re(t), t) {
746
+ if (t = be(t), t) {
708
747
  const r = c.findKey(this, t);
709
748
  if (r) {
710
749
  const s = this[r];
711
750
  if (!n)
712
751
  return s;
713
752
  if (n === !0)
714
- return Jr(s);
753
+ return Yr(s);
715
754
  if (c.isFunction(n))
716
755
  return n.call(this, s, r);
717
756
  if (c.isRegExp(n))
@@ -721,9 +760,9 @@ let q = class {
721
760
  }
722
761
  }
723
762
  has(t, n) {
724
- if (t = Re(t), t) {
763
+ if (t = be(t), t) {
725
764
  const r = c.findKey(this, t);
726
- return !!(r && this[r] !== void 0 && (!n || Je(this, this[r], r, n)));
765
+ return !!(r && this[r] !== void 0 && (!n || Ke(this, this[r], r, n)));
727
766
  }
728
767
  return !1;
729
768
  }
@@ -731,9 +770,9 @@ let q = class {
731
770
  const r = this;
732
771
  let s = !1;
733
772
  function i(o) {
734
- if (o = Re(o), o) {
773
+ if (o = be(o), o) {
735
774
  const a = c.findKey(r, o);
736
- a && (!n || Je(r, r[a], a, n)) && (delete r[a], s = !0);
775
+ a && (!n || Ke(r, r[a], a, n)) && (delete r[a], s = !0);
737
776
  }
738
777
  }
739
778
  return c.isArray(t) ? t.forEach(i) : i(t), s;
@@ -743,7 +782,7 @@ let q = class {
743
782
  let r = n.length, s = !1;
744
783
  for (; r--; ) {
745
784
  const i = n[r];
746
- (!t || Je(this, this[i], i, t, !0)) && (delete this[i], s = !0);
785
+ (!t || Ke(this, this[i], i, t, !0)) && (delete this[i], s = !0);
747
786
  }
748
787
  return s;
749
788
  }
@@ -755,7 +794,7 @@ let q = class {
755
794
  n[o] = Ie(s), delete n[i];
756
795
  return;
757
796
  }
758
- const a = t ? Gr(i) : String(i).trim();
797
+ const a = t ? Zr(i) : String(i).trim();
759
798
  a !== i && delete n[i], n[a] = Ie(s), r[a] = !0;
760
799
  }), this;
761
800
  }
@@ -789,18 +828,25 @@ let q = class {
789
828
  return n.forEach((s) => r.set(s)), r;
790
829
  }
791
830
  static accessor(t) {
792
- const r = (this[Ft] = this[Ft] = {
831
+ const r = (this[Ut] = this[Ut] = {
793
832
  accessors: {}
794
833
  }).accessors, s = this.prototype;
795
834
  function i(o) {
796
- const a = Re(o);
797
- r[a] || (Xr(s, o), r[a] = !0);
835
+ const a = be(o);
836
+ r[a] || (es(s, o), r[a] = !0);
798
837
  }
799
838
  return c.isArray(t) ? t.forEach(i) : i(t), this;
800
839
  }
801
840
  };
802
- q.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
- c.reduceDescriptors(q.prototype, ({ value: e }, t) => {
841
+ k.accessor([
842
+ "Content-Type",
843
+ "Content-Length",
844
+ "Accept",
845
+ "Accept-Encoding",
846
+ "User-Agent",
847
+ "Authorization"
848
+ ]);
849
+ c.reduceDescriptors(k.prototype, ({ value: e }, t) => {
804
850
  let n = t[0].toUpperCase() + t.slice(1);
805
851
  return {
806
852
  get: () => e,
@@ -809,38 +855,48 @@ c.reduceDescriptors(q.prototype, ({ value: e }, t) => {
809
855
  }
810
856
  };
811
857
  });
812
- c.freezeMethods(q);
813
- function Ke(e, t) {
814
- const n = this || Ce, r = t || n, s = q.from(r.headers);
858
+ c.freezeMethods(k);
859
+ function Ge(e, t) {
860
+ const n = this || Ae, r = t || n, s = k.from(r.headers);
815
861
  let i = r.data;
816
862
  return c.forEach(e, function(a) {
817
863
  i = a.call(n, i, s.normalize(), t ? t.status : void 0);
818
864
  }), s.normalize(), i;
819
865
  }
820
- function yn(e) {
866
+ function wn(e) {
821
867
  return !!(e && e.__CANCEL__);
822
868
  }
823
- function Se(e, t, n) {
824
- S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
825
- }
826
- c.inherits(Se, S, {
827
- __CANCEL__: !0
828
- });
829
- function wn(e, t, n) {
869
+ let Ce = class extends R {
870
+ /**
871
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
872
+ *
873
+ * @param {string=} message The message.
874
+ * @param {Object=} config The config.
875
+ * @param {Object=} request The request.
876
+ *
877
+ * @returns {CanceledError} The created error.
878
+ */
879
+ constructor(t, n, r) {
880
+ super(t ?? "canceled", R.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
881
+ }
882
+ };
883
+ function Rn(e, t, n) {
830
884
  const r = n.config.validateStatus;
831
- !n.status || !r || r(n.status) ? e(n) : t(new S(
832
- "Request failed with status code " + n.status,
833
- [S.ERR_BAD_REQUEST, S.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
834
- n.config,
835
- n.request,
836
- n
837
- ));
885
+ !n.status || !r || r(n.status) ? e(n) : t(
886
+ new R(
887
+ "Request failed with status code " + n.status,
888
+ [R.ERR_BAD_REQUEST, R.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
889
+ n.config,
890
+ n.request,
891
+ n
892
+ )
893
+ );
838
894
  }
839
- function Yr(e) {
895
+ function ts(e) {
840
896
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
841
897
  return t && t[1] || "";
842
898
  }
843
- function Qr(e, t) {
899
+ function ns(e, t) {
844
900
  e = e || 10;
845
901
  const n = new Array(e), r = new Array(e);
846
902
  let s = 0, i = 0, o;
@@ -856,7 +912,7 @@ function Qr(e, t) {
856
912
  return y ? Math.round(E * 1e3 / y) : void 0;
857
913
  };
858
914
  }
859
- function Zr(e, t) {
915
+ function rs(e, t) {
860
916
  let n = 0, r = 1e3 / t, s, i;
861
917
  const o = (f, l = Date.now()) => {
862
918
  n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
@@ -870,8 +926,8 @@ function Zr(e, t) {
870
926
  }
871
927
  const je = (e, t, n = 3) => {
872
928
  let r = 0;
873
- const s = Qr(50, 250);
874
- return Zr((i) => {
929
+ const s = ns(50, 250);
930
+ return rs((i) => {
875
931
  const o = i.loaded, a = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), l = o <= a;
876
932
  r = o;
877
933
  const p = {
@@ -887,17 +943,20 @@ const je = (e, t, n = 3) => {
887
943
  };
888
944
  e(p);
889
945
  }, n);
890
- }, Pt = (e, t) => {
946
+ }, It = (e, t) => {
891
947
  const n = e != null;
892
- return [(r) => t[0]({
893
- lengthComputable: n,
894
- total: e,
895
- loaded: r
896
- }), t[1]];
897
- }, vt = (e) => (...t) => c.asap(() => e(...t)), es = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, I.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
898
- new URL(I.origin),
899
- I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
900
- ) : () => !0, ts = I.hasStandardBrowserEnv ? (
948
+ return [
949
+ (r) => t[0]({
950
+ lengthComputable: n,
951
+ total: e,
952
+ loaded: r
953
+ }),
954
+ t[1]
955
+ ];
956
+ }, Bt = (e) => (...t) => c.asap(() => e(...t)), ss = B.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, B.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
957
+ new URL(B.origin),
958
+ B.navigator && /(msie|trident)/i.test(B.navigator.userAgent)
959
+ ) : () => !0, os = B.hasStandardBrowserEnv ? (
901
960
  // Standard browser envs support document.cookie
902
961
  {
903
962
  write(e, t, n, r, s, i, o) {
@@ -926,17 +985,17 @@ const je = (e, t, n = 3) => {
926
985
  }
927
986
  }
928
987
  );
929
- function ns(e) {
930
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
988
+ function is(e) {
989
+ return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
931
990
  }
932
- function rs(e, t) {
991
+ function as(e, t) {
933
992
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
934
993
  }
935
994
  function Sn(e, t, n) {
936
- let r = !ns(t);
937
- return e && (r || n == !1) ? rs(e, t) : t;
995
+ let r = !is(t);
996
+ return e && (r || n == !1) ? as(e, t) : t;
938
997
  }
939
- const Ut = (e) => e instanceof q ? { ...e } : e;
998
+ const jt = (e) => e instanceof k ? { ...e } : e;
940
999
  function pe(e, t) {
941
1000
  t = t || {};
942
1001
  const n = {};
@@ -994,21 +1053,28 @@ function pe(e, t) {
994
1053
  socketPath: o,
995
1054
  responseEncoding: o,
996
1055
  validateStatus: a,
997
- headers: (f, l, p) => s(Ut(f), Ut(l), p, !0)
1056
+ headers: (f, l, p) => s(jt(f), jt(l), p, !0)
998
1057
  };
999
1058
  return c.forEach(Object.keys({ ...e, ...t }), function(l) {
1000
- const p = d[l] || s, E = p(e[l], t[l], l);
1059
+ if (l === "__proto__" || l === "constructor" || l === "prototype") return;
1060
+ const p = c.hasOwnProp(d, l) ? d[l] : s, E = p(e[l], t[l], l);
1001
1061
  c.isUndefined(E) && p !== a || (n[l] = E);
1002
1062
  }), n;
1003
1063
  }
1004
- const gn = (e) => {
1064
+ const bn = (e) => {
1005
1065
  const t = pe({}, e);
1006
1066
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = t;
1007
- if (t.headers = o = q.from(o), t.url = hn(Sn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
1067
+ if (t.headers = o = k.from(o), t.url = En(
1068
+ Sn(t.baseURL, t.url, t.allowAbsoluteUrls),
1069
+ e.params,
1070
+ e.paramsSerializer
1071
+ ), a && o.set(
1008
1072
  "Authorization",
1009
- "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1073
+ "Basic " + btoa(
1074
+ (a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : "")
1075
+ )
1010
1076
  ), c.isFormData(n)) {
1011
- if (I.hasStandardBrowserEnv || I.hasStandardBrowserWebWorkerEnv)
1077
+ if (B.hasStandardBrowserEnv || B.hasStandardBrowserWebWorkerEnv)
1012
1078
  o.setContentType(void 0);
1013
1079
  else if (c.isFunction(n.getHeaders)) {
1014
1080
  const d = n.getHeaders(), f = ["content-type", "content-length"];
@@ -1017,70 +1083,82 @@ const gn = (e) => {
1017
1083
  });
1018
1084
  }
1019
1085
  }
1020
- if (I.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && es(t.url))) {
1021
- const d = s && i && ts.read(i);
1086
+ if (B.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && ss(t.url))) {
1087
+ const d = s && i && os.read(i);
1022
1088
  d && o.set(s, d);
1023
1089
  }
1024
1090
  return t;
1025
- }, ss = typeof XMLHttpRequest < "u", os = ss && function(e) {
1091
+ }, cs = typeof XMLHttpRequest < "u", us = cs && function(e) {
1026
1092
  return new Promise(function(n, r) {
1027
- const s = gn(e);
1093
+ const s = bn(e);
1028
1094
  let i = s.data;
1029
- const o = q.from(s.headers).normalize();
1095
+ const o = k.from(s.headers).normalize();
1030
1096
  let { responseType: a, onUploadProgress: d, onDownloadProgress: f } = s, l, p, E, y, u;
1031
1097
  function m() {
1032
1098
  y && y(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1033
1099
  }
1034
1100
  let h = new XMLHttpRequest();
1035
1101
  h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1036
- function g() {
1102
+ function S() {
1037
1103
  if (!h)
1038
1104
  return;
1039
- const A = q.from(
1105
+ const _ = k.from(
1040
1106
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1041
- ), R = {
1107
+ ), g = {
1042
1108
  data: !a || a === "text" || a === "json" ? h.responseText : h.response,
1043
1109
  status: h.status,
1044
1110
  statusText: h.statusText,
1045
- headers: A,
1111
+ headers: _,
1046
1112
  config: e,
1047
1113
  request: h
1048
1114
  };
1049
- wn(function(_) {
1050
- n(_), m();
1051
- }, function(_) {
1052
- r(_), m();
1053
- }, R), h = null;
1115
+ Rn(
1116
+ function(A) {
1117
+ n(A), m();
1118
+ },
1119
+ function(A) {
1120
+ r(A), m();
1121
+ },
1122
+ g
1123
+ ), h = null;
1054
1124
  }
1055
- "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
1056
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
1125
+ "onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
1126
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
1057
1127
  }, h.onabort = function() {
1058
- h && (r(new S("Request aborted", S.ECONNABORTED, e, h)), h = null);
1128
+ h && (r(new R("Request aborted", R.ECONNABORTED, e, h)), h = null);
1059
1129
  }, h.onerror = function(x) {
1060
- const R = x && x.message ? x.message : "Network Error", P = new S(R, S.ERR_NETWORK, e, h);
1061
- P.event = x || null, r(P), h = null;
1130
+ const g = x && x.message ? x.message : "Network Error", v = new R(g, R.ERR_NETWORK, e, h);
1131
+ v.event = x || null, r(v), h = null;
1062
1132
  }, h.ontimeout = function() {
1063
1133
  let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1064
- const R = s.transitional || mn;
1065
- s.timeoutErrorMessage && (x = s.timeoutErrorMessage), r(new S(
1066
- x,
1067
- R.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
1068
- e,
1069
- h
1070
- )), h = null;
1071
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && c.forEach(o.toJSON(), function(x, R) {
1072
- h.setRequestHeader(R, x);
1073
- }), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), f && ([E, u] = je(f, !0), h.addEventListener("progress", E)), d && h.upload && ([p, y] = je(d), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (A) => {
1074
- h && (r(!A || A.type ? new Se(null, e, h) : A), h.abort(), h = null);
1134
+ const g = s.transitional || Rt;
1135
+ s.timeoutErrorMessage && (x = s.timeoutErrorMessage), r(
1136
+ new R(
1137
+ x,
1138
+ g.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED,
1139
+ e,
1140
+ h
1141
+ )
1142
+ ), h = null;
1143
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && c.forEach(o.toJSON(), function(x, g) {
1144
+ h.setRequestHeader(g, x);
1145
+ }), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), f && ([E, u] = je(f, !0), h.addEventListener("progress", E)), d && h.upload && ([p, y] = je(d), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (_) => {
1146
+ h && (r(!_ || _.type ? new Ce(null, e, h) : _), h.abort(), h = null);
1075
1147
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1076
- const w = Yr(s.url);
1077
- if (w && I.protocols.indexOf(w) === -1) {
1078
- r(new S("Unsupported protocol " + w + ":", S.ERR_BAD_REQUEST, e));
1148
+ const w = ts(s.url);
1149
+ if (w && B.protocols.indexOf(w) === -1) {
1150
+ r(
1151
+ new R(
1152
+ "Unsupported protocol " + w + ":",
1153
+ R.ERR_BAD_REQUEST,
1154
+ e
1155
+ )
1156
+ );
1079
1157
  return;
1080
1158
  }
1081
1159
  h.send(i || null);
1082
1160
  });
1083
- }, is = (e, t) => {
1161
+ }, ls = (e, t) => {
1084
1162
  const { length: n } = e = e ? e.filter(Boolean) : [];
1085
1163
  if (t || n) {
1086
1164
  let r = new AbortController(), s;
@@ -1088,11 +1166,13 @@ const gn = (e) => {
1088
1166
  if (!s) {
1089
1167
  s = !0, a();
1090
1168
  const l = f instanceof Error ? f : this.reason;
1091
- r.abort(l instanceof S ? l : new Se(l instanceof Error ? l.message : l));
1169
+ r.abort(
1170
+ l instanceof R ? l : new Ce(l instanceof Error ? l.message : l)
1171
+ );
1092
1172
  }
1093
1173
  };
1094
1174
  let o = t && setTimeout(() => {
1095
- o = null, i(new S(`timeout ${t} of ms exceeded`, S.ETIMEDOUT));
1175
+ o = null, i(new R(`timeout of ${t}ms exceeded`, R.ETIMEDOUT));
1096
1176
  }, t);
1097
1177
  const a = () => {
1098
1178
  e && (o && clearTimeout(o), o = null, e.forEach((f) => {
@@ -1103,7 +1183,7 @@ const gn = (e) => {
1103
1183
  const { signal: d } = r;
1104
1184
  return d.unsubscribe = () => c.asap(a), d;
1105
1185
  }
1106
- }, as = function* (e, t) {
1186
+ }, fs = function* (e, t) {
1107
1187
  let n = e.byteLength;
1108
1188
  if (n < t) {
1109
1189
  yield e;
@@ -1112,10 +1192,10 @@ const gn = (e) => {
1112
1192
  let r = 0, s;
1113
1193
  for (; r < n; )
1114
1194
  s = r + t, yield e.slice(r, s), r = s;
1115
- }, cs = async function* (e, t) {
1116
- for await (const n of us(e))
1117
- yield* as(n, t);
1118
- }, us = async function* (e) {
1195
+ }, ds = async function* (e, t) {
1196
+ for await (const n of ps(e))
1197
+ yield* fs(n, t);
1198
+ }, ps = async function* (e) {
1119
1199
  if (e[Symbol.asyncIterator]) {
1120
1200
  yield* e;
1121
1201
  return;
@@ -1131,73 +1211,81 @@ const gn = (e) => {
1131
1211
  } finally {
1132
1212
  await t.cancel();
1133
1213
  }
1134
- }, It = (e, t, n, r) => {
1135
- const s = cs(e, t);
1214
+ }, qt = (e, t, n, r) => {
1215
+ const s = ds(e, t);
1136
1216
  let i = 0, o, a = (d) => {
1137
1217
  o || (o = !0, r && r(d));
1138
1218
  };
1139
- return new ReadableStream({
1140
- async pull(d) {
1141
- try {
1142
- const { done: f, value: l } = await s.next();
1143
- if (f) {
1144
- a(), d.close();
1145
- return;
1146
- }
1147
- let p = l.byteLength;
1148
- if (n) {
1149
- let E = i += p;
1150
- n(E);
1219
+ return new ReadableStream(
1220
+ {
1221
+ async pull(d) {
1222
+ try {
1223
+ const { done: f, value: l } = await s.next();
1224
+ if (f) {
1225
+ a(), d.close();
1226
+ return;
1227
+ }
1228
+ let p = l.byteLength;
1229
+ if (n) {
1230
+ let E = i += p;
1231
+ n(E);
1232
+ }
1233
+ d.enqueue(new Uint8Array(l));
1234
+ } catch (f) {
1235
+ throw a(f), f;
1151
1236
  }
1152
- d.enqueue(new Uint8Array(l));
1153
- } catch (f) {
1154
- throw a(f), f;
1237
+ },
1238
+ cancel(d) {
1239
+ return a(d), s.return();
1155
1240
  }
1156
1241
  },
1157
- cancel(d) {
1158
- return a(d), s.return();
1242
+ {
1243
+ highWaterMark: 2
1159
1244
  }
1160
- }, {
1161
- highWaterMark: 2
1162
- });
1163
- }, Bt = 64 * 1024, { isFunction: Ne } = c, ls = (({ Request: e, Response: t }) => ({
1245
+ );
1246
+ }, kt = 64 * 1024, { isFunction: Le } = c, hs = (({ Request: e, Response: t }) => ({
1164
1247
  Request: e,
1165
1248
  Response: t
1166
- }))(c.global), {
1167
- ReadableStream: jt,
1168
- TextEncoder: kt
1169
- } = c.global, qt = (e, ...t) => {
1249
+ }))(c.global), { ReadableStream: Mt, TextEncoder: Ht } = c.global, Vt = (e, ...t) => {
1170
1250
  try {
1171
1251
  return !!e(...t);
1172
1252
  } catch {
1173
1253
  return !1;
1174
1254
  }
1175
- }, fs = (e) => {
1176
- e = c.merge.call({
1177
- skipUndefined: !0
1178
- }, ls, e);
1179
- const { fetch: t, Request: n, Response: r } = e, s = t ? Ne(t) : typeof fetch == "function", i = Ne(n), o = Ne(r);
1255
+ }, ms = (e) => {
1256
+ e = c.merge.call(
1257
+ {
1258
+ skipUndefined: !0
1259
+ },
1260
+ hs,
1261
+ e
1262
+ );
1263
+ const { fetch: t, Request: n, Response: r } = e, s = t ? Le(t) : typeof fetch == "function", i = Le(n), o = Le(r);
1180
1264
  if (!s)
1181
1265
  return !1;
1182
- const a = s && Ne(jt), d = s && (typeof kt == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new kt()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && a && qt(() => {
1266
+ const a = s && Le(Mt), d = s && (typeof Ht == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new Ht()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && a && Vt(() => {
1183
1267
  let u = !1;
1184
- const m = new n(I.origin, {
1185
- body: new jt(),
1268
+ const m = new Mt(), h = new n(B.origin, {
1269
+ body: m,
1186
1270
  method: "POST",
1187
1271
  get duplex() {
1188
1272
  return u = !0, "half";
1189
1273
  }
1190
1274
  }).headers.has("Content-Type");
1191
- return u && !m;
1192
- }), l = o && a && qt(() => c.isReadableStream(new r("").body)), p = {
1275
+ return m.cancel(), u && !h;
1276
+ }), l = o && a && Vt(() => c.isReadableStream(new r("").body)), p = {
1193
1277
  stream: l && ((u) => u.body)
1194
1278
  };
1195
1279
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1196
1280
  !p[u] && (p[u] = (m, h) => {
1197
- let g = m && m[u];
1198
- if (g)
1199
- return g.call(m);
1200
- throw new S(`Response type '${u}' is not supported`, S.ERR_NOT_SUPPORT, h);
1281
+ let S = m && m[u];
1282
+ if (S)
1283
+ return S.call(m);
1284
+ throw new R(
1285
+ `Response type '${u}' is not supported`,
1286
+ R.ERR_NOT_SUPPORT,
1287
+ h
1288
+ );
1201
1289
  });
1202
1290
  });
1203
1291
  const E = async (u) => {
@@ -1206,7 +1294,7 @@ const gn = (e) => {
1206
1294
  if (c.isBlob(u))
1207
1295
  return u.size;
1208
1296
  if (c.isSpecCompliantForm(u))
1209
- return (await new n(I.origin, {
1297
+ return (await new n(B.origin, {
1210
1298
  method: "POST",
1211
1299
  body: u
1212
1300
  }).arrayBuffer()).byteLength;
@@ -1222,109 +1310,117 @@ const gn = (e) => {
1222
1310
  let {
1223
1311
  url: m,
1224
1312
  method: h,
1225
- data: g,
1313
+ data: S,
1226
1314
  signal: w,
1227
- cancelToken: A,
1315
+ cancelToken: _,
1228
1316
  timeout: x,
1229
- onDownloadProgress: R,
1230
- onUploadProgress: P,
1231
- responseType: _,
1232
- headers: X,
1317
+ onDownloadProgress: g,
1318
+ onUploadProgress: v,
1319
+ responseType: A,
1320
+ headers: Y,
1233
1321
  withCredentials: O = "same-origin",
1234
1322
  fetchOptions: ee
1235
- } = gn(u), H = t || fetch;
1236
- _ = _ ? (_ + "").toLowerCase() : "text";
1237
- let W = is([w, A && A.toAbortSignal()], x), M = null;
1238
- const F = W && W.unsubscribe && (() => {
1239
- W.unsubscribe();
1323
+ } = bn(u), M = t || fetch;
1324
+ A = A ? (A + "").toLowerCase() : "text";
1325
+ let z = ls(
1326
+ [w, _ && _.toAbortSignal()],
1327
+ x
1328
+ ), H = null;
1329
+ const P = z && z.unsubscribe && (() => {
1330
+ z.unsubscribe();
1240
1331
  });
1241
1332
  let te;
1242
1333
  try {
1243
- if (P && f && h !== "get" && h !== "head" && (te = await y(X, g)) !== 0) {
1244
- let Y = new n(m, {
1334
+ if (v && f && h !== "get" && h !== "head" && (te = await y(Y, S)) !== 0) {
1335
+ let Q = new n(m, {
1245
1336
  method: "POST",
1246
- body: g,
1337
+ body: S,
1247
1338
  duplex: "half"
1248
1339
  }), V;
1249
- if (c.isFormData(g) && (V = Y.headers.get("content-type")) && X.setContentType(V), Y.body) {
1250
- const [J, re] = Pt(
1340
+ if (c.isFormData(S) && (V = Q.headers.get("content-type")) && Y.setContentType(V), Q.body) {
1341
+ const [K, re] = It(
1251
1342
  te,
1252
- je(vt(P))
1343
+ je(Bt(v))
1253
1344
  );
1254
- g = It(Y.body, Bt, J, re);
1345
+ S = qt(Q.body, kt, K, re);
1255
1346
  }
1256
1347
  }
1257
1348
  c.isString(O) || (O = O ? "include" : "omit");
1258
- const B = i && "credentials" in n.prototype, ge = {
1349
+ const F = i && "credentials" in n.prototype, Re = {
1259
1350
  ...ee,
1260
- signal: W,
1351
+ signal: z,
1261
1352
  method: h.toUpperCase(),
1262
- headers: X.normalize().toJSON(),
1263
- body: g,
1353
+ headers: Y.normalize().toJSON(),
1354
+ body: S,
1264
1355
  duplex: "half",
1265
- credentials: B ? O : void 0
1356
+ credentials: F ? O : void 0
1266
1357
  };
1267
- M = i && new n(m, ge);
1268
- let z = await (i ? H(M, ee) : H(m, ge));
1269
- const ne = l && (_ === "stream" || _ === "response");
1270
- if (l && (R || ne && F)) {
1271
- const Y = {};
1358
+ H = i && new n(m, Re);
1359
+ let J = await (i ? M(H, ee) : M(m, Re));
1360
+ const ne = l && (A === "stream" || A === "response");
1361
+ if (l && (g || ne && P)) {
1362
+ const Q = {};
1272
1363
  ["status", "statusText", "headers"].forEach((he) => {
1273
- Y[he] = z[he];
1364
+ Q[he] = J[he];
1274
1365
  });
1275
- const V = c.toFiniteNumber(z.headers.get("content-length")), [J, re] = R && Pt(
1366
+ const V = c.toFiniteNumber(J.headers.get("content-length")), [K, re] = g && It(
1276
1367
  V,
1277
- je(vt(R), !0)
1368
+ je(Bt(g), !0)
1278
1369
  ) || [];
1279
- z = new r(
1280
- It(z.body, Bt, J, () => {
1281
- re && re(), F && F();
1370
+ J = new r(
1371
+ qt(J.body, kt, K, () => {
1372
+ re && re(), P && P();
1282
1373
  }),
1283
- Y
1374
+ Q
1284
1375
  );
1285
1376
  }
1286
- _ = _ || "text";
1287
- let De = await p[c.findKey(p, _) || "text"](z, u);
1288
- return !ne && F && F(), await new Promise((Y, V) => {
1289
- wn(Y, V, {
1377
+ A = A || "text";
1378
+ let De = await p[c.findKey(p, A) || "text"](
1379
+ J,
1380
+ u
1381
+ );
1382
+ return !ne && P && P(), await new Promise((Q, V) => {
1383
+ Rn(Q, V, {
1290
1384
  data: De,
1291
- headers: q.from(z.headers),
1292
- status: z.status,
1293
- statusText: z.statusText,
1385
+ headers: k.from(J.headers),
1386
+ status: J.status,
1387
+ statusText: J.statusText,
1294
1388
  config: u,
1295
- request: M
1389
+ request: H
1296
1390
  });
1297
1391
  });
1298
- } catch (B) {
1299
- throw F && F(), B && B.name === "TypeError" && /Load failed|fetch/i.test(B.message) ? Object.assign(
1300
- new S("Network Error", S.ERR_NETWORK, u, M),
1392
+ } catch (F) {
1393
+ throw P && P(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
1394
+ new R(
1395
+ "Network Error",
1396
+ R.ERR_NETWORK,
1397
+ u,
1398
+ H,
1399
+ F && F.response
1400
+ ),
1301
1401
  {
1302
- cause: B.cause || B
1402
+ cause: F.cause || F
1303
1403
  }
1304
- ) : S.from(B, B && B.code, u, M);
1404
+ ) : R.from(F, F && F.code, u, H, F && F.response);
1305
1405
  }
1306
1406
  };
1307
- }, ds = /* @__PURE__ */ new Map(), bn = (e) => {
1407
+ }, Es = /* @__PURE__ */ new Map(), gn = (e) => {
1308
1408
  let t = e && e.env || {};
1309
- const { fetch: n, Request: r, Response: s } = t, i = [
1310
- r,
1311
- s,
1312
- n
1313
- ];
1314
- let o = i.length, a = o, d, f, l = ds;
1409
+ const { fetch: n, Request: r, Response: s } = t, i = [r, s, n];
1410
+ let o = i.length, a = o, d, f, l = Es;
1315
1411
  for (; a--; )
1316
- d = i[a], f = l.get(d), f === void 0 && l.set(d, f = a ? /* @__PURE__ */ new Map() : fs(t)), l = f;
1412
+ d = i[a], f = l.get(d), f === void 0 && l.set(d, f = a ? /* @__PURE__ */ new Map() : ms(t)), l = f;
1317
1413
  return f;
1318
1414
  };
1319
- bn();
1320
- const St = {
1321
- http: Dr,
1322
- xhr: os,
1415
+ gn();
1416
+ const bt = {
1417
+ http: Fr,
1418
+ xhr: us,
1323
1419
  fetch: {
1324
- get: bn
1420
+ get: gn
1325
1421
  }
1326
1422
  };
1327
- c.forEach(St, (e, t) => {
1423
+ c.forEach(bt, (e, t) => {
1328
1424
  if (e) {
1329
1425
  try {
1330
1426
  Object.defineProperty(e, "name", { value: t });
@@ -1333,8 +1429,8 @@ c.forEach(St, (e, t) => {
1333
1429
  Object.defineProperty(e, "adapterName", { value: t });
1334
1430
  }
1335
1431
  });
1336
- const Ht = (e) => `- ${e}`, ps = (e) => c.isFunction(e) || e === null || e === !1;
1337
- function hs(e, t) {
1432
+ const $t = (e) => `- ${e}`, ys = (e) => c.isFunction(e) || e === null || e === !1;
1433
+ function ws(e, t) {
1338
1434
  e = c.isArray(e) ? e : [e];
1339
1435
  const { length: n } = e;
1340
1436
  let r, s;
@@ -1342,8 +1438,8 @@ function hs(e, t) {
1342
1438
  for (let o = 0; o < n; o++) {
1343
1439
  r = e[o];
1344
1440
  let a;
1345
- if (s = r, !ps(r) && (s = St[(a = String(r)).toLowerCase()], s === void 0))
1346
- throw new S(`Unknown adapter '${a}'`);
1441
+ if (s = r, !ys(r) && (s = bt[(a = String(r)).toLowerCase()], s === void 0))
1442
+ throw new R(`Unknown adapter '${a}'`);
1347
1443
  if (s && (c.isFunction(s) || (s = s.get(t))))
1348
1444
  break;
1349
1445
  i[a || "#" + o] = s;
@@ -1353,67 +1449,63 @@ function hs(e, t) {
1353
1449
  ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1354
1450
  );
1355
1451
  let a = n ? o.length > 1 ? `since :
1356
- ` + o.map(Ht).join(`
1357
- `) : " " + Ht(o[0]) : "as no adapter specified";
1358
- throw new S(
1452
+ ` + o.map($t).join(`
1453
+ `) : " " + $t(o[0]) : "as no adapter specified";
1454
+ throw new R(
1359
1455
  "There is no suitable adapter to dispatch the request " + a,
1360
1456
  "ERR_NOT_SUPPORT"
1361
1457
  );
1362
1458
  }
1363
1459
  return s;
1364
1460
  }
1365
- const Rn = {
1461
+ const On = {
1366
1462
  /**
1367
1463
  * Resolve an adapter from a list of adapter names or functions.
1368
1464
  * @type {Function}
1369
1465
  */
1370
- getAdapter: hs,
1466
+ getAdapter: ws,
1371
1467
  /**
1372
1468
  * Exposes all known adapters
1373
1469
  * @type {Object<string, Function|Object>}
1374
1470
  */
1375
- adapters: St
1471
+ adapters: bt
1376
1472
  };
1377
- function Ge(e) {
1473
+ function Xe(e) {
1378
1474
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1379
- throw new Se(null, e);
1475
+ throw new Ce(null, e);
1380
1476
  }
1381
- function Mt(e) {
1382
- return Ge(e), e.headers = q.from(e.headers), e.data = Ke.call(
1383
- e,
1384
- e.transformRequest
1385
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rn.getAdapter(e.adapter || Ce.adapter, e)(e).then(function(r) {
1386
- return Ge(e), r.data = Ke.call(
1387
- e,
1388
- e.transformResponse,
1389
- r
1390
- ), r.headers = q.from(r.headers), r;
1391
- }, function(r) {
1392
- return yn(r) || (Ge(e), r && r.response && (r.response.data = Ke.call(
1393
- e,
1394
- e.transformResponse,
1395
- r.response
1396
- ), r.response.headers = q.from(r.response.headers))), Promise.reject(r);
1397
- });
1477
+ function Wt(e) {
1478
+ return Xe(e), e.headers = k.from(e.headers), e.data = Ge.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), On.getAdapter(e.adapter || Ae.adapter, e)(e).then(
1479
+ function(r) {
1480
+ return Xe(e), r.data = Ge.call(e, e.transformResponse, r), r.headers = k.from(r.headers), r;
1481
+ },
1482
+ function(r) {
1483
+ return wn(r) || (Xe(e), r && r.response && (r.response.data = Ge.call(
1484
+ e,
1485
+ e.transformResponse,
1486
+ r.response
1487
+ ), r.response.headers = k.from(r.response.headers))), Promise.reject(r);
1488
+ }
1489
+ );
1398
1490
  }
1399
- const On = "1.13.2", Ve = {};
1491
+ const Tn = "1.14.0", Ve = {};
1400
1492
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1401
1493
  Ve[e] = function(r) {
1402
1494
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1403
1495
  };
1404
1496
  });
1405
- const Vt = {};
1497
+ const zt = {};
1406
1498
  Ve.transitional = function(t, n, r) {
1407
1499
  function s(i, o) {
1408
- return "[Axios v" + On + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1500
+ return "[Axios v" + Tn + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1409
1501
  }
1410
1502
  return (i, o, a) => {
1411
1503
  if (t === !1)
1412
- throw new S(
1504
+ throw new R(
1413
1505
  s(o, " has been removed" + (n ? " in " + n : "")),
1414
- S.ERR_DEPRECATED
1506
+ R.ERR_DEPRECATED
1415
1507
  );
1416
- return n && !Vt[o] && (Vt[o] = !0, console.warn(
1508
+ return n && !zt[o] && (zt[o] = !0, console.warn(
1417
1509
  s(
1418
1510
  o,
1419
1511
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1424,9 +1516,9 @@ Ve.transitional = function(t, n, r) {
1424
1516
  Ve.spelling = function(t) {
1425
1517
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1426
1518
  };
1427
- function ms(e, t, n) {
1519
+ function Rs(e, t, n) {
1428
1520
  if (typeof e != "object")
1429
- throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
1521
+ throw new R("options must be an object", R.ERR_BAD_OPTION_VALUE);
1430
1522
  const r = Object.keys(e);
1431
1523
  let s = r.length;
1432
1524
  for (; s-- > 0; ) {
@@ -1434,22 +1526,25 @@ function ms(e, t, n) {
1434
1526
  if (o) {
1435
1527
  const a = e[i], d = a === void 0 || o(a, i, e);
1436
1528
  if (d !== !0)
1437
- throw new S("option " + i + " must be " + d, S.ERR_BAD_OPTION_VALUE);
1529
+ throw new R(
1530
+ "option " + i + " must be " + d,
1531
+ R.ERR_BAD_OPTION_VALUE
1532
+ );
1438
1533
  continue;
1439
1534
  }
1440
1535
  if (n !== !0)
1441
- throw new S("Unknown option " + i, S.ERR_BAD_OPTION);
1536
+ throw new R("Unknown option " + i, R.ERR_BAD_OPTION);
1442
1537
  }
1443
1538
  }
1444
1539
  const Be = {
1445
- assertOptions: ms,
1540
+ assertOptions: Rs,
1446
1541
  validators: Ve
1447
- }, Q = Be.validators;
1542
+ }, W = Be.validators;
1448
1543
  let de = class {
1449
1544
  constructor(t) {
1450
1545
  this.defaults = t || {}, this.interceptors = {
1451
- request: new Nt(),
1452
- response: new Nt()
1546
+ request: new vt(),
1547
+ response: new vt()
1453
1548
  };
1454
1549
  }
1455
1550
  /**
@@ -1480,33 +1575,44 @@ let de = class {
1480
1575
  _request(t, n) {
1481
1576
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = pe(this.defaults, n);
1482
1577
  const { transitional: r, paramsSerializer: s, headers: i } = n;
1483
- r !== void 0 && Be.assertOptions(r, {
1484
- silentJSONParsing: Q.transitional(Q.boolean),
1485
- forcedJSONParsing: Q.transitional(Q.boolean),
1486
- clarifyTimeoutError: Q.transitional(Q.boolean)
1487
- }, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
1578
+ r !== void 0 && Be.assertOptions(
1579
+ r,
1580
+ {
1581
+ silentJSONParsing: W.transitional(W.boolean),
1582
+ forcedJSONParsing: W.transitional(W.boolean),
1583
+ clarifyTimeoutError: W.transitional(W.boolean),
1584
+ legacyInterceptorReqResOrdering: W.transitional(W.boolean)
1585
+ },
1586
+ !1
1587
+ ), s != null && (c.isFunction(s) ? n.paramsSerializer = {
1488
1588
  serialize: s
1489
- } : Be.assertOptions(s, {
1490
- encode: Q.function,
1491
- serialize: Q.function
1492
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Be.assertOptions(n, {
1493
- baseUrl: Q.spelling("baseURL"),
1494
- withXsrfToken: Q.spelling("withXSRFToken")
1495
- }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1496
- let o = i && c.merge(
1497
- i.common,
1498
- i[n.method]
1499
- );
1500
- i && c.forEach(
1501
- ["delete", "get", "head", "post", "put", "patch", "common"],
1502
- (u) => {
1503
- delete i[u];
1504
- }
1505
- ), n.headers = q.concat(o, i);
1589
+ } : Be.assertOptions(
1590
+ s,
1591
+ {
1592
+ encode: W.function,
1593
+ serialize: W.function
1594
+ },
1595
+ !0
1596
+ )), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Be.assertOptions(
1597
+ n,
1598
+ {
1599
+ baseUrl: W.spelling("baseURL"),
1600
+ withXsrfToken: W.spelling("withXSRFToken")
1601
+ },
1602
+ !0
1603
+ ), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1604
+ let o = i && c.merge(i.common, i[n.method]);
1605
+ i && c.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (u) => {
1606
+ delete i[u];
1607
+ }), n.headers = k.concat(o, i);
1506
1608
  const a = [];
1507
1609
  let d = !0;
1508
1610
  this.interceptors.request.forEach(function(m) {
1509
- typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, a.unshift(m.fulfilled, m.rejected));
1611
+ if (typeof m.runWhen == "function" && m.runWhen(n) === !1)
1612
+ return;
1613
+ d = d && m.synchronous;
1614
+ const h = n.transitional || Rt;
1615
+ h && h.legacyInterceptorReqResOrdering ? a.unshift(m.fulfilled, m.rejected) : a.push(m.fulfilled, m.rejected);
1510
1616
  });
1511
1617
  const f = [];
1512
1618
  this.interceptors.response.forEach(function(m) {
@@ -1514,7 +1620,7 @@ let de = class {
1514
1620
  });
1515
1621
  let l, p = 0, E;
1516
1622
  if (!d) {
1517
- const u = [Mt.bind(this), void 0];
1623
+ const u = [Wt.bind(this), void 0];
1518
1624
  for (u.unshift(...a), u.push(...f), E = u.length, l = Promise.resolve(n); p < E; )
1519
1625
  l = l.then(u[p++], u[p++]);
1520
1626
  return l;
@@ -1531,7 +1637,7 @@ let de = class {
1531
1637
  }
1532
1638
  }
1533
1639
  try {
1534
- l = Mt.call(this, y);
1640
+ l = Wt.call(this, y);
1535
1641
  } catch (u) {
1536
1642
  return Promise.reject(u);
1537
1643
  }
@@ -1542,34 +1648,38 @@ let de = class {
1542
1648
  getUri(t) {
1543
1649
  t = pe(this.defaults, t);
1544
1650
  const n = Sn(t.baseURL, t.url, t.allowAbsoluteUrls);
1545
- return hn(n, t.params, t.paramsSerializer);
1651
+ return En(n, t.params, t.paramsSerializer);
1546
1652
  }
1547
1653
  };
1548
1654
  c.forEach(["delete", "get", "head", "options"], function(t) {
1549
1655
  de.prototype[t] = function(n, r) {
1550
- return this.request(pe(r || {}, {
1551
- method: t,
1552
- url: n,
1553
- data: (r || {}).data
1554
- }));
1656
+ return this.request(
1657
+ pe(r || {}, {
1658
+ method: t,
1659
+ url: n,
1660
+ data: (r || {}).data
1661
+ })
1662
+ );
1555
1663
  };
1556
1664
  });
1557
1665
  c.forEach(["post", "put", "patch"], function(t) {
1558
1666
  function n(r) {
1559
1667
  return function(i, o, a) {
1560
- return this.request(pe(a || {}, {
1561
- method: t,
1562
- headers: r ? {
1563
- "Content-Type": "multipart/form-data"
1564
- } : {},
1565
- url: i,
1566
- data: o
1567
- }));
1668
+ return this.request(
1669
+ pe(a || {}, {
1670
+ method: t,
1671
+ headers: r ? {
1672
+ "Content-Type": "multipart/form-data"
1673
+ } : {},
1674
+ url: i,
1675
+ data: o
1676
+ })
1677
+ );
1568
1678
  };
1569
1679
  }
1570
1680
  de.prototype[t] = n(), de.prototype[t + "Form"] = n(!0);
1571
1681
  });
1572
- let Es = class Tn {
1682
+ let Ss = class _n {
1573
1683
  constructor(t) {
1574
1684
  if (typeof t != "function")
1575
1685
  throw new TypeError("executor must be a function.");
@@ -1593,7 +1703,7 @@ let Es = class Tn {
1593
1703
  r.unsubscribe(i);
1594
1704
  }, o;
1595
1705
  }, t(function(i, o, a) {
1596
- r.reason || (r.reason = new Se(i, o, a), n(r.reason));
1706
+ r.reason || (r.reason = new Ce(i, o, a), n(r.reason));
1597
1707
  });
1598
1708
  }
1599
1709
  /**
@@ -1635,22 +1745,22 @@ let Es = class Tn {
1635
1745
  static source() {
1636
1746
  let t;
1637
1747
  return {
1638
- token: new Tn(function(s) {
1748
+ token: new _n(function(s) {
1639
1749
  t = s;
1640
1750
  }),
1641
1751
  cancel: t
1642
1752
  };
1643
1753
  }
1644
1754
  };
1645
- function ys(e) {
1755
+ function bs(e) {
1646
1756
  return function(n) {
1647
1757
  return e.apply(null, n);
1648
1758
  };
1649
1759
  }
1650
- function ws(e) {
1760
+ function gs(e) {
1651
1761
  return c.isObject(e) && e.isAxiosError === !0;
1652
1762
  }
1653
- const at = {
1763
+ const ct = {
1654
1764
  Continue: 100,
1655
1765
  SwitchingProtocols: 101,
1656
1766
  Processing: 102,
@@ -1721,59 +1831,59 @@ const at = {
1721
1831
  SslHandshakeFailed: 525,
1722
1832
  InvalidSslCertificate: 526
1723
1833
  };
1724
- Object.entries(at).forEach(([e, t]) => {
1725
- at[t] = e;
1834
+ Object.entries(ct).forEach(([e, t]) => {
1835
+ ct[t] = e;
1726
1836
  });
1727
1837
  function An(e) {
1728
- const t = new de(e), n = tn(de.prototype.request, t);
1838
+ const t = new de(e), n = sn(de.prototype.request, t);
1729
1839
  return c.extend(n, de.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1730
1840
  return An(pe(e, s));
1731
1841
  }, n;
1732
1842
  }
1733
- const N = An(Ce);
1734
- N.Axios = de;
1735
- N.CanceledError = Se;
1736
- N.CancelToken = Es;
1737
- N.isCancel = yn;
1738
- N.VERSION = On;
1739
- N.toFormData = Me;
1740
- N.AxiosError = S;
1741
- N.Cancel = N.CanceledError;
1742
- N.all = function(t) {
1843
+ const L = An(Ae);
1844
+ L.Axios = de;
1845
+ L.CanceledError = Ce;
1846
+ L.CancelToken = Ss;
1847
+ L.isCancel = wn;
1848
+ L.VERSION = Tn;
1849
+ L.toFormData = He;
1850
+ L.AxiosError = R;
1851
+ L.Cancel = L.CanceledError;
1852
+ L.all = function(t) {
1743
1853
  return Promise.all(t);
1744
1854
  };
1745
- N.spread = ys;
1746
- N.isAxiosError = ws;
1747
- N.mergeConfig = pe;
1748
- N.AxiosHeaders = q;
1749
- N.formToJSON = (e) => En(c.isHTMLForm(e) ? new FormData(e) : e);
1750
- N.getAdapter = Rn.getAdapter;
1751
- N.HttpStatusCode = at;
1752
- N.default = N;
1855
+ L.spread = bs;
1856
+ L.isAxiosError = gs;
1857
+ L.mergeConfig = pe;
1858
+ L.AxiosHeaders = k;
1859
+ L.formToJSON = (e) => yn(c.isHTMLForm(e) ? new FormData(e) : e);
1860
+ L.getAdapter = On.getAdapter;
1861
+ L.HttpStatusCode = ct;
1862
+ L.default = L;
1753
1863
  const {
1754
- Axios: eo,
1755
- AxiosError: to,
1756
- CanceledError: no,
1757
- isCancel: ro,
1758
- CancelToken: so,
1759
- VERSION: oo,
1760
- all: io,
1761
- Cancel: ao,
1762
- isAxiosError: co,
1763
- spread: uo,
1764
- toFormData: lo,
1765
- AxiosHeaders: fo,
1766
- HttpStatusCode: po,
1767
- formToJSON: ho,
1768
- getAdapter: mo,
1769
- mergeConfig: Eo
1770
- } = N;
1771
- var Fe = { exports: {} }, Xe = {};
1772
- var $t;
1773
- function Ss() {
1774
- if ($t) return Xe;
1775
- $t = 1;
1776
- var e = Oe;
1864
+ Axios: oo,
1865
+ AxiosError: io,
1866
+ CanceledError: ao,
1867
+ isCancel: co,
1868
+ CancelToken: uo,
1869
+ VERSION: lo,
1870
+ all: fo,
1871
+ Cancel: po,
1872
+ isAxiosError: ho,
1873
+ spread: mo,
1874
+ toFormData: Eo,
1875
+ AxiosHeaders: yo,
1876
+ HttpStatusCode: wo,
1877
+ formToJSON: Ro,
1878
+ getAdapter: So,
1879
+ mergeConfig: bo
1880
+ } = L;
1881
+ var Pe = { exports: {} }, Ye = {};
1882
+ var Jt;
1883
+ function Os() {
1884
+ if (Jt) return Ye;
1885
+ Jt = 1;
1886
+ var e = ge;
1777
1887
  function t(p, E) {
1778
1888
  return p === E && (p !== 0 || 1 / p === 1 / E) || p !== p && E !== E;
1779
1889
  }
@@ -1808,12 +1918,12 @@ function Ss() {
1808
1918
  return E();
1809
1919
  }
1810
1920
  var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : a;
1811
- return Xe.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, Xe;
1921
+ return Ye.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, Ye;
1812
1922
  }
1813
- var Ye = {};
1814
- var Wt;
1815
- function gs() {
1816
- return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && (function() {
1923
+ var Qe = {};
1924
+ var Kt;
1925
+ function Ts() {
1926
+ return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && (function() {
1817
1927
  function e(y, u) {
1818
1928
  return y === u && (y !== 0 || 1 / y === 1 / u) || y !== y && u !== u;
1819
1929
  }
@@ -1831,16 +1941,16 @@ function gs() {
1831
1941
  h = o({
1832
1942
  inst: { value: m, getSnapshot: u }
1833
1943
  });
1834
- var g = h[0].inst, w = h[1];
1944
+ var S = h[0].inst, w = h[1];
1835
1945
  return d(
1836
1946
  function() {
1837
- g.value = m, g.getSnapshot = u, n(g) && w({ inst: g });
1947
+ S.value = m, S.getSnapshot = u, n(S) && w({ inst: S });
1838
1948
  },
1839
1949
  [y, m, u]
1840
1950
  ), a(
1841
1951
  function() {
1842
- return n(g) && w({ inst: g }), y(function() {
1843
- n(g) && w({ inst: g });
1952
+ return n(S) && w({ inst: S }), y(function() {
1953
+ n(S) && w({ inst: S });
1844
1954
  });
1845
1955
  },
1846
1956
  [y]
@@ -1860,18 +1970,18 @@ function gs() {
1860
1970
  return u();
1861
1971
  }
1862
1972
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1863
- var s = Oe, i = typeof Object.is == "function" ? Object.is : e, o = s.useState, a = s.useEffect, d = s.useLayoutEffect, f = s.useDebugValue, l = !1, p = !1, E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
1864
- Ye.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1865
- })()), Ye;
1973
+ var s = ge, i = typeof Object.is == "function" ? Object.is : e, o = s.useState, a = s.useEffect, d = s.useLayoutEffect, f = s.useDebugValue, l = !1, p = !1, E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
1974
+ Qe.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1975
+ })()), Qe;
1866
1976
  }
1867
- var zt;
1868
- function bs() {
1869
- return zt || (zt = 1, process.env.NODE_ENV === "production" ? Fe.exports = Ss() : Fe.exports = gs()), Fe.exports;
1977
+ var Gt;
1978
+ function _s() {
1979
+ return Gt || (Gt = 1, process.env.NODE_ENV === "production" ? Pe.exports = Os() : Pe.exports = Ts()), Pe.exports;
1870
1980
  }
1871
- var Jt = bs();
1872
- const _n = 0, Cn = 1, xn = 2, Kt = 3;
1873
- var Gt = Object.prototype.hasOwnProperty;
1874
- function ct(e, t) {
1981
+ var Xt = _s();
1982
+ const Cn = 0, xn = 1, Dn = 2, Yt = 3;
1983
+ var Qt = Object.prototype.hasOwnProperty;
1984
+ function ut(e, t) {
1875
1985
  var n, r;
1876
1986
  if (e === t) return !0;
1877
1987
  if (e && t && (n = e.constructor) === t.constructor) {
@@ -1879,96 +1989,96 @@ function ct(e, t) {
1879
1989
  if (n === RegExp) return e.toString() === t.toString();
1880
1990
  if (n === Array) {
1881
1991
  if ((r = e.length) === t.length)
1882
- for (; r-- && ct(e[r], t[r]); ) ;
1992
+ for (; r-- && ut(e[r], t[r]); ) ;
1883
1993
  return r === -1;
1884
1994
  }
1885
1995
  if (!n || typeof e == "object") {
1886
1996
  r = 0;
1887
1997
  for (n in e)
1888
- if (Gt.call(e, n) && ++r && !Gt.call(t, n) || !(n in t) || !ct(e[n], t[n])) return !1;
1998
+ if (Qt.call(e, n) && ++r && !Qt.call(t, n) || !(n in t) || !ut(e[n], t[n])) return !1;
1889
1999
  return Object.keys(t).length === r;
1890
2000
  }
1891
2001
  }
1892
2002
  return e !== e && t !== t;
1893
2003
  }
1894
2004
  const ie = /* @__PURE__ */ new WeakMap(), ae = () => {
1895
- }, U = (
2005
+ }, I = (
1896
2006
  /*#__NOINLINE__*/
1897
2007
  ae()
1898
- ), ut = Object, b = (e) => e === U, Z = (e) => typeof e == "function", ce = (e, t) => ({
2008
+ ), lt = Object, b = (e) => e === I, Z = (e) => typeof e == "function", ce = (e, t) => ({
1899
2009
  ...e,
1900
2010
  ...t
1901
- }), Dn = (e) => Z(e.then), Qe = {}, Pe = {}, gt = "undefined", xe = typeof window != gt, lt = typeof document != gt, Rs = xe && "Deno" in window, Os = () => xe && typeof window.requestAnimationFrame != gt, Ln = (e, t) => {
2011
+ }), Nn = (e) => Z(e.then), Ze = {}, Fe = {}, gt = "undefined", xe = typeof window != gt, ft = typeof document != gt, As = xe && "Deno" in window, Cs = () => xe && typeof window.requestAnimationFrame != gt, Ln = (e, t) => {
1902
2012
  const n = ie.get(e);
1903
2013
  return [
1904
2014
  // Getter
1905
- () => !b(t) && e.get(t) || Qe,
2015
+ () => !b(t) && e.get(t) || Ze,
1906
2016
  // Setter
1907
2017
  (r) => {
1908
2018
  if (!b(t)) {
1909
2019
  const s = e.get(t);
1910
- t in Pe || (Pe[t] = s), n[5](t, ce(s, r), s || Qe);
2020
+ t in Fe || (Fe[t] = s), n[5](t, ce(s, r), s || Ze);
1911
2021
  }
1912
2022
  },
1913
2023
  // Subscriber
1914
2024
  n[6],
1915
2025
  // Get server cache snapshot
1916
- () => !b(t) && t in Pe ? Pe[t] : !b(t) && e.get(t) || Qe
2026
+ () => !b(t) && t in Fe ? Fe[t] : !b(t) && e.get(t) || Ze
1917
2027
  ];
1918
2028
  };
1919
- let ft = !0;
1920
- const Ts = () => ft, [dt, pt] = xe && window.addEventListener ? [
2029
+ let dt = !0;
2030
+ const xs = () => dt, [pt, ht] = xe && window.addEventListener ? [
1921
2031
  window.addEventListener.bind(window),
1922
2032
  window.removeEventListener.bind(window)
1923
2033
  ] : [
1924
2034
  ae,
1925
2035
  ae
1926
- ], As = () => {
1927
- const e = lt && document.visibilityState;
2036
+ ], Ds = () => {
2037
+ const e = ft && document.visibilityState;
1928
2038
  return b(e) || e !== "hidden";
1929
- }, _s = (e) => (lt && document.addEventListener("visibilitychange", e), dt("focus", e), () => {
1930
- lt && document.removeEventListener("visibilitychange", e), pt("focus", e);
1931
- }), Cs = (e) => {
2039
+ }, Ns = (e) => (ft && document.addEventListener("visibilitychange", e), pt("focus", e), () => {
2040
+ ft && document.removeEventListener("visibilitychange", e), ht("focus", e);
2041
+ }), Ls = (e) => {
1932
2042
  const t = () => {
1933
- ft = !0, e();
2043
+ dt = !0, e();
1934
2044
  }, n = () => {
1935
- ft = !1;
2045
+ dt = !1;
1936
2046
  };
1937
- return dt("online", t), dt("offline", n), () => {
1938
- pt("online", t), pt("offline", n);
2047
+ return pt("online", t), pt("offline", n), () => {
2048
+ ht("online", t), ht("offline", n);
1939
2049
  };
1940
- }, xs = {
1941
- isOnline: Ts,
1942
- isVisible: As
1943
- }, Ds = {
1944
- initFocus: _s,
1945
- initReconnect: Cs
1946
- }, Xt = !Oe.useId, Ee = !xe || Rs, Ls = (e) => Os() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ze = Ee ? qn : Hn, et = typeof navigator < "u" && navigator.connection, Yt = !Ee && et && ([
2050
+ }, Ps = {
2051
+ isOnline: xs,
2052
+ isVisible: Ds
2053
+ }, Fs = {
2054
+ initFocus: Ns,
2055
+ initReconnect: Ls
2056
+ }, Zt = !ge.useId, Ee = !xe || As, vs = (e) => Cs() ? window.requestAnimationFrame(e) : setTimeout(e, 1), et = Ee ? Mn : Hn, tt = typeof navigator < "u" && navigator.connection, en = !Ee && tt && ([
1947
2057
  "slow-2g",
1948
2058
  "2g"
1949
- ].includes(et.effectiveType) || et.saveData), ve = /* @__PURE__ */ new WeakMap(), Ns = (e) => ut.prototype.toString.call(e), tt = (e, t) => e === `[object ${t}]`;
1950
- let Fs = 0;
1951
- const ht = (e) => {
1952
- const t = typeof e, n = Ns(e), r = tt(n, "Date"), s = tt(n, "RegExp"), i = tt(n, "Object");
2059
+ ].includes(tt.effectiveType) || tt.saveData), ve = /* @__PURE__ */ new WeakMap(), Us = (e) => lt.prototype.toString.call(e), nt = (e, t) => e === `[object ${t}]`;
2060
+ let Is = 0;
2061
+ const mt = (e) => {
2062
+ const t = typeof e, n = Us(e), r = nt(n, "Date"), s = nt(n, "RegExp"), i = nt(n, "Object");
1953
2063
  let o, a;
1954
- if (ut(e) === e && !r && !s) {
2064
+ if (lt(e) === e && !r && !s) {
1955
2065
  if (o = ve.get(e), o) return o;
1956
- if (o = ++Fs + "~", ve.set(e, o), Array.isArray(e)) {
2066
+ if (o = ++Is + "~", ve.set(e, o), Array.isArray(e)) {
1957
2067
  for (o = "@", a = 0; a < e.length; a++)
1958
- o += ht(e[a]) + ",";
2068
+ o += mt(e[a]) + ",";
1959
2069
  ve.set(e, o);
1960
2070
  }
1961
2071
  if (i) {
1962
2072
  o = "#";
1963
- const d = ut.keys(e).sort();
2073
+ const d = lt.keys(e).sort();
1964
2074
  for (; !b(a = d.pop()); )
1965
- b(e[a]) || (o += a + ":" + ht(e[a]) + ",");
2075
+ b(e[a]) || (o += a + ":" + mt(e[a]) + ",");
1966
2076
  ve.set(e, o);
1967
2077
  }
1968
2078
  } else
1969
2079
  o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
1970
2080
  return o;
1971
- }, bt = (e) => {
2081
+ }, Ot = (e) => {
1972
2082
  if (Z(e))
1973
2083
  try {
1974
2084
  e = e();
@@ -1976,14 +2086,14 @@ const ht = (e) => {
1976
2086
  e = "";
1977
2087
  }
1978
2088
  const t = e;
1979
- return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? ht(e) : "", [
2089
+ return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? mt(e) : "", [
1980
2090
  e,
1981
2091
  t
1982
2092
  ];
1983
2093
  };
1984
- let Ps = 0;
1985
- const mt = () => ++Ps;
1986
- async function Nn(...e) {
2094
+ let Bs = 0;
2095
+ const Et = () => ++Bs;
2096
+ async function Pn(...e) {
1987
2097
  const [t, n, r, s] = e, i = ce({
1988
2098
  populateCache: !0,
1989
2099
  throwOnError: !0
@@ -2003,71 +2113,71 @@ async function Nn(...e) {
2003
2113
  }
2004
2114
  return p(n);
2005
2115
  async function p(E) {
2006
- const [y] = bt(E);
2116
+ const [y] = Ot(E);
2007
2117
  if (!y) return;
2008
- const [u, m] = Ln(t, y), [h, g, w, A] = ie.get(t), x = () => {
2009
- const F = h[y];
2010
- return (Z(i.revalidate) ? i.revalidate(u().data, E) : i.revalidate !== !1) && (delete w[y], delete A[y], F && F[0]) ? F[0](xn).then(() => u().data) : u().data;
2118
+ const [u, m] = Ln(t, y), [h, S, w, _] = ie.get(t), x = () => {
2119
+ const P = h[y];
2120
+ return (Z(i.revalidate) ? i.revalidate(u().data, E) : i.revalidate !== !1) && (delete w[y], delete _[y], P && P[0]) ? P[0](Dn).then(() => u().data) : u().data;
2011
2121
  };
2012
2122
  if (e.length < 3)
2013
2123
  return x();
2014
- let R = r, P, _ = !1;
2015
- const X = mt();
2016
- g[y] = [
2017
- X,
2124
+ let g = r, v, A = !1;
2125
+ const Y = Et();
2126
+ S[y] = [
2127
+ Y,
2018
2128
  0
2019
2129
  ];
2020
- const O = !b(d), ee = u(), H = ee.data, W = ee._c, M = b(W) ? H : W;
2021
- if (O && (d = Z(d) ? d(M, H) : d, m({
2130
+ const O = !b(d), ee = u(), M = ee.data, z = ee._c, H = b(z) ? M : z;
2131
+ if (O && (d = Z(d) ? d(H, M) : d, m({
2022
2132
  data: d,
2023
- _c: M
2024
- })), Z(R))
2133
+ _c: H
2134
+ })), Z(g))
2025
2135
  try {
2026
- R = R(M);
2027
- } catch (F) {
2028
- P = F, _ = !0;
2136
+ g = g(H);
2137
+ } catch (P) {
2138
+ v = P, A = !0;
2029
2139
  }
2030
- if (R && Dn(R))
2031
- if (R = await R.catch((F) => {
2032
- P = F, _ = !0;
2033
- }), X !== g[y][0]) {
2034
- if (_) throw P;
2035
- return R;
2036
- } else _ && O && f(P) && (o = !0, m({
2037
- data: M,
2038
- _c: U
2140
+ if (g && Nn(g))
2141
+ if (g = await g.catch((P) => {
2142
+ v = P, A = !0;
2143
+ }), Y !== S[y][0]) {
2144
+ if (A) throw v;
2145
+ return g;
2146
+ } else A && O && f(v) && (o = !0, m({
2147
+ data: H,
2148
+ _c: I
2039
2149
  }));
2040
- if (o && !_)
2150
+ if (o && !A)
2041
2151
  if (Z(o)) {
2042
- const F = o(R, M);
2152
+ const P = o(g, H);
2043
2153
  m({
2044
- data: F,
2045
- error: U,
2046
- _c: U
2154
+ data: P,
2155
+ error: I,
2156
+ _c: I
2047
2157
  });
2048
2158
  } else
2049
2159
  m({
2050
- data: R,
2051
- error: U,
2052
- _c: U
2160
+ data: g,
2161
+ error: I,
2162
+ _c: I
2053
2163
  });
2054
- if (g[y][1] = mt(), Promise.resolve(x()).then(() => {
2164
+ if (S[y][1] = Et(), Promise.resolve(x()).then(() => {
2055
2165
  m({
2056
- _c: U
2166
+ _c: I
2057
2167
  });
2058
- }), _) {
2059
- if (l) throw P;
2168
+ }), A) {
2169
+ if (l) throw v;
2060
2170
  return;
2061
2171
  }
2062
- return R;
2172
+ return g;
2063
2173
  }
2064
2174
  }
2065
- const Qt = (e, t) => {
2175
+ const tn = (e, t) => {
2066
2176
  for (const n in e)
2067
2177
  e[n][0] && e[n][0](t);
2068
- }, vs = (e, t) => {
2178
+ }, js = (e, t) => {
2069
2179
  if (!ie.has(e)) {
2070
- const n = ce(Ds, t), r = /* @__PURE__ */ Object.create(null), s = Nn.bind(U, e);
2180
+ const n = ce(Fs, t), r = /* @__PURE__ */ Object.create(null), s = Pn.bind(I, e);
2071
2181
  let i = ae;
2072
2182
  const o = /* @__PURE__ */ Object.create(null), a = (l, p) => {
2073
2183
  const E = o[l] || [];
@@ -2088,7 +2198,7 @@ const Qt = (e, t) => {
2088
2198
  d,
2089
2199
  a
2090
2200
  ]), !Ee)) {
2091
- const l = n.initFocus(setTimeout.bind(U, Qt.bind(U, r, _n))), p = n.initReconnect(setTimeout.bind(U, Qt.bind(U, r, Cn)));
2201
+ const l = n.initFocus(setTimeout.bind(I, tn.bind(I, r, Cn))), p = n.initReconnect(setTimeout.bind(I, tn.bind(I, r, xn)));
2092
2202
  i = () => {
2093
2203
  l && l(), p && p(), ie.delete(e);
2094
2204
  };
@@ -2105,16 +2215,16 @@ const Qt = (e, t) => {
2105
2215
  e,
2106
2216
  ie.get(e)[4]
2107
2217
  ];
2108
- }, Us = (e, t, n, r, s) => {
2218
+ }, qs = (e, t, n, r, s) => {
2109
2219
  const i = n.errorRetryCount, o = s.retryCount, a = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * n.errorRetryInterval;
2110
2220
  !b(i) && o > i || setTimeout(r, a, s);
2111
- }, Is = ct, [Fn, Bs] = vs(/* @__PURE__ */ new Map()), js = ce(
2221
+ }, ks = ut, [Fn, Ms] = js(/* @__PURE__ */ new Map()), Hs = ce(
2112
2222
  {
2113
2223
  // events
2114
2224
  onLoadingSlow: ae,
2115
2225
  onSuccess: ae,
2116
2226
  onError: ae,
2117
- onErrorRetry: Us,
2227
+ onErrorRetry: qs,
2118
2228
  onDiscarded: ae,
2119
2229
  // switches
2120
2230
  revalidateOnFocus: !0,
@@ -2122,29 +2232,29 @@ const Qt = (e, t) => {
2122
2232
  revalidateIfStale: !0,
2123
2233
  shouldRetryOnError: !0,
2124
2234
  // timeouts
2125
- errorRetryInterval: Yt ? 1e4 : 5e3,
2235
+ errorRetryInterval: en ? 1e4 : 5e3,
2126
2236
  focusThrottleInterval: 5 * 1e3,
2127
2237
  dedupingInterval: 2 * 1e3,
2128
- loadingTimeout: Yt ? 5e3 : 3e3,
2238
+ loadingTimeout: en ? 5e3 : 3e3,
2129
2239
  // providers
2130
- compare: Is,
2240
+ compare: ks,
2131
2241
  isPaused: () => !1,
2132
2242
  cache: Fn,
2133
- mutate: Bs,
2243
+ mutate: Ms,
2134
2244
  fallback: {}
2135
2245
  },
2136
2246
  // use web preset by default
2137
- xs
2138
- ), ks = (e, t) => {
2247
+ Ps
2248
+ ), Vs = (e, t) => {
2139
2249
  const n = ce(e, t);
2140
2250
  if (t) {
2141
2251
  const { use: r, fallback: s } = e, { use: i, fallback: o } = t;
2142
2252
  r && i && (n.use = r.concat(i)), s && o && (n.fallback = ce(s, o));
2143
2253
  }
2144
2254
  return n;
2145
- }, qs = kn({}), Hs = "$inf$", Pn = xe && window.__SWR_DEVTOOLS_USE__, Ms = Pn ? window.__SWR_DEVTOOLS_USE__ : [], Vs = () => {
2146
- Pn && (window.__SWR_DEVTOOLS_REACT__ = Oe);
2147
- }, vn = (e) => Z(e[1]) ? [
2255
+ }, $s = kn({}), Ws = "$inf$", vn = xe && window.__SWR_DEVTOOLS_USE__, zs = vn ? window.__SWR_DEVTOOLS_USE__ : [], Js = () => {
2256
+ vn && (window.__SWR_DEVTOOLS_REACT__ = ge);
2257
+ }, Un = (e) => Z(e[1]) ? [
2148
2258
  e[0],
2149
2259
  e[1],
2150
2260
  e[2] || {}
@@ -2152,39 +2262,39 @@ const Qt = (e, t) => {
2152
2262
  e[0],
2153
2263
  null,
2154
2264
  (e[1] === null ? e[2] : e[1]) || {}
2155
- ], $s = () => {
2156
- const e = Mn(qs);
2157
- return en(() => ce(js, e), [
2265
+ ], Ks = () => {
2266
+ const e = Vn($s);
2267
+ return rn(() => ce(Hs, e), [
2158
2268
  e
2159
2269
  ]);
2160
- }, Ws = (e) => (t, n, r) => e(t, n && ((...i) => {
2161
- const [o] = bt(t), [, , , a] = ie.get(Fn);
2162
- if (o.startsWith(Hs))
2270
+ }, Gs = (e) => (t, n, r) => e(t, n && ((...i) => {
2271
+ const [o] = Ot(t), [, , , a] = ie.get(Fn);
2272
+ if (o.startsWith(Ws))
2163
2273
  return n(...i);
2164
2274
  const d = a[o];
2165
2275
  return b(d) ? n(...i) : (delete a[o], d);
2166
- }), r), zs = Ms.concat(Ws), Js = (e) => function(...n) {
2167
- const r = $s(), [s, i, o] = vn(n), a = ks(r, o);
2276
+ }), r), Xs = zs.concat(Gs), Ys = (e) => function(...n) {
2277
+ const r = Ks(), [s, i, o] = Un(n), a = Vs(r, o);
2168
2278
  let d = e;
2169
- const { use: f } = a, l = (f || []).concat(zs);
2279
+ const { use: f } = a, l = (f || []).concat(Xs);
2170
2280
  for (let p = l.length; p--; )
2171
2281
  d = l[p](d);
2172
2282
  return d(s, i || a.fetcher || null, a);
2173
- }, Ks = (e, t, n) => {
2283
+ }, Qs = (e, t, n) => {
2174
2284
  const r = t[e] || (t[e] = []);
2175
2285
  return r.push(n), () => {
2176
2286
  const s = r.indexOf(n);
2177
2287
  s >= 0 && (r[s] = r[r.length - 1], r.pop());
2178
2288
  };
2179
- }, yo = (e, t) => (...n) => {
2180
- const [r, s, i] = vn(n), o = (i.use || []).concat(t);
2289
+ }, go = (e, t) => (...n) => {
2290
+ const [r, s, i] = Un(n), o = (i.use || []).concat(t);
2181
2291
  return e(r, s, {
2182
2292
  ...i,
2183
2293
  use: o
2184
2294
  });
2185
2295
  };
2186
- Vs();
2187
- const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
2296
+ Js();
2297
+ const rt = ge.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
2188
2298
  // and emitting an error.
2189
2299
  // We assume that this is only for the `use(thenable)` case, not `use(context)`.
2190
2300
  // https://github.com/facebook/react/blob/aed00dacfb79d17c53218404c52b1c7aa59c4a89/packages/react-server/src/ReactFizzThenable.js#L45
@@ -2203,20 +2313,20 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
2203
2313
  e.status = "rejected", e.reason = t;
2204
2314
  }), e;
2205
2315
  }
2206
- }), rt = {
2316
+ }), st = {
2207
2317
  dedupe: !0
2208
- }, Zt = Promise.resolve(U), Gs = (e, t, n) => {
2209
- const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: a, revalidateIfStale: d, refreshInterval: f, refreshWhenHidden: l, refreshWhenOffline: p, keepPreviousData: E, strictServerPrefetchWarning: y } = n, [u, m, h, g] = ie.get(r), [w, A] = bt(e), x = le(!1), R = le(!1), P = le(w), _ = le(t), X = le(n), O = () => X.current, ee = () => O().isVisible() && O().isOnline(), [H, W, M, F] = Ln(r, w), te = le({}).current, B = b(o) ? b(n.fallback) ? U : n.fallback[w] : o, ge = (T, C) => {
2210
- for (const L in te) {
2211
- const D = L;
2318
+ }, nn = Promise.resolve(I), Zs = (e, t, n) => {
2319
+ const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: a, revalidateIfStale: d, refreshInterval: f, refreshWhenHidden: l, refreshWhenOffline: p, keepPreviousData: E, strictServerPrefetchWarning: y } = n, [u, m, h, S] = ie.get(r), [w, _] = Ot(e), x = le(!1), g = le(!1), v = le(w), A = le(t), Y = le(n), O = () => Y.current, ee = () => O().isVisible() && O().isOnline(), [M, z, H, P] = Ln(r, w), te = le({}).current, F = b(o) ? b(n.fallback) ? I : n.fallback[w] : o, Re = (T, C) => {
2320
+ for (const N in te) {
2321
+ const D = N;
2212
2322
  if (D === "data") {
2213
- if (!s(T[D], C[D]) && (!b(T[D]) || !s(Le, C[D])))
2323
+ if (!s(T[D], C[D]) && (!b(T[D]) || !s(Ne, C[D])))
2214
2324
  return !1;
2215
2325
  } else if (C[D] !== T[D])
2216
2326
  return !1;
2217
2327
  }
2218
2328
  return !0;
2219
- }, z = en(() => {
2329
+ }, J = rn(() => {
2220
2330
  const T = !w || !t ? !1 : b(a) ? O().isPaused() || i ? !1 : d !== !1 : a, C = (j) => {
2221
2331
  const se = ce(j);
2222
2332
  return delete se._k, T ? {
@@ -2224,77 +2334,77 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
2224
2334
  isLoading: !0,
2225
2335
  ...se
2226
2336
  } : se;
2227
- }, L = H(), D = F(), K = C(L), me = L === D ? K : C(D);
2228
- let v = K;
2337
+ }, N = M(), D = P(), G = C(N), me = N === D ? G : C(D);
2338
+ let U = G;
2229
2339
  return [
2230
2340
  () => {
2231
- const j = C(H());
2232
- return ge(j, v) ? (v.data = j.data, v.isLoading = j.isLoading, v.isValidating = j.isValidating, v.error = j.error, v) : (v = j, j);
2341
+ const j = C(M());
2342
+ return Re(j, U) ? (U.data = j.data, U.isLoading = j.isLoading, U.isValidating = j.isValidating, U.error = j.error, U) : (U = j, j);
2233
2343
  },
2234
2344
  () => me
2235
2345
  ];
2236
2346
  }, [
2237
2347
  r,
2238
2348
  w
2239
- ]), ne = Jt.useSyncExternalStore(ze(
2240
- (T) => M(w, (C, L) => {
2241
- ge(L, C) || T();
2349
+ ]), ne = Xt.useSyncExternalStore(ze(
2350
+ (T) => H(w, (C, N) => {
2351
+ Re(N, C) || T();
2242
2352
  }),
2243
2353
  // eslint-disable-next-line react-hooks/exhaustive-deps
2244
2354
  [
2245
2355
  r,
2246
2356
  w
2247
2357
  ]
2248
- ), z[0], z[1]), De = !x.current, Y = u[w] && u[w].length > 0, V = ne.data, J = b(V) ? B && Dn(B) ? nt(B) : B : V, re = ne.error, he = le(J), Le = E ? b(V) ? b(he.current) ? J : he.current : V : J, ue = w && b(J), Un = !Ee && // eslint-disable-next-line react-hooks/rules-of-hooks
2249
- Jt.useSyncExternalStore(() => ae, () => !1, () => !0);
2250
- y && Un && !i && ue && console.warn(`Missing pre-initiated data for serialized key "${w}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
2251
- const Rt = Y && !b(re) ? !1 : De && !b(a) ? a : O().isPaused() ? !1 : i ? b(J) ? !1 : d : b(J) || d, Ot = !!(w && t && De && Rt), In = b(ne.isValidating) ? Ot : ne.isValidating, Bn = b(ne.isLoading) ? Ot : ne.isLoading, be = ze(
2358
+ ), J[0], J[1]), De = !x.current, Q = u[w] && u[w].length > 0, V = ne.data, K = b(V) ? F && Nn(F) ? rt(F) : F : V, re = ne.error, he = le(K), Ne = E ? b(V) ? b(he.current) ? K : he.current : V : K, ue = w && b(K), In = !Ee && // eslint-disable-next-line react-hooks/rules-of-hooks
2359
+ Xt.useSyncExternalStore(() => ae, () => !1, () => !0);
2360
+ y && In && !i && ue && console.warn(`Missing pre-initiated data for serialized key "${w}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
2361
+ const Tt = Q && !b(re) ? !1 : De && !b(a) ? a : O().isPaused() ? !1 : i ? b(K) ? !1 : d : b(K) || d, _t = !!(w && t && De && Tt), Bn = b(ne.isValidating) ? _t : ne.isValidating, jn = b(ne.isLoading) ? _t : ne.isLoading, Se = ze(
2252
2362
  async (T) => {
2253
- const C = _.current;
2254
- if (!w || !C || R.current || O().isPaused())
2363
+ const C = A.current;
2364
+ if (!w || !C || g.current || O().isPaused())
2255
2365
  return !1;
2256
- let L, D, K = !0;
2257
- const me = T || {}, v = !h[w] || !me.dedupe, j = () => Xt ? !R.current && w === P.current && x.current : w === P.current, se = {
2366
+ let N, D, G = !0;
2367
+ const me = T || {}, U = !h[w] || !me.dedupe, j = () => Zt ? !g.current && w === v.current && x.current : w === v.current, se = {
2258
2368
  isValidating: !1,
2259
2369
  isLoading: !1
2260
- }, At = () => {
2261
- W(se);
2262
- }, _t = () => {
2370
+ }, Ct = () => {
2371
+ z(se);
2372
+ }, xt = () => {
2263
2373
  const $ = h[w];
2264
2374
  $ && $[1] === D && delete h[w];
2265
- }, Ct = {
2375
+ }, Dt = {
2266
2376
  isValidating: !0
2267
2377
  };
2268
- b(H().data) && (Ct.isLoading = !0);
2378
+ b(M().data) && (Dt.isLoading = !0);
2269
2379
  try {
2270
- if (v && (W(Ct), n.loadingTimeout && b(H().data) && setTimeout(() => {
2271
- K && j() && O().onLoadingSlow(w, n);
2380
+ if (U && (z(Dt), n.loadingTimeout && b(M().data) && setTimeout(() => {
2381
+ G && j() && O().onLoadingSlow(w, n);
2272
2382
  }, n.loadingTimeout), h[w] = [
2273
- C(A),
2274
- mt()
2275
- ]), [L, D] = h[w], L = await L, v && setTimeout(_t, n.dedupingInterval), !h[w] || h[w][1] !== D)
2276
- return v && j() && O().onDiscarded(w), !1;
2277
- se.error = U;
2383
+ C(_),
2384
+ Et()
2385
+ ]), [N, D] = h[w], N = await N, U && setTimeout(xt, n.dedupingInterval), !h[w] || h[w][1] !== D)
2386
+ return U && j() && O().onDiscarded(w), !1;
2387
+ se.error = I;
2278
2388
  const $ = m[w];
2279
2389
  if (!b($) && // case 1
2280
2390
  (D <= $[0] || // case 2
2281
2391
  D <= $[1] || // case 3
2282
2392
  $[1] === 0))
2283
- return At(), v && j() && O().onDiscarded(w), !1;
2284
- const oe = H().data;
2285
- se.data = s(oe, L) ? oe : L, v && j() && O().onSuccess(L, w, n);
2393
+ return Ct(), U && j() && O().onDiscarded(w), !1;
2394
+ const oe = M().data;
2395
+ se.data = s(oe, N) ? oe : N, U && j() && O().onSuccess(N, w, n);
2286
2396
  } catch ($) {
2287
- _t();
2397
+ xt();
2288
2398
  const oe = O(), { shouldRetryOnError: $e } = oe;
2289
- oe.isPaused() || (se.error = $, v && j() && (oe.onError($, w, oe), ($e === !0 || Z($e) && $e($)) && (!O().revalidateOnFocus || !O().revalidateOnReconnect || ee()) && oe.onErrorRetry($, w, oe, (jn) => {
2399
+ oe.isPaused() || (se.error = $, U && j() && (oe.onError($, w, oe), ($e === !0 || Z($e) && $e($)) && (!O().revalidateOnFocus || !O().revalidateOnReconnect || ee()) && oe.onErrorRetry($, w, oe, (qn) => {
2290
2400
  const We = u[w];
2291
- We && We[0] && We[0](Kt, jn);
2401
+ We && We[0] && We[0](Yt, qn);
2292
2402
  }, {
2293
2403
  retryCount: (me.retryCount || 0) + 1,
2294
2404
  dedupe: !0
2295
2405
  })));
2296
2406
  }
2297
- return K = !1, At(), !0;
2407
+ return G = !1, Ct(), !0;
2298
2408
  },
2299
2409
  // `setState` is immutable, and `eventsCallback`, `fnArg`, and
2300
2410
  // `keyValidating` are depending on `key`, so we can exclude them from
@@ -2311,47 +2421,47 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
2311
2421
  w,
2312
2422
  r
2313
2423
  ]
2314
- ), Tt = ze(
2424
+ ), At = ze(
2315
2425
  // Use callback to make sure `keyRef.current` returns latest result every time
2316
- (...T) => Nn(r, P.current, ...T),
2426
+ (...T) => Pn(r, v.current, ...T),
2317
2427
  // eslint-disable-next-line react-hooks/exhaustive-deps
2318
2428
  []
2319
2429
  );
2320
- if (Ze(() => {
2321
- _.current = t, X.current = n, b(V) || (he.current = V);
2322
- }), Ze(() => {
2430
+ if (et(() => {
2431
+ A.current = t, Y.current = n, b(V) || (he.current = V);
2432
+ }), et(() => {
2323
2433
  if (!w) return;
2324
- const T = be.bind(U, rt);
2434
+ const T = Se.bind(I, st);
2325
2435
  let C = 0;
2326
2436
  O().revalidateOnFocus && (C = Date.now() + O().focusThrottleInterval);
2327
- const D = Ks(w, u, (K, me = {}) => {
2328
- if (K == _n) {
2329
- const v = Date.now();
2330
- O().revalidateOnFocus && v > C && ee() && (C = v + O().focusThrottleInterval, T());
2331
- } else if (K == Cn)
2437
+ const D = Qs(w, u, (G, me = {}) => {
2438
+ if (G == Cn) {
2439
+ const U = Date.now();
2440
+ O().revalidateOnFocus && U > C && ee() && (C = U + O().focusThrottleInterval, T());
2441
+ } else if (G == xn)
2332
2442
  O().revalidateOnReconnect && ee() && T();
2333
2443
  else {
2334
- if (K == xn)
2335
- return be();
2336
- if (K == Kt)
2337
- return be(me);
2444
+ if (G == Dn)
2445
+ return Se();
2446
+ if (G == Yt)
2447
+ return Se(me);
2338
2448
  }
2339
2449
  });
2340
- return R.current = !1, P.current = w, x.current = !0, W({
2341
- _k: A
2342
- }), Rt && (h[w] || (b(J) || Ee ? T() : Ls(T))), () => {
2343
- R.current = !0, D();
2450
+ return g.current = !1, v.current = w, x.current = !0, z({
2451
+ _k: _
2452
+ }), Tt && (h[w] || (b(K) || Ee ? T() : vs(T))), () => {
2453
+ g.current = !0, D();
2344
2454
  };
2345
2455
  }, [
2346
2456
  w
2347
- ]), Ze(() => {
2457
+ ]), et(() => {
2348
2458
  let T;
2349
2459
  function C() {
2350
- const D = Z(f) ? f(H().data) : f;
2351
- D && T !== -1 && (T = setTimeout(L, D));
2460
+ const D = Z(f) ? f(M().data) : f;
2461
+ D && T !== -1 && (T = setTimeout(N, D));
2352
2462
  }
2353
- function L() {
2354
- !H().error && (l || O().isVisible()) && (p || O().isOnline()) ? be(rt).then(C) : C();
2463
+ function N() {
2464
+ !M().error && (l || O().isVisible()) && (p || O().isOnline()) ? Se(st).then(C) : C();
2355
2465
  }
2356
2466
  return C(), () => {
2357
2467
  T && (clearTimeout(T), T = -1);
@@ -2361,34 +2471,34 @@ const nt = Oe.use || // This extra generic is to avoid TypeScript mixing up the
2361
2471
  l,
2362
2472
  p,
2363
2473
  w
2364
- ]), Vn(Le), i) {
2365
- if (!Xt && Ee && ue)
2474
+ ]), $n(Ne), i) {
2475
+ if (!Zt && Ee && ue)
2366
2476
  throw new Error("Fallback data is required when using Suspense in SSR.");
2367
- ue && (_.current = t, X.current = n, R.current = !1);
2368
- const T = g[w], C = !b(T) && ue ? Tt(T) : Zt;
2369
- if (nt(C), !b(re) && ue)
2477
+ ue && (A.current = t, Y.current = n, g.current = !1);
2478
+ const T = S[w], C = !b(T) && ue ? At(T) : nn;
2479
+ if (rt(C), !b(re) && ue)
2370
2480
  throw re;
2371
- const L = ue ? be(rt) : Zt;
2372
- !b(Le) && ue && (L.status = "fulfilled", L.value = !0), nt(L);
2481
+ const N = ue ? Se(st) : nn;
2482
+ !b(Ne) && ue && (N.status = "fulfilled", N.value = !0), rt(N);
2373
2483
  }
2374
2484
  return {
2375
- mutate: Tt,
2485
+ mutate: At,
2376
2486
  get data() {
2377
- return te.data = !0, Le;
2487
+ return te.data = !0, Ne;
2378
2488
  },
2379
2489
  get error() {
2380
2490
  return te.error = !0, re;
2381
2491
  },
2382
2492
  get isValidating() {
2383
- return te.isValidating = !0, In;
2493
+ return te.isValidating = !0, Bn;
2384
2494
  },
2385
2495
  get isLoading() {
2386
- return te.isLoading = !0, Bn;
2496
+ return te.isLoading = !0, jn;
2387
2497
  }
2388
2498
  };
2389
- }, wo = Js(Gs);
2499
+ }, Oo = Ys(Zs);
2390
2500
  export {
2391
- N as a,
2392
- wo as u,
2393
- yo as w
2501
+ L as a,
2502
+ Oo as u,
2503
+ go as w
2394
2504
  };