!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]="7f0a923c-7765-4557-8b0f-63a6f25361bb",e._sentryDebugIdIdentifier="sentry-dbid-7f0a923c-7765-4557-8b0f-63a6f25361bb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6595],{721:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(6029),r=n(76356),i=n(71024),l=n.n(i),a=n(65789);let o=l()(()=>n.e(8305).then(n.bind(n,68305)),{loadableGenerated:{webpack:()=>[68305]},ssr:!1});function d(e){let{event:t}=e;return(0,s.jsx)(a.Zp,{children:(0,s.jsx)(r.az,{maxW:"100%",minH:"[322px]",p:"lg",children:(0,s.jsx)(o,{id:5,name:"EventAC",event:t})})})}function c(e){let{event:t}=e;return(0,s.jsx)(d,{event:t})}},868:(e,t,n)=>{n.d(t,{p:()=>f});var s=n(6029),r=n(21377),i=n(41249),l=n(55729),a=n(90248),o=n(45860),d=n(65789),c=n(62859),u=n(54409),x=n(12153),h=n(36880),m=n(76410),p=n(50154);let j=[{titleId:"tennis_first_serve",key:"firstServePercentage"},{titleId:"tennis_average_aces_per_match",key:"aces"},{titleId:"break_points_saved",key:"breakPointsSavedPercentage"},{titleId:"break_points_converted",key:"breakPointsSavedConvertedPercentage"}],g=(e,t)=>{switch(t){case"firstServePercentage":if(isNaN(e.firstServePointsTotal)||isNaN(e.firstServeTotal))return[0,"-"];let n=Math.round(10*(e.firstServePointsTotal/e.firstServeTotal*100))/10;return[n,"".concat(n,"%")];case"aces":if(isNaN(e.aces)||isNaN(e.matches))return[0,"-"];let s=Math.round(e.aces/e.matches*10)/10;return[s,"".concat(s)];case"breakPointsSavedPercentage":if(isNaN(e.breakPointsSavedPercentage)||isNaN(e.opponentBreakPointsTotal)||isNaN(e.opponentBreakPointsScored))return[0,"-"];let r=Math.round(10*e.breakPointsSavedPercentage)/10,i=e.opponentBreakPointsTotal-e.opponentBreakPointsScored;return[r,"".concat(i,"/").concat(e.opponentBreakPointsTotal," (").concat(r,"%)")];case"breakPointsSavedConvertedPercentage":if(isNaN(e.breakPointsSavedConvertedPercentage)||isNaN(e.breakPointsScored)||isNaN(e.breakPointsTotal))return[0,"-"];let l=Math.round(10*e.breakPointsSavedConvertedPercentage)/10;return[l,"".concat(e.breakPointsScored,"/").concat(e.breakPointsTotal," (").concat(l,"%)")];default:return null}},f=e=>{var t,n;let{isInWidget:f=!1}=e,{leftTeam:v,rightTeam:y,event:b}=(0,l.useContext)(c.y$),w=b.tournament.category.sport.slug,S=null==(t=b.tournament.uniqueTournament)?void 0:t.id,k=null==(n=b.season)?void 0:n.id,{isAdsTestTreatment:C}=(0,p.Q)(),{data:A}=(0,o.Ay)(S&&k?r.cWY.seasonStatistics(v.id,S,k,"overall"):null),{data:I}=(0,o.Ay)(S&&k?r.cWY.seasonStatistics(y.id,S,k,"overall"):null);return A&&I?(0,s.jsxs)(d.Zp,{isInverseDesktop:f,children:[(0,s.jsx)(d.Zp.Header,{titleId:"tennis_tournament_stats_title"}),(0,s.jsxs)(i.az,{px:"sm",pb:"sm",children:[j.map((e,t)=>{let n=g(A.statistics,e.key),r=g(I.statistics,e.key);if(!n||!r)return null;let[l,o]=n,[d,c]=r;return(0,s.jsxs)(i.so,{minH:"36px",py:"sm",px:C?void 0:"sm",w:"100%",align:"center",justify:"space-between",borderBottom:t!==j.length-1?"onSurface.nLv4":void 0,children:[(0,s.jsx)(i.az,{as:"bdi",textAlign:"left",w:80,position:"relative",h:"100%",children:(0,s.jsx)(i.az,{position:"absolute",left:0,top:"50%",style:{transform:"translateY(-50%)",whiteSpace:"nowrap"},children:(0,s.jsx)(h.W,{font:"table.medium",leftTeamBetter:l>d,children:o})})}),(0,s.jsx)(i.EY,{block:!0,font:"table.medium",maxW:C?112:void 0,align:"center",lineClamp:3,children:(0,s.jsx)(a.A,{id:e.titleId})}),(0,s.jsx)(i.az,{as:"bdi",textAlign:"right",w:80,position:"relative",h:"100%",children:(0,s.jsx)(i.az,{position:"absolute",right:0,top:"50%",style:{transform:"translateY(-50%)",whiteSpace:"nowrap"},children:(0,s.jsx)(h.W,{font:"table.medium",rightTeamBetter:l(0,m.ke)({action:"click",location:"details_tab",type:"compare_teams_tennis"}),children:[(0,s.jsx)(i.EY,{lineHeight:"16px !important",font:"button.primary",textTransform:"uppercase",c:"surface.s1",children:(0,s.jsx)(a.A,{id:"button_compare_more_stats"})}),(0,s.jsx)(i.az,{w:16,children:(0,s.jsx)(u.cSg,{fill:"surface.s1",w:16,h:16})})]})})})]})]}):null}},1584:(e,t,n)=>{n.d(t,{A:()=>v});var s=n(6029),r=n(21377),i=n(41249),l=n(71024),a=n.n(l),o=n(55729),d=n(90248),c=n(65789),u=n(62859),x=n(26763),h=n(28132),m=n(1840),p=n(62827),j=n(84974);let g=a()(()=>n.e(2970).then(n.bind(n,52970)),{loadableGenerated:{webpack:()=>[52970]},ssr:!1,loading:()=>(0,s.jsx)(i.az,{h:620})}),f=a()(()=>n.e(6097).then(n.bind(n,76097)),{loadableGenerated:{webpack:()=>[76097]},ssr:!1,loading:()=>(0,s.jsx)(i.az,{h:560})});function v(e){let{isInWidget:t}=e,n=(0,o.useContext)(u.Ws),{event:l}=(0,o.useContext)(u.y$),a=(0,x.A)(),v=n===r.QCR.MMA;return(0,s.jsx)(i.tU.Panel,{tabKey:v?h.H.Fights:h.H.Matches,children:(0,s.jsxs)(c.BU,{children:[(0,s.jsx)(g,{}),(0,s.jsx)(j.v,{event:l,isInWidget:!0}),(0,s.jsxs)(c.Zp,{isInverseDesktop:!0,children:[!t&&(0,s.jsx)(c.Zp.Header,{title:(0,s.jsx)(d.A,{id:v?"fights_mma":"matches",values:v?void 0:{sport:(0,p.ap)(n)}})}),t&&(0,s.jsx)(i.az,{h:[0,"lg"]}),(0,s.jsx)(f,{isTabbedLayout:!0})]}),a&&(0,s.jsx)(m.z,{})]})})}},1614:(e,t,n)=>{n.d(t,{A:()=>eQ});var s=n(6029),r=n(21377),i=n(21501),l=n(76356),a=n(41249),o=n(71024),d=n.n(o),c=n(55729),u=n(494),x=n(62859),h=n(75751),m=n(93902),p=n(37377),j=n(1773),g=n(12962),f=n(92494);let v=d()(()=>n.e(2093).then(n.bind(n,82093)),{loadableGenerated:{webpack:()=>[82093]}});var y=n(48553),b=n(53235),w=n(76277),S=n(47550),k=n(17808),C=n(28132),A=n(1840),I=n(91631),L=n(14861),E=n(77540),P=n(47229),T=n(49711),_=n(62213),z=n(10794);function R(e){let{event:t,onFeaturedOddsClick:n}=e,i=t.status.type===r.XUj.InProgress,l=(0,u.d4)(z.LQ);return(0,s.jsx)(T.O,{event:t,fallback:{NL:(0,s.jsx)(L.i,{id:"event.MOBILE_BELOW_ODDS",borderless:!0}),PT:(0,s.jsx)(E.U,{onClick:n}),DE:(0,s.jsx)(L.i,{id:"event.MOBILE_BELOW_ODDS",borderless:!0})},isComparisonElevated:!0,hasCTALoader:!!l&&_.fe.includes(l),children:(0,s.jsx)(P.J7,{eventId:t.id,isLive:i})})}var Y=n(2294),M=n(27175),D=n(70088),H=n(78383),W=n.n(H),O=n(90248),N=n(41735),F=n(45860),G=n(65789),U=n(54409),Q=n(8703),B=n(15424),Z=n(68671);let $=e=>({left:{default:e.mmaSpecific.red.default,highlight:e.mmaSpecific.red.highlight},right:{default:e.mmaSpecific.blue.default,highlight:e.mmaSpecific.blue.highlight}});var X=n(53731);let q=e=>{let{eventId:t,period:n,onSeeAllStatisticsClick:i,...l}=e,{data:o,error:d}=(0,F.Ay)(r.bnp.statistics(t));if(!o||d)return null;let c=o.statistics,{strikeGraph:u}=(0,Z.Ip)(c,n);return(0,s.jsxs)(a.az,{...l,children:[(0,s.jsx)(a.EY,{block:!0,font:"display.medium",align:"center",p:"md",children:(0,s.jsx)(O.A,{id:"strikes_by_zones"})}),(0,s.jsx)(B.lg,{statsStrikeGraph:u}),i&&(0,s.jsxs)(a.EY,{pt:"md",pb:"xl",color:"primary.default",font:"display.small",block:!0,align:"center",onClick:i,children:[(0,s.jsx)(O.A,{id:"see_all_statistics"})," ",(0,s.jsx)(U.CCT,{fill:"primary.default"})]})]})},K=e=>{let{onSeeAllStatisticsClick:t,isInWidget:n}=e,{colors:i}=(0,N.useTheme)(),{event:l}=(0,c.useContext)(x.y$);return l.status.type!==r.XUj.Finished||(0,Q.c5)(l)!==r.QCR.MMA?null:(0,s.jsx)(X.Ef.Provider,{value:{MMAColors:$(i),eventStatusType:l.status.type,isPercent:!0,period:0,gender:l.gender,changeStatsDisplay:W(),setPeriod:W()},children:(0,s.jsx)(G.Zp,{isInverseDesktop:n,children:(0,s.jsx)(q,{eventId:l.id,period:0,onSeeAllStatisticsClick:t})})})};var V=n(85009),J=n(91694),ee=n(23685),et=n(29469),en=n(9088),es=n(44194),er=n(82203),ei=n.n(er),el=n(26331),ea=n(88339),eo=n(76410),ed=n(25862),ec=n(94704);let eu=e=>{let{name:t,startDate:n}=e,{event:r}=(0,c.useContext)(x.y$),i=(0,u.d4)(ea.$F),l=!!(null==i?void 0:i.id),a=(0,el.A)(),o=(0,u.wA)(),d=(0,ec.oY)(r,a),h=(0,ec.GY)(t,n,d);return(0,s.jsx)(s.Fragment,{children:l?(0,s.jsx)(ei(),{href:h,onClick:()=>{(0,eo.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},target:"_blank",children:(0,s.jsx)(es.$n,{size:"tertiary",children:(0,s.jsx)(O.A,{id:"add_event_button"})})}):(0,s.jsx)(es.$n,{size:"tertiary",onClick:()=>{l||o((0,ed.aS)()),(0,eo.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},children:(0,s.jsx)(O.A,{id:"add_event_button"})})})},ex=e=>{let{isInWidget:t}=e,{event:n}=(0,c.useContext)(x.y$);return(0,s.jsx)(G.Zp,{isInverseDesktop:t,children:(0,s.jsx)(G.BU,{children:(0,s.jsxs)(l.so,{w:"100%",justify:"space-between",align:"center",px:"sm",children:[(0,s.jsxs)(l.so,{align:"center",gap:"sm",children:[(0,s.jsx)(U.E8x,{fill:"onSurface.nLv1"}),(0,s.jsx)(es.EY,{children:(0,s.jsx)(O.A,{id:"add_to_calendar"})})]}),(0,s.jsx)(eu,{name:"".concat(n.homeTeam.name," - ").concat(n.awayTeam.name),startDate:n.startTimestamp})]})})})};var eh=n(79085),em=n(34884),ep=n(5348),ej=n(36337),eg=n(25635),ef=n(91603),ev=n(70591),ey=n(94604),eb=n(84942),ew=n(32113),eS=n(79853);let ek=e=>{let{managerDuel:t,sportSlug:n,leftManager:r,rightManager:i,isInWidget:l}=e,o=(0,el.A)();if(!t||!r||!i)return null;let d=Object.values(t).reduce((e,t)=>e+t,0);return(0,s.jsxs)(G.Zp,{isInverseDesktop:l,children:[(0,s.jsx)(G.Zp.Header,{titleId:"manager_h2h",as:"h4"}),(0,s.jsxs)(a.EY,{block:!0,font:"display.micro",align:"center",py:"sm",children:[(0,s.jsx)(O.A,{id:eI(n),values:{n:d}}),":"]}),(0,s.jsx)(ew.H,{h2hDuel:t,leftImage:(0,s.jsx)(ev.yI,{manager:r,children:(0,s.jsx)(eg.d,{size:40,id:r.id,name:r.name})}),leftName:(0,s.jsx)(ev.yI,{manager:r,children:(0,s.jsx)(a.EY,{as:"bdi",ellipsis:!0,children:(0,eb.s)(r,o,{short:!0})})}),rightImage:(0,s.jsx)(ev.yI,{manager:i,children:(0,s.jsx)(eg.d,{size:40,id:i.id,name:i.name})}),rightName:(0,s.jsx)(ev.yI,{manager:i,children:(0,s.jsx)(a.EY,{as:"bdi",ellipsis:!0,align:"right",children:(0,eb.s)(i,o,{short:!0})})})})]})},eC=e=>{let{teamDuel:t,sportSlug:n,leftTeam:r,rightTeam:i,isInWidget:l}=e;if(!t)return null;let o=Object.values(t).reduce((e,t)=>e+t,0);return(0,s.jsxs)(G.Zp,{isInverseDesktop:l,children:[(0,s.jsx)(G.Zp.Header,{titleId:"team_head_to_head",as:"h4"}),(0,s.jsxs)(a.EY,{block:!0,font:"display.micro",align:"center",py:"sm",children:[(0,s.jsx)(O.A,{id:eI(n),values:{n:o}}),":"]}),(0,s.jsx)(ew.H,{h2hDuel:t,leftImage:(0,s.jsx)(ev.gT,{sport:n,team:r,children:(0,s.jsx)(ef.p,{size:40,id:r.id,name:r.name})}),leftName:(0,s.jsx)(ev.gT,{sport:n,team:r,children:(0,s.jsx)(a.EY,{block:!0,as:"bdi",ellipsis:!0,pr:"xxs",children:(0,s.jsx)(ey.Rm,{team:r,short:!0})})}),rightImage:(0,s.jsx)(ev.gT,{sport:n,team:i,children:(0,s.jsx)(ef.p,{size:40,id:i.id,name:i.name})}),rightName:(0,s.jsx)(ev.gT,{sport:n,team:i,children:(0,s.jsx)(a.EY,{block:!0,as:"bdi",align:"right",ellipsis:!0,pl:"xxs",children:(0,s.jsx)(ey.Rm,{team:i,short:!0})})})})]})},eA=e=>{let{eventId:t,leftTeam:n,rightTeam:i,sportSlug:l,isInWidget:a}=e,{data:o}=(0,F.Ay)(r.bnp.head2Head(t)),{managers:d}=(0,eS.K)();return o&&o.managerDuel&&d&&d.leftManager&&d.rightManager||o&&o.teamDuel?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eC,{teamDuel:o.teamDuel,sportSlug:l,leftTeam:n,rightTeam:i,isInWidget:a}),(0,s.jsx)(ek,{managerDuel:o.managerDuel,sportSlug:l,leftManager:d.leftManager,rightManager:d.rightManager,isInWidget:a})]}):null};function eI(e){switch(e){case r.QCR.AmericanFootball:return"am_football_last_x_games";case r.QCR.Basketball:return"basketball_last_x_games";case r.QCR.Baseball:return"baseball_last_x_games";case r.QCR.IceHockey:return"ice_hockey_last_x_games";case r.QCR.Tennis:return"tennis_last_x_matches";case r.QCR.TableTennis:return"table_tennis_last_x_matches";case r.QCR.Badminton:return"badminton_last_x_matches";case r.QCR.Snooker:return"snooker_last_x_matches";case r.QCR.Darts:return"darts_last_x_matches";case r.QCR.ESports:return"esports_last_x_events";default:return"general_last_x_matches"}}var eL=n(57267),eE=n(97316),eP=n(98899),eT=n(10951),e_=n(12174),ez=n(11687),eR=n(27680),eY=n(25049),eM=n(49937),eD=n(868);let eH=e=>{let{event:t,onFeaturedOddsClick:n}=e,i=t.status.type===r.XUj.InProgress,l=(0,u.d4)(z.LQ);return(0,s.jsx)(T.O,{event:t,fallback:{NL:(0,s.jsx)(L.i,{id:"event.DESKTOP_BELOW_ODDS",borderless:!0}),PT:(0,s.jsx)(E.U,{onClick:n}),DE:(0,s.jsx)(L.i,{id:"event.DESKTOP_BELOW_ODDS",borderless:!0})},hasCTALoader:!!l&&_.fe.includes(l),children:(0,s.jsx)(P.f9,{eventId:t.id,isLive:i})})};var eW=n(36075),eO=n(23250),eN=n(71046),eF=n(721);let eG=d()(()=>n.e(3051).then(n.bind(n,93051)),{loadableGenerated:{webpack:()=>[93051]},ssr:!1}),eU=e=>{let{event:t}=e,n=(0,eN.D7)(),r=(0,c.useContext)(j.i4),i=(0,u.d4)(z.LQ),a=!!i&&(0,eN.Q9)(i);return(0,c.useEffect)(()=>{r&&r.provider===f.w.Google&&a&&r.addExcludedSlot(["event.MOBILE_TOP"])},[r]),(0,s.jsx)(l.az,{ref:a?void 0:n,children:a?(0,s.jsx)(eF.A,{event:t}):(0,s.jsx)(L.i,{id:"event.MOBILE_TOP"})})};function eQ(e){var t,n,o,d,j,f;let{isInWidget:E,isSpecialEsports:P,hasStandings:T,hasCricketIncidents:_,hasWinningOdds:z,hasFeaturedOdds:H,onFeaturedOddsClick:W,onBestPlayersClick:O,onPrematchStandingsClick:N,onSeeAllStatisticsClick:F}=e,{event:G,leftTeam:U,rightTeam:Q}=(0,c.useContext)(x.y$),B=G.tournament.category.sport,Z=(0,i.hX)(),$=G.tournament.category.sport.slug,X=(0,eN.nI)(G),q=$===r.QCR.MMA,es=ej.I.includes($)&&G.status.type===r.XUj.NotStarted,er=B.slug===r.QCR.Football,ei=B.slug===r.QCR.Tennis,el=G.status.type===r.XUj.NotStarted,ea=(0,u.d4)(Y.fq),eo=(0,I.q)(),ed=ea?eo:H,ec=z||ed;return(0,s.jsx)(a.tU.Panel,{tabKey:C.H.Details,children:(0,s.jsxs)(l.so,{direction:"column",p:"sm",gap:"sm",children:[(0,s.jsx)(em.i,{eventLocation:"editor_event",nickname:null==(t=G.eventEditor)?void 0:t.name,userId:null==(n=G.eventEditor)?void 0:n.id,hasStarted:G.status.type!==r.XUj.NotStarted}),(0,s.jsx)(eM.R,{}),(0,s.jsx)(ep.N,{event:G}),E?(0,s.jsx)(eH,{event:G,onFeaturedOddsClick:W}):(0,s.jsx)(R,{event:G,onFeaturedOddsClick:W}),(0,s.jsx)(eT.y,{}),(0,s.jsx)(eY.z,{}),!Z&&(0,s.jsx)(D.Jk,{eventId:G.id,tournamentId:G.tournament.id,roundId:null==(o=G.roundInfo)?void 0:o.round,type:"single",screen:"mobile",isLive:G.status.type===r.XUj.InProgress,location:D.D_.DetailsTab}),(0,s.jsx)(eO.C,{}),P&&(0,s.jsx)(v,{event:G,isInWidget:E}),(0,s.jsx)(b.d,{}),!E&&(0,s.jsx)(eU,{event:G}),(0,s.jsx)(h.t,{tag:"PreviousMatchInfo",children:(0,s.jsx)(eR.f,{})}),(0,s.jsx)(e_.f,{event:G}),!er&&(0,s.jsx)(eh.E,{event:G,onClick:O}),!er&&X&&(0,s.jsx)(eG,{event:G}),$===r.QCR.Tennis?(0,s.jsx)(M.A,{event:G,isInWidget:E}):(0,eP.D)($)?(0,s.jsx)(eL.j,{event:G}):$===r.QCR.Cricket?_&&(0,s.jsx)(w.x,{}):(0,s.jsx)(eE.w,{event:G}),er&&(0,s.jsx)(eh.E,{event:G,onClick:O}),er&&X&&(0,s.jsx)(eG,{event:G}),(0,s.jsx)(et.A,{placement:E?g.M.DesktopWidget:g.M.MobileEventPage,event:G,isInWidget:E}),(0,s.jsx)(K,{onSeeAllStatisticsClick:F,isInWidget:E}),(0,s.jsx)(ee.Y,{utId:null==(d=G.tournament.uniqueTournament)?void 0:d.id,location:"event_screen",bgImageUrl:[r.cWY.image(U.id),r.cWY.image(Q.id)],isInverseDesktop:!0}),G.status.type!==r.XUj.NotStarted&&(0,s.jsx)(y.Y,{isInWidget:E}),(0,s.jsx)(ez.s,{eventId:G.id,onClick:T?N:void 0,isInWidget:E}),ei&&el&&(0,s.jsx)(eD.p,{isInWidget:E}),(0,s.jsx)(eA,{eventId:G.id,leftTeam:U,rightTeam:Q,sportSlug:$,isInWidget:E}),G.status.type===r.XUj.NotStarted&&(0,s.jsx)(y.Y,{isInWidget:E}),!E&&(0,s.jsx)(L.i,{id:"event.MOBILE_MIDDLE"}),z&&(0,s.jsx)(eW.D,{isInWidget:E}),!q&&(0,s.jsx)(V.d,{eventId:G.id,type:r.IAy.Event,startTimestamp:G.startTimestamp,isInWidget:E}),(0,s.jsx)(J.Q,{}),q&&(0,s.jsx)(k.A,{homeTeam:G.homeTeam,awayTeam:G.awayTeam,isInWidget:E}),(0,s.jsx)(m.W,{event:G,showTournamentInfo:P,isInWidget:E}),es&&(0,s.jsx)(ej.x,{eventId:G.id,leftTeam:U,rightTeam:Q,isInWidget:E}),(null==(j=G.eventEditor)?void 0:j.name)&&(0,s.jsx)(p.s,{isInWidget:E}),(0,s.jsx)(S.pk,{utIds:[null==(f=G.tournament.uniqueTournament)?void 0:f.id],isWidget:E}),!E&&(0,s.jsx)(en.I,{event:G}),G.status.type===r.XUj.NotStarted&&(0,s.jsx)(ex,{isInWidget:E}),ec&&(0,s.jsx)(A.z,{showTailingRegulation:!ed})]})})}},3856:(e,t,n)=>{n.d(t,{O:()=>a});var s=n(6029),r=n(18612),i=n(55729);let l=e=>{let{offset:t,rows:n}=e;return(0,s.jsx)(s.Fragment,{children:Array.from(Array(n).keys()).map(e=>(0,s.jsxs)(i.Fragment,{children:[e%2==0&&(0,s.jsx)("rect",{x:8,y:t+36*e,width:48,height:24,rx:"12"}),(0,s.jsx)("rect",{x:"calc(50% - 50px)",y:t+36*e+6,width:100,height:16}),e%2!=0&&(0,s.jsx)("rect",{x:"calc(100% - 56px)",y:t+36*e,width:48,height:24,rx:"12"}),(0,s.jsx)("rect",{x:8,y:t+36*e+30,width:"calc(100% - 16px)",height:1})]},e))})};function a(e){let{style:t}=e;return(0,s.jsxs)(r.D,{height:600,style:t,uniqueKey:"statistics-cl",children:[(0,s.jsx)("rect",{x:"calc(50% - 88px)",y:25,width:48,height:34,rx:"8"}),(0,s.jsx)("rect",{x:"calc(50% - 24px)",y:25,width:48,height:34,rx:"8"}),(0,s.jsx)("rect",{x:"calc(50% + 40px)",y:25,width:48,height:34,rx:"8"}),(0,s.jsx)(l,{rows:4,offset:86}),(0,s.jsx)(l,{rows:4,offset:262}),(0,s.jsx)(l,{rows:4,offset:438})]})}},4196:(e,t,n)=>{n.r(t),n.d(t,{default:()=>W});var s=n(6029),r=n(21377),i=n(44194),l=n(76356),a=n(41249),o=n(71024),d=n.n(o),c=n(55729),u=n(45860),x=n(65789),h=n(62859),m=n(75751),p=n(8703),j=n(90248),g=n(98516);function f(e){let{value:t}=e;return"number"==typeof t?100===t?(0,s.jsx)(s.Fragment,{children:">99%"}):0===t?(0,s.jsx)(s.Fragment,{children:"<1%"}):(0,s.jsxs)(s.Fragment,{children:[(0,g.M)(t,0),"%"]}):(0,s.jsx)(s.Fragment,{children:t})}function v(e){let{value:t,color:n,children:r,...i}=e;return(0,s.jsxs)(a.so,{direction:"column",flex:"1 1 20px",maxW:"33%",overflow:"hidden",...i,children:[(0,s.jsx)(a.EY,{as:"div",font:"table.medium",color:"onSurface.nLv1",mb:"sm",h:"16px",maxW:"100%",ellipsis:!0,children:r}),(0,s.jsx)(a.EY,{as:"div",font:"display.small",color:n,children:(0,s.jsx)(f,{value:t})})]})}var y=n(94604),b=n(39021),w=n(54409),S=n(25355),k=n(49443),C=n(26331),A=n(76410),I=n(62827);function L(e){let{onRewardGranted:t,onAdClosed:n}=e,{isDesktop:r}=(0,i.$c)(),l=r?k.l.DesktopEventStatistics:k.l.MobileEventStatistics,o=(0,c.useRef)(),{showRewardedAd:d}=(0,S.N)(k.A[l].Google,t,()=>{o.current?window.location.hash=o.current:window.location.hash="",n()}),u=(0,C.A)(),x=(0,I.Jx)(u),h=async()=>{(0,A.ke)({action:"click",location:"event_statistics",type:"win_probability"}),o.current=window.location.hash.substring(1),await d()};return(0,s.jsxs)(a.az,{mt:"sm",minH:"40px",cursor:"pointer",onClick:h,children:[(0,s.jsxs)(a.so,{align:"center",gap:"xs",justify:"center",children:[(0,s.jsx)(a.EY,{as:"div",font:"display.small",color:"primary.default",align:"center",children:(0,s.jsx)(j.A,{id:"win_probability_show_me_the_numbers"})}),x?(0,s.jsx)(w.pa2,{fill:"primary.default"}):(0,s.jsx)(w.CCT,{fill:"primary.default"})]}),(0,s.jsx)(a.EY,{as:"div",font:"body.small",color:"onSurface.nLv3",mt:"sm",align:"center",children:(0,s.jsx)(j.A,{id:"Watch an ad and reveal Win Probability estimates"})})]})}var E=n(54053);function P(){let[e,t]=(0,c.useState)(!1);return(0,s.jsxs)(a.az,{h:"24px",w:"24px",right:0,bottom:4,position:"absolute",children:[(0,s.jsx)(a.$n,{variant:"unshielded",size:"xs",p:"0",style:{userSelect:"none",border:"none"},onClick:()=>{t(!0)},children:(0,s.jsx)(w.G_L,{fill:"onSurface.nLv1"})}),e&&(0,s.jsx)(E.A,{isOpen:e,setIsOpen:t,header:"win_probability",children:(0,s.jsx)(a.az,{px:"lg",maxW:[void 0,320],children:(0,s.jsx)(a.EY,{align:"left",font:"body.mediumParagraph",color:"onSurface.nLv1",mb:"sm",as:"div",children:(0,s.jsx)(j.A,{id:"win_probability_info_text"})})})})]})}var T=n(30720);function _(){let[e,t]=(0,c.useState)(!1),{event:n,leftTeam:i,rightTeam:l}=(0,c.useContext)(h.y$),{data:o,error:d}=(0,u.Ay)(e?r.bnp.winProbability(n.id):null,(0,p.rf)(n)),[x,m]=(0,T.A)(null==o?void 0:o.winProbability,"homeWin","awayWin"),[g,f]=(0,b.A)("win-probability-ad-seen",[]),[w,S]=(0,c.useState)(Math.random()),k=()=>S(Math.random());if((0,c.useEffect)(()=>{g.some(e=>e===n.id)?t(!0):k()},[n.id]),d||n.status.type!==r.XUj.InProgress)return null;let C=null==o?void 0:o.winProbability.draw,A=e?"-":"?";return(0,s.jsx)(a.az,{bg:"surface.s1",px:"sm",pt:"sm",pb:[0,"sm"],children:(0,s.jsxs)(a.az,{minH:"114px",px:"lg",bg:"surface.s2",br:"lg",pb:"lg",children:[(0,s.jsxs)(a.so,{justify:"center",h:"40px",pt:"14px",pb:"6px",mb:"sm",position:"relative",children:[(0,s.jsx)(a.EY,{as:"div",h:"20px",font:"display.medium",color:"onSurface.nLv1",children:(0,s.jsx)(j.A,{id:"win_probability"})}),(0,s.jsx)(P,{})]}),!e&&(0,s.jsx)(L,{onRewardGranted:()=>{f(e=>{let t=e.slice(0,29);return t.unshift(n.id),t}),t(!0)},onAdClosed:k},w),e&&(0,s.jsxs)(a.so,{justify:"space-between",mt:"sm",children:[(0,s.jsx)(v,{color:"secondary.default",align:"flex-start",value:null!=x?x:A,children:(0,s.jsx)(y.Rm,{team:i,short:!0})}),(0,s.jsx)(v,{color:"neutral.default",align:"center",value:null!=C?C:A,children:(0,s.jsx)(j.A,{id:"draw"})}),(0,s.jsx)(v,{color:"primary.default",align:"flex-end",value:null!=m?m:A,children:(0,s.jsx)(y.Rm,{team:l,short:!0})})]}),(0,s.jsxs)(a.so,{gap:"1px",mt:"xs",children:[(0,s.jsx)(a.az,{bg:e?"secondary.default":"secondary.highlight",h:"6px",minW:"5%",flex:"".concat(null!=x?x:1," 0 5px")}),(0,s.jsx)(a.az,{bg:e?"neutral.default":"neutral.highlight",h:"6px",minW:"5%",flex:"".concat(null!=C?C:1," 0 5px")}),(0,s.jsx)(a.az,{bg:e?"primary.default":"primary.highlight",h:"6px",minW:"5%",flex:"".concat(null!=m?m:1," 0 5px")})]})]})})}var z=n(7263),R=n(87763),Y=n(3856),M=n(11682);let D=d()(()=>n.e(2396).then(n.bind(n,12396)),{loadableGenerated:{webpack:()=>[12396]}}),H=d()(()=>n.e(6739).then(n.bind(n,16739)),{loadableGenerated:{webpack:()=>[16739]}});function W(e){var t,n;let{event:o,isInWidget:d}=e,{leftTeam:j,rightTeam:g}=(0,c.useContext)(h.y$),f=o.tournament.category.sport.slug,v=null==(t=o.tournament.uniqueTournament)?void 0:t.id,y=null==(n=o.season)?void 0:n.id,b=f===r.QCR.Basketball,w=v&&y&&b,{isDesktop:S}=(0,i.$c)(),{data:k,error:C}=(0,u.Ay)(r.bnp.statistics(o.id),{refreshInterval:15e3}),{data:A,error:I}=(0,u.Ay)(w?r.V3t.seasonShotAreas(v,y,"event","overall"):null),{data:L}=(0,u.Ay)([r.bnp.winProbability(o.id),"HEAD"],(0,p.rf)(o,{fetcher:z.n}));if(C)return L?(0,s.jsx)(x.Zp,{children:(0,s.jsx)(a.az,{p:"sm",children:(0,s.jsx)(_,{})})}):null;if(!k||!A&&!I&&w)return o.status.type===r.XUj.NotStarted?null:(0,s.jsx)(Y.O,{});let E=!S||d;return(0,s.jsxs)(x.HH,{isCard:!E,children:[!E&&(0,s.jsx)(x.Zp.Header,{titleId:"statistics"}),(0,s.jsxs)(a.az,{children:[L&&(0,s.jsx)(_,{}),(0,s.jsxs)(a.tU,{variant:"secondary",children:[(0,s.jsx)(a.az,{w:["100%","auto"],pt:"sm",px:"sm",pb:E?0:"sm",mx:"auto",d:k.statistics.length>1?"table":"none",textAlign:"center",children:(0,s.jsx)(x.HH,{isCard:!!E,children:(0,s.jsx)(l.so,{p:E?"sm":void 0,gap:"sm",children:k.statistics.map((e,t)=>(0,s.jsx)(a.tU.Tab,{style:{margin:0},tabKey:t+1,children:(0,s.jsx)("bdi",{children:(0,s.jsx)(R.fP,{id:e.period})})},e.period+"-tab"))})})}),k.statistics.map((e,t)=>(0,s.jsx)(a.tU.Panel,{tabKey:t+1,children:(0,s.jsx)(M.W,{period:e,sportSlug:f,event:o})},e.period))]}),b&&v&&y&&(0,s.jsx)(a.az,{px:["sm",0],pb:["sm",0],children:(0,s.jsx)(x.HH,{isCard:!S,children:(0,s.jsx)(D,{eventId:o.id,seasonId:y,uniqueTournamentId:v,leftTeamId:j.id,rightTeamId:g.id})})}),(0,s.jsx)(m.t,{tag:"ice-hockey-shotmap",children:f===r.QCR.IceHockey&&o.hasEventPlayerStatistics?(0,s.jsx)(a.az,{px:"sm",pb:"sm",children:(0,s.jsx)(H,{})}):null})]})]})}},5108:(e,t,n)=>{n.d(t,{W:()=>l});var s=n(6029),r=n(41249),i=n(65789);let l=()=>(0,s.jsx)(i.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(r.az,{h:136})})},5348:(e,t,n)=>{n.d(t,{N:()=>u});var s=n(6029),r=n(21377),i=n(44194),l=n(76356),a=n(55729),o=n(90248),d=n(65789),c=n(54409);let u=e=>{let{event:t}=e,[n,u]=(0,a.useState)(!1),x=t.status.type===r.XUj.InProgress||t.status.type===r.XUj.Finished,h=void 0!==t.homeScore.display||void 0!==t.homeScore.current,m=void 0!==t.awayScore.display||void 0!==t.awayScore.current;return t.crowdsourcingDataDisplayEnabled&&x&&h&&m?(0,s.jsx)(d.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(l.so,{onClick:()=>u(e=>!e),py:"sm",px:"lg",align:"center",cursor:"pointer",children:[(0,s.jsx)(c.Mv5,{fill:"sofaSingles.crowdsourcingLive",w:24,h:24,mr:"lg"}),(0,s.jsx)(i.EY,{textStyle:"body.small",children:(0,s.jsx)(o.A,{id:"crowdsourcing_unofficial_result"})}),(0,s.jsx)(i.aF,{isOpen:n,w:"[312px]",children:(0,s.jsxs)(l.so,{direction:"column",align:"center",p:"lg",children:[(0,s.jsx)(l.az,{br:"50%",p:"md",bg:"status.crowdsourcingLiveHighlight",children:(0,s.jsx)(c.Mv5,{fill:"status.crowdsourcingLive",w:32,h:32})}),(0,s.jsx)(i.H3,{w:"100%",textStyle:"display.large",mt:"lg",mb:"sm",textAlign:"left",children:(0,s.jsx)(o.A,{id:"crowdsourcing_displaying_result_title"})}),(0,s.jsx)(i.EY,{textStyle:"body.mediumParagraph",mt:"sm",children:(0,s.jsx)(o.A,{id:"crowdsourcing_displaying_result_info_text"})}),(0,s.jsx)(l.so,{mt:"xl",alignSelf:"flex-end",justify:"flex-end",children:(0,s.jsx)(i.$n,{variant:"clear",onClick:()=>u(!1),children:(0,s.jsx)(o.A,{id:"close_window_button"})})})]})})]})}):null}},8718:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(6029),r=n(32523),i=n(41249),l=n(71024),a=n.n(l),o=n(35410);let d=a()(()=>n.e(6686).then(n.bind(n,16686)),{loadableGenerated:{webpack:()=>[16686]},ssr:!1,loading:()=>(0,s.jsx)(r.E,{uniqueKey:"mobile-wagon-wheel-container-cl",height:o.mp})});function c(e){let{tabKey:t,isInWidget:n}=e;return(0,s.jsx)(i.tU.Panel,{tabKey:t,children:(0,s.jsx)(i.az,{bg:["surface.s0",void 0],p:["sm",n?"sm":0],children:(0,s.jsx)(d,{isInWidget:n})})})}},9088:(e,t,n)=>{n.d(t,{I:()=>T});var s=n(6029),r=n(21377),i=n(44194),l=n(76356),a=n(55729),o=n(90248),d=n(65789),c=n(52951),u=n(62827),x=n(4967),h=n(947),m=n(80734),p=n(70591),j=n(94604),g=n(7309),f=n(84942),v=n(71046);function y(e){let{event:t}=e,n=(0,h.A)(),{homeTeam:r,awayTeam:l,tournament:a,startTimestamp:d,venue:c}=t,u=(0,f.s)(r,n.locale),m=(0,f.s)(l,n.locale),j=a.category.sport,g=n.formatDate((0,x.pp)(d,!0),{...x.or.dateWithShortMonth}),y=n.formatTime((0,x.pp)(d,!0));return(0,s.jsxs)(s.Fragment,{children:[!!c&&(0,s.jsx)(i.EY,{py:"sm",textStyle:"body.medium",color:"neutrals.nLv1",display:"block",children:(0,s.jsx)(o.A,{id:"event.about.schema",values:{homeTeamName:u,awayTeamName:m,startDate:g,startTime:y,...(0,v.Ee)(c),title:function(){for(var e=arguments.length,t=Array(e),n=0;n(0,s.jsx)("a",{href:"https://www.sofascore.com",children:e}),sport:L.slug}})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.EY,{py:"sm",fontStyle:"body.mediumParagraph",color:"neutrals.nLv1",display:"block",children:(0,s.jsx)(o.A,{id:"event.about3",values:{homeTeamName:C,awayTeamName:A,streamSponsor:l,sportName:L.name,sportLink:(0,s.jsx)(p.di,{translatedParams:{sport:L.slug},children:(0,s.jsx)(o.A,{id:"team.about.sportLivescore",values:{sport:L.name}})})}})}),(0,s.jsx)(y,{event:t})]})]})}var A=n(27289);function I(e){let{event:t}=e,n=(0,h.A)(),{homeTeam:r,awayTeam:l,tournament:d,startTimestamp:u,venue:f}=t,b=(0,s.jsx)(j.Rm,{team:r}),w=(0,s.jsx)(j.Rm,{team:l}),S=!!f,k=n.formatDate((0,x.pp)(u,!0),{...x.or.dateWithShortMonth}),C=n.formatTime((0,x.pp)(u,!0)),I=(0,v.Ee)(f),{eventMeta:L}=(0,a.useContext)(c.xV),E=(0,g.w)(d);return(0,s.jsxs)(m.n,{children:[(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.EY,{py:"sm",textStyle:"body.mediumParagraph",color:"neutrals.nLv1",display:"block",children:(0,s.jsx)(o.A,{id:"event.about.new",values:{homeTeamName:b,awayTeamName:w,startDate:k,startTime:C,tournamentName:E,hasVenue:S,...I,tlink:function(){for(var e=arguments.length,t=Array(e),n=0;ne.event.id===t.event.id&&typeof e.event.venue==typeof t.event.venue)},10951:(e,t,n)=>{n.d(t,{y:()=>f});var s=n(6029),r=n(21377),i=n(41249),l=n(55729),a=n(65789),o=n(62859),d=n(34765),c=n(33144);let u=e=>"scored"===e?"success.default":"missed"===e?"error.default":"onSurface.nLv4",x=e=>{let{status:t,...n}=e;return(0,s.jsx)(i.az,{w:"sm",h:"sm",bg:u(t),br:"xs",my:"xs",...n})};function h(e){let{team:t,incidents:n,score:r,isLive:l,isTied:a,isWinner:o,isShootingNext:d,basePenaltyCount:h}=e,m=[...Array(h).keys()],p=Math.max(0,n.length-h),j=[];for(let e=0;e{var t,n;return(null==(t=e.player)?void 0:t.shortName)||(null==(n=e.player)?void 0:n.name)||e.playerName}),f=n.map(e=>{var t,n;return{color:u(e.incidentClass),name:(null==(t=e.player)?void 0:t.shortName)||(null==(n=e.player)?void 0:n.name)||e.playerName||"-"}});return(0,s.jsxs)(i.az,{w:"100%",children:[(0,s.jsxs)(i.so,{align:"flex-start",h:"24px",bg:d?"secondary.highlight":"surface.s2",br:"lg",children:[(0,s.jsx)(i.az,{mr:"lg",children:(0,s.jsx)(c.p,{id:t.id,size:24})}),(0,s.jsxs)(i.so,{my:"xs",gap:"lg",children:[(0,s.jsx)(i.so,{gap:"sm",children:m.map(e=>{var r;return(0,s.jsx)(x,{status:null==(r=n[e])?void 0:r.incidentClass},"".concat(t.id,"-").concat(e))})}),!!j.length&&(0,s.jsxs)(i.so,{wrap:"wrap",children:[j.map(e=>{var r;return(0,s.jsx)(x,{status:null==(r=n[e])?void 0:r.incidentClass,ml:"sm"},"".concat(t.id,"-").concat(e+h))}),a&&(0,s.jsx)(x,{status:"taker"})]})]}),(0,s.jsx)(i.az,{grow:1,my:"xs",ml:"sm",mr:"md",children:(0,s.jsx)(i.EY,{font:"display.small",color:l?"sofaSingles.live":o?"onSurface.nLv1":"onSurface.nLv3",minW:20,as:"div",align:"right",children:r})})]}),g&&(0,s.jsx)(i.so,{ml:"48px",mt:"xxs",wrap:"wrap",children:f.map((e,n)=>(0,s.jsx)(i.EY,{lineHeight:"16px",color:e.color,font:"body.small",as:"div",mr:"4px",children:"".concat(e.name).concat(n===f.length-1?"":",")},"".concat(t.id,"-").concat(e.name)))})]})}var m=n(69385);let p=(e,t)=>e.isHome&&!t||!e.isHome&&t,j={[r.QCR.Football]:5,[r.QCR.Minifootball]:3,[r.QCR.Rugby]:5},g=e=>{let{incidents:t,isLoading:n,isError:d}=e,{event:c,leftTeam:u,rightTeam:x,leftScore:g,rightScore:f}=(0,l.useContext)(o.y$),v=(0,m.A)(c),{leftIncidents:y,rightIncidents:b,...w}=(0,l.useMemo)(()=>{let e=[],n=[],s=0,r=0,i=!1;return t.forEach(t=>{"penaltyShootout"===t.incidentType&&("taker"!==t.incidentClass?p(t,v)?(e.unshift(t),"scored"===t.incidentClass&&s++):(n.unshift(t),"scored"===t.incidentClass&&r++):i=!0)}),{leftIncidents:e,rightIncidents:n,leftComputedScore:s,rightComputedScore:r,hasTaker:i}},[t]),S=c.tournament.category.sport.slug;if(!j[S]||d)return null;let k=w.leftComputedScore,C=w.rightComputedScore,A=!y.length&&!b.length&&!w.hasTaker;c.status.code===r.sum.AP&&g.penalties&&f.penalties&&(k=Math.max(k,g.penalties),C=Math.max(C,f.penalties));let I=n&&[r.sum.AP,r.sum.Penalties].includes(c.status.code);if(A&&!I)return null;let L=k===C&&y.length===b.length,E=c.status.type===r.XUj.InProgress;return(0,s.jsxs)(a.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(a.Zp.Header,{titleId:"penaltyShootout"}),(0,s.jsxs)(i.so,{direction:"column",gap:"lg",px:"md",pt:"sm",pb:"md",children:[(0,s.jsx)(h,{team:u,incidents:y,score:k,isLive:E,isTied:L,isWinner:k>C,basePenaltyCount:j[S]}),(0,s.jsx)(h,{team:x,incidents:b,score:C,isLive:E,isTied:L,isWinner:k{let{incidents:e,isError:t,isLoading:n}=(0,d.L)(),{event:r}=(0,l.useContext)(o.y$);return j[r.tournament.category.sport.slug]&&(e.length||n)?(0,s.jsx)(g,{incidents:e,isError:t,isLoading:n}):null}},11687:(e,t,n)=>{n.d(t,{s:()=>_});var s=n(6029),r=n(40237),i=n(21377),l=n(41249),a=n(55729),o=n(90248),d=n(45860),c=n(65789),u=n(23727),x=n(62859),h=n(54409),m=n(75751);let p=[i.QCR.MMA],j=(e,t,n)=>p.includes(n)?[e.homeTeamRanking,e.awayTeamRanking]:[t.homeTeam.position,t.awayTeam.position],g=(e,t)=>e===i.QCR.MMA?{titleId:"pre_match_rankings",teamLabelId:"fighter",recordLabelId:"record"}:{titleId:"form.prematchStandings",teamLabelId:"team",recordLabelId:t.label};var f=n(54053),v=n(79926),y=n(75327);let b=e=>e.tournament.uniqueTournament&&e.weightClass&&e.gender?i.AZO.divisionRankings(e.tournament.uniqueTournament.id,e.weightClass,e.gender.toLowerCase()):null,w=()=>{let{event:e}=(0,a.useContext)(x.y$),{data:t}=(0,d.Ay)(b(e));return t?(0,s.jsxs)(l.az,{maxH:[void 0,"600px"],children:[(0,s.jsx)(l.EY,{font:"display.medium",p:"md",block:!0,children:(0,s.jsx)(y.L,{weightClass:e.weightClass})}),t.rankingRows.map(t=>(0,s.jsx)(v.A,{ranking:t,gender:e.gender},t.id))]}):null},S=()=>{let[e,t]=(0,a.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.EY,{font:"display.small",color:"primary.default",align:"center",cursor:"pointer",onClick:()=>t(!0),children:[(0,s.jsx)(o.A,{id:"mma_division_rankings"}),(0,s.jsx)(h.zQC,{icon:"chevron-right",fill:"primary.default",width:16,height:16})]}),(0,s.jsx)(f.A,{isOpen:e,setIsOpen:t,children:(0,s.jsx)(w,{})})]})};var k=n(33144);let C=e=>{let{record:t,placement:n,reversed:r}=e;return(0,s.jsxs)(l.so,{direction:"column",rowGap:"xs",children:[0===n?(0,s.jsxs)(l.so,{columnGap:"xs",children:[(0,s.jsx)(h.Lam,{w:16,h:16}),(0,s.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv1",lineHeight:"16px",children:(0,s.jsx)(o.A,{id:"fighter_ranking_mma"})})]}):(0,s.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv1",lineHeight:"16px",align:r?"right":"left",children:void 0!==n?"#".concat(n):(0,s.jsx)(o.A,{id:"mma_fighter_not_ranked"})}),(0,s.jsxs)(l.so,{columnGap:"sm",children:[(0,s.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv3",children:"W-L-D"}),(0,s.jsx)(l.cG,{vertical:!0}),(0,s.jsx)(l.EY,{font:"assistive.default",children:t})]})]})};var A=n(50574);let I=e=>{let{winTypeForm:t}=e,n=function(e){let t=e.slice(-3);for(;t.length<3;)t.push(void 0);return t}(t);return(0,s.jsx)(l.so,{columnGap:"1px",br:"xs",h:24,overflow:"hidden",children:n.map((e,t)=>void 0===e?(0,s.jsx)(l.az,{flex:"1 1 0",bg:"onSurface.nLv4"},t):(0,s.jsx)(l.so,{flex:"1 1 0",align:"center",justify:"center",bg:"".concat(A.nf[e.outcome],".default"),children:(0,s.jsx)(l.EY,{font:"display.small",color:"surface.s1",lineHeight:1,children:e.winType||e.outcome})},t))})},L=e=>{let{fighter:t,placement:n,form:r,reversed:i}=e;return(0,s.jsxs)(l.so,{direction:"column",rowGap:"lg",flex:"1 1 0",children:[(0,s.jsxs)(l.so,{columnGap:"md",direction:i?"row-reverse":"row",children:[(0,s.jsx)(k.p,{hasFlag:!0,size:32,id:t.id,sport:t.sport,gender:t.gender}),(0,s.jsx)(C,{record:r.value,placement:n,reversed:i})]}),(0,s.jsx)(I,{winTypeForm:r.winTypeForm||[]})]})},E=e=>{let{form:t}=e,{event:n,leftTeam:r,rightTeam:d}=(0,a.useContext)(x.y$),[c,u]=j(n,t,i.QCR.MMA);return(0,s.jsxs)(l.so,{direction:"column",rowGap:"xl",p:"md",children:[(0,s.jsx)(l.EY,{font:"display.medium",block:!0,align:"center",children:(0,s.jsx)(o.A,{id:"mma_last_3_fights"})}),(0,s.jsxs)(l.so,{columnGap:["lg","sm","lg"],children:[(0,s.jsx)(L,{fighter:r,placement:c,form:t.homeTeam}),(0,s.jsx)(l.cG,{vertical:!0}),(0,s.jsx)(L,{fighter:d,placement:u,form:t.awayTeam,reversed:!0})]}),(0,s.jsx)(S,{})]})},P=e=>{var t,n;let{form:o,team:d,placement:c,showPlacement:u}=e,m=(0,a.useContext)(x.Ws)===i.QCR.MMA;return(0,s.jsxs)(l.so,{align:"center",h:"48",children:[u&&(0,s.jsx)(l.EY,{font:"table.medium",color:"onSurface.nLv1",w:"36",letterSpacing:"-0.5px",align:"center",children:0===c&&m?(0,s.jsx)(h.Lam,{}):c||"-"}),(0,s.jsx)(l.so,{justify:"center",w:"56",children:(0,s.jsx)(l.EY,{color:"onSurface.nLv1",font:"table.medium",children:m?(0,s.jsx)(r.p,{hasFlag:!0,size:32,id:d.id,countryName:null==(t=d.country)?void 0:t.name,alpha2:null==(n=d.country)?void 0:n.alpha2,sport:d.sport,gender:d.gender,right:!0}):(0,s.jsx)(r.p,{size:32,id:d.id})})}),(0,s.jsx)(l.az,{flex:"1 0 auto",children:(0,s.jsx)(A.o1,{form:null==o?void 0:o.form})}),(0,s.jsxs)(l.so,{minW:"93",align:"center",justify:o.avgRating?"space-between":"flex-end",px:"md",children:[o.avgRating&&(0,s.jsx)(r.G,{rating:o.avgRating,format:"sideBox"}),(0,s.jsx)(l.EY,{font:"table.medium",align:"right",minW:"16",color:"onSurface.nLv1",ml:"md",letterSpacing:"-0.5px",children:o.value})]})]})},T=e=>{let{form:t,labels:n}=e,r=(0,a.useContext)(x.Ws),{event:i}=(0,a.useContext)(x.y$),[d,c]=j(i,t,r),u=void 0===c||Number(d)=0||(null!=c?c:-1)>=0;return(0,s.jsxs)(l.az,{children:[(0,s.jsxs)(l.so,{align:"center",pt:"sm",children:[h&&(0,s.jsx)(l.EY,{font:"table.medium",color:"onSurface.nLv3",w:"36",letterSpacing:"-0.5px",align:"center",children:"#"}),(0,s.jsx)(l.EY,{font:"table.medium",color:"onSurface.nLv3",w:"56",letterSpacing:"-0.5px",align:"center",children:(0,s.jsx)(o.A,{id:n.teamLabelId})}),(0,s.jsx)(l.az,{flex:"1 0 auto",children:(0,s.jsx)(l.EY,{as:"div",font:"table.medium",color:"onSurface.nLv3",maxW:[156,188],pl:"sm",letterSpacing:"-0.5px",align:"right",children:(0,s.jsx)(o.A,{id:"latest"})})}),(0,s.jsx)(l.EY,{as:"div",font:"table.medium",color:"onSurface.nLv3",w:"110px",pr:"md",letterSpacing:"-0.5px",align:"right",children:(0,s.jsx)(o.A,{id:n.recordLabelId})})]}),(0,s.jsx)(P,{form:u?t.homeTeam:t.awayTeam,team:u?i.homeTeam:i.awayTeam,placement:u?d:c,showPlacement:h}),(0,s.jsx)(P,{form:u?t.awayTeam:t.homeTeam,team:u?i.awayTeam:i.homeTeam,placement:u?c:d,showPlacement:h})]})},_=function(e){let{eventId:t,onClick:n,isInWidget:r}=e,{data:o,isLoading:h}=(0,d.Ay)(i.bnp.prematchStandings(t)),p=(0,a.useContext)(x.Ws),j=p!==i.QCR.MMA&&!!n;if(h)return(0,s.jsx)(c.Zp,{isInverseDesktop:r,children:(0,s.jsx)(l.az,{h:j?178:170})});if(!o)return null;let f=g(p,o);return(0,s.jsx)(m.t,{tag:"PrematchStandings",children:(0,s.jsxs)(c.Zp,{isInverseDesktop:r,children:[!j&&(0,s.jsx)(c.Zp.Header,{titleId:f.titleId}),(0,s.jsx)(l.az,{px:"sm",pt:j?"sm":void 0,children:p===i.QCR.MMA?(0,s.jsx)(E,{form:o}):(0,s.jsx)(T,{form:o,labels:f})}),(0,s.jsx)(c.Zp.Footer,{ctaParams:j?{messageId:f.titleId,onClick:n,icon:u.X.Right}:void 0,defaultHeight:"sm"})]})})}},14395:(e,t,n)=>{n.d(t,{n:()=>s.A});var s=n(35621)},15328:(e,t,n)=>{n.d(t,{A:()=>x});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(65789),o=n(51372),d=n(59754),c=n(28132);let u=l()(()=>Promise.all([n.e(6591),n.e(4632),n.e(6618),n.e(3231),n.e(7717),n.e(9814)]).then(n.bind(n,29814)),{loadableGenerated:{webpack:()=>[29814]},ssr:!1});function x(e){let{event:t,leftTeamId:n,rightTeamId:i}=e,l=(0,d.Z)(t,"standings");return(0,s.jsxs)(r.tU.Panel,{tabKey:c.H.Standings,children:[l&&(0,s.jsx)(o.O,{entityId:t.id,branding:l,bannerText:l.standingsText,location:"event_standings"}),!!t.season&&(0,s.jsx)(a.BU,{children:(0,s.jsx)(u,{tournamentId:t.tournament.id,seasonId:t.season.id,homeTeamId:n,awayTeamId:i,isNarrowLayout:!0})})]})}},17808:(e,t,n)=>{n.d(t,{A:()=>h});var s=n(6029),r=n(4967),i=n(41249),l=n(90248),a=n(65789),o=n(65078),d=n(3518),c=n(11072);let u=e=>{let{id:t,left:n,right:r,isLength:a}=e;return void 0===n&&void 0===r?null:(0,s.jsxs)(i.so,{justify:"space-between",align:"center",h:"48",px:"lg",children:[(0,s.jsx)(i.so,{grow:1,basis:0,children:(0,s.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",children:n?a?(0,s.jsx)(d.Z,{value:+n,fromUnit:"m"}):n:"-"})}),(0,s.jsx)(i.so,{grow:1,basis:0,justify:"center",children:(0,s.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv3",align:"center",children:(0,s.jsx)(l.A,{id:t})})}),(0,s.jsx)(i.so,{grow:1,basis:0,justify:"right",children:(0,s.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",align:"right",children:r?a?(0,s.jsx)(d.Z,{value:+r,fromUnit:"m"}):r:"-"})})]})},x=e=>{let{left:t,right:n}=e,r=(0,c.Q6)(t),i=(0,c.Q6)(n);return void 0===t&&void 0===n?null:(0,s.jsx)(u,{id:"reach",left:r,right:i})};function h(e){var t,n,i,l,d,c,h,m,p,j;let{homeTeam:g,awayTeam:f,isInWidget:v}=e,[y,b]=(0,o.jr)({homeTeam:g,awayTeam:f},"homeTeam","awayTeam"),w=(null==(t=y.playerTeamInfo)?void 0:t.birthDateTimestamp)&&(0,r.KW)(null==(n=y.playerTeamInfo)?void 0:n.birthDateTimestamp),S=(null==(i=b.playerTeamInfo)?void 0:i.birthDateTimestamp)&&(0,r.KW)(null==(l=b.playerTeamInfo)?void 0:l.birthDateTimestamp);return(0,s.jsxs)(a.Zp,{isInverseDesktop:v,children:[(0,s.jsx)(a.Zp.Header,{titleId:"fighters_bio"}),(0,s.jsx)(u,{id:"basic.fullName",left:y.name,right:b.name}),(0,s.jsx)(u,{id:"age",left:w,right:S}),(0,s.jsx)(u,{id:"home_country",left:null==(d=y.country)?void 0:d.name,right:null==(c=b.country)?void 0:c.name}),(0,s.jsx)(u,{id:"player_height",left:null==(h=y.playerTeamInfo)?void 0:h.height,right:null==(m=b.playerTeamInfo)?void 0:m.height,isLength:!0}),(0,s.jsx)(x,{left:null==(p=y.playerTeamInfo)?void 0:p.reach,right:null==(j=b.playerTeamInfo)?void 0:j.reach})]})}},19648:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(6029),r=n(76356),i=n(65789);function l(e){let{isInverseDesktop:t}=e;return(0,s.jsxs)(i.Zp,{isInverseDesktop:t,children:[(0,s.jsx)(i.Zp.Header,{titleId:"featured_players"}),(0,s.jsx)(r.az,{h:"[440px]"})]})}},23250:(e,t,n)=>{n.d(t,{C:()=>_});var s=n(6029),r=n(21377),i=n(71024),l=n.n(i),a=n(55729),o=n(62859),d=n(86679),c=n(83736),u=n(5108),x=n(82070),h=n(75126),m=n(21501),p=n(41249),j=n(65789);function g(e){let{isLive:t,times:n}=e;return(0,s.jsx)("tfoot",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{}),n.map((e,r)=>(0,s.jsx)("td",{children:(0,s.jsx)(p.EY,{font:"table.medium",color:t&&r===n.length-1?"sofaSingles.live":"onSurface.nLv3",py:"sm",align:"center",as:"div",textTransform:"lowercase",whiteSpace:"nowrap",children:e})},"setTime-".concat(r)))]})})}var f=n(90248),v=n(87763);function y(e){let{periods:t,isTennis:n,isQSport:r}=e;return(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[n&&(0,s.jsx)("td",{className:"team-name"}),t.map((e,t)=>{let n=e.key.startsWith("period");return(0,s.jsx)("th",{children:(0,s.jsx)(p.EY,{font:"table.medium",color:"onSurface.nLv3",py:"sm",align:"center",as:"div",textTransform:n&&!r?"lowercase":"capitalize",children:n?(0,s.jsx)(f.A,{id:r?"qN":"ordinalPeriod.short",values:{n:t+1}}):(0,s.jsx)(v.fP,{id:e.value})})},"thead-".concat(e.value))})]})})}let b=()=>{let{event:e}=(0,a.useContext)(o.y$);return r.HwS.indexOf(e.tournament.category.sport.slug)>-1&&e.status.type!==r.XUj.NotStarted?(0,s.jsx)(j.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(p.az,{h:109})}):null};function w(e){let{teamName:t,scores:n}=e;return(0,s.jsxs)("tr",{children:[t&&(0,s.jsx)("td",{children:(0,s.jsx)(p.EY,{as:"bdi",h:"32px",lineHeight:"32px",font:"table.medium",color:"onSurface.nLv1",ellipsis:!0,children:t})}),n.map((e,n)=>(0,s.jsx)("td",{children:(0,s.jsx)(p.so,{h:"32px",align:"flex-end",justify:"center",pb:"7px",children:(0,s.jsxs)(p.EY,{font:"table.medium",color:e.color,children:[e.value,e.super]})})},"".concat(t,"-score").concat(n)))]})}let S=n(41735).default.table.withConfig({componentId:"sc-8538d7df-0"})(["table-layout:fixed;width:100%;border-collapse:collapse;border-spacing:0;thead{border-bottom:1px solid ",";}tfoot{border-top:1px solid ",";}.team-name{width:33%;}"],e=>e.theme.colors.onSurface.nLv4,e=>e.theme.colors.onSurface.nLv4);var k=n(71046);let C=(e,t,n,s)=>{let r=s?t:n,i=s?n:t;return e?"sofaSingles.live":r>i||r===i&&r>0?"onSurface.nLv1":"onSurface.nLv3"},A=()=>{let e,t=(0,m.hX)(),{event:n,leftScore:i,rightScore:l,leftTeam:d,rightTeam:c}=(0,a.useContext)(o.y$),u=n.status.type===r.XUj.InProgress,x=n.tournament.category.sport.slug,{periods:h,time:f}=n,v=(0,k.jY)(x),A=x===r.QCR.Tennis;if((0,k.uk)(6e4,u),t)return(0,s.jsx)(b,{});if(!h)return null;let I=[],L=[],E=[],P=[],T=[],_=[],z=["overtime"],R=0;for(let t in h)if(0>["current","point"].indexOf(t)){var Y,M,D,H;if(R+=1,t.startsWith("period")&&(null==n?void 0:n.defaultPeriodCount)&&R>(null==n?void 0:n.defaultPeriodCount)&&void 0===i[t]&&void 0===l[t]||"penalties"===t&&void 0===i.penalties)continue;if(t.startsWith("inning")||t.startsWith("extra")){e=t.startsWith("extra")?"inning10":t;let n=t.startsWith("inning")?String(R):"EI",s=i.innings&&"object"==typeof i.innings[e],r=l.innings&&"object"==typeof l.innings[e];if((s||r)&&I.push({key:e,value:n}),s){let t=null==(Y=i.innings[e])?void 0:Y.run;void 0!==t&&L.push(t>=0?"".concat(t):"X")}if(r){let t=null==(M=l.innings[e])?void 0:M.run;void 0!==t&&E.push(t>=0?"".concat(t):"X")}}else{let e="".concat(t,"TieBreak"),n=i[e],r=l[e],a="number"==typeof n?(0,s.jsx)("sup",{"data-change-key":"leftScore.".concat(e),children:n}):null,o="number"==typeof n?(0,s.jsx)("sup",{"data-change-key":"rightScore.".concat(e),children:r}):null;(-1===z.indexOf(t)||void 0!==i[t]&&void 0!==l[t])&&(I.push({key:t,value:h[t]}),L.push(null!=(D=i[t])?D:""),E.push(null!=(H=l[t])?H:""),T.push(a),_.push(o))}f&&"current"!==t&&void 0!==f[t]?P.push((0,k.jQ)(f[t])):P.push("")}let W=i.inningsBaseball,O=l.inningsBaseball,N=W&&O;if(N){I.push({key:"blank",value:" "}),L.push(""),E.push("");let e="hits";(void 0!==W[e]||void 0!==O[e])&&(I.push({key:e,value:"H"}),L.push(void 0!==W[e]?"".concat(W[e]):"-"),E.push(void 0!==O[e]?"".concat(O[e]):"-")),(void 0!==W[e="errors"]||void 0!==O[e])&&(I.push({key:e,value:"E"}),L.push(void 0!==W[e]?"".concat(W[e]):"-"),E.push(void 0!==O[e]?"".concat(O[e]):"-"))}if(0===L.length||0===E.length)return null;let F=A&&c.shortName?d.shortName:void 0,G=F?c.shortName:void 0,U=L.length-1;if(N)U-=3;else if(u&&n.currentPeriodStartTimestamp){let e=Math.round(Date.now()-1e3*n.currentPeriodStartTimestamp)/1e3,t=(0,k.jQ)(e);P[U]=t}let Q=L.map((e,t)=>({value:e,super:T[t],color:t>U?"onSurface.nLv1":C(u&&t===U,parseInt(e,10),parseInt(E[t],10),!0)})),B=E.map((e,t)=>({value:e,super:_[t],color:t>U?"onSurface.nLv1":C(u&&t===U,parseInt(L[t],10),parseInt(e,10),!1)})),Z=Q.map((e,t)=>P[t]||"");return(0,s.jsx)(j.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(p.az,{px:"sm",py:"3px",children:(0,s.jsxs)(S,{children:[(0,s.jsx)(y,{periods:I,isQSport:v,isTennis:A}),(0,s.jsxs)("tbody",{children:[(0,s.jsx)(w,{teamName:F,scores:Q}),(0,s.jsx)(w,{teamName:G,scores:B})]}),A&&Z.some(Boolean)&&(0,s.jsx)(g,{isLive:u,times:Z})]})})})};var I=n(14395);let L=l()(()=>Promise.all([n.e(6591),n.e(4632),n.e(3170),n.e(7462),n.e(663),n.e(9727)]).then(n.bind(n,59727)),{loadableGenerated:{webpack:()=>[59727]},ssr:!1,loading:()=>(0,s.jsx)(c.u,{})}),E=l()(()=>Promise.all([n.e(6591),n.e(4632),n.e(3170),n.e(7462),n.e(7663)]).then(n.bind(n,66986)),{loadableGenerated:{webpack:()=>[66986]},ssr:!1,loading:()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.W,{}),(0,s.jsx)(b,{})]})}),P=l()(()=>Promise.all([n.e(6591),n.e(4632),n.e(3170),n.e(7462),n.e(7182)]).then(n.bind(n,59923)),{loadableGenerated:{webpack:()=>[59923]},ssr:!1,loading:()=>(0,s.jsx)(x.U,{})}),T=l()(()=>Promise.all([n.e(6591),n.e(4632),n.e(3170),n.e(7462),n.e(7663),n.e(5496)]).then(n.bind(n,25496)),{loadableGenerated:{webpack:()=>[25496]},ssr:!1,loading:()=>(0,s.jsx)(h.n,{withScoreGraph:!0})}),_=()=>{let{event:e}=(0,a.useContext)(o.y$),t=e.tournament.category.sport,n=e.crowdsourcingDataDisplayEnabled,i=e.status.type===r.XUj.NotStarted,l=[r.XUj.Postponed,r.XUj.Canceled].includes(e.status.type),c=t.slug===r.QCR.Football&&!l,u=r.HwS.indexOf(t.slug)>-1&&!i,x=(0,k.pX)(t.slug)&&!i,h=t.slug===r.QCR.Tennis&&!i,{hasWinProbabilityGraph:m}=(0,d.A)({hasWinProbabilityGraph:{route:r.bnp.graphDataWinProbability(e.id)}}),p=t.slug===r.QCR.AmericanFootball&&!i&&m;return n?null:h?(0,s.jsx)(P,{}):c?(0,s.jsx)(L,{}):x&&p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I.n,{event:e}),u&&(0,s.jsx)(A,{}),(0,s.jsx)(T,{})]}):x?(0,s.jsx)(E,{children:u&&(0,s.jsx)(A,{})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I.n,{event:e}),u&&(0,s.jsx)(A,{})]})}},25049:(e,t,n)=>{n.d(t,{z:()=>Y});var s=n(6029),r=n(21377),i=n(44194),l=n(41249),a=n(78383),o=n.n(a),d=n(55729),c=n(494),u=n(62859),x=n(76410),h=n(10794),m=n(33144),p=n(90248),j=n(90510),g=n(54409),f=n(41735);let v=f.default.div.withConfig({componentId:"FancyEventBackground"}).withConfig({componentId:"sc-18173878-0"})(["position:absolute;width:100%;height:100%;"," filter:blur(36px);overflow:hidden;border-radius:",";::after{content:'';display:block;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:",";background-color:",";opacity:0.2;}"],e=>e.tournamentImage?"background-image: url(".concat(e.tournamentImage,");\n background-size: 100% 100%;\n background-position: center;\n background-repeat: no-repeat;\n "):"background-image: url(".concat(e.leftTeamImage,"), url(").concat(e.rightTeamImage,");\n background-size: 50% 100%, 50% 100%;\n background-position: center left, center right;\n background-repeat: no-repeat, no-repeat;\n "),e=>e.theme.spacing.md,e=>e.theme.spacing.md,e=>e.theme.colors.overlay.darken1),y=(0,f.default)(l.az).withConfig({componentId:"FancyEventBackgroundContainer"}).withConfig({componentId:"sc-18173878-1"})(["position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;border-radius:",";"],e=>e.theme.spacing.lg);function b(e){let{leftTeamImage:t,rightTeamImage:n,tournamentImage:r}=e;return t&&n||r?(0,s.jsx)(y,{children:(0,s.jsx)(v,{leftTeamImage:t,rightTeamImage:n,tournamentImage:r})}):null}function w(e){let{leftTeamId:t,rightTeamId:n,onClick:i,isClickable:a,isLoading:o,startTimestamp:d}=e,c=o?"watch_livestream_starting_soon":a?"watch_livestream":"watch_livestream_prematch";return(0,s.jsxs)(l.az,{cursor:a?"pointer":"auto",position:"relative",pt:"56.25%",borderRadius:16,bg:"surface.s2",onClick:i,children:[(0,s.jsx)(b,{leftTeamImage:r.cWY.image(t),rightTeamImage:r.cWY.image(n)}),(0,s.jsx)(l.az,{bg:"overlay.darken3",br:"lg",position:"absolute",top:"0",left:"0",w:"100%",h:"100%"}),(0,s.jsx)(l.so,{position:"absolute",top:"0",left:"0",w:"100%",h:"calc(100% - 40px)",justify:"center",align:"center",children:(0,s.jsxs)(l.so,{justify:"space-between",align:"center",w:"100%",children:[(0,s.jsx)(l.so,{justify:"center",flex:"1 1 50%",children:(0,s.jsx)(m.p,{size:72,id:t})}),(0,s.jsx)(l.az,{w:"48",children:a&&(0,s.jsx)(g.reY,{fill:"onColor.primary",w:"48",h:"48"})}),(0,s.jsx)(l.so,{justify:"center",flex:"1 1 50%",children:(0,s.jsx)(m.p,{size:72,id:n})})]})}),(0,s.jsxs)(l.so,{bg:"overlay.darken2",w:"100%",h:"40",align:"center",justify:a?"center":"space-between",position:"absolute",bottom:"0",left:"0",br:"0 0 lg lg",children:[(0,s.jsxs)(l.EY,{font:"display.medium",color:"onColor.primary",px:"lg",children:[(0,s.jsx)(p.A,{id:c}),"watch_livestream_prematch"===c&&":"]}),!a&&!o&&d&&(0,s.jsxs)(l.EY,{font:"assistive.default",color:"onColor.secondary",px:"lg",children:[(0,s.jsx)(j.XU,{value:d}),", ",(0,s.jsx)(j.ib,{value:d})]})]})]})}var S=n(21501);async function k(e,t,n,s){let i=3e3,l=Date.now();for(;;){if(null==s?void 0:s.aborted)throw new DOMException("Aborted","AbortError");try{return await (0,r.B2D)(e,t,n)}catch(e){if(Date.now()-l+i>3e5)throw Error("Stream url fetch timeout.");await function(e,t){return new Promise((n,s)=>{if(null==t?void 0:t.aborted)return s(new DOMException("Aborted","AbortError"));let r=setTimeout(()=>{null==t||t.removeEventListener("abort",i),n()},e),i=()=>{clearTimeout(r),s(new DOMException("Aborted","AbortError"))};null==t||t.addEventListener("abort",i)})}(i,s),i*=2}}}async function C(e,t,n){let s,{token:i}=await r.HDw.fetchToken(e);if(!i)throw Error("Stream token fetch failed.");let l={headers:{Authorization:"Bearer "+i},isApiRoute:!1,isImageRoute:!1},a="https://ott.sofascore.com/api/v3/contents/".concat(t,"/access/hls");if(!(s=n?await k(a,void 0,l,n):await (0,r.B2D)(a,void 0,l)).data.stream)throw Error("Stream url fetch failed.");return s.data.stream}async function A(e,t,s,r,i){let l=(await n.e(3771).then(n.bind(n,85511))).default;if(!e)throw Error("Video element not found.");if(l.isSupported()){let n=new l;try{n.attachMedia(e)}catch(e){console.error("Error attaching media:",e)}n.on(l.Events.MEDIA_ATTACHED,()=>{n.loadSource(t),null==i||i()}),n.on(l.Events.ERROR,(e,t)=>{null==r||r(t)}),null==s||s.addEventListener("abort",()=>{n.stopLoad()})}else throw Error("HLS streaming not supported.")}var I=n(13299),L=n(56869);class E{async initializeIMAPlayer(e,t){try{this.scriptLoaded||(await (0,I.A)("//imasdk.googleapis.com/js/sdkloader/ima3.js"),this.scriptLoaded=!0)}catch(e){throw this.scriptLoaded=!1,Error("Error fetching IMA script")}this.currentVideoElement=e,this.currentAdElement=t;let n=e.getBoundingClientRect();return this.width=n.width,this.height=n.height,this.adDisplayContainer=new google.ima.AdDisplayContainer(t,e),this.adDisplayContainer.initialize(),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1),()=>{this.destroy()}}startPlayback(e,t,n){let s=new google.ima.AdsRequest;s.adTagUrl=e,s.linearAdSlotWidth=this.width,s.linearAdSlotHeight=this.height,s.nonLinearAdSlotWidth=this.width,s.nonLinearAdSlotHeight=this.height,this._onAdError=n,this._onAdCompleted=t,this.adsLoader.requestAds(s)}resizeCurrentAd(e,t){(e!==this.width||t!==this.height)&&(this.width=e,this.height=t,this.adsManager&&this.adsManager.resize(this.width,this.height,google.ima.ViewMode.NORMAL))}destroy(){this.adsLoader&&this.adsLoader.destroy(),this.adDisplayContainer&&this.adDisplayContainer.destroy(),this.adsManager&&this.adsManager.destroy(),this._onAdCompleted&&delete this._onAdCompleted,this.currentAdElement&&(this.currentAdElement.removeEventListener("click",this.resumePrerollPlayback),this.currentAdElement.style.display="block")}constructor(){this.scriptLoaded=!1,this.width=320,this.height=180,this.onAdsManagerLoaded=e=>{if(this.currentVideoElement){this.adsManager=e.getAdsManager(this.currentVideoElement),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this.onPrerollStarted),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this.onPrerollClicked),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this.onAdPause),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPause),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAllAdsCompleted),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError);try{this.adsManager.init(this.width,this.height,google.ima.ViewMode.NORMAL),this.adsManager.start()}catch(e){}}},this.onAdError=e=>{var t,n;let s=e.getError();(0,x.Fk)({id:null==(t=s.getErrorCode)?void 0:t.call(s),position:L.p4,provider:"google",type:"preroll"}),this.adsManager&&this.adsManager.destroy(),this.currentAdElement&&(this.currentAdElement.removeEventListener("click",this.resumePrerollPlayback),this.currentAdElement.style.display="none"),null==(n=this._onAdError)||n.call(this,e)},this.onContentPause=e=>{},this.onAdPause=e=>{this.currentAdElement&&this.currentAdElement.addEventListener("click",this.resumePrerollPlayback)},this.onPrerollStarted=e=>{(0,x.Te)({position:L.p4,provider:"google"})},this.onPrerollClicked=e=>{(0,x.WT)({position:L.p4,provider:"google"})},this.onAllAdsCompleted=e=>{this.adDisplayContainer.destroy(),this._onAdCompleted&&this._onAdCompleted(),this.currentAdElement&&(this.currentAdElement.removeEventListener("click",this.resumePrerollPlayback),this.currentAdElement.style.display="none"),this.currentVideoElement&&this.currentVideoElement.play()},this.resumePrerollPlayback=()=>{this.adsManager.resume()}}}let P=new E;var T=n(73624),_=function(e){return e[e.Uninitialized=0]="Uninitialized",e[e.Loading=1]="Loading",e[e.Initialized=2]="Initialized",e[e.Failed=3]="Failed",e}(_||{});function z(e){let{streamContentId:t,leftTeamId:n,rightTeamId:r,autoplay:i}=e,a=(0,d.useRef)(null),o=(0,d.useRef)(null),[c,u]=(0,d.useState)(0),{streamUrl:x,setStreamUrl:h}=(0,T.vA)(),m=(0,T.xw)();function p(){var e,t;let n=null==(t=a.current)||null==(e=t.parentElement)?void 0:e.getBoundingClientRect(),s=320,r=180;return a.current&&n&&(s=n.width,r=n.width*(9/16),a.current.width=s,a.current.height=r,o.current&&(o.current.style.width=s+"px",o.current.style.height=r+"px")),{width:s,height:r}}if((0,S.st)(()=>{let{width:e,height:t}=p();P.resizeCurrentAd(e,t)},100),(0,d.useEffect)(()=>{let e,n;async function s(){let s;try{o.current&&a.current&&(e=await P.initializeIMAPlayer(a.current,o.current),p())}catch(e){var r;null==(r=o.current)||r.remove()}try{let e=await m();u(1),s=await C(e,t,null==n?void 0:n.signal),A(a.current,s,null==n?void 0:n.signal),u(2)}catch(e){if("AbortError"===e.name)return;u(3)}P.startPlayback(L.NR,()=>{if(h(s),i){var e;null==(e=a.current)||e.play()}},()=>{if(i){var e;null==(e=a.current)||e.play()}})}return"AbortController"in window&&(n=new AbortController),x?(u(2),A(a.current,x,null==n?void 0:n.signal,e=>{e.fatal&&403===e.networkDetails.status&&(h(void 0),s())},()=>{if(i){var e;o.current&&(o.current.style.width="0",o.current.style.height="0"),null==(e=a.current)||e.play()}})):s(),()=>{null==e||e(),null==n||n.abort()}},[]),3===c)return null;let j=1===c;return(0,s.jsxs)(l.az,{position:"relative",br:"lg",children:[j&&(0,s.jsx)(l.az,{position:"absolute",w:"100%",h:"100%",top:"0",left:"0",zIndex:1e3,children:(0,s.jsx)(w,{leftTeamId:n,rightTeamId:r,isLoading:!0})}),(0,s.jsx)(l.az,{as:"video",br:"lg",ref:a,controls:!0,muted:i,style:j?{opacity:0}:{opacity:1},disablePictureInPicture:!0}),(0,s.jsx)(l.az,{br:"lg",overflow:"clip",ref:o,position:"absolute",w:"400",h:"225",top:"0",left:"0"})]})}var R=n(27372);function Y(){let{event:e,leftTeam:t,rightTeam:n}=(0,d.useContext)(u.y$),{isMobile:a}=(0,i.$c)(),m=(0,R.W)(a),p=e.status.type===r.XUj.InProgress,j=p&&m,g=p&&!m,[f,v]=(0,d.useState)(j),y=(0,T.lZ)(e.id,j),b=(0,c.d4)(h.LQ),S=(0,d.useMemo)(()=>e.status.type,[e.id]);return!e.streamContentId||(0,R.X)(b)||S===r.XUj.Finished?null:(0,s.jsx)(l.az,{ref:y,children:f?(0,s.jsx)(z,{streamContentId:e.streamContentId,autoplay:j,leftTeamId:t.id,rightTeamId:n.id},e.id):(0,s.jsx)(w,{leftTeamId:t.id,rightTeamId:n.id,onClick:g?()=>{v(!0),(0,x.K2)(e.id)}:o(),isClickable:g,startTimestamp:1e3*e.startTimestamp})})}},25273:(e,t,n)=>{n.d(t,{o:()=>u});var s=n(6029),r=n(55729),i=n(72369);let l=(0,r.createContext)(null);var a=n(14044);let o=e=>!e.isLayoutDirty&&e.willUpdate(!1),d=e=>!0===e,c=e=>d(!0===e)||"id"===e,u=({children:e,id:t,inherit:n=!0})=>{let u=(0,r.useContext)(i.L),x=(0,r.useContext)(l),[h,m]=(0,a.C)(),p=(0,r.useRef)(null),j=u.id||x;null===p.current&&(c(n)&&j&&(t=t?j+"-"+t:j),p.current={id:t,group:d(n)&&u.group||function(){let e=new Set,t=new WeakMap,n=()=>e.forEach(o);return{add:s=>{e.add(s),t.set(s,s.addEventListener("willUpdate",n))},remove:s=>{e.delete(s);let r=t.get(s);r&&(r(),t.delete(s)),n()},dirty:n}}()});let g=(0,r.useMemo)(()=>({...p.current,forceRender:h}),[m]);return(0,s.jsx)(i.L.Provider,{value:g,children:e})}},26763:(e,t,n)=>{n.d(t,{A:()=>u});var s=n(21377),r=n(4967),i=n(55729),l=n(494),a=n(62859),o=n(91631),d=n(2294),c=n(86679);let u=()=>{let{event:e}=(0,i.useContext)(a.y$),t=e.status.type===s.XUj.InProgress,[n,u]=(0,l.d4)((0,d.Pf)(t)),x=(0,l.d4)((0,d.Ul)(e)),h=(0,l.d4)(d.fq),m=(e,t,n)=>n?void 0:s.bnp.teamStreaksOdds(e,t),{hasProviderOdds:p,hasFallbackProviderOdds:j}=(0,c.A)({hasProviderOdds:{route:n?m(e.id,n,h):void 0,skipCheck:!n||!x},hasFallbackProviderOdds:{route:u?m(e.id,u,h):void 0,skipCheck:!u||!x}},[e.id,n,u,x,h],{refreshInterval:120*r.Z2}),g=(0,o.q)();return h?g:!!p||!!j}},27175:(e,t,n)=>{n.d(t,{A:()=>C});var s=n(6029),r=n(21377),i=n(41249),l=n(83817),a=n.n(l),o=n(55729),d=n(90248),c=n(45860),u=n(65789),x=n(62859),h=n(54409),m=n(75751),p=n(8703),j=n(65078);let g=()=>(0,s.jsx)(i.so,{backgroundColor:"sofaSingles.value",br:"md",px:"sm",justify:"center",align:"center",children:(0,s.jsx)(i.EY,{font:"assistive.default",color:"surface.s1",lineHeight:"16px",children:(0,s.jsx)(d.A,{id:"tennis.brake"})})}),f=e=>{let{isServingAndScoring:t,isBreak:n}=e;return(0,s.jsx)(i.az,{w:"2px",h:"50%",bg:t?"success.default":n?"error.default":"onSurface.nLv4"})},v=e=>{var t;let{isLive:n,isLeftServingAndScoring:r,isRightServingAndScoring:l,isLeftBreak:a,isRightBreak:d,leftScore:c,rightScore:u,scoring:m,serving:p,isInWidget:j,isTieBreak:v}=e,{leftTeam:y,rightTeam:b}=(0,o.useContext)(x.y$),w=(null==(t=y.subTeams)?void 0:t.length)===2,S=r||l||a||d;return n?(0,s.jsxs)(i.so,{children:[(0,s.jsx)(i.so,{direction:"column",justify:1===p?"flex-start":"flex-end",align:"end",w:"84px",pt:1===p?"xs":0,pb:2===p?"6px":0,children:(0,s.jsx)(h.OXq,{fill:"secondary.default",w:13,h:13})}),(0,s.jsxs)(i.so,{direction:"column",gap:"sm",py:"xs",ml:"xs",children:[(0,s.jsx)(i.EY,{font:"display.small",color:n?"sofaSingles.live":"onSurface.nLv3",minW:20,align:"center",as:"div",children:c}),(0,s.jsx)(i.EY,{font:"display.small",color:n?"sofaSingles.live":"onSurface.nLv3",minW:20,align:"center",as:"div",children:u})]}),(0,s.jsxs)(i.az,{children:[(0,s.jsx)(f,{isServingAndScoring:!v&&r,isBreak:!v&&d}),(0,s.jsx)(f,{isServingAndScoring:!v&&l,isBreak:!v&&a})]})]}):(0,s.jsxs)(i.so,{children:[(0,s.jsx)(i.so,{direction:"column",justify:r||a?"flex-start":"flex-end",w:"84px",children:S&&(0,s.jsxs)(i.so,{direction:"column",justify:"center",align:"center",w:"100%",backgroundColor:j?"onSurface.nLv5":"surface.s2",p:"xs",br:"sm",gap:"sm",children:[d&&!v&&(0,s.jsx)(g,{}),(0,s.jsx)(i.EY,{block:!0,font:"assistive.default",ellipsis:!0,maxW:"100%",lineHeight:"16px",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r||a?w?y.nameCode:y.shortName:w?b.nameCode:b.shortName}),a&&!v&&(0,s.jsx)(g,{})]})}),(0,s.jsxs)(i.so,{direction:"column",gap:"sm",py:"xs",ml:"xs",children:[(0,s.jsx)(i.EY,{font:"display.small",color:1===m?"onSurface.nLv1":"onSurface.nLv3",minW:20,align:"center",as:"div",children:c}),(0,s.jsx)(i.EY,{font:"display.small",color:2===m?"onSurface.nLv1":"onSurface.nLv3",minW:20,align:"center",as:"div",children:u})]}),(0,s.jsxs)(i.az,{children:[(0,s.jsx)(f,{isServingAndScoring:!v&&r,isBreak:!v&&d}),(0,s.jsx)(f,{isServingAndScoring:!v&&l,isBreak:!v&&a})]})]})},y=e=>{switch(e){case 1:return"onSurface.nLv1";case 2:case 6:return"sofaSingles.value";case 3:case 4:return"secondary.default";default:return"onSurface.nLv3"}},b=(e,t,n)=>{let s=t.lastPeriod&&t.lastPeriod[t.lastPeriod.length-1],r=!!s&&!!n.set&&Number(s)===n.set;if(e&&r){if(t.time&&t.time.currentPeriodStartTimestamp)return Math.round((Date.now()-1e3*t.time.currentPeriodStartTimestamp)/1e3);if(t.currentPeriodStartTimestamp)return Math.round((Date.now()-1e3*t.currentPeriodStartTimestamp)/1e3)}return t.time&&t.time["period".concat(n.set)]?t.time["period".concat(n.set)]:null},w=e=>{let{point:t}=e,[n,r]=(0,j.jr)(t,"homePoint","awayPoint"),[l,a]=(0,j.jr)(t,"homePointType","awayPointType");return(0,s.jsxs)(i.so,{direction:"column",gap:"sm",py:"xs",children:[(0,s.jsx)(i.EY,{font:"body.small",w:24,color:y(l),align:"center",as:"div",children:n}),(0,s.jsx)(i.EY,{font:"body.small",w:24,color:y(a),align:"center",as:"div",children:r})]})},S=e=>{var t,n;let{game:l,setKey:a,isInWidget:d}=e,{event:c}=(0,o.useContext)(x.y$),[u,h]=(0,j.jr)(l.score,"homeScore","awayScore"),m=(0,j.gm)(l.score,"scoring"),p=(0,j.gm)(l.score,"serving"),g=-1===m&&c.status.type===r.XUj.InProgress,f=15>+l.points[0].awayPoint&&15>+l.points[0].homePoint;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(i.so,{px:"lg",children:[(0,s.jsx)(i.az,{py:"sm",children:(0,s.jsx)(v,{isLive:g,isLeftServingAndScoring:1===p&&1===m,isRightServingAndScoring:2===p&&2===m,isLeftBreak:2===p&&1===m,isRightBreak:1===p&&2===m,leftScore:u,rightScore:h,scoring:m,serving:p,isTieBreak:f,isInWidget:d})}),(0,s.jsx)(i.so,{wrap:"wrap",py:"sm",pl:0,children:null==(t=(n=l.points).map)?void 0:t.call(n,(e,t)=>(0,s.jsx)(w,{point:e},"".concat(a,"-").concat(l.game,"-").concat(t)))})]})})},k=e=>{let{event:t,set:n,isInitiallyOpen:l,isLast:a,isInWidget:c}=e,[u,x]=(0,o.useState)(l),m=t.status.type===r.XUj.InProgress,j=b(m,t,n);return(0,s.jsxs)(i.az,{pb:"sm",children:[!a&&(0,s.jsx)(i.cG,{}),(0,s.jsxs)(i.so,{h:40,position:"relative",justify:"flex-start",align:"center",onClick:()=>x(e=>!e),cursor:"pointer",pt:"md",pb:"xs",px:"lg",children:[(0,s.jsxs)(i.EY,{lineHeight:"100%",color:m&&a?"sofaSingles.live":"onSurface.nLv1",font:"display.small",align:"center",as:"div",children:[(0,s.jsx)(d.A,{id:"ordinalSet",values:{n:n.set}}),j&&" • ",j&&(0,p.jQ)(j)]}),(0,s.jsx)(h.zQC,{icon:u?"chevron-up":"chevron-down",position:"absolute",right:16,width:24,height:24,fill:"onSurface.nLv1",ml:"4px"})]}),u&&n.games.map(e=>(0,s.jsx)(S,{setKey:n.set,game:e,isInWidget:c},e.game))]})},C=(0,o.memo)(function(e){let{event:t,isInWidget:n=!1}=e,{data:i}=(0,c.Ay)(r.bnp.pointByPoint(t.id),(0,p.rf)(t));return i&&i.pointByPoint.length?(0,s.jsx)(m.t,{tag:"PointByPoint",children:(0,s.jsx)(u.Zp,{isInverseDesktop:n,children:i.pointByPoint.map((e,r)=>(0,s.jsx)(k,{set:e,isInitiallyOpen:!r,isLast:!r,event:t,isInWidget:n},e.set))})}):null},(e,t)=>e.event.id===t.event.id&&a()(e.event.time,t.event.time))},27680:(e,t,n)=>{n.d(t,{f:()=>A});var s=n(6029),r=n(33144),i=n(21377),l=n(41249),a=n(55729),o=n(90248),d=n(65789),c=n(62859),u=n(54409),x=n(70591),h=n(49519),m=n(44194),p=n(494),j=n(45860),g=n(22648),f=n(19121),v=n(53486);let y=e=>{let{id:t}=e,n=(0,p.d4)(e=>e.favorites.events[t]);return n?(0,s.jsx)(x.tj,{event:n,target:"_blank",children:(0,s.jsx)(v.n6,{isShort:!0,isNarrow:!0,isMobile:!0,isShortDate:!0,event:n})}):(0,s.jsx)(l.az,{minH:"48"})},b=e=>{let{eventId:t,onClose:n}=e,r=(0,p.wA)(),{data:a,error:o}=(0,j.Ay)(i.bnp.series(t),{onSuccess:async e=>{let t=await Promise.all(e.series.map(e=>i.nk6.fetchEvent(e)));r((0,f.oU)(t.map(e=>e.event)))}});return o?null:a?(0,s.jsx)(s.Fragment,{children:a.series.map(e=>(0,s.jsx)(l.az,{onClick:n,children:(0,s.jsx)(y,{id:e})},e))}):(0,s.jsx)(l.so,{align:"center",minH:"220",justify:"center",py:"xxl",children:(0,s.jsx)(g.a,{})})},w=()=>{var e,t,n,r;let{event:d,leftScore:x,rightScore:p,leftTeam:j,rightTeam:g}=(0,a.useContext)(c.y$),[f,v]=(0,a.useState)(!1),{isMobile:y}=(0,m.$c)(),w=d.tournament.category.sport.slug===i.QCR.Tennis,S=()=>v(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.az,{cursor:"pointer",children:[(0,s.jsx)(l.EY,{font:"display.micro",color:"onSurface.nLv3",as:"div",align:"center",mb:"xs",children:(0,s.jsx)(o.A,{id:"event.series"})}),(0,s.jsxs)(l.so,{bg:"surface.s2",br:"lg",py:"xs",onClick:()=>v(!0),align:"center",children:[(0,s.jsx)(l.az,{flex:"1 1 auto",children:(0,s.jsxs)(l.so,{align:"center",justify:"center",children:[w?(0,s.jsx)(h.w,{size:24,alpha2:null==(e=j.country)?void 0:e.alpha2,name:null==(t=j.country)?void 0:t.name}):(0,s.jsx)(h.p,{size:24,id:j.id}),(0,s.jsxs)(l.EY,{block:!0,font:"display.micro",color:"onSurface.nLv1",mx:"xs",children:[x.series," - ",p.series]}),w?(0,s.jsx)(h.w,{size:24,alpha2:null==(n=g.country)?void 0:n.alpha2,name:null==(r=g.country)?void 0:r.name}):(0,s.jsx)(h.p,{size:24,id:g.id})]})}),(0,s.jsx)(l.cG,{vertical:!0,my:"xxs"}),(0,s.jsx)(l.az,{children:(0,s.jsx)(u.fJR,{m:"sm",w:"24",h:"24",fill:"primary.default"})})]})]}),(0,s.jsx)(l.aF,{isOpen:f&&!y,onClose:S,children:(0,s.jsxs)(l.az,{minW:"400",pb:"lg",position:"relative",children:[(0,s.jsx)(l.EY,{as:"h3",h:"40",m:"0",mb:"md",py:"md",px:"lg",color:"onSurface.nLv1",font:"display.medium",children:(0,s.jsx)(o.A,{id:"event.series"})}),(0,s.jsx)(l.az,{position:"absolute",top:"sm",right:"lg",children:(0,s.jsx)(l.$n,{variant:"unshielded",p:"0",onClick:S,children:(0,s.jsx)(u.zQC,{icon:"close",width:"24",height:"24",fill:"onSurface.nLv1"})})}),(0,s.jsx)(b,{eventId:d.id,onClose:S})]})}),(0,s.jsxs)(l.Xn,{isOpen:f&&y,onClose:S,children:[(0,s.jsx)(l.Xn.Header,{children:(0,s.jsx)(l.EY,{as:"h3",m:"0",font:"display.large",color:"onSurface.nLv1",children:(0,s.jsx)(o.A,{id:"event.series"})})}),(0,s.jsx)(l.Xn.Content,{children:(0,s.jsx)(b,{eventId:d.id})})]})]})};var S=n(65078);let k=e=>{let{leftScore:t,rightScore:n,leftTeam:i,rightTeam:a}=(0,S.AR)(e.event);return e.event?(0,s.jsxs)(l.az,{children:[(0,s.jsx)(l.EY,{font:"display.micro",color:"onSurface.nLv3",as:"div",align:"center",mb:"xs",children:e.title}),(0,s.jsx)(x.tj,{event:e.event,children:(0,s.jsxs)(l.so,{bg:["surface.s2","surface.s1"],br:"lg",py:"xs",onClick:e.onClick,align:"center",children:[(0,s.jsx)(l.az,{children:(0,s.jsx)(u.zQC,{icon:"chevron-left",m:"sm",w:"24",h:"24",fill:"primary.default"})}),(0,s.jsx)(l.cG,{vertical:!0,my:"xxs"}),(0,s.jsx)(l.az,{flex:"1 1 auto",children:(0,s.jsxs)(l.so,{align:"center",justify:"center",children:[(0,s.jsx)(r.p,{size:24,id:i.id}),(0,s.jsxs)(l.EY,{block:!0,font:"display.micro",color:"onSurface.nLv1",mx:"xs",children:[t.display," - ",n.display]}),(0,s.jsx)(r.p,{size:24,id:a.id})]})})]})})]}):null},C=()=>{let{event:e,leftScore:t,rightScore:n,leftTeam:i,rightTeam:d}=(0,a.useContext)(c.y$),x=(0,S.gm)(e,"aggregatedWinnerCode");return(0,s.jsxs)(l.az,{children:[(0,s.jsx)(l.EY,{font:"display.micro",color:"onSurface.nLv3",as:"div",align:"center",mb:"xs",children:(0,s.jsx)(o.A,{id:"event.aggregated"})}),(0,s.jsxs)(l.so,{br:"lg",py:"md",justify:"center",align:"center",children:[(0,s.jsx)(r.p,{size:24,id:i.id}),(0,s.jsxs)(l.EY,{block:!0,font:"display.micro",color:"onSurface.nLv1",mx:"xs",children:[t.aggregated,1===x&&(0,s.jsx)("span",{children:(0,s.jsx)(u.UFI,{fill:"onSurface.nLv1",mt:"-2",width:"7",height:"14"})})," - ",n.aggregated,2===x&&(0,s.jsx)("span",{children:(0,s.jsx)(u.UFI,{fill:"onSurface.nLv1",mt:"-2",width:"7",height:"14"})})]}),(0,s.jsx)(r.p,{size:24,id:d.id})]})]})};function A(){let{event:e,leftScore:t,rightScore:n}=(0,a.useContext)(c.y$),{event:r}=(0,S.mJ)(e.previousLegEventId),u="number"==typeof e.previousLegEventId,x="number"==typeof t.aggregated&&"number"==typeof n.aggregated,h="number"==typeof t.series&&"number"==typeof n.series;if(u||x||h){let e=x?(0,s.jsx)(o.A,{id:"event.firstLeg"}):h?(0,s.jsx)(o.A,{id:"event.previousMatch"}):null;return(0,s.jsx)(d.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(l.so,{py:"lg",px:"sm",children:[(0,s.jsx)(l.az,{flex:"1 1 50%",mr:"xs",children:r&&r.status.code!==i.sum["Not started"]&&(0,s.jsx)(k,{title:e,event:r})}),(0,s.jsx)(l.az,{flex:"1 1 50%",ml:"xs",children:x?(0,s.jsx)(C,{}):h?(0,s.jsx)(w,{}):null})]})})}return null}},28971:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(6029),r=n(55729),i=n(12153);let l=(0,r.forwardRef)((e,t)=>{let{referee:n,children:r,...l}=e;return(0,s.jsx)(i.A,{...l,routeKey:"referee",params:{id:n.id,slug:n.slug},ref:t,children:r})})},32113:(e,t,n)=>{n.d(t,{H:()=>l});var s=n(6029),r=n(41249),i=n(30720);let l=e=>{let{leftImage:t,leftName:n,rightImage:l,rightName:a,h2hDuel:o}=e,[d,c]=(0,i.A)(o,"homeWins","awayWins");return(0,s.jsxs)(r.so,{pl:"lg",pr:"lg",pt:"sm",pb:"sm",grow:1,children:[(0,s.jsx)(r.az,{mr:"sm",children:t}),(0,s.jsxs)(r.az,{grow:1,children:[(0,s.jsxs)(r.so,{justify:"space-between",children:[(0,s.jsx)(r.EY,{minW:24,font:"display.medium",color:"secondary.default",children:d}),(0,s.jsx)(r.EY,{align:"center",minW:24,font:"display.medium",color:"neutral.default",children:o.draws}),(0,s.jsx)(r.EY,{align:"right",minW:24,font:"display.medium",color:"primary.default",children:c})]}),(0,s.jsxs)(r.so,{justify:"space-between",children:[(0,s.jsx)(r.EY,{maxW:88,font:"body.small",color:"onSurface.nLv1",ellipsis:!0,as:"div",children:n}),(0,s.jsx)(r.EY,{maxW:88,font:"body.small",color:"onSurface.nLv1",ellipsis:!0,as:"div",children:a})]})]}),(0,s.jsx)(r.az,{ml:"sm",children:l})]})}},34706:(e,t,n)=>{n.d(t,{A:()=>z});var s=n(6029),r=n(41249),i=n(494),l=n(28132),a=n(92209),o=n(21377),d=n(55729),c=n(65789),u=n(62859),x=n(51372),h=n(1840),m=n(44194),p=n(76356),j=n(90248),g=n(41618),f=n(38136),v=n(2294);let y=e=>{let{children:t}=e;return(0,s.jsx)(p.so,{justify:"flex-end",align:"center",gap:"sm",px:"sm",children:t})},b=e=>{let{isBranded:t}=e,n=(0,i.d4)(v.a5);return(0,i.d4)(v.y$)?(0,s.jsx)(y,{children:(0,s.jsx)(f.V,{})}):!t&&(null==n?void 0:n.branded)?(0,s.jsxs)(y,{children:[(0,s.jsx)(m.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(j.A,{id:"featured_by"})}),(0,s.jsx)(g.r,{size:"48x24"})]}):null};var w=n(32523);let S=e=>{let t,n=[];return e.forEach(e=>{t===e.marketId?n[n.length-1].odds.push(e):(t=e.marketId,n.push({marketId:e.marketId,marketName:e.marketName,odds:[e]}))}),n};var k=n(46430),C=n(49821),A=n(85304);function I(e){let{groupedMarketOdds:t,secondary:n,onClick:r}=e;return t?(0,s.jsx)(c.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(p.az,{px:"sm",pb:"sm",pt:"xs",children:t.odds.map((e,i)=>{let l=0===i?void 0:t.odds[i-1],a=(null==l?void 0:l.isLive)!==e.isLive;return(0,s.jsx)(A.A,{market:e,secondary:n,onClick:null==r?void 0:r(e.marketName),hideMarketName:!a,showRegulationImages:!1,hideProviderLogo:!0,showLiveLabel:a&&e.isLive},e.id)})})},t.marketId):null}let L=e=>{var t;let{eventId:n,isLive:r,isInWidget:i}=e,{allEventOdds:l,error:a}=(0,k.A)(n,r),{ref:o,makeOnClick:d}=(0,C.kW)({type:C.jF.Additional,marketName:null==l||null==(t=l[0])?void 0:t.marketName,location:u.cb.AdditionalOddsTab});if(a)return null;if(!l)return(0,s.jsx)(w.E,{uniqueKey:"odds-tab"});let c=S(l),x=e=>d(e,C.ki.OddsValue);return(0,s.jsx)(p.so,{direction:"column",gap:"sm",ref:o,children:c.map(e=>(0,s.jsx)(I,{groupedMarketOdds:e,secondary:!i,onClick:x},e.marketId))})};var E=n(58673),P=n(44450),T=n(58492);let _=e=>{let{isInWidget:t}=e,{event:n}=(0,d.useContext)(u.y$),r=n.status.type===o.XUj.InProgress,i=(0,T.d)("oddsTab");return(0,s.jsxs)(s.Fragment,{children:[i&&(0,s.jsx)(x.O,{entityId:n.id,branding:i,location:"monetized_odds_tab"}),(0,s.jsxs)(c.BU,{children:[(0,s.jsx)(b,{isBranded:!!i}),(0,s.jsx)(P.A,{}),(0,s.jsx)(L,{eventId:n.id,isLive:r,isInWidget:t}),(0,s.jsx)(E._,{}),(0,s.jsx)(h.z,{})]})]})};function z(e){let{isInWidget:t}=e,n=(0,i.d4)(v.fq);return(0,s.jsx)(r.tU.Panel,{tabKey:l.H.AdditionalOdds,children:n?(0,s.jsx)(a.i,{placement:t?"widget":"mobile"}):(0,s.jsx)(_,{isInWidget:t})})}},35410:(e,t,n)=>{n.d(t,{Ay:()=>m,mp:()=>c});var s=n(6029),r=n(32523),i=n(44194),l=n(76356),a=n(71024),o=n.n(a),d=n(34765);let c=1238,u=o()(()=>n.e(9932).then(n.bind(n,9932)),{loadableGenerated:{webpack:()=>[9932]},ssr:!1,loading:()=>(0,s.jsx)(r.E,{uniqueKey:"wagon-wheel-cl",height:c})}),x=o()(()=>n.e(7725).then(n.bind(n,87725)),{loadableGenerated:{webpack:()=>[87725]},ssr:!1,loading:()=>(0,s.jsx)(r.E,{uniqueKey:"cricket-play-by-play-cl",height:c})});function h(){return(0,s.jsx)(r.E,{uniqueKey:"cricket-details-cl",mb:"md",height:c})}function m(){let{incidents:e,isLoading:t}=(0,d.L)(),n=e.find(e=>"ball"===e.incidentType&&e.zone&&e.batsman);return t?(0,s.jsx)(h,{}):(null==e?void 0:e.length)?(0,s.jsxs)(l.so,{direction:"row",maxH:"[1238px]",gap:"md",children:[(0,s.jsx)(l.az,{w:"[50%]",children:(0,s.jsx)(i.Ee,{h:"[1238px]",children:(0,s.jsx)(x,{incidents:e})})}),n&&(0,s.jsx)(l.az,{w:"[50%]",children:(0,s.jsx)(u,{incidents:e})})]}):null}},35621:(e,t,n)=>{n.d(t,{J:()=>I,A:()=>L});var s=n(6029),r=n(21377),i=n(4967),l=n(41249),a=n(90248),o=n(90510),d=n(14407),c=n(65789),u=n(97477),x=n(55729),h=n(62859),m=n(54409),p=n(98516),j=n(55365);function g(e){let{score:t}=e;return(null==t?void 0:t.score)?(null==t?void 0:t.wickets)===void 0||(null==t?void 0:t.overs)===void 0?(0,s.jsx)(s.Fragment,{children:null==t?void 0:t.score}):(0,s.jsxs)(s.Fragment,{children:[(0,j.gj)(t)," (",(0,p.M)(null==t?void 0:t.overs,1),")"]}):null}function f(e){let{isBatting:t,score:n,isLeft:r,isLive:i}=e,a=(null==n?void 0:n.score)!==void 0||!i;return(0,s.jsxs)(l.so,{gap:"lg",h:"32px",align:"center",children:[!r&&i&&(t?(0,s.jsx)(m.BM3,{fill:"sofaSingles.live"}):(0,s.jsx)(m.Pvq,{fill:"sofaSingles.live"})),a&&(0,s.jsx)(l.EY,{as:"div",color:i&&t?"sofaSingles.live":"onSurface.nLv1",font:"table.medium",children:(0,s.jsx)(g,{score:n})}),r&&i&&(t?(0,s.jsx)(m.BM3,{fill:"sofaSingles.live"}):(0,s.jsx)(m.Pvq,{fill:"sofaSingles.live"}))]})}function v(e){let{messageId:t,value:n}=e;return void 0===n?null:(0,s.jsx)(l.EY,{as:"div",h:"26px",font:"table.medium",color:"onSurface.nLv3",children:(0,s.jsx)(a.A,{id:t,values:{rate:n}})})}function y(){var e;let{event:t,leftTeam:n,leftScore:i,rightScore:a,location:o}=(0,x.useContext)(h.y$),d=t.status.type===r.XUj.InProgress,c=t.currentBattingTeamId?t.currentBattingTeamId===n.id?r.cxP.Left:r.cxP.Right:void 0,u=c===r.cxP.Left?i:c===r.cxP.Right?a:void 0,m=[...new Set([...Object.keys(i.innings||{}),...Object.keys(a.innings||{})])].sort();if(0===m.length)return null;let p=m[m.length-1],j=t.currentBattingTeamId===n.id;return(0,s.jsxs)(l.az,{bg:"surface.s2",br:"lg",m:"sm",mt:o===h.cb.Widget?"0":"sm",px:"lg",children:[m.map(e=>{var n,o;let d=e===p&&c&&t.status.type===r.XUj.InProgress;return(0,s.jsxs)(l.so,{justify:"space-between",align:"center",children:[(0,s.jsx)(f,{score:null==(n=i.innings)?void 0:n[e],isLeft:!0,isLive:d,isBatting:d&&c===r.cxP.Left}),(0,s.jsx)(f,{score:null==(o=a.innings)?void 0:o[e],isLive:d,isBatting:d&&c===r.cxP.Right})]},e)}),u&&(null==(e=u.innings)?void 0:e[p])&&d&&(0,s.jsxs)(l.so,{direction:"column",align:j?"flex-start":"flex-end",children:[(0,s.jsx)(v,{messageId:"cricket_current_run_rate",value:u.innings[p].runRate}),(0,s.jsx)(v,{messageId:"cricket_target_run_rate",value:u.innings[p].targetRunRate})]})]})}var b=n(87763),w=n(37394),S=n(71046);let k=e=>{let{startTimestamp:t}=e;return(0,i.cK)((0,i.pp)(t))?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.A,{id:"today"})," ",(0,s.jsx)(o.ib,{value:1e3*t})]}):(0,s.jsx)(o.XU,{value:1e3*t,day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"numeric"})},C=e=>{let{event:t,isPowerGraph:n=!1}=e,{time:i,status:o,currentPeriodStartTimestamp:d}=t,c=o.type===r.XUj.InProgress;if((0,S.uk)(6e4,c),!i)return null;let u=0;for(let e in i)e.startsWith("period")&&(u+=i[e]);return(c&&d&&(u+=Math.round(Date.now()-1e3*d)/1e3),u>0)?c?(0,s.jsxs)(l.EY,{textTransform:"lowercase",font:n?"display.small":"body.small",color:"onSurface.nLv1",children:["(",(0,s.jsx)(a.A,{id:"total"}),": ",(0,S.jQ)(u),")"]}):(0,s.jsxs)(l.EY,{font:n?"display.small":"body.small",color:n?"onSurface.nLv1":"onSurface.nLv3",children:[" - ",(0,S.jQ)(u)]}):null},A=e=>{let{event:t}=e,n=t.tournament.category.sport.slug,i=(0,w.sw)(t),o=t.status.type===r.XUj.InProgress,c=n===r.QCR.Tennis,x=(0,S.Sw)(t),h=(0,S.vJ)(n),m=[];if(i)m.push((0,s.jsx)(l.EY,{font:"body.small",color:"error.default",children:(0,s.jsx)(b.fP,{id:(0,w.B_)(t),short:!0})},"specialStatusDescription"));else if(t.isAwarded)m.push((0,s.jsx)(l.EY,{font:"body.small",color:"error.default",children:(0,s.jsx)(a.A,{id:"awarded"})},"statusAwarded"));else if(c)o?(m.push((0,s.jsx)(C,{event:t},"tennisLiveTotalTime")),m.push((0,s.jsx)(l.EY,{font:"body.small",color:"secondary.default",ml:"5",children:(0,s.jsx)(b.fP,{id:(0,w.B_)(t),short:!0})},"tennisLiveDescription"))):(m.push((0,s.jsx)(l.EY,{font:"body.small",color:"onSurface.nLv3",children:(0,s.jsx)(b.fP,{id:(0,w.B_)(t),short:!0})},"tennisFinishedDescription")),m.push((0,s.jsx)(C,{event:t},"tennisFinishedTotalTime")));else if(x)m.push((0,s.jsxs)(l.EY,{font:"body.small",color:"secondary.default",children:[h&&(0,s.jsx)(a.A,{id:"time_left",values:{time:x}}),x]},"statusDescription"));else{let e=n===r.QCR.MMA&&t.status.code===r.sum.Ended;m.push((0,s.jsx)(l.EY,{font:"body.small",color:o?"sofaSingles.live":"onSurface.nLv3",children:(0,s.jsx)(b.fP,{id:(0,w.B_)(t),short:!e})},"statusDescription")),t.time&&t.time.currentPeriodStartTimestamp&&void 0!==t.time.initial&&t.status.type===r.XUj.InProgress&&!w.p2.includes(t.status.code)&&(0,S.c5)(t)!==r.QCR.Darts&&(m.push((0,s.jsx)(l.EY,{font:"body.small",color:"secondary.default",mx:"xxs",children:"•"},"bullet")),n!==r.QCR.Darts&&m.push((0,s.jsxs)(l.EY,{font:"body.small",color:"secondary.default",children:[(0,s.jsx)(u.lx,{time:t.time,status:t.status,currentPeriodStartTimestamp:t.currentPeriodStartTimestamp,hasMinuteBlinker:!0}),(0,s.jsx)(d.I,{})]},"progressTimer")))}return(0,s.jsx)(s.Fragment,{children:m})},I=e=>{let{event:t}=e,n=t.status.type===r.XUj.InProgress,i=t.currentPeriodStartTimestamp&&Math.round(Date.now()-1e3*t.currentPeriodStartTimestamp)/1e3,a=i&&(0,S.jQ)(i);return n?(0,s.jsxs)(l.EY,{font:"display.small",color:"sofaSingles.live",ml:"5",children:[(0,s.jsx)(b.fP,{id:(0,w.B_)(t),short:!0})," - ",a]}):(0,s.jsxs)(l.az,{children:[(0,s.jsx)(l.EY,{font:"display.small",color:"onSurface.nLv1",children:(0,s.jsx)(b.fP,{id:(0,w.B_)(t),short:!0})}),(0,s.jsx)(C,{event:t,isPowerGraph:!0},"tennisFinishedTotalTime")]})},L=e=>{let{event:t}=e,n=t.tournament.category.sport.slug===r.QCR.Cricket;return t.status.type===r.XUj.NotStarted||t.status.type===r.XUj.Postponed||t.status.type===r.XUj.Canceled?t.note?(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsx)(y,{}),(0,s.jsx)(l.EY,{px:"lg",pt:"md",pb:"sm",block:!0,font:"body.small",color:"onSurface.nLv1",children:t.note})]}):null:(0,s.jsxs)(c.Zp,{isInverseDesktop:!0,children:[(0,s.jsxs)(l.so,{justify:"space-between",align:"center",px:"lg",py:"sm",children:[(0,s.jsx)(l.EY,{font:"body.small",lineHeight:"100%",color:"onSurface.nLv3",children:(0,s.jsx)(k,{startTimestamp:t.startTimestamp})}),(0,s.jsx)(l.EY,{font:"body.small",lineHeight:"100%",color:"onSurface.nLv3",children:(0,s.jsx)(A,{event:t})})]}),n&&(0,s.jsx)(l.az,{pb:"xs",children:(0,s.jsx)(y,{})}),t.note&&(0,s.jsx)(l.EY,{px:"lg",pb:"sm",block:!0,font:"body.small",color:"onSurface.nLv1",children:t.note})]})}},36075:(e,t,n)=>{n.d(t,{D:()=>s.A});var s=n(55665)},36337:(e,t,n)=>{n.d(t,{I:()=>p,x:()=>m});var s=n(6029),r=n(21377),i=n(71024),l=n.n(i),a=n(55729),o=n(45860),d=n(62859),c=n(65693),u=n(19648);let x=l()(()=>Promise.all([n.e(6591),n.e(4632),n.e(5931)]).then(n.bind(n,75931)),{loadableGenerated:{webpack:()=>[75931]}}),h=l()(()=>Promise.all([n.e(3139),n.e(9213)]).then(n.bind(n,69213)),{loadableGenerated:{webpack:()=>[69213]}});function m(e){var t,n;let{eventId:i,leftTeam:l,rightTeam:m,isInWidget:p}=e,j=(0,a.useContext)(d.Ws),g=j===r.QCR.Football,f=j===r.QCR.Basketball,{data:v,isLoading:y}=(0,o.Ay)(r.cWY.featuredPlayers(l.id)),{data:b,isLoading:w}=(0,o.Ay)(r.cWY.featuredPlayers(m.id));if(y||w)return f?(0,s.jsx)(c.A,{isInverseDesktop:p}):(0,s.jsx)(u.A,{isInverseDesktop:p});let S=null==v||null==(t=v.featuredPlayers)?void 0:t[i],k=null==b||null==(n=b.featuredPlayers)?void 0:n[i];return(0,s.jsxs)(s.Fragment,{children:[g&&(0,s.jsx)(x,{leftPlayer:S,rightPlayer:k,isInWidget:p}),f&&(0,s.jsx)(h,{isInWidget:p,leftPlayer:S,rightPlayer:k})]})}let p=[r.QCR.Football,r.QCR.Basketball]},36614:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(28132);let o=l()(()=>Promise.all([n.e(7819),n.e(3263)]).then(n.bind(n,37819)),{loadableGenerated:{webpack:()=>[37819]},ssr:!1});function d(e){let{event:t,isInWidget:n}=e;return(0,s.jsx)(r.tU.Panel,{tabKey:a.H.Games,children:(0,s.jsx)(o,{event:t,isInWidget:n})})}},37377:(e,t,n)=>{n.d(t,{s:()=>x});var s=n(6029),r=n(44194),i=n(76356),l=n(90248),a=n(494),o=n(65789),d=n(54409),c=n(88339),u=n(76410);let x=e=>{let{isInWidget:t}=e,n=(0,a.d4)(c.$F);return(null==n?void 0:n.editor)?null:(0,s.jsx)(o.Zp,{isInverseDesktop:t,children:(0,s.jsxs)(i.az,{p:"md",children:[(0,s.jsxs)(i.so,{align:"center",p:"xs",mb:"xs",children:[(0,s.jsx)(d._jO,{minW:40,minH:40,width:"40px",height:"40px",mr:"md",fill:"primary.default"}),(0,s.jsx)(r.EY,{textStyle:"display.small",color:"neutrals.nLv1",children:(0,s.jsx)(l.A,{id:"torneo_promo_text"})})]}),(0,s.jsx)("img",{style:{maxWidth:"280px",width:"100%"},src:"/static/images/editor/editor-mobile.png",alt:"eventTorneoBannerImage"}),(0,s.jsx)("a",{href:"https://torneo.sofascore.com/?utm_source=torneo.sofascore.com&utm_medium=web_button&utm_campaign=join_sofascore_editor_team_desktop&utm_content=web_button_desktop",target:"_blank",rel:"noreferrer",onClick:u.ix,children:(0,s.jsxs)(i.so,{justify:"center",align:"center",gap:"xs",bg:"surface.s2",cursor:"pointer",br:"sm",mt:"lg",p:"md",children:[(0,s.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",_hover:{filter:"auto",brightness:1.3,textDecoration:"underline"},children:(0,s.jsx)(l.A,{id:"check_out_torneo_by_sofascore"})}),(0,s.jsx)(d.HW5,{fill:"primary.default",width:16,height:16})]})})]})})}},42917:(e,t,n)=>{n.d(t,{A:()=>u});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(75751),o=n(24985),d=n(28132);let c=l()(()=>Promise.resolve().then(n.bind(n,61777)),{loadableGenerated:{webpack:()=>[61777]},ssr:!1,loading:()=>(0,s.jsx)(o.Vj,{})});function u(){return(0,s.jsx)(r.tU.Panel,{tabKey:d.H.Lineups,children:(0,s.jsx)(a.t,{tag:"lineups",children:(0,s.jsx)(c,{})})})}},44407:(e,t,n)=>{n.d(t,{K:()=>s.default,Y:()=>u});var s=n(4196),r=n(6029),i=n(21377),l=n(71024),a=n.n(l),o=n(3856);let d=a()(()=>Promise.resolve().then(n.bind(n,4196)),{loadableGenerated:{webpack:()=>[4196]},ssr:!1,loading:()=>(0,r.jsx)(o.O,{})}),c=a()(()=>Promise.resolve().then(n.bind(n,36142)),{loadableGenerated:{webpack:()=>[36142]},ssr:!1});function u(e){let{event:t,isInWidget:n}=e;return t.tournament.category.sport.slug===i.QCR.MMA?(0,r.jsx)(c,{isMobileLayout:!0}):(0,r.jsx)(d,{event:t,isInWidget:n})}},48462:(e,t,n)=>{n.d(t,{k:()=>u,m:()=>c});var s=n(6029),r=n(21377),i=n(41249),l=n(55729),a=n(62859),o=n(8703);let d=[-5,-2,-1],c=e=>{let{time:t,addedTime:n,formatSeconds:i}=e,l=i?"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0")):"".concat(t,"'");return(0,s.jsxs)(s.Fragment,{children:[void 0!==t&&t!==r.yBP.OnBenchIncidentTime?l:"-",n&&(0,s.jsxs)("sup",{children:[" +",n]})]})},u=e=>{let{time:t,timeSeconds:n,addedTime:u,reversedPeriodTime:x,reversedPeriodTimeSeconds:h,incidentType:m}=e,p=(0,l.useContext)(a.Ws),j=(0,o.vJ)(p)&&void 0!==h||p===r.QCR.Handball&&!!n,g=j&&n?n:t,f="penaltyShootout"===m||g&&d.includes(g);return(0,s.jsx)(i.az,{h:[16,24],minW:32,as:"bdi",children:(0,s.jsx)(i.EY,{minW:"24px",lineHeight:["16px","24px"],font:"assistive.default",color:"onSurface.nLv3",align:"center",as:"div",children:f?"-":(0,s.jsx)(c,{time:(0,o.vJ)(p)?h||x:g,addedTime:u,formatSeconds:j})})})}},48553:(e,t,n)=>{n.d(t,{Y:()=>y});var s=n(6029),r=n(21377),i=n(55729),l=n(62859),a=n(33144),o=n(44194),d=n(76356),c=n(90248),u=n(65789),x=n(54409),h=n(70591),m=n(76410),p=n(86679);let j=(e,t,n)=>{if(t&&n)return r.cWY.seasonStatistics(e,t,n,r.Vw_.overall)},g=()=>{var e,t;let{event:n,leftTeam:s,rightTeam:a,location:o}=(0,i.useContext)(l.y$),d=null==(e=n.tournament.uniqueTournament)?void 0:e.id,c=null==(t=n.season)?void 0:t.id,{ltHasStats:u,ltHasGivenSeason:x,rtHasStats:h,rtHasGivenSeason:g}=(0,p.A)({ltHasStats:{route:r.cWY.statisticsSeasons(s.id)},ltHasGivenSeason:{route:j(s.id,d,c)},rtHasStats:{route:r.cWY.statisticsSeasons(a.id)},rtHasGivenSeason:{route:j(a.id,d,c)}},[n]);return{shouldShowAction:u&&h,getLinkQueryParams:()=>x&&g?{leftTeamId:s.id,leftTeamSeasonId:c,leftTeamTournamentId:d,rightTeamId:a.id,rightTeamSeasonId:c,rightTeamTournamentId:d}:{leftTeamId:s.id,rightTeamId:a.id},logAnalyticsEvent:()=>(0,m.ke)({action:"click",location:"event_widget"===o?"event_widget":"event_details",type:"compare_teams"})}},f=e=>{let{event:t,leftTeam:n,rightTeam:r,isInWidget:i}=e,{shouldShowAction:l,getLinkQueryParams:m,logAnalyticsEvent:p}=g(),j=t.tournament.category.sport.slug;return void 0===l?(0,s.jsx)(u.Zp,{children:(0,s.jsx)(d.az,{h:"4xl"})}):l?(0,s.jsx)(u.Zp,{isInverseDesktop:i,children:(0,s.jsxs)(d.so,{px:"lg",py:"sm",justify:"space-between",align:"center",children:[(0,s.jsx)(a.p,{id:n.id,alt:n.name,size:32}),(0,s.jsx)(h.N_,{routeKey:"team.compare",params:{sport:j},query:m(),style:{width:"calc(100% - 64px - 32px)"},children:(0,s.jsxs)(o.$n,{textWrap:"wrap",w:"100%",size:"secondary",onClick:p,children:[(0,s.jsx)(c.A,{id:"compare_teams"})," ",(0,s.jsx)(x.l3$,{minW:24})]})}),(0,s.jsx)(a.p,{id:r.id,alt:r.name,size:32})]})}):null};var v=n(71046);let y=e=>{let{isInWidget:t}=e,n=(0,i.useContext)(l.y$);if(!n)throw Error("CompareTeamsContainer must be used within EventContext");return(0,v.c5)(n.event)!==r.QCR.Football?null:(0,s.jsx)(f,{...n,isInWidget:t})}},49711:(e,t,n)=>{n.d(t,{O:()=>x});var s=n(6029),r=n(21377),i=n(21501),l=n(494),a=n(10794),o=n(47229),d=n(61584),c=n(62213),u=n(2294);let x=e=>{let{event:t,fallback:n,isComparisonElevated:x,children:h,hasCTALoader:m}=e,p=(0,l.d4)(a.LQ),j=(0,l.d4)(u.fq),g=(0,l.d4)((0,u.Ul)(t)),f=(0,l.d4)(a.dg),v=(0,i.hX)(),y=t.status.type===r.XUj.InProgress;return v?(0,s.jsx)(o.t1,{hasCTA:m}):p&&c.ZN.includes(p)&&!f?null:g?j?(0,s.jsx)(d.A,{eventId:t.id,isLive:y,isEleveated:x}):h:n[p]||null}},49937:(e,t,n)=>{n.d(t,{R:()=>x});var s=n(6029),r=n(41249),i=n(55729),l=n(90248),a=n(65789),o=n(62859),d=n(54409),c=n(62827),u=n(71046);function x(){let{event:e}=(0,i.useContext)(o.y$),t=e.statusReason?"event.statusReason":(0,c.ux)(e)?"status.finalResultOnly":(0,u.WY)(e)?"event.coverageDowngradeInfo":void 0;return t?(0,s.jsx)(a.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(r.so,{br:"lg",px:"lg",py:"sm",align:"center",children:[(0,s.jsx)(d.G_L,{width:24,height:24,fill:"onSurface.nLv3",mr:"lg",my:"auto"}),(0,s.jsx)(r.EY,{lineHeight:"100%",font:"body.small",children:(0,s.jsx)(l.A,{id:t,values:e.statusReason?{statusType:e.status.type,statusReason:(0,c.ap)(e.statusReason)}:void 0})})]})}):null}},51883:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(28132);let o=l()(()=>n.e(9979).then(n.bind(n,39979)),{loadableGenerated:{webpack:()=>[39979]},ssr:!1});function d(e){let{hasRecommendedPrematchOdds:t}=e;return(0,s.jsx)(r.tU.Panel,{tabKey:a.H.FeaturedOdds,children:(0,s.jsx)(o,{preferRecommendedPrematch:t})})}},53235:(e,t,n)=>{n.d(t,{d:()=>_});var s=n(6029),r=n(41249),i=n(55729),l=n(45860),a=n(62859),o=n(8703),d=n(21377),c=n(90248);let u=e=>{let{shouldShowSets:t}=e;return(0,s.jsxs)(r.so,{py:"md",columnGap:["lg","md","xl"],children:[(0,s.jsx)(r.az,{grow:1}),t&&(0,s.jsx)(r.so,{w:32,justify:"center",children:(0,s.jsx)(r.EY,{font:"table.medium",color:"onSurface.nLv3",children:(0,s.jsx)(c.A,{id:"darts_sets"})})}),(0,s.jsx)(r.so,{w:32,justify:"center",children:(0,s.jsx)(r.EY,{font:"table.medium",color:"onSurface.nLv3",children:(0,s.jsx)(c.A,{id:"darts_legs"})})}),(0,s.jsx)(r.so,{w:32,justify:"center",children:(0,s.jsx)(r.EY,{font:"table.medium",color:"onSurface.nLv3",children:(0,s.jsx)(c.A,{id:"darts_points"})})})]})};var x=n(54409),h=n(87357),m=n(69759);let p=e=>{let{name:t,isThrowing:n}=e;return(0,s.jsxs)(r.so,{grow:1,columnGap:"xl",children:[(0,s.jsx)(r.EY,{font:"table.medium",children:t}),n&&(0,s.jsx)(x.v1,{fill:"sofaSingles.live"})]})},j=e=>{let{value:t}=e;return(0,s.jsx)(r.so,{w:32,justify:"center",children:(0,s.jsx)(r.EY,{font:"table.medium",color:"sofaSingles.live",children:t})})},g=e=>{let{name:t,score:n,isThrowing:i,shouldShowSets:l}=e,a=(0,h.U)(n);return(0,s.jsxs)(r.so,{direction:"row",columnGap:["lg","md","xl"],children:[(0,s.jsx)(p,{name:t,isThrowing:i}),l&&(0,s.jsx)(j,{value:n.display||0}),void 0!==a&&(0,s.jsx)(j,{value:a||0}),void 0!==n.point&&(0,s.jsx)(j,{value:n.point||m.I})]})};var f=n(8385);let v=()=>{let{event:e,leftTeam:t,rightTeam:n,leftScore:l,rightScore:o}=(0,i.useContext)(a.y$);if(e.status.type===d.XUj.InProgress&&void 0!==l.point&&void 0!==o.point&&void 0!==e.firstToServe){let i=void 0!==e.bestOfSets&&void 0!==l.display&&void 0!==o.display&&e.bestOfSets>1;return(0,s.jsxs)(r.so,{direction:"column",p:"md",bg:"surface.s2",br:"lg",children:[(0,s.jsx)(u,{shouldShowSets:i}),(0,s.jsx)(r.cG,{}),(0,s.jsxs)(r.so,{direction:"column",py:"md",rowGap:"lg",children:[(0,s.jsx)(g,{name:t.name,score:l,isThrowing:e.firstToServe===f.ai.Home,shouldShowSets:i}),(0,s.jsx)(g,{name:n.name,score:o,isThrowing:e.firstToServe===f.ai.Away,shouldShowSets:i})]})]})}return null},y=()=>{let{event:e}=(0,i.useContext)(a.y$);return(0,s.jsxs)(r.so,{direction:"column",rowGap:"md",px:"lg",children:[(0,s.jsxs)(r.so,{align:"center",columnGap:"md",children:[(0,s.jsx)(r.az,{w:8,h:8,br:"100%",backgroundColor:"secondary.default"}),(0,s.jsx)(r.EY,{color:"onSurface.nLv3",fontSize:12,lineHeight:1,children:(0,s.jsx)(c.A,{id:"darts_hold_of_throw",values:{name:e.homeTeam.name}})})]}),(0,s.jsxs)(r.so,{align:"center",columnGap:"md",children:[(0,s.jsx)(r.az,{w:8,h:8,br:"100%",backgroundColor:"primary.default"}),(0,s.jsx)(r.EY,{color:"onSurface.nLv3",fontSize:12,lineHeight:1,children:(0,s.jsx)(c.A,{id:"darts_hold_of_throw",values:{name:e.awayTeam.name}})})]}),(0,s.jsxs)(r.so,{align:"center",columnGap:"md",children:[(0,s.jsx)(r.az,{w:8,h:8,br:"100%",backgroundColor:"error.default"}),(0,s.jsx)(r.EY,{color:"onSurface.nLv3",fontSize:12,lineHeight:1,children:(0,s.jsx)(c.A,{id:"darts_break_of_throw"})})]})]})},b=e=>{let{point:t,color:n}=e;return(0,s.jsxs)(r.so,{direction:"column",align:"center",rowGap:"xs",children:[(0,s.jsx)(r.EY,{font:"display.small",fontWeight:"regular",fontSize:12,color:n.homeColor,children:t.homePoint}),(0,s.jsx)(r.EY,{font:"display.small",fontWeight:"regular",fontSize:12,color:n.awayColor,children:t.awayPoint})]})},w=e=>{let{leg:t}=e;return(0,s.jsx)(r.az,{display:"grid",grow:1,style:{gridTemplateColumns:"repeat(10, 1fr)",rowGap:"12px"},children:t.points.map((e,n)=>(0,s.jsx)(b,{point:e,color:(0,f.mn)(t,n)},n))})},S=e=>{let{player:t,score:n}=e;return n.throwing===t&&n.scoring===t?(0,s.jsx)(x.v1,{fill:t===f.ai.Home?"secondary.default":"primary.default"}):n.throwing===t&&n.scoring!==t?(0,s.jsx)(x.v1,{fill:"error.default"}):null},k=e=>{let{score:t,player:n}=e;return(0,s.jsxs)(r.so,{gap:["xs","0","sm"],children:[(0,s.jsx)(r.az,{w:16,children:(0,s.jsx)(S,{player:n,score:t})}),(0,s.jsx)(r.EY,{font:"table.medium",w:20,block:!0,align:"center",color:(0,f.Oz)(t,n),children:n===f.ai.Home?t.homeScore:t.awayScore})]})},C=e=>{let{leg:t,score:n}=e;return void 0===n.scoring?(0,s.jsxs)(r.so,{h:30,align:"center",columnGap:["xs","0","sm"],children:[(0,s.jsx)(r.az,{w:16}),(0,s.jsx)(r.EY,{color:"sofaSingles.live",font:"table.medium",w:20,block:!0,children:(0,s.jsx)(c.A,{id:"ordinal",values:{n:t}})})]}):(0,s.jsxs)(r.so,{align:"center",direction:"column",children:[(0,s.jsx)(k,{score:n,player:f.ai.Home}),(0,s.jsx)(k,{score:n,player:f.ai.Away})]})},A=e=>{let{leg:t}=e;return(0,s.jsxs)(r.so,{gap:["md","xs","md"],children:[(0,s.jsx)(C,{leg:t.leg,score:t.score}),(0,s.jsx)(r.cG,{vertical:!0}),(0,s.jsx)(w,{leg:t})]})},I=e=>{let{legs:t}=e;return(0,s.jsx)(r.so,{direction:"column",rowGap:"xl",children:[...t].reverse().map(e=>(0,s.jsx)(A,{leg:e},e.leg))})},L=e=>{let{pointByPoint:t,currentSet:n,setCurrentSet:i}=e;return t.length<=1?null:(0,s.jsx)(r.az,{children:(0,s.jsx)(r.tU,{variant:"secondary",value:n,onChange:i,children:(0,s.jsx)(r.tU.List,{scroll:!0,py:"xs",children:t.map(e=>(0,s.jsxs)(r.tU.Tab,{children:[(0,s.jsx)(c.A,{id:"ordinal",values:{n:e.set}})," ",(0,s.jsx)(c.A,{id:"set"})]},e.set))})})})},E=e=>{let{event:t}=(0,i.useContext)(a.y$),[n,s]=(0,i.useState)(1);return(0,i.useEffect)(()=>{t.status.type===d.XUj.InProgress&&s(e)},[t.status.type]),{currentSet:n,setCurrentSet:s}},P=e=>{let{pointByPoint:t}=e,{currentSet:n,setCurrentSet:i}=E(t.length);return(0,s.jsxs)(r.so,{direction:"column",rowGap:"lg",children:[(0,s.jsx)(L,{pointByPoint:t,currentSet:n,setCurrentSet:i}),(0,s.jsx)(I,{legs:t[n-1].legs}),(0,s.jsx)(r.cG,{}),(0,s.jsx)(y,{})]})},T=e=>{let{pointByPoint:t}=e;return(0,s.jsxs)(r.so,{direction:"column",gap:"xl",children:[(0,s.jsx)(v,{}),(0,s.jsx)(P,{pointByPoint:t})]})},_=()=>{let{event:e,location:t}=(0,i.useContext)(a.y$),{data:n}=(0,l.Ay)((0,f.fK)(e),(0,o.rf)(e));if(void 0!==n){let e=t===a.cb.Widget;return(0,s.jsx)(r.az,{bg:e?"surface.s2":"surface.s1",px:["sm",e?"sm":0],pb:"md",pt:["md",e?"md":0],elevation:[2,void 0],mt:["sm",e?"md":0],br:"lg",children:(0,s.jsx)(T,{pointByPoint:n.pointByPoint})})}return null}},55584:(e,t,n)=>{n.d(t,{A:()=>g});var s=n(21377),r=n(4967),i=n(55729),l=n(62859),a=n(83457),o=n(22835),d=n(73011),c=n(91631),u=n(86679),x=n(95519),h=n(96675),m=n(71046);let p=[s.QCR.Rugby],j=30*r.Z2;function g(e){let t=e.status.type===s.XUj.InProgress,n=e.status.type===s.XUj.NotStarted,g=(0,a.j)(e.tournament.category.sport.slug),f=(0,i.useContext)(l.y$),{hasFeaturedOdds:v,hasOddsTab:y,hasWinningOdds:b}=(0,c.Q)(),w=(0,c.q)(),S=!!y||!!w,{hasScorecardTab:k,hasCricketIncidents:C,hasMedia:A,hasLAWData:I,hasHomeMMACareerStatistics:L,hasAwayMMACareerStatistics:E,hasLineups:P,hasStandings:T,hasWinProbability:_,hasStatistics:z,hasCommentary:R,hasESportsGames:Y}=(0,u.A)((0,m.Yx)(e,g),[e.id,g],{refreshInterval:(0,x.c)(e)?j:void 0,deduplicationInterval:t||n?j/2:2*r.pY}),{hasPregameTopPlayers:M}=(0,o.M)(e),D=void 0===P?f.initialHasLineups:P,{hasRecommendedPrematchOdds:H,hasRecommendedPrematchTopVotedOdds:W}=(0,h.A)(e),O=e.tournament.category.sport.slug,N=O===s.QCR.ESports&&(0,m.f2)(e.tournament.category.id),F=!!(d.bU.includes(O)&&e.hasEventPlayerStatistics),G=(D||M)&&!N;return{hasCricketIncidents:!!C,hasScorecardTab:!!k,hasOversTab:!!C,hasGraphsTab:!!C,hasCommentaryTab:!!R&&O!==s.QCR.IceHockey,hasGamesTab:!!Y,hasBoxScoreTab:G&&F,hasLineupsTab:G&&!F||!!D&&p.includes(O),hasStatisticsTab:!!z||O===s.QCR.MMA&&L&&E||!!_,hasPlayByPlayTab:!!R&&O===s.QCR.IceHockey,hasStandingsTab:!!T&&!!e.season,hasMatchesTab:!0,hasFeaturedOdds:v,hasAdditionalOddsTab:S,hasWinningOdds:!!b,hasFeaturedOddsTab:!S&&(H||W),hasMediaTab:A||!!I&&t,isSpecialEsports:N,hasPregameTopPlayers:M,hasRecommendedPrematchOdds:H}}},55665:(e,t,n)=>{n.d(t,{A:()=>b,G:()=>v});var s=n(6029),r=n(33144),i=n(21377),l=n(44194),a=n(41249),o=n(55729),d=n(90248),c=n(494),u=n(45860),x=n(65789),h=n(62859),m=n(54409),p=n(75791),j=n(62213),g=n(2294),f=n(30720);let v=()=>{let{location:e}=(0,o.useContext)(h.y$);return(0,s.jsxs)(x.Zp,{isInverseDesktop:e!==h.cb.EventPage,children:[(0,s.jsx)(x.Zp.Header,{titleId:"odds"}),(0,s.jsx)(a.az,{h:88}),(0,s.jsx)(a.az,{h:88})]})},y=e=>{let{team:t,odds:n}=e,{isMobile:i}=(0,l.$c)(),[c,u]=(0,o.useState)(!i),x=n.actual>n.expected?"sofaSingles.value":"neutral.default";return(0,o.useEffect)(()=>{u(!i)},[i]),(0,s.jsxs)(a.az,{p:"md lg",onClick:i?()=>u(e=>!e):void 0,cursor:i?"pointer":void 0,children:[(0,s.jsxs)(a.so,{align:"center",justify:"space-between",children:[(0,s.jsxs)(a.so,{align:"center",gap:20,children:[(0,s.jsx)(a.az,{children:(0,s.jsx)(r.p,{size:28,id:t.id,name:t.name})}),(0,s.jsxs)(a.az,{color:"onSurface.nLv1",children:[(0,s.jsx)(p.c,{fractionalValue:n.fractionalValue}),"\xa0 \xa0 = \xa0 \xa0",n.expected,"%"]})]}),(0,s.jsxs)(a.so,{align:"center",gap:"lg",children:[(0,s.jsx)(a.az,{children:(0,s.jsx)(a.az,{h:"24px",bg:x,br:"sm",p:"xs sm",children:(0,s.jsxs)(a.EY,{font:"assistive.default",color:"surface.s1",letterSpacing:"-0.1px",children:["W: ",n.actual,"%"]})})}),i&&(0,s.jsx)(a.az,{children:(0,s.jsx)(m.zQC,{icon:"chevron-down",style:{transition:".2s transform",transform:"rotate(".concat(180*!!c,"deg)")},width:24,height:24,fill:"primary.default"})})]})]}),c&&(0,s.jsx)(a.EY,{as:"div",font:"body.medium",color:"onSurface.nLv1",pt:"md",lineHeight:"20px",letterSpacing:"-0.2px",children:(0,s.jsx)(d.A,{id:"winning_odds_text",values:{odds:(0,s.jsx)(p.c,{fractionalValue:n.fractionalValue}),expectedChance:"".concat(n.expected,"%"),actualChance:"".concat(n.actual,"%"),name:"".concat(t.name)}})})]})},b=function(e){let{isInWidget:t}=e,{event:n,leftTeam:r,rightTeam:l}=(0,o.useContext)(h.y$),a=(0,c.d4)((0,g.Ul)(n)),d=(0,c.d4)(g.BF),[m]=(0,c.d4)((0,g.Pf)()),p=a&&!d,{data:b,error:w,isLoading:S}=(0,u.Ay)(p&&m?i.bnp.winningOdds(n.id,m):null),k=p&&m&&m!==j.u3&&w,{data:C}=(0,u.Ay)(k?i.bnp.winningOdds(n.id,j.u3):null),[A,I]=(0,f.A)(b||C,"home","away");return p&&(A||I||S)?S?(0,s.jsx)(v,{}):(0,s.jsxs)(x.Zp,{isInverseDesktop:t,children:[(0,s.jsx)(x.Zp.Header,{titleId:"odds"}),A?(0,s.jsx)(y,{team:r,odds:A}):null,I?(0,s.jsx)(y,{team:l,odds:I}):null]}):null}},55862:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(28132);let o=l()(()=>Promise.all([n.e(7725),n.e(2654)]).then(n.bind(n,82654)),{loadableGenerated:{webpack:()=>[82654]},ssr:!1});function d(e){let{isInWidget:t}=e;return(0,s.jsx)(r.tU.Panel,{tabKey:a.H.Overs,children:(0,s.jsx)(o,{isInWidget:t})})}},57267:(e,t,n)=>{n.d(t,{j:()=>k});var s=n(6029),r=n(41249),i=n(55729),l=n(21377),a=n(54409),o=n(8703),d=n(65078),c=n(16620),u=n(48886),x=n(70591),h=n(24159),m=n(48462);let p=e=>{let{time:t,reversedPeriodTime:n,reversedPeriodTimeSeconds:i,addedTime:a,sportSlug:d}=e;return t===l.yBP.UnknownIncidentTime?null:(0,s.jsx)(r.so,{direction:"column",minW:24,justify:"center",align:"center",children:(0,s.jsx)(r.EY,{font:"body.medium",color:"onSurface.nLv3",children:(0,s.jsx)(m.m,{time:(0,o.vJ)(d)?i||n:t,addedTime:a,formatSeconds:(0,o.vJ)(d)&&void 0!==i})})})},j=(e,t)=>{if(void 0!==t)return e===l.QCR.AussieRules?({behind:1,goal:6})[t]||"-":({onePoint:1,twoPoints:2,threePoints:3,fourPoints:4})[t]||"-"},g=e=>{let{sportSlug:t,incidentClass:n}=e,i={[l.QCR.Badminton]:(0,s.jsx)(a.Hj1,{sport:l.QCR.Badminton,width:24,height:24,fill:"secondary.default"}),[l.QCR.TableTennis]:(0,s.jsx)(a.Hj1,{sport:l.QCR.TableTennis,width:24,height:24,fill:"secondary.default"}),[l.QCR.Volleyball]:(0,s.jsx)(a.Hj1,{sport:l.QCR.Volleyball,width:24,height:24,fill:"secondary.default"})}[t];return(0,s.jsx)(r.so,{minW:32,h:32,w:32,align:"center",justify:"center",children:i||(0,s.jsx)(r.EY,{font:"display.large",color:"secondary.default",children:j(t,n)})})},f=e=>{let{incident:t,event:n}=e,i=t.player,l=n.tournament.category.sport.slug,a=(0,d.g3)(),{openEventPlayerStatistics:o}=(0,c.d)(),m=a?!t.isHome:t.isHome,[j,f]=(0,d.jr)(t,"homeScore","awayScore"),v=!!(null==i?void 0:i.shortName),y=n.hasEventPlayerStatistics&&i,b=y?()=>o({event:n,player:i},u._.Incidents):void 0;return(0,s.jsx)(x.uc,{player:!y&&(null==i?void 0:i.id)?i:void 0,sportSlug:l,children:(0,s.jsxs)(r.so,{direction:m?"row":"row-reverse",hoverBg:y?"surface.s2":void 0,cursor:y?"pointer":void 0,onClick:b,children:[(0,s.jsxs)(r.so,{flex:1,py:v?["sm","sm"]:["sm","xs"],h:v?[48,48]:[40,32],direction:m?"row":"row-reverse",overflow:"hidden",align:"center",children:[(0,s.jsx)(g,{sportSlug:l,incidentClass:t.incidentClass}),(0,s.jsx)(r.cG,{vertical:!0}),(0,s.jsxs)(r.so,{overflow:"hidden",direction:"column",justify:"center",align:m?"flex-start":"flex-end",pl:m?"md":0,pr:m?0:"md",children:[(0,s.jsx)(r.EY,{font:"display.small",color:"onSurface.nLv1",children:(0,s.jsxs)(s.Fragment,{children:[j," - ",f]})}),(null==i?void 0:i.shortName)&&(0,s.jsx)(r.EY,{w:"100%",font:"body.small",color:"onSurface.nLv3",align:m?"left":"right",ellipsis:!0,as:"div",children:(0,s.jsx)(h.c,{entity:i,short:!0})})]})]}),(0,s.jsx)(p,{...t,sportSlug:l}),(0,s.jsx)(r.az,{flex:1})]})})};var v=n(87763);function y(e){let{period:t,open:n,toggleOpen:i}=e,l=t.incidents.length?t.incidents[0]:null,o=(0,d.g3)(),c=o?null==l?void 0:l.awayScore:null==l?void 0:l.homeScore,u=o?null==l?void 0:l.homeScore:null==l?void 0:l.awayScore;return(0,s.jsxs)(r.so,{h:40,justify:"center",style:{userSelect:"none"},align:"center",onClick:i,cursor:"pointer",pt:"lg",pb:"sm",children:[(0,s.jsxs)(r.EY,{lineHeight:"100%",color:"onSurface.nLv3",font:"assistive.default",align:"center",as:"div",children:[(0,s.jsx)(v.fP,{id:t.periodIncident.text}),l&&" ".concat(c," - ").concat(u)]}),(0,s.jsx)(a.zQC,{icon:n?"chevron-up":"chevron-down",width:24,height:24,fill:"onSurface.nLv1",ml:"4px"})]})}function b(e){let{groupedIncidents:t,event:n}=e,[l,a]=(0,i.useState)(t.map((e,t)=>0===t)),o=e=>{a(l.map((t,n)=>n===e?!t:t))};return(0,s.jsx)(s.Fragment,{children:t.map((e,t)=>(0,s.jsxs)(i.Fragment,{children:[0!==t&&(0,s.jsx)(r.cG,{}),(0,s.jsx)(y,{period:e,open:l[t],toggleOpen:()=>o(t)}),l[t]&&(0,s.jsx)(r.az,{pb:"sm",children:e.incidents.map(e=>(0,s.jsx)(i.Fragment,{children:"overtimeBreak"===e.incidentType?(0,s.jsx)(r.cG,{}):(0,s.jsx)(f,{incident:e,event:n},e.id)},e.id))})]},e.periodIncident.text))})}var w=n(65789),S=n(34765);let k=e=>{let{event:t}=e,{incidents:n,isLoading:r}=(0,S.L)();if(r||!n.length)return null;let i=[];return n.forEach(e=>{if("period"===e.incidentType)i.push({incidents:[],periodIncident:e});else{if(!i.length)return;i[i.length-1].incidents.push(e)}}),(0,s.jsx)(w.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(b,{groupedIncidents:i,event:t})})}},58074:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(28132);let o=l()(()=>Promise.all([n.e(294),n.e(7239)]).then(n.bind(n,67239)),{loadableGenerated:{webpack:()=>[67239]},ssr:!1});function d(){return(0,s.jsx)(r.tU.Panel,{tabKey:a.H.Commentary,children:(0,s.jsx)(o,{})})}},58492:(e,t,n)=>{n.d(t,{d:()=>l});var s=n(494),r=n(151),i=n(2294);let l=e=>{var t,n;let l=(0,s.d4)(i.a5),a=(0,s.d4)(r.g);if(!l||!l.branded)return;let o=l.provider.id;return(null==a||null==(n=a.oddsTab)||null==(t=n[o])?void 0:t[e])?null==a?void 0:a.oddsTab[o]:null==a?void 0:a[e]}},58673:(e,t,n)=>{n.d(t,{_:()=>v});var s=n(6029),r=n(21377),i=n(44194),l=n(76356),a=n(41249),o=n(55729),d=n(947),c=n(90248),u=n(494),x=n(45860),h=n(65789),m=n(1815),p=n(76410),j=n(10794);let g=e=>{let{offer:t,noLink:n,children:r}=e;return n?(0,s.jsx)(s.Fragment,{children:r}):(0,s.jsx)("a",{target:"_blank",rel:"nofollow noopener noreferrer",href:t.url,onClick:()=>(0,p.p7)({id:t.id,location:"odds_tab"}),children:r})},f=e=>{let{offer:t}=e,n=(0,o.useRef)(null),u=(0,o.useRef)(null),[x,h]=(0,o.useState)(!1),j=(0,d.A)(),f=(0,m.e)(()=>(0,p.fb)({id:t.id,location:"odds_tab"}),{delay:500});(0,o.useEffect)(()=>{if(!(null==n?void 0:n.current)||x)return;let e=new ResizeObserver(()=>{h(!u.current||0===u.current.clientWidth)});return e.observe(n.current),h(!u.current||0===u.current.clientWidth),()=>{e.disconnect()}},[x]);let v=x?j.formatMessage({id:"odds_turn_off_adblocker"},{providerName:t.signupLink.providerName}):t.cta,y=x?void 0:t.disclaimer;return(0,s.jsxs)(l.so,{ref:f,br:"sm",bg:{base:"surface.s0",md:"surface.s1"},direction:"column",p:"sm",gap:"sm",children:[(0,s.jsx)(l.az,{textStyle:"assistive.default",color:"neutrals.nLv1",children:v}),y&&(0,s.jsx)(l.az,{textStyle:"body.small",color:"neutrals.nLv3",children:y}),(0,s.jsx)(l.cG,{color:"neutrals.nLv4",borderBlockEndStyle:"solid"}),(0,s.jsxs)(l.so,{h:"xl",justify:"space-between",children:[(0,s.jsx)(g,{offer:t,noLink:x,children:(0,s.jsx)(a._V,{src:r.Oaq.signupLinkLogo(t.signupLink.id),h:24,alt:t.signupLink.providerName})}),(0,s.jsx)(l.az,{ref:n,children:(0,s.jsx)(g,{offer:t,noLink:x,children:(0,s.jsx)(i.$n,{ref:u,size:"tertiary",disabled:x,children:t.button||(0,s.jsx)(c.A,{id:"claim_your_bonus_button"})})})})]})]})},v=()=>{let e=(0,u.d4)(j.LQ),{data:t}=(0,x.Ay)(e?r.Oaq.countryOffers(e):null);return(null==t?void 0:t.signupLinks.length)?(0,s.jsx)(h.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(l.az,{p:"sm",children:[(0,s.jsx)(l.so,{h:"2xl",px:"sm",align:"center",children:(0,s.jsx)(i.EY,{color:"neutrals.nLv1",textStyle:"display.medium",children:(0,s.jsx)(c.A,{id:"bet_boost_special_offer"})})}),(0,s.jsx)(l.so,{direction:"column",gap:"sm",children:null==t?void 0:t.signupLinks.map(e=>(0,s.jsx)(f,{offer:e},e.id))})]})}):null}},59280:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(6029),r=n(41249),i=n(28132),l=n(44407);function a(e){let{event:t,isInWidget:n}=e;return(0,s.jsx)(r.tU.Panel,{tabKey:i.H.Statistics,children:(0,s.jsx)(l.Y,{event:t,isInWidget:n})})}},62102:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(28132);let o=l()(()=>Promise.resolve().then(n.bind(n,33007)),{loadableGenerated:{webpack:()=>[33007]},ssr:!1});function d(){return(0,s.jsx)(r.tU.Panel,{tabKey:a.H.BoxScore,children:(0,s.jsx)(o,{})})}},65693:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(6029),r=n(76356),i=n(65789);function l(e){let{isInverseDesktop:t}=e;return(0,s.jsxs)(i.Zp,{isInverseDesktop:t,children:[(0,s.jsx)(i.Zp.Header,{titleId:"featured_players"}),(0,s.jsx)(r.az,{h:"[384px]"})]})}},70088:(e,t,n)=>{n.d(t,{Jk:()=>v,D_:()=>y.D});var s=n(6029),r=n(44194),i=n(76356),l=n(9127),a=n(90248),o=n(54409),d=n(21377),c=n(494),u=n(45860),x=n(10794),h=n(52827),m=n(45749),p=n(95868);let j=(0,l.m)(i.az),g=()=>(0,s.jsxs)(i.so,{justify:"space-between",align:"center",w:"4xl",h:"lg",pl:"sm",pr:"xs",br:"sm",bg:"surface.s1",position:"absolute",top:"sm",right:"sm",children:[(0,s.jsx)(r.EY,{textStyle:"assistive.default",color:"status.live",lineHeight:1,children:(0,s.jsx)(a.A,{id:"live"})}),(0,s.jsx)(j,{w:"md",h:"md",br:"md",border:"[1px solid]",borderColor:"status.live",position:"absolute",right:"2xs",animate:{opacity:[0,1,0],scale:[.1,.7,1.2]},transition:{type:"tween",duration:1,repeat:1/0,ease:"easeOut"}}),(0,s.jsx)(i.az,{w:"sm",h:"sm",br:"sm",ml:"xs",bg:"status.live"})]}),f=e=>{let{containerId:t,eventHighlights:n,isLive:l}=e;(0,m.P)({containerId:t,storyIds:n.map(e=>e.sdkId)});let d=(0,h.i)(t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.az,{ref:d,id:t,h:"100%",position:"absolute"}),(0,s.jsxs)(i.az,{w:"100%",h:"100%",br:"lg",bg:"overlay.darken1",position:"absolute",style:{pointerEvents:"none"},children:[(0,s.jsx)(i.az,{px:"sm",py:"xs",bg:"overlay.darken1",position:"absolute",left:"[0px]",bottom:"lg",children:(0,s.jsx)(r.EY,{textStyle:"display.small",color:"onColor.primary",children:(0,s.jsx)(a.A,{id:"highlights"})})}),(0,s.jsx)(o.reY,{w:"48px",h:"48px",fill:"onColor.primary",top:"50%",left:"50%",position:"absolute",style:{transform:"translate(-50%, -50%)"}}),l&&(0,s.jsx)(g,{})]})]})};function v(e){let{eventId:t,isLive:n,location:r,tournamentId:l,roundId:a,screen:o,type:h}=e,m=(0,p.MB)({type:h,location:r,tournamentId:l,roundId:a,screen:o,eventId:t}),{eventHighlights:j,isError:g}=function(e){let{eventId:t}=e,n=(0,c.d4)(x.LQ),{data:s,isLoading:r,error:i}=(0,u.Ay)(n?d.vCt.countryVideoHighlights(n):null);return{eventHighlights:null==s?void 0:s.sportVideoHighlights.filter(e=>{var n;return(null==(n=e.game)?void 0:n.eventId)===t}),isError:i,isLoading:r}}({eventId:t});if(g||!(null==j?void 0:j.length))return null;let v=j[0].storyThumbnailUrl;return(0,s.jsxs)(i.so,{justify:"center",h:"[210px]",bg:"surface.s0",br:"lg",position:"relative",children:[(0,s.jsx)(i.az,{w:"100%",h:"100%",br:"lg",position:"absolute",overflow:"hidden",children:(0,s.jsx)(i.az,{w:"100%",h:"100%",br:"lg",position:"absolute",overflow:"hidden",bgSize:"[100% 100%]",bgPosition:"center",filter:"auto",blur:"[25px]",scale:"auto",scaleX:"[1.5]",scaleY:"[1.5]",style:{backgroundImage:"url(".concat(v,")")}})}),(0,s.jsx)(f,{containerId:m,eventHighlights:j,isLive:n})]})}var y=n(71484)},73365:(e,t,n)=>{n.d(t,{c:()=>d});var s=n(6029),r=n(44194),i=n(76356),l=n(90248),a=n(65789),o=n(54409);let d=e=>{let{messageId:t}=e;return(0,s.jsx)(a.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(i.so,{align:"center",w:"100%",gap:"sm",py:"sm",px:"lg",children:[(0,s.jsx)(o.G_L,{fill:"onSurface.nLv3"}),(0,s.jsx)(r.EY,{textStyle:"assistive.default",display:"block",color:"neutrals.nLv3",lineHeight:"16px",children:(0,s.jsx)(l.A,{id:t})})]})})}},73624:(e,t,n)=>{n.d(t,{Hy:()=>j,lZ:()=>f,vA:()=>g,xw:()=>o});var s=n(21377),r=n(494),i=n(29911),l=n(8476),a=n(10794);function o(){let e=(0,r.d4)(a.aD),t=(0,r.d4)(e=>e.locale),n=(0,r.wA)();return()=>new Promise((r,a)=>{(async()=>{try{let a=e.uuid||(0,i.A)(),{token:o}=await s.win.fetchToken(a,t.geoIPAlpha2,t.region);n((0,l.AR)(o,a)),r(o)}catch(e){a()}})()})}var d=n(1815),c=n(76410),u=n(6029),x=n(78383),h=n.n(x),m=n(55729);let p=(0,m.createContext)({impressionSent:!1,setImpressionSent:h(),streamUrl:void 0,setStreamUrl:h()});function j(e){let[t,n]=(0,m.useState)(!1),[s,r]=(0,m.useState)(void 0),i=(0,m.useMemo)(()=>({impressionSent:t,setImpressionSent:n,streamUrl:s,setStreamUrl:r}),[t,s]);return(0,u.jsx)(p.Provider,{value:i,children:e.children})}function g(){return(0,m.useContext)(p)}function f(e,t){let{impressionSent:n,setImpressionSent:s}=g();return(0,d.e)(()=>{n||((0,c.Z4)(e,t?"autostarted":void 0),s(!0))})}},75126:(e,t,n)=>{n.d(t,{n:()=>l});var s=n(6029),r=n(32523),i=n(41249);let l=e=>{let{withScoreGraph:t,...n}=e;return(0,s.jsx)(i.az,{pt:t?"124px":"76px",pb:"28px",children:(0,s.jsx)(r.E,{uniqueKey:"win-probability-cl",animate:!0,height:80,br:"sm",...n})})}},76277:(e,t,n)=>{n.d(t,{x:()=>c});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(65789),o=n(34765);let d=l()(()=>n.e(5635).then(n.bind(n,85635)),{loadableGenerated:{webpack:()=>[85635]}});function c(){let{incidents:e,isLoading:t,isError:n}=(0,o.L)();return t||(null==e?void 0:e.length)&&!n?(0,s.jsx)(a.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(r.az,{h:"356px",children:t?null:(0,s.jsx)(d,{incidents:e})})}):null}},77540:(e,t,n)=>{n.d(t,{U:()=>g});var s=n(6029),r=n(55729),i=n(90248),l=n(62859),a=n(96675),o=n(44194),d=n(76356),c=n(494),u=n(54409),x=n(76410),h=n(2294),m=n(2496),p=n(41618);let j=e=>{let{children:t,onClick:n}=e,i=(0,c.d4)(h.a5),a=null==i?void 0:i.provider,{event:j}=(0,r.useContext)(l.y$);(0,r.useEffect)(()=>{(0,x.pq)(j.id)},[j.id]);let g=(0,r.useCallback)(()=>{null==n||n()},[j.id,n]);return a?(0,s.jsxs)(m.A,{onClick:g,children:[(0,s.jsx)(d.az,{position:"absolute",top:"[6px]",children:(0,s.jsx)(p.r,{})}),(0,s.jsxs)(d.so,{align:"center",justify:"center",color:"primary.default",gap:"xs",children:[(0,s.jsx)(o.EY,{textStyle:"display.small",color:"primary.default",children:t}),(0,s.jsx)(u.CCT,{fill:"primary.default"})]})]}):null},g=e=>{let{onClick:t}=e,{event:n}=(0,r.useContext)(l.y$),{hasRecommendedPrematchOdds:o,hasRecommendedPrematchTopVotedOdds:d}=(0,a.A)(n);return o||d?(0,s.jsx)(j,{onClick:t,children:(0,s.jsx)(i.A,{id:"featured_odds"})}):null}},79085:(e,t,n)=>{n.d(t,{E:()=>ei});var s=n(6029),r=n(21377),i=n(99397),l=n(44194),a=n(21501),o=n(76356),d=n(55729),c=n(90248),u=n(45860),x=n(65789),h=n(62859),m=n(65078),p=n(16620),j=n(48886),g=n(24159);let f=["points","rebounds","assists","steals","blocks"],v={points:"points_short",rebounds:"basketball_lineups_rebounds",assists:"basketball_lineups_assists",steals:"basketball_lineups_steals",blocks:"basketball_lineups_blocks"};var y=n(41735),b=n(54409),w=n(69385);let S=e=>{let{messageKey:t,isClickable:n}=e;return(0,s.jsxs)(l.EY,{w:"100%",color:"primary.default",textStyle:"assistive.default",textTransform:"capitalize",textAlign:"center",px:"xs",display:"block",truncate:!0,children:[(0,s.jsx)(o.I4.span,{hideBelow:"md",children:(0,s.jsx)(c.A,{id:t})}),(0,s.jsx)(o.I4.span,{hideFrom:"md",children:(0,s.jsx)(c.A,{id:"controls.more"})}),n&&(0,s.jsx)(b.zQC,{icon:"chevron-right",ml:"2px",width:16,height:16,fill:"primary.default"})]})},k=e=>{let{value:t,label:n,isReversed:r}=e;return"rating"===n?(0,s.jsx)(i.G,{rating:t}):(0,s.jsxs)(o.so,{align:"center",direction:r?"row-reverse":"row",children:[(0,s.jsx)(l.EY,{textStyle:"table.large",mr:r?void 0:"xs",children:t}),(0,s.jsx)(l.EY,{textStyle:"assistive.default",textTransform:"uppercase",mr:r?"xs":void 0,children:n})]})},C=e=>{let{name:t,isReversed:n}=e;return(0,s.jsx)(l.EY,{w:"1/2",textStyle:"assistive.default",color:"neutrals.nLv3",display:"block",textAlign:n?"right":"left",truncate:!0,children:t})};function A(e){let{event:t,onClick:n,messageKey:l="player_stats"}=e,a=(0,d.useContext)(y.ThemeContext),{data:c,error:h}=(0,u.Ay)(r.bnp.bestPlayers(t.id)),m=(0,w.A)(),p=m?null==c?void 0:c.bestAwayTeamPlayer:null==c?void 0:c.bestHomeTeamPlayer,j=m?null==c?void 0:c.bestHomeTeamPlayer:null==c?void 0:c.bestAwayTeamPlayer;return h?null:(0,s.jsx)(x.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(o.az,{minH:"5xl",p:"sm",children:p&&j&&(0,s.jsxs)(o.so,{h:"100%",w:"100%",justify:"space-between",onClick:n,cursor:n?"pointer":"default",children:[(0,s.jsx)(i.t,{id:p.player.id,name:p.player.name,size:40,style:{border:"1px solid ".concat(a.colors.onSurface.nLv4)}}),(0,s.jsx)(o.az,{h:"100%",w:"3/4",flexGrow:1,px:"sm",children:(0,s.jsxs)(o.so,{w:"100%",h:"100%",direction:"column",justify:"space-between",children:[(0,s.jsxs)(o.so,{w:"100%",justify:"space-between",children:[(0,s.jsx)(k,{value:p.value,label:p.label}),(0,s.jsx)(S,{messageKey:l,isClickable:!!n}),(0,s.jsx)(k,{value:j.value,label:j.label,isReversed:!0})]}),(0,s.jsxs)(o.so,{w:"100%",justify:"space-between",children:[(0,s.jsx)(C,{name:(0,s.jsx)(g.c,{entity:p.player})}),(0,s.jsx)(C,{name:(0,s.jsx)(g.c,{entity:j.player}),isReversed:!0})]})]})}),(0,s.jsx)(i.t,{id:j.player.id,name:j.player.name,size:40,style:{border:"1px solid ".concat(a.colors.onSurface.nLv4)}})]})})})}function I(e){let{player:t,rating:n}=e,{event:r}=(0,d.useContext)(h.y$),{openEventPlayerStatistics:a}=(0,p.d)();return(0,s.jsxs)(o.ov,{flexDirection:"column",gap:"lg",pt:"sm",position:"relative",w:"[84px]",children:[(0,s.jsxs)(o.so,{justify:"center",position:"relative",cursor:"pointer",onClick:()=>a({event:r,player:t},j._.TopPlayers),children:[(0,s.jsx)(i.t,{id:t.id,name:t.name,size:48}),n&&(0,s.jsx)(o.az,{position:"absolute",left:"xl",top:"3xl",transform:"translateX(-50%)",children:(0,s.jsx)(i.G,{rating:n,size:"sm"})})]}),(0,s.jsx)(l.EY,{textStyle:"display.micro",textAlign:"center",truncate:!0,children:(0,s.jsx)(g.c,{entity:t,short:!0})})]})}function L(e){let{stat:t,leftValue:n,rightValue:r}=e;return(0,s.jsxs)(o.so,{justify:"space-between",children:[(0,s.jsx)(l.EY,{display:"block",textStyle:"display.small",w:"lg",children:n}),(0,s.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(c.A,{id:v[t]})}),(0,s.jsx)(l.EY,{display:"block",textStyle:"display.small",w:"lg",textAlign:"right",children:r})]})}function E(e){let{event:t,onClick:n}=e,{data:i,error:l,isLoading:d}=(0,u.Ay)(r.bnp.bestPlayers(t.id)),c=(0,a.hX)(),h=(0,m.g3)(),p=h?null==i?void 0:i.bestAwayTeamPlayer:null==i?void 0:i.bestHomeTeamPlayer,j=h?null==i?void 0:i.bestHomeTeamPlayer:null==i?void 0:i.bestAwayTeamPlayer;if((c||d)&&t.status.type===r.XUj.Finished)return(0,s.jsx)(x.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(o.az,{h:"9xl",p:"lg",boxSizing:"content-box"})});if(!p||!j||l)return null;let g=p.additionalStatistics,v=j.additionalStatistics;if(g&&v&&f.every(e=>void 0!==g[e]&&void 0!==v[e])){var y,b;return(0,s.jsx)(x.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(o.so,{p:"lg",justify:"space-between",_before:{content:'""',display:"block",position:"absolute",w:"8xl",h:"xl",top:"lg",left:"lg",borderTop:"1px solid {colors.neutrals.nLv4}",borderLeft:"1px solid {colors.neutrals.nLv4}"},_after:{content:'""',display:"block",position:"absolute",w:"8xl",h:"xl",top:"lg",right:"lg",borderTop:"1px solid {colors.neutrals.nLv4}",borderRight:"1px solid {colors.neutrals.nLv4}"},children:[(0,s.jsx)(I,{player:p.player,rating:null==(y=p.additionalStatistics)?void 0:y.rating}),(0,s.jsx)(o.so,{direction:"column",gap:"2xs",w:"10xl",children:f.map(e=>(0,s.jsx)(L,{stat:e,leftValue:g[e],rightValue:v[e]},e))}),(0,s.jsx)(I,{player:j.player,rating:null==(b=j.additionalStatistics)?void 0:b.rating})]})})}return(0,s.jsx)(A,{event:t,onClick:n})}var P=n(23727),T=n(70591),_=n(71046);let z=e=>{let{value:t,label:n,isReversed:r}=e;return"rating"===n?(0,s.jsx)(i.G,{rating:t}):(0,s.jsxs)(o.so,{align:"center",direction:r?"row-reverse":"row",children:[(0,s.jsx)(l.EY,{textStyle:"table.large",mr:r?void 0:"xs",children:t}),(0,s.jsx)(l.EY,{textStyle:"assistive.default",textTransform:"uppercase",mr:r?"xs":void 0,children:n})]})},R=e=>{let{event:t,bestPlayers:n}=e;return(0,s.jsx)(o.so,{direction:"column",gap:"xs",w:"1/2",px:"sm",children:n.length?n.map(e=>(0,s.jsx)(M,{event:t,bestPlayer:e},e.player.id)):Array.from({length:3}).map((e,n)=>(0,s.jsx)(Y,{event:t},n))})},Y=e=>{let{event:t,bestPlayer:n}=e,{openEventPlayerStatistics:r}=(0,p.d)();return(0,s.jsx)(T.uc,{onClick:n?e=>{e.preventDefault(),r({event:t,player:n.player},j._.HighestRatedPlayers)}:void 0,player:null==n?void 0:n.player,sportSlug:t.tournament.category.sport.slug,children:(0,s.jsx)(o.so,{bg:{base:"surface.s2",md:"surface.s1"},_hover:{bg:"surface.sp"},br:"xs",h:"3xl",align:"center",px:"sm",gap:"sm",children:n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.t,{id:n.player.id,name:n.player.name,size:24}),(0,s.jsx)(l.EY,{textStyle:"body.small",flexGrow:1,lineClamp:2,children:(0,s.jsx)(g.c,{entity:n.player})}),(0,s.jsx)(z,{value:n.value,label:n.label})]})})})},M=(0,d.memo)(Y,(e,t)=>{var n,s,r,i;return(null==(n=e.bestPlayer)?void 0:n.player.id)===(null==(s=t.bestPlayer)?void 0:s.player.id)&&(null==(r=e.bestPlayer)?void 0:r.value)===(null==(i=t.bestPlayer)?void 0:i.value)});function D(e){let{event:t,onCtaClick:n,hideCta:i}=e,{data:l,isLoading:a}=(0,u.Ay)(r.bnp.bestPlayersSummary(t.id),(0,_.rf)(t)),d=(null==l?void 0:l.bestHomeTeamPlayers)||[],c=(null==l?void 0:l.bestAwayTeamPlayers)||[];return(d.length&&c.length||a)&&(!a||t.status.type!==r.XUj.NotStarted)?(0,s.jsxs)(x.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(x.Zp.Header,{titleId:"highest_rated_players"}),(0,s.jsxs)(o.so,{pt:"sm",children:[(0,s.jsx)(R,{event:t,bestPlayers:d}),(0,s.jsx)(R,{event:t,bestPlayers:c})]}),(0,s.jsx)(x.Zp.Footer,{ctaParams:i?void 0:{messageId:"see_all",onClick:n,icon:P.X.Right}})]}):null}var H=n(24985);let W=["GLS","AST","+/-","PIM","TOI"],O=["SV%","SAV","SHT","SH"],N=e=>{let{position:t}=e,n="G"===t?O:W;return(0,s.jsxs)(o.so,{px:"lg",pt:"md",children:[(0,s.jsx)(o.az,{w:"[148px]"}),(0,s.jsx)(o.so,{justify:"flex-end",grow:1,children:n.map((e,t)=>(0,s.jsxs)(d.Fragment,{children:[(0,s.jsx)(o.so,{justify:"center",flexGrow:0,flexShrink:0,flexBasis:"2xl",children:(0,s.jsx)(l.EY,{textStyle:"tab.secondary",color:"neutrals.nLv3",children:e})}),t{let{prevPlayer:t,currentPlayer:n}=e;if(void 0===t)return(0,s.jsx)(N,{position:n.position});let r=F.includes(t.position);return r!==F.includes(n.position)?(0,s.jsx)(N,{position:n.position}):null};var U=n(50154);let Q=e=>{let{data:t}=e,{isAdsTestTreatment:n}=(0,U.Q)();return(0,s.jsxs)(o.so,{direction:"column",justify:"center",gap:"xs",children:[(0,s.jsxs)(o.so,{gap:"xs",children:[(0,s.jsx)(b.aGI,{w:16,h:16,fill:"sofaSingles.value"}),t.gameStar?(0,s.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"lowercase",children:(0,s.jsx)(c.A,{id:"ordinalPeriod.short",values:{n:t.gameStar}})}):null]}),(0,s.jsx)(l.EY,{textStyle:"body.medium",w:{base:"7xl",sm:"10xl",md:"7xl",lg:n?"7xl":"10xl"},truncate:!0,children:t.player.shortName})]})};var B=n(94446),Z=n(93338);let $=e=>"G"===e?"playerPosition.goalkeeper":"D"===e?"playerPosition.defender":"playerPosition.forward",X=e=>{let{data:t}=e;return(0,s.jsxs)(o.az,{position:"relative",w:"3xl",h:"3xl",children:[(0,s.jsx)(B.t,{id:t.player.id,name:t.player.name,size:40}),(0,s.jsx)(o.az,{position:"absolute",bottom:"[0px]",left:"[0px]",w:"lg",h:"lg",children:(0,s.jsx)(B.p,{id:t.teamId,size:16})}),(0,s.jsx)(o.az,{position:"absolute",bottom:"[0px]",right:"[0px]",br:"lg",style:{backgroundColor:Z.S.var("colors.".concat($(t.position)))},w:"lg",h:"lg",textAlign:"center",children:(0,s.jsx)(l.EY,{textStyle:"display.micro",color:"onColor.primary",children:t.position})})]})};var q=n(4967);let K=e=>{let{stats:t}=e;return(0,s.jsx)(o.so,{grow:1,justify:"flex-end",h:"lg",children:[t.goals,t.assists,t.plusMinus,t.penaltyMinutes,(0,q.OV)(t.secondsPlayed)].map((e,t)=>(0,s.jsx)(o.ov,{flexGrow:0,flexShrink:0,flexBasis:"2xl",position:"relative",mr:"2xs",children:(0,s.jsx)(l.EY,{position:"absolute",children:e})},t))})},V=e=>{let{stats:t}=e;return(0,s.jsx)(o.so,{grow:1,justify:"flex-end",h:"lg",children:[t.savePercentage,t.saves,t.shotsAgainst,t.shortHandedSaves].map((e,t)=>(0,s.jsx)(o.ov,{flexGrow:0,flexShrink:0,flexBasis:"2xl",position:"relative",mr:"2xs",children:(0,s.jsx)(l.EY,{position:"absolute",children:e})},t))})},J=e=>{let{position:t,stats:n}=e;return n?"G"===t?(0,s.jsx)(V,{stats:n}):(0,s.jsx)(K,{stats:n}):null},ee=e=>{let{data:t,headerColumns:n}=e,{event:r}=(0,d.useContext)(h.y$),{openEventPlayerStatistics:i}=(0,p.d)();return(0,s.jsxs)(s.Fragment,{children:[n,(0,s.jsxs)(o.so,{h:"4xl",py:"xs",px:"lg",align:"flex-end",cursor:"pointer",onClick:()=>{i({event:r,player:t.player},j._.StarPlayer)},children:[(0,s.jsxs)(o.so,{gap:"sm",align:"flex-end",children:[(0,s.jsx)(X,{data:t}),(0,s.jsx)(Q,{data:t})]}),(0,s.jsx)(J,{position:t.position,stats:t.statistics})]})]})},et=e=>{let{stars:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map((e,n)=>(0,s.jsx)(ee,{data:e,headerColumns:(0,s.jsx)(G,{prevPlayer:t[n-1],currentPlayer:e})},e.player.id))})},en=e=>{let{stars:t,onViewBoxScoreClick:n}=e;return(0,s.jsxs)(x.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(x.Zp.Header,{titleId:"game_stars_title"}),(0,s.jsxs)(o.so,{direction:"column",pb:n?void 0:"md",children:[(0,s.jsx)(et,{stars:t}),n&&(0,s.jsxs)(l.EY,{textStyle:"display.small",color:"primary.default",textAlign:"center",lineHeight:"16px",cursor:"pointer",py:"md",onClick:n,children:[(0,s.jsx)(c.A,{id:"game_stars_box_score_button"}),(0,s.jsx)(b.CCT,{fill:"currentColor",ml:"xs"})]})]})]})},es=(e,t)=>{let{left:n,right:s}=t,{homeTeam:r,awayTeam:i}=e;return[...n.players.map(e=>({...e,teamId:r.id})),...s.players.map(e=>({...e,teamId:i.id}))].filter(e=>e.gameStar).sort((e,t)=>e.gameStar&&t.gameStar?e.gameStar-t.gameStar:-1)},er=e=>{let{event:t,onClick:n,...i}=e,{lineups:l,isLoading:d}=(0,H.Ir)();if(((0,a.hX)()||d)&&t.status.type===r.XUj.Finished)return(0,s.jsx)(x.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(o.az,{h:"[224px]"})});if(!l)return null;let c=es(t,l);return 0===c.length?(0,s.jsx)(A,{event:t,onClick:n,...i}):(0,s.jsx)(en,{stars:c,onViewBoxScoreClick:n})},ei=e=>{let{event:t,onClick:n,hideCta:i}=e,{slug:l}=t.tournament.category.sport;if(t.hasEventPlayerStatistics)switch(l){case r.QCR.Football:return(0,s.jsx)(D,{event:t,onCtaClick:n,hideCta:i});case r.QCR.Basketball:return(0,s.jsx)(E,{event:t,onClick:n});case r.QCR.IceHockey:return(0,s.jsx)(er,{event:t,onClick:n,hideCta:i});default:return(0,s.jsx)(A,{event:t,onClick:n})}return null}},80224:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(6029),r=n(41249),i=n(55729),l=n(70591),a=n(24159),o=n(62859),d=n(54053);let c=e=>{let{isOpen:t,setIsOpen:n,players:c,onPlayerClick:u}=e,{event:x}=(0,i.useContext)(o.y$);if(!(null==c?void 0:c.length))return null;let h=(e,t)=>{u&&(e.preventDefault(),u(t))};return(0,s.jsx)(d.A,{isOpen:t,setIsOpen:n,header:(0,s.jsx)(r.az,{h:"md"}),children:c.map(e=>(0,s.jsx)(l.uc,{sportSlug:x.tournament.category.sport.slug,player:e,onClick:t=>x.hasEventPlayerStatistics&&h(t,e),children:(0,s.jsx)(r.az,{minW:167,hoverBg:"surface.s2",children:(0,s.jsx)(r.EY,{lineHeight:"32px",px:"xl",py:"sm",font:"body.medium",color:"onSurface.nLv1",whiteSpace:"nowrap",hover:!0,as:"div",onClick:()=>{n(!1)},children:(0,s.jsx)(a.c,{entity:e})})})},e.id))})}},82070:(e,t,n)=>{n.d(t,{U:()=>o});var s=n(6029),r=n(32523),i=n(41249),l=n(90248),a=n(54409);let o=()=>(0,s.jsxs)(i.az,{children:[(0,s.jsx)(r.E,{uniqueKey:"tennis-power-cl",br:"lg",height:148,mb:"sm",animate:!0}),(0,s.jsxs)(i.so,{position:"relative",bg:"surface.s2",br:"lg",justify:"space-between",align:"center",p:"sm",children:[(0,s.jsxs)(i.az,{hoverBg:"onSurface.nLv5",px:"sm",py:"xs",br:"md",cursor:"pointer",children:[(0,s.jsxs)(i.EY,{as:"div",font:"body.medium",color:"onSurface.nLv1",children:[(0,s.jsx)(l.A,{id:"event.tennisPower.title"}),(0,s.jsx)(a.G_L,{width:"16",height:"16",ml:"xs"})]}),(0,s.jsx)(i.EY,{as:"div",font:"body.small",color:"onSurface.nLv3",children:(0,s.jsx)(l.A,{id:"event.tennisPower.description"})})]}),(0,s.jsx)(i.az,{mr:"md",children:(0,s.jsx)(i.lM,{checked:!1})})]})]})},83457:(e,t,n)=>{n.d(t,{j:()=>d,q:()=>c});var s=n(21377),r=n(55729),i=n(45860),l=n(62859),a=n(8703),o=n(26331);let d=e=>{var t;let n=(0,o.A)().substring(0,2);if(null==(t=s.DcR[e])?void 0:t.includes(n))return n};function c(e){let{event:t}=(0,r.useContext)(l.y$),n=d(t.tournament.category.sport.slug),{data:o}=(0,i.Ay)(n?s.bnp.commentary(t.id,n):null,(0,a.rf)(t)),c=[];return{textCommentary:null==o?void 0:o.comments.reduce((e,t)=>(t.periodName&&(c.find(e=>e===t.periodName)?e[t.periodName].push(t):(c.unshift(t.periodName),e[t.periodName]=[t])),e),e?{all:null==o?void 0:o.comments}:{}),periods:e?["all",...c]:c}}},83736:(e,t,n)=>{n.d(t,{u:()=>d});var s=n(6029),r=n(21377),i=n(41249),l=n(55729),a=n(65789),o=n(62859);let d=()=>{let{event:e}=(0,l.useContext)(o.y$);return void 0!==e.detailId&&1!==e.detailId?null:(0,s.jsxs)(s.Fragment,{children:[e.status.type!==r.XUj.NotStarted&&(0,s.jsx)(a.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(i.az,{h:136})}),(0,s.jsx)(i.az,{h:48,display:["none","block"],br:"lg",bg:"surface.s2"})]})}},84974:(e,t,n)=>{n.d(t,{v:()=>v});var s=n(6029),r=n(33144),i=n(21377),l=n(41249),a=n(90248),o=n(45860),d=n(65789),c=n(26331),u=n(84942),x=n(7309),h=n(96224),m=n(55729),p=n(41735);let j=[0,.35,.55,.8,1],g=e=>{let{typeKey:t,teamId:n,distributions:i}=e,o="scoredGoals"===t?{message:"details.scored",color:"success.default"}:{message:"details.conceded",color:"error.default"},d=Math.max(...i.periods.map(e=>{var n;return null!=(n=e[t])?n:0})),c=function(e,t){let n=(0,m.useContext)(p.ThemeContext),s=function(e){let t=[0];if(e<4)for(let n=1;n<=e;n++)t.push(n);else{let n=Math.floor(e/4),s=e%4;for(let e=1;e<=4;e++){for(let s=0;snull==e?void 0:e[t],n.colors);return function(e){let t,i=s[e];return 0===i?n.setAlpha(n.colors.neutral.default,.75):n.setAlpha(r,j[i])}}(t,d);return(0,s.jsxs)(l.so,{align:"center",mb:"xxs",children:[(0,s.jsxs)(l.so,{grow:1,justify:"space-between",align:"center",mr:"sm",children:[(0,s.jsxs)(l.az,{children:[(0,s.jsx)(r.p,{id:n,size:l.xI.xl,style:{verticalAlign:"middle"}}),(0,s.jsx)(l.EY,{ml:"sm",font:"table.medium",color:"onSurface.nLv1",children:(0,s.jsx)(a.A,{id:o.message})})]}),(0,s.jsx)(l.EY,{block:!0,font:"display.small",color:o.color,children:i[t]})]}),i.periods.map((e,n)=>{var r;let i;0===n?i="scoredGoals"===t?{borderTopLeftRadius:l.xI.xs}:{borderBottomLeftRadius:l.xI.xs}:5===n&&(i="scoredGoals"===t?{borderTopRightRadius:l.xI.xs}:{borderBottomRightRadius:l.xI.xs});let a=null!=(r=e[t])?r:0,o=c(a);return(0,s.jsx)(l.az,{alignSelf:"center",h:"xl",w:"xl",pt:"3",pb:"xxs",mr:2===n?2:void 0,bg:o,textAlign:"center",style:i,children:(0,s.jsx)(l.EY,{font:"display.small",color:"surface.s1",align:"center",children:a})},e.id)})]})},f=e=>{var t,n;let{event:r,home:i,away:o,overall:d=!1}=e,h=(0,c.A)(),m=(0,x.w)(r.tournament),p=i.find(e=>d?"overall"===e.type:"home"===e.type),j=o.find(e=>d?"overall"===e.type:"away"===e.type);return p&&j?(0,s.jsxs)(l.az,{p:"lg",pb:"sm",children:[(0,s.jsx)(g,{typeKey:"scoredGoals",teamId:r.homeTeam.id,distributions:p}),(0,s.jsx)(g,{typeKey:"concededGoals",teamId:r.awayTeam.id,distributions:j}),(0,s.jsx)(l.az,{h:"lg"}),(0,s.jsx)(g,{typeKey:"scoredGoals",teamId:r.awayTeam.id,distributions:j}),(0,s.jsx)(g,{typeKey:"concededGoals",teamId:r.homeTeam.id,distributions:p}),(0,s.jsx)(l.az,{position:"relative",h:"lg",children:(0,s.jsx)(l.az,{position:"absolute",w:"150",style:{top:0,right:-2},children:(0,s.jsx)(l.EY,{font:"table.medium",color:"onSurface.nLv3",children:(0,s.jsxs)(l.so,{justify:"space-between",children:[(0,s.jsx)(l.az,{position:"relative",left:-l.xI.xs,children:"00'"}),(0,s.jsx)(l.az,{position:"relative",left:-l.xI.xs,children:"15'"}),(0,s.jsx)(l.az,{position:"relative",left:-l.xI.xxs,children:"30'"}),(0,s.jsx)(l.az,{children:"45'"}),(0,s.jsx)(l.az,{position:"relative",left:l.xI.xxs,children:"60'"}),(0,s.jsx)(l.az,{position:"relative",left:l.xI.xs,children:"75'"}),(0,s.jsx)(l.az,{position:"relative",left:l.xI.xs,children:"90'"})]})})})}),(0,s.jsx)(l.az,{as:"p",children:(0,s.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(a.A,{id:"details.goalDistribution",values:{homeTeam:(0,u.s)(r.homeTeam,h),awayTeam:(0,u.s)(r.awayTeam,h),homeMatchesCount:p.matches,awayMatchesCount:j.matches,tournament:m,hasSeason:!!(null==(t=r.season)?void 0:t.year),season:null==(n=r.season)?void 0:n.year}})})})]}):null};function v(e){var t,n;let{event:r,isInWidget:c=!1}=e,u=null==(t=r.tournament.uniqueTournament)?void 0:t.id,x=null==(n=r.season)?void 0:n.id,{data:m,isLoading:p}=(0,o.Ay)(u&&x?i.cWY.goalDistributions(r.homeTeam.id,u,x):null),{data:j,isLoading:g}=(0,o.Ay)(u&&x?i.cWY.goalDistributions(r.awayTeam.id,u,x):null);return p||g?(0,s.jsx)(h.A,{}):m&&j?(0,s.jsx)(d.Zp,{isInverseDesktop:c,children:(0,s.jsxs)(l.tU,{variant:"secondary",children:[(0,s.jsxs)(l.az,{pl:"lg",pt:"sm",children:[(0,s.jsx)(l.tU.Tab,{children:(0,s.jsx)(a.A,{id:"basic.all"})}),(0,s.jsx)(l.tU.Tab,{children:(0,s.jsx)(a.A,{id:"details.homeAway"})})]}),(0,s.jsx)(l.tU.Panel,{children:(0,s.jsx)(f,{event:r,home:m.goalDistributions,away:j.goalDistributions,overall:!0})}),(0,s.jsx)(l.tU.Panel,{children:(0,s.jsx)(f,{event:r,home:m.goalDistributions,away:j.goalDistributions})})]})}):null}},85009:(e,t,n)=>{n.d(t,{d:()=>A});var s=n(6029),r=n(21377),i=n(44194),l=n(76356),a=n(41249),o=n(55729),d=n(947),c=n(494),u=n(45860),x=n(65789),h=n(76868),m=n(55938),p=n(32523),j=n(4967),g=n(54409),f=n(1815),v=n(76410);let y=e=>{let{count:t,isPositive:n}=e,r=n?g.URl:g.fHS;return(0,s.jsxs)(l.so,{border:"1px solid {colors.neutrals.nLv4}",align:"center",p:"xs",h:"xl",br:"xs",gap:"xs",children:[(0,s.jsx)(r,{width:16,height:16,fill:n?"success.default":"error.default"}),(0,s.jsx)(l.az,{textStyle:"assistive.default",color:"neutrals.nLv3",children:t})]})},b=e=>{let{channel:t}=e;return(0,s.jsx)(l.az,{textStyle:"display.small",color:t.link?"primary.default":"neutrals.nLv1",truncate:!0,children:t.name})},w=e=>{let{channel:t}=e,n=(0,f.e)(()=>(0,v.ke)({action:"impression",location:"event_details",type:"banner_channel_".concat(t.id)}),{delay:500,sendInterval:30*j.Z2});return t.link?(0,s.jsx)(i.Mz,{href:t.link,target:"_blank",rel:"noopener",overflow:"hidden",onClick:()=>{(0,v.ke)({action:"click",location:"event_details",type:"banner_channel_".concat(t.id)})},children:(0,s.jsxs)(l.so,{ref:n,align:"center",gap:"xs",children:[(0,s.jsx)(b,{channel:t}),(0,s.jsx)(l.az,{h:"lg",w:"lg",children:(0,s.jsx)(g.HW5,{h:16,w:16})})]})}):(0,s.jsx)(b,{channel:t})};function S(e){let{channelId:t,type:n,eventId:i}=e,{data:a}=(0,u.Ay)(r.RMf.eventChannelVotes(t,n,i));return a?(0,s.jsxs)(l.so,{px:"lg",py:"sm",align:"center",justify:"space-between",gap:"xs",children:[(0,s.jsxs)(l.so,{grow:1,align:"center",overflow:"hidden",gap:"sm",children:[(0,s.jsx)(l.az,{w:"xl",h:"xl",children:(0,s.jsx)(g.oIR,{w:24,h:24,fill:"onSurface.nLv1"})}),(0,s.jsx)(w,{channel:a.tvChannelVotes.tvChannel})]}),(0,s.jsxs)(l.so,{w:"fit",align:"center",justify:"flex-end",gap:"sm",children:[(0,s.jsx)(y,{count:a.tvChannelVotes.upvote||0,isPositive:!0}),(0,s.jsx)(y,{count:a.tvChannelVotes.downvote||0})]})]}):(0,s.jsx)(p.E,{uniqueKey:"tv-channel-cl",my:"sm",height:24,br:"xs",animate:!0})}let k=e=>{let t=Date.now()/1e3;return e-604800t},C=(e,t)=>(null==e?void 0:e.alpha2)?(0,s.jsxs)(l.so,{align:"center",gap:"lg",children:[(0,s.jsx)("img",{style:{verticalAlign:"top"},src:"/static/images/flags/".concat(e.alpha2.toLowerCase(),".png"),width:24,height:24,alt:e.name},e.alpha2),!t&&(0,s.jsx)(i.EY,{textTransform:"capitalize",children:e.name.replace("-"," ")})]}):null;function A(e){var t;let{eventId:n,type:i,startTimestamp:p,isInWidget:j}=e,g=(0,d.A)(),f=(0,c.d4)(e=>{let{locale:t}=e;return t.geoIPAlpha2}),[v,y]=(0,o.useState)(f),{data:b,isLoading:w}=(0,u.Ay)(r.RMf.eventCountryChannels(i,n)),A=(0,o.useMemo)(()=>(null==b?void 0:b.countryChannels)?Object.keys(null==b?void 0:b.countryChannels).map(e=>({alpha2:e,name:g.formatMessage({id:(0,m.K_)(e)})})).sort((e,t)=>e.name>t.name?1:-1):[],[null==b?void 0:b.countryChannels]);if((0,o.useEffect)(()=>{y(f)},[f]),!(null==b?void 0:b.countryChannels)&&!w||void 0===p||!k(p))return null;let I=v&&!!(null==b||null==(t=b.countryChannels[v])?void 0:t.length);return(0,s.jsxs)(x.Zp,{isInverseDesktop:j,children:[(0,s.jsx)(x.Zp.Header,{titleId:"tv_channels",variant:"left-aligned",actionComponent:f&&(0,s.jsx)(a.ms,{items:A,renderItem:C,initialSelectedItem:{alpha2:f,name:g.formatMessage({id:(0,m.K_)(f)})},onSelectedItemChange:e=>{var t;return y(null==(t=e.selectedItem)?void 0:t.alpha2)},alignRight:!0})}),(0,s.jsx)(l.az,{py:"sm",children:I?b.countryChannels[v].map(e=>(0,s.jsx)(S,{type:i,channelId:e,eventId:n},e)):(0,s.jsx)(h.p,{graphic:"no-tv-events",descriptionMessageId:"tv_channels_no_votes",p:"md"})})]})}},90890:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(28132);let o=l()(()=>Promise.all([n.e(294),n.e(7752)]).then(n.bind(n,77752)),{loadableGenerated:{webpack:()=>[77752]},ssr:!1});function d(){return(0,s.jsx)(r.tU.Panel,{tabKey:a.H.PlayByPlay,children:(0,s.jsx)(r.az,{pr:"sm",children:(0,s.jsx)(o,{})})})}},91631:(e,t,n)=>{n.d(t,{Q:()=>m,q:()=>p});var s=n(21377),r=n(4967),i=n(55729),l=n(494),a=n(62859),o=n(62213),d=n(2294),c=n(10794),u=n(86679),x=n(95519);let h=30*r.Z2,m=()=>{let e=(0,l.d4)(c.LQ),{event:t}=(0,i.useContext)(a.y$),n=(0,l.d4)((0,d.Ul)(t)),[r,m]=(0,l.d4)((0,d.Pf)(t.status.type===s.XUj.InProgress)),p=(0,l.d4)(d.fq),j=e&&!p&&!o.fe.includes(e),{hasProviderOdds:g,hasFallbackProviderOdds:f,hasOddsTabProviderOdds:v,hasOddsTabFallbackProviderOdds:y,hasWinningOdds:b,hasFallbackProviderWinningOdds:w}=(0,u.A)({hasProviderOdds:{route:r?s.bnp.featuredOdds(t.id,r):void 0,skipCheck:!n||!r},hasFallbackProviderOdds:{route:m?s.bnp.featuredOdds(t.id,m):void 0,skipCheck:!n||!m},hasOddsTabProviderOdds:{route:r?s.bnp.hasAdditionalOdds(t.id,r):void 0,skipCheck:!n||!r||!j},hasOddsTabFallbackProviderOdds:{route:m?s.bnp.hasAdditionalOdds(t.id,m):void 0,skipCheck:!n||!m||!j},hasWinningOdds:{route:r?s.bnp.winningOdds(t.id,r):void 0,skipCheck:!n||!r},hasFallbackProviderWinningOdds:{route:r!==o.u3?s.bnp.winningOdds(t.id,o.u3):void 0,skipCheck:!n||!m}},[t.id,n,j,r,m],{refreshInterval:(0,x.c)(t)?h:void 0});return n?{hasFeaturedOdds:!!(g||f),hasOddsTab:!!(g?v:y),hasWinningOdds:!!(b||w)}:{hasFeaturedOdds:!1,hasOddsTab:!1}},p=()=>{let{event:e}=(0,i.useContext)(a.y$),t=(0,l.d4)(d.fq),n=(0,l.d4)(t=>(0,d.GD)(t,e.status.type===s.XUj.InProgress)),r={};null==n||n.forEach(n=>{r["provider".concat(n.oddsFromId)]={route:s.bnp.allOdds(e.id,n.oddsFromId),skipCheck:!t},n.fallbackProviderId&&(r["provider".concat(n.fallbackProviderId)]={route:s.bnp.allOdds(e.id,n.fallbackProviderId),skipCheck:!t})});let o=(0,u.A)(r,[e.id,t,n],{refreshInterval:(0,x.c)(e)?h:void 0});return null==n?void 0:n.every(e=>o["provider".concat(e.oddsFromId)]||o["provider".concat(e.fallbackProviderId)])}},91694:(e,t,n)=>{n.d(t,{Q:()=>m});var s=n(6029),r=n(21377),i=n(55729),l=n(947),a=n(494),o=n(62859),d=n(82578),c=n(28588),u=n(10794);let x={excluded:["CO","AL","BA","BG","HR","CY","CZ","SK","SI","EE","HU","LV","LT","MK","ME","CZ","RO","RS","UA"]},h={384:{included:["US","CA"]},480:{included:["US","CA"]},155:{included:["PE","ID","ZA","HT","MX","CO","US","EC","NG","FR","ES","GB","IT","PL","CL","IR","CG","TH"]},406:{included:["PE","BR","ID","US","TR","IT","NG","HT","MX","ZA","EC","TH"]},11539:x,11536:x,240:{included:["US","CA"]},34:{included:["US","CA"]},238:{included:["US","CA"]},52:{included:["US","CA"]}},m=e=>{var t,n;let{inWidget:x}=e,{event:m,leftTeam:p,rightTeam:j}=(0,i.useContext)(o.y$),g=(0,l.A)(),f=null==(t=m.tournament.uniqueTournament)?void 0:t.id,v=(0,a.d4)(u.LQ);if(!f||!v)return null;let y=h[f];return!y||(null==(n=y.excluded)?void 0:n.includes(v))||y.included&&!y.included.includes(v)?null:(0,s.jsx)(c.Q,{banner:{copy:{action:g.formatMessage({id:"learn_more_button"}),description:g.formatMessage({id:"banner_fanatiz_description"}),sectionTitle:g.formatMessage({id:"banner_fanatiz_title"})},type:d.x.CreativeBanner,background:d.j.EntityBackground,detailImageUrl:{ltr:"/static/images/fanatiz/tv-ltr.png",rtl:"/static/images/fanatiz/tv-rtl.png"},campaignName:"fanatiz",url:"https://fanatiz.jbbfvx.net/557X22"},isInverseDesktop:x,bgImageUrl:[r.cWY.image(p.id),r.cWY.image(j.id)],location:"event_details"})}},91941:(e,t,n)=>{n.d(t,{A:()=>x});var s=n(6029),r=n(41249),i=n(71024),l=n.n(i),a=n(65789),o=n(28132),d=n(70088);let c=l()(()=>Promise.resolve().then(n.bind(n,5884)),{loadableGenerated:{webpack:()=>[5884]},ssr:!1}),u=l()(()=>n.e(6523).then(n.bind(n,86523)),{loadableGenerated:{webpack:()=>[86523]},ssr:!1});function x(e){var t;let{event:n,isLive:i,isInWidget:l}=e;return(0,s.jsx)(r.tU.Panel,{tabKey:o.H.Media,children:(0,s.jsxs)(a.BU,{children:[(0,s.jsx)(d.Jk,{eventId:n.id,tournamentId:n.tournament.id,roundId:null==(t=n.roundInfo)?void 0:t.round,type:"single",screen:"mobile",isLive:i,location:d.D_.MediaTab}),i&&(0,s.jsx)(a.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(u,{eventId:n.id,useNativeFullscreen:!0})}),(0,s.jsx)(c,{eventId:n.id,hideTitle:!0,isInWidget:l})]})})}},92209:(e,t,n)=>{n.d(t,{i:()=>z});var s=n(6029),r=n(21377),i=n(76356),l=n(55729),a=n(62859),o=n(73365),d=n(1840),c=n(494),u=n(2294);let x=()=>{let e=(0,c.d4)(u.hB);return(0,s.jsx)(i.az,{p:"sm",children:null==e?void 0:e.map(e=>(0,s.jsx)(i.az,{h:"xl",w:"100%"},e.provider.id))})};var h=n(65789),m=n(52736),p=n(49821);let j=e=>{let{placement:t,odds:n}=e,r=(0,c.d4)(u.hB);return(0,s.jsx)(s.Fragment,{children:Object.keys(n).map(e=>(0,s.jsxs)(h.Zp,{isInverseDesktop:!0,children:[""!==e&&(0,s.jsx)(i.az,{h:"3xl",pt:"lg",px:"lg",textStyle:"display.micro",truncate:!0,color:"neutrals.nLv1",borderBottom:"[1px solid]",borderColor:"neutrals.nLv4",children:e}),(0,s.jsx)(i.az,{px:"lg",pt:"lg",pb:"sm",w:"100%",overflow:"hidden",children:null==r?void 0:r.map((r,i)=>{let l=n[e][i];return l?(0,s.jsx)(m.E,{countryOddsProvider:r,market:l,marketName:l.marketName,secondary:"mobile"===t,clickType:p.jF.Additional},r.provider.id):null})})]},e))})};var g=n(44194),f=n(21501),v=n(28600);let y="odds-market-selector";function b(e){let{isSelected:t,onClick:n,children:r}=e,[l,a]=(0,f.c9)([]);return(0,g.rF)(l,y,[t],()=>!!t),(0,s.jsx)(i.az,{ref:a,children:(0,s.jsx)(i.so,{h:"2xl",p:"sm",br:"sm",bg:t?"primary.highlight":"surface.s2",border:"[1.5px solid]",borderColor:t?"primary.highlight":"surface.s2",onClick:t?void 0:n,cursor:"pointer",justify:"center",align:"center",truncate:!0,textStyle:"tab.secondary",color:t?"primary.default":"neutrals.nLv1",textTransform:"uppercase",children:r})})}let w=e=>{let{selectionOptions:t,selected:n,setSelected:r,placement:l}=e,a=Object.keys(t);return a.length<2?null:(0,s.jsx)(i.so,{align:"center",p:"sm",bg:"surface.s1",borderBottom:"desktop"===l?void 0:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(g.tR,{scrollableContainerId:y,buttonStyle:"solid",children:(0,s.jsx)(i.so,{minW:"fit",justify:"flex-start",gap:"lg",children:a.map(e=>(0,s.jsx)(b,{onClick:()=>r({marketGroup:e,marketPeriod:t[e][0]}),isSelected:n.marketGroup===e,children:(0,s.jsx)(v.f,{id:e})},e))})})})};var S=n(87763);let k="odds-period-selector";function C(e){let{isSelected:t,onClick:n,children:r}=e,[l,a]=(0,f.c9)([]);return(0,g.rF)(l,k,[t],()=>!!t),(0,s.jsx)(i.az,{ref:a,children:(0,s.jsx)(i.so,{h:"2xl",p:"sm",px:"md",br:"xl",bg:"surface.s2",border:"[1.5px solid]",borderColor:t?"primary.default":"surface.s2",onClick:t?void 0:n,cursor:"pointer",justify:"center",align:"center",textStyle:"assistive.default",color:"neutrals.nLv1",truncate:!0,children:r})})}let A=e=>{let{selectionOptions:t,selected:n,setSelected:r,placement:l}=e,a=t[n.marketGroup];return!a||a.length<2?null:(0,s.jsx)(i.so,{align:"center",p:"sm",bg:"surface.s1",borderBottom:"desktop"===l?void 0:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(g.tR,{scrollableContainerId:k,buttonStyle:"solid",children:(0,s.jsx)(i.so,{minW:"fit",justify:"flex-start",gap:"lg",children:a.map(e=>(0,s.jsx)(C,{onClick:()=>r({marketGroup:n.marketGroup,marketPeriod:e}),isSelected:n.marketPeriod===e,children:(0,s.jsx)(S.fP,{id:e})},e))})})})},I=e=>{let{availableMarkets:t,isLoading:n,...r}=e;if(n)return(0,s.jsx)(i.az,{h:"10xl",w:"100%"});let l={};return t.forEach(e=>{l[e.marketGroup]||(l[e.marketGroup]=[]),l[e.marketGroup].includes(e.marketPeriod)||l[e.marketGroup].push(e.marketPeriod)}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w,{selectionOptions:l,...r}),(0,s.jsx)(A,{selectionOptions:l,...r})]})};var L=n(79263);let E=(e,t,n)=>{let s={};null==e||e.forEach((e,n)=>{var r;null==(r=e.markets)||r.forEach(e=>{let r=e.marketGroup;s[r]||(s[r]={});let i=e.marketPeriod;s[r][i]||(s[r][i]={});let l=e.choiceGroup||"";s[r][i][l]||(s[r][i][l]=[]);let a=s[r][i][l][n];a&&(a.isLive===t||e.isLive!==t)||(s[r][i][l][n]=e)})});let r=[];return Object.keys(s).forEach(e=>{Object.keys(s[e]).forEach(t=>{Object.keys(s[e][t]).forEach(i=>{let l=s[e][t][i];(!n||l.filter(Boolean).length>=n)&&r.push({choiceGroup:i,marketGroup:e,marketPeriod:t})})})}),{groupedOdds:s,availableMarkets:r}},P=(e,t)=>{var n;let[s,r]=(0,l.useState)({marketGroup:"1X2",marketPeriod:"Full time"}),i=(0,c.d4)(u.K),{data:a,error:o,isLoading:d}=(0,L.j)(e,t),{groupedOdds:x,availableMarkets:h}=E(null==a?void 0:a.providerOdds,t,i),m=null!=(n=h.find(e=>e.marketGroup===s.marketGroup&&e.marketPeriod===s.marketPeriod))?n:h[0];return(0,l.useEffect)(()=>{m&&r(e=>e.marketPeriod===m.marketPeriod&&e.marketGroup===m.marketGroup?e:m)},[null==m?void 0:m.marketPeriod,null==m?void 0:m.marketGroup]),{groupedOdds:x,availableMarkets:h,selected:s,setSelected:r,error:o,isLoading:d,oddsMayDiffer:null==a?void 0:a.oddsMayDiffer}};var T=n(58673),_=n(38136);let z=e=>{var t;let{placement:n}=e,{event:c}=(0,l.useContext)(a.y$),u=c.status.type===r.XUj.InProgress,{availableMarkets:h,groupedOdds:m,selected:p,setSelected:g,isLoading:f}=P(c.id,u),v=null==m||null==(t=m[p.marketGroup])?void 0:t[p.marketPeriod];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(I,{availableMarkets:h,selected:p,setSelected:g,placement:n,isLoading:f}),(0,s.jsxs)(i.so,{direction:"column",gap:"sm",p:"sm",pt:"desktop"===n?"0":"sm",children:[(0,s.jsx)(i.so,{justify:"flex-end",pt:"sm",children:(0,s.jsx)(_.V,{})}),v?(0,s.jsx)(j,{placement:n,odds:v,selected:p}):f?(0,s.jsx)(x,{}):(0,s.jsx)(o.c,{messageId:"odds_currently_unavailable"}),(0,s.jsx)(T._,{}),(0,s.jsx)(d.z,{})]})]})}},93902:(e,t,n)=>{n.d(t,{W:()=>q});var s=n(6029),r=n(98423),i=n(21377),l=n(4967),a=n(21501),o=n(41249),d=n(55729),c=n(90248),u=n(90510),x=n(41735),h=n(45860),m=n(54409),p=n(98449),j=n(76356),g=n(82203),f=n.n(g),v=n(494),y=n(62859),b=n(26331),w=n(88339),S=n(76410),k=n(25862),C=n(94704);let A=e=>{let{name:t,startDate:n,children:r,isClickable:i=!0}=e,{event:l}=(0,d.useContext)(y.y$),a=(0,b.A)(),o=(0,v.d4)(w.$F),c=!!(null==o?void 0:o.id),u=(0,v.wA)(),x=(0,C.oY)(l,a),h=(0,C.GY)(t,n,x);return i&&c?(0,s.jsx)(f(),{href:h,target:"_blank",onClick:()=>{(0,S.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},children:r}):(0,s.jsx)(j.az,{onClick:()=>{c||u((0,k.aS)()),(0,S.ke)({action:"click",location:"event_screen",type:"add_to_calendar_button"})},children:r})},I=[1,2,3,5,7],L=e=>{let{cupMatchesInRound:t}=e;return t&&I.indexOf(t)>-1?(0,s.jsx)(o.EY,{font:"body.medium",color:"onSurface.nLv1",children:(()=>{switch(t){case 1:return(0,s.jsx)(c.A,{id:"single_leg"});case 2:return(0,s.jsx)(c.A,{id:"twoLegs"});case 3:case 5:case 7:return(0,s.jsx)(c.A,{id:"esports.bestOf",values:{numberOfGames:t}});default:return null}})()}):null};var E=n(65078),P=n(70591),T=n(28971),_=n(2974),z=n(11773),R=n(24159),Y=n(75327),M=n(27424),D=n(85685),H=n(47530),W=n(27289),O=n(94604),N=n(67628),F=n(10234),G=n(52695),U=n(65789),Q=n(23727);let B=["international","europe","africa","asia","oceania"],Z=(e,t)=>(Math.round(e/t*100)/100).toFixed(2),$=e=>{let{graphic:t,title:n,titleValues:r,value:i,secondary:l,isClickable:a,isEmptyGraphic:d,ctaText:u,...x}=e;return i?(0,s.jsxs)(o.so,{hoverBg:a?"surface.s2":void 0,align:"center",px:"lg",py:"sm",...x,children:[t||(d?(0,s.jsx)(o.az,{w:"16px",h:"16px"}):null),(0,s.jsxs)(o.so,{direction:"column",justify:"center",ml:"sm",children:[(0,s.jsx)(o.EY,{font:"body.small",color:"onSurface.nLv3",lineHeight:"16px",letterSpacing:"-0.2px",children:(0,s.jsx)(c.A,{id:n,values:r})}),(0,s.jsx)(o.EY,{font:"body.medium",color:"onSurface.nLv1",lineHeight:"16px",letterSpacing:"-0.2px",overflow:"hidden",children:i}),l]}),a&&(0,s.jsxs)(o.so,{ml:"auto",pl:"sm",children:[u,(0,s.jsx)(m.CCT,{fill:"primary.default"})]})]}):null},X=e=>{let{event:t}=e,[n,l]=(0,E.jr)(t,"homeTeam","awayTeam"),a=t.tournament.category.sport.slug,d=n.gender&&l.gender&&n.gender===l.gender?n.gender:void 0,u=a===i.QCR.Football&&n.national&&l.national?"FIFA ":a===i.QCR.Tennis&&d?d===i.YT8.Male?"ATP ":"WTA ":"";return"number"!=typeof(null==n?void 0:n.ranking)||"number"!=typeof(null==l?void 0:l.ranking)?null:(0,s.jsxs)(o.az,{children:[(0,s.jsxs)(o.EY,{px:"lg",pt:"14px",pb:"6px",align:"left",font:"display.micro",block:!0,children:[u,(0,s.jsx)(o.EY,{font:"display.micro",children:(0,s.jsx)(c.A,{id:"rankings"})})]}),(0,s.jsxs)(o.so,{children:[(0,s.jsx)(P.gT,{team:n,sport:a,style:{width:"50%"},children:(0,s.jsxs)(o.so,{hoverBg:"surface.s2",px:"lg",py:"sm",children:[(0,s.jsx)(r.p,{id:n.id,name:n.name,size:40,mr:"lg"}),(0,s.jsxs)(o.az,{children:[(0,s.jsx)(o.EY,{block:!0,mb:"xs",color:"primary.default",children:0!==n.ranking||a!==i.QCR.MMA?"#".concat(n.ranking):(0,s.jsx)(c.A,{id:"fighter_ranking_mma"})}),(0,s.jsx)(o.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(O.Rm,{team:n})})]})]})}),(0,s.jsx)(P.gT,{team:l,sport:a,style:{width:"50%"},children:(0,s.jsxs)(o.so,{hoverBg:"surface.s2",justify:"flex-end",px:"lg",py:"sm",children:[(0,s.jsxs)(o.az,{children:[(0,s.jsx)(o.EY,{block:!0,mb:"xs",color:"primary.default",children:0!==l.ranking||a!==i.QCR.MMA?"#".concat(l.ranking):(0,s.jsx)(c.A,{id:"fighter_ranking_mma"})}),(0,s.jsx)(o.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(O.Rm,{team:l})})]}),(0,s.jsx)(r.p,{id:l.id,name:l.name,size:40,ml:"lg"})]})})]})]})};function q(e){var t,n,j,g,f;let{event:v,showTournamentInfo:y,isInWidget:b}=e,w=(0,a.hX)(),S=(0,d.useContext)(x.ThemeContext),k=v.tournament.uniqueTournament&&v.tournament.uniqueTournament.id,C=v.season&&v.season.id,{venue:I,referee:E,refereeName:O,attendance:q,tossWin:K,tossDecision:V,umpire1Name:J,umpire2Name:ee,tvUmpireName:et,manOfMatch:en}=v,es=v.status.type===i.XUj.NotStarted,er=es&&!!v.finalResultOnly,{data:ei}=(0,h.Ay)(y&&k&&C?i.V3t.info(k,C):null),el={};ei&&(el.tier=ei.info.tier,el.numberOfCompetitors=ei.info.numberOfCompetitors,el.totalPrizeMoneyRaw=ei.info.totalPrizeMoneyRaw);let ea=E||K||V||J||ee||et||en,eo=I||q,ed=el.tier||el.numberOfRounds||el.totalPrizeMoneyRaw,ec=new Date(1e3*v.startTimestamp),eu=(null==E?void 0:E.games)&&"number"==typeof E.yellowCards&&"number"==typeof E.redCards&&"number"==typeof E.yellowRedCards,ex=v.tournament.category.sport.slug,eh=v.tournament.category.sport.slug===i.QCR.MMA,em=!!v.tournament.category.flag&&(B.includes(v.tournament.category.flag)||v.tournament.category.flag.includes("america"));return v.startTimestamp||v.tournament.uniqueTournament||ea||eo||ed?w?null:(0,s.jsxs)(s.Fragment,{children:[en&&(0,s.jsx)(U.Zp,{isInverseDesktop:b,children:(0,s.jsx)(P.uc,{player:en,sportSlug:ex,children:(0,s.jsx)($,{graphic:(0,s.jsx)(m.NcS,{icon:"player",fill:"onSurface.nLv1"}),title:"details.manOfMatch",value:en.name,isClickable:!0,py:"xs",br:"sm"})})}),(0,s.jsx)(U.Zp,{isInverseDesktop:b,children:(0,s.jsxs)(o.az,{py:["sm","md"],children:[(0,s.jsx)(A,{name:"".concat(v.homeTeam.name," - ").concat(v.awayTeam.name),startDate:v.startTimestamp,isClickable:es&&!er,children:(0,s.jsx)($,{graphic:(0,s.jsx)(m.E8x,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"date_and_time",cursor:es&&!er?"pointer":"default",value:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.XU,{value:ec,...l.or.fullDateWithLongYear}),(0,s.jsx)(o.az,{display:"inline-block",w:"4px",h:"4px",br:"50%",bg:"onSurface.nLv1",mx:"sm",position:"relative",top:"-3px"}),(0,s.jsx)(u.XU,{value:ec,hour:"numeric",minute:"numeric"})]}),ctaText:es&&!er?(0,s.jsx)(o.EY,{font:"assistive.default",color:"primary.default",lineHeight:"16px",mr:"xs",children:(0,s.jsx)(c.A,{id:"add_to_calendar"})}):void 0,isClickable:es&&!er})}),(0,s.jsx)(P.Mq,{tournament:v.tournament,seasonId:null==(t=v.season)?void 0:t.id,children:(0,s.jsx)($,{graphic:(0,s.jsx)(r.e,{id:null==(n=v.tournament.uniqueTournament)?void 0:n.id,size:16}),title:"basic.competition",value:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(W.o,{sportSlug:ex}),","," ",!em&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.m,{...v.tournament.category,uniqueTournament:v.tournament.uniqueTournament}),","," "]}),eh&&(0,s.jsxs)(s.Fragment,{children:[v.tournament.uniqueTournament&&(0,s.jsx)(G.O,{uniqueTournament:v.tournament.uniqueTournament}),", "]}),(0,s.jsx)(F.J,{tournament:v.tournament}),v.roundInfo&&(0,s.jsxs)(s.Fragment,{children:[", ",(0,s.jsx)(H.DT,{round:v.roundInfo})," "]}),v.cupMatchesInRound&&(0,s.jsxs)(s.Fragment,{children:["- ",(0,s.jsx)(L,{cupMatchesInRound:v.cupMatchesInRound})]}),v.bestOfSets&&v.bestOfSets>1&&(0,s.jsxs)(s.Fragment,{children:[", ",(0,s.jsx)(c.A,{id:"darts_best_of_number_of_sets",values:{n:v.bestOfSets}})]}),v.bestOfSets&&1===v.bestOfSets&&v.bestOfLegs&&v.bestOfLegs>1&&(0,s.jsxs)(s.Fragment,{children:[", ",(0,s.jsx)(c.A,{id:"darts_best_of_number_of_legs",values:{n:v.bestOfLegs}})]})]}),isClickable:!0})}),(null==I?void 0:I.city)&&I.hidden&&(0,s.jsx)($,{graphic:(0,s.jsx)(m.fRZ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"venue",value:null==I?void 0:I.stadium.name}),(null==I?void 0:I.city)&&I.hidden&&(0,s.jsx)($,{graphic:(0,s.jsx)(o._V,{src:"/static/images/flags/".concat(null==(j=I.country.alpha2)?void 0:j.toLowerCase(),".png"),w:"16px",h:"16px",alt:I.country.alpha2}),title:"location",value:(0,s.jsxs)(s.Fragment,{children:[I.city.name,(null==I?void 0:I.country.slug)&&(0,s.jsxs)(s.Fragment,{children:[", ",(0,s.jsx)(c.A,{id:I.country.slug,defaultMessage:I.country.name})]})]})}),v.groundType&&(0,s.jsx)($,{graphic:(0,s.jsx)(o.az,{bg:z.sf[v.groundType],w:16,h:16,br:"50%"}),title:"groundType",value:(0,s.jsx)(N.n,{id:v.groundType})}),eh&&(0,s.jsxs)(s.Fragment,{children:[v.weightClass&&(0,s.jsx)($,{graphic:(0,s.jsx)(m.KnJ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"division",value:(0,s.jsx)(Y.L,{weightClass:v.weightClass})}),v.fightDiscipline&&(0,s.jsx)($,{graphic:(0,s.jsx)(m.KnJ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"football_discipline",value:(0,s.jsx)(M.A,{id:v.fightDiscipline})})]}),(0,s.jsx)($,{graphic:(0,s.jsx)(m.$cJ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"attendance",value:q}),E?(0,s.jsx)(T.A,{referee:E,children:(0,s.jsx)($,{graphic:(0,s.jsx)(m.UPv,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"referee",value:(0,s.jsxs)(o.so,{align:"center",gap:"xs",pb:"xxs",children:[(0,s.jsx)(o.EY,{font:"body.medium",color:"onSurface.nLv1",lineHeight:"16px",letterSpacing:"-0.2px",overflow:"hidden",children:(0,s.jsx)(R.c,{entity:E})}),!!E.country&&(0,s.jsx)(o._V,{src:"/static/images/flags/".concat(null==(g=E.country.alpha2)?void 0:g.toLowerCase(),".png"),w:"16px",h:"16px",alt:E.country.alpha2})]}),secondary:eu&&(0,s.jsxs)(o.EY,{as:"div",font:"body.medium",color:"onSurface.nLv1",lineHeight:"16px",letterSpacing:"-0.2px",children:[(0,s.jsx)(c.A,{id:"average_cards"}),(0,s.jsx)(m.PhV,{width:"16px",height:"16px",fill:S.colors.error.default,ml:"sm",mr:"xs"}),Z((E.redCards||0)+(E.yellowRedCards||0),E.games),(0,s.jsx)(m.PhV,{width:"16px",height:"16px",fill:S.colors.scoreRating.s65,ml:"sm",mr:"xs"}),E.yellowCards&&Z(E.yellowCards,E.games)]}),isClickable:!0})}):O&&(0,s.jsx)($,{graphic:(0,s.jsx)(m.UPv,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"referee",value:O}),K&&(0,s.jsx)($,{title:"details.tossWin",value:K,isEmptyGraphic:!0}),V&&(0,s.jsx)($,{title:"details.tossDecision",value:V,isEmptyGraphic:!0}),J&&(0,s.jsx)($,{title:"details.umpireN",titleValues:{n:1},value:J,isEmptyGraphic:!0}),ee&&(0,s.jsx)($,{title:"details.umpireN",titleValues:{n:2},value:ee,isEmptyGraphic:!0}),et&&(0,s.jsx)($,{title:"details.tvUmpire",value:et,isEmptyGraphic:!0}),(0,s.jsx)(X,{event:v})]})}),(null==I?void 0:I.city)&&!I.hidden&&(0,s.jsxs)(U.Zp,{isInverseDesktop:b,children:[(0,s.jsx)(U.Zp.Header,{titleId:"venue"}),(0,s.jsx)(o.az,{position:"absolute",top:"14px",right:"16px",children:(0,s.jsxs)(o.EY,{font:"table.small",color:"sofaSingles.value",children:[(0,s.jsx)(c.A,{id:"venue_new"}),"!"]})}),(0,s.jsx)($,{graphic:(0,s.jsx)(m.fRZ,{fill:"onSurface.nLv1",w:"16px",h:"16px"}),title:"basic.name",value:null==I?void 0:I.stadium.name}),(0,s.jsx)($,{graphic:(0,s.jsx)(o._V,{src:"/static/images/flags/".concat(null==(f=I.country.alpha2)?void 0:f.toLowerCase(),".png"),w:"16px",h:"16px",alt:I.country.alpha2}),title:"location",value:(0,s.jsxs)(s.Fragment,{children:[I.city.name,(null==I?void 0:I.country.name)&&I.country.slug&&(0,s.jsxs)(s.Fragment,{children:[", ",(0,s.jsx)(c.A,{id:I.country.slug,defaultMessage:I.country.name})]})]})}),(0,s.jsx)(_.A,{venue:I,children:(0,s.jsx)(U.Zp.Footer,{ctaParams:{messageId:"basic.seeMoreDetails",icon:Q.X.Right}})})]}),(el.winner||el.tier||el.numberOfCompetitors||el.totalPrizeMoneyRaw)&&(0,s.jsxs)(U.Zp,{isInverseDesktop:b,children:[(0,s.jsx)(U.Zp.Header,{titleId:"tournament_info"}),el.winner&&(0,s.jsx)($,{title:"tier",value:el.winner.name,px:"sm"}),el.tier&&(0,s.jsx)($,{title:"tier",value:el.tier,px:"sm"}),el.numberOfCompetitors&&(0,s.jsx)($,{title:"numberOfCompetitors",value:el.numberOfCompetitors,px:"sm"}),el.totalPrizeMoneyRaw&&(0,s.jsx)($,{title:"totalPrizeMoney",value:(0,s.jsx)(D.o,{parsedMoney:(0,i.oaz)(el.totalPrizeMoneyRaw)}),px:"sm"})]})]}):null}},94041:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(6029),r=n(21377),i=n(41249),l=n(71024),a=n.n(l),o=n(28132);let d=a()(()=>n.e(1712).then(n.bind(n,31712)),{loadableGenerated:{webpack:()=>[31712]},ssr:!1});function c(e){let{event:t}=e,n=t.status.type===r.XUj.InProgress;return(0,s.jsx)(i.tU.Panel,{tabKey:o.H.Scorecard,children:(0,s.jsx)(i.az,{bg:["surface.s0","surface.s1"],p:"sm",children:(0,s.jsx)(d,{event:t,isLive:n})})})}},94704:(e,t,n)=>{n.d(t,{GY:()=>l,oY:()=>a});var s=n(73088),r=n(30479);let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new Date(1e3*e);return n.setHours(n.getHours()+t),n.toISOString().replace(/-|:|\.\d+/g,"")},l=(e,t,n)=>{let s=new URLSearchParams({action:"TEMPLATE",text:e,dates:"".concat(i(t),"/").concat(i(t,2)),details:n});return"".concat("https://calendar.google.com/calendar/render","?").concat(s.toString())},a=(e,t)=>{let n=e.tournament.category.sport.slug;return"https://www.sofascore.com".concat(s.z.getTranslatedRoute(t,"event",{name:e.slug,id:e.customId,sport:n},(0,r.HL)({id:e.id})).route)}},96224:(e,t,n)=>{n.d(t,{A:()=>l});var s=n(6029),r=n(41249),i=n(65789);function l(){return(0,s.jsx)(i.Zp,{children:(0,s.jsx)(r.az,{h:272})})}},96675:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(21377),r=n(494),i=n(2294),l=n(86679);function a(e){let t=(0,r.d4)(i.BF),n=(0,r.d4)((0,i.bS)(e)),[a]=(0,r.d4)((0,i.Pf)()),o=e.tournament.id,d=e.tournament.category.sport.slug,c=t||!a||!n,{hasOdds:u,hasTopVoted:x}=(0,l.A)({hasOdds:{route:a?s.npy.recommendedPrematch(a,o):void 0,skipCheck:c},hasTopVoted:{route:a?s.npy.recommendedPrematchTopVoted(a,d):void 0,skipCheck:c}},[e.id,n,t,a,c]);return c?{hasRecommendedPrematchOdds:!1,hasRecommendedPrematchTopVotedOdds:!1}:{hasRecommendedPrematchOdds:!!u,hasRecommendedPrematchTopVotedOdds:!!x}}},97316:(e,t,n)=>{n.d(t,{w:()=>eH});var s=n(6029),r=n(21377),i=n(55729),l=n(65789),a=n(8703),o=n(41249),d=n(90248),c=n(62859),u=n(16620),x=n(48886),h=n(26331),m=n(80224),p=n(50154),j=n(65078),g=n(70591),f=n(78944),v=n(87763),y=n(84942),b=n(95543),w=function(e){return e.Scoring="scoring",e.Penalties="penalties",e}({});function S(e,t){return e.filter(e=>"penalties"===t?["suspension","period"].includes(e.incidentType):"suspension"!==e.incidentType)}let k=e=>{var t;let{suspension:n}=e,r=function(e){if(e&&"misconduct_10min"!==e.key)return e.severity}(n.iceHockeyPenaltyType),i=null==n||null==(t=n.iceHockeyPenaltyType)?void 0:t.key,l=n.duration?(0,b.M)(n.duration/60):void 0;return(0,s.jsxs)(o.EY,{font:"body.medium",mb:"xxs",children:[r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.H7,{id:r}),":"]})," ",i&&(0,s.jsx)(f.H7,{id:i}),l&&" | ".concat(l,"'")]})},C=e=>{let{suspension:t,locale:n,isLeft:r}=e,{player:i,suspensionDrawnByPlayer:l,suspensionServedByPlayer:a,iceHockeyPenaltyType:c}=t,u=i&&(0,y.s)(i,n),x=a&&(0,y.s)(a,n),h=l&&(0,y.s)(l,n);return(0,s.jsxs)(o.so,{direction:"column",py:"md",align:r?"flex-start":"flex-end",children:[(0,s.jsx)(k,{suspension:t}),u&&(0,s.jsx)(o.EY,{font:"body.small",color:"onSurface.nLv3",children:u}),x&&(0,s.jsxs)(o.EY,{font:"body.small",color:"onSurface.nLv3",children:[(0,s.jsx)(d.A,{id:"penalty_served_by"}),": ",x]}),h&&(null==c?void 0:c.key)!=="embellishment"&&(0,s.jsxs)(o.EY,{font:"body.small",color:"onSurface.nLv3",children:[(0,s.jsx)(d.A,{id:"penalty_against"}),": ",h]})]})};var A=n(54409),I=n(44194),L=n(41735),E=n(54053),P=n(54029);let T=[{href:"https://app.sofascore.com/eAnU/69sriykv",name:"PlayStore",Icon:A.ik$},{href:"https://app.sofascore.com/L1k1/65390mw7",name:"AppStore",Icon:A.tzj},{href:"https://appgallery.huawei.com/#/app/C102243091?sharePrepath=ag&channelId=EURSMKT20200807SS&detailType=0",name:"AppGallery",Icon:A._s0},{href:"https://galaxy.store/okgkggasg",name:"GalaxyStore",Icon:A.m7K},{href:"https://www.kaiostech.com/store/apps/?bundle_id=com.sofascore.results",name:"KaiStore",Icon:A.B1S}],_=e=>{let{downloadURL:t,theme:n}=e;return(0,s.jsxs)(o.so,{children:[(0,s.jsx)(o.az,{as:"a",href:t,target:"_blank",rel:"noreferrer",br:"sm",p:"xs",bg:"surface.s2",h:72,w:72,children:(0,s.jsx)("img",{width:64,height:64,src:"/static/images/banner/dl-qr-".concat("light"===n?"light":"dark",".webp?v=1"),alt:"Sofascore App QR code"})}),(0,s.jsx)(o.so,{br:"sm",wrap:"wrap",bg:"surface.s2",w:148,h:72,align:"center",px:"xl",py:"sm",ml:"sm",children:T.map(e=>{let{name:t,href:n,Icon:r}=e;return(0,s.jsx)(o.az,{as:"a",ml:"sm",href:n,target:"_blank",rel:"noreferrer",w:24,h:24,children:(0,s.jsx)(r,{fill:"onSurface.nLv1"})},t)})})]})},z=e=>{let{downloadURL:t}=e;return(0,s.jsxs)(o.so,{as:"a","aria-label":"Download Sofascore",href:t,target:"_blank",rel:"noreferrer",direction:"column",children:[(0,s.jsx)(A.m68,{h:48,w:160,mb:"lg"}),(0,s.jsx)(A.WkF,{h:48,w:160})]})},R=()=>(0,s.jsxs)(o.so,{direction:"column",gap:"xl",align:"center",pb:"sm",children:[(0,s.jsx)(o.EY,{align:"center",children:(0,s.jsx)(d.A,{id:"passing_network_teaser"})}),(0,s.jsx)(o.EY,{font:"display.large",align:"center",children:(0,s.jsx)(d.A,{id:"basic.downloadSofascore"})})]}),Y=e=>{let{goal:t,onClose:n}=e;return(0,s.jsxs)(o.so,{justify:"space-between",px:"xl",align:"center",pt:"lg",pb:"sm",children:[(0,s.jsx)(o.az,{w:24}),(0,s.jsxs)(o.EY,{font:"display.large",align:"center",block:!0,children:[t.homeScore," - ",t.awayScore]}),(0,s.jsx)(o.az,{w:24,h:24,children:(0,s.jsx)(o.$n,{variant:"unshielded",onClick:n,p:0,w:24,display:["none","inline"],style:{background:"none"},children:(0,s.jsx)(A.zQC,{icon:"close",fill:"onSurface.nLv1"})})})]})},M=e=>{let{theme:t}=e;return(0,s.jsx)(o.az,{pb:"69%",position:"relative",w:"100%",children:(0,s.jsx)("video",{width:"100%",height:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,preload:"none",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:"16px"},children:(0,s.jsx)("source",{src:"/static/videos/passing_network_teaser_".concat("light"===t?"light":"dark",".mp4"),type:"video/mp4"})})})},D=e=>{let{goal:t,teaserOpened:n,setTeaserOpened:r}=e,{isMobile:i}=(0,I.$c)(),l=(0,L.useTheme)(),a=(0,P.b9)(P.tz.FootballPassingNetworkTeaser);return(0,s.jsx)(E.A,{isOpen:n,setIsOpen:r,header:(0,s.jsx)(Y,{goal:t,onClose:()=>r(!1)}),footer:null,children:(0,s.jsxs)(o.so,{px:["md","xl"],direction:"column",gap:"lg",align:"center",pb:"xl",w:["auto",340],position:"relative",children:[(0,s.jsx)(M,{theme:l.name}),(0,s.jsx)(R,{}),i?(0,s.jsx)(z,{downloadURL:a}):(0,s.jsx)(_,{downloadURL:a,theme:l.name})]})})},H=e=>{var t;let{goal:n,isLeft:l}=e,{event:d}=(0,i.useContext)(c.y$),[u,x]=(0,i.useState)(!1);return(0,a.c5)(d)===r.QCR.Football&&(null==(t=n.footballPassingNetworkAction)?void 0:t.length)?(0,s.jsxs)(o.so,{grow:999,justify:l?"flex-end":"flex-start",children:[(0,s.jsx)(o.$n,{variant:"outline",onClick:e=>{e.preventDefault(),e.stopPropagation(),x(!0)},ml:[0,l?4:-8],mr:[0,l?-8:4],p:0,br:"xl",w:[48,40],h:[32,24],style:{background:"none",outline:"none",boxShadow:"none"},children:(0,s.jsx)(A.stC,{w:16,h:16,mt:-4})}),(0,s.jsx)(D,{goal:n,teaserOpened:u,setTeaserOpened:x})]}):null};var W=n(58657);let O=e=>{let{align:t,hover:n,text:r,isPrimary:i}=e,{isAdsTestTreatment:l}=(0,p.Q)();return(0,s.jsx)(o.EY,{font:[i?"body.medium":"body.small",i?"body.medium":l?"body.small":"body.medium"],h:16,w:["100%","auto"],lineHeight:"16px",color:i?"onSurface.nLv1":"onSurface.nLv3",align:t,block:!0,ellipsis:!0,hover:n,children:r})},N=e=>{let{ternary:t,align:n,children:r,notMain:i}=e;return(0,s.jsx)(o.so,{maxW:"100%",overflow:"hidden",h:i?void 0:[t?72:56,t?60:32],direction:["column",t?"column":"left"===n?"row":"row-reverse"],align:["left"===n?"flex-start":"flex-end",t?"left"===n?"flex-start":"flex-end":"center"],justify:"center",gap:[void 0,t?void 0:"xs"],children:r})},F=e=>{let{primary:t,secondary:n,ternary:r,primaryHover:i,secondaryHover:l,ternaryHover:a,align:d,score:c}=e,{isAdsTestTreatment:u}=(0,p.Q)();return u?(0,s.jsxs)(N,{ternary:!!r,align:d,children:[(0,s.jsxs)(N,{notMain:!0,align:d,children:[(0,s.jsx)(o.EY,{d:["none","block"],minW:"fit-content",font:"display.large",color:"onSurface.nLv1",block:!0,children:c}),t&&(0,s.jsx)(O,{text:t,hover:i,align:d,isPrimary:!0})]}),(0,s.jsx)(N,{align:d,notMain:!0,children:(0,s.jsxs)(o.so,{direction:"column",children:[n&&(0,s.jsx)(O,{text:n,hover:l,align:d}),r&&(0,s.jsx)(O,{text:r,hover:a,align:d})]})})]}):t&&n&&r&&c?(0,s.jsxs)(N,{ternary:!0,align:d,children:[(0,s.jsxs)(N,{notMain:!0,align:d,children:[(0,s.jsx)(o.EY,{d:["none","block"],minW:"fit-content",font:"display.large",color:"onSurface.nLv1",block:!0,children:c}),(0,s.jsx)(O,{text:t,hover:i,align:d,isPrimary:!0})]}),(0,s.jsx)(N,{align:d,notMain:!0,children:(0,s.jsxs)(o.so,{direction:["column","row"],gap:[0,"xs"],children:[(0,s.jsx)(O,{text:n,hover:l,align:d}),(0,s.jsx)(O,{text:r,hover:a,align:d})]})})]}):(0,s.jsxs)(N,{align:d,children:[t&&(0,s.jsx)(O,{text:t,hover:i,align:d,isPrimary:!0}),n&&(0,s.jsx)(O,{text:n,hover:l,align:d}),r&&(0,s.jsx)(O,{text:r,hover:a,align:d})]})};var G=n(48462);function U(e){let{incident:t,onPlayerClick:n,hasEventPlayerStatistics:l,locale:a}=e,d=(0,j.g3)()?!t.isHome:t.isHome,{incidentClass:u,incidentType:x}=t,[h,p]=(0,i.useState)(),f=(0,i.useContext)(c.Ws),v=(()=>{switch(x){case"card":return(0,s.jsx)(B,{incident:t,isLeft:d,locale:a});case"goal":return(0,s.jsx)(Z,{incident:t,isLeft:d,locale:a});case"penaltyShootout":case"inGamePenalty":return(0,s.jsx)($,{incident:t,isLeft:d,locale:a});case"substitution":return(0,s.jsx)(X,{incident:t,isLeft:d,locale:a});case"varDecision":return(0,s.jsx)(K,{incident:t,isLeft:d,locale:a});case"suspension":return f===r.QCR.IceHockey?(0,s.jsx)(C,{suspension:t,isLeft:d,locale:a}):f===r.QCR.Minifootball?(0,s.jsx)(q,{incident:t,isLeft:d,locale:a}):null;default:return null}})();if(v){var y;let e="goal"===x&&((null==t?void 0:t.assist1)||(null==t?void 0:t.assist1Name))&&((null==t?void 0:t.assist2)||(null==t?void 0:t.assist2Name)),{player:r,assist1:i,assist2:a}=t,{playerIn:c,playerOut:j}=t,{suspensionServedByPlayer:b,suspensionDrawnByPlayer:w}=t,S=[r,i,a,c,j,b];"iceHockeyPenaltyType"in t&&(null==(y=t.iceHockeyPenaltyType)?void 0:y.key)!=="embellishment"&&S.push(w);let k=S.filter(e=>!!e),C=e=>{if(1===k.length&&n)return void n(k[0]);!1===e?p(void 0):!0===e&&k.length&&p(k)};return(0,s.jsxs)(g.uc,{player:1!==k.length||l?void 0:k[0],sportSlug:f,children:[(0,s.jsx)(o.az,{hoverBg:k.length?"surface.s2":void 0,cursor:k.length?"pointer":void 0,onClick:()=>{C(!0)},children:(0,s.jsxs)(o.so,{position:"relative",px:["xs","sm"],direction:d?"row":"row-reverse",align:"center",children:[(0,s.jsxs)(o.so,{h:[40,e?40:24],direction:d?"row":"row-reverse",children:[(0,s.jsxs)(o.so,{minW:"fit-content",pr:["md",d?"xs":0],pl:["md",d?0:"xs"],direction:["column",d?"row":"row-reverse"],justify:["space-between","center"],gap:[0,"xs"],align:["center",e?"flex-start":"center"],children:[(0,s.jsx)(W.M,{incidentType:x,incidentClass:u}),(0,s.jsx)(G.k,{...t})]}),(0,s.jsx)(o.cG,{vertical:!0})]}),(0,s.jsx)(o.so,{overflow:"hidden",px:"sm",align:"center",direction:d?"row":"row-reverse",grow:999,children:v})]})}),k.length>1&&(0,s.jsx)(m.A,{isOpen:!!(null==h?void 0:h.length),setIsOpen:e=>{C(e)},players:k,onPlayerClick:n})]})}return"period"===x?(0,s.jsx)(J,{incident:t}):"injuryTime"===x?(0,s.jsx)(V,{incident:t}):null}function Q(e){let{isLeft:t,scores:n}=e;return n.every(e=>"number"==typeof e)?(0,s.jsx)(o.EY,{minW:"fit-content",font:["display.extraLarge","display.large"],color:"onSurface.nLv1",pr:t?["14px","sm"]:"0px",pl:t?"0px":["14px","sm"],as:"div",children:n.join(" - ")}):null}function B(e){let{incident:t,isLeft:n,locale:r}=e,{player:l,reason:a,incidentDescription:o}=t,d=(0,i.useContext)(c.Ws),u=l?(0,y.s)(l,r,{short:!0}):t.playerName,x=(0,f.q6)(t.incidentType,t.incidentClass,d);return(0,s.jsx)(F,{align:n?"left":"right",primary:u||o||x&&(0,s.jsx)(f.H7,{id:o||x}),secondary:a&&(0,s.jsx)(f.H7,{id:a})})}function Z(e){let{incident:t,isLeft:n,locale:r}=e,{player:l,assist1:a,assist2:u}=t,x=(0,i.useContext)(c.Ws),[h,m]=(0,j.jr)(t,"homeScore","awayScore"),g=[h,m],v=g.every(e=>"number"==typeof e)&&g.join(" - ")||"",b=(0,f.q6)(t.incidentType,t.incidentClass,x),w=l?(0,y.s)(l,r,{short:!0}):t.playerName,S=a?(0,y.s)(a,r,{short:!0}):t.assist1Name,k=u?(0,y.s)(u,r,{short:!0}):t.assist2Name,C=S&&k,{isAdsTestTreatment:A}=(0,p.Q)();return(0,s.jsxs)(s.Fragment,{children:[!A&&(0,s.jsx)(o.az,{minW:"fit-content",display:["block",C?"none":"block"],children:(0,s.jsx)(Q,{isLeft:n,scores:g})}),(0,s.jsx)(F,{align:n?"left":"right",primary:w||(0,s.jsx)(f.H7,{id:b||"goal"}),secondary:S&&(0,s.jsx)(d.A,{id:"assist",children:e=>(0,s.jsx)(s.Fragment,{children:"".concat(e,": ").concat(S)})}),ternary:k&&(0,s.jsx)(d.A,{id:"ordinalAssist",values:{n:2},children:e=>(0,s.jsx)(s.Fragment,{children:"".concat(e,": ").concat(k)})}),score:v}),(0,s.jsx)(H,{goal:t,isLeft:n})]})}function $(e){let{incident:t,isLeft:n,locale:r}=e,{incidentType:l,incidentClass:a,player:o,description:u,homeScore:x,awayScore:h}=t,m=o?(0,y.s)(o,r):t.playerName,p=(0,i.useContext)(c.Ws),j=(0,f.q6)(l,a,p);return(0,s.jsxs)(s.Fragment,{children:["scored"===a&&(0,s.jsx)(Q,{isLeft:!!n,scores:[x,h]}),(0,s.jsx)(F,{align:n?"left":"right",primary:m||j&&(0,s.jsx)(d.A,{id:j}),secondary:u&&(0,s.jsx)(f.H7,{id:u})})]})}function X(e){let{incident:t,isLeft:n,locale:r}=e,{playerIn:i,playerOut:l}=t,a=i?(0,y.s)(i,r,{short:!0}):t.playerNameIn||"",o=l?(0,y.s)(l,r,{short:!0}):t.playerNameOut||"";return(0,s.jsx)(F,{align:n?"left":"right",primary:a?(0,s.jsx)(d.A,{id:"substitution.in",children:e=>(0,s.jsx)(s.Fragment,{children:"".concat(e,": ").concat(a)})}):void 0,secondary:(0,s.jsx)(d.A,{id:"substitution_out",children:e=>(0,s.jsx)(s.Fragment,{children:"".concat(e,": ").concat(o)})})})}function q(e){let{incident:t,isLeft:n,locale:r}=e,{player:l}=t,a=(0,i.useContext)(c.Ws),o=(0,f.q6)(t.incidentType,t.incidentClass,a),d=l?(0,y.s)(l,r,{short:!0}):t.playerName;return(0,s.jsx)(F,{align:n?"left":"right",primary:d||o&&(0,s.jsx)(f.H7,{id:o})})}function K(e){let{incident:t,isLeft:n,locale:r}=e,{incidentClass:i,confirmed:l,player:a}=t,o=a?(0,y.s)(a,r,{short:!0}):t.playerName||"",d="boolean"==typeof l?"."+String(l):"";return(0,s.jsx)(F,{align:n?"left":"right",primary:(0,s.jsx)(f.H7,{id:i+d}),secondary:" ".concat(o)})}function V(e){let{incident:t}=e,{length:n}=t;return(0,s.jsxs)(o.EY,{font:"assistive.default",color:"onSurface.nLv1",align:"center",as:"bdi",block:!0,pb:"sm",px:"lg",children:[(0,s.jsx)(d.A,{id:"football_additional_time",values:{time:n}}),"'"]})}function J(e){let{incident:t}=e,n=(0,j.jr)(t,"homeScore","awayScore");return(0,s.jsx)(o.az,{p:"sm",children:(0,s.jsx)(o.az,{bg:["surface.s2","surface.s1"],py:"xs",px:"sm",br:"lg",children:(0,s.jsxs)(o.EY,{font:"display.small",color:t.isLive?"sofaSingles.live":"onSurface.nLv1",align:"center",as:"div",children:[(0,s.jsx)(v.fP,{id:t.text})," ",n.every(e=>"number"==typeof e)&&n.join(" - ")]})})})}let ee=e=>{let{incidents:t,hasBenchIncidents:n}=e,r=(0,h.A)(),{event:l}=(0,i.useContext)(c.y$),{openEventPlayerStatistics:a}=(0,u.d)(),m=e=>{l.hasEventPlayerStatistics&&a({event:l,player:e},x._.Incidents)};return 0===t.length?null:(0,s.jsxs)(o.az,{pb:"sm",children:[!!n&&(0,s.jsx)(o.az,{p:"sm",children:(0,s.jsx)(o.az,{bg:["surface.s2","surface.s1"],py:"xs",px:"sm",br:"lg",children:(0,s.jsx)(o.EY,{font:"display.small",color:"onSurface.nLv3",align:"center",as:"div",textTransform:"capitalize",children:(0,s.jsx)(d.A,{id:"onBench"})})})}),t.map((e,t)=>(0,s.jsx)(U,{incident:e,locale:r,onPlayerClick:e=>m(e),hasEventPlayerStatistics:l.hasEventPlayerStatistics},"".concat(t,"-").concat(e.incidentType)))]})},et=e=>{let{onFieldIncidents:t,onBenchIncidents:n}=e;return(0,s.jsxs)(o.az,{children:[(0,s.jsx)(ee,{incidents:t}),(0,s.jsx)(ee,{incidents:n,hasBenchIncidents:!!n.length})]})},en=w.Scoring,es=e=>{let{onFieldIncidents:t,onBenchIncidents:n}=e,[r,l]=(0,i.useState)(en),a=S(t,r),c=S(n,r),u=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ee,{incidents:a}),(0,s.jsx)(ee,{incidents:c,hasBenchIncidents:c.length>0})]});return(0,s.jsxs)(o.tU,{variant:"secondary",initialValue:en,value:r,onChange:e=>{l(e)},children:[(0,s.jsxs)(o.tU.List,{px:"md",pt:"md",children:[(0,s.jsx)(o.tU.Tab,{tabKey:w.Scoring,children:(0,s.jsx)(d.A,{id:"scoring"})}),(0,s.jsx)(o.tU.Tab,{tabKey:w.Penalties,children:(0,s.jsx)(d.A,{id:"penalties"})})]}),(0,s.jsx)(o.tU.Panel,{tabKey:w.Scoring,children:u}),(0,s.jsx)(o.tU.Panel,{tabKey:w.Penalties,children:u})]})},er=e=>{let{onFieldIncidents:t,onBenchIncidents:n}=e;return[...t,...n].some(e=>"suspension"===e.incidentType)?(0,s.jsx)(es,{onFieldIncidents:t,onBenchIncidents:n}):(0,s.jsx)(et,{onFieldIncidents:t,onBenchIncidents:n})},ei=[{href:"https://app.sofascore.com/eAnU/69sriykv",name:"PlayStore",Icon:A.ik$},{href:"https://app.sofascore.com/L1k1/65390mw7",name:"AppStore",Icon:A.tzj},{href:"https://appgallery.huawei.com/#/app/C102243091?sharePrepath=ag&channelId=EURSMKT20200807SS&detailType=0",name:"AppGallery",Icon:A._s0},{href:"https://galaxy.store/okgkggasg",name:"GalaxyStore",Icon:A.m7K},{href:"https://www.kaiostech.com/store/apps/?bundle_id=com.sofascore.results",name:"KaiStore",Icon:A.B1S}],el=e=>{let{downloadURL:t,theme:n}=e;return(0,s.jsxs)(o.so,{children:[(0,s.jsx)(o.az,{as:"a",href:t,target:"_blank",rel:"noreferrer",br:"sm",p:"xs",bg:"surface.s2",h:72,w:72,children:(0,s.jsx)("img",{width:64,height:64,src:"/static/images/banner/dl-qr-".concat("light"===n?"light":"dark",".webp?v=1"),alt:"Sofascore App QR code"})}),(0,s.jsx)(o.so,{br:"sm",wrap:"wrap",bg:"surface.s2",w:148,h:72,align:"center",px:"xl",py:"sm",ml:"sm",children:ei.map(e=>{let{name:t,href:n,Icon:r}=e;return(0,s.jsx)(o.az,{as:"a",ml:"sm",href:n,target:"_blank",rel:"noreferrer",w:24,h:24,children:(0,s.jsx)(r,{fill:"onSurface.nLv1"})},t)})})]})},ea=e=>{let{downloadURL:t}=e;return(0,s.jsxs)(o.so,{as:"a","aria-label":"Download Sofascore",href:t,target:"_blank",rel:"noreferrer",direction:"column",children:[(0,s.jsx)(A.m68,{h:48,w:160,mb:"lg"}),(0,s.jsx)(A.WkF,{h:48,w:160})]})},eo=()=>(0,s.jsxs)(o.so,{direction:"column",gap:"xl",align:"center",pb:"sm",children:[(0,s.jsx)(o.EY,{align:"center",children:(0,s.jsx)(d.A,{id:"passing_network_teaser"})}),(0,s.jsx)(o.EY,{font:"display.large",align:"center",children:(0,s.jsx)(d.A,{id:"basic.downloadSofascore"})})]}),ed=e=>{let{goal:t,onClose:n}=e;return(0,s.jsxs)(o.so,{justify:"space-between",px:"xl",align:"center",pt:"lg",pb:"sm",children:[(0,s.jsx)(o.az,{w:24}),(0,s.jsxs)(o.EY,{font:"display.large",align:"center",block:!0,children:[t.homeScore," - ",t.awayScore]}),(0,s.jsx)(o.az,{w:24,h:24,children:(0,s.jsx)(o.$n,{variant:"unshielded",onClick:n,p:0,w:24,display:["none","inline"],style:{background:"none"},children:(0,s.jsx)(A.zQC,{icon:"close",fill:"onSurface.nLv1"})})})]})},ec=e=>{let{theme:t}=e;return(0,s.jsx)(o.az,{pb:"69%",position:"relative",w:"100%",children:(0,s.jsx)("video",{width:"100%",height:"auto",loop:!0,playsInline:!0,muted:!0,autoPlay:!0,preload:"none",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:"16px"},children:(0,s.jsx)("source",{src:"/static/videos/passing_network_teaser_".concat("light"===t?"light":"dark",".mp4"),type:"video/mp4"})})})},eu=e=>{let{goal:t,teaserOpened:n,setTeaserOpened:r}=e,{isMobile:i}=(0,I.$c)(),l=(0,L.useTheme)(),a=(0,P.b9)(P.tz.FootballPassingNetworkTeaser);return(0,s.jsx)(E.A,{isOpen:n,setIsOpen:r,header:(0,s.jsx)(ed,{goal:t,onClose:()=>r(!1)}),footer:null,children:(0,s.jsxs)(o.so,{px:["md","xl"],direction:"column",gap:"lg",align:"center",pb:"xl",w:["auto",340],position:"relative",children:[(0,s.jsx)(ec,{theme:l.name}),(0,s.jsx)(eo,{}),i?(0,s.jsx)(ea,{downloadURL:a}):(0,s.jsx)(el,{downloadURL:a,theme:l.name})]})})};function ex(e){let{scores:t}=e;return t.every(e=>"number"==typeof e)?(0,s.jsx)(o.EY,{minW:"fit-content",font:"display.large",color:"onSurface.nLv1",as:"div",letterSpacing:"-0.1px",children:t.join(" - ")}):null}let eh=e=>{var t;let{goal:n,isLeft:l,scores:d}=e,{event:u}=(0,i.useContext)(c.y$),[x,h]=(0,i.useState)(!1);return(0,a.c5)(u)===r.QCR.Football&&(null==(t=n.footballPassingNetworkAction)?void 0:t.length)?(0,s.jsxs)(o.so,{grow:999,justify:l?"flex-end":"flex-start",children:[(0,s.jsx)(o.$n,{variant:"outline",onClick:e=>{e.preventDefault(),e.stopPropagation(),h(!0)},p:0,br:"xl",style:{background:"none",outline:"none",boxShadow:"none"},children:(0,s.jsxs)(o.so,{align:"center",justify:"center",gap:"sm",px:"md",br:"xl",backgroundColor:"surface.s2",children:[(0,s.jsx)(A.stC,{}),(0,s.jsx)(ex,{scores:d})]})}),(0,s.jsx)(eu,{goal:n,teaserOpened:x,setTeaserOpened:h})]}):null};var em=n(947);let ep={card:{yellow:{fill:"scoreRating.s65",Icon:e=>(0,s.jsx)(A.NcS,{icon:"card-yellow",...e})},yellowRed:{Icon:e=>(0,s.jsx)(A.NcS,{icon:"card-double-yellow",...e})},red:{fill:"error.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"card-red",...e})}},goal:{football:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-own-goal",...e})}},futsal:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-own-goal",...e})},accumulatedPenalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"accumulated-penalty",...e})}},minifootball:{regular:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-ball",...e})},penalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-penalty",...e})},accumulatedPenalty:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"accumulated-penalty",...e})},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-own-goal",...e})}},regular:{fill:"",Icon:()=>null}},substitution:{injury:{fill:"primary.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"substitution-injured",...e})},regular:{fill:"primary.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"substitution",...e})}},penaltyShootout:{taker:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"penalty-taker",...e})},scored:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-penalty",...e})},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"penalty-missed",...e})}},inGamePenalty:{taker:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"penalty-taker",...e})},scored:{fill:"onSurface.nLv1",Icon:e=>(0,s.jsx)(A.NcS,{icon:"football-penalty",...e})},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"penalty-missed",...e})}},varDecision:{regular:{fill:"primary.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"var",isRtlPrevented:!0,...e})}},suspension:{minifootball:{regular:{fill:"error.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"2-min-suspension",...e})}},twoMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(A.NcS,{icon:"2-min-suspension",...e})}}},ej=(e,t,n,s,r)=>{if(e){if(s)return r?"scale(1,1)":"rotateY(180deg)";if(r&&t&&!n)return"rotate(180deg)"}else{if(r&&t&&!n)return"scale(1,1)";if(n)return r?"scale(1,1)":"rotateY(180deg)";if(t)return r?"rotateY(180deg)":"rotate(180deg)"}},eg=e=>{var t,n,r,l,a;let{incidentType:o,incidentClass:d,sport:c,svgProps:u,isLeft:x=!1}=e,h=(0,em.A)(),m=(null==(t=ep[o][c])?void 0:t.regular)||(null==(n=ep[o])?void 0:n.regular),p="rtl"===(0,i.useContext)(L.ThemeContext).settings.textDirection;c&&d&&(m=(null==(l=ep[o])||null==(r=l[c])?void 0:r[d])||(null==(a=ep[o])?void 0:a[d])||ep[o].regular);let j="substitution"===o,g="substitution"===o&&"injury"===d,v="goal"===o&&"ownGoal"===d;if(null==m||!m.Icon)return(0,s.jsx)("div",{style:{width:16}});{let e=(0,f.q6)(o,d,c);return(0,s.jsx)(m.Icon,{width:16,height:16,fill:m.fill,title:e?h.formatMessage({id:e}):void 0,style:{minWidth:(null==u?void 0:u.width)||"16px",display:"inline-block",transform:ej(x,j,g,v,p)},...u})}},ef=e=>{let t=(0,i.useContext)(c.Ws);return(0,s.jsx)(eg,{...e,sport:e.sport||t})},ev=e=>{let{align:t,hover:n,text:r,isPrimary:i}=e;return(0,s.jsx)(o.EY,{font:"body.medium",h:16,lineHeight:"16px",color:i?"onSurface.nLv1":"onSurface.nLv3",align:t,block:!0,ellipsis:!0,hover:n,children:r})},ey=e=>{let{ternary:t,align:n,children:r,notMain:i}=e;return(0,s.jsx)(o.so,{maxW:"100%",overflow:"hidden",h:i?void 0:[t?72:40,t?60:32],direction:t?"column":"left"===n?"row":"row-reverse",align:t?"left"===n?"flex-start":"flex-end":"center",justify:"center",gap:t?void 0:"xs",children:r})},eb=e=>{let{primary:t,secondary:n,ternary:r,primaryHover:i,secondaryHover:l,ternaryHover:a,align:d,score:c}=e;return t&&n&&r&&c?(0,s.jsxs)(ey,{ternary:!0,align:d,children:[(0,s.jsxs)(ey,{notMain:!0,align:d,children:[(0,s.jsx)(o.EY,{d:["none","block"],minW:"fit-content",font:"display.large",color:"onSurface.nLv1",block:!0,children:c}),(0,s.jsx)(ev,{text:t,hover:i,align:d,isPrimary:!0})]}),(0,s.jsx)(ey,{align:d,notMain:!0,children:(0,s.jsxs)(o.so,{direction:["column","row"],gap:[0,"xs"],children:[(0,s.jsx)(ev,{text:n,hover:l,align:d}),(0,s.jsx)(ev,{text:r,hover:a,align:d})]})})]}):(0,s.jsxs)(ey,{align:d,children:[t&&(0,s.jsx)(ev,{text:t,hover:i,align:d,isPrimary:!0}),n&&(0,s.jsx)(ev,{text:n,hover:l,align:d}),r&&(0,s.jsx)(ev,{text:r,hover:a,align:d})]})},ew=e=>{let{time:t,addedTime:n,formatSeconds:i}=e,l=i?"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0")):"".concat(t,"'");return(0,s.jsxs)(s.Fragment,{children:[void 0!==t&&t!==r.yBP.OnBenchIncidentTime?l:"-",n&&(0,s.jsxs)("sup",{children:[" +",n]})]})},eS=e=>{let{time:t,timeSeconds:n,addedTime:l,reversedPeriodTime:d,reversedPeriodTimeSeconds:u,incidentType:x}=e,h=(0,i.useContext)(c.Ws),m=(0,a.vJ)(h)&&void 0!==u||h===r.QCR.Handball&&!!n,p=m&&n?n:t,j=void 0!==t&&-1!==t&&"penaltyShootout"!==x;return(0,s.jsx)(o.az,{w:"40px",as:"bdi",mr:"xs",children:(0,s.jsx)(o.EY,{lineHeight:"14px",font:"display.micro",color:"onSurface.nLv1",align:"center",as:"div",children:j?(0,s.jsx)(ew,{time:(0,a.vJ)(h)?u||d:p,addedTime:l,formatSeconds:m}):"-"})})},ek=e=>"yellow"===e?"yellowCard":"red"===e?"redCard":"yellowRed"===e?"yellowRed":void 0;function eC(e){let{incident:t,onPlayerClick:n,hasEventPlayerStatistics:l,locale:a}=e,d=(0,j.g3)()?!t.isHome:t.isHome,{incidentClass:u,incidentType:x}=t,[h,p]=(0,i.useState)(),f=(0,i.useContext)(c.Ws),v=(()=>{switch(x){case"card":return(0,s.jsx)(eI,{incident:t,isLeft:d,locale:a});case"goal":return(0,s.jsx)(eL,{incident:t,isLeft:d,locale:a});case"penaltyShootout":case"inGamePenalty":return(0,s.jsx)(eE,{incident:t,isLeft:d,locale:a});case"substitution":return(0,s.jsx)(eP,{incident:t,isLeft:d,locale:a});case"varDecision":return(0,s.jsx)(eT,{incident:t,isLeft:d,locale:a});case"suspension":return f===r.QCR.Minifootball||f===r.QCR.Futsal?(0,s.jsx)(eR,{incident:t,isLeft:d,locale:a}):null;default:return null}})();if(v){var y;let e="goal"===x&&((null==t?void 0:t.assist1)||(null==t?void 0:t.assist1Name))&&((null==t?void 0:t.assist2)||(null==t?void 0:t.assist2Name)),{player:r,assist1:i,assist2:a}=t,{playerIn:c,playerOut:j}=t,{suspensionServedByPlayer:b,suspensionDrawnByPlayer:w}=t,S=[r,i,a,c,j,b];"iceHockeyPenaltyType"in t&&(null==(y=t.iceHockeyPenaltyType)?void 0:y.key)!=="embellishment"&&S.push(w);let k="penaltyShootout"===x,C=S.filter(e=>!!e),A=e=>{if(1===C.length&&n)return void n(C[0]);!1===e?p(void 0):!0===e&&C.length&&p(C)};return(0,s.jsxs)(g.uc,{player:1!==C.length||l?void 0:C[0],sportSlug:f,children:[(0,s.jsx)(o.az,{hoverBg:C.length?"surface.s2":void 0,cursor:C.length?"pointer":void 0,onClick:()=>{A(!0)},children:(0,s.jsxs)(o.so,{position:"relative",pl:[0,k?0:"xs"],pr:[0,d?"md":0],direction:d?"row":"row-reverse",align:"center",children:[(0,s.jsx)(o.so,{h:e?40:24,direction:d?"row":"row-reverse",align:"center",children:(0,s.jsxs)(o.so,{minW:"fit-content",pl:d?k?"lg":"xs":k?"sm":"xs",pr:d?k?"sm":"xs":k?"lg":"xs",direction:d?"row":"row-reverse",justify:["space-between","center"],gap:[0,"xs"],align:["center",e?"flex-start":"center"],children:[!k&&(0,s.jsx)(eS,{...t}),(0,s.jsx)(ef,{incidentType:x,incidentClass:u,isLeft:d})]})}),(0,s.jsx)(o.so,{overflow:"hidden",pl:d?"xs":"lg",pr:d?"lg":"xs",align:"center",direction:d?"row":"row-reverse",grow:999,children:v})]})}),C.length>1&&(0,s.jsx)(m.A,{isOpen:!!(null==h?void 0:h.length),setIsOpen:e=>{A(e)},players:C,onPlayerClick:n})]})}return"period"===x?(0,s.jsx)(ez,{incident:t}):"injuryTime"===x?(0,s.jsx)(e_,{incident:t}):null}function eA(e){let{scores:t}=e;return t.every(e=>"number"==typeof e)?(0,s.jsx)(o.EY,{minW:"fit-content",font:"display.large",color:"onSurface.nLv1",as:"div",letterSpacing:"-0.1px",children:t.join(" - ")}):null}function eI(e){let{incident:t,isLeft:n,locale:r}=e,{player:i,reason:l,incidentDescription:a}=t,o=i?(0,y.s)(i,r,{short:!0}):t.playerName,d=ek(t.incidentClass);return(0,s.jsx)(eb,{align:n?"left":"right",primary:o||a&&(0,s.jsx)(f.H7,{id:a})||d&&(0,s.jsx)(f.H7,{id:d}),secondary:l&&(0,s.jsx)(f.H7,{id:l})})}function eL(e){var t;let{incident:n,isLeft:r,locale:i}=e,{player:l,assist1:a,assist2:c}=n,{isMobile:u}=(0,I.$c)(),[x,h]=(0,j.jr)(n,"homeScore","awayScore"),m=[x,h],p=m.every(e=>"number"==typeof e)&&m.join(" - ")||"",g=l?(0,y.s)(l,i,{short:!0}):n.playerName,v=a?(0,y.s)(a,i,{short:!0}):n.assist1Name,b=c?(0,y.s)(c,i,{short:!0}):n.assist2Name,w=v&&b;return(0,s.jsxs)(s.Fragment,{children:[(null==(t=n.footballPassingNetworkAction)?void 0:t.length)?(0,s.jsx)(o.az,{display:["block",w?"none":"block"],mr:r?"sm":"0px",ml:r?"0px":"sm",children:(0,s.jsx)(eh,{goal:n,isLeft:r,scores:m})}):(0,s.jsx)(o.az,{px:"sm",minW:"fit-content",backgroundColor:u?"surface.s2":"onSurface.nLv5",borderRadius:"lg",ml:r?"0px":"sm",mr:r?"sm":"0px",children:(0,s.jsx)(eA,{scores:m})}),(0,s.jsx)(eb,{align:r?"left":"right",primary:g||(0,s.jsx)(f.H7,{id:"goal"}),secondary:v,ternary:b&&(0,s.jsx)(d.A,{id:"ordinalAssist",values:{n:2},children:e=>(0,s.jsx)(s.Fragment,{children:"".concat(e,": ").concat(b)})}),score:p})]})}function eE(e){let{incident:t,isLeft:n,locale:r}=e,{incidentType:l,incidentClass:a,player:u,description:x,homeScore:h,awayScore:m}=t,p=u?(0,y.s)(u,r,{short:!0}):t.playerName,j=(0,i.useContext)(c.Ws),g=(0,f.q6)(l,a,j);return(0,s.jsxs)(s.Fragment,{children:["scored"===a&&(0,s.jsx)(o.az,{px:"sm",backgroundColor:"surface.s2",borderRadius:"lg",ml:n?"0px":"sm",mr:n?"sm":"0px",children:(0,s.jsx)(eA,{scores:[h,m]})}),(0,s.jsx)(eb,{align:n?"left":"right",primary:p||g&&(0,s.jsx)(d.A,{id:g}),secondary:x&&(0,s.jsx)(f.H7,{id:x})})]})}function eP(e){let{incident:t,isLeft:n,locale:r}=e,{playerIn:i,playerOut:l}=t,a=i?(0,y.s)(i,r,{short:!0}):t.playerNameIn||"",o=l?(0,y.s)(l,r,{short:!0}):t.playerNameOut||"";return(0,s.jsx)(eb,{align:n?"left":"right",primary:a,secondary:o})}function eT(e){let{incident:t,isLeft:n,locale:r}=e,{incidentClass:i,confirmed:l,player:a}=t,o=a?(0,y.s)(a,r,{short:!0}):t.playerName||"",d="boolean"==typeof l?"."+String(l):"";return(0,s.jsx)(eb,{align:n?"left":"right",primary:(0,s.jsx)(f.H7,{id:i+d}),secondary:" ".concat(o)})}function e_(e){let{incident:t}=e,{length:n}=t,{isMobile:r}=(0,I.$c)();return(0,s.jsx)(o.so,{w:"100%",justify:"center",my:"sm",align:"center",children:(0,s.jsx)(o.so,{bg:r?"surface.s2":"onSurface.nLv5",p:"xxs sm",borderRadius:"md",align:"center",children:(0,s.jsxs)(o.EY,{font:"assistive.default",color:"onSurface.nLv1",lineHeight:"16px",as:"bdi",children:[(0,s.jsx)(d.A,{id:"football_additional_time",values:{time:n}}),"'"]})})})}function ez(e){let{incident:t}=e,n=(0,j.jr)(t,"homeScore","awayScore"),r=(0,i.useContext)(L.ThemeContext),{colors:l}=(0,L.useTheme)(),a=t.isLive?l.sofaSingles.live:r.setAlpha(l.onSurface.nLv1,.15);return(0,s.jsxs)(o.so,{p:"md lg",gap:"lg",w:"100%",children:[(0,s.jsx)(o.so,{grow:1,mt:"xs",borderTop:"1px solid ".concat(a),borderLeft:"1px solid ".concat(a)}),(0,s.jsxs)(o.EY,{font:"display.micro",color:t.isLive?"sofaSingles.live":"onSurface.nLv1",align:"center",lineHeight:"14px",as:"div",children:[(0,s.jsx)(v.fP,{id:t.text})," ",n.every(e=>"number"==typeof e)&&n.join(" - ")]}),(0,s.jsx)(o.so,{grow:1,mt:"xs",borderTop:"1px solid ".concat(a),borderRight:"1px solid ".concat(a)})]})}function eR(e){let{incident:t,isLeft:n,locale:r}=e,{player:l}=t,a=(0,i.useContext)(c.Ws),o=(0,f.q6)(t.incidentType,t.incidentClass,a),d=l?(0,y.s)(l,r,{short:!0}):t.playerName;return(0,s.jsx)(eb,{align:n?"left":"right",primary:d||o&&(0,s.jsx)(f.H7,{id:o})})}let eY=e=>{let{incidents:t,hasBenchIncidents:n}=e,r=(0,h.A)(),{event:l}=(0,i.useContext)(c.y$),{openEventPlayerStatistics:a}=(0,u.d)(),m=(0,i.useContext)(L.ThemeContext),{colors:p}=(0,L.useTheme)(),j=m.setAlpha(p.onSurface.nLv1,.15),g=e=>{l.hasEventPlayerStatistics&&a({event:l,player:e},x._.Incidents)};return 0===t.length?null:(0,s.jsxs)(o.az,{pb:"sm",children:[!!n&&(0,s.jsxs)(o.so,{p:"md lg",gap:"lg",w:"100%",children:[(0,s.jsx)(o.so,{grow:1,mt:"xs",borderTop:"1px solid ".concat(j),borderLeft:"1px solid ".concat(j)}),(0,s.jsx)(o.EY,{font:"display.micro",color:"onSurface.nLv3",align:"center",lineHeight:"14px",fontWeight:"bold",as:"div",children:(0,s.jsx)(d.A,{id:"onBench"})}),(0,s.jsx)(o.so,{grow:1,mt:"xs",borderTop:"1px solid ".concat(j),borderRight:"1px solid ".concat(j)})]}),t.map((e,t)=>(0,s.jsx)(eC,{incident:e,locale:r,onPlayerClick:e=>g(e),hasEventPlayerStatistics:l.hasEventPlayerStatistics},"".concat(t,"-").concat(e.incidentType)))]})},eM=e=>{let{onFieldIncidents:t,onBenchIncidents:n}=e;return(0,s.jsxs)(o.az,{children:[(0,s.jsx)(eY,{incidents:t}),(0,s.jsx)(eY,{incidents:n,hasBenchIncidents:!!n.length})]})};var eD=n(34765);let eH=(0,i.memo)(function(e){let{event:t}=e,{incidents:n}=(0,eD.L)();if(!n)return null;let i=(0,a.c5)(t),o=i===r.QCR.Football||i===r.QCR.Minifootball||i===r.QCR.Futsal,d=n.filter(e=>e.time!==r.yBP.OnBenchIncidentTime),c=n.filter(e=>e.time===r.yBP.OnBenchIncidentTime);if(!d.length&&!c.length)return null;let u=i===r.QCR.IceHockey?er:o?eM:et;return(0,s.jsx)(l.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(u,{onFieldIncidents:d,onBenchIncidents:c})})},(e,t)=>e.event.id===t.event.id&&e.event.status.type!==t.event.status.type&&e.event.hasEventPlayerStatistics===t.event.hasEventPlayerStatistics)},98899:(e,t,n)=>{n.d(t,{D:()=>r});var s=n(21377);function r(e){return[s.QCR.AussieRules,s.QCR.Badminton,s.QCR.Basketball,s.QCR.TableTennis,s.QCR.Volleyball].includes(e)}}}]);