@fuul/sdk 7.8.0 → 7.9.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,15 +1,15 @@
1
1
  var xt = Object.defineProperty;
2
2
  var Nt = (t, e, r) => e in t ? xt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var b = (t, e, r) => Nt(t, typeof e != "symbol" ? e + "" : e, r);
4
- const De = "/affiliate-portal";
3
+ var E = (t, e, r) => Nt(t, typeof e != "symbol" ? e + "" : e, r);
4
+ const Le = "/affiliate-portal";
5
5
  class Ut {
6
6
  constructor(e) {
7
- b(this, "httpClient");
7
+ E(this, "httpClient");
8
8
  this.httpClient = e.httpClient;
9
9
  }
10
10
  async getAffiliateStats(e) {
11
11
  return (await this.httpClient.get({
12
- path: `${De}/stats`,
12
+ path: `${Le}/stats`,
13
13
  queryParams: {
14
14
  user_identifier: e.user_identifier
15
15
  }
@@ -17,7 +17,7 @@ class Ut {
17
17
  }
18
18
  async getAffiliateNewTraders(e) {
19
19
  return (await this.httpClient.get({
20
- path: `${De}/new-traders`,
20
+ path: `${Le}/new-traders`,
21
21
  queryParams: {
22
22
  user_identifier: e.user_identifier,
23
23
  from: e.from,
@@ -31,22 +31,22 @@ function tt(t, e) {
31
31
  return t.apply(e, arguments);
32
32
  };
33
33
  }
34
- const { toString: Lt } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: se, toStringTag: rt } = Symbol, ie = /* @__PURE__ */ ((t) => (e) => {
35
- const r = Lt.call(e);
34
+ const { toString: Dt } = Object.prototype, { getPrototypeOf: Se } = Object, { iterator: se, toStringTag: rt } = Symbol, ie = /* @__PURE__ */ ((t) => (e) => {
35
+ const r = Dt.call(e);
36
36
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
37
37
  })(/* @__PURE__ */ Object.create(null)), N = (t) => (t = t.toLowerCase(), (e) => ie(e) === t), oe = (t) => (e) => typeof e === t, { isArray: H } = Array, J = oe("undefined");
38
38
  function W(t) {
39
39
  return t !== null && !J(t) && t.constructor !== null && !J(t.constructor) && P(t.constructor.isBuffer) && t.constructor.isBuffer(t);
40
40
  }
41
41
  const nt = N("ArrayBuffer");
42
- function Dt(t) {
42
+ function Lt(t) {
43
43
  let e;
44
44
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && nt(t.buffer), e;
45
45
  }
46
46
  const Ft = oe("string"), P = oe("function"), st = oe("number"), Q = (t) => t !== null && typeof t == "object", kt = (t) => t === !0 || t === !1, Z = (t) => {
47
47
  if (ie(t) !== "object")
48
48
  return !1;
49
- const e = _e(t);
49
+ const e = Se(t);
50
50
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(rt in t) && !(se in t);
51
51
  }, Bt = (t) => {
52
52
  if (!Q(t) || W(t))
@@ -88,7 +88,7 @@ function it(t, e) {
88
88
  return s;
89
89
  return null;
90
90
  }
91
- const B = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ot = (t) => !J(t) && t !== B;
91
+ const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ot = (t) => !J(t) && t !== q;
92
92
  function ye() {
93
93
  const { caseless: t } = ot(this) && this || {}, e = {}, r = (n, s) => {
94
94
  const i = t && it(e, s) || s;
@@ -111,7 +111,7 @@ const Qt = (t, e, r, { allOwnKeys: n } = {}) => (X(e, (s, i) => {
111
111
  do {
112
112
  for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; )
113
113
  o = s[i], (!n || n(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
114
- t = r !== !1 && _e(t);
114
+ t = r !== !1 && Se(t);
115
115
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
116
116
  return e;
117
117
  }, Zt = (t, e, r) => {
@@ -127,7 +127,7 @@ const Qt = (t, e, r, { allOwnKeys: n } = {}) => (X(e, (s, i) => {
127
127
  for (; e-- > 0; )
128
128
  r[e] = t[e];
129
129
  return r;
130
- }, tr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && _e(Uint8Array)), rr = (t, e) => {
130
+ }, tr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Se(Uint8Array)), rr = (t, e) => {
131
131
  const n = (t && t[se]).call(t);
132
132
  let s;
133
133
  for (; (s = n.next()) && !s.done; ) {
@@ -197,19 +197,19 @@ const dr = (t) => {
197
197
  return n;
198
198
  };
199
199
  return r(t, 0);
200
- }, hr = N("AsyncFunction"), pr = (t) => t && (Q(t) || P(t)) && P(t.then) && P(t.catch), ct = ((t, e) => t ? setImmediate : e ? ((r, n) => (B.addEventListener("message", ({ source: s, data: i }) => {
201
- s === B && i === r && n.length && n.shift()();
200
+ }, hr = N("AsyncFunction"), pr = (t) => t && (Q(t) || P(t)) && P(t.then) && P(t.catch), ct = ((t, e) => t ? setImmediate : e ? ((r, n) => (q.addEventListener("message", ({ source: s, data: i }) => {
201
+ s === q && i === r && n.length && n.shift()();
202
202
  }, !1), (s) => {
203
- n.push(s), B.postMessage(r, "*");
203
+ n.push(s), q.postMessage(r, "*");
204
204
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
205
205
  typeof setImmediate == "function",
206
- P(B.postMessage)
207
- ), mr = typeof queueMicrotask < "u" ? queueMicrotask.bind(B) : typeof process < "u" && process.nextTick || ct, yr = (t) => t != null && P(t[se]), a = {
206
+ P(q.postMessage)
207
+ ), mr = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || ct, yr = (t) => t != null && P(t[se]), a = {
208
208
  isArray: H,
209
209
  isArrayBuffer: nt,
210
210
  isBuffer: W,
211
211
  isFormData: Mt,
212
- isArrayBufferView: Dt,
212
+ isArrayBufferView: Lt,
213
213
  isString: Ft,
214
214
  isNumber: st,
215
215
  isBoolean: kt,
@@ -254,7 +254,7 @@ const dr = (t) => {
254
254
  noop: ur,
255
255
  toFiniteNumber: lr,
256
256
  findKey: it,
257
- global: B,
257
+ global: q,
258
258
  isContextDefined: ot,
259
259
  isSpecCompliantForm: fr,
260
260
  toJSONObject: dr,
@@ -356,15 +356,15 @@ function ae(t, e, r) {
356
356
  return a.isArrayBuffer(h) || a.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
357
357
  }
358
358
  function u(h, y, p) {
359
- let C = h;
359
+ let _ = h;
360
360
  if (h && !p && typeof h == "object") {
361
361
  if (a.endsWith(y, "{}"))
362
362
  y = n ? y : y.slice(0, -2), h = JSON.stringify(h);
363
- else if (a.isArray(h) && wr(h) || (a.isFileList(h) || a.endsWith(y, "[]")) && (C = a.toArray(h)))
364
- return y = ft(y), C.forEach(function(R, L) {
363
+ else if (a.isArray(h) && wr(h) || (a.isFileList(h) || a.endsWith(y, "[]")) && (_ = a.toArray(h)))
364
+ return y = ft(y), _.forEach(function(R, D) {
365
365
  !(a.isUndefined(R) || R === null) && e.append(
366
366
  // eslint-disable-next-line no-nested-ternary
367
- o === !0 ? ke([y], L, i) : o === null ? y : y + "[]",
367
+ o === !0 ? ke([y], D, i) : o === null ? y : y + "[]",
368
368
  l(R)
369
369
  );
370
370
  }), !1;
@@ -376,24 +376,24 @@ function ae(t, e, r) {
376
376
  convertValue: l,
377
377
  isVisitable: ge
378
378
  });
379
- function w(h, y) {
379
+ function b(h, y) {
380
380
  if (!a.isUndefined(h)) {
381
381
  if (d.indexOf(h) !== -1)
382
382
  throw Error("Circular reference detected in " + y.join("."));
383
- d.push(h), a.forEach(h, function(C, _) {
384
- (!(a.isUndefined(C) || C === null) && s.call(
383
+ d.push(h), a.forEach(h, function(_, S) {
384
+ (!(a.isUndefined(_) || _ === null) && s.call(
385
385
  e,
386
- C,
387
- a.isString(_) ? _.trim() : _,
386
+ _,
387
+ a.isString(S) ? S.trim() : S,
388
388
  y,
389
389
  g
390
- )) === !0 && w(C, y ? y.concat(_) : [_]);
390
+ )) === !0 && b(_, y ? y.concat(S) : [S]);
391
391
  }), d.pop();
392
392
  }
393
393
  }
394
394
  if (!a.isObject(t))
395
395
  throw new TypeError("data must be an object");
396
- return w(t), e;
396
+ return b(t), e;
397
397
  }
398
398
  function Be(t) {
399
399
  const e = {
@@ -500,12 +500,12 @@ const pt = {
500
500
  silentJSONParsing: !0,
501
501
  forcedJSONParsing: !0,
502
502
  clarifyTimeoutError: !1
503
- }, Cr = typeof URLSearchParams < "u" ? URLSearchParams : Re, Sr = typeof FormData < "u" ? FormData : null, _r = typeof Blob < "u" ? Blob : null, Rr = {
503
+ }, _r = typeof URLSearchParams < "u" ? URLSearchParams : Re, Cr = typeof FormData < "u" ? FormData : null, Sr = typeof Blob < "u" ? Blob : null, Rr = {
504
504
  isBrowser: !0,
505
505
  classes: {
506
- URLSearchParams: Cr,
507
- FormData: Sr,
508
- Blob: _r
506
+ URLSearchParams: _r,
507
+ FormData: Cr,
508
+ Blob: Sr
509
509
  },
510
510
  protocols: ["http", "https", "file", "blob", "url", "data"]
511
511
  }, Te = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, Tr = Te && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), Ar = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
@@ -555,7 +555,7 @@ function mt(t) {
555
555
  }
556
556
  return null;
557
557
  }
558
- function Lr(t, e, r) {
558
+ function Dr(t, e, r) {
559
559
  if (a.isString(t))
560
560
  try {
561
561
  return (e || JSON.parse)(t), a.trim(t);
@@ -591,7 +591,7 @@ const Y = {
591
591
  );
592
592
  }
593
593
  }
594
- return i || s ? (r.setContentType("application/json", !1), Lr(e)) : e;
594
+ return i || s ? (r.setContentType("application/json", !1), Dr(e)) : e;
595
595
  }],
596
596
  transformResponse: [function(e) {
597
597
  const r = this.transitional || Y.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
@@ -634,7 +634,7 @@ const Y = {
634
634
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
635
635
  Y.headers[t] = {};
636
636
  });
637
- const Dr = a.toObjectSet([
637
+ const Lr = a.toObjectSet([
638
638
  "age",
639
639
  "authorization",
640
640
  "content-length",
@@ -657,7 +657,7 @@ const Dr = a.toObjectSet([
657
657
  let r, n, s;
658
658
  return t && t.split(`
659
659
  `).forEach(function(o) {
660
- s = o.indexOf(":"), r = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!r || e[r] && Dr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
660
+ s = o.indexOf(":"), r = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!r || e[r] && Lr[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
661
661
  }), e;
662
662
  }, ve = Symbol("internals");
663
663
  function z(t) {
@@ -877,8 +877,8 @@ function jr(t, e) {
877
877
  g += r[d++], d = d % t;
878
878
  if (s = (s + 1) % t, s === i && (i = (i + 1) % t), l - o < e)
879
879
  return;
880
- const w = u && l - u;
881
- return w ? Math.round(g * 1e3 / w) : void 0;
880
+ const b = u && l - u;
881
+ return b ? Math.round(g * 1e3 / b) : void 0;
882
882
  };
883
883
  }
884
884
  function $r(t, e) {
@@ -960,7 +960,7 @@ function wt(t, e, r) {
960
960
  return t && (n || r == !1) ? Vr(t, e) : e;
961
961
  }
962
962
  const $e = (t) => t instanceof O ? { ...t } : t;
963
- function v(t, e) {
963
+ function I(t, e) {
964
964
  e = e || {};
965
965
  const r = {};
966
966
  function n(l, u, d, g) {
@@ -1025,7 +1025,7 @@ function v(t, e) {
1025
1025
  }), r;
1026
1026
  }
1027
1027
  const bt = (t) => {
1028
- const e = v({}, t);
1028
+ const e = I({}, t);
1029
1029
  let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = e;
1030
1030
  e.headers = o = O.from(o), e.url = ht(wt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && o.set(
1031
1031
  "Authorization",
@@ -1050,13 +1050,13 @@ const bt = (t) => {
1050
1050
  const s = bt(t);
1051
1051
  let i = s.data;
1052
1052
  const o = O.from(s.headers).normalize();
1053
- let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, g, w, h;
1053
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, g, b, h;
1054
1054
  function y() {
1055
- w && w(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1055
+ b && b(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1056
1056
  }
1057
1057
  let p = new XMLHttpRequest();
1058
1058
  p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1059
- function C() {
1059
+ function _() {
1060
1060
  if (!p)
1061
1061
  return;
1062
1062
  const R = O.from(
@@ -1069,35 +1069,35 @@ const bt = (t) => {
1069
1069
  config: t,
1070
1070
  request: p
1071
1071
  };
1072
- gt(function(k) {
1073
- r(k), y();
1074
- }, function(k) {
1075
- n(k), y();
1072
+ gt(function(B) {
1073
+ r(B), y();
1074
+ }, function(B) {
1075
+ n(B), y();
1076
1076
  }, A), p = null;
1077
1077
  }
1078
- "onloadend" in p ? p.onloadend = C : p.onreadystatechange = function() {
1079
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(C);
1078
+ "onloadend" in p ? p.onloadend = _ : p.onreadystatechange = function() {
1079
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(_);
1080
1080
  }, p.onabort = function() {
1081
1081
  p && (n(new m("Request aborted", m.ECONNABORTED, t, p)), p = null);
1082
1082
  }, p.onerror = function() {
1083
1083
  n(new m("Network Error", m.ERR_NETWORK, t, p)), p = null;
1084
1084
  }, p.ontimeout = function() {
1085
- let L = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1085
+ let D = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1086
1086
  const A = s.transitional || pt;
1087
- s.timeoutErrorMessage && (L = s.timeoutErrorMessage), n(new m(
1088
- L,
1087
+ s.timeoutErrorMessage && (D = s.timeoutErrorMessage), n(new m(
1088
+ D,
1089
1089
  A.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1090
1090
  t,
1091
1091
  p
1092
1092
  )), p = null;
1093
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(L, A) {
1094
- p.setRequestHeader(A, L);
1095
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, h] = re(l, !0), p.addEventListener("progress", g)), f && p.upload && ([d, w] = re(f), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (u = (R) => {
1093
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(D, A) {
1094
+ p.setRequestHeader(A, D);
1095
+ }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), l && ([g, h] = re(l, !0), p.addEventListener("progress", g)), f && p.upload && ([d, b] = re(f), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (u = (R) => {
1096
1096
  p && (n(!R || R.type ? new K(null, t, p) : R), p.abort(), p = null);
1097
1097
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1098
- const _ = Ir(s.url);
1099
- if (_ && T.protocols.indexOf(_) === -1) {
1100
- n(new m("Unsupported protocol " + _ + ":", m.ERR_BAD_REQUEST, t));
1098
+ const S = Ir(s.url);
1099
+ if (S && T.protocols.indexOf(S) === -1) {
1100
+ n(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, t));
1101
1101
  return;
1102
1102
  }
1103
1103
  p.send(i || null);
@@ -1182,13 +1182,13 @@ const bt = (t) => {
1182
1182
  }, {
1183
1183
  highWaterMark: 2
1184
1184
  });
1185
- }, ce = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Et = ce && typeof ReadableStream == "function", Gr = ce && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Ct = (t, ...e) => {
1185
+ }, ce = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Et = ce && typeof ReadableStream == "function", Gr = ce && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), _t = (t, ...e) => {
1186
1186
  try {
1187
1187
  return !!t(...e);
1188
1188
  } catch {
1189
1189
  return !1;
1190
1190
  }
1191
- }, Zr = Et && Ct(() => {
1191
+ }, Zr = Et && _t(() => {
1192
1192
  let t = !1;
1193
1193
  const e = new Request(T.origin, {
1194
1194
  body: new ReadableStream(),
@@ -1198,7 +1198,7 @@ const bt = (t) => {
1198
1198
  }
1199
1199
  }).headers.has("Content-Type");
1200
1200
  return t && !e;
1201
- }), He = 64 * 1024, be = Et && Ct(() => a.isReadableStream(new Response("").body)), ne = {
1201
+ }), He = 64 * 1024, be = Et && _t(() => a.isReadableStream(new Response("").body)), ne = {
1202
1202
  stream: be && ((t) => t.body)
1203
1203
  };
1204
1204
  ce && ((t) => {
@@ -1241,9 +1241,9 @@ const en = async (t) => {
1241
1241
  fetchOptions: g
1242
1242
  } = bt(t);
1243
1243
  l = l ? (l + "").toLowerCase() : "text";
1244
- let w = Wr([s, i && i.toAbortSignal()], o), h;
1245
- const y = w && w.unsubscribe && (() => {
1246
- w.unsubscribe();
1244
+ let b = Wr([s, i && i.toAbortSignal()], o), h;
1245
+ const y = b && b.unsubscribe && (() => {
1246
+ b.unsubscribe();
1247
1247
  });
1248
1248
  let p;
1249
1249
  try {
@@ -1254,61 +1254,61 @@ const en = async (t) => {
1254
1254
  duplex: "half"
1255
1255
  }), F;
1256
1256
  if (a.isFormData(n) && (F = A.headers.get("content-type")) && u.setContentType(F), A.body) {
1257
- const [k, G] = Ie(
1257
+ const [B, G] = Ie(
1258
1258
  p,
1259
1259
  re(je(f))
1260
1260
  );
1261
- n = Me(A.body, He, k, G);
1261
+ n = Me(A.body, He, B, G);
1262
1262
  }
1263
1263
  }
1264
1264
  a.isString(d) || (d = d ? "include" : "omit");
1265
- const C = "credentials" in Request.prototype;
1265
+ const _ = "credentials" in Request.prototype;
1266
1266
  h = new Request(e, {
1267
1267
  ...g,
1268
- signal: w,
1268
+ signal: b,
1269
1269
  method: r.toUpperCase(),
1270
1270
  headers: u.normalize().toJSON(),
1271
1271
  body: n,
1272
1272
  duplex: "half",
1273
- credentials: C ? d : void 0
1273
+ credentials: _ ? d : void 0
1274
1274
  });
1275
- let _ = await fetch(h, g);
1275
+ let S = await fetch(h, g);
1276
1276
  const R = be && (l === "stream" || l === "response");
1277
1277
  if (be && (c || R && y)) {
1278
1278
  const A = {};
1279
- ["status", "statusText", "headers"].forEach((Le) => {
1280
- A[Le] = _[Le];
1279
+ ["status", "statusText", "headers"].forEach((De) => {
1280
+ A[De] = S[De];
1281
1281
  });
1282
- const F = a.toFiniteNumber(_.headers.get("content-length")), [k, G] = c && Ie(
1282
+ const F = a.toFiniteNumber(S.headers.get("content-length")), [B, G] = c && Ie(
1283
1283
  F,
1284
1284
  re(je(c), !0)
1285
1285
  ) || [];
1286
- _ = new Response(
1287
- Me(_.body, He, k, () => {
1286
+ S = new Response(
1287
+ Me(S.body, He, B, () => {
1288
1288
  G && G(), y && y();
1289
1289
  }),
1290
1290
  A
1291
1291
  );
1292
1292
  }
1293
1293
  l = l || "text";
1294
- let L = await ne[a.findKey(ne, l) || "text"](_, t);
1294
+ let D = await ne[a.findKey(ne, l) || "text"](S, t);
1295
1295
  return !R && y && y(), await new Promise((A, F) => {
1296
1296
  gt(A, F, {
1297
- data: L,
1298
- headers: O.from(_.headers),
1299
- status: _.status,
1300
- statusText: _.statusText,
1297
+ data: D,
1298
+ headers: O.from(S.headers),
1299
+ status: S.status,
1300
+ statusText: S.statusText,
1301
1301
  config: t,
1302
1302
  request: h
1303
1303
  });
1304
1304
  });
1305
- } catch (C) {
1306
- throw y && y(), C && C.name === "TypeError" && /Load failed|fetch/i.test(C.message) ? Object.assign(
1305
+ } catch (_) {
1306
+ throw y && y(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
1307
1307
  new m("Network Error", m.ERR_NETWORK, t, h),
1308
1308
  {
1309
- cause: C.cause || C
1309
+ cause: _.cause || _
1310
1310
  }
1311
- ) : m.from(C, C && C.code, t, h);
1311
+ ) : m.from(_, _ && _.code, t, h);
1312
1312
  }
1313
1313
  }), Ee = {
1314
1314
  http: gr,
@@ -1324,7 +1324,7 @@ a.forEach(Ee, (t, e) => {
1324
1324
  Object.defineProperty(t, "adapterName", { value: e });
1325
1325
  }
1326
1326
  });
1327
- const Ke = (t) => `- ${t}`, nn = (t) => a.isFunction(t) || t === null || t === !1, St = {
1327
+ const Ke = (t) => `- ${t}`, nn = (t) => a.isFunction(t) || t === null || t === !1, Ct = {
1328
1328
  getAdapter: (t) => {
1329
1329
  t = a.isArray(t) ? t : [t];
1330
1330
  const { length: e } = t;
@@ -1363,7 +1363,7 @@ function Ve(t) {
1363
1363
  return pe(t), t.headers = O.from(t.headers), t.data = he.call(
1364
1364
  t,
1365
1365
  t.transformRequest
1366
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), St.getAdapter(t.adapter || Y.adapter)(t).then(function(n) {
1366
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Ct.getAdapter(t.adapter || Y.adapter)(t).then(function(n) {
1367
1367
  return pe(t), n.data = he.call(
1368
1368
  t,
1369
1369
  t.transformResponse,
@@ -1377,7 +1377,7 @@ function Ve(t) {
1377
1377
  ), n.response.headers = O.from(n.response.headers))), Promise.reject(n);
1378
1378
  });
1379
1379
  }
1380
- const _t = "1.11.0", ue = {};
1380
+ const St = "1.11.0", ue = {};
1381
1381
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1382
1382
  ue[t] = function(n) {
1383
1383
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
@@ -1386,7 +1386,7 @@ const _t = "1.11.0", ue = {};
1386
1386
  const ze = {};
1387
1387
  ue.transitional = function(e, r, n) {
1388
1388
  function s(i, o) {
1389
- return "[Axios v" + _t + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1389
+ return "[Axios v" + St + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
1390
1390
  }
1391
1391
  return (i, o, c) => {
1392
1392
  if (e === !1)
@@ -1426,7 +1426,7 @@ const te = {
1426
1426
  assertOptions: sn,
1427
1427
  validators: ue
1428
1428
  }, U = te.validators;
1429
- let q = class {
1429
+ let v = class {
1430
1430
  constructor(e) {
1431
1431
  this.defaults = e || {}, this.interceptors = {
1432
1432
  request: new qe(),
@@ -1459,7 +1459,7 @@ let q = class {
1459
1459
  }
1460
1460
  }
1461
1461
  _request(e, r) {
1462
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = v(this.defaults, r);
1462
+ typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = I(this.defaults, r);
1463
1463
  const { transitional: n, paramsSerializer: s, headers: i } = r;
1464
1464
  n !== void 0 && te.assertOptions(n, {
1465
1465
  silentJSONParsing: U.transitional(U.boolean),
@@ -1501,18 +1501,18 @@ let q = class {
1501
1501
  return u;
1502
1502
  }
1503
1503
  g = c.length;
1504
- let w = r;
1504
+ let b = r;
1505
1505
  for (d = 0; d < g; ) {
1506
1506
  const h = c[d++], y = c[d++];
1507
1507
  try {
1508
- w = h(w);
1508
+ b = h(b);
1509
1509
  } catch (p) {
1510
1510
  y.call(this, p);
1511
1511
  break;
1512
1512
  }
1513
1513
  }
1514
1514
  try {
1515
- u = Ve.call(this, w);
1515
+ u = Ve.call(this, b);
1516
1516
  } catch (h) {
1517
1517
  return Promise.reject(h);
1518
1518
  }
@@ -1521,14 +1521,14 @@ let q = class {
1521
1521
  return u;
1522
1522
  }
1523
1523
  getUri(e) {
1524
- e = v(this.defaults, e);
1524
+ e = I(this.defaults, e);
1525
1525
  const r = wt(e.baseURL, e.url, e.allowAbsoluteUrls);
1526
1526
  return ht(r, e.params, e.paramsSerializer);
1527
1527
  }
1528
1528
  };
1529
1529
  a.forEach(["delete", "get", "head", "options"], function(e) {
1530
- q.prototype[e] = function(r, n) {
1531
- return this.request(v(n || {}, {
1530
+ v.prototype[e] = function(r, n) {
1531
+ return this.request(I(n || {}, {
1532
1532
  method: e,
1533
1533
  url: r,
1534
1534
  data: (n || {}).data
@@ -1538,7 +1538,7 @@ a.forEach(["delete", "get", "head", "options"], function(e) {
1538
1538
  a.forEach(["post", "put", "patch"], function(e) {
1539
1539
  function r(n) {
1540
1540
  return function(i, o, c) {
1541
- return this.request(v(c || {}, {
1541
+ return this.request(I(c || {}, {
1542
1542
  method: e,
1543
1543
  headers: n ? {
1544
1544
  "Content-Type": "multipart/form-data"
@@ -1548,7 +1548,7 @@ a.forEach(["post", "put", "patch"], function(e) {
1548
1548
  }));
1549
1549
  };
1550
1550
  }
1551
- q.prototype[e] = r(), q.prototype[e + "Form"] = r(!0);
1551
+ v.prototype[e] = r(), v.prototype[e + "Form"] = r(!0);
1552
1552
  });
1553
1553
  let on = class Rt {
1554
1554
  constructor(e) {
@@ -1631,7 +1631,7 @@ function an(t) {
1631
1631
  function cn(t) {
1632
1632
  return a.isObject(t) && t.isAxiosError === !0;
1633
1633
  }
1634
- const Ce = {
1634
+ const _e = {
1635
1635
  Continue: 100,
1636
1636
  SwitchingProtocols: 101,
1637
1637
  Processing: 102,
@@ -1696,71 +1696,71 @@ const Ce = {
1696
1696
  NotExtended: 510,
1697
1697
  NetworkAuthenticationRequired: 511
1698
1698
  };
1699
- Object.entries(Ce).forEach(([t, e]) => {
1700
- Ce[e] = t;
1699
+ Object.entries(_e).forEach(([t, e]) => {
1700
+ _e[e] = t;
1701
1701
  });
1702
1702
  function Tt(t) {
1703
- const e = new q(t), r = tt(q.prototype.request, e);
1704
- return a.extend(r, q.prototype, e, { allOwnKeys: !0 }), a.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1705
- return Tt(v(t, s));
1703
+ const e = new v(t), r = tt(v.prototype.request, e);
1704
+ return a.extend(r, v.prototype, e, { allOwnKeys: !0 }), a.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
1705
+ return Tt(I(t, s));
1706
1706
  }, r;
1707
1707
  }
1708
- const S = Tt(Y);
1709
- S.Axios = q;
1710
- S.CanceledError = K;
1711
- S.CancelToken = on;
1712
- S.isCancel = yt;
1713
- S.VERSION = _t;
1714
- S.toFormData = ae;
1715
- S.AxiosError = m;
1716
- S.Cancel = S.CanceledError;
1717
- S.all = function(e) {
1708
+ const C = Tt(Y);
1709
+ C.Axios = v;
1710
+ C.CanceledError = K;
1711
+ C.CancelToken = on;
1712
+ C.isCancel = yt;
1713
+ C.VERSION = St;
1714
+ C.toFormData = ae;
1715
+ C.AxiosError = m;
1716
+ C.Cancel = C.CanceledError;
1717
+ C.all = function(e) {
1718
1718
  return Promise.all(e);
1719
1719
  };
1720
- S.spread = an;
1721
- S.isAxiosError = cn;
1722
- S.mergeConfig = v;
1723
- S.AxiosHeaders = O;
1724
- S.formToJSON = (t) => mt(a.isHTMLForm(t) ? new FormData(t) : t);
1725
- S.getAdapter = St.getAdapter;
1726
- S.HttpStatusCode = Ce;
1727
- S.default = S;
1720
+ C.spread = an;
1721
+ C.isAxiosError = cn;
1722
+ C.mergeConfig = I;
1723
+ C.AxiosHeaders = O;
1724
+ C.formToJSON = (t) => mt(a.isHTMLForm(t) ? new FormData(t) : t);
1725
+ C.getAdapter = Ct.getAdapter;
1726
+ C.HttpStatusCode = _e;
1727
+ C.default = C;
1728
1728
  const {
1729
- Axios: bs,
1729
+ Axios: Es,
1730
1730
  AxiosError: me,
1731
- CanceledError: Es,
1731
+ CanceledError: _s,
1732
1732
  isCancel: Cs,
1733
1733
  CancelToken: Ss,
1734
- VERSION: _s,
1735
- all: Rs,
1736
- Cancel: Ts,
1737
- isAxiosError: As,
1738
- spread: Ps,
1739
- toFormData: Os,
1740
- AxiosHeaders: xs,
1741
- HttpStatusCode: Ns,
1742
- formToJSON: Us,
1734
+ VERSION: Rs,
1735
+ all: Ts,
1736
+ Cancel: As,
1737
+ isAxiosError: Ps,
1738
+ spread: Os,
1739
+ toFormData: xs,
1740
+ AxiosHeaders: Ns,
1741
+ HttpStatusCode: Us,
1742
+ formToJSON: Ds,
1743
1743
  getAdapter: Ls,
1744
- mergeConfig: Ds
1745
- } = S;
1744
+ mergeConfig: Fs
1745
+ } = C;
1746
1746
  class Je extends Error {
1747
1747
  constructor(r) {
1748
1748
  super(r.join(", "));
1749
- b(this, "errors");
1749
+ E(this, "errors");
1750
1750
  this.name = "ValidationError", this.errors = r;
1751
1751
  }
1752
1752
  }
1753
1753
  class We extends Error {
1754
1754
  constructor(r) {
1755
1755
  super("Address already registered.");
1756
- b(this, "address");
1756
+ E(this, "address");
1757
1757
  this.name = "AddressInUseError", this.address = r;
1758
1758
  }
1759
1759
  }
1760
1760
  class Qe extends Error {
1761
1761
  constructor(r) {
1762
1762
  super("Code already registered.");
1763
- b(this, "code");
1763
+ E(this, "code");
1764
1764
  this.name = "CodeInUseError", this.code = r;
1765
1765
  }
1766
1766
  }
@@ -1771,8 +1771,8 @@ class Xe extends Error {
1771
1771
  }
1772
1772
  class un {
1773
1773
  constructor(e) {
1774
- b(this, "httpClient");
1775
- b(this, "_debug");
1774
+ E(this, "httpClient");
1775
+ E(this, "_debug");
1776
1776
  this.httpClient = e.httpClient, this._debug = e.debug;
1777
1777
  }
1778
1778
  async create(e, r, n, s, i, o, c) {
@@ -1851,8 +1851,8 @@ class un {
1851
1851
  const ln = "/audiences";
1852
1852
  class fn {
1853
1853
  constructor(e) {
1854
- b(this, "httpClient");
1855
- b(this, "_debug");
1854
+ E(this, "httpClient");
1855
+ E(this, "_debug");
1856
1856
  this.httpClient = e.httpClient, this._debug = e.debug;
1857
1857
  }
1858
1858
  async getUserAudiences(e) {
@@ -1865,8 +1865,8 @@ class fn {
1865
1865
  const Ye = "/claim-checks";
1866
1866
  class dn {
1867
1867
  constructor(e) {
1868
- b(this, "httpClient");
1869
- b(this, "_debug");
1868
+ E(this, "httpClient");
1869
+ E(this, "_debug");
1870
1870
  this.httpClient = e.httpClient, this._debug = e.debug;
1871
1871
  }
1872
1872
  /**
@@ -1904,7 +1904,7 @@ class dn {
1904
1904
  }
1905
1905
  class hn {
1906
1906
  constructor(e) {
1907
- b(this, "httpClient");
1907
+ E(this, "httpClient");
1908
1908
  this.httpClient = e.httpClient;
1909
1909
  }
1910
1910
  async getAll(e) {
@@ -1915,8 +1915,8 @@ class hn {
1915
1915
  const Ge = "fuul.sent", pn = 60, mn = "connect_wallet", Ze = 10;
1916
1916
  class yn {
1917
1917
  constructor(e) {
1918
- b(this, "debug");
1919
- b(this, "httpClient");
1918
+ E(this, "debug");
1919
+ E(this, "httpClient");
1920
1920
  this.httpClient = e.httpClient, this.debug = !!e.debug;
1921
1921
  }
1922
1922
  async sendEvent(e, r) {
@@ -1934,7 +1934,7 @@ class yn {
1934
1934
  this.debug && console.debug(`Fuul SDK: Sent '${e.name}' event`), this.saveSentEvent(e);
1935
1935
  }
1936
1936
  isDuplicate(e) {
1937
- var u, d, g, w;
1937
+ var u, d, g, b;
1938
1938
  const r = `${Ge}_${e.name}`, n = localStorage.getItem(r);
1939
1939
  if (!n)
1940
1940
  return !1;
@@ -1942,7 +1942,7 @@ class yn {
1942
1942
  if (this.getCurrentTimestamp() - s.timestamp > pn)
1943
1943
  return !1;
1944
1944
  let f = !1;
1945
- 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) === ((d = e.user) == null ? void 0 : d.identifier) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((w = e.user) == null ? void 0 : w.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
1945
+ 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) === ((d = e.user) == null ? void 0 : d.identifier) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((b = e.user) == null ? void 0 : b.identifier_type) && s.signature === e.signature && s.signature_message === e.signature_message);
1946
1946
  let l = !1;
1947
1947
  return e.args && s.args && (l = s.args.page === e.args.page), l && f;
1948
1948
  }
@@ -1968,14 +1968,14 @@ class yn {
1968
1968
  }
1969
1969
  }
1970
1970
  }
1971
- const gn = "7.8.0", wn = {
1971
+ const gn = "7.9.0", wn = {
1972
1972
  version: gn
1973
1973
  };
1974
1974
  class bn {
1975
1975
  constructor(e) {
1976
- b(this, "client");
1977
- b(this, "defaultQueryParams");
1978
- this.client = S.create({
1976
+ E(this, "client");
1977
+ E(this, "defaultQueryParams");
1978
+ this.client = C.create({
1979
1979
  ...e,
1980
1980
  headers: {
1981
1981
  Authorization: `Bearer ${e.apiKey}`,
@@ -2021,13 +2021,14 @@ class bn {
2021
2021
  return this.client.request({
2022
2022
  url: e.path,
2023
2023
  params: this.makeQueryParams(e.queryParams),
2024
+ data: e.postData,
2024
2025
  method: "DELETE"
2025
2026
  });
2026
2027
  }
2027
2028
  }
2028
2029
  class En {
2029
2030
  constructor(e) {
2030
- b(this, "httpClient");
2031
+ E(this, "httpClient");
2031
2032
  this.httpClient = e.httpClient;
2032
2033
  }
2033
2034
  async getPayoutsLeaderboard(e) {
@@ -2050,10 +2051,10 @@ class En {
2050
2051
  }
2051
2052
  }
2052
2053
  const $ = "/payouts";
2053
- class Cn {
2054
+ class _n {
2054
2055
  constructor(e) {
2055
- b(this, "httpClient");
2056
- b(this, "_debug");
2056
+ E(this, "httpClient");
2057
+ E(this, "_debug");
2057
2058
  this.httpClient = e.httpClient, this._debug = e.debug;
2058
2059
  }
2059
2060
  async getUserPayoutsByConversion(e) {
@@ -2096,10 +2097,10 @@ class Cn {
2096
2097
  })).data;
2097
2098
  }
2098
2099
  }
2099
- class Sn {
2100
+ class Cn {
2100
2101
  constructor(e) {
2101
- b(this, "httpClient");
2102
- b(this, "_debug");
2102
+ E(this, "httpClient");
2103
+ E(this, "_debug");
2103
2104
  this.httpClient = e.httpClient, this._debug = e.debug;
2104
2105
  }
2105
2106
  async listUserReferralCodes(e) {
@@ -2161,15 +2162,41 @@ class Sn {
2161
2162
  }
2162
2163
  });
2163
2164
  }
2165
+ async deleteReferral(e) {
2166
+ const {
2167
+ code: r,
2168
+ user_identifier: n,
2169
+ user_identifier_type: s,
2170
+ referrer_identifier: i,
2171
+ referrer_identifier_type: o,
2172
+ signature: c,
2173
+ signature_message: f,
2174
+ chain_id: l
2175
+ } = e;
2176
+ await this.httpClient.delete({
2177
+ path: `/referral_codes/${r}/referrals`,
2178
+ queryParams: {
2179
+ user_identifier: n,
2180
+ user_identifier_type: s,
2181
+ referrer_identifier: i,
2182
+ referrer_identifier_type: o
2183
+ },
2184
+ postData: {
2185
+ signature: c,
2186
+ signature_message: f,
2187
+ chain_id: l
2188
+ }
2189
+ });
2190
+ }
2164
2191
  }
2165
- const _n = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2192
+ const Sn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2166
2193
  let Rn = (t = 21) => {
2167
2194
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
2168
2195
  for (; t--; )
2169
- e += _n[r[t] & 63];
2196
+ e += Sn[r[t] & 63];
2170
2197
  return e;
2171
2198
  };
2172
- const Tn = "fuul.tracking_id", Ae = () => Un(Tn, () => Rn()), et = () => M("af") || M("referrer"), An = () => document.referrer, Pn = () => Ln(), On = () => M("category"), xn = () => M("title"), Nn = () => M("tag"), Un = (t, e) => {
2199
+ const Tn = "fuul.tracking_id", Ae = () => Un(Tn, () => Rn()), et = () => M("af") || M("referrer"), An = () => document.referrer, Pn = () => Dn(), On = () => M("category"), xn = () => M("title"), Nn = () => M("tag"), Un = (t, e) => {
2173
2200
  const r = localStorage.getItem(t);
2174
2201
  if (r)
2175
2202
  return r;
@@ -2177,31 +2204,31 @@ const Tn = "fuul.tracking_id", Ae = () => Un(Tn, () => Rn()), et = () => M("af")
2177
2204
  const n = e();
2178
2205
  return n ? localStorage.setItem(t, n) : localStorage.removeItem(t), n;
2179
2206
  }
2180
- }, M = (t) => new URLSearchParams(window.location.search).get(t), Ln = () => {
2207
+ }, M = (t) => new URLSearchParams(window.location.search).get(t), Dn = () => {
2181
2208
  const t = M("source");
2182
2209
  if (t)
2183
2210
  return t;
2184
- }, Dn = "/user";
2211
+ }, Ln = "/user";
2185
2212
  class Fn {
2186
2213
  constructor(e) {
2187
- b(this, "httpClient");
2214
+ E(this, "httpClient");
2188
2215
  this.httpClient = e.httpClient;
2189
2216
  }
2190
2217
  async getUserReferrer(e) {
2191
- return (await this.httpClient.get({ path: `${Dn}/referrer`, queryParams: { ...e } })).data;
2218
+ return (await this.httpClient.get({ path: `${Ln}/referrer`, queryParams: { ...e } })).data;
2192
2219
  }
2193
2220
  }
2194
2221
  const kn = "https://api.fuul.xyz/api/v1/";
2195
- let D = !1, Se = !1, Pe, x, At, Pt, V, Oe, le, I, Ot, fe, j, xe;
2222
+ let L = !1, Ce = !1, Pe, x, At, Pt, V, Oe, le, j, Ot, fe, k, xe;
2196
2223
  function Bn(t) {
2197
- D = !!t.debug, !Se && (Pe = t.apiKey, hs(), x = ps(t.baseApiUrl ?? kn, t.defaultQueryParams ?? {}), At = new hn({ httpClient: x, debug: D }), le = new yn({ httpClient: x, debug: D }), V = new un({ httpClient: x, debug: D }), Oe = new Ut({ httpClient: x }), I = new Cn({ httpClient: x, debug: D }), Pt = new Fn({ httpClient: x }), Ot = new fn({ httpClient: x, debug: D }), fe = new En({ httpClient: x }), j = new Sn({ httpClient: x, debug: D }), xe = new dn({ httpClient: x, debug: D }), Se = !0, D && console.debug("Fuul SDK: init() complete"));
2224
+ L = !!t.debug, !Ce && (Pe = t.apiKey, ps(), x = ms(t.baseApiUrl ?? kn, t.defaultQueryParams ?? {}), At = new hn({ httpClient: x, debug: L }), le = new yn({ httpClient: x, debug: L }), V = new un({ httpClient: x, debug: L }), Oe = new Ut({ httpClient: x }), j = new _n({ httpClient: x, debug: L }), Pt = new Fn({ httpClient: x }), Ot = new fn({ httpClient: x, debug: L }), fe = new En({ httpClient: x }), k = new Cn({ httpClient: x, debug: L }), xe = new dn({ httpClient: x, debug: L }), Ce = !0, L && console.debug("Fuul SDK: init() complete"));
2198
2225
  }
2199
- function E() {
2200
- if (!Se)
2226
+ function w() {
2227
+ if (!Ce)
2201
2228
  throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
2202
2229
  }
2203
2230
  async function qn(t, e) {
2204
- E(), Ne(), Ue();
2231
+ w(), Ne(), Ue();
2205
2232
  const r = {
2206
2233
  name: t,
2207
2234
  args: e ?? {},
@@ -2212,7 +2239,7 @@ async function qn(t, e) {
2212
2239
  await le.sendEvent(r);
2213
2240
  }
2214
2241
  async function vn(t, e) {
2215
- E(), Ne(), Ue();
2242
+ w(), Ne(), Ue();
2216
2243
  const r = {
2217
2244
  name: "pageview",
2218
2245
  args: {
@@ -2233,7 +2260,7 @@ async function vn(t, e) {
2233
2260
  await le.sendEvent(r, e);
2234
2261
  }
2235
2262
  async function In(t, e) {
2236
- E(), Ne(), Ue();
2263
+ w(), Ne(), Ue();
2237
2264
  const r = {
2238
2265
  name: "connect_wallet",
2239
2266
  user: {
@@ -2251,7 +2278,7 @@ async function In(t, e) {
2251
2278
  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 le.sendEvent(r, e);
2252
2279
  }
2253
2280
  async function jn(t) {
2254
- E(), await V.create(
2281
+ w(), await V.create(
2255
2282
  t.userIdentifier,
2256
2283
  t.identifierType,
2257
2284
  t.code,
@@ -2262,7 +2289,7 @@ async function jn(t) {
2262
2289
  );
2263
2290
  }
2264
2291
  async function $n(t) {
2265
- E(), await V.update(
2292
+ w(), await V.update(
2266
2293
  t.userIdentifier,
2267
2294
  t.identifierType,
2268
2295
  t.code,
@@ -2273,13 +2300,13 @@ async function $n(t) {
2273
2300
  );
2274
2301
  }
2275
2302
  async function Mn(t, e) {
2276
- return E(), await V.getCode(t, e);
2303
+ return w(), await V.getCode(t, e);
2277
2304
  }
2278
2305
  async function Hn(t) {
2279
- return E(), await V.isCodeFree(t);
2306
+ return w(), await V.isCodeFree(t);
2280
2307
  }
2281
2308
  async function Kn(t, e, r, n) {
2282
- E();
2309
+ w();
2283
2310
  const s = await V.getCode(e, r), i = new URLSearchParams({
2284
2311
  af: (s == null ? void 0 : s.code) ?? e
2285
2312
  });
@@ -2295,61 +2322,64 @@ function Jn(t) {
2295
2322
  return fe.getReferredUsersLeaderboard(t);
2296
2323
  }
2297
2324
  function Wn(t) {
2298
- return I.getVolumeLeaderboard(t);
2325
+ return j.getVolumeLeaderboard(t);
2299
2326
  }
2300
2327
  function Qn(t) {
2301
- return I.getUserPayoutsByConversion(t);
2328
+ return j.getUserPayoutsByConversion(t);
2302
2329
  }
2303
2330
  function Xn(t) {
2304
- return I.getUserPointsByConversion(t);
2331
+ return j.getUserPointsByConversion(t);
2305
2332
  }
2306
2333
  function Yn(t) {
2307
- return I.getUserPayoutMovements(t);
2334
+ return j.getUserPayoutMovements(t);
2308
2335
  }
2309
2336
  function Gn(t) {
2310
- return I.getUserPointsMovements(t);
2337
+ return j.getUserPointsMovements(t);
2311
2338
  }
2312
2339
  function Zn(t) {
2313
- return E(), I.getPayoutsByReferrer(t);
2340
+ return w(), j.getPayoutsByReferrer(t);
2314
2341
  }
2315
2342
  async function es(t) {
2316
- return E(), At.getAll(t);
2343
+ return w(), At.getAll(t);
2317
2344
  }
2318
2345
  async function ts(t) {
2319
- return E(), Pt.getUserReferrer(t);
2346
+ return w(), Pt.getUserReferrer(t);
2320
2347
  }
2321
2348
  async function rs(t) {
2322
- return E(), Ot.getUserAudiences(t);
2349
+ return w(), Ot.getUserAudiences(t);
2323
2350
  }
2324
2351
  async function ns(t) {
2325
- return E(), j.listUserReferralCodes(t);
2352
+ return w(), k.listUserReferralCodes(t);
2326
2353
  }
2327
2354
  async function ss(t) {
2328
- return E(), j.generateReferralCodes(t);
2355
+ return w(), k.generateReferralCodes(t);
2329
2356
  }
2330
2357
  async function is(t) {
2331
- return E(), j.getReferralStatus(t);
2358
+ return w(), k.getReferralStatus(t);
2332
2359
  }
2333
2360
  async function os(t) {
2334
- return E(), j.getReferralCode(t);
2361
+ return w(), k.getReferralCode(t);
2335
2362
  }
2336
2363
  async function as(t) {
2337
- return E(), j.useReferralCode(t);
2364
+ return w(), k.useReferralCode(t);
2338
2365
  }
2339
2366
  async function cs(t) {
2340
- return E(), j.updateReferralCode(t);
2367
+ return w(), k.updateReferralCode(t);
2341
2368
  }
2342
2369
  async function us(t) {
2343
- return E(), Oe.getAffiliateStats(t);
2370
+ return w(), k.deleteReferral(t);
2344
2371
  }
2345
2372
  async function ls(t) {
2346
- return E(), Oe.getAffiliateNewTraders(t);
2373
+ return w(), Oe.getAffiliateStats(t);
2347
2374
  }
2348
2375
  async function fs(t) {
2349
- return E(), xe.getClaimableChecks(t);
2376
+ return w(), Oe.getAffiliateNewTraders(t);
2350
2377
  }
2351
2378
  async function ds(t) {
2352
- return E(), xe.getClaimCheckTotals(t);
2379
+ return w(), xe.getClaimableChecks(t);
2380
+ }
2381
+ async function hs(t) {
2382
+ return w(), xe.getClaimCheckTotals(t);
2353
2383
  }
2354
2384
  function Ne() {
2355
2385
  if (typeof window > "u" || typeof document > "u")
@@ -2359,11 +2389,11 @@ function Ue() {
2359
2389
  if (navigator.webdriver)
2360
2390
  throw new Error("Fuul SDK: Error");
2361
2391
  }
2362
- function hs() {
2392
+ function ps() {
2363
2393
  if (!Pe)
2364
2394
  throw new Error("Fuul SDK: Invalid API key");
2365
2395
  }
2366
- function ps(t, e) {
2396
+ function ms(t, e) {
2367
2397
  return new bn({
2368
2398
  baseURL: t,
2369
2399
  timeout: 3e4,
@@ -2371,7 +2401,7 @@ function ps(t, e) {
2371
2401
  queryParams: e
2372
2402
  });
2373
2403
  }
2374
- const Fs = {
2404
+ const ks = {
2375
2405
  init: Bn,
2376
2406
  sendEvent: qn,
2377
2407
  sendPageview: vn,
@@ -2399,17 +2429,18 @@ const Fs = {
2399
2429
  getReferralCode: os,
2400
2430
  useReferralCode: as,
2401
2431
  updateReferralCode: cs,
2402
- getAffiliateStats: us,
2403
- getAffiliateNewTraders: ls,
2404
- getClaimableChecks: fs,
2405
- getClaimCheckTotals: ds
2432
+ deleteReferral: us,
2433
+ getAffiliateStats: ls,
2434
+ getAffiliateNewTraders: fs,
2435
+ getClaimableChecks: ds,
2436
+ getClaimCheckTotals: hs
2406
2437
  };
2407
- var ms = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(ms || {});
2438
+ var ys = /* @__PURE__ */ ((t) => (t.EvmAddress = "evm_address", t.SolanaAddress = "solana_address", t.XRPLAddress = "xrpl_address", t.SuiAddress = "sui_address", t.Email = "email", t))(ys || {});
2408
2439
  export {
2409
2440
  We as AddressInUseError,
2410
2441
  Qe as CodeInUseError,
2411
- Fs as Fuul,
2442
+ ks as Fuul,
2412
2443
  Xe as InvalidSignatureError,
2413
- ms as UserIdentifierType,
2444
+ ys as UserIdentifierType,
2414
2445
  Je as ValidationError
2415
2446
  };