@fuul/sdk 7.26.0 → 7.28.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.
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  var zt = Object.defineProperty;
2
2
  var Jt = (t, e, r) => e in t ? zt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var _ = (t, e, r) => Jt(t, typeof e != "symbol" ? e + "" : e, r);
3
+ var w = (t, e, r) => Jt(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  const ee = "/affiliate-portal";
5
5
  class Wt {
6
6
  constructor(e) {
7
- _(this, "httpClient");
7
+ w(this, "httpClient");
8
8
  this.httpClient = e.httpClient;
9
9
  }
10
10
  async getAffiliateStats(e) {
@@ -71,23 +71,23 @@ function Ct(t, e) {
71
71
  return t.apply(e, arguments);
72
72
  };
73
73
  }
74
- const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: we, toStringTag: Et } = Symbol, _e = /* @__PURE__ */ ((t) => (e) => {
74
+ const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: _e, toStringTag: Rt } = Symbol, we = /* @__PURE__ */ ((t) => (e) => {
75
75
  const r = Qt.call(e);
76
76
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
77
- })(/* @__PURE__ */ Object.create(null)), F = (t) => (t = t.toLowerCase(), (e) => _e(e) === t), be = (t) => (e) => typeof e === t, { isArray: Y } = Array, Q = be("undefined");
77
+ })(/* @__PURE__ */ Object.create(null)), k = (t) => (t = t.toLowerCase(), (e) => we(e) === t), be = (t) => (e) => typeof e === t, { isArray: Y } = Array, Q = be("undefined");
78
78
  function re(t) {
79
79
  return t !== null && !Q(t) && t.constructor !== null && !Q(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
80
80
  }
81
- const Rt = F("ArrayBuffer");
81
+ const Et = k("ArrayBuffer");
82
82
  function Xt(t) {
83
83
  let e;
84
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Rt(t.buffer), e;
84
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Et(t.buffer), e;
85
85
  }
86
86
  const Yt = be("string"), P = be("function"), St = be("number"), ne = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, pe = (t) => {
87
- if (_e(t) !== "object")
87
+ if (we(t) !== "object")
88
88
  return !1;
89
89
  const e = Be(t);
90
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Et in t) && !(we in t);
90
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Rt in t) && !(_e in t);
91
91
  }, Zt = (t) => {
92
92
  if (!ne(t) || re(t))
93
93
  return !1;
@@ -96,20 +96,20 @@ const Yt = be("string"), P = be("function"), St = be("number"), ne = (t) => t !=
96
96
  } catch {
97
97
  return !1;
98
98
  }
99
- }, er = F("Date"), tr = F("File"), rr = (t) => !!(t && typeof t.uri < "u"), nr = (t) => t && typeof t.getParts < "u", sr = F("Blob"), ir = F("FileList"), or = (t) => ne(t) && P(t.pipe);
99
+ }, er = k("Date"), tr = k("File"), rr = (t) => !!(t && typeof t.uri < "u"), nr = (t) => t && typeof t.getParts < "u", sr = k("Blob"), ir = k("FileList"), or = (t) => ne(t) && P(t.pipe);
100
100
  function ar() {
101
101
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
102
102
  }
103
103
  const Ze = ar(), et = typeof Ze.FormData < "u" ? Ze.FormData : void 0, cr = (t) => {
104
104
  let e;
105
- return t && (et && t instanceof et || P(t.append) && ((e = _e(t)) === "formdata" || // detect form-data instance
105
+ return t && (et && t instanceof et || P(t.append) && ((e = we(t)) === "formdata" || // detect form-data instance
106
106
  e === "object" && P(t.toString) && t.toString() === "[object FormData]"));
107
- }, ur = F("URLSearchParams"), [lr, dr, fr, hr] = [
107
+ }, ur = k("URLSearchParams"), [lr, dr, fr, hr] = [
108
108
  "ReadableStream",
109
109
  "Request",
110
110
  "Response",
111
111
  "Headers"
112
- ].map(F), pr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
112
+ ].map(k), pr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
113
113
  function se(t, e, { allOwnKeys: r = !1 } = {}) {
114
114
  if (t === null || typeof t > "u")
115
115
  return;
@@ -121,9 +121,9 @@ function se(t, e, { allOwnKeys: r = !1 } = {}) {
121
121
  if (re(t))
122
122
  return;
123
123
  const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = i.length;
124
- let c;
124
+ let a;
125
125
  for (n = 0; n < o; n++)
126
- c = i[n], e.call(null, t[c], c, t);
126
+ a = i[n], e.call(null, t[a], a, t);
127
127
  }
128
128
  }
129
129
  function Tt(t, e) {
@@ -174,17 +174,17 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
174
174
  }), Object.defineProperty(t, "super", {
175
175
  value: e.prototype
176
176
  }), r && Object.assign(t.prototype, r);
177
- }, wr = (t, e, r, n) => {
177
+ }, _r = (t, e, r, n) => {
178
178
  let s, i, o;
179
- const c = {};
179
+ const a = {};
180
180
  if (e = e || {}, t == null) return e;
181
181
  do {
182
182
  for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; )
183
- o = s[i], (!n || n(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
183
+ o = s[i], (!n || n(o, t, e)) && !a[o] && (e[o] = t[o], a[o] = !0);
184
184
  t = r !== !1 && Be(t);
185
185
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
186
186
  return e;
187
- }, _r = (t, e, r) => {
187
+ }, wr = (t, e, r) => {
188
188
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
189
189
  const n = t.indexOf(e, r);
190
190
  return n !== -1 && n === r;
@@ -197,22 +197,22 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
197
197
  for (; e-- > 0; )
198
198
  r[e] = t[e];
199
199
  return r;
200
- }, Cr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Be(Uint8Array)), Er = (t, e) => {
201
- const n = (t && t[we]).call(t);
200
+ }, Cr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Be(Uint8Array)), Rr = (t, e) => {
201
+ const n = (t && t[_e]).call(t);
202
202
  let s;
203
203
  for (; (s = n.next()) && !s.done; ) {
204
204
  const i = s.value;
205
205
  e.call(t, i[0], i[1]);
206
206
  }
207
- }, Rr = (t, e) => {
207
+ }, Er = (t, e) => {
208
208
  let r;
209
209
  const n = [];
210
210
  for (; (r = t.exec(e)) !== null; )
211
211
  n.push(r);
212
212
  return n;
213
- }, Sr = F("HTMLFormElement"), Tr = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
213
+ }, Sr = k("HTMLFormElement"), Tr = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
214
214
  return n.toUpperCase() + s;
215
- }), tt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ar = F("RegExp"), Pt = (t, e) => {
215
+ }), tt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Ar = k("RegExp"), Pt = (t, e) => {
216
216
  const r = Object.getOwnPropertyDescriptors(t), n = {};
217
217
  se(r, (s, i) => {
218
218
  let o;
@@ -243,7 +243,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (se(
243
243
  }, Nr = () => {
244
244
  }, xr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
245
245
  function Ur(t) {
246
- return !!(t && P(t.append) && t[Et] === "FormData" && t[we]);
246
+ return !!(t && P(t.append) && t[Rt] === "FormData" && t[_e]);
247
247
  }
248
248
  const Dr = (t) => {
249
249
  const e = new Array(10), r = (n, s) => {
@@ -255,16 +255,16 @@ const Dr = (t) => {
255
255
  if (!("toJSON" in n)) {
256
256
  e[s] = n;
257
257
  const i = Y(n) ? [] : {};
258
- return se(n, (o, c) => {
258
+ return se(n, (o, a) => {
259
259
  const f = r(o, s + 1);
260
- !Q(f) && (i[c] = f);
260
+ !Q(f) && (i[a] = f);
261
261
  }), e[s] = void 0, i;
262
262
  }
263
263
  }
264
264
  return n;
265
265
  };
266
266
  return r(t, 0);
267
- }, Lr = F("AsyncFunction"), Fr = (t) => t && (ne(t) || P(t)) && P(t.then) && P(t.catch), Ot = ((t, e) => t ? setImmediate : e ? ((r, n) => (M.addEventListener(
267
+ }, Lr = k("AsyncFunction"), kr = (t) => t && (ne(t) || P(t)) && P(t.then) && P(t.catch), Ot = ((t, e) => t ? setImmediate : e ? ((r, n) => (M.addEventListener(
268
268
  "message",
269
269
  ({ source: s, data: i }) => {
270
270
  s === M && i === r && n.length && n.shift()();
@@ -272,9 +272,9 @@ const Dr = (t) => {
272
272
  !1
273
273
  ), (s) => {
274
274
  n.push(s), M.postMessage(r, "*");
275
- }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(M.postMessage)), kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Ot, vr = (t) => t != null && P(t[we]), a = {
275
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(M.postMessage)), Fr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Ot, vr = (t) => t != null && P(t[_e]), c = {
276
276
  isArray: Y,
277
- isArrayBuffer: Rt,
277
+ isArrayBuffer: Et,
278
278
  isBuffer: re,
279
279
  isFormData: cr,
280
280
  isArrayBufferView: Xt,
@@ -306,13 +306,13 @@ const Dr = (t) => {
306
306
  trim: pr,
307
307
  stripBOM: gr,
308
308
  inherits: mr,
309
- toFlatObject: wr,
310
- kindOf: _e,
311
- kindOfTest: F,
312
- endsWith: _r,
309
+ toFlatObject: _r,
310
+ kindOf: we,
311
+ kindOfTest: k,
312
+ endsWith: wr,
313
313
  toArray: br,
314
- forEachEntry: Er,
315
- matchAll: Rr,
314
+ forEachEntry: Rr,
315
+ matchAll: Er,
316
316
  isHTMLForm: Sr,
317
317
  hasOwnProperty: tt,
318
318
  hasOwnProp: tt,
@@ -329,15 +329,15 @@ const Dr = (t) => {
329
329
  isSpecCompliantForm: Ur,
330
330
  toJSONObject: Dr,
331
331
  isAsyncFn: Lr,
332
- isThenable: Fr,
332
+ isThenable: kr,
333
333
  setImmediate: Ot,
334
- asap: kr,
334
+ asap: Fr,
335
335
  isIterable: vr
336
336
  };
337
337
  let g = class Nt extends Error {
338
338
  static from(e, r, n, s, i, o) {
339
- const c = new Nt(e.message, r || e.code, n, s, i);
340
- return c.cause = e, c.name = e.name, e.status != null && c.status == null && (c.status = e.status), o && Object.assign(c, o), c;
339
+ const a = new Nt(e.message, r || e.code, n, s, i);
340
+ return a.cause = e, a.name = e.name, e.status != null && a.status == null && (a.status = e.status), o && Object.assign(a, o), a;
341
341
  }
342
342
  /**
343
343
  * Create an Error with the specified message, config, error code, request and response.
@@ -372,7 +372,7 @@ let g = class Nt extends Error {
372
372
  columnNumber: this.columnNumber,
373
373
  stack: this.stack,
374
374
  // Axios
375
- config: a.toJSONObject(this.config),
375
+ config: c.toJSONObject(this.config),
376
376
  code: this.code,
377
377
  status: this.status
378
378
  };
@@ -392,10 +392,10 @@ g.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
392
392
  g.ERR_INVALID_URL = "ERR_INVALID_URL";
393
393
  const Br = null;
394
394
  function Le(t) {
395
- return a.isPlainObject(t) || a.isArray(t);
395
+ return c.isPlainObject(t) || c.isArray(t);
396
396
  }
397
397
  function xt(t) {
398
- return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
398
+ return c.endsWith(t, "[]") ? t.slice(0, -2) : t;
399
399
  }
400
400
  function Ae(t, e, r) {
401
401
  return t ? t.concat(e).map(function(s, i) {
@@ -403,15 +403,15 @@ function Ae(t, e, r) {
403
403
  }).join(r ? "." : "") : e;
404
404
  }
405
405
  function Ir(t) {
406
- return a.isArray(t) && !t.some(Le);
406
+ return c.isArray(t) && !t.some(Le);
407
407
  }
408
- const qr = a.toFlatObject(a, {}, null, function(e) {
408
+ const qr = c.toFlatObject(c, {}, null, function(e) {
409
409
  return /^is[A-Z]/.test(e);
410
410
  });
411
411
  function Ce(t, e, r) {
412
- if (!a.isObject(t))
412
+ if (!c.isObject(t))
413
413
  throw new TypeError("target must be an object");
414
- e = e || new FormData(), r = a.toFlatObject(
414
+ e = e || new FormData(), r = c.toFlatObject(
415
415
  r,
416
416
  {
417
417
  metaTokens: !0,
@@ -420,35 +420,35 @@ function Ce(t, e, r) {
420
420
  },
421
421
  !1,
422
422
  function(y, p) {
423
- return !a.isUndefined(p[y]);
423
+ return !c.isUndefined(p[y]);
424
424
  }
425
425
  );
426
- const n = r.metaTokens, s = r.visitor || u, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(e);
427
- if (!a.isFunction(s))
426
+ const n = r.metaTokens, s = r.visitor || u, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
427
+ if (!c.isFunction(s))
428
428
  throw new TypeError("visitor must be a function");
429
429
  function l(d) {
430
430
  if (d === null) return "";
431
- if (a.isDate(d))
431
+ if (c.isDate(d))
432
432
  return d.toISOString();
433
- if (a.isBoolean(d))
433
+ if (c.isBoolean(d))
434
434
  return d.toString();
435
- if (!f && a.isBlob(d))
435
+ if (!f && c.isBlob(d))
436
436
  throw new g("Blob is not supported. Use a Buffer instead.");
437
- return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
437
+ return c.isArrayBuffer(d) || c.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
438
438
  }
439
439
  function u(d, y, p) {
440
440
  let C = d;
441
- if (a.isReactNative(e) && a.isReactNativeBlob(d))
441
+ if (c.isReactNative(e) && c.isReactNativeBlob(d))
442
442
  return e.append(Ae(p, y, i), l(d)), !1;
443
443
  if (d && !p && typeof d == "object") {
444
- if (a.endsWith(y, "{}"))
444
+ if (c.endsWith(y, "{}"))
445
445
  y = n ? y : y.slice(0, -2), d = JSON.stringify(d);
446
- else if (a.isArray(d) && Ir(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (C = a.toArray(d)))
447
- return y = xt(y), C.forEach(function(R, T) {
448
- !(a.isUndefined(R) || R === null) && e.append(
446
+ else if (c.isArray(d) && Ir(d) || (c.isFileList(d) || c.endsWith(y, "[]")) && (C = c.toArray(d)))
447
+ return y = xt(y), C.forEach(function(E, T) {
448
+ !(c.isUndefined(E) || E === null) && e.append(
449
449
  // eslint-disable-next-line no-nested-ternary
450
450
  o === !0 ? Ae([y], T, i) : o === null ? y : y + "[]",
451
- l(R)
451
+ l(E)
452
452
  );
453
453
  }), !1;
454
454
  }
@@ -459,18 +459,18 @@ function Ce(t, e, r) {
459
459
  convertValue: l,
460
460
  isVisitable: Le
461
461
  });
462
- function E(d, y) {
463
- if (!a.isUndefined(d)) {
462
+ function R(d, y) {
463
+ if (!c.isUndefined(d)) {
464
464
  if (h.indexOf(d) !== -1)
465
465
  throw Error("Circular reference detected in " + y.join("."));
466
- h.push(d), a.forEach(d, function(C, N) {
467
- (!(a.isUndefined(C) || C === null) && s.call(e, C, a.isString(N) ? N.trim() : N, y, m)) === !0 && E(C, y ? y.concat(N) : [N]);
466
+ h.push(d), c.forEach(d, function(C, N) {
467
+ (!(c.isUndefined(C) || C === null) && s.call(e, C, c.isString(N) ? N.trim() : N, y, m)) === !0 && R(C, y ? y.concat(N) : [N]);
468
468
  }), h.pop();
469
469
  }
470
470
  }
471
- if (!a.isObject(t))
471
+ if (!c.isObject(t))
472
472
  throw new TypeError("data must be an object");
473
- return E(t), e;
473
+ return R(t), e;
474
474
  }
475
475
  function rt(t) {
476
476
  const e = {
@@ -507,13 +507,13 @@ function $r(t) {
507
507
  function Dt(t, e, r) {
508
508
  if (!e)
509
509
  return t;
510
- const n = r && r.encode || $r, s = a.isFunction(r) ? {
510
+ const n = r && r.encode || $r, s = c.isFunction(r) ? {
511
511
  serialize: r
512
512
  } : r, i = s && s.serialize;
513
513
  let o;
514
- if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new Ie(e, s).toString(n), o) {
515
- const c = t.indexOf("#");
516
- c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
514
+ if (i ? o = i(e, s) : o = c.isURLSearchParams(e) ? e.toString() : new Ie(e, s).toString(n), o) {
515
+ const a = t.indexOf("#");
516
+ a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
517
517
  }
518
518
  return t;
519
519
  }
@@ -567,7 +567,7 @@ class nt {
567
567
  * @returns {void}
568
568
  */
569
569
  forEach(e) {
570
- a.forEach(this.handlers, function(n) {
570
+ c.forEach(this.handlers, function(n) {
571
571
  n !== null && e(n);
572
572
  });
573
573
  }
@@ -585,13 +585,13 @@ const qe = {
585
585
  Blob: Hr
586
586
  },
587
587
  protocols: ["http", "https", "file", "blob", "url", "data"]
588
- }, $e = typeof window < "u" && typeof document < "u", Fe = typeof navigator == "object" && navigator || void 0, Kr = $e && (!Fe || ["ReactNative", "NativeScript", "NS"].indexOf(Fe.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
588
+ }, $e = typeof window < "u" && typeof document < "u", ke = typeof navigator == "object" && navigator || void 0, Kr = $e && (!ke || ["ReactNative", "NativeScript", "NS"].indexOf(ke.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
589
589
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = $e && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
590
590
  __proto__: null,
591
591
  hasBrowserEnv: $e,
592
592
  hasStandardBrowserEnv: Kr,
593
593
  hasStandardBrowserWebWorkerEnv: zr,
594
- navigator: Fe,
594
+ navigator: ke,
595
595
  origin: Jr
596
596
  }, Symbol.toStringTag, { value: "Module" })), S = {
597
597
  ...Wr,
@@ -600,13 +600,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr
600
600
  function Qr(t, e) {
601
601
  return Ce(t, new S.classes.URLSearchParams(), {
602
602
  visitor: function(r, n, s, i) {
603
- return S.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
603
+ return S.isNode && c.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
604
604
  },
605
605
  ...e
606
606
  });
607
607
  }
608
608
  function Xr(t) {
609
- return a.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
609
+ return c.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
610
610
  }
611
611
  function Yr(t) {
612
612
  const e = {}, r = Object.keys(t);
@@ -621,21 +621,21 @@ function Lt(t) {
621
621
  function e(r, n, s, i) {
622
622
  let o = r[i++];
623
623
  if (o === "__proto__") return !0;
624
- const c = Number.isFinite(+o), f = i >= r.length;
625
- return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], n] : s[o] = n, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), e(r, n, s[o], i) && a.isArray(s[o]) && (s[o] = Yr(s[o])), !c);
624
+ const a = Number.isFinite(+o), f = i >= r.length;
625
+ return o = !o && c.isArray(s) ? s.length : o, f ? (c.hasOwnProp(s, o) ? s[o] = [s[o], n] : s[o] = n, !a) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), e(r, n, s[o], i) && c.isArray(s[o]) && (s[o] = Yr(s[o])), !a);
626
626
  }
627
- if (a.isFormData(t) && a.isFunction(t.entries)) {
627
+ if (c.isFormData(t) && c.isFunction(t.entries)) {
628
628
  const r = {};
629
- return a.forEachEntry(t, (n, s) => {
629
+ return c.forEachEntry(t, (n, s) => {
630
630
  e(Xr(n), s, r, 0);
631
631
  }), r;
632
632
  }
633
633
  return null;
634
634
  }
635
635
  function Gr(t, e, r) {
636
- if (a.isString(t))
636
+ if (c.isString(t))
637
637
  try {
638
- return (e || JSON.parse)(t), a.trim(t);
638
+ return (e || JSON.parse)(t), c.trim(t);
639
639
  } catch (n) {
640
640
  if (n.name !== "SyntaxError")
641
641
  throw n;
@@ -647,23 +647,23 @@ const ie = {
647
647
  adapter: ["xhr", "http", "fetch"],
648
648
  transformRequest: [
649
649
  function(e, r) {
650
- const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, i = a.isObject(e);
651
- if (i && a.isHTMLForm(e) && (e = new FormData(e)), a.isFormData(e))
650
+ const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, i = c.isObject(e);
651
+ if (i && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
652
652
  return s ? JSON.stringify(Lt(e)) : e;
653
- if (a.isArrayBuffer(e) || a.isBuffer(e) || a.isStream(e) || a.isFile(e) || a.isBlob(e) || a.isReadableStream(e))
653
+ if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e) || c.isReadableStream(e))
654
654
  return e;
655
- if (a.isArrayBufferView(e))
655
+ if (c.isArrayBufferView(e))
656
656
  return e.buffer;
657
- if (a.isURLSearchParams(e))
657
+ if (c.isURLSearchParams(e))
658
658
  return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
659
- let c;
659
+ let a;
660
660
  if (i) {
661
661
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
662
662
  return Qr(e, this.formSerializer).toString();
663
- if ((c = a.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
663
+ if ((a = c.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
664
664
  const f = this.env && this.env.FormData;
665
665
  return Ce(
666
- c ? { "files[]": e } : e,
666
+ a ? { "files[]": e } : e,
667
667
  f && new f(),
668
668
  this.formSerializer
669
669
  );
@@ -675,15 +675,15 @@ const ie = {
675
675
  transformResponse: [
676
676
  function(e) {
677
677
  const r = this.transitional || ie.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
678
- if (a.isResponse(e) || a.isReadableStream(e))
678
+ if (c.isResponse(e) || c.isReadableStream(e))
679
679
  return e;
680
- if (e && a.isString(e) && (n && !this.responseType || s)) {
680
+ if (e && c.isString(e) && (n && !this.responseType || s)) {
681
681
  const o = !(r && r.silentJSONParsing) && s;
682
682
  try {
683
683
  return JSON.parse(e, this.parseReviver);
684
- } catch (c) {
684
+ } catch (a) {
685
685
  if (o)
686
- throw c.name === "SyntaxError" ? g.from(c, g.ERR_BAD_RESPONSE, this, null, this.response) : c;
686
+ throw a.name === "SyntaxError" ? g.from(a, g.ERR_BAD_RESPONSE, this, null, this.response) : a;
687
687
  }
688
688
  }
689
689
  return e;
@@ -712,10 +712,10 @@ const ie = {
712
712
  }
713
713
  }
714
714
  };
715
- a.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
715
+ c.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
716
716
  ie.headers[t] = {};
717
717
  });
718
- const Zr = a.toObjectSet([
718
+ const Zr = c.toObjectSet([
719
719
  "age",
720
720
  "authorization",
721
721
  "content-length",
@@ -745,7 +745,7 @@ function te(t) {
745
745
  return t && String(t).trim().toLowerCase();
746
746
  }
747
747
  function ye(t) {
748
- return t === !1 || t == null ? t : a.isArray(t) ? t.map(ye) : String(t);
748
+ return t === !1 || t == null ? t : c.isArray(t) ? t.map(ye) : String(t);
749
749
  }
750
750
  function tn(t) {
751
751
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -756,12 +756,12 @@ function tn(t) {
756
756
  }
757
757
  const rn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
758
758
  function Pe(t, e, r, n, s) {
759
- if (a.isFunction(n))
759
+ if (c.isFunction(n))
760
760
  return n.call(this, e, r);
761
- if (s && (e = r), !!a.isString(e)) {
762
- if (a.isString(n))
761
+ if (s && (e = r), !!c.isString(e)) {
762
+ if (c.isString(n))
763
763
  return e.indexOf(n) !== -1;
764
- if (a.isRegExp(n))
764
+ if (c.isRegExp(n))
765
765
  return n.test(e);
766
766
  }
767
767
  }
@@ -769,7 +769,7 @@ function nn(t) {
769
769
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
770
770
  }
771
771
  function sn(t, e) {
772
- const r = a.toCamelCase(" " + e);
772
+ const r = c.toCamelCase(" " + e);
773
773
  ["get", "set", "has"].forEach((n) => {
774
774
  Object.defineProperty(t, n + r, {
775
775
  value: function(s, i, o) {
@@ -785,42 +785,42 @@ let O = class {
785
785
  }
786
786
  set(e, r, n) {
787
787
  const s = this;
788
- function i(c, f, l) {
788
+ function i(a, f, l) {
789
789
  const u = te(f);
790
790
  if (!u)
791
791
  throw new Error("header name must be a non-empty string");
792
- const h = a.findKey(s, u);
793
- (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = ye(c));
792
+ const h = c.findKey(s, u);
793
+ (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = ye(a));
794
794
  }
795
- const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
796
- if (a.isPlainObject(e) || e instanceof this.constructor)
795
+ const o = (a, f) => c.forEach(a, (l, u) => i(l, u, f));
796
+ if (c.isPlainObject(e) || e instanceof this.constructor)
797
797
  o(e, r);
798
- else if (a.isString(e) && (e = e.trim()) && !rn(e))
798
+ else if (c.isString(e) && (e = e.trim()) && !rn(e))
799
799
  o(en(e), r);
800
- else if (a.isObject(e) && a.isIterable(e)) {
801
- let c = {}, f, l;
800
+ else if (c.isObject(e) && c.isIterable(e)) {
801
+ let a = {}, f, l;
802
802
  for (const u of e) {
803
- if (!a.isArray(u))
803
+ if (!c.isArray(u))
804
804
  throw TypeError("Object iterator must return a key-value pair");
805
- c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
805
+ a[l = u[0]] = (f = a[l]) ? c.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
806
806
  }
807
- o(c, r);
807
+ o(a, r);
808
808
  } else
809
809
  e != null && i(r, e, n);
810
810
  return this;
811
811
  }
812
812
  get(e, r) {
813
813
  if (e = te(e), e) {
814
- const n = a.findKey(this, e);
814
+ const n = c.findKey(this, e);
815
815
  if (n) {
816
816
  const s = this[n];
817
817
  if (!r)
818
818
  return s;
819
819
  if (r === !0)
820
820
  return tn(s);
821
- if (a.isFunction(r))
821
+ if (c.isFunction(r))
822
822
  return r.call(this, s, n);
823
- if (a.isRegExp(r))
823
+ if (c.isRegExp(r))
824
824
  return r.exec(s);
825
825
  throw new TypeError("parser must be boolean|regexp|function");
826
826
  }
@@ -828,7 +828,7 @@ let O = class {
828
828
  }
829
829
  has(e, r) {
830
830
  if (e = te(e), e) {
831
- const n = a.findKey(this, e);
831
+ const n = c.findKey(this, e);
832
832
  return !!(n && this[n] !== void 0 && (!r || Pe(this, this[n], n, r)));
833
833
  }
834
834
  return !1;
@@ -838,11 +838,11 @@ let O = class {
838
838
  let s = !1;
839
839
  function i(o) {
840
840
  if (o = te(o), o) {
841
- const c = a.findKey(n, o);
842
- c && (!r || Pe(n, n[c], c, r)) && (delete n[c], s = !0);
841
+ const a = c.findKey(n, o);
842
+ a && (!r || Pe(n, n[a], a, r)) && (delete n[a], s = !0);
843
843
  }
844
844
  }
845
- return a.isArray(e) ? e.forEach(i) : i(e), s;
845
+ return c.isArray(e) ? e.forEach(i) : i(e), s;
846
846
  }
847
847
  clear(e) {
848
848
  const r = Object.keys(this);
@@ -855,14 +855,14 @@ let O = class {
855
855
  }
856
856
  normalize(e) {
857
857
  const r = this, n = {};
858
- return a.forEach(this, (s, i) => {
859
- const o = a.findKey(n, i);
858
+ return c.forEach(this, (s, i) => {
859
+ const o = c.findKey(n, i);
860
860
  if (o) {
861
861
  r[o] = ye(s), delete r[i];
862
862
  return;
863
863
  }
864
- const c = e ? nn(i) : String(i).trim();
865
- c !== i && delete r[i], r[c] = ye(s), n[c] = !0;
864
+ const a = e ? nn(i) : String(i).trim();
865
+ a !== i && delete r[i], r[a] = ye(s), n[a] = !0;
866
866
  }), this;
867
867
  }
868
868
  concat(...e) {
@@ -870,8 +870,8 @@ let O = class {
870
870
  }
871
871
  toJSON(e) {
872
872
  const r = /* @__PURE__ */ Object.create(null);
873
- return a.forEach(this, (n, s) => {
874
- n != null && n !== !1 && (r[s] = e && a.isArray(n) ? n.join(", ") : n);
873
+ return c.forEach(this, (n, s) => {
874
+ n != null && n !== !1 && (r[s] = e && c.isArray(n) ? n.join(", ") : n);
875
875
  }), r;
876
876
  }
877
877
  [Symbol.iterator]() {
@@ -899,10 +899,10 @@ let O = class {
899
899
  accessors: {}
900
900
  }).accessors, s = this.prototype;
901
901
  function i(o) {
902
- const c = te(o);
903
- n[c] || (sn(s, o), n[c] = !0);
902
+ const a = te(o);
903
+ n[a] || (sn(s, o), n[a] = !0);
904
904
  }
905
- return a.isArray(e) ? e.forEach(i) : i(e), this;
905
+ return c.isArray(e) ? e.forEach(i) : i(e), this;
906
906
  }
907
907
  };
908
908
  O.accessor([
@@ -913,7 +913,7 @@ O.accessor([
913
913
  "User-Agent",
914
914
  "Authorization"
915
915
  ]);
916
- a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
916
+ c.reduceDescriptors(O.prototype, ({ value: t }, e) => {
917
917
  let r = e[0].toUpperCase() + e.slice(1);
918
918
  return {
919
919
  get: () => t,
@@ -922,15 +922,15 @@ a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
922
922
  }
923
923
  };
924
924
  });
925
- a.freezeMethods(O);
925
+ c.freezeMethods(O);
926
926
  function Oe(t, e) {
927
927
  const r = this || ie, n = e || r, s = O.from(n.headers);
928
928
  let i = n.data;
929
- return a.forEach(t, function(c) {
930
- i = c.call(r, i, s.normalize(), e ? e.status : void 0);
929
+ return c.forEach(t, function(a) {
930
+ i = a.call(r, i, s.normalize(), e ? e.status : void 0);
931
931
  }), s.normalize(), i;
932
932
  }
933
- function Ft(t) {
933
+ function kt(t) {
934
934
  return !!(t && t.__CANCEL__);
935
935
  }
936
936
  let oe = class extends g {
@@ -947,7 +947,7 @@ let oe = class extends g {
947
947
  super(e ?? "canceled", g.ERR_CANCELED, r, n), this.name = "CanceledError", this.__CANCEL__ = !0;
948
948
  }
949
949
  };
950
- function kt(t, e, r) {
950
+ function Ft(t, e, r) {
951
951
  const n = r.config.validateStatus;
952
952
  !r.status || !n || n(r.status) ? t(r) : e(
953
953
  new g(
@@ -975,8 +975,8 @@ function an(t, e) {
975
975
  m += r[h++], h = h % t;
976
976
  if (s = (s + 1) % t, s === i && (i = (i + 1) % t), l - o < e)
977
977
  return;
978
- const E = u && l - u;
979
- return E ? Math.round(m * 1e3 / E) : void 0;
978
+ const R = u && l - u;
979
+ return R ? Math.round(m * 1e3 / R) : void 0;
980
980
  };
981
981
  }
982
982
  function cn(t, e) {
@@ -995,17 +995,17 @@ const me = (t, e, r = 3) => {
995
995
  let n = 0;
996
996
  const s = an(50, 250);
997
997
  return cn((i) => {
998
- const o = i.loaded, c = i.lengthComputable ? i.total : void 0, f = o - n, l = s(f), u = o <= c;
998
+ const o = i.loaded, a = i.lengthComputable ? i.total : void 0, f = o - n, l = s(f), u = o <= a;
999
999
  n = o;
1000
1000
  const h = {
1001
1001
  loaded: o,
1002
- total: c,
1003
- progress: c ? o / c : void 0,
1002
+ total: a,
1003
+ progress: a ? o / a : void 0,
1004
1004
  bytes: f,
1005
1005
  rate: l || void 0,
1006
- estimated: l && c && u ? (c - o) / l : void 0,
1006
+ estimated: l && a && u ? (a - o) / l : void 0,
1007
1007
  event: i,
1008
- lengthComputable: c != null,
1008
+ lengthComputable: a != null,
1009
1009
  [e ? "download" : "upload"]: !0
1010
1010
  };
1011
1011
  t(h);
@@ -1020,7 +1020,7 @@ const me = (t, e, r = 3) => {
1020
1020
  }),
1021
1021
  e[1]
1022
1022
  ];
1023
- }, ot = (t) => (...e) => a.asap(() => t(...e)), un = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, S.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1023
+ }, ot = (t) => (...e) => c.asap(() => t(...e)), un = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, S.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
1024
1024
  new URL(S.origin),
1025
1025
  S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
1026
1026
  ) : () => !0, ln = S.hasStandardBrowserEnv ? (
@@ -1028,8 +1028,8 @@ const me = (t, e, r = 3) => {
1028
1028
  {
1029
1029
  write(t, e, r, n, s, i, o) {
1030
1030
  if (typeof document > "u") return;
1031
- const c = [`${t}=${encodeURIComponent(e)}`];
1032
- a.isNumber(r) && c.push(`expires=${new Date(r).toUTCString()}`), a.isString(n) && c.push(`path=${n}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
1031
+ const a = [`${t}=${encodeURIComponent(e)}`];
1032
+ c.isNumber(r) && a.push(`expires=${new Date(r).toUTCString()}`), c.isString(n) && a.push(`path=${n}`), c.isString(s) && a.push(`domain=${s}`), i === !0 && a.push("secure"), c.isString(o) && a.push(`SameSite=${o}`), document.cookie = a.join("; ");
1033
1033
  },
1034
1034
  read(t) {
1035
1035
  if (typeof document > "u") return null;
@@ -1067,25 +1067,25 @@ function V(t, e) {
1067
1067
  e = e || {};
1068
1068
  const r = {};
1069
1069
  function n(l, u, h, m) {
1070
- return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: m }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
1070
+ return c.isPlainObject(l) && c.isPlainObject(u) ? c.merge.call({ caseless: m }, l, u) : c.isPlainObject(u) ? c.merge({}, u) : c.isArray(u) ? u.slice() : u;
1071
1071
  }
1072
1072
  function s(l, u, h, m) {
1073
- if (a.isUndefined(u)) {
1074
- if (!a.isUndefined(l))
1073
+ if (c.isUndefined(u)) {
1074
+ if (!c.isUndefined(l))
1075
1075
  return n(void 0, l, h, m);
1076
1076
  } else return n(l, u, h, m);
1077
1077
  }
1078
1078
  function i(l, u) {
1079
- if (!a.isUndefined(u))
1079
+ if (!c.isUndefined(u))
1080
1080
  return n(void 0, u);
1081
1081
  }
1082
1082
  function o(l, u) {
1083
- if (a.isUndefined(u)) {
1084
- if (!a.isUndefined(l))
1083
+ if (c.isUndefined(u)) {
1084
+ if (!c.isUndefined(l))
1085
1085
  return n(void 0, l);
1086
1086
  } else return n(void 0, u);
1087
1087
  }
1088
- function c(l, u, h) {
1088
+ function a(l, u, h) {
1089
1089
  if (h in e)
1090
1090
  return n(l, u);
1091
1091
  if (h in t)
@@ -1119,38 +1119,38 @@ function V(t, e) {
1119
1119
  cancelToken: o,
1120
1120
  socketPath: o,
1121
1121
  responseEncoding: o,
1122
- validateStatus: c,
1122
+ validateStatus: a,
1123
1123
  headers: (l, u, h) => s(at(l), at(u), h, !0)
1124
1124
  };
1125
- return a.forEach(Object.keys({ ...t, ...e }), function(u) {
1125
+ return c.forEach(Object.keys({ ...t, ...e }), function(u) {
1126
1126
  if (u === "__proto__" || u === "constructor" || u === "prototype") return;
1127
- const h = a.hasOwnProp(f, u) ? f[u] : s, m = h(t[u], e[u], u);
1128
- a.isUndefined(m) && h !== c || (r[u] = m);
1127
+ const h = c.hasOwnProp(f, u) ? f[u] : s, m = h(t[u], e[u], u);
1128
+ c.isUndefined(m) && h !== a || (r[u] = m);
1129
1129
  }), r;
1130
1130
  }
1131
1131
  const Bt = (t) => {
1132
1132
  const e = V({}, t);
1133
- let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = e;
1133
+ let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: a } = e;
1134
1134
  if (e.headers = o = O.from(o), e.url = Dt(
1135
1135
  vt(e.baseURL, e.url, e.allowAbsoluteUrls),
1136
1136
  t.params,
1137
1137
  t.paramsSerializer
1138
- ), c && o.set(
1138
+ ), a && o.set(
1139
1139
  "Authorization",
1140
1140
  "Basic " + btoa(
1141
- (c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")
1141
+ (a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : "")
1142
1142
  )
1143
- ), a.isFormData(r)) {
1143
+ ), c.isFormData(r)) {
1144
1144
  if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
1145
1145
  o.setContentType(void 0);
1146
- else if (a.isFunction(r.getHeaders)) {
1146
+ else if (c.isFunction(r.getHeaders)) {
1147
1147
  const f = r.getHeaders(), l = ["content-type", "content-length"];
1148
1148
  Object.entries(f).forEach(([u, h]) => {
1149
1149
  l.includes(u.toLowerCase()) && o.set(u, h);
1150
1150
  });
1151
1151
  }
1152
1152
  }
1153
- if (S.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(e)), n || n !== !1 && un(e.url))) {
1153
+ if (S.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(e)), n || n !== !1 && un(e.url))) {
1154
1154
  const f = s && i && ln.read(i);
1155
1155
  f && o.set(s, f);
1156
1156
  }
@@ -1160,26 +1160,26 @@ const Bt = (t) => {
1160
1160
  const s = Bt(t);
1161
1161
  let i = s.data;
1162
1162
  const o = O.from(s.headers).normalize();
1163
- let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, m, E, d;
1163
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: l } = s, u, h, m, R, d;
1164
1164
  function y() {
1165
- E && E(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1165
+ R && R(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1166
1166
  }
1167
1167
  let p = new XMLHttpRequest();
1168
1168
  p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1169
1169
  function C() {
1170
1170
  if (!p)
1171
1171
  return;
1172
- const R = O.from(
1172
+ const E = O.from(
1173
1173
  "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1174
1174
  ), D = {
1175
- data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1175
+ data: !a || a === "text" || a === "json" ? p.responseText : p.response,
1176
1176
  status: p.status,
1177
1177
  statusText: p.statusText,
1178
- headers: R,
1178
+ headers: E,
1179
1179
  config: t,
1180
1180
  request: p
1181
1181
  };
1182
- kt(
1182
+ Ft(
1183
1183
  function(x) {
1184
1184
  r(x), y();
1185
1185
  },
@@ -1207,10 +1207,10 @@ const Bt = (t) => {
1207
1207
  p
1208
1208
  )
1209
1209
  ), p = null;
1210
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(T, D) {
1210
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && c.forEach(o.toJSON(), function(T, D) {
1211
1211
  p.setRequestHeader(D, T);
1212
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([m, d] = me(l, !0), p.addEventListener("progress", m)), f && p.upload && ([h, E] = me(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (R) => {
1213
- p && (n(!R || R.type ? new oe(null, t, p) : R), p.abort(), p = null);
1212
+ }), c.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), a && a !== "json" && (p.responseType = s.responseType), l && ([m, d] = me(l, !0), p.addEventListener("progress", m)), f && p.upload && ([h, R] = me(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (E) => {
1213
+ p && (n(!E || E.type ? new oe(null, t, p) : E), p.abort(), p = null);
1214
1214
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1215
1215
  const N = on(s.url);
1216
1216
  if (N && S.protocols.indexOf(N) === -1) {
@@ -1231,7 +1231,7 @@ const Bt = (t) => {
1231
1231
  let n = new AbortController(), s;
1232
1232
  const i = function(l) {
1233
1233
  if (!s) {
1234
- s = !0, c();
1234
+ s = !0, a();
1235
1235
  const u = l instanceof Error ? l : this.reason;
1236
1236
  n.abort(
1237
1237
  u instanceof g ? u : new oe(u instanceof Error ? u.message : u)
@@ -1241,14 +1241,14 @@ const Bt = (t) => {
1241
1241
  let o = e && setTimeout(() => {
1242
1242
  o = null, i(new g(`timeout of ${e}ms exceeded`, g.ETIMEDOUT));
1243
1243
  }, e);
1244
- const c = () => {
1244
+ const a = () => {
1245
1245
  t && (o && clearTimeout(o), o = null, t.forEach((l) => {
1246
1246
  l.unsubscribe ? l.unsubscribe(i) : l.removeEventListener("abort", i);
1247
1247
  }), t = null);
1248
1248
  };
1249
1249
  t.forEach((l) => l.addEventListener("abort", i));
1250
1250
  const { signal: f } = n;
1251
- return f.unsubscribe = () => a.asap(c), f;
1251
+ return f.unsubscribe = () => c.asap(a), f;
1252
1252
  }
1253
1253
  }, gn = function* (t, e) {
1254
1254
  let r = t.byteLength;
@@ -1260,9 +1260,9 @@ const Bt = (t) => {
1260
1260
  for (; n < r; )
1261
1261
  s = n + e, yield t.slice(n, s), n = s;
1262
1262
  }, mn = async function* (t, e) {
1263
- for await (const r of wn(t))
1263
+ for await (const r of _n(t))
1264
1264
  yield* gn(r, e);
1265
- }, wn = async function* (t) {
1265
+ }, _n = async function* (t) {
1266
1266
  if (t[Symbol.asyncIterator]) {
1267
1267
  yield* t;
1268
1268
  return;
@@ -1280,7 +1280,7 @@ const Bt = (t) => {
1280
1280
  }
1281
1281
  }, ct = (t, e, r, n) => {
1282
1282
  const s = mn(t, e);
1283
- let i = 0, o, c = (f) => {
1283
+ let i = 0, o, a = (f) => {
1284
1284
  o || (o = !0, n && n(f));
1285
1285
  };
1286
1286
  return new ReadableStream(
@@ -1289,7 +1289,7 @@ const Bt = (t) => {
1289
1289
  try {
1290
1290
  const { done: l, value: u } = await s.next();
1291
1291
  if (l) {
1292
- c(), f.close();
1292
+ a(), f.close();
1293
1293
  return;
1294
1294
  }
1295
1295
  let h = u.byteLength;
@@ -1299,38 +1299,38 @@ const Bt = (t) => {
1299
1299
  }
1300
1300
  f.enqueue(new Uint8Array(u));
1301
1301
  } catch (l) {
1302
- throw c(l), l;
1302
+ throw a(l), l;
1303
1303
  }
1304
1304
  },
1305
1305
  cancel(f) {
1306
- return c(f), s.return();
1306
+ return a(f), s.return();
1307
1307
  }
1308
1308
  },
1309
1309
  {
1310
1310
  highWaterMark: 2
1311
1311
  }
1312
1312
  );
1313
- }, ut = 64 * 1024, { isFunction: de } = a, _n = (({ Request: t, Response: e }) => ({
1313
+ }, ut = 64 * 1024, { isFunction: de } = c, wn = (({ Request: t, Response: e }) => ({
1314
1314
  Request: t,
1315
1315
  Response: e
1316
- }))(a.global), { ReadableStream: lt, TextEncoder: dt } = a.global, ft = (t, ...e) => {
1316
+ }))(c.global), { ReadableStream: lt, TextEncoder: dt } = c.global, ft = (t, ...e) => {
1317
1317
  try {
1318
1318
  return !!t(...e);
1319
1319
  } catch {
1320
1320
  return !1;
1321
1321
  }
1322
1322
  }, bn = (t) => {
1323
- t = a.merge.call(
1323
+ t = c.merge.call(
1324
1324
  {
1325
1325
  skipUndefined: !0
1326
1326
  },
1327
- _n,
1327
+ wn,
1328
1328
  t
1329
1329
  );
1330
1330
  const { fetch: e, Request: r, Response: n } = t, s = e ? de(e) : typeof fetch == "function", i = de(r), o = de(n);
1331
1331
  if (!s)
1332
1332
  return !1;
1333
- const c = s && de(lt), f = s && (typeof dt == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new dt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && c && ft(() => {
1333
+ const a = s && de(lt), f = s && (typeof dt == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new dt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && a && ft(() => {
1334
1334
  let d = !1;
1335
1335
  const y = new r(S.origin, {
1336
1336
  body: new lt(),
@@ -1340,7 +1340,7 @@ const Bt = (t) => {
1340
1340
  }
1341
1341
  }).headers.has("Content-Type");
1342
1342
  return d && !y;
1343
- }), u = o && c && ft(() => a.isReadableStream(new n("").body)), h = {
1343
+ }), u = o && a && ft(() => c.isReadableStream(new n("").body)), h = {
1344
1344
  stream: u && ((d) => d.body)
1345
1345
  };
1346
1346
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
@@ -1358,19 +1358,19 @@ const Bt = (t) => {
1358
1358
  const m = async (d) => {
1359
1359
  if (d == null)
1360
1360
  return 0;
1361
- if (a.isBlob(d))
1361
+ if (c.isBlob(d))
1362
1362
  return d.size;
1363
- if (a.isSpecCompliantForm(d))
1363
+ if (c.isSpecCompliantForm(d))
1364
1364
  return (await new r(S.origin, {
1365
1365
  method: "POST",
1366
1366
  body: d
1367
1367
  }).arrayBuffer()).byteLength;
1368
- if (a.isArrayBufferView(d) || a.isArrayBuffer(d))
1368
+ if (c.isArrayBufferView(d) || c.isArrayBuffer(d))
1369
1369
  return d.byteLength;
1370
- if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
1370
+ if (c.isURLSearchParams(d) && (d = d + ""), c.isString(d))
1371
1371
  return (await f(d)).byteLength;
1372
- }, E = async (d, y) => {
1373
- const p = a.toFiniteNumber(d.getContentLength());
1372
+ }, R = async (d, y) => {
1373
+ const p = c.toFiniteNumber(d.getContentLength());
1374
1374
  return p ?? m(y);
1375
1375
  };
1376
1376
  return async (d) => {
@@ -1379,7 +1379,7 @@ const Bt = (t) => {
1379
1379
  method: p,
1380
1380
  data: C,
1381
1381
  signal: N,
1382
- cancelToken: R,
1382
+ cancelToken: E,
1383
1383
  timeout: T,
1384
1384
  onDownloadProgress: D,
1385
1385
  onUploadProgress: $,
@@ -1390,7 +1390,7 @@ const Bt = (t) => {
1390
1390
  } = Bt(d), We = e || fetch;
1391
1391
  x = x ? (x + "").toLowerCase() : "text";
1392
1392
  let ue = yn(
1393
- [N, R && R.toAbortSignal()],
1393
+ [N, E && E.toAbortSignal()],
1394
1394
  T
1395
1395
  ), Z = null;
1396
1396
  const j = ue && ue.unsubscribe && (() => {
@@ -1398,13 +1398,13 @@ const Bt = (t) => {
1398
1398
  });
1399
1399
  let Qe;
1400
1400
  try {
1401
- if ($ && l && p !== "get" && p !== "head" && (Qe = await E(Se, C)) !== 0) {
1401
+ if ($ && l && p !== "get" && p !== "head" && (Qe = await R(Se, C)) !== 0) {
1402
1402
  let I = new r(y, {
1403
1403
  method: "POST",
1404
1404
  body: C,
1405
1405
  duplex: "half"
1406
1406
  }), J;
1407
- if (a.isFormData(C) && (J = I.headers.get("content-type")) && Se.setContentType(J), I.body) {
1407
+ if (c.isFormData(C) && (J = I.headers.get("content-type")) && Se.setContentType(J), I.body) {
1408
1408
  const [Te, le] = it(
1409
1409
  Qe,
1410
1410
  me(ot($))
@@ -1412,7 +1412,7 @@ const Bt = (t) => {
1412
1412
  C = ct(I.body, ut, Te, le);
1413
1413
  }
1414
1414
  }
1415
- a.isString(ce) || (ce = ce ? "include" : "omit");
1415
+ c.isString(ce) || (ce = ce ? "include" : "omit");
1416
1416
  const A = i && "credentials" in r.prototype, Xe = {
1417
1417
  ...Je,
1418
1418
  signal: ue,
@@ -1430,7 +1430,7 @@ const Bt = (t) => {
1430
1430
  ["status", "statusText", "headers"].forEach((Ge) => {
1431
1431
  I[Ge] = B[Ge];
1432
1432
  });
1433
- const J = a.toFiniteNumber(B.headers.get("content-length")), [Te, le] = D && it(
1433
+ const J = c.toFiniteNumber(B.headers.get("content-length")), [Te, le] = D && it(
1434
1434
  J,
1435
1435
  me(ot(D), !0)
1436
1436
  ) || [];
@@ -1442,12 +1442,12 @@ const Bt = (t) => {
1442
1442
  );
1443
1443
  }
1444
1444
  x = x || "text";
1445
- let Kt = await h[a.findKey(h, x) || "text"](
1445
+ let Kt = await h[c.findKey(h, x) || "text"](
1446
1446
  B,
1447
1447
  d
1448
1448
  );
1449
1449
  return !Ye && j && j(), await new Promise((I, J) => {
1450
- kt(I, J, {
1450
+ Ft(I, J, {
1451
1451
  data: Kt,
1452
1452
  headers: O.from(B.headers),
1453
1453
  status: B.status,
@@ -1474,9 +1474,9 @@ const Bt = (t) => {
1474
1474
  }, Cn = /* @__PURE__ */ new Map(), It = (t) => {
1475
1475
  let e = t && t.env || {};
1476
1476
  const { fetch: r, Request: n, Response: s } = e, i = [n, s, r];
1477
- let o = i.length, c = o, f, l, u = Cn;
1478
- for (; c--; )
1479
- f = i[c], l = u.get(f), l === void 0 && u.set(f, l = c ? /* @__PURE__ */ new Map() : bn(e)), u = l;
1477
+ let o = i.length, a = o, f, l, u = Cn;
1478
+ for (; a--; )
1479
+ f = i[a], l = u.get(f), l === void 0 && u.set(f, l = a ? /* @__PURE__ */ new Map() : bn(e)), u = l;
1480
1480
  return l;
1481
1481
  };
1482
1482
  It();
@@ -1487,7 +1487,7 @@ const je = {
1487
1487
  get: It
1488
1488
  }
1489
1489
  };
1490
- a.forEach(je, (t, e) => {
1490
+ c.forEach(je, (t, e) => {
1491
1491
  if (t) {
1492
1492
  try {
1493
1493
  Object.defineProperty(t, "name", { value: e });
@@ -1496,30 +1496,30 @@ a.forEach(je, (t, e) => {
1496
1496
  Object.defineProperty(t, "adapterName", { value: e });
1497
1497
  }
1498
1498
  });
1499
- const ht = (t) => `- ${t}`, En = (t) => a.isFunction(t) || t === null || t === !1;
1500
- function Rn(t, e) {
1501
- t = a.isArray(t) ? t : [t];
1499
+ const ht = (t) => `- ${t}`, Rn = (t) => c.isFunction(t) || t === null || t === !1;
1500
+ function En(t, e) {
1501
+ t = c.isArray(t) ? t : [t];
1502
1502
  const { length: r } = t;
1503
1503
  let n, s;
1504
1504
  const i = {};
1505
1505
  for (let o = 0; o < r; o++) {
1506
1506
  n = t[o];
1507
- let c;
1508
- if (s = n, !En(n) && (s = je[(c = String(n)).toLowerCase()], s === void 0))
1509
- throw new g(`Unknown adapter '${c}'`);
1510
- if (s && (a.isFunction(s) || (s = s.get(e))))
1507
+ let a;
1508
+ if (s = n, !Rn(n) && (s = je[(a = String(n)).toLowerCase()], s === void 0))
1509
+ throw new g(`Unknown adapter '${a}'`);
1510
+ if (s && (c.isFunction(s) || (s = s.get(e))))
1511
1511
  break;
1512
- i[c || "#" + o] = s;
1512
+ i[a || "#" + o] = s;
1513
1513
  }
1514
1514
  if (!s) {
1515
1515
  const o = Object.entries(i).map(
1516
1516
  ([f, l]) => `adapter ${f} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1517
1517
  );
1518
- let c = r ? o.length > 1 ? `since :
1518
+ let a = r ? o.length > 1 ? `since :
1519
1519
  ` + o.map(ht).join(`
1520
1520
  `) : " " + ht(o[0]) : "as no adapter specified";
1521
1521
  throw new g(
1522
- "There is no suitable adapter to dispatch the request " + c,
1522
+ "There is no suitable adapter to dispatch the request " + a,
1523
1523
  "ERR_NOT_SUPPORT"
1524
1524
  );
1525
1525
  }
@@ -1530,7 +1530,7 @@ const qt = {
1530
1530
  * Resolve an adapter from a list of adapter names or functions.
1531
1531
  * @type {Function}
1532
1532
  */
1533
- getAdapter: Rn,
1533
+ getAdapter: En,
1534
1534
  /**
1535
1535
  * Exposes all known adapters
1536
1536
  * @type {Object<string, Function|Object>}
@@ -1547,7 +1547,7 @@ function pt(t) {
1547
1547
  return Ne(t), n.data = Oe.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
1548
1548
  },
1549
1549
  function(n) {
1550
- return Ft(n) || (Ne(t), n && n.response && (n.response.data = Oe.call(
1550
+ return kt(n) || (Ne(t), n && n.response && (n.response.data = Oe.call(
1551
1551
  t,
1552
1552
  t.transformResponse,
1553
1553
  n.response
@@ -1555,18 +1555,18 @@ function pt(t) {
1555
1555
  }
1556
1556
  );
1557
1557
  }
1558
- const $t = "1.13.6", Ee = {};
1558
+ const $t = "1.13.6", Re = {};
1559
1559
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1560
- Ee[t] = function(n) {
1560
+ Re[t] = function(n) {
1561
1561
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1562
1562
  };
1563
1563
  });
1564
1564
  const yt = {};
1565
- Ee.transitional = function(e, r, n) {
1565
+ Re.transitional = function(e, r, n) {
1566
1566
  function s(i, o) {
1567
1567
  return "[Axios v" + $t + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1568
1568
  }
1569
- return (i, o, c) => {
1569
+ return (i, o, a) => {
1570
1570
  if (e === !1)
1571
1571
  throw new g(
1572
1572
  s(o, " has been removed" + (r ? " in " + r : "")),
@@ -1577,10 +1577,10 @@ Ee.transitional = function(e, r, n) {
1577
1577
  o,
1578
1578
  " has been deprecated since v" + r + " and will be removed in the near future"
1579
1579
  )
1580
- )), e ? e(i, o, c) : !0;
1580
+ )), e ? e(i, o, a) : !0;
1581
1581
  };
1582
1582
  };
1583
- Ee.spelling = function(e) {
1583
+ Re.spelling = function(e) {
1584
1584
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1585
1585
  };
1586
1586
  function Sn(t, e, r) {
@@ -1591,7 +1591,7 @@ function Sn(t, e, r) {
1591
1591
  for (; s-- > 0; ) {
1592
1592
  const i = n[s], o = e[i];
1593
1593
  if (o) {
1594
- const c = t[i], f = c === void 0 || o(c, i, t);
1594
+ const a = t[i], f = a === void 0 || o(a, i, t);
1595
1595
  if (f !== !0)
1596
1596
  throw new g(
1597
1597
  "option " + i + " must be " + f,
@@ -1605,7 +1605,7 @@ function Sn(t, e, r) {
1605
1605
  }
1606
1606
  const ge = {
1607
1607
  assertOptions: Sn,
1608
- validators: Ee
1608
+ validators: Re
1609
1609
  }, U = ge.validators;
1610
1610
  let H = class {
1611
1611
  constructor(e) {
@@ -1651,7 +1651,7 @@ let H = class {
1651
1651
  legacyInterceptorReqResOrdering: U.transitional(U.boolean)
1652
1652
  },
1653
1653
  !1
1654
- ), s != null && (a.isFunction(s) ? r.paramsSerializer = {
1654
+ ), s != null && (c.isFunction(s) ? r.paramsSerializer = {
1655
1655
  serialize: s
1656
1656
  } : ge.assertOptions(
1657
1657
  s,
@@ -1668,18 +1668,18 @@ let H = class {
1668
1668
  },
1669
1669
  !0
1670
1670
  ), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1671
- let o = i && a.merge(i.common, i[r.method]);
1672
- i && a.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (d) => {
1671
+ let o = i && c.merge(i.common, i[r.method]);
1672
+ i && c.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (d) => {
1673
1673
  delete i[d];
1674
1674
  }), r.headers = O.concat(o, i);
1675
- const c = [];
1675
+ const a = [];
1676
1676
  let f = !0;
1677
1677
  this.interceptors.request.forEach(function(y) {
1678
1678
  if (typeof y.runWhen == "function" && y.runWhen(r) === !1)
1679
1679
  return;
1680
1680
  f = f && y.synchronous;
1681
1681
  const p = r.transitional || qe;
1682
- p && p.legacyInterceptorReqResOrdering ? c.unshift(y.fulfilled, y.rejected) : c.push(y.fulfilled, y.rejected);
1682
+ p && p.legacyInterceptorReqResOrdering ? a.unshift(y.fulfilled, y.rejected) : a.push(y.fulfilled, y.rejected);
1683
1683
  });
1684
1684
  const l = [];
1685
1685
  this.interceptors.response.forEach(function(y) {
@@ -1688,23 +1688,23 @@ let H = class {
1688
1688
  let u, h = 0, m;
1689
1689
  if (!f) {
1690
1690
  const d = [pt.bind(this), void 0];
1691
- for (d.unshift(...c), d.push(...l), m = d.length, u = Promise.resolve(r); h < m; )
1691
+ for (d.unshift(...a), d.push(...l), m = d.length, u = Promise.resolve(r); h < m; )
1692
1692
  u = u.then(d[h++], d[h++]);
1693
1693
  return u;
1694
1694
  }
1695
- m = c.length;
1696
- let E = r;
1695
+ m = a.length;
1696
+ let R = r;
1697
1697
  for (; h < m; ) {
1698
- const d = c[h++], y = c[h++];
1698
+ const d = a[h++], y = a[h++];
1699
1699
  try {
1700
- E = d(E);
1700
+ R = d(R);
1701
1701
  } catch (p) {
1702
1702
  y.call(this, p);
1703
1703
  break;
1704
1704
  }
1705
1705
  }
1706
1706
  try {
1707
- u = pt.call(this, E);
1707
+ u = pt.call(this, R);
1708
1708
  } catch (d) {
1709
1709
  return Promise.reject(d);
1710
1710
  }
@@ -1718,7 +1718,7 @@ let H = class {
1718
1718
  return Dt(r, e.params, e.paramsSerializer);
1719
1719
  }
1720
1720
  };
1721
- a.forEach(["delete", "get", "head", "options"], function(e) {
1721
+ c.forEach(["delete", "get", "head", "options"], function(e) {
1722
1722
  H.prototype[e] = function(r, n) {
1723
1723
  return this.request(
1724
1724
  V(n || {}, {
@@ -1729,11 +1729,11 @@ a.forEach(["delete", "get", "head", "options"], function(e) {
1729
1729
  );
1730
1730
  };
1731
1731
  });
1732
- a.forEach(["post", "put", "patch"], function(e) {
1732
+ c.forEach(["post", "put", "patch"], function(e) {
1733
1733
  function r(n) {
1734
- return function(i, o, c) {
1734
+ return function(i, o, a) {
1735
1735
  return this.request(
1736
- V(c || {}, {
1736
+ V(a || {}, {
1737
1737
  method: e,
1738
1738
  headers: n ? {
1739
1739
  "Content-Type": "multipart/form-data"
@@ -1763,14 +1763,14 @@ let Tn = class jt {
1763
1763
  n._listeners = null;
1764
1764
  }), this.promise.then = (s) => {
1765
1765
  let i;
1766
- const o = new Promise((c) => {
1767
- n.subscribe(c), i = c;
1766
+ const o = new Promise((a) => {
1767
+ n.subscribe(a), i = a;
1768
1768
  }).then(s);
1769
1769
  return o.cancel = function() {
1770
1770
  n.unsubscribe(i);
1771
1771
  }, o;
1772
- }, e(function(i, o, c) {
1773
- n.reason || (n.reason = new oe(i, o, c), r(n.reason));
1772
+ }, e(function(i, o, a) {
1773
+ n.reason || (n.reason = new oe(i, o, a), r(n.reason));
1774
1774
  });
1775
1775
  }
1776
1776
  /**
@@ -1825,9 +1825,9 @@ function An(t) {
1825
1825
  };
1826
1826
  }
1827
1827
  function Pn(t) {
1828
- return a.isObject(t) && t.isAxiosError === !0;
1828
+ return c.isObject(t) && t.isAxiosError === !0;
1829
1829
  }
1830
- const ke = {
1830
+ const Fe = {
1831
1831
  Continue: 100,
1832
1832
  SwitchingProtocols: 101,
1833
1833
  Processing: 102,
@@ -1898,12 +1898,12 @@ const ke = {
1898
1898
  SslHandshakeFailed: 525,
1899
1899
  InvalidSslCertificate: 526
1900
1900
  };
1901
- Object.entries(ke).forEach(([t, e]) => {
1902
- ke[e] = t;
1901
+ Object.entries(Fe).forEach(([t, e]) => {
1902
+ Fe[e] = t;
1903
1903
  });
1904
1904
  function Mt(t) {
1905
1905
  const e = new H(t), r = Ct(H.prototype.request, e);
1906
- return a.extend(r, H.prototype, e, { allOwnKeys: !0 }), a.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1906
+ return c.extend(r, H.prototype, e, { allOwnKeys: !0 }), c.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1907
1907
  return Mt(V(t, s));
1908
1908
  }, r;
1909
1909
  }
@@ -1911,7 +1911,7 @@ const b = Mt(ie);
1911
1911
  b.Axios = H;
1912
1912
  b.CanceledError = oe;
1913
1913
  b.CancelToken = Tn;
1914
- b.isCancel = Ft;
1914
+ b.isCancel = kt;
1915
1915
  b.VERSION = $t;
1916
1916
  b.toFormData = Ce;
1917
1917
  b.AxiosError = g;
@@ -1923,9 +1923,9 @@ b.spread = An;
1923
1923
  b.isAxiosError = Pn;
1924
1924
  b.mergeConfig = V;
1925
1925
  b.AxiosHeaders = O;
1926
- b.formToJSON = (t) => Lt(a.isHTMLForm(t) ? new FormData(t) : t);
1926
+ b.formToJSON = (t) => Lt(c.isHTMLForm(t) ? new FormData(t) : t);
1927
1927
  b.getAdapter = qt.getAdapter;
1928
- b.HttpStatusCode = ke;
1928
+ b.HttpStatusCode = Fe;
1929
1929
  b.default = b;
1930
1930
  const {
1931
1931
  Axios: Zs,
@@ -1948,21 +1948,21 @@ const {
1948
1948
  class xe extends Error {
1949
1949
  constructor(r) {
1950
1950
  super(r.join(", "));
1951
- _(this, "errors");
1951
+ w(this, "errors");
1952
1952
  this.name = "ValidationError", this.errors = r;
1953
1953
  }
1954
1954
  }
1955
1955
  class gt extends Error {
1956
1956
  constructor(r) {
1957
1957
  super("Address already registered.");
1958
- _(this, "address");
1958
+ w(this, "address");
1959
1959
  this.name = "AddressInUseError", this.address = r;
1960
1960
  }
1961
1961
  }
1962
1962
  class mt extends Error {
1963
1963
  constructor(r) {
1964
1964
  super("Code already registered.");
1965
- _(this, "code");
1965
+ w(this, "code");
1966
1966
  this.name = "CodeInUseError", this.code = r;
1967
1967
  }
1968
1968
  }
@@ -1973,11 +1973,11 @@ class Ue extends Error {
1973
1973
  }
1974
1974
  class On {
1975
1975
  constructor(e) {
1976
- _(this, "httpClient");
1977
- _(this, "_debug");
1976
+ w(this, "httpClient");
1977
+ w(this, "_debug");
1978
1978
  this.httpClient = e.httpClient, this._debug = e.debug;
1979
1979
  }
1980
- async create(e, r, n, s, i, o, c) {
1980
+ async create(e, r, n, s, i, o, a) {
1981
1981
  var f;
1982
1982
  try {
1983
1983
  return (await this.httpClient.post({
@@ -1990,7 +1990,7 @@ class On {
1990
1990
  signature: s,
1991
1991
  signature_public_key: i,
1992
1992
  account_chain_id: o,
1993
- user_rebate_rate: c
1993
+ user_rebate_rate: a
1994
1994
  }
1995
1995
  })).data;
1996
1996
  } catch (l) {
@@ -2006,7 +2006,7 @@ class On {
2006
2006
  }
2007
2007
  }
2008
2008
  async update(e, r, n, s, i, o) {
2009
- var c;
2009
+ var a;
2010
2010
  try {
2011
2011
  await this.httpClient.post({
2012
2012
  path: `/affiliates/${e}`,
@@ -2021,7 +2021,7 @@ class On {
2021
2021
  });
2022
2022
  } catch (f) {
2023
2023
  if (f instanceof fe) {
2024
- const l = (c = f.response) == null ? void 0 : c.data;
2024
+ const l = (a = f.response) == null ? void 0 : a.data;
2025
2025
  if (typeof (l == null ? void 0 : l.message) == "string") {
2026
2026
  const u = l.message.toLowerCase();
2027
2027
  throw u == "invalid signature" ? new Ue() : u == "address in use" ? new gt(e) : u == "code in use" ? new mt(n) : new Error(u);
@@ -2031,7 +2031,7 @@ class On {
2031
2031
  throw f;
2032
2032
  }
2033
2033
  }
2034
- async updateRebateRate(e, r, n, s, i, o, c, f) {
2034
+ async updateRebateRate(e, r, n, s, i, o, a, f) {
2035
2035
  var l;
2036
2036
  try {
2037
2037
  await this.httpClient.post({
@@ -2041,7 +2041,7 @@ class On {
2041
2041
  code: n,
2042
2042
  signature: s,
2043
2043
  signature_public_key: o,
2044
- account_chain_id: c,
2044
+ account_chain_id: a,
2045
2045
  source_project_id: f,
2046
2046
  rebate_rate: i
2047
2047
  }
@@ -2072,22 +2072,39 @@ class On {
2072
2072
  throw console.error("Fuul SDK: Could not check affiliate code availability", r), r;
2073
2073
  }
2074
2074
  }
2075
- async getCode(e, r) {
2075
+ async getReferral(e, r) {
2076
2076
  var n;
2077
2077
  try {
2078
- return (await this.httpClient.get({ path: `/affiliates/${e}`, queryParams: { identifier_type: r } })).data;
2078
+ const i = (await this.httpClient.get({ path: `/affiliates/${e}`, queryParams: { identifier_type: r } })).data, o = i.codes ?? [], a = o[0];
2079
+ return {
2080
+ id: i.id,
2081
+ name: i.name,
2082
+ user_identifier: i.user_identifier,
2083
+ user_identifier_type: i.user_identifier_type,
2084
+ updated_at: i.updated_at,
2085
+ region: i.region ?? "",
2086
+ codes: o,
2087
+ code: (a == null ? void 0 : a.code) ?? "",
2088
+ created_at: (a == null ? void 0 : a.created_at) ?? "",
2089
+ uses: (a == null ? void 0 : a.uses) ?? 0,
2090
+ clicks: (a == null ? void 0 : a.clicks) ?? 0,
2091
+ total_users: (a == null ? void 0 : a.total_users) ?? 0,
2092
+ total_earnings: (a == null ? void 0 : a.total_earnings) ?? 0,
2093
+ rebate_rate: (a == null ? void 0 : a.rebate_rate) ?? null,
2094
+ current_tier: (a == null ? void 0 : a.current_tier) ?? null
2095
+ };
2079
2096
  } catch (s) {
2080
2097
  if (s instanceof fe && ((n = s.response) == null ? void 0 : n.status) === 404)
2081
2098
  return null;
2082
- throw console.error("Fuul SDK: Could not get affiliate code", s), s;
2099
+ throw console.error("Fuul SDK: Could not get affiliate referral", s), s;
2083
2100
  }
2084
2101
  }
2085
2102
  }
2086
2103
  const Nn = "/audiences";
2087
2104
  class xn {
2088
2105
  constructor(e) {
2089
- _(this, "httpClient");
2090
- _(this, "_debug");
2106
+ w(this, "httpClient");
2107
+ w(this, "_debug");
2091
2108
  this.httpClient = e.httpClient, this._debug = e.debug;
2092
2109
  }
2093
2110
  async getUserAudiences(e) {
@@ -2100,8 +2117,8 @@ class xn {
2100
2117
  const he = "/claim-checks";
2101
2118
  class Un {
2102
2119
  constructor(e) {
2103
- _(this, "httpClient");
2104
- _(this, "_debug");
2120
+ w(this, "httpClient");
2121
+ w(this, "_debug");
2105
2122
  this.httpClient = e.httpClient, this._debug = e.debug;
2106
2123
  }
2107
2124
  /**
@@ -2171,7 +2188,7 @@ class Un {
2171
2188
  }
2172
2189
  class Dn {
2173
2190
  constructor(e) {
2174
- _(this, "httpClient");
2191
+ w(this, "httpClient");
2175
2192
  this.httpClient = e.httpClient;
2176
2193
  }
2177
2194
  async getAll(e) {
@@ -2179,11 +2196,11 @@ class Dn {
2179
2196
  return r;
2180
2197
  }
2181
2198
  }
2182
- const wt = "fuul.sent", Ln = 60, Fn = "connect_wallet", _t = 10;
2183
- class kn {
2199
+ const _t = "fuul.sent", Ln = 60, kn = "connect_wallet", wt = 10;
2200
+ class Fn {
2184
2201
  constructor(e) {
2185
- _(this, "debug");
2186
- _(this, "httpClient");
2202
+ w(this, "debug");
2203
+ w(this, "httpClient");
2187
2204
  this.httpClient = e.httpClient, this.debug = !!e.debug;
2188
2205
  }
2189
2206
  async sendEvent(e, r) {
@@ -2201,15 +2218,15 @@ class kn {
2201
2218
  this.debug && console.debug(`Fuul SDK: Sent '${e.name}' event`), this.saveSentEvent(e);
2202
2219
  }
2203
2220
  isDuplicate(e) {
2204
- var u, h, m, E;
2205
- const r = `${wt}_${e.name}`, n = localStorage.getItem(r);
2221
+ var u, h, m, R;
2222
+ const r = `${_t}_${e.name}`, n = localStorage.getItem(r);
2206
2223
  if (!n)
2207
2224
  return !1;
2208
2225
  const s = JSON.parse(n);
2209
2226
  if (this.getCurrentTimestamp() - s.timestamp > Ln)
2210
2227
  return !1;
2211
2228
  let f = !1;
2212
- e.metadata && (f = s.metadata.tracking_id === e.metadata.tracking_id && s.metadata.project_id === e.metadata.project_id && s.metadata.referrer === e.metadata.referrer && s.metadata.source === e.metadata.source && s.metadata.category === e.metadata.category && s.metadata.title === e.metadata.title && s.metadata.tag === e.metadata.tag && s.user_address === e.user_address && ((u = s.user) == null ? void 0 : u.identifier) === ((h = e.user) == null ? void 0 : h.identifier) && ((m = s.user) == null ? void 0 : m.identifier_type) === ((E = e.user) == null ? void 0 : E.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2229
+ e.metadata && (f = s.metadata.tracking_id === e.metadata.tracking_id && s.metadata.project_id === e.metadata.project_id && s.metadata.referrer === e.metadata.referrer && s.metadata.source === e.metadata.source && s.metadata.category === e.metadata.category && s.metadata.title === e.metadata.title && s.metadata.tag === e.metadata.tag && s.user_address === e.user_address && ((u = s.user) == null ? void 0 : u.identifier) === ((h = e.user) == null ? void 0 : h.identifier) && ((m = s.user) == null ? void 0 : m.identifier_type) === ((R = e.user) == null ? void 0 : R.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2213
2230
  let l = !1;
2214
2231
  return e.args && s.args && (l = s.args.page === e.args.page), l && f;
2215
2232
  }
@@ -2217,21 +2234,21 @@ class kn {
2217
2234
  return Date.now() / 1e3;
2218
2235
  }
2219
2236
  saveSentEvent(e) {
2220
- var o, c, f, l;
2221
- const r = `${wt}_${e.name}`, n = `${r}_all`, s = this.getCurrentTimestamp(), i = { ...e, timestamp: s };
2222
- if (localStorage.setItem(r, JSON.stringify(i)), e.name === Fn) {
2237
+ var o, a, f, l;
2238
+ const r = `${_t}_${e.name}`, n = `${r}_all`, s = this.getCurrentTimestamp(), i = { ...e, timestamp: s };
2239
+ if (localStorage.setItem(r, JSON.stringify(i)), e.name === kn) {
2223
2240
  const u = JSON.parse(localStorage.getItem(n) || "[]"), h = {
2224
2241
  name: e.name,
2225
2242
  user: {
2226
2243
  identifier: (o = e.user) == null ? void 0 : o.identifier,
2227
- identifier_type: (c = e.user) == null ? void 0 : c.identifier_type
2244
+ identifier_type: (a = e.user) == null ? void 0 : a.identifier_type
2228
2245
  },
2229
2246
  tracking_id: (f = e.metadata) == null ? void 0 : f.tracking_id,
2230
2247
  page: (l = e.args) == null ? void 0 : l.page
2231
2248
  };
2232
2249
  "user_address" in e && (h.user_address = e.user_address);
2233
2250
  const m = [...u, h];
2234
- m.length > _t && m.splice(0, m.length - _t), localStorage.setItem(n, JSON.stringify(m));
2251
+ m.length > wt && m.splice(0, m.length - wt), localStorage.setItem(n, JSON.stringify(m));
2235
2252
  }
2236
2253
  }
2237
2254
  }
@@ -2240,8 +2257,8 @@ const vn = "0.0.0", Bn = {
2240
2257
  };
2241
2258
  class In {
2242
2259
  constructor(e) {
2243
- _(this, "client");
2244
- _(this, "defaultQueryParams");
2260
+ w(this, "client");
2261
+ w(this, "defaultQueryParams");
2245
2262
  this.client = b.create({
2246
2263
  ...e,
2247
2264
  headers: {
@@ -2295,7 +2312,7 @@ class In {
2295
2312
  }
2296
2313
  class qn {
2297
2314
  constructor(e) {
2298
- _(this, "httpClient");
2315
+ w(this, "httpClient");
2299
2316
  this.httpClient = e.httpClient;
2300
2317
  }
2301
2318
  async getPayoutsLeaderboard(e) {
@@ -2358,8 +2375,8 @@ class qn {
2358
2375
  const W = "/payouts";
2359
2376
  class $n {
2360
2377
  constructor(e) {
2361
- _(this, "httpClient");
2362
- _(this, "_debug");
2378
+ w(this, "httpClient");
2379
+ w(this, "_debug");
2363
2380
  this.httpClient = e.httpClient, this._debug = e.debug;
2364
2381
  }
2365
2382
  async getUserPayoutsByConversion(e) {
@@ -2405,8 +2422,8 @@ class $n {
2405
2422
  }
2406
2423
  class jn {
2407
2424
  constructor(e) {
2408
- _(this, "httpClient");
2409
- _(this, "_debug");
2425
+ w(this, "httpClient");
2426
+ w(this, "_debug");
2410
2427
  this.httpClient = e.httpClient, this._debug = e.debug;
2411
2428
  }
2412
2429
  async listUserReferralCodes(e) {
@@ -2446,7 +2463,7 @@ class jn {
2446
2463
  })).data;
2447
2464
  }
2448
2465
  async useReferralCode(e) {
2449
- const { code: r, user_identifier: n, user_identifier_type: s, signature: i, signature_message: o, chain_id: c } = e;
2466
+ const { code: r, user_identifier: n, user_identifier_type: s, signature: i, signature_message: o, chain_id: a } = e;
2450
2467
  await this.httpClient.patch({
2451
2468
  path: `/referral_codes/${r}/use`,
2452
2469
  queryParams: {
@@ -2456,7 +2473,7 @@ class jn {
2456
2473
  postData: {
2457
2474
  signature: i,
2458
2475
  signature_message: o,
2459
- chain_id: c
2476
+ chain_id: a
2460
2477
  }
2461
2478
  });
2462
2479
  }
@@ -2469,7 +2486,7 @@ class jn {
2469
2486
  });
2470
2487
  }
2471
2488
  async deleteReferral(e) {
2472
- const { code: r, user_identifier: n, user_identifier_type: s, referrer_identifier: i, referrer_identifier_type: o, signature: c, signature_message: f, chain_id: l } = e;
2489
+ const { code: r, user_identifier: n, user_identifier_type: s, referrer_identifier: i, referrer_identifier_type: o, signature: a, signature_message: f, chain_id: l } = e;
2473
2490
  await this.httpClient.delete({
2474
2491
  path: `/referral_codes/${r}/referrals`,
2475
2492
  queryParams: {
@@ -2479,7 +2496,7 @@ class jn {
2479
2496
  referrer_identifier_type: o
2480
2497
  },
2481
2498
  postData: {
2482
- signature: c,
2499
+ signature: a,
2483
2500
  signature_message: f,
2484
2501
  chain_id: l
2485
2502
  }
@@ -2508,7 +2525,7 @@ const Vn = "fuul.tracking_id", Me = () => Xn(Vn, () => Hn()), bt = () => X("af")
2508
2525
  }, Gn = "/user";
2509
2526
  class Zn {
2510
2527
  constructor(e) {
2511
- _(this, "httpClient");
2528
+ w(this, "httpClient");
2512
2529
  this.httpClient = e.httpClient;
2513
2530
  }
2514
2531
  async getUserReferrer(e) {
@@ -2516,16 +2533,16 @@ class Zn {
2516
2533
  }
2517
2534
  }
2518
2535
  const es = "https://api.fuul.xyz/api/v1/";
2519
- let k = !1, ve = !1, He, L, Ve, Ht, v, G, Re, K, Vt, z, q, ae;
2536
+ let F = !1, ve = !1, He, L, Ve, Ht, v, G, Ee, K, Vt, z, q, ae;
2520
2537
  function ts(t) {
2521
- k = !!t.debug, !ve && (He = t.apiKey, Ks(), L = zs(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Ve = new Dn({ httpClient: L, debug: k }), Re = new kn({ httpClient: L, debug: k }), v = new On({ httpClient: L, debug: k }), G = new Wt({ httpClient: L }), K = new $n({ httpClient: L, debug: k }), Ht = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: k }), z = new qn({ httpClient: L }), q = new jn({ httpClient: L, debug: k }), ae = new Un({ httpClient: L, debug: k }), ve = !0, k && console.debug("Fuul SDK: init() complete"));
2538
+ F = !!t.debug, !ve && (He = t.apiKey, Ks(), L = zs(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Ve = new Dn({ httpClient: L, debug: F }), Ee = new Fn({ httpClient: L, debug: F }), v = new On({ httpClient: L, debug: F }), G = new Wt({ httpClient: L }), K = new $n({ httpClient: L, debug: F }), Ht = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: F }), z = new qn({ httpClient: L }), q = new jn({ httpClient: L, debug: F }), ae = new Un({ httpClient: L, debug: F }), ve = !0, F && console.debug("Fuul SDK: init() complete"));
2522
2539
  }
2523
- function w() {
2540
+ function _() {
2524
2541
  if (!ve)
2525
2542
  throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
2526
2543
  }
2527
2544
  async function rs(t, e) {
2528
- w(), Ke(), ze();
2545
+ _(), Ke(), ze();
2529
2546
  const r = {
2530
2547
  name: t,
2531
2548
  args: e ?? {},
@@ -2533,10 +2550,10 @@ async function rs(t, e) {
2533
2550
  tracking_id: Me()
2534
2551
  }
2535
2552
  };
2536
- await Re.sendEvent(r);
2553
+ await Ee.sendEvent(r);
2537
2554
  }
2538
2555
  async function ns(t, e) {
2539
- w(), Ke(), ze();
2556
+ _(), Ke(), ze();
2540
2557
  const r = {
2541
2558
  name: "pageview",
2542
2559
  args: {
@@ -2554,10 +2571,10 @@ async function ns(t, e) {
2554
2571
  tag: Qn() ?? void 0
2555
2572
  }
2556
2573
  };
2557
- await Re.sendEvent(r, e);
2574
+ await Ee.sendEvent(r, e);
2558
2575
  }
2559
2576
  async function ss(t, e) {
2560
- w(), Ke(), ze();
2577
+ _(), Ke(), ze();
2561
2578
  const r = {
2562
2579
  name: "connect_wallet",
2563
2580
  user: {
@@ -2572,10 +2589,10 @@ async function ss(t, e) {
2572
2589
  tracking_id: Me()
2573
2590
  }
2574
2591
  };
2575
- t != null && t.signature && (r.signature = t == null ? void 0 : t.signature, r.signature_message = t == null ? void 0 : t.message), t != null && t.signaturePublicKey && (r.signature_public_key = t.signaturePublicKey), t != null && t.accountChainId && (r.account_chain_id = t.accountChainId), await Re.sendEvent(r, e);
2592
+ t != null && t.signature && (r.signature = t == null ? void 0 : t.signature, r.signature_message = t == null ? void 0 : t.message), t != null && t.signaturePublicKey && (r.signature_public_key = t.signaturePublicKey), t != null && t.accountChainId && (r.account_chain_id = t.accountChainId), await Ee.sendEvent(r, e);
2576
2593
  }
2577
2594
  async function is(t) {
2578
- return w(), v.create(
2595
+ return _(), v.create(
2579
2596
  t.userIdentifier,
2580
2597
  t.identifierType,
2581
2598
  t.code,
@@ -2586,7 +2603,7 @@ async function is(t) {
2586
2603
  );
2587
2604
  }
2588
2605
  async function os(t) {
2589
- w(), await v.update(
2606
+ _(), await v.update(
2590
2607
  t.userIdentifier,
2591
2608
  t.identifierType,
2592
2609
  t.code,
@@ -2596,7 +2613,7 @@ async function os(t) {
2596
2613
  );
2597
2614
  }
2598
2615
  async function as(t) {
2599
- w(), await v.updateRebateRate(
2616
+ _(), await v.updateRebateRate(
2600
2617
  t.userIdentifier,
2601
2618
  t.identifierType,
2602
2619
  t.code,
@@ -2608,20 +2625,20 @@ async function as(t) {
2608
2625
  );
2609
2626
  }
2610
2627
  async function cs(t, e) {
2611
- return w(), await v.getCode(t, e);
2628
+ return _(), await v.getReferral(t, e);
2612
2629
  }
2613
2630
  async function us(t, e) {
2614
- return w(), await v.getCode(t, e);
2631
+ return _(), await v.getReferral(t, e);
2615
2632
  }
2616
2633
  async function ls(t) {
2617
- return w(), await v.isCodeFree(t);
2634
+ return _(), await v.isCodeFree(t);
2618
2635
  }
2619
2636
  async function ds(t) {
2620
- return w(), await v.isCodeAvailable(t);
2637
+ return _(), await v.isCodeAvailable(t);
2621
2638
  }
2622
2639
  async function fs(t, e, r, n) {
2623
- w();
2624
- const s = await v.getCode(e, r), i = new URLSearchParams({
2640
+ _();
2641
+ const s = await v.getReferral(e, r), i = new URLSearchParams({
2625
2642
  af: (s == null ? void 0 : s.code) ?? e
2626
2643
  });
2627
2644
  return n != null && n.title && i.append("af_title", n.title), n != null && n.format && i.append("af_format", n.format), n != null && n.place && i.append("af_place", n.place), `${t}?${i.toString()}`;
@@ -2636,15 +2653,15 @@ function ys(t) {
2636
2653
  return z.getReferredUsersLeaderboard(t);
2637
2654
  }
2638
2655
  function gs(t) {
2639
- return w(), z.getReferredVolume(t);
2656
+ return _(), z.getReferredVolume(t);
2640
2657
  }
2641
2658
  function ms(t) {
2642
- return w(), z.getVolumeLeaderboard(t);
2643
- }
2644
- function ws(t) {
2645
- return w(), z.getRevenueLeaderboard(t);
2659
+ return _(), z.getVolumeLeaderboard(t);
2646
2660
  }
2647
2661
  function _s(t) {
2662
+ return _(), z.getRevenueLeaderboard(t);
2663
+ }
2664
+ function ws(t) {
2648
2665
  return K.getUserPayoutsByConversion(t);
2649
2666
  }
2650
2667
  function bs(t) {
@@ -2653,74 +2670,74 @@ function bs(t) {
2653
2670
  function Cs(t) {
2654
2671
  return K.getUserPayoutMovements(t);
2655
2672
  }
2656
- function Es(t) {
2673
+ function Rs(t) {
2657
2674
  return K.getUserPointsMovements(t);
2658
2675
  }
2659
- function Rs(t) {
2660
- return w(), K.getPayoutsByReferrer(t);
2676
+ function Es(t) {
2677
+ return _(), K.getPayoutsByReferrer(t);
2661
2678
  }
2662
2679
  async function Ss(t) {
2663
- return w(), K.getIncentivesByTier(t);
2680
+ return _(), K.getIncentivesByTier(t);
2664
2681
  }
2665
2682
  async function Ts() {
2666
- return w(), Ve.getAll();
2683
+ return _(), Ve.getAll();
2667
2684
  }
2668
2685
  async function As(t) {
2669
- return w(), Ve.getAll(t);
2686
+ return _(), Ve.getAll(t);
2670
2687
  }
2671
2688
  async function Ps(t) {
2672
- return w(), Ht.getUserReferrer(t);
2689
+ return _(), Ht.getUserReferrer(t);
2673
2690
  }
2674
2691
  async function Os(t) {
2675
- return w(), Vt.getUserAudiences(t);
2692
+ return _(), Vt.getUserAudiences(t);
2676
2693
  }
2677
2694
  async function Ns(t) {
2678
- return w(), q.listUserReferralCodes(t);
2695
+ return _(), q.listUserReferralCodes(t);
2679
2696
  }
2680
2697
  async function xs(t) {
2681
- return w(), q.generateReferralCodes(t);
2698
+ return _(), q.generateReferralCodes(t);
2682
2699
  }
2683
2700
  async function Us(t) {
2684
- return w(), q.getReferralStatus(t);
2701
+ return _(), q.getReferralStatus(t);
2685
2702
  }
2686
2703
  async function Ds(t) {
2687
- return w(), q.getReferralCode(t);
2704
+ return _(), q.getReferralCode(t);
2688
2705
  }
2689
2706
  async function Ls(t) {
2690
- return w(), q.useReferralCode(t);
2691
- }
2692
- async function Fs(t) {
2693
- return w(), q.updateReferralCode(t);
2707
+ return _(), q.useReferralCode(t);
2694
2708
  }
2695
2709
  async function ks(t) {
2696
- return w(), q.deleteReferral(t);
2710
+ return _(), q.updateReferralCode(t);
2711
+ }
2712
+ async function Fs(t) {
2713
+ return _(), q.deleteReferral(t);
2697
2714
  }
2698
2715
  async function vs(t) {
2699
- return w(), G.getAffiliateStats(t);
2716
+ return _(), G.getAffiliateStats(t);
2700
2717
  }
2701
2718
  async function Bs(t) {
2702
- return w(), G.getAffiliateNewTraders(t);
2719
+ return _(), G.getAffiliateNewTraders(t);
2703
2720
  }
2704
2721
  async function Is(t) {
2705
- return w(), G.getAffiliateTotalStats(t);
2722
+ return _(), G.getAffiliateTotalStats(t);
2706
2723
  }
2707
2724
  async function qs(t) {
2708
- return w(), G.getReferralTree(t);
2725
+ return _(), G.getReferralTree(t);
2709
2726
  }
2710
2727
  async function $s(t) {
2711
- return w(), G.getStatsBreakdown(t);
2728
+ return _(), G.getStatsBreakdown(t);
2712
2729
  }
2713
2730
  async function js(t) {
2714
- return w(), ae.getClaimChecks(t);
2731
+ return _(), ae.getClaimChecks(t);
2715
2732
  }
2716
2733
  async function Ms(t) {
2717
- return w(), ae.closeClaimChecks(t);
2734
+ return _(), ae.closeClaimChecks(t);
2718
2735
  }
2719
2736
  async function Hs(t) {
2720
- return w(), ae.getClaimableChecks(t);
2737
+ return _(), ae.getClaimableChecks(t);
2721
2738
  }
2722
2739
  async function Vs(t) {
2723
- return w(), ae.getClaimCheckTotals(t);
2740
+ return _(), ae.getClaimCheckTotals(t);
2724
2741
  }
2725
2742
  function Ke() {
2726
2743
  if (typeof window > "u" || typeof document > "u")
@@ -2763,21 +2780,21 @@ const pi = {
2763
2780
  getReferredUsersLeaderboard: ys,
2764
2781
  getReferredVolume: gs,
2765
2782
  getUserAudiences: Os,
2766
- getUserPayoutsByConversion: _s,
2783
+ getUserPayoutsByConversion: ws,
2767
2784
  getUserPointsByConversion: bs,
2768
- getUserPointsMovements: Es,
2785
+ getUserPointsMovements: Rs,
2769
2786
  getUserPayoutMovements: Cs,
2770
- getPayoutsByReferrer: Rs,
2787
+ getPayoutsByReferrer: Es,
2771
2788
  getUserReferrer: Ps,
2772
2789
  getVolumeLeaderboard: ms,
2773
- getRevenueLeaderboard: ws,
2790
+ getRevenueLeaderboard: _s,
2774
2791
  listUserReferralCodes: Ns,
2775
2792
  generateReferralCodes: xs,
2776
2793
  getReferralStatus: Us,
2777
2794
  getReferralCode: Ds,
2778
2795
  useReferralCode: Ls,
2779
- updateReferralCode: Fs,
2780
- deleteReferral: ks,
2796
+ updateReferralCode: ks,
2797
+ deleteReferral: Fs,
2781
2798
  getAffiliateStats: vs,
2782
2799
  getAffiliateNewTraders: Bs,
2783
2800
  getAffiliateTotalStats: Is,