@fuul/sdk 7.2.1 → 7.3.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/core.d.ts +62 -35
- package/dist/core.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +835 -824
- package/dist/index.umd.js +6 -6
- package/dist/referral-codes/ReferralCodeService.d.ts +18 -0
- package/dist/referral-codes/ReferralCodeService.d.ts.map +1 -0
- package/dist/release.json.d.ts +1 -1
- package/dist/types/api.d.ts +19 -15
- package/dist/types/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/invite-codes/InviteCodeService.d.ts +0 -17
- package/dist/invite-codes/InviteCodeService.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var Tt = Object.defineProperty;
|
|
2
|
-
var At = (e, t,
|
|
3
|
-
var C = (e, t,
|
|
2
|
+
var At = (e, t, r) => t in e ? Tt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var C = (e, t, r) => At(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
function Ye(e, t) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(t, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
const { toString: Pt } = Object.prototype, { getPrototypeOf: _e } = Object, { iterator: oe, toStringTag: Ge } = Symbol, ie = /* @__PURE__ */ ((e) => (t) => {
|
|
10
|
-
const
|
|
11
|
-
return e[
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray:
|
|
10
|
+
const r = Pt.call(t);
|
|
11
|
+
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
12
|
+
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: $ } = Array, J = ae("undefined");
|
|
13
13
|
function W(e) {
|
|
14
14
|
return e !== null && !J(e) && e.constructor !== null && !J(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
@@ -31,159 +31,159 @@ const xt = ae("string"), P = ae("function"), et = ae("number"), Q = (e) => e !==
|
|
|
31
31
|
} catch {
|
|
32
32
|
return !1;
|
|
33
33
|
}
|
|
34
|
-
}, Lt = x("Date"),
|
|
34
|
+
}, Lt = x("Date"), Dt = x("File"), Ft = x("Blob"), kt = x("FileList"), Bt = (e) => Q(e) && P(e.pipe), qt = (e) => {
|
|
35
35
|
let t;
|
|
36
36
|
return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
|
|
37
37
|
t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
|
|
38
|
-
},
|
|
39
|
-
function X(e, t, { allOwnKeys:
|
|
38
|
+
}, It = x("URLSearchParams"), [vt, jt, $t, Mt] = ["ReadableStream", "Request", "Response", "Headers"].map(x), Ht = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
39
|
+
function X(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
40
40
|
if (e === null || typeof e > "u")
|
|
41
41
|
return;
|
|
42
|
-
let
|
|
43
|
-
if (typeof e != "object" && (e = [e]),
|
|
44
|
-
for (
|
|
45
|
-
t.call(null, e[
|
|
42
|
+
let n, s;
|
|
43
|
+
if (typeof e != "object" && (e = [e]), $(e))
|
|
44
|
+
for (n = 0, s = e.length; n < s; n++)
|
|
45
|
+
t.call(null, e[n], n, e);
|
|
46
46
|
else {
|
|
47
47
|
if (W(e))
|
|
48
48
|
return;
|
|
49
|
-
const o =
|
|
49
|
+
const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
50
50
|
let c;
|
|
51
|
-
for (
|
|
52
|
-
c = o[
|
|
51
|
+
for (n = 0; n < i; n++)
|
|
52
|
+
c = o[n], t.call(null, e[c], c, e);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function tt(e, t) {
|
|
56
56
|
if (W(e))
|
|
57
57
|
return null;
|
|
58
58
|
t = t.toLowerCase();
|
|
59
|
-
const
|
|
60
|
-
let
|
|
61
|
-
for (;
|
|
62
|
-
if (s = n
|
|
59
|
+
const r = Object.keys(e);
|
|
60
|
+
let n = r.length, s;
|
|
61
|
+
for (; n-- > 0; )
|
|
62
|
+
if (s = r[n], t === s.toLowerCase())
|
|
63
63
|
return s;
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const B = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, rt = (e) => !J(e) && e !== B;
|
|
67
67
|
function ye() {
|
|
68
|
-
const { caseless: e } =
|
|
68
|
+
const { caseless: e } = rt(this) && this || {}, t = {}, r = (n, s) => {
|
|
69
69
|
const o = e && tt(t, s) || s;
|
|
70
|
-
ee(t[o]) && ee(
|
|
70
|
+
ee(t[o]) && ee(n) ? t[o] = ye(t[o], n) : ee(n) ? t[o] = ye({}, n) : $(n) ? t[o] = n.slice() : t[o] = n;
|
|
71
71
|
};
|
|
72
|
-
for (let
|
|
73
|
-
arguments[
|
|
72
|
+
for (let n = 0, s = arguments.length; n < s; n++)
|
|
73
|
+
arguments[n] && X(arguments[n], r);
|
|
74
74
|
return t;
|
|
75
75
|
}
|
|
76
|
-
const Kt = (e, t,
|
|
77
|
-
|
|
78
|
-
}, { allOwnKeys:
|
|
79
|
-
e.prototype = Object.create(t.prototype,
|
|
76
|
+
const Kt = (e, t, r, { allOwnKeys: n } = {}) => (X(t, (s, o) => {
|
|
77
|
+
r && P(s) ? e[o] = Ye(s, r) : e[o] = s;
|
|
78
|
+
}, { allOwnKeys: n }), e), Vt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), zt = (e, t, r, n) => {
|
|
79
|
+
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
80
80
|
value: t.prototype
|
|
81
|
-
}),
|
|
82
|
-
}, Jt = (e, t,
|
|
81
|
+
}), r && Object.assign(e.prototype, r);
|
|
82
|
+
}, Jt = (e, t, r, n) => {
|
|
83
83
|
let s, o, i;
|
|
84
84
|
const c = {};
|
|
85
85
|
if (t = t || {}, e == null) return t;
|
|
86
86
|
do {
|
|
87
87
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
88
|
-
i = s[o], (!
|
|
89
|
-
e =
|
|
90
|
-
} while (e && (!
|
|
88
|
+
i = s[o], (!n || n(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
89
|
+
e = r !== !1 && _e(e);
|
|
90
|
+
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
91
91
|
return t;
|
|
92
|
-
}, Wt = (e, t,
|
|
93
|
-
e = String(e), (
|
|
94
|
-
const
|
|
95
|
-
return
|
|
92
|
+
}, Wt = (e, t, r) => {
|
|
93
|
+
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
94
|
+
const n = e.indexOf(t, r);
|
|
95
|
+
return n !== -1 && n === r;
|
|
96
96
|
}, Qt = (e) => {
|
|
97
97
|
if (!e) return null;
|
|
98
|
-
if (
|
|
98
|
+
if ($(e)) return e;
|
|
99
99
|
let t = e.length;
|
|
100
100
|
if (!et(t)) return null;
|
|
101
|
-
const
|
|
101
|
+
const r = new Array(t);
|
|
102
102
|
for (; t-- > 0; )
|
|
103
|
-
|
|
104
|
-
return
|
|
103
|
+
r[t] = e[t];
|
|
104
|
+
return r;
|
|
105
105
|
}, Xt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && _e(Uint8Array)), Yt = (e, t) => {
|
|
106
|
-
const
|
|
106
|
+
const n = (e && e[oe]).call(e);
|
|
107
107
|
let s;
|
|
108
|
-
for (; (s =
|
|
108
|
+
for (; (s = n.next()) && !s.done; ) {
|
|
109
109
|
const o = s.value;
|
|
110
110
|
t.call(e, o[0], o[1]);
|
|
111
111
|
}
|
|
112
112
|
}, Gt = (e, t) => {
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
for (; (
|
|
116
|
-
|
|
117
|
-
return
|
|
118
|
-
}, Zt = x("HTMLFormElement"),
|
|
113
|
+
let r;
|
|
114
|
+
const n = [];
|
|
115
|
+
for (; (r = e.exec(t)) !== null; )
|
|
116
|
+
n.push(r);
|
|
117
|
+
return n;
|
|
118
|
+
}, Zt = x("HTMLFormElement"), er = (e) => e.toLowerCase().replace(
|
|
119
119
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
120
|
-
function(
|
|
121
|
-
return
|
|
120
|
+
function(r, n, s) {
|
|
121
|
+
return n.toUpperCase() + s;
|
|
122
122
|
}
|
|
123
|
-
), Ue = (({ hasOwnProperty: e }) => (t,
|
|
124
|
-
const
|
|
125
|
-
X(
|
|
123
|
+
), Ue = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), tr = x("RegExp"), nt = (e, t) => {
|
|
124
|
+
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
125
|
+
X(r, (s, o) => {
|
|
126
126
|
let i;
|
|
127
|
-
(i = t(s, o, e)) !== !1 && (
|
|
128
|
-
}), Object.defineProperties(e,
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
if (P(e) && ["arguments", "caller", "callee"].indexOf(
|
|
127
|
+
(i = t(s, o, e)) !== !1 && (n[o] = i || s);
|
|
128
|
+
}), Object.defineProperties(e, n);
|
|
129
|
+
}, rr = (e) => {
|
|
130
|
+
nt(e, (t, r) => {
|
|
131
|
+
if (P(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
132
132
|
return !1;
|
|
133
|
-
const
|
|
134
|
-
if (P(
|
|
133
|
+
const n = e[r];
|
|
134
|
+
if (P(n)) {
|
|
135
135
|
if (t.enumerable = !1, "writable" in t) {
|
|
136
136
|
t.writable = !1;
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
139
|
t.set || (t.set = () => {
|
|
140
|
-
throw Error("Can not rewrite read-only method '" +
|
|
140
|
+
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
-
},
|
|
145
|
-
const
|
|
144
|
+
}, nr = (e, t) => {
|
|
145
|
+
const r = {}, n = (s) => {
|
|
146
146
|
s.forEach((o) => {
|
|
147
|
-
|
|
147
|
+
r[o] = !0;
|
|
148
148
|
});
|
|
149
149
|
};
|
|
150
|
-
return
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
function
|
|
150
|
+
return $(e) ? n(e) : n(String(e).split(t)), r;
|
|
151
|
+
}, sr = () => {
|
|
152
|
+
}, or = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
153
|
+
function ir(e) {
|
|
154
154
|
return !!(e && P(e.append) && e[Ge] === "FormData" && e[oe]);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
const t = new Array(10),
|
|
158
|
-
if (Q(
|
|
159
|
-
if (t.indexOf(
|
|
156
|
+
const ar = (e) => {
|
|
157
|
+
const t = new Array(10), r = (n, s) => {
|
|
158
|
+
if (Q(n)) {
|
|
159
|
+
if (t.indexOf(n) >= 0)
|
|
160
160
|
return;
|
|
161
|
-
if (W(
|
|
162
|
-
return
|
|
163
|
-
if (!("toJSON" in
|
|
164
|
-
t[s] =
|
|
165
|
-
const o =
|
|
166
|
-
return X(
|
|
167
|
-
const
|
|
168
|
-
!J(
|
|
161
|
+
if (W(n))
|
|
162
|
+
return n;
|
|
163
|
+
if (!("toJSON" in n)) {
|
|
164
|
+
t[s] = n;
|
|
165
|
+
const o = $(n) ? [] : {};
|
|
166
|
+
return X(n, (i, c) => {
|
|
167
|
+
const f = r(i, s + 1);
|
|
168
|
+
!J(f) && (o[c] = f);
|
|
169
169
|
}), t[s] = void 0, o;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
return
|
|
172
|
+
return n;
|
|
173
173
|
};
|
|
174
|
-
return
|
|
175
|
-
},
|
|
176
|
-
s ===
|
|
174
|
+
return r(e, 0);
|
|
175
|
+
}, cr = x("AsyncFunction"), ur = (e) => e && (Q(e) || P(e)) && P(e.then) && P(e.catch), st = ((e, t) => e ? setImmediate : t ? ((r, n) => (B.addEventListener("message", ({ source: s, data: o }) => {
|
|
176
|
+
s === B && o === r && n.length && n.shift()();
|
|
177
177
|
}, !1), (s) => {
|
|
178
|
-
|
|
179
|
-
}))(`axios@${Math.random()}`, []) : (
|
|
178
|
+
n.push(s), B.postMessage(r, "*");
|
|
179
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
180
180
|
typeof setImmediate == "function",
|
|
181
|
-
P(
|
|
182
|
-
),
|
|
183
|
-
isArray:
|
|
181
|
+
P(B.postMessage)
|
|
182
|
+
), lr = typeof queueMicrotask < "u" ? queueMicrotask.bind(B) : typeof process < "u" && process.nextTick || st, fr = (e) => e != null && P(e[oe]), a = {
|
|
183
|
+
isArray: $,
|
|
184
184
|
isArrayBuffer: Ze,
|
|
185
185
|
isBuffer: W,
|
|
186
|
-
isFormData:
|
|
186
|
+
isFormData: qt,
|
|
187
187
|
isArrayBufferView: Ot,
|
|
188
188
|
isString: xt,
|
|
189
189
|
isNumber: et,
|
|
@@ -191,18 +191,18 @@ const cn = (e) => {
|
|
|
191
191
|
isObject: Q,
|
|
192
192
|
isPlainObject: ee,
|
|
193
193
|
isEmptyObject: Ut,
|
|
194
|
-
isReadableStream:
|
|
194
|
+
isReadableStream: vt,
|
|
195
195
|
isRequest: jt,
|
|
196
|
-
isResponse:
|
|
197
|
-
isHeaders:
|
|
196
|
+
isResponse: $t,
|
|
197
|
+
isHeaders: Mt,
|
|
198
198
|
isUndefined: J,
|
|
199
199
|
isDate: Lt,
|
|
200
|
-
isFile:
|
|
201
|
-
isBlob:
|
|
202
|
-
isRegExp:
|
|
200
|
+
isFile: Dt,
|
|
201
|
+
isBlob: Ft,
|
|
202
|
+
isRegExp: tr,
|
|
203
203
|
isFunction: P,
|
|
204
|
-
isStream:
|
|
205
|
-
isURLSearchParams:
|
|
204
|
+
isStream: Bt,
|
|
205
|
+
isURLSearchParams: It,
|
|
206
206
|
isTypedArray: Xt,
|
|
207
207
|
isFileList: kt,
|
|
208
208
|
forEach: X,
|
|
@@ -222,25 +222,25 @@ const cn = (e) => {
|
|
|
222
222
|
hasOwnProperty: Ue,
|
|
223
223
|
hasOwnProp: Ue,
|
|
224
224
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
225
|
-
reduceDescriptors:
|
|
226
|
-
freezeMethods:
|
|
227
|
-
toObjectSet:
|
|
228
|
-
toCamelCase:
|
|
229
|
-
noop:
|
|
230
|
-
toFiniteNumber:
|
|
225
|
+
reduceDescriptors: nt,
|
|
226
|
+
freezeMethods: rr,
|
|
227
|
+
toObjectSet: nr,
|
|
228
|
+
toCamelCase: er,
|
|
229
|
+
noop: sr,
|
|
230
|
+
toFiniteNumber: or,
|
|
231
231
|
findKey: tt,
|
|
232
|
-
global:
|
|
233
|
-
isContextDefined:
|
|
234
|
-
isSpecCompliantForm:
|
|
235
|
-
toJSONObject:
|
|
236
|
-
isAsyncFn:
|
|
237
|
-
isThenable:
|
|
232
|
+
global: B,
|
|
233
|
+
isContextDefined: rt,
|
|
234
|
+
isSpecCompliantForm: ir,
|
|
235
|
+
toJSONObject: ar,
|
|
236
|
+
isAsyncFn: cr,
|
|
237
|
+
isThenable: ur,
|
|
238
238
|
setImmediate: st,
|
|
239
|
-
asap:
|
|
240
|
-
isIterable:
|
|
239
|
+
asap: lr,
|
|
240
|
+
isIterable: fr
|
|
241
241
|
};
|
|
242
|
-
function m(e, t,
|
|
243
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t),
|
|
242
|
+
function m(e, t, r, n, s) {
|
|
243
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
244
244
|
}
|
|
245
245
|
a.inherits(m, Error, {
|
|
246
246
|
toJSON: function() {
|
|
@@ -283,41 +283,41 @@ const ot = m.prototype, it = {};
|
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperties(m, it);
|
|
285
285
|
Object.defineProperty(ot, "isAxiosError", { value: !0 });
|
|
286
|
-
m.from = (e, t,
|
|
286
|
+
m.from = (e, t, r, n, s, o) => {
|
|
287
287
|
const i = Object.create(ot);
|
|
288
|
-
return a.toFlatObject(e, i, function(
|
|
289
|
-
return
|
|
290
|
-
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t,
|
|
288
|
+
return a.toFlatObject(e, i, function(f) {
|
|
289
|
+
return f !== Error.prototype;
|
|
290
|
+
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t, r, n, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
291
291
|
};
|
|
292
|
-
const
|
|
292
|
+
const dr = null;
|
|
293
293
|
function ge(e) {
|
|
294
294
|
return a.isPlainObject(e) || a.isArray(e);
|
|
295
295
|
}
|
|
296
296
|
function at(e) {
|
|
297
297
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
298
298
|
}
|
|
299
|
-
function Le(e, t,
|
|
299
|
+
function Le(e, t, r) {
|
|
300
300
|
return e ? e.concat(t).map(function(s, o) {
|
|
301
|
-
return s = at(s), !
|
|
302
|
-
}).join(
|
|
301
|
+
return s = at(s), !r && o ? "[" + s + "]" : s;
|
|
302
|
+
}).join(r ? "." : "") : t;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function hr(e) {
|
|
305
305
|
return a.isArray(e) && !e.some(ge);
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const pr = a.toFlatObject(a, {}, null, function(t) {
|
|
308
308
|
return /^is[A-Z]/.test(t);
|
|
309
309
|
});
|
|
310
|
-
function ce(e, t,
|
|
310
|
+
function ce(e, t, r) {
|
|
311
311
|
if (!a.isObject(e))
|
|
312
312
|
throw new TypeError("target must be an object");
|
|
313
|
-
t = t || new FormData(),
|
|
313
|
+
t = t || new FormData(), r = a.toFlatObject(r, {
|
|
314
314
|
metaTokens: !0,
|
|
315
315
|
dots: !1,
|
|
316
316
|
indexes: !1
|
|
317
317
|
}, !1, function(y, p) {
|
|
318
318
|
return !a.isUndefined(p[y]);
|
|
319
319
|
});
|
|
320
|
-
const
|
|
320
|
+
const n = r.metaTokens, s = r.visitor || l, o = r.dots, i = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
321
321
|
if (!a.isFunction(s))
|
|
322
322
|
throw new TypeError("visitor must be a function");
|
|
323
323
|
function u(h) {
|
|
@@ -326,16 +326,16 @@ function ce(e, t, n) {
|
|
|
326
326
|
return h.toISOString();
|
|
327
327
|
if (a.isBoolean(h))
|
|
328
328
|
return h.toString();
|
|
329
|
-
if (!
|
|
329
|
+
if (!f && a.isBlob(h))
|
|
330
330
|
throw new m("Blob is not supported. Use a Buffer instead.");
|
|
331
|
-
return a.isArrayBuffer(h) || a.isTypedArray(h) ?
|
|
331
|
+
return a.isArrayBuffer(h) || a.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
332
332
|
}
|
|
333
333
|
function l(h, y, p) {
|
|
334
334
|
let b = h;
|
|
335
335
|
if (h && !p && typeof h == "object") {
|
|
336
336
|
if (a.endsWith(y, "{}"))
|
|
337
|
-
y =
|
|
338
|
-
else if (a.isArray(h) &&
|
|
337
|
+
y = n ? y : y.slice(0, -2), h = JSON.stringify(h);
|
|
338
|
+
else if (a.isArray(h) && hr(h) || (a.isFileList(h) || a.endsWith(y, "[]")) && (b = a.toArray(h)))
|
|
339
339
|
return y = at(y), b.forEach(function(_, U) {
|
|
340
340
|
!(a.isUndefined(_) || _ === null) && t.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -346,16 +346,16 @@ function ce(e, t, n) {
|
|
|
346
346
|
}
|
|
347
347
|
return ge(h) ? !0 : (t.append(Le(p, y, o), u(h)), !1);
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const d = [], g = Object.assign(pr, {
|
|
350
350
|
defaultVisitor: l,
|
|
351
351
|
convertValue: u,
|
|
352
352
|
isVisitable: ge
|
|
353
353
|
});
|
|
354
354
|
function w(h, y) {
|
|
355
355
|
if (!a.isUndefined(h)) {
|
|
356
|
-
if (
|
|
356
|
+
if (d.indexOf(h) !== -1)
|
|
357
357
|
throw Error("Circular reference detected in " + y.join("."));
|
|
358
|
-
|
|
358
|
+
d.push(h), a.forEach(h, function(b, S) {
|
|
359
359
|
(!(a.isUndefined(b) || b === null) && s.call(
|
|
360
360
|
t,
|
|
361
361
|
b,
|
|
@@ -363,14 +363,14 @@ function ce(e, t, n) {
|
|
|
363
363
|
y,
|
|
364
364
|
g
|
|
365
365
|
)) === !0 && w(b, y ? y.concat(S) : [S]);
|
|
366
|
-
}),
|
|
366
|
+
}), d.pop();
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
if (!a.isObject(e))
|
|
370
370
|
throw new TypeError("data must be an object");
|
|
371
371
|
return w(e), t;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function De(e) {
|
|
374
374
|
const t = {
|
|
375
375
|
"!": "%21",
|
|
376
376
|
"'": "%27",
|
|
@@ -380,44 +380,44 @@ function Fe(e) {
|
|
|
380
380
|
"%20": "+",
|
|
381
381
|
"%00": "\0"
|
|
382
382
|
};
|
|
383
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(
|
|
384
|
-
return t[
|
|
383
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
384
|
+
return t[n];
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
function Re(e, t) {
|
|
388
388
|
this._pairs = [], e && ce(e, this, t);
|
|
389
389
|
}
|
|
390
390
|
const ct = Re.prototype;
|
|
391
|
-
ct.append = function(t,
|
|
392
|
-
this._pairs.push([t,
|
|
391
|
+
ct.append = function(t, r) {
|
|
392
|
+
this._pairs.push([t, r]);
|
|
393
393
|
};
|
|
394
394
|
ct.toString = function(t) {
|
|
395
|
-
const
|
|
396
|
-
return t.call(this,
|
|
397
|
-
} :
|
|
395
|
+
const r = t ? function(n) {
|
|
396
|
+
return t.call(this, n, De);
|
|
397
|
+
} : De;
|
|
398
398
|
return this._pairs.map(function(s) {
|
|
399
|
-
return
|
|
399
|
+
return r(s[0]) + "=" + r(s[1]);
|
|
400
400
|
}, "").join("&");
|
|
401
401
|
};
|
|
402
|
-
function
|
|
402
|
+
function mr(e) {
|
|
403
403
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
404
404
|
}
|
|
405
|
-
function ut(e, t,
|
|
405
|
+
function ut(e, t, r) {
|
|
406
406
|
if (!t)
|
|
407
407
|
return e;
|
|
408
|
-
const
|
|
409
|
-
a.isFunction(
|
|
410
|
-
serialize:
|
|
408
|
+
const n = r && r.encode || mr;
|
|
409
|
+
a.isFunction(r) && (r = {
|
|
410
|
+
serialize: r
|
|
411
411
|
});
|
|
412
|
-
const s =
|
|
412
|
+
const s = r && r.serialize;
|
|
413
413
|
let o;
|
|
414
|
-
if (s ? o = s(t,
|
|
414
|
+
if (s ? o = s(t, r) : o = a.isURLSearchParams(t) ? t.toString() : new Re(t, r).toString(n), o) {
|
|
415
415
|
const i = e.indexOf("#");
|
|
416
416
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
417
417
|
}
|
|
418
418
|
return e;
|
|
419
419
|
}
|
|
420
|
-
class
|
|
420
|
+
class Fe {
|
|
421
421
|
constructor() {
|
|
422
422
|
this.handlers = [];
|
|
423
423
|
}
|
|
@@ -429,12 +429,12 @@ class De {
|
|
|
429
429
|
*
|
|
430
430
|
* @return {Number} An ID used to remove interceptor later
|
|
431
431
|
*/
|
|
432
|
-
use(t,
|
|
432
|
+
use(t, r, n) {
|
|
433
433
|
return this.handlers.push({
|
|
434
434
|
fulfilled: t,
|
|
435
|
-
rejected:
|
|
436
|
-
synchronous:
|
|
437
|
-
runWhen:
|
|
435
|
+
rejected: r,
|
|
436
|
+
synchronous: n ? n.synchronous : !1,
|
|
437
|
+
runWhen: n ? n.runWhen : null
|
|
438
438
|
}), this.handlers.length - 1;
|
|
439
439
|
}
|
|
440
440
|
/**
|
|
@@ -466,8 +466,8 @@ class De {
|
|
|
466
466
|
* @returns {void}
|
|
467
467
|
*/
|
|
468
468
|
forEach(t) {
|
|
469
|
-
a.forEach(this.handlers, function(
|
|
470
|
-
|
|
469
|
+
a.forEach(this.handlers, function(n) {
|
|
470
|
+
n !== null && t(n);
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
}
|
|
@@ -475,105 +475,105 @@ const lt = {
|
|
|
475
475
|
silentJSONParsing: !0,
|
|
476
476
|
forcedJSONParsing: !0,
|
|
477
477
|
clarifyTimeoutError: !1
|
|
478
|
-
},
|
|
478
|
+
}, yr = typeof URLSearchParams < "u" ? URLSearchParams : Re, gr = typeof FormData < "u" ? FormData : null, wr = typeof Blob < "u" ? Blob : null, br = {
|
|
479
479
|
isBrowser: !0,
|
|
480
480
|
classes: {
|
|
481
|
-
URLSearchParams:
|
|
482
|
-
FormData:
|
|
483
|
-
Blob:
|
|
481
|
+
URLSearchParams: yr,
|
|
482
|
+
FormData: gr,
|
|
483
|
+
Blob: wr
|
|
484
484
|
},
|
|
485
485
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
486
|
-
}, Te = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0,
|
|
487
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
486
|
+
}, Te = typeof window < "u" && typeof document < "u", we = typeof navigator == "object" && navigator || void 0, Er = Te && (!we || ["ReactNative", "NativeScript", "NS"].indexOf(we.product) < 0), Sr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
487
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cr = Te && window.location.href || "http://localhost", _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
488
488
|
__proto__: null,
|
|
489
489
|
hasBrowserEnv: Te,
|
|
490
|
-
hasStandardBrowserEnv:
|
|
491
|
-
hasStandardBrowserWebWorkerEnv:
|
|
490
|
+
hasStandardBrowserEnv: Er,
|
|
491
|
+
hasStandardBrowserWebWorkerEnv: Sr,
|
|
492
492
|
navigator: we,
|
|
493
|
-
origin:
|
|
494
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
495
|
-
...
|
|
496
|
-
...
|
|
493
|
+
origin: Cr
|
|
494
|
+
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
495
|
+
..._r,
|
|
496
|
+
...br
|
|
497
497
|
};
|
|
498
|
-
function
|
|
499
|
-
return ce(e, new
|
|
500
|
-
visitor: function(
|
|
501
|
-
return
|
|
498
|
+
function Rr(e, t) {
|
|
499
|
+
return ce(e, new T.classes.URLSearchParams(), {
|
|
500
|
+
visitor: function(r, n, s, o) {
|
|
501
|
+
return T.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
502
502
|
},
|
|
503
503
|
...t
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Tr(e) {
|
|
507
507
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
const t = {},
|
|
511
|
-
let
|
|
512
|
-
const s =
|
|
509
|
+
function Ar(e) {
|
|
510
|
+
const t = {}, r = Object.keys(e);
|
|
511
|
+
let n;
|
|
512
|
+
const s = r.length;
|
|
513
513
|
let o;
|
|
514
|
-
for (
|
|
515
|
-
o = n
|
|
514
|
+
for (n = 0; n < s; n++)
|
|
515
|
+
o = r[n], t[o] = e[o];
|
|
516
516
|
return t;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
function t(
|
|
520
|
-
let i =
|
|
518
|
+
function ft(e) {
|
|
519
|
+
function t(r, n, s, o) {
|
|
520
|
+
let i = r[o++];
|
|
521
521
|
if (i === "__proto__") return !0;
|
|
522
|
-
const c = Number.isFinite(+i),
|
|
523
|
-
return i = !i && a.isArray(s) ? s.length : i,
|
|
522
|
+
const c = Number.isFinite(+i), f = o >= r.length;
|
|
523
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], n] : s[i] = n, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(r, n, s[i], o) && a.isArray(s[i]) && (s[i] = Ar(s[i])), !c);
|
|
524
524
|
}
|
|
525
525
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
526
|
-
const
|
|
527
|
-
return a.forEachEntry(e, (
|
|
528
|
-
t(
|
|
529
|
-
}),
|
|
526
|
+
const r = {};
|
|
527
|
+
return a.forEachEntry(e, (n, s) => {
|
|
528
|
+
t(Tr(n), s, r, 0);
|
|
529
|
+
}), r;
|
|
530
530
|
}
|
|
531
531
|
return null;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Pr(e, t, r) {
|
|
534
534
|
if (a.isString(e))
|
|
535
535
|
try {
|
|
536
536
|
return (t || JSON.parse)(e), a.trim(e);
|
|
537
|
-
} catch (
|
|
538
|
-
if (
|
|
539
|
-
throw
|
|
537
|
+
} catch (n) {
|
|
538
|
+
if (n.name !== "SyntaxError")
|
|
539
|
+
throw n;
|
|
540
540
|
}
|
|
541
541
|
return (0, JSON.stringify)(e);
|
|
542
542
|
}
|
|
543
543
|
const Y = {
|
|
544
544
|
transitional: lt,
|
|
545
545
|
adapter: ["xhr", "http", "fetch"],
|
|
546
|
-
transformRequest: [function(t,
|
|
547
|
-
const
|
|
546
|
+
transformRequest: [function(t, r) {
|
|
547
|
+
const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = a.isObject(t);
|
|
548
548
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
549
|
-
return s ? JSON.stringify(
|
|
549
|
+
return s ? JSON.stringify(ft(t)) : t;
|
|
550
550
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
551
551
|
return t;
|
|
552
552
|
if (a.isArrayBufferView(t))
|
|
553
553
|
return t.buffer;
|
|
554
554
|
if (a.isURLSearchParams(t))
|
|
555
|
-
return
|
|
555
|
+
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
556
556
|
let c;
|
|
557
557
|
if (o) {
|
|
558
|
-
if (
|
|
559
|
-
return
|
|
560
|
-
if ((c = a.isFileList(t)) ||
|
|
561
|
-
const
|
|
558
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
559
|
+
return Rr(t, this.formSerializer).toString();
|
|
560
|
+
if ((c = a.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
561
|
+
const f = this.env && this.env.FormData;
|
|
562
562
|
return ce(
|
|
563
563
|
c ? { "files[]": t } : t,
|
|
564
|
-
|
|
564
|
+
f && new f(),
|
|
565
565
|
this.formSerializer
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
return o || s ? (
|
|
569
|
+
return o || s ? (r.setContentType("application/json", !1), Pr(t)) : t;
|
|
570
570
|
}],
|
|
571
571
|
transformResponse: [function(t) {
|
|
572
|
-
const
|
|
572
|
+
const r = this.transitional || Y.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
|
|
573
573
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
574
574
|
return t;
|
|
575
|
-
if (t && a.isString(t) && (
|
|
576
|
-
const i = !(
|
|
575
|
+
if (t && a.isString(t) && (n && !this.responseType || s)) {
|
|
576
|
+
const i = !(r && r.silentJSONParsing) && s;
|
|
577
577
|
try {
|
|
578
578
|
return JSON.parse(t);
|
|
579
579
|
} catch (c) {
|
|
@@ -593,8 +593,8 @@ const Y = {
|
|
|
593
593
|
maxContentLength: -1,
|
|
594
594
|
maxBodyLength: -1,
|
|
595
595
|
env: {
|
|
596
|
-
FormData:
|
|
597
|
-
Blob:
|
|
596
|
+
FormData: T.classes.FormData,
|
|
597
|
+
Blob: T.classes.Blob
|
|
598
598
|
},
|
|
599
599
|
validateStatus: function(t) {
|
|
600
600
|
return t >= 200 && t < 300;
|
|
@@ -609,7 +609,7 @@ const Y = {
|
|
|
609
609
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
610
610
|
Y.headers[e] = {};
|
|
611
611
|
});
|
|
612
|
-
const
|
|
612
|
+
const Or = a.toObjectSet([
|
|
613
613
|
"age",
|
|
614
614
|
"authorization",
|
|
615
615
|
"content-length",
|
|
@@ -627,12 +627,12 @@ const xn = a.toObjectSet([
|
|
|
627
627
|
"referer",
|
|
628
628
|
"retry-after",
|
|
629
629
|
"user-agent"
|
|
630
|
-
]),
|
|
630
|
+
]), xr = (e) => {
|
|
631
631
|
const t = {};
|
|
632
|
-
let
|
|
632
|
+
let r, n, s;
|
|
633
633
|
return e && e.split(`
|
|
634
634
|
`).forEach(function(i) {
|
|
635
|
-
s = i.indexOf(":"),
|
|
635
|
+
s = i.indexOf(":"), r = i.substring(0, s).trim().toLowerCase(), n = i.substring(s + 1).trim(), !(!r || t[r] && Or[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
636
636
|
}), t;
|
|
637
637
|
}, ke = Symbol("internals");
|
|
638
638
|
function V(e) {
|
|
@@ -641,33 +641,33 @@ function V(e) {
|
|
|
641
641
|
function te(e) {
|
|
642
642
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(te) : String(e);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
const t = /* @__PURE__ */ Object.create(null),
|
|
646
|
-
let
|
|
647
|
-
for (;
|
|
648
|
-
t[
|
|
644
|
+
function Nr(e) {
|
|
645
|
+
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
646
|
+
let n;
|
|
647
|
+
for (; n = r.exec(e); )
|
|
648
|
+
t[n[1]] = n[2];
|
|
649
649
|
return t;
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
function he(e, t,
|
|
653
|
-
if (a.isFunction(
|
|
654
|
-
return
|
|
655
|
-
if (s && (t =
|
|
656
|
-
if (a.isString(
|
|
657
|
-
return t.indexOf(
|
|
658
|
-
if (a.isRegExp(
|
|
659
|
-
return
|
|
651
|
+
const Ur = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
652
|
+
function he(e, t, r, n, s) {
|
|
653
|
+
if (a.isFunction(n))
|
|
654
|
+
return n.call(this, t, r);
|
|
655
|
+
if (s && (t = r), !!a.isString(t)) {
|
|
656
|
+
if (a.isString(n))
|
|
657
|
+
return t.indexOf(n) !== -1;
|
|
658
|
+
if (a.isRegExp(n))
|
|
659
|
+
return n.test(t);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t,
|
|
662
|
+
function Lr(e) {
|
|
663
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
const
|
|
667
|
-
["get", "set", "has"].forEach((
|
|
668
|
-
Object.defineProperty(e,
|
|
665
|
+
function Dr(e, t) {
|
|
666
|
+
const r = a.toCamelCase(" " + t);
|
|
667
|
+
["get", "set", "has"].forEach((n) => {
|
|
668
|
+
Object.defineProperty(e, n + r, {
|
|
669
669
|
value: function(s, o, i) {
|
|
670
|
-
return this[
|
|
670
|
+
return this[n].call(this, t, s, o, i);
|
|
671
671
|
},
|
|
672
672
|
configurable: !0
|
|
673
673
|
});
|
|
@@ -677,102 +677,102 @@ let O = class {
|
|
|
677
677
|
constructor(t) {
|
|
678
678
|
t && this.set(t);
|
|
679
679
|
}
|
|
680
|
-
set(t,
|
|
680
|
+
set(t, r, n) {
|
|
681
681
|
const s = this;
|
|
682
|
-
function o(c,
|
|
683
|
-
const l = V(
|
|
682
|
+
function o(c, f, u) {
|
|
683
|
+
const l = V(f);
|
|
684
684
|
if (!l)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
|
-
const
|
|
687
|
-
(!
|
|
686
|
+
const d = a.findKey(s, l);
|
|
687
|
+
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = te(c));
|
|
688
688
|
}
|
|
689
|
-
const i = (c,
|
|
689
|
+
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
690
690
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
691
|
-
i(t,
|
|
692
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
693
|
-
i(
|
|
691
|
+
i(t, r);
|
|
692
|
+
else if (a.isString(t) && (t = t.trim()) && !Ur(t))
|
|
693
|
+
i(xr(t), r);
|
|
694
694
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
695
|
-
let c = {},
|
|
695
|
+
let c = {}, f, u;
|
|
696
696
|
for (const l of t) {
|
|
697
697
|
if (!a.isArray(l))
|
|
698
698
|
throw TypeError("Object iterator must return a key-value pair");
|
|
699
|
-
c[u = l[0]] = (
|
|
699
|
+
c[u = l[0]] = (f = c[u]) ? a.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
|
|
700
700
|
}
|
|
701
|
-
i(c,
|
|
701
|
+
i(c, r);
|
|
702
702
|
} else
|
|
703
|
-
t != null && o(
|
|
703
|
+
t != null && o(r, t, n);
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
|
-
get(t,
|
|
706
|
+
get(t, r) {
|
|
707
707
|
if (t = V(t), t) {
|
|
708
|
-
const
|
|
709
|
-
if (
|
|
710
|
-
const s = this[
|
|
711
|
-
if (!
|
|
708
|
+
const n = a.findKey(this, t);
|
|
709
|
+
if (n) {
|
|
710
|
+
const s = this[n];
|
|
711
|
+
if (!r)
|
|
712
712
|
return s;
|
|
713
|
-
if (
|
|
714
|
-
return
|
|
715
|
-
if (a.isFunction(
|
|
716
|
-
return
|
|
717
|
-
if (a.isRegExp(
|
|
718
|
-
return
|
|
713
|
+
if (r === !0)
|
|
714
|
+
return Nr(s);
|
|
715
|
+
if (a.isFunction(r))
|
|
716
|
+
return r.call(this, s, n);
|
|
717
|
+
if (a.isRegExp(r))
|
|
718
|
+
return r.exec(s);
|
|
719
719
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
has(t,
|
|
723
|
+
has(t, r) {
|
|
724
724
|
if (t = V(t), t) {
|
|
725
|
-
const
|
|
726
|
-
return !!(
|
|
725
|
+
const n = a.findKey(this, t);
|
|
726
|
+
return !!(n && this[n] !== void 0 && (!r || he(this, this[n], n, r)));
|
|
727
727
|
}
|
|
728
728
|
return !1;
|
|
729
729
|
}
|
|
730
|
-
delete(t,
|
|
731
|
-
const
|
|
730
|
+
delete(t, r) {
|
|
731
|
+
const n = this;
|
|
732
732
|
let s = !1;
|
|
733
733
|
function o(i) {
|
|
734
734
|
if (i = V(i), i) {
|
|
735
|
-
const c = a.findKey(
|
|
736
|
-
c && (!
|
|
735
|
+
const c = a.findKey(n, i);
|
|
736
|
+
c && (!r || he(n, n[c], c, r)) && (delete n[c], s = !0);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
return a.isArray(t) ? t.forEach(o) : o(t), s;
|
|
740
740
|
}
|
|
741
741
|
clear(t) {
|
|
742
|
-
const
|
|
743
|
-
let
|
|
744
|
-
for (;
|
|
745
|
-
const o = n
|
|
742
|
+
const r = Object.keys(this);
|
|
743
|
+
let n = r.length, s = !1;
|
|
744
|
+
for (; n--; ) {
|
|
745
|
+
const o = r[n];
|
|
746
746
|
(!t || he(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
747
747
|
}
|
|
748
748
|
return s;
|
|
749
749
|
}
|
|
750
750
|
normalize(t) {
|
|
751
|
-
const
|
|
751
|
+
const r = this, n = {};
|
|
752
752
|
return a.forEach(this, (s, o) => {
|
|
753
|
-
const i = a.findKey(
|
|
753
|
+
const i = a.findKey(n, o);
|
|
754
754
|
if (i) {
|
|
755
|
-
|
|
755
|
+
r[i] = te(s), delete r[o];
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
const c = t ?
|
|
759
|
-
c !== o && delete
|
|
758
|
+
const c = t ? Lr(o) : String(o).trim();
|
|
759
|
+
c !== o && delete r[o], r[c] = te(s), n[c] = !0;
|
|
760
760
|
}), this;
|
|
761
761
|
}
|
|
762
762
|
concat(...t) {
|
|
763
763
|
return this.constructor.concat(this, ...t);
|
|
764
764
|
}
|
|
765
765
|
toJSON(t) {
|
|
766
|
-
const
|
|
767
|
-
return a.forEach(this, (
|
|
768
|
-
|
|
769
|
-
}),
|
|
766
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
767
|
+
return a.forEach(this, (n, s) => {
|
|
768
|
+
n != null && n !== !1 && (r[s] = t && a.isArray(n) ? n.join(", ") : n);
|
|
769
|
+
}), r;
|
|
770
770
|
}
|
|
771
771
|
[Symbol.iterator]() {
|
|
772
772
|
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
773
773
|
}
|
|
774
774
|
toString() {
|
|
775
|
-
return Object.entries(this.toJSON()).map(([t,
|
|
775
|
+
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
|
|
776
776
|
`);
|
|
777
777
|
}
|
|
778
778
|
getSetCookie() {
|
|
@@ -784,125 +784,125 @@ let O = class {
|
|
|
784
784
|
static from(t) {
|
|
785
785
|
return t instanceof this ? t : new this(t);
|
|
786
786
|
}
|
|
787
|
-
static concat(t, ...
|
|
788
|
-
const
|
|
789
|
-
return
|
|
787
|
+
static concat(t, ...r) {
|
|
788
|
+
const n = new this(t);
|
|
789
|
+
return r.forEach((s) => n.set(s)), n;
|
|
790
790
|
}
|
|
791
791
|
static accessor(t) {
|
|
792
|
-
const
|
|
792
|
+
const n = (this[ke] = this[ke] = {
|
|
793
793
|
accessors: {}
|
|
794
794
|
}).accessors, s = this.prototype;
|
|
795
795
|
function o(i) {
|
|
796
796
|
const c = V(i);
|
|
797
|
-
|
|
797
|
+
n[c] || (Dr(s, i), n[c] = !0);
|
|
798
798
|
}
|
|
799
799
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
803
803
|
a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
|
|
804
|
-
let
|
|
804
|
+
let r = t[0].toUpperCase() + t.slice(1);
|
|
805
805
|
return {
|
|
806
806
|
get: () => e,
|
|
807
|
-
set(
|
|
808
|
-
this[
|
|
807
|
+
set(n) {
|
|
808
|
+
this[r] = n;
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
811
|
});
|
|
812
812
|
a.freezeMethods(O);
|
|
813
813
|
function pe(e, t) {
|
|
814
|
-
const
|
|
815
|
-
let o =
|
|
814
|
+
const r = this || Y, n = t || r, s = O.from(n.headers);
|
|
815
|
+
let o = n.data;
|
|
816
816
|
return a.forEach(e, function(c) {
|
|
817
|
-
o = c.call(
|
|
817
|
+
o = c.call(r, o, s.normalize(), t ? t.status : void 0);
|
|
818
818
|
}), s.normalize(), o;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function dt(e) {
|
|
821
821
|
return !!(e && e.__CANCEL__);
|
|
822
822
|
}
|
|
823
|
-
function M(e, t,
|
|
824
|
-
m.call(this, e ?? "canceled", m.ERR_CANCELED, t,
|
|
823
|
+
function M(e, t, r) {
|
|
824
|
+
m.call(this, e ?? "canceled", m.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
825
825
|
}
|
|
826
826
|
a.inherits(M, m, {
|
|
827
827
|
__CANCEL__: !0
|
|
828
828
|
});
|
|
829
|
-
function ht(e, t,
|
|
830
|
-
const
|
|
831
|
-
!
|
|
832
|
-
"Request failed with status code " +
|
|
833
|
-
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
829
|
+
function ht(e, t, r) {
|
|
830
|
+
const n = r.config.validateStatus;
|
|
831
|
+
!r.status || !n || n(r.status) ? e(r) : t(new m(
|
|
832
|
+
"Request failed with status code " + r.status,
|
|
833
|
+
[m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
834
|
+
r.config,
|
|
835
|
+
r.request,
|
|
836
|
+
r
|
|
837
837
|
));
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function Fr(e) {
|
|
840
840
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
841
841
|
return t && t[1] || "";
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function kr(e, t) {
|
|
844
844
|
e = e || 10;
|
|
845
|
-
const
|
|
845
|
+
const r = new Array(e), n = new Array(e);
|
|
846
846
|
let s = 0, o = 0, i;
|
|
847
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
848
|
-
const u = Date.now(), l =
|
|
849
|
-
i || (i = u),
|
|
850
|
-
let
|
|
851
|
-
for (;
|
|
852
|
-
g +=
|
|
847
|
+
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
848
|
+
const u = Date.now(), l = n[o];
|
|
849
|
+
i || (i = u), r[s] = f, n[s] = u;
|
|
850
|
+
let d = o, g = 0;
|
|
851
|
+
for (; d !== s; )
|
|
852
|
+
g += r[d++], d = d % e;
|
|
853
853
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
854
854
|
return;
|
|
855
855
|
const w = l && u - l;
|
|
856
856
|
return w ? Math.round(g * 1e3 / w) : void 0;
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
let
|
|
859
|
+
function Br(e, t) {
|
|
860
|
+
let r = 0, n = 1e3 / t, s, o;
|
|
861
861
|
const i = (u, l = Date.now()) => {
|
|
862
|
-
|
|
862
|
+
r = l, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
863
863
|
};
|
|
864
864
|
return [(...u) => {
|
|
865
|
-
const l = Date.now(),
|
|
866
|
-
|
|
865
|
+
const l = Date.now(), d = l - r;
|
|
866
|
+
d >= n ? i(u, l) : (s = u, o || (o = setTimeout(() => {
|
|
867
867
|
o = null, i(s);
|
|
868
|
-
},
|
|
868
|
+
}, n - d)));
|
|
869
869
|
}, () => s && i(s)];
|
|
870
870
|
}
|
|
871
|
-
const
|
|
872
|
-
let
|
|
873
|
-
const s =
|
|
874
|
-
return
|
|
875
|
-
const i = o.loaded, c = o.lengthComputable ? o.total : void 0,
|
|
876
|
-
|
|
877
|
-
const
|
|
871
|
+
const ne = (e, t, r = 3) => {
|
|
872
|
+
let n = 0;
|
|
873
|
+
const s = kr(50, 250);
|
|
874
|
+
return Br((o) => {
|
|
875
|
+
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - n, u = s(f), l = i <= c;
|
|
876
|
+
n = i;
|
|
877
|
+
const d = {
|
|
878
878
|
loaded: i,
|
|
879
879
|
total: c,
|
|
880
880
|
progress: c ? i / c : void 0,
|
|
881
|
-
bytes:
|
|
881
|
+
bytes: f,
|
|
882
882
|
rate: u || void 0,
|
|
883
883
|
estimated: u && c && l ? (c - i) / u : void 0,
|
|
884
884
|
event: o,
|
|
885
885
|
lengthComputable: c != null,
|
|
886
886
|
[t ? "download" : "upload"]: !0
|
|
887
887
|
};
|
|
888
|
-
e(
|
|
889
|
-
},
|
|
890
|
-
},
|
|
891
|
-
const
|
|
892
|
-
return [(
|
|
893
|
-
lengthComputable:
|
|
888
|
+
e(d);
|
|
889
|
+
}, r);
|
|
890
|
+
}, Be = (e, t) => {
|
|
891
|
+
const r = e != null;
|
|
892
|
+
return [(n) => t[0]({
|
|
893
|
+
lengthComputable: r,
|
|
894
894
|
total: e,
|
|
895
|
-
loaded:
|
|
895
|
+
loaded: n
|
|
896
896
|
}), t[1]];
|
|
897
|
-
},
|
|
898
|
-
new URL(
|
|
899
|
-
|
|
900
|
-
) : () => !0,
|
|
897
|
+
}, qe = (e) => (...t) => a.asap(() => e(...t)), qr = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, T.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
898
|
+
new URL(T.origin),
|
|
899
|
+
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
900
|
+
) : () => !0, Ir = T.hasStandardBrowserEnv ? (
|
|
901
901
|
// Standard browser envs support document.cookie
|
|
902
902
|
{
|
|
903
|
-
write(e, t,
|
|
903
|
+
write(e, t, r, n, s, o) {
|
|
904
904
|
const i = [e + "=" + encodeURIComponent(t)];
|
|
905
|
-
a.isNumber(
|
|
905
|
+
a.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), a.isString(n) && i.push("path=" + n), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
906
906
|
},
|
|
907
907
|
read(e) {
|
|
908
908
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -924,46 +924,46 @@ const re = (e, t, n = 3) => {
|
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
|
-
function
|
|
927
|
+
function vr(e) {
|
|
928
928
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function jr(e, t) {
|
|
931
931
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
932
932
|
}
|
|
933
|
-
function pt(e, t,
|
|
934
|
-
let
|
|
935
|
-
return e && (
|
|
933
|
+
function pt(e, t, r) {
|
|
934
|
+
let n = !vr(t);
|
|
935
|
+
return e && (n || r == !1) ? jr(e, t) : t;
|
|
936
936
|
}
|
|
937
|
-
const
|
|
938
|
-
function
|
|
937
|
+
const Ie = (e) => e instanceof O ? { ...e } : e;
|
|
938
|
+
function I(e, t) {
|
|
939
939
|
t = t || {};
|
|
940
|
-
const
|
|
941
|
-
function
|
|
940
|
+
const r = {};
|
|
941
|
+
function n(u, l, d, g) {
|
|
942
942
|
return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: g }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
|
|
943
943
|
}
|
|
944
|
-
function s(u, l,
|
|
944
|
+
function s(u, l, d, g) {
|
|
945
945
|
if (a.isUndefined(l)) {
|
|
946
946
|
if (!a.isUndefined(u))
|
|
947
|
-
return
|
|
948
|
-
} else return
|
|
947
|
+
return n(void 0, u, d, g);
|
|
948
|
+
} else return n(u, l, d, g);
|
|
949
949
|
}
|
|
950
950
|
function o(u, l) {
|
|
951
951
|
if (!a.isUndefined(l))
|
|
952
|
-
return
|
|
952
|
+
return n(void 0, l);
|
|
953
953
|
}
|
|
954
954
|
function i(u, l) {
|
|
955
955
|
if (a.isUndefined(l)) {
|
|
956
956
|
if (!a.isUndefined(u))
|
|
957
|
-
return
|
|
958
|
-
} else return
|
|
957
|
+
return n(void 0, u);
|
|
958
|
+
} else return n(void 0, l);
|
|
959
959
|
}
|
|
960
|
-
function c(u, l,
|
|
961
|
-
if (
|
|
962
|
-
return
|
|
963
|
-
if (
|
|
964
|
-
return
|
|
960
|
+
function c(u, l, d) {
|
|
961
|
+
if (d in t)
|
|
962
|
+
return n(u, l);
|
|
963
|
+
if (d in e)
|
|
964
|
+
return n(void 0, u);
|
|
965
965
|
}
|
|
966
|
-
const
|
|
966
|
+
const f = {
|
|
967
967
|
url: o,
|
|
968
968
|
method: o,
|
|
969
969
|
data: o,
|
|
@@ -992,40 +992,40 @@ function B(e, t) {
|
|
|
992
992
|
socketPath: i,
|
|
993
993
|
responseEncoding: i,
|
|
994
994
|
validateStatus: c,
|
|
995
|
-
headers: (u, l,
|
|
995
|
+
headers: (u, l, d) => s(Ie(u), Ie(l), d, !0)
|
|
996
996
|
};
|
|
997
997
|
return a.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
998
|
-
const
|
|
999
|
-
a.isUndefined(g) &&
|
|
1000
|
-
}),
|
|
998
|
+
const d = f[l] || s, g = d(e[l], t[l], l);
|
|
999
|
+
a.isUndefined(g) && d !== c || (r[l] = g);
|
|
1000
|
+
}), r;
|
|
1001
1001
|
}
|
|
1002
1002
|
const mt = (e) => {
|
|
1003
|
-
const t =
|
|
1004
|
-
let { data:
|
|
1003
|
+
const t = I({}, e);
|
|
1004
|
+
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
1005
1005
|
t.headers = i = O.from(i), t.url = ut(pt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
1006
1006
|
"Authorization",
|
|
1007
1007
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1008
1008
|
);
|
|
1009
|
-
let
|
|
1010
|
-
if (a.isFormData(
|
|
1011
|
-
if (
|
|
1009
|
+
let f;
|
|
1010
|
+
if (a.isFormData(r)) {
|
|
1011
|
+
if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
|
|
1012
1012
|
i.setContentType(void 0);
|
|
1013
|
-
else if ((
|
|
1014
|
-
const [u, ...l] =
|
|
1013
|
+
else if ((f = i.getContentType()) !== !1) {
|
|
1014
|
+
const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1015
1015
|
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
if (
|
|
1019
|
-
const u = s && o &&
|
|
1018
|
+
if (T.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(t)), n || n !== !1 && qr(t.url))) {
|
|
1019
|
+
const u = s && o && Ir.read(o);
|
|
1020
1020
|
u && i.set(s, u);
|
|
1021
1021
|
}
|
|
1022
1022
|
return t;
|
|
1023
|
-
}, $
|
|
1024
|
-
return new Promise(function(
|
|
1023
|
+
}, $r = typeof XMLHttpRequest < "u", Mr = $r && function(e) {
|
|
1024
|
+
return new Promise(function(r, n) {
|
|
1025
1025
|
const s = mt(e);
|
|
1026
1026
|
let o = s.data;
|
|
1027
1027
|
const i = O.from(s.headers).normalize();
|
|
1028
|
-
let { responseType: c, onUploadProgress:
|
|
1028
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, g, w, h;
|
|
1029
1029
|
function y() {
|
|
1030
1030
|
w && w(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
|
|
1031
1031
|
}
|
|
@@ -1045,21 +1045,21 @@ const mt = (e) => {
|
|
|
1045
1045
|
request: p
|
|
1046
1046
|
};
|
|
1047
1047
|
ht(function(k) {
|
|
1048
|
-
n(k), y();
|
|
1049
|
-
}, function(k) {
|
|
1050
1048
|
r(k), y();
|
|
1049
|
+
}, function(k) {
|
|
1050
|
+
n(k), y();
|
|
1051
1051
|
}, A), p = null;
|
|
1052
1052
|
}
|
|
1053
1053
|
"onloadend" in p ? p.onloadend = b : p.onreadystatechange = function() {
|
|
1054
1054
|
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
1055
1055
|
}, p.onabort = function() {
|
|
1056
|
-
p && (
|
|
1056
|
+
p && (n(new m("Request aborted", m.ECONNABORTED, e, p)), p = null);
|
|
1057
1057
|
}, p.onerror = function() {
|
|
1058
|
-
|
|
1058
|
+
n(new m("Network Error", m.ERR_NETWORK, e, p)), p = null;
|
|
1059
1059
|
}, p.ontimeout = function() {
|
|
1060
1060
|
let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1061
1061
|
const A = s.transitional || lt;
|
|
1062
|
-
s.timeoutErrorMessage && (U = s.timeoutErrorMessage),
|
|
1062
|
+
s.timeoutErrorMessage && (U = s.timeoutErrorMessage), n(new m(
|
|
1063
1063
|
U,
|
|
1064
1064
|
A.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
1065
1065
|
e,
|
|
@@ -1067,25 +1067,25 @@ const mt = (e) => {
|
|
|
1067
1067
|
)), p = null;
|
|
1068
1068
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(U, A) {
|
|
1069
1069
|
p.setRequestHeader(A, U);
|
|
1070
|
-
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([g, h] =
|
|
1071
|
-
p && (
|
|
1070
|
+
}), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([g, h] = ne(u, !0), p.addEventListener("progress", g)), f && p.upload && ([d, w] = ne(f), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (l = (_) => {
|
|
1071
|
+
p && (n(!_ || _.type ? new M(null, e, p) : _), p.abort(), p = null);
|
|
1072
1072
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1073
|
-
const S =
|
|
1074
|
-
if (S &&
|
|
1075
|
-
|
|
1073
|
+
const S = Fr(s.url);
|
|
1074
|
+
if (S && T.protocols.indexOf(S) === -1) {
|
|
1075
|
+
n(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, e));
|
|
1076
1076
|
return;
|
|
1077
1077
|
}
|
|
1078
1078
|
p.send(o || null);
|
|
1079
1079
|
});
|
|
1080
|
-
},
|
|
1081
|
-
const { length:
|
|
1082
|
-
if (t ||
|
|
1083
|
-
let
|
|
1080
|
+
}, Hr = (e, t) => {
|
|
1081
|
+
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1082
|
+
if (t || r) {
|
|
1083
|
+
let n = new AbortController(), s;
|
|
1084
1084
|
const o = function(u) {
|
|
1085
1085
|
if (!s) {
|
|
1086
1086
|
s = !0, c();
|
|
1087
1087
|
const l = u instanceof Error ? u : this.reason;
|
|
1088
|
-
|
|
1088
|
+
n.abort(l instanceof m ? l : new M(l instanceof Error ? l.message : l));
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
1091
|
let i = t && setTimeout(() => {
|
|
@@ -1097,22 +1097,22 @@ const mt = (e) => {
|
|
|
1097
1097
|
}), e = null);
|
|
1098
1098
|
};
|
|
1099
1099
|
e.forEach((u) => u.addEventListener("abort", o));
|
|
1100
|
-
const { signal:
|
|
1101
|
-
return
|
|
1100
|
+
const { signal: f } = n;
|
|
1101
|
+
return f.unsubscribe = () => a.asap(c), f;
|
|
1102
1102
|
}
|
|
1103
|
-
},
|
|
1104
|
-
let
|
|
1105
|
-
if (
|
|
1103
|
+
}, Kr = function* (e, t) {
|
|
1104
|
+
let r = e.byteLength;
|
|
1105
|
+
if (r < t) {
|
|
1106
1106
|
yield e;
|
|
1107
1107
|
return;
|
|
1108
1108
|
}
|
|
1109
|
-
let
|
|
1110
|
-
for (;
|
|
1111
|
-
s =
|
|
1112
|
-
},
|
|
1113
|
-
for await (const
|
|
1114
|
-
yield*
|
|
1115
|
-
},
|
|
1109
|
+
let n = 0, s;
|
|
1110
|
+
for (; n < r; )
|
|
1111
|
+
s = n + t, yield e.slice(n, s), n = s;
|
|
1112
|
+
}, Vr = async function* (e, t) {
|
|
1113
|
+
for await (const r of zr(e))
|
|
1114
|
+
yield* Kr(r, t);
|
|
1115
|
+
}, zr = async function* (e) {
|
|
1116
1116
|
if (e[Symbol.asyncIterator]) {
|
|
1117
1117
|
yield* e;
|
|
1118
1118
|
return;
|
|
@@ -1120,52 +1120,52 @@ const mt = (e) => {
|
|
|
1120
1120
|
const t = e.getReader();
|
|
1121
1121
|
try {
|
|
1122
1122
|
for (; ; ) {
|
|
1123
|
-
const { done:
|
|
1124
|
-
if (
|
|
1123
|
+
const { done: r, value: n } = await t.read();
|
|
1124
|
+
if (r)
|
|
1125
1125
|
break;
|
|
1126
|
-
yield
|
|
1126
|
+
yield n;
|
|
1127
1127
|
}
|
|
1128
1128
|
} finally {
|
|
1129
1129
|
await t.cancel();
|
|
1130
1130
|
}
|
|
1131
|
-
},
|
|
1132
|
-
const s =
|
|
1133
|
-
let o = 0, i, c = (
|
|
1134
|
-
i || (i = !0,
|
|
1131
|
+
}, ve = (e, t, r, n) => {
|
|
1132
|
+
const s = Vr(e, t);
|
|
1133
|
+
let o = 0, i, c = (f) => {
|
|
1134
|
+
i || (i = !0, n && n(f));
|
|
1135
1135
|
};
|
|
1136
1136
|
return new ReadableStream({
|
|
1137
|
-
async pull(
|
|
1137
|
+
async pull(f) {
|
|
1138
1138
|
try {
|
|
1139
1139
|
const { done: u, value: l } = await s.next();
|
|
1140
1140
|
if (u) {
|
|
1141
|
-
c(),
|
|
1141
|
+
c(), f.close();
|
|
1142
1142
|
return;
|
|
1143
1143
|
}
|
|
1144
|
-
let
|
|
1145
|
-
if (
|
|
1146
|
-
let g = o +=
|
|
1147
|
-
|
|
1144
|
+
let d = l.byteLength;
|
|
1145
|
+
if (r) {
|
|
1146
|
+
let g = o += d;
|
|
1147
|
+
r(g);
|
|
1148
1148
|
}
|
|
1149
|
-
|
|
1149
|
+
f.enqueue(new Uint8Array(l));
|
|
1150
1150
|
} catch (u) {
|
|
1151
1151
|
throw c(u), u;
|
|
1152
1152
|
}
|
|
1153
1153
|
},
|
|
1154
|
-
cancel(
|
|
1155
|
-
return c(
|
|
1154
|
+
cancel(f) {
|
|
1155
|
+
return c(f), s.return();
|
|
1156
1156
|
}
|
|
1157
1157
|
}, {
|
|
1158
1158
|
highWaterMark: 2
|
|
1159
1159
|
});
|
|
1160
|
-
}, ue = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", yt = ue && typeof ReadableStream == "function",
|
|
1160
|
+
}, ue = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", yt = ue && typeof ReadableStream == "function", Jr = ue && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), gt = (e, ...t) => {
|
|
1161
1161
|
try {
|
|
1162
1162
|
return !!e(...t);
|
|
1163
1163
|
} catch {
|
|
1164
1164
|
return !1;
|
|
1165
1165
|
}
|
|
1166
|
-
},
|
|
1166
|
+
}, Wr = yt && gt(() => {
|
|
1167
1167
|
let e = !1;
|
|
1168
|
-
const t = new Request(
|
|
1168
|
+
const t = new Request(T.origin, {
|
|
1169
1169
|
body: new ReadableStream(),
|
|
1170
1170
|
method: "POST",
|
|
1171
1171
|
get duplex() {
|
|
@@ -1178,74 +1178,74 @@ const mt = (e) => {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
ue && ((e) => {
|
|
1180
1180
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1181
|
-
!se[t] && (se[t] = a.isFunction(e[t]) ? (
|
|
1182
|
-
throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT,
|
|
1181
|
+
!se[t] && (se[t] = a.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
|
|
1182
|
+
throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, n);
|
|
1183
1183
|
});
|
|
1184
1184
|
});
|
|
1185
1185
|
})(new Response());
|
|
1186
|
-
const
|
|
1186
|
+
const Qr = async (e) => {
|
|
1187
1187
|
if (e == null)
|
|
1188
1188
|
return 0;
|
|
1189
1189
|
if (a.isBlob(e))
|
|
1190
1190
|
return e.size;
|
|
1191
1191
|
if (a.isSpecCompliantForm(e))
|
|
1192
|
-
return (await new Request(
|
|
1192
|
+
return (await new Request(T.origin, {
|
|
1193
1193
|
method: "POST",
|
|
1194
1194
|
body: e
|
|
1195
1195
|
}).arrayBuffer()).byteLength;
|
|
1196
1196
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1197
1197
|
return e.byteLength;
|
|
1198
1198
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1199
|
-
return (await
|
|
1200
|
-
},
|
|
1201
|
-
const
|
|
1202
|
-
return
|
|
1203
|
-
},
|
|
1199
|
+
return (await Jr(e)).byteLength;
|
|
1200
|
+
}, Xr = async (e, t) => {
|
|
1201
|
+
const r = a.toFiniteNumber(e.getContentLength());
|
|
1202
|
+
return r ?? Qr(t);
|
|
1203
|
+
}, Yr = ue && (async (e) => {
|
|
1204
1204
|
let {
|
|
1205
1205
|
url: t,
|
|
1206
|
-
method:
|
|
1207
|
-
data:
|
|
1206
|
+
method: r,
|
|
1207
|
+
data: n,
|
|
1208
1208
|
signal: s,
|
|
1209
1209
|
cancelToken: o,
|
|
1210
1210
|
timeout: i,
|
|
1211
1211
|
onDownloadProgress: c,
|
|
1212
|
-
onUploadProgress:
|
|
1212
|
+
onUploadProgress: f,
|
|
1213
1213
|
responseType: u,
|
|
1214
1214
|
headers: l,
|
|
1215
|
-
withCredentials:
|
|
1215
|
+
withCredentials: d = "same-origin",
|
|
1216
1216
|
fetchOptions: g
|
|
1217
1217
|
} = mt(e);
|
|
1218
1218
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1219
|
-
let w =
|
|
1219
|
+
let w = Hr([s, o && o.toAbortSignal()], i), h;
|
|
1220
1220
|
const y = w && w.unsubscribe && (() => {
|
|
1221
1221
|
w.unsubscribe();
|
|
1222
1222
|
});
|
|
1223
1223
|
let p;
|
|
1224
1224
|
try {
|
|
1225
|
-
if (
|
|
1225
|
+
if (f && Wr && r !== "get" && r !== "head" && (p = await Xr(l, n)) !== 0) {
|
|
1226
1226
|
let A = new Request(t, {
|
|
1227
1227
|
method: "POST",
|
|
1228
|
-
body:
|
|
1228
|
+
body: n,
|
|
1229
1229
|
duplex: "half"
|
|
1230
|
-
}),
|
|
1231
|
-
if (a.isFormData(
|
|
1232
|
-
const [k, G] =
|
|
1230
|
+
}), D;
|
|
1231
|
+
if (a.isFormData(n) && (D = A.headers.get("content-type")) && l.setContentType(D), A.body) {
|
|
1232
|
+
const [k, G] = Be(
|
|
1233
1233
|
p,
|
|
1234
|
-
|
|
1234
|
+
ne(qe(f))
|
|
1235
1235
|
);
|
|
1236
|
-
|
|
1236
|
+
n = ve(A.body, je, k, G);
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
a.isString(
|
|
1239
|
+
a.isString(d) || (d = d ? "include" : "omit");
|
|
1240
1240
|
const b = "credentials" in Request.prototype;
|
|
1241
1241
|
h = new Request(t, {
|
|
1242
1242
|
...g,
|
|
1243
1243
|
signal: w,
|
|
1244
|
-
method:
|
|
1244
|
+
method: r.toUpperCase(),
|
|
1245
1245
|
headers: l.normalize().toJSON(),
|
|
1246
|
-
body:
|
|
1246
|
+
body: n,
|
|
1247
1247
|
duplex: "half",
|
|
1248
|
-
credentials: b ?
|
|
1248
|
+
credentials: b ? d : void 0
|
|
1249
1249
|
});
|
|
1250
1250
|
let S = await fetch(h, g);
|
|
1251
1251
|
const _ = be && (u === "stream" || u === "response");
|
|
@@ -1254,12 +1254,12 @@ const Xn = async (e) => {
|
|
|
1254
1254
|
["status", "statusText", "headers"].forEach((Ne) => {
|
|
1255
1255
|
A[Ne] = S[Ne];
|
|
1256
1256
|
});
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1259
|
-
|
|
1257
|
+
const D = a.toFiniteNumber(S.headers.get("content-length")), [k, G] = c && Be(
|
|
1258
|
+
D,
|
|
1259
|
+
ne(qe(c), !0)
|
|
1260
1260
|
) || [];
|
|
1261
1261
|
S = new Response(
|
|
1262
|
-
|
|
1262
|
+
ve(S.body, je, k, () => {
|
|
1263
1263
|
G && G(), y && y();
|
|
1264
1264
|
}),
|
|
1265
1265
|
A
|
|
@@ -1267,8 +1267,8 @@ const Xn = async (e) => {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
u = u || "text";
|
|
1269
1269
|
let U = await se[a.findKey(se, u) || "text"](S, e);
|
|
1270
|
-
return !_ && y && y(), await new Promise((A,
|
|
1271
|
-
ht(A,
|
|
1270
|
+
return !_ && y && y(), await new Promise((A, D) => {
|
|
1271
|
+
ht(A, D, {
|
|
1272
1272
|
data: U,
|
|
1273
1273
|
headers: O.from(S.headers),
|
|
1274
1274
|
status: S.status,
|
|
@@ -1286,9 +1286,9 @@ const Xn = async (e) => {
|
|
|
1286
1286
|
) : m.from(b, b && b.code, e, h);
|
|
1287
1287
|
}
|
|
1288
1288
|
}), Ee = {
|
|
1289
|
-
http:
|
|
1290
|
-
xhr:
|
|
1291
|
-
fetch:
|
|
1289
|
+
http: dr,
|
|
1290
|
+
xhr: Mr,
|
|
1291
|
+
fetch: Yr
|
|
1292
1292
|
};
|
|
1293
1293
|
a.forEach(Ee, (e, t) => {
|
|
1294
1294
|
if (e) {
|
|
@@ -1299,34 +1299,34 @@ a.forEach(Ee, (e, t) => {
|
|
|
1299
1299
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1300
1300
|
}
|
|
1301
1301
|
});
|
|
1302
|
-
const
|
|
1302
|
+
const $e = (e) => `- ${e}`, Gr = (e) => a.isFunction(e) || e === null || e === !1, wt = {
|
|
1303
1303
|
getAdapter: (e) => {
|
|
1304
1304
|
e = a.isArray(e) ? e : [e];
|
|
1305
1305
|
const { length: t } = e;
|
|
1306
|
-
let
|
|
1306
|
+
let r, n;
|
|
1307
1307
|
const s = {};
|
|
1308
1308
|
for (let o = 0; o < t; o++) {
|
|
1309
|
-
|
|
1309
|
+
r = e[o];
|
|
1310
1310
|
let i;
|
|
1311
|
-
if (
|
|
1311
|
+
if (n = r, !Gr(r) && (n = Ee[(i = String(r)).toLowerCase()], n === void 0))
|
|
1312
1312
|
throw new m(`Unknown adapter '${i}'`);
|
|
1313
|
-
if (
|
|
1313
|
+
if (n)
|
|
1314
1314
|
break;
|
|
1315
|
-
s[i || "#" + o] =
|
|
1315
|
+
s[i || "#" + o] = n;
|
|
1316
1316
|
}
|
|
1317
|
-
if (!
|
|
1317
|
+
if (!n) {
|
|
1318
1318
|
const o = Object.entries(s).map(
|
|
1319
|
-
([c,
|
|
1319
|
+
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1320
1320
|
);
|
|
1321
1321
|
let i = t ? o.length > 1 ? `since :
|
|
1322
|
-
` + o.map(
|
|
1323
|
-
`) : " " +
|
|
1322
|
+
` + o.map($e).join(`
|
|
1323
|
+
`) : " " + $e(o[0]) : "as no adapter specified";
|
|
1324
1324
|
throw new m(
|
|
1325
1325
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1326
1326
|
"ERR_NOT_SUPPORT"
|
|
1327
1327
|
);
|
|
1328
1328
|
}
|
|
1329
|
-
return
|
|
1329
|
+
return n;
|
|
1330
1330
|
},
|
|
1331
1331
|
adapters: Ee
|
|
1332
1332
|
};
|
|
@@ -1334,78 +1334,78 @@ function me(e) {
|
|
|
1334
1334
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1335
1335
|
throw new M(null, e);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function Me(e) {
|
|
1338
1338
|
return me(e), e.headers = O.from(e.headers), e.data = pe.call(
|
|
1339
1339
|
e,
|
|
1340
1340
|
e.transformRequest
|
|
1341
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), wt.getAdapter(e.adapter || Y.adapter)(e).then(function(
|
|
1342
|
-
return me(e),
|
|
1341
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), wt.getAdapter(e.adapter || Y.adapter)(e).then(function(n) {
|
|
1342
|
+
return me(e), n.data = pe.call(
|
|
1343
1343
|
e,
|
|
1344
1344
|
e.transformResponse,
|
|
1345
|
-
|
|
1346
|
-
),
|
|
1347
|
-
}, function(
|
|
1348
|
-
return
|
|
1345
|
+
n
|
|
1346
|
+
), n.headers = O.from(n.headers), n;
|
|
1347
|
+
}, function(n) {
|
|
1348
|
+
return dt(n) || (me(e), n && n.response && (n.response.data = pe.call(
|
|
1349
1349
|
e,
|
|
1350
1350
|
e.transformResponse,
|
|
1351
|
-
|
|
1352
|
-
),
|
|
1351
|
+
n.response
|
|
1352
|
+
), n.response.headers = O.from(n.response.headers))), Promise.reject(n);
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
1355
|
const bt = "1.11.0", le = {};
|
|
1356
1356
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1357
|
-
le[e] = function(
|
|
1358
|
-
return typeof
|
|
1357
|
+
le[e] = function(n) {
|
|
1358
|
+
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1359
1359
|
};
|
|
1360
1360
|
});
|
|
1361
1361
|
const He = {};
|
|
1362
|
-
le.transitional = function(t,
|
|
1362
|
+
le.transitional = function(t, r, n) {
|
|
1363
1363
|
function s(o, i) {
|
|
1364
|
-
return "[Axios v" + bt + "] Transitional option '" + o + "'" + i + (
|
|
1364
|
+
return "[Axios v" + bt + "] Transitional option '" + o + "'" + i + (n ? ". " + n : "");
|
|
1365
1365
|
}
|
|
1366
1366
|
return (o, i, c) => {
|
|
1367
1367
|
if (t === !1)
|
|
1368
1368
|
throw new m(
|
|
1369
|
-
s(i, " has been removed" + (
|
|
1369
|
+
s(i, " has been removed" + (r ? " in " + r : "")),
|
|
1370
1370
|
m.ERR_DEPRECATED
|
|
1371
1371
|
);
|
|
1372
|
-
return
|
|
1372
|
+
return r && !He[i] && (He[i] = !0, console.warn(
|
|
1373
1373
|
s(
|
|
1374
1374
|
i,
|
|
1375
|
-
" has been deprecated since v" +
|
|
1375
|
+
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1376
1376
|
)
|
|
1377
1377
|
)), t ? t(o, i, c) : !0;
|
|
1378
1378
|
};
|
|
1379
1379
|
};
|
|
1380
1380
|
le.spelling = function(t) {
|
|
1381
|
-
return (
|
|
1381
|
+
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
1382
1382
|
};
|
|
1383
|
-
function
|
|
1383
|
+
function Zr(e, t, r) {
|
|
1384
1384
|
if (typeof e != "object")
|
|
1385
1385
|
throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
|
|
1386
|
-
const
|
|
1387
|
-
let s =
|
|
1386
|
+
const n = Object.keys(e);
|
|
1387
|
+
let s = n.length;
|
|
1388
1388
|
for (; s-- > 0; ) {
|
|
1389
|
-
const o =
|
|
1389
|
+
const o = n[s], i = t[o];
|
|
1390
1390
|
if (i) {
|
|
1391
|
-
const c = e[o],
|
|
1392
|
-
if (
|
|
1393
|
-
throw new m("option " + o + " must be " +
|
|
1391
|
+
const c = e[o], f = c === void 0 || i(c, o, e);
|
|
1392
|
+
if (f !== !0)
|
|
1393
|
+
throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
|
|
1394
1394
|
continue;
|
|
1395
1395
|
}
|
|
1396
|
-
if (
|
|
1396
|
+
if (r !== !0)
|
|
1397
1397
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
const
|
|
1401
|
-
assertOptions:
|
|
1400
|
+
const re = {
|
|
1401
|
+
assertOptions: Zr,
|
|
1402
1402
|
validators: le
|
|
1403
|
-
}, N =
|
|
1404
|
-
let
|
|
1403
|
+
}, N = re.validators;
|
|
1404
|
+
let q = class {
|
|
1405
1405
|
constructor(t) {
|
|
1406
1406
|
this.defaults = t || {}, this.interceptors = {
|
|
1407
|
-
request: new
|
|
1408
|
-
response: new
|
|
1407
|
+
request: new Fe(),
|
|
1408
|
+
response: new Fe()
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
/**
|
|
@@ -1416,69 +1416,69 @@ let I = class {
|
|
|
1416
1416
|
*
|
|
1417
1417
|
* @returns {Promise} The Promise to be fulfilled
|
|
1418
1418
|
*/
|
|
1419
|
-
async request(t,
|
|
1419
|
+
async request(t, r) {
|
|
1420
1420
|
try {
|
|
1421
|
-
return await this._request(t,
|
|
1422
|
-
} catch (
|
|
1423
|
-
if (
|
|
1421
|
+
return await this._request(t, r);
|
|
1422
|
+
} catch (n) {
|
|
1423
|
+
if (n instanceof Error) {
|
|
1424
1424
|
let s = {};
|
|
1425
1425
|
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
1426
1426
|
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
1427
1427
|
try {
|
|
1428
|
-
|
|
1429
|
-
` + o) :
|
|
1428
|
+
n.stack ? o && !String(n.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (n.stack += `
|
|
1429
|
+
` + o) : n.stack = o;
|
|
1430
1430
|
} catch {
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
throw
|
|
1433
|
+
throw n;
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
_request(t,
|
|
1437
|
-
typeof t == "string" ? (
|
|
1438
|
-
const { transitional:
|
|
1439
|
-
|
|
1436
|
+
_request(t, r) {
|
|
1437
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = I(this.defaults, r);
|
|
1438
|
+
const { transitional: n, paramsSerializer: s, headers: o } = r;
|
|
1439
|
+
n !== void 0 && re.assertOptions(n, {
|
|
1440
1440
|
silentJSONParsing: N.transitional(N.boolean),
|
|
1441
1441
|
forcedJSONParsing: N.transitional(N.boolean),
|
|
1442
1442
|
clarifyTimeoutError: N.transitional(N.boolean)
|
|
1443
|
-
}, !1), s != null && (a.isFunction(s) ?
|
|
1443
|
+
}, !1), s != null && (a.isFunction(s) ? r.paramsSerializer = {
|
|
1444
1444
|
serialize: s
|
|
1445
|
-
} :
|
|
1445
|
+
} : re.assertOptions(s, {
|
|
1446
1446
|
encode: N.function,
|
|
1447
1447
|
serialize: N.function
|
|
1448
|
-
}, !0)),
|
|
1448
|
+
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), re.assertOptions(r, {
|
|
1449
1449
|
baseUrl: N.spelling("baseURL"),
|
|
1450
1450
|
withXsrfToken: N.spelling("withXSRFToken")
|
|
1451
|
-
}, !0),
|
|
1451
|
+
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1452
1452
|
let i = o && a.merge(
|
|
1453
1453
|
o.common,
|
|
1454
|
-
o[
|
|
1454
|
+
o[r.method]
|
|
1455
1455
|
);
|
|
1456
1456
|
o && a.forEach(
|
|
1457
1457
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1458
1458
|
(h) => {
|
|
1459
1459
|
delete o[h];
|
|
1460
1460
|
}
|
|
1461
|
-
),
|
|
1461
|
+
), r.headers = O.concat(i, o);
|
|
1462
1462
|
const c = [];
|
|
1463
|
-
let
|
|
1463
|
+
let f = !0;
|
|
1464
1464
|
this.interceptors.request.forEach(function(y) {
|
|
1465
|
-
typeof y.runWhen == "function" && y.runWhen(
|
|
1465
|
+
typeof y.runWhen == "function" && y.runWhen(r) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
|
|
1466
1466
|
});
|
|
1467
1467
|
const u = [];
|
|
1468
1468
|
this.interceptors.response.forEach(function(y) {
|
|
1469
1469
|
u.push(y.fulfilled, y.rejected);
|
|
1470
1470
|
});
|
|
1471
|
-
let l,
|
|
1472
|
-
if (!
|
|
1473
|
-
const h = [
|
|
1474
|
-
for (h.unshift(...c), h.push(...u), g = h.length, l = Promise.resolve(
|
|
1475
|
-
l = l.then(h[
|
|
1471
|
+
let l, d = 0, g;
|
|
1472
|
+
if (!f) {
|
|
1473
|
+
const h = [Me.bind(this), void 0];
|
|
1474
|
+
for (h.unshift(...c), h.push(...u), g = h.length, l = Promise.resolve(r); d < g; )
|
|
1475
|
+
l = l.then(h[d++], h[d++]);
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
1478
|
g = c.length;
|
|
1479
|
-
let w =
|
|
1480
|
-
for (
|
|
1481
|
-
const h = c[
|
|
1479
|
+
let w = r;
|
|
1480
|
+
for (d = 0; d < g; ) {
|
|
1481
|
+
const h = c[d++], y = c[d++];
|
|
1482
1482
|
try {
|
|
1483
1483
|
w = h(w);
|
|
1484
1484
|
} catch (p) {
|
|
@@ -1487,35 +1487,35 @@ let I = class {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
try {
|
|
1490
|
-
l =
|
|
1490
|
+
l = Me.call(this, w);
|
|
1491
1491
|
} catch (h) {
|
|
1492
1492
|
return Promise.reject(h);
|
|
1493
1493
|
}
|
|
1494
|
-
for (
|
|
1495
|
-
l = l.then(u[
|
|
1494
|
+
for (d = 0, g = u.length; d < g; )
|
|
1495
|
+
l = l.then(u[d++], u[d++]);
|
|
1496
1496
|
return l;
|
|
1497
1497
|
}
|
|
1498
1498
|
getUri(t) {
|
|
1499
|
-
t =
|
|
1500
|
-
const
|
|
1501
|
-
return ut(
|
|
1499
|
+
t = I(this.defaults, t);
|
|
1500
|
+
const r = pt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1501
|
+
return ut(r, t.params, t.paramsSerializer);
|
|
1502
1502
|
}
|
|
1503
1503
|
};
|
|
1504
1504
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1505
|
-
|
|
1506
|
-
return this.request(
|
|
1505
|
+
q.prototype[t] = function(r, n) {
|
|
1506
|
+
return this.request(I(n || {}, {
|
|
1507
1507
|
method: t,
|
|
1508
|
-
url:
|
|
1509
|
-
data: (
|
|
1508
|
+
url: r,
|
|
1509
|
+
data: (n || {}).data
|
|
1510
1510
|
}));
|
|
1511
1511
|
};
|
|
1512
1512
|
});
|
|
1513
1513
|
a.forEach(["post", "put", "patch"], function(t) {
|
|
1514
|
-
function n
|
|
1514
|
+
function r(n) {
|
|
1515
1515
|
return function(o, i, c) {
|
|
1516
|
-
return this.request(
|
|
1516
|
+
return this.request(I(c || {}, {
|
|
1517
1517
|
method: t,
|
|
1518
|
-
headers:
|
|
1518
|
+
headers: n ? {
|
|
1519
1519
|
"Content-Type": "multipart/form-data"
|
|
1520
1520
|
} : {},
|
|
1521
1521
|
url: o,
|
|
@@ -1523,33 +1523,33 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1523
1523
|
}));
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
|
|
1526
|
+
q.prototype[t] = r(), q.prototype[t + "Form"] = r(!0);
|
|
1527
1527
|
});
|
|
1528
|
-
let
|
|
1528
|
+
let en = class Et {
|
|
1529
1529
|
constructor(t) {
|
|
1530
1530
|
if (typeof t != "function")
|
|
1531
1531
|
throw new TypeError("executor must be a function.");
|
|
1532
|
-
let
|
|
1532
|
+
let r;
|
|
1533
1533
|
this.promise = new Promise(function(o) {
|
|
1534
|
-
|
|
1534
|
+
r = o;
|
|
1535
1535
|
});
|
|
1536
|
-
const
|
|
1536
|
+
const n = this;
|
|
1537
1537
|
this.promise.then((s) => {
|
|
1538
|
-
if (!
|
|
1539
|
-
let o =
|
|
1538
|
+
if (!n._listeners) return;
|
|
1539
|
+
let o = n._listeners.length;
|
|
1540
1540
|
for (; o-- > 0; )
|
|
1541
|
-
|
|
1542
|
-
|
|
1541
|
+
n._listeners[o](s);
|
|
1542
|
+
n._listeners = null;
|
|
1543
1543
|
}), this.promise.then = (s) => {
|
|
1544
1544
|
let o;
|
|
1545
1545
|
const i = new Promise((c) => {
|
|
1546
|
-
|
|
1546
|
+
n.subscribe(c), o = c;
|
|
1547
1547
|
}).then(s);
|
|
1548
1548
|
return i.cancel = function() {
|
|
1549
|
-
|
|
1549
|
+
n.unsubscribe(o);
|
|
1550
1550
|
}, i;
|
|
1551
1551
|
}, t(function(o, i, c) {
|
|
1552
|
-
|
|
1552
|
+
n.reason || (n.reason = new M(o, i, c), r(n.reason));
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
/**
|
|
@@ -1575,14 +1575,14 @@ let tr = class Et {
|
|
|
1575
1575
|
unsubscribe(t) {
|
|
1576
1576
|
if (!this._listeners)
|
|
1577
1577
|
return;
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1578
|
+
const r = this._listeners.indexOf(t);
|
|
1579
|
+
r !== -1 && this._listeners.splice(r, 1);
|
|
1580
1580
|
}
|
|
1581
1581
|
toAbortSignal() {
|
|
1582
|
-
const t = new AbortController(),
|
|
1583
|
-
t.abort(
|
|
1582
|
+
const t = new AbortController(), r = (n) => {
|
|
1583
|
+
t.abort(n);
|
|
1584
1584
|
};
|
|
1585
|
-
return this.subscribe(
|
|
1585
|
+
return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
|
|
1586
1586
|
}
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
@@ -1598,12 +1598,12 @@ let tr = class Et {
|
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
1600
|
};
|
|
1601
|
-
function
|
|
1602
|
-
return function(
|
|
1603
|
-
return e.apply(null,
|
|
1601
|
+
function tn(e) {
|
|
1602
|
+
return function(r) {
|
|
1603
|
+
return e.apply(null, r);
|
|
1604
1604
|
};
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function rn(e) {
|
|
1607
1607
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1608
1608
|
}
|
|
1609
1609
|
const Se = {
|
|
@@ -1675,16 +1675,16 @@ Object.entries(Se).forEach(([e, t]) => {
|
|
|
1675
1675
|
Se[t] = e;
|
|
1676
1676
|
});
|
|
1677
1677
|
function St(e) {
|
|
1678
|
-
const t = new
|
|
1679
|
-
return a.extend(
|
|
1680
|
-
return St(
|
|
1681
|
-
},
|
|
1678
|
+
const t = new q(e), r = Ye(q.prototype.request, t);
|
|
1679
|
+
return a.extend(r, q.prototype, t, { allOwnKeys: !0 }), a.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
1680
|
+
return St(I(e, s));
|
|
1681
|
+
}, r;
|
|
1682
1682
|
}
|
|
1683
1683
|
const E = St(Y);
|
|
1684
|
-
E.Axios =
|
|
1684
|
+
E.Axios = q;
|
|
1685
1685
|
E.CanceledError = M;
|
|
1686
|
-
E.CancelToken =
|
|
1687
|
-
E.isCancel =
|
|
1686
|
+
E.CancelToken = en;
|
|
1687
|
+
E.isCancel = dt;
|
|
1688
1688
|
E.VERSION = bt;
|
|
1689
1689
|
E.toFormData = ce;
|
|
1690
1690
|
E.AxiosError = m;
|
|
@@ -1692,51 +1692,51 @@ E.Cancel = E.CanceledError;
|
|
|
1692
1692
|
E.all = function(t) {
|
|
1693
1693
|
return Promise.all(t);
|
|
1694
1694
|
};
|
|
1695
|
-
E.spread =
|
|
1696
|
-
E.isAxiosError =
|
|
1697
|
-
E.mergeConfig =
|
|
1695
|
+
E.spread = tn;
|
|
1696
|
+
E.isAxiosError = rn;
|
|
1697
|
+
E.mergeConfig = I;
|
|
1698
1698
|
E.AxiosHeaders = O;
|
|
1699
|
-
E.formToJSON = (e) =>
|
|
1699
|
+
E.formToJSON = (e) => ft(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1700
1700
|
E.getAdapter = wt.getAdapter;
|
|
1701
1701
|
E.HttpStatusCode = Se;
|
|
1702
1702
|
E.default = E;
|
|
1703
1703
|
const {
|
|
1704
|
-
Axios:
|
|
1704
|
+
Axios: cs,
|
|
1705
1705
|
AxiosError: Z,
|
|
1706
|
-
CanceledError:
|
|
1707
|
-
isCancel:
|
|
1708
|
-
CancelToken:
|
|
1706
|
+
CanceledError: us,
|
|
1707
|
+
isCancel: ls,
|
|
1708
|
+
CancelToken: fs,
|
|
1709
1709
|
VERSION: ds,
|
|
1710
|
-
all:
|
|
1711
|
-
Cancel:
|
|
1712
|
-
isAxiosError:
|
|
1713
|
-
spread:
|
|
1714
|
-
toFormData:
|
|
1715
|
-
AxiosHeaders:
|
|
1716
|
-
HttpStatusCode:
|
|
1717
|
-
formToJSON:
|
|
1718
|
-
getAdapter:
|
|
1719
|
-
mergeConfig:
|
|
1710
|
+
all: hs,
|
|
1711
|
+
Cancel: ps,
|
|
1712
|
+
isAxiosError: ms,
|
|
1713
|
+
spread: ys,
|
|
1714
|
+
toFormData: gs,
|
|
1715
|
+
AxiosHeaders: ws,
|
|
1716
|
+
HttpStatusCode: bs,
|
|
1717
|
+
formToJSON: Es,
|
|
1718
|
+
getAdapter: Ss,
|
|
1719
|
+
mergeConfig: Cs
|
|
1720
1720
|
} = E;
|
|
1721
1721
|
class Ke extends Error {
|
|
1722
|
-
constructor(
|
|
1723
|
-
super(
|
|
1722
|
+
constructor(r) {
|
|
1723
|
+
super(r.join(", "));
|
|
1724
1724
|
C(this, "errors");
|
|
1725
|
-
this.name = "ValidationError", this.errors =
|
|
1725
|
+
this.name = "ValidationError", this.errors = r;
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
1728
|
class Ve extends Error {
|
|
1729
|
-
constructor(
|
|
1729
|
+
constructor(r) {
|
|
1730
1730
|
super("Address already registered.");
|
|
1731
1731
|
C(this, "address");
|
|
1732
|
-
this.name = "AddressInUseError", this.address =
|
|
1732
|
+
this.name = "AddressInUseError", this.address = r;
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
class ze extends Error {
|
|
1736
|
-
constructor(
|
|
1736
|
+
constructor(r) {
|
|
1737
1737
|
super("Code already registered.");
|
|
1738
1738
|
C(this, "code");
|
|
1739
|
-
this.name = "CodeInUseError", this.code =
|
|
1739
|
+
this.name = "CodeInUseError", this.code = r;
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
1742
|
class Je extends Error {
|
|
@@ -1744,88 +1744,88 @@ class Je extends Error {
|
|
|
1744
1744
|
super("Invalid signature provided"), this.name = "InvalidSignatureError";
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
class
|
|
1747
|
+
class nn {
|
|
1748
1748
|
constructor(t) {
|
|
1749
1749
|
C(this, "httpClient");
|
|
1750
1750
|
C(this, "_debug");
|
|
1751
1751
|
this.httpClient = t.httpClient, this._debug = t.debug;
|
|
1752
1752
|
}
|
|
1753
|
-
async create(t,
|
|
1753
|
+
async create(t, r, n, s, o, i) {
|
|
1754
1754
|
var c;
|
|
1755
1755
|
try {
|
|
1756
1756
|
await this.httpClient.post({
|
|
1757
1757
|
path: "/affiliates",
|
|
1758
1758
|
postData: {
|
|
1759
1759
|
address: t,
|
|
1760
|
-
identifier_type:
|
|
1761
|
-
name:
|
|
1762
|
-
code:
|
|
1760
|
+
identifier_type: r,
|
|
1761
|
+
name: n,
|
|
1762
|
+
code: n,
|
|
1763
1763
|
signature: s,
|
|
1764
1764
|
signature_public_key: o,
|
|
1765
1765
|
account_chain_id: i
|
|
1766
1766
|
}
|
|
1767
1767
|
});
|
|
1768
|
-
} catch (
|
|
1769
|
-
if (
|
|
1770
|
-
const u = (c =
|
|
1768
|
+
} catch (f) {
|
|
1769
|
+
if (f instanceof Z) {
|
|
1770
|
+
const u = (c = f.response) == null ? void 0 : c.data;
|
|
1771
1771
|
if (typeof (u == null ? void 0 : u.message) == "string") {
|
|
1772
1772
|
const l = u.message.toLowerCase();
|
|
1773
|
-
throw l == "invalid signature" ? new Je() : l == "address in use" ? new Ve(t) : l == "code in use" ? new ze(
|
|
1773
|
+
throw l == "invalid signature" ? new Je() : l == "address in use" ? new Ve(t) : l == "code in use" ? new ze(n) : new Error(l);
|
|
1774
1774
|
} else if ((u == null ? void 0 : u.message) instanceof Array)
|
|
1775
1775
|
throw new Ke(u.message);
|
|
1776
1776
|
}
|
|
1777
|
-
throw
|
|
1777
|
+
throw f;
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
async update(t,
|
|
1780
|
+
async update(t, r, n, s, o, i) {
|
|
1781
1781
|
var c;
|
|
1782
1782
|
try {
|
|
1783
1783
|
await this.httpClient.post({
|
|
1784
1784
|
path: `/affiliates/${t}`,
|
|
1785
1785
|
postData: {
|
|
1786
|
-
code:
|
|
1786
|
+
code: n,
|
|
1787
1787
|
user_identifier: t,
|
|
1788
|
-
identifier_type:
|
|
1788
|
+
identifier_type: r,
|
|
1789
1789
|
signature: s,
|
|
1790
1790
|
signature_public_key: o,
|
|
1791
1791
|
account_chain_id: i
|
|
1792
1792
|
}
|
|
1793
1793
|
});
|
|
1794
|
-
} catch (
|
|
1795
|
-
if (
|
|
1796
|
-
const u = (c =
|
|
1794
|
+
} catch (f) {
|
|
1795
|
+
if (f instanceof Z) {
|
|
1796
|
+
const u = (c = f.response) == null ? void 0 : c.data;
|
|
1797
1797
|
if (typeof (u == null ? void 0 : u.message) == "string") {
|
|
1798
1798
|
const l = u.message.toLowerCase();
|
|
1799
|
-
throw l == "invalid signature" ? new Je() : l == "address in use" ? new Ve(t) : l == "code in use" ? new ze(
|
|
1799
|
+
throw l == "invalid signature" ? new Je() : l == "address in use" ? new Ve(t) : l == "code in use" ? new ze(n) : new Error(l);
|
|
1800
1800
|
} else if ((u == null ? void 0 : u.message) instanceof Array)
|
|
1801
1801
|
throw new Ke(u.message);
|
|
1802
1802
|
}
|
|
1803
|
-
throw
|
|
1803
|
+
throw f;
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
async isCodeFree(t) {
|
|
1807
|
-
var
|
|
1807
|
+
var r;
|
|
1808
1808
|
try {
|
|
1809
1809
|
return await this.httpClient.get({ path: `/affiliates/codes/${t}` }), !1;
|
|
1810
|
-
} catch (
|
|
1811
|
-
if (
|
|
1810
|
+
} catch (n) {
|
|
1811
|
+
if (n instanceof Z && ((r = n.response) == null ? void 0 : r.status) === 404)
|
|
1812
1812
|
return !0;
|
|
1813
|
-
throw console.error("Fuul SDK: Could not check affiliate code",
|
|
1813
|
+
throw console.error("Fuul SDK: Could not check affiliate code", n), n;
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
|
-
async getCode(t,
|
|
1817
|
-
var
|
|
1816
|
+
async getCode(t, r) {
|
|
1817
|
+
var n;
|
|
1818
1818
|
try {
|
|
1819
|
-
return (await this.httpClient.get({ path: `/affiliates/${t}`, queryParams: { identifier_type:
|
|
1819
|
+
return (await this.httpClient.get({ path: `/affiliates/${t}`, queryParams: { identifier_type: r } })).data.code;
|
|
1820
1820
|
} catch (s) {
|
|
1821
|
-
if (s instanceof Z && ((
|
|
1821
|
+
if (s instanceof Z && ((n = s.response) == null ? void 0 : n.status) === 404)
|
|
1822
1822
|
return null;
|
|
1823
1823
|
throw console.error("Fuul SDK: Could not get affiliate code", s), s;
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
}
|
|
1827
|
-
const
|
|
1828
|
-
class
|
|
1827
|
+
const sn = "/audiences";
|
|
1828
|
+
class on {
|
|
1829
1829
|
constructor(t) {
|
|
1830
1830
|
C(this, "httpClient");
|
|
1831
1831
|
C(this, "_debug");
|
|
@@ -1833,81 +1833,81 @@ class ir {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
async getUserAudiences(t) {
|
|
1835
1835
|
return (await this.httpClient.get({
|
|
1836
|
-
path: `${
|
|
1836
|
+
path: `${sn}/user`,
|
|
1837
1837
|
queryParams: { ...t }
|
|
1838
1838
|
})).data;
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
|
-
class
|
|
1841
|
+
class an {
|
|
1842
1842
|
constructor(t) {
|
|
1843
1843
|
C(this, "httpClient");
|
|
1844
1844
|
this.httpClient = t.httpClient;
|
|
1845
1845
|
}
|
|
1846
1846
|
async getAll(t) {
|
|
1847
|
-
const { data:
|
|
1848
|
-
return
|
|
1847
|
+
const { data: r } = await this.httpClient.get({ path: "conversions", queryParams: { ...t } });
|
|
1848
|
+
return r;
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
|
-
const We = "fuul.sent",
|
|
1852
|
-
class
|
|
1851
|
+
const We = "fuul.sent", cn = 60, un = "connect_wallet", Qe = 10;
|
|
1852
|
+
class ln {
|
|
1853
1853
|
constructor(t) {
|
|
1854
1854
|
C(this, "debug");
|
|
1855
1855
|
C(this, "httpClient");
|
|
1856
1856
|
this.httpClient = t.httpClient, this.debug = !!t.debug;
|
|
1857
1857
|
}
|
|
1858
|
-
async sendEvent(t,
|
|
1858
|
+
async sendEvent(t, r) {
|
|
1859
1859
|
if (this.isDuplicate(t)) {
|
|
1860
1860
|
this.debug && console.debug("Fuul SDK: Event is considered duplicate and will not be sent");
|
|
1861
1861
|
return;
|
|
1862
1862
|
}
|
|
1863
|
-
if (!
|
|
1863
|
+
if (!r || !Array.isArray(r) || r.length === 0)
|
|
1864
1864
|
await this.httpClient.post({ path: "events", postData: t });
|
|
1865
1865
|
else
|
|
1866
|
-
for (const
|
|
1867
|
-
const s = structuredClone({ ...t, project_id:
|
|
1868
|
-
s.metadata.project_id =
|
|
1866
|
+
for (const n of r) {
|
|
1867
|
+
const s = structuredClone({ ...t, project_id: n });
|
|
1868
|
+
s.metadata.project_id = n, await this.httpClient.post({ path: "events", postData: s, queryParams: { project_id: n } });
|
|
1869
1869
|
}
|
|
1870
1870
|
this.debug && console.debug(`Fuul SDK: Sent '${t.name}' event`), this.saveSentEvent(t);
|
|
1871
1871
|
}
|
|
1872
1872
|
isDuplicate(t) {
|
|
1873
|
-
var l,
|
|
1874
|
-
const
|
|
1875
|
-
if (!
|
|
1873
|
+
var l, d, g, w;
|
|
1874
|
+
const r = `${We}_${t.name}`, n = localStorage.getItem(r);
|
|
1875
|
+
if (!n)
|
|
1876
1876
|
return !1;
|
|
1877
|
-
const s = JSON.parse(
|
|
1878
|
-
if (this.getCurrentTimestamp() - s.timestamp >
|
|
1877
|
+
const s = JSON.parse(n);
|
|
1878
|
+
if (this.getCurrentTimestamp() - s.timestamp > cn)
|
|
1879
1879
|
return !1;
|
|
1880
|
-
let
|
|
1881
|
-
t.metadata && (
|
|
1880
|
+
let f = !1;
|
|
1881
|
+
t.metadata && (f = s.metadata.tracking_id === t.metadata.tracking_id && s.metadata.project_id === t.metadata.project_id && s.metadata.referrer === t.metadata.referrer && s.metadata.source === t.metadata.source && s.metadata.category === t.metadata.category && s.metadata.title === t.metadata.title && s.metadata.tag === t.metadata.tag && s.user_address === t.user_address && ((l = s.user) == null ? void 0 : l.identifier) === ((d = t.user) == null ? void 0 : d.identifier) && ((g = s.user) == null ? void 0 : g.identifier_type) === ((w = t.user) == null ? void 0 : w.identifier_type) && s.signature === t.signature && s.signature_message === t.signature_message);
|
|
1882
1882
|
let u = !1;
|
|
1883
|
-
return t.args && s.args && (u = s.args.page === t.args.page), u &&
|
|
1883
|
+
return t.args && s.args && (u = s.args.page === t.args.page), u && f;
|
|
1884
1884
|
}
|
|
1885
1885
|
getCurrentTimestamp() {
|
|
1886
1886
|
return Date.now() / 1e3;
|
|
1887
1887
|
}
|
|
1888
1888
|
saveSentEvent(t) {
|
|
1889
|
-
var i, c,
|
|
1890
|
-
const
|
|
1891
|
-
if (localStorage.setItem(
|
|
1892
|
-
const l = JSON.parse(localStorage.getItem(
|
|
1889
|
+
var i, c, f, u;
|
|
1890
|
+
const r = `${We}_${t.name}`, n = `${r}_all`, s = this.getCurrentTimestamp(), o = { ...t, timestamp: s };
|
|
1891
|
+
if (localStorage.setItem(r, JSON.stringify(o)), t.name === un) {
|
|
1892
|
+
const l = JSON.parse(localStorage.getItem(n) || "[]"), d = {
|
|
1893
1893
|
name: t.name,
|
|
1894
1894
|
user: {
|
|
1895
1895
|
identifier: (i = t.user) == null ? void 0 : i.identifier,
|
|
1896
1896
|
identifier_type: (c = t.user) == null ? void 0 : c.identifier_type
|
|
1897
1897
|
},
|
|
1898
|
-
tracking_id: (
|
|
1898
|
+
tracking_id: (f = t.metadata) == null ? void 0 : f.tracking_id,
|
|
1899
1899
|
page: (u = t.args) == null ? void 0 : u.page
|
|
1900
1900
|
};
|
|
1901
|
-
"user_address" in t && (
|
|
1902
|
-
const g = [...l,
|
|
1903
|
-
g.length > Qe && g.splice(0, g.length - Qe), localStorage.setItem(
|
|
1901
|
+
"user_address" in t && (d.user_address = t.user_address);
|
|
1902
|
+
const g = [...l, d];
|
|
1903
|
+
g.length > Qe && g.splice(0, g.length - Qe), localStorage.setItem(n, JSON.stringify(g));
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
|
-
const
|
|
1908
|
-
version:
|
|
1907
|
+
const fn = "7.3.0", dn = {
|
|
1908
|
+
version: fn
|
|
1909
1909
|
};
|
|
1910
|
-
class
|
|
1910
|
+
class hn {
|
|
1911
1911
|
constructor(t) {
|
|
1912
1912
|
C(this, "client");
|
|
1913
1913
|
C(this, "defaultQueryParams");
|
|
@@ -1915,7 +1915,7 @@ class hr {
|
|
|
1915
1915
|
...t,
|
|
1916
1916
|
headers: {
|
|
1917
1917
|
Authorization: `Bearer ${t.apiKey}`,
|
|
1918
|
-
"X-Fuul-Sdk-Version":
|
|
1918
|
+
"X-Fuul-Sdk-Version": dn.version
|
|
1919
1919
|
}
|
|
1920
1920
|
}), this.defaultQueryParams = t.queryParams || {};
|
|
1921
1921
|
}
|
|
@@ -1961,69 +1961,7 @@ class hr {
|
|
|
1961
1961
|
});
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
|
-
class
|
|
1965
|
-
constructor(t) {
|
|
1966
|
-
C(this, "httpClient");
|
|
1967
|
-
C(this, "_debug");
|
|
1968
|
-
this.httpClient = t.httpClient, this._debug = t.debug;
|
|
1969
|
-
}
|
|
1970
|
-
async listUserInviteCodes(t) {
|
|
1971
|
-
return (await this.httpClient.get({
|
|
1972
|
-
path: "/invite_codes",
|
|
1973
|
-
queryParams: {
|
|
1974
|
-
user_identifier: t.user_identifier,
|
|
1975
|
-
user_identifier_type: t.user_identifier_type,
|
|
1976
|
-
page: t.page,
|
|
1977
|
-
page_size: t.page_size
|
|
1978
|
-
}
|
|
1979
|
-
})).data;
|
|
1980
|
-
}
|
|
1981
|
-
async generateInviteCodes(t) {
|
|
1982
|
-
return (await this.httpClient.post({
|
|
1983
|
-
path: "/invite_codes",
|
|
1984
|
-
queryParams: {
|
|
1985
|
-
user_identifier: t.user_identifier,
|
|
1986
|
-
user_identifier_type: t.user_identifier_type,
|
|
1987
|
-
quantity: t.quantity,
|
|
1988
|
-
max_uses: t.max_uses
|
|
1989
|
-
}
|
|
1990
|
-
})).data;
|
|
1991
|
-
}
|
|
1992
|
-
async getInvitationStatus(t) {
|
|
1993
|
-
return (await this.httpClient.get({
|
|
1994
|
-
path: "/invite_codes/status",
|
|
1995
|
-
queryParams: {
|
|
1996
|
-
user_identifier: t.user_identifier,
|
|
1997
|
-
user_identifier_type: t.user_identifier_type
|
|
1998
|
-
}
|
|
1999
|
-
})).data;
|
|
2000
|
-
}
|
|
2001
|
-
async checkInviteCode(t) {
|
|
2002
|
-
return (await this.httpClient.get({
|
|
2003
|
-
path: "/invite_codes/check",
|
|
2004
|
-
queryParams: {
|
|
2005
|
-
code: t.code
|
|
2006
|
-
}
|
|
2007
|
-
})).data;
|
|
2008
|
-
}
|
|
2009
|
-
async useInviteCode(t) {
|
|
2010
|
-
const { code: n, user_identifier: r, user_identifier_type: s, signature: o, signature_message: i, chain_id: c } = t;
|
|
2011
|
-
await this.httpClient.patch({
|
|
2012
|
-
path: "/invite_codes/use",
|
|
2013
|
-
queryParams: {
|
|
2014
|
-
code: n,
|
|
2015
|
-
user_identifier: r,
|
|
2016
|
-
user_identifier_type: s,
|
|
2017
|
-
chain_id: c
|
|
2018
|
-
},
|
|
2019
|
-
postData: {
|
|
2020
|
-
signature: o,
|
|
2021
|
-
signature_message: i
|
|
2022
|
-
}
|
|
2023
|
-
});
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
class mr {
|
|
1964
|
+
class pn {
|
|
2027
1965
|
constructor(t) {
|
|
2028
1966
|
C(this, "httpClient");
|
|
2029
1967
|
this.httpClient = t.httpClient;
|
|
@@ -2048,7 +1986,7 @@ class mr {
|
|
|
2048
1986
|
}
|
|
2049
1987
|
}
|
|
2050
1988
|
const z = "/payouts";
|
|
2051
|
-
class
|
|
1989
|
+
class mn {
|
|
2052
1990
|
constructor(t) {
|
|
2053
1991
|
C(this, "httpClient");
|
|
2054
1992
|
C(this, "_debug");
|
|
@@ -2085,58 +2023,127 @@ class yr {
|
|
|
2085
2023
|
})).data;
|
|
2086
2024
|
}
|
|
2087
2025
|
}
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2026
|
+
class yn {
|
|
2027
|
+
constructor(t) {
|
|
2028
|
+
C(this, "httpClient");
|
|
2029
|
+
C(this, "_debug");
|
|
2030
|
+
this.httpClient = t.httpClient, this._debug = t.debug;
|
|
2031
|
+
}
|
|
2032
|
+
async listUserReferralCodes(t) {
|
|
2033
|
+
return (await this.httpClient.get({
|
|
2034
|
+
path: "/referral_codes",
|
|
2035
|
+
queryParams: {
|
|
2036
|
+
user_identifier: t.user_identifier,
|
|
2037
|
+
user_identifier_type: t.user_identifier_type,
|
|
2038
|
+
page: t.page,
|
|
2039
|
+
page_size: t.page_size
|
|
2040
|
+
}
|
|
2041
|
+
})).data;
|
|
2042
|
+
}
|
|
2043
|
+
async generateReferralCodes(t) {
|
|
2044
|
+
return (await this.httpClient.post({
|
|
2045
|
+
path: "/referral_codes",
|
|
2046
|
+
queryParams: {
|
|
2047
|
+
user_identifier: t.user_identifier,
|
|
2048
|
+
user_identifier_type: t.user_identifier_type,
|
|
2049
|
+
quantity: t.quantity,
|
|
2050
|
+
max_uses: t.max_uses
|
|
2051
|
+
}
|
|
2052
|
+
})).data;
|
|
2053
|
+
}
|
|
2054
|
+
async getReferralStatus(t) {
|
|
2055
|
+
return (await this.httpClient.get({
|
|
2056
|
+
path: "/referral_codes/status",
|
|
2057
|
+
queryParams: {
|
|
2058
|
+
user_identifier: t.user_identifier,
|
|
2059
|
+
user_identifier_type: t.user_identifier_type
|
|
2060
|
+
}
|
|
2061
|
+
})).data;
|
|
2062
|
+
}
|
|
2063
|
+
async getReferralCode(t) {
|
|
2064
|
+
return (await this.httpClient.get({
|
|
2065
|
+
path: `/referral_codes/${t.code}`
|
|
2066
|
+
})).data;
|
|
2067
|
+
}
|
|
2068
|
+
async useReferralCode(t) {
|
|
2069
|
+
const { code: r, user_identifier: n, user_identifier_type: s, signature: o, signature_message: i, chain_id: c } = t;
|
|
2070
|
+
await this.httpClient.patch({
|
|
2071
|
+
path: `/referral_codes/${r}/use`,
|
|
2072
|
+
queryParams: {
|
|
2073
|
+
user_identifier: n,
|
|
2074
|
+
user_identifier_type: s,
|
|
2075
|
+
chain_id: c
|
|
2076
|
+
},
|
|
2077
|
+
postData: {
|
|
2078
|
+
signature: o,
|
|
2079
|
+
signature_message: i
|
|
2080
|
+
}
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
async updateReferralCode(t) {
|
|
2084
|
+
await this.httpClient.patch({
|
|
2085
|
+
path: "/referral_codes",
|
|
2086
|
+
queryParams: {
|
|
2087
|
+
code: t.code
|
|
2088
|
+
},
|
|
2089
|
+
postData: {
|
|
2090
|
+
max_uses: t.max_uses
|
|
2091
|
+
}
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
const gn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
2096
|
+
let wn = (e = 21) => {
|
|
2097
|
+
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
2091
2098
|
for (; e--; )
|
|
2092
|
-
t +=
|
|
2099
|
+
t += gn[r[e] & 63];
|
|
2093
2100
|
return t;
|
|
2094
2101
|
};
|
|
2095
|
-
const
|
|
2096
|
-
const
|
|
2097
|
-
if (
|
|
2098
|
-
return
|
|
2102
|
+
const bn = "fuul.tracking_id", Ae = () => Tn(bn, () => wn()), Xe = () => j("af") || j("referrer"), En = () => document.referrer, Sn = () => An(), Cn = () => j("category"), _n = () => j("title"), Rn = () => j("tag"), Tn = (e, t) => {
|
|
2103
|
+
const r = localStorage.getItem(e);
|
|
2104
|
+
if (r)
|
|
2105
|
+
return r;
|
|
2099
2106
|
{
|
|
2100
|
-
const
|
|
2101
|
-
return
|
|
2107
|
+
const n = t();
|
|
2108
|
+
return n ? localStorage.setItem(e, n) : localStorage.removeItem(e), n;
|
|
2102
2109
|
}
|
|
2103
|
-
},
|
|
2104
|
-
const e =
|
|
2110
|
+
}, j = (e) => new URLSearchParams(window.location.search).get(e), An = () => {
|
|
2111
|
+
const e = j("source");
|
|
2105
2112
|
if (e)
|
|
2106
2113
|
return e;
|
|
2107
|
-
},
|
|
2108
|
-
class
|
|
2114
|
+
}, Pn = "/user";
|
|
2115
|
+
class On {
|
|
2109
2116
|
constructor(t) {
|
|
2110
2117
|
C(this, "httpClient");
|
|
2111
2118
|
this.httpClient = t.httpClient;
|
|
2112
2119
|
}
|
|
2113
2120
|
async getUserReferrer(t) {
|
|
2114
|
-
return (await this.httpClient.get({ path: `${
|
|
2121
|
+
return (await this.httpClient.get({ path: `${Pn}/referrer`, queryParams: { ...t } })).data;
|
|
2115
2122
|
}
|
|
2116
2123
|
}
|
|
2117
|
-
const
|
|
2118
|
-
let
|
|
2119
|
-
function
|
|
2120
|
-
|
|
2124
|
+
const xn = "https://api.fuul.xyz/api/v1/";
|
|
2125
|
+
let F = !1, Ce = !1, Pe, L, Ct, _t, H, fe, K, Rt, de, v;
|
|
2126
|
+
function Nn(e) {
|
|
2127
|
+
F = !!e.debug, !Ce && (Pe = e.apiKey, rs(), L = ns(e.baseApiUrl ?? xn, e.defaultQueryParams ?? {}), Ct = new an({ httpClient: L, debug: F }), fe = new ln({ httpClient: L, debug: F }), H = new nn({ httpClient: L, debug: F }), K = new mn({ httpClient: L, debug: F }), _t = new On({ httpClient: L }), Rt = new on({ httpClient: L, debug: F }), de = new pn({ httpClient: L }), v = new yn({ httpClient: L, debug: F }), Ce = !0, F && console.debug("Fuul SDK: init() complete"));
|
|
2121
2128
|
}
|
|
2122
|
-
function
|
|
2129
|
+
function R() {
|
|
2123
2130
|
if (!Ce)
|
|
2124
2131
|
throw new Error("Fuul SDK: You need to call init() to initialize the library before using any methods");
|
|
2125
2132
|
}
|
|
2126
|
-
async function
|
|
2127
|
-
|
|
2128
|
-
const
|
|
2133
|
+
async function Un(e, t) {
|
|
2134
|
+
R(), Oe(), xe();
|
|
2135
|
+
const r = {
|
|
2129
2136
|
name: e,
|
|
2130
2137
|
args: t ?? {},
|
|
2131
2138
|
metadata: {
|
|
2132
2139
|
tracking_id: Ae()
|
|
2133
2140
|
}
|
|
2134
2141
|
};
|
|
2135
|
-
await
|
|
2142
|
+
await fe.sendEvent(r);
|
|
2136
2143
|
}
|
|
2137
|
-
async function
|
|
2138
|
-
|
|
2139
|
-
const
|
|
2144
|
+
async function Ln(e, t) {
|
|
2145
|
+
R(), Oe(), xe();
|
|
2146
|
+
const r = {
|
|
2140
2147
|
name: "pageview",
|
|
2141
2148
|
args: {
|
|
2142
2149
|
page: e ?? document.location.pathname,
|
|
@@ -2144,20 +2151,20 @@ async function Lr(e, t) {
|
|
|
2144
2151
|
},
|
|
2145
2152
|
metadata: {
|
|
2146
2153
|
tracking_id: Ae(),
|
|
2147
|
-
referrer_url:
|
|
2148
|
-
source:
|
|
2154
|
+
referrer_url: En(),
|
|
2155
|
+
source: Sn(),
|
|
2149
2156
|
affiliate_id: Xe() ?? void 0,
|
|
2150
2157
|
referrer: Xe() ?? void 0,
|
|
2151
|
-
category:
|
|
2152
|
-
title:
|
|
2153
|
-
tag:
|
|
2158
|
+
category: Cn() ?? void 0,
|
|
2159
|
+
title: _n() ?? void 0,
|
|
2160
|
+
tag: Rn() ?? void 0
|
|
2154
2161
|
}
|
|
2155
2162
|
};
|
|
2156
|
-
await
|
|
2163
|
+
await fe.sendEvent(r, t);
|
|
2157
2164
|
}
|
|
2158
|
-
async function
|
|
2159
|
-
|
|
2160
|
-
const
|
|
2165
|
+
async function Dn(e, t) {
|
|
2166
|
+
R(), Oe(), xe();
|
|
2167
|
+
const r = {
|
|
2161
2168
|
name: "connect_wallet",
|
|
2162
2169
|
user: {
|
|
2163
2170
|
identifier: e.identifier,
|
|
@@ -2171,10 +2178,10 @@ async function Fr(e, t) {
|
|
|
2171
2178
|
tracking_id: Ae()
|
|
2172
2179
|
}
|
|
2173
2180
|
};
|
|
2174
|
-
e != null && e.signature && (
|
|
2181
|
+
e != null && e.signature && (r.signature = e == null ? void 0 : e.signature, r.signature_message = e == null ? void 0 : e.message), e != null && e.signaturePublicKey && (r.signature_public_key = e.signaturePublicKey), e != null && e.accountChainId && (r.account_chain_id = e.accountChainId), await fe.sendEvent(r, t);
|
|
2175
2182
|
}
|
|
2176
|
-
async function
|
|
2177
|
-
|
|
2183
|
+
async function Fn(e) {
|
|
2184
|
+
R(), await H.create(
|
|
2178
2185
|
e.userIdentifier,
|
|
2179
2186
|
e.identifierType,
|
|
2180
2187
|
e.code,
|
|
@@ -2183,8 +2190,8 @@ async function Dr(e) {
|
|
|
2183
2190
|
e.accountChainId
|
|
2184
2191
|
);
|
|
2185
2192
|
}
|
|
2186
|
-
async function
|
|
2187
|
-
|
|
2193
|
+
async function kn(e) {
|
|
2194
|
+
R(), await H.update(
|
|
2188
2195
|
e.userIdentifier,
|
|
2189
2196
|
e.identifierType,
|
|
2190
2197
|
e.code,
|
|
@@ -2193,66 +2200,69 @@ async function kr(e) {
|
|
|
2193
2200
|
e.accountChainId
|
|
2194
2201
|
);
|
|
2195
2202
|
}
|
|
2196
|
-
async function
|
|
2197
|
-
return
|
|
2203
|
+
async function Bn(e, t) {
|
|
2204
|
+
return R(), await H.getCode(e, t);
|
|
2198
2205
|
}
|
|
2199
|
-
async function
|
|
2200
|
-
return
|
|
2206
|
+
async function qn(e) {
|
|
2207
|
+
return R(), await H.isCodeFree(e);
|
|
2201
2208
|
}
|
|
2202
|
-
async function
|
|
2203
|
-
|
|
2204
|
-
const s = await
|
|
2209
|
+
async function In(e, t, r, n) {
|
|
2210
|
+
R();
|
|
2211
|
+
const s = await H.getCode(t, r), o = new URLSearchParams({
|
|
2205
2212
|
af: s ?? t
|
|
2206
2213
|
});
|
|
2207
|
-
return
|
|
2214
|
+
return n != null && n.title && o.append("af_title", n.title), n != null && n.format && o.append("af_format", n.format), n != null && n.place && o.append("af_place", n.place), `${e}?${o.toString()}`;
|
|
2208
2215
|
}
|
|
2209
|
-
function
|
|
2210
|
-
return
|
|
2216
|
+
function vn(e) {
|
|
2217
|
+
return de.getPayoutsLeaderboard(e);
|
|
2211
2218
|
}
|
|
2212
|
-
function
|
|
2213
|
-
return
|
|
2219
|
+
function jn(e) {
|
|
2220
|
+
return de.getPointsLeaderboard(e);
|
|
2214
2221
|
}
|
|
2215
|
-
function
|
|
2216
|
-
return
|
|
2222
|
+
function $n(e) {
|
|
2223
|
+
return de.getReferredUsersLeaderboard(e);
|
|
2217
2224
|
}
|
|
2218
|
-
function
|
|
2219
|
-
return
|
|
2225
|
+
function Mn(e) {
|
|
2226
|
+
return K.getVolumeLeaderboard(e);
|
|
2220
2227
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return
|
|
2228
|
+
function Hn(e) {
|
|
2229
|
+
return K.getUserPayoutsByConversion(e);
|
|
2223
2230
|
}
|
|
2224
|
-
function
|
|
2225
|
-
return
|
|
2231
|
+
function Kn(e) {
|
|
2232
|
+
return K.getUserPointsByConversion(e);
|
|
2226
2233
|
}
|
|
2227
|
-
function
|
|
2228
|
-
return
|
|
2234
|
+
function Vn(e) {
|
|
2235
|
+
return K.getUserPayoutMovements(e);
|
|
2229
2236
|
}
|
|
2230
|
-
function
|
|
2231
|
-
return
|
|
2237
|
+
function zn(e) {
|
|
2238
|
+
return K.getUserPointsMovements(e);
|
|
2232
2239
|
}
|
|
2233
|
-
async function
|
|
2234
|
-
return
|
|
2240
|
+
async function Jn(e) {
|
|
2241
|
+
return R(), Ct.getAll(e);
|
|
2235
2242
|
}
|
|
2236
|
-
async function
|
|
2237
|
-
return
|
|
2243
|
+
async function Wn(e) {
|
|
2244
|
+
return R(), _t.getUserReferrer(e);
|
|
2238
2245
|
}
|
|
2239
|
-
async function
|
|
2240
|
-
return
|
|
2246
|
+
async function Qn(e) {
|
|
2247
|
+
return R(), Rt.getUserAudiences(e);
|
|
2241
2248
|
}
|
|
2242
|
-
async function
|
|
2243
|
-
return
|
|
2249
|
+
async function Xn(e) {
|
|
2250
|
+
return R(), v.listUserReferralCodes(e);
|
|
2244
2251
|
}
|
|
2245
|
-
async function
|
|
2246
|
-
return
|
|
2252
|
+
async function Yn(e) {
|
|
2253
|
+
return R(), v.generateReferralCodes(e);
|
|
2247
2254
|
}
|
|
2248
|
-
async function
|
|
2249
|
-
return
|
|
2255
|
+
async function Gn(e) {
|
|
2256
|
+
return R(), v.getReferralStatus(e);
|
|
2250
2257
|
}
|
|
2251
|
-
async function
|
|
2252
|
-
return
|
|
2258
|
+
async function Zn(e) {
|
|
2259
|
+
return R(), v.getReferralCode(e);
|
|
2253
2260
|
}
|
|
2254
2261
|
async function es(e) {
|
|
2255
|
-
return
|
|
2262
|
+
return R(), v.useReferralCode(e);
|
|
2263
|
+
}
|
|
2264
|
+
async function ts(e) {
|
|
2265
|
+
return R(), v.updateReferralCode(e);
|
|
2256
2266
|
}
|
|
2257
2267
|
function Oe() {
|
|
2258
2268
|
if (typeof window > "u" || typeof document > "u")
|
|
@@ -2262,51 +2272,52 @@ function xe() {
|
|
|
2262
2272
|
if (navigator.webdriver)
|
|
2263
2273
|
throw new Error("Fuul SDK: Error");
|
|
2264
2274
|
}
|
|
2265
|
-
function
|
|
2275
|
+
function rs() {
|
|
2266
2276
|
if (!Pe)
|
|
2267
2277
|
throw new Error("Fuul SDK: Invalid API key");
|
|
2268
2278
|
}
|
|
2269
2279
|
function ns(e, t) {
|
|
2270
|
-
return new
|
|
2280
|
+
return new hn({
|
|
2271
2281
|
baseURL: e,
|
|
2272
2282
|
timeout: 3e4,
|
|
2273
2283
|
apiKey: Pe,
|
|
2274
2284
|
queryParams: t
|
|
2275
2285
|
});
|
|
2276
2286
|
}
|
|
2277
|
-
const
|
|
2278
|
-
init:
|
|
2279
|
-
sendEvent:
|
|
2280
|
-
sendPageview:
|
|
2281
|
-
identifyUser:
|
|
2282
|
-
generateTrackingLink:
|
|
2283
|
-
getConversions:
|
|
2284
|
-
createAffiliateCode:
|
|
2285
|
-
updateAffiliateCode:
|
|
2286
|
-
getAffiliateCode:
|
|
2287
|
-
isAffiliateCodeFree:
|
|
2288
|
-
getPayoutsLeaderboard:
|
|
2289
|
-
getPointsLeaderboard:
|
|
2290
|
-
getReferredUsersLeaderboard:
|
|
2291
|
-
getUserAudiences:
|
|
2292
|
-
getUserPayoutsByConversion:
|
|
2293
|
-
getUserPointsByConversion:
|
|
2294
|
-
getUserPointsMovements:
|
|
2295
|
-
getUserPayoutMovements:
|
|
2296
|
-
getUserReferrer:
|
|
2297
|
-
getVolumeLeaderboard:
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2287
|
+
const _s = {
|
|
2288
|
+
init: Nn,
|
|
2289
|
+
sendEvent: Un,
|
|
2290
|
+
sendPageview: Ln,
|
|
2291
|
+
identifyUser: Dn,
|
|
2292
|
+
generateTrackingLink: In,
|
|
2293
|
+
getConversions: Jn,
|
|
2294
|
+
createAffiliateCode: Fn,
|
|
2295
|
+
updateAffiliateCode: kn,
|
|
2296
|
+
getAffiliateCode: Bn,
|
|
2297
|
+
isAffiliateCodeFree: qn,
|
|
2298
|
+
getPayoutsLeaderboard: vn,
|
|
2299
|
+
getPointsLeaderboard: jn,
|
|
2300
|
+
getReferredUsersLeaderboard: $n,
|
|
2301
|
+
getUserAudiences: Qn,
|
|
2302
|
+
getUserPayoutsByConversion: Hn,
|
|
2303
|
+
getUserPointsByConversion: Kn,
|
|
2304
|
+
getUserPointsMovements: zn,
|
|
2305
|
+
getUserPayoutMovements: Vn,
|
|
2306
|
+
getUserReferrer: Wn,
|
|
2307
|
+
getVolumeLeaderboard: Mn,
|
|
2308
|
+
listUserReferralCodes: Xn,
|
|
2309
|
+
generateReferralCodes: Yn,
|
|
2310
|
+
getReferralStatus: Gn,
|
|
2311
|
+
getReferralCode: Zn,
|
|
2312
|
+
useReferralCode: es,
|
|
2313
|
+
updateReferralCode: ts
|
|
2303
2314
|
};
|
|
2304
|
-
var
|
|
2315
|
+
var ss = /* @__PURE__ */ ((e) => (e.EvmAddress = "evm_address", e.SolanaAddress = "solana_address", e.Email = "email", e))(ss || {});
|
|
2305
2316
|
export {
|
|
2306
2317
|
Ve as AddressInUseError,
|
|
2307
2318
|
ze as CodeInUseError,
|
|
2308
|
-
|
|
2319
|
+
_s as Fuul,
|
|
2309
2320
|
Je as InvalidSignatureError,
|
|
2310
|
-
|
|
2321
|
+
ss as UserIdentifierType,
|
|
2311
2322
|
Ke as ValidationError
|
|
2312
2323
|
};
|