@streamlayer/react 0.26.0 → 0.26.1
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/lib/{app-5daf0c14.cjs → app-037724c5.cjs} +1 -1
- package/lib/{app-4f52ea4a.js → app-215a7e7d.js} +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/es/auth.js +2 -2
- package/lib/es/index.js +2 -2
- package/lib/es/masters.js +109 -126
- package/lib/es/points.js +4 -4
- package/lib/{index-98996b43.js → index-98298310.js} +924 -869
- package/lib/{index-7542e06a.cjs → index-e2714a2f.cjs} +4 -4
- package/lib/style.css +1 -1
- package/package.json +8 -8
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { jsx as p, jsxs as
|
|
1
|
+
import { jsx as p, jsxs as L, Fragment as Oe } from "react/jsx-runtime";
|
|
2
2
|
import * as M from "react";
|
|
3
|
-
import Ke, { createContext as
|
|
4
|
-
import { useStreamLayerApp as
|
|
3
|
+
import Ke, { createContext as bi, useMemo as De, useCallback as He, useState as K, useEffect as bt, useRef as Ri, Component as _i, createElement as rt, PureComponent as fi } from "react";
|
|
4
|
+
import { useStreamLayerApp as Oi } from "./es/useStreamLayerApp.js";
|
|
5
5
|
import { FeatureStatus as Ve } from "@streamlayer/sdk-web-interfaces";
|
|
6
|
-
import { QuestionType as
|
|
6
|
+
import { QuestionType as H, PickHistoryStatus as et, QuestionStatus as Rt, QuestionImages as Me, FeatureType as Yt } from "@streamlayer/sdk-web-types";
|
|
7
7
|
import { AvailableFeatures as Ui } from "@streamlayer/sdk-web-features";
|
|
8
8
|
import "@streamlayer/sdk-web-api";
|
|
9
9
|
import { Storage as $i } from "@streamlayer/sdk-web-storage";
|
|
10
10
|
import { useStore as Z } from "@nanostores/react";
|
|
11
|
-
import { NotificationType as
|
|
11
|
+
import { NotificationType as Vt } from "@streamlayer/sdk-web-notifications";
|
|
12
12
|
import { CountdownCircleTimer as Fi } from "react-countdown-circle-timer";
|
|
13
13
|
import "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
14
14
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
15
15
|
import { SdkOverlayType as tt } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
16
16
|
import "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
17
17
|
import "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
18
|
-
import { Users as
|
|
18
|
+
import { Users as _t } from "@streamlayer/sl-eslib/users/users_connect";
|
|
19
19
|
import Pi from "react-auth-code-input";
|
|
20
20
|
import Yi, { isValidPhoneNumber as Vi, formatPhoneNumberIntl as Zi } from "react-phone-number-input";
|
|
21
|
-
import { createPromiseClient as
|
|
22
|
-
import { createGrpcWebTransport as
|
|
21
|
+
import { createPromiseClient as Ot } from "@connectrpc/connect";
|
|
22
|
+
import { createGrpcWebTransport as Ut } from "@connectrpc/connect-web";
|
|
23
23
|
var Qi = /* @__PURE__ */ ((r) => (r[r.UNSET = 0] = "UNSET", r[r.CONNECTED = 1] = "CONNECTED", r[r.READY = 2] = "READY", r))(Qi || {});
|
|
24
|
-
const Hi =
|
|
24
|
+
const Hi = bi({
|
|
25
25
|
status: 0,
|
|
26
26
|
sdk: null
|
|
27
|
-
}),
|
|
27
|
+
}), W0 = ({
|
|
28
28
|
sdkKey: r,
|
|
29
29
|
plugins: o,
|
|
30
30
|
children: l,
|
|
31
31
|
production: h = !0,
|
|
32
32
|
autoEnable: d = !0
|
|
33
33
|
}) => {
|
|
34
|
-
const g =
|
|
34
|
+
const g = Oi(r, o, h, d), f = De(() => g ? {
|
|
35
35
|
sdk: g,
|
|
36
36
|
status: 2
|
|
37
37
|
/* READY */
|
|
38
38
|
} : { status: 1, sdk: null }, [g]);
|
|
39
39
|
return /* @__PURE__ */ p(Hi.Provider, { value: f, children: l });
|
|
40
|
-
},
|
|
40
|
+
}, $t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CiAgPHJlY3QgeD0iOC4yNSIgeT0iNyIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcpIiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHg9IjciIHk9IjE1Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSA3IDE1Ljc1KSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";
|
|
41
41
|
function Gi(r) {
|
|
42
42
|
var o = /* @__PURE__ */ Object.create(null);
|
|
43
43
|
return function(l) {
|
|
@@ -64,14 +64,14 @@ var Wi = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
64
64
|
for (const g in l)
|
|
65
65
|
Object.prototype.hasOwnProperty.call(l, g) && d.push(l[g]);
|
|
66
66
|
return d.push(...h), d.join(" ");
|
|
67
|
-
},
|
|
67
|
+
}, Zt = qi, Ji = (r) => r.toUpperCase() === r, Xi = (r) => (o) => r.indexOf(o) === -1, gi = (r, o) => {
|
|
68
68
|
const l = {};
|
|
69
69
|
return Object.keys(r).filter(Xi(o)).forEach((h) => {
|
|
70
70
|
l[h] = r[h];
|
|
71
71
|
}), l;
|
|
72
72
|
};
|
|
73
73
|
function Ki(r, o, l) {
|
|
74
|
-
const h =
|
|
74
|
+
const h = gi(o, l);
|
|
75
75
|
if (!r) {
|
|
76
76
|
const d = typeof mt == "function" ? { default: mt } : mt;
|
|
77
77
|
Object.keys(h).forEach((g) => {
|
|
@@ -86,29 +86,29 @@ function tr(r) {
|
|
|
86
86
|
let o = "";
|
|
87
87
|
return (l) => {
|
|
88
88
|
const h = (g, f) => {
|
|
89
|
-
const { as: s = r, class: I = o } = g,
|
|
89
|
+
const { as: s = r, class: I = o } = g, N = l.propsAsIs === void 0 ? !(typeof s == "string" && s.indexOf("-") === -1 && !Ji(s[0])) : l.propsAsIs, E = Ki(N, g, [
|
|
90
90
|
"as",
|
|
91
91
|
"class"
|
|
92
92
|
]);
|
|
93
|
-
E.ref = f, E.className = l.atomic ?
|
|
93
|
+
E.ref = f, E.className = l.atomic ? Zt(l.class, E.className || I) : Zt(E.className || I, l.class);
|
|
94
94
|
const { vars: x } = l;
|
|
95
95
|
if (x) {
|
|
96
|
-
const
|
|
96
|
+
const C = {};
|
|
97
97
|
for (const y in x) {
|
|
98
|
-
const
|
|
99
|
-
er(S, l.name),
|
|
98
|
+
const A = x[y], w = A[0], T = A[1] || "", S = typeof w == "function" ? w(g) : w;
|
|
99
|
+
er(S, l.name), C[`--${y}`] = `${S}${T}`;
|
|
100
100
|
}
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}), E.style =
|
|
101
|
+
const v = E.style || {}, z = Object.keys(v);
|
|
102
|
+
z.length > 0 && z.forEach((y) => {
|
|
103
|
+
C[y] = v[y];
|
|
104
|
+
}), E.style = C;
|
|
105
105
|
}
|
|
106
106
|
return r.__linaria && r !== s ? (E.as = s, Ke.createElement(r, E)) : Ke.createElement(s, E);
|
|
107
107
|
}, d = Ke.forwardRef ? Ke.forwardRef(h) : (
|
|
108
108
|
// React.forwardRef won't available on older React versions and in Preact
|
|
109
109
|
// Fallback to a innerRef prop in that case
|
|
110
110
|
(g) => {
|
|
111
|
-
const f =
|
|
111
|
+
const f = gi(g, ["innerRef"]);
|
|
112
112
|
return h(f, g.innerRef);
|
|
113
113
|
}
|
|
114
114
|
);
|
|
@@ -155,18 +155,18 @@ const ir = /* @__PURE__ */ m("div")({
|
|
|
155
155
|
name: "s",
|
|
156
156
|
class: "s12ztjhk",
|
|
157
157
|
propsAsIs: !1
|
|
158
|
-
}),
|
|
158
|
+
}), mi = ({ close: r, action: o, data: { color: l, icon: h, title: d } }) => {
|
|
159
159
|
const g = He(
|
|
160
160
|
(f) => {
|
|
161
161
|
f.stopPropagation(), r == null || r();
|
|
162
162
|
},
|
|
163
163
|
[r]
|
|
164
164
|
);
|
|
165
|
-
return /* @__PURE__ */
|
|
165
|
+
return /* @__PURE__ */ L(ir, { onClick: o, children: [
|
|
166
166
|
/* @__PURE__ */ p(rr, { style: l ? { backgroundColor: l } : {}, children: h && /* @__PURE__ */ p(nr, { alt: "in-app-icon", src: h }) }),
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ L(or, { children: [
|
|
168
168
|
/* @__PURE__ */ p(sr, { children: /* @__PURE__ */ p(ar, { id: "in-app-title", children: d || "" }) }),
|
|
169
|
-
/* @__PURE__ */ p(lr, { children: /* @__PURE__ */ p(cr, { onClick: g, children: /* @__PURE__ */ p(ur, { alt: "close-in-app-icon", src:
|
|
169
|
+
/* @__PURE__ */ p(lr, { children: /* @__PURE__ */ p(cr, { onClick: g, children: /* @__PURE__ */ p(ur, { alt: "close-in-app-icon", src: $t }) }) })
|
|
170
170
|
] })
|
|
171
171
|
] });
|
|
172
172
|
}, hr = {
|
|
@@ -232,19 +232,19 @@ const pr = [Le.PRIMARY_GREEN1, Le.SECONDARY_RED1, Le.SECONDARY_RED1], fr = [10,
|
|
|
232
232
|
name: "A",
|
|
233
233
|
class: "a1f928zy",
|
|
234
234
|
propsAsIs: !1
|
|
235
|
-
}), mr = Le.SECONDARY_GREEN6,
|
|
235
|
+
}), mr = Le.SECONDARY_GREEN6, Qt = Le.SECONDARY_RED3, Ir = Le.NEUTRALS_GRAY3, Ii = ({
|
|
236
236
|
isPlaying: r = !0,
|
|
237
237
|
duration: o = 30,
|
|
238
238
|
onTimerExpired: l
|
|
239
239
|
}) => {
|
|
240
|
-
const [h, d] = K(o > 10 ? mr :
|
|
240
|
+
const [h, d] = K(o > 10 ? mr : Qt), g = ({
|
|
241
241
|
remainingTime: I
|
|
242
242
|
}) => /* @__PURE__ */ p(gr, {
|
|
243
243
|
children: I
|
|
244
244
|
}), f = He(() => {
|
|
245
245
|
l == null || l(), d(Ir);
|
|
246
246
|
}, [l, d]), s = He((I) => {
|
|
247
|
-
I === 10 && d(
|
|
247
|
+
I === 10 && d(Qt);
|
|
248
248
|
}, [d]);
|
|
249
249
|
return /* @__PURE__ */ p(Fi, {
|
|
250
250
|
isPlaying: r,
|
|
@@ -260,31 +260,31 @@ const pr = [Le.PRIMARY_GREEN1, Le.SECONDARY_RED1, Le.SECONDARY_RED1], fr = [10,
|
|
|
260
260
|
children: g
|
|
261
261
|
});
|
|
262
262
|
}, yr = async (r, o) => {
|
|
263
|
-
const l =
|
|
263
|
+
const l = Ut({
|
|
264
264
|
baseUrl: r
|
|
265
265
|
});
|
|
266
|
-
return await _t
|
|
266
|
+
return await Ot(_t, l).requestPassword({ id: o }), !0;
|
|
267
267
|
}, Mr = async (r, o) => {
|
|
268
|
-
const l =
|
|
268
|
+
const l = Ut({
|
|
269
269
|
baseUrl: r
|
|
270
270
|
});
|
|
271
|
-
return await _t
|
|
272
|
-
},
|
|
271
|
+
return await Ot(_t, l).register({ id: o }), !0;
|
|
272
|
+
}, Cr = async (r, o, l) => {
|
|
273
273
|
var h;
|
|
274
|
-
const d =
|
|
274
|
+
const d = Ut({
|
|
275
275
|
baseUrl: r
|
|
276
|
-
}), g = await _t
|
|
276
|
+
}), g = await Ot(_t, d).login({ id: o, password: l });
|
|
277
277
|
return (h = g == null ? void 0 : g.meta) == null ? void 0 : h.jwt;
|
|
278
278
|
};
|
|
279
|
-
const
|
|
279
|
+
const wr = /* @__PURE__ */ m("div")({
|
|
280
280
|
name: "n",
|
|
281
281
|
class: "nhpumh7",
|
|
282
282
|
propsAsIs: !1
|
|
283
|
-
}),
|
|
283
|
+
}), Ht = /* @__PURE__ */ m("form")({
|
|
284
284
|
name: "r",
|
|
285
285
|
class: "r1wcng20",
|
|
286
286
|
propsAsIs: !1
|
|
287
|
-
}),
|
|
287
|
+
}), Gt = /* @__PURE__ */ m("div")({
|
|
288
288
|
name: "i",
|
|
289
289
|
class: "i1173pke",
|
|
290
290
|
propsAsIs: !1
|
|
@@ -305,41 +305,41 @@ const Cr = /* @__PURE__ */ m("div")({
|
|
|
305
305
|
class: "dje8inq",
|
|
306
306
|
propsAsIs: !1
|
|
307
307
|
}), Nr = ({ login: r, anonymousLogin: o, host: l }) => {
|
|
308
|
-
const [h, d] = K(""), [g, f] = K(""), [s, I] = K(""),
|
|
308
|
+
const [h, d] = K(""), [g, f] = K(""), [s, I] = K(""), N = async (x) => {
|
|
309
309
|
x.preventDefault();
|
|
310
310
|
try {
|
|
311
|
-
const
|
|
311
|
+
const C = h.replaceAll("+", "");
|
|
312
312
|
try {
|
|
313
|
-
await yr(l,
|
|
313
|
+
await yr(l, C);
|
|
314
314
|
} catch {
|
|
315
|
-
await Mr(l,
|
|
315
|
+
await Mr(l, C);
|
|
316
316
|
}
|
|
317
|
-
f(
|
|
318
|
-
} catch (
|
|
319
|
-
window.alert(
|
|
317
|
+
f(C);
|
|
318
|
+
} catch (C) {
|
|
319
|
+
window.alert(C);
|
|
320
320
|
}
|
|
321
321
|
}, E = async (x) => {
|
|
322
322
|
if (x.preventDefault(), g && s)
|
|
323
323
|
try {
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
} catch (
|
|
327
|
-
window.alert(
|
|
324
|
+
const C = await Cr(l, g, s);
|
|
325
|
+
C && r ? await r(C) : console.log("token", C);
|
|
326
|
+
} catch (C) {
|
|
327
|
+
window.alert(C);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
return /* @__PURE__ */
|
|
331
|
-
!g && /* @__PURE__ */
|
|
332
|
-
/* @__PURE__ */
|
|
333
|
-
/* @__PURE__ */ p(
|
|
330
|
+
return /* @__PURE__ */ L(wr, { children: [
|
|
331
|
+
!g && /* @__PURE__ */ L("div", { children: [
|
|
332
|
+
/* @__PURE__ */ L(Ht, { onSubmit: N, children: [
|
|
333
|
+
/* @__PURE__ */ p(Gt, { children: "Enter your phone number" }),
|
|
334
334
|
/* @__PURE__ */ p(It, { children: "Enter your phone up for number to log in or sign an account." }),
|
|
335
335
|
/* @__PURE__ */ p(Er, { children: /* @__PURE__ */ p(Yi, { value: h, onChange: (x) => d(`${x}`) }) }),
|
|
336
336
|
/* @__PURE__ */ p(yt, { disabled: !Vi(h), type: "submit", children: "request code" })
|
|
337
337
|
] }),
|
|
338
338
|
o && /* @__PURE__ */ p(yt, { style: { display: "block", margin: "auto" }, onClick: o, children: "anonymous login" })
|
|
339
339
|
] }),
|
|
340
|
-
g && /* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */ p(
|
|
342
|
-
/* @__PURE__ */
|
|
340
|
+
g && /* @__PURE__ */ L(Ht, { onSubmit: E, children: [
|
|
341
|
+
/* @__PURE__ */ p(Gt, { children: "Enter Verification Code" }),
|
|
342
|
+
/* @__PURE__ */ L(It, { children: [
|
|
343
343
|
"Please enter the verification code ",
|
|
344
344
|
/* @__PURE__ */ p("br", {}),
|
|
345
345
|
"sent to ",
|
|
@@ -347,11 +347,11 @@ const Cr = /* @__PURE__ */ m("div")({
|
|
|
347
347
|
] }),
|
|
348
348
|
/* @__PURE__ */ p(Ar, { children: /* @__PURE__ */ p(Pi, { autoFocus: !0, allowedCharacters: "numeric", length: 4, onChange: I }) }),
|
|
349
349
|
/* @__PURE__ */ p(yt, { disabled: s.length !== 4, type: "submit", children: "login" }),
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ L(It, { children: [
|
|
351
351
|
"Didn't get 59 the code? ",
|
|
352
352
|
/* @__PURE__ */ p("br", {}),
|
|
353
353
|
"Resend Code in",
|
|
354
|
-
/* @__PURE__ */ p(
|
|
354
|
+
/* @__PURE__ */ p(Ii, { duration: 30, isPlaying: !0 })
|
|
355
355
|
] })
|
|
356
356
|
] })
|
|
357
357
|
] });
|
|
@@ -372,7 +372,7 @@ const xr = /* @__PURE__ */ m("div")({
|
|
|
372
372
|
name: "d",
|
|
373
373
|
class: "d9l6z9i",
|
|
374
374
|
propsAsIs: !1
|
|
375
|
-
}), Lr = ({ graphic: r, headline: o }) => /* @__PURE__ */ p(xr, { children: /* @__PURE__ */
|
|
375
|
+
}), Lr = ({ graphic: r, headline: o }) => /* @__PURE__ */ p(xr, { children: /* @__PURE__ */ L(Tr, { children: [
|
|
376
376
|
/* @__PURE__ */ p(vr, { alt: "graphic-img-instructions", src: r }),
|
|
377
377
|
/* @__PURE__ */ p(Dr, { children: o })
|
|
378
378
|
] }) });
|
|
@@ -408,7 +408,7 @@ const zr = /* @__PURE__ */ m("div")({
|
|
|
408
408
|
inviteCardTitle: r,
|
|
409
409
|
inviteCardSubtext: o,
|
|
410
410
|
primaryColor: l
|
|
411
|
-
}) => /* @__PURE__ */ p(zr, { children: /* @__PURE__ */
|
|
411
|
+
}) => /* @__PURE__ */ p(zr, { children: /* @__PURE__ */ L(Sr, { children: [
|
|
412
412
|
/* @__PURE__ */ p(jr, { style: { backgroundColor: l }, children: /* @__PURE__ */ p(Br, { alt: "invite-game-icon", src: _r }) }),
|
|
413
413
|
/* @__PURE__ */ p(kr, { children: r || "" }),
|
|
414
414
|
/* @__PURE__ */ p(br, { children: o || "" }),
|
|
@@ -439,9 +439,9 @@ const Ur = /* @__PURE__ */ m("div")({
|
|
|
439
439
|
name: "l",
|
|
440
440
|
class: "l1heulx5",
|
|
441
441
|
propsAsIs: !1
|
|
442
|
-
}), Zr = ({ rules: r, rulesTitle: o, primaryColor: l }) => /* @__PURE__ */
|
|
442
|
+
}), Zr = ({ rules: r, rulesTitle: o, primaryColor: l }) => /* @__PURE__ */ L(Ur, { children: [
|
|
443
443
|
/* @__PURE__ */ p($r, { children: o }),
|
|
444
|
-
/* @__PURE__ */ p(Fr, { children: r == null ? void 0 : r.map((h, d) => /* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ p(Fr, { children: r == null ? void 0 : r.map((h, d) => /* @__PURE__ */ L(Pr, { children: [
|
|
445
445
|
/* @__PURE__ */ p(Yr, { style: { backgroundColor: l }, children: d + 1 }),
|
|
446
446
|
/* @__PURE__ */ p(Vr, { children: h })
|
|
447
447
|
] }, d)) })
|
|
@@ -500,42 +500,42 @@ const Qr = /* @__PURE__ */ m("div")({
|
|
|
500
500
|
rulesBtnLabel: f,
|
|
501
501
|
rulesTitle: s,
|
|
502
502
|
primaryColor: I,
|
|
503
|
-
inviteCardTitle:
|
|
503
|
+
inviteCardTitle: N,
|
|
504
504
|
inviteCardSubtext: E,
|
|
505
505
|
inviteCardBtnLabel: x
|
|
506
506
|
}) => {
|
|
507
|
-
const
|
|
507
|
+
const C = async () => {
|
|
508
508
|
await r.submitInplay();
|
|
509
|
-
},
|
|
509
|
+
}, v = () => {
|
|
510
510
|
o();
|
|
511
|
-
}, [
|
|
511
|
+
}, [z, y] = K(0), [A, w] = K($e);
|
|
512
512
|
bt(() => {
|
|
513
|
-
l != null && l.length ?
|
|
513
|
+
l != null && l.length ? w({ ...$e, steps: !0 }) : g != null && g.length ? w({ ...$e, rules: !0 }) : w({ ...$e, inviteCard: !0 });
|
|
514
514
|
}, []);
|
|
515
|
-
const
|
|
516
|
-
l != null && l.length &&
|
|
517
|
-
}, [
|
|
518
|
-
return /* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
515
|
+
const T = He(() => {
|
|
516
|
+
l != null && l.length && z < l.length - 1 ? y((S) => ++S) : g != null && g.length && A.steps ? w({ ...$e, rules: !0 }) : A.rules && w({ ...$e, inviteCard: !0 });
|
|
517
|
+
}, [z, l == null ? void 0 : l.length, g == null ? void 0 : g.length, A, y, w]);
|
|
518
|
+
return /* @__PURE__ */ L(Qr, { children: [
|
|
519
|
+
/* @__PURE__ */ L(Gr, { children: [
|
|
520
520
|
/* @__PURE__ */ p(Wr, { children: h && /* @__PURE__ */ p(Jr, { alt: "sponsor-one-onboarding-icon", src: h }) }),
|
|
521
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ L(qr, { children: [
|
|
522
522
|
d && /* @__PURE__ */ p(Xr, { alt: "sponsor-two-onboarding-icon", src: d }),
|
|
523
|
-
/* @__PURE__ */ p(Kr, { onClick:
|
|
523
|
+
/* @__PURE__ */ p(Kr, { onClick: v, children: /* @__PURE__ */ p(en, { alt: "icon-close-onboarding", src: $t }) })
|
|
524
524
|
] })
|
|
525
525
|
] }),
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
526
|
+
/* @__PURE__ */ L(Hr, { children: [
|
|
527
|
+
A.steps && (l == null ? void 0 : l.length) && /* @__PURE__ */ p(Lr, { graphic: l[z].graphic, headline: l[z].headline }),
|
|
528
|
+
A.rules && /* @__PURE__ */ p(Zr, { rules: g, rulesTitle: s, primaryColor: I }),
|
|
529
|
+
A.inviteCard && /* @__PURE__ */ p(
|
|
530
530
|
Or,
|
|
531
531
|
{
|
|
532
|
-
inviteCardTitle:
|
|
532
|
+
inviteCardTitle: N,
|
|
533
533
|
inviteCardSubtext: E,
|
|
534
534
|
primaryColor: I
|
|
535
535
|
}
|
|
536
536
|
)
|
|
537
537
|
] }),
|
|
538
|
-
/* @__PURE__ */ p(tn, { onClick:
|
|
538
|
+
/* @__PURE__ */ p(tn, { onClick: A.inviteCard ? C : T, children: A.rules ? f || "Got it!" : A.inviteCard ? x || "Play now!" : "Next" })
|
|
539
539
|
] });
|
|
540
540
|
};
|
|
541
541
|
const nn = /* @__PURE__ */ m("div")({
|
|
@@ -556,13 +556,13 @@ const nn = /* @__PURE__ */ m("div")({
|
|
|
556
556
|
propsAsIs: !1
|
|
557
557
|
});
|
|
558
558
|
var nt = /* @__PURE__ */ ((r) => (r.HOME = "home", r.LEADERBOARD = "leaderboard", r))(nt || {});
|
|
559
|
-
const
|
|
560
|
-
/* @__PURE__ */ p(
|
|
559
|
+
const Wt = ({ title: r, active: o, onClick: l }) => /* @__PURE__ */ p(sn, { onClick: l, "data-selected": o, children: /* @__PURE__ */ p(an, { children: r }) }), ln = ({ activePage: r = "home", toggleActivePage: o }) => /* @__PURE__ */ p(nn, { children: /* @__PURE__ */ L(on, { "data-position": r === "home" ? "left" : "right", children: [
|
|
560
|
+
/* @__PURE__ */ p(Wt, { title: "Home", active: r === "home", onClick: () => o(
|
|
561
561
|
"home"
|
|
562
562
|
/* HOME */
|
|
563
563
|
) }),
|
|
564
564
|
/* @__PURE__ */ p(
|
|
565
|
-
|
|
565
|
+
Wt,
|
|
566
566
|
{
|
|
567
567
|
title: "Leader Board",
|
|
568
568
|
active: r === "leaderboard",
|
|
@@ -577,7 +577,7 @@ const cn = /* @__PURE__ */ m("div")({
|
|
|
577
577
|
name: "o",
|
|
578
578
|
class: "oa5apdf",
|
|
579
579
|
propsAsIs: !1
|
|
580
|
-
}),
|
|
580
|
+
}), qt = /* @__PURE__ */ m("button")({
|
|
581
581
|
name: "n",
|
|
582
582
|
class: "n1wh5guy",
|
|
583
583
|
propsAsIs: !1
|
|
@@ -585,18 +585,18 @@ const cn = /* @__PURE__ */ m("div")({
|
|
|
585
585
|
name: "r",
|
|
586
586
|
class: "ro3ktps",
|
|
587
587
|
propsAsIs: !1
|
|
588
|
-
}), hn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==",
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
-
o && /* @__PURE__ */ p(
|
|
588
|
+
}), hn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNNiAxMS45OTlDNiAxMi4xNzI1IDYuMDMxMzQgMTIuMzM0IDYuMDk0MDEgMTIuNDgzN0M2LjE1NjY5IDEyLjYzMzQgNi4yNTQyOCAxMi43NzU2IDYuMzg2OCAxMi45MTAzTDE0LjA0MzYgMjAuNjU2NUMxNC4yNjQ4IDIwLjg4NTUgMTQuNTMyMyAyMSAxNC44NDU5IDIxQzE1LjA2MDcgMjEgMTUuMjU0NCAyMC45NDc1IDE1LjQyNzEgMjAuODQyNkMxNS41OTk4IDIwLjczNzcgMTUuNzM4NCAyMC41OTY1IDE1Ljg0MzEgMjAuNDE5MUMxNS45NDc3IDIwLjI0MTYgMTYgMjAuMDQyNSAxNiAxOS44MjE3QzE2IDE5LjQ5ODkgMTUuODgxNiAxOS4yMTM0IDE1LjY0NDggMTguOTY1NEw4Ljc0MTgzIDExLjk5NzFMMTUuNjQ0OCA1LjAzMjcxQzE1Ljg4MTYgNC43ODcwOSAxNiA0LjUwMjMgMTYgNC4xNzgzNEMxNiAzLjk1NzQ5IDE1Ljk0NzcgMy43NTgzNSAxNS44NDMxIDMuNTgwOTFDMTUuNzM4NCAzLjQwMzQ3IDE1LjU5OTggMy4yNjIyOSAxNS40MjcxIDMuMTU3MzhDMTUuMjU0NCAzLjA1MjQ2IDE1LjA2MDcgMyAxNC44NDU5IDNDMTQuNTMyMyAzIDE0LjI2NDggMy4xMTE2OSAxNC4wNDM2IDMuMzM1MDhMNi4zODY4IDExLjA4NzhDNi4yNTU1MSAxMS4yMjI1IDYuMTU4NTMgMTEuMzY0NCA2LjA5NTg2IDExLjUxMzRDNi4wMzMxOCAxMS42NjI1IDYuMDAxMjMgMTEuODI0NCA2IDExLjk5OVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==", yi = ({ icon: r, comeBack: o, close: l }) => /* @__PURE__ */ L(cn, { children: [
|
|
589
|
+
/* @__PURE__ */ L("div", { children: [
|
|
590
|
+
o && /* @__PURE__ */ p(qt, { onClick: o, children: /* @__PURE__ */ p("img", { alt: "header-back-icon", src: hn }) }),
|
|
591
591
|
r && /* @__PURE__ */ p(un, { alt: "header-icon", src: r })
|
|
592
592
|
] }),
|
|
593
|
-
/* @__PURE__ */ p("div", { children: l && /* @__PURE__ */ p(
|
|
593
|
+
/* @__PURE__ */ p("div", { children: l && /* @__PURE__ */ p(qt, { onClick: l, children: /* @__PURE__ */ p("img", { alt: "header-close-icon", src: $t }) }) })
|
|
594
594
|
] });
|
|
595
595
|
const dn = /* @__PURE__ */ m("div")({
|
|
596
596
|
name: "i",
|
|
597
597
|
class: "iqbegjm",
|
|
598
598
|
propsAsIs: !1
|
|
599
|
-
}), pn = ({ comeBack: r }) => /* @__PURE__ */ p(dn, { children: /* @__PURE__ */ p(
|
|
599
|
+
}), pn = ({ comeBack: r }) => /* @__PURE__ */ p(dn, { children: /* @__PURE__ */ p(yi, { comeBack: r }) });
|
|
600
600
|
const fn = /* @__PURE__ */ m("button")({
|
|
601
601
|
name: "a",
|
|
602
602
|
class: "akly9h2",
|
|
@@ -606,13 +606,13 @@ const fn = /* @__PURE__ */ m("button")({
|
|
|
606
606
|
class: "eptoiz9",
|
|
607
607
|
propsAsIs: !1
|
|
608
608
|
}), mn = ({ disabled: r, variant: o = "primary", onClick: l, children: h }) => /* @__PURE__ */ p(fn, { onClick: l, disabled: r, "data-variant": o, children: /* @__PURE__ */ p(gn, { children: h }) }), In = {
|
|
609
|
-
[
|
|
610
|
-
[
|
|
611
|
-
[
|
|
612
|
-
[
|
|
613
|
-
[
|
|
614
|
-
[
|
|
615
|
-
[
|
|
609
|
+
[H.TWEET]: { label: "Insight", iconName: "icon-insight" },
|
|
610
|
+
[H.PROMOTION]: { label: "Insight", iconName: "icon-insight" },
|
|
611
|
+
[H.UNSET]: void 0,
|
|
612
|
+
[H.FACTOID]: { label: "Insight", iconName: "icon-insight" },
|
|
613
|
+
[H.POLL]: { label: "Poll", iconName: "icon-poll" },
|
|
614
|
+
[H.TRIVIA]: { label: "Trivia", iconName: "icon-trivia" },
|
|
615
|
+
[H.PREDICTION]: { label: "Prediction", iconName: "icon-prediction" }
|
|
616
616
|
};
|
|
617
617
|
const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
618
618
|
width: 24,
|
|
@@ -643,7 +643,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
643
643
|
strokeWidth: 1.5,
|
|
644
644
|
strokeLinecap: "round",
|
|
645
645
|
strokeLinejoin: "round"
|
|
646
|
-
}))),
|
|
646
|
+
}))), Cn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
647
647
|
width: 24,
|
|
648
648
|
height: 24,
|
|
649
649
|
viewBox: "0 0 24 24",
|
|
@@ -659,7 +659,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
659
659
|
strokeWidth: 1.5,
|
|
660
660
|
strokeLinecap: "round",
|
|
661
661
|
strokeLinejoin: "round"
|
|
662
|
-
}))),
|
|
662
|
+
}))), wn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
663
663
|
width: 16,
|
|
664
664
|
height: 16,
|
|
665
665
|
viewBox: "0 0 16 16",
|
|
@@ -1249,7 +1249,20 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1249
1249
|
d: "M2.01663 1.3808C0.739913 1.55586 -0.153153 2.73276 0.021912 4.00948L1.3808 13.9196C1.55586 15.1963 2.73276 16.0894 4.00948 15.9143L13.9196 14.5554C15.1963 14.3803 16.0894 13.2034 15.9143 11.9267L14.5554 2.01663C14.3803 0.739913 13.2034 -0.153153 11.9267 0.021912L2.01663 1.3808ZM9.59613 3.788C9.11431 3.46991 8.47813 3.30151 7.7566 3.30151C7.54377 3.30151 7.32625 3.31671 7.10872 3.34478C6.38836 3.44067 5.68901 3.79034 5.18965 4.30138C4.68445 4.82062 4.4377 5.45563 4.51722 6.04151C4.57452 6.4742 4.90078 6.7537 5.34635 6.7537C5.39429 6.7537 5.44341 6.7502 5.49136 6.74435C6.08778 6.66483 6.21642 6.25436 6.34036 5.85675L6.34045 5.85648C6.48192 5.40401 6.61534 4.97731 7.38585 4.87444C7.46537 4.86391 7.54138 4.85806 7.61506 4.85806C8.16939 4.85806 8.51436 5.15042 8.58454 5.68252C8.65353 6.20293 8.24307 6.61807 7.80684 7.0566L7.80393 7.05954C7.31582 7.55231 6.7639 8.1095 6.86895 8.90083C6.89585 9.10548 6.9859 9.29493 7.12272 9.43644C7.27826 9.599 7.4829 9.68436 7.71331 9.68436C7.75541 9.68436 7.79868 9.68203 7.84311 9.67618C8.46691 9.59324 8.55162 9.23139 8.63338 8.8821L8.63365 8.88097L8.63661 8.86859C8.66723 8.7403 8.69877 8.60813 8.75995 8.48804C8.84649 8.31613 9.06283 8.11265 9.31428 7.87875C9.9142 7.31858 10.734 6.55143 10.582 5.41589C10.4872 4.70603 10.1551 4.15757 9.59611 3.78802L9.59613 3.788ZM8.11605 10.28C8.06927 10.28 8.02132 10.2836 7.97454 10.2894C7.38396 10.3689 6.96765 10.9127 7.04599 11.5033C7.11733 12.0377 7.57808 12.4412 8.1172 12.4412C8.16397 12.4412 8.21192 12.4377 8.25987 12.4318C8.85045 12.3523 9.2656 11.8085 9.18842 11.2179C9.11591 10.6823 8.65517 10.28 8.11605 10.28Z",
|
|
1250
1250
|
fill: "white",
|
|
1251
1251
|
fillOpacity: 0.5
|
|
1252
|
-
}))),
|
|
1252
|
+
}))), Xn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
1253
|
+
width: 16,
|
|
1254
|
+
height: 16,
|
|
1255
|
+
viewBox: "0 0 16 16",
|
|
1256
|
+
fill: "none",
|
|
1257
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1258
|
+
...r
|
|
1259
|
+
}, /* @__PURE__ */ M.createElement("path", {
|
|
1260
|
+
id: "Selected",
|
|
1261
|
+
fillRule: "evenodd",
|
|
1262
|
+
clipRule: "evenodd",
|
|
1263
|
+
d: "M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.6057 5.43441C11.2933 5.12199 10.7868 5.12199 10.4744 5.43441L6.93812 9.97066L5.08382 8.73446C4.7162 8.48938 4.2195 8.58871 3.97442 8.95634C3.72934 9.32396 3.82868 9.82065 4.1963 10.0657L6.5963 11.6657C6.9136 11.8773 7.33609 11.8354 7.60574 11.5658L11.6057 6.56578C11.9182 6.25336 11.9182 5.74683 11.6057 5.43441Z",
|
|
1264
|
+
fill: "#107D57"
|
|
1265
|
+
})), Jt = {
|
|
1253
1266
|
"invite-game-icon": Pn,
|
|
1254
1267
|
"icon-trophy": Fn,
|
|
1255
1268
|
"icon-play": _n,
|
|
@@ -1268,7 +1281,7 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1268
1281
|
"icon-friends": jn,
|
|
1269
1282
|
"icon-exit": zn,
|
|
1270
1283
|
"icon-default-user-avatar": Ln,
|
|
1271
|
-
"icon-cross":
|
|
1284
|
+
"icon-cross": Cn,
|
|
1272
1285
|
"icon-close": Dn,
|
|
1273
1286
|
"icon-close-btn-white": vn,
|
|
1274
1287
|
"icon-circle-arrow-right": Tn,
|
|
@@ -1276,69 +1289,70 @@ const yn = (r) => /* @__PURE__ */ M.createElement("svg", {
|
|
|
1276
1289
|
"icon-chevron-white-left": Nn,
|
|
1277
1290
|
"icon-chevron-left": An,
|
|
1278
1291
|
"icon-check-white": En,
|
|
1279
|
-
"icon-check-green":
|
|
1292
|
+
"icon-check-green": wn,
|
|
1280
1293
|
"icon-btn-channels": Yn,
|
|
1281
1294
|
"icon-btn-feature-groups": Vn,
|
|
1282
1295
|
"icon-btn-leaderboard": Zn,
|
|
1283
1296
|
"icon-check": Mn,
|
|
1284
1297
|
"icon-arrow": yn,
|
|
1285
1298
|
correct: Qn,
|
|
1286
|
-
incorrect: Hn
|
|
1299
|
+
incorrect: Hn,
|
|
1300
|
+
selected: Xn
|
|
1287
1301
|
}, Ue = ({
|
|
1288
1302
|
name: r,
|
|
1289
1303
|
style: o,
|
|
1290
1304
|
className: l,
|
|
1291
1305
|
...h
|
|
1292
1306
|
}) => {
|
|
1293
|
-
if (!
|
|
1307
|
+
if (!Jt[r])
|
|
1294
1308
|
return /* @__PURE__ */ p("span", {
|
|
1295
1309
|
children: r
|
|
1296
1310
|
});
|
|
1297
|
-
const d =
|
|
1311
|
+
const d = Jt[r];
|
|
1298
1312
|
return /* @__PURE__ */ p(d, {
|
|
1299
1313
|
style: o,
|
|
1300
1314
|
className: l,
|
|
1301
1315
|
...h
|
|
1302
1316
|
});
|
|
1303
1317
|
};
|
|
1304
|
-
const
|
|
1318
|
+
const Kn = () => Ue, e1 = () => Ue, t1 = /* @__PURE__ */ m("div")({
|
|
1305
1319
|
name: "s",
|
|
1306
1320
|
class: "s1lblda3",
|
|
1307
1321
|
propsAsIs: !1
|
|
1308
|
-
}),
|
|
1322
|
+
}), i1 = /* @__PURE__ */ m("div")({
|
|
1309
1323
|
name: "a",
|
|
1310
1324
|
class: "ascvb2g",
|
|
1311
1325
|
propsAsIs: !1
|
|
1312
|
-
}),
|
|
1326
|
+
}), r1 = /* @__PURE__ */ m("div")({
|
|
1313
1327
|
name: "p",
|
|
1314
1328
|
class: "p17rl8zy",
|
|
1315
1329
|
propsAsIs: !1
|
|
1316
|
-
}),
|
|
1330
|
+
}), n1 = /* @__PURE__ */ m("div")({
|
|
1317
1331
|
name: "l",
|
|
1318
1332
|
class: "l1vvttbn",
|
|
1319
1333
|
propsAsIs: !1
|
|
1320
|
-
}), Mt = /* @__PURE__ */ m(
|
|
1334
|
+
}), Mt = /* @__PURE__ */ m(Kn())({
|
|
1321
1335
|
name: "c",
|
|
1322
1336
|
class: "c6fk2ph",
|
|
1323
1337
|
propsAsIs: !0
|
|
1324
|
-
}),
|
|
1338
|
+
}), o1 = /* @__PURE__ */ m(e1())({
|
|
1325
1339
|
name: "d",
|
|
1326
1340
|
class: "d1rdm136",
|
|
1327
1341
|
propsAsIs: !0
|
|
1328
|
-
}),
|
|
1342
|
+
}), s1 = /* @__PURE__ */ m("div")({
|
|
1329
1343
|
name: "f",
|
|
1330
1344
|
class: "fwqnnel",
|
|
1331
1345
|
propsAsIs: !1
|
|
1332
|
-
}),
|
|
1346
|
+
}), a1 = /* @__PURE__ */ m("div")({
|
|
1333
1347
|
name: "u",
|
|
1334
1348
|
class: "ucyxnlg",
|
|
1335
1349
|
propsAsIs: !1
|
|
1336
|
-
}),
|
|
1350
|
+
}), l1 = {
|
|
1337
1351
|
[et.LOST]: /* @__PURE__ */ p(Mt, { name: "icon-cross" }),
|
|
1338
1352
|
[et.WON]: /* @__PURE__ */ p(Mt, { name: "icon-check" }),
|
|
1339
1353
|
[et.UNSET]: void 0,
|
|
1340
1354
|
[et.DNP]: /* @__PURE__ */ p(Mt, { name: "icon-arrow" })
|
|
1341
|
-
},
|
|
1355
|
+
}, c1 = ({
|
|
1342
1356
|
questionId: r,
|
|
1343
1357
|
questionType: o,
|
|
1344
1358
|
questionStatus: l,
|
|
@@ -1347,67 +1361,67 @@ const Xn = () => Ue, Kn = () => Ue, e1 = /* @__PURE__ */ m("div")({
|
|
|
1347
1361
|
openQuestion: g,
|
|
1348
1362
|
status: f
|
|
1349
1363
|
}) => {
|
|
1350
|
-
const s = In[o], I =
|
|
1351
|
-
return s ? /* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */ p(
|
|
1355
|
-
/* @__PURE__ */
|
|
1364
|
+
const s = In[o], I = l1[f];
|
|
1365
|
+
return s ? /* @__PURE__ */ L(t1, { onClick: () => g == null ? void 0 : g(r), children: [
|
|
1366
|
+
/* @__PURE__ */ L(a1, { children: [
|
|
1367
|
+
/* @__PURE__ */ L(i1, { children: [
|
|
1368
|
+
/* @__PURE__ */ p(o1, { name: s.iconName }),
|
|
1369
|
+
/* @__PURE__ */ L(s1, { children: [
|
|
1356
1370
|
s.label,
|
|
1357
|
-
o ===
|
|
1371
|
+
o === H.TRIVIA && l === Rt.RESOLVED && " • Expired"
|
|
1358
1372
|
] })
|
|
1359
1373
|
] }),
|
|
1360
|
-
/* @__PURE__ */ p(
|
|
1374
|
+
/* @__PURE__ */ p(r1, { children: h || "" })
|
|
1361
1375
|
] }),
|
|
1362
|
-
/* @__PURE__ */ p(
|
|
1376
|
+
/* @__PURE__ */ p(n1, { children: I || (d ? /* @__PURE__ */ p(mn, { children: "Play" }) : null) })
|
|
1363
1377
|
] }) : null;
|
|
1364
1378
|
};
|
|
1365
|
-
const
|
|
1379
|
+
const u1 = /* @__PURE__ */ m("div")({
|
|
1366
1380
|
name: "t",
|
|
1367
1381
|
class: "t19vr3p1",
|
|
1368
1382
|
propsAsIs: !1
|
|
1369
|
-
}),
|
|
1370
|
-
const
|
|
1383
|
+
}), h1 = ({ questions: r, openQuestion: o }) => /* @__PURE__ */ p(u1, { children: r == null ? void 0 : r.map((l) => /* @__PURE__ */ p(c1, { openQuestion: o, ...l }, l.questionId)) }), Mi = (r) => r.split(/\s+/).map((o) => o[0]).join("").toUpperCase(), Ci = (r) => r ? r.toLocaleString("en-US") : "0";
|
|
1384
|
+
const d1 = /* @__PURE__ */ m("div")({
|
|
1371
1385
|
name: "t",
|
|
1372
1386
|
class: "taj61ja",
|
|
1373
1387
|
propsAsIs: !1
|
|
1374
|
-
}),
|
|
1388
|
+
}), p1 = /* @__PURE__ */ m("div")({
|
|
1375
1389
|
name: "r",
|
|
1376
1390
|
class: "r19fxewd",
|
|
1377
1391
|
propsAsIs: !1
|
|
1378
|
-
}),
|
|
1392
|
+
}), f1 = /* @__PURE__ */ m("div")({
|
|
1379
1393
|
name: "i",
|
|
1380
1394
|
class: "i1whkbqh",
|
|
1381
1395
|
propsAsIs: !1
|
|
1382
|
-
}),
|
|
1383
|
-
/* @__PURE__ */ p(
|
|
1384
|
-
/* @__PURE__ */ p(
|
|
1396
|
+
}), Xt = ({ indicator: r, title: o }) => /* @__PURE__ */ L(d1, { children: [
|
|
1397
|
+
/* @__PURE__ */ p(p1, { children: o }),
|
|
1398
|
+
/* @__PURE__ */ p(f1, { children: r })
|
|
1385
1399
|
] });
|
|
1386
|
-
const
|
|
1400
|
+
const g1 = /* @__PURE__ */ m("div")({
|
|
1387
1401
|
name: "i",
|
|
1388
1402
|
class: "i4lbhzs",
|
|
1389
1403
|
propsAsIs: !1
|
|
1390
|
-
}),
|
|
1404
|
+
}), m1 = /* @__PURE__ */ m("div")({
|
|
1391
1405
|
name: "o",
|
|
1392
1406
|
class: "ordquhq",
|
|
1393
1407
|
propsAsIs: !1
|
|
1394
|
-
}),
|
|
1408
|
+
}), I1 = /* @__PURE__ */ m("div")({
|
|
1395
1409
|
name: "n",
|
|
1396
1410
|
class: "nwzed99",
|
|
1397
1411
|
propsAsIs: !1
|
|
1398
|
-
}), it = ({ indicator: r, title: o }) => /* @__PURE__ */
|
|
1399
|
-
/* @__PURE__ */ p(
|
|
1400
|
-
/* @__PURE__ */ p(
|
|
1412
|
+
}), it = ({ indicator: r, title: o }) => /* @__PURE__ */ L(g1, { children: [
|
|
1413
|
+
/* @__PURE__ */ p(m1, { children: r }),
|
|
1414
|
+
/* @__PURE__ */ p(I1, { children: o })
|
|
1401
1415
|
] });
|
|
1402
|
-
const
|
|
1416
|
+
const y1 = /* @__PURE__ */ m("div")({
|
|
1403
1417
|
name: "o",
|
|
1404
1418
|
class: "o15y0waw",
|
|
1405
1419
|
propsAsIs: !1
|
|
1406
|
-
}),
|
|
1420
|
+
}), M1 = /* @__PURE__ */ m("div")({
|
|
1407
1421
|
name: "i",
|
|
1408
1422
|
class: "ihjewwf",
|
|
1409
1423
|
propsAsIs: !1
|
|
1410
|
-
}),
|
|
1424
|
+
}), C1 = /* @__PURE__ */ m("div")({
|
|
1411
1425
|
name: "n",
|
|
1412
1426
|
class: "n10e9lv8",
|
|
1413
1427
|
propsAsIs: !1
|
|
@@ -1415,59 +1429,59 @@ const I1 = /* @__PURE__ */ m("div")({
|
|
|
1415
1429
|
name: "r",
|
|
1416
1430
|
class: "r13bxv",
|
|
1417
1431
|
propsAsIs: !1
|
|
1418
|
-
}),
|
|
1432
|
+
}), E1 = /* @__PURE__ */ m("img")({
|
|
1419
1433
|
name: "a",
|
|
1420
1434
|
class: "a1fi59c9",
|
|
1421
1435
|
propsAsIs: !1
|
|
1422
|
-
}),
|
|
1436
|
+
}), A1 = /* @__PURE__ */ m("div")({
|
|
1423
1437
|
name: "s",
|
|
1424
1438
|
class: "s1kkihge",
|
|
1425
1439
|
propsAsIs: !1
|
|
1426
|
-
}),
|
|
1440
|
+
}), N1 = /* @__PURE__ */ m("div")({
|
|
1427
1441
|
name: "c",
|
|
1428
1442
|
class: "cy4f4t",
|
|
1429
1443
|
propsAsIs: !1
|
|
1430
|
-
}),
|
|
1444
|
+
}), x1 = /* @__PURE__ */ m("div")({
|
|
1431
1445
|
name: "p",
|
|
1432
1446
|
class: "p18cnlx1",
|
|
1433
1447
|
propsAsIs: !1
|
|
1434
|
-
}),
|
|
1448
|
+
}), T1 = /* @__PURE__ */ m("img")({
|
|
1435
1449
|
name: "l",
|
|
1436
1450
|
class: "lboqgs5",
|
|
1437
1451
|
propsAsIs: !1
|
|
1438
|
-
}),
|
|
1452
|
+
}), v1 = /* @__PURE__ */ m("div")({
|
|
1439
1453
|
name: "d",
|
|
1440
1454
|
class: "d1oaal4",
|
|
1441
1455
|
propsAsIs: !1
|
|
1442
|
-
}),
|
|
1456
|
+
}), D1 = /* @__PURE__ */ m("div")({
|
|
1443
1457
|
name: "x",
|
|
1444
1458
|
class: "x1yzgo0u",
|
|
1445
1459
|
propsAsIs: !1
|
|
1446
|
-
}),
|
|
1460
|
+
}), L1 = /* @__PURE__ */ m("div")({
|
|
1447
1461
|
name: "f",
|
|
1448
1462
|
class: "f1l9i8s8",
|
|
1449
1463
|
propsAsIs: !1
|
|
1450
|
-
}),
|
|
1464
|
+
}), z1 = /* @__PURE__ */ m("div")({
|
|
1451
1465
|
name: "g",
|
|
1452
1466
|
class: "g4cgl4u",
|
|
1453
1467
|
propsAsIs: !1
|
|
1454
|
-
}),
|
|
1468
|
+
}), S1 = /* @__PURE__ */ m("div")({
|
|
1455
1469
|
name: "h",
|
|
1456
1470
|
class: "h1qn1tmd",
|
|
1457
1471
|
propsAsIs: !1
|
|
1458
|
-
}),
|
|
1472
|
+
}), j1 = /* @__PURE__ */ m("div")({
|
|
1459
1473
|
name: "u",
|
|
1460
1474
|
class: "u1gsbhq4",
|
|
1461
1475
|
propsAsIs: !1
|
|
1462
|
-
}),
|
|
1476
|
+
}), B1 = /* @__PURE__ */ m("div")({
|
|
1463
1477
|
name: "m",
|
|
1464
1478
|
class: "mvj8oco",
|
|
1465
1479
|
propsAsIs: !1
|
|
1466
|
-
}),
|
|
1480
|
+
}), k1 = /* @__PURE__ */ m("button")({
|
|
1467
1481
|
name: "v",
|
|
1468
1482
|
class: "viqiaf2",
|
|
1469
1483
|
propsAsIs: !1
|
|
1470
|
-
}),
|
|
1484
|
+
}), b1 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY5MTk3IDQuNjY2NjJDMy42OTE5NyA1Ljk5NzA1IDMuOTI5MTQgNy4xNzc4NyA0LjQwMzUgOC4yMDkxMkMzLjQ5OTY2IDguMDI0NTEgMi43NDQ4NyA3LjY2NDg2IDIuMTM5MSA3LjEzMDE0QzEuNTMzMzMgNi41OTU0MiAxLjIzMDQ2IDYuMDc5OCAxLjIzMDQ2IDUuNTgzMjhWNC42NjY2MkgzLjY5MTk3Wk0xNC43Njg2IDQuNjY2NjJWNS41ODMyOEMxNC43Njg2IDYuMDc5OCAxNC40NjU4IDYuNTk1NDIgMTMuODYgNy4xMzAxNEMxMy4yNTQyIDcuNjY0ODYgMTIuNDk5NCA4LjAyNDUxIDExLjU5NTYgOC4yMDkxMkMxMi4wNjk5IDcuMTc3ODcgMTIuMzA3MSA1Ljk5NzA1IDEyLjMwNzEgNC42NjY2MkgxNC43Njg2Wk0xNS45OTk4IDUuNTgzMjlWNC4zNjEwOEMxNS45OTk4IDQuMTA2NDUgMTUuOTEwMSAzLjg5MDAyIDE1LjczMDYgMy43MTE3OEMxNS41NTExIDMuNTMzNTQgMTUuMzMzMiAzLjQ0NDQyIDE1LjA3NjggMy40NDQ0MkgxMi4zMDc2VjIuNTI3NzZDMTIuMzA3NiAyLjEwNzYzIDEyLjE1NjkgMS43NDc5NyAxMS44NTU2IDEuNDQ4NzhDMTEuNTU0NCAxLjE0OTU5IDExLjE5MjIgMSAxMC43NjkxIDFINS4yMzA3MkM0LjgwNzY0IDEgNC40NDU0NyAxLjE0OTU5IDQuMTQ0MTkgMS40NDg3OEMzLjg0MjkxIDEuNzQ3OTcgMy42OTIyNyAyLjEwNzYzIDMuNjkyMjcgMi41Mjc3NlYzLjQ0NDQySDAuOTIzMDY4QzAuNjY2NjU5IDMuNDQ0NDIgMC40NDg3MTQgMy41MzM1NCAwLjI2OTIyOCAzLjcxMTc4QzAuMDg5NzQxOCAzLjg5MDAyIDAgNC4xMDY0NSAwIDQuMzYxMDhWNS41ODMyOUMwIDYuMDM1MjUgMC4xMzMwMSA2LjQ5MDM5IDAuMzk5MDM0IDYuOTQ4NzJDMC42NjUwNTkgNy40MDcwNSAxLjAyNDAzIDcuODIwODIgMS40NzU5NSA4LjE5MDAzQzEuOTI3ODcgOC41NTkyNCAyLjQ4MjM0IDguODY5NTcgMy4xMzkzOSA5LjEyMTAxQzMuNzk2NDQgOS4zNzI0NiA0LjQ4NzEzIDkuNTE0MDkgNS4yMTE0OSA5LjU0NTkyQzUuNDgwNzEgOS44ODk2NyA1Ljc4NTIgMTAuMTkyIDYuMTI0OTQgMTAuNDUzQzYuMzY4NTMgMTAuNjY5NSA2LjUzNjc5IDEwLjkwMDIgNi42Mjk3NCAxMS4xNDUzQzYuNzIyNjkgMTEuMzkwNCA2Ljc2OTE2IDExLjY3NTIgNi43NjkxNiAxMS45OTk5QzYuNzY5MTYgMTIuMzQzNiA2LjY3MTQxIDEyLjYzMzMgNi40NzU5IDEyLjg2ODhDNi4yODAzOCAxMy4xMDQzIDUuOTY3ODkgMTMuMjIyMSA1LjUzODQxIDEzLjIyMjFDNS4wNTc2NCAxMy4yMjIxIDQuNjI5NzYgMTMuMzY2OSA0LjI1NDc2IDEzLjY1NjZDMy44Nzk3NyAxMy45NDYyIDMuNjkyMjcgMTQuMzEwNiAzLjY5MjI3IDE0Ljc0OTlWMTUuMzYxQzMuNjkyMjcgMTUuNDUwMSAzLjcyMTEyIDE1LjUyMzMgMy43Nzg4MSAxNS41ODA2QzMuODM2NSAxNS42Mzc5IDMuOTEwMjIgMTUuNjY2NSAzLjk5OTk2IDE1LjY2NjVIMTEuOTk5OUMxMi4wODk2IDE1LjY2NjUgMTIuMTYzMyAxNS42Mzc5IDEyLjIyMSAxNS41ODA2QzEyLjI3ODcgMTUuNTIzMyAxMi4zMDc2IDE1LjQ1MDEgMTIuMzA3NiAxNS4zNjFWMTQuNzQ5OUMxMi4zMDc2IDE0LjMxMDYgMTIuMTIwMSAxMy45NDYyIDExLjc0NTEgMTMuNjU2NkMxMS4zNzAxIDEzLjM2NjkgMTAuOTQyMiAxMy4yMjIxIDEwLjQ2MTQgMTMuMjIyMUMxMC4wMzE5IDEzLjIyMjEgOS43MTk0NSAxMy4xMDQzIDkuNTIzOTQgMTIuODY4OEM5LjMyODQzIDEyLjYzMzMgOS4yMzA2OCAxMi4zNDM2IDkuMjMwNjggMTEuOTk5OUM5LjIzMDY4IDExLjY3NTIgOS4yNzcxNSAxMS4zOTA0IDkuMzcwMSAxMS4xNDUzQzkuNDYzMDUgMTAuOTAwMiA5LjYzMTMxIDEwLjY2OTUgOS44NzQ5IDEwLjQ1M0MxMC4yMTQ2IDEwLjE5MiAxMC41MTkxIDkuODg5NjcgMTAuNzg4NCA5LjU0NTkyQzExLjUxMjcgOS41MTQwOSAxMi4yMDM0IDkuMzcyNDYgMTIuODYwNCA5LjEyMTAxQzEzLjUxNzUgOC44Njk1NyAxNC4wNzIgOC41NTkyNCAxNC41MjM5IDguMTkwMDNDMTQuOTc1OCA3LjgyMDgyIDE1LjMzNDggNy40MDcwNSAxNS42MDA4IDYuOTQ4NzJDMTUuODY2OCA2LjQ5MDM5IDE1Ljk5OTggNi4wMzUyNSAxNS45OTk4IDUuNTgzMjlaTTYuNzYwNDcgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=", R1 = ({
|
|
1471
1485
|
avatar: r,
|
|
1472
1486
|
name: o,
|
|
1473
1487
|
points: l,
|
|
@@ -1477,25 +1491,25 @@ const I1 = /* @__PURE__ */ m("div")({
|
|
|
1477
1491
|
correct: f,
|
|
1478
1492
|
incorrect: s,
|
|
1479
1493
|
inTop: I,
|
|
1480
|
-
average:
|
|
1481
|
-
}) => /* @__PURE__ */
|
|
1482
|
-
/* @__PURE__ */ p(
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
r && /* @__PURE__ */ p(
|
|
1485
|
-
!r && /* @__PURE__ */ p(
|
|
1494
|
+
average: N
|
|
1495
|
+
}) => /* @__PURE__ */ L(y1, { children: [
|
|
1496
|
+
/* @__PURE__ */ p(M1, { children: /* @__PURE__ */ L(w1, { children: [
|
|
1497
|
+
/* @__PURE__ */ L(k1, { children: [
|
|
1498
|
+
r && /* @__PURE__ */ p(E1, { alt: "avatar", src: r }),
|
|
1499
|
+
!r && /* @__PURE__ */ p(B1, { children: Mi(o || "") })
|
|
1486
1500
|
] }),
|
|
1487
|
-
/* @__PURE__ */
|
|
1488
|
-
/* @__PURE__ */ p(
|
|
1489
|
-
/* @__PURE__ */
|
|
1490
|
-
/* @__PURE__ */
|
|
1491
|
-
/* @__PURE__ */ p(
|
|
1492
|
-
/* @__PURE__ */
|
|
1493
|
-
|
|
1494
|
-
/* @__PURE__ */ p(
|
|
1501
|
+
/* @__PURE__ */ L(A1, { children: [
|
|
1502
|
+
/* @__PURE__ */ p(N1, { children: o }),
|
|
1503
|
+
/* @__PURE__ */ L(x1, { children: [
|
|
1504
|
+
/* @__PURE__ */ L(v1, { children: [
|
|
1505
|
+
/* @__PURE__ */ p(T1, { alt: "rank-icon", src: b1 }),
|
|
1506
|
+
/* @__PURE__ */ L(D1, { children: [
|
|
1507
|
+
Ci(l),
|
|
1508
|
+
/* @__PURE__ */ p(L1, { children: "PTS" })
|
|
1495
1509
|
] })
|
|
1496
1510
|
] }),
|
|
1497
|
-
/* @__PURE__ */ p(
|
|
1498
|
-
/* @__PURE__ */
|
|
1511
|
+
/* @__PURE__ */ p(z1, {}),
|
|
1512
|
+
/* @__PURE__ */ L("div", { children: [
|
|
1499
1513
|
"TOP ",
|
|
1500
1514
|
I || 0,
|
|
1501
1515
|
"%"
|
|
@@ -1503,101 +1517,118 @@ const I1 = /* @__PURE__ */ m("div")({
|
|
|
1503
1517
|
] })
|
|
1504
1518
|
] })
|
|
1505
1519
|
] }) }),
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
/* @__PURE__ */
|
|
1508
|
-
/* @__PURE__ */ p(
|
|
1509
|
-
/* @__PURE__ */ p(
|
|
1520
|
+
/* @__PURE__ */ L(C1, { children: [
|
|
1521
|
+
/* @__PURE__ */ L(S1, { children: [
|
|
1522
|
+
/* @__PURE__ */ p(Xt, { indicator: h || 0, title: "Friends rank" }),
|
|
1523
|
+
/* @__PURE__ */ p(Xt, { indicator: d || 0, title: "Global rank" })
|
|
1510
1524
|
] }),
|
|
1511
|
-
/* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ L(j1, { children: [
|
|
1512
1526
|
/* @__PURE__ */ p(it, { indicator: g || 0, title: "Win streak" }),
|
|
1513
1527
|
/* @__PURE__ */ p(it, { indicator: f || 0, title: "Correct" }),
|
|
1514
1528
|
/* @__PURE__ */ p(it, { indicator: s || 0, title: "Incorrect" }),
|
|
1515
|
-
/* @__PURE__ */ p(it, { indicator: `${
|
|
1529
|
+
/* @__PURE__ */ p(it, { indicator: `${N || 0}%`, title: "Succ. rate" })
|
|
1516
1530
|
] })
|
|
1517
1531
|
] })
|
|
1518
1532
|
] });
|
|
1519
|
-
const
|
|
1533
|
+
const _1 = () => U1, q0 = /* @__PURE__ */ m("div")({
|
|
1534
|
+
name: "i",
|
|
1535
|
+
class: "idhrx8x",
|
|
1536
|
+
propsAsIs: !1
|
|
1537
|
+
}), O1 = /* @__PURE__ */ m("div")({
|
|
1538
|
+
name: "r",
|
|
1539
|
+
class: "r1k6v4ep",
|
|
1540
|
+
propsAsIs: !1
|
|
1541
|
+
}), U1 = /* @__PURE__ */ m("div")({
|
|
1542
|
+
name: "a",
|
|
1543
|
+
class: "a1v8kucd",
|
|
1544
|
+
propsAsIs: !1
|
|
1545
|
+
}), J0 = /* @__PURE__ */ m(_1())({
|
|
1546
|
+
name: "e",
|
|
1547
|
+
class: "e16yw7z1",
|
|
1548
|
+
propsAsIs: !0
|
|
1549
|
+
});
|
|
1550
|
+
const $1 = () => Ue, F1 = /* @__PURE__ */ m("div")({
|
|
1520
1551
|
name: "c",
|
|
1521
1552
|
class: "ciyeb68",
|
|
1522
1553
|
propsAsIs: !1
|
|
1523
|
-
}),
|
|
1554
|
+
}), P1 = /* @__PURE__ */ m($1())({
|
|
1524
1555
|
name: "n",
|
|
1525
1556
|
class: "nfic4xc",
|
|
1526
1557
|
propsAsIs: !0
|
|
1527
|
-
}),
|
|
1558
|
+
}), Y1 = /* @__PURE__ */ m("div")({
|
|
1528
1559
|
name: "d",
|
|
1529
1560
|
class: "d1pd1p66",
|
|
1530
1561
|
propsAsIs: !1
|
|
1531
|
-
}),
|
|
1562
|
+
}), V1 = /* @__PURE__ */ m("div")({
|
|
1532
1563
|
name: "p",
|
|
1533
1564
|
class: "p132yxcv",
|
|
1534
1565
|
propsAsIs: !1
|
|
1535
|
-
}),
|
|
1566
|
+
}), Z1 = /* @__PURE__ */ m("span")({
|
|
1536
1567
|
name: "l",
|
|
1537
1568
|
class: "l4a8aw",
|
|
1538
1569
|
propsAsIs: !1
|
|
1539
|
-
}),
|
|
1570
|
+
}), Kt = /* @__PURE__ */ m("span")({
|
|
1540
1571
|
name: "g",
|
|
1541
1572
|
class: "gzdx7pk",
|
|
1542
1573
|
propsAsIs: !1
|
|
1543
|
-
}),
|
|
1574
|
+
}), Q1 = ({
|
|
1544
1575
|
feedbackMessages: r,
|
|
1545
1576
|
questionVotedCorrectly: o,
|
|
1546
1577
|
questionVoted: l,
|
|
1547
1578
|
questionType: h,
|
|
1548
1579
|
hasCorrectAnswer: d
|
|
1549
1580
|
}) => {
|
|
1550
|
-
if (!(l && (h ===
|
|
1581
|
+
if (!(l && (h === H.TRIVIA || h === H.PREDICTION)))
|
|
1551
1582
|
return null;
|
|
1552
|
-
const g = h ===
|
|
1553
|
-
return /* @__PURE__ */
|
|
1554
|
-
g && /* @__PURE__ */
|
|
1555
|
-
/* @__PURE__ */ p(
|
|
1556
|
-
/* @__PURE__ */ p(
|
|
1583
|
+
const g = h === H.PREDICTION && !d, f = o ? "correct" : "incorrect", s = o ? r.correctFeedback : r.incorrectFeedback;
|
|
1584
|
+
return /* @__PURE__ */ L(F1, { "data-isPrediction": g, children: [
|
|
1585
|
+
g && /* @__PURE__ */ L(Oe, { children: [
|
|
1586
|
+
/* @__PURE__ */ p(P1, { name: "icon-prediction" }),
|
|
1587
|
+
/* @__PURE__ */ p(Kt, { children: "Stay tuned to see if your prediction was correct." })
|
|
1557
1588
|
] }),
|
|
1558
|
-
d && /* @__PURE__ */
|
|
1559
|
-
/* @__PURE__ */ p(
|
|
1560
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */
|
|
1561
|
-
/* @__PURE__ */ p(
|
|
1562
|
-
/* @__PURE__ */ p(
|
|
1589
|
+
d && /* @__PURE__ */ L(Oe, { children: [
|
|
1590
|
+
/* @__PURE__ */ p(Y1, { "data-feedbackType": f, children: /* @__PURE__ */ p(Ue, { name: f }) }),
|
|
1591
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ L(V1, { children: [
|
|
1592
|
+
/* @__PURE__ */ p(Z1, { "data-feedbackType": f, children: s == null ? void 0 : s.title }),
|
|
1593
|
+
/* @__PURE__ */ p(Kt, { children: s == null ? void 0 : s.description })
|
|
1563
1594
|
] }) })
|
|
1564
1595
|
] })
|
|
1565
1596
|
] });
|
|
1566
1597
|
};
|
|
1567
|
-
const
|
|
1598
|
+
const H1 = /* @__PURE__ */ m("div")({
|
|
1568
1599
|
name: "o",
|
|
1569
1600
|
class: "olc1eph",
|
|
1570
1601
|
propsAsIs: !1
|
|
1571
|
-
}),
|
|
1602
|
+
}), G1 = /* @__PURE__ */ m("div")({
|
|
1572
1603
|
name: "n",
|
|
1573
1604
|
class: "n1yoh29a",
|
|
1574
1605
|
propsAsIs: !1
|
|
1575
|
-
}),
|
|
1576
|
-
name: "
|
|
1577
|
-
class: "
|
|
1606
|
+
}), W1 = /* @__PURE__ */ m("div")({
|
|
1607
|
+
name: "p",
|
|
1608
|
+
class: "pjkr5mb",
|
|
1578
1609
|
propsAsIs: !1
|
|
1579
|
-
}),
|
|
1580
|
-
name: "
|
|
1581
|
-
class: "
|
|
1610
|
+
}), q1 = /* @__PURE__ */ m("div")({
|
|
1611
|
+
name: "r",
|
|
1612
|
+
class: "r82wnnx",
|
|
1582
1613
|
propsAsIs: !1
|
|
1583
1614
|
});
|
|
1584
|
-
const
|
|
1615
|
+
const J1 = () => wi, X1 = () => wi, K1 = () => Ue, eo = /* @__PURE__ */ m("button")({
|
|
1585
1616
|
name: "c",
|
|
1586
1617
|
class: "cpm4u8k",
|
|
1587
1618
|
propsAsIs: !1
|
|
1588
|
-
}),
|
|
1619
|
+
}), to = /* @__PURE__ */ m("div")({
|
|
1589
1620
|
name: "l",
|
|
1590
1621
|
class: "lwfomc3",
|
|
1591
1622
|
propsAsIs: !1
|
|
1592
|
-
}),
|
|
1623
|
+
}), io = /* @__PURE__ */ m("span")({
|
|
1593
1624
|
name: "d",
|
|
1594
1625
|
class: "dmltvg2",
|
|
1595
1626
|
propsAsIs: !1
|
|
1596
|
-
}),
|
|
1627
|
+
}), ro = /* @__PURE__ */ m("div")({
|
|
1597
1628
|
name: "s",
|
|
1598
1629
|
class: "stfjpqz",
|
|
1599
1630
|
propsAsIs: !1
|
|
1600
|
-
}),
|
|
1631
|
+
}), no = /* @__PURE__ */ m("div")({
|
|
1601
1632
|
name: "p",
|
|
1602
1633
|
class: "p198m24r",
|
|
1603
1634
|
propsAsIs: !1
|
|
@@ -1605,37 +1636,53 @@ const H1 = () => wi, G1 = () => wi, W1 = () => Ue, q1 = /* @__PURE__ */ m("butto
|
|
|
1605
1636
|
name: "r",
|
|
1606
1637
|
class: "rbq5eu7",
|
|
1607
1638
|
propsAsIs: !1
|
|
1608
|
-
}),
|
|
1639
|
+
}), oo = /* @__PURE__ */ m(J1())({
|
|
1609
1640
|
name: "g",
|
|
1610
1641
|
class: "g1iv6oeb",
|
|
1611
1642
|
propsAsIs: !0
|
|
1612
|
-
}),
|
|
1643
|
+
}), so = /* @__PURE__ */ m(X1())({
|
|
1613
1644
|
name: "h",
|
|
1614
1645
|
class: "h1qtxlqc",
|
|
1615
1646
|
propsAsIs: !0
|
|
1616
|
-
}),
|
|
1647
|
+
}), ao = /* @__PURE__ */ m("span")({
|
|
1617
1648
|
name: "u",
|
|
1618
1649
|
class: "udm736q",
|
|
1619
1650
|
propsAsIs: !1
|
|
1620
|
-
}),
|
|
1651
|
+
}), lo = /* @__PURE__ */ m("span")({
|
|
1621
1652
|
name: "b",
|
|
1622
1653
|
class: "b1da34tx",
|
|
1623
1654
|
propsAsIs: !1
|
|
1624
|
-
}),
|
|
1655
|
+
}), co = /* @__PURE__ */ m("span")({
|
|
1625
1656
|
name: "x",
|
|
1626
1657
|
class: "x1dqwq83",
|
|
1627
1658
|
propsAsIs: !1
|
|
1628
|
-
}),
|
|
1659
|
+
}), uo = /* @__PURE__ */ m(K1())({
|
|
1629
1660
|
name: "v",
|
|
1630
1661
|
class: "v10s9my2",
|
|
1631
1662
|
propsAsIs: !0
|
|
1632
|
-
}),
|
|
1633
|
-
[
|
|
1634
|
-
[
|
|
1635
|
-
[
|
|
1636
|
-
[
|
|
1637
|
-
[
|
|
1638
|
-
},
|
|
1663
|
+
}), ei = {
|
|
1664
|
+
[Me.CENTERED]: (r) => /* @__PURE__ */ p(oo, { alt: "option-icon", src: r }),
|
|
1665
|
+
[Me.TRANSPARENT]: (r) => /* @__PURE__ */ p(ro, { children: /* @__PURE__ */ p(no, { style: { backgroundImage: `url(${r})` } }) }),
|
|
1666
|
+
[Me.ROUNDED]: (r) => /* @__PURE__ */ p(so, { alt: "option-icon", src: r }),
|
|
1667
|
+
[Me.NONE]: () => null,
|
|
1668
|
+
[Me.UNSET]: () => null
|
|
1669
|
+
}, ho = ({ questionType: r, hasCorrectAnswer: o, correct: l, youVoted: h, questionVoted: d }) => {
|
|
1670
|
+
if (r === H.POLL && h)
|
|
1671
|
+
return "correct";
|
|
1672
|
+
if (r === H.PREDICTION) {
|
|
1673
|
+
if (o && d)
|
|
1674
|
+
return h ? l ? "correct" : "incorrect" : l ? "correct" : "unset";
|
|
1675
|
+
if (h)
|
|
1676
|
+
return "correct";
|
|
1677
|
+
}
|
|
1678
|
+
return r === H.TRIVIA && d ? h ? l ? "correct" : "incorrect" : l ? "correct" : "unset" : "unset";
|
|
1679
|
+
}, po = ({
|
|
1680
|
+
questionType: r,
|
|
1681
|
+
questionVoted: o,
|
|
1682
|
+
correct: l,
|
|
1683
|
+
hasCorrectAnswer: h,
|
|
1684
|
+
questionStatus: d
|
|
1685
|
+
}) => r === H.TRIVIA ? o && l : r === H.PREDICTION ? o && l && h || d === Rt.RESOLVED && l : !1, fo = (r) => {
|
|
1639
1686
|
var o;
|
|
1640
1687
|
const {
|
|
1641
1688
|
// option props
|
|
@@ -1647,26 +1694,31 @@ const H1 = () => wi, G1 = () => wi, W1 = () => Ue, q1 = /* @__PURE__ */ m("butto
|
|
|
1647
1694
|
onVote: f,
|
|
1648
1695
|
youSelected: s,
|
|
1649
1696
|
questionVoted: I,
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1697
|
+
// ToDo: Figure out why imageMode is not in the response, and delete default value
|
|
1698
|
+
imageMode: N = Me.ROUNDED,
|
|
1699
|
+
answerTimeExpired: E,
|
|
1700
|
+
questionStatus: x,
|
|
1701
|
+
isLoading: C,
|
|
1702
|
+
questionType: v,
|
|
1703
|
+
correct: z,
|
|
1704
|
+
hasCorrectAnswer: y
|
|
1705
|
+
} = r, A = ho(r), w = po({ questionType: v, questionVoted: I, correct: z, hasCorrectAnswer: y, questionStatus: x }), T = I || x === Rt.RESOLVED && v === H.PREDICTION;
|
|
1706
|
+
return /* @__PURE__ */ L(
|
|
1707
|
+
eo,
|
|
1656
1708
|
{
|
|
1657
1709
|
value: l,
|
|
1658
1710
|
"data-selected": s,
|
|
1659
|
-
"data-answerState":
|
|
1660
|
-
disabled: I || E,
|
|
1711
|
+
"data-answerState": A,
|
|
1712
|
+
disabled: I || C || E,
|
|
1661
1713
|
onClick: f,
|
|
1662
1714
|
children: [
|
|
1663
|
-
|
|
1664
|
-
/* @__PURE__ */
|
|
1665
|
-
h &&
|
|
1666
|
-
/* @__PURE__ */ p(
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
/* @__PURE__ */
|
|
1715
|
+
T && /* @__PURE__ */ p(to, { "data-answerState": A, style: { width: `${g}%` } }),
|
|
1716
|
+
/* @__PURE__ */ L(io, { children: [
|
|
1717
|
+
h && ((o = ei[N]) == null ? void 0 : o.call(ei, h)),
|
|
1718
|
+
/* @__PURE__ */ p(ao, { children: d }),
|
|
1719
|
+
T && /* @__PURE__ */ L(lo, { children: [
|
|
1720
|
+
w && /* @__PURE__ */ p(uo, { name: "selected" }),
|
|
1721
|
+
/* @__PURE__ */ L(co, { children: [
|
|
1670
1722
|
g,
|
|
1671
1723
|
"%"
|
|
1672
1724
|
] })
|
|
@@ -1676,88 +1728,87 @@ const H1 = () => wi, G1 = () => wi, W1 = () => Ue, q1 = /* @__PURE__ */ m("butto
|
|
|
1676
1728
|
}
|
|
1677
1729
|
);
|
|
1678
1730
|
};
|
|
1679
|
-
const
|
|
1731
|
+
const go = () => Ue, mo = /* @__PURE__ */ m("div")({
|
|
1680
1732
|
name: "a",
|
|
1681
1733
|
class: "a1r7f3z4",
|
|
1682
1734
|
propsAsIs: !1
|
|
1683
|
-
}),
|
|
1735
|
+
}), Io = /* @__PURE__ */ m("div")({
|
|
1684
1736
|
name: "s",
|
|
1685
1737
|
class: "sblndl",
|
|
1686
1738
|
propsAsIs: !1
|
|
1687
|
-
}),
|
|
1739
|
+
}), yo = /* @__PURE__ */ m("div")({
|
|
1688
1740
|
name: "l",
|
|
1689
1741
|
class: "l7ka1tv",
|
|
1690
1742
|
propsAsIs: !1
|
|
1691
|
-
}),
|
|
1743
|
+
}), Mo = /* @__PURE__ */ m(go())({
|
|
1692
1744
|
name: "p",
|
|
1693
1745
|
class: "p1edlxt3",
|
|
1694
1746
|
propsAsIs: !0
|
|
1695
|
-
}),
|
|
1747
|
+
}), Co = /* @__PURE__ */ m("div")({
|
|
1696
1748
|
name: "g",
|
|
1697
1749
|
class: "ghm08u2",
|
|
1698
1750
|
propsAsIs: !1
|
|
1699
|
-
}),
|
|
1751
|
+
}), wo = /* @__PURE__ */ m("span")({
|
|
1700
1752
|
name: "c",
|
|
1701
1753
|
class: "c12nsh46",
|
|
1702
1754
|
propsAsIs: !1
|
|
1703
|
-
}),
|
|
1755
|
+
}), Eo = /* @__PURE__ */ m("span")({
|
|
1704
1756
|
name: "d",
|
|
1705
1757
|
class: "dlr9eoc",
|
|
1706
1758
|
propsAsIs: !1
|
|
1707
|
-
}),
|
|
1708
|
-
/* @__PURE__ */
|
|
1709
|
-
r && /* @__PURE__ */ p(
|
|
1710
|
-
o !== void 0 && /* @__PURE__ */
|
|
1711
|
-
/* @__PURE__ */ p(
|
|
1712
|
-
/* @__PURE__ */
|
|
1713
|
-
/* @__PURE__ */ p(
|
|
1714
|
-
/* @__PURE__ */ p(
|
|
1759
|
+
}), Ao = ({ title: r, points: o, isPlayingTimer: l, isTimer: h, onTimerExpired: d }) => /* @__PURE__ */ L(mo, { children: [
|
|
1760
|
+
/* @__PURE__ */ L(Io, { children: [
|
|
1761
|
+
r && /* @__PURE__ */ p(yo, { children: r }),
|
|
1762
|
+
o !== void 0 && /* @__PURE__ */ L(Oe, { children: [
|
|
1763
|
+
/* @__PURE__ */ p(Mo, { name: "icon-trophy" }),
|
|
1764
|
+
/* @__PURE__ */ L(Co, { children: [
|
|
1765
|
+
/* @__PURE__ */ p(wo, { children: o }),
|
|
1766
|
+
/* @__PURE__ */ p(Eo, { children: "PTS" })
|
|
1715
1767
|
] })
|
|
1716
1768
|
] })
|
|
1717
1769
|
] }),
|
|
1718
|
-
h && /* @__PURE__ */ p(
|
|
1719
|
-
] }),
|
|
1770
|
+
h && /* @__PURE__ */ p(Ii, { isPlaying: l, onTimerExpired: d })
|
|
1771
|
+
] }), No = ({ openedQuestion: r, vote: o }) => {
|
|
1720
1772
|
var l;
|
|
1721
|
-
const h = r.subject, d = r.type, g = (l = r.options) == null ? void 0 : l.options, [f, s] = K(!1), [I,
|
|
1722
|
-
async (
|
|
1723
|
-
if (
|
|
1724
|
-
const S =
|
|
1725
|
-
x(S),
|
|
1773
|
+
const h = r.subject, d = r.type, g = (l = r.options) == null ? void 0 : l.options, [f, s] = K(!1), [I, N] = K(!1), [E, x] = K(""), C = r == null ? void 0 : r.id, v = He(
|
|
1774
|
+
async (T) => {
|
|
1775
|
+
if (C) {
|
|
1776
|
+
const S = T.currentTarget.value;
|
|
1777
|
+
x(S), N(!0), await o(C, S), N(!1);
|
|
1726
1778
|
}
|
|
1727
1779
|
},
|
|
1728
|
-
[
|
|
1729
|
-
),
|
|
1730
|
-
() => r == null ? void 0 : r.answers.find((
|
|
1780
|
+
[C, x, o]
|
|
1781
|
+
), z = De(
|
|
1782
|
+
() => r == null ? void 0 : r.answers.find((T) => T.youVoted === !0),
|
|
1731
1783
|
[r]
|
|
1732
1784
|
), y = De(
|
|
1733
|
-
() => !!(r != null && r.answers.find((
|
|
1785
|
+
() => !!(r != null && r.answers.find((T) => T.correct === !0)),
|
|
1734
1786
|
[r]
|
|
1735
|
-
),
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
P1,
|
|
1787
|
+
), A = De(() => r ? r.answers.map((T) => ({
|
|
1788
|
+
...T,
|
|
1789
|
+
questionVoted: !!z,
|
|
1790
|
+
youSelected: E === T.id,
|
|
1791
|
+
isLoading: I,
|
|
1792
|
+
hasCorrectAnswer: y,
|
|
1793
|
+
questionType: r.type,
|
|
1794
|
+
answerTimeExpired: f,
|
|
1795
|
+
questionStatus: r.status,
|
|
1796
|
+
// ToDo: Figure out why imageMode is not in the response
|
|
1797
|
+
onVote: v
|
|
1798
|
+
})) : [], [y, f, I, r, z, v, E]), w = g && (g.case === "trivia" || g.case === "prediction") ? g.value : void 0;
|
|
1799
|
+
return /* @__PURE__ */ p(O1, { "data-question-header": "true", children: /* @__PURE__ */ p(H1, { children: /* @__PURE__ */ L(G1, { children: [
|
|
1800
|
+
w && /* @__PURE__ */ p(
|
|
1801
|
+
Q1,
|
|
1751
1802
|
{
|
|
1752
|
-
feedbackMessages:
|
|
1753
|
-
questionVoted: !!
|
|
1754
|
-
questionVotedCorrectly:
|
|
1803
|
+
feedbackMessages: w,
|
|
1804
|
+
questionVoted: !!z,
|
|
1805
|
+
questionVotedCorrectly: z == null ? void 0 : z.correct,
|
|
1755
1806
|
questionType: d,
|
|
1756
1807
|
hasCorrectAnswer: y
|
|
1757
1808
|
}
|
|
1758
1809
|
),
|
|
1759
1810
|
/* @__PURE__ */ p(
|
|
1760
|
-
|
|
1811
|
+
Ao,
|
|
1761
1812
|
{
|
|
1762
1813
|
title: f ? "Expired" : "To win",
|
|
1763
1814
|
points: f ? void 0 : 100,
|
|
@@ -1765,93 +1816,93 @@ const co = () => Ue, uo = /* @__PURE__ */ m("div")({
|
|
|
1765
1816
|
isTimer: !0
|
|
1766
1817
|
}
|
|
1767
1818
|
),
|
|
1768
|
-
/* @__PURE__ */ p(
|
|
1769
|
-
/* @__PURE__ */ p(
|
|
1770
|
-
] }) });
|
|
1819
|
+
/* @__PURE__ */ p(W1, { children: h }),
|
|
1820
|
+
/* @__PURE__ */ p(q1, { children: A.map((T) => /* @__PURE__ */ p(fo, { ...T }, T.id)) })
|
|
1821
|
+
] }) }) });
|
|
1771
1822
|
};
|
|
1772
|
-
const
|
|
1823
|
+
const xo = /* @__PURE__ */ m("div")({
|
|
1773
1824
|
name: "n",
|
|
1774
1825
|
class: "nyaglcf",
|
|
1775
1826
|
propsAsIs: !1
|
|
1776
|
-
}),
|
|
1827
|
+
}), To = /* @__PURE__ */ m("div")({
|
|
1777
1828
|
name: "r",
|
|
1778
1829
|
class: "rn5nzbc",
|
|
1779
1830
|
propsAsIs: !1
|
|
1780
|
-
}),
|
|
1831
|
+
}), vo = /* @__PURE__ */ m("img")({
|
|
1781
1832
|
name: "e",
|
|
1782
1833
|
class: "e6i73qc",
|
|
1783
1834
|
propsAsIs: !1
|
|
1784
|
-
}),
|
|
1835
|
+
}), Do = /* @__PURE__ */ m("div")({
|
|
1785
1836
|
name: "i",
|
|
1786
1837
|
class: "iu0veuw",
|
|
1787
1838
|
propsAsIs: !1
|
|
1788
|
-
}),
|
|
1839
|
+
}), Lo = /* @__PURE__ */ m("img")({
|
|
1789
1840
|
name: "p",
|
|
1790
1841
|
class: "ph41hsa",
|
|
1791
1842
|
propsAsIs: !1
|
|
1792
|
-
}),
|
|
1843
|
+
}), zo = /* @__PURE__ */ m("span")({
|
|
1793
1844
|
name: "a",
|
|
1794
1845
|
class: "a1doo0j",
|
|
1795
1846
|
propsAsIs: !1
|
|
1796
|
-
}),
|
|
1847
|
+
}), So = /* @__PURE__ */ m("div")({
|
|
1797
1848
|
name: "s",
|
|
1798
1849
|
class: "s1y6mmdj",
|
|
1799
1850
|
propsAsIs: !1
|
|
1800
|
-
}),
|
|
1851
|
+
}), jo = /* @__PURE__ */ m("div")({
|
|
1801
1852
|
name: "c",
|
|
1802
1853
|
class: "cr7s6d2",
|
|
1803
1854
|
propsAsIs: !1
|
|
1804
|
-
}),
|
|
1855
|
+
}), Bo = /* @__PURE__ */ m("button")({
|
|
1805
1856
|
name: "d",
|
|
1806
1857
|
class: "dn2ogfd",
|
|
1807
1858
|
propsAsIs: !1
|
|
1808
|
-
}),
|
|
1859
|
+
}), ko = /* @__PURE__ */ m("button")({
|
|
1809
1860
|
name: "x",
|
|
1810
1861
|
class: "xvt3fwn",
|
|
1811
1862
|
propsAsIs: !1
|
|
1812
|
-
}),
|
|
1863
|
+
}), bo = /* @__PURE__ */ m("img")({
|
|
1813
1864
|
name: "g",
|
|
1814
1865
|
class: "g4rp2wp",
|
|
1815
1866
|
propsAsIs: !1
|
|
1816
|
-
}),
|
|
1867
|
+
}), Ro = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIxLjI1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDEuMjUgMCkiIGZpbGw9IndoaXRlIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB5PSI4Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwIDguNzUpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo=", _o = ({
|
|
1817
1868
|
close: r,
|
|
1818
1869
|
action: o,
|
|
1819
1870
|
data: { icon: l, header: h, title: d, subtitle: g, graphicBg: f, sponsorLogo: s }
|
|
1820
|
-
}) => /* @__PURE__ */
|
|
1821
|
-
/* @__PURE__ */ p(
|
|
1822
|
-
/* @__PURE__ */ p(
|
|
1823
|
-
/* @__PURE__ */
|
|
1824
|
-
/* @__PURE__ */
|
|
1825
|
-
/* @__PURE__ */ p("div", { children: s ? /* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */ p(
|
|
1827
|
-
/* @__PURE__ */ p(
|
|
1871
|
+
}) => /* @__PURE__ */ L(xo, { children: [
|
|
1872
|
+
/* @__PURE__ */ p(ko, { onClick: r, children: /* @__PURE__ */ p(bo, { alt: "icon-close-onboarding-inapp", src: Ro }) }),
|
|
1873
|
+
/* @__PURE__ */ p(To, { style: { backgroundImage: `url(${f || ""})` }, children: l && /* @__PURE__ */ p(vo, { alt: "onboarding-inapp-icon", src: l }) }),
|
|
1874
|
+
/* @__PURE__ */ L(Do, { children: [
|
|
1875
|
+
/* @__PURE__ */ L("div", { children: [
|
|
1876
|
+
/* @__PURE__ */ p("div", { children: s ? /* @__PURE__ */ L(Oe, { children: [
|
|
1877
|
+
/* @__PURE__ */ p(Lo, { alt: "sponsor-logo", src: s }),
|
|
1878
|
+
/* @__PURE__ */ p(zo, { children: "Presents" })
|
|
1828
1879
|
] }) : h || "" }),
|
|
1829
|
-
/* @__PURE__ */ p(
|
|
1830
|
-
/* @__PURE__ */ p(
|
|
1880
|
+
/* @__PURE__ */ p(So, { children: d || "" }),
|
|
1881
|
+
/* @__PURE__ */ p(jo, { children: g || "" })
|
|
1831
1882
|
] }),
|
|
1832
|
-
/* @__PURE__ */ p(
|
|
1883
|
+
/* @__PURE__ */ p(Bo, { onClick: o, children: "Play" })
|
|
1833
1884
|
] })
|
|
1834
1885
|
] });
|
|
1835
|
-
const
|
|
1886
|
+
const Oo = /* @__PURE__ */ m("div")({
|
|
1836
1887
|
name: "r",
|
|
1837
1888
|
class: "r1li8aub",
|
|
1838
1889
|
propsAsIs: !1
|
|
1839
|
-
}),
|
|
1840
|
-
[
|
|
1841
|
-
[
|
|
1842
|
-
},
|
|
1890
|
+
}), Uo = {
|
|
1891
|
+
[Vt.ONBOARDING]: _o,
|
|
1892
|
+
[Vt.QUESTION]: mi
|
|
1893
|
+
}, $o = ({
|
|
1843
1894
|
index: r,
|
|
1844
1895
|
total: o,
|
|
1845
1896
|
...l
|
|
1846
1897
|
}) => {
|
|
1847
|
-
const h =
|
|
1898
|
+
const h = Ri(null), d = Uo[l.type] || mi;
|
|
1848
1899
|
return bt(() => {
|
|
1849
1900
|
h.current !== null && l.hiding && h.current.animate([{ right: "0" }, { right: "-100%" }], {
|
|
1850
1901
|
duration: 300,
|
|
1851
1902
|
fill: "forwards"
|
|
1852
1903
|
});
|
|
1853
1904
|
}, [l.hiding]), /* @__PURE__ */ p(
|
|
1854
|
-
|
|
1905
|
+
Oo,
|
|
1855
1906
|
{
|
|
1856
1907
|
ref: h,
|
|
1857
1908
|
style: { zIndex: r + 1, transform: `translateY(${100 * (o - r - 1)}%)` },
|
|
@@ -1859,14 +1910,14 @@ const Bo = /* @__PURE__ */ m("div")({
|
|
|
1859
1910
|
}
|
|
1860
1911
|
);
|
|
1861
1912
|
};
|
|
1862
|
-
const
|
|
1913
|
+
const Fo = /* @__PURE__ */ m("div")({
|
|
1863
1914
|
name: "o",
|
|
1864
1915
|
class: "oc6h1al",
|
|
1865
1916
|
propsAsIs: !1
|
|
1866
|
-
}),
|
|
1917
|
+
}), Po = ({ notificationsStore: r }) => {
|
|
1867
1918
|
const o = Z(r);
|
|
1868
|
-
return /* @__PURE__ */ p(
|
|
1869
|
-
|
|
1919
|
+
return /* @__PURE__ */ p(Fo, { children: o == null ? void 0 : o.map((l, h) => /* @__PURE__ */ p(
|
|
1920
|
+
$o,
|
|
1870
1921
|
{
|
|
1871
1922
|
index: h,
|
|
1872
1923
|
total: o.length,
|
|
@@ -1874,18 +1925,18 @@ const Ro = /* @__PURE__ */ m("div")({
|
|
|
1874
1925
|
},
|
|
1875
1926
|
l.id
|
|
1876
1927
|
)) });
|
|
1877
|
-
},
|
|
1928
|
+
}, Yo = ({ store: r }) => {
|
|
1878
1929
|
const { data: o } = Z(r);
|
|
1879
|
-
return o != null && o.summary ? /* @__PURE__ */ p(
|
|
1880
|
-
},
|
|
1930
|
+
return o != null && o.summary ? /* @__PURE__ */ p(R1, { ...o.summary, ...o.percentage }) : /* @__PURE__ */ p("div", { children: "wait user..." });
|
|
1931
|
+
}, Vo = ({ store: r, openQuestion: o }) => {
|
|
1881
1932
|
const l = Z(r);
|
|
1882
|
-
return l != null && l.data ? /* @__PURE__ */ p(
|
|
1933
|
+
return l != null && l.data ? /* @__PURE__ */ p(h1, { openQuestion: o, questions: l.data }) : /* @__PURE__ */ p("div", { children: "wait questions..." });
|
|
1883
1934
|
};
|
|
1884
|
-
const
|
|
1935
|
+
const Zo = /* @__PURE__ */ m("div")({
|
|
1885
1936
|
name: "y",
|
|
1886
1937
|
class: "y1qd1atw",
|
|
1887
1938
|
propsAsIs: !1
|
|
1888
|
-
}),
|
|
1939
|
+
}), Qo = ({
|
|
1889
1940
|
openedQuestion: r,
|
|
1890
1941
|
closeQuestion: o,
|
|
1891
1942
|
vote: l
|
|
@@ -1896,10 +1947,10 @@ const $o = /* @__PURE__ */ m("div")({
|
|
|
1896
1947
|
g(I);
|
|
1897
1948
|
}, [g]);
|
|
1898
1949
|
const f = De(() => r == null ? void 0 : r.answers.find((I) => I.youVoted === !0), [r]), s = De(() => !!(r != null && r.answers.find((I) => I.correct === !0)), [r]);
|
|
1899
|
-
return r ? /* @__PURE__ */ p(
|
|
1950
|
+
return r ? /* @__PURE__ */ p(Zo, {
|
|
1900
1951
|
children: /* @__PURE__ */ p("div", {
|
|
1901
1952
|
children: /* @__PURE__ */ p("div", {
|
|
1902
|
-
children: /* @__PURE__ */ p(
|
|
1953
|
+
children: /* @__PURE__ */ p(No, {
|
|
1903
1954
|
title: r.subject,
|
|
1904
1955
|
feedbackMessages: (h = r.options) == null ? void 0 : h.options.value,
|
|
1905
1956
|
questionType: r.type,
|
|
@@ -1925,87 +1976,87 @@ const $o = /* @__PURE__ */ m("div")({
|
|
|
1925
1976
|
})
|
|
1926
1977
|
}) : null;
|
|
1927
1978
|
};
|
|
1928
|
-
const
|
|
1979
|
+
const Ho = /* @__PURE__ */ m("div")({
|
|
1929
1980
|
name: "e",
|
|
1930
1981
|
class: "e1q4ysxt",
|
|
1931
1982
|
propsAsIs: !1
|
|
1932
|
-
}),
|
|
1983
|
+
}), Go = /* @__PURE__ */ m("div")({
|
|
1933
1984
|
name: "o",
|
|
1934
1985
|
class: "ouyy0pt",
|
|
1935
1986
|
propsAsIs: !1
|
|
1936
|
-
}),
|
|
1987
|
+
}), Wo = /* @__PURE__ */ m("div")({
|
|
1937
1988
|
name: "n",
|
|
1938
1989
|
class: "n19nxf9u",
|
|
1939
1990
|
propsAsIs: !1
|
|
1940
|
-
}),
|
|
1991
|
+
}), qo = /* @__PURE__ */ m("img")({
|
|
1941
1992
|
name: "r",
|
|
1942
1993
|
class: "r1k9ayhp",
|
|
1943
1994
|
propsAsIs: !1
|
|
1944
|
-
}),
|
|
1995
|
+
}), Jo = /* @__PURE__ */ m("img")({
|
|
1945
1996
|
name: "l",
|
|
1946
1997
|
class: "l5j3lzi",
|
|
1947
1998
|
propsAsIs: !1
|
|
1948
|
-
}),
|
|
1999
|
+
}), Xo = /* @__PURE__ */ m("img")({
|
|
1949
2000
|
name: "s",
|
|
1950
2001
|
class: "sm6ggfo",
|
|
1951
2002
|
propsAsIs: !1
|
|
1952
|
-
}),
|
|
2003
|
+
}), Ko = /* @__PURE__ */ m("div")({
|
|
1953
2004
|
name: "p",
|
|
1954
2005
|
class: "p1dhscaj",
|
|
1955
2006
|
propsAsIs: !1
|
|
1956
|
-
}),
|
|
2007
|
+
}), es = /* @__PURE__ */ m("img")({
|
|
1957
2008
|
name: "a",
|
|
1958
2009
|
class: "a1f5isrh",
|
|
1959
2010
|
propsAsIs: !1
|
|
1960
2011
|
});
|
|
1961
|
-
const
|
|
2012
|
+
const ts = /* @__PURE__ */ m("div")({
|
|
1962
2013
|
name: "e",
|
|
1963
2014
|
class: "e1javwmj",
|
|
1964
2015
|
propsAsIs: !1
|
|
1965
|
-
}),
|
|
2016
|
+
}), is = /* @__PURE__ */ m("div")({
|
|
1966
2017
|
name: "t",
|
|
1967
2018
|
class: "t1qosv8q",
|
|
1968
2019
|
propsAsIs: !1
|
|
1969
2020
|
});
|
|
1970
|
-
const
|
|
2021
|
+
const rs = /* @__PURE__ */ m("div")({
|
|
1971
2022
|
name: "t",
|
|
1972
2023
|
class: "t16hl500",
|
|
1973
2024
|
propsAsIs: !1
|
|
1974
|
-
}),
|
|
2025
|
+
}), ns = /* @__PURE__ */ m("img")({
|
|
1975
2026
|
name: "e",
|
|
1976
2027
|
class: "e18ymslp",
|
|
1977
2028
|
propsAsIs: !1
|
|
1978
|
-
}),
|
|
2029
|
+
}), os = /* @__PURE__ */ m("div")({
|
|
1979
2030
|
name: "n",
|
|
1980
2031
|
class: "n1kdd00k",
|
|
1981
2032
|
propsAsIs: !1
|
|
1982
|
-
}),
|
|
2033
|
+
}), ss = /* @__PURE__ */ m("div")({
|
|
1983
2034
|
name: "r",
|
|
1984
2035
|
class: "rwwgdkm",
|
|
1985
2036
|
propsAsIs: !1
|
|
1986
|
-
}),
|
|
2037
|
+
}), as = /* @__PURE__ */ m("div")({
|
|
1987
2038
|
name: "d",
|
|
1988
2039
|
class: "dvazwa9",
|
|
1989
2040
|
propsAsIs: !1
|
|
1990
|
-
}),
|
|
2041
|
+
}), ls = /* @__PURE__ */ m("a")({
|
|
1991
2042
|
name: "c",
|
|
1992
2043
|
class: "cd3vh14",
|
|
1993
2044
|
propsAsIs: !1
|
|
1994
|
-
}),
|
|
2045
|
+
}), cs = /* @__PURE__ */ m("img")({
|
|
1995
2046
|
name: "l",
|
|
1996
2047
|
class: "l19zo16x",
|
|
1997
2048
|
propsAsIs: !1
|
|
1998
2049
|
});
|
|
1999
|
-
var
|
|
2000
|
-
at.byteLength =
|
|
2001
|
-
at.toByteArray =
|
|
2002
|
-
at.fromByteArray =
|
|
2003
|
-
var fe = [], ee = [],
|
|
2004
|
-
for (var Fe = 0,
|
|
2005
|
-
fe[Fe] =
|
|
2050
|
+
var Ei = {}, Ai = {}, at = {};
|
|
2051
|
+
at.byteLength = ds;
|
|
2052
|
+
at.toByteArray = fs;
|
|
2053
|
+
at.fromByteArray = Is;
|
|
2054
|
+
var fe = [], ee = [], us = typeof Uint8Array < "u" ? Uint8Array : Array, Ct = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2055
|
+
for (var Fe = 0, hs = Ct.length; Fe < hs; ++Fe)
|
|
2056
|
+
fe[Fe] = Ct[Fe], ee[Ct.charCodeAt(Fe)] = Fe;
|
|
2006
2057
|
ee["-".charCodeAt(0)] = 62;
|
|
2007
2058
|
ee["_".charCodeAt(0)] = 63;
|
|
2008
|
-
function
|
|
2059
|
+
function Ni(r) {
|
|
2009
2060
|
var o = r.length;
|
|
2010
2061
|
if (o % 4 > 0)
|
|
2011
2062
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -2014,60 +2065,60 @@ function Ai(r) {
|
|
|
2014
2065
|
var h = l === o ? 0 : 4 - l % 4;
|
|
2015
2066
|
return [l, h];
|
|
2016
2067
|
}
|
|
2017
|
-
function
|
|
2018
|
-
var o =
|
|
2068
|
+
function ds(r) {
|
|
2069
|
+
var o = Ni(r), l = o[0], h = o[1];
|
|
2019
2070
|
return (l + h) * 3 / 4 - h;
|
|
2020
2071
|
}
|
|
2021
|
-
function
|
|
2072
|
+
function ps(r, o, l) {
|
|
2022
2073
|
return (o + l) * 3 / 4 - l;
|
|
2023
2074
|
}
|
|
2024
|
-
function
|
|
2025
|
-
var o, l =
|
|
2075
|
+
function fs(r) {
|
|
2076
|
+
var o, l = Ni(r), h = l[0], d = l[1], g = new us(ps(r, h, d)), f = 0, s = d > 0 ? h - 4 : h, I;
|
|
2026
2077
|
for (I = 0; I < s; I += 4)
|
|
2027
2078
|
o = ee[r.charCodeAt(I)] << 18 | ee[r.charCodeAt(I + 1)] << 12 | ee[r.charCodeAt(I + 2)] << 6 | ee[r.charCodeAt(I + 3)], g[f++] = o >> 16 & 255, g[f++] = o >> 8 & 255, g[f++] = o & 255;
|
|
2028
2079
|
return d === 2 && (o = ee[r.charCodeAt(I)] << 2 | ee[r.charCodeAt(I + 1)] >> 4, g[f++] = o & 255), d === 1 && (o = ee[r.charCodeAt(I)] << 10 | ee[r.charCodeAt(I + 1)] << 4 | ee[r.charCodeAt(I + 2)] >> 2, g[f++] = o >> 8 & 255, g[f++] = o & 255), g;
|
|
2029
2080
|
}
|
|
2030
|
-
function
|
|
2081
|
+
function gs(r) {
|
|
2031
2082
|
return fe[r >> 18 & 63] + fe[r >> 12 & 63] + fe[r >> 6 & 63] + fe[r & 63];
|
|
2032
2083
|
}
|
|
2033
|
-
function
|
|
2084
|
+
function ms(r, o, l) {
|
|
2034
2085
|
for (var h, d = [], g = o; g < l; g += 3)
|
|
2035
|
-
h = (r[g] << 16 & 16711680) + (r[g + 1] << 8 & 65280) + (r[g + 2] & 255), d.push(
|
|
2086
|
+
h = (r[g] << 16 & 16711680) + (r[g + 1] << 8 & 65280) + (r[g + 2] & 255), d.push(gs(h));
|
|
2036
2087
|
return d.join("");
|
|
2037
2088
|
}
|
|
2038
|
-
function
|
|
2089
|
+
function Is(r) {
|
|
2039
2090
|
for (var o, l = r.length, h = l % 3, d = [], g = 16383, f = 0, s = l - h; f < s; f += g)
|
|
2040
|
-
d.push(
|
|
2091
|
+
d.push(ms(r, f, f + g > s ? s : f + g));
|
|
2041
2092
|
return h === 1 ? (o = r[l - 1], d.push(
|
|
2042
2093
|
fe[o >> 2] + fe[o << 4 & 63] + "=="
|
|
2043
2094
|
)) : h === 2 && (o = (r[l - 2] << 8) + r[l - 1], d.push(
|
|
2044
2095
|
fe[o >> 10] + fe[o >> 4 & 63] + fe[o << 2 & 63] + "="
|
|
2045
2096
|
)), d.join("");
|
|
2046
2097
|
}
|
|
2047
|
-
var
|
|
2098
|
+
var Ft = {};
|
|
2048
2099
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2049
|
-
|
|
2050
|
-
var g, f, s = d * 8 - h - 1, I = (1 << s) - 1,
|
|
2051
|
-
for (x +=
|
|
2100
|
+
Ft.read = function(r, o, l, h, d) {
|
|
2101
|
+
var g, f, s = d * 8 - h - 1, I = (1 << s) - 1, N = I >> 1, E = -7, x = l ? d - 1 : 0, C = l ? -1 : 1, v = r[o + x];
|
|
2102
|
+
for (x += C, g = v & (1 << -E) - 1, v >>= -E, E += s; E > 0; g = g * 256 + r[o + x], x += C, E -= 8)
|
|
2052
2103
|
;
|
|
2053
|
-
for (f = g & (1 << -E) - 1, g >>= -E, E += h; E > 0; f = f * 256 + r[o + x], x +=
|
|
2104
|
+
for (f = g & (1 << -E) - 1, g >>= -E, E += h; E > 0; f = f * 256 + r[o + x], x += C, E -= 8)
|
|
2054
2105
|
;
|
|
2055
2106
|
if (g === 0)
|
|
2056
|
-
g = 1 -
|
|
2107
|
+
g = 1 - N;
|
|
2057
2108
|
else {
|
|
2058
2109
|
if (g === I)
|
|
2059
|
-
return f ? NaN : (
|
|
2060
|
-
f = f + Math.pow(2, h), g = g -
|
|
2110
|
+
return f ? NaN : (v ? -1 : 1) * (1 / 0);
|
|
2111
|
+
f = f + Math.pow(2, h), g = g - N;
|
|
2061
2112
|
}
|
|
2062
|
-
return (
|
|
2113
|
+
return (v ? -1 : 1) * f * Math.pow(2, g - h);
|
|
2063
2114
|
};
|
|
2064
|
-
|
|
2065
|
-
var f, s, I,
|
|
2066
|
-
for (o = Math.abs(o), isNaN(o) || o === 1 / 0 ? (s = isNaN(o) ? 1 : 0, f = E) : (f = Math.floor(Math.log(o) / Math.LN2), o * (I = Math.pow(2, -f)) < 1 && (f--, I *= 2), f + x >= 1 ? o +=
|
|
2115
|
+
Ft.write = function(r, o, l, h, d, g) {
|
|
2116
|
+
var f, s, I, N = g * 8 - d - 1, E = (1 << N) - 1, x = E >> 1, C = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = h ? 0 : g - 1, z = h ? 1 : -1, y = o < 0 || o === 0 && 1 / o < 0 ? 1 : 0;
|
|
2117
|
+
for (o = Math.abs(o), isNaN(o) || o === 1 / 0 ? (s = isNaN(o) ? 1 : 0, f = E) : (f = Math.floor(Math.log(o) / Math.LN2), o * (I = Math.pow(2, -f)) < 1 && (f--, I *= 2), f + x >= 1 ? o += C / I : o += C * Math.pow(2, 1 - x), o * I >= 2 && (f++, I /= 2), f + x >= E ? (s = 0, f = E) : f + x >= 1 ? (s = (o * I - 1) * Math.pow(2, d), f = f + x) : (s = o * Math.pow(2, x - 1) * Math.pow(2, d), f = 0)); d >= 8; r[l + v] = s & 255, v += z, s /= 256, d -= 8)
|
|
2067
2118
|
;
|
|
2068
|
-
for (f = f << d | s,
|
|
2119
|
+
for (f = f << d | s, N += d; N > 0; r[l + v] = f & 255, v += z, f /= 256, N -= 8)
|
|
2069
2120
|
;
|
|
2070
|
-
r[l +
|
|
2121
|
+
r[l + v - z] |= y * 128;
|
|
2071
2122
|
};
|
|
2072
2123
|
/*!
|
|
2073
2124
|
* The buffer module from node.js, for the browser.
|
|
@@ -2076,8 +2127,8 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2076
2127
|
* @license MIT
|
|
2077
2128
|
*/
|
|
2078
2129
|
(function(r) {
|
|
2079
|
-
const o = at, l =
|
|
2080
|
-
r.Buffer = s, r.SlowBuffer =
|
|
2130
|
+
const o = at, l = Ft, h = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
2131
|
+
r.Buffer = s, r.SlowBuffer = T, r.INSPECT_MAX_BYTES = 50;
|
|
2081
2132
|
const d = 2147483647;
|
|
2082
2133
|
r.kMaxLength = d, s.TYPED_ARRAY_SUPPORT = g(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
2083
2134
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -2124,9 +2175,9 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2124
2175
|
s.poolSize = 8192;
|
|
2125
2176
|
function I(i, e, t) {
|
|
2126
2177
|
if (typeof i == "string")
|
|
2127
|
-
return
|
|
2178
|
+
return C(i, e);
|
|
2128
2179
|
if (ArrayBuffer.isView(i))
|
|
2129
|
-
return
|
|
2180
|
+
return z(i);
|
|
2130
2181
|
if (i == null)
|
|
2131
2182
|
throw new TypeError(
|
|
2132
2183
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
|
@@ -2140,7 +2191,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2140
2191
|
const n = i.valueOf && i.valueOf();
|
|
2141
2192
|
if (n != null && n !== i)
|
|
2142
2193
|
return s.from(n, e, t);
|
|
2143
|
-
const a =
|
|
2194
|
+
const a = A(i);
|
|
2144
2195
|
if (a)
|
|
2145
2196
|
return a;
|
|
2146
2197
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof i[Symbol.toPrimitive] == "function")
|
|
@@ -2152,27 +2203,27 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2152
2203
|
s.from = function(i, e, t) {
|
|
2153
2204
|
return I(i, e, t);
|
|
2154
2205
|
}, Object.setPrototypeOf(s.prototype, Uint8Array.prototype), Object.setPrototypeOf(s, Uint8Array);
|
|
2155
|
-
function
|
|
2206
|
+
function N(i) {
|
|
2156
2207
|
if (typeof i != "number")
|
|
2157
2208
|
throw new TypeError('"size" argument must be of type number');
|
|
2158
2209
|
if (i < 0)
|
|
2159
2210
|
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
|
2160
2211
|
}
|
|
2161
2212
|
function E(i, e, t) {
|
|
2162
|
-
return
|
|
2213
|
+
return N(i), i <= 0 ? f(i) : e !== void 0 ? typeof t == "string" ? f(i).fill(e, t) : f(i).fill(e) : f(i);
|
|
2163
2214
|
}
|
|
2164
2215
|
s.alloc = function(i, e, t) {
|
|
2165
2216
|
return E(i, e, t);
|
|
2166
2217
|
};
|
|
2167
2218
|
function x(i) {
|
|
2168
|
-
return
|
|
2219
|
+
return N(i), f(i < 0 ? 0 : w(i) | 0);
|
|
2169
2220
|
}
|
|
2170
2221
|
s.allocUnsafe = function(i) {
|
|
2171
2222
|
return x(i);
|
|
2172
2223
|
}, s.allocUnsafeSlow = function(i) {
|
|
2173
2224
|
return x(i);
|
|
2174
2225
|
};
|
|
2175
|
-
function
|
|
2226
|
+
function C(i, e) {
|
|
2176
2227
|
if ((typeof e != "string" || e === "") && (e = "utf8"), !s.isEncoding(e))
|
|
2177
2228
|
throw new TypeError("Unknown encoding: " + e);
|
|
2178
2229
|
const t = S(i, e) | 0;
|
|
@@ -2180,18 +2231,18 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2180
2231
|
const a = n.write(i, e);
|
|
2181
2232
|
return a !== t && (n = n.slice(0, a)), n;
|
|
2182
2233
|
}
|
|
2183
|
-
function
|
|
2184
|
-
const e = i.length < 0 ? 0 :
|
|
2234
|
+
function v(i) {
|
|
2235
|
+
const e = i.length < 0 ? 0 : w(i.length) | 0, t = f(e);
|
|
2185
2236
|
for (let n = 0; n < e; n += 1)
|
|
2186
2237
|
t[n] = i[n] & 255;
|
|
2187
2238
|
return t;
|
|
2188
2239
|
}
|
|
2189
|
-
function
|
|
2240
|
+
function z(i) {
|
|
2190
2241
|
if (P(i, Uint8Array)) {
|
|
2191
2242
|
const e = new Uint8Array(i);
|
|
2192
2243
|
return y(e.buffer, e.byteOffset, e.byteLength);
|
|
2193
2244
|
}
|
|
2194
|
-
return
|
|
2245
|
+
return v(i);
|
|
2195
2246
|
}
|
|
2196
2247
|
function y(i, e, t) {
|
|
2197
2248
|
if (e < 0 || i.byteLength < e)
|
|
@@ -2201,22 +2252,22 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2201
2252
|
let n;
|
|
2202
2253
|
return e === void 0 && t === void 0 ? n = new Uint8Array(i) : t === void 0 ? n = new Uint8Array(i, e) : n = new Uint8Array(i, e, t), Object.setPrototypeOf(n, s.prototype), n;
|
|
2203
2254
|
}
|
|
2204
|
-
function
|
|
2255
|
+
function A(i) {
|
|
2205
2256
|
if (s.isBuffer(i)) {
|
|
2206
|
-
const e =
|
|
2257
|
+
const e = w(i.length) | 0, t = f(e);
|
|
2207
2258
|
return t.length === 0 || i.copy(t, 0, 0, e), t;
|
|
2208
2259
|
}
|
|
2209
2260
|
if (i.length !== void 0)
|
|
2210
|
-
return typeof i.length != "number" || Be(i.length) ? f(0) :
|
|
2261
|
+
return typeof i.length != "number" || Be(i.length) ? f(0) : v(i);
|
|
2211
2262
|
if (i.type === "Buffer" && Array.isArray(i.data))
|
|
2212
|
-
return
|
|
2263
|
+
return v(i.data);
|
|
2213
2264
|
}
|
|
2214
|
-
function
|
|
2265
|
+
function w(i) {
|
|
2215
2266
|
if (i >= d)
|
|
2216
2267
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + d.toString(16) + " bytes");
|
|
2217
2268
|
return i | 0;
|
|
2218
2269
|
}
|
|
2219
|
-
function
|
|
2270
|
+
function T(i) {
|
|
2220
2271
|
return +i != i && (i = 0), s.alloc(+i);
|
|
2221
2272
|
}
|
|
2222
2273
|
s.isBuffer = function(e) {
|
|
@@ -2329,17 +2380,17 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2329
2380
|
case "utf-8":
|
|
2330
2381
|
return ne(this, e, t);
|
|
2331
2382
|
case "ascii":
|
|
2332
|
-
return
|
|
2383
|
+
return Ne(this, e, t);
|
|
2333
2384
|
case "latin1":
|
|
2334
2385
|
case "binary":
|
|
2335
2386
|
return Ie(this, e, t);
|
|
2336
2387
|
case "base64":
|
|
2337
|
-
return
|
|
2388
|
+
return W(this, e, t);
|
|
2338
2389
|
case "ucs2":
|
|
2339
2390
|
case "ucs-2":
|
|
2340
2391
|
case "utf16le":
|
|
2341
2392
|
case "utf-16le":
|
|
2342
|
-
return
|
|
2393
|
+
return xe(this, e, t);
|
|
2343
2394
|
default:
|
|
2344
2395
|
if (n)
|
|
2345
2396
|
throw new TypeError("Unknown encoding: " + i);
|
|
@@ -2464,7 +2515,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2464
2515
|
}, s.prototype.lastIndexOf = function(e, t, n) {
|
|
2465
2516
|
return U(this, e, t, n, !1);
|
|
2466
2517
|
};
|
|
2467
|
-
function
|
|
2518
|
+
function G(i, e, t, n) {
|
|
2468
2519
|
t = Number(t) || 0;
|
|
2469
2520
|
const a = i.length - t;
|
|
2470
2521
|
n ? (n = Number(n), n > a && (n = a)) : n = a;
|
|
@@ -2510,7 +2561,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2510
2561
|
for (; ; )
|
|
2511
2562
|
switch (a) {
|
|
2512
2563
|
case "hex":
|
|
2513
|
-
return
|
|
2564
|
+
return G(this, e, t, n);
|
|
2514
2565
|
case "utf8":
|
|
2515
2566
|
case "utf-8":
|
|
2516
2567
|
return q(this, e, t, n);
|
|
@@ -2536,7 +2587,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2536
2587
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
2537
2588
|
};
|
|
2538
2589
|
};
|
|
2539
|
-
function
|
|
2590
|
+
function W(i, e, t) {
|
|
2540
2591
|
return e === 0 && t === i.length ? o.fromByteArray(i) : o.fromByteArray(i.slice(e, t));
|
|
2541
2592
|
}
|
|
2542
2593
|
function ne(i, e, t) {
|
|
@@ -2579,7 +2630,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2579
2630
|
);
|
|
2580
2631
|
return t;
|
|
2581
2632
|
}
|
|
2582
|
-
function
|
|
2633
|
+
function Ne(i, e, t) {
|
|
2583
2634
|
let n = "";
|
|
2584
2635
|
t = Math.min(i.length, t);
|
|
2585
2636
|
for (let a = e; a < t; ++a)
|
|
@@ -2601,7 +2652,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2601
2652
|
a += ft[i[c]];
|
|
2602
2653
|
return a;
|
|
2603
2654
|
}
|
|
2604
|
-
function
|
|
2655
|
+
function xe(i, e, t) {
|
|
2605
2656
|
const n = i.slice(e, t);
|
|
2606
2657
|
let a = "";
|
|
2607
2658
|
for (let c = 0; c < n.length - 1; c += 2)
|
|
@@ -2739,7 +2790,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2739
2790
|
}, s.prototype.writeUint32BE = s.prototype.writeUInt32BE = function(e, t, n) {
|
|
2740
2791
|
return e = +e, t = t >>> 0, n || $(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
2741
2792
|
};
|
|
2742
|
-
function
|
|
2793
|
+
function Te(i, e, t, n, a) {
|
|
2743
2794
|
Je(e, n, a, i, t, 7);
|
|
2744
2795
|
let c = Number(e & BigInt(4294967295));
|
|
2745
2796
|
i[t++] = c, c = c >> 8, i[t++] = c, c = c >> 8, i[t++] = c, c = c >> 8, i[t++] = c;
|
|
@@ -2754,7 +2805,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2754
2805
|
return i[t + 3] = u, u = u >> 8, i[t + 2] = u, u = u >> 8, i[t + 1] = u, u = u >> 8, i[t] = u, t + 8;
|
|
2755
2806
|
}
|
|
2756
2807
|
s.prototype.writeBigUInt64LE = Q(function(e, t = 0) {
|
|
2757
|
-
return
|
|
2808
|
+
return Te(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2758
2809
|
}), s.prototype.writeBigUInt64BE = Q(function(e, t = 0) {
|
|
2759
2810
|
return se(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2760
2811
|
}), s.prototype.writeIntLE = function(e, t, n, a) {
|
|
@@ -2786,18 +2837,18 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2786
2837
|
}, s.prototype.writeInt32BE = function(e, t, n) {
|
|
2787
2838
|
return e = +e, t = t >>> 0, n || $(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
2788
2839
|
}, s.prototype.writeBigInt64LE = Q(function(e, t = 0) {
|
|
2789
|
-
return
|
|
2840
|
+
return Te(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2790
2841
|
}), s.prototype.writeBigInt64BE = Q(function(e, t = 0) {
|
|
2791
2842
|
return se(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2792
2843
|
});
|
|
2793
|
-
function
|
|
2844
|
+
function ve(i, e, t, n, a, c) {
|
|
2794
2845
|
if (t + n > i.length)
|
|
2795
2846
|
throw new RangeError("Index out of range");
|
|
2796
2847
|
if (t < 0)
|
|
2797
2848
|
throw new RangeError("Index out of range");
|
|
2798
2849
|
}
|
|
2799
2850
|
function Ge(i, e, t, n, a) {
|
|
2800
|
-
return e = +e, t = t >>> 0, a ||
|
|
2851
|
+
return e = +e, t = t >>> 0, a || ve(i, e, t, 4), l.write(i, e, t, n, 23, 4), t + 4;
|
|
2801
2852
|
}
|
|
2802
2853
|
s.prototype.writeFloatLE = function(e, t, n) {
|
|
2803
2854
|
return Ge(this, e, t, !0, n);
|
|
@@ -2805,7 +2856,7 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
2805
2856
|
return Ge(this, e, t, !1, n);
|
|
2806
2857
|
};
|
|
2807
2858
|
function We(i, e, t, n, a) {
|
|
2808
|
-
return e = +e, t = t >>> 0, a ||
|
|
2859
|
+
return e = +e, t = t >>> 0, a || ve(i, e, t, 8), l.write(i, e, t, n, 52, 8), t + 8;
|
|
2809
2860
|
}
|
|
2810
2861
|
s.prototype.writeDoubleLE = function(e, t, n) {
|
|
2811
2862
|
return We(this, e, t, !0, n);
|
|
@@ -3044,8 +3095,8 @@ $t.write = function(r, o, l, h, d, g) {
|
|
|
3044
3095
|
function gt() {
|
|
3045
3096
|
throw new Error("BigInt not supported");
|
|
3046
3097
|
}
|
|
3047
|
-
})(
|
|
3048
|
-
var
|
|
3098
|
+
})(Ai);
|
|
3099
|
+
var xi = { exports: {} }, Y = xi.exports = {}, ue, he;
|
|
3049
3100
|
function vt() {
|
|
3050
3101
|
throw new Error("setTimeout has not been defined");
|
|
3051
3102
|
}
|
|
@@ -3064,7 +3115,7 @@ function Dt() {
|
|
|
3064
3115
|
he = Dt;
|
|
3065
3116
|
}
|
|
3066
3117
|
})();
|
|
3067
|
-
function
|
|
3118
|
+
function Ti(r) {
|
|
3068
3119
|
if (ue === setTimeout)
|
|
3069
3120
|
return setTimeout(r, 0);
|
|
3070
3121
|
if ((ue === vt || !ue) && setTimeout)
|
|
@@ -3079,7 +3130,7 @@ function xi(r) {
|
|
|
3079
3130
|
}
|
|
3080
3131
|
}
|
|
3081
3132
|
}
|
|
3082
|
-
function
|
|
3133
|
+
function ys(r) {
|
|
3083
3134
|
if (he === clearTimeout)
|
|
3084
3135
|
return clearTimeout(r);
|
|
3085
3136
|
if ((he === Dt || !he) && clearTimeout)
|
|
@@ -3094,20 +3145,20 @@ function ps(r) {
|
|
|
3094
3145
|
}
|
|
3095
3146
|
}
|
|
3096
3147
|
}
|
|
3097
|
-
var
|
|
3098
|
-
function
|
|
3099
|
-
!Ze || !be || (Ze = !1, be.length ?
|
|
3148
|
+
var Ce = [], Ze = !1, be, ot = -1;
|
|
3149
|
+
function Ms() {
|
|
3150
|
+
!Ze || !be || (Ze = !1, be.length ? Ce = be.concat(Ce) : ot = -1, Ce.length && vi());
|
|
3100
3151
|
}
|
|
3101
|
-
function
|
|
3152
|
+
function vi() {
|
|
3102
3153
|
if (!Ze) {
|
|
3103
|
-
var r =
|
|
3154
|
+
var r = Ti(Ms);
|
|
3104
3155
|
Ze = !0;
|
|
3105
|
-
for (var o =
|
|
3106
|
-
for (be =
|
|
3156
|
+
for (var o = Ce.length; o; ) {
|
|
3157
|
+
for (be = Ce, Ce = []; ++ot < o; )
|
|
3107
3158
|
be && be[ot].run();
|
|
3108
|
-
ot = -1, o =
|
|
3159
|
+
ot = -1, o = Ce.length;
|
|
3109
3160
|
}
|
|
3110
|
-
be = null, Ze = !1,
|
|
3161
|
+
be = null, Ze = !1, ys(r);
|
|
3111
3162
|
}
|
|
3112
3163
|
}
|
|
3113
3164
|
Y.nextTick = function(r) {
|
|
@@ -3115,12 +3166,12 @@ Y.nextTick = function(r) {
|
|
|
3115
3166
|
if (arguments.length > 1)
|
|
3116
3167
|
for (var l = 1; l < arguments.length; l++)
|
|
3117
3168
|
o[l - 1] = arguments[l];
|
|
3118
|
-
|
|
3169
|
+
Ce.push(new Di(r, o)), Ce.length === 1 && !Ze && Ti(vi);
|
|
3119
3170
|
};
|
|
3120
|
-
function
|
|
3171
|
+
function Di(r, o) {
|
|
3121
3172
|
this.fun = r, this.array = o;
|
|
3122
3173
|
}
|
|
3123
|
-
|
|
3174
|
+
Di.prototype.run = function() {
|
|
3124
3175
|
this.fun.apply(null, this.array);
|
|
3125
3176
|
};
|
|
3126
3177
|
Y.title = "browser";
|
|
@@ -3129,17 +3180,17 @@ Y.env = {};
|
|
|
3129
3180
|
Y.argv = [];
|
|
3130
3181
|
Y.version = "";
|
|
3131
3182
|
Y.versions = {};
|
|
3132
|
-
function
|
|
3183
|
+
function Ee() {
|
|
3133
3184
|
}
|
|
3134
|
-
Y.on =
|
|
3135
|
-
Y.addListener =
|
|
3136
|
-
Y.once =
|
|
3137
|
-
Y.off =
|
|
3138
|
-
Y.removeListener =
|
|
3139
|
-
Y.removeAllListeners =
|
|
3140
|
-
Y.emit =
|
|
3141
|
-
Y.prependListener =
|
|
3142
|
-
Y.prependOnceListener =
|
|
3185
|
+
Y.on = Ee;
|
|
3186
|
+
Y.addListener = Ee;
|
|
3187
|
+
Y.once = Ee;
|
|
3188
|
+
Y.off = Ee;
|
|
3189
|
+
Y.removeListener = Ee;
|
|
3190
|
+
Y.removeAllListeners = Ee;
|
|
3191
|
+
Y.emit = Ee;
|
|
3192
|
+
Y.prependListener = Ee;
|
|
3193
|
+
Y.prependOnceListener = Ee;
|
|
3143
3194
|
Y.listeners = function(r) {
|
|
3144
3195
|
return [];
|
|
3145
3196
|
};
|
|
@@ -3155,101 +3206,101 @@ Y.chdir = function(r) {
|
|
|
3155
3206
|
Y.umask = function() {
|
|
3156
3207
|
return 0;
|
|
3157
3208
|
};
|
|
3158
|
-
var
|
|
3209
|
+
var Cs = xi.exports;
|
|
3159
3210
|
(function(r) {
|
|
3160
3211
|
Object.defineProperty(r, Symbol.toStringTag, { value: "Module" });
|
|
3161
|
-
const o =
|
|
3212
|
+
const o = Ai, l = Cs, h = (f) => f && f.__esModule ? f : { default: f }, d = h(l), g = globalThis || void 0 || self;
|
|
3162
3213
|
Object.defineProperty(r, "Buffer", { enumerable: !0, get: () => o.Buffer }), Object.defineProperty(r, "process", { enumerable: !0, get: () => d.default }), r.global = g;
|
|
3163
|
-
})(
|
|
3214
|
+
})(Ei);
|
|
3164
3215
|
let ie;
|
|
3165
|
-
typeof window < "u" ? ie = window : typeof self < "u" ? ie = self : ie =
|
|
3216
|
+
typeof window < "u" ? ie = window : typeof self < "u" ? ie = self : ie = Ei.global;
|
|
3166
3217
|
let Lt = null, zt = null;
|
|
3167
|
-
const
|
|
3168
|
-
Et == null ||
|
|
3169
|
-
return
|
|
3218
|
+
const ti = 20, wt = ie.clearTimeout, ii = ie.setTimeout, Et = ie.cancelAnimationFrame || ie.mozCancelAnimationFrame || ie.webkitCancelAnimationFrame, ri = ie.requestAnimationFrame || ie.mozRequestAnimationFrame || ie.webkitRequestAnimationFrame;
|
|
3219
|
+
Et == null || ri == null ? (Lt = wt, zt = function(o) {
|
|
3220
|
+
return ii(o, ti);
|
|
3170
3221
|
}) : (Lt = function([o, l]) {
|
|
3171
|
-
Et(o),
|
|
3222
|
+
Et(o), wt(l);
|
|
3172
3223
|
}, zt = function(o) {
|
|
3173
|
-
const l =
|
|
3174
|
-
|
|
3175
|
-
}), h =
|
|
3224
|
+
const l = ri(function() {
|
|
3225
|
+
wt(h), o();
|
|
3226
|
+
}), h = ii(function() {
|
|
3176
3227
|
Et(l), o();
|
|
3177
|
-
},
|
|
3228
|
+
}, ti);
|
|
3178
3229
|
return [l, h];
|
|
3179
3230
|
});
|
|
3180
|
-
function
|
|
3231
|
+
function ws(r) {
|
|
3181
3232
|
let o, l, h, d, g, f, s;
|
|
3182
3233
|
const I = typeof document < "u" && document.attachEvent;
|
|
3183
3234
|
if (!I) {
|
|
3184
|
-
f = function(
|
|
3185
|
-
const
|
|
3235
|
+
f = function(w) {
|
|
3236
|
+
const T = w.__resizeTriggers__, S = T.firstElementChild, O = T.lastElementChild, B = S.firstElementChild;
|
|
3186
3237
|
O.scrollLeft = O.scrollWidth, O.scrollTop = O.scrollHeight, B.style.width = S.offsetWidth + 1 + "px", B.style.height = S.offsetHeight + 1 + "px", S.scrollLeft = S.scrollWidth, S.scrollTop = S.scrollHeight;
|
|
3187
|
-
}, g = function(
|
|
3188
|
-
return
|
|
3189
|
-
}, s = function(
|
|
3190
|
-
if (
|
|
3238
|
+
}, g = function(w) {
|
|
3239
|
+
return w.offsetWidth !== w.__resizeLast__.width || w.offsetHeight !== w.__resizeLast__.height;
|
|
3240
|
+
}, s = function(w) {
|
|
3241
|
+
if (w.target.className && typeof w.target.className.indexOf == "function" && w.target.className.indexOf("contract-trigger") < 0 && w.target.className.indexOf("expand-trigger") < 0)
|
|
3191
3242
|
return;
|
|
3192
|
-
const
|
|
3243
|
+
const T = this;
|
|
3193
3244
|
f(this), this.__resizeRAF__ && Lt(this.__resizeRAF__), this.__resizeRAF__ = zt(function() {
|
|
3194
|
-
g(
|
|
3195
|
-
B.call(
|
|
3245
|
+
g(T) && (T.__resizeLast__.width = T.offsetWidth, T.__resizeLast__.height = T.offsetHeight, T.__resizeListeners__.forEach(function(B) {
|
|
3246
|
+
B.call(T, w);
|
|
3196
3247
|
}));
|
|
3197
3248
|
});
|
|
3198
3249
|
};
|
|
3199
|
-
let
|
|
3250
|
+
let C = !1, v = "";
|
|
3200
3251
|
h = "animationstart";
|
|
3201
|
-
const
|
|
3202
|
-
let y = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),
|
|
3252
|
+
const z = "Webkit Moz O ms".split(" ");
|
|
3253
|
+
let y = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), A = "";
|
|
3203
3254
|
{
|
|
3204
|
-
const
|
|
3205
|
-
if (
|
|
3206
|
-
for (let
|
|
3207
|
-
if (
|
|
3208
|
-
|
|
3255
|
+
const w = document.createElement("fakeelement");
|
|
3256
|
+
if (w.style.animationName !== void 0 && (C = !0), C === !1) {
|
|
3257
|
+
for (let T = 0; T < z.length; T++)
|
|
3258
|
+
if (w.style[z[T] + "AnimationName"] !== void 0) {
|
|
3259
|
+
A = z[T], v = "-" + A.toLowerCase() + "-", h = y[T], C = !0;
|
|
3209
3260
|
break;
|
|
3210
3261
|
}
|
|
3211
3262
|
}
|
|
3212
3263
|
}
|
|
3213
|
-
l = "resizeanim", o = "@" +
|
|
3264
|
+
l = "resizeanim", o = "@" + v + "keyframes " + l + " { from { opacity: 0; } to { opacity: 0; } } ", d = v + "animation: 1ms " + l + "; ";
|
|
3214
3265
|
}
|
|
3215
|
-
const
|
|
3216
|
-
if (!
|
|
3217
|
-
const
|
|
3218
|
-
y.id = "detectElementResize", y.type = "text/css", r != null && y.setAttribute("nonce", r), y.styleSheet ? y.styleSheet.cssText =
|
|
3266
|
+
const N = function(C) {
|
|
3267
|
+
if (!C.getElementById("detectElementResize")) {
|
|
3268
|
+
const v = (o || "") + ".resize-triggers { " + (d || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', z = C.head || C.getElementsByTagName("head")[0], y = C.createElement("style");
|
|
3269
|
+
y.id = "detectElementResize", y.type = "text/css", r != null && y.setAttribute("nonce", r), y.styleSheet ? y.styleSheet.cssText = v : y.appendChild(C.createTextNode(v)), z.appendChild(y);
|
|
3219
3270
|
}
|
|
3220
3271
|
};
|
|
3221
3272
|
return {
|
|
3222
|
-
addResizeListener: function(
|
|
3273
|
+
addResizeListener: function(C, v) {
|
|
3223
3274
|
if (I)
|
|
3224
|
-
|
|
3275
|
+
C.attachEvent("onresize", v);
|
|
3225
3276
|
else {
|
|
3226
|
-
if (!
|
|
3227
|
-
const
|
|
3228
|
-
y && y.position === "static" && (
|
|
3229
|
-
const
|
|
3230
|
-
|
|
3231
|
-
const
|
|
3232
|
-
|
|
3233
|
-
S.animationName === l && f(
|
|
3234
|
-
},
|
|
3277
|
+
if (!C.__resizeTriggers__) {
|
|
3278
|
+
const z = C.ownerDocument, y = ie.getComputedStyle(C);
|
|
3279
|
+
y && y.position === "static" && (C.style.position = "relative"), N(z), C.__resizeLast__ = {}, C.__resizeListeners__ = [], (C.__resizeTriggers__ = z.createElement("div")).className = "resize-triggers";
|
|
3280
|
+
const A = z.createElement("div");
|
|
3281
|
+
A.className = "expand-trigger", A.appendChild(z.createElement("div"));
|
|
3282
|
+
const w = z.createElement("div");
|
|
3283
|
+
w.className = "contract-trigger", C.__resizeTriggers__.appendChild(A), C.__resizeTriggers__.appendChild(w), C.appendChild(C.__resizeTriggers__), f(C), C.addEventListener("scroll", s, !0), h && (C.__resizeTriggers__.__animationListener__ = function(S) {
|
|
3284
|
+
S.animationName === l && f(C);
|
|
3285
|
+
}, C.__resizeTriggers__.addEventListener(h, C.__resizeTriggers__.__animationListener__));
|
|
3235
3286
|
}
|
|
3236
|
-
|
|
3287
|
+
C.__resizeListeners__.push(v);
|
|
3237
3288
|
}
|
|
3238
3289
|
},
|
|
3239
|
-
removeResizeListener: function(
|
|
3290
|
+
removeResizeListener: function(C, v) {
|
|
3240
3291
|
if (I)
|
|
3241
|
-
|
|
3242
|
-
else if (
|
|
3243
|
-
|
|
3292
|
+
C.detachEvent("onresize", v);
|
|
3293
|
+
else if (C.__resizeListeners__.splice(C.__resizeListeners__.indexOf(v), 1), !C.__resizeListeners__.length) {
|
|
3294
|
+
C.removeEventListener("scroll", s, !0), C.__resizeTriggers__.__animationListener__ && (C.__resizeTriggers__.removeEventListener(h, C.__resizeTriggers__.__animationListener__), C.__resizeTriggers__.__animationListener__ = null);
|
|
3244
3295
|
try {
|
|
3245
|
-
|
|
3296
|
+
C.__resizeTriggers__ = !C.removeChild(C.__resizeTriggers__);
|
|
3246
3297
|
} catch {
|
|
3247
3298
|
}
|
|
3248
3299
|
}
|
|
3249
3300
|
}
|
|
3250
3301
|
};
|
|
3251
3302
|
}
|
|
3252
|
-
class
|
|
3303
|
+
class Es extends _i {
|
|
3253
3304
|
constructor(...o) {
|
|
3254
3305
|
super(...o), this.state = {
|
|
3255
3306
|
height: this.props.defaultHeight || 0,
|
|
@@ -3265,17 +3316,17 @@ class Is extends Ri {
|
|
|
3265
3316
|
} = this.props;
|
|
3266
3317
|
if (this._parentNode) {
|
|
3267
3318
|
var g, f, s, I;
|
|
3268
|
-
const
|
|
3269
|
-
(!l && (this.state.height !==
|
|
3270
|
-
height:
|
|
3271
|
-
width:
|
|
3319
|
+
const N = window.getComputedStyle(this._parentNode) || {}, E = parseFloat((g = N.paddingLeft) !== null && g !== void 0 ? g : "0"), x = parseFloat((f = N.paddingRight) !== null && f !== void 0 ? f : "0"), C = parseFloat((s = N.paddingTop) !== null && s !== void 0 ? s : "0"), v = parseFloat((I = N.paddingBottom) !== null && I !== void 0 ? I : "0"), z = this._parentNode.getBoundingClientRect(), y = z.height - C - v, A = z.width - E - x, w = this._parentNode.offsetHeight - C - v, T = this._parentNode.offsetWidth - E - x;
|
|
3320
|
+
(!l && (this.state.height !== w || this.state.scaledHeight !== y) || !h && (this.state.width !== T || this.state.scaledWidth !== A)) && (this.setState({
|
|
3321
|
+
height: w,
|
|
3322
|
+
width: T,
|
|
3272
3323
|
scaledHeight: y,
|
|
3273
|
-
scaledWidth:
|
|
3324
|
+
scaledWidth: A
|
|
3274
3325
|
}), typeof d == "function" && d({
|
|
3275
|
-
height:
|
|
3326
|
+
height: w,
|
|
3276
3327
|
scaledHeight: y,
|
|
3277
|
-
scaledWidth:
|
|
3278
|
-
width:
|
|
3328
|
+
scaledWidth: A,
|
|
3329
|
+
width: T
|
|
3279
3330
|
}));
|
|
3280
3331
|
}
|
|
3281
3332
|
}, this._setRef = (l) => {
|
|
@@ -3288,7 +3339,7 @@ class Is extends Ri {
|
|
|
3288
3339
|
} = this.props;
|
|
3289
3340
|
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._parentNode != null && (typeof ResizeObserver < "u" ? (this._resizeObserver = new ResizeObserver(() => {
|
|
3290
3341
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
3291
|
-
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize =
|
|
3342
|
+
}), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = ws(o), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
|
|
3292
3343
|
}
|
|
3293
3344
|
componentWillUnmount() {
|
|
3294
3345
|
this._parentNode && (this._detectElementResize && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize), this._timeoutId !== null && clearTimeout(this._timeoutId), this._resizeObserver && (this._resizeObserver.observe(this._parentNode), this._resizeObserver.disconnect()));
|
|
@@ -3303,25 +3354,25 @@ class Is extends Ri {
|
|
|
3303
3354
|
nonce: f,
|
|
3304
3355
|
onResize: s,
|
|
3305
3356
|
style: I = {},
|
|
3306
|
-
tagName:
|
|
3357
|
+
tagName: N = "div",
|
|
3307
3358
|
...E
|
|
3308
3359
|
} = this.props, {
|
|
3309
3360
|
height: x,
|
|
3310
|
-
scaledHeight:
|
|
3311
|
-
scaledWidth:
|
|
3312
|
-
width:
|
|
3361
|
+
scaledHeight: C,
|
|
3362
|
+
scaledWidth: v,
|
|
3363
|
+
width: z
|
|
3313
3364
|
} = this.state, y = {
|
|
3314
3365
|
overflow: "visible"
|
|
3315
|
-
},
|
|
3316
|
-
let
|
|
3317
|
-
return d || (x === 0 && (
|
|
3366
|
+
}, A = {};
|
|
3367
|
+
let w = !1;
|
|
3368
|
+
return d || (x === 0 && (w = !0), y.height = 0, A.height = x, A.scaledHeight = C), g || (z === 0 && (w = !0), y.width = 0, A.width = z, A.scaledWidth = v), rt(N, {
|
|
3318
3369
|
ref: this._setRef,
|
|
3319
3370
|
style: {
|
|
3320
3371
|
...y,
|
|
3321
3372
|
...I
|
|
3322
3373
|
},
|
|
3323
3374
|
...E
|
|
3324
|
-
}, !
|
|
3375
|
+
}, !w && o(A));
|
|
3325
3376
|
}
|
|
3326
3377
|
}
|
|
3327
3378
|
function St() {
|
|
@@ -3334,7 +3385,7 @@ function St() {
|
|
|
3334
3385
|
return r;
|
|
3335
3386
|
}, St.apply(this, arguments);
|
|
3336
3387
|
}
|
|
3337
|
-
function
|
|
3388
|
+
function ni(r) {
|
|
3338
3389
|
if (r === void 0)
|
|
3339
3390
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3340
3391
|
return r;
|
|
@@ -3344,25 +3395,25 @@ function jt(r, o) {
|
|
|
3344
3395
|
return h.__proto__ = d, h;
|
|
3345
3396
|
}, jt(r, o);
|
|
3346
3397
|
}
|
|
3347
|
-
function
|
|
3398
|
+
function As(r, o) {
|
|
3348
3399
|
r.prototype = Object.create(o.prototype), r.prototype.constructor = r, jt(r, o);
|
|
3349
3400
|
}
|
|
3350
|
-
var
|
|
3401
|
+
var oi = Number.isNaN || function(o) {
|
|
3351
3402
|
return typeof o == "number" && o !== o;
|
|
3352
3403
|
};
|
|
3353
|
-
function
|
|
3354
|
-
return !!(r === o ||
|
|
3404
|
+
function Ns(r, o) {
|
|
3405
|
+
return !!(r === o || oi(r) && oi(o));
|
|
3355
3406
|
}
|
|
3356
|
-
function
|
|
3407
|
+
function xs(r, o) {
|
|
3357
3408
|
if (r.length !== o.length)
|
|
3358
3409
|
return !1;
|
|
3359
3410
|
for (var l = 0; l < r.length; l++)
|
|
3360
|
-
if (!
|
|
3411
|
+
if (!Ns(r[l], o[l]))
|
|
3361
3412
|
return !1;
|
|
3362
3413
|
return !0;
|
|
3363
3414
|
}
|
|
3364
3415
|
function At(r, o) {
|
|
3365
|
-
o === void 0 && (o =
|
|
3416
|
+
o === void 0 && (o = xs);
|
|
3366
3417
|
var l, h = [], d, g = !1;
|
|
3367
3418
|
function f() {
|
|
3368
3419
|
for (var s = [], I = 0; I < arguments.length; I++)
|
|
@@ -3371,18 +3422,18 @@ function At(r, o) {
|
|
|
3371
3422
|
}
|
|
3372
3423
|
return f;
|
|
3373
3424
|
}
|
|
3374
|
-
var
|
|
3425
|
+
var Ts = typeof performance == "object" && typeof performance.now == "function", si = Ts ? function() {
|
|
3375
3426
|
return performance.now();
|
|
3376
3427
|
} : function() {
|
|
3377
3428
|
return Date.now();
|
|
3378
3429
|
};
|
|
3379
|
-
function
|
|
3430
|
+
function ai(r) {
|
|
3380
3431
|
cancelAnimationFrame(r.id);
|
|
3381
3432
|
}
|
|
3382
|
-
function
|
|
3383
|
-
var l =
|
|
3433
|
+
function vs(r, o) {
|
|
3434
|
+
var l = si();
|
|
3384
3435
|
function h() {
|
|
3385
|
-
|
|
3436
|
+
si() - l >= o ? r.call(null) : d.id = requestAnimationFrame(h);
|
|
3386
3437
|
}
|
|
3387
3438
|
var d = {
|
|
3388
3439
|
id: requestAnimationFrame(h)
|
|
@@ -3390,7 +3441,7 @@ function Es(r, o) {
|
|
|
3390
3441
|
return d;
|
|
3391
3442
|
}
|
|
3392
3443
|
var Nt = -1;
|
|
3393
|
-
function
|
|
3444
|
+
function li(r) {
|
|
3394
3445
|
if (r === void 0 && (r = !1), Nt === -1 || r) {
|
|
3395
3446
|
var o = document.createElement("div"), l = o.style;
|
|
3396
3447
|
l.width = "50px", l.height = "50px", l.overflow = "scroll", document.body.appendChild(o), Nt = o.offsetWidth - o.clientWidth, document.body.removeChild(o);
|
|
@@ -3398,7 +3449,7 @@ function ai(r) {
|
|
|
3398
3449
|
return Nt;
|
|
3399
3450
|
}
|
|
3400
3451
|
var Pe = null;
|
|
3401
|
-
function
|
|
3452
|
+
function ci(r) {
|
|
3402
3453
|
if (r === void 0 && (r = !1), Pe === null || r) {
|
|
3403
3454
|
var o = document.createElement("div"), l = o.style;
|
|
3404
3455
|
l.width = "50px", l.height = "50px", l.overflow = "scroll", l.direction = "rtl";
|
|
@@ -3407,80 +3458,80 @@ function li(r) {
|
|
|
3407
3458
|
}
|
|
3408
3459
|
return Pe;
|
|
3409
3460
|
}
|
|
3410
|
-
var
|
|
3461
|
+
var Ds = 150, Ls = function(o, l) {
|
|
3411
3462
|
return o;
|
|
3412
3463
|
};
|
|
3413
|
-
function
|
|
3414
|
-
var o, l = r.getItemOffset, h = r.getEstimatedTotalSize, d = r.getItemSize, g = r.getOffsetForIndexAndAlignment, f = r.getStartIndexForOffset, s = r.getStopIndexForStartIndex, I = r.initInstanceProps,
|
|
3464
|
+
function zs(r) {
|
|
3465
|
+
var o, l = r.getItemOffset, h = r.getEstimatedTotalSize, d = r.getItemSize, g = r.getOffsetForIndexAndAlignment, f = r.getStartIndexForOffset, s = r.getStopIndexForStartIndex, I = r.initInstanceProps, N = r.shouldResetStyleCacheOnItemSizeChange, E = r.validateProps;
|
|
3415
3466
|
return o = /* @__PURE__ */ function(x) {
|
|
3416
|
-
|
|
3417
|
-
function
|
|
3467
|
+
As(C, x);
|
|
3468
|
+
function C(z) {
|
|
3418
3469
|
var y;
|
|
3419
|
-
return y = x.call(this,
|
|
3420
|
-
instance:
|
|
3470
|
+
return y = x.call(this, z) || this, y._instanceProps = I(y.props, ni(y)), y._outerRef = void 0, y._resetIsScrollingTimeoutId = null, y.state = {
|
|
3471
|
+
instance: ni(y),
|
|
3421
3472
|
isScrolling: !1,
|
|
3422
3473
|
scrollDirection: "forward",
|
|
3423
3474
|
scrollOffset: typeof y.props.initialScrollOffset == "number" ? y.props.initialScrollOffset : 0,
|
|
3424
3475
|
scrollUpdateWasRequested: !1
|
|
3425
|
-
}, y._callOnItemsRendered = void 0, y._callOnItemsRendered = At(function(
|
|
3476
|
+
}, y._callOnItemsRendered = void 0, y._callOnItemsRendered = At(function(A, w, T, S) {
|
|
3426
3477
|
return y.props.onItemsRendered({
|
|
3427
|
-
overscanStartIndex:
|
|
3428
|
-
overscanStopIndex:
|
|
3429
|
-
visibleStartIndex:
|
|
3478
|
+
overscanStartIndex: A,
|
|
3479
|
+
overscanStopIndex: w,
|
|
3480
|
+
visibleStartIndex: T,
|
|
3430
3481
|
visibleStopIndex: S
|
|
3431
3482
|
});
|
|
3432
|
-
}), y._callOnScroll = void 0, y._callOnScroll = At(function(
|
|
3483
|
+
}), y._callOnScroll = void 0, y._callOnScroll = At(function(A, w, T) {
|
|
3433
3484
|
return y.props.onScroll({
|
|
3434
|
-
scrollDirection:
|
|
3435
|
-
scrollOffset:
|
|
3436
|
-
scrollUpdateWasRequested:
|
|
3485
|
+
scrollDirection: A,
|
|
3486
|
+
scrollOffset: w,
|
|
3487
|
+
scrollUpdateWasRequested: T
|
|
3437
3488
|
});
|
|
3438
|
-
}), y._getItemStyle = void 0, y._getItemStyle = function(
|
|
3439
|
-
var
|
|
3440
|
-
if (B.hasOwnProperty(
|
|
3441
|
-
U = B[
|
|
3489
|
+
}), y._getItemStyle = void 0, y._getItemStyle = function(A) {
|
|
3490
|
+
var w = y.props, T = w.direction, S = w.itemSize, O = w.layout, B = y._getItemStyleCache(N && S, N && O, N && T), U;
|
|
3491
|
+
if (B.hasOwnProperty(A))
|
|
3492
|
+
U = B[A];
|
|
3442
3493
|
else {
|
|
3443
|
-
var F = l(y.props,
|
|
3444
|
-
B[
|
|
3494
|
+
var F = l(y.props, A, y._instanceProps), G = d(y.props, A, y._instanceProps), q = T === "horizontal" || O === "horizontal", le = T === "rtl", re = q ? F : 0;
|
|
3495
|
+
B[A] = U = {
|
|
3445
3496
|
position: "absolute",
|
|
3446
3497
|
left: le ? void 0 : re,
|
|
3447
3498
|
right: le ? re : void 0,
|
|
3448
3499
|
top: q ? 0 : F,
|
|
3449
|
-
height: q ? "100%" :
|
|
3450
|
-
width: q ?
|
|
3500
|
+
height: q ? "100%" : G,
|
|
3501
|
+
width: q ? G : "100%"
|
|
3451
3502
|
};
|
|
3452
3503
|
}
|
|
3453
3504
|
return U;
|
|
3454
|
-
}, y._getItemStyleCache = void 0, y._getItemStyleCache = At(function(
|
|
3505
|
+
}, y._getItemStyleCache = void 0, y._getItemStyleCache = At(function(A, w, T) {
|
|
3455
3506
|
return {};
|
|
3456
|
-
}), y._onScrollHorizontal = function(
|
|
3457
|
-
var
|
|
3507
|
+
}), y._onScrollHorizontal = function(A) {
|
|
3508
|
+
var w = A.currentTarget, T = w.clientWidth, S = w.scrollLeft, O = w.scrollWidth;
|
|
3458
3509
|
y.setState(function(B) {
|
|
3459
3510
|
if (B.scrollOffset === S)
|
|
3460
3511
|
return null;
|
|
3461
3512
|
var U = y.props.direction, F = S;
|
|
3462
3513
|
if (U === "rtl")
|
|
3463
|
-
switch (
|
|
3514
|
+
switch (ci()) {
|
|
3464
3515
|
case "negative":
|
|
3465
3516
|
F = -S;
|
|
3466
3517
|
break;
|
|
3467
3518
|
case "positive-descending":
|
|
3468
|
-
F = O -
|
|
3519
|
+
F = O - T - S;
|
|
3469
3520
|
break;
|
|
3470
3521
|
}
|
|
3471
|
-
return F = Math.max(0, Math.min(F, O -
|
|
3522
|
+
return F = Math.max(0, Math.min(F, O - T)), {
|
|
3472
3523
|
isScrolling: !0,
|
|
3473
3524
|
scrollDirection: B.scrollOffset < S ? "forward" : "backward",
|
|
3474
3525
|
scrollOffset: F,
|
|
3475
3526
|
scrollUpdateWasRequested: !1
|
|
3476
3527
|
};
|
|
3477
3528
|
}, y._resetIsScrollingDebounced);
|
|
3478
|
-
}, y._onScrollVertical = function(
|
|
3479
|
-
var
|
|
3529
|
+
}, y._onScrollVertical = function(A) {
|
|
3530
|
+
var w = A.currentTarget, T = w.clientHeight, S = w.scrollHeight, O = w.scrollTop;
|
|
3480
3531
|
y.setState(function(B) {
|
|
3481
3532
|
if (B.scrollOffset === O)
|
|
3482
3533
|
return null;
|
|
3483
|
-
var U = Math.max(0, Math.min(O, S -
|
|
3534
|
+
var U = Math.max(0, Math.min(O, S - T));
|
|
3484
3535
|
return {
|
|
3485
3536
|
isScrolling: !0,
|
|
3486
3537
|
scrollDirection: B.scrollOffset < U ? "forward" : "backward",
|
|
@@ -3488,11 +3539,11 @@ function xs(r) {
|
|
|
3488
3539
|
scrollUpdateWasRequested: !1
|
|
3489
3540
|
};
|
|
3490
3541
|
}, y._resetIsScrollingDebounced);
|
|
3491
|
-
}, y._outerRefSetter = function(
|
|
3492
|
-
var
|
|
3493
|
-
y._outerRef =
|
|
3542
|
+
}, y._outerRefSetter = function(A) {
|
|
3543
|
+
var w = y.props.outerRef;
|
|
3544
|
+
y._outerRef = A, typeof w == "function" ? w(A) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = A);
|
|
3494
3545
|
}, y._resetIsScrollingDebounced = function() {
|
|
3495
|
-
y._resetIsScrollingTimeoutId !== null &&
|
|
3546
|
+
y._resetIsScrollingTimeoutId !== null && ai(y._resetIsScrollingTimeoutId), y._resetIsScrollingTimeoutId = vs(y._resetIsScrolling, Ds);
|
|
3496
3547
|
}, y._resetIsScrolling = function() {
|
|
3497
3548
|
y._resetIsScrollingTimeoutId = null, y.setState({
|
|
3498
3549
|
isScrolling: !1
|
|
@@ -3501,42 +3552,42 @@ function xs(r) {
|
|
|
3501
3552
|
});
|
|
3502
3553
|
}, y;
|
|
3503
3554
|
}
|
|
3504
|
-
|
|
3505
|
-
return
|
|
3555
|
+
C.getDerivedStateFromProps = function(y, A) {
|
|
3556
|
+
return Ss(y, A), E(y), null;
|
|
3506
3557
|
};
|
|
3507
|
-
var
|
|
3508
|
-
return
|
|
3509
|
-
y = Math.max(0, y), this.setState(function(
|
|
3510
|
-
return
|
|
3511
|
-
scrollDirection:
|
|
3558
|
+
var v = C.prototype;
|
|
3559
|
+
return v.scrollTo = function(y) {
|
|
3560
|
+
y = Math.max(0, y), this.setState(function(A) {
|
|
3561
|
+
return A.scrollOffset === y ? null : {
|
|
3562
|
+
scrollDirection: A.scrollOffset < y ? "forward" : "backward",
|
|
3512
3563
|
scrollOffset: y,
|
|
3513
3564
|
scrollUpdateWasRequested: !0
|
|
3514
3565
|
};
|
|
3515
3566
|
}, this._resetIsScrollingDebounced);
|
|
3516
|
-
},
|
|
3517
|
-
|
|
3518
|
-
var
|
|
3519
|
-
y = Math.max(0, Math.min(y,
|
|
3567
|
+
}, v.scrollToItem = function(y, A) {
|
|
3568
|
+
A === void 0 && (A = "auto");
|
|
3569
|
+
var w = this.props, T = w.itemCount, S = w.layout, O = this.state.scrollOffset;
|
|
3570
|
+
y = Math.max(0, Math.min(y, T - 1));
|
|
3520
3571
|
var B = 0;
|
|
3521
3572
|
if (this._outerRef) {
|
|
3522
3573
|
var U = this._outerRef;
|
|
3523
|
-
S === "vertical" ? B = U.scrollWidth > U.clientWidth ?
|
|
3574
|
+
S === "vertical" ? B = U.scrollWidth > U.clientWidth ? li() : 0 : B = U.scrollHeight > U.clientHeight ? li() : 0;
|
|
3524
3575
|
}
|
|
3525
|
-
this.scrollTo(g(this.props, y,
|
|
3526
|
-
},
|
|
3527
|
-
var y = this.props,
|
|
3528
|
-
if (typeof
|
|
3576
|
+
this.scrollTo(g(this.props, y, A, O, this._instanceProps, B));
|
|
3577
|
+
}, v.componentDidMount = function() {
|
|
3578
|
+
var y = this.props, A = y.direction, w = y.initialScrollOffset, T = y.layout;
|
|
3579
|
+
if (typeof w == "number" && this._outerRef != null) {
|
|
3529
3580
|
var S = this._outerRef;
|
|
3530
|
-
|
|
3581
|
+
A === "horizontal" || T === "horizontal" ? S.scrollLeft = w : S.scrollTop = w;
|
|
3531
3582
|
}
|
|
3532
3583
|
this._callPropsCallbacks();
|
|
3533
|
-
},
|
|
3534
|
-
var y = this.props,
|
|
3584
|
+
}, v.componentDidUpdate = function() {
|
|
3585
|
+
var y = this.props, A = y.direction, w = y.layout, T = this.state, S = T.scrollOffset, O = T.scrollUpdateWasRequested;
|
|
3535
3586
|
if (O && this._outerRef != null) {
|
|
3536
3587
|
var B = this._outerRef;
|
|
3537
|
-
if (
|
|
3538
|
-
if (
|
|
3539
|
-
switch (
|
|
3588
|
+
if (A === "horizontal" || w === "horizontal")
|
|
3589
|
+
if (A === "rtl")
|
|
3590
|
+
switch (ci()) {
|
|
3540
3591
|
case "negative":
|
|
3541
3592
|
B.scrollLeft = -S;
|
|
3542
3593
|
break;
|
|
@@ -3554,22 +3605,22 @@ function xs(r) {
|
|
|
3554
3605
|
B.scrollTop = S;
|
|
3555
3606
|
}
|
|
3556
3607
|
this._callPropsCallbacks();
|
|
3557
|
-
},
|
|
3558
|
-
this._resetIsScrollingTimeoutId !== null &&
|
|
3559
|
-
},
|
|
3560
|
-
var y = this.props,
|
|
3608
|
+
}, v.componentWillUnmount = function() {
|
|
3609
|
+
this._resetIsScrollingTimeoutId !== null && ai(this._resetIsScrollingTimeoutId);
|
|
3610
|
+
}, v.render = function() {
|
|
3611
|
+
var y = this.props, A = y.children, w = y.className, T = y.direction, S = y.height, O = y.innerRef, B = y.innerElementType, U = y.innerTagName, F = y.itemCount, G = y.itemData, q = y.itemKey, le = q === void 0 ? Ls : q, re = y.layout, ce = y.outerElementType, W = y.outerTagName, ne = y.style, me = y.useIsScrolling, ze = y.width, Ne = this.state.isScrolling, Ie = T === "horizontal" || re === "horizontal", oe = Ie ? this._onScrollHorizontal : this._onScrollVertical, xe = this._getRangeToRender(), _ = xe[0], $ = xe[1], Te = [];
|
|
3561
3612
|
if (F > 0)
|
|
3562
3613
|
for (var se = _; se <= $; se++)
|
|
3563
|
-
|
|
3564
|
-
data:
|
|
3565
|
-
key: le(se,
|
|
3614
|
+
Te.push(rt(A, {
|
|
3615
|
+
data: G,
|
|
3616
|
+
key: le(se, G),
|
|
3566
3617
|
index: se,
|
|
3567
|
-
isScrolling: me ?
|
|
3618
|
+
isScrolling: me ? Ne : void 0,
|
|
3568
3619
|
style: this._getItemStyle(se)
|
|
3569
3620
|
}));
|
|
3570
|
-
var
|
|
3571
|
-
return rt(ce ||
|
|
3572
|
-
className:
|
|
3621
|
+
var ve = h(this.props, this._instanceProps);
|
|
3622
|
+
return rt(ce || W || "div", {
|
|
3623
|
+
className: w,
|
|
3573
3624
|
onScroll: oe,
|
|
3574
3625
|
ref: this._outerRefSetter,
|
|
3575
3626
|
style: St({
|
|
@@ -3579,37 +3630,37 @@ function xs(r) {
|
|
|
3579
3630
|
overflow: "auto",
|
|
3580
3631
|
WebkitOverflowScrolling: "touch",
|
|
3581
3632
|
willChange: "transform",
|
|
3582
|
-
direction:
|
|
3633
|
+
direction: T
|
|
3583
3634
|
}, ne)
|
|
3584
3635
|
}, rt(B || U || "div", {
|
|
3585
|
-
children:
|
|
3636
|
+
children: Te,
|
|
3586
3637
|
ref: O,
|
|
3587
3638
|
style: {
|
|
3588
|
-
height: Ie ? "100%" :
|
|
3589
|
-
pointerEvents:
|
|
3590
|
-
width: Ie ?
|
|
3639
|
+
height: Ie ? "100%" : ve,
|
|
3640
|
+
pointerEvents: Ne ? "none" : void 0,
|
|
3641
|
+
width: Ie ? ve : "100%"
|
|
3591
3642
|
}
|
|
3592
3643
|
}));
|
|
3593
|
-
},
|
|
3644
|
+
}, v._callPropsCallbacks = function() {
|
|
3594
3645
|
if (typeof this.props.onItemsRendered == "function") {
|
|
3595
3646
|
var y = this.props.itemCount;
|
|
3596
3647
|
if (y > 0) {
|
|
3597
|
-
var
|
|
3598
|
-
this._callOnItemsRendered(
|
|
3648
|
+
var A = this._getRangeToRender(), w = A[0], T = A[1], S = A[2], O = A[3];
|
|
3649
|
+
this._callOnItemsRendered(w, T, S, O);
|
|
3599
3650
|
}
|
|
3600
3651
|
}
|
|
3601
3652
|
if (typeof this.props.onScroll == "function") {
|
|
3602
|
-
var B = this.state, U = B.scrollDirection, F = B.scrollOffset,
|
|
3603
|
-
this._callOnScroll(U, F,
|
|
3653
|
+
var B = this.state, U = B.scrollDirection, F = B.scrollOffset, G = B.scrollUpdateWasRequested;
|
|
3654
|
+
this._callOnScroll(U, F, G);
|
|
3604
3655
|
}
|
|
3605
|
-
},
|
|
3606
|
-
var y = this.props,
|
|
3607
|
-
if (
|
|
3656
|
+
}, v._getRangeToRender = function() {
|
|
3657
|
+
var y = this.props, A = y.itemCount, w = y.overscanCount, T = this.state, S = T.isScrolling, O = T.scrollDirection, B = T.scrollOffset;
|
|
3658
|
+
if (A === 0)
|
|
3608
3659
|
return [0, 0, 0, 0];
|
|
3609
|
-
var U = f(this.props, B, this._instanceProps), F = s(this.props, U, B, this._instanceProps),
|
|
3610
|
-
return [Math.max(0, U -
|
|
3611
|
-
},
|
|
3612
|
-
}(
|
|
3660
|
+
var U = f(this.props, B, this._instanceProps), F = s(this.props, U, B, this._instanceProps), G = !S || O === "backward" ? Math.max(1, w) : 1, q = !S || O === "forward" ? Math.max(1, w) : 1;
|
|
3661
|
+
return [Math.max(0, U - G), Math.max(0, Math.min(A - 1, F + q)), U, F];
|
|
3662
|
+
}, C;
|
|
3663
|
+
}(fi), o.defaultProps = {
|
|
3613
3664
|
direction: "ltr",
|
|
3614
3665
|
itemData: void 0,
|
|
3615
3666
|
layout: "vertical",
|
|
@@ -3617,9 +3668,9 @@ function xs(r) {
|
|
|
3617
3668
|
useIsScrolling: !1
|
|
3618
3669
|
}, o;
|
|
3619
3670
|
}
|
|
3620
|
-
var
|
|
3671
|
+
var Ss = function(o, l) {
|
|
3621
3672
|
o.children, o.direction, o.height, o.layout, o.innerTagName, o.outerTagName, o.width, l.instance;
|
|
3622
|
-
},
|
|
3673
|
+
}, js = /* @__PURE__ */ zs({
|
|
3623
3674
|
getItemOffset: function(o, l) {
|
|
3624
3675
|
var h = o.itemSize;
|
|
3625
3676
|
return l * h;
|
|
@@ -3633,19 +3684,19 @@ var Ts = function(o, l) {
|
|
|
3633
3684
|
return h * l;
|
|
3634
3685
|
},
|
|
3635
3686
|
getOffsetForIndexAndAlignment: function(o, l, h, d, g, f) {
|
|
3636
|
-
var s = o.direction, I = o.height,
|
|
3637
|
-
switch (h === "smart" && (d >=
|
|
3687
|
+
var s = o.direction, I = o.height, N = o.itemCount, E = o.itemSize, x = o.layout, C = o.width, v = s === "horizontal" || x === "horizontal", z = v ? C : I, y = Math.max(0, N * E - z), A = Math.min(y, l * E), w = Math.max(0, l * E - z + E + f);
|
|
3688
|
+
switch (h === "smart" && (d >= w - z && d <= A + z ? h = "auto" : h = "center"), h) {
|
|
3638
3689
|
case "start":
|
|
3639
|
-
return
|
|
3690
|
+
return A;
|
|
3640
3691
|
case "end":
|
|
3641
|
-
return
|
|
3692
|
+
return w;
|
|
3642
3693
|
case "center": {
|
|
3643
|
-
var
|
|
3644
|
-
return
|
|
3694
|
+
var T = Math.round(w + (A - w) / 2);
|
|
3695
|
+
return T < Math.ceil(z / 2) ? 0 : T > y + Math.floor(z / 2) ? y : T;
|
|
3645
3696
|
}
|
|
3646
3697
|
case "auto":
|
|
3647
3698
|
default:
|
|
3648
|
-
return d >=
|
|
3699
|
+
return d >= w && d <= A ? d : d < w ? w : A;
|
|
3649
3700
|
}
|
|
3650
3701
|
},
|
|
3651
3702
|
getStartIndexForOffset: function(o, l) {
|
|
@@ -3653,10 +3704,10 @@ var Ts = function(o, l) {
|
|
|
3653
3704
|
return Math.max(0, Math.min(h - 1, Math.floor(l / d)));
|
|
3654
3705
|
},
|
|
3655
3706
|
getStopIndexForStartIndex: function(o, l, h) {
|
|
3656
|
-
var d = o.direction, g = o.height, f = o.itemCount, s = o.itemSize, I = o.layout,
|
|
3707
|
+
var d = o.direction, g = o.height, f = o.itemCount, s = o.itemSize, I = o.layout, N = o.width, E = d === "horizontal" || I === "horizontal", x = l * s, C = E ? N : g, v = Math.ceil((C + h - x) / s);
|
|
3657
3708
|
return Math.max(0, Math.min(
|
|
3658
3709
|
f - 1,
|
|
3659
|
-
l +
|
|
3710
|
+
l + v - 1
|
|
3660
3711
|
// -1 is because stop index is inclusive
|
|
3661
3712
|
));
|
|
3662
3713
|
},
|
|
@@ -3667,34 +3718,34 @@ var Ts = function(o, l) {
|
|
|
3667
3718
|
o.itemSize;
|
|
3668
3719
|
}
|
|
3669
3720
|
});
|
|
3670
|
-
function
|
|
3721
|
+
function Bs(r) {
|
|
3671
3722
|
var o = r.lastRenderedStartIndex, l = r.lastRenderedStopIndex, h = r.startIndex, d = r.stopIndex;
|
|
3672
3723
|
return !(h > l || d < o);
|
|
3673
3724
|
}
|
|
3674
|
-
function
|
|
3675
|
-
for (var o = r.isItemLoaded, l = r.itemCount, h = r.minimumBatchSize, d = r.startIndex, g = r.stopIndex, f = [], s = null, I = null,
|
|
3676
|
-
var E = o(
|
|
3677
|
-
E ? I !== null && (f.push(s, I), s = I = null) : (I =
|
|
3725
|
+
function ks(r) {
|
|
3726
|
+
for (var o = r.isItemLoaded, l = r.itemCount, h = r.minimumBatchSize, d = r.startIndex, g = r.stopIndex, f = [], s = null, I = null, N = d; N <= g; N++) {
|
|
3727
|
+
var E = o(N);
|
|
3728
|
+
E ? I !== null && (f.push(s, I), s = I = null) : (I = N, s === null && (s = N));
|
|
3678
3729
|
}
|
|
3679
3730
|
if (I !== null) {
|
|
3680
|
-
for (var x = Math.min(Math.max(I, s + h - 1), l - 1),
|
|
3681
|
-
I =
|
|
3731
|
+
for (var x = Math.min(Math.max(I, s + h - 1), l - 1), C = I + 1; C <= x && !o(C); C++)
|
|
3732
|
+
I = C;
|
|
3682
3733
|
f.push(s, I);
|
|
3683
3734
|
}
|
|
3684
3735
|
if (f.length)
|
|
3685
3736
|
for (; f[1] - f[0] + 1 < h && f[0] > 0; ) {
|
|
3686
|
-
var
|
|
3687
|
-
if (!o(
|
|
3688
|
-
f[0] =
|
|
3737
|
+
var v = f[0] - 1;
|
|
3738
|
+
if (!o(v))
|
|
3739
|
+
f[0] = v;
|
|
3689
3740
|
else
|
|
3690
3741
|
break;
|
|
3691
3742
|
}
|
|
3692
3743
|
return f;
|
|
3693
3744
|
}
|
|
3694
|
-
var
|
|
3745
|
+
var bs = function(r, o) {
|
|
3695
3746
|
if (!(r instanceof o))
|
|
3696
3747
|
throw new TypeError("Cannot call a class as a function");
|
|
3697
|
-
},
|
|
3748
|
+
}, Rs = function() {
|
|
3698
3749
|
function r(o, l) {
|
|
3699
3750
|
for (var h = 0; h < l.length; h++) {
|
|
3700
3751
|
var d = l[h];
|
|
@@ -3704,7 +3755,7 @@ var zs = function(r, o) {
|
|
|
3704
3755
|
return function(o, l, h) {
|
|
3705
3756
|
return l && r(o.prototype, l), h && r(o, h), o;
|
|
3706
3757
|
};
|
|
3707
|
-
}(),
|
|
3758
|
+
}(), _s = function(r, o) {
|
|
3708
3759
|
if (typeof o != "function" && o !== null)
|
|
3709
3760
|
throw new TypeError("Super expression must either be null or a function, not " + typeof o);
|
|
3710
3761
|
r.prototype = Object.create(o && o.prototype, {
|
|
@@ -3715,25 +3766,25 @@ var zs = function(r, o) {
|
|
|
3715
3766
|
configurable: !0
|
|
3716
3767
|
}
|
|
3717
3768
|
}), o && (Object.setPrototypeOf ? Object.setPrototypeOf(r, o) : r.__proto__ = o);
|
|
3718
|
-
},
|
|
3769
|
+
}, ui = function(r, o) {
|
|
3719
3770
|
if (!r)
|
|
3720
3771
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3721
3772
|
return o && (typeof o == "object" || typeof o == "function") ? o : r;
|
|
3722
|
-
},
|
|
3723
|
-
|
|
3773
|
+
}, Os = function(r) {
|
|
3774
|
+
_s(o, r);
|
|
3724
3775
|
function o() {
|
|
3725
3776
|
var l, h, d, g;
|
|
3726
|
-
|
|
3777
|
+
bs(this, o);
|
|
3727
3778
|
for (var f = arguments.length, s = Array(f), I = 0; I < f; I++)
|
|
3728
3779
|
s[I] = arguments[I];
|
|
3729
|
-
return g = (h = (d =
|
|
3730
|
-
var E =
|
|
3780
|
+
return g = (h = (d = ui(this, (l = o.__proto__ || Object.getPrototypeOf(o)).call.apply(l, [this].concat(s))), d), d._lastRenderedStartIndex = -1, d._lastRenderedStopIndex = -1, d._memoizedUnloadedRanges = [], d._onItemsRendered = function(N) {
|
|
3781
|
+
var E = N.visibleStartIndex, x = N.visibleStopIndex;
|
|
3731
3782
|
d._lastRenderedStartIndex = E, d._lastRenderedStopIndex = x, d._ensureRowsLoaded(E, x);
|
|
3732
|
-
}, d._setRef = function(
|
|
3733
|
-
d._listRef =
|
|
3734
|
-
}, h),
|
|
3783
|
+
}, d._setRef = function(N) {
|
|
3784
|
+
d._listRef = N;
|
|
3785
|
+
}, h), ui(d, g);
|
|
3735
3786
|
}
|
|
3736
|
-
return
|
|
3787
|
+
return Rs(o, [{
|
|
3737
3788
|
key: "resetloadMoreItemsCache",
|
|
3738
3789
|
value: function() {
|
|
3739
3790
|
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
@@ -3755,24 +3806,24 @@ var zs = function(r, o) {
|
|
|
3755
3806
|
}, {
|
|
3756
3807
|
key: "_ensureRowsLoaded",
|
|
3757
3808
|
value: function(h, d) {
|
|
3758
|
-
var g = this.props, f = g.isItemLoaded, s = g.itemCount, I = g.minimumBatchSize,
|
|
3809
|
+
var g = this.props, f = g.isItemLoaded, s = g.itemCount, I = g.minimumBatchSize, N = I === void 0 ? 10 : I, E = g.threshold, x = E === void 0 ? 15 : E, C = ks({
|
|
3759
3810
|
isItemLoaded: f,
|
|
3760
3811
|
itemCount: s,
|
|
3761
|
-
minimumBatchSize:
|
|
3812
|
+
minimumBatchSize: N,
|
|
3762
3813
|
startIndex: Math.max(0, h - x),
|
|
3763
3814
|
stopIndex: Math.min(s - 1, d + x)
|
|
3764
3815
|
});
|
|
3765
|
-
(this._memoizedUnloadedRanges.length !==
|
|
3766
|
-
return
|
|
3767
|
-
})) && (this._memoizedUnloadedRanges =
|
|
3816
|
+
(this._memoizedUnloadedRanges.length !== C.length || this._memoizedUnloadedRanges.some(function(v, z) {
|
|
3817
|
+
return C[z] !== v;
|
|
3818
|
+
})) && (this._memoizedUnloadedRanges = C, this._loadUnloadedRanges(C));
|
|
3768
3819
|
}
|
|
3769
3820
|
}, {
|
|
3770
3821
|
key: "_loadUnloadedRanges",
|
|
3771
3822
|
value: function(h) {
|
|
3772
|
-
for (var d = this, g = this.props.loadMoreItems || this.props.loadMoreRows, f = function(
|
|
3773
|
-
var E = h[
|
|
3774
|
-
|
|
3775
|
-
if (
|
|
3823
|
+
for (var d = this, g = this.props.loadMoreItems || this.props.loadMoreRows, f = function(N) {
|
|
3824
|
+
var E = h[N], x = h[N + 1], C = g(E, x);
|
|
3825
|
+
C != null && C.then(function() {
|
|
3826
|
+
if (Bs({
|
|
3776
3827
|
lastRenderedStartIndex: d._lastRenderedStartIndex,
|
|
3777
3828
|
lastRenderedStopIndex: d._lastRenderedStopIndex,
|
|
3778
3829
|
startIndex: E,
|
|
@@ -3787,40 +3838,40 @@ var zs = function(r, o) {
|
|
|
3787
3838
|
f(s);
|
|
3788
3839
|
}
|
|
3789
3840
|
}]), o;
|
|
3790
|
-
}(
|
|
3791
|
-
const
|
|
3841
|
+
}(fi);
|
|
3842
|
+
const Us = () => Ue, $s = /* @__PURE__ */ m("div")({
|
|
3792
3843
|
name: "a",
|
|
3793
3844
|
class: "a1lvbkps",
|
|
3794
3845
|
propsAsIs: !1
|
|
3795
|
-
}),
|
|
3846
|
+
}), Fs = /* @__PURE__ */ m("div")({
|
|
3796
3847
|
name: "l",
|
|
3797
3848
|
class: "l2xe6fm",
|
|
3798
3849
|
propsAsIs: !1
|
|
3799
|
-
}),
|
|
3850
|
+
}), Ps = /* @__PURE__ */ m("img")({
|
|
3800
3851
|
name: "p",
|
|
3801
3852
|
class: "p1yk5k0z",
|
|
3802
3853
|
propsAsIs: !1
|
|
3803
|
-
}),
|
|
3854
|
+
}), Ys = /* @__PURE__ */ m("div")({
|
|
3804
3855
|
name: "s",
|
|
3805
3856
|
class: "s13yur3w",
|
|
3806
3857
|
propsAsIs: !1
|
|
3807
|
-
}),
|
|
3858
|
+
}), Vs = /* @__PURE__ */ m("div")({
|
|
3808
3859
|
name: "c",
|
|
3809
3860
|
class: "c1h2npcq",
|
|
3810
3861
|
propsAsIs: !1
|
|
3811
|
-
}),
|
|
3862
|
+
}), Zs = /* @__PURE__ */ m("div")({
|
|
3812
3863
|
name: "d",
|
|
3813
3864
|
class: "d1kxek13",
|
|
3814
3865
|
propsAsIs: !1
|
|
3815
|
-
}),
|
|
3866
|
+
}), Qs = /* @__PURE__ */ m("span")({
|
|
3816
3867
|
name: "g",
|
|
3817
3868
|
class: "glf08ok",
|
|
3818
3869
|
propsAsIs: !1
|
|
3819
|
-
}),
|
|
3870
|
+
}), Hs = /* @__PURE__ */ m(Us())({
|
|
3820
3871
|
name: "x",
|
|
3821
3872
|
class: "x1hkuau3",
|
|
3822
3873
|
propsAsIs: !0
|
|
3823
|
-
}),
|
|
3874
|
+
}), Gs = ({
|
|
3824
3875
|
rank: r,
|
|
3825
3876
|
avatar: o,
|
|
3826
3877
|
name: l,
|
|
@@ -3828,24 +3879,24 @@ const ks = () => Ue, bs = /* @__PURE__ */ m("div")({
|
|
|
3828
3879
|
isCurrentUser: d,
|
|
3829
3880
|
openItemDetail: g,
|
|
3830
3881
|
style: f
|
|
3831
|
-
}) => /* @__PURE__ */
|
|
3832
|
-
/* @__PURE__ */ p(
|
|
3833
|
-
/* @__PURE__ */
|
|
3834
|
-
o ? /* @__PURE__ */ p(
|
|
3835
|
-
/* @__PURE__ */
|
|
3836
|
-
/* @__PURE__ */ p(
|
|
3837
|
-
d && /* @__PURE__ */ p(
|
|
3882
|
+
}) => /* @__PURE__ */ L($s, { onClick: g, style: f, children: [
|
|
3883
|
+
/* @__PURE__ */ p(Fs, { children: r || 0 }),
|
|
3884
|
+
/* @__PURE__ */ L(Vs, { children: [
|
|
3885
|
+
o ? /* @__PURE__ */ p(Ps, { alt: "leaderboard-item-avatar", src: o }) : /* @__PURE__ */ p(Ys, { children: Mi(l || "") }),
|
|
3886
|
+
/* @__PURE__ */ L(Zs, { children: [
|
|
3887
|
+
/* @__PURE__ */ p(Qs, { children: l || "" }),
|
|
3888
|
+
d && /* @__PURE__ */ p(Hs, { name: "icon-star" })
|
|
3838
3889
|
] })
|
|
3839
3890
|
] }),
|
|
3840
|
-
/* @__PURE__ */ p("div", { children:
|
|
3841
|
-
] }),
|
|
3842
|
-
|
|
3891
|
+
/* @__PURE__ */ p("div", { children: Ci(h) })
|
|
3892
|
+
] }), Ws = ({ items: r, openItemDetail: o, fetchMore: l }) => /* @__PURE__ */ p(Es, { children: ({ width: h, height: d }) => /* @__PURE__ */ p(
|
|
3893
|
+
Os,
|
|
3843
3894
|
{
|
|
3844
3895
|
isItemLoaded: (g) => g < r.length,
|
|
3845
3896
|
itemCount: r.length + 1,
|
|
3846
3897
|
loadMoreItems: l,
|
|
3847
3898
|
children: ({ onItemsRendered: g, ref: f }) => /* @__PURE__ */ p(
|
|
3848
|
-
|
|
3899
|
+
js,
|
|
3849
3900
|
{
|
|
3850
3901
|
itemSize: 58,
|
|
3851
3902
|
onItemsRendered: g,
|
|
@@ -3854,7 +3905,7 @@ const ks = () => Ue, bs = /* @__PURE__ */ m("div")({
|
|
|
3854
3905
|
width: h,
|
|
3855
3906
|
height: d,
|
|
3856
3907
|
children: ({ index: s, style: I }) => /* @__PURE__ */ p(
|
|
3857
|
-
|
|
3908
|
+
Gs,
|
|
3858
3909
|
{
|
|
3859
3910
|
style: I,
|
|
3860
3911
|
...r[s],
|
|
@@ -3865,22 +3916,22 @@ const ks = () => Ue, bs = /* @__PURE__ */ m("div")({
|
|
|
3865
3916
|
}
|
|
3866
3917
|
)
|
|
3867
3918
|
}
|
|
3868
|
-
) }),
|
|
3919
|
+
) }), qs = ({ store: r }) => {
|
|
3869
3920
|
const { data: o } = Z(r), [l, h] = K(void 0);
|
|
3870
3921
|
if (!o)
|
|
3871
3922
|
return /* @__PURE__ */ p("div", { children: "wait leader board..." });
|
|
3872
3923
|
const d = (g) => {
|
|
3873
3924
|
var f;
|
|
3874
3925
|
const s = (f = o.find((I) => {
|
|
3875
|
-
var
|
|
3876
|
-
return ((
|
|
3926
|
+
var N;
|
|
3927
|
+
return ((N = I.attributes) == null ? void 0 : N.userId) === g;
|
|
3877
3928
|
})) == null ? void 0 : f.attributes;
|
|
3878
3929
|
h(s);
|
|
3879
3930
|
};
|
|
3880
|
-
return /* @__PURE__ */
|
|
3931
|
+
return /* @__PURE__ */ L(Oe, { children: [
|
|
3881
3932
|
l && /* @__PURE__ */ p(pn, { comeBack: () => d(null), ...l }),
|
|
3882
3933
|
!l && /* @__PURE__ */ p(
|
|
3883
|
-
|
|
3934
|
+
Ws,
|
|
3884
3935
|
{
|
|
3885
3936
|
items: o.filter((g) => g.attributes).map((g) => g.attributes),
|
|
3886
3937
|
openItemDetail: d
|
|
@@ -3892,15 +3943,15 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
3892
3943
|
name: "e",
|
|
3893
3944
|
class: "e6qv3to",
|
|
3894
3945
|
propsAsIs: !1
|
|
3895
|
-
}),
|
|
3946
|
+
}), Js = /* @__PURE__ */ m("div")({
|
|
3896
3947
|
name: "i",
|
|
3897
3948
|
class: "i1jak95i",
|
|
3898
3949
|
propsAsIs: !1
|
|
3899
|
-
}),
|
|
3950
|
+
}), Xs = /* @__PURE__ */ m("div")({
|
|
3900
3951
|
name: "r",
|
|
3901
3952
|
class: "r1qp3jjx",
|
|
3902
3953
|
propsAsIs: !1
|
|
3903
|
-
}),
|
|
3954
|
+
}), Ks = /* @__PURE__ */ m("div")({
|
|
3904
3955
|
name: "n",
|
|
3905
3956
|
class: "naeizu7",
|
|
3906
3957
|
propsAsIs: !1
|
|
@@ -3908,12 +3959,12 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
3908
3959
|
name: "a",
|
|
3909
3960
|
class: "a4zecne",
|
|
3910
3961
|
propsAsIs: !1
|
|
3911
|
-
}),
|
|
3962
|
+
}), e0 = ({
|
|
3912
3963
|
gamification: r,
|
|
3913
3964
|
sdk: o
|
|
3914
3965
|
}) => {
|
|
3915
|
-
var l, h, d, g, f, s, I,
|
|
3916
|
-
const q = Z(r.status), le = Z(r.onboardingStatus), re = Z(r.openedQuestion), { slStreamId: ce } = Z(o.sdkStore),
|
|
3966
|
+
var l, h, d, g, f, s, I, N, E, x, C, v, z, y, A, w, T, S, O, B, U, F, G;
|
|
3967
|
+
const q = Z(r.status), le = Z(r.onboardingStatus), re = Z(r.openedQuestion), { slStreamId: ce } = Z(o.sdkStore), W = Z(r.featureSettings), [ne, me] = K(nt.HOME);
|
|
3917
3968
|
if (q !== Ve.Ready)
|
|
3918
3969
|
return /* @__PURE__ */ p("div", { children: "wait..." });
|
|
3919
3970
|
if (ce != null && ce.loading)
|
|
@@ -3926,59 +3977,59 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
3926
3977
|
{
|
|
3927
3978
|
closeFeature: o.closeFeature,
|
|
3928
3979
|
gamification: r,
|
|
3929
|
-
steps: (h = (l =
|
|
3930
|
-
gameIcon: (f = (g = (d =
|
|
3931
|
-
sponsorLogo: (
|
|
3932
|
-
rules: (x = (E =
|
|
3933
|
-
rulesBtnLabel: (
|
|
3934
|
-
rulesTitle: (y = (
|
|
3935
|
-
primaryColor: (
|
|
3936
|
-
inviteCardTitle: (O = (S =
|
|
3937
|
-
inviteCardSubtext: (U = (B =
|
|
3938
|
-
inviteCardBtnLabel: (
|
|
3980
|
+
steps: (h = (l = W.inplayGame) == null ? void 0 : l.onboarding) == null ? void 0 : h.steps,
|
|
3981
|
+
gameIcon: (f = (g = (d = W.inplayGame) == null ? void 0 : d.overview) == null ? void 0 : g.media) == null ? void 0 : f.gameIcon,
|
|
3982
|
+
sponsorLogo: (N = (I = (s = W.inplayGame) == null ? void 0 : s.overview) == null ? void 0 : I.media) == null ? void 0 : N.sponsorLogo,
|
|
3983
|
+
rules: (x = (E = W.inplayGame) == null ? void 0 : E.rules) == null ? void 0 : x.rules,
|
|
3984
|
+
rulesBtnLabel: (v = (C = W.inplayGame) == null ? void 0 : C.rules) == null ? void 0 : v.buttonLabel,
|
|
3985
|
+
rulesTitle: (y = (z = W.inplayGame) == null ? void 0 : z.rules) == null ? void 0 : y.heading,
|
|
3986
|
+
primaryColor: (T = (w = (A = W.inplayGame) == null ? void 0 : A.overview) == null ? void 0 : w.appearance) == null ? void 0 : T.primaryColor,
|
|
3987
|
+
inviteCardTitle: (O = (S = W.inplayGame) == null ? void 0 : S.inviteCard) == null ? void 0 : O.heading,
|
|
3988
|
+
inviteCardSubtext: (U = (B = W.inplayGame) == null ? void 0 : B.inviteCard) == null ? void 0 : U.subtext,
|
|
3989
|
+
inviteCardBtnLabel: (G = (F = W.inplayGame) == null ? void 0 : F.inviteCard) == null ? void 0 : G.buttonLabel
|
|
3939
3990
|
}
|
|
3940
3991
|
) });
|
|
3941
3992
|
const ze = (oe) => {
|
|
3942
3993
|
r.openQuestion(oe);
|
|
3943
|
-
},
|
|
3994
|
+
}, Ne = () => {
|
|
3944
3995
|
r.closeQuestion();
|
|
3945
|
-
}, Ie = (oe,
|
|
3946
|
-
r.submitAnswer(oe,
|
|
3996
|
+
}, Ie = (oe, xe) => {
|
|
3997
|
+
r.submitAnswer(oe, xe);
|
|
3947
3998
|
};
|
|
3948
|
-
return /* @__PURE__ */
|
|
3999
|
+
return /* @__PURE__ */ L(Re, { children: [
|
|
3949
4000
|
/* @__PURE__ */ p(ln, { activePage: ne, toggleActivePage: (oe) => {
|
|
3950
4001
|
me(oe);
|
|
3951
4002
|
} }),
|
|
3952
|
-
ne === nt.HOME && /* @__PURE__ */
|
|
3953
|
-
/* @__PURE__ */ p(
|
|
3954
|
-
/* @__PURE__ */
|
|
3955
|
-
r.questions && /* @__PURE__ */ p(
|
|
3956
|
-
re && /* @__PURE__ */ p(
|
|
4003
|
+
ne === nt.HOME && /* @__PURE__ */ L(Oe, { children: [
|
|
4004
|
+
/* @__PURE__ */ p(Js, { children: r.userSummary && /* @__PURE__ */ p(Yo, { store: r.userSummary.getStore() }) }),
|
|
4005
|
+
/* @__PURE__ */ L(Xs, { children: [
|
|
4006
|
+
r.questions && /* @__PURE__ */ p(Vo, { openQuestion: ze, store: r.questions.getStore() }),
|
|
4007
|
+
re && /* @__PURE__ */ p(Qo, { closeQuestion: Ne, vote: Ie, openedQuestion: re })
|
|
3957
4008
|
] })
|
|
3958
4009
|
] }),
|
|
3959
|
-
ne === nt.LEADERBOARD && r.leaderboardList && /* @__PURE__ */ p(
|
|
4010
|
+
ne === nt.LEADERBOARD && r.leaderboardList && /* @__PURE__ */ p(qs, { store: r.leaderboardList.getStore() })
|
|
3960
4011
|
] });
|
|
3961
|
-
},
|
|
4012
|
+
}, t0 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNMTIgOC4xNzIyMkMxMiA4LjI4NzgzIDExLjk3ODEgOC4zOTU1MyAxMS45MzQyIDguNDk1MzNDMTEuODkwMyA4LjU5NTEzIDExLjgyMiA4LjY4OTkyIDExLjcyOTIgOC43Nzk3TDYuMzY5NDkgMTMuOTQzOUM2LjIxNDYyIDE0LjA5NjUgNi4wMjc0MiAxNC4xNzI5IDUuODA3ODcgMTQuMTcyOUM1LjY1NzUyIDE0LjE3MjkgNS41MjE5MSAxNC4xMzc5IDUuNDAxMDQgMTQuMDY3OUM1LjI4MDE2IDEzLjk5OCA1LjE4MzEgMTMuOTAzOSA1LjEwOTg2IDEzLjc4NTZDNS4wMzY2MiAxMy42NjczIDUgMTMuNTM0NSA1IDEzLjM4NzNDNSAxMy4xNzIxIDUuMDgyODggMTIuOTgxOCA1LjI0ODYzIDEyLjgxNjRMMTAuMDgwNyA4LjE3MDk1TDUuMjQ4NjMgMy41Mjc5OUM1LjA4Mjg4IDMuMzY0MjUgNSAzLjE3NDM5IDUgMi45NTg0MUM1IDIuODExMTggNS4wMzY2MiAyLjY3ODQyIDUuMTA5ODYgMi41NjAxM0M1LjE4MzEgMi40NDE4MyA1LjI4MDE2IDIuMzQ3NzEgNS40MDEwNCAyLjI3Nzc3QzUuNTIxOTEgMi4yMDc4MiA1LjY1NzUyIDIuMTcyODUgNS44MDc4NyAyLjE3Mjg1QzYuMDI3NDIgMi4xNzI4NSA2LjIxNDYyIDIuMjQ3MzEgNi4zNjk0OSAyLjM5NjI0TDExLjcyOTIgNy41NjQ3M0MxMS44MjExIDcuNjU0NTEgMTEuODg5IDcuNzQ5MDkgMTEuOTMyOSA3Ljg0ODQ2QzExLjk3NjggNy45NDc4NCAxMS45OTkxIDguMDU1NzYgMTIgOC4xNzIyMloiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K", i0 = (r, o) => {
|
|
3962
4013
|
switch (r) {
|
|
3963
|
-
case
|
|
3964
|
-
return /* @__PURE__ */ p(
|
|
3965
|
-
case
|
|
3966
|
-
return /* @__PURE__ */ p(
|
|
3967
|
-
case
|
|
3968
|
-
return /* @__PURE__ */ p(
|
|
4014
|
+
case Me.ROUNDED:
|
|
4015
|
+
return /* @__PURE__ */ p(Jo, { alt: "insight-icon", src: o });
|
|
4016
|
+
case Me.TRANSPARENT:
|
|
4017
|
+
return /* @__PURE__ */ p(Xo, { alt: "insight-icon", src: o });
|
|
4018
|
+
case Me.CENTERED:
|
|
4019
|
+
return /* @__PURE__ */ p(qo, { alt: "insight-icon", src: o });
|
|
3969
4020
|
default:
|
|
3970
4021
|
return null;
|
|
3971
4022
|
}
|
|
3972
|
-
},
|
|
3973
|
-
/* @__PURE__ */ p(
|
|
3974
|
-
/* @__PURE__ */
|
|
3975
|
-
/* @__PURE__ */ p(
|
|
3976
|
-
/* @__PURE__ */ p(
|
|
4023
|
+
}, r0 = ({ title: r, image: o, questionId: l, imageMode: h, openInsight: d }) => /* @__PURE__ */ L(Ho, { onClick: () => d(l), children: [
|
|
4024
|
+
/* @__PURE__ */ p(Wo, { children: o && i0(h, o) }),
|
|
4025
|
+
/* @__PURE__ */ L(Go, { children: [
|
|
4026
|
+
/* @__PURE__ */ p(Ko, { children: r || "" }),
|
|
4027
|
+
/* @__PURE__ */ p(es, { alt: "next-icon", src: t0 })
|
|
3977
4028
|
] })
|
|
3978
|
-
] }),
|
|
4029
|
+
] }), n0 = ({ insights: r, openInsight: o, className: l }) => /* @__PURE__ */ p(ts, { className: l, children: /* @__PURE__ */ p(is, { children: r == null ? void 0 : r.map((h) => /* @__PURE__ */ p(r0, { openInsight: o, ...h }, h.questionId)) }) }), o0 = ({ highlights: r, store: o, className: l }) => {
|
|
3979
4030
|
const { data: h } = Z(o);
|
|
3980
|
-
return h ? /* @__PURE__ */ p(
|
|
3981
|
-
},
|
|
4031
|
+
return h ? /* @__PURE__ */ p(n0, { className: l, insights: h, openInsight: r.openHighlight }) : /* @__PURE__ */ p("div", { className: l, children: "wait insights..." });
|
|
4032
|
+
}, s0 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNyAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBjbGFzcz0ic2MtQU5kc04ga1RWV0pFIj48cGF0aCBkPSJNNi42NjY1IDMuMTY2NjlINC45OTk4NEM0LjI2MzQ2IDMuMTY2NjkgMy42NjY1IDMuNzYzNjQgMy42NjY1IDQuNTAwMDJWMTEuNUMzLjY2NjUgMTIuMjM2NCA0LjI2MzQ2IDEyLjgzMzQgNC45OTk4NCAxMi44MzM0SDExLjk5OThDMTIuNzM2MiAxMi44MzM0IDEzLjMzMzIgMTIuMjM2NCAxMy4zMzMyIDExLjVWOS44MzMzNSIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTTEzLjMzMzUgNi4xNjY2OVYzLjE2NjY5SDEwLjMzMzUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjxwYXRoIGQ9Ik0xMy4xNjY4IDMuMzMzMzFMOC4zMzM1IDguMTY2NjUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wYXRoPjwvc3ZnPgo=", a0 = ({
|
|
3982
4033
|
image: r,
|
|
3983
4034
|
title: o,
|
|
3984
4035
|
description: l,
|
|
@@ -3987,44 +4038,44 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
3987
4038
|
closeHighlights: g,
|
|
3988
4039
|
closeInsight: f,
|
|
3989
4040
|
className: s
|
|
3990
|
-
}) => /* @__PURE__ */
|
|
3991
|
-
/* @__PURE__ */ p(
|
|
3992
|
-
r && /* @__PURE__ */ p(
|
|
3993
|
-
/* @__PURE__ */
|
|
3994
|
-
o && /* @__PURE__ */ p(
|
|
3995
|
-
l && /* @__PURE__ */ p(
|
|
4041
|
+
}) => /* @__PURE__ */ L(rs, { className: s, children: [
|
|
4042
|
+
/* @__PURE__ */ p(yi, { close: g, comeBack: f }),
|
|
4043
|
+
r && /* @__PURE__ */ p(ns, { alt: "detail-insight-image", src: r }),
|
|
4044
|
+
/* @__PURE__ */ L(os, { children: [
|
|
4045
|
+
o && /* @__PURE__ */ p(ss, { children: o }),
|
|
4046
|
+
l && /* @__PURE__ */ p(as, { children: l })
|
|
3996
4047
|
] }),
|
|
3997
|
-
d && h && /* @__PURE__ */
|
|
4048
|
+
d && h && /* @__PURE__ */ L(ls, { href: d, target: "_blank", children: [
|
|
3998
4049
|
h,
|
|
3999
|
-
/* @__PURE__ */ p(
|
|
4050
|
+
/* @__PURE__ */ p(cs, { alt: "link-icon", src: s0 })
|
|
4000
4051
|
] })
|
|
4001
|
-
] }),
|
|
4052
|
+
] }), l0 = ({ openedInsight: r, closeHighlights: o, closeInsight: l, className: h }) => {
|
|
4002
4053
|
var d, g, f, s, I;
|
|
4003
|
-
const
|
|
4054
|
+
const N = ((d = r.options) == null ? void 0 : d.options.case) === "factoid" ? {
|
|
4004
4055
|
image: r.options.options.value.image,
|
|
4005
4056
|
body: r.options.options.value.body,
|
|
4006
4057
|
webLink: (g = r.options.options.value.webLink) == null ? void 0 : g.url,
|
|
4007
4058
|
webLinkLabel: (f = r.options.options.value.webLink) == null ? void 0 : f.label
|
|
4008
|
-
} : {}, E = r.subject || ((s = r.notification) == null ? void 0 : s.title), x =
|
|
4059
|
+
} : {}, E = r.subject || ((s = r.notification) == null ? void 0 : s.title), x = N.body || ((I = r.notification) == null ? void 0 : I.body);
|
|
4009
4060
|
return /* @__PURE__ */ p(
|
|
4010
|
-
|
|
4061
|
+
a0,
|
|
4011
4062
|
{
|
|
4012
4063
|
className: h,
|
|
4013
|
-
image:
|
|
4064
|
+
image: N.image,
|
|
4014
4065
|
title: E,
|
|
4015
4066
|
description: x,
|
|
4016
|
-
webLink:
|
|
4017
|
-
webLinkLabel:
|
|
4067
|
+
webLink: N.webLink,
|
|
4068
|
+
webLinkLabel: N.webLinkLabel,
|
|
4018
4069
|
closeInsight: l,
|
|
4019
4070
|
closeHighlights: o
|
|
4020
4071
|
}
|
|
4021
4072
|
);
|
|
4022
|
-
},
|
|
4073
|
+
}, c0 = ({ highlights: r, sdk: o }) => {
|
|
4023
4074
|
const l = Z(r.status), h = Z(r.openedInsight), { slStreamId: d } = Z(o.sdkStore);
|
|
4024
|
-
return l !== Ve.Ready ? /* @__PURE__ */ p("div", { children: "wait..." }) : d != null && d.loading ? /* @__PURE__ */ p(Re, { children: /* @__PURE__ */ p("div", { children: "Event is loading" }) }) : d != null && d.data ? r.insights === void 0 ? /* @__PURE__ */ p("div", { children: "wait insights..." }) : /* @__PURE__ */
|
|
4025
|
-
!h && /* @__PURE__ */ p(
|
|
4075
|
+
return l !== Ve.Ready ? /* @__PURE__ */ p("div", { children: "wait..." }) : d != null && d.loading ? /* @__PURE__ */ p(Re, { children: /* @__PURE__ */ p("div", { children: "Event is loading" }) }) : d != null && d.data ? r.insights === void 0 ? /* @__PURE__ */ p("div", { children: "wait insights..." }) : /* @__PURE__ */ L(Re, { children: [
|
|
4076
|
+
!h && /* @__PURE__ */ p(o0, { highlights: r, store: r.insights.getStore() }),
|
|
4026
4077
|
h && /* @__PURE__ */ p(
|
|
4027
|
-
|
|
4078
|
+
l0,
|
|
4028
4079
|
{
|
|
4029
4080
|
openedInsight: h,
|
|
4030
4081
|
closeHighlights: r.closeFeature,
|
|
@@ -4033,16 +4084,16 @@ const Re = /* @__PURE__ */ m("div")({
|
|
|
4033
4084
|
)
|
|
4034
4085
|
] }) : /* @__PURE__ */ p(Re, { children: /* @__PURE__ */ p("div", { children: "Event is forbidden" }) });
|
|
4035
4086
|
};
|
|
4036
|
-
var
|
|
4037
|
-
lt.byteLength =
|
|
4038
|
-
lt.toByteArray =
|
|
4039
|
-
lt.fromByteArray =
|
|
4040
|
-
var ge = [], te = [],
|
|
4041
|
-
for (var Ye = 0,
|
|
4087
|
+
var u0 = {}, Li = {}, lt = {};
|
|
4088
|
+
lt.byteLength = p0;
|
|
4089
|
+
lt.toByteArray = g0;
|
|
4090
|
+
lt.fromByteArray = y0;
|
|
4091
|
+
var ge = [], te = [], h0 = typeof Uint8Array < "u" ? Uint8Array : Array, Tt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4092
|
+
for (var Ye = 0, d0 = Tt.length; Ye < d0; ++Ye)
|
|
4042
4093
|
ge[Ye] = Tt[Ye], te[Tt.charCodeAt(Ye)] = Ye;
|
|
4043
4094
|
te["-".charCodeAt(0)] = 62;
|
|
4044
4095
|
te["_".charCodeAt(0)] = 63;
|
|
4045
|
-
function
|
|
4096
|
+
function zi(r) {
|
|
4046
4097
|
var o = r.length;
|
|
4047
4098
|
if (o % 4 > 0)
|
|
4048
4099
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
@@ -4051,60 +4102,60 @@ function Li(r) {
|
|
|
4051
4102
|
var h = l === o ? 0 : 4 - l % 4;
|
|
4052
4103
|
return [l, h];
|
|
4053
4104
|
}
|
|
4054
|
-
function
|
|
4055
|
-
var o =
|
|
4105
|
+
function p0(r) {
|
|
4106
|
+
var o = zi(r), l = o[0], h = o[1];
|
|
4056
4107
|
return (l + h) * 3 / 4 - h;
|
|
4057
4108
|
}
|
|
4058
|
-
function
|
|
4109
|
+
function f0(r, o, l) {
|
|
4059
4110
|
return (o + l) * 3 / 4 - l;
|
|
4060
4111
|
}
|
|
4061
|
-
function
|
|
4062
|
-
var o, l =
|
|
4112
|
+
function g0(r) {
|
|
4113
|
+
var o, l = zi(r), h = l[0], d = l[1], g = new h0(f0(r, h, d)), f = 0, s = d > 0 ? h - 4 : h, I;
|
|
4063
4114
|
for (I = 0; I < s; I += 4)
|
|
4064
4115
|
o = te[r.charCodeAt(I)] << 18 | te[r.charCodeAt(I + 1)] << 12 | te[r.charCodeAt(I + 2)] << 6 | te[r.charCodeAt(I + 3)], g[f++] = o >> 16 & 255, g[f++] = o >> 8 & 255, g[f++] = o & 255;
|
|
4065
4116
|
return d === 2 && (o = te[r.charCodeAt(I)] << 2 | te[r.charCodeAt(I + 1)] >> 4, g[f++] = o & 255), d === 1 && (o = te[r.charCodeAt(I)] << 10 | te[r.charCodeAt(I + 1)] << 4 | te[r.charCodeAt(I + 2)] >> 2, g[f++] = o >> 8 & 255, g[f++] = o & 255), g;
|
|
4066
4117
|
}
|
|
4067
|
-
function
|
|
4118
|
+
function m0(r) {
|
|
4068
4119
|
return ge[r >> 18 & 63] + ge[r >> 12 & 63] + ge[r >> 6 & 63] + ge[r & 63];
|
|
4069
4120
|
}
|
|
4070
|
-
function
|
|
4121
|
+
function I0(r, o, l) {
|
|
4071
4122
|
for (var h, d = [], g = o; g < l; g += 3)
|
|
4072
|
-
h = (r[g] << 16 & 16711680) + (r[g + 1] << 8 & 65280) + (r[g + 2] & 255), d.push(
|
|
4123
|
+
h = (r[g] << 16 & 16711680) + (r[g + 1] << 8 & 65280) + (r[g + 2] & 255), d.push(m0(h));
|
|
4073
4124
|
return d.join("");
|
|
4074
4125
|
}
|
|
4075
|
-
function
|
|
4126
|
+
function y0(r) {
|
|
4076
4127
|
for (var o, l = r.length, h = l % 3, d = [], g = 16383, f = 0, s = l - h; f < s; f += g)
|
|
4077
|
-
d.push(
|
|
4128
|
+
d.push(I0(r, f, f + g > s ? s : f + g));
|
|
4078
4129
|
return h === 1 ? (o = r[l - 1], d.push(
|
|
4079
4130
|
ge[o >> 2] + ge[o << 4 & 63] + "=="
|
|
4080
4131
|
)) : h === 2 && (o = (r[l - 2] << 8) + r[l - 1], d.push(
|
|
4081
4132
|
ge[o >> 10] + ge[o >> 4 & 63] + ge[o << 2 & 63] + "="
|
|
4082
4133
|
)), d.join("");
|
|
4083
4134
|
}
|
|
4084
|
-
var
|
|
4135
|
+
var Pt = {};
|
|
4085
4136
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4086
|
-
|
|
4087
|
-
var g, f, s = d * 8 - h - 1, I = (1 << s) - 1,
|
|
4088
|
-
for (x +=
|
|
4137
|
+
Pt.read = function(r, o, l, h, d) {
|
|
4138
|
+
var g, f, s = d * 8 - h - 1, I = (1 << s) - 1, N = I >> 1, E = -7, x = l ? d - 1 : 0, C = l ? -1 : 1, v = r[o + x];
|
|
4139
|
+
for (x += C, g = v & (1 << -E) - 1, v >>= -E, E += s; E > 0; g = g * 256 + r[o + x], x += C, E -= 8)
|
|
4089
4140
|
;
|
|
4090
|
-
for (f = g & (1 << -E) - 1, g >>= -E, E += h; E > 0; f = f * 256 + r[o + x], x +=
|
|
4141
|
+
for (f = g & (1 << -E) - 1, g >>= -E, E += h; E > 0; f = f * 256 + r[o + x], x += C, E -= 8)
|
|
4091
4142
|
;
|
|
4092
4143
|
if (g === 0)
|
|
4093
|
-
g = 1 -
|
|
4144
|
+
g = 1 - N;
|
|
4094
4145
|
else {
|
|
4095
4146
|
if (g === I)
|
|
4096
|
-
return f ? NaN : (
|
|
4097
|
-
f = f + Math.pow(2, h), g = g -
|
|
4147
|
+
return f ? NaN : (v ? -1 : 1) * (1 / 0);
|
|
4148
|
+
f = f + Math.pow(2, h), g = g - N;
|
|
4098
4149
|
}
|
|
4099
|
-
return (
|
|
4150
|
+
return (v ? -1 : 1) * f * Math.pow(2, g - h);
|
|
4100
4151
|
};
|
|
4101
|
-
|
|
4102
|
-
var f, s, I,
|
|
4103
|
-
for (o = Math.abs(o), isNaN(o) || o === 1 / 0 ? (s = isNaN(o) ? 1 : 0, f = E) : (f = Math.floor(Math.log(o) / Math.LN2), o * (I = Math.pow(2, -f)) < 1 && (f--, I *= 2), f + x >= 1 ? o +=
|
|
4152
|
+
Pt.write = function(r, o, l, h, d, g) {
|
|
4153
|
+
var f, s, I, N = g * 8 - d - 1, E = (1 << N) - 1, x = E >> 1, C = d === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = h ? 0 : g - 1, z = h ? 1 : -1, y = o < 0 || o === 0 && 1 / o < 0 ? 1 : 0;
|
|
4154
|
+
for (o = Math.abs(o), isNaN(o) || o === 1 / 0 ? (s = isNaN(o) ? 1 : 0, f = E) : (f = Math.floor(Math.log(o) / Math.LN2), o * (I = Math.pow(2, -f)) < 1 && (f--, I *= 2), f + x >= 1 ? o += C / I : o += C * Math.pow(2, 1 - x), o * I >= 2 && (f++, I /= 2), f + x >= E ? (s = 0, f = E) : f + x >= 1 ? (s = (o * I - 1) * Math.pow(2, d), f = f + x) : (s = o * Math.pow(2, x - 1) * Math.pow(2, d), f = 0)); d >= 8; r[l + v] = s & 255, v += z, s /= 256, d -= 8)
|
|
4104
4155
|
;
|
|
4105
|
-
for (f = f << d | s,
|
|
4156
|
+
for (f = f << d | s, N += d; N > 0; r[l + v] = f & 255, v += z, f /= 256, N -= 8)
|
|
4106
4157
|
;
|
|
4107
|
-
r[l +
|
|
4158
|
+
r[l + v - z] |= y * 128;
|
|
4108
4159
|
};
|
|
4109
4160
|
/*!
|
|
4110
4161
|
* The buffer module from node.js, for the browser.
|
|
@@ -4113,8 +4164,8 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4113
4164
|
* @license MIT
|
|
4114
4165
|
*/
|
|
4115
4166
|
(function(r) {
|
|
4116
|
-
const o = lt, l =
|
|
4117
|
-
r.Buffer = s, r.SlowBuffer =
|
|
4167
|
+
const o = lt, l = Pt, h = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
4168
|
+
r.Buffer = s, r.SlowBuffer = T, r.INSPECT_MAX_BYTES = 50;
|
|
4118
4169
|
const d = 2147483647;
|
|
4119
4170
|
r.kMaxLength = d, s.TYPED_ARRAY_SUPPORT = g(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
4120
4171
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -4161,9 +4212,9 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4161
4212
|
s.poolSize = 8192;
|
|
4162
4213
|
function I(i, e, t) {
|
|
4163
4214
|
if (typeof i == "string")
|
|
4164
|
-
return
|
|
4215
|
+
return C(i, e);
|
|
4165
4216
|
if (ArrayBuffer.isView(i))
|
|
4166
|
-
return
|
|
4217
|
+
return z(i);
|
|
4167
4218
|
if (i == null)
|
|
4168
4219
|
throw new TypeError(
|
|
4169
4220
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
|
@@ -4177,7 +4228,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4177
4228
|
const n = i.valueOf && i.valueOf();
|
|
4178
4229
|
if (n != null && n !== i)
|
|
4179
4230
|
return s.from(n, e, t);
|
|
4180
|
-
const a =
|
|
4231
|
+
const a = A(i);
|
|
4181
4232
|
if (a)
|
|
4182
4233
|
return a;
|
|
4183
4234
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof i[Symbol.toPrimitive] == "function")
|
|
@@ -4189,27 +4240,27 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4189
4240
|
s.from = function(i, e, t) {
|
|
4190
4241
|
return I(i, e, t);
|
|
4191
4242
|
}, Object.setPrototypeOf(s.prototype, Uint8Array.prototype), Object.setPrototypeOf(s, Uint8Array);
|
|
4192
|
-
function
|
|
4243
|
+
function N(i) {
|
|
4193
4244
|
if (typeof i != "number")
|
|
4194
4245
|
throw new TypeError('"size" argument must be of type number');
|
|
4195
4246
|
if (i < 0)
|
|
4196
4247
|
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
|
4197
4248
|
}
|
|
4198
4249
|
function E(i, e, t) {
|
|
4199
|
-
return
|
|
4250
|
+
return N(i), i <= 0 ? f(i) : e !== void 0 ? typeof t == "string" ? f(i).fill(e, t) : f(i).fill(e) : f(i);
|
|
4200
4251
|
}
|
|
4201
4252
|
s.alloc = function(i, e, t) {
|
|
4202
4253
|
return E(i, e, t);
|
|
4203
4254
|
};
|
|
4204
4255
|
function x(i) {
|
|
4205
|
-
return
|
|
4256
|
+
return N(i), f(i < 0 ? 0 : w(i) | 0);
|
|
4206
4257
|
}
|
|
4207
4258
|
s.allocUnsafe = function(i) {
|
|
4208
4259
|
return x(i);
|
|
4209
4260
|
}, s.allocUnsafeSlow = function(i) {
|
|
4210
4261
|
return x(i);
|
|
4211
4262
|
};
|
|
4212
|
-
function
|
|
4263
|
+
function C(i, e) {
|
|
4213
4264
|
if ((typeof e != "string" || e === "") && (e = "utf8"), !s.isEncoding(e))
|
|
4214
4265
|
throw new TypeError("Unknown encoding: " + e);
|
|
4215
4266
|
const t = S(i, e) | 0;
|
|
@@ -4217,18 +4268,18 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4217
4268
|
const a = n.write(i, e);
|
|
4218
4269
|
return a !== t && (n = n.slice(0, a)), n;
|
|
4219
4270
|
}
|
|
4220
|
-
function
|
|
4221
|
-
const e = i.length < 0 ? 0 :
|
|
4271
|
+
function v(i) {
|
|
4272
|
+
const e = i.length < 0 ? 0 : w(i.length) | 0, t = f(e);
|
|
4222
4273
|
for (let n = 0; n < e; n += 1)
|
|
4223
4274
|
t[n] = i[n] & 255;
|
|
4224
4275
|
return t;
|
|
4225
4276
|
}
|
|
4226
|
-
function
|
|
4277
|
+
function z(i) {
|
|
4227
4278
|
if (P(i, Uint8Array)) {
|
|
4228
4279
|
const e = new Uint8Array(i);
|
|
4229
4280
|
return y(e.buffer, e.byteOffset, e.byteLength);
|
|
4230
4281
|
}
|
|
4231
|
-
return
|
|
4282
|
+
return v(i);
|
|
4232
4283
|
}
|
|
4233
4284
|
function y(i, e, t) {
|
|
4234
4285
|
if (e < 0 || i.byteLength < e)
|
|
@@ -4238,22 +4289,22 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4238
4289
|
let n;
|
|
4239
4290
|
return e === void 0 && t === void 0 ? n = new Uint8Array(i) : t === void 0 ? n = new Uint8Array(i, e) : n = new Uint8Array(i, e, t), Object.setPrototypeOf(n, s.prototype), n;
|
|
4240
4291
|
}
|
|
4241
|
-
function
|
|
4292
|
+
function A(i) {
|
|
4242
4293
|
if (s.isBuffer(i)) {
|
|
4243
|
-
const e =
|
|
4294
|
+
const e = w(i.length) | 0, t = f(e);
|
|
4244
4295
|
return t.length === 0 || i.copy(t, 0, 0, e), t;
|
|
4245
4296
|
}
|
|
4246
4297
|
if (i.length !== void 0)
|
|
4247
|
-
return typeof i.length != "number" || Be(i.length) ? f(0) :
|
|
4298
|
+
return typeof i.length != "number" || Be(i.length) ? f(0) : v(i);
|
|
4248
4299
|
if (i.type === "Buffer" && Array.isArray(i.data))
|
|
4249
|
-
return
|
|
4300
|
+
return v(i.data);
|
|
4250
4301
|
}
|
|
4251
|
-
function
|
|
4302
|
+
function w(i) {
|
|
4252
4303
|
if (i >= d)
|
|
4253
4304
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + d.toString(16) + " bytes");
|
|
4254
4305
|
return i | 0;
|
|
4255
4306
|
}
|
|
4256
|
-
function
|
|
4307
|
+
function T(i) {
|
|
4257
4308
|
return +i != i && (i = 0), s.alloc(+i);
|
|
4258
4309
|
}
|
|
4259
4310
|
s.isBuffer = function(e) {
|
|
@@ -4366,17 +4417,17 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4366
4417
|
case "utf-8":
|
|
4367
4418
|
return ne(this, e, t);
|
|
4368
4419
|
case "ascii":
|
|
4369
|
-
return
|
|
4420
|
+
return Ne(this, e, t);
|
|
4370
4421
|
case "latin1":
|
|
4371
4422
|
case "binary":
|
|
4372
4423
|
return Ie(this, e, t);
|
|
4373
4424
|
case "base64":
|
|
4374
|
-
return
|
|
4425
|
+
return W(this, e, t);
|
|
4375
4426
|
case "ucs2":
|
|
4376
4427
|
case "ucs-2":
|
|
4377
4428
|
case "utf16le":
|
|
4378
4429
|
case "utf-16le":
|
|
4379
|
-
return
|
|
4430
|
+
return xe(this, e, t);
|
|
4380
4431
|
default:
|
|
4381
4432
|
if (n)
|
|
4382
4433
|
throw new TypeError("Unknown encoding: " + i);
|
|
@@ -4501,7 +4552,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4501
4552
|
}, s.prototype.lastIndexOf = function(e, t, n) {
|
|
4502
4553
|
return U(this, e, t, n, !1);
|
|
4503
4554
|
};
|
|
4504
|
-
function
|
|
4555
|
+
function G(i, e, t, n) {
|
|
4505
4556
|
t = Number(t) || 0;
|
|
4506
4557
|
const a = i.length - t;
|
|
4507
4558
|
n ? (n = Number(n), n > a && (n = a)) : n = a;
|
|
@@ -4547,7 +4598,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4547
4598
|
for (; ; )
|
|
4548
4599
|
switch (a) {
|
|
4549
4600
|
case "hex":
|
|
4550
|
-
return
|
|
4601
|
+
return G(this, e, t, n);
|
|
4551
4602
|
case "utf8":
|
|
4552
4603
|
case "utf-8":
|
|
4553
4604
|
return q(this, e, t, n);
|
|
@@ -4573,7 +4624,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4573
4624
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
4574
4625
|
};
|
|
4575
4626
|
};
|
|
4576
|
-
function
|
|
4627
|
+
function W(i, e, t) {
|
|
4577
4628
|
return e === 0 && t === i.length ? o.fromByteArray(i) : o.fromByteArray(i.slice(e, t));
|
|
4578
4629
|
}
|
|
4579
4630
|
function ne(i, e, t) {
|
|
@@ -4616,7 +4667,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4616
4667
|
);
|
|
4617
4668
|
return t;
|
|
4618
4669
|
}
|
|
4619
|
-
function
|
|
4670
|
+
function Ne(i, e, t) {
|
|
4620
4671
|
let n = "";
|
|
4621
4672
|
t = Math.min(i.length, t);
|
|
4622
4673
|
for (let a = e; a < t; ++a)
|
|
@@ -4638,7 +4689,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4638
4689
|
a += ft[i[c]];
|
|
4639
4690
|
return a;
|
|
4640
4691
|
}
|
|
4641
|
-
function
|
|
4692
|
+
function xe(i, e, t) {
|
|
4642
4693
|
const n = i.slice(e, t);
|
|
4643
4694
|
let a = "";
|
|
4644
4695
|
for (let c = 0; c < n.length - 1; c += 2)
|
|
@@ -4776,7 +4827,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4776
4827
|
}, s.prototype.writeUint32BE = s.prototype.writeUInt32BE = function(e, t, n) {
|
|
4777
4828
|
return e = +e, t = t >>> 0, n || $(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
4778
4829
|
};
|
|
4779
|
-
function
|
|
4830
|
+
function Te(i, e, t, n, a) {
|
|
4780
4831
|
Je(e, n, a, i, t, 7);
|
|
4781
4832
|
let c = Number(e & BigInt(4294967295));
|
|
4782
4833
|
i[t++] = c, c = c >> 8, i[t++] = c, c = c >> 8, i[t++] = c, c = c >> 8, i[t++] = c;
|
|
@@ -4791,7 +4842,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4791
4842
|
return i[t + 3] = u, u = u >> 8, i[t + 2] = u, u = u >> 8, i[t + 1] = u, u = u >> 8, i[t] = u, t + 8;
|
|
4792
4843
|
}
|
|
4793
4844
|
s.prototype.writeBigUInt64LE = Q(function(e, t = 0) {
|
|
4794
|
-
return
|
|
4845
|
+
return Te(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
4795
4846
|
}), s.prototype.writeBigUInt64BE = Q(function(e, t = 0) {
|
|
4796
4847
|
return se(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
4797
4848
|
}), s.prototype.writeIntLE = function(e, t, n, a) {
|
|
@@ -4823,18 +4874,18 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4823
4874
|
}, s.prototype.writeInt32BE = function(e, t, n) {
|
|
4824
4875
|
return e = +e, t = t >>> 0, n || $(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
4825
4876
|
}, s.prototype.writeBigInt64LE = Q(function(e, t = 0) {
|
|
4826
|
-
return
|
|
4877
|
+
return Te(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
4827
4878
|
}), s.prototype.writeBigInt64BE = Q(function(e, t = 0) {
|
|
4828
4879
|
return se(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
4829
4880
|
});
|
|
4830
|
-
function
|
|
4881
|
+
function ve(i, e, t, n, a, c) {
|
|
4831
4882
|
if (t + n > i.length)
|
|
4832
4883
|
throw new RangeError("Index out of range");
|
|
4833
4884
|
if (t < 0)
|
|
4834
4885
|
throw new RangeError("Index out of range");
|
|
4835
4886
|
}
|
|
4836
4887
|
function Ge(i, e, t, n, a) {
|
|
4837
|
-
return e = +e, t = t >>> 0, a ||
|
|
4888
|
+
return e = +e, t = t >>> 0, a || ve(i, e, t, 4), l.write(i, e, t, n, 23, 4), t + 4;
|
|
4838
4889
|
}
|
|
4839
4890
|
s.prototype.writeFloatLE = function(e, t, n) {
|
|
4840
4891
|
return Ge(this, e, t, !0, n);
|
|
@@ -4842,7 +4893,7 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
4842
4893
|
return Ge(this, e, t, !1, n);
|
|
4843
4894
|
};
|
|
4844
4895
|
function We(i, e, t, n, a) {
|
|
4845
|
-
return e = +e, t = t >>> 0, a ||
|
|
4896
|
+
return e = +e, t = t >>> 0, a || ve(i, e, t, 8), l.write(i, e, t, n, 52, 8), t + 8;
|
|
4846
4897
|
}
|
|
4847
4898
|
s.prototype.writeDoubleLE = function(e, t, n) {
|
|
4848
4899
|
return We(this, e, t, !0, n);
|
|
@@ -5081,8 +5132,8 @@ Ft.write = function(r, o, l, h, d, g) {
|
|
|
5081
5132
|
function gt() {
|
|
5082
5133
|
throw new Error("BigInt not supported");
|
|
5083
5134
|
}
|
|
5084
|
-
})(
|
|
5085
|
-
var
|
|
5135
|
+
})(Li);
|
|
5136
|
+
var Si = { exports: {} }, V = Si.exports = {}, de, pe;
|
|
5086
5137
|
function Bt() {
|
|
5087
5138
|
throw new Error("setTimeout has not been defined");
|
|
5088
5139
|
}
|
|
@@ -5101,7 +5152,7 @@ function kt() {
|
|
|
5101
5152
|
pe = kt;
|
|
5102
5153
|
}
|
|
5103
5154
|
})();
|
|
5104
|
-
function
|
|
5155
|
+
function ji(r) {
|
|
5105
5156
|
if (de === setTimeout)
|
|
5106
5157
|
return setTimeout(r, 0);
|
|
5107
5158
|
if ((de === Bt || !de) && setTimeout)
|
|
@@ -5116,7 +5167,7 @@ function Si(r) {
|
|
|
5116
5167
|
}
|
|
5117
5168
|
}
|
|
5118
5169
|
}
|
|
5119
|
-
function
|
|
5170
|
+
function M0(r) {
|
|
5120
5171
|
if (pe === clearTimeout)
|
|
5121
5172
|
return clearTimeout(r);
|
|
5122
5173
|
if ((pe === kt || !pe) && clearTimeout)
|
|
@@ -5132,19 +5183,19 @@ function f0(r) {
|
|
|
5132
5183
|
}
|
|
5133
5184
|
}
|
|
5134
5185
|
var we = [], Qe = !1, _e, st = -1;
|
|
5135
|
-
function
|
|
5136
|
-
!Qe || !_e || (Qe = !1, _e.length ? we = _e.concat(we) : st = -1, we.length &&
|
|
5186
|
+
function C0() {
|
|
5187
|
+
!Qe || !_e || (Qe = !1, _e.length ? we = _e.concat(we) : st = -1, we.length && Bi());
|
|
5137
5188
|
}
|
|
5138
|
-
function
|
|
5189
|
+
function Bi() {
|
|
5139
5190
|
if (!Qe) {
|
|
5140
|
-
var r =
|
|
5191
|
+
var r = ji(C0);
|
|
5141
5192
|
Qe = !0;
|
|
5142
5193
|
for (var o = we.length; o; ) {
|
|
5143
5194
|
for (_e = we, we = []; ++st < o; )
|
|
5144
5195
|
_e && _e[st].run();
|
|
5145
5196
|
st = -1, o = we.length;
|
|
5146
5197
|
}
|
|
5147
|
-
_e = null, Qe = !1,
|
|
5198
|
+
_e = null, Qe = !1, M0(r);
|
|
5148
5199
|
}
|
|
5149
5200
|
}
|
|
5150
5201
|
V.nextTick = function(r) {
|
|
@@ -5152,12 +5203,12 @@ V.nextTick = function(r) {
|
|
|
5152
5203
|
if (arguments.length > 1)
|
|
5153
5204
|
for (var l = 1; l < arguments.length; l++)
|
|
5154
5205
|
o[l - 1] = arguments[l];
|
|
5155
|
-
we.push(new
|
|
5206
|
+
we.push(new ki(r, o)), we.length === 1 && !Qe && ji(Bi);
|
|
5156
5207
|
};
|
|
5157
|
-
function
|
|
5208
|
+
function ki(r, o) {
|
|
5158
5209
|
this.fun = r, this.array = o;
|
|
5159
5210
|
}
|
|
5160
|
-
|
|
5211
|
+
ki.prototype.run = function() {
|
|
5161
5212
|
this.fun.apply(null, this.array);
|
|
5162
5213
|
};
|
|
5163
5214
|
V.title = "browser";
|
|
@@ -5166,17 +5217,17 @@ V.env = {};
|
|
|
5166
5217
|
V.argv = [];
|
|
5167
5218
|
V.version = "";
|
|
5168
5219
|
V.versions = {};
|
|
5169
|
-
function
|
|
5220
|
+
function Ae() {
|
|
5170
5221
|
}
|
|
5171
|
-
V.on =
|
|
5172
|
-
V.addListener =
|
|
5173
|
-
V.once =
|
|
5174
|
-
V.off =
|
|
5175
|
-
V.removeListener =
|
|
5176
|
-
V.removeAllListeners =
|
|
5177
|
-
V.emit =
|
|
5178
|
-
V.prependListener =
|
|
5179
|
-
V.prependOnceListener =
|
|
5222
|
+
V.on = Ae;
|
|
5223
|
+
V.addListener = Ae;
|
|
5224
|
+
V.once = Ae;
|
|
5225
|
+
V.off = Ae;
|
|
5226
|
+
V.removeListener = Ae;
|
|
5227
|
+
V.removeAllListeners = Ae;
|
|
5228
|
+
V.emit = Ae;
|
|
5229
|
+
V.prependListener = Ae;
|
|
5230
|
+
V.prependOnceListener = Ae;
|
|
5180
5231
|
V.listeners = function(r) {
|
|
5181
5232
|
return [];
|
|
5182
5233
|
};
|
|
@@ -5192,36 +5243,36 @@ V.chdir = function(r) {
|
|
|
5192
5243
|
V.umask = function() {
|
|
5193
5244
|
return 0;
|
|
5194
5245
|
};
|
|
5195
|
-
var
|
|
5246
|
+
var w0 = Si.exports;
|
|
5196
5247
|
(function(r) {
|
|
5197
5248
|
Object.defineProperty(r, Symbol.toStringTag, { value: "Module" });
|
|
5198
|
-
const o =
|
|
5249
|
+
const o = Li, l = w0, h = (f) => f && f.__esModule ? f : { default: f }, d = h(l), g = globalThis || void 0 || self;
|
|
5199
5250
|
Object.defineProperty(r, "Buffer", { enumerable: !0, get: () => o.Buffer }), Object.defineProperty(r, "process", { enumerable: !0, get: () => d.default }), r.global = g;
|
|
5200
|
-
})(
|
|
5251
|
+
})(u0);
|
|
5201
5252
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
5202
|
-
var
|
|
5253
|
+
var hi;
|
|
5203
5254
|
(function(r) {
|
|
5204
5255
|
r.ORGANIZATION = "ORGANIZATION", r.STREAM = "STREAM";
|
|
5205
|
-
})(
|
|
5256
|
+
})(hi || (hi = {}));
|
|
5206
5257
|
tt.BETTING + "", tt.GAMES + "", tt.PUBLIC_CHAT + "", tt.TWITTER + "";
|
|
5207
|
-
var
|
|
5258
|
+
var di;
|
|
5208
5259
|
(function(r) {
|
|
5209
5260
|
r.Ready = "ready", r.Suspended = "suspended";
|
|
5210
|
-
})(
|
|
5261
|
+
})(di || (di = {}));
|
|
5211
5262
|
window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
|
|
5212
|
-
var
|
|
5263
|
+
var pi;
|
|
5213
5264
|
(function(r) {
|
|
5214
5265
|
r.Init = "init", r.Ready = "ready", r.Connecting = "connecting", r.Connected = "connected", r.Disconnected = "disconnected", r.Failed = "failed", r.Reconnecting = "reconnecting";
|
|
5215
|
-
})(
|
|
5216
|
-
const
|
|
5266
|
+
})(pi || (pi = {}));
|
|
5267
|
+
const E0 = ({ sdk: r }) => Z(r.getUserStore()).data ? /* @__PURE__ */ p("button", { onClick: r.logout, children: "logout" }) : /* @__PURE__ */ p(Nr, { login: async (o) => {
|
|
5217
5268
|
try {
|
|
5218
5269
|
await r.authorizationBypass("streamlayer:streamlayer", o);
|
|
5219
5270
|
} catch (l) {
|
|
5220
5271
|
throw console.log("login err", l), l;
|
|
5221
5272
|
}
|
|
5222
5273
|
}, anonymousLogin: r.anonymousAuthorization, host: r.host });
|
|
5223
|
-
var
|
|
5224
|
-
class
|
|
5274
|
+
var A0 = Object.defineProperty, N0 = (r, o, l) => o in r ? A0(r, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : r[o] = l, ke = (r, o, l) => (N0(r, typeof o != "symbol" ? o + "" : o, l), l);
|
|
5275
|
+
class x0 extends $i {
|
|
5225
5276
|
constructor() {
|
|
5226
5277
|
super("user"), ke(this, "setSchema", (o) => {
|
|
5227
5278
|
this.write("schema", o);
|
|
@@ -5246,8 +5297,8 @@ class w0 extends $i {
|
|
|
5246
5297
|
});
|
|
5247
5298
|
}
|
|
5248
5299
|
}
|
|
5249
|
-
new
|
|
5250
|
-
const
|
|
5300
|
+
new x0();
|
|
5301
|
+
const T0 = ({ activeFeature: r, sdk: o }) => {
|
|
5251
5302
|
const [l, h] = K(null), { organizationSettings: d, streamSettings: g } = Z(o.sdkStore), f = De(() => {
|
|
5252
5303
|
const I = (g == null ? void 0 : g.data) || (d == null ? void 0 : d.data);
|
|
5253
5304
|
return I != null && I.overlays ? I.overlays : [];
|
|
@@ -5255,24 +5306,24 @@ const C0 = ({ activeFeature: r, sdk: o }) => {
|
|
|
5255
5306
|
bt(() => {
|
|
5256
5307
|
const I = o.getFeatures();
|
|
5257
5308
|
if (r)
|
|
5258
|
-
for (const [
|
|
5259
|
-
|
|
5309
|
+
for (const [N, E] of I)
|
|
5310
|
+
N === r ? E.status.get() === Ve.Suspended && (E.enable(), h(E)) : E.status.get() === Ve.Ready && E.disable();
|
|
5260
5311
|
else {
|
|
5261
|
-
for (const [,
|
|
5262
|
-
|
|
5312
|
+
for (const [, N] of I)
|
|
5313
|
+
N.status.get() === Ve.Ready && N.disable();
|
|
5263
5314
|
h(null);
|
|
5264
5315
|
}
|
|
5265
5316
|
return () => {
|
|
5266
|
-
for (const [,
|
|
5267
|
-
|
|
5317
|
+
for (const [, N] of I)
|
|
5318
|
+
N.status.get() === Ve.Ready && N.disable();
|
|
5268
5319
|
};
|
|
5269
5320
|
}, [r, o]);
|
|
5270
|
-
const s = De(() => l ? l.featureConfig.get().type ===
|
|
5271
|
-
return /* @__PURE__ */
|
|
5272
|
-
/* @__PURE__ */
|
|
5321
|
+
const s = De(() => l ? l.featureConfig.get().type === Yt.GAMES ? l ? /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(e0, { gamification: l, sdk: o }) }) : /* @__PURE__ */ p("div", { children: "wait gamification..." }) : l.featureConfig.get().type === Yt.HIGHLIGHTS ? l ? /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(c0, { highlights: l, sdk: o }) }) : /* @__PURE__ */ p("div", { children: "wait highlights..." }) : /* @__PURE__ */ p("div", { children: "unknown feature" }) : null, [o, l]);
|
|
5322
|
+
return /* @__PURE__ */ L("div", { children: [
|
|
5323
|
+
/* @__PURE__ */ L(Ks, { children: [
|
|
5273
5324
|
/* @__PURE__ */ p(xt, { onClick: () => o.closeFeature(), disabled: !s, children: "close" }),
|
|
5274
5325
|
/* @__PURE__ */ p(xt, { onClick: () => o.logout(), children: "logout" }),
|
|
5275
|
-
f.map((I) => /* @__PURE__ */
|
|
5326
|
+
f.map((I) => /* @__PURE__ */ L(
|
|
5276
5327
|
xt,
|
|
5277
5328
|
{
|
|
5278
5329
|
onClick: () => o.openFeature(I.type),
|
|
@@ -5289,33 +5340,37 @@ const C0 = ({ activeFeature: r, sdk: o }) => {
|
|
|
5289
5340
|
] }),
|
|
5290
5341
|
s
|
|
5291
5342
|
] });
|
|
5292
|
-
},
|
|
5343
|
+
}, e2 = ({ sdk: r }) => {
|
|
5293
5344
|
const o = Z(r.organizationStore()), l = Z(r.getUserStore()), h = Z(r.getActiveFeature());
|
|
5294
|
-
return o.loading ? /* @__PURE__ */ p("div", { children: "authentication..." }) : o.data ? l.loading ? /* @__PURE__ */ p("div", { children: "authentication..." }) : l.data ? /* @__PURE__ */
|
|
5295
|
-
/* @__PURE__ */ p(
|
|
5296
|
-
/* @__PURE__ */ p(
|
|
5297
|
-
] }) : /* @__PURE__ */ p(
|
|
5345
|
+
return o.loading ? /* @__PURE__ */ p("div", { children: "authentication..." }) : o.data ? l.loading ? /* @__PURE__ */ p("div", { children: "authentication..." }) : l.data ? /* @__PURE__ */ L(Oe, { children: [
|
|
5346
|
+
/* @__PURE__ */ p(Po, { notificationsStore: r.getNotificationsStore() }),
|
|
5347
|
+
/* @__PURE__ */ p(T0, { sdk: r, activeFeature: h })
|
|
5348
|
+
] }) : /* @__PURE__ */ p(E0, { sdk: r }) : /* @__PURE__ */ p("div", { children: "wrong sdk key..." });
|
|
5298
5349
|
};
|
|
5299
|
-
const
|
|
5300
|
-
const
|
|
5350
|
+
const t2 = "StreamLayerCSSReset", v0 = "pedqibx";
|
|
5351
|
+
const i2 = ({ children: r, style: o }) => /* @__PURE__ */ p("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ p("div", { className: v0, style: o, children: r }) });
|
|
5301
5352
|
export {
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
Ue as Y,
|
|
5353
|
+
W0 as S,
|
|
5354
|
+
No as Y,
|
|
5305
5355
|
Hi as a,
|
|
5306
5356
|
Qi as b,
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5357
|
+
e2 as c,
|
|
5358
|
+
Ci as d,
|
|
5359
|
+
pn as e,
|
|
5360
|
+
t2 as f,
|
|
5361
|
+
J0 as g,
|
|
5312
5362
|
nt as h,
|
|
5313
|
-
|
|
5314
|
-
|
|
5363
|
+
ln as i,
|
|
5364
|
+
U1 as j,
|
|
5365
|
+
o0 as k,
|
|
5366
|
+
l0 as l,
|
|
5367
|
+
q0 as m,
|
|
5315
5368
|
In as o,
|
|
5316
|
-
|
|
5369
|
+
i2 as p,
|
|
5370
|
+
Ue as q,
|
|
5371
|
+
O1 as r,
|
|
5317
5372
|
m as s,
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5373
|
+
h1 as u,
|
|
5374
|
+
R1 as v,
|
|
5375
|
+
Ws as x
|
|
5321
5376
|
};
|