!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]="2f6e2df0-b7d2-4114-a409-778efd0b9c1a",e._sentryDebugIdIdentifier="sentry-dbid-2f6e2df0-b7d2-4114-a409-778efd0b9c1a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[339,4985],{2424:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M4 2v14h16V2h2v20h-2v-4H4v4H2V2h2zm8.104.5c.707 0 1.337.118 1.9.344.572.227 1.008.57 1.337 1.014.32.452.485 1.003.485 1.662 0 .59-.136 1.131-.417 1.594-.203.324-.533.62-.989.865.33.138.62.296.844.473.349.295.6.63.736 1.003.146.384.214.787.214 1.23 0 .718-.175 1.318-.533 1.81-.36.492-.844.866-1.464 1.121-.62.256-1.318.384-2.094.384-1.23 0-2.22-.315-2.956-.925v.02c-.737-.61-1.173-1.456-1.309-2.538-.029-.108.02-.158.136-.158H9.68c.096 0 .155.05.174.158.068.502.29.885.66 1.16.358.276.89.414 1.57.414.726 0 1.26-.158 1.608-.453.35-.295.524-.688.524-1.17 0-.256-.058-.512-.184-.738a1.383 1.383 0 0 0-.601-.551c-.272-.138-.64-.207-1.105-.207h-1.474c-.106 0-.155-.049-.155-.157V7.34c0-.108.049-.157.155-.157h1.454c.553 0 .93-.138 1.164-.414.222-.275.339-.61.339-.983 0-.413-.146-.748-.446-1.004-.3-.255-.727-.383-1.29-.383-.6 0-1.075.128-1.414.383-.34.256-.553.61-.62 1.063-.03.108-.078.157-.175.157H8.178c-.107 0-.155-.05-.136-.157.146-1.053.563-1.87 1.27-2.46.708-.59 1.638-.885 2.792-.885z",fill:e.fill,fillRule:"evenodd"})}))}},4653:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(6029),l=i(41735),n=i(39895);function r(e){let t=(0,l.useTheme)();return(0,s.jsx)(n.A,Object.assign({width:24,height:24,viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",Object.assign({fill:t.colors.secondary.default,fillRule:"evenodd"},{children:[(0,s.jsx)("path",{d:"m21.746 13.238-2.37-4.092c-.303-.533-1.125-1.382-3.235-1.084a8.223 8.223 0 0 0-1.27.298c-.291.09-.89.32-1.796.686-.626.28-1.26.597-1.922.985-4.04 2.358-5.908 4.941-4.871 6.757v.018l2.36 4.083C9.07 21.629 9.839 22 10.885 22c1.466 0 3.486-.714 5.909-2.132 1.877-1.093 3.325-2.231 4.2-3.297 1.36-1.653 1.047-2.8.743-3.342l.009.009zM7.828 15.885c-.196-.353.456-2.096 4.22-4.291 2.109-1.229 3.521-1.626 4.343-1.744.975-.135 1.368.073 1.44.2.071.117.035.541-.573 1.273-.518.623-1.582 1.635-3.718 2.881-3.817 2.223-5.524 2.006-5.712 1.671v.01zm11.808-.461c-.518.623-1.582 1.635-3.718 2.881-3.817 2.223-5.524 2.006-5.712 1.672l-.778.451.769-.451-1.216-2.096c1.422-.127 3.272-.831 5.453-2.105 1.877-1.093 3.325-2.231 4.2-3.297.135-.163.233-.307.34-.46l1.234 2.122c.098.163-.045.632-.572 1.274v.009z"}),(0,s.jsx)("g",Object.assign({fill:t.colors.success.default,fillRule:"nonzero"},{children:(0,s.jsx)("path",{d:"M1 7.902c0 .059.04.098.098.098h1.064c.059 0 .098-.04.098-.098V5.549h1.595c1.31 0 2.393-.768 2.393-2.304C6.248 1.748 5.165 1 3.855 1H1.098C1.04 1 1 1.04 1 1.098v6.804zm2.865-5.72c.66 0 1.083.354 1.083 1.073 0 .738-.443 1.112-1.132 1.112H2.26V2.181h1.605zM7.134 7.902c0 .059.039.098.098.098h1.063c.06 0 .099-.04.099-.098V5.549h1.595c1.31 0 2.392-.768 2.392-2.304C12.381 1.748 11.298 1 9.99 1H7.232c-.059 0-.098.04-.098.098v6.804zm2.865-5.72c.66 0 1.083.354 1.083 1.073 0 .738-.443 1.112-1.133 1.112H8.394V2.181h1.605z"})}))]}))}))}},5276:(e,t,i)=>{i.d(t,{Ck:()=>y,PM:()=>w,RV:()=>m,Sb:()=>b});var s=i(6029),l=i(10292),n=i(21377),r=i(41249),a=i(55729),o=i(90248),d=i(65789),c=i(62859),u=i(54409),h=i(76868),p=i(70591),x=i(24159);let f={[n.evQ.Missing]:"error.default",[n.evQ.Doubtful]:"sofaSingles.value"},g=e=>{let t=f[e.type];switch(e.reason){case n.s2G.Injured:case n.s2G.Ill:return(0,s.jsx)(u.NcS,{icon:"cross",fill:t});case n.s2G.Suspended:return(0,s.jsx)(u.NcS,{icon:"suspended",fill:t});case n.s2G.YellowCard:return(0,s.jsx)(u.NcS,{icon:"card",fill:"scoreRating.s65"});case n.s2G.YellowRedCard:return(0,s.jsx)(u.NcS,{icon:"card-double-yellow"});case n.s2G.RedCard:return(0,s.jsx)(u.NcS,{icon:"card",fill:"error.default"});case n.s2G.OnLoan:return(0,s.jsx)(u.NcS,{icon:"on-loan",fill:t});case n.s2G.Other:default:return(0,s.jsx)(u.NcS,{icon:"player",fill:t})}},m=(e,t)=>t===n.s2G.OnLoan?"missingplayer.onloan":e===n.evQ.Missing?-1!==[n.s2G.Suspended,n.s2G.YellowCard,n.s2G.YellowRedCard,n.s2G.RedCard].indexOf(t)?"player_status_suspended":"injury_status_out":"injury_status_doubtful";function y(e){let{missingPlayer:t}=e,i=f[t.type];return(0,s.jsxs)(r.so,{align:"center",w:"fit-content",mt:"xs",children:[g(t),(0,s.jsx)(r.EY,{ml:2,lineHeight:"100%",font:"assistive.default",color:i,as:"div",children:(0,s.jsx)(o.A,{id:m(t.type,t.reason)})})]})}function v(e){let{missingPlayer:t,isLast:i}=e,n=(0,a.useContext)(c.Ws);return(0,s.jsx)(p.uc,{player:t.player,sportSlug:n,children:(0,s.jsxs)(r.so,{hoverBg:"surface.s2",cursor:"pointer",children:[(0,s.jsx)(r.az,{px:"lg",py:"sm",children:(0,s.jsx)(l.t,{size:40,id:t.player.id,name:t.player.name})}),(0,s.jsx)(r.so,{borderBottom:i?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:(0,s.jsxs)(r.az,{flex:"1 1 auto",children:[(0,s.jsx)(r.EY,{block:!0,font:"body.medium",color:"onSurface.nLv1",mr:"xs",children:(0,s.jsx)(x.c,{entity:t.player})}),(0,s.jsx)(y,{missingPlayer:t})]})})]})})}function j(e){let{missingPlayers:t}=e;return(null==t?void 0:t.length)?(0,s.jsx)(s.Fragment,{children:t.map((e,i)=>(0,s.jsx)(v,{missingPlayer:e,isLast:i===t.length-1},e.player.id))}):(0,s.jsx)(h.p,{graphic:"no-data",descriptionMessageId:"no_missing_players"})}function b(e){let{missingPlayers:t}=e;return(null==t?void 0:t.length)?(0,s.jsxs)(d.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(d.Zp.Header,{titleId:"injuries_and_suspensions",as:"h4"}),(0,s.jsx)(j,{missingPlayers:t}),(0,s.jsx)(d.Zp.Footer,{defaultHeight:"sm"})]}):null}function w(e){let{left:t,right:i}=e,l=t&&t.length>0,n=i&&i.length>0;return l||n?(0,s.jsxs)(d.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(d.Zp.Header,{titleId:"injuries_and_suspensions"}),(0,s.jsxs)(r.so,{pt:"sm",pb:"md",children:[(0,s.jsx)(r.az,{flex:"1 1 50%",children:(0,s.jsx)(j,{missingPlayers:t})}),(0,s.jsx)(r.cG,{mt:"sm",mb:"md",vertical:!0,mx:"sm"}),(0,s.jsx)(r.az,{flex:"1 1 50%",children:(0,s.jsx)(j,{missingPlayers:i})})]})]}):null}},5326:(e,t,i)=>{i.d(t,{EN:()=>o,Oi:()=>a,aS:()=>l,sI:()=>r,v1:()=>n});var s=i(21377);let l="goalkeeperGroup",n="goalkeepersGroup",r="G",a={[s.QCR.Football]:{summaryGroup:"rating",attackGroup:"rating",defenceGroup:"rating",passingGroup:"rating",duelsGroup:"rating",goalkeeperGroup:"rating"},[s.QCR.Basketball]:{summaryGroup:"points",pointsGroup:"points",reboundsGroup:"rebounds",otherGroup:"assists"},[s.QCR.Handball]:{playersGroup:"goals",goalkeepersGroup:"goalkeeperEfficiencyPercentage"},[s.QCR.IceHockey]:{summaryGroup:"goals",attackingGroup:"goals",defensiveGroup:"blocked",goalkeeperGroup:"goalkeeperEfficiencyPercentage",otherGroup:"plusMinus"},[s.QCR.AmericanFootball]:{passingGroup:"passingYards",rushingGroup:"rushingAttempts",receivingGroup:"receivingReceptions",defensiveGroup:"defensiveCombineTackles",interceptionsGroup:"defensiveInterceptions",fumblesGroup:"fumbleFumbles",kickingGroup:"kickingTotalPoints",puntingGroup:"puntingTotal",kickReturnsGroup:"kickReturnsTotal",puntReturnsGroup:"puntReturnsTotal"}},o={[s.QCR.Football]:["G","D","M","F"],[s.QCR.Basketball]:["G","GF","FG","F","FC","CF","C"],[s.QCR.IceHockey]:["F","C","L","R","M","D","G"],[s.QCR.AmericanFootball]:["QB","RB","WR","TE","FB","OT","OG","G","C","T","OL","SS","FS","DB","CB","NT","DT","DE","OLB","LB","ILB","DL","SAF","MLB","P","LS","K","PR"],[s.QCR.Baseball]:["P","SP","RP","CP","RHP","LHP","RHS","LHS","LHR","RHR","C","DH","PH","B","PR","BR","1B","2B","3B","SS","IF","UT","UI","LF","CF","RF","OF","UO"]}},5998:(e,t,i)=>{i.d(t,{A:()=>k});var s=i(6029),l=i(33144),n=i(21377),r=i(41249),a=i(55729),o=i(16620),d=i(48886),c=i(70591),u=i(94604),h=i(61234),p=i(91407),x=i(12605),f=i(19991),g=i(90248),m=i(62859),y=i(54409),v=i(54917),j=i(84942),b=i(73488),w=i(99326);let _=e=>{let{summary:t,type:i}=e;return(0,s.jsxs)(r.so,{align:"center",mt:"xs","data-testid":"lineups_sub_info",children:[(0,s.jsx)(b.FU,{isInjury:t.isInjury}),(0,s.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",ml:"xs",children:t.time&&"".concat(t.time,"'")}),(0,s.jsxs)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",children:[(0,s.jsx)(g.A,{id:"out"===i?"substitution.in":"substitution_out"}),": \xa0",t.forPlayer]})]})};function C(e){var t,i,l,o,d,u,h;let{player:C,onClick:k,incidents:z,hasRating:A,isLast:H,isNotStarted:M,highlightStarter:S=!0,isPlayerOfTheMatch:L}=e,P=(null==C||null==(t=C.statistics)?void 0:t.rating)?Number(C.statistics.rating):void 0,{name:I,id:R}=C.player,O=(0,a.useMemo)(()=>z?(0,w.h$)({id:C.player.id,incidents:z,useShortName:C.substitute}):{},[C,z]),T=(0,j.z)(C.player),V=(0,w.sP)(T,C.captain,!0),E=(0,a.useContext)(m.Ws),B=E===n.QCR.Cricket,G="rtl"===document.dir,F=!C.substitute&&S;return!P&&M&&C.avgRating&&(P=C.avgRating),(0,s.jsx)(c.uc,{player:C.player,onClick:k,"data-testid":"lineups_player",sportSlug:E,children:(0,s.jsxs)(r.so,{hoverBg:"surface.s2",cursor:"pointer",children:[(0,s.jsx)(r.az,{py:"xxs",children:(0,s.jsx)(r.az,{w:4,h:"100%",bg:F?"sofaSingles.value":"transparent"})}),(0,s.jsxs)(r.az,{position:"relative",pl:"md",pr:"lg",py:"sm",children:[(0,s.jsx)(p.t,{size:40,id:R,name:I}),L&&(0,s.jsx)(y.ue7,{position:"absolute",fill:(0,f.Et)(null==(i=C.statistics)?void 0:i.rating),bottom:8,left:16,w:16,h:16}),F&&(0,s.jsx)(r.az,{position:"absolute",bottom:4,left:"50%",style:{transform:G?"translateX(50%)":"translateX(-50%)"},bg:"sofaSingles.value",br:6,children:(0,s.jsx)(r.EY,{px:"6px",font:"assistive.micro",color:"surface.s1",as:"div",children:(0,s.jsx)(g.A,{id:"starter"})})})]}),(0,s.jsxs)(r.so,{borderBottom:H?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:[(0,s.jsxs)(r.az,{flex:"1 1 auto",children:[(0,s.jsxs)(r.so,{title:V,align:"center",children:[(0,s.jsxs)(r.EY,{font:"body.medium",color:"onSurface.nLv1",mr:"xs",children:[C.jerseyNumber&&(0,s.jsx)(r.az,{as:"bdi",mr:"xs","data-testid":"lineups_number",children:C.jerseyNumber}),(0,s.jsx)(r.az,{as:"span","data-testid":"lineups_name",children:V})]}),(0,s.jsx)(b.AG,{...O}),(0,s.jsx)(b.X0,{...O})]}),(null==(l=O.substitutionIn)?void 0:l.time)&&(null==(o=O.substitutionIn)?void 0:o.forPlayer)&&(0,s.jsx)(_,{summary:O.substitutionIn,type:"in"}),(null==(d=O.substitutionOut)?void 0:d.time)&&(null==(u=O.substitutionOut)?void 0:u.forPlayer)&&(0,s.jsx)(_,{summary:O.substitutionOut,type:"out"}),B&&C.position&&(0,s.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",ml:"xs",children:(0,s.jsx)(v.F,{id:C.position})})]}),A||C.avgRating?(0,s.jsx)(r.az,{"data-testid":"lineups_rating",children:P||(null==(h=O.substitutionIn)?void 0:h.time)?(0,s.jsx)(x.A,{rating:P,format:A?"box":"sideBox"}):null}):null]})]})})}function k(e){let{players:t,team:i,event:p,manager:x,incidents:f,showLastMatches:g,hasTopBorder:m,hideTeamHeader:y,highlightStarters:v=!0,hasRating:j,playerOfTheMatchId:b}=e,w=p.tournament.category.sport.slug,{openEventPlayerStatistics:_}=(0,o.d)(),k=(0,a.useCallback)(e=>t=>{(g||p.hasEventPlayerStatistics)&&(t.preventDefault(),_({event:p,player:e},d._.Lineups))},[p,t,_]),z=t.length>0,A=!!x,H=w===n.QCR.Football;return z||A?(0,s.jsxs)(r.az,{pt:"sm",pb:["sm","md"],flex:"1 1 50%",borderTop:m?"onSurface.nLv4":void 0,children:[!y&&!H&&(0,s.jsx)(c.gT,{team:i,sport:w,children:(0,s.jsxs)(r.so,{align:"center",hoverBg:"surface.s2",cursor:"pointer",children:[(0,s.jsx)(r.az,{px:"lg",py:"sm",children:(0,s.jsx)(l.p,{id:i.id,name:i.name,size:40})}),(0,s.jsx)(r.az,{children:(0,s.jsx)(r.EY,{font:"display.large",children:(0,s.jsx)(u.Rm,{team:i})})})]})}),A&&!H&&(0,s.jsx)(h.A,{manager:x,isBorderHidden:!z,incidents:null==f?void 0:f.filter(e=>e.manager)}),t.map((e,i)=>(0,s.jsx)(C,{player:e,incidents:f,hasRating:j,onClick:k(e.player),isNotStarted:p.status.type===n.XUj.NotStarted,isLast:i===t.length-1,highlightStarter:v,isPlayerOfTheMatch:b===e.player.id},e.player.id))]}):null}},10953:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(90142),l=i(6029),n=i(39895);function r(e){var{fill:t="sentiment-positive"}=e,i=(0,s.T)(e,["fill"]);return(0,l.jsx)(n.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:t},i,{children:(0,l.jsx)("path",{d:"M21 2H2v9h2V4h16v7h2V2h-1zm-9 20a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z",fill:t,fillRule:"evenodd"})}))}},12174:(e,t,i)=>{i.d(t,{f:()=>b,Y:()=>r});var s=i(21377),l=i(45860),n=i(71046);function r(e){let t=e.tournament.category.sport.slug!==s.QCR.Football||e.status.type!==s.XUj.Finished,{data:i,isLoading:r}=(0,l.Ay)(t?null:s.bnp.bestPlayersSummary(e.id),(0,n.rf)(e)),a=null==i?void 0:i.playerOfTheMatch,o=null==i?void 0:i.bestHomeTeamPlayers.find(e=>e.player.id===(null==a?void 0:a.player.id));return{isLoading:!t&&r,bestPlayer:(null==a?void 0:a.label)==="rating"?a:void 0,team:a?o?e.homeTeam:e.awayTeam:void 0}}var a=i(6029),o=i(32190),d=i(21501),c=i(41249),u=i(90248),h=i(65789),p=i(54409),x=i(61703),f=i(59754),g=i(16620),m=i(48886);function y(){return(0,a.jsx)("svg",{width:"133",height:"120",viewBox:"0 0 133 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("g",{id:"Symbols",children:(0,a.jsx)("g",{id:"Cards/Player-Of-The-Season-Card-",children:(0,a.jsxs)("g",{id:"Pattern-Left",children:[(0,a.jsx)("path",{id:"Path",d:"M56.9883 114H75.9883V133H56.9883V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsxs)("g",{id:"Group",opacity:"0.8",children:[(0,a.jsx)("path",{id:"Path_2",d:"M38 114H57V133H38V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_3",d:"M76 95.0001H95V114H76V95.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_4",d:"M95 95.0001H114V114H95V95.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_5",d:"M57 56.9998H76V76H57V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_6",d:"M95 56.9998H114V76H95V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_7",d:"M114 56.9998H133V76H114V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_8",d:"M0 0H19V19H0V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_9",d:"M57 0H76V19H57V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]}),(0,a.jsxs)("g",{id:"Group_2",opacity:"0.5",children:[(0,a.jsx)("path",{id:"Path_10",d:"M76 114H95V133H76V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_11",d:"M0 95H19V114H0V95Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_12",d:"M57 95H76V114H57V95Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_13",d:"M76 75.9999H95V94.9996H76V75.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_14",d:"M95 75.9999H114V94.9996H95V75.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_15",d:"M38 56.9998H57V75.9999H38V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_16",d:"M76 56.9998H95V75.9999H76V56.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_17",d:"M38 37.9998H57V56.9998H38V37.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_18",d:"M76 37.9998H95V56.9998H76V37.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_19",d:"M0 18.9999H19V37.9999H0V18.9999Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]})]})})})})}function v(){return(0,a.jsx)("svg",{width:"133",height:"120",viewBox:"0 0 133 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("g",{id:"Symbols",children:(0,a.jsx)("g",{id:"Cards/Player-Of-The-Season-Card-",children:(0,a.jsx)("g",{id:"Group-9",children:(0,a.jsxs)("g",{id:"Pattern-Right",children:[(0,a.jsx)("path",{id:"Path",d:"M76.0117 114H57.0117V133H76.0117V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsxs)("g",{id:"Group",opacity:"0.5",children:[(0,a.jsx)("path",{id:"Path_2",d:"M57 114H38V133H57V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_3",d:"M133 94.9998H114V114H133V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_4",d:"M76 94.9998H57V114H76V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_5",d:"M57 76.0002H38V94.9998H57V76.0002Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_6",d:"M38 76.0002H19V94.9998H38V76.0002Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_7",d:"M95 57.0001H76V75.9997H95V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_8",d:"M57 57.0001H38V75.9997H57V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_9",d:"M95 38H76V57.0001H95V38Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_10",d:"M57 38H38V57.0001H57V38Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_11",d:"M133 19H114V37.9999H133V19Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]}),(0,a.jsxs)("g",{id:"Group_2",opacity:"0.8",children:[(0,a.jsx)("path",{id:"Path_12",d:"M95 114H76V133H95V114Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_13",d:"M57 94.9998H38V114H57V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_14",d:"M38 94.9998H19V114H38V94.9998Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_15",d:"M76 57.0001H57V75.9997H76V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_16",d:"M38 57.0001H19V75.9997H38V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_17",d:"M18.9999 57.0001H0V75.9997H18.9999V57.0001Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_18",d:"M133 0H114V18.9999H133V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"}),(0,a.jsx)("path",{id:"Path_19",d:"M76 0H57V18.9999H76V0Z",fill:"var(--primary-default)",fillOpacity:"0.15"})]})]})})})})})}let j=e=>{let{bestPlayer:t,team:i}=e;return(0,a.jsxs)(c.so,{p:"lg",align:"center",justify:"space-between",children:[(0,a.jsxs)(c.so,{align:"center",children:[(0,a.jsx)(o.tg,{id:t.player.id,name:t.player.name,h:48,w:48}),(0,a.jsxs)(c.az,{ml:"sm",children:[(0,a.jsx)(c.EY,{font:"display.medium",mb:"xs",block:!0,children:t.player.name}),(0,a.jsxs)(c.so,{align:"center",children:[(0,a.jsx)(o.pY,{id:i.id,name:i.name,h:16,w:16,mr:"xs"}),(0,a.jsx)(c.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,a.jsx)(u.A,{id:i.slug,defaultMessage:i.name})})]})]})]}),(0,a.jsx)(o.GW,{rating:t.value})]})};function b(e){let{event:t}=e,{isLoading:i,bestPlayer:l,team:n}=r(t),{openEventPlayerStatistics:b}=(0,g.d)(),w=(0,f.Z)(t,"playerOfTheMatch"),_=(0,d.hX)();return t.tournament.category.sport.slug===s.QCR.Football&&t.status.type===s.XUj.Finished&&(_||i)?(0,a.jsx)(h.Zp,{isInverseDesktop:!0,children:(0,a.jsx)(c.az,{h:120})}):i||l?(0,a.jsx)(x.b,{entityId:t.id,isInverseDesktop:!0,branding:w,location:"event_potm",children:(0,a.jsxs)(c.so,{position:"relative",h:120,justify:"space-between",bg:"surface.s2",elevation:[2,void 0],br:w?"0 0 lg lg":"lg",overflow:"hidden",cursor:"pointer",onClick:()=>l&&b({event:t,player:l.player},m._.PlayerOfTheMatch),children:[(0,a.jsx)(y,{}),(0,a.jsx)(v,{}),(0,a.jsxs)(c.az,{position:"absolute",top:0,left:0,w:"100%",children:[(0,a.jsxs)(c.so,{pt:"md",px:"lg",pb:"xs",align:"center",children:[(0,a.jsx)(p.ue7,{mr:"sm",w:24,h:24,fill:(0,o.Et)(null==l?void 0:l.value)}),(0,a.jsx)(c.EY,{font:"display.medium",lineHeight:"24px",children:(0,a.jsx)(u.A,{id:"details.manOfMatch"})})]}),(0,a.jsx)(c.az,{minH:80,children:l&&n&&(0,a.jsx)(j,{bestPlayer:l,team:n})})]})]})}):null}},12275:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M12 8.5c3.72 0 6.75 3.03 6.75 6.75S15.72 22 12 22s-6.75-3.03-6.75-6.75S8.28 8.5 12 8.5zm-.03 1c-.25 0-.5.02-.74.05l1.02 1.14-1.31 2.03H8.61l-.41-1.81c-.23.2-.44.42-.64.65l.34 1.52L6.97 15h-.75c-.01.09-.01.17-.01.25 0 .17.01.35.03.52l.59.01h-.02l1.39 2.14-.35 1.34c.2.21.42.4.65.57l.37-1.42h2.18l1.68 1.68-.33.88c.29-.03.59-.07.87-.14l.17-.46 2.47-1.28.2.12c.18-.19.35-.39.5-.6l-.23-.13-.48-2.69.95-1.26.83.22.01-.01c-.03-.28-.08-.56-.14-.83l-.78-.2-.85-1.99.36-.25a5.71 5.71 0 0 0-.55-.55l-.36.25-2.33-.75-.81-.91c-.09-.01-.17-.01-.26-.01zm.87 6.14 2.34.48.4 2.28-2.27 1.18-1.61-1.6 1.14-2.34zM11 13.49l1.16 1.78-1.15 2.37H8.93l-1.37-2.1 1-2.05H11zm1.85-2.32 2.31.74.98 2.28-.87 1.16-2.47-.51-1.16-1.79 1.21-1.88zM22 2v9h-2V4H4v7H2V2h20z",fill:e.fill,fillRule:"evenodd"})}))}},12785:(e,t,i)=>{i.d(t,{Ko:()=>W,g9:()=>N});var s=i(6029),l=i(4967),n=i(41249),r=i(90248),a=i(12047),o=i(55529);function d(e){let{isNational:t,eventTimestamp:i,isHorizontalLayout:d,onTabChange:c,order:u}=e,h=(0,a.Ay)({isSportMenuVisible:!0,isInMobileTabs:!0}),p=1>(0,l.CF)(i),x=Object.values(o.kA).filter(e=>(e!==o.kA.MarketValue||!!p)&&(t?e!==o.kA.Nationality:e!==o.kA.Club));return(0,s.jsxs)(n.PI,{top:h,w:"100%",order:u,zIndex:n.Py.Sticky-1,bg:"surface.s1",children:[(0,s.jsx)(n.tU,{variant:"quaternary",initialValue:o.kA.Performance,onChange:c,children:(0,s.jsx)(n.tU.List,{px:d?void 0:"xs",py:"sm",children:x.map(e=>(0,s.jsx)(n.tU.Tab,{tabKey:e,children:(0,s.jsx)(r.A,{id:o.fP[e]})},"tab-".concat(e)))})}),!d&&(0,s.jsx)(n.cG,{})]})}var c=i(40237),u=i(21377),h=i(55729),p=i(41735),x=i(7322),f=i(34851),g=i(3518),m=i(85685),y=i(94604);let v=function(){let[e,t]=(0,h.useState)(320);return(0,h.useEffect)(()=>{t(window.innerWidth);let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e};function j(e){let{team:t,avgRating:i,teamSide:l,formation:a,jersey:d,isNotStarted:j,avgMessageId:b,avgData:w,chipType:_,order:C,isHorizontalLayout:k}=e,z=[o.kA.Age,o.kA.MarketValue,o.kA.Height].includes(_)&&w,A=v(),H="rtl"===(0,h.useContext)(p.ThemeContext).settings.textDirection;return(0,s.jsx)(n.az,{w:"100%",h:"72px",maxH:"82px",br:[void 0,"lg"],flex:k?"1 1 45%":"1 1 100%",backgroundColor:k?"surface.s2":void 0,m:k?"left"===l?H?"0 0 sm xs":"0 xs sm 0":H?"0 xs sm 0":"0 0 sm xs":void 0,p:k?"0 sm":"sm sm",order:C,children:(0,s.jsxs)(n.so,{w:"100%",h:"100%",justify:"space-between",align:"center",direction:"left"!==l&&k?"row-reverse":"row",children:[(0,s.jsxs)(n.so,{h:"100%",align:"center",direction:"left"!==l&&k?"row-reverse":"row",children:[A>360&&(0,s.jsx)(c.p,{id:t.id,size:32,m:"left"===l?"0 sm 0 0":"0 0 0 sm"}),(0,s.jsxs)(n.so,{direction:"column",gap:"xs",align:"left"!==l&&k?"flex-end":"flex-start",ml:"sm",children:[(0,s.jsxs)(n.so,{gap:"sm",align:"center",h:"100%",grow:1,children:[(0,s.jsx)(n.EY,{font:"display.medium",lineHeight:"20px",lineClamp:2,children:(0,s.jsx)(y.Rm,{team:t,short:!0})}),i&&(0,s.jsxs)(n.so,{align:"center",h:"100%",children:[(0,s.jsx)(c.G,{rating:i,format:"sideBox"}),(0,s.jsx)(x.D,{type:j?f.J.AverageRatingTeam:f.J.AverageRating,rating:i,renderImage:e=>(0,s.jsx)(c.p,{id:t.id,...e})})]})]}),z&&(0,s.jsxs)(n.so,{direction:"row",justify:"left"!==l&&k?"flex-end":"flex-start",align:"center",wrap:"wrap",children:[(0,s.jsxs)(n.EY,{font:"body.small",lineHeight:"16px",color:"onSurface.nLv3",children:[(0,s.jsx)(r.A,{id:b})," • "]}),"\xa0",(0,s.jsx)(n.EY,{font:"display.micro",fontWeight:700,lineHeight:"14px",children:_===o.kA.Age?(0,s.jsxs)(s.Fragment,{children:[w," ",(0,s.jsx)(r.A,{id:"years_short"})]}):_===o.kA.MarketValue?(0,s.jsx)(m.o,{parsedMoney:(0,u.oaz)(w)}):_===o.kA.Height?(0,s.jsx)(g.Z,{value:w,fromUnit:"cm"}):void 0})]})]})]}),(0,s.jsxs)(n.so,{minW:"56px",w:"56px",direction:"column",justify:"center",align:"center",m:"xs",children:[(0,s.jsx)(n.EY,{font:"display.small",color:"onSurface.nLv1",children:a}),(0,s.jsx)(n.so,{w:"36px",h:"36px",br:"sm",backgroundColor:"neutral.highlight",justify:"center",align:"center",children:(0,s.jsx)(n._V,{w:"28px",h:"32px",src:d,alt:"Team jersey"})})]})]})})}function b(e){let{eventStatus:t,isConfirmed:i,shareButton:l,order:a,isHorizontalLayout:o}=e;return[u.XUj.Finished,u.XUj.InProgress].includes(t)?null:(0,s.jsxs)(n.so,{order:a,pt:"md",pb:"xs",px:["sm",o?"xs":"sm"],w:"100%",justify:[l?"space-between":"center","space-between"],align:"center",children:[(0,s.jsx)(n.EY,{font:"display.medium",lineHeight:"24px",children:(0,s.jsx)(r.A,{id:i?"football_confirmed_lineups":"football_possible_lineups"})}),l]})}var w=i(95083),_=i(16620),C=i(48886),k=i(95522);let z="rgba(255, 255, 255,0.3)",A=(0,p.default)(n.so).withConfig({componentId:"sc-f78c658b-0"})(["position:relative;width:",";flex:",";max-height:","px;background-color:",";",";"],e=>e.isHorizontalLayout?"50%":"calc(100% - 16px)",e=>e.isHorizontalLayout?"1 1 50%":"1 1 ".concat(430,"px"),430,e=>e.theme.colors.graphicsTerrain.footballLineups,e=>{let t="border: 2px solid ".concat(z,";");return e.isHorizontalLayout?"rtl"===e.theme.settings.textDirection?"right"===e.side&&(t+="border-right: none;"):"left"===e.side&&(t+="border-right: none;"):"left"===e.side&&(t+="border-bottom: none;"),t}),H=(0,p.default)(n.so).withConfig({componentId:"sc-f78c658b-1"})(["z-index:",";flex:",";"," flex-direction:",";",";"],n.Py.Button,e=>e.isHorizontalLayout?"1 1 50%":"1 1 ".concat(430,"px"),e=>e.isHorizontalLayout?"height: ".concat(430,"px;"):"max-height: ".concat(430,"px;"),e=>{let t=e.isHorizontalLayout?"row":"column";return"right"===e.side&&(t=e.isHorizontalLayout?"row-reverse":"column-reverse"),t},e=>{let t="";return e.isHorizontalLayout?"rtl"===e.theme.settings.textDirection?"right"===e.side?t+="border-right: none;":t+="border-left: none;":"left"===e.side?t+="border-right: none;":t+="border-left: none;":"left"===e.side?t+="border-bottom: none;":t+="border-top: none;",t}),M=p.default.div.withConfig({componentId:"sc-f78c658b-2"})(["position:absolute;z-index:",";top:0;left:0;width:100%;height:100%;"," user-select:none;"," .goal{position:absolute;z-index:",";left:calc(50% - 80px);top:-1px;","}.center{position:absolute;z-index:",";bottom:-1px;left:calc(50% - 64px);","}.c1,.c2{position:absolute;z-index:",";top:0;}.c1{left:0;}.c2{right:0;","}.logo{position:absolute;z-index:",";bottom:16px;right:12px;}"],n.Py.Backdrop,e=>e.isHorizontalLayout&&"height: ".concat(428,"px;"),e=>"rtl"===e.theme.settings.textDirection&&e.isHorizontalLayout?"left"===e.side&&"transform: rotate(180deg);":"right"===e.side&&"transform: rotate(180deg);",n.Py.Backdrop,e=>e.isHorizontalLayout&&"\n transform-origin: top left;\n transform: translateY(160px) rotate(-90deg);\n top: calc(50% - 80px);\n left: -1px;\n ",n.Py.Backdrop,e=>e.isHorizontalLayout&&"\n transform: rotate(-90deg);\n transform-origin: top;\n top: 50%;\n right: -1px;\n left: unset;\n ",n.Py.Backdrop,e=>e.isHorizontalLayout&&"\n transform: rotate(180deg);\n top: unset;\n right: unset;\n bottom: 0;\n left: 0;\n ",n.Py.Backdrop);var S=i(10292),L=i(84942);function P(e){let{value:t,eventTimestamp:i,characteristic:a}=e;return(0,s.jsx)(n.so,{border:t?"onColor.primary":"onSurface.nLv3",minW:"24px",maxH:"16px",justify:"center",align:"center",px:"xs",bg:"surface.s1",position:"absolute",top:"34px",children:(0,s.jsx)(n.EY,{font:"assistive.default",lineHeight:"16px",color:t?void 0:"onSurface.nLv3",style:{textWrap:"nowrap"},children:t?(0,s.jsxs)(s.Fragment,{children:[a===o.kA.Age&&(0,s.jsxs)(s.Fragment,{children:[(0,l.Dr)(t,i)," ",(0,s.jsx)(r.A,{id:"years_shorter"})]}),a===o.kA.MarketValue&&(0,s.jsx)(m.o,{parsedMoney:(0,u.oaz)(t)}),a===o.kA.Height&&"number"==typeof t&&(0,s.jsx)(g.Z,{value:t,fromUnit:"cm"})]}):"-"})})}var I=i(87827),R=i(54409);let O=e=>{let{incident:t,isNumber:i}=e;return(0,s.jsx)(n.so,{br:"50%",backgroundColor:i?t.color:"onColor.primary",border:i?"onColor.primary":"neutral.highlight",h:i?"14px":"16px",w:i?"14px":"16px",justify:"center",align:"center",children:i?(0,s.jsx)(n.EY,{font:"display.micro",fontWeight:700,lineHeight:"14px",color:"onColor.primary",children:t.count}):"matchMVP"===t.name?(0,s.jsx)(R.ue7,{w:12,h:12,fill:t.color}):t.icon&&(0,s.jsx)(R.NcS,{icon:t.icon,width:12,height:12,fill:t.color})})};function T(e){let{alignment:t,incidents:i,compactDisplay:l}=e;return(0,s.jsx)(n.so,{w:"right"===t?void 0:"16px",h:"50px",position:"relative",direction:"column",maxW:"22px",minW:"16px",gap:"1px",children:i.map(e=>e.isVisible?(0,s.jsxs)(n.so,{align:"center",children:[(0,s.jsx)(O,{incident:e}),"right"===t&&e.count&&e.count>=2&&(0,s.jsx)(n.so,{position:"absolute",gap:"1px",left:l?"1px":"8px",children:(0,s.jsx)(O,{incident:e,isNumber:!0})})]},e.name):(0,s.jsx)(n.az,{h:16},e.name))})}var V=i(99326);function E(e){var t;let{player:i,incidents:l,isMatchMVP:r,lineupsType:a,compactDisplay:d,hasRating:c}=e,{playerLeftStatistics:u,playerRightStatistics:h}=(0,V.H_)(i,l,r),p=(0,V.lV)(i,a);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.so,{w:"100%",h:"100%",px:d?void 0:"3px",position:"absolute",justify:a===o.V7.Confirmed?"space-between":"flex-start",children:[u&&(0,s.jsx)(T,{alignment:"left",incidents:u}),a===o.V7.Confirmed&&h&&(0,s.jsx)(T,{alignment:"right",incidents:h,compactDisplay:d})]}),c&&(0,s.jsx)(n.so,{position:"absolute",top:"33px",children:(0,s.jsx)(I.G,{rating:p,format:"box",decimalPoints:(null==(t=i.statistics)?void 0:t.rating)?void 0:2,size:"sm",isOnColor:!0})})]})}var B=i(49519);function G(e){var t,i;let{player:l,chipType:r}=e,a=null==(i=l.player)||null==(t=i.country)?void 0:t.alpha2;return(0,s.jsxs)(n.so,{p:"xxs",br:"xxs",bg:"onColor.primary",elevation:2,justify:"center",align:"center",position:"absolute",top:"31px",children:[r===o.kA.Club&&(0,s.jsx)(B.p,{id:null==l?void 0:l.teamId,size:16}),r===o.kA.Nationality&&(a?(0,s.jsx)(B.w,{alpha2:a,size:16}):(0,s.jsx)(n.az,{w:"lg",h:"lg",bg:"surface.s2",br:"50%"}))]})}let F=e=>{var t;let{player:i,isMatchMVP:l,incidents:r,chipType:a,lineupsType:d,numberOfPlayersInRow:c,eventTimestamp:u,hasRating:p}=e,{mediaBreakpoint:x,isDesktopMedium:f}=(0,w.$c)(),[g,m]=(0,h.useState)(),y=(0,L.z)(i.player,!0),v=a===o.kA.Performance,j=[o.kA.Club,o.kA.Nationality].includes(a),b=[o.kA.Age,o.kA.MarketValue,o.kA.Height].includes(a),_=(null==r?void 0:r.filter(e=>{var t;return(null==e||null==(t=e.player)?void 0:t.id)===i.player.id&&("red"===e.incidentClass||"yellowRed"===e.incidentClass)}).length)!==0&&v;return(0,h.useEffect)(()=>{var e,t,s;switch(a){case o.kA.Age:m(null==(e=i.player)?void 0:e.dateOfBirthTimestamp);break;case o.kA.MarketValue:m(null==(t=i.player)?void 0:t.proposedMarketValueRaw);break;case o.kA.Height:m(null==(s=i.player)?void 0:s.height)}},[a]),(0,s.jsxs)(n.so,{direction:"column",align:"center",children:[(0,s.jsxs)(n.so,{position:"relative",direction:"column",justify:"center",align:"center",w:"100%",h:"100%",maxW:"68px",maxH:"52px",children:[(0,s.jsx)(n.az,{w:"40px",h:"40px",br:"50%",bg:"surface.s0",children:(0,s.jsx)(S.t,{size:40,id:null==(t=i.player)?void 0:t.id,style:{opacity:_?.5:1}})}),v&&(0,s.jsx)(E,{player:i,incidents:r,isMatchMVP:l,lineupsType:d,compactDisplay:f||"xxs"===x&&5===c,hasRating:p}),j&&(0,s.jsx)(G,{player:i,chipType:a}),b&&(0,s.jsx)(P,{value:g,eventTimestamp:u,characteristic:a})]}),(0,s.jsxs)(n.EY,{font:"table.small",lineHeight:"12px",color:"onColor.primary",align:"center",mt:"md",px:"xs",w:"100%",block:!0,children:[(0,s.jsx)(n.EY,{font:"table.small",lineHeight:"12px",color:"onColor.secondary",display:"inline-block",mr:"xxs",children:i.jerseyNumber}),i.captain?"(c) ".concat(y):y]})]})};function N(e){let{side:t,linesColor:i,isHorizontalLayout:l}=e;return(0,s.jsxs)(M,{side:t,isHorizontalLayout:l,children:[(0,s.jsx)("div",{className:"goal",children:(0,s.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 160 70",width:"160",height:"70",children:[(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"cutoffRect",children:(0,s.jsx)("rect",{x:"0",y:"1",width:"160",height:"70"})})}),(0,s.jsxs)("g",{stroke:i,fill:"transparent",strokeWidth:"2",children:[(0,s.jsx)("rect",{clipPath:"url(#cutoffRect)",x:"1",y:"0",width:"158",height:"46"}),(0,s.jsx)("rect",{clipPath:"url(#cutoffRect)",x:"42",y:"0",width:"74",height:"24"}),(0,s.jsx)("path",{d:"M 39 46 A 50 50 0 0 0 119 46"})]})]})}),(0,s.jsx)("div",{className:"c1",children:(0,s.jsx)("svg",{viewBox:"0 0 14 14",height:"14",width:"14",children:(0,s.jsx)("circle",{stroke:i,fill:"transparent",strokeWidth:"2",cx:"0",cy:"0",r:"12"})})}),(0,s.jsx)("div",{className:"c2",children:(0,s.jsx)("svg",{viewBox:"0 0 14 14",height:"14",width:"14",children:(0,s.jsx)("circle",{stroke:i,fill:"transparent",strokeWidth:"2",cx:"14",cy:"0",r:"12"})})}),(0,s.jsx)("div",{className:"center",children:(0,s.jsx)("svg",{viewBox:"0 0 128 64",width:"128",height:"64",children:(0,s.jsx)("circle",{stroke:i,fill:"transparent",strokeWidth:"2",cx:"64",cy:"64",r:"62"})})})]})}function D(e){let{teamSide:t,playerFormation:i,incidents:l,playerOfTheMatchId:r,playerCharacteristic:a,lineupsType:o,isHorizontalLayout:d,order:c,event:h,showLastMatches:x,hasRatings:f}=e,g="rtl"===(0,p.useTheme)().settings.textDirection,{openEventPlayerStatistics:m}=(0,_.d)(),{mediaBreakpoint:y,isDesktopMedium:v}=(0,w.$c)(),j=x||h.hasEventPlayerStatistics?e=>m({event:h,player:e.player},C._.Lineups):void 0,b=v||"xxs"===y&&5===i.length;return(0,s.jsxs)(A,{side:t,isHorizontalLayout:d,mx:d?0:"sm",order:c,children:[(0,s.jsx)(H,{side:t,isHorizontalLayout:d,children:i.map((e,c)=>{let p=d?t===(g?"left":"right")?"column":"column-reverse":t===(g?"right":"left")?"row":"row-reverse";return(0,s.jsx)(n.so,{flex:"1 1 auto",align:"center",justify:"space-evenly",direction:p,children:(0,s.jsx)(n.so,{w:d?void 0:"100%",h:d?"100%":void 0,justify:"space-evenly",direction:p,children:e.map(t=>(0,s.jsx)(n.so,{direction:"column",justify:"flex-start",align:"center",flex:"1 1 100%",w:b?"60px":void 0,maxW:[112,5===i.length?86:108],minW:"60px",maxH:"76px",pt:d?0:"6px",cursor:"pointer",onClick:()=>{j&&j(t)},children:(0,s.jsx)(n.az,{w:"100%",children:(0,s.jsx)(k.A,{player:j?void 0:t.player,sportSlug:u.QCR.Football,children:(0,s.jsx)(F,{player:t,isMatchMVP:t.player.id===r,incidents:l,chipType:a,lineupsType:o,numberOfPlayersInRow:e.length,eventTimestamp:h.startTimestamp,hasRating:!!f},t.player.id)},t.player.id)})},t.player.id))})},c)})}),(0,s.jsx)(N,{side:t,linesColor:z,isHorizontalLayout:d})]})}var Y=i(62859),Z=i(76410),U=i(54863);let W=(0,h.forwardRef)((e,t)=>{let{leftFormation:i,rightFormation:l,playerOfTheMatchId:r,shareButton:a}=e,{location:c,event:p,leftTeam:x,rightTeam:f}=(0,h.useContext)(Y.y$),g=p.tournament.category.sport.slug,m=p.status.type===u.XUj.NotStarted&&g===u.QCR.Football,{isDesktop:y}=(0,w.$c)(),v=y&&c===Y.cb.EventPage,[_,C]=(0,h.useState)(o.kA.Performance),[k,z]=(0,U.ax)(e.lineups);if(!i||!l)return null;let A=(0,V.ZB)(i,l,p.startTimestamp),H=e.lineups.left.players.some(e=>!!e.avgRating)||e.lineups.right.players.some(e=>!!e.avgRating),M=[...i||[],...l||[]].some(e=>e.some(e=>{var t;return null==(t=e.statistics)?void 0:t.rating})),S=p.status.type===u.XUj.NotStarted,L=g===u.QCR.Football?p.status.type===u.XUj.NotStarted?H:M:void 0,P=p.status.type===u.XUj.Finished||e.confirmed?o.V7.Confirmed:o.V7.Possible,I=[o.kA.Age,o.kA.MarketValue,o.kA.Height].includes(_);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(b,{isConfirmed:e.confirmed,eventStatus:p.status.type,shareButton:a,order:v?1:2,isHorizontalLayout:!!v}),(0,s.jsx)(d,{isNational:!!p.homeTeam.national&&!!p.awayTeam.national,eventTimestamp:p.startTimestamp,onTabChange:e=>{(0,Z.ke)({action:"click",location:"event_lineups",type:e===o.kA.MarketValue?"market_value":e}),C(e)},order:v?2:1,isHorizontalLayout:!!v})]}),(0,s.jsxs)(n.so,{ref:t,position:"relative",w:"100%",direction:v?"row":"column",justify:"space-between",wrap:"wrap",children:[(0,s.jsx)(j,{team:x,teamSide:u.cxP.Left,formation:e.lineups.left.formation,jersey:e.lineups.leftJerseyUrls.player,chipType:_,avgRating:k,avgData:I?A[_].leftTeamValue:void 0,avgMessageId:I?A[_].messageId:void 0,order:3,isHorizontalLayout:v,isNotStarted:S}),(0,s.jsx)(D,{teamSide:u.cxP.Left,playerFormation:i,incidents:e.incidents,playerOfTheMatchId:r,lineupsType:P,playerCharacteristic:_,showLastMatches:m,isHorizontalLayout:v,order:v?4:3,event:p,hasRatings:L}),(0,s.jsx)(D,{teamSide:u.cxP.Right,playerFormation:l,incidents:e.incidents,playerOfTheMatchId:r,lineupsType:P,playerCharacteristic:_,showLastMatches:m,isHorizontalLayout:v,order:v?5:4,event:p,hasRatings:L}),(0,s.jsx)(j,{team:f,teamSide:u.cxP.Right,formation:e.lineups.right.formation,jersey:e.lineups.rightJerseyUrls.player,chipType:_,avgRating:z,avgData:I?A[_].rightTeamValue:void 0,avgMessageId:I?A[_].messageId:void 0,order:v?3:5,isHorizontalLayout:v,isNotStarted:S})]})]})})},13181:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"m2 12.607 1.414 1.414L14.021 3.414 12.607 2 2 12.607zM21.26 8.79l-.07-.07c-.82-.68-2.03-.73-3.1-.68-2.68.12-5.12 1.17-7.06 3.05-1.89 1.95-2.94 4.39-3.06 7.07 0 .19-.01.37-.01.54 0 1.19.22 1.98.7 2.55l.07.07c.82.68 2.03.73 3.1.68 2.68-.12 5.12-1.17 7.06-3.05 1.89-1.95 2.94-4.39 3.06-7.08.07-1.47-.13-2.44-.68-3.1l-.01.02zm-2.49 5.47-.76.76-1.14-1.14-1.14 1.14 1.14 1.14-.76.76-1.14-1.14-1.14 1.14 1.14 1.14-.76.76-1.14-1.14-1.14 1.14-.76-.76 1.14-1.14-1.14-1.14.76-.76 1.14 1.14 1.14-1.14-1.14-1.14.76-.76 1.14 1.14 1.14-1.14-1.14-1.14.76-.76 1.14 1.14 1.14-1.14.76.76-1.14 1.14 1.14 1.14z",fill:e.fill,fillRule:"evenodd"})}))}},14532:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(90142),l=i(6029),n=i(39895);function r(e){var{fill:t="scoreRating.s65"}=e,i=(0,s.T)(e,["fill"]);return(0,l.jsx)(n.A,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:t},i,{children:(0,l.jsx)("path",{fill:t,d:"M3 1h10v14H3z",fillRule:"evenodd"})}))}},16206:(e,t,i)=>{i.d(t,{A:()=>U});var s=i(6029),l=i(41249),n=i(55729),r=i(62859),a=i(73011),o=i(9489),d=i(21377),c=i(48886),u=i(5326);let h=e=>{let t=e.statistics;for(let e=0;e0)return!0}return!1},p=(e,t,i)=>t===d.QCR.Football&&e===u.aS?i.player.position===u.sI:t===d.QCR.Handball?e!==u.v1||h(i):t===d.QCR.IceHockey?e!==u.aS||h(i):t!==d.QCR.AmericanFootball||h(i),x=(e,t)=>{var i,s,l,n,r;return!!e.value&&null!=(i=t.statistics)&&!!i[e.value]||!!e.secondaryValue&&null!=(s=t.statistics)&&!!s[e.secondaryValue]||!!e.madesValue&&null!=(l=t.statistics)&&!!l[e.madesValue]||!!e.attemptsValue&&null!=(n=t.statistics)&&!!n[e.attemptsValue]||e.replacementValue&&!!(null==(r=t.statistics)?void 0:r[e.replacementValue])},f=(e,t,i)=>i===d.QCR.AmericanFootball?Object.keys(e).filter(i=>e[i].find(e=>!!t.left.players.find(t=>x(e,t))||!!t.right.players.find(t=>x(e,t)))):Object.keys(e),g=e=>{let t={};return Object.keys(e).forEach(i=>{t[i]={stat:e[i],dir:c.U.DESC}}),t};var m=i(16620),y=i(40237),v=i(90248),j=i(69559),b=i(54409),w=i(35474),_=i(70591),C=i(94493),k=i(24159),z=i(54917),A=i(85306);let H=e=>{let{teamId:t,teamName:i}=e;return(0,s.jsx)(l.XI.Cell,{children:(0,s.jsx)(l.az,{py:"xs",px:"sm",children:(0,s.jsx)(y.p,{id:t,name:i,size:24})})})},M=e=>{let{player:t,onClick:i}=e,n=(0,j.o)(),r=n===d.QCR.Basketball&&!!t.ejected;return(0,s.jsx)(l.XI.Cell,{children:(0,s.jsx)(_.uc,{player:t,onClick:e=>i(e,t),sportSlug:n,children:(0,s.jsxs)(l.so,{direction:"column",py:"sm",px:"lg",align:"flex-start",children:[(0,s.jsx)(l.EY,{font:"body.small",color:"onSurface.nLv1",hover:!0,children:(0,s.jsx)(k.c,{entity:t})}),r&&(0,s.jsx)(l.so,{bg:"error.default",display:"inline-flex",h:12,align:"center",br:"md",px:"sm",children:(0,s.jsx)(l.EY,{font:"assistive.micro",c:"surface.s1",lineHeight:1,children:(0,s.jsx)(v.A,{id:"basketball_player_ejected_long"})})})]})})})},S=e=>{let{statistic:t,isSortBy:i,position:n}=e,r=t.configStatsKey.replacementValue,a=r&&"number"==typeof t.stats[r]?r:t.configStatsKey.value,o=(0,w.Rs)(t.stats,t.configStatsKey);return(0,s.jsxs)(l.XI.Cell,{style:{position:"relative",whiteSpace:"nowrap"},children:[(0,s.jsx)(l.az,{position:"absolute",top:0,left:0,w:"100%",h:"100%",bg:i?"surface.s2":"transparent"}),(0,s.jsx)(l.EY,{py:"sm",px:"lg",font:"body.small",color:"onSurface.nLv1",align:"center",as:"div",position:"relative",children:a===A.K.ExpectedGoals?(0,s.jsx)(s.Fragment,{children:o||"-"}):a===A.K.Rating?(0,s.jsx)(l.so,{justify:"center",children:(0,s.jsx)(y.G,{rating:t.stats[a]})}):a===A.K.Position?n?(0,s.jsx)(z.F,{id:n,short:!0}):"-":a!==A.K.Notes?o:o.split("\n").map(e=>e.length?(0,s.jsx)("div",{children:e},e):null)})]})},L=e=>{let{filteredTeamId:t,onFilterClick:i,leftTeam:n,rightTeam:r}=e;return(0,s.jsx)(l.XI.HeadCell,{w:170,maxW:170,minW:160,children:(0,s.jsxs)(l.so,{py:"md",px:"sm",gap:"sm",align:"center",justify:"center",children:[(0,s.jsxs)(l.az,{minW:"fit-content",p:"xs",br:"20px",border:t?"none":"primary.highlight",bg:t?"surface.s2":"primary.highlight",onClick:()=>i(void 0),cursor:"pointer",children:[(0,s.jsx)(y.p,{id:n.id,name:n.name,size:24,style:{verticalAlign:"top"}}),(0,s.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xs",children:"+"}),(0,s.jsx)(y.p,{id:r.id,name:r.name,size:24,style:{verticalAlign:"top"}})]}),(0,s.jsx)(l.az,{p:"xs",br:"50%",border:t===n.id?"primary.highlight":"none",bg:t===n.id?"primary.highlight":"surface.s2",onClick:()=>i(n.id),cursor:"pointer",children:(0,s.jsx)(y.p,{id:n.id,name:n.name,size:24,style:{verticalAlign:"top"}})}),(0,s.jsx)(l.az,{p:"xs",br:"50%",border:t===r.id?"primary.highlight":"none",bg:t===r.id?"primary.highlight":"surface.s2",onClick:()=>i(r.id),cursor:"pointer",children:(0,s.jsx)(y.p,{id:r.id,name:r.name,size:24,style:{verticalAlign:"top"}})})]})})},P=e=>{let{statistic:t,sortConfig:i,onColumnClick:n,sport:r}=e,a=t.configStatsKey.replacementValue,o="";o=a&&"number"==typeof t.stats[a]?a:t.configStatsKey.value;let u=i.stat.value===t.configStatsKey.value,h=u&&i.dir===c.U.ASC,p=o===A.K.Notes;return(0,s.jsx)(l.XI.HeadCell,{onClick:()=>{o!==A.K.Notes&&n(t.configStatsKey)},style:{position:"relative"},children:(0,s.jsxs)(l.az,{minW:p?124:r===d.QCR.AmericanFootball?100:void 0,p:"xs",textAlign:"center",cursor:p?"default":"pointer",children:[(0,s.jsx)(l.so,{position:"absolute",top:0,left:0,w:"100%",h:"100%",bg:u?"surface.s2":"transparent"}),(0,s.jsx)(l.so,{minH:32,align:"center",justify:"center",position:"relative",children:(0,s.jsx)(l.EY,{font:"body.small",color:"onSurface.nLv3",align:"center",children:(0,s.jsx)(C.w,{id:o})})}),(0,s.jsx)(b.Bfd,{fill:p?"transparent":u?"primary.default":"onSurface.nLv4",style:{transition:"transform 0.3s ease-in-out",transform:" rotate(".concat(180*!!h,"deg)")}})]})})};var I=i(947),R=i(99586),O=i(50677),T=i(27892),V=i(4967);let E=(e,t,i)=>{let s=[];for(let l of e.players){let n=[];for(let i of t){let{statistics:t}=l;if(!e.players.every(e=>{var t;return!i.textualDescription&&!(null==(t=e.statistics)?void 0:t[i.value])&&i.hideIfNone})&&t){let e={stats:{},configStatsKey:{...i}};if(e.stats[i.value]=i.value in t?t[i.value]:0,"minutesPlayed"===i.value&&"number"==typeof e.stats[i.value]&&(e.stats[i.value]="".concat(e.stats[i.value],"'")),i.secondaryValue&&(e.stats[i.secondaryValue]=i.secondaryValue in t?t[i.secondaryValue]:0),i.madesValue&&(e.stats[i.madesValue]=i.madesValue in t?t[i.madesValue]:0),i.attemptsValue&&(e.stats[i.attemptsValue]=i.attemptsValue in t?t[i.attemptsValue]:0),i.textualDescription){let s=Object.keys(i.textualDescription),l={};for(let e of s)l[e]=Number(t[e]||0);e.stats[i.value]=l}i.replacementValue&&"number"==typeof t[i.replacementValue]&&(e.stats[i.replacementValue]=t[i.replacementValue]),n.push(e)}}s.push({player:{...l.player,...i(l.player.id),position:l.position,ejected:l.ejected},statistics:n})}return s},B=(e,t)=>{let i={};for(let s of e)if(s.statistics){if((t===d.QCR.Football||t===d.QCR.Basketball)&&!("minutesPlayed"in s.statistics)&&!("secondsPlayed"in s.statistics))continue;let e=Number(s.statistics.totalClearance||0)+Number(s.statistics.outfielderBlock||0)+Number(s.statistics.interceptionWon||0)+Number(s.statistics.totalTackle||0),l=Number(s.statistics.duelWon||0)+Number(s.statistics.duelLost||0),n=Number(s.statistics.aerialWon||0)+Number(s.statistics.aerialLost||0),r=l-n,a=s.statistics.aerialWon||l-r-Number(s.statistics.aerialLost||0),o=s.statistics.groundWon||Number(s.statistics.duelWon)-Number(a),c=Number(s.statistics.faceOffTaken||0),u=Number(s.statistics.kickingFgAttempts||0),h=s.statistics.minutesPlayed,p="-";!h&&s.statistics.secondsPlayed&&(t===d.QCR.IceHockey?p=(0,V.OV)(Number(s.statistics.secondsPlayed)):h=Math.floor(Number(s.statistics.secondsPlayed)/60));let x=0;"number"==typeof s.statistics.saves&&"number"==typeof s.statistics.gkShots&&s.statistics.gkShots>0&&(x=Number(s.statistics.saves)/Number(s.statistics.gkShots)*100),"number"==typeof s.statistics.saves&&"number"==typeof s.statistics.shotsAgainst&&s.statistics.shotsAgainst>0&&(x=Number(s.statistics.saves)/Number(s.statistics.shotsAgainst)*100);let f=0;"number"==typeof s.statistics.goals&&"number"==typeof s.statistics.shotsTaken&&s.statistics.shotsTaken>0&&(f=Number(s.statistics.goals)/Number(s.statistics.shotsTaken)*100);let g=0;(0,w.Kk)(s.statistics)&&(g=(0,w.C2)(s.statistics)),i[s.player.id]={...s,statistics:{...s.statistics,totalDefensiveActions:e,totalDuels:l,totalAerialDuels:n,totalGroundDuels:r,aerialWon:a,groundWon:o,duelWon:s.statistics.duelWon||0,minutesPlayed:h,timeOnIce:p,faceOffTakenOnly:c,kickingFg:u,goalkeeperEfficiencyPercentage:x,shotAccuracy:f,position:s.position||0,passingRating:g}}}return i},G=(e,t,i)=>{for(let s of e.statistics)if(s.configStatsKey.textualDescription)for(let e of Object.keys(s.configStatsKey.textualDescription))s.configStatsKey.textualDescription[e]=t.formatMessage({id:(0,T.O)(O,e,i)});return e},F=(e,t,i,s,l,a)=>{let{event:o,leftTeam:d,rightTeam:c}=(0,n.useContext)(r.y$),u=(0,I.A)(),h=o.tournament.category.sport.slug,x={},f={},g=(e,t)=>{a&&a!==t.id||(x[e.player.id]={teamId:t.id,teamName:t.name},f[e.player.id]=e)};s.left.players.forEach(e=>g(e,d)),s.right.players.forEach(e=>g(e,c));let m=B(Object.values(f),h);return E({players:Object.values((0,R.C)(m,e,l,h))},i,e=>x[e]).filter(e=>p(t,h,e)).map(e=>G(e,u,h))};var N=i(71046);let D=e=>{let{sortConfig:t,updateSortStatistic:i,filteredTeamId:a,onFilterClick:o,defaultSortStat:d,stats:u,lineups:h,groupName:p}=e,{event:x,leftTeam:f,rightTeam:g}=(0,n.useContext)(r.y$),{openEventPlayerStatistics:y}=(0,m.d)(),v=(e,t)=>{e.preventDefault(),x.hasEventPlayerStatistics&&y({event:x,player:t},c._.PlayerStats)},j=F(t,p,u,h,d,a);return j.length?(0,s.jsxs)(l.XI,{w:"100%",children:[(0,s.jsx)(l.XI.Head,{children:(0,s.jsxs)(l.XI.Row,{children:[(0,s.jsx)(l.XI.HeadCell,{maxW:40,w:40,children:(0,s.jsx)(l.az,{w:40,h:24})}),(0,s.jsx)(L,{filteredTeamId:a,onFilterClick:o,leftTeam:f,rightTeam:g}),j[0].statistics.map(e=>(0,s.jsx)(P,{sport:(0,N.c5)(x),statistic:e,sortConfig:t,onColumnClick:()=>i(e.configStatsKey,p)},e.configStatsKey.value))]})}),(0,s.jsx)(l.XI.Body,{children:j.map(e=>(0,s.jsxs)(l.XI.Row,{children:[(0,s.jsx)(H,{teamId:e.player.teamId,teamName:e.player.teamName}),(0,s.jsx)(M,{player:e.player,onClick:v}),e.statistics.map(i=>(0,s.jsx)(S,{statistic:i,isSortBy:i.configStatsKey.value===t.stat.value,position:e.player.position},i.configStatsKey.value))]},e.player.id))})]}):null};var Y=i(71306);let Z=(e,t)=>{let i=(0,n.useMemo)(()=>{let i={};return Object.keys(u.Oi[e]).forEach(s=>{let l=u.Oi[e][s];i[s]=t[s].find(e=>e.value===l)||t[s][0]}),i},[e]),[s,l]=(0,n.useState)(()=>g(i));return{defaultSorts:i,sortConfigs:s,updateSortStatistic:(e,t)=>{l(i=>({...i,[t]:(0,Y.I)(i[t],e)}))}}},U=e=>{let{lineups:t}=e,i=(0,n.useContext)(r.Ws),d=(0,a.nm)(i),c=f(d,t,i),[u,h]=(0,n.useState)(c[0]),[p,x]=(0,n.useState)(),{defaultSorts:g,sortConfigs:m,updateSortStatistic:y}=Z(i,d),v=(0,n.useCallback)(e=>x(e),[]);return c?(0,s.jsxs)(l.tU,{variant:"tertiary",initialValue:0,value:u||0,onChange:e=>h(e),children:[(0,s.jsx)(l.so,{px:"lg",pt:"sm",mb:"sm",align:"center",rowGap:"xs",wrap:"wrap",children:c.map(e=>(0,s.jsx)(l.tU.Tab,{ml:0,mr:"xs",mb:"sm",tabKey:e,children:(0,s.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv1",textTransform:"capitalize",children:(0,s.jsx)(o.R,{id:e})})},e))}),c.map(e=>(0,s.jsx)(l.tU.Panel,{tabKey:e,children:(0,s.jsx)(l.az,{pb:"lg",children:(0,s.jsx)(l.az,{style:{overflowX:"auto"},children:(0,s.jsx)(D,{sortConfig:m[e],updateSortStatistic:y,defaultSortStat:g[e],filteredTeamId:p,onFilterClick:v,stats:d[e],lineups:t,groupName:e})})})},e))]}):null}},18682:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M18.2665289,14.9148591 L19.25,15.4927746 L19.25,17.2554169 L17.5,20.7518056 L14,22.5 L13.1756198,22.5 L16.4008264,19.0902986 L18.2665289,14.9148591 Z M17.1818182,14.6836929 L15.5330579,18.4256958 L12.6549587,21.5464394 L10.3698347,22.4422085 L7.62190083,21.0696591 L9.28512397,20.708462 L12.2210744,18.136738 L13.9710744,14.6836929 L17.1818182,14.6836929 Z M6.73966942,10.7683154 L6.2768595,13.0799774 L8.56198347,16.8942197 L10.731405,17.9922591 L8.77892562,19.7115577 L6.69628099,20.1594422 L5.25,17.2554169 L5.25,13.7590281 L6.73966942,10.7683154 Z M10.4710744,8.51444789 L10.2541322,10.6238366 L12.9008264,14.3802873 L11.5268595,17.1831774 L9.34297521,16.0706901 L7.4338843,12.8921549 L8.05578512,9.72806754 L10.4710744,8.51444789 Z M16.1115702,11.0428253 L18.3243802,11.9241464 L19.25,13.7590281 L19.25,14.2358084 L18.1652893,13.6001014 L13.6818182,13.6001014 L11.8739669,11.0428253 L16.1115702,11.0428253 Z M22,2 L22,11 L20,11 L20,4 L4,4 L4,11 L2,11 L2,2 L22,2 Z M14,8.5 L17.4855372,10.2626394 L17.5867769,10.4649098 L16.4152893,10.0025774 L11.411157,9.95923374 L11.5557851,8.5 L14,8.5 Z",id:"Colored-Shape",fill:e.fill})}))}},20191:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(90142),l=i(6029),n=i(39895);function r(e){var{fill:t="primary.default"}=e,i=(0,s.T)(e,["fill"]);return(0,l.jsx)(n.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:t},i,{children:(0,l.jsx)("path",{d:"M19 12v5l-2 2H7v3H6l-4-4 4-4h1v3h10v-5h2zM18 2l4 4-4 4h-1V7H7v5H5V7l2-2h10V2h1z",fill:t,fillRule:"evenodd"})}))}},22835:(e,t,i)=>{i.d(t,{M:()=>a});var s=i(21377),l=i(4967),n=i(52839),r=i(86679);let a=e=>{let t=t=>e.status.type===s.XUj.NotStarted&&e.season&&e.tournament.uniqueTournament&&e.seasonStatisticsType&&n.u.includes(e.tournament.category.sport.slug)?s.cWY.topPlayers(t,e.tournament.uniqueTournament.id,e.season.id,e.seasonStatisticsType):void 0,i=t(e.homeTeam.id),a=t(e.awayTeam.id),{hasHome:o,hasAway:d}=(0,r.A)({hasHome:{route:t(e.homeTeam.id),skipCheck:!i,deduplicationInterval:15*l.pY},hasAway:{route:t(e.awayTeam.id),skipCheck:!a,deduplicationInterval:15*l.pY}},[i,a]);return{hasPregameTopPlayers:!!o&&!!d,couldHavePregameTopPlayers:!1!==o&&!1!==d&&!!i&&!!a}}},23147:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M4 2v14h16V2h2v20h-2v-4H4v4H2V2h2zm8.922.5c.111 0 .162.05.162.162v11.176c0 .111-.05.162-.162.162h-1.748c-.111 0-.162-.05-.162-.162V6.047h-1.95c-.111 0-.162-.05-.162-.162V4.268c0-.11.05-.161.162-.161h1.233c.232 0 .414-.06.545-.182.132-.121.202-.303.202-.566v-.697c0-.111.05-.162.162-.162z",fill:e.fill,fillRule:"evenodd"})}))}},23695:(e,t,i)=>{i.d(t,{K:()=>F});var s=i(6029),l=i(32523),n=i(21377),r=i(4967),a=i(95083),o=i(41249),d=i(55729),c=i(90248),u=i(45860),h=i(65789),p=i(62859),x=i(54409),f=i(7263),g=i(76356),m=i(28446),y=i(90112),v=i(9127),j=i(8703),b=i(67717),w=i(65078),_=i(44259);function C(e){let{selectedPlayer:t,setSelectedPlayer:i,showSubstitutes:l,substitutionIds:n,setShowSubstitutes:r,selectedSide:a,players:u}=e,{event:h}=(0,d.useContext)(p.y$),x=Array.from(n).reduce((e,t)=>{let i=u.find(e=>e.player.id===t);return i?[...e,i]:e},[]),f=(null==t?void 0:t.id)&&n.has(t.id);return(0,d.useEffect)(()=>{f&&!l&&r(!0)},[t]),(0,s.jsxs)(o.so,{br:"24",h:"92",mb:"xs",align:"flex-start",direction:"column",children:[(0,s.jsx)(o.Sc,{px:"lg",name:"showSubstitutes-".concat(h.id),onChange:e=>{let t=e.currentTarget.checked;r(t),(!t&&f||t&&!f)&&i(void 0)},checked:l,style:{overflow:"hidden"},boxColor:"onColor.primary",children:(0,s.jsx)(o.EY,{color:"onColor.primary",children:(0,s.jsx)(c.A,{id:"show_substitutions"})})}),(0,s.jsx)(o.tR,{buttonVariant:o.oK.ButtonVariant.Unshielded,overflowCheckDeps:x.map(e=>e.player.id),containerProps:{w:"100%"},children:(0,s.jsx)(o.so,{px:"lg",w:"fit-content",align:"center",h:44,children:(0,s.jsx)(y.N,{initial:!1,children:x.map(e=>{let{player:l,jersey:n,fillColor:r,numberColor:a,hasLowPoints:d}=e;return(0,s.jsx)(v.m.div,{initial:{opacity:0},animate:{opacity:(0,_.cl)(d,!!t,(null==t?void 0:t.id)===l.id)},exit:{opacity:0},transition:{duration:.2},onClick:()=>i(l),style:{cursor:"pointer"},children:(0,s.jsx)(o.so,{align:"center",p:"xs",w:"32",h:"32",br:"50%",ml:"xs",textAlign:"center",justify:"center",bg:r,style:{pointerEvents:"none",userSelect:"none"},children:(0,s.jsx)(o.EY,{font:"display.medium",color:a,children:n})})},l.id)})},a)})})]})}var k=i(10292),z=i(24159);function A(e){let{selectedPlayer:t,players:i,setSelectedPlayer:l}=e;return t?(0,s.jsx)(o.so,{position:"absolute",justify:"center",w:"100%",bottom:0,children:(0,s.jsxs)(o.so,{br:"xl",h:"48",mb:"xs",mx:"sm",bg:"surface.sp",py:"sm",pl:"xs",pr:"md",w:"100%",maxW:344,align:"center",justify:"space-between",onClick:()=>l(void 0),cursor:"pointer",children:[(0,s.jsxs)(o.so,{align:"center",children:[(0,s.jsx)(k.t,{size:40,id:t.id}),(0,s.jsxs)(o.az,{pl:"md",children:[(0,s.jsx)(o.EY,{block:!0,font:"display.medium",color:"onSurface.nLv1",children:(0,s.jsx)(z.c,{entity:t})}),i.find(e=>{let{player:i,hasLowPoints:s}=e;return i.id===t.id&&s})&&(0,s.jsx)(o.EY,{font:"assistive.default",color:"onSurface.nLv3",mt:"xxs",children:(0,s.jsx)(c.A,{id:"low_player_involvement"})})]})]}),(0,s.jsx)(o.$n,{w:"36",h:"36",p:"0",variant:"unshielded",children:(0,s.jsx)(x.zQC,{icon:"close",fill:"onSurface.nLv1"})})]})}):null}var H=i(41735),M=i(5961),S=i(94497);let L=(0,H.default)(o.az).withConfig({componentId:"sc-d817f2df-0"})(["canvas{transform:rotate(-90deg) translate(-70px,-70px) scale(1,-1);animation:"," 200ms ease-in-out 1;}"],S.qG),P={WIDTH:280,HEIGHT:420},I=e=>{let{heatmap:t,heatmapTransform:i,eventId:l,theme:n,isLineupsBackground:r}=e,a="".concat(l,"-avg-positions");return((0,d.useEffect)(()=>{t&&(0,M.IJ)(t,{containerId:a,width:P.HEIGHT-16,height:P.WIDTH-16},n,r)},[t,a]),t)?(0,s.jsx)(L,{id:a,position:"absolute",w:P.WIDTH-16,h:P.HEIGHT-16,top:"sm",left:"sm",style:{transform:i,overflow:"hidden"}}):null},R=e=>{let{eventId:t,heatmap:i,heatmapTransform:l,children:n,isLineupsBackground:r,...a}=e,d=(0,H.useTheme)(),c=d.colors;return(0,s.jsxs)(o.az,{position:"relative",m:"auto",w:P.WIDTH,h:P.HEIGHT,children:[(0,s.jsx)("svg",{style:{position:"absolute",top:0,left:0},width:P.WIDTH,height:P.HEIGHT,viewBox:"0 0 ".concat(P.WIDTH," ").concat(P.HEIGHT),xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,s.jsx)("rect",{fill:c.graphicsTerrain.footballLineups,width:P.WIDTH,height:P.HEIGHT,rx:"4"})})}),(0,s.jsx)(I,{heatmap:i,heatmapTransform:l,theme:d,eventId:t,isLineupsBackground:r}),(0,s.jsx)("svg",{style:{position:"absolute",top:0,left:0},width:P.WIDTH,height:P.HEIGHT,viewBox:"0 0 ".concat(P.WIDTH," ").concat(P.HEIGHT),xmlns:"http://www.w3.org/2000/svg",...a,children:(0,s.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M9.333 9.333h261.333V210H9.333z"}),(0,s.jsx)("path",{d:"M168 210c0-15.464-12.536-28-28-28s-28 12.536-28 28M72.333 9.333h135.333V70H72.333zM116.667 70c.365.655.752 1.295 1.164 1.915C122.693 79.216 130.809 84 140 84c9.195 0 17.315-4.787 22.175-12.095A28.66 28.66 0 0 0 163.333 70",stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M107.333 9.333h65.333V28h-65.333z"}),(0,s.jsx)("circle",{cx:"2.333",cy:"2.333",r:"2.333",transform:"translate(137.667 51.333)",fill:c.onColor.primary}),(0,s.jsx)("path",{d:"M9.333 18.667a9.333 9.333 0 0 0 9.334-9.334M261.333 9.333a9.333 9.333 0 0 0 9.334 9.334",stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M9.333 410.667h261.333V210H9.333z"}),(0,s.jsx)("path",{d:"M168 210c0 15.464-12.536 28-28 28s-28-12.536-28-28M72.333 410.667h135.333V350H72.333zM116.667 350c.365-.655.752-1.295 1.164-1.915C122.693 340.784 130.809 336 140 336c9.195 0 17.315 4.787 22.175 12.095.41.618.795 1.254 1.158 1.905",stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsx)("path",{stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round",d:"M107.333 410.667h65.333V392h-65.333z"}),(0,s.jsx)("circle",{cx:"2.333",cy:"2.333",r:"2.333",transform:"matrix(1 0 0 -1 137.667 368.667)",fill:c.onColor.primary}),(0,s.jsx)("path",{d:"M9.333 401.333a9.333 9.333 0 0 1 9.334 9.334M261.333 410.667a9.333 9.333 0 0 1 9.334-9.334",stroke:c.onColor.primary,strokeWidth:"2",strokeLinejoin:"round"})]}),(0,s.jsx)("g",{children:n})]})})})]})};var O=i(54863);let T=e=>{let{style:t}=e;return(0,s.jsx)(g.az,{position:"absolute",top:"[43px]",borderLeft:"12px solid transparent",borderRight:"12px solid transparent",borderBottom:"8px solid",borderBottomColor:"graphics.terrain.footballLineups",style:t})},V={left:{group:void 0,text:(0,_.$8)()?"translate(0 4)":void 0,heatmap:"scale(1, -1)"},right:{group:"matrix(-1 0 0 -1 0 0), translate(-".concat(P.WIDTH," -").concat(P.HEIGHT,")"),text:"scale(-1 -1) ".concat((0,_.$8)()?"translate(0 4)":""),heatmap:"scale(-1, 1)"}},E=(0,m.A)().domain([0,100]).range([8,P.WIDTH-8]),B=(0,m.A)().domain([0,100]).range([8,P.HEIGHT-8]);function G(){let{event:e,location:t}=(0,d.useContext)(p.y$),[i,r]=(0,d.useState)(n.cxP.Left),[a,o]=(0,d.useState)(!1),[c,h]=(0,d.useState)(void 0),[{group:x,text:f,heatmap:m},k]=(0,d.useState)(V[i]),z=t===p.cb.Widget,{data:H,error:M}=(0,u.Ay)(n.bnp.averagePositions(e.id),(0,j.rf)(e)),{data:S}=(0,u.Ay)(c?n.bnp.playerHeatmap(e.id,c.id):null),[L,P]=(0,w.jr)(H,"home","away"),{lineups:I,error:G}=(0,O.Ir)();(0,d.useLayoutEffect)(()=>{k(V[i]),h(void 0),o(!1)},[i]);let F="left"===i?L:P;if(!H)return(0,s.jsx)(l.E,{uniqueKey:"average-position-cl",br:"lg",h:"420"});if(M||G)return null;let N={in:new Set,out:new Set},D=H.substitutions.sort((e,t)=>{var i,s;return(null!=(i=e.time)?i:0)-(null!=(s=t.time)?s:0)});for(let e=0;e({x:E(e.averageY),y:B(e.averageX),jersey:Y[i].get(e.player.id),player:e.player,hasLowPoints:(0,_.XU)(e.pointsCount),...(0,_.jM)(e.player,null==I?void 0:I[i])}))),U=e=>()=>{(null==c?void 0:c.id)===e.id?h(void 0):h(e)};return(0,s.jsxs)(g.az,{children:[(0,s.jsxs)(g.so,{w:"100%",gap:"sm",align:"center",justify:"center",position:"relative",children:[(0,s.jsx)(b.n,{w:"100%",p:"sm",gap:"sm",activeTeam:i,onTeamClick:r,isBackgroundInverse:z}),i===n.cxP.Left?(0,s.jsx)(T,{style:{left:"calc(25% - 10px)"}}):(0,s.jsx)(T,{style:{right:"calc(25% - 10px)"}})]}),(0,s.jsxs)(g.az,{position:["initial","relative"],bg:"graphics.terrain.footballLineups",m:"auto",textAlign:"center",pt:"sm",pb:"4xl",children:[(0,s.jsx)(C,{selectedPlayer:c,setSelectedPlayer:h,substitutionIds:N.in,showSubstitutes:a,setShowSubstitutes:o,selectedSide:i,players:Z}),(0,s.jsx)(g.az,{position:"relative",children:(0,s.jsx)(R,{eventId:e.id,heatmap:null==S?void 0:S.heatmap,heatmapTransform:m,isLineupsBackground:!0,children:(0,s.jsx)("g",{transform:x,textAnchor:"middle",fontSize:"16px",fontWeight:"700",fontFamily:"'Sofascore Sans', sans-serif",children:(0,s.jsxs)(y.N,{children:[(0,s.jsxs)(v.m.g,{fill:"white",initial:{opacity:0},animate:{opacity:.5},transform:"translate(136 136)",children:[(0,s.jsx)("rect",{width:"8",height:"116"}),(0,s.jsx)("path",{d:"M16 8 4 16V0zM0 6h4v4H0z",transform:"translate(0 116), rotate(90), scale(2)",style:{transformOrigin:"4px 8px"}})]},i),Z.map(e=>{let{x:t,y:i,player:l,fillColor:n,hasLowPoints:r}=e;return(a?N.out.has(l.id):N.in.has(l.id))?null:(0,s.jsx)(v.m.circle,{initial:{opacity:0,r:0},animate:{opacity:(0,_.cl)(r,!!c,l.id===(null==c?void 0:c.id)),r:16},transition:a&&!c?{delay:.2}:void 0,fill:n,cx:t,cy:i,style:{cursor:"pointer"},onClick:U(l)},l.id+"circle")}),Z.map(e=>{let{x:t,y:i,player:l,jersey:n,numberColor:r,hasLowPoints:o}=e;return(a?N.out.has(l.id):N.in.has(l.id))?null:(0,s.jsx)(v.m.text,{initial:{opacity:0},animate:{opacity:(0,_.cl)(o,!!c,l.id===(null==c?void 0:c.id))},transition:a&&!c?{delay:.2}:void 0,x:t,y:i+1,style:{transformOrigin:"".concat(t,"px ").concat(i,"px"),zIndex:1,cursor:"pointer"},transform:f,fill:r,alignmentBaseline:"middle",onClick:U(l),children:n},l.id+"txt")})]})})})}),(0,s.jsx)(A,{selectedPlayer:c,setSelectedPlayer:h,players:Z})]})]})}function F(){let{event:e,location:t}=(0,d.useContext)(p.y$),[i,g]=(0,d.useState)(!1),{isDesktop:m}=(0,a.$c)(),{data:y}=(0,u.Ay)([n.bnp.averagePositions(e.id),"HEAD"],{fetcher:f.n}),v=25>(0,r.Ui)(Date.now(),e.startTimestamp,"minutes"),j=m&&t===p.cb.EventPage,b=j||v,w=!1;return(y?w=!0:e.status.type===n.XUj.InProgress&&(w=v&&1===e.detailId),w)?(0,s.jsxs)(h.Zp,{isInverseDesktop:!0,children:[b&&(0,s.jsxs)(o.so,{onClick:()=>{v||g(!i)},align:"center",cursor:v?"default":"pointer",hoverBg:v?void 0:"surface.s0",br:"lg",p:"md",children:[(0,s.jsx)(o.az,{mr:"md",h:"32",w:"24",children:(0,s.jsx)(x.uEu,{fill:"graphicsTerrain.football"})}),(0,s.jsxs)(o.so,{direction:"column",children:[(0,s.jsx)(o.EY,{font:"display.small",color:"primary.default",children:(0,s.jsx)(c.A,{id:"players_average_positions"})}),v&&(0,s.jsx)(o.EY,{mt:"xxs",font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(c.A,{id:"average_positions_available_when"})})]})]}),v?null:j?(0,s.jsxs)(o.aF,{isOpen:i,onClose:()=>g(!1),w:"400",children:[(0,s.jsx)(o.EY,{as:"h3",align:"center",font:"display.large",color:"onSurface.nLv1",mb:"md",children:(0,s.jsx)(c.A,{id:"players_average_positions"})}),(0,s.jsx)(o.az,{br:"lg",overflow:"hidden",children:(0,s.jsx)(G,{})})]}):(0,s.jsxs)(o.az,{children:[(0,s.jsx)(o.EY,{as:"h3",align:"center",font:"display.large",color:"onSurface.nLv1",mb:0,children:(0,s.jsx)(c.A,{id:"players_average_positions"})}),(0,s.jsx)(o.az,{br:"0 0 lg lg",overflow:"hidden",children:(0,s.jsx)(G,{})})]})]}):void 0===y&&1===e.detailId&&e.status.type!==n.XUj.NotStarted?(0,s.jsx)(o.az,{children:(0,s.jsx)(l.E,{uniqueKey:"average-position-container-cl",h:56})}):null}},24985:(e,t,i)=>{i.d(t,{Vj:()=>l.A,g9:()=>s.g9,Ir:()=>n.Ir});var s=i(12785);i(75318),i(23695),i(31130),i(61777);var l=i(27778),n=i(54863);i(55529)},26624:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M14.07 8.19c2.14-.31 2.99.56 3.31 1.11l2.33 3.99c1.04 1.81-.75 4.23-4.91 6.63-2.4 1.39-4.41 2.09-5.88 2.09-1.08 0-1.87-.38-2.31-1.14l-2.32-3.98c-.01-.01-.01-.02-.01-.02-.32-.56-.64-1.73.69-3.43.87-1.11 2.31-2.26 4.15-3.32 1.84-1.06 3.56-1.73 4.95-1.93zm2.8 4.19c-.08.11-.14.2-.23.31-.87 1.05-2.31 2.17-4.17 3.24-2.06 1.2-3.84 1.88-5.23 2.05l1.1 1.89-.86.5.87-.5c.14.24 1.8.44 5.46-1.68v-.01c3.67-2.12 4.32-3.65 4.18-3.89zm-1.2-2.07c-.06-.1-.45-.26-1.3-.14-.8.12-2.18.5-4.24 1.69-2.06 1.18-3.08 2.19-3.58 2.82-.53.67-.58 1.1-.53 1.19h.01c.14.24 1.8.44 5.46-1.68 2.09-1.2 3.13-2.18 3.63-2.78.58-.69.58-1.05.55-1.1zM22 2v9h-2V4H4v7H2V2h20z",fill:e.fill,fillRule:"evenodd"})}))}},27778:(e,t,i)=>{i.d(t,{A:()=>x});var s=i(6029),l=i(21377),n=i(95083),r=i(21501),a=i(41249),o=i(55729),d=i(65789),c=i(62859),u=i(69559),h=i(56008),p=i(22835);function x(){let e=(0,u.o)(),{event:t,location:i,initialHasLineups:x}=(0,o.useContext)(c.y$),{couldHavePregameTopPlayers:f}=(0,p.M)(t),{isDesktop:g}=(0,n.$c)(),m=g&&i===c.cb.EventPage,y=(0,r.hX)();return e!==l.QCR.Football&&f?(0,s.jsx)(h.A,{}):y&&!x?null:m?(0,s.jsx)(d.Zp,{children:(0,s.jsxs)(a.az,{display:["none","block"],children:[(0,s.jsx)(a.az,{h:46}),(0,s.jsx)(a.az,{h:48}),(0,s.jsxs)(a.so,{pb:"sm",px:"sm",gap:"sm",children:[(0,s.jsx)(a.az,{h:72,w:"50%",bg:"surface.s2",br:"lg"}),(0,s.jsx)(a.az,{h:72,w:"50%",bg:"surface.s2",br:"lg"})]}),(0,s.jsx)(a.az,{h:432,bg:"surface.s2",mx:"sm"}),(0,s.jsx)(a.az,{h:56,m:"sm",bg:"surface.s2",br:"lg"}),(0,s.jsx)(a.az,{h:240})]})}):(0,s.jsx)(a.az,{display:["block","none"],h:946})}},27974:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M7 14v3h3v2H7v3H6l-4-4 4-4h1zm10-2c2.76 0 5 2.24 5 5s-2.24 5-5 5-5-2.24-5-5 2.24-5 5-5zm.58 1.5h-1.13v3.969l2.403 2.397.797-.797-2.07-2.07V13.5zM18 2l4 4-4 4h-1V7H6v5H4V7l2-2h11V2h1z",fill:e.fill,fillRule:"evenodd"})}))}},30182:(e,t,i)=>{i.d(t,{m:()=>x});var s=i(6029),l=i(10292),n=i(41249),r=i(55729),a=i(65789),o=i(5276),d=i(70591),c=i(24159),u=i(41078);function h(e){let{missingPlayer:t,left:i,first:r}=e;return t?(0,s.jsxs)(n.so,{h:56,w:"100%",align:"center",direction:i?"row":"row-reverse",gap:"lg",overflow:"hidden",pl:i?"lg":0,pr:i?0:"lg",cursor:"pointer",hoverBg:"surface.s2",children:[(0,s.jsx)(l.t,{size:40,id:t.player.id,style:{display:"block"}}),(0,s.jsxs)(n.so,{overflow:"hidden",direction:"column",justify:"center",align:i?"flex-start":"flex-end",gap:"xs",children:[(0,s.jsx)(n.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,s.jsx)(c.c,{entity:t.player,short:!0})}),(0,s.jsx)(o.Ck,{missingPlayer:t})]})]}):r?(0,s.jsx)(u.A,{messageId:"no_missing_players",isInverted:!i,width:"100%"}):null}function p(e){let{home:t,away:i,first:l}=e,a=(null==t?void 0:t.player)?d.uc:r.Fragment,o=(null==i?void 0:i.player)?d.uc:r.Fragment;return(0,s.jsxs)(n.so,{justify:t||l?"space-between":"flex-end",children:[(0,s.jsx)(a,{player:null==t?void 0:t.player,style:{width:"50%"},children:(0,s.jsx)(h,{missingPlayer:t,first:!!l,left:!0})}),(0,s.jsx)(o,{player:null==i?void 0:i.player,style:{width:"50%"},children:(0,s.jsx)(h,{missingPlayer:i,first:!!l})})]})}function x(e){let{home:t,away:i}=e;if(void 0===t&&void 0===i)return null;let l=Math.max((null==t?void 0:t.length)||0,(null==i?void 0:i.length)||0);return(0,s.jsxs)(a.Zp,{children:[(0,s.jsx)(a.Zp.Header,{titleId:"injuries_and_suspensions"}),Array.from({length:l}).map((e,l)=>{var n,r,a,o;return(0,s.jsx)(p,{home:null==t?void 0:t[l],away:null==i?void 0:i[l],first:0===l},"".concat(null==t||null==(r=t[l])||null==(n=r.player)?void 0:n.id).concat(null==i||null==(o=i[l])||null==(a=o.player)?void 0:a.id))}),(0,s.jsx)(a.Zp.Footer,{})]})}},31130:(e,t,i)=>{i.d(t,{A:()=>m});var s=i(6029),l=i(21377),n=i(95083),r=i(41249),a=i(55729),o=i(65789),d=i(62859),c=i(67717),u=i(79853),h=i(54863),p=i(5276),x=i(33243),f=i(5998);function g(){return(0,s.jsx)(r.az,{h:900})}function m(){var e;let{event:t,leftTeam:i,rightTeam:m,location:y}=(0,a.useContext)(d.y$),{managers:v}=(0,u.K)(t),{lineups:j,error:b}=(0,h.Ir)({jerseyStyle:"fancy"}),[w,_]=(0,a.useState)(l.cxP.Left),{isDesktop:C}=(0,n.$c)(),k=C&&y===d.cb.EventPage;if(b)return null;if(!j)return(0,s.jsx)(g,{});let[z,A,H]=w===l.cxP.Left?[i,null==v?void 0:v.leftManager,j.left]:[m,null==v?void 0:v.rightManager,j.right],M=H.players.filter(e=>!e.substitute),S=H.players.filter(e=>e.substitute),L=!!A||H.supportStaff&&(null==(e=H.supportStaff)?void 0:e.length)>0;return(0,s.jsxs)(o.HH,{isCard:k,children:[k&&(0,s.jsx)(o.Zp.Header,{titleId:"squads",as:"h2"}),(0,s.jsx)(r.az,{bg:"surface.s1",w:"100%",position:"sticky",top:[50,0],zIndex:r.Py.Sticky,p:"sm",children:(0,s.jsx)(c.n,{activeTeam:w,onTeamClick:e=>_(e)})}),(0,s.jsxs)(r.so,{direction:"column",p:"sm",gap:"sm",children:[!!M.length&&(0,s.jsxs)(o.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(o.Zp.Header,{titleId:"team_playing_eleven"}),(0,s.jsx)(f.A,{players:M,team:z,event:t,hideTeamHeader:!0,highlightStarters:!1})]}),!!S.length&&(0,s.jsxs)(o.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(o.Zp.Header,{titleId:"rest_of_squad"}),(0,s.jsx)(f.A,{players:S,team:z,event:t,hideTeamHeader:!0})]}),L&&(0,s.jsxs)(o.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(o.Zp.Header,{titleId:"support_staff"}),(0,s.jsx)(x.A,{manager:A,supportStaff:H.supportStaff||[]})]}),!!(j.left.missingPlayers||j.right.missingPlayers)&&(0,s.jsx)(p.Sb,{missingPlayers:H.missingPlayers})]})]})}},31698:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M7 2v3h10l2 2 .001 3.461A6.73 6.73 0 0 1 21 15.25c0 3.72-3.03 6.75-6.75 6.75S7.5 18.97 7.5 15.25s3.03-6.75 6.75-6.75c.979 0 1.91.21 2.751.587L17 7H7v3H6L2 6l4-4h1zm7.24 8.17c-1.29 0-2.47.5-3.37 1.3l.88.53-.64 2.39-1.94.69v.17c0 .65.13 1.26.35 1.83l.9-.46 1.5 1.67-.24 1.33a5.017 5.017 0 0 0 2.29.702l.276.008.198-.004a5.089 5.089 0 0 0 4.862-4.862l.004-.214c0-1.46-.62-2.77-1.61-3.7l-.84.78-2.62-1.11.28-1.04c-.1-.01-.19-.01-.28-.01zm2.42 3.95L18 16.58l-2 2.2-2-.78v-2.91l2.66-.97z",fill:e.fill,fillRule:"evenodd"})}))}},32190:(e,t,i)=>{i.d(t,{Et:()=>r.Et,GW:()=>l.A,pY:()=>n.p,tg:()=>s.t});var s=i(91407),l=i(12605),n=i(91603),r=i(19991)},32256:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M12 8.5c3.72 0 6.75 3.03 6.75 6.75S15.72 22 12 22s-6.75-3.03-6.75-6.75S8.28 8.5 12 8.5zm-.01 1.67c-1.29 0-2.47.5-3.37 1.3l.88.53-.64 2.39-1.94.69v.17c0 .65.13 1.26.35 1.83l.9-.46 1.5 1.67-.24 1.33a5.017 5.017 0 0 0 2.29.702l.276.008.198-.004a5.089 5.089 0 0 0 4.862-4.862l.004-.214c0-1.46-.62-2.77-1.61-3.7l-.84.78-2.62-1.11.28-1.04c-.1-.01-.19-.01-.28-.01zm2.42 3.95 1.34 2.46-2 2.2-2-.78v-2.91l2.66-.97zM22 2v9h-2V4H4v7H2V2h20z",fill:e.fill,fillRule:"evenodd"})}))}},33007:(e,t,i)=>{i.r(t),i.d(t,{default:()=>er});var s=i(6029),l=i(32523),n=i(21377),r=i(95083),a=i(76356),o=i(55729),d=i(62859),c=i(44565),u=i(5276),h=i(19168),p=i(73011);let x="HIDDEN_STATISTICS_GROUP",f="DEFAULT_GROUP_NAME",g={"american-football":{passing:"passingCompletions",rushing:"rushingAttempts",receiving:"receivingReceptions",defensive:"defensiveCombineTackles",interceptions:"defensiveInterceptions",fumbles:"fumbleFumbles",kicking:"kickingFgMade",punting:"puntingTotal","kick returns":"kickReturnsTotal","punt returns":"puntReturnsTotal"},basketball:{DEFAULT_GROUP_NAME:"points"},"ice-hockey":{skater:"goals",goalkeeper:"savePercentage"},handball:{players:"goals",goalkeepers:"goalkeeperEfficiencyPercentage"}};var m=i(87827),y=i(90248),v=i(69559),j=i(54409),b=i(71306),w=i(48886),_=i(12047),C=i(35474),k=i(94446),z=i(16620),A=i(12153),H=i(24159),M=i(54917);let S=e=>{let{player:t,hideImage:i}=e,l=(0,o.useContext)(d.Ws)===n.QCR.Basketball&&!t.substitute,c="rtl"===document.dir;return(0,s.jsxs)(a.so,{align:"center",h:"5xl",mr:i?"lg":void 0,children:[(0,s.jsx)(a.az,{w:"xs",h:"[52px]",bg:l?"status.val":void 0}),!i&&(0,s.jsxs)(a.az,{position:"relative",py:"sm",px:"md",mr:"xs",children:[(0,s.jsx)(k.t,{id:t.player.id,size:40,name:t.player.name,style:{display:"block"}}),l&&(0,s.jsx)(a.az,{position:"absolute",bottom:"xs",left:"[50%]",style:{transform:c?"translateX(50%)":"translateX(-50%)"},bg:"status.val",br:"[6px]",children:(0,s.jsx)(r.EY,{px:"xs",textStyle:"assistive.micro",color:"surface.s1",display:"block",children:(0,s.jsx)(y.A,{id:"starter"})})})]})]})},L=e=>{let{player:t,showTeamLogo:i,useShortName:l}=e,o=(0,v.o)()===n.QCR.Basketball&&!!t.ejected;return(0,s.jsxs)(a.az,{overflowX:"clip",children:[o&&(0,s.jsx)(a.so,{bg:"status.error.default",display:"inline-flex",h:"md",align:"center",px:"sm",br:"md",mb:"2xs",children:(0,s.jsx)(r.EY,{textStyle:"assistive.micro",color:"surface.s1",lineHeight:1,children:(0,s.jsx)(y.A,{id:"basketball_player_ejected_long"})})}),(0,s.jsx)(r.EY,{mb:"2xs",textStyle:"display.small",color:t.inPlay?"primary.default":"neutrals.nLv1",display:"block",truncate:!0,children:(0,s.jsx)(H.c,{entity:t.player,short:l})}),(0,s.jsxs)(a.so,{w:"100%",gap:"sm",align:"center",children:[i&&t.teamId&&(0,s.jsx)(k.p,{id:t.teamId,size:16}),!!t.jerseyNumber&&(0,s.jsx)(r.EY,{textStyle:"body.medium",children:t.jerseyNumber}),!!t.position&&(0,s.jsx)(r.EY,{textStyle:"body.medium",color:"neutrals.nLv3",truncate:!0,children:(0,s.jsx)(M.F,{id:t.position})})]})]})};function P(e){let{player:t,isHovered:i,onHoverStart:l,onHoverEnd:n,children:r}=e,{event:c}=(0,o.useContext)(d.y$),{openEventPlayerStatistics:u}=(0,z.d)();return(0,s.jsx)(A.A,{routeKey:"player",params:{slug:t.slug,id:t.id},onClick:e=>{c.hasEventPlayerStatistics&&(e.preventDefault(),u({event:c,player:t},w._.BoxScore))},onMouseOver:()=>null==l?void 0:l(t.id),onMouseLeave:()=>null==n?void 0:n(t.id),children:(0,s.jsx)(a.so,{bg:i?"surface.s2":void 0,title:t.name,children:r})})}function I(e){let{player:t,hideImage:i,showTeamLogo:l,useShortName:n,isHovered:r,isLast:o,onHoverStart:d,onHoverEnd:c}=e;return(0,s.jsx)(P,{player:t.player,onHoverStart:d,onHoverEnd:c,isHovered:r,children:(0,s.jsxs)(a.so,{h:"5xl",align:"center",w:"100%",borderBottom:o?void 0:"1px solid {colors.neutrals.nLv4}",children:[(0,s.jsx)(S,{player:t,hideImage:i}),(0,s.jsx)(L,{player:t,showTeamLogo:l,useShortName:n})]})})}var R=i(21501),O=i(12364),T=i.n(O);let V=e=>{var t,i;return e.wideBoxScore||(null!=(i=null==(t=e.short)?void 0:t.length)?i:0)>4?40:36};function E(e){let{stats:t,sortedPlayers:i,sortStatistic:l,hoveredPlayerId:n,onHoverStart:o,onHoverEnd:d}=e;return(0,s.jsx)(s.Fragment,{children:i.map((e,c)=>{let u=(0,C.$i)(e.statistics||{});return(0,s.jsx)(P,{player:e.player,onHoverStart:o,onHoverEnd:d,children:t.map(t=>{let o=V(t),d=l.short===t.short&&i.length>1;return(0,s.jsx)(a.ov,{h:"5xl",style:{width:o},bg:n===e.player.id?"surface.s2":void 0,borderBottom:c{let{name:t,items:i}=e;return(0,s.jsxs)("div",{children:[t===f?null:(0,s.jsx)(r.EY,{textStyle:"assistive.default",pt:"lg",pb:"sm",display:"block",children:(0,s.jsx)(G.R,{id:t})}),i.map(e=>(0,s.jsxs)(a.so,{gap:"lg",py:"sm",children:[(0,s.jsx)(a.az,{w:"[36px]",children:(0,s.jsx)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:e.short})}),(0,s.jsx)(a.az,{children:(0,s.jsx)(r.EY,{textStyle:"body.small",children:(0,s.jsx)(N.w,{id:e.translationKey||e.value})})})]},e.short))]})},Y=e=>{let{groups:t,defaultTab:i}=e,[l,n]=(0,o.useState)(i||"passingGroup");return(0,s.jsx)(a.az,{w:{md:"[400px]"},children:(0,s.jsxs)(F.tU,{variant:"tertiary",value:l,onChange:e=>n(e),children:[(0,s.jsx)(F.tU.List,{px:"md",py:"sm",children:Object.keys(t).map(e=>(0,s.jsx)(F.tU.Tab,{tabKey:e,children:(0,s.jsx)(G.R,{id:e})},"tab-".concat(e)))}),(0,s.jsx)(a.az,{children:Object.keys(t).map(e=>(0,s.jsx)(F.tU.Panel,{tabKey:e,children:(0,s.jsx)(a.az,{px:"lg",children:(0,s.jsx)(D,{name:f,items:t[l]})})},"panel-".concat(e)))})]})})},Z=e=>{let{groups:t,sport:i,defaultTab:l}=e,{isMobile:o}=(0,r.$c)();return i===n.QCR.AmericanFootball&&o?(0,s.jsx)(Y,{groups:t,defaultTab:l}):(0,s.jsx)(a.so,{px:"lg",direction:"column",gap:"lg",w:{md:"[400px]"},overflowY:"auto",children:Object.keys(t).map(e=>(0,s.jsx)(D,{name:e,items:t[e]},e))})},U=e=>{var t,i;let{group:l,showFullStats:c}=e,[u,h]=(0,o.useState)(!1),[x,g]=(0,o.useState)(void 0),{mediaBreakpoint:m}=(0,r.$c)(),v=(0,o.useContext)(d.Ws),b=(0,p.mR)(v,!0),w=e=>{h(!0),v===n.QCR.AmericanFootball&&g(e)};return(0,s.jsxs)(a.az,{flexGrow:1,children:[(0,s.jsxs)(r.EY,{textStyle:"assistive.default",color:"primary.default",display:"inline-block",cursor:"pointer",mr:"2xs",style:{width:(t=m,i=b[l].length,c?"md"===t?6===i?32:50:"unset":"unset")},onClick:()=>w(l),truncate:!0,children:[(0,s.jsx)(G.R,{id:l===f?"legend_info_button_title":l}),(0,s.jsx)(j.G_L,{w:16,h:16,fill:"primary.default",ml:"xxs",mb:"xxs"})]}),(0,s.jsx)(B.A,{isOpen:u,setIsOpen:h,header:(0,s.jsx)(r.EY,{textStyle:"display.large",p:"lg",display:"block",children:(0,s.jsx)(y.A,{id:"bottom_sheet_stats_expl_title"})}),children:(0,s.jsx)(Z,{groups:b,sport:v,defaultTab:x})})]})};function W(e){let{iconDirection:t,hasPlayerRatings:i,onClick:l}=e,{isMobile:n}=(0,r.$c)(),o="right"===t;return(0,s.jsx)(a.ov,{h:"4xl",pb:"2xs",w:"[20px]",position:"relative",right:!i&&o?{md:"xs"}:void 0,children:(0,s.jsx)(r.K0,{variant:"clear",onClick:l,userSelect:"none",children:(0,s.jsx)(a.ov,{w:"[20px]",h:"[20px]",children:n?(0,s.jsx)(j.Bfd,{fill:"onSurface.nLv3",width:8,height:8,style:{transform:o?"rotate(270deg)":"rotate(90deg)"}}):(0,s.jsx)(j.QtO,{fill:"primary.default",width:16,height:16,style:{transform:o?"rotate(270deg)":"rotate(90deg)"}})})})})}let $=e=>{let{isActive:t,stat:i,title:l}=e;return(0,s.jsx)(r.EY,{style:{width:V(i)},title:l,textStyle:"tab.secondary",color:t?"primary.default":"neutrals.nLv3",textAlign:"center",display:"block",children:i.shortTranslationKey?(0,s.jsx)(y.A,{id:i.shortTranslationKey}):i.short})},Q=e=>{let{group:t,onLeftArrowClick:i,showFullStats:l}=e;return(0,s.jsxs)(a.so,{h:"4xl",align:"center",pl:"lg",pr:"xs",children:[(0,s.jsx)(U,{group:t,showFullStats:l}),i&&(0,s.jsx)(W,{onClick:i,iconDirection:"left"})]})};function K(e){let{stat:t,isActive:i,isSortable:l,sortDir:n,isLast:r,onClick:o}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.so,{position:"relative",h:"[20px]",align:"center",userSelect:"none",children:[(0,s.jsx)(N.w,{id:String(t.value),children:e=>(0,s.jsx)(a.az,{onClick:o,cursor:l?"pointer":void 0,mr:r?void 0:"[-1px]",children:(0,s.jsx)($,{title:e.toString(),stat:t,isActive:i})})}),!r&&(0,s.jsx)(a.cG,{color:"neutrals.nLv4",borderInlineEndStyle:"solid",orientation:"vertical"})]}),i&&(0,s.jsx)(a.az,{w:"lg",h:"lg",children:(0,s.jsx)(j.Bfd,{fill:"primary.default",width:16,height:16,style:i&&n===w.U.ASC?{transform:"rotate(180deg)"}:void 0})})]})}let X=(0,o.forwardRef)((e,t)=>{let{children:i,...l}=e,n=(0,_.Ay)()+48;return(0,s.jsx)(a.az,{...l,position:"sticky",bg:"surface.s1",zIndex:"sticky",style:{top:n},ref:t,children:i})}),q=()=>{let e=(0,v.o)(),{event:t}=(0,o.useContext)(d.y$);return t.tournament.uniqueTournament?e===n.QCR.Football||t.tournament.uniqueTournament&&[n.G6l.NBA,138,141].includes(t.tournament.uniqueTournament.id)?(0,s.jsx)(y.A,{id:"sofascore_rating_basketball_box_score"}):(0,s.jsx)(y.A,{id:"sofascore_rating_basketball_box_score_finished"}):null};function J(e){let{location:t}=(0,o.useContext)(d.y$),{mediaBreakpoint:i,isDesktop:l}=(0,r.$c)(),{statNames:n,group:c,sortedPlayers:u,showFullStats:h,updateSortStatistic:p,sortConfig:x}=e,f=u.map(e=>{var t;return{playerId:e.player.id,rating:null==(t=e.statistics)?void 0:t.rating}}),g=f.some(e=>e.rating),y=g?l?20:12:0,{hoveredPlayerId:v,onHoverStart:b,onHoverEnd:w}=function(){let[e,t]=(0,o.useState)(void 0);return{hoveredPlayerId:e,onHoverStart:(0,o.useCallback)(e=>t(e),[]),onHoverEnd:(0,o.useCallback)(e=>t(t=>t===e?void 0:t),[])}}(),{leftColumnBasis:_,rightColumnBasis:C,...k}=function(e,t,i){let s=(0,o.useRef)(null),l=(0,o.useRef)(null),n=(0,o.useRef)(null),r=e.reduce((e,t)=>e+V(t),0),a=e.length>6?180-t:Math.min(r,220-t),d=Math.min(290-t-a,i?120-t:136-t),[c,u]=(0,o.useState)(void 0),[h,p]=(0,o.useState)(void 0),x=()=>{l.current&&(u(l.current.scrollLeft>0),p(l.current.scrollLeft{var t;s.current="header",null==(t=l.current)||t.scroll({left:Math.max(e,0),behavior:"smooth"}),x()};return(0,R.st)(()=>{x()},void 0,[i]),{currentElementInfo:s,headerRef:l,contentRef:n,leftColumnBasis:"".concat(d,"px"),rightColumnBasis:"".concat(a,"px"),leftColumnMax:"max(".concat(200-t,"px, calc(100% - ").concat(r,"px))"),rightColumnMax:r,rightCanGrow:r>a,onLeftClick:c?()=>{var e;return f(((null==(e=l.current)?void 0:e.scrollLeft)||0)-108)}:void 0,onRightClick:h?()=>{var e;return f(((null==(e=l.current)?void 0:e.scrollLeft)||0)+108)}:void 0,onScroll:T()(x,100)}}(n,y,h),z=l&&t===d.cb.EventPage;return(0,s.jsxs)(a.az,{pb:g?void 0:{base:"sm",md:"md"},children:[(0,s.jsxs)(a.so,{h:"100%",w:"100%",position:"relative",overflowX:"clip",justify:"space-between",children:[(0,s.jsxs)(a.az,{flexGrow:1,flexShrink:1,style:{flexBasis:_,width:_,maxWidth:k.leftColumnMax},children:[(0,s.jsx)(X,{children:(0,s.jsx)(Q,{group:c,onLeftArrowClick:k.onLeftClick,showFullStats:h})}),(0,s.jsx)(a.so,{display:"flex",flexDirection:"column",overflow:"hidden",maxW:"100%",position:"relative",children:u.map((t,l)=>(0,s.jsx)(I,{player:t,stats:n,showTeamLogo:e.showTeamLogo,hideImage:["xxs","md"].includes(i)&&h&&!z,useShortName:h&&!z,isHovered:v===t.player.id,onHoverStart:b,onHoverEnd:w,isLast:u.length-1===l},t.player.id))})]}),(0,s.jsxs)(a.so,{direction:"column",flexGrow:k.rightCanGrow?1:void 0,flexShrink:k.rightCanGrow?1:void 0,style:{flexBasis:k.rightCanGrow?C:void 0,width:C,maxWidth:k.rightColumnMax},children:[(0,s.jsx)(X,{scrollbar:"hidden",ref:k.headerRef,overflow:"auto",onScroll:e=>{let t=e.target.scrollLeft;window.requestAnimationFrame(()=>{if("header"===k.currentElementInfo.current){var e;null==(e=k.contentRef.current)||e.scroll({left:t}),k.onScroll()}})},onMouseOver:()=>k.currentElementInfo.current="header",onTouchStart:()=>k.currentElementInfo.current="header",children:(0,s.jsx)(a.az,{children:(0,s.jsx)(a.so,{w:"100%",children:n.map((e,t)=>{let i=x.stat.short===e.short,l=u.length>1;return(0,s.jsx)(X,{display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"center",h:"4xl",pb:i&&l?void 0:"lg",children:(0,s.jsx)(K,{stat:e,isActive:l&&i,isSortable:l,sortDir:i?x.dir:void 0,isLast:n.length-1===t,onClick:()=>{var i;p(e),null==(i=k.headerRef.current)||i.scroll({left:Math.max(36*(t-2),0),behavior:"smooth"})}},e.value)},e.short)})})})}),(0,s.jsx)(a.az,{scrollbar:"hidden",ref:k.contentRef,w:"100%",overflowX:"auto",onScroll:e=>{let t=e.target.scrollLeft;window.requestAnimationFrame(()=>{if("content"===k.currentElementInfo.current){var e;null==(e=k.headerRef.current)||e.scroll({left:t}),k.onScroll()}})},onMouseOver:()=>k.currentElementInfo.current="content",onTouchStart:()=>k.currentElementInfo.current="content",children:(0,s.jsx)(E,{stats:n,sortStatistic:x.stat,sortedPlayers:u,hoveredPlayerId:v,onHoverStart:b,onHoverEnd:w})})]}),(0,s.jsxs)(a.so,{w:g?{base:"2xl",md:"3xl"}:{base:"[20px]",md:"xl"},direction:"column",position:"relative",children:[(0,s.jsx)(X,{w:g?{base:"2xl",md:"3xl"}:{base:"[20px]",md:"xl"},h:"4xl",children:k.onRightClick&&(0,s.jsx)(W,{iconDirection:"right",hasPlayerRatings:g,onClick:k.onRightClick})}),g&&(0,s.jsx)(s.Fragment,{children:f.map((e,t)=>(0,s.jsx)(P,{player:u[t].player,onHoverStart:b,onHoverEnd:w,children:(0,s.jsx)(a.az,{bg:v===e.playerId?"surface.s2":void 0,h:"5xl",py:"lg",px:"xs",borderBottom:t{e.showFullStats||void 0!==e.statNames.find(e=>e.short===t.stat.short)||i({stat:e.defaultSortStat,dir:w.U.DESC})},[e.showFullStats]),(0,s.jsx)(J,{statNames:e.statNames,showFullStats:e.showFullStats,showTeamLogo:e.showTeamLogo,group:e.group,sortConfig:t,sortedPlayers:l,updateSortStatistic:n})}function et(e){let{activeTab:t,players:i,showFull:l}=e,r=(0,o.useContext)(d.Ws),{leftTeam:a,rightTeam:c}=(0,o.useContext)(d.y$);if(!(t===n.cxP.Left?a:t===n.cxP.Right?c:a&&c)||!r)return null;let u=(0,p.mR)(r,l),h=r===n.QCR.Basketball?{[f]:i}:i.reduce((e,t)=>(t.statistics&&Object.keys(t.statistics).forEach(i=>{(function(e,t){let i=[],s=(0,p.mR)(t,!0);for(let t in s)s[t].some(t=>[t.value,t.attemptsValue,t.madesValue,t.secondaryValue].includes(e))&&i.push(t);return i.length?i:[x]})(i,r).forEach(s=>{if(r!==n.QCR.AmericanFootball||0!==t.statistics[i])if("G"===t.position&&["playersGroup","skatersGroup"].includes(s)&&!t.statistics[i])return;else e[s]?e[s][t.player.id]=t:e[s]={[t.player.id]:t}})}),e),{});return(0,s.jsx)(s.Fragment,{children:Object.keys(u).map(e=>{var n,a;if(e===x||!h[e])return null;let o=u[e].filter(e=>!e.hideIfNone||i.some(t=>{var i,s;return(null==(i=t.statistics)?void 0:i[null!=(s=e.compareValue)?s:e.value])!==void 0})),d=null!=(a=null==g||null==(n=g[r])?void 0:n[e])?a:"";return(0,s.jsx)(ee,{group:e,statNames:l?o:o.slice(0,3),showTeamLogo:"all"===t,lineup:h[e],defaultSortStat:o.find(e=>e.value===d)||o[0],showFullStats:l,sport:r},e)})})}var ei=i(33144);function es(e){let{activeTab:t,leftTeam:i,rightTeam:l,onTabChange:r}=e,o=(0,_.Ay)();return(0,s.jsx)(a.ov,{bg:"surface.s1",w:"100%",p:"sm",position:"sticky",style:{top:o},zIndex:"dropdown","data-testid":"team-pillows-selector",children:(0,s.jsxs)(F.tU,{variant:"secondary",value:t,onChange:r,children:[(0,s.jsx)(F.tU.Tab,{tabKey:n.cxP.Left,h:32,grow:1,basis:0,textAlign:"center",style:{paddingBlock:"3px"},"data-testid":n.cxP.Left,children:(0,s.jsx)(ei.p,{size:24,id:i.id,name:i.name})}),(0,s.jsxs)(F.tU.Tab,{tabKey:"all",h:32,grow:1,basis:0,style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",paddingBlock:"3px"},children:[(0,s.jsx)(ei.p,{size:24,id:i.id,name:i.name}),"+",(0,s.jsx)(ei.p,{size:24,id:l.id,name:l.name})]}),(0,s.jsx)(F.tU.Tab,{tabKey:n.cxP.Right,h:32,grow:1,basis:0,textAlign:"center",style:{paddingBlock:"3px"},"data-testid":n.cxP.Right,children:(0,s.jsx)(ei.p,{size:24,id:l.id,name:l.name})})]})})}function el(e){let{value:t,toggle:i}=e;return(0,s.jsxs)(a.so,{px:"lg",py:"md",align:"center",justify:"space-between",children:[(0,s.jsxs)(a.az,{children:[(0,s.jsx)(r.EY,{textStyle:"body.medium",display:"block",mb:"2xs",children:(0,s.jsx)(y.A,{id:"boxScoreAppearance"})}),(0,s.jsx)(r.EY,{textStyle:"body.small",display:"block",color:t?"primary.default":"neutrals.nLv3",children:(0,s.jsx)(y.A,{id:"toggleDetailedView"})})]}),(0,s.jsx)(F.lM,{checked:t,onChange:()=>i()})]})}var en=i(30182);function er(e){let{showDivider:t=!0}=e,{leftTeam:i,rightTeam:p,location:x}=(0,o.useContext)(d.y$),[f,g]=(0,o.useState)("all"),[m,y]=(0,h.yR)("box-score-appearance-toggle-value",!1),{lineups:v,error:j}=(0,c.A)(),{isDesktop:b}=(0,r.$c)(),w=x===d.cb.EventPage&&b;if(j)return null;if(!v)return(0,s.jsx)(l.E,{uniqueKey:"box-score-cl",height:640,animate:!0});let _=v.left.players.map(e=>({...e,teamId:i.id})),C=v.right.players.map(e=>({...e,teamId:p.id})),k=f===n.cxP.Left?_:f===n.cxP.Right?C:[..._,...C];return i&&p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.az,{bg:"surface.s1",children:[!w&&(0,s.jsx)(el,{value:m,toggle:()=>{y(e=>!e)}}),!w&&t&&(0,s.jsx)(a.cG,{color:"neutrals.nLv4",borderBlockEndStyle:"solid"}),(0,s.jsx)(es,{activeTab:f,leftTeam:i,rightTeam:p,onTabChange:g}),(0,s.jsx)(et,{activeTab:f,players:k,showFull:m||w})]}),!!(v.left.missingPlayers||v.right.missingPlayers)&&(0,s.jsx)(a.az,{p:"sm",children:"all"===f?(0,s.jsx)(en.m,{home:v.left.missingPlayers,away:v.right.missingPlayers}):(0,s.jsx)(u.Sb,{missingPlayers:f===n.cxP.Left?v.left.missingPlayers:v.right.missingPlayers})})]}):null}},33787:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,s.jsx)("path",{d:"m16.21 8.93-.97 2.29-4.21 4.21-2.29.97-.52.05c.4-2.02 1.36-3.86 2.85-5.39a10.71 10.71 0 0 1 5.21-2.81l-.07.68zM13.6 21.26l.97-2.29 4.21-4.22 2.29-.97.67-.07c-.42 1.96-1.37 3.74-2.82 5.22a10.678 10.678 0 0 1-5.38 2.84l.05-.52.01.01zm-5.53-3.8.99-.11 2.61-1.14 4.46-4.51 1.07-2.59.11-1.02c.27-.03.55-.06.83-.07 1.07-.05 2.29 0 3.1.68l.07.07c.55.65.75 1.62.68 3.09-.01.29-.04.57-.07.85l-1.16.13-2.61 1.14-4.46 4.51-1.07 2.59-.09.85c-.22.02-.44.05-.66.06-1.07.05-2.29 0-3.1-.68l-.07-.07c-.48-.57-.7-1.36-.7-2.55 0-.18 0-.35.01-.54.01-.23.04-.45.06-.68v-.01zM3.5 4c.28 0 .53.08.75.21.51-1.29 1.76-2.2 3.23-2.21H9l1 1h1V2h6l-1 2-5 2-.05.03A3.49 3.49 0 0 1 7.5 9c-1.48 0-2.73-.92-3.25-2.21-.22.13-.48.21-.75.21C2.67 7 2 6.33 2 5.5S2.67 4 3.5 4zm0 2c.28 0 .5-.22.5-.5S3.78 5 3.5 5s-.5.22-.5.5.22.5.5.5z",fill:e.fill}),(0,s.jsxs)("g",Object.assign({fill:e.fill},{children:[(0,s.jsx)("path",{d:"m16.21 8.93-.97 2.29-4.21 4.21-2.29.97-.52.05c.4-2.02 1.36-3.86 2.85-5.39a10.71 10.71 0 0 1 5.21-2.81l-.07.68zM13.6 21.26l.97-2.29 4.21-4.22 2.29-.97.67-.07c-.42 1.96-1.37 3.74-2.82 5.22a10.678 10.678 0 0 1-5.38 2.84l.05-.52.01.01z"}),(0,s.jsx)("path",{d:"m8.07 17.46.99-.11 2.61-1.14 4.46-4.51 1.07-2.59.11-1.02c.27-.03.55-.06.83-.07 1.07-.05 2.29 0 3.1.68l.07.07c.55.65.75 1.62.68 3.09-.01.29-.04.57-.07.85l-1.16.13-2.61 1.14-4.46 4.51-1.07 2.59-.09.85c-.22.02-.44.05-.66.06-1.07.05-2.29 0-3.1-.68l-.07-.07c-.48-.57-.7-1.36-.7-2.55 0-.18 0-.35.01-.54.01-.23.04-.45.06-.68v-.01z"}),(0,s.jsx)("path",{d:"M3.5 4c.28 0 .53.08.75.21.51-1.29 1.76-2.2 3.23-2.21H9l1 1h1V2h6l-1 2-5 2-.05.03A3.49 3.49 0 0 1 7.5 9c-1.48 0-2.73-.92-3.25-2.21-.22.13-.48.21-.75.21C2.67 7 2 6.33 2 5.5S2.67 4 3.5 4zm0 2c.28 0 .5-.22.5-.5S3.78 5 3.5 5s-.5.22-.5.5.22.5.5.5z",fillRule:"nonzero"})]}))]}))}))}},35518:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,s.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,s.jsx)("path",{d:"M22 12c0-.09-.01-.18-.01-.28C21.84 6.33 17.43 2 12 2 6.57 2 2 6.48 2 12s4.48 10 10 10 9.84-4.33 9.99-9.72c0-.09.01-.18.01-.28zm-1.94-2.67-.92-.11-.93-2.99c.82.88 1.46 1.94 1.85 3.11v-.01zm-16 3.89 2.03 2.4-.93 1.4c-.81-1.1-1.36-2.4-1.56-3.81h.46v.01zm.91-.51 1.32-3.9h3.99l1.75 3.31-1.56 3.07H7.09l-2.11-2.48h-.01zm6.22-4.39 2.41-2.44 3.62.75.98 2.97-1.71 2.8-3.48-.57-1.83-3.51h.01zm-.18-4.75 1.67 1.8-2.36 2.39H6.36l-.67-1.4v-.02a8.415 8.415 0 0 1 5.32-2.77zM5.86 17.86l1.09-1.65h3.26l2.59 2.59-.56 1.68c-.08 0-.16.01-.24.01-2.42 0-4.59-1.02-6.14-2.64v.01zm7.5 2.52.33-1 3.78-1.91.67.4a8.511 8.511 0 0 1-4.78 2.52v-.01zm5.45-3.32-1.11-.66-.53-3.14v-.01l1.87-3.03 1.3.16a8.389 8.389 0 0 1-1.53 6.68z",fill:e.fill})]}))}))}},39895:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(90142),l=i(6029),n=i(60449),r=i.n(n),a=i(55729),o=i(41735);i(82823);var d=i(83509),c=i(63296);let u=o.default.svg.withConfig({componentId:"SvgWrapper"})` ${d.G} ${c.x} ${e=>e.isRtl&&"\n transform: scaleX(-1);\n "} `,h=e=>{var{fill:t,fillOpacity:i,width:n=24,height:d=24,viewBox:c="0 0 24 24",title:h,children:p,style:x={},isRtlPrevented:f}=e,g=(0,s.T)(e,["fill","fillOpacity","width","height","viewBox","title","children","style","isRtlPrevented"]);let m=(0,a.useContext)(o.ThemeContext),y=r()(m.colors,t||"",t),{transform:v}=x,j=(0,s.T)(x,["transform"]),b="rtl"===m.settings.textDirection&&!f;return(0,l.jsxs)(u,Object.assign({width:n,height:d,viewBox:c,fill:y,style:x},g,{isRtl:b},{children:[h&&(0,l.jsx)("title",{children:h}),a.Children.map(p,e=>{let t=Object.assign(Object.assign({},g),{style:j,fill:y,fillOpacity:i});return t["data-testid"]=void 0,(0,a.isValidElement)(e)?(0,a.cloneElement)(e,t):e})]}))}},41078:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(6029),l=i(41249),n=i(90248),r=i(54409);function a(e){let{messageId:t,isInverted:i,width:a}=e;return(0,s.jsxs)(l.so,{direction:i?"row-reverse":"row",gap:"sm",align:"center",h:56,maxW:a||"50%",px:"sm",children:[(0,s.jsx)(r.G_L,{width:24,height:24,fill:"onSurface.nLv3",style:{display:"block",minWidth:"24px"}}),(0,s.jsx)(l.EY,{font:"body.medium",color:"onSurface.nLv3",as:"div",children:(0,s.jsx)(n.A,{id:t})})]})}},43681:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(90142),l=i(6029),n=i(39895);function r(e){var{fill:t="error.default"}=e,i=(0,s.T)(e,["fill"]);return(0,l.jsx)(n.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:t},i,{children:(0,l.jsx)("path",{d:"M7.842 5.356c-.016.092.049.153.145.153h1.738c.097 0 .161-.061.177-.153.129-.96.773-1.525 2.012-1.525 1.094 0 1.69.625 1.69 1.48 0 .885-.516 1.602-1.69 1.8-2.591.442-4.007 1.327-4.007 3.768v1.968c0 .092.064.153.16.153h7.612c.097 0 .161-.061.161-.153v-1.525c0-.092-.064-.153-.16-.153h-5.65v-.503c0-1.297.645-1.541 1.996-1.8 2.22-.428 3.717-1.435 3.717-3.601C15.743 3.19 14.166 2 11.962 2 9.5 2 8.084 3.266 7.842 5.356zM4 22.476c0 .06.04.1.1.1h1.06c.06 0 .1-.04.1-.1v-3.16c0-.68.45-.95.9-.95.52 0 .92.34.92.97v3.14c0 .06.04.1.1.1h1.06c.06 0 .1-.04.1-.1v-3.14c0-.7.45-.97.9-.97.51 0 .91.34.91.97v3.14c0 .06.04.1.1.1h1.06c.06 0 .1-.04.1-.1v-3.29c0-1.26-.82-1.99-1.96-1.99-.63 0-1.09.14-1.5.65-.39-.52-.9-.65-1.41-.65-.63 0-1.07.2-1.37.69v-.49c0-.06-.04-.1-.1-.1H4.1c-.06 0-.1.04-.1.1v5.08zm8.51-6.11c0 .06.04.1.1.1h1.28c.06 0 .1-.04.1-.1v-1.19c0-.06-.04-.1-.1-.1h-1.28c-.06 0-.1.04-.1.1v1.19zm.11 6.11c0 .06.04.1.1.1h1.06c.06 0 .1-.04.1-.1v-5.08c0-.06-.04-.1-.1-.1h-1.06c-.06 0-.1.04-.1.1v5.08zm2.52 0c0 .06.04.1.1.1h1.06c.06 0 .1-.04.1-.1v-2.98c0-.81.52-1.13 1.03-1.13.59 0 1.04.37 1.04 1.07v3.04c0 .06.04.1.1.1h1.06c.06 0 .1-.04.1-.1v-3.2c0-1.31-.87-2.08-2.01-2.08-.59 0-1.08.18-1.41.69v-.49c0-.06-.04-.1-.1-.1h-.97c-.06 0-.1.04-.1.1v5.08z",fill:t,fillRule:"evenodd"})}))}},44259:(e,t,i)=>{i.d(t,{$8:()=>o,T0:()=>r,XU:()=>d,cl:()=>c,eA:()=>n,jM:()=>a});var s=i(21377);class l{dist(e){return Math.sqrt((e.x-this.x)**2+(e.y-this.y)**2)}atan(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new l(0,0);return Math.atan2(this.y-e.y,this.x-e.x)}add(e,t){let i=this.atan(t);return this.x+=e*Math.cos(i),Math.abs(i-Math.PI)>.005&&(this.y+=e*Math.sin(i)),[this.x,this.y]}constructor(e,t){this.x=e,this.y=t}}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,s=e.map(e=>{let{x:t,y:i}=e;return new l(t,i)}),n=0;do for(let i=0;i({...e,...s[t]}))}let r=e=>{let t=new Map;if(e)for(let i=0;i{var i,s,l,n,r,a,o,d;let c=(null==t||null==(i=t.playerColor)?void 0:i.primary)||(null==t||null==(s=t.playerColor)?void 0:s.outline),u=(null==t||null==(l=t.playerColor)?void 0:l.fancyNumber)||(null==t||null==(n=t.playerColor)?void 0:n.number);return"G"===e.position&&(c=(null==t||null==(r=t.goalkeeperColor)?void 0:r.primary)||(null==t||null==(a=t.goalkeeperColor)?void 0:a.outline),u=(null==t||null==(o=t.goalkeeperColor)?void 0:o.fancyNumber)||(null==t||null==(d=t.goalkeeperColor)?void 0:d.number)),{fillColor:c=(null==c?void 0:c.startsWith("#"))?"#fff":"#"+c,numberColor:u=(null==u?void 0:u.startsWith("#"))?"#000":"#"+u}};function o(){let e=!1;return!(0,s.S$s)()&&"navigator"in window&&(e=/Firefox/.test(window.navigator.userAgent)),e}function d(e){return e>1&&e<=7}function c(e,t,i){return t?e?i?.75:.25:i?1:.5:e?.5:1}},44565:(e,t,i)=>{i.d(t,{A:()=>d});var s=i(21377),l=i(55729),n=i(45860),r=i(62859),a=i(8703),o=i(30720);function d(){let{swrConfig:e,event:t,shouldFetch:i=!0,jerseyStyle:d="fancy"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldFetch:!0},c={refreshInterval:6e4,...e},{event:u}=(0,l.useContext)(r.y$),h=i?t||u:void 0,{data:p,error:x,isLoading:f}=(0,n.Ay)(h?s.bnp.lineups(h.id):null,h?(0,a.rf)(h,c):c),[g,m]=(0,o.A)(p,"home","away"),y=h?{leftJerseyUrls:{player:s.bnp.playerJersey(h.id,"home",d),goalkeeper:s.bnp.goalkeeperJersey(h.id,"home",d)},rightJerseyUrls:{player:s.bnp.playerJersey(h.id,"away",d),goalkeeper:s.bnp.goalkeeperJersey(h.id,"away",d)}}:{leftJerseyUrls:{player:"",goalkeeper:""},rightJerseyUrls:{player:"",goalkeeper:""}},[v,j]=(0,o.A)(y,"leftJerseyUrls","rightJerseyUrls");return{lineups:p?{left:g,right:m,leftJerseyUrls:v,rightJerseyUrls:j}:void 0,isLoading:f,confirmed:null==p?void 0:p.confirmed,error:x}}},45079:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,s.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,s.jsx)("path",{d:"M10.54 8.75 9.12 13H7.54l1.92-5.75h1.79V2H10l-4.5 8 .5 7-3 5h6l2.25-4.5V8.75h-.71zM18 17l.5-7L14 2h-1.25v5.25h1.79L16.46 13h-1.58l-1.42-4.25h-.71v8.75L15 22h6l-3-5z",fill:e.fill})]}))}))}},45527:(e,t,i)=>{i.d(t,{N:()=>l,i:()=>n});var s=i(6029);let l=(0,i(55729).createContext)("left"),n=e=>{let{side:t,children:i}=e;return(0,s.jsx)(l.Provider,{value:t,children:i})}},49336:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("g",Object.assign({id:"Asset-Exportable/Icon/Incident/Ice-Hockey/ic_pak_autogoal",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},{children:(0,s.jsxs)("g",Object.assign({id:"ic_pak_autogoal"},{children:[(0,s.jsx)("rect",{id:"Bounds",fillOpacity:"0.4",fill:e.fill,opacity:"0",x:"0",y:"0",width:"24",height:"24"}),(0,s.jsx)("path",{d:"M22.7,12.31 L20.05,7.78 C19.71,7.19 18.79,6.25 16.43,6.58 C15.99,6.64 15.5,6.76 15.01,6.91 L15.01,5 L7,5 L7,2 L6,2 L2,6 L6,10 L7,10 L7,7 L13,7 L13,7.67 C12.3,7.98 11.59,8.33 10.85,8.76 C6.33,11.37 4.24,14.23 5.4,16.24 C5.4,16.24 5.4,16.25 5.4,16.26 L8.04,20.78 C8.52,21.6 9.38,22.01 10.55,22.01 C12.19,22.01 14.45,21.22 17.16,19.65 C19.26,18.44 20.88,17.18 21.86,16 C23.38,14.17 23.03,12.9 22.69,12.3 L22.7,12.31 Z M7.13,15.24 C6.91,14.85 7.64,12.92 11.85,10.49 C14.21,9.13 15.79,8.69 16.71,8.56 C17.8,8.41 18.24,8.64 18.32,8.78 C18.4,8.91 18.36,9.38 17.68,10.19 C17.1,10.88 15.91,12 13.52,13.38 C9.25,15.84 7.34,15.6 7.13,15.23 L7.13,15.24 Z M20.34,14.73 C19.76,15.42 18.57,16.54 16.18,17.92 C11.91,20.38 10,20.14 9.79,19.77 L8.92,20.27 L9.78,19.77 L8.42,17.45 C10.01,17.31 12.08,16.53 14.52,15.12 C16.62,13.91 18.24,12.65 19.22,11.47 C19.37,11.29 19.48,11.13 19.6,10.96 L20.98,13.31 C21.09,13.49 20.93,14.01 20.34,14.72 L20.34,14.73 Z",id:"Colored-Shape",fill:e.fill})]}))}))}))}},51555:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"m10.248 16.897 3.153 3.152-.58 1.8-.04.111c-.26.02-.52.04-.791.04-.58 0-1.141-.06-1.692-.15-.48-.08-.95-.19-1.401-.34-.951-.31-1.842-.76-2.643-1.32-.2-.141-.4-.281-.59-.441l.72-2.832-.01-.02h3.874zm8.319 1.381.79.47a10.037 10.037 0 0 1-3.763 2.572c-.52.2-1.071.37-1.632.48l.45-1.4v-.01l4.155-2.112zm-5.476-5.863 4.244.71.721 4.223-3.874 1.97-3.053-3.04 1.962-3.863zm-9.93.2 2.222 3.842-.62 2.471c-.34-.36-.66-.74-.951-1.15a10.2 10.2 0 0 1-1.382-2.761c-.13-.42-.22-.84-.3-1.281-.06-.37-.1-.74-.13-1.12h1.161zm16.997-2.25 1.752.36v.01l.09.02v1.25c0 2.221-.73 4.272-1.962 5.933l-.9-.55-.782-4.583 1.802-2.44zM5.754 8.452l4.284.01 2.142 3.412-2.012 3.962-3.884.01-2.192-3.772 1.662-3.622zm7.607-4.002 4.094 1.22 1.802 4.113-1.701 2.311-4.465-.75-2.112-3.392 2.382-3.502zm-8.959 1.03.46 2.372-1.69 3.702H2c.02-.43.07-.87.14-1.29.11-.651.29-1.282.52-1.882a9.759 9.759 0 0 1 1.742-2.901zm14.725-.5A9.985 9.985 0 0 1 21.7 9.594l-1.502-.31-1.702-3.872.631-.43zM10.8 2.07l1.651 1.82-2.382 3.513v-.02H5.854l-.55-2.822a10.008 10.008 0 0 1 5.495-2.491zM12.18 2c2.323.04 4.455.87 6.136 2.251l-.57.4-.01-.01-4.355-1.3L12.181 2z",fill:e.fill,fillRule:"evenodd"})}))}},52839:(e,t,i)=>{i.d(t,{t:()=>n,u:()=>l});var s=i(21377);let l=[s.QCR.AmericanFootball,s.QCR.Basketball,s.QCR.Handball,s.QCR.IceHockey];function n(e){switch(e){case s.QCR.AmericanFootball:return["passingTouchdowns","rushingTouchdowns","receivingTouchdowns","passingCompletionPercentage","rushingYardsPerAttempt","receivingYardsPerReception","defensiveInterceptions","defensiveTotalTackles","defensiveSacks","kickingFgMade"];case s.QCR.Basketball:return["points","rebounds","assists","steals","blocks","turnovers","fieldGoalsPercentage","threePointsPercentage"];case s.QCR.Handball:return["goals","assists","goals7m","steals","twoMinutePenalties","saves","goalkeeperEfficiencyPercentage","gk7mSaves"];case s.QCR.IceHockey:return["points","goals","assists","plusMinus","timeOnIce","blocked","hits","goalsAgainstAverage","savePercentage","shutouts"];default:return null}}},54863:(e,t,i)=>{i.d(t,{Ir:()=>s.A,ax:()=>d,rR:()=>p});var s=i(44565),l=i(21377),n=i(55729),r=i(45860),a=i(62859);function o(e){let t=e.reduce((e,t)=>t.statistics&&t.statistics.rating?{sum:e.sum+Number(t.statistics.rating),count:e.count+1}:e,{count:0,sum:0});return t.count?t.sum/t.count:void 0}function d(e){let{event:t}=(0,n.useContext)(a.y$),i=o(e.left.players),s=o(e.right.players),d=!!i&&!!s,{data:c}=(0,r.Ay)(d?null:l.bnp.prematchStandings(t.id));return((null==c?void 0:c.homeTeam.avgRating)||(null==c?void 0:c.awayTeam.avgRating))&&(i=null==c?void 0:c.homeTeam.avgRating,s=null==c?void 0:c.awayTeam.avgRating),[i,s]}var c=i(34765),u=i(79853),h=i(45527);function p(){let{event:e,leftTeam:t,rightTeam:i}=(0,n.useContext)(a.y$),{managers:l}=(0,u.K)(e),{lineups:r}=(0,s.A)(),{incidents:o}=(0,c.L)(),d=(0,n.useContext)(h.N);if(void 0===d)throw Error("useLineupSide must be used within a SideProvider");return"left"===d?{event:e,team:t,manager:l.leftManager,lineups:null==r?void 0:r.left,incidents:o,jersey:null==r?void 0:r.leftJerseyUrls.player,jerseyNumberColor:null==r?void 0:r.left.playerColor,startingPlayers:(null==r?void 0:r.left.players.filter(e=>!e.substitute))||[],substitutePlayers:(null==r?void 0:r.left.players.filter(e=>e.substitute))||[]}:{event:e,team:i,manager:l.rightManager,lineups:null==r?void 0:r.right,incidents:o,jersey:null==r?void 0:r.rightJerseyUrls.player,jerseyNumberColor:null==r?void 0:r.right.playerColor,startingPlayers:(null==r?void 0:r.right.players.filter(e=>!e.substitute))||[],substitutePlayers:(null==r?void 0:r.right.players.filter(e=>e.substitute))||[]}}},55217:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M4 2v14h16V2h2v20h-2v-4H4v4H2V2h2zm12.035 1L17.5 4.465 13.445 8.51l4.024 4.035L16.014 14 11.99 9.976 7.965 14 6.5 12.545l4.024-4.035-3.993-3.993 1.455-1.465 4.004 4.003L16.035 3z",fill:e.fill,fillRule:"evenodd"})}))}},55529:(e,t,i)=>{i.d(t,{V7:()=>s,kA:()=>l,vD:()=>a,Cy:()=>o,Xj:()=>d,uU:()=>c,WM:()=>r,fP:()=>n});var s=function(e){return e.Possible="possible",e.Confirmed="confirmed",e}({}),l=function(e){return e.Performance="performance",e.Club="club",e.Nationality="nationality",e.Age="age",e.MarketValue="marketValue",e.Height="height",e}({});let n={performance:"manager.performance",nationality:"nationality",club:"lineups_chip_club",age:"age",marketValue:"market_value",height:"player_height"},r=2,a={1:{gridColumn:1,gridRow:1},2:{gridColumn:3,gridRow:1},3:{gridColumn:5,gridRow:1},4:{gridColumn:2,gridRow:2},5:{gridColumn:4,gridRow:2},6:{gridColumn:1,gridRow:3},7:{gridColumn:5,gridRow:3},8:{gridColumn:3,gridRow:3},9:{gridColumn:1,gridRow:4},10:{gridColumn:2,gridRow:5},11:{gridColumn:1,gridRow:7},12:{gridColumn:3,gridRow:5},13:{gridColumn:4,gridRow:5},14:{gridColumn:5,gridRow:7},15:{gridColumn:3,gridRow:7}},o={1:{top:"5%"},2:{top:"5%"},3:{top:"5%"},4:{top:"-10%"},5:{top:"-10%"},6:{top:"-20%"},7:{top:"-20%"},8:{top:"25%"},9:{top:"25%"},10:{top:"-20%"},11:{top:"-50%"},12:{top:"30%"},13:{top:"90%"},14:{top:"-50%"},15:{top:"10%"}},d={1:{gridColumn:1,gridRow:2},2:{gridColumn:2,gridRow:2},3:{gridColumn:3,gridRow:2},4:{gridColumn:1,gridRow:4},5:{gridColumn:2,gridRow:5},6:{gridColumn:3,gridRow:5},7:{gridColumn:4,gridRow:6}},c={1:{top:"-10%"},2:{top:"25%"},3:{top:"-10%"},4:{top:"55%"},5:{top:"5%"},6:{top:"60%"},7:{top:"25%"}}},55807:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M22 4v14h-5v2H7v-2H2V4h20zM4.24 7.63h-1.1c-.07 0-.09.03-.07.09l2 6.56c.02.07.06.1.12.1h1.83c.06 0 .1-.04.12-.1l2.01-6.56c.02-.06-.01-.09-.07-.09H8c-.06 0-.1.03-.12.09l-1.63 5.56H6L4.36 7.72c-.02-.06-.06-.09-.12-.09zm8.6 0h-1.78c-.06 0-.1.03-.12.09l-2.12 6.56c-.01.07.01.1.07.1h1.07c.06 0 .1-.04.12-.1l.46-1.46h2.78l.46 1.46c.02.07.06.1.12.1h1.09c.07 0 .09-.04.07-.1l-2.1-6.56c-.02-.06-.06-.09-.12-.09zm5.84 0h-2.81c-.07 0-.1.03-.1.09v6.56c0 .07.04.1.1.1h1.03c.07 0 .1-.04.1-.1v-2.6h1.49l1.01 2.61c.02.06.06.09.13.09h1.08c.06 0 .09-.03.06-.09l-.01.01-1.09-2.77c.42-.21.73-.45.92-.73.23-.33.34-.74.34-1.22 0-.42-.1-.77-.29-1.06-.19-.29-.45-.51-.79-.66-.34-.15-.73-.23-1.17-.23zm-6.64 1.18.91 2.87h-2.06l.91-2.87h.24zm6.53-.04c.36 0 .63.07.82.21.2.14.29.34.29.61 0 .31-.08.54-.25.71-.17.17-.41.25-.72.25h-1.72V8.77z",fill:e.fill,fillRule:"evenodd"})}))}},56008:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(6029),l=i(41249),n=i(65789);function r(){return(0,s.jsxs)(n.Zp,{children:[(0,s.jsx)(n.Zp.Header,{titleId:"top_players"}),(0,s.jsx)(l.az,{h:780})]})}},58657:(e,t,i)=>{i.d(t,{M:()=>$});var s=i(6029),l=i(43681),n=i(10953),r=i(91289),a=i(97080),o=i(13181),d=i(45079),c=i(84684),u=i(86877),h=i(77749),p=i(80339),x=i(14532),f=i(35518),g=i(31698),m=i(32256),y=i(51555),v=i(12275),j=i(65549),b=i(49336),w=i(26624),_=i(4653),C=i(67996),k=i(61390),z=i(84262),A=i(55217),H=i(61848),M=i(79826),S=i(23147),L=i(33787),P=i(2424),I=i(75341),R=i(86838),O=i(20191),T=i(63788),V=i(27974),E=i(55807),B=i(87234),G=i(18682);let F={card:{yellow:{fill:"scoreRating.s65",Icon:e=>(0,s.jsx)(x.A,Object.assign({},e))},yellowRed:{Icon:e=>(0,s.jsx)(h.A,Object.assign({},e))},red:{fill:"error.default",Icon:e=>(0,s.jsx)(p.default,Object.assign({},e))}},goal:{football:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(f.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(m.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(g.A,Object.assign({},e))}},futsal:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(f.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(m.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(g.A,Object.assign({},e))},accumulatedPenalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(n.A,Object.assign({},e))}},minifootball:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(f.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(m.A,Object.assign({},e))},accumulatedPenalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(n.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(g.A,Object.assign({},e))}},"american-football":{fieldGoal:{fill:"secondary.default",Icon:e=>(0,s.jsx)(a.A,Object.assign({},e))},rouge:{fill:"secondary.default",Icon:e=>(0,s.jsx)(o.A,Object.assign({},e))},twoPointConversion:{fill:"secondary.default",Icon:e=>(0,s.jsx)(u.A,Object.assign({},e))},touchdown:{fill:"secondary.default",Icon:e=>(0,s.jsx)(c.A,Object.assign({},e))},extraPoint:{fill:"secondary.default",Icon:e=>(0,s.jsx)(r.A,Object.assign({},e))},safety:{fill:"secondary.default",Icon:e=>(0,s.jsx)(d.A,Object.assign({},e))}},rugby:{onePoint:{fill:"secondary.default",Icon:e=>(0,s.jsx)(S.A,Object.assign({},e))},twoPoints:{fill:"secondary.default",Icon:e=>(0,s.jsx)(R.A,Object.assign({},e))},threePoints:{fill:"secondary.default",Icon:e=>(0,s.jsx)(P.A,Object.assign({},e))},try:{fill:"secondary.default",Icon:e=>(0,s.jsx)(I.A,Object.assign({},e))},penaltyTry:{fill:"secondary.default",Icon:e=>(0,s.jsx)(L.A,Object.assign({},e))}},"ice-hockey":{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(j.A,Object.assign({},e))},emptynet:{fill:"secondary.default",Icon:e=>(0,s.jsx)(j.A,Object.assign({},e))},ownGoal:{fill:"error.default",Icon:e=>(0,s.jsx)(b.A,Object.assign({},e))},powerplay:{fill:"secondary.default",Icon:e=>(0,s.jsx)(_.A,Object.assign({},e))},shorthanded:{fill:"secondary.default",Icon:e=>(0,s.jsx)(C.A,Object.assign({},e))}},handball:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(y.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(v.A,Object.assign({},e))}},waterpolo:{regular:{fill:"secondary.default",Icon:e=>(0,s.jsx)(B.A,Object.assign({},e))},penalty:{fill:"secondary.default",Icon:e=>(0,s.jsx)(G.A,Object.assign({},e))}},regular:{Icon:()=>null}},substitution:{injury:{fill:"primary.default",Icon:e=>(0,s.jsx)(T.A,Object.assign({},e))},temporary:{fill:"primary.default",Icon:e=>(0,s.jsx)(V.A,Object.assign({},e))},regular:{fill:"primary.default",Icon:e=>(0,s.jsx)(O.A,Object.assign({},e))}},penaltyShootout:{"ice-hockey":{scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(w.A,Object.assign({},e))}},waterpolo:{scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(G.A,Object.assign({},e))}},rugby:{scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(H.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(A.A,Object.assign({},e))}},taker:{fill:"secondary.default",Icon:e=>(0,s.jsx)(M.A,Object.assign({},e))},scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(m.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(z.A,Object.assign({},e))}},inGamePenalty:{taker:{fill:"secondary.default",Icon:e=>(0,s.jsx)(M.A,Object.assign({},e))},scored:{fill:"secondary.default",Icon:e=>(0,s.jsx)(m.A,Object.assign({},e))},missed:{fill:"error.default",Icon:e=>(0,s.jsx)(z.A,Object.assign({},e))}},varDecision:{regular:{fill:"primary.default",Icon:e=>(0,s.jsx)(E.A,Object.assign({},e))}},suspension:{minifootball:{regular:{fill:"error.default",Icon:e=>(0,s.jsx)(l.A,Object.assign({},e))}},handball:{regular:{fill:"error.default",Icon:e=>(0,s.jsx)(l.A,Object.assign({},e))}},twoMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(l.A,Object.assign({},e))},"ice-hockey":{zeroMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(k.A,Object.assign({},e))},twoMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(k.A,Object.assign({},e))},fourMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(k.A,Object.assign({},e))},fiveMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(k.A,Object.assign({},e))},tenMinutes:{fill:"error.default",Icon:e=>(0,s.jsx)(k.A,Object.assign({},e))},regular:{fill:"error.default",Icon:e=>(0,s.jsx)(k.A,Object.assign({},e))}}}};function N({incidentType:e,incidentClass:t,sport:i,title:l,svgProps:n,fallback:r=null}){var a,o,d,c,u,h;let p=(null==(o=null==(a=F[e])?void 0:a[i])?void 0:o.regular)||(null==(d=F[e])?void 0:d.regular);if(t&&(p=(null==(u=null==(c=F[e])?void 0:c[i])?void 0:u[t])||(null==(h=F[e])?void 0:h[t])||F[e].regular),!(null==p?void 0:p.Icon))return r;let x=p.Icon;return(0,s.jsx)(x,Object.assign({width:24,height:24,fill:p.fill,title:l,style:{minWidth:(null==n?void 0:n.width)||"24px",display:"inline-block"}},n))}var D=i(41249),Y=i(55729),Z=i(947),U=i(62859),W=i(78944);let $=e=>{var t;let i=(0,Z.A)(),l=(0,Y.useContext)(U.Ws),n=null!=(t=e.sport)?t:l,r=(0,W.q6)(e.incidentType,e.incidentClass,n),a=r?i.formatMessage({id:r}):void 0;return(0,s.jsx)(N,{...e,sport:n,title:a,fallback:(0,s.jsx)(D.az,{w:16})})}},61234:(e,t,i)=>{i.d(t,{A:()=>p});var s=i(6029),l=i(91816),n=i(41249),r=i(55729),a=i(90248),o=i(65789),d=i(70591),c=i(84942),u=i(99326),h=i(73488);function p(e){let{manager:t,incidents:i,isBorderHidden:p,isCard:x=!1}=e,f=(0,c.z)(t),g=(0,r.useMemo)(()=>i?(0,u.h$)({id:t.id,incidents:i,type:"manager"}):{},[t,i]);return(0,s.jsx)(d.yI,{manager:t,style:{width:"100%"},children:(0,s.jsx)(o.HH,{isInverseDesktop:!0,isCard:!!x,children:(0,s.jsxs)(n.so,{children:[(0,s.jsx)(n.az,{px:"lg",py:"sm",children:(0,s.jsx)(l.d,{size:40,id:t.id,name:f})}),(0,s.jsx)(n.so,{borderBottom:p?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:(0,s.jsxs)(n.az,{flex:"1 1 auto",children:[(0,s.jsx)(n.so,{title:f,align:"center",children:(0,s.jsxs)(n.EY,{font:"body.medium",color:"onSurface.nLv1",mr:"xs",children:[(0,s.jsx)(n.az,{as:"span",mr:"xs",children:f}),g&&(0,s.jsx)(h.AG,{...g})]})}),(0,s.jsx)(n.EY,{font:"assistive.default",color:x?"primary.default":"onSurface.nLv3",mr:"xxs",ml:x?0:"xs",children:(0,s.jsx)(a.A,{id:"manager"})})]})})]})})})}},61390:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(90142),l=i(6029),n=i(39895);function r(e){var{fill:t="error.default"}=e,i=(0,s.T)(e,["fill"]);return(0,l.jsx)(n.A,Object.assign({width:24,height:24,fill:t,viewBox:"0 0 24 24"},i,{children:(0,l.jsx)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:(0,l.jsx)("path",{d:"M4 2v14h16V2h2v20H2V2h2zm10 7 3 2v4H7v-4l3-2h4zm-2-7a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"})}))}))}},61703:(e,t,i)=>{i.d(t,{b:()=>o});var s=i(6029),l=i(76356),n=i(41735),r=i(51372);let a=e=>{let{branding:t,entityId:i,children:a,isInverseDesktop:o,location:d}=e,c=(0,n.useTheme)();return(0,s.jsxs)(l.az,{br:{base:"lg",md:o?"lg":"xl"},borderLeft:"[2px solid]",borderRight:"[2px solid]",borderBottom:"[2px solid]",overflow:"hidden",style:{borderColor:t.brand.color[c.name]},children:[(0,s.jsx)(r.O,{entityId:i,branding:t,location:d}),a]})},o=e=>{let{branding:t,children:i,...l}=e;return t?(0,s.jsx)(a,{branding:t,...l,children:i}):(0,s.jsx)(s.Fragment,{children:i})}},61777:(e,t,i)=>{i.r(t),i.d(t,{default:()=>eg,excludedSeasonIds:()=>ex});var s=i(6029),l=i(21377),n=i(95083),r=i(41249),a=i(55729),o=i(90248),d=i(45860),c=i(65789),u=i(62859),h=i(8703),p=i(16206),x=i(30182),f=i(10292),g=i(947),m=i(54409),y=i(52839),v=i(70591),j=i(30971),b=i(73959),w=i(24159),_=i(41078),C=i(56008),k=i(65078);function z(e){let{statistic:t,topPlayer:i,sport:l,first:n,left:a}=e;return i?(0,s.jsxs)(r.so,{h:56,w:"100%",align:"center",direction:a?"row":"row-reverse",gap:"lg",overflow:"hidden",hoverBg:"surface.s2",cursor:"pointer",pl:a?"lg":void 0,pr:a?void 0:"lg",children:[(0,s.jsx)(f.t,{size:40,id:i.player.id,style:{display:"block"}}),(0,s.jsxs)(r.so,{overflow:"hidden",direction:"column",justify:"center",align:a?"flex-start":"flex-end",gap:"xs",children:[(0,s.jsx)(r.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,s.jsx)(j.A,{sport:l,stat:i.statistics,selectedStat:t})}),(0,s.jsx)(r.EY,{w:"100%",font:"assistive.default",color:"onSurface.nLv3",ellipsis:!0,as:"div",children:(0,s.jsx)(w.c,{entity:i.player,short:!0})})]})]}):n?(0,s.jsx)(_.A,{messageId:"yet.to.perform",isInverted:!a,width:"100%"}):null}function A(e){let{statistic:t,homePlayer:i,awayPlayer:l,sport:n,first:o}=e;if(!i&&!l)return null;let d=(null==i?void 0:i.player)?v.uc:a.Fragment,c=(null==l?void 0:l.player)?v.uc:a.Fragment;return(0,s.jsxs)(r.so,{justify:i||o?"space-between":"flex-end",children:[(0,s.jsx)(d,{player:null==i?void 0:i.player,style:{width:"50%"},children:(0,s.jsx)(z,{statistic:t,topPlayer:i,sport:n,first:o,left:!0})}),(0,s.jsx)(c,{player:null==l?void 0:l.player,style:{width:"50%"},children:(0,s.jsx)(z,{statistic:t,topPlayer:l,sport:n,first:o})})]})}function H(e){let{statistic:t,homePlayers:i,awayPlayers:n,sport:o,type:d}=e,c=(0,g.A)(),[u,h]=(0,a.useState)(!1);return i.length||n.length?(0,s.jsxs)(r.az,{style:{userSelect:"none"},children:[(0,s.jsxs)(r.so,{bg:u?"surface.s2":"transparent",pt:"md",pb:"xs",align:"center",justify:"center",onClick:()=>h(e=>!e),cursor:"pointer",children:[(0,s.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",mr:"xs",children:(0,b.y)(c,t,o,d===l.Vw_.playoffs)}),(0,s.jsx)(m.zQC,{icon:u?"chevron-up":"chevron-down",width:24,height:24,fill:"onSurface.nLv1"})]}),(0,s.jsx)(A,{statistic:t,homePlayer:i[0],awayPlayer:n[0],sport:o,first:!0}),u&&Array.from({length:4}).map((e,l)=>{let r=l+1;return(0,s.jsx)(A,{statistic:t,homePlayer:i[r],awayPlayer:n[r],sport:o},t+r)})]}):null}function M(e){let{homeTeamId:t,awayTeamId:i,sport:n,uniqueTournamentId:o,seasonId:u,type:h}=e,{data:p,error:x}=(0,d.Ay)(l.cWY.topPlayers(t,o,u,h)),{data:f,error:g}=(0,d.Ay)(l.cWY.topPlayers(i,o,u,h)),m=(0,a.useMemo)(()=>(0,y.t)(n),[o]);return x&&g||!m?null:((null==p?void 0:p.topPlayers)||x)&&((null==f?void 0:f.topPlayers)||g)?(0,s.jsxs)(c.Zp,{children:[(0,s.jsx)(c.Zp.Header,{titleId:"top_players"}),(0,s.jsx)(r.az,{pb:["sm","md"],children:m.map(e=>(0,s.jsx)(H,{sport:n,statistic:e,homePlayers:((null==p?void 0:p.topPlayers[e])||[]).filter(e=>e.playedEnough),awayPlayers:((null==f?void 0:f.topPlayers[e])||[]).filter(e=>e.playedEnough),type:h},e))})]}):(0,s.jsx)(C.A,{})}function S(e){var t,i;let{event:l}=e,n=l.tournament.category.sport.slug,r=(0,k.g3)();return l.seasonStatisticsType&&(null==(t=l.tournament.uniqueTournament)?void 0:t.id)&&(null==(i=l.season)?void 0:i.id)&&-1!==y.u.indexOf(n)?(0,s.jsx)(M,{homeTeamId:r?l.awayTeam.id:l.homeTeam.id,awayTeamId:r?l.homeTeam.id:l.awayTeam.id,sport:n,uniqueTournamentId:l.tournament.uniqueTournament.id,seasonId:l.season.id,type:l.seasonStatisticsType}):null}var L=i(79853),P=i(22835),I=i(73011),R=i(54863),O=i(12174),T=i(99382),V=i(26331),E=i(73088),B=i(28132),G=i(90715),F=i(19168),N=i(30479),D=i(23695),Y=i(12785),Z=i(19673),U=i(10234),W=i(52695);function $(e){let{event:t}=e,i=(0,V.A)(),n=(0,Z.y)(i);if(t.tournament.category.sport.slug!==l.QCR.Football||!t.hasEventPlayerStatistics)return null;let a=t.tournament.uniqueTournament?(0,s.jsx)(W.O,{uniqueTournament:t.tournament.uniqueTournament}):(0,s.jsx)(U.J,{tournament:t.tournament});return(0,s.jsx)(c.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(r.so,{p:"md",gap:"lg",children:[(0,s.jsx)(m.G_L,{fill:"onSurface.nLv3",width:"24",height:"24",minW:24}),(0,s.jsxs)(r.az,{children:[(0,s.jsx)(r.EY,{block:!0,font:"body.small",color:"onSurface.nLv1",mb:"sm",children:(0,s.jsx)(o.A,{id:"rating_lineups_info",values:{name:a}})}),(0,s.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer",children:[(0,s.jsx)(r.EY,{textTransform:"firstLetter",font:"assistive.default",color:"primary.default",children:(0,s.jsx)(o.A,{id:"read_more"})}),(0,s.jsx)(m.CCT,{width:"16",height:"16",ml:"xxs",fill:"primary.default",style:{verticalAlign:"middle"}})]})]})]})})}var Q=i(67717),K=i(12047),X=i(61234),q=i(5276),J=i(5998),ee=i(33144),et=i(94604);let ei=e=>{let{sportSlug:t,team:i}=e;return(0,s.jsx)(r.so,{w:"100%",grow:1,justify:"flex-start",pl:"lg",children:(0,s.jsx)(v.gT,{team:i,sport:t,children:(0,s.jsxs)(r.so,{align:"center",cursor:"pointer",gap:"lg",children:[(0,s.jsx)(ee.p,{id:i.id,name:i.name,size:40}),(0,s.jsx)(r.EY,{font:"display.large",children:(0,s.jsx)(et.Rm,{team:i})})]})})})};function es(e){var t,i,n,o,d,h,p,x,f,g;let{event:m,leftTeam:y,rightTeam:v}=(0,a.useContext)(u.y$),j=m.tournament.category.sport.slug,b=j===l.QCR.Football,w=e.lineups.left.players.some(e=>e.substitute)||e.lineups.right.players.some(e=>e.substitute),_=!!(e.lineups.left.players.find(e=>e.statistics&&e.statistics.rating)||e.lineups.right.players.find(e=>e.statistics&&e.statistics.rating));return(0,s.jsxs)(r.so,{direction:"column",gap:"sm",children:[b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.so,{gap:"md",my:"sm",children:[(0,s.jsx)(ei,{sportSlug:j,team:y}),(0,s.jsx)(ei,{sportSlug:j,team:v})]}),(0,s.jsxs)(r.so,{gap:"md",children:[(0,s.jsx)(r.so,{w:"100%",maxW:"50%",grow:1,children:(null==(t=e.managers)?void 0:t.leftManager)&&(0,s.jsx)(X.A,{manager:null==(i=e.managers)?void 0:i.leftManager,isBorderHidden:!0,incidents:null==(n=e.incidents)?void 0:n.filter(e=>e.manager),isCard:!0})}),(0,s.jsx)(r.so,{w:"100%",maxW:"50%",grow:1,children:(null==(o=e.managers)?void 0:o.rightManager)&&(0,s.jsx)(X.A,{manager:null==(d=e.managers)?void 0:d.rightManager,isBorderHidden:!0,incidents:null==(h=e.incidents)?void 0:h.filter(e=>e.manager),isCard:!0})})]})]}),!e.hasFormation&&b&&(0,s.jsxs)(c.Zp,{children:[(0,s.jsx)(c.Zp.Header,{titleId:"startingEleven.title"}),(0,s.jsxs)(r.so,{children:[(0,s.jsx)(J.A,{players:e.lineups.left.players.filter(e=>!e.substitute),team:y,manager:null==(p=e.managers)?void 0:p.leftManager,highlightStarters:!1,hasRating:_,event:m,...e},"left"),(0,s.jsx)(r.cG,{mt:"sm",mb:"md",vertical:!0,mx:"sm"}),(0,s.jsx)(J.A,{players:e.lineups.right.players.filter(e=>!e.substitute),team:v,manager:null==(x=e.managers)?void 0:x.rightManager,hasTopBorder:!1,highlightStarters:!1,hasRating:_,event:m,...e},"right")]})]}),w&&(0,s.jsxs)(c.Zp,{isInverseDesktop:!0,children:[b&&(0,s.jsx)(c.Zp.Header,{titleId:"substitutions"}),(0,s.jsxs)(r.so,{children:[(0,s.jsx)(J.A,{players:b?e.lineups.left.players.filter(e=>e.substitute):e.lineups.left.players,team:y,manager:null==(f=e.managers)?void 0:f.leftManager,hasRating:_,event:m,...e},"left"),(0,s.jsx)(r.cG,{mt:"sm",mb:"md",vertical:!0,mx:"sm"}),(0,s.jsx)(J.A,{players:b?e.lineups.right.players.filter(e=>e.substitute):e.lineups.right.players,team:v,manager:null==(g=e.managers)?void 0:g.rightManager,hasTopBorder:!1,hasRating:_,event:m,...e},"right")]})]}),(0,s.jsx)(q.PM,{left:e.lineups.left.missingPlayers,right:e.lineups.right.missingPlayers})]})}function el(e){var t,i,n;let o=(0,K.Ay)({isSportMenuVisible:!0,isInMobileTabs:!0}),[d,h]=(0,a.useState)(l.cxP.Left),p=d===l.cxP.Left?e.lineups.left:e.lineups.right,{event:x,leftTeam:f,rightTeam:g}=(0,a.useContext)(u.y$),m=e.hasFormation?p.players.filter(e=>e.substitute):p.players,y=x.tournament.category.sport.slug===l.QCR.Football,v=d===l.cxP.Left?null==(t=e.managers)?void 0:t.leftManager:null==(i=e.managers)?void 0:i.rightManager,j=e.lineups.left.players.some(e=>e.substitute)||e.lineups.right.players.some(e=>e.substitute),b=e.lineups[d].players.filter(e=>!e.substitute),w=e.lineups[d].players.filter(e=>e.substitute),_=!!(e.lineups.left.players.find(e=>e.statistics&&e.statistics.rating)||e.lineups.right.players.find(e=>e.statistics&&e.statistics.rating)),C=y&&!!b.length;return(0,s.jsxs)(r.az,{children:[(0,s.jsx)(r.PI,{top:o,children:e=>(0,s.jsx)(r.az,{bg:[void 0,"surface.s1"],mt:-8,mx:-8,px:"sm",py:e?0:"sm",children:(0,s.jsx)(r.az,{bg:"surface.s1",br:e?void 0:"lg",elevation:[e?void 0:2,void 0],w:[e?"100vw":"100%","100%"],mx:[e?-8:0,0],py:["sm",0],children:(0,s.jsx)(Q.n,{mt:"0",px:["sm",0],gap:"sm",activeTeam:d,onTeamClick:h})})})}),(0,s.jsxs)(r.so,{direction:"column",gap:"sm",children:[v&&(0,s.jsx)(X.A,{manager:v,incidents:null==(n=e.incidents)?void 0:n.filter(e=>e.manager),isCard:!0,isBorderHidden:!0}),!e.hasFormation&&(0,s.jsxs)(c.Zp,{isInverseDesktop:!0,children:[C&&(0,s.jsx)(c.Zp.Header,{titleId:"startingEleven.title",as:"h4"}),(0,s.jsx)(J.A,{hideTeamHeader:!0,players:y?b:m,team:d===l.cxP.Left?f:g,highlightStarters:!y,hasRating:_,event:x,...e},d)]}),j&&y&&!!w.length&&(0,s.jsxs)(c.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(c.Zp.Header,{titleId:"substitutions",as:"h4"}),(0,s.jsx)(J.A,{hideTeamHeader:!0,players:w,team:d===l.cxP.Left?f:g,hasRating:_,event:x,...e},d)]}),!!(e.lineups.left.missingPlayers||e.lineups.right.missingPlayers)&&(0,s.jsx)(q.Sb,{missingPlayers:p.missingPlayers})]})]})}function en(e){let{isMobile:t,isDesktop:i}=(0,n.$c)(),{location:l}=(0,a.useContext)(u.y$),r=i&&l===u.cb.EventPage;return t||!r?(0,s.jsx)(el,{...e}):(0,s.jsx)(es,{...e})}function er(e){let t,l,d=(0,V.A)(),{event:c,location:h}=(0,a.useContext)(u.y$),{bestPlayer:p}=(0,O.Y)(c),{isDesktop:x}=(0,n.$c)(),f=x&&h===u.cb.EventPage;try{t=e.lineups.left.formation?(0,G.V)(e.lineups.left.formation,e.lineups.left.players.filter(e=>!e.substitute)):void 0,l=e.lineups.right.formation?(0,G.V)(e.lineups.right.formation,e.lineups.right.players.filter(e=>!e.substitute)):void 0}catch(e){console.error(e)}let g=!!(t&&l),y=window.location.host+E.z.getTranslatedRoute(d,"event",{id:c.customId,name:c.slug,sport:c.tournament.category.sport.slug}).route,v="#"+(0,N.HL)({id:c.id,tab:B.H.Lineups}),{isShareEnabled:j,componentRef:b,shareButton:w}=function(e,t){var l;let[n,d]=(0,F.yR)("sofa.isComponentShareEnabled",!!(null==(l=window.navigator.clipboard)?void 0:l.write)),[c,u]=(0,a.useState)(!1),h=(0,a.useRef)(null),p={autoClose:5e3,closeButton:!1,className:"sofa-toast--info",position:"bottom-center"},x=(0,a.useCallback)(async()=>{if(h.current&&n)try{u(!0);let e=(await i.e(3933).then(i.t.bind(i,63067,23))).default,l=await e(h.current,{useCORS:!0,allowTaint:!0}),n=await new Promise(e=>l.toBlob(e)),a=new Blob([t||""],{type:"text/plain"});n&&(await window.navigator.clipboard.write([new ClipboardItem({"image/png":n,"text/plain":a})]),(0,F.MZ)((0,s.jsxs)(r.so,{align:"center",children:[(0,s.jsx)(m.G_L,{fill:"onColor.primary",mr:"lg"}),(0,s.jsx)(r.EY,{block:!0,color:"onColor.primary",font:"display.small",children:(0,s.jsx)(o.A,{id:"basic.copiedToClipboard"})})]}),p))}catch(e){d(!1),(0,F.MZ)((0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.so,{align:"center",children:[(0,s.jsx)(m.cgL,{fill:"onColor.primary",mr:"md"}),(0,s.jsx)(r.EY,{block:!0,c:"onColor.primary",font:"display.small",children:(0,s.jsx)(o.A,{id:"error.anErrorOccurred"})})]}),e.message&&(0,s.jsx)(r.EY,{block:!0,c:"onColor.primary",font:"body.small",mt:"sm",children:e.message})]}),{...p,className:"sofa-toast--error"})}finally{u(!1)}},[h.current,c,n]),f=n?(0,s.jsx)(o.A,{id:"basic.share",children:t=>(0,s.jsx)(r.$n,{"aria-label":String(t),size:"xs",tertiary:!0,disabled:c,style:c?{cursor:"wait"}:void 0,onClick:x,children:e||(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.A,{id:"basic.share"}),(0,s.jsx)(m.VJ,{fill:"surface.s1",ml:"xxs",width:16,height:16})]})})}):null;return{isGeneratingScreenshot:c,shareButton:f,componentRef:h,isShareEnabled:n}}((0,s.jsxs)(r.so,{justify:"center",align:"center",children:[(0,s.jsx)(o.A,{id:"share_match_lineups"}),(0,s.jsx)(m.VJ,{fill:"surface.s1",ml:"xxs",width:"16",height:"16"})]}),y+v);return(0,s.jsxs)(r.az,{children:[g&&(0,s.jsx)(r.az,{bg:["surface.s1",void 0],px:[0,f?"sm":0],children:(0,s.jsx)(Y.Ko,{...e,leftFormation:t,rightFormation:l,ref:b,playerOfTheMatchId:null==p?void 0:p.player.id,isShareEnabled:j,shareButton:w})}),(0,s.jsxs)(r.so,{direction:"column",gap:"sm",p:"sm",children:[(0,s.jsxs)(r.so,{direction:f?"column-reverse":"column",gap:"sm",children:[(0,s.jsx)(en,{...e,hasFormation:g,playerOfTheMatchId:null==p?void 0:p.player.id}),(0,s.jsx)(D.K,{})]}),(0,s.jsx)($,{event:c}),(0,s.jsx)(T.Xl,{event:c})]})]})}var ea=i(76868);function eo(e){let{lineups:t,managers:i}=e,[n,o]=(0,a.useState)(l.cxP.Left),{event:d,leftTeam:h,rightTeam:p}=(0,a.useContext)(u.y$),x=(0,K.Ay)(),[f,g,m]=n===l.cxP.Left?[h,i.leftManager,t.left]:[p,i.rightManager,t.right];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.az,{bg:"surface.s1",w:"100%",position:"sticky",top:[x,0],zIndex:r.Py.Sticky,p:"sm",children:(0,s.jsx)(Q.n,{activeTeam:n,onTeamClick:e=>o(e)})}),(0,s.jsxs)(r.so,{p:"sm",gap:"sm",direction:"column",children:[(0,s.jsxs)(c.Zp,{isInverseDesktop:!0,children:[(0,s.jsx)(c.Zp.Header,{titleId:"probable_pitchers"}),(0,s.jsx)(J.A,{players:m.players,team:f,event:d,hideTeamHeader:!0}),0===m.players.length&&(0,s.jsx)(ea.p,{graphic:"no-data",descriptionMessageId:"probable_pitchers_empty"})]}),!!(t.left.missingPlayers||t.right.missingPlayers)&&(0,s.jsx)(q.Sb,{missingPlayers:m.missingPlayers})]})]})}function ed(){return(0,s.jsx)(r.az,{h:900})}function ec(){let{event:e}=(0,a.useContext)(u.y$),{managers:t}=(0,L.K)(e),{lineups:i,confirmed:n,error:r}=(0,R.Ir)({jerseyStyle:"fancy"}),{data:o}=(0,d.Ay)(l.bnp.incidents(e.id),(0,h.rf)(e));return r?null:i?n?(0,s.jsx)(er,{lineups:i,incidents:null==o?void 0:o.incidents,managers:t,confirmed:n,showPlayerStatistics:!1}):(0,s.jsx)(eo,{lineups:i,managers:t}):(0,s.jsx)(ed,{})}var eu=i(31130),eh=i(27778),ep=i(75318);let ex=[17564,17565,17566,17567,17568,17569,17570,17571,1151,2636,16,2531,7528],ef=e=>{let{showPlayerStatistics:t}=e,{event:i,location:f}=(0,a.useContext)(u.y$),g=i.tournament.category.sport.slug,{managers:m}=(0,L.K)(i),{lineups:y,confirmed:v,error:j}=(0,R.Ir)({jerseyStyle:g===l.QCR.Football?"clean":"fancy"}),{data:b}=(0,d.Ay)(l.bnp.incidents(i.id),(0,h.rf)(i)),{hasPregameTopPlayers:w}=(0,P.M)(i),{isDesktop:_}=(0,n.$c)(),C=_&&f===u.cb.EventPage,k=i.season&&ex.includes(i.season.id);if(w&&(j||y&&!v))return(0,s.jsxs)(r.so,{direction:"column",p:["sm",0],gap:["sm","md"],children:[(0,s.jsx)(S,{event:i}),(0,s.jsx)(x.m,{home:null==y?void 0:y.left.missingPlayers,away:null==y?void 0:y.right.missingPlayers})]});if(!y)return(0,s.jsx)(eh.A,{});let z=g!==l.QCR.Football?(0,s.jsx)(c.Zp.Header,{titleId:I.bU.includes(g)?"boxScore":"players",as:"h2"}):null;return _&&t?(0,s.jsxs)(c.HH,{isCard:C,children:[z,(0,s.jsxs)(r.tU,{variant:"secondary",initialValue:1,children:[(0,s.jsxs)(r.az,{pt:"md",px:"md",children:[(0,s.jsx)(r.tU.Tab,{tabKey:1,children:(0,s.jsx)(o.A,{id:"lineups"})}),!k&&(0,s.jsx)(r.tU.Tab,{tabKey:2,children:(0,s.jsx)(o.A,{id:"player_stats"})})]}),(0,s.jsx)(r.tU.Panel,{tabKey:1,children:(0,s.jsx)(er,{lineups:y,incidents:null==b?void 0:b.incidents,managers:m,confirmed:v})}),!k&&(0,s.jsx)(r.tU.Panel,{tabKey:2,children:(0,s.jsx)(p.A,{lineups:y})})]})]}):(0,s.jsxs)(c.HH,{isCard:C,children:[z,(0,s.jsx)(er,{lineups:y,incidents:null==b?void 0:b.incidents,managers:m,confirmed:v,showPlayerStatistics:t})]})};function eg(e){let{hasLineups:t,showPlayerStatistics:i}=e,{event:n}=(0,a.useContext)(u.y$),r=n.tournament.category.sport.slug,o=r===l.QCR.ESports&&(0,h.f2)(n.tournament.category.id),{couldHavePregameTopPlayers:d}=(0,P.M)(n);return o||!1===t&&!d?null:r===l.QCR.Cricket?(0,s.jsx)(eu.A,{}):r===l.QCR.Rugby?(0,s.jsx)(ep.u,{}):r===l.QCR.Baseball?(0,s.jsx)(ec,{}):(0,s.jsx)(ef,{showPlayerStatistics:i})}},61848:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",Object.assign({fill:e.fill,fillRule:"evenodd"},{children:[(0,s.jsx)("path",{d:"M20 2v14H4V2H2v20h2v-4h16v4h2V2z"}),(0,s.jsx)("path",{d:"m9.974 12.638.667-1.58 4.412-4.412 1.747-.708 1.147-.12c.018-.168.036-.336.042-.504.06-1.261-.114-2.09-.589-2.654l-.06-.06c-.696-.588-1.735-.63-2.653-.588-.174.006-.342.03-.51.048l-.157 1.315-.666 1.578-4.412 4.413-1.747.708-1.141.12c-.018.168-.036.33-.042.505-.006.162-.012.312-.012.468 0 1.02.186 1.699.6 2.191l.06.06c.703.588 1.741.624 2.66.588.174-.006.342-.03.51-.048l.156-1.314-.012-.006zM6.978 8.886l1.28-.54 4.081-4.083.54-1.279.079-.738a9.147 9.147 0 0 0-4.323 2.377 9.14 9.14 0 0 0-2.395 4.34l.738-.077zM17.016 7.12l-1.279.54-4.076 4.076-.54 1.279-.078.738a9.194 9.194 0 0 0 4.328-2.377 9.133 9.133 0 0 0 2.39-4.334l-.739.078h-.006z"})]}))}))}},63296:(e,t,i)=>{i.d(t,{x:()=>o});var s=i(83217),l=i(60449),n=i.n(l);i(82823);let r={xxs:"2px",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px",xxl:"32px"},a=e=>"string"==typeof e?e.split(" ").map(e=>n()(r,e,e)).join(" "):e,o=(0,s.n)({h:{property:"height",domain:"spacing"},maxH:{property:"maxHeight",domain:"spacing"},minH:{property:"minHeight",domain:"spacing"},w:{property:"width",domain:"spacing"},maxW:{property:"maxWidth",domain:"spacing"},minW:{property:"minWidth",domain:"spacing"},m:{property:"margin",domain:"spacing",transform:a},mt:{property:"marginTop",domain:"spacing"},mb:{property:"marginBottom",domain:"spacing"},ml:{property:"marginLeft",domain:"spacing",rtlProperty:"marginRight"},mr:{property:"marginRight",domain:"spacing",rtlProperty:"marginLeft"},mx:{properties:["marginLeft","marginRight"],domain:"spacing"},my:{properties:["marginTop","marginBottom"],domain:"spacing"},p:{property:"padding",domain:"spacing",transform:a},pt:{property:"paddingTop",domain:"spacing"},pb:{property:"paddingBottom",domain:"spacing"},pl:{property:"paddingLeft",domain:"spacing",rtlProperty:"paddingRight"},pr:{property:"paddingRight",domain:"spacing",rtlProperty:"paddingLeft"},px:{properties:["paddingLeft","paddingRight"],domain:"spacing"},py:{properties:["paddingTop","paddingBottom"],domain:"spacing"}})},63788:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(90142),l=i(6029),n=i(39895);function r(e){var{fill:t="primary.default"}=e,i=(0,s.T)(e,["fill"]);return(0,l.jsx)(n.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:t},i,{children:(0,l.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,l.jsx)("path",{d:"M7 7h10v3h1l4-4-4-4h-1v3H7L5 7v5h2V7zm0 7H6l-4 4 4 4h1v-3h5v-2H7v-3z",fill:t}),(0,l.jsx)("path",{fill:"#C7361F",d:"M22 17h-3v-3h-2v3h-3v2h3v3h2v-3h3z"})]}))}))}},65549:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"m21.69 9.499-3-5.13c-.37-.64-1.38-1.66-3.97-1.29-1.75.25-3.92 1.1-6.26 2.45-5.04 2.91-7.39 6.08-6.12 8.29 0 0 0 .01.01.02l2.99 5.12c.51.87 1.44 1.3 2.73 1.3 1.84 0 4.4-.89 7.41-2.63 2.36-1.36 4.19-2.78 5.28-4.1 1.67-2.01 1.3-3.39.93-4.03zm-17.62 3.31c-.37-.64.84-2.92 5.39-5.55 2.68-1.55 4.5-2.05 5.55-2.2 1.21-.17 1.81.06 1.96.31.14.24.03.83-.74 1.75-.66.79-2.02 2.07-4.75 3.64-4.82 2.78-7.11 2.57-7.41 2.05zm15.16-.56c-.66.79-2.02 2.07-4.75 3.64-4.82 2.78-7.11 2.57-7.41 2.05l-.87.5.86-.5-1.65-2.83c1.81-.1 4.24-.98 7.07-2.62 2.36-1.36 4.19-2.78 5.28-4.1.21-.25.39-.5.54-.73l1.66 2.84c.14.24.03.83-.74 1.75h.01z",fill:e.fill,fillRule:"evenodd"})}))}},67996:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(6029),l=i(41735),n=i(39895);function r(e){let t=(0,l.useTheme)();return(0,s.jsx)(n.A,Object.assign({width:24,height:24,viewBox:"0 0 24 24"},e,{children:(0,s.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,s.jsx)("path",{d:"m21.746 13.238-2.37-4.092c-.303-.533-1.125-1.382-3.235-1.084a8.223 8.223 0 0 0-1.27.298c-.291.09-.89.32-1.796.686-.626.28-1.26.597-1.922.985-4.04 2.358-5.908 4.941-4.871 6.757v.018l2.36 4.083C9.07 21.629 9.839 22 10.885 22c1.466 0 3.486-.714 5.909-2.132 1.877-1.093 3.325-2.231 4.2-3.297 1.36-1.653 1.047-2.8.743-3.342l.009.009zM7.828 15.885c-.196-.353.456-2.096 4.22-4.291 2.109-1.229 3.521-1.626 4.343-1.744.975-.135 1.368.073 1.44.2.071.117.035.541-.573 1.273-.518.623-1.582 1.635-3.718 2.881-3.817 2.223-5.524 2.006-5.712 1.671v.01zm11.808-.461c-.518.623-1.582 1.635-3.718 2.881-3.817 2.223-5.524 2.006-5.712 1.672l-.778.451.769-.451-1.216-2.096c1.422-.127 3.272-.831 5.453-2.105 1.877-1.093 3.325-2.231 4.2-3.297.135-.163.233-.307.34-.46l1.234 2.122c.098.163-.045.632-.572 1.274v.009z",fill:t.colors.secondary.default}),(0,s.jsx)("g",Object.assign({fill:t.colors.error.default,fillRule:"nonzero"},{children:(0,s.jsx)("path",{d:"M1.001 5.845C1.164 7.263 2.198 8 3.721 8c1.542 0 2.614-.89 2.614-2.145 0-1.207-.67-1.886-2.566-2.001-1.053-.067-1.37-.345-1.37-.872 0-.479.422-.852 1.14-.852.795 0 1.283.364 1.37.948.009.057.047.096.105.096h1.091c.058 0 .096-.039.087-.096C6.029 1.795 5.062 1 3.558 1c-1.379 0-2.403.824-2.403 2.01 0 1.39.986 1.868 2.509 1.954.995.058 1.407.336 1.407.939 0 .584-.488.967-1.34.967-.766 0-1.36-.345-1.446-1.025-.01-.057-.048-.095-.106-.095H1.088c-.058 0-.096.038-.087.095zM7.312 7.808c0 .058.038.096.096.096h1.034c.057 0 .096-.038.096-.096V4.974h3.016v2.834c0 .058.038.096.096.096h1.034c.058 0 .096-.038.096-.096V1.192c0-.058-.038-.096-.096-.096H11.65c-.058 0-.096.038-.096.096v2.633H8.538V1.192c0-.058-.039-.096-.096-.096H7.408c-.058 0-.096.038-.096.096v6.616z"})}))]}))}))}},71306:(e,t,i)=>{i.d(t,{A:()=>a,I:()=>r});var s=i(55729),l=i(48886),n=i(99586);let r=(e,t)=>{let i=t.short||e.stat.short;return i&&t.short===e.stat.short||!i&&e.stat.value===t.value?{stat:e.stat,dir:e.dir===l.U.DESC?l.U.ASC:l.U.DESC}:{stat:t,dir:l.U.DESC}},a=(e,t,i)=>{let[a,o]=(0,s.useState)({stat:t,dir:l.U.DESC}),d=(0,n.C)(e,a,t,i),c=(0,s.useCallback)(e=>{o(t=>r(t,e))},[]);return{sortConfig:a,setSortConfig:o,sortedPlayers:d,updateSortStatistic:c}}},73488:(e,t,i)=>{i.d(t,{AG:()=>o,FU:()=>a,X0:()=>d});var s=i(6029),l=i(41249),n=i(54409),r=i(58657);let a=e=>{let{isInjury:t}=e;return t?(0,s.jsx)(n.NcS,{icon:"substitution-injured"}):(0,s.jsx)(n.NcS,{icon:"substitution"})},o=e=>{let{hasYellowCard:t,hasRedCard:i,hasYellowRedCard:l}=e;return l?(0,s.jsx)(n.NcS,{icon:"card-double-yellow",width:"16",height:"16"}):i?(0,s.jsx)(n.NcS,{icon:"card",width:"16",height:"16",fill:"error.default"}):t?(0,s.jsx)(n.NcS,{icon:"card",width:"16",height:"16",fill:"scoreRating.s65"}):null},d=e=>{let{goalsScored:t,hasScoredPenalty:i,hasScoredOwnGoal:a,inField:o}=e;if(a&&!t)return(0,s.jsx)(n.NcS,{icon:"football-own-goal",width:"16",height:"16",fill:"error.default","data-testid":"lineups_goal_info"});if(i&&1===t)return(0,s.jsx)(n.NcS,{icon:"football-penalty",width:"16",height:"16",fill:"secondary.default","data-testid":"lineups_goal_info"});if(t){if(o){let e=t>1;return(0,s.jsxs)(l.az,{position:"relative",left:e?"6":void 0,ml:"xxs","data-testid":"lineups_goal_info",children:[e&&(0,s.jsx)(l.EY,{font:"table.small",color:"secondary.default",position:"relative",children:t}),(0,s.jsx)(r.M,{incidentType:"goal",incidentClass:"regular",svgProps:{fill:"secondary.default",width:16,height:16}})]})}return(0,s.jsx)(l.az,{position:"relative",ml:"xxs","data-testid":"lineups_goal_info",children:Array(t).fill(0).map((e,t)=>(0,s.jsx)(r.M,{incidentType:"goal",incidentClass:"regular",svgProps:{fill:"secondary.default",width:16,height:16}},"goal-".concat(t)))})}return null}},75318:(e,t,i)=>{i.d(t,{u:()=>Y});var s=i(6029),l=i(95083),n=i(41249),r=i(55729),a=i(65789),o=i(62859),d=i(90248),c=i(33007),u=i(33144),h=i(8703),p=i(16620),x=i(48886),f=i(70591),g=i(24159),m=i(54863),y=i(55529),v=i(61234),j=i(5998),b=i(41735);let w=()=>{let{colors:e}=(0,b.useTheme)();return(0,s.jsx)("svg",{viewBox:"0 0 344 608",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,s.jsx)("path",{fill:e.graphicsTerrain.football,d:"M0 0h344v608H0z"}),(0,s.jsx)("g",{fill:e.onSurface.nLv5,children:(0,s.jsx)("path",{d:"M4 52h336v72H4zM4 196h336v72H4zM4 340h336v72H4zM4 484h336v72H4z"})}),(0,s.jsxs)("g",{fill:e.surface.s1,fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M340 303H4v289h336V303zM5.953 305.001h332.094v285H5.953v-285z"}),(0,s.jsx)("path",{d:"M4 556.011h336v-2.054H4zM4 446.011h336v-2.054H4z"}),(0,s.jsx)("path",{d:"M28 458.011v-26h2v26zM134 532.012h25.436v-2.054H134zM112 356.012h26v-2.054h-26zM159 356.012h26v-2.054h-26zM205 356.012h26v-2.054h-26zM184 532.012h25.436v-2.054H184zM92 532.012H66v-2.054h12v-24.85h2v24.85h12zM92 356.027H80v11.985h-2v-11.985H66v-2.03h12v-11.985h2v11.985h12zM327 356.027h-12v11.985h-2v-11.985h-12v-2.03h12v-11.985h2v11.985h12zM42 356.027H30v11.985h-2v-11.985H16v-2.03h12v-11.985h2v11.985h12zM277 356.027h-12v11.985h-2v-11.985h-12v-2.03h12v-11.985h2v11.985h12zM280.339 532.012H255v-2.054h11.74v-24.85h2.054v24.85h11.545zM330.339 532.012H305v-2.054h11.74v-24.85h2.054v24.85h11.545zM42 532.012H16v-2.054h12v-24.85h2v24.85h12zM78 458.012v-26h2v26zM266.63 458.011v-26h2.054v26zM28 316.012h2v-12h-2zM78 316.012h2v-12h-2zM263 316.012h2v-12h-2zM313 316.012h2v-12h-2zM316.728 458.011v-26h2.055v26zM190.127 600.012l-3.509-34.731h-29.355l-3.507 34.693-1.965-.045 4.314-43.917h2.065l-.71 7.215h28.962l-.703-7.215h1.981l4.774 43.962z"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M340 305.011H4v-289h336v289zM5.953 303.01h332.094v-285H5.953v285z"}),(0,s.jsx)("path",{d:"M4 52h336v2.054H4zM4 162h336v2.054H4z"}),(0,s.jsx)("path",{d:"M28 150v26h2v-26zM134 75.999h25.436v2.054H134zM112 251.999h26v2.054h-26zM159 251.999h26v2.054h-26zM205 251.999h26v2.054h-26zM184 75.999h25.436v2.054H184zM92 75.999H66v2.054h12v24.85h2v-24.85h12zM92 251.984H80V240h-2v11.985H66v2.03h12v11.985h2v-11.985h12zM327 251.984h-12V240h-2v11.985h-12v2.03h12v11.985h2v-11.985h12zM42 251.984H30V240h-2v11.985H16v2.03h12v11.985h2v-11.985h12zM277 251.984h-12V240h-2v11.985h-12v2.03h12v11.985h2v-11.985h12zM280.339 75.999H255v2.054h11.74v24.85h2.054v-24.85h11.545zM330.339 75.999H305v2.054h11.74v24.85h2.054v-24.85h11.545zM42 75.999H16v2.054h12v24.85h2v-24.85h12zM78 149.999v26h2v-26zM266.63 150v26h2.054v-26zM28 291.999h2v12h-2zM78 291.999h2v12h-2zM263 291.999h2v12h-2zM313 291.999h2v12h-2zM316.728 150v26h2.055v-26zM190.127 7.999l-3.509 34.731h-29.355l-3.507-34.693-1.965.045 4.314 43.917h2.065l-.71-7.215h28.962L185.72 52h1.981l4.774-43.962z"})]})]})]})})},_=e=>{let{type:t,children:i}=e;return(0,s.jsxs)(n.az,{position:"relative",children:[(0,s.jsx)(w,{}),(0,s.jsx)(n.az,{position:"absolute",w:"100%",h:"100%",px:"1%",py:"15%",left:0,top:0,children:(0,s.jsx)(n.az,{w:"100%",h:"100%",display:"grid",style:{gridTemplateColumns:"repeat(".concat("fifteens"===t?5:4,", 1fr)"),gridTemplateRows:"repeat(".concat(7,", 1fr)")},children:i})})]})};var C=i(12605),k=i(19991),z=i(21377),A=i(54409),H=i(84942),M=i(99326),S=i(73488);let L=(0,b.default)(f.uc).withConfig({componentId:"sc-f76b7cb1-0"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:relative;z-index:",";border-radius:4px;text-align:center;cursor:pointer;transition:opacity 0.1s ease-in-out;width:56px;height:72px;&:hover{opacity:0.8;}"],n.Py.Button);function P(e){var t,i;let l,{player:a,incidents:o,onClick:c,jersey:u,color:h,useShortName:p,showSubstitutionNames:x=!0,showGoalScorer:f=!0,nameWidth:g,hasRatings:m,isPlayerOfTheMatch:y}=e,v=(0,r.useMemo)(()=>o?(0,M.h$)({id:a.player.id,incidents:o,useShortName:p}):{},[a,o]);a.statistics&&((l=a.statistics.rating)||!a.statistics.minutesPlayed||!(a.statistics.minutesPlayed<8)||(l=0));let j=1;!l&&a.avgRating&&(l=a.avgRating,j=2);let b=(0,H.z)(a.player,(0,M.kx)(a,p)),w=(0,M.sP)(b,a.captain);return(0,s.jsxs)(L,{onClick:c,player:a.player,"data-testid":"lineups_player",sportSlug:z.QCR.Rugby,children:[y&&(0,s.jsx)(A.ue7,{w:16,h:16,fill:(0,k.Et)(null==(t=a.statistics)?void 0:t.rating),position:"absolute",top:-16,left:"calc(50% - 8px)"}),(0,s.jsx)(n._V,{w:"28px",h:"32px",src:u,alt:""}),(0,s.jsx)(n.EY,{position:"absolute",top:"3px",left:"calc(50% - 12px)",align:"center",w:"xl",font:"table.large",fontSize:a.jerseyNumber&&a.jerseyNumber.length>=3?12:void 0,letterSpacing:"-0.2px",mt:a.jerseyNumber&&a.jerseyNumber.length>=3?"xxs":void 0,color:h?"#".concat(h.fancyNumber):"onSurface.nLv1","data-testid":"lineups_number",children:a.jerseyNumber}),v.substitutionIn&&(0,s.jsx)(n.az,{position:"absolute",top:"0",left:"-2","data-testid":"lineups_sub_info",children:(0,s.jsx)(S.FU,{isInjury:v.substitutionIn.isInjury})}),!v.substitutionIn&&v.substitutionOut&&(0,s.jsx)(n.az,{position:"absolute",top:"0",left:"-2","data-testid":"lineups_sub_info",children:(0,s.jsx)(S.FU,{isInjury:v.substitutionOut.isInjury})}),m&&(0,s.jsx)(n.az,{position:"absolute",top:"lg",left:-2,"data-testid":"lineups_rating",children:(0,s.jsx)(C.A,{rating:l,format:"box",size:"sm",decimalPoints:j})}),(0,s.jsx)(n.EY,{align:"center",lineHeight:1,font:"assistive.default",color:"onSurface.nLv1",pt:"xs",title:w,w:g,style:{hyphens:"auto"},"data-testid":"lineups_name",children:w}),x&&(null==(i=v.substitutionIn)?void 0:i.forPlayer)&&(0,s.jsxs)(n.EY,{align:"center",lineHeight:1,font:"table.small",color:"onSurface.nLv3",title:v.substitutionIn.forPlayer,children:[(0,s.jsx)(d.A,{id:"injury_status_out"}),": ",v.substitutionIn.forPlayer]}),(0,s.jsx)(n.az,{position:"absolute",top:"0",right:"-2",children:(0,s.jsx)(S.AG,{...v})}),f&&(0,s.jsx)(n.az,{position:"absolute",top:"lg",right:"-2",children:(0,s.jsx)(S.X0,{...v,inField:!0})})]})}let I=e=>{let{type:t="fifteens",players:i,incidents:l,jersey:r,jerseyNumberColor:a,onPlayerClick:o}=e,d="fifteens"===t?y.vD:y.Xj,c="fifteens"===t?y.Cy:y.uU,u=(e,t)=>{o&&(e.preventDefault(),o(t))};return(0,s.jsx)(_,{type:t,children:i.map(e=>e.shirtNumber?(0,s.jsx)(n.so,{position:"relative",justify:"center",align:"center",style:d[e.shirtNumber],children:(0,s.jsx)(n.az,{position:"absolute",style:c[e.shirtNumber],children:(0,s.jsx)(P,{player:e,incidents:l,jersey:r,color:a,nameWidth:64,showSubstitutionNames:!1,showGoalScorer:!1,onClick:t=>u(t,e.player)})})},e.player.id):null)})},R=()=>{let{event:e,team:t,incidents:i,manager:l,jersey:r,startingPlayers:a,jerseyNumberColor:o,substitutePlayers:d}=(0,m.rR)(),{openEventPlayerStatistics:c}=(0,p.d)();return e.isEditor?(0,s.jsxs)(n.so,{direction:"column",gap:"md",children:[(0,s.jsx)(f.gT,{team:t,sport:(0,h.c5)(e),children:(0,s.jsxs)(n.so,{gap:"lg",align:"center",children:[(0,s.jsx)(u.p,{size:40,id:t.id,name:t.name}),(0,s.jsx)(n.EY,{font:"display.large",children:(0,s.jsx)(g.c,{entity:t})})]})}),(0,s.jsx)(n.az,{br:"sm",overflow:"hidden",children:(0,s.jsx)(I,{type:e.tournament.category.sportVariant===y.WM?"sevens":"fifteens",players:a,incidents:i,jersey:r,jerseyNumberColor:o,onPlayerClick:e.hasEventPlayerStatistics?t=>c({event:e,player:t},x._.Lineups):void 0})}),l&&(0,s.jsx)(v.A,{manager:l,incidents:null==i?void 0:i.filter(e=>e.manager),isCard:!0,isBorderHidden:!0})]}):(0,s.jsxs)(n.so,{direction:"column",children:[(0,s.jsx)(f.gT,{team:t,sport:(0,h.c5)(e),children:(0,s.jsxs)(n.so,{gap:"lg",align:"center",px:"lg",py:"sm",hoverBg:"surface.s2",children:[(0,s.jsx)(u.p,{size:40,id:t.id,name:t.name}),(0,s.jsx)(n.EY,{font:"display.large",children:(0,s.jsx)(g.c,{entity:t})})]})}),(0,s.jsx)(j.A,{manager:l,hideTeamHeader:!0,team:t,event:e,players:[...a,...d],incidents:i})]})};var O=i(45527);let T=()=>{let{event:e,team:t,substitutePlayers:i,incidents:l}=(0,m.rR)();return(0,s.jsx)(j.A,{hideTeamHeader:!0,event:e,team:t,players:i,incidents:l})},V=()=>{let{event:e}=(0,r.useContext)(o.y$),{lineups:t}=(0,m.Ir)();return e.isEditor&&(0,M.kr)(t)?(0,s.jsxs)(n.az,{children:[(0,s.jsx)(n.EY,{font:"display.medium",align:"center",display:"block",pt:"xl",pb:"lg",children:(0,s.jsx)(d.A,{id:"substitutions"})}),(0,s.jsxs)(n.so,{children:[(0,s.jsx)(n.az,{flex:"1 1 0",children:(0,s.jsx)(O.i,{side:"left",children:(0,s.jsx)(T,{})})}),(0,s.jsx)(n.cG,{vertical:!0,mx:"md"}),(0,s.jsx)(n.az,{flex:"1 1 0",children:(0,s.jsx)(O.i,{side:"right",children:(0,s.jsx)(T,{})})})]})]}):null},E=()=>(0,s.jsxs)(n.az,{p:"sm",children:[(0,s.jsxs)(n.so,{children:[(0,s.jsx)(n.az,{flex:"1 1 0",children:(0,s.jsx)(O.i,{side:"left",children:(0,s.jsx)(R,{})})}),(0,s.jsx)(n.cG,{vertical:!0,mx:"md"}),(0,s.jsx)(n.az,{flex:"1 1 0",children:(0,s.jsx)(O.i,{side:"right",children:(0,s.jsx)(R,{})})})]}),(0,s.jsx)(V,{})]}),B=()=>(0,s.jsx)(n.az,{py:"lg",children:(0,s.jsxs)(n.tU,{variant:"secondary",children:[(0,s.jsxs)(n.az,{px:"lg",children:[(0,s.jsx)(n.tU.Tab,{children:(0,s.jsx)(d.A,{id:"lineups"})}),(0,s.jsx)(n.tU.Tab,{children:(0,s.jsx)(d.A,{id:"rugby_box_score"})})]}),(0,s.jsx)(n.tU.Panel,{children:(0,s.jsx)(E,{})}),(0,s.jsx)(n.tU.Panel,{children:(0,s.jsx)(n.az,{px:"sm",pt:"md",children:(0,s.jsx)(c.default,{showDivider:!1})})})]})}),G=()=>{let{openEventPlayerStatistics:e}=(0,p.d)(),{event:t,team:i,manager:r,incidents:a,jersey:o,startingPlayers:c,substitutePlayers:u,jerseyNumberColor:h}=(0,m.rR)(),{isDesktop:f}=(0,l.$c)();return t.isEditor?(0,s.jsxs)(n.az,{children:[(0,s.jsx)(I,{type:t.tournament.category.sportVariant===y.WM?"sevens":"fifteens",players:c,incidents:a,jersey:o,jerseyNumberColor:h,onPlayerClick:t.hasEventPlayerStatistics?i=>e({event:t,player:i},x._.Lineups):void 0}),(0,s.jsxs)(n.so,{direction:"column",py:"md",children:[r&&(0,s.jsx)(n.az,{px:"sm",children:(0,s.jsx)(v.A,{manager:r,incidents:null==a?void 0:a.filter(e=>e.manager),isCard:!0,isBorderHidden:!0})}),u.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.EY,{font:"display.medium",align:"center",pt:"xl",children:(0,s.jsx)(d.A,{id:"substitutions"})}),(0,s.jsx)(j.A,{hideTeamHeader:!0,team:i,event:t,players:u,incidents:a})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[r&&(0,s.jsx)(n.az,{px:"sm",py:"sm",children:(0,s.jsx)(v.A,{manager:r,incidents:null==a?void 0:a.filter(e=>e.manager),isCard:f,isBorderHidden:!0})}),(0,s.jsx)(j.A,{hideTeamHeader:!0,team:i,event:t,players:[...c,...u],incidents:a})]})},F={height:"32px",display:"flex",justifyContent:"center",alignItems:"center",padding:0},N=()=>{let{team:e}=(0,m.rR)();return(0,s.jsx)(u.p,{size:24,id:e.id,name:e.name})},D=()=>(0,s.jsx)(n.az,{p:"sm",children:(0,s.jsx)(a.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(n.tU,{variant:"secondary",initialValue:z.cxP.Left,fullWidthTabs:!0,children:[(0,s.jsxs)(n.so,{p:"sm",children:[(0,s.jsx)(n.tU.Tab,{tabKey:z.cxP.Left,style:F,children:(0,s.jsx)(O.i,{side:"left",children:(0,s.jsx)(N,{})})}),(0,s.jsx)(n.az,{w:"lg"}),(0,s.jsx)(n.tU.Tab,{tabKey:z.cxP.Right,style:F,children:(0,s.jsx)(O.i,{side:"right",children:(0,s.jsx)(N,{})})})]}),(0,s.jsx)(n.tU.Panel,{tabKey:z.cxP.Left,children:(0,s.jsx)(O.i,{side:"left",children:(0,s.jsx)(G,{})})}),(0,s.jsx)(n.tU.Panel,{tabKey:z.cxP.Right,children:(0,s.jsx)(O.i,{side:"right",children:(0,s.jsx)(G,{})})})]})})});function Y(){let{event:e,location:t}=(0,r.useContext)(o.y$),{isDesktop:i}=(0,l.$c)(),d=i&&t===o.cb.EventPage,{lineups:c,error:u}=(0,m.Ir)({jerseyStyle:"fancy"});return u?null:d?(0,s.jsxs)(a.Zp,{children:[(0,s.jsx)(a.Zp.Header,{titleId:"players"}),c?e.hasEventPlayerStatistics?(0,s.jsx)(B,{}):(0,s.jsx)(E,{}):(0,s.jsx)(n.az,{h:900})]}):c?(0,s.jsx)(D,{}):(0,s.jsx)(n.az,{h:900})}},75341:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"m8.62 19.72 1.11-2.63 7.35-7.35 2.91-1.18 1.91-.2c.03-.28.06-.56.07-.84.1-2.1-.19-3.48-.98-4.42l-.1-.1c-1.16-.98-2.89-1.05-4.42-.98-.29.01-.57.05-.85.08l-.26 2.19-1.11 2.63-7.35 7.35-2.91 1.18-1.9.2c-.03.28-.06.55-.07.84-.01.27-.02.52-.02.78 0 1.7.31 2.83 1 3.65l.1.1C4.27 22 6 22.06 7.53 22c.29-.01.57-.05.85-.08l.26-2.19-.02-.01zm-4.99-6.25 2.13-.9 6.8-6.8.9-2.13.13-1.23c-2.7.63-5.15 1.97-7.2 3.96C4.37 8.44 3.03 10.9 2.4 13.6l1.23-.13zm16.72-2.94-2.13.9-6.79 6.79-.9 2.13-.13 1.23c2.7-.63 5.15-1.97 7.21-3.96 2.01-2.06 3.35-4.52 3.98-7.22l-1.23.13h-.01z",fill:e.fill,fillRule:"evenodd"})}))}},77749:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(90142),l=i(6029),n=i(55729),r=i(41735),a=i(39895);function o(e){var{fill:t}=e,i=(0,s.T)(e,["fill"]);let o=(0,n.useContext)(r.ThemeContext);return(0,l.jsx)(a.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},i,{children:(0,l.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,l.jsx)("path",{d:"M7 7v12h8v3H4V7h3z",fill:o.colors.scoreRating.s65}),(0,l.jsx)("path",{fill:o.colors.error.default,d:"M9 2h11v15H9z"})]}))}))}},78944:(e,t,i)=>{i.d(t,{H7:()=>p,q6:()=>h});var s=i(6029),l=i(55729),n=i(947),r=i(90248),a=i(62859);let o=JSON.parse('{"rugby":{"goal.onePoint":"rugby.onePointGoal","goal.twoPoints":"rugby.twoPointGoal","goal.threePoints":"rugby.threePointGoal","goal.try":"rugby.try","goal.penaltyTry":"rugby.penaltyTry"},"basketball":{"One point":"basketball.onePoint","Two points":"basketball.twoPoints","Three points":"basketball.threePoints","Four points":"basketball_four_points"},"american-football":{"goal.touchdown":"touchdown","goal.extraPoint":"amf.extraPoint","goal.twoPointConversion":"amf.twoPointConversion","goal.defensive2ptConversion":"amf.defensive2ptConversion","goal.fieldGoal":"amf.fieldGoal","goal.safety":"amf.safety","goal.rouge":"amf.rouge"},"minifootball":{"accumulatedPenalty":"minifootball_accumulated_penalty"},"futsal":{"accumulatedPenalty":"minifootball_accumulated_penalty"},"ice-hockey":{"boarding":"penalty_boarding","broken_stick":"penalty_broken_stick","charging":"penalty_charging","closing_hand_on_puck":"penalty_closing_hand","cross_checking":"penalty_cross_checking","elbowing":"penalty_elbowing","clipping":"penalty_clipping","delay_game":"penalty_delay_of_game","illegal_check_to_head":"penalty_illegal_check","goalie_leave_crease":"penalty_goalie_leave_crease","hi_sticking":"penalty_hi_sticking","holding":"penalty_holding","holding_the_stick":"penalty_holding_the_stick","hooking":"penalty_hooking","illegal_stick":"penalty_illegal_stick","interference":"penalty_interference","instigator":"penalty_instigator","kneeing":"penalty_kneeing","interference_goalkeeper":"penalty_interference_on_gk","roughing":"penalty_roughing","slashing":"penalty_slashing","spearing":"penalty_spearing","tripping":"penalty_tripping","unsportsmanlike_conduct":"penalty_unsportsmanlike_conduct","delay_game_bench":"penalty_delay_of_game_bench","misconduct_10min":"penalty_misconduct","game_misconduct":"penalty_game_misconduct","goalie_participating_beyond_center":"penalty_goalie_beyond_the_center","aggressor":"penalty_aggressor","match_penalty":"penalty_match_penalty","ps_illegal_substitution":"penalty_shot_illegal_substitution","ps_goalkeeper_displaced_net":"penalty_shot_goalkeeper_displaced_net","ps_net_displaced":"penalty_shot_net_displaced","ps_covering_puck_in_crease":"penalty_shot_covering_puck","ps_picking_up_puck_in_crease":"penalty_shot_picking_up_puck","ps_throwing_object_on_ice":"penalty_shot_throwing_object","ps_interference_from_bench":"penalty_shot_interference_from_bench","ps_players_leaving_bench":"penalty_shot_players_leaving_bench","ps_throw_object_at_puck":"penalty_shot_throw_object_at_puck","ps_holding_on_breakaway":"penalty_shot_holding_on_breakaway","ps_holding_stick_on_breakaway":"penalty_shot_holding_stick_on_breakaway","ps_hooking_on_breakaway":"penalty_shot_hooking_on_breakaway","ps_tripping_on_breakaway":"penalty_shot_tripping_on_breakaway","ps_slash_on_breakaway":"penalty_shot_slash_on_breakaway","embellishment":"penalty_embellishment","minor":"penalty_minor","major":"penalty_major","bench":"penalty_bench","playing_without_a_helmet":"penalty_helmet","removing_opponents_helmet":"penalty_removing_opponents_helmet","goalie_removed_own_mask":"penalty_goalie_removed_mask","delay_game_unsucc_challenge":"penalty_delay_of_game_unsuccessful_challenge","licking":"penalty_kicking","attempt_to_injure":"penalty_attempt_to_injure","deliberate_injury":"penalty_deliberate_injury","checking_from_behind":"penalty_checking_from_behind","interference_bench":"penalty_interference_bench","throwing_stick":"penalty_throwing_stick","abusive_language":"penalty_abusive_language","fighting":"penalty_fighting","abuse_of_officials":"penalty_abuse_of_officials","refusal_to_play":"penalty_refusal_to_play","late_on_ice":"penalty_late_on_ice","not_proceeding_to_dressing_room":"penalty_not_proceeding_to_dressing_room","butt_ending":"penalty_butt_ending","head_butting":"penalty_head_butting","puck_thrown_fwd_goalkeeper":"penalty_puck_thrown_fwd_goalkeeper","removing_sweater":"penalty_removing_sweater","not_proceeding_dir_penbox":"penalty_not_proceeding_dir_penbox","leaving_penalty_box":"penalty_leaving_penalty_box","illegal_substitution":"penalty_illegal_substitution","protective_equipment":"penalty_protective_equipment","objects_on_ice":"penalty_objects_on_ice","interfere_with_official":"penalty_interfere_with_official","player_leaves_bench":"penalty_leaving_players_bench","leaving_players_penalty_bench":"penalty_leaving_penalty_bench","ineligible_player":"penalty_ineligible_player","unsustained_measurement":"penalty_unsustained_measurement","illegal_equipment":"penalty_illegal_equipment","too_many_men_on_ice":"penalty_too_many_men_on_ice","doubleMinor":"penalty_double_minor"},"Goal":"goal","goal.regular":"goal","Own goal":"ownGoal","goal.ownGoal":"ownGoal","Substitution":"substitution","Substitution in":"substitutionIn","Substitution out":"substitutionOut","substitution.injury":"substitution","substitution.temporary":"rugby_temporary_substitution","Penalty":"penalty","goal.penalty":"penalty","inGamePenalty.scored":"penalty","penaltyShootout.scored":"penalty","Missed Penalty":"missedPenalty","inGamePenalty.missed":"missedPenalty","penaltyShootout.missed":"missedPenalty","Penalty taker":"penaltyTaker","Yellow card":"yellowCard","card.yellow":"yellowCard","2nd Yellow card (Red)":"2ndYellowCard","card.yellowRed":"2ndYellowCard","Red card":"redCard","card.red":"redCard","Argument":"argument","Dangerous play":"dangerousPlay","Simulation":"simulation","Other reason":"otherReason","Unallowed field entering":"unallowedFieldEntering","Fight":"fight","Foul":"foul","Handball":"handball","Leaving field":"leavingField","On bench":"onBench","Off the ball foul":"offTheBallFoul","Persistent fouling":"persistentFouling","Professional foul":"professionalFoul","Professional handball":"professionalHandball","Professional foul last man":"professionalFoulLastMan","Rescinded Card":"rescindedCard","Unsporting behaviour":"unsportingBehaviour","Time wasting":"timeWasting","Violent conduct":"violentConduct","Post match":"postMatch","Off target":"offTarget","Woodwork":"woodwork","Goalkeeper save":"goalkeeperSave","zeroMinutes":"penalty_suspension","twoMinutes":"penalty_two_min_suspension","fourMinutes":"penalty_four_min_suspension","fiveMinutes":"penalty_five_min_suspension","tenMinutes":"penalty_ten_min_suspension","mistakenIdentity.false":"reviewed","cardUpgrade.false":"cardUpgrade.changed","cardUpgrade.true":"cardUpgrade.noChange","review.false":"reviewed","review.true":"reviewed","varDecision.goalAwarded":"varDecision","varDecision.goalNotAwarded":"varDecision","varDecision.penaltyAwarded":"varDecision","varDecision.penaltyNotAwarded":"varDecision","varDecision.redCardGiven":"varDecision","varDecision.cardUpgrade":"varDecision","varDecision.mistakenIdentity":"varDecision","goal.powerplay":"powerplayGoal","goal.shorthanded":"shorthandedGoal"}');var d=i(27892);let c="DEFAULT",u=(e,t)=>(0,d.O)(o,e,t,c),h=(e,t,i)=>{let s=u(t?"".concat(e,".").concat(t):e,i);return s!==c||t&&(s=u(t,i))!==c?s:(s=u(e,i))!==c?s:void 0},p=e=>{let{id:t}=e,i=(0,n.A)(),o=u(t,(0,l.useContext)(a.Ws));if(o!==c)return(0,s.jsx)(r.A,{id:o});let d=i.formatMessage({id:t});return d!==t?(0,s.jsx)(s.Fragment,{children:d}):null}},79826:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M21 2H2v9h2V4h16v7h2V2h-1zm-9 20a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z",fill:e.fill,fillRule:"evenodd"})}))}},79853:(e,t,i)=>{i.d(t,{K:()=>o});var s=i(21377),l=i(55729),n=i(45860),r=i(62859),a=i(30720);function o(e){let t=(0,l.useContext)(r.y$),i=e||t.event,{data:o,error:d}=(0,n.Ay)(s.bnp.managers(i.id)),[c,u]=(0,a.A)(o,"homeManager","awayManager",i),[h,p]=(0,a.A)(o,"homeManagerName","awayManagerName",i);return{managers:{leftManager:c,leftManagerName:h,rightManager:u,rightManagerName:p},error:d}}},80339:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r});var s=i(90142),l=i(6029),n=i(39895);function r(e){var{fill:t="error.default"}=e,i=(0,s.T)(e,["fill"]);return(0,l.jsx)(n.A,Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:t},i,{children:(0,l.jsx)("path",{fill:t,d:"M3 1h10v14H3z",fillRule:"evenodd"})}))}},82823:(e,t,i)=>{var s;!function(e){e[e.Backdrop=0]="Backdrop",e[e.Button=1]="Button",e[e.Sticky=99]="Sticky",e[e.Dropdown=100]="Dropdown",e[e.Fixed=101]="Fixed",e[e.Popover=102]="Popover",e[e.Subheader=103]="Subheader",e[e.Header=104]="Header",e[e.MobileMenu=105]="MobileMenu",e[e.BottomNavigation=106]="BottomNavigation",e[e.FloatingCTA=107]="FloatingCTA",e[e.ModalBackdrop=108]="ModalBackdrop",e[e.Modal=109]="Modal",e[e.Alert=110]="Alert"}(s||(s={}))},83217:(e,t,i)=>{i.d(t,{n:()=>h});var s=i(60449),l=i.n(s);let n=/Max/,r=(e,t)=>t[e]?`${n.test(e)?"max-width":"min-width"}: ${t[e]}px`:e,a={2:["mdMax","mdMin"],3:["mdMax",["mdMin","lgMax"],"lgMin"],4:["smMax",["smMin","mdMax"],["mdMin","lgMax"],"lgMin"],5:["xsMax",["xsMin","smMax"],["smMin","mdMax"],["mdMin","lgMax"],"lgMin"]},o=(e,t)=>{if(!t)return e;let i=l()(t,e,e);return"number"==typeof e?i=`${e}px`:"string"!=typeof e||isNaN(+e)||(i=`${e}px`),i},d=e=>"left"===e?"right":"right"===e?"left":e,c=(e,t,i)=>{let s={};return e.forEach(e=>{if(i){let l=s[i];l?l[e]=t:s[i]={[e]:t}}else s[e]=t}),s},u=(e,t)=>Array.isArray(e)?`@media ${e.map(e=>`(${r(e,t)})`).join(" and ")}`:`@media (${r(e,t)})`,h=e=>t=>{let i=t.theme.settings.textDirection,s=t.theme.breakpoints.sizes;return Object.keys(e).reduce((n,r)=>{let h=e[r],p="rtl"===i&&!["ltr","auto"].includes(t.dir),x=p&&"object"==typeof h&&"rtlProperty"in h,f=p&&"object"==typeof h&&h.rtlTransform,g="object"==typeof h&&"function"==typeof h.rtlTransform?h.rtlTransform:d,m=l()(h,x?"rtlProperty":"property",r),y=l()(h,"properties",[m]);if(void 0===t[r])return n;let v=l()(h,"transform",o),j=l()(h,"selector"),b="object"==typeof h?l()(t.theme,h.domain||"",void 0):void 0;if(Array.isArray(t[r]))a[t[r].length].forEach((e,i)=>{let l=n[u(e,s)],a=v(t[r][i],b);p&&f&&(a=g(a,b)),l=l?Object.assign(Object.assign({},l),c(y,a,j)):c(y,a,j),n[u(e,s)]=l});else{let e=v(t[r],b);p&&f&&(e=g(e,b)),Object.assign(n,c(y,e,j))}return n},{})}},83509:(e,t,i)=>{i.d(t,{G:()=>s});let s=(0,i(83217).n)({position:!0,top:{domain:"spacing"},right:{domain:"spacing",rtlProperty:"left"},bottom:{domain:"spacing"},left:{domain:"spacing",rtlProperty:"right"},inset:{domain:"spacing"},zIndex:!0})},84262:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M21 2H2v9h2V4h16v7h2V2h-1zm-5.09 9.34-3.92 3.93-3.88-3.88-1.41 1.42 3.87 3.87-3.9 3.91L8.09 22l3.9-3.9 3.9 3.9 1.41-1.41-3.9-3.91 3.93-3.92-1.42-1.42z",fill:e.fill,fillRule:"evenodd"})}))}},84684:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M2.02 16.48c.17-3.83 1.67-7.33 4.37-10.11 2.77-2.68 6.25-4.18 10.09-4.35 1.53-.07 3.26 0 4.43.98l.1.1c.78.93 1.07 2.32.97 4.42-.17 3.84-1.67 7.33-4.37 10.11-2.77 2.68-6.25 4.18-10.08 4.35-1.54.06-3.26 0-4.43-.98l-.1-.1c-.69-.82-1-1.94-1-3.65 0-.25 0-.51.02-.78v.01zm4.32-.23 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41-1.41-1.41 1.41-1.41 1.41 1.41 1.41-1.41-1.41-1.41 1.41-1.41 1.41 1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41 1.41 1.41-1.41 1.41-1.41-1.41-1.41 1.41 1.41 1.41-1.41 1.41-1.41-1.41-1.41 1.41 1.41 1.41-1.41 1.41z",fill:e.fill,fillRule:"evenodd"})}))}},85306:(e,t,i)=>{i.d(t,{K:()=>s});var s=function(e){return e.Position="position",e.Rating="rating",e.Notes="notes",e.ExpectedGoals="expectedGoals",e}({})},86838:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M4 2v14h16V2h2v20h-2v-4H4v4H2V2h2zm8.155.5c.78 0 1.458.13 2.055.398a3.314 3.314 0 0 1 1.396 1.165c.334.518.506 1.125.506 1.852 0 .767-.161 1.394-.495 1.902-.324.508-.78.906-1.367 1.205-.587.298-1.265.517-2.044.657-.496.1-.91.199-1.224.318-.314.12-.557.3-.709.528-.152.23-.233.578-.233 1.036v.527h6.012c.111 0 .162.05.162.16v1.593c0 .11-.051.159-.162.159H8.067c-.111 0-.162-.05-.162-.16v-2.05c0-.847.162-1.534.486-2.061.324-.528.8-.936 1.427-1.225.627-.299 1.396-.508 2.287-.647.648-.1 1.123-.319 1.417-.657a1.81 1.81 0 0 0 .445-1.225c0-.448-.162-.817-.486-1.105-.324-.289-.78-.438-1.376-.438-.668 0-1.184.149-1.538.458-.355.308-.577.746-.648 1.294-.02.11-.081.16-.182.16H7.986l.01-.02c-.111 0-.162-.05-.142-.16.132-1.145.557-2.031 1.286-2.688.728-.647 1.73-.976 3.015-.976z",fill:e.fill,fillRule:"evenodd"})}))}},86877:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"m21.355 9.79-.06-.06c-.76-.64-1.88-.68-2.88-.64-2.49.11-4.76 1.09-6.56 2.83a9.905 9.905 0 0 0-2.84 6.57c0 .18-.01.34-.01.51 0 1.11.2 1.84.65 2.37l.06.07c.76.64 1.88.68 2.88.64 2.49-.11 4.76-1.09 6.56-2.83a9.905 9.905 0 0 0 2.84-6.57c.06-1.36-.12-2.27-.64-2.88v-.01zm-2.32 5.08-.71.71-1.06-1.06-1.06 1.06 1.06 1.06-.71.71-1.06-1.06-1.06 1.06 1.06 1.06-.71.71-1.06-1.06-1.06 1.06-.71-.71 1.06-1.06-1.06-1.06.71-.71 1.06 1.06 1.06-1.06-1.06-1.06.71-.71 1.06 1.06 1.06-1.06-1.06-1.06.71-.71 1.06 1.06 1.06-1.06.71.71-1.06 1.06 1.06 1.06zm-9.93-4.47h-5.19v-.46c0-.4.07-.7.2-.91.13-.21.34-.36.62-.46.28-.1.63-.2 1.06-.28.67-.12 1.26-.31 1.76-.57.5-.26.9-.61 1.18-1.06.28-.44.43-1 .43-1.67 0-.63-.15-1.18-.44-1.62-.29-.45-.7-.79-1.21-1.02-.51-.23-1.11-.35-1.78-.35-1.11-.01-1.98.28-2.61.85-.63.58-1 1.36-1.12 2.36-.02.09.02.14.13.14h1.51c.08 0 .14-.05.15-.14.07-.49.25-.86.56-1.13.31-.27.75-.41 1.33-.41.51 0 .91.13 1.19.39.28.26.42.58.42.97 0 .42-.13.78-.38 1.08-.26.3-.67.49-1.23.57-.77.12-1.43.31-1.97.57-.54.26-.95.62-1.23 1.08-.28.46-.42 1.07-.42 1.81v1.81c0 .09.05.14.14.14h6.9c.09 0 .14-.05.14-.14v-1.4c0-.09-.05-.14-.14-.14v-.01z",fill:e.fill,fillRule:"evenodd"})}))}},87234:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M19.2787318,9.43386243 L22,10.4259259 L22,14.4338624 C22,14.473545 21.9735799,14.5529101 21.9735799,14.5529101 L19.5429326,19.4206349 C19.5165125,19.473545 19.4240423,19.5396825 19.4240423,19.5396825 L14.5495376,21.973545 C14.5099075,22 14.4306473,22 14.4306473,22 L10.4544254,22 L12.6472919,21.2724868 C12.6869221,21.2592593 12.7529723,21.2063492 12.7529723,21.2063492 L18.2615588,15.2142857 C18.3011889,15.1746032 18.327609,15.0820106 18.327609,15.0820106 L18.340819,15.0687831 L19.2787318,9.43386243 Z M18.6182299,9.34126984 L17.7067371,14.7910053 C17.6935271,14.8439153 17.6406869,14.9232804 17.6406869,14.9232804 L12.3830911,20.6507937 L12.3698811,20.6243386 C12.343461,20.6507937 12.2642008,20.6904762 12.2642008,20.6904762 L9.02774108,21.7751323 L4.57595773,19.5396825 L8.4332893,18.2698413 C8.47291942,18.2566138 8.53896962,18.2037037 8.53896962,18.2037037 L12.7133421,14.0767196 C12.7397622,14.0502646 12.7793923,13.9708995 12.7793923,13.9708995 L14.1928666,9.52645503 C14.2324967,9.42063492 14.324967,9.34126984 14.4438573,9.34126984 L18.6182299,9.34126984 Z M2.01321004,11.4312169 L4.72126816,16.1798942 L4.76089828,16.2592593 L4.77410832,16.2724868 L7.58784676,17.8730159 L4.2324967,18.984127 L2.03963012,14.5793651 C2.01321004,14.5396825 2.01321004,14.4603175 2.01321004,14.4603175 L2.01321004,11.4312169 Z M6.35931308,3.58730159 L5.68560106,6.97354497 C5.67239102,7.03968254 5.71202114,7.15873016 5.71202114,7.15873016 L8.73712021,12.1984127 C8.76354029,12.2513228 8.84280053,12.3042328 8.84280053,12.3042328 L11.9735799,13.8915344 L8.34081902,17.5291005 L5.31571995,15.8095238 L5.30250991,15.8227513 C5.26287979,15.8095238 5.21003963,15.7301587 5.21003963,15.7301587 L2,10.1084656 L2,9.57936508 C2,9.53968254 2.02642008,9.46031746 2.02642008,9.46031746 L4.45706737,4.60582011 C4.48348745,4.55291005 4.57595773,4.48677249 4.57595773,4.48677249 L6.35931308,3.58730159 Z M10.8903567,2.02645503 L10.678996,4.01058201 C10.678996,4.06349206 10.7186262,4.16931217 10.7186262,4.16931217 L13.651255,9.06349206 L12.330251,13.3359788 L9.31836196,11.8015873 C9.27873184,11.7751323 9.21268164,11.6957672 9.21268164,11.6957672 L6.41215324,7.03968254 L6.41215324,7.05291005 C6.38573316,7 6.38573316,6.86772487 6.38573316,6.86772487 L7.11228534,3.23015873 L9.43725231,2.05291005 C9.4669749,2.03306878 9.51898943,2.02810847 9.54313904,2.02686839 L10.8903567,2.02645503 Z M15.8837517,4.32804233 L15.8969617,4.34126984 C15.9233818,4.34126984 15.989432,4.35449735 15.989432,4.35449735 L20.2298547,6.06084656 L21.9471598,9.46031746 C21.9669749,9.49007937 21.9719287,9.5421627 21.9731671,9.56634425 L21.9735799,9.75132275 L19.1466314,8.71957672 C19.1202114,8.70634921 19.0541612,8.67989418 19.0541612,8.67989418 L14.1796565,8.67989418 L11.5772787,4.32804233 L15.8837517,4.32804233 Z M14.4174373,2 C14.4570674,2 14.5363276,2.02645503 14.5363276,2.02645503 L19.3712021,4.47354497 C19.4240423,4.5 19.4900925,4.59259259 19.4900925,4.59259259 L19.7807133,5.16137566 L16.1743725,3.71957672 C16.1479524,3.70634921 16.0819022,3.70634921 16.0819022,3.70634921 L11.3791281,3.67989418 L11.3659181,3.67989418 L11.5508587,2 Z",id:"Combined-Shape",fill:e.fill})}))}},90142:(e,t,i)=>{function s(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>t.indexOf(s)&&(i[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(s=Object.getOwnPropertySymbols(e);lt.indexOf(s[l])&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(i[s[l]]=e[s[l]])}return i}i.d(t,{T:()=>s}),"function"==typeof SuppressedError&&SuppressedError},90715:(e,t,i)=>{i.d(t,{V:()=>s});function s(e,t){if(11!==t.length)throw Error("getFormationMatrix(): Insufficient players to form formation ".concat(e,"."));let i=[],s=["1",...e.split("-")].map(Number),l=[...t];return s.forEach(e=>{i.push(l.splice(0,e))}),i}},91289:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{d:"M20 2.001v14H4v-14H2v16h9v4h2v-4h9v-16h-2zm-2.6.66-.06-.06c-.56-.48-1.39-.65-2.65-.59-2.3.1-4.4 1-6.07 2.62a9.132 9.132 0 0 0-2.61 6.05c-.04.92 0 1.96.59 2.66l.06.06c.49.41 1.17.6 2.19.6.15 0 .3 0 .47-.01 2.3-.1 4.4-1 6.06-2.62a9.132 9.132 0 0 0 2.61-6.05c.04-.92 0-1.96-.59-2.66zm-2.57 5.34-1.06-1.06-1.06 1.06 1.06 1.06-.71.71L12 8.712l-1.06 1.06 1.06 1.06-.71.71-1.06-1.06-1.06 1.06-.71-.71 1.06-1.06-1.06-1.06.71-.71 1.06 1.06 1.06-1.06-1.06-1.06.71-.71L12 7.292l1.06-1.06L12 5.172l.71-.71 1.06 1.06 1.06-1.06.71.71-1.06 1.06 1.06 1.06-.71.71z",fill:e.fill,fillRule:"evenodd"})}))}},94493:(e,t,i)=>{i.d(t,{w:()=>o});var s=i(6029),l=i(90248),n=i(62859),r=i(50677),a=i(27892);let o=e=>{let{id:t,children:i}=e;return(0,s.jsx)(n.Ws.Consumer,{children:e=>{let n=(0,a.O)(r,t,e);return(0,s.jsx)(l.A,{id:n,children:e=>n===String(e)?null:"function"==typeof i?i(e):(0,s.jsx)(s.Fragment,{children:e})})}})}},97080:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(6029),l=i(39895);function n(e){return(0,s.jsx)(l.A,Object.assign({width:"24",height:"24",viewBox:"0 0 24 24"},e,{children:(0,s.jsx)("path",{fill:e.fill,d:"M20 2v14H4V2H2v16h9v4h2.076v-4H22V2z",fillRule:"evenodd"})}))}},99326:(e,t,i)=>{i.d(t,{sP:()=>x,h$:()=>u,ZB:()=>o,H_:()=>g,lV:()=>f,kr:()=>c,kx:()=>p});var s=i(4967),l=i(55529);function n(e){let t={sum:0,count:0};return e.forEach(e=>{e.forEach(e=>{e.player.height&&(t.sum+=e.player.height,t.count+=1)})}),t.count>=7?Math.round(10*t.sum/t.count)/10:void 0}function r(e,t){let i={sum:0,count:0};return e.forEach(e=>{e.forEach(e=>{e.player.dateOfBirthTimestamp&&(i.sum+=(0,s.Dr)(e.player.dateOfBirthTimestamp,t),i.count+=1)})}),i.count>=7?Math.round(10*i.sum/i.count)/10:void 0}function a(e){let t={sum:0,count:0,currency:""};return e.forEach(e=>{e.forEach(e=>{var i;(null==(i=e.player.proposedMarketValueRaw)?void 0:i.value)&&(t.sum+=e.player.proposedMarketValueRaw.value,t.currency=e.player.proposedMarketValueRaw.currency,t.count+=1)})}),t.count>=7?{value:t.sum,currency:t.currency}:void 0}function o(e,t,i){let s={};return s[l.kA.Age]={messageId:"football_lineups_starters_average_age",leftTeamValue:r(e,i),rightTeamValue:r(t,i)},s[l.kA.MarketValue]={messageId:"football_lineups_starters_total_market_value",leftTeamValue:a(e),rightTeamValue:a(t)},s[l.kA.Height]={messageId:"football_lineups_starters_average_height",leftTeamValue:n(e),rightTeamValue:n(t)},s}var d=i(10387);function c(e){let t=null==e?void 0:e.left.players.filter(e=>e.substitute),i=null==e?void 0:e.right.players.filter(e=>e.substitute);return!!(t&&t.length>0||i&&i.length>0)}let u=e=>{let{id:t,incidents:i,useShortName:s,type:l="player"}=e;return i.filter(e=>{var i,s,n,r;return(null==(i=e[l])?void 0:i.id)===t||(null==(s=e.playerOut)?void 0:s.id)===t||(null==(n=e.playerIn)?void 0:n.id)===t||(null==(r=e.assist1)?void 0:r.id)===t}).reduce((e,i)=>{var l,n,r,a,o,d,c;switch(i.incidentType){case"card":switch(i.incidentClass){case"red":return{...e,hasRedCard:!0};case"yellow":return{...e,hasYellowCard:!0};case"yellowRed":return{...e,hasYellowRedCard:!0};default:return e}case"goal":if((null==(l=i.player)?void 0:l.id)===t)switch(i.incidentClass){case"ownGoal":return{...e,hasScoredOwnGoal:!0,ownGoalsScored:(e.ownGoalsScored||0)+1};case"penalty":return{...e,hasScoredPenalty:!0,penaltiesScored:(e.penaltiesScored||0)+1,goalsScored:(e.goalsScored||0)+1};default:return{...e,goalsScored:(e.goalsScored||0)+1}}if((null==(n=i.assist1)?void 0:n.id)===t)return{...e,goalsAssisted:(e.goalsAssisted||0)+1};return e;case"substitution":if((null==(r=i.playerOut)?void 0:r.id)===t)return{...e,substitutionOut:{forPlayer:(s?null==(a=i.playerIn)?void 0:a.shortName:null==(o=i.playerIn)?void 0:o.name)||i.playerNameIn,time:i.time,isInjury:"injury"===i.incidentClass}};return{...e,substitutionIn:{forPlayer:(s?null==(d=i.playerOut)?void 0:d.shortName:null==(c=i.playerOut)?void 0:c.name)||i.playerNameOut,time:i.time,isInjury:"injury"===i.incidentClass}};default:return e}},{})},h=(e,t)=>e.split(" ").map(e=>{let i=e;return e.length!==t||e.includes("-")||(i=e.slice(0,e.length/2)+"\xad"+e.slice(e.length/2)),i}).join(" ");function p(e,t){var i;return t||e.player.name.length>24||(null==(i=e.player.country)?void 0:i.alpha2)==="MG"}function x(e,t,i){let s=Math.max(...e.split(" ").map(e=>e.length));return s>=12&&(e=h(e,s)),t?i?"".concat(e," (c)"):"(c) ".concat(e):e}function f(e,t){var i,s,n;if(null==(i=e.statistics)||!i.minutesPlayed||!((null==(s=e.statistics)?void 0:s.minutesPlayed)<8)){if(t===l.V7.Confirmed)return(null==(n=e.statistics)?void 0:n.rating)||e.avgRating;if(t===l.V7.Possible)return e.avgRating}}function g(e,t,i){var s,l;let n=t?u({id:e.player.id,incidents:t,useShortName:!0}):{},r=n.hasYellowCard||n.hasYellowRedCard||n.hasRedCard,a={name:"card",icon:n.hasYellowRedCard?"card-double-yellow":"card",color:n.hasYellowRedCard?void 0:n.hasRedCard?"error.default":"scoreRating.s65",isVisible:!!r},o={name:"substitution",icon:(null==(s=n.substitutionOut)?void 0:s.isInjury)?"substitution-injured":"substitution",isVisible:!!n.substitutionOut},c={name:"goals",icon:n.goalsScored===n.penaltiesScored&&n.hasScoredPenalty?"football-penalty":"football-ball",count:n.goalsScored,color:"secondary.default",isVisible:!!n.goalsScored},h={name:"goalAssist",icon:"football-assist",count:n.goalsAssisted,color:"neutral.variant",isVisible:!!n.goalsAssisted},p={name:"ownGoals",icon:"football-own-goal",count:n.ownGoalsScored,color:"error.default",isVisible:!!n.ownGoalsScored};return{playerLeftStatistics:[a,o,{name:"matchMVP",color:(0,d.E)(null==(l=e.statistics)?void 0:l.rating),isVisible:!!i}],playerRightStatistics:[c,h,p]}}i(44259)},99382:(e,t,i)=>{i.d(t,{jP:()=>h,Xl:()=>p});var s=i(6029),l=i(21377),n=i(947),r=i(90248),a=i(79387),o=i(19451),d=i(26331),c=i(73088),u=i(30479);let h=e=>{let{event:t}=e,i=(0,n.A)(),h=(0,d.A)();return(0,s.jsx)(a.C,{callToAction:(0,s.jsx)(r.A,{id:"chart_embed"}),embedString:function(e,t,i){let{id:s,customId:n,homeTeam:r,awayTeam:a,slug:d,tournament:h}=e,p=h.category.sport.slug,x=(0,o.vf)(t.locale),f="".concat(l.yuv).concat(x?"/".concat(x):"","/embed/attackMomentum?id=").concat(s,"&widgetTheme=light"),g=(0,l.Lo9)(c.z.getTranslatedRoute(i,"event",{id:n,name:d,sport:p},(0,u.HL)({id:s})).route,{isApiRoute:!1}),m="".concat(r.name," - ").concat(a.name),y=t.formatMessage({id:"event.embed.lineupsBackLink"},{eventName:m,a:e=>'\n ').concat(e,"\n ")});return'\n
').concat(y,"
")}(t,i,h),px:0,mt:0})},p=e=>{let{event:t}=e,i=(0,n.A)(),h=(0,d.A)(),{id:p,customId:x,homeTeam:f,awayTeam:g,slug:m,tournament:y}=t,v=y.category.sport.slug,j=(0,o.vf)(i.locale),b="".concat(l.yuv).concat(j?"/".concat(j):"","/embed/lineups?id=").concat(p,"&widgetTheme=light"),w="sofa-lineups-embed-".concat(p),_=(0,l.Lo9)(c.z.getTranslatedRoute(h,"event",{id:x,name:m,sport:v},(0,u.HL)({id:p})).route,{isApiRoute:!1}),C="".concat(f.name," - ").concat(g.name),k=i.formatMessage({id:"event.embed.lineupsBackLink"},{eventName:C,a:e=>'\n ').concat(e,"\n ")}),z='\n
').concat(k,"
");return(0,s.jsx)(a.C,{callToAction:(0,s.jsx)(r.A,{id:"chart_embed"}),embedString:z,px:0,mt:0})}},99586:(e,t,i)=>{i.d(t,{C:()=>o});var s=i(99452),l=i.n(s),n=i(5326),r=i(85306),a=i(48886);function o(e,t,i,s){let o=t.stat,d=t.dir,c=[],u=[];if(o.value===r.K.Position&&(c.push(e=>n.EN[s].indexOf(e.position)),u.push(t.dir)),o.percentageOnly&&(c.push(e=>{let t=e.statistics&&o.madesValue?e.statistics[o.madesValue]:0,i=e.statistics&&o.attemptsValue?e.statistics[o.attemptsValue]:0;return t&&i?t/i:0}),u.push(t.dir)),o.madesValue){let e=o.madesValue;if(c.push(t=>{var i,s;return null!=(s=null==(i=t.statistics)?void 0:i[e])?s:0}),u.push(d),o.attemptsValue&&o.reverseSecondCompare){let e=o.attemptsValue;c.push(t=>{var i,s;return null!=(s=null==(i=t.statistics)?void 0:i[e])?s:0}),u.push(d===a.U.ASC?a.U.DESC:a.U.ASC)}}let h=o.compareValue;return h&&(c.push(e=>{var t,i;return null!=(i=null==(t=e.statistics)?void 0:t[h])?i:0}),u.push(d)),c.push(e=>{var t,i;return null!=(i=null==(t=e.statistics)?void 0:t[o.value])?i:0}),u.push(d),c.push(e=>{var t,s;return null!=(s=null==(t=e.statistics)?void 0:t[i.value])?s:0}),u.push(a.U.DESC),c.push(e=>{var t;return null!=(t=e.player.shortName)?t:""}),u.push(a.U.ASC),l()(e,c,u)}}}]);