@streamlayer/react 1.21.4 → 1.22.2

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.
Files changed (168) hide show
  1. package/lib/app/masters.d.ts +2 -5
  2. package/lib/app/pause-ad.d.ts +1 -10
  3. package/lib/app/useStreamLayerApp.d.ts +1 -23
  4. package/lib/cjs/Question.js +1 -0
  5. package/lib/cjs/advertisement.js +40 -40
  6. package/lib/cjs/analytics.js +1 -0
  7. package/lib/cjs/auth.js +1 -1
  8. package/lib/cjs/bet-pack.js +1 -1
  9. package/lib/cjs/gamification-feature.js +1 -1
  10. package/lib/cjs/hooks-B0Qttldg.js +1 -0
  11. package/lib/cjs/index-DSi8Qgfs.js +1 -0
  12. package/lib/cjs/index.js +1 -1
  13. package/lib/cjs/index10.js +1 -0
  14. package/lib/cjs/index11.js +4 -0
  15. package/lib/cjs/index12.js +1 -0
  16. package/lib/cjs/index13.js +1 -0
  17. package/lib/cjs/index14.js +1 -0
  18. package/lib/cjs/index15.js +1 -0
  19. package/lib/cjs/index16.js +5 -0
  20. package/lib/cjs/index2.js +1 -5
  21. package/lib/cjs/index3.js +1 -0
  22. package/lib/cjs/index4.js +5 -0
  23. package/lib/cjs/index5.js +1 -0
  24. package/lib/cjs/index6.js +1 -0
  25. package/lib/cjs/index7.js +5 -0
  26. package/lib/cjs/index8.js +1 -0
  27. package/lib/cjs/index9.js +1 -0
  28. package/lib/cjs/insight.js +1 -1
  29. package/lib/cjs/masters.js +1 -1
  30. package/lib/cjs/masters2.js +6 -6
  31. package/lib/cjs/notification.js +1 -1
  32. package/lib/cjs/pause-ad.js +1 -1
  33. package/lib/cjs/points.js +1 -1
  34. package/lib/cjs/sl-types.js +15 -0
  35. package/lib/cjs/storage.js +1 -0
  36. package/lib/cjs/theme.js +17 -0
  37. package/lib/cjs/useStreamLayerApp.js +1 -1
  38. package/lib/cjs/useStreamLayerApp2.js +9 -9
  39. package/lib/cjs/utils.js +47 -0
  40. package/lib/cjs/vast-client.min.js +1 -0
  41. package/lib/classic/app/masters.d.ts +2 -5
  42. package/lib/classic/app/pause-ad.d.ts +1 -10
  43. package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
  44. package/lib/classic/cjs/Question.js +1 -0
  45. package/lib/classic/cjs/advertisement.js +40 -40
  46. package/lib/classic/cjs/analytics.js +1 -0
  47. package/lib/classic/cjs/auth.js +1 -1
  48. package/lib/classic/cjs/bet-pack.js +4 -4
  49. package/lib/classic/cjs/gamification-feature.js +1 -1
  50. package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
  51. package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
  52. package/lib/classic/cjs/index.js +1 -1
  53. package/lib/classic/cjs/index10.js +1 -0
  54. package/lib/classic/cjs/index11.js +1 -0
  55. package/lib/classic/cjs/index12.js +1 -0
  56. package/lib/classic/cjs/index13.js +4 -0
  57. package/lib/classic/cjs/index2.js +5 -0
  58. package/lib/classic/cjs/index3.js +1 -0
  59. package/lib/classic/cjs/index4.js +1 -0
  60. package/lib/classic/cjs/index5.js +1 -0
  61. package/lib/classic/cjs/index6.js +5 -0
  62. package/lib/classic/cjs/index7.js +1 -0
  63. package/lib/classic/cjs/index8.js +1 -0
  64. package/lib/classic/cjs/index9.js +1 -0
  65. package/lib/classic/cjs/insight.js +1 -1
  66. package/lib/classic/cjs/notification.js +1 -1
  67. package/lib/classic/cjs/notification2.js +1 -0
  68. package/lib/classic/cjs/pause-ad.js +1 -1
  69. package/lib/classic/cjs/points.js +1 -1
  70. package/lib/classic/cjs/sl-types.js +15 -0
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
  73. package/lib/classic/cjs/utils.js +47 -0
  74. package/lib/classic/cjs/vast-client.min.js +1 -0
  75. package/lib/classic/es/Question.js +392 -0
  76. package/lib/classic/es/advertisement.js +10375 -10374
  77. package/lib/classic/es/analytics.js +28 -0
  78. package/lib/classic/es/auth.js +4 -4
  79. package/lib/classic/es/bet-pack.js +56 -51
  80. package/lib/classic/es/gamification-feature.js +1 -1
  81. package/lib/classic/es/hooks-B0Qttldg.js +98 -0
  82. package/lib/classic/es/index-DSi8Qgfs.js +65 -0
  83. package/lib/classic/es/index.js +14 -15
  84. package/lib/classic/es/index10.js +87 -0
  85. package/lib/classic/es/index11.js +2361 -0
  86. package/lib/classic/es/index12.js +183 -0
  87. package/lib/classic/es/index13.js +835 -0
  88. package/lib/classic/es/index2.js +2621 -0
  89. package/lib/classic/es/index3.js +64 -0
  90. package/lib/classic/es/index4.js +19 -0
  91. package/lib/classic/es/index5.js +285 -0
  92. package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
  93. package/lib/classic/es/index7.js +7 -0
  94. package/lib/classic/es/index8.js +11 -0
  95. package/lib/classic/es/index9.js +319 -0
  96. package/lib/classic/es/insight.js +31 -32
  97. package/lib/classic/es/notification.js +7 -1006
  98. package/lib/classic/es/notification2.js +1117 -0
  99. package/lib/classic/es/pause-ad.js +139 -138
  100. package/lib/classic/es/points.js +39 -38
  101. package/lib/classic/es/sl-types.js +258 -0
  102. package/lib/classic/es/useStreamLayerApp.js +1 -2
  103. package/lib/classic/es/useStreamLayerApp2.js +2400 -2283
  104. package/lib/classic/es/utils.js +76 -0
  105. package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
  106. package/lib/classic/index.d.ts +5 -13
  107. package/lib/classic/masters.d.ts +1 -1
  108. package/lib/dist/cjs/index.js +1 -1
  109. package/lib/dist/cjs/masters.js +30 -30
  110. package/lib/dist/es/index.js +2 -2
  111. package/lib/dist/es/masters.js +5813 -6063
  112. package/lib/dist/index.d.ts +1332 -0
  113. package/lib/dist/style.css +1 -1
  114. package/lib/es/Question.js +136 -0
  115. package/lib/es/advertisement.js +10375 -10374
  116. package/lib/es/analytics.js +28 -0
  117. package/lib/es/auth.js +4 -4
  118. package/lib/es/bet-pack.js +7 -6
  119. package/lib/es/gamification-feature.js +1 -1
  120. package/lib/es/hooks-B0Qttldg.js +98 -0
  121. package/lib/es/index-DSi8Qgfs.js +65 -0
  122. package/lib/es/index.js +13 -14
  123. package/lib/es/index10.js +267 -0
  124. package/lib/es/index11.js +835 -0
  125. package/lib/es/index12.js +183 -0
  126. package/lib/es/index13.js +319 -0
  127. package/lib/es/index14.js +87 -0
  128. package/lib/es/index15.js +2355 -0
  129. package/lib/es/index16.js +1254 -0
  130. package/lib/es/index2.js +1349 -3363
  131. package/lib/es/index3.js +64 -0
  132. package/lib/es/index4.js +3418 -0
  133. package/lib/es/index5.js +19 -0
  134. package/lib/es/index6.js +285 -0
  135. package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
  136. package/lib/es/index8.js +7 -0
  137. package/lib/es/index9.js +11 -0
  138. package/lib/es/insight.js +31 -32
  139. package/lib/es/masters.js +6 -5
  140. package/lib/es/masters2.js +189 -176
  141. package/lib/es/notification.js +124 -119
  142. package/lib/es/pause-ad.js +140 -139
  143. package/lib/es/points.js +40 -38
  144. package/lib/es/sl-types.js +277 -0
  145. package/lib/es/storage.js +113 -0
  146. package/lib/es/theme.js +47 -0
  147. package/lib/es/useStreamLayerApp.js +1 -2
  148. package/lib/es/useStreamLayerApp2.js +2399 -2282
  149. package/lib/es/utils.js +76 -0
  150. package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
  151. package/lib/index.d.ts +5 -13
  152. package/lib/masters.d.ts +1 -1
  153. package/lib/style.css +1 -1
  154. package/package.json +13 -48
  155. package/lib/app/event.d.ts +0 -6
  156. package/lib/app/provider.d.ts +0 -49
  157. package/lib/cjs/index-l-eyvmpL.js +0 -5
  158. package/lib/cjs/provider.js +0 -84
  159. package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
  160. package/lib/classic/app/event.d.ts +0 -6
  161. package/lib/classic/app/provider.d.ts +0 -49
  162. package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
  163. package/lib/classic/cjs/provider.js +0 -68
  164. package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
  165. package/lib/classic/es/provider.js +0 -7617
  166. package/lib/dist/cjs/gamification-feature2.js +0 -1
  167. package/lib/dist/es/gamification-feature2.js +0 -285
  168. package/lib/es/provider.js +0 -7693
@@ -0,0 +1 @@
1
+ "use strict";const l=require("react"),a=require("./index3.js"),o=require("./sl-types.js"),c=t=>[e=>(...n)=>(t&&a.eventBus.emit(t==null?void 0:t.type,t),e?e(n):null)],u=t=>{const e=t.target;e instanceof HTMLAnchorElement&&e.target==="_blank"&&e.getAttribute("data-a")==="web-link"&&a.eventBus.emit("poll",{action:"navigated",payload:{}}),e instanceof Element&&e.getAttribute("data-a")==="intr"&&a.eventBus.emit("interactions",{action:"tap",payload:{}})},d=(t,e)=>{const n=window.innerWidth<o.A.xl;l.useEffect(()=>{const i=n&&e.useDomNode?document:t.current,r=s=>{e.listener(s,t)};return e.enabled&&(i==null||i.addEventListener(e.event,r)),()=>{i==null||i.removeEventListener(e.event,r)}},[n,e.enabled,e.listener])};exports.A=u;exports.b=d;exports.f=c;
package/lib/cjs/auth.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),o=require("./provider.js"),u=({token:r,schema:t})=>{const e=o.useStreamLayer();return i.useEffect(()=>{r&&t&&e&&e.authorizationBypass(t,r),e&&(e.withAuth=!0)},[r,t,e]),null};exports.StreamLayerLogin=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),o=require("./hooks-B0Qttldg.js"),u=({token:e,schema:r})=>{const t=o.B();return i.useEffect(()=>{e&&r&&t&&t.authorizationBypass(r,e),t&&(t.withAuth=!0)},[e,r,t]),null};exports.StreamLayerLogin=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("./provider.js"),c=require("./index2.js"),o=require("react"),r=e=>{const t=e.target;t instanceof Element&&t.getAttribute("data-a")==="intr"&&n.eventBus.emit("interactions",{action:"tap",payload:{}})},s=()=>{const e=n.useStreamLayer();return o.useEffect(()=>(document==null||document.addEventListener("click",r),()=>{document==null||document.removeEventListener("click",r)}),[]),e?i.jsx(c.Q,{sdk:e}):null};exports.BetPackProvider=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("./index3.js"),c=require("./index4.js"),o=require("react"),s=require("./hooks-B0Qttldg.js"),n=e=>{const t=e.target;t instanceof Element&&t.getAttribute("data-a")==="intr"&&i.eventBus.emit("interactions",{action:"tap",payload:{}})},u=()=>{const e=s.B();return o.useEffect(()=>(document==null||document.addEventListener("click",n),()=>{document==null||document.removeEventListener("click",n)}),[]),e?r.jsx(c.Q,{sdk:e}):null};exports.BetPackProvider=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./provider.js");exports.default=e.g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index2.js");exports.default=e.B;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("react"),E=require("react/jsx-runtime"),w=require("./useStreamLayerApp2.js"),f=({event:e,internal:r})=>{const o=m(),s=L();return n.useEffect(()=>(o&&(e&&(o.createEventSession(e,r),s&&(s.current=e)),!e&&s!=null&&s.current&&(o.createEventSession("",r),s.current="")),()=>{o&&o.disableApp()}),[e,r,s,o]),null};var h=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(h||{});const x={status:0,sdk:null},i=n.createContext(x),N=({sdkKey:e,theme:r,themeMode:o,plugins:s,children:u,event:p,production:y=!0,autoEnable:C=!0,withAdNotification:S,withAd:A=!0,betPack:a=!1,hideFriends:D,skipOnboarding:c,friendsTab:v="enabled",onDeepLinkHandled:l,videoPlayerController:d,onContentActivate:K,containerId:b,webOS:P})=>{const t=w.$({sdkKey:e,plugins:s,production:y,autoEnable:C,onDeepLinkHandled:l,videoPlayerController:d,onContentActivate:K,hideFriends:D,skipOnboarding:c,withAdNotification:S,withAd:A,friendsTab:v,betPack:a,webOS:P}),k=n.useRef(""),g=n.useMemo(()=>t?{sdk:t,status:2,event:k}:{status:1,sdk:null,event:k},[t]);return n.useEffect(()=>{t&&(t.options.setKey("friendsTab",v),t.options.setKey("theme",r),t.options.setKey("themeMode",o),t.options.setKey("skipOnboarding",c),t.options.setKey("betPack",a),t.options.setKey("containerId",b))},[t,v,r,o,c,a,b]),n.useEffect(()=>()=>{l&&(t==null||t.removeDeepLinkHandler(l)),d&&(t==null||t.removeVideoPlayerController(d))},[t]),n.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!e,onDeepLinkHandled:!!l,videoPlayerController:!!d})},[e,l,d]),E.jsxs(i.Provider,{value:g,children:[p!==void 0&&E.jsx(f,{event:p}),u]})},m=()=>{const{sdk:e}=n.useContext(i);return e},L=()=>{const{event:e}=n.useContext(i);return e},O=()=>{const{sdk:e}=n.useContext(i),[r,o]=n.useState({});return n.useEffect(()=>{var s;return e!=null&&e.options?(s=e==null?void 0:e.options)==null?void 0:s.subscribe(u=>{o({theme:u.theme,themeMode:u.themeMode})}):()=>{}},[e==null?void 0:e.options]),r},T=()=>{const{sdk:e}=n.useContext(i),[r,o]=n.useState({});return n.useEffect(()=>e!=null&&e.uiState?e==null?void 0:e.uiState.subscribe(s=>{o({...s})}):()=>{},[e==null?void 0:e.uiState]),r};exports.B=m;exports.F=T;exports.Y=h;exports.c=i;exports.j=f;exports.q=N;exports.z=O;
@@ -0,0 +1 @@
1
+ "use strict";let n=[],i=0;const r=4;let s=o=>{let l=[],e={get(){return e.lc||e.listen(()=>{})(),e.value},lc:0,listen(t){return e.lc=l.push(t),()=>{for(let f=i+r;f<n.length;)n[f]===t?n.splice(f,r):f+=r;let u=l.indexOf(t);~u&&(l.splice(u,1),--e.lc||e.off())}},notify(t,u){let f=!n.length;for(let v of l)n.push(v,e.value,t,u);if(f){for(i=0;i<n.length;i+=r)n[i](n[i+1],n[i+2],n[i+3]);n.length=0}},off(){},set(t){let u=e.value;u!==t&&(e.value=t,e.notify(u))},subscribe(t){let u=e.listen(t);return t(e.value),u},value:o};return e},a=(o={})=>{let l=s(o);return l.setKey=function(e,t){let u=l.value;typeof t>"u"&&e in l.value?(l.value={...l.value},delete l.value[e],l.notify(u,e)):l.value[e]!==t&&(l.value={...l.value,[e]:t},l.notify(u,e))},l};exports.a=s;exports.i=a;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./provider.js");require("nanostores");require("react/jsx-runtime");require("react");require("lodash.throttle");require("react-dom");require("react-countup");const r=require("./notification.js");exports.StreamLayerProvider=e.StreamLayerProvider;exports.StreamLayerSDKEvent=e.StreamLayerSDKEvent;exports.StreamLayerSDKReact=e.StreamLayerSDKReact;exports.StreamLayerThemeProvider=e.h;exports.useStreamLayer=e.useStreamLayer;exports.useStreamLayerTheme=e.useStreamLayerTheme;exports.useStreamLayerUI=e.useStreamLayerUI;exports.StreamLayerSDKNotification=r.StreamLayerSDKNotification;exports.StreamLayerSDKNotificationUI=r.StreamLayerSDKNotificationUI;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const e=require("./hooks-B0Qttldg.js");require("react/jsx-runtime");require("./useStreamLayerApp2.js");const t=require("./index8.js"),a=require("./index2.js"),r=require("./notification.js");exports.StreamLayerProvider=e.q;exports.StreamLayerSDKEvent=e.j;exports.useStreamLayer=e.B;exports.useStreamLayerTheme=e.z;exports.useStreamLayerUI=e.F;exports.StreamLayerThemeProvider=t.h;exports.StreamLayerSDKReact=a.b;exports.StreamLayerSDKNotification=r.StreamLayerSDKNotification;exports.StreamLayerSDKNotificationUI=r.StreamLayerSDKNotificationUI;
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react/jsx-runtime"),D=require("./index14.js"),e=require("./sl-types.js"),h=require("./index13.js"),_=require("./index12.js"),c=require("./index6.js"),C=require("./useStreamLayerApp2.js"),y=require("react"),q=e.styled_default("div")({name:"Container",class:"c1vwopgc",propsAsIs:!1}),N=e.styled_default("div")({name:"QuestionTypeWrap",class:"qyktpt0",propsAsIs:!1}),P=()=>c.B1,T=e.styled_default(P())({name:"QuestionTypeIcon",class:"q951jdx",propsAsIs:!0}),k=e.styled_default("span")({name:"QuestionTypeTitle",class:"qss5f0e",propsAsIs:!1}),S=e.styled_default("button")({name:"CloseIconWrap",class:"c1ao1jtv",propsAsIs:!1}),Q=()=>c.B1,U=e.styled_default(Q())({name:"CloseIcon",class:"cvsl7l3",propsAsIs:!0}),O=D.O(S,{}),R=({webos:l,type:i,closeTimer:t,close:n,label:p,mastersApp:o})=>{const a=i?_.e[i]:{label:p,iconName:void 0};return s.jsxs(q,{children:[s.jsxs(N,{children:[(a==null?void 0:a.iconName)&&s.jsx(T,{"data-type-trivia":i===C.QuestionType.TRIVIA,"data-type-poll":i===C.QuestionType.POLL,"data-type-prediction":i===C.QuestionType.PREDICTION,"data-masters-app":!!o,name:a.iconName}),(a==null?void 0:a.label)&&s.jsx(k,{children:a.label})]}),t!=null&&t.seconds?s.jsx(h.y,{close:n,autoClose:t.auto,duration:t.seconds}):s.jsx(O,{webos:l,"data-a":"intr",onClick:n,type:"button","data-close-btn":"true",children:s.jsx(U,{"data-a":"intr",name:"icon-cross"})})]})},W="data:image/svg+xml,%3csvg%20width='103'%20height='18'%20viewBox='0%200%20103%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_104497)'%3e%3cpath%20d='M9.89618%203.45801C9.91951%203.45801%209.94451%203.46134%209.96784%203.46134C9.97618%203.46134%209.98284%203.46134%209.99118%203.46467H9.99784C10.0095%203.46467%2010.0212%203.46801%2010.0312%203.46801C10.0412%203.46801%2010.0462%203.46801%2010.0545%203.47134C10.0762%203.47467%2010.0962%203.47467%2010.1178%203.47634C10.1412%203.47967%2010.1662%203.48134%2010.1895%203.48467H10.2012C10.2462%203.48967%2010.2945%203.49634%2010.3395%203.50467C10.4512%203.52467%2010.5595%203.54801%2010.6662%203.57801C10.6928%203.58301%2010.7178%203.59301%2010.7445%203.60134H10.7478C10.7745%203.60967%2010.7995%203.61801%2010.8262%203.62467C10.8528%203.63301%2010.8778%203.64134%2010.9045%203.65134C10.9312%203.65967%2010.9562%203.66801%2010.9795%203.67967C11.0012%203.68801%2011.0212%203.69634%2011.0428%203.70634C11.0495%203.70967%2011.0578%203.71134%2011.0645%203.71467C11.0828%203.72301%2011.1012%203.72967%2011.1195%203.73801C11.1262%203.74134%2011.1312%203.74301%2011.1378%203.74634C11.1562%203.75467%2011.1712%203.76134%2011.1895%203.76967C11.1962%203.77301%2011.2045%203.77467%2011.2128%203.78134C11.2345%203.78967%2011.2528%203.79801%2011.2728%203.80967C11.2762%203.80967%2011.2795%203.81301%2011.2812%203.81301C11.3045%203.82467%2011.3295%203.83634%2011.3512%203.84801C11.3695%203.85634%2011.3878%203.86801%2011.4062%203.87634C11.4212%203.88134%2011.4328%203.89134%2011.4462%203.89967C11.4645%203.91134%2011.4828%203.91967%2011.5012%203.93134C11.5045%203.93467%2011.5078%203.93467%2011.5095%203.93634L11.5728%203.97467H11.5762L15.2178%206.18801L15.4412%206.32467C16.3228%206.90801%2016.9028%207.88467%2016.9028%208.99301C16.9028%2010.1013%2016.3262%2011.0763%2015.4445%2011.6613L15.2095%2011.803L11.5745%2014.0113H11.5712L11.5078%2014.0497C11.5078%2014.0497%2011.5012%2014.053%2011.4995%2014.0547C11.4812%2014.0663%2011.4628%2014.0747%2011.4445%2014.0863C11.4595%2014.078%2011.4745%2014.0697%2011.4895%2014.0597L5.94951%2017.433C5.94951%2017.433%205.94618%2017.433%205.94618%2017.4363L5.74451%2017.558H5.74118C5.19784%2017.863%204.55784%2018.0247%203.87784%2017.993C2.73618%2017.938%201.75784%2017.3463%201.19284%2016.4847C0.837844%2015.9413%200.64451%2015.2913%200.681177%2014.6013C0.71451%2013.983%200.922844%2013.4147%201.26118%2012.9397L1.26951%2012.9247L4.04451%208.99634L6.77784%205.12634C6.81118%205.07967%206.84784%205.03301%206.87784%204.98467C6.87451%204.98967%206.86951%204.99967%206.86284%205.00467C6.87118%204.98967%206.88118%204.97634%206.88951%204.96134C6.88951%204.95801%206.89284%204.95801%206.89284%204.95634C6.89618%204.95301%206.89951%204.94801%206.90118%204.94467C6.90118%204.94467%206.90118%204.94134%206.90451%204.94134C6.91951%204.92134%206.93451%204.90134%206.94618%204.87801C6.96118%204.85801%206.97618%204.83801%206.99118%204.81634C7.00618%204.79634%207.02118%204.77634%207.03618%204.75467C7.03951%204.75134%207.03951%204.74967%207.04284%204.74634C7.04618%204.74301%207.04618%204.74134%207.04951%204.74134C7.06451%204.72134%207.07951%204.70134%207.09784%204.67967C7.10951%204.66467%207.12118%204.65134%207.13451%204.63634C7.16784%204.59801%207.20118%204.56134%207.23784%204.52301C7.25284%204.50801%207.26451%204.49467%207.27951%204.47967C7.30118%204.45634%207.32118%204.43634%207.34618%204.41634C7.36451%204.39967%207.38284%204.38134%207.40118%204.36467C7.41951%204.34801%207.43451%204.33301%207.45284%204.31801C7.45618%204.31467%207.45951%204.31301%207.45951%204.31301C7.47118%204.30134%207.48118%204.29301%207.49284%204.28467C7.50451%204.27301%207.51951%204.26134%207.53284%204.25301C7.53618%204.24967%207.53951%204.24801%207.54118%204.24801C7.55951%204.23301%207.57451%204.21967%207.59284%204.20467C7.60784%204.18967%207.62618%204.17801%207.64118%204.16634C7.65618%204.15467%207.66784%204.14634%207.68284%204.13467C7.70118%204.11967%207.71951%204.10801%207.73784%204.09467C7.75284%204.08634%207.76451%204.07467%207.77951%204.06634C7.78618%204.06134%207.79451%204.05467%207.80284%204.05134C7.81784%204.03967%207.83284%204.03134%207.84784%204.02301C7.85118%204.01967%207.85618%204.01801%207.85951%204.01467C7.87784%204.00301%207.89618%203.99134%207.91118%203.98301C7.91784%203.97801%207.92618%203.97467%207.93284%203.96801C7.94784%203.95967%207.95951%203.95134%207.97451%203.94134C7.98284%203.93634%207.99284%203.92967%208.00118%203.92467C8.01618%203.91634%208.03451%203.90801%208.04951%203.89634C8.05284%203.89301%208.05784%203.89134%208.06451%203.88801C8.08618%203.87634%208.10451%203.86467%208.12451%203.85634C8.12784%203.85301%208.13118%203.85301%208.13618%203.85134C8.15784%203.83967%208.17784%203.82801%208.19951%203.81967C8.19951%203.81967%208.20284%203.81967%208.20284%203.81634C8.22618%203.80467%208.24784%203.79301%208.27284%203.78134C8.27284%203.78134%208.27618%203.78134%208.27618%203.77801C8.29451%203.76967%208.31284%203.76134%208.33284%203.75134C8.34118%203.74801%208.35118%203.74301%208.35951%203.73967C8.37118%203.73467%208.38284%203.72801%208.39618%203.72467C8.41118%203.71967%208.42284%203.71301%208.43784%203.70801C8.46118%203.69967%208.48284%203.69134%208.50784%203.68134C8.52284%203.67634%208.53451%203.66967%208.54951%203.66634C8.57118%203.65801%208.59118%203.65134%208.61284%203.64301C8.63118%203.63801%208.65284%203.63134%208.66951%203.62301C8.75451%203.59634%208.83784%203.57134%208.92284%203.54967C8.94118%203.54467%208.96284%203.54134%208.97951%203.53801C9.08451%203.51467%209.19451%203.49467%209.30284%203.48301C9.32951%203.47967%209.35784%203.47801%209.38451%203.47467C9.42118%203.47134%209.45951%203.46967%209.49618%203.46634C9.51118%203.46634%209.52284%203.46301%209.53784%203.46301H9.55951C9.58951%203.46301%209.61618%203.45967%209.64784%203.45967H9.73784C9.79451%203.45967%209.84284%203.45967%209.89451%203.46301L9.89618%203.45801ZM10.6662%2014.413C10.5612%2014.4413%2010.4512%2014.4647%2010.3395%2014.4863C10.4512%2014.4663%2010.5595%2014.443%2010.6662%2014.413ZM9.56118%2014.5313H9.56951C9.56118%2014.5313%209.54784%2014.5313%209.53951%2014.528C9.54618%2014.528%209.55451%2014.5313%209.56118%2014.5313ZM7.08784%2013.293C7.05451%2013.253%207.02451%2013.2147%206.99451%2013.1747C7.02451%2013.2147%207.05784%2013.253%207.08784%2013.293ZM6.90284%2013.043C6.90284%2013.043%206.90618%2013.0463%206.90618%2013.048C6.90284%2013.0447%206.90284%2013.043%206.89951%2013.0363C6.89618%2013.033%206.89618%2013.0297%206.89284%2013.0247C6.86951%2012.9897%206.84784%2012.953%206.82284%2012.918C6.84451%2012.953%206.86784%2012.9913%206.88951%2013.0247C6.89618%2013.0297%206.89784%2013.0363%206.90118%2013.0413L6.90284%2013.043ZM6.89451%2013.0263C6.85784%2012.968%206.81951%2012.913%206.77618%2012.858L6.89451%2013.0263Z'%20fill='%231652A8'%20style='fill:%231652A8;fill:color(display-p3%200.0863%200.3216%200.6588);fill-opacity:1;'/%3e%3cg%20opacity='0.85'%3e%3cpath%20d='M5.77088%200.453306L5.97588%200.578306L5.97921%200.581639L11.5225%203.94997C11.5075%203.94164%2011.4925%203.93331%2011.4775%203.92331C11.4959%203.93497%2011.5142%203.94331%2011.5325%203.95497C11.5359%203.95831%2011.5392%203.95831%2011.5409%203.95997L11.6042%203.99831H11.6075L15.2492%206.21164L15.4725%206.34831C16.3542%206.93164%2016.9342%207.9083%2016.9342%209.01664C16.9342%2010.125%2016.3575%2011.1%2015.4759%2011.685L15.2409%2011.8266L11.6059%2014.035H11.6025L11.5392%2014.0733C11.5392%2014.0733%2011.5325%2014.0766%2011.5309%2014.0783C11.5125%2014.09%2011.4942%2014.0983%2011.4759%2014.11C11.4642%2014.1183%2011.4492%2014.125%2011.4359%2014.1333C11.4175%2014.145%2011.3992%2014.1533%2011.3809%2014.1616C11.3575%2014.1733%2011.3359%2014.185%2011.3109%2014.1966C11.3075%2014.2%2011.3042%2014.2%2011.3025%2014.2C11.2842%2014.2116%2011.2625%2014.22%2011.2425%2014.2283C11.2359%2014.2316%2011.2275%2014.2333%2011.2192%2014.24C11.2009%2014.2483%2011.1859%2014.255%2011.1675%2014.2633C11.1609%2014.2666%2011.1592%2014.2683%2011.1525%2014.2683C11.1309%2014.2766%2011.1109%2014.285%2011.0859%2014.2966C11.0625%2014.3083%2011.0342%2014.3166%2011.0109%2014.325C10.9875%2014.3333%2010.9592%2014.345%2010.9359%2014.3533C10.9092%2014.3616%2010.8842%2014.37%2010.8575%2014.38C10.8309%2014.3883%2010.8059%2014.3966%2010.7792%2014.4033H10.7759C10.7492%2014.4116%2010.7242%2014.4183%2010.6975%2014.4266C10.5925%2014.455%2010.4825%2014.4783%2010.3709%2014.4983C10.3259%2014.5066%2010.2775%2014.5133%2010.2325%2014.5183C10.2259%2014.5183%2010.2242%2014.5183%2010.2209%2014.5216C10.1975%2014.525%2010.1725%2014.5283%2010.1492%2014.53C10.1009%2014.5366%2010.0525%2014.5383%2010.0042%2014.5416C9.92921%2014.5483%209.85254%2014.5483%209.77754%2014.5483H9.68088C9.65421%2014.5483%209.62921%2014.545%209.60254%2014.545C9.59421%2014.545%209.58088%2014.545%209.57254%2014.5416C9.53254%2014.5383%209.49088%2014.5366%209.45254%2014.5333C9.27421%2014.5166%209.09588%2014.4866%208.92754%2014.4466C8.90421%2014.44%208.87921%2014.435%208.85254%2014.4266C8.81921%2014.4183%208.78588%2014.41%208.74921%2014.3983C8.73088%2014.3933%208.70921%2014.3866%208.69254%2014.3816C8.66588%2014.3733%208.64088%2014.365%208.61421%2014.355C8.58754%2014.3466%208.56254%2014.3383%208.53921%2014.3266C8.51588%2014.3183%208.48754%2014.3066%208.46421%2014.2983C8.44088%2014.29%208.41921%2014.2816%208.39754%2014.27C8.38921%2014.2666%208.38254%2014.265%208.37421%2014.2583C8.35588%2014.25%208.33754%2014.2416%208.31754%2014.2316C8.31754%2014.2316%208.31421%2014.2316%208.31421%2014.2283C8.29088%2014.2166%208.26588%2014.205%208.24254%2014.1933C8.21921%2014.1816%208.19421%2014.17%208.17088%2014.155C8.14754%2014.1433%208.12254%2014.1283%208.10088%2014.1166C8.07754%2014.105%208.05254%2014.09%208.03088%2014.0766C8.00754%2014.0616%207.98588%2014.0483%207.96088%2014.0366C7.93754%2014.0216%207.91588%2014.0083%207.89421%2013.9933C7.87254%2013.9783%207.85254%2013.965%207.83088%2013.95C7.82754%2013.95%207.82754%2013.9466%207.82421%2013.945C7.80588%2013.9333%207.78754%2013.9183%207.76754%2013.905C7.76421%2013.9016%207.76088%2013.9016%207.75921%2013.9C7.74088%2013.885%207.72254%2013.8733%207.70421%2013.86C7.70088%2013.8566%207.69588%2013.855%207.69254%2013.8483C7.67421%2013.8333%207.65588%2013.82%207.63754%2013.805C7.63754%2013.805%207.63421%2013.805%207.63421%2013.8016C7.61588%2013.7866%207.59754%2013.7733%207.57754%2013.755C7.57421%2013.7516%207.57088%2013.7516%207.56921%2013.7483C7.55421%2013.7366%207.53921%2013.7216%207.52421%2013.71C7.51754%2013.705%207.51254%2013.6983%207.50588%2013.695C7.49421%2013.6833%207.47921%2013.6716%207.46588%2013.66C7.43921%2013.6366%207.41421%2013.6133%207.39088%2013.5866C7.37254%2013.57%207.35754%2013.5516%207.33921%2013.535C7.32754%2013.5233%207.31754%2013.5116%207.30588%2013.5C7.29421%2013.4883%207.28421%2013.48%207.27588%2013.4683C7.25754%2013.4516%207.24254%2013.43%207.22421%2013.4133C7.19088%2013.375%207.15754%2013.3383%207.12421%2013.2966C7.09088%2013.2566%207.06088%2013.2183%207.03088%2013.1783C7.01588%2013.1583%207.00088%2013.1383%206.98588%2013.1166C6.97088%2013.0966%206.95588%2013.0766%206.94421%2013.0533C6.94088%2013.05%206.94088%2013.0483%206.93754%2013.0416C6.93421%2013.0383%206.93421%2013.0366%206.93088%2013.03C6.90754%2012.995%206.88588%2012.9583%206.86088%2012.9233C6.88254%2012.9583%206.90588%2012.995%206.92754%2013.03C6.89088%2012.9716%206.85254%2012.9166%206.80921%2012.8616L4.07921%208.99664L1.34088%205.12997L1.23254%204.97664L1.22921%204.97164C0.92421%204.51164%200.737543%203.97497%200.707543%203.39497C0.670877%202.70497%200.86421%202.05164%201.22088%201.50997C1.78588%200.648306%202.76588%200.0566391%203.90421%20-2.75556e-05C4.58421%20-0.0150276%205.22421%200.148306%205.77088%200.453306Z'%20fill='url(%23paint0_linear_6919_104497)'%20style=''/%3e%3c/g%3e%3cpath%20d='M32.4132%2012.862C31.2015%2012.862%2030.4482%2012.0503%2030.4482%2010.7203V8.4453H32.6632V7.02697H30.4482V4.72363L28.8548%205.9053V7.0253H27.9648V8.44363H28.8548V10.7053C28.8548%2012.9953%2030.1982%2014.412%2032.4282%2014.412H32.7682V12.862H32.4132Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M19.9812%2012.5767L21.4028%2011.4651C22.0395%2012.4867%2022.8995%2013.0351%2023.9962%2013.0351C25.1962%2013.0351%2025.9512%2012.2651%2025.9512%2011.3017C25.9512%2010.1901%2024.7662%209.83506%2023.5212%209.43506C22.0545%208.96172%2020.4695%208.36839%2020.4695%206.38339C20.4695%204.73839%2021.9362%203.43506%2023.9362%203.43506C25.5812%203.43506%2026.6028%204.07172%2027.4328%205.03506L26.1145%206.01339C25.6262%205.25839%2024.8995%204.85839%2023.9362%204.85839C22.8395%204.85839%2022.1278%205.51006%2022.1278%206.35506C22.1278%207.39172%2023.2695%207.73339%2024.5128%208.14839C25.9945%208.65172%2027.6095%209.29006%2027.6095%2011.3051C27.6095%2012.9651%2026.2462%2014.5501%2024.0095%2014.5501C22.1578%2014.5501%2020.8978%2013.7651%2019.9795%2012.5801L19.9812%2012.5767Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M38.2695%2010.7367C38.2695%208.56503%2039.9379%206.8667%2042.1095%206.8667C44.2812%206.8667%2045.9062%208.4467%2045.9062%2010.6334V11.2534H39.7912C39.9979%2012.39%2040.8845%2013.1434%2042.1695%2013.1434C43.1745%2013.1434%2043.9429%2012.6117%2044.3262%2011.8134L45.6262%2012.5367C44.9762%2013.7484%2043.8095%2014.545%2042.1695%2014.545C39.8362%2014.545%2038.2695%2012.8767%2038.2695%2010.735V10.7367ZM39.8645%209.91003H44.2962C44.0595%208.8467%2043.2479%208.25503%2042.1095%208.25503C40.9712%208.25503%2040.1595%208.93503%2039.8645%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M33.7549%2010.72C33.7549%208.42999%2035.0982%207.02832%2037.3282%207.02832H38.0366V8.56499H37.3132C36.1016%208.56499%2035.3199%209.40665%2035.3349%2010.7367V14.415H33.7549V10.7233V10.72Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M46.6882%2010.7218C46.6882%208.56517%2048.3865%206.88184%2050.5132%206.88184C52.6399%206.88184%2054.3082%208.56517%2054.3082%2010.7218V14.4135H52.7582V13.4535C52.2415%2014.1468%2051.4432%2014.5468%2050.4682%2014.5468C48.3565%2014.5468%2046.6865%2012.8935%2046.6865%2010.7218H46.6882ZM52.7882%2010.7218C52.7882%209.40684%2051.7832%208.3585%2050.5132%208.3585C49.2432%208.3585%2048.2382%209.40684%2048.2382%2010.7218C48.2382%2012.0368%2049.2282%2013.0852%2050.5132%2013.0852C51.7982%2013.0852%2052.7882%2012.0218%2052.7882%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M55.3027%2010.2717C55.3027%208.30667%2056.6461%206.875%2058.6411%206.875C59.7777%206.875%2060.6944%207.33333%2061.2694%208.10167C61.8161%207.33333%2062.7027%206.875%2063.8394%206.875C65.8477%206.875%2067.2511%208.27833%2067.2511%2010.2717V14.4067H65.6711V10.2867C65.6711%209.165%2064.9177%208.38167%2063.8394%208.38167C62.7611%208.38167%2062.0527%209.18%2062.0677%2010.2433V14.4083H60.4877V10.2883C60.4877%209.16667%2059.7194%208.38333%2058.6411%208.38333C57.5627%208.38333%2056.8694%209.18167%2056.8827%2010.245V14.41H55.3027V10.275V10.2717Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M68.2646%203.62695H69.8746V12.872H74.2313V14.4086H68.2646V3.62695Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M89.418%2010.7367C89.418%208.56503%2091.0863%206.8667%2093.258%206.8667C95.4296%206.8667%2097.0546%208.4467%2097.0546%2010.6334V11.2534H90.9396C91.1463%2012.39%2092.033%2013.1434%2093.318%2013.1434C94.323%2013.1434%2095.0913%2012.6117%2095.4746%2011.8134L96.7746%2012.5367C96.1246%2013.7484%2094.958%2014.545%2093.318%2014.545C90.9846%2014.545%2089.418%2012.8767%2089.418%2010.735V10.7367ZM91.013%209.91003H95.4446C95.208%208.8467%2094.3963%208.25503%2093.258%208.25503C92.1196%208.25503%2091.308%208.93503%2091.013%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M74.4948%2010.7218C74.4948%208.56517%2076.1932%206.88184%2078.3198%206.88184C80.4465%206.88184%2082.1148%208.56517%2082.1148%2010.7218V14.4135H80.5648V13.4535C80.0482%2014.1468%2079.2498%2014.5468%2078.2748%2014.5468C76.1632%2014.5468%2074.4932%2012.8935%2074.4932%2010.7218H74.4948ZM80.5948%2010.7218C80.5948%209.40684%2079.5898%208.3585%2078.3198%208.3585C77.0498%208.3585%2076.0448%209.40684%2076.0448%2010.7218C76.0448%2012.0368%2077.0348%2013.0852%2078.3198%2013.0852C79.6048%2013.0852%2080.5948%2012.0218%2080.5948%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M85.0381%2014.0498L81.9814%207.0498H83.6798L85.8364%2012.1748L87.8748%207.0498H89.5431L85.0831%2017.8465H83.4581L85.0381%2014.0515V14.0498Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M98.041%2010.7151C98.041%208.4251%2099.3843%207.02344%20101.614%207.02344H102.323V8.5601H101.599C100.388%208.5601%2099.606%209.40177%2099.621%2010.7318V14.4101H98.041V10.7184V10.7151Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_6919_104497'%20x1='4.31754'%20y1='8.70664'%20x2='13.6359'%20y2='3.59497'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.2'%20stop-color='%231589EE'%20style='stop-color:%231589EE;stop-color:color(display-p3%200.0824%200.5373%200.9333);stop-opacity:1;'/%3e%3cstop%20offset='1'%20stop-color='%235EB4FF'%20style='stop-color:%235EB4FF;stop-color:color(display-p3%200.3686%200.7059%201.0000);stop-opacity:1;'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_6919_104497'%3e%3crect%20width='101.648'%20height='18'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.675781)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",v=e.styled_default("div")({name:"SponsorLogoWrap",class:"s8p5v5z",propsAsIs:!1}),F=()=>c.B1,z=e.styled_default(F())({name:"SponsorLogo",class:"s755yti",propsAsIs:!0}),G=e.styled_default("img")({name:"AdSponsorLogo",class:"a1dflj8e",propsAsIs:!1}),J=({mastersApp:l,sponsorLogo:i})=>l?s.jsx(v,{children:s.jsx(z,{name:"mastersLogo"})}):i?s.jsx(v,{children:s.jsx(G,{src:i,alt:"ad-sponsor-logo"})}):s.jsx(v,{children:s.jsx("img",{src:W,alt:"stream-layer-logo"})}),K=e.styled_default("div")({name:"Container",class:"cq8qxhy",propsAsIs:!1}),X=e.styled_default("div")({name:"VideoWrapper",class:"v18kj6dc",propsAsIs:!1}),Y=()=>h.Et,l2=e.styled_default(Y())({name:"FocusableVideo",class:"fv2nwib",propsAsIs:!0}),I=e.styled_default("div")({name:"VideoStatus",class:"v8ptucg",propsAsIs:!1}),A="caip8y5",s2=e.styled_default("div")({name:"Content",class:"ccgc65e",propsAsIs:!1}),e2=e.styled_default("h3")({name:"Title",class:"t1q3iml2",propsAsIs:!1}),i2=e.styled_default("div")({name:"Description",class:"d1y2pxs8",propsAsIs:!1}),t2=e.styled_default("img")({name:"Image",class:"ig2j4fc",propsAsIs:!1}),a2=e.styled_default("div")({name:"ImageContainer",class:"i3dd6iy",propsAsIs:!1}),C2=({instantView:l,isDetail:i,notification:t,controlVideo:n,muted:p})=>{var o,a;const r=y.useRef(null),[u,d]=y.useState(!1),[f,m]=y.useState(void 0),x=(l==null?void 0:l.playVideoMuted)===C.PlayVideoMuted.ENABLED,b=i&&(l==null?void 0:l.autoPlayVideo)===C.AutoPlayVideo.ENABLED,M=x&&b,L=l==null?void 0:l.heading,V=l==null?void 0:l.body,j=L||V,[g,w]=y.useState(!0),$=t==null?void 0:t.title,E=t==null?void 0:t.body;return s.jsxs(K,{children:[((o=l==null?void 0:l.video)==null?void 0:o.url)&&s.jsxs(X,{children:[s.jsx(l2,{className:A,source:l.video.url,poster:l.video.thumbnailUrl,controlVideo:n,muted:p,autoPlay:i&&l.autoPlayVideo===C.AutoPlayVideo.ENABLED,ref:r,onPause:()=>{d==null||d(!0),w(!1)},onMute:Z=>{m(Z)},onPlay:()=>{d==null||d(!1)},playMuted:x,hasNotPausedVideo:g,webos:!0}),u&&!g&&s.jsxs(I,{children:[s.jsx(c.B1,{name:"icon-pause"}),"PAUSED"]}),f&&M&&s.jsxs(I,{children:[s.jsx(c.B1,{name:"iconMute"}),"MUTED"]})]}),(l==null?void 0:l.image)&&!((a=l==null?void 0:l.video)!=null&&a.url)&&s.jsx(a2,{className:A,"data-rounded":l.imageMode===C.QuestionImages.ROUNDED,children:s.jsx(t2,{src:l==null?void 0:l.image})}),s.jsxs(s2,{children:[s.jsx(e2,{children:i&&j?L:$}),s.jsx(i2,{children:i&&j?V:E})]})]})},o2=e.styled_default("div")({name:"Container",class:"cgn5uen",propsAsIs:!1}),H="c1px8nt6",d2=e.styled_default("div")({name:"Content",class:"c5et2jt",propsAsIs:!1}),n2=e.styled_default("h3")({name:"Title",class:"t1i2kpk2",propsAsIs:!1}),c2=e.styled_default("div")({name:"Description",class:"dd3lh3p",propsAsIs:!1}),p2=e.styled_default("img")({name:"Image",class:"i1gfjeu5",propsAsIs:!1}),r2=e.styled_default("div")({name:"ImageContainer",class:"i58y999",propsAsIs:!1}),B=({instantView:l,isDetail:i,notification:t,controlVideo:n,muted:p})=>{var o,a;const r=l==null?void 0:l.heading,u=l==null?void 0:l.body,d=r||u,f=t==null?void 0:t.title,m=t==null?void 0:t.body;return s.jsxs(o2,{children:[((o=l==null?void 0:l.video)==null?void 0:o.url)&&s.jsx(h.Et,{className:H,source:l.video.url,poster:l.video.thumbnailUrl,controlVideo:n,muted:p,autoPlay:i&&l.autoPlayVideo===C.AutoPlayVideo.ENABLED}),(l==null?void 0:l.image)&&!((a=l==null?void 0:l.video)!=null&&a.url)&&s.jsx(r2,{className:H,"data-rounded":l.imageMode===C.QuestionImages.ROUNDED,children:s.jsx(p2,{src:l==null?void 0:l.image})}),s.jsxs(d2,{children:[s.jsx(n2,{children:i&&d?r:f}),s.jsx(c2,{children:i&&d?u:m})]})]})},u2=e.styled_default("div")({name:"Container",class:"c1euiow",propsAsIs:!1}),y2=e.styled_default("a")({name:"WebLinkBtn",class:"w19zie3h",propsAsIs:!1}),f2=()=>c.B1,m2=e.styled_default(f2())({name:"WebLinkIcon",class:"wyg5v7z",propsAsIs:!0}),v2=({instantView:l,...i})=>s.jsxs(u2,{children:[i.webos?s.jsx(C2,{instantView:l,...i,isDetail:!0}):s.jsx(B,{instantView:l,...i,isDetail:!0}),(l==null?void 0:l.webLink)&&s.jsxs(y2,{href:l==null?void 0:l.webLink.url,target:"_blank","data-a":"web-link",children:[l==null?void 0:l.webLink.label,s.jsx(m2,{name:"icon-external-link"})]})]}),h2=e.styled_default("div")({name:"Container",class:"c1dcxmvf",propsAsIs:!1}),x2=e.styled_default("blockquote")({name:"Quote",class:"qb4q22c",propsAsIs:!1}),L2=l=>s.jsxs(h2,{children:[l.title&&s.jsx(x2,{children:l.title}),s.jsx(_.b,{...l,isDetail:!0})]});exports.O=B;exports.a=L2;exports.d=J;exports.x=v2;exports.y=R;
@@ -0,0 +1,4 @@
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),s=require("./sl-types.js"),te=require("./index9.js"),$=require("./index6.js"),n=require("./useStreamLayerApp2.js"),xe=require("./index14.js"),Ie=require("./index5.js"),Le=s.styled_default("div")({name:"SDKContainer",class:"sopqfe6",propsAsIs:!1}),je=s.styled_default("div")({name:"SDKScrollContainer",class:"s102vcph",propsAsIs:!1}),ie=s.styled_default("div")({name:"SDKContentContainer",class:"s1meqjjv",propsAsIs:!1}),Be=()=>ie,oe=s.styled_default(Be())({name:"SDKWhiteContainer",class:"s1burm22",propsAsIs:!0}),Fe=()=>oe,We=s.styled_default(Fe())({name:"SDKSummaryContainer",class:"sm5r3j5",propsAsIs:!0}),Me=s.styled_default("div")({name:"TabsContainer",class:"tysxwr6",propsAsIs:!1}),Ye=()=>ie,ze=s.styled_default(Ye())({name:"LeaderboardContainer",class:"l9er3b1",propsAsIs:!0}),Ue=()=>oe,Ke=s.styled_default(Ue())({name:"TabsNavContainer",class:"t19dtrb3",propsAsIs:!0}),He=s.styled_default("div")({name:"UserSummaryContainer",class:"u1552n3j",propsAsIs:!1});var Ge=Object.defineProperty,Je=(t,i,o)=>i in t?Ge(t,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[i]=o,Xe=(t,i,o)=>Je(t,i+"",o);let Ze=class{constructor(){Xe(this,"observers",new Set)}subscribe(i){this.observers.add(i)}unsubscribe(i){this.observers.delete(i)}notify(i){this.observers.forEach(o=>o(i))}};const z=new Ze,es={hiding:!1,finished:!1},ve=()=>{const[t,i]=a.useState(es),o=a.useRef(null);a.useEffect(()=>{const u=m=>{i(m)};return z.subscribe(u),()=>{z.unsubscribe(u)}},[]);const c=a.useCallback(u=>{const m={hiding:!0,finished:!1};o.current&&clearTimeout(o.current),u!=null&&u.delay?o.current=setTimeout(()=>{z.notify(m)},u==null?void 0:u.delay):z.notify(m)},[]),r=a.useCallback(()=>{t.hiding&&(o.current=null,z.notify({hiding:!1,finished:!0}))},[t.hiding]);return{...t,runAnimation:c,onAnimationEnd:r}},ss=s.styled_default("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),ts="sx17qu6",ns="h1692c5m",re=({children:t,style:i,className:o,enabled:c=!0,hiding:r,onAnimationEnd:u})=>e.jsx(ss,{style:i,className:s.cx_default(o,c&&ts,c&&r&&ns),onAnimationEnd:u,children:t}),is=()=>re,os=s.styled_default(is())({name:"GrowingContainer",class:"gck55ev",propsAsIs:!0}),Te=({children:t,style:i,enabled:o,animate:c,...r})=>{const u=a.useRef(null);return e.jsx(os,{...r,enabled:o&&c,style:{...i,...(()=>{const m=u==null?void 0:u.current,j=m&&window.getComputedStyle(m),b=j==null?void 0:j.getPropertyValue("height");return o?{height:c?b:0}:{}})()},children:e.jsx("div",{ref:u,children:t})})},rs=s.styled_default("div")({name:"Container",class:"c1gcvmcj",propsAsIs:!1}),as=s.styled_default("div")({name:"Title",class:"tnr592a",propsAsIs:!1}),ds=s.styled_default("div")({name:"Description",class:"d1e8jqpv",propsAsIs:!1}),ls=()=>$.B1,cs=s.styled_default(ls())({name:"Icon",class:"i1vs651k",propsAsIs:!0}),us=({icon:t,title:i,description:o})=>e.jsxs(rs,{children:[e.jsx(cs,{name:t}),e.jsx(as,{children:i}),e.jsx(ds,{children:o})]}),ps=()=>Te,ys=s.styled_default(ps())({name:"ShowInContainer",class:"s16sbdnm",propsAsIs:!0}),L=s.styled_default("div")({name:"FeedbackContainer",class:"fbhorgl",propsAsIs:!1}),pe="s1g20ja7",ms=s.styled_default("div")({name:"Container",class:"c455ozj",propsAsIs:!1}),hs=()=>$.B1,ye=s.styled_default(hs())({name:"IconPrediction",class:"i1913njx",propsAsIs:!0}),U=s.styled_default("div")({name:"FeedbackIconWrap",class:"fzfk69z",propsAsIs:!1}),G=s.styled_default("div")({name:"FeedbackHeader",class:"fx87qaj",propsAsIs:!1}),fs=s.styled_default("span")({name:"FeedbackTitle",class:"fvek9ew",propsAsIs:!1}),B=s.styled_default("span")({name:"FeedbackDescription",class:"f1kbtp09",propsAsIs:!1}),xs=s.styled_default("div")({name:"FeedbackTitleWrap",class:"f4i8rro",propsAsIs:!1}),Is=s.styled_default("div")({name:"FeedbackResultDescriptionWrap",class:"fqyssr",propsAsIs:!1}),js=()=>B,vs=s.styled_default(js())({name:"FeedbackDynamicDescription",class:"fyv794i",propsAsIs:!0}),Ts=()=>B,As=s.styled_default(Ts())({name:"FeedbackResultDescription",class:"f1jkj9vx",propsAsIs:!0}),ne=s.styled_default("div")({name:"FeedbackText",class:"f1pxh3a6",propsAsIs:!1}),Cs=s.styled_default("span")({name:"DynamicWrap",class:"d1afvufn",propsAsIs:!1}),$s=s.styled_default("div")({name:"EarlyFeedbackDescription",class:"eq8u24d",propsAsIs:!1}),me=({feedbackMessages:t,questionVotedCorrectly:i,questionVoted:o,questionType:c,hasCorrectAnswer:r,showExpiredNotification:u,showClosedNotificationTrivia:m,votedInCurrentRender:j,votedAfterQuestionClosed:b,voteErrorMessage:h,enteredAnActiveQuestion:d,marketClosed:g,percentsAnimated:C,votedAnswer:I,isEarlyPrediction:y,correctAnswer:_,onAnimationEnd:P})=>{const E=o&&(c===n.QuestionType.TRIVIA||c===n.QuestionType.PREDICTION),T=c===n.QuestionType.PREDICTION&&!r,q=g&&c===n.QuestionType.PREDICTION&&!o||c===n.QuestionType.PREDICTION&&b&&j&&d,Q=E&&T,S=E&&r,w=c===n.QuestionType.PREDICTION&&o&&j&&r,R=o&&c===n.QuestionType.POLL&&j,f=i?"correct":"incorrect",k=i?t==null?void 0:t.correctFeedback:t==null?void 0:t.incorrectFeedback;return u||m||Q||S||q||R||w||h?e.jsx(ys,{enabled:j,animate:!h&&u?!0:C,onAnimationEnd:P,children:e.jsxs(ms,{"data-prediction":T,children:[h&&!q&&e.jsxs(L,{children:[!y&&e.jsx(ye,{name:"questionExpired"}),e.jsx(B,{children:h})]}),!h&&u&&e.jsxs(L,{children:[!y&&e.jsx(U,{children:e.jsx($.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(G,{children:e.jsx(B,{children:"Question Expired"})}),e.jsx(ne,{children:"You can still answer to see if you're correct, but no points are awarded for expired questions."})]})]}),!h&&m&&e.jsxs(L,{className:s.cx_default(pe),children:[e.jsx(U,{children:e.jsx($.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(G,{children:e.jsx(B,{children:"Question Closed"})}),e.jsx(ne,{children:"This question was answered after the moderator closed the question. So the points for this answer won’t tally."})]})]}),q&&e.jsxs(L,{children:[!y&&e.jsx(U,{children:e.jsx($.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(G,{children:e.jsx(B,{children:y?r?"The results are already in!":"Question is Closed":"Question Closed"})}),e.jsx(ne,{children:y?e.jsx($s,{children:r?`Correct: ${_==null?void 0:_.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."})]})]}),!h&&Q&&e.jsxs(L,{children:[!y&&e.jsx(ye,{name:"icon-prediction"}),e.jsxs(vs,{children:["Your pick has been recorded. ",e.jsx(Cs,{children:"We’ll notify you of the result."})]})]}),!h&&R&&e.jsxs(L,{children:[!y&&e.jsx(U,{"data-feedback-type":"correct",children:e.jsx($.B1,{name:"correct"})}),e.jsx(B,{children:"Thanks for answering. Please stay tuned for the next question."})]}),!h&&(S||w)&&e.jsxs(L,{className:s.cx_default(m&&pe),children:[!y&&e.jsx(U,{"data-feedback-type":f,children:e.jsx($.B1,{name:f})}),e.jsx("div",{children:e.jsxs(G,{children:[y?e.jsx(xs,{children:f==="incorrect"?e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"So close!"}),e.jsx("div",{children:"Better luck next time"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"That’s correct!"}),e.jsx("div",{children:"You chose wisely."})]})}):e.jsx(fs,{"data-feedback-type":f,children:k==null?void 0:k.title}),y?e.jsxs(Is,{children:[e.jsxs("div",{children:["Your pick: ",I==null?void 0:I.text]}),e.jsx("div",{children:f==="incorrect"?`Correct: ${_==null?void 0:_.text}`:""})]}):e.jsx(As,{children:k==null?void 0:k.description})]})})]})]})}):null},Es=s.styled_default("div")({name:"Container",class:"c1hygj0s",propsAsIs:!1}),bs=s.styled_default("div")({name:"Title",class:"t1r84tez",propsAsIs:!1}),gs=s.styled_default("div")({name:"Description",class:"d1aj1a7k",propsAsIs:!1}),ws=s.styled_default("div")({name:"AdditionalDescription",class:"ax09ezs",propsAsIs:!1}),_s=()=>$.B1,Ps=s.styled_default(_s())({name:"Icon",class:"inkrac",propsAsIs:!0}),Qs=({icon:t,title:i,description:o,additionalDescription:c})=>e.jsxs(Es,{children:[t&&e.jsx(Ps,{name:t}),e.jsx(bs,{children:i}),e.jsx(gs,{children:o}),c&&e.jsx(ws,{children:c})]}),Ae=s.styled_default("div")({name:"Container",class:"c14ielyq",propsAsIs:!1}),Rs=()=>je,qs=s.styled_default(Rs())({name:"QuestionScrollContainer",class:"q1tlqx57",propsAsIs:!0}),Ss=s.styled_default("div")({name:"TopShadow",class:"t1hq58md",propsAsIs:!1}),ks=s.styled_default("div")({name:"BottomShadow",class:"b1c8nxcx",propsAsIs:!1}),Ds=s.styled_default("div")({name:"SponsorLogo",class:"siozuc3",propsAsIs:!1}),Ce=s.styled_default("div")({name:"Content",class:"cpnc44r",propsAsIs:!1}),Os=s.styled_default("div")({name:"Title",class:"tq7p3w0",propsAsIs:!1}),Ns=s.styled_default("div")({name:"OptionsWrap",class:"o1jlfj9g",propsAsIs:!1}),$e=s.styled_default("div")({name:"Options",class:"o84pmnd",propsAsIs:!1}),Vs=()=>re,he=s.styled_default(Vs())({name:"AlertContainer",class:"a1dybjw9",propsAsIs:!0}),Ls=s.styled_default("div")({name:"EarlyPrediction",class:"e1l05ict",propsAsIs:!1}),Bs=()=>$.B1,Fs=s.styled_default(Bs())({name:"EarlyPredictionIcon",class:"ez9juex",propsAsIs:!0}),Ws=()=>$.B1,Ms=s.styled_default(Ws())({name:"SponsorIcon",class:"s8p4aob",propsAsIs:!0}),Ys=s.styled_default("button")({name:"ButtonContainer",class:"b1b6dl8t",propsAsIs:!1}),zs=s.styled_default("div")({name:"ButtonPctWrap",class:"b4iik8i",propsAsIs:!1}),Us=s.styled_default("div")({name:"ButtonPct",class:"b1gq1lnf",propsAsIs:!1}),Ks=s.styled_default("span")({name:"ButtonBody",class:"b1j65z51",propsAsIs:!1}),Hs=s.styled_default("div")({name:"IconContainer",class:"i19tpfua",propsAsIs:!1}),Gs=s.styled_default("div")({name:"IconWrap",class:"i1tubmma",propsAsIs:!1}),Ee=s.styled_default("img")({name:"Icon",class:"i1grrgwj",propsAsIs:!1}),Js=()=>Ee,Xs=s.styled_default(Js())({name:"IconDefault",class:"ibemyq8",propsAsIs:!0}),Zs=()=>Ee,et=s.styled_default(Zs())({name:"IconCircle",class:"i1dceht",propsAsIs:!0}),st=s.styled_default("span")({name:"Title",class:"t116q4vq",propsAsIs:!1}),tt=s.styled_default("span")({name:"Indicators",class:"i17ajcu2",propsAsIs:!1}),nt=s.styled_default("div")({name:"PtsWrap",class:"pu9kmlb",propsAsIs:!1}),it=s.styled_default("span")({name:"Pts",class:"p1j2j0s0",propsAsIs:!1}),ot=s.styled_default("span")({name:"Percentage",class:"p1mzj1sj",propsAsIs:!1}),rt=()=>$.B1,at=s.styled_default(rt())({name:"CheckIcon",class:"cichgz8",propsAsIs:!0}),fe={[n.QuestionImages.CENTERED]:t=>e.jsx(Xs,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[n.QuestionImages.TRANSPARENT]:t=>e.jsx(Hs,{"data-testid":"vote-icon",children:e.jsx(Gs,{style:{backgroundImage:`url(${t})`}})}),[n.QuestionImages.ROUNDED]:t=>e.jsx(et,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[n.QuestionImages.NONE]:()=>null,[n.QuestionImages.UNSET]:()=>null},dt=({questionType:t,hasCorrectAnswer:i,correct:o,youVoted:c,questionVoted:r})=>{if(t===n.QuestionType.POLL&&c)return"voted";if(t===n.QuestionType.PREDICTION){if(!i&&r)return c?"voted":"unset";if(i&&r)return c?o?"correct":"incorrect":"unset";if(c)return"correct"}return t===n.QuestionType.TRIVIA&&r&&c?o?"correct":"incorrect":"unset"},lt=({questionType:t,questionVoted:i,correct:o,hasCorrectAnswer:c,questionStatus:r})=>t===n.QuestionType.TRIVIA?i&&o:t===n.QuestionType.PREDICTION?i&&o&&c||r===n.QuestionStatus.RESOLVED&&o:!1,ct=xe.O(Ys),ut=t=>{var i;const{id:o,icon:c,text:r,percentageDecimal:u,points:m,onVote:j,markThatVoted:b,firstOption:h,onPercentsAnimated:d,youSelected:g,youVoted:C,questionVoted:I,imageMode:y,answerTimeExpired:_,questionStatus:P,isLoading:E,questionType:T,correct:q,hasCorrectAnswer:Q,marketClosed:S,isEarlyPrediction:w,isAd:R,webos:f}=t,[k,F]=a.useState(0),Y=dt(t),K=lt({questionType:T,questionVoted:I,correct:q,hasCorrectAnswer:Q,questionStatus:P}),D=S&&T===n.QuestionType.PREDICTION,O=I||D,J=T===n.QuestionType.PREDICTION&&!I&&!S&&!R,N=I&&!g&&Y!=="incorrect"&&!C;return a.useLayoutEffect(()=>{F(0),requestAnimationFrame(()=>{F(u)})},[u]),e.jsxs(ct,{value:o,webos:f,autoFocus:h,"data-selected":g,"data-answer-state":Y,disabled:I||E||_||D,"data-is-not-checked":N,"data-a":"intr",onClick:H=>{b(T===n.QuestionType.PREDICTION?S:P===n.QuestionStatus.RESOLVED),j(H)},"data-is-ad":R,children:[e.jsx(zs,{children:e.jsx(Us,{"data-answer-state":Y,"data-is-not-checked":N,style:{width:`${O?k:0}%`},onTransitionEnd:()=>{D||d==null||d()},"data-is-ad":R})}),e.jsxs(Ks,{"data-a":"intr",children:[c&&y&&((i=fe[y])==null?void 0:i.call(fe,c)),e.jsx(st,{"data-a":"intr",children:r}),J&&e.jsxs(nt,{children:[m,e.jsx(it,{children:"pts"})]}),O&&e.jsxs(tt,{children:[K&&e.jsx(at,{name:w?"selectedBetPack":"selected"}),e.jsx(ot,{children:e.jsx(Ie.d,{value:u,suffix:"%"})})]})]})]})},pt=()=>Te,yt=s.styled_default(pt())({name:"ShowInContainer",class:"sie6cqo",propsAsIs:!0}),mt=s.styled_default("div")({name:"WinBarContainer",class:"wgizw4u",propsAsIs:!1}),ht=s.styled_default("div")({name:"Content",class:"c1l3ucjp",propsAsIs:!1}),ft=s.styled_default("div")({name:"Title",class:"tx7j799",propsAsIs:!1}),xt=()=>$.B1,It=s.styled_default(xt())({name:"WinIcon",class:"w4lwuj0",propsAsIs:!0}),jt=s.styled_default("div")({name:"Points",class:"po9i64o",propsAsIs:!1}),vt=s.styled_default("span")({name:"PointsCount",class:"pe5g05h",propsAsIs:!1}),Tt=s.styled_default("span")({name:"PointsUnits",class:"p1hdtpmb",propsAsIs:!1}),At=({title:t,points:i,isPlayingTimer:o,isTimer:c,animatePoints:r,questionType:u,timerDuration:m,votedInCurrentRender:j,percentsAnimated:b,onTimerExpired:h})=>e.jsx(yt,{enabled:u===n.QuestionType.PREDICTION&&j,animate:b,children:e.jsxs(mt,{style:{justifyContent:u===n.QuestionType.PREDICTION?"center":"space-between"},children:[e.jsxs(ht,{children:[t&&e.jsx(ft,{children:t}),i!==void 0&&u!==n.QuestionType.POLL&&e.jsxs(e.Fragment,{children:[e.jsx(It,{name:"icon-trophy"}),e.jsxs(jt,{children:[e.jsx(vt,{children:r?e.jsx(Ie.d,{value:i,delay:.3}):i}),e.jsx(Tt,{children:"PTS"})]})]})]}),c&&u!==n.QuestionType.PREDICTION&&e.jsx(xe.L,{isPlaying:o,onTimerExpired:h,duration:m})]})}),Ct=(t,i)=>{switch(t){case"already_voted":return i===n.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"}},$t=()=>e.jsx(Ae,{children:e.jsxs(Ce,{children:[e.jsx(te.i,{loading:!0,style:{height:"40px",borderRadius:"100px"}}),e.jsx(te.i,{loading:!0,style:{height:"24px",margin:"16px 0"}}),e.jsx($e,{children:Array.from({length:5}).map((t,i)=>e.jsx(te.i,{loading:!0,style:{height:"44px"}},i))})]})}),Et=({openedQuestion:t,isLoading:i,vote:o,close:c,isEarlyPrediction:r,mastersApp:u,webos:m})=>{var j,b;const h=t.subject,d=t.type,g=t.status,C=(j=t.options)==null?void 0:j.options,I=t.marketClosed,y=t.id,_=a.useRef(),P=a.useRef(),E=u?!1:(t==null?void 0:t.adUnit)===n.AdUnit.STANDART,[T,q]=a.useState(!1),[Q,S]=a.useState(!1),[w,R]=a.useState(!0),[f,k]=a.useState(!1),[F,Y]=a.useState(!1),[K,D]=a.useState(""),[O,J]=a.useState(""),[N,H]=a.useState(!1),[be,ge]=a.useState(!1),[ae,we]=a.useState(!1),{runAnimation:W,finished:de}=ve();a.useEffect(()=>{de&&c(y)},[c,de]),a.useEffect(()=>{d===n.QuestionType.PREDICTION?I&&R(!1):g===n.QuestionStatus.RESOLVED&&R(!1)},[]);const _e=a.useCallback(p=>{S(p),q(!0)},[]),Pe=a.useCallback(()=>{r&&q(!1)},[r]),X=a.useRef(!1),le=a.useCallback(()=>{P.current&&clearTimeout(P.current),P.current=setTimeout(()=>{we(!0),W({delay:5500})},4e3)},[W]),ce=a.useCallback(async p=>{if(!X.current&&(X.current=!0,y)){const A=p.currentTarget.value;D(A);try{await o(y,A),E&&le()}catch(M){J(Ct(M.message,d)),D(""),console.error("Error while voting",M),X.current=!1}}},[d,y,D,o,E,le]),Qe=a.useCallback(()=>{k(!0),W({delay:3500})},[W]),Re=a.useCallback(()=>{Y(!0),W({delay:3500})},[W]),l=t==null?void 0:t.answers.find(p=>p.youVoted===!0),v=a.useMemo(()=>!!(t!=null&&t.answers.find(p=>p.correct===!0)),[t]),x=a.useMemo(()=>t==null?void 0:t.answers.find(p=>p.correct===!0),[t]);a.useEffect(()=>{l&&T&&!be&&(_.current=setTimeout(Re,1e4),ge(!0))},[l]),a.useEffect(()=>()=>{clearTimeout(_.current),clearTimeout(P.current)},[]);const Z=a.useMemo(()=>t?t.answers.map(p=>{var A;return{...p,questionVoted:!!l,youSelected:K===p.id,isLoading:i,hasCorrectAnswer:v,questionType:t.type,answerTimeExpired:f,questionStatus:g,imageMode:(A=t.appearance)==null?void 0:A.images,onVote:ce}}):[],[v,f,i,t,l,g,ce,K]);a.useEffect(()=>{const p=Z.some(({percentageDecimal:M})=>M!==0),A=l&&d===n.QuestionType.PREDICTION;O&&(r||!p||I&&A)&&H(!0)},[Z,O,r,I,d,l]);const ue=C&&(C.case==="trivia"||C.case==="prediction")?C.value:void 0,V=g===n.QuestionStatus.RESOLVED&&d===n.QuestionType.TRIVIA&&!l&&!w,ee=d===n.QuestionType.TRIVIA&&Q,se=a.useMemo(()=>E?!1:d===n.QuestionType.PREDICTION?r?!1:!!(l&&!v||l&&v&&x!=null&&x.youVoted):!0,[d,l,v,x,r,E]),qe=a.useMemo(()=>{if(d===n.QuestionType.PREDICTION&&l&&(!v||v&&x!=null&&x.youVoted))return l.points;if(!(V||f))return l?l.correct?l.pointsEarned:0:x==null?void 0:x.points},[f,l,x,V,d,v]),Se=a.useMemo(()=>d===n.QuestionType.PREDICTION&&l?v?v&&x!=null&&x.youVoted?"You won":"":"To win":V||f?"Time expired":d===n.QuestionType.POLL?"Time remaining":l?"You won":"To win",[f,d,l,V,v,x]),ke=!se||se&&d===n.QuestionType.PREDICTION&&T&&!N,De=(d===n.QuestionType.TRIVIA||d===n.QuestionType.PREDICTION)&&l&&v&&(x==null?void 0:x.youVoted),Oe=l||V||ee||d===n.QuestionType.TRIVIA&&g===n.QuestionStatus.RESOLVED&&w,Ne=!r&&(f||F)||ae,Ve=()=>{const p=()=>d===n.QuestionType.TRIVIA?l!=null&&l.correct?`That's correct!
2
+ You chose wisely.`:`So close!
3
+ Better luck next time.`:d===n.QuestionType.POLL?`Thanks for answering.
4
+ Please stay tuned for the next question.`:d===n.QuestionType.PREDICTION?"Stay tuned to see if your prediction was correct.":"",A=()=>d===n.QuestionType.TRIVIA?`Your Pick: ${x==null?void 0:x.text}`:d===n.QuestionType.POLL||d===n.QuestionType.PREDICTION?`Your Pick: ${l==null?void 0:l.text}`:"",M=()=>d===n.QuestionType.TRIVIA&&(C==null?void 0:C.case)==="trivia"?C==null?void 0:C.value.explanation:d===n.QuestionType.PREDICTION?h:"";return ae?e.jsx(he,{children:e.jsx(Qs,{title:p(),description:A(),...l!=null&&l.correct||d===n.QuestionType.POLL||d===n.QuestionType.PREDICTION?{icon:"icon-correct"}:{},...d===n.QuestionType.TRIVIA||d===n.QuestionType.PREDICTION?{additionalDescription:M()}:{}})}):!r&&(f||F)?e.jsx(he,{children:e.jsx(us,{icon:"icon-check-circle",title:"More to come...",description:F?e.jsxs(e.Fragment,{children:["Stay tuned for more questions ",e.jsx("br",{})," and insights."]}):e.jsxs(e.Fragment,{children:["Watch for additional enhanced stream ",e.jsx("br",{})," interactive experience."]})})}):null};return e.jsxs(qs,{children:[r&&e.jsx(Ss,{}),e.jsx(Ae,{style:r?{marginTop:"-40px"}:{},children:e.jsxs(Ce,{children:[!r&&!E&&e.jsx(me,{feedbackMessages:ue,questionVoted:!!l,questionVotedCorrectly:l==null?void 0:l.correct,questionType:d,hasCorrectAnswer:v,showExpiredNotification:V,showClosedNotificationTrivia:ee,votedInCurrentRender:T,votedAfterQuestionClosed:Q,enteredAnActiveQuestion:w,marketClosed:I,percentsAnimated:N,voteErrorMessage:O,votedAnswer:l}),se&&e.jsx(At,{title:Se,points:qe,onTimerExpired:Qe,questionType:t.type,isTimer:!i,isPlayingTimer:!l,animatePoints:De,timerDuration:Oe?0:Number(((b=t==null?void 0:t.appearance)==null?void 0:b.autoHideInterval)||"30"),votedInCurrentRender:T,percentsAnimated:N}),Ne?Ve():e.jsxs(e.Fragment,{children:[r&&e.jsxs(Ls,{children:[e.jsx(Fs,{name:"iconEarlyPrediction"}),"EARLY PREDICTION"]}),e.jsx(Os,{style:ke?{marginTop:0}:{},children:h}),r&&e.jsx(me,{feedbackMessages:ue,questionVoted:!!l,questionVotedCorrectly:l==null?void 0:l.correct,questionType:d,hasCorrectAnswer:v,showExpiredNotification:V,showClosedNotificationTrivia:ee,votedInCurrentRender:T,votedAfterQuestionClosed:Q,enteredAnActiveQuestion:w,marketClosed:I,percentsAnimated:N,voteErrorMessage:O,isEarlyPrediction:r,correctAnswer:x,votedAnswer:l,onAnimationEnd:Pe}),e.jsxs(Ns,{children:[e.jsx($e,{children:Z.sort((p,A)=>p.id>A.id?1:-1).map((p,A)=>e.jsx(ut,{...p,firstOption:A===0,markThatVoted:_e,onPercentsAnimated:()=>H(!0),votedAfterQuestionClosed:Q,enteredAnActiveQuestion:w,marketClosed:I,isEarlyPrediction:r,isAd:E,webos:m},p.id))}),r&&e.jsxs(e.Fragment,{children:[e.jsx(ks,{}),e.jsx(Ds,{children:e.jsx(Ms,{name:"mastersLogoWhite"})})]})]})]})]})})]})};exports.C=ze;exports.S=ve;exports.S$1=Ke;exports.a=oe;exports.c=je;exports.d=He;exports.ee=Et;exports.f=re;exports.l=Me;exports.m=We;exports.n=ie;exports.p=Le;exports.te=$t;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./sl-types.js"),l=require("./useStreamLayerApp2.js"),e=require("react/jsx-runtime"),U=require("react"),S=require("./index13.js"),_=require("./index6.js"),O={[l.QuestionType.TWEET]:{label:"Insight",iconName:"icon-insight"},[l.QuestionType.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[l.QuestionType.UNSET]:void 0,[l.QuestionType.FACTOID]:{label:"Insight",iconName:"icon-insight"},[l.QuestionType.POLL]:{label:"Poll",iconName:"icon-poll"},[l.QuestionType.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[l.QuestionType.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}},b={[l.QuestionType.TWEET]:"Learn more",[l.QuestionType.FACTOID]:"Learn more",[l.QuestionType.POLL]:"Answer",[l.QuestionType.TRIVIA]:"Answer",[l.QuestionType.PREDICTION]:"Answer",[l.QuestionType.PROMOTION]:"",[l.QuestionType.UNSET]:""},E=i=>i.split(/\s+/).map(n=>n[0]).join("").toUpperCase(),q=i=>i?i.toLocaleString("en-US"):"0",C=i=>{const n=new Date(i);if(!n)return"";const d=new Date,a=Math.floor(d.getTime()-n.getTime());return a<6e4?`${Math.floor(a/1e3)}s`:a<36e5?`${Math.floor(a/6e4)}m`:a<864e5?`${Math.floor(a/36e5)}h`:n.getFullYear()===d.getFullYear()?`${n.toLocaleDateString("en-US",{month:"short",day:"numeric"})}`:`${n.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"})}`},R=t.styled_default("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),P=t.styled_default("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),M=t.styled_default("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),F=()=>_.B1,V=t.styled_default(F())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),z=t.styled_default("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),B=t.styled_default("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),k=t.styled_default("div")({name:"UserNameAndDate",class:"u1p051g3",propsAsIs:!1}),w=({image:i,name:n,userName:d,verified:a,createdTweet:m})=>{const o=m&&C(m);return e.jsxs(R,{children:[i&&e.jsxs(P,{children:[e.jsx(M,{className:"SL_AccountImage",src:i}),e.jsx(V,{name:"twitter"})]}),e.jsxs(z,{children:[n&&e.jsxs(B,{className:"SL_TweetAccountName",children:[n," ",a&&e.jsx(_.B1,{name:"icon-twitter-verified"})]}),d&&e.jsxs(k,{className:"SL_TweetAccountUserName",children:["@",d," ",o&&`・ ${o}`]})]})]})},W=t.styled_default("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),Y=t.styled_default("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),G=t.styled_default("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),c=t.styled_default("div")({name:"ImagesContainer",class:"i1y8f7ym",propsAsIs:!1}),g=t.styled_default("div")({name:"ImagesBlock",class:"i18gwonx",propsAsIs:!1}),D=t.styled_default("img")({name:"Image",class:"i3g0xjd",propsAsIs:!1}),J=()=>D,r=t.styled_default(J())({name:"ImageFullSize",class:"io8rt7p",propsAsIs:!0}),K=()=>D,v=t.styled_default(K())({name:"ImageHalfSize",class:"i4hn3ox",propsAsIs:!0}),X=new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"),L=i=>i==null?void 0:i.replace(X,""),Z=U.memo(({image:i,body:n,muted:d,account:a,accountVerified:m,tweet:o,isDetail:y,controlVideo:H})=>{var I,x,h,T,j;const s=(x=(I=o==null?void 0:o.meta)==null?void 0:I.extendedEntities)==null?void 0:x.media,p=s==null?void 0:s.find(({type:u})=>u==="photo"),f=U.useMemo(()=>{var u,A,$,N;return(N=($=(A=(u=s==null?void 0:s[0])==null?void 0:u.videoInfo)==null?void 0:A.variants)==null?void 0:$.findLast(({contentType:Q})=>Q==="video/mp4"))==null?void 0:N.url},[s]);return e.jsxs(W,{children:[e.jsxs(Y,{children:[e.jsx(w,{image:i,name:(h=o==null?void 0:o.meta)==null?void 0:h.accountName,userName:a,verified:m,createdTweet:o==null?void 0:o.date}),e.jsx(G,{children:L(n)}),!y&&p&&e.jsx(c,{children:e.jsx(r,{src:s==null?void 0:s[0].mediaUrlHttps})}),y&&p&&e.jsxs(e.Fragment,{children:[(s==null?void 0:s.length)===1&&e.jsx(c,{children:e.jsx(r,{src:s[0].mediaUrlHttps})}),(s==null?void 0:s.length)===2&&e.jsxs(c,{children:[e.jsx(v,{src:s[0].mediaUrlHttps}),e.jsx(v,{src:s[1].mediaUrlHttps})]}),(s==null?void 0:s.length)===3&&e.jsxs(c,{children:[e.jsx(v,{src:s[0].mediaUrlHttps}),e.jsxs(g,{children:[e.jsx(r,{src:s[1].mediaUrlHttps}),e.jsx(r,{src:s[2].mediaUrlHttps})]})]}),(s==null?void 0:s.length)===4&&e.jsxs(c,{children:[e.jsxs(g,{children:[e.jsx(r,{src:s[0].mediaUrlHttps}),e.jsx(r,{src:s[1].mediaUrlHttps})]}),e.jsxs(g,{children:[e.jsx(r,{src:s[2].mediaUrlHttps}),e.jsx(r,{src:s[3].mediaUrlHttps})]})]})]})]}),!p&&(((T=s==null?void 0:s[0])==null?void 0:T.type)==="video"||((j=s==null?void 0:s[0])==null?void 0:j.type)==="animated_gif")&&f&&e.jsx(S.Et,{muted:d,source:f,poster:s[0].mediaUrlHttps,controlVideo:H})]})});exports.D=w;exports.D$1=L;exports.I=E;exports.b=Z;exports.e=O;exports.o=b;exports.s=q;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("./sl-types.js"),a=require("react"),h=require("./index6.js"),V=require("./index14.js"),ne=require("./useStreamLayerApp2.js"),le=l.styled_default("div")({name:"CloseIconWrap",class:"c3v6bv6",propsAsIs:!1}),oe=l.styled_default("div")({name:"TimerWrap",class:"teuhmro",propsAsIs:!1}),ue=()=>h.B1,re=l.styled_default(ue())({name:"Icon",class:"i17rfxv5",propsAsIs:!0}),ce=({close:t,className:n,timerClassName:o,skipIcon:u,isPlaying:d=!0,duration:i=0,autoClose:p})=>{const[m,y]=a.useState(i===0);a.useEffect(()=>{y(!i)},[i]);const I=a.useCallback(()=>{p===ne.CloseTimerAuto.ENABLED?t==null||t():y(!0)},[p,t]);return m?e.jsxs(le,{"data-a":"intr",onClick:t,className:n,style:u?{width:"auto"}:{},children:[u&&e.jsx("span",{"data-a":"intr",children:"Skip"}),e.jsx(re,{"data-a":"intr",name:u?"iconSkip":"icon-cross"})]}):e.jsx(oe,{children:e.jsx(V.G,{className:o,isPlaying:d,duration:i,onTimerExpired:I})})},ie=l.styled_default("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),de=l.styled_default("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),pe=l.styled_default("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),S=l.styled_default("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),me="t1xke4ml",ye="h1yzxv57",fe=l.styled_default("div")({name:"VideoControls",class:"vxo8xch",propsAsIs:!1}),T=l.styled_default("button")({name:"ControlBtn",class:"coyuzu0",propsAsIs:!1}),xe=()=>T,he=l.styled_default(xe())({name:"MuteIcon",class:"musmi9a",propsAsIs:!0}),ge=()=>T,Ie=l.styled_default(ge())({name:"PauseIcon",class:"p1qe7rum",propsAsIs:!0}),be=()=>T,je=l.styled_default(be())({name:"PlayIcon",class:"psevery",propsAsIs:!0}),Q=l.styled_default("button")({name:"WebOSIconButton",class:"w1q3u7py",propsAsIs:!1}),Pe=()=>Q,R=l.styled_default(Pe())({name:"WebOSIconButtonAnimation",class:"wdlqvum",propsAsIs:!0}),Ae=()=>R,ve=l.styled_default(Ae())({name:"WebOSIconButtonPlay",class:"w1ylz9ea",propsAsIs:!0}),Ce=()=>R,ke=l.styled_default(Ce())({name:"WebOSIconButtonPause",class:"w1iylt55",propsAsIs:!0}),Ee=()=>R,_e=l.styled_default(Ee())({name:"WebOSIconButtonMute",class:"w8h4h7",propsAsIs:!0}),Be=()=>R,we=l.styled_default(Be())({name:"WebOSIconButtonUnmute",class:"w12l12kt",propsAsIs:!0}),Me=t=>{for(const n of t)n.isIntersecting?n.target instanceof HTMLVideoElement&&n.target.autoplay&&n.target.play():n.target instanceof HTMLVideoElement&&!n.target.paused&&n.target.pause()},J=new IntersectionObserver(Me,{threshold:.5}),U=new Set,Se=t=>{J.observe(t),U.add(t)},Re=t=>{J.unobserve(t),U.delete(t)},K=()=>{for(const t of U)t instanceof HTMLVideoElement&&!t.paused&&t.pause()};function We(...t){return a.useCallback(n=>{for(const o of t)o!==null&&(typeof o=="function"?o(n):o&&(o.current=n))},[...t])}const qe=V.O(ie),Ne=({loading:t,autoPlay:n,played:o,playing:u,isMuted:d,unmute:i,mute:p,togglePlaying:m})=>!t&&!n&&!o?e.jsx(S,{children:u?e.jsx(h.B1,{name:"icon-pause"}):e.jsx(h.B1,{name:"icon-play"})}):o?e.jsxs(fe,{children:[u?e.jsx(Ie,{onClick:m}):e.jsx(je,{onClick:m}),e.jsx(he,{className:l.cx_default(!d&&"muted"),onClick:d?i:p})]}):null,Oe=({loading:t,autoPlay:n,playMuted:o,playing:u,played:d,unmute:i,mute:p,isMuted:m,hasNotPausedVideo:y,hasInteractedWithAudio:I})=>e.jsxs(e.Fragment,{children:[!t&&!(n&&o)&&e.jsx(S,{"data-control-btn":"true",children:u?y?null:e.jsx(ve,{children:e.jsx(h.B1,{name:"icon-play"})}):d?e.jsx(ke,{children:e.jsx(h.B1,{name:"icon-pause"})}):e.jsx(Q,{"data-control-icon":"true",children:e.jsx(h.B1,{name:"icon-play"})})}),!t&&n&&o&&I&&e.jsx(S,{children:m?e.jsx(_e,{onClick:i,children:e.jsx(h.B1,{name:"iconMute"})}):e.jsx(we,{onClick:p,children:e.jsx(h.B1,{name:"iconUnMute"})})})]}),Le=a.forwardRef(({poster:t,source:n,aspectRatio:o,controlVideo:u,onReplay:d,onPlay:i,onPause:p,onEnd:m,onRender:y,onMute:I,onQuartile:b,autoPlay:A,playMuted:v,className:X,muted:C,webos:E,hasNotPausedVideo:Y},Z)=>{const c=a.useRef(null),ee=We(c,Z),W=a.useRef(!1),q=a.useRef(!1),f=a.useRef(new Set),[z,H]=a.useState(!1),[_,B]=a.useState(!1),[N,$]=a.useState(!1),[D,w]=a.useState(!0),[O,M]=a.useState(v),[L,te]=a.useState(!1);a.useEffect(()=>{n&&(M(v),H(!1))},[n]);const j=a.useCallback(()=>{u==null||u({muted:!1})},[u]),F=a.useCallback(()=>{u==null||u({muted:!0})},[u]),P=a.useCallback(s=>{s==null||s.stopPropagation(),c.current&&(c.current.muted=!0),M(!0)},[]),k=a.useCallback(s=>{s==null||s.stopPropagation(),c.current&&(c.current.muted=!1),M(!1),L||te(!0)},[L]);a.useEffect(()=>{C!==void 0&&(C?P():k())},[P,C,k]);const G=s=>{var r;(r=s.stopPropagation)==null||r.call(s);const g=c==null?void 0:c.current;if(g)if(_)g.pause();else{const x=c==null?void 0:c.current;if(!x)return;K(),x.play().catch(ae=>console.log(ae)),w(!1)}},se=()=>{var s;(s=c==null?void 0:c.current)==null||s.load(),w(!0)};return a.useEffect(()=>()=>{j()},[j]),a.useEffect(()=>{const s=c.current;return s?(q.current=s.muted,M(s.muted),Se(s),()=>{Re(s)}):()=>{}},[]),a.useEffect(()=>{y==null||y()},[y]),a.useEffect(()=>{f.current.clear(),W.current=!1},[n]),e.jsxs(qe,{webos:E,onClick:A&&v?O?k:P:G,"data-a":"intr",autoFocus:!0,options:{focusKey:"video-play-btn"},className:l.cx_default(_&&!E&&me,A&&ye,X),style:o?{aspectRatio:o}:{},children:[e.jsx(de,{ref:ee,src:n,autoPlay:A,onPlay:()=>{H(!0),W.current&&(d==null||d(),f.current.clear()),B(!0),w(!1),i==null||i(),v?P():F()},onTimeUpdate:s=>{const r=s.target.duration,g=s.target.currentTime;if(r&&g){const x=Math.floor(g/r*100);x>=25&&x<50&&!f.current.has(25)?(b==null||b(25),f.current.add(25)):x>=50&&x<75&&!f.current.has(50)?(b==null||b(50),f.current.add(50)):x>=75&&!f.current.has(75)&&(b==null||b(75),f.current.add(75))}},onVolumeChange:s=>{const r=s.target.muted;q.current!==r&&(I==null||I(r),q.current=r,(r!==C||C===void 0)&&(r?j():F()))},onError:async s=>{try{if(s.target instanceof HTMLVideoElement){$(!0);const r=await(await fetch(s.target.src)).blob(),g=URL.createObjectURL(r);s.target.src=g}}catch(r){console.error("video fallback fetch failed",r),B(!0),w(!0)}finally{$(!1),j()}},onPause:()=>{B(!1),p==null||p(),j()},onEnded:()=>{B(!1),W.current=!0,se(),m==null||m(),j()},style:{visibility:D?"hidden":"visible"},controls:!1,playsInline:!0}),e.jsx(pe,{src:t,style:{visibility:D?"visible":"hidden"}}),!E&&e.jsx(Ne,{loading:N,autoPlay:A,played:z,playing:_,isMuted:O,unmute:k,mute:P,togglePlaying:G}),E&&e.jsx(Oe,{loading:N,autoPlay:A,playMuted:v,playing:_,played:z,unmute:k,mute:P,isMuted:O,hasNotPausedVideo:Y,hasInteractedWithAudio:L}),N&&e.jsx(S,{children:e.jsx(V.d,{})})]})});exports.Et=Le;exports.wt=K;exports.y=ce;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react/jsx-runtime"),g=require("./index15.js"),r=require("react"),c=require("./sl-types.js"),x=require("react-countdown-circle-timer"),f=require("./index6.js"),T=i=>{const{Component:e,options:n,customOptions:o,autoFocus:s,...u}=i,a=g.distExports.useFocusable({...n,...o,onEnterPress:()=>{var l;return(l=i.onClick)==null?void 0:l.call(i,{currentTarget:a.ref.current,stopPropagation:()=>{}})}});return r.useEffect(()=>{s&&a.focusSelf()},[]),t.jsx(e,{...u,...a,"data-is-with-focus":"true"})};function j(i,e){return({webos:n,options:o,...s})=>n?t.jsx(T,{Component:i,options:e,customOptions:o,...s}):t.jsx(i,{...s})}const y=[10,10,1,0],k=c.styled_default("div")({name:"RemainingTimeCircle",class:"r165427",propsAsIs:!1}),w=c.styled_default("div")({name:"RemainingTime",class:"r17garf3",propsAsIs:!1}),E=c.O,m=c.N,p=c.S,q=({className:i,duration:e=30,onTimerExpired:n,isPlaying:o=!0})=>t.jsx(x.CountdownCircleTimer,{isPlaying:o,strokeWidth:0,duration:e,colors:m,size:24,onComplete:n,children:({remainingTime:s})=>t.jsx(w,{className:i,children:e===0?0:s})}),O=({isPlaying:i=!0,duration:e=30,onTimerExpired:n})=>{const[o,s]=r.useState(e>10?E:m),[u,a]=r.useState(2);r.useEffect(()=>{e===0&&(a(0),s(p))},[e]);const l=({remainingTime:d})=>t.jsx(k,{children:e===0?0:d}),h=r.useCallback(()=>{n==null||n(),s(p)},[n,s]),C=r.useCallback(d=>{d===10&&s(m)},[s]);return t.jsx(x.CountdownCircleTimer,{isPlaying:i,duration:e,colors:c.I,colorsTime:y,size:32,strokeWidth:u,trailStrokeWidth:2,trailColor:o,onComplete:h,onUpdate:C,children:l})},P=({height:i="37px",width:e="37px"})=>t.jsx("div",{style:{height:i,width:e},children:t.jsx(f.B1,{name:"loader"})});exports.G=q;exports.L=O;exports.O=j;exports.d=P;
@@ -0,0 +1 @@
1
+ "use strict";const bs=require("react");var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ms(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),t}var Wi={exports:{}},He,An;function de(){if(An)return He;An=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return He=e,He}var Ge,Tn;function Yi(){if(Tn)return Ge;Tn=1;var e=typeof ve=="object"&&ve&&ve.Object===Object&&ve;return Ge=e,Ge}var $e,xn;function ie(){if(xn)return $e;xn=1;var e=Yi(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return $e=t,$e}var ke,On;function Cs(){if(On)return ke;On=1;var e=ie(),r=function(){return e.Date.now()};return ke=r,ke}var Ue,Kn;function Fs(){if(Kn)return Ue;Kn=1;var e=/\s/;function r(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return Ue=r,Ue}var ze,Sn;function qs(){if(Sn)return ze;Sn=1;var e=Fs(),r=/^\s+/;function t(n){return n&&n.slice(0,e(n)+1).replace(r,"")}return ze=t,ze}var We,En;function we(){if(En)return We;En=1;var e=ie(),r=e.Symbol;return We=r,We}var Ye,Pn;function Rs(){if(Pn)return Ye;Pn=1;var e=we(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,a=e?e.toStringTag:void 0;function i(o){var u=t.call(o,a),v=o[a];try{o[a]=void 0;var h=!0}catch{}var m=n.call(o);return h&&(u?o[a]=v:delete o[a]),m}return Ye=i,Ye}var Xe,Mn;function ws(){if(Mn)return Xe;Mn=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return Xe=t,Xe}var Je,In;function Ae(){if(In)return Je;In=1;var e=we(),r=Rs(),t=ws(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?r(u):t(u)}return Je=o,Je}var Ze,Dn;function pe(){if(Dn)return Ze;Dn=1;function e(r){return r!=null&&typeof r=="object"}return Ze=e,Ze}var Qe,Ln;function Te(){if(Ln)return Qe;Ln=1;var e=Ae(),r=pe(),t="[object Symbol]";function n(a){return typeof a=="symbol"||r(a)&&e(a)==t}return Qe=n,Qe}var Ve,Nn;function As(){if(Nn)return Ve;Nn=1;var e=qs(),r=de(),t=Te(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function v(h){if(typeof h=="number")return h;if(t(h))return n;if(r(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=r(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=e(h);var _=i.test(h);return _||o.test(h)?u(h.slice(2),_?2:8):a.test(h)?n:+h}return Ve=v,Ve}var er,Bn;function Xi(){if(Bn)return er;Bn=1;var e=de(),r=Cs(),t=As(),n="Expected a function",a=Math.max,i=Math.min;function o(u,v,h){var m,_,I,P,N,K,b=0,l=!1,g=!1,C=!0;if(typeof u!="function")throw new TypeError(n);v=t(v)||0,e(h)&&(l=!!h.leading,g="maxWait"in h,I=g?a(t(h.maxWait)||0,v):I,C="trailing"in h?!!h.trailing:C);function y(A){var k=m,X=_;return m=_=void 0,b=A,P=u.apply(X,k),P}function S(A){return b=A,N=setTimeout(L,v),l?y(A):P}function x(A){var k=A-K,X=A-b,te=v-k;return g?i(te,I-X):te}function q(A){var k=A-K,X=A-b;return K===void 0||k>=v||k<0||g&&X>=I}function L(){var A=r();if(q(A))return R(A);N=setTimeout(L,x(A))}function R(A){return N=void 0,C&&m?y(A):(m=_=void 0,P)}function O(){N!==void 0&&clearTimeout(N),b=0,m=K=_=N=void 0}function E(){return N===void 0?P:R(r())}function G(){var A=r(),k=q(A);if(m=arguments,_=this,K=A,k){if(N===void 0)return S(K);if(g)return clearTimeout(N),N=setTimeout(L,v),y(K)}return N===void 0&&(N=setTimeout(L,v)),P}return G.cancel=O,G.flush=E,G}return er=o,er}var rr,jn;function Ji(){if(jn)return rr;jn=1;var e=Ae(),r=de(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!r(u))return!1;var v=e(u);return v==n||v==a||v==t||v==i}return rr=o,rr}var Ts=ie(),xs=Ts["__core-js_shared__"],Os=xs,tr=Os,Hn=function(){var e=/[^.]+$/.exec(tr&&tr.keys&&tr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ks(e){return!!Hn&&Hn in e}var Ss=Ks,Es=Function.prototype,Ps=Es.toString;function Ms(e){if(e!=null){try{return Ps.call(e)}catch{}try{return e+""}catch{}}return""}var Zi=Ms,Is=Ji(),Ds=Ss,Ls=de(),Ns=Zi,Bs=/[\\^$.*+?()[\]{}|]/g,js=/^\[object .+?Constructor\]$/,Hs=Function.prototype,Gs=Object.prototype,$s=Hs.toString,ks=Gs.hasOwnProperty,Us=RegExp("^"+$s.call(ks).replace(Bs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zs(e){if(!Ls(e)||Ds(e))return!1;var r=Is(e)?Us:js;return r.test(Ns(e))}var Ws=zs;function Ys(e,r){return e==null?void 0:e[r]}var Xs=Ys,Js=Ws,Zs=Xs;function Qs(e,r){var t=Zs(e,r);return Js(t)?t:void 0}var he=Qs,nr,Gn;function Ie(){if(Gn)return nr;Gn=1;var e=he,r=e(Object,"create");return nr=r,nr}var ar,$n;function Vs(){if($n)return ar;$n=1;var e=Ie();function r(){this.__data__=e?e(null):{},this.size=0}return ar=r,ar}var ir,kn;function eo(){if(kn)return ir;kn=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return ir=e,ir}var sr,Un;function ro(){if(Un)return sr;Un=1;var e=Ie(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(e){var u=o[i];return u===r?void 0:u}return n.call(o,i)?o[i]:void 0}return sr=a,sr}var or,zn;function to(){if(zn)return or;zn=1;var e=Ie(),r=Object.prototype,t=r.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:t.call(i,a)}return or=n,or}var ur,Wn;function no(){if(Wn)return ur;Wn=1;var e=Ie(),r="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?r:a,this}return ur=t,ur}var cr,Yn;function ao(){if(Yn)return cr;Yn=1;var e=Vs(),r=eo(),t=ro(),n=to(),a=no();function i(o){var u=-1,v=o==null?0:o.length;for(this.clear();++u<v;){var h=o[u];this.set(h[0],h[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,cr=i,cr}function io(){this.__data__=[],this.size=0}var so=io,fr,Xn;function un(){if(Xn)return fr;Xn=1;function e(r,t){return r===t||r!==r&&t!==t}return fr=e,fr}var oo=un();function uo(e,r){for(var t=e.length;t--;)if(oo(e[t][0],r))return t;return-1}var De=uo,co=De,fo=Array.prototype,lo=fo.splice;function ho(e){var r=this.__data__,t=co(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():lo.call(r,t,1),--this.size,!0}var vo=ho,po=De;function yo(e){var r=this.__data__,t=po(r,e);return t<0?void 0:r[t][1]}var go=yo,bo=De;function _o(e){return bo(this.__data__,e)>-1}var mo=_o,Co=De;function Fo(e,r){var t=this.__data__,n=Co(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var qo=Fo,Ro=so,wo=vo,Ao=go,To=mo,xo=qo;function ye(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}ye.prototype.clear=Ro;ye.prototype.delete=wo;ye.prototype.get=Ao;ye.prototype.has=To;ye.prototype.set=xo;var Le=ye,Oo=he,Ko=ie(),So=Oo(Ko,"Map"),cn=So,lr,Jn;function Eo(){if(Jn)return lr;Jn=1;var e=ao(),r=Le,t=cn;function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return lr=n,lr}var dr,Zn;function Po(){if(Zn)return dr;Zn=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return dr=e,dr}var hr,Qn;function Ne(){if(Qn)return hr;Qn=1;var e=Po();function r(t,n){var a=t.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return hr=r,hr}var vr,Vn;function Mo(){if(Vn)return vr;Vn=1;var e=Ne();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return vr=r,vr}var pr,ea;function Io(){if(ea)return pr;ea=1;var e=Ne();function r(t){return e(this,t).get(t)}return pr=r,pr}var yr,ra;function Do(){if(ra)return yr;ra=1;var e=Ne();function r(t){return e(this,t).has(t)}return yr=r,yr}var gr,ta;function Lo(){if(ta)return gr;ta=1;var e=Ne();function r(t,n){var a=e(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return gr=r,gr}var br,na;function fn(){if(na)return br;na=1;var e=Eo(),r=Mo(),t=Io(),n=Do(),a=Lo();function i(o){var u=-1,v=o==null?0:o.length;for(this.clear();++u<v;){var h=o[u];this.set(h[0],h[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,br=i,br}var _r,aa;function No(){if(aa)return _r;aa=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return _r=r,_r}var mr,ia;function Bo(){if(ia)return mr;ia=1;function e(r){return this.__data__.has(r)}return mr=e,mr}var Cr,sa;function Qi(){if(sa)return Cr;sa=1;var e=fn(),r=No(),t=Bo();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,Cr=n,Cr}var Fr,oa;function jo(){if(oa)return Fr;oa=1;function e(r,t,n,a){for(var i=r.length,o=n+(a?1:-1);a?o--:++o<i;)if(t(r[o],o,r))return o;return-1}return Fr=e,Fr}var qr,ua;function Ho(){if(ua)return qr;ua=1;function e(r){return r!==r}return qr=e,qr}var Rr,ca;function Go(){if(ca)return Rr;ca=1;function e(r,t,n){for(var a=n-1,i=r.length;++a<i;)if(r[a]===t)return a;return-1}return Rr=e,Rr}var wr,fa;function $o(){if(fa)return wr;fa=1;var e=jo(),r=Ho(),t=Go();function n(a,i,o){return i===i?t(a,i,o):e(a,r,o)}return wr=n,wr}var Ar,la;function ko(){if(la)return Ar;la=1;var e=$o();function r(t,n){var a=t==null?0:t.length;return!!a&&e(t,n,0)>-1}return Ar=r,Ar}var Tr,da;function Uo(){if(da)return Tr;da=1;function e(r,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;)if(n(t,r[a]))return!0;return!1}return Tr=e,Tr}function zo(e,r){for(var t=-1,n=e==null?0:e.length,a=Array(n);++t<n;)a[t]=r(e[t],t,e);return a}var ln=zo,xr,ha;function dn(){if(ha)return xr;ha=1;function e(r){return function(t){return r(t)}}return xr=e,xr}var Or,va;function Vi(){if(va)return Or;va=1;function e(r,t){return r.has(t)}return Or=e,Or}var Kr,pa;function Wo(){if(pa)return Kr;pa=1;var e=Qi(),r=ko(),t=Uo(),n=ln,a=dn(),i=Vi(),o=200;function u(v,h,m,_){var I=-1,P=r,N=!0,K=v.length,b=[],l=h.length;if(!K)return b;m&&(h=n(h,a(m))),_?(P=t,N=!1):h.length>=o&&(P=i,N=!1,h=new e(h));e:for(;++I<K;){var g=v[I],C=m==null?g:m(g);if(g=_||g!==0?g:0,N&&C===C){for(var y=l;y--;)if(h[y]===C)continue e;b.push(g)}else P(h,C,_)||b.push(g)}return b}return Kr=u,Kr}var Sr,ya;function es(){if(ya)return Sr;ya=1;function e(r,t){for(var n=-1,a=t.length,i=r.length;++n<a;)r[i+n]=t[n];return r}return Sr=e,Sr}var Er,ga;function Yo(){if(ga)return Er;ga=1;var e=Ae(),r=pe(),t="[object Arguments]";function n(a){return r(a)&&e(a)==t}return Er=n,Er}var Pr,ba;function hn(){if(ba)return Pr;ba=1;var e=Yo(),r=pe(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(o){return r(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Pr=i,Pr}var Mr,_a;function re(){if(_a)return Mr;_a=1;var e=Array.isArray;return Mr=e,Mr}var Ir,ma;function Xo(){if(ma)return Ir;ma=1;var e=we(),r=hn(),t=re(),n=e?e.isConcatSpreadable:void 0;function a(i){return t(i)||r(i)||!!(n&&i&&i[n])}return Ir=a,Ir}var Dr,Ca;function rs(){if(Ca)return Dr;Ca=1;var e=es(),r=Xo();function t(n,a,i,o,u){var v=-1,h=n.length;for(i||(i=r),u||(u=[]);++v<h;){var m=n[v];a>0&&i(m)?a>1?t(m,a-1,i,o,u):e(u,m):o||(u[u.length]=m)}return u}return Dr=t,Dr}var Lr,Fa;function xe(){if(Fa)return Lr;Fa=1;function e(r){return r}return Lr=e,Lr}var Nr,qa;function Jo(){if(qa)return Nr;qa=1;function e(r,t,n){switch(n.length){case 0:return r.call(t);case 1:return r.call(t,n[0]);case 2:return r.call(t,n[0],n[1]);case 3:return r.call(t,n[0],n[1],n[2])}return r.apply(t,n)}return Nr=e,Nr}var Br,Ra;function Zo(){if(Ra)return Br;Ra=1;var e=Jo(),r=Math.max;function t(n,a,i){return a=r(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,v=r(o.length-a,0),h=Array(v);++u<v;)h[u]=o[a+u];u=-1;for(var m=Array(a+1);++u<a;)m[u]=o[u];return m[a]=i(h),e(n,this,m)}}return Br=t,Br}var jr,wa;function Qo(){if(wa)return jr;wa=1;function e(r){return function(){return r}}return jr=e,jr}var Hr,Aa;function Vo(){if(Aa)return Hr;Aa=1;var e=he,r=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return Hr=r,Hr}var Gr,Ta;function eu(){if(Ta)return Gr;Ta=1;var e=Qo(),r=Vo(),t=xe(),n=r?function(a,i){return r(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:t;return Gr=n,Gr}var $r,xa;function ru(){if(xa)return $r;xa=1;var e=800,r=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),v=r-(u-o);if(o=u,v>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return $r=n,$r}var kr,Oa;function tu(){if(Oa)return kr;Oa=1;var e=eu(),r=ru(),t=r(e);return kr=t,kr}var Ur,Ka;function ts(){if(Ka)return Ur;Ka=1;var e=xe(),r=Zo(),t=tu();function n(a,i){return t(r(a,i,e),a+"")}return Ur=n,Ur}var zr,Sa;function vn(){if(Sa)return zr;Sa=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return zr=r,zr}var Wr,Ea;function Oe(){if(Ea)return Wr;Ea=1;var e=Ji(),r=vn();function t(n){return n!=null&&r(n.length)&&!e(n)}return Wr=t,Wr}var Yr,Pa;function nu(){if(Pa)return Yr;Pa=1;var e=Oe(),r=pe();function t(n){return r(n)&&e(n)}return Yr=t,Yr}var Xr,Ma;function au(){if(Ma)return Xr;Ma=1;var e=Wo(),r=rs(),t=ts(),n=nu(),a=t(function(i,o){return n(i)?e(i,r(o,1,n,!0)):[]});return Xr=a,Xr}var Jr,Ia;function ns(){if(Ia)return Jr;Ia=1;function e(r,t){for(var n=-1,a=r==null?0:r.length,i=0,o=[];++n<a;){var u=r[n];t(u,n,r)&&(o[i++]=u)}return o}return Jr=e,Jr}var Zr,Da;function iu(){if(Da)return Zr;Da=1;function e(r){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),v=u.length;v--;){var h=u[r?v:++i];if(n(o[h],h,o)===!1)break}return t}}return Zr=e,Zr}var Qr,La;function su(){if(La)return Qr;La=1;var e=iu(),r=e();return Qr=r,Qr}var Vr,Na;function ou(){if(Na)return Vr;Na=1;function e(r,t){for(var n=-1,a=Array(r);++n<r;)a[n]=t(n);return a}return Vr=e,Vr}var Pe={exports:{}};function uu(){return!1}var cu=uu;Pe.exports;(function(e,r){var t=ie(),n=cu,a=r&&!r.nodeType&&r,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,u=o?t.Buffer:void 0,v=u?u.isBuffer:void 0,h=v||n;e.exports=h})(Pe,Pe.exports);var as=Pe.exports,et,Ba;function pn(){if(Ba)return et;Ba=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<a}return et=t,et}var rt,ja;function fu(){if(ja)return rt;ja=1;var e=Ae(),r=vn(),t=pe(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",u="[object Error]",v="[object Function]",h="[object Map]",m="[object Number]",_="[object Object]",I="[object RegExp]",P="[object Set]",N="[object String]",K="[object WeakMap]",b="[object ArrayBuffer]",l="[object DataView]",g="[object Float32Array]",C="[object Float64Array]",y="[object Int8Array]",S="[object Int16Array]",x="[object Int32Array]",q="[object Uint8Array]",L="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]",E={};E[g]=E[C]=E[y]=E[S]=E[x]=E[q]=E[L]=E[R]=E[O]=!0,E[n]=E[a]=E[b]=E[i]=E[l]=E[o]=E[u]=E[v]=E[h]=E[m]=E[_]=E[I]=E[P]=E[N]=E[K]=!1;function G(A){return t(A)&&r(A.length)&&!!E[e(A)]}return rt=G,rt}var Me={exports:{}};Me.exports;(function(e,r){var t=Yi(),n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&t.process,u=function(){try{var v=a&&a.require&&a.require("util").types;return v||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(Me,Me.exports);var lu=Me.exports,tt,Ha;function is(){if(Ha)return tt;Ha=1;var e=fu(),r=dn(),t=lu,n=t&&t.isTypedArray,a=n?r(n):e;return tt=a,tt}var nt,Ga;function du(){if(Ga)return nt;Ga=1;var e=ou(),r=hn(),t=re(),n=as,a=pn(),i=is(),o=Object.prototype,u=o.hasOwnProperty;function v(h,m){var _=t(h),I=!_&&r(h),P=!_&&!I&&n(h),N=!_&&!I&&!P&&i(h),K=_||I||P||N,b=K?e(h.length,String):[],l=b.length;for(var g in h)(m||u.call(h,g))&&!(K&&(g=="length"||P&&(g=="offset"||g=="parent")||N&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||a(g,l)))&&b.push(g);return b}return nt=v,nt}var hu=Object.prototype;function vu(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||hu;return e===t}var pu=vu;function yu(e,r){return function(t){return e(r(t))}}var gu=yu,at,$a;function bu(){if($a)return at;$a=1;var e=gu,r=e(Object.keys,Object);return at=r,at}var it,ka;function _u(){if(ka)return it;ka=1;var e=pu,r=bu(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!e(i))return r(i);var o=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&o.push(u);return o}return it=a,it}var st,Ua;function yn(){if(Ua)return st;Ua=1;var e=du(),r=_u(),t=Oe();function n(a){return t(a)?e(a):r(a)}return st=n,st}var ot,za;function gn(){if(za)return ot;za=1;var e=su(),r=yn();function t(n,a){return n&&e(n,a,r)}return ot=t,ot}var ut,Wa;function mu(){if(Wa)return ut;Wa=1;var e=Oe();function r(t,n){return function(a,i){if(a==null)return a;if(!e(a))return t(a,i);for(var o=a.length,u=n?o:-1,v=Object(a);(n?u--:++u<o)&&i(v[u],u,v)!==!1;);return a}}return ut=r,ut}var ct,Ya;function bn(){if(Ya)return ct;Ya=1;var e=gn(),r=mu(),t=r(e);return ct=t,ct}var ft,Xa;function Cu(){if(Xa)return ft;Xa=1;var e=bn();function r(t,n){var a=[];return e(t,function(i,o,u){n(i,o,u)&&a.push(i)}),a}return ft=r,ft}var Fu=Le;function qu(){this.__data__=new Fu,this.size=0}var Ru=qu;function wu(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var Au=wu;function Tu(e){return this.__data__.get(e)}var xu=Tu;function Ou(e){return this.__data__.has(e)}var Ku=Ou,Su=Le,Eu=cn,Pu=fn(),Mu=200;function Iu(e,r){var t=this.__data__;if(t instanceof Su){var n=t.__data__;if(!Eu||n.length<Mu-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Pu(n)}return t.set(e,r),this.size=t.size,this}var Du=Iu,Lu=Le,Nu=Ru,Bu=Au,ju=xu,Hu=Ku,Gu=Du;function ge(e){var r=this.__data__=new Lu(e);this.size=r.size}ge.prototype.clear=Nu;ge.prototype.delete=Bu;ge.prototype.get=ju;ge.prototype.has=Hu;ge.prototype.set=Gu;var ss=ge,lt,Ja;function $u(){if(Ja)return lt;Ja=1;function e(r,t){for(var n=-1,a=r==null?0:r.length;++n<a;)if(t(r[n],n,r))return!0;return!1}return lt=e,lt}var dt,Za;function os(){if(Za)return dt;Za=1;var e=Qi(),r=$u(),t=Vi(),n=1,a=2;function i(o,u,v,h,m,_){var I=v&n,P=o.length,N=u.length;if(P!=N&&!(I&&N>P))return!1;var K=_.get(o),b=_.get(u);if(K&&b)return K==u&&b==o;var l=-1,g=!0,C=v&a?new e:void 0;for(_.set(o,u),_.set(u,o);++l<P;){var y=o[l],S=u[l];if(h)var x=I?h(S,y,l,u,o,_):h(y,S,l,o,u,_);if(x!==void 0){if(x)continue;g=!1;break}if(C){if(!r(u,function(q,L){if(!t(C,L)&&(y===q||m(y,q,v,h,_)))return C.push(L)})){g=!1;break}}else if(!(y===S||m(y,S,v,h,_))){g=!1;break}}return _.delete(o),_.delete(u),g}return dt=i,dt}var ku=ie(),Uu=ku.Uint8Array,zu=Uu,ht,Qa;function Wu(){if(Qa)return ht;Qa=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(a,i){n[++t]=[i,a]}),n}return ht=e,ht}function Yu(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Xu=Yu,vt,Va;function Ju(){if(Va)return vt;Va=1;var e=we(),r=zu,t=un(),n=os(),a=Wu(),i=Xu,o=1,u=2,v="[object Boolean]",h="[object Date]",m="[object Error]",_="[object Map]",I="[object Number]",P="[object RegExp]",N="[object Set]",K="[object String]",b="[object Symbol]",l="[object ArrayBuffer]",g="[object DataView]",C=e?e.prototype:void 0,y=C?C.valueOf:void 0;function S(x,q,L,R,O,E,G){switch(L){case g:if(x.byteLength!=q.byteLength||x.byteOffset!=q.byteOffset)return!1;x=x.buffer,q=q.buffer;case l:return!(x.byteLength!=q.byteLength||!E(new r(x),new r(q)));case v:case h:case I:return t(+x,+q);case m:return x.name==q.name&&x.message==q.message;case P:case K:return x==q+"";case _:var A=a;case N:var k=R&o;if(A||(A=i),x.size!=q.size&&!k)return!1;var X=G.get(x);if(X)return X==q;R|=u,G.set(x,q);var te=n(A(x),A(q),R,O,E,G);return G.delete(x),te;case b:if(y)return y.call(x)==y.call(q)}return!1}return vt=S,vt}var Zu=es(),Qu=re();function Vu(e,r,t){var n=r(e);return Qu(e)?n:Zu(n,t(e))}var ec=Vu;function rc(){return[]}var tc=rc,nc=ns(),ac=tc,ic=Object.prototype,sc=ic.propertyIsEnumerable,ei=Object.getOwnPropertySymbols,oc=ei?function(e){return e==null?[]:(e=Object(e),nc(ei(e),function(r){return sc.call(e,r)}))}:ac,uc=oc,cc=ec,fc=uc,lc=yn();function dc(e){return cc(e,lc,fc)}var hc=dc,pt,ri;function vc(){if(ri)return pt;ri=1;var e=hc,r=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,v,h,m){var _=u&r,I=e(i),P=I.length,N=e(o),K=N.length;if(P!=K&&!_)return!1;for(var b=P;b--;){var l=I[b];if(!(_?l in o:n.call(o,l)))return!1}var g=m.get(i),C=m.get(o);if(g&&C)return g==o&&C==i;var y=!0;m.set(i,o),m.set(o,i);for(var S=_;++b<P;){l=I[b];var x=i[l],q=o[l];if(v)var L=_?v(q,x,l,o,i,m):v(x,q,l,i,o,m);if(!(L===void 0?x===q||h(x,q,u,v,m):L)){y=!1;break}S||(S=l=="constructor")}if(y&&!S){var R=i.constructor,O=o.constructor;R!=O&&"constructor"in i&&"constructor"in o&&!(typeof R=="function"&&R instanceof R&&typeof O=="function"&&O instanceof O)&&(y=!1)}return m.delete(i),m.delete(o),y}return pt=a,pt}var pc=he,yc=ie(),gc=pc(yc,"DataView"),bc=gc,_c=he,mc=ie(),Cc=_c(mc,"Promise"),Fc=Cc,qc=he,Rc=ie(),wc=qc(Rc,"Set"),Ac=wc,Tc=he,xc=ie(),Oc=Tc(xc,"WeakMap"),Kc=Oc,tn=bc,nn=cn,an=Fc,sn=Ac,on=Kc,us=Ae(),be=Zi,ti="[object Map]",Sc="[object Object]",ni="[object Promise]",ai="[object Set]",ii="[object WeakMap]",si="[object DataView]",Ec=be(tn),Pc=be(nn),Mc=be(an),Ic=be(sn),Dc=be(on),le=us;(tn&&le(new tn(new ArrayBuffer(1)))!=si||nn&&le(new nn)!=ti||an&&le(an.resolve())!=ni||sn&&le(new sn)!=ai||on&&le(new on)!=ii)&&(le=function(e){var r=us(e),t=r==Sc?e.constructor:void 0,n=t?be(t):"";if(n)switch(n){case Ec:return si;case Pc:return ti;case Mc:return ni;case Ic:return ai;case Dc:return ii}return r});var Lc=le,yt,oi;function Nc(){if(oi)return yt;oi=1;var e=ss,r=os(),t=Ju(),n=vc(),a=Lc,i=re(),o=as,u=is(),v=1,h="[object Arguments]",m="[object Array]",_="[object Object]",I=Object.prototype,P=I.hasOwnProperty;function N(K,b,l,g,C,y){var S=i(K),x=i(b),q=S?m:a(K),L=x?m:a(b);q=q==h?_:q,L=L==h?_:L;var R=q==_,O=L==_,E=q==L;if(E&&o(K)){if(!o(b))return!1;S=!0,R=!1}if(E&&!R)return y||(y=new e),S||u(K)?r(K,b,l,g,C,y):t(K,b,q,l,g,C,y);if(!(l&v)){var G=R&&P.call(K,"__wrapped__"),A=O&&P.call(b,"__wrapped__");if(G||A){var k=G?K.value():K,X=A?b.value():b;return y||(y=new e),C(k,X,l,g,y)}}return E?(y||(y=new e),n(K,b,l,g,C,y)):!1}return yt=N,yt}var gt,ui;function cs(){if(ui)return gt;ui=1;var e=Nc(),r=pe();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!r(n)&&!r(a)?n!==n&&a!==a:e(n,a,i,o,t,u)}return gt=t,gt}var bt,ci;function Bc(){if(ci)return bt;ci=1;var e=ss,r=cs(),t=1,n=2;function a(i,o,u,v){var h=u.length,m=h,_=!v;if(i==null)return!m;for(i=Object(i);h--;){var I=u[h];if(_&&I[2]?I[1]!==i[I[0]]:!(I[0]in i))return!1}for(;++h<m;){I=u[h];var P=I[0],N=i[P],K=I[1];if(_&&I[2]){if(N===void 0&&!(P in i))return!1}else{var b=new e;if(v)var l=v(N,K,P,i,o,b);if(!(l===void 0?r(K,N,t|n,v,b):l))return!1}}return!0}return bt=a,bt}var _t,fi;function fs(){if(fi)return _t;fi=1;var e=de();function r(t){return t===t&&!e(t)}return _t=r,_t}var mt,li;function jc(){if(li)return mt;li=1;var e=fs(),r=yn();function t(n){for(var a=r(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,e(u)]}return a}return mt=t,mt}var Ct,di;function ls(){if(di)return Ct;di=1;function e(r,t){return function(n){return n==null?!1:n[r]===t&&(t!==void 0||r in Object(n))}}return Ct=e,Ct}var Ft,hi;function Hc(){if(hi)return Ft;hi=1;var e=Bc(),r=jc(),t=ls();function n(a){var i=r(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return Ft=n,Ft}var qt,vi;function _n(){if(vi)return qt;vi=1;var e=re(),r=Te(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||r(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return qt=a,qt}var ds=fn(),Gc="Expected a function";function mn(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Gc);var t=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=t.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return t.cache=i.set(a,o)||i,o};return t.cache=new(mn.Cache||ds),t}mn.Cache=ds;var $c=mn,kc=$c,Uc=500;function zc(e){var r=kc(e,function(n){return t.size===Uc&&t.clear(),n}),t=r.cache;return r}var Wc=zc,Yc=Wc,Xc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jc=/\\(\\)?/g,Zc=Yc(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Xc,function(t,n,a,i){r.push(a?i.replace(Jc,"$1"):n||t)}),r}),Qc=Zc,Rt,pi;function Vc(){if(pi)return Rt;pi=1;var e=we(),r=ln,t=re(),n=Te(),a=1/0,i=e?e.prototype:void 0,o=i?i.toString:void 0;function u(v){if(typeof v=="string")return v;if(t(v))return r(v,u)+"";if(n(v))return o?o.call(v):"";var h=v+"";return h=="0"&&1/v==-a?"-0":h}return Rt=u,Rt}var wt,yi;function hs(){if(yi)return wt;yi=1;var e=Vc();function r(t){return t==null?"":e(t)}return wt=r,wt}var ef=re(),rf=_n(),tf=Qc,nf=hs();function af(e,r){return ef(e)?e:rf(e,r)?[e]:tf(nf(e))}var vs=af,At,gi;function Be(){if(gi)return At;gi=1;var e=Te(),r=1/0;function t(n){if(typeof n=="string"||e(n))return n;var a=n+"";return a=="0"&&1/n==-r?"-0":a}return At=t,At}var Tt,bi;function Cn(){if(bi)return Tt;bi=1;var e=vs,r=Be();function t(n,a){a=e(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[r(a[i++])];return i&&i==o?n:void 0}return Tt=t,Tt}var xt,_i;function sf(){if(_i)return xt;_i=1;var e=Cn();function r(t,n,a){var i=t==null?void 0:e(t,n);return i===void 0?a:i}return xt=r,xt}var Ot,mi;function of(){if(mi)return Ot;mi=1;function e(r,t){return r!=null&&t in Object(r)}return Ot=e,Ot}var Kt,Ci;function uf(){if(Ci)return Kt;Ci=1;var e=vs,r=hn(),t=re(),n=pn(),a=vn(),i=Be();function o(u,v,h){v=e(v,u);for(var m=-1,_=v.length,I=!1;++m<_;){var P=i(v[m]);if(!(I=u!=null&&h(u,P)))break;u=u[P]}return I||++m!=_?I:(_=u==null?0:u.length,!!_&&a(_)&&n(P,_)&&(t(u)||r(u)))}return Kt=o,Kt}var St,Fi;function cf(){if(Fi)return St;Fi=1;var e=of(),r=uf();function t(n,a){return n!=null&&r(n,a,e)}return St=t,St}var Et,qi;function ff(){if(qi)return Et;qi=1;var e=cs(),r=sf(),t=cf(),n=_n(),a=fs(),i=ls(),o=Be(),u=1,v=2;function h(m,_){return n(m)&&a(_)?i(o(m),_):function(I){var P=r(I,m);return P===void 0&&P===_?t(I,m):e(_,P,u|v)}}return Et=h,Et}var Pt,Ri;function lf(){if(Ri)return Pt;Ri=1;function e(r){return function(t){return t==null?void 0:t[r]}}return Pt=e,Pt}var Mt,wi;function df(){if(wi)return Mt;wi=1;var e=Cn();function r(t){return function(n){return e(n,t)}}return Mt=r,Mt}var It,Ai;function hf(){if(Ai)return It;Ai=1;var e=lf(),r=df(),t=_n(),n=Be();function a(i){return t(i)?e(n(i)):r(i)}return It=a,It}var Dt,Ti;function Fn(){if(Ti)return Dt;Ti=1;var e=Hc(),r=ff(),t=xe(),n=re(),a=hf();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?r(o[0],o[1]):e(o):a(o)}return Dt=i,Dt}var Lt,xi;function vf(){if(xi)return Lt;xi=1;var e=ns(),r=Cu(),t=Fn(),n=re();function a(i,o){var u=n(i)?e:r;return u(i,t(o,3))}return Lt=a,Lt}var Nt,Oi;function pf(){if(Oi)return Nt;Oi=1;function e(r,t,n){var a;return n(r,function(i,o,u){if(t(i,o,u))return a=o,!1}),a}return Nt=e,Nt}var Bt,Ki;function yf(){if(Ki)return Bt;Ki=1;var e=pf(),r=gn(),t=Fn();function n(a,i){return e(a,t(i,3),r)}return Bt=n,Bt}var jt,Si;function gf(){if(Si)return jt;Si=1;function e(r){return r&&r.length?r[0]:void 0}return jt=e,jt}var Ht,Ei;function bf(){return Ei||(Ei=1,Ht=gf()),Ht}var Gt,Pi;function _f(){if(Pi)return Gt;Pi=1;function e(r,t){for(var n=-1,a=r==null?0:r.length;++n<a&&t(r[n],n,r)!==!1;);return r}return Gt=e,Gt}var $t,Mi;function ps(){if(Mi)return $t;Mi=1;var e=xe();function r(t){return typeof t=="function"?t:e}return $t=r,$t}var kt,Ii;function mf(){if(Ii)return kt;Ii=1;var e=_f(),r=bn(),t=ps(),n=re();function a(i,o){var u=n(i)?e:r;return u(i,t(o))}return kt=a,kt}var Ut,Di;function Cf(){if(Di)return Ut;Di=1;var e=gn(),r=ps();function t(n,a){return n&&e(n,r(a))}return Ut=t,Ut}var zt,Li;function Ff(){if(Li)return zt;Li=1;function e(){}return zt=e,zt}var Wt,Ni;function qf(){if(Ni)return Wt;Ni=1;var e=bn(),r=Oe();function t(n,a){var i=-1,o=r(n)?Array(n.length):[];return e(n,function(u,v,h){o[++i]=a(u,v,h)}),o}return Wt=t,Wt}var Yt,Bi;function Rf(){if(Bi)return Yt;Bi=1;function e(r,t){var n=r.length;for(r.sort(t);n--;)r[n]=r[n].value;return r}return Yt=e,Yt}var Xt,ji;function wf(){if(ji)return Xt;ji=1;var e=Te();function r(t,n){if(t!==n){var a=t!==void 0,i=t===null,o=t===t,u=e(t),v=n!==void 0,h=n===null,m=n===n,_=e(n);if(!h&&!_&&!u&&t>n||u&&v&&m&&!h&&!_||i&&v&&m||!a&&m||!o)return 1;if(!i&&!u&&!_&&t<n||_&&a&&o&&!i&&!u||h&&a&&o||!v&&o||!m)return-1}return 0}return Xt=r,Xt}var Jt,Hi;function Af(){if(Hi)return Jt;Hi=1;var e=wf();function r(t,n,a){for(var i=-1,o=t.criteria,u=n.criteria,v=o.length,h=a.length;++i<v;){var m=e(o[i],u[i]);if(m){if(i>=h)return m;var _=a[i];return m*(_=="desc"?-1:1)}}return t.index-n.index}return Jt=r,Jt}var Zt,Gi;function Tf(){if(Gi)return Zt;Gi=1;var e=ln,r=Cn(),t=Fn(),n=qf(),a=Rf(),i=dn(),o=Af(),u=xe(),v=re();function h(m,_,I){_.length?_=e(_,function(K){return v(K)?function(b){return r(b,K.length===1?K[0]:K)}:K}):_=[u];var P=-1;_=e(_,i(t));var N=n(m,function(K,b,l){var g=e(_,function(C){return C(K)});return{criteria:g,index:++P,value:K}});return a(N,function(K,b){return o(K,b,I)})}return Zt=h,Zt}var Qt,$i;function xf(){if($i)return Qt;$i=1;var e=un(),r=Oe(),t=pn(),n=de();function a(i,o,u){if(!n(u))return!1;var v=typeof o;return(v=="number"?r(u)&&t(o,u.length):v=="string"&&o in u)?e(u[o],i):!1}return Qt=a,Qt}var Vt,ki;function Of(){if(ki)return Vt;ki=1;var e=rs(),r=Tf(),t=ts(),n=xf(),a=t(function(i,o){if(i==null)return[];var u=o.length;return u>1&&n(i,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),r(i,e(o,1),[])});return Vt=a,Vt}var en,Ui;function Kf(){if(Ui)return en;Ui=1;var e=Xi(),r=de(),t="Expected a function";function n(a,i,o){var u=!0,v=!0;if(typeof a!="function")throw new TypeError(t);return r(o)&&(u="leading"in o?!!o.leading:u,v="trailing"in o?!!o.trailing:v),e(a,i,{leading:u,maxWait:i,trailing:v})}return en=n,en}var rn,zi;function Sf(){if(zi)return rn;zi=1;var e=hs(),r=0;function t(n){var a=++r;return e(n)+a}return rn=t,rn}(function(e,r){(function(t,n){e.exports=n(Xi(),au(),vf(),yf(),bf(),mf(),Cf(),Ff(),Of(),Kf(),Sf(),bs)})(ve,function(t,n,a,i,o,u,v,h,m,_,I,P){return function(){var N={654:function(b,l,g){var C,y=this&&this.__assign||function(){return y=Object.assign||function(p){for(var s,c=1,f=arguments.length;c<f;c++)for(var d in s=arguments[c])Object.prototype.hasOwnProperty.call(s,d)&&(p[d]=s[d]);return p},y.apply(this,arguments)},S=this&&this.__createBinding||(Object.create?function(p,s,c,f){f===void 0&&(f=c);var d=Object.getOwnPropertyDescriptor(s,c);d&&!("get"in d?!s.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(p,f,d)}:function(p,s,c,f){f===void 0&&(f=c),p[f]=s[c]}),x=this&&this.__setModuleDefault||(Object.create?function(p,s){Object.defineProperty(p,"default",{enumerable:!0,value:s})}:function(p,s){p.default=s}),q=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var s={};if(p!=null)for(var c in p)c!=="default"&&Object.prototype.hasOwnProperty.call(p,c)&&S(s,p,c);return x(s,p),s},L=this&&this.__spreadArray||function(p,s,c){if(c||arguments.length===2)for(var f,d=0,F=s.length;d<F;d++)!f&&d in s||(f||(f=Array.prototype.slice.call(s,0,d)),f[d]=s[d]);return p.concat(f||Array.prototype.slice.call(s))},R=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(l,"__esModule",{value:!0}),l.updateRtl=l.doesFocusableExist=l.getCurrentFocusKey=l.updateAllLayouts=l.resume=l.pause=l.navigateByDirection=l.setFocus=l.setKeyMap=l.destroy=l.setThrottle=l.init=l.SpatialNavigation=l.ROOT_FOCUS_KEY=void 0;var O=R(g(150)),E=R(g(117)),G=R(g(747)),A=R(g(23)),k=R(g(842)),X=R(g(682)),te=R(g(784)),_e=R(g(432)),je=R(g(67)),Ke=R(g(35)),Q=R(g(119)),me=q(g(964)),oe="left",ue="right",ce="up",ne="down",Ce="enter",Fe=((C={}).left=[37,"ArrowLeft"],C.up=[38,"ArrowUp"],C.right=[39,"ArrowRight"],C.down=[40,"ArrowDown"],C.enter=[13,"Enter"],C);l.ROOT_FOCUS_KEY="SN:ROOT";var qe=["#0FF","#FF0","#F0F"],Se={leading:!0,trailing:!1},Ee=function(){function p(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=Q.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=Fe,this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,O.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return p.getCutoffCoordinate=function(s,c,f,d,F){var w=s?d.top:F===Q.default.LTR?d.left:d.right,T=s?d.bottom:F===Q.default.LTR?d.right:d.left;return c?f?w:T:f?T:w},p.getRefCorners=function(s,c,f){var d={a:{x:0,y:0},b:{x:0,y:0}};switch(s){case ce:var F=c?f.bottom:f.top;d.a={x:f.left,y:F},d.b={x:f.right,y:F};break;case ne:F=c?f.top:f.bottom,d.a={x:f.left,y:F},d.b={x:f.right,y:F};break;case oe:var w=c?f.right:f.left;d.a={x:w,y:f.top},d.b={x:w,y:f.bottom};break;case ue:w=c?f.left:f.right,d.a={x:w,y:f.top},d.b={x:w,y:f.bottom}}return d},p.isAdjacentSlice=function(s,c,f){var d=s.a,F=s.b,w=c.a,T=c.b,M=f?"x":"y",$=d[M],H=F[M],j=w[M],B=T[M],D=.2*(H-$);return Math.max(0,Math.min(H,B)-Math.max($,j))>=D},p.getPrimaryAxisDistance=function(s,c,f){var d=s.a,F=c.a,w=f?"y":"x";return Math.abs(F[w]-d[w])},p.getSecondaryAxisDistance=function(s,c,f,d,F){if(F)return F(s,c,f,d);var w=s.a,T=s.b,M=c.a,$=c.b,H=f?"x":"y",j=w[H],B=T[H],D=M[H],Y=$[H];if(d==="center"){var z=(j+B)/2,J=(D+Y)/2;return Math.abs(z-J)}if(d==="edges"){var se=Math.min(j,B),U=Math.min(D,Y),V=Math.max(j,B),fe=Math.max(D,Y),ae=Math.abs(se-U),ee=Math.abs(V-fe);return Math.min(ae,ee)}var Re=[Math.abs(D-j),Math.abs(D-B),Math.abs(Y-j),Math.abs(Y-B)];return Math.min.apply(Math,Re)},p.prototype.sortSiblingsByPriority=function(s,c,f,d){var F=this,w=f===ne||f===ce,T=p.getRefCorners(f,!1,c);return(0,_e.default)(s,function(M){var $=p.getRefCorners(f,!0,M.layout),H=p.isAdjacentSlice(T,$,w),j=H?p.getPrimaryAxisDistance:p.getSecondaryAxisDistance,B=H?p.getSecondaryAxisDistance:p.getPrimaryAxisDistance,D=j(T,$,w,F.distanceCalculationMethod,F.customDistanceCalculationFunction),Y=B(T,$,w,F.distanceCalculationMethod,F.customDistanceCalculationFunction),z=5*D+Y,J=(z+1)/(H?5:1);return F.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(M.focusKey," relative to ").concat(d," is"),D,Y,z),F.log("smartNavigate","priority for ".concat(M.focusKey," relative to ").concat(d," is"),J),F.visualDebugger&&(F.visualDebugger.drawPoint($.a.x,$.a.y,"yellow",6),F.visualDebugger.drawPoint($.b.x,$.b.y,"yellow",6)),J})},p.prototype.init=function(s){var c=this,f=s===void 0?{}:s,d=f.debug,F=d!==void 0&&d,w=f.visualDebug,T=w!==void 0&&w,M=f.nativeMode,$=M!==void 0&&M,H=f.throttle,j=H===void 0?0:H,B=f.throttleKeypresses,D=B!==void 0&&B,Y=f.useGetBoundingClientRect,z=Y!==void 0&&Y,J=f.shouldFocusDOMNode,se=J!==void 0&&J,U=f.domNodeFocusOptions,V=U===void 0?{}:U,fe=f.shouldUseNativeEvents,ae=fe!==void 0&&fe,ee=f.rtl,Re=ee!==void 0&&ee,W=f.distanceCalculationMethod,Z=W===void 0?"corners":W,qn=f.customDistanceCalculationFunction,ys=qn===void 0?void 0:qn;if(!this.enabled&&(this.domNodeFocusOptions=V,this.enabled=!0,this.nativeMode=$,this.throttleKeypresses=D,this.useGetBoundingClientRect=z,this.shouldFocusDOMNode=se&&!$,this.shouldUseNativeEvents=ae,this.writingDirection=Re?Q.default.RTL:Q.default.LTR,this.distanceCalculationMethod=Z,this.customDistanceCalculationFunction=ys,this.debug=F,!this.nativeMode&&(Number.isInteger(j)&&j>0&&(this.throttle=j),this.bindEventHandlers(),T))){this.visualDebugger=new Ke.default(this.writingDirection);var Rn=function(){requestAnimationFrame(function(){c.visualDebugger.clearLayouts(),(0,te.default)(c.focusableComponents,function(wn,gs){c.visualDebugger.drawLayout(wn.layout,gs,wn.parentFocusKey)}),Rn()})};Rn()}},p.prototype.setThrottle=function(s){var c=s===void 0?{}:s,f=c.throttle,d=f===void 0?0:f,F=c.throttleKeypresses,w=F!==void 0&&F;this.throttleKeypresses=w,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(d)&&(this.throttle=d),this.bindEventHandlers())},p.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=Fe,this.unbindEventHandlers())},p.prototype.getEventType=function(s){return(0,A.default)(this.getKeyMap(),function(c){return c.includes(s)})},p.getKeyCode=function(s){return s.keyCode||s.code||s.key},p.prototype.bindEventHandlers=function(){var s=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(c){if(s.paused!==!0){s.debug&&(s.logIndex+=1);var f=p.getKeyCode(c),d=s.getEventType(f);if(d){s.pressedKeys[d]=s.pressedKeys[d]?s.pressedKeys[d]+1:1,s.shouldUseNativeEvents||(c.preventDefault(),c.stopPropagation());var F={pressedKeys:s.pressedKeys};if(d===Ce&&s.focusKey)s.onEnterPress(F);else{var w=s.onArrowPress(d,F)===!1;if(s.visualDebugger&&s.visualDebugger.clear(),w)s.log("keyDownEventListener","default navigation prevented");else{var T=(0,A.default)(s.getKeyMap(),function(M){return M.includes(f)});s.smartNavigate(T,null,{event:c})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,je.default)(this.keyDownEventListener.bind(this),this.throttle,Se)),this.keyUpEventListener=function(c){var f=p.getKeyCode(c),d=s.getEventType(f);delete s.pressedKeys[d],s.throttle&&!s.throttleKeypresses&&s.keyDownEventListenerThrottled.cancel(),d===Ce&&s.focusKey&&s.onEnterRelease(),!s.focusKey||d!==oe&&d!==ue&&d!==ce&&d!==ne||s.onArrowRelease(d)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},p.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var s=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",s),this.keyDownEventListener=null}},p.prototype.onEnterPress=function(s){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onEnterPress&&c.onEnterPress(s):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},p.prototype.onEnterRelease=function(){var s=this.focusableComponents[this.focusKey];s?s.focusable?s.onEnterRelease&&s.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},p.prototype.onArrowPress=function(s,c){var f=this.focusableComponents[this.focusKey];if(f)return f&&f.onArrowPress&&f.onArrowPress(s,c);this.log("onArrowPress","noComponent")},p.prototype.onArrowRelease=function(s){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onArrowRelease&&c.onArrowRelease(s):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},p.prototype.navigateByDirection=function(s,c){if(this.paused!==!0&&this.enabled&&!this.nativeMode){var f=[ne,ce,oe,ue];f.includes(s)?(this.log("navigateByDirection","direction",s),this.smartNavigate(s,null,c)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(s,"`, but you can use only these: "),f)}},p.prototype.smartNavigate=function(s,c,f){var d=this;if(!this.nativeMode){var F=s===ne||s===ce,w=s===ne||(this.writingDirection===Q.default.LTR?s===ue:s===oe);this.log("smartNavigate","direction",s),this.log("smartNavigate","fromParentFocusKey",c),this.log("smartNavigate","this.focusKey",this.focusKey),c||(0,te.default)(this.focusableComponents,function(U){U.layoutUpdated=!1});var T=this.focusableComponents[c||this.focusKey];if(c||T){if(this.log("smartNavigate","currentComponent",T?T.focusKey:void 0,T?T.node:void 0,T),T){this.updateLayout(T.focusKey);var M=T.parentFocusKey,$=T.focusKey,H=T.layout,j=p.getCutoffCoordinate(F,w,!1,H,this.writingDirection),B=(0,G.default)(this.focusableComponents,function(U){if(U.parentFocusKey===M&&U.focusable){d.updateLayout(U.focusKey);var V=p.getCutoffCoordinate(F,w,!0,U.layout,d.writingDirection);return F||d.writingDirection===Q.default.LTR?w?V>=j:V<=j:w?V<=j:V>=j}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",j),this.log("smartNavigate","siblings","".concat(B.length," elements:"),B.map(function(U){return U.focusKey}).join(", "),B.map(function(U){return U.node}),B.map(function(U){return U}))),this.visualDebugger){var D=p.getRefCorners(s,!1,H);this.visualDebugger.drawPoint(D.a.x,D.a.y),this.visualDebugger.drawPoint(D.b.x,D.b.y)}var Y=this.sortSiblingsByPriority(B,H,s,$),z=(0,k.default)(Y);if(this.log("smartNavigate","nextComponent",z?z.focusKey:void 0,z?z.node:void 0,z),z)this.setFocus(z.focusKey,f);else{var J=this.focusableComponents[M],se=J!=null&&J.isFocusBoundary?J.focusBoundaryDirections||[s]:[];J&&se.includes(s)||this.smartNavigate(s,M,f)}}}else this.setFocus(this.getForcedFocusKey())}},p.prototype.saveLastFocusedChildKey=function(s,c){s&&(this.log("saveLastFocusedChildKey","".concat(s.focusKey," lastFocusedChildKey set"),c),s.lastFocusedChildKey=c)},p.prototype.log=function(s,c){for(var f=[],d=2;d<arguments.length;d++)f[d-2]=arguments[d];this.debug&&console.log.apply(console,L(["%c".concat(s,"%c").concat(c),"background: ".concat(qe[this.logIndex%qe.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],f,!1))},p.prototype.getCurrentFocusKey=function(){return this.focusKey},p.prototype.getForcedFocusKey=function(){var s,c=(0,G.default)(this.focusableComponents,function(d){return d.focusable&&d.forceFocus}),f=this.sortSiblingsByPriority(c,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",l.ROOT_FOCUS_KEY);return(s=(0,k.default)(f))===null||s===void 0?void 0:s.focusKey},p.prototype.getNextFocusKey=function(s){var c=this,f=this.focusableComponents[s];if(!f||this.nativeMode)return s;var d=(0,G.default)(this.focusableComponents,function(M){return M.parentFocusKey===s&&M.focusable});if(d.length>0){var F=f.lastFocusedChildKey,w=f.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",F),this.log("getNextFocusKey","preferredChildFocusKey is",w),F&&f.saveLastFocusedChild&&this.isParticipatingFocusableComponent(F))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",F),this.getNextFocusKey(F);if(w&&this.isParticipatingFocusableComponent(w))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",w),this.getNextFocusKey(w);d.forEach(function(M){return c.updateLayout(M.focusKey)});var T=function(M,$){var H=$===Q.default.LTR?function(B){var D=B.layout;return Math.abs(D.left)+Math.abs(D.top)}:function(B){var D=B.layout;return Math.abs(window.innerWidth-D.right)+Math.abs(D.top)},j=(0,_e.default)(M,H);return(0,k.default)(j)}(d,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",T),this.getNextFocusKey(T)}return this.log("getNextFocusKey","targetFocusKey",s),s},p.prototype.addFocusable=function(s){var c=s.focusKey,f=s.node,d=s.parentFocusKey,F=s.onEnterPress,w=s.onEnterRelease,T=s.onArrowPress,M=s.onArrowRelease,$=s.onFocus,H=s.onBlur,j=s.saveLastFocusedChild,B=s.trackChildren,D=s.onUpdateFocus,Y=s.onUpdateHasFocusedChild,z=s.preferredChildFocusKey,J=s.autoRestoreFocus,se=s.forceFocus,U=s.focusable,V=s.isFocusBoundary,fe=s.focusBoundaryDirections;if(this.focusableComponents[c]={focusKey:c,node:f,parentFocusKey:d,onEnterPress:F,onEnterRelease:w,onArrowPress:T,onArrowRelease:M,onFocus:$,onBlur:H,onUpdateFocus:D,onUpdateHasFocusedChild:Y,saveLastFocusedChild:j,trackChildren:B,preferredChildFocusKey:z,focusable:U,isFocusBoundary:V,focusBoundaryDirections:fe,autoRestoreFocus:J,forceFocus:se,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:f},layoutUpdated:!1},f||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[c]),!this.nativeMode){this.updateLayout(c),this.log("addFocusable","Component added: ",this.focusableComponents[c]),c===this.focusKey&&this.setFocus(z||c);for(var ae=this.focusableComponents[this.focusKey];ae;){if(ae.parentFocusKey===c){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}ae=this.focusableComponents[ae.parentFocusKey]}}},p.prototype.removeFocusable=function(s){var c=s.focusKey,f=this.focusableComponents[c];if(f){var d=f.parentFocusKey;(0,f.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",f),delete this.focusableComponents[c];var F=this.parentsHavingFocusedChild.includes(c);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(M){return M!==c});var w=this.focusableComponents[d],T=c===this.focusKey;if(w&&w.lastFocusedChildKey===c&&(w.lastFocusedChildKey=null),this.nativeMode)return;(T||F)&&w&&w.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",T?"Leaf component":"Container component","Auto restoring focus to: ",d),this.setFocusDebounced(d))}},p.prototype.getNodeLayoutByFocusKey=function(s){var c=this.focusableComponents[s];return c?(this.updateLayout(c.focusKey),c.layout):null},p.prototype.setCurrentFocusedKey=function(s,c){var f,d,F,w;if(this.isFocusableComponent(this.focusKey)&&s!==this.focusKey){var T=this.focusableComponents[this.focusKey];T.onUpdateFocus(!1),T.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),c),(d=(f=T.node)===null||f===void 0?void 0:f.removeAttribute)===null||d===void 0||d.call(f,"data-focused"),this.log("setCurrentFocusedKey","onBlur",T)}if(this.focusKey=s,this.isFocusableComponent(this.focusKey)){var M=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&M.node&&M.node.focus(this.domNodeFocusOptions),(w=(F=M.node)===null||F===void 0?void 0:F.setAttribute)===null||w===void 0||w.call(F,"data-focused","true"),M.onUpdateFocus(!0),M.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),c),this.log("setCurrentFocusedKey","onFocus",M)}},p.prototype.updateParentsHasFocusedChild=function(s,c){for(var f=this,d=[],F=this.focusableComponents[s];F;){var w=F.parentFocusKey,T=this.focusableComponents[w];if(T){var M=T.focusKey;d.push(M)}F=T}var $=(0,E.default)(this.parentsHavingFocusedChild,d),H=(0,E.default)(d,this.parentsHavingFocusedChild);(0,X.default)($,function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!1),f.onIntermediateNodeBecameBlurred(j,c)}),(0,X.default)(H,function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!0),f.onIntermediateNodeBecameFocused(j,c)}),this.parentsHavingFocusedChild=d},p.prototype.updateParentsLastFocusedChild=function(s){for(var c=this.focusableComponents[s];c;){var f=c.parentFocusKey,d=this.focusableComponents[f];d&&this.saveLastFocusedChildKey(d,c.focusKey),c=d}},p.prototype.getKeyMap=function(){return this.keyMap},p.prototype.setKeyMap=function(s){this.keyMap=y(y({},this.getKeyMap()),function(c){var f={};return Object.entries(c).forEach(function(d){var F=d[0],w=d[1];f[F]=Array.isArray(w)?w:[w]}),f}(s))},p.prototype.isFocusableComponent=function(s){return!!this.focusableComponents[s]},p.prototype.isParticipatingFocusableComponent=function(s){return this.isFocusableComponent(s)&&this.focusableComponents[s].focusable},p.prototype.onIntermediateNodeBecameFocused=function(s,c){this.isParticipatingFocusableComponent(s)&&this.focusableComponents[s].onFocus(this.getNodeLayoutByFocusKey(s),c)},p.prototype.onIntermediateNodeBecameBlurred=function(s,c){this.isParticipatingFocusableComponent(s)&&this.focusableComponents[s].onBlur(this.getNodeLayoutByFocusKey(s),c)},p.prototype.pause=function(){this.paused=!0},p.prototype.resume=function(){this.paused=!1},p.prototype.setFocus=function(s,c){if(c===void 0&&(c={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",s),s&&s!==l.ROOT_FOCUS_KEY||(s=this.getForcedFocusKey());var f=this.getNextFocusKey(s);this.log("setFocus","newFocusKey",f),this.setCurrentFocusedKey(f,c),this.updateParentsHasFocusedChild(f,c),this.updateParentsLastFocusedChild(f)}},p.prototype.updateAllLayouts=function(){var s=this;this.enabled&&!this.nativeMode&&(0,te.default)(this.focusableComponents,function(c,f){s.updateLayout(f)})},p.prototype.updateLayout=function(s){var c=this.focusableComponents[s];if(c&&!this.nativeMode&&!c.layoutUpdated){var f=c.node,d=this.useGetBoundingClientRect?(0,me.getBoundingClientRect)(f):(0,me.default)(f);c.layout=y(y({},d),{node:f})}},p.prototype.updateFocusable=function(s,c){var f=c.node,d=c.preferredChildFocusKey,F=c.focusable,w=c.isFocusBoundary,T=c.focusBoundaryDirections,M=c.onEnterPress,$=c.onEnterRelease,H=c.onArrowPress,j=c.onFocus,B=c.onBlur;if(!this.nativeMode){var D=this.focusableComponents[s];D&&(D.preferredChildFocusKey=d,D.focusable=F,D.isFocusBoundary=w,D.focusBoundaryDirections=T,D.onEnterPress=M,D.onEnterRelease=$,D.onArrowPress=H,D.onFocus=j,D.onBlur=B,f&&(D.node=f))}},p.prototype.isNativeMode=function(){return this.nativeMode},p.prototype.doesFocusableExist=function(s){return!!this.focusableComponents[s]},p.prototype.updateRtl=function(s){this.writingDirection=s?Q.default.RTL:Q.default.LTR},p}();l.SpatialNavigation=new Ee,l.init=l.SpatialNavigation.init,l.setThrottle=l.SpatialNavigation.setThrottle,l.destroy=l.SpatialNavigation.destroy,l.setKeyMap=l.SpatialNavigation.setKeyMap,l.setFocus=l.SpatialNavigation.setFocus,l.navigateByDirection=l.SpatialNavigation.navigateByDirection,l.pause=l.SpatialNavigation.pause,l.resume=l.SpatialNavigation.resume,l.updateAllLayouts=l.SpatialNavigation.updateAllLayouts,l.getCurrentFocusKey=l.SpatialNavigation.getCurrentFocusKey,l.doesFocusableExist=l.SpatialNavigation.doesFocusableExist,l.updateRtl=l.SpatialNavigation.updateRtl},35:function(b,l,g){var C=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(l,"__esModule",{value:!0});var y=C(g(119)),S=typeof window<"u"&&window.document,x=S?window.innerWidth:0,q=S?window.innerHeight:0,L=function(){function R(O){S&&(this.debugCtx=R.createCanvas("sn-debug","1010",O),this.layoutsCtx=R.createCanvas("sn-layouts","1000",O),this.writingDirection=O)}return R.createCanvas=function(O,E,G){var A=document.querySelector("#".concat(O))||document.createElement("canvas");A.setAttribute("id",O),A.setAttribute("dir",G===y.default.LTR?"ltr":"rtl");var k=A.getContext("2d");return A.style.zIndex=E,A.style.position="fixed",A.style.top="0",A.style.left="0",document.body.appendChild(A),A.width=x,A.height=q,k},R.prototype.clear=function(){S&&this.debugCtx.clearRect(0,0,x,q)},R.prototype.clearLayouts=function(){S&&this.layoutsCtx.clearRect(0,0,x,q)},R.prototype.drawLayout=function(O,E,G){if(S){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(O.left,O.top,O.width,O.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var A=this.writingDirection===y.default.LTR?"left":"right",k=O[A];this.layoutsCtx.fillText(E,k,O.top+10),this.layoutsCtx.fillText(G,k,O.top+25),this.layoutsCtx.fillText("".concat(A,": ").concat(k),k,O.top+40),this.layoutsCtx.fillText("top: ".concat(O.top),k,O.top+55)}},R.prototype.drawPoint=function(O,E,G,A){G===void 0&&(G="blue"),A===void 0&&(A=10),S&&(this.debugCtx.strokeStyle=G,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(O-A/2,E-A/2,A,A))},R}();l.default=L},119:function(b,l){var g;Object.defineProperty(l,"__esModule",{value:!0}),function(C){C[C.LTR=0]="LTR",C[C.RTL=1]="RTL"}(g||(g={})),l.default=g},607:function(b,l,g){var C=this&&this.__createBinding||(Object.create?function(S,x,q,L){L===void 0&&(L=q);var R=Object.getOwnPropertyDescriptor(x,q);R&&!("get"in R?!x.__esModule:R.writable||R.configurable)||(R={enumerable:!0,get:function(){return x[q]}}),Object.defineProperty(S,L,R)}:function(S,x,q,L){L===void 0&&(L=q),S[L]=x[q]}),y=this&&this.__exportStar||function(S,x){for(var q in S)q==="default"||Object.prototype.hasOwnProperty.call(x,q)||C(x,S,q)};Object.defineProperty(l,"__esModule",{value:!0}),y(g(79),l),y(g(445),l),y(g(654),l)},964:function(b,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getBoundingClientRect=void 0;var g=function(C){for(var y=C.offsetParent,S=C.offsetHeight,x=C.offsetWidth,q=C.offsetLeft,L=C.offsetTop;y&&y.nodeType===1;)q+=y.offsetLeft-y.scrollLeft,L+=y.offsetTop-y.scrollTop,y=y.offsetParent;return{height:S,left:q,top:L,width:x}};l.default=function(C){var y=C&&C.parentElement;if(C&&y){var S=g(y),x=g(C),q=x.height,L=x.left,R=x.top,O=x.width;return{x:L-S.left,y:R-S.top,width:O,height:q,left:L,top:R,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},l.getBoundingClientRect=function(C){if(C&&C.getBoundingClientRect){var y=C.getBoundingClientRect();return{x:y.x,y:y.y,width:y.width,height:y.height,left:y.left,top:y.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(b,l,g){Object.defineProperty(l,"__esModule",{value:!0}),l.useFocusContext=l.FocusContext=void 0;var C=g(156),y=g(654);l.FocusContext=(0,C.createContext)(y.ROOT_FOCUS_KEY),l.FocusContext.displayName="FocusContext",l.useFocusContext=function(){return(0,C.useContext)(l.FocusContext)}},79:function(b,l,g){var C=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(l,"__esModule",{value:!0}),l.useFocusable=void 0;var y=g(156),S=C(g(604)),x=C(g(461)),q=g(654),L=g(445);l.useFocusable=function(R){var O=R===void 0?{}:R,E=O.focusable,G=E===void 0||E,A=O.saveLastFocusedChild,k=A===void 0||A,X=O.trackChildren,te=X!==void 0&&X,_e=O.autoRestoreFocus,je=_e===void 0||_e,Ke=O.forceFocus,Q=Ke!==void 0&&Ke,me=O.isFocusBoundary,oe=me!==void 0&&me,ue=O.focusBoundaryDirections,ce=O.focusKey,ne=O.preferredChildFocusKey,Ce=O.onEnterPress,Fe=Ce===void 0?S.default:Ce,qe=O.onEnterRelease,Se=qe===void 0?S.default:qe,Ee=O.onArrowPress,p=Ee===void 0?function(){return!0}:Ee,s=O.onArrowRelease,c=s===void 0?S.default:s,f=O.onFocus,d=f===void 0?S.default:f,F=O.onBlur,w=F===void 0?S.default:F,T=O.extraProps,M=(0,y.useCallback)(function(W){Fe(T,W)},[Fe,T]),$=(0,y.useCallback)(function(){Se(T)},[Se,T]),H=(0,y.useCallback)(function(W,Z){return p(W,T,Z)},[T,p]),j=(0,y.useCallback)(function(W){c(W,T)},[c,T]),B=(0,y.useCallback)(function(W,Z){d(W,T,Z)},[T,d]),D=(0,y.useCallback)(function(W,Z){w(W,T,Z)},[T,w]),Y=(0,y.useRef)(null),z=(0,y.useState)(!1),J=z[0],se=z[1],U=(0,y.useState)(!1),V=U[0],fe=U[1],ae=(0,L.useFocusContext)(),ee=(0,y.useMemo)(function(){return ce||(0,x.default)("sn:focusable-item-")},[ce]),Re=(0,y.useCallback)(function(W){W===void 0&&(W={}),q.SpatialNavigation.setFocus(ee,W)},[ee]);return(0,y.useEffect)(function(){var W=Y.current;return q.SpatialNavigation.addFocusable({focusKey:ee,node:W,parentFocusKey:ae,preferredChildFocusKey:ne,onEnterPress:M,onEnterRelease:$,onArrowPress:H,onArrowRelease:j,onFocus:B,onBlur:D,onUpdateFocus:function(Z){return Z===void 0&&(Z=!1),se(Z)},onUpdateHasFocusedChild:function(Z){return Z===void 0&&(Z=!1),fe(Z)},saveLastFocusedChild:k,trackChildren:te,isFocusBoundary:oe,focusBoundaryDirections:ue,autoRestoreFocus:je,forceFocus:Q,focusable:G}),function(){q.SpatialNavigation.removeFocusable({focusKey:ee})}},[]),(0,y.useEffect)(function(){var W=Y.current;q.SpatialNavigation.updateFocusable(ee,{node:W,preferredChildFocusKey:ne,focusable:G,isFocusBoundary:oe,focusBoundaryDirections:ue,onEnterPress:M,onEnterRelease:$,onArrowPress:H,onArrowRelease:j,onFocus:B,onBlur:D})},[ee,ne,G,oe,ue,M,$,H,j,B,D]),{ref:Y,focusSelf:Re,focused:J,hasFocusedChild:V,focusKey:ee}}},150:function(b){b.exports=t},117:function(b){b.exports=n},747:function(b){b.exports=a},23:function(b){b.exports=i},842:function(b){b.exports=o},682:function(b){b.exports=u},784:function(b){b.exports=v},604:function(b){b.exports=h},432:function(b){b.exports=m},67:function(b){b.exports=_},461:function(b){b.exports=I},156:function(b){b.exports=P}},K={};return function b(l){var g=K[l];if(g!==void 0)return g.exports;var C=K[l]={exports:{}};return N[l].call(C.exports,C,C.exports,b),C.exports}(607)}()})})(Wi);var Ef=Wi.exports;exports.commonjsGlobal=ve;exports.distExports=Ef;exports.getAugmentedNamespace=ms;exports.getDefaultExportFromCjs=_s;
@@ -0,0 +1,5 @@
1
+ "use strict";const g2=require("nanostores"),M=require("./index3.js"),u=require("react"),s=require("./sl-types.js"),e=require("react/jsx-runtime"),T=require("./index9.js"),z=require("./index12.js"),O=require("react-dom"),v2=require("./utils.js"),q=require("./storage.js"),j2=require("./index10.js"),u2=require("./index13.js"),b=require("./useStreamLayerApp2.js"),$=require("./index6.js"),I2=require("./index5.js"),A2=require("./index11.js"),L2=require("./analytics.js"),w2=i=>g2.atom(i),b2=i=>{const t=s.useStore(i.getActiveFeature()),n=s.useStore(i.streamStore()),[l,r]=u.useState(null);return u.useEffect(()=>{const o=i.getFeatures();if(!t)r(null);else for(const[c,d]of o)c===t?(d.status.get()===M.FeatureStatus.Suspended&&d.enable(),r(d)):d.status.get()===M.FeatureStatus.Ready&&d.disable();return()=>{for(const[,c]of o)c.status.get()===M.FeatureStatus.Ready&&c.disable()}},[t,i,n]),[t,l]},$2=s.styled_default("div")({name:"Container",class:"c1zy8a",propsAsIs:!1}),T2=s.styled_default("div")({name:"Title",class:"t1vih9p5",propsAsIs:!1}),H2=s.styled_default("div")({name:"Indicator",class:"i1fbnvpb",propsAsIs:!1}),D=({indicator:i,title:t})=>e.jsxs($2,{children:[e.jsx(T2,{children:t}),e.jsx(H2,{children:i})]}),V2=s.styled_default("div")({name:"Container",class:"ctmhwyc",propsAsIs:!1}),k2=s.styled_default("div")({name:"Indicator",class:"i1jri200",propsAsIs:!1}),z2=s.styled_default("div")({name:"Title",class:"t8s05oq",propsAsIs:!1}),R=({indicator:i,title:t})=>e.jsxs(V2,{children:[e.jsx(k2,{children:i}),e.jsx(z2,{children:t})]}),S2=s.styled_default("div")({name:"Container",class:"c1yrpn9o",propsAsIs:!1}),q2=s.styled_default("div")({name:"TopInfo",class:"t17fwahh",propsAsIs:!1}),R2=s.styled_default("div")({name:"BottomInfo",class:"by6w7e9",propsAsIs:!1}),F2=s.styled_default("div")({name:"User",class:"u1g7arbm",propsAsIs:!1}),E2=s.styled_default("img")({name:"Avatar",class:"a1ldeata",propsAsIs:!1}),B2=s.styled_default("div")({name:"UserInfo",class:"u10d4koz",propsAsIs:!1}),M2=s.styled_default("div")({name:"UserName",class:"u1q6roj0",propsAsIs:!1}),N2=s.styled_default("div")({name:"UserRating",class:"ui0m425",propsAsIs:!1}),Z2=s.styled_default("img")({name:"TrophyIcon",class:"t1el3mrn",propsAsIs:!1}),O2=s.styled_default("div")({name:"RtsContainer",class:"r2vgnxv",propsAsIs:!1}),W2=s.styled_default("div")({name:"RtsDivider",class:"roqn06j",propsAsIs:!1}),G2=s.styled_default("div")({name:"Rts",class:"r15adx7c",propsAsIs:!1}),Q=s.styled_default("div")({name:"RtsIndicator",class:"rv59lta",propsAsIs:!1}),U=s.styled_default("div")({name:"RtsLabel",class:"r55lotb",propsAsIs:!1}),P2=s.styled_default("div")({name:"Divider",class:"d1knfgqt",propsAsIs:!1}),D2=s.styled_default("div")({name:"Ranks",class:"r1mqo824",propsAsIs:!1}),Q2=s.styled_default("div")({name:"Statistics",class:"sxareh6",propsAsIs:!1}),U2=s.styled_default("div")({name:"AvatarPlaceholder",class:"amcu48h",propsAsIs:!1}),Y2=s.styled_default("button")({name:"UserAccountBtn",class:"u32nfkp",propsAsIs:!1}),K2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Trophy'%3e%3cpath%20id='Combined%20Shape'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.69197%204.66662C3.69197%205.99705%203.92914%207.17787%204.4035%208.20912C3.49966%208.02451%202.74487%207.66486%202.1391%207.13014C1.53333%206.59542%201.23046%206.0798%201.23046%205.58328V4.66662H3.69197ZM14.7686%204.66662V5.58328C14.7686%206.0798%2014.4658%206.59542%2013.86%207.13014C13.2542%207.66486%2012.4994%208.02451%2011.5956%208.20912C12.0699%207.17787%2012.3071%205.99705%2012.3071%204.66662H14.7686ZM15.9998%205.58329V4.36108C15.9998%204.10645%2015.9101%203.89002%2015.7306%203.71178C15.5511%203.53354%2015.3332%203.44442%2015.0768%203.44442H12.3076V2.52776C12.3076%202.10763%2012.1569%201.74797%2011.8556%201.44878C11.5544%201.14959%2011.1922%201%2010.7691%201H5.23072C4.80764%201%204.44547%201.14959%204.14419%201.44878C3.84291%201.74797%203.69227%202.10763%203.69227%202.52776V3.44442H0.923068C0.666659%203.44442%200.448714%203.53354%200.269228%203.71178C0.0897418%203.89002%200%204.10645%200%204.36108V5.58329C0%206.03525%200.13301%206.49039%200.399034%206.94872C0.665059%207.40705%201.02403%207.82082%201.47595%208.19003C1.92787%208.55924%202.48234%208.86957%203.13939%209.12101C3.79644%209.37246%204.48713%209.51409%205.21149%209.54592C5.48071%209.88967%205.7852%2010.192%206.12494%2010.453C6.36853%2010.6695%206.53679%2010.9002%206.62974%2011.1453C6.72269%2011.3904%206.76916%2011.6752%206.76916%2011.9999C6.76916%2012.3436%206.67141%2012.6333%206.4759%2012.8688C6.28038%2013.1043%205.96789%2013.2221%205.53841%2013.2221C5.05764%2013.2221%204.62976%2013.3669%204.25476%2013.6566C3.87977%2013.9462%203.69227%2014.3106%203.69227%2014.7499V15.361C3.69227%2015.4501%203.72112%2015.5233%203.77881%2015.5806C3.8365%2015.6379%203.91022%2015.6665%203.99996%2015.6665H11.9999C12.0896%2015.6665%2012.1633%2015.6379%2012.221%2015.5806C12.2787%2015.5233%2012.3076%2015.4501%2012.3076%2015.361V14.7499C12.3076%2014.3106%2012.1201%2013.9462%2011.7451%2013.6566C11.3701%2013.3669%2010.9422%2013.2221%2010.4614%2013.2221C10.0319%2013.2221%209.71945%2013.1043%209.52394%2012.8688C9.32843%2012.6333%209.23068%2012.3436%209.23068%2011.9999C9.23068%2011.6752%209.27715%2011.3904%209.3701%2011.1453C9.46305%2010.9002%209.63131%2010.6695%209.8749%2010.453C10.2146%2010.192%2010.5191%209.88967%2010.7884%209.54592C11.5127%209.51409%2012.2034%209.37246%2012.8604%209.12101C13.5175%208.86957%2014.072%208.55924%2014.5239%208.19003C14.9758%207.82082%2015.3348%207.40705%2015.6008%206.94872C15.8668%206.49039%2015.9998%206.03525%2015.9998%205.58329ZM6.76047%207.1798L8.05109%206.49997L9.3417%207.1798L9.09521%205.73989L10.1393%204.72015L8.69639%204.51007L8.05109%203.2L7.40578%204.51007L5.96283%204.72015L7.00696%205.73989L6.76047%207.1798Z'%20fill='%23F2C94C'/%3e%3c/g%3e%3c/svg%3e",J2=({loading:i,hideFriendsRank:t,avatar:n,name:l,points:r,friendsRank:o,rank:c,streak:d,correct:h,incorrect:y,inTop:j,successRate:v})=>e.jsxs(S2,{"data-loading":i,children:[e.jsx(q2,{children:e.jsx(T.i,{loading:i,children:e.jsxs(F2,{children:[e.jsxs(Y2,{children:[n&&e.jsx(E2,{alt:"avatar",src:n}),!n&&e.jsx(U2,{children:z.I(l||"")})]}),e.jsxs(B2,{children:[e.jsx(M2,{children:l}),e.jsxs(N2,{children:[e.jsxs(O2,{children:[e.jsxs(G2,{children:[e.jsx(Z2,{alt:"rank-icon",src:K2}),e.jsxs(Q,{children:[z.s(r),e.jsx(U,{children:"PTS"})]})]}),t&&e.jsxs(Q,{children:[e.jsx(W2,{}),c||0,e.jsx(U,{children:"global rank"})]})]}),!t&&e.jsxs(e.Fragment,{children:[e.jsx(P2,{}),e.jsxs("div",{children:["TOP ",j||0,"%"]})]})]})]})]})})}),e.jsxs(R2,{children:[!t&&e.jsxs(D2,{children:[e.jsx(T.i,{loading:i,style:{width:"100%"},children:e.jsx(D,{indicator:o||0,title:"Friends rank"})}),e.jsx(T.i,{loading:i,style:{width:"100%"},children:e.jsx(D,{indicator:c||0,title:"Global rank"})})]}),e.jsx(T.i,{loading:i,children:e.jsxs(Q2,{children:[e.jsx(R,{indicator:d||0,title:"Win streak"}),e.jsx(R,{indicator:h||0,title:"Correct"}),e.jsx(R,{indicator:y||0,title:"Incorrect"}),e.jsx(R,{indicator:`${v||0}%`,title:"Succ. rate"})]})})]})]}),X2=s.styled_default("div")({name:"StaticContainer",class:"svm502q",propsAsIs:!1}),e0=`
2
+ .sl-pill-button {
3
+ display: none !important;
4
+ }
5
+ `,h2=()=>window.innerWidth>=s.A.md&&window.innerWidth<s.A.lg?76:53,Y=i=>{var t;const n=h2();return Math.round((((t=i.current)==null?void 0:t.getBoundingClientRect().y)||0)-n)<=0},s0=({children:i,container:t,useContainer:n,staticStyles:l})=>{const[r]=u.useState(()=>Y(t)),[o,c]=u.useState(!1);return u.useEffect(()=>{if(!t.current||!r)return c(!0),()=>{};const d=window.scrollY;return c(!0),()=>{Y(t)&&window.scrollTo({top:d,behavior:"instant"})}},[]),u.useEffect(()=>{if(o&&t.current&&r){const d=h2();window.scrollTo({top:t.current.offsetTop-d,behavior:"instant"})}},[o]),!t.current||!o?null:n?O.createPortal(e.jsxs(X2,{className:"StaticContainer",children:[i,e.jsx("style",{children:v2.u}),e.jsx("style",{children:e0})]}),t.current,"modal-node"):O.createPortal(e.jsxs(e.Fragment,{children:[i,e.jsx("style",{children:l})]}),t.current,"modal-node")},t0=s.styled_default("button")({name:"Container",class:"cpjnajb",propsAsIs:!1}),i0=s.styled_default("div")({name:"Content",class:"c4m6kaz",propsAsIs:!1}),n0=s.styled_default("span")({name:"Title",class:"t1h8t9cc",propsAsIs:!1}),l0=()=>e.jsx(t0,{children:e.jsxs(i0,{children:[e.jsx($.B1,{name:"iconCopySuccess"}),e.jsx(n0,{children:"Link Copied to Clipboard"})]})}),C2=i=>{const t=u.useRef(),[n,l]=u.useState(null),r=u.useCallback(async o=>{var c;if(o&&(c=navigator==null?void 0:navigator.clipboard)!=null&&c.writeText){t.current&&(clearTimeout(t.current),l(null));try{await navigator.clipboard.writeText(o),i.current&&(l(O.createPortal(e.jsx(l0,{}),i.current)),t.current=setTimeout(()=>{l(null)},1e3))}catch(d){console.error("Unable to copy to clipboard",d)}}},[i]);return u.useEffect(()=>()=>{clearTimeout(t.current)},[]),[r,n]};let L;typeof window<"u"?L=window:typeof self<"u"?L=self:L=b.global;let W=null,G=null;const K=20,N=L.clearTimeout,J=L.setTimeout,Z=L.cancelAnimationFrame||L.mozCancelAnimationFrame||L.webkitCancelAnimationFrame,X=L.requestAnimationFrame||L.mozRequestAnimationFrame||L.webkitRequestAnimationFrame;Z==null||X==null?(W=N,G=function(t){return J(t,K)}):(W=function([t,n]){Z(t),N(n)},G=function(t){const n=X(function(){N(l),t()}),l=J(function(){Z(n),t()},K);return[n,l]});function a0(i){let t,n,l,r,o,c,d;const h=typeof document<"u"&&document.attachEvent;if(!h){c=function(f){const C=f.__resizeTriggers__,A=C.firstElementChild,g=C.lastElementChild,w=A.firstElementChild;g.scrollLeft=g.scrollWidth,g.scrollTop=g.scrollHeight,w.style.width=A.offsetWidth+1+"px",w.style.height=A.offsetHeight+1+"px",A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight},o=function(f){return f.offsetWidth!==f.__resizeLast__.width||f.offsetHeight!==f.__resizeLast__.height},d=function(f){if(f.target.className&&typeof f.target.className.indexOf=="function"&&f.target.className.indexOf("contract-trigger")<0&&f.target.className.indexOf("expand-trigger")<0)return;const C=this;c(this),this.__resizeRAF__&&W(this.__resizeRAF__),this.__resizeRAF__=G(function(){o(C)&&(C.__resizeLast__.width=C.offsetWidth,C.__resizeLast__.height=C.offsetHeight,C.__resizeListeners__.forEach(function(w){w.call(C,f)}))})};let a=!1,p="";l="animationstart";const m="Webkit Moz O ms".split(" ");let _="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),x="";{const f=document.createElement("fakeelement");if(f.style.animationName!==void 0&&(a=!0),a===!1){for(let C=0;C<m.length;C++)if(f.style[m[C]+"AnimationName"]!==void 0){x=m[C],p="-"+x.toLowerCase()+"-",l=_[C],a=!0;break}}}n="resizeanim",t="@"+p+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",r=p+"animation: 1ms "+n+"; "}const y=function(a){if(!a.getElementById("detectElementResize")){const p=(t||"")+".resize-triggers { "+(r||"")+'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%; }',m=a.head||a.getElementsByTagName("head")[0],_=a.createElement("style");_.id="detectElementResize",_.type="text/css",i!=null&&_.setAttribute("nonce",i),_.styleSheet?_.styleSheet.cssText=p:_.appendChild(a.createTextNode(p)),m.appendChild(_)}};return{addResizeListener:function(a,p){if(h)a.attachEvent("onresize",p);else{if(!a.__resizeTriggers__){const m=a.ownerDocument,_=L.getComputedStyle(a);_&&_.position==="static"&&(a.style.position="relative"),y(m),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=m.createElement("div")).className="resize-triggers";const x=m.createElement("div");x.className="expand-trigger",x.appendChild(m.createElement("div"));const f=m.createElement("div");f.className="contract-trigger",a.__resizeTriggers__.appendChild(x),a.__resizeTriggers__.appendChild(f),a.appendChild(a.__resizeTriggers__),c(a),a.addEventListener("scroll",d,!0),l&&(a.__resizeTriggers__.__animationListener__=function(A){A.animationName===n&&c(a)},a.__resizeTriggers__.addEventListener(l,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(p)}},removeResizeListener:function(a,p){if(h)a.detachEvent("onresize",p);else if(a.__resizeListeners__.splice(a.__resizeListeners__.indexOf(p),1),!a.__resizeListeners__.length){a.removeEventListener("scroll",d,!0),a.__resizeTriggers__.__animationListener__&&(a.__resizeTriggers__.removeEventListener(l,a.__resizeTriggers__.__animationListener__),a.__resizeTriggers__.__animationListener__=null);try{a.__resizeTriggers__=!a.removeChild(a.__resizeTriggers__)}catch{}}}}}class r0 extends u.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:l,onResize:r}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},c=parseFloat(o.paddingLeft||"0"),d=parseFloat(o.paddingRight||"0"),h=parseFloat(o.paddingTop||"0"),y=parseFloat(o.paddingBottom||"0"),j=this._parentNode.getBoundingClientRect(),v=j.height-h-y,a=j.width-c-d,p=this._parentNode.offsetHeight-h-y,m=this._parentNode.offsetWidth-c-d;(!n&&(this.state.height!==p||this.state.scaledHeight!==v)||!l&&(this.state.width!==m||this.state.scaledWidth!==a))&&(this.setState({height:p,width:m,scaledHeight:v,scaledWidth:a}),typeof r=="function"&&r({height:p,scaledHeight:v,scaledWidth:a,width:m}))}},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 l=n.ownerDocument.defaultView.ResizeObserver;l!=null?(this._resizeObserver=new l(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=a0(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:l,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:c=!1,nonce:d,onResize:h,style:y={},tagName:j="div",...v}=this.props,{height:a,scaledHeight:p,scaledWidth:m,width:_}=this.state,x={overflow:"visible"},f={};let C=!1;return r||(a===0&&(C=!0),x.height=0,f.height=a,f.scaledHeight=p),o||(_===0&&(C=!0),x.width=0,f.width=_,f.scaledWidth=m),c&&(C=!1),u.createElement(j,{ref:this._setRef,style:{...x,...y},...v},!C&&t(f))}}const o0=s.styled_default("div")({name:"Container",class:"c1itm4k7",propsAsIs:!1}),d0=s.styled_default("div")({name:"IconContainer",class:"i1w4fsni",propsAsIs:!1}),c0=()=>$.B1,p0=s.styled_default(c0())({name:"InviteGameIcon",class:"i19m85r1",propsAsIs:!0}),u0=s.styled_default("div")({name:"Content",class:"c1mbu204",propsAsIs:!1}),h0=s.styled_default("div")({name:"Heading",class:"h1amdqtv",propsAsIs:!1}),C0=s.styled_default("div")({name:"Subtext",class:"s1lhlj9j",propsAsIs:!1}),f0=s.styled_default("div")({name:"LinkContainer",class:"l1wot35e",propsAsIs:!1}),m0=s.styled_default("div")({name:"LinkInfo",class:"l1jdw39q",propsAsIs:!1}),_0=s.styled_default("span")({name:"LinkTitle",class:"l1cr5mk",propsAsIs:!1}),x0=s.styled_default("span")({name:"LinkAddress",class:"lvi87q4",propsAsIs:!1}),y0=()=>$.B1,g0=s.styled_default(y0())({name:"LinkIcon",class:"l1pqlvw3",propsAsIs:!0}),f2=({inviteLink:i,inviteCardTitle:t,inviteCardSubtext:n,primaryColor:l,className:r})=>{const o=u.useRef(null),[c,d]=C2(o),[h]=L2.f({type:"invitation",action:"sent",payload:{from:b.InvitationFrom.MENU}});return e.jsxs(o0,{className:r,children:[e.jsx(d0,{style:{backgroundColor:l},children:e.jsx(p0,{name:"invite-game-icon"})}),e.jsxs(u0,{children:[e.jsx(h0,{children:t||""}),e.jsx(C0,{children:n||""})]}),i&&e.jsxs(f0,{ref:o,"data-a":"intr",onClick:h(()=>c(i)),children:[e.jsxs(m0,{children:[e.jsx(_0,{children:"Invite link"}),e.jsx(x0,{children:i})]}),e.jsx(g0,{name:"icon-copy"})]}),d]})},v0=()=>q.r,j0=s.styled_default(v0())({name:"Container",class:"cll3md7",propsAsIs:!0}),I0=()=>q.S,A0=s.styled_default(I0())({name:"ActionBtn",class:"a10g1iik",propsAsIs:!0}),L0=({questionId:i,...t})=>e.jsxs(j0,{"data-a":"intr","data-name":i,children:[e.jsx(j2.O,{questionId:i,...t}),e.jsx(A0,{"data-a":"intr","data-name":i,children:"View Insight"})]}),w0=()=>q.r,b0=s.styled_default(w0())({name:"Container",class:"cl56x6b",propsAsIs:!0}),$0=s.styled_default("button")({name:"ActionButton",class:"a11pzf92",propsAsIs:!1}),T0=s.styled_default("blockquote")({name:"Quote",class:"q1hbaleq",propsAsIs:!1}),H0=({...i})=>e.jsxs(b0,{"data-a":"intr","data-name":i.tweetId,children:[i.title&&e.jsx(T0,{children:i.title}),e.jsx(z.b,{...i}),e.jsx($0,{"data-a":"intr","data-name":i.tweetId,children:"View Insight"})]}),e2=s.styled_default("div")({name:"QuestionsContainer",class:"qvghv3l",propsAsIs:!1}),V0=({questions:i,openQuestion:t,controlVideo:n})=>{const l=r=>{const o=r.target.getAttribute("data-name");o&&(u2.wt(),t(o,{openedFrom:"list"}))};return i?e.jsx(e2,{"data-a":"intr",onClick:l,children:i==null?void 0:i.map(r=>{var o,c,d;if(r.type==="question"&&((o=r.attributes)==null?void 0:o.attributes.case)==="question"){const h=r.attributes.attributes.value;return e.jsx(q.R,{...h},h.questionId)}if(r.type==="insight"&&((c=r.attributes)==null?void 0:c.attributes.case)==="insight"){const h=r.attributes.attributes.value;return e.jsx(L0,{controlVideo:n,...h},h.questionId)}if(r.type==="tweet"&&((d=r.attributes)==null?void 0:d.attributes.case)==="tweet"){const h=r.attributes.attributes.value,y=r.attributes.id;return e.jsx(H0,{controlVideo:n,...h,tweetId:y},y)}return null})}):e.jsx(e2,{children:Array.from({length:5}).map((r,o)=>e.jsx(q.D,{},o))})},k0=s.styled_default("div")({name:"InsightContainer",class:"i1pqqgpo",propsAsIs:!1}),z0=s.styled_default("img")({name:"Image",class:"igj7luu",propsAsIs:!1}),S0=s.styled_default("div")({name:"ImageContainer",class:"i1qne9g6",propsAsIs:!1}),q0=s.styled_default("div")({name:"InsightContent",class:"itpr98r",propsAsIs:!1}),R0=s.styled_default("h3")({name:"Title",class:"t17iaqp8",propsAsIs:!1}),F0=s.styled_default("div")({name:"Description",class:"d16t3y7s",propsAsIs:!1}),E0=s.styled_default("button")({name:"ActionBtn",class:"a12495er",propsAsIs:!1}),B0=({video:i,image:t,imageMode:n,heading:l,body:r,action:o,controlVideo:c})=>e.jsxs(k0,{children:[(i==null?void 0:i.url)&&e.jsx(u2.Et,{source:i.url,poster:i.thumbnailUrl,controlVideo:c}),t&&!(i!=null&&i.url)&&e.jsx(S0,{"data-rounded":n===b.QuestionImages.ROUNDED,children:e.jsx(z0,{src:t,alt:l})}),e.jsxs(q0,{children:[e.jsx(R0,{children:l}),e.jsx(F0,{children:r}),o&&e.jsx(E0,{onClick:o,children:"View Insight"})]})]}),M0=s.styled_default("div")({name:"Container",class:"c1eptrjd",propsAsIs:!1}),N0=s.styled_default("div")({name:"CloseIconWrap",class:"crylm65",propsAsIs:!1}),Z0=()=>$.B1,O0=s.styled_default(Z0())({name:"CloseIcon",class:"c9mrcz7",propsAsIs:!0}),W0=s.styled_default("div")({name:"Header",class:"hw3lzv4",propsAsIs:!1}),G0=()=>$.B1,P0=s.styled_default(G0())({name:"TypeIcon",class:"t1rrb3kf",propsAsIs:!0}),D0=s.styled_default("span")({name:"TypeName",class:"t1ydnjov",propsAsIs:!1}),Q0=s.styled_default("div")({name:"Question",class:"qlf90cl",propsAsIs:!1}),U0=s.styled_default("button")({name:"AnswerButton",class:"a1e0nhcl",propsAsIs:!1}),Y0=s.styled_default("div")({name:"Container",class:"c1t4f0x4",propsAsIs:!1}),K0=s.styled_default("button")({name:"ActionBtn",class:"a16w1nl6",propsAsIs:!1}),J0=s.styled_default("div")({name:"QuoteWrap",class:"q14u54rf",propsAsIs:!1}),X0=s.styled_default("blockquote")({name:"Quote",class:"q1hxm6zo",propsAsIs:!1}),e1=({action:i,...t})=>e.jsxs(Y0,{children:[t.title&&e.jsx(J0,{children:e.jsx(X0,{children:t.title})}),e.jsx(z.b,{...t}),i&&e.jsx(K0,{onClick:i,children:"View Insight"})]}),s1=({close:i,action:t,controlVideo:n,data:{questionType:l,question:r,insight:o,tweet:c}})=>{const d=z.e[l];return d?e.jsxs(M0,{onClick:t,style:l===b.QuestionType.TWEET?{paddingTop:"12px"}:{},children:[e.jsx(N0,{"data-a":"intr",onClick:h=>{h.stopPropagation(),i&&i(h)},children:e.jsx(O0,{name:"icon-cross"})}),l!==b.QuestionType.TWEET&&e.jsxs(W0,{children:[e.jsx(P0,{"data-type-trivia":l===b.QuestionType.TRIVIA,"data-type-poll":l===b.QuestionType.POLL,name:d.iconName}),e.jsx(D0,{children:d.label})]}),l===b.QuestionType.FACTOID&&o&&e.jsx(B0,{...o,action:t,controlVideo:n}),l===b.QuestionType.TWEET&&c&&e.jsx(e1,{...c,action:t,controlVideo:n}),l!==b.QuestionType.FACTOID&&l!==b.QuestionType.TWEET&&e.jsxs(e.Fragment,{children:[e.jsx(Q0,{children:r==null?void 0:r.title}),e.jsx(U0,{children:"Answer"})]})]}):null},V=s.styled_default("div")({name:"BGWrap",class:"b1dqe0sz",propsAsIs:!1}),I=s.styled_default("div")({name:"BGLineBase",class:"b1v6w7ni",propsAsIs:!1}),t1=()=>I,i1=s.styled_default(t1())({name:"BGOneLineOne",class:"b2nqb1p",propsAsIs:!0}),n1=()=>I,l1=s.styled_default(n1())({name:"BGOneLineTwo",class:"b1xxgmbk",propsAsIs:!0}),a1=()=>I,r1=s.styled_default(a1())({name:"BGOneLineThree",class:"b63lwcb",propsAsIs:!0}),o1=()=>I,s2=s.styled_default(o1())({name:"BGTwoLineOne",class:"b2iah4",propsAsIs:!0}),d1=()=>I,t2=s.styled_default(d1())({name:"BGTwoLineTwo",class:"b1xezvf6",propsAsIs:!0}),c1=()=>I,i2=s.styled_default(c1())({name:"BGTwoLineThree",class:"b1jz1hg0",propsAsIs:!0}),p1=()=>I,n2=s.styled_default(p1())({name:"BGThreeLineOne",class:"b18ho1tk",propsAsIs:!0}),u1=()=>I,l2=s.styled_default(u1())({name:"BGThreeLineTwo",class:"b14uvjfm",propsAsIs:!0}),h1=()=>I,a2=s.styled_default(h1())({name:"BGThreeLineThree",class:"b11c3ns7",propsAsIs:!0}),C1=()=>I,r2=s.styled_default(C1())({name:"BGThreeLineFour",class:"b1bqhhet",propsAsIs:!0}),f1=()=>I,m1=s.styled_default(f1())({name:"BGFourLineOne",class:"b1xyzi7o",propsAsIs:!0}),_1=()=>I,x1=s.styled_default(_1())({name:"BGFourLineTwo",class:"byo0rup",propsAsIs:!0}),y1=()=>I,g1=s.styled_default(y1())({name:"BGFourLineThree",class:"b1oyiqgv",propsAsIs:!0}),v1=()=>I,j1=s.styled_default(v1())({name:"BGFourLineFour",class:"bx3ddqw",propsAsIs:!0}),I1=({step:i,correct:t})=>e.jsxs(e.Fragment,{children:[e.jsxs(V,{"data-active":i===1,"data-first-screen":"true",children:[e.jsx(i1,{}),e.jsx(l1,{}),e.jsx(r1,{})]}),e.jsxs(V,{"data-active":i===2,children:[e.jsx(s2,{}),e.jsx(t2,{}),e.jsx(i2,{})]}),e.jsxs(V,{"data-active":i===3,children:[e.jsx(s2,{}),e.jsx(t2,{}),e.jsx(i2,{})]}),t?e.jsxs(e.Fragment,{children:[e.jsxs(V,{"data-active":i===4,"data-correct":"true",children:[e.jsx(n2,{}),e.jsx(l2,{}),e.jsx(a2,{}),e.jsx(r2,{})]}),e.jsxs(V,{"data-active":i===5,"data-correct":"true",children:[e.jsx(n2,{}),e.jsx(l2,{}),e.jsx(a2,{}),e.jsx(r2,{})]})]}):e.jsxs(V,{"data-active":i===4,"data-correct":"false",children:[e.jsx(m1,{}),e.jsx(x1,{}),e.jsx(g1,{}),e.jsx(j1,{})]})]}),A1=118,L1=()=>A2.f,w1=s.styled_default(L1())({name:"Container",class:"c10131zw",propsAsIs:!0}),b1=s.styled_default("div")({name:"InnerContainer",class:"ir6k2eo",propsAsIs:!1}),H=s.styled_default("div")({name:"Content",class:"c1hwoq9l",propsAsIs:!1}),S=s.styled_default("div")({name:"Title",class:"t4ujo4g",propsAsIs:!1}),$1=()=>S,T1=s.styled_default($1())({name:"PointsTitle",class:"p1pjil1h",propsAsIs:!0}),F=s.styled_default("div")({name:"Subtitle",class:"s1iorwr9",propsAsIs:!1}),o2=s.styled_default("div")({name:"SubtitleFG",class:"s51sv9d",propsAsIs:!1}),E=s.styled_default("div")({name:"AnswerText",class:"a1lbk2ye",propsAsIs:!1}),H1=()=>$.B1,m2=s.styled_default(H1())({name:"FeedbackIcon",class:"frcvk3t",propsAsIs:!0}),V1=()=>m2,d2=s.styled_default(V1())({name:"FeedbackIconCorrect",class:"f33p82r",propsAsIs:!0}),k1=()=>m2,z1=s.styled_default(k1())({name:"FeedbackIconIncorrect",class:"f12r9net",propsAsIs:!0}),c2=s.styled_default("div")({name:"CloseIconWrap",class:"c1fw6699",propsAsIs:!1}),S1=()=>$.B1,p2=s.styled_default(S1())({name:"CloseIcon",class:"c115o126",propsAsIs:!0}),q1="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",R1="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",F1=(i,t,n)=>i===t?"translateY(0px)":i>t?`translateY(${n}px)`:"translateY(-100%)",E1=({close:i,votedAnswer:t,mastersApp:n,correct:l,correctAnswerTitle:r,questionTitle:o,saveHeight:c,style:d,hiding:h})=>{const[y,j]=u.useState(1),v=u.useRef({});u.useEffect(()=>{const _=setInterval(()=>{j(x=>l&&x>4||!l&&x>3?x:++x)},3e3);return()=>clearInterval(_)},[l]),u.useEffect(()=>{var _,x;v.current[y]&&c(((x=(_=v.current[y])==null?void 0:_.getBoundingClientRect())==null?void 0:x.height)||A1)},[y,c]);const a=_=>x=>{v.current&&(v.current[_]=x)},p=_=>({transform:F1(_,y,d.height)}),m={...d};return n&&m.height&&typeof m.height=="number"&&(m.height+=32),e.jsx(w1,{style:d.height?m:{...d,paddingTop:0,paddingBottom:0},hiding:h,children:e.jsxs(b1,{style:{height:d.height,minHeight:d.height,backgroundColor:y>3?l?"var(--color-sdk-prediction-result-success-bg)":"var(--color-sdk-prediction-result-incorrect-bg)":"var(--color-primary-1)"},children:[e.jsx(I1,{step:y,correct:l}),n&&e.jsxs(H,{ref:a(1),style:p(1),children:[e.jsx("img",{alt:"sponsor-logo",src:q1}),e.jsx(o2,{children:"Featured Groups +"})]}),!n&&e.jsx(H,{ref:a(1),style:p(1),children:e.jsx("img",{alt:"sponsor-logo",src:R1})}),e.jsxs(H,{ref:a(2),style:p(2),children:[e.jsx(S,{children:"Prediction results are in!"}),n&&e.jsx(o2,{children:"Featured Groups +"})]}),e.jsxs(H,{ref:a(3),style:p(3),children:[e.jsx(S,{children:o}),e.jsx(F,{children:e.jsxs(E,{children:[e.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})})]}),l?e.jsxs(e.Fragment,{children:[e.jsxs(H,{ref:a(4),style:{...p(4),color:"var(--color-sdk-prediction-result-success-text)"},children:[e.jsxs(S,{children:["Congratulations!",e.jsx("br",{}),"You answered correctly."]}),e.jsxs(F,{children:[e.jsx(d2,{name:"selected"}),e.jsxs(E,{children:[e.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]})]}),e.jsxs(H,{ref:a(5),style:{...p(5),color:"var(--color-sdk-prediction-result-success-text)"},children:[e.jsx(T1,{children:y===5&&e.jsx(I2.d,{delay:.5,prefix:"+",suffix:" points",value:t==null?void 0:t.points})}),e.jsxs(F,{children:[e.jsx(d2,{name:"selected"}),e.jsxs(E,{children:[e.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]}),e.jsx(c2,{"data-a":"intr",onClick:i,children:e.jsx(p2,{name:"icon-cross"})})]})]}):e.jsxs(H,{ref:a(4),style:p(4),children:[e.jsxs(S,{style:{color:"var(--color-sdk-prediction-result-error-title)"},children:["Better luck next time!",e.jsx("br",{}),"Correct: ",r,"."]}),e.jsxs(F,{style:{color:"var(--color-sdk-prediction-result-error-subtitle)"},children:[e.jsx(z1,{name:"circleClose"}),e.jsxs(E,{children:[e.jsx("span",{children:"Your Pick:"})," ",t==null?void 0:t.title]})]}),e.jsx(c2,{"data-a":"intr",onClick:i,children:e.jsx(p2,{name:"icon-cross"})})]})]})})},B1=i=>{const[t,n]=u.useState(!1),[l,r]=u.useState(!1),o=u.useRef(null),c=u.useCallback(()=>{r(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r(!1)},1e3)},[]),d=u.useCallback(async h=>{n(!0);const y=h.map(j=>new Promise((v,a)=>{const p=new Image;p.onload=()=>v(j),p.onerror=()=>a(),p.src=j}));await Promise.allSettled(y),n(!1)},[]);return u.useEffect(()=>{i&&(c(),d(i))},[i,c,d]),{loading:t,throttled:l}},M1=s.styled_default("div")({name:"Container",class:"cl51m2q",propsAsIs:!1}),N1=s.styled_default("img")({name:"Avatar",class:"a2yhhhr",propsAsIs:!1}),Z1=s.styled_default("div")({name:"AvatarPlaceholder",class:"a1dtxxlr",propsAsIs:!1}),O1=s.styled_default("div")({name:"Content",class:"c12clm3w",propsAsIs:!1}),W1=s.styled_default("span")({name:"Name",class:"n14lctn7",propsAsIs:!1}),G1=({avatar:i,name:t})=>e.jsxs(M1,{children:[i&&e.jsx(N1,{src:i}),!i&&e.jsx(Z1,{children:z.I(t||"")}),e.jsxs(O1,{children:[e.jsxs(W1,{children:[t," "]}),"is waiting for you!"]})]}),P1=s.styled_default("div")({name:"Container",class:"c1htq1lb",propsAsIs:!1}),D1=s.styled_default("div")({name:"Graphic",class:"gjyzpp7",propsAsIs:!1}),Q1=s.styled_default("img")({name:"GraphicImage",class:"g16mldgz",propsAsIs:!1}),U1=s.styled_default("div")({name:"Headline",class:"h69js65",propsAsIs:!1}),Y1=s.styled_default("div")({name:"TaglineContainer",class:"tmm7qmo",propsAsIs:!1}),K1=s.styled_default("div")({name:"Tagline",class:"t17knuw2",propsAsIs:!1}),J1=s.styled_default("div")({name:"Content",class:"c1b74psg",propsAsIs:!1}),X1=s.styled_default("div")({name:"StepsContainer",class:"s1y99ug7",propsAsIs:!1}),ee=s.styled_default("span")({name:"StepIndicator",class:"sgf3v5n",propsAsIs:!1}),se=s.styled_default("div")({name:"InvitingUserWrap",class:"i1sj6gn8",propsAsIs:!1}),te=({loading:i,steps:t,currentStep:n,inviterName:l})=>{const{headline:r,tagline:o}=t[n];return e.jsxs(P1,{children:[o&&e.jsx(Y1,{children:e.jsx(T.i,{loading:i,children:e.jsx(K1,{children:o})})}),e.jsxs(J1,{"data-welcome-screen":n===0,children:[e.jsx(D1,{children:e.jsx(T.i,{loading:i,children:t.map(({graphicSrc:c},d)=>e.jsx(Q1,{src:c,"data-active":n===d}))})}),r&&e.jsx(T.i,{loading:i,children:e.jsx(U1,{children:r})})]}),l&&n===0&&e.jsx(se,{children:e.jsx(G1,{name:l})}),e.jsx(X1,{style:i?{visibility:"hidden"}:{},children:Array.from({length:t.length}).map((c,d)=>e.jsx(ee,{"data-active":n===d},d))})]})},ie=s.styled_default("div")({name:"Container",class:"cm0bev",propsAsIs:!1}),ne=s.styled_default("div")({name:"Content",class:"ce7x737",propsAsIs:!1}),le=s.styled_default("div")({name:"Title",class:"tc2tor6",propsAsIs:!1}),ae=s.styled_default("div")({name:"RulesList",class:"r1k5klql",propsAsIs:!1}),re=s.styled_default("div")({name:"RulesItem",class:"r1tf3ft2",propsAsIs:!1}),oe=s.styled_default("div")({name:"RuleIcon",class:"rwpvg1k",propsAsIs:!1}),de=s.styled_default("div")({name:"RuleText",class:"rbxiag0",propsAsIs:!1}),ce=s.styled_default("button")({name:"TermsButton",class:"t6cyrry",propsAsIs:!1}),pe=({rules:i,rulesTitle:t,termsText:n,primaryColor:l,openTerms:r})=>e.jsxs(ie,{children:[e.jsxs(ne,{children:[e.jsx(le,{children:t}),e.jsx(ae,{children:i==null?void 0:i.map(({label:o,icon:c},d)=>e.jsxs(re,{children:[c&&e.jsx(oe,{style:{backgroundColor:l},children:e.jsx($.B1,{name:c,"data-icon":c})}),e.jsx(de,{children:o})]},d))})]}),n&&e.jsx(ce,{"data-a":"intr",onClick:r,children:"See Terms and Conditions"})]}),ue=s.styled_default("div")({name:"Container",class:"cj0g35h",propsAsIs:!1}),he=s.styled_default("div")({name:"Content",class:"c1xkhrbn",propsAsIs:!1}),Ce=s.styled_default("div")({name:"Title",class:"tifzb8b",propsAsIs:!1}),fe=s.styled_default("div")({name:"ScrollingText",class:"stduw5c",propsAsIs:!1}),me=({termsTitle:i,termsText:t})=>e.jsx(ue,{children:e.jsxs(he,{children:[e.jsx(Ce,{children:i}),e.jsx(fe,{children:t})]})}),_e=s.styled_default("button")({name:"SButton",class:"s1nve60q",propsAsIs:!1}),xe=s.styled_default("span")({name:"ButtonLabel",class:"b1xoswwx",propsAsIs:!1}),ye=({disabled:i,variant:t="primary",onClick:n,children:l,...r})=>e.jsx(_e,{"data-a":"intr",onClick:n,disabled:i,"data-variant":t,...r,children:e.jsx(xe,{children:l})}),ge=s.styled_default("div")({name:"Container",class:"c18uddbs",propsAsIs:!1}),ve=s.styled_default("div")({name:"Content",class:"cvcfjf6",propsAsIs:!1}),je=s.styled_default("div")({name:"OnboardingHeader",class:"o1ie27lw",propsAsIs:!1}),Ie=s.styled_default("button")({name:"CloseBtn",class:"c15cjkwi",propsAsIs:!1}),Ae=()=>$.B1,Le=s.styled_default(Ae())({name:"IconClose",class:"i1mavjt2",propsAsIs:!0}),we=s.styled_default("div")({name:"OnboardingFooter",class:"o1x0dyzv",propsAsIs:!1}),be=()=>ye,$e=s.styled_default(be())({name:"OnboardingActionBtn",class:"o1jfi9c3",propsAsIs:!0}),k={steps:!1,rules:!1,inviteCard:!1},Te=({gamification:i,steps:t,rules:n,rulesBtnLabel:l,rulesTitle:r,termsTitle:o,termsText:c,primaryColor:d,inviteLink:h,inviteCardTitle:y,inviteCardSubtext:j,inviteCardBtnLabel:v,loading:a,inviterName:p,sdk:m,onClose:_})=>{const[x,f]=u.useState(0),[C,A]=u.useState(!1),[g,w]=u.useState(k);u.useEffect(()=>{t!=null&&t.length?w({...k,steps:!0}):n!=null&&n.length?w({...k,rules:!0}):w({...k,inviteCard:!0})},[]);const _2=u.useMemo(()=>g.steps&&x===0?"Continue":g.rules?C||!l?"Got it":l:g.inviteCard?v||"Play Now":"Next",[g,x,C,l,v]),x2=u.useCallback(()=>{t!=null&&t.length&&x<t.length-1?f(B=>++B):n!=null&&n.length&&g.steps?w({...k,rules:!0}):g.rules&&w({...k,inviteCard:!0})},[x,t==null?void 0:t.length,n==null?void 0:n.length,g,f,w]),y2=async()=>{g.inviteCard?await i.onboardingStatus.submitInplay():g.rules&&C?A(!1):x2()};return u.useEffect(()=>{!a&&p&&m.inviteDisplayed()},[a,p,m]),e.jsx(r0,{children:({width:B,height:P})=>e.jsxs(ge,{style:{width:B,height:P,maxHeight:P},children:[e.jsx(je,{children:e.jsx(Ie,{"data-a":"intr",onClick:_,children:e.jsx(Le,{name:"icon-close-btn-gray"})})}),e.jsxs(ve,{children:[g.steps&&(t==null?void 0:t.length)&&e.jsx(te,{loading:a,steps:t,currentStep:x,inviterName:p}),g.rules&&!C&&e.jsx(pe,{rules:n,rulesTitle:r,termsText:c,primaryColor:d,openTerms:()=>A(!0)}),g.rules&&C&&e.jsx(me,{termsTitle:o,termsText:c}),g.inviteCard&&e.jsx(f2,{inviteLink:h,inviteCardTitle:y,inviteCardSubtext:j,primaryColor:d})]}),e.jsx(we,{children:e.jsx(T.i,{loading:a,style:{width:"100%"},children:e.jsx($e,{"data-a":"intr",onClick:y2,children:_2})})})]})})},He=s.styled_default("button")({name:"Container",class:"crkmfw1",propsAsIs:!1}),Ve=s.styled_default("div")({name:"Content",class:"c11awpy4",propsAsIs:!1}),ke=s.styled_default("span")({name:"Title",class:"t154z7mh",propsAsIs:!1}),ze=({title:i,onClick:t,className:n,style:l})=>e.jsx(He,{"data-a":"intr",onClick:t,className:n,style:l,children:e.jsxs(Ve,{"data-a":"intr",children:[e.jsx($.B1,{"data-a":"intr",name:"iconUp"}),i&&e.jsx(ke,{"data-a":"intr",children:i})]})});exports.D=E1;exports.I=B1;exports.M=f2;exports.T=s0;exports.T$1=C2;exports.createSingleStore=w2;exports.f=ze;exports.k=V0;exports.p=b2;exports.tn=Te;exports.w=s1;exports.z=J2;