@streamlayer/react 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/advertisement.js +30 -30
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/index2.js +5 -5
- package/lib/cjs/masters2.js +3 -3
- package/lib/cjs/provider.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +6 -6
- package/lib/classic/cjs/advertisement.js +30 -30
- package/lib/classic/cjs/bet-pack.js +1 -1
- package/lib/classic/cjs/gamification-feature2.js +1 -1
- package/lib/classic/cjs/index2.js +5 -5
- package/lib/classic/cjs/masters2.js +3 -3
- package/lib/classic/cjs/provider.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +6 -6
- package/lib/classic/es/advertisement.js +2205 -2193
- package/lib/classic/es/bet-pack.js +1 -1
- package/lib/classic/es/gamification-feature2.js +1 -1
- package/lib/classic/es/index2.js +697 -685
- package/lib/classic/es/masters2.js +202 -231
- package/lib/classic/es/provider.js +2 -2
- package/lib/classic/es/useStreamLayerApp2.js +147 -138
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/masters.js +22 -22
- package/lib/dist/es/gamification-feature.js +1 -1
- package/lib/dist/es/gamification-feature2.js +45 -45
- package/lib/dist/es/index.js +3 -3
- package/lib/dist/es/masters.js +3057 -3065
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +2205 -2193
- package/lib/es/bet-pack.js +1 -1
- package/lib/es/gamification-feature2.js +1 -1
- package/lib/es/index2.js +697 -685
- package/lib/es/masters2.js +202 -231
- package/lib/es/provider.js +2 -2
- package/lib/es/useStreamLayerApp2.js +147 -138
- package/lib/style.css +1 -1
- package/package.json +14 -14
|
@@ -46,4 +46,4 @@ Error generating stack: `+l.message+`
|
|
|
46
46
|
display: none !important;
|
|
47
47
|
}
|
|
48
48
|
`,Eo=()=>window.innerWidth>=r1.lg&&window.innerWidth<r1.xl?76:53,js=e=>{var t;const n=Eo();return Math.round((((t=e.current)==null?void 0:t.getBoundingClientRect().y)||0)-n)<=0},Ki=({children:e,container:t,useContainer:n})=>{const[r]=w.useState(()=>js(t)),[i,l]=w.useState(!1);return w.useEffect(()=>{if(!t.current||!r)return l(!0),()=>{};const s=window.scrollY;return l(!0),()=>{js(t)&&window.scrollTo({top:s,behavior:"instant"})}},[]),w.useEffect(()=>{if(i&&t.current&&r){const s=Eo();window.scrollTo({top:t.current.offsetTop-s,behavior:"instant"})}},[i]),!t.current||!i?null:n?V2.createPortal(a.jsxs(W9,{children:[e,a.jsx("style",{children:Ts}),a.jsx("style",{children:G9})]}),t.current,"modal-node"):V2.createPortal(a.jsxs(a.Fragment,{children:[a.jsx("style",{children:Ts}),e]}),t.current,"modal-node")},K9=u("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),Y9="sx17qu6",X9="h1692c5m",ot=({children:e,style:t,className:n,enabled:r=!0,hiding:i,onAnimationEnd:l})=>a.jsx(K9,{style:t,className:$e(n,r&&Y9,r&&i&&X9),onAnimationEnd:l,children:e}),J9=()=>ot,ec=u(J9())({name:"GrowingContainer",class:"gck55ev",propsAsIs:!0}),ko=({children:e,style:t,enabled:n,animate:r,...i})=>{const l=w.useRef(null);return a.jsx(ec,{...i,enabled:n&&r,style:{...t,...(()=>{const s=l==null?void 0:l.current,o=s&&window.getComputedStyle(s),c=o==null?void 0:o.getPropertyValue("height");return n?{height:r?c:0}:{}})()},children:a.jsx("div",{ref:l,children:e})})},As=u("div")({name:"SponsorLogoWrap",class:"s8p5v5z",propsAsIs:!1}),tc=()=>O,$s=u(tc())({name:"SponsorLogo",class:"s755yti",propsAsIs:!0}),So=({mastersApp:e})=>e?a.jsx(As,{children:a.jsx($s,{name:"mastersLogo"})}):a.jsx(As,{children:a.jsx($s,{name:"streamLayerLogo"})}),nc=u("div")({name:"Container",class:"c1gcvmcj",propsAsIs:!1}),rc=u("div")({name:"Title",class:"tnr592a",propsAsIs:!1}),ic=u("div")({name:"Description",class:"d1e8jqpv",propsAsIs:!1}),lc=()=>O,sc=u(lc())({name:"Icon",class:"i1vs651k",propsAsIs:!0}),ac=({icon:e,title:t,description:n})=>a.jsxs(nc,{children:[a.jsx(sc,{name:e}),a.jsx(rc,{children:t}),a.jsx(ic,{children:n})]}),oc=()=>ko,cc=u(oc())({name:"ShowInContainer",class:"s16sbdnm",propsAsIs:!0}),U1=u("div")({name:"FeedbackContainer",class:"fbhorgl",propsAsIs:!1}),uc=u("div")({name:"Container",class:"c1g20ja7",propsAsIs:!1}),dc=()=>O,Rs=u(dc())({name:"IconPrediction",class:"i455ozj",propsAsIs:!0}),Yt=u("div")({name:"FeedbackIconWrap",class:"f1913njx",propsAsIs:!1}),sn=u("div")({name:"FeedbackHeader",class:"fzfk69z",propsAsIs:!1}),pc=u("span")({name:"FeedbackTitle",class:"fx87qaj",propsAsIs:!1}),W1=u("span")({name:"FeedbackDescription",class:"fvek9ew",propsAsIs:!1}),fc=u("div")({name:"FeedbackTitleWrap",class:"f1kbtp09",propsAsIs:!1}),hc=u("div")({name:"FeedbackResultDescriptionWrap",class:"f4i8rro",propsAsIs:!1}),mc=()=>W1,Cc=u(mc())({name:"FeedbackDynamicDescription",class:"fqyssr",propsAsIs:!0}),vc=()=>W1,gc=u(vc())({name:"FeedbackResultDescription",class:"fyv794i",propsAsIs:!0}),Qr=u("div")({name:"FeedbackText",class:"f1jkj9vx",propsAsIs:!1}),yc=u("span")({name:"DynamicWrap",class:"d1pxh3a6",propsAsIs:!1}),wc=u("div")({name:"EarlyFeedbackDescription",class:"e1afvufn",propsAsIs:!1}),Vs=({feedbackMessages:e,questionVotedCorrectly:t,questionVoted:n,questionType:r,hasCorrectAnswer:i,showExpiredNotification:l,showClosedNotificationTrivia:s,votedInCurrentRender:o,votedAfterQuestionClosed:c,voteErrorMessage:d,enteredAnActiveQuestion:v,marketClosed:C,percentsAnimated:f,votedAnswer:y,isEarlyPrediction:b,correctAnswer:x})=>{const E=n&&(r===k.QuestionType.TRIVIA||r===k.QuestionType.PREDICTION),h=r===k.QuestionType.PREDICTION&&!i,p=C&&r===k.QuestionType.PREDICTION&&!n||r===k.QuestionType.PREDICTION&&c&&o&&v,g=E&&h,L=E&&i,S=r===k.QuestionType.PREDICTION&&n&&o&&i,I=n&&r===k.QuestionType.POLL&&o,j=t?"correct":"incorrect",A=t?e==null?void 0:e.correctFeedback:e==null?void 0:e.incorrectFeedback;return l||s||g||L||p||I||S||d?a.jsx(cc,{enabled:o,animate:f,children:a.jsxs(uc,{"data-prediction":h,children:[d&&!p&&a.jsxs(U1,{children:[!b&&a.jsx(Rs,{name:"questionExpired"}),a.jsx(W1,{children:d})]}),!d&&l&&a.jsxs(U1,{children:[!b&&a.jsx(Yt,{children:a.jsx(O,{name:"questionExpired"})}),a.jsxs("div",{children:[a.jsx(sn,{children:a.jsx(W1,{children:"Question Expired"})}),a.jsx(Qr,{children:"You can still answer to see if you're correct, but no points are awarded for expired questions."})]})]}),!d&&s&&a.jsxs(U1,{children:[a.jsx(Yt,{children:a.jsx(O,{name:"questionExpired"})}),a.jsxs("div",{children:[a.jsx(sn,{children:a.jsx(W1,{children:"Question Closed"})}),a.jsx(Qr,{children:"This question was answered after the moderator closed the question. So the points for this answer won’t tally."})]})]}),p&&a.jsxs(U1,{children:[!b&&a.jsx(Yt,{children:a.jsx(O,{name:"questionExpired"})}),a.jsxs("div",{children:[a.jsx(sn,{children:a.jsx(W1,{children:b?i?"The results are already in!":"Question is Closed":"Question Closed"})}),a.jsx(Qr,{children:b?a.jsx(wc,{children:i?`Correct: ${x==null?void 0:x.text}`:"Event affecting the outcome has occurred."}):"This event has already taken place, so the ability to make a prediction on its outcome is no longer available."})]})]}),!d&&g&&a.jsxs(U1,{children:[!b&&a.jsx(Rs,{name:"icon-prediction"}),a.jsxs(Cc,{children:["Your pick has been recorded. ",a.jsx(yc,{children:"We’ll notify you of the result."})]})]}),!d&&I&&a.jsxs(U1,{children:[!b&&a.jsx(Yt,{"data-feedback-type":"correct",children:a.jsx(O,{name:"correct"})}),a.jsx(W1,{children:"Thanks for answering. Please stay tuned for the next question."})]}),!d&&(L||S)&&a.jsxs(U1,{children:[!b&&a.jsx(Yt,{"data-feedback-type":j,children:a.jsx(O,{name:j})}),a.jsx("div",{children:a.jsxs(sn,{children:[b?a.jsx(fc,{children:j==="incorrect"?a.jsxs(a.Fragment,{children:[a.jsx("div",{children:"So close!"}),a.jsx("div",{children:"Better luck next time"})]}):a.jsxs(a.Fragment,{children:[a.jsx("div",{children:"That’s correct!"}),a.jsx("div",{children:"You chose wisely."})]})}):a.jsx(pc,{"data-feedback-type":j,children:A==null?void 0:A.title}),b?a.jsxs(hc,{children:[a.jsxs("div",{children:["Your pick: ",y==null?void 0:y.text]}),a.jsx("div",{children:j==="incorrect"?`Correct: ${x==null?void 0:x.text}`:""})]}):a.jsx(gc,{children:A==null?void 0:A.description})]})})]})]})}):null},Io=u("div")({name:"Container",class:"c14ielyq",propsAsIs:!1}),bc=()=>aa,xc=u(bc())({name:"QuestionScrollContainer",class:"q1tlqx57",propsAsIs:!0}),Lc=u("div")({name:"TopShadow",class:"t1hq58md",propsAsIs:!1}),Ec=u("div")({name:"BottomShadow",class:"b1c8nxcx",propsAsIs:!1}),kc=u("div")({name:"SponsorLogo",class:"siozuc3",propsAsIs:!1}),To=u("div")({name:"Content",class:"cpnc44r",propsAsIs:!1}),Sc=u("div")({name:"Title",class:"tq7p3w0",propsAsIs:!1}),Ic=u("div")({name:"OptionsWrap",class:"o1jlfj9g",propsAsIs:!1}),jo=u("div")({name:"Options",class:"o84pmnd",propsAsIs:!1}),Tc=()=>ot,jc=u(Tc())({name:"AlertContainer",class:"a1dybjw9",propsAsIs:!0}),Ac=u("div")({name:"EarlyPrediction",class:"e1l05ict",propsAsIs:!1}),$c=()=>O,Rc=u($c())({name:"EarlyPredictionIcon",class:"ez9juex",propsAsIs:!0}),Vc=()=>O,_c=u(Vc())({name:"SponsorIcon",class:"s8p4aob",propsAsIs:!0});var Yi={},Wn=function(){return Wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Wn.apply(this,arguments)},Nc=function(){function e(t,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(l){i.startTime||(i.startTime=l);var s=l-i.startTime;i.remaining=i.duration-s,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(s,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(s,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(s/i.duration);var o=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=o?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),s<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(l){var s,o,c,d,v=l<0?"-":"";s=Math.abs(l).toFixed(i.options.decimalPlaces);var C=(s+="").split(".");if(o=C[0],c=C.length>1?i.options.decimal+C[1]:"",i.options.useGrouping){d="";for(var f=3,y=0,b=0,x=o.length;b<x;++b)i.options.useIndianSeparators&&b===4&&(f=2,y=1),b!==0&&y%f==0&&(d=i.options.separator+d),y++,d=o[x-b-1]+d;o=d}return i.options.numerals&&i.options.numerals.length&&(o=o.replace(/[0-9]/g,function(E){return i.options.numerals[+E]}),c=c.replace(/[0-9]/g,function(E){return i.options.numerals[+E]})),v+i.options.prefix+o+c+i.options.suffix},this.easeOutExpo=function(l,s,o,c){return o*(1-Math.pow(2,-10*l/c))*1024/1023+s},this.options=Wn(Wn({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof t=="string"?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(l){return l()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,r=t.el.getBoundingClientRect(),i=r.top+window.pageYOffset,l=r.top+r.height+window.pageYOffset;l<n&&l>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>l||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const Mc=Object.freeze(Object.defineProperty({__proto__:null,CountUp:Nc},Symbol.toStringTag,{value:"Module"})),Oc=la(Mc);Object.defineProperty(Yi,"__esModule",{value:!0});var ae=w,Pc=Oc;function Hc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,o=[],c=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(c=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(v){d=!0,i=v}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return o}}function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_s(Object(n),!0).forEach(function(r){zc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fc(e){var t=Dc(e,"string");return typeof t=="symbol"?t:String(t)}function zc(e,t,n){return t=Fc(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U0(){return U0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U0.apply(this,arguments)}function Bc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ao(e,t){if(e==null)return{};var n=Bc(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uc(e,t){return Zc(e)||Hc(e,t)||qc(e,t)||Qc()}function Zc(e){if(Array.isArray(e))return e}function qc(e,t){if(e){if(typeof e=="string")return Ns(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ns(e,t)}}function Ns(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Wc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ae.useLayoutEffect:ae.useEffect;function We(e){var t=ae.useRef(e);return Wc(function(){t.current=e}),ae.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var Gc=function(t,n){var r=n.decimal,i=n.decimals,l=n.duration,s=n.easingFn,o=n.end,c=n.formattingFn,d=n.numerals,v=n.prefix,C=n.separator,f=n.start,y=n.suffix,b=n.useEasing,x=n.useGrouping,E=n.useIndianSeparators,h=n.enableScrollSpy,p=n.scrollSpyDelay,g=n.scrollSpyOnce,L=n.plugin;return new Pc.CountUp(t,o,{startVal:f,duration:l,decimal:r,decimalPlaces:i,easingFn:s,formattingFn:c,numerals:d,separator:C,prefix:v,suffix:y,plugin:L,useEasing:b,useIndianSeparators:E,useGrouping:x,enableScrollSpy:h,scrollSpyDelay:p,scrollSpyOnce:g})},Kc=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],Yc={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},$o=function(t){var n=Object.fromEntries(Object.entries(t).filter(function(_){var V=Uc(_,2),J=V[1];return J!==void 0})),r=ae.useMemo(function(){return Gn(Gn({},Yc),n)},[t]),i=r.ref,l=r.startOnMount,s=r.enableReinitialize,o=r.delay,c=r.onEnd,d=r.onStart,v=r.onPauseResume,C=r.onReset,f=r.onUpdate,y=Ao(r,Kc),b=ae.useRef(),x=ae.useRef(),E=ae.useRef(!1),h=We(function(){return Gc(typeof i=="string"?i:i.current,y)}),p=We(function(_){var V=b.current;if(V&&!_)return V;var J=h();return b.current=J,J}),g=We(function(){var _=function(){return p(!0).start(function(){c==null||c({pauseResume:L,reset:S,start:j,update:I})})};o&&o>0?x.current=setTimeout(_,o*1e3):_(),d==null||d({pauseResume:L,reset:S,update:I})}),L=We(function(){p().pauseResume(),v==null||v({reset:S,start:j,update:I})}),S=We(function(){p().el&&(x.current&&clearTimeout(x.current),p().reset(),C==null||C({pauseResume:L,start:j,update:I}))}),I=We(function(_){p().update(_),f==null||f({pauseResume:L,reset:S,start:j})}),j=We(function(){S(),g()}),A=We(function(_){l&&(_&&S(),g())});return ae.useEffect(function(){E.current?s&&A(!0):(E.current=!0,A())},[s,E,A,o,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),ae.useEffect(function(){return function(){S()}},[S]),{start:j,pauseResume:L,reset:S,update:I,getCountUp:p}},Xc=["className","redraw","containerProps","children","style"],Jc=function(t){var n=t.className,r=t.redraw,i=t.containerProps,l=t.children,s=t.style,o=Ao(t,Xc),c=ae.useRef(null),d=ae.useRef(!1),v=$o(Gn(Gn({},o),{},{ref:c,startOnMount:typeof l!="function"||t.delay===0,enableReinitialize:!1})),C=v.start,f=v.reset,y=v.update,b=v.pauseResume,x=v.getCountUp,E=We(function(){C()}),h=We(function(L){t.preserveValue||f(),y(L)}),p=We(function(){if(typeof t.children=="function"&&!(c.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}x()});ae.useEffect(function(){p()},[p]),ae.useEffect(function(){d.current&&h(t.end)},[t.end,h]);var g=r&&t;return ae.useEffect(function(){r&&d.current&&E()},[E,r,g]),ae.useEffect(function(){!r&&d.current&&E()},[E,r,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.className,t.formattingFn]),ae.useEffect(function(){d.current=!0},[]),typeof l=="function"?l({countUpRef:c,start:C,reset:f,update:y,pauseResume:b,getCountUp:x}):ae.createElement("span",U0({className:n,ref:c,style:s},i),typeof t.start<"u"?x().formattingFn(t.start):"")},eu=Yi.default=Jc;Yi.useCountUp=$o;const fr=({value:e=0,decimals:t,duration:n=1,preserveValue:r=!0,...i})=>{const[,l]=e.toString().split("."),s=t??((l==null?void 0:l.length)||0);return a.jsx(eu,{end:e,...i,duration:n,decimals:s,enableScrollSpy:!1,preserveValue:r})},tu=u("button")({name:"ButtonContainer",class:"b1b6dl8t",propsAsIs:!1}),nu=u("div")({name:"ButtonPctWrap",class:"b4iik8i",propsAsIs:!1}),ru=u("div")({name:"ButtonPct",class:"b1gq1lnf",propsAsIs:!1}),iu=u("span")({name:"ButtonBody",class:"b1j65z51",propsAsIs:!1}),lu=u("div")({name:"IconContainer",class:"i19tpfua",propsAsIs:!1}),su=u("div")({name:"IconWrap",class:"i1tubmma",propsAsIs:!1}),Ro=u("img")({name:"Icon",class:"i1grrgwj",propsAsIs:!1}),au=()=>Ro,ou=u(au())({name:"IconDefault",class:"ibemyq8",propsAsIs:!0}),cu=()=>Ro,uu=u(cu())({name:"IconCircle",class:"i1dceht",propsAsIs:!0}),du=u("span")({name:"Title",class:"t116q4vq",propsAsIs:!1}),pu=u("span")({name:"Indicators",class:"i17ajcu2",propsAsIs:!1}),fu=u("div")({name:"PtsWrap",class:"pu9kmlb",propsAsIs:!1}),hu=u("span")({name:"Pts",class:"p1j2j0s0",propsAsIs:!1}),mu=u("span")({name:"Percentage",class:"p1mzj1sj",propsAsIs:!1}),Cu=()=>O,vu=u(Cu())({name:"CheckIcon",class:"cichgz8",propsAsIs:!0}),Ms={[k.QuestionImages.CENTERED]:e=>a.jsx(ou,{"data-testid":"vote-icon",alt:"option-icon",src:e}),[k.QuestionImages.TRANSPARENT]:e=>a.jsx(lu,{"data-testid":"vote-icon",children:a.jsx(su,{style:{backgroundImage:`url(${e})`}})}),[k.QuestionImages.ROUNDED]:e=>a.jsx(uu,{"data-testid":"vote-icon",alt:"option-icon",src:e}),[k.QuestionImages.NONE]:()=>null,[k.QuestionImages.UNSET]:()=>null},gu=({questionType:e,hasCorrectAnswer:t,correct:n,youVoted:r,questionVoted:i})=>{if(e===k.QuestionType.POLL&&r)return"voted";if(e===k.QuestionType.PREDICTION){if(!t&&i)return r?"voted":"unset";if(t&&i)return r?n?"correct":"incorrect":"unset";if(r)return"correct"}return e===k.QuestionType.TRIVIA&&i&&r?n?"correct":"incorrect":"unset"},yu=({questionType:e,questionVoted:t,correct:n,hasCorrectAnswer:r,questionStatus:i})=>e===k.QuestionType.TRIVIA?t&&n:e===k.QuestionType.PREDICTION?t&&n&&r||i===k.QuestionStatus.RESOLVED&&n:!1,wu=e=>{var t;const{id:n,icon:r,text:i,percentageDecimal:l,points:s,onVote:o,markThatVoted:c,onPercentsAnimated:d,youSelected:v,youVoted:C,questionVoted:f,imageMode:y,answerTimeExpired:b,questionStatus:x,isLoading:E,questionType:h,correct:p,hasCorrectAnswer:g,marketClosed:L,isEarlyPrediction:S}=e,[I,j]=w.useState(0),A=gu(e),_=yu({questionType:h,questionVoted:f,correct:p,hasCorrectAnswer:g,questionStatus:x}),V=L&&h===k.QuestionType.PREDICTION,J=f||V,Ne=h===k.QuestionType.PREDICTION&&!f&&!L,Be=f&&!v&&A!=="incorrect"&&!C;return w.useLayoutEffect(()=>{j(0),requestAnimationFrame(()=>{j(l)})},[l]),a.jsxs(tu,{value:n,"data-selected":v,"data-answer-state":A,disabled:f||E||b||V,"data-is-not-checked":Be,onClick:ct=>{c(h===k.QuestionType.PREDICTION?L:x===k.QuestionStatus.RESOLVED),o(ct)},children:[a.jsx(nu,{children:a.jsx(ru,{"data-answer-state":A,"data-is-not-checked":Be,style:{width:`${J?I:0}%`},onTransitionEnd:()=>{V||d==null||d()}})}),a.jsxs(iu,{children:[r&&y&&((t=Ms[y])==null?void 0:t.call(Ms,r)),a.jsx(du,{children:i}),Ne&&a.jsxs(fu,{children:[s,a.jsx(hu,{children:"pts"})]}),J&&a.jsxs(pu,{children:[_&&a.jsx(vu,{name:S?"selectedBetPack":"selected"}),a.jsx(mu,{children:a.jsx(fr,{value:l,suffix:"%"})})]})]})]})},bu=()=>ko,xu=u(bu())({name:"ShowInContainer",class:"sie6cqo",propsAsIs:!0}),Lu=u("div")({name:"WinBarContainer",class:"wgizw4u",propsAsIs:!1}),Eu=u("div")({name:"Content",class:"c1l3ucjp",propsAsIs:!1}),ku=u("div")({name:"Title",class:"tx7j799",propsAsIs:!1}),Su=()=>O,Iu=u(Su())({name:"WinIcon",class:"w4lwuj0",propsAsIs:!0}),Tu=u("div")({name:"Points",class:"po9i64o",propsAsIs:!1}),ju=u("span")({name:"PointsCount",class:"pe5g05h",propsAsIs:!1}),Au=u("span")({name:"PointsUnits",class:"p1hdtpmb",propsAsIs:!1}),$u=({title:e,points:t,isPlayingTimer:n,isTimer:r,animatePoints:i,questionType:l,timerDuration:s,votedInCurrentRender:o,percentsAnimated:c,onTimerExpired:d})=>a.jsx(xu,{enabled:l===k.QuestionType.PREDICTION&&o,animate:c,children:a.jsxs(Lu,{style:{justifyContent:l===k.QuestionType.PREDICTION?"center":"space-between"},children:[a.jsxs(Eu,{children:[e&&a.jsx(ku,{children:e}),t!==void 0&&l!==k.QuestionType.POLL&&a.jsxs(a.Fragment,{children:[a.jsx(Iu,{name:"icon-trophy"}),a.jsxs(Tu,{children:[a.jsx(ju,{children:i?a.jsx(fr,{value:t,delay:.3}):t}),a.jsx(Au,{children:"PTS"})]})]})]}),r&&l!==k.QuestionType.PREDICTION&&a.jsx(l7,{isPlaying:n,onTimerExpired:d,duration:s})]})}),Ru=(e,t)=>{switch(e){case"already_voted":return t===k.QuestionType.POLL?"You’ve already answered this question on another device.":"You’ve already answered this question on another device. So the points for this answer won't tally.";default:return"Something went wrong, please try again"}},Vo=()=>a.jsx(Io,{children:a.jsxs(To,{children:[a.jsx(Te,{loading:!0,style:{height:"40px",borderRadius:"100px"}}),a.jsx(Te,{loading:!0,style:{height:"24px",margin:"16px 0"}}),a.jsx(jo,{children:Array.from({length:5}).map((e,t)=>a.jsx(Te,{loading:!0,style:{height:"44px"}},t))})]})}),_o=({openedQuestion:e,isLoading:t,vote:n,close:r,isEarlyPrediction:i})=>{var l,s;const o=e.subject,c=e.type,d=e.status,v=(l=e.options)==null?void 0:l.options,C=e.marketClosed,f=e.id,y=w.useRef(),[b,x]=w.useState(!1),[E,h]=w.useState(!1),[p,g]=w.useState(!0),[L,S]=w.useState(!1),[I,j]=w.useState(!1),[A,_]=w.useState(""),[V,J]=w.useState(""),[Ne,Be]=w.useState(!1),[ct,mr]=w.useState(!1),{runAnimation:v1,finished:ut}=ti();w.useEffect(()=>{ut&&r()},[r,ut]),w.useEffect(()=>{c===k.QuestionType.PREDICTION?C&&g(!1):d===k.QuestionStatus.RESOLVED&&g(!1)},[]);const $=w.useCallback(ce=>{h(ce),x(!0)},[]),N=w.useRef(!1),M=w.useCallback(async ce=>{if(!N.current&&(N.current=!0,f)){const B1=ce.currentTarget.value;_(B1);try{await n(f,B1)}catch(D2){J(Ru(D2.message,c)),_(""),console.error("Error while voting",D2),N.current=!1}}},[c,f,_,n]),q=w.useCallback(()=>{S(!0),v1({delay:3500})},[v1]),te=w.useCallback(()=>{j(!0),v1({delay:3500})},[v1]),P=e==null?void 0:e.answers.find(ce=>ce.youVoted===!0),Y=w.useMemo(()=>!!(e!=null&&e.answers.find(ce=>ce.correct===!0)),[e]),le=w.useMemo(()=>e==null?void 0:e.answers.find(ce=>ce.correct===!0),[e]);w.useEffect(()=>{P&&b&&!ct&&(y.current=setTimeout(te,1e4),mr(!0))},[P]),w.useEffect(()=>()=>{clearTimeout(y.current)},[]);const Ue=w.useMemo(()=>e?e.answers.map(ce=>{var B1;return{...ce,questionVoted:!!P,youSelected:A===ce.id,isLoading:t,hasCorrectAnswer:Y,questionType:e.type,answerTimeExpired:L,questionStatus:d,imageMode:(B1=e.appearance)==null?void 0:B1.images,onVote:M}}):[],[Y,L,t,e,P,d,M,A]);w.useEffect(()=>{const ce=Ue.some(({percentageDecimal:D2})=>D2!==0),B1=P&&c===k.QuestionType.PREDICTION;V&&(!ce||C&&B1)&&Be(!0)},[Ue,V,C,c,P]);const F1=v&&(v.case==="trivia"||v.case==="prediction")?v.value:void 0,z1=d===k.QuestionStatus.RESOLVED&&c===k.QuestionType.TRIVIA&&!P&&!p,Cr=c===k.QuestionType.TRIVIA&&E,vr=w.useMemo(()=>c===k.QuestionType.PREDICTION?i?!1:!!(P&&!Y||P&&Y&&le!=null&&le.youVoted):!0,[c,P,Y,le,i]),u4=w.useMemo(()=>{if(c===k.QuestionType.PREDICTION&&P&&(!Y||Y&&le!=null&&le.youVoted))return P.points;if(!(z1||L))return P?P.correct?P.pointsEarned:0:le==null?void 0:le.points},[L,P,le,z1,c,Y]),d4=w.useMemo(()=>c===k.QuestionType.PREDICTION&&P?Y?Y&&le!=null&&le.youVoted?"You won":"":"To win":z1||L?"Time expired":c===k.QuestionType.POLL?"Time remaining":P?"You won":"To win",[L,c,P,z1,Y,le]),p4=!vr||vr&&c===k.QuestionType.PREDICTION&&b&&!Ne,f4=(c===k.QuestionType.TRIVIA||c===k.QuestionType.PREDICTION)&&P&&Y&&(le==null?void 0:le.youVoted),h4=P||z1||Cr||c===k.QuestionType.TRIVIA&&d===k.QuestionStatus.RESOLVED&&p;return a.jsxs(xc,{children:[i&&a.jsx(Lc,{}),a.jsx(Io,{style:i?{marginTop:"-40px"}:{},children:a.jsxs(To,{id:"questionContent",children:[!i&&a.jsx(Vs,{feedbackMessages:F1,questionVoted:!!P,questionVotedCorrectly:P==null?void 0:P.correct,questionType:c,hasCorrectAnswer:Y,showExpiredNotification:z1,showClosedNotificationTrivia:Cr,votedInCurrentRender:b,votedAfterQuestionClosed:E,enteredAnActiveQuestion:p,marketClosed:C,percentsAnimated:Ne,voteErrorMessage:V,votedAnswer:P}),vr&&a.jsx($u,{title:d4,points:u4,onTimerExpired:q,questionType:e.type,isTimer:!t,isPlayingTimer:!P,animatePoints:f4,timerDuration:h4?0:Number(((s=e==null?void 0:e.appearance)==null?void 0:s.autoHideInterval)||"30"),votedInCurrentRender:b,percentsAnimated:Ne}),!i&&(L||I)?a.jsx(jc,{children:a.jsx(ac,{icon:"icon-check-circle",title:"More to come...",description:I?a.jsxs(a.Fragment,{children:["Stay tuned for more questions ",a.jsx("br",{})," and insights."]}):a.jsxs(a.Fragment,{children:["Watch for additional enhanced stream ",a.jsx("br",{})," interactive experience."]})})}):a.jsxs(a.Fragment,{children:[i&&a.jsxs(Ac,{children:[a.jsx(Rc,{name:"iconEarlyPrediction"}),"EARLY PREDICTION"]}),a.jsx(Sc,{style:p4?{marginTop:0}:{},children:o}),i&&a.jsx(Vs,{feedbackMessages:F1,questionVoted:!!P,questionVotedCorrectly:P==null?void 0:P.correct,questionType:c,hasCorrectAnswer:Y,showExpiredNotification:z1,showClosedNotificationTrivia:Cr,votedInCurrentRender:b,votedAfterQuestionClosed:E,enteredAnActiveQuestion:p,marketClosed:C,percentsAnimated:Ne,voteErrorMessage:V,isEarlyPrediction:i,correctAnswer:le,votedAnswer:P}),a.jsxs(Ic,{children:[a.jsx(jo,{children:Ue.map(ce=>a.jsx(wu,{...ce,markThatVoted:$,onPercentsAnimated:()=>Be(!0),votedAfterQuestionClosed:E,enteredAnActiveQuestion:p,marketClosed:C,isEarlyPrediction:i},ce.id))}),i&&a.jsxs(a.Fragment,{children:[a.jsx(Ec,{}),a.jsx(kc,{children:a.jsx(_c,{name:"mastersLogoWhite"})})]})]})]})]})})]})},Vu=u("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),_u=u("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),Nu=u("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),Mu=u("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),Ou="t1xke4ml",Pu="h1yzxv57",Hu=e=>{for(const t of e)t.isIntersecting?t.target instanceof HTMLVideoElement&&t.target.autoplay&&t.target.play():t.target instanceof HTMLVideoElement&&!t.target.paused&&t.target.pause()},No=new IntersectionObserver(Hu,{threshold:.5}),Xi=new Set,Du=e=>{No.observe(e),Xi.add(e)},Fu=e=>{No.unobserve(e),Xi.delete(e)},Mo=()=>{for(const e of Xi)e instanceof HTMLVideoElement&&!e.paused&&e.pause()},hr=({poster:e,source:t,aspectRatio:n,controlVideo:r,onPlay:i,onPause:l,autoPlay:s,hideControls:o})=>{const c=w.useRef(null),[d,v]=w.useState(!1),[C,f]=w.useState(!0),y=w.useCallback(()=>{r==null||r({muted:!0})},[r]),b=w.useCallback(()=>{r==null||r({muted:!1})},[r]),x=h=>{h.stopPropagation();const p=c==null?void 0:c.current;if(p){if(d)p.pause();else{const g=c==null?void 0:c.current;if(!g)return;Mo(),g.play().catch(L=>console.log(L)),f(!1)}_2.emit("interactions",{action:"tap",payload:{}})}},E=()=>{var h;(h=c==null?void 0:c.current)==null||h.load(),f(!0)};return w.useEffect(()=>{const h=c==null?void 0:c.current;return()=>{h&&(h.paused||b())}},[b]),w.useEffect(()=>{const h=c.current;return h?(Du(h),()=>Fu(h)):()=>{}},[]),a.jsxs(Vu,{onClick:o?void 0:x,className:$e(d&&Ou,o&&Pu),style:n?{aspectRatio:n}:{},children:[a.jsx(_u,{ref:c,src:t,autoPlay:s,onPlay:()=>{y(),v(!0),f(!1),i==null||i()},onPause:()=>{b(),v(!1),l==null||l()},onEnded:()=>{b(),v(!1),E()},style:{visibility:C?"hidden":"visible"},controls:!1,playsInline:!0}),a.jsx(Nu,{src:e,style:{visibility:C?"visible":"hidden"}}),!o&&a.jsx(Mu,{children:d?a.jsx(O,{name:"icon-pause"}):a.jsx(O,{name:"icon-play"})})]})},zu=u("div")({name:"Container",class:"cgn5uen",propsAsIs:!1}),Bu=u("div")({name:"Content",class:"c1px8nt6",propsAsIs:!1}),Uu=u("h3")({name:"Title",class:"t5et2jt",propsAsIs:!1}),Zu=u("div")({name:"Description",class:"d1i2kpk2",propsAsIs:!1}),qu=u("img")({name:"Image",class:"id3lh3p",propsAsIs:!1}),Qu=u("div")({name:"ImageContainer",class:"i1gfjeu5",propsAsIs:!1}),Oo=({instantView:e,isDetail:t,notification:n,controlVideo:r})=>{const i=e==null?void 0:e.heading,l=e==null?void 0:e.body,s=i||l,o=n==null?void 0:n.title,c=n==null?void 0:n.body;return a.jsxs(zu,{children:[(e==null?void 0:e.video)&&a.jsx(hr,{source:e.video.url,poster:e.video.thumbnailUrl,controlVideo:r,autoPlay:e.autoPlayVideo===k.AutoPlayVideo.ENABLED}),(e==null?void 0:e.image)&&!(e!=null&&e.video)&&a.jsx(Qu,{"data-rounded":e.imageMode===k.QuestionImages.ROUNDED,children:a.jsx(qu,{src:e==null?void 0:e.image})}),a.jsxs(Bu,{children:[a.jsx(Uu,{children:t&&s?i:o}),a.jsx(Zu,{children:t&&s?l:c})]})]})},Wu=u("div")({name:"Container",class:"c1euiow",propsAsIs:!1}),Gu=u("a")({name:"WebLinkBtn",class:"w19zie3h",propsAsIs:!1}),Ku=()=>O,Yu=u(Ku())({name:"WebLinkIcon",class:"wyg5v7z",propsAsIs:!0}),Po=({instantView:e,...t})=>a.jsxs(Wu,{children:[a.jsx(Oo,{instantView:e,...t,isDetail:!0}),(e==null?void 0:e.webLink)&&a.jsxs(Gu,{href:e==null?void 0:e.webLink.url,target:"_blank","data-analytics":"web-link",children:[e==null?void 0:e.webLink.label,a.jsx(Yu,{name:"icon-external-link"})]})]}),Xu=u("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),Ju=u("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),ed=u("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),td=()=>O,nd=u(td())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),rd=u("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),id=u("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),ld=u("div")({name:"UserNameAndDate",class:"u1p051g3",propsAsIs:!1}),Ho=({image:e,name:t,userName:n,verified:r,createdTweet:i})=>{const l=i&&y7(i);return a.jsxs(Xu,{children:[e&&a.jsxs(Ju,{children:[a.jsx(ed,{className:"SL_AccountImage",src:e}),a.jsx(nd,{name:"twitter"})]}),a.jsxs(rd,{children:[t&&a.jsxs(id,{className:"SL_TweetAccountName",children:[t," ",r&&a.jsx(O,{name:"icon-twitter-verified"})]}),n&&a.jsxs(ld,{className:"SL_TweetAccountUserName",children:["@",n," ",l&&`・ ${l}`]})]})]})},sd=u("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),ad=u("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),od=u("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),Xt=u("div")({name:"ImagesContainer",class:"i1y8f7ym",propsAsIs:!1}),Wr=u("div")({name:"ImagesBlock",class:"i18gwonx",propsAsIs:!1}),Do=u("img")({name:"Image",class:"i3g0xjd",propsAsIs:!1}),cd=()=>Do,w1=u(cd())({name:"ImageFullSize",class:"io8rt7p",propsAsIs:!0}),ud=()=>Do,Gr=u(ud())({name:"ImageHalfSize",class:"i4hn3ox",propsAsIs:!0}),dd=new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"),Fo=e=>e==null?void 0:e.replace(dd,""),Ji=({image:e,body:t,account:n,accountVerified:r,tweet:i,isDetail:l,controlVideo:s})=>{var o,c,d,v,C,f,y,b,x;const E=(c=(o=i==null?void 0:i.meta)==null?void 0:o.extendedEntities)==null?void 0:c.media,h=E==null?void 0:E.find(({type:g})=>g==="photo"),p=(f=(C=(v=(d=E==null?void 0:E[0])==null?void 0:d.videoInfo)==null?void 0:v.variants)==null?void 0:C.find(({contentType:g})=>g==="video/mp4"))==null?void 0:f.url;return a.jsxs(sd,{children:[a.jsxs(ad,{children:[a.jsx(Ho,{image:e,name:(y=i==null?void 0:i.meta)==null?void 0:y.accountName,userName:n,verified:r,createdTweet:i==null?void 0:i.date}),a.jsx(od,{children:Fo(t)}),!l&&h&&a.jsx(Xt,{children:a.jsx(w1,{src:E==null?void 0:E[0].mediaUrlHttps})}),l&&h&&a.jsxs(a.Fragment,{children:[(E==null?void 0:E.length)===1&&a.jsx(Xt,{children:a.jsx(w1,{src:E[0].mediaUrlHttps})}),(E==null?void 0:E.length)===2&&a.jsxs(Xt,{children:[a.jsx(Gr,{src:E[0].mediaUrlHttps}),a.jsx(Gr,{src:E[1].mediaUrlHttps})]}),(E==null?void 0:E.length)===3&&a.jsxs(Xt,{children:[a.jsx(Gr,{src:E[0].mediaUrlHttps}),a.jsxs(Wr,{children:[a.jsx(w1,{src:E[1].mediaUrlHttps}),a.jsx(w1,{src:E[2].mediaUrlHttps})]})]}),(E==null?void 0:E.length)===4&&a.jsxs(Xt,{children:[a.jsxs(Wr,{children:[a.jsx(w1,{src:E[0].mediaUrlHttps}),a.jsx(w1,{src:E[1].mediaUrlHttps})]}),a.jsxs(Wr,{children:[a.jsx(w1,{src:E[2].mediaUrlHttps}),a.jsx(w1,{src:E[3].mediaUrlHttps})]})]})]})]}),!h&&(((b=E==null?void 0:E[0])==null?void 0:b.type)==="video"||((x=E==null?void 0:E[0])==null?void 0:x.type)==="animated_gif")&&p&&a.jsx(hr,{source:p,poster:E[0].mediaUrlHttps,controlVideo:s})]})},pd=u("div")({name:"Container",class:"c1dcxmvf",propsAsIs:!1}),fd=u("blockquote")({name:"Quote",class:"qb4q22c",propsAsIs:!1}),zo=e=>a.jsxs(pd,{children:[e.title&&a.jsx(fd,{children:e.title}),a.jsx(Ji,{...e,isDetail:!0})]}),hd=u("div")({name:"QuestionContainer",class:"q14ckf9e",propsAsIs:!1}),md=({openedQuestion:e})=>{var t,n;const{sdk:r}=Yn();return((t=e==null?void 0:e.attributes)==null?void 0:t.attributes.case)==="insight"?a.jsx(Po,{...e.attributes.attributes.value,controlVideo:r==null?void 0:r.controlVideoPlayer}):((n=e==null?void 0:e.attributes)==null?void 0:n.attributes.case)==="tweet"?a.jsx(zo,{...e.attributes.attributes.value,controlVideo:r==null?void 0:r.controlVideoPlayer}):null},Cd=({extendedQuestion:e,vote:t,close:n})=>{const{loading:r,data:i}=e;return i?a.jsx(_o,{vote:t,close:n,openedQuestion:i,isLoading:!!r}):a.jsx(Vo,{})},Bo=({gamification:e,skipAutoClose:t,hideSponsor:n,className:r,hideHeader:i})=>{var l,s,o,c,d;const v=D(e.openedQuestion.$store),C=D(e.openedQuestion.$extendedStore);if(!v)return null;const f=v.type,y=((s=(l=C.data)==null?void 0:l.options)==null?void 0:s.options.case)==="factoid"?C.data.options.options.value.closeTimer:void 0;return a.jsxs(hd,{className:r,children:[!i&&a.jsx(ri,{closeTimer:t?void 0:y,close:e.closeQuestion,type:((o=v.attributes)==null?void 0:o.type)||k.QuestionType.UNSET}),f==="question"&&a.jsx(Cd,{vote:e.submitAnswer,close:e.closeQuestion,extendedQuestion:C}),f!=="question"&&a.jsx(md,{openedQuestion:v}),!n&&a.jsx(So,{sponsorLogo:(d=(c=C.data)==null?void 0:c.sponsorship)==null?void 0:d.logo})]})},vd=u("div")({name:"Container",class:"c115qtkr",propsAsIs:!1}),gd=u("div")({name:"STabs",class:"sxnslc8",propsAsIs:!1}),yd=u("button")({name:"Button",class:"b1umzux0",propsAsIs:!1}),wd=u("span")({name:"Title",class:"tspsaas",propsAsIs:!1});var l2=(e=>(e.HOME="home",e.LEADERBOARD="leaderboard",e))(l2||{});const Os=({title:e,active:t,onClick:n})=>a.jsx(yd,{onClick:n,"data-selected":t,children:a.jsx(wd,{children:e})}),bd=({activePage:e="home",toggleActivePage:t})=>a.jsx(vd,{children:a.jsxs(gd,{"data-position":e==="home"?"left":"right",children:[a.jsx(Os,{title:"Home",active:e==="home",onClick:()=>t("home")}),a.jsx(Os,{title:"Friends",active:e==="leaderboard",onClick:()=>t("leaderboard")})]})}),xd=u("button")({name:"Container",class:"cpjnajb",propsAsIs:!1}),Ld=u("div")({name:"Content",class:"c4m6kaz",propsAsIs:!1}),Ed=u("span")({name:"Title",class:"t1h8t9cc",propsAsIs:!1}),kd=()=>a.jsx(xd,{children:a.jsxs(Ld,{children:[a.jsx(O,{name:"iconCopySuccess"}),a.jsx(Ed,{children:"Link Copied to Clipboard"})]})}),Uo=e=>{const t=w.useRef(),[n,r]=w.useState(null),i=w.useCallback(async l=>{var s;if(l&&(s=navigator==null?void 0:navigator.clipboard)!=null&&s.writeText){t.current&&(clearTimeout(t.current),r(null));try{await navigator.clipboard.writeText(l),e.current&&(r(V2.createPortal(a.jsx(kd,{}),e.current)),t.current=setTimeout(()=>{r(null)},1e3))}catch(o){console.error("Unable to copy to clipboard",o)}}},[e]);return w.useEffect(()=>()=>{clearTimeout(t.current)},[]),[i,n]},Sd=u("div")({name:"Container",class:"c1ux29ft",propsAsIs:!1}),Id=()=>O,Td=u(Id())({name:"FriendsIcon",class:"f10ncfg2",propsAsIs:!0}),jd=u("div")({name:"Content",class:"c1yc07bd",propsAsIs:!1}),Ad=u("div")({name:"Title",class:"tj6cq7w",propsAsIs:!1}),$d=u("div")({name:"Description",class:"d1ag78xo",propsAsIs:!1}),Rd=()=>O,Vd=u(Rd())({name:"ArrowInviteIcon",class:"awohrz6",propsAsIs:!0}),_d=({title:e,description:t,onClick:n,className:r})=>{const[i]=fa({type:"invitation",action:"sent",payload:{from:k.InvitationFrom.TITLE_CARD}});return a.jsxs(Sd,{onClick:i(n),className:r,children:[a.jsx(Td,{name:"icon-friends"}),a.jsxs(jd,{children:[a.jsx(Ad,{children:e}),a.jsx($d,{children:t})]}),a.jsx(Vd,{name:"icon-copy"})]})};let De;typeof window<"u"?De=window:typeof self<"u"?De=self:De=k.global;let Z0=null,q0=null;const Ps=20,Kr=De.clearTimeout,Hs=De.setTimeout,Yr=De.cancelAnimationFrame||De.mozCancelAnimationFrame||De.webkitCancelAnimationFrame,Ds=De.requestAnimationFrame||De.mozRequestAnimationFrame||De.webkitRequestAnimationFrame;Yr==null||Ds==null?(Z0=Kr,q0=function(t){return Hs(t,Ps)}):(Z0=function([t,n]){Yr(t),Kr(n)},q0=function(t){const n=Ds(function(){Kr(r),t()}),r=Hs(function(){Yr(n),t()},Ps);return[n,r]});function Nd(e){let t,n,r,i,l,s,o;const c=typeof document<"u"&&document.attachEvent;if(!c){s=function(h){const p=h.__resizeTriggers__,g=p.firstElementChild,L=p.lastElementChild,S=g.firstElementChild;L.scrollLeft=L.scrollWidth,L.scrollTop=L.scrollHeight,S.style.width=g.offsetWidth+1+"px",S.style.height=g.offsetHeight+1+"px",g.scrollLeft=g.scrollWidth,g.scrollTop=g.scrollHeight},l=function(h){return h.offsetWidth!==h.__resizeLast__.width||h.offsetHeight!==h.__resizeLast__.height},o=function(h){if(h.target.className&&typeof h.target.className.indexOf=="function"&&h.target.className.indexOf("contract-trigger")<0&&h.target.className.indexOf("expand-trigger")<0)return;const p=this;s(this),this.__resizeRAF__&&Z0(this.__resizeRAF__),this.__resizeRAF__=q0(function(){l(p)&&(p.__resizeLast__.width=p.offsetWidth,p.__resizeLast__.height=p.offsetHeight,p.__resizeListeners__.forEach(function(S){S.call(p,h)}))})};let f=!1,y="";r="animationstart";const b="Webkit Moz O ms".split(" ");let x="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),E="";{const h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(f=!0),f===!1){for(let p=0;p<b.length;p++)if(h.style[b[p]+"AnimationName"]!==void 0){E=b[p],y="-"+E.toLowerCase()+"-",r=x[p],f=!0;break}}}n="resizeanim",t="@"+y+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=y+"animation: 1ms "+n+"; "}const d=function(f){if(!f.getElementById("detectElementResize")){const y=(t||"")+".resize-triggers { "+(i||"")+'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%; }',b=f.head||f.getElementsByTagName("head")[0],x=f.createElement("style");x.id="detectElementResize",x.type="text/css",e!=null&&x.setAttribute("nonce",e),x.styleSheet?x.styleSheet.cssText=y:x.appendChild(f.createTextNode(y)),b.appendChild(x)}};return{addResizeListener:function(f,y){if(c)f.attachEvent("onresize",y);else{if(!f.__resizeTriggers__){const b=f.ownerDocument,x=De.getComputedStyle(f);x&&x.position==="static"&&(f.style.position="relative"),d(b),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=b.createElement("div")).className="resize-triggers";const E=b.createElement("div");E.className="expand-trigger",E.appendChild(b.createElement("div"));const h=b.createElement("div");h.className="contract-trigger",f.__resizeTriggers__.appendChild(E),f.__resizeTriggers__.appendChild(h),f.appendChild(f.__resizeTriggers__),s(f),f.addEventListener("scroll",o,!0),r&&(f.__resizeTriggers__.__animationListener__=function(g){g.animationName===n&&s(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(y)}},removeResizeListener:function(f,y){if(c)f.detachEvent("onresize",y);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(y),1),!f.__resizeListeners__.length){f.removeEventListener("scroll",o,!0),f.__resizeTriggers__.__animationListener__&&(f.__resizeTriggers__.removeEventListener(r,f.__resizeTriggers__.__animationListener__),f.__resizeTriggers__.__animationListener__=null);try{f.__resizeTriggers__=!f.removeChild(f.__resizeTriggers__)}catch{}}}}}class Md extends w.Component{constructor(...t){super(...t),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:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const l=window.getComputedStyle(this._parentNode)||{},s=parseFloat(l.paddingLeft||"0"),o=parseFloat(l.paddingRight||"0"),c=parseFloat(l.paddingTop||"0"),d=parseFloat(l.paddingBottom||"0"),v=this._parentNode.getBoundingClientRect(),C=v.height-c-d,f=v.width-s-o,y=this._parentNode.offsetHeight-c-d,b=this._parentNode.offsetWidth-s-o;(!n&&(this.state.height!==y||this.state.scaledHeight!==C)||!r&&(this.state.width!==b||this.state.scaledWidth!==f))&&(this.setState({height:y,width:b,scaledHeight:C,scaledWidth:f}),typeof i=="function"&&i({height:y,scaledHeight:C,scaledWidth:f,width:b}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=Nd(t),this._detectElementResize.addResizeListener(n,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.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:l=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:o,onResize:c,style:d={},tagName:v="div",...C}=this.props,{height:f,scaledHeight:y,scaledWidth:b,width:x}=this.state,E={overflow:"visible"},h={};let p=!1;return i||(f===0&&(p=!0),E.height=0,h.height=f,h.scaledHeight=y),l||(x===0&&(p=!0),E.width=0,h.width=x,h.scaledWidth=b),s&&(p=!1),w.createElement(v,{ref:this._setRef,style:{...E,...d},...C},!p&&t(h))}}function Od(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function Pd(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,l=e.stopIndex,s=[],o=null,c=null,d=i;d<=l;d++){var v=t(d);v?c!==null&&(s.push(o,c),o=c=null):(c=d,o===null&&(o=d))}if(c!==null){for(var C=Math.min(Math.max(c,o+r-1),n-1),f=c+1;f<=C&&!t(f);f++)c=f;s.push(o,c)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var y=s[0]-1;if(!t(y))s[0]=y;else break}return s}var Hd=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Dd=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Fd=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Fs=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e};(function(e){Fd(t,e);function t(){var n,r,i,l;Hd(this,t);for(var s=arguments.length,o=Array(s),c=0;c<s;c++)o[c]=arguments[c];return l=(r=(i=Fs(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(o))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var v=d.visibleStartIndex,C=d.visibleStopIndex;i._lastRenderedStartIndex=v,i._lastRenderedStopIndex=C,i._ensureRowsLoaded(v,C)},i._setRef=function(d){i._listRef=d},r),Fs(i,l)}return Dd(t,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var l=this.props,s=l.isItemLoaded,o=l.itemCount,c=l.minimumBatchSize,d=c===void 0?10:c,v=l.threshold,C=v===void 0?15:v,f=Pd({isItemLoaded:s,itemCount:o,minimumBatchSize:d,startIndex:Math.max(0,r-C),stopIndex:Math.min(o-1,i+C)});(this._memoizedUnloadedRanges.length!==f.length||this._memoizedUnloadedRanges.some(function(y,b){return f[b]!==y}))&&(this._memoizedUnloadedRanges=f,this._loadUnloadedRanges(f))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,l=this.props.loadMoreItems||this.props.loadMoreRows,s=function(d){var v=r[d],C=r[d+1],f=l(v,C);f!=null&&f.then(function(){if(Od({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:v,stopIndex:C})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(v,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},o=0;o<r.length;o+=2)s(o)}}]),t})(w.PureComponent);const zd=u("div")({name:"Container",class:"culdu4a",propsAsIs:!1}),Bd=u("div")({name:"Position",class:"pwf8e69",propsAsIs:!1}),Ud=u("img")({name:"Avatar",class:"atf4yh4",propsAsIs:!1}),Zd=u("div")({name:"AvatarPlaceholder",class:"a1dg29ja",propsAsIs:!1}),qd=u("div")({name:"Content",class:"c10a68rc",propsAsIs:!1}),Qd=u("div")({name:"NameContainer",class:"nc4kck5",propsAsIs:!1}),Wd=u("span")({name:"Name",class:"njsrqgr",propsAsIs:!1}),Gd=()=>O,Kd=u(Gd())({name:"CurrentUserBadge",class:"c17uc4zr",propsAsIs:!0});var Zo={exports:{}},Yd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Xd=Yd,Jd=Xd;function qo(){}function Qo(){}Qo.resetWarningCache=qo;var ep=function(){function e(r,i,l,s,o,c){if(c!==Jd){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qo,resetWarningCache:qo};return n.PropTypes=n,n};Zo.exports=ep();var tp=Zo.exports;const Se=K0(tp);class Q0 extends w.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const l=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:l.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(t,n){return t?this.calculateTopPosition(t)+(t.offsetHeight-n-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:n,element:r,hasMore:i,initialLoad:l,isReverse:s,loader:o,loadMore:c,pageStart:d,ref:v,threshold:C,useCapture:f,useWindow:y,getScrollParent:b,...x}=t;x.ref=h=>{this.scrollComponent=h,v&&v(h)};const E=[n];return i&&(o?s?E.unshift(o):E.push(o):this.defaultLoader&&(s?E.unshift(this.defaultLoader):E.push(this.defaultLoader))),w.createElement(r,x,E)}}Q(Q0,"propTypes",{children:Se.node.isRequired,element:Se.node,hasMore:Se.bool,initialLoad:Se.bool,isReverse:Se.bool,loader:Se.node,loadMore:Se.func.isRequired,pageStart:Se.number,ref:Se.func,getScrollParent:Se.func,threshold:Se.number,useCapture:Se.bool,useWindow:Se.bool}),Q(Q0,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const np=({friendsRank:e,avatar:t,name:n,userId:r,points:i,isCurrentUser:l,style:s})=>a.jsxs(zd,{"data-name":r,style:s,children:[a.jsx(Bd,{children:e||0}),a.jsxs(qd,{children:[t?a.jsx(Ud,{alt:"leaderboard-item-avatar",src:t}):a.jsx(Zd,{children:ii(n||"")}),a.jsxs(Qd,{children:[a.jsx(Wd,{children:n||""}),l&&a.jsx(Kd,{name:"icon-star"})]})]}),a.jsx("div",{children:wa(i)})]}),rp=u("div")({name:"Container",class:"c16btbfp",propsAsIs:!1}),ip=({items:e,currentUserId:t,openItemDetail:n,fetchMore:r,scrollNode:i,hasMore:l})=>{const s=w.useCallback(o=>{const c=o.target.getAttribute("data-name");c&&n(c)},[n]);return a.jsx(Q0,{loadMore:r,initialLoad:!1,hasMore:l,useWindow:!1,getScrollParent:()=>i.current,children:a.jsx(rp,{onClick:s,children:e.map(o=>a.jsx(np,{...o,isCurrentUser:!!t&&t===o.userId},o.userId))})})},lp=u("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),sp=u("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),ap=()=>O,op=u(ap())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),cp=u("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),up=u("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),dp=u("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),pp=u("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),fp=u("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),hp=u("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),mp=u("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),Cp=()=>O,vp=u(Cp())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),Wo=({inviteLink:e,inviteCardTitle:t,inviteCardSubtext:n,primaryColor:r,className:i})=>{const l=w.useRef(null),[s,o]=Uo(l),[c]=fa({type:"invitation",action:"sent",payload:{from:k.InvitationFrom.MENU}});return a.jsxs(lp,{className:i,children:[a.jsx(sp,{style:{backgroundColor:r},children:a.jsx(op,{name:"invite-game-icon"})}),a.jsxs(cp,{children:[a.jsx(up,{children:t||""}),a.jsx(dp,{children:n||""})]}),e&&a.jsxs(pp,{ref:l,onClick:c(()=>s(e)),children:[a.jsxs(fp,{children:[a.jsx(hp,{children:"Invite link"}),a.jsx(mp,{children:e})]}),a.jsx(vp,{name:"icon-copy"})]}),o]})},gp=u("div")({name:"InviteFriendsContainer",class:"i1c9dygq",propsAsIs:!1}),yp=({deepLink:e})=>a.jsx(gp,{children:a.jsx(Wo,{inviteLink:e,inviteCardTitle:"It’s More Fun With Friends",inviteCardSubtext:"Invite and compete against your friends for the top spot on the leaderboard."})}),wp=u("div")({name:"InviteLinkContainer",class:"i1odbhm4",propsAsIs:!1}),bp=({gamification:e,scrollNode:t,scrollStore:n})=>{const r=w.useRef(null),{data:i,hasMore:l,loading:s,key:o}=D(e.leaderboardList.$store),{data:c}=D(e.deepLink.$store),[d,v]=Uo(r);return!i.length&&!s?a.jsx(yp,{deepLink:c}):a.jsxs(a.Fragment,{children:[a.jsx(ip,{items:i,scrollNode:t,scrollStore:n,fetchMore:e.leaderboardList.fetchMore,hasMore:l,openItemDetail:e.openUser,currentUserId:e.currentUserId.get()},o),c&&a.jsx(wp,{ref:r,children:a.jsx(_d,{onClick:()=>d(c),title:"Invite Friends",description:"Challenge them now!"})}),v]})},el=u("div")({name:"QuestionItem",class:"q1w97g3p",propsAsIs:!1}),xp=u("div")({name:"QuestionCaption",class:"q2sl39u",propsAsIs:!1}),Lp=u("div")({name:"QuestionBody",class:"qd5h0uc",propsAsIs:!1}),Ep=u("div")({name:"QuestionAction",class:"q105uluy",propsAsIs:!1}),kp=()=>O,wn=u(kp())({name:"QuestionActionIcon",class:"q1fa0b9h",propsAsIs:!0}),Sp=()=>wn,Ip=u(Sp())({name:"QuestionCheckIcon",class:"qxlt78s",propsAsIs:!0}),Tp=()=>O,jp=u(Tp())({name:"QuestionTypeIcon",class:"qmg0vkx",propsAsIs:!0}),Ap=u("div")({name:"QuestionTypeLabel",class:"q1uz5j1g",propsAsIs:!1}),$p=u("div")({name:"QuestionContent",class:"qc3icwa",propsAsIs:!1}),Go=u("button")({name:"PlayButton",class:"p169lohr",propsAsIs:!1}),Rp=u("div")({name:"SkeletonContainer",class:"s1f43z3r",propsAsIs:!1}),Vp=()=>ya,_p=u(Vp())({name:"SkeletonButton",class:"s16k8geu",propsAsIs:!0}),Np={[k.PickHistoryStatus.LOST]:a.jsx(wn,{name:"incorrectVoted"}),[k.PickHistoryStatus.WON]:a.jsx(Ip,{name:"icon-check"}),[k.PickHistoryStatus.UNSET]:a.jsx(wn,{name:"icon-arrow"}),[k.PickHistoryStatus.DNP]:a.jsx(wn,{name:"icon-arrow"})},Mp=()=>a.jsxs(Rp,{children:[a.jsx(Te,{loading:!0,style:{width:"35%"}}),a.jsx(Te,{loading:!0,style:{width:"70%"}}),a.jsx(_p,{})]}),Ko=({questionTypeData:e,questionType:t,questionStatus:n})=>a.jsxs(xp,{className:"SL_QuestionCaption",children:[a.jsx(jp,{className:"SL_QuestionTypeIcon","data-testid":"question-type-icon","data-type-trivia":t===k.QuestionType.TRIVIA,"data-type-poll":t===k.QuestionType.POLL,name:e.iconName}),a.jsxs(Ap,{className:"SL_QuestionTypeLabel",children:[e.label,t===k.QuestionType.TRIVIA&&n===k.QuestionStatus.RESOLVED&&" • Expired"]})]}),Op=({questionId:e,questionType:t,questionStatus:n,subject:r,openForVoting:i,status:l})=>{const s=N2[t],o=Np[l];return s?a.jsxs(el,{"data-name":e,children:[a.jsxs($p,{children:[a.jsx(Ko,{questionTypeData:s,questionType:t,questionStatus:n}),a.jsx(Lp,{children:r||""})]}),a.jsx(Ep,{children:i?a.jsx(Go,{children:"Play"}):o})]}):null},Pp=()=>el,Hp=u(Pp())({name:"Container",class:"cll3md7",propsAsIs:!0}),Dp=()=>Go,Fp=u(Dp())({name:"ActionBtn",class:"a10g1iik",propsAsIs:!0}),zp=({questionId:e,...t})=>a.jsxs(Hp,{"data-name":e,children:[a.jsx(Oo,{questionId:e,...t}),a.jsx(Fp,{"data-name":e,children:"View Insight"})]}),Bp=()=>el,Up=u(Bp())({name:"Container",class:"cl56x6b",propsAsIs:!0}),Zp=u("button")({name:"ActionButton",class:"a11pzf92",propsAsIs:!1}),qp=u("blockquote")({name:"Quote",class:"q1hbaleq",propsAsIs:!1}),Qp=({...e})=>a.jsxs(Up,{"data-name":e.tweetId,children:[e.title&&a.jsx(qp,{children:e.title}),a.jsx(Ji,{...e}),a.jsx(Zp,{"data-name":e.tweetId,children:"View Insight"})]}),zs=u("div")({name:"QuestionsContainer",class:"qvghv3l",propsAsIs:!1}),Yo=({questions:e,openQuestion:t,controlVideo:n})=>{const r=i=>{const l=i.target.getAttribute("data-name");l&&(Mo(),t(l,{openedFrom:"list"}))};return e?a.jsx(zs,{onClick:r,children:e==null?void 0:e.map(i=>{var l,s,o;if(i.type==="question"&&((l=i.attributes)==null?void 0:l.attributes.case)==="question"){const c=i.attributes.attributes.value;return a.jsx(Op,{...c},c.questionId)}if(i.type==="insight"&&((s=i.attributes)==null?void 0:s.attributes.case)==="insight"){const c=i.attributes.attributes.value;return a.jsx(zp,{controlVideo:n,...c},c.questionId)}if(i.type==="tweet"&&((o=i.attributes)==null?void 0:o.attributes.case)==="tweet"){const c=i.attributes.attributes.value,d=i.attributes.id;return a.jsx(Qp,{controlVideo:n,...c,tweetId:d},d)}return null})}):a.jsx(zs,{children:Array.from({length:5}).map((i,l)=>a.jsx(Mp,{},l))})},Wp=({store:e,openQuestion:t})=>{const{sdk:n}=Yn(),r=D(e);return a.jsx(Yo,{openQuestion:t,questions:r.data,controlVideo:n==null?void 0:n.controlVideoPlayer})},Gp=({userSummary:e})=>{var t;const[n,r]=w.useState(void 0);return w.useEffect(()=>{const i=e.$store.subscribe(l=>{l&&r(l)});return()=>{i()}},[e]),a.jsx(li,{loading:!(n!=null&&n.summary),...n==null?void 0:n.summary,successRate:(t=n==null?void 0:n.percentage)==null?void 0:t.correct})},Kp=({gamification:e,className:t,scrollStore:n,scrollNode:r,appNode:i,style:l,responsiveStore:s})=>{const{tabsShown:o}=D(n,{keys:["tabsShown"]}),c=D(e.friendsTabEnabled),[d,v]=w.useState(l2.HOME),[,C]=r6(),{sdkInDesktopView:f,screen:y}=D(s,{keys:["sdkInDesktopView"]}),b=E=>{C(()=>{var h;v(E),f===!1&&(((h=i.current)==null?void 0:h.getBoundingClientRect().y)||0)<0&&ei(i,y.size,{behavior:"instant"})})};w.useEffect(()=>n.subscribe(E=>{if(E.scrollPosition===0){n.setKey("tabsShown",!0);return}s.get().sdkInDesktopView?n.setKey("tabsShown",E.scrollDirection==="backward"):n.setKey("tabsShown",E.scrollDirection==="forward")}),[n,s]),w.useEffect(()=>{c||v(l2.HOME)},[c]);let x="0px";return f?x=o?"0px":"calc(0px - var(--header-height))":x=o?"var(--header-height)":"0px",a.jsxs(H4,{className:$e(t,"SL-Tabs"),style:l,children:[c&&a.jsx(B4,{style:{top:x},children:a.jsx(bd,{activePage:d,toggleActivePage:b})}),d===l2.HOME&&a.jsxs(a.Fragment,{children:[a.jsx(P4,{children:a.jsx(U4,{children:a.jsx(Gp,{userSummary:e.userSummary})})}),a.jsx(Y0,{style:{flex:1},children:a.jsx(Wp,{openQuestion:e.openQuestion,store:e.feedList.getStore()})})]}),d===l2.LEADERBOARD&&a.jsx(F4,{children:a.jsx(bp,{scrollStore:n,scrollNode:r,gamification:e})})]})},Yp=()=>ot,Bs=u(Yp())({name:"OpenedContainer",class:"ouvguos",propsAsIs:!0}),Us="t1eu4lbg",Xp=u("div")({name:"UserContainer",class:"uuv2xqo",propsAsIs:!1}),Jp=({correct:e,incorrect:t})=>{const n=e+t;return n===0?0:Math.round(e/n*100)},ef=({gamification:e,scrollStore:t,className:n,appNode:r,scrollNode:i,responsiveStore:l})=>a.jsx(Kp,{appNode:r,scrollStore:t,scrollNode:i,className:n,gamification:e,responsiveStore:l}),tf=({gamification:e,className:t,appNode:n,responsiveStore:r})=>{const{topNavigation:i}=Yn(),l=D(e.openedQuestion.$store),s=D(e.openedUser),{sdkInDesktopView:o}=D(r,{keys:["sdkInDesktopView"]}),{hiding:c,onAnimationEnd:d}=ti();if(!n.current||!l&&!s)return null;const v=l?a.jsx(Bs,{className:$e(t,!i&&Us),hiding:c,onAnimationEnd:d,children:a.jsx(Bo,{gamification:e})}):s?a.jsx(Bs,{className:$e(t,!i&&Us),hiding:c,onAnimationEnd:d,children:a.jsxs(Xp,{children:[a.jsx(ri,{label:"Friend's Rank",close:e.closeUser}),a.jsx(X0,{children:a.jsx(li,{...s,successRate:Jp(s)})})]})}):null;return a.jsx(Ki,{container:n,useContainer:!o,children:v})},nf=w.lazy(()=>Promise.resolve().then(()=>require("./gamification-feature.js"))),rf=({sdk:e,feature:t,className:n,scrollStore:r,appNode:i,scrollNode:l,responsiveStore:s})=>{const o=w.useMemo(()=>t&&t.featureConfig.get().type===k.SdkOverlayType.GAMES?a.jsx(R6,{className:n,sdk:e,feature:t,children:a.jsx(nf,{appNode:i,scrollStore:r,scrollNode:l,className:n,responsiveStore:s,gamification:t})}):null,[e,t,n,s,r,l,i]);return a.jsx(w.Suspense,{fallback:a.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"page loading..."}),children:o})},lf=({feature:e,className:t,appNode:n,responsiveStore:r})=>e&&e.featureConfig.get().type===k.SdkOverlayType.GAMES?a.jsx(tf,{className:t,appNode:n,responsiveStore:r,gamification:e}):null,sf=u("div")({name:"Buttons",class:"b5o8qbl",propsAsIs:!1}),af=({children:e,className:t})=>a.jsx(sf,{className:t,children:e}),Xo=u("div")({name:"Navigation",class:"n6tbwuy",propsAsIs:!1}),of=()=>af,Zs=u(of())({name:"NavigationItems",class:"n1up4z7v",propsAsIs:!0}),cf=u("button")({name:"SButton",class:"sxxa0c",propsAsIs:!1}),uf=u("span")({name:"ButtonIcon",class:"b193dcyu",propsAsIs:!1}),df=u("span")({name:"ButtonLabel",class:"b40tuix",propsAsIs:!1}),pf="s14xk0af",ff="ha3mg7c",hf="h103yr45",an=({disabled:e,active:t,onClick:n,label:r,icon:i,id:l})=>a.jsx(cf,{onClick:n,disabled:e,className:$e(t&&pf,!t&&(l==="channels"||l==="featuredGroups")&&ff,!t&&l==="leaderboard"&&hf),children:a.jsxs(a.Fragment,{children:[i&&a.jsx(uf,{children:i}),a.jsx(df,{children:r})]})}),mf=()=>O,Cf=u(mf())({name:"ButtonIcon",class:"b11wpe79",propsAsIs:!0}),vf=u("div")({name:"Container",class:"calnblm",propsAsIs:!1}),gf=u("div")({name:"Title",class:"t1438p52",propsAsIs:!1}),yf=u("div")({name:"CloseIconWrap",class:"c17srj38",propsAsIs:!1}),wf=()=>O,bf=u(wf())({name:"CloseIcon",class:"clqia8k",propsAsIs:!0}),xf=()=>O,Lf=u(xf())({name:"DashboardIcon",class:"df5w958",propsAsIs:!0}),Ef="h12x6aiv",kf=w.forwardRef(({sdk:e,className:t},n)=>{const r=()=>{e.closeFeature()};return a.jsxs(Xo,{className:$e(t,Ef),children:[a.jsxs(vf,{children:[a.jsxs(gf,{children:[a.jsx(Lf,{name:"dashboard"}),"Dashboard"]}),a.jsx(yf,{onClick:r,children:a.jsx(bf,{name:"icon-cross"})})]}),a.jsx("div",{ref:n})]})}),Sf=w.forwardRef(({sdk:e,className:t},n)=>{const r=D(e.sdkStore.organizationSettings),i=D(e.sdkStore.streamSettings),l=D(e.getActiveFeature()),s=w.useMemo(()=>{const c=(i==null?void 0:i.data)||(r==null?void 0:r.data);return c!=null&&c.overlays?c.overlays:[]},[r,i]),o=w.useMemo(()=>[...s.filter(({enableSdkButton:c,type:d})=>d===k.SdkOverlayType.GAMES||c).map(c=>({id:c.type,onClick:()=>e.openFeature(c.type),disabled:!(c.type in S4),label:c.name,icon:a.jsx("img",{src:c.icon,alt:""}),position:c.position*10}))].sort((c,d)=>c.position-d.position),[s,e]);return a.jsxs(Xo,{className:t,children:[o.length!==0&&a.jsx(Zs,{children:[a.jsx(an,{id:"Channels",onClick:()=>e.closeFeature(),label:"Channels",active:l===0},"Channels"),...o.map(c=>c.id===k.SdkOverlayType.GAMES?a.jsx(an,{...c,active:c.id===l,label:"StreamLayer +",id:"featuredGroups",icon:a.jsx(Cf,{name:"icon-btn-feature-groups","data-selected":c.id===l})},c.id):a.jsx(an,{...c,icon:void 0,active:c.id===l},c.id))]}),!o.length&&a.jsx(Zs,{children:[a.jsx(an,{id:"empty",label:"No Features...",active:!1,disabled:!0},"empty")]}),a.jsx("div",{ref:n})]})}),If=u("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),Tf=u("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),jf=u("div")({name:"ImageContainer",class:"i1qne9g6",propsAsIs:!1}),Af=u("div")({name:"InsightContent",class:"itpr98r",propsAsIs:!1}),$f=u("h3")({name:"Title",class:"t17iaqp8",propsAsIs:!1}),Rf=u("div")({name:"Description",class:"d16t3y7s",propsAsIs:!1}),Vf=u("button")({name:"ActionBtn",class:"a12495er",propsAsIs:!1}),_f=({video:e,image:t,imageMode:n,heading:r,body:i,action:l,controlVideo:s})=>a.jsxs(If,{children:[(e==null?void 0:e.url)&&a.jsx(hr,{source:e.url,poster:e.thumbnailUrl,controlVideo:s}),t&&!(e!=null&&e.url)&&a.jsx(jf,{"data-rounded":n===k.QuestionImages.ROUNDED,children:a.jsx(Tf,{src:t,alt:r})}),a.jsxs(Af,{children:[a.jsx($f,{children:r}),a.jsx(Rf,{children:i}),l&&a.jsx(Vf,{onClick:l,children:"View Insight"})]})]}),Nf=u("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),Mf=u("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),Of=()=>O,Pf=u(Of())({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),Hf=u("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),Df=()=>O,Ff=u(Df())({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),zf=u("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),Bf=u("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),Uf=u("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),Zf=u("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),qf=u("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),Qf=u("div")({name:"QuoteWrap",class:"q14u54rf",propsAsIs:!1}),Wf=u("blockquote")({name:"Quote",class:"q1hxm6zo",propsAsIs:!1}),Gf=({action:e,...t})=>a.jsxs(Zf,{children:[t.title&&a.jsx(Qf,{children:a.jsx(Wf,{children:t.title})}),a.jsx(Ji,{...t}),e&&a.jsx(qf,{onClick:e,children:"View Insight"})]}),W0=({close:e,action:t,controlVideo:n,data:{questionType:r,question:i,insight:l,tweet:s}})=>{const o=N2[r];return o?a.jsxs(Nf,{onClick:t,style:r===k.QuestionType.TWEET?{paddingTop:"12px"}:{},children:[a.jsx(Mf,{onClick:c=>{c.stopPropagation(),e&&e(c)},children:a.jsx(Pf,{name:"icon-cross"})}),r!==k.QuestionType.TWEET&&a.jsxs(Hf,{children:[a.jsx(Ff,{"data-type-trivia":r===k.QuestionType.TRIVIA,"data-type-poll":r===k.QuestionType.POLL,name:o.iconName}),a.jsx(zf,{children:o.label})]}),r===k.QuestionType.FACTOID&&l&&a.jsx(_f,{...l,action:t,controlVideo:n}),r===k.QuestionType.TWEET&&s&&a.jsx(Gf,{...s,action:t,controlVideo:n}),r!==k.QuestionType.FACTOID&&r!==k.QuestionType.TWEET&&a.jsxs(a.Fragment,{children:[a.jsx(Bf,{children:i==null?void 0:i.title}),a.jsx(Uf,{children:"Answer"})]})]}):null},pt=u("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),ke=u("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),Kf=()=>ke,Yf=u(Kf())({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),Xf=()=>ke,Jf=u(Xf())({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),eh=()=>ke,th=u(eh())({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),nh=()=>ke,qs=u(nh())({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),rh=()=>ke,Qs=u(rh())({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),ih=()=>ke,Ws=u(ih())({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),lh=()=>ke,Gs=u(lh())({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),sh=()=>ke,Ks=u(sh())({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),ah=()=>ke,Ys=u(ah())({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),oh=()=>ke,Xs=u(oh())({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),ch=()=>ke,uh=u(ch())({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),dh=()=>ke,ph=u(dh())({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),fh=()=>ke,hh=u(fh())({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),mh=()=>ke,Ch=u(mh())({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),vh=({step:e,correct:t})=>a.jsxs(a.Fragment,{children:[a.jsxs(pt,{"data-active":e===1,"data-first-screen":"true",children:[a.jsx(Yf,{}),a.jsx(Jf,{}),a.jsx(th,{})]}),a.jsxs(pt,{"data-active":e===2,children:[a.jsx(qs,{}),a.jsx(Qs,{}),a.jsx(Ws,{})]}),a.jsxs(pt,{"data-active":e===3,children:[a.jsx(qs,{}),a.jsx(Qs,{}),a.jsx(Ws,{})]}),t?a.jsxs(a.Fragment,{children:[a.jsxs(pt,{"data-active":e===4,"data-correct":"true",children:[a.jsx(Gs,{}),a.jsx(Ks,{}),a.jsx(Ys,{}),a.jsx(Xs,{})]}),a.jsxs(pt,{"data-active":e===5,"data-correct":"true",children:[a.jsx(Gs,{}),a.jsx(Ks,{}),a.jsx(Ys,{}),a.jsx(Xs,{})]})]}):a.jsxs(pt,{"data-active":e===4,"data-correct":"false",children:[a.jsx(uh,{}),a.jsx(ph,{}),a.jsx(hh,{}),a.jsx(Ch,{})]})]}),gh=118,yh=()=>ot,wh=u(yh())({name:"Container",class:"c10131zw",propsAsIs:!0}),bh=u("div")({name:"InnerContainer",class:"ir6k2eo",propsAsIs:!1}),Z1=u("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),s2=u("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),xh=()=>s2,Lh=u(xh())({name:"PointsTitle",class:"p1pjil1h",propsAsIs:!0}),on=u("div")({name:"Subtitle",class:"s1iorwr9",propsAsIs:!1}),Js=u("div")({name:"SubtitleFG",class:"s51sv9d",propsAsIs:!1}),cn=u("div")({name:"AnswerText",class:"a1lbk2ye",propsAsIs:!1}),Eh=()=>O,Jo=u(Eh())({name:"FeedbackIcon",class:"frcvk3t",propsAsIs:!0}),kh=()=>Jo,ea=u(kh())({name:"FeedbackIconCorrect",class:"f33p82r",propsAsIs:!0}),Sh=()=>Jo,Ih=u(Sh())({name:"FeedbackIconIncorrect",class:"f12r9net",propsAsIs:!0}),ta=u("div")({name:"CloseIconWrap",class:"c1fw6699",propsAsIs:!1}),Th=()=>O,na=u(Th())({name:"CloseIcon",class:"c115o126",propsAsIs:!0}),jh="data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e",Ah="data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",$h=(e,t,n)=>e===t?"translateY(0px)":e>t?`translateY(${n}px)`:"translateY(-100%)",e4=({close:e,votedAnswer:t,mastersApp:n,correct:r,correctAnswerTitle:i,questionTitle:l,saveHeight:s,style:o,hiding:c})=>{const[d,v]=w.useState(1),C=w.useRef({});w.useEffect(()=>{const b=setInterval(()=>{v(x=>r&&x>4||!r&&x>3?x:++x)},3e3);return()=>clearInterval(b)},[r]),w.useEffect(()=>{var b,x;C.current[d]&&s(((x=(b=C.current[d])==null?void 0:b.getBoundingClientRect())==null?void 0:x.height)||gh)},[d,s]);const f=b=>x=>{C.current&&(C.current[b]=x)},y=b=>({transform:$h(b,d,o.height)});return a.jsx(wh,{style:o.height?o:{...o,paddingTop:0,paddingBottom:0},hiding:c,children:a.jsxs(bh,{style:{height:o.height,minHeight:o.height,backgroundColor:d>3?r?"var(--color-sdk-prediction-result-success-bg)":"var(--color-sdk-prediction-result-incorrect-bg)":"var(--color-primary-1)"},children:[a.jsx(vh,{step:d,correct:r}),n&&a.jsxs(Z1,{ref:f(1),style:y(1),children:[a.jsx("img",{alt:"sponsor-logo",src:jh}),a.jsx(Js,{children:"Featured Groups +"})]}),!n&&a.jsx(Z1,{ref:f(1),style:y(1),children:a.jsx("img",{alt:"sponsor-logo",src:Ah})}),a.jsxs(Z1,{ref:f(2),style:y(2),children:[a.jsx(s2,{children:"Prediction results are in!"}),n&&a.jsx(Js,{children:"Featured Groups +"})]}),a.jsxs(Z1,{ref:f(3),style:y(3),children:[a.jsx(s2,{children:l}),a.jsx(on,{children:a.jsxs(cn,{children:[a.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})})]}),r?a.jsxs(a.Fragment,{children:[a.jsxs(Z1,{ref:f(4),style:{...y(4),color:"var(--color-sdk-prediction-result-success-text)"},children:[a.jsxs(s2,{children:["Congratulations!",a.jsx("br",{}),"You answered correctly."]}),a.jsxs(on,{children:[a.jsx(ea,{name:"selected"}),a.jsxs(cn,{children:[a.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]})]}),a.jsxs(Z1,{ref:f(5),style:{...y(5),color:"var(--color-sdk-prediction-result-success-text)"},children:[a.jsx(Lh,{children:d===5&&a.jsx(fr,{delay:.5,prefix:"+",suffix:" points",value:t==null?void 0:t.points})}),a.jsxs(on,{children:[a.jsx(ea,{name:"selected"}),a.jsxs(cn,{children:[a.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]}),a.jsx(ta,{onClick:e,children:a.jsx(na,{name:"icon-cross"})})]})]}):a.jsxs(Z1,{ref:f(4),style:y(4),children:[a.jsxs(s2,{style:{color:"var(--color-sdk-prediction-result-error-title)"},children:["Better luck next time!",a.jsx("br",{}),"Correct: ",i,"."]}),a.jsxs(on,{style:{color:"var(--color-sdk-prediction-result-error-subtitle)"},children:[a.jsx(Ih,{name:"circleClose"}),a.jsxs(cn,{children:[a.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]}),a.jsx(ta,{onClick:e,children:a.jsx(na,{name:"icon-cross"})})]})]})})},t4=e=>{const[t,n]=w.useState(!1),[r,i]=w.useState(!1),l=w.useRef(null),s=w.useCallback(()=>{i(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{i(!1)},1e3)},[]),o=w.useCallback(async c=>{n(!0);const d=c.map(v=>new Promise((C,f)=>{const y=new Image;y.onload=()=>C(v),y.onerror=()=>f(),y.src=v}));await Promise.allSettled(d),n(!1)},[]);return w.useEffect(()=>{e&&(s(),o(e))},[e,s,o]),{loading:t,throttled:r}},Rh=u("div")({name:"Container",class:"cl51m2q",propsAsIs:!1}),Vh=u("img")({name:"Avatar",class:"a2yhhhr",propsAsIs:!1}),_h=u("div")({name:"AvatarPlaceholder",class:"a1dtxxlr",propsAsIs:!1}),Nh=u("div")({name:"Content",class:"c12clm3w",propsAsIs:!1}),Mh=u("span")({name:"Name",class:"n14lctn7",propsAsIs:!1}),Oh=({avatar:e,name:t})=>a.jsxs(Rh,{children:[e&&a.jsx(Vh,{src:e}),!e&&a.jsx(_h,{children:ii(t||"")}),a.jsxs(Nh,{children:[a.jsxs(Mh,{children:[t," "]}),"is waiting for you!"]})]}),Ph=u("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),Hh=u("div")({name:"Graphic",class:"gjyzpp7",propsAsIs:!1}),Dh=u("img")({name:"GraphicImage",class:"g16mldgz",propsAsIs:!1}),Fh=u("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),zh=u("div")({name:"TaglineContainer",class:"tmm7qmo",propsAsIs:!1}),Bh=u("div")({name:"Tagline",class:"t17knuw2",propsAsIs:!1}),Uh=u("div")({name:"Content",class:"c1b74psg",propsAsIs:!1}),Zh=u("div")({name:"StepsContainer",class:"s1y99ug7",propsAsIs:!1}),qh=u("span")({name:"StepIndicator",class:"sgf3v5n",propsAsIs:!1}),Qh=u("div")({name:"InvitingUserWrap",class:"i1sj6gn8",propsAsIs:!1}),Wh=({loading:e,steps:t,currentStep:n,inviterName:r})=>{const{headline:i,tagline:l}=t[n];return a.jsxs(Ph,{children:[l&&a.jsx(zh,{children:a.jsx(Te,{loading:e,children:a.jsx(Bh,{children:l})})}),a.jsxs(Uh,{"data-welcome-screen":n===0,children:[a.jsx(Hh,{children:a.jsx(Te,{loading:e,children:t.map(({graphicSrc:s},o)=>a.jsx(Dh,{src:s,"data-active":n===o}))})}),i&&a.jsx(Te,{loading:e,children:a.jsx(Fh,{children:i})})]}),r&&n===0&&a.jsx(Qh,{children:a.jsx(Oh,{name:r})}),a.jsx(Zh,{style:e?{visibility:"hidden"}:{},children:Array.from({length:t.length}).map((s,o)=>a.jsx(qh,{"data-active":n===o},o))})]})},Gh=u("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),Kh=u("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),Yh=u("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),Xh=u("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),Jh=u("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),em=u("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),tm=u("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),nm=u("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),rm=({rules:e,rulesTitle:t,termsText:n,primaryColor:r,openTerms:i})=>a.jsxs(Gh,{children:[a.jsxs(Kh,{children:[a.jsx(Yh,{children:t}),a.jsx(Xh,{children:e==null?void 0:e.map(({label:l,icon:s},o)=>a.jsxs(Jh,{children:[s&&a.jsx(em,{style:{backgroundColor:r},children:a.jsx(O,{name:s,"data-icon":s})}),a.jsx(tm,{children:l})]},o))})]}),n&&a.jsx(nm,{onClick:i,children:"See Terms and Conditions"})]}),im=u("div")({name:"Container",class:"cj0g35h",propsAsIs:!1}),lm=u("div")({name:"Content",class:"c1xkhrbn",propsAsIs:!1}),sm=u("div")({name:"Title",class:"tifzb8b",propsAsIs:!1}),am=u("div")({name:"ScrollingText",class:"stduw5c",propsAsIs:!1}),om=({termsTitle:e,termsText:t})=>a.jsx(im,{children:a.jsxs(lm,{children:[a.jsx(sm,{children:e}),a.jsx(am,{children:t})]})}),cm=u("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),um=u("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),dm=({disabled:e,variant:t="primary",onClick:n,children:r,...i})=>a.jsx(cm,{onClick:n,disabled:e,"data-variant":t,...i,children:a.jsx(um,{children:r})}),pm=u("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),fm=u("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),hm=u("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),mm=u("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),Cm=()=>O,vm=u(Cm())({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),gm=u("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),ym=()=>dm,wm=u(ym())({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),ft={steps:!1,rules:!1,inviteCard:!1},n4=({gamification:e,steps:t,rules:n,rulesBtnLabel:r,rulesTitle:i,termsTitle:l,termsText:s,primaryColor:o,inviteLink:c,inviteCardTitle:d,inviteCardSubtext:v,inviteCardBtnLabel:C,loading:f,inviterName:y,sdk:b,onClose:x})=>{const[E,h]=w.useState(0),[p,g]=w.useState(!1),[L,S]=w.useState(ft);w.useEffect(()=>{t!=null&&t.length?S({...ft,steps:!0}):n!=null&&n.length?S({...ft,rules:!0}):S({...ft,inviteCard:!0})},[]);const I=w.useMemo(()=>L.steps&&E===0?"Continue":L.rules?p||!r?"Got it":r:L.inviteCard?C||"Play Now":"Next",[L,E,p,r,C]),j=w.useCallback(()=>{t!=null&&t.length&&E<t.length-1?h(_=>++_):n!=null&&n.length&&L.steps?S({...ft,rules:!0}):L.rules&&S({...ft,inviteCard:!0})},[E,t==null?void 0:t.length,n==null?void 0:n.length,L,h,S]),A=async()=>{L.inviteCard?await e.onboardingStatus.submitInplay():L.rules&&p?g(!1):j()};return w.useEffect(()=>{!f&&y&&b.inviteDisplayed()},[f,y,b]),a.jsx(Md,{children:({width:_,height:V})=>a.jsxs(pm,{style:{width:_,height:V,maxHeight:V},children:[a.jsx(hm,{children:a.jsx(mm,{onClick:x,children:a.jsx(vm,{name:"icon-close-btn-gray"})})}),a.jsxs(fm,{children:[L.steps&&(t==null?void 0:t.length)&&a.jsx(Wh,{loading:f,steps:t,currentStep:E,inviterName:y}),L.rules&&!p&&a.jsx(rm,{rules:n,rulesTitle:i,termsText:s,primaryColor:o,openTerms:()=>g(!0)}),L.rules&&p&&a.jsx(om,{termsTitle:l,termsText:s}),L.inviteCard&&a.jsx(Wo,{inviteLink:c,inviteCardTitle:d,inviteCardSubtext:v,primaryColor:o})]}),a.jsx(gm,{children:a.jsx(Te,{loading:f,style:{width:"100%"},children:a.jsx(wm,{onClick:A,children:I})})})]})})},bm=u("div")({name:"Container",class:"c1qjj4d4",propsAsIs:!1}),xm=u("div")({name:"CloseIconWrap",class:"c1lg6b8a",propsAsIs:!1}),Lm=()=>O,Em=u(Lm())({name:"CloseIcon",class:"c159el66",propsAsIs:!0}),km=u("div")({name:"Title",class:"t16xmufv",propsAsIs:!1}),Sm=u("img")({name:"SponsorLogo",class:"s83lc21",propsAsIs:!1}),Im=u("div")({name:"PresentsTitle",class:"p1p7igia",propsAsIs:!1}),Tm=u("div")({name:"Subtitle",class:"s1eftsbu",propsAsIs:!1}),jm=u("div")({name:"Description",class:"d8uezec",propsAsIs:!1}),Am=u("button")({name:"ActionButton",class:"a1h1bk90",propsAsIs:!1}),ra=({close:e,action:t,onboarding:n})=>{var r,i,l,s,o,c,d,v;return a.jsxs(bm,{children:[a.jsx(xm,{onClick:e,children:a.jsx(Em,{name:"icon-cross"})}),((i=(r=n==null?void 0:n.titleCard)==null?void 0:r.media)==null?void 0:i.sponsorLogo)&&a.jsxs(km,{children:[a.jsx(Sm,{alt:"sponsor-logo",src:(s=(l=n==null?void 0:n.titleCard)==null?void 0:l.media)==null?void 0:s.sponsorLogo}),a.jsx(Im,{children:"PRESENTS"})]}),((o=n==null?void 0:n.titleCard)==null?void 0:o.title)&&a.jsx(Tm,{children:(c=n==null?void 0:n.titleCard)==null?void 0:c.title}),((d=n==null?void 0:n.titleCard)==null?void 0:d.subtitle)&&a.jsx(jm,{children:(v=n==null?void 0:n.titleCard)==null?void 0:v.subtitle}),a.jsx(Am,{onClick:t,children:"Play Now"})]})},G0=[{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",tagline:"",headline:a.jsxs(a.Fragment,{children:["Welcome to ",a.jsx("br",{})," Live Challenge"]})},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_2.png",headline:"Live insights, polls, trivia and predictions."},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_3.png",headline:"Win points and play against friends."}],$m=u("div")({name:"OnboardingContainer",class:"o1xni1kr",propsAsIs:!1}),Rm=()=>ot,Vm=u(Rm())({name:"OnboardingNotificationContainer",class:"o1vnouv7",propsAsIs:!0}),ia=u("div")({name:"InnerContainer",class:"i59uefw",propsAsIs:!1}),_m=u("div")({name:"OnboardingOverlap",class:"ovnr8ov",propsAsIs:!1}),Nm=({deepLink:e,onboardingOpts:t,notification:n,gamification:r,loading:i,sdk:l,throttled:s})=>{var o,c,d,v,C,f,y;const b=D(r.friends.getStore()),[x,E]=w.useState(void 0),h=w.useMemo(()=>{var p,g;const L=l.getInviter();return L?(g=(p=b.data)==null?void 0:p.find(({slId:S})=>S===L))==null?void 0:g.name:""},[b.data,l]);return w.useEffect(()=>{const p=e.$store.subscribe(g=>{g&&E(g.data)});return()=>{p()}},[e.$store]),a.jsxs($m,{children:[a.jsx(n4,{loading:i,rules:[{label:"Answer as many questions as you like.",icon:"icon-btn-feature-groups"},{label:"Win points for each correct trivia or prediction answer.",icon:"icon-thumb-up"},{label:"Top the leader board and best your friends.",icon:"icon-trophy"}],rulesBtnLabel:(o=t.rules)==null?void 0:o.buttonLabel,rulesTitle:(c=t.rules)==null?void 0:c.heading,termsTitle:"Terms and Conditions",termsText:(d=t.rules)==null?void 0:d.terms,steps:G0,primaryColor:(v=t.inviteCard)==null?void 0:v.iconColor,inviteLink:x,inviteCardTitle:(C=t.inviteCard)==null?void 0:C.heading,inviteCardSubtext:(f=t.inviteCard)==null?void 0:f.subtext,inviteCardBtnLabel:(y=t.inviteCard)==null?void 0:y.buttonLabel,onClose:()=>{var p;(p=n.close)==null||p.call(n)},gamification:r,sdk:l,inviterName:h}),s&&a.jsx(_m,{})]})},Mm=({sdk:e,notification:t,saveHeight:n,style:r,appNode:i,sdkInDesktopView:l,responsiveStore:s})=>{const o=w.useRef(null),c=t.data.onboarding,[d,v]=w.useState(c==null?void 0:c.instantOpen),C=e.getFeature(k.SdkOverlayType.GAMES),f=w.useMemo(()=>G0==null?void 0:G0.map(({graphicSrc:E})=>E),[]),{screen:y}=D(s,{keys:["screen"]});w.useLayoutEffect(()=>{var E;n(((E=o.current)==null?void 0:E.getBoundingClientRect().height)||0)},[n]);const{loading:b,throttled:x}=t4(f);return d&&C&&c&&i.current?a.jsx(Ki,{container:i,useContainer:!l,children:a.jsx(Nm,{throttled:x,notification:t,setOpened:v,gamification:C,onboardingOpts:c,deepLink:C.deepLink,loading:b,renderToNode:i,sdk:e})}):a.jsxs(a.Fragment,{children:[a.jsx(ia,{ref:o,style:{position:"absolute",visibility:"hidden"},children:a.jsx(ra,{close:()=>{},action:()=>{},onboarding:c})}),a.jsx(Vm,{style:r,hiding:t.hiding,children:a.jsx(ia,{children:a.jsx(ra,{close:t.close,action:()=>{var E;v(!0),(((E=i.current)==null?void 0:E.getBoundingClientRect().y)||0)<0&&ei(i,y.size,{behavior:"smooth"})},onboarding:c})})})]})},Om=u("button")({name:"Container",class:"crkmfw1",propsAsIs:!1}),Pm=u("div")({name:"Content",class:"c11awpy4",propsAsIs:!1}),Hm=u("span")({name:"Title",class:"t154z7mh",propsAsIs:!1}),r4=({title:e,onClick:t,className:n,style:r})=>a.jsx(Om,{onClick:t,className:n,style:r,children:a.jsxs(Pm,{children:[a.jsx(O,{name:"iconUp"}),e&&a.jsx(Hm,{children:e})]})}),Dm=()=>ot,Fm=u(Dm())({name:"Container",class:"c8ol1ve",propsAsIs:!0}),i4=u("div")({name:"InnerContainer",class:"iqfywam",propsAsIs:!1}),zm=()=>i4,Bm=u(zm())({name:"HiddenContainer",class:"hokmtod",propsAsIs:!0}),Um=u("div")({name:"NotificationRefreshing",class:"n192d1q8",propsAsIs:!1}),Zm=()=>r4,qm=u(Zm())({name:"Pill",class:"p1lha68t",propsAsIs:!0}),Qm=e=>{const[t,n]=w.useState(0),r=w.useRef(null),i=w.useMemo(()=>new ResizeObserver(o=>{var c;for(const d of o)if(d.contentBoxSize){const v=(c=r.current)==null?void 0:c.getBoundingClientRect();v&&n(v.height)}}),[]),l=w.useCallback(o=>{r.current=o},[]),s=w.useCallback(o=>{n(o)},[]);return w.useEffect(()=>{const o=r.current;return o?(i.observe(o),()=>{i.unobserve(o)}):()=>{}},[e]),w.useEffect(()=>()=>{i.disconnect()}),[l,t,s]},Wm=({sdk:e,notification:t,appNode:n,responsiveStore:r,hasActiveFeature:i})=>{var l,s;const{sdkInDesktopView:o}=D(r,{keys:["sdkInDesktopView"]}),{sdk:c}=Yn(),[d,v,C]=Qm(t.id);let f=v;return i||(f="auto"),t.type===exports.NotificationType.QUESTION?a.jsxs(a.Fragment,{children:[a.jsx(Bm,{ref:d,children:a.jsx(W0,{...t})}),a.jsxs(Fm,{style:{height:t.hiding?0:f},hiding:t.hiding,children:[a.jsx(i4,{style:{height:"100%"},children:a.jsx(W0,{...t,controlVideo:c==null?void 0:c.controlVideoPlayer})}),a.jsx(Um,{},t.id)]})]}):t.type===exports.NotificationType.QUESTION_RESOLVED&&(s=(l=t.data)==null?void 0:l.question)!=null&&s.predictionResult?a.jsx(e4,{style:{height:t.hiding?0:v},saveHeight:C,close:t.close,hiding:t.hiding,...t.data.question}):t.type===exports.NotificationType.ONBOARDING?a.jsx(Mm,{style:{height:t.hiding?0:f},saveHeight:C,sdk:e,notification:t,sdkInDesktopView:o,appNode:n,responsiveStore:r}):null},Gm="p7vfi6t",Km=({pill:e,setPill:t,appNode:n,headerNode:r,scrollNode:i,responsiveStore:l,scrollStore:s})=>{var o,c;const{screen:d}=D(l,{keys:["screen"]}),{tabsShown:v,scrollPosition:C}=D(s,{keys:["tabsShown","scrollPosition"]});w.useEffect(()=>{l.get().sdkInDesktopView?C<50&&t(null):C>-50&&t(null)},[C,l,t]);const f=l.get().sdkInDesktopView?n:r;return!e||!f.current?null:V2.createPortal(a.jsx(qm,{title:e.type===exports.NotificationType.QUESTION_RESOLVED?"Prediction result":`New ${((c=N2[(o=e.data)==null?void 0:o.questionType])==null?void 0:c.label)||"notification"}`,onClick:()=>{var y;l.get().sdkInDesktopView?(y=i.current)==null||y.scrollTo({top:0,behavior:"smooth"}):ei(n,d.size,{behavior:"smooth"}),t(null)},className:$e(v&&Gm,"sl-pill-button")}),f.current)},Ym=({sdk:e,headerNode:t,scrollNode:n,responsiveStore:r,appNode:i,scrollStore:l,hasActiveFeature:s})=>{const[o]=w.useState(e.getNotificationsStore()),c=D(o),[d,v]=w.useState(null),C=w.useMemo(()=>e.getActiveNotification(),[e,c]);return w.useEffect(()=>{C&&_2.emit("notification",{action:"rendered",payload:{questionId:C.data.questionId,questionType:C.data.questionType}})},[C]),w.useEffect(()=>{const{sdkInDesktopView:f,sdkInView:y}=r.get();C&&(f||y)&&(!f&&y&&v(C),f&&window.requestAnimationFrame(()=>{l.get().scrollPosition!==0&&v(C)}))},[C]),w.useEffect(()=>{C||v(null)},[C]),a.jsxs(a.Fragment,{children:[!d&&C&&a.jsx(Wm,{appNode:i,sdk:e,hasActiveFeature:s,notification:C,responsiveStore:r}),d&&a.jsx(Km,{pill:d,setPill:v,appNode:i,notification:C,headerNode:t,scrollNode:n,scrollStore:l,responsiveStore:r})]})},Xm=e=>{const t=D(e.status),n=D(e.sdkStore.slStreamId),r=D(e.userId()),i=D(e.getActiveFeature()),l=t==="ready"&&!!n.data;return w.useEffect(()=>{const s=e.getFeature(k.SdkOverlayType.GAMES);s&&i!==k.SdkOverlayType.GAMES&&(s.closeQuestion(),s.closeUser()),s==null||s.openedQuestionId.subscribe(o=>{o&&i!==k.SdkOverlayType.GAMES&&e.openFeature(k.SdkOverlayType.GAMES)})},[i,e]),{sdkReady:l,activeFeature:i,isLogged:!!r}},Jm=({sdk:e,className:t,scrollStore:n,appNode:r,scrollNode:i,responsiveStore:l})=>{const[,s]=ua(e);return a.jsx(rf,{className:t,scrollNode:i,appNode:r,scrollStore:n,feature:s,responsiveStore:l,sdk:e})},eC=({sdk:e,className:t,appNode:n,responsiveStore:r})=>{const i=D(e.featuresList.getStore());return i?Array.from(i,l=>{const s=e.getFeature(l);return s?a.jsx(lf,{className:t,appNode:n,feature:s,responsiveStore:r,sdk:e},l):null}):null},tC=({sdk:e,topNavigation:t})=>{const n=w.useRef(null),r=w.useRef(null),[i]=T6(n),[l,s]=A6(n,i),{sdkReady:o,activeFeature:c,isLogged:d}=Xm(e),v=!!o;ma(n,{enabled:v,event:"click",listener:ha});const C=w.useMemo(()=>({sdk:e,topNavigation:t}),[e,t]);return w.useEffect(()=>{Promise.resolve().then(()=>require("./gamification-feature.js"))},[]),a.jsx(Ca.Provider,{value:C,children:a.jsxs(N4,{ref:n,className:t?"":"c10llmat",children:[v&&t&&a.jsx(Sf,{className:e2,sdk:e,ref:r}),v&&!t&&!!c&&a.jsx(kf,{className:$e(e2,"sl-hide-on-modal"),sdk:e,ref:r}),a.jsxs(aa,{className:"sl-hide-on-modal",ref:l,"data-nav":(!!c&&v).toString(),children:[v&&a.jsx(Ym,{sdk:e,scrollNode:l,headerNode:r,appNode:n,scrollStore:s,responsiveStore:i,hasActiveFeature:!!c}),v&&a.jsx(Jm,{scrollStore:s,responsiveStore:i,scrollNode:l,appNode:n,className:e2,sdk:e}),v&&a.jsx(eC,{responsiveStore:i,appNode:n,className:e2,sdk:e})]}),v&&!d&&a.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"You are not logged in."})]})})},l4=({children:e,customTheme:t,themeMode:n,style:r})=>a.jsx("div",{className:"StreamLayerSDKTheme",children:a.jsx("div",{className:$e($6,n,t),style:r,children:e})}),s4=()=>{const{sdk:e}=w.useContext(O1);return e},nC=()=>{const{event:e}=w.useContext(O1);return e},a4=()=>{const{sdk:e}=w.useContext(O1),[t,n]=w.useState({});return w.useEffect(()=>{var r;return e!=null&&e.options?(r=e==null?void 0:e.options)==null?void 0:r.subscribe(i=>{n({theme:i.theme,themeMode:i.themeMode})}):()=>{}},[e==null?void 0:e.options]),t},o4=()=>{const{sdk:e}=w.useContext(O1),[t,n]=w.useState({});return w.useEffect(()=>e!=null&&e.uiState?e==null?void 0:e.uiState.subscribe(r=>{n({...r})}):()=>{},[e==null?void 0:e.uiState]),t},rC=({event:e,topNavigation:t,theme:n,withSidebarNotification:r=!0})=>{const{sdk:i,status:l}=w.useContext(O1),s=o4(),o=a4(),{event:c}=w.useContext(O1);if(l===Kn.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return l===Kn.CONNECTED?a.jsx("div",{className:"StreamLayerSDK",children:"wait"}):i===null?a.jsx("div",{className:"StreamLayerSDK",children:"sdk not initialized"}):!s.app&&!s.appNotification||!s.app&&s.appNotification&&!r?null:a.jsx("div",{className:"StreamLayerSDK",children:a.jsx(l4,{customTheme:n??o.theme,themeMode:o.themeMode,children:a.jsx(tC,{sdk:i,event:(c==null?void 0:c.current)||e,topNavigation:t})})})},c4=({event:e})=>{const t=s4(),n=nC();return w.useEffect(()=>(t&&(e&&(t.createEventSession(e),n&&(n.current=e)),!e&&(n!=null&&n.current)&&(t.createEventSession(""),n.current="")),()=>{t&&t.disableApp()}),[e,n,t]),null};var Kn=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(Kn||{});const iC={status:0,sdk:null},O1=w.createContext(iC),lC=({sdkKey:e,theme:t,themeMode:n,plugins:r,children:i,event:l,production:s=!0,autoEnable:o=!0,withAdNotification:c,withAd:d=!0,betPack:v=!1,hideFriends:C,skipOnboarding:f,friendsTab:y="enabled",onDeepLinkHandled:b,videoPlayerController:x,onContentActivate:E})=>{const h=k.useStreamLayerApp({sdkKey:e,plugins:r,production:s,autoEnable:o,onDeepLinkHandled:b,videoPlayerController:x,onContentActivate:E,hideFriends:C,skipOnboarding:f,withAdNotification:c,withAd:d,friendsTab:y,betPack:v}),p=w.useRef(""),g=w.useMemo(()=>h?{sdk:h,status:2,event:p}:{status:1,sdk:null,event:p},[h]);return w.useEffect(()=>{h&&(h.options.setKey("friendsTab",y),h.options.setKey("theme",t),h.options.setKey("themeMode",n),h.options.setKey("skipOnboarding",f),h.options.setKey("betPack",v))},[h,y,t,n,f,v]),w.useEffect(()=>()=>{b&&(h==null||h.removeDeepLinkHandler(b)),x&&(h==null||h.removeVideoPlayerController(x))},[h]),w.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!e,onDeepLinkHandled:!!b,videoPlayerController:!!x})},[e,b,x]),a.jsxs(O1.Provider,{value:g,children:[l!==void 0&&a.jsx(c4,{event:l}),i]})};exports.A=r1;exports.A$1=xn;exports.D=Ho;exports.Df=V2;exports.Ht=_o;exports.I=t4;exports.P=ef;exports.R=pa;exports.S=ti;exports.S$1=Fo;exports.StreamLayerContext=O1;exports.StreamLayerProvider=lC;exports.StreamLayerSDKEvent=c4;exports.StreamLayerSDKReact=rC;exports.StreamLayerStatus=Kn;exports.Y=hr;exports.a=zo;exports.b=ri;exports.commonjsGlobal=Jt;exports.createLogger=lt;exports.cx_default=$e;exports.d=fr;exports.e=N2;exports.eventBus=_2;exports.f=ot;exports.getAugmentedNamespace=la;exports.getDefaultExportFromCjs=K0;exports.h=l4;exports.h$1=e2;exports.h$2=r4;exports.i=So;exports.jt=Vo;exports.k=Yo;exports.o=u7;exports.p=Po;exports.p$1=ua;exports.rn=n4;exports.styled_default=u;exports.u1=O;exports.useStore=D;exports.useStreamLayer=s4;exports.useStreamLayerTheme=a4;exports.useStreamLayerUI=o4;exports.v=J0;exports.v$1=ha;exports.w=W0;exports.x=Ki;exports.x$1=Ko;exports.y=ma;exports.y$1=ga;exports.z=Bo;exports.z$1=li;exports.z$2=e4;
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Wc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ae.useLayoutEffect:ae.useEffect;function We(e){var t=ae.useRef(e);return Wc(function(){t.current=e}),ae.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var Gc=function(t,n){var r=n.decimal,i=n.decimals,l=n.duration,s=n.easingFn,o=n.end,c=n.formattingFn,d=n.numerals,v=n.prefix,C=n.separator,f=n.start,y=n.suffix,b=n.useEasing,x=n.useGrouping,E=n.useIndianSeparators,h=n.enableScrollSpy,p=n.scrollSpyDelay,g=n.scrollSpyOnce,L=n.plugin;return new Pc.CountUp(t,o,{startVal:f,duration:l,decimal:r,decimalPlaces:i,easingFn:s,formattingFn:c,numerals:d,separator:C,prefix:v,suffix:y,plugin:L,useEasing:b,useIndianSeparators:E,useGrouping:x,enableScrollSpy:h,scrollSpyDelay:p,scrollSpyOnce:g})},Kc=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],Yc={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},$o=function(t){var n=Object.fromEntries(Object.entries(t).filter(function(_){var V=Uc(_,2),J=V[1];return J!==void 0})),r=ae.useMemo(function(){return Gn(Gn({},Yc),n)},[t]),i=r.ref,l=r.startOnMount,s=r.enableReinitialize,o=r.delay,c=r.onEnd,d=r.onStart,v=r.onPauseResume,C=r.onReset,f=r.onUpdate,y=Ao(r,Kc),b=ae.useRef(),x=ae.useRef(),E=ae.useRef(!1),h=We(function(){return Gc(typeof i=="string"?i:i.current,y)}),p=We(function(_){var V=b.current;if(V&&!_)return V;var J=h();return b.current=J,J}),g=We(function(){var _=function(){return p(!0).start(function(){c==null||c({pauseResume:L,reset:S,start:j,update:I})})};o&&o>0?x.current=setTimeout(_,o*1e3):_(),d==null||d({pauseResume:L,reset:S,update:I})}),L=We(function(){p().pauseResume(),v==null||v({reset:S,start:j,update:I})}),S=We(function(){p().el&&(x.current&&clearTimeout(x.current),p().reset(),C==null||C({pauseResume:L,start:j,update:I}))}),I=We(function(_){p().update(_),f==null||f({pauseResume:L,reset:S,start:j})}),j=We(function(){S(),g()}),A=We(function(_){l&&(_&&S(),g())});return ae.useEffect(function(){E.current?s&&A(!0):(E.current=!0,A())},[s,E,A,o,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),ae.useEffect(function(){return function(){S()}},[S]),{start:j,pauseResume:L,reset:S,update:I,getCountUp:p}},Xc=["className","redraw","containerProps","children","style"],Jc=function(t){var n=t.className,r=t.redraw,i=t.containerProps,l=t.children,s=t.style,o=Ao(t,Xc),c=ae.useRef(null),d=ae.useRef(!1),v=$o(Gn(Gn({},o),{},{ref:c,startOnMount:typeof l!="function"||t.delay===0,enableReinitialize:!1})),C=v.start,f=v.reset,y=v.update,b=v.pauseResume,x=v.getCountUp,E=We(function(){C()}),h=We(function(L){t.preserveValue||f(),y(L)}),p=We(function(){if(typeof t.children=="function"&&!(c.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}x()});ae.useEffect(function(){p()},[p]),ae.useEffect(function(){d.current&&h(t.end)},[t.end,h]);var g=r&&t;return ae.useEffect(function(){r&&d.current&&E()},[E,r,g]),ae.useEffect(function(){!r&&d.current&&E()},[E,r,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.className,t.formattingFn]),ae.useEffect(function(){d.current=!0},[]),typeof l=="function"?l({countUpRef:c,start:C,reset:f,update:y,pauseResume:b,getCountUp:x}):ae.createElement("span",U0({className:n,ref:c,style:s},i),typeof t.start<"u"?x().formattingFn(t.start):"")},eu=Yi.default=Jc;Yi.useCountUp=$o;const fr=({value:e=0,decimals:t,duration:n=1,preserveValue:r=!0,...i})=>{const[,l]=e.toString().split("."),s=t??((l==null?void 0:l.length)||0);return a.jsx(eu,{end:e,...i,duration:n,decimals:s,enableScrollSpy:!1,preserveValue:r})},tu=u("button")({name:"ButtonContainer",class:"b1b6dl8t",propsAsIs:!1}),nu=u("div")({name:"ButtonPctWrap",class:"b4iik8i",propsAsIs:!1}),ru=u("div")({name:"ButtonPct",class:"b1gq1lnf",propsAsIs:!1}),iu=u("span")({name:"ButtonBody",class:"b1j65z51",propsAsIs:!1}),lu=u("div")({name:"IconContainer",class:"i19tpfua",propsAsIs:!1}),su=u("div")({name:"IconWrap",class:"i1tubmma",propsAsIs:!1}),Ro=u("img")({name:"Icon",class:"i1grrgwj",propsAsIs:!1}),au=()=>Ro,ou=u(au())({name:"IconDefault",class:"ibemyq8",propsAsIs:!0}),cu=()=>Ro,uu=u(cu())({name:"IconCircle",class:"i1dceht",propsAsIs:!0}),du=u("span")({name:"Title",class:"t116q4vq",propsAsIs:!1}),pu=u("span")({name:"Indicators",class:"i17ajcu2",propsAsIs:!1}),fu=u("div")({name:"PtsWrap",class:"pu9kmlb",propsAsIs:!1}),hu=u("span")({name:"Pts",class:"p1j2j0s0",propsAsIs:!1}),mu=u("span")({name:"Percentage",class:"p1mzj1sj",propsAsIs:!1}),Cu=()=>O,vu=u(Cu())({name:"CheckIcon",class:"cichgz8",propsAsIs:!0}),Ms={[k.QuestionImages.CENTERED]:e=>a.jsx(ou,{"data-testid":"vote-icon",alt:"option-icon",src:e}),[k.QuestionImages.TRANSPARENT]:e=>a.jsx(lu,{"data-testid":"vote-icon",children:a.jsx(su,{style:{backgroundImage:`url(${e})`}})}),[k.QuestionImages.ROUNDED]:e=>a.jsx(uu,{"data-testid":"vote-icon",alt:"option-icon",src:e}),[k.QuestionImages.NONE]:()=>null,[k.QuestionImages.UNSET]:()=>null},gu=({questionType:e,hasCorrectAnswer:t,correct:n,youVoted:r,questionVoted:i})=>{if(e===k.QuestionType.POLL&&r)return"voted";if(e===k.QuestionType.PREDICTION){if(!t&&i)return r?"voted":"unset";if(t&&i)return r?n?"correct":"incorrect":"unset";if(r)return"correct"}return e===k.QuestionType.TRIVIA&&i&&r?n?"correct":"incorrect":"unset"},yu=({questionType:e,questionVoted:t,correct:n,hasCorrectAnswer:r,questionStatus:i})=>e===k.QuestionType.TRIVIA?t&&n:e===k.QuestionType.PREDICTION?t&&n&&r||i===k.QuestionStatus.RESOLVED&&n:!1,wu=e=>{var t;const{id:n,icon:r,text:i,percentageDecimal:l,points:s,onVote:o,markThatVoted:c,onPercentsAnimated:d,youSelected:v,youVoted:C,questionVoted:f,imageMode:y,answerTimeExpired:b,questionStatus:x,isLoading:E,questionType:h,correct:p,hasCorrectAnswer:g,marketClosed:L,isEarlyPrediction:S}=e,[I,j]=w.useState(0),A=gu(e),_=yu({questionType:h,questionVoted:f,correct:p,hasCorrectAnswer:g,questionStatus:x}),V=L&&h===k.QuestionType.PREDICTION,J=f||V,Ne=h===k.QuestionType.PREDICTION&&!f&&!L,Be=f&&!v&&A!=="incorrect"&&!C;return w.useLayoutEffect(()=>{j(0),requestAnimationFrame(()=>{j(l)})},[l]),a.jsxs(tu,{value:n,"data-selected":v,"data-answer-state":A,disabled:f||E||b||V,"data-is-not-checked":Be,onClick:ct=>{c(h===k.QuestionType.PREDICTION?L:x===k.QuestionStatus.RESOLVED),o(ct)},children:[a.jsx(nu,{children:a.jsx(ru,{"data-answer-state":A,"data-is-not-checked":Be,style:{width:`${J?I:0}%`},onTransitionEnd:()=>{V||d==null||d()}})}),a.jsxs(iu,{children:[r&&y&&((t=Ms[y])==null?void 0:t.call(Ms,r)),a.jsx(du,{children:i}),Ne&&a.jsxs(fu,{children:[s,a.jsx(hu,{children:"pts"})]}),J&&a.jsxs(pu,{children:[_&&a.jsx(vu,{name:S?"selectedBetPack":"selected"}),a.jsx(mu,{children:a.jsx(fr,{value:l,suffix:"%"})})]})]})]})},bu=()=>ko,xu=u(bu())({name:"ShowInContainer",class:"sie6cqo",propsAsIs:!0}),Lu=u("div")({name:"WinBarContainer",class:"wgizw4u",propsAsIs:!1}),Eu=u("div")({name:"Content",class:"c1l3ucjp",propsAsIs:!1}),ku=u("div")({name:"Title",class:"tx7j799",propsAsIs:!1}),Su=()=>O,Iu=u(Su())({name:"WinIcon",class:"w4lwuj0",propsAsIs:!0}),Tu=u("div")({name:"Points",class:"po9i64o",propsAsIs:!1}),ju=u("span")({name:"PointsCount",class:"pe5g05h",propsAsIs:!1}),Au=u("span")({name:"PointsUnits",class:"p1hdtpmb",propsAsIs:!1}),$u=({title:e,points:t,isPlayingTimer:n,isTimer:r,animatePoints:i,questionType:l,timerDuration:s,votedInCurrentRender:o,percentsAnimated:c,onTimerExpired:d})=>a.jsx(xu,{enabled:l===k.QuestionType.PREDICTION&&o,animate:c,children:a.jsxs(Lu,{style:{justifyContent:l===k.QuestionType.PREDICTION?"center":"space-between"},children:[a.jsxs(Eu,{children:[e&&a.jsx(ku,{children:e}),t!==void 0&&l!==k.QuestionType.POLL&&a.jsxs(a.Fragment,{children:[a.jsx(Iu,{name:"icon-trophy"}),a.jsxs(Tu,{children:[a.jsx(ju,{children:i?a.jsx(fr,{value:t,delay:.3}):t}),a.jsx(Au,{children:"PTS"})]})]})]}),r&&l!==k.QuestionType.PREDICTION&&a.jsx(l7,{isPlaying:n,onTimerExpired:d,duration:s})]})}),Ru=(e,t)=>{switch(e){case"already_voted":return t===k.QuestionType.POLL?"You’ve already answered this question on another device.":"You’ve already answered this question on another device. So the points for this answer won't tally.";default:return"Something went wrong, please try again"}},Vo=()=>a.jsx(Io,{children:a.jsxs(To,{children:[a.jsx(Te,{loading:!0,style:{height:"40px",borderRadius:"100px"}}),a.jsx(Te,{loading:!0,style:{height:"24px",margin:"16px 0"}}),a.jsx(jo,{children:Array.from({length:5}).map((e,t)=>a.jsx(Te,{loading:!0,style:{height:"44px"}},t))})]})}),_o=({openedQuestion:e,isLoading:t,vote:n,close:r,isEarlyPrediction:i})=>{var l,s;const o=e.subject,c=e.type,d=e.status,v=(l=e.options)==null?void 0:l.options,C=e.marketClosed,f=e.id,y=w.useRef(),[b,x]=w.useState(!1),[E,h]=w.useState(!1),[p,g]=w.useState(!0),[L,S]=w.useState(!1),[I,j]=w.useState(!1),[A,_]=w.useState(""),[V,J]=w.useState(""),[Ne,Be]=w.useState(!1),[ct,mr]=w.useState(!1),{runAnimation:v1,finished:ut}=ti();w.useEffect(()=>{ut&&r()},[r,ut]),w.useEffect(()=>{c===k.QuestionType.PREDICTION?C&&g(!1):d===k.QuestionStatus.RESOLVED&&g(!1)},[]);const $=w.useCallback(ce=>{h(ce),x(!0)},[]),N=w.useRef(!1),M=w.useCallback(async ce=>{if(!N.current&&(N.current=!0,f)){const B1=ce.currentTarget.value;_(B1);try{await n(f,B1)}catch(D2){J(Ru(D2.message,c)),_(""),console.error("Error while voting",D2),N.current=!1}}},[c,f,_,n]),q=w.useCallback(()=>{S(!0),v1({delay:3500})},[v1]),te=w.useCallback(()=>{j(!0),v1({delay:3500})},[v1]),P=e==null?void 0:e.answers.find(ce=>ce.youVoted===!0),Y=w.useMemo(()=>!!(e!=null&&e.answers.find(ce=>ce.correct===!0)),[e]),le=w.useMemo(()=>e==null?void 0:e.answers.find(ce=>ce.correct===!0),[e]);w.useEffect(()=>{P&&b&&!ct&&(y.current=setTimeout(te,1e4),mr(!0))},[P]),w.useEffect(()=>()=>{clearTimeout(y.current)},[]);const Ue=w.useMemo(()=>e?e.answers.map(ce=>{var B1;return{...ce,questionVoted:!!P,youSelected:A===ce.id,isLoading:t,hasCorrectAnswer:Y,questionType:e.type,answerTimeExpired:L,questionStatus:d,imageMode:(B1=e.appearance)==null?void 0:B1.images,onVote:M}}):[],[Y,L,t,e,P,d,M,A]);w.useEffect(()=>{const ce=Ue.some(({percentageDecimal:D2})=>D2!==0),B1=P&&c===k.QuestionType.PREDICTION;V&&(i||!ce||C&&B1)&&Be(!0)},[Ue,V,i,C,c,P]);const F1=v&&(v.case==="trivia"||v.case==="prediction")?v.value:void 0,z1=d===k.QuestionStatus.RESOLVED&&c===k.QuestionType.TRIVIA&&!P&&!p,Cr=c===k.QuestionType.TRIVIA&&E,vr=w.useMemo(()=>c===k.QuestionType.PREDICTION?i?!1:!!(P&&!Y||P&&Y&&le!=null&&le.youVoted):!0,[c,P,Y,le,i]),u4=w.useMemo(()=>{if(c===k.QuestionType.PREDICTION&&P&&(!Y||Y&&le!=null&&le.youVoted))return P.points;if(!(z1||L))return P?P.correct?P.pointsEarned:0:le==null?void 0:le.points},[L,P,le,z1,c,Y]),d4=w.useMemo(()=>c===k.QuestionType.PREDICTION&&P?Y?Y&&le!=null&&le.youVoted?"You won":"":"To win":z1||L?"Time expired":c===k.QuestionType.POLL?"Time remaining":P?"You won":"To win",[L,c,P,z1,Y,le]),p4=!vr||vr&&c===k.QuestionType.PREDICTION&&b&&!Ne,f4=(c===k.QuestionType.TRIVIA||c===k.QuestionType.PREDICTION)&&P&&Y&&(le==null?void 0:le.youVoted),h4=P||z1||Cr||c===k.QuestionType.TRIVIA&&d===k.QuestionStatus.RESOLVED&&p;return a.jsxs(xc,{children:[i&&a.jsx(Lc,{}),a.jsx(Io,{style:i?{marginTop:"-40px"}:{},children:a.jsxs(To,{id:"questionContent",children:[!i&&a.jsx(Vs,{feedbackMessages:F1,questionVoted:!!P,questionVotedCorrectly:P==null?void 0:P.correct,questionType:c,hasCorrectAnswer:Y,showExpiredNotification:z1,showClosedNotificationTrivia:Cr,votedInCurrentRender:b,votedAfterQuestionClosed:E,enteredAnActiveQuestion:p,marketClosed:C,percentsAnimated:Ne,voteErrorMessage:V,votedAnswer:P}),vr&&a.jsx($u,{title:d4,points:u4,onTimerExpired:q,questionType:e.type,isTimer:!t,isPlayingTimer:!P,animatePoints:f4,timerDuration:h4?0:Number(((s=e==null?void 0:e.appearance)==null?void 0:s.autoHideInterval)||"30"),votedInCurrentRender:b,percentsAnimated:Ne}),!i&&(L||I)?a.jsx(jc,{children:a.jsx(ac,{icon:"icon-check-circle",title:"More to come...",description:I?a.jsxs(a.Fragment,{children:["Stay tuned for more questions ",a.jsx("br",{})," and insights."]}):a.jsxs(a.Fragment,{children:["Watch for additional enhanced stream ",a.jsx("br",{})," interactive experience."]})})}):a.jsxs(a.Fragment,{children:[i&&a.jsxs(Ac,{children:[a.jsx(Rc,{name:"iconEarlyPrediction"}),"EARLY PREDICTION"]}),a.jsx(Sc,{style:p4?{marginTop:0}:{},children:o}),i&&a.jsx(Vs,{feedbackMessages:F1,questionVoted:!!P,questionVotedCorrectly:P==null?void 0:P.correct,questionType:c,hasCorrectAnswer:Y,showExpiredNotification:z1,showClosedNotificationTrivia:Cr,votedInCurrentRender:b,votedAfterQuestionClosed:E,enteredAnActiveQuestion:p,marketClosed:C,percentsAnimated:Ne,voteErrorMessage:V,isEarlyPrediction:i,correctAnswer:le,votedAnswer:P}),a.jsxs(Ic,{children:[a.jsx(jo,{children:Ue.map(ce=>a.jsx(wu,{...ce,markThatVoted:$,onPercentsAnimated:()=>Be(!0),votedAfterQuestionClosed:E,enteredAnActiveQuestion:p,marketClosed:C,isEarlyPrediction:i},ce.id))}),i&&a.jsxs(a.Fragment,{children:[a.jsx(Ec,{}),a.jsx(kc,{children:a.jsx(_c,{name:"mastersLogoWhite"})})]})]})]})]})})]})},Vu=u("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),_u=u("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),Nu=u("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),Mu=u("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),Ou="t1xke4ml",Pu="h1yzxv57",Hu=e=>{for(const t of e)t.isIntersecting?t.target instanceof HTMLVideoElement&&t.target.autoplay&&t.target.play():t.target instanceof HTMLVideoElement&&!t.target.paused&&t.target.pause()},No=new IntersectionObserver(Hu,{threshold:.5}),Xi=new Set,Du=e=>{No.observe(e),Xi.add(e)},Fu=e=>{No.unobserve(e),Xi.delete(e)},Mo=()=>{for(const e of Xi)e instanceof HTMLVideoElement&&!e.paused&&e.pause()},hr=({poster:e,source:t,aspectRatio:n,controlVideo:r,onPlay:i,onPause:l,autoPlay:s,hideControls:o})=>{const c=w.useRef(null),[d,v]=w.useState(!1),[C,f]=w.useState(!0),y=w.useCallback(()=>{r==null||r({muted:!0})},[r]),b=w.useCallback(()=>{r==null||r({muted:!1})},[r]),x=h=>{h.stopPropagation();const p=c==null?void 0:c.current;if(p){if(d)p.pause();else{const g=c==null?void 0:c.current;if(!g)return;Mo(),g.play().catch(L=>console.log(L)),f(!1)}_2.emit("interactions",{action:"tap",payload:{}})}},E=()=>{var h;(h=c==null?void 0:c.current)==null||h.load(),f(!0)};return w.useEffect(()=>{const h=c==null?void 0:c.current;return()=>{h&&(h.paused||b())}},[b]),w.useEffect(()=>{const h=c.current;return h?(Du(h),()=>Fu(h)):()=>{}},[]),a.jsxs(Vu,{onClick:o?void 0:x,className:$e(d&&Ou,o&&Pu),style:n?{aspectRatio:n}:{},children:[a.jsx(_u,{ref:c,src:t,autoPlay:s,onPlay:()=>{y(),v(!0),f(!1),i==null||i()},onPause:()=>{b(),v(!1),l==null||l()},onEnded:()=>{b(),v(!1),E()},style:{visibility:C?"hidden":"visible"},controls:!1,playsInline:!0}),a.jsx(Nu,{src:e,style:{visibility:C?"visible":"hidden"}}),!o&&a.jsx(Mu,{children:d?a.jsx(O,{name:"icon-pause"}):a.jsx(O,{name:"icon-play"})})]})},zu=u("div")({name:"Container",class:"cgn5uen",propsAsIs:!1}),Bu=u("div")({name:"Content",class:"c1px8nt6",propsAsIs:!1}),Uu=u("h3")({name:"Title",class:"t5et2jt",propsAsIs:!1}),Zu=u("div")({name:"Description",class:"d1i2kpk2",propsAsIs:!1}),qu=u("img")({name:"Image",class:"id3lh3p",propsAsIs:!1}),Qu=u("div")({name:"ImageContainer",class:"i1gfjeu5",propsAsIs:!1}),Oo=({instantView:e,isDetail:t,notification:n,controlVideo:r})=>{const i=e==null?void 0:e.heading,l=e==null?void 0:e.body,s=i||l,o=n==null?void 0:n.title,c=n==null?void 0:n.body;return a.jsxs(zu,{children:[(e==null?void 0:e.video)&&a.jsx(hr,{source:e.video.url,poster:e.video.thumbnailUrl,controlVideo:r,autoPlay:e.autoPlayVideo===k.AutoPlayVideo.ENABLED}),(e==null?void 0:e.image)&&!(e!=null&&e.video)&&a.jsx(Qu,{"data-rounded":e.imageMode===k.QuestionImages.ROUNDED,children:a.jsx(qu,{src:e==null?void 0:e.image})}),a.jsxs(Bu,{children:[a.jsx(Uu,{children:t&&s?i:o}),a.jsx(Zu,{children:t&&s?l:c})]})]})},Wu=u("div")({name:"Container",class:"c1euiow",propsAsIs:!1}),Gu=u("a")({name:"WebLinkBtn",class:"w19zie3h",propsAsIs:!1}),Ku=()=>O,Yu=u(Ku())({name:"WebLinkIcon",class:"wyg5v7z",propsAsIs:!0}),Po=({instantView:e,...t})=>a.jsxs(Wu,{children:[a.jsx(Oo,{instantView:e,...t,isDetail:!0}),(e==null?void 0:e.webLink)&&a.jsxs(Gu,{href:e==null?void 0:e.webLink.url,target:"_blank","data-analytics":"web-link",children:[e==null?void 0:e.webLink.label,a.jsx(Yu,{name:"icon-external-link"})]})]}),Xu=u("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),Ju=u("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),ed=u("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),td=()=>O,nd=u(td())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),rd=u("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),id=u("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),ld=u("div")({name:"UserNameAndDate",class:"u1p051g3",propsAsIs:!1}),Ho=({image:e,name:t,userName:n,verified:r,createdTweet:i})=>{const l=i&&y7(i);return a.jsxs(Xu,{children:[e&&a.jsxs(Ju,{children:[a.jsx(ed,{className:"SL_AccountImage",src:e}),a.jsx(nd,{name:"twitter"})]}),a.jsxs(rd,{children:[t&&a.jsxs(id,{className:"SL_TweetAccountName",children:[t," ",r&&a.jsx(O,{name:"icon-twitter-verified"})]}),n&&a.jsxs(ld,{className:"SL_TweetAccountUserName",children:["@",n," ",l&&`・ ${l}`]})]})]})},sd=u("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),ad=u("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),od=u("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),Xt=u("div")({name:"ImagesContainer",class:"i1y8f7ym",propsAsIs:!1}),Wr=u("div")({name:"ImagesBlock",class:"i18gwonx",propsAsIs:!1}),Do=u("img")({name:"Image",class:"i3g0xjd",propsAsIs:!1}),cd=()=>Do,w1=u(cd())({name:"ImageFullSize",class:"io8rt7p",propsAsIs:!0}),ud=()=>Do,Gr=u(ud())({name:"ImageHalfSize",class:"i4hn3ox",propsAsIs:!0}),dd=new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"),Fo=e=>e==null?void 0:e.replace(dd,""),Ji=({image:e,body:t,account:n,accountVerified:r,tweet:i,isDetail:l,controlVideo:s})=>{var o,c,d,v,C,f,y,b,x;const E=(c=(o=i==null?void 0:i.meta)==null?void 0:o.extendedEntities)==null?void 0:c.media,h=E==null?void 0:E.find(({type:g})=>g==="photo"),p=(f=(C=(v=(d=E==null?void 0:E[0])==null?void 0:d.videoInfo)==null?void 0:v.variants)==null?void 0:C.find(({contentType:g})=>g==="video/mp4"))==null?void 0:f.url;return a.jsxs(sd,{children:[a.jsxs(ad,{children:[a.jsx(Ho,{image:e,name:(y=i==null?void 0:i.meta)==null?void 0:y.accountName,userName:n,verified:r,createdTweet:i==null?void 0:i.date}),a.jsx(od,{children:Fo(t)}),!l&&h&&a.jsx(Xt,{children:a.jsx(w1,{src:E==null?void 0:E[0].mediaUrlHttps})}),l&&h&&a.jsxs(a.Fragment,{children:[(E==null?void 0:E.length)===1&&a.jsx(Xt,{children:a.jsx(w1,{src:E[0].mediaUrlHttps})}),(E==null?void 0:E.length)===2&&a.jsxs(Xt,{children:[a.jsx(Gr,{src:E[0].mediaUrlHttps}),a.jsx(Gr,{src:E[1].mediaUrlHttps})]}),(E==null?void 0:E.length)===3&&a.jsxs(Xt,{children:[a.jsx(Gr,{src:E[0].mediaUrlHttps}),a.jsxs(Wr,{children:[a.jsx(w1,{src:E[1].mediaUrlHttps}),a.jsx(w1,{src:E[2].mediaUrlHttps})]})]}),(E==null?void 0:E.length)===4&&a.jsxs(Xt,{children:[a.jsxs(Wr,{children:[a.jsx(w1,{src:E[0].mediaUrlHttps}),a.jsx(w1,{src:E[1].mediaUrlHttps})]}),a.jsxs(Wr,{children:[a.jsx(w1,{src:E[2].mediaUrlHttps}),a.jsx(w1,{src:E[3].mediaUrlHttps})]})]})]})]}),!h&&(((b=E==null?void 0:E[0])==null?void 0:b.type)==="video"||((x=E==null?void 0:E[0])==null?void 0:x.type)==="animated_gif")&&p&&a.jsx(hr,{source:p,poster:E[0].mediaUrlHttps,controlVideo:s})]})},pd=u("div")({name:"Container",class:"c1dcxmvf",propsAsIs:!1}),fd=u("blockquote")({name:"Quote",class:"qb4q22c",propsAsIs:!1}),zo=e=>a.jsxs(pd,{children:[e.title&&a.jsx(fd,{children:e.title}),a.jsx(Ji,{...e,isDetail:!0})]}),hd=u("div")({name:"QuestionContainer",class:"q14ckf9e",propsAsIs:!1}),md=({openedQuestion:e})=>{var t,n;const{sdk:r}=Yn();return((t=e==null?void 0:e.attributes)==null?void 0:t.attributes.case)==="insight"?a.jsx(Po,{...e.attributes.attributes.value,controlVideo:r==null?void 0:r.controlVideoPlayer}):((n=e==null?void 0:e.attributes)==null?void 0:n.attributes.case)==="tweet"?a.jsx(zo,{...e.attributes.attributes.value,controlVideo:r==null?void 0:r.controlVideoPlayer}):null},Cd=({extendedQuestion:e,vote:t,close:n})=>{const{loading:r,data:i}=e;return i?a.jsx(_o,{vote:t,close:n,openedQuestion:i,isLoading:!!r}):a.jsx(Vo,{})},Bo=({gamification:e,skipAutoClose:t,hideSponsor:n,className:r,hideHeader:i})=>{var l,s,o,c,d;const v=D(e.openedQuestion.$store),C=D(e.openedQuestion.$extendedStore);if(!v)return null;const f=v.type,y=((s=(l=C.data)==null?void 0:l.options)==null?void 0:s.options.case)==="factoid"?C.data.options.options.value.closeTimer:void 0;return a.jsxs(hd,{className:r,children:[!i&&a.jsx(ri,{closeTimer:t?void 0:y,close:e.closeQuestion,type:((o=v.attributes)==null?void 0:o.type)||k.QuestionType.UNSET}),f==="question"&&a.jsx(Cd,{vote:e.submitAnswer,close:e.closeQuestion,extendedQuestion:C}),f!=="question"&&a.jsx(md,{openedQuestion:v}),!n&&a.jsx(So,{sponsorLogo:(d=(c=C.data)==null?void 0:c.sponsorship)==null?void 0:d.logo})]})},vd=u("div")({name:"Container",class:"c115qtkr",propsAsIs:!1}),gd=u("div")({name:"STabs",class:"sxnslc8",propsAsIs:!1}),yd=u("button")({name:"Button",class:"b1umzux0",propsAsIs:!1}),wd=u("span")({name:"Title",class:"tspsaas",propsAsIs:!1});var l2=(e=>(e.HOME="home",e.LEADERBOARD="leaderboard",e))(l2||{});const Os=({title:e,active:t,onClick:n})=>a.jsx(yd,{onClick:n,"data-selected":t,children:a.jsx(wd,{children:e})}),bd=({activePage:e="home",toggleActivePage:t})=>a.jsx(vd,{children:a.jsxs(gd,{"data-position":e==="home"?"left":"right",children:[a.jsx(Os,{title:"Home",active:e==="home",onClick:()=>t("home")}),a.jsx(Os,{title:"Friends",active:e==="leaderboard",onClick:()=>t("leaderboard")})]})}),xd=u("button")({name:"Container",class:"cpjnajb",propsAsIs:!1}),Ld=u("div")({name:"Content",class:"c4m6kaz",propsAsIs:!1}),Ed=u("span")({name:"Title",class:"t1h8t9cc",propsAsIs:!1}),kd=()=>a.jsx(xd,{children:a.jsxs(Ld,{children:[a.jsx(O,{name:"iconCopySuccess"}),a.jsx(Ed,{children:"Link Copied to Clipboard"})]})}),Uo=e=>{const t=w.useRef(),[n,r]=w.useState(null),i=w.useCallback(async l=>{var s;if(l&&(s=navigator==null?void 0:navigator.clipboard)!=null&&s.writeText){t.current&&(clearTimeout(t.current),r(null));try{await navigator.clipboard.writeText(l),e.current&&(r(V2.createPortal(a.jsx(kd,{}),e.current)),t.current=setTimeout(()=>{r(null)},1e3))}catch(o){console.error("Unable to copy to clipboard",o)}}},[e]);return w.useEffect(()=>()=>{clearTimeout(t.current)},[]),[i,n]},Sd=u("div")({name:"Container",class:"c1ux29ft",propsAsIs:!1}),Id=()=>O,Td=u(Id())({name:"FriendsIcon",class:"f10ncfg2",propsAsIs:!0}),jd=u("div")({name:"Content",class:"c1yc07bd",propsAsIs:!1}),Ad=u("div")({name:"Title",class:"tj6cq7w",propsAsIs:!1}),$d=u("div")({name:"Description",class:"d1ag78xo",propsAsIs:!1}),Rd=()=>O,Vd=u(Rd())({name:"ArrowInviteIcon",class:"awohrz6",propsAsIs:!0}),_d=({title:e,description:t,onClick:n,className:r})=>{const[i]=fa({type:"invitation",action:"sent",payload:{from:k.InvitationFrom.TITLE_CARD}});return a.jsxs(Sd,{onClick:i(n),className:r,children:[a.jsx(Td,{name:"icon-friends"}),a.jsxs(jd,{children:[a.jsx(Ad,{children:e}),a.jsx($d,{children:t})]}),a.jsx(Vd,{name:"icon-copy"})]})};let De;typeof window<"u"?De=window:typeof self<"u"?De=self:De=k.global;let Z0=null,q0=null;const Ps=20,Kr=De.clearTimeout,Hs=De.setTimeout,Yr=De.cancelAnimationFrame||De.mozCancelAnimationFrame||De.webkitCancelAnimationFrame,Ds=De.requestAnimationFrame||De.mozRequestAnimationFrame||De.webkitRequestAnimationFrame;Yr==null||Ds==null?(Z0=Kr,q0=function(t){return Hs(t,Ps)}):(Z0=function([t,n]){Yr(t),Kr(n)},q0=function(t){const n=Ds(function(){Kr(r),t()}),r=Hs(function(){Yr(n),t()},Ps);return[n,r]});function Nd(e){let t,n,r,i,l,s,o;const c=typeof document<"u"&&document.attachEvent;if(!c){s=function(h){const p=h.__resizeTriggers__,g=p.firstElementChild,L=p.lastElementChild,S=g.firstElementChild;L.scrollLeft=L.scrollWidth,L.scrollTop=L.scrollHeight,S.style.width=g.offsetWidth+1+"px",S.style.height=g.offsetHeight+1+"px",g.scrollLeft=g.scrollWidth,g.scrollTop=g.scrollHeight},l=function(h){return h.offsetWidth!==h.__resizeLast__.width||h.offsetHeight!==h.__resizeLast__.height},o=function(h){if(h.target.className&&typeof h.target.className.indexOf=="function"&&h.target.className.indexOf("contract-trigger")<0&&h.target.className.indexOf("expand-trigger")<0)return;const p=this;s(this),this.__resizeRAF__&&Z0(this.__resizeRAF__),this.__resizeRAF__=q0(function(){l(p)&&(p.__resizeLast__.width=p.offsetWidth,p.__resizeLast__.height=p.offsetHeight,p.__resizeListeners__.forEach(function(S){S.call(p,h)}))})};let f=!1,y="";r="animationstart";const b="Webkit Moz O ms".split(" ");let x="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),E="";{const h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(f=!0),f===!1){for(let p=0;p<b.length;p++)if(h.style[b[p]+"AnimationName"]!==void 0){E=b[p],y="-"+E.toLowerCase()+"-",r=x[p],f=!0;break}}}n="resizeanim",t="@"+y+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=y+"animation: 1ms "+n+"; "}const d=function(f){if(!f.getElementById("detectElementResize")){const y=(t||"")+".resize-triggers { "+(i||"")+'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%; }',b=f.head||f.getElementsByTagName("head")[0],x=f.createElement("style");x.id="detectElementResize",x.type="text/css",e!=null&&x.setAttribute("nonce",e),x.styleSheet?x.styleSheet.cssText=y:x.appendChild(f.createTextNode(y)),b.appendChild(x)}};return{addResizeListener:function(f,y){if(c)f.attachEvent("onresize",y);else{if(!f.__resizeTriggers__){const b=f.ownerDocument,x=De.getComputedStyle(f);x&&x.position==="static"&&(f.style.position="relative"),d(b),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=b.createElement("div")).className="resize-triggers";const E=b.createElement("div");E.className="expand-trigger",E.appendChild(b.createElement("div"));const h=b.createElement("div");h.className="contract-trigger",f.__resizeTriggers__.appendChild(E),f.__resizeTriggers__.appendChild(h),f.appendChild(f.__resizeTriggers__),s(f),f.addEventListener("scroll",o,!0),r&&(f.__resizeTriggers__.__animationListener__=function(g){g.animationName===n&&s(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(y)}},removeResizeListener:function(f,y){if(c)f.detachEvent("onresize",y);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(y),1),!f.__resizeListeners__.length){f.removeEventListener("scroll",o,!0),f.__resizeTriggers__.__animationListener__&&(f.__resizeTriggers__.removeEventListener(r,f.__resizeTriggers__.__animationListener__),f.__resizeTriggers__.__animationListener__=null);try{f.__resizeTriggers__=!f.removeChild(f.__resizeTriggers__)}catch{}}}}}class Md extends w.Component{constructor(...t){super(...t),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:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const l=window.getComputedStyle(this._parentNode)||{},s=parseFloat(l.paddingLeft||"0"),o=parseFloat(l.paddingRight||"0"),c=parseFloat(l.paddingTop||"0"),d=parseFloat(l.paddingBottom||"0"),v=this._parentNode.getBoundingClientRect(),C=v.height-c-d,f=v.width-s-o,y=this._parentNode.offsetHeight-c-d,b=this._parentNode.offsetWidth-s-o;(!n&&(this.state.height!==y||this.state.scaledHeight!==C)||!r&&(this.state.width!==b||this.state.scaledWidth!==f))&&(this.setState({height:y,width:b,scaledHeight:C,scaledWidth:f}),typeof i=="function"&&i({height:y,scaledHeight:C,scaledWidth:f,width:b}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=Nd(t),this._detectElementResize.addResizeListener(n,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.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:l=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:o,onResize:c,style:d={},tagName:v="div",...C}=this.props,{height:f,scaledHeight:y,scaledWidth:b,width:x}=this.state,E={overflow:"visible"},h={};let p=!1;return i||(f===0&&(p=!0),E.height=0,h.height=f,h.scaledHeight=y),l||(x===0&&(p=!0),E.width=0,h.width=x,h.scaledWidth=b),s&&(p=!1),w.createElement(v,{ref:this._setRef,style:{...E,...d},...C},!p&&t(h))}}function Od(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function Pd(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,l=e.stopIndex,s=[],o=null,c=null,d=i;d<=l;d++){var v=t(d);v?c!==null&&(s.push(o,c),o=c=null):(c=d,o===null&&(o=d))}if(c!==null){for(var C=Math.min(Math.max(c,o+r-1),n-1),f=c+1;f<=C&&!t(f);f++)c=f;s.push(o,c)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var y=s[0]-1;if(!t(y))s[0]=y;else break}return s}var Hd=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Dd=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Fd=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Fs=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e};(function(e){Fd(t,e);function t(){var n,r,i,l;Hd(this,t);for(var s=arguments.length,o=Array(s),c=0;c<s;c++)o[c]=arguments[c];return l=(r=(i=Fs(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(o))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var v=d.visibleStartIndex,C=d.visibleStopIndex;i._lastRenderedStartIndex=v,i._lastRenderedStopIndex=C,i._ensureRowsLoaded(v,C)},i._setRef=function(d){i._listRef=d},r),Fs(i,l)}return Dd(t,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var l=this.props,s=l.isItemLoaded,o=l.itemCount,c=l.minimumBatchSize,d=c===void 0?10:c,v=l.threshold,C=v===void 0?15:v,f=Pd({isItemLoaded:s,itemCount:o,minimumBatchSize:d,startIndex:Math.max(0,r-C),stopIndex:Math.min(o-1,i+C)});(this._memoizedUnloadedRanges.length!==f.length||this._memoizedUnloadedRanges.some(function(y,b){return f[b]!==y}))&&(this._memoizedUnloadedRanges=f,this._loadUnloadedRanges(f))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,l=this.props.loadMoreItems||this.props.loadMoreRows,s=function(d){var v=r[d],C=r[d+1],f=l(v,C);f!=null&&f.then(function(){if(Od({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:v,stopIndex:C})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(v,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},o=0;o<r.length;o+=2)s(o)}}]),t})(w.PureComponent);const zd=u("div")({name:"Container",class:"culdu4a",propsAsIs:!1}),Bd=u("div")({name:"Position",class:"pwf8e69",propsAsIs:!1}),Ud=u("img")({name:"Avatar",class:"atf4yh4",propsAsIs:!1}),Zd=u("div")({name:"AvatarPlaceholder",class:"a1dg29ja",propsAsIs:!1}),qd=u("div")({name:"Content",class:"c10a68rc",propsAsIs:!1}),Qd=u("div")({name:"NameContainer",class:"nc4kck5",propsAsIs:!1}),Wd=u("span")({name:"Name",class:"njsrqgr",propsAsIs:!1}),Gd=()=>O,Kd=u(Gd())({name:"CurrentUserBadge",class:"c17uc4zr",propsAsIs:!0});var Zo={exports:{}},Yd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Xd=Yd,Jd=Xd;function qo(){}function Qo(){}Qo.resetWarningCache=qo;var ep=function(){function e(r,i,l,s,o,c){if(c!==Jd){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qo,resetWarningCache:qo};return n.PropTypes=n,n};Zo.exports=ep();var tp=Zo.exports;const Se=K0(tp);class Q0 extends w.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const l=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:l.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(t,n){return t?this.calculateTopPosition(t)+(t.offsetHeight-n-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:n,element:r,hasMore:i,initialLoad:l,isReverse:s,loader:o,loadMore:c,pageStart:d,ref:v,threshold:C,useCapture:f,useWindow:y,getScrollParent:b,...x}=t;x.ref=h=>{this.scrollComponent=h,v&&v(h)};const E=[n];return i&&(o?s?E.unshift(o):E.push(o):this.defaultLoader&&(s?E.unshift(this.defaultLoader):E.push(this.defaultLoader))),w.createElement(r,x,E)}}Q(Q0,"propTypes",{children:Se.node.isRequired,element:Se.node,hasMore:Se.bool,initialLoad:Se.bool,isReverse:Se.bool,loader:Se.node,loadMore:Se.func.isRequired,pageStart:Se.number,ref:Se.func,getScrollParent:Se.func,threshold:Se.number,useCapture:Se.bool,useWindow:Se.bool}),Q(Q0,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const np=({friendsRank:e,avatar:t,name:n,userId:r,points:i,isCurrentUser:l,style:s})=>a.jsxs(zd,{"data-name":r,style:s,children:[a.jsx(Bd,{children:e||0}),a.jsxs(qd,{children:[t?a.jsx(Ud,{alt:"leaderboard-item-avatar",src:t}):a.jsx(Zd,{children:ii(n||"")}),a.jsxs(Qd,{children:[a.jsx(Wd,{children:n||""}),l&&a.jsx(Kd,{name:"icon-star"})]})]}),a.jsx("div",{children:wa(i)})]}),rp=u("div")({name:"Container",class:"c16btbfp",propsAsIs:!1}),ip=({items:e,currentUserId:t,openItemDetail:n,fetchMore:r,scrollNode:i,hasMore:l})=>{const s=w.useCallback(o=>{const c=o.target.getAttribute("data-name");c&&n(c)},[n]);return a.jsx(Q0,{loadMore:r,initialLoad:!1,hasMore:l,useWindow:!1,getScrollParent:()=>i.current,children:a.jsx(rp,{onClick:s,children:e.map(o=>a.jsx(np,{...o,isCurrentUser:!!t&&t===o.userId},o.userId))})})},lp=u("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),sp=u("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),ap=()=>O,op=u(ap())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),cp=u("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),up=u("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),dp=u("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),pp=u("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),fp=u("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),hp=u("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),mp=u("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),Cp=()=>O,vp=u(Cp())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),Wo=({inviteLink:e,inviteCardTitle:t,inviteCardSubtext:n,primaryColor:r,className:i})=>{const l=w.useRef(null),[s,o]=Uo(l),[c]=fa({type:"invitation",action:"sent",payload:{from:k.InvitationFrom.MENU}});return a.jsxs(lp,{className:i,children:[a.jsx(sp,{style:{backgroundColor:r},children:a.jsx(op,{name:"invite-game-icon"})}),a.jsxs(cp,{children:[a.jsx(up,{children:t||""}),a.jsx(dp,{children:n||""})]}),e&&a.jsxs(pp,{ref:l,onClick:c(()=>s(e)),children:[a.jsxs(fp,{children:[a.jsx(hp,{children:"Invite link"}),a.jsx(mp,{children:e})]}),a.jsx(vp,{name:"icon-copy"})]}),o]})},gp=u("div")({name:"InviteFriendsContainer",class:"i1c9dygq",propsAsIs:!1}),yp=({deepLink:e})=>a.jsx(gp,{children:a.jsx(Wo,{inviteLink:e,inviteCardTitle:"It’s More Fun With Friends",inviteCardSubtext:"Invite and compete against your friends for the top spot on the leaderboard."})}),wp=u("div")({name:"InviteLinkContainer",class:"i1odbhm4",propsAsIs:!1}),bp=({gamification:e,scrollNode:t,scrollStore:n})=>{const r=w.useRef(null),{data:i,hasMore:l,loading:s,key:o}=D(e.leaderboardList.$store),{data:c}=D(e.deepLink.$store),[d,v]=Uo(r);return!i.length&&!s?a.jsx(yp,{deepLink:c}):a.jsxs(a.Fragment,{children:[a.jsx(ip,{items:i,scrollNode:t,scrollStore:n,fetchMore:e.leaderboardList.fetchMore,hasMore:l,openItemDetail:e.openUser,currentUserId:e.currentUserId.get()},o),c&&a.jsx(wp,{ref:r,children:a.jsx(_d,{onClick:()=>d(c),title:"Invite Friends",description:"Challenge them now!"})}),v]})},el=u("div")({name:"QuestionItem",class:"q1w97g3p",propsAsIs:!1}),xp=u("div")({name:"QuestionCaption",class:"q2sl39u",propsAsIs:!1}),Lp=u("div")({name:"QuestionBody",class:"qd5h0uc",propsAsIs:!1}),Ep=u("div")({name:"QuestionAction",class:"q105uluy",propsAsIs:!1}),kp=()=>O,wn=u(kp())({name:"QuestionActionIcon",class:"q1fa0b9h",propsAsIs:!0}),Sp=()=>wn,Ip=u(Sp())({name:"QuestionCheckIcon",class:"qxlt78s",propsAsIs:!0}),Tp=()=>O,jp=u(Tp())({name:"QuestionTypeIcon",class:"qmg0vkx",propsAsIs:!0}),Ap=u("div")({name:"QuestionTypeLabel",class:"q1uz5j1g",propsAsIs:!1}),$p=u("div")({name:"QuestionContent",class:"qc3icwa",propsAsIs:!1}),Go=u("button")({name:"PlayButton",class:"p169lohr",propsAsIs:!1}),Rp=u("div")({name:"SkeletonContainer",class:"s1f43z3r",propsAsIs:!1}),Vp=()=>ya,_p=u(Vp())({name:"SkeletonButton",class:"s16k8geu",propsAsIs:!0}),Np={[k.PickHistoryStatus.LOST]:a.jsx(wn,{name:"incorrectVoted"}),[k.PickHistoryStatus.WON]:a.jsx(Ip,{name:"icon-check"}),[k.PickHistoryStatus.UNSET]:a.jsx(wn,{name:"icon-arrow"}),[k.PickHistoryStatus.DNP]:a.jsx(wn,{name:"icon-arrow"})},Mp=()=>a.jsxs(Rp,{children:[a.jsx(Te,{loading:!0,style:{width:"35%"}}),a.jsx(Te,{loading:!0,style:{width:"70%"}}),a.jsx(_p,{})]}),Ko=({questionTypeData:e,questionType:t,questionStatus:n})=>a.jsxs(xp,{className:"SL_QuestionCaption",children:[a.jsx(jp,{className:"SL_QuestionTypeIcon","data-testid":"question-type-icon","data-type-trivia":t===k.QuestionType.TRIVIA,"data-type-poll":t===k.QuestionType.POLL,name:e.iconName}),a.jsxs(Ap,{className:"SL_QuestionTypeLabel",children:[e.label,t===k.QuestionType.TRIVIA&&n===k.QuestionStatus.RESOLVED&&" • Expired"]})]}),Op=({questionId:e,questionType:t,questionStatus:n,subject:r,openForVoting:i,status:l})=>{const s=N2[t],o=Np[l];return s?a.jsxs(el,{"data-name":e,children:[a.jsxs($p,{children:[a.jsx(Ko,{questionTypeData:s,questionType:t,questionStatus:n}),a.jsx(Lp,{children:r||""})]}),a.jsx(Ep,{children:i?a.jsx(Go,{children:"Play"}):o})]}):null},Pp=()=>el,Hp=u(Pp())({name:"Container",class:"cll3md7",propsAsIs:!0}),Dp=()=>Go,Fp=u(Dp())({name:"ActionBtn",class:"a10g1iik",propsAsIs:!0}),zp=({questionId:e,...t})=>a.jsxs(Hp,{"data-name":e,children:[a.jsx(Oo,{questionId:e,...t}),a.jsx(Fp,{"data-name":e,children:"View Insight"})]}),Bp=()=>el,Up=u(Bp())({name:"Container",class:"cl56x6b",propsAsIs:!0}),Zp=u("button")({name:"ActionButton",class:"a11pzf92",propsAsIs:!1}),qp=u("blockquote")({name:"Quote",class:"q1hbaleq",propsAsIs:!1}),Qp=({...e})=>a.jsxs(Up,{"data-name":e.tweetId,children:[e.title&&a.jsx(qp,{children:e.title}),a.jsx(Ji,{...e}),a.jsx(Zp,{"data-name":e.tweetId,children:"View Insight"})]}),zs=u("div")({name:"QuestionsContainer",class:"qvghv3l",propsAsIs:!1}),Yo=({questions:e,openQuestion:t,controlVideo:n})=>{const r=i=>{const l=i.target.getAttribute("data-name");l&&(Mo(),t(l,{openedFrom:"list"}))};return e?a.jsx(zs,{onClick:r,children:e==null?void 0:e.map(i=>{var l,s,o;if(i.type==="question"&&((l=i.attributes)==null?void 0:l.attributes.case)==="question"){const c=i.attributes.attributes.value;return a.jsx(Op,{...c},c.questionId)}if(i.type==="insight"&&((s=i.attributes)==null?void 0:s.attributes.case)==="insight"){const c=i.attributes.attributes.value;return a.jsx(zp,{controlVideo:n,...c},c.questionId)}if(i.type==="tweet"&&((o=i.attributes)==null?void 0:o.attributes.case)==="tweet"){const c=i.attributes.attributes.value,d=i.attributes.id;return a.jsx(Qp,{controlVideo:n,...c,tweetId:d},d)}return null})}):a.jsx(zs,{children:Array.from({length:5}).map((i,l)=>a.jsx(Mp,{},l))})},Wp=({store:e,openQuestion:t})=>{const{sdk:n}=Yn(),r=D(e);return a.jsx(Yo,{openQuestion:t,questions:r.data,controlVideo:n==null?void 0:n.controlVideoPlayer})},Gp=({userSummary:e})=>{var t;const[n,r]=w.useState(void 0);return w.useEffect(()=>{const i=e.$store.subscribe(l=>{l&&r(l)});return()=>{i()}},[e]),a.jsx(li,{loading:!(n!=null&&n.summary),...n==null?void 0:n.summary,successRate:(t=n==null?void 0:n.percentage)==null?void 0:t.correct})},Kp=({gamification:e,className:t,scrollStore:n,scrollNode:r,appNode:i,style:l,responsiveStore:s})=>{const{tabsShown:o}=D(n,{keys:["tabsShown"]}),c=D(e.friendsTabEnabled),[d,v]=w.useState(l2.HOME),[,C]=r6(),{sdkInDesktopView:f,screen:y}=D(s,{keys:["sdkInDesktopView"]}),b=E=>{C(()=>{var h;v(E),f===!1&&(((h=i.current)==null?void 0:h.getBoundingClientRect().y)||0)<0&&ei(i,y.size,{behavior:"instant"})})};w.useEffect(()=>n.subscribe(E=>{if(E.scrollPosition===0){n.setKey("tabsShown",!0);return}s.get().sdkInDesktopView?n.setKey("tabsShown",E.scrollDirection==="backward"):n.setKey("tabsShown",E.scrollDirection==="forward")}),[n,s]),w.useEffect(()=>{c||v(l2.HOME)},[c]);let x="0px";return f?x=o?"0px":"calc(0px - var(--header-height))":x=o?"var(--header-height)":"0px",a.jsxs(H4,{className:$e(t,"SL-Tabs"),style:l,children:[c&&a.jsx(B4,{style:{top:x},children:a.jsx(bd,{activePage:d,toggleActivePage:b})}),d===l2.HOME&&a.jsxs(a.Fragment,{children:[a.jsx(P4,{children:a.jsx(U4,{children:a.jsx(Gp,{userSummary:e.userSummary})})}),a.jsx(Y0,{style:{flex:1},children:a.jsx(Wp,{openQuestion:e.openQuestion,store:e.feedList.getStore()})})]}),d===l2.LEADERBOARD&&a.jsx(F4,{children:a.jsx(bp,{scrollStore:n,scrollNode:r,gamification:e})})]})},Yp=()=>ot,Bs=u(Yp())({name:"OpenedContainer",class:"ouvguos",propsAsIs:!0}),Us="t1eu4lbg",Xp=u("div")({name:"UserContainer",class:"uuv2xqo",propsAsIs:!1}),Jp=({correct:e,incorrect:t})=>{const n=e+t;return n===0?0:Math.round(e/n*100)},ef=({gamification:e,scrollStore:t,className:n,appNode:r,scrollNode:i,responsiveStore:l})=>a.jsx(Kp,{appNode:r,scrollStore:t,scrollNode:i,className:n,gamification:e,responsiveStore:l}),tf=({gamification:e,className:t,appNode:n,responsiveStore:r})=>{const{topNavigation:i}=Yn(),l=D(e.openedQuestion.$store),s=D(e.openedUser),{sdkInDesktopView:o}=D(r,{keys:["sdkInDesktopView"]}),{hiding:c,onAnimationEnd:d}=ti();if(!n.current||!l&&!s)return null;const v=l?a.jsx(Bs,{className:$e(t,!i&&Us),hiding:c,onAnimationEnd:d,children:a.jsx(Bo,{gamification:e})}):s?a.jsx(Bs,{className:$e(t,!i&&Us),hiding:c,onAnimationEnd:d,children:a.jsxs(Xp,{children:[a.jsx(ri,{label:"Friend's Rank",close:e.closeUser}),a.jsx(X0,{children:a.jsx(li,{...s,successRate:Jp(s)})})]})}):null;return a.jsx(Ki,{container:n,useContainer:!o,children:v})},nf=w.lazy(()=>Promise.resolve().then(()=>require("./gamification-feature.js"))),rf=({sdk:e,feature:t,className:n,scrollStore:r,appNode:i,scrollNode:l,responsiveStore:s})=>{const o=w.useMemo(()=>t&&t.featureConfig.get().type===k.SdkOverlayType.GAMES?a.jsx(R6,{className:n,sdk:e,feature:t,children:a.jsx(nf,{appNode:i,scrollStore:r,scrollNode:l,className:n,responsiveStore:s,gamification:t})}):null,[e,t,n,s,r,l,i]);return a.jsx(w.Suspense,{fallback:a.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"page loading..."}),children:o})},lf=({feature:e,className:t,appNode:n,responsiveStore:r})=>e&&e.featureConfig.get().type===k.SdkOverlayType.GAMES?a.jsx(tf,{className:t,appNode:n,responsiveStore:r,gamification:e}):null,sf=u("div")({name:"Buttons",class:"b5o8qbl",propsAsIs:!1}),af=({children:e,className:t})=>a.jsx(sf,{className:t,children:e}),Xo=u("div")({name:"Navigation",class:"n6tbwuy",propsAsIs:!1}),of=()=>af,Zs=u(of())({name:"NavigationItems",class:"n1up4z7v",propsAsIs:!0}),cf=u("button")({name:"SButton",class:"sxxa0c",propsAsIs:!1}),uf=u("span")({name:"ButtonIcon",class:"b193dcyu",propsAsIs:!1}),df=u("span")({name:"ButtonLabel",class:"b40tuix",propsAsIs:!1}),pf="s14xk0af",ff="ha3mg7c",hf="h103yr45",an=({disabled:e,active:t,onClick:n,label:r,icon:i,id:l})=>a.jsx(cf,{onClick:n,disabled:e,className:$e(t&&pf,!t&&(l==="channels"||l==="featuredGroups")&&ff,!t&&l==="leaderboard"&&hf),children:a.jsxs(a.Fragment,{children:[i&&a.jsx(uf,{children:i}),a.jsx(df,{children:r})]})}),mf=()=>O,Cf=u(mf())({name:"ButtonIcon",class:"b11wpe79",propsAsIs:!0}),vf=u("div")({name:"Container",class:"calnblm",propsAsIs:!1}),gf=u("div")({name:"Title",class:"t1438p52",propsAsIs:!1}),yf=u("div")({name:"CloseIconWrap",class:"c17srj38",propsAsIs:!1}),wf=()=>O,bf=u(wf())({name:"CloseIcon",class:"clqia8k",propsAsIs:!0}),xf=()=>O,Lf=u(xf())({name:"DashboardIcon",class:"df5w958",propsAsIs:!0}),Ef="h12x6aiv",kf=w.forwardRef(({sdk:e,className:t},n)=>{const r=()=>{e.closeFeature()};return a.jsxs(Xo,{className:$e(t,Ef),children:[a.jsxs(vf,{children:[a.jsxs(gf,{children:[a.jsx(Lf,{name:"dashboard"}),"Dashboard"]}),a.jsx(yf,{onClick:r,children:a.jsx(bf,{name:"icon-cross"})})]}),a.jsx("div",{ref:n})]})}),Sf=w.forwardRef(({sdk:e,className:t},n)=>{const r=D(e.sdkStore.organizationSettings),i=D(e.sdkStore.streamSettings),l=D(e.getActiveFeature()),s=w.useMemo(()=>{const c=(i==null?void 0:i.data)||(r==null?void 0:r.data);return c!=null&&c.overlays?c.overlays:[]},[r,i]),o=w.useMemo(()=>[...s.filter(({enableSdkButton:c,type:d})=>d===k.SdkOverlayType.GAMES||c).map(c=>({id:c.type,onClick:()=>e.openFeature(c.type),disabled:!(c.type in S4),label:c.name,icon:a.jsx("img",{src:c.icon,alt:""}),position:c.position*10}))].sort((c,d)=>c.position-d.position),[s,e]);return a.jsxs(Xo,{className:t,children:[o.length!==0&&a.jsx(Zs,{children:[a.jsx(an,{id:"Channels",onClick:()=>e.closeFeature(),label:"Channels",active:l===0},"Channels"),...o.map(c=>c.id===k.SdkOverlayType.GAMES?a.jsx(an,{...c,active:c.id===l,label:"StreamLayer +",id:"featuredGroups",icon:a.jsx(Cf,{name:"icon-btn-feature-groups","data-selected":c.id===l})},c.id):a.jsx(an,{...c,icon:void 0,active:c.id===l},c.id))]}),!o.length&&a.jsx(Zs,{children:[a.jsx(an,{id:"empty",label:"No Features...",active:!1,disabled:!0},"empty")]}),a.jsx("div",{ref:n})]})}),If=u("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),Tf=u("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),jf=u("div")({name:"ImageContainer",class:"i1qne9g6",propsAsIs:!1}),Af=u("div")({name:"InsightContent",class:"itpr98r",propsAsIs:!1}),$f=u("h3")({name:"Title",class:"t17iaqp8",propsAsIs:!1}),Rf=u("div")({name:"Description",class:"d16t3y7s",propsAsIs:!1}),Vf=u("button")({name:"ActionBtn",class:"a12495er",propsAsIs:!1}),_f=({video:e,image:t,imageMode:n,heading:r,body:i,action:l,controlVideo:s})=>a.jsxs(If,{children:[(e==null?void 0:e.url)&&a.jsx(hr,{source:e.url,poster:e.thumbnailUrl,controlVideo:s}),t&&!(e!=null&&e.url)&&a.jsx(jf,{"data-rounded":n===k.QuestionImages.ROUNDED,children:a.jsx(Tf,{src:t,alt:r})}),a.jsxs(Af,{children:[a.jsx($f,{children:r}),a.jsx(Rf,{children:i}),l&&a.jsx(Vf,{onClick:l,children:"View Insight"})]})]}),Nf=u("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),Mf=u("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),Of=()=>O,Pf=u(Of())({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),Hf=u("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),Df=()=>O,Ff=u(Df())({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),zf=u("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),Bf=u("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),Uf=u("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),Zf=u("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),qf=u("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),Qf=u("div")({name:"QuoteWrap",class:"q14u54rf",propsAsIs:!1}),Wf=u("blockquote")({name:"Quote",class:"q1hxm6zo",propsAsIs:!1}),Gf=({action:e,...t})=>a.jsxs(Zf,{children:[t.title&&a.jsx(Qf,{children:a.jsx(Wf,{children:t.title})}),a.jsx(Ji,{...t}),e&&a.jsx(qf,{onClick:e,children:"View Insight"})]}),W0=({close:e,action:t,controlVideo:n,data:{questionType:r,question:i,insight:l,tweet:s}})=>{const o=N2[r];return o?a.jsxs(Nf,{onClick:t,style:r===k.QuestionType.TWEET?{paddingTop:"12px"}:{},children:[a.jsx(Mf,{onClick:c=>{c.stopPropagation(),e&&e(c)},children:a.jsx(Pf,{name:"icon-cross"})}),r!==k.QuestionType.TWEET&&a.jsxs(Hf,{children:[a.jsx(Ff,{"data-type-trivia":r===k.QuestionType.TRIVIA,"data-type-poll":r===k.QuestionType.POLL,name:o.iconName}),a.jsx(zf,{children:o.label})]}),r===k.QuestionType.FACTOID&&l&&a.jsx(_f,{...l,action:t,controlVideo:n}),r===k.QuestionType.TWEET&&s&&a.jsx(Gf,{...s,action:t,controlVideo:n}),r!==k.QuestionType.FACTOID&&r!==k.QuestionType.TWEET&&a.jsxs(a.Fragment,{children:[a.jsx(Bf,{children:i==null?void 0:i.title}),a.jsx(Uf,{children:"Answer"})]})]}):null},pt=u("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),ke=u("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),Kf=()=>ke,Yf=u(Kf())({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),Xf=()=>ke,Jf=u(Xf())({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),eh=()=>ke,th=u(eh())({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),nh=()=>ke,qs=u(nh())({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),rh=()=>ke,Qs=u(rh())({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),ih=()=>ke,Ws=u(ih())({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),lh=()=>ke,Gs=u(lh())({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),sh=()=>ke,Ks=u(sh())({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),ah=()=>ke,Ys=u(ah())({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),oh=()=>ke,Xs=u(oh())({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),ch=()=>ke,uh=u(ch())({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),dh=()=>ke,ph=u(dh())({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),fh=()=>ke,hh=u(fh())({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),mh=()=>ke,Ch=u(mh())({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),vh=({step:e,correct:t})=>a.jsxs(a.Fragment,{children:[a.jsxs(pt,{"data-active":e===1,"data-first-screen":"true",children:[a.jsx(Yf,{}),a.jsx(Jf,{}),a.jsx(th,{})]}),a.jsxs(pt,{"data-active":e===2,children:[a.jsx(qs,{}),a.jsx(Qs,{}),a.jsx(Ws,{})]}),a.jsxs(pt,{"data-active":e===3,children:[a.jsx(qs,{}),a.jsx(Qs,{}),a.jsx(Ws,{})]}),t?a.jsxs(a.Fragment,{children:[a.jsxs(pt,{"data-active":e===4,"data-correct":"true",children:[a.jsx(Gs,{}),a.jsx(Ks,{}),a.jsx(Ys,{}),a.jsx(Xs,{})]}),a.jsxs(pt,{"data-active":e===5,"data-correct":"true",children:[a.jsx(Gs,{}),a.jsx(Ks,{}),a.jsx(Ys,{}),a.jsx(Xs,{})]})]}):a.jsxs(pt,{"data-active":e===4,"data-correct":"false",children:[a.jsx(uh,{}),a.jsx(ph,{}),a.jsx(hh,{}),a.jsx(Ch,{})]})]}),gh=118,yh=()=>ot,wh=u(yh())({name:"Container",class:"c10131zw",propsAsIs:!0}),bh=u("div")({name:"InnerContainer",class:"ir6k2eo",propsAsIs:!1}),Z1=u("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),s2=u("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),xh=()=>s2,Lh=u(xh())({name:"PointsTitle",class:"p1pjil1h",propsAsIs:!0}),on=u("div")({name:"Subtitle",class:"s1iorwr9",propsAsIs:!1}),Js=u("div")({name:"SubtitleFG",class:"s51sv9d",propsAsIs:!1}),cn=u("div")({name:"AnswerText",class:"a1lbk2ye",propsAsIs:!1}),Eh=()=>O,Jo=u(Eh())({name:"FeedbackIcon",class:"frcvk3t",propsAsIs:!0}),kh=()=>Jo,ea=u(kh())({name:"FeedbackIconCorrect",class:"f33p82r",propsAsIs:!0}),Sh=()=>Jo,Ih=u(Sh())({name:"FeedbackIconIncorrect",class:"f12r9net",propsAsIs:!0}),ta=u("div")({name:"CloseIconWrap",class:"c1fw6699",propsAsIs:!1}),Th=()=>O,na=u(Th())({name:"CloseIcon",class:"c115o126",propsAsIs:!0}),jh="data:image/svg+xml,%3csvg%20width='154'%20height='37'%20viewBox='0%200%20154%2037'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M70.9776%2030.8796L74.668%2018.1381C75.0696%2016.7473%2076.1186%2015.6318%2077.4936%2015.1371L77.5928%2014.7217H72.466L63.7623%2024.9662L60.431%2014.7217H55.7389L55.6255%2015.1371C56.4288%2015.5291%2056.8683%2016.7052%2056.8683%2017.662V17.7227C56.8683%2023.1787%2052.781%2032.5598%2047.0352%2032.5598C44.8002%2032.5598%2043.6425%2031.0009%2043.6425%2029.7035C43.6425%2028.1306%2044.975%2027.0105%2046.3831%2027.0105C47.744%2027.0105%2047.9519%2027.5099%2048.741%2027.5099C49.2182%2027.5099%2049.6766%2027.2672%2049.9081%2026.8518C50.2672%2026.1984%2049.9931%2025.4049%2049.3363%2025.0922L48.9772%2024.9242C45.6271%2023.3327%2041.7383%2025.7457%2041.7383%2029.4188V29.4701C41.7383%2032.1444%2043.8646%2034.38%2046.5674%2034.4733C53.5417%2034.716%2058.2055%2025.4236%2058.9473%2018.6188L59.486%2020.4577L62.2313%2028.5927H63.2709L71.8518%2018.4741L68.2512%2030.8936C67.8401%2032.3171%2066.6966%2033.4232%2065.2412%2033.7966L65.142%2034.212H72.0408L72.1542%2033.7966C71.1383%2033.2039%2070.6516%2032.0044%2070.9776%2030.8796Z'%20fill='white'/%3e%3cpath%20d='M88.2952%2021.6521H88.2385C85.016%2021.6568%2081.5571%2021.9648%2079.7143%2027.1361C78.1692%2031.4813%2077.7487%2033.2828%2076.539%2033.2828C75.7641%2033.2828%2075.9531%2031.794%2074.7954%2031.794C74.2709%2031.794%2073.7275%2032.2094%2073.6897%2032.8068C73.6236%2033.8429%2075.0317%2034.4683%2076.0949%2034.4683C79.3316%2034.4683%2080.5696%2032.1347%2080.9759%2031.0472C81.0279%2030.9072%2081.3162%2030.1371%2081.6517%2029.2317H85.0538L84.4773%2031.3273C84.1749%2032.4334%2083.5464%2033.3388%2082.488%2033.8009L82.3982%2034.2163H87.9597L88.0637%2033.8009C87.3124%2033.1848%2086.9816%2032.2%2087.2273%2031.2853L89.3206%2023.4257C89.4812%2022.8236%2089.9018%2022.3242%2090.4783%2022.0628L90.568%2021.6475H88.7536H88.2952V21.6521ZM85.3231%2028.2189H82.0202C82.3935%2027.2108%2082.7526%2026.2493%2082.8755%2025.9366C83.7118%2023.757%2085.2995%2022.8749%2086.8399%2022.7536L86.8257%2022.7676L85.3231%2028.2189Z'%20fill='white'/%3e%3cpath%20d='M116.358%2022.5486C116.538%2022.2545%20116.708%2021.8112%20116.708%2021.5591C116.732%2021.0877%20116.297%2020.7237%20115.829%2020.8217C115.456%2020.9011%20115.187%2021.2324%20115.191%2021.6058C115.196%2021.9978%20115.12%2022.4226%20114.95%2022.6279C114.558%2023.104%20113.934%2023.062%20111.062%2022.2452V22.2405C110.797%2022.1659%20110.509%2022.0819%20110.206%2021.9978C110.187%2021.9932%20110.173%2021.9885%20110.159%2021.9838C108.723%2021.6011%20106.941%2021.2464%20105.774%2021.8205C105.765%2021.8252%20105.755%2021.8298%20105.746%2021.8345C104.602%2022.3992%20103.808%2023.4727%20103.567%2024.7142C103.53%2024.8962%20103.506%2025.0455%20103.501%2025.0969C103.468%2025.7456%20104.068%2026.2544%20104.711%2026.1143C105.235%2026.0023%20105.604%2025.5403%20105.59%2025.0129C105.58%2024.4808%20105.472%2023.7667%20105.765%2023.286C106.237%2022.6279%20106.729%2022.5812%20108.935%2023.3047L106.544%2031.323C106.214%2032.4291%20105.406%2033.3345%20104.338%2033.7966L104.238%2034.212H109.961L110.074%2033.7966C109.337%2033.1852%20109.03%2032.1957%20109.299%2031.2809L111.392%2024.0561C112.309%2024.2428%20113.24%2024.2941%20114.147%2024.0374L114.473%2023.9441C115.196%2023.7527%20115.943%2023.2347%20116.358%2022.5486Z'%20fill='white'/%3e%3cpath%20d='M118.649%2021.6523L118.536%2022.0677C119.245%2022.5531%20119.561%2023.4259%20119.335%2024.2427L117.208%2031.3228C116.877%2032.429%20116.069%2033.3344%20115.002%2033.7964L114.902%2034.2118H117.931H118.21H125.18L126.101%2030.8934H125.666L125.51%2031.2108C124.934%2032.3963%20123.72%2033.1524%20122.382%2033.1524H119.429L121.003%2027.5937H122.259C123.105%2027.5937%20123.743%2028.3545%20123.582%2029.1759H124.012L125.043%2025.4188H124.613C124.362%2026.1142%20123.696%2026.5763%20122.949%2026.5809H121.291L122.382%2022.7258L125.515%2022.7211C126.536%2022.7211%20127.301%2023.6452%20127.098%2024.6347H127.528L128.35%2021.6523H118.649Z'%20fill='white'/%3e%3cpath%20d='M138.251%2021.6582H131.333L131.22%2022.0736C131.881%2022.5263%20132.207%2023.3197%20132.056%2024.0898L129.892%2031.324C129.561%2032.4301%20128.753%2033.3356%20127.685%2033.7976L127.586%2034.213H133.303L133.417%2033.7976C132.68%2033.1862%20132.373%2032.2014%20132.637%2031.282L133.686%2027.5949H134.126C134.787%2027.5949%20135.34%2028.085%20135.416%2028.7337C135.439%2028.9437%20135.77%2031.506%20136.035%2032.3881C136.379%2033.5409%20136.833%2034.213%20137.868%2034.213H140.453L140.552%2033.7976L140.183%2033.5829C139.451%2033.1536%20138.922%2032.4908%20138.685%2031.6087C138.463%2030.7779%20138.043%2029.2284%20137.84%2028.4117C137.736%2027.9916%20137.202%2027.5996%20136.654%2027.5996H137.523C139.087%2027.5996%20140.457%2026.5681%20140.878%2025.0839C141.365%2023.3617%20140.056%2021.6582%20138.251%2021.6582ZM138.369%2024.6872C138.029%2025.812%20136.98%2026.5868%20135.789%2026.5868H133.974L135.071%2022.7317H136.89C137.925%2022.727%20138.662%2023.7118%20138.369%2024.6872Z'%20fill='white'/%3e%3cpath%20d='M100.265%2022.2961C100.081%2022.2961%2099.6794%2022.1701%2099.0651%2021.9181C98.4508%2021.6661%2097.8318%2021.54%2097.2034%2021.54C95.904%2021.54%2094.8219%2021.9554%2093.9336%2022.8422C93.1964%2023.5796%2092.8704%2024.401%2092.8704%2025.1105C92.8704%2025.8665%2093.3193%2026.7533%2094.2124%2027.4721C95.0582%2028.1488%2095.937%2028.8022%2096.8206%2029.465C97.7468%2030.1977%2098.2098%2030.8745%2098.2098%2031.4252C98.2098%2032.634%2097.416%2033.2828%2095.7669%2033.2828C94.0942%2033.2828%2092.9366%2032.074%2092.568%2029.8057H92.1144L90.8008%2034.2162H91.226C91.7694%2033.8382%2092.1569%2033.6001%2092.946%2033.6001C93.6973%2033.6001%2094.5006%2034.4729%2096.2158%2034.4729C97.5814%2034.4729%2098.6682%2034.1929%2099.5943%2033.2781C100.383%2032.4753%20100.776%2031.3552%20100.776%2030.4404C100.776%2029.591%20100.237%2028.6062%2099.2966%2027.8921C98.4886%2027.2807%2097.6286%2026.7347%2096.7923%2026.1419C95.8898%2025.4792%2095.4362%2024.9144%2095.4362%2024.2937C95.4362%2023.9483%2095.611%2023.6076%2095.9559%2023.2622C96.3954%2022.8282%2096.986%2022.7302%2097.7751%2022.7302C99.3581%2022.7302%20100.464%2023.5983%20100.558%2025.4325H100.974L102.08%2021.5447H101.664C101.215%2022.0441%20100.752%2022.2961%20100.265%2022.2961Z'%20fill='white'/%3e%3cpath%20d='M149.201%2022.7304C150.784%2022.7304%20151.89%2023.6032%20151.984%2025.4327H152.4L153.501%2021.5449H153.085C152.646%2022.049%20152.182%2022.301%20151.696%2022.301C151.512%2022.301%20151.11%2022.175%20150.496%2021.923C149.881%2021.6709%20149.262%2021.5449%20148.634%2021.5449C147.334%2021.5449%20146.252%2021.9603%20145.364%2022.8471C144.627%2023.5845%20144.296%2024.4059%20144.296%2025.1153C144.296%2025.8714%20144.745%2026.7582%20145.638%2027.477C146.484%2028.1537%20147.363%2028.8071%20148.246%2029.4699C149.173%2030.2026%20149.636%2030.8794%20149.636%2031.4301C149.636%2032.6389%20148.842%2033.2876%20147.193%2033.2876C145.52%2033.2876%20144.362%2032.0788%20143.994%2029.8106H143.54L142.227%2034.2211H142.642C143.186%2033.843%20143.573%2033.605%20144.358%2033.605C145.109%2033.605%20145.912%2034.4778%20147.627%2034.4778C148.993%2034.4778%20150.075%2034.1978%20151.006%2033.283C151.795%2032.4802%20152.187%2031.3601%20152.187%2030.4453C152.187%2029.6005%20151.649%2028.6111%20150.708%2027.897C149.9%2027.2856%20149.04%2026.7395%20148.204%2026.1468C147.301%2025.4841%20146.848%2024.9193%20146.848%2024.2986C146.848%2023.9532%20147.023%2023.6125%20147.368%2023.2671C147.826%2022.8237%20148.412%2022.7304%20149.201%2022.7304Z'%20fill='white'/%3e%3cpath%20d='M26.5433%202.60035C26.0377%202.44633%2025.5321%202.72169%2025.0265%203.00173C24.8469%203.09974%2024.7194%203.27243%2024.6768%203.46845L23.883%207.13222C23.8547%207.26757%2023.9775%207.38891%2024.1145%207.36091C24.9509%207.17422%2025.7447%206.4508%2026.5811%206.70283C27.5167%206.98753%2028.4522%205.81606%2029.3878%205.83006V1.60156C28.4475%201.60623%2027.4789%202.88505%2026.5433%202.60035Z'%20fill='white'/%3e%3cpath%20d='M38.4856%2013.8398C38.2871%2013.7044%2038.1643%2013.4851%2038.1643%2013.2471V12.5796C38.1643%2011.9822%2037.6729%2011.4922%2037.0633%2011.4922H36.6239C36.0994%2011.4922%2035.6174%2011.7536%2035.3339%2012.1876L33.9164%2014.3485C33.7746%2014.5632%2033.5383%2014.6892%2033.2832%2014.6892H32.3287C31.8562%2014.6892%2031.4215%2014.9459%2031.1947%2015.3566C30.9631%2015.7814%2030.552%2016.0754%2030.0843%2016.1734V1.1403C30.0843%200.94894%2029.9283%200.794922%2029.7346%200.794922C29.5409%200.794922%2029.3849%200.94894%2029.3849%201.1403V1.60702V5.83552V16.1827C28.9171%2016.0847%2028.506%2015.7907%2028.2745%2015.3613C28.0524%2014.9506%2027.6177%2014.6939%2027.1405%2014.6939H26.4979C25.9875%2014.6939%2025.5292%2014.9879%2025.3213%2015.45L24.7873%2016.6308C24.7023%2016.8175%2024.5133%2016.9388%2024.3054%2016.9388C24.0975%2016.9388%2023.9085%2016.8175%2023.8234%2016.6308L23.2895%2015.45C23.0816%2014.9926%2022.6232%2014.6939%2022.1129%2014.6939H4.00135C3.85487%2014.6939%203.73674%2014.8106%203.73674%2014.9553C3.73674%2015.2633%203.48158%2015.5107%203.17444%2015.5107H2.39007C2.24359%2015.5107%202.12546%2015.6273%202.12546%2015.772V16.6728C2.12546%2017.5176%201.96008%2018.339%201.62931%2019.1184L1.15207%2020.2526C0.707907%2021.3027%200.5%2022.3901%200.5%2023.4589V26.0726C0.5%2026.7773%200.603954%2027.4914%200.811861%2028.1868C1.39306%2030.1377%202.7161%2031.7339%204.53529%2032.6767L7.43182%2034.1842C7.46962%2034.2029%207.51214%2034.2122%207.55467%2034.2122L9.69517%2034.2309C10.196%2034.2355%2010.6875%2034.3616%2011.1269%2034.6043L12.2751%2035.239C12.3129%2035.2623%2012.3602%2035.2717%2012.4074%2035.2717H13.9431C14.4818%2035.2717%2015.0157%2035.4163%2015.474%2035.6917C15.474%2035.6917%2016.2253%2036.1444%2016.4805%2036.2891C16.8869%2036.5225%2017.3783%2036.7465%2018.2335%2036.7932C18.4273%2036.8025%2018.621%2036.7325%2018.7675%2036.5972C18.9092%2036.4618%2018.9943%2036.2704%2018.9943%2036.0791V35.0616C18.9943%2034.3242%2019.4337%2033.6521%2020.1189%2033.3581L22.4673%2032.3406C22.7886%2032.2006%2023.1477%2032.1773%2023.4832%2032.28L24.3621%2032.5367C24.7354%2032.644%2025.1323%2032.6487%2025.5056%2032.5367L27.5846%2031.9253C27.8587%2031.8459%2028.1517%2031.8459%2028.4304%2031.9299L29.2763%2032.1633C29.6684%2032.2706%2029.9472%2032.6347%2029.9472%2033.0361V35.071C29.9472%2036.0184%2030.7269%2036.7932%2031.6861%2036.7932C32.4043%2036.7932%2033.0328%2036.3405%2033.2501%2035.6637C33.6423%2034.4456%2033.8408%2033.1761%2033.8408%2031.8973V31.0292C33.8408%2030.4131%2034.1006%2029.8204%2034.5543%2029.3956L35.419%2028.5882C36.0002%2028.0421%2036.3356%2027.2674%2036.3356%2026.474V21.6481C36.3356%2020.9013%2036.5625%2020.1779%2036.9972%2019.5618C37.0302%2019.5198%2037.0444%2019.4638%2037.0444%2019.4125V18.2737C37.0444%2017.5316%2037.2712%2016.8128%2037.6965%2016.2014L38.5517%2014.9739C38.5848%2014.9319%2038.599%2014.8806%2038.599%2014.8246V14.0545C38.6037%2013.9098%2038.5139%2013.8585%2038.4856%2013.8398ZM30.0843%2025.2838C30.6654%2025.3725%2031.1002%2025.6665%2031.1002%2026.0212C31.1002%2026.3759%2030.6702%2026.67%2030.0843%2026.7587V25.2838ZM5.22516%2032.4433L4.78572%2032.2146C3.59026%2031.5939%202.63577%2030.6698%201.9837%2029.545V28.1355C2.73028%2029.2043%203.74619%2030.1144%204.98891%2030.7631L5.22516%2030.8845V32.4433ZM7.43654%2033.5961L6.2647%2032.9894V31.4305L7.43182%2032.0373H7.43654V33.5961ZM12.3129%2034.6556L11.3868%2034.1422C10.8812%2033.8622%2010.3142%2033.7128%209.73297%2033.7035V32.0793C10.2197%2032.0886%2010.7016%2032.2146%2011.1269%2032.448L12.2751%2033.0827C12.2846%2033.0874%2012.2987%2033.0874%2012.3129%2033.0921V34.6556ZM18.4603%2035.0616V35.8551V36.0791C18.4603%2036.1304%2018.4367%2036.1818%2018.3989%2036.2191C18.3611%2036.2564%2018.3139%2036.2705%2018.2619%2036.2705C17.52%2036.2331%2017.0948%2036.0418%2016.7498%2035.8411C16.4994%2035.6964%2015.7528%2035.2483%2015.7481%2035.2483C15.2803%2034.9683%2014.7511%2034.8143%2014.2077%2034.7723V33.1387C14.6519%2033.1808%2015.0866%2033.3114%2015.474%2033.5401L16.1214%2033.9228C16.8302%2034.3429%2017.6382%2034.5809%2018.4603%2034.6276V35.0616ZM24.8582%2032.0886C24.7448%2032.084%2024.6267%2032.0653%2024.5133%2032.0326L23.6344%2031.7713C23.4454%2031.7152%2023.2517%2031.6966%2023.0579%2031.6966V30.0677C23.1997%2030.0677%2023.3414%2030.0817%2023.4832%2030.1237L24.3621%2030.3804C24.5227%2030.4271%2024.6928%2030.4504%2024.8582%2030.4598V32.0886ZM30.363%2032.4807C30.1929%2032.0886%2029.8574%2031.7759%2029.4275%2031.6592L28.5864%2031.4259C28.3879%2031.3652%2028.18%2031.3419%2027.9721%2031.3419V29.7177C28.1328%2029.713%2028.2934%2029.7317%2028.4493%2029.783L29.1392%2029.9977C29.8716%2030.2264%2030.363%2030.8891%2030.363%2031.6452V32.4807ZM32.787%2035.365C32.7729%2035.4117%2032.7634%2035.4584%2032.7492%2035.505C32.6028%2035.9624%2032.1775%2036.2658%2031.6955%2036.2658C31.653%2036.2658%2031.6105%2036.2564%2031.568%2036.2518V34.6323C31.601%2034.6369%2031.6294%2034.6416%2031.6625%2034.6416C32.135%2034.6416%2032.565%2034.3802%2032.7918%2033.9835V35.365H32.787ZM37.3232%2015.0486C36.794%2015.8047%2036.5152%2016.6915%2036.5152%2017.6109V18.4137L36.1041%2019.0017C35.5702%2019.7625%2035.2867%2020.6539%2035.2867%2021.578V25.6245C35.2867%2026.2779%2035.0126%2026.9173%2034.5306%2027.3654L33.6659%2028.1775C33.0847%2028.7236%2032.7634%2029.489%2032.787%2030.2824L32.7918%2030.4644C32.8248%2031.5146%2032.6878%2032.56%2032.3901%2033.5681C32.2956%2033.8902%2031.9932%2034.1142%2031.6577%2034.1142C31.2372%2034.1142%2030.8923%2033.7782%2030.8923%2033.3581V31.6452C30.8923%2030.6558%2030.2496%2029.7923%2029.2952%2029.4983L28.6053%2029.2836C28.2225%2029.1669%2027.8209%2029.1623%2027.4334%2029.2743L25.3544%2029.881C25.0803%2029.9604%2024.7873%2029.9604%2024.5133%2029.881L23.6344%2029.6243C23.1808%2029.489%2022.6894%2029.5217%2022.2547%2029.7083L20.4071%2030.5111C19.2258%2031.0245%2018.4651%2032.1773%2018.4651%2033.4515V34.1095C17.7374%2034.0675%2017.0286%2033.8528%2016.4002%2033.4795L15.7528%2033.0967C15.2047%2032.7747%2014.581%2032.602%2013.9431%2032.602H12.4736L11.3868%2031.9999C10.8717%2031.7152%2010.2905%2031.5659%209.69989%2031.5612L7.62082%2031.5472L5.23461%2030.3057C1.61514%2028.4249%200.0700101%2024.1917%201.64349%2020.4579L2.12073%2019.3238C2.47512%2018.4837%202.6594%2017.5922%202.6594%2016.6775V16.0427H3.17444C3.68476%2016.0427%204.11948%2015.6927%204.2376%2015.2213H22.1176C22.4153%2015.2213%2022.6894%2015.394%2022.8075%2015.6647L23.3414%2016.8455C23.5115%2017.2235%2023.8896%2017.4662%2024.3101%2017.4662C24.7259%2017.4662%2025.1087%2017.2235%2025.2788%2016.8455L25.8127%2015.66C25.9356%2015.3893%2026.2049%2015.2166%2026.5026%2015.2166H27.1452C27.424%2015.2166%2027.6791%2015.366%2027.8114%2015.6087C28.1375%2016.2061%2028.7234%2016.6075%2029.3897%2016.7148V24.145C28.317%2024.2617%2027.4949%2024.8918%2027.4949%2025.6572C27.4949%2026.5066%2028.4966%2027.1927%2029.7346%2027.1927C30.9726%2027.1927%2031.9743%2026.5066%2031.9743%2025.6572C31.9743%2024.8918%2031.1521%2024.257%2030.0795%2024.145V16.7101C30.7458%2016.6028%2031.3317%2016.2014%2031.6577%2015.604C31.79%2015.3613%2032.0452%2015.212%2032.324%2015.212H33.2785C33.7179%2015.212%2034.1195%2014.9926%2034.3605%2014.6286L35.7781%2012.4676C35.9624%2012.1829%2036.2789%2012.0149%2036.6239%2012.0149H37.0633C37.3752%2012.0149%2037.6303%2012.2669%2037.6303%2012.575V13.2424C37.6303%2013.5644%2037.7579%2013.8725%2037.98%2014.1012L37.3232%2015.0486ZM29.3849%2025.2838V26.7587C28.8037%2026.67%2028.3737%2026.3759%2028.3737%2026.0212C28.3737%2025.6665%2028.8037%2025.3678%2029.3849%2025.2838Z'%20fill='white'/%3e%3c/svg%3e",Ah="data:image/svg+xml,%3csvg%20width='159'%20height='28'%20viewBox='0%200%20159%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_71839)'%3e%3cpath%20d='M4.13243%2025.9198C5.34921%2026.9052%207.05161%2027.0267%208.39597%2026.224L22.9838%2017.5138C25.4013%2016.0703%2025.4117%2012.5721%2023.0028%2011.1144L17.4686%207.76522C15.4767%206.55981%2012.8918%207.10053%2011.5501%209.00325L3.27399%2020.7399C2.14132%2022.3462%202.44805%2024.5556%203.97544%2025.7926L4.13243%2025.9198Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M4.11673%202.57147C5.33939%201.58127%207.0516%201.46387%208.39797%202.27791L22.9843%2011.0971C25.3835%2012.5477%2025.3874%2016.0265%2022.9914%2017.4824L17.5405%2020.7946C15.5485%2022.005%2012.9594%2021.4661%2011.6157%2019.5615L3.27518%207.7386C2.142%206.1323%202.44856%203.92248%203.97619%202.68529L4.11673%202.57147Z'%20stroke='white'%20style='stroke:white;stroke-opacity:1;'%20stroke-width='2.33333'/%3e%3cpath%20d='M49.8088%2020.0063C47.924%2020.0063%2046.7521%2018.7437%2046.7521%2016.6748V13.1359H50.1977V10.9296H46.7521V7.34668L44.2736%209.18483V10.9271H42.8892V13.1333H44.2736V16.6515C44.2736%2020.2137%2046.3632%2022.4174%2049.8321%2022.4174H50.361V20.0063H49.8088Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M30.4704%2019.5631L32.6818%2017.8339C33.6722%2019.4231%2035.01%2020.2761%2036.7159%2020.2761C38.5826%2020.2761%2039.757%2019.0783%2039.757%2017.5798C39.757%2015.8505%2037.9137%2015.2983%2035.977%2014.6761C33.6956%2013.9398%2031.23%2013.0168%2031.23%209.92907C31.23%207.37018%2033.5115%205.34277%2036.6226%205.34277C39.1815%205.34277%2040.7707%206.33314%2042.0618%207.83166L40.0111%209.35351C39.2515%208.17907%2038.1211%207.55685%2036.6226%207.55685C34.9167%207.55685%2033.8096%208.57055%2033.8096%209.88499C33.8096%2011.4976%2035.5856%2012.0291%2037.5196%2012.6746C39.8244%2013.4576%2042.3367%2014.4506%2042.3367%2017.585C42.3367%2020.1672%2040.2159%2022.6328%2036.7367%2022.6328C33.8563%2022.6328%2031.8963%2021.4117%2030.4678%2019.5683L30.4704%2019.5631Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M58.9189%2016.7007C58.9189%2013.3225%2061.5141%2010.6807%2064.8923%2010.6807C68.2704%2010.6807%2070.7982%2013.1384%2070.7982%2016.5399V17.5044H61.286C61.6075%2019.2725%2062.9867%2020.4444%2064.9856%2020.4444C66.5489%2020.4444%2067.7441%2019.6173%2068.3404%2018.3755L70.3627%2019.5007C69.3515%2021.3855%2067.5367%2022.6247%2064.9856%2022.6247C61.356%2022.6247%2058.9189%2020.0296%2058.9189%2016.6981V16.7007ZM61.4001%2015.4147H68.2938C67.9256%2013.7607%2066.663%2012.8403%2064.8923%2012.8403C63.1215%2012.8403%2061.8589%2013.8981%2061.4001%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M51.8955%2016.6752C51.8955%2013.113%2053.9851%2010.9326%2057.454%2010.9326H58.5559V13.323H57.4307C55.5459%2013.323%2054.33%2014.6322%2054.3533%2016.7011V22.423H51.8955V16.6804V16.6752Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M72.0138%2016.6774C72.0138%2013.3226%2074.6557%2010.7041%2077.9638%2010.7041C81.272%2010.7041%2083.8672%2013.3226%2083.8672%2016.6774V22.42H81.456V20.9267C80.6523%2022.0052%2079.4105%2022.6274%2077.8938%2022.6274C74.609%2022.6274%2072.0112%2020.0556%2072.0112%2016.6774H72.0138ZM81.5027%2016.6774C81.5027%2014.6319%2079.9394%2013.0011%2077.9638%2013.0011C75.9883%2013.0011%2074.4249%2014.6319%2074.4249%2016.6774C74.4249%2018.723%2075.9649%2020.3537%2077.9638%2020.3537C79.9627%2020.3537%2081.5027%2018.6997%2081.5027%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M85.4155%2015.978C85.4155%2012.9214%2087.5052%2010.6943%2090.6085%2010.6943C92.3766%2010.6943%2093.8026%2011.4073%2094.697%2012.6025C95.5474%2011.4073%2096.9266%2010.6943%2098.6948%2010.6943C101.819%2010.6943%20104.002%2012.8773%20104.002%2015.978V22.4103H101.544V16.0014C101.544%2014.2566%20100.372%2013.038%2098.6948%2013.038C97.0174%2013.038%2095.9155%2014.2799%2095.9389%2015.934V22.4129H93.4811V16.004C93.4811%2014.2592%2092.2859%2013.0406%2090.6085%2013.0406C88.9311%2013.0406%2087.8526%2014.2825%2087.8733%2015.9366V22.4154H85.4155V15.9832V15.978Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M105.578%205.6416H108.082V20.0227H114.859V22.4131H105.578V5.6416Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M138.483%2016.7007C138.483%2013.3225%20141.078%2010.6807%20144.456%2010.6807C147.834%2010.6807%20150.362%2013.1384%20150.362%2016.5399V17.5044H140.85C141.171%2019.2725%20142.551%2020.4444%20144.55%2020.4444C146.113%2020.4444%20147.308%2019.6173%20147.904%2018.3755L149.927%2019.5007C148.916%2021.3855%20147.101%2022.6247%20144.55%2022.6247C140.92%2022.6247%20138.483%2020.0296%20138.483%2016.6981V16.7007ZM140.964%2015.4147H147.858C147.49%2013.7607%20146.227%2012.8403%20144.456%2012.8403C142.685%2012.8403%20141.423%2013.8981%20140.964%2015.4147Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M115.269%2016.6774C115.269%2013.3226%20117.911%2010.7041%20121.219%2010.7041C124.527%2010.7041%20127.122%2013.3226%20127.122%2016.6774V22.42H124.711V20.9267C123.907%2022.0052%20122.665%2022.6274%20121.149%2022.6274C117.864%2022.6274%20115.266%2020.0556%20115.266%2016.6774H115.269ZM124.758%2016.6774C124.758%2014.6319%20123.194%2013.0011%20121.219%2013.0011C119.243%2013.0011%20117.68%2014.6319%20117.68%2016.6774C117.68%2018.723%20119.22%2020.3537%20121.219%2020.3537C123.218%2020.3537%20124.758%2018.6997%20124.758%2016.6774Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M131.67%2021.8547L126.915%2010.9658H129.557L132.912%2018.938L136.082%2010.9658H138.678L131.74%2027.7606H129.212L131.67%2021.8573V21.8547Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3cpath%20d='M151.897%2016.6674C151.897%2013.1052%20153.987%2010.9248%20157.455%2010.9248H158.557V13.3152H157.432C155.547%2013.3152%20154.331%2014.6244%20154.355%2016.6933V22.4152H151.897V16.6726V16.6674Z'%20fill='white'%20style='fill:white;fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_6919_71839'%3e%3crect%20width='158.12'%20height='28'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.44043)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",$h=(e,t,n)=>e===t?"translateY(0px)":e>t?`translateY(${n}px)`:"translateY(-100%)",e4=({close:e,votedAnswer:t,mastersApp:n,correct:r,correctAnswerTitle:i,questionTitle:l,saveHeight:s,style:o,hiding:c})=>{const[d,v]=w.useState(1),C=w.useRef({});w.useEffect(()=>{const b=setInterval(()=>{v(x=>r&&x>4||!r&&x>3?x:++x)},3e3);return()=>clearInterval(b)},[r]),w.useEffect(()=>{var b,x;C.current[d]&&s(((x=(b=C.current[d])==null?void 0:b.getBoundingClientRect())==null?void 0:x.height)||gh)},[d,s]);const f=b=>x=>{C.current&&(C.current[b]=x)},y=b=>({transform:$h(b,d,o.height)});return a.jsx(wh,{style:o.height?o:{...o,paddingTop:0,paddingBottom:0},hiding:c,children:a.jsxs(bh,{style:{height:o.height,minHeight:o.height,backgroundColor:d>3?r?"var(--color-sdk-prediction-result-success-bg)":"var(--color-sdk-prediction-result-incorrect-bg)":"var(--color-primary-1)"},children:[a.jsx(vh,{step:d,correct:r}),n&&a.jsxs(Z1,{ref:f(1),style:y(1),children:[a.jsx("img",{alt:"sponsor-logo",src:jh}),a.jsx(Js,{children:"Featured Groups +"})]}),!n&&a.jsx(Z1,{ref:f(1),style:y(1),children:a.jsx("img",{alt:"sponsor-logo",src:Ah})}),a.jsxs(Z1,{ref:f(2),style:y(2),children:[a.jsx(s2,{children:"Prediction results are in!"}),n&&a.jsx(Js,{children:"Featured Groups +"})]}),a.jsxs(Z1,{ref:f(3),style:y(3),children:[a.jsx(s2,{children:l}),a.jsx(on,{children:a.jsxs(cn,{children:[a.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})})]}),r?a.jsxs(a.Fragment,{children:[a.jsxs(Z1,{ref:f(4),style:{...y(4),color:"var(--color-sdk-prediction-result-success-text)"},children:[a.jsxs(s2,{children:["Congratulations!",a.jsx("br",{}),"You answered correctly."]}),a.jsxs(on,{children:[a.jsx(ea,{name:"selected"}),a.jsxs(cn,{children:[a.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]})]}),a.jsxs(Z1,{ref:f(5),style:{...y(5),color:"var(--color-sdk-prediction-result-success-text)"},children:[a.jsx(Lh,{children:d===5&&a.jsx(fr,{delay:.5,prefix:"+",suffix:" points",value:t==null?void 0:t.points})}),a.jsxs(on,{children:[a.jsx(ea,{name:"selected"}),a.jsxs(cn,{children:[a.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]}),a.jsx(ta,{onClick:e,children:a.jsx(na,{name:"icon-cross"})})]})]}):a.jsxs(Z1,{ref:f(4),style:y(4),children:[a.jsxs(s2,{style:{color:"var(--color-sdk-prediction-result-error-title)"},children:["Better luck next time!",a.jsx("br",{}),"Correct: ",i,"."]}),a.jsxs(on,{style:{color:"var(--color-sdk-prediction-result-error-subtitle)"},children:[a.jsx(Ih,{name:"circleClose"}),a.jsxs(cn,{children:[a.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]}),a.jsx(ta,{onClick:e,children:a.jsx(na,{name:"icon-cross"})})]})]})})},t4=e=>{const[t,n]=w.useState(!1),[r,i]=w.useState(!1),l=w.useRef(null),s=w.useCallback(()=>{i(!0),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{i(!1)},1e3)},[]),o=w.useCallback(async c=>{n(!0);const d=c.map(v=>new Promise((C,f)=>{const y=new Image;y.onload=()=>C(v),y.onerror=()=>f(),y.src=v}));await Promise.allSettled(d),n(!1)},[]);return w.useEffect(()=>{e&&(s(),o(e))},[e,s,o]),{loading:t,throttled:r}},Rh=u("div")({name:"Container",class:"cl51m2q",propsAsIs:!1}),Vh=u("img")({name:"Avatar",class:"a2yhhhr",propsAsIs:!1}),_h=u("div")({name:"AvatarPlaceholder",class:"a1dtxxlr",propsAsIs:!1}),Nh=u("div")({name:"Content",class:"c12clm3w",propsAsIs:!1}),Mh=u("span")({name:"Name",class:"n14lctn7",propsAsIs:!1}),Oh=({avatar:e,name:t})=>a.jsxs(Rh,{children:[e&&a.jsx(Vh,{src:e}),!e&&a.jsx(_h,{children:ii(t||"")}),a.jsxs(Nh,{children:[a.jsxs(Mh,{children:[t," "]}),"is waiting for you!"]})]}),Ph=u("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),Hh=u("div")({name:"Graphic",class:"gjyzpp7",propsAsIs:!1}),Dh=u("img")({name:"GraphicImage",class:"g16mldgz",propsAsIs:!1}),Fh=u("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),zh=u("div")({name:"TaglineContainer",class:"tmm7qmo",propsAsIs:!1}),Bh=u("div")({name:"Tagline",class:"t17knuw2",propsAsIs:!1}),Uh=u("div")({name:"Content",class:"c1b74psg",propsAsIs:!1}),Zh=u("div")({name:"StepsContainer",class:"s1y99ug7",propsAsIs:!1}),qh=u("span")({name:"StepIndicator",class:"sgf3v5n",propsAsIs:!1}),Qh=u("div")({name:"InvitingUserWrap",class:"i1sj6gn8",propsAsIs:!1}),Wh=({loading:e,steps:t,currentStep:n,inviterName:r})=>{const{headline:i,tagline:l}=t[n];return a.jsxs(Ph,{children:[l&&a.jsx(zh,{children:a.jsx(Te,{loading:e,children:a.jsx(Bh,{children:l})})}),a.jsxs(Uh,{"data-welcome-screen":n===0,children:[a.jsx(Hh,{children:a.jsx(Te,{loading:e,children:t.map(({graphicSrc:s},o)=>a.jsx(Dh,{src:s,"data-active":n===o}))})}),i&&a.jsx(Te,{loading:e,children:a.jsx(Fh,{children:i})})]}),r&&n===0&&a.jsx(Qh,{children:a.jsx(Oh,{name:r})}),a.jsx(Zh,{style:e?{visibility:"hidden"}:{},children:Array.from({length:t.length}).map((s,o)=>a.jsx(qh,{"data-active":n===o},o))})]})},Gh=u("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),Kh=u("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),Yh=u("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),Xh=u("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),Jh=u("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),em=u("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),tm=u("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),nm=u("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),rm=({rules:e,rulesTitle:t,termsText:n,primaryColor:r,openTerms:i})=>a.jsxs(Gh,{children:[a.jsxs(Kh,{children:[a.jsx(Yh,{children:t}),a.jsx(Xh,{children:e==null?void 0:e.map(({label:l,icon:s},o)=>a.jsxs(Jh,{children:[s&&a.jsx(em,{style:{backgroundColor:r},children:a.jsx(O,{name:s,"data-icon":s})}),a.jsx(tm,{children:l})]},o))})]}),n&&a.jsx(nm,{onClick:i,children:"See Terms and Conditions"})]}),im=u("div")({name:"Container",class:"cj0g35h",propsAsIs:!1}),lm=u("div")({name:"Content",class:"c1xkhrbn",propsAsIs:!1}),sm=u("div")({name:"Title",class:"tifzb8b",propsAsIs:!1}),am=u("div")({name:"ScrollingText",class:"stduw5c",propsAsIs:!1}),om=({termsTitle:e,termsText:t})=>a.jsx(im,{children:a.jsxs(lm,{children:[a.jsx(sm,{children:e}),a.jsx(am,{children:t})]})}),cm=u("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),um=u("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),dm=({disabled:e,variant:t="primary",onClick:n,children:r,...i})=>a.jsx(cm,{onClick:n,disabled:e,"data-variant":t,...i,children:a.jsx(um,{children:r})}),pm=u("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),fm=u("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),hm=u("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),mm=u("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),Cm=()=>O,vm=u(Cm())({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),gm=u("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),ym=()=>dm,wm=u(ym())({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),ft={steps:!1,rules:!1,inviteCard:!1},n4=({gamification:e,steps:t,rules:n,rulesBtnLabel:r,rulesTitle:i,termsTitle:l,termsText:s,primaryColor:o,inviteLink:c,inviteCardTitle:d,inviteCardSubtext:v,inviteCardBtnLabel:C,loading:f,inviterName:y,sdk:b,onClose:x})=>{const[E,h]=w.useState(0),[p,g]=w.useState(!1),[L,S]=w.useState(ft);w.useEffect(()=>{t!=null&&t.length?S({...ft,steps:!0}):n!=null&&n.length?S({...ft,rules:!0}):S({...ft,inviteCard:!0})},[]);const I=w.useMemo(()=>L.steps&&E===0?"Continue":L.rules?p||!r?"Got it":r:L.inviteCard?C||"Play Now":"Next",[L,E,p,r,C]),j=w.useCallback(()=>{t!=null&&t.length&&E<t.length-1?h(_=>++_):n!=null&&n.length&&L.steps?S({...ft,rules:!0}):L.rules&&S({...ft,inviteCard:!0})},[E,t==null?void 0:t.length,n==null?void 0:n.length,L,h,S]),A=async()=>{L.inviteCard?await e.onboardingStatus.submitInplay():L.rules&&p?g(!1):j()};return w.useEffect(()=>{!f&&y&&b.inviteDisplayed()},[f,y,b]),a.jsx(Md,{children:({width:_,height:V})=>a.jsxs(pm,{style:{width:_,height:V,maxHeight:V},children:[a.jsx(hm,{children:a.jsx(mm,{onClick:x,children:a.jsx(vm,{name:"icon-close-btn-gray"})})}),a.jsxs(fm,{children:[L.steps&&(t==null?void 0:t.length)&&a.jsx(Wh,{loading:f,steps:t,currentStep:E,inviterName:y}),L.rules&&!p&&a.jsx(rm,{rules:n,rulesTitle:i,termsText:s,primaryColor:o,openTerms:()=>g(!0)}),L.rules&&p&&a.jsx(om,{termsTitle:l,termsText:s}),L.inviteCard&&a.jsx(Wo,{inviteLink:c,inviteCardTitle:d,inviteCardSubtext:v,primaryColor:o})]}),a.jsx(gm,{children:a.jsx(Te,{loading:f,style:{width:"100%"},children:a.jsx(wm,{onClick:A,children:I})})})]})})},bm=u("div")({name:"Container",class:"c1qjj4d4",propsAsIs:!1}),xm=u("div")({name:"CloseIconWrap",class:"c1lg6b8a",propsAsIs:!1}),Lm=()=>O,Em=u(Lm())({name:"CloseIcon",class:"c159el66",propsAsIs:!0}),km=u("div")({name:"Title",class:"t16xmufv",propsAsIs:!1}),Sm=u("img")({name:"SponsorLogo",class:"s83lc21",propsAsIs:!1}),Im=u("div")({name:"PresentsTitle",class:"p1p7igia",propsAsIs:!1}),Tm=u("div")({name:"Subtitle",class:"s1eftsbu",propsAsIs:!1}),jm=u("div")({name:"Description",class:"d8uezec",propsAsIs:!1}),Am=u("button")({name:"ActionButton",class:"a1h1bk90",propsAsIs:!1}),ra=({close:e,action:t,onboarding:n})=>{var r,i,l,s,o,c,d,v;return a.jsxs(bm,{children:[a.jsx(xm,{onClick:e,children:a.jsx(Em,{name:"icon-cross"})}),((i=(r=n==null?void 0:n.titleCard)==null?void 0:r.media)==null?void 0:i.sponsorLogo)&&a.jsxs(km,{children:[a.jsx(Sm,{alt:"sponsor-logo",src:(s=(l=n==null?void 0:n.titleCard)==null?void 0:l.media)==null?void 0:s.sponsorLogo}),a.jsx(Im,{children:"PRESENTS"})]}),((o=n==null?void 0:n.titleCard)==null?void 0:o.title)&&a.jsx(Tm,{children:(c=n==null?void 0:n.titleCard)==null?void 0:c.title}),((d=n==null?void 0:n.titleCard)==null?void 0:d.subtitle)&&a.jsx(jm,{children:(v=n==null?void 0:n.titleCard)==null?void 0:v.subtitle}),a.jsx(Am,{onClick:t,children:"Play Now"})]})},G0=[{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_1.png",tagline:"",headline:a.jsxs(a.Fragment,{children:["Welcome to ",a.jsx("br",{})," Live Challenge"]})},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_2.png",headline:"Live insights, polls, trivia and predictions."},{graphicSrc:"https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/dark/step_3.png",headline:"Win points and play against friends."}],$m=u("div")({name:"OnboardingContainer",class:"o1xni1kr",propsAsIs:!1}),Rm=()=>ot,Vm=u(Rm())({name:"OnboardingNotificationContainer",class:"o1vnouv7",propsAsIs:!0}),ia=u("div")({name:"InnerContainer",class:"i59uefw",propsAsIs:!1}),_m=u("div")({name:"OnboardingOverlap",class:"ovnr8ov",propsAsIs:!1}),Nm=({deepLink:e,onboardingOpts:t,notification:n,gamification:r,loading:i,sdk:l,throttled:s})=>{var o,c,d,v,C,f,y;const b=D(r.friends.getStore()),[x,E]=w.useState(void 0),h=w.useMemo(()=>{var p,g;const L=l.getInviter();return L?(g=(p=b.data)==null?void 0:p.find(({slId:S})=>S===L))==null?void 0:g.name:""},[b.data,l]);return w.useEffect(()=>{const p=e.$store.subscribe(g=>{g&&E(g.data)});return()=>{p()}},[e.$store]),a.jsxs($m,{children:[a.jsx(n4,{loading:i,rules:[{label:"Answer as many questions as you like.",icon:"icon-btn-feature-groups"},{label:"Win points for each correct trivia or prediction answer.",icon:"icon-thumb-up"},{label:"Top the leader board and best your friends.",icon:"icon-trophy"}],rulesBtnLabel:(o=t.rules)==null?void 0:o.buttonLabel,rulesTitle:(c=t.rules)==null?void 0:c.heading,termsTitle:"Terms and Conditions",termsText:(d=t.rules)==null?void 0:d.terms,steps:G0,primaryColor:(v=t.inviteCard)==null?void 0:v.iconColor,inviteLink:x,inviteCardTitle:(C=t.inviteCard)==null?void 0:C.heading,inviteCardSubtext:(f=t.inviteCard)==null?void 0:f.subtext,inviteCardBtnLabel:(y=t.inviteCard)==null?void 0:y.buttonLabel,onClose:()=>{var p;(p=n.close)==null||p.call(n)},gamification:r,sdk:l,inviterName:h}),s&&a.jsx(_m,{})]})},Mm=({sdk:e,notification:t,saveHeight:n,style:r,appNode:i,sdkInDesktopView:l,responsiveStore:s})=>{const o=w.useRef(null),c=t.data.onboarding,[d,v]=w.useState(c==null?void 0:c.instantOpen),C=e.getFeature(k.SdkOverlayType.GAMES),f=w.useMemo(()=>G0==null?void 0:G0.map(({graphicSrc:E})=>E),[]),{screen:y}=D(s,{keys:["screen"]});w.useLayoutEffect(()=>{var E;n(((E=o.current)==null?void 0:E.getBoundingClientRect().height)||0)},[n]);const{loading:b,throttled:x}=t4(f);return d&&C&&c&&i.current?a.jsx(Ki,{container:i,useContainer:!l,children:a.jsx(Nm,{throttled:x,notification:t,setOpened:v,gamification:C,onboardingOpts:c,deepLink:C.deepLink,loading:b,renderToNode:i,sdk:e})}):a.jsxs(a.Fragment,{children:[a.jsx(ia,{ref:o,style:{position:"absolute",visibility:"hidden"},children:a.jsx(ra,{close:()=>{},action:()=>{},onboarding:c})}),a.jsx(Vm,{style:r,hiding:t.hiding,children:a.jsx(ia,{children:a.jsx(ra,{close:t.close,action:()=>{var E;v(!0),(((E=i.current)==null?void 0:E.getBoundingClientRect().y)||0)<0&&ei(i,y.size,{behavior:"smooth"})},onboarding:c})})})]})},Om=u("button")({name:"Container",class:"crkmfw1",propsAsIs:!1}),Pm=u("div")({name:"Content",class:"c11awpy4",propsAsIs:!1}),Hm=u("span")({name:"Title",class:"t154z7mh",propsAsIs:!1}),r4=({title:e,onClick:t,className:n,style:r})=>a.jsx(Om,{onClick:t,className:n,style:r,children:a.jsxs(Pm,{children:[a.jsx(O,{name:"iconUp"}),e&&a.jsx(Hm,{children:e})]})}),Dm=()=>ot,Fm=u(Dm())({name:"Container",class:"c8ol1ve",propsAsIs:!0}),i4=u("div")({name:"InnerContainer",class:"iqfywam",propsAsIs:!1}),zm=()=>i4,Bm=u(zm())({name:"HiddenContainer",class:"hokmtod",propsAsIs:!0}),Um=u("div")({name:"NotificationRefreshing",class:"n192d1q8",propsAsIs:!1}),Zm=()=>r4,qm=u(Zm())({name:"Pill",class:"p1lha68t",propsAsIs:!0}),Qm=e=>{const[t,n]=w.useState(0),r=w.useRef(null),i=w.useMemo(()=>new ResizeObserver(o=>{var c;for(const d of o)if(d.contentBoxSize){const v=(c=r.current)==null?void 0:c.getBoundingClientRect();v&&n(v.height)}}),[]),l=w.useCallback(o=>{r.current=o},[]),s=w.useCallback(o=>{n(o)},[]);return w.useEffect(()=>{const o=r.current;return o?(i.observe(o),()=>{i.unobserve(o)}):()=>{}},[e]),w.useEffect(()=>()=>{i.disconnect()}),[l,t,s]},Wm=({sdk:e,notification:t,appNode:n,responsiveStore:r,hasActiveFeature:i})=>{var l,s;const{sdkInDesktopView:o}=D(r,{keys:["sdkInDesktopView"]}),{sdk:c}=Yn(),[d,v,C]=Qm(t.id);let f=v;return i||(f="auto"),t.type===exports.NotificationType.QUESTION?a.jsxs(a.Fragment,{children:[a.jsx(Bm,{ref:d,children:a.jsx(W0,{...t})}),a.jsxs(Fm,{style:{height:t.hiding?0:f},hiding:t.hiding,children:[a.jsx(i4,{style:{height:"100%"},children:a.jsx(W0,{...t,controlVideo:c==null?void 0:c.controlVideoPlayer})}),a.jsx(Um,{},t.id)]})]}):t.type===exports.NotificationType.QUESTION_RESOLVED&&(s=(l=t.data)==null?void 0:l.question)!=null&&s.predictionResult?a.jsx(e4,{style:{height:t.hiding?0:v},saveHeight:C,close:t.close,hiding:t.hiding,...t.data.question}):t.type===exports.NotificationType.ONBOARDING?a.jsx(Mm,{style:{height:t.hiding?0:f},saveHeight:C,sdk:e,notification:t,sdkInDesktopView:o,appNode:n,responsiveStore:r}):null},Gm="p7vfi6t",Km=({pill:e,setPill:t,appNode:n,headerNode:r,scrollNode:i,responsiveStore:l,scrollStore:s})=>{var o,c;const{screen:d}=D(l,{keys:["screen"]}),{tabsShown:v,scrollPosition:C}=D(s,{keys:["tabsShown","scrollPosition"]});w.useEffect(()=>{l.get().sdkInDesktopView?C<50&&t(null):C>-50&&t(null)},[C,l,t]);const f=l.get().sdkInDesktopView?n:r;return!e||!f.current?null:V2.createPortal(a.jsx(qm,{title:e.type===exports.NotificationType.QUESTION_RESOLVED?"Prediction result":`New ${((c=N2[(o=e.data)==null?void 0:o.questionType])==null?void 0:c.label)||"notification"}`,onClick:()=>{var y;l.get().sdkInDesktopView?(y=i.current)==null||y.scrollTo({top:0,behavior:"smooth"}):ei(n,d.size,{behavior:"smooth"}),t(null)},className:$e(v&&Gm,"sl-pill-button")}),f.current)},Ym=({sdk:e,headerNode:t,scrollNode:n,responsiveStore:r,appNode:i,scrollStore:l,hasActiveFeature:s})=>{const[o]=w.useState(e.getNotificationsStore()),c=D(o),[d,v]=w.useState(null),C=w.useMemo(()=>e.getActiveNotification(),[e,c]);return w.useEffect(()=>{C&&_2.emit("notification",{action:"rendered",payload:{questionId:C.data.questionId,questionType:C.data.questionType}})},[C]),w.useEffect(()=>{const{sdkInDesktopView:f,sdkInView:y}=r.get();C&&(f||y)&&(!f&&y&&v(C),f&&window.requestAnimationFrame(()=>{l.get().scrollPosition!==0&&v(C)}))},[C]),w.useEffect(()=>{C||v(null)},[C]),a.jsxs(a.Fragment,{children:[!d&&C&&a.jsx(Wm,{appNode:i,sdk:e,hasActiveFeature:s,notification:C,responsiveStore:r}),d&&a.jsx(Km,{pill:d,setPill:v,appNode:i,notification:C,headerNode:t,scrollNode:n,scrollStore:l,responsiveStore:r})]})},Xm=e=>{const t=D(e.status),n=D(e.sdkStore.slStreamId),r=D(e.userId()),i=D(e.getActiveFeature()),l=t==="ready"&&!!n.data;return w.useEffect(()=>{const s=e.getFeature(k.SdkOverlayType.GAMES);s&&i!==k.SdkOverlayType.GAMES&&(s.closeQuestion(),s.closeUser()),s==null||s.openedQuestionId.subscribe(o=>{o&&i!==k.SdkOverlayType.GAMES&&e.openFeature(k.SdkOverlayType.GAMES)})},[i,e]),{sdkReady:l,activeFeature:i,isLogged:!!r}},Jm=({sdk:e,className:t,scrollStore:n,appNode:r,scrollNode:i,responsiveStore:l})=>{const[,s]=ua(e);return a.jsx(rf,{className:t,scrollNode:i,appNode:r,scrollStore:n,feature:s,responsiveStore:l,sdk:e})},eC=({sdk:e,className:t,appNode:n,responsiveStore:r})=>{const i=D(e.featuresList.getStore());return i?Array.from(i,l=>{const s=e.getFeature(l);return s?a.jsx(lf,{className:t,appNode:n,feature:s,responsiveStore:r,sdk:e},l):null}):null},tC=({sdk:e,topNavigation:t})=>{const n=w.useRef(null),r=w.useRef(null),[i]=T6(n),[l,s]=A6(n,i),{sdkReady:o,activeFeature:c,isLogged:d}=Xm(e),v=!!o;ma(n,{enabled:v,event:"click",listener:ha});const C=w.useMemo(()=>({sdk:e,topNavigation:t}),[e,t]);return w.useEffect(()=>{Promise.resolve().then(()=>require("./gamification-feature.js"))},[]),a.jsx(Ca.Provider,{value:C,children:a.jsxs(N4,{ref:n,className:t?"":"c10llmat",children:[v&&t&&a.jsx(Sf,{className:e2,sdk:e,ref:r}),v&&!t&&!!c&&a.jsx(kf,{className:$e(e2,"sl-hide-on-modal"),sdk:e,ref:r}),a.jsxs(aa,{className:"sl-hide-on-modal",ref:l,"data-nav":(!!c&&v).toString(),children:[v&&a.jsx(Ym,{sdk:e,scrollNode:l,headerNode:r,appNode:n,scrollStore:s,responsiveStore:i,hasActiveFeature:!!c}),v&&a.jsx(Jm,{scrollStore:s,responsiveStore:i,scrollNode:l,appNode:n,className:e2,sdk:e}),v&&a.jsx(eC,{responsiveStore:i,appNode:n,className:e2,sdk:e})]}),v&&!d&&a.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:"You are not logged in."})]})})},l4=({children:e,customTheme:t,themeMode:n,style:r})=>a.jsx("div",{className:"StreamLayerSDKTheme",children:a.jsx("div",{className:$e($6,n,t),style:r,children:e})}),s4=()=>{const{sdk:e}=w.useContext(O1);return e},nC=()=>{const{event:e}=w.useContext(O1);return e},a4=()=>{const{sdk:e}=w.useContext(O1),[t,n]=w.useState({});return w.useEffect(()=>{var r;return e!=null&&e.options?(r=e==null?void 0:e.options)==null?void 0:r.subscribe(i=>{n({theme:i.theme,themeMode:i.themeMode})}):()=>{}},[e==null?void 0:e.options]),t},o4=()=>{const{sdk:e}=w.useContext(O1),[t,n]=w.useState({});return w.useEffect(()=>e!=null&&e.uiState?e==null?void 0:e.uiState.subscribe(r=>{n({...r})}):()=>{},[e==null?void 0:e.uiState]),t},rC=({event:e,topNavigation:t,theme:n,withSidebarNotification:r=!0})=>{const{sdk:i,status:l}=w.useContext(O1),s=o4(),o=a4(),{event:c}=w.useContext(O1);if(l===Kn.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return l===Kn.CONNECTED?a.jsx("div",{className:"StreamLayerSDK",children:"wait"}):i===null?a.jsx("div",{className:"StreamLayerSDK",children:"sdk not initialized"}):!s.app&&!s.appNotification||!s.app&&s.appNotification&&!r?null:a.jsx("div",{className:"StreamLayerSDK",children:a.jsx(l4,{customTheme:n??o.theme,themeMode:o.themeMode,children:a.jsx(tC,{sdk:i,event:(c==null?void 0:c.current)||e,topNavigation:t})})})},c4=({event:e})=>{const t=s4(),n=nC();return w.useEffect(()=>(t&&(e&&(t.createEventSession(e),n&&(n.current=e)),!e&&(n!=null&&n.current)&&(t.createEventSession(""),n.current="")),()=>{t&&t.disableApp()}),[e,n,t]),null};var Kn=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(Kn||{});const iC={status:0,sdk:null},O1=w.createContext(iC),lC=({sdkKey:e,theme:t,themeMode:n,plugins:r,children:i,event:l,production:s=!0,autoEnable:o=!0,withAdNotification:c,withAd:d=!0,betPack:v=!1,hideFriends:C,skipOnboarding:f,friendsTab:y="enabled",onDeepLinkHandled:b,videoPlayerController:x,onContentActivate:E})=>{const h=k.useStreamLayerApp({sdkKey:e,plugins:r,production:s,autoEnable:o,onDeepLinkHandled:b,videoPlayerController:x,onContentActivate:E,hideFriends:C,skipOnboarding:f,withAdNotification:c,withAd:d,friendsTab:y,betPack:v}),p=w.useRef(""),g=w.useMemo(()=>h?{sdk:h,status:2,event:p}:{status:1,sdk:null,event:p},[h]);return w.useEffect(()=>{h&&(h.options.setKey("friendsTab",y),h.options.setKey("theme",t),h.options.setKey("themeMode",n),h.options.setKey("skipOnboarding",f),h.options.setKey("betPack",v))},[h,y,t,n,f,v]),w.useEffect(()=>()=>{b&&(h==null||h.removeDeepLinkHandler(b)),x&&(h==null||h.removeVideoPlayerController(x))},[h]),w.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!e,onDeepLinkHandled:!!b,videoPlayerController:!!x})},[e,b,x]),a.jsxs(O1.Provider,{value:g,children:[l!==void 0&&a.jsx(c4,{event:l}),i]})};exports.A=r1;exports.A$1=xn;exports.D=Ho;exports.Df=V2;exports.Ht=_o;exports.I=t4;exports.P=ef;exports.R=pa;exports.S=ti;exports.S$1=Fo;exports.StreamLayerContext=O1;exports.StreamLayerProvider=lC;exports.StreamLayerSDKEvent=c4;exports.StreamLayerSDKReact=rC;exports.StreamLayerStatus=Kn;exports.Y=hr;exports.a=zo;exports.b=ri;exports.commonjsGlobal=Jt;exports.createLogger=lt;exports.cx_default=$e;exports.d=fr;exports.e=N2;exports.eventBus=_2;exports.f=ot;exports.getAugmentedNamespace=la;exports.getDefaultExportFromCjs=K0;exports.h=l4;exports.h$1=e2;exports.h$2=r4;exports.i=So;exports.jt=Vo;exports.k=Yo;exports.o=u7;exports.p=Po;exports.p$1=ua;exports.rn=n4;exports.styled_default=u;exports.u1=O;exports.useStore=D;exports.useStreamLayer=s4;exports.useStreamLayerTheme=a4;exports.useStreamLayerUI=o4;exports.v=J0;exports.v$1=ha;exports.w=W0;exports.x=Ki;exports.x$1=Ko;exports.y=ma;exports.y$1=ga;exports.z=Bo;exports.z$1=li;exports.z$2=e4;
|