!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]="a906aed0-0be9-42bd-9e82-a885b957fc26",e._sentryDebugIdIdentifier="sentry-dbid-a906aed0-0be9-42bd-9e82-a885b957fc26")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1584,1712,2970,3003,3263,6051,6523,7239,9979],{151:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});let s=e=>e.branding.config},3881:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var s=n(64082),r=n(6029),a=n(41249),i=n(43451);function l(e){var{height:t=800,width:n="100%",rowHeight:l=45,wrapperStyle:o={},rows:d,animate:c=!1,rowGap:u=8,uniqueKey:m}=e,p=(0,s.T)(e,["height","width","rowHeight","wrapperStyle","rows","animate","rowGap","uniqueKey"]);return 0===t?null:(0,r.jsx)(a.az,Object.assign({maxW:"100%",bg:"surface.s1",overflow:"hidden"},p,{style:o},{children:(0,r.jsx)(i.D,Object.assign({animate:c,width:n,height:d&&l?d*(l+u):t,uniqueKey:m},{children:(0,r.jsx)(r.Fragment,{children:d?Array(d).fill(null).map((e,t)=>(0,r.jsx)("rect",{x:0,y:t*(l+u),width:"100%",height:l},t)):(0,r.jsx)("rect",{x:0,y:0,width:"100%",height:t})})}))}))}},4866:(e,t,n)=>{"use strict";n.d(t,{e:()=>r.e,w:()=>s.w});var s=n(53192),r=n(33480)},5683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>nt});var s=n(6029),r=n(21377),a=n(4967),i=n(95669),l=n.n(i),o=n(55729),d=n(947),c=n(62859),u=n(19451),m=n(19643),p=n(50417),h=n(54029),x=n(17357),v=n(30720),f=n(42678),g=n(59542),j=n(21501),y=n(76356),b=n(71024),w=n.n(b),k=n(494),S=n(45860),C=n(65789),A=n(31712),T=n(45501),_=n(1440),I=n(93902),L=n(12962),E=n(29129),H=n(22152);let F=w()(()=>n.e(7819).then(n.bind(n,37819)),{loadableGenerated:{webpack:()=>[37819]}});var R=n(48553),B=n(53235),P=n(76277),z=n(83457),O=n(47550),D=n(46009),M=n(8973),N=n(7263),G=n(3898),W=n(17808),Y=n(77540),U=n(47229),Q=n(21403),K=n(13030),q=n(92209),V=n(91631);let $=()=>(0,V.q)()?(0,s.jsxs)(K.A,{children:[(0,s.jsx)(K.A.Header,{titleId:"odds",variant:"left-aligned"}),(0,s.jsx)(y.az,{px:"sm",pb:"sm",children:(0,s.jsx)(q.i,{placement:"desktop"})})]}):null;var X=n(49711),Z=n(39979),J=n(2294),ee=n(27175),et=n(70088),en=n(44407),es=n(3856),er=n(85009),ea=n(91694),ei=n(23685),el=n(97319),eo=n(10794),ed=n(14861),ec=n(9088),eu=n(79085),em=n(40364),ep=n(5348),eh=n(95083),ex=n(41249),ev=n(90248),ef=n(33752),eg=n(91729),ej=n(98449),ey=n(31229),eb=n(64073),ew=n(39969),ek=n(70591),eS=n(52951),eC=n(47530),eA=n(27289),eT=n(94604),e_=n(7309),eI=n(34884);let eL=e=>{var t;let{event:n,sport:r,children:a}=e;return u.tt.includes(r)||!n.tournament.uniqueTournament?(0,s.jsx)(ek.O5,{tournament:n.tournament,children:a}):(0,s.jsx)(ek.tQ,{tournament:n.tournament.uniqueTournament,seasonId:null==(t=n.season)?void 0:t.id,children:a})};var eE=n(33144);function eH(e){let{team:t}=e;return t.subTeams&&2===t.subTeams.length?(0,s.jsxs)(ex.so,{children:[(0,s.jsx)(eE.p,{mr:"-8",id:t.subTeams[0].id,name:t.subTeams[0].name,size:40,style:{verticalAlign:"top"}}),(0,s.jsx)(eE.p,{id:t.subTeams[1].id,name:t.subTeams[1].name,size:40,style:{verticalAlign:"top"}})]}):(0,s.jsx)(eE.p,{size:40,id:t.id,name:t.name,style:{verticalAlign:"top"}})}let eF=(0,o.memo)(e=>{var t,n;let{event:a,leftTeam:i,rightTeam:l}=e,{meta:d,seoContent:c}=(0,o.useContext)(eS.xV),{isDesktop:m}=(0,eh.$c)(),p=(0,k.d4)(eo.JV),h=a.tournament.category.sport.slug,x=h===r.QCR.Football,v=h===r.QCR.Tennis,f=a.status.type===r.XUj.Finished,g=(0,e_.w)(a.tournament);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ex.az,{bg:"surface.s1",mb:[0,"md"],h:["auto",112],elevation:[void 0,2],children:(0,s.jsx)(eg.m,{children:(0,s.jsxs)(ex.so,{justify:"space-between",children:[(0,s.jsxs)(ex.so,{direction:["row","column"],grow:1,overflow:"hidden",style:{textOverflow:"ellipsis"},align:["center","initial"],children:[(0,s.jsxs)(ef.B,{children:[(0,s.jsx)(ef.B.Item,{children:(0,s.jsx)(ek.di,{translatedParams:{sport:h},children:(0,s.jsx)(eA.o,{sportSlug:h})})}),!u.tt.includes(h)&&(0,s.jsx)(ef.B.Item,{children:(0,s.jsx)(ek.Z6,{category:a.tournament.category,children:(0,s.jsx)(ej.m,{...a.tournament.category,uniqueTournament:a.tournament.uniqueTournament})})}),(0,s.jsx)(ef.B.Item,{children:(0,s.jsxs)(eL,{event:a,sport:h,children:[g,a.roundInfo&&(0,s.jsxs)("span",{children:[", ",(0,s.jsx)(eC.DT,{round:a.roundInfo})]})]})}),(0,s.jsx)(ef.B.Title,{children:(null==c?void 0:c.heading)||(null==d?void 0:d.title)||(0,s.jsx)(ev.A,{id:x?"headerTitle.event-v3":v?"headerTitle.event.tennis":"headerTitle.event",values:{home:(0,s.jsx)("bdi",{children:(0,s.jsx)(eT.Rm,{team:i})}),away:(0,s.jsx)("bdi",{children:(0,s.jsx)(eT.Rm,{team:l})})}})})]}),(0,s.jsxs)(ex.so,{display:["none","flex"],flex:"1 1 auto",justify:"space-between",children:[(0,s.jsxs)(ex.so,{align:"center",children:[(0,s.jsx)(ex.EY,{font:"display.extraLarge",as:"bdi",ellipsis:!0,children:(0,s.jsx)(ey.U,{})}),(0,s.jsx)(ex.az,{ml:"sm",children:(0,s.jsx)(ew.h,{id:a.id,type:M.b.Event,location:M.y.Header,tournament:a.tournament,leftTeam:i,rightTeam:l,menuPosition:"bottom"})})]}),(0,s.jsx)(ex.az,{px:"xl",textAlign:"right",children:(0,s.jsx)(eI.i,{eventLocation:"editor_event",nickname:null==(t=a.eventEditor)?void 0:t.name,userId:null==(n=a.eventEditor)?void 0:n.id,hasStarted:a.status.type!==r.XUj.NotStarted})})]}),(0,s.jsx)(ex.az,{display:["block","none"],mr:"md",ml:"-4",children:(0,s.jsx)(ew.h,{id:a.id,tournament:a.tournament,type:M.b.Event,location:M.y.Header,leftTeam:i,rightTeam:l,menuPosition:"bottom"})})]}),m&&!f&&(0,s.jsxs)(eb.K,{threshold:80,entity:r.bq7.Events,id:a.id,type:M.b.Event,children:[(0,s.jsx)(eH,{team:i}),(0,s.jsx)(ex.EY,{mx:"xs",block:!0,font:"display.medium",color:"onSurface.nLv1",children:"ar"===p?"ضد":"VS"}),(0,s.jsx)(eH,{team:l})]})]})})})})},(e,t)=>e.event.id===t.event.id&&e.leftTeam===t.leftTeam&&e.rightTeam===t.rightTeam);var eR=n(36337),eB=n(57267),eP=n(97316),ez=n(98899),eO=n(86523),eD=n(55479),eM=n(10951),eN=n(12174),eG=n(11687),eW=n(27680),eY=n(97037),eU=n(49937),eQ=n(67239),eK=n(868),eq=n(1773),eV=n(92494),e$=n(92059),eX=n(35410),eZ=n(73011),eJ=n(24985),e0=n(62056);let e1=w()(()=>Promise.resolve().then(n.bind(n,61777)),{loadableGenerated:{webpack:()=>[61777]},ssr:!1,loading:()=>(0,s.jsx)(eJ.Vj,{})}),e2=w()(()=>n.e(3614).then(n.bind(n,33614)),{loadableGenerated:{webpack:()=>[33614]},ssr:!1,loading:()=>(0,s.jsx)(e0.A,{})});function e4(e){let{event:t,hasLineups:n}=e,a=t.tournament.category.sport.slug,i=eZ.Bx.includes(a)&&!!t.hasEventPlayerStatistics;return i&&a!==r.QCR.Football?(0,s.jsx)(e2,{}):(0,s.jsx)(e1,{hasLineups:n,showPlayerStatistics:i})}var e9=n(42078),e5=n(31215),e6=n(19172),e3=n(15926),e7=n(73003),e8=n(10234),te=n(19168),tt=n(58516),tn=n(36075),ts=n(55665),tr=n(71046),ta=n(721);let ti=w()(()=>Promise.resolve().then(n.bind(n,76097)),{loadableGenerated:{webpack:()=>[76097]},ssr:!1}),tl=w()(()=>n.e(7752).then(n.bind(n,77752)),{loadableGenerated:{webpack:()=>[77752]},ssr:!1}),to=w()(()=>Promise.all([n.e(6591),n.e(4632),n.e(6618),n.e(3231),n.e(7717),n.e(7433)]).then(n.bind(n,29814)),{loadableGenerated:{webpack:()=>[29814]},ssr:!1,loading:()=>(0,s.jsx)(td.Consumer,{children:e=>{let{numberOfStandingsRows:t}=e;return(0,s.jsx)(e9.d,{noSeasonPicker:!0,numberOfRows:t})}})}),td=(0,o.createContext)({numberOfStandingsRows:20}),tc=w()(()=>Promise.resolve().then(n.bind(n,36142)),{loadableGenerated:{webpack:()=>[36142]},ssr:!1}),tu=(0,o.memo)(e=>{let{hasLineups:t,hasStandings:n,showDesktopVideoBanner:a,showPlayByPlay:i,numberOfStandingsRows:l=20}=e,{event:d,leftTeam:u,rightTeam:m}=(0,o.useContext)(c.y$),p=d.tournament.uniqueTournament,h=(0,o.useContext)(eq.i),{sport:x,id:v}=d.tournament.category,f=(0,k.d4)(J.qW),g=x.slug===r.QCR.ESports&&(0,tr.f2)(v),j=d.status.type===r.XUj.InProgress,y=x.slug===r.QCR.Tennis,b=x.slug===r.QCR.MMA;return(0,o.useEffect)(()=>{h&&h.provider===eV.w.Google&&a&&h.addExcludedSlot(["event.DESKTOP_TOP"])},[h]),(0,s.jsxs)(s.Fragment,{children:[!a&&(0,s.jsx)(ed.i,{id:"event.DESKTOP_TOP"}),y&&p&&d.season&&(0,s.jsx)(e7.default,{uniqueTournamentId:p.id,uniqueTournamentSlug:p.slug,categorySlug:p.category.slug,seasonId:d.season.id,sport:x.slug}),(a||j)&&(0,s.jsx)(s.Fragment,{children:f||!j?(0,s.jsx)(ta.A,{event:d}):(0,s.jsx)(eO.LiveActionWidgetContainer,{eventId:d.id})}),b&&(0,s.jsx)(tc,{}),x.slug===r.QCR.Cricket&&(0,s.jsx)(eX.Ay,{}),(0,s.jsx)(e4,{event:d,hasLineups:t}),i&&(0,s.jsx)(_.A,{persist:!0,children:(0,s.jsxs)(ex.so,{minH:["100%",889,912],gap:"xl",children:[(0,s.jsx)(ex.az,{w:"50%",children:(0,s.jsx)(tl,{})}),(0,s.jsx)(ex.az,{w:"50%",children:(0,s.jsx)(en.K,{event:d})})]})}),!1!==n&&d.season&&(0,s.jsx)(td.Provider,{value:{numberOfStandingsRows:l},children:(0,s.jsx)(_.A,{persist:!0,loader:(0,s.jsx)(e9.d,{noSeasonPicker:!0,numberOfRows:l}),children:(0,s.jsx)(ex.so,{direction:"column",gap:"md",children:(0,s.jsx)(to,{tournamentId:d.tournament.id,seasonId:d.season.id,homeTeamId:u.id,awayTeamId:m.id,Header:()=>{var e;return(0,s.jsx)(e5.A,{tournamentId:d.tournament.id,tournamentName:(0,s.jsx)(e8.J,{tournament:d.tournament}),uniqueTournamentId:null==(e=d.tournament.uniqueTournament)?void 0:e.id,mobileOnly:!0})},loaderNumberOfRows:l})})})}),(0,s.jsx)(ed.i,{id:"event.DESKTOP_MIDDLE"}),(0,s.jsx)(_.A,{persist:!0,children:(0,s.jsx)(e$.A,{eventId:d.id,eSportsType:d.tournament.category.name,hidePlayers:!g})}),(0,s.jsx)(_.A,{persist:!0,loader:(0,s.jsx)(ts.G,{}),children:(0,s.jsx)(tn.D,{})}),(0,s.jsx)(_.A,{persist:!0,loader:(0,s.jsx)(e3.A,{page:!0}),children:(0,s.jsx)(e6.o,{page:!0})}),(0,s.jsx)(_.A,{persist:!0,children:(0,s.jsxs)(C.Zp,{children:[(0,s.jsx)(C.Zp.Header,{title:(0,s.jsx)(ev.A,{id:b?"fights_mma":"matches",values:b?void 0:{sport:(0,te.ap)(x.slug)}}),as:"h2"}),(0,s.jsx)(ti,{isTabbedLayout:!1})]})}),(0,s.jsx)(_.A,{display:["none","block"],persist:!0,children:(0,s.jsx)(ex.az,{w:"50%","data-testid":"h2h_container",children:(0,s.jsxs)(C.Zp,{children:[(0,s.jsx)(C.Zp.Header,{titleId:"team_head_to_head"}),(0,s.jsx)(tt.GV,{})]})})})]})},(e,t)=>e.event.id===t.event.id&&e.hasLineups===t.hasLineups&&e.hasStandings===t.hasStandings&&e.event.status.type===t.event.status.type&&e.event.hasEventPlayerStatistics===t.event.hasEventPlayerStatistics&&e.showDesktopVideoBanner===t.showDesktopVideoBanner&&e.showPlayByPlay===t.showPlayByPlay);var tm=n(23250);let tp=w()(()=>n.e(5432).then(n.bind(n,93051)),{loadableGenerated:{webpack:()=>[93051]},ssr:!1,loading:()=>(0,s.jsx)(eD.T,{})}),th=(0,o.memo)(e=>{let{event:t}=e;return(0,s.jsx)(en.K,{event:t})},(e,t)=>{var n,s;return e.event.id===t.event.id&&e.event.status.type===t.event.status.type&&(null==(n=e.event.season)?void 0:n.id)===(null==(s=t.event.season)?void 0:s.id)&&e.event.hasEventPlayerStatistics===t.event.hasEventPlayerStatistics});function tx(e){var t,n,a,i;let{initialStandingsProperties:l}=e,d=(0,o.useContext)(c.y$),{event:u,leftTeam:m,rightTeam:p}=d,h=u.tournament.category.sport,x=(0,j.hX)(),v=(0,k.d4)(eo.LQ),f=(0,k.d4)(J.qW),g=(0,k.d4)(J.BF),b=(0,k.d4)((0,J.bS)(u)),[w]=(0,k.d4)((0,J.Pf)()),K=(0,tr.nI)(u),q=!!v&&(0,tr.Q9)(v),V=h.slug===r.QCR.MMA,en=(0,z.j)(h.slug),eh={fetcher:N.n,revalidateOnFocus:!0,refreshInterval:6e4*(u.status.type===r.XUj.NotStarted||u.status.type===r.XUj.InProgress)},{data:ex}=(0,S.Ay)([V?null:r.bnp.statistics(u.id),"HEAD"],eh),{data:ev}=(0,S.Ay)(u.status.type===r.XUj.InProgress?[r.bnp.winProbability(u.id),"HEAD"]:null,eh),{data:ef}=(0,S.Ay)([r.bnp.lineups(u.id),"HEAD"],{...eh,fallbackData:d.initialHasLineups}),{data:eg}=(0,S.Ay)(u.season?[r.yKR.standings(u.tournament.id,u.season.id),"HEAD"]:null,{...eh,fallbackData:null==l?void 0:l.hasStandings}),ej=!g&&b&&!!w,{data:ey}=(0,S.Ay)(ej?[r.npy.recommendedPrematchTopVoted(w,h.slug),"HEAD"]:null,eh),{data:eb}=(0,S.Ay)([en?r.bnp.commentary(u.id,en):null,"HEAD"],{refreshInterval:1e4,fetcher:N.n}),ew=eb&&h.slug!==r.QCR.IceHockey,ek=eb&&h.slug===r.QCR.IceHockey,eS=u.status.type===r.XUj.NotStarted,eC=u.status.type===r.XUj.InProgress,eA=h.slug===r.QCR.ESports&&(0,tr.f2)(u.tournament.category.id),eT=eC&&!!q&&f,e_=(0,o.useRef)(null),eI=eR.I.includes(h.slug)&&u.status.type===r.XUj.NotStarted,eL=h.slug===r.QCR.Football;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eF,{event:u,leftTeam:m,rightTeam:p}),(0,s.jsx)(E.Ay,{pb:"md",children:(0,s.jsx)(c.Ws.Provider,{value:h.slug,children:(0,s.jsxs)(c.y$.Provider,{value:{...d,location:c.cb.EventPage},children:[(0,s.jsxs)(E.xA,{children:[(0,s.jsxs)(E.fv,{grow:1,noDividers:!0,children:[(0,s.jsxs)(C.Zp,{children:[(0,s.jsx)(y.az,{h:"sm"}),(0,s.jsxs)(C.BU,{children:[(0,s.jsx)(D.w.Provider,{value:M.y.EventHeader,children:(0,s.jsx)(em.g,{})}),(0,s.jsx)(ep.N,{event:u}),(0,s.jsx)(eU.R,{}),(0,s.jsx)(X.O,{event:u,fallback:{NL:(0,s.jsx)(ed.i,{id:"event.DESKTOP_BELOW_ODDS",borderless:!0}),PT:ey?(0,s.jsx)(Y.U,{onClick:()=>{var e;return null==e_||null==(e=e_.current)?void 0:e.scrollIntoView({behavior:"smooth"})}}):(0,s.jsx)(s.Fragment,{}),DE:(0,s.jsx)(ed.i,{id:"event.DESKTOP_BELOW_ODDS",borderless:!0})},children:(0,s.jsx)(U.f9,{eventId:u.id,isLive:eC})}),(0,s.jsx)(eM.y,{}),(0,s.jsx)(eY.z,{}),(0,s.jsx)(et.Jk,{eventId:u.id,tournamentId:u.tournament.id,roundId:null==(t=u.roundInfo)?void 0:t.round,type:"single",screen:"desktop",isLive:eC,location:et.D_.EventPage},u.id),(0,s.jsx)(tm.C,{}),K&&!eL&&(0,s.jsx)(tp,{event:u}),(0,s.jsx)(eW.f,{}),(0,s.jsx)(eN.f,{event:u}),!eL&&(0,s.jsx)(eu.E,{event:u,hideCta:!0}),h.slug===r.QCR.Cricket&&(0,s.jsx)(P.x,{}),h.slug===r.QCR.Tennis?null:(0,ez.D)(h.slug)?(0,s.jsx)(eB.j,{event:u}):h.slug===r.QCR.Cricket?(0,s.jsx)(A.default,{event:u,isLive:eC}):(0,s.jsx)(eP.w,{event:u}),(0,s.jsx)(B.d,{}),K&&eL&&(0,s.jsx)(tp,{event:u}),eL&&(0,s.jsx)(eu.E,{event:u,hideCta:!0})]})]}),h.slug===r.QCR.Tennis&&(0,s.jsx)(ee.A,{event:u}),h.slug===r.QCR.Tennis&&eS&&(0,s.jsx)(eK.p,{}),eA&&!x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H.A,{eventId:u.id}),(0,s.jsx)(F,{event:u})]}),(0,s.jsx)(el.A,{placement:L.M.DesktopEventPage,event:u}),(0,s.jsx)($,{}),u.status.type!==r.XUj.NotStarted&&(0,s.jsx)(R.Y,{}),!ek&&(ex||ev)&&(0,s.jsx)(_.A,{persist:!0,loader:(0,s.jsx)(es.O,{}),children:(0,s.jsx)(th,{event:u})}),ew&&(0,s.jsx)(eQ.default,{}),!x&&eT&&(0,s.jsx)(eO.LiveActionWidgetContainer,{eventId:u.id,modal:!0,children:(0,s.jsx)(U.f9,{eventId:u.id,isLive:eC})}),(0,s.jsx)(_.A,{persist:!0,children:(0,s.jsx)(G.dq,{eventId:u.id})}),(0,s.jsx)(ed.i,{id:"event.DESKTOP_LEFT"}),ey&&(0,s.jsx)(Z.default,{showHeader:!0,ref:e_}),u.status.type===r.XUj.NotStarted&&(0,s.jsx)(R.Y,{}),(0,s.jsx)(eG.s,{eventId:u.id}),V&&(0,s.jsx)(_.A,{persist:!0,children:(0,s.jsx)(W.A,{homeTeam:u.homeTeam,awayTeam:u.awayTeam})}),(0,s.jsx)(I.W,{event:u,showTournamentInfo:eA}),(0,s.jsx)(ei.Y,{utId:null==(n=u.tournament.uniqueTournament)?void 0:n.id,location:"event_screen"}),!V&&(0,s.jsx)(_.A,{persist:!0,children:(0,s.jsx)(er.d,{eventId:u.id,type:r.IAy.Event,startTimestamp:u.startTimestamp})}),(0,s.jsx)(ea.Q,{}),eI&&(0,s.jsx)(eR.x,{eventId:u.id,leftTeam:m,rightTeam:p}),(0,s.jsx)(O.pk,{utIds:[null==(a=u.tournament.uniqueTournament)?void 0:a.id]}),(0,s.jsx)(ec.I,{event:u}),(null==(i=u.eventEditor)?void 0:i.name)&&(0,s.jsx)(T.s,{}),(0,s.jsx)(Q.H,{})]}),(0,s.jsx)(E.fv,{grow:2,noDividers:!0,children:(0,s.jsx)(tu,{event:u,hasLineups:ef,hasStandings:eg,showDesktopVideoBanner:q,showPlayByPlay:ek,numberOfStandingsRows:null==l?void 0:l.numberOfRows})})]}),(0,s.jsx)(ed.i,{id:"event.DESKTOP_BOTTOM",mt:"md"})]})})})]})}var tv=n(96913),tf=n(28132),tg=n(70115),tj=n(58336),ty=n(62102),tb=n(58074),tw=n(1614),tk=n(51883),tS=n(36614),tC=n(8718),tA=n(42917),tT=n(1584),t_=n(91941),tI=n(55862),tL=n(90890),tE=n(94041),tH=n(15328),tF=n(59280),tR=n(55584),tB=n(78383),tP=n.n(tB),tz=n(7067),tO=n(29953);let tD=(e,t)=>{let n=(0,o.useContext)(tO.A),{variant:s}=(0,tz.Ay)("web_interstitial_ad_unit_standings"),r=(null==n?void 0:n.provider)===eV.w.Google&&s===tz.KT.Treatment,a=(0,o.useRef)({onInterstitialSlotLoaded:tP()}),i=(0,o.useCallback)(()=>{googletag.cmd.push(()=>{googletag.pubads().removeEventListener("slotOnload",a.current.onInterstitialSlotLoaded)})},[]);return(0,o.useEffect)(()=>i(),[]),{showInterstitialAd:(0,o.useCallback)(async()=>(i(),new Promise(n=>{let{path:s,format:a,position:i}=e;if(!r)return void n();googletag.cmd.push(()=>{var e;let r;if(googletag.pubads().addEventListener("slotOnload",e=>{(null==r?void 0:r.getSlotElementId())===e.slot.getSlotElementId()&&(null==t||t())}),!(r=null==(e=googletag.defineOutOfPageSlot(s,googletag.enums.OutOfPageFormat.INTERSTITIAL))?void 0:e.setTargeting("ad_format",a).setTargeting("ad_position",i).addService(googletag.pubads())))return void n();googletag.enableServices(),googletag.display(r)})})),[e,n,r])}};var tM=function(e){return e.EventPageStandingsMobile="EVENT_PAGE_STANDINGS_MOBILE",e}({});let tN={EVENT_PAGE_STANDINGS_MOBILE:{[eV.w.Google]:{divId:"div-gpt-ad-1743088277318-0",path:"/21866864457/web_mobile_interstitial_320x480",size:[[300,250],[320,480],[336,280]],containerSize:[336,480],format:[],position:["out_of_page"],type:"interstitial"},platforms:["mobile"]}},tG=[r.XUj.NotStarted,r.XUj.Finished],tW=4*a.dp,tY=()=>{let{isMobile:e}=(0,eh.$c)(),{event:t}=(0,o.useContext)(c.y$),{showInterstitialAd:n}=tD(tN[tM.EventPageStandingsMobile].Google),{variant:s}=(0,tz.Ay)("web_interstitial_ad_unit_standings"),[r,a]=(0,te.yR)("last-seen-standings-interstitial",void 0),i=tG.includes(t.status.type);return{triggerInterstitialAd:(0,o.useCallback)(async()=>{let t=!!r&&Date.now(){e===tf.H.Standings&&d()},children:[(0,s.jsx)(tw.A,{isSpecialEsports:R,hasStandings:!!_,hasCricketIncidents:f,hasFeaturedOdds:L,onFeaturedOddsClick:()=>n(tf.H.FeaturedOdds),onBestPlayersClick:()=>n(S?tf.H.BoxScore:tf.H.Lineups),onPrematchStandingsClick:()=>n(tf.H.Standings),onSeeAllStatisticsClick:()=>n(tf.H.Statistics)}),E&&(0,s.jsx)(tj.A,{}),k&&(0,s.jsx)(tS.A,{event:a}),j&&(0,s.jsx)(tI.A,{}),g&&(0,s.jsx)(tE.A,{event:a}),S&&(0,s.jsx)(ty.A,{}),C&&(0,s.jsx)(tA.A,{}),A&&(0,s.jsx)(tF.A,{event:a}),T&&(0,s.jsx)(tL.A,{}),_&&(0,s.jsx)(tH.A,{event:a,leftTeamId:i.id,rightTeamId:l.id}),b&&(0,s.jsx)(tC.A,{tabKey:tf.H.Graphs}),w&&(0,s.jsx)(tb.A,{}),(0,s.jsx)(tT.A,{}),p&&a.tournament.uniqueTournament&&a.season&&(0,s.jsx)(tg.A,{uniqueTournament:a.tournament.uniqueTournament,seasonId:a.season.id,sport:u}),H&&(0,s.jsx)(tk.A,{hasRecommendedPrematchOdds:B}),F&&(0,s.jsx)(t_.A,{event:a,isLive:m})]}),(0,s.jsx)(ed.i,{id:"event.MOBILE_BOTTOM",mb:"sm"})]})}var tQ=n(73624);function tK(e){var t;let{event:n}=(0,o.useContext)(c.y$),r=n.tournament.category.sport;return(0,s.jsx)(c.Ws.Provider,{value:r.slug,children:(0,s.jsxs)(tQ.Hy,{eventId:n.id,children:[(0,s.jsx)(f.$B,{children:(0,s.jsx)(tU,{...e})}),(0,s.jsx)(f.h6,{children:(0,s.jsx)(tx,{initialStandingsProperties:e.initialStandingsProperties})}),(0,s.jsx)(g.S,{utId:null==(t=n.tournament.uniqueTournament)?void 0:t.id,location:"event_screen"})]})})}var tq=n(81278),tV=n(30479);let t$={event_details:tf.H.Details,event_lineups:tf.H.Lineups,event_statistics:tf.H.Statistics},tX=e=>{switch(e){case"a":return"android";case"i":return"ios";case"w":return"web";default:return}},tZ=e=>{switch(e){case"ed":return"event_details";case"el":return"event_lineups";case"es":return"event_statistics";default:return}},tJ=(e,t,n)=>{switch(t){case"s":e.source=tX(n);return;case"id":e.id=Number(n);return;case"c":e.category=tZ(n);return;default:return}},t0=(e,t)=>{e.replace("share:","").split(",").forEach(e=>{let n=e.split(":");2===n.length&&tJ(t,n[0],n[1])})},t1=e=>{let t=!!(0,tq.useRouter)().query.sport,n={name:e.slug,id:e.customId};t&&(n.sport=(0,tr.c5)(e));let[s,r]=(0,tV.Ay)({routeKey:u.xW.Event,params:n}),a=(null==s?void 0:s.id)&&!Number.isNaN(null==s?void 0:s.id)?s.id:e.id,[i,l]=(0,o.useState)();return(0,o.useEffect)(()=>{let e=window.location.hash.replace("#",""),t={};e.startsWith("share:")&&(t0(e,t),l(t)),t.id&&r("id",t.id.toString())},[]),{eventId:a,setEventId:e=>r("id",e.toString()),shareInfo:i,setShareInfo:l,activeTab:(null==s?void 0:s.tab)||tf.H.Details,setActiveTab:e=>r("tab",e)}};var t2=n(26331),t4=n(73088),t9=n(72653),t5=n(70389),t6=n(76410),t3=n(99736),t7=n(25862),t8=n(65097);let ne=[r.QCR.AmericanFootball,r.QCR.Cricket,r.QCR.Football,r.QCR.Baseball,r.QCR.Basketball,r.QCR.TableTennis,r.QCR.IceHockey,r.QCR.Handball,r.QCR.Volleyball,r.QCR.MMA];function nt(e){var t,n,i,u,f;if("error"in e)return(0,s.jsx)(t8.default,{statusCode:404});let g=(0,d.A)(),{eventId:j,setEventId:y,shareInfo:b,setShareInfo:w,activeTab:k,setActiveTab:S}=t1(e.event),{event:C}=(0,x.A)(j,{shouldRefresh:!0,onFetchError:()=>y(e.event.id)}),A=(null==C?void 0:C.customId)===e.event.customId?C:e.event,[T,_]=(0,v.A)(A,"homeTeam","awayTeam",A),[I,L]=(0,v.A)(A,"homeScore","awayScore",A);(0,o.useEffect)(()=>{if(C&&((0,t6.l3)(C.id,C.status.type),b&&b.id&&b.category&&b.source)){t$[b.category]&&S(t$[b.category]),w(void 0);try{sessionStorage.setItem(h.IE,"share")}catch(e){}}},[null==C?void 0:C.id]),(0,o.useEffect)(()=>{(0,te.UI)("sofa.event.details.load-id")},[]);let{customId:E,slug:H,homeTeam:F,awayTeam:R,tournament:B,startTimestamp:P}=A,z=(0,t2.A)(),O=F.name,D=R.name,M=A.venue,N=g.formatDate((0,a.pp)(P,!0),{...a.or.dateWithShortMonth}),G=g.formatTime((0,a.pp)(P,!0)),W=A.tournament.category.sport.slug,Y=W===r.QCR.Football,U=W===r.QCR.ESports,Q=null==(t=B.category.alpha2)?void 0:t.toLowerCase(),K=null==(i=F.country)||null==(n=i.alpha2)?void 0:n.toLowerCase(),q=null==(f=R.country)||null==(u=f.alpha2)?void 0:u.toLowerCase(),V=A.isEditor?!(0,m.N)(null!=Q?Q:K&&q&&K===q?K:"",z):(0,p.v)(W,z),$=t4.z.getTranslatedCanonicalRoute(z,"event",{id:E,name:H,sport:W}).route,X={item:"".concat(A.homeTeam.name," ").concat(A.awayTeam.name),homeTeamName:O,awayTeamName:D,home:O,away:D,startDate:N,startTime:G,tournamentName:B.name,categoryName:B.category.name,hasVenue:!!M,year:new Date(1e3*A.startTimestamp).getFullYear(),...(0,tr.Ee)(M)},Z="event",J="livescore";return["fr","it"].includes(z)&&Y&&(Z="event-v2"),Y&&(J="livescore-v3"),U&&(Z="event-esports",J="livescore-esports"),(0,s.jsxs)(eS.an,{value:{meta:e.meta,eventMeta:e.eventMeta,seoContent:e.seoContent},children:[(0,s.jsxs)(l(),{children:[(0,s.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat($)}),(0,s.jsx)("link",{rel:"alternate",href:"android-app://com.sofascore.results/https/www.sofascore.com/event/".concat(A.id)}),(0,s.jsx)("meta",{property:"og:image",content:r.bnp.shareDetailsImage("16x9",A.id)}),(0,s.jsx)("meta",{property:"og:image:width",content:"2130"}),(0,s.jsx)("meta",{property:"og:image:height",content:"1200"}),V&&(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,s.jsx)(t9.A,{event:A}),(0,s.jsx)(eS.Ay,{metaKey:Z,titleKey:J,keywordsKey:"sport",values:X}),(0,s.jsx)(c.y$.Provider,{value:{event:A,leftTeam:T,rightTeam:_,leftScore:I,rightScore:L,location:c.cb.EventPage,initialIncidents:e.incidents,initialHasLineups:e.initialHasLineups},children:(0,s.jsx)(tK,{activeTab:k,setActiveTab:S,initialStandingsProperties:e.initialStandingsProperties})})]})}nt.getInitialProps=t3.Ay.getInitialPageProps(e=>async t=>{let{query:s,req:a,res:i,...l}=t,o=a?a._originalUrl:l.asPath,d=t4.z.getCurrentLocale(o),c=a&&a.params?a.params:s,m=c.id;try{var p,h;let t,s=null==(p=(0,tV.JT)(o))?void 0:p.id;(!s||Number.isNaN(s))&&(s=(await r.nk6.fetchCurrentlyRelevantEvent(m)).currentlyRelevantEvent.id);let{event:a}=await r.nk6.fetchEvent(Number(s));if(!a)throw Error();let l=a.tournament.category.sport.slug;if(i&&a.slug!==c.name&&(i.writeHead(301,{Location:t4.z.getTranslatedRoute(d,"event",{id:a.customId,name:a.slug,sport:l}).route}),i.end()),i&&!u.Hk.includes(l))throw Error("Unsupported sport");if(u.so.includes(l))throw Error("Stage sports do not have event page!");let[x,v,f,g,j]=await Promise.allSettled([r.sdF.getEntityMeta(r.wNW.Event,m,d),r.nk6.fetchH2HMeta(Number(s)),ne.includes(l)?r.sdF.getSeoContent(r.wNW.Event,s,d):Promise.reject(),r.nk6.hasLineups(Number(a.id)),r.nk6.fetchStandingsProperties(a.tournament.id,null==(h=a.season)?void 0:h.id)]),y="fulfilled"===x.status?x.value.entityMeta:void 0,b="fulfilled"===v.status?v.value.meta:void 0,w="fulfilled"===f.status?f.value.content:void 0,k="fulfilled"===g.status?g.value:void 0,S="fulfilled"===j.status?j.value:void 0,C=(0,r.S$s)(),A=(await n.e(1088).then(n.t.bind(n,81088,19))).default;e.dispatch((0,t5.Od)(A)),e.dispatch((0,t7.Vy)(a.tournament.category.sport.slug));try{if(![r.XUj.Canceled,r.XUj.Delayed,r.XUj.NotStarted,r.XUj.Postponed].includes(a.status.type)){let{incidents:e}=await r.nk6.fetchEventIncidents(a.id);t=(null==e?void 0:e.length)?e:void 0}}catch(e){console.error(e)}return{event:a,meta:y,eventMeta:b,seoContent:w,initialHasLineups:k,revalidate:C,incidents:t,initialStandingsProperties:S}}catch(e){return i&&(i.statusCode=404),{error:e}}})},8960:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,d:()=>u});var s=n(21377),r=n(494),a=n(45860),i=n(19451),l=n(2294),o=n(10794),d=n(30479);let c=(e,t)=>{let[n]=(0,d.Ay)({routeKey:i.xW.Betting,params:{}}),r=(null==n?void 0:n.boostId)?+n.boostId:void 0,l=null==t?void 0:t.betBoosts.find(e=>e.event.id===r),{data:o}=(0,a.Ay)(r&&!l?s.bnp.betBoost(r,e):null);return{selectedBoost:null==o?void 0:o.betBoost,selectedEventId:r}},u=()=>{let e=(0,r.d4)(o.LQ);return(0,r.d4)(l.Zw)&&"IT"!==e}},9922:(e,t,n)=>{var s=n(22346);e.exports=function(e){return s(e,5)}},10292:(e,t,n)=>{"use strict";n.d(t,{t:()=>s.t});var s=n(91407)},11773:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,sf:()=>o});var s=n(6029),r=n(21377),a=n(41249),i=n(41735),l=n(67628);let o={[r.QWe.HardcourtIndoor]:"terrain.hardcourtIndoor",[r.QWe.HardcourtOutdoor]:"terrain.hardcourtOutdoor",[r.QWe.Grass]:"terrain.grass",[r.QWe.Clay]:"terrain.clay",[r.QWe.RedClay]:"terrain.clay"},d=(0,i.default)(a.az).withConfig({componentId:"sc-49373ef6-0"})(["display:inline-block;border-radius:",";padding-left:",";padding-right:",";background-color:",";height:",";"],e=>e.theme.spacing.md,e=>e.theme.spacing.sm,e=>e.theme.spacing.sm,e=>{var t,n;return null!=(n=null==(t=e.theme.colors)?void 0:t[o[e.groundType]])?n:e.theme.colors.neutral.default},e=>e.theme.spacing.lg),c=e=>{let{groundType:t,...n}=e;return t?(0,s.jsx)(d,{groundType:t,...n,children:(0,s.jsx)(a.EY,{as:"div",font:"assistive.default",h:"lg",color:"surface.s1",children:(0,s.jsx)(l.n,{id:t})})}):null}},13731:(e,t,n)=>{var s=n(53325),r=n(25725),a=Object.prototype.hasOwnProperty;e.exports=r(function(e,t,n){a.call(e,n)?e[n].push(t):s(e,n,[t])})},14319:(e,t,n)=>{"use strict";n.d(t,{G:()=>g});var s=n(6029),r=n(21377),a=n(41249),i=n(55729),l=n(494),o=n(45860),d=n(62859),c=n(60988),u=n(22648),m=n(75508),p=n(8973),h=n(67628),x=n(90879),v=n(90961),f=n(19121);let g=()=>{let e=(0,l.wA)(),{event:t}=(0,i.useContext)(d.y$),[n,g]=(0,i.useState)(!1),[j,y]=(0,i.useState)(!1),[b,w]=(0,i.useState)(!1),k=t.tournament.category.sport.slug,{data:S}=(0,o.Ay)(r.bnp.head2HeadEvents(t.customId)),C=k===r.QCR.Tennis,A=k===r.QCR.MMA,T=t.homeTeam,_=(0,i.useMemo)(()=>((null==S?void 0:S.events)||[]).filter(e=>{let s=!0;return n&&(s=e.homeTeam.id===T.id),j&&(s=e.tournament.uniqueTournament&&t.tournament.uniqueTournament?s&&e.tournament.uniqueTournament.id===t.tournament.uniqueTournament.id:s&&e.tournament.id===t.tournament.id),b&&(s=s&&t.groundType===e.groundType),s}),[S,n,j,b]);(0,i.useEffect)(()=>{(null==S?void 0:S.events)&&e((0,f.oU)(S.events))},[S]);let I=(0,i.useCallback)(()=>g(e=>!e),[]),L=(0,i.useCallback)(()=>y(e=>!e),[]),E=(0,i.useCallback)(()=>w(e=>!e),[]),H=(0,v.C)(k);return _.length?(0,s.jsxs)(a.az,{w:"100%",children:[(0,s.jsx)(a.so,{align:"center",wrap:"wrap",children:C?!!t.groundType&&(0,s.jsx)(a.Sc,{id:"groundType",checked:b,onChange:E,children:(0,s.jsx)(a.EY,{font:"body.medium",color:"onSurface.nLv1",whiteSpace:"normal",children:(0,s.jsx)(h.n,{id:t.groundType})})}):(0,s.jsxs)(s.Fragment,{children:[H&&(0,s.jsx)(x.d,{id:"playedAt".concat(t.homeTeam.name),textId:"details.atTeam",team:t.homeTeam.name,checked:n,onChange:I}),!A&&(0,s.jsx)(x.d,{id:"thisTournament",textId:"this_competition",checked:j,onChange:L})]})}),(0,s.jsx)(a.az,{p:"sm",children:(0,s.jsx)(c.MC.Provider,{value:{location:p.y.H2HSection},children:(0,s.jsx)(m.b,{events:_,descending:!0,isShort:!0})})})]}):(0,s.jsx)(a.az,{h:300,children:(0,s.jsx)(u.a,{})})}},15926:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(6029),r=n(41249),a=n(65789),i=n(96224);let l=()=>(0,s.jsx)(a.Zp,{children:(0,s.jsx)(r.az,{h:552})});function o(e){let{page:t}=e;return t?(0,s.jsxs)(r.so,{gap:"md","data-testid":"team_streaks",children:[(0,s.jsxs)(r.so,{w:"50%",direction:"column",gap:"sm",children:[(0,s.jsx)(a.Zp,{children:(0,s.jsx)(r.az,{h:136})}),(0,s.jsx)(i.A,{})]}),(0,s.jsx)(r.az,{w:"50%",children:(0,s.jsx)(l,{})})]}):(0,s.jsxs)(r.so,{direction:"column",gap:"sm",children:[(0,s.jsx)(l,{}),(0,s.jsx)(l,{})]})}},19172:(e,t,n)=>{"use strict";n.d(t,{o:()=>s.default});var s=n(52970)},19643:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var s=n(93839);function r(e,t){return"en"===t||t===s.vo[e]}},19666:(e,t,n)=>{"use strict";n.d(t,{$M:()=>i,VX:()=>a,dR:()=>o,qL:()=>r,tR:()=>d});var s=n(55729);let r=(0,s.createContext)(null),a=r.Provider,i=()=>{let e=(0,s.useContext)(r);if(!e)throw Error();return e},l=(0,s.createContext)(void 0),o=l.Provider,d=()=>(0,s.useContext)(l)},19673:(e,t,n)=>{"use strict";function s(e){let t=(null==e?void 0:e.toLowerCase())||"",n=["hr","es","pt"].includes(t);return"https://corporate.sofascore.com".concat(n?"/".concat(t):"","/about/rating")}n.d(t,{y:()=>s})},21403:(e,t,n)=>{"use strict";n.d(t,{H:()=>x,T:()=>h});var s=n(6029),r=n(21377),a=n(95083),i=n(76356),l=n(55729),o=n(494),d=n(45860),c=n(65789),u=n(62859),m=n(10794);let p=e=>{let{isInverseDesktop:t}=e;return(0,s.jsx)(c.Zp,{isInverseDesktop:t,children:(0,s.jsxs)(i.az,{p:"md",children:[(0,s.jsx)(a.EY,{textStyle:"display.small",color:"neutrals.nLv1",children:"Juego Responsable"})," ",(0,s.jsx)(a.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:"- BAP: EL JUEGO COMPULSIVO ES PERJUDICIAL PARA VOS Y TU FAMILIA +18, Linea gratuita de orientacion al jugado problematico 0800-444-4000 BAC: EL JUEGO COMPULSIVO ES PERJUDICIAL PARA VOS Y TU FAMILIA +18, Linea gratuita de orientacion al jugado problematico 0800-666-6006"})]})})},h=e=>{let{isInverseDesktop:t}=e;return"AR"===(0,o.d4)(m.LQ)?(0,s.jsx)(p,{isInverseDesktop:t}):null},x=e=>{let{isInverseDesktop:t}=e,n="AR"===(0,o.d4)(m.LQ),{event:a}=(0,l.useContext)(u.y$),{data:i}=(0,d.Ay)(n?r.bnp.featuredOdds(a.id,1):null);return i&&n?(0,s.jsx)(p,{isInverseDesktop:t}):null}},22152:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var s=n(6029),r=n(21377),a=n(95083),i=n(76356),l=n(55729),o=n(90248),d=n(45860),c=n(65789),u=n(62859),m=n(63263);let p=(0,i.I4)("div",{base:{w:"lg",h:"lg",br:"sm"},variants:{isFilled:{true:{bg:"secondary.default"},false:{bg:"neutrals.nLv5",border:"1px solid {colors.neutrals.nLv4}"}}}}),h=e=>{let{isFilled:t}=e;return(0,s.jsx)(i.az,{px:"xs",py:"2xs",children:(0,s.jsx)(i.az,{w:"xl",h:"xl",br:"md",p:"xs",bg:"neutrals.nLv5",children:(0,s.jsx)(p,{isFilled:t})})})};function x(e){let{dots:t,dotsColored:n=0,isReversed:r}=e,a=[];for(let e=0;e{"use strict";n.d(t,{Y:()=>g});var s=n(6029),r=n(21377),a=n(95083),i=n(76356),l=n(71024),o=n.n(l),d=n(90248),c=n(494),u=n(54409),m=n(1815),p=n(49254),h=n(76410),x=n(10794),v=n(94842);let f=o()(()=>n.e(1489).then(n.bind(n,31489)),{loadableGenerated:{webpack:()=>[31489]},ssr:!1}),g=e=>{let{utId:t,location:n}=e,l=(0,c.d4)(x.LQ),o=(0,m.e)(()=>(0,h.Z1)({type:"banner",name:"nba_league_pass",location:n}),{delay:500,sendInterval:3e4});return l&&p.p.includes(l)&&t===r.G6l.NBA&&(0,p.O)(new Date().getTime())?(0,s.jsx)(i.az,{w:"100%",minH:"11xl",children:(0,s.jsx)(v.N,{onClick:()=>(0,h.AW)({type:"banner",name:"nba_league_pass",location:n}),children:(0,s.jsxs)(i.so,{ref:o,w:"100%",minH:"11xl",p:"lg",br:"lg",gap:"xs",elevation:"2",justify:"space-between",align:"center",style:{background:"url(/static/images/nba-league-pass/banner.png)",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},children:[(0,s.jsxs)(i.az,{children:[(0,s.jsxs)(i.so,{direction:"column",gap:"xs",children:[(0,s.jsx)(a.EY,{textStyle:"display.small",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"league_pass_promo_title"})}),(0,s.jsx)(a.EY,{textStyle:"assistive.default",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"league_pass_promo_body_long"})})]}),(0,s.jsxs)(a.$n,{variant:"filled",size:"tertiary",bg:"surface.s1",color:"primary.default",mt:"md",children:[(0,s.jsx)("span",{children:(0,s.jsx)(d.A,{id:"claim_offer"})}),(0,s.jsx)(u.HW5,{h:16,w:16,fill:"primary.default"})]})]}),(0,s.jsx)(i.az,{w:"5xl",h:"5xl",children:(0,s.jsx)(f,{size:56})})]})})}):null}},25725:(e,t,n)=>{var s=n(81648),r=n(78492),a=n(68988),i=n(91544);e.exports=function(e,t){return function(n,l){var o=i(n)?s:r,d=t?t():{};return o(n,e,a(l,2),d)}}},27601:(e,t,n)=>{"use strict";n.d(t,{B:()=>u,U:()=>c});var s=n(95083),r=n(494),a=n(79263),i=n(2294),l=n(37974);let o=[{marketName:"Full time",choiceGroup:""},{marketName:"Double chance",choiceGroup:""}],d=(e,t,n)=>{let s={};null==e||e.forEach((e,n)=>{var r;null==(r=e.markets)||r.forEach(e=>{s[e.marketName]||(s[e.marketName]={});let r=e.choiceGroup||"";s[e.marketName][r]||(s[e.marketName][r]=[]);let a=s[e.marketName][r][n];a&&(a.isLive===t||e.isLive!==t)||(s[e.marketName][r][n]=e)})});let r=[];return Object.keys(s).forEach(e=>{Object.keys(s[e]).forEach(t=>{(!n||s[e][t].length>=n)&&r.push({marketName:e,choiceGroup:t})})}),{groupedOdds:s,availableMarkets:r}},c=(e,t)=>{var n;let{data:s,error:r,isLoading:i}=(0,a.j)(e,t),{groupedOdds:l,availableMarkets:o}=d(null==s?void 0:s.providerOdds,t);if(!o.length)return{odds:void 0,marketName:void 0,error:r,isLoading:i};let c=null!=(n=o.find(e=>"Full time"===e.marketName))?n:o[0];return{odds:l[c.marketName][c.choiceGroup],oddsMayDiffer:null==s?void 0:s.oddsMayDiffer,marketName:c.marketName,error:r,isLoading:i}},u=(e,t)=>{let{data:n,error:c,isLoading:u}=(0,a.j)(e,t),m=(0,r.d4)(e=>(0,i.GD)(e,t)),{isDesktopLarge:p}=(0,s.$c)(),{groupedOdds:h,availableMarkets:x}=d(null==n?void 0:n.providerOdds,t),v=o.filter(e=>x.find(t=>t.marketName===e.marketName&&t.choiceGroup===e.choiceGroup)).slice(0,p?2:1),f=new Set;return(v.length||u)&&(null==m?void 0:m.length)?(v.forEach(e=>{h[e.marketName][e.choiceGroup].forEach(e=>{e.choices.forEach(e=>{l.Vj.includes(e.name)&&f.add(e.name)})})}),{odds:m.map((e,t)=>v.map(e=>h[e.marketName][e.choiceGroup][t]).filter(Boolean)),markets:v,choiceNames:l.Vj.filter(e=>f.has(e)),error:c,isLoading:u}):{odds:void 0,markets:v,choiceNames:[],error:!0,isLoading:!1}}},31112:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var s=n(6029),r=n(76410);let a=e=>{let{children:t,branding:n,noLink:a,entityId:i,location:l,type:o}=e;return n.url&&!a?(0,s.jsx)("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>{l&&i&&(0,r.md)({id:i,location:l,provider:n.brand.slug,type:o})},children:t}):(0,s.jsx)(s.Fragment,{children:t})}},31215:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(6029),r=n(73045),a=n(95083),i=n(76356),l=n(90248);function o(e){let{tournamentName:t,tournamentId:n,uniqueTournamentId:o,hideLogo:d,isLive:c,mobileOnly:u}=e;return(0,s.jsx)(i.az,{hideBelow:u?"md":void 0,children:(0,s.jsxs)(i.so,{px:"sm",pt:"sm",gap:"lg",justify:"space-between",align:"center",children:[(0,s.jsxs)(i.so,{gap:"lg",align:"center",children:[!d&&(o?(0,s.jsx)(r.e,{id:o,size:40}):(0,s.jsx)(r.l,{id:n,size:40})),(0,s.jsx)(a.EY,{textStyle:"display.large",color:"neutrals.nLv1",lineClamp:2,children:t})]}),c&&(0,s.jsxs)(i.so,{align:"center",children:[(0,s.jsx)(i.az,{w:"sm",h:"sm",bg:"status.live",br:"50%",mr:"sm"}),(0,s.jsx)(a.EY,{lineHeight:"8px",textStyle:"body.small",color:"status.live",display:"block",children:(0,s.jsx)(l.A,{id:"live"})})]})]})})}},31229:(e,t,n)=>{"use strict";n.d(t,{U:()=>m});var s=n(6029),r=n(21377),a=n(55729),i=n(494),l=n(62859),o=n(8703),d=n(65078),c=n(10794),u=n(94604);let m=()=>{let{event:e,leftTeam:t,rightTeam:n}=(0,a.useContext)(l.y$),m=(0,d.g3)(),p=(0,s.jsx)(u.Rm,{team:t}),h=(0,s.jsx)(u.Rm,{team:n}),x=(0,o.c5)(e),v="ar"===(0,i.d4)(c.JV);return(0,s.jsxs)(s.Fragment,{children:[v?h:p," ",x===r.QCR.MMA?"vs":v?"ضد":m?"@":"-"," ",v?p:h]})}},31712:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var s=n(6029),r=n(18612),a=n(21377),i=n(41249),l=n(90248),o=n(45860),d=n(8703),c=n(33144),u=n(55729),m=n(947),p=n(65789),h=n(54409),x=n(80224),v=n(26331),f=n(84942),g=n(98516),j=n(70591);let y=e=>{let{id:t,scores:n,isHeader:r,mouseoverTitles:a}=e;return(0,s.jsx)(i.so,{children:n.map((e,n)=>(0,s.jsx)(i.EY,{font:r?"assistive.default":"table.medium",color:r?"onSurface.nLv3":"onSurface.nLv1",w:32,align:"center",as:"div",title:null==a?void 0:a[n],children:e||0},"score-".concat(n,"-").concat(t)))})},b=e=>{let{player:t,displayValue:n,secondary:r,classic:l,addSlash:o}=e;if(!n&&!(null==t?void 0:t.name))return null;let d=(0,s.jsxs)(i.EY,{font:"table.medium",color:r?"onSurface.nLv3":"onSurface.nLv1",hover:!!l&&!!t,ellipsis:!0,as:"div",children:[n||(null==t?void 0:t.name),o&&(0,s.jsx)(i.EY,{font:"table.medium",color:r?"onSurface.nLv3":"onSurface.nLv1",px:"xs",children:"/"})]});return(0,s.jsx)(i.az,{overflow:"hidden",h:16,children:t?(0,s.jsx)(j.uc,{player:t,sportSlug:a.QCR.Cricket,style:{overflow:"hidden"},children:d}):d})},w=(0,n(41735).default)(i.AM.Content).withConfig({componentId:"sc-f6319a7c-0"})(["::after{content:'';display:block;position:absolute;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:8px solid ",";top:-14px;right:96px;transform:rotate(90deg);filter:drop-shadow(-2px 0px 2px ",");}"],e=>e.theme.colors.surface.sp,e=>e.theme.colors.effect.elevation1),k=e=>{let{title:t,labels:n,mouseoverTitles:r}=e,a=(0,s.jsxs)(i.so,{px:"lg",py:"xs",justify:"space-between",cursor:r?"pointer":void 0,userSelect:"none",children:[(0,s.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",children:t}),(0,s.jsx)(y,{scores:n,isHeader:!0,mouseoverTitles:r})]});return r?(0,s.jsx)(i.AM,{closeOnOutsideClick:!0,closeOnInsideClick:!0,trigger:a,children:(0,s.jsx)(w,{right:32*n.length-100,w:200,br:"xs",p:"lg",elevation:3,children:n.map((e,t)=>(0,s.jsxs)(i.so,{align:"center",h:32,children:[(0,s.jsx)(i.EY,{w:36,as:"div",color:"onSurface.nLv3",font:"assistive.default",children:e})," ",(0,s.jsx)(i.az,{grow:1,children:(0,s.jsx)(i.EY,{as:"div",color:"onSurface.nLv1",font:"body.small",children:(0,s.jsx)(l.A,{id:r[t]})})})]},e))})}):a},S=e=>{let{ordinalLabel:t,playerLabel:n,statLabels:r}=e;return(0,s.jsxs)(i.so,{px:"lg",py:"xs",gap:"lg",justify:"space-between",children:[(0,s.jsx)(i.EY,{w:24,font:"assistive.default",color:"onSurface.nLv3",align:"center",as:"div",children:t}),(0,s.jsx)(i.az,{grow:1,children:(0,s.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",as:"div",children:n})}),r.map(e=>(0,s.jsx)(i.EY,{w:48,font:"assistive.default",color:"onSurface.nLv3",align:"center",as:"div",children:(0,s.jsx)(l.A,{id:e})},e))]})},C=e=>{let{ordinal:t,batter:n,partnerOne:r,partnerTwo:a,score:l,over:o,classicLinks:d}=e,[c,m]=(0,u.useState)(),p=[null==n?void 0:n.player,r,a].filter(e=>!!e),h=e=>{!(p.length<2)&&(!1===e?m(void 0):c||m(p))};return(0,s.jsxs)(i.so,{position:"relative",h:48,px:"lg",gap:"lg",justify:"space-between",align:"center",hoverBg:p.length?"surface.s2":"transparent",cursor:"pointer",onClick:()=>h(!0),children:[(0,s.jsx)(i.EY,{minW:24,w:24,font:"table.medium",color:"onSurface.nLv1",align:"center",as:"div",children:t}),(0,s.jsxs)(i.so,{grow:1,wrap:"wrap",overflow:"hidden",minW:["auto","auto",232],children:[n&&!r&&!a&&(0,s.jsx)(b,{displayValue:null==n?void 0:n.playerName}),r&&(0,s.jsx)(b,{displayValue:r.name,classic:d,addSlash:!!a}),a&&(0,s.jsx)(b,{displayValue:a.name,classic:d})]}),(0,s.jsx)(i.EY,{minW:48,w:48,font:"table.medium",color:"onSurface.nLv1",align:"center",as:"div",children:l}),(0,s.jsx)(i.EY,{minW:48,w:48,font:"table.medium",color:"onSurface.nLv1",align:"center",as:"div",children:o}),p.length>1&&(0,s.jsx)(x.A,{isOpen:!!(null==c?void 0:c.length),setIsOpen:e=>{h(e)},players:p})]})},A=e=>{let t,n,s=t=>({player:e.wicketBowler,displayValue:e.wicketBowlerName?"b ".concat(e.wicketBowlerName," ").concat(t&&e.wicketTypeName||""):""}),r=t=>({player:e.wicketCatch,displayValue:e.wicketCatchName?"".concat(t," ").concat(e.wicketCatchName):""});switch(e.wicketTypeId){case 1:case 2:t=s(!0);break;case 3:t=r("c"),n=s(!1);break;case 4:t=r("st"),n=s(!1);break;case 5:t=r("c(sub)"),n={player:void 0,displayValue:"b ".concat(e.wicketTypeName||"")};break;case 6:t=r("c & b ");break;case 14:t=r("c(sub)"),n=s(!1);break;case 15:t=r("c"),n={player:void 0,displayValue:e.wicketTypeName};break;default:t={player:void 0,displayValue:e.wicketTypeName}}return{first:t,second:n}},T=e=>{let{batter:t,isCurrent:n}=e,[r,a]=(0,u.useState)(),l=[t.score,t.balls,t.s4,t.s6,t.balls&&t.score?(0,g.M)(t.score/t.balls*100,2):"0.00 "],{first:o,second:d}=A(t),c=[t.player,null==o?void 0:o.player,null==d?void 0:d.player].filter(e=>!!e),m=e=>{!1===e?a(void 0):r||a(c)};return(0,s.jsxs)(i.so,{position:"relative",h:(null==d?void 0:d.displayValue)?72:56,pl:"lg",pr:"lg",align:"center",justify:"space-between",bg:n?"primary.highlight":"transparent",hoverBg:"surface.s2",cursor:"pointer",onClick:()=>m(!0),children:[n&&(0,s.jsx)(i.az,{position:"absolute",top:0,left:0,h:"100%",w:"4px",bg:"primary.default"}),(0,s.jsxs)(i.so,{align:"flex-start",direction:"column",overflow:"hidden",flex:"1 1 auto",children:[(0,s.jsxs)(i.so,{justify:"flex-start",gap:"xs",overflow:"hidden",children:[(0,s.jsx)(b,{displayValue:t.playerName,classic:!0}),n&&(0,s.jsx)(h.BM3,{width:16,height:16,fill:"sofaSingles.live",ml:"xs",style:{marginTop:0}})]}),o.displayValue&&(0,s.jsx)(b,{displayValue:o.displayValue,secondary:!0,classic:!0}),(null==d?void 0:d.displayValue)&&(0,s.jsx)(b,{displayValue:d.displayValue,secondary:!0,classic:!0})]}),(0,s.jsx)(y,{scores:l}),(0,s.jsx)(x.A,{isOpen:!!(null==r?void 0:r.length),setIsOpen:e=>{m(e)},players:c})]})};function _(e){let{inning:t}=e,n=(0,m.A)(),r=(0,v.A)(),a=null==t?void 0:t.battingLine.filter(e=>9!==e.wicketTypeId),o=null==t?void 0:t.battingLine.filter(e=>9===e.wicketTypeId);if(a.length+o.length===0)return null;let d=t.wickets&&t.wickets<10?"/".concat(t.wickets):"";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(i.az,{py:"sm",children:[a.length>0&&(0,s.jsxs)(i.az,{children:[(0,s.jsx)(k,{title:n.formatMessage({id:"cricket.batter"}),labels:["R","B","4s","6s","SR"],mouseoverTitles:[n.formatMessage({id:"runs"}),n.formatMessage({id:"details.balls"}),n.formatMessage({id:"cricket_fours_info"}),n.formatMessage({id:"cricket_sixes_info"}),n.formatMessage({id:"cricket_strike_rate"})]}),a.map((e,n)=>{var r;return(0,s.jsx)(T,{batter:e,isCurrent:(null==(r=t.currentBatter)?void 0:r.id)===e.player.id},"batter-".concat(n))})]}),(0,s.jsxs)(i.so,{py:"sm",px:"lg",gap:"xs",justify:"space-between",children:[(0,s.jsxs)(i.EY,{w:"64px",pr:"xs",font:"table.medium",color:"onSurface.nLv1",children:[(0,s.jsx)(l.A,{id:"details.extras"}),": ",t.extra]}),(0,s.jsxs)(i.EY,{w:"48px",font:"table.medium",color:"onSurface.nLv1",children:["W: ",t.wide]}),(0,s.jsxs)(i.EY,{w:"48px",font:"table.medium",color:"onSurface.nLv1",children:["N: ",t.noBall]}),(0,s.jsxs)(i.EY,{w:"48px",font:"table.medium",color:"onSurface.nLv1",children:["B: ",t.bye]}),(0,s.jsxs)(i.EY,{w:"48px",font:"table.medium",color:"onSurface.nLv1",children:["LB: ",t.legBye]}),(0,s.jsxs)(i.EY,{w:"48px",font:"table.medium",color:"onSurface.nLv1",children:["P: ",t.penalty]})]}),(0,s.jsxs)(i.EY,{px:"lg",py:"sm",font:"table.medium",color:"onSurface.nLv1",as:"div",children:[(0,s.jsx)(l.A,{id:"details.total"}),": ",t.score,d," (",t.overs,")"]})]})}),o.length>0&&(0,s.jsx)(p.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(i.az,{py:"lg",children:[(0,s.jsxs)(i.EY,{px:"lg",font:"display.small",color:"onSurface.nLv1",as:"div",children:[(0,s.jsx)(l.A,{id:"cricket.didNotBat"}),":"]}),(0,s.jsx)(i.EY,{px:"lg",pt:"lg",font:"body.small",color:"onSurface.nLv1",as:"div",children:o.map(e=>(0,f.s)(e.player,r)).join(", ")})]})})]})}let I=e=>{let{bowler:t,isCurrent:n}=e,r=[t.over,t.maiden,t.run,t.wicket,t.noBall,t.wide,t.over&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=String(t).split("."),s=Number(n[0]),r=n.length>1?Number(n[1]):0;return(0,g.M)(e/(s+r/6),2)}(t.run,t.over)];return(0,s.jsxs)(i.so,{position:"relative",h:48,pl:"lg",pr:"lg",align:"center",justify:"space-between",bg:n?"secondary.highlight":"transparent",hoverBg:"surface.s2",children:[n&&(0,s.jsx)(i.az,{position:"absolute",top:0,left:0,h:"100%",w:"4px",bg:"secondary.default"}),(0,s.jsxs)(i.so,{align:"center",overflow:"hidden",children:[(0,s.jsx)(b,{player:t.player,displayValue:t.playerName}),n&&(0,s.jsx)(h.Pvq,{width:16,height:16,fill:"sofaSingles.live",ml:"xs"})]}),(0,s.jsx)(y,{scores:r})]})};function L(e){let{inning:t}=e,n=(0,m.A)();return t.bowlingLine.length?(0,s.jsxs)(i.az,{py:"sm",children:[(0,s.jsx)(k,{title:n.formatMessage({id:"cricket.bowler"}),labels:["O","M","R","W","NB","WD","E/R"],mouseoverTitles:[n.formatMessage({id:"cricket.overs"}),n.formatMessage({id:"cricket_maidens"}),n.formatMessage({id:"runs"}),n.formatMessage({id:"wickets"}),n.formatMessage({id:"cricket_no_ball"}),n.formatMessage({id:"cricket_wide_ball"}),n.formatMessage({id:"economyRate"})]}),t.bowlingLine.map((e,n)=>{var r;let a=e.player.id?j.uc:i.az;return(0,s.jsx)(a,{player:e.player,children:(0,s.jsx)(I,{bowler:e,isCurrent:(null==(r=t.currentBowler)?void 0:r.id)===e.player.id},"bowler-".concat(n))},e.player.id)})]}):null}function E(e){let{fallOfWicketLine:t}=e,n=(0,m.A)();return t.length?(0,s.jsxs)(i.az,{py:"sm",children:[(0,s.jsx)(S,{ordinalLabel:n.formatMessage({id:"score.cricketShort"}),playerLabel:n.formatMessage({id:"cricket.fallOfWicket"}),statLabels:["details.score","over"]}),t.map((e,t)=>{let n=e.player.id?j.uc:i.az;return(0,s.jsx)(n,{player:e.player,children:(0,s.jsx)(C,{ordinal:t+1,batter:e,score:"".concat(e.fowScore,"-").concat(t+1),over:e.fowOver||"-"})},e.player.id)})]}):null}function H(e){let{fallOfWicketLine:t}=e;return t.length?(0,s.jsxs)(i.az,{py:"sm",children:[(0,s.jsxs)(i.EY,{px:"lg",py:"sm",font:"display.small",color:"onSurface.nLv1",as:"div",children:[(0,s.jsx)(l.A,{id:"cricket.fallOfWicket"}),":"]}),(0,s.jsx)(i.EY,{px:"lg",py:"sm",font:"body.small",color:"onSurface.nLv1",as:"div",children:t.map((e,t)=>"".concat(t+1,"-").concat(e.fowScore," (").concat(e.playerName||e.player.name||"",", ").concat(e.fowOver," ov)")).join(", ")})]}):null}function F(e){var t;let{inning:n}=e,r=(0,m.A)();return(null==n||null==(t=n.partnerships)?void 0:t.length)?(0,s.jsxs)(i.az,{py:"sm",children:[(0,s.jsx)(S,{ordinalLabel:"-",playerLabel:r.formatMessage({id:"details.partnership"}),statLabels:["runs","details.balls"]}),n.partnerships.map((e,t)=>(0,s.jsx)(C,{ordinal:t+1,partnerOne:e.player1,partnerTwo:e.player2,score:"number"==typeof e.score?e.score:"-",over:"number"==typeof e.balls?e.balls:"-",classicLinks:!0},"partnership-".concat(t)))]}):null}function R(e){var t,n;let{innings:r,isLive:a}=e,[l,o]=(0,u.useState)(a?r.length-1:0),d=(0,m.A)(),h=(0,u.useMemo)(()=>{let e=[],t={};return r.forEach(n=>{if(n.superOver){let t=d.formatMessage({id:"cricket_super_over_number"},{n:n.superOver});e.push("".concat(n.battingTeam.name," ").concat(t));return}t[n.battingTeam.id]?t[n.battingTeam.id]+=1:t[n.battingTeam.id]=1;let s=d.formatMessage({id:"ordinalInning"},{n:t[n.battingTeam.id]}),r="".concat(n.battingTeam.name," ").concat(s);e.push(r)}),e},[r]),x=r.map((e,t)=>({name:h[t],battingTeamName:e.battingTeam.name,battingTeamId:e.battingTeam.id})),v=(null!=(n=null==(t=r[l])?void 0:t.battingLine)?n:[]).filter(e=>{var t,n;return(null!=(t=e.fowOver)?t:0)>0||(null!=(n=e.fowScore)?n:0)>0}).sort((e,t)=>{var n,s,r,a;return e.fowScore!==t.fowScore?(null!=(n=e.fowScore)?n:0)-(null!=(s=t.fowScore)?s:0):e.fowOver===t.fowOver?0:(null!=(r=e.fowOver)?r:0)-(null!=(a=t.fowOver)?a:0)});return(0,s.jsx)(i.az,{children:(0,s.jsxs)(i.so,{direction:"column",gap:"sm",children:[(0,s.jsx)(p.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(i.ms,{items:x,renderItem:e=>(0,s.jsxs)(i.so,{align:"center",children:[(0,s.jsx)(c.p,{id:e.battingTeamId,name:e.battingTeamName,size:24}),(0,s.jsx)(i.EY,{ml:"sm",font:"body.medium",color:"onSurface.nLv1",children:e.name})]}),selectedItem:x[l],onSelectedItemChange:e=>o(e.selectedItemIndex||0),buttonStyle:{backgroundColor:"transparent",padding:12,borderRadius:16,width:"100%"}})}),(0,s.jsx)(_,{inning:r[l]}),(0,s.jsx)(p.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(H,{fallOfWicketLine:v})}),(0,s.jsx)(p.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(L,{inning:r[l]})}),(0,s.jsx)(p.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(E,{fallOfWicketLine:v})}),(0,s.jsx)(p.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(F,{inning:r[l]})})]})})}let B=e=>{let{style:t,...n}=e;return(0,s.jsxs)(i.az,{p:"sm",pt:"0",...n,children:[(0,s.jsx)(i.EY,{lineHeight:"24px",font:"display.medium",color:"onSurface.nLv1",align:"center",pt:"md",mb:"xs",as:"div",children:(0,s.jsx)(l.A,{id:"innings"})}),(0,s.jsx)(i.az,{p:"sm",children:(0,s.jsx)(i.az,{bg:"surface.s2",br:"lg",h:48})}),(0,s.jsx)(i.az,{h:24}),(0,s.jsx)(r.D,{height:680,uniqueKey:"cricket-cl",children:Array(11).fill(null).map((e,t)=>(0,s.jsx)("rect",{x:0,y:56*t,width:"100%",height:54},t))})]})},P=function(e){var t;let{event:n,isLive:r,...i}=e,{data:l,error:c}=(0,o.Ay)(a.bnp.cricketInnings(n.id),(0,d.rf)(n));return c?null:l?(null==(t=l.innings)?void 0:t.length)?(0,s.jsx)(R,{innings:l.innings,isLive:r},n.id):null:(0,s.jsx)(B,{...i})}},32523:(e,t,n)=>{"use strict";n.d(t,{E:()=>s.E});var s=n(3881)},34199:(e,t,n)=>{"use strict";n.d(t,{eD:()=>a.e,l3:()=>r.l,pY:()=>s.p});var s=n(91603),r=n(37721),a=n(33480)},34884:(e,t,n)=>{"use strict";n.d(t,{i:()=>m});var s=n(6029),r=n(95083),a=n(41249),i=n(55729),l=n(90248),o=n(41735),d=n(54409),c=n(70591),u=n(76410);function m(e){let{numberOfEditors:t,isOrganization:n,eventLocation:m,nickname:p,userId:h,hasStarted:x,isInLeagueHeader:v,onClick:f}=e,g=(0,i.useContext)(o.ThemeContext),{isDesktop:j}=(0,r.$c)(),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.EY,{font:"assistive.default",color:v&&j?"onColor.primary":"primary.default",children:p?(0,s.jsx)(l.A,{id:x?"edited_by":"event.createdBy",values:{nickname:p}}):(0,s.jsx)(l.A,{id:"edited_by_more_editors",values:{number:t}})}),(0,s.jsx)(d._jO,{ml:"sm",height:16,width:16,fill:v&&j?"onColor.primary":"primary.default"})]}),b=(0,s.jsx)(a.$n,{tertiary:!0,style:{background:g.colors.overlay.darken1},border:"0",children:y});return p||t?(0,s.jsx)(a.so,{justify:"flex-end",align:"center",p:"xs",children:f?(0,s.jsx)(a.az,{cursor:"pointer",onClick:f,children:v&&j?b:y}):n?(0,s.jsx)("a",{href:"https://editor.sofascore.com/",target:"_blank",rel:"noreferrer",children:v&&j?b:y}):(0,s.jsx)(c.N_,{routeKey:"user",params:{userId:h},onClick:()=>(0,u.Zs)(m),children:v&&j?b:y})}):null}},37974:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>k,Vj:()=>b,Yt:()=>y});var s=n(6029),r=n(21377),a=n(95083),i=n(76356),l=n(55729),o=n(90248),d=n(90510),c=n(494),u=n(62859),m=n(65078),p=n(70591),h=n(49821),x=n(2294),v=n(4236),f=n(76410),g=n(94604),j=n(70819);let y={default:[1,2],md:[1]},b=["1","X","2","1X","X2","12"],w=e=>{let{length:t=3}=e;return(0,s.jsx)(s.Fragment,{children:Array.from({length:t}).map((e,t)=>(0,s.jsx)(i.az,{w:"[52px]",flexGrow:0,flexShrink:0,flexBasis:"[52px]"},t))})},k=e=>{var t;let{event:n,markets:b,marketChoiceNames:k,hasManyMarkets:S}=e,C=n.status.type===r.XUj.InProgress,A=(0,c.d4)(x.a5),{leftTeam:T,rightTeam:_}=(0,m.AR)(n),I=(0,m.g3)(n),{mediaBreakpoint:L}=(0,a.$c)(),E=y[L]||y.default;if(!b)return null;let H=b.filter(e=>E.includes(e.marketId)),F=H.filter(e=>e.isLive===C),R=H.filter(e=>e.isLive===C||!F.find(t=>t.marketId===e.marketId));return(0,s.jsxs)(i.so,{align:"center",py:"xs",borderBottom:"1px solid {colors.neutrals.nLv4}",gap:"xs",children:[(0,s.jsx)(i.az,{flexGrow:1,flexShrink:1,flexBasis:"[100px]",overflow:"hidden",maxW:"100%",children:(0,s.jsx)(p.tj,{event:n,children:(0,s.jsxs)(i.so,{align:"center",gap:"xs",br:"xs",children:[(0,s.jsx)(i.az,{flexGrow:0,flexShrink:1,flexBasis:"[36px]",children:(0,s.jsx)(a.EY,{textStyle:"body.small",mr:"xs",w:"2xl",textAlign:"center",display:"block",color:C?"status.live":"neutrals.nLv1",children:C?(0,s.jsx)(o.A,{id:"live"}):(0,s.jsx)(d.ib,{value:1e3*n.startTimestamp})})}),(0,s.jsx)(i.az,{w:"[1px]",h:"[36px]",bg:"neutrals.nLv4"}),(0,s.jsxs)(i.so,{direction:"column",flexGrow:1,flexShrink:1,flexBasis:"6xl",overflow:"hidden",children:[(0,s.jsx)(a.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:(0,s.jsx)(g.lC,{original:S?T.nameCode||T.shortName||T.name:T.shortName||T.name})}),(0,s.jsx)(a.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:(0,s.jsx)(g.lC,{original:S?_.nameCode||_.shortName||T.name:_.shortName||T.name})})]})]})})}),R.map(e=>{if(E.includes(e.marketId)){let t=[...k[e.marketId]||[]],r=(0,v.nu)(e.choices,I);return t.length?(0,s.jsx)(l.Fragment,{children:t.map(t=>{let a=r.find(e=>e.name===t);return a?(0,s.jsx)(j.A,{choice:a,betSlipLink:A&&(0,v.Iz)(a,e,A),branded:null==A?void 0:A.branded,isLive:e.isLive,onClick:()=>(0,f.Fe)({id:n.id,category:e.marketName,location:u.cb.FeaturedOdds,provider:null==A?void 0:A.provider.slug,position:h.ki.OddsValue,type:h.jF.Featured})},"".concat(t,"-").concat(e.id)):(0,s.jsx)(i.az,{w:"[52px]",flexGrow:0,flexShrink:0,flexBasis:"[52px]"},"".concat(t,"-").concat(e.id))})},e.id):(0,s.jsx)(w,{},"empty")}return null}),-1===b.findIndex(e=>2===e.marketId)&&!!k[2]&&(0,s.jsx)(w,{length:null==(t=k[2])?void 0:t.size})]})}},39979:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var s=n(6029),r=n(34199),a=n(21377),i=n(95083),l=n(76356),o=n(55729),d=n(90510),c=n(90248),u=n(494),m=n(45860),p=n(65789),h=n(62859),x=n(22648),v=n(58775),f=n(70591),g=n(94604),j=n(10234),y=n(49821),b=n(2294),w=n(77988),k=n(85304),S=n(41618);let C=e=>{var t,n;let{team:a}=e,o=null==(t=a.subTeams)?void 0:t[0],d=null==(n=a.subTeams)?void 0:n[1];return(0,s.jsxs)(l.so,{direction:"column",align:"center",flex:"[1 0 0px]",overflow:"hidden",children:[o&&d?(0,s.jsxs)(l.so,{align:"center",justify:"center",gap:"[10px]",mb:"xs",children:[(0,s.jsx)(r.pY,{id:o.id,name:o.name,size:24},o.id),(0,s.jsx)(r.pY,{id:d.id,name:d.name,size:24},d.id)]}):(0,s.jsx)(r.pY,{id:a.id,name:a.name,size:24}),o&&d?[(0,s.jsx)(i.EY,{truncate:!0,textStyle:"assistive.default",w:"100%",textAlign:"center",children:(0,s.jsx)(g.Rm,{team:o,short:!0})},o.id),(0,s.jsx)(i.EY,{truncate:!0,textStyle:"assistive.default",w:"100%",textAlign:"center",children:(0,s.jsx)(g.Rm,{team:d,short:!0})},d.id)]:(0,s.jsx)(i.EY,{truncate:!0,textStyle:"assistive.default",w:"100%",textAlign:"center",children:(0,s.jsx)(g.Rm,{team:a})})]})},A=e=>{let{market:t,onClick:n,index:r}=e,{isMobile:a}=(0,i.$c)(),o=t.event;return(0,s.jsxs)(l.az,{bg:{md:"surface.s1"},br:{md:"sm"},p:"sm",borderTop:r>0?{mdDown:"1px solid {colors.neutrals.nLv4}"}:void 0,marginTop:r>0?{md:"sm"}:void 0,children:[(0,s.jsx)(f.tj,{event:o,children:(0,s.jsxs)(l.so,{justify:"center",align:"center",_hover:{bg:"neutrals.nLv4"},cursor:"pointer",p:"xs",mb:"xs",br:"sm",children:[(0,s.jsx)(C,{team:o.homeTeam}),(0,s.jsxs)(l.so,{direction:"column",justify:"center",align:"center",mx:"md",flex:"[1 0 0px]",children:[(0,s.jsx)(i.EY,{textStyle:"display.medium",children:(0,s.jsx)(d.ib,{value:1e3*o.startTimestamp})}),(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(d.XU,{value:1e3*o.startTimestamp})})]}),(0,s.jsx)(C,{team:o.awayTeam})]})}),(0,s.jsx)(l.az,{mb:"-xs",children:(0,s.jsx)(k.A,{market:t,onClick:n,hideMarketName:!0,secondary:a})})]})},T=(0,o.forwardRef)((e,t)=>{var n,d;let{preferRecommendedPrematch:g,showHeader:k}=e,{event:C}=(0,o.useContext)(h.y$),{isMobile:T}=(0,i.$c)(),[_,I]=(0,o.useState)(!T),[L]=(0,u.d4)((0,b.Pf)()),E=null==(n=C.tournament)?void 0:n.id,H=null==(d=C.tournament)?void 0:d.category.sport.slug,F=L&&E,{data:R,error:B}=(0,m.Ay)(F?a.npy.recommendedPrematch(L,E):null),P=!g&&B&&L&&H,{data:z,error:O}=(0,m.Ay)(P?a.npy.recommendedPrematchTopVoted(L,H):null),D=R||z,M=(0,o.useMemo)(()=>{let e=null==D?void 0:D.odds.filter(e=>e.id!==C.id);return _?e:null==e?void 0:e.slice(0,4)},[D,_]),N=null==M?void 0:M.reduce((e,t)=>{let n=t.event.tournament.id;return e[n]?e[n].push(t):e[n]=[t],e},{}),{ref:G,makeOnClick:W}=(0,y.kW)({type:y.jF.Compliance});return M?(0,s.jsx)(l.az,{ref:G,children:(0,s.jsxs)(p.HH,{isCard:!T,children:[k&&(0,s.jsx)(i.EY,{textStyle:"display.medium",textAlign:"center",pt:"md",px:"lg",pb:"xs",lineHeight:"24px",ref:t,display:"block",children:(0,s.jsx)(c.A,{id:"featured_odds"})}),(0,s.jsx)(l.so,{justify:"flex-end",align:"center",px:"lg",pt:"md",pb:"0",children:(0,s.jsx)(S.$,{})}),(0,s.jsxs)(l.so,{p:"sm",gap:"sm",direction:"column",children:[N&&Object.keys(N).map(e=>{var t;let n=N[+e],a=n[0].event;return(0,s.jsxs)(p.Zp,{isInverseDesktop:!0,children:[(0,s.jsxs)(l.so,{align:"center",px:"lg",pt:"md",children:[a.tournament.uniqueTournament?(0,s.jsx)(r.eD,{id:a.tournament.uniqueTournament.id,size:24}):(0,s.jsx)(r.l3,{id:a.tournament.id,size:24}),(0,s.jsx)(f.Mq,{tournament:a.tournament,seasonId:null==(t=a.season)?void 0:t.id,children:(0,s.jsx)(i.EY,{textStyle:"display.micro",ml:"lg",_hover:{color:"neutrals.nLv3"},children:(0,s.jsx)(j.J,{tournament:a.tournament})})})]}),(0,s.jsx)(l.az,{padding:{md:"sm"},children:n.map((e,t)=>(0,s.jsx)(A,{index:t,market:e,onClick:W(e.marketName,y.ki.OddsValue)},e.id))})]},e)}),T&&(null==D?void 0:D.odds.length)&&D.odds.length>4&&(0,s.jsx)(v.d,{isOpen:_,onClick:()=>I(!_)})]}),(0,s.jsx)(l.az,{px:"sm",pb:"sm",children:(0,s.jsx)(p.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(l.so,{justify:{base:"flex-start",md:"center"},align:"center",px:"lg",py:"sm",children:(0,s.jsx)(w.A,{font:["body.small","assistive.micro"]})})})})]})}):B&&O?null:(0,s.jsx)(x.a,{})})},41618:(e,t,n)=>{"use strict";n.d(t,{r:()=>m,$:()=>x});var s=n(6029),r=n(21377),a=n(76356),i=n(55729),l=n(494),o=n(62859),d=n(76410),c=n(49821),u=n(2294);function m(e){let{selectedProvider:t,onClick:n,logClick:m=!0,size:p="56x28"}=e,h=(0,l.d4)(u.a5),x=t?t.provider:null==h?void 0:h.provider,v=t?null==t?void 0:t.branded:null==h?void 0:h.branded,f=t?t.provider.slug:null==h?void 0:h.provider.slug,{location:g}=(0,i.useContext)(o.y$),[j,y]=p.split("x");return x&&v?(0,s.jsx)(a.I4.a,{display:"flex",justifyContent:"center",alignItems:"center",br:"xs",rel:"noopener noreferrer",target:"_blank",href:(t?t.defaultBetSlipLink:null==h?void 0:h.defaultBetSlipLink)||x.defaultBetSlipLink,onClick:e=>{e.stopPropagation(),null==n||n(),m&&(0,d.Fe)({location:g,provider:f,position:c.ki.ProviderLogo})},"data-testid":"odds_provider_logo",style:{background:x.colors.primary,width:"".concat(j,"px"),height:"".concat(y,"px")},children:(0,s.jsx)(a.I4.img,{src:r.npy.providerImage(x.id),alt:x.name||"",style:{width:"".concat(j,"px"),height:"auto"}})}):null}var p=n(95083),h=n(90248);let x=()=>{let e=(0,l.d4)(u.a5);return(null==e?void 0:e.branded)?(0,s.jsxs)(a.so,{justify:"center",align:"center",ml:"lg","data-testid":"featured_logo",children:[(0,s.jsx)(p.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mr:"sm",truncate:!0,children:(0,s.jsx)(h.A,{id:"featured_by"})}),(0,s.jsx)(m,{size:"48x24"})]}):null}},42078:(e,t,n)=>{"use strict";n.d(t,{d:()=>m});var s=n(6029),r=n(76356),a=n(41249),i=n(55729),l=n(90248),o=n(65789),d=n(62859),c=n(85568),u=n(66757);let m=e=>{var t;let{noSeasonPicker:n,isNarrowLayout:m,branding:p,numberOfRows:h=20}=e,{event:x}=(0,i.useContext)(d.y$),v=null==x||null==(t=x.tournament.uniqueTournament)?void 0:t.hasPerformanceGraphFeature;return(0,s.jsxs)(r.so,{direction:"column",gap:["sm","md"],children:[(0,s.jsxs)(o.Zp,{isInverseDesktop:m,children:[!m&&(0,s.jsx)(c.U,{titleId:"app.standings",branding:p}),(0,s.jsxs)(r.az,{children:[!n&&(0,s.jsx)(r.az,{h:"4xl"}),(0,s.jsx)(a.tU,{variant:"secondary",children:(0,s.jsx)(r.so,{h:"[53px]",p:"sm",justify:"space-between",children:(0,s.jsxs)(r.az,{children:[(0,s.jsx)(a.tU.Tab,{tabKey:1,children:(0,s.jsx)(l.A,{id:"basic.all"})}),(0,s.jsx)(a.tU.Tab,{tabKey:2,children:(0,s.jsx)(l.A,{id:"standings.home"})}),(0,s.jsx)(a.tU.Tab,{tabKey:3,children:(0,s.jsx)(l.A,{id:"away"})})]})})}),(0,s.jsx)(r.az,{h:"2xl"}),(0,s.jsx)(u.e,{rows:h}),(0,s.jsx)(r.az,{h:"[92px]"}),(0,s.jsx)(r.az,{p:"sm",children:(0,s.jsx)(r.az,{h:"4xl",bg:"surface.s2",br:"lg"})})]})]}),v&&(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"standings_tracker_title"}),(0,s.jsx)(r.az,{h:"[542px]"})]})]})}},42360:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(6029),r=n(76356),a=n(65789);function i(){return(0,s.jsx)(a.Zp,{children:(0,s.jsx)(r.az,{h:"[762px]"})})}},44595:(e,t,n)=>{"use strict";n.d(t,{FG:()=>i,GM:()=>u,Vd:()=>d,c7:()=>c,cY:()=>o,fN:()=>v,jT:()=>l,jp:()=>p,mh:()=>m,ps:()=>h});var s=n(21377),r=n(28132),a=n(19168);let i=[s.QCR.IceHockey,s.QCR.AmericanFootball,s.QCR.Baseball,s.QCR.Handball],l=[...i,s.QCR.Football];var o=function(e){return e.FootballForward="F",e.FootballDefender="D",e.FootballMidfielder="M",e.FootballGoalkeeper="G",e.BasketballForward="F",e.BasketballGuard="G",e.BasketballCenter="C",e.AmericanFootballPunter="P",e.AmericanFootballPuntReturner="PR",e.AmericanFootballLongSnapper="LS",e.AmericanFootballKicker="K",e.AmericanFootballTackle="T",e.AmericanFootballOffensiveTackle="OT",e.AmericanFootballOffensiveLineman="OL",e.AmericanFootballOffensiveGuard="OG",e.AmericanFootballGuard="G",e.AmericanFootballCenter="C",e.AmericanFootballQuarterback="QB",e.AmericanFootballRunningBack="RB",e.AmericanFootballFullback="FB",e.AmericanFootballTightEnd="TE",e.AmericanFootballWideReceiver="WR",e.AmericanFootballStrongSafety="SS",e.AmericanFootballSafety="SAF",e.AmericanFootballFreeSafety="FS",e.AmericanFootballDefensiveLineman="DL",e.AmericanFootballDefensiveBack="DB",e.AmericanFootballCornerBack="CB",e.AmericanFootballNoseTackle="NT",e.AmericanFootballDefensiveTackle="DT",e.AmericanFootballDefensiveEnd="DE",e.AmericanFootballOutsideLineback="OLB",e.AmericanFootballMiddleLineback="MLB",e.AmericanFootballLineback="LB",e.AmericanFootballInsideLineback="ILB",e.IceHockeyDefenseman="D",e.IceHockeyGoalie="G",e.IceHockeyCenter="C",e.IceHockeyLeftWing="L",e.IceHockeyRightWing="R",e.IceHockeyForward="F",e.BaseballPitcher="P",e.BaseballCatcher="C",e.BaseballFirstBase="1B",e.BaseballSecondBase="2B",e.BaseballThirdBase="3B",e.BaseballShortstop="SS",e.BaseballLeftField="LF",e.BaseballCenterField="CF",e.BaseballRightField="RF",e.BaseballDesignatedHitter="DH",e.BaseballPinchHitter="PH",e.BaseballPinchRunner="PR",e.BaseballBaseRunner="BR",e.BaseballOutfield="OF",e.BaseballInfield="IF",e.BaseballStartingPitcher="SP",e.BaseballReliefPitcher="RP",e.BaseballCloser="CP",e.BaseballUtility="UT",e.BaseballUtilityInfielder="UI",e.BaseballUtilityOutfielder="UO",e.BaseballRightHandedPitcher="RHP",e.BaseballLeftHandedPitcher="LHP",e.BaseballRightHandedStarter="RHS",e.BaseballLeftHandedStarter="LHS",e.BaseballRightHandedReliever="RHR",e.BaseballLeftHandedReliever="LHR",e.BaseballBatter="B",e.BaseballHitter="H",e.BaseballRunner="R",e.BaseballUnknown="U",e.ESportsHardCarry="HC",e.ESportsMid="MID",e.ESportsOfflaner="OFF",e.ESportsSoftSupport="SS",e.ESportsHardSupport="HS",e.ESportsAdc="ADC",e.ESportsJun="JUN",e.ESportsTop="TOP",e.ESportsSup="SUP",e.HandballGoalkeeper="G",e.HandballRightWing="RW",e.HandballLeftWing="LW",e.HandballRightBack="RB",e.HandballLeftBack="LB",e.HandballCentralBack="CB",e.HandballPivot="P",e.CricketBatter="BM",e.CricketAllrounder="AR",e.CricketKeeper="WK",e.CricketBowler="B",e}({}),d=function(e){return e.AmericanFootballQuarterback="am_football_quarterbacks",e.AmericanFootballRunningBack="am_football_running_backs",e.AmericanFootballReceiver="am_football_receivers",e.AmericanFootballOffensiveLine="am_football_offensive_line",e.AmericanFootballDefensiveLine="am_football_defensive_line",e.AmericanFootballDefensiveBack="am_football_defensive_backs",e.AmericanFootballLineback="am_football_linebackers",e.AmericanFootballSpecialTeam="am_football_special_teams",e.BaseballPitcher="pitcher",e.BaseballCatcher="catcher",e.BaseballInfield="infield",e.BaseballOutfield="outfield",e.BaseballHitter="hitter",e.BaseballRunner="runner",e.BaseballBatter="batter",e.IceHockeyForward="forward",e.IceHockeyDefenseman="defenseman",e.IceHockeyGoalie="goalie",e.HandballGoalkeeper="handball.goalkeeper",e.HandballBack="handball.back",e.HandballWinger="handball.winger",e.HandballPivot="handball.pivot",e.Unknown="player.position.unknown",e}({});let c=(e,t)=>{switch(t){case s.QCR.AmericanFootball:switch(e){case"QB":return"am_football_quarterbacks";case"RB":case"FB":return"am_football_running_backs";case"WR":case"TE":return"am_football_receivers";case"OT":case"OL":case"OG":case"C":case"T":case"G":return"am_football_offensive_line";case"DT":case"DL":case"DE":case"NT":return"am_football_defensive_line";case"DB":case"SS":case"FS":case"CB":case"SAF":return"am_football_defensive_backs";case"OLB":case"LB":case"MLB":case"ILB":return"am_football_linebackers";case"P":case"PR":case"LS":case"K":return"am_football_special_teams";default:return"player.position.unknown"}case s.QCR.Baseball:switch(e){case"P":case"SP":case"CP":case"RP":case"RHP":case"LHP":case"LHS":case"RHS":case"LHR":case"RHR":return"pitcher";case"C":return"catcher";case"1B":case"2B":case"3B":case"SS":case"IF":case"UI":return"infield";case"LF":case"CF":case"RF":case"OF":case"UO":return"outfield";case"H":case"DH":case"PH":return"hitter";case"R":case"PR":case"BR":return"runner";case"B":return"batter";default:return"player.position.unknown"}case s.QCR.IceHockey:switch(e){case"F":case"L":case"C":case"R":return"forward";case"D":return"defenseman";case"G":return"goalie";default:return"player.position.unknown"}case s.QCR.Handball:switch(e){case"RB":case"LB":case"CB":return"handball.back";case"LW":case"RW":return"handball.winger";case"P":return"handball.pivot";case"G":return"handball.goalkeeper";default:return"player.position.unknown"}default:return e||"player.position.unknown"}},u=(e,t)=>{let n={};for(let s=0;s{switch(e){case"F":case"am_football_quarterbacks":case"am_football_running_backs":case"am_football_receivers":case"am_football_offensive_line":case"handball.winger":case"forward":return"sofaSingles.live";case"M":case"am_football_special_teams":case"handball.pivot":return"secondary.default";case"D":case"am_football_defensive_backs":case"am_football_defensive_line":case"am_football_linebackers":case"handball.back":case"defenseman":return"primary.default";case"G":case"handball.goalkeeper":case"goalie":return"sofaSingles.value";default:return"onSurface.nLv3"}},p=e=>e.type===s.YVh.Person,h=(e,t,n,i,l,o,d)=>e===s.QCR.AmericanFootball?[{tabKey:r.H.Details,item:"details"},{tabKey:r.H.Matches,item:"matches",values:{sport:(0,a.ap)(e)}},{tabKey:r.H.Standings,item:"app.standings",isHidden:!t},{tabKey:r.H.PlayerStatistics,item:"tab_player_stats",isHidden:!d},{tabKey:r.H.Squad,item:"am_football_roster",isHidden:!i},{tabKey:r.H.Statistics,item:"statistics",isHidden:!l},{tabKey:r.H.Media,item:"media",isHidden:!o}]:[{tabKey:r.H.Details,item:"details"},{tabKey:r.H.Matches,item:"matches",values:{sport:(0,a.ap)(e)}},{tabKey:r.H.Standings,item:"app.standings",isHidden:!t},{tabKey:r.H.Squad,item:"squad",isHidden:!i},{tabKey:r.H.TopPlayers,item:"top_players",isHidden:!n},{tabKey:r.H.Statistics,item:"statistics",isHidden:!l},{tabKey:r.H.Media,item:"media",isHidden:!o}],x=[s.QCR.AmericanFootball,s.QCR.Tennis];function v(e,t){return -1!==x.indexOf(e)&&9464===t}},45749:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var s=n(55729),r=n(95868);let a=null,i=!1;async function l(){if(!a)try{a=(await n.e(5831).then(n.t.bind(n,61985,23))).default,await a.Initialize("3de57cc21a364c9c918d8899d0aee6bf",{shouldModifyUrlWithStoryId:!1}),a.addDelegateListener(a.Delegations.onEventTriggered,r.hT)}catch(e){return console.error("WSC SDK initialization error:",e),!1}return!0}function o(e){let{containerId:t,storyIds:n}=e,[o,d]=(0,s.useState)(i);(0,s.useEffect)(()=>{l();let e=()=>{i=!0,d(!0)};return document.addEventListener("onBlazeSDKConnect",e),()=>{document.removeEventListener("onBlazeSDKConnect",e)}},[]),(0,s.useEffect)(()=>{if(!(null==n?void 0:n.length)||!a||!o||!t||!(0,r.R5)(t))return;let{eventId:e}=(0,r.Hw)(t);try{let s=a.Theme("row-rectangle");s.layoutStyle.labelStyle.isVisible=!e,s.layoutStyle.statusLiveStyle.isVisible=!1,s.layoutStyle.statusUnreadStyle.isVisible=!1,s.layoutStyle.statusLiveUnreadStyle.isVisible=!1,s.layoutStyle.borderRadius=e?"0":"12px",s.layoutStyle.horizontalItemsSpacing=4,a.WidgetRowView(t,{storyIds:n,theme:s,maxDisplayItemsCount:e?1:void 0})}catch(e){console.error(e)}},[n.length,t,o])}},51372:(e,t,n)=>{"use strict";n.d(t,{O:()=>p});var s=n(6029),r=n(21377),a=n(76356),i=n(41249),l=n(90248),o=n(41735),d=n(26471),c=n(31112),u=n(26331),m=n(76410);let p=e=>{let{entityId:t,branding:n,children:p,bannerText:h,noLink:x,location:v,...f}=e,g=(0,u.A)(),j=(0,o.useTheme)(),y=(null==h?void 0:h[g.slice(0,2)])||(null==h?void 0:h.en),b=(0,d.A)(()=>{t&&v&&!x&&(0,m.N9)({id:t,location:v,provider:n.brand.slug,type:"stripe"})},{deps:[t,n.brand.slug,v]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.w,{branding:n,noLink:x,type:"stripe",entityId:t,location:v,children:(0,s.jsxs)(a.so,{ref:b,h:"xl",justify:"center",align:"center",gap:"xs",style:{backgroundColor:n.brand.color[j.name]},...f,children:[(0,s.jsx)(a.so,{justify:"flex-end",flexGrow:1,flexShrink:1,flexBasis:"xl",children:(0,s.jsx)(a.az,{textStyle:"assistive.micro",whiteSpace:"nowrap",style:{color:n.brand.textColor[j.name]},children:(0,s.jsx)(l.A,{id:"powered_by"})})}),(0,s.jsx)(a.so,{justify:"flex-start",flexGrow:1,flexShrink:1,flexBasis:"xl",children:(0,s.jsx)(i._V,{h:16,alt:n.brand.name,src:r.UpI.brandLogo(n.brand.id)})})]})}),y&&(0,s.jsx)(a.az,{pt:"sm",textStyle:"assistive.default",textAlign:"center",color:"neutrals.nLv3",children:y})]})}},52736:(e,t,n)=>{"use strict";n.d(t,{E:()=>c});var s=n(6029),r=n(76356),a=n(65078),i=n(49821),l=n(4236),o=n(52210),d=n(41618);let c=e=>{let{countryOddsProvider:t,market:n,marketName:c,secondary:u,clickType:m}=e,p=(0,a.g3)(),{ref:h,makeOnClick:x}=(0,i.kW)({type:m,marketName:c,isComparison:!0,countryOddsProvider:t,deps:[c]});if(!(null==n?void 0:n.choices))return null;let v=(0,l.nu)(n.choices,p);return(0,s.jsxs)(r.so,{ref:h,direction:"row",align:"center",pb:"sm",gap:"sm",children:[(0,s.jsx)(d.r,{size:"48x24",selectedProvider:t}),(0,s.jsx)(r.so,{gap:"[5px]",grow:"1",shrink:"1",overflow:"hidden",children:v.map(e=>{if(!c||!n)return;let r=(0,l.vT)(e,t.oddsOffset||0);return(0,s.jsx)(o.i,{choice:r,isLive:n.isLive,countryOddsProvider:t,betSlipLink:(0,l.Iz)(e,n,t),onClick:x(c,i.ki.OddsValue,t),secondary:u},e.name)})})]})}},52827:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var s=n(1815),r=n(76410),a=n(95868);function i(e){let t=(0,a.Hw)(e);return(0,s.e)(()=>(0,r.WG)({id:t.eventId||t.tournamentId,location:t.location}))}},52970:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>F});var s=n(6029),r=n(21377),a=n(41249),i=n(55729),l=n(45860),o=n(62859),d=n(90248),c=n(494),u=n(65789),m=n(54409),p=n(65078),h=n(97350);let x=e=>{let{streak:t,homeTeam:n,awayTeam:i}=e,l=[],o=(0,p.g3)(),d={width:"24",height:"24",loading:"lazy"},c=(0,s.jsx)(a._V,{...d,src:r.cWY.image(n.id),alt:n.name},"homeImage"),u=(0,s.jsx)(a._V,{...d,src:r.cWY.image(i.id),alt:i.name},"awayImage");switch(t.team){case"home":l.push(c);break;case"away":l.push(u);break;default:l.push(o?u:c),l.push(o?c:u)}return(0,s.jsxs)(a.so,{justify:"space-between",pt:"sm",pb:"sm",pl:"lg",pr:"lg",children:[(0,s.jsx)(a.so,{w:"60",gap:"sm",align:"center",py:2,children:l}),(0,s.jsx)(a.az,{alignSelf:"center",children:(0,s.jsx)(a.EY,{font:"table.medium",color:"onSurface.nLv1",align:"center",children:(0,s.jsx)(h.U,{id:t.name})})}),(0,s.jsx)(a.az,{w:"60",textAlign:"right",alignSelf:"center",children:(0,s.jsxs)(a.EY,{font:"table.medium",color:"onSurface.nLv1",align:"right",children:[t.value,t.continued?(0,s.jsx)(m.VsF,{fill:"success.default",ml:"xs"}):!1===t.continued?(0,s.jsx)(m.MRt,{fill:"error.default",ml:"xs"}):null]})})]})};var v=n(77988),f=n(2496),g=n(85304),j=n(49821),y=n(2294),b=n(76410),w=n(47229),k=n(34965),S=n(44450);function C(e){let{eventId:t,currentMarket:n,location:r,hideGambleResponsibly:a}=e,[l,o]=(0,i.useState)({}),d=(0,c.d4)(y.a5),{ref:u,makeOnClick:m}=(0,j.kW)({type:j.jF.Streaks,marketName:n.marketName,activeCTA:l});return d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(f.A,{children:[(0,s.jsx)(g.A,{market:n,onClick:m(n.marketName,j.ki.OddsValue),ref:u,first:!0}),!a&&(0,s.jsx)(v.A,{}),(0,s.jsx)(k.A,{eventId:t,location:r,setCtaType:o,onSignUpClick:()=>(0,b.Fe)({id:t,category:n.marketName,location:r,provider:null==d?void 0:d.provider.slug,position:j.ki.AffiliateButton,type:j.jF.Streaks})})]}),(0,s.jsx)(S.A,{})]}):null}function A(e){let{isLoading:t,oddsMarkets:n,hideGambleResponsibly:r}=e,a=(0,c.d4)(y.zV),{event:l,location:d}=(0,i.useContext)(o.y$);if(!(0,c.d4)((0,y.Ul)(l)))return null;if(t)return(0,s.jsx)(w.t1,{});if(n&&n.length>0){let e=n[0];return a&&e.isLive?null:(0,s.jsx)(C,{eventId:l.id,currentMarket:e,location:d,hideGambleResponsibly:r})}return null}var T=n(61584);let _=e=>{let{event:t,title:n,isLive:r,areOddsLoading:i,streaks:l,subStreaks:o,oddsMarkets:m,isInverseDesktop:p,hideGambleResponsibly:h}=e,v=(0,c.d4)(y.fq);return(0,s.jsxs)(u.Zp,{"data-testid":"team_streaks",isInverseDesktop:p,children:[(0,s.jsx)(u.Zp.Header,{titleId:"string"==typeof n?n:void 0,title:"string"!=typeof n?n:void 0,as:"h3"}),(0,s.jsxs)(a.az,{pb:"sm",children:[(0,s.jsx)(a.az,{px:"sm",children:v?(0,s.jsx)(T.A,{eventId:t.id,isLive:r,hideGambleResponsibly:h}):(0,s.jsx)(A,{isLoading:i,oddsMarkets:m,hideGambleResponsibly:h})}),null==l?void 0:l.map(e=>(0,s.jsx)(x,{streak:e,homeTeam:t.homeTeam,awayTeam:t.awayTeam},"".concat(e.name,"-").concat(e.team))),o&&o.length>0&&(0,s.jsxs)(a.az,{children:[(0,s.jsx)(a.EY,{as:"h3",font:"display.micro",align:"center",children:(0,s.jsx)(d.A,{id:"bbal_last_ten_games"})}),o.map(e=>(0,s.jsx)(x,{streak:e,homeTeam:t.homeTeam,awayTeam:t.awayTeam},"".concat(e.name,"-").concat(e.team)))]})]})]})};var I=n(15926);let L=(e,t)=>{let[n,s]=(0,c.d4)((0,y.Pf)(t)),{data:a,isLoading:i,error:o}=(0,l.Ay)(n?r.bnp.teamStreaksOdds(e,n):null,{refreshInterval:6e4}),{data:d,isLoading:u}=(0,l.Ay)(s&&o?r.bnp.teamStreaksOdds(e,s):null,{refreshInterval:6e4});return{data:a||d,isLoading:i||u}};var E=n(8703),H=n(84974);let F=e=>{let{page:t}=e,{event:n}=(0,i.useContext)(o.y$),d=n.status.type===r.XUj.InProgress,{data:c,isLoading:u}=(0,l.Ay)(r.bnp.teamStreaks(n.id)),{data:m,isLoading:p}=L(n.id,d);if(u)return(0,s.jsx)(I.A,{page:t});if(!c)return null;let{teamStreaks:h,teamSubStreaks:x,h2hStreaks:v,h2hSubStreaks:f,hasTeamStreaks:g,hasH2HStreaks:j}=function(e,t){var n,s,a,i,l,o;return t===r.QCR.Basketball?{teamStreaks:e.generalTotal,h2hStreaks:e.head2HeadTotal,teamSubStreaks:e.generalPerLastX,h2hSubStreaks:e.head2HeadPerLastX,hasTeamStreaks:!!((null==(a=e.generalTotal)?void 0:a.length)||(null==(i=e.generalPerLastX)?void 0:i.length)),hasH2HStreaks:!!((null==(l=e.head2HeadTotal)?void 0:l.length)||(null==(o=e.head2HeadPerLastX)?void 0:o.length))}:{teamStreaks:e.general,h2hStreaks:e.head2head,teamSubStreaks:void 0,h2hSubStreaks:void 0,hasTeamStreaks:!!(null==(n=e.general)?void 0:n.length),hasH2HStreaks:!!(null==(s=e.head2head)?void 0:s.length)}}(c,(0,E.c5)(n));return g||j?t?(0,s.jsxs)(a.so,{gap:"md","data-testid":"team_streaks",children:[(0,s.jsxs)(a.so,{w:"50%",direction:"column",gap:"sm",children:[j&&(0,s.jsx)(_,{event:n,title:"head_to_head_streaks",isLive:d,areOddsLoading:p,streaks:v,subStreaks:f,oddsMarkets:null==m?void 0:m.head2head}),(0,s.jsx)(H.v,{event:n})]}),g&&(0,s.jsx)(a.az,{w:"50%",children:(0,s.jsx)(_,{event:n,title:"team_streaks",isLive:d,areOddsLoading:p,streaks:h,subStreaks:x,oddsMarkets:null==m?void 0:m.general})})]}):(0,s.jsxs)(a.so,{direction:"column",gap:"sm",children:[g&&(0,s.jsx)(_,{event:n,title:"team_streaks",isLive:d,areOddsLoading:p,streaks:h,subStreaks:x,oddsMarkets:null==m?void 0:m.general,isInverseDesktop:!0,hideGambleResponsibly:!0}),j&&(0,s.jsx)(_,{event:n,title:"head_to_head_streaks",isLive:d,areOddsLoading:p,streaks:v,subStreaks:f,oddsMarkets:null==m?void 0:m.head2head,isInverseDesktop:!0,hideGambleResponsibly:!0})]}):null}},55479:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var s=n(6029),r=n(41249);let a=e=>(0,s.jsx)(r.az,{h:128,bg:"surface.s2",br:"xl",...e})},58516:(e,t,n)=>{"use strict";n.d(t,{GV:()=>r.G,uP:()=>s.default});var s=n(76097);n(74216);var r=n(14319)},58775:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var s=n(6029),r=n(95083),a=n(76356),i=n(90248),l=n(54409);let o=e=>{let{isOpen:t,onClick:n}=e;return(0,s.jsx)(a.so,{align:"center",justify:"center",p:"lg",children:(0,s.jsx)(a.I4.button,{onClick:n,padding:"0",cursor:"pointer",children:(0,s.jsxs)(a.so,{align:"center",children:[(0,s.jsx)(r.EY,{lineHeight:"16px",textStyle:"display.small",color:"primary.default",children:(0,s.jsx)(i.A,{id:t?"show_less":"show_more"})}),t?(0,s.jsx)(l.t8v,{fill:"primary.default",ml:"xs"}):(0,s.jsx)(l.QtO,{fill:"primary.default",ml:"xs"})]})})})}},59542:(e,t,n)=>{"use strict";n.d(t,{S:()=>v,T:()=>x});var s=n(6029),r=n(95083),a=n(76356),i=n(71024),l=n.n(i),o=n(55729),d=n(90248),c=n(54053),u=n(1300),m=n(76410),p=n(94842);let h=l()(()=>n.e(1489).then(n.bind(n,31489)),{loadableGenerated:{webpack:()=>[31489]},ssr:!1}),x=e=>{let{isOpen:t,setIsOpen:n,location:i}=e,{isDesktop:l}=(0,r.$c)(),u={backgroundImage:"url(/static/images/nba-league-pass/modal.png)",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"};if((0,o.useEffect)(()=>{t&&(0,m.Z1)({type:"bottom_sheet",name:"nba_league_pass",location:i})},[t]),!t)return null;let x=()=>n(!1);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.A,{isOpen:t,setIsOpen:n,sheetBgImage:"/static/images/nba-league-pass/modal.png",footer:null,renderAdPlaceholder:!1,sheetStyles:u,width:360,children:(0,s.jsxs)(a.az,{style:l?u:void 0,br:"lg",children:[(0,s.jsx)(a.so,{h:"8xl",px:"xl",pt:{md:"xl"},children:(0,s.jsx)(a.az,{w:"4xl",h:"4xl",children:(0,s.jsx)(h,{size:48})})}),(0,s.jsxs)(a.so,{direction:"column",justify:"flex-end",minH:"[400px]",px:"lg",pb:"lg",gap:"2xl",children:[(0,s.jsxs)(a.so,{direction:"column",gap:"lg",children:[(0,s.jsx)(a.az,{textStyle:"display.extraLarge",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"league_pass_promo_title"})}),(0,s.jsx)(a.az,{textStyle:"body.mediumParagraph",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"league_pass_promo_body_long"})})]}),(0,s.jsxs)(a.so,{direction:"column",gap:"sm",pt:"xs",children:[(0,s.jsx)(r.$n,{children:(0,s.jsx)(p.N,{onClick:()=>{(0,m.AW)({type:"bottom_sheet",name:"nba_league_pass",location:i}),x()},children:(0,s.jsx)(a.az,{color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"claim_offer"})})})}),(0,s.jsx)(r.$n,{variant:"clear",color:"onColor.primary",onClick:x,children:(0,s.jsx)(d.A,{id:"maybe_later"})})]})]})]})})})},v=e=>{let{utId:t,location:n}=e,{isNBAModalOpen:r,setIsNBAModalOpen:a}=(0,u.z)(t);return r?(0,s.jsx)(x,{isOpen:r,setIsOpen:a,location:n}):null}},59721:(e,t,n)=>{"use strict";n.d(t,{e:()=>s.e});var s=n(33480)},59754:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,Z:()=>i});var s=n(494),r=n(151);let a=(e,t,n)=>{var s,r,a;let i=null==(s=e.tournament.uniqueTournament)?void 0:s.id;if(i&&(null==n||null==(a=n.uniqueTournaments)||null==(r=a[i])?void 0:r[t]))return null==n?void 0:n.uniqueTournaments[i]},i=(e,t)=>a(e,t,(0,s.d4)(r.g))},61584:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var s=n(6029),r=n(95083),a=n(76356),i=n(90248),l=n(494),o=n(49821),d=n(28600),c=n(2294),u=n(77988),m=n(38136),p=n(52736),h=n(27601);let x=e=>{let{eventId:t,isLive:n,isEleveated:x,hideGambleResponsibly:v}=e,f=(0,l.d4)(c.hB),{odds:g,marketName:j,error:y,isLoading:b}=(0,h.U)(t,n);return b?(0,s.jsx)(a.az,{pt:"[50px]",pb:v?void 0:"md",bg:"surface.s2",br:"lg",elevation:x?"2":void 0,children:null==f?void 0:f.map(e=>(0,s.jsx)(a.az,{h:"[45px]"},e.provider.id))}):y||!g?null:(0,s.jsx)(a.az,{bg:x?"surface.s1":void 0,br:"lg",elevation:x?"2":void 0,children:(0,s.jsxs)(a.so,{direction:"column",bg:"surface.s2",br:"lg",px:"md",pb:"md",children:[(0,s.jsxs)(a.so,{py:"sm",justify:"space-between",align:"center",gap:"2xs",children:[(0,s.jsxs)(a.so,{gap:"2xs",alignSelf:"flex-end",h:"100%",children:[(0,s.jsx)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",children:(0,s.jsx)(d.f,{id:"Full time"})}),n&&(0,s.jsx)(r.EY,{textStyle:"assistive.default",color:"status.val",children:(0,s.jsx)(i.A,{id:"live"})})]}),(0,s.jsx)(m.V,{})]}),null==f?void 0:f.map((e,t)=>(0,s.jsx)(p.E,{countryOddsProvider:e,market:g[t],marketName:j,clickType:o.jF.Featured},e.provider.id)),!v&&(0,s.jsx)(u.A,{})]})})}},62056:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),r=n(21377),a=n(41249),i=n(65789),l=n(69559),o=n(73011);let d=()=>{let e=(0,l.o)();return(0,s.jsxs)(i.Zp,{children:[(0,s.jsx)(i.Zp.Header,{titleId:e===r.QCR.Cricket?"squad":o.bU.includes(e)?"boxScore":"players",as:"h2"}),(0,s.jsx)(a.az,{h:687})]})}},63263:(e,t,n)=>{"use strict";n.d(t,{Js:()=>g,$l:()=>v,pK:()=>h,Fk:()=>p,Zb:()=>j,n6:()=>m,K$:()=>y,Ew:()=>f,ql:()=>x});var s=n(6029),r=n(21377),a=n(93338),i=n(54409);let l=()=>"https://www.sofascore.com/i/b25bc6c68958448cca031c644eee864e",o=()=>"https://www.sofascore.com/i/e53a59ad37fec87c07765b595f4ad79c",d=()=>"https://www.sofascore.com/i/705e36b11b4831faf07264be0bdbf3ee";var c=n(19666),u=n(82640);let m=e=>e.reduce((e,t)=>(t.winnerCode===r.Jfo.Left&&(e.homeWins+=1),t.winnerCode===r.Jfo.Right&&(e.awayWins+=1),e),{homeWins:0,awayWins:0}),p=(e,t)=>{switch(t){case r.$2C.Dota:return o();case r.$2C.LoL:return l();case r.$2C.CounterStrike:return e.map?r.fQV.mapImage(e.map.id):d();default:return""}},h=e=>{let t=[];return Object.keys(u.Au).forEach(n=>{let s=e[u.Au[n]];for(let e=0;e{let e,t=(0,c.tR)(),n=(0,c.$M)();if(void 0===t)return[];let s=!y(t);switch(n){case r.$2C.CounterStrike:e=[a.S.var("colors.eSports.cs.t"),a.S.var("colors.eSports.cs.ct")];break;case r.$2C.LoL:e=[a.S.var("colors.eSports.lol.red"),a.S.var("colors.eSports.lol.blue")];break;case r.$2C.Dota:e=[a.S.var("colors.eSports.dota2.dire"),a.S.var("colors.eSports.dota2.radiant")];break;default:return[]}return s?e.reverse():e},v=e=>{switch(e){case u.Au.Cloud:return e=>(0,s.jsx)(i.p1j,{icon:"drake-cloud",...e});case u.Au.Elder:return e=>(0,s.jsx)(i.p1j,{icon:"drake-elder",...e});case u.Au.Infernal:return e=>(0,s.jsx)(i.p1j,{icon:"drake-infernal",...e});case u.Au.Mountain:return e=>(0,s.jsx)(i.p1j,{icon:"drake-mountain",...e});case u.Au.Ocean:return e=>(0,s.jsx)(i.p1j,{icon:"drake-ocean",...e});default:return null}},f={[u.Mx.TopLane]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"role-top",...e}),sortIndex:1},[u.Mx.Jungle]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"role-jun",...e}),sortIndex:2},[u.Mx.MidLane]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"role-mid",...e}),sortIndex:3},[u.Mx.BotLane]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"role-adc",...e}),sortIndex:4},[u.Mx.Support]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"role-sup",...e}),sortIndex:5}},g={[u.XF.HardCarry]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"dota-hard-carry",...e}),sortIndex:1},[u.XF.MidLane]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"dota-mid-lane",...e}),sortIndex:2},[u.XF.OffLand]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"dota-soft-support",...e}),sortIndex:3},[u.XF.SoftSupport]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"dota-soft-support",...e}),sortIndex:4},[u.XF.HardSupport]:{icon:e=>(0,s.jsx)(i.p1j,{icon:"dota-hard-support",...e}),sortIndex:5}},j=(e,t)=>t?"".concat("number"==typeof e.kills?e.kills:"-","/").concat("number"==typeof e.assists?e.assists:"-","/").concat("number"==typeof e.deaths?e.deaths:"-"):"".concat("number"==typeof e.kills?e.kills:"-","/").concat("number"==typeof e.deaths?e.deaths:"-","/").concat("number"==typeof e.assists?e.assists:"-");function y(e){return!e||[r.U6N.Red,r.U6N.Dire,r.U6N.Terrorist].includes(e)}},64073:(e,t,n)=>{"use strict";n.d(t,{K:()=>y});var s=n(6029),r=n(95083),a=n(76356),i=n(9127),l=n(90112),o=n(12364),d=n.n(o),c=n(55729),u=n(90248),m=n(494),p=n(91729),h=n(54409),x=n(8973),v=n(19168),f=n(12759),g=n(46009);let j=(0,i.m)(a.az);function y(e){let{id:t,name:n,entity:i,children:o,threshold:y=144,type:b}=e,[w,k]=(0,c.useState)(0),[S,C]=(0,v.yR)("sticky_follow_header_closed_".concat(i),!1),A=(0,f.Pz)(i),T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,s]=(0,c.useState)(e);return(0,c.useEffect)(()=>{let n=setTimeout(()=>{s(e)},t);return()=>clearTimeout(n)},[e]),n}((0,m.d4)(e=>e.favorites.lists[A[0]].includes(t)||2===A.length&&e.favorites.lists[A[1]].includes(t)));return(0,c.useEffect)(()=>{if(S)return;let e=d()(()=>{window.requestAnimationFrame(()=>{k(window.scrollY)})},300);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[w,S]),(0,s.jsx)(l.N,{children:w>y&&!T&&(0,s.jsx)(j,{position:"fixed",left:"0",right:"0",mt:"0 !important",h:"[168px]",bg:"surface.sp",textAlign:"center",initial:{top:-160,opacity:0},animate:{top:0,opacity:1},exit:{top:-160,opacity:0},transition:{type:"spring",bounce:.3,restDelta:.5},zIndex:"subheader",elevation:"3",children:(0,s.jsx)(a.az,{position:"absolute",bottom:"0",left:"0",right:"0",children:(0,s.jsx)(p.m,{h:"56",py:"sm",children:(0,s.jsxs)(a.so,{h:"[40px]",children:[(0,s.jsx)(a.so,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},justify:"flex-end",align:"center",flex:"[1 1 50%]",children:(0,s.jsxs)(a.so,{backgroundColor:"surface.s2",align:"center",px:"sm",py:"xs",br:"lg",cursor:"pointer",children:[o,(0,s.jsx)(g.e,{id:t,entity:i,type:b,location:x.y.FloatingHeader})]})}),(0,s.jsx)(a.so,{align:"center",flex:"[1 1 50%]",children:(0,s.jsx)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",ml:"lg",children:(0,s.jsx)(u.A,{id:"add_to_favorites_text",values:{name:n}})})}),(0,s.jsx)(a.so,{align:"center",children:(0,s.jsx)(r.$n,{variant:"clear",p:"0",onClick:()=>{C(!0),k(0)},children:(0,s.jsx)(h.zQC,{icon:"close"})})})]})})})})})}},66757:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var s=n(6029),r=n(18612),a=n(76356),i=n(55729);function l(e){let{rows:t,rowHeight:n}=e;return(0,s.jsx)(r.D,{animate:!0,height:t*n,uniqueKey:"generic-table-cl",children:Array(t).fill(null).map((e,t)=>{let r=t*n;return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)("circle",{cx:20,cy:r+n/2,r:12}),(0,s.jsx)("rect",{x:40,y:r+8,width:"calc(100% - 48px)",height:n-16})]},r)})})}function o(e){let{rows:t=12}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.az,{hideBelow:"md",children:(0,s.jsx)(l,{rowHeight:32,rows:t})}),(0,s.jsx)(a.az,{hideFrom:"md",children:(0,s.jsx)(l,{rowHeight:48,rows:t})})]})}},67239:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>K});var s=n(6029),r=n(32523),a=n(75751),i=n(83457),l=n(95083),o=n(41249),d=n(65789),c=n(12047),u=n(55729),m=n(90248),p=n(62859),h=n(8703),x=n(21377),v=function(e){return e.All="all",e.KeyEvents="key-events",e}({});let f=e=>[x.QCR.AmericanFootball].includes(e),g=e=>{let{selectedTab:t,onTabChange:n}=e,{event:r}=(0,u.useContext)(p.y$),a=f((0,h.c5)(r));return(0,s.jsx)(o.tU,{variant:"tertiary",initialValue:v.All,value:t,onChange:n,children:(0,s.jsxs)(o.tU.List,{p:"sm",elevation:[2,void 0],borderBottom:a?void 0:"onSurface.nLv4",bg:["surface.s1",void 0],children:[(0,s.jsx)(o.tU.Tab,{tabKey:v.All,children:(0,s.jsx)(m.A,{id:"basic.all"})}),(0,s.jsx)(o.tU.Tab,{tabKey:v.KeyEvents,children:(0,s.jsx)(m.A,{id:"commentary_key_events"})})]})})};var j=n(87763);let y=e=>{let{periods:t,onPeriodChange:n}=e,r=(0,u.useContext)(p.Ws);return t&&f(r)?(0,s.jsx)(o.az,{p:"sm",bg:"surface.s1",borderBottom:"onSurface.nLv4",children:(0,s.jsx)(o.tU,{variant:"secondary",initialValue:v.All,onChange:n,children:(0,s.jsx)(o.tU.List,{children:t.map(e=>(0,s.jsx)(o.tU.Tab,{tabKey:e,children:(0,s.jsx)(j.fP,{id:e,short:!0})},e))})})}):null},b=()=>{let[e,t]=(0,u.useState)("all"),[n,s]=(0,u.useState)(v.All);return{selectedPeriod:e,onPeriodChange:e=>t(e),selectedTab:n,onTabChange:s}};var w=n(23727),k=n(45860);let S=()=>{let{event:e}=(0,u.useContext)(p.y$),t=(0,i.j)((0,h.c5)(e)),{data:n}=(0,k.Ay)(t?x.bnp.commentary(e.id,t):null,(0,h.rf)(e));return{drives:null==n?void 0:n.drives}};var C=n(88836),A=n(9725);let T=e=>{let{event:t}=(0,u.useContext)(p.y$),n=e.isHome?t.homeTeam:t.awayTeam,s=e.player,r=function(e,t){let n=e.isHome?t.homeTeam.shortName:t.awayTeam.shortName;switch(e.type){case"touchdown":return"Touchdown ".concat(n,"!");case"fieldGoalMiss":return"Missed Field Goal";case"twoPointConversion":return"2-PT Conversion";case"turnoverOnDowns":return"Turnover on Downs";case"fourthDownConversion":return"4th Down Conversion";case"passInterception":return"Interception";case"passInterceptionReturn":return"Interception Return";case"tenYardsPlay":return"".concat(e.yardsGained," Yard ").concat("run"===e.playType?"Run":"Pass");case"fieldGoal":return"Field Goal";case"extraPoint":return"Extra Point";case"safety":return"Safety";default:return null}}(e,t);return{team:n,player:s,title:r,text:function(e){return"twoMinuteWarning"===e.type?"Two-Minute Warning":e.text}(e),downDistance:function(e,t){if("extraPoint"===e.type){let n=1===e.teamHalf?t.homeTeam.nameCode:t.awayTeam.nameCode;return"XP attempt from ".concat(n," ").concat(e.yardline)}let n={currentDown:e.down,currentTeamHalf:e.teamHalf,currentPossession:e.possession,currentYardline:e.yardline,currentYardsToFirstDown:e.yardsToFirstDown,isGoalPossession:e.isGoal};return(0,A.XE)(n,t)}(e,t)}},_=e=>{let{comment:t}=e,{player:n,team:r,title:a,text:i,downDistance:l}=T(t);return(0,s.jsxs)(o.so,{children:[(0,s.jsx)(C.JJ,{comment:t}),(0,s.jsxs)(C.cH,{bg:"surface.s0",image:n&&(0,s.jsx)(C.Ez,{id:n.id,teamId:r.id}),players:[n],children:[a&&(0,s.jsx)(C.SI,{children:a}),i&&(0,s.jsx)(C.jv,{children:i}),l&&(0,s.jsx)(C.jv,{secondary:!0,children:l})]})]})},I=e=>{let{comments:t}=e;return(0,s.jsx)(o.so,{direction:"column",rowGap:"lg",p:"lg",children:t.map(e=>(0,s.jsx)(_,{comment:e},e.id))})};var L=n(33144),E=n(4967);let H=e=>{let{drive:t}=e;return(0,s.jsxs)(o.so,{columnGap:"lg",align:"center",cursor:"pointer",as:"span",children:[(0,s.jsx)(L.p,{id:t.teamId,w:32,h:32}),(0,s.jsxs)(o.so,{direction:"column",grow:1,as:"span",children:[(0,s.jsx)(o.EY,{font:"display.medium",color:null!==t.endReason?"onSurface.nLv1":"sofaSingles.live",children:t.endReason||(0,s.jsx)(m.A,{id:"inProgress"})}),(0,s.jsx)(o.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(m.A,{id:"am_football_drive_summary",values:{plays:t.playCount,yards:t.netDriveYards,time:(0,E.OV)(t.durationSeconds)}})})]})]})},F=e=>{let{comment:t,drive:n,defaultOpened:r=!1}=e;return(0,s.jsxs)(o.nD.Item,{defaultOpened:r,bg:"surface.s1",elevation:[2,void 0],br:["lg",void 0],borderTop:[void 0,"onSurface.nLv4"],borderBottom:[void 0,"onSurface.nLv4"],mt:-1,overflow:"hidden",children:[(0,s.jsx)(o.nD.Trigger,{children:(0,s.jsx)(H,{drive:n})}),(0,s.jsx)(o.nD.Content,{children:(0,s.jsx)(I,{comments:t})})]})},R=e=>{let{comment:t}=e,{player:n,team:r,title:a,text:i,downDistance:l}=T(t);return(0,s.jsxs)(o.so,{children:[(0,s.jsx)(C.JJ,{comment:t}),(0,s.jsxs)(C.cH,{image:n&&(0,s.jsx)(C.Ez,{id:n.id,teamId:r.id}),players:[n],elevation:[2,void 0],children:[a&&(0,s.jsx)(C.SI,{children:a}),i&&(0,s.jsx)(C.jv,{children:i}),l&&(0,s.jsx)(C.jv,{secondary:!0,children:l})]})]})},B=e=>{let{comment:t}=e,{player:n,team:r,title:a,text:i,downDistance:l}=T(t);return(0,s.jsxs)(o.so,{br:"lg",elevation:[2,void 0],bg:["surface.s1",void 0],py:[0,"md"],px:[0,"lg"],children:[(0,s.jsx)(C.JJ,{comment:t}),(0,s.jsxs)(C.cH,{bg:["surface.s1","surface.s0"],image:n&&(0,s.jsx)(C.Ez,{id:n.id,teamId:r.id}),players:[n],children:[a&&(0,s.jsx)(C.SI,{children:a}),i&&(0,s.jsx)(C.jv,{children:i}),l&&(0,s.jsx)(C.jv,{secondary:!0,children:l})]})]})},P=e=>{let{selectedTab:t,selectedPeriod:n,comments:r,periods:a}=e,{drives:i}=S();if(t===v.KeyEvents)return(0,s.jsx)(o.so,{p:"md",direction:"column",rowGap:"md",children:r.map(e=>(0,s.jsx)(R,{comment:e},e.id))});let l=r.findIndex(e=>!!Array.isArray(e)||void 0!==e.driveId);return(0,s.jsx)(o.nD,{children:(0,s.jsxs)(o.so,{p:["md",0],direction:"column",rowGap:["md",0],children:[(0,s.jsx)(o.az,{display:["none","block"],children:(0,s.jsx)(o.cG,{})}),r.map((e,t)=>{let r=function(e){return Array.isArray(e)?e:[e]}(e),o=function(e,t){return void 0===e||void 0===t?null:t.find(t=>t.id===e)}(r[0].driveId,i);return o?(0,s.jsx)(F,{comment:r,drive:o,defaultOpened:function(e,t,n){return 0!==e.length&&[e[0],e[e.length-1]].includes(t)&&n}(a||[],n,l===t)},r[0].id):(0,s.jsx)(B,{comment:r[0]},r[0].id)})]})})},z=e=>{let{comment:t}=e,{event:n}=(0,u.useContext)(p.y$),{homeTeam:r,awayTeam:a}=n,i="ownGoal"===t.goalType,l="penalty"===t.goalType,o=!i&&!l,d=t.player,c=t.isHome?r.id:a.id;return d?(0,s.jsxs)(C.hF,{children:[(0,s.jsx)(C.JJ,{comment:t}),(0,s.jsxs)(C.cH,{image:(0,s.jsx)(C.Ez,{id:d.id,teamId:c}),players:[d],children:[(0,s.jsx)(C.SI,{isUppercase:o,children:o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.A,{id:"goal"}),"!"]}):(0,s.jsx)(m.A,{id:t.goalType})}),(0,s.jsx)(C.jv,{children:t.text})]})]}):null},O=e=>{let{comment:t}=e,{event:n}=(0,u.useContext)(p.y$),r=t.isHome?n.homeTeam:n.awayTeam;return t.playerIn&&t.playerOut?(0,s.jsxs)(C.hF,{children:[(0,s.jsx)(C.JJ,{comment:t}),(0,s.jsxs)(C.cH,{image:(0,s.jsx)(L.p,{size:24,id:r.id,name:r.name}),players:[t.playerIn,t.playerOut],children:[(0,s.jsx)(C.SI,{children:(0,s.jsx)(m.A,{id:"substitution"})}),(0,s.jsxs)(C.Pc,{image:(0,s.jsx)(C.Ez,{id:t.playerIn.id,small:!0}),children:[t.playerIn.name,(0,s.jsxs)(o.EY,{ml:2,font:"body.small",color:"secondary.default",children:["(",(0,s.jsx)(m.A,{id:"substitution.in"}),")"]})]}),(0,s.jsxs)(C.Pc,{image:(0,s.jsx)(C.Ez,{id:t.playerOut.id,small:!0}),children:[t.playerOut.name,(0,s.jsxs)(o.EY,{ml:2,font:"body.small",color:"error.default",children:["(",(0,s.jsx)(m.A,{id:"substitution_out"}),")"]})]})]})]}):null};var D=n(30566),M=n(20294);let N={[x.QCR.Football]:e=>{let{comment:t}=e;switch(t.type){case"scoreChange":case"penaltyScored":return(0,s.jsx)(z,{comment:t});case"substitution":return(0,s.jsx)(O,{comment:t});default:return(0,s.jsx)(D.b,{comment:t})}},[x.QCR.IceHockey]:M.y},G=e=>{let{comments:t}=e,n=N[(0,u.useContext)(p.Ws)];return(0,s.jsx)(o.so,{p:"md",direction:"column",rowGap:"md",children:t.map(e=>(0,s.jsx)(n,{comment:e},e.id))})},W=e=>{let{selectedTab:t,selectedPeriod:n,comments:r,periods:a}=e;return(0,u.useContext)(p.Ws)===x.QCR.AmericanFootball?(0,s.jsx)(P,{selectedTab:t,selectedPeriod:n,comments:r,periods:a}):(0,s.jsx)(G,{comments:r})},Y=e=>{let{selectedTab:t,selectedPeriod:n,comments:r,periods:a}=e,{isMobile:i}=(0,l.$c)(),{event:o,location:c}=(0,u.useContext)(p.y$),[m,f]=(0,u.useState)(!1),g=function(e,t,n){return t===v.KeyEvents?n.filter(e=>Object.values(x.zZK).includes(e.type)):e===x.QCR.AmericanFootball?function(e){let t=[],n=null,s=null;for(let r of e)void 0!==r.driveId?(r.driveId!==s&&(n=[],t.push(n),s=r.driveId),n&&n.push(r)):(t.push(r),s=null);return t.map(e=>Array.isArray(e)&&1===e.length?e[0]:e)}(n.filter(e=>"timeout"!==e.type||void 0!==e.driveId)):n}((0,h.c5)(o),t,r),j=c&&[p.cb.EventPage,p.cb.Widget].includes(c)&&g.length>10&&!i;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(W,{selectedTab:t,selectedPeriod:n,comments:function(e,t,n){return t||n?e:e.slice(0,10)}(g,m,i),periods:a}),(0,s.jsx)(d.Zp.Footer,{ctaParams:j?{messageId:m?"show_less":"show_more",onClick:()=>f(e=>!e),icon:m?w.X.Up:w.X.Down}:void 0,defaultHeight:{base:"[0px]",md:"lg"}})]})},U=e=>{let{periods:t,onPeriodChange:n}=e,r=(0,c.Ay)();return(0,s.jsx)(o.PI,{top:r,bg:"surface.s1",borderBottom:"onSurface.nLv4",zIndex:o.Py.Sticky-1,children:(0,s.jsx)(y,{periods:t,onPeriodChange:n})})},Q=e=>{let{periodComments:t,periods:n}=e,{selectedPeriod:r,onPeriodChange:a,selectedTab:i,onTabChange:o}=b(),{isDesktop:c}=(0,l.$c)(),u=t[r];return(0,s.jsxs)(d.HH,{isCard:c,children:[(0,s.jsx)(d.Zp.Header,{titleId:"commentary",visibility:"desktop-only"}),(0,s.jsx)(U,{periods:n,onPeriodChange:a}),(0,s.jsx)(g,{selectedTab:i,onTabChange:o}),(0,s.jsx)(Y,{selectedTab:i,selectedPeriod:r,comments:u,periods:n})]})},K=()=>{let{textCommentary:e,periods:t}=(0,i.q)(!0);return e?(0,s.jsx)(a.t,{tag:"TextCommentary",children:(0,s.jsx)(Q,{periodComments:e,periods:t})}):(0,s.jsx)(r.E,{uniqueKey:"text-commentary-container-cl",rows:10,rowHeight:56,animate:!0})}},70115:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),r=n(41249),a=n(71024),i=n.n(a),l=n(28132);let o=i()(()=>Promise.all([n.e(4824),n.e(2342)]).then(n.bind(n,85912)),{loadableGenerated:{webpack:()=>[85912]},ssr:!1});function d(e){let{uniqueTournament:t,seasonId:n,sport:a}=e;return(0,s.jsx)(r.tU.Panel,{tabKey:l.H.Knockout,children:(0,s.jsx)(o,{sport:a,uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:n})})}},70819:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(6029),r=n(95083),a=n(76356),i=n(494),l=n(52210),o=n(75791),d=n(2294);let c=e=>{let{choice:t,isLive:n,branded:c,betSlipLink:u,isComparison:m,onClick:p}=e,h=u&&c,x="fractional"===(0,i.d4)(d.$4),v=x?o.Y:void 0,f=(0,s.jsxs)(a.so,{position:"relative",justify:"center",align:"center",bg:"surface.s2",br:"xs",border:m&&n?"1px solid {colors.status.val}":"1px solid {colors.neutrals.nLv4}",minW:m?"4xl":"[52px]",h:m?"xl":"[28px]",my:"xs",flexShrink:0,flexGrow:m?1:void 0,children:[(0,s.jsx)(r.EY,{textStyle:"display.micro",color:n?"status.val":"neutrals.nLv1",mr:0===t.change?void 0:"2xs",textAlign:"center",style:{fontSize:x?14:void 0,letterSpacing:x?"-1px":void 0},lineHeight:1,children:(0,s.jsx)(o.c,{fractionalValue:t.fractionalValue,children:v})}),(0,s.jsx)(l.I,{change:t.change})]});return h&&(f=(0,s.jsx)(r.Mz,{target:h?"_blank":void 0,rel:h?"nofollow noopener noreferrer":void 0,href:h?u:void 0,onClick:e=>{e.stopPropagation(),null==p||p()},flexGrow:m?1:void 0,flexBasis:m?"4xl":void 0,children:f})),f}},71484:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var s=function(e){return e.MainScreen="main_screen",e.EventPage="event_page",e.TournamentPage="league_screen",e.DetailsTab="details",e.MediaTab="media",e}({})},72653:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var s=n(6029),r=n(21377),a=n(4967),i=n(95669),l=n.n(i),o=n(947),d=n(58771),c=n(26331),u=n(73088),m=n(97047);let p=(e,t,n)=>e.type===r.YVh.Person?{"@type":"Person",name:e.name}:{"@type":"SportsTeam",sport:t.name,name:e.name,logo:r.cWY.image(e.id),url:"https://www.sofascore.com/team/".concat(t.slug,"/").concat(e.slug,"/").concat(e.id),sameAs:(0,m.WG)(e.id,n)},h=(e,t)=>{var n,s,r,a,i;let l=(null==(n=e.tournament.uniqueTournament)?void 0:n.name)||e.tournament.name,o=(null==(s=e.season)?void 0:s.year)||(null==(r=e.season)?void 0:r.name)||t.getFullYear()||"",d=(e.tournament.roundPrefix||"")+" "+((null==(a=e.roundInfo)?void 0:a.name)||((null==(i=e.roundInfo)?void 0:i.round)?"Round ".concat(e.roundInfo.round):""));return"".concat(l," ").concat(o," ").concat(d.trim()).trim()},x=e=>{switch(e.status.type){case r.XUj.Canceled:case r.XUj.Suspended:return"EventCancelled";case r.XUj.Postponed:return"EventPostponed";default:return"EventScheduled"}};function v(e){let{event:t}=e,n=(0,o.A)(),i=(0,c.A)(),v=t.tournament.category.sport,f=a.pp(t.startTimestamp),g=h(t,f),j=t.tournament.category,y=t.tournament.uniqueTournament,b=1,w=[{"@type":"ListItem",position:1,name:n.formatMessage({id:"sport.".concat(v.slug)}),item:"".concat(r.VTF).concat(u.z.getTranslatedRoute(i,"eventList",{sport:v.slug}).route)},{"@type":"ListItem",position:++b,name:n.formatMessage({id:j.slug}),item:"".concat(r.VTF).concat(u.z.getTranslatedRoute(i,"eventList.category",{sport:j.sport.slug,category:j.slug}).route)}];y&&w.push({"@type":"ListItem",position:++b,name:y.name,item:"".concat(r.VTF).concat(u.z.getTranslatedRoute(i,"uniqueTournament",{sport:y.category.sport.slug,category:y.category.slug,tournament:y.slug,id:y.id}).route)}),w.push({"@type":"ListItem",position:++b,name:"".concat(t.homeTeam.name," - ").concat(t.awayTeam.name)});let k={"@context":"https://schema.org","@type":"SportsEvent",name:"".concat(t.homeTeam.name," vs ").concat(t.awayTeam.name),eventStatus:x(t),description:g,homeTeam:p(t.homeTeam,v,i),awayTeam:p(t.awayTeam,v,i),startDate:f.toISOString(),sport:v.name};if(t.venue){var S,C,A;k.location=[{"@type":"Place",name:null==(S=t.venue)?void 0:S.stadium.name,maximumAttendeeCapacity:null==(C=t.venue)?void 0:C.stadium.capacity,address:{"@type":"PronounceableText"}}],t.venue.city.name&&k.location.concat({"@type":"Place",name:t.venue.city.name}),t.venue.country.alpha2&&k.location.concat({"@type":"Country",name:(0,m.lE)(null==(A=t.venue)?void 0:A.country.alpha2)})}else t.tournament.category.alpha2&&(k.location={"@type":"Country",name:(0,m.lE)(t.tournament.category.alpha2)});return(0,s.jsxs)(l(),{children:[(0,s.jsx)("script",{...(0,d.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:w})}),",",(0,s.jsx)("script",{...(0,d.QQ)(k)}),","]})}},73003:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var s=n(6029),r=n(21377),a=n(76356),i=n(41249),l=n(59018),o=n.n(l),d=n(55729),c=n(90248),u=n(65789),m=n(75751),p=n(42360),h=n(48686),x=n(85986),v=n(95195),f=n(189),g=n(53214),j=n(14591),y=n(41735);let b=(0,y.default)(i.az).withConfig({componentId:"sc-ce9c6449-0"})(["cursor:move;transform-origin:top right;div{","}> div{border-top:1px solid ",";> div{min-height:268px;}}+ .cupTree-instruction-snackbar{transition:opacity 0.2s ease-in-out;opacity:0;}:hover{+ .cupTree-instruction-snackbar{opacity:1;pointer-events:none;}}"],e=>"rtl"===e.theme.settings.textDirection&&"transform-origin: top right 0px !important;",e=>e.theme.colors.onSurface.nLv4);function w(e){let{cupTree:t,roundDescriptions:n}=e,a=(0,d.useRef)([]),l=(0,d.useRef)(null),o=(0,d.useRef)(null),c="rtl"===(0,y.useTheme)().settings.textDirection,u=(0,d.useRef)(),{sourceTreeName:m,phaseFilter:p,rounds:v}=(0,x.B)(),f=(0,d.useCallback)(e=>{a.current.forEach(t=>t(e))},[a.current]),w=1===n.length,k=t.events.length>0,S=w&&/relegation|promotion/i.test(m),[C,A]=(0,d.useState)(!1),[T,_]=(0,d.useState)(!1),[I,L]=(0,d.useState)(1),[E,H]=(0,d.useState)(w?c?-300:300:0),[F,R]=(0,d.useState)(w?k?8:38:0);function B(e){("Control"===e.key||"Meta"===e.key)&&A(!0)}function P(e){C&&A(!1)}return(0,d.useEffect)(()=>{if(!u.current){var e;let t=null==(e=l.current)?void 0:e.getBoundingClientRect();t&&(u.current=t)}return document.addEventListener("keydown",B),document.addEventListener("keyup",P),()=>{document.removeEventListener("keydown",B),document.addEventListener("keyup",P)}},[C]),(0,d.useLayoutEffect)(()=>{function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;H(0),R(0);let s=t-n;if(0===s)return;let r=s>0?1:-1,a=n+.03*r;1===r&&a>t||-1===r&&ae(t,a)))}let s=t.finished&&v[v.length-1].type===r.FFH.Finals&&!S;if("number"==typeof p&&p>0&&p<=4)return void requestAnimationFrame(()=>e(s?.92:1,I));if(o.current){let t=(o.current.clientWidth-36*!!s)/(300*n.length);t<.8&&I!==t&&requestAnimationFrame(()=>e(t,I))}},[p]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.eS,{onChange:a.current}),(0,s.jsx)(g.Cq,{roundNames:n,x:E,scale:I}),(0,s.jsx)(b,{ref:o,children:(0,s.jsx)(j.MapInteractionCSS,{disableZoom:!C,value:{scale:I,translation:{x:E,y:F}},onChange:e=>{let{scale:t,translation:n}=e;if(T||_(!0),t>=h.Yv&&t<=h.AK){var s,r,a,i,l,d;L(t),H(Math.max(-(((null==(s=u.current)?void 0:s.width)||0)*t*.8),Math.min(((null==(a=o.current)||null==(r=a.parentElement)?void 0:r.clientWidth)||h.IT)-100,n.x))),R(Math.max(-(((null==(i=u.current)?void 0:i.height)||0)*t*1),Math.min(((null==(d=o.current)||null==(l=d.parentElement)?void 0:l.clientHeight)||h.XV)-100,n.y)))}},children:(0,s.jsx)(i.az,{position:"relative",ref:l,children:(0,s.jsx)(g.Vr,{tree:t,columnWidth:300,depth:n.length,highlights:{set:f,clear:()=>f([])},isRelegationDecider:S})})})}),T?null:(0,s.jsx)(g._4,{}),(0,s.jsx)(g.Dg,{onZoomIn:()=>{requestAnimationFrame(()=>{L(Math.min(I+.1,h.AK))})},onZoomOut:()=>{requestAnimationFrame(()=>{L(Math.max(I-.1,h.Yv))})}})]})}let k={0:(0,s.jsx)(c.A,{id:"full_bracket"}),[r.FFH.EighthFinals]:(0,s.jsx)(c.A,{id:"bracket_top_n",values:{n:16}}),[r.FFH.Quarterfinals]:(0,s.jsx)(c.A,{id:"bracket_top_n",values:{n:8}})};function S(e){let{selectedTree:t,sport:n,uniqueTournamentId:l,uniqueTournamentSlug:c,categorySlug:p,seasonId:v}=e,[j,y]=(0,d.useState)(0),b=function(e){let t=e.map(e=>e.type),n=[0];if(t.includes(r.FFH.EighthFinals)&&t.some(e=>e>r.FFH.EighthFinals)&&n.push(r.FFH.EighthFinals),t.includes(r.FFH.Quarterfinals)&&t.some(e=>e>r.FFH.Quarterfinals)&&n.push(r.FFH.Quarterfinals),n.length>1)return n}(t.rounds),S=null,C=o()(t.rounds.map(e=>e.description));if(j>0&&b){let e={...t,rounds:t.rounds.filter(e=>e.type<=b[j])};C=e.rounds.map(e=>e.description),S=(0,f.TI)((0,f.o$)(e),n,null)}else S=(0,f.TI)((0,f.o$)(t),n,null);if(!S||!(0,f.ov)(S))return null;let A=[];return t.showSingleParticipantByeBlocks||(A=(0,f.BE)(t.rounds)),(0,s.jsx)(m.t,{tag:"CupTree",children:(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(g.Y9,{id:t.id,name:t.name,sport:n,phaseSelector:b&&(0,s.jsx)(i.ms,{items:b,alignRight:!0,selectedItem:b[j],renderItem:e=>{if("number"==typeof e)return k[e]},onSelectedItemChange:e=>{"number"==typeof e.selectedItemIndex&&y(e.selectedItemIndex)}})}),(0,s.jsx)(a.az,{mt:"sm",style:{maxHeight:h.XV},overflow:"hidden","data-tree-id":t.id,children:(0,s.jsx)(x.J,{sport:n,tournamentId:l,seasonId:v,sourceTreeId:t.id,rounds:t.rounds,sourceTreeName:t.name,showSingleParticipantByeBlocks:t.showSingleParticipantByeBlocks,phaseFilter:b?b[j]:void 0,entrantsPerRound:A,children:(0,s.jsx)(w,{cupTree:S,roundDescriptions:C})})}),(0,f.KA)(A)&&(0,s.jsx)(g.eo,{}),(0,s.jsx)(g.fT,{uniqueTournamentId:l,uniqueTournamentSlug:c,categorySlug:p,seasonId:v,cupTree:t,sport:n})]})},t.id)}function C(e){let{uniqueTournamentId:t,uniqueTournamentSlug:n,categorySlug:r,seasonId:a,sport:i}=e,[l,o]=(0,v.Q)(t,a);return o?(0,s.jsx)(p.A,{}):l?(0,s.jsx)(s.Fragment,{children:l.map(e=>(0,s.jsx)(S,{selectedTree:e,uniqueTournamentId:t,uniqueTournamentSlug:n,categorySlug:r,seasonId:a,sport:i},e.id))}):null}},74216:(e,t,n)=>{"use strict";n.d(t,{N:()=>y});var s=n(6029),r=n(33144),a=n(21377),i=n(41249),l=n(55729),o=n(494),d=n(45860),c=n(76868),u=n(53486),m=n(75508),p=n(8973),h=n(70591),x=n(94604),v=n(67628),f=n(90879),g=n(90961),j=n(19121);let y=e=>{var t;let{team:n,event:y,isHome:b,isTabbedLayout:w}=e,[k,S]=(0,l.useState)(!1),[C,A]=(0,l.useState)(!1),[T,_]=(0,l.useState)(!1),[I,L]=(0,l.useState)(!1),E=y.tournament.category.sport.slug,H=(0,o.wA)(),{data:F,error:R}=(0,d.Ay)(a.cWY.events(n.id,!0),{onSuccess:e=>H((0,j.oU)(e.events))}),{data:B,error:P}=(0,d.Ay)(a.cWY.events(n.id),{onSuccess:e=>H((0,j.oU)(e.events))}),z=!(F||R)||!(B||P),O=(0,l.useMemo)(()=>{if(z)return[];let e=B?B.events.slice(0,2):[];return[...F?F.events.slice(Math.max(F.events.length-10,0)):[],...e]},[F,B,R,P]),D=(0,l.useMemo)(()=>O.filter(e=>{let t=!0;if(k&&(t=(b?e.homeTeam.id:e.awayTeam.id)===n.id),C&&(t=e.tournament.uniqueTournament&&y.tournament.uniqueTournament?t&&e.tournament.uniqueTournament.id===y.tournament.uniqueTournament.id:t&&e.tournament.id===y.tournament.id),T){var s;t=t&&(null==(s=e.homeTeam.subTeams)?void 0:s.length)===0}return I&&(t=t&&y.groundType===e.groundType),t}),[O,k,C,T,I]),M=(0,l.useCallback)(()=>S(e=>!e),[]),N=(0,l.useCallback)(()=>A(e=>!e),[]),G=(0,l.useCallback)(()=>_(e=>!e),[]),W=(0,l.useCallback)(()=>L(e=>!e),[]),Y=E===a.QCR.Tennis,U=E===a.QCR.MMA,Q=(0,g.C)(E);return(0,s.jsxs)(i.az,{w:["100%",w?"100%":"50%"],children:[(0,s.jsx)(i.az,{display:["none","block"],children:(0,s.jsx)(h.gT,{team:n,sport:E,style:{width:"50%"},children:(0,s.jsxs)(i.so,{hoverBg:"surface.s2",px:"lg",py:"sm",align:"center",children:[(0,s.jsx)(r.p,{id:n.id,name:n.name,size:24,mr:"sm"}),(0,s.jsx)(i.EY,{font:"display.small",color:"onSurface.nLv1",as:"bdi",children:(0,s.jsx)(x.Rm,{team:n})})]})})}),Y?(0,s.jsxs)(i.so,{align:"center",children:[!(null==(t=y.homeTeam.subTeams)?void 0:t.length)&&(0,s.jsx)(f.d,{id:"eventType".concat(b?"Home":"Away"),textId:"singles",checked:T,onChange:G}),!!y.groundType&&(0,s.jsx)(i.Sc,{id:"groundType".concat(b?"Home":"Away"),checked:I,onChange:W,children:(0,s.jsx)(i.EY,{font:"body.medium",color:"onSurface.nLv1",whiteSpace:"normal",children:(0,s.jsx)(v.n,{id:y.groundType})})})]}):(0,s.jsxs)(i.so,{align:"center",children:[Q&&(0,s.jsx)(i.az,{minW:"120",children:(0,s.jsx)(f.d,{id:"playedAt".concat(b?"Home":"Away"),textId:b?"standings.home":"away",checked:k,onChange:M})}),!U&&(0,s.jsx)(f.d,{id:"thisTournament".concat(b?"Home":"Away"),textId:"this_competition",checked:C,onChange:N})]}),D.length||z?(0,s.jsx)(i.az,{p:"sm",children:(0,s.jsx)(u.MC.Provider,{value:{hideScores:U,location:p.y.MatchesSection},children:(0,s.jsx)(m.b,{events:z?[]:D,eventCell:(0,u.ey)({referenceId:n.id}),descending:!0,isShort:!0})})}):(0,s.jsx)(c.p,{graphic:"no-events-calendar",descriptionMessageId:"basic.noEvents",mx:"auto"})]})}},75414:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=function(e){switch(!0){case e<1e3:return"".concat(e);case e<1e4&&e/1e3%1>=.1:let t="".concat((e/1e3).toPrecision(2));return t.endsWith(".0")&&(t=t.substring(0,t.length-2)),"".concat(t,"k");case e<1e6:let n=Math.round(e/1e3);if(1e3===n)return"1M";return"".concat(n,"k");case e<1e7:let s=(e/1e5).toFixed();return s=s.endsWith("0")?s.substring(0,s.length-1):"".concat(s[0],".").concat(s[1]),"".concat(s,"M");case e<1e8:return"".concat(Math.round(e/1e6),"M");case e<1e9:let r=Math.round(e/1e6);if(1e3===r)return"1B";return"".concat(r,"M");default:return"".concat(e)}}},76097:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(6029),r=n(33144),a=n(41249),i=n(55729),l=n(90248),o=n(62859),d=n(14319),c=n(74216);function u(e){let{isTabbedLayout:t}=e,{event:n,leftTeam:u,rightTeam:m,location:p}=(0,i.useContext)(o.y$),h=p===o.cb.BettingWidget;return t?(0,s.jsxs)(a.tU,{variant:"secondary",initialValue:2,children:[(0,s.jsxs)(a.so,{mb:h?"sm":"lg",align:"center",justify:"center",children:[(0,s.jsx)(a.tU.Tab,{w:"72",h:"32",px:"lg",py:"0",textAlign:"center",children:(0,s.jsx)(r.p,{id:u.id,size:24,name:u.name,mt:"-4"})}),(0,s.jsx)(a.tU.Tab,{minW:"72",h:"32",px:"lg",py:"0",textAlign:"center",children:(0,s.jsx)(l.A,{id:"head_to_head_short"})}),(0,s.jsx)(a.tU.Tab,{w:"72",h:"32",px:"lg",py:"0",textAlign:"center",children:(0,s.jsx)(r.p,{id:m.id,size:24,name:m.name,mt:"-4"})})]}),(0,s.jsx)(a.tU.Panel,{children:(0,s.jsx)(c.N,{team:u,event:n,isHome:u.id===n.homeTeam.id,isTabbedLayout:!0})}),(0,s.jsx)(a.tU.Panel,{children:(0,s.jsx)(d.G,{})}),(0,s.jsx)(a.tU.Panel,{children:(0,s.jsx)(c.N,{team:m,event:n,isHome:m.id===n.homeTeam.id,isTabbedLayout:!0})})]}):(0,s.jsxs)(a.so,{py:"sm",children:[(0,s.jsx)(c.N,{team:u,event:n,isHome:u.id===n.homeTeam.id}),(0,s.jsx)(a.cG,{vertical:!0}),(0,s.jsx)(c.N,{team:m,event:n,isHome:m.id===n.homeTeam.id})]})}},77988:(e,t,n)=>{"use strict";n.d(t,{A:()=>x,g:()=>h});var s=n(6029),r=n(41249),a=n(90248),i=n(494),l=n(2294),o=n(10794);let d={AU:"www.gamblinghelponline.org.au",BG:"nss-bg.org/hi-kodeks",GB:"www.begambleaware.org",NL:"hands24x7.nl"},c={DE:"18+ | Erlaubt (Whitelist) | Suchtrisiko | www.buwei.de",NL:"Wat kost gokken jou? Stop op tijd. 18+",CA:"19+. Gambling can be addictive, please play responsibly.
Eligible iGames conducted and managed by iGO are only available to those physically present in the Province of Ontario.",US:"21+. Gambling Problem?
Call 1-800-GAMBLER",SE:"18+. st\xf6dlinjen.se. Spela ansvarsfullt.",DK:"18+ | Regler og vilk\xe5r g\xe6lder | Spil ansvarligt | Selvudeluk via ROFUS.nu | StopSpillet.dk",TR:"İddaa oranları anlık olarak değişiklik g\xf6sterebilmektedir."},u={BE:21,GR:21,CA:19};function m(){let e=(0,i.d4)(l.a5);return(null==e?void 0:e.oddsMayDiffer)?(0,s.jsxs)("span",{children:[(0,s.jsx)("br",{}),(0,s.jsx)(a.A,{id:"disclaimer_odds_may_differ"})]}):null}function p(e){let{standalone:t}=e,n=(0,i.d4)(o.LQ),r=n&&d[n];return r?(0,s.jsxs)("span",{children:[t?"":", ",(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:r}})]}):null}let h=e=>e&&u[e.toUpperCase()]?u[e.toUpperCase()]:18;function x(e){let t,n=(0,i.d4)(o.LQ),l=(0,i.d4)(o.zj);return n&&l?t=c["".concat(n,"-").concat(l)]||c[n]:n&&(t=c[n]),(0,s.jsxs)(r.EY,{font:"assistive.micro",color:"onSurface.nLv3",pr:"sm","data-qa-id":"gamble-responsibly",...e,children:[t?(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:t}}):(0,s.jsx)(a.A,{id:"gamble_responsibly",values:{age:h(n)}}),(0,s.jsx)(p,{}),(0,s.jsx)(m,{})]})}},78492:(e,t,n)=>{var s=n(50956);e.exports=function(e,t,n,r){return s(e,function(e,s,a){t(r,e,n(e),a)}),r}},79263:(e,t,n)=>{"use strict";n.d(t,{j:()=>y});var s=n(21377),r=n(932),a=n.n(r),i=n(78383),l=n.n(i),o=n(84285),d=n.n(o),c=n(59018),u=n.n(c),m=n(55729),p=n(494),h=n(45860),x=n(2294),v=n(39196),f=n(70351);async function g(e,t){let n=u()(t),r={},a=await Promise.allSettled(n.map(t=>(0,s.TtD)(s.bnp.allOdds(e,t))));return n.forEach((e,t)=>{"fulfilled"===a[t].status&&(r[e]=a[t].value)}),r}async function j(e){let[t,n]=e,s={},r=!1,a=n.map(e=>e.oddsFromId),i=[],l=!1,o=await g(t,a);if(n.forEach(e=>{o[e.oddsFromId]?(s[e.id]=o[e.oddsFromId],e.oddsFromId!==e.id&&e.oddsMayDiffer&&(r=!0)):e.fallbackProviderId?o[e.fallbackProviderId]?s[e.id]=o[e.fallbackProviderId]:i.push(e.fallbackProviderId):l=!0}),!l&&i.length){let e=await g(t,i);n.forEach(t=>{!s[t.id]&&t.fallbackProviderId&&e[t.oddsFromId]?(s[t.id]=e[t.fallbackProviderId],t.oddsMayDiffer&&(r=!0)):l=!0})}if(l)throw Error("Could not fetch all odds");return{providerOdds:n.map(e=>s[e.id]),oddsMayDiffer:r}}let y=(e,t)=>{var n,s;let r=(0,p.d4)(x.fq),i=(0,p.d4)(e=>(0,x.GD)(e,t)),[o]=(0,f.A)(),{data:c,error:u,mutate:g,isLoading:y}=(0,h.Ay)(r&&(null==i?void 0:i.length)?[e,i,t,"ODDS_COMPARISON"]:null,{refreshInterval:6e4,fetcher:j});(0,m.useEffect)(()=>{g()},[t]);let b=new Set;null==c||null==(n=c.providerOdds)||n.forEach(e=>{var t;null==(t=e.markets)||t.forEach(e=>{b.add(e.id)})});let w=[...b];return(0,m.useEffect)(()=>{let e=[];return o&&w.forEach(t=>{if(t){let n=o.Topic.odds.byId(t),s=(0,v.p)("odds:".concat(t),n,l());e.push(o.subscribe(s))}}),()=>{e.forEach(e=>e())}},[o,null==c||null==(s=c[0])?void 0:s.eventId]),(0,m.useEffect)(()=>{let e=e=>{let t=a()(c);if(!t||!t.providerOdds.some(e=>!!e.markets))return;let n=[1,2,3];t.providerOdds.map(t=>{var n;return null==(n=t.markets)?void 0:n.findIndex(t=>t.id===e.id)}).forEach((s,r)=>{void 0!==s&&s>-1&&n.forEach(n=>{let i=e["choice".concat(n,".fractionalValue")];i&&d()(t,"providerOdds.".concat(r,".markets[").concat(s,"].choices[").concat(n-1,"].fractionalValue"),i,a())})}),g(t,!1)};o&&"boolean"!=typeof o&&w.forEach(t=>{if(t){let n=o.Topic.odds.byId(t),s=(0,v.p)("odds:".concat(t),n,e);o.subscribe(s)}})},[o,c,g]),{data:c,error:u,isLoading:y}}},80734:(e,t,n)=>{"use strict";n.d(t,{n:()=>o});var s=n(6029),r=n(21501),a=n(76356),i=n(55729),l=n(58775);function o(e){let t=1===i.Children.count(e.children),n=(0,r.hX)()&&e.openOnServer,[o,d]=(0,i.useState)(n||!1);return(0,s.jsxs)(a.az,{children:[(0,s.jsx)(a.az,{children:e.children[0]}),(0,s.jsx)(a.az,{display:o?"initial":"none",children:e.children.slice(1)}),!t&&(0,s.jsx)(l.d,{isOpen:o,onClick:()=>d(e=>!e)})]})}},81648:e=>{e.exports=function(e,t,n,s){for(var r=-1,a=null==e?0:e.length;++r{"use strict";n.d(t,{Au:()=>s,Mx:()=>a,XF:()=>i,zz:()=>r});var s=function(e){return e.Cloud="cloudDrakeKills",e.Elder="elderDrakeKills",e.Infernal="infernalDrakeKills",e.Mountain="mountainDrakeKills",e.Ocean="oceanDrakeKills",e}({}),r=function(e){return e.Terrorists="T",e.CounterTerrorists="CT",e}({}),a=function(e){return e.TopLane="top",e.Jungle="jun",e.MidLane="mid",e.BotLane="adc",e.Support="sup",e}({}),i=function(e){return e.HardCarry="hc",e.MidLane="mid",e.OffLand="off",e.SoftSupport="ss",e.HardSupport="hs",e}({})},85568:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var s=n(6029),r=n(95083),a=n(13030),i=n(51372);let l=e=>{let{branding:t,location:n,entityId:l,...o}=e,{isDesktop:d}=(0,r.$c)();return d&&t?(0,s.jsx)(a.A.Header,{...o,variant:"left-aligned",actionComponent:(0,s.jsx)(i.O,{minW:"[140px]",px:"sm",br:"xs",branding:t,location:n,entityId:l})}):(0,s.jsx)(a.A.Header,{...o})}},86523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LiveActionWidgetContainer:()=>_,default:()=>I});var s=n(6029),r=n(21377),a=n(95083),i=n(41249),l=n(55729),o=n(494),d=n(45860),c=n(65789),u=n(54409),m=n(19451),p=n(7263),h=n(90248),x=n(41735);let v=(0,x.css)(["box-shadow:0 2px 12px 0 ",";position:absolute;padding:0 12px;border-radius:",";overflow:hidden;cursor:move;min-width:","px;max-width:","px;min-height:","px;max-height:","px;height:","px;"],e=>e.theme.colors.effect.elevation1,e=>e.theme.spacing.xl,320,800,520,800,500),f=(0,x.css)(["margin-bottom:12px;border-radius:",";"],e=>e.theme.spacing.xl),g=x.default.div.withConfig({componentId:"sc-69a4d50f-0"})(["z-index:100;background-color:",";"," "," ",""],e=>e.theme.colors.surface.s1,e=>e.expanded?v:f,e=>e.expanded&&e.width&&"width: ".concat(e.width,"px;"),e=>e.resizing&&"iframe {pointer-events: none;}"),j=x.default.div.withConfig({componentId:"sc-69a4d50f-1"})(["",""],e=>e.expanded&&"\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n "),y=(0,x.css)(["position:absolute;z-index:102;:hover{background-color:",";}"],e=>e.theme.colors.overlay.darken1),b=(0,x.default)(i.az).withConfig({componentId:"sc-69a4d50f-2"})(["",""],y),w=x.default.iframe.withConfig({componentId:"sc-69a4d50f-3"})(["display:block;"]),k=x.default.div.withConfig({componentId:"sc-69a4d50f-4"})([":fullscreen{background-color:",";}"],e=>e.theme.colors.surface.s1),S=(0,l.forwardRef)((e,t)=>{let{width:n,eventId:a,toggleButton:l,options:o}=e;return(0,s.jsxs)(k,{ref:t,children:[(0,s.jsx)(i.EY,{as:"h3",align:"center",lineHeight:"24px",font:"display.medium",pt:"md",pb:"xs",m:"0",children:(0,s.jsx)(h.A,{id:"event.liveAction"})}),(0,s.jsx)(i.az,{d:"table",m:"auto",py:"sm",children:(0,s.jsx)(i.az,{mx:"sm",children:(0,s.jsxs)(i.XI,{position:"relative",m:"auto",mb:"10px",children:[(0,s.jsx)(w,{src:(0,r.Lo9)(r.bnp.liveActionWidget(a,o)),width:n,height:.49*n,frameBorder:"0",scrolling:"no"}),l]})})})]})});function C(e,t,n,s){let r,a;function i(){document.onmouseup=null,document.onmousemove=null,n(!1),e&&e.clientWidth&&t(e.clientWidth)}function l(t){if(t.preventDefault(),t.stopPropagation(),e){let{horizontal:n,vertical:i,valence:l}=s;if(n){let n=e.offsetWidth+(t.clientX-r)*l;e.style.width="".concat(n,"px"),-1===l&&n>320&&n<800&&(e.style.left="".concat(e.offsetLeft+t.clientX-r,"px"))}if(i){let n=e.offsetHeight+(t.clientY-a)*l;e.style.height="".concat(n,"px"),-1===l&&n>520&&n<800&&(e.style.top="".concat(e.offsetTop+t.clientY-a,"px"))}r=t.clientX,a=t.clientY}}return function(e){e.preventDefault(),e.stopPropagation(),r=e.clientX,a=e.clientY,document.onmouseup=i,document.onmousemove=l,n(!0)}}let A=(e,t)=>{switch(t){case"lg":return 368;case"md":return 298;default:return e}},T=e=>{let{expanded:t,children:n}=e,r=(0,l.createRef)(),i=(0,l.createRef)(),o=(0,l.createRef)(),d=(0,l.createRef)(),c=(0,l.createRef)(),u=(0,l.createRef)(),m=(0,l.createRef)(),[p,h]=(0,l.useState)(0),[x,v]=(0,l.useState)(0),[f,y]=(0,l.useState)({x:0,y:0}),[w,k]=(0,l.useState)(!1),[T,_]=(0,l.useState)(!1),{mediaBreakpoint:I}=(0,a.$c)(),L=(0,l.useCallback)(e=>{e.preventDefault(),y({x:e.clientX,y:e.clientY}),k(!0)},[f,w]),E=(0,l.useCallback)(e=>{if(!w)return;let t=f.x-e.clientX,n=f.y-e.clientY;y({x:e.clientX,y:e.clientY});let s="".concat(e.currentTarget.offsetTop-n,"px"),r="".concat(e.currentTarget.offsetLeft-t,"px");e.currentTarget.style.top=s,e.currentTarget.style.left=r},[f,w]),H=(0,l.useCallback)(()=>{k(!1),document.body.style.pointerEvents=""},[f,w]);return(0,l.useEffect)(()=>{t&&(i.current&&(i.current.onmousedown=C(r.current,v,_,{vertical:!0,valence:-1})),o.current&&(o.current.onmousedown=C(r.current,v,_,{horizontal:!0,valence:1})),d.current&&(d.current.onmousedown=C(r.current,v,_,{vertical:!0,valence:1})),c.current&&(c.current.onmousedown=C(r.current,v,_,{horizontal:!0,valence:-1})),u.current&&(u.current.onmousedown=C(r.current,v,_,{horizontal:!0,vertical:!0,valence:1})),m.current&&(m.current.onmousedown=C(r.current,v,_,{horizontal:!0,vertical:!0,valence:-1}))),!t&&r.current&&(r.current.style.top="",r.current.style.left="",r.current.style.width="",r.current.style.height="")},[i.current,t]),(0,l.useEffect)(()=>{r.current&&(v(Math.min(640,document.body.offsetWidth)),p||h(r.current.clientWidth))},[r.current]),(0,s.jsxs)(g,{expanded:t,resizing:T,ref:r,onMouseDown:L,onMouseMove:w?E:void 0,onMouseUp:H,width:x,children:[t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b,{ref:i,top:"0",left:"0",w:"100%",h:"4px",cursor:"ns-resize"}),(0,s.jsx)(b,{ref:o,top:"0",right:"0",w:"4px",h:"100%",cursor:"ew-resize"}),(0,s.jsx)(b,{ref:d,bottom:"0",left:"0",w:"100%",h:"4px",cursor:"ns-resize"}),(0,s.jsx)(b,{ref:c,top:"0",left:"0",w:"4px",h:"100%",cursor:"ew-resize"}),(0,s.jsx)(b,{ref:u,bottom:"0",right:"0",w:"12px",h:"12px",cursor:"se-resize"}),(0,s.jsx)(b,{ref:m,top:"0",left:"0",w:"m12px",h:"12px",cursor:"nw-resize"})]}),(0,s.jsx)(j,{expanded:t,children:l.Children.map(n,e=>e&&e.type===S?(0,l.cloneElement)(e,{...e.props,width:t?x-24:A(p-24,I)}):e)})]})};function _(e){let{eventId:t,modal:n,useNativeFullscreen:h,children:x}=e,{data:v}=(0,d.Ay)([r.bnp.liveActionWidget(t),"HEAD"],{fetcher:p.n}),[f,g]=(0,l.useState)(!1),[j,y]=(0,l.useState)(320),b=(0,l.createRef)(),[w,k]=(0,l.useState)(!1),C=(0,o.d4)(e=>e.locale.selectedLocale||m.Xn),A=(0,o.d4)(e=>e.locale.geoIPAlpha2),{isMobile:_}=(0,a.$c)(),I=(0,l.useMemo)(()=>{if((0,r.S$s)())return!1;let e=document.documentElement,t=e.requestFullscreen||e.webkitRequestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen;return h&&!t},[h]),L=(0,l.useCallback)(e=>{if(e){let e=b&&b.current;if(!e)return;let t=e.requestFullscreen||e.webkitRequestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&((t=t.bind(e))(),screen.orientation&&screen.orientation.lock&&screen.orientation.lock("landscape"))}else{let e=document,t=e.exitFullscreen||e.webkitExitFullscreen||e.mozExitFullScreen||e.msExitFullscreen;t&&(t=t.bind(e))()}},[b,b.current]),E=(0,l.useCallback)(()=>{g(!f),h&&L(!f)},[b,b.current,f,g]);if((0,l.useEffect)(()=>{if(f&&b.current){let e=30;90===screen.orientation.angle&&(e=200),y(b.current.offsetWidth-e)}else y(320)},[b,b.current,f,y]),(0,l.useEffect)(()=>{h&&f&&b.current&&(w||(document.removeEventListener("fullscreenchange",e),document.addEventListener("fullscreenchange",e,{once:!0}),k(!0)));function e(){!0===document.fullscreen?(y(Math.max(window.screen.width,window.screen.height)),setTimeout(()=>{y(Math.max(window.screen.width,window.screen.height))},500)):!1===document.fullscreen&&(y(320),g(!1)),document.removeEventListener("fullscreenchange",e),k(!1)}},[b,b.current,f,y,w]),!v)return null;let H=(0,s.jsx)(S,{eventId:t,ref:b,width:j,toggleButton:I?null:(0,s.jsx)(i.so,{backgroundColor:"overlay.darken2",justify:"center",align:"center",position:"absolute",h:"32px",w:"32px",top:"sm",right:"sm",borderRadius:"50%",p:"0",onClick:E,border:"none",cursor:"pointer",hoverBg:"overlay.darken1",children:(0,s.jsx)(u.L9n,{expanded:f,fill:"white"})}),options:{language:C,china:"cn"===A,mobile:_}});return n?(0,s.jsxs)(T,{expanded:f,setExpanded:g,children:[H,f&&x]}):(0,s.jsx)(c.Zp,{children:H})}let I=_},90879:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var s=n(6029),r=n(41249),a=n(90248);let i=e=>{let{id:t,textId:n,checked:i,onChange:l,team:o}=e;return(0,s.jsx)(r.Sc,{id:t,checked:i,onChange:l,children:(0,s.jsx)(r.EY,{font:"body.medium",color:"onSurface.nLv1",textTransform:o?"capitalize":void 0,children:(0,s.jsx)(a.A,{id:n,values:{team:o}})})})}},90961:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var s=n(21377);let r=[s.QCR.Badminton,s.QCR.BeachVolley,s.QCR.Darts,s.QCR.ESports,s.QCR.MMA,s.QCR.Snooker,s.QCR.TableTennis],a=e=>!r.includes(e)},91407:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var s=n(64082),r=n(6029),a=n(21377),i=n(41249);let l=e=>{var{id:t,name:n,size:l=56,style:o,className:d,grayscale:c,isFantasy:u,placeholder:m="/static/images/placeholders/player.svg"}=e,p=(0,s.T)(e,["id","name","size","style","className","grayscale","isFantasy","placeholder"]);let h=p.w||p.width||l,x=p.h||p.height||l;return(0,r.jsx)(i._V,Object.assign({fallback:(0,r.jsx)(i._V,{style:Object.assign({borderRadius:"50%"},o),w:h,h:x,src:m,alt:n}),src:t?a.qvj.image(t,u):"",alt:n,w:h,h:x,br:"50%",border:"onSurface.nLv4",style:o,className:d,isGrayscale:c},p))}},92059:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var s=n(6029),r=n(10292),a=n(21377),i=n(95083),l=n(76356),o=n(45860),d=n(65789),c=n(24159),u=n(63263);let m=e=>(t,n)=>{var s,r,a,i;return(null!=(a=null==(s=e[t.position])?void 0:s.sortIndex)?a:100)-(null!=(i=null==(r=e[n.position])?void 0:r.sortIndex)?i:100)},p=e=>{var t;let{player:n,isInverted:a,positionIcons:o}=e,d="".concat(n.firstName||""," ").concat(n.lastName||""),u=n.position?null==(t=o[n.position])?void 0:t.icon:null;return(0,s.jsxs)(l.so,{py:"sm",px:"lg",direction:a?"row-reverse":"row",gap:"lg",children:[(0,s.jsxs)(l.az,{h:"3xl",w:"3xl",position:"relative",children:[(0,s.jsx)(r.t,{id:n.id,name:d,size:40}),u&&(0,s.jsx)(l.so,{justify:"center",align:"center",position:"absolute",p:"2xs",bg:"surface.s0",br:"50%",left:a?"-sm":void 0,right:a?void 0:"-sm",bottom:"-2xs",children:(0,s.jsx)(u,{w:16,h:16,fill:"onSurface.nLv1"})})]}),(0,s.jsxs)(l.BJ,{maxW:"2/3",pt:"xs",gap:"0",children:[(0,s.jsx)(i.EY,{w:"100%",textStyle:"body.large",textAlign:a?"right":"left",color:"neutrals.nLv1",truncate:!0,children:(0,s.jsx)(c.c,{entity:n})}),(0,s.jsx)(i.EY,{w:"100%",textStyle:"body.medium",textAlign:a?"right":"left",color:"neutrals.nLv3",truncate:!0,children:d})]})]})};function h(e){let{eventId:t,eSportsType:n,hidePlayers:r,isInWidget:i}=e,{data:c}=(0,o.Ay)(r?null:a.bnp.lineups(t));if(!(!r&&c&&c.home.players.length&&c.away.players.length))return null;let h=n===a.$2C.Dota?u.Js:u.Ew,x=c.home.players.sort(m(h)),v=c.away.players.sort(m(h));return(0,s.jsxs)(d.Zp,{isInverseDesktop:i,children:[(0,s.jsx)(d.Zp.Header,{titleId:"players"}),(0,s.jsxs)(l.so,{pb:"sm",children:[(0,s.jsx)(l.az,{w:"1/2",children:x.map(e=>(0,s.jsx)(p,{player:e.player,positionIcons:h},e.player.id))}),(0,s.jsx)(l.az,{w:"1/2",children:v.map(e=>(0,s.jsx)(p,{player:e.player,positionIcons:h,isInverted:!0},e.player.id))})]})]})}},94842:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var s=n(6029);let r=e=>{let{children:t,onClick:n}=e;return(0,s.jsx)("a",{href:"https://nba.sjv.io/c/5441787/2176796/16284",target:"_blank",rel:"noopener",onClick:n,children:t})}},95868:(e,t,n)=>{"use strict";n.d(t,{MB:()=>l,Hw:()=>o,hT:()=>c,R5:()=>d});var s=n(76410),r=n(71484);let a="___sofa-wsc___",i=e=>{let t=new RegExp("".concat(a,"(.*?)").concat(a)),n=e.match(t);return n?n[1]:""},l=e=>{let{type:t,location:n,tournamentId:s,roundId:r,eventId:i,screen:l}=e;return"".concat(a).concat(l,"--").concat(t,"--").concat(n,"--").concat(s,"--").concat(r,"--").concat(i).concat(a)},o=e=>{let[t,n,s,r,a,l]=i(e||"").split("--");return{screen:t,type:n,location:s,tournamentId:Number(r),roundId:"null"===a||"undefined"===a?null:Number(a),eventId:"null"===l||"undefined"===l?null:Number(l)}},d=e=>{let{screen:t,type:n,location:s,tournamentId:a,roundId:i,eventId:l}=o(e),d="Invalid WSC widget containerId: ".concat(e);if(e&&["single","multiple"].includes(n)&&["mobile","desktop"].includes(t)&&Object.values(r.D).includes(s)){if(isNaN(Number(a)));else if(i&&isNaN(Number(i)));else if(!(l&&isNaN(Number(l))))return!0}throw Error(d)},c=e=>{var t,n;let r=null==(t=e.detail)?void 0:t.eventData,a=(null==r?void 0:r.widget_id)||(null==r?void 0:r.origin_widget_id),i=null==(n=e.detail)?void 0:n.eventType;if(i&&a){let{eventId:e,tournamentId:t,location:n}=o(a);switch(i){case"widget_click":(0,s.kA)({id:e||t,location:n});break;case"story_exit":(0,s.G9)({id:e||t,location:n,timeOnScreen:r.content_duration_viewed})}}}},96003:(e,t,n)=>{"use strict";n.d(t,{J:()=>s,x:()=>r});let s="bonus-odds-cta-seen",r="bet-boost-cta-seen"},97047:(e,t,n)=>{"use strict";n.d(t,{WG:()=>d,YL:()=>u,_z:()=>c,lE:()=>r,o_:()=>a});let s={EN:"GB",SX:"GB",WA:"GB",NX:"GB"},r=e=>e&&(s[e]||e),a=e=>{if(e)return"M"===e?"Male":"F"===e?"Female":void 0},i={en:{35:"https://en.wikipedia.org/wiki/Manchester_United_F.C.",38:"https://en.wikipedia.org/wiki/Chelsea_F.C.",1644:"https://en.wikipedia.org/wiki/Paris_Saint-Germain_F.C.",2351:"https://en.wikipedia.org/wiki/Rangers_F.C.",2687:"https://en.wikipedia.org/wiki/Juventus_F.C.",2817:"https://en.wikipedia.org/wiki/FC_Barcelona"},pt:{1963:"https://pt.wikipedia.org/wiki/Sociedade_Esportiva_Palmeiras",1966:"https://pt.wikipedia.org/wiki/Sport_Club_Internacional",5926:"https://pt.wikipedia.org/wiki/Gr%C3%AAmio_Foot-Ball_Porto_Alegrense",5981:"https://pt.wikipedia.org/wiki/Clube_de_Regatas_do_Flamengo"}},l={en:{7:"https://en.wikipedia.org/wiki/UEFA_Champions_League",8:"https://en.wikipedia.org/wiki/La_Liga",17:"https://en.wikipedia.org/wiki/Premier_League",19:"https://en.wikipedia.org/wiki/FA_Cup",23:"https://en.wikipedia.org/wiki/Serie_A",34:"https://en.wikipedia.org/wiki/Ligue_1",36:"https://en.wikipedia.org/wiki/Scottish_Premiership",328:"https://en.wikipedia.org/wiki/Coppa_Italia",329:"https://en.wikipedia.org/wiki/Copa_del_Rey",332:"https://en.wikipedia.org/wiki/Scottish_League_Cup",335:"https://en.wikipedia.org/wiki/Coupe_de_France",347:"https://en.wikipedia.org/wiki/Scottish_Cup"},pt:{325:"https://pt.wikipedia.org/wiki/Campeonato_Brasileiro_de_Futebol",373:"https://pt.wikipedia.org/wiki/Copa_do_Brasil_de_Futebol",384:"https://pt.wikipedia.org/wiki/Copa_Libertadores_da_Am%C3%A9rica"}},o={pt:{358554:"https://pt.wikipedia.org/wiki/Gabriel_Barbosa",32891:"https://pt.wikipedia.org/wiki/Mauricio_Isla",840219:"https://pt.wikipedia.org/wiki/Pedro_Guilherme_Abreu_dos_Santos",795291:"https://pt.wikipedia.org/wiki/Bruno_Henrique_Pinto",822526:"https://en.wikipedia.org/wiki/Gabriel_Batista",950454:"https://pt.wikipedia.org/wiki/Hugo_de_Souza_Nogueira",804703:"https://pt.wikipedia.org/wiki/Bruno_Viana_Willemen_da_Silva",333587:"https://pt.wikipedia.org/wiki/Giorgian_De_Arrascaeta",242213:"https://pt.wikipedia.org/wiki/Willian_Ar%C3%A3o"}},d=(e,t)=>{var n;return null==(n=i[t])?void 0:n[e]},c=(e,t)=>{var n;return null==(n=l[t])?void 0:n[e]},u=(e,t)=>{var n;return null==(n=o[t])?void 0:n[e]}},97350:(e,t,n)=>{"use strict";n.d(t,{U:()=>d});var s=n(6029),r=n(947),a=n(90248);let i=JSON.parse('{"Wins":"streak.wins","Losses":"losses","Draws":"draws","No losses":"no_losses","No wins":"noWins","No goals conceded":"noGoalsConceded","No goals scored":"noGoalsScored","Without clean sheet":"no_clean_sheet","More than 2.5 goals":{"id":"over_goals","values":{"n":2.5}},"Less than 2.5 goals":{"id":"under_goals","values":{"n":2.5}},"More than 4.5 cards":{"id":"moreThanCards","values":{"n":4.5}},"Less than 4.5 cards":{"id":"lessThanCards","values":{"n":4.5}},"More than 10.5 corners":{"id":"over_corners","values":{"n":10.5}},"Less than 10.5 corners":{"id":"lessThanCorners","values":{"n":10.5}},"Both teams scoring":"both_teams_to_score","First to score":"first_to_score","First to concede":"firstToConcede","First half winner":"firstHalfWinner","First half loser":"firstHalfLoser","First quarter winner":"firstQuarterWinner","First quarter loser":"firstQuarterLoser","Scored points average (Last 10)":{"id":"bbal_last_ten_avg_points_scored"},"Game points average (Last 10)":{"id":"bbal_last_ten_avg_game_total"},"First period winner":"firstPeriodWinner","First period loser":"firstPeriodLoser","First period both scoring":"firstPeriodBothScoring","More than 5.5 goals":{"id":"over_goals","values":{"n":5.5}},"More than 1.5 goals in first period":{"id":"moreThanGoalsInFirst","values":{"n":1.5}},"First set winner":"firstSetWinner","First set loser":"firstSetLoser","Wins (clay)":{"id":"winsSurface","values":{"surface":"Clay"}},"Wins (grass)":{"id":"winsSurface","values":{"surface":"Grass"}},"Wins (hard)":{"id":"winsSurface","values":{"surface":"Hard"}},"Wins (carpet indoor)":{"id":"winsSurface","values":{"surface":"Carpet indoor"}},"Wins (hardcourt indoor)":{"id":"winsSurface","values":{"surface":"Hardcourt indoor"}},"Wins (hardcourt outdoor)":{"id":"winsSurface","values":{"surface":"Hardcourt outdoor"}},"Wins (synthetic outdoor)":{"id":"winsSurface","values":{"surface":"Synthetic outdoor"}},"Loses (clay)":{"id":"lossesSurface","values":{"surface":"Clay"}},"Loses (grass)":{"id":"lossesSurface","values":{"surface":"Grass"}},"Loses (hard)":{"id":"lossesSurface","values":{"surface":"Hard"}},"Loses (carpet indoor)":{"id":"lossesSurface","values":{"surface":"Carpet indoor"}},"Loses (hardcourt indoor)":{"id":"lossesSurface","values":{"surface":"Hardcourt indoor"}},"Loses (hardcourt outdoor)":{"id":"lossesSurface","values":{"surface":"Hardcourt outdoor"}},"Loses (synthetic outdoor)":{"id":"lossesSurface","values":{"surface":"Synthetic outdoor"}},"Sets won":"setsWon"}');var l=n(74620),o=n(27892);let d=e=>{let{id:t}=e,n=(0,r.A)(),d=(0,o.B)(i,t);return Object.keys(d).forEach(e=>{"surface"===e&&(d[e]=n.formatMessage({id:(0,o.O)(l,d[e])}).toLowerCase())}),(0,s.jsx)(a.A,{id:(0,o.O)(i,t),values:d})}},98095:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var s=n(4967),r=n(45860);let a=e=>fetch(e,{method:"HEAD",cache:"no-store"});function i(){let{data:e,error:t,isLoading:n}=(0,r.Ay)("https://cdn.adapex.io/hb/aaw.sofascore.js",{fetcher:a,dedupingInterval:s.d_});return{isLoading:n,hasAdBlock:!!(null==e?void 0:e.redirected)||void 0!==t}}},98423:(e,t,n)=>{"use strict";n.d(t,{e:()=>r.e,p:()=>s.p});var s=n(91603),r=n(33480)},99397:(e,t,n)=>{"use strict";n.d(t,{G:()=>r.A,t:()=>s.t});var s=n(91407),r=n(12605)}}]);