@streamlayer/react 0.29.1 → 0.29.3

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.
@@ -13,9 +13,9 @@
13
13
  .r1ws5lyh{position:absolute;top:0;left:0;width:100%;height:100%;}
14
14
  .soibf55{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);cursor:pointer;}
15
15
  .rcr31jh{box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:16px;background-color:var(--color-neutrals-white);border-radius:8px;width:100%;}
16
- .thj4z8w{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:12px;}
17
- .i1oks4sz{color:var(--color-primary-green2);font-size:16px;line-height:26px;font-weight:400;font-family:var(--font-serif);font-weight:var(--font-weight-default);}
18
- .n18s3mno{color:var(--color-neutrals-gray9);font-size:12px;line-height:24px;font-weight:550;font-weight:var(--font-weight-default);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;text-overflow:ellipsis;max-height:50px;}
16
+ .ihj4z8w{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;row-gap:12px;}
17
+ .t1oks4sz{color:var(--color-primary-green2);font-size:16px;line-height:26px;font-weight:400;font-family:var(--font-serif);font-weight:var(--font-weight-default);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;text-overflow:ellipsis;max-height:50px;}
18
+ .n18s3mno{color:var(--color-neutrals-gray9);font-size:12px;line-height:24px;font-weight:var(--font-weight-default);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all;text-overflow:ellipsis;max-height:50px;}
19
19
  .lc8mqwv{border:none;outline:none;background-color:var(--color-primary-green1);color:var(--color-white);border-radius:40px;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;font-size:14px;font-weight:550;width:100%;padding:0px 16px;height:44px;}.lc8mqwv:hover{background-color:var(--color-primary-green2);cursor:pointer;}
20
20
  .p16oo5uk{box-sizing:border-box;overflow:hidden;border-radius:8px;background:#fff;width:100%;padding:16px;position:relative;}
21
21
  .a18c5k3h{position:absolute;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;width:20px;height:20px;right:11px;top:11px;cursor:pointer;}
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-aed3ad5f.js";
3
+ import { M as L, a as c } from "../masters-62d1a034.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-05d85ab5.js";
10
+ import "../index-0ee221fc.js";
11
11
  import "@streamlayer/sdk-web-notifications";
12
12
  export {
13
13
  L as MastersStreamLayerProvider,
package/lib/es/points.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as n, 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, e as u } from "../index-05d85ab5.js";
5
+ import { s as t, t as u } from "../index-0ee221fc.js";
6
6
  import { useMemo as d } from "react";
7
7
  import { useStore as i } from "@nanostores/react";
8
8
  import { u as f } from "../app-e4b43a5c.js";
@@ -1,10 +1,10 @@
1
1
  import * as e from "react";
2
2
  import h from "react";
3
3
  import { jsx as E } from "react/jsx-runtime";
4
- var y = function() {
5
- const n = Array.prototype.slice.call(arguments).filter(Boolean), i = {}, C = [];
6
- n.forEach((l) => {
7
- (l ? l.split(" ") : []).forEach((o) => {
4
+ var H = function() {
5
+ const l = Array.prototype.slice.call(arguments).filter(Boolean), i = {}, C = [];
6
+ l.forEach((n) => {
7
+ (n ? n.split(" ") : []).forEach((o) => {
8
8
  if (o.startsWith("atm_")) {
9
9
  const [, d] = o.split("_");
10
10
  i[d] = o;
@@ -13,44 +13,44 @@ var y = function() {
13
13
  });
14
14
  });
15
15
  const r = [];
16
- for (const l in i)
17
- Object.prototype.hasOwnProperty.call(i, l) && r.push(i[l]);
16
+ for (const n in i)
17
+ Object.prototype.hasOwnProperty.call(i, n) && r.push(i[n]);
18
18
  return r.push(...C), r.join(" ");
19
- }, x = y;
20
- function Z(t) {
21
- var n = /* @__PURE__ */ Object.create(null);
19
+ }, x = H;
20
+ function y(t) {
21
+ var l = /* @__PURE__ */ Object.create(null);
22
22
  return function(i) {
23
- return n[i] === void 0 && (n[i] = t(i)), n[i];
23
+ return l[i] === void 0 && (l[i] = t(i)), l[i];
24
24
  };
25
25
  }
26
- var R = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, g = /* @__PURE__ */ Z(
26
+ var R = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, g = /* @__PURE__ */ y(
27
27
  function(t) {
28
28
  return R.test(t) || t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && t.charCodeAt(2) < 91;
29
29
  }
30
30
  /* Z+1 */
31
- ), B = (t) => t.toUpperCase() === t, b = (t) => (n) => t.indexOf(n) === -1, M = (t, n) => {
31
+ ), B = (t) => t.toUpperCase() === t, b = (t) => (l) => t.indexOf(l) === -1, M = (t, l) => {
32
32
  const i = {};
33
- return Object.keys(t).filter(b(n)).forEach((C) => {
33
+ return Object.keys(t).filter(b(l)).forEach((C) => {
34
34
  i[C] = t[C];
35
35
  }), i;
36
36
  };
37
- function F(t, n, i) {
38
- const C = M(n, i);
37
+ function F(t, l, i) {
38
+ const C = M(l, i);
39
39
  if (!t) {
40
40
  const r = typeof g == "function" ? { default: g } : g;
41
- Object.keys(C).forEach((l) => {
42
- r.default(l) || delete C[l];
41
+ Object.keys(C).forEach((n) => {
42
+ r.default(n) || delete C[n];
43
43
  });
44
44
  }
45
45
  return C;
46
46
  }
47
- var S = (t, n) => {
47
+ var S = (t, l) => {
48
48
  };
49
49
  function A(t) {
50
- let n = "";
50
+ let l = "";
51
51
  return (i) => {
52
- const C = (l, s) => {
53
- const { as: o = t, class: d = n } = l, k = i.propsAsIs === void 0 ? !(typeof o == "string" && o.indexOf("-") === -1 && !B(o[0])) : i.propsAsIs, a = F(k, l, [
52
+ const C = (n, s) => {
53
+ const { as: o = t, class: d = l } = n, k = i.propsAsIs === void 0 ? !(typeof o == "string" && o.indexOf("-") === -1 && !B(o[0])) : i.propsAsIs, a = F(k, n, [
54
54
  "as",
55
55
  "class"
56
56
  ]);
@@ -59,8 +59,8 @@ function A(t) {
59
59
  if (w) {
60
60
  const m = {};
61
61
  for (const c in w) {
62
- const v = w[c], p = v[0], H = v[1] || "", u = typeof p == "function" ? p(l) : p;
63
- S(u, i.name), m[`--${c}`] = `${u}${H}`;
62
+ const v = w[c], p = v[0], Z = v[1] || "", u = typeof p == "function" ? p(n) : p;
63
+ S(u, i.name), m[`--${c}`] = `${u}${Z}`;
64
64
  }
65
65
  const f = a.style || {}, L = Object.keys(f);
66
66
  L.length > 0 && L.forEach((c) => {
@@ -71,18 +71,18 @@ function A(t) {
71
71
  }, r = h.forwardRef ? h.forwardRef(C) : (
72
72
  // React.forwardRef won't available on older React versions and in Preact
73
73
  // Fallback to a innerRef prop in that case
74
- (l) => {
75
- const s = M(l, ["innerRef"]);
76
- return C(s, l.innerRef);
74
+ (n) => {
75
+ const s = M(n, ["innerRef"]);
76
+ return C(s, n.innerRef);
77
77
  }
78
78
  );
79
79
  return r.displayName = i.name, r.__linaria = {
80
- className: i.class || n,
80
+ className: i.class || l,
81
81
  extends: t
82
82
  }, r;
83
83
  };
84
84
  }
85
- var M1 = A;
85
+ var k1 = A;
86
86
  const D = (t) => /* @__PURE__ */ e.createElement("svg", {
87
87
  width: 24,
88
88
  height: 24,
@@ -474,7 +474,7 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
474
474
  id: "Vector_2",
475
475
  d: "M98.1678 34.7754C97.6547 34.4147 97.3429 33.8272 97.3429 33.1882V31.4051C97.3429 29.8075 96.0752 28.5089 94.5159 28.5089H93.3891C92.041 28.5089 90.8035 29.1994 90.0691 30.3538L86.4272 36.1153C86.065 36.6822 85.4514 37.0223 84.7974 37.0223H82.3427C81.1253 37.0223 80.0086 37.7026 79.4251 38.8054C78.8215 39.9392 77.7752 40.7225 76.5679 40.9905V0.917313C76.5679 0.412276 76.1756 0 75.6726 0C75.1796 0 74.7772 0.412276 74.7772 0.917313V2.15414V13.4196V41.0111C73.5699 40.7431 72.5236 39.9598 71.92 38.8261C71.3465 37.7232 70.2298 37.043 69.0125 37.043H67.3626C66.0547 37.043 64.8676 37.8366 64.3344 39.0528L62.9661 42.2067C62.7448 42.7014 62.2619 43.0313 61.7287 43.0313C61.1955 43.0313 60.7126 42.7118 60.4913 42.2067L59.123 39.0528C58.5898 37.8263 57.4027 37.0327 56.0948 37.0327H9.52479C9.14249 37.0327 8.84068 37.3419 8.84068 37.7335C8.84068 38.5478 8.18674 39.2177 7.39196 39.2177H5.37986C4.99757 39.2177 4.69575 39.5269 4.69575 39.9186V42.3098C4.69575 44.5567 4.26315 46.7624 3.42813 48.834L2.20075 51.8643C1.05385 54.6884 0.510584 57.5846 0.520645 60.4396V67.4071C0.520645 69.2932 0.782218 71.1897 1.31542 73.0449C2.81444 78.2396 6.20483 82.4963 10.893 85.0215L18.3378 89.0412C18.4384 89.0928 18.539 89.1237 18.6497 89.1237L24.1528 89.1649C25.4405 89.1752 26.7081 89.5153 27.8248 90.1544L30.7826 91.8447C30.8832 91.9065 30.9939 91.9375 31.1146 91.9375H35.0684C36.4567 91.9375 37.825 92.3291 39.0121 93.0609C39.0121 93.0609 40.9437 94.2668 41.5977 94.6585C42.6439 95.2872 43.9116 95.885 46.1148 95.9984C46.6178 96.019 47.1108 95.8438 47.483 95.483C47.8553 95.1223 48.0666 94.6172 48.0666 94.0916V91.3809C48.0666 89.4123 49.2034 87.6292 50.964 86.8355L57.0003 84.1145C57.8252 83.7435 58.7508 83.6816 59.6059 83.9496L61.8595 84.6402C62.8152 84.9288 63.8313 84.9391 64.7972 84.6402L70.1493 83.0117C70.8636 82.7952 71.6081 82.7952 72.3325 83.022L74.5055 83.6507C75.5216 83.9496 76.2259 84.8979 76.2259 85.9801V91.4118C76.2259 93.937 78.238 95.9984 80.7028 95.9984C82.5439 95.9984 84.1636 94.7822 84.7169 92.9888C85.723 89.7421 86.2361 86.3614 86.2361 82.9499V80.6411C86.2361 79.0023 86.9001 77.415 88.0671 76.2916L90.2905 74.1375C91.7895 72.6739 92.6547 70.6228 92.6547 68.4996V55.616C92.6547 53.6164 93.2382 51.6994 94.3549 50.0606C94.4354 49.9472 94.4756 49.8029 94.4756 49.6586V46.6284C94.4756 44.6494 95.0591 42.7324 96.1557 41.1039L98.359 37.8263C98.4395 37.7129 98.4797 37.5686 98.4797 37.4346V35.3732C98.4797 34.9713 98.2584 34.8373 98.1678 34.7754ZM74.7872 69.2211C73.2882 68.9943 72.1816 68.2007 72.1816 67.2628C72.1816 66.3248 73.2882 65.5312 74.7872 65.3045V69.2211ZM76.5679 65.2941C78.0669 65.5209 79.1736 66.3145 79.1736 67.2525C79.1736 68.1904 78.0669 68.984 76.5679 69.2108V65.2941ZM12.6637 84.3928L11.5268 83.7847C8.45838 82.1356 6.00362 79.6619 4.32351 76.673V72.9109C6.24507 75.7556 8.85074 78.1881 12.05 79.9093L12.6637 80.2391V84.3928ZM18.3478 87.4643L15.3398 85.8461V81.6924L18.3378 83.3106H18.3478V87.4643ZM30.8832 90.2987L28.4989 88.9382C27.2011 88.1961 25.7322 87.7941 24.2534 87.7735V83.4343C25.5009 83.4652 26.7383 83.795 27.8349 84.4237L30.7927 86.1141C30.8229 86.1347 30.853 86.1244 30.8832 86.1347V90.2987ZM46.6983 91.3706V93.4835V94.0813C46.6983 94.2256 46.638 94.3596 46.5474 94.4523C46.4468 94.5451 46.3261 94.5966 46.1953 94.5863C44.2939 94.4833 43.1973 93.9782 42.3019 93.432C41.658 93.0403 39.7365 91.8447 39.7264 91.8447C38.5191 91.1026 37.161 90.68 35.7626 90.577V86.2377C36.9095 86.3408 38.0262 86.7016 39.0222 87.3097L40.6821 88.33C42.5031 89.4535 44.5756 90.0925 46.6983 90.2059V91.3706ZM63.1372 83.4446C62.8354 83.424 62.5436 83.3827 62.2519 83.3003L59.9983 82.6097C59.5154 82.4654 59.0124 82.4036 58.5194 82.4036V78.0644C58.8816 78.0644 59.2538 78.1056 59.6059 78.2087L61.8595 78.8992C62.272 79.0229 62.7046 79.0848 63.1372 79.1054V83.4446ZM77.2923 84.4959C76.8597 83.4549 75.9945 82.62 74.8878 82.3005L72.7248 81.6718C72.2117 81.5069 71.6785 81.445 71.1453 81.4554V77.1265C71.5578 77.1161 71.9703 77.1677 72.3727 77.3017L74.1534 77.8789C76.0347 78.487 77.3024 80.2494 77.3024 82.2696V84.4959H77.2923ZM83.5197 92.1848C83.4795 92.3085 83.4594 92.4322 83.4191 92.5559C83.0368 93.7721 81.9503 94.5863 80.7028 94.5863C80.5921 94.5863 80.4815 94.5657 80.3708 94.5554V90.2265C80.4513 90.2368 80.5318 90.2471 80.6223 90.2471C81.8396 90.2471 82.9362 89.5463 83.5197 88.495V92.1848ZM95.1799 38.0118C93.8217 40.032 93.1074 42.4025 93.1074 44.8556V46.9994L92.051 48.5661C90.6828 50.5965 89.9484 52.9774 89.9484 55.4408V66.2218C89.9484 67.9739 89.2442 69.6643 88.0067 70.8702L85.7834 73.0346C84.2944 74.4879 83.4694 76.539 83.5298 78.6519L83.5399 79.1363C83.6203 81.9398 83.2682 84.7226 82.5137 87.4127C82.2722 88.2682 81.4976 88.866 80.6223 88.866C79.5358 88.866 78.6605 87.959 78.6605 86.8562V82.2696C78.6605 79.631 77.0106 77.3326 74.5558 76.539L72.7751 75.9618C71.7892 75.6423 70.753 75.6423 69.767 75.9412L64.4149 77.5697C63.7106 77.7861 62.9661 77.7861 62.2519 77.5697L59.9983 76.8791C58.8313 76.5183 57.5637 76.6008 56.4469 77.1058L51.6883 79.2497C48.6501 80.6102 46.6883 83.6919 46.6883 87.0932V88.8454C44.817 88.732 42.986 88.1548 41.3763 87.1654L39.7163 86.145C38.3079 85.2792 36.7083 84.8257 35.0684 84.8257H31.3058L28.5089 83.2281C27.191 82.4757 25.692 82.0635 24.1729 82.0532L18.8307 82.0119L12.6938 78.7034C3.38789 73.653 -0.58601 62.367 3.45831 52.4208L4.68569 49.3906C5.6012 47.1437 6.06398 44.7628 6.06398 42.3304V40.6401H7.39196C8.70989 40.6401 9.81654 39.7021 10.1284 38.455H56.0948C56.8594 38.455 57.5637 38.9188 57.8755 39.6403L59.2438 42.7942C59.6764 43.8043 60.6522 44.4536 61.7287 44.4536C62.8052 44.4536 63.781 43.8043 64.2136 42.8045L65.5819 39.6506C65.8938 38.9291 66.5879 38.4653 67.3626 38.4653H69.0125C69.7268 38.4653 70.3807 38.8673 70.7228 39.5063C71.5679 41.1039 73.0769 42.1758 74.7872 42.4541V62.2639C72.0307 62.5731 69.918 64.2532 69.918 66.3042C69.918 68.5614 72.4934 70.3961 75.6726 70.3961C78.8517 70.3961 81.4272 68.5614 81.4272 66.3042C81.4272 64.2635 79.3145 62.5731 76.5579 62.2639V42.4438C78.2682 42.1655 79.7772 41.0936 80.6223 39.496C80.9644 38.857 81.6183 38.455 82.3326 38.455H84.7874C85.9141 38.455 86.9504 37.8778 87.5641 36.909L91.206 31.1371C91.6889 30.3847 92.4937 29.9312 93.379 29.9312H94.5058C95.3106 29.9312 95.9646 30.6012 95.9646 31.4257V33.2088C95.9646 34.0746 96.2865 34.8888 96.86 35.4969L95.1799 38.0118Z",
476
476
  fill: "white"
477
- }))), n1 = (t) => /* @__PURE__ */ e.createElement("svg", {
477
+ }))), l1 = (t) => /* @__PURE__ */ e.createElement("svg", {
478
478
  width: 48,
479
479
  height: 48,
480
480
  viewBox: "0 0 48 48",
@@ -492,7 +492,7 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
492
492
  clipRule: "evenodd",
493
493
  d: "M32.5432 24.7938C33.215 24.3331 33.2822 23.5173 32.5432 23.0567C23.7807 17.6245 19.6442 14.918 19.1356 14.5917C18.3486 14.083 17.6 14.6973 17.6 15.2059V32.7501C17.6 33.3259 18.5309 33.8442 19.1356 33.4795C20.2201 32.8172 31.8714 25.2641 32.5336 24.8034L32.5432 24.7938Z",
494
494
  fill: "white"
495
- })), l1 = (t) => /* @__PURE__ */ e.createElement("svg", {
495
+ })), n1 = (t) => /* @__PURE__ */ e.createElement("svg", {
496
496
  width: 16,
497
497
  height: 15,
498
498
  viewBox: "0 0 16 15",
@@ -691,6 +691,28 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
691
691
  strokeLinecap: "round",
692
692
  strokeLinejoin: "round"
693
693
  }))), f1 = (t) => /* @__PURE__ */ e.createElement("svg", {
694
+ width: 32,
695
+ height: 32,
696
+ viewBox: "0 0 32 32",
697
+ fill: "none",
698
+ xmlns: "http://www.w3.org/2000/svg",
699
+ ...t
700
+ }, /* @__PURE__ */ e.createElement("path", {
701
+ fillRule: "evenodd",
702
+ clipRule: "evenodd",
703
+ d: "M16 2.46154C8.52291 2.46154 2.46154 8.52291 2.46154 16C2.46154 23.4771 8.52291 29.5385 16 29.5385C23.4771 29.5385 29.5385 23.4771 29.5385 16C29.5385 8.52291 23.4771 2.46154 16 2.46154ZM0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",
704
+ fill: "#FFB600"
705
+ }), /* @__PURE__ */ e.createElement("path", {
706
+ fillRule: "evenodd",
707
+ clipRule: "evenodd",
708
+ d: "M16 8.20513C16.6797 8.20513 17.2308 8.75616 17.2308 9.4359V17.641C17.2308 18.3208 16.6797 18.8718 16 18.8718C15.3203 18.8718 14.7692 18.3208 14.7692 17.641V9.4359C14.7692 8.75616 15.3203 8.20513 16 8.20513Z",
709
+ fill: "#FFB600"
710
+ }), /* @__PURE__ */ e.createElement("path", {
711
+ fillRule: "evenodd",
712
+ clipRule: "evenodd",
713
+ d: "M14.7692 22.5641C14.7692 21.8844 15.3203 21.3333 16 21.3333H16.0164C16.6961 21.3333 17.2472 21.8844 17.2472 22.5641C17.2472 23.2438 16.6961 23.7949 16.0164 23.7949H16C15.3203 23.7949 14.7692 23.2438 14.7692 22.5641Z",
714
+ fill: "#FFB600"
715
+ })), L1 = (t) => /* @__PURE__ */ e.createElement("svg", {
694
716
  width: 16,
695
717
  height: 16,
696
718
  viewBox: "0 0 16 16",
@@ -757,7 +779,7 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
757
779
  clipRule: "evenodd",
758
780
  d: "M2.00033 8.66676C1.6316 9.03545 1.03484 9.03478 0.666788 8.66676C0.298732 8.29873 0.298065 7.70203 0.666788 7.33334C1.03551 6.96465 1.63227 6.96531 2.00033 7.33334C2.36838 7.70136 2.36905 8.29806 2.00033 8.66676Z",
759
781
  fill: "#107D57"
760
- }))), L1 = (t) => /* @__PURE__ */ e.createElement("svg", {
782
+ }))), v1 = (t) => /* @__PURE__ */ e.createElement("svg", {
761
783
  width: 16,
762
784
  height: 16,
763
785
  viewBox: "0 0 16 16",
@@ -773,7 +795,7 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
773
795
  d: "M9.7778 1.68421V5.05263H13.3333C13.8243 5.05263 14.2222 4.67561 14.2222 4.21053V2.52632C14.2222 2.06123 13.8243 1.68421 13.3333 1.68421H9.7778ZM2.66667 0C1.19391 0 0 1.13107 0 2.52632V4.21053C0 5.60577 1.19391 6.73684 2.66667 6.73684H13.3333C14.8061 6.73684 16 5.60577 16 4.21053V2.52632C16 1.13107 14.8061 0 13.3333 0H2.66667ZM4.44446 10.9473H13.3333C13.8243 10.9473 14.2222 11.3243 14.2222 11.7894V13.4736C14.2222 13.9387 13.8243 14.3157 13.3333 14.3157H4.44446V10.9473ZM0 11.7894C0 10.3942 1.19391 9.2631 2.66667 9.2631H13.3333C14.8061 9.2631 16 10.3942 16 11.7894V13.4736C16 14.8689 14.8061 15.9999 13.3333 15.9999H2.66667C1.19391 15.9999 0 14.8689 0 13.4736V11.7894Z",
774
796
  fill: "white",
775
797
  fillOpacity: 0.5
776
- }))), v1 = (t) => /* @__PURE__ */ e.createElement("svg", {
798
+ }))), u1 = (t) => /* @__PURE__ */ e.createElement("svg", {
777
799
  width: 16,
778
800
  height: 16,
779
801
  viewBox: "0 0 16 16",
@@ -789,7 +811,7 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
789
811
  d: "M16 7.00522C16 7.00522 9.20048 6.81607 9.20048 0C9.20048 6.36168 3.27729 6.95056 2.48756 7.00078L2.40094 7.00522C2.40094 7.00522 9.20048 7.19435 9.20048 14.0104C9.20048 7.64877 15.1234 7.05989 15.9131 7.00964L16 7.00522ZM6.97382 12.5652C6.97382 12.5652 3.48691 12.4724 3.48691 9.13033C3.48691 12.2496 0.449402 12.5384 0.0444186 12.563L0 12.5652C0 12.5652 3.48691 12.6579 3.48691 16C3.48691 12.8807 6.52429 12.592 6.92927 12.5673L6.97382 12.5652Z",
790
812
  fill: "white",
791
813
  fillOpacity: 0.5
792
- }))), u1 = (t) => /* @__PURE__ */ e.createElement("svg", {
814
+ }))), E1 = (t) => /* @__PURE__ */ e.createElement("svg", {
793
815
  width: 16,
794
816
  height: 16,
795
817
  viewBox: "0 0 16 16",
@@ -805,7 +827,7 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
805
827
  d: "M2.01663 1.3808C0.739913 1.55586 -0.153153 2.73276 0.021912 4.00948L1.3808 13.9196C1.55586 15.1963 2.73276 16.0894 4.00948 15.9143L13.9196 14.5554C15.1963 14.3803 16.0894 13.2034 15.9143 11.9267L14.5554 2.01663C14.3803 0.739913 13.2034 -0.153153 11.9267 0.021912L2.01663 1.3808ZM9.59613 3.788C9.11431 3.46991 8.47813 3.30151 7.7566 3.30151C7.54377 3.30151 7.32625 3.31671 7.10872 3.34478C6.38836 3.44067 5.68901 3.79034 5.18965 4.30138C4.68445 4.82062 4.4377 5.45563 4.51722 6.04151C4.57452 6.4742 4.90078 6.7537 5.34635 6.7537C5.39429 6.7537 5.44341 6.7502 5.49136 6.74435C6.08778 6.66483 6.21642 6.25436 6.34036 5.85675L6.34045 5.85648C6.48192 5.40401 6.61534 4.97731 7.38585 4.87444C7.46537 4.86391 7.54138 4.85806 7.61506 4.85806C8.16939 4.85806 8.51436 5.15042 8.58454 5.68252C8.65353 6.20293 8.24307 6.61807 7.80684 7.0566L7.80393 7.05954C7.31582 7.55231 6.7639 8.1095 6.86895 8.90083C6.89585 9.10548 6.9859 9.29493 7.12272 9.43644C7.27826 9.599 7.4829 9.68436 7.71331 9.68436C7.75541 9.68436 7.79868 9.68203 7.84311 9.67618C8.46691 9.59324 8.55162 9.23139 8.63338 8.8821L8.63365 8.88097L8.63661 8.86859C8.66723 8.7403 8.69877 8.60813 8.75995 8.48804C8.84649 8.31613 9.06283 8.11265 9.31428 7.87875C9.9142 7.31858 10.734 6.55143 10.582 5.41589C10.4872 4.70603 10.1551 4.15757 9.59611 3.78802L9.59613 3.788ZM8.11605 10.28C8.06927 10.28 8.02132 10.2836 7.97454 10.2894C7.38396 10.3689 6.96765 10.9127 7.04599 11.5033C7.11733 12.0377 7.57808 12.4412 8.1172 12.4412C8.16397 12.4412 8.21192 12.4377 8.25987 12.4318C8.85045 12.3523 9.2656 11.8085 9.18842 11.2179C9.11591 10.6823 8.65517 10.28 8.11605 10.28Z",
806
828
  fill: "white",
807
829
  fillOpacity: 0.5
808
- }))), E1 = (t) => /* @__PURE__ */ e.createElement("svg", {
830
+ }))), x1 = (t) => /* @__PURE__ */ e.createElement("svg", {
809
831
  width: 16,
810
832
  height: 16,
811
833
  viewBox: "0 0 16 16",
@@ -822,14 +844,14 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
822
844
  "invite-game-icon": d1,
823
845
  "icon-trophy": a1,
824
846
  "icon-trophy-green": o1,
825
- "icon-trivia": u1,
847
+ "icon-trivia": E1,
826
848
  "icon-thumb-down": C1,
827
849
  "icon-thumb-up": r1,
828
- "icon-star": l1,
829
- "icon-prediction": v1,
830
- "icon-insight": f1,
831
- "icon-poll": L1,
832
- "icon-play": n1,
850
+ "icon-star": n1,
851
+ "icon-prediction": u1,
852
+ "icon-insight": L1,
853
+ "icon-poll": v1,
854
+ "icon-play": l1,
833
855
  "icon-masters-logo": i1,
834
856
  "icon-logout": t1,
835
857
  "icon-link": e1,
@@ -859,10 +881,11 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
859
881
  "icon-twitter-verified": c1,
860
882
  correct: p1,
861
883
  incorrect: g1,
862
- selected: E1
863
- }, k1 = ({
884
+ questionExpired: f1,
885
+ selected: x1
886
+ }, Z1 = ({
864
887
  name: t,
865
- style: n,
888
+ style: l,
866
889
  className: i,
867
890
  ...C
868
891
  }) => {
@@ -872,13 +895,13 @@ const D = (t) => /* @__PURE__ */ e.createElement("svg", {
872
895
  });
873
896
  const r = V[t];
874
897
  return /* @__PURE__ */ E(r, {
875
- style: n,
898
+ style: l,
876
899
  className: i,
877
900
  ...C
878
901
  });
879
902
  };
880
903
  export {
881
904
  x as c,
882
- k1 as e,
883
- M1 as s
905
+ k1 as s,
906
+ Z1 as t
884
907
  };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),y=require("./index-dc9aee43.cjs"),ne=require("@nanostores/react"),J=require("./masters-6226c77f.cjs"),$=require("react"),O=require("@streamlayer/sdk-web-types"),ie=require("./common-f34b9d88.cjs"),Bt=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=()=>y.t1,Rt=()=>y.t1,Lt=y.styled_default("div")({name:"a",class:"acysrl1",propsAsIs:!1}),kt=y.styled_default("div")({name:"l",class:"lo57cjm",propsAsIs:!1}),Ut=y.styled_default(Ct())({name:"p",class:"p14kwh4y",propsAsIs:!0}),Ft=y.styled_default("span")({name:"s",class:"sxun7sq",propsAsIs:!1}),$t=y.styled_default("button")({name:"c",class:"c1i8ida8",propsAsIs:!1}),Qt=y.styled_default(Rt())({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 c.jsxs(Lt,{children:[c.jsxs(kt,{children:[(u==null?void 0:u.iconName)&&c.jsx(Ut,{name:u.iconName}),(u==null?void 0:u.label)&&c.jsx(Ft,{children:u.label})]}),c.jsx($t,{onClick:n,children:c.jsx(Qt,{name:"icon-cross"})})]})};const qt=y.styled_default("div")({name:"t",class:"taj61ja",propsAsIs:!1}),Pt=y.styled_default("div")({name:"r",class:"r19fxewd",propsAsIs:!1}),Yt=y.styled_default("div")({name:"i",class:"i1whkbqh",propsAsIs:!1}),Ke=({indicator:i,title:n})=>c.jsxs(qt,{children:[c.jsx(Pt,{children:n}),c.jsx(Yt,{children:i})]});const Wt=y.styled_default("div")({name:"i",class:"i4lbhzs",propsAsIs:!1}),Vt=y.styled_default("div")({name:"o",class:"ordquhq",propsAsIs:!1}),Ht=y.styled_default("div")({name:"n",class:"nwzed99",propsAsIs:!1}),Ee=({indicator:i,title:n})=>c.jsxs(Wt,{children:[c.jsx(Vt,{children:i}),c.jsx(Ht,{children:n})]});const Gt=y.styled_default("div")({name:"o",class:"o15y0waw",propsAsIs:!1}),Zt=y.styled_default("div")({name:"i",class:"ihjewwf",propsAsIs:!1}),Jt=y.styled_default("div")({name:"n",class:"n10e9lv8",propsAsIs:!1}),Kt=y.styled_default("div")({name:"r",class:"r13bxv",propsAsIs:!1}),Xt=y.styled_default("img")({name:"a",class:"a1fi59c9",propsAsIs:!1}),er=y.styled_default("div")({name:"s",class:"s1kkihge",propsAsIs:!1}),tr=y.styled_default("div")({name:"c",class:"cy4f4t",propsAsIs:!1}),rr=y.styled_default("div")({name:"p",class:"p18cnlx1",propsAsIs:!1}),ir=y.styled_default("img")({name:"l",class:"lboqgs5",propsAsIs:!1}),nr=y.styled_default("div")({name:"d",class:"d1oaal4",propsAsIs:!1}),sr=y.styled_default("div")({name:"x",class:"x1yzgo0u",propsAsIs:!1}),or=y.styled_default("div")({name:"f",class:"f1l9i8s8",propsAsIs:!1}),ar=y.styled_default("div")({name:"g",class:"g4cgl4u",propsAsIs:!1}),lr=y.styled_default("div")({name:"h",class:"h1qn1tmd",propsAsIs:!1}),cr=y.styled_default("div")({name:"u",class:"u1gsbhq4",propsAsIs:!1}),ur=y.styled_default("div")({name:"m",class:"mvj8oco",propsAsIs:!1}),dr=y.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:f,streak:g,correct:m,incorrect:o,inTop:x,average:A})=>c.jsxs(Gt,{children:[c.jsx(Zt,{children:c.jsxs(Kt,{children:[c.jsxs(dr,{children:[i&&c.jsx(Xt,{alt:"avatar",src:i}),!i&&c.jsx(ur,{children:ie.o(n||"")})]}),c.jsxs(er,{children:[c.jsx(tr,{children:n}),c.jsxs(rr,{children:[c.jsxs(nr,{children:[c.jsx(ir,{alt:"rank-icon",src:fr}),c.jsxs(sr,{children:[ie.i(a),c.jsx(or,{children:"PTS"})]})]}),c.jsx(ar,{}),c.jsxs("div",{children:["TOP ",x||0,"%"]})]})]})]})}),c.jsxs(Jt,{children:[c.jsxs(lr,{children:[c.jsx(Ke,{indicator:u||0,title:"Friends rank"}),c.jsx(Ke,{indicator:f||0,title:"Global rank"})]}),c.jsxs(cr,{children:[c.jsx(Ee,{indicator:g||0,title:"Win streak"}),c.jsx(Ee,{indicator:m||0,title:"Correct"}),c.jsx(Ee,{indicator:o||0,title:"Incorrect"}),c.jsx(Ee,{indicator:`${A||0}%`,title:"Succ. rate"})]})]})]});const hr=()=>y.t1,pr=y.styled_default("div")({name:"c",class:"ciyeb68",propsAsIs:!1}),mr=y.styled_default(hr())({name:"n",class:"nfic4xc",propsAsIs:!0}),Xe=y.styled_default("div")({name:"d",class:"d1pd1p66",propsAsIs:!1}),et=y.styled_default("div")({name:"p",class:"p132yxcv",propsAsIs:!1}),yr=y.styled_default("span")({name:"l",class:"l4a8aw",propsAsIs:!1}),Oe=y.styled_default("span")({name:"g",class:"gzdx7pk",propsAsIs:!1}),gr=y.styled_default("div")({name:"s",class:"smnc4zm",propsAsIs:!1}),xr=({feedbackMessages:i,questionVotedCorrectly:n,questionVoted:a,questionType:u,hasCorrectAnswer:f,questionStatus:g})=>{const m=a&&(u===O.QuestionType.TRIVIA||u===O.QuestionType.PREDICTION);if(!m&&g!==O.QuestionStatus.RESOLVED)return null;const o=u===O.QuestionType.PREDICTION&&!f,x=n?"correct":"incorrect",A=n?i.correctFeedback:i.incorrectFeedback;return c.jsxs(pr,{"data-isPrediction":o,children:[g===O.QuestionStatus.RESOLVED&&u===O.QuestionType.TRIVIA&&!a&&c.jsxs(c.Fragment,{children:[c.jsx(Xe,{children:c.jsx(y.t1,{name:"questionExpired"})}),c.jsxs("div",{children:[c.jsx(et,{children:c.jsx(Oe,{children:"Question Expired"})}),c.jsx(gr,{children:"You can still answer to see if you're correct, but no points are awarded for expired questions."})]})]}),m&&o&&c.jsxs(c.Fragment,{children:[c.jsx(mr,{name:"icon-prediction"}),c.jsx(Oe,{children:"Stay tuned to see if your prediction was correct."})]}),m&&f&&c.jsxs(c.Fragment,{children:[c.jsx(Xe,{"data-feedbackType":x,children:c.jsx(y.t1,{name:x})}),c.jsx("div",{children:c.jsxs(et,{children:[c.jsx(yr,{"data-feedbackType":x,children:A==null?void 0:A.title}),c.jsx(Oe,{children:A==null?void 0:A.description})]})})]})]})};const Ir=y.styled_default("div")({name:"o",class:"olc1eph",propsAsIs:!1}),wr=y.styled_default("div")({name:"n",class:"n1yoh29a",propsAsIs:!1}),_r=y.styled_default("div")({name:"p",class:"pjkr5mb",propsAsIs:!1}),Mr=y.styled_default("div")({name:"r",class:"r82wnnx",propsAsIs:!1});const Er=()=>gt,Ar=()=>gt,Tr=()=>y.t1,jr=y.styled_default("button")({name:"c",class:"cpm4u8k",propsAsIs:!1}),Nr=y.styled_default("div")({name:"l",class:"lwfomc3",propsAsIs:!1}),Sr=y.styled_default("span")({name:"d",class:"dmltvg2",propsAsIs:!1}),vr=y.styled_default("div")({name:"s",class:"stfjpqz",propsAsIs:!1}),zr=y.styled_default("div")({name:"p",class:"p198m24r",propsAsIs:!1}),gt=y.styled_default("img")({name:"r",class:"rbq5eu7",propsAsIs:!1}),Dr=y.styled_default(Er())({name:"g",class:"g1iv6oeb",propsAsIs:!0}),br=y.styled_default(Ar())({name:"h",class:"h1qtxlqc",propsAsIs:!0}),Or=y.styled_default("span")({name:"u",class:"udm736q",propsAsIs:!1}),Br=y.styled_default("span")({name:"b",class:"b1da34tx",propsAsIs:!1}),Cr=y.styled_default("span")({name:"x",class:"x1dqwq83",propsAsIs:!1}),Rr=y.styled_default(Tr())({name:"v",class:"v10s9my2",propsAsIs:!0}),tt={[O.QuestionImages.CENTERED]:i=>c.jsx(Dr,{alt:"option-icon",src:i}),[O.QuestionImages.TRANSPARENT]:i=>c.jsx(vr,{children:c.jsx(zr,{style:{backgroundImage:`url(${i})`}})}),[O.QuestionImages.ROUNDED]:i=>c.jsx(br,{alt:"option-icon",src:i}),[O.QuestionImages.NONE]:()=>null,[O.QuestionImages.UNSET]:()=>null},Lr=({questionType:i,hasCorrectAnswer:n,correct:a,youVoted:u,questionVoted:f})=>{if(i===O.QuestionType.POLL&&u)return"correct";if(i===O.QuestionType.PREDICTION){if(n&&f)return u?a?"correct":"incorrect":a?"correct":"unset";if(u)return"correct"}return i===O.QuestionType.TRIVIA&&f?u?a?"correct":"incorrect":a?"correct":"unset":"unset"},kr=({questionType:i,questionVoted:n,correct:a,hasCorrectAnswer:u,questionStatus:f})=>i===O.QuestionType.TRIVIA?n&&a:i===O.QuestionType.PREDICTION?n&&a&&u||f===O.QuestionStatus.RESOLVED&&a:!1,Ur=i=>{var n;const{id:a,icon:u,text:f,percentageDecimal:g,onVote:m,youSelected:o,questionVoted:x,imageMode:A=O.QuestionImages.ROUNDED,answerTimeExpired:j,questionStatus:N,isLoading:I,questionType:E,correct:T,hasCorrectAnswer:h}=i,_=Lr(i),w=kr({questionType:E,questionVoted:x,correct:T,hasCorrectAnswer:h,questionStatus:N}),M=x||N===O.QuestionStatus.RESOLVED&&E===O.QuestionType.PREDICTION;return c.jsxs(jr,{value:a,"data-selected":o,"data-answerState":_,disabled:x||I||j,onClick:m,children:[M&&c.jsx(Nr,{"data-answerState":_,style:{width:`${g}%`}}),c.jsxs(Sr,{children:[u&&((n=tt[A])==null?void 0:n.call(tt,u)),c.jsx(Or,{children:f}),M&&c.jsxs(Br,{children:[w&&c.jsx(Rr,{name:"selected"}),c.jsxs(Cr,{children:[g,"%"]})]})]})]})};const Fr=[de.E.PRIMARY_GREEN1,de.E.SECONDARY_RED1,de.E.SECONDARY_RED1],$r=[10,10,0],Qr=y.styled_default("div")({name:"A",class:"a1f928zy",propsAsIs:!1}),qr=de.E.SECONDARY_GREEN6,rt=de.E.SECONDARY_RED3,Pr=de.E.NEUTRALS_GRAY3,Yr=({isPlaying:i=!0,duration:n=30,onTimerExpired:a})=>{const[u,f]=$.useState(n>10?qr:rt),g=({remainingTime:x})=>c.jsx(Qr,{children:x}),m=$.useCallback(()=>{a==null||a(),f(Pr)},[a,f]),o=$.useCallback(x=>{x===10&&f(rt)},[f]);return c.jsx(Bt.CountdownCircleTimer,{isPlaying:i,duration:n,colors:Fr,colorsTime:$r,size:32,strokeWidth:2,trailStrokeWidth:2,trailColor:u,onComplete:m,onUpdate:o,children:g})};const Wr=()=>y.t1,Vr=y.styled_default("div")({name:"a",class:"a1r7f3z4",propsAsIs:!1}),Hr=y.styled_default("div")({name:"s",class:"sblndl",propsAsIs:!1}),Gr=y.styled_default("div")({name:"l",class:"l7ka1tv",propsAsIs:!1}),Zr=y.styled_default(Wr())({name:"p",class:"p1edlxt3",propsAsIs:!0}),Jr=y.styled_default("div")({name:"g",class:"ghm08u2",propsAsIs:!1}),Kr=y.styled_default("span")({name:"c",class:"c12nsh46",propsAsIs:!1}),Xr=y.styled_default("span")({name:"d",class:"dlr9eoc",propsAsIs:!1}),ei=({title:i,points:n,isPlayingTimer:a,isTimer:u,onTimerExpired:f})=>c.jsxs(Vr,{children:[c.jsxs(Hr,{children:[i&&c.jsx(Gr,{children:i}),n!==void 0&&c.jsxs(c.Fragment,{children:[c.jsx(Zr,{name:"icon-trophy"}),c.jsxs(Jr,{children:[c.jsx(Kr,{children:n}),c.jsx(Xr,{children:"PTS"})]})]})]}),u&&c.jsx(Yr,{isPlaying:a,onTimerExpired:f})]}),ti=({openedQuestion:i,vote:n})=>{var a;const u=i.subject,f=i.type,g=(a=i.options)==null?void 0:a.options,[m,o]=$.useState(!1),[x,A]=$.useState(!1),[j,N]=$.useState(""),I=i==null?void 0:i.id,E=$.useCallback(async M=>{if(I){const S=M.currentTarget.value;N(S),A(!0),await n(I,S),A(!1)}},[I,N,n]),T=$.useMemo(()=>i==null?void 0:i.answers.find(M=>M.youVoted===!0),[i]),h=$.useMemo(()=>!!(i!=null&&i.answers.find(M=>M.correct===!0)),[i]),_=$.useMemo(()=>i?i.answers.map(M=>({...M,questionVoted:!!T,youSelected:j===M.id,isLoading:x,hasCorrectAnswer:h,questionType:i.type,answerTimeExpired:m,questionStatus:i.status,onVote:E})):[],[h,m,x,i,T,E,j]),w=g&&(g.case==="trivia"||g.case==="prediction")?g.value:void 0;return c.jsx(J.r,{"data-question-header":"true",children:c.jsx(Ir,{children:c.jsxs(wr,{children:[w&&c.jsx(xr,{feedbackMessages:w,questionVoted:!!T,questionVotedCorrectly:T==null?void 0:T.correct,questionType:f,hasCorrectAnswer:h,questionStatus:i.status}),c.jsx(ei,{title:m?"Expired":"To win",points:m?void 0:100,onTimerExpired:()=>o(!0),isTimer:!0}),c.jsx(_r,{children:u}),c.jsx(Mr,{children:_.map(M=>c.jsx(Ur,{...M},M.id))})]})})})};const ri=y.styled_default("div")({name:"e",class:"e1eio0mt",propsAsIs:!1}),ii=y.styled_default("div")({name:"i",class:"iigl87b",propsAsIs:!1}),ni=y.styled_default("h3")({name:"n",class:"n1o2cwub",propsAsIs:!1}),si=y.styled_default("div")({name:"r",class:"r3uxe45",propsAsIs:!1}),oi=y.styled_default("div")({name:"l",class:"lrqius",propsAsIs:!1}),xt=({created:i,title:n,instantView:a})=>{const u=$.useMemo(()=>{if(i){const f=new Date(i);if(ie.r(f))return{date:ie.a(f),time:ie.n(f)}}return null},[i]);return c.jsxs(ri,{children:[u&&c.jsxs(oi,{children:[u.date," · ",u.time]}),(a==null?void 0:a.video)&&c.jsx(J.w,{source:a.video.url,poster:a.video.thumbnailUrl}),c.jsxs(ii,{children:[c.jsx(ni,{children:(a==null?void 0:a.heading)||n}),c.jsx(si,{children:a==null?void 0:a.body})]})]})};const ai=y.styled_default("div")({name:"o",class:"o18unvw4",propsAsIs:!1}),li=y.styled_default("a")({name:"n",class:"ns0uvk8",propsAsIs:!1}),ci=({instantView:i,...n})=>c.jsxs(ai,{children:[c.jsx(xt,{instantView:i,...n}),(i==null?void 0:i.webLink)&&c.jsxs(li,{href:i==null?void 0:i.webLink.url,target:"_blank",children:["Explore more of the Masters History",c.jsx(y.t1,{name:"icon-external-link"})]})]});const ui=y.styled_default("div")({name:"d",class:"dk8r1eq",propsAsIs:!1}),di=({openedQuestion:i})=>{var n;return((n=i==null?void 0:i.attributes)==null?void 0:n.attributes.case)==="insight"?c.jsx(ci,{created:i.attributes.created,...i.attributes.attributes.value}):null},fi=({extendedQuestion:i,vote:n})=>{const{loading:a,data:u}=i;return!a&&u?c.jsx(ti,{vote:n,openedQuestion:u}):null},hi=({gamification:i})=>{var n;const a=ne.useStore(i.openedQuestion.$store),u=ne.useStore(i.openedQuestion.$extendedStore);if(!a)return null;const f=a.type;return c.jsxs(ui,{children:[c.jsx(mt,{close:i.closeQuestion,type:((n=a.attributes)==null?void 0:n.type)||O.QuestionType.UNSET}),f==="question"&&c.jsx(fi,{vote:i.submitAnswer,extendedQuestion:u}),f!=="question"&&c.jsx(di,{openedQuestion:a})]})};const pi=y.styled_default("div")({name:"t",class:"tcim9sm",propsAsIs:!1}),mi=y.styled_default("div")({name:"e",class:"e8wco6o",propsAsIs:!1}),yi=y.styled_default("button")({name:"n",class:"n1ardwzl",propsAsIs:!1}),gi=y.styled_default("span")({name:"i",class:"i1vk8ojx",propsAsIs:!1});var ge=(i=>(i.HOME="home",i.LEADERBOARD="leaderboard",i))(ge||{});const it=({title:i,active:n,onClick:a})=>c.jsx(yi,{onClick:a,"data-selected":n,children:c.jsx(gi,{children:i})}),xi=({activePage:i="home",toggleActivePage:n})=>c.jsx(pi,{children:c.jsxs(mi,{"data-position":i==="home"?"left":"right",children:[c.jsx(it,{title:"Home",active:i==="home",onClick:()=>n("home")}),c.jsx(it,{title:"Leader Board",active:i==="leaderboard",onClick:()=>n("leaderboard")})]})});var It={},wt={},Te={};Te.byteLength=_i;Te.toByteArray=Ei;Te.fromByteArray=ji;var Z=[],q=[],Ii=typeof Uint8Array<"u"?Uint8Array:Array,Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ce=0,wi=Be.length;ce<wi;++ce)Z[ce]=Be[ce],q[Be.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 _i(i){var n=_t(i),a=n[0],u=n[1];return(a+u)*3/4-u}function Mi(i,n,a){return(n+a)*3/4-a}function Ei(i){var n,a=_t(i),u=a[0],f=a[1],g=new Ii(Mi(i,u,f)),m=0,o=f>0?u-4:u,x;for(x=0;x<o;x+=4)n=q[i.charCodeAt(x)]<<18|q[i.charCodeAt(x+1)]<<12|q[i.charCodeAt(x+2)]<<6|q[i.charCodeAt(x+3)],g[m++]=n>>16&255,g[m++]=n>>8&255,g[m++]=n&255;return f===2&&(n=q[i.charCodeAt(x)]<<2|q[i.charCodeAt(x+1)]>>4,g[m++]=n&255),f===1&&(n=q[i.charCodeAt(x)]<<10|q[i.charCodeAt(x+1)]<<4|q[i.charCodeAt(x+2)]>>2,g[m++]=n>>8&255,g[m++]=n&255),g}function Ai(i){return Z[i>>18&63]+Z[i>>12&63]+Z[i>>6&63]+Z[i&63]}function Ti(i,n,a){for(var u,f=[],g=n;g<a;g+=3)u=(i[g]<<16&16711680)+(i[g+1]<<8&65280)+(i[g+2]&255),f.push(Ai(u));return f.join("")}function ji(i){for(var n,a=i.length,u=a%3,f=[],g=16383,m=0,o=a-u;m<o;m+=g)f.push(Ti(i,m,m+g>o?o:m+g));return u===1?(n=i[a-1],f.push(Z[n>>2]+Z[n<<4&63]+"==")):u===2&&(n=(i[a-2]<<8)+i[a-1],f.push(Z[n>>10]+Z[n>>4&63]+Z[n<<2&63]+"=")),f.join("")}var We={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */We.read=function(i,n,a,u,f){var g,m,o=f*8-u-1,x=(1<<o)-1,A=x>>1,j=-7,N=a?f-1:0,I=a?-1:1,E=i[n+N];for(N+=I,g=E&(1<<-j)-1,E>>=-j,j+=o;j>0;g=g*256+i[n+N],N+=I,j-=8);for(m=g&(1<<-j)-1,g>>=-j,j+=u;j>0;m=m*256+i[n+N],N+=I,j-=8);if(g===0)g=1-A;else{if(g===x)return m?NaN:(E?-1:1)*(1/0);m=m+Math.pow(2,u),g=g-A}return(E?-1:1)*m*Math.pow(2,g-u)};We.write=function(i,n,a,u,f,g){var m,o,x,A=g*8-f-1,j=(1<<A)-1,N=j>>1,I=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:g-1,T=u?1:-1,h=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(o=isNaN(n)?1:0,m=j):(m=Math.floor(Math.log(n)/Math.LN2),n*(x=Math.pow(2,-m))<1&&(m--,x*=2),m+N>=1?n+=I/x:n+=I*Math.pow(2,1-N),n*x>=2&&(m++,x/=2),m+N>=j?(o=0,m=j):m+N>=1?(o=(n*x-1)*Math.pow(2,f),m=m+N):(o=n*Math.pow(2,N-1)*Math.pow(2,f),m=0));f>=8;i[a+E]=o&255,E+=T,o/=256,f-=8);for(m=m<<f|o,A+=f;A>0;i[a+E]=m&255,E+=T,m/=256,A-=8);i[a+E-T]|=h*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 f=2147483647;i.kMaxLength=f,o.TYPED_ARRAY_SUPPORT=g(),!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 g(){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 m(r){if(r>f)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 N(r)}return x(r,e,t)}o.poolSize=8192;function x(r,e,t){if(typeof r=="string")return I(r,e);if(ArrayBuffer.isView(r))return T(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 h(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 l=_(r);if(l)return l;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 x(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 j(r,e,t){return A(r),r<=0?m(r):e!==void 0?typeof t=="string"?m(r).fill(e,t):m(r).fill(e):m(r)}o.alloc=function(r,e,t){return j(r,e,t)};function N(r){return A(r),m(r<0?0:w(r)|0)}o.allocUnsafe=function(r){return N(r)},o.allocUnsafeSlow=function(r){return N(r)};function I(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=S(r,e)|0;let s=m(t);const l=s.write(r,e);return l!==t&&(s=s.slice(0,l)),s}function E(r){const e=r.length<0?0:w(r.length)|0,t=m(e);for(let s=0;s<e;s+=1)t[s]=r[s]&255;return t}function T(r){if(V(r,Uint8Array)){const e=new Uint8Array(r);return h(e.buffer,e.byteOffset,e.byteLength)}return E(r)}function h(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=w(r.length)|0,t=m(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)?m(0):E(r);if(r.type==="Buffer"&&Array.isArray(r.data))return E(r.data)}function w(r){if(r>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.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,l=t.length;for(let d=0,p=Math.min(s,l);d<p;++d)if(e[d]!==t[d]){s=e[d],l=t[d];break}return s<l?-1:l<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 l=o.allocUnsafe(t);let d=0;for(s=0;s<e.length;++s){let p=e[s];if(V(p,Uint8Array))d+p.length>l.length?(o.isBuffer(p)||(p=o.from(p)),p.copy(l,d)):Uint8Array.prototype.set.call(l,p,d);else if(o.isBuffer(p))p.copy(l,d);else throw new TypeError('"list" argument must be an Array of Buffers');d+=p.length}return l};function S(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 l=!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(l)return s?-1:De(r).length;e=(""+e).toLowerCase(),l=!0}}o.byteLength=S;function D(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 ve(this,e,t);case"utf8":case"utf-8":return xe(this,e,t);case"ascii":return we(this,e,t);case"latin1":case"binary":return he(this,e,t);case"base64":return Ne(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 v(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)v(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)v(this,t,t+3),v(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)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},o.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?xe(this,0,e):D.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,l,d){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),l===void 0&&(l=0),d===void 0&&(d=this.length),t<0||s>e.length||l<0||d>this.length)throw new RangeError("out of range index");if(l>=d&&t>=s)return 0;if(l>=d)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,l>>>=0,d>>>=0,this===e)return 0;let p=d-l,z=s-t;const R=Math.min(p,z),C=this.slice(l,d),L=e.slice(t,s);for(let b=0;b<R;++b)if(C[b]!==L[b]){p=C[b],z=L[b];break}return p<z?-1:z<p?1:0};function B(r,e,t,s,l){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=l?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(l)return-1;t=r.length-1}else if(t<0)if(l)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,l);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?l?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):U(r,[e],t,s,l);throw new TypeError("val must be string, number or Buffer")}function U(r,e,t,s,l){let d=1,p=r.length,z=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;d=2,p/=2,z/=2,t/=2}function R(L,b){return d===1?L[b]:L.readUInt16BE(b*d)}let C;if(l){let L=-1;for(C=t;C<p;C++)if(R(r,C)===R(e,L===-1?0:C-L)){if(L===-1&&(L=C),C-L+1===z)return L*d}else L!==-1&&(C-=C-L),L=-1}else for(t+z>p&&(t=p-z),C=t;C>=0;C--){let L=!0;for(let b=0;b<z;b++)if(R(r,C+b)!==R(e,b)){L=!1;break}if(L)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 B(this,e,t,s,!0)},o.prototype.lastIndexOf=function(e,t,s){return B(this,e,t,s,!1)};function Y(r,e,t,s){t=Number(t)||0;const l=r.length-t;s?(s=Number(s),s>l&&(s=l)):s=l;const d=e.length;s>d/2&&(s=d/2);let p;for(p=0;p<s;++p){const z=parseInt(e.substr(p*2,2),16);if(be(z))return p;r[t+p]=z}return p}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,l){if(t===void 0)l="utf8",s=this.length,t=0;else if(s===void 0&&typeof t=="string")l=t,s=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(s)?(s=s>>>0,l===void 0&&(l="utf8")):(l=s,s=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const d=this.length-t;if((s===void 0||s>d)&&(s=d),e.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");let p=!1;for(;;)switch(l){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(p)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),p=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ne(r,e,t){return e===0&&t===r.length?n.fromByteArray(r):n.fromByteArray(r.slice(e,t))}function xe(r,e,t){t=Math.min(r.length,t);const s=[];let l=e;for(;l<t;){const d=r[l];let p=null,z=d>239?4:d>223?3:d>191?2:1;if(l+z<=t){let R,C,L,b;switch(z){case 1:d<128&&(p=d);break;case 2:R=r[l+1],(R&192)===128&&(b=(d&31)<<6|R&63,b>127&&(p=b));break;case 3:R=r[l+1],C=r[l+2],(R&192)===128&&(C&192)===128&&(b=(d&15)<<12|(R&63)<<6|C&63,b>2047&&(b<55296||b>57343)&&(p=b));break;case 4:R=r[l+1],C=r[l+2],L=r[l+3],(R&192)===128&&(C&192)===128&&(L&192)===128&&(b=(d&15)<<18|(R&63)<<12|(C&63)<<6|L&63,b>65535&&b<1114112&&(p=b))}}p===null?(p=65533,z=1):p>65535&&(p-=65536,s.push(p>>>10&1023|55296),p=56320|p&1023),s.push(p),l+=z}return Se(s)}const Ie=4096;function Se(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 l=e;l<t;++l)s+=String.fromCharCode(r[l]&127);return s}function he(r,e,t){let s="";t=Math.min(r.length,t);for(let l=e;l<t;++l)s+=String.fromCharCode(r[l]);return s}function ve(r,e,t){const s=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>s)&&(t=s);let l="";for(let d=e;d<t;++d)l+=bt[r[d]];return l}function _e(r,e,t){const s=r.slice(e,t);let l="";for(let d=0;d<s.length-1;d+=2)l+=String.fromCharCode(s[d]+s[d+1]*256);return l}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 l=this.subarray(e,t);return Object.setPrototypeOf(l,o.prototype),l};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 l=this[e],d=1,p=0;for(;++p<t&&(d*=256);)l+=this[e+p]*d;return l},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,s){e=e>>>0,t=t>>>0,s||F(e,t,this.length);let l=this[e+--t],d=1;for(;t>0&&(d*=256);)l+=this[e+--t]*d;return l},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 l=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,d=this[++e]+this[++e]*2**8+this[++e]*2**16+s*2**24;return BigInt(l)+(BigInt(d)<<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 l=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],d=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+s;return(BigInt(l)<<BigInt(32))+BigInt(d)}),o.prototype.readIntLE=function(e,t,s){e=e>>>0,t=t>>>0,s||F(e,t,this.length);let l=this[e],d=1,p=0;for(;++p<t&&(d*=256);)l+=this[e+p]*d;return d*=128,l>=d&&(l-=Math.pow(2,8*t)),l},o.prototype.readIntBE=function(e,t,s){e=e>>>0,t=t>>>0,s||F(e,t,this.length);let l=t,d=1,p=this[e+--l];for(;l>0&&(d*=256);)p+=this[e+--l]*d;return d*=128,p>=d&&(p-=Math.pow(2,8*t)),p},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 l=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(s<<24);return(BigInt(l)<<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 l=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(l)<<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,l,d){if(!o.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>l||e<d)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,l){if(e=+e,t=t>>>0,s=s>>>0,!l){const z=Math.pow(2,8*s)-1;Q(this,e,t,s,z,0)}let d=1,p=0;for(this[t]=e&255;++p<s&&(d*=256);)this[t+p]=e/d&255;return t+s},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,s,l){if(e=+e,t=t>>>0,s=s>>>0,!l){const z=Math.pow(2,8*s)-1;Q(this,e,t,s,z,0)}let d=s-1,p=1;for(this[t+d]=e&255;--d>=0&&(p*=256);)this[t+d]=e/p&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,l){Ze(e,s,l,r,t,7);let d=Number(e&BigInt(4294967295));r[t++]=d,d=d>>8,r[t++]=d,d=d>>8,r[t++]=d,d=d>>8,r[t++]=d;let p=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=p,p=p>>8,r[t++]=p,p=p>>8,r[t++]=p,p=p>>8,r[t++]=p,t}function ee(r,e,t,s,l){Ze(e,s,l,r,t,7);let d=Number(e&BigInt(4294967295));r[t+7]=d,d=d>>8,r[t+6]=d,d=d>>8,r[t+5]=d,d=d>>8,r[t+4]=d;let p=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=p,p=p>>8,r[t+2]=p,p=p>>8,r[t+1]=p,p=p>>8,r[t]=p,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,l){if(e=+e,t=t>>>0,!l){const R=Math.pow(2,8*s-1);Q(this,e,t,s,R-1,-R)}let d=0,p=1,z=0;for(this[t]=e&255;++d<s&&(p*=256);)e<0&&z===0&&this[t+d-1]!==0&&(z=1),this[t+d]=(e/p>>0)-z&255;return t+s},o.prototype.writeIntBE=function(e,t,s,l){if(e=+e,t=t>>>0,!l){const R=Math.pow(2,8*s-1);Q(this,e,t,s,R-1,-R)}let d=s-1,p=1,z=0;for(this[t+d]=e&255;--d>=0&&(p*=256);)e<0&&z===0&&this[t+d+1]!==0&&(z=1),this[t+d]=(e/p>>0)-z&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,l,d){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,l){return e=+e,t=t>>>0,l||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,l){return e=+e,t=t>>>0,l||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,l){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(s||(s=0),!l&&l!==0&&(l=this.length),t>=e.length&&(t=e.length),t||(t=0),l>0&&l<s&&(l=s),l===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(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),e.length-t<l-s&&(l=e.length-t+s);const d=l-s;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,s,l):Uint8Array.prototype.set.call(e,this.subarray(s,l),t),d},o.prototype.fill=function(e,t,s,l){if(typeof e=="string"){if(typeof t=="string"?(l=t,t=0,s=this.length):typeof s=="string"&&(l=s,s=this.length),l!==void 0&&typeof l!="string")throw new TypeError("encoding must be a string");if(typeof l=="string"&&!o.isEncoding(l))throw new TypeError("Unknown encoding: "+l);if(e.length===1){const p=e.charCodeAt(0);(l==="utf8"&&p<128||l==="latin1")&&(e=p)}}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 d;if(typeof e=="number")for(d=t;d<s;++d)this[d]=e;else{const p=o.isBuffer(e)?e:o.from(e,l),z=p.length;if(z===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(d=0;d<s-t;++d)this[d+t]=p[d%z]}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(l){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:l,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.`,l=t;return Number.isInteger(t)&&Math.abs(t)>2**32?l=Ge(String(t)):typeof t=="bigint"&&(l=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(l=Ge(l)),l+="n"),s+=` It must be ${e}. Received ${l}`,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 Nt(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,l,d){if(r>t||r<e){const p=typeof e=="bigint"?"n":"";let z;throw d>3?e===0||e===BigInt(0)?z=`>= 0${p} and < 2${p} ** ${(d+1)*8}${p}`:z=`>= -(2${p} ** ${(d+1)*8-1}${p}) and < 2 ** ${(d+1)*8-1}${p}`:z=`>= ${e}${p} and <= ${t}${p}`,new ae.ERR_OUT_OF_RANGE("value",z,r)}Nt(s,l,d)}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 St=/[^+/0-9A-Za-z-_]/g;function vt(r){if(r=r.split("=")[0],r=r.trim().replace(St,""),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 l=null;const d=[];for(let p=0;p<s;++p){if(t=r.charCodeAt(p),t>55295&&t<57344){if(!l){if(t>56319){(e-=3)>-1&&d.push(239,191,189);continue}else if(p+1===s){(e-=3)>-1&&d.push(239,191,189);continue}l=t;continue}if(t<56320){(e-=3)>-1&&d.push(239,191,189),l=t;continue}t=(l-55296<<10|t-56320)+65536}else l&&(e-=3)>-1&&d.push(239,191,189);if(l=null,t<128){if((e-=1)<0)break;d.push(t)}else if(t<2048){if((e-=2)<0)break;d.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;d.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;d.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return d}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,l;const d=[];for(let p=0;p<r.length&&!((e-=2)<0);++p)t=r.charCodeAt(p),s=t>>8,l=t%256,d.push(l),d.push(s);return d}function Je(r){return n.toByteArray(vt(r))}function Me(r,e,t,s){let l;for(l=0;l<s&&!(l+t>=e.length||l>=r.length);++l)e[l+t]=r[l];return l}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 l=0;l<16;++l)e[s+l]=r[t]+r[l]}return e}();function te(r){return typeof BigInt>"u"?Ot:r}function Ot(){throw new Error("BigInt not supported")}})(wt);var Mt={exports:{}},k=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 Et(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 Ni(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,re,Ae=-1;function Si(){!fe||!re||(fe=!1,re.length?K=re.concat(K):Ae=-1,K.length&&At())}function At(){if(!fe){var i=Et(Si);fe=!0;for(var n=K.length;n;){for(re=K,K=[];++Ae<n;)re&&re[Ae].run();Ae=-1,n=K.length}re=null,fe=!1,Ni(i)}}k.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&&Et(At)};function Tt(i,n){this.fun=i,this.array=n}Tt.prototype.run=function(){this.fun.apply(null,this.array)};k.title="browser";k.browser=!0;k.env={};k.argv=[];k.version="";k.versions={};function X(){}k.on=X;k.addListener=X;k.once=X;k.off=X;k.removeListener=X;k.removeAllListeners=X;k.emit=X;k.prependListener=X;k.prependOnceListener=X;k.listeners=function(i){return[]};k.binding=function(i){throw new Error("process.binding is not supported")};k.cwd=function(){return"/"};k.chdir=function(i){throw new Error("process.chdir is not supported")};k.umask=function(){return 0};var vi=Mt.exports;(function(i){Object.defineProperty(i,Symbol.toStringTag,{value:"Module"});const n=wt,a=vi,u=m=>m&&m.__esModule?m:{default:m},f=u(a),g=globalThis||void 0||self;Object.defineProperty(i,"Buffer",{enumerable:!0,get:()=>n.Buffer}),Object.defineProperty(i,"process",{enumerable:!0,get:()=>f.default}),i.global=g})(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,Re=P.cancelAnimationFrame||P.mozCancelAnimationFrame||P.webkitCancelAnimationFrame,ot=P.requestAnimationFrame||P.mozRequestAnimationFrame||P.webkitRequestAnimationFrame;Re==null||ot==null?(Qe=Ce,qe=function(n){return st(n,nt)}):(Qe=function([n,a]){Re(n),Ce(a)},qe=function(n){const a=ot(function(){Ce(u),n()}),u=st(function(){Re(a),n()},nt);return[a,u]});function zi(i){let n,a,u,f,g,m,o;const x=typeof document<"u"&&document.attachEvent;if(!x){m=function(w){const M=w.__resizeTriggers__,S=M.firstElementChild,D=M.lastElementChild,v=S.firstElementChild;D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight,v.style.width=S.offsetWidth+1+"px",v.style.height=S.offsetHeight+1+"px",S.scrollLeft=S.scrollWidth,S.scrollTop=S.scrollHeight},g=function(w){return w.offsetWidth!==w.__resizeLast__.width||w.offsetHeight!==w.__resizeLast__.height},o=function(w){if(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)return;const M=this;m(this),this.__resizeRAF__&&Qe(this.__resizeRAF__),this.__resizeRAF__=qe(function(){g(M)&&(M.__resizeLast__.width=M.offsetWidth,M.__resizeLast__.height=M.offsetHeight,M.__resizeListeners__.forEach(function(v){v.call(M,w)}))})};let I=!1,E="";u="animationstart";const T="Webkit Moz O ms".split(" ");let h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),_="";{const w=document.createElement("fakeelement");if(w.style.animationName!==void 0&&(I=!0),I===!1){for(let M=0;M<T.length;M++)if(w.style[T[M]+"AnimationName"]!==void 0){_=T[M],E="-"+_.toLowerCase()+"-",u=h[M],I=!0;break}}}a="resizeanim",n="@"+E+"keyframes "+a+" { from { opacity: 0; } to { opacity: 0; } } ",f=E+"animation: 1ms "+a+"; "}const A=function(I){if(!I.getElementById("detectElementResize")){const E=(n||"")+".resize-triggers { "+(f||"")+'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%; }',T=I.head||I.getElementsByTagName("head")[0],h=I.createElement("style");h.id="detectElementResize",h.type="text/css",i!=null&&h.setAttribute("nonce",i),h.styleSheet?h.styleSheet.cssText=E:h.appendChild(I.createTextNode(E)),T.appendChild(h)}};return{addResizeListener:function(I,E){if(x)I.attachEvent("onresize",E);else{if(!I.__resizeTriggers__){const T=I.ownerDocument,h=P.getComputedStyle(I);h&&h.position==="static"&&(I.style.position="relative"),A(T),I.__resizeLast__={},I.__resizeListeners__=[],(I.__resizeTriggers__=T.createElement("div")).className="resize-triggers";const _=T.createElement("div");_.className="expand-trigger",_.appendChild(T.createElement("div"));const w=T.createElement("div");w.className="contract-trigger",I.__resizeTriggers__.appendChild(_),I.__resizeTriggers__.appendChild(w),I.appendChild(I.__resizeTriggers__),m(I),I.addEventListener("scroll",o,!0),u&&(I.__resizeTriggers__.__animationListener__=function(S){S.animationName===a&&m(I)},I.__resizeTriggers__.addEventListener(u,I.__resizeTriggers__.__animationListener__))}I.__resizeListeners__.push(E)}},removeResizeListener:function(I,E){if(x)I.detachEvent("onresize",E);else if(I.__resizeListeners__.splice(I.__resizeListeners__.indexOf(E),1),!I.__resizeListeners__.length){I.removeEventListener("scroll",o,!0),I.__resizeTriggers__.__animationListener__&&(I.__resizeTriggers__.removeEventListener(u,I.__resizeTriggers__.__animationListener__),I.__resizeTriggers__.__animationListener__=null);try{I.__resizeTriggers__=!I.removeChild(I.__resizeTriggers__)}catch{}}}}}class Di 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:f}=this.props;if(this._parentNode){var g,m,o,x;const A=window.getComputedStyle(this._parentNode)||{},j=parseFloat((g=A.paddingLeft)!==null&&g!==void 0?g:"0"),N=parseFloat((m=A.paddingRight)!==null&&m!==void 0?m:"0"),I=parseFloat((o=A.paddingTop)!==null&&o!==void 0?o:"0"),E=parseFloat((x=A.paddingBottom)!==null&&x!==void 0?x:"0"),T=this._parentNode.getBoundingClientRect(),h=T.height-I-E,_=T.width-j-N,w=this._parentNode.offsetHeight-I-E,M=this._parentNode.offsetWidth-j-N;(!a&&(this.state.height!==w||this.state.scaledHeight!==h)||!u&&(this.state.width!==M||this.state.scaledWidth!==_))&&(this.setState({height:w,width:M,scaledHeight:h,scaledWidth:_}),typeof f=="function"&&f({height:w,scaledHeight:h,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=zi(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:f=!1,disableWidth:g=!1,nonce:m,onResize:o,style:x={},tagName:A="div",...j}=this.props,{height:N,scaledHeight:I,scaledWidth:E,width:T}=this.state,h={overflow:"visible"},_={};let w=!1;return f||(N===0&&(w=!0),h.height=0,_.height=N,_.scaledHeight=I),g||(T===0&&(w=!0),h.width=0,_.width=T,_.scaledWidth=E),$.createElement(A,{ref:this._setRef,style:{...h,...x},...j},!w&&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,f){return u.__proto__=f,u},Ye(i,n)}function bi(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 Oi(i,n){return!!(i===n||lt(i)&&lt(n))}function Bi(i,n){if(i.length!==n.length)return!1;for(var a=0;a<i.length;a++)if(!Oi(i[a],n[a]))return!1;return!0}function Le(i,n){n===void 0&&(n=Bi);var a,u=[],f,g=!1;function m(){for(var o=[],x=0;x<arguments.length;x++)o[x]=arguments[x];return g&&a===this&&n(o,u)||(f=i.apply(this,o),g=!0,a=this,u=o),f}return m}var Ci=typeof performance=="object"&&typeof performance.now=="function",ct=Ci?function(){return performance.now()}:function(){return Date.now()};function ut(i){cancelAnimationFrame(i.id)}function Ri(i,n){var a=ct();function u(){ct()-a>=n?i.call(null):f.id=requestAnimationFrame(u)}var f={id:requestAnimationFrame(u)};return f}var ke=-1;function dt(i){if(i===void 0&&(i=!1),ke===-1||i){var n=document.createElement("div"),a=n.style;a.width="50px",a.height="50px",a.overflow="scroll",document.body.appendChild(n),ke=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return ke}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"),f=u.style;return f.width="100px",f.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 Li=150,ki=function(n,a){return n};function Ui(i){var n,a=i.getItemOffset,u=i.getEstimatedTotalSize,f=i.getItemSize,g=i.getOffsetForIndexAndAlignment,m=i.getStartIndexForOffset,o=i.getStopIndexForStartIndex,x=i.initInstanceProps,A=i.shouldResetStyleCacheOnItemSizeChange,j=i.validateProps;return n=function(N){bi(I,N);function I(T){var h;return h=N.call(this,T)||this,h._instanceProps=x(h.props,at(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:at(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=Le(function(_,w,M,S){return h.props.onItemsRendered({overscanStartIndex:_,overscanStopIndex:w,visibleStartIndex:M,visibleStopIndex:S})}),h._callOnScroll=void 0,h._callOnScroll=Le(function(_,w,M){return h.props.onScroll({scrollDirection:_,scrollOffset:w,scrollUpdateWasRequested:M})}),h._getItemStyle=void 0,h._getItemStyle=function(_){var w=h.props,M=w.direction,S=w.itemSize,D=w.layout,v=h._getItemStyleCache(A&&S,A&&D,A&&M),B;if(v.hasOwnProperty(_))B=v[_];else{var U=a(h.props,_,h._instanceProps),Y=f(h.props,_,h._instanceProps),W=M==="horizontal"||D==="horizontal",se=M==="rtl",oe=W?U:0;v[_]=B={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 B},h._getItemStyleCache=void 0,h._getItemStyleCache=Le(function(_,w,M){return{}}),h._onScrollHorizontal=function(_){var w=_.currentTarget,M=w.clientWidth,S=w.scrollLeft,D=w.scrollWidth;h.setState(function(v){if(v.scrollOffset===S)return null;var B=h.props.direction,U=S;if(B==="rtl")switch(ft()){case"negative":U=-S;break;case"positive-descending":U=D-M-S;break}return U=Math.max(0,Math.min(U,D-M)),{isScrolling:!0,scrollDirection:v.scrollOffset<S?"forward":"backward",scrollOffset:U,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(_){var w=_.currentTarget,M=w.clientHeight,S=w.scrollHeight,D=w.scrollTop;h.setState(function(v){if(v.scrollOffset===D)return null;var B=Math.max(0,Math.min(D,S-M));return{isScrolling:!0,scrollDirection:v.scrollOffset<B?"forward":"backward",scrollOffset:B,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(_){var w=h.props.outerRef;h._outerRef=_,typeof w=="function"?w(_):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=_)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&ut(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=Ri(h._resetIsScrolling,Li)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}I.getDerivedStateFromProps=function(h,_){return Fi(h,_),j(h),null};var E=I.prototype;return E.scrollTo=function(h){h=Math.max(0,h),this.setState(function(_){return _.scrollOffset===h?null:{scrollDirection:_.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(h,_){_===void 0&&(_="auto");var w=this.props,M=w.itemCount,S=w.layout,D=this.state.scrollOffset;h=Math.max(0,Math.min(h,M-1));var v=0;if(this._outerRef){var B=this._outerRef;S==="vertical"?v=B.scrollWidth>B.clientWidth?dt():0:v=B.scrollHeight>B.clientHeight?dt():0}this.scrollTo(g(this.props,h,_,D,this._instanceProps,v))},E.componentDidMount=function(){var h=this.props,_=h.direction,w=h.initialScrollOffset,M=h.layout;if(typeof w=="number"&&this._outerRef!=null){var S=this._outerRef;_==="horizontal"||M==="horizontal"?S.scrollLeft=w:S.scrollTop=w}this._callPropsCallbacks()},E.componentDidUpdate=function(){var h=this.props,_=h.direction,w=h.layout,M=this.state,S=M.scrollOffset,D=M.scrollUpdateWasRequested;if(D&&this._outerRef!=null){var v=this._outerRef;if(_==="horizontal"||w==="horizontal")if(_==="rtl")switch(ft()){case"negative":v.scrollLeft=-S;break;case"positive-ascending":v.scrollLeft=S;break;default:var B=v.clientWidth,U=v.scrollWidth;v.scrollLeft=U-B-S;break}else v.scrollLeft=S;else v.scrollTop=S}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&ut(this._resetIsScrollingTimeoutId)},E.render=function(){var h=this.props,_=h.children,w=h.className,M=h.direction,S=h.height,D=h.innerRef,v=h.innerElementType,B=h.innerTagName,U=h.itemCount,Y=h.itemData,W=h.itemKey,se=W===void 0?ki:W,oe=h.layout,je=h.outerElementType,Ne=h.outerTagName,xe=h.style,Ie=h.useIsScrolling,Se=h.width,we=this.state.isScrolling,he=M==="horizontal"||oe==="horizontal",ve=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||Ne||"div",{className:w,onScroll:ve,ref:this._outerRefSetter,style:Pe({position:"relative",height:S,width:Se,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:M},xe)},$.createElement(v||B||"div",{children:pe,ref:D,style:{height:he?"100%":me,pointerEvents:we?"none":void 0,width:he?me:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var _=this._getRangeToRender(),w=_[0],M=_[1],S=_[2],D=_[3];this._callOnItemsRendered(w,M,S,D)}}if(typeof this.props.onScroll=="function"){var v=this.state,B=v.scrollDirection,U=v.scrollOffset,Y=v.scrollUpdateWasRequested;this._callOnScroll(B,U,Y)}},E._getRangeToRender=function(){var h=this.props,_=h.itemCount,w=h.overscanCount,M=this.state,S=M.isScrolling,D=M.scrollDirection,v=M.scrollOffset;if(_===0)return[0,0,0,0];var B=m(this.props,v,this._instanceProps),U=o(this.props,B,v,this._instanceProps),Y=!S||D==="backward"?Math.max(1,w):1,W=!S||D==="forward"?Math.max(1,w):1;return[Math.max(0,B-Y),Math.max(0,Math.min(_-1,U+W)),B,U]},I}($.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var Fi=function(n,a){n.children,n.direction,n.height,n.layout,n.innerTagName,n.outerTagName,n.width,a.instance},$i=Ui({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,f,g,m){var o=n.direction,x=n.height,A=n.itemCount,j=n.itemSize,N=n.layout,I=n.width,E=o==="horizontal"||N==="horizontal",T=E?I:x,h=Math.max(0,A*j-T),_=Math.min(h,a*j),w=Math.max(0,a*j-T+j+m);switch(u==="smart"&&(f>=w-T&&f<=_+T?u="auto":u="center"),u){case"start":return _;case"end":return w;case"center":{var M=Math.round(w+(_-w)/2);return M<Math.ceil(T/2)?0:M>h+Math.floor(T/2)?h:M}case"auto":default:return f>=w&&f<=_?f:f<w?w:_}},getStartIndexForOffset:function(n,a){var u=n.itemCount,f=n.itemSize;return Math.max(0,Math.min(u-1,Math.floor(a/f)))},getStopIndexForStartIndex:function(n,a,u){var f=n.direction,g=n.height,m=n.itemCount,o=n.itemSize,x=n.layout,A=n.width,j=f==="horizontal"||x==="horizontal",N=a*o,I=j?A:g,E=Math.ceil((I+u-N)/o);return Math.max(0,Math.min(m-1,a+E-1))},initInstanceProps:function(n){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(n){n.itemSize}});function Qi(i){var n=i.lastRenderedStartIndex,a=i.lastRenderedStopIndex,u=i.startIndex,f=i.stopIndex;return!(u>a||f<n)}function qi(i){for(var n=i.isItemLoaded,a=i.itemCount,u=i.minimumBatchSize,f=i.startIndex,g=i.stopIndex,m=[],o=null,x=null,A=f;A<=g;A++){var j=n(A);j?x!==null&&(m.push(o,x),o=x=null):(x=A,o===null&&(o=A))}if(x!==null){for(var N=Math.min(Math.max(x,o+u-1),a-1),I=x+1;I<=N&&!n(I);I++)x=I;m.push(o,x)}if(m.length)for(;m[1]-m[0]+1<u&&m[0]>0;){var E=m[0]-1;if(!n(E))m[0]=E;else break}return m}var Pi=function(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")},Yi=function(){function i(n,a){for(var u=0;u<a.length;u++){var f=a[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}return function(n,a,u){return a&&i(n.prototype,a),u&&i(n,u),n}}(),Wi=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},Vi=function(i){Wi(n,i);function n(){var a,u,f,g;Pi(this,n);for(var m=arguments.length,o=Array(m),x=0;x<m;x++)o[x]=arguments[x];return g=(u=(f=ht(this,(a=n.__proto__||Object.getPrototypeOf(n)).call.apply(a,[this].concat(o))),f),f._lastRenderedStartIndex=-1,f._lastRenderedStopIndex=-1,f._memoizedUnloadedRanges=[],f._onItemsRendered=function(A){var j=A.visibleStartIndex,N=A.visibleStopIndex;f._lastRenderedStartIndex=j,f._lastRenderedStopIndex=N,f._ensureRowsLoaded(j,N)},f._setRef=function(A){f._listRef=A},u),ht(f,g)}return Yi(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,f){var g=this.props,m=g.isItemLoaded,o=g.itemCount,x=g.minimumBatchSize,A=x===void 0?10:x,j=g.threshold,N=j===void 0?15:j,I=qi({isItemLoaded:m,itemCount:o,minimumBatchSize:A,startIndex:Math.max(0,u-N),stopIndex:Math.min(o-1,f+N)});(this._memoizedUnloadedRanges.length!==I.length||this._memoizedUnloadedRanges.some(function(E,T){return I[T]!==E}))&&(this._memoizedUnloadedRanges=I,this._loadUnloadedRanges(I))}},{key:"_loadUnloadedRanges",value:function(u){for(var f=this,g=this.props.loadMoreItems||this.props.loadMoreRows,m=function(A){var j=u[A],N=u[A+1],I=g(j,N);I!=null&&I.then(function(){if(Qi({lastRenderedStartIndex:f._lastRenderedStartIndex,lastRenderedStopIndex:f._lastRenderedStopIndex,startIndex:j,stopIndex:N})){if(f._listRef==null)return;typeof f._listRef.resetAfterIndex=="function"?f._listRef.resetAfterIndex(j,!0):(typeof f._listRef._getItemStyleCache=="function"&&f._listRef._getItemStyleCache(-1),f._listRef.forceUpdate())}})},o=0;o<u.length;o+=2)m(o)}}]),n}($.PureComponent);const Hi=()=>y.t1,Gi=y.styled_default("div")({name:"a",class:"a1w9zony",propsAsIs:!1}),Zi=y.styled_default("div")({name:"l",class:"l16qcfv8",propsAsIs:!1}),Ji=y.styled_default("img")({name:"p",class:"p1gmcc5f",propsAsIs:!1}),Ki=y.styled_default("div")({name:"s",class:"s1doddh0",propsAsIs:!1}),Xi=y.styled_default("div")({name:"c",class:"c1js9xhe",propsAsIs:!1}),en=y.styled_default("div")({name:"d",class:"d1tmnqsh",propsAsIs:!1}),tn=y.styled_default("span")({name:"g",class:"gi9h87j",propsAsIs:!1}),rn=y.styled_default(Hi())({name:"x",class:"x13mk3z6",propsAsIs:!0}),nn=({rank:i,avatar:n,name:a,points:u,isCurrentUser:f,openItemDetail:g,style:m})=>c.jsxs(Gi,{onClick:g,style:m,children:[c.jsx(Zi,{children:i||0}),c.jsxs(Xi,{children:[n?c.jsx(Ji,{alt:"leaderboard-item-avatar",src:n}):c.jsx(Ki,{children:ie.o(a||"")}),c.jsxs(en,{children:[c.jsx(tn,{children:a||""}),f&&c.jsx(rn,{name:"icon-star"})]})]}),c.jsx("div",{children:ie.i(u)})]}),sn=({items:i,openItemDetail:n,fetchMore:a})=>c.jsx(Di,{children:({width:u,height:f})=>c.jsx(Vi,{isItemLoaded:g=>g<i.length,itemCount:i.length+1,loadMoreItems:a,children:({onItemsRendered:g,ref:m})=>c.jsx($i,{itemSize:56,onItemsRendered:g,ref:m,itemCount:i.length,width:u,height:f,children:({index:o,style:x})=>c.jsx(nn,{style:{...x,maxHeight:48},...i[o],openItemDetail:()=>n(i[o].userId)},i[o].userId)})})}),on=({leaderboardList:i,openUser:n})=>{const{data:a}=ne.useStore(i.$store);return c.jsx(sn,{fetchMore:i.fetchMore,items:a,openItemDetail:n})};const an=y.styled_default("button")({name:"a",class:"akly9h2",propsAsIs:!1}),ln=y.styled_default("span")({name:"e",class:"eptoiz9",propsAsIs:!1}),cn=({disabled:i,variant:n="primary",onClick:a,children:u,...f})=>c.jsx(an,{onClick:a,disabled:i,"data-variant":n,...f,children:c.jsx(ln,{children:u})});const un=()=>y.t1,dn=()=>y.t1,fn=y.styled_default("div")({name:"s",class:"s1lblda3",propsAsIs:!1}),hn=y.styled_default("div")({name:"a",class:"ascvb2g",propsAsIs:!1}),pn=y.styled_default("div")({name:"p",class:"p17rl8zy",propsAsIs:!1}),mn=y.styled_default("div")({name:"l",class:"l1vvttbn",propsAsIs:!1}),Ue=y.styled_default(un())({name:"c",class:"c6fk2ph",propsAsIs:!0}),yn=y.styled_default(dn())({name:"d",class:"d1rdm136",propsAsIs:!0}),gn=y.styled_default("div")({name:"f",class:"fwqnnel",propsAsIs:!1}),xn=y.styled_default("div")({name:"u",class:"ucyxnlg",propsAsIs:!1}),In={[O.PickHistoryStatus.LOST]:c.jsx(Ue,{name:"icon-cross"}),[O.PickHistoryStatus.WON]:c.jsx(Ue,{name:"icon-check"}),[O.PickHistoryStatus.UNSET]:void 0,[O.PickHistoryStatus.DNP]:c.jsx(Ue,{name:"icon-arrow"})},wn=({questionId:i,questionType:n,questionStatus:a,subject:u,openForVoting:f,openQuestion:g,status:m})=>{const o=J.o[n],x=In[m];return o?c.jsxs(fn,{onClick:()=>g==null?void 0:g(i),children:[c.jsxs(xn,{children:[c.jsxs(hn,{children:[c.jsx(yn,{name:o.iconName}),c.jsxs(gn,{children:[o.label,n===O.QuestionType.TRIVIA&&a===O.QuestionStatus.RESOLVED&&" • Expired"]})]}),c.jsx(pn,{children:u||""})]}),c.jsx(mn,{children:x||(f?c.jsx(cn,{children:"Play"}):null)})]}):null};const _n=y.styled_default("div")({name:"n",class:"n1jcgove",propsAsIs:!1}),Mn=y.styled_default("button")({name:"l",class:"l1bwp7hh",propsAsIs:!1}),En=({openInsight:i,questionId:n,...a})=>c.jsxs(_n,{children:[c.jsx(xt,{questionId:n,...a}),i&&c.jsx(Mn,{onClick:()=>i(n),children:"View Insight"})]});const An=y.styled_default("div")({name:"t",class:"t19vr3p1",propsAsIs:!1}),Tn=({questions:i,openQuestion:n})=>c.jsx(An,{children:i==null?void 0:i.map(a=>{var u,f;if(a.type==="question"&&((u=a.attributes)==null?void 0:u.attributes.case)==="question"){const g=a.attributes.attributes.value;return c.jsx(wn,{openQuestion:n,...g},g.questionId)}if(a.type==="insight"&&((f=a.attributes)==null?void 0:f.attributes.case)==="insight"){const g=a.attributes.attributes.value;return c.jsx(En,{openInsight:n,...g},g.questionId)}return null})}),jn=({store:i,openQuestion:n})=>{const a=ne.useStore(i);return a!=null&&a.data?c.jsx(Tn,{openQuestion:n,questions:a.data}):c.jsx("div",{children:"wait questions..."})},Nn=({userSummary:i})=>{var n;const a=ne.useStore(i.getStore());return(n=a.data)!=null&&n.summary?c.jsx(yt,{...a.data.summary,...a.data.percentage}):c.jsx("div",{children:"wait user..."})},Sn=({gamification:i})=>{const[n,a]=$.useState(ge.HOME);return c.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[c.jsxs(J.e,{children:[c.jsx(xi,{activePage:n,toggleActivePage:a}),n===ge.HOME&&c.jsx(Nn,{userSummary:i.userSummary})]}),n===ge.HOME&&c.jsx(J.n,{children:c.jsx(jn,{openQuestion:i.openQuestion,store:i.feedList.getStore()})}),n===ge.LEADERBOARD&&c.jsx(J.n,{style:{flex:"1 1 auto",paddingTop:0,paddingBottom:0},children:c.jsx(on,{openUser:i.openUser,leaderboardList:i.leaderboardList})})]})};const vn=()=>J.f,pt=y.styled_default(vn())({name:"e",class:"e1ph66cs",propsAsIs:!0}),zn=y.styled_default("div")({name:"x",class:"xorme7i",propsAsIs:!1}),jt=({gamification:i,className:n})=>{const a=ne.useStore(i.openedQuestion.$store),u=ne.useStore(i.openedUser);return c.jsxs(c.Fragment,{children:[a&&c.jsx(pt,{className:n,children:c.jsx(hi,{gamification:i})}),u&&c.jsx(pt,{className:n,children:c.jsxs(zn,{children:[c.jsx(mt,{label:"Friend's Rank",close:i.closeUser}),c.jsx(J.e,{children:c.jsx(yt,{...u})})]})}),c.jsx(J.r,{className:n,"data-nav":"true",children:c.jsx(Sn,{gamification:i})})]})};exports.GamificationOverlay=jt;exports.default=jt;