@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.
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/dist/cjs/masters.js +1 -1
- package/lib/dist/es/masters.js +1 -1
- package/lib/dist/index-56687fbe.cjs +1 -0
- package/lib/dist/{index-b48a730f.js → index-b7b397b9.js} +620 -590
- package/lib/dist/{masters-187c9707.js → masters-791400ce.js} +1042 -1028
- package/lib/dist/{masters-9e88aaec.cjs → masters-8c3bc143.cjs} +6 -6
- package/lib/dist/style.css +8 -5
- package/lib/es/masters.js +2 -2
- package/lib/es/points.js +9 -9
- package/lib/index-60fabb42.cjs +6 -0
- package/lib/{index-616b0bcd.js → index-81810ce0.js} +100 -86
- package/lib/index-9a1075fa.cjs +1 -0
- package/lib/{index-66ccd267.js → index-d3a5d095.js} +668 -638
- package/lib/{masters-5752c805.js → masters-a0c5967c.js} +45 -45
- package/lib/{masters-1b02c80d.cjs → masters-b0b09591.cjs} +1 -1
- package/lib/style.css +1 -1
- package/package.json +4 -4
- package/lib/dist/index-5d2b7e7a.cjs +0 -1
- package/lib/index-3f5c6152.cjs +0 -6
- package/lib/index-b0206045.cjs +0 -1
package/lib/dist/style.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.pedqibx{--color-bg-transparent:rgba(0,0,0,.8);--color-bg-transparent-vote-container:rgba(10,14,19,0.8);--color-bg-transparent-item:rgba(0,0,0,0.7);--color-bg-transparent-item-vote:rgba(255,255,255,0.1);--color-bg-transparent-item-success:rgba(0,139,251,0.2);--color-bg-transparent-item-error:rgba(205,37,37,0.2);--color-bg-transparent-vote-progress:rgba(255,255,255,0.2);--color-bg-transparent-vote-progress-success:rgba(60,139,251,0.5);--color-bg-transparent-vote-progress-error:rgba(205,37,37,0.5);--color-bg-transparent-onboarding-inapp:rgba(138,159,182,0.2);--color-leaderboard-unit:rgba(255,255,255,0.5);--color-blue-primary:#1589EE;--color-red-primary:#CD2525;--color-red-secondary:#EB5757;--color-blue-question-action-btn:#1589ee;--color-white:#FFFFFF;--color-grey-1:#909395;--color-grey-2:#22262b;--color-grey-3:#2d3135;--color-grey-4:#53565a;--color-grey-primary-onboarding-inapp:#B5B7B8;--color-black-1:#161a1f;--color-green-1:#F7B801;--color-red-1:#A30000;--color-red-2:#FF4170;--color-grey-primary:#909395;--color-divider-color-secondary:#53565a;--color-green-primary-btn:#009B77;--color-primary-green1:#107D57;--color-primary-green2:#006747;--color-primary-green3:#1C4932;--color-primary-green4:#193526;--color-secondary-red1:#DF2F3B;--color-secondary-red2:#BA0C2F;--color-secondary-red3:#f9d6d8;--color-secondary-yellow:#fce300;--color-secondary-green5:#C0DC8F;--color-secondary-green6:#cee5de;--color-neutrals-white:#FFFFFF;--color-neutrals-gray1:#F7F7F7;--color-neutrals-gray2:#F2F2F1;--color-neutrals-gray3:#E8E8E8;--color-neutrals-gray4:#D9D9D6;--color-neutrals-gray5:#B1B3B3;--color-neutrals-gray6:#888B8D;--color-neutrals-gray7:#6B6F73;--color-neutrals-gray8:#53565A;--color-neutrals-gray9:#25282A;--color-neutrals-black:#000000;--font-family:'Benton Sans',BentonSans,Arial,Helvetica,sans-serif;--font-regular:'Benton Sans',BentonSans,Arial,Helvetica,sans-serif;--font-color:#fff;--font-serif:'Tiempos','Tiempos Text',Times New Roman,serif;--font-weight-default:500;--header-height:68px;--animation-duration:0.5s;--animation-function:ease;--container-padding:16px;--border-radius:8px;}.pedqibx *{box-sizing:border-box;}
|
|
2
|
-
.
|
|
2
|
+
._14894ro{background:#222425;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
|
|
3
3
|
.enu64b2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;min-height:36px;max-height:36px;background-color:var(--color-white);border-radius:100px;border:1px solid var(--color-neutrals-gray3);color:var(--color-primary-green1);padding:0px 8px;font-size:12px;font-weight:var(--font-weight-default);-webkit-letter-spacing:-0.5px;-moz-letter-spacing:-0.5px;-ms-letter-spacing:-0.5px;letter-spacing:-0.5px;cursor:pointer;}.enu64b2:hover{border-color:var(--color-primary-green1);}.enu64b2[data-selected='true']{color:var(--color-white);background-color:var(--color-primary-green1);border-color:var(--color-primary-green1);}.enu64b2[data-selected='true']:hover{cursor:default;}.enu64b2[data-selected='true']:disabled:hover{border-color:var(--color-primary-green1);}.enu64b2:disabled{opacity:0.5;cursor:default;}.enu64b2:disabled:hover{cursor:default;border-color:var(--color-neutrals-gray3);}
|
|
4
4
|
.tw2meku{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:22px;height:22px;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:5px;}
|
|
5
5
|
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
.c1t0h6s{-webkit-animation:containerHide-c1t0h6s ease-out;animation:containerHide-c1t0h6s ease-out;-webkit-animation-duration:var(--animation-duration);animation-duration:var(--animation-duration);-webkit-animation-direction:reverse;animation-direction:reverse;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;}@-webkit-keyframes containerHide-c1t0h6s{0%{-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);opacity:0;max-height:0;}80%{opacity:0;-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9);max-height:2500px;}85%{-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9);max-height:2500px;}100%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1;max-height:2500px;}}@keyframes containerHide-c1t0h6s{0%{-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);opacity:0;max-height:0;}80%{opacity:0;-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9);max-height:2500px;}85%{-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9);max-height:2500px;}100%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1;max-height:2500px;}}
|
|
69
69
|
.d1qqtt3e{position:relative;top:var(--header-height);-webkit-animation-duration:calc(var(--animation-duration) * 3);animation-duration:calc(var(--animation-duration) * 3);}.d1qqtt3e > div{padding:var(--container-padding);}
|
|
70
70
|
.idhrx8x{height:100%;background:transparent;font-family:var(--font-regular);position:relative;min-width:324px;overflow:hidden;}
|
|
71
|
-
.r1k6v4ep{width:100%;overflow-y:auto;height:100%;-webkit-transition:-webkit-transform;-webkit-transition:transform;transition:transform;-webkit-transition-duration:var(--animation-duration);transition-duration:var(--animation-duration);-webkit-transition-timing-function:var(--animation-function);transition-timing-function:var(--animation-function);}.r1k6v4ep[data-nav='true']{height:calc(100% - var(--header-height));-webkit-transform:translateY(var(--header-height));-ms-transform:translateY(var(--header-height));transform:translateY(var(--header-height));}.r1k6v4ep[data-question-header='true']{height:calc(100% - var(--question-headers-height));-webkit-transform:translateY(var(--question-headers-height));-ms-transform:translateY(var(--question-headers-height));transform:translateY(var(--question-headers-height));}
|
|
71
|
+
.r1k6v4ep{width:100%;overflow-y:auto;height:100%;-webkit-transition:-webkit-transform;-webkit-transition:transform;transition:transform;-webkit-transition-duration:var(--animation-duration);transition-duration:var(--animation-duration);-webkit-transition-timing-function:var(--animation-function);transition-timing-function:var(--animation-function);}.r1k6v4ep[data-nav='true']{height:calc(100% - var(--header-height));-webkit-transform:translateY(var(--header-height));-ms-transform:translateY(var(--header-height));transform:translateY(var(--header-height));}.r1k6v4ep[data-question-header='true']{height:calc(100% - var(--question-headers-height,0%));-webkit-transform:translateY(var(--question-headers-height));-ms-transform:translateY(var(--question-headers-height));transform:translateY(var(--question-headers-height));}
|
|
72
72
|
.n1v8kucd{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:var(--container-padding);gap:var(--container-padding);}
|
|
73
73
|
.e16yw7z1.n1v8kucd{background-color:var(--color-neutrals-white);}
|
|
74
74
|
.l4qld3l{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:8px;column-gap:8px;padding:4px 17px 4px 4px;border-radius:40px;}.l4qld3l:before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:40px;border:1px solid var(--color-neutrals-white);opacity:0.4;z-index:-1;}@media (max-width:767px){.l4qld3l{padding-right:10px;}}
|
|
@@ -106,6 +106,9 @@
|
|
|
106
106
|
.u1gsbhq4{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:8px 12px;border-radius:4px;background-color:var(--color-primary-green2);}
|
|
107
107
|
.mvj8oco{background:#2d6ffd;border-radius:50%;width:48px;height:48px;text-align:center;text-transform:uppercase;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;color:#fff;font-size:18px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}
|
|
108
108
|
.viqiaf2{border:none;outline:none;background-color:transparent;cursor:pointer;padding:0px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:50%;width:100%;height:100%;max-width:48px;max-height:48px;}
|
|
109
|
+
.i1mbhc7z{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;row-gap:12px;padding-bottom:32px;}
|
|
110
|
+
.n1f9yefw{color:var(--color-primary-green2);font-size:20px;font-family:var(--font-serif);font-weight:400;line-height:26px;text-align:center;}
|
|
111
|
+
.o1n7beii{color:var(--color-neutrals-gray9);font-size:14px;font-weight:var(--font-weight-default);line-height:20px;-webkit-letter-spacing:-0.154px;-moz-letter-spacing:-0.154px;-ms-letter-spacing:-0.154px;letter-spacing:-0.154px;text-align:center;}
|
|
109
112
|
.ciyeb68{width:100%;padding:8px 0px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px;font-size:14px;}.ciyeb68[data-isPrediction='true']{-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;}
|
|
110
113
|
.nfic4xc{min-width:24px;width:24px;height:24px;margin-right:14px;margin-left:12px;}.nfic4xc g > path{fill:var(--color-primary-green1);fill-opacity:1;}
|
|
111
114
|
.d1pd1p66{min-width:32px;width:32px;height:32px;border-radius:50%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin-right:16px;}.d1pd1p66[data-feedbackType='correct']{background-color:var(--color-primary-green1);}.d1pd1p66[data-feedbackType='incorrect']{background-color:var(--color-secondary-red1);}
|
|
@@ -114,9 +117,9 @@
|
|
|
114
117
|
.gzdx7pk{color:var(--color-neutrals-gray9);}
|
|
115
118
|
.smnc4zm{font-weight:400;margin-top:10px;}
|
|
116
119
|
.olc1eph{width:100%;height:100%;}.olc1eph > div:not(:last-child){margin-bottom:16px;}
|
|
117
|
-
.n1yoh29a{width:100%;padding:16px 16px 0px 16px;}
|
|
118
|
-
.
|
|
119
|
-
.
|
|
120
|
+
.n1yoh29a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;padding:16px 16px 0px 16px;}
|
|
121
|
+
.ejkr5mb{font-family:var(--font-serif);font-size:16px;color:var(--color-primary-green2);font-weight:400;margin:16px 0px;margin-bottom:16px;}
|
|
122
|
+
.p82wnnx{position:relative;gap:8px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
120
123
|
.cpm4u8k{background-color:var(--color-neutrals-gray2);border:1px solid transparent;box-sizing:border-box;border-radius:4px;position:relative;max-height:44px;min-height:44px;height:44px;width:100%;}.cpm4u8k:hover:not(:disabled){border-color:var(--color-neutrals-gray5);cursor:pointer;}.cpm4u8k[data-selected='true']{border-color:var(--color-neutrals-gray9);background-color:var(--color-white);}.cpm4u8k[data-answerState='correct']{position:relative;border-color:var(--color-primary-green1);}.cpm4u8k[data-answerState='correct']:before{content:'';top:0;left:0;opacity:0.1;display:block;width:100%;height:100%;position:absolute;background-color:var(--color-primary-green1);}.cpm4u8k[data-answerState='incorrect']{position:relative;border-color:var(--color-secondary-red1);}.cpm4u8k[data-answerState='incorrect']:before{content:'';top:0;left:0;opacity:0.1;display:block;width:100%;height:100%;position:absolute;background-color:var(--color-secondary-red1);}.cpm4u8k[data-isNotChecked='true']{border-color:var(--color-neutrals-gray3);background-color:var(--color-white);}
|
|
121
124
|
.lwfomc3{-webkit-transition:width 1s ease-in;transition:width 1s ease-in;position:absolute;border-radius:3px;height:100%;z-index:0;left:0;top:0;background-color:var(--color-neutrals-gray3);}.lwfomc3[data-answerState='correct']{background-color:var(--color-primary-green1);opacity:0.3;}.lwfomc3[data-answerState='incorrect']{background-color:var(--color-secondary-red1);opacity:0.3;}.lwfomc3[data-answerState='unset']{background-color:var(--color-neutrals-gray3);}
|
|
122
125
|
.dmltvg2{font-weight:var(--font-weight-default);color:var(--color-neutrals-gray9);font-family:var(--font-regular);background-color:transparent;padding:5px 15px 5px 9px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:2px;position:relative;font-size:12px;outline:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;border:none;width:100%;}
|
package/lib/es/masters.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../index-0d23b24e.js";
|
|
3
|
-
import { M as L, a as c } from "../masters-
|
|
3
|
+
import { M as L, a as c } from "../masters-a0c5967c.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./useStreamLayerApp.js";
|
|
6
6
|
import "@streamlayer/sdk-web";
|
|
7
7
|
import "@streamlayer/sdk-web-types";
|
|
8
8
|
import "@nanostores/react";
|
|
9
9
|
import "@streamlayer/sdk-web-interfaces";
|
|
10
|
-
import "../index-
|
|
10
|
+
import "../index-81810ce0.js";
|
|
11
11
|
import "@streamlayer/sdk-web-notifications";
|
|
12
12
|
export {
|
|
13
13
|
L as MastersStreamLayerProvider,
|
package/lib/es/points.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { FeatureType as m } from "@streamlayer/sdk-web-types";
|
|
3
3
|
import { f as l, p } from "../index-0d23b24e.js";
|
|
4
4
|
import { i as c } from "../common-2d2a3ba3.js";
|
|
5
|
-
import { s as t,
|
|
5
|
+
import { s as t, i as u } from "../index-81810ce0.js";
|
|
6
6
|
import { useMemo as d } from "react";
|
|
7
|
-
import { useStore as
|
|
7
|
+
import { useStore as n } from "@nanostores/react";
|
|
8
8
|
import { u as f } from "../app-e4b43a5c.js";
|
|
9
9
|
import "./useStreamLayerApp.js";
|
|
10
10
|
import "@streamlayer/sdk-web";
|
|
@@ -32,23 +32,23 @@ const S = () => u, y = /* @__PURE__ */ t("div")({
|
|
|
32
32
|
name: "m",
|
|
33
33
|
class: "m1jwsyj1",
|
|
34
34
|
propsAsIs: !1
|
|
35
|
-
}), I = ({ points: s }) => /* @__PURE__ */
|
|
35
|
+
}), I = ({ points: s }) => /* @__PURE__ */ i(y, { className: l, children: [
|
|
36
36
|
/* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(v, { name: "icon-trophy" }) }),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ i(x, { children: [
|
|
38
38
|
/* @__PURE__ */ r(g, { children: "Total points" }),
|
|
39
39
|
/* @__PURE__ */ r(A, { children: c(s) })
|
|
40
40
|
] })
|
|
41
41
|
] }), j = ({ userSummary: s }) => {
|
|
42
42
|
var a, e;
|
|
43
|
-
const o =
|
|
43
|
+
const o = n(s.getStore());
|
|
44
44
|
return ((e = (a = o.data) == null ? void 0 : a.summary) == null ? void 0 : e.points) === void 0 ? null : /* @__PURE__ */ r("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(I, { points: o.data.summary.points }) }) });
|
|
45
45
|
}, L = ({ sdk: s }) => {
|
|
46
|
-
const { organizationSettings: o, streamSettings: a } =
|
|
46
|
+
const { organizationSettings: o, streamSettings: a } = n(s.sdkStore), e = d(() => s.getFeature(m.GAMES), [s, o, a]);
|
|
47
47
|
return e ? /* @__PURE__ */ r(j, { userSummary: e.userSummary }) : null;
|
|
48
|
-
},
|
|
48
|
+
}, N = () => {
|
|
49
49
|
const s = f();
|
|
50
50
|
return s ? /* @__PURE__ */ r(L, { sdk: s }) : null;
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
N as StreamLayerSDKPoints
|
|
54
54
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),h=require("./index-9a1075fa.cjs"),re=require("@nanostores/react"),J=require("./masters-b0b09591.cjs"),$=require("react"),O=require("@streamlayer/sdk-web-types"),ne=require("./common-f34b9d88.cjs"),kt=require("react-countdown-circle-timer"),de=require("./index-89c19a6e.cjs");require("@streamlayer/sdk-web-interfaces");require("@streamlayer/sdk-web-notifications");require("./cjs/useStreamLayerApp.js");require("@streamlayer/sdk-web");const Ct=()=>h.i1,Lt=()=>h.i1,Rt=h.styled_default("div")({name:"a",class:"acysrl1",propsAsIs:!1}),Bt=h.styled_default("div")({name:"l",class:"lo57cjm",propsAsIs:!1}),Ut=h.styled_default(Ct())({name:"p",class:"p14kwh4y",propsAsIs:!0}),Ft=h.styled_default("span")({name:"s",class:"sxun7sq",propsAsIs:!1}),$t=h.styled_default("button")({name:"c",class:"c1i8ida8",propsAsIs:!1}),Qt=h.styled_default(Lt())({name:"g",class:"g1m0xfmw",propsAsIs:!0}),mt=({type:i,close:n,label:a})=>{const u=i?J.o[i]:{label:a,iconName:void 0};return l.jsxs(Rt,{children:[l.jsxs(Bt,{children:[(u==null?void 0:u.iconName)&&l.jsx(Ut,{name:u.iconName}),(u==null?void 0:u.label)&&l.jsx(Ft,{children:u.label})]}),l.jsx($t,{onClick:n,children:l.jsx(Qt,{name:"icon-cross"})})]})};const qt=h.styled_default("div")({name:"t",class:"taj61ja",propsAsIs:!1}),Pt=h.styled_default("div")({name:"r",class:"r19fxewd",propsAsIs:!1}),Yt=h.styled_default("div")({name:"i",class:"i1whkbqh",propsAsIs:!1}),Ke=({indicator:i,title:n})=>l.jsxs(qt,{children:[l.jsx(Pt,{children:n}),l.jsx(Yt,{children:i})]});const Wt=h.styled_default("div")({name:"i",class:"i4lbhzs",propsAsIs:!1}),Vt=h.styled_default("div")({name:"o",class:"ordquhq",propsAsIs:!1}),Ht=h.styled_default("div")({name:"n",class:"nwzed99",propsAsIs:!1}),Ae=({indicator:i,title:n})=>l.jsxs(Wt,{children:[l.jsx(Vt,{children:i}),l.jsx(Ht,{children:n})]});const Gt=h.styled_default("div")({name:"o",class:"o15y0waw",propsAsIs:!1}),Zt=h.styled_default("div")({name:"i",class:"ihjewwf",propsAsIs:!1}),Jt=h.styled_default("div")({name:"n",class:"n10e9lv8",propsAsIs:!1}),Kt=h.styled_default("div")({name:"r",class:"r13bxv",propsAsIs:!1}),Xt=h.styled_default("img")({name:"a",class:"a1fi59c9",propsAsIs:!1}),er=h.styled_default("div")({name:"s",class:"s1kkihge",propsAsIs:!1}),tr=h.styled_default("div")({name:"c",class:"cy4f4t",propsAsIs:!1}),rr=h.styled_default("div")({name:"p",class:"p18cnlx1",propsAsIs:!1}),ir=h.styled_default("img")({name:"l",class:"lboqgs5",propsAsIs:!1}),nr=h.styled_default("div")({name:"d",class:"d1oaal4",propsAsIs:!1}),sr=h.styled_default("div")({name:"x",class:"x1yzgo0u",propsAsIs:!1}),or=h.styled_default("div")({name:"f",class:"f1l9i8s8",propsAsIs:!1}),ar=h.styled_default("div")({name:"g",class:"g4cgl4u",propsAsIs:!1}),lr=h.styled_default("div")({name:"h",class:"h1qn1tmd",propsAsIs:!1}),cr=h.styled_default("div")({name:"u",class:"u1gsbhq4",propsAsIs:!1}),ur=h.styled_default("div")({name:"m",class:"mvj8oco",propsAsIs:!1}),dr=h.styled_default("button")({name:"v",class:"viqiaf2",propsAsIs:!1}),fr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY5MTk3IDQuNjY2NjJDMy42OTE5NyA1Ljk5NzA1IDMuOTI5MTQgNy4xNzc4NyA0LjQwMzUgOC4yMDkxMkMzLjQ5OTY2IDguMDI0NTEgMi43NDQ4NyA3LjY2NDg2IDIuMTM5MSA3LjEzMDE0QzEuNTMzMzMgNi41OTU0MiAxLjIzMDQ2IDYuMDc5OCAxLjIzMDQ2IDUuNTgzMjhWNC42NjY2MkgzLjY5MTk3Wk0xNC43Njg2IDQuNjY2NjJWNS41ODMyOEMxNC43Njg2IDYuMDc5OCAxNC40NjU4IDYuNTk1NDIgMTMuODYgNy4xMzAxNEMxMy4yNTQyIDcuNjY0ODYgMTIuNDk5NCA4LjAyNDUxIDExLjU5NTYgOC4yMDkxMkMxMi4wNjk5IDcuMTc3ODcgMTIuMzA3MSA1Ljk5NzA1IDEyLjMwNzEgNC42NjY2MkgxNC43Njg2Wk0xNS45OTk4IDUuNTgzMjlWNC4zNjEwOEMxNS45OTk4IDQuMTA2NDUgMTUuOTEwMSAzLjg5MDAyIDE1LjczMDYgMy43MTE3OEMxNS41NTExIDMuNTMzNTQgMTUuMzMzMiAzLjQ0NDQyIDE1LjA3NjggMy40NDQ0MkgxMi4zMDc2VjIuNTI3NzZDMTIuMzA3NiAyLjEwNzYzIDEyLjE1NjkgMS43NDc5NyAxMS44NTU2IDEuNDQ4NzhDMTEuNTU0NCAxLjE0OTU5IDExLjE5MjIgMSAxMC43NjkxIDFINS4yMzA3MkM0LjgwNzY0IDEgNC40NDU0NyAxLjE0OTU5IDQuMTQ0MTkgMS40NDg3OEMzLjg0MjkxIDEuNzQ3OTcgMy42OTIyNyAyLjEwNzYzIDMuNjkyMjcgMi41Mjc3NlYzLjQ0NDQySDAuOTIzMDY4QzAuNjY2NjU5IDMuNDQ0NDIgMC40NDg3MTQgMy41MzM1NCAwLjI2OTIyOCAzLjcxMTc4QzAuMDg5NzQxOCAzLjg5MDAyIDAgNC4xMDY0NSAwIDQuMzYxMDhWNS41ODMyOUMwIDYuMDM1MjUgMC4xMzMwMSA2LjQ5MDM5IDAuMzk5MDM0IDYuOTQ4NzJDMC42NjUwNTkgNy40MDcwNSAxLjAyNDAzIDcuODIwODIgMS40NzU5NSA4LjE5MDAzQzEuOTI3ODcgOC41NTkyNCAyLjQ4MjM0IDguODY5NTcgMy4xMzkzOSA5LjEyMTAxQzMuNzk2NDQgOS4zNzI0NiA0LjQ4NzEzIDkuNTE0MDkgNS4yMTE0OSA5LjU0NTkyQzUuNDgwNzEgOS44ODk2NyA1Ljc4NTIgMTAuMTkyIDYuMTI0OTQgMTAuNDUzQzYuMzY4NTMgMTAuNjY5NSA2LjUzNjc5IDEwLjkwMDIgNi42Mjk3NCAxMS4xNDUzQzYuNzIyNjkgMTEuMzkwNCA2Ljc2OTE2IDExLjY3NTIgNi43NjkxNiAxMS45OTk5QzYuNzY5MTYgMTIuMzQzNiA2LjY3MTQxIDEyLjYzMzMgNi40NzU5IDEyLjg2ODhDNi4yODAzOCAxMy4xMDQzIDUuOTY3ODkgMTMuMjIyMSA1LjUzODQxIDEzLjIyMjFDNS4wNTc2NCAxMy4yMjIxIDQuNjI5NzYgMTMuMzY2OSA0LjI1NDc2IDEzLjY1NjZDMy44Nzk3NyAxMy45NDYyIDMuNjkyMjcgMTQuMzEwNiAzLjY5MjI3IDE0Ljc0OTlWMTUuMzYxQzMuNjkyMjcgMTUuNDUwMSAzLjcyMTEyIDE1LjUyMzMgMy43Nzg4MSAxNS41ODA2QzMuODM2NSAxNS42Mzc5IDMuOTEwMjIgMTUuNjY2NSAzLjk5OTk2IDE1LjY2NjVIMTEuOTk5OUMxMi4wODk2IDE1LjY2NjUgMTIuMTYzMyAxNS42Mzc5IDEyLjIyMSAxNS41ODA2QzEyLjI3ODcgMTUuNTIzMyAxMi4zMDc2IDE1LjQ1MDEgMTIuMzA3NiAxNS4zNjFWMTQuNzQ5OUMxMi4zMDc2IDE0LjMxMDYgMTIuMTIwMSAxMy45NDYyIDExLjc0NTEgMTMuNjU2NkMxMS4zNzAxIDEzLjM2NjkgMTAuOTQyMiAxMy4yMjIxIDEwLjQ2MTQgMTMuMjIyMUMxMC4wMzE5IDEzLjIyMjEgOS43MTk0NSAxMy4xMDQzIDkuNTIzOTQgMTIuODY4OEM5LjMyODQzIDEyLjYzMzMgOS4yMzA2OCAxMi4zNDM2IDkuMjMwNjggMTEuOTk5OUM5LjIzMDY4IDExLjY3NTIgOS4yNzcxNSAxMS4zOTA0IDkuMzcwMSAxMS4xNDUzQzkuNDYzMDUgMTAuOTAwMiA5LjYzMTMxIDEwLjY2OTUgOS44NzQ5IDEwLjQ1M0MxMC4yMTQ2IDEwLjE5MiAxMC41MTkxIDkuODg5NjcgMTAuNzg4NCA5LjU0NTkyQzExLjUxMjcgOS41MTQwOSAxMi4yMDM0IDkuMzcyNDYgMTIuODYwNCA5LjEyMTAxQzEzLjUxNzUgOC44Njk1NyAxNC4wNzIgOC41NTkyNCAxNC41MjM5IDguMTkwMDNDMTQuOTc1OCA3LjgyMDgyIDE1LjMzNDggNy40MDcwNSAxNS42MDA4IDYuOTQ4NzJDMTUuODY2OCA2LjQ5MDM5IDE1Ljk5OTggNi4wMzUyNSAxNS45OTk4IDUuNTgzMjlaTTYuNzYwNDcgNy4xNzk4TDguMDUxMDkgNi40OTk5N0w5LjM0MTcgNy4xNzk4TDkuMDk1MjEgNS43Mzk4OUwxMC4xMzkzIDQuNzIwMTVMOC42OTYzOSA0LjUxMDA3TDguMDUxMDkgMy4yTDcuNDA1NzggNC41MTAwN0w1Ljk2MjgzIDQuNzIwMTVMNy4wMDY5NiA1LjczOTg5TDYuNzYwNDcgNy4xNzk4WiIgZmlsbD0iI0YyQzk0QyIvPgo8L2c+Cjwvc3ZnPgo=",yt=({avatar:i,name:n,points:a,friendsRank:u,rank:d,streak:x,correct:y,incorrect:o,inTop:g,successRate:A})=>l.jsxs(Gt,{children:[l.jsx(Zt,{children:l.jsxs(Kt,{children:[l.jsxs(dr,{children:[i&&l.jsx(Xt,{alt:"avatar",src:i}),!i&&l.jsx(ur,{children:ne.o(n||"")})]}),l.jsxs(er,{children:[l.jsx(tr,{children:n}),l.jsxs(rr,{children:[l.jsxs(nr,{children:[l.jsx(ir,{alt:"rank-icon",src:fr}),l.jsxs(sr,{children:[ne.i(a),l.jsx(or,{children:"PTS"})]})]}),l.jsx(ar,{}),l.jsxs("div",{children:["TOP ",g||0,"%"]})]})]})]})}),l.jsxs(Jt,{children:[l.jsxs(lr,{children:[l.jsx(Ke,{indicator:u||0,title:"Friends rank"}),l.jsx(Ke,{indicator:d||0,title:"Global rank"})]}),l.jsxs(cr,{children:[l.jsx(Ae,{indicator:x||0,title:"Win streak"}),l.jsx(Ae,{indicator:y||0,title:"Correct"}),l.jsx(Ae,{indicator:o||0,title:"Incorrect"}),l.jsx(Ae,{indicator:`${A||0}%`,title:"Succ. rate"})]})]})]});const hr=h.styled_default("div")({name:"i",class:"i1mbhc7z",propsAsIs:!1}),pr=h.styled_default("div")({name:"n",class:"n1f9yefw",propsAsIs:!1}),mr=h.styled_default("div")({name:"o",class:"o1n7beii",propsAsIs:!1}),yr=({title:i,description:n})=>l.jsxs(hr,{children:[l.jsx(h.i1,{name:"icon-check-circle"}),l.jsx(pr,{children:i}),l.jsx(mr,{children:n})]});const xr=()=>h.i1,gr=h.styled_default("div")({name:"c",class:"ciyeb68",propsAsIs:!1}),Ir=h.styled_default(xr())({name:"n",class:"nfic4xc",propsAsIs:!0}),Xe=h.styled_default("div")({name:"d",class:"d1pd1p66",propsAsIs:!1}),et=h.styled_default("div")({name:"p",class:"p132yxcv",propsAsIs:!1}),wr=h.styled_default("span")({name:"l",class:"l4a8aw",propsAsIs:!1}),Oe=h.styled_default("span")({name:"g",class:"gzdx7pk",propsAsIs:!1}),_r=h.styled_default("div")({name:"s",class:"smnc4zm",propsAsIs:!1}),Mr=({feedbackMessages:i,questionVotedCorrectly:n,questionVoted:a,questionType:u,hasCorrectAnswer:d,questionStatus:x})=>{const y=a&&(u===O.QuestionType.TRIVIA||u===O.QuestionType.PREDICTION);if(!y&&x!==O.QuestionStatus.RESOLVED)return null;const o=u===O.QuestionType.PREDICTION&&!d,g=n?"correct":"incorrect",A=n?i.correctFeedback:i.incorrectFeedback;return l.jsxs(gr,{"data-isPrediction":o,children:[x===O.QuestionStatus.RESOLVED&&u===O.QuestionType.TRIVIA&&!a&&l.jsxs(l.Fragment,{children:[l.jsx(Xe,{children:l.jsx(h.i1,{name:"questionExpired"})}),l.jsxs("div",{children:[l.jsx(et,{children:l.jsx(Oe,{children:"Question Expired"})}),l.jsx(_r,{children:"You can still answer to see if you're correct, but no points are awarded for expired questions."})]})]}),y&&o&&l.jsxs(l.Fragment,{children:[l.jsx(Ir,{name:"icon-prediction"}),l.jsx(Oe,{children:"Stay tuned to see if your prediction was correct."})]}),y&&d&&l.jsxs(l.Fragment,{children:[l.jsx(Xe,{"data-feedbackType":g,children:l.jsx(h.i1,{name:g})}),l.jsx("div",{children:l.jsxs(et,{children:[l.jsx(wr,{"data-feedbackType":g,children:A==null?void 0:A.title}),l.jsx(Oe,{children:A==null?void 0:A.description})]})})]})]})};const Ar=h.styled_default("div")({name:"o",class:"olc1eph",propsAsIs:!1}),Er=h.styled_default("div")({name:"n",class:"n1yoh29a",propsAsIs:!1}),Tr=h.styled_default("div")({name:"e",class:"ejkr5mb",propsAsIs:!1}),jr=h.styled_default("div")({name:"p",class:"p82wnnx",propsAsIs:!1});const vr=()=>xt,Nr=()=>xt,Sr=()=>h.i1,zr=h.styled_default("button")({name:"c",class:"cpm4u8k",propsAsIs:!1}),Dr=h.styled_default("div")({name:"l",class:"lwfomc3",propsAsIs:!1}),br=h.styled_default("span")({name:"d",class:"dmltvg2",propsAsIs:!1}),Or=h.styled_default("div")({name:"s",class:"stfjpqz",propsAsIs:!1}),kr=h.styled_default("div")({name:"p",class:"p198m24r",propsAsIs:!1}),xt=h.styled_default("img")({name:"r",class:"rbq5eu7",propsAsIs:!1}),Cr=h.styled_default(vr())({name:"g",class:"g1iv6oeb",propsAsIs:!0}),Lr=h.styled_default(Nr())({name:"h",class:"h1qtxlqc",propsAsIs:!0}),Rr=h.styled_default("span")({name:"u",class:"udm736q",propsAsIs:!1}),Br=h.styled_default("span")({name:"b",class:"b1da34tx",propsAsIs:!1}),Ur=h.styled_default("span")({name:"x",class:"x1dqwq83",propsAsIs:!1}),Fr=h.styled_default(Sr())({name:"v",class:"v10s9my2",propsAsIs:!0}),tt={[O.QuestionImages.CENTERED]:i=>l.jsx(Cr,{alt:"option-icon",src:i}),[O.QuestionImages.TRANSPARENT]:i=>l.jsx(Or,{children:l.jsx(kr,{style:{backgroundImage:`url(${i})`}})}),[O.QuestionImages.ROUNDED]:i=>l.jsx(Lr,{alt:"option-icon",src:i}),[O.QuestionImages.NONE]:()=>null,[O.QuestionImages.UNSET]:()=>null},$r=({questionType:i,hasCorrectAnswer:n,correct:a,youVoted:u,questionVoted:d})=>{if(i===O.QuestionType.POLL&&u)return"correct";if(i===O.QuestionType.PREDICTION){if(n&&d)return u?a?"correct":"incorrect":a?"correct":"unset";if(u)return"correct"}return i===O.QuestionType.TRIVIA&&d?u?a?"correct":"incorrect":a?"correct":"unset":"unset"},Qr=({questionType:i,questionVoted:n,correct:a,hasCorrectAnswer:u,questionStatus:d})=>i===O.QuestionType.TRIVIA?n&&a:i===O.QuestionType.PREDICTION?n&&a&&u||d===O.QuestionStatus.RESOLVED&&a:!1,qr=i=>{var n;const{id:a,icon:u,text:d,percentageDecimal:x,onVote:y,youSelected:o,questionVoted:g,imageMode:A=O.QuestionImages.ROUNDED,answerTimeExpired:T,questionStatus:v,isLoading:w,questionType:E,correct:j,hasCorrectAnswer:p}=i,_=$r(i),I=Qr({questionType:E,questionVoted:g,correct:j,hasCorrectAnswer:p,questionStatus:v}),M=g||v===O.QuestionStatus.RESOLVED&&E===O.QuestionType.PREDICTION;return l.jsxs(zr,{value:a,"data-selected":o,"data-answerState":_,disabled:g||w||T,onClick:y,children:[M&&l.jsx(Dr,{"data-answerState":_,style:{width:`${x}%`}}),l.jsxs(br,{children:[u&&((n=tt[A])==null?void 0:n.call(tt,u)),l.jsx(Rr,{children:d}),M&&l.jsxs(Br,{children:[I&&l.jsx(Fr,{name:"selected"}),l.jsxs(Ur,{children:[x,"%"]})]})]})]})};const Pr=[de.E.PRIMARY_GREEN1,de.E.SECONDARY_RED1,de.E.SECONDARY_RED1],Yr=[10,10,0],Wr=h.styled_default("div")({name:"A",class:"a1f928zy",propsAsIs:!1}),Vr=de.E.SECONDARY_GREEN6,rt=de.E.SECONDARY_RED3,Hr=de.E.NEUTRALS_GRAY3,Gr=({isPlaying:i=!0,duration:n=30,onTimerExpired:a})=>{const[u,d]=$.useState(n>10?Vr:rt),x=({remainingTime:g})=>l.jsx(Wr,{children:g}),y=$.useCallback(()=>{a==null||a(),d(Hr)},[a,d]),o=$.useCallback(g=>{g===10&&d(rt)},[d]);return l.jsx(kt.CountdownCircleTimer,{isPlaying:i,duration:n,colors:Pr,colorsTime:Yr,size:32,strokeWidth:2,trailStrokeWidth:2,trailColor:u,onComplete:y,onUpdate:o,children:x})};const Zr=()=>h.i1,Jr=h.styled_default("div")({name:"a",class:"a1r7f3z4",propsAsIs:!1}),Kr=h.styled_default("div")({name:"s",class:"sblndl",propsAsIs:!1}),Xr=h.styled_default("div")({name:"l",class:"l7ka1tv",propsAsIs:!1}),ei=h.styled_default(Zr())({name:"p",class:"p1edlxt3",propsAsIs:!0}),ti=h.styled_default("div")({name:"g",class:"ghm08u2",propsAsIs:!1}),ri=h.styled_default("span")({name:"c",class:"c12nsh46",propsAsIs:!1}),ii=h.styled_default("span")({name:"d",class:"dlr9eoc",propsAsIs:!1}),ni=({title:i,points:n,isPlayingTimer:a,isTimer:u,onTimerExpired:d})=>l.jsxs(Jr,{children:[l.jsxs(Kr,{children:[i&&l.jsx(Xr,{children:i}),n!==void 0&&l.jsxs(l.Fragment,{children:[l.jsx(ei,{name:"icon-trophy"}),l.jsxs(ti,{children:[l.jsx(ri,{children:n}),l.jsx(ii,{children:"PTS"})]})]})]}),u&&l.jsx(Gr,{isPlaying:a,onTimerExpired:d})]}),si=({openedQuestion:i,vote:n,close:a})=>{var u;const d=i.subject,x=i.type,y=(u=i.options)==null?void 0:u.options,[o,g]=$.useState(!1),[A,T]=$.useState(!1),[v,w]=$.useState(""),E=i==null?void 0:i.id,j=$.useCallback(async z=>{if(E){const S=z.currentTarget.value;w(S),T(!0),await n(E,S),T(!1)}},[E,w,n]),p=$.useCallback(()=>{g(!0),setTimeout(a,3e3)},[a]),_=$.useMemo(()=>i==null?void 0:i.answers.find(z=>z.youVoted===!0),[i]),I=$.useMemo(()=>!!(i!=null&&i.answers.find(z=>z.correct===!0)),[i]),M=$.useMemo(()=>i?i.answers.map(z=>({...z,questionVoted:!!_,youSelected:v===z.id,isLoading:A,hasCorrectAnswer:I,questionType:i.type,answerTimeExpired:o,questionStatus:i.status,onVote:j})):[],[I,o,A,i,_,j,v]),N=y&&(y.case==="trivia"||y.case==="prediction")?y.value:void 0;return l.jsx(J.r,{"data-question-header":"true",children:l.jsx(Ar,{children:l.jsxs(Er,{children:[N&&l.jsx(Mr,{feedbackMessages:N,questionVoted:!!_,questionVotedCorrectly:_==null?void 0:_.correct,questionType:x,hasCorrectAnswer:I,questionStatus:i.status}),l.jsx(ni,{title:o?"Time expired":"To win",points:o?void 0:100,onTimerExpired:p,isTimer:!0}),o?l.jsx(yr,{title:"More to come...",description:"Watch for additional enhanced stream interactive experience."}):l.jsxs(l.Fragment,{children:[l.jsx(Tr,{children:d}),l.jsx(jr,{children:M.map(z=>l.jsx(qr,{...z},z.id))})]})]})})})};const oi=h.styled_default("div")({name:"e",class:"e1eio0mt",propsAsIs:!1}),ai=h.styled_default("div")({name:"i",class:"iigl87b",propsAsIs:!1}),li=h.styled_default("h3")({name:"n",class:"n1o2cwub",propsAsIs:!1}),ci=h.styled_default("div")({name:"r",class:"r3uxe45",propsAsIs:!1}),ui=h.styled_default("div")({name:"l",class:"lrqius",propsAsIs:!1}),gt=({created:i,title:n,instantView:a})=>{const u=$.useMemo(()=>{if(i){const d=new Date(i);if(ne.r(d))return{date:ne.a(d),time:ne.n(d)}}return null},[i]);return l.jsxs(oi,{children:[u&&l.jsxs(ui,{children:[u.date," · ",u.time]}),(a==null?void 0:a.video)&&l.jsx(J.w,{source:a.video.url,poster:a.video.thumbnailUrl}),l.jsxs(ai,{children:[l.jsx(li,{children:(a==null?void 0:a.heading)||n}),l.jsx(ci,{children:a==null?void 0:a.body})]})]})};const di=h.styled_default("div")({name:"o",class:"o18unvw4",propsAsIs:!1}),fi=h.styled_default("a")({name:"n",class:"ns0uvk8",propsAsIs:!1}),hi=({instantView:i,...n})=>l.jsxs(di,{children:[l.jsx(gt,{instantView:i,...n}),(i==null?void 0:i.webLink)&&l.jsxs(fi,{href:i==null?void 0:i.webLink.url,target:"_blank",children:["Explore more of the Masters History",l.jsx(h.i1,{name:"icon-external-link"})]})]});const pi=h.styled_default("div")({name:"d",class:"dk8r1eq",propsAsIs:!1}),mi=({openedQuestion:i})=>{var n;return((n=i==null?void 0:i.attributes)==null?void 0:n.attributes.case)==="insight"?l.jsx(hi,{created:i.attributes.created,...i.attributes.attributes.value}):null},yi=({extendedQuestion:i,vote:n,close:a})=>{const{loading:u,data:d}=i;return!u&&d?l.jsx(si,{vote:n,close:a,openedQuestion:d}):null},xi=({gamification:i})=>{var n;const a=re.useStore(i.openedQuestion.$store),u=re.useStore(i.openedQuestion.$extendedStore);if(!a)return null;const d=a.type;return l.jsxs(pi,{children:[l.jsx(mt,{close:i.closeQuestion,type:((n=a.attributes)==null?void 0:n.type)||O.QuestionType.UNSET}),d==="question"&&l.jsx(yi,{vote:i.submitAnswer,close:i.closeQuestion,extendedQuestion:u}),d!=="question"&&l.jsx(mi,{openedQuestion:a})]})};const gi=h.styled_default("div")({name:"t",class:"tcim9sm",propsAsIs:!1}),Ii=h.styled_default("div")({name:"e",class:"e8wco6o",propsAsIs:!1}),wi=h.styled_default("button")({name:"n",class:"n1ardwzl",propsAsIs:!1}),_i=h.styled_default("span")({name:"i",class:"i1vk8ojx",propsAsIs:!1});var xe=(i=>(i.HOME="home",i.LEADERBOARD="leaderboard",i))(xe||{});const it=({title:i,active:n,onClick:a})=>l.jsx(wi,{onClick:a,"data-selected":n,children:l.jsx(_i,{children:i})}),Mi=({activePage:i="home",toggleActivePage:n})=>l.jsx(gi,{children:l.jsxs(Ii,{"data-position":i==="home"?"left":"right",children:[l.jsx(it,{title:"Home",active:i==="home",onClick:()=>n("home")}),l.jsx(it,{title:"Leader Board",active:i==="leaderboard",onClick:()=>n("leaderboard")})]})});var It={},wt={},Te={};Te.byteLength=Ti;Te.toByteArray=vi;Te.fromByteArray=zi;var Z=[],q=[],Ai=typeof Uint8Array<"u"?Uint8Array:Array,ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ce=0,Ei=ke.length;ce<Ei;++ce)Z[ce]=ke[ce],q[ke.charCodeAt(ce)]=ce;q["-".charCodeAt(0)]=62;q["_".charCodeAt(0)]=63;function _t(i){var n=i.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=i.indexOf("=");a===-1&&(a=n);var u=a===n?0:4-a%4;return[a,u]}function Ti(i){var n=_t(i),a=n[0],u=n[1];return(a+u)*3/4-u}function ji(i,n,a){return(n+a)*3/4-a}function vi(i){var n,a=_t(i),u=a[0],d=a[1],x=new Ai(ji(i,u,d)),y=0,o=d>0?u-4:u,g;for(g=0;g<o;g+=4)n=q[i.charCodeAt(g)]<<18|q[i.charCodeAt(g+1)]<<12|q[i.charCodeAt(g+2)]<<6|q[i.charCodeAt(g+3)],x[y++]=n>>16&255,x[y++]=n>>8&255,x[y++]=n&255;return d===2&&(n=q[i.charCodeAt(g)]<<2|q[i.charCodeAt(g+1)]>>4,x[y++]=n&255),d===1&&(n=q[i.charCodeAt(g)]<<10|q[i.charCodeAt(g+1)]<<4|q[i.charCodeAt(g+2)]>>2,x[y++]=n>>8&255,x[y++]=n&255),x}function Ni(i){return Z[i>>18&63]+Z[i>>12&63]+Z[i>>6&63]+Z[i&63]}function Si(i,n,a){for(var u,d=[],x=n;x<a;x+=3)u=(i[x]<<16&16711680)+(i[x+1]<<8&65280)+(i[x+2]&255),d.push(Ni(u));return d.join("")}function zi(i){for(var n,a=i.length,u=a%3,d=[],x=16383,y=0,o=a-u;y<o;y+=x)d.push(Si(i,y,y+x>o?o:y+x));return u===1?(n=i[a-1],d.push(Z[n>>2]+Z[n<<4&63]+"==")):u===2&&(n=(i[a-2]<<8)+i[a-1],d.push(Z[n>>10]+Z[n>>4&63]+Z[n<<2&63]+"=")),d.join("")}var We={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */We.read=function(i,n,a,u,d){var x,y,o=d*8-u-1,g=(1<<o)-1,A=g>>1,T=-7,v=a?d-1:0,w=a?-1:1,E=i[n+v];for(v+=w,x=E&(1<<-T)-1,E>>=-T,T+=o;T>0;x=x*256+i[n+v],v+=w,T-=8);for(y=x&(1<<-T)-1,x>>=-T,T+=u;T>0;y=y*256+i[n+v],v+=w,T-=8);if(x===0)x=1-A;else{if(x===g)return y?NaN:(E?-1:1)*(1/0);y=y+Math.pow(2,u),x=x-A}return(E?-1:1)*y*Math.pow(2,x-u)};We.write=function(i,n,a,u,d,x){var y,o,g,A=x*8-d-1,T=(1<<A)-1,v=T>>1,w=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:x-1,j=u?1:-1,p=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(o=isNaN(n)?1:0,y=T):(y=Math.floor(Math.log(n)/Math.LN2),n*(g=Math.pow(2,-y))<1&&(y--,g*=2),y+v>=1?n+=w/g:n+=w*Math.pow(2,1-v),n*g>=2&&(y++,g/=2),y+v>=T?(o=0,y=T):y+v>=1?(o=(n*g-1)*Math.pow(2,d),y=y+v):(o=n*Math.pow(2,v-1)*Math.pow(2,d),y=0));d>=8;i[a+E]=o&255,E+=j,o/=256,d-=8);for(y=y<<d|o,A+=d;A>0;i[a+E]=y&255,E+=j,y/=256,A-=8);i[a+E-j]|=p*128};/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/(function(i){const n=Te,a=We,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=o,i.SlowBuffer=M,i.INSPECT_MAX_BYTES=50;const d=2147483647;i.kMaxLength=d,o.TYPED_ARRAY_SUPPORT=x(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function x(){try{const r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function y(r){if(r>d)throw new RangeError('The value "'+r+'" is invalid for option "size"');const e=new Uint8Array(r);return Object.setPrototypeOf(e,o.prototype),e}function o(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(r)}return g(r,e,t)}o.poolSize=8192;function g(r,e,t){if(typeof r=="string")return w(r,e);if(ArrayBuffer.isView(r))return j(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(V(r,ArrayBuffer)||r&&V(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(V(r,SharedArrayBuffer)||r&&V(r.buffer,SharedArrayBuffer)))return p(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const s=r.valueOf&&r.valueOf();if(s!=null&&s!==r)return o.from(s,e,t);const c=_(r);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return o.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}o.from=function(r,e,t){return g(r,e,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function A(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function T(r,e,t){return A(r),r<=0?y(r):e!==void 0?typeof t=="string"?y(r).fill(e,t):y(r).fill(e):y(r)}o.alloc=function(r,e,t){return T(r,e,t)};function v(r){return A(r),y(r<0?0:I(r)|0)}o.allocUnsafe=function(r){return v(r)},o.allocUnsafeSlow=function(r){return v(r)};function w(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=N(r,e)|0;let s=y(t);const c=s.write(r,e);return c!==t&&(s=s.slice(0,c)),s}function E(r){const e=r.length<0?0:I(r.length)|0,t=y(e);for(let s=0;s<e;s+=1)t[s]=r[s]&255;return t}function j(r){if(V(r,Uint8Array)){const e=new Uint8Array(r);return p(e.buffer,e.byteOffset,e.byteLength)}return E(r)}function p(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let s;return e===void 0&&t===void 0?s=new Uint8Array(r):t===void 0?s=new Uint8Array(r,e):s=new Uint8Array(r,e,t),Object.setPrototypeOf(s,o.prototype),s}function _(r){if(o.isBuffer(r)){const e=I(r.length)|0,t=y(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||be(r.length)?y(0):E(r);if(r.type==="Buffer"&&Array.isArray(r.data))return E(r.data)}function I(r){if(r>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return r|0}function M(r){return+r!=r&&(r=0),o.alloc(+r)}o.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==o.prototype},o.compare=function(e,t){if(V(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let s=e.length,c=t.length;for(let f=0,m=Math.min(s,c);f<m;++f)if(e[f]!==t[f]){s=e[f],c=t[f];break}return s<c?-1:c<s?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return o.alloc(0);let s;if(t===void 0)for(t=0,s=0;s<e.length;++s)t+=e[s].length;const c=o.allocUnsafe(t);let f=0;for(s=0;s<e.length;++s){let m=e[s];if(V(m,Uint8Array))f+m.length>c.length?(o.isBuffer(m)||(m=o.from(m)),m.copy(c,f)):Uint8Array.prototype.set.call(c,m,f);else if(o.isBuffer(m))m.copy(c,f);else throw new TypeError('"list" argument must be an Array of Buffers');f+=m.length}return c};function N(r,e){if(o.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||V(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);const t=r.length,s=arguments.length>2&&arguments[2]===!0;if(!s&&t===0)return 0;let c=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return De(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Je(r).length;default:if(c)return s?-1:De(r).length;e=(""+e).toLowerCase(),c=!0}}o.byteLength=N;function z(r,e,t){let s=!1;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))return"";for(r||(r="utf8");;)switch(r){case"hex":return Se(this,e,t);case"utf8":case"utf-8":return ge(this,e,t);case"ascii":return we(this,e,t);case"latin1":case"binary":return he(this,e,t);case"base64":return ve(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}o.prototype._isBuffer=!0;function S(r,e,t){const s=r[e];r[e]=r[t],r[t]=s}o.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)S(this,t,t+1);return this},o.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},o.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},o.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?ge(this,0,e):z.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:o.compare(this,e)===0},o.prototype.inspect=function(){let e="";const t=i.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(o.prototype[u]=o.prototype.inspect),o.prototype.compare=function(e,t,s,c,f){if(V(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),s===void 0&&(s=e?e.length:0),c===void 0&&(c=0),f===void 0&&(f=this.length),t<0||s>e.length||c<0||f>this.length)throw new RangeError("out of range index");if(c>=f&&t>=s)return 0;if(c>=f)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,c>>>=0,f>>>=0,this===e)return 0;let m=f-c,D=s-t;const L=Math.min(m,D),C=this.slice(c,f),R=e.slice(t,s);for(let b=0;b<L;++b)if(C[b]!==R[b]){m=C[b],D=R[b];break}return m<D?-1:D<m?1:0};function k(r,e,t,s,c){if(r.length===0)return-1;if(typeof t=="string"?(s=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,be(t)&&(t=c?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(c)return-1;t=r.length-1}else if(t<0)if(c)t=0;else return-1;if(typeof e=="string"&&(e=o.from(e,s)),o.isBuffer(e))return e.length===0?-1:U(r,e,t,s,c);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?c?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):U(r,[e],t,s,c);throw new TypeError("val must be string, number or Buffer")}function U(r,e,t,s,c){let f=1,m=r.length,D=e.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(r.length<2||e.length<2)return-1;f=2,m/=2,D/=2,t/=2}function L(R,b){return f===1?R[b]:R.readUInt16BE(b*f)}let C;if(c){let R=-1;for(C=t;C<m;C++)if(L(r,C)===L(e,R===-1?0:C-R)){if(R===-1&&(R=C),C-R+1===D)return R*f}else R!==-1&&(C-=C-R),R=-1}else for(t+D>m&&(t=m-D),C=t;C>=0;C--){let R=!0;for(let b=0;b<D;b++)if(L(r,C+b)!==L(e,b)){R=!1;break}if(R)return C}return-1}o.prototype.includes=function(e,t,s){return this.indexOf(e,t,s)!==-1},o.prototype.indexOf=function(e,t,s){return k(this,e,t,s,!0)},o.prototype.lastIndexOf=function(e,t,s){return k(this,e,t,s,!1)};function Y(r,e,t,s){t=Number(t)||0;const c=r.length-t;s?(s=Number(s),s>c&&(s=c)):s=c;const f=e.length;s>f/2&&(s=f/2);let m;for(m=0;m<s;++m){const D=parseInt(e.substr(m*2,2),16);if(be(D))return m;r[t+m]=D}return m}function W(r,e,t,s){return Me(De(e,r.length-t),r,t,s)}function se(r,e,t,s){return Me(zt(e),r,t,s)}function oe(r,e,t,s){return Me(Je(e),r,t,s)}function je(r,e,t,s){return Me(Dt(e,r.length-t),r,t,s)}o.prototype.write=function(e,t,s,c){if(t===void 0)c="utf8",s=this.length,t=0;else if(s===void 0&&typeof t=="string")c=t,s=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(s)?(s=s>>>0,c===void 0&&(c="utf8")):(c=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const f=this.length-t;if((s===void 0||s>f)&&(s=f),e.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let m=!1;for(;;)switch(c){case"hex":return Y(this,e,t,s);case"utf8":case"utf-8":return W(this,e,t,s);case"ascii":case"latin1":case"binary":return se(this,e,t,s);case"base64":return oe(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return je(this,e,t,s);default:if(m)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),m=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ve(r,e,t){return e===0&&t===r.length?n.fromByteArray(r):n.fromByteArray(r.slice(e,t))}function ge(r,e,t){t=Math.min(r.length,t);const s=[];let c=e;for(;c<t;){const f=r[c];let m=null,D=f>239?4:f>223?3:f>191?2:1;if(c+D<=t){let L,C,R,b;switch(D){case 1:f<128&&(m=f);break;case 2:L=r[c+1],(L&192)===128&&(b=(f&31)<<6|L&63,b>127&&(m=b));break;case 3:L=r[c+1],C=r[c+2],(L&192)===128&&(C&192)===128&&(b=(f&15)<<12|(L&63)<<6|C&63,b>2047&&(b<55296||b>57343)&&(m=b));break;case 4:L=r[c+1],C=r[c+2],R=r[c+3],(L&192)===128&&(C&192)===128&&(R&192)===128&&(b=(f&15)<<18|(L&63)<<12|(C&63)<<6|R&63,b>65535&&b<1114112&&(m=b))}}m===null?(m=65533,D=1):m>65535&&(m-=65536,s.push(m>>>10&1023|55296),m=56320|m&1023),s.push(m),c+=D}return Ne(s)}const Ie=4096;function Ne(r){const e=r.length;if(e<=Ie)return String.fromCharCode.apply(String,r);let t="",s=0;for(;s<e;)t+=String.fromCharCode.apply(String,r.slice(s,s+=Ie));return t}function we(r,e,t){let s="";t=Math.min(r.length,t);for(let c=e;c<t;++c)s+=String.fromCharCode(r[c]&127);return s}function he(r,e,t){let s="";t=Math.min(r.length,t);for(let c=e;c<t;++c)s+=String.fromCharCode(r[c]);return s}function Se(r,e,t){const s=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>s)&&(t=s);let c="";for(let f=e;f<t;++f)c+=bt[r[f]];return c}function _e(r,e,t){const s=r.slice(e,t);let c="";for(let f=0;f<s.length-1;f+=2)c+=String.fromCharCode(s[f]+s[f+1]*256);return c}o.prototype.slice=function(e,t){const s=this.length;e=~~e,t=t===void 0?s:~~t,e<0?(e+=s,e<0&&(e=0)):e>s&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),t<e&&(t=e);const c=this.subarray(e,t);return Object.setPrototypeOf(c,o.prototype),c};function F(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,s){e=e>>>0,t=t>>>0,s||F(e,t,this.length);let c=this[e],f=1,m=0;for(;++m<t&&(f*=256);)c+=this[e+m]*f;return c},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,s){e=e>>>0,t=t>>>0,s||F(e,t,this.length);let c=this[e+--t],f=1;for(;t>0&&(f*=256);)c+=this[e+--t]*f;return c},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e=e>>>0,t||F(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||F(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||F(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||F(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=te(function(e){e=e>>>0,le(e,"offset");const t=this[e],s=this[e+7];(t===void 0||s===void 0)&&ye(e,this.length-8);const c=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,f=this[++e]+this[++e]*2**8+this[++e]*2**16+s*2**24;return BigInt(c)+(BigInt(f)<<BigInt(32))}),o.prototype.readBigUInt64BE=te(function(e){e=e>>>0,le(e,"offset");const t=this[e],s=this[e+7];(t===void 0||s===void 0)&&ye(e,this.length-8);const c=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],f=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+s;return(BigInt(c)<<BigInt(32))+BigInt(f)}),o.prototype.readIntLE=function(e,t,s){e=e>>>0,t=t>>>0,s||F(e,t,this.length);let c=this[e],f=1,m=0;for(;++m<t&&(f*=256);)c+=this[e+m]*f;return f*=128,c>=f&&(c-=Math.pow(2,8*t)),c},o.prototype.readIntBE=function(e,t,s){e=e>>>0,t=t>>>0,s||F(e,t,this.length);let c=t,f=1,m=this[e+--c];for(;c>0&&(f*=256);)m+=this[e+--c]*f;return f*=128,m>=f&&(m-=Math.pow(2,8*t)),m},o.prototype.readInt8=function(e,t){return e=e>>>0,t||F(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},o.prototype.readInt16LE=function(e,t){e=e>>>0,t||F(e,2,this.length);const s=this[e]|this[e+1]<<8;return s&32768?s|4294901760:s},o.prototype.readInt16BE=function(e,t){e=e>>>0,t||F(e,2,this.length);const s=this[e+1]|this[e]<<8;return s&32768?s|4294901760:s},o.prototype.readInt32LE=function(e,t){return e=e>>>0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e=e>>>0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=te(function(e){e=e>>>0,le(e,"offset");const t=this[e],s=this[e+7];(t===void 0||s===void 0)&&ye(e,this.length-8);const c=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(s<<24);return(BigInt(c)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),o.prototype.readBigInt64BE=te(function(e){e=e>>>0,le(e,"offset");const t=this[e],s=this[e+7];(t===void 0||s===void 0)&&ye(e,this.length-8);const c=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(c)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+s)}),o.prototype.readFloatLE=function(e,t){return e=e>>>0,t||F(e,4,this.length),a.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e=e>>>0,t||F(e,4,this.length),a.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||F(e,8,this.length),a.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||F(e,8,this.length),a.read(this,e,!1,52,8)};function Q(r,e,t,s,c,f){if(!o.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>c||e<f)throw new RangeError('"value" argument is out of bounds');if(t+s>r.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,s,c){if(e=+e,t=t>>>0,s=s>>>0,!c){const D=Math.pow(2,8*s)-1;Q(this,e,t,s,D,0)}let f=1,m=0;for(this[t]=e&255;++m<s&&(f*=256);)this[t+m]=e/f&255;return t+s},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,s,c){if(e=+e,t=t>>>0,s=s>>>0,!c){const D=Math.pow(2,8*s)-1;Q(this,e,t,s,D,0)}let f=s-1,m=1;for(this[t+f]=e&255;--f>=0&&(m*=256);)this[t+f]=e/m&255;return t+s},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,s){return e=+e,t=t>>>0,s||Q(this,e,t,1,255,0),this[t]=e&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,s){return e=+e,t=t>>>0,s||Q(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,s){return e=+e,t=t>>>0,s||Q(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,s){return e=+e,t=t>>>0,s||Q(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,s){return e=+e,t=t>>>0,s||Q(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};function pe(r,e,t,s,c){Ze(e,s,c,r,t,7);let f=Number(e&BigInt(4294967295));r[t++]=f,f=f>>8,r[t++]=f,f=f>>8,r[t++]=f,f=f>>8,r[t++]=f;let m=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=m,m=m>>8,r[t++]=m,m=m>>8,r[t++]=m,m=m>>8,r[t++]=m,t}function ee(r,e,t,s,c){Ze(e,s,c,r,t,7);let f=Number(e&BigInt(4294967295));r[t+7]=f,f=f>>8,r[t+6]=f,f=f>>8,r[t+5]=f,f=f>>8,r[t+4]=f;let m=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=m,m=m>>8,r[t+2]=m,m=m>>8,r[t+1]=m,m=m>>8,r[t]=m,t+8}o.prototype.writeBigUInt64LE=te(function(e,t=0){return pe(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=te(function(e,t=0){return ee(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,s,c){if(e=+e,t=t>>>0,!c){const L=Math.pow(2,8*s-1);Q(this,e,t,s,L-1,-L)}let f=0,m=1,D=0;for(this[t]=e&255;++f<s&&(m*=256);)e<0&&D===0&&this[t+f-1]!==0&&(D=1),this[t+f]=(e/m>>0)-D&255;return t+s},o.prototype.writeIntBE=function(e,t,s,c){if(e=+e,t=t>>>0,!c){const L=Math.pow(2,8*s-1);Q(this,e,t,s,L-1,-L)}let f=s-1,m=1,D=0;for(this[t+f]=e&255;--f>=0&&(m*=256);)e<0&&D===0&&this[t+f+1]!==0&&(D=1),this[t+f]=(e/m>>0)-D&255;return t+s},o.prototype.writeInt8=function(e,t,s){return e=+e,t=t>>>0,s||Q(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},o.prototype.writeInt16LE=function(e,t,s){return e=+e,t=t>>>0,s||Q(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,s){return e=+e,t=t>>>0,s||Q(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},o.prototype.writeInt32LE=function(e,t,s){return e=+e,t=t>>>0,s||Q(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,s){return e=+e,t=t>>>0,s||Q(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},o.prototype.writeBigInt64LE=te(function(e,t=0){return pe(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=te(function(e,t=0){return ee(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function me(r,e,t,s,c,f){if(t+s>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ve(r,e,t,s,c){return e=+e,t=t>>>0,c||me(r,e,t,4),a.write(r,e,t,s,23,4),t+4}o.prototype.writeFloatLE=function(e,t,s){return Ve(this,e,t,!0,s)},o.prototype.writeFloatBE=function(e,t,s){return Ve(this,e,t,!1,s)};function He(r,e,t,s,c){return e=+e,t=t>>>0,c||me(r,e,t,8),a.write(r,e,t,s,52,8),t+8}o.prototype.writeDoubleLE=function(e,t,s){return He(this,e,t,!0,s)},o.prototype.writeDoubleBE=function(e,t,s){return He(this,e,t,!1,s)},o.prototype.copy=function(e,t,s,c){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(s||(s=0),!c&&c!==0&&(c=this.length),t>=e.length&&(t=e.length),t||(t=0),c>0&&c<s&&(c=s),c===s||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),e.length-t<c-s&&(c=e.length-t+s);const f=c-s;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,s,c):Uint8Array.prototype.set.call(e,this.subarray(s,c),t),f},o.prototype.fill=function(e,t,s,c){if(typeof e=="string"){if(typeof t=="string"?(c=t,t=0,s=this.length):typeof s=="string"&&(c=s,s=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!o.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(e.length===1){const m=e.charCodeAt(0);(c==="utf8"&&m<128||c==="latin1")&&(e=m)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<s)throw new RangeError("Out of range index");if(s<=t)return this;t=t>>>0,s=s===void 0?this.length:s>>>0,e||(e=0);let f;if(typeof e=="number")for(f=t;f<s;++f)this[f]=e;else{const m=o.isBuffer(e)?e:o.from(e,c),D=m.length;if(D===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(f=0;f<s-t;++f)this[f+t]=m[f%D]}return this};const ae={};function ze(r,e,t){ae[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}ze("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ze("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError),ze("ERR_OUT_OF_RANGE",function(r,e,t){let s=`The value of "${r}" is out of range.`,c=t;return Number.isInteger(t)&&Math.abs(t)>2**32?c=Ge(String(t)):typeof t=="bigint"&&(c=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(c=Ge(c)),c+="n"),s+=` It must be ${e}. Received ${c}`,s},RangeError);function Ge(r){let e="",t=r.length;const s=r[0]==="-"?1:0;for(;t>=s+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function vt(r,e,t){le(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&ye(e,r.length-(t+1))}function Ze(r,e,t,s,c,f){if(r>t||r<e){const m=typeof e=="bigint"?"n":"";let D;throw f>3?e===0||e===BigInt(0)?D=`>= 0${m} and < 2${m} ** ${(f+1)*8}${m}`:D=`>= -(2${m} ** ${(f+1)*8-1}${m}) and < 2 ** ${(f+1)*8-1}${m}`:D=`>= ${e}${m} and <= ${t}${m}`,new ae.ERR_OUT_OF_RANGE("value",D,r)}vt(s,c,f)}function le(r,e){if(typeof r!="number")throw new ae.ERR_INVALID_ARG_TYPE(e,"number",r)}function ye(r,e,t){throw Math.floor(r)!==r?(le(r,t),new ae.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}const Nt=/[^+/0-9A-Za-z-_]/g;function St(r){if(r=r.split("=")[0],r=r.trim().replace(Nt,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function De(r,e){e=e||1/0;let t;const s=r.length;let c=null;const f=[];for(let m=0;m<s;++m){if(t=r.charCodeAt(m),t>55295&&t<57344){if(!c){if(t>56319){(e-=3)>-1&&f.push(239,191,189);continue}else if(m+1===s){(e-=3)>-1&&f.push(239,191,189);continue}c=t;continue}if(t<56320){(e-=3)>-1&&f.push(239,191,189),c=t;continue}t=(c-55296<<10|t-56320)+65536}else c&&(e-=3)>-1&&f.push(239,191,189);if(c=null,t<128){if((e-=1)<0)break;f.push(t)}else if(t<2048){if((e-=2)<0)break;f.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;f.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;f.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return f}function zt(r){const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function Dt(r,e){let t,s,c;const f=[];for(let m=0;m<r.length&&!((e-=2)<0);++m)t=r.charCodeAt(m),s=t>>8,c=t%256,f.push(c),f.push(s);return f}function Je(r){return n.toByteArray(St(r))}function Me(r,e,t,s){let c;for(c=0;c<s&&!(c+t>=e.length||c>=r.length);++c)e[c+t]=r[c];return c}function V(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function be(r){return r!==r}const bt=function(){const r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const s=t*16;for(let c=0;c<16;++c)e[s+c]=r[t]+r[c]}return e}();function te(r){return typeof BigInt>"u"?Ot:r}function Ot(){throw new Error("BigInt not supported")}})(wt);var Mt={exports:{}},B=Mt.exports={},H,G;function Fe(){throw new Error("setTimeout has not been defined")}function $e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?H=setTimeout:H=Fe}catch{H=Fe}try{typeof clearTimeout=="function"?G=clearTimeout:G=$e}catch{G=$e}})();function At(i){if(H===setTimeout)return setTimeout(i,0);if((H===Fe||!H)&&setTimeout)return H=setTimeout,setTimeout(i,0);try{return H(i,0)}catch{try{return H.call(null,i,0)}catch{return H.call(this,i,0)}}}function Di(i){if(G===clearTimeout)return clearTimeout(i);if((G===$e||!G)&&clearTimeout)return G=clearTimeout,clearTimeout(i);try{return G(i)}catch{try{return G.call(null,i)}catch{return G.call(this,i)}}}var K=[],fe=!1,ie,Ee=-1;function bi(){!fe||!ie||(fe=!1,ie.length?K=ie.concat(K):Ee=-1,K.length&&Et())}function Et(){if(!fe){var i=At(bi);fe=!0;for(var n=K.length;n;){for(ie=K,K=[];++Ee<n;)ie&&ie[Ee].run();Ee=-1,n=K.length}ie=null,fe=!1,Di(i)}}B.nextTick=function(i){var n=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)n[a-1]=arguments[a];K.push(new Tt(i,n)),K.length===1&&!fe&&At(Et)};function Tt(i,n){this.fun=i,this.array=n}Tt.prototype.run=function(){this.fun.apply(null,this.array)};B.title="browser";B.browser=!0;B.env={};B.argv=[];B.version="";B.versions={};function X(){}B.on=X;B.addListener=X;B.once=X;B.off=X;B.removeListener=X;B.removeAllListeners=X;B.emit=X;B.prependListener=X;B.prependOnceListener=X;B.listeners=function(i){return[]};B.binding=function(i){throw new Error("process.binding is not supported")};B.cwd=function(){return"/"};B.chdir=function(i){throw new Error("process.chdir is not supported")};B.umask=function(){return 0};var Oi=Mt.exports;(function(i){Object.defineProperty(i,Symbol.toStringTag,{value:"Module"});const n=wt,a=Oi,u=y=>y&&y.__esModule?y:{default:y},d=u(a),x=globalThis||void 0||self;Object.defineProperty(i,"Buffer",{enumerable:!0,get:()=>n.Buffer}),Object.defineProperty(i,"process",{enumerable:!0,get:()=>d.default}),i.global=x})(It);let P;typeof window<"u"?P=window:typeof self<"u"?P=self:P=It.global;let Qe=null,qe=null;const nt=20,Ce=P.clearTimeout,st=P.setTimeout,Le=P.cancelAnimationFrame||P.mozCancelAnimationFrame||P.webkitCancelAnimationFrame,ot=P.requestAnimationFrame||P.mozRequestAnimationFrame||P.webkitRequestAnimationFrame;Le==null||ot==null?(Qe=Ce,qe=function(n){return st(n,nt)}):(Qe=function([n,a]){Le(n),Ce(a)},qe=function(n){const a=ot(function(){Ce(u),n()}),u=st(function(){Le(a),n()},nt);return[a,u]});function ki(i){let n,a,u,d,x,y,o;const g=typeof document<"u"&&document.attachEvent;if(!g){y=function(I){const M=I.__resizeTriggers__,N=M.firstElementChild,z=M.lastElementChild,S=N.firstElementChild;z.scrollLeft=z.scrollWidth,z.scrollTop=z.scrollHeight,S.style.width=N.offsetWidth+1+"px",S.style.height=N.offsetHeight+1+"px",N.scrollLeft=N.scrollWidth,N.scrollTop=N.scrollHeight},x=function(I){return I.offsetWidth!==I.__resizeLast__.width||I.offsetHeight!==I.__resizeLast__.height},o=function(I){if(I.target.className&&typeof I.target.className.indexOf=="function"&&I.target.className.indexOf("contract-trigger")<0&&I.target.className.indexOf("expand-trigger")<0)return;const M=this;y(this),this.__resizeRAF__&&Qe(this.__resizeRAF__),this.__resizeRAF__=qe(function(){x(M)&&(M.__resizeLast__.width=M.offsetWidth,M.__resizeLast__.height=M.offsetHeight,M.__resizeListeners__.forEach(function(S){S.call(M,I)}))})};let w=!1,E="";u="animationstart";const j="Webkit Moz O ms".split(" ");let p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),_="";{const I=document.createElement("fakeelement");if(I.style.animationName!==void 0&&(w=!0),w===!1){for(let M=0;M<j.length;M++)if(I.style[j[M]+"AnimationName"]!==void 0){_=j[M],E="-"+_.toLowerCase()+"-",u=p[M],w=!0;break}}}a="resizeanim",n="@"+E+"keyframes "+a+" { from { opacity: 0; } to { opacity: 0; } } ",d=E+"animation: 1ms "+a+"; "}const A=function(w){if(!w.getElementById("detectElementResize")){const E=(n||"")+".resize-triggers { "+(d||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',j=w.head||w.getElementsByTagName("head")[0],p=w.createElement("style");p.id="detectElementResize",p.type="text/css",i!=null&&p.setAttribute("nonce",i),p.styleSheet?p.styleSheet.cssText=E:p.appendChild(w.createTextNode(E)),j.appendChild(p)}};return{addResizeListener:function(w,E){if(g)w.attachEvent("onresize",E);else{if(!w.__resizeTriggers__){const j=w.ownerDocument,p=P.getComputedStyle(w);p&&p.position==="static"&&(w.style.position="relative"),A(j),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=j.createElement("div")).className="resize-triggers";const _=j.createElement("div");_.className="expand-trigger",_.appendChild(j.createElement("div"));const I=j.createElement("div");I.className="contract-trigger",w.__resizeTriggers__.appendChild(_),w.__resizeTriggers__.appendChild(I),w.appendChild(w.__resizeTriggers__),y(w),w.addEventListener("scroll",o,!0),u&&(w.__resizeTriggers__.__animationListener__=function(N){N.animationName===a&&y(w)},w.__resizeTriggers__.addEventListener(u,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(E)}},removeResizeListener:function(w,E){if(g)w.detachEvent("onresize",E);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(E),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",o,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(u,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}}}}class Ci extends $.Component{constructor(...n){super(...n),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:a,disableWidth:u,onResize:d}=this.props;if(this._parentNode){var x,y,o,g;const A=window.getComputedStyle(this._parentNode)||{},T=parseFloat((x=A.paddingLeft)!==null&&x!==void 0?x:"0"),v=parseFloat((y=A.paddingRight)!==null&&y!==void 0?y:"0"),w=parseFloat((o=A.paddingTop)!==null&&o!==void 0?o:"0"),E=parseFloat((g=A.paddingBottom)!==null&&g!==void 0?g:"0"),j=this._parentNode.getBoundingClientRect(),p=j.height-w-E,_=j.width-T-v,I=this._parentNode.offsetHeight-w-E,M=this._parentNode.offsetWidth-T-v;(!a&&(this.state.height!==I||this.state.scaledHeight!==p)||!u&&(this.state.width!==M||this.state.scaledWidth!==_))&&(this.setState({height:I,width:M,scaledHeight:p,scaledWidth:_}),typeof d=="function"&&d({height:I,scaledHeight:p,scaledWidth:_,width:M}))}},this._setRef=a=>{this._autoSizer=a}}componentDidMount(){const{nonce:n}=this.props;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(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=ki(n),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){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()))}render(){const{children:n,defaultHeight:a,defaultWidth:u,disableHeight:d=!1,disableWidth:x=!1,nonce:y,onResize:o,style:g={},tagName:A="div",...T}=this.props,{height:v,scaledHeight:w,scaledWidth:E,width:j}=this.state,p={overflow:"visible"},_={};let I=!1;return d||(v===0&&(I=!0),p.height=0,_.height=v,_.scaledHeight=w),x||(j===0&&(I=!0),p.width=0,_.width=j,_.scaledWidth=E),$.createElement(A,{ref:this._setRef,style:{...p,...g},...T},!I&&n(_))}}function Pe(){return Pe=Object.assign?Object.assign.bind():function(i){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])}return i},Pe.apply(this,arguments)}function at(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Ye(i,n){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,d){return u.__proto__=d,u},Ye(i,n)}function Li(i,n){i.prototype=Object.create(n.prototype),i.prototype.constructor=i,Ye(i,n)}var lt=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function Ri(i,n){return!!(i===n||lt(i)&<(n))}function Bi(i,n){if(i.length!==n.length)return!1;for(var a=0;a<i.length;a++)if(!Ri(i[a],n[a]))return!1;return!0}function Re(i,n){n===void 0&&(n=Bi);var a,u=[],d,x=!1;function y(){for(var o=[],g=0;g<arguments.length;g++)o[g]=arguments[g];return x&&a===this&&n(o,u)||(d=i.apply(this,o),x=!0,a=this,u=o),d}return y}var Ui=typeof performance=="object"&&typeof performance.now=="function",ct=Ui?function(){return performance.now()}:function(){return Date.now()};function ut(i){cancelAnimationFrame(i.id)}function Fi(i,n){var a=ct();function u(){ct()-a>=n?i.call(null):d.id=requestAnimationFrame(u)}var d={id:requestAnimationFrame(u)};return d}var Be=-1;function dt(i){if(i===void 0&&(i=!1),Be===-1||i){var n=document.createElement("div"),a=n.style;a.width="50px",a.height="50px",a.overflow="scroll",document.body.appendChild(n),Be=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return Be}var ue=null;function ft(i){if(i===void 0&&(i=!1),ue===null||i){var n=document.createElement("div"),a=n.style;a.width="50px",a.height="50px",a.overflow="scroll",a.direction="rtl";var u=document.createElement("div"),d=u.style;return d.width="100px",d.height="100px",n.appendChild(u),document.body.appendChild(n),n.scrollLeft>0?ue="positive-descending":(n.scrollLeft=1,n.scrollLeft===0?ue="negative":ue="positive-ascending"),document.body.removeChild(n),ue}return ue}var $i=150,Qi=function(n,a){return n};function qi(i){var n,a=i.getItemOffset,u=i.getEstimatedTotalSize,d=i.getItemSize,x=i.getOffsetForIndexAndAlignment,y=i.getStartIndexForOffset,o=i.getStopIndexForStartIndex,g=i.initInstanceProps,A=i.shouldResetStyleCacheOnItemSizeChange,T=i.validateProps;return n=function(v){Li(w,v);function w(j){var p;return p=v.call(this,j)||this,p._instanceProps=g(p.props,at(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:at(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=Re(function(_,I,M,N){return p.props.onItemsRendered({overscanStartIndex:_,overscanStopIndex:I,visibleStartIndex:M,visibleStopIndex:N})}),p._callOnScroll=void 0,p._callOnScroll=Re(function(_,I,M){return p.props.onScroll({scrollDirection:_,scrollOffset:I,scrollUpdateWasRequested:M})}),p._getItemStyle=void 0,p._getItemStyle=function(_){var I=p.props,M=I.direction,N=I.itemSize,z=I.layout,S=p._getItemStyleCache(A&&N,A&&z,A&&M),k;if(S.hasOwnProperty(_))k=S[_];else{var U=a(p.props,_,p._instanceProps),Y=d(p.props,_,p._instanceProps),W=M==="horizontal"||z==="horizontal",se=M==="rtl",oe=W?U:0;S[_]=k={position:"absolute",left:se?void 0:oe,right:se?oe:void 0,top:W?0:U,height:W?"100%":Y,width:W?Y:"100%"}}return k},p._getItemStyleCache=void 0,p._getItemStyleCache=Re(function(_,I,M){return{}}),p._onScrollHorizontal=function(_){var I=_.currentTarget,M=I.clientWidth,N=I.scrollLeft,z=I.scrollWidth;p.setState(function(S){if(S.scrollOffset===N)return null;var k=p.props.direction,U=N;if(k==="rtl")switch(ft()){case"negative":U=-N;break;case"positive-descending":U=z-M-N;break}return U=Math.max(0,Math.min(U,z-M)),{isScrolling:!0,scrollDirection:S.scrollOffset<N?"forward":"backward",scrollOffset:U,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._onScrollVertical=function(_){var I=_.currentTarget,M=I.clientHeight,N=I.scrollHeight,z=I.scrollTop;p.setState(function(S){if(S.scrollOffset===z)return null;var k=Math.max(0,Math.min(z,N-M));return{isScrolling:!0,scrollDirection:S.scrollOffset<k?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},p._resetIsScrollingDebounced)},p._outerRefSetter=function(_){var I=p.props.outerRef;p._outerRef=_,typeof I=="function"?I(_):I!=null&&typeof I=="object"&&I.hasOwnProperty("current")&&(I.current=_)},p._resetIsScrollingDebounced=function(){p._resetIsScrollingTimeoutId!==null&&ut(p._resetIsScrollingTimeoutId),p._resetIsScrollingTimeoutId=Fi(p._resetIsScrolling,$i)},p._resetIsScrolling=function(){p._resetIsScrollingTimeoutId=null,p.setState({isScrolling:!1},function(){p._getItemStyleCache(-1,null)})},p}w.getDerivedStateFromProps=function(p,_){return Pi(p,_),T(p),null};var E=w.prototype;return E.scrollTo=function(p){p=Math.max(0,p),this.setState(function(_){return _.scrollOffset===p?null:{scrollDirection:_.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(p,_){_===void 0&&(_="auto");var I=this.props,M=I.itemCount,N=I.layout,z=this.state.scrollOffset;p=Math.max(0,Math.min(p,M-1));var S=0;if(this._outerRef){var k=this._outerRef;N==="vertical"?S=k.scrollWidth>k.clientWidth?dt():0:S=k.scrollHeight>k.clientHeight?dt():0}this.scrollTo(x(this.props,p,_,z,this._instanceProps,S))},E.componentDidMount=function(){var p=this.props,_=p.direction,I=p.initialScrollOffset,M=p.layout;if(typeof I=="number"&&this._outerRef!=null){var N=this._outerRef;_==="horizontal"||M==="horizontal"?N.scrollLeft=I:N.scrollTop=I}this._callPropsCallbacks()},E.componentDidUpdate=function(){var p=this.props,_=p.direction,I=p.layout,M=this.state,N=M.scrollOffset,z=M.scrollUpdateWasRequested;if(z&&this._outerRef!=null){var S=this._outerRef;if(_==="horizontal"||I==="horizontal")if(_==="rtl")switch(ft()){case"negative":S.scrollLeft=-N;break;case"positive-ascending":S.scrollLeft=N;break;default:var k=S.clientWidth,U=S.scrollWidth;S.scrollLeft=U-k-N;break}else S.scrollLeft=N;else S.scrollTop=N}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&ut(this._resetIsScrollingTimeoutId)},E.render=function(){var p=this.props,_=p.children,I=p.className,M=p.direction,N=p.height,z=p.innerRef,S=p.innerElementType,k=p.innerTagName,U=p.itemCount,Y=p.itemData,W=p.itemKey,se=W===void 0?Qi:W,oe=p.layout,je=p.outerElementType,ve=p.outerTagName,ge=p.style,Ie=p.useIsScrolling,Ne=p.width,we=this.state.isScrolling,he=M==="horizontal"||oe==="horizontal",Se=he?this._onScrollHorizontal:this._onScrollVertical,_e=this._getRangeToRender(),F=_e[0],Q=_e[1],pe=[];if(U>0)for(var ee=F;ee<=Q;ee++)pe.push($.createElement(_,{data:Y,key:se(ee,Y),index:ee,isScrolling:Ie?we:void 0,style:this._getItemStyle(ee)}));var me=u(this.props,this._instanceProps);return $.createElement(je||ve||"div",{className:I,onScroll:Se,ref:this._outerRefSetter,style:Pe({position:"relative",height:N,width:Ne,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:M},ge)},$.createElement(S||k||"div",{children:pe,ref:z,style:{height:he?"100%":me,pointerEvents:we?"none":void 0,width:he?me:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var _=this._getRangeToRender(),I=_[0],M=_[1],N=_[2],z=_[3];this._callOnItemsRendered(I,M,N,z)}}if(typeof this.props.onScroll=="function"){var S=this.state,k=S.scrollDirection,U=S.scrollOffset,Y=S.scrollUpdateWasRequested;this._callOnScroll(k,U,Y)}},E._getRangeToRender=function(){var p=this.props,_=p.itemCount,I=p.overscanCount,M=this.state,N=M.isScrolling,z=M.scrollDirection,S=M.scrollOffset;if(_===0)return[0,0,0,0];var k=y(this.props,S,this._instanceProps),U=o(this.props,k,S,this._instanceProps),Y=!N||z==="backward"?Math.max(1,I):1,W=!N||z==="forward"?Math.max(1,I):1;return[Math.max(0,k-Y),Math.max(0,Math.min(_-1,U+W)),k,U]},w}($.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var Pi=function(n,a){n.children,n.direction,n.height,n.layout,n.innerTagName,n.outerTagName,n.width,a.instance},Yi=qi({getItemOffset:function(n,a){var u=n.itemSize;return a*u},getItemSize:function(n,a){var u=n.itemSize;return u},getEstimatedTotalSize:function(n){var a=n.itemCount,u=n.itemSize;return u*a},getOffsetForIndexAndAlignment:function(n,a,u,d,x,y){var o=n.direction,g=n.height,A=n.itemCount,T=n.itemSize,v=n.layout,w=n.width,E=o==="horizontal"||v==="horizontal",j=E?w:g,p=Math.max(0,A*T-j),_=Math.min(p,a*T),I=Math.max(0,a*T-j+T+y);switch(u==="smart"&&(d>=I-j&&d<=_+j?u="auto":u="center"),u){case"start":return _;case"end":return I;case"center":{var M=Math.round(I+(_-I)/2);return M<Math.ceil(j/2)?0:M>p+Math.floor(j/2)?p:M}case"auto":default:return d>=I&&d<=_?d:d<I?I:_}},getStartIndexForOffset:function(n,a){var u=n.itemCount,d=n.itemSize;return Math.max(0,Math.min(u-1,Math.floor(a/d)))},getStopIndexForStartIndex:function(n,a,u){var d=n.direction,x=n.height,y=n.itemCount,o=n.itemSize,g=n.layout,A=n.width,T=d==="horizontal"||g==="horizontal",v=a*o,w=T?A:x,E=Math.ceil((w+u-v)/o);return Math.max(0,Math.min(y-1,a+E-1))},initInstanceProps:function(n){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(n){n.itemSize}});function Wi(i){var n=i.lastRenderedStartIndex,a=i.lastRenderedStopIndex,u=i.startIndex,d=i.stopIndex;return!(u>a||d<n)}function Vi(i){for(var n=i.isItemLoaded,a=i.itemCount,u=i.minimumBatchSize,d=i.startIndex,x=i.stopIndex,y=[],o=null,g=null,A=d;A<=x;A++){var T=n(A);T?g!==null&&(y.push(o,g),o=g=null):(g=A,o===null&&(o=A))}if(g!==null){for(var v=Math.min(Math.max(g,o+u-1),a-1),w=g+1;w<=v&&!n(w);w++)g=w;y.push(o,g)}if(y.length)for(;y[1]-y[0]+1<u&&y[0]>0;){var E=y[0]-1;if(!n(E))y[0]=E;else break}return y}var Hi=function(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")},Gi=function(){function i(n,a){for(var u=0;u<a.length;u++){var d=a[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(n,d.key,d)}}return function(n,a,u){return a&&i(n.prototype,a),u&&i(n,u),n}}(),Zi=function(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(i,n):i.__proto__=n)},ht=function(i,n){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:i},Ji=function(i){Zi(n,i);function n(){var a,u,d,x;Hi(this,n);for(var y=arguments.length,o=Array(y),g=0;g<y;g++)o[g]=arguments[g];return x=(u=(d=ht(this,(a=n.__proto__||Object.getPrototypeOf(n)).call.apply(a,[this].concat(o))),d),d._lastRenderedStartIndex=-1,d._lastRenderedStopIndex=-1,d._memoizedUnloadedRanges=[],d._onItemsRendered=function(A){var T=A.visibleStartIndex,v=A.visibleStopIndex;d._lastRenderedStartIndex=T,d._lastRenderedStopIndex=v,d._ensureRowsLoaded(T,v)},d._setRef=function(A){d._listRef=A},u),ht(d,x)}return Gi(n,[{key:"resetloadMoreItemsCache",value:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],u&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var u=this.props.children;return u({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(u,d){var x=this.props,y=x.isItemLoaded,o=x.itemCount,g=x.minimumBatchSize,A=g===void 0?10:g,T=x.threshold,v=T===void 0?15:T,w=Vi({isItemLoaded:y,itemCount:o,minimumBatchSize:A,startIndex:Math.max(0,u-v),stopIndex:Math.min(o-1,d+v)});(this._memoizedUnloadedRanges.length!==w.length||this._memoizedUnloadedRanges.some(function(E,j){return w[j]!==E}))&&(this._memoizedUnloadedRanges=w,this._loadUnloadedRanges(w))}},{key:"_loadUnloadedRanges",value:function(u){for(var d=this,x=this.props.loadMoreItems||this.props.loadMoreRows,y=function(A){var T=u[A],v=u[A+1],w=x(T,v);w!=null&&w.then(function(){if(Wi({lastRenderedStartIndex:d._lastRenderedStartIndex,lastRenderedStopIndex:d._lastRenderedStopIndex,startIndex:T,stopIndex:v})){if(d._listRef==null)return;typeof d._listRef.resetAfterIndex=="function"?d._listRef.resetAfterIndex(T,!0):(typeof d._listRef._getItemStyleCache=="function"&&d._listRef._getItemStyleCache(-1),d._listRef.forceUpdate())}})},o=0;o<u.length;o+=2)y(o)}}]),n}($.PureComponent);const Ki=()=>h.i1,Xi=h.styled_default("div")({name:"a",class:"a1w9zony",propsAsIs:!1}),en=h.styled_default("div")({name:"l",class:"l16qcfv8",propsAsIs:!1}),tn=h.styled_default("img")({name:"p",class:"p1gmcc5f",propsAsIs:!1}),rn=h.styled_default("div")({name:"s",class:"s1doddh0",propsAsIs:!1}),nn=h.styled_default("div")({name:"c",class:"c1js9xhe",propsAsIs:!1}),sn=h.styled_default("div")({name:"d",class:"d1tmnqsh",propsAsIs:!1}),on=h.styled_default("span")({name:"g",class:"gi9h87j",propsAsIs:!1}),an=h.styled_default(Ki())({name:"x",class:"x13mk3z6",propsAsIs:!0}),ln=({rank:i,avatar:n,name:a,points:u,isCurrentUser:d,openItemDetail:x,style:y})=>l.jsxs(Xi,{onClick:x,style:y,children:[l.jsx(en,{children:i||0}),l.jsxs(nn,{children:[n?l.jsx(tn,{alt:"leaderboard-item-avatar",src:n}):l.jsx(rn,{children:ne.o(a||"")}),l.jsxs(sn,{children:[l.jsx(on,{children:a||""}),d&&l.jsx(an,{name:"icon-star"})]})]}),l.jsx("div",{children:ne.i(u)})]}),cn=({items:i,currentUserId:n,openItemDetail:a,fetchMore:u})=>l.jsx(Ci,{children:({width:d,height:x})=>l.jsx(Ji,{isItemLoaded:y=>y<i.length,itemCount:i.length+1,loadMoreItems:u,children:({onItemsRendered:y,ref:o})=>l.jsx(Yi,{itemSize:56,onItemsRendered:y,ref:o,itemCount:i.length,width:d,height:x,children:({index:g,style:A})=>l.jsx(ln,{style:{...A,maxHeight:48},...i[g],openItemDetail:()=>a(i[g].userId),isCurrentUser:!!n&&n===i[g].userId},i[g].userId)})})});const un=()=>h.i1,dn=()=>h.i1,fn=h.styled_default("div")({name:"a",class:"ay8exst",propsAsIs:!1}),hn=h.styled_default("div")({name:"l",class:"l31riw0",propsAsIs:!1}),pn=h.styled_default(un())({name:"p",class:"pcmm4w7",propsAsIs:!0}),mn=h.styled_default("div")({name:"c",class:"cct922a",propsAsIs:!1}),yn=h.styled_default("div")({name:"s",class:"s12b7u74",propsAsIs:!1}),xn=h.styled_default("div")({name:"x",class:"x1896nrl",propsAsIs:!1}),gn=h.styled_default("div")({name:"d",class:"d1vnagog",propsAsIs:!1}),In=h.styled_default("div")({name:"g",class:"gznzzc2",propsAsIs:!1}),wn=h.styled_default("span")({name:"f",class:"fnmvyxu",propsAsIs:!1}),_n=h.styled_default("span")({name:"h",class:"h1iubd2g",propsAsIs:!1}),Mn=h.styled_default(dn())({name:"m",class:"mmvjfuo",propsAsIs:!0}),An=h.styled_default("div")({name:"v",class:"v1oi1553",propsAsIs:!1}),En=h.styled_default("a")({name:"w",class:"w1vwcogq",propsAsIs:!1}),Tn=h.styled_default("span")({name:"u",class:"utbqo0e",propsAsIs:!1}),jn=({inviteLink:i,socialLinks:n,inviteCardTitle:a,inviteCardSubtext:u,primaryColor:d,className:x})=>l.jsxs(fn,{className:x,children:[l.jsx(hn,{style:{backgroundColor:d},children:l.jsx(pn,{name:"invite-game-icon"})}),l.jsxs(mn,{children:[l.jsx(yn,{children:a||""}),l.jsx(xn,{children:u||""})]}),i&&l.jsxs(gn,{onClick:async()=>{if(i)try{await navigator.clipboard.writeText(i)}catch(y){console.error("Unable to copy to clipboard",y)}},children:[l.jsxs(In,{children:[l.jsx(wn,{children:"Invite link"}),l.jsx(_n,{children:i})]}),l.jsx(Mn,{name:"icon-copy"})]}),n&&n.length>0&&l.jsx(An,{children:n.map(({icon:y,link:o,label:g})=>l.jsxs(En,{href:o,target:"_blank",children:[l.jsx(h.i1,{name:y}),l.jsx(Tn,{children:g})]},o))})]}),vn=({deepLink:i})=>{const{data:n}=re.useStore(i.$store);return l.jsx(jn,{inviteLink:n==null?void 0:n.url,socialLinks:[{icon:"icon-facebook",link:"https://www.facebook.com/TheMasters",label:"Facebook"},{icon:"icon-twitter",link:"https://twitter.com/@TheMasters",label:"X"}],inviteCardTitle:"It’s more fun with friends",inviteCardSubtext:"Invite and compete against your friends for the top spot on the leaderboard."})},Nn=({gamification:i})=>{const{data:n}=re.useStore(i.leaderboardList.$store);return n!=null&&n.length?l.jsx(cn,{fetchMore:i.leaderboardList.fetchMore,items:n,openItemDetail:i.openUser,currentUserId:i.currentUserId.get()}):l.jsx(vn,{deepLink:i.deepLink})};const Sn=h.styled_default("button")({name:"a",class:"akly9h2",propsAsIs:!1}),zn=h.styled_default("span")({name:"e",class:"eptoiz9",propsAsIs:!1}),Dn=({disabled:i,variant:n="primary",onClick:a,children:u,...d})=>l.jsx(Sn,{onClick:a,disabled:i,"data-variant":n,...d,children:l.jsx(zn,{children:u})});const bn=()=>h.i1,On=()=>h.i1,kn=h.styled_default("div")({name:"s",class:"s1lblda3",propsAsIs:!1}),Cn=h.styled_default("div")({name:"a",class:"ascvb2g",propsAsIs:!1}),Ln=h.styled_default("div")({name:"p",class:"p17rl8zy",propsAsIs:!1}),Rn=h.styled_default("div")({name:"l",class:"l1vvttbn",propsAsIs:!1}),Ue=h.styled_default(bn())({name:"c",class:"c6fk2ph",propsAsIs:!0}),Bn=h.styled_default(On())({name:"d",class:"d1rdm136",propsAsIs:!0}),Un=h.styled_default("div")({name:"f",class:"fwqnnel",propsAsIs:!1}),Fn=h.styled_default("div")({name:"u",class:"ucyxnlg",propsAsIs:!1}),$n={[O.PickHistoryStatus.LOST]:l.jsx(Ue,{name:"icon-cross"}),[O.PickHistoryStatus.WON]:l.jsx(Ue,{name:"icon-check"}),[O.PickHistoryStatus.UNSET]:void 0,[O.PickHistoryStatus.DNP]:l.jsx(Ue,{name:"icon-arrow"})},Qn=({questionId:i,questionType:n,questionStatus:a,subject:u,openForVoting:d,openQuestion:x,status:y})=>{const o=J.o[n],g=$n[y];return o?l.jsxs(kn,{onClick:()=>x==null?void 0:x(i),children:[l.jsxs(Fn,{children:[l.jsxs(Cn,{children:[l.jsx(Bn,{name:o.iconName}),l.jsxs(Un,{children:[o.label,n===O.QuestionType.TRIVIA&&a===O.QuestionStatus.RESOLVED&&" • Expired"]})]}),l.jsx(Ln,{children:u||""})]}),l.jsx(Rn,{children:g||(d?l.jsx(Dn,{children:"Play"}):null)})]}):null};const qn=h.styled_default("div")({name:"n",class:"n1jcgove",propsAsIs:!1}),Pn=h.styled_default("button")({name:"l",class:"l1bwp7hh",propsAsIs:!1}),Yn=({openInsight:i,questionId:n,...a})=>l.jsxs(qn,{children:[l.jsx(gt,{questionId:n,...a}),i&&l.jsx(Pn,{onClick:()=>i(n),children:"View Insight"})]});const Wn=h.styled_default("div")({name:"t",class:"t19vr3p1",propsAsIs:!1}),Vn=({questions:i,openQuestion:n})=>l.jsx(Wn,{children:i==null?void 0:i.map(a=>{var u,d;if(a.type==="question"&&((u=a.attributes)==null?void 0:u.attributes.case)==="question"){const x=a.attributes.attributes.value;return l.jsx(Qn,{openQuestion:n,...x},x.questionId)}if(a.type==="insight"&&((d=a.attributes)==null?void 0:d.attributes.case)==="insight"){const x=a.attributes.attributes.value;return l.jsx(Yn,{openInsight:n,...x},x.questionId)}return null})}),Hn=({store:i,openQuestion:n})=>{const a=re.useStore(i);return a!=null&&a.data?l.jsx(Vn,{openQuestion:n,questions:a.data}):l.jsx("div",{children:"wait questions..."})},Gn=({userSummary:i})=>{var n,a;const u=re.useStore(i.getStore());return(n=u.data)!=null&&n.summary?l.jsx(yt,{...u.data.summary,successRate:(a=u.data.percentage)==null?void 0:a.correct}):l.jsx("div",{children:"wait user..."})},Zn=({gamification:i})=>{const[n,a]=$.useState(xe.HOME);return l.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[l.jsxs(J.e,{children:[l.jsx(Mi,{activePage:n,toggleActivePage:a}),n===xe.HOME&&l.jsx(Gn,{userSummary:i.userSummary})]}),n===xe.HOME&&l.jsx(J.n,{children:l.jsx(Hn,{openQuestion:i.openQuestion,store:i.feedList.getStore()})}),n===xe.LEADERBOARD&&l.jsx(J.e,{style:{flex:"1 1 auto",paddingTop:0,paddingBottom:0},children:l.jsx(Nn,{gamification:i})})]})};const Jn=()=>J.f,pt=h.styled_default(Jn())({name:"n",class:"n1ph66cs",propsAsIs:!0}),Kn=h.styled_default("div")({name:"x",class:"xorme7i",propsAsIs:!1}),Xn=({correct:i,incorrect:n})=>{const a=i+n;return a===0?0:Math.round(i/a*100)},jt=({gamification:i,className:n})=>{const a=re.useStore(i.openedQuestion.$store),u=re.useStore(i.openedUser);return l.jsxs(l.Fragment,{children:[a&&l.jsx(pt,{className:n,children:l.jsx(xi,{gamification:i})}),u&&l.jsx(pt,{className:n,children:l.jsxs(Kn,{children:[l.jsx(mt,{label:"Friend's Rank",close:i.closeUser}),l.jsx(J.e,{children:l.jsx(yt,{...u,successRate:Xn(u)})})]})}),l.jsx(J.r,{className:n,"data-nav":"true",children:l.jsx(Zn,{gamification:i})})]})};exports.GamificationOverlay=jt;exports.default=jt;
|