!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2f6f0746-c088-40e2-8f07-2efd10aaf2eb",e._sentryDebugIdIdentifier="sentry-dbid-2f6f0746-c088-40e2-8f07-2efd10aaf2eb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4033],{3468:(e,t,r)=>{r.d(t,{C:()=>n});var s=r(55729),i=r(19168);let n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,t=(0,s.useRef)(!1);return(0,s.useCallback)((r,s)=>{t.current||(t.current=!0,setTimeout(()=>{t.current=!1},e),(0,i.MZ)(r,s))},[])}},3881:(e,t,r)=>{r.d(t,{E:()=>a});var s=r(64082),i=r(6029),n=r(41249),l=r(43451);function a(e){var{height:t=800,width:r="100%",rowHeight:a=45,wrapperStyle:o={},rows:d,animate:c=!1,rowGap:u=8,uniqueKey:x}=e,h=(0,s.T)(e,["height","width","rowHeight","wrapperStyle","rows","animate","rowGap","uniqueKey"]);return 0===t?null:(0,i.jsx)(n.az,Object.assign({maxW:"100%",bg:"surface.s1",overflow:"hidden"},h,{style:o},{children:(0,i.jsx)(l.D,Object.assign({animate:c,width:r,height:d&&a?d*(a+u):t,uniqueKey:x},{children:(0,i.jsx)(i.Fragment,{children:d?Array(d).fill(null).map((e,t)=>(0,i.jsx)("rect",{x:0,y:t*(a+u),width:"100%",height:a},t)):(0,i.jsx)("rect",{x:0,y:0,width:"100%",height:t})})}))}))}},12047:(e,t,r)=>{r.d(t,{Ay:()=>l});var s=r(95083),i=r(21501),n=r(55729);function l(){let{isInMobileTabs:e=!0,isSportMenuVisible:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[r,l]=(0,n.useState)(0),a=(0,i.YU)(),{isMobile:o}=(0,s.$c)(),d=50*!!e,c=48+d+48*!!t;return(0,n.useEffect)(()=>{o&&l(a===i.Dh.Up?c:d)},[a,o]),r}},17357:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(21377),i=r(55729),n=r(494),l=r(30720),a=r(19121);function o(e,t){let r=null==t?void 0:t.shouldRefresh,[o,d]=(0,i.useState)(),[c,u]=(0,i.useState)(),x=(0,n.wA)();(0,i.useEffect)(()=>{(null==t?void 0:t.event)?x((0,a.$n)(t.event)):e&&s.nk6.fetchEvent(e).then(e=>{x((0,a.$n)(e.event)),d(e.event),u(void 0)}).catch(e=>{u(e),(null==t?void 0:t.onFetchError)&&t.onFetchError(),d(void 0)})},[e,null==t?void 0:t.event]);let h=(0,n.d4)(t=>{let{favorites:{events:r}}=t;return e?r[e]:void 0});(0,i.useEffect)(()=>{if(!e||!r)return;let t="event-details-".concat(e);return x((0,a.vB)({entities:[e],refreshTaskId:t},{fetchFunction:s.nk6.fetchEvent.bind(null,e)})),()=>{x((0,a.tM)(t))}},[e,r]);let[p,m]=(0,l.A)(h||(null==t?void 0:t.event),"homeTeam","awayTeam",o||(null==t?void 0:t.event)),[f,j]=(0,l.A)(h||(null==t?void 0:t.event),"homeScore","awayScore",o||(null==t?void 0:t.event));return{event:h,fetchedEvent:o,leftTeam:p,rightTeam:m,leftScore:f,rightScore:j,error:c}}},23419:(e,t,r)=>{r.d(t,{A:()=>n,k:()=>i});var s=r(55729);let i=(0,s.createContext)(null);function n(){let e=(0,s.useContext)(i);if(!e)throw Error("useWeeklyChallengeContext must be used within an WeeklyChallengeContextProvider");return e}},24796:(e,t,r)=>{r.d(t,{iC:()=>ez,GN:()=>tu,Aw:()=>eU,iy:()=>$,bj:()=>N,ET:()=>eT,Ay:()=>eI});var s=r(6029),i=r(32523),n=r(95083),l=r(76356),a=r(55729),o=r(90248),d=r(90510),c=r(494),u=r(65789),x=r(88339),h=r(68234),p=r(70679),m=r(21377),f=r(41249),j=r(947),g=r(54409),v=r(54053),y=r(8476),b=r(76410),_=r(25862),w=r(45860),A=r(41735),k=r(40528),C=r(3468),S=r(52679);let E={[m.lqH.Predictor]:"profile_badge_top_predictor",[m.lqH.Crowdsourcer]:"user_status_contributor",[m.lqH.Editor]:"user_status_editor",[m.lqH.Moderator]:"basic.moderator"},T=e=>{let{badgeType:t,isActive:r,disabled:i,blocked:a,onClick:d}=e,{colors:c}=(0,A.useTheme)(),u=t?E[t]:"profile_badge_selection_no_badge",x=(0,C.C)();return u?(0,s.jsxs)(l.az,{br:"sm",minH:"6xl",position:"relative",onClick:()=>{if(!a)return i?void x((0,s.jsx)(k.y,{font:"display.small",messageId:"profile_badge_toast_message_text"})):d()},border:"1px solid",borderColor:r&&!a?"primary.default":"neutrals.nLv3",bg:{base:r&&!a?"primary.highlight":"surface.s2",_hover:i||a||r?void 0:"surface.s0"},cursor:i||a?"not-allowed":r?void 0:"pointer",children:[(0,s.jsxs)(l.so,{align:"center",justify:"center",direction:"column",gap:"sm",py:"sm",px:"xs",children:[t?(0,s.jsx)(S.A,{userBadge:t,bg:i||a?c.onSurface.nLv3:void 0,size:24}):(0,s.jsx)(g.Cfq,{fill:a?"onSurface.nLv3":"onSurface.nLv2"}),(0,s.jsx)(n.EY,{userSelect:"none",color:i||a?"neutrals.nLv3":"neutrals.nLv1",children:(0,s.jsx)(o.A,{id:u})})]}),r&&(0,s.jsx)(l.az,{position:"absolute",top:"xs",right:"xs",children:(0,s.jsx)(g.sk6,{fill:a?"onSurface.nLv3":"primary.default",isRtlPrevented:!0})})]}):null};function H(e){var t;let{newBadge:r,setNewBadge:i}=e,d=(0,c.d4)(x.$F),u=(null==d?void 0:d.userBadge)===m.lqH.Moderator,{data:h}=(0,w.Ay)(d?m.oJZ.badges(d.id):null),[p,f]=(0,a.useState)(null!=(t=null==d?void 0:d.userBadge)?t:void 0),j=Object.values(m.lqH);return(0,a.useEffect)(()=>{p!==r&&i(p)},[p]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.az,{p:"lg",children:[(0,s.jsx)(n.EY,{display:"block",textStyle:"display.medium",textAlign:"center",color:u?"neutrals.nLv3":"neutrals.nLv1",children:(0,s.jsx)(o.A,{id:"profile_badges"})}),(0,s.jsx)(n.EY,{display:"block",textStyle:"assistive.default",textAlign:"center",color:"neutrals.nLv3",mt:"2xs",children:(0,s.jsx)(o.A,{id:"profile_badges_description"})})]}),(0,s.jsxs)(l.xA,{columns:2,gap:"sm",px:"lg",children:[(0,s.jsx)(T,{onClick:()=>{(null==d?void 0:d.userBadge)===void 0?f(void 0):p&&"no_badge"!==p&&f("no_badge")},isActive:!p||"no_badge"===p,blocked:u}),j.map(e=>(0,s.jsx)(T,{badgeType:e,isActive:p===e,disabled:!(null==h?void 0:h.badges.includes(e)),blocked:u,onClick:()=>f(e)},e))]})]})}function F(e){let{isOpen:t,setIsOpen:r,nickname:i,isChatModerator:d,image:u}=e,h=(0,c.wA)(),m=(0,j.A)(),w=(0,c.d4)(x.$F),[A,k]=(0,a.useState)(null),[C,E]=(0,a.useState)(),[T,F]=(0,a.useState)(null),[L,I]=(0,a.useState)(null),z=(0,c.d4)(x.gw),V=(null==w?void 0:w.providerType)?String(null==w?void 0:w.providerType).charAt(0).toUpperCase()+String(null==w?void 0:w.providerType).slice(1):null;return(0,a.useEffect)(()=>{z===i&&(k(z),r(!1))},[z]),(0,s.jsx)(v.A,{isOpen:t,width:360,setIsOpen:r,renderAdPlaceholder:!1,header:(0,s.jsx)(l.az,{h:"xl"}),footer:(0,s.jsxs)(l.so,{justify:"flex-end",my:"sm",px:"lg",gap:"lg",children:[(0,s.jsx)(n.$n,{variant:"clear",onClick:()=>r(!1),children:(0,s.jsx)(o.A,{id:"basic.cancel"})}),(0,s.jsx)(n.$n,{variant:"filled",onClick:()=>{A&&h((0,y.fV)(A)),T&&h((0,y.bs)(T)),void 0!==C&&(null==w?void 0:w.userBadge)!==C&&(h((0,y.U1)("no_badge"===C?null:C)),(0,b.ke)({action:"change_badge",location:"profile",type:C||"no_badge"})),A===i&&r(!1)},children:(0,s.jsx)(o.A,{id:"basic.save"})})]}),children:(0,s.jsxs)(l.az,{bg:"surface.sp",br:"lg",w:"100%",maxW:"[360px]",pb:"lg",mx:"auto",children:[(0,s.jsxs)(l.so,{direction:"column",align:"center",gap:"md",mb:"lg",p:"lg",children:[(0,s.jsxs)(l.az,{position:"relative",children:[(0,s.jsx)(p.A,{size:150,src:L||u}),(0,s.jsxs)(l.az,{position:"absolute",bottom:"0",right:"0",children:[void 0===C&&(null==w?void 0:w.userBadge)&&(0,s.jsx)(S.A,{userBadge:null==w?void 0:w.userBadge}),C&&"no_badge"!==C&&(0,s.jsx)(S.A,{userBadge:C})]})]}),(0,s.jsxs)(l.I4.label,{cursor:"pointer",children:[(0,s.jsx)(n.EY,{textStyle:"assistive.default",color:"primary.default",p:"xs",cursor:"pointer",children:(0,s.jsx)(o.A,{id:"change_profile_picture"})}),(0,s.jsx)(l.I4.input,{type:"file",accept:"image/*",display:"none",onChange:e=>{if(e.target&&"files"in e.target){var t;let r=null==(t=e.target.files)?void 0:t[0];if(r){if(r.size>5e7)return void h((0,_.aT)({msgId:"profile_image_error_too_large",toastOptions:{autoClose:3e3,closeButton:!0}}));F(r),I(URL.createObjectURL(r))}}}})]})]}),d&&(0,s.jsxs)(l.so,{mb:"lg",mx:"lg",bg:"surface.s2",br:"lg",py:"md",px:"lg",gap:"lg",children:[(0,s.jsx)(l.az,{children:(0,s.jsx)(g.G_L,{fill:"onSurface.nLv3"})}),(0,s.jsx)(n.EY,{color:"neutrals.nLv1",textStyle:"body.small",children:(0,s.jsx)(o.A,{id:"moderators_nickname_edit_restriction"})})]}),(0,s.jsx)(f.pd,{px:"lg",label:(0,s.jsx)(o.A,{id:"nickname_hint"}),value:null===A?i:A,onChange:e=>k(e),disabled:d,maxLength:30}),w&&V&&(0,s.jsxs)(l.so,{py:"xs",px:"lg",align:"center",minH:"3xl",gap:"sm",mb:"sm",children:[(0,s.jsx)(l.az,{w:"lg",h:"lg",children:(0,s.jsx)(g.zzQ,{w:16,h:16,fill:"onSurface.nLv1"})}),(0,s.jsx)(n.EY,{color:"neutrals.nLv3",textStyle:"body.small",lineHeight:1,children:(0,s.jsx)(o.A,{id:"profile_account_creation_info",values:{platformName:V,date:m.formatDate(1e3*w.createdTimestamp,{dateStyle:"medium"})}})})]}),(0,s.jsx)(f.cG,{}),(0,s.jsx)(H,{newBadge:C,setNewBadge:E})]})})}function L(e){let{isOpen:t,onClose:r}=e,i=(0,c.wA)();return(0,s.jsx)(f.aF,{onClose:r,isOpen:t,children:(0,s.jsxs)(f.az,{bg:"surface.sp",br:"lg",elevation:3,maxW:316,p:"lg",mx:"auto",children:[(0,s.jsx)(f.EY,{as:"div",c:"onSurface.nLv1",font:"display.large",mb:"sm",children:(0,s.jsx)(o.A,{id:"user.deleteAccountTitle"})}),(0,s.jsx)(f.EY,{as:"div",c:"onSurface.nLv1",font:"body.medium",mb:"xl",children:(0,s.jsx)(o.A,{id:"user.deleteAccountMessage"})}),(0,s.jsxs)(f.so,{justify:"flex-end",children:[(0,s.jsx)(f.$n,{variant:"unshielded",colorScheme:"neutral",onClick:()=>{i((0,y.mN)())},children:(0,s.jsx)(o.A,{id:"user.confirmDelete"})}),(0,s.jsx)(f.$n,{onClick:r,ml:"lg",children:(0,s.jsx)(o.A,{id:"basic.cancel"})})]})]})})}let I=e=>{let{onClick:t,children:r}=e;return(0,s.jsx)(l.so,{h:"4xl",gap:"lg",px:"lg",align:"center",bg:{_hover:"surface.s2"},cursor:"pointer",onClick:t,children:r})},z=e=>{let{onModalToggle:t}=e,r=(0,c.wA)(),[i,d]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t(i)},[i]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.az,{py:"sm",children:[(0,s.jsxs)(I,{onClick:()=>r((0,_.aS)()),children:[(0,s.jsx)(g.EwR,{w:24,h:24,fill:"onSurface.nLv3"}),(0,s.jsx)(n.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(o.A,{id:"user.signOut"})})]}),(0,s.jsxs)(I,{onClick:()=>d(!i),children:[(0,s.jsx)(g.xV8,{w:24,h:24,fill:"error.default"}),(0,s.jsx)(n.EY,{textStyle:"body.medium",color:"status.error.default",children:(0,s.jsx)(o.A,{id:"delete_profile"})})]})]}),(0,s.jsx)(L,{isOpen:i,onClose:()=>d(!i)})]})};function V(){let[e,t]=(0,a.useState)(!1),[r,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t(r)},[r]),(0,s.jsx)(f.AM,{trigger:(0,s.jsx)(f.AM.TriggerWrapper,{children:(0,s.jsx)(l.az,{p:"2xs",w:"[28px]",h:"[28px]",children:(0,s.jsx)(g.Hop,{fill:"primary.default",w:24,h:24})})}),controls:[e,t],closeOnOutsideClick:!r,children:(0,s.jsx)(f.AM.Content,{right:0,minW:180,p:0,elevation:3,br:"lg",children:(0,s.jsx)(z,{onModalToggle:e=>i(e)})})})}var M=r(19168);function Y(e){let{userId:t}=e,{isMobile:r}=(0,n.$c)(),[i,d]=(0,a.useState)(!1),c=window.location.origin+m.oJZ.profile(t),u=(0,a.useCallback)(async()=>{!i&&(d(!0),setTimeout(()=>{d(!1)},3e3),(0,b.oD)("profile"),r&&navigator.share?navigator.share({title:"Sofascore profile share",url:c}):"writeText"in window.navigator.clipboard&&(await window.navigator.clipboard.writeText(c),(0,M.MZ)((0,s.jsxs)(l.so,{align:"center",children:[(0,s.jsx)(g.G_L,{fill:"surface.s1",mr:"lg"}),(0,s.jsx)(n.EY,{display:"block",color:"surface.s1",textStyle:"display.small",children:(0,s.jsx)(o.A,{id:"basic.copiedToClipboard"})})]}))))},[r,i]);return(0,s.jsx)(n.K0,{onClick:u,variant:"clear",size:"primary",children:(0,s.jsx)(g.VJ,{fill:"primary.default",isRtlPrevented:!0})})}var W=r(89642);function O(){let e=(0,c.d4)(x.$F),{userAccount:t}=(0,a.useContext)(W.t),[r,i]=(0,a.useState)(!1),d=(null==e?void 0:e.id)===(null==t?void 0:t.id);return t&&e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.so,{gap:"sm",align:"center",children:[d&&(0,s.jsx)(n.$n,{variant:"outline",size:"tertiary",onClick:()=>i(!r),children:(0,s.jsx)(n.EY,{color:"primary.default",textStyle:"assistive.default",children:(0,s.jsx)(o.A,{id:"edit"})})}),(0,s.jsx)(Y,{userId:t.id}),d&&(0,s.jsx)(V,{})]}),d&&(0,s.jsx)(F,{isOpen:r,setIsOpen:i,nickname:e.nickname,isChatModerator:e.userBadge===m.lqH.Moderator,image:e.imageURL})]}):null}let D={[m.lqH.Predictor]:{title:"profile_badge_top_predictor_info",text:"profile_badge_top_predictor_info_description"},[m.lqH.Editor]:{title:"editor_badge_title",text:"editor_badge_text"},[m.lqH.Crowdsourcer]:{title:"contributor_badge_title",text:"contributor_badge_text"},[m.lqH.Moderator]:{title:"moderator_badge_title",text:"moderator_badge_text"}};function B(e){let{isOpen:t,setIsOpen:r,userBadge:i}=e,a=(0,c.d4)(x.$F),{title:d,text:u}=D[i]||{};return(0,s.jsx)(v.A,{isOpen:t,setIsOpen:r,renderAdPlaceholder:!1,header:(0,s.jsx)(l.az,{m:"lg",mt:["sm","lg"],children:(0,s.jsx)(n.EY,{textStyle:"display.large",children:d&&(0,s.jsx)(o.A,{id:d})})}),footer:null,children:(0,s.jsxs)(l.so,{direction:"column",px:"lg",py:"sm",gap:"xl",maxW:{md:"[350px]"},children:[(0,s.jsx)(l.so,{justify:"center",children:(0,s.jsx)(S.A,{userBadge:i})}),(0,s.jsx)(n.EY,{textStyle:"body.mediumParagraph",children:u&&(0,s.jsx)(o.A,{id:u})}),!(null==a?void 0:a.editor)&&i===m.lqH.Editor&&(0,s.jsxs)(n.Mz,{w:"fit",href:"https://editor.sofascore.com",target:"_blank",rel:"noreferrer",children:[(0,s.jsx)(n.EY,{textStyle:"display.small",color:"primary.default",mr:"xs",userSelect:"none",children:(0,s.jsx)(o.A,{id:"editor_badge_cta_link"})}),(0,s.jsx)(g.HW5,{})]}),(0,s.jsx)(l.so,{justify:"center",mb:"xl",children:(0,s.jsx)(n.$n,{w:"100%",onClick:()=>r(!1),children:(0,s.jsx)(o.A,{id:"got_it_button"})})})]})})}let P={[m.lqH.Moderator]:"basic.moderator",[m.lqH.Predictor]:"profile_badge_top_predictor",[m.lqH.Editor]:"user_status_editor",[m.lqH.Crowdsourcer]:"user_status_contributor"};function R(e){let{userAccount:t,...r}=e,i=P[t.userBadge];return i?(0,s.jsx)(n.EY,{...r,children:(0,s.jsx)(o.A,{id:i})}):null}function U(e){let{userAccount:t}=e,[r,i]=(0,a.useState)(!1);return Object.values(m.lqH).includes(t.userBadge)?(0,s.jsxs)(l.so,{py:"xs",px:"sm",br:"xl",gap:"xs",bg:{base:"surface.s0",_hover:"surface.s1"},role:"button",cursor:"pointer",w:"fit",onClick:()=>i(!0),children:[(0,s.jsx)(S.A,{userBadge:t.userBadge,size:16}),(0,s.jsx)(R,{userAccount:t,textStyle:"assistive.default",color:"neutrals.nLv1"}),(0,s.jsx)(B,{isOpen:r,setIsOpen:i,userBadge:t.userBadge})]}):(0,s.jsx)(l.az,{w:"lg"})}function Z(e){let{userAccount:t}=e,r=t.userBadge===m.lqH.Moderator,i=t.userBadge===m.lqH.Editor&&t.editor;return(0,s.jsxs)(l.az,{overflow:"hidden",children:[(0,s.jsx)(n.EY,{color:"neutrals.nLv1",textStyle:"display.large",lineClamp:2,overflowWrap:"anywhere",title:t.nickname,children:t.nickname}),!r&&i&&(0,s.jsx)(n.EY,{display:"block",mt:"2xs",color:"neutrals.nLv1",textStyle:"assistive.default",title:t.editorName,truncate:!0,children:t.editorName})]})}var K=r(33752);function $(){let{userId:e,userAccount:t}=(0,a.useContext)(W.t),r=(0,c.d4)(x.$F),i=e===(null==r?void 0:r.id),n=i?null==r?void 0:r.nickname:null==t?void 0:t.nickname;return(0,s.jsx)(l.az,{px:{base:"lg",md:"0"},py:"md",children:(0,s.jsxs)(K.B,{children:[(0,s.jsx)(K.B.Item,{children:(0,s.jsx)(o.A,{id:i?"profile_my_profile":"app.profile"})}),(0,s.jsx)(K.B.Item,{children:n})]})})}function q(e){let{children:t}=e,{isMobile:r}=(0,n.$c)();return(0,s.jsx)(u.HH,{isCard:!r,children:(0,s.jsx)(l.az,{bg:{mdDown:"surface.s1"},children:t})})}let N=()=>{let e=(0,c.d4)(x.$F),{userAccount:t,isUserLoading:r}=(0,a.useContext)(W.t),{isMobile:u}=(0,n.$c)();if(r)return(0,s.jsx)(i.E,{uniqueKey:"user-account-info-cl",h:[270,838],br:[void 0,"lg"]});if(!t)return null;let m=(null==e?void 0:e.id)===t.id?e:t;return(0,s.jsx)(q,{children:(0,s.jsxs)(h.A,{pt:[0,"lg"],pb:"sm",br:[0,"xl"],children:[u&&(0,s.jsx)($,{}),(0,s.jsxs)(l.so,{justify:"space-between",align:"center",mx:"lg",children:[(0,s.jsx)(U,{userAccount:m}),(0,s.jsxs)(n.EY,{textStyle:"assistive.micro",children:[(0,s.jsx)(o.A,{id:"profile.joinDate"})," ",(0,s.jsx)(d.XU,{value:1e3*m.createdTimestamp})]})]}),(0,s.jsx)(l.so,{h:"[110px]",py:"xs",justify:"center",align:"center",children:(0,s.jsx)(p.A,{src:m.imageURL,size:102})}),(0,s.jsxs)(l.so,{justify:"space-between",align:"center",minH:"[60px]",px:"lg",gap:"lg",children:[(0,s.jsx)(Z,{userAccount:m}),(0,s.jsx)(O,{})]})]})})};var G=r(76868),J=r(22648),Q=r(37567),X=r(4967),ee=r(47146),et=r(70591),er=r(23419),es=r(94604),ei=r(75791),en=r(2294),el=r(98516),ea=r(62121);let eo=e=>{let{event:t,voteType:r,location:i}=e,[n,l]=(0,a.useState)(!1);return(0,s.jsxs)(f.so,{gap:"sm",children:[(0,s.jsx)(f.cG,{vertical:!0}),(0,s.jsx)(f.$n,{variant:"unshielded",p:1,onClick:()=>l(!0),style:{zIndex:"unset"},children:(0,s.jsx)(g.GI1,{w:"24",h:"24",fill:"primary.default"})}),(0,s.jsx)(f.aF,{isOpen:n,children:(0,s.jsxs)(f.az,{w:312,bg:"surface.sp",p:"lg",br:"lg",elevation:3,mx:"auto",children:[(0,s.jsx)(f.EY,{font:"display.large",color:"onSurface.nLv1",lineHeight:"24px",mb:"sm",as:"div",children:(0,s.jsx)(o.A,{id:"profile.changeVoteTooltipDescription"})}),(0,s.jsx)(f.EY,{font:"body.medium",color:"onSurface.nLv1",as:"div",children:(0,s.jsx)(o.A,{id:"change_vote_watch_ad"})}),(0,s.jsxs)(f.so,{justify:"flex-end",mt:"xl",children:[(0,s.jsx)(f.$n,{variant:"unshielded",onClick:()=>l(!1),children:(0,s.jsx)(o.A,{id:"close_window_button"})}),(0,s.jsx)(et.tj,{event:t,params:{editVote:"true",voteType:r},children:(0,s.jsx)(f.$n,{variant:"unshielded",onClick:()=>{(0,b.tN)({type:ea._7[r],location:i,id:t.id,position:(0,ea.mt)(r)||""})},children:(0,s.jsx)(o.A,{id:"pickem.continue"})})})]})]})})]})},ed={[m.rjx.WhoWillWin]:"who_will_win",[m.rjx.FirstTeamToScore]:"who_will_score_first_title",[m.rjx.WillBothTeamsScore]:"will_both_teams_score_title"},ec=(0,a.createContext)(null),eu=()=>{let e=(0,a.useContext)(ec);if(!e)throw Error("usePredictionsContext must be used within an PredictionsContextProvider");return e};var ex=r(57126);let eh=e=>{let{correct:t,vote:r}=e;return(0,s.jsx)(f.az,{children:(0,s.jsx)(f.so,{align:"center",justify:"center",mr:"sm",p:"xs sm",minW:24,minH:24,br:r.length>1?"md":"50%",bg:1===t?"success.default":0===t?"error.default":"onSurface.nLv5",children:(0,s.jsx)(f.EY,{color:-1!==t?"surface.s1":"onSurface.nLv1",font:"display.small",textTransform:"uppercase",children:(0,s.jsx)(o.A,{id:r})})})})},ep=e=>{let{score:t,votingEnabled:r}=e;return void 0===t?null:(0,s.jsx)(f.az,{minW:40,mr:r?"sm":void 0,children:(0,s.jsxs)(f.EY,{as:"bdi",display:"block",font:"body.small",align:"right",c:t<0?"error.default":t>0?"success.default":"onSurface.nLv3",children:[t>0?"+":"",(0,el.M)(t,2)]})})},em=e=>{let{prediction:t,predictionVote:r,event:i,userId:n,isDaily10x:l,...a}=e,d=(0,c.d4)(en.BF),{location:u,color:h}=eu(),{correct:p,odds:j,voteType:v}=r,y=function(e,t){let r=(0,c.d4)(ex.xl);if(!r)return t;switch(t){case m.gbi.One:return e.homeNameCode;case m.gbi.Two:return e.awayNameCode;case m.gbi.X:return"Tie";default:return t}}(t,r.vote),b=(0,c.d4)(x.$F),_=ed[v],w=1e3*i.startTimestamp>Date.now()&&i.status.type===m.XUj.NotStarted,A=l&&0!==p;return(0,s.jsxs)(f.so,{justify:"space-between",align:"center",minH:"44",px:"lg",pb:"xs",bg:h.card,...a,children:[(0,s.jsxs)(f.so,{align:"center",gap:"sm",children:[A&&(0,s.jsx)(g.W84,{width:18,height:18}),(0,s.jsx)(f.EY,{font:"body.small",c:"onSurface.nLv1",fontWeight:A?"bold":void 0,children:_&&(0,s.jsx)(o.A,{id:_})})]}),(0,s.jsxs)(f.so,{align:"center",children:[(0,s.jsx)(eh,{correct:p,vote:y}),"weekly_challenge"===u&&(0,s.jsx)(ep,{score:r.score,votingEnabled:w}),"predictions"===u&&!d&&(0,s.jsx)(ei.c,{fractionalValue:j.fractionalValue,children:e=>(0,s.jsx)(f.EY,{align:"center",minW:"48",color:"-"!==j.fractionalValue?"secondary.default":"onSurface.nLv3",font:"table.medium",children:e})}),w&&!(0,M.ux)(i)&&(null==b?void 0:b.id)===n&&(0,s.jsx)(eo,{event:i,voteType:v,location:u})]})]})};var ef=r(49519);function ej(e){let{teamId:t,teamName:r,teamType:i,alpha2:n}=e;return i===m.YVh.Person?(0,s.jsx)(ef.w,{size:16,name:r,alt:r,alpha2:n,fallback:(0,s.jsx)(f._V,{src:"/static/images/placeholders/team.svg",width:16,height:16,alt:r})}):i===m.YVh.Regular?(0,s.jsx)(ef.p,{id:t,size:16,alt:r,isSmall:!0}):null}function eg(e,t,r){let s=(0,c.d4)(ex.xl),i=e.displayInverseHomeAwayTeams&&s,[n,l]=[e[t],e[r]];return i?[l,n]:[n,l]}function ev(e){let{prediction:t,userId:r}=e,i={id:t.eventId,slug:t.eventSlug,customId:t.customId,status:t.status,startTimestamp:t.startDateTimestamp,finalResultOnly:t.finalResultOnly,tournament:{category:{sport:{slug:t.sportSlug}}}},[n,l]=eg(t,"homeTeamId","awayTeamId"),[o,c]=eg(t,"homeTeamName","awayTeamName"),[u,x]=eg(t,"homeTeamType","awayTeamType"),[h,p]=eg(t,"homeTeamAlpha2","awayTeamAlpha2"),{color:j}=eu(),g=(0,a.useContext)(er.k);return(0,s.jsxs)(f.az,{mx:"sm",children:[(0,s.jsx)(et.tj,{event:i,children:(0,s.jsxs)(f.so,{h:44,px:"lg",pt:"xs",align:"center",justify:"space-between",bg:j.card,hoverBg:"onSurface.nLv4",borderRadius:"lg lg 0 0",children:[(0,s.jsxs)(f.so,{grow:1,basis:0,align:"center",gap:["xs","sm"],minW:0,children:[(0,s.jsx)(ej,{teamId:n,teamName:o,teamType:u,alpha2:h}),(0,s.jsx)(f.EY,{color:"onSurface.nLv1",font:"display.micro",align:"center",as:"div",ellipsis:!0,children:(0,s.jsx)(es.lC,{original:o})})]}),(0,s.jsx)(f.EY,{color:"onSurface.nLv3",font:"body.small",mx:"sm",children:(0,s.jsx)(d.ib,{value:1e3*t.startDateTimestamp})}),(0,s.jsxs)(f.so,{grow:1,basis:0,align:"center",gap:["xs","sm"],minW:0,justify:"flex-end",children:[(0,s.jsx)(f.EY,{color:"onSurface.nLv1",font:"display.micro",align:"center",as:"div",ellipsis:!0,children:(0,s.jsx)(es.lC,{original:c})}),(0,s.jsx)(ej,{teamId:l,teamName:c,teamType:x,alpha2:p})]})]})}),(0,s.jsx)(f.az,{bg:j.bg,children:(0,s.jsx)(f.cG,{})}),[m.rjx.WhoWillWin,m.rjx.WillBothTeamsScore,m.rjx.FirstTeamToScore].map(e=>({voteType:e,predictionVote:t.votes.find(t=>t.voteType===e)})).filter(e=>{let{predictionVote:t}=e;return!!t}).map((e,n,l)=>{let{voteType:a,predictionVote:o}=e;return(0,s.jsx)(em,{prediction:t,predictionVote:o,event:i,userId:r,borderRadius:n===l.length-1?"0 0 lg lg":void 0,isDaily10x:!!g&&!!(null==o?void 0:o.weeklyChallengeBonusDateTimestamp)},a)})]})}var ey=r(12047);let eb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:48,{isBottomSheet:t}=eu(),{isDesktop:r}=(0,n.$c)(),s=(0,ey.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1});return t?e:r?0:s+48+e},e_=e=>{let{userId:t,predictions:r,date:i}=e,{color:l,location:a,activeTab:c}=eu(),u=eb(),{isDesktop:x}=(0,n.$c)(),h=new Date,p=new Date(1e3*r[0].startDateTimestamp).setHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds());return(0,s.jsxs)(f.so,{direction:"column",children:[(0,s.jsx)(f.PI,{isStickingDisabled:x,zIndex:f.Py.Sticky-2,top:u,bg:l.bg,px:"xl",py:"md",mt:"md",children:(0,s.jsxs)(f.so,{align:"center",children:[(0,s.jsx)(ee.v,{timestamp:p,children:e=>{let t=(0,X.Ui)(new Date(i).setHours(0,0,0,0),new Date().setHours(0,0,0,0),"days");return t>-2&&t<2?(0,s.jsxs)(f.EY,{color:"onSurface.nLv1",font:"assistive.default",textTransform:"capitalize",children:[e+",","\xa0"]}):null}}),(0,s.jsx)(f.EY,{color:"onSurface.nLv1",font:"assistive.default",children:(0,s.jsx)(d.XU,{value:p,weekday:"short",day:"numeric",month:"numeric"})}),(0,s.jsx)(f.EY,{color:"onSurface.nLv3",font:"body.small",ml:"auto",children:(0,s.jsx)(o.A,{id:"basic.nEvents",values:{n:r.length}})})]})}),(0,s.jsx)(f.so,{direction:"column",gap:"predictions"===a?["sm","md"]:"sm",children:r.map(e=>(0,s.jsx)(ev,{userId:t,prediction:e},"".concat(e.eventId,"-").concat(c)))})]})};var ew=r(25442),eA=r(43072),ek=r(7643);let eC=(e,t)=>e.sort((e,r)=>t?e.startDateTimestamp-r.startDateTimestamp:r.startDateTimestamp-e.startDateTimestamp).reduce((e,t)=>{let r=new Date(1e3*t.startDateTimestamp).toDateString();return e[r]?e[r].push(t):e[r]=[t],e},[]),eS=e=>{let{userId:t,leaderboardId:r}=e,i=(0,c.wA)(),{activeTab:n}=eu(),{predictions:l,hasMore:o,error:d,isLoading:u,isValidating:h,triggerRef:p,setSize:j}=function(e,t){var r;let{activeTab:s,location:i}=eu(),{ref:n,inView:l}=(0,eA.Wx)(),o=s===ew.H.Finished,{data:d,size:c,setSize:u,isLoading:x,isValidating:h,error:p}=(0,ek.Ay)((r,s)=>{let n=null;return"weekly_challenge"===i&&t&&(n=m.rGM.predictions(t,e,o,r)),"predictions"===i&&(n=m.VfS.predictions(e,o,r)),0===r||(null==s?void 0:s.hasNextPage)?n:null},m.TtD),f=d||[],j=!!f.length&&(null==(r=f[c-1])?void 0:r.hasNextPage),g=f.reduce((e,t)=>[...e,...t.predictions],[]);return(0,a.useEffect)(()=>{l&&j&&!h&&u(e=>e+1)},[l]),{predictions:g,hasMore:j,isLoading:x,isValidating:h,error:p,triggerRef:n,setSize:u}}(t,r),g=(0,c.d4)(x.$F),v=n===ew.H.Finished,y=(0,a.useCallback)(()=>{l&&(null==g?void 0:g.id)===t&&i((0,Q.UU)({predictions:l}))},[l]);if((0,a.useEffect)(()=>{y()},[l]),(0,a.useEffect)(()=>{j(1),y()},[n]),d||l&&!l.length&&!u){let e=n===ew.H.Finished?"weekly_challenge_finished_empty":"weekly_challenge_active_empty";return(0,s.jsx)(G.p,{graphic:"predictions-1x2",descriptionMessageId:e,m:"lg auto",px:"md",h:284,maxW:300})}if(l&&l.length){let e=eC(l,!v);return(0,s.jsxs)(s.Fragment,{children:[Object.keys(e).map(r=>(0,s.jsx)(e_,{userId:t,date:r,predictions:e[r]},r)),(o||h)&&(0,s.jsx)(f.so,{justify:"center",children:(0,s.jsx)(f.az,{ref:p,py:"lg",children:(0,s.jsx)(J.a,{})})})]})}return(0,s.jsx)(f.so,{justify:"center",h:600,py:"lg",children:(0,s.jsx)(f.y$,{})})},eE=e=>{let{children:t,...r}=e,{isMobile:i}=(0,n.$c)(),{activeTab:l,setActiveTab:d,isBottomSheet:c,location:u,bottomSheetRef:x,color:h}=eu(),p=(0,a.useRef)(null),m=eb(0);return i&&"predictions"===u?(0,s.jsx)(s.Fragment,{children:t}):(0,s.jsxs)(f.so,{direction:"column",bg:h.bg,pb:["sm","lg"],mb:["md",0],...r,children:[!c&&(0,s.jsx)(f.az,{ref:p,h:40,children:(0,s.jsx)(f.EY,{as:"div",align:"center",color:"onSurface.nLv1",lineHeight:"24px",font:"display.medium",pt:"md",pb:"xs",children:(0,s.jsx)(o.A,{id:"weekly_challenge"===u?"weekly_challenge_votes_this_week":"predictions"})})}),(0,s.jsx)(f.so,{h:48,align:"center",p:"sm",position:"sticky",top:m,zIndex:f.Py.Sticky,bg:h.bg,children:(0,s.jsxs)(f.tU,{variant:"tertiary",initialValue:ew.H.Upcoming,value:l,onChange:e=>{d(e),c&&(null==x?void 0:x.current)&&x.current.scrollTo({top:0}),i&&!c&&p.current&&p.current.getBoundingClientRect().y-m<0&&window.scrollTo({top:p.current.offsetTop-m-40})},children:[(0,s.jsx)(f.tU.Tab,{tabKey:ew.H.Upcoming,children:(0,s.jsx)(o.A,{id:"chip_active"})}),(0,s.jsx)(f.tU.Tab,{tabKey:ew.H.Finished,children:(0,s.jsx)(o.A,{id:"finished"})})]})}),t]})},eT=e=>{let{activeTab:t,setActiveTab:r}=e,{userAccount:n,isUserLoading:l}=(0,a.useContext)(W.t);return(0,s.jsx)(ec.Provider,{value:{activeTab:t,setActiveTab:r,location:"predictions",color:{bg:["surface.s0","surface.s1"],card:["surface.s1","surface.s2"]}},children:(0,s.jsx)(eE,{bg:["surface.s0",void 0],pb:"sm",children:l?(0,s.jsx)(i.E,{uniqueKey:"user-predictions-cl"}):n&&(0,s.jsx)(eS,{userId:n.id})})})};var eH=r(78383),eF=r.n(eH),eL=r(86501);function eI(){let[e,t]=(0,a.useState)(ew.H.Upcoming),r=(0,ey.Ay)({isInMobileTabs:!0,isSportMenuVisible:!1});return(0,s.jsxs)(f.tU,{onChange:r=>{e!==r&&(t(r),window.scrollTo({left:0,top:0}))},initialValue:ew.H.Upcoming,value:e,variant:"secondary",children:[(0,s.jsxs)(f.PI,{zIndex:f.Py.Sticky-1,bg:"surface.s1",p:"sm",h:48,top:r,children:[(0,s.jsx)(f.tU.Tab,{tabKey:ew.H.Upcoming,children:(0,s.jsx)(o.A,{id:"chip_active"})}),(0,s.jsx)(f.tU.Tab,{tabKey:ew.H.Finished,children:(0,s.jsx)(o.A,{id:"finished"})}),(0,s.jsx)(f.tU.Tab,{tabKey:ew.H.Statistics,children:(0,s.jsx)(o.A,{id:"statistics"})})]}),(0,s.jsx)(f.tU.Panel,{tabKey:ew.H.Upcoming,children:(0,s.jsx)(eT,{activeTab:e,setActiveTab:eF()})}),(0,s.jsx)(f.tU.Panel,{tabKey:ew.H.Finished,children:(0,s.jsx)(eT,{activeTab:e,setActiveTab:eF()})}),(0,s.jsx)(f.tU.Panel,{tabKey:ew.H.Statistics,children:(0,s.jsx)(eL._,{})})]})}function ez(e){let{isBottomSheet:t,bottomSheetRef:r}=e,i=(0,c.d4)(x.$F),[n,l]=(0,a.useState)(ew.H.Upcoming);return(null==i?void 0:i.id)&&(null==i?void 0:i.leaderboardId)?(0,s.jsx)(ec.Provider,{value:{activeTab:n,setActiveTab:l,location:"weekly_challenge",isBottomSheet:t,bottomSheetRef:r,color:{bg:t?"surface.sp":"surface.s1",card:t?"surface.s1":"surface.s2"}},children:(0,s.jsx)(eE,{br:[void 0,"lg"],elevation:[void 0,2],children:(0,s.jsx)(eS,{userId:i.id,leaderboardId:i.leaderboardId})})}):null}var eV=r(67333),eM=r(41007),eY=r(47550),eW=r(28157),eO=r(19451),eD=r(70355);let eB=e=>{let{textId:t,routeName:r,eventType:i,icon:n}=e;return(0,s.jsx)(et.N_,{routeKey:eD.UE[r],children:(0,s.jsxs)(f.so,{h:48,align:"center",justify:"space-between",px:"lg",py:"md",onClick:()=>(0,b.Wk)({type:i,location:"profile"}),children:[(0,s.jsxs)(f.so,{gap:"lg",align:"center",children:[n,(0,s.jsx)(f.EY,{as:"div",children:(0,s.jsx)(o.A,{id:t})})]}),(0,s.jsx)(g.zQC,{width:24,height:24,icon:"chevron-right",fill:"primary.default"})]})})};function eP(){return(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(u.Zp.Header,{titleId:"leaderboards_title"}),(0,s.jsx)(eB,{textId:"topPredictors",routeName:eO.xW.TopPredictors,eventType:"top_predictors",icon:(0,s.jsx)(g.nJv,{fill:"onSurface.nLv1",isRtlPrevented:!0})}),(0,s.jsx)(eB,{textId:"top_contributors_leaderboard",routeName:eO.xW.TopContributors,eventType:"top_contributors",icon:(0,s.jsx)(g.M_r,{fill:"onSurface.nLv1",isRtlPrevented:!0})}),(0,s.jsx)(eB,{textId:"top_editors_leaderboard",routeName:eO.xW.TopEditors,eventType:"top_editors",icon:(0,s.jsx)(g.mTZ,{fill:"onSurface.nLv1",isRtlPrevented:!0})}),(0,s.jsx)(u.Zp.Footer,{defaultHeight:"sm"})]})}var eR=r(55794);function eU(){let{userId:e}=(0,a.useContext)(W.t);return(0,s.jsxs)(l.so,{direction:"column",gap:"sm",m:"sm",children:[(0,s.jsx)(eW.A,{}),(0,s.jsx)(eY.pk,{utIds:null}),(0,s.jsx)(eP,{}),(0,s.jsx)(eR.S,{}),(0,s.jsx)(eV.A,{userId:e}),(0,s.jsx)(eM.A,{userId:e})]})}var eZ=r(45501),eK=r(3881),e$=r(33480),eq=r(59721);let eN=e=>{let{managedLeague:t}=e,{uniqueTournament:r}=t;return(0,s.jsx)(et.tQ,{tournament:r,children:(0,s.jsxs)(l.so,{align:"center",h:"4xl",minW:{md:"[360px]"},px:"lg",gap:"md",cursor:"pointer",bg:{_hover:"neutrals.nLv5"},children:[(0,s.jsx)(eq.e,{size:24,id:r.id}),(0,s.jsx)(n.EY,{display:"block",textStyle:"body.medium",color:"neutrals.nLv1",children:r.name})]})})};function eG(e){let{uniqueTournaments:t,isOpen:r,setIsOpen:i}=e;return(0,s.jsx)(v.A,{header:"profile_edited_competitions",isOpen:r,setIsOpen:i,children:(0,s.jsx)(l.az,{maxH:"[60vh]",children:t.map(e=>(0,s.jsx)(eN,{managedLeague:e},e.uniqueTournament.id))})})}let eJ=e=>{let{managedLeague:t}=e,{uniqueTournament:r}=t;return(0,s.jsx)(et.tQ,{tournament:r,children:(0,s.jsxs)(l.so,{justify:"space-between",align:"center",h:"4xl",px:"lg",cursor:"pointer",bg:{_hover:"neutrals.nLv5"},children:[(0,s.jsxs)(l.so,{gap:"md",align:"center",children:[(0,s.jsx)(e$.e,{size:24,id:r.id}),(0,s.jsx)(n.EY,{display:"block",textStyle:"body.medium",color:"neutrals.nLv1",children:r.name})]}),(0,s.jsx)(g.zQC,{icon:"chevron-right",width:24,height:24,fill:"primary.default"})]})})};function eQ(){let{userId:e}=(0,a.useContext)(W.t),{data:t,isLoading:r}=(0,w.Ay)(m.VfS.managedLeagues(e)),[i,d]=(0,a.useState)(!1),c=null==t?void 0:t.uniqueTournaments,x=null==c?void 0:c.filter((e,t,r)=>r.map(e=>e.uniqueTournament.id).indexOf(e.uniqueTournament.id)===t);return r?(0,s.jsx)(eK.E,{uniqueKey:"edited-competitions-cl",h:328,br:"lg"}):(null==x?void 0:x.length)?(0,s.jsxs)(u.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(u.Zp.Header,{titleId:"profile_edited_competitions"}),null==x?void 0:x.slice(0,5).map(e=>(0,s.jsx)(eJ,{managedLeague:e},e.uniqueTournament.id)),x&&x.length>5&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.so,{justify:"center",mt:"sm",children:(0,s.jsx)(n.$n,{size:"tertiary",onClick:()=>d(!0),children:(0,s.jsx)(o.A,{id:"see_all"})})}),(0,s.jsx)(eG,{isOpen:i,setIsOpen:d,uniqueTournaments:x})]}),(0,s.jsx)(u.Zp.Footer,{defaultHeight:"sm"})]}):null}var eX=r(75414);let e0=()=>{(0,b.Wk)({type:"top_editors",location:"profile"})};function e1(){return(0,s.jsx)(et.N_,{routeKey:eD.UE[eO.xW.TopEditors],onClick:e0,children:(0,s.jsxs)(l.so,{align:"center",justify:"space-between",py:"md",px:"lg",gap:"md",cursor:"pointer",bg:{_hover:"neutrals.nLv5"},roundedBottom:"lg",children:[(0,s.jsxs)(l.so,{gap:"md",align:"center",children:[(0,s.jsx)(S.A,{userBadge:m.lqH.Editor,size:24}),(0,s.jsx)(n.EY,{display:"block",textStyle:"body.medium",color:"neutrals.nLv1",userSelect:"none",children:(0,s.jsx)(o.A,{id:"profile_view_top_editors"})})]}),(0,s.jsx)(g.zQC,{icon:"chevron-right",width:24,height:24,fill:"primary.default"})]})})}function e4(e){let{stat:t,titleId:r}=e;return(0,s.jsxs)(l.so,{direction:"column",align:"center",justify:"center",grow:1,w:"1/2",p:"sm",br:"lg",gap:"xs",bg:{md:"surface.s2"},children:[(0,s.jsx)(n.EY,{display:"block",textAlign:"center",textStyle:{base:"display.small",md:"display.medium"},color:"neutrals.nLv1",children:"string"==typeof t?t:(0,eX.A)(+(0,el.M)(t||0))}),(0,s.jsx)(n.EY,{display:"block",textAlign:"center",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(o.A,{id:r})})]})}function e2(){let{userAccount:e,isUserLoading:t,userId:r}=(0,a.useContext)(W.t),{data:i,isLoading:n}=(0,w.Ay)(m.VfS.editorEventsCount(r));if(n||t)return(0,s.jsx)(l.so,{justify:"center",py:"lg",h:{base:"[168px]",md:"[124px]"},children:(0,s.jsx)(f.y$,{})});let o=null==e?void 0:e.userEditorScoreAggregates;return o||i?(0,s.jsxs)(l.az,{bg:"surface.s1",elevation:{mdDown:"2"},br:{mdDown:"lg"},children:[(0,s.jsxs)(l.az,{py:{mdDown:"sm"},px:{mdDown:"lg"},children:[(0,s.jsxs)(l.so,{gap:{md:"sm"},mb:{md:"sm"},children:[(0,s.jsx)(e4,{stat:null==i?void 0:i.editedEvents,titleId:"profile_added_matches"}),(0,s.jsx)(e4,{stat:null==i?void 0:i.eventOpenings,titleId:"match_views"})]}),(0,s.jsxs)(l.so,{gap:{md:"sm"},children:[(0,s.jsx)(e4,{stat:(null==o?void 0:o.currentRanking)||"-",titleId:"profile_leaderboard_position"}),(0,s.jsx)(e4,{stat:null==o?void 0:o.score,titleId:"points"})]})]}),(0,s.jsxs)(l.az,{display:["block","none"],children:[(0,s.jsx)(f.cG,{}),(0,s.jsx)(e1,{},r)]})]}):null}var e5=r(21501),e3=r(78488),e6=r(83170),e7=r(28446),e9=r(56591),e8=r(10533),te=r(71024),tt=r.n(te);let tr=tt()(()=>r.e(2254).then(r.bind(r,22254)),{loadableGenerated:{webpack:()=>[22254]},loading:()=>(0,s.jsx)(i.E,{uniqueKey:"event-openings-graph-graphic-cl",h:171})}),ts=tt()(()=>r.e(4140).then(r.bind(r,94140)),{loadableGenerated:{webpack:()=>[94140]},loading:()=>(0,s.jsx)(i.E,{uniqueKey:"rtl-event-openings-graph-graphic-cl",h:171})});function ti(){let[e,t]=(0,a.useState)(!1),r="rtl"===(0,a.useContext)(A.ThemeContext).settings.textDirection;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.A,{header:"monthly_match_views",isOpen:e,setIsOpen:t,children:(0,s.jsxs)(l.az,{w:{base:"100%",md:"[320px]"},px:"lg",children:[(0,s.jsx)(n.EY,{display:"block",textStyle:"body.mediumParagraph",color:"neutrals.nLv1",pb:"lg",children:(0,s.jsx)(o.A,{id:"monthly_match_views_info_bubble"})}),(0,s.jsx)(n.EY,{display:"block",textStyle:"assistive.default",color:"neutral.default",ml:"xl",children:(0,s.jsx)(o.A,{id:"profile_number_of_match_openings"})}),(0,s.jsxs)(l.so,{align:"center",overflow:"hidden",children:[r?(0,s.jsx)(ts,{}):(0,s.jsx)(tr,{}),(0,s.jsx)(n.EY,{display:"block",textStyle:"assistive.default",color:"status.val",mt:"sm",children:(0,s.jsx)(o.A,{id:"profile_all_editors_average"})})]}),(0,s.jsx)(n.EY,{display:"block",textStyle:"assistive.default",color:"neutral.default",ml:"[120px]",children:(0,s.jsx)(o.A,{id:"month"})})]})}),(0,s.jsx)(n.K0,{variant:"clear",onClick:()=>t(!0),children:(0,s.jsx)(g.G_L,{fill:"onSurface.nLv3"})})]})}function tn(e){let{points:t,avg:r}=e,{colors:i,typography:n,settings:o}=(0,A.useTheme)(),d="rtl"===o.textDirection,c=(0,j.A)(),u=(0,a.useRef)(null),x=new Date,h=new Date(x.getFullYear(),x.getMonth()-6+1,1),p=function(e,t){let r=new Date;if(!t)return[e,r].map(e=>({date:e,score:0}));let s=(0,X.ZV)(e),i=Object.keys(t).map(e=>+e),n=Math.min(...i),l=i.filter(e=>e>=s).map(e=>({date:(0,X.pp)(e),score:t[e]}));if(!l.find(t=>t.date===e)){let r=i.findIndex(e=>e>s),n=t[i[r-1]];n&&l.unshift({date:e,score:n})}return n>s&&(l.unshift({date:(0,X.pp)(n-86400),score:0}),l.unshift({date:e,score:0})),l}(h,t),m=[h,x],f=Math.ceil(Math.max(...p.map(e=>e.score))),g=[0,.33*f,.66*f,f],v=r>f,y={left:d?16:36,right:d?36:16,top:v?26:16,bottom:36};return(0,e5.st)(()=>{var e;if(!u.current)return;(0,e9.A)(u.current).selectAll("*").remove();let t=(0,e9.A)(u.current).append("svg").attr("width","100%").attr("height",116+y.bottom+y.top),s=null==(e=t.node())?void 0:e.getBoundingClientRect(),l=(null==s?void 0:s.width)||u.current.clientWidth,a=(0,e6.A)().domain(d?m.reverse():m).range([y.left,l-y.right]).clamp(!0),o=(0,e7.A)().domain([0,f]).range([116+y.top,y.top]).clamp(!0),j=d?l-y.right:y.left;t.selectAll("g.y-axis").data([null]).join("g").attr("class","y-axis").attr("transform","translate(".concat(j,", 0)")).call((d?e3.eH:e3.V4)(o).tickSize(0).tickValues(g).tickPadding(16).tickFormat(e=>(0,eX.A)(+(0,el.M)(e.valueOf())))).attr("text-anchor","middle").call(e=>e.select(".domain").attr("stroke-width",0)),t.selectAll("g.x-axis").data([null]).join("g").attr("class","x-axis").attr("transform","translate(0, ".concat(116+y.top,")")).call((0,e3.l7)(a).ticks(6).tickSize(0).tickPadding(16).tickFormat(e=>c.formatDate(new Date(e.toString()),{month:"short"}))).call(e=>e.select(".domain").attr("stroke-width",0)),t.selectAll("g.tick").select("text").attr("color",i.onSurface.nLv3).attr("font",n.family.sofascoreSans).attr("font-weight",n.weight.medium).attr("font-size",n.size.micro),t.append("g").classed("grid",!0).selectAll("line").data(g).join("line").attr("x1",a(h)).attr("x2",a(x)).attr("y1",e=>o(e)).attr("y2",e=>o(e)).attr("stroke",i.onSurface.nLv4).attr("stroke-dasharray","4 4").attr("stroke-width","1px");let b=(0,e8.A)().x(e=>a(e.date)).y(e=>o(e.score));t.append("path").attr("stroke",i.secondary.default).attr("fill","none").attr("stroke-width","2px").attr("d",b(p)||"");let _=v?o(r)-10:o(r);t.append("g").classed("avg",!0).selectAll("line").data([null]).join("line").attr("x1",a(h)).attr("x2",a(x)).attr("y1",_).attr("y2",_).attr("stroke",i.sofaSingles.value).attr("stroke-dasharray","8 8").attr("stroke-width","2px"),t.append("text").attr("font",n.family.sofascoreSans).attr("font-weight",n.weight.medium).attr("font-size",n.size.small).attr("fill",i.sofaSingles.value).attr("x",d?l-y.right:y.left).attr("y",o(r)-(v?16:6)).text(c.formatMessage({id:"avg.lc"})+" "+(0,eX.A)(r))},200,[p]),(0,s.jsx)(l.az,{ref:u})}function tl(){let{userId:e}=(0,a.useContext)(W.t),{data:t,isLoading:r}=(0,w.Ay)(m.VfS.eventOpeningsGraph(e));return t||r?(0,s.jsxs)(u.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(u.Zp.Header,{titleId:"monthly_match_views",actionComponent:(0,s.jsx)(ti,{})}),t?(0,s.jsx)(tn,{points:t.points,avg:t.average}):(0,s.jsx)(i.E,{uniqueKey:"editor-event-openings-graph-cl",h:168,br:"lg",mx:"sm",animate:!0})]}):null}var ta=r(91603),to=r(65078);function td(e){let{eventData:t,index:r}=e,{event:i,eventOpenings:a}=t,o=(0,to.gm)(i,"winnerCode"),d=o===m.Jfo.Left?"neutrals.nLv1":"neutrals.nLv3",c=o===m.Jfo.Right?"neutrals.nLv1":"neutrals.nLv3",[u,x]=(0,to.jr)(i,"homeTeam","awayTeam"),[h,p]=(0,to.jr)(i,"homeScore","awayScore");return(0,s.jsx)(l.az,{cursor:"pointer",bg:{_hover:"neutrals.nLv5"},children:(0,s.jsx)(et.tj,{event:i,children:(0,s.jsxs)(l.so,{pl:"lg",pr:"md",h:"4xl",align:"center",children:[(0,s.jsxs)(n.Ym,{minW:"xl",textAlign:"center",color:"neutrals.nLv1",textStyle:"body.small",children:[r+1,"."]}),(0,s.jsx)(f.cG,{vertical:!0,mx:"sm",my:"6px"}),(0,s.jsx)(l.az,{flexGrow:"1",overflow:"hidden",children:(0,s.jsxs)(l.so,{direction:"column",gap:"2xs",children:[(0,s.jsxs)(l.so,{justify:"space-between",children:[(0,s.jsxs)(l.so,{grow:1,align:"center",gap:"sm",overflowX:"hidden",children:[(0,s.jsx)(ta.p,{size:16,id:u.id}),(0,s.jsx)(n.Ym,{color:d,textStyle:"body.medium",truncate:!0,children:(0,s.jsx)(es.lC,{original:u.name})})]}),(0,s.jsx)(n.EY,{display:"block",color:d,textStyle:"body.medium",ml:"lg",children:h.display})]}),(0,s.jsxs)(l.so,{justify:"space-between",children:[(0,s.jsxs)(l.so,{grow:1,align:"center",gap:"sm",overflowX:"hidden",children:[(0,s.jsx)(ta.p,{size:16,id:x.id}),(0,s.jsx)(n.Ym,{color:c,textStyle:"body.medium",truncate:!0,children:(0,s.jsx)(es.lC,{original:x.name})})]}),(0,s.jsx)(n.EY,{display:"block",color:c,textStyle:"body.medium",ml:"lg",children:p.display})]})]})}),(0,s.jsx)(f.cG,{vertical:!0,mx:"sm",my:"6px"}),(0,s.jsxs)(l.so,{direction:"column",align:"center",minW:"2xl",gap:"2xs",children:[(0,s.jsx)(g.Mv5,{fill:"onSurface.nLv3"}),(0,s.jsx)(n.EY,{color:"primary.default",textStyle:"assistive.default",children:(0,eX.A)(a)})]})]})})})}function tc(){let{userId:e}=(0,a.useContext)(W.t),{data:t,isLoading:r}=(0,w.Ay)(m.VfS.mostOpenedEvents(e));return r?(0,s.jsx)(eK.E,{uniqueKey:"editor-popular-events-cl",h:304,br:"lg"}):(null==t?void 0:t.events.length)?(0,s.jsxs)(u.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(u.Zp.Header,{titleId:"most_viewed_matches"}),t.events.map((e,t)=>(0,s.jsx)(td,{eventData:e,index:t},e.event.id))]}):null}function tu(){let{isMobile:e}=(0,n.$c)(),{userAccount:t}=(0,a.useContext)(W.t);return(0,s.jsxs)(u.BU,{children:[(0,s.jsx)(e2,{}),(0,s.jsx)(eQ,{}),(0,s.jsx)(tl,{}),(0,s.jsx)(tc,{}),e&&(null==t?void 0:t.editor)&&(0,s.jsx)(eZ.s,{})]})}},25442:(e,t,r)=>{r.d(t,{H:()=>s});var s=function(e){return e[e.Upcoming=0]="Upcoming",e[e.Finished=1]="Finished",e[e.Statistics=2]="Statistics",e}({})},28157:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(6029),i=r(41249),n=r(90248),l=r(494),a=r(65789),o=r(54409),d=r(70591),c=r(2294),u=r(76410);let x=e=>{let{routeKey:t,icon:r,id:l,onClick:a}=e;return(0,s.jsx)(d.N_,{routeKey:t,onClick:a,children:(0,s.jsxs)(i.so,{justify:"space-between",align:"center",p:"md lg",children:[(0,s.jsxs)(i.so,{gap:"lg",children:[r,(0,s.jsx)(i.EY,{font:"body.mediumParagraph",children:(0,s.jsx)(n.A,{id:l})})]}),(0,s.jsx)(o.zQC,{icon:"chevron-right",width:24,height:24,fill:"primary.default"})]})})};function h(){let e=(0,l.d4)(c.BF);return(0,s.jsxs)(a.Zp,{children:[(0,s.jsx)(a.Zp.Header,{titleId:"quick_links"}),(0,s.jsx)(x,{routeKey:"user.weeklyChallenge",onClick:()=>(0,u.Wk)({type:"weekly_challenge",location:"profile"}),id:"weekly_challenge",icon:(0,s.jsx)(o.zQC,{icon:"leagues-outline",fill:"onSurface.nLv1"})}),!e&&(0,s.jsx)(x,{routeKey:"betting",id:"app.droppingOdds",icon:(0,s.jsx)(o.dv0,{fill:"onSurface.nLv1",width:"24",height:"24"}),onClick:u.M8}),(0,s.jsx)(a.Zp.Footer,{defaultHeight:"sm"})]})}},28171:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(95083),i=r(78383),n=r.n(i),l=r(76410);function a(){let{isMobile:e}=(0,s.$c)();return{logTabChange:e?l.yy:n()}}},30720:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(69385);function i(e,t,r,i){let n=(0,s.A)(i);if(!(e&&void 0!==t&&void 0!==r))return[];let[l,a]=[e[t],e[r]];return n?[a,l]:[l,a]}},32523:(e,t,r)=>{r.d(t,{E:()=>s.E});var s=r(3881)},33144:(e,t,r)=>{r.d(t,{p:()=>s.p});var s=r(91603)},33752:(e,t,r)=>{r.d(t,{B:()=>h});var s=r(6029),i=r(95083),n=r(62042),l=r(76356);let a=(0,n.Fj)({base:{display:"inline-block",verticalAlign:"bottom",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"neutrals.nLv3",textStyle:"display.micro","& > a":{color:"primary.default",_hover:{textDecoration:"underline"}},"& + li":{_before:{content:'""',display:"inline-block",width:"[0px]",height:"[0px]",borderStyle:"solid",margin:"[1px 5px]",borderWidth:"[3px 0 3px 5px]",borderTopColor:"[transparent]",borderRightColor:"[transparent]",borderBottomColor:"[transparent]",borderLeftColor:"neutrals.nLv3",_rtl:{borderWidth:"[3px 5px 3px 0]",borderTopColor:"[transparent]",borderLeftColor:"[transparent]",borderBottomColor:"[transparent]",borderRightColor:"neutrals.nLv3"}}},"&:first-child:nth-last-child(3)":{maxWidth:"[50%]"},"&:first-child:nth-last-child(3) ~ &":{maxWidth:"[50%]"},"&:first-child:nth-last-child(4)":{maxWidth:"[33.33%]"},"&:first-child:nth-last-child(4) ~ &":{maxWidth:"[33.33%]"},"&:last-child":{display:"inline",whiteSpace:"initial"}}}),o=(0,l.I4)("li",a),d=(0,n.Fj)({base:{display:"flow-root",lineClamp:1,lineHeight:"[16px]",boxOrient:"vertical",overflow:"hidden",listStyle:"none",margin:"0",padding:"0",color:"neutrals.nLv3","&:has(.breadcrumb-title)":{lineClamp:2},"& > li":{lineHeight:"[16px]"}}}),c=(0,l.I4)("ul",d),u=(0,n.Fj)({base:{"&:has(.breadcrumb-title)":{paddingTop:"md",paddingBottom:"md",paddingLeft:"lg",paddingRight:"lg",md:{paddingLeft:"0",paddingRight:"0"},"@supports not selector(:has(a, b))":{paddingTop:"md",paddingBottom:"md",paddingLeft:"lg",paddingRight:"lg",md:{paddingLeft:"0",paddingRight:"0"}}}},variants:{isHomePage:{true:{md:{padding:"0"}}}}}),x=(0,l.I4)("div",u),h=e=>{let{children:t,isHomePage:r}=e;return(0,s.jsx)(x,{isHomePage:r,children:(0,s.jsx)(c,{children:t})})};h.Item=e=>{let{children:t}=e;return(0,s.jsx)(o,{"data-testid":"breadcrumb",children:t})},h.Title=e=>{let{children:t}=e;return(0,s.jsx)(i.Li,{display:"inline",className:"breadcrumb-title","data-testid":"breadcrumb_title",children:(0,s.jsx)(i.H1,{display:"inline",textStyle:"display.micro",color:"neutrals.nLv3",children:t})})}},39419:(e,t,r)=>{r.d(t,{M:()=>d});var s=r(6029),i=r(4967),n=r(41249),l=r(55729),a=r(947),o=r(96470);let d=e=>{let{hasChallengeEnded:t,challengeEndTime:r,...d}=e,[c,u]=(0,l.useState)(new Date().getTime()),x=(0,a.A)();if((0,l.useEffect)(()=>{let e=setInterval(()=>u(new Date().getTime()),1e3);return()=>clearInterval(e)},[c]),!r)return null;let h=t?r+i.dp:r;return(0,s.jsx)(n.EY,{...d,children:h{r.d(t,{y:()=>a});var s=r(6029),i=r(41249),n=r(90248),l=r(54409);let a=e=>{let{messageId:t,font:r="body.medium"}=e;return(0,s.jsxs)(i.so,{align:"center",gap:"lg",children:[(0,s.jsx)(l.G_L,{fill:"surface.s1"}),(0,s.jsx)(i.EY,{block:!0,color:"surface.s1",font:r,children:(0,s.jsx)(n.A,{id:t})})]})}},41007:(e,t,r)=>{r.d(t,{A:()=>x});var s=r(6029),i=r(41249),n=r(494),l=r(65789),a=r(19168),o=r(7067),d=r(14930),c=r(27705);function u(e){let{experiments:t}=e,[r,n]=(0,a.yR)("experimentPickerValue","-"),d=[{label:"-"}];return t.forEach(e=>{e.variants.forEach(t=>{t!==o.KT.Control&&t!==o.KT.None&&d.push({label:t===o.KT.Treatment?e.name:"".concat(e.name,"---").concat(t)})})}),(0,s.jsx)(l.Zp,{children:(0,s.jsx)(i.az,{p:"md",children:(0,s.jsx)(i.jT,{label:"Experiment:",options:d,value:{label:r},onChange:e=>{let{label:r}=e;n(r),t.forEach(e=>{let t=r.split("---"),s=t[0],i=t[1]||o.KT.Treatment;e.name===s?(0,a.IO)((0,c.L4)(e.name),i):(0,a.IO)((0,c.L4)(e.name),o.KT.None)})},clearable:!1})})})}let x=e=>{let{userId:t}=e,r=(0,n.d4)(e=>e.auth.userAccount),i=(null==r?void 0:r.chatRole)==="admin",l=!t||(null==r?void 0:r.id)===t,a=[...d.f_,...d.gc];return a.length&&l&&i?(0,s.jsx)(u,{experiments:a}):null}},45501:(e,t,r)=>{r.d(t,{s:()=>u});var s=r(6029),i=r(41249),n=r(90248),l=r(494),a=r(65789),o=r(54409),d=r(88339),c=r(76410);let u=e=>{let{isInWidget:t}=e,r=(0,l.d4)(d.$F);return(null==r?void 0:r.editor)?null:(0,s.jsx)(a.Zp,{isInverseDesktop:t,children:(0,s.jsxs)(i.az,{p:"md",children:[(0,s.jsxs)(i.so,{p:"xs",mb:"xs",align:"center",children:[(0,s.jsx)(o._jO,{minW:40,minH:40,width:"40px",height:"40px",mr:"md",fill:"primary.default"}),(0,s.jsx)(i.EY,{font:"display.small",color:"onSurface.nLv1",children:(0,s.jsx)(n.A,{id:"editor_promo_text"})})]}),(0,s.jsx)("img",{style:{maxWidth:"280px",width:"100%"},src:"/static/images/editor/editor-mobile.png",alt:"eventEditorBannerImage"}),(0,s.jsx)("a",{href:"https://editor.sofascore.com/?utm_source=editor.sofascore.com&utm_medium=web_button&utm_campaign=join_sofascore_editor_team_desktop&utm_content=web_button_desktop",target:"_blank",rel:"noreferrer",onClick:c.Ao,children:(0,s.jsxs)(i.so,{mt:"lg",justify:"center",align:"center",bg:"surface.s2",br:"sm",cursor:"pointer",gap:"xs",p:"md",children:[(0,s.jsx)(i.EY,{font:"display.small",color:"primary.default",hover:!0,children:(0,s.jsx)(n.A,{id:"check_out_sofascore_editor"})}),(0,s.jsx)(o.HW5,{fill:"primary.default",width:16,height:16})]})})]})})}},50148:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(6029),i=r(95083),n=r(76356),l=r(90248),a=r(54053),o=r(3541);let d=e=>{let{titleId:t,bulletIds:r}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.az,{px:"lg",textStyle:"body.mediumParagraph",fontWeight:700,children:(0,s.jsx)(l.A,{id:t})}),(0,s.jsx)("ul",{children:r.map(e=>(0,s.jsx)(i.Li,{children:(0,s.jsx)(l.A,{id:e})},e))})]})};function c(e){let{isOpen:t,setIsOpen:r}=e;return(0,s.jsx)(a.A,{header:(0,s.jsxs)(n.so,{h:"4xl",pt:"lg",pb:"sm",gap:"lg",px:{md:"lg"},justify:"space-between",children:[(0,s.jsx)(n.az,{textStyle:"display.large",color:"neutrals.nLv1",truncate:!0,children:(0,s.jsx)(l.A,{id:"weekly_about_streaks"})}),(0,s.jsx)(o.A,{h:24})]}),isOpen:t,setIsOpen:r,children:(0,s.jsxs)(n.az,{pt:"sm",maxW:{md:"[360px]"},children:[(0,s.jsx)(d,{titleId:"weekly_streaks_starting_losing",bulletIds:["weekly_streaks_starting_bullet","weekly_streaks_staying_bullet","weekly_streaks_losing_bullet"]}),(0,s.jsx)("br",{}),(0,s.jsx)(d,{titleId:"weekly_streaks_tracking",bulletIds:["weekly_streaks_tracking_rivals"]})]})})}},55365:(e,t,r)=>{r.d(t,{KY:()=>d,UR:()=>u,gj:()=>o,lZ:()=>a,mq:()=>c});var s=r(6029),i=r(21377),n=r(54409),l=r(98516);i.QCR.AussieRules,i.QCR.Football,i.QCR.Futsal,i.QCR.Handball,i.QCR.Rugby;let a=(e,t,r)=>{let s=e.status.type===i.XUj.InProgress,n=s&&e.crowdsourcingDataDisplayEnabled,l=t===i.Jfo.Left,a=t===i.Jfo.Right;return n?"sofaSingles.crowdsourcingLive":s?"sofaSingles.live":r?l?"onSurface.nLv1":"onSurface.nLv3":a?"onSurface.nLv1":"onSurface.nLv3"};function o(e){let t=(null==e?void 0:e.score)||0,r=(null==e?void 0:e.wickets)||0;return t||r?"".concat(t).concat(r>=0&&r<10?"-".concat(r):""):"-"}let d=(e,t)=>(0,l.M)(e.map(e=>{var r,s;return null!=(s=null==t||null==(r=t[e])?void 0:r.overs)?s:0}).reduce((e,t)=>e+t,0),1),c=e=>{switch(e){case"WC":case"LL":return"playoffs.relegation";case"Q":case"A":case"PR":case"SE":return"playoffs.promotionToXPlayoff";default:return"playoffs.promotionToYPlayoff"}},u=(e,t,r)=>{if(e===i.QCR.Tennis)return r===i.Jfo.Left||r===i.Jfo.Right?(0,s.jsx)(n.OXq,{fill:"secondary.default"}):void 0;if(e===i.QCR.AmericanFootball){let e=null==t?void 0:t.currentPossession,r=Number(null==t?void 0:t.currentDown);return r>=1&&r<=4&&(e===i.Jfo.Left||e===i.Jfo.Right)?(0,s.jsx)(n.CvR,{icon:"af-touchdown",w:16,h:16,fill:"sofaSingles.live"}):void 0}}},55794:(e,t,r)=>{r.d(t,{S:()=>y});var s=r(6029),i=r(95083),n=r(76356),l=r(55729),a=r(43072),o=r(947),d=r(90248),c=r(494),u=r(54409),x=r(50801),h=r(40528),p=r(88339),m=r(89642),f=r(76410),j=r(3468);let g=()=>(0,s.jsxs)("svg",{width:"102",height:"101",viewBox:"0 0 102 101",fill:"none",style:{position:"absolute",bottom:16,right:0,opacity:.1},children:[(0,s.jsx)("path",{d:"M66.8686 67.5H50.1543V84.2501H66.8686V67.5Z",fill:"#FCFCFE"}),(0,s.jsxs)("g",{opacity:"0.5",children:[(0,s.jsx)("path",{d:"M100.287 84.25H83.5723V101H100.287V84.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M16.7142 84.25H0V101H16.7142V84.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M50.142 67.5H33.4277V84.2501H50.142V67.5Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M116.999 50.75H100.285V67.5001H116.999V50.75Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M66.8569 50.75H50.1426V67.5001H66.8569V50.75Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M50.142 34H33.4277V50.7497H50.142V34Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M33.4291 34H16.7148V50.7497H33.4291V34Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M83.5717 17.25H66.8574V33.9997H83.5717V17.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M50.142 17.25H33.4277V33.9997H50.142V17.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M83.5717 0.5H66.8574V17.2501H83.5717V0.5Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M50.142 0.5H33.4277V17.2501H50.142V0.5Z",fill:"#FCFCFE"})]}),(0,s.jsxs)("g",{opacity:"0.8",children:[(0,s.jsx)("path",{d:"M83.5717 84.25H66.8574V101H83.5717V84.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M66.8569 84.25H50.1426V101H66.8569V84.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M33.4291 84.25H16.7148V101H33.4291V84.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M83.5717 67.5H66.8574V84.2501H83.5717V67.5Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M50.142 50.7495H33.4277V67.4996H50.142V50.7495Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M33.4291 50.7495H16.7148V67.4996H33.4291V50.7495Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M66.8569 17.25H50.1426V33.9997H66.8569V17.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M33.4291 17.25H16.7148V33.9997H33.4291V17.25Z",fill:"#FCFCFE"}),(0,s.jsx)("path",{d:"M16.7142 17.25H0V33.9997H16.7142V17.25Z",fill:"#FCFCFE"})]})]}),v="https://app.sofascore.com/nixz/rix1kpvt",y=()=>{let{userId:e}=(0,l.useContext)(m.t),t=(0,c.d4)(p.$F),r=(null==t?void 0:t.id)===e,{isMobile:y}=(0,i.$c)(),b=(0,j.C)(),_=(0,o.A)(),{ref:w,inView:A}=(0,a.Wx)({triggerOnce:!0}),k=async()=>{try{(0,f.oD)("referral"),y&&navigator.share?await navigator.share({title:"",text:_.formatMessage({id:"sofascore_share_link_text"}),url:v}):(await navigator.clipboard.writeText(v),b((0,s.jsx)(h.y,{messageId:"share_link_copied_to_clipboard"})))}catch(e){b((0,s.jsx)(h.y,{messageId:"error.generic2"}))}};return((0,l.useEffect)(()=>{A&&(0,f.ke)({action:"impression",location:"profile",type:"referral"})},[A]),r)?(0,s.jsxs)(n.so,{bg:"primary.default",align:"center",p:"lg",br:"xl",minH:"[124px]",gap:"sm",position:"relative",ref:w,children:[(0,s.jsx)(n.az,{overflow:"hidden",children:(0,s.jsx)(g,{})}),(0,s.jsxs)(n.so,{direction:"column",justify:"space-between",minH:"[92px]",gap:"sm",grow:1,shrink:1,children:[(0,s.jsx)(i.EY,{textStyle:"display.medium",color:"surface.s1",children:(0,s.jsx)(d.A,{id:"profile_referral_banner_header"})}),(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"surface.s1",children:(0,s.jsx)(d.A,{id:"profile_referral_banner_description"})}),(0,s.jsx)(n.so,{justify:"flex-start",w:"100%",children:(0,s.jsxs)(i.$n,{size:"tertiary",variant:"filled",bg:"surface.s1",onClick:k,children:[(0,s.jsx)(i.EY,{display:"block",lineHeight:1,textStyle:"assistive.default",color:"neutrals.nLv1",children:(0,s.jsx)(d.A,{id:"profile_button_share_link"})}),(0,s.jsx)(n.az,{h:"lg",w:"lg",children:(0,s.jsx)(u.VJ,{h:16,w:16,fill:"onSurface.nLv1"})})]})})]}),(0,s.jsx)(n.az,{w:"[68px]",h:"[68px]",children:(0,s.jsx)(x.A,{graphic:"twitter-feed"})})]}):null}},58918:(e,t,r)=>{r.d(t,{K:()=>o});var s=r(6029),i=r(33144),n=r(76356),l=r(70591),a=r(68379);let o=e=>{var t,r;let{sport:o,teams:d,seeding:c,size:u,hideFlags:x,ignoreLink:h}=e;return(0,s.jsxs)(n.so,{children:[(0,s.jsx)(l.gT,{sport:o,team:d[0],ignoreLink:h,children:(0,s.jsx)(i.p,{hasFlag:!0,id:d[0].id,name:d[0].name,size:u||40,alpha2:x||null==(t=d[0].country)?void 0:t.alpha2,boxProps:{mr:-8}})}),(0,s.jsx)(l.gT,{sport:o,team:d[1],ignoreLink:h,children:(0,s.jsx)(i.p,{hasFlag:!0,id:d[1].id,name:d[1].name,size:u||40,alpha2:x||null==(r=d[1].country)?void 0:r.alpha2,right:!0})}),(0,s.jsx)(a.J,{seed:c,styles:{transform:"translateX(100%)"}})]})}},59721:(e,t,r)=>{r.d(t,{e:()=>s.e});var s=r(33480)},62121:(e,t,r)=>{r.d(t,{_7:()=>s._7,mt:()=>s.mt,Q3:()=>s.Q3,bZ:()=>s.bZ,wH:()=>s.wH}),r(97319),r(89042);var s=r(70448)},65078:(e,t,r)=>{r.d(t,{gm:()=>s.A,g3:()=>i.A,mJ:()=>n.A,jr:()=>l.A,AR:()=>o,h2:()=>h});var s=r(70215),i=r(69385),n=r(17357),l=r(30720),a=r(494);function o(e){let t=(0,a.d4)(t=>{let{favorites:{events:r}}=t;return r[e.id]}),[r,s]=(0,l.A)(e,"homeTeam","awayTeam",e),[i,n]=(0,l.A)(e,"homeScore","awayScore",e);return{event:t||e,leftTeam:r,rightTeam:s,leftScore:i,rightScore:n}}var d=r(21377),c=r(55729),u=r(62859);let x=e=>t=>e===t;function h(e,t){var r,i;let{event:n,leftTeam:l,rightTeam:a}=(0,c.useContext)(u.y$),o=(0,s.A)(n,"winnerCode"),h=(n.status.code===d.sum.AET||n.status.code===d.sum.AP)&&n.tournament.category.sport.slug===d.QCR.IceHockey,p=e?x(e):t||(()=>!1),m=p(l.id,n.id)||(null==(r=l.subTeams)?void 0:r.some(e=>p(e.id,n.id))),f=p(a.id,n.id)||(null==(i=a.subTeams)?void 0:i.some(e=>p(e.id,n.id)));switch(o){case d.Jfo.Left:if(m)return d.h18.Win;if(f)return h?d.h18.OvertimeLoss:d.h18.Lose;break;case d.Jfo.Right:if(m)return h?d.h18.OvertimeLoss:d.h18.Lose;if(f)return d.h18.Win;break;case d.Jfo.Draw:if(m||f)return d.h18.Draw}}},67333:(e,t,r)=>{r.d(t,{A:()=>x});var s=r(6029),i=r(21377),n=r(95083),l=r(76356),a=r(494),o=r(45860),d=r(65789),c=r(88339);function u(e){let{branches:t}=e;if(!(null==t?void 0:t.length))return null;let r=[i.rKn,...[...t].sort((e,t)=>e.localeCompare(t))].map(e=>({label:e}));return(0,s.jsx)(d.Zp,{children:(0,s.jsx)(l.az,{p:"md",children:(0,s.jsx)(n.jT,{label:"Branches:",options:r,value:{label:(0,i.Srs)()||i.rKn},onChange:e=>{(null==e?void 0:e.label)&&(e.label===i.rKn?(0,i.Sdf)(void 0):(0,i.Sdf)("https://".concat(e.label,"api/v1")))}})})})}let x=e=>{let{userId:t}=e,r=(0,a.d4)(c.$F),n=(0,a.d4)(c.Cd),l=(null==r?void 0:r.chatRole)==="admin",d=!t||(null==r?void 0:r.id)===t,x=async e=>{let[t,r]=e;return(0,i.B2D)(t,{},{headers:(0,i.MXE)(r)})},{data:h}=(0,o.Ay)(l&&n?[i.GJU.branches(),n]:null,{fetcher:x});return l&&d?(0,s.jsx)(u,{branches:null==h?void 0:h.branches}):null}},68234:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(6029),i=r(41249);function n(e){let{children:t,...r}=e;return(0,s.jsx)(i.so,{direction:"column",gap:"sm",bg:"linear-gradient(180deg, rgba(55, 77, 245, 0.40) 0%, rgba(55, 77, 245, 0.00) 100%)",...r,children:t})}},68379:(e,t,r)=>{r.d(t,{J:()=>l});var s=r(6029),i=r(41249),n=r(55365);let l=e=>{let{seed:t,position:r="absolute",left:l,right:a,bottom:o=0,h:d=16,minW:c=24,styles:u,font:x="assistive.default",colorless:h}=e;return t?(0,s.jsx)(i.so,{display:"inline-flex",align:"center",justify:"center",position:r,bottom:o,left:l,right:a,br:"sm",bg:h?void 0:(0,n.mq)(t),h:d,minW:c,zIndex:i.Py.Button,style:u,children:(0,s.jsx)(i.EY,{font:x,color:h?"onSurface.nLv1":"surface.s1",lineHeight:1,children:t})}):null}},69385:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55729),i=r(494),n=r(62859),l=r(57126);function a(e){var t;let r=(0,s.useContext)(n.y$),a=e||r.event,o=(0,i.d4)(l.xl);return(null==a||null==(t=a.tournament.uniqueTournament)?void 0:t.displayInverseHomeAwayTeams)&&o}},70215:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(69385);function i(e,t,r){let i=(0,s.A)(r);if(!(e&&t))return;let n=e[t];if("number"==typeof n)return i&&[1,2].includes(n)?1===n?2:1:n}},70355:(e,t,r)=>{r.d(t,{GH:()=>i,UE:()=>l,v9:()=>n});var s=r(19451);let i=[1,0,2],n={1:160,2:130,3:120},l={[s.xW.TopPredictors]:"user.topPredictors",[s.xW.TopContributors]:"user.topContributors",[s.xW.TopEditors]:"user.topEditors"}},72110:(e,t,r)=>{r.d(t,{I:()=>d,p:()=>c});var s=r(6029),i=r(95083),n=r(76356),l=r(90248),a=r(65789),o=r(54409);function d(e){let{onClick:t,children:r}=e;return(0,s.jsx)(n.so,{direction:"column",align:"center",justify:"center",gap:"xs",h:"[60px]",bg:"surface.s2",br:{base:"sm",md:"lg"},cursor:t?"pointer":"default",onClick:t,flexGrow:1,flexBasis:"[0px]",children:r})}function c(e){let{titleId:t,hasInfo:r,onInfoClick:d,children:c}=e,{isMobile:u}=(0,i.$c)();return(0,s.jsxs)(a.HH,{isCard:u,children:[t&&(0,s.jsxs)(n.so,{align:"center",justify:"center",gap:"xs",px:"sm",pb:"sm",pt:"lg",children:[(0,s.jsx)(i.EY,{display:"block",textStyle:"display.small",textAlign:"center",color:"neutrals.nLv1",children:(0,s.jsx)(l.A,{id:t})}),r&&(0,s.jsx)(i.K0,{onClick:()=>null==d?void 0:d(),variant:"clear",children:(0,s.jsx)(o.G_L,{fill:"primary.default",width:16,height:16})})]}),(0,s.jsx)(n.so,{justify:"space-between",gap:"sm",p:{mdDown:"sm"},children:c})]})}},72629:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(6029),i=r(95083),n=r(76356),l=r(55729),a=r(90248),o=r(54409),d=r(3541),c=r(50148),u=r(72110);let x=e=>{let{length:t}=e;return(0,s.jsxs)(n.so,{align:"center",gap:"xs",children:[(0,s.jsx)(d.A,{h:20}),(0,s.jsx)(i.EY,{textStyle:"display.medium",children:void 0===t?"-":(0,s.jsx)(a.A,{id:"weekly_streak_counter",values:{n:t}})})]})};function h(e){let{maxWeeklyStreak:t,currentWeeklyStreak:r,hasCurrentStreakInfo:d,showTitle:h,onCurrentStreakClick:p}=e,[m,f]=(0,l.useState)(!1);return(0,s.jsxs)(u.p,{titleId:h?"weekly_streak_title":void 0,onInfoClick:()=>f(!0),hasInfo:!0,children:[(0,s.jsxs)(u.I,{onClick:d?()=>{d&&(f(!0),null==p||p())}:void 0,children:[(0,s.jsx)(x,{length:r,messageId:"weekly_streak_counter"}),(0,s.jsxs)(n.so,{justify:"center",px:"sm",gap:"xs",w:"100%",overflow:"hidden",children:[(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:(0,s.jsx)(a.A,{id:"weekly_current_streak"})}),d&&(0,s.jsx)(n.az,{h:"lg",w:"lg",children:(0,s.jsx)(o.FFV,{fill:"primary.default"})})]})]}),(0,s.jsxs)(u.I,{children:[(0,s.jsx)(x,{length:t,messageId:"weekly_streak_counter"}),(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(a.A,{id:"weekly_longest_streak"})})]}),(0,s.jsx)(c.A,{isOpen:m,setIsOpen:f})]})}},75414:(e,t,r)=>{r.d(t,{A:()=>s});let s=function(e){switch(!0){case e<1e3:return"".concat(e);case e<1e4&&e/1e3%1>=.1:let t="".concat((e/1e3).toPrecision(2));return t.endsWith(".0")&&(t=t.substring(0,t.length-2)),"".concat(t,"k");case e<1e6:let r=Math.round(e/1e3);if(1e3===r)return"1M";return"".concat(r,"k");case e<1e7:let s=(e/1e5).toFixed();return s=s.endsWith("0")?s.substring(0,s.length-1):"".concat(s[0],".").concat(s[1]),"".concat(s,"M");case e<1e8:return"".concat(Math.round(e/1e6),"M");case e<1e9:let i=Math.round(e/1e6);if(1e3===i)return"1B";return"".concat(i,"M");default:return"".concat(e)}}},86501:(e,t,r)=>{r.d(t,{_:()=>I,g:()=>H});var s=r(6029),i=r(32523),n=r(41249),l=r(55729),a=r(90248),o=r(89642),d=r(494),c=r(75791),u=r(2294),x=r(95083),h=r(54409);let p=e=>{let{messageId:t,value:r,isButton:i,onClick:l}=e;return(0,s.jsxs)(n.so,{justify:"space-between",align:"center",py:"sm",children:[(0,s.jsxs)(n.so,{align:"center",gap:"xs",onClick:l,children:[(0,s.jsx)(n.EY,{color:i?"primary.default":"onSurface.nLv1",font:"body.medium",children:(0,s.jsx)(a.A,{id:t})}),i&&(0,s.jsx)(h.G_L,{fill:"primary.default",h:16,w:16})]}),(0,s.jsx)(n.EY,{color:"onSurface.nLv1",font:"body.medium",children:r})]})},m=e=>{let{messageId:t,value:r,isButton:i,onClick:l}=e;return(0,s.jsxs)(n.so,{direction:"column",justify:"center",align:"center",gap:"xs",p:"sm",br:"lg",bg:"surface.s2",onClick:l,cursor:i?"pointer":"default",hoverBg:i?"onSurface.nLv4":void 0,children:[(0,s.jsx)(n.EY,{font:"display.medium",children:r}),(0,s.jsxs)(n.EY,{align:"center",font:"assistive.default",c:i?"primary.default":"onSurface.nLv3",children:[(0,s.jsx)(a.A,{id:t}),i&&(0,s.jsx)(h.G_L,{fill:"primary.default",h:16,w:16,ml:"xs"})]})]})};function f(e){let{isMobile:t}=(0,x.$c)();return t?(0,s.jsx)(p,{...e}):(0,s.jsx)(m,{...e})}var j=r(54053);function g(e){let{isOpen:t,setIsOpen:r}=e,i=(0,d.d4)(u.BF);return(0,s.jsx)(j.A,{setIsOpen:r,isOpen:t,footer:(0,s.jsx)(n.so,{display:["none","flex"],justify:"flex-end",m:"lg",children:(0,s.jsx)(n.$n,{onClick:()=>r(!1),ml:"lg",variant:"unshielded",children:(0,s.jsx)(a.A,{id:"ok_got_it_button"})})}),renderAdPlaceholder:!1,children:(0,s.jsxs)(n.az,{maxW:[void 0,312],p:"lg",mx:"auto",children:[(0,s.jsx)(n.EY,{as:"div",c:"onSurface.nLv1",font:"display.large",mb:"sm",children:(0,s.jsx)(a.A,{id:i?"points":"profile.roi"})}),(0,s.jsx)(n.EY,{as:"div",c:"onSurface.nLv1",font:"body.mediumParagraph",children:(0,s.jsx)(a.A,{id:i?"points_VROI_info_bubble":"virtual_return_on_investment_info"})})]})})}function v(e){let{stat:t}=e,r=(0,d.d4)(u.BF),[i,n]=(0,l.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{onClick:()=>n(!0),messageId:r?"points":"profile.roi",value:t,isButton:!0}),(0,s.jsx)(g,{isOpen:i,setIsOpen:n})]})}let y=(0,r(41735).default)(n.az).withConfig({componentId:"sc-7c2f9e08-0"})(["display:grid;gap:",";grid-template-columns:repeat(2,1fr);"],e=>e.theme.spacing.sm);function b(e){let{children:t}=e,{isMobile:r}=(0,x.$c)();return r?(0,s.jsx)(s.Fragment,{children:t}):(0,s.jsx)(y,{children:t})}let _=e=>{let{stats:t}=e,r=(0,d.d4)(u.BF),{correct:i,total:n,percentage:l,avgCorrectOdds:a,roi:o,ranking:x}=t;return(0,s.jsxs)(b,{children:[(0,s.jsx)(f,{messageId:"profile.correctPredictions",value:"".concat(i,"/").concat(n," (").concat(l,")")}),!r&&(0,s.jsx)(c.c,{fractionalValue:a.fractionalValue,children:e=>(0,s.jsx)(f,{messageId:"profile.correctOdds",value:e})}),(0,s.jsx)(v,{stat:o}),(0,s.jsx)(f,{messageId:"best_predictors_rank",value:x})]})};var w=r(98914),A=r(76410);let k=(e,t,r)=>"".concat(e,"/").concat(t," (").concat(r,")"),C=e=>{let{correct:t,total:r,messageId:i}=e;return(0,s.jsxs)(n.so,{justify:"space-between",gap:"lg",children:[(0,s.jsx)(n.EY,{block:!0,font:"body.mediumParagraph",c:"onSurface.nLv1",children:(0,s.jsx)(a.A,{id:i})}),(0,s.jsx)(n.EY,{block:!0,font:"body.mediumParagraph",c:"onSurface.nLv1",children:0===r?"0":k(t,r,"".concat((0,w.M)(t/r,2),"%"))})]})},S=e=>{let{isOpen:t,setIsOpen:r,stats:i}=e;return(0,s.jsx)(j.A,{setIsOpen:r,isOpen:t,header:"profile.correctPredictions",renderAdPlaceholder:!1,children:(0,s.jsx)(n.az,{minW:312,p:"lg",pt:"0",pb:["xxl","lg"],mx:"auto",children:(0,s.jsxs)(n.so,{direction:"column",gap:"xl",children:[(0,s.jsx)(C,{messageId:"profile_predictions_with_odds",correct:i.correctVotesWithOdds,total:i.totalVotesWithOdds}),(0,s.jsx)(C,{messageId:"profile_predictions_without_odds",correct:i.correctVotesWithoutOdds,total:i.totalVotesWithoutOdds})]})})})},E=e=>{let{stats:t}=e,r=(0,d.d4)(u.BF),[i,n]=(0,l.useState)(!1),a=k(t.correct,t.total,t.percentage);return r||0===Number(t.total)?(0,s.jsx)(f,{messageId:"profile.correctPredictions",value:a}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{onClick:()=>{n(!0),(0,A.ke)({action:"click",location:"user_profile",type:"correct_predictions_info_button"})},messageId:"profile.correctPredictions",value:a,isButton:!0}),(0,s.jsx)(S,{isOpen:i,setIsOpen:n,stats:t})]})},T=e=>{let{stats:t}=e,r=(0,d.d4)(u.BF),{avgCorrectOdds:i,roi:n,ranking:l}=t;return(0,s.jsxs)(b,{children:[(0,s.jsx)(E,{stats:t}),!r&&(0,s.jsx)(c.c,{fractionalValue:i.fractionalValue,children:e=>(0,s.jsx)(f,{messageId:"profile.correctOdds",value:e})}),(0,s.jsx)(v,{stat:n}),(0,s.jsx)(f,{messageId:"profile_predictor_rank",value:l})]})};function H(){let{userAccount:e,isUserLoading:t}=(0,l.useContext)(o.t);return t?(0,s.jsx)(i.E,{uniqueKey:"predictions-overview-cl",h:[228,237],br:[void 0,"lg"]}):e?(0,s.jsxs)(n.so,{direction:"column",p:"sm",m:["sm",0],br:["lg",void 0],bg:["surface.s1",void 0],elevation:[2,void 0],gap:[0,"md"],children:[(0,s.jsx)(n.EY,{align:"center",pt:"md",pb:"sm",color:"onSurface.nLv1",font:"display.medium",textTransform:"capitalize",children:(0,s.jsx)(a.A,{id:"overview"})}),(0,s.jsxs)(n.tU,{variant:"tertiary",children:[(0,s.jsxs)(n.az,{py:"sm",children:[(0,s.jsx)(n.tU.Tab,{tabKey:1,children:(0,s.jsx)(a.A,{id:"profile.last30Days"})}),(0,s.jsx)(n.tU.Tab,{tabKey:2,children:(0,s.jsx)(a.A,{id:"profile.predictions.allTime"})})]}),(0,s.jsx)(n.tU.Panel,{tabKey:1,children:(0,s.jsx)(T,{stats:e.voteStatistics.current})}),(0,s.jsx)(n.tU.Panel,{tabKey:2,children:(0,s.jsx)(_,{stats:e.voteStatistics.allTime})})]})]}):null}var F=r(65789);let L=e=>{let{titleId:t,children:r}=e;return(0,s.jsxs)(F.Zp,{children:[(0,s.jsx)(F.Zp.Header,{titleId:t}),(0,s.jsx)(n.az,{px:"lg",children:r}),(0,s.jsx)(F.Zp.Footer,{defaultHeight:"sm"})]})};function I(){var e;let{userAccount:t}=(0,l.useContext)(o.t);if(!t)return null;let r=Number(null==(e=t.voteStatistics.current)?void 0:e.total)>0;return(0,s.jsxs)(F.BU,{children:[r&&(0,s.jsx)(L,{titleId:"profile.last30Days",children:(0,s.jsx)(T,{stats:t.voteStatistics.current})}),(0,s.jsx)(L,{titleId:"profile.predictions.allTime",children:(0,s.jsx)(_,{stats:t.voteStatistics.allTime})})]})}},89642:(e,t,r)=>{r.d(t,{t:()=>s});let s=(0,r(55729).createContext)({userId:"",userAccount:void 0,isUserLoading:!0})},96470:(e,t,r)=>{r.d(t,{Y:()=>i,j:()=>n});var s=r(4967);function i(e,t,r,s){let i=e>0?s.slice(0,e).map(e=>e.id):[],n=t>0?s.slice(e,e+t).map(e=>e.id):[];return{userIds:{promoted:i,demoted:s.length>e+t&&r>0?s.slice(-s.length+e+t).map(e=>e.id):[],neutral:n}}}function n(e,t,r){let{days:i,hours:n,minutes:l,seconds:a}=(0,s.DU)(e,t),o=i>0?i+r.formatMessage({id:"days_short"}):"",d=n>0?n+r.formatMessage({id:"hours_short"}):"";return[o,d,(n>0||l>0)&&!i?l+r.formatMessage({id:"minutes_short"}):"",(l>0||a>0)&&!i&&!n?a+r.formatMessage({id:"seconds_short"}):""].filter(Boolean).join(" ")}},96913:(e,t,r)=>{r.d(t,{m:()=>p.m,A:()=>h});var s=r(6029),i=r(95083),n=r(41249),l=r(78383),a=r.n(l),o=r(55729),d=r(90248),c=r(12047),u=r(28171);let x=(e,t)=>{let r=(0,o.useState)(e);return t||r};function h(e){let{id:t,location:r,initialTabKey:l,onChange:h=a(),tabs:p,children:m,customControls:f,noSportMenu:j,eventStatusType:g,seasonId:v,isInWidget:y}=e,b=(0,o.useRef)(null),{isMobile:_}=(0,i.$c)(),[w,A]=x(l,f),{logTabChange:k}=(0,u.A)(),C=(0,c.Ay)({isSportMenuVisible:!j,isInMobileTabs:!1});return(0,o.useEffect)(()=>{w!==l&&A(l)},[t,r,v]),(0,s.jsx)(n.tU,{onChange:e=>{w!==e&&(A(e),h(e),y||window.scrollTo({left:0,top:0}))},initialValue:l||w,value:w,variant:"primary",fullWidthTabs:_||y,children:(0,s.jsxs)(n.az,{d:"inline",style:{verticalAlign:"top"},ref:b,children:[(0,s.jsx)(n.PI,{isStickingDisabled:y||!_,bg:["surface.s1","transparent"],borderBottom:["effect.elevation1",void 0],top:C,children:(0,s.jsx)(n.tU.List,{underline:!0,scroll:!0,children:p.filter(e=>!e.isHidden).map(e=>(0,s.jsx)(n.tU.Tab,{tabKey:e.tabKey,style:{marginLeft:0},as:"h2",onClick:s=>s.nativeEvent.isTrusted&&e.tabKey!==w?k({type:e.tabKey,id:t,location:r,status:g}):void 0,children:(0,s.jsx)("a",{href:"#tab:".concat(e.tabKey),onClick:e=>e.preventDefault(),style:{color:"inherit"},children:"string"==typeof e.item?(0,s.jsx)(d.A,{id:e.item,values:e.values}):e.item})},"".concat(t,"-").concat(e.tabKey)))})}),(0,s.jsx)(n.az,{children:m})]})},t)}var p=r(28132)},98095:(e,t,r)=>{r.d(t,{j:()=>l});var s=r(4967),i=r(45860);let n=e=>fetch(e,{method:"HEAD",cache:"no-store"});function l(){let{data:e,error:t,isLoading:r}=(0,i.Ay)("https://cdn.adapex.io/hb/aaw.sofascore.js",{fetcher:n,dedupingInterval:s.d_});return{isLoading:r,hasAdBlock:!!(null==e?void 0:e.redirected)||void 0!==t}}},98914:(e,t,r)=>{r.d(t,{M:()=>s});let s=function(e,t=0){var r,s,i;return(r="round",s=e,0==+(i=-t)?Math[r](+s):(i*=1,isNaN(s*=1)||"number"!=typeof i||i%1!=0)?NaN:+((s=(s=Math[r](+((s=s.toString().split("e"))[0]+"e"+(s[1]?s[1]-i:-i)))).toString().split("e"))[0]+"e"+(s[1]?+s[1]+i:i))).toFixed(t)}}}]);