wcz-test 6.24.14 → 6.26.0

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 (50) hide show
  1. package/dist/ApprovalStatus-lESbUD_x.js +1 -0
  2. package/dist/ApprovalStatus-lESbUD_x.js.map +1 -0
  3. package/dist/DialogsContext-8xfQ3X-k.js +285 -0
  4. package/dist/DialogsContext-8xfQ3X-k.js.map +1 -0
  5. package/dist/DialogsHooks-Dz4ExWPV.js +232 -0
  6. package/dist/DialogsHooks-Dz4ExWPV.js.map +1 -0
  7. package/dist/{FileHooks-kGkVKOf9.js → FileHooks-T3wXKu_b.js} +5 -4
  8. package/dist/FileHooks-T3wXKu_b.js.map +1 -0
  9. package/dist/FileMeta-Bzeo3ie9.js +1 -0
  10. package/dist/FileMeta-Bzeo3ie9.js.map +1 -0
  11. package/dist/RouterListItemButton-Dmqima3h.js +661 -0
  12. package/dist/RouterListItemButton-Dmqima3h.js.map +1 -0
  13. package/dist/_commonjsHelpers-ByX85dGu.js +34 -0
  14. package/dist/_commonjsHelpers-ByX85dGu.js.map +1 -0
  15. package/dist/components.js +2667 -518
  16. package/dist/components.js.map +1 -0
  17. package/dist/env-BD4Wc07c.js +76 -0
  18. package/dist/env-BD4Wc07c.js.map +1 -0
  19. package/dist/hooks.js +909 -354
  20. package/dist/hooks.js.map +1 -0
  21. package/dist/i18next-Bx3TmZAT.js +1337 -0
  22. package/dist/i18next-Bx3TmZAT.js.map +1 -0
  23. package/dist/index-Biz5inV2.js +268 -0
  24. package/dist/index-Biz5inV2.js.map +1 -0
  25. package/dist/index.js +1076 -1405
  26. package/dist/index.js.map +1 -0
  27. package/dist/models.js +1 -0
  28. package/dist/models.js.map +1 -0
  29. package/dist/queries.js +4 -3
  30. package/dist/queries.js.map +1 -0
  31. package/dist/queryClient--EvGPhnh.js +1 -0
  32. package/dist/queryClient--EvGPhnh.js.map +1 -0
  33. package/dist/server.js +56 -27
  34. package/dist/server.js.map +1 -0
  35. package/dist/session-BCQDwl6n.js +8581 -0
  36. package/dist/session-BCQDwl6n.js.map +1 -0
  37. package/dist/utils-A7xW24zq.js +1850 -0
  38. package/dist/utils-A7xW24zq.js.map +1 -0
  39. package/dist/utils.js +8 -7
  40. package/dist/utils.js.map +1 -0
  41. package/dist/vite.js +1 -0
  42. package/dist/vite.js.map +1 -0
  43. package/package.json +23 -26
  44. package/dist/DialogsContext-2Yy6yhzQ.js +0 -5
  45. package/dist/DialogsHooks-DWkC9zAf.js +0 -113
  46. package/dist/RouterListItemButton-C_SG0uka.js +0 -17
  47. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  48. package/dist/env-4ZoUrNqp.js +0 -27
  49. package/dist/session-7yb0BETM.js +0 -75
  50. package/dist/utils-CZraUjBd.js +0 -81
@@ -0,0 +1,1850 @@
1
+ import { a as pe } from "./env-BD4Wc07c.js";
2
+ function Je(e, t) {
3
+ return function() {
4
+ return e.apply(t, arguments);
5
+ };
6
+ }
7
+ const { toString: mt } = Object.prototype, { getPrototypeOf: we } = Object, { iterator: re, toStringTag: Ve } = Symbol, se = /* @__PURE__ */ ((e) => (t) => {
8
+ const n = mt.call(t);
9
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
+ })(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => se(t) === e), oe = (e) => (t) => typeof t === e, { isArray: M } = Array, H = oe("undefined");
11
+ function V(e) {
12
+ return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
+ }
14
+ const We = N("ArrayBuffer");
15
+ function yt(e) {
16
+ let t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && We(e.buffer), t;
18
+ }
19
+ const bt = oe("string"), A = oe("function"), ve = oe("number"), W = (e) => e !== null && typeof e == "object", wt = (e) => e === !0 || e === !1, Y = (e) => {
20
+ if (se(e) !== "object")
21
+ return !1;
22
+ const t = we(e);
23
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ve in e) && !(re in e);
24
+ }, gt = (e) => {
25
+ if (!W(e) || V(e))
26
+ return !1;
27
+ try {
28
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
29
+ } catch {
30
+ return !1;
31
+ }
32
+ }, Et = N("Date"), St = N("File"), Rt = N("Blob"), Ot = N("FileList"), At = (e) => W(e) && A(e.pipe), Tt = (e) => {
33
+ let t;
34
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = se(e)) === "formdata" || // detect form-data instance
35
+ t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
36
+ }, Ct = N("URLSearchParams"), [xt, Pt, Nt, _t] = ["ReadableStream", "Request", "Response", "Headers"].map(N), Ft = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function v(e, t, { allOwnKeys: n = !1 } = {}) {
38
+ if (e === null || typeof e > "u")
39
+ return;
40
+ let r, s;
41
+ if (typeof e != "object" && (e = [e]), M(e))
42
+ for (r = 0, s = e.length; r < s; r++)
43
+ t.call(null, e[r], r, e);
44
+ else {
45
+ if (V(e))
46
+ return;
47
+ const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
48
+ let c;
49
+ for (r = 0; r < o; r++)
50
+ c = i[r], t.call(null, e[c], c, e);
51
+ }
52
+ }
53
+ function Ke(e, t) {
54
+ if (V(e))
55
+ return null;
56
+ t = t.toLowerCase();
57
+ const n = Object.keys(e);
58
+ let r = n.length, s;
59
+ for (; r-- > 0; )
60
+ if (s = n[r], t === s.toLowerCase())
61
+ return s;
62
+ return null;
63
+ }
64
+ const B = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Xe = (e) => !H(e) && e !== B;
65
+ function he() {
66
+ const { caseless: e, skipUndefined: t } = Xe(this) && this || {}, n = {}, r = (s, i) => {
67
+ const o = e && Ke(n, i) || i;
68
+ Y(n[o]) && Y(s) ? n[o] = he(n[o], s) : Y(s) ? n[o] = he({}, s) : M(s) ? n[o] = s.slice() : (!t || !H(s)) && (n[o] = s);
69
+ };
70
+ for (let s = 0, i = arguments.length; s < i; s++)
71
+ arguments[s] && v(arguments[s], r);
72
+ return n;
73
+ }
74
+ const Ut = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, i) => {
75
+ n && A(s) ? e[i] = Je(s, n) : e[i] = s;
76
+ }, { allOwnKeys: r }), e), Lt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Dt = (e, t, n, r) => {
77
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
78
+ value: t.prototype
79
+ }), n && Object.assign(e.prototype, n);
80
+ }, kt = (e, t, n, r) => {
81
+ let s, i, o;
82
+ const c = {};
83
+ if (t = t || {}, e == null) return t;
84
+ do {
85
+ for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
86
+ o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
87
+ e = n !== !1 && we(e);
88
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
89
+ return t;
90
+ }, Bt = (e, t, n) => {
91
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
92
+ const r = e.indexOf(t, n);
93
+ return r !== -1 && r === n;
94
+ }, jt = (e) => {
95
+ if (!e) return null;
96
+ if (M(e)) return e;
97
+ let t = e.length;
98
+ if (!ve(t)) return null;
99
+ const n = new Array(t);
100
+ for (; t-- > 0; )
101
+ n[t] = e[t];
102
+ return n;
103
+ }, It = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && we(Uint8Array)), qt = (e, t) => {
104
+ const r = (e && e[re]).call(e);
105
+ let s;
106
+ for (; (s = r.next()) && !s.done; ) {
107
+ const i = s.value;
108
+ t.call(e, i[0], i[1]);
109
+ }
110
+ }, Ht = (e, t) => {
111
+ let n;
112
+ const r = [];
113
+ for (; (n = e.exec(t)) !== null; )
114
+ r.push(n);
115
+ return r;
116
+ }, Mt = N("HTMLFormElement"), $t = (e) => e.toLowerCase().replace(
117
+ /[-_\s]([a-z\d])(\w*)/g,
118
+ function(n, r, s) {
119
+ return r.toUpperCase() + s;
120
+ }
121
+ ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), zt = N("RegExp"), Ge = (e, t) => {
122
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
123
+ v(n, (s, i) => {
124
+ let o;
125
+ (o = t(s, i, e)) !== !1 && (r[i] = o || s);
126
+ }), Object.defineProperties(e, r);
127
+ }, Jt = (e) => {
128
+ Ge(e, (t, n) => {
129
+ if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
+ return !1;
131
+ const r = e[n];
132
+ if (A(r)) {
133
+ if (t.enumerable = !1, "writable" in t) {
134
+ t.writable = !1;
135
+ return;
136
+ }
137
+ t.set || (t.set = () => {
138
+ throw Error("Can not rewrite read-only method '" + n + "'");
139
+ });
140
+ }
141
+ });
142
+ }, Vt = (e, t) => {
143
+ const n = {}, r = (s) => {
144
+ s.forEach((i) => {
145
+ n[i] = !0;
146
+ });
147
+ };
148
+ return M(e) ? r(e) : r(String(e).split(t)), n;
149
+ }, Wt = () => {
150
+ }, vt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
151
+ function Kt(e) {
152
+ return !!(e && A(e.append) && e[Ve] === "FormData" && e[re]);
153
+ }
154
+ const Xt = (e) => {
155
+ const t = new Array(10), n = (r, s) => {
156
+ if (W(r)) {
157
+ if (t.indexOf(r) >= 0)
158
+ return;
159
+ if (V(r))
160
+ return r;
161
+ if (!("toJSON" in r)) {
162
+ t[s] = r;
163
+ const i = M(r) ? [] : {};
164
+ return v(r, (o, c) => {
165
+ const d = n(o, s + 1);
166
+ !H(d) && (i[c] = d);
167
+ }), t[s] = void 0, i;
168
+ }
169
+ }
170
+ return r;
171
+ };
172
+ return n(e, 0);
173
+ }, Gt = N("AsyncFunction"), Zt = (e) => e && (W(e) || A(e)) && A(e.then) && A(e.catch), Ze = ((e, t) => e ? setImmediate : t ? ((n, r) => (B.addEventListener("message", ({ source: s, data: i }) => {
174
+ s === B && i === n && r.length && r.shift()();
175
+ }, !1), (s) => {
176
+ r.push(s), B.postMessage(n, "*");
177
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
+ typeof setImmediate == "function",
179
+ A(B.postMessage)
180
+ ), Qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(B) : typeof process < "u" && process.nextTick || Ze, Yt = (e) => e != null && A(e[re]), a = {
181
+ isArray: M,
182
+ isArrayBuffer: We,
183
+ isBuffer: V,
184
+ isFormData: Tt,
185
+ isArrayBufferView: yt,
186
+ isString: bt,
187
+ isNumber: ve,
188
+ isBoolean: wt,
189
+ isObject: W,
190
+ isPlainObject: Y,
191
+ isEmptyObject: gt,
192
+ isReadableStream: xt,
193
+ isRequest: Pt,
194
+ isResponse: Nt,
195
+ isHeaders: _t,
196
+ isUndefined: H,
197
+ isDate: Et,
198
+ isFile: St,
199
+ isBlob: Rt,
200
+ isRegExp: zt,
201
+ isFunction: A,
202
+ isStream: At,
203
+ isURLSearchParams: Ct,
204
+ isTypedArray: It,
205
+ isFileList: Ot,
206
+ forEach: v,
207
+ merge: he,
208
+ extend: Ut,
209
+ trim: Ft,
210
+ stripBOM: Lt,
211
+ inherits: Dt,
212
+ toFlatObject: kt,
213
+ kindOf: se,
214
+ kindOfTest: N,
215
+ endsWith: Bt,
216
+ toArray: jt,
217
+ forEachEntry: qt,
218
+ matchAll: Ht,
219
+ isHTMLForm: Mt,
220
+ hasOwnProperty: Pe,
221
+ hasOwnProp: Pe,
222
+ // an alias to avoid ESLint no-prototype-builtins detection
223
+ reduceDescriptors: Ge,
224
+ freezeMethods: Jt,
225
+ toObjectSet: Vt,
226
+ toCamelCase: $t,
227
+ noop: Wt,
228
+ toFiniteNumber: vt,
229
+ findKey: Ke,
230
+ global: B,
231
+ isContextDefined: Xe,
232
+ isSpecCompliantForm: Kt,
233
+ toJSONObject: Xt,
234
+ isAsyncFn: Gt,
235
+ isThenable: Zt,
236
+ setImmediate: Ze,
237
+ asap: Qt,
238
+ isIterable: Yt
239
+ };
240
+ function y(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
+ a.inherits(y, Error, {
244
+ toJSON: function() {
245
+ return {
246
+ // Standard
247
+ message: this.message,
248
+ name: this.name,
249
+ // Microsoft
250
+ description: this.description,
251
+ number: this.number,
252
+ // Mozilla
253
+ fileName: this.fileName,
254
+ lineNumber: this.lineNumber,
255
+ columnNumber: this.columnNumber,
256
+ stack: this.stack,
257
+ // Axios
258
+ config: a.toJSONObject(this.config),
259
+ code: this.code,
260
+ status: this.status
261
+ };
262
+ }
263
+ });
264
+ const Qe = y.prototype, Ye = {};
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
+ Ye[e] = { value: e };
281
+ });
282
+ Object.defineProperties(y, Ye);
283
+ Object.defineProperty(Qe, "isAxiosError", { value: !0 });
284
+ y.from = (e, t, n, r, s, i) => {
285
+ const o = Object.create(Qe);
286
+ a.toFlatObject(e, o, function(l) {
287
+ return l !== Error.prototype;
288
+ }, (f) => f !== "isAxiosError");
289
+ const c = e && e.message ? e.message : "Error", d = t == null && e ? e.code : t;
290
+ return y.call(o, c, 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
+ };
292
+ const en = null;
293
+ function me(e) {
294
+ return a.isPlainObject(e) || a.isArray(e);
295
+ }
296
+ function et(e) {
297
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
+ }
299
+ function Ne(e, t, n) {
300
+ return e ? e.concat(t).map(function(s, i) {
301
+ return s = et(s), !n && i ? "[" + s + "]" : s;
302
+ }).join(n ? "." : "") : t;
303
+ }
304
+ function tn(e) {
305
+ return a.isArray(e) && !e.some(me);
306
+ }
307
+ const nn = a.toFlatObject(a, {}, null, function(t) {
308
+ return /^is[A-Z]/.test(t);
309
+ });
310
+ function ie(e, t, n) {
311
+ if (!a.isObject(e))
312
+ throw new TypeError("target must be an object");
313
+ t = t || new FormData(), n = a.toFlatObject(n, {
314
+ metaTokens: !0,
315
+ dots: !1,
316
+ indexes: !1
317
+ }, !1, function(m, p) {
318
+ return !a.isUndefined(p[m]);
319
+ });
320
+ const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
321
+ if (!a.isFunction(s))
322
+ throw new TypeError("visitor must be a function");
323
+ function f(u) {
324
+ if (u === null) return "";
325
+ if (a.isDate(u))
326
+ return u.toISOString();
327
+ if (a.isBoolean(u))
328
+ return u.toString();
329
+ if (!d && a.isBlob(u))
330
+ throw new y("Blob is not supported. Use a Buffer instead.");
331
+ return a.isArrayBuffer(u) || a.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
332
+ }
333
+ function l(u, m, p) {
334
+ let g = u;
335
+ if (u && !p && typeof u == "object") {
336
+ if (a.endsWith(m, "{}"))
337
+ m = r ? m : m.slice(0, -2), u = JSON.stringify(u);
338
+ else if (a.isArray(u) && tn(u) || (a.isFileList(u) || a.endsWith(m, "[]")) && (g = a.toArray(u)))
339
+ return m = et(m), g.forEach(function(E, O) {
340
+ !(a.isUndefined(E) || E === null) && t.append(
341
+ // eslint-disable-next-line no-nested-ternary
342
+ o === !0 ? Ne([m], O, i) : o === null ? m : m + "[]",
343
+ f(E)
344
+ );
345
+ }), !1;
346
+ }
347
+ return me(u) ? !0 : (t.append(Ne(p, m, i), f(u)), !1);
348
+ }
349
+ const h = [], b = Object.assign(nn, {
350
+ defaultVisitor: l,
351
+ convertValue: f,
352
+ isVisitable: me
353
+ });
354
+ function S(u, m) {
355
+ if (!a.isUndefined(u)) {
356
+ if (h.indexOf(u) !== -1)
357
+ throw Error("Circular reference detected in " + m.join("."));
358
+ h.push(u), a.forEach(u, function(g, C) {
359
+ (!(a.isUndefined(g) || g === null) && s.call(
360
+ t,
361
+ g,
362
+ a.isString(C) ? C.trim() : C,
363
+ m,
364
+ b
365
+ )) === !0 && S(g, m ? m.concat(C) : [C]);
366
+ }), h.pop();
367
+ }
368
+ }
369
+ if (!a.isObject(e))
370
+ throw new TypeError("data must be an object");
371
+ return S(e), t;
372
+ }
373
+ function _e(e) {
374
+ const t = {
375
+ "!": "%21",
376
+ "'": "%27",
377
+ "(": "%28",
378
+ ")": "%29",
379
+ "~": "%7E",
380
+ "%20": "+",
381
+ "%00": "\0"
382
+ };
383
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
384
+ return t[r];
385
+ });
386
+ }
387
+ function ge(e, t) {
388
+ this._pairs = [], e && ie(e, this, t);
389
+ }
390
+ const tt = ge.prototype;
391
+ tt.append = function(t, n) {
392
+ this._pairs.push([t, n]);
393
+ };
394
+ tt.toString = function(t) {
395
+ const n = t ? function(r) {
396
+ return t.call(this, r, _e);
397
+ } : _e;
398
+ return this._pairs.map(function(s) {
399
+ return n(s[0]) + "=" + n(s[1]);
400
+ }, "").join("&");
401
+ };
402
+ function rn(e) {
403
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
404
+ }
405
+ function nt(e, t, n) {
406
+ if (!t)
407
+ return e;
408
+ const r = n && n.encode || rn;
409
+ a.isFunction(n) && (n = {
410
+ serialize: n
411
+ });
412
+ const s = n && n.serialize;
413
+ let i;
414
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new ge(t, n).toString(r), i) {
415
+ const o = e.indexOf("#");
416
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
417
+ }
418
+ return e;
419
+ }
420
+ class Fe {
421
+ constructor() {
422
+ this.handlers = [];
423
+ }
424
+ /**
425
+ * Add a new interceptor to the stack
426
+ *
427
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
428
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
429
+ *
430
+ * @return {Number} An ID used to remove interceptor later
431
+ */
432
+ use(t, n, r) {
433
+ return this.handlers.push({
434
+ fulfilled: t,
435
+ rejected: n,
436
+ synchronous: r ? r.synchronous : !1,
437
+ runWhen: r ? r.runWhen : null
438
+ }), this.handlers.length - 1;
439
+ }
440
+ /**
441
+ * Remove an interceptor from the stack
442
+ *
443
+ * @param {Number} id The ID that was returned by `use`
444
+ *
445
+ * @returns {void}
446
+ */
447
+ eject(t) {
448
+ this.handlers[t] && (this.handlers[t] = null);
449
+ }
450
+ /**
451
+ * Clear all interceptors from the stack
452
+ *
453
+ * @returns {void}
454
+ */
455
+ clear() {
456
+ this.handlers && (this.handlers = []);
457
+ }
458
+ /**
459
+ * Iterate over all the registered interceptors
460
+ *
461
+ * This method is particularly useful for skipping over any
462
+ * interceptors that may have become `null` calling `eject`.
463
+ *
464
+ * @param {Function} fn The function to call for each interceptor
465
+ *
466
+ * @returns {void}
467
+ */
468
+ forEach(t) {
469
+ a.forEach(this.handlers, function(r) {
470
+ r !== null && t(r);
471
+ });
472
+ }
473
+ }
474
+ const rt = {
475
+ silentJSONParsing: !0,
476
+ forcedJSONParsing: !0,
477
+ clarifyTimeoutError: !1
478
+ }, sn = typeof URLSearchParams < "u" ? URLSearchParams : ge, on = typeof FormData < "u" ? FormData : null, an = typeof Blob < "u" ? Blob : null, cn = {
479
+ isBrowser: !0,
480
+ classes: {
481
+ URLSearchParams: sn,
482
+ FormData: on,
483
+ Blob: an
484
+ },
485
+ protocols: ["http", "https", "file", "blob", "url", "data"]
486
+ }, Ee = typeof window < "u" && typeof document < "u", ye = typeof navigator == "object" && navigator || void 0, ln = Ee && (!ye || ["ReactNative", "NativeScript", "NS"].indexOf(ye.product) < 0), un = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", fn = Ee && window.location.href || "http://localhost", dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
+ __proto__: null,
489
+ hasBrowserEnv: Ee,
490
+ hasStandardBrowserEnv: ln,
491
+ hasStandardBrowserWebWorkerEnv: un,
492
+ navigator: ye,
493
+ origin: fn
494
+ }, Symbol.toStringTag, { value: "Module" })), R = {
495
+ ...dn,
496
+ ...cn
497
+ };
498
+ function pn(e, t) {
499
+ return ie(e, new R.classes.URLSearchParams(), {
500
+ visitor: function(n, r, s, i) {
501
+ return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
502
+ },
503
+ ...t
504
+ });
505
+ }
506
+ function hn(e) {
507
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
508
+ }
509
+ function mn(e) {
510
+ const t = {}, n = Object.keys(e);
511
+ let r;
512
+ const s = n.length;
513
+ let i;
514
+ for (r = 0; r < s; r++)
515
+ i = n[r], t[i] = e[i];
516
+ return t;
517
+ }
518
+ function st(e) {
519
+ function t(n, r, s, i) {
520
+ let o = n[i++];
521
+ if (o === "__proto__") return !0;
522
+ const c = Number.isFinite(+o), d = i >= n.length;
523
+ return o = !o && a.isArray(s) ? s.length : o, d ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = mn(s[o])), !c);
524
+ }
525
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
526
+ const n = {};
527
+ return a.forEachEntry(e, (r, s) => {
528
+ t(hn(r), s, n, 0);
529
+ }), n;
530
+ }
531
+ return null;
532
+ }
533
+ function yn(e, t, n) {
534
+ if (a.isString(e))
535
+ try {
536
+ return (t || JSON.parse)(e), a.trim(e);
537
+ } catch (r) {
538
+ if (r.name !== "SyntaxError")
539
+ throw r;
540
+ }
541
+ return (n || JSON.stringify)(e);
542
+ }
543
+ const K = {
544
+ transitional: rt,
545
+ adapter: ["xhr", "http", "fetch"],
546
+ transformRequest: [function(t, n) {
547
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
548
+ if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
549
+ return s ? JSON.stringify(st(t)) : t;
550
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
551
+ return t;
552
+ if (a.isArrayBufferView(t))
553
+ return t.buffer;
554
+ if (a.isURLSearchParams(t))
555
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
556
+ let c;
557
+ if (i) {
558
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
559
+ return pn(t, this.formSerializer).toString();
560
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
561
+ const d = this.env && this.env.FormData;
562
+ return ie(
563
+ c ? { "files[]": t } : t,
564
+ d && new d(),
565
+ this.formSerializer
566
+ );
567
+ }
568
+ }
569
+ return i || s ? (n.setContentType("application/json", !1), yn(t)) : t;
570
+ }],
571
+ transformResponse: [function(t) {
572
+ const n = this.transitional || K.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
573
+ if (a.isResponse(t) || a.isReadableStream(t))
574
+ return t;
575
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
576
+ const o = !(n && n.silentJSONParsing) && s;
577
+ try {
578
+ return JSON.parse(t, this.parseReviver);
579
+ } catch (c) {
580
+ if (o)
581
+ throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
582
+ }
583
+ }
584
+ return t;
585
+ }],
586
+ /**
587
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
588
+ * timeout is not created.
589
+ */
590
+ timeout: 0,
591
+ xsrfCookieName: "XSRF-TOKEN",
592
+ xsrfHeaderName: "X-XSRF-TOKEN",
593
+ maxContentLength: -1,
594
+ maxBodyLength: -1,
595
+ env: {
596
+ FormData: R.classes.FormData,
597
+ Blob: R.classes.Blob
598
+ },
599
+ validateStatus: function(t) {
600
+ return t >= 200 && t < 300;
601
+ },
602
+ headers: {
603
+ common: {
604
+ Accept: "application/json, text/plain, */*",
605
+ "Content-Type": void 0
606
+ }
607
+ }
608
+ };
609
+ a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
610
+ K.headers[e] = {};
611
+ });
612
+ const bn = a.toObjectSet([
613
+ "age",
614
+ "authorization",
615
+ "content-length",
616
+ "content-type",
617
+ "etag",
618
+ "expires",
619
+ "from",
620
+ "host",
621
+ "if-modified-since",
622
+ "if-unmodified-since",
623
+ "last-modified",
624
+ "location",
625
+ "max-forwards",
626
+ "proxy-authorization",
627
+ "referer",
628
+ "retry-after",
629
+ "user-agent"
630
+ ]), wn = (e) => {
631
+ const t = {};
632
+ let n, r, s;
633
+ return e && e.split(`
634
+ `).forEach(function(o) {
635
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && bn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
636
+ }), t;
637
+ }, Ue = /* @__PURE__ */ Symbol("internals");
638
+ function J(e) {
639
+ return e && String(e).trim().toLowerCase();
640
+ }
641
+ function ee(e) {
642
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(ee) : String(e);
643
+ }
644
+ function gn(e) {
645
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
646
+ let r;
647
+ for (; r = n.exec(e); )
648
+ t[r[1]] = r[2];
649
+ return t;
650
+ }
651
+ const En = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
652
+ function ue(e, t, n, r, s) {
653
+ if (a.isFunction(r))
654
+ return r.call(this, t, n);
655
+ if (s && (t = n), !!a.isString(t)) {
656
+ if (a.isString(r))
657
+ return t.indexOf(r) !== -1;
658
+ if (a.isRegExp(r))
659
+ return r.test(t);
660
+ }
661
+ }
662
+ function Sn(e) {
663
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
664
+ }
665
+ function Rn(e, t) {
666
+ const n = a.toCamelCase(" " + t);
667
+ ["get", "set", "has"].forEach((r) => {
668
+ Object.defineProperty(e, r + n, {
669
+ value: function(s, i, o) {
670
+ return this[r].call(this, t, s, i, o);
671
+ },
672
+ configurable: !0
673
+ });
674
+ });
675
+ }
676
+ let T = class {
677
+ constructor(t) {
678
+ t && this.set(t);
679
+ }
680
+ set(t, n, r) {
681
+ const s = this;
682
+ function i(c, d, f) {
683
+ const l = J(d);
684
+ if (!l)
685
+ throw new Error("header name must be a non-empty string");
686
+ const h = a.findKey(s, l);
687
+ (!h || s[h] === void 0 || f === !0 || f === void 0 && s[h] !== !1) && (s[h || d] = ee(c));
688
+ }
689
+ const o = (c, d) => a.forEach(c, (f, l) => i(f, l, d));
690
+ if (a.isPlainObject(t) || t instanceof this.constructor)
691
+ o(t, n);
692
+ else if (a.isString(t) && (t = t.trim()) && !En(t))
693
+ o(wn(t), n);
694
+ else if (a.isObject(t) && a.isIterable(t)) {
695
+ let c = {}, d, f;
696
+ for (const l of t) {
697
+ if (!a.isArray(l))
698
+ throw TypeError("Object iterator must return a key-value pair");
699
+ c[f = l[0]] = (d = c[f]) ? a.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
700
+ }
701
+ o(c, n);
702
+ } else
703
+ t != null && i(n, t, r);
704
+ return this;
705
+ }
706
+ get(t, n) {
707
+ if (t = J(t), t) {
708
+ const r = a.findKey(this, t);
709
+ if (r) {
710
+ const s = this[r];
711
+ if (!n)
712
+ return s;
713
+ if (n === !0)
714
+ return gn(s);
715
+ if (a.isFunction(n))
716
+ return n.call(this, s, r);
717
+ if (a.isRegExp(n))
718
+ return n.exec(s);
719
+ throw new TypeError("parser must be boolean|regexp|function");
720
+ }
721
+ }
722
+ }
723
+ has(t, n) {
724
+ if (t = J(t), t) {
725
+ const r = a.findKey(this, t);
726
+ return !!(r && this[r] !== void 0 && (!n || ue(this, this[r], r, n)));
727
+ }
728
+ return !1;
729
+ }
730
+ delete(t, n) {
731
+ const r = this;
732
+ let s = !1;
733
+ function i(o) {
734
+ if (o = J(o), o) {
735
+ const c = a.findKey(r, o);
736
+ c && (!n || ue(r, r[c], c, n)) && (delete r[c], s = !0);
737
+ }
738
+ }
739
+ return a.isArray(t) ? t.forEach(i) : i(t), s;
740
+ }
741
+ clear(t) {
742
+ const n = Object.keys(this);
743
+ let r = n.length, s = !1;
744
+ for (; r--; ) {
745
+ const i = n[r];
746
+ (!t || ue(this, this[i], i, t, !0)) && (delete this[i], s = !0);
747
+ }
748
+ return s;
749
+ }
750
+ normalize(t) {
751
+ const n = this, r = {};
752
+ return a.forEach(this, (s, i) => {
753
+ const o = a.findKey(r, i);
754
+ if (o) {
755
+ n[o] = ee(s), delete n[i];
756
+ return;
757
+ }
758
+ const c = t ? Sn(i) : String(i).trim();
759
+ c !== i && delete n[i], n[c] = ee(s), r[c] = !0;
760
+ }), this;
761
+ }
762
+ concat(...t) {
763
+ return this.constructor.concat(this, ...t);
764
+ }
765
+ toJSON(t) {
766
+ const n = /* @__PURE__ */ Object.create(null);
767
+ return a.forEach(this, (r, s) => {
768
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
769
+ }), n;
770
+ }
771
+ [Symbol.iterator]() {
772
+ return Object.entries(this.toJSON())[Symbol.iterator]();
773
+ }
774
+ toString() {
775
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
776
+ `);
777
+ }
778
+ getSetCookie() {
779
+ return this.get("set-cookie") || [];
780
+ }
781
+ get [Symbol.toStringTag]() {
782
+ return "AxiosHeaders";
783
+ }
784
+ static from(t) {
785
+ return t instanceof this ? t : new this(t);
786
+ }
787
+ static concat(t, ...n) {
788
+ const r = new this(t);
789
+ return n.forEach((s) => r.set(s)), r;
790
+ }
791
+ static accessor(t) {
792
+ const r = (this[Ue] = this[Ue] = {
793
+ accessors: {}
794
+ }).accessors, s = this.prototype;
795
+ function i(o) {
796
+ const c = J(o);
797
+ r[c] || (Rn(s, o), r[c] = !0);
798
+ }
799
+ return a.isArray(t) ? t.forEach(i) : i(t), this;
800
+ }
801
+ };
802
+ T.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
+ a.reduceDescriptors(T.prototype, ({ value: e }, t) => {
804
+ let n = t[0].toUpperCase() + t.slice(1);
805
+ return {
806
+ get: () => e,
807
+ set(r) {
808
+ this[n] = r;
809
+ }
810
+ };
811
+ });
812
+ a.freezeMethods(T);
813
+ function fe(e, t) {
814
+ const n = this || K, r = t || n, s = T.from(r.headers);
815
+ let i = r.data;
816
+ return a.forEach(e, function(c) {
817
+ i = c.call(n, i, s.normalize(), t ? t.status : void 0);
818
+ }), s.normalize(), i;
819
+ }
820
+ function ot(e) {
821
+ return !!(e && e.__CANCEL__);
822
+ }
823
+ function $(e, t, n) {
824
+ y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
825
+ }
826
+ a.inherits($, y, {
827
+ __CANCEL__: !0
828
+ });
829
+ function it(e, t, n) {
830
+ const r = n.config.validateStatus;
831
+ !n.status || !r || r(n.status) ? e(n) : t(new y(
832
+ "Request failed with status code " + n.status,
833
+ [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
834
+ n.config,
835
+ n.request,
836
+ n
837
+ ));
838
+ }
839
+ function On(e) {
840
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
841
+ return t && t[1] || "";
842
+ }
843
+ function An(e, t) {
844
+ e = e || 10;
845
+ const n = new Array(e), r = new Array(e);
846
+ let s = 0, i = 0, o;
847
+ return t = t !== void 0 ? t : 1e3, function(d) {
848
+ const f = Date.now(), l = r[i];
849
+ o || (o = f), n[s] = d, r[s] = f;
850
+ let h = i, b = 0;
851
+ for (; h !== s; )
852
+ b += n[h++], h = h % e;
853
+ if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
854
+ return;
855
+ const S = l && f - l;
856
+ return S ? Math.round(b * 1e3 / S) : void 0;
857
+ };
858
+ }
859
+ function Tn(e, t) {
860
+ let n = 0, r = 1e3 / t, s, i;
861
+ const o = (f, l = Date.now()) => {
862
+ n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
863
+ };
864
+ return [(...f) => {
865
+ const l = Date.now(), h = l - n;
866
+ h >= r ? o(f, l) : (s = f, i || (i = setTimeout(() => {
867
+ i = null, o(s);
868
+ }, r - h)));
869
+ }, () => s && o(s)];
870
+ }
871
+ const ne = (e, t, n = 3) => {
872
+ let r = 0;
873
+ const s = An(50, 250);
874
+ return Tn((i) => {
875
+ const o = i.loaded, c = i.lengthComputable ? i.total : void 0, d = o - r, f = s(d), l = o <= c;
876
+ r = o;
877
+ const h = {
878
+ loaded: o,
879
+ total: c,
880
+ progress: c ? o / c : void 0,
881
+ bytes: d,
882
+ rate: f || void 0,
883
+ estimated: f && c && l ? (c - o) / f : void 0,
884
+ event: i,
885
+ lengthComputable: c != null,
886
+ [t ? "download" : "upload"]: !0
887
+ };
888
+ e(h);
889
+ }, n);
890
+ }, Le = (e, t) => {
891
+ const n = e != null;
892
+ return [(r) => t[0]({
893
+ lengthComputable: n,
894
+ total: e,
895
+ loaded: r
896
+ }), t[1]];
897
+ }, De = (e) => (...t) => a.asap(() => e(...t)), Cn = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
898
+ new URL(R.origin),
899
+ R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
900
+ ) : () => !0, xn = R.hasStandardBrowserEnv ? (
901
+ // Standard browser envs support document.cookie
902
+ {
903
+ write(e, t, n, r, s, i, o) {
904
+ if (typeof document > "u") return;
905
+ const c = [`${e}=${encodeURIComponent(t)}`];
906
+ a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
907
+ },
908
+ read(e) {
909
+ if (typeof document > "u") return null;
910
+ const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
911
+ return t ? decodeURIComponent(t[1]) : null;
912
+ },
913
+ remove(e) {
914
+ this.write(e, "", Date.now() - 864e5, "/");
915
+ }
916
+ }
917
+ ) : (
918
+ // Non-standard browser env (web workers, react-native) lack needed support.
919
+ {
920
+ write() {
921
+ },
922
+ read() {
923
+ return null;
924
+ },
925
+ remove() {
926
+ }
927
+ }
928
+ );
929
+ function Pn(e) {
930
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
931
+ }
932
+ function Nn(e, t) {
933
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
934
+ }
935
+ function at(e, t, n) {
936
+ let r = !Pn(t);
937
+ return e && (r || n == !1) ? Nn(e, t) : t;
938
+ }
939
+ const ke = (e) => e instanceof T ? { ...e } : e;
940
+ function I(e, t) {
941
+ t = t || {};
942
+ const n = {};
943
+ function r(f, l, h, b) {
944
+ return a.isPlainObject(f) && a.isPlainObject(l) ? a.merge.call({ caseless: b }, f, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
945
+ }
946
+ function s(f, l, h, b) {
947
+ if (a.isUndefined(l)) {
948
+ if (!a.isUndefined(f))
949
+ return r(void 0, f, h, b);
950
+ } else return r(f, l, h, b);
951
+ }
952
+ function i(f, l) {
953
+ if (!a.isUndefined(l))
954
+ return r(void 0, l);
955
+ }
956
+ function o(f, l) {
957
+ if (a.isUndefined(l)) {
958
+ if (!a.isUndefined(f))
959
+ return r(void 0, f);
960
+ } else return r(void 0, l);
961
+ }
962
+ function c(f, l, h) {
963
+ if (h in t)
964
+ return r(f, l);
965
+ if (h in e)
966
+ return r(void 0, f);
967
+ }
968
+ const d = {
969
+ url: i,
970
+ method: i,
971
+ data: i,
972
+ baseURL: o,
973
+ transformRequest: o,
974
+ transformResponse: o,
975
+ paramsSerializer: o,
976
+ timeout: o,
977
+ timeoutMessage: o,
978
+ withCredentials: o,
979
+ withXSRFToken: o,
980
+ adapter: o,
981
+ responseType: o,
982
+ xsrfCookieName: o,
983
+ xsrfHeaderName: o,
984
+ onUploadProgress: o,
985
+ onDownloadProgress: o,
986
+ decompress: o,
987
+ maxContentLength: o,
988
+ maxBodyLength: o,
989
+ beforeRedirect: o,
990
+ transport: o,
991
+ httpAgent: o,
992
+ httpsAgent: o,
993
+ cancelToken: o,
994
+ socketPath: o,
995
+ responseEncoding: o,
996
+ validateStatus: c,
997
+ headers: (f, l, h) => s(ke(f), ke(l), h, !0)
998
+ };
999
+ return a.forEach(Object.keys({ ...e, ...t }), function(l) {
1000
+ const h = d[l] || s, b = h(e[l], t[l], l);
1001
+ a.isUndefined(b) && h !== c || (n[l] = b);
1002
+ }), n;
1003
+ }
1004
+ const ct = (e) => {
1005
+ const t = I({}, e);
1006
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1007
+ if (t.headers = o = T.from(o), t.url = nt(at(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1008
+ "Authorization",
1009
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1010
+ ), a.isFormData(n)) {
1011
+ if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
1012
+ o.setContentType(void 0);
1013
+ else if (a.isFunction(n.getHeaders)) {
1014
+ const d = n.getHeaders(), f = ["content-type", "content-length"];
1015
+ Object.entries(d).forEach(([l, h]) => {
1016
+ f.includes(l.toLowerCase()) && o.set(l, h);
1017
+ });
1018
+ }
1019
+ }
1020
+ if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Cn(t.url))) {
1021
+ const d = s && i && xn.read(i);
1022
+ d && o.set(s, d);
1023
+ }
1024
+ return t;
1025
+ }, _n = typeof XMLHttpRequest < "u", Fn = _n && function(e) {
1026
+ return new Promise(function(n, r) {
1027
+ const s = ct(e);
1028
+ let i = s.data;
1029
+ const o = T.from(s.headers).normalize();
1030
+ let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, l, h, b, S, u;
1031
+ function m() {
1032
+ S && S(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1033
+ }
1034
+ let p = new XMLHttpRequest();
1035
+ p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1036
+ function g() {
1037
+ if (!p)
1038
+ return;
1039
+ const E = T.from(
1040
+ "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1041
+ ), P = {
1042
+ data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1043
+ status: p.status,
1044
+ statusText: p.statusText,
1045
+ headers: E,
1046
+ config: e,
1047
+ request: p
1048
+ };
1049
+ it(function(x) {
1050
+ n(x), m();
1051
+ }, function(x) {
1052
+ r(x), m();
1053
+ }, P), p = null;
1054
+ }
1055
+ "onloadend" in p ? p.onloadend = g : p.onreadystatechange = function() {
1056
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(g);
1057
+ }, p.onabort = function() {
1058
+ p && (r(new y("Request aborted", y.ECONNABORTED, e, p)), p = null);
1059
+ }, p.onerror = function(O) {
1060
+ const P = O && O.message ? O.message : "Network Error", D = new y(P, y.ERR_NETWORK, e, p);
1061
+ D.event = O || null, r(D), p = null;
1062
+ }, p.ontimeout = function() {
1063
+ let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1064
+ const P = s.transitional || rt;
1065
+ s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(new y(
1066
+ O,
1067
+ P.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1068
+ e,
1069
+ p
1070
+ )), p = null;
1071
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(O, P) {
1072
+ p.setRequestHeader(P, O);
1073
+ }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, u] = ne(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, S] = ne(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (l = (E) => {
1074
+ p && (r(!E || E.type ? new $(null, e, p) : E), p.abort(), p = null);
1075
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1076
+ const C = On(s.url);
1077
+ if (C && R.protocols.indexOf(C) === -1) {
1078
+ r(new y("Unsupported protocol " + C + ":", y.ERR_BAD_REQUEST, e));
1079
+ return;
1080
+ }
1081
+ p.send(i || null);
1082
+ });
1083
+ }, Un = (e, t) => {
1084
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1085
+ if (t || n) {
1086
+ let r = new AbortController(), s;
1087
+ const i = function(f) {
1088
+ if (!s) {
1089
+ s = !0, c();
1090
+ const l = f instanceof Error ? f : this.reason;
1091
+ r.abort(l instanceof y ? l : new $(l instanceof Error ? l.message : l));
1092
+ }
1093
+ };
1094
+ let o = t && setTimeout(() => {
1095
+ o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1096
+ }, t);
1097
+ const c = () => {
1098
+ e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1099
+ f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
1100
+ }), e = null);
1101
+ };
1102
+ e.forEach((f) => f.addEventListener("abort", i));
1103
+ const { signal: d } = r;
1104
+ return d.unsubscribe = () => a.asap(c), d;
1105
+ }
1106
+ }, Ln = function* (e, t) {
1107
+ let n = e.byteLength;
1108
+ if (n < t) {
1109
+ yield e;
1110
+ return;
1111
+ }
1112
+ let r = 0, s;
1113
+ for (; r < n; )
1114
+ s = r + t, yield e.slice(r, s), r = s;
1115
+ }, Dn = async function* (e, t) {
1116
+ for await (const n of kn(e))
1117
+ yield* Ln(n, t);
1118
+ }, kn = async function* (e) {
1119
+ if (e[Symbol.asyncIterator]) {
1120
+ yield* e;
1121
+ return;
1122
+ }
1123
+ const t = e.getReader();
1124
+ try {
1125
+ for (; ; ) {
1126
+ const { done: n, value: r } = await t.read();
1127
+ if (n)
1128
+ break;
1129
+ yield r;
1130
+ }
1131
+ } finally {
1132
+ await t.cancel();
1133
+ }
1134
+ }, Be = (e, t, n, r) => {
1135
+ const s = Dn(e, t);
1136
+ let i = 0, o, c = (d) => {
1137
+ o || (o = !0, r && r(d));
1138
+ };
1139
+ return new ReadableStream({
1140
+ async pull(d) {
1141
+ try {
1142
+ const { done: f, value: l } = await s.next();
1143
+ if (f) {
1144
+ c(), d.close();
1145
+ return;
1146
+ }
1147
+ let h = l.byteLength;
1148
+ if (n) {
1149
+ let b = i += h;
1150
+ n(b);
1151
+ }
1152
+ d.enqueue(new Uint8Array(l));
1153
+ } catch (f) {
1154
+ throw c(f), f;
1155
+ }
1156
+ },
1157
+ cancel(d) {
1158
+ return c(d), s.return();
1159
+ }
1160
+ }, {
1161
+ highWaterMark: 2
1162
+ });
1163
+ }, je = 64 * 1024, { isFunction: Q } = a, Bn = (({ Request: e, Response: t }) => ({
1164
+ Request: e,
1165
+ Response: t
1166
+ }))(a.global), {
1167
+ ReadableStream: Ie,
1168
+ TextEncoder: qe
1169
+ } = a.global, He = (e, ...t) => {
1170
+ try {
1171
+ return !!e(...t);
1172
+ } catch {
1173
+ return !1;
1174
+ }
1175
+ }, jn = (e) => {
1176
+ e = a.merge.call({
1177
+ skipUndefined: !0
1178
+ }, Bn, e);
1179
+ const { fetch: t, Request: n, Response: r } = e, s = t ? Q(t) : typeof fetch == "function", i = Q(n), o = Q(r);
1180
+ if (!s)
1181
+ return !1;
1182
+ const c = s && Q(Ie), d = s && (typeof qe == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new qe()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && c && He(() => {
1183
+ let u = !1;
1184
+ const m = new n(R.origin, {
1185
+ body: new Ie(),
1186
+ method: "POST",
1187
+ get duplex() {
1188
+ return u = !0, "half";
1189
+ }
1190
+ }).headers.has("Content-Type");
1191
+ return u && !m;
1192
+ }), l = o && c && He(() => a.isReadableStream(new r("").body)), h = {
1193
+ stream: l && ((u) => u.body)
1194
+ };
1195
+ s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1196
+ !h[u] && (h[u] = (m, p) => {
1197
+ let g = m && m[u];
1198
+ if (g)
1199
+ return g.call(m);
1200
+ throw new y(`Response type '${u}' is not supported`, y.ERR_NOT_SUPPORT, p);
1201
+ });
1202
+ });
1203
+ const b = async (u) => {
1204
+ if (u == null)
1205
+ return 0;
1206
+ if (a.isBlob(u))
1207
+ return u.size;
1208
+ if (a.isSpecCompliantForm(u))
1209
+ return (await new n(R.origin, {
1210
+ method: "POST",
1211
+ body: u
1212
+ }).arrayBuffer()).byteLength;
1213
+ if (a.isArrayBufferView(u) || a.isArrayBuffer(u))
1214
+ return u.byteLength;
1215
+ if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
1216
+ return (await d(u)).byteLength;
1217
+ }, S = async (u, m) => {
1218
+ const p = a.toFiniteNumber(u.getContentLength());
1219
+ return p ?? b(m);
1220
+ };
1221
+ return async (u) => {
1222
+ let {
1223
+ url: m,
1224
+ method: p,
1225
+ data: g,
1226
+ signal: C,
1227
+ cancelToken: E,
1228
+ timeout: O,
1229
+ onDownloadProgress: P,
1230
+ onUploadProgress: D,
1231
+ responseType: x,
1232
+ headers: ce,
1233
+ withCredentials: X = "same-origin",
1234
+ fetchOptions: Re
1235
+ } = ct(u), Oe = t || fetch;
1236
+ x = x ? (x + "").toLowerCase() : "text";
1237
+ let G = Un([C, E && E.toAbortSignal()], O), z = null;
1238
+ const k = G && G.unsubscribe && (() => {
1239
+ G.unsubscribe();
1240
+ });
1241
+ let Ae;
1242
+ try {
1243
+ if (D && f && p !== "get" && p !== "head" && (Ae = await S(ce, g)) !== 0) {
1244
+ let L = new n(m, {
1245
+ method: "POST",
1246
+ body: g,
1247
+ duplex: "half"
1248
+ }), q;
1249
+ if (a.isFormData(g) && (q = L.headers.get("content-type")) && ce.setContentType(q), L.body) {
1250
+ const [le, Z] = Le(
1251
+ Ae,
1252
+ ne(De(D))
1253
+ );
1254
+ g = Be(L.body, je, le, Z);
1255
+ }
1256
+ }
1257
+ a.isString(X) || (X = X ? "include" : "omit");
1258
+ const _ = i && "credentials" in n.prototype, Te = {
1259
+ ...Re,
1260
+ signal: G,
1261
+ method: p.toUpperCase(),
1262
+ headers: ce.normalize().toJSON(),
1263
+ body: g,
1264
+ duplex: "half",
1265
+ credentials: _ ? X : void 0
1266
+ };
1267
+ z = i && new n(m, Te);
1268
+ let U = await (i ? Oe(z, Re) : Oe(m, Te));
1269
+ const Ce = l && (x === "stream" || x === "response");
1270
+ if (l && (P || Ce && k)) {
1271
+ const L = {};
1272
+ ["status", "statusText", "headers"].forEach((xe) => {
1273
+ L[xe] = U[xe];
1274
+ });
1275
+ const q = a.toFiniteNumber(U.headers.get("content-length")), [le, Z] = P && Le(
1276
+ q,
1277
+ ne(De(P), !0)
1278
+ ) || [];
1279
+ U = new r(
1280
+ Be(U.body, je, le, () => {
1281
+ Z && Z(), k && k();
1282
+ }),
1283
+ L
1284
+ );
1285
+ }
1286
+ x = x || "text";
1287
+ let ht = await h[a.findKey(h, x) || "text"](U, u);
1288
+ return !Ce && k && k(), await new Promise((L, q) => {
1289
+ it(L, q, {
1290
+ data: ht,
1291
+ headers: T.from(U.headers),
1292
+ status: U.status,
1293
+ statusText: U.statusText,
1294
+ config: u,
1295
+ request: z
1296
+ });
1297
+ });
1298
+ } catch (_) {
1299
+ throw k && k(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
1300
+ new y("Network Error", y.ERR_NETWORK, u, z),
1301
+ {
1302
+ cause: _.cause || _
1303
+ }
1304
+ ) : y.from(_, _ && _.code, u, z);
1305
+ }
1306
+ };
1307
+ }, In = /* @__PURE__ */ new Map(), lt = (e) => {
1308
+ 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, c = o, d, f, l = In;
1315
+ for (; c--; )
1316
+ d = i[c], f = l.get(d), f === void 0 && l.set(d, f = c ? /* @__PURE__ */ new Map() : jn(t)), l = f;
1317
+ return f;
1318
+ };
1319
+ lt();
1320
+ const Se = {
1321
+ http: en,
1322
+ xhr: Fn,
1323
+ fetch: {
1324
+ get: lt
1325
+ }
1326
+ };
1327
+ a.forEach(Se, (e, t) => {
1328
+ if (e) {
1329
+ try {
1330
+ Object.defineProperty(e, "name", { value: t });
1331
+ } catch {
1332
+ }
1333
+ Object.defineProperty(e, "adapterName", { value: t });
1334
+ }
1335
+ });
1336
+ const Me = (e) => `- ${e}`, qn = (e) => a.isFunction(e) || e === null || e === !1;
1337
+ function Hn(e, t) {
1338
+ e = a.isArray(e) ? e : [e];
1339
+ const { length: n } = e;
1340
+ let r, s;
1341
+ const i = {};
1342
+ for (let o = 0; o < n; o++) {
1343
+ r = e[o];
1344
+ let c;
1345
+ if (s = r, !qn(r) && (s = Se[(c = String(r)).toLowerCase()], s === void 0))
1346
+ throw new y(`Unknown adapter '${c}'`);
1347
+ if (s && (a.isFunction(s) || (s = s.get(t))))
1348
+ break;
1349
+ i[c || "#" + o] = s;
1350
+ }
1351
+ if (!s) {
1352
+ const o = Object.entries(i).map(
1353
+ ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1354
+ );
1355
+ let c = n ? o.length > 1 ? `since :
1356
+ ` + o.map(Me).join(`
1357
+ `) : " " + Me(o[0]) : "as no adapter specified";
1358
+ throw new y(
1359
+ "There is no suitable adapter to dispatch the request " + c,
1360
+ "ERR_NOT_SUPPORT"
1361
+ );
1362
+ }
1363
+ return s;
1364
+ }
1365
+ const ut = {
1366
+ /**
1367
+ * Resolve an adapter from a list of adapter names or functions.
1368
+ * @type {Function}
1369
+ */
1370
+ getAdapter: Hn,
1371
+ /**
1372
+ * Exposes all known adapters
1373
+ * @type {Object<string, Function|Object>}
1374
+ */
1375
+ adapters: Se
1376
+ };
1377
+ function de(e) {
1378
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1379
+ throw new $(null, e);
1380
+ }
1381
+ function $e(e) {
1382
+ return de(e), e.headers = T.from(e.headers), e.data = fe.call(
1383
+ e,
1384
+ e.transformRequest
1385
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ut.getAdapter(e.adapter || K.adapter, e)(e).then(function(r) {
1386
+ return de(e), r.data = fe.call(
1387
+ e,
1388
+ e.transformResponse,
1389
+ r
1390
+ ), r.headers = T.from(r.headers), r;
1391
+ }, function(r) {
1392
+ return ot(r) || (de(e), r && r.response && (r.response.data = fe.call(
1393
+ e,
1394
+ e.transformResponse,
1395
+ r.response
1396
+ ), r.response.headers = T.from(r.response.headers))), Promise.reject(r);
1397
+ });
1398
+ }
1399
+ const ft = "1.13.2", ae = {};
1400
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1401
+ ae[e] = function(r) {
1402
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1403
+ };
1404
+ });
1405
+ const ze = {};
1406
+ ae.transitional = function(t, n, r) {
1407
+ function s(i, o) {
1408
+ return "[Axios v" + ft + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1409
+ }
1410
+ return (i, o, c) => {
1411
+ if (t === !1)
1412
+ throw new y(
1413
+ s(o, " has been removed" + (n ? " in " + n : "")),
1414
+ y.ERR_DEPRECATED
1415
+ );
1416
+ return n && !ze[o] && (ze[o] = !0, console.warn(
1417
+ s(
1418
+ o,
1419
+ " has been deprecated since v" + n + " and will be removed in the near future"
1420
+ )
1421
+ )), t ? t(i, o, c) : !0;
1422
+ };
1423
+ };
1424
+ ae.spelling = function(t) {
1425
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1426
+ };
1427
+ function Mn(e, t, n) {
1428
+ if (typeof e != "object")
1429
+ throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1430
+ const r = Object.keys(e);
1431
+ let s = r.length;
1432
+ for (; s-- > 0; ) {
1433
+ const i = r[s], o = t[i];
1434
+ if (o) {
1435
+ const c = e[i], d = c === void 0 || o(c, i, e);
1436
+ if (d !== !0)
1437
+ throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
1438
+ continue;
1439
+ }
1440
+ if (n !== !0)
1441
+ throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1442
+ }
1443
+ }
1444
+ const te = {
1445
+ assertOptions: Mn,
1446
+ validators: ae
1447
+ }, F = te.validators;
1448
+ let j = class {
1449
+ constructor(t) {
1450
+ this.defaults = t || {}, this.interceptors = {
1451
+ request: new Fe(),
1452
+ response: new Fe()
1453
+ };
1454
+ }
1455
+ /**
1456
+ * Dispatch a request
1457
+ *
1458
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1459
+ * @param {?Object} config
1460
+ *
1461
+ * @returns {Promise} The Promise to be fulfilled
1462
+ */
1463
+ async request(t, n) {
1464
+ try {
1465
+ return await this._request(t, n);
1466
+ } catch (r) {
1467
+ if (r instanceof Error) {
1468
+ let s = {};
1469
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1470
+ const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1471
+ try {
1472
+ r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1473
+ ` + i) : r.stack = i;
1474
+ } catch {
1475
+ }
1476
+ }
1477
+ throw r;
1478
+ }
1479
+ }
1480
+ _request(t, n) {
1481
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = I(this.defaults, n);
1482
+ const { transitional: r, paramsSerializer: s, headers: i } = n;
1483
+ r !== void 0 && te.assertOptions(r, {
1484
+ silentJSONParsing: F.transitional(F.boolean),
1485
+ forcedJSONParsing: F.transitional(F.boolean),
1486
+ clarifyTimeoutError: F.transitional(F.boolean)
1487
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1488
+ serialize: s
1489
+ } : te.assertOptions(s, {
1490
+ encode: F.function,
1491
+ serialize: F.function
1492
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), te.assertOptions(n, {
1493
+ baseUrl: F.spelling("baseURL"),
1494
+ withXsrfToken: F.spelling("withXSRFToken")
1495
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1496
+ let o = i && a.merge(
1497
+ i.common,
1498
+ i[n.method]
1499
+ );
1500
+ i && a.forEach(
1501
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1502
+ (u) => {
1503
+ delete i[u];
1504
+ }
1505
+ ), n.headers = T.concat(o, i);
1506
+ const c = [];
1507
+ let d = !0;
1508
+ this.interceptors.request.forEach(function(m) {
1509
+ typeof m.runWhen == "function" && m.runWhen(n) === !1 || (d = d && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1510
+ });
1511
+ const f = [];
1512
+ this.interceptors.response.forEach(function(m) {
1513
+ f.push(m.fulfilled, m.rejected);
1514
+ });
1515
+ let l, h = 0, b;
1516
+ if (!d) {
1517
+ const u = [$e.bind(this), void 0];
1518
+ for (u.unshift(...c), u.push(...f), b = u.length, l = Promise.resolve(n); h < b; )
1519
+ l = l.then(u[h++], u[h++]);
1520
+ return l;
1521
+ }
1522
+ b = c.length;
1523
+ let S = n;
1524
+ for (; h < b; ) {
1525
+ const u = c[h++], m = c[h++];
1526
+ try {
1527
+ S = u(S);
1528
+ } catch (p) {
1529
+ m.call(this, p);
1530
+ break;
1531
+ }
1532
+ }
1533
+ try {
1534
+ l = $e.call(this, S);
1535
+ } catch (u) {
1536
+ return Promise.reject(u);
1537
+ }
1538
+ for (h = 0, b = f.length; h < b; )
1539
+ l = l.then(f[h++], f[h++]);
1540
+ return l;
1541
+ }
1542
+ getUri(t) {
1543
+ t = I(this.defaults, t);
1544
+ const n = at(t.baseURL, t.url, t.allowAbsoluteUrls);
1545
+ return nt(n, t.params, t.paramsSerializer);
1546
+ }
1547
+ };
1548
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1549
+ j.prototype[t] = function(n, r) {
1550
+ return this.request(I(r || {}, {
1551
+ method: t,
1552
+ url: n,
1553
+ data: (r || {}).data
1554
+ }));
1555
+ };
1556
+ });
1557
+ a.forEach(["post", "put", "patch"], function(t) {
1558
+ function n(r) {
1559
+ return function(i, o, c) {
1560
+ return this.request(I(c || {}, {
1561
+ method: t,
1562
+ headers: r ? {
1563
+ "Content-Type": "multipart/form-data"
1564
+ } : {},
1565
+ url: i,
1566
+ data: o
1567
+ }));
1568
+ };
1569
+ }
1570
+ j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
1571
+ });
1572
+ let $n = class dt {
1573
+ constructor(t) {
1574
+ if (typeof t != "function")
1575
+ throw new TypeError("executor must be a function.");
1576
+ let n;
1577
+ this.promise = new Promise(function(i) {
1578
+ n = i;
1579
+ });
1580
+ const r = this;
1581
+ this.promise.then((s) => {
1582
+ if (!r._listeners) return;
1583
+ let i = r._listeners.length;
1584
+ for (; i-- > 0; )
1585
+ r._listeners[i](s);
1586
+ r._listeners = null;
1587
+ }), this.promise.then = (s) => {
1588
+ let i;
1589
+ const o = new Promise((c) => {
1590
+ r.subscribe(c), i = c;
1591
+ }).then(s);
1592
+ return o.cancel = function() {
1593
+ r.unsubscribe(i);
1594
+ }, o;
1595
+ }, t(function(i, o, c) {
1596
+ r.reason || (r.reason = new $(i, o, c), n(r.reason));
1597
+ });
1598
+ }
1599
+ /**
1600
+ * Throws a `CanceledError` if cancellation has been requested.
1601
+ */
1602
+ throwIfRequested() {
1603
+ if (this.reason)
1604
+ throw this.reason;
1605
+ }
1606
+ /**
1607
+ * Subscribe to the cancel signal
1608
+ */
1609
+ subscribe(t) {
1610
+ if (this.reason) {
1611
+ t(this.reason);
1612
+ return;
1613
+ }
1614
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1615
+ }
1616
+ /**
1617
+ * Unsubscribe from the cancel signal
1618
+ */
1619
+ unsubscribe(t) {
1620
+ if (!this._listeners)
1621
+ return;
1622
+ const n = this._listeners.indexOf(t);
1623
+ n !== -1 && this._listeners.splice(n, 1);
1624
+ }
1625
+ toAbortSignal() {
1626
+ const t = new AbortController(), n = (r) => {
1627
+ t.abort(r);
1628
+ };
1629
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1630
+ }
1631
+ /**
1632
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1633
+ * cancels the `CancelToken`.
1634
+ */
1635
+ static source() {
1636
+ let t;
1637
+ return {
1638
+ token: new dt(function(s) {
1639
+ t = s;
1640
+ }),
1641
+ cancel: t
1642
+ };
1643
+ }
1644
+ };
1645
+ function zn(e) {
1646
+ return function(n) {
1647
+ return e.apply(null, n);
1648
+ };
1649
+ }
1650
+ function Jn(e) {
1651
+ return a.isObject(e) && e.isAxiosError === !0;
1652
+ }
1653
+ const be = {
1654
+ Continue: 100,
1655
+ SwitchingProtocols: 101,
1656
+ Processing: 102,
1657
+ EarlyHints: 103,
1658
+ Ok: 200,
1659
+ Created: 201,
1660
+ Accepted: 202,
1661
+ NonAuthoritativeInformation: 203,
1662
+ NoContent: 204,
1663
+ ResetContent: 205,
1664
+ PartialContent: 206,
1665
+ MultiStatus: 207,
1666
+ AlreadyReported: 208,
1667
+ ImUsed: 226,
1668
+ MultipleChoices: 300,
1669
+ MovedPermanently: 301,
1670
+ Found: 302,
1671
+ SeeOther: 303,
1672
+ NotModified: 304,
1673
+ UseProxy: 305,
1674
+ Unused: 306,
1675
+ TemporaryRedirect: 307,
1676
+ PermanentRedirect: 308,
1677
+ BadRequest: 400,
1678
+ Unauthorized: 401,
1679
+ PaymentRequired: 402,
1680
+ Forbidden: 403,
1681
+ NotFound: 404,
1682
+ MethodNotAllowed: 405,
1683
+ NotAcceptable: 406,
1684
+ ProxyAuthenticationRequired: 407,
1685
+ RequestTimeout: 408,
1686
+ Conflict: 409,
1687
+ Gone: 410,
1688
+ LengthRequired: 411,
1689
+ PreconditionFailed: 412,
1690
+ PayloadTooLarge: 413,
1691
+ UriTooLong: 414,
1692
+ UnsupportedMediaType: 415,
1693
+ RangeNotSatisfiable: 416,
1694
+ ExpectationFailed: 417,
1695
+ ImATeapot: 418,
1696
+ MisdirectedRequest: 421,
1697
+ UnprocessableEntity: 422,
1698
+ Locked: 423,
1699
+ FailedDependency: 424,
1700
+ TooEarly: 425,
1701
+ UpgradeRequired: 426,
1702
+ PreconditionRequired: 428,
1703
+ TooManyRequests: 429,
1704
+ RequestHeaderFieldsTooLarge: 431,
1705
+ UnavailableForLegalReasons: 451,
1706
+ InternalServerError: 500,
1707
+ NotImplemented: 501,
1708
+ BadGateway: 502,
1709
+ ServiceUnavailable: 503,
1710
+ GatewayTimeout: 504,
1711
+ HttpVersionNotSupported: 505,
1712
+ VariantAlsoNegotiates: 506,
1713
+ InsufficientStorage: 507,
1714
+ LoopDetected: 508,
1715
+ NotExtended: 510,
1716
+ NetworkAuthenticationRequired: 511,
1717
+ WebServerIsDown: 521,
1718
+ ConnectionTimedOut: 522,
1719
+ OriginIsUnreachable: 523,
1720
+ TimeoutOccurred: 524,
1721
+ SslHandshakeFailed: 525,
1722
+ InvalidSslCertificate: 526
1723
+ };
1724
+ Object.entries(be).forEach(([e, t]) => {
1725
+ be[t] = e;
1726
+ });
1727
+ function pt(e) {
1728
+ const t = new j(e), n = Je(j.prototype.request, t);
1729
+ return a.extend(n, j.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1730
+ return pt(I(e, s));
1731
+ }, n;
1732
+ }
1733
+ const w = pt(K);
1734
+ w.Axios = j;
1735
+ w.CanceledError = $;
1736
+ w.CancelToken = $n;
1737
+ w.isCancel = ot;
1738
+ w.VERSION = ft;
1739
+ w.toFormData = ie;
1740
+ w.AxiosError = y;
1741
+ w.Cancel = w.CanceledError;
1742
+ w.all = function(t) {
1743
+ return Promise.all(t);
1744
+ };
1745
+ w.spread = zn;
1746
+ w.isAxiosError = Jn;
1747
+ w.mergeConfig = I;
1748
+ w.AxiosHeaders = T;
1749
+ w.formToJSON = (e) => st(a.isHTMLForm(e) ? new FormData(e) : e);
1750
+ w.getAdapter = ut.getAdapter;
1751
+ w.HttpStatusCode = be;
1752
+ w.default = w;
1753
+ const {
1754
+ Axios: Kn,
1755
+ AxiosError: Xn,
1756
+ CanceledError: Gn,
1757
+ isCancel: Zn,
1758
+ CancelToken: Qn,
1759
+ VERSION: Yn,
1760
+ all: er,
1761
+ Cancel: tr,
1762
+ isAxiosError: nr,
1763
+ spread: rr,
1764
+ toFormData: sr,
1765
+ AxiosHeaders: or,
1766
+ HttpStatusCode: ir,
1767
+ formToJSON: ar,
1768
+ getAdapter: cr,
1769
+ mergeConfig: lr
1770
+ } = w, ur = "#00506E", fr = "#64DC00";
1771
+ class dr {
1772
+ static get isAndroid() {
1773
+ return /android/i.test(this.userAgent);
1774
+ }
1775
+ static get isIOS() {
1776
+ return /iPad|iPhone|iPod/.test(this.userAgent);
1777
+ }
1778
+ static get isWindows() {
1779
+ return /windows/i.test(this.userAgent);
1780
+ }
1781
+ static get isMacOS() {
1782
+ return /Macintosh|MacIntel|MacPPC|Mac68K/.test(this.userAgent);
1783
+ }
1784
+ static get userAgent() {
1785
+ return typeof navigator > "u" ? "" : navigator.userAgent;
1786
+ }
1787
+ }
1788
+ const pr = () => ({
1789
+ meta: [{
1790
+ charSet: "utf-8"
1791
+ }, {
1792
+ name: "viewport",
1793
+ content: "width=device-width, initial-scale=1"
1794
+ }, {
1795
+ title: pe.VITE_APP_TITLE
1796
+ }, {
1797
+ name: "og:type",
1798
+ content: "website"
1799
+ }, {
1800
+ name: "og:title",
1801
+ content: pe.VITE_APP_TITLE
1802
+ }, {
1803
+ name: "og:image",
1804
+ content: "/favicon-32x32.png"
1805
+ }],
1806
+ links: [{
1807
+ rel: "apple-touch-icon",
1808
+ sizes: "180x180",
1809
+ href: "/apple-touch-icon.png"
1810
+ }, {
1811
+ rel: "icon",
1812
+ type: "image/png",
1813
+ sizes: "32x32",
1814
+ href: "/favicon-32x32.png"
1815
+ }, {
1816
+ rel: "icon",
1817
+ type: "image/png",
1818
+ sizes: "16x16",
1819
+ href: "/favicon-16x16.png"
1820
+ }, {
1821
+ rel: "manifest",
1822
+ href: "/manifest.webmanifest"
1823
+ }, {
1824
+ rel: "icon",
1825
+ href: "/favicon.ico"
1826
+ }]
1827
+ }), hr = w.create({
1828
+ baseURL: pe.VITE_API_URL
1829
+ // TODO: Not working in children projects
1830
+ }), mr = (e) => {
1831
+ const {
1832
+ meta: t
1833
+ } = e.state, n = t.isTouched, r = !!t.errors.length, s = t.errors[0]?.message;
1834
+ return {
1835
+ isTouched: n,
1836
+ hasError: r,
1837
+ helperText: s
1838
+ };
1839
+ }, yr = (e) => e.replaceAll(/([a-z])([A-Z])/g, "$1-$2").replaceAll(/[\s_]+/g, "-").replaceAll(/[^a-zA-Z0-9-]/g, "").toLowerCase().replaceAll(/-+/g, "-").replaceAll(/(^-|-$)/g, "");
1840
+ export {
1841
+ dr as P,
1842
+ ur as W,
1843
+ w as a,
1844
+ fr as b,
1845
+ mr as g,
1846
+ hr as h,
1847
+ pr as r,
1848
+ yr as t
1849
+ };
1850
+ //# sourceMappingURL=utils-A7xW24zq.js.map