!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cfc54f16-f45c-4acd-9f04-2b95a984b511",e._sentryDebugIdIdentifier="sentry-dbid-cfc54f16-f45c-4acd-9f04-2b95a984b511")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{3167:(e,n,t)=>{t.d(n,{G:()=>h});var s=t(6029),r=t(41249),i=t(83170),a=t(55729),o=t(90510),l=t(41735);let d=(0,l.keyframes)(["from{width:0;}to{width:",";}"],e=>e.width),u=(0,l.default)(r.az).withConfig({componentId:"sc-a90f0ad-0"})(["position:absolute;height:6px;width:",";animation:"," 0.3s linear;"],e=>e.width,d),c=(0,i.A)().range([0,100]);function h(e){let{start:n=0,c:t=["onSurface.nLv1","onColor.primary"],bg:i="overlay.darken1",end:l,datesProps:d,...h}=e,[m,x]=(0,a.useState)(0),f=Date.now()/1e3;(0,a.useEffect)(()=>{setTimeout(()=>{e.end&&x(e.end)},1e3)},[e.end]),c.domain([n,m]).clamp(!0);let p=c(f);return(0,s.jsx)(r.so,{mt:["sm","md"],mb:["md",0],...h,children:(0,s.jsxs)(r.az,{flex:"1 1 auto",children:[(0,s.jsx)(r.az,{br:"sm",h:"6",bg:i,position:"relative",overflow:"hidden",children:n>0&&m>0&&(0,s.jsx)(u,{width:p+"%",bg:t},m)}),(0,s.jsxs)(r.so,{justify:"space-between",mt:"xxs",...d,children:[(0,s.jsx)(r.EY,{font:"body.small",c:t,children:(0,s.jsx)(o.XU,{value:1e3*n,day:"numeric",month:"short"})}),(0,s.jsx)(r.EY,{font:"body.small",c:t,children:(0,s.jsx)(o.XU,{value:1e3*(e.end||m),day:"numeric",month:"short"})})]})]})})}},10778:(e,n,t)=>{t.d(n,{j:()=>D});var s=t(6029),r=t(32523),i=t(21377),a=t(41249),o=t(55729),l=t(90248),d=t(494),u=t(45860),c=t(54409),h=t(41248),m=t(33144),x=t(95083),f=t(62859),p=t(60988),j=t(65078),v=t(75436),g=t(70591),y=t(28132),b=t(13349),w=t(47530),I=t(94604),S=t(86679);let T=["Final","Semifinal","Semifinals","Match for 3rd place"],C=e=>{let{seasonId:n,uniqueTournamentId:t,...r}=e,{data:o,isLoading:d}=(0,u.Ay)(i.V3t.info(t,n)),h=null==o?void 0:o.info.winner;return d||h?(0,s.jsxs)(a.so,{h:64,bg:"surface.s2",px:"lg",align:"center",gap:"lg",br:[void 0,"lg"],...r,children:[(0,s.jsxs)(a.az,{h:56,w:56,position:"relative",children:[(0,s.jsx)(c.HeH,{height:56,width:56}),h&&(0,s.jsx)(m.p,{size:20,name:h.name,id:h.id,style:{position:"absolute",top:"12px",left:"18px"}})]}),h&&(0,s.jsxs)(a.az,{children:[(0,s.jsx)(a.EY,{as:"div",font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(l.A,{id:"winner"})}),(0,s.jsx)(a.EY,{as:"div",font:"display.medium",mt:"xs",children:(0,s.jsx)(I.Rm,{team:h})})]})]}):null},z=()=>{let[e,n]=(0,o.useState)(!1);return(0,s.jsx)(a.AM,{closeOnOutsideClick:!0,controls:[e,n],children:(0,s.jsxs)(a.AM.Content,{w:"260px",right:[-8,0,-20,0],elevation:3,children:[(0,s.jsx)(a.az,{px:"xs",pt:"sm",children:(0,s.jsx)(l.A,{id:"rating_team_of_the_tournament",values:{bold:function(){for(var e=arguments.length,n=Array(e),t=0;tn(!1),children:(0,s.jsx)(l.A,{id:"ok_got_it_button"})})})]})})},k=e=>{let{seasonId:n,uniqueTournamentId:t,...r}=e,{data:o,isLoading:d}=(0,u.Ay)(i.V3t.teamOfTheSeason(t,n));return o||d?(0,s.jsxs)(a.az,{...r,children:[(0,s.jsxs)(a.so,{h:40,justify:"space-between",px:"sm",children:[(0,s.jsx)(a.EY,{as:"div",font:"display.small",h:"40px",pt:"lg",children:(0,s.jsx)(l.A,{id:"team_of_the_tournament"})}),(0,s.jsx)(a.az,{h:"24px",w:"24px",mt:"md",children:(0,s.jsx)(z,{})})]}),(0,s.jsx)(a.az,{h:"360px",mt:[0,"sm"],children:o&&(0,s.jsx)(b.I,{formation:o.formation,players:o.players,isSeason:!0})})]}):null},E=e=>{let{event:n}=e,{event:t,leftTeam:r,rightTeam:i,leftScore:a,rightScore:o}=(0,j.AR)(n);return(0,s.jsx)(f.y$.Provider,{value:{event:t,leftTeam:r,rightTeam:i,leftScore:a,rightScore:o,location:f.cb.MainList},children:(0,s.jsx)(g.tj,{event:t,children:(0,s.jsx)(p.n6,{event:t,style:{margin:"0 -8px"}})})})},A=e=>{let{uniqueTournament:n,seasonId:t,uniqueTournamentId:r,...d}=e,{isDesktop:h}=(0,x.$c)(),{data:m,isLoading:f}=(0,u.Ay)(i.V3t.events(r,t,!0,0)),{hasTopStats:p}=(0,S.A)({hasTopStats:{route:i.V3t.topPlayersPerGame(r,t,i.ypd.All,i.Vw_.overall)}}),j=null==m?void 0:m.events.filter(e=>{var n;return(null==(n=e.roundInfo)?void 0:n.name)&&T.includes(e.roundInfo.name)}).reverse();return(null==j?void 0:j.length)||f?(0,s.jsxs)(a.az,{...d,minH:"248px",children:[(0,s.jsx)(a.EY,{as:"div",font:"display.small",h:"40px",px:"sm",pt:"lg",align:["center","left"],children:(0,s.jsx)(l.A,{id:"final_matches_title"})}),(0,s.jsx)(a.az,{h:f?"208px":void 0,children:null==j?void 0:j.map((e,n)=>{var t,r;return(0,s.jsxs)(o.Fragment,{children:[(null==(t=e.roundInfo)?void 0:t.name)&&(0===n||(null==(r=j[n-1].roundInfo)?void 0:r.name)!==e.roundInfo.name)&&(0,s.jsx)(a.EY,{as:"div",h:"32px",px:["sm",0],pt:"sm",font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(w.__,{name:e.roundInfo.name})}),(0,s.jsx)(E,{event:e},e.id)]},e.id)})}),(0,s.jsx)(v.S,{uniqueTournament:n,seasonId:t,tab:h?void 0:p?y.H.TopStats:y.H.Details,children:(0,s.jsxs)(a.so,{justify:"center",pt:"md",h:"48px",children:[(0,s.jsx)(a.EY,{as:"div",color:"primary.default",font:"display.small",children:(0,s.jsx)(l.A,{id:"see_historical_details_button"})}),(0,s.jsx)(c.CCT,{fill:"primary.default"})]})})]}):null},_=e=>{let{uniqueTournament:n,season:t,tournament:r}=e;return(0,s.jsxs)(a.az,{bg:"surface.s1",px:"sm",pt:"lg",pb:["lg",0],children:[(0,s.jsx)(C,{uniqueTournamentId:r.id,seasonId:t.id}),(0,s.jsx)(k,{uniqueTournamentId:r.id,seasonId:t.id,mt:"sm"}),(0,s.jsx)(A,{uniqueTournament:n,uniqueTournamentId:r.id,seasonId:t.id,mt:"sm"})]})};var F=t(21501);let Y=e=>{let{season:n,isSelected:t,onClick:r}=e,[i,o]=(0,F.c9)([]);return(0,a.rF)(i,"history-highlights-picker",[t],()=>!!t),(0,s.jsx)(a.az,{userSelect:"none",ref:o,bg:t?"onColor.primary":"onColor.highlight.nLv1",onClick:t?void 0:r,cursor:t?void 0:"pointer",h:"32px",minW:"46px",px:"sm",br:"sm",children:(0,s.jsx)(a.so,{h:"100%",align:"center",justify:"center",children:(0,s.jsx)(a.EY,{as:"div",font:"tab.secondary",whiteSpace:"nowrap",color:t?"primary.default":"onColor.primary",children:n.year})})})};var R=t(10794),V=t(12047);let L=(e,n,t)=>{var s,r;let i=null!=(r=null==(s=e.defaultHistoryHighlightsYearPerCountry)?void 0:s[t||""])?r:e.historyHighlightsEndYear;return i?Math.max(n.findIndex(e=>e.year===i),0):0},B=e=>{let{seasons:n,tournament:t,uniqueTournament:r}=e,i=(0,d.d4)(R.LQ),[u,m]=(0,o.useState)(()=>L(t,n,i));(0,o.useEffect)(()=>{m(L(t,n,i))},[t.id,i]);let x=(0,V.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1});return(0,s.jsxs)(a.az,{position:"relative",children:[(0,s.jsx)(a.az,{position:["sticky",void 0],top:x-40,zIndex:a.Py.Sticky,children:(0,s.jsxs)(h.W,{h:88,tournament:t,children:[(0,s.jsx)(a.EY,{pt:"lg",h:"40px",as:"div",align:"center",font:"display.medium",color:"onColor.primary",children:(0,s.jsx)(l.A,{id:"history_highlights_title"})}),(0,s.jsx)(a.tR,{buttonBehavior:a.oK.ButtonBehavior.DesktopOnly,buttonVariant:a.oK.ButtonVariant.SliderControl,scrollFactor:.7,clipWidthUnderButtons:32,containerProps:{px:"sm"},backwardsControl:(0,s.jsx)(a.az,{w:24,h:24,children:(0,s.jsx)(c.pa2,{fill:"onColor.primary",w:24,h:24})}),forwardsControl:(0,s.jsx)(a.az,{w:24,h:24,children:(0,s.jsx)(c.CCT,{fill:"onColor.primary",w:24,h:24})}),scrollableContainerId:"history-highlights-picker",children:(0,s.jsx)(a.so,{minW:"fit-content",h:"48px",justify:"space-between",align:"center",px:"sm",gap:"lg",children:n.map((e,n)=>(0,s.jsx)(Y,{season:e,isSelected:n===u,onClick:()=>m(n)},e.id))})})]})}),(0,s.jsx)(_,{uniqueTournament:r,season:n[u],tournament:t})]})},D=e=>{let{tournament:n,uniqueTournament:t,seasons:a=[]}=e,{data:o,isLoading:l}=(0,u.Ay)(i.V3t.seasons(n.id),{fallbackData:{seasons:a}}),d=null==o?void 0:o.seasons.filter(e=>e.id!==n.seasonId&&n.historyHighlightsEndYear&&e.year>=n.historyHighlightsEndYear);return(null==d?void 0:d.length)?(0,s.jsx)(B,{uniqueTournament:t,tournament:n,seasons:d}):l?(0,s.jsx)(r.E,{uniqueKey:"history-highlights-container-cl",h:"888px"}):null}},13349:(e,n,t)=>{t.d(n,{I:()=>p});var s=t(6029),r=t(76356),i=t(75751),a=t(22648),o=t(24985),l=t(90715),d=t(78259),u=t(41249),c=t(16620),h=t(48886),m=t(70591),x=t(24159);let f=e=>{let{player:n,team:t,rating:r,event:i,textW:a,isSeason:o,isSmall:l}=e,{openEventPlayerStatistics:f}=(0,c.d)(),p=l?16:24,j=l?32:40,v=l?56:72,g=o||l?"sm":void 0,y=!o||l?24:28;return n?(0,s.jsx)(m.N_,{routeKey:"player",params:{id:n.id,slug:n.slug},onClick:e=>{i&&n&&(e.preventDefault(),e.stopPropagation(),f({event:i,player:n},h._.TeamOfTheWeek))},children:(0,s.jsxs)(u.so,{position:"relative",align:"center",direction:"column",textAlign:"center",w:v,h:72,children:[(0,s.jsx)(u.so,{my:"xs",children:(0,s.jsx)(d.tg,{id:n.id,name:n.name,size:j})}),(0,s.jsx)(u.so,{grow:1,align:"center",children:(0,s.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv1",align:"center",block:!0,ellipsis:!l,w:a,lineClamp:l?2:void 0,overflowWrap:"anywhere",verticalAlign:"middle",children:(0,s.jsx)(x.c,{entity:n,short:!0})})}),t&&(0,s.jsx)(u.az,{position:"absolute",top:24,right:0,children:(0,s.jsx)(d.pY,{id:t.id,name:t.name,size:p})}),(0,s.jsx)(u.az,{position:"absolute",top:y,left:0,children:(0,s.jsx)(d.GW,{rating:r,decimalPoints:o?2:1,size:g})})]})}):null},p=e=>{let{formation:n,players:t,isSeason:d}=e,u=null==n?void 0:n.includes("5");return(0,s.jsx)(i.t,{tag:"TOTW",children:(0,s.jsxs)(r.az,{position:"relative",h:"[368px]",children:[(0,s.jsx)(r.so,{h:"100%",position:"relative",zIndex:"button",direction:"column-reverse",children:n&&t?(0,l.V)(n,t).map((e,n)=>(0,s.jsx)(r.so,{flexGrow:1,flexShrink:1,align:"center",justify:"space-evenly",direction:"row-reverse",children:e.map(n=>(0,s.jsx)(f,{...n,textW:280/e.length,isSeason:d,isSmall:u},n.id))},n)):(0,s.jsx)(r.so,{h:"[360px]",justify:"center",align:"center",children:(0,s.jsx)(a.a,{})})}),(0,s.jsx)(r.az,{position:"absolute",top:"-2xs",left:"-2xs",w:"[calc(100% + 4px)]",h:"[calc(100% + 4px)]",border:"2px solid rgba(164, 169, 179, 0.3)"}),(0,s.jsx)(o.g9,{side:"right",linesColor:"rgba(164, 169, 179, 0.3)",isHorizontalLayout:!1})]})})}},19944:(e,n,t)=>{t.d(n,{Y:()=>a});var s=t(21377),r=t(4967),i=t(45860);let a=function(e,n){let t=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=t&&void 0!==n,{data:o,error:l,isLoading:d}=(0,i.Ay)(a?s.V3t.scheduledEvents(e,n):null);return{events:(null==o?void 0:o.events.filter(e=>(0,r.yk)(e.startTimestamp,Date.parse("".concat(n,"T12:00")))))||[],error:l,isLoading:d}}},41248:(e,n,t)=>{t.d(n,{W:()=>l});var s=t(6029),r=t(41249),i=t(41735);let a=(0,i.default)(r.az).withConfig({componentId:"FeaturedTournamentBackgroundContainer"}).withConfig({componentId:"sc-b415e48f-0"})(["background-image:url(/static/images/featured-tournament/",".webp);background-size:105% 105%;background-position:center center;overflow:hidden;opacity:0.8;"],e=>e.tournament.msgKey),o=(0,i.default)(r.az).withConfig({componentId:"FeaturedTournamentOverlayContainer"}).withConfig({componentId:"sc-b415e48f-1"})(["background:linear-gradient(to bottom,rgba(0,0,0,0),"," 100%);"],e=>e.theme.colors.overlay.darken2),l=e=>{let{tournament:n,children:t,h:i,...l}=e;return(0,s.jsxs)(r.az,{position:"relative",overflow:"hidden",h:i,bg:"graphicsTerrain.dark",...l,children:[(0,s.jsx)(a,{tournament:n,h:i,children:(0,s.jsx)(o,{h:i})}),(0,s.jsx)(r.az,{position:"absolute",h:i,inset:0,children:t})]})}},50433:(e,n,t)=>{t.d(n,{G:()=>c});var s=t(6029),r=t(21377),i=t(55729),a=t(45860),o=t(7079),l=t(66757),d=t(91816),u=t(67149);function c(e){let{loaderHeight:n,tableIndex:t,type:c}=e,{uniqueTournamentId:h,seasonId:m,standings:x}=(0,i.useContext)(d.P),{data:f,error:p}=(0,a.Ay)(h&&m?r.V3t.standings(h,m,c):null,{refreshInterval:3e4}),j=(null==f?void 0:f.standings)||(c===r.lpv.Total?x:void 0),{data:v}=(0,a.Ay)(h&&m?r.V3t.teamEvents(h,m,c):null,{refreshInterval:3e4});if(p)return null;if(!j)return(0,s.jsx)(l.e,{rows:n});let g=(0,u.OL)(j,j)[t],y=v?v.tournamentTeamEvents[g.tournament.id]:void 0;return(0,s.jsx)(o.X,{type:c,table:j[t],teamEvents:y})}},75436:(e,n,t)=>{t.d(n,{S:()=>i});var s=t(6029),r=t(70591);let i=e=>{let{uniqueTournament:n,seasonId:t,tab:i,onClick:a,children:o}=e;return n?(0,s.jsx)(r.tQ,{tournament:n,seasonId:t,hash:i?"id:".concat(t,",tab:").concat(i):"id:".concat(t),onClick:a,children:o}):(0,s.jsx)(s.Fragment,{children:o})}},75493:(e,n,t)=>{t.d(n,{A:()=>v});var s=t(6029),r=t(21377),i=t(4967),a=t(95083),o=t(76356),l=t(41249),d=t(55729),u=t(494),c=t(45860),h=t(22648),m=t(8703),x=t(53486),f=t(47530);let p=(e,n)=>{let t=(0,i.ZV)(),s=1/0,r=0;return[e.filter(e=>!e.name).map((e,i)=>({round:e,events:n.filter(e=>{if(e.roundInfo){let n=Math.abs(e.startTimestamp-t);return ne.events.length),r]},j=e=>{let{rounds:n,closestRound:t}=e,[r,i]=(0,d.useState)(n[t-1]?t-1:n.length-1),u=n[r];return u?(0,s.jsxs)(o.az,{flexShrink:{base:0,md:1},flexBasis:{md:"[256px]"},w:{md:"[256px]"},h:"100%",bg:"surface.s2",br:"sm",p:"sm",mx:"sm",mt:"xs",mb:"md",children:[(0,s.jsx)(l.VQ,{centerVertically:!0,controls:[r,i],children:n.map(e=>(0,s.jsx)(a.EY,{textStyle:"display.small",children:(0,s.jsx)(f.DT,{round:e.round})},e.round.round))}),(0,s.jsx)(o.az,{children:u.events.map(e=>(0,s.jsx)(x.n6,{event:e,isNarrow:!0,isShort:!0,hideIncidentIcons:!0},e.id))})]}):(0,s.jsx)(o.az,{hideBelow:"md",h:"[136px]",flexShrink:{base:0,md:1},flexBasis:{md:"[256px]"},w:{md:"[256px]"},bg:"surface.s2",br:"sm",p:"sm",mx:"sm",mt:"xs",mb:"md"})},v=(0,u.Ng)(null,m.AD)(function(e){let{uniqueTournamentId:n,tournamentId:t,seasonId:i,refreshEvents:a,stopRefreshingEvents:l,setEvents:u}=e,[m,x]=(0,d.useState)(!1),{data:f,error:v}=(0,c.Ay)(r.V3t.seasonRounds(n,i)),{data:g,error:y,isValidating:b}=(0,c.Ay)(r.yKR.seasonEvents(t,i),{onSuccess:e=>{let{events:n}=e;u(n),a({entities:n.filter(e=>e.status.type!==r.XUj.Finished).map(e=>e.id),refreshTaskId:"".concat(r.bq7.Tournaments,"-").concat(t)},{fetchFunction:()=>r.IwS.fetchTournamentSeasonEvents(t,i)}),x(!0)}});if((0,d.useEffect)(()=>()=>{l("".concat(r.bq7.Tournaments,"-").concat(t))},[i]),b)return(0,s.jsxs)(o.az,{flexShrink:{base:0,md:1},flexBasis:{md:"[256px]"},w:{md:"[256px]"},h:"100%",bg:"surface.s2",br:"sm",p:"sm",mx:"sm",mt:"xs",mb:"md",children:[(0,s.jsx)("div",{}),(0,s.jsx)("aside",{children:(0,s.jsx)(h.a,{})})]});if(!(f&&f.rounds&&g&&g.events&&m)||y||v)return(0,s.jsx)(o.az,{hideBelow:"md",h:"100%",flexShrink:{base:0,md:1},flexBasis:{md:"[256px]"},w:{md:"[256px]"},bg:"surface.s2",br:"sm",p:"sm",mx:"sm",mt:"xs",mb:"md"});let[w,I]=p(f.rounds,g.events);return(0,s.jsx)(j,{rounds:w,closestRound:I})})},77235:(e,n,t)=>{t.d(n,{A:()=>I});var s=t(6029),r=t(21377),i=t(95083),a=t(21501),o=t(41249),l=t(55729),d=t(45860),u=t(65789),c=t(85568),h=t(7263),m=t(47530),x=t(82287),f=t(91816),p=t(11033),j=t(65457),v=t(75493),g=t(50433);let y="horiz-standings";function b(e){let{isSelected:n,onClick:t,children:r}=e,[i,l]=(0,a.c9)([]);return(0,o.rF)(i,y,[n],()=>!!n),(0,s.jsx)(o.az,{ref:l,children:(0,s.jsx)(o.so,{h:32,minW:68,px:"sm",br:"sm",userSelect:"none",bg:n?"primary.highlight":"surface.s2",border:n?"1.5px solid primary.highlight":"1.5px solid transparent",onClick:n?void 0:t,cursor:"pointer",justify:"center",align:"center",children:(0,s.jsx)(o.EY,{font:"tab.secondary",color:n?"primary.default":"onSurface.nLv1",ellipsis:!0,textTransform:"uppercase",children:r})})})}function w(e){let{selectedIndex:n,setSelectedIndex:t}=e,{uniqueTournamentId:a,seasonId:u,standings:c,isNarrowLayout:x,displayType:p,setDisplayType:w}=(0,l.useContext)(f.P),{isDesktop:I}=(0,i.$c)(),{data:S}=(0,d.Ay)(I&&a&&u?[r.V3t.seasonRounds(a,u),"HEAD"]:null,{fetcher:h.n});return(0,s.jsxs)(o.az,{grow:1,overflow:"hidden",children:[(0,s.jsx)(o.so,{align:"center",p:"sm",children:(0,s.jsx)(o.tR,{scrollableContainerId:y,buttonVariant:o.oK.ButtonVariant.Solid,children:(0,s.jsx)(o.so,{minW:"fit-content",justify:"flex-start",gap:"sm",children:c.map((e,r)=>(0,s.jsx)(b,{isSelected:n===r,onClick:()=>t(r),children:(0,s.jsx)(m.__,{name:e.tournament.groupName||e.tournament.name})},e.id))})})}),x&&(0,s.jsx)(j.u,{displayType:p,setDisplayType:w,isNarrowLayout:x}),(0,s.jsxs)(o.so,{children:[(0,s.jsx)(o.az,{grow:1,bg:["surface.s2",void 0],br:"lg",mx:["sm",0],mt:"sm",children:(0,s.jsx)(g.G,{type:r.lpv.Total,tableIndex:n})}),S&&c[n].tournament.isGroup&&a&&u&&(0,s.jsx)(o.az,{basis:268,shrink:1,children:(0,s.jsx)(v.A,{uniqueTournamentId:a,tournamentId:c[n].tournament.id,seasonId:u})})]})]})}function I(e){let{branding:n,utId:t}=e,{seasonId:r,standings:i,tournamentId:a}=(0,l.useContext)(f.P),[o,d]=(0,l.useState)(0);if((0,l.useEffect)(()=>{d(Math.max(i.findIndex(e=>e.tournament.id===a),0))},[r,a]),!i[o])return null;let h=i[o];return(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(c.U,{entityId:t,titleId:"tournament.standings",visibility:"desktop-only",branding:n,location:"league_standings"}),(0,s.jsxs)(x.R,{standings:h,children:[(0,s.jsx)(w,{selectedIndex:o,setSelectedIndex:d}),(0,s.jsx)(p.c,{rows:h.rows,descriptions:h.descriptions,tieBreakingRule:h.tieBreakingRule,defaultOpenedFirstRules:!0})]})]})}},78259:(e,n,t)=>{t.d(n,{GW:()=>r.A,pY:()=>i.p,tg:()=>s.t});var s=t(91407),r=t(12605),i=t(91603)},79368:(e,n,t)=>{t.d(n,{LS:()=>w,Oj:()=>b,SR:()=>y,ib:()=>j,lU:()=>f,sZ:()=>g,zK:()=>p});var s=t(6029),r=t(4967),i=t(95083),a=t(59018),o=t.n(a),l=t(81278),d=t(55729),u=t(494),c=t(19451),h=t(10794),m=t(55938),x=t(39021);let f=(0,d.createContext)({}),p={1:{id:1,slug:"euro-2024",seasonId:56953,msgKey:"football_euro_2024_tournament",showCupTreeFrom:"2024-06-29",analyticsName:"euro",historyHighlightsEndYear:"1980",defaultHistoryHighlightsYearPerCountry:{BE:"1980",DE:"1996",IT:"2000",CZ:"1996",FR:"1984",PT:"2004",DK:"1992",ES:"2008",NL:"1988",IE:"1988",UK:"1996",RO:"2000",GR:"2004",SE:"1992",CH:"1996",BG:"1996",RU:"2008",HR:"1996",TR:"2008",NO:"2000",SI:"2000",LV:"2004",AT:"2008",PL:"2012",UA:"2012",SK:"2016",RS:"2000",HU:"2016",IS:"2016",AL:"2016",FI:"2020",MK:"2020",GB:"1996"},visibleFrom:"2024-06-03",visibleTo:"2024-07-21",defaultFrom:"2024-06-14"},133:{id:133,slug:"copa-2024",seasonId:57114,msgKey:"football_copa_2024_tournament",analyticsName:"copa",showCupTreeFrom:"2024-07-04",visibleFrom:"2024-06-03",visibleTo:"2024-07-21",defaultFrom:"2024-06-14"}},j=(e,n)=>(!n.visibleTo||!(e>=n.visibleTo))&&(!n.visibleFrom||!(e(()=>{try{let n=e?(0,m.BJ)(e):void 0;if((null==n?void 0:n.continent)==="South America"||(null==n?void 0:n.continent)==="North America")return[133,1]}catch(e){}return[1,133]})().map(e=>p[e]).filter(e=>void 0!==e&&j((0,r.UG)(new Date),e)),g=e=>{let{children:n}=e,[t,r]=(0,x.A)("selected.featured.tournament",void 0),[a,m]=(0,x.A)("ignored.featured.tournaments",[]),j=(0,u.d4)(h.LQ),g=v(j),{isMobile:y}=(0,i.$c)(),b=(0,l.useRouter)().pathname;(0,d.useEffect)(()=>{t&&m(e=>o()([...e,t]))},[t]),(0,d.useEffect)(()=>{m(e=>e.filter(e=>!!p[e]))},[]),(0,d.useEffect)(()=>{try{localStorage.removeItem("mobile-view-2024-06")}catch(e){}},[]),(0,d.useEffect)(()=>{if(j&&y&&b!==c.xW.FeaturedTournament&&(!t||!g.find(e=>e.id===t))){if(0===g.length)return void r(void 0);let e=g[0];r(e.id),m(n=>[...n,e.id])}},[j,g.length,b]);let w=g.filter(e=>e.id!==t&&!a.includes(e.id));return(0,s.jsx)(f.Provider,{value:{tournament:t?p[t]:void 0,allTournaments:g,setSelectedTournamentId:r,newTournaments:w,addIgnoredTournament:e=>m(n=>o()([...n,e]))},children:n})},y=e=>v((0,u.d4)(h.LQ)).filter(n=>j(e,n)&&j((0,r.UG)(new Date),n)),b=e=>p[e],w=()=>(0,d.useContext)(f)},97150:(e,n,t)=>{t.d(n,{h:()=>r});var s=t(21377);let r=e=>{var n;let t=null==e?void 0:e.filter(e=>e.status.type===s.XUj.InProgress),r=null==e?void 0:e.filter(e=>e.status.type===s.XUj.NotStarted&&e.hasEventPlayerStatistics);return[...((null==t?void 0:t.length)>0?t:r.length>0?r:e).map(e=>e.tournament.id).reduce((e,n)=>{var t;return e.set(n,(null!=(t=e.get(n))?t:0)+1),e},new Map)].reduce((e,n)=>n[1]>e[1]?n:e,[void 0,0])[0]}}}]);