@akad/sdk 1.0.17 → 1.0.18

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.
package/ts-lib.js CHANGED
@@ -6,40 +6,40 @@ function Be(e, t) {
6
6
  const { toString: nt } = Object.prototype, { getPrototypeOf: le } = Object, K = /* @__PURE__ */ ((e) => (t) => {
7
7
  const n = nt.call(t);
8
8
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
9
- })(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (t) => K(t) === e), W = (e) => (t) => typeof t === e, { isArray: q } = Array, $ = W("undefined");
9
+ })(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (t) => K(t) === e), v = (e) => (t) => typeof t === e, { isArray: U } = Array, $ = v("undefined");
10
10
  function rt(e) {
11
11
  return e !== null && !$(e) && e.constructor !== null && !$(e.constructor) && R(e.constructor.isBuffer) && e.constructor.isBuffer(e);
12
12
  }
13
- const Fe = A("ArrayBuffer");
13
+ const qe = A("ArrayBuffer");
14
14
  function st(e) {
15
15
  let t;
16
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Fe(e.buffer), t;
16
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qe(e.buffer), t;
17
17
  }
18
- const ot = W("string"), R = W("function"), Ue = W("number"), Q = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, z = (e) => {
18
+ const ot = v("string"), R = v("function"), Fe = v("number"), W = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, M = (e) => {
19
19
  if (K(e) !== "object")
20
20
  return !1;
21
21
  const t = le(e);
22
22
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
23
- }, at = A("Date"), ct = A("File"), ut = A("Blob"), lt = A("FileList"), ft = (e) => Q(e) && R(e.pipe), dt = (e) => {
23
+ }, at = A("Date"), ct = A("File"), ut = A("Blob"), lt = A("FileList"), ft = (e) => W(e) && R(e.pipe), dt = (e) => {
24
24
  let t;
25
25
  return e && (typeof FormData == "function" && e instanceof FormData || R(e.append) && ((t = K(e)) === "formdata" || // detect form-data instance
26
26
  t === "object" && R(e.toString) && e.toString() === "[object FormData]"));
27
- }, ht = A("URLSearchParams"), [pt, mt, yt, gt] = ["ReadableStream", "Request", "Response", "Headers"].map(A), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
27
+ }, ht = A("URLSearchParams"), [pt, mt, yt, gt] = ["ReadableStream", "Request", "Response", "Headers"].map(A), wt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
28
28
  function I(e, t, { allOwnKeys: n = !1 } = {}) {
29
29
  if (e === null || typeof e > "u")
30
30
  return;
31
31
  let r, s;
32
- if (typeof e != "object" && (e = [e]), q(e))
32
+ if (typeof e != "object" && (e = [e]), U(e))
33
33
  for (r = 0, s = e.length; r < s; r++)
34
34
  t.call(null, e[r], r, e);
35
35
  else {
36
- const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
36
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
37
37
  let u;
38
- for (r = 0; r < o; r++)
39
- u = i[r], t.call(null, e[u], u, e);
38
+ for (r = 0; r < i; r++)
39
+ u = o[r], t.call(null, e[u], u, e);
40
40
  }
41
41
  }
42
- function qe(e, t) {
42
+ function Ue(e, t) {
43
43
  t = t.toLowerCase();
44
44
  const n = Object.keys(e);
45
45
  let r = n.length, s;
@@ -51,27 +51,27 @@ function qe(e, t) {
51
51
  const Le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _e = (e) => !$(e) && e !== Le;
52
52
  function re() {
53
53
  const { caseless: e } = _e(this) && this || {}, t = {}, n = (r, s) => {
54
- const i = e && qe(t, s) || s;
55
- z(t[i]) && z(r) ? t[i] = re(t[i], r) : z(r) ? t[i] = re({}, r) : q(r) ? t[i] = r.slice() : t[i] = r;
54
+ const o = e && Ue(t, s) || s;
55
+ M(t[o]) && M(r) ? t[o] = re(t[o], r) : M(r) ? t[o] = re({}, r) : U(r) ? t[o] = r.slice() : t[o] = r;
56
56
  };
57
57
  for (let r = 0, s = arguments.length; r < s; r++)
58
58
  arguments[r] && I(arguments[r], n);
59
59
  return t;
60
60
  }
61
- const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, i) => {
62
- n && R(s) ? e[i] = Be(s, n) : e[i] = s;
63
- }, { allOwnKeys: r }), e), Tt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
61
+ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
62
+ n && R(s) ? e[o] = Be(s, n) : e[o] = s;
63
+ }, { allOwnKeys: r }), e), Tt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), St = (e, t, n, r) => {
64
64
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
65
65
  value: t.prototype
66
66
  }), n && Object.assign(e.prototype, n);
67
- }, St = (e, t, n, r) => {
68
- let s, i, o;
67
+ }, Et = (e, t, n, r) => {
68
+ let s, o, i;
69
69
  const u = {};
70
70
  if (t = t || {}, e == null)
71
71
  return t;
72
72
  do {
73
- for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
74
- o = s[i], (!r || r(o, e, t)) && !u[o] && (t[o] = e[o], u[o] = !0);
73
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
74
+ i = s[o], (!r || r(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
75
75
  e = n !== !1 && le(e);
76
76
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
77
77
  return t;
@@ -82,10 +82,10 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, i) => {
82
82
  }, Ot = (e) => {
83
83
  if (!e)
84
84
  return null;
85
- if (q(e))
85
+ if (U(e))
86
86
  return e;
87
87
  let t = e.length;
88
- if (!Ue(t))
88
+ if (!Fe(t))
89
89
  return null;
90
90
  const n = new Array(t);
91
91
  for (; t-- > 0; )
@@ -95,8 +95,8 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, i) => {
95
95
  const r = (e && e[Symbol.iterator]).call(e);
96
96
  let s;
97
97
  for (; (s = r.next()) && !s.done; ) {
98
- const i = s.value;
99
- t.call(e, i[0], i[1]);
98
+ const o = s.value;
99
+ t.call(e, o[0], o[1]);
100
100
  }
101
101
  }, Nt = (e, t) => {
102
102
  let n;
@@ -111,9 +111,9 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, i) => {
111
111
  }
112
112
  ), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), xt = A("RegExp"), De = (e, t) => {
113
113
  const n = Object.getOwnPropertyDescriptors(e), r = {};
114
- I(n, (s, i) => {
115
- let o;
116
- (o = t(s, i, e)) !== !1 && (r[i] = o || s);
114
+ I(n, (s, o) => {
115
+ let i;
116
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
117
117
  }), Object.defineProperties(e, r);
118
118
  }, Bt = (e) => {
119
119
  De(e, (t, n) => {
@@ -130,15 +130,15 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, i) => {
130
130
  });
131
131
  }
132
132
  });
133
- }, Ft = (e, t) => {
133
+ }, qt = (e, t) => {
134
134
  const n = {}, r = (s) => {
135
- s.forEach((i) => {
136
- n[i] = !0;
135
+ s.forEach((o) => {
136
+ n[o] = !0;
137
137
  });
138
138
  };
139
- return q(e) ? r(e) : r(String(e).split(t)), n;
140
- }, Ut = () => {
141
- }, qt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Z = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", $e = {
139
+ return U(e) ? r(e) : r(String(e).split(t)), n;
140
+ }, Ft = () => {
141
+ }, Ut = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Z = "abcdefghijklmnopqrstuvwxyz", ye = "0123456789", $e = {
142
142
  DIGIT: ye,
143
143
  ALPHA: Z,
144
144
  ALPHA_DIGIT: Z + Z.toUpperCase() + ye
@@ -154,32 +154,32 @@ function _t(e) {
154
154
  }
155
155
  const Dt = (e) => {
156
156
  const t = new Array(10), n = (r, s) => {
157
- if (Q(r)) {
157
+ if (W(r)) {
158
158
  if (t.indexOf(r) >= 0)
159
159
  return;
160
160
  if (!("toJSON" in r)) {
161
161
  t[s] = r;
162
- const i = q(r) ? [] : {};
163
- return I(r, (o, u) => {
164
- const f = n(o, s + 1);
165
- !$(f) && (i[u] = f);
166
- }), t[s] = void 0, i;
162
+ const o = U(r) ? [] : {};
163
+ return I(r, (i, u) => {
164
+ const f = n(i, s + 1);
165
+ !$(f) && (o[u] = f);
166
+ }), t[s] = void 0, o;
167
167
  }
168
168
  }
169
169
  return r;
170
170
  };
171
171
  return n(e, 0);
172
- }, $t = A("AsyncFunction"), It = (e) => e && (Q(e) || R(e)) && R(e.then) && R(e.catch), c = {
173
- isArray: q,
174
- isArrayBuffer: Fe,
172
+ }, $t = A("AsyncFunction"), It = (e) => e && (W(e) || R(e)) && R(e.then) && R(e.catch), c = {
173
+ isArray: U,
174
+ isArrayBuffer: qe,
175
175
  isBuffer: rt,
176
176
  isFormData: dt,
177
177
  isArrayBufferView: st,
178
178
  isString: ot,
179
- isNumber: Ue,
179
+ isNumber: Fe,
180
180
  isBoolean: it,
181
- isObject: Q,
182
- isPlainObject: z,
181
+ isObject: W,
182
+ isPlainObject: M,
183
183
  isReadableStream: pt,
184
184
  isRequest: mt,
185
185
  isResponse: yt,
@@ -196,11 +196,11 @@ const Dt = (e) => {
196
196
  isFileList: lt,
197
197
  forEach: I,
198
198
  merge: re,
199
- extend: wt,
200
- trim: bt,
199
+ extend: bt,
200
+ trim: wt,
201
201
  stripBOM: Tt,
202
- inherits: Et,
203
- toFlatObject: St,
202
+ inherits: St,
203
+ toFlatObject: Et,
204
204
  kindOf: K,
205
205
  kindOfTest: A,
206
206
  endsWith: Rt,
@@ -213,11 +213,11 @@ const Dt = (e) => {
213
213
  // an alias to avoid ESLint no-prototype-builtins detection
214
214
  reduceDescriptors: De,
215
215
  freezeMethods: Bt,
216
- toObjectSet: Ft,
216
+ toObjectSet: qt,
217
217
  toCamelCase: kt,
218
- noop: Ut,
219
- toFiniteNumber: qt,
220
- findKey: qe,
218
+ noop: Ft,
219
+ toFiniteNumber: Ut,
220
+ findKey: Ue,
221
221
  global: Le,
222
222
  isContextDefined: _e,
223
223
  ALPHABET: $e,
@@ -271,11 +271,11 @@ const Ie = y.prototype, je = {};
271
271
  });
272
272
  Object.defineProperties(y, je);
273
273
  Object.defineProperty(Ie, "isAxiosError", { value: !0 });
274
- y.from = (e, t, n, r, s, i) => {
275
- const o = Object.create(Ie);
276
- return c.toFlatObject(e, o, function(f) {
274
+ y.from = (e, t, n, r, s, o) => {
275
+ const i = Object.create(Ie);
276
+ return c.toFlatObject(e, i, function(f) {
277
277
  return f !== Error.prototype;
278
- }, (u) => u !== "isAxiosError"), y.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
278
+ }, (u) => u !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
279
279
  };
280
280
  const jt = null;
281
281
  function se(e) {
@@ -285,27 +285,27 @@ function He(e) {
285
285
  return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
286
286
  }
287
287
  function ge(e, t, n) {
288
- return e ? e.concat(t).map(function(s, i) {
289
- return s = He(s), !n && i ? "[" + s + "]" : s;
288
+ return e ? e.concat(t).map(function(s, o) {
289
+ return s = He(s), !n && o ? "[" + s + "]" : s;
290
290
  }).join(n ? "." : "") : t;
291
291
  }
292
292
  function Ht(e) {
293
293
  return c.isArray(e) && !e.some(se);
294
294
  }
295
- const Mt = c.toFlatObject(c, {}, null, function(t) {
295
+ const Jt = c.toFlatObject(c, {}, null, function(t) {
296
296
  return /^is[A-Z]/.test(t);
297
297
  });
298
- function v(e, t, n) {
298
+ function Q(e, t, n) {
299
299
  if (!c.isObject(e))
300
300
  throw new TypeError("target must be an object");
301
301
  t = t || new FormData(), n = c.toFlatObject(n, {
302
302
  metaTokens: !0,
303
303
  dots: !1,
304
304
  indexes: !1
305
- }, !1, function(p, b) {
306
- return !c.isUndefined(b[p]);
305
+ }, !1, function(p, w) {
306
+ return !c.isUndefined(w[p]);
307
307
  });
308
- const r = n.metaTokens, s = n.visitor || a, i = n.dots, o = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
308
+ const r = n.metaTokens, s = n.visitor || a, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
309
309
  if (!c.isFunction(s))
310
310
  throw new TypeError("visitor must be a function");
311
311
  function l(h) {
@@ -317,23 +317,23 @@ function v(e, t, n) {
317
317
  throw new y("Blob is not supported. Use a Buffer instead.");
318
318
  return c.isArrayBuffer(h) || c.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
319
319
  }
320
- function a(h, p, b) {
321
- let E = h;
322
- if (h && !b && typeof h == "object") {
320
+ function a(h, p, w) {
321
+ let S = h;
322
+ if (h && !w && typeof h == "object") {
323
323
  if (c.endsWith(p, "{}"))
324
324
  p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
325
- else if (c.isArray(h) && Ht(h) || (c.isFileList(h) || c.endsWith(p, "[]")) && (E = c.toArray(h)))
326
- return p = He(p), E.forEach(function(w, _) {
327
- !(c.isUndefined(w) || w === null) && t.append(
325
+ else if (c.isArray(h) && Ht(h) || (c.isFileList(h) || c.endsWith(p, "[]")) && (S = c.toArray(h)))
326
+ return p = He(p), S.forEach(function(b, _) {
327
+ !(c.isUndefined(b) || b === null) && t.append(
328
328
  // eslint-disable-next-line no-nested-ternary
329
- o === !0 ? ge([p], _, i) : o === null ? p : p + "[]",
330
- l(w)
329
+ i === !0 ? ge([p], _, o) : i === null ? p : p + "[]",
330
+ l(b)
331
331
  );
332
332
  }), !1;
333
333
  }
334
- return se(h) ? !0 : (t.append(ge(b, p, i), l(h)), !1);
334
+ return se(h) ? !0 : (t.append(ge(w, p, o), l(h)), !1);
335
335
  }
336
- const d = [], m = Object.assign(Mt, {
336
+ const d = [], m = Object.assign(Jt, {
337
337
  defaultVisitor: a,
338
338
  convertValue: l,
339
339
  isVisitable: se
@@ -342,14 +342,14 @@ function v(e, t, n) {
342
342
  if (!c.isUndefined(h)) {
343
343
  if (d.indexOf(h) !== -1)
344
344
  throw Error("Circular reference detected in " + p.join("."));
345
- d.push(h), c.forEach(h, function(E, N) {
346
- (!(c.isUndefined(E) || E === null) && s.call(
345
+ d.push(h), c.forEach(h, function(S, N) {
346
+ (!(c.isUndefined(S) || S === null) && s.call(
347
347
  t,
348
- E,
348
+ S,
349
349
  c.isString(N) ? N.trim() : N,
350
350
  p,
351
351
  m
352
- )) === !0 && g(E, p ? p.concat(N) : [N]);
352
+ )) === !0 && g(S, p ? p.concat(N) : [N]);
353
353
  }), d.pop();
354
354
  }
355
355
  }
@@ -357,7 +357,7 @@ function v(e, t, n) {
357
357
  throw new TypeError("data must be an object");
358
358
  return g(e), t;
359
359
  }
360
- function be(e) {
360
+ function we(e) {
361
361
  const t = {
362
362
  "!": "%21",
363
363
  "'": "%27",
@@ -372,35 +372,35 @@ function be(e) {
372
372
  });
373
373
  }
374
374
  function fe(e, t) {
375
- this._pairs = [], e && v(e, this, t);
375
+ this._pairs = [], e && Q(e, this, t);
376
376
  }
377
- const Me = fe.prototype;
378
- Me.append = function(t, n) {
377
+ const Je = fe.prototype;
378
+ Je.append = function(t, n) {
379
379
  this._pairs.push([t, n]);
380
380
  };
381
- Me.toString = function(t) {
381
+ Je.toString = function(t) {
382
382
  const n = t ? function(r) {
383
- return t.call(this, r, be);
384
- } : be;
383
+ return t.call(this, r, we);
384
+ } : we;
385
385
  return this._pairs.map(function(s) {
386
386
  return n(s[0]) + "=" + n(s[1]);
387
387
  }, "").join("&");
388
388
  };
389
- function zt(e) {
389
+ function Mt(e) {
390
390
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
391
391
  }
392
- function ze(e, t, n) {
392
+ function Me(e, t, n) {
393
393
  if (!t)
394
394
  return e;
395
- const r = n && n.encode || zt, s = n && n.serialize;
396
- let i;
397
- if (s ? i = s(t, n) : i = c.isURLSearchParams(t) ? t.toString() : new fe(t, n).toString(r), i) {
398
- const o = e.indexOf("#");
399
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
395
+ const r = n && n.encode || Mt, s = n && n.serialize;
396
+ let o;
397
+ if (s ? o = s(t, n) : o = c.isURLSearchParams(t) ? t.toString() : new fe(t, n).toString(r), o) {
398
+ const i = e.indexOf("#");
399
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
400
400
  }
401
401
  return e;
402
402
  }
403
- class we {
403
+ class be {
404
404
  constructor() {
405
405
  this.handlers = [];
406
406
  }
@@ -454,33 +454,33 @@ class we {
454
454
  });
455
455
  }
456
456
  }
457
- const Je = {
457
+ const ze = {
458
458
  silentJSONParsing: !0,
459
459
  forcedJSONParsing: !0,
460
460
  clarifyTimeoutError: !1
461
- }, Jt = typeof URLSearchParams < "u" ? URLSearchParams : fe, Vt = typeof FormData < "u" ? FormData : null, Gt = typeof Blob < "u" ? Blob : null, Kt = {
461
+ }, zt = typeof URLSearchParams < "u" ? URLSearchParams : fe, Vt = typeof FormData < "u" ? FormData : null, Gt = typeof Blob < "u" ? Blob : null, Kt = {
462
462
  isBrowser: !0,
463
463
  classes: {
464
- URLSearchParams: Jt,
464
+ URLSearchParams: zt,
465
465
  FormData: Vt,
466
466
  Blob: Gt
467
467
  },
468
468
  protocols: ["http", "https", "file", "blob", "url", "data"]
469
- }, de = typeof window < "u" && typeof document < "u", Wt = ((e) => de && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Qt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
470
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", vt = de && window.location.href || "http://localhost", Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
469
+ }, de = typeof window < "u" && typeof document < "u", vt = ((e) => de && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Wt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
470
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Qt = de && window.location.href || "http://localhost", Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
471
471
  __proto__: null,
472
472
  hasBrowserEnv: de,
473
- hasStandardBrowserEnv: Wt,
474
- hasStandardBrowserWebWorkerEnv: Qt,
475
- origin: vt
473
+ hasStandardBrowserEnv: vt,
474
+ hasStandardBrowserWebWorkerEnv: Wt,
475
+ origin: Qt
476
476
  }, Symbol.toStringTag, { value: "Module" })), O = {
477
477
  ...Xt,
478
478
  ...Kt
479
479
  };
480
480
  function Zt(e, t) {
481
- return v(e, new O.classes.URLSearchParams(), Object.assign({
482
- visitor: function(n, r, s, i) {
483
- return O.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
481
+ return Q(e, new O.classes.URLSearchParams(), Object.assign({
482
+ visitor: function(n, r, s, o) {
483
+ return O.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
484
484
  }
485
485
  }, t));
486
486
  }
@@ -491,18 +491,18 @@ function en(e) {
491
491
  const t = {}, n = Object.keys(e);
492
492
  let r;
493
493
  const s = n.length;
494
- let i;
494
+ let o;
495
495
  for (r = 0; r < s; r++)
496
- i = n[r], t[i] = e[i];
496
+ o = n[r], t[o] = e[o];
497
497
  return t;
498
498
  }
499
499
  function Ve(e) {
500
- function t(n, r, s, i) {
501
- let o = n[i++];
502
- if (o === "__proto__")
500
+ function t(n, r, s, o) {
501
+ let i = n[o++];
502
+ if (i === "__proto__")
503
503
  return !0;
504
- const u = Number.isFinite(+o), f = i >= n.length;
505
- return o = !o && c.isArray(s) ? s.length : o, f ? (c.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !u) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && c.isArray(s[o]) && (s[o] = en(s[o])), !u);
504
+ const u = Number.isFinite(+i), f = o >= n.length;
505
+ return i = !i && c.isArray(s) ? s.length : i, f ? (c.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !u) : ((!s[i] || !c.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && c.isArray(s[i]) && (s[i] = en(s[i])), !u);
506
506
  }
507
507
  if (c.isFormData(e) && c.isFunction(e.entries)) {
508
508
  const n = {};
@@ -523,11 +523,11 @@ function tn(e, t, n) {
523
523
  return (n || JSON.stringify)(e);
524
524
  }
525
525
  const j = {
526
- transitional: Je,
526
+ transitional: ze,
527
527
  adapter: ["xhr", "http", "fetch"],
528
528
  transformRequest: [function(t, n) {
529
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = c.isObject(t);
530
- if (i && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
529
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = c.isObject(t);
530
+ if (o && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
531
531
  return s ? JSON.stringify(Ve(t)) : t;
532
532
  if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
533
533
  return t;
@@ -536,30 +536,30 @@ const j = {
536
536
  if (c.isURLSearchParams(t))
537
537
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
538
538
  let u;
539
- if (i) {
539
+ if (o) {
540
540
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
541
541
  return Zt(t, this.formSerializer).toString();
542
542
  if ((u = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
543
543
  const f = this.env && this.env.FormData;
544
- return v(
544
+ return Q(
545
545
  u ? { "files[]": t } : t,
546
546
  f && new f(),
547
547
  this.formSerializer
548
548
  );
549
549
  }
550
550
  }
551
- return i || s ? (n.setContentType("application/json", !1), tn(t)) : t;
551
+ return o || s ? (n.setContentType("application/json", !1), tn(t)) : t;
552
552
  }],
553
553
  transformResponse: [function(t) {
554
554
  const n = this.transitional || j.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
555
555
  if (c.isResponse(t) || c.isReadableStream(t))
556
556
  return t;
557
557
  if (t && c.isString(t) && (r && !this.responseType || s)) {
558
- const o = !(n && n.silentJSONParsing) && s;
558
+ const i = !(n && n.silentJSONParsing) && s;
559
559
  try {
560
560
  return JSON.parse(t);
561
561
  } catch (u) {
562
- if (o)
562
+ if (i)
563
563
  throw u.name === "SyntaxError" ? y.from(u, y.ERR_BAD_RESPONSE, this, null, this.response) : u;
564
564
  }
565
565
  }
@@ -613,15 +613,15 @@ const nn = c.toObjectSet([
613
613
  const t = {};
614
614
  let n, r, s;
615
615
  return e && e.split(`
616
- `).forEach(function(o) {
617
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
616
+ `).forEach(function(i) {
617
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
618
618
  }), t;
619
619
  }, Te = Symbol("internals");
620
620
  function D(e) {
621
621
  return e && String(e).trim().toLowerCase();
622
622
  }
623
- function J(e) {
624
- return e === !1 || e == null ? e : c.isArray(e) ? e.map(J) : String(e);
623
+ function z(e) {
624
+ return e === !1 || e == null ? e : c.isArray(e) ? e.map(z) : String(e);
625
625
  }
626
626
  function sn(e) {
627
627
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -648,36 +648,36 @@ function cn(e, t) {
648
648
  const n = c.toCamelCase(" " + t);
649
649
  ["get", "set", "has"].forEach((r) => {
650
650
  Object.defineProperty(e, r + n, {
651
- value: function(s, i, o) {
652
- return this[r].call(this, t, s, i, o);
651
+ value: function(s, o, i) {
652
+ return this[r].call(this, t, s, o, i);
653
653
  },
654
654
  configurable: !0
655
655
  });
656
656
  });
657
657
  }
658
- let S = class {
658
+ let E = class {
659
659
  constructor(t) {
660
660
  t && this.set(t);
661
661
  }
662
662
  set(t, n, r) {
663
663
  const s = this;
664
- function i(u, f, l) {
664
+ function o(u, f, l) {
665
665
  const a = D(f);
666
666
  if (!a)
667
667
  throw new Error("header name must be a non-empty string");
668
668
  const d = c.findKey(s, a);
669
- (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = J(u));
669
+ (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = z(u));
670
670
  }
671
- const o = (u, f) => c.forEach(u, (l, a) => i(l, a, f));
671
+ const i = (u, f) => c.forEach(u, (l, a) => o(l, a, f));
672
672
  if (c.isPlainObject(t) || t instanceof this.constructor)
673
- o(t, n);
673
+ i(t, n);
674
674
  else if (c.isString(t) && (t = t.trim()) && !on(t))
675
- o(rn(t), n);
675
+ i(rn(t), n);
676
676
  else if (c.isHeaders(t))
677
677
  for (const [u, f] of t.entries())
678
- i(f, u, r);
678
+ o(f, u, r);
679
679
  else
680
- t != null && i(n, t, r);
680
+ t != null && o(n, t, r);
681
681
  return this;
682
682
  }
683
683
  get(t, n) {
@@ -707,33 +707,33 @@ let S = class {
707
707
  delete(t, n) {
708
708
  const r = this;
709
709
  let s = !1;
710
- function i(o) {
711
- if (o = D(o), o) {
712
- const u = c.findKey(r, o);
710
+ function o(i) {
711
+ if (i = D(i), i) {
712
+ const u = c.findKey(r, i);
713
713
  u && (!n || Y(r, r[u], u, n)) && (delete r[u], s = !0);
714
714
  }
715
715
  }
716
- return c.isArray(t) ? t.forEach(i) : i(t), s;
716
+ return c.isArray(t) ? t.forEach(o) : o(t), s;
717
717
  }
718
718
  clear(t) {
719
719
  const n = Object.keys(this);
720
720
  let r = n.length, s = !1;
721
721
  for (; r--; ) {
722
- const i = n[r];
723
- (!t || Y(this, this[i], i, t, !0)) && (delete this[i], s = !0);
722
+ const o = n[r];
723
+ (!t || Y(this, this[o], o, t, !0)) && (delete this[o], s = !0);
724
724
  }
725
725
  return s;
726
726
  }
727
727
  normalize(t) {
728
728
  const n = this, r = {};
729
- return c.forEach(this, (s, i) => {
730
- const o = c.findKey(r, i);
731
- if (o) {
732
- n[o] = J(s), delete n[i];
729
+ return c.forEach(this, (s, o) => {
730
+ const i = c.findKey(r, o);
731
+ if (i) {
732
+ n[i] = z(s), delete n[o];
733
733
  return;
734
734
  }
735
- const u = t ? an(i) : String(i).trim();
736
- u !== i && delete n[i], n[u] = J(s), r[u] = !0;
735
+ const u = t ? an(o) : String(o).trim();
736
+ u !== o && delete n[o], n[u] = z(s), r[u] = !0;
737
737
  }), this;
738
738
  }
739
739
  concat(...t) {
@@ -766,15 +766,15 @@ let S = class {
766
766
  const r = (this[Te] = this[Te] = {
767
767
  accessors: {}
768
768
  }).accessors, s = this.prototype;
769
- function i(o) {
770
- const u = D(o);
771
- r[u] || (cn(s, o), r[u] = !0);
769
+ function o(i) {
770
+ const u = D(i);
771
+ r[u] || (cn(s, i), r[u] = !0);
772
772
  }
773
- return c.isArray(t) ? t.forEach(i) : i(t), this;
773
+ return c.isArray(t) ? t.forEach(o) : o(t), this;
774
774
  }
775
775
  };
776
- S.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
777
- c.reduceDescriptors(S.prototype, ({ value: e }, t) => {
776
+ E.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
777
+ c.reduceDescriptors(E.prototype, ({ value: e }, t) => {
778
778
  let n = t[0].toUpperCase() + t.slice(1);
779
779
  return {
780
780
  get: () => e,
@@ -783,13 +783,13 @@ c.reduceDescriptors(S.prototype, ({ value: e }, t) => {
783
783
  }
784
784
  };
785
785
  });
786
- c.freezeMethods(S);
786
+ c.freezeMethods(E);
787
787
  function ee(e, t) {
788
- const n = this || j, r = t || n, s = S.from(r.headers);
789
- let i = r.data;
788
+ const n = this || j, r = t || n, s = E.from(r.headers);
789
+ let o = r.data;
790
790
  return c.forEach(e, function(u) {
791
- i = u.call(n, i, s.normalize(), t ? t.status : void 0);
792
- }), s.normalize(), i;
791
+ o = u.call(n, o, s.normalize(), t ? t.status : void 0);
792
+ }), s.normalize(), o;
793
793
  }
794
794
  function Ge(e) {
795
795
  return !!(e && e.__CANCEL__);
@@ -817,14 +817,14 @@ function un(e) {
817
817
  function ln(e, t) {
818
818
  e = e || 10;
819
819
  const n = new Array(e), r = new Array(e);
820
- let s = 0, i = 0, o;
820
+ let s = 0, o = 0, i;
821
821
  return t = t !== void 0 ? t : 1e3, function(f) {
822
- const l = Date.now(), a = r[i];
823
- o || (o = l), n[s] = f, r[s] = l;
824
- let d = i, m = 0;
822
+ const l = Date.now(), a = r[o];
823
+ i || (i = l), n[s] = f, r[s] = l;
824
+ let d = o, m = 0;
825
825
  for (; d !== s; )
826
826
  m += n[d++], d = d % e;
827
- if (s = (s + 1) % e, s === i && (i = (i + 1) % e), l - o < t)
827
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
828
828
  return;
829
829
  const g = a && l - a;
830
830
  return g ? Math.round(m * 1e3 / g) : void 0;
@@ -835,8 +835,8 @@ function fn(e, t) {
835
835
  const r = 1e3 / t;
836
836
  let s = null;
837
837
  return function() {
838
- const o = this === !0, u = Date.now();
839
- if (o || u - n > r)
838
+ const i = this === !0, u = Date.now();
839
+ if (i || u - n > r)
840
840
  return s && (clearTimeout(s), s = null), n = u, e.apply(null, arguments);
841
841
  s || (s = setTimeout(() => (s = null, n = Date.now(), e.apply(null, arguments)), r - (u - n)));
842
842
  };
@@ -844,17 +844,17 @@ function fn(e, t) {
844
844
  const V = (e, t, n = 3) => {
845
845
  let r = 0;
846
846
  const s = ln(50, 250);
847
- return fn((i) => {
848
- const o = i.loaded, u = i.lengthComputable ? i.total : void 0, f = o - r, l = s(f), a = o <= u;
849
- r = o;
847
+ return fn((o) => {
848
+ const i = o.loaded, u = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), a = i <= u;
849
+ r = i;
850
850
  const d = {
851
- loaded: o,
851
+ loaded: i,
852
852
  total: u,
853
- progress: u ? o / u : void 0,
853
+ progress: u ? i / u : void 0,
854
854
  bytes: f,
855
855
  rate: l || void 0,
856
- estimated: l && u && a ? (u - o) / l : void 0,
857
- event: i,
856
+ estimated: l && u && a ? (u - i) / l : void 0,
857
+ event: o,
858
858
  lengthComputable: u != null
859
859
  };
860
860
  d[t ? "download" : "upload"] = !0, e(d);
@@ -865,9 +865,9 @@ const V = (e, t, n = 3) => {
865
865
  function() {
866
866
  const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
867
867
  let r;
868
- function s(i) {
869
- let o = i;
870
- return t && (n.setAttribute("href", o), o = n.href), n.setAttribute("href", o), {
868
+ function s(o) {
869
+ let i = o;
870
+ return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
871
871
  href: n.href,
872
872
  protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
873
873
  host: n.host,
@@ -878,8 +878,8 @@ const V = (e, t, n = 3) => {
878
878
  pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
879
879
  };
880
880
  }
881
- return r = s(window.location.href), function(o) {
882
- const u = c.isString(o) ? s(o) : o;
881
+ return r = s(window.location.href), function(i) {
882
+ const u = c.isString(i) ? s(i) : i;
883
883
  return u.protocol === r.protocol && u.host === r.host;
884
884
  };
885
885
  }()
@@ -893,9 +893,9 @@ const V = (e, t, n = 3) => {
893
893
  ), hn = O.hasStandardBrowserEnv ? (
894
894
  // Standard browser envs support document.cookie
895
895
  {
896
- write(e, t, n, r, s, i) {
897
- const o = [e + "=" + encodeURIComponent(t)];
898
- c.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), c.isString(r) && o.push("path=" + r), c.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
896
+ write(e, t, n, r, s, o) {
897
+ const i = [e + "=" + encodeURIComponent(t)];
898
+ c.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), c.isString(r) && i.push("path=" + r), c.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
899
899
  },
900
900
  read(e) {
901
901
  const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
@@ -923,11 +923,11 @@ function pn(e) {
923
923
  function mn(e, t) {
924
924
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
925
925
  }
926
- function We(e, t) {
926
+ function ve(e, t) {
927
927
  return e && !pn(t) ? mn(e, t) : t;
928
928
  }
929
- const Ee = (e) => e instanceof S ? { ...e } : e;
930
- function F(e, t) {
929
+ const Se = (e) => e instanceof E ? { ...e } : e;
930
+ function q(e, t) {
931
931
  t = t || {};
932
932
  const n = {};
933
933
  function r(l, a, d) {
@@ -940,11 +940,11 @@ function F(e, t) {
940
940
  } else
941
941
  return r(l, a, d);
942
942
  }
943
- function i(l, a) {
943
+ function o(l, a) {
944
944
  if (!c.isUndefined(a))
945
945
  return r(void 0, a);
946
946
  }
947
- function o(l, a) {
947
+ function i(l, a) {
948
948
  if (c.isUndefined(a)) {
949
949
  if (!c.isUndefined(l))
950
950
  return r(void 0, l);
@@ -958,67 +958,67 @@ function F(e, t) {
958
958
  return r(void 0, l);
959
959
  }
960
960
  const f = {
961
- url: i,
962
- method: i,
963
- data: i,
964
- baseURL: o,
965
- transformRequest: o,
966
- transformResponse: o,
967
- paramsSerializer: o,
968
- timeout: o,
969
- timeoutMessage: o,
970
- withCredentials: o,
971
- withXSRFToken: o,
972
- adapter: o,
973
- responseType: o,
974
- xsrfCookieName: o,
975
- xsrfHeaderName: o,
976
- onUploadProgress: o,
977
- onDownloadProgress: o,
978
- decompress: o,
979
- maxContentLength: o,
980
- maxBodyLength: o,
981
- beforeRedirect: o,
982
- transport: o,
983
- httpAgent: o,
984
- httpsAgent: o,
985
- cancelToken: o,
986
- socketPath: o,
987
- responseEncoding: o,
961
+ url: o,
962
+ method: o,
963
+ data: o,
964
+ baseURL: i,
965
+ transformRequest: i,
966
+ transformResponse: i,
967
+ paramsSerializer: i,
968
+ timeout: i,
969
+ timeoutMessage: i,
970
+ withCredentials: i,
971
+ withXSRFToken: i,
972
+ adapter: i,
973
+ responseType: i,
974
+ xsrfCookieName: i,
975
+ xsrfHeaderName: i,
976
+ onUploadProgress: i,
977
+ onDownloadProgress: i,
978
+ decompress: i,
979
+ maxContentLength: i,
980
+ maxBodyLength: i,
981
+ beforeRedirect: i,
982
+ transport: i,
983
+ httpAgent: i,
984
+ httpsAgent: i,
985
+ cancelToken: i,
986
+ socketPath: i,
987
+ responseEncoding: i,
988
988
  validateStatus: u,
989
- headers: (l, a) => s(Ee(l), Ee(a), !0)
989
+ headers: (l, a) => s(Se(l), Se(a), !0)
990
990
  };
991
991
  return c.forEach(Object.keys(Object.assign({}, e, t)), function(a) {
992
992
  const d = f[a] || s, m = d(e[a], t[a], a);
993
993
  c.isUndefined(m) && d !== u || (n[a] = m);
994
994
  }), n;
995
995
  }
996
- const Qe = (e) => {
997
- const t = F({}, e);
998
- let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: u } = t;
999
- t.headers = o = S.from(o), t.url = ze(We(t.baseURL, t.url), e.params, e.paramsSerializer), u && o.set(
996
+ const We = (e) => {
997
+ const t = q({}, e);
998
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: u } = t;
999
+ t.headers = i = E.from(i), t.url = Me(ve(t.baseURL, t.url), e.params, e.paramsSerializer), u && i.set(
1000
1000
  "Authorization",
1001
1001
  "Basic " + btoa((u.username || "") + ":" + (u.password ? unescape(encodeURIComponent(u.password)) : ""))
1002
1002
  );
1003
1003
  let f;
1004
1004
  if (c.isFormData(n)) {
1005
1005
  if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
1006
- o.setContentType(void 0);
1007
- else if ((f = o.getContentType()) !== !1) {
1006
+ i.setContentType(void 0);
1007
+ else if ((f = i.getContentType()) !== !1) {
1008
1008
  const [l, ...a] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1009
- o.setContentType([l || "multipart/form-data", ...a].join("; "));
1009
+ i.setContentType([l || "multipart/form-data", ...a].join("; "));
1010
1010
  }
1011
1011
  }
1012
1012
  if (O.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && dn(t.url))) {
1013
- const l = s && i && hn.read(i);
1014
- l && o.set(s, l);
1013
+ const l = s && o && hn.read(o);
1014
+ l && i.set(s, l);
1015
1015
  }
1016
1016
  return t;
1017
1017
  }, yn = typeof XMLHttpRequest < "u", gn = yn && function(e) {
1018
1018
  return new Promise(function(n, r) {
1019
- const s = Qe(e);
1020
- let i = s.data;
1021
- const o = S.from(s.headers).normalize();
1019
+ const s = We(e);
1020
+ let o = s.data;
1021
+ const i = E.from(s.headers).normalize();
1022
1022
  let { responseType: u } = s, f;
1023
1023
  function l() {
1024
1024
  s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
@@ -1028,7 +1028,7 @@ const Qe = (e) => {
1028
1028
  function d() {
1029
1029
  if (!a)
1030
1030
  return;
1031
- const g = S.from(
1031
+ const g = E.from(
1032
1032
  "getAllResponseHeaders" in a && a.getAllResponseHeaders()
1033
1033
  ), p = {
1034
1034
  data: !u || u === "text" || u === "json" ? a.responseText : a.response,
@@ -1038,10 +1038,10 @@ const Qe = (e) => {
1038
1038
  config: e,
1039
1039
  request: a
1040
1040
  };
1041
- Ke(function(E) {
1042
- n(E), l();
1043
- }, function(E) {
1044
- r(E), l();
1041
+ Ke(function(S) {
1042
+ n(S), l();
1043
+ }, function(S) {
1044
+ r(S), l();
1045
1045
  }, p), a = null;
1046
1046
  }
1047
1047
  "onloadend" in a ? a.onloadend = d : a.onreadystatechange = function() {
@@ -1052,14 +1052,14 @@ const Qe = (e) => {
1052
1052
  r(new y("Network Error", y.ERR_NETWORK, s, a)), a = null;
1053
1053
  }, a.ontimeout = function() {
1054
1054
  let h = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1055
- const p = s.transitional || Je;
1055
+ const p = s.transitional || ze;
1056
1056
  s.timeoutErrorMessage && (h = s.timeoutErrorMessage), r(new y(
1057
1057
  h,
1058
1058
  p.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1059
1059
  s,
1060
1060
  a
1061
1061
  )), a = null;
1062
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in a && c.forEach(o.toJSON(), function(h, p) {
1062
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in a && c.forEach(i.toJSON(), function(h, p) {
1063
1063
  a.setRequestHeader(p, h);
1064
1064
  }), c.isUndefined(s.withCredentials) || (a.withCredentials = !!s.withCredentials), u && u !== "json" && (a.responseType = s.responseType), typeof s.onDownloadProgress == "function" && a.addEventListener("progress", V(s.onDownloadProgress, !0)), typeof s.onUploadProgress == "function" && a.upload && a.upload.addEventListener("progress", V(s.onUploadProgress)), (s.cancelToken || s.signal) && (f = (g) => {
1065
1065
  a && (r(!g || g.type ? new L(null, e, a) : g), a.abort(), a = null);
@@ -1069,31 +1069,31 @@ const Qe = (e) => {
1069
1069
  r(new y("Unsupported protocol " + m + ":", y.ERR_BAD_REQUEST, e));
1070
1070
  return;
1071
1071
  }
1072
- a.send(i || null);
1072
+ a.send(o || null);
1073
1073
  });
1074
- }, bn = (e, t) => {
1074
+ }, wn = (e, t) => {
1075
1075
  let n = new AbortController(), r;
1076
1076
  const s = function(f) {
1077
1077
  if (!r) {
1078
- r = !0, o();
1078
+ r = !0, i();
1079
1079
  const l = f instanceof Error ? f : this.reason;
1080
1080
  n.abort(l instanceof y ? l : new L(l instanceof Error ? l.message : l));
1081
1081
  }
1082
1082
  };
1083
- let i = t && setTimeout(() => {
1083
+ let o = t && setTimeout(() => {
1084
1084
  s(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1085
1085
  }, t);
1086
- const o = () => {
1087
- e && (i && clearTimeout(i), i = null, e.forEach((f) => {
1086
+ const i = () => {
1087
+ e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1088
1088
  f && (f.removeEventListener ? f.removeEventListener("abort", s) : f.unsubscribe(s));
1089
1089
  }), e = null);
1090
1090
  };
1091
1091
  e.forEach((f) => f && f.addEventListener && f.addEventListener("abort", s));
1092
1092
  const { signal: u } = n;
1093
- return u.unsubscribe = o, [u, () => {
1094
- i && clearTimeout(i), i = null;
1093
+ return u.unsubscribe = i, [u, () => {
1094
+ o && clearTimeout(o), o = null;
1095
1095
  }];
1096
- }, wn = function* (e, t) {
1096
+ }, bn = function* (e, t) {
1097
1097
  let n = e.byteLength;
1098
1098
  if (!t || n < t) {
1099
1099
  yield e;
@@ -1104,23 +1104,23 @@ const Qe = (e) => {
1104
1104
  s = r + t, yield e.slice(r, s), r = s;
1105
1105
  }, Tn = async function* (e, t, n) {
1106
1106
  for await (const r of e)
1107
- yield* wn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
1108
- }, Se = (e, t, n, r, s) => {
1109
- const i = Tn(e, t, s);
1110
- let o = 0;
1107
+ yield* bn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
1108
+ }, Ee = (e, t, n, r, s) => {
1109
+ const o = Tn(e, t, s);
1110
+ let i = 0;
1111
1111
  return new ReadableStream({
1112
1112
  type: "bytes",
1113
1113
  async pull(u) {
1114
- const { done: f, value: l } = await i.next();
1114
+ const { done: f, value: l } = await o.next();
1115
1115
  if (f) {
1116
1116
  u.close(), r();
1117
1117
  return;
1118
1118
  }
1119
1119
  let a = l.byteLength;
1120
- n && n(o += a), u.enqueue(new Uint8Array(l));
1120
+ n && n(i += a), u.enqueue(new Uint8Array(l));
1121
1121
  },
1122
1122
  cancel(u) {
1123
- return r(u), i.return();
1123
+ return r(u), o.return();
1124
1124
  }
1125
1125
  }, {
1126
1126
  highWaterMark: 2
@@ -1132,7 +1132,7 @@ const Qe = (e) => {
1132
1132
  total: e,
1133
1133
  loaded: r
1134
1134
  }));
1135
- }, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ve = X && typeof ReadableStream == "function", oe = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), En = ve && (() => {
1135
+ }, X = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Qe = X && typeof ReadableStream == "function", oe = X && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Sn = Qe && (() => {
1136
1136
  let e = !1;
1137
1137
  const t = new Request(O.origin, {
1138
1138
  body: new ReadableStream(),
@@ -1142,7 +1142,7 @@ const Qe = (e) => {
1142
1142
  }
1143
1143
  }).headers.has("Content-Type");
1144
1144
  return e && !t;
1145
- })(), Oe = 64 * 1024, ie = ve && !!(() => {
1145
+ })(), Oe = 64 * 1024, ie = Qe && !!(() => {
1146
1146
  try {
1147
1147
  return c.isReadableStream(new Response("").body);
1148
1148
  } catch {
@@ -1157,7 +1157,7 @@ X && ((e) => {
1157
1157
  });
1158
1158
  });
1159
1159
  })(new Response());
1160
- const Sn = async (e) => {
1160
+ const En = async (e) => {
1161
1161
  if (e == null)
1162
1162
  return 0;
1163
1163
  if (c.isBlob(e))
@@ -1170,43 +1170,43 @@ const Sn = async (e) => {
1170
1170
  return (await oe(e)).byteLength;
1171
1171
  }, Rn = async (e, t) => {
1172
1172
  const n = c.toFiniteNumber(e.getContentLength());
1173
- return n ?? Sn(t);
1173
+ return n ?? En(t);
1174
1174
  }, On = X && (async (e) => {
1175
1175
  let {
1176
1176
  url: t,
1177
1177
  method: n,
1178
1178
  data: r,
1179
1179
  signal: s,
1180
- cancelToken: i,
1181
- timeout: o,
1180
+ cancelToken: o,
1181
+ timeout: i,
1182
1182
  onDownloadProgress: u,
1183
1183
  onUploadProgress: f,
1184
1184
  responseType: l,
1185
1185
  headers: a,
1186
1186
  withCredentials: d = "same-origin",
1187
1187
  fetchOptions: m
1188
- } = Qe(e);
1188
+ } = We(e);
1189
1189
  l = l ? (l + "").toLowerCase() : "text";
1190
- let [g, h] = s || i || o ? bn([s, i], o) : [], p, b;
1191
- const E = () => {
1190
+ let [g, h] = s || o || i ? wn([s, o], i) : [], p, w;
1191
+ const S = () => {
1192
1192
  !p && setTimeout(() => {
1193
1193
  g && g.unsubscribe();
1194
1194
  }), p = !0;
1195
1195
  };
1196
1196
  let N;
1197
1197
  try {
1198
- if (f && En && n !== "get" && n !== "head" && (N = await Rn(a, r)) !== 0) {
1198
+ if (f && Sn && n !== "get" && n !== "head" && (N = await Rn(a, r)) !== 0) {
1199
1199
  let C = new Request(t, {
1200
1200
  method: "POST",
1201
1201
  body: r,
1202
1202
  duplex: "half"
1203
- }), U;
1204
- c.isFormData(r) && (U = C.headers.get("content-type")) && a.setContentType(U), C.body && (r = Se(C.body, Oe, Re(
1203
+ }), F;
1204
+ c.isFormData(r) && (F = C.headers.get("content-type")) && a.setContentType(F), C.body && (r = Ee(C.body, Oe, Re(
1205
1205
  N,
1206
1206
  V(f)
1207
1207
  ), null, oe));
1208
1208
  }
1209
- c.isString(d) || (d = d ? "cors" : "omit"), b = new Request(t, {
1209
+ c.isString(d) || (d = d ? "cors" : "omit"), w = new Request(t, {
1210
1210
  ...m,
1211
1211
  signal: g,
1212
1212
  method: n.toUpperCase(),
@@ -1215,41 +1215,41 @@ const Sn = async (e) => {
1215
1215
  duplex: "half",
1216
1216
  withCredentials: d
1217
1217
  });
1218
- let w = await fetch(b);
1218
+ let b = await fetch(w);
1219
1219
  const _ = ie && (l === "stream" || l === "response");
1220
1220
  if (ie && (u || _)) {
1221
1221
  const C = {};
1222
1222
  ["status", "statusText", "headers"].forEach((pe) => {
1223
- C[pe] = w[pe];
1223
+ C[pe] = b[pe];
1224
1224
  });
1225
- const U = c.toFiniteNumber(w.headers.get("content-length"));
1226
- w = new Response(
1227
- Se(w.body, Oe, u && Re(
1228
- U,
1225
+ const F = c.toFiniteNumber(b.headers.get("content-length"));
1226
+ b = new Response(
1227
+ Ee(b.body, Oe, u && Re(
1228
+ F,
1229
1229
  V(u, !0)
1230
- ), _ && E, oe),
1230
+ ), _ && S, oe),
1231
1231
  C
1232
1232
  );
1233
1233
  }
1234
1234
  l = l || "text";
1235
- let tt = await G[c.findKey(G, l) || "text"](w, e);
1236
- return !_ && E(), h && h(), await new Promise((C, U) => {
1237
- Ke(C, U, {
1235
+ let tt = await G[c.findKey(G, l) || "text"](b, e);
1236
+ return !_ && S(), h && h(), await new Promise((C, F) => {
1237
+ Ke(C, F, {
1238
1238
  data: tt,
1239
- headers: S.from(w.headers),
1240
- status: w.status,
1241
- statusText: w.statusText,
1239
+ headers: E.from(b.headers),
1240
+ status: b.status,
1241
+ statusText: b.statusText,
1242
1242
  config: e,
1243
- request: b
1243
+ request: w
1244
1244
  });
1245
1245
  });
1246
- } catch (w) {
1247
- throw E(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
1248
- new y("Network Error", y.ERR_NETWORK, e, b),
1246
+ } catch (b) {
1247
+ throw S(), b && b.name === "TypeError" && /fetch/i.test(b.message) ? Object.assign(
1248
+ new y("Network Error", y.ERR_NETWORK, e, w),
1249
1249
  {
1250
- cause: w.cause || w
1250
+ cause: b.cause || b
1251
1251
  }
1252
- ) : y.from(w, w && w.code, e, b);
1252
+ ) : y.from(b, b && b.code, e, w);
1253
1253
  }
1254
1254
  }), ae = {
1255
1255
  http: jt,
@@ -1271,24 +1271,24 @@ const Ae = (e) => `- ${e}`, An = (e) => c.isFunction(e) || e === null || e === !
1271
1271
  const { length: t } = e;
1272
1272
  let n, r;
1273
1273
  const s = {};
1274
- for (let i = 0; i < t; i++) {
1275
- n = e[i];
1276
- let o;
1277
- if (r = n, !An(n) && (r = ae[(o = String(n)).toLowerCase()], r === void 0))
1278
- throw new y(`Unknown adapter '${o}'`);
1274
+ for (let o = 0; o < t; o++) {
1275
+ n = e[o];
1276
+ let i;
1277
+ if (r = n, !An(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
1278
+ throw new y(`Unknown adapter '${i}'`);
1279
1279
  if (r)
1280
1280
  break;
1281
- s[o || "#" + i] = r;
1281
+ s[i || "#" + o] = r;
1282
1282
  }
1283
1283
  if (!r) {
1284
- const i = Object.entries(s).map(
1284
+ const o = Object.entries(s).map(
1285
1285
  ([u, f]) => `adapter ${u} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1286
1286
  );
1287
- let o = t ? i.length > 1 ? `since :
1288
- ` + i.map(Ae).join(`
1289
- `) : " " + Ae(i[0]) : "as no adapter specified";
1287
+ let i = t ? o.length > 1 ? `since :
1288
+ ` + o.map(Ae).join(`
1289
+ `) : " " + Ae(o[0]) : "as no adapter specified";
1290
1290
  throw new y(
1291
- "There is no suitable adapter to dispatch the request " + o,
1291
+ "There is no suitable adapter to dispatch the request " + i,
1292
1292
  "ERR_NOT_SUPPORT"
1293
1293
  );
1294
1294
  }
@@ -1301,7 +1301,7 @@ function te(e) {
1301
1301
  throw new L(null, e);
1302
1302
  }
1303
1303
  function Pe(e) {
1304
- return te(e), e.headers = S.from(e.headers), e.data = ee.call(
1304
+ return te(e), e.headers = E.from(e.headers), e.data = ee.call(
1305
1305
  e,
1306
1306
  e.transformRequest
1307
1307
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Xe.getAdapter(e.adapter || j.adapter)(e).then(function(r) {
@@ -1309,13 +1309,13 @@ function Pe(e) {
1309
1309
  e,
1310
1310
  e.transformResponse,
1311
1311
  r
1312
- ), r.headers = S.from(r.headers), r;
1312
+ ), r.headers = E.from(r.headers), r;
1313
1313
  }, function(r) {
1314
1314
  return Ge(r) || (te(e), r && r.response && (r.response.data = ee.call(
1315
1315
  e,
1316
1316
  e.transformResponse,
1317
1317
  r.response
1318
- ), r.response.headers = S.from(r.response.headers))), Promise.reject(r);
1318
+ ), r.response.headers = E.from(r.response.headers))), Promise.reject(r);
1319
1319
  });
1320
1320
  }
1321
1321
  const Ze = "1.7.2", he = {};
@@ -1326,21 +1326,21 @@ const Ze = "1.7.2", he = {};
1326
1326
  });
1327
1327
  const Ne = {};
1328
1328
  he.transitional = function(t, n, r) {
1329
- function s(i, o) {
1330
- return "[Axios v" + Ze + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1329
+ function s(o, i) {
1330
+ return "[Axios v" + Ze + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1331
1331
  }
1332
- return (i, o, u) => {
1332
+ return (o, i, u) => {
1333
1333
  if (t === !1)
1334
1334
  throw new y(
1335
- s(o, " has been removed" + (n ? " in " + n : "")),
1335
+ s(i, " has been removed" + (n ? " in " + n : "")),
1336
1336
  y.ERR_DEPRECATED
1337
1337
  );
1338
- return n && !Ne[o] && (Ne[o] = !0, console.warn(
1338
+ return n && !Ne[i] && (Ne[i] = !0, console.warn(
1339
1339
  s(
1340
- o,
1340
+ i,
1341
1341
  " has been deprecated since v" + n + " and will be removed in the near future"
1342
1342
  )
1343
- )), t ? t(i, o, u) : !0;
1343
+ )), t ? t(o, i, u) : !0;
1344
1344
  };
1345
1345
  };
1346
1346
  function Pn(e, t, n) {
@@ -1349,15 +1349,15 @@ function Pn(e, t, n) {
1349
1349
  const r = Object.keys(e);
1350
1350
  let s = r.length;
1351
1351
  for (; s-- > 0; ) {
1352
- const i = r[s], o = t[i];
1353
- if (o) {
1354
- const u = e[i], f = u === void 0 || o(u, i, e);
1352
+ const o = r[s], i = t[o];
1353
+ if (i) {
1354
+ const u = e[o], f = u === void 0 || i(u, o, e);
1355
1355
  if (f !== !0)
1356
- throw new y("option " + i + " must be " + f, y.ERR_BAD_OPTION_VALUE);
1356
+ throw new y("option " + o + " must be " + f, y.ERR_BAD_OPTION_VALUE);
1357
1357
  continue;
1358
1358
  }
1359
1359
  if (n !== !0)
1360
- throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1360
+ throw new y("Unknown option " + o, y.ERR_BAD_OPTION);
1361
1361
  }
1362
1362
  }
1363
1363
  const ce = {
@@ -1367,8 +1367,8 @@ const ce = {
1367
1367
  let B = class {
1368
1368
  constructor(t) {
1369
1369
  this.defaults = t, this.interceptors = {
1370
- request: new we(),
1371
- response: new we()
1370
+ request: new be(),
1371
+ response: new be()
1372
1372
  };
1373
1373
  }
1374
1374
  /**
@@ -1386,10 +1386,10 @@ let B = class {
1386
1386
  if (r instanceof Error) {
1387
1387
  let s;
1388
1388
  Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
1389
- const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1389
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1390
1390
  try {
1391
- r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1392
- ` + i) : r.stack = i;
1391
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1392
+ ` + o) : r.stack = o;
1393
1393
  } catch {
1394
1394
  }
1395
1395
  }
@@ -1397,8 +1397,8 @@ let B = class {
1397
1397
  }
1398
1398
  }
1399
1399
  _request(t, n) {
1400
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = F(this.defaults, n);
1401
- const { transitional: r, paramsSerializer: s, headers: i } = n;
1400
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = q(this.defaults, n);
1401
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1402
1402
  r !== void 0 && ce.assertOptions(r, {
1403
1403
  silentJSONParsing: k.transitional(k.boolean),
1404
1404
  forcedJSONParsing: k.transitional(k.boolean),
@@ -1409,16 +1409,16 @@ let B = class {
1409
1409
  encode: k.function,
1410
1410
  serialize: k.function
1411
1411
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1412
- let o = i && c.merge(
1413
- i.common,
1414
- i[n.method]
1412
+ let i = o && c.merge(
1413
+ o.common,
1414
+ o[n.method]
1415
1415
  );
1416
- i && c.forEach(
1416
+ o && c.forEach(
1417
1417
  ["delete", "get", "head", "post", "put", "patch", "common"],
1418
1418
  (h) => {
1419
- delete i[h];
1419
+ delete o[h];
1420
1420
  }
1421
- ), n.headers = S.concat(o, i);
1421
+ ), n.headers = E.concat(i, o);
1422
1422
  const u = [];
1423
1423
  let f = !0;
1424
1424
  this.interceptors.request.forEach(function(p) {
@@ -1441,8 +1441,8 @@ let B = class {
1441
1441
  const h = u[d++], p = u[d++];
1442
1442
  try {
1443
1443
  g = h(g);
1444
- } catch (b) {
1445
- p.call(this, b);
1444
+ } catch (w) {
1445
+ p.call(this, w);
1446
1446
  break;
1447
1447
  }
1448
1448
  }
@@ -1456,14 +1456,14 @@ let B = class {
1456
1456
  return a;
1457
1457
  }
1458
1458
  getUri(t) {
1459
- t = F(this.defaults, t);
1460
- const n = We(t.baseURL, t.url);
1461
- return ze(n, t.params, t.paramsSerializer);
1459
+ t = q(this.defaults, t);
1460
+ const n = ve(t.baseURL, t.url);
1461
+ return Me(n, t.params, t.paramsSerializer);
1462
1462
  }
1463
1463
  };
1464
1464
  c.forEach(["delete", "get", "head", "options"], function(t) {
1465
1465
  B.prototype[t] = function(n, r) {
1466
- return this.request(F(r || {}, {
1466
+ return this.request(q(r || {}, {
1467
1467
  method: t,
1468
1468
  url: n,
1469
1469
  data: (r || {}).data
@@ -1472,14 +1472,14 @@ c.forEach(["delete", "get", "head", "options"], function(t) {
1472
1472
  });
1473
1473
  c.forEach(["post", "put", "patch"], function(t) {
1474
1474
  function n(r) {
1475
- return function(i, o, u) {
1476
- return this.request(F(u || {}, {
1475
+ return function(o, i, u) {
1476
+ return this.request(q(u || {}, {
1477
1477
  method: t,
1478
1478
  headers: r ? {
1479
1479
  "Content-Type": "multipart/form-data"
1480
1480
  } : {},
1481
- url: i,
1482
- data: o
1481
+ url: o,
1482
+ data: i
1483
1483
  }));
1484
1484
  };
1485
1485
  }
@@ -1490,27 +1490,27 @@ let Nn = class Ye {
1490
1490
  if (typeof t != "function")
1491
1491
  throw new TypeError("executor must be a function.");
1492
1492
  let n;
1493
- this.promise = new Promise(function(i) {
1494
- n = i;
1493
+ this.promise = new Promise(function(o) {
1494
+ n = o;
1495
1495
  });
1496
1496
  const r = this;
1497
1497
  this.promise.then((s) => {
1498
1498
  if (!r._listeners)
1499
1499
  return;
1500
- let i = r._listeners.length;
1501
- for (; i-- > 0; )
1502
- r._listeners[i](s);
1500
+ let o = r._listeners.length;
1501
+ for (; o-- > 0; )
1502
+ r._listeners[o](s);
1503
1503
  r._listeners = null;
1504
1504
  }), this.promise.then = (s) => {
1505
- let i;
1506
- const o = new Promise((u) => {
1507
- r.subscribe(u), i = u;
1505
+ let o;
1506
+ const i = new Promise((u) => {
1507
+ r.subscribe(u), o = u;
1508
1508
  }).then(s);
1509
- return o.cancel = function() {
1510
- r.unsubscribe(i);
1511
- }, o;
1512
- }, t(function(i, o, u) {
1513
- r.reason || (r.reason = new L(i, o, u), n(r.reason));
1509
+ return i.cancel = function() {
1510
+ r.unsubscribe(o);
1511
+ }, i;
1512
+ }, t(function(o, i, u) {
1513
+ r.reason || (r.reason = new L(o, i, u), n(r.reason));
1514
1514
  });
1515
1515
  }
1516
1516
  /**
@@ -1632,7 +1632,7 @@ Object.entries(ue).forEach(([e, t]) => {
1632
1632
  function et(e) {
1633
1633
  const t = new B(e), n = Be(B.prototype.request, t);
1634
1634
  return c.extend(n, B.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1635
- return et(F(e, s));
1635
+ return et(q(e, s));
1636
1636
  }, n;
1637
1637
  }
1638
1638
  const T = et(j);
@@ -1641,7 +1641,7 @@ T.CanceledError = L;
1641
1641
  T.CancelToken = Nn;
1642
1642
  T.isCancel = Ge;
1643
1643
  T.VERSION = Ze;
1644
- T.toFormData = v;
1644
+ T.toFormData = Q;
1645
1645
  T.AxiosError = y;
1646
1646
  T.Cancel = T.CanceledError;
1647
1647
  T.all = function(t) {
@@ -1649,17 +1649,17 @@ T.all = function(t) {
1649
1649
  };
1650
1650
  T.spread = Cn;
1651
1651
  T.isAxiosError = kn;
1652
- T.mergeConfig = F;
1653
- T.AxiosHeaders = S;
1652
+ T.mergeConfig = q;
1653
+ T.AxiosHeaders = E;
1654
1654
  T.formToJSON = (e) => Ve(c.isHTMLForm(e) ? new FormData(e) : e);
1655
1655
  T.getAdapter = Xe.getAdapter;
1656
1656
  T.HttpStatusCode = ue;
1657
1657
  T.default = T;
1658
1658
  const {
1659
- Axios: Wn,
1659
+ Axios: vn,
1660
1660
  AxiosError: xn,
1661
- CanceledError: Qn,
1662
- isCancel: vn,
1661
+ CanceledError: Wn,
1662
+ isCancel: Qn,
1663
1663
  CancelToken: Xn,
1664
1664
  VERSION: Zn,
1665
1665
  all: Yn,
@@ -1686,9 +1686,9 @@ const {
1686
1686
  }
1687
1687
  ), Bn = (e) => {
1688
1688
  let t = !1;
1689
- const n = [], r = () => localStorage.getItem("accessToken"), s = () => localStorage.getItem("refreshToken"), i = (a) => {
1689
+ const n = [], r = () => localStorage.getItem("accessToken"), s = () => localStorage.getItem("refreshToken"), o = (a) => {
1690
1690
  localStorage.setItem("accessToken", a.accessToken), localStorage.setItem("refreshToken", a.refreshToken);
1691
- }, o = () => {
1691
+ }, i = () => {
1692
1692
  localStorage.removeItem("accessToken"), localStorage.removeItem("refreshToken");
1693
1693
  }, u = (a, d = null) => {
1694
1694
  n.forEach((m) => {
@@ -1697,44 +1697,44 @@ const {
1697
1697
  };
1698
1698
  return {
1699
1699
  getAccessToken: r,
1700
- setTokens: i,
1701
- clearTokens: o,
1700
+ setTokens: o,
1701
+ clearTokens: i,
1702
1702
  handleTokenRefresh: async (a) => {
1703
1703
  var h;
1704
1704
  if ((h = a.url) == null ? void 0 : h.includes(
1705
1705
  e.refreshTokenEndpointPath
1706
1706
  )) {
1707
- o();
1707
+ i();
1708
1708
  const p = H();
1709
1709
  throw u(p), p;
1710
1710
  }
1711
1711
  if (!r()) {
1712
- o();
1712
+ i();
1713
1713
  const p = H();
1714
1714
  throw u(p), p;
1715
1715
  }
1716
1716
  if (t)
1717
- return new Promise((p, b) => {
1717
+ return new Promise((p, w) => {
1718
1718
  n.push({
1719
1719
  resolve: p,
1720
- reject: b,
1720
+ reject: w,
1721
1721
  requestConfig: a
1722
1722
  });
1723
1723
  });
1724
1724
  const g = s();
1725
1725
  if (!g) {
1726
- o();
1726
+ i();
1727
1727
  const p = H();
1728
1728
  throw u(p), p;
1729
1729
  }
1730
1730
  t = !0;
1731
1731
  try {
1732
1732
  const p = await e.onRefreshToken(g);
1733
- return i(p), a.headers || (a.headers = {}), a.headers.Authorization = `Bearer ${p.accessToken}`, u(null, p.accessToken), t = !1, a;
1733
+ return o(p), a.headers || (a.headers = {}), a.headers.Authorization = `Bearer ${p.accessToken}`, u(null, p.accessToken), t = !1, a;
1734
1734
  } catch {
1735
- o();
1736
- const b = H();
1737
- throw u(b), t = !1, b;
1735
+ i();
1736
+ const w = H();
1737
+ throw u(w), t = !1, w;
1738
1738
  }
1739
1739
  },
1740
1740
  isAuthError: (a) => {
@@ -1743,7 +1743,7 @@ const {
1743
1743
  }
1744
1744
  };
1745
1745
  }, P = (e) => {
1746
- const t = T.create(), n = e.apiVersion, r = e.productCode, s = e.baseUrl, i = s ? s.replace(/\/$/, "") : "", o = e.refreshTokenApiVersion || n, u = e.refreshTokenEndpointPath || "/refresh-token", f = `${i}/auth/${o}${u}`, l = Bn({
1746
+ const t = T.create(), n = e.apiVersion, r = e.productCode, s = e.baseUrl, o = s ? s.replace(/\/$/, "") : "", i = e.refreshTokenApiVersion || n, u = e.refreshTokenEndpointPath || "/refresh-token", f = `${o}/auth/${i}${u}`, l = Bn({
1747
1747
  baseUrl: s || "",
1748
1748
  apiVersion: n,
1749
1749
  refreshTokenEndpointPath: u,
@@ -1770,31 +1770,31 @@ const {
1770
1770
  e.responseInterceptor.onReject
1771
1771
  ), {
1772
1772
  request: async (d, m) => {
1773
- const g = d.startsWith("/") ? d.substring(1) : d, h = `${i}/${r}/${n}/${g}`, p = {
1773
+ const g = d.startsWith("/") ? d.substring(1) : d, h = `${o}/${r}/${n}/${g}`, p = {
1774
1774
  "Content-Type": (m == null ? void 0 : m.contentType) || "application/json",
1775
1775
  apiVersion: n,
1776
1776
  Authorization: "",
1777
1777
  ...e.headers ?? {}
1778
- }, b = l.getAccessToken();
1779
- b && (p.Authorization = `Bearer ${b}`);
1780
- const E = {
1778
+ }, w = l.getAccessToken();
1779
+ w && (p.Authorization = `Bearer ${w}`);
1780
+ const S = {
1781
1781
  method: (m == null ? void 0 : m.method) || "GET",
1782
1782
  headers: p,
1783
1783
  url: h,
1784
1784
  data: m == null ? void 0 : m.data,
1785
1785
  responseType: m == null ? void 0 : m.responseType
1786
1786
  };
1787
- return await t.request(E);
1787
+ return await t.request(S);
1788
1788
  },
1789
1789
  getAccessToken: l.getAccessToken,
1790
1790
  setTokens: l.setTokens,
1791
1791
  clearTokens: l.clearTokens
1792
1792
  };
1793
- }, Fn = "cep";
1794
- function Un(e) {
1793
+ }, qn = "cep";
1794
+ function Fn(e) {
1795
1795
  const t = P(e);
1796
1796
  function n(r) {
1797
- return t.request(`/${Fn}`, {
1797
+ return t.request(`/${qn}`, {
1798
1798
  method: "POST",
1799
1799
  data: JSON.stringify(r)
1800
1800
  });
@@ -1803,16 +1803,16 @@ function Un(e) {
1803
1803
  getAddress: n
1804
1804
  };
1805
1805
  }
1806
- const ke = "auth", qn = (e) => {
1806
+ const ke = "auth", Un = (e) => {
1807
1807
  const t = P(e);
1808
1808
  return {
1809
1809
  postLogin: async (s) => {
1810
- var o;
1811
- const i = await t.request(`/${ke}/login`, {
1810
+ var i;
1811
+ const o = await t.request(`/${ke}/login`, {
1812
1812
  method: "POST",
1813
1813
  data: JSON.stringify(s)
1814
1814
  });
1815
- return i.status === 200 && ((o = i.data) != null && o.accessToken) && localStorage.setItem("accessToken", i.data.accessToken), i;
1815
+ return o.status === 200 && ((i = o.data) != null && i.accessToken) && localStorage.setItem("accessToken", o.data.accessToken), o;
1816
1816
  },
1817
1817
  getToken: async (s) => await t.request(`/${ke}?code=${s}`, {
1818
1818
  method: "GET",
@@ -1822,21 +1822,29 @@ const ke = "auth", qn = (e) => {
1822
1822
  }, Ln = (e) => {
1823
1823
  const t = P(e);
1824
1824
  return {
1825
- signUp: async (i) => await t.request("/sign-up", {
1825
+ signUp: async (u) => await t.request("/sign-up", {
1826
1826
  method: "POST",
1827
- data: JSON.stringify(i)
1827
+ data: JSON.stringify(u)
1828
1828
  }),
1829
- signIn: async (i) => {
1830
- var u, f;
1831
- const o = await t.request("/sign-in", {
1829
+ signIn: async (u) => {
1830
+ var l, a;
1831
+ const f = await t.request("/sign-in", {
1832
1832
  method: "POST",
1833
- data: JSON.stringify(i)
1833
+ data: JSON.stringify(u)
1834
1834
  });
1835
- return o.status === 200 && ((u = o.data) != null && u.accessToken) && ((f = o.data) != null && f.refreshToken) && t.setTokens(o.data), o;
1835
+ return f.status === 200 && ((l = f.data) != null && l.accessToken) && ((a = f.data) != null && a.refreshToken) && t.setTokens(f.data), f;
1836
1836
  },
1837
1837
  getProfile: async () => await t.request("/me", {
1838
1838
  method: "GET",
1839
1839
  data: ""
1840
+ }),
1841
+ recoverPassword: async (u) => await t.request("/recovery", {
1842
+ method: "POST",
1843
+ data: JSON.stringify(u)
1844
+ }),
1845
+ updatePassword: async (u) => await t.request("/update-password", {
1846
+ method: "POST",
1847
+ data: JSON.stringify(u)
1840
1848
  })
1841
1849
  };
1842
1850
  }, xe = "digital", _n = (e) => {
@@ -1865,48 +1873,48 @@ const ke = "auth", qn = (e) => {
1865
1873
  }, ne = "payment", In = (e) => {
1866
1874
  const t = P(e);
1867
1875
  return {
1868
- postPayment: (i) => t.request(`/${ne}`, {
1876
+ postPayment: (o) => t.request(`/${ne}`, {
1869
1877
  method: "POST",
1870
- data: JSON.stringify(i)
1878
+ data: JSON.stringify(o)
1871
1879
  }),
1872
- getPaymentStatus: (i) => t.request(
1873
- `/${ne}/status?policyId=${i.policyId}`,
1880
+ getPaymentStatus: (o) => t.request(
1881
+ `/${ne}/status?policyId=${o.policyId}`,
1874
1882
  {
1875
1883
  method: "GET",
1876
1884
  data: ""
1877
1885
  }
1878
1886
  ),
1879
- getPaymentSummary: (i) => t.request(
1880
- `/${ne}/summary?policyId=${i.policyId}`,
1887
+ getPaymentSummary: (o) => t.request(
1888
+ `/${ne}/summary?policyId=${o.policyId}`,
1881
1889
  {
1882
1890
  method: "GET",
1883
1891
  data: ""
1884
1892
  }
1885
1893
  )
1886
1894
  };
1887
- }, M = "product/action", jn = (e) => {
1895
+ }, J = "product/action", jn = (e) => {
1888
1896
  const t = P(e);
1889
1897
  return {
1890
- getCnpjStatus: (o) => t.request(`/${M}/Custom/CnpjCheck?cnpj=${o}`, {
1898
+ getCnpjStatus: (i) => t.request(`/${J}/Custom/CnpjCheck?cnpj=${i}`, {
1891
1899
  method: "GET",
1892
1900
  data: ""
1893
1901
  }),
1894
- getKeyNumber: () => t.request(`/${M}/Custom/GetKeyNumber`, {
1902
+ getKeyNumber: () => t.request(`/${J}/Custom/GetKeyNumber`, {
1895
1903
  method: "GET",
1896
1904
  data: ""
1897
1905
  }),
1898
- getProposalNumberByKeyNumber: (o) => t.request(
1899
- `/${M}/Custom/GetProposalNoByKeyNumber?keyNumber=${o.keyNumber}`,
1906
+ getProposalNumberByKeyNumber: (i) => t.request(
1907
+ `/${J}/Custom/GetProposalNoByKeyNumber?keyNumber=${i.keyNumber}`,
1900
1908
  {
1901
1909
  method: "GET",
1902
1910
  data: ""
1903
1911
  }
1904
1912
  ),
1905
- postCoveragesAndClausesRules: (o) => t.request(
1906
- `/${M}/Custom/LoadRules`,
1913
+ postCoveragesAndClausesRules: (i) => t.request(
1914
+ `/${J}/Custom/LoadRules`,
1907
1915
  {
1908
1916
  method: "POST",
1909
- data: JSON.stringify(o)
1917
+ data: JSON.stringify(i)
1910
1918
  }
1911
1919
  )
1912
1920
  };
@@ -1964,7 +1972,7 @@ const ke = "auth", qn = (e) => {
1964
1972
  }
1965
1973
  )
1966
1974
  };
1967
- }, Mn = "report", zn = (e) => {
1975
+ }, Jn = "report", Mn = (e) => {
1968
1976
  const t = P(e);
1969
1977
  return {
1970
1978
  getReportStream: (r) => {
@@ -1974,7 +1982,7 @@ const ke = "auth", qn = (e) => {
1974
1982
  ...r.additionalParams
1975
1983
  });
1976
1984
  return t.request(
1977
- `/${Mn}/generate-stream?${s.toString()}`,
1985
+ `/${Jn}/generate-stream?${s.toString()}`,
1978
1986
  {
1979
1987
  method: "GET",
1980
1988
  data: "",
@@ -1983,11 +1991,11 @@ const ke = "auth", qn = (e) => {
1983
1991
  );
1984
1992
  }
1985
1993
  };
1986
- }, Jn = "SubscriberData", Vn = (e) => {
1994
+ }, zn = "SubscriberData", Vn = (e) => {
1987
1995
  const t = P(e);
1988
1996
  return {
1989
1997
  getSubscriber: (r) => t.request(
1990
- `/${Jn}/get-subscriber-data?cnpj=${r}`,
1998
+ `/${zn}/get-subscriber-data?cnpj=${r}`,
1991
1999
  {
1992
2000
  method: "GET",
1993
2001
  data: ""
@@ -1996,14 +2004,14 @@ const ke = "auth", qn = (e) => {
1996
2004
  };
1997
2005
  };
1998
2006
  function cr(e) {
1999
- const t = qn(e), n = Ln(e), r = $n(e), s = Hn(e), i = In(e), o = Un(e), u = _n(e), f = jn(e), l = zn(e), a = Vn(e);
2007
+ const t = Un(e), n = Ln(e), r = $n(e), s = Hn(e), o = In(e), i = Fn(e), u = _n(e), f = jn(e), l = Mn(e), a = Vn(e);
2000
2008
  return {
2001
2009
  auth: t,
2002
2010
  authAkad: n,
2003
2011
  data: r,
2004
2012
  quotation: s,
2005
- payment: i,
2006
- address: o,
2013
+ payment: o,
2014
+ address: i,
2007
2015
  broker: u,
2008
2016
  plugin: f,
2009
2017
  report: l,