@fuul/sdk 7.20.0 → 7.21.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,7 +1,7 @@
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
3
  var b = (t, e, r) => Jt(t, typeof e != "symbol" ? e + "" : e, r);
4
- const Ce = "/affiliate-portal";
4
+ const Ae = "/affiliate-portal";
5
5
  class Wt {
6
6
  constructor(e) {
7
7
  b(this, "httpClient");
@@ -9,7 +9,7 @@ class Wt {
9
9
  }
10
10
  async getAffiliateStats(e) {
11
11
  return (await this.httpClient.get({
12
- path: `${Ce}/stats`,
12
+ path: `${Ae}/stats`,
13
13
  queryParams: {
14
14
  user_identifier: e.user_identifier,
15
15
  from: e.from,
@@ -22,7 +22,7 @@ class Wt {
22
22
  }
23
23
  async getAffiliateTotalStats(e) {
24
24
  return (await this.httpClient.get({
25
- path: `${Ce}/total-stats`,
25
+ path: `${Ae}/total-stats`,
26
26
  queryParams: {
27
27
  statuses: e.statuses,
28
28
  regions: e.regions,
@@ -32,7 +32,7 @@ class Wt {
32
32
  }
33
33
  async getAffiliateNewTraders(e) {
34
34
  return (await this.httpClient.get({
35
- path: `${Ce}/new-traders`,
35
+ path: `${Ae}/new-traders`,
36
36
  queryParams: {
37
37
  user_identifier: e.user_identifier,
38
38
  from: e.from,
@@ -47,23 +47,23 @@ function _t(t, e) {
47
47
  return t.apply(e, arguments);
48
48
  };
49
49
  }
50
- const { toString: Qt } = Object.prototype, { getPrototypeOf: ke } = Object, { iterator: pe, toStringTag: Et } = Symbol, ye = /* @__PURE__ */ ((t) => (e) => {
50
+ const { toString: Qt } = Object.prototype, { getPrototypeOf: Be } = Object, { iterator: me, toStringTag: Ct } = Symbol, ge = /* @__PURE__ */ ((t) => (e) => {
51
51
  const r = Qt.call(e);
52
52
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
53
- })(/* @__PURE__ */ Object.create(null)), F = (t) => (t = t.toLowerCase(), (e) => ye(e) === t), me = (t) => (e) => typeof e === t, { isArray: Q } = Array, J = me("undefined");
53
+ })(/* @__PURE__ */ Object.create(null)), F = (t) => (t = t.toLowerCase(), (e) => ge(e) === t), we = (t) => (e) => typeof e === t, { isArray: Q } = Array, J = we("undefined");
54
54
  function ee(t) {
55
55
  return t !== null && !J(t) && t.constructor !== null && !J(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
56
56
  }
57
- const Rt = F("ArrayBuffer");
57
+ const Et = F("ArrayBuffer");
58
58
  function Xt(t) {
59
59
  let e;
60
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Rt(t.buffer), e;
60
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Et(t.buffer), e;
61
61
  }
62
- const Yt = me("string"), P = me("function"), Ct = me("number"), te = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, le = (t) => {
63
- if (ye(t) !== "object")
62
+ const Yt = we("string"), P = we("function"), Rt = we("number"), te = (t) => t !== null && typeof t == "object", Gt = (t) => t === !0 || t === !1, fe = (t) => {
63
+ if (ge(t) !== "object")
64
64
  return !1;
65
- const e = ke(t);
66
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Et in t) && !(pe in t);
65
+ const e = Be(t);
66
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ct in t) && !(me in t);
67
67
  }, Zt = (t) => {
68
68
  if (!te(t) || ee(t))
69
69
  return !1;
@@ -76,9 +76,9 @@ const Yt = me("string"), P = me("function"), Ct = me("number"), te = (t) => t !=
76
76
  function ar() {
77
77
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
78
78
  }
79
- const Ye = ar(), Ge = typeof Ye.FormData < "u" ? Ye.FormData : void 0, cr = (t) => {
79
+ const Ge = ar(), Ze = typeof Ge.FormData < "u" ? Ge.FormData : void 0, cr = (t) => {
80
80
  let e;
81
- return t && (Ge && t instanceof Ge || P(t.append) && ((e = ye(t)) === "formdata" || // detect form-data instance
81
+ return t && (Ze && t instanceof Ze || P(t.append) && ((e = ge(t)) === "formdata" || // detect form-data instance
82
82
  e === "object" && P(t.toString) && t.toString() === "[object FormData]"));
83
83
  }, ur = F("URLSearchParams"), [lr, dr, fr, hr] = [
84
84
  "ReadableStream",
@@ -114,12 +114,12 @@ function St(t, e) {
114
114
  return null;
115
115
  }
116
116
  const M = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, At = (t) => !J(t) && t !== M;
117
- function xe() {
117
+ function De() {
118
118
  const { caseless: t, skipUndefined: e } = At(this) && this || {}, r = {}, n = (s, i) => {
119
119
  if (i === "__proto__" || i === "constructor" || i === "prototype")
120
120
  return;
121
121
  const o = t && St(r, i) || i;
122
- le(r[o]) && le(s) ? r[o] = xe(r[o], s) : le(s) ? r[o] = xe({}, s) : Q(s) ? r[o] = s.slice() : (!e || !J(s)) && (r[o] = s);
122
+ fe(r[o]) && fe(s) ? r[o] = De(r[o], s) : fe(s) ? r[o] = De({}, s) : Q(s) ? r[o] = s.slice() : (!e || !J(s)) && (r[o] = s);
123
123
  };
124
124
  for (let s = 0, i = arguments.length; s < i; s++)
125
125
  arguments[s] && re(arguments[s], n);
@@ -157,7 +157,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
157
157
  do {
158
158
  for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; )
159
159
  o = s[i], (!n || n(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
160
- t = r !== !1 && ke(t);
160
+ t = r !== !1 && Be(t);
161
161
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
162
162
  return e;
163
163
  }, br = (t, e, r) => {
@@ -168,19 +168,19 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
168
168
  if (!t) return null;
169
169
  if (Q(t)) return t;
170
170
  let e = t.length;
171
- if (!Ct(e)) return null;
171
+ if (!Rt(e)) return null;
172
172
  const r = new Array(e);
173
173
  for (; e-- > 0; )
174
174
  r[e] = t[e];
175
175
  return r;
176
- }, Er = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ke(Uint8Array)), Rr = (t, e) => {
177
- const n = (t && t[pe]).call(t);
176
+ }, Cr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Be(Uint8Array)), Er = (t, e) => {
177
+ const n = (t && t[me]).call(t);
178
178
  let s;
179
179
  for (; (s = n.next()) && !s.done; ) {
180
180
  const i = s.value;
181
181
  e.call(t, i[0], i[1]);
182
182
  }
183
- }, Cr = (t, e) => {
183
+ }, Rr = (t, e) => {
184
184
  let r;
185
185
  const n = [];
186
186
  for (; (r = t.exec(e)) !== null; )
@@ -188,7 +188,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
188
188
  return n;
189
189
  }, Sr = F("HTMLFormElement"), Ar = (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, n, s) {
190
190
  return n.toUpperCase() + s;
191
- }), Ze = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Tr = F("RegExp"), Tt = (t, e) => {
191
+ }), et = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Tr = F("RegExp"), Tt = (t, e) => {
192
192
  const r = Object.getOwnPropertyDescriptors(t), n = {};
193
193
  re(r, (s, i) => {
194
194
  let o;
@@ -219,7 +219,7 @@ const yr = (t, e, r, { allOwnKeys: n } = {}) => (re(
219
219
  }, Nr = () => {
220
220
  }, xr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
221
221
  function Ur(t) {
222
- return !!(t && P(t.append) && t[Et] === "FormData" && t[pe]);
222
+ return !!(t && P(t.append) && t[Ct] === "FormData" && t[me]);
223
223
  }
224
224
  const Dr = (t) => {
225
225
  const e = new Array(10), r = (n, s) => {
@@ -248,17 +248,17 @@ const Dr = (t) => {
248
248
  !1
249
249
  ), (s) => {
250
250
  n.push(s), M.postMessage(r, "*");
251
- }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(M.postMessage)), kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Pt, vr = (t) => t != null && P(t[pe]), a = {
251
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", P(M.postMessage)), kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(M) : typeof process < "u" && process.nextTick || Pt, vr = (t) => t != null && P(t[me]), a = {
252
252
  isArray: Q,
253
- isArrayBuffer: Rt,
253
+ isArrayBuffer: Et,
254
254
  isBuffer: ee,
255
255
  isFormData: cr,
256
256
  isArrayBufferView: Xt,
257
257
  isString: Yt,
258
- isNumber: Ct,
258
+ isNumber: Rt,
259
259
  isBoolean: Gt,
260
260
  isObject: te,
261
- isPlainObject: le,
261
+ isPlainObject: fe,
262
262
  isEmptyObject: Zt,
263
263
  isReadableStream: lr,
264
264
  isRequest: dr,
@@ -274,24 +274,24 @@ const Dr = (t) => {
274
274
  isFunction: P,
275
275
  isStream: or,
276
276
  isURLSearchParams: ur,
277
- isTypedArray: Er,
277
+ isTypedArray: Cr,
278
278
  isFileList: ir,
279
279
  forEach: re,
280
- merge: xe,
280
+ merge: De,
281
281
  extend: yr,
282
282
  trim: pr,
283
283
  stripBOM: mr,
284
284
  inherits: gr,
285
285
  toFlatObject: wr,
286
- kindOf: ye,
286
+ kindOf: ge,
287
287
  kindOfTest: F,
288
288
  endsWith: br,
289
289
  toArray: _r,
290
- forEachEntry: Rr,
291
- matchAll: Cr,
290
+ forEachEntry: Er,
291
+ matchAll: Rr,
292
292
  isHTMLForm: Sr,
293
- hasOwnProperty: Ze,
294
- hasOwnProp: Ze,
293
+ hasOwnProperty: et,
294
+ hasOwnProp: et,
295
295
  // an alias to avoid ESLint no-prototype-builtins detection
296
296
  reduceDescriptors: Tt,
297
297
  freezeMethods: Pr,
@@ -367,24 +367,24 @@ m.ERR_CANCELED = "ERR_CANCELED";
367
367
  m.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
368
368
  m.ERR_INVALID_URL = "ERR_INVALID_URL";
369
369
  const Br = null;
370
- function Ue(t) {
370
+ function Le(t) {
371
371
  return a.isPlainObject(t) || a.isArray(t);
372
372
  }
373
373
  function Nt(t) {
374
374
  return a.endsWith(t, "[]") ? t.slice(0, -2) : t;
375
375
  }
376
- function Se(t, e, r) {
376
+ function Te(t, e, r) {
377
377
  return t ? t.concat(e).map(function(s, i) {
378
378
  return s = Nt(s), !r && i ? "[" + s + "]" : s;
379
379
  }).join(r ? "." : "") : e;
380
380
  }
381
- function qr(t) {
382
- return a.isArray(t) && !t.some(Ue);
381
+ function Ir(t) {
382
+ return a.isArray(t) && !t.some(Le);
383
383
  }
384
- const Ir = a.toFlatObject(a, {}, null, function(e) {
384
+ const qr = a.toFlatObject(a, {}, null, function(e) {
385
385
  return /^is[A-Z]/.test(e);
386
386
  });
387
- function ge(t, e, r) {
387
+ function be(t, e, r) {
388
388
  if (!a.isObject(t))
389
389
  throw new TypeError("target must be an object");
390
390
  e = e || new FormData(), r = a.toFlatObject(
@@ -413,42 +413,42 @@ function ge(t, e, r) {
413
413
  return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
414
414
  }
415
415
  function u(d, y, p) {
416
- let E = d;
416
+ let C = d;
417
417
  if (a.isReactNative(e) && a.isReactNativeBlob(d))
418
- return e.append(Se(p, y, i), l(d)), !1;
418
+ return e.append(Te(p, y, i), l(d)), !1;
419
419
  if (d && !p && typeof d == "object") {
420
420
  if (a.endsWith(y, "{}"))
421
421
  y = n ? y : y.slice(0, -2), d = JSON.stringify(d);
422
- else if (a.isArray(d) && qr(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (E = a.toArray(d)))
423
- return y = Nt(y), E.forEach(function(C, A) {
424
- !(a.isUndefined(C) || C === null) && e.append(
422
+ else if (a.isArray(d) && Ir(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (C = a.toArray(d)))
423
+ return y = Nt(y), C.forEach(function(R, A) {
424
+ !(a.isUndefined(R) || R === null) && e.append(
425
425
  // eslint-disable-next-line no-nested-ternary
426
- o === !0 ? Se([y], A, i) : o === null ? y : y + "[]",
427
- l(C)
426
+ o === !0 ? Te([y], A, i) : o === null ? y : y + "[]",
427
+ l(R)
428
428
  );
429
429
  }), !1;
430
430
  }
431
- return Ue(d) ? !0 : (e.append(Se(p, y, i), l(d)), !1);
431
+ return Le(d) ? !0 : (e.append(Te(p, y, i), l(d)), !1);
432
432
  }
433
- const h = [], g = Object.assign(Ir, {
433
+ const h = [], g = Object.assign(qr, {
434
434
  defaultVisitor: u,
435
435
  convertValue: l,
436
- isVisitable: Ue
436
+ isVisitable: Le
437
437
  });
438
- function R(d, y) {
438
+ function E(d, y) {
439
439
  if (!a.isUndefined(d)) {
440
440
  if (h.indexOf(d) !== -1)
441
441
  throw Error("Circular reference detected in " + y.join("."));
442
- h.push(d), a.forEach(d, function(E, N) {
443
- (!(a.isUndefined(E) || E === null) && s.call(e, E, a.isString(N) ? N.trim() : N, y, g)) === !0 && R(E, y ? y.concat(N) : [N]);
442
+ h.push(d), a.forEach(d, function(C, N) {
443
+ (!(a.isUndefined(C) || C === null) && s.call(e, C, a.isString(N) ? N.trim() : N, y, g)) === !0 && E(C, y ? y.concat(N) : [N]);
444
444
  }), h.pop();
445
445
  }
446
446
  }
447
447
  if (!a.isObject(t))
448
448
  throw new TypeError("data must be an object");
449
- return R(t), e;
449
+ return E(t), e;
450
450
  }
451
- function et(t) {
451
+ function tt(t) {
452
452
  const e = {
453
453
  "!": "%21",
454
454
  "'": "%27",
@@ -462,17 +462,17 @@ function et(t) {
462
462
  return e[n];
463
463
  });
464
464
  }
465
- function ve(t, e) {
466
- this._pairs = [], t && ge(t, this, e);
465
+ function Ie(t, e) {
466
+ this._pairs = [], t && be(t, this, e);
467
467
  }
468
- const xt = ve.prototype;
468
+ const xt = Ie.prototype;
469
469
  xt.append = function(e, r) {
470
470
  this._pairs.push([e, r]);
471
471
  };
472
472
  xt.toString = function(e) {
473
473
  const r = e ? function(n) {
474
- return e.call(this, n, et);
475
- } : et;
474
+ return e.call(this, n, tt);
475
+ } : tt;
476
476
  return this._pairs.map(function(s) {
477
477
  return r(s[0]) + "=" + r(s[1]);
478
478
  }, "").join("&");
@@ -487,13 +487,13 @@ function Ut(t, e, r) {
487
487
  serialize: r
488
488
  } : r, i = s && s.serialize;
489
489
  let o;
490
- if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new ve(e, s).toString(n), o) {
490
+ if (i ? o = i(e, s) : o = a.isURLSearchParams(e) ? e.toString() : new Ie(e, s).toString(n), o) {
491
491
  const c = t.indexOf("#");
492
492
  c !== -1 && (t = t.slice(0, c)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
493
493
  }
494
494
  return t;
495
495
  }
496
- class tt {
496
+ class rt {
497
497
  constructor() {
498
498
  this.handlers = [];
499
499
  }
@@ -548,12 +548,12 @@ class tt {
548
548
  });
549
549
  }
550
550
  }
551
- const Be = {
551
+ const qe = {
552
552
  silentJSONParsing: !0,
553
553
  forcedJSONParsing: !0,
554
554
  clarifyTimeoutError: !1,
555
555
  legacyInterceptorReqResOrdering: !0
556
- }, $r = typeof URLSearchParams < "u" ? URLSearchParams : ve, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
556
+ }, $r = typeof URLSearchParams < "u" ? URLSearchParams : Ie, Mr = typeof FormData < "u" ? FormData : null, Hr = typeof Blob < "u" ? Blob : null, Vr = {
557
557
  isBrowser: !0,
558
558
  classes: {
559
559
  URLSearchParams: $r,
@@ -561,20 +561,20 @@ const Be = {
561
561
  Blob: Hr
562
562
  },
563
563
  protocols: ["http", "https", "file", "blob", "url", "data"]
564
- }, qe = typeof window < "u" && typeof document < "u", De = typeof navigator == "object" && navigator || void 0, Kr = qe && (!De || ["ReactNative", "NativeScript", "NS"].indexOf(De.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
565
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = qe && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
564
+ }, je = typeof window < "u" && typeof document < "u", Fe = typeof navigator == "object" && navigator || void 0, Kr = je && (!Fe || ["ReactNative", "NativeScript", "NS"].indexOf(Fe.product) < 0), zr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
565
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jr = je && window.location.href || "http://localhost", Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
566
566
  __proto__: null,
567
- hasBrowserEnv: qe,
567
+ hasBrowserEnv: je,
568
568
  hasStandardBrowserEnv: Kr,
569
569
  hasStandardBrowserWebWorkerEnv: zr,
570
- navigator: De,
570
+ navigator: Fe,
571
571
  origin: Jr
572
572
  }, Symbol.toStringTag, { value: "Module" })), S = {
573
573
  ...Wr,
574
574
  ...Vr
575
575
  };
576
576
  function Qr(t, e) {
577
- return ge(t, new S.classes.URLSearchParams(), {
577
+ return be(t, new S.classes.URLSearchParams(), {
578
578
  visitor: function(r, n, s, i) {
579
579
  return S.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
580
580
  },
@@ -619,7 +619,7 @@ function Gr(t, e, r) {
619
619
  return (r || JSON.stringify)(t);
620
620
  }
621
621
  const ne = {
622
- transitional: Be,
622
+ transitional: qe,
623
623
  adapter: ["xhr", "http", "fetch"],
624
624
  transformRequest: [
625
625
  function(e, r) {
@@ -638,7 +638,7 @@ const ne = {
638
638
  return Qr(e, this.formSerializer).toString();
639
639
  if ((c = a.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
640
640
  const f = this.env && this.env.FormData;
641
- return ge(
641
+ return be(
642
642
  c ? { "files[]": e } : e,
643
643
  f && new f(),
644
644
  this.formSerializer
@@ -716,12 +716,12 @@ const Zr = a.toObjectSet([
716
716
  `).forEach(function(o) {
717
717
  s = o.indexOf(":"), r = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!r || e[r] && Zr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
718
718
  }), e;
719
- }, rt = Symbol("internals");
719
+ }, nt = Symbol("internals");
720
720
  function G(t) {
721
721
  return t && String(t).trim().toLowerCase();
722
722
  }
723
- function de(t) {
724
- return t === !1 || t == null ? t : a.isArray(t) ? t.map(de) : String(t);
723
+ function he(t) {
724
+ return t === !1 || t == null ? t : a.isArray(t) ? t.map(he) : String(t);
725
725
  }
726
726
  function tn(t) {
727
727
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -731,7 +731,7 @@ function tn(t) {
731
731
  return e;
732
732
  }
733
733
  const rn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
734
- function Ae(t, e, r, n, s) {
734
+ function Pe(t, e, r, n, s) {
735
735
  if (a.isFunction(n))
736
736
  return n.call(this, e, r);
737
737
  if (s && (e = r), !!a.isString(e)) {
@@ -766,7 +766,7 @@ let O = class {
766
766
  if (!u)
767
767
  throw new Error("header name must be a non-empty string");
768
768
  const h = a.findKey(s, u);
769
- (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = de(c));
769
+ (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = he(c));
770
770
  }
771
771
  const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
772
772
  if (a.isPlainObject(e) || e instanceof this.constructor)
@@ -805,7 +805,7 @@ let O = class {
805
805
  has(e, r) {
806
806
  if (e = G(e), e) {
807
807
  const n = a.findKey(this, e);
808
- return !!(n && this[n] !== void 0 && (!r || Ae(this, this[n], n, r)));
808
+ return !!(n && this[n] !== void 0 && (!r || Pe(this, this[n], n, r)));
809
809
  }
810
810
  return !1;
811
811
  }
@@ -815,7 +815,7 @@ let O = class {
815
815
  function i(o) {
816
816
  if (o = G(o), o) {
817
817
  const c = a.findKey(n, o);
818
- c && (!r || Ae(n, n[c], c, r)) && (delete n[c], s = !0);
818
+ c && (!r || Pe(n, n[c], c, r)) && (delete n[c], s = !0);
819
819
  }
820
820
  }
821
821
  return a.isArray(e) ? e.forEach(i) : i(e), s;
@@ -825,7 +825,7 @@ let O = class {
825
825
  let n = r.length, s = !1;
826
826
  for (; n--; ) {
827
827
  const i = r[n];
828
- (!e || Ae(this, this[i], i, e, !0)) && (delete this[i], s = !0);
828
+ (!e || Pe(this, this[i], i, e, !0)) && (delete this[i], s = !0);
829
829
  }
830
830
  return s;
831
831
  }
@@ -834,11 +834,11 @@ let O = class {
834
834
  return a.forEach(this, (s, i) => {
835
835
  const o = a.findKey(n, i);
836
836
  if (o) {
837
- r[o] = de(s), delete r[i];
837
+ r[o] = he(s), delete r[i];
838
838
  return;
839
839
  }
840
840
  const c = e ? nn(i) : String(i).trim();
841
- c !== i && delete r[i], r[c] = de(s), n[c] = !0;
841
+ c !== i && delete r[i], r[c] = he(s), n[c] = !0;
842
842
  }), this;
843
843
  }
844
844
  concat(...e) {
@@ -871,7 +871,7 @@ let O = class {
871
871
  return r.forEach((s) => n.set(s)), n;
872
872
  }
873
873
  static accessor(e) {
874
- const n = (this[rt] = this[rt] = {
874
+ const n = (this[nt] = this[nt] = {
875
875
  accessors: {}
876
876
  }).accessors, s = this.prototype;
877
877
  function i(o) {
@@ -899,7 +899,7 @@ a.reduceDescriptors(O.prototype, ({ value: t }, e) => {
899
899
  };
900
900
  });
901
901
  a.freezeMethods(O);
902
- function Te(t, e) {
902
+ function Oe(t, e) {
903
903
  const r = this || ne, n = e || r, s = O.from(n.headers);
904
904
  let i = n.data;
905
905
  return a.forEach(t, function(c) {
@@ -951,8 +951,8 @@ function an(t, e) {
951
951
  g += r[h++], h = h % t;
952
952
  if (s = (s + 1) % t, s === i && (i = (i + 1) % t), l - o < e)
953
953
  return;
954
- const R = u && l - u;
955
- return R ? Math.round(g * 1e3 / R) : void 0;
954
+ const E = u && l - u;
955
+ return E ? Math.round(g * 1e3 / E) : void 0;
956
956
  };
957
957
  }
958
958
  function cn(t, e) {
@@ -967,7 +967,7 @@ function cn(t, e) {
967
967
  }, n - h)));
968
968
  }, () => s && o(s)];
969
969
  }
970
- const he = (t, e, r = 3) => {
970
+ const ye = (t, e, r = 3) => {
971
971
  let n = 0;
972
972
  const s = an(50, 250);
973
973
  return cn((i) => {
@@ -986,7 +986,7 @@ const he = (t, e, r = 3) => {
986
986
  };
987
987
  t(h);
988
988
  }, r);
989
- }, nt = (t, e) => {
989
+ }, st = (t, e) => {
990
990
  const r = t != null;
991
991
  return [
992
992
  (n) => e[0]({
@@ -996,7 +996,7 @@ const he = (t, e, r = 3) => {
996
996
  }),
997
997
  e[1]
998
998
  ];
999
- }, st = (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)))(
999
+ }, it = (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)))(
1000
1000
  new URL(S.origin),
1001
1001
  S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
1002
1002
  ) : () => !0, ln = S.hasStandardBrowserEnv ? (
@@ -1038,7 +1038,7 @@ function kt(t, e, r) {
1038
1038
  let n = !dn(e);
1039
1039
  return t && (n || r == !1) ? fn(t, e) : e;
1040
1040
  }
1041
- const it = (t) => t instanceof O ? { ...t } : t;
1041
+ const ot = (t) => t instanceof O ? { ...t } : t;
1042
1042
  function V(t, e) {
1043
1043
  e = e || {};
1044
1044
  const r = {};
@@ -1096,7 +1096,7 @@ function V(t, e) {
1096
1096
  socketPath: o,
1097
1097
  responseEncoding: o,
1098
1098
  validateStatus: c,
1099
- headers: (l, u, h) => s(it(l), it(u), h, !0)
1099
+ headers: (l, u, h) => s(ot(l), ot(u), h, !0)
1100
1100
  };
1101
1101
  return a.forEach(Object.keys({ ...t, ...e }), function(u) {
1102
1102
  if (u === "__proto__" || u === "constructor" || u === "prototype") return;
@@ -1136,22 +1136,22 @@ const vt = (t) => {
1136
1136
  const s = vt(t);
1137
1137
  let i = s.data;
1138
1138
  const o = O.from(s.headers).normalize();
1139
- let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, g, R, d;
1139
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, g, E, d;
1140
1140
  function y() {
1141
- R && R(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1141
+ E && E(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1142
1142
  }
1143
1143
  let p = new XMLHttpRequest();
1144
1144
  p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1145
- function E() {
1145
+ function C() {
1146
1146
  if (!p)
1147
1147
  return;
1148
- const C = O.from(
1148
+ const R = O.from(
1149
1149
  "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1150
1150
  ), D = {
1151
1151
  data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1152
1152
  status: p.status,
1153
1153
  statusText: p.statusText,
1154
- headers: C,
1154
+ headers: R,
1155
1155
  config: t,
1156
1156
  request: p
1157
1157
  };
@@ -1165,8 +1165,8 @@ const vt = (t) => {
1165
1165
  D
1166
1166
  ), p = null;
1167
1167
  }
1168
- "onloadend" in p ? p.onloadend = E : p.onreadystatechange = function() {
1169
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(E);
1168
+ "onloadend" in p ? p.onloadend = C : p.onreadystatechange = function() {
1169
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(C);
1170
1170
  }, p.onabort = function() {
1171
1171
  p && (n(new m("Request aborted", m.ECONNABORTED, t, p)), p = null);
1172
1172
  }, p.onerror = function(A) {
@@ -1174,7 +1174,7 @@ const vt = (t) => {
1174
1174
  j.event = A || null, n(j), p = null;
1175
1175
  }, p.ontimeout = function() {
1176
1176
  let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1177
- const D = s.transitional || Be;
1177
+ const D = s.transitional || qe;
1178
1178
  s.timeoutErrorMessage && (A = s.timeoutErrorMessage), n(
1179
1179
  new m(
1180
1180
  A,
@@ -1185,8 +1185,8 @@ const vt = (t) => {
1185
1185
  ), p = null;
1186
1186
  }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(A, D) {
1187
1187
  p.setRequestHeader(D, A);
1188
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, d] = he(l, !0), p.addEventListener("progress", g)), f && p.upload && ([h, R] = he(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (C) => {
1189
- p && (n(!C || C.type ? new se(null, t, p) : C), p.abort(), p = null);
1188
+ }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, d] = ye(l, !0), p.addEventListener("progress", g)), f && p.upload && ([h, E] = ye(f), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (R) => {
1189
+ p && (n(!R || R.type ? new se(null, t, p) : R), p.abort(), p = null);
1190
1190
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1191
1191
  const N = on(s.url);
1192
1192
  if (N && S.protocols.indexOf(N) === -1) {
@@ -1254,7 +1254,7 @@ const vt = (t) => {
1254
1254
  } finally {
1255
1255
  await e.cancel();
1256
1256
  }
1257
- }, ot = (t, e, r, n) => {
1257
+ }, at = (t, e, r, n) => {
1258
1258
  const s = gn(t, e);
1259
1259
  let i = 0, o, c = (f) => {
1260
1260
  o || (o = !0, n && n(f));
@@ -1286,10 +1286,10 @@ const vt = (t) => {
1286
1286
  highWaterMark: 2
1287
1287
  }
1288
1288
  );
1289
- }, at = 64 * 1024, { isFunction: ce } = a, bn = (({ Request: t, Response: e }) => ({
1289
+ }, ct = 64 * 1024, { isFunction: ue } = a, bn = (({ Request: t, Response: e }) => ({
1290
1290
  Request: t,
1291
1291
  Response: e
1292
- }))(a.global), { ReadableStream: ct, TextEncoder: ut } = a.global, lt = (t, ...e) => {
1292
+ }))(a.global), { ReadableStream: ut, TextEncoder: lt } = a.global, dt = (t, ...e) => {
1293
1293
  try {
1294
1294
  return !!t(...e);
1295
1295
  } catch {
@@ -1303,27 +1303,27 @@ const vt = (t) => {
1303
1303
  bn,
1304
1304
  t
1305
1305
  );
1306
- const { fetch: e, Request: r, Response: n } = t, s = e ? ce(e) : typeof fetch == "function", i = ce(r), o = ce(n);
1306
+ const { fetch: e, Request: r, Response: n } = t, s = e ? ue(e) : typeof fetch == "function", i = ue(r), o = ue(n);
1307
1307
  if (!s)
1308
1308
  return !1;
1309
- const c = s && ce(ct), f = s && (typeof ut == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new ut()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && c && lt(() => {
1309
+ const c = s && ue(ut), f = s && (typeof lt == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new lt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && c && dt(() => {
1310
1310
  let d = !1;
1311
1311
  const y = new r(S.origin, {
1312
- body: new ct(),
1312
+ body: new ut(),
1313
1313
  method: "POST",
1314
1314
  get duplex() {
1315
1315
  return d = !0, "half";
1316
1316
  }
1317
1317
  }).headers.has("Content-Type");
1318
1318
  return d && !y;
1319
- }), u = o && c && lt(() => a.isReadableStream(new n("").body)), h = {
1319
+ }), u = o && c && dt(() => a.isReadableStream(new n("").body)), h = {
1320
1320
  stream: u && ((d) => d.body)
1321
1321
  };
1322
1322
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1323
1323
  !h[d] && (h[d] = (y, p) => {
1324
- let E = y && y[d];
1325
- if (E)
1326
- return E.call(y);
1324
+ let C = y && y[d];
1325
+ if (C)
1326
+ return C.call(y);
1327
1327
  throw new m(
1328
1328
  `Response type '${d}' is not supported`,
1329
1329
  m.ERR_NOT_SUPPORT,
@@ -1345,7 +1345,7 @@ const vt = (t) => {
1345
1345
  return d.byteLength;
1346
1346
  if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
1347
1347
  return (await f(d)).byteLength;
1348
- }, R = async (d, y) => {
1348
+ }, E = async (d, y) => {
1349
1349
  const p = a.toFiniteNumber(d.getContentLength());
1350
1350
  return p ?? g(y);
1351
1351
  };
@@ -1353,66 +1353,66 @@ const vt = (t) => {
1353
1353
  let {
1354
1354
  url: y,
1355
1355
  method: p,
1356
- data: E,
1356
+ data: C,
1357
1357
  signal: N,
1358
- cancelToken: C,
1358
+ cancelToken: R,
1359
1359
  timeout: A,
1360
1360
  onDownloadProgress: D,
1361
1361
  onUploadProgress: j,
1362
1362
  responseType: x,
1363
- headers: Ee,
1364
- withCredentials: ie = "same-origin",
1365
- fetchOptions: Ke
1366
- } = vt(d), ze = e || fetch;
1363
+ headers: Re,
1364
+ withCredentials: oe = "same-origin",
1365
+ fetchOptions: ze
1366
+ } = vt(d), Je = e || fetch;
1367
1367
  x = x ? (x + "").toLowerCase() : "text";
1368
- let oe = yn(
1369
- [N, C && C.toAbortSignal()],
1368
+ let ae = yn(
1369
+ [N, R && R.toAbortSignal()],
1370
1370
  A
1371
1371
  ), Y = null;
1372
- const $ = oe && oe.unsubscribe && (() => {
1373
- oe.unsubscribe();
1372
+ const $ = ae && ae.unsubscribe && (() => {
1373
+ ae.unsubscribe();
1374
1374
  });
1375
- let Je;
1375
+ let We;
1376
1376
  try {
1377
- if (j && l && p !== "get" && p !== "head" && (Je = await R(Ee, E)) !== 0) {
1377
+ if (j && l && p !== "get" && p !== "head" && (We = await E(Re, C)) !== 0) {
1378
1378
  let B = new r(y, {
1379
1379
  method: "POST",
1380
- body: E,
1380
+ body: C,
1381
1381
  duplex: "half"
1382
1382
  }), z;
1383
- if (a.isFormData(E) && (z = B.headers.get("content-type")) && Ee.setContentType(z), B.body) {
1384
- const [Re, ae] = nt(
1385
- Je,
1386
- he(st(j))
1383
+ if (a.isFormData(C) && (z = B.headers.get("content-type")) && Re.setContentType(z), B.body) {
1384
+ const [Se, ce] = st(
1385
+ We,
1386
+ ye(it(j))
1387
1387
  );
1388
- E = ot(B.body, at, Re, ae);
1388
+ C = at(B.body, ct, Se, ce);
1389
1389
  }
1390
1390
  }
1391
- a.isString(ie) || (ie = ie ? "include" : "omit");
1392
- const T = i && "credentials" in r.prototype, We = {
1393
- ...Ke,
1394
- signal: oe,
1391
+ a.isString(oe) || (oe = oe ? "include" : "omit");
1392
+ const T = i && "credentials" in r.prototype, Qe = {
1393
+ ...ze,
1394
+ signal: ae,
1395
1395
  method: p.toUpperCase(),
1396
- headers: Ee.normalize().toJSON(),
1397
- body: E,
1396
+ headers: Re.normalize().toJSON(),
1397
+ body: C,
1398
1398
  duplex: "half",
1399
- credentials: T ? ie : void 0
1399
+ credentials: T ? oe : void 0
1400
1400
  };
1401
- Y = i && new r(y, We);
1402
- let v = await (i ? ze(Y, Ke) : ze(y, We));
1403
- const Qe = u && (x === "stream" || x === "response");
1404
- if (u && (D || Qe && $)) {
1401
+ Y = i && new r(y, Qe);
1402
+ let v = await (i ? Je(Y, ze) : Je(y, Qe));
1403
+ const Xe = u && (x === "stream" || x === "response");
1404
+ if (u && (D || Xe && $)) {
1405
1405
  const B = {};
1406
- ["status", "statusText", "headers"].forEach((Xe) => {
1407
- B[Xe] = v[Xe];
1406
+ ["status", "statusText", "headers"].forEach((Ye) => {
1407
+ B[Ye] = v[Ye];
1408
1408
  });
1409
- const z = a.toFiniteNumber(v.headers.get("content-length")), [Re, ae] = D && nt(
1409
+ const z = a.toFiniteNumber(v.headers.get("content-length")), [Se, ce] = D && st(
1410
1410
  z,
1411
- he(st(D), !0)
1411
+ ye(it(D), !0)
1412
1412
  ) || [];
1413
1413
  v = new n(
1414
- ot(v.body, at, Re, () => {
1415
- ae && ae(), $ && $();
1414
+ at(v.body, ct, Se, () => {
1415
+ ce && ce(), $ && $();
1416
1416
  }),
1417
1417
  B
1418
1418
  );
@@ -1422,7 +1422,7 @@ const vt = (t) => {
1422
1422
  v,
1423
1423
  d
1424
1424
  );
1425
- return !Qe && $ && $(), await new Promise((B, z) => {
1425
+ return !Xe && $ && $(), await new Promise((B, z) => {
1426
1426
  Ft(B, z, {
1427
1427
  data: Kt,
1428
1428
  headers: O.from(v.headers),
@@ -1447,23 +1447,23 @@ const vt = (t) => {
1447
1447
  ) : m.from(T, T && T.code, d, Y, T && T.response);
1448
1448
  }
1449
1449
  };
1450
- }, En = /* @__PURE__ */ new Map(), Bt = (t) => {
1450
+ }, Cn = /* @__PURE__ */ new Map(), Bt = (t) => {
1451
1451
  let e = t && t.env || {};
1452
1452
  const { fetch: r, Request: n, Response: s } = e, i = [n, s, r];
1453
- let o = i.length, c = o, f, l, u = En;
1453
+ let o = i.length, c = o, f, l, u = Cn;
1454
1454
  for (; c--; )
1455
1455
  f = i[c], l = u.get(f), l === void 0 && u.set(f, l = c ? /* @__PURE__ */ new Map() : _n(e)), u = l;
1456
1456
  return l;
1457
1457
  };
1458
1458
  Bt();
1459
- const Ie = {
1459
+ const $e = {
1460
1460
  http: Br,
1461
1461
  xhr: pn,
1462
1462
  fetch: {
1463
1463
  get: Bt
1464
1464
  }
1465
1465
  };
1466
- a.forEach(Ie, (t, e) => {
1466
+ a.forEach($e, (t, e) => {
1467
1467
  if (t) {
1468
1468
  try {
1469
1469
  Object.defineProperty(t, "name", { value: e });
@@ -1472,8 +1472,8 @@ a.forEach(Ie, (t, e) => {
1472
1472
  Object.defineProperty(t, "adapterName", { value: e });
1473
1473
  }
1474
1474
  });
1475
- const dt = (t) => `- ${t}`, Rn = (t) => a.isFunction(t) || t === null || t === !1;
1476
- function Cn(t, e) {
1475
+ const ft = (t) => `- ${t}`, En = (t) => a.isFunction(t) || t === null || t === !1;
1476
+ function Rn(t, e) {
1477
1477
  t = a.isArray(t) ? t : [t];
1478
1478
  const { length: r } = t;
1479
1479
  let n, s;
@@ -1481,7 +1481,7 @@ function Cn(t, e) {
1481
1481
  for (let o = 0; o < r; o++) {
1482
1482
  n = t[o];
1483
1483
  let c;
1484
- if (s = n, !Rn(n) && (s = Ie[(c = String(n)).toLowerCase()], s === void 0))
1484
+ if (s = n, !En(n) && (s = $e[(c = String(n)).toLowerCase()], s === void 0))
1485
1485
  throw new m(`Unknown adapter '${c}'`);
1486
1486
  if (s && (a.isFunction(s) || (s = s.get(e))))
1487
1487
  break;
@@ -1492,8 +1492,8 @@ function Cn(t, e) {
1492
1492
  ([f, l]) => `adapter ${f} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
1493
1493
  );
1494
1494
  let c = r ? o.length > 1 ? `since :
1495
- ` + o.map(dt).join(`
1496
- `) : " " + dt(o[0]) : "as no adapter specified";
1495
+ ` + o.map(ft).join(`
1496
+ `) : " " + ft(o[0]) : "as no adapter specified";
1497
1497
  throw new m(
1498
1498
  "There is no suitable adapter to dispatch the request " + c,
1499
1499
  "ERR_NOT_SUPPORT"
@@ -1501,29 +1501,29 @@ function Cn(t, e) {
1501
1501
  }
1502
1502
  return s;
1503
1503
  }
1504
- const qt = {
1504
+ const It = {
1505
1505
  /**
1506
1506
  * Resolve an adapter from a list of adapter names or functions.
1507
1507
  * @type {Function}
1508
1508
  */
1509
- getAdapter: Cn,
1509
+ getAdapter: Rn,
1510
1510
  /**
1511
1511
  * Exposes all known adapters
1512
1512
  * @type {Object<string, Function|Object>}
1513
1513
  */
1514
- adapters: Ie
1514
+ adapters: $e
1515
1515
  };
1516
- function Pe(t) {
1516
+ function Ne(t) {
1517
1517
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1518
1518
  throw new se(null, t);
1519
1519
  }
1520
- function ft(t) {
1521
- return Pe(t), t.headers = O.from(t.headers), t.data = Te.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), qt.getAdapter(t.adapter || ne.adapter, t)(t).then(
1520
+ function ht(t) {
1521
+ return Ne(t), t.headers = O.from(t.headers), t.data = Oe.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), It.getAdapter(t.adapter || ne.adapter, t)(t).then(
1522
1522
  function(n) {
1523
- return Pe(t), n.data = Te.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
1523
+ return Ne(t), n.data = Oe.call(t, t.transformResponse, n), n.headers = O.from(n.headers), n;
1524
1524
  },
1525
1525
  function(n) {
1526
- return Lt(n) || (Pe(t), n && n.response && (n.response.data = Te.call(
1526
+ return Lt(n) || (Ne(t), n && n.response && (n.response.data = Oe.call(
1527
1527
  t,
1528
1528
  t.transformResponse,
1529
1529
  n.response
@@ -1531,16 +1531,16 @@ function ft(t) {
1531
1531
  }
1532
1532
  );
1533
1533
  }
1534
- const It = "1.13.6", we = {};
1534
+ const qt = "1.13.6", _e = {};
1535
1535
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1536
- we[t] = function(n) {
1536
+ _e[t] = function(n) {
1537
1537
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1538
1538
  };
1539
1539
  });
1540
- const ht = {};
1541
- we.transitional = function(e, r, n) {
1540
+ const pt = {};
1541
+ _e.transitional = function(e, r, n) {
1542
1542
  function s(i, o) {
1543
- return "[Axios v" + It + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1543
+ return "[Axios v" + qt + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1544
1544
  }
1545
1545
  return (i, o, c) => {
1546
1546
  if (e === !1)
@@ -1548,7 +1548,7 @@ we.transitional = function(e, r, n) {
1548
1548
  s(o, " has been removed" + (r ? " in " + r : "")),
1549
1549
  m.ERR_DEPRECATED
1550
1550
  );
1551
- return r && !ht[o] && (ht[o] = !0, console.warn(
1551
+ return r && !pt[o] && (pt[o] = !0, console.warn(
1552
1552
  s(
1553
1553
  o,
1554
1554
  " has been deprecated since v" + r + " and will be removed in the near future"
@@ -1556,7 +1556,7 @@ we.transitional = function(e, r, n) {
1556
1556
  )), e ? e(i, o, c) : !0;
1557
1557
  };
1558
1558
  };
1559
- we.spelling = function(e) {
1559
+ _e.spelling = function(e) {
1560
1560
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1561
1561
  };
1562
1562
  function Sn(t, e, r) {
@@ -1579,15 +1579,15 @@ function Sn(t, e, r) {
1579
1579
  throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
1580
1580
  }
1581
1581
  }
1582
- const fe = {
1582
+ const pe = {
1583
1583
  assertOptions: Sn,
1584
- validators: we
1585
- }, U = fe.validators;
1584
+ validators: _e
1585
+ }, U = pe.validators;
1586
1586
  let H = class {
1587
1587
  constructor(e) {
1588
1588
  this.defaults = e || {}, this.interceptors = {
1589
- request: new tt(),
1590
- response: new tt()
1589
+ request: new rt(),
1590
+ response: new rt()
1591
1591
  };
1592
1592
  }
1593
1593
  /**
@@ -1618,7 +1618,7 @@ let H = class {
1618
1618
  _request(e, r) {
1619
1619
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = V(this.defaults, r);
1620
1620
  const { transitional: n, paramsSerializer: s, headers: i } = r;
1621
- n !== void 0 && fe.assertOptions(
1621
+ n !== void 0 && pe.assertOptions(
1622
1622
  n,
1623
1623
  {
1624
1624
  silentJSONParsing: U.transitional(U.boolean),
@@ -1629,14 +1629,14 @@ let H = class {
1629
1629
  !1
1630
1630
  ), s != null && (a.isFunction(s) ? r.paramsSerializer = {
1631
1631
  serialize: s
1632
- } : fe.assertOptions(
1632
+ } : pe.assertOptions(
1633
1633
  s,
1634
1634
  {
1635
1635
  encode: U.function,
1636
1636
  serialize: U.function
1637
1637
  },
1638
1638
  !0
1639
- )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), fe.assertOptions(
1639
+ )), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), pe.assertOptions(
1640
1640
  r,
1641
1641
  {
1642
1642
  baseUrl: U.spelling("baseURL"),
@@ -1654,7 +1654,7 @@ let H = class {
1654
1654
  if (typeof y.runWhen == "function" && y.runWhen(r) === !1)
1655
1655
  return;
1656
1656
  f = f && y.synchronous;
1657
- const p = r.transitional || Be;
1657
+ const p = r.transitional || qe;
1658
1658
  p && p.legacyInterceptorReqResOrdering ? c.unshift(y.fulfilled, y.rejected) : c.push(y.fulfilled, y.rejected);
1659
1659
  });
1660
1660
  const l = [];
@@ -1663,24 +1663,24 @@ let H = class {
1663
1663
  });
1664
1664
  let u, h = 0, g;
1665
1665
  if (!f) {
1666
- const d = [ft.bind(this), void 0];
1666
+ const d = [ht.bind(this), void 0];
1667
1667
  for (d.unshift(...c), d.push(...l), g = d.length, u = Promise.resolve(r); h < g; )
1668
1668
  u = u.then(d[h++], d[h++]);
1669
1669
  return u;
1670
1670
  }
1671
1671
  g = c.length;
1672
- let R = r;
1672
+ let E = r;
1673
1673
  for (; h < g; ) {
1674
1674
  const d = c[h++], y = c[h++];
1675
1675
  try {
1676
- R = d(R);
1676
+ E = d(E);
1677
1677
  } catch (p) {
1678
1678
  y.call(this, p);
1679
1679
  break;
1680
1680
  }
1681
1681
  }
1682
1682
  try {
1683
- u = ft.call(this, R);
1683
+ u = ht.call(this, E);
1684
1684
  } catch (d) {
1685
1685
  return Promise.reject(d);
1686
1686
  }
@@ -1803,7 +1803,7 @@ function Tn(t) {
1803
1803
  function Pn(t) {
1804
1804
  return a.isObject(t) && t.isAxiosError === !0;
1805
1805
  }
1806
- const Le = {
1806
+ const ke = {
1807
1807
  Continue: 100,
1808
1808
  SwitchingProtocols: 101,
1809
1809
  Processing: 102,
@@ -1874,8 +1874,8 @@ const Le = {
1874
1874
  SslHandshakeFailed: 525,
1875
1875
  InvalidSslCertificate: 526
1876
1876
  };
1877
- Object.entries(Le).forEach(([t, e]) => {
1878
- Le[e] = t;
1877
+ Object.entries(ke).forEach(([t, e]) => {
1878
+ ke[e] = t;
1879
1879
  });
1880
1880
  function $t(t) {
1881
1881
  const e = new H(t), r = _t(H.prototype.request, e);
@@ -1888,8 +1888,8 @@ _.Axios = H;
1888
1888
  _.CanceledError = se;
1889
1889
  _.CancelToken = An;
1890
1890
  _.isCancel = Lt;
1891
- _.VERSION = It;
1892
- _.toFormData = ge;
1891
+ _.VERSION = qt;
1892
+ _.toFormData = be;
1893
1893
  _.AxiosError = m;
1894
1894
  _.Cancel = _.CanceledError;
1895
1895
  _.all = function(e) {
@@ -1900,49 +1900,49 @@ _.isAxiosError = Pn;
1900
1900
  _.mergeConfig = V;
1901
1901
  _.AxiosHeaders = O;
1902
1902
  _.formToJSON = (t) => Dt(a.isHTMLForm(t) ? new FormData(t) : t);
1903
- _.getAdapter = qt.getAdapter;
1904
- _.HttpStatusCode = Le;
1903
+ _.getAdapter = It.getAdapter;
1904
+ _.HttpStatusCode = ke;
1905
1905
  _.default = _;
1906
1906
  const {
1907
- Axios: Ks,
1908
- AxiosError: ue,
1909
- CanceledError: zs,
1910
- isCancel: Js,
1911
- CancelToken: Ws,
1912
- VERSION: Qs,
1913
- all: Xs,
1914
- Cancel: Ys,
1915
- isAxiosError: Gs,
1916
- spread: Zs,
1917
- toFormData: ei,
1918
- AxiosHeaders: ti,
1919
- HttpStatusCode: ri,
1920
- formToJSON: ni,
1921
- getAdapter: si,
1922
- mergeConfig: ii
1907
+ Axios: Ws,
1908
+ AxiosError: le,
1909
+ CanceledError: Qs,
1910
+ isCancel: Xs,
1911
+ CancelToken: Ys,
1912
+ VERSION: Gs,
1913
+ all: Zs,
1914
+ Cancel: ei,
1915
+ isAxiosError: ti,
1916
+ spread: ri,
1917
+ toFormData: ni,
1918
+ AxiosHeaders: si,
1919
+ HttpStatusCode: ii,
1920
+ formToJSON: oi,
1921
+ getAdapter: ai,
1922
+ mergeConfig: ci
1923
1923
  } = _;
1924
- class Oe extends Error {
1924
+ class xe extends Error {
1925
1925
  constructor(r) {
1926
1926
  super(r.join(", "));
1927
1927
  b(this, "errors");
1928
1928
  this.name = "ValidationError", this.errors = r;
1929
1929
  }
1930
1930
  }
1931
- class pt extends Error {
1931
+ class yt extends Error {
1932
1932
  constructor(r) {
1933
1933
  super("Address already registered.");
1934
1934
  b(this, "address");
1935
1935
  this.name = "AddressInUseError", this.address = r;
1936
1936
  }
1937
1937
  }
1938
- class yt extends Error {
1938
+ class mt extends Error {
1939
1939
  constructor(r) {
1940
1940
  super("Code already registered.");
1941
1941
  b(this, "code");
1942
1942
  this.name = "CodeInUseError", this.code = r;
1943
1943
  }
1944
1944
  }
1945
- class Ne extends Error {
1945
+ class Ue extends Error {
1946
1946
  constructor() {
1947
1947
  super("Invalid signature provided"), this.name = "InvalidSignatureError";
1948
1948
  }
@@ -1970,13 +1970,13 @@ class On {
1970
1970
  }
1971
1971
  })).data;
1972
1972
  } catch (l) {
1973
- if (l instanceof ue) {
1973
+ if (l instanceof le) {
1974
1974
  const u = (f = l.response) == null ? void 0 : f.data;
1975
1975
  if (typeof (u == null ? void 0 : u.message) == "string") {
1976
1976
  const h = u.message.toLowerCase();
1977
- throw h == "invalid signature" ? new Ne() : h == "address in use" ? new pt(e) : h == "code in use" ? new yt(n) : new Error(h);
1977
+ throw h == "invalid signature" ? new Ue() : h == "address in use" ? new yt(e) : h == "code in use" ? new mt(n) : new Error(h);
1978
1978
  } else if ((u == null ? void 0 : u.message) instanceof Array)
1979
- throw new Oe(u.message);
1979
+ throw new xe(u.message);
1980
1980
  }
1981
1981
  throw l;
1982
1982
  }
@@ -1996,13 +1996,13 @@ class On {
1996
1996
  }
1997
1997
  });
1998
1998
  } catch (f) {
1999
- if (f instanceof ue) {
1999
+ if (f instanceof le) {
2000
2000
  const l = (c = f.response) == null ? void 0 : c.data;
2001
2001
  if (typeof (l == null ? void 0 : l.message) == "string") {
2002
2002
  const u = l.message.toLowerCase();
2003
- throw u == "invalid signature" ? new Ne() : u == "address in use" ? new pt(e) : u == "code in use" ? new yt(n) : new Error(u);
2003
+ throw u == "invalid signature" ? new Ue() : u == "address in use" ? new yt(e) : u == "code in use" ? new mt(n) : new Error(u);
2004
2004
  } else if ((l == null ? void 0 : l.message) instanceof Array)
2005
- throw new Oe(l.message);
2005
+ throw new xe(l.message);
2006
2006
  }
2007
2007
  throw f;
2008
2008
  }
@@ -2023,13 +2023,13 @@ class On {
2023
2023
  }
2024
2024
  });
2025
2025
  } catch (u) {
2026
- if (u instanceof ue) {
2026
+ if (u instanceof le) {
2027
2027
  const h = (l = u.response) == null ? void 0 : l.data;
2028
2028
  if (typeof (h == null ? void 0 : h.message) == "string") {
2029
2029
  const g = h.message.toLowerCase();
2030
- throw g == "invalid signature" ? new Ne() : new Error(g);
2030
+ throw g == "invalid signature" ? new Ue() : new Error(g);
2031
2031
  } else if ((h == null ? void 0 : h.message) instanceof Array)
2032
- throw new Oe(h.message);
2032
+ throw new xe(h.message);
2033
2033
  }
2034
2034
  throw u;
2035
2035
  }
@@ -2053,7 +2053,7 @@ class On {
2053
2053
  try {
2054
2054
  return (await this.httpClient.get({ path: `/affiliates/${e}`, queryParams: { identifier_type: r } })).data;
2055
2055
  } catch (s) {
2056
- if (s instanceof ue && ((n = s.response) == null ? void 0 : n.status) === 404)
2056
+ if (s instanceof le && ((n = s.response) == null ? void 0 : n.status) === 404)
2057
2057
  return null;
2058
2058
  throw console.error("Fuul SDK: Could not get affiliate code", s), s;
2059
2059
  }
@@ -2073,13 +2073,45 @@ class xn {
2073
2073
  })).data;
2074
2074
  }
2075
2075
  }
2076
- const mt = "/claim-checks";
2076
+ const de = "/claim-checks";
2077
2077
  class Un {
2078
2078
  constructor(e) {
2079
2079
  b(this, "httpClient");
2080
2080
  b(this, "_debug");
2081
2081
  this.httpClient = e.httpClient, this._debug = e.debug;
2082
2082
  }
2083
+ /**
2084
+ * Retrieves claim checks for a user with optional status filtering
2085
+ *
2086
+ * @param {GetClaimChecksParams} params - User identifier and optional status filter
2087
+ * @returns {Promise<GetClaimChecksResponse>} List of claim checks
2088
+ */
2089
+ async getClaimChecks(e) {
2090
+ const r = {
2091
+ user_identifier: e.user_identifier,
2092
+ user_identifier_type: e.user_identifier_type
2093
+ };
2094
+ return e.status && (r.status = e.status), (await this.httpClient.get({
2095
+ path: de,
2096
+ queryParams: r
2097
+ })).data;
2098
+ }
2099
+ /**
2100
+ * Closes open claim checks, aggregating and signing them for on-chain claiming
2101
+ *
2102
+ * @param {CloseClaimChecksParams} params - User identifier and claim check IDs to close
2103
+ * @returns {Promise<CloseClaimChecksResponse>} Array of signed claim responses ready for on-chain execution
2104
+ */
2105
+ async closeClaimChecks(e) {
2106
+ return (await this.httpClient.post({
2107
+ path: `${de}/close`,
2108
+ postData: {
2109
+ userIdentifier: e.user_identifier,
2110
+ userIdentifierType: e.user_identifier_type,
2111
+ claim_check_ids: e.claim_check_ids
2112
+ }
2113
+ })).data;
2114
+ }
2083
2115
  /**
2084
2116
  * Retrieves all claimable claim checks for a user
2085
2117
  * Returns only unclaimed checks with valid (non-expired) deadlines
@@ -2089,7 +2121,7 @@ class Un {
2089
2121
  */
2090
2122
  async getClaimableChecks(e) {
2091
2123
  return (await this.httpClient.post({
2092
- path: `${mt}/claim`,
2124
+ path: `${de}/claim`,
2093
2125
  postData: {
2094
2126
  userIdentifier: e.user_identifier,
2095
2127
  userIdentifierType: e.user_identifier_type
@@ -2105,7 +2137,7 @@ class Un {
2105
2137
  */
2106
2138
  async getClaimCheckTotals(e) {
2107
2139
  return (await this.httpClient.get({
2108
- path: `${mt}/totals`,
2140
+ path: `${de}/totals`,
2109
2141
  queryParams: {
2110
2142
  user_identifier: e.user_identifier,
2111
2143
  user_identifier_type: e.user_identifier_type
@@ -2145,7 +2177,7 @@ class kn {
2145
2177
  this.debug && console.debug(`Fuul SDK: Sent '${e.name}' event`), this.saveSentEvent(e);
2146
2178
  }
2147
2179
  isDuplicate(e) {
2148
- var u, h, g, R;
2180
+ var u, h, g, E;
2149
2181
  const r = `${gt}_${e.name}`, n = localStorage.getItem(r);
2150
2182
  if (!n)
2151
2183
  return !1;
@@ -2153,7 +2185,7 @@ class kn {
2153
2185
  if (this.getCurrentTimestamp() - s.timestamp > Ln)
2154
2186
  return !1;
2155
2187
  let f = !1;
2156
- 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) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((R = e.user) == null ? void 0 : R.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2188
+ 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) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((E = e.user) == null ? void 0 : E.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
2157
2189
  let l = !1;
2158
2190
  return e.args && s.args && (l = s.args.page === e.args.page), l && f;
2159
2191
  }
@@ -2182,7 +2214,7 @@ class kn {
2182
2214
  const vn = "0.0.0", Bn = {
2183
2215
  version: vn
2184
2216
  };
2185
- class qn {
2217
+ class In {
2186
2218
  constructor(e) {
2187
2219
  b(this, "client");
2188
2220
  b(this, "defaultQueryParams");
@@ -2237,7 +2269,7 @@ class qn {
2237
2269
  });
2238
2270
  }
2239
2271
  }
2240
- class In {
2272
+ class qn {
2241
2273
  constructor(e) {
2242
2274
  b(this, "httpClient");
2243
2275
  this.httpClient = e.httpClient;
@@ -2430,7 +2462,7 @@ let Hn = (t = 21) => {
2430
2462
  e += Mn[r[t] & 63];
2431
2463
  return e;
2432
2464
  };
2433
- const Vn = "fuul.tracking_id", je = () => Xn(Vn, () => Hn()), bt = () => W("af") || W("referrer"), Kn = () => document.referrer, zn = () => Yn(), Jn = () => W("category"), Wn = () => W("title"), Qn = () => W("tag"), Xn = (t, e) => {
2465
+ const Vn = "fuul.tracking_id", Me = () => Xn(Vn, () => Hn()), bt = () => W("af") || W("referrer"), Kn = () => document.referrer, zn = () => Yn(), Jn = () => W("category"), Wn = () => W("title"), Qn = () => W("tag"), Xn = (t, e) => {
2434
2466
  const r = localStorage.getItem(t);
2435
2467
  if (r)
2436
2468
  return r;
@@ -2453,27 +2485,27 @@ class Zn {
2453
2485
  }
2454
2486
  }
2455
2487
  const es = "https://api.fuul.xyz/api/v1/";
2456
- let k = !1, Fe = !1, $e, L, Mt, Ht, q, be, _e, X, Vt, K, I, Me;
2488
+ let k = !1, ve = !1, He, L, Mt, Ht, I, Ce, Ee, X, Vt, K, q, ie;
2457
2489
  function ts(t) {
2458
- k = !!t.debug, !Fe && ($e = t.apiKey, qs(), L = Is(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Mt = new Dn({ httpClient: L, debug: k }), _e = new kn({ httpClient: L, debug: k }), q = new On({ httpClient: L, debug: k }), be = new Wt({ httpClient: L }), X = new jn({ httpClient: L, debug: k }), Ht = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: k }), K = new In({ httpClient: L }), I = new $n({ httpClient: L, debug: k }), Me = new Un({ httpClient: L, debug: k }), Fe = !0, k && console.debug("Fuul SDK: init() complete"));
2490
+ k = !!t.debug, !ve && (He = t.apiKey, js(), L = $s(t.baseApiUrl ?? es, t.defaultQueryParams ?? {}), Mt = new Dn({ httpClient: L, debug: k }), Ee = new kn({ httpClient: L, debug: k }), I = new On({ httpClient: L, debug: k }), Ce = new Wt({ httpClient: L }), X = new jn({ httpClient: L, debug: k }), Ht = new Zn({ httpClient: L }), Vt = new xn({ httpClient: L, debug: k }), K = new qn({ httpClient: L }), q = new $n({ httpClient: L, debug: k }), ie = new Un({ httpClient: L, debug: k }), ve = !0, k && console.debug("Fuul SDK: init() complete"));
2459
2491
  }
2460
2492
  function w() {
2461
- if (!Fe)
2493
+ if (!ve)
2462
2494
  throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
2463
2495
  }
2464
2496
  async function rs(t, e) {
2465
- w(), He(), Ve();
2497
+ w(), Ve(), Ke();
2466
2498
  const r = {
2467
2499
  name: t,
2468
2500
  args: e ?? {},
2469
2501
  metadata: {
2470
- tracking_id: je()
2502
+ tracking_id: Me()
2471
2503
  }
2472
2504
  };
2473
- await _e.sendEvent(r);
2505
+ await Ee.sendEvent(r);
2474
2506
  }
2475
2507
  async function ns(t, e) {
2476
- w(), He(), Ve();
2508
+ w(), Ve(), Ke();
2477
2509
  const r = {
2478
2510
  name: "pageview",
2479
2511
  args: {
@@ -2481,7 +2513,7 @@ async function ns(t, e) {
2481
2513
  locationOrigin: document.location.origin
2482
2514
  },
2483
2515
  metadata: {
2484
- tracking_id: je(),
2516
+ tracking_id: Me(),
2485
2517
  referrer_url: Kn(),
2486
2518
  source: zn(),
2487
2519
  affiliate_id: bt() ?? void 0,
@@ -2491,10 +2523,10 @@ async function ns(t, e) {
2491
2523
  tag: Qn() ?? void 0
2492
2524
  }
2493
2525
  };
2494
- await _e.sendEvent(r, e);
2526
+ await Ee.sendEvent(r, e);
2495
2527
  }
2496
2528
  async function ss(t, e) {
2497
- w(), He(), Ve();
2529
+ w(), Ve(), Ke();
2498
2530
  const r = {
2499
2531
  name: "connect_wallet",
2500
2532
  user: {
@@ -2506,13 +2538,13 @@ async function ss(t, e) {
2506
2538
  locationOrigin: document.location.origin
2507
2539
  },
2508
2540
  metadata: {
2509
- tracking_id: je()
2541
+ tracking_id: Me()
2510
2542
  }
2511
2543
  };
2512
- 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 _e.sendEvent(r, e);
2544
+ 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);
2513
2545
  }
2514
2546
  async function is(t) {
2515
- return w(), q.create(
2547
+ return w(), I.create(
2516
2548
  t.userIdentifier,
2517
2549
  t.identifierType,
2518
2550
  t.code,
@@ -2523,7 +2555,7 @@ async function is(t) {
2523
2555
  );
2524
2556
  }
2525
2557
  async function os(t) {
2526
- w(), await q.update(
2558
+ w(), await I.update(
2527
2559
  t.userIdentifier,
2528
2560
  t.identifierType,
2529
2561
  t.code,
@@ -2533,7 +2565,7 @@ async function os(t) {
2533
2565
  );
2534
2566
  }
2535
2567
  async function as(t) {
2536
- w(), await q.updateRebateRate(
2568
+ w(), await I.updateRebateRate(
2537
2569
  t.userIdentifier,
2538
2570
  t.identifierType,
2539
2571
  t.code,
@@ -2545,17 +2577,17 @@ async function as(t) {
2545
2577
  );
2546
2578
  }
2547
2579
  async function cs(t, e) {
2548
- return w(), await q.getCode(t, e);
2580
+ return w(), await I.getCode(t, e);
2549
2581
  }
2550
2582
  async function us(t) {
2551
- return w(), await q.isCodeFree(t);
2583
+ return w(), await I.isCodeFree(t);
2552
2584
  }
2553
2585
  async function ls(t) {
2554
- return w(), await q.isCodeAvailable(t);
2586
+ return w(), await I.isCodeAvailable(t);
2555
2587
  }
2556
2588
  async function ds(t, e, r, n) {
2557
2589
  w();
2558
- const s = await q.getCode(e, r), i = new URLSearchParams({
2590
+ const s = await I.getCode(e, r), i = new URLSearchParams({
2559
2591
  af: (s == null ? void 0 : s.code) ?? e
2560
2592
  });
2561
2593
  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()}`;
@@ -2587,13 +2619,13 @@ function bs(t) {
2587
2619
  function _s(t) {
2588
2620
  return X.getUserPayoutMovements(t);
2589
2621
  }
2590
- function Es(t) {
2622
+ function Cs(t) {
2591
2623
  return X.getUserPointsMovements(t);
2592
2624
  }
2593
- function Rs(t) {
2625
+ function Es(t) {
2594
2626
  return w(), X.getPayoutsByReferrer(t);
2595
2627
  }
2596
- async function Cs(t) {
2628
+ async function Rs(t) {
2597
2629
  return w(), Mt.getAll(t);
2598
2630
  }
2599
2631
  async function Ss(t) {
@@ -2603,68 +2635,74 @@ async function As(t) {
2603
2635
  return w(), Vt.getUserAudiences(t);
2604
2636
  }
2605
2637
  async function Ts(t) {
2606
- return w(), I.listUserReferralCodes(t);
2638
+ return w(), q.listUserReferralCodes(t);
2607
2639
  }
2608
2640
  async function Ps(t) {
2609
- return w(), I.generateReferralCodes(t);
2641
+ return w(), q.generateReferralCodes(t);
2610
2642
  }
2611
2643
  async function Os(t) {
2612
- return w(), I.getReferralStatus(t);
2644
+ return w(), q.getReferralStatus(t);
2613
2645
  }
2614
2646
  async function Ns(t) {
2615
- return w(), I.getReferralCode(t);
2647
+ return w(), q.getReferralCode(t);
2616
2648
  }
2617
2649
  async function xs(t) {
2618
- return w(), I.useReferralCode(t);
2650
+ return w(), q.useReferralCode(t);
2619
2651
  }
2620
2652
  async function Us(t) {
2621
- return w(), I.updateReferralCode(t);
2653
+ return w(), q.updateReferralCode(t);
2622
2654
  }
2623
2655
  async function Ds(t) {
2624
- return w(), I.deleteReferral(t);
2656
+ return w(), q.deleteReferral(t);
2625
2657
  }
2626
2658
  async function Ls(t) {
2627
- return w(), be.getAffiliateStats(t);
2659
+ return w(), Ce.getAffiliateStats(t);
2628
2660
  }
2629
2661
  async function Fs(t) {
2630
- return w(), be.getAffiliateNewTraders(t);
2662
+ return w(), Ce.getAffiliateNewTraders(t);
2631
2663
  }
2632
2664
  async function ks(t) {
2633
- return w(), be.getAffiliateTotalStats(t);
2665
+ return w(), Ce.getAffiliateTotalStats(t);
2634
2666
  }
2635
2667
  async function vs(t) {
2636
- return w(), Me.getClaimableChecks(t);
2668
+ return w(), ie.getClaimChecks(t);
2637
2669
  }
2638
2670
  async function Bs(t) {
2639
- return w(), Me.getClaimCheckTotals(t);
2671
+ return w(), ie.closeClaimChecks(t);
2672
+ }
2673
+ async function Is(t) {
2674
+ return w(), ie.getClaimableChecks(t);
2640
2675
  }
2641
- function He() {
2676
+ async function qs(t) {
2677
+ return w(), ie.getClaimCheckTotals(t);
2678
+ }
2679
+ function Ve() {
2642
2680
  if (typeof window > "u" || typeof document > "u")
2643
2681
  throw new Error("Fuul SDK: Browser context required");
2644
2682
  }
2645
- function Ve() {
2683
+ function Ke() {
2646
2684
  if (navigator.webdriver)
2647
2685
  throw new Error("Fuul SDK: Error");
2648
2686
  }
2649
- function qs() {
2650
- if (!$e)
2687
+ function js() {
2688
+ if (!He)
2651
2689
  throw new Error("Fuul SDK: Invalid API key");
2652
2690
  }
2653
- function Is(t, e) {
2654
- return new qn({
2691
+ function $s(t, e) {
2692
+ return new In({
2655
2693
  baseURL: t,
2656
2694
  timeout: 3e4,
2657
- apiKey: $e,
2695
+ apiKey: He,
2658
2696
  queryParams: e
2659
2697
  });
2660
2698
  }
2661
- const oi = {
2699
+ const ui = {
2662
2700
  init: ts,
2663
2701
  sendEvent: rs,
2664
2702
  sendPageview: ns,
2665
2703
  identifyUser: ss,
2666
2704
  generateTrackingLink: ds,
2667
- getConversions: Cs,
2705
+ getConversions: Rs,
2668
2706
  createAffiliateCode: is,
2669
2707
  updateAffiliateCode: os,
2670
2708
  updateRebateRate: as,
@@ -2678,9 +2716,9 @@ const oi = {
2678
2716
  getUserAudiences: As,
2679
2717
  getUserPayoutsByConversion: ws,
2680
2718
  getUserPointsByConversion: bs,
2681
- getUserPointsMovements: Es,
2719
+ getUserPointsMovements: Cs,
2682
2720
  getUserPayoutMovements: _s,
2683
- getPayoutsByReferrer: Rs,
2721
+ getPayoutsByReferrer: Es,
2684
2722
  getUserReferrer: Ss,
2685
2723
  getVolumeLeaderboard: ms,
2686
2724
  getRevenueLeaderboard: gs,
@@ -2694,15 +2732,18 @@ const oi = {
2694
2732
  getAffiliateStats: Ls,
2695
2733
  getAffiliateNewTraders: Fs,
2696
2734
  getAffiliateTotalStats: ks,
2697
- getClaimableChecks: vs,
2698
- getClaimCheckTotals: Bs
2735
+ getClaimChecks: vs,
2736
+ closeClaimChecks: Bs,
2737
+ getClaimableChecks: Is,
2738
+ getClaimCheckTotals: qs
2699
2739
  };
2700
- var js = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(js || {});
2740
+ var Ms = /* @__PURE__ */ ((t) => (t.Open = "open", t.Unclaimed = "unclaimed", t.Claimed = "claimed", t))(Ms || {}), Hs = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(Hs || {});
2701
2741
  export {
2702
- pt as AddressInUseError,
2703
- yt as CodeInUseError,
2704
- oi as Fuul,
2705
- Ne as InvalidSignatureError,
2706
- js as UserIdentifierType,
2707
- Oe as ValidationError
2742
+ yt as AddressInUseError,
2743
+ Ms as ClaimCheckStatus,
2744
+ mt as CodeInUseError,
2745
+ ui as Fuul,
2746
+ Ue as InvalidSignatureError,
2747
+ Hs as UserIdentifierType,
2748
+ xe as ValidationError
2708
2749
  };