@streamlayer/react 0.29.10 → 0.29.11

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.
@@ -1,12 +1,12 @@
1
- import { jsxs as v, jsx as p, Fragment as ye } from "react/jsx-runtime";
2
- import { s as g, C as Q } from "./index-616b0bcd.js";
1
+ import { jsxs as v, jsx as h, Fragment as de } from "react/jsx-runtime";
2
+ import { s as g, i as Q } from "./index-81810ce0.js";
3
3
  import { useStore as re } from "@nanostores/react";
4
- import { o as Et, r as Tt, w as Wt, e as We, n as Vt, f as Ht } from "./masters-5752c805.js";
5
- import { useState as xe, useCallback as Ve, useMemo as Se, Component as Gt, createElement as ze, PureComponent as vt } from "react";
4
+ import { o as Et, r as Tt, w as Wt, e as Ve, n as Vt, f as Ht } from "./masters-a0c5967c.js";
5
+ import { useState as xe, useCallback as be, useMemo as Se, Component as Gt, createElement as ze, PureComponent as vt } from "react";
6
6
  import { QuestionType as q, QuestionStatus as we, QuestionImages as ue, PickHistoryStatus as Ne } from "@streamlayer/sdk-web-types";
7
7
  import { o as Nt, i as _t, r as Zt, a as Jt, n as Kt } from "./common-2d2a3ba3.js";
8
8
  import { CountdownCircleTimer as Xt } from "react-countdown-circle-timer";
9
- import { E as de } from "./index-0d23b24e.js";
9
+ import { E as he } from "./index-0d23b24e.js";
10
10
  import "@streamlayer/sdk-web-interfaces";
11
11
  import "@streamlayer/sdk-web-notifications";
12
12
  import "./es/useStreamLayerApp.js";
@@ -39,10 +39,10 @@ const er = () => Q, tr = () => Q, rr = /* @__PURE__ */ g("div")({
39
39
  const c = i ? Et[i] : { label: a, iconName: void 0 };
40
40
  return /* @__PURE__ */ v(rr, { children: [
41
41
  /* @__PURE__ */ v(ir, { children: [
42
- (c == null ? void 0 : c.iconName) && /* @__PURE__ */ p(nr, { name: c.iconName }),
43
- (c == null ? void 0 : c.label) && /* @__PURE__ */ p(sr, { children: c.label })
42
+ (c == null ? void 0 : c.iconName) && /* @__PURE__ */ h(nr, { name: c.iconName }),
43
+ (c == null ? void 0 : c.label) && /* @__PURE__ */ h(sr, { children: c.label })
44
44
  ] }),
45
- /* @__PURE__ */ p(or, { onClick: n, children: /* @__PURE__ */ p(ar, { name: "icon-cross" }) })
45
+ /* @__PURE__ */ h(or, { onClick: n, children: /* @__PURE__ */ h(ar, { name: "icon-cross" }) })
46
46
  ] });
47
47
  };
48
48
  const lr = /* @__PURE__ */ g("div")({
@@ -58,8 +58,8 @@ const lr = /* @__PURE__ */ g("div")({
58
58
  class: "i1whkbqh",
59
59
  propsAsIs: !1
60
60
  }), ot = ({ indicator: i, title: n }) => /* @__PURE__ */ v(lr, { children: [
61
- /* @__PURE__ */ p(cr, { children: n }),
62
- /* @__PURE__ */ p(ur, { children: i })
61
+ /* @__PURE__ */ h(cr, { children: n }),
62
+ /* @__PURE__ */ h(ur, { children: i })
63
63
  ] });
64
64
  const dr = /* @__PURE__ */ g("div")({
65
65
  name: "i",
@@ -74,8 +74,8 @@ const dr = /* @__PURE__ */ g("div")({
74
74
  class: "nwzed99",
75
75
  propsAsIs: !1
76
76
  }), _e = ({ indicator: i, title: n }) => /* @__PURE__ */ v(dr, { children: [
77
- /* @__PURE__ */ p(hr, { children: i }),
78
- /* @__PURE__ */ p(pr, { children: n })
77
+ /* @__PURE__ */ h(hr, { children: i }),
78
+ /* @__PURE__ */ h(pr, { children: n })
79
79
  ] });
80
80
  const fr = /* @__PURE__ */ g("div")({
81
81
  name: "o",
@@ -157,22 +157,22 @@ const fr = /* @__PURE__ */ g("div")({
157
157
  inTop: y,
158
158
  successRate: E
159
159
  }) => /* @__PURE__ */ v(fr, { children: [
160
- /* @__PURE__ */ p(mr, { children: /* @__PURE__ */ v(Ir, { children: [
160
+ /* @__PURE__ */ h(mr, { children: /* @__PURE__ */ v(Ir, { children: [
161
161
  /* @__PURE__ */ v(Dr, { children: [
162
- i && /* @__PURE__ */ p(yr, { alt: "avatar", src: i }),
163
- !i && /* @__PURE__ */ p(zr, { children: Nt(n || "") })
162
+ i && /* @__PURE__ */ h(yr, { alt: "avatar", src: i }),
163
+ !i && /* @__PURE__ */ h(zr, { children: Nt(n || "") })
164
164
  ] }),
165
165
  /* @__PURE__ */ v(xr, { children: [
166
- /* @__PURE__ */ p(wr, { children: n }),
166
+ /* @__PURE__ */ h(wr, { children: n }),
167
167
  /* @__PURE__ */ v(Mr, { children: [
168
168
  /* @__PURE__ */ v(Er, { children: [
169
- /* @__PURE__ */ p(Ar, { alt: "rank-icon", src: br }),
169
+ /* @__PURE__ */ h(Ar, { alt: "rank-icon", src: br }),
170
170
  /* @__PURE__ */ v(Tr, { children: [
171
171
  _t(a),
172
- /* @__PURE__ */ p(vr, { children: "PTS" })
172
+ /* @__PURE__ */ h(vr, { children: "PTS" })
173
173
  ] })
174
174
  ] }),
175
- /* @__PURE__ */ p(Nr, {}),
175
+ /* @__PURE__ */ h(Nr, {}),
176
176
  /* @__PURE__ */ v("div", { children: [
177
177
  "TOP ",
178
178
  y || 0,
@@ -183,22 +183,39 @@ const fr = /* @__PURE__ */ g("div")({
183
183
  ] }) }),
184
184
  /* @__PURE__ */ v(gr, { children: [
185
185
  /* @__PURE__ */ v(_r, { children: [
186
- /* @__PURE__ */ p(ot, { indicator: c || 0, title: "Friends rank" }),
187
- /* @__PURE__ */ p(ot, { indicator: u || 0, title: "Global rank" })
186
+ /* @__PURE__ */ h(ot, { indicator: c || 0, title: "Friends rank" }),
187
+ /* @__PURE__ */ h(ot, { indicator: u || 0, title: "Global rank" })
188
188
  ] }),
189
189
  /* @__PURE__ */ v(Sr, { children: [
190
- /* @__PURE__ */ p(_e, { indicator: I || 0, title: "Win streak" }),
191
- /* @__PURE__ */ p(_e, { indicator: m || 0, title: "Correct" }),
192
- /* @__PURE__ */ p(_e, { indicator: o || 0, title: "Incorrect" }),
193
- /* @__PURE__ */ p(_e, { indicator: `${E || 0}%`, title: "Succ. rate" })
190
+ /* @__PURE__ */ h(_e, { indicator: I || 0, title: "Win streak" }),
191
+ /* @__PURE__ */ h(_e, { indicator: m || 0, title: "Correct" }),
192
+ /* @__PURE__ */ h(_e, { indicator: o || 0, title: "Incorrect" }),
193
+ /* @__PURE__ */ h(_e, { indicator: `${E || 0}%`, title: "Succ. rate" })
194
194
  ] })
195
195
  ] })
196
196
  ] });
197
- const Or = () => Q, Cr = /* @__PURE__ */ g("div")({
197
+ const Or = /* @__PURE__ */ g("div")({
198
+ name: "i",
199
+ class: "i1mbhc7z",
200
+ propsAsIs: !1
201
+ }), Lr = /* @__PURE__ */ g("div")({
202
+ name: "n",
203
+ class: "n1f9yefw",
204
+ propsAsIs: !1
205
+ }), kr = /* @__PURE__ */ g("div")({
206
+ name: "o",
207
+ class: "o1n7beii",
208
+ propsAsIs: !1
209
+ }), Br = ({ title: i, description: n }) => /* @__PURE__ */ v(Or, { children: [
210
+ /* @__PURE__ */ h(Q, { name: "icon-check-circle" }),
211
+ /* @__PURE__ */ h(Lr, { children: i }),
212
+ /* @__PURE__ */ h(kr, { children: n })
213
+ ] });
214
+ const Cr = () => Q, Rr = /* @__PURE__ */ g("div")({
198
215
  name: "c",
199
216
  class: "ciyeb68",
200
217
  propsAsIs: !1
201
- }), Lr = /* @__PURE__ */ g(Or())({
218
+ }), Ur = /* @__PURE__ */ g(Cr())({
202
219
  name: "n",
203
220
  class: "nfic4xc",
204
221
  propsAsIs: !0
@@ -210,19 +227,19 @@ const Or = () => Q, Cr = /* @__PURE__ */ g("div")({
210
227
  name: "p",
211
228
  class: "p132yxcv",
212
229
  propsAsIs: !1
213
- }), kr = /* @__PURE__ */ g("span")({
230
+ }), jr = /* @__PURE__ */ g("span")({
214
231
  name: "l",
215
232
  class: "l4a8aw",
216
233
  propsAsIs: !1
217
- }), je = /* @__PURE__ */ g("span")({
234
+ }), Fe = /* @__PURE__ */ g("span")({
218
235
  name: "g",
219
236
  class: "gzdx7pk",
220
237
  propsAsIs: !1
221
- }), Br = /* @__PURE__ */ g("div")({
238
+ }), Fr = /* @__PURE__ */ g("div")({
222
239
  name: "s",
223
240
  class: "smnc4zm",
224
241
  propsAsIs: !1
225
- }), Rr = ({
242
+ }), $r = ({
226
243
  feedbackMessages: i,
227
244
  questionVotedCorrectly: n,
228
245
  questionVoted: a,
@@ -234,61 +251,61 @@ const Or = () => Q, Cr = /* @__PURE__ */ g("div")({
234
251
  if (!m && I !== we.RESOLVED)
235
252
  return null;
236
253
  const o = c === q.PREDICTION && !u, y = n ? "correct" : "incorrect", E = n ? i.correctFeedback : i.incorrectFeedback;
237
- return /* @__PURE__ */ v(Cr, { "data-isPrediction": o, children: [
238
- I === we.RESOLVED && c === q.TRIVIA && !a && /* @__PURE__ */ v(ye, { children: [
239
- /* @__PURE__ */ p(at, { children: /* @__PURE__ */ p(Q, { name: "questionExpired" }) }),
254
+ return /* @__PURE__ */ v(Rr, { "data-isPrediction": o, children: [
255
+ I === we.RESOLVED && c === q.TRIVIA && !a && /* @__PURE__ */ v(de, { children: [
256
+ /* @__PURE__ */ h(at, { children: /* @__PURE__ */ h(Q, { name: "questionExpired" }) }),
240
257
  /* @__PURE__ */ v("div", { children: [
241
- /* @__PURE__ */ p(lt, { children: /* @__PURE__ */ p(je, { children: "Question Expired" }) }),
242
- /* @__PURE__ */ p(Br, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
258
+ /* @__PURE__ */ h(lt, { children: /* @__PURE__ */ h(Fe, { children: "Question Expired" }) }),
259
+ /* @__PURE__ */ h(Fr, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
243
260
  ] })
244
261
  ] }),
245
- m && o && /* @__PURE__ */ v(ye, { children: [
246
- /* @__PURE__ */ p(Lr, { name: "icon-prediction" }),
247
- /* @__PURE__ */ p(je, { children: "Stay tuned to see if your prediction was correct." })
262
+ m && o && /* @__PURE__ */ v(de, { children: [
263
+ /* @__PURE__ */ h(Ur, { name: "icon-prediction" }),
264
+ /* @__PURE__ */ h(Fe, { children: "Stay tuned to see if your prediction was correct." })
248
265
  ] }),
249
- m && u && /* @__PURE__ */ v(ye, { children: [
250
- /* @__PURE__ */ p(at, { "data-feedbackType": y, children: /* @__PURE__ */ p(Q, { name: y }) }),
251
- /* @__PURE__ */ p("div", { children: /* @__PURE__ */ v(lt, { children: [
252
- /* @__PURE__ */ p(kr, { "data-feedbackType": y, children: E == null ? void 0 : E.title }),
253
- /* @__PURE__ */ p(je, { children: E == null ? void 0 : E.description })
266
+ m && u && /* @__PURE__ */ v(de, { children: [
267
+ /* @__PURE__ */ h(at, { "data-feedbackType": y, children: /* @__PURE__ */ h(Q, { name: y }) }),
268
+ /* @__PURE__ */ h("div", { children: /* @__PURE__ */ v(lt, { children: [
269
+ /* @__PURE__ */ h(jr, { "data-feedbackType": y, children: E == null ? void 0 : E.title }),
270
+ /* @__PURE__ */ h(Fe, { children: E == null ? void 0 : E.description })
254
271
  ] }) })
255
272
  ] })
256
273
  ] });
257
274
  };
258
- const Ur = /* @__PURE__ */ g("div")({
275
+ const Qr = /* @__PURE__ */ g("div")({
259
276
  name: "o",
260
277
  class: "olc1eph",
261
278
  propsAsIs: !1
262
- }), jr = /* @__PURE__ */ g("div")({
279
+ }), Pr = /* @__PURE__ */ g("div")({
263
280
  name: "n",
264
281
  class: "n1yoh29a",
265
282
  propsAsIs: !1
266
- }), Fr = /* @__PURE__ */ g("div")({
267
- name: "p",
268
- class: "pjkr5mb",
283
+ }), qr = /* @__PURE__ */ g("div")({
284
+ name: "e",
285
+ class: "ejkr5mb",
269
286
  propsAsIs: !1
270
- }), $r = /* @__PURE__ */ g("div")({
271
- name: "r",
272
- class: "r82wnnx",
287
+ }), Yr = /* @__PURE__ */ g("div")({
288
+ name: "p",
289
+ class: "p82wnnx",
273
290
  propsAsIs: !1
274
291
  });
275
- const Qr = () => Dt, Pr = () => Dt, qr = () => Q, Yr = /* @__PURE__ */ g("button")({
292
+ const Wr = () => Dt, Vr = () => Dt, Hr = () => Q, Gr = /* @__PURE__ */ g("button")({
276
293
  name: "c",
277
294
  class: "cpm4u8k",
278
295
  propsAsIs: !1
279
- }), Wr = /* @__PURE__ */ g("div")({
296
+ }), Zr = /* @__PURE__ */ g("div")({
280
297
  name: "l",
281
298
  class: "lwfomc3",
282
299
  propsAsIs: !1
283
- }), Vr = /* @__PURE__ */ g("span")({
300
+ }), Jr = /* @__PURE__ */ g("span")({
284
301
  name: "d",
285
302
  class: "dmltvg2",
286
303
  propsAsIs: !1
287
- }), Hr = /* @__PURE__ */ g("div")({
304
+ }), Kr = /* @__PURE__ */ g("div")({
288
305
  name: "s",
289
306
  class: "stfjpqz",
290
307
  propsAsIs: !1
291
- }), Gr = /* @__PURE__ */ g("div")({
308
+ }), Xr = /* @__PURE__ */ g("div")({
292
309
  name: "p",
293
310
  class: "p198m24r",
294
311
  propsAsIs: !1
@@ -296,37 +313,37 @@ const Qr = () => Dt, Pr = () => Dt, qr = () => Q, Yr = /* @__PURE__ */ g("button
296
313
  name: "r",
297
314
  class: "rbq5eu7",
298
315
  propsAsIs: !1
299
- }), Zr = /* @__PURE__ */ g(Qr())({
316
+ }), ei = /* @__PURE__ */ g(Wr())({
300
317
  name: "g",
301
318
  class: "g1iv6oeb",
302
319
  propsAsIs: !0
303
- }), Jr = /* @__PURE__ */ g(Pr())({
320
+ }), ti = /* @__PURE__ */ g(Vr())({
304
321
  name: "h",
305
322
  class: "h1qtxlqc",
306
323
  propsAsIs: !0
307
- }), Kr = /* @__PURE__ */ g("span")({
324
+ }), ri = /* @__PURE__ */ g("span")({
308
325
  name: "u",
309
326
  class: "udm736q",
310
327
  propsAsIs: !1
311
- }), Xr = /* @__PURE__ */ g("span")({
328
+ }), ii = /* @__PURE__ */ g("span")({
312
329
  name: "b",
313
330
  class: "b1da34tx",
314
331
  propsAsIs: !1
315
- }), ei = /* @__PURE__ */ g("span")({
332
+ }), ni = /* @__PURE__ */ g("span")({
316
333
  name: "x",
317
334
  class: "x1dqwq83",
318
335
  propsAsIs: !1
319
- }), ti = /* @__PURE__ */ g(qr())({
336
+ }), si = /* @__PURE__ */ g(Hr())({
320
337
  name: "v",
321
338
  class: "v10s9my2",
322
339
  propsAsIs: !0
323
340
  }), ct = {
324
- [ue.CENTERED]: (i) => /* @__PURE__ */ p(Zr, { alt: "option-icon", src: i }),
325
- [ue.TRANSPARENT]: (i) => /* @__PURE__ */ p(Hr, { children: /* @__PURE__ */ p(Gr, { style: { backgroundImage: `url(${i})` } }) }),
326
- [ue.ROUNDED]: (i) => /* @__PURE__ */ p(Jr, { alt: "option-icon", src: i }),
341
+ [ue.CENTERED]: (i) => /* @__PURE__ */ h(ei, { alt: "option-icon", src: i }),
342
+ [ue.TRANSPARENT]: (i) => /* @__PURE__ */ h(Kr, { children: /* @__PURE__ */ h(Xr, { style: { backgroundImage: `url(${i})` } }) }),
343
+ [ue.ROUNDED]: (i) => /* @__PURE__ */ h(ti, { alt: "option-icon", src: i }),
327
344
  [ue.NONE]: () => null,
328
345
  [ue.UNSET]: () => null
329
- }, ri = ({ questionType: i, hasCorrectAnswer: n, correct: a, youVoted: c, questionVoted: u }) => {
346
+ }, oi = ({ questionType: i, hasCorrectAnswer: n, correct: a, youVoted: c, questionVoted: u }) => {
330
347
  if (i === q.POLL && c)
331
348
  return "correct";
332
349
  if (i === q.PREDICTION) {
@@ -336,13 +353,13 @@ const Qr = () => Dt, Pr = () => Dt, qr = () => Q, Yr = /* @__PURE__ */ g("button
336
353
  return "correct";
337
354
  }
338
355
  return i === q.TRIVIA && u ? c ? a ? "correct" : "incorrect" : a ? "correct" : "unset" : "unset";
339
- }, ii = ({
356
+ }, ai = ({
340
357
  questionType: i,
341
358
  questionVoted: n,
342
359
  correct: a,
343
360
  hasCorrectAnswer: c,
344
361
  questionStatus: u
345
- }) => i === q.TRIVIA ? n && a : i === q.PREDICTION ? n && a && c || u === we.RESOLVED && a : !1, ni = (i) => {
362
+ }) => i === q.TRIVIA ? n && a : i === q.PREDICTION ? n && a && c || u === we.RESOLVED && a : !1, li = (i) => {
346
363
  var n;
347
364
  const {
348
365
  // option props
@@ -356,29 +373,29 @@ const Qr = () => Dt, Pr = () => Dt, qr = () => Q, Yr = /* @__PURE__ */ g("button
356
373
  questionVoted: y,
357
374
  // ToDo: Figure out why imageMode is not in the response, and delete default value
358
375
  imageMode: E = ue.ROUNDED,
359
- answerTimeExpired: _,
376
+ answerTimeExpired: N,
360
377
  questionStatus: S,
361
- isLoading: x,
378
+ isLoading: w,
362
379
  questionType: T,
363
- correct: N,
364
- hasCorrectAnswer: h
365
- } = i, M = ri(i), w = ii({ questionType: T, questionVoted: y, correct: N, hasCorrectAnswer: h, questionStatus: S }), A = y || S === we.RESOLVED && T === q.PREDICTION;
380
+ correct: _,
381
+ hasCorrectAnswer: p
382
+ } = i, M = oi(i), x = ai({ questionType: T, questionVoted: y, correct: _, hasCorrectAnswer: p, questionStatus: S }), A = y || S === we.RESOLVED && T === q.PREDICTION;
366
383
  return /* @__PURE__ */ v(
367
- Yr,
384
+ Gr,
368
385
  {
369
386
  value: a,
370
387
  "data-selected": o,
371
388
  "data-answerState": M,
372
- disabled: y || x || _,
389
+ disabled: y || w || N,
373
390
  onClick: m,
374
391
  children: [
375
- A && /* @__PURE__ */ p(Wr, { "data-answerState": M, style: { width: `${I}%` } }),
376
- /* @__PURE__ */ v(Vr, { children: [
392
+ A && /* @__PURE__ */ h(Zr, { "data-answerState": M, style: { width: `${I}%` } }),
393
+ /* @__PURE__ */ v(Jr, { children: [
377
394
  c && ((n = ct[E]) == null ? void 0 : n.call(ct, c)),
378
- /* @__PURE__ */ p(Kr, { children: u }),
379
- A && /* @__PURE__ */ v(Xr, { children: [
380
- w && /* @__PURE__ */ p(ti, { name: "selected" }),
381
- /* @__PURE__ */ v(ei, { children: [
395
+ /* @__PURE__ */ h(ri, { children: u }),
396
+ A && /* @__PURE__ */ v(ii, { children: [
397
+ x && /* @__PURE__ */ h(si, { name: "selected" }),
398
+ /* @__PURE__ */ v(ni, { children: [
382
399
  I,
383
400
  "%"
384
401
  ] })
@@ -388,29 +405,29 @@ const Qr = () => Dt, Pr = () => Dt, qr = () => Q, Yr = /* @__PURE__ */ g("button
388
405
  }
389
406
  );
390
407
  };
391
- const si = [de.PRIMARY_GREEN1, de.SECONDARY_RED1, de.SECONDARY_RED1], oi = [10, 10, 0], ai = /* @__PURE__ */ g("div")({
408
+ const ci = [he.PRIMARY_GREEN1, he.SECONDARY_RED1, he.SECONDARY_RED1], ui = [10, 10, 0], di = /* @__PURE__ */ g("div")({
392
409
  name: "A",
393
410
  class: "a1f928zy",
394
411
  propsAsIs: !1
395
- }), li = de.SECONDARY_GREEN6, ut = de.SECONDARY_RED3, ci = de.NEUTRALS_GRAY3, ui = ({
412
+ }), hi = he.SECONDARY_GREEN6, ut = he.SECONDARY_RED3, pi = he.NEUTRALS_GRAY3, fi = ({
396
413
  isPlaying: i = !0,
397
414
  duration: n = 30,
398
415
  onTimerExpired: a
399
416
  }) => {
400
- const [c, u] = xe(n > 10 ? li : ut), I = ({
417
+ const [c, u] = xe(n > 10 ? hi : ut), I = ({
401
418
  remainingTime: y
402
- }) => /* @__PURE__ */ p(ai, {
419
+ }) => /* @__PURE__ */ h(di, {
403
420
  children: y
404
- }), m = Ve(() => {
405
- a == null || a(), u(ci);
406
- }, [a, u]), o = Ve((y) => {
421
+ }), m = be(() => {
422
+ a == null || a(), u(pi);
423
+ }, [a, u]), o = be((y) => {
407
424
  y === 10 && u(ut);
408
425
  }, [u]);
409
- return /* @__PURE__ */ p(Xt, {
426
+ return /* @__PURE__ */ h(Xt, {
410
427
  isPlaying: i,
411
428
  duration: n,
412
- colors: si,
413
- colorsTime: oi,
429
+ colors: ci,
430
+ colorsTime: ui,
414
431
  size: 32,
415
432
  strokeWidth: 2,
416
433
  trailStrokeWidth: 2,
@@ -420,116 +437,126 @@ const si = [de.PRIMARY_GREEN1, de.SECONDARY_RED1, de.SECONDARY_RED1], oi = [10,
420
437
  children: I
421
438
  });
422
439
  };
423
- const di = () => Q, hi = /* @__PURE__ */ g("div")({
440
+ const mi = () => Q, gi = /* @__PURE__ */ g("div")({
424
441
  name: "a",
425
442
  class: "a1r7f3z4",
426
443
  propsAsIs: !1
427
- }), pi = /* @__PURE__ */ g("div")({
444
+ }), Ii = /* @__PURE__ */ g("div")({
428
445
  name: "s",
429
446
  class: "sblndl",
430
447
  propsAsIs: !1
431
- }), fi = /* @__PURE__ */ g("div")({
448
+ }), yi = /* @__PURE__ */ g("div")({
432
449
  name: "l",
433
450
  class: "l7ka1tv",
434
451
  propsAsIs: !1
435
- }), mi = /* @__PURE__ */ g(di())({
452
+ }), xi = /* @__PURE__ */ g(mi())({
436
453
  name: "p",
437
454
  class: "p1edlxt3",
438
455
  propsAsIs: !0
439
- }), gi = /* @__PURE__ */ g("div")({
456
+ }), wi = /* @__PURE__ */ g("div")({
440
457
  name: "g",
441
458
  class: "ghm08u2",
442
459
  propsAsIs: !1
443
- }), Ii = /* @__PURE__ */ g("span")({
460
+ }), Mi = /* @__PURE__ */ g("span")({
444
461
  name: "c",
445
462
  class: "c12nsh46",
446
463
  propsAsIs: !1
447
- }), yi = /* @__PURE__ */ g("span")({
464
+ }), Ai = /* @__PURE__ */ g("span")({
448
465
  name: "d",
449
466
  class: "dlr9eoc",
450
467
  propsAsIs: !1
451
- }), xi = ({ title: i, points: n, isPlayingTimer: a, isTimer: c, onTimerExpired: u }) => /* @__PURE__ */ v(hi, { children: [
452
- /* @__PURE__ */ v(pi, { children: [
453
- i && /* @__PURE__ */ p(fi, { children: i }),
454
- n !== void 0 && /* @__PURE__ */ v(ye, { children: [
455
- /* @__PURE__ */ p(mi, { name: "icon-trophy" }),
456
- /* @__PURE__ */ v(gi, { children: [
457
- /* @__PURE__ */ p(Ii, { children: n }),
458
- /* @__PURE__ */ p(yi, { children: "PTS" })
468
+ }), Ei = ({ title: i, points: n, isPlayingTimer: a, isTimer: c, onTimerExpired: u }) => /* @__PURE__ */ v(gi, { children: [
469
+ /* @__PURE__ */ v(Ii, { children: [
470
+ i && /* @__PURE__ */ h(yi, { children: i }),
471
+ n !== void 0 && /* @__PURE__ */ v(de, { children: [
472
+ /* @__PURE__ */ h(xi, { name: "icon-trophy" }),
473
+ /* @__PURE__ */ v(wi, { children: [
474
+ /* @__PURE__ */ h(Mi, { children: n }),
475
+ /* @__PURE__ */ h(Ai, { children: "PTS" })
459
476
  ] })
460
477
  ] })
461
478
  ] }),
462
- c && /* @__PURE__ */ p(ui, { isPlaying: a, onTimerExpired: u })
463
- ] }), wi = ({ openedQuestion: i, vote: n }) => {
464
- var a;
465
- const c = i.subject, u = i.type, I = (a = i.options) == null ? void 0 : a.options, [m, o] = xe(!1), [y, E] = xe(!1), [_, S] = xe(""), x = i == null ? void 0 : i.id, T = Ve(
466
- async (A) => {
467
- if (x) {
468
- const z = A.currentTarget.value;
469
- S(z), E(!0), await n(x, z), E(!1);
479
+ c && /* @__PURE__ */ h(fi, { isPlaying: a, onTimerExpired: u })
480
+ ] }), Ti = ({ openedQuestion: i, vote: n, close: a }) => {
481
+ var c;
482
+ const u = i.subject, I = i.type, m = (c = i.options) == null ? void 0 : c.options, [o, y] = xe(!1), [E, N] = xe(!1), [S, w] = xe(""), T = i == null ? void 0 : i.id, _ = be(
483
+ async (b) => {
484
+ if (T) {
485
+ const D = b.currentTarget.value;
486
+ w(D), N(!0), await n(T, D), N(!1);
470
487
  }
471
488
  },
472
- [x, S, n]
473
- ), N = Se(
474
- () => i == null ? void 0 : i.answers.find((A) => A.youVoted === !0),
489
+ [T, w, n]
490
+ ), p = be(() => {
491
+ y(!0), setTimeout(a, 3e3);
492
+ }, [a]), M = Se(
493
+ () => i == null ? void 0 : i.answers.find((b) => b.youVoted === !0),
475
494
  [i]
476
- ), h = Se(
477
- () => !!(i != null && i.answers.find((A) => A.correct === !0)),
495
+ ), x = Se(
496
+ () => !!(i != null && i.answers.find((b) => b.correct === !0)),
478
497
  [i]
479
- ), M = Se(() => i ? i.answers.map((A) => ({
480
- ...A,
481
- questionVoted: !!N,
482
- youSelected: _ === A.id,
483
- isLoading: y,
484
- hasCorrectAnswer: h,
498
+ ), A = Se(() => i ? i.answers.map((b) => ({
499
+ ...b,
500
+ questionVoted: !!M,
501
+ youSelected: S === b.id,
502
+ isLoading: E,
503
+ hasCorrectAnswer: x,
485
504
  questionType: i.type,
486
- answerTimeExpired: m,
505
+ answerTimeExpired: o,
487
506
  questionStatus: i.status,
488
507
  // ToDo: Figure out why imageMode is not in the response
489
- onVote: T
490
- })) : [], [h, m, y, i, N, T, _]), w = I && (I.case === "trivia" || I.case === "prediction") ? I.value : void 0;
491
- return /* @__PURE__ */ p(Tt, { "data-question-header": "true", children: /* @__PURE__ */ p(Ur, { children: /* @__PURE__ */ v(jr, { children: [
492
- w && /* @__PURE__ */ p(
493
- Rr,
508
+ onVote: _
509
+ })) : [], [x, o, E, i, M, _, S]), z = m && (m.case === "trivia" || m.case === "prediction") ? m.value : void 0;
510
+ return /* @__PURE__ */ h(Tt, { "data-question-header": "true", children: /* @__PURE__ */ h(Qr, { children: /* @__PURE__ */ v(Pr, { children: [
511
+ z && /* @__PURE__ */ h(
512
+ $r,
494
513
  {
495
- feedbackMessages: w,
496
- questionVoted: !!N,
497
- questionVotedCorrectly: N == null ? void 0 : N.correct,
498
- questionType: u,
499
- hasCorrectAnswer: h,
514
+ feedbackMessages: z,
515
+ questionVoted: !!M,
516
+ questionVotedCorrectly: M == null ? void 0 : M.correct,
517
+ questionType: I,
518
+ hasCorrectAnswer: x,
500
519
  questionStatus: i.status
501
520
  }
502
521
  ),
503
- /* @__PURE__ */ p(
504
- xi,
522
+ /* @__PURE__ */ h(
523
+ Ei,
505
524
  {
506
- title: m ? "Expired" : "To win",
507
- points: m ? void 0 : 100,
508
- onTimerExpired: () => o(!0),
525
+ title: o ? "Time expired" : "To win",
526
+ points: o ? void 0 : 100,
527
+ onTimerExpired: p,
509
528
  isTimer: !0
510
529
  }
511
530
  ),
512
- /* @__PURE__ */ p(Fr, { children: c }),
513
- /* @__PURE__ */ p($r, { children: M.map((A) => /* @__PURE__ */ p(ni, { ...A }, A.id)) })
531
+ o ? /* @__PURE__ */ h(
532
+ Br,
533
+ {
534
+ title: "More to come...",
535
+ description: "Watch for additional enhanced stream interactive experience."
536
+ }
537
+ ) : /* @__PURE__ */ v(de, { children: [
538
+ /* @__PURE__ */ h(qr, { children: u }),
539
+ /* @__PURE__ */ h(Yr, { children: A.map((b) => /* @__PURE__ */ h(li, { ...b }, b.id)) })
540
+ ] })
514
541
  ] }) }) });
515
542
  };
516
- const Mi = /* @__PURE__ */ g("div")({
543
+ const vi = /* @__PURE__ */ g("div")({
517
544
  name: "e",
518
545
  class: "e1eio0mt",
519
546
  propsAsIs: !1
520
- }), Ai = /* @__PURE__ */ g("div")({
547
+ }), Ni = /* @__PURE__ */ g("div")({
521
548
  name: "i",
522
549
  class: "iigl87b",
523
550
  propsAsIs: !1
524
- }), Ei = /* @__PURE__ */ g("h3")({
551
+ }), _i = /* @__PURE__ */ g("h3")({
525
552
  name: "n",
526
553
  class: "n1o2cwub",
527
554
  propsAsIs: !1
528
- }), Ti = /* @__PURE__ */ g("div")({
555
+ }), Si = /* @__PURE__ */ g("div")({
529
556
  name: "r",
530
557
  class: "r3uxe45",
531
558
  propsAsIs: !1
532
- }), vi = /* @__PURE__ */ g("div")({
559
+ }), zi = /* @__PURE__ */ g("div")({
533
560
  name: "l",
534
561
  class: "lrqius",
535
562
  propsAsIs: !1
@@ -545,59 +572,61 @@ const Mi = /* @__PURE__ */ g("div")({
545
572
  }
546
573
  return null;
547
574
  }, [i]);
548
- return /* @__PURE__ */ v(Mi, { children: [
549
- c && /* @__PURE__ */ v(vi, { children: [
575
+ return /* @__PURE__ */ v(vi, { children: [
576
+ c && /* @__PURE__ */ v(zi, { children: [
550
577
  c.date,
551
578
  " · ",
552
579
  c.time
553
580
  ] }),
554
- (a == null ? void 0 : a.video) && /* @__PURE__ */ p(Wt, { source: a.video.url, poster: a.video.thumbnailUrl }),
555
- /* @__PURE__ */ v(Ai, { children: [
556
- /* @__PURE__ */ p(Ei, { children: (a == null ? void 0 : a.heading) || n }),
557
- /* @__PURE__ */ p(Ti, { children: a == null ? void 0 : a.body })
581
+ (a == null ? void 0 : a.video) && /* @__PURE__ */ h(Wt, { source: a.video.url, poster: a.video.thumbnailUrl }),
582
+ /* @__PURE__ */ v(Ni, { children: [
583
+ /* @__PURE__ */ h(_i, { children: (a == null ? void 0 : a.heading) || n }),
584
+ /* @__PURE__ */ h(Si, { children: a == null ? void 0 : a.body })
558
585
  ] })
559
586
  ] });
560
587
  };
561
- const Ni = /* @__PURE__ */ g("div")({
588
+ const Di = /* @__PURE__ */ g("div")({
562
589
  name: "o",
563
590
  class: "o18unvw4",
564
591
  propsAsIs: !1
565
- }), _i = /* @__PURE__ */ g("a")({
592
+ }), bi = /* @__PURE__ */ g("a")({
566
593
  name: "n",
567
594
  class: "ns0uvk8",
568
595
  propsAsIs: !1
569
- }), Si = ({ instantView: i, ...n }) => /* @__PURE__ */ v(Ni, { children: [
570
- /* @__PURE__ */ p(bt, { instantView: i, ...n }),
571
- (i == null ? void 0 : i.webLink) && /* @__PURE__ */ v(_i, { href: i == null ? void 0 : i.webLink.url, target: "_blank", children: [
596
+ }), Oi = ({ instantView: i, ...n }) => /* @__PURE__ */ v(Di, { children: [
597
+ /* @__PURE__ */ h(bt, { instantView: i, ...n }),
598
+ (i == null ? void 0 : i.webLink) && /* @__PURE__ */ v(bi, { href: i == null ? void 0 : i.webLink.url, target: "_blank", children: [
572
599
  "Explore more of the Masters History",
573
- /* @__PURE__ */ p(Q, { name: "icon-external-link" })
600
+ /* @__PURE__ */ h(Q, { name: "icon-external-link" })
574
601
  ] })
575
602
  ] });
576
- const zi = /* @__PURE__ */ g("div")({
603
+ const Li = /* @__PURE__ */ g("div")({
577
604
  name: "d",
578
605
  class: "dk8r1eq",
579
606
  propsAsIs: !1
580
- }), Di = ({
607
+ }), ki = ({
581
608
  openedQuestion: i
582
609
  }) => {
583
610
  var n;
584
- return ((n = i == null ? void 0 : i.attributes) == null ? void 0 : n.attributes.case) === "insight" ? /* @__PURE__ */ p(Si, {
611
+ return ((n = i == null ? void 0 : i.attributes) == null ? void 0 : n.attributes.case) === "insight" ? /* @__PURE__ */ h(Oi, {
585
612
  created: i.attributes.created,
586
613
  ...i.attributes.attributes.value
587
614
  }) : null;
588
- }, bi = ({
615
+ }, Bi = ({
589
616
  extendedQuestion: i,
590
- vote: n
617
+ vote: n,
618
+ close: a
591
619
  }) => {
592
620
  const {
593
- loading: a,
594
- data: c
621
+ loading: c,
622
+ data: u
595
623
  } = i;
596
- return !a && c ? /* @__PURE__ */ p(wi, {
624
+ return !c && u ? /* @__PURE__ */ h(Ti, {
597
625
  vote: n,
598
- openedQuestion: c
626
+ close: a,
627
+ openedQuestion: u
599
628
  }) : null;
600
- }, Oi = ({
629
+ }, Ci = ({
601
630
  gamification: i
602
631
  }) => {
603
632
  var n;
@@ -605,42 +634,43 @@ const zi = /* @__PURE__ */ g("div")({
605
634
  if (!a)
606
635
  return null;
607
636
  const u = a.type;
608
- return /* @__PURE__ */ v(zi, {
609
- children: [/* @__PURE__ */ p(St, {
637
+ return /* @__PURE__ */ v(Li, {
638
+ children: [/* @__PURE__ */ h(St, {
610
639
  close: i.closeQuestion,
611
640
  type: ((n = a.attributes) == null ? void 0 : n.type) || q.UNSET
612
- }), u === "question" && /* @__PURE__ */ p(bi, {
641
+ }), u === "question" && /* @__PURE__ */ h(Bi, {
613
642
  vote: i.submitAnswer,
643
+ close: i.closeQuestion,
614
644
  extendedQuestion: c
615
- }), u !== "question" && /* @__PURE__ */ p(Di, {
645
+ }), u !== "question" && /* @__PURE__ */ h(ki, {
616
646
  openedQuestion: a
617
647
  })]
618
648
  });
619
649
  };
620
- const Ci = /* @__PURE__ */ g("div")({
650
+ const Ri = /* @__PURE__ */ g("div")({
621
651
  name: "t",
622
652
  class: "tcim9sm",
623
653
  propsAsIs: !1
624
- }), Li = /* @__PURE__ */ g("div")({
654
+ }), Ui = /* @__PURE__ */ g("div")({
625
655
  name: "e",
626
656
  class: "e8wco6o",
627
657
  propsAsIs: !1
628
- }), ki = /* @__PURE__ */ g("button")({
658
+ }), ji = /* @__PURE__ */ g("button")({
629
659
  name: "n",
630
660
  class: "n1ardwzl",
631
661
  propsAsIs: !1
632
- }), Bi = /* @__PURE__ */ g("span")({
662
+ }), Fi = /* @__PURE__ */ g("span")({
633
663
  name: "i",
634
664
  class: "i1vk8ojx",
635
665
  propsAsIs: !1
636
666
  });
637
- var Ie = /* @__PURE__ */ ((i) => (i.HOME = "home", i.LEADERBOARD = "leaderboard", i))(Ie || {});
638
- const dt = ({ title: i, active: n, onClick: a }) => /* @__PURE__ */ p(ki, { onClick: a, "data-selected": n, children: /* @__PURE__ */ p(Bi, { children: i }) }), Ri = ({ activePage: i = "home", toggleActivePage: n }) => /* @__PURE__ */ p(Ci, { children: /* @__PURE__ */ v(Li, { "data-position": i === "home" ? "left" : "right", children: [
639
- /* @__PURE__ */ p(dt, { title: "Home", active: i === "home", onClick: () => n(
667
+ var ye = /* @__PURE__ */ ((i) => (i.HOME = "home", i.LEADERBOARD = "leaderboard", i))(ye || {});
668
+ const dt = ({ title: i, active: n, onClick: a }) => /* @__PURE__ */ h(ji, { onClick: a, "data-selected": n, children: /* @__PURE__ */ h(Fi, { children: i }) }), $i = ({ activePage: i = "home", toggleActivePage: n }) => /* @__PURE__ */ h(Ri, { children: /* @__PURE__ */ v(Ui, { "data-position": i === "home" ? "left" : "right", children: [
669
+ /* @__PURE__ */ h(dt, { title: "Home", active: i === "home", onClick: () => n(
640
670
  "home"
641
671
  /* HOME */
642
672
  ) }),
643
- /* @__PURE__ */ p(
673
+ /* @__PURE__ */ h(
644
674
  dt,
645
675
  {
646
676
  title: "Leader Board",
@@ -652,16 +682,16 @@ const dt = ({ title: i, active: n, onClick: a }) => /* @__PURE__ */ p(ki, { onCl
652
682
  }
653
683
  )
654
684
  ] }) });
655
- var Ot = {}, Ct = {}, be = {};
656
- be.byteLength = Fi;
657
- be.toByteArray = Qi;
658
- be.fromByteArray = Yi;
659
- var J = [], P = [], Ui = typeof Uint8Array < "u" ? Uint8Array : Array, Fe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
660
- for (var le = 0, ji = Fe.length; le < ji; ++le)
661
- J[le] = Fe[le], P[Fe.charCodeAt(le)] = le;
685
+ var Ot = {}, Lt = {}, Oe = {};
686
+ Oe.byteLength = qi;
687
+ Oe.toByteArray = Wi;
688
+ Oe.fromByteArray = Gi;
689
+ var J = [], P = [], Qi = typeof Uint8Array < "u" ? Uint8Array : Array, $e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
690
+ for (var le = 0, Pi = $e.length; le < Pi; ++le)
691
+ J[le] = $e[le], P[$e.charCodeAt(le)] = le;
662
692
  P["-".charCodeAt(0)] = 62;
663
693
  P["_".charCodeAt(0)] = 63;
664
- function Lt(i) {
694
+ function kt(i) {
665
695
  var n = i.length;
666
696
  if (n % 4 > 0)
667
697
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -670,30 +700,30 @@ function Lt(i) {
670
700
  var c = a === n ? 0 : 4 - a % 4;
671
701
  return [a, c];
672
702
  }
673
- function Fi(i) {
674
- var n = Lt(i), a = n[0], c = n[1];
703
+ function qi(i) {
704
+ var n = kt(i), a = n[0], c = n[1];
675
705
  return (a + c) * 3 / 4 - c;
676
706
  }
677
- function $i(i, n, a) {
707
+ function Yi(i, n, a) {
678
708
  return (n + a) * 3 / 4 - a;
679
709
  }
680
- function Qi(i) {
681
- var n, a = Lt(i), c = a[0], u = a[1], I = new Ui($i(i, c, u)), m = 0, o = u > 0 ? c - 4 : c, y;
710
+ function Wi(i) {
711
+ var n, a = kt(i), c = a[0], u = a[1], I = new Qi(Yi(i, c, u)), m = 0, o = u > 0 ? c - 4 : c, y;
682
712
  for (y = 0; y < o; y += 4)
683
713
  n = P[i.charCodeAt(y)] << 18 | P[i.charCodeAt(y + 1)] << 12 | P[i.charCodeAt(y + 2)] << 6 | P[i.charCodeAt(y + 3)], I[m++] = n >> 16 & 255, I[m++] = n >> 8 & 255, I[m++] = n & 255;
684
714
  return u === 2 && (n = P[i.charCodeAt(y)] << 2 | P[i.charCodeAt(y + 1)] >> 4, I[m++] = n & 255), u === 1 && (n = P[i.charCodeAt(y)] << 10 | P[i.charCodeAt(y + 1)] << 4 | P[i.charCodeAt(y + 2)] >> 2, I[m++] = n >> 8 & 255, I[m++] = n & 255), I;
685
715
  }
686
- function Pi(i) {
716
+ function Vi(i) {
687
717
  return J[i >> 18 & 63] + J[i >> 12 & 63] + J[i >> 6 & 63] + J[i & 63];
688
718
  }
689
- function qi(i, n, a) {
719
+ function Hi(i, n, a) {
690
720
  for (var c, u = [], I = n; I < a; I += 3)
691
- c = (i[I] << 16 & 16711680) + (i[I + 1] << 8 & 65280) + (i[I + 2] & 255), u.push(Pi(c));
721
+ c = (i[I] << 16 & 16711680) + (i[I + 1] << 8 & 65280) + (i[I + 2] & 255), u.push(Vi(c));
692
722
  return u.join("");
693
723
  }
694
- function Yi(i) {
724
+ function Gi(i) {
695
725
  for (var n, a = i.length, c = a % 3, u = [], I = 16383, m = 0, o = a - c; m < o; m += I)
696
- u.push(qi(i, m, m + I > o ? o : m + I));
726
+ u.push(Hi(i, m, m + I > o ? o : m + I));
697
727
  return c === 1 ? (n = i[a - 1], u.push(
698
728
  J[n >> 2] + J[n << 4 & 63] + "=="
699
729
  )) : c === 2 && (n = (i[a - 2] << 8) + i[a - 1], u.push(
@@ -703,10 +733,10 @@ function Yi(i) {
703
733
  var et = {};
704
734
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
705
735
  et.read = function(i, n, a, c, u) {
706
- var I, m, o = u * 8 - c - 1, y = (1 << o) - 1, E = y >> 1, _ = -7, S = a ? u - 1 : 0, x = a ? -1 : 1, T = i[n + S];
707
- for (S += x, I = T & (1 << -_) - 1, T >>= -_, _ += o; _ > 0; I = I * 256 + i[n + S], S += x, _ -= 8)
736
+ var I, m, o = u * 8 - c - 1, y = (1 << o) - 1, E = y >> 1, N = -7, S = a ? u - 1 : 0, w = a ? -1 : 1, T = i[n + S];
737
+ for (S += w, I = T & (1 << -N) - 1, T >>= -N, N += o; N > 0; I = I * 256 + i[n + S], S += w, N -= 8)
708
738
  ;
709
- for (m = I & (1 << -_) - 1, I >>= -_, _ += c; _ > 0; m = m * 256 + i[n + S], S += x, _ -= 8)
739
+ for (m = I & (1 << -N) - 1, I >>= -N, N += c; N > 0; m = m * 256 + i[n + S], S += w, N -= 8)
710
740
  ;
711
741
  if (I === 0)
712
742
  I = 1 - E;
@@ -718,12 +748,12 @@ et.read = function(i, n, a, c, u) {
718
748
  return (T ? -1 : 1) * m * Math.pow(2, I - c);
719
749
  };
720
750
  et.write = function(i, n, a, c, u, I) {
721
- var m, o, y, E = I * 8 - u - 1, _ = (1 << E) - 1, S = _ >> 1, x = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, T = c ? 0 : I - 1, N = c ? 1 : -1, h = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
722
- for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, m = _) : (m = Math.floor(Math.log(n) / Math.LN2), n * (y = Math.pow(2, -m)) < 1 && (m--, y *= 2), m + S >= 1 ? n += x / y : n += x * Math.pow(2, 1 - S), n * y >= 2 && (m++, y /= 2), m + S >= _ ? (o = 0, m = _) : m + S >= 1 ? (o = (n * y - 1) * Math.pow(2, u), m = m + S) : (o = n * Math.pow(2, S - 1) * Math.pow(2, u), m = 0)); u >= 8; i[a + T] = o & 255, T += N, o /= 256, u -= 8)
751
+ var m, o, y, E = I * 8 - u - 1, N = (1 << E) - 1, S = N >> 1, w = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, T = c ? 0 : I - 1, _ = c ? 1 : -1, p = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
752
+ for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (o = isNaN(n) ? 1 : 0, m = N) : (m = Math.floor(Math.log(n) / Math.LN2), n * (y = Math.pow(2, -m)) < 1 && (m--, y *= 2), m + S >= 1 ? n += w / y : n += w * Math.pow(2, 1 - S), n * y >= 2 && (m++, y /= 2), m + S >= N ? (o = 0, m = N) : m + S >= 1 ? (o = (n * y - 1) * Math.pow(2, u), m = m + S) : (o = n * Math.pow(2, S - 1) * Math.pow(2, u), m = 0)); u >= 8; i[a + T] = o & 255, T += _, o /= 256, u -= 8)
723
753
  ;
724
- for (m = m << u | o, E += u; E > 0; i[a + T] = m & 255, T += N, m /= 256, E -= 8)
754
+ for (m = m << u | o, E += u; E > 0; i[a + T] = m & 255, T += _, m /= 256, E -= 8)
725
755
  ;
726
- i[a + T - N] |= h * 128;
756
+ i[a + T - _] |= p * 128;
727
757
  };
728
758
  /*!
729
759
  * The buffer module from node.js, for the browser.
@@ -732,7 +762,7 @@ et.write = function(i, n, a, c, u, I) {
732
762
  * @license MIT
733
763
  */
734
764
  (function(i) {
735
- const n = be, a = et, c = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
765
+ const n = Oe, a = et, c = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
736
766
  i.Buffer = o, i.SlowBuffer = A, i.INSPECT_MAX_BYTES = 50;
737
767
  const u = 2147483647;
738
768
  i.kMaxLength = u, o.TYPED_ARRAY_SUPPORT = I(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -780,15 +810,15 @@ et.write = function(i, n, a, c, u, I) {
780
810
  o.poolSize = 8192;
781
811
  function y(r, e, t) {
782
812
  if (typeof r == "string")
783
- return x(r, e);
813
+ return w(r, e);
784
814
  if (ArrayBuffer.isView(r))
785
- return N(r);
815
+ return _(r);
786
816
  if (r == null)
787
817
  throw new TypeError(
788
818
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof r
789
819
  );
790
820
  if (H(r, ArrayBuffer) || r && H(r.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (H(r, SharedArrayBuffer) || r && H(r.buffer, SharedArrayBuffer)))
791
- return h(r, e, t);
821
+ return p(r, e, t);
792
822
  if (typeof r == "number")
793
823
  throw new TypeError(
794
824
  'The "value" argument must not be of type number. Received type number'
@@ -814,21 +844,21 @@ et.write = function(i, n, a, c, u, I) {
814
844
  if (r < 0)
815
845
  throw new RangeError('The value "' + r + '" is invalid for option "size"');
816
846
  }
817
- function _(r, e, t) {
847
+ function N(r, e, t) {
818
848
  return E(r), r <= 0 ? m(r) : e !== void 0 ? typeof t == "string" ? m(r).fill(e, t) : m(r).fill(e) : m(r);
819
849
  }
820
850
  o.alloc = function(r, e, t) {
821
- return _(r, e, t);
851
+ return N(r, e, t);
822
852
  };
823
853
  function S(r) {
824
- return E(r), m(r < 0 ? 0 : w(r) | 0);
854
+ return E(r), m(r < 0 ? 0 : x(r) | 0);
825
855
  }
826
856
  o.allocUnsafe = function(r) {
827
857
  return S(r);
828
858
  }, o.allocUnsafeSlow = function(r) {
829
859
  return S(r);
830
860
  };
831
- function x(r, e) {
861
+ function w(r, e) {
832
862
  if ((typeof e != "string" || e === "") && (e = "utf8"), !o.isEncoding(e))
833
863
  throw new TypeError("Unknown encoding: " + e);
834
864
  const t = z(r, e) | 0;
@@ -837,19 +867,19 @@ et.write = function(i, n, a, c, u, I) {
837
867
  return l !== t && (s = s.slice(0, l)), s;
838
868
  }
839
869
  function T(r) {
840
- const e = r.length < 0 ? 0 : w(r.length) | 0, t = m(e);
870
+ const e = r.length < 0 ? 0 : x(r.length) | 0, t = m(e);
841
871
  for (let s = 0; s < e; s += 1)
842
872
  t[s] = r[s] & 255;
843
873
  return t;
844
874
  }
845
- function N(r) {
875
+ function _(r) {
846
876
  if (H(r, Uint8Array)) {
847
877
  const e = new Uint8Array(r);
848
- return h(e.buffer, e.byteOffset, e.byteLength);
878
+ return p(e.buffer, e.byteOffset, e.byteLength);
849
879
  }
850
880
  return T(r);
851
881
  }
852
- function h(r, e, t) {
882
+ function p(r, e, t) {
853
883
  if (e < 0 || r.byteLength < e)
854
884
  throw new RangeError('"offset" is outside of buffer bounds');
855
885
  if (r.byteLength < e + (t || 0))
@@ -859,15 +889,15 @@ et.write = function(i, n, a, c, u, I) {
859
889
  }
860
890
  function M(r) {
861
891
  if (o.isBuffer(r)) {
862
- const e = w(r.length) | 0, t = m(e);
892
+ const e = x(r.length) | 0, t = m(e);
863
893
  return t.length === 0 || r.copy(t, 0, 0, e), t;
864
894
  }
865
895
  if (r.length !== void 0)
866
- return typeof r.length != "number" || Ue(r.length) ? m(0) : T(r);
896
+ return typeof r.length != "number" || je(r.length) ? m(0) : T(r);
867
897
  if (r.type === "Buffer" && Array.isArray(r.data))
868
898
  return T(r.data);
869
899
  }
870
- function w(r) {
900
+ function x(r) {
871
901
  if (r >= u)
872
902
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u.toString(16) + " bytes");
873
903
  return r | 0;
@@ -956,7 +986,7 @@ et.write = function(i, n, a, c, u, I) {
956
986
  return t;
957
987
  case "utf8":
958
988
  case "utf-8":
959
- return Re(r).length;
989
+ return Ue(r).length;
960
990
  case "ucs2":
961
991
  case "ucs-2":
962
992
  case "utf16le":
@@ -968,19 +998,19 @@ et.write = function(i, n, a, c, u, I) {
968
998
  return st(r).length;
969
999
  default:
970
1000
  if (l)
971
- return s ? -1 : Re(r).length;
1001
+ return s ? -1 : Ue(r).length;
972
1002
  e = ("" + e).toLowerCase(), l = !0;
973
1003
  }
974
1004
  }
975
1005
  o.byteLength = z;
976
- function O(r, e, t) {
1006
+ function b(r, e, t) {
977
1007
  let s = !1;
978
1008
  if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, e >>>= 0, t <= e))
979
1009
  return "";
980
1010
  for (r || (r = "utf8"); ; )
981
1011
  switch (r) {
982
1012
  case "hex":
983
- return ke(this, e, t);
1013
+ return Ce(this, e, t);
984
1014
  case "utf8":
985
1015
  case "utf-8":
986
1016
  return Me(this, e, t);
@@ -988,9 +1018,9 @@ et.write = function(i, n, a, c, u, I) {
988
1018
  return Ee(this, e, t);
989
1019
  case "latin1":
990
1020
  case "binary":
991
- return pe(this, e, t);
1021
+ return fe(this, e, t);
992
1022
  case "base64":
993
- return Ce(this, e, t);
1023
+ return ke(this, e, t);
994
1024
  case "ucs2":
995
1025
  case "ucs-2":
996
1026
  case "utf16le":
@@ -1030,7 +1060,7 @@ et.write = function(i, n, a, c, u, I) {
1030
1060
  return this;
1031
1061
  }, o.prototype.toString = function() {
1032
1062
  const e = this.length;
1033
- return e === 0 ? "" : arguments.length === 0 ? Me(this, 0, e) : O.apply(this, arguments);
1063
+ return e === 0 ? "" : arguments.length === 0 ? Me(this, 0, e) : b.apply(this, arguments);
1034
1064
  }, o.prototype.toLocaleString = o.prototype.toString, o.prototype.equals = function(e) {
1035
1065
  if (!o.isBuffer(e))
1036
1066
  throw new TypeError("Argument must be a Buffer");
@@ -1054,19 +1084,19 @@ et.write = function(i, n, a, c, u, I) {
1054
1084
  return 1;
1055
1085
  if (t >>>= 0, s >>>= 0, l >>>= 0, d >>>= 0, this === e)
1056
1086
  return 0;
1057
- let f = d - l, b = s - t;
1058
- const B = Math.min(f, b), k = this.slice(l, d), R = e.slice(t, s);
1059
- for (let C = 0; C < B; ++C)
1060
- if (k[C] !== R[C]) {
1061
- f = k[C], b = R[C];
1087
+ let f = d - l, O = s - t;
1088
+ const C = Math.min(f, O), B = this.slice(l, d), R = e.slice(t, s);
1089
+ for (let L = 0; L < C; ++L)
1090
+ if (B[L] !== R[L]) {
1091
+ f = B[L], O = R[L];
1062
1092
  break;
1063
1093
  }
1064
- return f < b ? -1 : b < f ? 1 : 0;
1094
+ return f < O ? -1 : O < f ? 1 : 0;
1065
1095
  };
1066
- function L(r, e, t, s, l) {
1096
+ function k(r, e, t, s, l) {
1067
1097
  if (r.length === 0)
1068
1098
  return -1;
1069
- if (typeof t == "string" ? (s = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, Ue(t) && (t = l ? 0 : r.length - 1), t < 0 && (t = r.length + t), t >= r.length) {
1099
+ if (typeof t == "string" ? (s = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, je(t) && (t = l ? 0 : r.length - 1), t < 0 && (t = r.length + t), t >= r.length) {
1070
1100
  if (l)
1071
1101
  return -1;
1072
1102
  t = r.length - 1;
@@ -1082,43 +1112,43 @@ et.write = function(i, n, a, c, u, I) {
1082
1112
  throw new TypeError("val must be string, number or Buffer");
1083
1113
  }
1084
1114
  function j(r, e, t, s, l) {
1085
- let d = 1, f = r.length, b = e.length;
1115
+ let d = 1, f = r.length, O = e.length;
1086
1116
  if (s !== void 0 && (s = String(s).toLowerCase(), s === "ucs2" || s === "ucs-2" || s === "utf16le" || s === "utf-16le")) {
1087
1117
  if (r.length < 2 || e.length < 2)
1088
1118
  return -1;
1089
- d = 2, f /= 2, b /= 2, t /= 2;
1119
+ d = 2, f /= 2, O /= 2, t /= 2;
1090
1120
  }
1091
- function B(R, C) {
1092
- return d === 1 ? R[C] : R.readUInt16BE(C * d);
1121
+ function C(R, L) {
1122
+ return d === 1 ? R[L] : R.readUInt16BE(L * d);
1093
1123
  }
1094
- let k;
1124
+ let B;
1095
1125
  if (l) {
1096
1126
  let R = -1;
1097
- for (k = t; k < f; k++)
1098
- if (B(r, k) === B(e, R === -1 ? 0 : k - R)) {
1099
- if (R === -1 && (R = k), k - R + 1 === b)
1127
+ for (B = t; B < f; B++)
1128
+ if (C(r, B) === C(e, R === -1 ? 0 : B - R)) {
1129
+ if (R === -1 && (R = B), B - R + 1 === O)
1100
1130
  return R * d;
1101
1131
  } else
1102
- R !== -1 && (k -= k - R), R = -1;
1132
+ R !== -1 && (B -= B - R), R = -1;
1103
1133
  } else
1104
- for (t + b > f && (t = f - b), k = t; k >= 0; k--) {
1134
+ for (t + O > f && (t = f - O), B = t; B >= 0; B--) {
1105
1135
  let R = !0;
1106
- for (let C = 0; C < b; C++)
1107
- if (B(r, k + C) !== B(e, C)) {
1136
+ for (let L = 0; L < O; L++)
1137
+ if (C(r, B + L) !== C(e, L)) {
1108
1138
  R = !1;
1109
1139
  break;
1110
1140
  }
1111
1141
  if (R)
1112
- return k;
1142
+ return B;
1113
1143
  }
1114
1144
  return -1;
1115
1145
  }
1116
1146
  o.prototype.includes = function(e, t, s) {
1117
1147
  return this.indexOf(e, t, s) !== -1;
1118
1148
  }, o.prototype.indexOf = function(e, t, s) {
1119
- return L(this, e, t, s, !0);
1149
+ return k(this, e, t, s, !0);
1120
1150
  }, o.prototype.lastIndexOf = function(e, t, s) {
1121
- return L(this, e, t, s, !1);
1151
+ return k(this, e, t, s, !1);
1122
1152
  };
1123
1153
  function W(r, e, t, s) {
1124
1154
  t = Number(t) || 0;
@@ -1128,15 +1158,15 @@ et.write = function(i, n, a, c, u, I) {
1128
1158
  s > d / 2 && (s = d / 2);
1129
1159
  let f;
1130
1160
  for (f = 0; f < s; ++f) {
1131
- const b = parseInt(e.substr(f * 2, 2), 16);
1132
- if (Ue(b))
1161
+ const O = parseInt(e.substr(f * 2, 2), 16);
1162
+ if (je(O))
1133
1163
  return f;
1134
- r[t + f] = b;
1164
+ r[t + f] = O;
1135
1165
  }
1136
1166
  return f;
1137
1167
  }
1138
1168
  function V(r, e, t, s) {
1139
- return ve(Re(e, r.length - t), r, t, s);
1169
+ return ve(Ue(e, r.length - t), r, t, s);
1140
1170
  }
1141
1171
  function ne(r, e, t, s) {
1142
1172
  return ve(Qt(e), r, t, s);
@@ -1144,7 +1174,7 @@ et.write = function(i, n, a, c, u, I) {
1144
1174
  function se(r, e, t, s) {
1145
1175
  return ve(st(e), r, t, s);
1146
1176
  }
1147
- function Oe(r, e, t, s) {
1177
+ function Le(r, e, t, s) {
1148
1178
  return ve(Pt(e, r.length - t), r, t, s);
1149
1179
  }
1150
1180
  o.prototype.write = function(e, t, s, l) {
@@ -1180,7 +1210,7 @@ et.write = function(i, n, a, c, u, I) {
1180
1210
  case "ucs-2":
1181
1211
  case "utf16le":
1182
1212
  case "utf-16le":
1183
- return Oe(this, e, t, s);
1213
+ return Le(this, e, t, s);
1184
1214
  default:
1185
1215
  if (f)
1186
1216
  throw new TypeError("Unknown encoding: " + l);
@@ -1192,7 +1222,7 @@ et.write = function(i, n, a, c, u, I) {
1192
1222
  data: Array.prototype.slice.call(this._arr || this, 0)
1193
1223
  };
1194
1224
  };
1195
- function Ce(r, e, t) {
1225
+ function ke(r, e, t) {
1196
1226
  return e === 0 && t === r.length ? n.fromByteArray(r) : n.fromByteArray(r.slice(e, t));
1197
1227
  }
1198
1228
  function Me(r, e, t) {
@@ -1201,29 +1231,29 @@ et.write = function(i, n, a, c, u, I) {
1201
1231
  let l = e;
1202
1232
  for (; l < t; ) {
1203
1233
  const d = r[l];
1204
- let f = null, b = d > 239 ? 4 : d > 223 ? 3 : d > 191 ? 2 : 1;
1205
- if (l + b <= t) {
1206
- let B, k, R, C;
1207
- switch (b) {
1234
+ let f = null, O = d > 239 ? 4 : d > 223 ? 3 : d > 191 ? 2 : 1;
1235
+ if (l + O <= t) {
1236
+ let C, B, R, L;
1237
+ switch (O) {
1208
1238
  case 1:
1209
1239
  d < 128 && (f = d);
1210
1240
  break;
1211
1241
  case 2:
1212
- B = r[l + 1], (B & 192) === 128 && (C = (d & 31) << 6 | B & 63, C > 127 && (f = C));
1242
+ C = r[l + 1], (C & 192) === 128 && (L = (d & 31) << 6 | C & 63, L > 127 && (f = L));
1213
1243
  break;
1214
1244
  case 3:
1215
- B = r[l + 1], k = r[l + 2], (B & 192) === 128 && (k & 192) === 128 && (C = (d & 15) << 12 | (B & 63) << 6 | k & 63, C > 2047 && (C < 55296 || C > 57343) && (f = C));
1245
+ C = r[l + 1], B = r[l + 2], (C & 192) === 128 && (B & 192) === 128 && (L = (d & 15) << 12 | (C & 63) << 6 | B & 63, L > 2047 && (L < 55296 || L > 57343) && (f = L));
1216
1246
  break;
1217
1247
  case 4:
1218
- B = r[l + 1], k = r[l + 2], R = r[l + 3], (B & 192) === 128 && (k & 192) === 128 && (R & 192) === 128 && (C = (d & 15) << 18 | (B & 63) << 12 | (k & 63) << 6 | R & 63, C > 65535 && C < 1114112 && (f = C));
1248
+ C = r[l + 1], B = r[l + 2], R = r[l + 3], (C & 192) === 128 && (B & 192) === 128 && (R & 192) === 128 && (L = (d & 15) << 18 | (C & 63) << 12 | (B & 63) << 6 | R & 63, L > 65535 && L < 1114112 && (f = L));
1219
1249
  }
1220
1250
  }
1221
- f === null ? (f = 65533, b = 1) : f > 65535 && (f -= 65536, s.push(f >>> 10 & 1023 | 55296), f = 56320 | f & 1023), s.push(f), l += b;
1251
+ f === null ? (f = 65533, O = 1) : f > 65535 && (f -= 65536, s.push(f >>> 10 & 1023 | 55296), f = 56320 | f & 1023), s.push(f), l += O;
1222
1252
  }
1223
- return Le(s);
1253
+ return Be(s);
1224
1254
  }
1225
1255
  const Ae = 4096;
1226
- function Le(r) {
1256
+ function Be(r) {
1227
1257
  const e = r.length;
1228
1258
  if (e <= Ae)
1229
1259
  return String.fromCharCode.apply(String, r);
@@ -1242,14 +1272,14 @@ et.write = function(i, n, a, c, u, I) {
1242
1272
  s += String.fromCharCode(r[l] & 127);
1243
1273
  return s;
1244
1274
  }
1245
- function pe(r, e, t) {
1275
+ function fe(r, e, t) {
1246
1276
  let s = "";
1247
1277
  t = Math.min(r.length, t);
1248
1278
  for (let l = e; l < t; ++l)
1249
1279
  s += String.fromCharCode(r[l]);
1250
1280
  return s;
1251
1281
  }
1252
- function ke(r, e, t) {
1282
+ function Ce(r, e, t) {
1253
1283
  const s = r.length;
1254
1284
  (!e || e < 0) && (e = 0), (!t || t < 0 || t > s) && (t = s);
1255
1285
  let l = "";
@@ -1301,13 +1331,13 @@ et.write = function(i, n, a, c, u, I) {
1301
1331
  }, o.prototype.readBigUInt64LE = te(function(e) {
1302
1332
  e = e >>> 0, ae(e, "offset");
1303
1333
  const t = this[e], s = this[e + 7];
1304
- (t === void 0 || s === void 0) && ge(e, this.length - 8);
1334
+ (t === void 0 || s === void 0) && Ie(e, this.length - 8);
1305
1335
  const l = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, d = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + s * 2 ** 24;
1306
1336
  return BigInt(l) + (BigInt(d) << BigInt(32));
1307
1337
  }), o.prototype.readBigUInt64BE = te(function(e) {
1308
1338
  e = e >>> 0, ae(e, "offset");
1309
1339
  const t = this[e], s = this[e + 7];
1310
- (t === void 0 || s === void 0) && ge(e, this.length - 8);
1340
+ (t === void 0 || s === void 0) && Ie(e, this.length - 8);
1311
1341
  const l = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], d = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + s;
1312
1342
  return (BigInt(l) << BigInt(32)) + BigInt(d);
1313
1343
  }), o.prototype.readIntLE = function(e, t, s) {
@@ -1339,13 +1369,13 @@ et.write = function(i, n, a, c, u, I) {
1339
1369
  }, o.prototype.readBigInt64LE = te(function(e) {
1340
1370
  e = e >>> 0, ae(e, "offset");
1341
1371
  const t = this[e], s = this[e + 7];
1342
- (t === void 0 || s === void 0) && ge(e, this.length - 8);
1372
+ (t === void 0 || s === void 0) && Ie(e, this.length - 8);
1343
1373
  const l = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (s << 24);
1344
1374
  return (BigInt(l) << BigInt(32)) + BigInt(t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
1345
1375
  }), o.prototype.readBigInt64BE = te(function(e) {
1346
1376
  e = e >>> 0, ae(e, "offset");
1347
1377
  const t = this[e], s = this[e + 7];
1348
- (t === void 0 || s === void 0) && ge(e, this.length - 8);
1378
+ (t === void 0 || s === void 0) && Ie(e, this.length - 8);
1349
1379
  const l = (t << 24) + // Overflow
1350
1380
  this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
1351
1381
  return (BigInt(l) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + s);
@@ -1368,8 +1398,8 @@ et.write = function(i, n, a, c, u, I) {
1368
1398
  }
1369
1399
  o.prototype.writeUintLE = o.prototype.writeUIntLE = function(e, t, s, l) {
1370
1400
  if (e = +e, t = t >>> 0, s = s >>> 0, !l) {
1371
- const b = Math.pow(2, 8 * s) - 1;
1372
- $(this, e, t, s, b, 0);
1401
+ const O = Math.pow(2, 8 * s) - 1;
1402
+ $(this, e, t, s, O, 0);
1373
1403
  }
1374
1404
  let d = 1, f = 0;
1375
1405
  for (this[t] = e & 255; ++f < s && (d *= 256); )
@@ -1377,8 +1407,8 @@ et.write = function(i, n, a, c, u, I) {
1377
1407
  return t + s;
1378
1408
  }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(e, t, s, l) {
1379
1409
  if (e = +e, t = t >>> 0, s = s >>> 0, !l) {
1380
- const b = Math.pow(2, 8 * s) - 1;
1381
- $(this, e, t, s, b, 0);
1410
+ const O = Math.pow(2, 8 * s) - 1;
1411
+ $(this, e, t, s, O, 0);
1382
1412
  }
1383
1413
  let d = s - 1, f = 1;
1384
1414
  for (this[t + d] = e & 255; --d >= 0 && (f *= 256); )
@@ -1395,7 +1425,7 @@ et.write = function(i, n, a, c, u, I) {
1395
1425
  }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(e, t, s) {
1396
1426
  return e = +e, t = t >>> 0, s || $(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;
1397
1427
  };
1398
- function fe(r, e, t, s, l) {
1428
+ function me(r, e, t, s, l) {
1399
1429
  nt(e, s, l, r, t, 7);
1400
1430
  let d = Number(e & BigInt(4294967295));
1401
1431
  r[t++] = d, d = d >> 8, r[t++] = d, d = d >> 8, r[t++] = d, d = d >> 8, r[t++] = d;
@@ -1410,26 +1440,26 @@ et.write = function(i, n, a, c, u, I) {
1410
1440
  return r[t + 3] = f, f = f >> 8, r[t + 2] = f, f = f >> 8, r[t + 1] = f, f = f >> 8, r[t] = f, t + 8;
1411
1441
  }
1412
1442
  o.prototype.writeBigUInt64LE = te(function(e, t = 0) {
1413
- return fe(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
1443
+ return me(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
1414
1444
  }), o.prototype.writeBigUInt64BE = te(function(e, t = 0) {
1415
1445
  return ee(this, e, t, BigInt(0), BigInt("0xffffffffffffffff"));
1416
1446
  }), o.prototype.writeIntLE = function(e, t, s, l) {
1417
1447
  if (e = +e, t = t >>> 0, !l) {
1418
- const B = Math.pow(2, 8 * s - 1);
1419
- $(this, e, t, s, B - 1, -B);
1448
+ const C = Math.pow(2, 8 * s - 1);
1449
+ $(this, e, t, s, C - 1, -C);
1420
1450
  }
1421
- let d = 0, f = 1, b = 0;
1451
+ let d = 0, f = 1, O = 0;
1422
1452
  for (this[t] = e & 255; ++d < s && (f *= 256); )
1423
- e < 0 && b === 0 && this[t + d - 1] !== 0 && (b = 1), this[t + d] = (e / f >> 0) - b & 255;
1453
+ e < 0 && O === 0 && this[t + d - 1] !== 0 && (O = 1), this[t + d] = (e / f >> 0) - O & 255;
1424
1454
  return t + s;
1425
1455
  }, o.prototype.writeIntBE = function(e, t, s, l) {
1426
1456
  if (e = +e, t = t >>> 0, !l) {
1427
- const B = Math.pow(2, 8 * s - 1);
1428
- $(this, e, t, s, B - 1, -B);
1457
+ const C = Math.pow(2, 8 * s - 1);
1458
+ $(this, e, t, s, C - 1, -C);
1429
1459
  }
1430
- let d = s - 1, f = 1, b = 0;
1460
+ let d = s - 1, f = 1, O = 0;
1431
1461
  for (this[t + d] = e & 255; --d >= 0 && (f *= 256); )
1432
- e < 0 && b === 0 && this[t + d + 1] !== 0 && (b = 1), this[t + d] = (e / f >> 0) - b & 255;
1462
+ e < 0 && O === 0 && this[t + d + 1] !== 0 && (O = 1), this[t + d] = (e / f >> 0) - O & 255;
1433
1463
  return t + s;
1434
1464
  }, o.prototype.writeInt8 = function(e, t, s) {
1435
1465
  return e = +e, t = t >>> 0, s || $(this, e, t, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[t] = e & 255, t + 1;
@@ -1442,18 +1472,18 @@ et.write = function(i, n, a, c, u, I) {
1442
1472
  }, o.prototype.writeInt32BE = function(e, t, s) {
1443
1473
  return e = +e, t = t >>> 0, s || $(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;
1444
1474
  }, o.prototype.writeBigInt64LE = te(function(e, t = 0) {
1445
- return fe(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1475
+ return me(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1446
1476
  }), o.prototype.writeBigInt64BE = te(function(e, t = 0) {
1447
1477
  return ee(this, e, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1448
1478
  });
1449
- function me(r, e, t, s, l, d) {
1479
+ function ge(r, e, t, s, l, d) {
1450
1480
  if (t + s > r.length)
1451
1481
  throw new RangeError("Index out of range");
1452
1482
  if (t < 0)
1453
1483
  throw new RangeError("Index out of range");
1454
1484
  }
1455
1485
  function tt(r, e, t, s, l) {
1456
- return e = +e, t = t >>> 0, l || me(r, e, t, 4), a.write(r, e, t, s, 23, 4), t + 4;
1486
+ return e = +e, t = t >>> 0, l || ge(r, e, t, 4), a.write(r, e, t, s, 23, 4), t + 4;
1457
1487
  }
1458
1488
  o.prototype.writeFloatLE = function(e, t, s) {
1459
1489
  return tt(this, e, t, !0, s);
@@ -1461,7 +1491,7 @@ et.write = function(i, n, a, c, u, I) {
1461
1491
  return tt(this, e, t, !1, s);
1462
1492
  };
1463
1493
  function rt(r, e, t, s, l) {
1464
- return e = +e, t = t >>> 0, l || me(r, e, t, 8), a.write(r, e, t, s, 52, 8), t + 8;
1494
+ return e = +e, t = t >>> 0, l || ge(r, e, t, 8), a.write(r, e, t, s, 52, 8), t + 8;
1465
1495
  }
1466
1496
  o.prototype.writeDoubleLE = function(e, t, s) {
1467
1497
  return rt(this, e, t, !0, s);
@@ -1507,16 +1537,16 @@ et.write = function(i, n, a, c, u, I) {
1507
1537
  for (d = t; d < s; ++d)
1508
1538
  this[d] = e;
1509
1539
  else {
1510
- const f = o.isBuffer(e) ? e : o.from(e, l), b = f.length;
1511
- if (b === 0)
1540
+ const f = o.isBuffer(e) ? e : o.from(e, l), O = f.length;
1541
+ if (O === 0)
1512
1542
  throw new TypeError('The value "' + e + '" is invalid for argument "value"');
1513
1543
  for (d = 0; d < s - t; ++d)
1514
- this[d + t] = f[d % b];
1544
+ this[d + t] = f[d % O];
1515
1545
  }
1516
1546
  return this;
1517
1547
  };
1518
1548
  const oe = {};
1519
- function Be(r, e, t) {
1549
+ function Re(r, e, t) {
1520
1550
  oe[r] = class extends t {
1521
1551
  constructor() {
1522
1552
  super(), Object.defineProperty(this, "message", {
@@ -1541,19 +1571,19 @@ et.write = function(i, n, a, c, u, I) {
1541
1571
  }
1542
1572
  };
1543
1573
  }
1544
- Be(
1574
+ Re(
1545
1575
  "ERR_BUFFER_OUT_OF_BOUNDS",
1546
1576
  function(r) {
1547
1577
  return r ? `${r} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
1548
1578
  },
1549
1579
  RangeError
1550
- ), Be(
1580
+ ), Re(
1551
1581
  "ERR_INVALID_ARG_TYPE",
1552
1582
  function(r, e) {
1553
1583
  return `The "${r}" argument must be of type number. Received type ${typeof e}`;
1554
1584
  },
1555
1585
  TypeError
1556
- ), Be(
1586
+ ), Re(
1557
1587
  "ERR_OUT_OF_RANGE",
1558
1588
  function(r, e, t) {
1559
1589
  let s = `The value of "${r}" is out of range.`, l = t;
@@ -1569,13 +1599,13 @@ et.write = function(i, n, a, c, u, I) {
1569
1599
  return `${r.slice(0, t)}${e}`;
1570
1600
  }
1571
1601
  function jt(r, e, t) {
1572
- ae(e, "offset"), (r[e] === void 0 || r[e + t] === void 0) && ge(e, r.length - (t + 1));
1602
+ ae(e, "offset"), (r[e] === void 0 || r[e + t] === void 0) && Ie(e, r.length - (t + 1));
1573
1603
  }
1574
1604
  function nt(r, e, t, s, l, d) {
1575
1605
  if (r > t || r < e) {
1576
1606
  const f = typeof e == "bigint" ? "n" : "";
1577
- let b;
1578
- throw d > 3 ? e === 0 || e === BigInt(0) ? b = `>= 0${f} and < 2${f} ** ${(d + 1) * 8}${f}` : b = `>= -(2${f} ** ${(d + 1) * 8 - 1}${f}) and < 2 ** ${(d + 1) * 8 - 1}${f}` : b = `>= ${e}${f} and <= ${t}${f}`, new oe.ERR_OUT_OF_RANGE("value", b, r);
1607
+ let O;
1608
+ throw d > 3 ? e === 0 || e === BigInt(0) ? O = `>= 0${f} and < 2${f} ** ${(d + 1) * 8}${f}` : O = `>= -(2${f} ** ${(d + 1) * 8 - 1}${f}) and < 2 ** ${(d + 1) * 8 - 1}${f}` : O = `>= ${e}${f} and <= ${t}${f}`, new oe.ERR_OUT_OF_RANGE("value", O, r);
1579
1609
  }
1580
1610
  jt(s, l, d);
1581
1611
  }
@@ -1583,7 +1613,7 @@ et.write = function(i, n, a, c, u, I) {
1583
1613
  if (typeof r != "number")
1584
1614
  throw new oe.ERR_INVALID_ARG_TYPE(e, "number", r);
1585
1615
  }
1586
- function ge(r, e, t) {
1616
+ function Ie(r, e, t) {
1587
1617
  throw Math.floor(r) !== r ? (ae(r, t), new oe.ERR_OUT_OF_RANGE(t || "offset", "an integer", r)) : e < 0 ? new oe.ERR_BUFFER_OUT_OF_BOUNDS() : new oe.ERR_OUT_OF_RANGE(
1588
1618
  t || "offset",
1589
1619
  `>= ${t ? 1 : 0} and <= ${e}`,
@@ -1598,7 +1628,7 @@ et.write = function(i, n, a, c, u, I) {
1598
1628
  r = r + "=";
1599
1629
  return r;
1600
1630
  }
1601
- function Re(r, e) {
1631
+ function Ue(r, e) {
1602
1632
  e = e || 1 / 0;
1603
1633
  let t;
1604
1634
  const s = r.length;
@@ -1682,7 +1712,7 @@ et.write = function(i, n, a, c, u, I) {
1682
1712
  function H(r, e) {
1683
1713
  return r instanceof e || r != null && r.constructor != null && r.constructor.name != null && r.constructor.name === e.name;
1684
1714
  }
1685
- function Ue(r) {
1715
+ function je(r) {
1686
1716
  return r !== r;
1687
1717
  }
1688
1718
  const qt = function() {
@@ -1700,8 +1730,8 @@ et.write = function(i, n, a, c, u, I) {
1700
1730
  function Yt() {
1701
1731
  throw new Error("BigInt not supported");
1702
1732
  }
1703
- })(Ct);
1704
- var kt = { exports: {} }, U = kt.exports = {}, G, Z;
1733
+ })(Lt);
1734
+ var Bt = { exports: {} }, U = Bt.exports = {}, G, Z;
1705
1735
  function He() {
1706
1736
  throw new Error("setTimeout has not been defined");
1707
1737
  }
@@ -1720,7 +1750,7 @@ function Ge() {
1720
1750
  Z = Ge;
1721
1751
  }
1722
1752
  })();
1723
- function Bt(i) {
1753
+ function Ct(i) {
1724
1754
  if (G === setTimeout)
1725
1755
  return setTimeout(i, 0);
1726
1756
  if ((G === He || !G) && setTimeout)
@@ -1735,7 +1765,7 @@ function Bt(i) {
1735
1765
  }
1736
1766
  }
1737
1767
  }
1738
- function Wi(i) {
1768
+ function Zi(i) {
1739
1769
  if (Z === clearTimeout)
1740
1770
  return clearTimeout(i);
1741
1771
  if ((Z === Ge || !Z) && clearTimeout)
@@ -1750,20 +1780,20 @@ function Wi(i) {
1750
1780
  }
1751
1781
  }
1752
1782
  }
1753
- var K = [], he = !1, ie, De = -1;
1754
- function Vi() {
1755
- !he || !ie || (he = !1, ie.length ? K = ie.concat(K) : De = -1, K.length && Rt());
1783
+ var K = [], pe = !1, ie, De = -1;
1784
+ function Ji() {
1785
+ !pe || !ie || (pe = !1, ie.length ? K = ie.concat(K) : De = -1, K.length && Rt());
1756
1786
  }
1757
1787
  function Rt() {
1758
- if (!he) {
1759
- var i = Bt(Vi);
1760
- he = !0;
1788
+ if (!pe) {
1789
+ var i = Ct(Ji);
1790
+ pe = !0;
1761
1791
  for (var n = K.length; n; ) {
1762
1792
  for (ie = K, K = []; ++De < n; )
1763
1793
  ie && ie[De].run();
1764
1794
  De = -1, n = K.length;
1765
1795
  }
1766
- ie = null, he = !1, Wi(i);
1796
+ ie = null, pe = !1, Zi(i);
1767
1797
  }
1768
1798
  }
1769
1799
  U.nextTick = function(i) {
@@ -1771,7 +1801,7 @@ U.nextTick = function(i) {
1771
1801
  if (arguments.length > 1)
1772
1802
  for (var a = 1; a < arguments.length; a++)
1773
1803
  n[a - 1] = arguments[a];
1774
- K.push(new Ut(i, n)), K.length === 1 && !he && Bt(Rt);
1804
+ K.push(new Ut(i, n)), K.length === 1 && !pe && Ct(Rt);
1775
1805
  };
1776
1806
  function Ut(i, n) {
1777
1807
  this.fun = i, this.array = n;
@@ -1811,101 +1841,101 @@ U.chdir = function(i) {
1811
1841
  U.umask = function() {
1812
1842
  return 0;
1813
1843
  };
1814
- var Hi = kt.exports;
1844
+ var Ki = Bt.exports;
1815
1845
  (function(i) {
1816
1846
  Object.defineProperty(i, Symbol.toStringTag, { value: "Module" });
1817
- const n = Ct, a = Hi, c = (m) => m && m.__esModule ? m : { default: m }, u = c(a), I = globalThis || void 0 || self;
1847
+ const n = Lt, a = Ki, c = (m) => m && m.__esModule ? m : { default: m }, u = c(a), I = globalThis || void 0 || self;
1818
1848
  Object.defineProperty(i, "Buffer", { enumerable: !0, get: () => n.Buffer }), Object.defineProperty(i, "process", { enumerable: !0, get: () => u.default }), i.global = I;
1819
1849
  })(Ot);
1820
1850
  let Y;
1821
1851
  typeof window < "u" ? Y = window : typeof self < "u" ? Y = self : Y = Ot.global;
1822
1852
  let Ze = null, Je = null;
1823
- const ht = 20, $e = Y.clearTimeout, pt = Y.setTimeout, Qe = Y.cancelAnimationFrame || Y.mozCancelAnimationFrame || Y.webkitCancelAnimationFrame, ft = Y.requestAnimationFrame || Y.mozRequestAnimationFrame || Y.webkitRequestAnimationFrame;
1824
- Qe == null || ft == null ? (Ze = $e, Je = function(n) {
1853
+ const ht = 20, Qe = Y.clearTimeout, pt = Y.setTimeout, Pe = Y.cancelAnimationFrame || Y.mozCancelAnimationFrame || Y.webkitCancelAnimationFrame, ft = Y.requestAnimationFrame || Y.mozRequestAnimationFrame || Y.webkitRequestAnimationFrame;
1854
+ Pe == null || ft == null ? (Ze = Qe, Je = function(n) {
1825
1855
  return pt(n, ht);
1826
1856
  }) : (Ze = function([n, a]) {
1827
- Qe(n), $e(a);
1857
+ Pe(n), Qe(a);
1828
1858
  }, Je = function(n) {
1829
1859
  const a = ft(function() {
1830
- $e(c), n();
1860
+ Qe(c), n();
1831
1861
  }), c = pt(function() {
1832
- Qe(a), n();
1862
+ Pe(a), n();
1833
1863
  }, ht);
1834
1864
  return [a, c];
1835
1865
  });
1836
- function Gi(i) {
1866
+ function Xi(i) {
1837
1867
  let n, a, c, u, I, m, o;
1838
1868
  const y = typeof document < "u" && document.attachEvent;
1839
1869
  if (!y) {
1840
- m = function(w) {
1841
- const A = w.__resizeTriggers__, z = A.firstElementChild, O = A.lastElementChild, D = z.firstElementChild;
1842
- O.scrollLeft = O.scrollWidth, O.scrollTop = O.scrollHeight, D.style.width = z.offsetWidth + 1 + "px", D.style.height = z.offsetHeight + 1 + "px", z.scrollLeft = z.scrollWidth, z.scrollTop = z.scrollHeight;
1843
- }, I = function(w) {
1844
- return w.offsetWidth !== w.__resizeLast__.width || w.offsetHeight !== w.__resizeLast__.height;
1845
- }, o = function(w) {
1846
- if (w.target.className && typeof w.target.className.indexOf == "function" && w.target.className.indexOf("contract-trigger") < 0 && w.target.className.indexOf("expand-trigger") < 0)
1870
+ m = function(x) {
1871
+ const A = x.__resizeTriggers__, z = A.firstElementChild, b = A.lastElementChild, D = z.firstElementChild;
1872
+ b.scrollLeft = b.scrollWidth, b.scrollTop = b.scrollHeight, D.style.width = z.offsetWidth + 1 + "px", D.style.height = z.offsetHeight + 1 + "px", z.scrollLeft = z.scrollWidth, z.scrollTop = z.scrollHeight;
1873
+ }, I = function(x) {
1874
+ return x.offsetWidth !== x.__resizeLast__.width || x.offsetHeight !== x.__resizeLast__.height;
1875
+ }, o = function(x) {
1876
+ if (x.target.className && typeof x.target.className.indexOf == "function" && x.target.className.indexOf("contract-trigger") < 0 && x.target.className.indexOf("expand-trigger") < 0)
1847
1877
  return;
1848
1878
  const A = this;
1849
1879
  m(this), this.__resizeRAF__ && Ze(this.__resizeRAF__), this.__resizeRAF__ = Je(function() {
1850
1880
  I(A) && (A.__resizeLast__.width = A.offsetWidth, A.__resizeLast__.height = A.offsetHeight, A.__resizeListeners__.forEach(function(D) {
1851
- D.call(A, w);
1881
+ D.call(A, x);
1852
1882
  }));
1853
1883
  });
1854
1884
  };
1855
- let x = !1, T = "";
1885
+ let w = !1, T = "";
1856
1886
  c = "animationstart";
1857
- const N = "Webkit Moz O ms".split(" ");
1858
- let h = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), M = "";
1887
+ const _ = "Webkit Moz O ms".split(" ");
1888
+ let p = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), M = "";
1859
1889
  {
1860
- const w = document.createElement("fakeelement");
1861
- if (w.style.animationName !== void 0 && (x = !0), x === !1) {
1862
- for (let A = 0; A < N.length; A++)
1863
- if (w.style[N[A] + "AnimationName"] !== void 0) {
1864
- M = N[A], T = "-" + M.toLowerCase() + "-", c = h[A], x = !0;
1890
+ const x = document.createElement("fakeelement");
1891
+ if (x.style.animationName !== void 0 && (w = !0), w === !1) {
1892
+ for (let A = 0; A < _.length; A++)
1893
+ if (x.style[_[A] + "AnimationName"] !== void 0) {
1894
+ M = _[A], T = "-" + M.toLowerCase() + "-", c = p[A], w = !0;
1865
1895
  break;
1866
1896
  }
1867
1897
  }
1868
1898
  }
1869
1899
  a = "resizeanim", n = "@" + T + "keyframes " + a + " { from { opacity: 0; } to { opacity: 0; } } ", u = T + "animation: 1ms " + a + "; ";
1870
1900
  }
1871
- const E = function(x) {
1872
- if (!x.getElementById("detectElementResize")) {
1873
- const T = (n || "") + ".resize-triggers { " + (u || "") + '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%; }', N = x.head || x.getElementsByTagName("head")[0], h = x.createElement("style");
1874
- h.id = "detectElementResize", h.type = "text/css", i != null && h.setAttribute("nonce", i), h.styleSheet ? h.styleSheet.cssText = T : h.appendChild(x.createTextNode(T)), N.appendChild(h);
1901
+ const E = function(w) {
1902
+ if (!w.getElementById("detectElementResize")) {
1903
+ const T = (n || "") + ".resize-triggers { " + (u || "") + '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%; }', _ = w.head || w.getElementsByTagName("head")[0], p = w.createElement("style");
1904
+ p.id = "detectElementResize", p.type = "text/css", i != null && p.setAttribute("nonce", i), p.styleSheet ? p.styleSheet.cssText = T : p.appendChild(w.createTextNode(T)), _.appendChild(p);
1875
1905
  }
1876
1906
  };
1877
1907
  return {
1878
- addResizeListener: function(x, T) {
1908
+ addResizeListener: function(w, T) {
1879
1909
  if (y)
1880
- x.attachEvent("onresize", T);
1910
+ w.attachEvent("onresize", T);
1881
1911
  else {
1882
- if (!x.__resizeTriggers__) {
1883
- const N = x.ownerDocument, h = Y.getComputedStyle(x);
1884
- h && h.position === "static" && (x.style.position = "relative"), E(N), x.__resizeLast__ = {}, x.__resizeListeners__ = [], (x.__resizeTriggers__ = N.createElement("div")).className = "resize-triggers";
1885
- const M = N.createElement("div");
1886
- M.className = "expand-trigger", M.appendChild(N.createElement("div"));
1887
- const w = N.createElement("div");
1888
- w.className = "contract-trigger", x.__resizeTriggers__.appendChild(M), x.__resizeTriggers__.appendChild(w), x.appendChild(x.__resizeTriggers__), m(x), x.addEventListener("scroll", o, !0), c && (x.__resizeTriggers__.__animationListener__ = function(z) {
1889
- z.animationName === a && m(x);
1890
- }, x.__resizeTriggers__.addEventListener(c, x.__resizeTriggers__.__animationListener__));
1912
+ if (!w.__resizeTriggers__) {
1913
+ const _ = w.ownerDocument, p = Y.getComputedStyle(w);
1914
+ p && p.position === "static" && (w.style.position = "relative"), E(_), w.__resizeLast__ = {}, w.__resizeListeners__ = [], (w.__resizeTriggers__ = _.createElement("div")).className = "resize-triggers";
1915
+ const M = _.createElement("div");
1916
+ M.className = "expand-trigger", M.appendChild(_.createElement("div"));
1917
+ const x = _.createElement("div");
1918
+ x.className = "contract-trigger", w.__resizeTriggers__.appendChild(M), w.__resizeTriggers__.appendChild(x), w.appendChild(w.__resizeTriggers__), m(w), w.addEventListener("scroll", o, !0), c && (w.__resizeTriggers__.__animationListener__ = function(z) {
1919
+ z.animationName === a && m(w);
1920
+ }, w.__resizeTriggers__.addEventListener(c, w.__resizeTriggers__.__animationListener__));
1891
1921
  }
1892
- x.__resizeListeners__.push(T);
1922
+ w.__resizeListeners__.push(T);
1893
1923
  }
1894
1924
  },
1895
- removeResizeListener: function(x, T) {
1925
+ removeResizeListener: function(w, T) {
1896
1926
  if (y)
1897
- x.detachEvent("onresize", T);
1898
- else if (x.__resizeListeners__.splice(x.__resizeListeners__.indexOf(T), 1), !x.__resizeListeners__.length) {
1899
- x.removeEventListener("scroll", o, !0), x.__resizeTriggers__.__animationListener__ && (x.__resizeTriggers__.removeEventListener(c, x.__resizeTriggers__.__animationListener__), x.__resizeTriggers__.__animationListener__ = null);
1927
+ w.detachEvent("onresize", T);
1928
+ else if (w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(T), 1), !w.__resizeListeners__.length) {
1929
+ w.removeEventListener("scroll", o, !0), w.__resizeTriggers__.__animationListener__ && (w.__resizeTriggers__.removeEventListener(c, w.__resizeTriggers__.__animationListener__), w.__resizeTriggers__.__animationListener__ = null);
1900
1930
  try {
1901
- x.__resizeTriggers__ = !x.removeChild(x.__resizeTriggers__);
1931
+ w.__resizeTriggers__ = !w.removeChild(w.__resizeTriggers__);
1902
1932
  } catch {
1903
1933
  }
1904
1934
  }
1905
1935
  }
1906
1936
  };
1907
1937
  }
1908
- class Zi extends Gt {
1938
+ class en extends Gt {
1909
1939
  constructor(...n) {
1910
1940
  super(...n), this.state = {
1911
1941
  height: this.props.defaultHeight || 0,
@@ -1921,15 +1951,15 @@ class Zi extends Gt {
1921
1951
  } = this.props;
1922
1952
  if (this._parentNode) {
1923
1953
  var I, m, o, y;
1924
- const E = window.getComputedStyle(this._parentNode) || {}, _ = parseFloat((I = E.paddingLeft) !== null && I !== void 0 ? I : "0"), S = parseFloat((m = E.paddingRight) !== null && m !== void 0 ? m : "0"), x = parseFloat((o = E.paddingTop) !== null && o !== void 0 ? o : "0"), T = parseFloat((y = E.paddingBottom) !== null && y !== void 0 ? y : "0"), N = this._parentNode.getBoundingClientRect(), h = N.height - x - T, M = N.width - _ - S, w = this._parentNode.offsetHeight - x - T, A = this._parentNode.offsetWidth - _ - S;
1925
- (!a && (this.state.height !== w || this.state.scaledHeight !== h) || !c && (this.state.width !== A || this.state.scaledWidth !== M)) && (this.setState({
1926
- height: w,
1954
+ const E = window.getComputedStyle(this._parentNode) || {}, N = parseFloat((I = E.paddingLeft) !== null && I !== void 0 ? I : "0"), S = parseFloat((m = E.paddingRight) !== null && m !== void 0 ? m : "0"), w = parseFloat((o = E.paddingTop) !== null && o !== void 0 ? o : "0"), T = parseFloat((y = E.paddingBottom) !== null && y !== void 0 ? y : "0"), _ = this._parentNode.getBoundingClientRect(), p = _.height - w - T, M = _.width - N - S, x = this._parentNode.offsetHeight - w - T, A = this._parentNode.offsetWidth - N - S;
1955
+ (!a && (this.state.height !== x || this.state.scaledHeight !== p) || !c && (this.state.width !== A || this.state.scaledWidth !== M)) && (this.setState({
1956
+ height: x,
1927
1957
  width: A,
1928
- scaledHeight: h,
1958
+ scaledHeight: p,
1929
1959
  scaledWidth: M
1930
1960
  }), typeof u == "function" && u({
1931
- height: w,
1932
- scaledHeight: h,
1961
+ height: x,
1962
+ scaledHeight: p,
1933
1963
  scaledWidth: M,
1934
1964
  width: A
1935
1965
  }));
@@ -1944,7 +1974,7 @@ class Zi extends Gt {
1944
1974
  } = this.props;
1945
1975
  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(() => {
1946
1976
  this._timeoutId = setTimeout(this._onResize, 0);
1947
- }), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Gi(n), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
1977
+ }), this._resizeObserver.observe(this._parentNode)) : (this._detectElementResize = Xi(n), this._detectElementResize.addResizeListener(this._parentNode, this._onResize)), this._onResize()));
1948
1978
  }
1949
1979
  componentWillUnmount() {
1950
1980
  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()));
@@ -1960,24 +1990,24 @@ class Zi extends Gt {
1960
1990
  onResize: o,
1961
1991
  style: y = {},
1962
1992
  tagName: E = "div",
1963
- ..._
1993
+ ...N
1964
1994
  } = this.props, {
1965
1995
  height: S,
1966
- scaledHeight: x,
1996
+ scaledHeight: w,
1967
1997
  scaledWidth: T,
1968
- width: N
1969
- } = this.state, h = {
1998
+ width: _
1999
+ } = this.state, p = {
1970
2000
  overflow: "visible"
1971
2001
  }, M = {};
1972
- let w = !1;
1973
- return u || (S === 0 && (w = !0), h.height = 0, M.height = S, M.scaledHeight = x), I || (N === 0 && (w = !0), h.width = 0, M.width = N, M.scaledWidth = T), ze(E, {
2002
+ let x = !1;
2003
+ return u || (S === 0 && (x = !0), p.height = 0, M.height = S, M.scaledHeight = w), I || (_ === 0 && (x = !0), p.width = 0, M.width = _, M.scaledWidth = T), ze(E, {
1974
2004
  ref: this._setRef,
1975
2005
  style: {
1976
- ...h,
2006
+ ...p,
1977
2007
  ...y
1978
2008
  },
1979
- ..._
1980
- }, !w && n(M));
2009
+ ...N
2010
+ }, !x && n(M));
1981
2011
  }
1982
2012
  }
1983
2013
  function Ke() {
@@ -2000,25 +2030,25 @@ function Xe(i, n) {
2000
2030
  return c.__proto__ = u, c;
2001
2031
  }, Xe(i, n);
2002
2032
  }
2003
- function Ji(i, n) {
2033
+ function tn(i, n) {
2004
2034
  i.prototype = Object.create(n.prototype), i.prototype.constructor = i, Xe(i, n);
2005
2035
  }
2006
2036
  var gt = Number.isNaN || function(n) {
2007
2037
  return typeof n == "number" && n !== n;
2008
2038
  };
2009
- function Ki(i, n) {
2039
+ function rn(i, n) {
2010
2040
  return !!(i === n || gt(i) && gt(n));
2011
2041
  }
2012
- function Xi(i, n) {
2042
+ function nn(i, n) {
2013
2043
  if (i.length !== n.length)
2014
2044
  return !1;
2015
2045
  for (var a = 0; a < i.length; a++)
2016
- if (!Ki(i[a], n[a]))
2046
+ if (!rn(i[a], n[a]))
2017
2047
  return !1;
2018
2048
  return !0;
2019
2049
  }
2020
- function Pe(i, n) {
2021
- n === void 0 && (n = Xi);
2050
+ function qe(i, n) {
2051
+ n === void 0 && (n = nn);
2022
2052
  var a, c = [], u, I = !1;
2023
2053
  function m() {
2024
2054
  for (var o = [], y = 0; y < arguments.length; y++)
@@ -2027,7 +2057,7 @@ function Pe(i, n) {
2027
2057
  }
2028
2058
  return m;
2029
2059
  }
2030
- var en = typeof performance == "object" && typeof performance.now == "function", It = en ? function() {
2060
+ var sn = typeof performance == "object" && typeof performance.now == "function", It = sn ? function() {
2031
2061
  return performance.now();
2032
2062
  } : function() {
2033
2063
  return Date.now();
@@ -2035,7 +2065,7 @@ var en = typeof performance == "object" && typeof performance.now == "function",
2035
2065
  function yt(i) {
2036
2066
  cancelAnimationFrame(i.id);
2037
2067
  }
2038
- function tn(i, n) {
2068
+ function on(i, n) {
2039
2069
  var a = It();
2040
2070
  function c() {
2041
2071
  It() - a >= n ? i.call(null) : u.id = requestAnimationFrame(c);
@@ -2045,13 +2075,13 @@ function tn(i, n) {
2045
2075
  };
2046
2076
  return u;
2047
2077
  }
2048
- var qe = -1;
2078
+ var Ye = -1;
2049
2079
  function xt(i) {
2050
- if (i === void 0 && (i = !1), qe === -1 || i) {
2080
+ if (i === void 0 && (i = !1), Ye === -1 || i) {
2051
2081
  var n = document.createElement("div"), a = n.style;
2052
- a.width = "50px", a.height = "50px", a.overflow = "scroll", document.body.appendChild(n), qe = n.offsetWidth - n.clientWidth, document.body.removeChild(n);
2082
+ a.width = "50px", a.height = "50px", a.overflow = "scroll", document.body.appendChild(n), Ye = n.offsetWidth - n.clientWidth, document.body.removeChild(n);
2053
2083
  }
2054
- return qe;
2084
+ return Ye;
2055
2085
  }
2056
2086
  var ce = null;
2057
2087
  function wt(i) {
@@ -2063,41 +2093,41 @@ function wt(i) {
2063
2093
  }
2064
2094
  return ce;
2065
2095
  }
2066
- var rn = 150, nn = function(n, a) {
2096
+ var an = 150, ln = function(n, a) {
2067
2097
  return n;
2068
2098
  };
2069
- function sn(i) {
2070
- var n, a = i.getItemOffset, c = i.getEstimatedTotalSize, u = i.getItemSize, I = i.getOffsetForIndexAndAlignment, m = i.getStartIndexForOffset, o = i.getStopIndexForStartIndex, y = i.initInstanceProps, E = i.shouldResetStyleCacheOnItemSizeChange, _ = i.validateProps;
2099
+ function cn(i) {
2100
+ var n, a = i.getItemOffset, c = i.getEstimatedTotalSize, u = i.getItemSize, I = i.getOffsetForIndexAndAlignment, m = i.getStartIndexForOffset, o = i.getStopIndexForStartIndex, y = i.initInstanceProps, E = i.shouldResetStyleCacheOnItemSizeChange, N = i.validateProps;
2071
2101
  return n = /* @__PURE__ */ function(S) {
2072
- Ji(x, S);
2073
- function x(N) {
2074
- var h;
2075
- return h = S.call(this, N) || this, h._instanceProps = y(h.props, mt(h)), h._outerRef = void 0, h._resetIsScrollingTimeoutId = null, h.state = {
2076
- instance: mt(h),
2102
+ tn(w, S);
2103
+ function w(_) {
2104
+ var p;
2105
+ return p = S.call(this, _) || this, p._instanceProps = y(p.props, mt(p)), p._outerRef = void 0, p._resetIsScrollingTimeoutId = null, p.state = {
2106
+ instance: mt(p),
2077
2107
  isScrolling: !1,
2078
2108
  scrollDirection: "forward",
2079
- scrollOffset: typeof h.props.initialScrollOffset == "number" ? h.props.initialScrollOffset : 0,
2109
+ scrollOffset: typeof p.props.initialScrollOffset == "number" ? p.props.initialScrollOffset : 0,
2080
2110
  scrollUpdateWasRequested: !1
2081
- }, h._callOnItemsRendered = void 0, h._callOnItemsRendered = Pe(function(M, w, A, z) {
2082
- return h.props.onItemsRendered({
2111
+ }, p._callOnItemsRendered = void 0, p._callOnItemsRendered = qe(function(M, x, A, z) {
2112
+ return p.props.onItemsRendered({
2083
2113
  overscanStartIndex: M,
2084
- overscanStopIndex: w,
2114
+ overscanStopIndex: x,
2085
2115
  visibleStartIndex: A,
2086
2116
  visibleStopIndex: z
2087
2117
  });
2088
- }), h._callOnScroll = void 0, h._callOnScroll = Pe(function(M, w, A) {
2089
- return h.props.onScroll({
2118
+ }), p._callOnScroll = void 0, p._callOnScroll = qe(function(M, x, A) {
2119
+ return p.props.onScroll({
2090
2120
  scrollDirection: M,
2091
- scrollOffset: w,
2121
+ scrollOffset: x,
2092
2122
  scrollUpdateWasRequested: A
2093
2123
  });
2094
- }), h._getItemStyle = void 0, h._getItemStyle = function(M) {
2095
- var w = h.props, A = w.direction, z = w.itemSize, O = w.layout, D = h._getItemStyleCache(E && z, E && O, E && A), L;
2124
+ }), p._getItemStyle = void 0, p._getItemStyle = function(M) {
2125
+ var x = p.props, A = x.direction, z = x.itemSize, b = x.layout, D = p._getItemStyleCache(E && z, E && b, E && A), k;
2096
2126
  if (D.hasOwnProperty(M))
2097
- L = D[M];
2127
+ k = D[M];
2098
2128
  else {
2099
- var j = a(h.props, M, h._instanceProps), W = u(h.props, M, h._instanceProps), V = A === "horizontal" || O === "horizontal", ne = A === "rtl", se = V ? j : 0;
2100
- D[M] = L = {
2129
+ var j = a(p.props, M, p._instanceProps), W = u(p.props, M, p._instanceProps), V = A === "horizontal" || b === "horizontal", ne = A === "rtl", se = V ? j : 0;
2130
+ D[M] = k = {
2101
2131
  position: "absolute",
2102
2132
  left: ne ? void 0 : se,
2103
2133
  right: ne ? se : void 0,
@@ -2106,91 +2136,91 @@ function sn(i) {
2106
2136
  width: V ? W : "100%"
2107
2137
  };
2108
2138
  }
2109
- return L;
2110
- }, h._getItemStyleCache = void 0, h._getItemStyleCache = Pe(function(M, w, A) {
2139
+ return k;
2140
+ }, p._getItemStyleCache = void 0, p._getItemStyleCache = qe(function(M, x, A) {
2111
2141
  return {};
2112
- }), h._onScrollHorizontal = function(M) {
2113
- var w = M.currentTarget, A = w.clientWidth, z = w.scrollLeft, O = w.scrollWidth;
2114
- h.setState(function(D) {
2142
+ }), p._onScrollHorizontal = function(M) {
2143
+ var x = M.currentTarget, A = x.clientWidth, z = x.scrollLeft, b = x.scrollWidth;
2144
+ p.setState(function(D) {
2115
2145
  if (D.scrollOffset === z)
2116
2146
  return null;
2117
- var L = h.props.direction, j = z;
2118
- if (L === "rtl")
2147
+ var k = p.props.direction, j = z;
2148
+ if (k === "rtl")
2119
2149
  switch (wt()) {
2120
2150
  case "negative":
2121
2151
  j = -z;
2122
2152
  break;
2123
2153
  case "positive-descending":
2124
- j = O - A - z;
2154
+ j = b - A - z;
2125
2155
  break;
2126
2156
  }
2127
- return j = Math.max(0, Math.min(j, O - A)), {
2157
+ return j = Math.max(0, Math.min(j, b - A)), {
2128
2158
  isScrolling: !0,
2129
2159
  scrollDirection: D.scrollOffset < z ? "forward" : "backward",
2130
2160
  scrollOffset: j,
2131
2161
  scrollUpdateWasRequested: !1
2132
2162
  };
2133
- }, h._resetIsScrollingDebounced);
2134
- }, h._onScrollVertical = function(M) {
2135
- var w = M.currentTarget, A = w.clientHeight, z = w.scrollHeight, O = w.scrollTop;
2136
- h.setState(function(D) {
2137
- if (D.scrollOffset === O)
2163
+ }, p._resetIsScrollingDebounced);
2164
+ }, p._onScrollVertical = function(M) {
2165
+ var x = M.currentTarget, A = x.clientHeight, z = x.scrollHeight, b = x.scrollTop;
2166
+ p.setState(function(D) {
2167
+ if (D.scrollOffset === b)
2138
2168
  return null;
2139
- var L = Math.max(0, Math.min(O, z - A));
2169
+ var k = Math.max(0, Math.min(b, z - A));
2140
2170
  return {
2141
2171
  isScrolling: !0,
2142
- scrollDirection: D.scrollOffset < L ? "forward" : "backward",
2143
- scrollOffset: L,
2172
+ scrollDirection: D.scrollOffset < k ? "forward" : "backward",
2173
+ scrollOffset: k,
2144
2174
  scrollUpdateWasRequested: !1
2145
2175
  };
2146
- }, h._resetIsScrollingDebounced);
2147
- }, h._outerRefSetter = function(M) {
2148
- var w = h.props.outerRef;
2149
- h._outerRef = M, typeof w == "function" ? w(M) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = M);
2150
- }, h._resetIsScrollingDebounced = function() {
2151
- h._resetIsScrollingTimeoutId !== null && yt(h._resetIsScrollingTimeoutId), h._resetIsScrollingTimeoutId = tn(h._resetIsScrolling, rn);
2152
- }, h._resetIsScrolling = function() {
2153
- h._resetIsScrollingTimeoutId = null, h.setState({
2176
+ }, p._resetIsScrollingDebounced);
2177
+ }, p._outerRefSetter = function(M) {
2178
+ var x = p.props.outerRef;
2179
+ p._outerRef = M, typeof x == "function" ? x(M) : x != null && typeof x == "object" && x.hasOwnProperty("current") && (x.current = M);
2180
+ }, p._resetIsScrollingDebounced = function() {
2181
+ p._resetIsScrollingTimeoutId !== null && yt(p._resetIsScrollingTimeoutId), p._resetIsScrollingTimeoutId = on(p._resetIsScrolling, an);
2182
+ }, p._resetIsScrolling = function() {
2183
+ p._resetIsScrollingTimeoutId = null, p.setState({
2154
2184
  isScrolling: !1
2155
2185
  }, function() {
2156
- h._getItemStyleCache(-1, null);
2186
+ p._getItemStyleCache(-1, null);
2157
2187
  });
2158
- }, h;
2188
+ }, p;
2159
2189
  }
2160
- x.getDerivedStateFromProps = function(h, M) {
2161
- return on(h, M), _(h), null;
2190
+ w.getDerivedStateFromProps = function(p, M) {
2191
+ return un(p, M), N(p), null;
2162
2192
  };
2163
- var T = x.prototype;
2164
- return T.scrollTo = function(h) {
2165
- h = Math.max(0, h), this.setState(function(M) {
2166
- return M.scrollOffset === h ? null : {
2167
- scrollDirection: M.scrollOffset < h ? "forward" : "backward",
2168
- scrollOffset: h,
2193
+ var T = w.prototype;
2194
+ return T.scrollTo = function(p) {
2195
+ p = Math.max(0, p), this.setState(function(M) {
2196
+ return M.scrollOffset === p ? null : {
2197
+ scrollDirection: M.scrollOffset < p ? "forward" : "backward",
2198
+ scrollOffset: p,
2169
2199
  scrollUpdateWasRequested: !0
2170
2200
  };
2171
2201
  }, this._resetIsScrollingDebounced);
2172
- }, T.scrollToItem = function(h, M) {
2202
+ }, T.scrollToItem = function(p, M) {
2173
2203
  M === void 0 && (M = "auto");
2174
- var w = this.props, A = w.itemCount, z = w.layout, O = this.state.scrollOffset;
2175
- h = Math.max(0, Math.min(h, A - 1));
2204
+ var x = this.props, A = x.itemCount, z = x.layout, b = this.state.scrollOffset;
2205
+ p = Math.max(0, Math.min(p, A - 1));
2176
2206
  var D = 0;
2177
2207
  if (this._outerRef) {
2178
- var L = this._outerRef;
2179
- z === "vertical" ? D = L.scrollWidth > L.clientWidth ? xt() : 0 : D = L.scrollHeight > L.clientHeight ? xt() : 0;
2208
+ var k = this._outerRef;
2209
+ z === "vertical" ? D = k.scrollWidth > k.clientWidth ? xt() : 0 : D = k.scrollHeight > k.clientHeight ? xt() : 0;
2180
2210
  }
2181
- this.scrollTo(I(this.props, h, M, O, this._instanceProps, D));
2211
+ this.scrollTo(I(this.props, p, M, b, this._instanceProps, D));
2182
2212
  }, T.componentDidMount = function() {
2183
- var h = this.props, M = h.direction, w = h.initialScrollOffset, A = h.layout;
2184
- if (typeof w == "number" && this._outerRef != null) {
2213
+ var p = this.props, M = p.direction, x = p.initialScrollOffset, A = p.layout;
2214
+ if (typeof x == "number" && this._outerRef != null) {
2185
2215
  var z = this._outerRef;
2186
- M === "horizontal" || A === "horizontal" ? z.scrollLeft = w : z.scrollTop = w;
2216
+ M === "horizontal" || A === "horizontal" ? z.scrollLeft = x : z.scrollTop = x;
2187
2217
  }
2188
2218
  this._callPropsCallbacks();
2189
2219
  }, T.componentDidUpdate = function() {
2190
- var h = this.props, M = h.direction, w = h.layout, A = this.state, z = A.scrollOffset, O = A.scrollUpdateWasRequested;
2191
- if (O && this._outerRef != null) {
2220
+ var p = this.props, M = p.direction, x = p.layout, A = this.state, z = A.scrollOffset, b = A.scrollUpdateWasRequested;
2221
+ if (b && this._outerRef != null) {
2192
2222
  var D = this._outerRef;
2193
- if (M === "horizontal" || w === "horizontal")
2223
+ if (M === "horizontal" || x === "horizontal")
2194
2224
  if (M === "rtl")
2195
2225
  switch (wt()) {
2196
2226
  case "negative":
@@ -2200,8 +2230,8 @@ function sn(i) {
2200
2230
  D.scrollLeft = z;
2201
2231
  break;
2202
2232
  default:
2203
- var L = D.clientWidth, j = D.scrollWidth;
2204
- D.scrollLeft = j - L - z;
2233
+ var k = D.clientWidth, j = D.scrollWidth;
2234
+ D.scrollLeft = j - k - z;
2205
2235
  break;
2206
2236
  }
2207
2237
  else
@@ -2213,58 +2243,58 @@ function sn(i) {
2213
2243
  }, T.componentWillUnmount = function() {
2214
2244
  this._resetIsScrollingTimeoutId !== null && yt(this._resetIsScrollingTimeoutId);
2215
2245
  }, T.render = function() {
2216
- var h = this.props, M = h.children, w = h.className, A = h.direction, z = h.height, O = h.innerRef, D = h.innerElementType, L = h.innerTagName, j = h.itemCount, W = h.itemData, V = h.itemKey, ne = V === void 0 ? nn : V, se = h.layout, Oe = h.outerElementType, Ce = h.outerTagName, Me = h.style, Ae = h.useIsScrolling, Le = h.width, Ee = this.state.isScrolling, pe = A === "horizontal" || se === "horizontal", ke = pe ? this._onScrollHorizontal : this._onScrollVertical, Te = this._getRangeToRender(), F = Te[0], $ = Te[1], fe = [];
2246
+ var p = this.props, M = p.children, x = p.className, A = p.direction, z = p.height, b = p.innerRef, D = p.innerElementType, k = p.innerTagName, j = p.itemCount, W = p.itemData, V = p.itemKey, ne = V === void 0 ? ln : V, se = p.layout, Le = p.outerElementType, ke = p.outerTagName, Me = p.style, Ae = p.useIsScrolling, Be = p.width, Ee = this.state.isScrolling, fe = A === "horizontal" || se === "horizontal", Ce = fe ? this._onScrollHorizontal : this._onScrollVertical, Te = this._getRangeToRender(), F = Te[0], $ = Te[1], me = [];
2217
2247
  if (j > 0)
2218
2248
  for (var ee = F; ee <= $; ee++)
2219
- fe.push(ze(M, {
2249
+ me.push(ze(M, {
2220
2250
  data: W,
2221
2251
  key: ne(ee, W),
2222
2252
  index: ee,
2223
2253
  isScrolling: Ae ? Ee : void 0,
2224
2254
  style: this._getItemStyle(ee)
2225
2255
  }));
2226
- var me = c(this.props, this._instanceProps);
2227
- return ze(Oe || Ce || "div", {
2228
- className: w,
2229
- onScroll: ke,
2256
+ var ge = c(this.props, this._instanceProps);
2257
+ return ze(Le || ke || "div", {
2258
+ className: x,
2259
+ onScroll: Ce,
2230
2260
  ref: this._outerRefSetter,
2231
2261
  style: Ke({
2232
2262
  position: "relative",
2233
2263
  height: z,
2234
- width: Le,
2264
+ width: Be,
2235
2265
  overflow: "auto",
2236
2266
  WebkitOverflowScrolling: "touch",
2237
2267
  willChange: "transform",
2238
2268
  direction: A
2239
2269
  }, Me)
2240
- }, ze(D || L || "div", {
2241
- children: fe,
2242
- ref: O,
2270
+ }, ze(D || k || "div", {
2271
+ children: me,
2272
+ ref: b,
2243
2273
  style: {
2244
- height: pe ? "100%" : me,
2274
+ height: fe ? "100%" : ge,
2245
2275
  pointerEvents: Ee ? "none" : void 0,
2246
- width: pe ? me : "100%"
2276
+ width: fe ? ge : "100%"
2247
2277
  }
2248
2278
  }));
2249
2279
  }, T._callPropsCallbacks = function() {
2250
2280
  if (typeof this.props.onItemsRendered == "function") {
2251
- var h = this.props.itemCount;
2252
- if (h > 0) {
2253
- var M = this._getRangeToRender(), w = M[0], A = M[1], z = M[2], O = M[3];
2254
- this._callOnItemsRendered(w, A, z, O);
2281
+ var p = this.props.itemCount;
2282
+ if (p > 0) {
2283
+ var M = this._getRangeToRender(), x = M[0], A = M[1], z = M[2], b = M[3];
2284
+ this._callOnItemsRendered(x, A, z, b);
2255
2285
  }
2256
2286
  }
2257
2287
  if (typeof this.props.onScroll == "function") {
2258
- var D = this.state, L = D.scrollDirection, j = D.scrollOffset, W = D.scrollUpdateWasRequested;
2259
- this._callOnScroll(L, j, W);
2288
+ var D = this.state, k = D.scrollDirection, j = D.scrollOffset, W = D.scrollUpdateWasRequested;
2289
+ this._callOnScroll(k, j, W);
2260
2290
  }
2261
2291
  }, T._getRangeToRender = function() {
2262
- var h = this.props, M = h.itemCount, w = h.overscanCount, A = this.state, z = A.isScrolling, O = A.scrollDirection, D = A.scrollOffset;
2292
+ var p = this.props, M = p.itemCount, x = p.overscanCount, A = this.state, z = A.isScrolling, b = A.scrollDirection, D = A.scrollOffset;
2263
2293
  if (M === 0)
2264
2294
  return [0, 0, 0, 0];
2265
- var L = m(this.props, D, this._instanceProps), j = o(this.props, L, D, this._instanceProps), W = !z || O === "backward" ? Math.max(1, w) : 1, V = !z || O === "forward" ? Math.max(1, w) : 1;
2266
- return [Math.max(0, L - W), Math.max(0, Math.min(M - 1, j + V)), L, j];
2267
- }, x;
2295
+ var k = m(this.props, D, this._instanceProps), j = o(this.props, k, D, this._instanceProps), W = !z || b === "backward" ? Math.max(1, x) : 1, V = !z || b === "forward" ? Math.max(1, x) : 1;
2296
+ return [Math.max(0, k - W), Math.max(0, Math.min(M - 1, j + V)), k, j];
2297
+ }, w;
2268
2298
  }(vt), n.defaultProps = {
2269
2299
  direction: "ltr",
2270
2300
  itemData: void 0,
@@ -2273,9 +2303,9 @@ function sn(i) {
2273
2303
  useIsScrolling: !1
2274
2304
  }, n;
2275
2305
  }
2276
- var on = function(n, a) {
2306
+ var un = function(n, a) {
2277
2307
  n.children, n.direction, n.height, n.layout, n.innerTagName, n.outerTagName, n.width, a.instance;
2278
- }, an = /* @__PURE__ */ sn({
2308
+ }, dn = /* @__PURE__ */ cn({
2279
2309
  getItemOffset: function(n, a) {
2280
2310
  var c = n.itemSize;
2281
2311
  return a * c;
@@ -2289,19 +2319,19 @@ var on = function(n, a) {
2289
2319
  return c * a;
2290
2320
  },
2291
2321
  getOffsetForIndexAndAlignment: function(n, a, c, u, I, m) {
2292
- var o = n.direction, y = n.height, E = n.itemCount, _ = n.itemSize, S = n.layout, x = n.width, T = o === "horizontal" || S === "horizontal", N = T ? x : y, h = Math.max(0, E * _ - N), M = Math.min(h, a * _), w = Math.max(0, a * _ - N + _ + m);
2293
- switch (c === "smart" && (u >= w - N && u <= M + N ? c = "auto" : c = "center"), c) {
2322
+ var o = n.direction, y = n.height, E = n.itemCount, N = n.itemSize, S = n.layout, w = n.width, T = o === "horizontal" || S === "horizontal", _ = T ? w : y, p = Math.max(0, E * N - _), M = Math.min(p, a * N), x = Math.max(0, a * N - _ + N + m);
2323
+ switch (c === "smart" && (u >= x - _ && u <= M + _ ? c = "auto" : c = "center"), c) {
2294
2324
  case "start":
2295
2325
  return M;
2296
2326
  case "end":
2297
- return w;
2327
+ return x;
2298
2328
  case "center": {
2299
- var A = Math.round(w + (M - w) / 2);
2300
- return A < Math.ceil(N / 2) ? 0 : A > h + Math.floor(N / 2) ? h : A;
2329
+ var A = Math.round(x + (M - x) / 2);
2330
+ return A < Math.ceil(_ / 2) ? 0 : A > p + Math.floor(_ / 2) ? p : A;
2301
2331
  }
2302
2332
  case "auto":
2303
2333
  default:
2304
- return u >= w && u <= M ? u : u < w ? w : M;
2334
+ return u >= x && u <= M ? u : u < x ? x : M;
2305
2335
  }
2306
2336
  },
2307
2337
  getStartIndexForOffset: function(n, a) {
@@ -2309,7 +2339,7 @@ var on = function(n, a) {
2309
2339
  return Math.max(0, Math.min(c - 1, Math.floor(a / u)));
2310
2340
  },
2311
2341
  getStopIndexForStartIndex: function(n, a, c) {
2312
- var u = n.direction, I = n.height, m = n.itemCount, o = n.itemSize, y = n.layout, E = n.width, _ = u === "horizontal" || y === "horizontal", S = a * o, x = _ ? E : I, T = Math.ceil((x + c - S) / o);
2342
+ var u = n.direction, I = n.height, m = n.itemCount, o = n.itemSize, y = n.layout, E = n.width, N = u === "horizontal" || y === "horizontal", S = a * o, w = N ? E : I, T = Math.ceil((w + c - S) / o);
2313
2343
  return Math.max(0, Math.min(
2314
2344
  m - 1,
2315
2345
  a + T - 1
@@ -2323,18 +2353,18 @@ var on = function(n, a) {
2323
2353
  n.itemSize;
2324
2354
  }
2325
2355
  });
2326
- function ln(i) {
2356
+ function hn(i) {
2327
2357
  var n = i.lastRenderedStartIndex, a = i.lastRenderedStopIndex, c = i.startIndex, u = i.stopIndex;
2328
2358
  return !(c > a || u < n);
2329
2359
  }
2330
- function cn(i) {
2360
+ function pn(i) {
2331
2361
  for (var n = i.isItemLoaded, a = i.itemCount, c = i.minimumBatchSize, u = i.startIndex, I = i.stopIndex, m = [], o = null, y = null, E = u; E <= I; E++) {
2332
- var _ = n(E);
2333
- _ ? y !== null && (m.push(o, y), o = y = null) : (y = E, o === null && (o = E));
2362
+ var N = n(E);
2363
+ N ? y !== null && (m.push(o, y), o = y = null) : (y = E, o === null && (o = E));
2334
2364
  }
2335
2365
  if (y !== null) {
2336
- for (var S = Math.min(Math.max(y, o + c - 1), a - 1), x = y + 1; x <= S && !n(x); x++)
2337
- y = x;
2366
+ for (var S = Math.min(Math.max(y, o + c - 1), a - 1), w = y + 1; w <= S && !n(w); w++)
2367
+ y = w;
2338
2368
  m.push(o, y);
2339
2369
  }
2340
2370
  if (m.length)
@@ -2347,10 +2377,10 @@ function cn(i) {
2347
2377
  }
2348
2378
  return m;
2349
2379
  }
2350
- var un = function(i, n) {
2380
+ var fn = function(i, n) {
2351
2381
  if (!(i instanceof n))
2352
2382
  throw new TypeError("Cannot call a class as a function");
2353
- }, dn = function() {
2383
+ }, mn = function() {
2354
2384
  function i(n, a) {
2355
2385
  for (var c = 0; c < a.length; c++) {
2356
2386
  var u = a[c];
@@ -2360,7 +2390,7 @@ var un = function(i, n) {
2360
2390
  return function(n, a, c) {
2361
2391
  return a && i(n.prototype, a), c && i(n, c), n;
2362
2392
  };
2363
- }(), hn = function(i, n) {
2393
+ }(), gn = function(i, n) {
2364
2394
  if (typeof n != "function" && n !== null)
2365
2395
  throw new TypeError("Super expression must either be null or a function, not " + typeof n);
2366
2396
  i.prototype = Object.create(n && n.prototype, {
@@ -2375,21 +2405,21 @@ var un = function(i, n) {
2375
2405
  if (!i)
2376
2406
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2377
2407
  return n && (typeof n == "object" || typeof n == "function") ? n : i;
2378
- }, pn = function(i) {
2379
- hn(n, i);
2408
+ }, In = function(i) {
2409
+ gn(n, i);
2380
2410
  function n() {
2381
2411
  var a, c, u, I;
2382
- un(this, n);
2412
+ fn(this, n);
2383
2413
  for (var m = arguments.length, o = Array(m), y = 0; y < m; y++)
2384
2414
  o[y] = arguments[y];
2385
2415
  return I = (c = (u = Mt(this, (a = n.__proto__ || Object.getPrototypeOf(n)).call.apply(a, [this].concat(o))), u), u._lastRenderedStartIndex = -1, u._lastRenderedStopIndex = -1, u._memoizedUnloadedRanges = [], u._onItemsRendered = function(E) {
2386
- var _ = E.visibleStartIndex, S = E.visibleStopIndex;
2387
- u._lastRenderedStartIndex = _, u._lastRenderedStopIndex = S, u._ensureRowsLoaded(_, S);
2416
+ var N = E.visibleStartIndex, S = E.visibleStopIndex;
2417
+ u._lastRenderedStartIndex = N, u._lastRenderedStopIndex = S, u._ensureRowsLoaded(N, S);
2388
2418
  }, u._setRef = function(E) {
2389
2419
  u._listRef = E;
2390
2420
  }, c), Mt(u, I);
2391
2421
  }
2392
- return dn(n, [{
2422
+ return mn(n, [{
2393
2423
  key: "resetloadMoreItemsCache",
2394
2424
  value: function() {
2395
2425
  var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
@@ -2411,32 +2441,32 @@ var un = function(i, n) {
2411
2441
  }, {
2412
2442
  key: "_ensureRowsLoaded",
2413
2443
  value: function(c, u) {
2414
- var I = this.props, m = I.isItemLoaded, o = I.itemCount, y = I.minimumBatchSize, E = y === void 0 ? 10 : y, _ = I.threshold, S = _ === void 0 ? 15 : _, x = cn({
2444
+ var I = this.props, m = I.isItemLoaded, o = I.itemCount, y = I.minimumBatchSize, E = y === void 0 ? 10 : y, N = I.threshold, S = N === void 0 ? 15 : N, w = pn({
2415
2445
  isItemLoaded: m,
2416
2446
  itemCount: o,
2417
2447
  minimumBatchSize: E,
2418
2448
  startIndex: Math.max(0, c - S),
2419
2449
  stopIndex: Math.min(o - 1, u + S)
2420
2450
  });
2421
- (this._memoizedUnloadedRanges.length !== x.length || this._memoizedUnloadedRanges.some(function(T, N) {
2422
- return x[N] !== T;
2423
- })) && (this._memoizedUnloadedRanges = x, this._loadUnloadedRanges(x));
2451
+ (this._memoizedUnloadedRanges.length !== w.length || this._memoizedUnloadedRanges.some(function(T, _) {
2452
+ return w[_] !== T;
2453
+ })) && (this._memoizedUnloadedRanges = w, this._loadUnloadedRanges(w));
2424
2454
  }
2425
2455
  }, {
2426
2456
  key: "_loadUnloadedRanges",
2427
2457
  value: function(c) {
2428
2458
  for (var u = this, I = this.props.loadMoreItems || this.props.loadMoreRows, m = function(E) {
2429
- var _ = c[E], S = c[E + 1], x = I(_, S);
2430
- x != null && x.then(function() {
2431
- if (ln({
2459
+ var N = c[E], S = c[E + 1], w = I(N, S);
2460
+ w != null && w.then(function() {
2461
+ if (hn({
2432
2462
  lastRenderedStartIndex: u._lastRenderedStartIndex,
2433
2463
  lastRenderedStopIndex: u._lastRenderedStopIndex,
2434
- startIndex: _,
2464
+ startIndex: N,
2435
2465
  stopIndex: S
2436
2466
  })) {
2437
2467
  if (u._listRef == null)
2438
2468
  return;
2439
- typeof u._listRef.resetAfterIndex == "function" ? u._listRef.resetAfterIndex(_, !0) : (typeof u._listRef._getItemStyleCache == "function" && u._listRef._getItemStyleCache(-1), u._listRef.forceUpdate());
2469
+ typeof u._listRef.resetAfterIndex == "function" ? u._listRef.resetAfterIndex(N, !0) : (typeof u._listRef._getItemStyleCache == "function" && u._listRef._getItemStyleCache(-1), u._listRef.forceUpdate());
2440
2470
  }
2441
2471
  });
2442
2472
  }, o = 0; o < c.length; o += 2)
@@ -2444,39 +2474,39 @@ var un = function(i, n) {
2444
2474
  }
2445
2475
  }]), n;
2446
2476
  }(vt);
2447
- const fn = () => Q, mn = /* @__PURE__ */ g("div")({
2477
+ const yn = () => Q, xn = /* @__PURE__ */ g("div")({
2448
2478
  name: "a",
2449
2479
  class: "a1w9zony",
2450
2480
  propsAsIs: !1
2451
- }), gn = /* @__PURE__ */ g("div")({
2481
+ }), wn = /* @__PURE__ */ g("div")({
2452
2482
  name: "l",
2453
2483
  class: "l16qcfv8",
2454
2484
  propsAsIs: !1
2455
- }), In = /* @__PURE__ */ g("img")({
2485
+ }), Mn = /* @__PURE__ */ g("img")({
2456
2486
  name: "p",
2457
2487
  class: "p1gmcc5f",
2458
2488
  propsAsIs: !1
2459
- }), yn = /* @__PURE__ */ g("div")({
2489
+ }), An = /* @__PURE__ */ g("div")({
2460
2490
  name: "s",
2461
2491
  class: "s1doddh0",
2462
2492
  propsAsIs: !1
2463
- }), xn = /* @__PURE__ */ g("div")({
2493
+ }), En = /* @__PURE__ */ g("div")({
2464
2494
  name: "c",
2465
2495
  class: "c1js9xhe",
2466
2496
  propsAsIs: !1
2467
- }), wn = /* @__PURE__ */ g("div")({
2497
+ }), Tn = /* @__PURE__ */ g("div")({
2468
2498
  name: "d",
2469
2499
  class: "d1tmnqsh",
2470
2500
  propsAsIs: !1
2471
- }), Mn = /* @__PURE__ */ g("span")({
2501
+ }), vn = /* @__PURE__ */ g("span")({
2472
2502
  name: "g",
2473
2503
  class: "gi9h87j",
2474
2504
  propsAsIs: !1
2475
- }), An = /* @__PURE__ */ g(fn())({
2505
+ }), Nn = /* @__PURE__ */ g(yn())({
2476
2506
  name: "x",
2477
2507
  class: "x13mk3z6",
2478
2508
  propsAsIs: !0
2479
- }), En = ({
2509
+ }), _n = ({
2480
2510
  rank: i,
2481
2511
  avatar: n,
2482
2512
  name: a,
@@ -2484,29 +2514,29 @@ const fn = () => Q, mn = /* @__PURE__ */ g("div")({
2484
2514
  isCurrentUser: u,
2485
2515
  openItemDetail: I,
2486
2516
  style: m
2487
- }) => /* @__PURE__ */ v(mn, { onClick: I, style: m, children: [
2488
- /* @__PURE__ */ p(gn, { children: i || 0 }),
2489
- /* @__PURE__ */ v(xn, { children: [
2490
- n ? /* @__PURE__ */ p(In, { alt: "leaderboard-item-avatar", src: n }) : /* @__PURE__ */ p(yn, { children: Nt(a || "") }),
2491
- /* @__PURE__ */ v(wn, { children: [
2492
- /* @__PURE__ */ p(Mn, { children: a || "" }),
2493
- u && /* @__PURE__ */ p(An, { name: "icon-star" })
2517
+ }) => /* @__PURE__ */ v(xn, { onClick: I, style: m, children: [
2518
+ /* @__PURE__ */ h(wn, { children: i || 0 }),
2519
+ /* @__PURE__ */ v(En, { children: [
2520
+ n ? /* @__PURE__ */ h(Mn, { alt: "leaderboard-item-avatar", src: n }) : /* @__PURE__ */ h(An, { children: Nt(a || "") }),
2521
+ /* @__PURE__ */ v(Tn, { children: [
2522
+ /* @__PURE__ */ h(vn, { children: a || "" }),
2523
+ u && /* @__PURE__ */ h(Nn, { name: "icon-star" })
2494
2524
  ] })
2495
2525
  ] }),
2496
- /* @__PURE__ */ p("div", { children: _t(c) })
2497
- ] }), Tn = ({
2526
+ /* @__PURE__ */ h("div", { children: _t(c) })
2527
+ ] }), Sn = ({
2498
2528
  items: i,
2499
2529
  currentUserId: n,
2500
2530
  openItemDetail: a,
2501
2531
  fetchMore: c
2502
- }) => /* @__PURE__ */ p(Zi, { children: ({ width: u, height: I }) => /* @__PURE__ */ p(
2503
- pn,
2532
+ }) => /* @__PURE__ */ h(en, { children: ({ width: u, height: I }) => /* @__PURE__ */ h(
2533
+ In,
2504
2534
  {
2505
2535
  isItemLoaded: (m) => m < i.length,
2506
2536
  itemCount: i.length + 1,
2507
2537
  loadMoreItems: c,
2508
- children: ({ onItemsRendered: m, ref: o }) => /* @__PURE__ */ p(
2509
- an,
2538
+ children: ({ onItemsRendered: m, ref: o }) => /* @__PURE__ */ h(
2539
+ dn,
2510
2540
  {
2511
2541
  itemSize: 56,
2512
2542
  onItemsRendered: m,
@@ -2514,8 +2544,8 @@ const fn = () => Q, mn = /* @__PURE__ */ g("div")({
2514
2544
  itemCount: i.length,
2515
2545
  width: u,
2516
2546
  height: I,
2517
- children: ({ index: y, style: E }) => /* @__PURE__ */ p(
2518
- En,
2547
+ children: ({ index: y, style: E }) => /* @__PURE__ */ h(
2548
+ _n,
2519
2549
  {
2520
2550
  style: { ...E, maxHeight: 48 },
2521
2551
  ...i[y],
@@ -2528,76 +2558,76 @@ const fn = () => Q, mn = /* @__PURE__ */ g("div")({
2528
2558
  )
2529
2559
  }
2530
2560
  ) });
2531
- const vn = () => Q, Nn = () => Q, _n = /* @__PURE__ */ g("div")({
2561
+ const zn = () => Q, Dn = () => Q, bn = /* @__PURE__ */ g("div")({
2532
2562
  name: "a",
2533
2563
  class: "ay8exst",
2534
2564
  propsAsIs: !1
2535
- }), Sn = /* @__PURE__ */ g("div")({
2565
+ }), On = /* @__PURE__ */ g("div")({
2536
2566
  name: "l",
2537
2567
  class: "l31riw0",
2538
2568
  propsAsIs: !1
2539
- }), zn = /* @__PURE__ */ g(vn())({
2569
+ }), Ln = /* @__PURE__ */ g(zn())({
2540
2570
  name: "p",
2541
2571
  class: "pcmm4w7",
2542
2572
  propsAsIs: !0
2543
- }), Dn = /* @__PURE__ */ g("div")({
2573
+ }), kn = /* @__PURE__ */ g("div")({
2544
2574
  name: "c",
2545
2575
  class: "cct922a",
2546
2576
  propsAsIs: !1
2547
- }), bn = /* @__PURE__ */ g("div")({
2577
+ }), Bn = /* @__PURE__ */ g("div")({
2548
2578
  name: "s",
2549
2579
  class: "s12b7u74",
2550
2580
  propsAsIs: !1
2551
- }), On = /* @__PURE__ */ g("div")({
2581
+ }), Cn = /* @__PURE__ */ g("div")({
2552
2582
  name: "x",
2553
2583
  class: "x1896nrl",
2554
2584
  propsAsIs: !1
2555
- }), Cn = /* @__PURE__ */ g("div")({
2585
+ }), Rn = /* @__PURE__ */ g("div")({
2556
2586
  name: "d",
2557
2587
  class: "d1vnagog",
2558
2588
  propsAsIs: !1
2559
- }), Ln = /* @__PURE__ */ g("div")({
2589
+ }), Un = /* @__PURE__ */ g("div")({
2560
2590
  name: "g",
2561
2591
  class: "gznzzc2",
2562
2592
  propsAsIs: !1
2563
- }), kn = /* @__PURE__ */ g("span")({
2593
+ }), jn = /* @__PURE__ */ g("span")({
2564
2594
  name: "f",
2565
2595
  class: "fnmvyxu",
2566
2596
  propsAsIs: !1
2567
- }), Bn = /* @__PURE__ */ g("span")({
2597
+ }), Fn = /* @__PURE__ */ g("span")({
2568
2598
  name: "h",
2569
2599
  class: "h1iubd2g",
2570
2600
  propsAsIs: !1
2571
- }), Rn = /* @__PURE__ */ g(Nn())({
2601
+ }), $n = /* @__PURE__ */ g(Dn())({
2572
2602
  name: "m",
2573
2603
  class: "mmvjfuo",
2574
2604
  propsAsIs: !0
2575
- }), Un = /* @__PURE__ */ g("div")({
2605
+ }), Qn = /* @__PURE__ */ g("div")({
2576
2606
  name: "v",
2577
2607
  class: "v1oi1553",
2578
2608
  propsAsIs: !1
2579
- }), jn = /* @__PURE__ */ g("a")({
2609
+ }), Pn = /* @__PURE__ */ g("a")({
2580
2610
  name: "w",
2581
2611
  class: "w1vwcogq",
2582
2612
  propsAsIs: !1
2583
- }), Fn = /* @__PURE__ */ g("span")({
2613
+ }), qn = /* @__PURE__ */ g("span")({
2584
2614
  name: "u",
2585
2615
  class: "utbqo0e",
2586
2616
  propsAsIs: !1
2587
- }), $n = ({
2617
+ }), Yn = ({
2588
2618
  inviteLink: i,
2589
2619
  socialLinks: n,
2590
2620
  inviteCardTitle: a,
2591
2621
  inviteCardSubtext: c,
2592
2622
  primaryColor: u,
2593
2623
  className: I
2594
- }) => /* @__PURE__ */ v(_n, { className: I, children: [
2595
- /* @__PURE__ */ p(Sn, { style: { backgroundColor: u }, children: /* @__PURE__ */ p(zn, { name: "invite-game-icon" }) }),
2596
- /* @__PURE__ */ v(Dn, { children: [
2597
- /* @__PURE__ */ p(bn, { children: a || "" }),
2598
- /* @__PURE__ */ p(On, { children: c || "" })
2624
+ }) => /* @__PURE__ */ v(bn, { className: I, children: [
2625
+ /* @__PURE__ */ h(On, { style: { backgroundColor: u }, children: /* @__PURE__ */ h(Ln, { name: "invite-game-icon" }) }),
2626
+ /* @__PURE__ */ v(kn, { children: [
2627
+ /* @__PURE__ */ h(Bn, { children: a || "" }),
2628
+ /* @__PURE__ */ h(Cn, { children: c || "" })
2599
2629
  ] }),
2600
- i && /* @__PURE__ */ v(Cn, { onClick: async () => {
2630
+ i && /* @__PURE__ */ v(Rn, { onClick: async () => {
2601
2631
  if (i)
2602
2632
  try {
2603
2633
  await navigator.clipboard.writeText(i);
@@ -2605,20 +2635,20 @@ const vn = () => Q, Nn = () => Q, _n = /* @__PURE__ */ g("div")({
2605
2635
  console.error("Unable to copy to clipboard", m);
2606
2636
  }
2607
2637
  }, children: [
2608
- /* @__PURE__ */ v(Ln, { children: [
2609
- /* @__PURE__ */ p(kn, { children: "Invite link" }),
2610
- /* @__PURE__ */ p(Bn, { children: i })
2638
+ /* @__PURE__ */ v(Un, { children: [
2639
+ /* @__PURE__ */ h(jn, { children: "Invite link" }),
2640
+ /* @__PURE__ */ h(Fn, { children: i })
2611
2641
  ] }),
2612
- /* @__PURE__ */ p(Rn, { name: "icon-copy" })
2642
+ /* @__PURE__ */ h($n, { name: "icon-copy" })
2613
2643
  ] }),
2614
- n && n.length > 0 && /* @__PURE__ */ p(Un, { children: n.map(({ icon: m, link: o, label: y }) => /* @__PURE__ */ v(jn, { href: o, target: "_blank", children: [
2615
- /* @__PURE__ */ p(Q, { name: m }),
2616
- /* @__PURE__ */ p(Fn, { children: y })
2644
+ n && n.length > 0 && /* @__PURE__ */ h(Qn, { children: n.map(({ icon: m, link: o, label: y }) => /* @__PURE__ */ v(Pn, { href: o, target: "_blank", children: [
2645
+ /* @__PURE__ */ h(Q, { name: m }),
2646
+ /* @__PURE__ */ h(qn, { children: y })
2617
2647
  ] }, o)) })
2618
- ] }), Qn = ({ deepLink: i }) => {
2648
+ ] }), Wn = ({ deepLink: i }) => {
2619
2649
  const { data: n } = re(i.$store);
2620
- return /* @__PURE__ */ p(
2621
- $n,
2650
+ return /* @__PURE__ */ h(
2651
+ Yn,
2622
2652
  {
2623
2653
  inviteLink: n == null ? void 0 : n.url,
2624
2654
  socialLinks: [
@@ -2637,65 +2667,65 @@ const vn = () => Q, Nn = () => Q, _n = /* @__PURE__ */ g("div")({
2637
2667
  inviteCardSubtext: "Invite and compete against your friends for the top spot on the leaderboard."
2638
2668
  }
2639
2669
  );
2640
- }, Pn = ({ gamification: i }) => {
2670
+ }, Vn = ({ gamification: i }) => {
2641
2671
  const { data: n } = re(i.leaderboardList.$store);
2642
- return n != null && n.length ? /* @__PURE__ */ p(
2643
- Tn,
2672
+ return n != null && n.length ? /* @__PURE__ */ h(
2673
+ Sn,
2644
2674
  {
2645
2675
  fetchMore: i.leaderboardList.fetchMore,
2646
2676
  items: n,
2647
2677
  openItemDetail: i.openUser,
2648
2678
  currentUserId: i.currentUserId.get()
2649
2679
  }
2650
- ) : /* @__PURE__ */ p(Qn, { deepLink: i.deepLink });
2680
+ ) : /* @__PURE__ */ h(Wn, { deepLink: i.deepLink });
2651
2681
  };
2652
- const qn = /* @__PURE__ */ g("button")({
2682
+ const Hn = /* @__PURE__ */ g("button")({
2653
2683
  name: "a",
2654
2684
  class: "akly9h2",
2655
2685
  propsAsIs: !1
2656
- }), Yn = /* @__PURE__ */ g("span")({
2686
+ }), Gn = /* @__PURE__ */ g("span")({
2657
2687
  name: "e",
2658
2688
  class: "eptoiz9",
2659
2689
  propsAsIs: !1
2660
- }), Wn = ({ disabled: i, variant: n = "primary", onClick: a, children: c, ...u }) => /* @__PURE__ */ p(qn, { onClick: a, disabled: i, "data-variant": n, ...u, children: /* @__PURE__ */ p(Yn, { children: c }) });
2661
- const Vn = () => Q, Hn = () => Q, Gn = /* @__PURE__ */ g("div")({
2690
+ }), Zn = ({ disabled: i, variant: n = "primary", onClick: a, children: c, ...u }) => /* @__PURE__ */ h(Hn, { onClick: a, disabled: i, "data-variant": n, ...u, children: /* @__PURE__ */ h(Gn, { children: c }) });
2691
+ const Jn = () => Q, Kn = () => Q, Xn = /* @__PURE__ */ g("div")({
2662
2692
  name: "s",
2663
2693
  class: "s1lblda3",
2664
2694
  propsAsIs: !1
2665
- }), Zn = /* @__PURE__ */ g("div")({
2695
+ }), es = /* @__PURE__ */ g("div")({
2666
2696
  name: "a",
2667
2697
  class: "ascvb2g",
2668
2698
  propsAsIs: !1
2669
- }), Jn = /* @__PURE__ */ g("div")({
2699
+ }), ts = /* @__PURE__ */ g("div")({
2670
2700
  name: "p",
2671
2701
  class: "p17rl8zy",
2672
2702
  propsAsIs: !1
2673
- }), Kn = /* @__PURE__ */ g("div")({
2703
+ }), rs = /* @__PURE__ */ g("div")({
2674
2704
  name: "l",
2675
2705
  class: "l1vvttbn",
2676
2706
  propsAsIs: !1
2677
- }), Ye = /* @__PURE__ */ g(Vn())({
2707
+ }), We = /* @__PURE__ */ g(Jn())({
2678
2708
  name: "c",
2679
2709
  class: "c6fk2ph",
2680
2710
  propsAsIs: !0
2681
- }), Xn = /* @__PURE__ */ g(Hn())({
2711
+ }), is = /* @__PURE__ */ g(Kn())({
2682
2712
  name: "d",
2683
2713
  class: "d1rdm136",
2684
2714
  propsAsIs: !0
2685
- }), es = /* @__PURE__ */ g("div")({
2715
+ }), ns = /* @__PURE__ */ g("div")({
2686
2716
  name: "f",
2687
2717
  class: "fwqnnel",
2688
2718
  propsAsIs: !1
2689
- }), ts = /* @__PURE__ */ g("div")({
2719
+ }), ss = /* @__PURE__ */ g("div")({
2690
2720
  name: "u",
2691
2721
  class: "ucyxnlg",
2692
2722
  propsAsIs: !1
2693
- }), rs = {
2694
- [Ne.LOST]: /* @__PURE__ */ p(Ye, { name: "icon-cross" }),
2695
- [Ne.WON]: /* @__PURE__ */ p(Ye, { name: "icon-check" }),
2723
+ }), os = {
2724
+ [Ne.LOST]: /* @__PURE__ */ h(We, { name: "icon-cross" }),
2725
+ [Ne.WON]: /* @__PURE__ */ h(We, { name: "icon-check" }),
2696
2726
  [Ne.UNSET]: void 0,
2697
- [Ne.DNP]: /* @__PURE__ */ p(Ye, { name: "icon-arrow" })
2698
- }, is = ({
2727
+ [Ne.DNP]: /* @__PURE__ */ h(We, { name: "icon-arrow" })
2728
+ }, as = ({
2699
2729
  questionId: i,
2700
2730
  questionType: n,
2701
2731
  questionStatus: a,
@@ -2704,118 +2734,118 @@ const Vn = () => Q, Hn = () => Q, Gn = /* @__PURE__ */ g("div")({
2704
2734
  openQuestion: I,
2705
2735
  status: m
2706
2736
  }) => {
2707
- const o = Et[n], y = rs[m];
2708
- return o ? /* @__PURE__ */ v(Gn, { onClick: () => I == null ? void 0 : I(i), children: [
2709
- /* @__PURE__ */ v(ts, { children: [
2710
- /* @__PURE__ */ v(Zn, { children: [
2711
- /* @__PURE__ */ p(Xn, { name: o.iconName }),
2712
- /* @__PURE__ */ v(es, { children: [
2737
+ const o = Et[n], y = os[m];
2738
+ return o ? /* @__PURE__ */ v(Xn, { onClick: () => I == null ? void 0 : I(i), children: [
2739
+ /* @__PURE__ */ v(ss, { children: [
2740
+ /* @__PURE__ */ v(es, { children: [
2741
+ /* @__PURE__ */ h(is, { name: o.iconName }),
2742
+ /* @__PURE__ */ v(ns, { children: [
2713
2743
  o.label,
2714
2744
  n === q.TRIVIA && a === we.RESOLVED && " • Expired"
2715
2745
  ] })
2716
2746
  ] }),
2717
- /* @__PURE__ */ p(Jn, { children: c || "" })
2747
+ /* @__PURE__ */ h(ts, { children: c || "" })
2718
2748
  ] }),
2719
- /* @__PURE__ */ p(Kn, { children: y || (u ? /* @__PURE__ */ p(Wn, { children: "Play" }) : null) })
2749
+ /* @__PURE__ */ h(rs, { children: y || (u ? /* @__PURE__ */ h(Zn, { children: "Play" }) : null) })
2720
2750
  ] }) : null;
2721
2751
  };
2722
- const ns = /* @__PURE__ */ g("div")({
2752
+ const ls = /* @__PURE__ */ g("div")({
2723
2753
  name: "n",
2724
2754
  class: "n1jcgove",
2725
2755
  propsAsIs: !1
2726
- }), ss = /* @__PURE__ */ g("button")({
2756
+ }), cs = /* @__PURE__ */ g("button")({
2727
2757
  name: "l",
2728
2758
  class: "l1bwp7hh",
2729
2759
  propsAsIs: !1
2730
- }), os = ({
2760
+ }), us = ({
2731
2761
  openInsight: i,
2732
2762
  questionId: n,
2733
2763
  ...a
2734
- }) => /* @__PURE__ */ v(ns, { children: [
2735
- /* @__PURE__ */ p(bt, { questionId: n, ...a }),
2736
- i && /* @__PURE__ */ p(ss, { onClick: () => i(n), children: "View Insight" })
2764
+ }) => /* @__PURE__ */ v(ls, { children: [
2765
+ /* @__PURE__ */ h(bt, { questionId: n, ...a }),
2766
+ i && /* @__PURE__ */ h(cs, { onClick: () => i(n), children: "View Insight" })
2737
2767
  ] });
2738
- const as = /* @__PURE__ */ g("div")({
2768
+ const ds = /* @__PURE__ */ g("div")({
2739
2769
  name: "t",
2740
2770
  class: "t19vr3p1",
2741
2771
  propsAsIs: !1
2742
- }), ls = ({ questions: i, openQuestion: n }) => /* @__PURE__ */ p(as, { children: i == null ? void 0 : i.map((a) => {
2772
+ }), hs = ({ questions: i, openQuestion: n }) => /* @__PURE__ */ h(ds, { children: i == null ? void 0 : i.map((a) => {
2743
2773
  var c, u;
2744
2774
  if (a.type === "question" && ((c = a.attributes) == null ? void 0 : c.attributes.case) === "question") {
2745
2775
  const I = a.attributes.attributes.value;
2746
- return /* @__PURE__ */ p(is, { openQuestion: n, ...I }, I.questionId);
2776
+ return /* @__PURE__ */ h(as, { openQuestion: n, ...I }, I.questionId);
2747
2777
  }
2748
2778
  if (a.type === "insight" && ((u = a.attributes) == null ? void 0 : u.attributes.case) === "insight") {
2749
2779
  const I = a.attributes.attributes.value;
2750
- return /* @__PURE__ */ p(os, { openInsight: n, ...I }, I.questionId);
2780
+ return /* @__PURE__ */ h(us, { openInsight: n, ...I }, I.questionId);
2751
2781
  }
2752
2782
  return null;
2753
- }) }), cs = ({ store: i, openQuestion: n }) => {
2783
+ }) }), ps = ({ store: i, openQuestion: n }) => {
2754
2784
  const a = re(i);
2755
- return a != null && a.data ? /* @__PURE__ */ p(ls, { openQuestion: n, questions: a.data }) : /* @__PURE__ */ p("div", { children: "wait questions..." });
2756
- }, us = ({ userSummary: i }) => {
2785
+ return a != null && a.data ? /* @__PURE__ */ h(hs, { openQuestion: n, questions: a.data }) : /* @__PURE__ */ h("div", { children: "wait questions..." });
2786
+ }, fs = ({ userSummary: i }) => {
2757
2787
  var n, a;
2758
2788
  const c = re(i.getStore());
2759
- return (n = c.data) != null && n.summary ? /* @__PURE__ */ p(zt, { ...c.data.summary, successRate: (a = c.data.percentage) == null ? void 0 : a.correct }) : /* @__PURE__ */ p("div", { children: "wait user..." });
2760
- }, ds = ({ gamification: i }) => {
2761
- const [n, a] = xe(Ie.HOME);
2789
+ return (n = c.data) != null && n.summary ? /* @__PURE__ */ h(zt, { ...c.data.summary, successRate: (a = c.data.percentage) == null ? void 0 : a.correct }) : /* @__PURE__ */ h("div", { children: "wait user..." });
2790
+ }, ms = ({ gamification: i }) => {
2791
+ const [n, a] = xe(ye.HOME);
2762
2792
  return /* @__PURE__ */ v("div", { style: { height: "100%", display: "flex", flexDirection: "column" }, children: [
2763
- /* @__PURE__ */ v(We, { children: [
2764
- /* @__PURE__ */ p(Ri, { activePage: n, toggleActivePage: a }),
2765
- n === Ie.HOME && /* @__PURE__ */ p(us, { userSummary: i.userSummary })
2793
+ /* @__PURE__ */ v(Ve, { children: [
2794
+ /* @__PURE__ */ h($i, { activePage: n, toggleActivePage: a }),
2795
+ n === ye.HOME && /* @__PURE__ */ h(fs, { userSummary: i.userSummary })
2766
2796
  ] }),
2767
- n === Ie.HOME && /* @__PURE__ */ p(Vt, { children: /* @__PURE__ */ p(cs, { openQuestion: i.openQuestion, store: i.feedList.getStore() }) }),
2768
- n === Ie.LEADERBOARD && /* @__PURE__ */ p(We, { style: { flex: "1 1 auto", paddingTop: 0, paddingBottom: 0 }, children: /* @__PURE__ */ p(Pn, { gamification: i }) })
2797
+ n === ye.HOME && /* @__PURE__ */ h(Vt, { children: /* @__PURE__ */ h(ps, { openQuestion: i.openQuestion, store: i.feedList.getStore() }) }),
2798
+ n === ye.LEADERBOARD && /* @__PURE__ */ h(Ve, { style: { flex: "1 1 auto", paddingTop: 0, paddingBottom: 0 }, children: /* @__PURE__ */ h(Vn, { gamification: i }) })
2769
2799
  ] });
2770
2800
  };
2771
- const hs = () => Ht, At = /* @__PURE__ */ g(hs())({
2801
+ const gs = () => Ht, At = /* @__PURE__ */ g(gs())({
2772
2802
  name: "n",
2773
2803
  class: "n1ph66cs",
2774
2804
  propsAsIs: !0
2775
- }), ps = /* @__PURE__ */ g("div")({
2805
+ }), Is = /* @__PURE__ */ g("div")({
2776
2806
  name: "x",
2777
2807
  class: "xorme7i",
2778
2808
  propsAsIs: !1
2779
- }), fs = ({
2809
+ }), ys = ({
2780
2810
  correct: i,
2781
2811
  incorrect: n
2782
2812
  }) => {
2783
2813
  const a = i + n;
2784
2814
  return a === 0 ? 0 : Math.round(i / a * 100);
2785
- }, zs = ({
2815
+ }, Ls = ({
2786
2816
  gamification: i,
2787
2817
  className: n
2788
2818
  }) => {
2789
2819
  const a = re(i.openedQuestion.$store), c = re(i.openedUser);
2790
- return /* @__PURE__ */ v(ye, {
2791
- children: [a && /* @__PURE__ */ p(At, {
2820
+ return /* @__PURE__ */ v(de, {
2821
+ children: [a && /* @__PURE__ */ h(At, {
2792
2822
  className: n,
2793
- children: /* @__PURE__ */ p(Oi, {
2823
+ children: /* @__PURE__ */ h(Ci, {
2794
2824
  gamification: i
2795
2825
  })
2796
- }), c && /* @__PURE__ */ p(At, {
2826
+ }), c && /* @__PURE__ */ h(At, {
2797
2827
  className: n,
2798
- children: /* @__PURE__ */ v(ps, {
2799
- children: [/* @__PURE__ */ p(St, {
2828
+ children: /* @__PURE__ */ v(Is, {
2829
+ children: [/* @__PURE__ */ h(St, {
2800
2830
  label: "Friend's Rank",
2801
2831
  close: i.closeUser
2802
- }), /* @__PURE__ */ p(We, {
2803
- children: /* @__PURE__ */ p(zt, {
2832
+ }), /* @__PURE__ */ h(Ve, {
2833
+ children: /* @__PURE__ */ h(zt, {
2804
2834
  ...c,
2805
- successRate: fs(c)
2835
+ successRate: ys(c)
2806
2836
  })
2807
2837
  })]
2808
2838
  })
2809
- }), /* @__PURE__ */ p(Tt, {
2839
+ }), /* @__PURE__ */ h(Tt, {
2810
2840
  className: n,
2811
2841
  "data-nav": "true",
2812
- children: /* @__PURE__ */ p(ds, {
2842
+ children: /* @__PURE__ */ h(ms, {
2813
2843
  gamification: i
2814
2844
  })
2815
2845
  })]
2816
2846
  });
2817
2847
  };
2818
2848
  export {
2819
- zs as GamificationOverlay,
2820
- zs as default
2849
+ Ls as GamificationOverlay,
2850
+ Ls as default
2821
2851
  };